text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
/* * Copyright (c) 2013 - 2014, Freescale Semiconductor, 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: * * o Redistributions of source code must retain the above copyright notice, th...
code_c
code
15,707
null
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of co...
code_c
code
10,136
null
<gh_stars>1-10 /******************************************************************************* * Filename: target_core_iblock.c * * This file contains the Storage Engine <-> Linux BlockIO transport * specific functions. * * (c) Copyright 2003-2012 RisingTide Systems LLC. * * <NAME> <<EMAIL>> * * This progr...
code_c
code
5,214
null
#include "ch05.h" double get_cpu_time(void) { struct rusage r_usage; time_t msec; getrusage(RUSAGE_SELF,&r_usage); msec = r_usage.ru_utime.tv_sec*1000000.0 + r_usage.ru_utime.tv_usec; return ((double)(msec)/1000000.0); }
code_c
code
71
null
/* * Copyright (C) 2011-2019 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 must retain the above copyright * notice, this list of conditi...
code_c
code
3,728
null
<reponame>AppleP1999/DDMyFramework // // TABLayer.h // AnimatedDemo // // Created by tigerAndBull on 2019/3/24. // Copyright © 2019年 tigerAndBull. All rights reserved. // #import <QuartzCore/QuartzCore.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class TABComponentLayer; @interface TABLayer : CALayer @p...
code_c
code
310
null
void draw_volts() { int x = 90; int y = 360; int r_padd = 20; int max_len = my_lcd.Get_Display_Width() - x - r_padd; int bar_num = 24; int bar_width = max_len / bar_num; int bar_height = 30; int lower_limit = 9; int upper_limit = 16; int volts_to...
code_c
code
981
null
<filename>src/common/state/AnnotationAttributes.h<gh_stars>0 // Copyright (c) Lawrence Livermore National Security, LLC and other VisIt // Project developers. See the top-level LICENSE file for dates and other // details. No copyright assignment is required to contribute to VisIt. #ifndef ANNOTATIONATTRIBUTES_H #def...
code_c
code
2,426
null
/* * CsvReader.h * * Created on: Feb 26, 2010 * Author: moosmann */ #ifndef CSVREADER_H_ #define CSVREADER_H_ #include <vector> #include <string> #include <sstream> class CsvReader { public: CsvReader(std::string filename, std::string separators = " ;", std::string commentIndicators = "", bool extractEmt...
code_c
code
402
null
/** * @file mcu_adapter.h * * @brief MCU related. * * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * @author <NAME> <<EMAIL>> * * @date 12/2019 */ #ifndef __MCU_ADAPTER_H__ #define __MCU_ADAPTER_H__ #include <stdint.h> #include <stdbool.h> #include "main.h" /****************************************...
code_c
code
329
null
<reponame>dimapnz/xrdp<gh_stars>0 /** * xrdp: A Remote Desktop Protocol server. * * Copyright (C) <NAME> 2004-2012 * * 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....
code_c
code
593
null
<reponame>eyelash/lean4 // Lean compiler output // Module: Lean.Meta.Tactic.Simp.CongrLemmas // Imports: Init Lean.ScopedEnvExtension Lean.Util.Recognizers Lean.Meta.Basic #include <lean/lean.h> #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" #pragma clang diagnostic ignored "-Wunused-label...
code_c
code
104,542
null
<reponame>cielpy/CPYGridPageLayout // // CPYGridDemoCollectionViewCell.h // CPYGridPageLayout // // Created by ciel on 2016/11/11. // Copyright © 2016年 CPY. All rights reserved. // #import <UIKit/UIKit.h> @interface CPYGridDemoCollectionViewCell : UICollectionViewCell @property (nonatomic, copy) NSString *text; ...
code_c
code
93
null
<reponame>tapnovel/react-native-image-sequence // // Created by <NAME> on 07/07/16. // Copyright (c) 2016 Facebook. All rights reserved. // #import <UIKit/UIKit.h> #import <React/RCTView.h> @interface RCTImageSequenceView : UIImageView @property (nonatomic, copy) RCTBubblingEventBlock onAnimationFinish; @end
code_c
code
90
null
<reponame>ittechbay/net /* * module to include the modules */ //config_require(fts-mib/ftsRefCfg) config_require(fts-mib/fts_scalar) config_require(fts-mib/ftsRefTable) config_require(fts-mib/ftsPtpTable) config_require(fts-mib/ftsNtpTable) config_require(fts-mib/ftsTimingTable) config_require(fts-mib/ftsClkTrap) ...
code_c
code
103
null
<filename>drivers/hal/beken/beken72XX_HAL/func/wpa_supplicant-2.9/src/common/notifier.h #ifndef __NOTIFIER_H_ #define __NOTIFIER_H_ typedef void (*notify_func)(void *, int type, int value); struct notifier { struct notifier *next; notify_func func; void *arg; }; struct notifier_req { notify...
code_c
code
228
null
#ifndef _MAIL_REQ_H_ #define _MAIL_REQ_H_ /* * $Id: mail_req.h,v 1.2 2002/09/08 19:27:34 rlaager Exp $ * * Copyright (c) 1996, 1997, 1998, 1999, <NAME>. All rights reserved. * See the LICENSE file in the release for redistribution information. */ #include "mail_send.h" #include "pks_incr.h" typedef struct _ma...
code_c
code
165
null
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod /* * SMP Support * * Copyright (C) 1999 VA Linux Systems * Copyright (C) 1999 <NAME> <<EMAIL>> * Copyright (C) 2001 <NAME> * <NAME> <<EMAIL>> */ #ifndef _ASM_IA64_SMP_H #define _ASM_IA64_SMP_H #include <linux/config.h> #ifdef CONFIG_SMP #include <linux/init.h> ...
code_c
code
811
null
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1992 - 1997, 2000-2002 Silicon Graphics, Inc. All rights reserved. */ #ifndef _ASM_IA64_SN_NODEPDA_H #define _ASM_IA64_SN_N...
code_c
code
1,415
null
<reponame>amithbraj/vpp /* * Copyright (c) 2017 Cisco and/or its affiliates. * 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 * * Unle...
code_c
code
1,193
null
<filename>include/DebugMovement3D.h<gh_stars>1-10 #pragma once #include "../include/Actor.h" namespace Johnny { /*! \brief A class which adds a small 3D DebugCameraMovement to the application * like camera moving and rotating */ class DebugMovement3D : public Actor { public: /*! \brief Cr...
code_c
code
280
null
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
code_c
code
3,582
null
<reponame>Maledictus/leechcraft /********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 <NAME> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE or copy at ht...
code_c
code
251
null
<gh_stars>1000+ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Tencent is pleased to support the open source community by making behaviac available. // // Copyright (C) 2015-2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed...
code_c
code
704
null
<reponame>mrkn/numo-linalg #define lapack_complex_float scomplex #define lapack_complex_double dcomplex #include "lapacke.h" #include "lapacke_t.h" #include "../numo_linalg.h" typedef int blasint; #define option_value numo_lapacke_option_value extern int numo_lapacke_option_value(VALUE value, VALUE default_value); #...
code_c
code
467
null
#ifndef LINE_H #define LINE_H #include "paint_gl.h" #include <QOpenGLShaderProgram> using namespace std; class Line : public PaintGL { public: Line(); ~Line(); void initialieGL(); void resize(Camera &camera); void paintGL(float dt, Camera &camera); void data(glm::vec3 *data); void...
code_c
code
148
null
<gh_stars>100-1000 #pragma once // NOLINT(namespace-envoy) // This file is part of the QUICHE platform implementation, and is not to be // consumed or referenced directly by other Envoy code. It serves purely as a // porting layer for QUICHE. #include <vector> #include "quiche/common/platform/api/quiche_string_piec...
code_c
code
240
null
/* * Winamp httpQ Plugin * Copyright (C) 1999-2003 <NAME> * * 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. * *...
code_c
code
428
null
/* sales.h License CC0 PUBLIC DOMAIN To the extent possible under law, <NAME> has waived all copyright and related or neighboring rights to tabitha. This work is published from: United States. */ #if !defined(__sales_h__) #include "contact.h" #include "product.h" #include "email.h" enum salestype { esti...
code_c
code
1,605
null
<gh_stars>0 // Automatically generated file, do not edit. #pragma once const uint8_t SteamDriller_Crystal[] = { 8, 8, 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, 0x00,0x00,0x00,0x00,0x01,0x06,0x01,0x00, 0x00,0x00,0x00,0x01,0x07,0x06,0x01,0x00, 0x00,0x00,0x01,0x07,0x07,0x06,0x01,0x00, 0x00,0x01,0x01,0x07,0x07,0x06,0x01,0...
code_c
code
128
null
<reponame>uk0/OpenTOFLidar<filename>Firmware/not_scanning_fw/mavlink_handling.h #ifndef MAVLINK_HANDLING_H #define MAVLINK_HANDLING_H #include "config.h" #include <stdint.h> // Defines ******************************************************************** // Functions **************************************************...
code_c
code
134
null
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "shellcode.h" #define TARGET "/tmp/target1" #define NOP 0x90 unsigned long get_sp(void) { __asm__("movl %esp,%eax"); } int main(void) { char *args[3]; char *env[1]; args[0] = TARGET; args[1...
code_c
code
279
null
/* * Copyright (C) 2018-2020 Alibaba Group Holding Limited */ #include "aef/aef.h" #define TAG "aef" static struct aefx_ops *_aefx_ops; /** * @brief regist aef ops * @param [in] ops * @return 0/-1 */ int aefx_ops_register(const struct aefx_ops *ops) { CHECK_PARAM(ops, -1); if...
code_c
code
757
null
<gh_stars>100-1000 /////////////////////////////////////////////////////////////////////////////// // Name: steexprt.h // Purpose: wxSTEditorExporter // Author: <NAME>, mostly others see src for copyright // Modified by: // Created: 11/05/2002 // Copyright: (c) <NAME>, <NAME> & others see steexprt...
code_c
code
1,264
null
<reponame>Aaron-Berland/Nova #pragma once #ifndef GLFW_WINDOW_H #define GLFW_WINDOW_H #include <Nova/Window.h> struct GLFWwindow; namespace Nova { class GLFWWindow : public Window { public: GLFWWindow(const WindowProperties &props); virtual ~GLFWWindow(); virtual void OnUpdate() override; virtual inline u...
code_c
code
299
null
/* * Copyright (C) 2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "framework/configuration.h" #include "framework/utility/statistics.h" #include <map> #include <memory> #include <string> class TestCaseStatistics : public Statistics { public: using Clock = std::chrono::h...
code_c
code
948
null
// Copyright (c) 2018 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_UI_APP_LIST_SEARCH_SEARCH_RESULT_RANKER_APP_LAUNCH_EVENT_LOGGER_H_ #define CHROME_BROWSER_UI_APP_LIST_SEARCH_SEARCH_RESULT_RANK...
code_c
code
2,152
null
#include <cblas.h> #include <lapacke.h> #include "math.h" #include "minimal_opencv.h" #include "stdbool.h" #include "stdio.h" #include "string.h" #include <limits.h> #include <stdarg.h> #include "linmath.h" #ifdef _WIN32 #define SURVIVE_LOCAL_ONLY #include <malloc.h> #define alloca _alloca #else #define SURVIVE_LOC...
code_c
code
3,394
null
#define OFFSETS_H #include <windows.h> #define OFFSET_GAME_MANAGER 0x51E27C8 #define OFFSET_GAME_MANAGER_ENTITY_COUNT 0x1D8 #define OFFSET_GAME_MANAGER_ENTITY_LIST 0x1C8 #define OFFSET_GAME_RENDERER 0x51E2680 #define OFFSET_GAME_RENDERER_DEREF 0x0 #define OFFSET_ENTITY_COMPONENT 0x28 #define OFFSET_ENTITY...
code_c
code
348
null
// // IOGLocationController.h // Pods // // Created by <NAME> on 1/8/14. // // #import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> #import "IOGBlocks.h" #define kIOGLocationManager_DidUpdateLocations_Notification @"kIOGLocationManager_DidUpdateLocations_Notification " #define kIOGLocationManag...
code_c
code
263
null
/* Software floating-point emulation. Definitions for IEEE Double Precision Copyright (C) 1997,1998,1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> (<EMAIL>), <NAME> (<EMAIL>), <NAME> (<EMAIL>) and <NAME> (<EMAIL>). The GNU C Library is free ...
code_c
code
1,776
null
<reponame>wemap/SolARModuleTools /** * @copyright Copyright (c) 2017 B-com http://www.b-com.com/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/...
code_c
code
657
null
<gh_stars>10-100 #ifndef VTKANITHREAD_H #define VTKANITHREAD_H #include <QThread> #include <QTextCodec> #include "NumericSrcObject.h" #include "PipelineObject.h" #include "ReadDataIO.h" #include "FilterContour.h" #include "FilterClip.h" #include "FilterSlice.h" #include "FilterVector.h" #include "LoadActi...
code_c
code
399
null
<reponame>JorisJJB/MaxEnt-Chromosome-Caulobacter<filename>Inverse Monte Carlo/Energy_changes.h // // Created by Joris on 11/07/2018. // #ifndef INVERSE_3D_NEW_ENERGY_CHANGES_H #define INVERSE_3D_NEW_ENERGY_CHANGES_H #endif //INVERSE_3D_NEW_ENERGY_CHANGES_H #include <iostream> #include <Eigen/Dense> #include <...
code_c
code
739
null
// 2015-05-12 03:50:37 #include <stdio.h> int main() { float A, G, Ra, Rg; scanf(" %f %f %f %f" , &A, &G, &Ra, &Rg); Ra/A > Rg/G ? printf("A") : printf("G"); return 0; }
code_c
code
55
null
<reponame>Ddnirvana/test-CI<filename>openeuler-kernel/drivers/net/ethernet/intel/ice/ice_arfs.c // SPDX-License-Identifier: GPL-2.0 /* Copyright (C) 2018-2020, Intel Corporation. */ #include "ice.h" /** * ice_is_arfs_active - helper to check is aRFS is active * @vsi: VSI to check */ static bool ice_is_arfs_active(...
code_c
code
5,563
null
/*============================================================================ 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-clause BSD license that can be found in the LICENSE file. =================...
code_c
code
472
null
/* $Id: tixGrRC.c,v <ip> 2000/05/17 11:08:42 idiscovery Exp $ */ /* * tixGrRC.c -- * * This module handles "size" sub-commands. * * Copyright (c) 1996, Expert Interface Technologies * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANT...
code_c
code
868
null
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2012 The PHP Group | +---------...
code_c
code
1,238
null
/* * Copyright (C) 2012 Swift Navigation Inc. * Contact: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This source is subject to the license found in the file 'LICENSE' which must * be be distributed together with this source. All other rights reserved. * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHO...
code_c
code
417
null
<filename>include/luxrays/core/geometry/ray.h<gh_stars>100-1000 /*************************************************************************** * Copyright 1998-2020 by authors (see AUTHORS.txt) * * * * This file is part of...
code_c
code
1,120
null
<reponame>google-ar/chromium // Copyright (c) 2013 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_COMMON_EXTENSIONS_API_PLUGINS_PLUGINS_HANDLER_H_ #define CHROME_COMMON_EXTENSIONS_API_PLUGINS_PLUGINS_HAND...
code_c
code
480
null
<reponame>mxdsgnl/zephyr /* * Copyright (c) 2019, NXP * * SPDX-License-Identifier: Apache-2.0 */ #include <init.h> #include <fsl_iomuxc.h> #include <fsl_gpio.h> static int mimxrt1015_evk_init(const struct device *dev) { ARG_UNUSED(dev); CLOCK_EnableClock(kCLOCK_Iomuxc); CLOCK_EnableClock(kCLOCK_IomuxcSnvs); ...
code_c
code
1,035
null
<filename>src/ios/Framework-static/AirTurnInterface.framework/Headers/AirTurnInterface.h /** @header @file AirTurnInterface.h @framework AirTurnInterface @discussion AirTurn Interface framework @copyright 2014 AirTurn, Inc. All rights reserved. */ #import <AirTurnInterface/AirTurnDefines.h> #import <AirTur...
code_c
code
252
null
<reponame>MAPSWorks/bigView--bigView-glx-Examples-latlon.C<filename>glx/glxFFont.h #ifndef GLX_FFONT_H #define GLX_FFONT_H #include <string> #include <vector> #include <map> #include <X11/Xft/Xft.h> namespace Glx { struct Glyph { char ch; int index; // FT's index for this char int x,y; // loc...
code_c
code
409
null
#ifndef __FETCH_EVENT_BUDDY_LIST_H_ #define __FETCH_EVENT_BUDDY_LIST_H_ #pragma once #include "fetch_event.h" namespace core { namespace wim { class contactlist; class fetch_event_buddy_list : public fetch_event { std::shared_ptr<core::wim::contactlist> cl_; ...
code_c
code
225
null
<reponame>matijsbrs/BCom /* * Library: libcrc * File: include/checksum.h * Author: <NAME> * * This file is licensed under the MIT License as stated below * * Copyright (c) 1999-2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated do...
code_c
code
1,932
null
/* Copyright (C) 1997-2001 Id Software, 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 2 of the License, or (at your option) any later version. This program is distribut...
code_c
code
2,415
null
<gh_stars>0 #ifndef DERIVED_LINE_PATTERNS_H #define DERIVED_LINE_PATTERNS_H #include <Eigen/Dense> #include <Eigen/Geometry> #include <Eigen/StdVector> #include "vio/CsvReader.h" #include <iomanip> #include <vector> namespace vio { class MaplabVertexPattern : public LinePattern { public: EIGEN_MAKE_ALIGNED_OPERA...
code_c
code
2,886
null
<gh_stars>1-10 /* * Copyright 2009 VMware, 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, me...
code_c
code
4,359
null
/* /+----------------------------------------------------------------------+ | AOP | +----------------------------------------------------------------------+ | Copyright (c) 2012 <NAME>, <NAME> | +-----------------------------------...
code_c
code
2,965
null
<gh_stars>0 /* This file is generated from specs/discord/webhook.endpoints-params.json, Please don't edit it. */ /** * @file specs-code/discord/webhook.endpoints-params.c * @see https://discord.com/developers/docs/resources/webhook */ #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <strings.h>...
code_c
code
15,505
null
<gh_stars>0 // // NSADictionary.h // FoundationExtension // // Created by <NAME> on 12. 10. 25.. // Copyright (c) 2012 <EMAIL>. All rights reserved. // /*! * @file * @brief See @ref CoreFoundation-Subclass for concept of these objects. */ #import <Foundation/Foundation.h> /*! * @brief [NSDictionary][0] su...
code_c
code
303
null
<reponame>copslock/broadcom_cpri<filename>sdk-6.5.20/include/bcm_int/dnx/port/port_flexe.h /** \file include/bcm_int/dnx/port/port_flexe.h * * * Internal DNX Port APIs * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Cop...
code_c
code
856
null
<reponame>starxiang/SVT-AV1 /* * Copyright(c) 2019 Intel Corporation * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with th...
code_c
code
7,501
null
#include <stdio.h> int main() { int num; scanf("%d",&num); while(num--){ int n; scanf("%d",&n); int arr[n]; int count = 0; for(int i=0;i<n;i++){ scanf("%d",&arr[i]); count = count + arr[i]; } if(count%2 == 0) printf("NO...
code_c
code
110
null
<gh_stars>1-10 #ifndef _FileSystem_H_ #define _FileSystem_H_ #include <iostream> #include <cstdlib> #include <fstream> #include <string> #include <sstream> #include <string> #include <thread> #include <vector> #include <list> #include <algorithm> #include <functional> #include <mutex> #include "Membership.h" using n...
code_c
code
1,261
null
// Copyright 2013 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_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ #include <map> #inc...
code_c
code
3,146
null
/** * \file tuya_ble_app_production_test.c * * \brief */ /* * Copyright (C) 2014-2019, Tuya Inc., 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 obta...
code_c
code
12,477
null
<reponame>MarcSteven/MemoryChainKit // // MemoryChainKit.h // MemoryChainKit // // Created by <NAME> on 2020/3/8. // Copyright © 2020 <NAME>(https://github.com/MarcSteven). All rights reserved. // #import <Foundation/Foundation.h> //! Project version number for MemoryChainKit. FOUNDATION_EXPORT double MemoryChain...
code_c
code
170
null
#pragma once #include <QObject> #include "megaapi.h" namespace mega { class QTMegaGlobalListener : public QObject, public MegaGlobalListener { Q_OBJECT public: explicit QTMegaGlobalListener(MegaApi *megaApi, MegaGlobalListener *parent=NULL); virtual ~QTMegaGlobalListener(); virtual void onUsersUpdat...
code_c
code
220
null
/* Copyright 2011 WebDriver committers Copyright 2011 Google 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 ...
code_c
code
266
null
<filename>src/cursor.c /* The MIT License (MIT) * * Copyright (c) 2016 <NAME> * * Software repository: MoonGLUT, https://github.com/stetre/moonglut * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
code_c
code
1,024
null
<reponame>lukekras/zig #include <math.h> double sqrt(double x) { __asm__ ("sqrtsd %1, %0" : "=x"(x) : "x"(x)); return x; }
code_c
code
36
null
<filename>Includes/Art/Timer.h<gh_stars>1-10 /* * Timer.h * * Created on: 30 Oca 2015 * Author: denizcan */ #ifndef ART_TIMER_H_ #define ART_TIMER_H_ #include <Art/Object.h> #include <Art/CoreTimer.h> #include <Art/Task.h> #include <Art/Thread.h> namespace Art { class Timer : public Object { public: ...
code_c
code
316
null
/*--------------------------------------------------------------------*/ /*--- A mapping where the keys exactly cover the address space. ---*/ /*--- pub_tool_rangemap.h ---*/ /*--------------------------------------------------------------------*/ /* This file is part of...
code_c
code
1,042
null
// // Created by youxinxin on 2021/12/5. // #ifndef SMW_ICEORYX_RUNTIME_H #define SMW_ICEORYX_RUNTIME_H #include "iceoryx_posh/runtime/posh_runtime.hpp" namespace smw::core { class IceoryxRuntime { public: static IceoryxRuntime& getInstance() noexcept; static void initRuntime() noexcept; IceoryxRuntime...
code_c
code
188
null
<filename>parse-storyboard/sendViewController.h // // sendViewController.h // parse-storyboard // // Created by Mobile Flow LLC on 11/21/11. // Copyright (c) 2011 Mobile Flow LLC. All rights reserved. // #import <UIKit/UIKit.h> @interface sendViewController : UIViewController @property (weak, nonatomic) IBOutlet ...
code_c
code
124
null
<filename>vsSenOpenGL/Support/SenAbstractGLFW.h #pragma once #ifndef __SenAbstractGLFW__ #define __SenAbstractGLFW__ #include <stdlib.h> #include <stdio.h> #include <iostream> #include <Windows.h> #include <string> #define GLEW_STATIC #include <GL/glew.h> #include <GLFW/glfw3.h> #include "LoadShaders.h" #define...
code_c
code
466
null
#ifndef __SF_DEBUG_MACROS_H__ #define __SF_DEBUG_MACROS_H__ #define _SFD_MACHINE_CALL(v1,v2,v3) sf_debug_call(_trajectory_testMachineNumber_,UNREASONABLE_NUMBER,UNREASONABLE_NUMBER,MACHINE_OBJECT,v1,v2,v3,(unsigned int) _sfEvent_,-1,NULL,_sfTime_,1) #define _SFD_ME_CALL(v2,v3) _SFD_MACHINE_CALL(EVENT_OBJECT,v2,v3) #de...
code_c
code
3,652
null
<reponame>BondWong/barrier #ifndef GTMP_H #define GTMP_H void gtmp_init(int num_threads); void gtmp_barrier(); \ void gtmp_finalize(); #endif
code_c
code
41
null
// NOLINT(namespace-envoy) constexpr char TEST_EXPIRED_SAN_URI_CERT_HASH[] = "11d05cf1cb9dfdf0df683e1994b929b7f06e1bc5ea6b6f8ef6a102c6ccc70082"; constexpr char TEST_EXPIRED_SAN_URI_CERT_SPKI[] = "JMhC6O5fkrePDZUilmEbNhdfCpTsXZg8IZ1HSetfIjA="; constexpr char TEST_EXPIRED_SAN_URI_CERT_SERIAL[] = "8a80523e06a5756d"; c...
code_c
code
138
null
/* * Copyright 2018 Ophidian 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...
code_c
code
942
null
<reponame>Yeolar/accelerator /* * Copyright 2017 Yeolar * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
code_c
code
1,475
null
<gh_stars>1000+ /*====================================================================* - Copyright (C) 2001 Leptonica. 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. Redistribut...
code_c
code
2,065
null
<reponame>Scarzard/Placeholder_Engine #ifndef __ModuleWindow_H__ #define __ModuleWindow_H__ #include "Module.h" #include "SDL/include/SDL.h" class SDL_Window; class ModuleWindow : public Module { public: ModuleWindow(bool start_enabled = true); // Destructor virtual ~ModuleWindow(); bool Init(); bool CleanUp...
code_c
code
382
null
/* ** EPITECH PROJECT, 2017 ** get_path ** File description: ** get_path */ #include "my.h" #include "hash_map.h" char *get_path(hash_map_t *env, char *cmd) { hm_object_t *obj = hm_get_object(env, cmd); char *path; if (obj == NULL) return (cmd); path = (char *)obj->data; return (path); }
code_c
code
85
null
<gh_stars>0 // // WDZOSSDownloadAble.h // Pods // // Created by 王振海 on 2018/11/22. // #import <UIKit/UIKit.h> @protocol WDZOSSDownloadAble <NSObject> //如果实现协议,必须实现 @required /**下载完后*/ @property (nonatomic, copy) NSString *fileLocalpath; /**下载的URL*/ @required - (NSString *)getDownloadURL; @end
code_c
code
86
null
#include <stdio.h> int main() { int m, n; int i, k=1; scanf("%d%d", &n, &m); if(n==0 || m==0){ k = 0; } else if(n>=m){ for(i=n;i>=(n-m+1);i--){ k = k * i; } for(i=1;i<=m;i++){ k=k/i; } } else{ k = 1; } print...
code_c
code
99
null
<reponame>Maria56461/Elements_Of_Computer_Graphics<filename>src/lab_m1/Tema1/object2D.h<gh_stars>0 #pragma once #include <string> #include "core/gpu/mesh.h" #include "utils/glm_utils.h" namespace object2D { Mesh* CreateHexagon(const std::string& name, glm::vec3 leftBottomCorner, float length, glm::vec3 ...
code_c
code
280
null
/* Copyright (c) 1994 <NAME>, <NAME>. All Rights Reserved. */ /* * main_uncast.c: uses functions in hash.c and uncast.c to implement "uncast". */ #include "defs.h" #if ISO_CHAR_SET #include <locale.h> #endif #include "dummysyscalls.c" extern char **environ; usage(progname) char *progname; { fprintf(stderr, "\nT...
code_c
code
1,244
null
// // KRNDeviceType.h // KRNDeviceTypeExample // // Created by ulian_onua on 3/12/17. // Copyright © 2017 ulian_onua. All rights reserved. // #import <Foundation/Foundation.h> #import "UIKit/UIKit.h" @interface KRNDeviceType : NSObject + (BOOL)iPhone; // return YES if device is iPhone + (BOOL)iPad; // return Y...
code_c
code
242
null
/**************************************************************************** Copyright Echo Digital Audio Corporation (c) 1998 - 2004 All rights reserved www.echoaudio.com This file is part of Echo Digital Audio's generic driver library. Echo Digital Audio's generic driver library is free software; ...
code_c
code
3,216
null
<reponame>Efpophis/cwxdaemon /* * cwdaemon - morse sounding daemon for the parallel or serial port * Copyright (C) 2002 - 2005 <NAME> <<EMAIL>> * and many authors, see the AUTHORS file. * Copyright (C) 2012 - 2014 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modi...
code_c
code
28,551
null
/* $OpenBSD: rde.h,v 1.16 2009/09/06 09:52:14 michele Exp $ */ /* * Copyright (c) 2005, 2006 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in a...
code_c
code
1,132
null
<gh_stars>100-1000 /* * Copyright Internet Systems Consortium, Inc. ("ISC") * Copyright Internet Software Consortium. * Copyright the NTPsec project contributors * SPDX-License-Identifier: ISC */ #include "config.h" #include <stdio.h> #include <sys/types.h> /* hack to ignore GCC Unused Result */ #define IGNORE(...
code_c
code
1,208
null
<gh_stars>10-100 #ifndef __GAME_H__ #define __GAME_H__ #include "lib_FixedMath.h" #include "lib_RenderBuffer.h" #include "lib_tilemap.h" #include "asset_tilemap.h" #include "game_types.h" #include "screen.h" #include "physics.h" #include "LevelMapScreen.h" class MainMenuScreen : public Screen { ...
code_c
code
354
null
<filename>hw/nx-compress.c<gh_stars>1-10 /* Copyright 2015 IBM Corp. * * 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 require...
code_c
code
2,318
null
<gh_stars>0 // // IPKBridgeCmd.h // iPoker // // Created by loyalwind on 2018/12/17. // Lua-OC,OC-Lua 交互的命令字 // 注意写文档注释格式如下 /** * xxx */ #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN /** * fb登录 * @"FacebookBridge.onFacebookLogin:" */ IPKEXTERN_STRING kOnFacebookLogin; /** * fb邀请好友 * @"FacebookBridge.o...
code_c
code
141
null
<filename>test/cpp/end2end/interceptors_util.h<gh_stars>1-10 /* * * Copyright 2018 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
code_c
code
2,615
null