text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
/* ------------------------------------------- DUI - Daher Engine's User Interface Library ------------------------------------------- $Author: <NAME> $ $Revision: 1.3 $ $Date: 2004/07/31 19:21:59 $ $Id: dui_share_rect.h,v 1.3 2004/07/31 19:21:59 Daher Alfawares Exp $ $Name: $ Copyright (c) 2004, <NAME> ------...
code_c
code
254
null
/* $Id: getifaddr.c,v 1.26 2019/05/20 19:54:08 nanard Exp $ */ /* vim: tabstop=4 shiftwidth=4 noexpandtab * MiniUPnP project * http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/ * (c) 2006-2019 <NAME> * This software is subject to the conditions detailed * in the LICENCE file provided within the distribut...
code_c
code
2,331
null
///////////////////////////////////////////////////////////////////////////// // Name: wx/bmpbuttn.h // Purpose: wxBitmapButton class interface // Author: <NAME> // Modified by: // Created: 25.08.00 // Copyright: (c) 2000 <NAME> // Licence: wxWindows licence ///////////////////////////...
code_c
code
872
null
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * 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...
code_c
code
2,684
null
#include <stdio.h> #include <stdint.h> #define COMBINE(a, b) ((a) << 8 | (b)) #define TOP(x) ((x) >> 8) #define BOTTOM(x) ((x) & 0xFF) #define MARK(x, m) ((x) | (m) << 16) #define UNMARK(x) (uint16_t)(x) #define GETMARK(x) ((x) >> 16) #define INDIAG(a, b) COMBINE((a) + (b) - 99 >> 1, (a) + 99 - (b) >> 1) #ifdef TESTIN...
code_c
code
1,253
null
// Copyright 2014 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 WebEncryptedMediaRequest_h #define WebEncryptedMediaRequest_h #include "public/platform/WebCommon.h" #include "public/platform/WebPrivatePtr.h" #...
code_c
code
414
null
// Copyright 2013 Viewfinder. All rights reserved. // Author: <NAME>. #ifndef VIEWFINDER_PROCESS_DUPLICATE_QUEUE_OP_H #define VIEWFINDER_PROCESS_DUPLICATE_QUEUE_OP_H #import "Image.h" #import "PhotoTable.h" #import "Timer.h" class UIAppState; class ProcessDuplicateQueueOp { typedef void (^CompletionBlock)(); pu...
code_c
code
377
null
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //===========================================================================// #ifndef ISHADERDYNAMIC_H #define ISHADERDYNAMIC_H #ifdef _WIN32 #pragma once #endif #include "shaderapi/shareddefs.h" #i...
code_c
code
3,874
null
#ifndef __LIST__ #define __LIST__ #include "Type_List.h" // Include type of list. typedef struct Info_List* Info_Ptr; // Create "* Info_Ptr" points in Info_List. typedef struct Node_List* Go_Next; // Create "* Go_Next" points in Node_List. // Prototypes of functions .// Info_Ptr List_Create(void); void List_Destro...
code_c
code
325
null
<reponame>clovadevice/clockplus /* Copyright (c) 2012-2018, 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. * * Th...
code_c
code
2,003
null
#ifndef MUPDF_FITZ_BUFFER_H #define MUPDF_FITZ_BUFFER_H #include "mupdf/fitz/system.h" #include "mupdf/fitz/context.h" /* fz_buffer is a wrapper around a dynamically allocated array of bytes. Buffers have a capacity (the number of bytes storage immediately available) and a current size. */ typedef struct fz_buffe...
code_c
code
1,005
null
<gh_stars>100-1000 // Copyright 2014 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_FRAME_FRAME_OWNER_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_FRAME_OWNER_H_ #include "th...
code_c
code
1,858
null
#pragma once class Node { public: Node(unsigned id); Node(const Node& node); virtual ~Node(); unsigned getId() const; protected: unsigned id_; };
code_c
code
44
null
<reponame>Dbevan/SunderingShadows #include <std.h> #include <objects.h> inherit ROOM; void create() { room::create(); set_property("light",0); set_property("indoors",1); set_short("Passageway in a Mine"); set_long( @KAYLA You are standing in a large passage in the huge mine of Shadowgate. A huge m...
code_c
code
232
null
/* The MIT License Copyright (c) 2021 Genome Research Ltd. Author: <NAME> <<EMAIL>> 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 limit...
code_c
code
8,909
null
/* string.c - common string routines */ /* * Copyright (c) 2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> /** * * @brief Copy a string * * @return pointer to destination buffer <d> */ char *strcpy(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s) { char ...
code_c
code
1,576
null
#pragma once #include "hosEngine/Transform.h" #include "hosEngine/Networkcomponent.h" #include "hosEngine/Group.h" #include "../packets/PacketDefine.h" using namespace hos::com; using namespace hos::Packet; class GroupScene { public: };
code_c
code
68
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 MOJO_PUBLIC_CPP_BINDINGS_TESTS_STRUCT_WITH_TRAITS_IMPL_TRAITS_H_ #define MOJO_PUBLIC_CPP_BINDINGS_TESTS_STRUCT_WITH_TRAITS_IMPL_TRAITS_H_ #includ...
code_c
code
1,194
null
/* * tkvdb * * Copyright (c) 2016-2020, <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE A...
code_c
code
1,922
null
#pragma once #include "common.h" #include <temple/dll.h> struct FactionSystem : temple::AddressTable { uint32_t(__cdecl *FactionHas)(objHndl, uint32_t nFaction); uint32_t(__cdecl *PCHasFactionFromReputation)(objHndl, uint32_t nFaction); uint32_t(__cdecl *FactionAdd)(objHndl, uint32_t nFaction); bool HasNullFaction...
code_c
code
146
null
// // MKReadDataTimeModel.h // FitpoloSDK-iOS_Example // // Created by aa on 2019/6/13. // Copyright © 2019 Chengang. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface MKReadDataTimeModel : NSObject<MKReadDeviceDataTimeProtocol> @property (nonatomic, assign)NSInteger y...
code_c
code
191
null
<reponame>mgonnav/Distributed-Graph-Database #ifndef DGDB_RDT_RDT_H_ #define DGDB_RDT_RDT_H_ #include <vector> #include <string> #include <cstdint> #include "../network/Network.h" #include "RDT_UDP_Helper.h" class RDT_UDP { public: explicit RDT_UDP(size_t max_packet_length=1000) : rdt_udp_helper(max_packet_len...
code_c
code
189
null
/* Copyright (C) 2019-2020 <NAME> (@LBussy) This file is part of Lee Bussy's Bootstrap (bootstrap). 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 limitati...
code_c
code
1,798
null
/* * Copyright 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/LICENSE-2.0 * * Unless required by applica...
code_c
code
1,038
null
#include <assert.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "model/view.h" #include "utils/input.h" #include "utils/renderer.h" #include "utils/string.h" #include "utils/terminal.h" InputValidState user_input_valid(const char *format, const char *inpu...
code_c
code
1,262
null
<filename>src/cbow_trainer_mikolov.h #ifndef SRC_CBOW_TRAINER_MIKOLOV_H_ #define SRC_CBOW_TRAINER_MIKOLOV_H_ #include <algorithm> #include <functional> #include <numeric> //#include <execution> #include "trainer.h" class CbowTrainer_Mikolov : public CustomTrainer { public: // конструктор CbowTrainer_Mikolov( st...
code_c
code
1,627
null
//Author: <NAME> //Compile with gcc -o trapez trapez.c -lpthread #include <time.h> #include <stdio.h> #include <stdlib.h> #include <pthread.h> typedef struct element_t { int start; int end; int N; int id; } element_t; double * result; double a = -400; double b = 600; double function(double x) { ...
code_c
code
541
null
#pragma once namespace VIVADO1 { int randomForestClassifier(int attr[4]); } namespace VIVADO10 { int randomForestClassifier(int attr[4]); } namespace VIVADO20 { int randomForestClassifier(int attr[4]); } namespace VIVADO50 { int randomForestClassifier(int attr[4]); } namespace VIVADO100 { int rando...
code_c
code
101
null
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "v1alpha1_limited_priority_level_configuration.h" v1alpha1_limited_priority_level_configuration_t *v1alpha1_limited_priority_level_configuration_create( int assured_concurrency_shares, v1alpha1_limit_response_t *limit_response ) { v1...
code_c
code
1,197
null
/***************************************************************************//** * \file cyip_sdhc.h * * \brief * SDHC IP definitions * * \note * Generator version: <ip> * ******************************************************************************** * \copyright * Copyright 2016-2020 Cypress Semiconductor Corporatio...
code_c
code
14,166
null
<reponame>safecloud-project/safefs<filename>crypto/nopcrypt_padded.h /* SafeFS (c) 2016 2016 INESC TEC. Written by <NAME> and <NAME> */ #ifndef __NOCRYPT_PADDED_H__ #define __NOCRYPT_PADDED_H__ #include "../logdef.h" #include "../layers_def.h" #include <fuse.h> #include <stdint.h> #include <stdio.h> #include <s...
code_c
code
289
null
/*************************************************************************** Slot device ***************************************************************************/ #include "emu.h" #include "emuopts.h" device_slot_interface::device_slot_interface(const machine_config &mconfig, device_t &device) ...
code_c
code
410
null
<gh_stars>1-10 #ifndef INCLUDED_Z_QUEUE_H #define INCLUDED_Z_QUEUE_H #include <stdint.h> struct queue { uintptr_t *data; size_t size; int head; int tail; }; struct queue *q_new(size_t size); int q_len(struct queue *q); void q_push(struct queue *q, uintptr_t item); uintptr_t q_pop(struct queue *q); ...
code_c
code
163
null
<filename>src/config.c /* * Copyright 2018-2020 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "RG.h" #include "config.h" #include <unistd.h> #include <string.h> #include <limits.h> #include "util/redis_version.h" #include "../deps/GraphB...
code_c
code
4,658
null
/* Search for patterns in strings or files. Copyright (C) 2005, 2015-2016 Free Software Foundation, Inc. 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, o...
code_c
code
513
null
<filename>src/Direct3DTexture8.h<gh_stars>1-10 #pragma once #include "Direct3D8.h" class CDirect3DTexture8 : public IDirect3DTexture8 { public: CDirect3DTexture8(IDirect3DTexture9* texture, CDirect3DDevice8* device); ~CDirect3DTexture8(); private: IDirect3DTexture9* pTexture9; CDirect3DDevice8* pDevice8; publi...
code_c
code
442
null
// ################################################################################################# // # << NEORV32: neorv32_trng.c - True Random Number Generator (TRNG) HW Driver >> # // # ********************************************************************************************* # // # BSD 3-Clause...
code_c
code
1,563
null
<reponame>Mr-Sheep/naiveproxy // 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 NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ #define NET_CERT_INTERNAL_VERIFY_CERTIFICATE_CHAIN_H_ #include <set> ...
code_c
code
2,492
null
/* Project : Wolf Engine. Copyright(c) <NAME> (http://PooyaEimandar.com) . All rights reserved. Source : Please direct any bug to https://github.com/PooyaEimandar/Wolf.Engine/issues Website : http://WolfSource.io Name : w_cpipeline_structs.h Description : The structures Comment : */ #ifnde...
code_c
code
975
null
<filename>src/common/system/windows/windowssystem.h<gh_stars>1-10 #ifndef WINDOWSSYSTEM_H #define WINDOWSSYSTEM_H #include <string> #include "i/isystem.h" #include <windows.h> typedef bool(*TMailCallback)(const char * str); class WindowsSystem : public ISystem { public: WindowsSystem(); std::string getExePa...
code_c
code
384
null
/* * File: ps/pheap.c * * PHM - Process Heap Manager. * * Each desktop has your own memory heap. * A process uses the memory heap of the * desktop it belongs to. * * History: * 2016 - Created by <NAME>. */ #include <kernel.h> //int phmStatus; //int phmError; //... /* @todo: +Set proce...
code_c
code
254
null
<reponame>sakex/NEAT-GRU<filename>Private/Species.h /* * Species.h * * Created on: Jul 27, 2019 * Author: sakex */ #ifndef NEURALNETWORK_SPECIES_H_ #define NEURALNETWORK_SPECIES_H_ #include <vector> #include <memory> #include <algorithm> #include "../NeuralNetwork/Topology.h" namespace NeuralNetwork { ...
code_c
code
382
null
<reponame>freebird-airlines/WhirlyGlobe // // MapnikConfig.h // vector_dice // // Created by <NAME> on 1/1/14. // Copyright (c) 2014 mousebird consulting. All rights reserved. // #ifndef __vector_dice__MapnikConfig__ #define __vector_dice__MapnikConfig__ #include <iostream> #include <vector> #include "tinyxml2.h"...
code_c
code
3,079
null
/*- * ------+---------+---------+-------- + --------+---------+---------+---------* * This file includes significant modifications done by: * Copyright (c) 2003, 2004 - <NAME> <<EMAIL>>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
code_c
code
21,204
null
/* object/util */ #include <stdio.h> #include "unit-test.h" #include "unit-test-data.h" #include "object.h" #include "obj-pile.h" int setup_tests(void **state) { return 0; } NOTEARDOWN /* Testing the linked list functions in obj-pile.c */ int test_obj_piles(void *state) { struct object *pile = NULL; struct ob...
code_c
code
570
null
<filename>xo/container/flat_map.h #pragma once #include <algorithm> #include "xo/container/vector_type.h" #include "xo/container/pair_type.h" #include "xo/system/assert.h" #include "xo/string/string_cast.h" #include "xo/container/prop_node.h" namespace xo { template< typename K, typename V > class flat_map { publ...
code_c
code
1,559
null
<filename>bzl/tests/attrs/runfiles_c.h<gh_stars>10-100 #ifndef TOOLS_BUILD_DEFS_HASKELL_TESTS_ATTRS_RUNFILES_C_H_ #define TOOLS_BUILD_DEFS_HASKELL_TESTS_ATTRS_RUNFILES_C_H_ // Dummy file to test runfiles propagating from deps #endif // TOOLS_BUILD_DEFS_HASKELL_TESTS_ATTRS_RUNFILES_C_H_
code_c
code
82
null
<reponame>hashnfv/hashnfv-kvmfornfv<gh_stars>10-100 /* * I2C Link Layer for ST21NFCA HCI based Driver * Copyright (C) 2014 STMicroelectronics SAS. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, *...
code_c
code
5,036
null
<filename>include/mode-private.h /* * rofi * * MIT/X11 License * Copyright © 2013-2020 <NAME> <<EMAIL>> * * 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
1,643
null
<gh_stars>0 /* * Copyright (c) 1985, 1989 Regents of the University of California. * 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 abov...
code_c
code
13,310
null
<reponame>cpp-openapi/dockerctl /* * NodeState.h * * NodeState represents the state of a node. */ #pragma once #include <optional> #include "common_json.h" namespace openapi { /*! \brief NodeState represents the state of a node. * * \ingroup Models * */ struct NodeState{ OPENAPI_JSON_CONVERT_FUNCS_DE...
code_c
code
94
null
#ifndef DALI_INTERNAL_WINDOWSYSTEM_WINDOW_BASE_WIN_H #define DALI_INTERNAL_WINDOWSYSTEM_WINDOW_BASE_WIN_H /* * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a ...
code_c
code
3,491
null
<filename>plugins/unifiedvideoinertialtracker/ImagePointMeasurement.h /** @file @brief Header @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in ...
code_c
code
3,800
null
#ifndef _OBJECT3D_H_ #define _OBJECT3D_H_ #include "hit.h" #include "material.h" #include "ray.h" class Object3D { public: Object3D() { m = new Material(Vec3f()); }; Object3D(const Vec3f &color) { m = new Material(color); }; ~Object3D() { delete m; }; virtual bool intersect(const Ray &r, Hit &h, float...
code_c
code
106
null
<reponame>sics-iot/contiki-ng /* * Copyright (c) 2016, <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: * 1. Redistributions of source code must retain the above copyright * not...
code_c
code
2,985
null
<reponame>ricardoquesada/jsbindings /* * JS Bindings: https://github.com/zynga/jsbindings * * Copyright (c) 2012 Zynga Inc. * * 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 re...
code_c
code
1,921
null
/** * Liverpool PCI Host/Bus devices. * * Copyright 2017-2021. Orbital project. * Released under MIT license. Read LICENSE for more details. * * Authors: * - <NAME> <<EMAIL>> */ #pragma once #include <orbital/core.h> // Liverpool PCI Bus class LiverpoolBus : public PCIeBus { public: LiverpoolBus(Device* ...
code_c
code
253
null
#pragma once #include <complex> #include <cstddef> #include <cstdint> namespace L4 { namespace Utils { namespace Math { // Rounds up the number to the nearest multiple of base. inline std::uint64_t RoundUp(std::uint64_t number, std::uint64_t base) { return base ? (((number + base - 1) / base) * base) : number; } ...
code_c
code
530
null
#ifndef Magnum_Audio_BufferFormat_h #define Magnum_Audio_BufferFormat_h /* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this sof...
code_c
code
1,785
null
<reponame>tinyos-io/tinyos-3.x-contrib<filename>uob/tossdr/tos/lib/tossdr/sim_tossdr.c /* * "Copyright (c) 2005 Stanford University. All rights reserved. * * Permission to use, copy, modify, and distribute this software and * its documentation for any purpose, without fee, and without written * agreement is hereby...
code_c
code
1,530
null
#ifndef FAST_H #define FAST_H #include <vector> #include "scaled_mask.h" using namespace std; extern int g_det_count; typedef struct { float x, y, score, reserved; } xy; typedef unsigned char byte; class fast_detector_9 { private: int pixel[16]; int xsize, ysize, stride, patch_stride, patch_win_half_widt...
code_c
code
1,054
null
<filename>SKYWORKS_SUPERSET/Si2183/SiLabs_API_L3_Wrapper_TS_Crossbar.c /************************************************************************************************************* Copyright 2021-2022, Skyworks Solutions, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file e...
code_c
code
10,868
null
<reponame>WA2301/uboot-2011.06<gh_stars>1-10 /* * (C) Copyright 2003 * <NAME>, imc Measurement & Control, <EMAIL> * * (C) Copyright 2002 * <NAME>, Enterasys Networks, <EMAIL>. * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it ...
code_c
code
1,797
null
#if !defined TCC_MULTI_ARRAY_H #define TCC_MULTI_ARRAY_H // Experimental class that provides multi-dimensional arrays, similar to // boost::multi_array[_ref], but much simpler. namespace multi_array { template <std::size_t dim> class extent { public: extent(std::size_t size, const extent<dim - 1> &rhs) : ...
code_c
code
605
null
// // ProVocHistory.h // ProVoc // // Created by <NAME> on 25.02.06. // Copyright 2006 Arizona Software. All rights reserved. // #import <Cocoa/Cocoa.h> #define MAX_HISTORY_REPETITION 3 @interface ProVocHistory : NSObject { NSDate *mDate; int mMode; NSMutableArray *mRepetitions; } +(NSColor *)colorForRepetit...
code_c
code
188
null
<gh_stars>1-10 #ifndef RUBY_TOPLEVEL_VERSION_H /*-*-C-*-vi:se ft=c:*/ #define RUBY_TOPLEVEL_VERSION_H /** * @author Ruby developers <<EMAIL>> * @copyright This file is a part of the programming language Ruby. * Permission is hereby granted, to either redistrib...
code_c
code
833
null
/* Copyright (c) 2003, <NAME> * Copyright (c) 2004-2006, <NAME>, <NAME>. * Copyright (c) 2007-2016, The Tor Project, Inc. */ /* See LICENSE for licensing information */ #ifndef TOR_TORTLS_H #define TOR_TORTLS_H /** * \file tortls.h * \brief Headers for tortls.c **/ #include "crypto.h" #include "compat_openssl.h...
code_c
code
3,322
null
// // UIView+BSTExtention.h // // Created by hejingjin on 16/7/19. // #import <UIKit/UIKit.h> @interface UIView (BSTExtention) @property (nonatomic, assign) CGSize bst_size; @property (nonatomic, assign) CGFloat bst_width; @property (nonatomic, assign) CGFloat bst_height; @property (nonatomic, assign) CGFloat bs...
code_c
code
270
null
<reponame>pandepic/PandaSDL #ifndef __pandasdl_puiwidget_h__ #define __pandasdl_puiwidget_h__ #include "../../lib_include/pugixml/pugixml.hpp" #include "puiwidget_container.h" #include "../math/rectangle.h" #include "../general/timer.h" #define PANDASDL_WIDGET_NOSETPOS -1 namespace PandaSDL { struct PUIWidgetPo...
code_c
code
527
null
<reponame>sztomi/openssl /* * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www....
code_c
code
2,662
null
<gh_stars>1-10 /* * MIT License * * Copyright (c) 2018 dead-end * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use...
code_c
code
2,018
null
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #pragma once #include "../Detail/API.h" #include "../UTFUtils.h" #include "../StringUtils.h" #include "../PtrUtils.h" #include "../../Core/Ex...
code_c
code
1,436
null
/** * @cond doxygenLibsbmlInternal * * @file ASTCnRealNode.h * @brief Cn Real Node for Abstract Syntax Tree (AST) class. * @author <NAME> * * <!-------------------------------------------------------------------------- * This file is part of libSBML. Please visit http://sbml.org for more * information ...
code_c
code
1,053
null
<reponame>oozoofrog/swift //===--- DebugOptUtils.h --------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // ...
code_c
code
461
null
<filename>hydra/libft/srcs/ft_lstnew.c /* ************************************************************************** */ /* LE - / */ /* / */ /* ft_lstnew.c ...
code_c
code
406
null
<reponame>madanagopaltcomcast/pxCore /* * tiff-grayscale.c -- create a Class G (grayscale) TIFF file * with a gray response curve in linear optical density * * Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts. * * All Rights Reserved * * Permission to use, cop...
code_c
code
1,247
null
<reponame>haiwei-Lee/HDCollectionView // // HDModelProtocol.h // HDCollectionView // // Created by <NAME> on 2019/7/8. // #ifndef HDModelProtocol_h #define HDModelProtocol_h #import "YGEnums.h" //#import "HDCellModel.h" //#import "HDBaseLayout.h" @class HDSectionModel; @class HDBaseLayout; @class HDCellModel; //...
code_c
code
1,477
null
// // ZHMultiTable.h // XueZhiYun // // Created by chun.chen on 2018/9/13. // Copyright © 2018年 Zhihan. All rights reserved. // #ifndef ZHMultiTable_h #define ZHMultiTable_h #import "ZHMultiTablePage.h" #import "ZHMultiTabViewBar.h" #import "ZHMultiTablePagePlugin_HeaderScroll.h" #import "ZHMultiTablePagePlugin_...
code_c
code
117
null
#ifndef GDF_GDF_H #define GDF_GDF_H #include <cstdlib> #include <cstdint> #include "cffi/types.h" #define GDF_VALID_BITSIZE (sizeof(gdf_valid_type) * 8) extern "C" { #include "cffi/functions.h" } #endif /* GDF_GDF_H */
code_c
code
63
null
#pragma once #define STB_DS_IMPLEMENTATION #include "lib/stb_ds.h" /* stb_ds.h: Source: https://github.com/nothings/stb/blob/master/stb_ds.h Docs: http://nothings.org/stb_ds */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXCHAR 10000 char* * read_lines(const char* fname) { char* *line...
code_c
code
384
null
<reponame>kirino17/ecef<filename>src/aquarius2/proxy/ProxyAuthCallback.h #pragma once #include "../def/def.h" class AQUADLL ProxyAuthCallback : public refcounted { public: ProxyAuthCallback(void* ptr); ~ProxyAuthCallback(); public: /// // Continue the authentication request. /// /*--cef(capi_name=co...
code_c
code
184
null
/* Package: dyncall Library: dyncall File: dyncall/dyncall_callvm_arm32_arm.c Description: ARM 32-bit "arm" ABI callvm implementation License: Copyright (c) 2007-2011 <NAME> <<EMAIL>>, <NAME> <<EMAIL>> Permission to use, copy, modify, and distribute this software for any pur...
code_c
code
2,017
null
// // NSArray+ZWAdd.h // iOSUtils // // Created by zhouwei on 2018/12/10. // Copyright © 2018年 zhouwei. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** Provide some some common method for `NSArray`. */ @interface NSArray (ZWAdd) /** * plist 转数组 Creates and returns an ar...
code_c
code
1,561
null
<reponame>glycerine/shore-mt /* @(#)svc_udp.c 2.2 88/07/29 4.0 RPCSRC */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape * media and as a part of the software program in whole or part. Users * may copy or modify Sun RPC wi...
code_c
code
6,127
null
#ifndef BME_KBD_H #define BME_KBD_H // BME keyboard functions header file int kbd_init(void); void kbd_uninit(void); int kbd_waitkey(void); int kbd_getkey(void); int kbd_checkkey(int rawcode); int kbd_getascii(void); unsigned kbd_getvirtualkey(void); char *kbd_getkeyname(int rawcode); #endif
code_c
code
88
null
<filename>RetroGE/ods_chainedhashtable.c /******************************************************************************* * File : chainedhashtable.c * Author(s) : <NAME> <<EMAIL>> ******************************************************************************/ #include <string.h> #include <assert.h> #inc...
code_c
code
1,353
null
<reponame>Lang4/ccspring<gh_stars>1-10 /* * Copyright 2003,2004 The Apache Software Foundation. * * 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/license...
code_c
code
1,169
null
#ifndef SEQUENCEGENERATOR_H #define SEQUENCEGENERATOR_H #include <cstdint> class SequenceGenerator { public: SequenceGenerator(); uint32_t getNext(); uint32_t seeCurrent(); private: uint32_t counter_{ 0 }; }; inline static SequenceGenerator gRenderingTargetIdGen; #endif // SEQUENCEGENERATOR_H
code_c
code
90
null
<gh_stars>100-1000 #ifndef CVD_COLOURSPACES_H #define CVD_COLOURSPACES_H #include <cvd/internal/builtin_components.h> #include <cvd/internal/name_builtin_types.h> #include <cvd/internal/pixel_traits.h> #include <ratio> namespace CVD { /// Bayer datatype representing the colour filter pattern BGGR /// @ingroup gVideo...
code_c
code
2,194
null
<gh_stars>0 // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <algorithm> #include "flutter/fml/logging.h" // A directional range of text. // // A |TextRange| describes a range of text with |bas...
code_c
code
471
null
<gh_stars>1-10 // // RMTileSource.h // // Copyright (c) 2008-2009, Route-Me Contributors // 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...
code_c
code
730
null
/* * Copyright (C) 2014-2015 <NAME> Berlin * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @defgroup drivers_periph_uart UART * @ingroup drivers_periph * @brief Low-l...
code_c
code
2,126
null
/* * Copyright (C) 2010, 2013, 2015 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence. ...
code_c
code
690
null
// Derived from ArduinoBLE. // Copyright 2020 <NAME> for Adafruit Industries /* This file is part of the ArduinoBLE library. Copyright (c) 2018 Arduino SA. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as...
code_c
code
18,068
null
<gh_stars>0 /* ** File : osloader.c ** ** Copyright (c) 2004-2015, United States government as represented by the ** administrator of the National Aeronautics Space Administration. ** All rights reserved. This software was created at NASA Glenn ** Research Center pursuant to government contracts. ...
code_c
code
3,361
null
<reponame>diegows/wanproxy /*- * Copyright (C) 2007-2008 MARVELL INTERNATIONAL LTD. * All rights reserved. * * Developed by Semihalf. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of so...
code_c
code
2,970
null
/* * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of th...
code_c
code
4,937
null
/* Copyright (c) 2014-2017, Clockwork Dev Studio All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and...
code_c
code
9,179
null
<gh_stars>10-100 #ifndef AC_GECURV3D_H #define AC_GECURV3D_H // // (C) Copyright 1993-1999 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all co...
code_c
code
3,085
null
/* * Copyright (C) 2013 <NAME> <<EMAIL>> * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use,...
code_c
code
2,407
null