text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
<reponame>uchan-nos/bitnos double frexp(double x, int *exp) { int n = 0; double s = 1.0; if (x < 0.0) { x = - x; s = -1.0; } if (x != 0.0) { if (x >= 1.0) { do { n++; x *= 0.5; } while (x >= 1.0); } if (x < 0.5) { do { n--; x *= 2.0; } while (x < 0.5); } } *exp = n; retur...
code_c
code
94
null
<gh_stars>0 // // ASImageProtocols.h // Texture // // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved. // Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0 // #import <UIKit/UIKit.h> NS_A...
code_c
code
2,924
null
<gh_stars>1-10 #ifndef OPENMC_TALLIES_TALLY_H #define OPENMC_TALLIES_TALLY_H #include "openmc/constants.h" #include "openmc/memory.h" // for unique_ptr #include "openmc/tallies/filter.h" #include "openmc/tallies/trigger.h" #include "openmc/vector.h" #include <gsl/gsl> #include "pugixml.hpp" #include "xtensor/xfixed.h...
code_c
code
1,728
null
<filename>mysql/net-tools-1.60/rarp.c /* * rarp This file contains an implementation of the command * that maintains the kernel's RARP cache. It is derived * from <NAME>'s arp command. * * Version: $Id: rarp.c,v 1.6 2001/04/08 17:05:05 pb Exp $ * * Usage: rarp -d ho...
code_c
code
2,172
null
/* * Coherent Processing System emulation. * * Copyright (c) 2016 Imagination Technologies * * 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 of the License, or ...
code_c
code
394
null
<filename>cases/surfers_in_channel_flow_z/param/env/objects/static/surfer__us_0o2__surftimeconst_1o5/group/homogeneous/_member/agent/_behaviour/_sensor/direction/choice.h #ifndef C0P_PARAM_OBJECTS_SURFER__US_0O2__SURFTIMECONST_1O5_GROUP_HOMOGENEOUS_MEMBER_AGENT_BEHAVIOUR_SENSOR_DIRECTION_CHOICE_H #define C0P_PARAM_OBJE...
code_c
code
355
null
//////////////////////////////////////////////////////////////// // Orkid Media Engine // Copyright 1996-2020, <NAME>. // Distributed under the Boost Software License - Version 1.0 - August 17, 2003 // see http://www.boost.org/LICENSE_1_0.txt //////////////////////////////////////////////////////////////// #pragma onc...
code_c
code
3,214
null
/* * Copyright 2015-present MongoDB, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
code_c
code
1,070
null
<reponame>shekoocoder/telepathy<filename>QtumJsIosServer/qtum-ios-develop/qtum wallet/Categories/NSOperationQueue+Timeout.h // // NSOperationQueue+Timeout.h // qtum wallet // // Created by <NAME> on 01.12.2017. // Copyright © 2017 QTUM. All rights reserved. // #import <Foundation/Foundation.h> @interface NSOperat...
code_c
code
148
null
#pragma once #include "CpuEnum.h" #include "common.h" class Sib { public: inline void ParseSib(const uint8_t sib_byte, const uint8_t mod); uint32_t GetAddress( std::function< uint32_t(GENERAL_PURPOSE_REGISTER32 general_purpose_register32)> get_r32, bool is_segment_override, std::fu...
code_c
code
176
null
/* Fontname: -UW-Ttyp0-Bold-R-Normal--22-200-75-75-C-110-ISO10646-1 Copyright: Copyright (C) 2012-2015 <NAME> Glyphs: 191/3075 BBX Build Mode: 2 */ const uint8_t u8g2_font_t0_22b_mf[4718] U8G2_FONT_SECTION("u8g2_font_t0_22b_mf") = "\277\2\4\2\4\5\1\3\5\13\25\0\374\15\374\17\377\2\252\5\275\22U \10[c?\377?\3!...
code_c
code
3,680
null
//-------------------------------------------------------------------------------------- // File: RenderTargetState.h // // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // // http://go.microsoft.com/fwlink/?LinkID=615561 //------------------------------------------...
code_c
code
709
null
<reponame>npocmaka/Windows-Server-2003 /*++ Copyright (c) 1998-1999 Microsoft Corporation Module Name: wavestrm.h Abstract: Declaration of the CWaveMSPStream Author: <NAME> September 7th, 1998 --*/ #ifndef __WAVESTRM_H_ #define __WAVESTRM_H_ #if _MSC_VER >= 1000 #pragma o...
code_c
code
1,538
null
<reponame>LPD-EPFL/nv-lf-structures<gh_stars>1-10 #ifndef _COMMON_H_ #define _COMMON_H_ #include <limits.h> #include <string.h> #include <nv_utils.h> #include "latency.h" #include "barrier.h" #include "main_test_loop.h" #define XSTR(s) STR(s) #define STR(s) #s #if __...
code_c
code
491
null
// license:GPL-2.0+ // copyright-holders:<NAME> /*************************************************************************** SV-802 Centronics Printer Interface for SVI-318/328 ***************************************************************************/ #ifndef MAME_BUS_SVI3X8_SLOT_SV802_H #define MAME_BUS_SVI3X...
code_c
code
390
null
/* * Copyright 2016 The Emscripten Authors. All rights reserved. * Emscripten is available under two separate licenses, the MIT license and the * University of Illinois/NCSA Open Source License. Both these licenses can be * found in the LICENSE file. */ #include <stdio.h> #include <sys/mman.h> #include <assert....
code_c
code
414
null
<gh_stars>0 #include <stdio.h> #include <stdlib.h> int main() { int n, first, second, third, i; first = 0; second = 1; printf("Enter Range upto which to display Fibonacci Series\n"); scanf("%d", &n); printf("Fibonacci Series upto %d is \n", n); printf("%d %d ", first, second); for (i = 2; i <...
code_c
code
127
null
<filename>gnss/pony_gnss_sat.h // Jun-2022 /* pony_gnss_sat pony plugins for GNSS satellite-related calculations: */ void pony_gnss_sat_pos_vel_clock_gps(void); // position, velocity and clock correction for all GPS satellites from ephemeris void pony_gnss_sat_pos_vel_clock_glo(void); // position, veloci...
code_c
code
190
null
<gh_stars>10-100 /* * Copyright (c) Regents of the University of California, 2017. All rights reserved. * See LICENSE and ATTRIB in the repository root. */ #ifndef NESL_PRU_WAIT_H #define NESL_PRU_WAIT_H #define WAIT_MS(ms) \ { \ if (ms == 1) { \ __delay_cycles(199999); \ } else if (ms > 0) { \ ...
code_c
code
224
null
<gh_stars>0 ////////////////////////////////////////////////////////////////////////////////// /* CE1007/CZ1007 Data Structures Lab Test: Section F - Binary Search Trees Questions Purpose: Implementing the required functions for Question 1 */ /////////////////////////////////////////////////////////////////////...
code_c
code
1,300
null
#include <stdio.h> int main(int argc, char *argv[]) { int n,s,t; scanf("%d,%d",&n,&s); if(n>s){ t=s; }else{ t=n; } while(t>0){ if(n%t==0 && s%t==0){ printf("%d",t); break; }else{ t=t-1; } } return 0; }
code_c
code
90
null
<reponame>ghsecuritylab/ellcc-mirror /* Definitions for the ARM PL011 UART. * http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0183g/index.html */ #ifndef _arm_pl011_h_ #define _arm_pl011_h_ #define VEXPRESS_A9 #if defined (VERSATILEPB) #define BASE 0x0101F1000 #elif defined (VEXPRESS_A9) #define BASE...
code_c
code
1,243
null
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <math.h> #include <pthread.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define TCP_PORT 1001 ...
code_c
code
3,860
null
#include "declarations.h" void allreduce(MPI_Comm comm, int rank, int size) { int count = 1000; int *in, *out, *sol; int i, fnderr=0; in = (int *)malloc( count * sizeof(int) ); out = (int *)malloc( count * sizeof(int) ); sol = (int *)malloc( count * sizeof(int) ); for (i=0; i<count; i++) ...
code_c
code
222
null
// Copyright (c) 2003-2021 Xsens Technologies B.V. or subsidiaries worldwide. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the ...
code_c
code
1,692
null
<reponame>NightOfTwelve/android_device_huawei_hwp7 /* * serial.c -- USB gadget serial driver * * Copyright (C) 2003 <NAME> (<EMAIL>) * Copyright (C) 2008 by <NAME> * Copyright (C) 2008 by Nokia Corporation * * This software is distributed under the terms of the GNU General * Public License ("GPL") as published ...
code_c
code
2,234
null
#include "iwnet.h" #include "brssl_poller_adapter.h" #include <iowow/iwlog.h> #include <brssl.h> #include <stdlib.h> #include <errno.h> #include <pthread.h> #include <unistd.h> #include <sys/epoll.h> struct x509_client_context { const br_x509_class *vtable; br_x509_minimal_context minimal; bool verifyhost; ...
code_c
code
3,891
null
<reponame>GlebShikovec/SREngine<gh_stars>1-10 // // Created by kiper220 on 23.05.2020. // #ifndef GAME_PAIR_H #define GAME_PAIR_H // TODO: Check, refactoring and add exception processing. Add comments namespace Framework::Helper { namespace Types{ template<typename _x, typename _y> class Pair{ ...
code_c
code
450
null
<reponame>analog-analytics/rqr #ifndef _QR_DRAW_PNG_ #define _QR_DRAW_PNG_ #include <stdlib.h> #include <math.h> #include "qr_draw.h" #ifdef USE_PNG #include "zlib.h" #include <png.h> #endif //============================================================================= // QRDrawPNG クラス //========================...
code_c
code
199
null
<gh_stars>0 /* MIT License Copyright (c) 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, publ...
code_c
code
1,933
null
<reponame>symfund/microwindows<filename>src/swieros/drivers/genmem.c /* * Copyright (c) 2000, 2001, 2010 <NAME> <<EMAIL>> * Portions Copyright (c) 2002 by Koninklijke Philips Electronics N.V. * * Screen Driver Utilities * * Microwindows memory device routines */ /* alloc and initialize a new memory drawing sur...
code_c
code
2,802
null
<gh_stars>0 // // __ // /\ \ _ // ____ ____ ___\ \ \_/ \ _____ ___ ___ // / _ \ / __ \ / __ \ \ < __ /\__ \ / __ \ / __ \ // /\ \_\ \/\ __//\ __/\ \ \\ \ /\_\ \/_/ / /\ \_\ \/\ \_\ \ // \ \____ \ \____\ \____\\ \_\\_\ \/_/ ...
code_c
code
304
null
<reponame>murrayma/btmux<filename>svn-old/btmux/branches/ai-2.0/src/hcode/btech/map.c /* * Author: <NAME> <<EMAIL>> * * Last modified: Fri Dec 11 00:59:48 1998 fingon * * Original authors: * 4.8.93- rdm created * 6.16.93- jb modified, added hex_struct * Since that modified by: * '95 - '97: <NAME> <<EMAI...
code_c
code
6,353
null
// Copyright 2022, <NAME>, mailto:<EMAIL> // // Part of "Nuitka", an optimizing Python compiler that is compatible and // integrates with CPython, but also works on its own. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with t...
code_c
code
1,144
null
/* File: Instabug/IBGChats.h Contains: API for using Instabug's SDK. Copyright: (c) 2013-2020 by Instabug, Inc., all rights reserved. Version: 10.11.8 */ #import <Foundation/Foundation.h> /* +--------------------------------------------------------------------------+ | ...
code_c
code
703
null
<gh_stars>0 #include <cstdlib> #include <iostream> #include <string> #ifndef HASH_TABLE_HASH_H #define HASH_TABLE_HASH_H struct Item { std::string name; std::string info; Item *next; Item(const std::string &name, const std::string &info); Item(); }; class Hash { private: static const ...
code_c
code
203
null
<reponame>k-sawa/action_test_case2 /********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2008, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted prov...
code_c
code
3,090
null
<gh_stars>1-10 #ifndef matrix_addition_h #define matrix_addition_h #include<vector> std::vector < std::vector <int> > matrix_addition (std::vector < std::vector <int> > matrixa, std::vector < std::vector <int> > matrixb); #endif /* matrix_addition_h */
code_c
code
73
null
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
code_c
code
1,449
null
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #pragma once #include "stdafx.h" #include "CNTKLibrary.h" #include "PrimitiveOpType.h" #include "Utils.h" #include "ConvolveGeometry.h" #include "Convolutiona...
code_c
code
10,568
null
// SPDX-License-Identifier: GPL-2.0-only /* * HDMI Channel map support helpers */ #include <linux/module.h> #include <sound/control.h> #include <sound/tlv.h> #include <sound/hda_chmap.h> /* * CEA speaker placement: * * FLH FCH FRH * FLW FL FLC FC FRC FR FRW * * ...
code_c
code
7,086
null
<filename>moveit_planners/ompl/ompl_interface/include/moveit/ompl_interface/detail/projection_evaluators.h<gh_stars>1000+ /********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2011, <NAME>, Inc. * All rights reserved. * * Redistribut...
code_c
code
989
null
<gh_stars>0 DECL|NRFX_LOG_MODULE|macro|NRFX_LOG_MODULE DECL|m_alloc_index|variable|m_alloc_index DECL|m_state|variable|m_state DECL|m_wdt_event_handler|variable|m_wdt_event_handler DECL|nrfx_wdt_channel_alloc|function|nrfx_err_t nrfx_wdt_channel_alloc(nrfx_wdt_channel_id * p_channel_id) DECL|nrfx_wdt_channel_feed|funct...
code_c
code
198
null
<gh_stars>1-10 /* * v1_http_get_action.h * * HTTPGetAction describes an action based on HTTP Get requests. */ #ifndef _v1_http_get_action_H_ #define _v1_http_get_action_H_ #include <string.h> #include "../external/cJSON.h" #include "../include/list.h" #include "../include/keyValuePair.h" #include "../include/bina...
code_c
code
311
null
/****************************************************************************** Copyright (c) 2009 Infineon Technologies AG Am Campeon 1-12; 81726 Munich, Germany For licensing information, see the file 'LICENSE' in the root folder of ...
code_c
code
25,235
null
#ifndef ALIAS_ANALYSIS #define ALIAS_ANALYSIS class SgExpression; namespace CodeThorn { class AliasAnalysis { public: AliasAnalysis(); virtual void initialize()=0; virtual void run()=0; // two expressions that may refer to the same memory location. // an analysis that cannot determine re...
code_c
code
223
null
<filename>lib/regs/rcc_regs.h #ifndef H_RCC_REGS #define H_RCC_REGS /* * Part of Belkin STM32 HAL, rcc registers of STMF103 MCU. * * Copyright 2021 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
code_c
code
2,712
null
// Copyright <NAME> 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef PHR_UNIVERSAL_CLASS__H #define PHR_UNIVERSAL_CLASS__H #include "kans.h" #include "accessors.h" #in...
code_c
code
2,784
null
<filename>test/resource/native/main/Main.h<gh_stars>0 /* * Class: Main * method: intMethod * descriptor: (I)I */ int Java_Main_intMethod(int); /* * Class: Main * method: some_char * descriptor: ()[C */ char* Java_Main_some_char();
code_c
code
68
null
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef NET_SSL_CLIENT_CERT_STORE_MAC_H_ #define NET_SSL_CLIENT_CERT_STORE_MAC_H_ #include "base/callback.h" #include "base/macros.h" #include "net/base/...
code_c
code
585
null
/**************************************************************************** * * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ***************************************...
code_c
code
3,150
null
<reponame>hyunjoy/scripts<gh_stars>10-100 /* * Helpers for emulation of CP0-related MIPS instructions. * * Copyright (C) 2004-2005 <NAME> * Copyright (C) 2020 Wave Computing, Inc. * Copyright (C) 2020 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the...
code_c
code
13,479
null
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_delete_array_long_83.h Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_delete_array.label.xml Template File: sources-sinks-83.tmpl.h */ /* * @description * CWE: 762 Mismatched Memory Managem...
code_c
code
521
null
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by the Free Software Foundation. * * This program is distributed...
code_c
code
2,367
null
<filename>libm.framework/Headers/MCoreStore.h<gh_stars>0 // // MCoreStore.h // libm // // Created by 梁康亮 on 2020/1/1. // Copyright © 2020 Ming. All rights reserved. // #ifndef MCoreStore_h #define MCoreStore_h #import "MCoreStoreError.h" #import "MCoreKeychain.h" #import "MCorePlist.h" #import "MCoreFile.h" #end...
code_c
code
97
null
<reponame>szarnyasg/LAGraph //------------------------------------------------------------------------------ // LAGraph_Vector_wait: interface to GrB_Vector_wait //------------------------------------------------------------------------------ // LAGraph, (c) 2021 by The LAGraph Contributors, All Rights Reserved. // SP...
code_c
code
317
null
<reponame>michaelforney/janet /* * Copyright (c) 2019 <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, mod...
code_c
code
616
null
/*- * Copyright (c) 2012, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of c...
code_c
code
874
null
/*- * Copyright (c) 1992 <NAME>. * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> of the University of California, San Diego. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid...
code_c
code
8,060
null
<filename>d/deku/mausoleum/rooms/hidden20.c #include <std.h> #include "../inherits/area_stuff.h" inherit HID; void create() { ::create(); set_exits(([ "north" : MROOMS"hidden21", "southwest" : MROOMS"hidden19", ] )); set_long((string)TO->query_long()+"%^BOLD%^%^BLACK%^ The ...
code_c
code
108
null
#ifndef _TIMER_H #define _TIMER_H #define TIMERFLAG_ANIMATION 1U #define TIMERFLAG_ICONS 2U #define TIMERFLAG_GAMESTEP 4U #define TIMERMOD 30u #define TIMERMOD_MUSIC 4U #define TIMERMOD_ANIMATION 4U #define TIMERMOD_ICONS 16U #define TIMERMOD_GAMESTEP 16U #define timer_set(mask) (timer_flag |= mask) #define t...
code_c
code
150
null
<gh_stars>1-10 /*! \file binary_array.c * \brief This file contains functions to set and get values from binary arrays */ #include<stdlib.h> #include<string.h> char* alloc_and_set_zero_binary_array(size_t array_length) { char* bm = (char*)malloc(sizeof(char*)*((array_length/8+1))); if(bm == NULL)...
code_c
code
438
null
/** * @file tiledb_cpp_api_array.h * * @author <NAME> * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2020 TileDB, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to dea...
code_c
code
11,384
null
// ------------------------------------------------------------------------- // @FileName : NFMemory.h // @Author : LvSheng.Huang // @Date : 2012-07-11 // @Module : NFMemory // // ----------------------------------------------------------------------...
code_c
code
573
null
<filename>sdk-6.5.20/include/bcm_int/ltsw/xfs/switch.h /*! \file switch.h * * Switch control function declare APIs for XFS devices. */ /* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All...
code_c
code
3,228
null
<gh_stars>1000+ /** * \file * LLVM backend * * Authors: * <NAME> (<EMAIL>) * * (C) 2009 Novell, Inc. */ #ifndef __MONO_MINI_LLVM_CPP_H__ #define __MONO_MINI_LLVM_CPP_H__ #include <glib.h> #include "llvm-c/Core.h" #include "llvm-c/ExecutionEngine.h" #include "llvm-intrinsics-types.h" #ifdef HAVE_UNWIND_H ...
code_c
code
1,733
null
/** * Copyright (c) 2021 <NAME> * * SPDX-License-Identifier: Apache-2.0 **/ #include "json_creds.h" enum pabc_status pabc_cred_encode_public_parameters ( struct pabc_context const *const ctx, struct pabc_public_parameters *const public_params, char const *const pp_id, char const *const isk_key_id, char **js...
code_c
code
5,131
null
// // MeCenterCell.h // ACAAEdu // // Created by 张竟巍 on 2018/2/6. // Copyright © 2018年 ACAA. All rights reserved. // #import <UIKit/UIKit.h> @interface MeCenterCell : UITableViewCell @property (weak, nonatomic) IBOutlet UIImageView *leftImageView; @property (weak, nonatomic) IBOutlet UILabel *titleLabel; @end
code_c
code
90
null
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
code_c
code
898
null
<reponame>addstone/unrealengine3 ///////////////////////////////////////////////////////////////////////////// // Name: editlbox.h // Purpose: ListBox with editable items // Author: <NAME> // RCS-ID: $Id: editlbox.h,v 1.7 2002/09/07 12:10:20 GD Exp $ // Copyright: (c) <NAME> // Licence: wxWin...
code_c
code
679
null
<reponame>An-dz/simutrans-test<gh_stars>0 /* This file is part of the Simutrans project under the artistic licence. * (see licence.txt) */ #ifndef gui_scrollbar_h #define gui_scrollbar_h #include "gui_action_creator.h" #include "../../simevent.h" #include "gui_button.h" #include "../gui_theme.h" /** * Scrollbar ...
code_c
code
795
null
// // NSObject+Swizzle.h // Pods // // Created by ice on 2017/7/24. // // #import <Foundation/Foundation.h> #import <objc/runtime.h> /** * 通用IMP方法交换处理类 */ @interface NSObject (Swizzle) + (void)swizzleSelector:(SEL)originalSelector withSwizzledSelector:(SEL)swizzledSelector; @end
code_c
code
83
null
/* * Copyright (c) 2021 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
code_c
code
683
null
/* * Copyright (c) 2013 The WebM 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributin...
code_c
code
234
null
//------------------------------------------------------------------------------ // Copyright (c) 2016 <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, includ...
code_c
code
3,664
null
/* $Id: hisax.h,v <ip> 2000/12/06 16:59:19 kai Exp $ * * Basic declarations, defines and prototypes * * This file is (c) under GNU PUBLIC LICENSE * */ #include <linux/config.h> #include <linux/module.h> #include <linux/version.h> #include <linux/errno.h> #include <linux/fs.h> #include <linux/major.h> #include <...
code_c
code
8,272
null
<reponame>ChinaClever/PDU-CalibrateTool<filename>PDU-CalibrateTool/YC/yc_dc107.h #ifndef YC_DC107_H #define YC_DC107_H #include "yc_ac92b.h" class YC_Dc107 : public YC_StandSource { Q_OBJECT explicit YC_Dc107(QObject *parent = nullptr); public: static YC_Dc107 *bulid(QObject *parent = nullptr); bool ...
code_c
code
186
null
/** * VampirTrace * http://www.tu-dresden.de/zih/vampirtrace * * Copyright (c) 2005-2011, ZIH, TU Dresden, Federal Republic of Germany * * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing * Centre, Federal Republic of Germany * * See the file COPYING in the pa...
code_c
code
910
null
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/tm/wrap-3.c /* { dg-do compile } */ /* { dg-options "-fgnu-tm -fdump-tree-optimized" } */ void free (void *); void wrapper (void *) __attribute__((transaction_wrap (free))); void *p; void foo() { __transaction_relaxed { free (p); } } /* We still have one call to...
code_c
code
129
null
#region Local Var var uLocal_0 = 0; var uLocal_1 = 0; int iLocal_2 = 0; int iLocal_3 = 0; int iLocal_4 = 0; int iLocal_5 = 0; int iLocal_6 = 0; int iLocal_7 = 0; int iLocal_8 = 0; int iLocal_9 = 0; int iLocal_10 = 0; int iLocal_11 = 0; var uLocal_12 = 0; var uLocal_13 = 0; float fLocal_14 ...
code_c
code
6,887
null
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 <NAME> and QMCPACK developers. // // File developed by: <NAME>, <EMAIL>...
code_c
code
4,931
null
<reponame>willgos/kraken<gh_stars>1-10 /* * Copyright (C) 2017 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
code_c
code
2,137
null
/** File : MazeRunner_Running.h Author : <NAME> Created : 2019.04.02 Version: 20190402.1 Check all spaces reachable in a maze from a random start place BSD License Copyright (c) 2019 TheArquitect (<NAME>) <EMAIL> Redistribution and use in source and binary forms, with or w...
code_c
code
620
null
// Copyright 2020 The Pigweed Authors // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
code_c
code
1,055
null
/****************************************************************************** * * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published b...
code_c
code
9,038
null
<reponame>gkollias/alpha_language<filename>definitions.c<gh_stars>0 #include "definitions.h" #include "symtable.h" extern current_scope; extern yylineno; extern FILE* syntax_fp; extern FILE* quads_fp; unsigned programVarOffset = 0; unsigned functionLocalOffset = 0; unsigned formalArgOffset = 0; unsi...
code_c
code
4,319
null
<reponame>Leo121/SAMD21-XPRO<gh_stars>1-10 /* ---------------------------------------------------------------------------- */ /* Atmel Microcontroller Software Support */ /* SAM Software Package License */ /* -------------------------...
code_c
code
1,895
null
<filename>core/tests/bam_io/test_write_sam.h<gh_stars>1-10 // ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2013, <NAME>, FU Berli...
code_c
code
1,408
null
<filename>tile/lang/ast/ast.h<gh_stars>0 // Copyright 2019 Intel Corporation. #pragma once #include <memory> #include <string> #include <unordered_map> #include <vector> #include "tile/base/buffer.h" #include "tile/lang/runinfo.h" #include "tile/lang/type.h" #include "tile/math/polynomial.h" namespace vertexai { na...
code_c
code
3,027
null
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtXmlPatterns module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensees holding valid...
code_c
code
1,433
null
<gh_stars>1-10 #ifndef ENUMS_H #define ENUMS_H typedef enum { FID_IPV6_VER=1, FID_IPV6_DS, FID_IPV6_FL, FID_IPV6_LEN, FID_IPV6_NH, FID_IPV6_HL, FID_IPV6_DEV_PREFIX, FID_IPV6_DEV_IID, FID_IPV6_APP_PREFIX, FID_IPV6_APP_IID, FID_UDP_DP, FID_UDP_AP, FID_UDP_LEN, FID_...
code_c
code
634
null
/* * Copyright (c) 2007, Novell Inc. * * This program is licensed under the BSD license, read LICENSE.BSD * for further information */ /* * pool.h * */ #ifndef LIBSOLV_POOL_H #define LIBSOLV_POOL_H #include <stdio.h> #include "solvversion.h" #include "pooltypes.h" #include "poolid.h" #include "solvable.h" #...
code_c
code
3,961
null
/* * Entropy accumulator implementation * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * * This file is part of mbed TLS (https://tls.mbed.org) * * 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,449
null
<reponame>DanielHsH/LenaKot<filename>sources/demDerive.h /****************************************************************************/ /************************** demDerive.h *******************************/ /****************************************************************************/ /************************...
code_c
code
442
null
<filename>mdslibidl/MdsLibIdl.c /* Copyright (c) 2017, Massachusetts Institute of Technology 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 copyrigh...
code_c
code
5,114
null
#define _Noreturn #undef __BLOCKS__ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <stdarg.h> #include <ctype.h> #if defined(__GNUC__) || defined(__WATCOMC__) || defined(__WIN32__) #include <time.h> #include <sys/types.h> #include <sys/stat.h> #define __USE_LARGEFILE64 #include <fcntl.h> #if d...
code_c
code
7,085
null
/* * crypt32 cert store function tests * * Copyright 2005-2006 <NAME> * * 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 option) an...
code_c
code
31,741
null
// // Copyright 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
code_c
code
1,160
null
/* init/start/stop/exit stream functions Copyright (C) 2003-2004 <NAME> <nufan_wfk at yahoo.com> Copyright (C) 2004 <NAME> <<EMAIL>> Copyright (C) 2005-2007 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
code_c
code
8,642
null
// Copyright (C) 2019-2020 Zilliz. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
code_c
code
740
null