text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
/* Copyright (c) 1991 <NAME>, IMSOR Disclaimer: No guarantees of performance accompany this software, nor is any responsibility assumed on the part of the authors. All the software has been tested extensively and every effort has been made to insure its reliability. */ /* * mdilate.c - gray level dilation * ...
code_c
code
897
null
// stat.c // // Filesystem info. // // Author: <NAME> <<EMAIL>> #include <stdint.h> #include <_syscall.h> #include <errno.h> #include <fcntl.h> #include <unistd.h> #include <sys/stat.h> int32_t stat(const char *file, struct stat *st) { int32_t fd = open(file, O_RDONLY); if (fd < 0) { return fd; } int32_t res =...
code_c
code
281
null
#include "Define.h" #include <stdio.h> int main(int argc, char **argv) { printf("ConcavePositiveUnipolar\n"); for (int i = 0; i <= 10; ++i) { printf("-- %0.8f\n", ConcavePositiveUnipolar(0.1 * i)); } printf("ConcaveNegativeUnipolar\n"); for (int i = 0; i <= 10; ++i) { printf("-- %0...
code_c
code
538
null
/* * $Id: LOD_ExternBufferEditor.h 35147 2011-02-25 10:47:28Z jesterking $ * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 th...
code_c
code
1,232
null
<filename>playground.c /* * Playground.c * A basic sandbox for testing weird pointers and memory functions * */ #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct _node { struct _node *next; char *payload[1]; } Node; typedef struct { char *name; size_t age; char *first_...
code_c
code
566
null
<reponame>r-lyeh-archived/reflect<gh_stars>1-10 // The MIT License (MIT) // // Copyright (c) 2014 <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 w...
code_c
code
1,331
null
<filename>core/src/include/tcp_stream_queue.h #ifndef __TCP_STREAM_QUEUE_ #define __TCP_STREAM_QUEUE_ #include <stdint.h> /* Lock definitions for stream queue */ #if LOCK_STREAM_QUEUE #if USE_SPIN_LOCK #define SQ_LOCK_INIT(lock, errmsg, action); \ if (pthread_spin_init(lock, PTHREAD_PROCESS_PRIVATE)) { \ perror...
code_c
code
794
null
/* */ #include "common.h" static const char *memcached_stat_keys[] = { "pid", "uptime", "time", "version", "pointer_size", "rusage_user", "rusage_system", "curr_items", "total_items", "bytes", "curr_connections", "total_connections", "connection_structures", "cmd_get", "cmd_set", "get_...
code_c
code
4,928
null
<reponame>ZFFrameworkDist/ZFFramework /** * @file ZFTime.h * @brief time utility */ #ifndef _ZFI_ZFTime_h_ #define _ZFI_ZFTime_h_ #include "ZFObject.h" ZF_NAMESPACE_GLOBAL_BEGIN // ============================================================ // ZFTimeValue /** * @brief store a time value */ zfclassPOD ZF_ENV_EX...
code_c
code
5,382
null
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "dask.h" #include "conio.h" #include "cpgplot.h" #define SQR(a) ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*sqrarg) //prototypes int acquire_data(void); void show_channel_data( U16 *buf, int num_chan ); int plot_channel_data(void); void transfer_and_scale(U...
code_c
code
1,114
null
<gh_stars>0 #pragma once #include "../Component.h" #include <Siv3D/Stopwatch.hpp> #include <Siv3D/Optional.hpp> #include <functional> #include <vector> namespace gsl { namespace Update { class UpdateComponent; struct UpdateOption :public ComponentOption { public: std::function<bool(UpdateCompo...
code_c
code
407
null
<gh_stars>1-10 // // NativeScript.h // NativeScript // // Created by <NAME> on 15.07.14. // Copyright (c) 2014 г. Telerik. All rights reserved. // #import "TNSRuntime.h" #import "TNSRuntime+Inspector.h"
code_c
code
59
null
#include "startup.h" #include "hardware.h" #include "coplist.h" #include "sprite.h" #include "gui.h" #include "event.h" #include "keyboard.h" #include "mouse.h" #include "memory.h" #include "ilbm.h" #define WIDTH 320 #define HEIGHT 256 #define DEPTH 3 STRPTR __cwdpath = "data"; static BitmapT *screen; static CopList...
code_c
code
1,115
null
/* $NetBSD: bus.h,v 1.12 1997/10/01 08:25:15 fvdl Exp $ */ /*- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> of the Numerical Aerospace Simulation Facility, * NASA Ames Research Center. * * R...
code_c
code
7,347
null
/* * * Copyright 2015 - 2017 Rockchip Electronics 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 ...
code_c
code
766
null
<reponame>V-Fib/FlurryClone<gh_stars>10-100 /* * SessionFacadeTypes.h * * Created on: 22/09/2010 * Author: victor */ #ifndef SESSIONFACADETYPE_H_ #define SESSIONFACADETYPE_H_ class SessionFacadeType { public: enum { ENTERTAINING = 1, MIGRATESTATS = 2, IMAGEDESIGN = 3, SLICING = 4, CREATEVENDOR ...
code_c
code
254
null
/* { dg-do compile } */ void XAXIS (); void YAXIS (); void ZAXIS (); void a9 () { #pragma omp parallel sections { #pragma omp section XAXIS (); #pragma omp section YAXIS (); #pragma omp section ZAXIS (); } }
code_c
code
64
null
#pragma once #include "ofMain.h" #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <assert.h> #include <string.h> #include <time.h> #include <sys/types.h> #include <errno.h> #ifndef WIN32 #include <unistd.h> #include <termios.h> #include <sys/time.h> #endif #define BAUD 115200 class witmotionContro...
code_c
code
450
null
<filename>src/support/threads.h /* * Copyright 2016 WebAssembly Community Group participants * * 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/LICE...
code_c
code
827
null
<filename>stdlib/public/Concurrency/TaskGroupPrivate.h //===--- TaskGroupPrivate.h - TaskGroup internal interface -*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runti...
code_c
code
338
null
#import "SSignalKit.h" @class TGMediaAttachment; @class TGDocumentMediaAttachment; @interface TGDownloadAudioSignal : NSObject + (SSignal *)downloadAudioWithAttachment:(TGMediaAttachment *)audioAttachment conversationId:(int64_t)cid messageId:(int32_t)mid; + (NSString *)pathForDocumentMediaAttachment:(TGDocumentMed...
code_c
code
101
null
<reponame>Fendouzhe/UI-Component-Collection // // FontAttribute.h // AttributeString // // Created by LeiLuRong on 15/8/3. // Copyright (c) 2015年 LeiLuRong. All rights reserved. // #import "StringAttribute.h" @interface FontAttribute : StringAttribute @property (nonatomic, strong) UIFont *font; @end
code_c
code
88
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 MEDIA_CAST_CAST_ENVIRONMENT_H_ #define MEDIA_CAST_CAST_ENVIRONMENT_H_ #include <memory> #include "base/macros.h" #include "base/memory/ref_count...
code_c
code
876
null
/* $Id$ */ /* Copyright (c) 2018-2019 <NAME> <<EMAIL>> */ /* This file is part of DeforaOS uKernel */ #include <stdio.h> #include <time.h> #include <errno.h> /* public */ /* functions */ /* main */ int main(int argc, char * argv[], char * envp[], void * auxv) { int i; time_t t; puts("Starting DeforaOS..."); p...
code_c
code
228
null
// // PhoneContactCell.h // Connect // // Created by MoHuilin on 16/5/30. // Copyright © 2016年 Connect. All rights reserved. // #import "BaseCell.h" #import "BEMCheckBox.h" @interface PhoneContactCell : BaseCell @property (weak, nonatomic) IBOutlet BEMCheckBox *checkBox; @end
code_c
code
82
null
/* Fontname: -Raccoon-Fixed4x6-Medium-R-Normal--6-60-75-75-P-40-ISO10646-1 Copyright: Glyphs: 18/203 BBX Build Mode: 2 */ const uint8_t u8g2_font_tom_thumb_4x6_mn[169] U8G2_FONT_SECTION("u8g2_font_tom_thumb_4x6_mn") = "\22\2\2\2\3\3\1\1\4\4\5\0\0\5\377\5\0\0\0\0\0\0\214 \6\354<\237\0*\7\354" "L\212Uf+\7\3...
code_c
code
199
null
/* vi: set sw=4 ts=4: */ /* * adjtimex() for uClibc * * Copyright (C) 2000-2006 <NAME> <<EMAIL>> * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ #include <sys/syscall.h> #include <sys/timex.h> _syscall1(int, adjtimex, struct timex *, buf) libc_hidden_def(adjtimex) #if defined __U...
code_c
code
108
null
/** * @file app.h * @author <NAME> (<EMAIL>) * @brief For application specific includes and definitions * Will be included from main.h * @version 0.3 * @date 2022-01-29 * * @copyright Copyright (c) 2022 * */ #ifndef APP_H #define APP_H //**********************************************/ ...
code_c
code
772
null
#ifndef __EPL2182_H__ #define __EPL2182_H__ #define REG_0 0X00 #define REG_1 0X01 #define REG_2 0X02 #define REG_3 0X03 #define REG_4 0X04 #define REG_5 0X05 #define REG_6 0X06 #define REG_7 0X07 #define REG_8 0X08 #define REG_9 0X09 #define REG_10 0X0A #define REG_11 0X0B #define REG_12 0X0C...
code_c
code
1,344
null
<gh_stars>0 /* * Copyright (C) 2010 The Android Open Source Project * * 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 req...
code_c
code
1,375
null
// // XVimReplacePromptEvaluator.h // XVim // // Created by <NAME> on 2/19/15. // Copyright (c) 2015 __MyCompanyName__. All rights reserved. // #import "XVimEvaluator.h" #import <Foundation/Foundation.h> // This evaluator is waiting for the user to verify a replacement. @interface XVimReplacePromptEvaluator : XVi...
code_c
code
136
null
<reponame>joannhsiao/CA_Simulator #ifndef PIPELINE_H #define PIPELINE_H /* R type */ #define ADD 1 #define SUB 1 #define OR 1 #define AND 1 /* I types */ #define SLL 2 #define SRL 2 #define ADDI 2 #define SUBI 2 #define LW 2 #define SW 2 #define LBU 2 #define SBU 2 #define BEQ 2 #define BNE 2 /* J type */ #define J 3 ...
code_c
code
294
null
#ifndef BABYLON_MATERIALS_TEXTURES_IINTERNAL_TEXTURE_LOADER_H #define BABYLON_MATERIALS_TEXTURES_IINTERNAL_TEXTURE_LOADER_H #include <functional> #include <memory> #include <variant> #include <babylon/babylon_api.h> #include <babylon/babylon_common.h> #include <babylon/core/array_buffer_view.h> #include <babylon/misc...
code_c
code
1,021
null
#ifndef SUPERPIXELS_COMMANDS_COMMANDVEKSLER #define SUPERPIXELS_COMMANDS_COMMANDVEKSLER #include "command.h" #include "vekslerconfig.h" namespace vole { class CommandVeksler : public Command { public: CommandVeksler(); public: int execute(); void printShortHelp() const; void printHelp() const; protected: Veks...
code_c
code
114
null
<reponame>haomingzhi/Model // // BUGetInviteUserListManager.h // compassionpark // // Created by air on 2017/4/13. // Copyright © 2017年 ORANLLC_IOS1. All rights reserved. // #import "BUBasePageDataManager.h" @interface BUGetInviteUser : BUBase @property(strong,nonatomic) NSString *operTime; @property(strong,nonat...
code_c
code
263
null
// C++ for the Windows Runtime v1.0.161012.5 // Copyright (c) 2016 Microsoft Corporation. All rights reserved. #pragma once #include "Windows.Devices.Radios.1.h" WINRT_EXPORT namespace winrt { namespace ABI::Windows::Foundation::Collections { #ifndef WINRT_GENERIC_65066c36_090b_5466_b8e5_e7565dc34175 #define WINRT...
code_c
code
1,658
null
<reponame>egelwan/Karabiner-Elements<filename>src/vendor/cget/include/spdlog/details/windows_include.h<gh_stars>1000+ #pragma once #ifndef NOMINMAX #define NOMINMAX // prevent windows redefining min/max #endif #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <windows.h>
code_c
code
84
null
<reponame>ogycode/CPPFromZero #pragma once class Tiger : public Cat, public Lion { public: Tiger(); ~Tiger(); virtual void Say(); };
code_c
code
39
null
<filename>src/misc/shift.h<gh_stars>0 /* * shift.h by nieltg, Daniel */ #pragma once #include "util.h" /* Bit shift. */ #define _SHIFT_SET_STMT(rega,i,j) \ _UTIL_SET_STMT(rega,i,rega,j) /* Byte shift. */ #define SHIFT_LEFT1_STMT(rega) \ _SHIFT_SET_STMT(rega,7,8); \ _SHIFT_SET_STMT(rega,6,7); \ _...
code_c
code
146
null
<reponame>Sirokujira/MicroFrameworkPK_v4_3 /* #[<PREAMBLE>]# * #[<...>]# から #[</...>]# で囲まれたコメントは編集しないでください * tecsmerge によるマージに使用されます * * このファイルは tecsgen によりテンプレートとして自動生成されました * このファイルを編集して使用することが意図されていますが * tecsgen の再実行により上書きされてしまうため、通常 * gen/_template.c => src/.c * のように名前, フォルダを変更してから修正します * * 属性アクセスマクロ #...
code_c
code
342
null
<gh_stars>1-10 /* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that...
code_c
code
4,982
null
<reponame>iancarnation/AIE_Physics<gh_stars>0 /**********************************************************************************/ /* */ /* File: dxdbg.h */ /* Author: <EMAIL...
code_c
code
4,612
null
/* all functions names in this module starts with "hsc" - * which stands for "High Speed Control" */ #include <high_speed_control.h> #include <speed.h> //#include <pid.h> #include <MT_control.h> #include <feedback.h> #include <pedals.h> /* GLOBAL VARIABLES */ ///// /* FUNCTIONS */ void hscInit ( void ) { fe...
code_c
code
255
null
#pragma once #include "ScriptComponent.h" #include <metadata\object-forward.h> #include <metadata\object.h> #include <metadata/class.h> template <typename T> T GetComponentMono(MonoObject* go) { MonoClass* goObj = mono_object_get_class(go); const char* name = mono_class_get_name(goObj); uint data = 0; mono_field...
code_c
code
1,091
null
<reponame>wqk317/mi8_kernel_source<filename>mi8/drivers/net/phy/spi_ks8995.c /* * SPI driver for Micrel/Kendin KS8995M and KSZ8864RMN ethernet switches * * Copyright (C) 2008 <NAME> <juhosg at openwrt.org> * * This file was based on: drivers/spi/at25.c * Copyright (C) 2006 <NAME> * * This program is free so...
code_c
code
3,994
null
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/graphite/pr41888.c /* { dg-options "-g -O2 -ftree-loop-distribution -fgraphite-identity" } */ int foo (int *x) { int a[10], b[10]; int i; a[9] = 8; b[9] = 8; for (i = 0; i < 9; i++) { a[i] = *x++; b[i] = 1; } b[i] = b[i] & !(a[i] ^ *x...
code_c
code
101
null
<filename>LUFA_091223/Demos/Device/Incomplete/Sideshow/Sideshow.c /* LUFA Library Copyright (C) <NAME>, 2009. dean [at] fourwalledcubicle [dot] com www.fourwalledcubicle.com */ /* Copyright 2009 <NAME> (dean [at] fourwalledcubicle [dot] com) Permission to use, ...
code_c
code
1,395
null
<reponame>maurizioabba/rose<filename>tests/CompileTests/ElsaTestCases/gnu/bugs/gb0004.c // gb0004.c // missing semicolon in structure member declaration // rejected by icc, so Elsa will continue to reject struct category { struct cat_item { } };
code_c
code
72
null
/* * Copyright (c) 2010-2011 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR ...
code_c
code
811
null
#include <stdio.h> #include <string.h> #define MAX_DIGITS 610 struct BigNumber { int arr[MAX_DIGITS]; int sign; int length; }; static struct BigNumber multi[10]; void set_value(struct BigNumber *num, char buf[MAX_DIGITS]) { int len = strlen(buf); int i; num->length = strlen(buf); num->sign = 0; for (i = ...
code_c
code
1,548
null
<filename>App/CoreAudio/PublicUtility/CARingBuffer.h /* File: CARingBuffer.h Abstract: Part of CoreAudio Utility Classes Version: 1.01 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, inst...
code_c
code
1,560
null
/* Copyright 2015 <NAME> (<EMAIL>) Lizenziert gemäß Apache Licence Version 2.0 (die „Lizenz“); Nutzung dieser Datei nur in Übereinstimmung mit der Lizenz erlaubt. Eine Kopie der Lizenz erhalten Sie auf http://www.apache.org/licenses/LICENSE-2.0. Sofern nicht gemäß geltendem Recht vorgeschrieben oder sc...
code_c
code
458
null
<reponame>hyacinthes/FreeRDP /** * WinPR: Windows Portable Runtime * Path Functions * * Copyright 2012 <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 obtain a copy of the License at * * http:...
code_c
code
6,380
null
/* * linux/fs/proc/net.c * * Copyright (C) 2007 * * Author: <NAME> <<EMAIL>> * * proc net directory handling functions */ #include <asm/uaccess.h> #include <linux/errno.h> #include <linux/time.h> #include <linux/proc_fs.h> #include <linux/stat.h> #include <linux/slab.h> #include <linux/init.h> #include <l...
code_c
code
1,331
null
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
code_c
code
1,153
null
<gh_stars>10-100 /* * Program from Fig.1 of * 2010CAV - Kroening,Sharygina,Tsitovich,Wintersteiger - Termination Analysis with Compositional Transition Invariants * * Date: 12.12.2013 * Author: <EMAIL> * */ extern int __VERIFIER_nondet_int(void); int main() { int x = __VERIFIER_nondet_int(); int debug = 0; ...
code_c
code
127
null
<gh_stars>1-10 #include <stdint.h> #include <stddef.h> #include <stdlib.h> #include "../../../include/libbase64.h" #include "../../tables/tables.h" #include "../../codecs.h" #include "config.h" #include "../../env.h" #if HAVE_AVX2 #include <immintrin.h> #include "dec_reshuffle.c" #include "dec_loop.c" #include "enc_...
code_c
code
218
null
<gh_stars>100-1000 /* The Natural Earth II projection was designed by <NAME>, US National Park Service, in 2012, using Flex Projector. The polynomial equation was developed by <NAME> and <NAME>, College of Earth, Ocean, and Atmospheric Sciences, Oregon State University. Port to PROJ.4 by <NAME>, 4 April 2016 */ #define...
code_c
code
660
null
/* * GIT - The information manager from hell * * Copyright (C) <NAME>, 2005 */ #include "cache.h" #include "builtin.h" #include "parse-options.h" #include "userdiff.h" #include "streaming.h" #include "tree-walk.h" static int cat_one_file(int opt, const char *exp_type, const char *obj_name, int unknown_type) { ...
code_c
code
3,464
null
<filename>SOFTWARE/A64-TERES/linux-a64/arch/powerpc/kvm/book3s_hv_rm_mmu.c<gh_stars>1-10 /* * 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. * * Copyright 2010-2011 <NAME>, IBM C...
code_c
code
7,190
null
<gh_stars>1-10 // 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 UI_EVENTS_GESTURE_DETECTION_SNAP_SCROLL_CONTROLLER_H_ #define UI_EVENTS_GESTURE_DETECTION_SNAP_SCROLL_CONTROLLER_H_ #include "base...
code_c
code
492
null
<reponame>npocmaka/Windows-Server-2003 ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1988 - 1991 ; * All Rights Reserved. ; */ /* * XMS Driver C Interface Routine Definitions * */ unsigned XMM_Installed(void); long ...
code_c
code
340
null
<reponame>Mchaney3/AXSResearch #ifndef __ILI9325_H__ #define __ILI9325_H__ void ili9325_lcdInit(TFT_t * dev, int width, int height, int offsetx, int offsety); void ili9325_lcdDrawPixel(TFT_t * dev, uint16_t x, uint16_t y, uint16_t color); void ili9325_lcdDrawMultiPixels(TFT_t * dev, uint16_t x, uint16_t y, uint16_t si...
code_c
code
261
null
<filename>Codes/GUI/Core/inc/GUI_ClipArea.h #ifndef __GUI_CLIPAREA_H #define __GUI_CLIPAREA_H #include "GUI_Config.h" #include "GUI_ClipAreaHeap.h" GUI_AREA GUI_ClipExcludeRect(GUI_AREA Area, GUI_RECT *Rect); void GUI_ClipNewWindow(GUI_HWIN hWin); void GUI_WindowClipArea(GUI_HWIN hWin); void GUI_DeleteWindowClipArea(...
code_c
code
122
null
/* mate_runtime.c * MATE -- Meta Analysis Tracing Engine * * Copyright 2004, <NAME> <<EMAIL>> * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "mate.h" typedef struct _mate_range mate_range; struct _mate_range {...
code_c
code
6,693
null
<filename>lab03/bignumber.h<gh_stars>0 // <NAME> // 2020009562 #include <iostream> #ifndef BIGNUMBER_H #define BIGNUMBER_H class BigNumber { private: int num[31]; int len; void inicializar() { for(int i = 0; i < 31; i++) num[i] = 0; } public: BigNumb...
code_c
code
152
null
/* *+ * Name: * hdsDimC2F * Purpose: * Convert an array of hdsdim[] to F77_INTEGER_TYPE[] * Invocation: * outdims = hdsDimC2F( int ndim, const hdsdim dims[], * F77_INTEGER_TYPE fdims[DAT__MXDIM], int * status ); * Description: * This function should be used to convert an array...
code_c
code
1,274
null
<filename>src/bhs/data_list.c #include <bhs/data.h> /* ----------------------------------------------------------------------- */ #if defined(__SUNPRO_C) data_des_t _data_list_designator = { .des_name = "DATA_LIST", .des_init = data_lst_init, .des_new = data_lst_new, .des_fini = data_lst_fini, .des_drop = data_...
code_c
code
3,516
null
/* * Copyright (c) 2020, <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
754
null
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/iam/IAM_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSStreamFwd.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils {...
code_c
code
2,961
null
<reponame>orbisdev/PS4SDK<filename>common/kernel/source/kernel/register.c #include <sys/cdefs.h> #include <sys/types.h> #include <machine/cpufunc.h> #include <ps4/kernel.h> int ps4KernelRegisterControlSet(unsigned int c, unsigned long value) { switch(c) { case 0: load_cr0(value); break; /*case 1: // look...
code_c
code
362
null
<filename>sources/mceliece6960119f/vec/fft.h #ifndef FFT_H #define FFT_H /* This file is for the Gao-Mateer FFT sse http://www.math.clemson.edu/~sgao/papers/GM10.pdf */ #include <stdint.h> #include "params.h" #include "vec.h" void fft(vec out[][ GFBITS ], vec in[][GFBITS]); #endif
code_c
code
83
null
<gh_stars>10-100 // // MDOption.h // MidtransDemo // // Created by <NAME> on 4/28/17. // Copyright © 2017 Midtrans. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, MDOptionType) { MDOptionTypeGeneral, MDOptionTypeColor, MDOptionTypeComposer }; typedef NS_ENUM(NSUInteger, M...
code_c
code
289
null
<filename>include/cutlass/gemm/kernel/gemv.h /*************************************************************************************************** * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * ...
code_c
code
2,309
null
<reponame>CaramelHeaven/appFirewall<filename>PoeMac/C workers/table.h<gh_stars>100-1000 // // appFirewall // // Copyright © 2019 <NAME>. All rights reserved. // #ifndef table_h #define table_h #include <limits.h> #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include "util.h" typed...
code_c
code
254
null
#ifndef __FRAMEWORK_CORE_L_DOBJECT_H__ #define __FRAMEWORK_CORE_L_DOBJECT_H__ #ifdef __cplusplus extern "C" { #endif #include <list.h> #include <xboot/window.h> #include <luahelper.h> #define MT_DOBJECT "__mt_dobject__" enum dobject_type_t { DOBJECT_TYPE_CONTAINER = 0, DOBJECT_TYPE_IMAGE = 1, DOBJECT_TYPE_N...
code_c
code
553
null
<reponame>rnprakash/445M // PingMeasure.c // Runs on LM3S8962 // Use Timer0A in edge time mode to request interrupts on the rising // edge of PD4 (CCP0), and measure period between pulses. // <NAME> // June 27, 2011 /* This example accompanies the book "Embedded Systems: Real Time Interfacing to the Arm Cortex M3",...
code_c
code
2,206
null
<reponame>LabSound/LabSoundGraphToy #ifndef included_noodle_h #define included_noodle_h #include <atomic> #include <cstdint> #include <functional> #include <string> #include <map> #include <set> #include <vector> typedef struct { uint64_t id; } ln_Context; typedef struct { uint64_t id; } ln_Connection; typedef struc...
code_c
code
3,530
null
<filename>src/GFX/BitmapMapping.h #ifndef BITMAPMAPPING_H #define BITMAPMAPPING_H #include "Bitmap.h" #include <vector> class BitmapMapping : protected Bitmap { public: BitmapMapping(const std::string &filename, const Graphics::Color& backgroundColor); virtual void Draw( const Vector2DI& pos, ...
code_c
code
190
null
#pragma once #include <iostream> #include <iomanip> #include <ios> #include <vector> #include <tuple> #include <type_traits> #include <cassert> #include <cmath> /** * Used to specify the column format */ enum class VariadicTableColumnFormat { AUTO, SCIENTIFIC, FIXED, PERCENT }; template <class... Ts> class...
code_c
code
2,325
null
<reponame>erdinckaya/monitorx<gh_stars>1-10 // // Created by misterdortnal on 03.01.2019. // #ifndef MONITORX_VEC2_H #define MONITORX_VEC2_H template<typename C> struct Vec2 { explicit Vec2(C x = 0, C y = 0) : x(x), y(y) {} C x; C y; REFLECT_TEMPLATE(Vec2, C) REFLECT_STRUCT_M...
code_c
code
138
null
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
code_c
code
725
null
<filename>bin/varnishd/cache/cache_main.c<gh_stars>1-10 /*- * Copyright (c) 2006 Verdens Gang AS * Copyright (c) 2006-2011 Varnish Software AS * All rights reserved. * * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
code_c
code
1,810
null
<gh_stars>1-10 /* src/include/port/irix.h */ /* * IRIX 6.5.26f and 6.5.22f (at least) have a strtod() that accepts * "infinity", but leaves endptr pointing to "inity". */ #define HAVE_BUGGY_IRIX_STRTOD
code_c
code
60
null
// // DFAFilter.h // DFAFilterDemo // // Created by winter on 2020/11/18. // Copyright © 2020 winter. All rights reserved. // #import <Foundation/Foundation.h> @interface DFAFilter : NSObject /// 异步初始化敏感词库 + (void)asyncInit:(void(^)(DFAFilter *dfa))block; /// 读取敏感词 /// @param path 敏感词的路径 - (void)parseSensitiveWo...
code_c
code
306
null
<gh_stars>1000+ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/eval/eval/gbdt.h> #include "llvm_wrapper.h" namespace vespalib { namespace eval { namespace gbdt { /** * GBDT forest optimizer performing automatic function de-inlin...
code_c
code
275
null
<gh_stars>0 // RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s // RUN: grep "g.b = internal global i8. getelementptr" %t struct AStruct { int i; char *s; double d; }; void f(void) { static int i = 42; static int is[] = { 1, 2, 3, 4 }; static char* str = "forty-two"; static char* strs[] = ...
code_c
code
234
null
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2021, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
code_c
code
6,465
null
<reponame>HelixOS/cts /* * Copyright (C) 2013 The Android Open Source Project * * 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 r...
code_c
code
337
null
<reponame>sandym/pdfp /* * DataFactory.h * pdfp * * Created by <NAME> on 09-02-16. * Copyright 2009 by <NAME>. All rights reserved. * */ #ifndef H_PDFP_DATAFACTORY #define H_PDFP_DATAFACTORY #include "pdfp/PDFData.h" namespace pdfp { class Object; DataStreamRef createDataStream( const Object &i_dict, ...
code_c
code
191
null
<gh_stars>10-100 /* Driver for Philips tda8262/tda8263 DVBS Silicon tuners (c) 2006 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License,...
code_c
code
1,438
null
<reponame>WPH95/nebula<filename>src/meta/processors/BaseProcessor-inl.h<gh_stars>1-10 /* Copyright (c) 2018 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #pragma once #include "meta/processors/BaseProcessor.h" namespace nebula { namespace meta { template <typename...
code_c
code
6,274
null
/** * @author ooooo * @date 2021/1/24 18:08 */ #ifndef CPP_1701__SOLUTION1_H_ #define CPP_1701__SOLUTION1_H_ #include <iostream> #include <vector> #include <stack> #include <queue> using namespace std; class Solution2 { double averageWaitingTime(vector<vector<int>> &customers) { long long total_wait = 0; ...
code_c
code
210
null
<gh_stars>0 // Copyright (C) 2019 - 2022 by <NAME>, Rector and Visitors of the // University of Virginia, University of Heidelberg, and University // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelbe...
code_c
code
1,592
null
<gh_stars>1-10 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* 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 nsMemory_h_...
code_c
code
1,686
null
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. /*============================================================================= AudioMixerEffectsManager.h: Implementation of backwarwds compatible effects manager for the multiplatform audio mixer ============================================================...
code_c
code
290
null
#import <AppleMediaServicesUI/AMSPaymentVerificationTokenResult.h> #import <AppleMediaServicesUI/AMSUIAlertDialogTask.h> #import <AppleMediaServicesUI/AMSUIAuthenticateTask.h> #import <AppleMediaServicesUI/AMSUIAuthKitUpdateTask.h> #import <AppleMediaServicesUI/AMSUIAutomaticDownloadKindsSetTask.h> #import <AppleMediaS...
code_c
code
1,931
null
/* This file is part of cpp-ethereum. cpp-ethereum 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 3 of the License, or (at your option) any later version. cpp-ethereum is ...
code_c
code
367
null
/*! \file bcma_bcmmgmtcmd_config.h * * CLI 'dev' command. */ /* * 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 rights reserved. */ #ifndef BCMA_BCMMGMTCMD_CONFIG_H #define BCMA_BCMMG...
code_c
code
433
null
/* * * device driver for Conexant 2388x based TV cards * MPEG Transport Stream (DVB) routines * * (c) 2004, 2005 <NAME> <<EMAIL>> * (c) 2004 <NAME> <<EMAIL>> [SuSE Labs] * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publishe...
code_c
code
12,743
null