text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
#include <stdio.h> unsigned int invert(unsigned int x, int p, int n); unsigned int setbits(unsigned int x, int p, int n, unsigned int y); int main() { unsigned int x = 0b01010011; printf("invert(0b01010011, 4, 3): %u\n", invert(x, 4, 3)); } /* invert: returns x whth the n bits that begin at position p i...
code_c
code
226
null
<gh_stars>0 #pragma once #include "TestSettingsDefinition.h" #include "CaeserCypherEncryptionAdapter/EncryptionAdapter.h" #include "JSONSettings/SettingsService.h" #include "RapidJSONAdapter/JSONAdapter.h" #include <boost/filesystem.hpp> #include <boost/optional.hpp> using namespace testing; namespace systelab { ...
code_c
code
1,300
null
<gh_stars>0 // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #ifdef __cplusplus #include <cstdlib> #include <cstddef> #include <cstdbool> #include <cstdint> #else #include <stdlib.h> #include <stddef.h> #include <std...
code_c
code
29,893
null
<reponame>qtau-devgroup/libstand<gh_stars>1-10 /* Signal.h from libstand http://github.com/qtau-devgroup/libstand by Hal@ShurabaP, BSD license */ #ifndef SYNTHESIS_SIGANAL_H #define SYNTHESIS_SIGANAL_H #include <QFileInfo> #include <QVector> namespace stand { /** * @brief The Siganal class represents a signal that ...
code_c
code
287
null
/********************************************************************* * * (C) Copyright Broadcom Corporation 2013-2017 * * 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 * * htt...
code_c
code
2,436
null
<filename>firmware/coreboot/src/vendorcode/amd/agesa/f15tn/Proc/CPU/Family/0x15/TN/cpuF15TnCoreAfterReset.c<gh_stars>1-10 /* $NoKeywords:$ */ /** * @file * * AMD Family_15 Trinity after warm reset sequence for core P-states * * Performs the "Core Minimum P-State Transition Sequence After Warm Reset" * as describe...
code_c
code
3,092
null
<reponame>mcoughli/platform-dalvik /* * Copyright (C) 2008 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/LICEN...
code_c
code
764
null
/* * Copyright (C) 2015 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is d...
code_c
code
3,055
null
<filename>CoderLN-UIKit/NSObject/UIPress.h /* * UIPress.h * * UIKit (c) 2005-2015 */ #import <Foundation/Foundation.h> #import <UIKit/UITouch.h> @class UIGestureRecognizer; @class UIResponder; @class UIWindow; NS_ENUM_AVAILABLE_IOS(9_0) typedef NS_ENUM(NSInteger, UIPressPhase) { UIPressPhaseBegan, //...
code_c
code
466
null
<reponame>ishine/bolt // Copyright (C) 2019. Huawei Technologies Co., Ltd. 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 limitat...
code_c
code
1,401
null
// // SampleInfoFooterView.h // Xieshi // // Created by Tesiro on 16/7/14. // Copyright © 2016年 Lessu. All rights reserved. // #import "XSView.h" @interface SampleInfoFooterView : XSView @property (nonatomic, strong)UIView *viewBG; @property (nonatomic, strong)UILabel *labelMakeDate; @property (nonatomic, stro...
code_c
code
99
null
<filename>src/gnu/RNG.h // This may look like C code, but it is really -*- C++ -*- /* Copyright (C) 1988 Free Software Foundation written by <NAME> (<EMAIL>) This file is part of the GNU C++ Library. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library Genera...
code_c
code
612
null
#ifndef SWAY_GRAPHICS_RENDERQUEUEPRIORITY_H #define SWAY_GRAPHICS_RENDERQUEUEPRIORITY_H #include "../defines.h" NAMESPACE_BEGIN(sway) NAMESPACE_BEGIN(graphics) /*! * Типы приоритетов. */ enum RenderQueuePriority { kRenderQueuePriority_VeryLow = 0, /*!< Очень низкий приоритет. */ kRenderQueuePriority_Low = ...
code_c
code
182
null
<gh_stars>1-10 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #import <Foundation/Foundation.h> #import "MSChannelDelegate.h" #import "MSEventPropertiesInternal.h" NS_ASSUME_NONNULL_BEGIN @interface MSPropertyConfigurator () <MSChannelDelegate> /** * Initialize pro...
code_c
code
205
null
<reponame>SIMHANGSUB/HoGoS #include "fs.h" #include "function.h" #include "data.h" void initFS() { readSuperblock(); readGroupblock(); readBitmap(); readRootDir(); } void readSuperblock() { // read block 2 in HDD - superblock HDDread(superblock_sector,diskbuffer); // save diskbuffer to su...
code_c
code
2,640
null
// // SKProductsRequest.h // StoreKit // // Copyright 2009 Apple, Inc. All rights reserved. // #import <StoreKit/SKRequest.h> @class SKProductsRequest, SKProductsResponse; @protocol SKProductsRequestDelegate <SKRequestDelegate> @required // Sent immediately before -requestDidFinish: - (void)productsRequest:(SKP...
code_c
code
337
null
//compressor_factory.h #ifndef _COMPRESSOR_FACTORY_H_ #define _COMPRESSOR_FACTORY_H_ #include <memory> #include "model.h" #include "dictionary_model.h" #include "encoder.h" #include "fresh_encoder.h" #include "number_encoder.h" #include "compressor_config.h" using std::shared_ptr; class CompressorFactory{ public: ...
code_c
code
456
null
/*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> <<EMAIL>>. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
code_c
code
1,150
null
#include <stdbool.h> #include <stdio.h> void bubbleSort(int list[], int listLength) { int top, i; bool sorted = false; // add later for (top = listLength - 1; top > 0 && !sorted; top--) { sorted = true; for (i = 0; i < top; i++) if (list[i] > list[i + 1]) { int temp = list[i]; list...
code_c
code
181
null
/* C99 'for' loops with declarations */ #include <stdio.h> int main() { int i; for (i = 0; i < 3; i++) printf("loop1: %d\n", i); for (int i = 0; i < 3; i++) printf("loop2: %d\n", i); printf("old i = %d\n", i); for (int i = 0, j; i < 3; i++) { j = i * 2 + 1; printf("loop3: %d %d\n", i, j); } printf("...
code_c
code
134
null
<filename>pico/msmem.c<gh_stars>1-10 #ifndef MSC_MALLOC #define WIN31 #define STRICT #include <windows.h> #include <toolhelp.h> #include <stdio.h> #include "mswin.h" /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * * Memory allocation routines. * *++++++++++++...
code_c
code
7,972
null
#ifndef JIMI_HTTP_STRINGREF_H #define JIMI_HTTP_STRINGREF_H #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif #include <stdint.h> #include <string.h> #include <cstdint> // for std::intptr_t #include <cstddef> // for std::ptrdiff_t #include <string> #include <type_traits> #include "jimi/basic/stddef....
code_c
code
2,337
null
/* -*- mode: C -*- */ /* IGraph library. Copyright (C) 2005-2012 <NAME> <<EMAIL>> 334 Harvard street, Cambridge, MA 02139 USA 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; e...
code_c
code
21,428
null
#define bn2_thresh {\ -685, \ 1427, \ } #define bn2_sign {\ } #define bn2_offset {\ 57128, \ 60892, \ }
code_c
code
30
null
<reponame>zhchuu/OJ-Solutions class Solution { public: vector<vector<string>> groupAnagrams(vector<string>& strs) { vector<vector<string>> ans; if(strs.empty()) return ans; map<string, vector<string>> m; for(int i=0; i<strs.size(); i++){ string s = strs[i]; sort(s.begin(), s.end()); if(m.count(s)...
code_c
code
164
null
/** * Copyright 2007-2011 University Of Southern California * * 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 b...
code_c
code
362
null
#include <stdio.h> #include <stdlib.h> #include <cmssys.h> #include <string.h> int main(int argc, char *argv[]) { int rc; char *ret; char *binary = "BINARY\x00ZZZ"; printf("Call/Arg Test\n"); rc = CMScommand("tstarg2 Argument1 Argument2 Argument3", 0); if (rc == 1) printf(" - Call type 0 OK\n"...
code_c
code
1,196
null
/** * \copyright * Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ namespace NumLib { template <class T_X, class T_N...
code_c
code
169
null
<filename>sycl/myocyte/kernel/embedded_fehlberg_7_8.c // #ifdef __cplusplus // extern "C" { // #endif //========================================================================================================================================================================================================200 // DESCRIPT...
code_c
code
6,722
null
<filename>CommonTools/Utils/src/findDataMember.h #ifndef CommonTools_Utils_findDataMember_h #define CommonTools_Utils_findDataMember_h // -*- C++ -*- // // Package: Utilities // Class : findDataMember // /**\class findDataMember findDataMember.h CommonTools/Util/interface/findDataMember.h Description: finds ...
code_c
code
249
null
/*! \file rsx.h \brief RSX library. This library contains the necessary functions for handling the RSX, the accelerated 3D chip of the PS3. */ /*! \page rsxqk Quick guide to RSX programming RSX is the 3D accelerator processor of the PS3. Here are the basic steps to get it handle your 3D objects in your application...
code_c
code
1,468
null
/*========================================================================= Program: ParaView Module: $RCSfile$ Copyright (c) Kitware, Inc. All rights reserved. See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without...
code_c
code
1,843
null
/*******************************************************************\ Module: Weakest Preconditions Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_WP_H #define CPROVER_WP_H class codet; class exprt; class namespacet; /*! \defgroup gr_wp Weakest precon...
code_c
code
242
null
void h2dmpmphf_(int *nd, double _Complex *zk, double *rscale0, double *center0, double _Complex *mpole0, int *nterms0, double *rscale1, double *center1, double _Complex *mpole1, int *nterms1); void h2dmplochf_(int *nd, double _Complex *zk, double *rscale0, double...
code_c
code
214
null
/* Basic filename support macros. Copyright (C) 2001-2004, 2007-2015 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, or ...
code_c
code
560
null
<reponame>tomastomtom/FYP #ifndef _Sensor_h #define _Sensor_h #include "Arduino.h" // For IR Sensor, LED on = high, LEG off = low. class SensorClass { protected: int m_Pin; // public: SensorClass(int pin); bool getHiLow(); int getValue(); }; #endif
code_c
code
79
null
<reponame>hkt0504/LeapMotionARKit /******************************************************************************\ * Copyright (C) 2012-2013 Leap Motion, Inc. All rights reserved. * * Leap Motion proprietary and confidential. Not for distribution. * * Use subject to the terms of the Leap Moti...
code_c
code
49,239
null
<reponame>npocmaka/Windows-Server-2003 //============================================================================= // Copyright (c) 1997 Microsoft Corporation // File: table.c // // Abstract: // This module implements some of the routines associated with creating, // initializing, deleting timers, G...
code_c
code
27,457
null
<filename>Source/Omnia/Utility/Message.h<gh_stars>0 #pragma once #pragma warning(push) #pragma warning(disable: 4930) #include "Omnia/Omnia.pch" namespace Omnia { /** * @brief EventData Interface and EventPriority */ enum class EventPriority { // HowTo # Extend EventPriority: typedef DeriveEnum<EventPriorityExten...
code_c
code
923
null
<gh_stars>0 // // LoginViewModel.h // ReactiveCocoaDemoProject // // Created by <NAME> on 16/11/30. // Copyright © 2016年 Okar. All rights reserved. // #import <Foundation/Foundation.h> #import <ReactiveCocoa.h> #import <AFNetworking.h> @interface LoginViewModel : NSObject @property (nonatomic, strong) AFHTTPSess...
code_c
code
143
null
/* * virtio block driver for MINIX 3 * * Copyright (c) 2013, <NAME>, <<EMAIL>> * * This software is released under the BSD license. See the LICENSE file * included in the main directory of this source distribution for the * license terms and conditions. */ #include <assert.h> #include <minix/drivers.h> #inclu...
code_c
code
5,031
null
<filename>Include/MemoryBlock/MemoryBlockDup.h #ifndef HIERARCHY_MEMORY_BLOCK_DUP_H #define HIERARCHY_MEMORY_BLOCK_DUP_H #include "MemoryBlockT.h" ErrnoT MemoryBlockDupString(char **Destination, const MemoryBlockT *Source); ErrnoT MemoryBlockDupMemoryBlock(MemoryBlockT *Destination, ...
code_c
code
108
null
<gh_stars>1-10 /* * Copyright (c) 1989, 1993 * The 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 ...
code_c
code
3,284
null
/* Copyright 2021 r-neal-kelly */ #pragma once #include "nkr/cpp_dec.h" #include "nkr/cpp_def.h"
code_c
code
29
null
<filename>src/data/sparse_page_source.h<gh_stars>1-10 /*! * Copyright (c) 2014 by Contributors * \file page_csr_source.h * External memory data source, saved with sparse_batch_page binary format. * \author <NAME> */ #ifndef XGBOOST_DATA_SPARSE_PAGE_SOURCE_H_ #define XGBOOST_DATA_SPARSE_PAGE_SOURCE_H_ #include <...
code_c
code
1,023
null
#include "vendor/unity.h" #include "../src/gigasecond.h" static inline size_t is_leap_year(int year) { if (year % 400 == 0) return 1; if (year % 100 == 0) return 0; if (year % 4 == 0) return 1; return 0; } static inline time_t days_from_1ad(int year) { --year; // ...
code_c
code
823
null
/* Copyright (C) 2003,2004 <NAME>, SuSE Labs. libnuma 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; version 2.1. libnuma is distributed in the hope that it will be useful, but WITHOUT ...
code_c
code
1,999
null
<reponame>ssetin/bart<filename>snippets/WaveParse/ccharsound.h #ifndef CCHARSOUND_H #define CCHARSOUND_H /* CCharSound Copyright 2016 <NAME>. */ #include<string> /* Constants 1. Maximum volume level for normalizing in -dBFS 2. Window size in ms for RMS calculating 2. Windows...
code_c
code
906
null
<reponame>Jan200101/zig-wii<filename>vendor/devkitpro/wut/include/gx2/tessellation.h #pragma once #include <wut.h> #include <coreinit/time.h> #include "enum.h" /** * \defgroup gx2_tessellation Tessellation * \ingroup gx2 * @{ */ #ifdef __cplusplus extern "C" { #endif void GX2SetTessellation(GX2TessellationMode t...
code_c
code
160
null
<reponame>ElectronRock/rocky-console /* Copyright (C) 2021 ElectronRock - All Rights Reserved * You may use, distribute and modify this code under the * terms of the MIT license. * * You should have received a copy of the MIT license with * this file. If not, please write to: <EMAIL>, or visit : https://github.com...
code_c
code
206
null
<reponame>jiangzhu1212/oooii<gh_stars>0 // Copyright (c) 2014 <NAME>. See License.txt regarding use. // API for dealing with system-wide functionality #pragma once #include <oBase/date.h> #include <functional> namespace ouro { namespace system { enum privilege { may_debug, may_shutdown, may_lock_me...
code_c
code
2,020
null
#ifndef INCLUDED_CXXDBC_1_0_PROPERTIES_H #define INCLUDED_CXXDBC_1_0_PROPERTIES_H // standard includes #include <unordered_map> // third-party includes #include <boost/utility/string_ref.hpp> // cxxdbc includes #include <cxxdbc/1.0/support/string_ref_hash.h> namespace cxxdbc { namespace v1_0 { typedef std::unorder...
code_c
code
133
null
/* @(#)root/pythia6:$Id$ */ /************************************************************************* * Copyright (C) 1995-2000, <NAME> and <NAME>. * * All rights reserved. * * * * ...
code_c
code
221
null
<filename>CSListViewController.h // // CSListViewController.h // CloudSeeder // // Created by <NAME> on 4/11/12. // Copyright (c) 2012 Retronyms. All rights reserved. // #import <UIKit/UIKit.h> @class CSMainViewController; @class CSRefreshView; @interface CSListViewController : UIViewController <UITableViewDataSo...
code_c
code
302
null
#ifndef OPENTISSUE_KINEMATICS_SKINNING_SBS_SKINNING_CENTER_OF_ROTATION_H #define OPENTISSUE_KINEMATICS_SKINNING_SBS_SKINNING_CENTER_OF_ROTATION_H // // OpenTissue Template Library // - A generic toolbox for physics-based modeling and simulation. // Copyright (C) 2008 Department of Computer Science, University of Copenh...
code_c
code
1,353
null
<reponame>AkishinoShiame/Virtual-Elderly-Chatbot-IOS-Project-IOS-12 #pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "mscorlib_System_Object2689449295.h" // System.String struct String_t; // System.Int32[] s...
code_c
code
6,846
null
<reponame>murphyj8/testNakStructure #ifndef BSV_ADDRESS_IMPL_H #define BSV_ADDRESS_IMPL_H #include <string> #include <BSVAddress/BSVAddressInfo.h> class BSVAddressImpl { public: BSVAddressImpl ( const std::string& ) ; BSVAddressImpl ( const std::string&, VersionPrefix ) ; ~BSVAddressImp...
code_c
code
263
null
<reponame>humbertodias/Final-Fight // // Created by sebas on 6/11/19. // #ifndef FINAL_FIGHT_ENTRADAMENUSELECCION_H #define FINAL_FIGHT_ENTRADAMENUSELECCION_H #include "EntradaUsuario.h" #include "../modelos/MenuSeleccion.h" class EntradaMenuSeleccion:public EntradaUsuario { private: int framesPorAccion = 20; ...
code_c
code
151
null
<gh_stars>0 #pragma once // Common Lightning macros and declarations #if defined(LIGHTNING_DLL_EXPORTS) && !defined(LIGHTNING_DLL_API) #define LIGHTNING_DLL_API __declspec(dllexport) #elif !defined(LIGHTNING_DLL_API) #define LIGHTNING_DLL_API __declspec(dllimport) #endif #if defined(LIGHTNING_CAPI_DLL_EXPORTS) && ...
code_c
code
144
null
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2018, Image Engine Design 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: // // * Re...
code_c
code
1,567
null
// // GrowingHelperMenu.h // Growing // // Created by 陈曦 on 16/2/23. // Copyright © 2016年 GrowingIO. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "GrowingMenuView.h" @interface GrowingHelperMenu : GrowingMenuView - (instancetype)initWithHelpView:(UIView*)view helpText...
code_c
code
98
null
#include <ansi.h> inherit "obj/weapon"; drop() { return 1; } start() { set_class(6); set_sub_type("knuckles {Blue}"); set_name("knuckles"); set_short("Shining mithril combat knuckles {"+BLUE_F+"Blue"+OFF+"}"); set_alias("knuckles"); set_long("Shining combat knuckles made of the finest mithril in the worl...
code_c
code
141
null
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ #include "infra_config.h" #ifdef INFRA_NET #include <stdio.h> #include <string.h> #include "infra_defs.h" #include "infra_net.h" #include "wrappers_defs.h" #ifdef INFRA_LOG #include "infra_log.h" #define net_err(...) log_err("infra_net", __...
code_c
code
3,381
null
#ifndef __PanelAbout_h__ #define __PanelAbout_h__ #include "Panel.h" class PanelAbout : public Panel { public: PanelAbout(); ~PanelAbout(); void Draw(); }; #endif //__PanelAbout_h__
code_c
code
53
null
<reponame>ttttmr/GoogleUpdateSvcLPE /* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.01.0622 */ /* at Tue Jan 19 04:14:07 2038 */ /* Compiler settings for google_update_idl.idl: Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 ...
code_c
code
62,426
null
/* * Copyright 2008 <NAME> <<EMAIL>> * Copyright 2010 <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 * on the righ...
code_c
code
3,527
null
// Copyright (c) 2013 Itty Bitty Apps Pty Ltd. All rights reserved. // #import <Foundation/Foundation.h> CF_EXTERN_C_BEGIN /*! \brief The Reveal Log level bit flags. \discussion These flags are additive. i.e. you should bitwise OR them together. \seealso IBARevealLoggerSetLevelMask \seealso...
code_c
code
546
null
<reponame>010001111/Vx-Suites /* * DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/mozilla-1.9.1-win32-xulrunner/build/modules/libpref/public/nsIPref.idl */ #ifndef __gen_nsIPref_h__ #define __gen_nsIPref_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif #ifndef __gen_nsIPrefService...
code_c
code
10,399
null
/* * skiplistdb * * * skiplistdb is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. * */ #ifndef _SKIPLISTDB_H_ #define _SKIPLISTDB_H_ #include <stdio.h> #include "strarray.h" typedef enum { ZERO_SKIP, TWO_SKIP, INV...
code_c
code
1,916
null
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
code_c
code
5,273
null
<gh_stars>1-10 #pragma once #include "il2cpp.h" void Dpr_Battle_Logic_BTL_CLIENT_ServerCmdProc___ctor (Dpr_Battle_Logic_BTL_CLIENT_ServerCmdProc_o* __this, Il2CppObject* object, intptr_t method, const MethodInfo* method_info); bool Dpr_Battle_Logic_BTL_CLIENT_ServerCmdProc__Invoke (Dpr_Battle_Logic_BTL_CLIENT_ServerC...
code_c
code
245
null
<reponame>pdp7/beaglebone-ai /* SPDX-License-Identifier: GPL-2.0+ */ /* * Boot related environment variable definitions on TI boards. * * (C) Copyright 2017 Linaro Ltd. * <NAME> <<EMAIL>> */ #ifndef __TI_BOOT_H #define __TI_BOOT_H #ifndef CONSOLEDEV #define CONSOLEDEV "ttyO2" #endif #define VBMETA_PART_SIZE (6...
code_c
code
1,235
null
// Copyright (C) 2002-2012 <NAME> // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #ifndef __C_OCTREE_SCENE_NODE_H_INCLUDED__ #define __C_OCTREE_SCENE_NODE_H_INCLUDED__ #include "IMeshSceneNode.h" #include "Octree.h" namespace irr { namespac...
code_c
code
1,142
null
/* SPDX-License-Identifier: BSD-2-Clause */ /* * dhcpcd - DHCP client daemon * Copyright (c) 2006-2019 <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 ...
code_c
code
5,519
null
<gh_stars>0 // src/aksl/boolvec.c 2017-10-25 <NAME>. /*----------------------------------------------------------------------------- Copyright (C) 1989-2018, <NAME>. You may distribute this software under the terms of Alan U. Kennington's modified Artistic Licence, as specified in the accompanying LICENCE file. ---...
code_c
code
6,657
null
<gh_stars>1-10 /* @(#) Functions which calculates spatial correlation between two images. * @(#) by taking absolute differences pixel by pixel without calculating * @(#) the correlation coefficient. * @(#) * @(#) The function works as follows: * @(#) * @(#) int im_fastcor( im, ref, out ) * @(#) IMAGE *im, *re...
code_c
code
1,468
null
<gh_stars>0 // -------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // -------------------------------------------------------------------- #pragma once #define NT_PATH_SEPARATOR L'\\' #define UNIX_PATH_SEPARATOR L'/' #defin...
code_c
code
2,200
null
<gh_stars>1-10 /**************************************************************************//** * @file main.c * @version V3.00 * $Revision: 4 $ * $Date: 16/10/17 2:06p $ * @brief Implement WDT time-out interrupt event to wake up system and generate time-out reset system event while WDT time-out reset delay...
code_c
code
2,419
null
#pragma once //#define BOOST_ASIO_DETAIL_IMPL_EPOLL_REACTOR_IPP #include <boost/asio.hpp> //#undef BOOST_ASIO_DETAIL_IMPL_EPOLL_REACTOR_IPP //#include "optimize_asio/1_69_0/epoll_reactor.ipp"
code_c
code
55
null
// // EUCSelectedContactController.h // EUCIMManager // // Created by ZhuHong on 2017/1/4. // Copyright © 2017年 BBDTEK. All rights reserved. // 目前只做为删除成员, 添加成员, 查看成员使用 #import "EUCBaseTBController.h" typedef NS_ENUM(NSInteger, EUCSelectedContactType) { EUCSelectedContactTypeCheck = 1000, // 仅仅是查看 EUC...
code_c
code
559
null
<filename>MTAext/mtaext.h #ifndef __MTAEXT_H__ #define __MTAEXT_H__ /******************************************************************/ /** Ce fichier decrit les structures et les constantes utilisees **/ /** par les fonctions de gestion des sockets **/ /******************************************...
code_c
code
121
null
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
code_c
code
1,154
null
<gh_stars>0 /* $Id: handletable.h 69111 2017-10-17 14:26:02Z vboxsync $ */ /** @file * IPRT - Handle Tables, internal header. */ /* * Copyright (C) 2008-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software...
code_c
code
2,228
null
// // LFResultObject.h // LFImagePickerController // // Created by LamTsanFeng on 2017/7/12. // Copyright © 2017年 LamTsanFeng. All rights reserved. // #import <UIKit/UIKit.h> #import "LFResultInfo.h" @interface LFResultObject : NSObject /** PHAsset or ALAsset 如果系统版本大于iOS8,asset是PHAsset类的对象,否则是ALAsset类的对象 */ @pro...
code_c
code
152
null
#include <stdio.h> #include <unistd.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <yaml.h> #include "yaml-path.h" int parse_and_emit (yaml_parser_t *parser, yaml_emitter_t *emitter, yaml_path_t *path, yaml_path_filter_mode_t mode, int use_flow_style) { yaml_event_t event; yaml_event_type_...
code_c
code
1,624
null
/*! * This file defines a macro to retrieve the items stored in a map. * * @author <NAME> */ #ifndef JOY_MAP_ITEMS_H #define JOY_MAP_ITEMS_H #include <joy/map/to_seq.h> #include <chaos/preprocessor/recursion/expr.h> /*! * Return the keys and the values contained in a map as a sequence of tuples. */ #define J...
code_c
code
136
null
/* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The OpenAirInterface Software Alliance licenses this file to You under the OAI Publi...
code_c
code
2,008
null
<filename>src/typedef.h /*--------------------------------------------------------------------*/ /* Copyright (C) Inria 2016 */ /* * Project: libLinAlg * Created on: March 8, 2016 * Authors: <NAME> <<EMAIL>> **/ #ifndef TYPEDEF_H #define TYPEDEF_H #include <stddef.h> typedef size_t indexCoeff; typedef...
code_c
code
128
null
<filename>src/contrib/ofed/libibmad/fields.c<gh_stars>0 /* * Copyright (c) 2004-2009 Voltaire Inc. All rights reserved. * Copyright (c) 2009 HNR Consulting. All rights reserved. * Copyright (c) 2009-2011 Mellanox Technologies LTD. All rights reserved. * * This software is available to you under a choice of one ...
code_c
code
14,196
null
<filename>flare/fiber/work_queue.h // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this // file except in compliance with the License. You may obtain a copy of the // License at // // https://opensource.org/lic...
code_c
code
428
null
<reponame>mihadyuk/gdal<gh_stars>0 /****************************************************************************** * $Id$ * * Project: Cloudant Translator * Purpose: Definition of classes for OGR Cloudant driver. * Author: <NAME>, norman at cloudant com * Based on the CouchDB driver * ************...
code_c
code
1,220
null
<filename>source/blender/blenkernel/intern/multires.c /* * 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 ...
code_c
code
13,833
null
<reponame>emeric75/uvsq_licence #include "tableau.h" //lit le fichier, et remplit les champs n et taille du tableau Tableau nb_mot_fic(char* fic){ char c; int est_mot = 0; Tableau t; FILE* f = fopen(fic, "r"); if(f == NULL){ fprintf(stderr, "Erreur ouverture fichier %s\n", fic); exit(EXIT_FAILURE)...
code_c
code
646
null
#ifndef COSMOPOLITAN_LIBC_INTRIN_PMADDWD_H_ #define COSMOPOLITAN_LIBC_INTRIN_PMADDWD_H_ #include "libc/intrin/macros.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) COSMOPOLITAN_C_START_ void pmaddwd(int32_t[4], const int16_t[8], const int16_t[8]); #define pmaddwd(A, B, C) \ INTRIN_SSEVEX_X_X_X_(pmaddwd, SSE2, "pmaddwd", ...
code_c
code
133
null
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/common/command_line_parser.h> #include <aws/common/file.h> #include <aws/io/stream.h> #include <aws/io/uri.h> #include <aws/s3/private/s3_auto_ranged_put.h> #include <aws/s3/private/s3_co...
code_c
code
10,638
null
<reponame>imtypist/FISCO-BCOS /* * @CopyRight: * FISCO-BCOS 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, or * (at your option) any later version. * * FISCO-BCO...
code_c
code
1,244
null
// Copyright (C) 2020 Georgia Tech Center for Experimental Research in Computer // Systems #include <memory> #include <string> #include <thrift/protocol/TBinaryProtocol.h> #include <thrift/transport/TSocket.h> #include <thrift/transport/TTransportUtils.h> #include <buzzblog/gen/TAccountService.h> using namespace a...
code_c
code
778
null
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once #include <cassert> #include <sstream> #include <stack> #include <string> #include <unordered_map> #include "neighbor.h" #include "parameters.h" #include "tsl/robin_set.h" #include "utils.h" #include "windows_...
code_c
code
736
null
<gh_stars>10-100 // Copyright 2020 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_WEBAUTH_VIRTUAL_AUTHENTICATOR_MANAGER_IMPL_H_ #define CONTENT_BROWSER_WEBAUTH_VIRTUAL_AUTHENTICATOR_MANAGER_IMPL_...
code_c
code
1,082
null
/* * Copyright 2017 MapD 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 * * Unless required by applicable law o...
code_c
code
397
null