text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
// Copyright 2020 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
code_c
code
425
null
#ifndef GENERATOR_H #define GENERATOR_H #include "TonalityFrames.h" #include <cmath> namespace Tonality { namespace Tonality_ { class Generator_ { public: Generator_(); virtual ~Generator_(); virtual void tick(TonalityFrames& frames, const SynthesisContext_ &context); bool isStereoOutput() { ...
code_c
code
966
null
<reponame>ObjectifSciencesInternational/LaCOOLBoard /** * Copyright (c) 2018 La Cool Co SAS * * 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 l...
code_c
code
1,042
null
<gh_stars>10-100 // // SonicConstants.h // sonic // // Tencent is pleased to support the open source community by making VasSonic available. // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except //...
code_c
code
1,547
null
<reponame>Fabien-Bosquet/fesapi /*----------------------------------------------------------------------- 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 ...
code_c
code
4,580
null
#ifndef REAGE_H #define REAGE_H #include "php.h" #define phpext_reage_ptr &reage_module_entry; extern zend_module_entry reage_module_entry; #endif
code_c
code
42
null
/* * Copyright (C) 2017-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "core/memory_manager/graphics_allocation.h" #include <cinttypes> namespace NEO { struct HwTimeStamps { void initialize() { GlobalStartTS = 0; ContextStartTS = 0; GlobalEndTS = ...
code_c
code
229
null
/****************************************************************************** * reducer.h * * * *****************************************************************************/ #ifndef CROWN_RED #define CROWN_RED #include "mis/kernel/branch_and_reduce_algorithm.h" #include "data_structure/graph_access.h" #includ...
code_c
code
215
null
<gh_stars>1-10 // Copyright © <NAME> and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root // for more information. #ifndef NOVELRT_INPUT_INTERACTIONOBJECT_H #define NOVELRT_INPUT_INTERACTIONOBJECT_H #ifndef NOVELRT_H #error Please do not include this directly. Use the centrali...
code_c
code
379
null
<reponame>GrinCash/Grinc-core /**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Assistant of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage...
code_c
code
654
null
<reponame>xsscx/srd // Simple C program to display "Hello World" // Header file for input output functions #include <stdio.h> // main function - // where the execution of program begins int main() { // prints hello world printf("Welcome to the Apple Security Research Device\n"); return 0; }
code_c
code
90
null
<filename>src/gallium/state_trackers/omx/bellagio/vid_dec.c /************************************************************************** * * Copyright 2013 Advanced Micro Devices, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and ass...
code_c
code
4,935
null
#include <stdio.h> #define LEN sizeof(struct student) struct student { long num; int score; struct student *next; }; struct student *create(int n) { struct student *head=NULL,*p1=NULL,*p2=NULL; int i; for(i=1; i<=n; i++) { p1=(struct student *)malloc(LEN); scanf("%ld",&p1->num); scanf("%d",&p1->score); ...
code_c
code
340
null
/* //////////////////////////////////////////////////////////// File Name: fsguidialog.h Copyright (c) 2017 <NAME>. All rights reserved. http://www.ysflight.com Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistri...
code_c
code
14,957
null
<reponame>kkpan11/LeetCode<filename>0007/ReverseIntegerFailedDueToSignedIntegerOverflow.c int reverse(int x) { int result = 0; while (x != 0) { int temp = result; result = (result * 10) + (x % 10); if ((result - (x % 10)) / 10 != temp) { return 0; } x /= 10; ...
code_c
code
99
null
<gh_stars>0 // // PBBaseTextField.h // YBAssistantPro // // Created by <NAME> on 16/8/22. // Copyright © 2016年 Nanhu. All rights reserved. // #import <UIKit/UIKit.h> @interface PBBaseTextField : UITextField @end
code_c
code
62
null
#include "libmx.h" char *mx_strncpy(char *dst, const char *src, int len) { if (len != 0) { char *d = dst; const char *s = src; do { if ((*d++ = *s++) == 0) { while (--len != 0) *d++ = 0; break; } } while (--len != 0); } return (dst); }
code_c
code
76
null
<gh_stars>0 #ifndef ALCUBE_PHYSICS_SOFT_BODY_PARTICLE_H #define ALCUBE_PHYSICS_SOFT_BODY_PARTICLE_H #include "../Actor.h" #include <map> namespace alcube::physics::softbody { class Actor: public physics::Actor { public: utils::GPUBasedProperty<gpu::dtos::SoftBody, float> elasticity; utils::GPUBasedP...
code_c
code
392
null
<reponame>kant/everytone-tuner /* ============================================================================== TestsCommon.h Created: 14 Dec 2021 12:55:23pm Author: Vincenzo ============================================================================== */ #pragma once #include <JuceHeader.h> #def...
code_c
code
1,408
null
/* $FreeBSD: head/lib/libusb/libusb.h 277245 2015-01-16 12:11:01Z hselasky $ */ /*- * Copyright (c) 2009 <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: * 1. Redistributions of sourc...
code_c
code
5,146
null
/* * shoebox_extractor.h * * Copyright (C) 2013 Diamond Light Source * * Author: <NAME> * * This code is distributed under the BSD license, a copy of which is * included in the root directory of this package. */ #ifndef DIALS_ARRAY_FAMILY_SHOEBOX_EXTRACTOR_H #define DIALS_ARRAY_FAMILY_SHOEBOX_EXTRACTOR_H ...
code_c
code
1,990
null
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. * * WARNING: This is generated code. Modify at your own risk and without support. ...
code_c
code
462
null
/* * ES2015 TypedArray and Node.js Buffer built-ins */ #include "duk_internal.h" /* * Helpers for buffer handling, enabled with DUK_USE_BUFFEROBJECT_SUPPORT. */ #if defined(DUK_USE_BUFFEROBJECT_SUPPORT) /* Map class number (minus DUK_HOBJECT_CLASS_BUFOBJ_MIN) to a bidx for the * default internal prototype. *...
code_c
code
27,334
null
<gh_stars>1-10 // // TMidasEvent.h // #ifndef TMIDASEVENT_H #define TMIDASEVENT_H #include "TMidasStructs.h" /// /// C++ class representing one midas event. /// /// Objects of this class are created by reading /// midas events from a file, by reading /// them from a midas shared memory buffer or by /// receiving the...
code_c
code
778
null
<reponame>hoot-w00t/chip8-emu #include <stdbool.h> #ifndef _CHIP8_EMULATOR_H #define _CHIP8_EMULATOR_H #define EMU_AUDIO_SAMPLE_RATE (22050) int emulate_chip8_program(const char *filename, const int cps, const int framerate); #endif
code_c
code
67
null
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2015-2020 Intel, Inc. All rights reserved. * Copyright (c) 2016 Mellanox Technologies, Inc. * All rights reserved. * Copyright (c) 2018 Research Organization for Information Science * ...
code_c
code
5,422
null
<reponame>wycleffsean/ruby_string_reverse #include "ruby.h" VALUE mod = Qnil; VALUE method_my_reverse_xor(VALUE self); //VALUE method_my_reverse_xchg(VALUE self); void Init_seans_xor_swap() { mod = rb_const_get(rb_cObject, rb_intern("String")); rb_define_method(mod,"seans_xor_swap", method_my_reverse_xor, 0); }...
code_c
code
192
null
/* $NetBSD: ultrix_ioctl.c,v 1.18 2001/11/13 02:09:33 lukem Exp $ */ /* from : NetBSD: sunos_ioctl.c,v 1.21 1995/10/07 06:27:31 mycroft Exp */ /* * Copyright (c) 1993 <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that t...
code_c
code
6,261
null
<reponame>sabotage3d/Urho3D // // Copyright (c) 2008-2016 the Urho3D project. // // 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 ...
code_c
code
998
null
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 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 obtain ...
code_c
code
2,897
null
#include <axutil_url.h> #include "../util/create_env.h" /** @brief test url * create URL and get the values of it's components */ axis2_status_t test_url(axutil_env_t *env) { axutil_url_t * url; axis2_char_t *url_str = "https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12386356"; axis2_...
code_c
code
793
null
/*=auto========================================================================= Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Program: 3D Slicer Module: $RCSfile: vtkMRMLVolumeNode.h,...
code_c
code
716
null
<reponame>utopia-space/ue4-static-plugin<filename>3rdparty/libnpp/src/npp/dynamic.h #pragma once #include "types.h" #include "result.h" #include <exception> #include <functional> #include <vector> namespace npp { /// Declare classes for deps class IDynamicLoader; /// Initialize a dynamic library with this typ...
code_c
code
641
null
<gh_stars>1-10 // Hello World client // Connects REQ socket to tcp://localhost:5559 // Sends "Hello" to server, expects "World" back #include "zhelpers.h" int main (void) { void *context = zmq_ctx_new (); // Socket to talk to server void *requester = zmq_socket (context, ZMQ_REQ); zmq_connect (re...
code_c
code
205
null
<gh_stars>1-10 /* $NetBSD: bus_machdep.c,v 1.15 2002/04/10 10:09:31 haya Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> and by <NAME> of the Numerical Aerospace * Simulation F...
code_c
code
7,022
null
/* $Id$ */ /* * This file is part of OpenTTD. * OpenTTD 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, version 2. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
code_c
code
516
null
<filename>ompi/mca/mtl/psm2/mtl_psm2_component.c /* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The Univers...
code_c
code
1,998
null
// SPDX-License-Identifier: GPL-2.0 OR MIT /* Copyright 2017-2019 <NAME> <<EMAIL>> */ #include <linux/regulator/consumer.h> #include <linux/reset.h> #include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/platform_device.h> #include "lima_device.h" #include "lima_gp.h" #include "lima_pp.h" #include "lim...
code_c
code
3,620
null
#include <stdlib.h> #include <stdio.h> #include <time.h> int main(void) { int n = 550; double a[n][n], b[n][n], c[n][n]; int i, j, k; clock_t t; t = clock(); srand(time(0)); for (i = 0; i < n; i++) { for (j = 0; j < n; j++) { a[i][j] = rand(); b[i][j] = r...
code_c
code
219
null
/* The MIT License (MIT) * * Copyright (c) 2015 <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, cop...
code_c
code
1,901
null
<gh_stars>1-10 /* * author: <NAME> <EMAIL> * date: 08/01/2018 */ #ifndef RAYTRACER_LIGHT_OMNI_H #define RAYTRACER_LIGHT_OMNI_H #include "../../types/vector3.h" #include "../../types/color.h" #include "../entity.h" #include "light.h" class LightOmni: public Light { public: LightOmni(const Vector3 &centerInit, co...
code_c
code
137
null
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * 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; either * version 2.1 of the License, or (at your opti...
code_c
code
1,286
null
/* * Copyright (c) 1999-2002 Sendmail, Inc. and its suppliers. * All rights reserved. * * By using this file, you agree to the terms and conditions set * forth in the LICENSE file which can be found at the top level of * the sendmail distribution. * * $Id: bf.h,v 8.16 2002/04/15 02:37:09 ca Exp $ * * Contribu...
code_c
code
287
null
<reponame>kpdev/llvm-tnt //===-- TNTMCInstLower.h - Lower MachineInstr to MCInst ------*- 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
414
null
<reponame>silverfoxhu/data_struct_test_silver<gh_stars>0 /* * @Descripttion: * @version: * @Author: <NAME> * @LastEditors: <NAME> * @Date: 2019-05-03 14:54:48 * @LastEditTime: 2019-05-18 12:58:57 */ #ifndef SEQLIST_H #define SEQLIST_H #include "List.h" #include "Exception.h" namespace DTLib { template <type...
code_c
code
562
null
<filename>firmware/lib/message/include/message/mesh_msg.h<gh_stars>0 #ifndef _MESH_MSG_H_ #define _MESH_MSG_H_ #include <stdint.h> #include <dpl/dpl.h> #if MYNEWT_VAL(BLE_MESH) /* BLE */ #include "nimble/ble.h" #include "host/ble_hs.h" #include "services/gap/ble_svc_gap.h" #include "mesh/glue.h" #if __GNUC__ >= 9 #...
code_c
code
548
null
<gh_stars>1-10 // @@@LICENSE // // Copyright (c) 2010-2013 LG Electronics, 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 // //...
code_c
code
481
null
#pragma once #pragma comment(lib, "Winmm.lib") /* https://stackoverflow.com/questions/22253074/how-to-play-or-open-mp3-or-wav-sound-file-in-c-program */ #define WAV_FILES_PATH L"audio/wav/" #define WAV_10_PATH WAV_FILES_PATH ## "10.wav" // ## token concatenation #define WAV_11_PATH WAV_FILES_PATH ## "11.wav" #define ...
code_c
code
388
null
/** * \file timers.c * \brief Timer support for ARMv8 */ /* * Copyright (c) 2016 ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092...
code_c
code
984
null
<filename>node_modules/lzz-gyp/lzz-source/smtc_PrintMbrEnum.h // smtc_PrintMbrEnum.h // #ifndef LZZ_smtc_PrintMbrEnum_h #define LZZ_smtc_PrintMbrEnum_h // semantic #include "smtc_EnumPtr.h" #include "smtc_FilePtr.h" #define LZZ_INLINE inline namespace smtc { void printMbrEnum (FilePtr const & file, EnumPtr const & e...
code_c
code
100
null
/*------------------------------------------------------------------------- * * parse_clause.h * handle clauses in parser * * * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * src/include/parser/parse_clause.h *...
code_c
code
613
null
<filename>tests/mocks/mock_consumer_notifier.h #pragma once #include "gmock/gmock.h" #include "swss/consumernotifierinterface.h" namespace swss { class MockConsumerNotifier final : public ConsumerNotifierInterface { public: MOCK_METHOD(bool, WaitForNotificationAndPop, (std::string & op, std::string ...
code_c
code
131
null
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
code_c
code
1,474
null
/* * %CopyrightBegin% * * Copyright Ericsson AB 2011-2020. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
code_c
code
2,204
null
/* * Find the maximum consecutive subsequence sum in an N x N matrix filled with a Lagged Fibonacci random number generator */ #include <stdio.h> #include <stdlib.h> #include "utils.h" #include "random.h" static int ** allocate_random_matrix (int); static int find_maximum (int **, int); static int find_maximum_row ...
code_c
code
919
null
/* * The MIT License * * Copyright (c) 1997-2020 The University of Utah * * 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
631
null
<reponame>tykel/qpra<filename>src/log.h /* * log.h -- Logging functions (header). * * Function declarations for log.c. * */ #ifndef QPRA_LOG_H #define QPRA_LOG_H void log_init(const char *); void log_null(const char *, ...); void log_verbose(const char *, ...); void log_debug(const char *, ...); void log_warn(co...
code_c
code
215
null
/* * Copyright (c) 2018-2020, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <AK/Function.h> #include <AK/Weakable.h> #include <LibGfx/Bitmap.h> #include <LibGfx/Forward.h> #include <LibGfx/Rect.h> #include <WindowServer/MultiScaleBitmaps.h> namespace WindowServer { class Mo...
code_c
code
446
null
// // CategoryManagemtetBottomView.h // JustRemember // // Created by risngtan on 16/6/22. // Copyright © 2016年 rising. All rights reserved. // #import <UIKit/UIKit.h> @interface CategoryManagemtetBottomView : UIView @property (nonatomic, strong) UIButton *addBtn; @end
code_c
code
78
null
<gh_stars>1-10 // MIT License // Copyright (C) August 2016 Hotride #pragma once class CPopupMenuItemInfo { public: uint32_t Cliloc = 0; uint16_t Index = 0; uint16_t Flags = 0; uint16_t Color = 0; uint16_t ReplaceColor = 0; CPopupMenuItemInfo() {} }; class CGumpPopupMenu : public CGump { ...
code_c
code
204
null
// // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2010-2012 <NAME> // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file at the top level of the distribution // and at http://projectchrono.org/license-chrono.txt. // #ifndef ...
code_c
code
2,218
null
<reponame>intel-iot-devkit/zupm #include <zephyr.h> #include <misc/printk.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <math.h> #include "upm.h" #include "mraa.h" #include "sx127x.h" #include "upm_utilities.h" #define TX_OUTPUT_POWER ...
code_c
code
727
null
#include <util.h> #include <x86.h> pte_t entry_pgtable[NPTENTRIES]; __attribute__((__aligned__(PGSIZE))) pde_t entry_pgdir[NPDENTRIES] = { // Map VA's [0, 4MB) to PA's [0, 4MB) [0] = ((uintptr_t)entry_pgtable - KERNBASE) + PTE_P, [KERNBASE >> PDXSHIFT] = ((uintptr_t)entry_pgtable - KERNBASE) + PTE_P + PTE_W };...
code_c
code
8,038
null
#ifndef HCALTRIGGERPRIMITIVEDIGI_H #define HCALTRIGGERPRIMITIVEDIGI_H 1 #include <ostream> #include <vector> #include "DataFormats/HcalDetId/interface/HcalTrigTowerDetId.h" #include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveSample.h" /** \class HcalTriggerPrimitiveDigi \author <NAME> - Minnesota */ cla...
code_c
code
526
null
<reponame>stock1218/ElectionGuard-SDK-C-Implementation #include "serialize/builtins.h" #include "serialize/crypto.h" #include "trustee_state_rep.h" void Serialize_reserve_trustee_state(struct serialize_state *state, struct trustee_state_rep const *data, uint32_t num_trustees) { ...
code_c
code
439
null
// // Created by <NAME> on 2017/05 // #ifndef CT_COMMANDS_H #define CT_COMMANDS_H // Command includes // #include "commands/CT_cmd_ls.h" #include "commands/CT_cmd_call.h" #include "commands/CT_cmd_def.h" #include "commands/CT_cmd_undef.h" #endif // CT_COMMANDS_H
code_c
code
76
null
<filename>CConvenient/UILabel+Extension.h // // UILabel+Extension.h // CConvenientExample // // Created by mac on 2018/7/18. // Copyright © 2018年 mac. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger,TextAlign) { kLTextLeft, kLTextCenter, kLTextRight }; @interface UILabel (E...
code_c
code
287
null
<filename>src/Updaters/FunctorsTE/EyUpdaterTE.h /* * EyUpdaterTE.h * * Created on: 29 янв. 2016 г. * Author: aleksandr */ #ifndef EYUPDATERTE_H_ #define EYUPDATERTE_H_ #include <thrust/device_vector.h> #include <thrust/functional.h> typedef thrust::device_ptr<float> d_ptr; class EyUpdaterTE { public: __...
code_c
code
284
null
<gh_stars>1-10 #ifndef TOKENIZER_H #define TOKENIZER_H #include "includes.h" #include "utils/hashtable.h" typedef enum TokenType { TOKEN_TYPE = 0, TOKEN_NAME, TOKEN_SEMICOLON, TOKEN_ASSIGN, TOKEN_VALUE, TOKEN_PRINT, TOKEN_ADD, TOKEN_SUBTRACT, TOKEN_GREATER_THAN, TOKEN_LESS_THAN, TOKEN_PARENTHESES...
code_c
code
1,334
null
/**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call i...
code_c
code
475
null
/*- * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.proprietary.c% */ #ifndef lint static char copyright[] = "@(#) Copyright (c) 1983, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef li...
code_c
code
2,820
null
<reponame>alnpokrovsky/multi-stm32-template /** @addtogroup dma2d_defines * * @version 1.0.0 * * @date 15 August 2016 * * This library supports the DMA2D Peripheral in the STM32F4xx and STM32F7xx * series of ARM Cortex Microcontrollers by ST Microelectronics. * * LGPL License Terms @ref lgpl_license */ /*...
code_c
code
1,750
null
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
code_c
code
1,615
null
#import <AVFoundation/AVBase.h> #import <Foundation/Foundation.h> @import AVFoundation; @import JavaScriptCore; @protocol JSBNSObject; @protocol JSBAVAssetResourceLoader <JSExport, JSBNSObject> #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" @property (nonatomic, readonly...
code_c
code
396
null
#include "hash/hash.h" #include <unistd.h> #include "lines/lines.h" #include "utils/base64.h" #include "utils/webencode.h" int main(int ac, char **av) { int i, c; hash *h = 0; char **keys = 0; char *file; char *key, *val; int mode = 0; int hex = 0; FILE *f; while ((c = getopt(ac, av, "nrwX")) != -1) { swit...
code_c
code
472
null
/* * arch/i386/libgcc/__moddi3.c */ #include "libgcc.h" __libgcc int64_t __moddi3(int64_t num, int64_t den) { int minus = 0; int64_t v; if ( num < 0 ) { num = -num; minus = 1; } if ( den < 0 ) { den = -den; minus ^= 1; } (void) __udivmoddi4(num, den, (uint64_t *)&v); if ( minus ) ...
code_c
code
98
null
#include <cstdio> #include <cmath> #include <iostream> using namespace std; // Extract psgrids to solo file 7 May 2013 // Begin building up the metric grids -- those for which there is // a mapping between i, j, and a specific point in some space. // <NAME> (Oldest immediately at hand 29 Oct 1997) // // Modificati...
code_c
code
4,878
null
/* * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef SECUREBOOT_GENERAL_HWDEFS_H #define SECUREBOOT_GENERAL_HWDEFS_H #include "cc_regs.h" #include "dx_host.h" #include "dx_crys_kernel.h" #ifdef __cplusplus extern "C" { #endif /**...
code_c
code
170
null
/*----------------------------------------------------------------------------- Copyright 2017 Hopsan Group 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.o...
code_c
code
472
null
/* * Copyright (c) 2017-2021, <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 and ...
code_c
code
1,844
null
#ifndef DQM_GEM_GEMEfficiencyHarvester_h #define DQM_GEM_GEMEfficiencyHarvester_h /** \class GEMEfficiencyAnalyzer * * DQM monitoring client for GEM efficiency and resolution * based on Validation/MuonGEMHits/MuonGEMBaseHarvestor * * \author <NAME> <<EMAIL>> */ #include "DQMServices/Core/interface/DQMEDHarvest...
code_c
code
508
null
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse" } */ /* Test that the intrinsics compile with optimization. These were not tested in i386-sse-[12].c because these builtins require immediate operands. */ #include <xmmintrin.h> __m128 test_shuf (void) { __m128 a = _mm_set1_...
code_c
code
215
null
<gh_stars>0 #ifndef LIBTOTREE23_H #define LIBTOTREE23_H class LibToTree23 { public: LibToTree23(); }; #endif // LIBTOTREE23_H
code_c
code
37
null
// // AVManager.h // iOS_PianKe // // Created by zhiling on 16/7/26. // Copyright © 2016年 huangzhiling. All rights reserved. // //@class AVPlayer; #import <Foundation/Foundation.h> #import <AVFoundation/AVFoundation.h> @interface AVManager : NSObject @property (nonatomic, strong) AVPlayer *avPlay; @property (non...
code_c
code
223
null
<gh_stars>0 /* composite.c - Handles UCC.EAN Composite Symbols */ /* libzint - the open source barcode library Copyright (C) 2008 <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 Soft...
code_c
code
16,328
null
<reponame>robindegen/mos6502<gh_stars>0 #pragma once #include <QtWidgets/QFrame> #include <memory> #include <functional> namespace Ui { class frmacia; } namespace rua1::view { class frmacia_model_interface { public: frmacia_model_interface(frmacia_model_interface &&) noexcept = delete; auto operator=(frmaci...
code_c
code
383
null
<reponame>Destinyside/Assembler<gh_stars>0 extern void show_text(); int cstrlen(char* str){ char* p = str; int len = 0; while(p++){ if(*p!='\0'){ len++; } else { break; } } return len; } int print(char* str){ int len = cstrlen(str); __asm__( "mov $0x0, %%ax\r\n" "mov %%ax, %%es\r\n" "m...
code_c
code
226
null
// // React.h // React // // Created by Andy on 21/10/2015. // Copyright © 2015 niveusrosea. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for React. FOUNDATION_EXPORT double ReactVersionNumber; //! Project version string for React. FOUNDATION_EXPORT const unsigned char ReactVersionS...
code_c
code
132
null
<filename>EmphasizeScrollView/EmphasizeScrollView/Class/VKControl.h // // VKControl.h // EmphasizeScrollView // // Created by <NAME> on 4/6/15. // Copyright (c) 2015 VikingWarlock. All rights reserved. // #import <UIKit/UIKit.h> @interface VKControl : UIControl @property(nonatomic,strong)UIView *MainView; @prope...
code_c
code
104
null
/* * stdint.h */ #ifndef _STDINT_H #define _STDINT_H typedef signed char int8_t; typedef short int int16_t; typedef int int32_t; typedef long long int int64_t; typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef unsigned l...
code_c
code
1,102
null
<reponame>MasterChanMonkey/html_object<filename>socket/RHSocketKit-master/RHSocketKit/Core/Codec/Protobuf/RHProtobufVarint32LengthDecoder.h // // RHProtobufVarint32LengthDecoder.h // RHSocketKitDemo // // Created by zhuruhong on 16/5/26. // Copyright © 2016年 zhuruhong. All rights reserved. // #import <Foundation/F...
code_c
code
222
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 UI_GFX_POINT_F_H_ #define UI_GFX_POINT_F_H_ #pragma once #include <string> #include "ui/base/ui_export.h" #include "ui/gfx/point_base.h" na...
code_c
code
224
null
// // NAKMMLExtendedData.h // KML Framework // // Created by NextBusinessSystem on 12/04/06. // Copyright (c) 2012 NextBusinessSystem Co., Ltd. All rights reserved. // #import <Foundation/Foundation.h> #import "KMLElement.h" @class KMLData; @class KMLSchemaData; /** The ExtendedData element offers three techniqu...
code_c
code
938
null
<filename>corelocationPractice/corelocationPractice/TMFYelpAPIClient.h // // TMFYelpAPIClient.h // corelocationPractice // // Created by <NAME> on 7/28/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface TMFYelpAPIClient : NSObject #pragma warning - Rewrite all ...
code_c
code
431
null
<reponame>matteo-veglio/libohiboard /* * Copyright (c) 2016, The OpenThread Authors. * 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 retai...
code_c
code
3,665
null
<filename>SpinPal/OverviewCollectionViewController.h // // OverviewCollectionViewController.h // SpinPal // // Created by manolo on 4/16/15. // Copyright (c) 2015 manolosavi. All rights reserved. // #import <UIKit/UIKit.h> #import "RouteSection.h" #import "RouteSectionView.h" #import "ViewController.h" @interface...
code_c
code
137
null
<gh_stars>10-100 #ifdef _WIN32 #include <windows.h> static LARGE_INTEGER start, end, freq; static unsigned int query_frequency_called = 0x00; #else #include <time.h> static struct timespec start, end; // Compute the correct time difference. struct timespec tdiff(struct timespec start, struct timespec end) { stru...
code_c
code
348
null
#include <stdbool.h> #include <stdio.h> int main() { if (true && false || true) { printf("&& first\n"); } else { printf("|| first\n"); } }
code_c
code
42
null
// Magic Book for Wizard Characters [v2.0] // Thorn@Shadowgate // converted to holy_symbol in adlib manner for clerical use // Tristan@Shadowgate // 10/10/94 [2.0: 6/8/95] // General Wizard Class Items // General Cleric // magic_book.c // holy_symbol.c // took god names out of the ...
code_c
code
6,172
null
<reponame>Scopetta197/chromium // 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 ASH_SYSTEM_USER_USER_OBSERVER_H_ #define ASH_SYSTEM_USER_USER_OBSERVER_H_ namespace ash { class UserObserver ...
code_c
code
132
null