text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
// Copyright 2021 The Fuchsia 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 SRC_STORAGE_FSHOST_COPIER_H_ #define SRC_STORAGE_FSHOST_COPIER_H_ #include <lib/zx/status.h> #include <filesystem> #include <list> #include <memo...
code_c
code
476
null
#include "sum_ints.h" static int sum = 0; int sum_ints(const int kNum) { return (sum += kNum); }
code_c
code
29
null
<reponame>raptoravis/DiligentCore /* Copyright 2019 Diligent Graphics LLC * * 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,773
null
<gh_stars>1-10 // // TimeSyncObject.h // CommunicationFramework // // Created by <NAME> on 08/04/2017. // Copyright © 2017 Appssemble. All rights reserved. // #import <Foundation/Foundation.h> @interface TimeSyncObject : NSObject @property (assign, nonatomic) unsigned long long date; @property (assign, nonatomic...
code_c
code
122
null
/* See LICENSE for license details */ /* */ struct appl_pci_handle; struct appl_pci_descriptor { unsigned short int i_segment_number; unsigned short int i_bus_number; unsigned short int i_device_number; unsigned short int i_function_number; }; /* struct appl_pci_d...
code_c
code
394
null
<reponame>Surya-98/Snapcuit /************* * Header file for input.c * 1999 <NAME> ************/ #ifndef ngspice_INPUT_H #define ngspice_INPUT_H int input(FILE *fp); #endif
code_c
code
51
null
<filename>framegraph/Vulkan/Utils/FGEnumCast.h // Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE' #pragma once #include "VEnumCast.h" // for FG_PRIVATE_VKPIXELFORMATS namespace FG { /* ================================================= FGEnumCast (VkFormat) =====================================...
code_c
code
2,318
null
<gh_stars>0 #include <stdio.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <stdlib.h> //Cygwin e.a. needs O_BINARY. Don't miscompile if it's not set. #ifndef O_BINARY #define O_BINARY 0 #endif typedef struct __attribute__((packed...
code_c
code
512
null
/* * Copyright (c) 2019 <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 Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribut...
code_c
code
1,892
null
/*- * Copyright (c) 2010 Isilon Systems, Inc. * Copyright (c) 2010 iX Systems, Inc. * Copyright (c) 2010 Panasas, Inc. * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
code_c
code
963
null
<reponame>Anotra/threadpool4c<gh_stars>0 #define _XOPEN_SOURCE 700 #include <pthread.h> #include <string.h> #include "threadpool.h" struct joinable_thread { ThreadPool *pool; struct joinable_thread *next; pthread_t thread; }; struct threadpool { pthread_attr_t thread_attributes; pthread_mutex_t lock; pt...
code_c
code
2,570
null
// -*- c++ -*- #ifndef MASTERNODEMANAGER_H #define MASTERNODEMANAGER_H #include "optionsmodel.h" #include "rpc/util.h" #include "sync.h" #include <QWidget> #include <QTimer> #include <QFuture> #include "uint256.h" #include "sync.h" #include "net.h" #include "key.h" //#include "primitives/transaction.h" //#include "m...
code_c
code
568
null
// Copyright 2016 <NAME> #pragma once #include "IDetailCustomization.h" #include "Runtime/SlateCore/Public/Input/Reply.h" #include "Runtime/SlateCore/Public/Types/SlateEnums.h" #include "Runtime/Slate/Public/Widgets/Input/SMenuAnchor.h" class UDialogStartNode; class FCustomNodeBaseDetail : public IDetailCustomizatio...
code_c
code
1,872
null
<gh_stars>1-10 // -*- C++ -*- //============================================================================= /** * @file OS_NS_math.h * * $Id: OS_NS_math.h 89470 2010-03-12 12:12:12Z olli $ * * @author <NAME> <<EMAIL>> * @author <NAME><<EMAIL>> * @author and a cast of thousands... * * Ori...
code_c
code
820
null
_Bool nondet_bool(); void f(int d) { int x, y, k, z = 1; L1: while (z < k) { z = 2 * z; } assert(z>=1); L2: while (x > 0 && y > 0) { _Bool c = nondet_bool(); if (c) { P1: x = x - d; y = nondet_bool();; z = z - 1; } else { y = y - d; } } } void main() { _Bo...
code_c
code
112
null
/****************************************************************************** The MIT License(MIT) Embedded Template Library. https://github.com/ETLCPP/etl https://www.etlcpp.com Copyright(c) 2018 jwellbelove Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
code_c
code
3,886
null
#include "journal.h" #include "entry.h" #include "zettelkasten.h" #include <string.h> #include <menu.h> #include <stdio.h> #include <stdlib.h> int zk_screen_link_context( void ) { int row, col; int c; int tag_len = 0; WINDOW * _t_window; char * title = calloc( 100, sizeof( char ) ); ...
code_c
code
638
null
// Copyright 2018 Espressif Systems (Shanghai) PTE 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 copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
code_c
code
8,477
null
<filename>src/modules/adapter/converter.h /** @file converter.h @brief This file is part of Kalinka mediaserver. @author <NAME> <<EMAIL>> Copyright (c) 2007-2012 Kalinka Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation fi...
code_c
code
883
null
<gh_stars>0 /* * Copyright (C) 2002-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * * This copyrighted material is made available to anyone wishing to use, * modify, copy, or redistribute it subject to the terms and co...
code_c
code
4,488
null
// // Created by <NAME> on 20/04/2020. // #ifndef PATH_PLANNING_PLANNER_H #define PATH_PLANNING_PLANNER_H #include "trajectory_generator.h" #include "sensor_fusion.h" #include "cost.h" class Planner { public: Planner(TrajectoryGenerator &traj, SensorFusion &fusion, Car &autoCar, Cost &cost) : trajec...
code_c
code
285
null
<reponame>SBKarr/stappler /** Copyright (c) 2016-2018 <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 limitation the rights to use, copy, mo...
code_c
code
1,318
null
<filename>src/drv/MAX7219.h /////////////////////////////////////////////////////////////////////////////// // \author (c) <NAME> (<EMAIL>) // 2014-2017, PALANDesign Hannover, Germany // // \license The MIT License (MIT) // // This file is part of the vic library. // Permission is hereby granted, fre...
code_c
code
2,697
null
/* * Copyright (C) 2002-2010 The DOSBox Team * * 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 * (at your option) any later version. * * This p...
code_c
code
5,516
null
/*! \brief simple implement of quick sort * \author <NAME> * \date 2018-04-21 * \email <EMAIL> * */ #ifndef _SORT_QUICK_H_ #define _SORT_QUICK_H_ #ifdef __cplusplus extern "C" { #endif #include "sort_common.h" /* \brief quick sort * \param array array to sorted * \note time:O(n2),space:O(1),nonstable ...
code_c
code
119
null
/* * Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io> * * This file is part of the mod.io SDK. * * Distributed under the MIT License. (See accompanying file LICENSE or * view online at <https://github.com/modio/modio-sdk/blob/main/LICENSE>) * */ #pragma once #include "modio/detail/ModioSDKSess...
code_c
code
798
null
<reponame>Yukkurigame/Yukkuri /* * proto.h * * Created on: 25.04.2012 * */ #ifndef PROTO_H_ #define PROTO_H_ #include "scripts/LuaScript.h" #include "units/Prototypes.h" #include "types.h" void clean_prototypes( ); class ProtoManager : public LuaScript { public: ProtoManager(); ~ProtoManager(); int Loa...
code_c
code
166
null
#pragma once #include "GMesh.h" // Loader for the obj model format class ObjModel : public GMesh { private: public: static GMesh * loadModel(const char* filename) { std::ifstream in; in.open(filename, std::ifstream::in); if (in.fail()) return nullptr; std::string sline; GMesh* amesh = new GMesh(); ...
code_c
code
432
null
#pragma once #include <Core/Field.h> namespace DB { class IDataType; /** Used to interpret expressions in a set in IN, * and also in the query of the form INSERT ... VALUES ... * * To work correctly with expressions of the form `1.0 IN (1)` or, for example, `1 IN (1, 2.0, 2.5, -1)` work the same way as `1 I...
code_c
code
186
null
<gh_stars>1-10 #define QUIT 5 #define HOTEL1 180.00 #define HOTEL2 225.00 #define HOTEL3 255.00 #define HOTEL4 355.00 #define DISCOUNT 0.95 #define STARS "******************************" int menu(void); int getnights(void); void showprice(double rate, int nights);
code_c
code
76
null
<gh_stars>10-100 // SPDX-License-Identifier: GPL-2.0-only /* * simone.c -- ASoC audio for Simplemachines Sim.One board * * Copyright (c) 2010 <NAME> * * Based on snappercl15 machine driver by <NAME>. */ #include <linux/init.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/soc/cirru...
code_c
code
571
null
<reponame>heig-vd-ihm2017/ffmpeg-ui<gh_stars>0 /** file: summarywindow.h authors: <NAME>, <NAME>, <NAME> */ #ifndef SUMMARYWINDOW_H #define SUMMARYWINDOW_H #include <QWidget> #include <childwindow.h> namespace Ui { class SummaryWindow; } /** * @brief The SummaryWindow class is the controller * for th...
code_c
code
324
null
<filename>src/tbox/memory/small_allocator.h<gh_stars>1-10 /*!The Treasure Box Library * * 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
849
null
/* * Font Packer * * This program packs a 4 bit left shifted font so that * two characters are stored in a single one. * The resulting font can be used with the TI calculators and * the ZX Spectrum in ANSI VT mode building the libraries with * the -DPACKEDFONT flag set. * * Example: fontpack F4.BIN F4PACK.BIN ...
code_c
code
404
null
<reponame>lijunjie0801/YangFanNews-hybrid // // LoginViewController.h // IOSFramework // // Created by xu on 16/4/12. // // #import <UIKit/UIKit.h> @interface LoginViewController : UIViewController<UITextFieldDelegate> @end
code_c
code
65
null
/** * Copyright (c) 2013 - 2018, Nordic Semiconductor ASA * * 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,754
null
/* * Copyright (C) 2007 <NAME> (<EMAIL>) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple 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...
code_c
code
2,623
null
<filename>source/blender/windowmanager/message_bus/wm_message_bus.h /* * 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 (at your option) any later versio...
code_c
code
3,007
null
/* * Copyright (c) 2017-present ViyaDB Group * * 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 ...
code_c
code
413
null
<filename>include/slg/core/namedobject.h /*************************************************************************** * Copyright 1998-2017 by authors (see AUTHORS.txt) * * * * This file is part of LuxRender. ...
code_c
code
736
null
/********************************************************************/ /** Copyright(c) 1996 Microsoft Corporation. **/ /********************************************************************/ //*** // // Filename: arapio.h // // Description: Contains all the defines, macros, structures ...
code_c
code
3,299
null
<reponame>armroyce/Unreal // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #include "SlateBasics.h" #if WITH_EDITOR #include "AssetData.h" #endif struct FSearchEntry { FString Title; FString URL; bool bCategory; #if WITH_EDITOR FAssetData AssetData; #endif static FSearchEntry* MakeCate...
code_c
code
728
null
// // PKParserFactory.h // ParseKit // // Created by <NAME> on 12/12/08. // Copyright 2009 <NAME> All rights reserved. // #import <Foundation/Foundation.h> @class PKGrammarParser; @class PKToken; @class PKTokenizer; @class PKParser; @class PKCollectionParser; void PKReleaseSubparserTree(PKParser *p); typedef en...
code_c
code
382
null
#ifndef _RHODEFS_H_ #define _RHODEFS_H_ #if defined(__SYMBIAN32__) # define OS_SYMBIAN #elif defined(_WIN32_WCE) # define OS_WINCE _WIN32_WINCE #elif defined(WIN32) # define OS_WINDOWS #elif defined(__CYGWIN__) || defined(__CYGWIN32__) # define OS_CYGWIN #elif defined(linux) || defined(__linux) || defined(__linux__) #...
code_c
code
564
null
<filename>Overshare Kit/OSKFacebookPublishingViewController.h // // OSKFacebookPublishingViewController.h // Overshare // // Created by <NAME> on 10/16/13. // Copyright (c) 2013 Overshare Kit. All rights reserved. // @import UIKit; #import "OSKPublishingViewController.h" @interface OSKFacebookPublishingViewContro...
code_c
code
108
null
<filename>cpp/kvstore/kvstore_client.h #ifndef CSCI499_CHENGTSU_KVSTORE_CLIENT_H #define CSCI499_CHENGTSU_KVSTORE_CLIENT_H #include "kvstore/kvstore_interface.h" #include <memory> #include <string> #include <vector> #include <grpcpp/grpcpp.h> #include "kvstore.grpc.pb.h" // A client to make RPC to the remote key-v...
code_c
code
315
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
736
null
/* * Copyright (c) 2017-2018, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include "sst_test_service_veneers.h" #include "sst_test_service.h" #include "secure_fw/core/tfm_secure_api.h" #include "secure_fw/spm/service_defs.h" enum tfm_sst_err_t sst_test_service_veneer_setup(v...
code_c
code
485
null
#pragma once #include <sstream> #include <iostream> #include "meta.h" template<int TAG, typename VALUE_TYPE, VALUE_TYPE INVALID, VALUE_TYPE DEFAULT = INVALID, typename... ADDITIONAL_CASTS> class TaggedInteger { public: using ValueType = VALUE_TYPE; constexpr static ValueType InvalidValue = INVALID; const...
code_c
code
1,766
null
<reponame>mmk-code/blender /* * 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 (at your option) any later version. * * This program is distributed in t...
code_c
code
757
null
#ifndef MAP_H_INCLUDED #define MAP_H_INCLUDED #include "minorGems/system/Time.h" #include "../gameSource/GridPos.h" #include "../gameSource/transitionBank.h" typedef struct ChangePosition { int x, y; // true if update should be sent to everyone regardless // of distance (like pos...
code_c
code
2,134
null
<filename>include/c99_inttypes.h /************************************************************************************************************ * Copyright (c) 2017, Dolby Laboratories Inc. * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted * prov...
code_c
code
879
null
#ifndef HLSL_PREPROCESSOR_H #define HLSL_PREPROCESSOR_H #include "Engine.h" #include "CodeWriter.h" namespace M4 { struct Logger; struct Allocator; class HLSLPreprocessor { public: static const int s_maxPathLength = 260; HLSLPreprocessor(Logger* logger, Allocator* allocator, FileReadCallback fileRea...
code_c
code
312
null
<reponame>pragmaticQt/SortFilterProxyModel<filename>src/proxyroles/proxyrolecontainer.h #ifndef PROXYROLECONTAINER_H #define PROXYROLECONTAINER_H #include <QList> #include <QQmlListProperty> class ProxyRole; class QQmlSortFilterProxyModel; class ProxyRoleContainer { public: virtual ~ProxyRoleContainer() = defaul...
code_c
code
363
null
<filename>vendor/Audio/AudioHelper.h<gh_stars>1-10 #import <Foundation/Foundation.h> #import <AudioToolbox/AudioToolbox.h> @interface AudioHelper : NSObject + (void) vibrate; @end
code_c
code
52
null
// // Copyright (c) 2013 <NAME> <https://christopherbaker.net> // // SPDX-License-Identifier: MIT // #pragma once #include "Poco/Exception.h" #include "Poco/Net/MailMessage.h" #include "ofEvents.h" namespace ofx { namespace SMTP { /// \brief A class used for event callbacks. class ErrorArgs { public: /// \b...
code_c
code
506
null
<reponame>ut-issl/c2a-core /** * @file * @brief イベント発火型処理を行う * @note event_logger の情報を元に指定した BC (対応 BC) を展開する (Event 発火に応じて対応を行う) * @note EH のベストプラクティス * - いろんな箇所で FDIR を組むと,何が発動しているかわかりにくかったり,ログが散逸するので, * できる限りすべての対応を EH で行うと良い * - EH で対応を行う,ということは,以下のログが必ず取れている,ということになる * ...
code_c
code
5,485
null
//******************************************************************************* // COPYRIGHT NOTES // --------------- // This is a part of the BCGControlBar Library // Copyright (C) 1998-2006 BCGSoft Ltd. // All rights reserved. // // This source code can be used, distributed or modified // only under terms and condi...
code_c
code
688
null
/* * Copyright 2011 Advanced Micro Devices, 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 restriction, including without limitation * the rights to use, copy, modify, m...
code_c
code
737
null
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2018, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
code_c
code
2,014
null
<filename>src/plugins/intel_gpu/src/kernel_selector/core/actual_kernels/mvn/mvn_kernel_bfyx_opt.h // Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "mvn_kernel_base.h" #include <vector> namespace kernel_selector { class MVNKernelBfyxOpt : public MVNKernelB...
code_c
code
341
null
<reponame>eWert-Online/esy-cmake<gh_stars>0 #ifndef PLAINOBJECT_H #define PLAINOBJECT_H // Class that is plain C++, no Qt involved. class PlainObject { public: PlainObject(); void doSomething(); }; #endif
code_c
code
60
null
<filename>dep/acelite/ace/Vector_T.h // -*- C++ -*- //========================================================================== /** * @file Vector_T.h * * $Id: Vector_T.h 92069 2010-09-28 11:38:59Z johnnyw $ * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> */ //===================================...
code_c
code
2,214
null
/* Copyright (c) 2012, <NAME> (<EMAIL>) * * This file is part of CREST, which is distributed under the revised * BSD license. A copy of this license can be found in the file LICENSE. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty ...
code_c
code
182
null
<gh_stars>1000+ // // UIImage+Crop.h // LLSimpleCamera // // Created by <NAME> on 27/10/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage(CropCategory) - (UIImage *)crop:(CGRect)rect; @end
code_c
code
70
null
// // NO416.c // NO416 // // Created by wanyakun on 2020/11/26. // #include "NO416.h" #include <stdlib.h> #include <string.h> bool canPartition(int* nums, int numsSize) { int sum = 0; for (int i = 0; i < numsSize; i++) { sum += nums[i]; } // 非偶数,无法划分 if (sum%2 != 0) { return fa...
code_c
code
456
null
<reponame>rojasdiegopro/epitech-42sh /* ** EPITECH PROJECT, 2020 ** find_binary ** File description: ** test extend_path */ #include <criterion/criterion.h> #include <criterion/redirect.h> #include "extend_path.h" Test(extend_path, simple_path_extension) { const char *path = "/bin/"; const char *bin = "bash"...
code_c
code
140
null
<gh_stars>1-10 /* * Copyright (c) <NAME>, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * You ma...
code_c
code
1,616
null
#pragma once #include <iostream> using std::cout; using std::endl; class RingBuffer { private: int* data; unsigned int size; unsigned int pos = 0; public: RingBuffer(unsigned int size = 10); RingBuffer(unsigned int size, int init_value); RingBuffer(unsigned int size, const int* init_data); ~RingBuff...
code_c
code
152
null
/* sensor_isl29035.c - driver for ISL29035 light sensor */ /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <kernel.h> #include <init.h> #include <i2c.h> #include <sensor.h> #include <misc/__assert.h> #include <logging/log.h> #include "isl29035.h" #define LOG_LEVEL C...
code_c
code
1,055
null
///////////////////////////////////////////////////////////////// /* Arduino Library to make analog or thumb Joysticks working as buttons. Use callback functions to track press, release and hold actions for Up, Down, Left and Right movements on Analog or Thumb Joysticks. Tested with Arduino UNO. Created by rmsk13, Dece...
code_c
code
611
null
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file atomicAdjust.h * @auth...
code_c
code
696
null
/**************************************************************************** THIS SOFTWARE IS NOT COPYRIGHTED HP offers the following for use in the public domain. HP makes no warranty with regard to the software or it's performance and the user accepts the software "AS IS" with all faults....
code_c
code
5,720
null
<reponame>timgates42/taisei<filename>src/stages/stage5/spells/natural_cathode.c /* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include...
code_c
code
418
null
/** * MaNGOS is a full featured server for World of Warcraft, supporting * the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8 * * Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
code_c
code
1,435
null
<gh_stars>1-10 /* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SKSL_SWITCHCASE #define SKSL_SWITCHCASE #include "SkSLExpression.h" #include "SkSLStatement.h" namespace SkSL { /** * A single case of a 'switch' st...
code_c
code
336
null
/* * ATypes.h: * Macro definitions for generic data types * * Version: 1.0 * Date: Mon Jun 7 1999 * Copyright (C) 1999, <NAME> */ #ifndef ATYPES_H #define ATYPES_H /* 1. GENERAL TYPES AND CONSTANTS */ #ifndef String typedef char * String; #endif #ifndef Bool typedef int Bool; #define FALSE 0 #define TRUE 1 #endif ...
code_c
code
98
null
<gh_stars>1-10 /******************************************************************************* * File Name: Sample_Clock.h * Version 2.10 * * Description: * Provides the function and constant definitions for the clock component. * * Note: * **************************************************************************...
code_c
code
1,422
null
<gh_stars>10-100 // 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 THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_EXCLUSIONS_NG_EXCLUSION_SPACE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_EXCL...
code_c
code
7,715
null
<filename>src/ringbuffer.c<gh_stars>1-10 /* * (C) 2018 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or with‐ * out modification, are permitted provided that the following con‐ * ditions are met: * * 1. Redistributions of source code must retain the above copyright ...
code_c
code
1,802
null
#ifndef WIFI_H #define WIFI_H #include "driver/gpio.h" #include <iostream> #include <string.h> #include <string> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_system.h" #include "esp_wifi.h" #include "esp_event_loop.h" #include "esp_log.h" #include <lwip/ip...
code_c
code
677
null
/* * mjs copyright * */ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); /* * "Plug and Play" functionality. * * We use the PnP enumerators to obtain identifiers for installed hardware, * and the contents of a database to determine modules to be loaded to support * such hardware. */ #include <stand.h> #include...
code_c
code
1,099
null
<filename>user-contributed/lblOLD/xview/segal.new/common.h /* * common.h - to be included with all SEGAL source files. * * By <NAME> * */ /***** Include Files *****/ #include <stdio.h> #include <memory.h> #include <math.h> #include <sys/param.h> #include <sys/types.h> #include <varargs.h> /* XView includes */ #i...
code_c
code
3,933
null
/** @file contingency.c * @brief This file defines the Cont data structure and its associated methods. * * This file is part of PFNET. * * Copyright (c) 2015, <NAME>. * * PFNET is released under the BSD 2-clause license. */ #include <pfnet/contingency.h> #include <pfnet/json_macros.h> // Gen outage struct Ge...
code_c
code
1,940
null
/* MACHINE GENERATED; DO NOT EDIT */ #define VMX_ASSIST_CTX_GS_SEL 0x78 #define VMX_ASSIST_CTX_FS_SEL 0x68 #define VMX_ASSIST_CTX_DS_SEL 0x38 #define VMX_ASSIST_CTX_ES_SEL 0x48 #define VMX_ASSIST_CTX_SS_SEL 0x58 #define VMX_ASSIST_CTX_ESP 0x4 #define VMX_ASSIST_CTX_EFLAGS 0x8 #define VMX_ASSIST_CTX_CS_SEL 0x28 #define ...
code_c
code
106
null
<filename>src/cmd_handlers/cmd_turnright_handler.h #ifndef CMD_TURNRIGHT_HANDLER_H #define CMD_TURNRIGHT_HANDLER_H #include "icmdhandler.h" #include <QString> #include <QVariant> class CmdTurnrightHandler : public ICmdHandler { public: virtual QString cmd(); virtual void handle(QWebSocket *pClient, IControlSe...
code_c
code
113
null
<filename>Source/STM8S_Slave/User/App/task.c #include "task.h" #include <stdlib.h> #include <string.h> //#define SLAVE_RELAY #define SLAVE_LIGHT frame_t frameTx; frame_t frameRx; uint8_t debug = 0; uint16_t debug2 = 0; void taskInit(void) { //! Set clock 16MHz CLK_HSICmd(ENABLE); CLK_HSIPrescalerConfig(C...
code_c
code
1,180
null
/* * Copyright (C) 2018-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include <atomic> #include <condition_variable> #include <cstdint> #include <map> #include <mutex> #include <queue> #include <set> namespace NEO { class DrmMemoryManager; class BufferObject; class Thread; enum clas...
code_c
code
347
null
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef mozilla_ipc_nsiipcbackgroundchildcreatecallback_h #define mozilla_ipc_nsiipcbackgroundchildcreatecallback_...
code_c
code
914
null
#ifndef CREATEEDGEDIALLOG_H_ #define CREATEEDGEDIALLOG_H_ #include "geoDialogBase.h" namespace Ui { class CreateLineDialog; } namespace GeometryWidget { class GeoPointWidget; class GEOMETRYWIDGETSAPI CreateLineDialog : public GeoDialogBase { Q_OBJECT public: CreateLineDialog(GUI::Main...
code_c
code
269
null
<filename>Example/WJCoreDataAccess-example/Pods/Headers/Public/WJCommon/NSData+WJArchive.h<gh_stars>0 // // NSData+WJArchive.h // // __ __ _____ // /\ \ __/\ \ /\___ \ // \ \ \/\ \ \ \\/__/\ \ // \ \ \ \ \ \ \ _\ \ \ // \ \ \_/ \_\ \/\ \_\ \ // \ `\___x___/\ \____/ // '\/__//__/ \/___/ // /...
code_c
code
188
null
/* Typedef for production information table */ typedef struct { char* definition; char* emit; int length; int lhs; } @@prefix_prodinfo;
code_c
code
40
null
/*++ Copyright (c) Microsoft Corporation. All rights reserved. You may only use this code if you agree to the terms of the Windows Research Kernel Source Code License agreement (see License.txt). If you do not agree to the terms, do not use the code. Module Name: mapcache.c Abstract: This module contain...
code_c
code
22,841
null
/* * Copyright (c) 2011-2013, 2016-2017 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above cop...
code_c
code
1,393
null
<filename>darkness-engine/include/tools/image/Image.h #pragma once #include <string> #include <vector> #include <memory> #include "engine/primitives/Color.h" #include "ImageIf.h" // Factory class to create any supported image namespace engine { namespace image { enum class ImageType { ...
code_c
code
212
null
/* ------------------------------------------------------------------------- */ /* * date_time.h * * Copyright (c) 2004 - 2009, clown. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ar...
code_c
code
2,852
null
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_TEST_CHROMEDRIVER_NET_SYNC_WEBSOCKET_FACTORY_H_ #define CHROME_TEST_CHROMEDRIVER_NET_SYNC_WEBSOCKET_FACTORY_H_ #include <memory> #inc...
code_c
code
184
null
<reponame>chlds/util<gh_stars>0 /* Reckon. Remarks: Escape sequences */ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl cli_reckon(signed short(arg/* align */))) { auto signed char *b; auto coord_t coord; auto signed i,r; auto signed short x; auto signed short flag; if(arg<(0x0...
code_c
code
158
null
// // ModulePullRefresh.h // MODULEPULLREFRESH // // CREATED BY <NAME> ON 2016-10-12. // COPYRIGHT (C) 2016 <NAME>. ALL RIGHTS RESERVED. // #import <Foundation/Foundation.h> #import <MJRefresh/MJRefresh.h> FOUNDATION_EXPORT NSString *const LIB_PULL_REFRESH_BUNDLE_ID; // MARK: - ModulePullRefresh @interface Modu...
code_c
code
179
null
#ifndef _MATRIX_H_ #define _MATRIX_H_ #include <hellfire.h> //#include <stdio.h> //#include <stdlib.h> //#include <string.h> void matrix_print(uint8_t *a, int16_t h, int16_t w); void matrix_print_sub(uint8_t *a, int16_t h, int16_t w, int16_t k, int16_t l, int16_t bh, int16_t bw); void set_sub_matrix(uint8_t *a, uint8...
code_c
code
176
null