text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
// // TLTweetFrame.h // Coding_iOS // // Created by taolei-mac on 2017/11/24. // Copyright © 2017年 com.lianchuan. All rights reserved. // #import <Foundation/Foundation.h> @class TLTweetDetailViewFrame, TLCommentsFrame, TLTweet; @interface TLTweetFrame : NSObject @property (nonatomic, assign) CGRect toolBarFram...
code_c
code
162
null
<filename>Example/Pods/Headers/Public/XBExtension/XBExtension.h // // XBExtension.h // Pods // // Created by <NAME> on 8/2/14. // // #import "XBAppUtil.h" #import "UIColor+XBExtension.h" #import "NSDictionary+XBExtension.h" #import "NSArray+XBExtension.h" #import "NSObject+XBExtension.h" #import "UIView+XBExtension...
code_c
code
158
null
// Copyright 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_DOWNLOAD_DOWNLOAD_SHELF_CONTROLLER_H_ #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_CONTROLLER_H_ #include "base/macros.h" #inclu...
code_c
code
600
null
<reponame>SayanSahu99/my-Mobile-Mask-RCNN /* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LIC...
code_c
code
1,859
null
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef __NS_SVGFILTERELEMENT_H__ ...
code_c
code
742
null
<filename>particle-iot/src/data_publisher.h #pragma once #include "const.h" #include "sensors/engine.h" #include "sensors/thermometer.h" #include "sensors/voltmeter.h" #include <TaskManagerIO.h> #include <ExecWithParameter.h> class DataPublisher : public Executable { private: EngineSensor &engine; Thermometer &th...
code_c
code
163
null
<reponame>wdd00/logcabin /* Copyright (c) 2015 <NAME> * * 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 all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE ...
code_c
code
1,506
null
// SPDX-License-Identifier: GPL-2.0 /* * FPU register's regset abstraction, for ptrace, core dumps, etc. */ #include <linux/sched/task_stack.h> #include <linux/vmalloc.h> #include <asm/fpu/api.h> #include <asm/fpu/signal.h> #include <asm/fpu/regset.h> #include "context.h" #include "internal.h" #include "legacy.h" #...
code_c
code
2,809
null
#ifndef INPUT_H #define INPUT_H #include "guff.h" int input_read(config *cfg, data_set *ds); void input_free(data_set *ds); #endif
code_c
code
38
null
<reponame>wanglawrence9990/USACO /** * Description: finds smallest $x\ge 0$ such that $L\le Ax\pmod{P}\le R$ * Source: https://codeforces.com/gym/102411/submission/64315879 * Verification: https://codeforces.com/gym/102411/problem/G */ ll cdiv(ll x, ll y) { return (x+y-1)/y; } ll bet(ll P, ll A, ll L, ll R) { if...
code_c
code
157
null
<reponame>appfs/appfs #include "utils.h" #include <map> #ifndef MYHEAP_H #define MYHEAP_H class myHeap { private: std::vector<vertex> tree; std::vector<int> positions; void checkDown(int idx); void checkUp(int idx); void mkHeap(); public: myHeap(int& n, int& startTerminal, std::vector<Edge>& e...
code_c
code
158
null
// // PickViewController.h // YYProject // // Created by 于优 on 2018/12/5. // Copyright © 2018 SuperYu. All rights reserved. // #import "YYBaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface PickViewController : YYBaseViewController @end NS_ASSUME_NONNULL_END
code_c
code
78
null
#include "yespower.h" //#include "yespower-opt.c" int yespower_hash(const char *input, char *output) { yespower_params_t params = {YESPOWER_1_0, 2048, 32, NULL, 0}; yespower_tls(input, 80, &params, (yespower_binary_t *) output); // for(int j = 0; j < 16; j++){ // reverse output // int t = output[j...
code_c
code
124
null
<gh_stars>0 /* * power_supply_extcon: Power supply detection through extcon. * * Copyright (c) 2012-2018, NVIDIA CORPORATION. All rights reserved. * <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 *...
code_c
code
3,659
null
<filename>Code/Legacy/CryCommon/CryAssert_Mac.h /* * 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 * */ // Description : Assert dialog box for Mac OS X #...
code_c
code
793
null
/** * The code is adapted from https://github.com/code-iai/iai_kinect2 */ #pragma once #ifndef __AZURE_CONSOLE_H__ #define __AZURE_CONSOLE_H__ #include <string> #include <ros/console.h> // Set this to '0' to disable the extended colored output #define EXTENDED_OUTPUT 1 #if EXTENDED_OUTPUT #define NO_COLOR ...
code_c
code
433
null
<reponame>cymonsgames/CymonsGames<gh_stars>10-100 /* Blackbox or AtomSweeper ver 2008-Aug-1 * by <NAME> based on by a board game by <NAME> * (also inspired by a BASIC program by <NAME> * as found in 'More Basic Computer Games' edited by <NAME> (c) 1979) */ #include <stdio.h> #include <stdlib.h> #include <ctype.h>...
code_c
code
1,871
null
<filename>DataCollector/mozilla/xulrunner-sdk/include/nsStubMutationObserver.h /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not ...
code_c
code
411
null
/* * Copyright 2008 Search Solution Corporation * Copyright 2016 CUBRID Corporation * * 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-...
code_c
code
3,111
null
<reponame>elinor-fung/coreclr // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // See regex_base.h for more information. // // This header creates some concrete inst...
code_c
code
2,027
null
<reponame>solson/lean<filename>src/library/tactic/simp_lemmas.h /* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: <NAME> */ #pragma once #include "library/type_context.h" #include "library/head_map.h" #include "library/vm/vm.h"...
code_c
code
2,169
null
<filename>ZenGin/Gothic_I_Addon/API/zCollisionObjectMisc.h // Supported with union (c) 2018 Union team #ifndef __ZCOLLISION_OBJECT_MISC_H__VER1__ #define __ZCOLLISION_OBJECT_MISC_H__VER1__ namespace Gothic_I_Addon { class zCCollObjectBase : public zCCollisionObject { public: zCCollObjectBase() {} static...
code_c
code
3,463
null
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
code_c
code
1,779
null
/* $NetBSD: compat_13_machdep.c,v 1.1 1998/09/13 09:15:52 thorpej Exp $ */ /* * Copyright (C) 1995, 1996 <NAME>. * Copyright (C) 1995, 1996 TooLs GmbH. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
code_c
code
861
null
/* * Copyright (c) 2009, <NAME> (<EMAIL>) * * This source code is released for free distribution under the terms of the * GNU General Public License version 2 or (at your option) any later version. * * File: ttcn.c * Description: Adds TTCN-3 support to Exuberant ctags * Version: 0.4 * Author: <NAME> (<EMA...
code_c
code
8,272
null
#ifndef BUFFER_ENTRY_H #define BUFFER_ENTRY_H #include <GL/glew.h> struct BufferEntry { const char *attributeName; int vectorElementCount; GLenum glType; int vectorElementSize; bool normalized; int size; BufferEntry(const char *attributeName, int vectorSize, GLenum glType, int vectorEleme...
code_c
code
107
null
#include <filesystem> void dump_mem(FILE *out, const uint8_t *memory, uint16_t start, uint16_t end); void print_p(unsigned p); void pfileerror(std::filesystem::path path, const char *errmsg); void run_functional_test(); void run_interrupt_test(); void run_decimal_test(); void run_lorenz_tests();
code_c
code
85
null
<filename>MessageDisplayKit/Classes/Controllers/XHMessageTableViewController/XHMessageTableViewController.h<gh_stars>1000+ // // XHMessageTableViewController.h // MessageDisplayExample // // Created by HUAJIE-1 on 14-4-24. // Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 Q...
code_c
code
2,274
null
<reponame>SRCN-LiQin/TizenRT /**************************************************************************** * * Copyright 2019 Samsung Electronics 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 o...
code_c
code
10,482
null
#ifndef YUN_FEATURE_H #define YUN_FEATURE_H #include "pathing_flags.h" #include <stdbool.h> struct Symbol; struct Feature { char id[5]; char name[32]; char desc[32]; struct Symbol* symbol; PathingFlags pathing_flags; bool block_sight; }; struct Feature* feature_look_up_by_id(const char* id)...
code_c
code
112
null
<gh_stars>10-100 #ifndef __ASM_POWERPC_LIBATA_PORTMAP_H #define __ASM_POWERPC_LIBATA_PORTMAP_H #define ATA_PRIMARY_IRQ(dev) pci_get_legacy_ide_irq(dev, 0) #define ATA_SECONDARY_IRQ(dev) pci_get_legacy_ide_irq(dev, 1) #endif
code_c
code
64
null
<reponame>andreott/OpenMS // -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Z...
code_c
code
1,587
null
<gh_stars>1-10 /*Taito 68000 tiles ===================== Part of FBAs Taito 68k hardware drivers Credits: Mame team, Raine team Coding by KEV, with help from <NAME> and Jan_Klaassen */ #ifndef __TAITOTILES_H__ #define __TAITOTILES_H__ inline void drawtilemask_16(int number, int xpos, int ypos, int colour) { ...
code_c
code
5,982
null
<filename>ndmp-src/ndml_bstf.c<gh_stars>1-10 /* * Copyright 2000 * Traakan, Inc., Los Altos, CA * 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 r...
code_c
code
2,802
null
/* installboot 3.0 - Make a device bootable Author: <NAME> * 21 Dec 1991 * * Either make a device bootable or make an image from kernel, mm, fs, etc. */ #define nil 0 #define _POSIX_SOURCE 1 #define _MINIX 1 #include <stdio.h> #include <stddef.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/io...
code_c
code
6,046
null
<reponame>calidrelle/Gamecodeur /* * Scene_House_Room2_Mirror.h * enigma * * Created by Rockford on 22/10/10. * Copyright 2010 Casual Games France. All rights reserved. * */ #ifndef _ENIGMA_SCENEROOM2MIRROR_H #define _ENIGMA_SCENEROOM2MIRROR_H #include "EScene.h" #include "KPTK.h" #include "KSound.h" cl...
code_c
code
286
null
<gh_stars>10-100 /* * Copyright 2011-2015 Ziminji * * 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 applicabl...
code_c
code
736
null
<reponame>s4ke/TivaGasSensor #ifndef __INIT_H__ #define __INIT_H__ #include "state.h" /** * initializes the program and the given _state_t in order * to be used in this program */ void init(_state_t* state); #endif
code_c
code
63
null
/* Header file automatically generated from windows.media.devices.core.idl */ /* * File built with Microsoft(R) MIDLRT Compiler Engine Version 10.00.0206 */ #pragma warning( disable: 4049 ) /* more than 64k source lines */ /* verify that the <rpcndr.h> version is high enough to compile this file*/ #ifndef __REQUI...
code_c
code
79,200
null
// (x & M) >> S to (x >> S) & (M >> S) unsigned int foo(unsigned int x) { return (x & 0xffff) >> 12; } /* * check-name: and-lsr * check-command: test-linearize -Wno-decl $file * * check-output-ignore * check-output-contains: and\\..*\\$15 * check-output-excludes: and\\..*\\$0xffff */
code_c
code
84
null
<reponame>team3130/Geneva #ifndef AUTON_CONTROL_INTAKE_HORIZONTAL_H #define AUTON_CONTROL_INTAKE_HORIZONTAL_H #include <WPILib.h> class AutonControlIntakeHorizontal: public Command { private: bool m_bExtend; public: AutonControlIntakeHorizontal(); ~AutonControlIntakeHorizontal(); void Initialize(); void Execut...
code_c
code
125
null
// // ViewController.h // Networking // // Created by <NAME> on 12/8/15. // Copyright © 2018 Brockenhaus Studio. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
code_c
code
62
null
// // Copyright (C) 2004-2011 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library is distributed in the hope that it will be use...
code_c
code
652
null
<reponame>usenixatc2021/SoftRefresh_Scheduling /* * Driver for Motorola PCAP2 as present in EZX phones * * Copyright (C) 2006 <NAME> <<EMAIL>> * Copyright (C) 2009 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License vers...
code_c
code
3,761
null
<filename>GMIchem_GridComp/GMI_GridComp/GmiChemistry/stratTropMech/setkin_mw.h<gh_stars>1-10 !======================================================================= ! ! $Id$ ! ! CODE DEVELOPER ! <NAME>, LLNL ! <EMAIL> ! ! FILE ! setkin_mw.h ! ! DESCRIPTION ! This include file contains gram molecular weights ! ...
code_c
code
764
null
#ifndef art_Framework_Principal_DelayedReader_h #define art_Framework_Principal_DelayedReader_h // vim: set sw=2 expandtab : // // DelayedReader // // Abstract interface used by EventPrincipal to request // input sources to retrieve EDProducts from external storage. // #include "art/Framework/Principal/fwd.h" #includ...
code_c
code
466
null
<reponame>jkaivo/libc-tests #include <stddef.h> #include "test.h" struct s { char a; char b; }; ptrdiff_t test_ptrdiff; size_t test_size; wchar_t test_wchar; void test_stddef_h(void) { static struct s the_s; testing_header("stddef.h"); test_true(NULL == 0); test_int_equals(offsetof(struct s, b), (char*)&(th...
code_c
code
104
null
/* File: vnus_types.h * * Representation of the Vnus types in the backend. */ typedef tmstring vnus_string; typedef bool vnus_boolean; typedef long vnus_int; typedef double vnus_real; typedef struct str_complex { double re; double im; } vnus_complex; #define rfre_vnus_natural(e) #define rdup_vnus_natural(e) (e) #d...
code_c
code
229
null
<gh_stars>1-10 // -*- C++ -*- // // <NAME>. aïvázis // orthologue // (c) 1998-2019 all rights reserved // // code guard #if !defined(pyre_grid_DirectGrid_h) #define pyre_grid_DirectGrid_h // A memory mapped grid // declaration template < typename cellT, typename layoutT, typename directT> class pyre::grid::DirectGri...
code_c
code
252
null
/** * Copyright (C) 2015 @nin9tyfour (http://twitter.com/nin9tyfour) * * 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 late...
code_c
code
634
null
/* * Copyright (c) 2008-2014 <NAME> * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #include <sys/types.h> #include <string.h> #include <stdlib.h> #include <lk/debug.h> #include <lk/trace.h> #include <kernel/thre...
code_c
code
658
null
<filename>include/utils/ArgParser.h<gh_stars>10-100 /* class ArgParser The argument parser is a part of the object tracking example application. It parses arguments necessary for PPF and CPF feature descriptors. All functionality is static. Use ArgParser::Help(); to get a list of the supported arguments. Features:...
code_c
code
566
null
/* * Copyright (c) [2020] Huawei Technologies Co., Ltd. All rights reserved. * * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. * You can use this software according to the terms and conditions of the MulanPSL - 2.0. * You may obtain a copy of MulanPSL - 2.0 at: * * https://opensou...
code_c
code
279
null
<reponame>RonRahaman/nekRS /****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) ***********...
code_c
code
1,390
null
/* * Copyright (C) 2012-2014 <NAME> * HSR Hochschule fuer Technik Rapperswil * * 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 l...
code_c
code
1,377
null
#define ZCOMPLEX #define ASMNAME zgemm_oncopy #define ASMFNAME zgemm_oncopy_ #define NAME zgemm_oncopy_ #define CNAME zgemm_oncopy #define CHAR_NAME "zgemm_oncopy_" #define CHAR_CNAME "zgemm_oncopy" #define DOUBLE #define COMPLEX #include "/lustre/scratch3/turquoise/rvangara/RD100/distnnmfkcpp_Src/install_dependencies/...
code_c
code
110
null
#pragma once #include "db/MojDbExtractor.h" class MojDbPropExtractor : public MojDbExtractor { public: static const MojChar* const AllKey; static const MojChar* const DefaultKey; static const MojChar* const PrimaryKey; static const MojChar* const SecondaryKey; static const MojChar* const TertiaryKey; static con...
code_c
code
372
null
<gh_stars>0 #include <stdio.h> int main() { void print_star(); void print_message(); print_star(); print_message(); print_star(); return 0; } void print_star() { printf("*********************\n"); } void print_message() { printf("How do you do! \n"); }
code_c
code
82
null
<filename>Source/VoxelEditor/Private/Details/VoxelMeshSpawnerBaseDetails.h // Copyright 2020 Phyronnaz #pragma once #include "CoreMinimal.h" #include "Input/Reply.h" #include "IDetailCustomization.h" #include "Widgets/Input/SButton.h" class FVoxelMeshSpawnerBaseDetails : public IDetailCustomization { public: static...
code_c
code
154
null
<reponame>dead-end/nuzzle /* * MIT License * * Copyright (c) 2020 dead-end * * 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 right...
code_c
code
588
null
// // FREventsInteractor.h // Friendly // // Created by <NAME> on 29.02.2016. // Copyright (c) 2016 Accucode Inc. All rights reserved. // @class FREventModels, FRFriendEventsModel; #import "FRSegmentView.h" typedef NS_ENUM(NSInteger, FREventsHudType) { FREventsHudTypeError, FREventsHudTypeShowHud, FR...
code_c
code
222
null
int main() { unsigned I, X; for (I = 0; I < 4000000000; ++I) X = I; return 0; } //CHECK: Printing analysis 'Canonical Form Loop Analysis' for function 'main': //CHECK: loop at canonical_loop_21.c:3:3 is semantically canonical
code_c
code
67
null
<gh_stars>1-10 #include <stdio.h> #include <stdlib.h> /* Dada uma matriz 4 x 4 faça um programa que diga se ela é um quadrado Magico ou nao -> SOma de todas as linhas, colunas, diagonal principal e secundaria sao iguais. Exemplo: Soma das linhas 16 3 2 13 = 34 5 10 11 8 = 34 9 6 7 ...
code_c
code
541
null
<reponame>bmpix/PolyVectorization<filename>src/greedyTrace.h #ifndef _GREEDY_TRACE_H_ #define _GREEDY_TRACE_H_ #include "typedefs.h" #include <set> std::pair<MyPolyline, std::array<bool, 2>> greedyTrace(const cv::Mat & origMask, const std::array<Eigen::MatrixXcd, 2>& allRoots, const Eigen::Vector2d & seedCenter, con...
code_c
code
186
null
// // GMSIndoorDisplay.h // Google Maps SDK for iOS // // Copyright 2013 Google Inc. // // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of // Service: https://developers.google.com/maps/terms // #import <Foundation/Foundation.h> #if __has_feature(modules) @import GoogleMapsBase; #else ...
code_c
code
604
null
<gh_stars>0 #pragma once u64 tmd_get_title_id(u8* tmd); u16 tmd_get_content_count(u8* tmd); u8* tmd_get_content_chunk(u8* tmd, u32 index);
code_c
code
39
null
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2005,2006 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distri...
code_c
code
2,795
null
<filename>src/Arabic/names/ar_NameRecognizer.h<gh_stars>1-10 // Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #ifndef ar_NAME_RECOGNIZER_H #define ar_NAME_RECOGNIZER_H #include "Generic/names/NameRecognizer.h" class NameTheory; class DocTheory; class ArabicIdFNameRecognizer; class PId...
code_c
code
670
null
<filename>R2017b/rtw/c/src/rtsplntypes.h #ifndef RTSPLNTYPES_H #define RTSPLNTYPES_H /* * File: rtsplntypes.h * * Abstract: * * Typedefs for spline lookup table algorithms. * * Copyright 1994-2007 The MathWorks, Inc. * * */ #include "rtwtypes.h" /*****************************************************...
code_c
code
303
null
<filename>EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.c /*++ @file Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> Portions copyright (c) 2011, Apple Inc. All rights reserved. SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "PiPei.h" #include <Ppi/EmuThunk.h> #include <Library/De...
code_c
code
1,046
null
<gh_stars>1-10 // This is used by SIPP #pragma once #include "ConstraintTable.h" typedef tuple<int, int, bool> Interval; // [t_min, t_max), has collision class ReservationTable { public: const ConstraintTable& constraint_table; ReservationTable(const ConstraintTable& constraint_table, int goal_location) : ...
code_c
code
390
null
<reponame>so931/poseidonos<filename>src/array/service/array_service_layer.h /* * BSD LICENSE * Copyright (c) 2021 Samsung Electronics Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
code_c
code
974
null
/*=============================================================================================== Offline Decoding Example Copyright (c), Firelight Technologies Pty, Ltd 2004-2014. This example shows how decode a file to PCM, without playing it. It writes out the data as a raw data file. The FMOD_System_CreateSou...
code_c
code
1,177
null
<filename>AdformAdvertising.xcframework/ios-arm64_i386_x86_64-simulator/AdformAdvertising.framework/Headers/AFContentPlayback.h // // AFContentPlayback.h // AdformAdvertising // // Created by <NAME> on 13/04/15. // Copyright (c) 2015 adform. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONN...
code_c
code
778
null
#ifndef CKTN_TEST_H_ #define CKTN_TEST_H_ #include <ktn/math/long.h> #ifdef __cplusplus extern "C" { #endif void basic(ddigit m, ddigit n); void fib(Long* dest, int n); void fact(Long* dest, int n); void arccot(Long* dest, Long* n, int m); void pi(Long* dest, ddigit a); #ifdef __cplusplus } #endif #endif /* CKTN_T...
code_c
code
94
null
#pragma once #include "Base/BaseTypes.h" #include "Base/BaseMath.h" #include "Math/Vector.h" #include "Math/Ray.h" namespace DAVA { #define AABBOX_INFINITY 1000000.0f /** \brief class to work with axial-aligned bounding boxes This class can be used for clipping together with Frustum */ class AABBox3 { public: ...
code_c
code
2,061
null
<filename>firmware/coreboot/3rdparty/blobs/cpu/intel/model_f2x/microcode-m04f252b.h //+++ // Copyright (c) <1995-2015>, Intel Corporation. // All rights reserved. // // Redistribution. Redistribution and use in binary form, without modification, are // permitted provided that the following conditions are met: // .Redi...
code_c
code
2,283
null
#pragma once #include <algorithm> #include <fstream> #include <iostream> #include <thread> #include "neural_network.h" auto ReadDatasetCancer() { std::ifstream file("../datasets/breast-cancer-wisconsin.data"); assert(file.is_open()); int number = -1; char comma = ','; DataSet dataset; DataEle...
code_c
code
977
null
<reponame>manashmndl/ANNLineFollower<filename>Resources/DATA/untitled_rtt/untitled_types.h /* * File: untitled_types.h * * Code generated for Simulink model 'untitled'. * * Model version : 1.0 * Simulink Coder version : 8.4 (R2013a) 13-Feb-2013 * TLC version : 8.4 (Jan...
code_c
code
308
null
<gh_stars>100-1000 /** * @file * @brief Implementation of methods in util/tree.h * * @date Oct 8, 2011 * @author <NAME> */ #include <assert.h> #include <util/dlist.h> #include <util/tree.h> struct tree_link *tree_link_init(struct tree_link *link) { assert(link != NULL); dlist_init(&link->children); dlist_hea...
code_c
code
994
null
<gh_stars>10-100 // // Created by Karven on 2018/8/23. // #ifndef LUADROID_VECTOR_H #define LUADROID_VECTOR_H #include <cstdlib> #include <new> #include "macros.h" template<typename _Tp,uint cacheCount=4> class Vector { public: typedef uint size_type;// int type is enough since the most usage is fo...
code_c
code
1,436
null
#pragma once #include <string> class PersonAddressBuilder : public PersonBuilderBase { typedef PersonAddressBuilder Self; public: explicit PersonAddressBuilder(Person &person) : PersonBuilderBase{person} { } Self &at(std::string street_address) { person.street_address = street_address; ...
code_c
code
157
null
// 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 CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_REQUEST_MANAGER_H_ #include ...
code_c
code
1,751
null
<reponame>yanyushr/fuchsia<filename>garnet/lib/ui/gfx/engine/session_manager.h // Copyright 2018 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 GARNET_LIB_UI_GFX_ENGINE_SESSION_MANAGER_H_ #define GARNET_LIB_UI_GF...
code_c
code
721
null
/* * Lightweight Embedded JSON Parser * * Copyright (C) 2013-2017 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation: * version 2.1 of the License. * * This ...
code_c
code
884
null
/* * linux/arch/h8300/kernel/irq.c * * Copyright 2007 <NAME> <<EMAIL>> */ #include <linux/module.h> #include <linux/types.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/kernel_stat.h> #include <linux/seq_file.h> #include <linux/init.h> #include <linux/random.h> #include <linux/bootmem.h> #in...
code_c
code
1,288
null
<filename>ext/krypt/core/krypt_asn1_template.c /* * krypt-core API - C implementation * * Copyright (c) 2011-2013 * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (...
code_c
code
4,138
null
<reponame>zaimoni/zaiband<filename>src/z-type.c #include "h-basic.h" #include "z-form.h" #include "z-term.h" #include "ui.h" #include "z-type.h" const type_union END = { T_END, { 0 } }; const char type_union::printf_mode[T_MAX] = {'d', 'f', 'c', 's'}; void display_panel(const data_panel *panel, int count, ...
code_c
code
318
null
/****************************************************************************** * dir.c for aview * * Copyright (c) 2016, <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: * * * Redistribut...
code_c
code
2,016
null
/* ** Copyright 2012-2016 by Kvaser AB, Molndal, Sweden ** http://www.kvaser.com ** ** This software is dual licensed under the following two licenses: ** BSD-new and GPLv2. You may use either one. See the included ** COPYING file for details. ** ** License: BSD-new ** ===============...
code_c
code
1,100
null
/*++ Copyright (c) 1990 Microsoft Corporation Module Name: rpcbind.c Abstract: Contains the RPC bind and un-bind routines for the Eventlog client-side APIs. Author: <NAME> (rajens) 30-Jul-1991 Revision History: 30-Jul-1991 RajenS created --*/ /...
code_c
code
1,501
null
<filename>src/Foundational/iwaray/extending_resizable_array_.h #ifndef EXTENDING_RESIZABLE_ARRAY_H #define EXTENDING_RESIZABLE_ARRAY_H #include "iwaray_.h" template <typename T> extending_resizable_array<T>::extending_resizable_array (T ini) { _initialiser = ini; return; } template <typename T> T & extending_re...
code_c
code
231
null
/* * $Id: flagmaint.h 807 2007-11-09 01:21:33Z <EMAIL> $ * * ======================================================================== * Copyright 2006-2007 University of Washington * Copyright 2013-2021 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
code_c
code
425
null
#include <cairo.h> #include <cairo-ft.h> #include <ft2build.h> #include FT_FREETYPE_H #include <stdio.h> #include <stdbool.h> #include "parson.h" FT_Library ft_lib; void lcd_draw_text(cairo_t *ctx, float x, float y, float w, float h, bool center, bool invert, const char *str) { cairo_text_extents_t extents; ca...
code_c
code
1,660
null
#include <stdio.h> #include <tap.h> #include "../src/structures/queue_array.h" int zero = 0, one = 1, two = 2, three = 3, four = 4; void test_creation_destruction() { // 9 Array empty = array_create_empty(0); QueueArray a = queuearray_create(); Array a_array = queuearray_as_array(a); ok(que...
code_c
code
555
null
<filename>fibonaci.c #include <stdio.h> #include <conio.h> main() { int n,i; printf("Digite a quantidade de termos da sequência de Fibonacci: "); scanf("%d", &n); printf("\nA sequência de Fibonacci e: \n"); for(i=0; i<n; i++) printf("%d ", fibonacci(i+1)); getch(); int fibonacci(int num) { ...
code_c
code
202
null
<reponame>pincoin/thai-online-judge-backend<filename>removed/signal1.c #include <stdio.h> #include <signal.h> /* hello_loop.c*/ void hello(int signum){ printf("Hello World!\n"); } int main(){ //Handle SIGINT with hello signal(SIGINT, hello); //loop forever! while(1); }
code_c
code
81
null
<gh_stars>1-10 #ifndef CTFS_FAILSAFE_H #define CTFS_FAILSAFE_H #include "ctfs_runtime.h" typedef enum failsafe_op { FAILSAFE_FILE_CREATE, FAILSAFE_FILE_DELETE, FAILSAFE_INODE_MOD, FAILSAFE_PGG_UPGRADE, FAILSAFE_PGG_DOWNGRADE, FAILSAFE_WRITE_ALLOC, FAILSAFE_SUPER_MOD } failsafe_op_t; typedef struct failsafe_fra...
code_c
code
389
null
<filename>src/#456_find_132_pattern.c bool find132pattern(int* nums, int numsSize){ int stack[200001]; int idx = -1; int last = INT_MIN; for (int i = numsSize - 1; i >= 0; i--) { if (nums[i] < last) return true; while (idx != -1 && stack[idx] < nums[i]) last = stack[idx-...
code_c
code
109
null
<gh_stars>1-10 // // TLGlobalConfig.h // https://github.com/LoongerTao/TLTransitions // // Created by 故乡的云 on 2018/8/16. // Copyright © 2018年 Gdxy. All rights reserved. #import <UIKit/UIKit.h> // 方向,指向的方向(Top:bottom --> top,动画由Top:bottom到top) typedef enum : NSUInteger { TLDirectionToTop = 1 << 0, TLDirec...
code_c
code
1,008
null