text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <survive.h> #include "assert.h" #ifdef _WIN32 #include "survive_plugins.windows.h" #else #include "survive_plugins.unix.h" #endif static const char *get_so_filename(); static void*...
code_c
code
1,222
null
<gh_stars>1000+ // clang-format off // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http:/...
code_c
code
3,258
null
#ifndef chat_List #define chat_List #include <iostream> #include <string> using namespace std; #include <fstream> #include "chat.h" #include "user_List.h" typedef struct { tChatPtr items; int counter; } tChatList; int findChat(const tChatList &chatList, string username); // Return the position of th...
code_c
code
327
null
<reponame>ericandrewlewis/nes-starter-kit<gh_stars>0 #include "source/configuration/system_constants.h" #include "source/neslib_asm/neslib.h" #include "source/library/bank_helpers.h" #include "source/map/map.h" #include "source/globals.h" // Loads the map at the player's current position into the ram variable given. ...
code_c
code
182
null
<filename>include_niu/Infra/AtomicCount.h // // "$Id$" // // Copyright (c)1992-2011, <NAME>ua Technology Stock CO.LTD. // All Rights Reserved. // // Description: // Revisions: Year-Month-Day SVN-Author Modification // #ifndef INFRA3_ATOMIC_COUNT_H__ #define INFRA3_ATOMIC_COUNT_H__ #include "Detail/...
code_c
code
269
null
<filename>kernel/include/arch/armv7/exceptions.h /* * Copyright (c) 2007, 2008, 2009, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zuri...
code_c
code
924
null
<reponame>yami0307/C-codes.<gh_stars>0 #include<stdio.h> #define MAXSIZE 1000 int arr[MAXSIZE][MAXSIZE] = {0}; int m=0,n=0; void input(){ printf("Enter the number of rows and columns of MATRIX:- "); scanf("%d %d",&m,&n); printf("Enter the elements of the matrix:- "); int i,j; for(i=0;i<m;i++) for(j=0;j<n;j+...
code_c
code
235
null
<gh_stars>0 #include <stdio.h> #include <stdlib.h> int main() { printf("Choose the download options:\n"); printf("[1] MP3 Audio only\n"); printf("[2] Flac Audio only\n"); int option=0; scanf("%d", &option); if(option == 1){ audiomp3(); }else if(option == 2){ aud...
code_c
code
384
null
/* * Copyright (c) <NAME> & Gas Technologies * * Permission to use, copy, modify, and 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 AUTHOR D...
code_c
code
5,165
null
<filename>tensorflow/lite/delegates/gpu/cl/kernels/util.h<gh_stars>0 /* 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.ap...
code_c
code
2,450
null
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
code_c
code
11,881
null
// Copyright 2017 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 EXTENSIONS_BROWSER_TEST_EVENT_ROUTER_H_ #define EXTENSIONS_BROWSER_TEST_EVENT_ROUTER_H_ #include <map> #include <memory> #include <string> #inclu...
code_c
code
900
null
<gh_stars>1-10 /*- * Copyright (c) 1997, 1998, 1999 * <NAME> <<EMAIL>>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
code_c
code
1,727
null
<filename>arm_compute/core/FixedPoint.h /* * SPDX-License-Identifier: MIT * * 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 * right...
code_c
code
4,032
null
#include <assert.h> #include <stdint.h> #include <wolfssl/options.h> #include <wolfssl/wolfcrypt/asn_public.h> #include <wolfssl/wolfcrypt/rsa.h> #include "wolfssl-ra.h" void sha256_rsa_pubkey ( unsigned char hash[SHA256_DIGEST_SIZE], RsaKey* key ) { // Expect a 2048 bit RSA key. assert(key->n.used ==...
code_c
code
239
null
<gh_stars>0 #ifndef KDTREE_H #define KDTREE_H #include <vector> #include "boundingbox.h" #include "sphere.h" #include "constants.h" #include "ray.h" namespace CUDA { struct KDNode { BoundingBox boundingBox; KDNode* left; KDNode* right; Sphere spheres[SPLIT_LIMIT]; uint32 countSpheres = 0; __device__ ...
code_c
code
1,294
null
<filename>ompi/mca/pml/ob1/pml_ob1_recvreq.h /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyrigh...
code_c
code
5,348
null
<filename>samples/simple_embedding/simple_embedding_int.c<gh_stars>0 // Copyright 2021 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // A example of setting up t...
code_c
code
2,096
null
/* * Copyright 2013, <NAME>. * * 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 in writ...
code_c
code
1,132
null
/* * This file is part of the SDWebImage package. * (c) <NAME> <<EMAIL>> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #import <Foundation/Foundation.h> #import "BMSDImageIOAnimatedCoder.h" /** This coder is used for HEIC (HEIF with ...
code_c
code
346
null
#include <string.h> #include "search.h" #include "index.h" #include "field_index.h" #include "symbol.h" #include "internal.h" /*************************************************************************** * * SortField * ***************************************************************************/ static INLINE Sort...
code_c
code
6,300
null
#include <myheader.h> #include <i2c_e.h> #include <mandala2.h> #include <glcdf.h> void main(void) { int i; char buffer[12]; port_init(); spi_init(); uart_init(); puts("Hello, Welcome to last online class in 1399\r\n *** MASTER MICRO ***\r\r\r\n"); adc_i...
code_c
code
419
null
/* * Amanda, The Advanced Maryland Automatic Network Disk Archiver * Copyright (c) 2009 Zmanda, Inc. 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 as published * by the Free Software Foundation. * *...
code_c
code
14,489
null
<gh_stars>1-10 /* * MIT License * * Copyright (c) 2016 xiongziliang <<EMAIL>> * * This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"),...
code_c
code
3,563
null
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2011 <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) ...
code_c
code
4,975
null
<filename>isis/src/base/objs/MoonAlbedo/MoonAlbedo.h #ifndef MoonAlbedo_h #define MoonAlbedo_h /** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find file...
code_c
code
646
null
<gh_stars>10-100 /**********************************************************\ | | | hprose | | | | Official WebSite: http://www.hprose.com/ ...
code_c
code
2,675
null
<reponame>mark-online/sne #pragma once #include <sne/security/cipher/BlockCipher.h> #include <boost/noncopyable.hpp> namespace sne { namespace security { /** * @class BlockCipherAlgorithm * * Block Symmetric cipher base class */ template <typename Engine, typename InputElement = uint8...
code_c
code
1,008
null
#pragma once #include <ruby.h> #include <ruby/encoding.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <libots.h> #include "version.h" #define TO_S(v) rb_funcall(v, rb_intern("to_s"), 0) #define CSTRING(v) RSTRING_PTR(TO_S(v)) #define rb_enc_str_new2(text,...
code_c
code
104
null
<filename>lib/common/llist.c /* * Copyright (c) 2014, Mentor Graphics Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above...
code_c
code
955
null
/* * Copyright (c) 2007-2008, Advanced Micro Devices, 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: * * * Redistributions of source code must retain the above cop...
code_c
code
2,893
null
/**************************************************************************//** * @file main.c * @version V3.00 * $Revision: 2 $ * $Date: 16/10/25 4:27p $ * @brief Implement timer counting in periodic mode. * @note * Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. **************...
code_c
code
2,855
null
<filename>Sankore-ThirdParty/xpdf/xpdf-3.03/xpdf/OptionalContent.h //======================================================================== // // OptionalContent.h // // Copyright 2008 Glyph & Cog, LLC // //======================================================================== #ifndef OPTIONALCONTENT_H #define OPT...
code_c
code
976
null
/* Pulled straight from Samples/Common/ExampleApplication.h Class renamed and moved local to avoid incendental editing. ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d....
code_c
code
908
null
/* audio: audio output interface copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1 see COPYING and AUTHORS files in distribution or http://mpg123.org initially written by <NAME> */ #include <errno.h> #include "mpg123app.h" #include "common.h" #include "buffer.h" ...
code_c
code
5,584
null
<filename>tools/font/build/single_font_files/u8g2_font_logisoso26_tn.c /* Fontname: -FreeType-Logisoso-Medium-R-Normal--38-380-72-72-P-46-ISO10646-1 Copyright: Created by <NAME> with FontForge 2.0 (http://fontforge.sf.net) - Brussels - 2009 Glyphs: 18/527 BBX Build Mode: 0 */ const uint8_t u8g2_font_logisoso26_...
code_c
code
451
null
#ifndef CC_BLOCK_H #define CC_BLOCK_H #include "PackedCol.h" #include "Vectors.h" #include "Constants.h" #include "BlockID.h" /* Stores properties and data for blocks. Also performs automatic rotation of directional blocks. Copyright 2014-2020 ClassiCube | Licensed under BSD-3 */ struct IGameComponent; ...
code_c
code
2,228
null
<reponame>ksunden/newsboat #ifndef NEWSBOAT_URLVIEWFORMACTION_H_ #define NEWSBOAT_URLVIEWFORMACTION_H_ #include "formaction.h" #include "htmlrenderer.h" namespace newsboat { class UrlViewFormAction : public FormAction { public: UrlViewFormAction(View*, std::shared_ptr<RssFeed>& feed, std::string formstr, Conf...
code_c
code
278
null
// Copyright 2016-present 650 Industries. All rights reserved. #import <AVFoundation/AVFoundation.h> #import <UMCore/UMViewManager.h> #import <UMCore/UMModuleRegistryConsumer.h> @interface EXBarCodeScannerViewManager : UMViewManager <UMModuleRegistryConsumer> @end
code_c
code
76
null
<gh_stars>0 #import <Foundation/Foundation.h> @class TGMessageIndex; @interface TGReadPeerMessagesRequest : NSObject @property (nonatomic, readonly) int64_t peerId; @property (nonatomic, readonly) TGMessageIndex *maxMessageIndex; @property (nonatomic, readonly) int32_t date; @property (nonatomic, readonly) int32_t l...
code_c
code
370
null
<gh_stars>1-10 /* * Setjmp/Longjmp definitions * * Copyright 2001 <NAME>. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option...
code_c
code
476
null
<filename>src/YogaKitSample/YogaKitSample/MainWindowController.h // // MainWindowController.h // YogaKitSample // // Created by <NAME> on 6/19/18. // Copyright © 2018 Outlander. All rights reserved. // #import <Cocoa/Cocoa.h> @interface MainWindowController : NSWindowController @end
code_c
code
83
null
<gh_stars>1-10 // Copyright 2018-present 650 Industries. All rights reserved. #import <ABI32_0_0EXCore/ABI32_0_0EXExportedModule.h> #import <ABI32_0_0EXCore/ABI32_0_0EXModuleRegistryConsumer.h> @interface ABI32_0_0EXContacts : ABI32_0_0EXExportedModule <ABI32_0_0EXModuleRegistryConsumer> @end
code_c
code
84
null
<reponame>ajfriend/h3 /* * Copyright 2017-2018, 2020-2021 Uber Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0...
code_c
code
2,757
null
<gh_stars>1000+ /* * Compex NP27G board support * * Copyright (C) 2007-2008 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. * */ #include "compex.h" ...
code_c
code
192
null
<reponame>blgrossMS/xbox-live-api //********************************************************* // // Copyright (c) Microsoft. All rights reserved. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERC...
code_c
code
3,660
null
#line 1 "../../../benchmarks/submatch_dfa_aot/src/ragel/04__apache_log.rl" #include "ragel/common.c" const char *delim = "\n"; #line 42 "../../../benchmarks/submatch_dfa_aot/src/ragel/04__apache_log.rl" #line 12 "gen/ragel/04__apache_log.c" static const int apache_log_start = 25; static const int apache_log_first...
code_c
code
3,179
null
<filename>rvsim/monlib.c /* "monlib.c" mon utility functions. */ #include <stdio.h> #include <string.h> #include <ctype.h> #include "monlib.h" /*----------------------------------------------------------------------*/ int IsComment(char *s) { /* Is Comment line ? */ return ((*s == '#') || (*s == '*') ...
code_c
code
889
null
#pragma once #include "light_execute.h" #include "net_task_callback.h" //class IWriter; //class INetReader; /* class net_task { INetReader *in_stream ; IWriter *out_stream ; public: net_task( INetReader* inStream, IWriter* outStream ): in_stream( inStream ), out_stream( outStream ) { VERIFY(i...
code_c
code
210
null
<filename>src/Coordination/NuKeeperStateManager.h<gh_stars>1-10 #pragma once #include <Core/Types.h> #include <string> #include <Coordination/NuKeeperLogStore.h> #include <Coordination/CoordinationSettings.h> #include <libnuraft/nuraft.hxx> // Y_IGNORE #include <Poco/Util/AbstractConfiguration.h> namespace DB { clas...
code_c
code
594
null
/* * Copyright (c) 2012 The Native Client 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 NATIVE_CLIENT_SRC_INCLUDE_CONCURRENCY_OPS_H_ #define NATIVE_CLIENT_SRC_INCLUDE_CONCURRENCY_OPS_H_ 1 #include "native_client/src...
code_c
code
996
null
<gh_stars>0 // 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 CONTENT_BROWSER_SPEECH_CHUNKED_BYTE_BUFFER_H_ #define CONTENT_BROWSER_SPEECH_CHUNKED_BYTE_BUFFER_H_ #include <stddef.h> #include ...
code_c
code
711
null
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: joaander #ifndef __PAIR_EVALUATOR_MIE_H__ #define __PAIR_EVALUATOR_MIE_H__ #ifndef __HIPCC__ #include <string> #endif #include "hoomd/HOOMDMath...
code_c
code
1,968
null
<filename>src/mesh.h #ifndef MESH_H_ #define MESH_H_ #include "geometry.h" namespace aroma { void register_Mesh(lua_State *l); /** * a 2d or 3d mesh to be rendered as vertex array */ class Mesh { int dim, count; double *vertexArray; double *normalArray; GLenum format; public: static int _new(lua_State *l); ...
code_c
code
225
null
<gh_stars>1-10 // Copyright © 2017-2020 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #pragma once #include "Data.h" #include "Ha...
code_c
code
687
null
#ifndef CREATEDB_H #define CREATEDB_H #include "accessor.h" class CreateDB: public Accessor { public: CreateDB(); ~CreateDB(); void addTableUser(); void addTableMessage(); void addTableComment(); void addTableFile(); private: QString tableUserQuery(); QString tableMessageQuery(); QS...
code_c
code
114
null
/* * Hauppauge HD PVR USB driver * * Copyright (C) 2008 <NAME> (<EMAIL>) * * IR device registration code is * Copyright (C) 2010 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Sof...
code_c
code
1,624
null
// // TagCodePeekViewController.h // StatTag // // Created by <NAME> on 4/11/17. // Copyright © 2017 StatTag. All rights reserved. // #import <Cocoa/Cocoa.h> @class STTag; @class ScintillaEmbeddedViewController; @interface TagCodePeekViewController : NSViewController { STTag* _tag; STCodeFile* _codeFile; ...
code_c
code
228
null
<gh_stars>10-100 /***************************************************************************** * Copyright(c) 2008, RealTEK Technology Inc. All Right Reserved. * * Module: __INC_HAL8192SEREG_H * * * Note: 1. Define Mac register address and corresponding bit mask map * 2. CCX register * 3. Backward compati...
code_c
code
17,130
null
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2015 <NAME> <<EMAIL>> */ #ifndef _MISC_H_ #define _MISC_H_ struct udevice; /** * misc_read() - Read the device to buffer, optional. * @dev: the device * @offset: offset to read the device * @buf: pointer to data buffer * @size: data size in bytes to r...
code_c
code
1,394
null
#pragma once #include <cinder/app/AppBase.h> #include <cinder/gl/gl.h> #include <Collision/cAABBCollider.h> #include <Game/Field/FieldData.h> #include <Game/Field/cBreakBlockType.h> namespace Game { namespace Field { class cBlock { public: cBlock(); cBlock( const ci::vec3& position, const float&...
code_c
code
214
null
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "hit.h" #include "querynode.h" #include "querynoderesultbase.h" #include <vespa/fastlib/text/unicodeutil.h> #include <vespa/searchlib/query/query_term_ucs4.h> #include <vespa/sea...
code_c
code
1,409
null
<filename>src/tspi/rpc/tcstp/rpc_random.c /* * Licensed Materials - Property of IBM * * trousers - An open source TCG Software Stack * * (C) Copyright International Business Machines Corp. 2004-2006 * */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include "trousers/tss.h" #...
code_c
code
687
null
/* * Copyright (c) 2018, Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of co...
code_c
code
8,585
null
<reponame>abin1525/rose-edg #ifndef AST_REWRITE_FRAGMENT_COLLECTOR_TRAVERSAL_C #define AST_REWRITE_FRAGMENT_COLLECTOR_TRAVERSAL_C // #include "rose.h" #include "rewrite.h" // #################################################################### // Functions for AST_FragmentIdentificationInheritedAttributeType class //...
code_c
code
12,659
null
<gh_stars>0 /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2013-2019 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License ...
code_c
code
5,349
null
#ifndef ECOSYSTEM_H #define ECOSYSTEM_H #include "plant.h" #include "../cgp/minicgp.h" DEFINE_NAMESPACE_SCOPED_PRETTY_ENUMERATION( genotype::cgp, Inputs, D, // Time of year Y, // Time of simulation X, // X coordinate T, // Topology H, // Heat W, // Water G // Grazing ) DEFINE_NAMESPACE...
code_c
code
619
null
/* * FreeRTOS+FAT FS V1.0.0 (C) 2013 HCC Embedded * * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license * terms. * * FreeRTOS+FAT SL uses a dual license model that allows the software to be used * under a pure GPL open source license (as opposed to the modified GPL licence * unde...
code_c
code
1,683
null
<gh_stars>0 /* * (C) Copyright 2016-2020 Intel Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
code_c
code
11,068
null
#pragma once #include <QtCore/QObject> #include <QtCore/QString> #include <vector> #include <vector> #include <thread> #include <atomic> class Joystick : public QObject { Q_OBJECT public: Joystick(unsigned int index = 0, size_t pollIntervalms = 25); ~Joystick(); bool open(); ...
code_c
code
310
null
// // MAPolygonView.h // MAMapKitNew // // Created by AutoNavi. // Copyright (c) 2014年 AutoNavi. All rights reserved. // #import "MAOverlayPathView.h" #import "MAPolygon.h" /*! @brief 此类是MAPolygon的显示多边形View,可以通过MAOverlayPathView修改其fill和stroke attributes */ @interface MAPolygonView : MAOverlayPathView /*! @bri...
code_c
code
152
null
#include <map> #include <vector> struct subsys_device { uint32_t vendor_id; uint32_t device_id; std::string desc; }; struct device { std::string desc; std::vector<subsys_device> subsys; }; extern std::map<uint32_t /*vendor id*/, std::pair<std::string /*vendor desc*/, std::map<uint32_t /*device id...
code_c
code
105
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
594
null
<reponame>TotteKarlsson/atapi #ifndef atTriggerH #define atTriggerH #include "atABExporter.h" #include "atATObject.h" #include <string> #include "dslTimer.h" #include <vector> #include "dslXMLUtils.h" #include "atUtils.h" //--------------------------------------------------------------------------- using std::string; ...
code_c
code
1,148
null
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
code_c
code
19,078
null
#include "include/mm/zone.h" #include "include/mm/mm.h" #include "include/mm/buddy.h" #include "include/modules/export-symbol.h" static k_uint8_t *k_dma_zones = NULL; struct k_memory_zone *k_memory_zones = NULL; void k_paging_reserve_dma(unsigned long, unsigned long, unsigned long); void *k_p2v(const void *physical)...
code_c
code
759
null
<filename>src/gst-plugins/commons/constants.h /* * (C) Copyright 2015 Kurento (http://kurento.org/) * * 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
904
null
<gh_stars>10-100 #include "rpi.h" #include "rpi-interrupts.h" // initialize global interrupt state. void int_init(void) { // put interrupt flags in known state. // BCM2835 manual, section 7.5 PUT32(Disable_IRQs_1, 0xffffffff); PUT32(Disable_IRQs_2, 0xffffffff); dev_barrier(); /* * Copy ...
code_c
code
413
null
/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
code_c
code
2,982
null
<filename>src/main.h #ifndef MAIN_H #define MAIN_H #include <Arduino.h> #include "typedefs.h" #include "secrets.h" // #define wifi_ssid "***" // #define wifi_password "***" // #define initialstate_bucket_key "***" // #define initialstate_access_key "***" #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP...
code_c
code
159
null
<filename>usbfuzz-afl/qemu_mode/qemu/scsi/pr-manager-helper.c<gh_stars>10-100 /* * Persistent reservation manager that talks to qemu-pr-helper * * Copyright (c) 2017 Red Hat, Inc. * * Author: <NAME> <<EMAIL>> * * This code is licensed under the LGPL v2.1 or later. * */ #include "qemu/osdep.h" #include "qapi/e...
code_c
code
2,402
null
/* (c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org) (c) Copyright 2000-2004 Convergence (integrated media) GmbH All rights reserved. Written by <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> and ...
code_c
code
878
null
<reponame>tspspi/piezoboard3dprinter #ifndef __is_included__c8d7190b_df68_11eb_ba9a_70f3950389a2 #define __is_included__c8d7190b_df68_11eb_ba9a_70f3950389a2 1 enum i2cError { i2cE_Ok = 0, i2cE_InvalidParam, i2cE_OutOfMemory, i2cE_Failed, i2cE_DeviceNotFound, i2cE_ImplementationError, }; struct i2cBus; str...
code_c
code
335
null
/****************************************************************************** * Copyright (c) <NAME> - All rights reserved. * * This file is part of the LIBXSMM library. * * * * For information on the lic...
code_c
code
5,689
null
<filename>moro8asm.c<gh_stars>0 #include "moro8asm.h" #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif #ifdef HAVE_STDIO_H #include <stdio.h> #endif #ifdef HAVE_STRING_H #include <string.h> #endif typedef struct moro8asm_hooks moro8asm_hooks; #if defined(_MSC_VER) /* work around MSVC error C2322: '...' address of ...
code_c
code
8,494
null
<gh_stars>0 // // CNjacob_CoreBluetooth.h // CNjacob_CoreBluetooth // // Created by jacob on 2019/4/20. // #ifndef CNjacob_CoreBluetooth_h #define CNjacob_CoreBluetooth_h #if __has_include(<CNjacob_CoreBluetooth/CNjacob_CoreBluetooth.h>) #import <CNjacob_CoreBluetooth/CNjacob_CoreBluetoothManager.h> #import <CNjac...
code_c
code
327
null
<reponame>helloworldsmart/Swift101<gh_stars>1-10 // // Square.h // prog8.2 // // Created by Michael on 2021/2/3. // #import <Foundation/Foundation.h> #import "Rectangle.h" @interface Square : Rectangle -(void) setSide: (int) s; -(int) side; @end
code_c
code
71
null
/*******************************************************************\ Module: Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_ANSI_C_C_TYPECAST_H #define CPROVER_ANSI_C_C_TYPECAST_H #include <util/namespace.h> #include <util/expr.h> // try a type cast ...
code_c
code
642
null
#pragma once struct Matrix3x4 { float4 row_0; float4 row_1; float4 row_2; }; // Transform vector as position (w = 1) __device__ inline void matrix3x4_transform_position(const Matrix3x4 & matrix, float3 & position) { position = make_float3( matrix.row_0.x * position.x + matrix.row_0.y * position.y + matrix.row_0...
code_c
code
693
null
#pragma once #define INITGUID #include <d3d9.h> #include <ddraw.h> #include "../Libraries/DirectX81SDK/include/ddrawex.h" #include <memory> #include "Versions/AddressLookupTable.h" class m_IDirect3D; class m_IDirect3D2; class m_IDirect3D3; class m_IDirect3D7; class m_IDirect3DX; class m_IDirect3DDevice; class m_IDir...
code_c
code
1,753
null
/************************************************************************/ /* */ /* TCPStateMachine.c This the RFC 793 TCP State Machine */ /* */ /**************************...
code_c
code
21,716
null
/* * Copyright (C) 2018 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 app...
code_c
code
1,570
null
<reponame>LinuxUser404/smack-glibc /* Header for directory for shm/sem files. Copyright (C) 2014-2015 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 Licen...
code_c
code
834
null
<filename>src/meta19.lib/meta19/TypePackTemplate.Change.h #pragma once #include "TypePackTemplate.h" #include "nullptr_to.h" namespace meta19 { template<template<class...> class ToTpl, template<class...> class FromTpl, class... Ts> constexpr auto changeTypePackTemplateType(FromTpl<Ts...>*, TypePackTemplate<ToT...
code_c
code
150
null
<gh_stars>0 #include <linux/interrupt.h> #include <cust_eint.h> #include <linux/i2c.h> #include <linux/sched.h> #include <linux/kthread.h> #include <linux/rtpm_prio.h> #include <linux/wait.h> #include <linux/time.h> #include <linux/delay.h> #include "tpd_custom_s7300.h" #include "cust_gpio_usage.h" #include "tpd.h" #i...
code_c
code
10,019
null
<gh_stars>0 /*******************************************************************\ Module: Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_UTIL_MP_ARITH_H #define CPROVER_UTIL_MP_ARITH_H #include <string> #include <iosfwd> #include <limits> #include "b...
code_c
code
646
null
// Prototype, not accurate struct database { char *path; char *log_path; void *contents; FILE *log; }; // size 32 struct xcinfocache { char *cachefile; // struct database db; char *db; struct { short verbose; short nocache; } xcrun_config; char *developer_dir; ...
code_c
code
232
null
<filename>src/qanNavigable.h /* Copyright (c) 2008-2018, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this ...
code_c
code
4,092
null
// // ReportLineChartView.h // timeboy // // Created by whc on 15/6/18. // Copyright (c) 2015年 JungleSong. All rights reserved. // #import <UIKit/UIKit.h> @interface ReportLineChartView : UIView @property (nonatomic ,strong)PNLineChart *rlc_lineChart; @property (nonatomic ,assign)ReportT...
code_c
code
190
null
#ifndef _WS2812_H #define _WS2812_H #include <avr/io.h> #include <stdint.h> #ifndef NOOP #define NOOP asm volatile("nop" ::) #endif //Yuck, let's just WS this sucker. #define SEND_WS( var ) \ DDRD |= _BV(3); \ mask = 0x80; \ v = var; \ while( mask ) \ { \ if( mask & v ) \ { \ PO...
code_c
code
206
null