text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
/* Copyright (c) 2015, <NAME> All rights reserved. All source material (source code, images, sounds, etc.) have been provided to University of California, Davis students of course ECS 160 for educational purposes. It may not be distributed beyond those enrolled in the course without prior permi...
code_c
code
1,181
null
/* * This file is released under the terms of the Artistic License. Please see * the file LICENSE, included in this package, for details. * * Copyright (C) 2002 <NAME> & Open Source Development Labs, Inc. * * 7 August 2002 */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <stdlib....
code_c
code
5,312
null
#include <unistd.h> #include <stdio.h> int main(int argc, char *argv[]) { unsigned int i,j; while(1) { j = 1; for(i = 1; i <= 10; i++) { j = j*i; } } }
code_c
code
58
null
/** @file @brief Header containing the workings of turning PathElements to/from JSON (serialization). @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file...
code_c
code
1,874
null
/* Copyright (c) 2002/03, <NAME> Part of Radeon driver and accelerant Basic access of PLL registers */ #include "radeon_interface.h" #include "pll_access.h" #include "pll_regs.h" #include "crtc_regs.h" #include "utils.h" void RADEONPllErrataAfterIndex( vuint8 *regs, radeon_type asic ) { if (! ((asic == rt_r...
code_c
code
694
null
#include <psp2/kernel/clib.h> #include <psp2/io/fcntl.h> #include <psp2/kernel/sysmem.h> #include <psp2/kernel/modulemgr.h> #include <psp2/kernel/threadmgr.h> #include <psp2/sysmodule.h> #include <taihen.h> static tai_hook_ref_t hook_ref; static SceUID hook_id; int sceSysmoduleLoadModuleInternalWithArg_pat...
code_c
code
386
null
//===----- KaleidoscopeJIT.h - A simple JIT for Kaleidoscope ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
code_c
code
2,101
null
#include "StackLinkOperation.h" #include "Config.h" #include "ARM/Encoder.h" namespace JIT { class MinimalConditionalBranch : public StackLinkOperation { private: ARM::Condition m_condition; ARM::Register m_operand1, m_operand2; public: MinimalConditionalBranch(size_t startOffset, size_t to, int skipCou...
code_c
code
188
null
#pragma once #ifndef CYLINDEROPTIMIZEDFEATURECALCULATOR_H #define CYLINDEROPTIMIZEDFEATURECALCULATOR_H #include <Features/Calculator/FeatureCalculatorBase.h> #include <pcl/point_types.h> #include <pcl/point_cloud.h> #include <pcl/visualization/pcl_visualizer.h> #include <boost/math/special_functions/fpclassify.hpp>...
code_c
code
3,324
null
<filename>Jolt/Physics/Body/BodyManager.h // SPDX-FileCopyrightText: 2021 <NAME> // SPDX-License-Identifier: MIT #pragma once #include <Jolt/Physics/Body/Body.h> #include <Jolt/Core/Mutex.h> #include <Jolt/Core/MutexArray.h> JPH_NAMESPACE_BEGIN // Classes class BodyCreationSettings; class BodyActivationListener; st...
code_c
code
3,748
null
<reponame>mathstuf/ParaView /* ____ _ __ ____ __ ____ / __/___(_) / ___ ____/ __ \__ _____ ___ / /_ / _/__ ____ _\ \/ __/ / _ \/ -_) __/ /_/ / // / -_|_-</ __/ _/ // _ \/ __/ /___/\__/_/_.__/\__/_/ \___\_\_,_/\__/___/\__/ /___/_//_/\__(_) Copyright 2012 SciberQuest Inc. */ #ifn...
code_c
code
875
null
/* * $Id: stdlib_malloc.c,v 1.20 2008-09-30 14:09:00 obarthel Exp $ * * :ts=4 * * Portable ISO 'C' (1994) runtime library for the Amiga computer * Copyright (c) 2002-2015 by <NAME> <obarthel (at) gmx.net> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modificat...
code_c
code
3,994
null
<gh_stars>0 // // NGOOnePixelView.h // Pods // // Created by <NAME> on 29.12.15. // // #import <UIKit/UIKit.h> typedef NS_ENUM(int, NGOOnePixelViewConstraintType) { NGOOnePixelViewConstraintTypeHeight = 0, NGOOnePixelViewConstraintTypeWidth, NGOOnePixelViewConstraintTypeBoth }; @interface NGOOnePixelV...
code_c
code
113
null
<filename>d/dragon/old/sewer/sewer30.c #include <std.h> #include <objects.h> inherit "/std/vault"; void create() { vault::create(); set_property("light",-1); set_property("indoors",1); set_short("Sanctuary Sewers"); set_long("%^RED%^%^BOLD%^ These are the disgusting sewers under the city of Sanctu...
code_c
code
514
null
/********************************************************************** Copyright(c) 2020 Arm Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must...
code_c
code
2,265
null
<filename>json_reader.h /* Extremely simple JSON serialization for C++ www.github.com/g40/esj Copyright (c) <NAME>, 2012-2014 All rights reserved. Trivial example: Given a class with std::wstring members a,b,c implement a function called serialize() as in: void serialize(JSON::json_adapter& adapter) { ...
code_c
code
2,537
null
<reponame>maxthielen/yml<gh_stars>10-100 // // Created by jessevw on 24.03.20. // #ifndef RTT_HALT_H #define RTT_HALT_H #include "stp/Role.hpp" namespace rtt::ai::stp::role { class Halt : public Role { public: /** * Ctor that sets the name of the role and creates a state machine of tactics * @param...
code_c
code
125
null
<filename>alica_engine/include/engine/constraintmodul/ProblemDescriptor.h<gh_stars>10-100 #pragma once #include "engine/collections/AgentVariables.h" #include <alica_solver_interface/Interval.h> #include <memory> #include <utility> #include <vector> namespace alica { class SolverContext; class SolverTerm; class Solver...
code_c
code
610
null
<reponame>wbpcode/cpp2sky // Copyright 2020 SkyAPM // 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
2,125
null
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
code_c
code
169
null
<reponame>marmolak/gray386linux /** * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved. * * This source file is released under GPL v2 license (no other versions). * See the COPYING file included in the main directory of this source * distribution for the license terms and conditions. * * @File ...
code_c
code
12,301
null
<filename>src/init.c #include "caboodle.h" extern double scale_dLx(double, double, double, double, double, double); extern double scale_dLy(double, double, double, double, double, double); extern double scale_dLz(double, double, double, double, double, double); extern double scale_Sxy(double, double, double, double, ...
code_c
code
2,061
null
<filename>weblayer/browser/weblayer_field_trials.h // Copyright 2019 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 WEBLAYER_BROWSER_WEBLAYER_FIELD_TRIALS_H_ #define WEBLAYER_BROWSER_WEBLAYER_FIELD_TRIALS_H_ #i...
code_c
code
302
null
/******************************************************************************* * * Copyright (c) 2013-2021, Lawrence Livermore National Security, LLC * and other libROM project developers. See the top-level COPYRIGHT file for * details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) * **********************...
code_c
code
1,288
null
<gh_stars>0 /* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2020 RDK Management * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
code_c
code
693
null
#include <stdio.h> int main() { int operador; int operandoa; int operandob; int resultado; scanf("%d", &operador); scanf("%d", &operandoa); scanf("%d", &operandob); if(operador == 1) { resultado = operandoa + operandob; } else if(operador == 2) { resultado = operandoa - operandob; } else ...
code_c
code
141
null
// // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // ResourcesHLSL.h: // Methods for GLSL to HLSL translation for uniforms and interface blocks. // #ifndef COMPILER_TRANSLATOR_RESOURCESHL...
code_c
code
1,779
null
<filename>src/simulation/simMessages/idEphemerisSimMsg.h /* ISC License Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright n...
code_c
code
425
null
#ifndef _CRecentFiles_h_ #define _CRecentFiles_h_ #include "SYS_Defs.h" #include <list> class CByteBuffer; class CSlrString; #define C64D_RECENTS_FILE_NAME "recents.dat" class CRecentlyOpenedFilesCallback { public: virtual void RecentlyOpenedFilesCallbackSelectedMenuItem(CSlrString *filePath); }; class CRecent...
code_c
code
314
null
<gh_stars>0 #include "cll.c" int main() { struct node *cll= NULL; int ch, data, pos; while(1) { printf("MAIN MENU"); printf("\n1. Create list"); printf("\n2. Display "); printf("\n3. Insert at beginning "); printf("\n4. Insert at end "); printf("\n5. Insert at position "); ...
code_c
code
925
null
// // NSDictionary+YYAdd.h // YYKit // // Created by ibireme on 13-4-4. // Copyright (c) 2013 ibireme. All rights reserved. // #import <UIKit/UIKit.h> /** Provide some some common method for `NSDictionary`. */ @interface NSDictionary (YYAdd) /** Returns a new array containing the dictionary's keys sorted. Th...
code_c
code
754
null
// Copyright (c) <NAME>. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full // license information. #ifndef API_COMMON_H #define API_COMMON_H #ifdef __cplusplus extern "C" { #endif #include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/event_groups.h...
code_c
code
135
null
<filename>neonboardprefs/NBPRootListController.h #import <Preferences/PSListController.h> #import <Preferences/PSSpecifier.h> @interface NBPRootListController : PSListController <UITableViewDelegate, UITableViewDataSource> @end
code_c
code
65
null
<gh_stars>10-100 /* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <aos/aos.h> #include <sal_arch.h> #include <sal_def.h> #include <sal_ipaddr.h> #include <sal_sockets.h> #include <sal_err.h> #include <sal.h> #include <hal/atcmd.h> #ifd...
code_c
code
2,674
null
// Copyright (c) 2011, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
code_c
code
3,214
null
<reponame>CaptainBern/libledger<filename>examples/common/common.h #ifndef EXAMPLES_COMMON_H #define EXAMPLES_COMMON_H #include <hidapi/hidapi.h> #include <libledger/libledger.h> extern struct ledger_device *get_ledger_nano_s(void); #endif /* EXAMPLES_COMMON_H */
code_c
code
76
null
#pragma once #include "SBezierPoint.h" #include "SBezierSegment.h" #include "SAnimBezierSegment.h" #include "SBezierCurve.h" #include "Polyline2D.h" #include "PolylineCollection.h" #include "Polygon2DCollection.h" #include "BezierCurveCollection.h" #include "BezierCurveManager.h" #include "BezierPolygonColl...
code_c
code
103
null
/**************************************************************************\ * This file is part of CaSPER. * * * * Copyright: * * 2011-20...
code_c
code
1,423
null
<reponame>jessecrossen/csynth #ifndef CSYNTH_ENVELOPES_H #define CSYNTH_ENVELOPES_H #include <math.h> #include <assert.h> #include <functional> namespace CSynth { /// # Envelopes # /// /// An envelope is a non-periodic function that varies over time, and is /// generally used to vary the amplitude of an oscillator...
code_c
code
3,637
null
<reponame>uwmisl/purpledrop-stm32 #pragma once #include <stdio.h> /** * User defined callbacks for the USB driver */ extern void USBD_USR_Init(void); extern void USBD_USR_DeviceReset(uint8_t speed); extern void USBD_USR_DeviceConfigured(void); extern void USBD_USR_DeviceSuspended(void); extern void USBD_USR_...
code_c
code
186
null
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the tools applications of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Lice...
code_c
code
1,266
null
/******************************************************************************* * $Id$ * Copyright (C) 2010 OCTLab Project * All rights reserved. * web-site: www.OCTLab.org * ***** ******* ***** * Use of this source code is governed by a Clear BSD-s...
code_c
code
339
null
<gh_stars>100-1000 // Google BSD license http://code.google.com/google_bsd_license.html // Copyright 2012 Google Inc. <EMAIL> // // A generic hash table implementation // #ifndef HASH_TABLE_H #define HASH_TABLE_H #ifdef __cplusplus extern "C" { #endif #include <stdint.h> // cast int to void* #define HT_KEY(i) ((vo...
code_c
code
400
null
<filename>oneflow/core/ep/cuda/primitive/type_seq.h<gh_stars>0 /* Copyright 2020 The OneFlow 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/...
code_c
code
757
null
<filename>Java/com_androidwallet_core_BRCorePaymentProtocolEncryptedMessage.h<gh_stars>0 /* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class com_androidwallet_core_BRCorePaymentProtocolEncryptedMessage */ #ifndef _Included_com_androidwallet_core_BRCorePaymentProtocolEncryptedMess...
code_c
code
981
null
<filename>src/buffer_manager.c #include <stdlib.h> #include "buffer_manager.h" #include "errors.h" int ALARM_INTERRUPT = 0; int ACTIVE_ALARM = 0; Error init_ReadBuffer(BufferRead * const buffer_read, int file, ssize_t size) { if (size == 0) size = PAGE_SIZE; void * buffer = malloc(size); if (b...
code_c
code
1,140
null
<filename>CormanLispServer/include/Stdafx.h // ------------------------------- // Copyright (c) Corman Technologies Inc. // See LICENSE.txt for license information. // ------------------------------- #include <windows.h>
code_c
code
66
null
<filename>sse-sumbytes/int8_t/avx2_sadbw.h #pragma once #include <cstdint> #include <cstdlib> int32_t avx2_sadbw_sumsignedbytes(int8_t* array, size_t size); int32_t avx2_sadbw_unrolled4_sumsignedbytes(int8_t* array, size_t size); int32_t avx2_sadbw_variant_sumsignedbytes(int8_t* array, size_t size);
code_c
code
86
null
#ifndef SRC_SERVICES_H #define SRC_SERVICES_H #include <stdexcept> #include <string> #include <sstream> #include <iostream> #include <utility> #include "Date.h" #include "Services_Constants.h" class Service { private: std::string _name; bool _pro; float _basePrice; Duration _duration; public: Ser...
code_c
code
588
null
<gh_stars>1-10 /* * Copyright 2010-2011 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * ...
code_c
code
471
null
# /* ******************************************************************** # * * # * (C) Copyright <NAME> 2003-2005. * # * * # * Distributed under the Boo...
code_c
code
1,808
null
#ifndef CAN_H #define CAN_H #ifdef __cplusplus extern "C" { #endif #include <stdint.h> #include <stdbool.h> #include <stddef.h> #include "mpc.h" typedef enum { endianess_motorola_e = 0, endianess_intel_e = 1, } endianess_e; typedef enum { numeric_unsigned_e, numeric_signed_e, numeric_floating_e, } numeric_e; ...
code_c
code
714
null
#include <PneuDriveLL.h> #include "pressureRegulator_ITV2030.h" static uint16_t regulator_DAPort=0; static float Pmin = 0; static float Pmax = 4000; static float PCommand; static float VCommand; static float VoutZero = 0.94; void setPressure(float pc) // gauge pressure { if(pc<Pmin) PCommand = Pmin; e...
code_c
code
186
null
<reponame>wuvdan/DailyDemo<gh_stars>0 // // UIImage+Extra.h // iOS-Project // // Created by wudan on 2018/12/24. // Copyright © 2018 wudan. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIImage (WDExtra) /** 设置图片的读取模式 */ + (nullable UIImage *)wd_initWithName:(NSString *)name...
code_c
code
190
null
/** * \file * * \brief SAM SERCOM USART Asynchronous Driver * * Copyright (C) 2012-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
code_c
code
1,303
null
// 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_BROWSER_BROWSER_PROCESS_PLATFORM_PART_ANDROID_H_ #define CHROME_BROWSER_BROWSER_PROCESS_PLATFORM_PART_ANDROID_H_ #include "base/compil...
code_c
code
230
null
<reponame>jyothiraditya-n/project-euler /* <NAME> Solutions to Project Euler Questions */ #include <inttypes.h> #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <string.h> bool ispalindrome(uint32_t n) { char string[8]; sprintf(string, "%" PRIu32, n); uint8_t i = 0; size_t j = strlen(string) ...
code_c
code
211
null
<filename>Source/VTKExtensions/Client/vtkSMMeshSourceProxy.h<gh_stars>0 //========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the imp...
code_c
code
554
null
#define DEFINITION_Stack #define Zp1Fy8_0 65535 typedef ADDRESS Zp1Fy8_1; typedef struct Stack_1 { LONGINT Y0; LONGINT Y1; struct Stack_2 { Zp1Fy8_1 A[Zp1Fy8_0 + 1]; } *Y2; } Zp1Fy8_2; extern void Zp1Fy8_3 ARGS ((Zp1Fy8_2 *Z122)); extern void Zp1Fy8_4 ARGS ((Zp1Fy8_2 *Z122)); extern void Zp1Fy8_5 ARGS ((Zp1Fy8_2 *Z122...
code_c
code
195
null
<filename>sample/targets/opencl/vx_filter.c /* * Copyright (c) 2012-2017 The Khronos Group 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/L...
code_c
code
3,417
null
// // DOMImplementation.h // // Library: XML // Package: DOM // Module: DOM // // Definition of the DOM DOMImplementation class. // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #ifndef DOM_DOMImplementation_INCLUDED #define ...
code_c
code
660
null
<filename>SRCMutation/test/lod/lod_many/test.c double function() { int a = 4, b = 5; if ((a > 0 && b > 0) || 1) return 1; else return 0; }
code_c
code
39
null
<reponame>huangping35/FoldTableDemo #import <Foundation/Foundation.h> #import "Song.h" #import <ReactiveObjC/ReactiveObjC.h> NS_ASSUME_NONNULL_BEGIN @interface SongViewModel : NSObject +(RACSignal*)getSongs; @end NS_ASSUME_NONNULL_END
code_c
code
68
null
<filename>base/ntsetup/win95upg/tools/regdump/regdump.c<gh_stars>10-100 /*++ Copyright (c) 1997 Microsoft Corporation Module Name: enumtree.c Abstract: Performs a test of the file enumeration code. Author: <NAME> (jimschm) 14-Jan-1998 Revision History: <alias> <date> <commen...
code_c
code
1,484
null
<gh_stars>1-10 /* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #pragma once #include <AzCore/Component/Component.h> namespace AZ { class Reflec...
code_c
code
284
null
<gh_stars>1-10 #pragma once #include <SFML/Graphics.hpp> #include <stack> class State { protected: sf::RenderWindow* window; public: State(sf::RenderWindow * window); virtual ~State(); virtual void update(float& dt) = 0; virtual void updateRender(sf::RenderTarget * renderTarget) = 0; virtual void updateInput() =...
code_c
code
93
null
<reponame>fandongwei/pgsphere<filename>gnomo.c #include <postgres.h> #include <fmgr.h> #include <utils/geo_decls.h> /* Point */ #include <point.h> /* SPoint from pgsphere */ #include <math.h> PG_FUNCTION_INFO_V1(gnomonic_proj); PG_FUNCTION_INFO_V1(gnomonic_inv); /* * Direct gnomonic projection. * * point gnomo...
code_c
code
523
null
// // SPARK particle engine // // Copyright (C) 2008-2011 - <NAME> - <EMAIL> // Copyright (C) 2017 - <NAME> - <EMAIL> // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // // Permissi...
code_c
code
854
null
<filename>appA/gnome-example-c.c /* PURPOSE: This program is meant to be an example of what GUI programs * look like written with the GNOME libraries. */ #include <gi.h> int main(int argc, char **argv) { return 0; }
code_c
code
63
null
#pragma once #include "mcpch.h" #include <stdint.h> #define MC_PI 3.14159265359 namespace MC { inline int clamp(const int min, const int max, const int val) { int aux = 0; if (val < min) { aux = min; return aux; } else if (val > max) { aux = max; return aux; } return val; } inline u...
code_c
code
438
null
#ifndef SF_CRYPTO_MANAGER_H #define SF_CRYPTO_MANAGER_H #define SF_TYPE_CRYPTO_MANAGER (sf_crypto_manager_get_type()) #define SF_CRYPTO_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SF_TYPE_CRYPTO_MANAGER, SfCryptoManager)) #define SF_IS_CRYPTO_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), SF_TYPE_CRYPTO_MANAGER)) #inclu...
code_c
code
2,968
null
<reponame>oway13/Schoolwork<gh_stars>0 /* This file is part of the MinGfx Project. Copyright (c) 2017,2018 Regents of the University of Minnesota. All Rights Reserved. Original Author(s) of this File: <NAME>, 2018, University of Minnesota Author(s) of Significant Updates/Modifications to the File: ... */ ...
code_c
code
753
null
// Copyright 2017 the V8 project 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 V8_OBJECTS_SHARED_FUNCTION_INFO_INL_H_ #define V8_OBJECTS_SHARED_FUNCTION_INFO_INL_H_ #include "src/heap/heap-inl.h" #include "src/objects/scop...
code_c
code
4,043
null
<gh_stars>1-10 #ifndef _SHADOW_H #define _SHADOW_H #ifdef __cplusplus extern "C" { #endif #define __NEED_FILE #define __NEED_size_t #include <bits/alltypes.h> #define SHADOW "/etc/shadow" struct spwd { char *sp_namp; char *sp_pwdp; long sp_lstchg; long sp_min; long sp_max; long sp_warn; ...
code_c
code
222
null
#pragma once #include <iostream> #include <string> using namespace std; class BankTotal { private: int privateones = 0; int privatefives = 0; int privatetwentyfives = 0; int privatehundreds = 0; int privatetwohundredfifties = 0; //Fields public: int getones() const; void setones(const int &valu...
code_c
code
209
null
<reponame>hanwp123456/WPShareKit<gh_stars>0 // // LFShareProviderUM.h // ShareDemo // // Created by bopuhanyu on 16/12/29. // Copyright © 2016年 LaiFeng. All rights reserved. // #import "LFShareProvider.h" #import "LFShareUmengItem.h" @interface LFShareProviderUM : LFShareProvider @property (nonatomic,strong,readon...
code_c
code
132
null
/* +----------------------------------------------------------------------+ | Swoole | +----------------------------------------------------------------------+ | This source file is subject to version 2.0 of the Apache license, | | that is bundled wi...
code_c
code
1,377
null
//===-- main.c --------------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
code_c
code
174
null
<reponame>mikedlowis-prototypes/albase<filename>source/kernel/drivers/misc/lis3lv02d/lis3lv02d_i2c.c<gh_stars>10-100 /* * drivers/hwmon/lis3lv02d_i2c.c * * Implements I2C interface for lis3lv02d (STMicroelectronics) accelerometer. * Driver is based on corresponding SPI driver written by <NAME> * (lis3lv02d_spi.c (...
code_c
code
2,171
null
/* Copyright (c) 2007-2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub...
code_c
code
972
null
/* *************************************************************************** * Ralink Tech Inc. * 4F, No. 2 Technology 5th Rd. * Science-based Industrial Park * Hsin-chu, Taiwan, R.O.C. * * (c) Copyright 2002-2009, Ralink Technology, Inc. * * All rights reserved. Ralink's source code is an unpublished work a...
code_c
code
25,029
null
<filename>lib/timeline_listener.c #include "hawktracer/timeline_listener.h" #include "hawktracer/alloc.h" #include "internal/registry.h" #include "internal/mutex.h" #include <assert.h> HT_TimelineListenerContainer* ht_timeline_listener_container_create(void) { HT_TimelineListenerContainer* container = HT_CREATE_...
code_c
code
640
null
// // swift_entity_partial.c // exp2swift // // Created by Yoshida on 2020/07/26. // Copyright © 2020 <NAME>, Minokamo, Japan. All rights reserved. // #include <assert.h> #include <stdlib.h> #include "exppp.h" #include "pp.h" #include "pretty_expr.h" #include "pretty_subtype.h" #include "pretty_where.h" #include ...
code_c
code
14,089
null
<reponame>windystrife/UnrealEngine_NVIDIAGameWork // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" /** * Various data declarations relating to split screen on a GameViewportClient * * @see ESplitScreenType * @see FPerPlayerSplitscreenData * @see FSplitscreenDat...
code_c
code
393
null
#import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @class VENUser; typedef void(^VENUserFetchSuccessBlock)(VENUser *user); typedef void(^VENUserFetchFailureBlock)(NSError *error); /** * @note Users are considered equal if and only if their external IDs are the same */ @interface VENUser : NSObject <NSCopyin...
code_c
code
666
null
<reponame>TheRealMilesLee/CS-250 /** * @file search_record.h * @author <NAME> * @brief This file is used to search the record using the keyword * @version 0.2 * @date 2021-11-22 * @copyright Copyright (c) 2021 <NAME>. All rights reserved */ #include "structure_contact.h" /** * @brief This file is to search t...
code_c
code
162
null
#pragma once #include "tree.h" #include <cstdint> struct AVLTLogStructure { uint64_t Key = 0; uint64_t Value = 0; NodeIndex Root = Nullptr; NodeIndex S = Nullptr; // Place to rebalance NodeIndex T = Nullptr; // and parent NodeIndex P = Nullptr; // Iterator NodeIndex Q = Nullptr; // and save pointer D...
code_c
code
351
null
<gh_stars>0 /*AlexZ This program was coppied from the book, page 165. It removes all the comments from the input program. */ #include <stdio.h> enum status {OUT,IN_STRING,LEFT_SLASH,IN_COMMENT,RIGHT_STAR,IN_CPP_COM}; void main(void) { int c; int state=OUT; while ((c=getchar()) !=EOF) { switch(state){ case ...
code_c
code
300
null
<filename>MSProfessorSDK/Classes/redcup/UIView+MSRedCupThread.h<gh_stars>0 // // UIView+MSRedCupThread.h // MSProfessorSDK // // Created by zzg on 2018/8/16. // #import <UIKit/UIKit.h> @interface UIView (MSRedCupThread) @end
code_c
code
66
null
<gh_stars>1000+ /* mbed Microcontroller Library * Copyright (c) 2018 GigaDevice Semiconductor Inc. * * 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 ...
code_c
code
7,512
null
<filename>nlsCppSdk/util/error.h /* * Copyright 2015 Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 *...
code_c
code
418
null
<filename>src/plugins/azoth/core.h<gh_stars>0 /********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 <NAME> * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted,...
code_c
code
4,805
null
/* Copyright (c) 2007 <NAME>, <NAME> ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associated documentation files (the "Software"), to deal ** in the Software without restriction, including without limitation the rights ** to use, copy, modify, merge, publish...
code_c
code
2,178
null
<reponame>ghsecuritylab/tomato_egg /* * * $Id$ * * Copyright (C) 2005 <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 * * This ...
code_c
code
792
null
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ #define DEVICE_BLUETOOTH_TEST_MOCK_BLUETOOTH_ADAPTER_H_ #include <memory> #include <string> #...
code_c
code
2,138
null
// // BAPickerResultModel.h // BAPickView // // Created by 博爱 on 2021/4/6. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface BAPickerResultModel : NSObject // 选中结果保存 #pragma mark - common @property(nonatomic, copy) NSString *resultString; @property(nonatomic, assign) NSInteger selectRow; ...
code_c
code
270
null
<filename>OverkillGameEngine/core/io/parsers/json/jsonparser.h #pragma once namespace OK { class JSONNode; class JSONParser { public: void Parse(String::const_iterator searchStart, String::const_iterator searchEnd, JSONNode& result); private: void ParseInternal(String::const_itera...
code_c
code
232
null
<filename>audio/sysvad/TabletAudioSample/hdmiwavtable.h /*++ Copyright (c) Microsoft Corporation All Rights Reserved Module Name: hdmiwavtable.h Abstract: Declaration of wave miniport tables for the hdmi endpoint. Note: the HDMI in this sample shows how to do h/w loopback for n...
code_c
code
9,236
null
<gh_stars>0 #include <arduino.h> #ifndef MOTOR_H #define MOTOR_H class Motor{ public: /** * @brief a cpp is not alway reqired ... */ Motor(volatile uint8_t* highByte, volatile uint8_t* lowByte, volatile uint8_t* dir, uint8_t pin, int8_t adapt){ m_High = highByte; m_Low = lowByte; m_DirPo...
code_c
code
318
null
#ifndef _H_HELPER #define _H_HELPER #include "model.h" #include "shapes.h" #include <glm/glm.hpp> #include <cmath> #include <vector> #include <tuple> //Algumas funções de apoio namespace tnw { //Calcula se duas caixas intersecionam. Os valores são: //c - centro; l - largura; d - profundidade; h - altura bool box_in...
code_c
code
619
null