text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
<filename>examples/ticalc/enigma.c /* 3 rotor Enigma simulation * Converted over to Small C by <NAME> 11/9/98 * * As you can see Small C doesn't do multidimensional arrays! */ #include <stdio.h> #include <ctype.h> #include <stdlib.h> #pragma string name Enigma simulation /* Rotor Wirings */ unsigned char rotor[...
code_c
code
1,098
null
<reponame>ZetaGlest/3DEngineCpp /* * Copyright (C) 2014 <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 a...
code_c
code
3,775
null
#ifndef LIBTENSOR_BTOD_CONTRACT2_XM_H #define LIBTENSOR_BTOD_CONTRACT2_XM_H #include <libtensor/block_tensor/btod_traits.h> #include <libtensor/core/contraction2.h> #include <libtensor/core/noncopyable.h> #include <libtensor/gen_block_tensor/additive_gen_bto.h> #include <libtensor/gen_block_tensor/gen_bto_contract2.h>...
code_c
code
1,346
null
<reponame>swaroop-sridhar/runtime<filename>src/coreclr/src/jit/decomposelongs.h // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. /*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXX...
code_c
code
803
null
#pragma once #include <collection.h> #include <ppltasks.h> namespace Tid { // Gir dato string for tid nå i http format. Eksempel: "Sun, 18 Oct 2015 16:55:15 GMT" std::string GetHttpDateTime(); // Skriver dato nå til utTid i http format. utTid må ha minst 30 minneplasser med regnet '\0' terminering. Eksempel: "Su...
code_c
code
891
null
<filename>src/Dobble.c #include <stdio.h> #include <stdlib.h> #include "GestionGraphique.h" #include <math.h> #include <time.h> #include "dobble.h" #include <stdbool.h> #include <unistd.h> int TEMPS = 30; int nb_carte; int nb_ligne; int nb_coll; int ligne_courante; int icone_commun; int mesIcone[1000][1000]; int Icone...
code_c
code
2,765
null
<reponame>madmann91/sol #ifndef SOL_SCENE_LOADER_H #define SOL_SCENE_LOADER_H #include <memory> #include <string> #include <string_view> #include <unordered_map> #include <unordered_set> #include <toml++/toml.h> #include <proto/hash.h> #include "sol/scene.h" namespace sol { /// Exception used internally to repres...
code_c
code
1,184
null
/* * Routines to access hardware * * Copyright (c) 2013 Realtek Semiconductor Corp. * * This module is a confidential and proprietary property of RealTek and * possession or use of this module requires written permission of RealTek. */ #ifndef _HAL_8710B_H_ #define _HAL_8710B_H_ #include "platform_autoconf....
code_c
code
1,440
null
/* * SaveGameManager.h * Bumble Tales * * Created by <NAME> on 6/26/09. * Copyright 2009 Conjured Realms LLC. All rights reserved. * */ #pragma once #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #include "ArcadeModeSaveInfo.h" #include "SettingsSaveInfo.h" #include "ISaveOnTerminate.h" class Sa...
code_c
code
218
null
<filename>printscan/print/drivers/usermode/unidrv2/render/render.c /***************************** Module Header ******************************** * render.c * High level functions associated with rendering a bitmap to a * printer. Basic operation depends upon whether we are going to * rotate the ...
code_c
code
29,682
null
<gh_stars>0 /******************************** * * Copyright © 2016-2018 <NAME> * * MIT Licence - Full licence details can be found in the file 'LICENSE' or in the Pods-{yourProjectName}-acknowledgements.markdown * * This file is included with KFXAdditions * ************************************/ #ifndef UIKitA...
code_c
code
391
null
// // SubSegmentBuilder.h // AudioSequenceBuilderDemo // // Created by <NAME> on 8/2/11. // Copyright 2011 Mindful Bear Apps. All rights reserved. // #import <Foundation/Foundation.h> #import "AudioSequenceBuilder.h" @class DDXMLElement; @class AudioSequenceBuilder; @class SubSegmentBuilderContainer; @class AVMut...
code_c
code
359
null
<filename>chromium/chrome/browser/ssl/cert_report_helper.h // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SSL_CERT_REPORT_HELPER_H_ #define CHROME_BROWSER_SSL_CERT_REPORT_HELPER_...
code_c
code
1,002
null
#ifndef YDS_DYNAMIC_ARRAY_H #define YDS_DYNAMIC_ARRAY_H #include "yds_error_codes.h" #include "yds_allocator.h" #include <memory> class ysDynamicArrayElement { public: ysDynamicArrayElement() { m_index = -1; m_alignment = 0; } ~ysDynamicArrayElement() { /* void */ } inli...
code_c
code
1,630
null
#include <stdio.h> #include <string.h> #include <ctype.h> #include <ksu_ora.h> static char *G_oratim_words[] = { "YYYY", "YYY", "YY", "YEAR", "Y,YYY", "Y", "X", "WW", "W", "TZR", "TZM", "TZH", "TZD", "TS", "THSP", "TH", "SYYYY", "SYEAR", "SSS...
code_c
code
1,217
null
<gh_stars>0 /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* init_shell.c :+: ...
code_c
code
500
null
<reponame>rudylee/expo // Copyright 2015-present 650 Industries. All rights reserved. #import <ABI37_0_0UMCore/ABI37_0_0UMExportedModule.h> #import <ABI37_0_0UMCore/ABI37_0_0UMModuleRegistryConsumer.h> @interface ABI37_0_0EXFontLoader : ABI37_0_0UMExportedModule <ABI37_0_0UMModuleRegistryConsumer> - (instancetype)in...
code_c
code
105
null
<reponame>UMDBPP/HELIOS /* * Functions to manage LEDs */ #ifndef LEDFunctions #define LEDFunctions #include "Arduino.h" #include "../../myPins.h" class myLED{ private: int PIN_R; int PIN_G; int PIN_B; public: const static char OFF = 'o'; const static char RED = 'r'; const static char GR...
code_c
code
171
null
#include <Rconfig.h> // from s2 library port.h // IS_LITTLE_ENDIAN, IS_BIG_ENDIAN // Allow compiler -D defines to override detection here // which occasionally fails (e.g., on CRAN Solaris) #if defined(WORDS_BIG_ENDIAN) #define IS_BIG_ENDIAN #undef IS_LITTLE_ENDIAN #elif defined(IS_LITTLE_ENDIAN) #undef IS_BIG_ENDI...
code_c
code
872
null
/* * Strings utilities * * This file is part of MPlayer. * * MPlayer 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. * * MPla...
code_c
code
548
null
<reponame>NIL-zhuang/OS /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tty.h ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ <NAME>, 2005 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ #ifndef _ORANGES_TTY_H_ #define _ORANGES_TTY_H_ ...
code_c
code
197
null
#include <stdint.h> #include <stddef.h> #include <lib/readline.h> #include <lib/libc.h> #include <lib/blib.h> #include <lib/term.h> #if defined (bios) # include <lib/real.h> #elif defined (uefi) # include <efi.h> #endif int getchar_internal(uint8_t scancode, uint8_t ascii) { switch (scancode) { #if defined (bios...
code_c
code
1,540
null
// File: except.h // Author: <NAME> // Purpose: ExprEval exceptions //------------------------------------------------------------------------------ #ifndef __EXPREVAL_EXCEPT_H #define __EXPREVAL_EXCEPT_H // Includes #include <exception> #include <string> // Part of expreval namespace namespace ExprEval { ...
code_c
code
1,996
null
static unsigned long foo(unsigned long val, void *ref) { if (val >= ref) val = 0; return val; } /* * check-name: bad-type-twice1 * * check-error-start bad-type-twice1.c:3:17: error: incompatible types for operation (>=): bad-type-twice1.c:3:17: unsigned long val bad-type-twice1.c:3:17: void *ref * check-...
code_c
code
95
null
/* helpers */ int ymd_to_doty(int y, int m, int d) { int i = 0, daymon = 0, dayday = 0; int months[13] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; if((y % 4) || ((y % 100) && (y % 400))) { months[3] = months[3] + 1; } for(i = 0; i < m; i++) { daymon += months[i]; } dayday = d; return (daymon + d...
code_c
code
1,145
null
<reponame>ndrancs/carliv_touch_recovery_new<filename>default_recovery_keys.c #include <linux/input.h> #include "common.h" #include "extendedcommands.h" #include "recovery_ui.h" int device_handle_key(int key_code, int visible) { if (visible) { switch (key_code) { case KEY_RIGHTSHIFT: case KEY_DOWN: ...
code_c
code
254
null
/* * File: OptimizationScheme.h * Author: gschoenh * * Created on April 15, 2013, 7:36 PM */ #ifndef OPTIMIZATIONSCHEME_H #define OPTIMIZATIONSCHEME_H #include"standard.h" #include"OptimizableFunction.h" namespace msii810161816 { namespace opt { struct result { std...
code_c
code
190
null
<reponame>Bhuvanesh1208/ruby2.6.1<gh_stars>100-1000 /* lt_system.h -- system portability abstraction layer Copyright (C) 2004, 2007, 2010-2015 Free Software Foundation, Inc. Written by <NAME>, 2004 NOTE: The canonical source of this file is maintained with the GNU Libtool package. Report bugs to <EMAIL>....
code_c
code
1,535
null
<reponame>lambdaxymox/DragonFlyBSD /* Convert language-specific tree expression to rtl instructions, for GNU compiler. Copyright (C) 1988-2018 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License...
code_c
code
2,603
null
#define DEBUGORNOTWINLATER /* layout2.c */ #ifdef WIN #define NOGDICAPMASKS #define NOVIRTUALKEYCODES #define NOWINMESSAGES #define NONCMESSAGES #define NOWINSTYLES #define NOSYSMETRICS #define NOMENUS #define NOICON #define NOKEYSTATE #define NOSYSCOMMANDS #define NORASTEROPS #define NOSHOWWINDOW #d...
code_c
code
12,101
null
#pragma once namespace Chrysalis { /** A key extension. */ class CKeyringComponent : public IEntityComponent { // IEntityComponent void Initialize() override {}; // ~IEntityComponent public: CKeyringComponent() {} virtual ~CKeyringComponent() {} static void ReflectType(Schematyc::CTypeDesc<CKeyringComponent>...
code_c
code
152
null
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
code_c
code
502
null
<filename>Example/QNRTCKitDemo/QRDScreenRecorderViewController.h // // QRDScreenRecorderViewController.h // QNRTCKitDemo // // Created by lawder on 2018/6/15. // Copyright © 2018年 PILI. All rights reserved. // #import <UIKit/UIKit.h> @interface QRDScreenRecorderViewController : UIViewController @property (nonato...
code_c
code
143
null
<reponame>AsahiOS/gate /* * 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 * ...
code_c
code
4,481
null
<reponame>jcrudy/ITK<filename>Modules/Numerics/FEM/include/itkFEMElementStd.h /*========================================================================= * * Copyright NumFOCUS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
code_c
code
1,385
null
/********************************************************************** * $Id: PolygonizeGraph.h 3255 2011-03-01 17:56:10Z mloskot $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2006 Refractions Research Inc. * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is f...
code_c
code
1,910
null
// // TLOrderGroup.h // TL11 // // Created by liu on 15-4-16. // Copyright (c) 2015年 isoftstone. All rights reserved. // #import <Foundation/Foundation.h> @interface TLOrderGroup : NSObject @property (nonatomic,copy) NSString *Order_No; @property (nonatomic,assign) int All_Number; @pro...
code_c
code
182
null
// Copyright 2017 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 ZIRCON_SYSTEM_DEV_LIB_AMLOGIC_INCLUDE_SOC_AML_S912_S912_HW_H_ #define ZIRCON_SYSTEM_DEV_LIB_AMLOGIC_INCLUDE_SOC_AML_S912_S912_HW_H_ // Display Rel...
code_c
code
3,834
null
// Copyright (c) 1999 // Utrecht University (The Netherlands), // ETH Zurich (Switzerland), // INRIA Sophia-Antipolis (France), // Max-Planck-Institute Saarbruecken (Germany), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL$ // $Id$ // SPDX-License-Id...
code_c
code
888
null
<gh_stars>1-10 /* (c) 2007,2008 <NAME> */ #ifndef FPMI_CHILDREN_H #define FPMI_CHILDREN_H 1 #include <sys/time.h> #include <sys/types.h> #include "fpmi_worker_pool.h" #include "fpmi_events.h" #include "zlog.h" int fpmi_children_create_initial(struct fpmi_worker_pool_s *wp); int fpmi_children_free(struct fpmi_chil...
code_c
code
251
null
// // NSDictionary+DKBlock.h // DKDebugerExample // // Created by admin on 2021/10/26. // #import <Foundation/Foundation.h> @interface NSDictionary (DKBlock) /** * 遍历 * 当Value遍历的时候,可以返回相应的key, value,添加到字典中返回 * * @param block 携带key, value的Block * * @return NSArray */ - (NSArray *)dk_map:(id (^)(id key, ...
code_c
code
216
null
#pragma once #include "Main.h" #include "GoRuntime.h" #include "GoResource.h" #ifdef __cplusplus extern "C" { #endif EXPORT int RegisterAltEvent(const char *resourceName, unsigned short eventType); EXPORT int UnregisterAltEvent(const char *resourceName, unsigned short eventType); EXPORT int RegisterAltExp...
code_c
code
200
null
<reponame>manoharmukku/multilayer-perceptron-in-c #ifndef MLP_CLASSIFIER_H #define MLP_CLASSIFIER_H #include <stdio.h> #include <stdlib.h> #include <math.h> #include "read_csv.h" #include "write_csv.h" #include "parameters.h" void mlp_classifier(parameters*, int*); #endif
code_c
code
78
null
//===- HexagonEncodings.h -------------------------------------------------===// // // The MCLinker Project // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------------------...
code_c
code
16,487
null
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _ETHTOOL_COMMON_H #define _ETHTOOL_COMMON_H #include <linux/netdevice.h> #include <linux/ethtool.h> #define ETHTOOL_DEV_FEATURE_WORDS DIV_ROUND_UP(NETDEV_FEATURE_COUNT, 32) /* compose link mode index from speed, type and duplex */ #define ETHTOOL_LINK_MODE(speed, ...
code_c
code
502
null
// // GCTool.h // GCTool // // Created by HanJunQiang on 16/6/21. // Copyright © 2016年 HaRi. All rights reserved. // 博主:http://blog.csdn.net/qq_31810357 // #import <UIKit/UIKit.h> @interface GCTools : NSObject /** * 通过pic的url获得转变后的文件路径,和sdwebimage里面存的路径一致 * * @param picURL 下载图片的url地址 * * @return 下载之后的路径名...
code_c
code
857
null
/* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape * media and as a part of the software program in whole or part. Users * may copy or modify Sun RPC without charge, but are not authorized * to license or distribute it to an...
code_c
code
4,736
null
<reponame>kingium/tasks_1506 /***************************************************************************//** * \file USBUART_1_hid.c * \version 3.0 * * \brief * This file contains the USB HID Class request handler. * * Related Document: * Device Class Definition for Human Interface Devices (HID) Version 1.11 * ****...
code_c
code
4,789
null
/** * @file libimobiledevice/notification_proxy.h * @brief Observe and post notifications. * \internal * * Copyright (c) 2010-2014 <NAME> All Rights Reserved. * Copyright (c) 2009-2010 <NAME> All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of t...
code_c
code
2,290
null
<reponame>guillaumetousignant/another_path_tracer #ifndef APTRACER_ISOCAMMOTIONBLUR_T_H #define APTRACER_ISOCAMMOTIONBLUR_T_H #include "entities/Camera_t.h" #include "entities/Vec3f.h" #include <string> #include <list> #include <random> namespace APTracer { namespace Entities { class TransformMatrix_t; ...
code_c
code
1,960
null
#pragma once #include <string> #include "source/common/singleton/const_singleton.h" namespace Envoy { namespace Extensions { namespace StatSinks { /** * Well-known stats sink names. * NOTE: New sinks should use the well known name: envoy.stat_sinks.name. */ class StatsSinkNameValues { public: // Statsd sink ...
code_c
code
245
null
<filename>9. Octal to Hexadecimal.c // Octal to hexadecimal conversion #include <stdio.h> #include <string.h> int main(void) { int OCTALVALUES[] = {0, 1, 10, 11, 100, 101, 110, 111}; long int octal, binary = 0, position = 1; char hexadecimal[100] = {0}; int remainder = 0; printf("\nEnt...
code_c
code
581
null
<filename>include/dg/PointerAnalysis/PointerAnalysisFS.h<gh_stars>0 #ifndef DG_ANALYSIS_POINTS_TO_FLOW_SENSITIVE_H_ #define DG_ANALYSIS_POINTS_TO_FLOW_SENSITIVE_H_ #include <cassert> #include <memory> #include "MemoryObject.h" #include "PointerGraph.h" namespace dg { namespace pta { /// // Flow-sensitive pointer an...
code_c
code
2,422
null
#include <stdio.h> #include <stdlib.h> int main() { int num=0, mask=127; printf("num = %d, mask = %d, num|=mask = %d\n", num, mask, num|mask); num= printf("num = %d, mask = %d, num|=mask = %d\n", num, mask, num^mask); printf("Hello world!\n"); return 0; }
code_c
code
81
null
<gh_stars>0 #pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> // UnityEngine.Material struct Material_t1886596500; // UnityEngine.UI.RectMask2D struct RectMask2D_t798674795; // UnityEngine.UI.MaskableGraphic/CullStateChangedEvent str...
code_c
code
1,732
null
/* Copyright 2011 <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 writing,...
code_c
code
487
null
<filename>Cantera/src/ctvector.h<gh_stars>0 /** * @file ctvector.h * * These classes are defined to represent floating-point and integer * arrays. They act as simplified replacements for std::vector<double> * and std::vector<int>, respectively. These classes are designed for * use where it is necessary to a...
code_c
code
1,627
null
<filename>src/vendor/mlnx/sai-vendor-route.c /* * Copyright Mellanox Technologies, Ltd. 2001-2016. * This software product is licensed under Apache version 2, as detailed in * the COPYING file. */ #include <mlnx_sai.h> #include <sai-common.h> #include <sai-log.h> #include <sai-route.h> #include <sai-vendor-util....
code_c
code
2,628
null
<reponame>ValtoGameEngines/Spartan-Engine<filename>Runtime/World/Components/Camera.h /* Copyright(c) 2016-2020 <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...
code_c
code
1,784
null
/* * File: RijndaelCBCMAC.h * * Copyright (c) Freescale Semiconductor, Inc. All rights reserved. * See included license file for license details. */ #if !defined(_RijndaelCBCMAC_h_) #define _RijndaelCBCMAC_h_ #include "AESKey.h" #include <string.h> /*! * \brief Class to compute CBC-MAC using the AE...
code_c
code
450
null
/**************************************************************************** * * Copyright (C) 2018, 2019 PX4 Development Team. All rights reserved. * Author: @author <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follow...
code_c
code
931
null
<reponame>Fusion-Rom/android_external_chromium_org<gh_stars>1-10 // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MOJO_VIEWS_NATIVE_WIDGET_VIEW_MANAGER_H_ #define MOJO_VIEWS_NATIVE_WIDGET_VIEW_MA...
code_c
code
584
null
int removeDuplicates(int* nums, int numsSize) { int i; int length; int times; length = -1; times = 2; for(i = 0;i < numsSize;i++) { if(nums[length] != nums[i]) { nums[++length] = nums[i]; times = 1; } else { if(times == 0) { continue; ...
code_c
code
117
null
/**************************************************************** Copyright (C) 1997 Lucent Technologies All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copi...
code_c
code
603
null
#include "util.h" #include "stdlib.h" #include "stdio.h" #include "string.h" void leftpad(int pad){ for(int i = 0; i < pad; i++) printf(" "); } Position fusePosition(Position a, Position b){ Position ret; ret.fileId = a.fileId; ret.lineStart = a.lineStart; ret.colStart = a.colStart; ret.lineEnd = b.li...
code_c
code
701
null
<reponame>PurdueDualityLab/memoized-regex-engine<gh_stars>1-10 #include "statistics.h" #include "log.h" #include "uthash.h" #include <stdio.h> #include <sys/time.h> #include <math.h> static void vec_strcat(char **dest, int *dAlloc, char *src) { int combinedLen = strlen(*dest) + strlen(src) + 5; if (combinedLen >...
code_c
code
2,827
null
<reponame>thanhpv8/modified_BKT /* Copyright (c) 2012-2017, <NAME>) Yudelson 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 noti...
code_c
code
1,492
null
/** * ------------------------------------------------------------------------------ * MIT License * * Copyright (c) 2018 <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 re...
code_c
code
2,969
null
/* * derivFunc.c * * Code generation for function 'derivFunc' * * C source code generated on: Sat Jan 21 02:02:06 2017 * */ /* Include files */ #include "rt_nonfinite.h" #include "derivFunc.h" #include "computeControlUnconstrained.h" #include "derivFunc_data.h" /* Variable Definitions */ static emlrtRSInfo eml...
code_c
code
2,704
null
<reponame>liangjinRK/Sensor<filename>Source/XnDeviceSensorV2/XnServerSensorInvoker.h /***************************************************************************** * * * PrimeSense Sensor 5.x Alpha ...
code_c
code
2,541
null
#pragma once #include <ceres/ceres.h> #include "SMPLWrapper.h" class SmoothDisplacementCost : public ceres::CostFunction { public: SmoothDisplacementCost(std::shared_ptr<SMPLWrapper> smpl, int vert_id); ~SmoothDisplacementCost(); // expects that the smpl_->displacements are up to date virtual bool E...
code_c
code
163
null
<reponame>Andrew-Slade/cplusplus-projects /* <NAME> Programming Project 6 */ #ifndef HEADER_SLADEA #define HEADER_SLADEA //class definition class Tank { public: //constructors Tank() { id = 0; ammo = 0; speed = 0; } Tank(int idIn, int ammoIn, float speedIn); //mutators void setId(int idIn); void s...
code_c
code
201
null
<filename>Modules/ImageStatisticsUI/Qmitk/QmitkDataGenerationJobBase.h /*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-claus...
code_c
code
602
null
<gh_stars>10-100 #ifndef __VPC_BUNDLE_H #define __VPC_BUNDLE_H #include <iostream> #include <algorithm> #include <cmath> #include <iterator> #include <fstream> #include <string> #include <cstdlib> #include <iosfwd> #include "cv.h" #include "highgui.h" #include "template_header.h" using namespace std; using namespac...
code_c
code
150
null
<reponame>quiveringlemon/pfl /*******************************************************************\ Module: Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_C_PREPROCESS_H #define CPROVER_C_PREPROCESS_H #include <iosfwd> #include <string> #include <util/...
code_c
code
188
null
/* * Copyright (C) 2016, Netronome Systems, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
code_c
code
433
null
// Copyright © <NAME> and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root // for more information. #define NOVELRT_C_API 1 #include <NovelRT.h> #include <memory.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> // Preset vars int32_t res = NRT_SUCCESS; int32_t bo...
code_c
code
3,086
null
<filename>ZeroVulkan/src/Vulkan/Uniform.h #ifndef UNIFORM_BUFFER_H_ #define UNIFORM_BUFFER_H_ #include <initializer_list> #include "Device.h" #include "types.h" #include "utils.h" namespace ZeroVulkan { class ZUniform { public: ZUniform() = default; ZUniform(ZUniform&& source); ZU...
code_c
code
1,421
null
<gh_stars>100-1000 // generated from rosidl_generator_c/resource/rosidl_generator_c__visibility_control.h.in // generated code does not contain a copyright notice #ifndef MICRO_ROS_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ #define MICRO_ROS_MSGS__MSG__ROSIDL_GENERATOR_C__VISIBILITY_CONTROL_H_ #ifdef __cplu...
code_c
code
446
null
<reponame>ocefpaf/netcdf-c /* Copyright (c) 1998-2018 University Corporation for Atmospheric Research/Unidata See LICENSE.txt for license information. */ #include "config.h" #include "ncdispatch.h" #include "ncuri.h" #include "nclog.h" #include "ncbytes.h" #include "ncrc.h" #include "ncoffsets.h" /* Required for getc...
code_c
code
974
null
#include <stdio.h> #include "set.h" #include "syn.h" #include "hash.h" #include "generic.h" #include "proto.h" static ExceptionGroup **egArray=NULL; /* ExceptionGroup by BlkLevel */ static LabelEntry **leArray=NULL; /* LabelEntry by BlkLevel */ static Junction **altArray=NULL; /* start of alternates...
code_c
code
2,242
null
#ifndef _H_MAKE_UNIQUE #define _H_MAKE_UNIQUE #ifndef _WIN32 #include <memory> #if __cplusplus < 201402L template<typename T, typename... Args> std::unique_ptr<T> make_unique(Args&&... args) { return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); } #endif #endif #endif
code_c
code
81
null
<gh_stars>1-10 /* Software License Agreement (BSD License) Copyright (c) 1997-2011, <NAME>, (LADSoft). All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: ...
code_c
code
665
null
#include "steam.h" S_CLASSAPI uint32 S_CLASSCALLTYPE SteamAPI_ISteamUtils_GetSecondsSinceAppActive(SELF) { xlogf("%s(self = %p)\n", __func__, self); return 0; } S_CLASSAPI uint32 S_CLASSCALLTYPE SteamAPI_ISteamUtils_GetSecondsSinceComputerActive(SELF) { xlogf("%s(self = %p)\n", __func__, self); return 0; } S_CLA...
code_c
code
1,680
null
#include <stdio.h> #include <stdlib.h> #include <time.h> typedef void **t; void *N[] = {N, N}; t G, H, M=N, p=N; int h; #define Z ; if (A == D) goto #define F ; A =* D; *D ++=G +!!G; D =* (G = D); G -=!! G; #define C ; *(T =++ G) =D ++; D -= (G= *-- T) ||! (G = calloc(2, sizeof* N)); \ *T ++= A; G -=(t) *T --- ...
code_c
code
653
null
#ifndef CANOKEY_CORE_FIDO2_SECRET_H_ #define CANOKEY_CORE_FIDO2_SECRET_H_ #include "ctap-internal.h" #include <ctap.h> int increase_counter(uint32_t *counter); int generate_key_handle(CredentialId *kh, uint8_t *pubkey); size_t sign_with_device_key(const uint8_t *digest, uint8_t *sig); size_t sign_with_private_key(con...
code_c
code
216
null
<gh_stars>1-10 /* * Copyright (C) 2010-2021 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at *...
code_c
code
939
null
//++Dubrovnik.CodeGenerator System_UriKind.h // // Managed enumeration : UriKind // // // Frameworks // #import <Dubrovnik/Dubrovnik.h> // // Optional extra import. Not auto generated. Add manually to project only if required. // #if __has_include("System_UriKind.__Extra__.h") #import "System_UriKind.__Extra__.h" #en...
code_c
code
358
null
#pragma once #include <Resources/ResourceLoader.h> #include <Video/Font.h> namespace uut { class ResourceCache; class BitmapFontLoader : public ResourceLoaderImpl<Font> { UUT_OBJECT(uut, BitmapFontLoader, ResourceLoader) public: BitmapFontLoader(); SharedPtr<Resource> Load(const SharedPtr<Stream>& stream) ...
code_c
code
95
null
#include <stdio.h> #include <wiringPi.h> #include <gps.h> #include "../xbee_at.h" int main() { xbee_init(); gps_init(); int i=0; while (1) { loc_t data; gps_location(&data); xbeePrintf("COUNTER : %d\n",++i); xbeePrintf("latitude:%f\nlongitude:%f\n", data.latitude, data.longitude); delay(100...
code_c
code
94
null
<reponame>nuxshed/dwm<gh_stars>1-10 static void removescratch(const Arg *arg); static void setscratch(const Arg *arg); static void togglescratch(const Arg *arg); static void spawnscratch(const Arg *arg); void removescratch(const Arg *arg) { Client *c = selmon->sel; if (!c) return; c->scratchkey = 0; } void sets...
code_c
code
1,438
null
<filename>platform/vendor_bsp/st/STM32L5xx_HAL_Driver/Inc/stm32l5xx_ll_bus.h<gh_stars>1000+ /** ****************************************************************************** * @file stm32l5xx_ll_bus.h * @author MCD Application Team * @brief Header file of BUS LL module. @verbatim ...
code_c
code
21,798
null
#ifndef NODE_H #define NODE_H #include <cstdlib> class Node { public: Node(); Node(size_t id, size_t cost); bool operator == (const Node &rhs); size_t id; // which node on the map (1 is first) size_t f; // cost size_t g; // running cost Node* parent; }; struct NodeIDSame { bool operator()(Node *a, Node *...
code_c
code
135
null
// 15 june 2016 #include "test.h" static uiAreaHandler borderAH; static int borderAHInit = 0; static double lastx = -1, lasty = -1; struct trect { double left; double top; double right; double bottom; int in; }; #define tsetrect(re, l, t, r, b) re.left = l; re.top = t; re.right = r; re.bottom = b; re.in = lastx...
code_c
code
1,927
null
/******************** (C) COPYRIGHT 2011 STMicroelectronics ******************** * File Name : main.c * Author : MCD Application Team * Version : V3.3.0 * Date : 21-March-2011 * Description : Mass Storage demo main file ***********************************************...
code_c
code
890
null
Name: frag.c Type: file Size: 27676 Last-Modified: '2016-05-13T04:27:09Z' SHA-1: 2260E23F89EE1DF2B3BBA062861D3060E9DBD341 Description: null
code_c
code
40
null
// // NSDate+ZCSupp.h // ZCEasyLibrary // // Created by zac on 2017/10/23. // Copyright © 2017年 <EMAIL>. All rights reserved. // #import <Foundation/Foundation.h> #define ZCDateFormatTime @"HH:mm" #define ZCDateFormatDate @"yyyy-MM-dd" #define ZCDateFormatDateTime @"yyyy-MM-dd HH:mm:ss" #define ZCDateFormatTimeZo...
code_c
code
790
null
<filename>HappyDNS/include/HappyDNS/QNResolvUtil.h // // QNResolv.h // HappyDNS // // Created by bailong on 16/5/28. // Copyright © 2016年 Qiniu Cloud Storage. All rights reserved. // #ifndef QNResolv_h #define QNResolv_h extern BOOL isV6(NSString *address); extern int setup_dns_server(void *res, NSString *dns_se...
code_c
code
106
null
<filename>net/test/spawned_test_server/spawner_communicator.h<gh_stars>100-1000 // 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 NET_TEST_SPAWNED_TEST_SERVER_SPAWNER_COMMUNICATOR_H_ #define N...
code_c
code
1,721
null
<reponame>jjolly/ompi /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * * Copyright (C) 1997 University of Chicago. * See COPYRIGHT notice in top-level directory. */ /* contains general definitions, declarations, and macros internal to the ADIO implementation, though independent of the ...
code_c
code
10,614
null