text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
<reponame>Mechap/ODFAEG /* * isqlext.h * * $Id: isqlext.h,v 1.4 2013-09-01 17:11:19 yas Exp $ * * iODBC defines (ext) * * The iODBC driver manager. * * Copyright (C) 1995 by <NAME> <<EMAIL>> * Copyright (C) 1996-2009 by OpenLink Software <<EMAIL>> * All Rights Reserved. * * This software is release...
code_c
code
1,030
null
<reponame>cflowe/ACE // -*- C++ -*- //============================================================================= /** * @file Valuetype_Adapter_Impl.h * * $Id: Valuetype_Adapter_Impl.h 95580 2012-03-01 11:28:43Z sma $ * * @author <NAME> <<EMAIL>> */ //====================================================...
code_c
code
611
null
<reponame>Mati-C/Mutant_Raid // Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "Animation/AnimInstance.h" #include "EnemyAnimInstance.generated.h" /** * */ UCLASS() class MUTANT_RAID_API UEnemyAnimInstance : public UAnimInstance { GENERA...
code_c
code
151
null
#pragma once typedef enum ASGI_GPUStorageTextureAccess { ASGI_STORAGE_TEX_ACCESS_WriteOnly } ASGI_GPUStorageTextureAccess;
code_c
code
35
null
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* Copyright(c) 2020-2022 Realtek Corporation */ #include <linux/module.h> #include <linux/pci.h> #include "pci.h" #include "reg.h" #include "rtw8852c.h" static const struct rtw89_pci_info rtw8852c_pci_info = { .dma_addr_set = &rtw89_pci_ch_dma_addr_set_v1, }; ...
code_c
code
302
null
#include "h-basic.h" #include "z-form.h" #include "z-term.h" #include "ui.h" #include "z-type.h" #include "z-virt.h" #define TYPE_FUN(v2u, tv, T, v) \ type_union v2u(T v) { \ type_union r; \ r.u.v = v; \ r.t = tv; \ return r; \ } TYPE_FUN(i2u, T_INT, int, i) TYPE_FUN(c2u, T_CHAR, char, c) TYPE_FUN(f...
code_c
code
352
null
<reponame>GWU-CSCI3411/lab9-memory-allocation-template /*------------------------------------------------------------------------------ GWU - CSCI 3411 - Fall 2017 Best fit memory test author : <NAME> ------------------------------------------------------------------------------*/ #include "types.h" #include "user.h" ...
code_c
code
1,907
null
/* Unix SMB/CIFS implementation. simple kerberos5/SPNEGO routines Copyright (C) <NAME> 2001 Copyright (C) <NAME> <<EMAIL>> 2002 Copyright (C) <NAME> 2002-2003 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
code_c
code
2,390
null
<reponame>carlosdamazio/bilion<filename>src/include/billion.h<gh_stars>0 #include "ast.h" #include "file.h" #include "lexer.h" #include "parser.h" #include "utilities.h" #ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 1 #endif
code_c
code
66
null
<reponame>c-edw/sway #define _POSIX_C_SOURCE 200809L #include <errno.h> #include <limits.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <wlr/types/wlr_buffer.h> #include "sway/config.h" #include "sway/debug.h" #include "sway/desktop.h" #include "sway/desktop/idle_inhibit_v1.h...
code_c
code
4,703
null
<reponame>davitkalantaryan/wlac-binaries // // (c) 2015-2018 WLAC. For details refers to LICENSE.md // #ifndef __win_sys_ioctl_h__ #define __win_sys_ioctl_h__ #include <first_includes/common_include_for_headers.h> #include <bits/ioctls.h> __BEGIN_C_DECLS GEM_API_FAR int ioctl(int d, int request, ...); ...
code_c
code
109
null
#include <stdlib.h> #include <math.h> #include <potential/builtin/builtin_potentials.h> #include "components.h" #include "cosmology.h" // TODO: make this a PR, note so slow, remove most of this shite and define // potential parameters hard-set in header file. double growing_milkyway_value(double t, double *pars...
code_c
code
1,300
null
<reponame>quiveringlemon/pfl /*******************************************************************\ Module: Field-insensitive, location-sensitive, over-approximative escape analysis Author: <NAME>, <EMAIL> \*******************************************************************/ #ifndef CPROVER_ESCAPE_ANALYSIS_H...
code_c
code
694
null
<reponame>skotchandsoda/needleman-wunsch /*- Copyright (c) 2015, <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 source code must retain the above copyright notice, this...
code_c
code
598
null
<reponame>PPCDroid/dalvik<gh_stars>10-100 /* * Copyright (C) 2008 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/license...
code_c
code
445
null
/* * Copyright (c) 2013 <NAME> <<EMAIL>> * * BSD Simplified License. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. * * See https://github.com/danomatika/PdParty for documentation * */ #import "ControlsView.h" #import...
code_c
code
280
null
<filename>toolsrc/include/vcpkg/vcpkgpaths.h #pragma once #include <vcpkg/base/fwd/json.h> #include <vcpkg/fwd/configuration.h> #include <vcpkg/fwd/registries.h> #include <vcpkg/fwd/vcpkgcmdarguments.h> #include <vcpkg/fwd/vcpkgpaths.h> #include <vcpkg/base/cache.h> #include <vcpkg/base/files.h> #include <vcpkg/base...
code_c
code
1,665
null
#ifndef _OUTPUT_ #define _OUTPUT_ #define E_OUT_OK 0 #define E_OUT_DIM 1 #define E_OUT_FMT 3 #define E_OUT_WID 5 #define E_OUT_UPLO 7 #define OUT_NUM 1 #define OUT_TXT 2 #define OUT_NUM_TXT 3 #ifdef SNGLPR # define DBGEWR SBGEWR # define DBSPWR SBSPWR # define DBSYWR SBSYWR # define DBVWR ...
code_c
code
145
null
// Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #ifndef en_PARSERTRAINER_LANGUAGE_SPECIFIC_FUNCTIONS_H #define en_PARSERTRAINER_LANGUAGE_SPECIFIC_FUNCTIONS_H #include "Generic/parse/ParserTrainer/ParserTrainerLanguageSpecificFunctions.h" #include "Generic/common/Symbol.h" #include "English...
code_c
code
634
null
//============================================================================== // Includes //============================================================================== #include <celib/memory/allocator.h> #include <celib/api.h> #include <celib/containers/hash.h> #include <celib/id.h> #include <stdatomic.h> #inclu...
code_c
code
1,501
null
<reponame>c42f/gr /* * Prefix file for CodeWarrior on the Mac. * This is a workaround for the silly fact that * CodeWarrior doesn't support any project-wide * preprocessor settings directly. Sigh. */ #define MAC #define DROPUNIX
code_c
code
70
null
/** * @file Separator.h * @brief Visually split UI. * @author <NAME> * @date 15.5.21 */ #ifndef PF_IMGUI_ELEMENTS_SPLITTER_H #define PF_IMGUI_ELEMENTS_SPLITTER_H #include <pf_imgui/interface/Customizable.h> #include <pf_imgui/interface/Element.h> namespace pf::ui::ig { /** * @brief Visual separation of UI. *...
code_c
code
253
null
/* * Copyright (c) 2018 Samsung 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 a...
code_c
code
497
null
/* Copyright (c) 2020 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License. */ #ifndef STORAGE_TRANSACTION_TRANSACTIONMANAGER_H #define STORAGE_TRANSACTION_TRANSACTIONMANAGER_H #include <folly/executors/Async.h> #include <storage/transaction/ChainBaseProcessor.h> #include "cl...
code_c
code
1,465
null
<reponame>doyaGu/C0501Q_HWJL01 /* ******************************************************************************** * * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001 * R99 Version 3.3.0 * REL-4 Version 4.1.0 * *********************...
code_c
code
606
null
/* * recording_device.h * * This file is part of NEST. * * Copyright (C) 2004 The NEST Initiative * * NEST 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 * ...
code_c
code
7,040
null
/* * IRMAP -- inode reverse mapping. * * Helps us to map inode number (and device) back to path * so that we can restore inotify/fanotify-s. * * Scanning _is_ slow, so we limit it with hints, which are * heuristically known places where notifies are typically put. */ #include <stdbool.h> #include <fcntl.h> #in...
code_c
code
2,796
null
<reponame>artepic/Seq2SeqSharp #pragma once #include "General.h" #include "TensorRef.h" OPS_API int TS_Sum(TensorRef* result, TensorRef* src, int dimension); OPS_API int TS_Prod(TensorRef* result, TensorRef* src, int dimension); OPS_API int TS_Min(TensorRef* result, TensorRef* src, int dimension); OPS_API int TS_Max...
code_c
code
432
null
// // NSString+ContainerSize.h // // Created by <NAME> on 6/03/12. // // Based on the Stack Overflow answer: http://stackoverflow.com/a/1993376/187954 // #import <Foundation/Foundation.h> @interface NSString (Size) - (NSSize) sizeWithWidth:(float)width andFont:(NSFont *)font; @end
code_c
code
82
null
/* * Lowest Level MPI Algorithms * (C) 1999-2008,2013 <NAME> * 2006 <NAME> * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_MP_WORD_MULADD_H__ #define BOTAN_MP_WORD_MULADD_H__ #include <botan/mp_types.h> #include <botan/mul128.h> namespace Botan { #if (BOTAN_MP_WORD_BITS...
code_c
code
1,006
null
<filename>Breadcrumb/Breadcrumb/secp256k1/BCsecp256k1.h<gh_stars>10-100 // // BCsecp256k1.h // Breadcrumb // // Created by <NAME> on 2/11/15. // Copyright (c) 2015 Breadcrumb. // // Distributed under the MIT software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.p...
code_c
code
619
null
<reponame>Wings1986/StarClub-iOS // // MyDate.h // StarClub // // Created by MAYA on 4/10/12. // #import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> enum DATE_OPTION { DATE_FULL, DATE_DATE, DATE_TIME, DATE_ENG_DATE, DATE_ENG_MONTH, }; @interface MyDate : NSObject +(N...
code_c
code
144
null
#include <stdio.h> int main(){ //variables int horas, salario = 0, exc = 0; //input printf("Digite a quantidade de horas trabalhadas: "); scanf("%d",&horas); //process if (horas > 50){ exc = ((horas - 50) * 20); salario = (500 + exc); }else{ salario = (horas * 10)...
code_c
code
119
null
<filename>DE2Component_FLASH/Software/FinalFlashedDE2/ISR.c<gh_stars>0 /* * This file contains the ISR (Interrupt service routine) for the USB * component hardware interrupt. usb_isr is registered in main.c * * This file is from the DE2 demonstration project with a few exceptions. * The code has been modified in t...
code_c
code
1,956
null
/* * Copyright (c) <2021> Side Effects Software 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...
code_c
code
1,965
null
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
code_c
code
644
null
// // NoInputAccessoryView.h // MV-IM-App // // Created by 薛银 on 2017/5/2. // Copyright © 2017年 xueyin. All rights reserved. // WKWebView键盘工具栏消除 #import <Foundation/Foundation.h> #import <Foundation/Foundation.h> #import <WebKit/WebKit.h> #import <objc/runtime.h> @interface NoInputAccessoryView : NSObject - (voi...
code_c
code
110
null
<reponame>mentha/ttu /* ohmic: a fairly reliable hashmap library * Copyright (c) 2013 Cyphar * * 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 limi...
code_c
code
696
null
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This source is available for distribution and/or modification // only under the terms of the DOOM Source Code License as // publi...
code_c
code
10,409
null
/* * The MIT License * * Copyright (c) 1997-2019 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
1,161
null
<filename>324. Wiggle Sort II.h // // Created by Jin on 8/27/2021. // #ifndef LEETCODE_324_WIGGLE_SORT_II_H #define LEETCODE_324_WIGGLE_SORT_II_H #include <algorithm> #include <unordered_map> using namespace std; class Solution { public: void wiggleSort(vector<int>& nums) { vector<int> cp(nums); sort(cp.begin()...
code_c
code
139
null
#ifndef UtilAlgos_ParameterAdapter_h #define UtilAlgos_ParameterAdapter_h #include "FWCore/Framework/interface/ConsumesCollector.h" #include "FWCore/ParameterSet/interface/ParameterSetfwd.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" namespace reco { namespace modules { template <typename S> s...
code_c
code
694
null
<reponame>ShawnZhong/SplitFS<gh_stars>10-100 #ifndef __NITROX_CSR_H #define __NITROX_CSR_H #include <asm/byteorder.h> #include <linux/types.h> /* EMU clusters */ #define NR_CLUSTERS 4 #define AE_CORES_PER_CLUSTER 20 #define SE_CORES_PER_CLUSTER 16 /* BIST registers */ #define EMU_BIST_STATUSX(_i) (0x1402700 + ((_i)...
code_c
code
8,502
null
<gh_stars>10-100 /* Copyright (c) 2009 Atmel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this li...
code_c
code
9,562
null
#include "ref.h" arm_status ref_sqrt_q31(q31_t in, q31_t * pOut) { *pOut = (q31_t)(sqrtf((float32_t)in / 2147483648.0f) * 2147483648.0f); return ARM_MATH_SUCCESS; } arm_status ref_sqrt_q15(q15_t in, q15_t * pOut) { *pOut = (q15_t)(sqrtf((float32_t)in / 32768.0f) * 32768.0f); return ARM_MATH_SUCCESS; }
code_c
code
89
null
#ifndef ALBUM_H #define ALBUM_H #include <QWidget> #include <QBoxLayout> #include <QLabel> #include "croplabel.h" #include "opbutton.h" #include "pix.h"; extern QString blue; extern QString path; class Album:public QWidget { Q_OBJECT public: QString artist; QString album; int songsCount = 1; Pix...
code_c
code
1,332
null
#include <stdio.h> typedef int (*int2ptr)[2]; typedef int (*(*int2ptr_func)(void))[2]; static int (*foo(void))[2] { static int foo_arr[2] = {1, 2}; return &foo_arr; } int2ptr (*baz)(void) = foo; int2ptr_func bar = foo; int main(void) { int (*arr)[] = foo(); printf("array[0] = %d\n", (*arr)[0]); printf("a...
code_c
code
103
null
<filename>libs/src/encryption.h #include <iostream> #include <sstream> #pragma once #include "rsa.h" #include "osrng.h" #include "nbtheory.h" using namespace CryptoPP; CryptoPP::Integer pow_bin(CryptoPP::Integer x, CryptoPP::Integer e, CryptoPP::Integer mod) { Integer res = 1; while (e>0) { if (e.IsOdd()) res = ...
code_c
code
741
null
<filename>LambdaEngine/Include/Input/Win32/Win32InputCodeTable.h<gh_stars>10-100 #pragma once #ifdef LAMBDA_PLATFORM_WINDOWS #include "Input/API/InputCodes.h" #define NUM_KEY_CODES 512 namespace LambdaEngine { class Win32InputCodeTable { public: DECL_STATIC_CLASS(Win32InputCodeTable); /* * Initializes KeyC...
code_c
code
502
null
<reponame>Tikubonn/unico #include <unico.h> #include <stddef.h> int foldcase_unicos_manually_in (size_t index, size_t end, unicos *uniout, size_t *indexout){ if (0 <= end - index){ switch (get_unicos(index +0, uniout)){ case 0x41: { unico data[] = {0x61}; *indexout = index + 1; return sub_unicos_manually(data, sizeof(...
code_c
code
61,739
null
<reponame>XianlinGong/fabcoinsc-dev /* 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. ...
code_c
code
571
null
<gh_stars>0 /* Serval Distributed Numbering Architecture (DNA) Copyright (C) 2012 - 2016 Serval Project Inc. 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 yo...
code_c
code
2,426
null
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
code_c
code
1,348
null
#include <stdio.h> main() { int pent, arrondi ; float x ; x = 2.53 ; pent = x ; pdeci = x - pent ; if (pdeci >= 0.5) arrondi = pent + 1 ; else arrondi = pent ; } /*code de <NAME>, tous droits réservés/*
code_c
code
76
null
<gh_stars>10-100 //===- StmtVisitor.h - Visitor for Stmt subclasses --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------...
code_c
code
2,920
null
<filename>hardware/media/libomxil-bellagio/src/components/audio_effects/omx_audiomixer_component.h<gh_stars>1-10 /** src/components/audio_effects/omx_audiomixer_component.h OpenMAX audio_mixer control component. This component implements a mixer that mixes multiple audio PCM streams and produces a single output ...
code_c
code
1,150
null
<filename>Asteroid/include/player.h<gh_stars>0 //player.h typedef struct { float angle; float size; float life, x, y,dx,dy; float radius; int destroy; int vertices; int verticesX[4]; int verticesY[4]; } player; typedef struct{ float x1,y1,x2,y2,x3,y3; } coords; //creates a ship player *createPlayer(...
code_c
code
407
null
#pragma once #include <membrane/membrane.h> #include <membrane_ringbuffer/ringbuffer.h> #include <portaudio.h> #include <stdio.h> #include <string.h> #include "pa_helper.h" typedef struct _SinkState { int is_content_destroyed; PaStream *stream; MembraneRingBuffer *ringbuffer; UnifexPid demand_handler; // Whe...
code_c
code
124
null
<reponame>kurli/chromium-crosswalk // 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 UI_APP_LIST_COCOA_APPS_GRID_CONTROLLER_H_ #define UI_APP_LIST_COCOA_APPS_GRID_CONTROLLER_H_ #import <Cocoa/Coc...
code_c
code
1,223
null
<filename>smart-darkgdk/include/FTP.h #pragma once class FTP { public: FTP(void); ~FTP(void); //setters static void connect(char* UrlString, char* UserString, char* PasswordString); static void disconnect(); static void terminate(); static void setDir(char* DirectoryString); static void putFile(...
code_c
code
190
null
<reponame>dcinzona/JScrollingRow /* * JScrollingRow * Written by: <NAME>, 2010. * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for a...
code_c
code
775
null
// Resource script for Python core DLL. // Currently only holds version information. // #include "winver.h" #define PYTHON_COMPANY "Python Software Foundation" #define PYTHON_COPYRIGHT "Copyright \xA9 2001-2020 Python Software Foundation. Copyright \xA9 2000 BeOpen.com. Copyright \xA9 1995-2001 CNRI. Copyright \xA9 ...
code_c
code
277
null
#include<stdio.h> #define DOT ; #define print(a) printf("%s\n",a) int main(int argc, char const *argv[]) { int n DOT print ("HELLO") DOT return 0 DOT }
code_c
code
45
null
#ifndef URL_H #define URL_H #include <esp_system.h> #define MAX_URL_LENGTH 255 /** * @brief Add url to blacklist * * @param URL url structure with url string to be added * * @return * - ESP_OK Success * - ESP_FAIL unable to get info from flash */ esp_err_t add_to_blacklist(const char* hostname...
code_c
code
330
null
<gh_stars>10-100 /* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2006, 07 <NAME> (<EMAIL>) */ #ifndef __ASM_COBALT_CPU_FEATURE_OVERRIDES_H #define __ASM_COBALT_CPU_FEATURE...
code_c
code
405
null
// // RCDTextFieldValidate.h // RongCloud // 字段验证类 // Created by Liv on 14/11/7. // Copyright (c) 2014年 RongCloud. All rights reserved. // #import <Foundation/Foundation.h> @interface RCDTextFieldValidate : NSObject //验证手机号码 + (BOOL) validateMobile:(NSString *)mobile; //验证电子邮箱 + (BOOL) validateEmail:(NSString ...
code_c
code
112
null
//--------------------------------------------------------------------------- // Generic header for all classes. // Based on the Harold Howe article, speeds up precompiled headers. /* Every source file only includes (case sensitive): #include "Generic.h" #pragma hdrstop (any STL headers below #pragma h...
code_c
code
640
null
#pragma once #include <exceptxx/Util.h> #include <sstream> namespace exceptxx { template<class T> struct ThrowHelper { using Error = typename T::Error; ThrowHelper(Error error, const char* func, size_t line) : m_error(error), m_func(func), m_line(line) { } EXCEPTXX...
code_c
code
209
null
<reponame>tuxafgmur/OLD_Dhollmen_Kernel /* * SuperH Pin Function Controller Support * * Copyright (c) 2008 <NAME> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #ifndef __SH_PFC_H #de...
code_c
code
730
null
/******************************************************************************* * Copyright (C) 2016, Huada Semiconductor Co.,Ltd All rights reserved. * * This software is owned and published by: * Huada Semiconductor Co.,Ltd ("HDSC"). * * BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND ...
code_c
code
4,282
null
// // PBModel.h // CorePhotoBroswerVC // // Created by 成林 on 15/5/4. // Copyright (c) 2015年 冯成林. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import "PhotoBroswerType.h" @interface PhotoModel : NSObject /** mid,保存图片缓存唯一标识,必须传 */ @property (nonatomic,assign) NSUInteger mid; ...
code_c
code
285
null
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" static int8_t x4 = INT8_MIN; static volatile int64_t x12 = INT64_MIN; int32_t t3 = -65767891; int64_t x17 = -1...
code_c
code
14,932
null
<reponame>Dbevan/SunderingShadows #include <std.h> inherit ROOM; void create() { ::create(); set_property("light",1); set_property("indoors",1); set_terrain(STONE_BUILDING); set_travel(STAIRWAY); set_short("Grand stairs"); set_long( @KAYLA %^YELLOW%^Grand Stairs%^RESET%^ The Grand Stair sw...
code_c
code
203
null
/* AFE Firmware for smart home devices, Website: https://afe.smartnydom.pl/ */ #ifndef _ESP_HTTP_COMMAND_Structure_h #define _ESP_HTTP_COMMAND_Structure_h #include "arduino.h" struct HTTPCOMMAND { char device[16]; char name[16]; char command[32]; char source[9]; }; #endif
code_c
code
81
null
// // MISimpleVideoFilterViewController.h // MetalImage // // Created by zsr on 2018/6/17. // Copyright © 2018年 beauty Inc. All rights reserved. // #import <UIKit/UIKit.h> @interface MISimpleVideoFilterViewController : UIViewController @end
code_c
code
70
null
/** * @file hal_timer.c * @brief * * Copyright (c) 2021 Bouffalolab team * * 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 th...
code_c
code
2,520
null
<filename>IA20-CommonLib/src/ia20/commonlib/uring/uring.h /* * File: uring.h * * Copyright (C) 2020, <NAME>, <NAME> * */ #ifndef _IA20_URing_H_ #define _IA20_URing_H_ #include "URingException.h" #include "RingHandler.h" #include "EventHandler.h" #include "BufferSet.h" #include "IO/CloseHandler.h" #include "IO/F...
code_c
code
138
null
// <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: f_convertAddress2G.c #include "headers.h" char* convertAddress2G(char* address) { int len_googAdd = strlen(address)+1; char* googAdd = calloc(len_googAdd, sizeof(char)); strcpy(googAdd, address); googAdd[len_googAdd]='\...
code_c
code
136
null
<gh_stars>0 #include <stdio.h> #include <stdlib.h> #include <math.h> #include "../include/arralloc.h" #include "../include/pgmio.h" #include "../include/argtable3.h" #include <mpi.h> #include <stdbool.h> #include <assert.h> #include <string.h> #define MAXITER 1500 #define PRINTFREQ 200 #define DELTAFREQ 50 //#defi...
code_c
code
7,005
null
char *LoadFileRec_Def(char *file, char *defval); char *LoadFileRec(char *file); void SaveFileRec(char *file, char *text); // c_ char *c_LoadFileRec(char *file); // _x void SaveFileRec_cx(char *file, char *text); void SaveFileRec_xc(char *file, char *text); void SaveFileRec_xx(char *file, char *text);
code_c
code
86
null
/* * (C) Copyright 2016-2021 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ /** * ds_mgmt: Internal Declarations * * This file contains all declarations that are only used by ds_mgmts. * All external variables and functions must have a "ds_mgmt_" prefix. */ #ifndef __SRV_MGMT_INTERNAL_...
code_c
code
1,534
null
/* * Unit SGP_Time * Author: Dr <NAME> * Original Version: 1992 Jun 02 * Current Revision: 2000 Jan 22 * Modified for Y2K: 1999 Mar 07 * Version: 2.05 * Copyright: 1992-1999, All Rights Reserved * Version 1.50 added Y2K support. Due to limitations in the current * format of the NORA...
code_c
code
3,297
null
#include "library_init.h" #include <exec/memory.h> #include <exec/resident.h> #include <exec/initializers.h> #include "wrap_mpega.h" #ifdef BUILD_POWERUP #include <proto/ppc.h> #include "support_pup.h" #elif defined(BUILD_WARPUP) #include <powerpc/powerpc.h> #include <proto/powerpc.h> #include "support.h" #else #inc...
code_c
code
8,364
null
<gh_stars>1-10 /**************************************************************************** Copyright (c) 2014-2019 <NAME> fresh-engine <EMAIL> ****************************************************************************/ #ifndef HELPERS_UTILITY_H_ #define HELPERS_UTILITY_H_ #include <string> #include "math/Vec2.h" #...
code_c
code
919
null
#include <getopt.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <wayland-client-protocol.h> #include <wayland-client.h> #include <wlr/util/log.h> #include "idle-client-protocol.h" static struct org_kde_kwin_idle *idle_manager = NULL; static struct wl_sea...
code_c
code
1,381
null
<reponame>sudarshannagesh90/OptimizationDeepLearningImageProcessing /* This file is part of Mitsuba, a physically based rendering system. Copyright (c) 2007-2012 by <NAME> and others. Mitsuba is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License V...
code_c
code
1,953
null
<reponame>fjmolinas/openwsn-fw<gh_stars>1-10 #ifndef __UEXPIRATION_H #define __UEXPIRATION_H /** \addtogroup AppUdp \{ \addtogroup uexpiration \{ */ #include "opentimers.h" #include "openudp.h" //=========================== define ========================================== //===========================...
code_c
code
293
null
<gh_stars>1-10 // // BeautyCollectionView.h // ARGEARSample // // Created by Jihye on 24/09/2019. // Copyright © 2019 Seerslab. All rights reserved. // #import <UIKit/UIKit.h> #import "BeautyCollectionViewCell.h" NS_ASSUME_NONNULL_BEGIN @interface BeautyCollectionView : UICollectionView<UICollectionViewDelegate,...
code_c
code
152
null
//Name: <NAME> //GitHub username : akaldhafer //Email : <EMAIL> //System title : AK COLLEGE HOSTEL MANAGEMENT SYSTEM #include<stdio.h> /*header file for simple input and output*/ #include <stdlib.h> /* header file for using files*/ #include<string.h> /*header file for using string*/ #include<math.h> /*header file for...
code_c
code
6,674
null
<reponame>zeroam/TIL #pragma once #include <string> namespace num6 { void program(); struct donator { std::string name; double donation; }; }
code_c
code
43
null
/*++ (c) 2012 by Microsoft Corp. All Rights Reserved. kuri.h Description: Kernel Tempate Library (KTL): KUri URI wrapper classes with built-in parser History: raymcc 7-Mar-2012 Initial version (no parser). raymcc 8-May-2012 Revised with f...
code_c
code
6,273
null
<gh_stars>0 // // MPTweak.h // RNMixpanel // // Created by <NAME> on 02/11/2018. // Copyright © 2018 <NAME>. All rights reserved. // NS_ASSUME_NONNULL_BEGIN @protocol MPTweakObserver; /** @abstract Represents a possible value of a tweak. @discussion Should be able to be persisted in user defaults. For minimum...
code_c
code
697
null
<filename>SW/M051 PWM/encoder.h #define ENCODER_PIN_A P02 #define ENCODER_PIN_B P03 #define ENCODER_DEBOUNCE_DELAY 200 typedef void (* ENCODER_Callback_Type)(signed char cDirection); extern void ENCODER_Init(ENCODER_Callback_Type CallBackFunc); extern void ENCODER_Callback(signed char cDirection);
code_c
code
91
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 condition...
code_c
code
1,390
null
/***************************************************************************//** * \file cy_ble_bms.c * \version 1.0 * * \brief * This file contains the source code for the Bond Management Service * of the BLE Component. * ******************************************************************************** * \copyright *...
code_c
code
16,804
null
// // Created by alirezafour on 6/2/17. // #ifndef SAMPLESTESTCODE_AFSTRING_H #define SAMPLESTESTCODE_AFSTRING_H #include <string> #include <boost/algorithm/string.hpp> #include <vector> //starting namespace block namespace af { class AFString { std::string mString; public: //constructors ...
code_c
code
1,714
null
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // /*============================================================ ** ** Source: childprocess.c ** ** Purpose: Test to ensure ExitThread returns the right ** value ...
code_c
code
315
null
/* * Copyright 2017 <NAME> * * 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 in wr...
code_c
code
288
null
<reponame>elielhojman/tensorflow<gh_stars>1-10 /* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICE...
code_c
code
1,803
null
<gh_stars>0 #ifndef __STACK_STRUCT__ #define __STACK_STRUCT__ #include <stdbool.h> #define STACK_MINIMAL_NODE 0 #define STACK_MAXIMAL_NODE 10 #ifdef __STACK_A__ /* caller handle definition */ typedef struct _STACK_H_ { /* top of the stack */ int top; /* size of the stack */ int cap; /* sta...
code_c
code
366
null