text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
<filename>src/state.h #ifndef MTSTATES_STATE_H #define MTSTATES_STATE_H #include "util.h" int mtstates_state_init_module(lua_State* L, int module); #endif /* MTSTATES_STATE_H */
code_c
code
51
null
// // Types.h // Camera // // Created by Sid on 31/08/13. // Copyright (c) 2013 whackylabs. All rights reserved. // #ifndef Camera_Types_h #define Camera_Types_h #include "std_incl.h" #include "Ganit.h" /******************************************************************************* MARK: Framebuffer ***********...
code_c
code
964
null
<reponame>dahan1999/search-engine #define SEARCHD_DEFAULT_PORT 8921 #define SEARCHD_DEFAULT_URI "/search" //#define DEBUG_PRINT_HTTP_HEAD //#define DEBUG_APPEND_RESULTS #define SEARCHD_HIGHLIGHT_OPEN "<em class=\"hl\">" #define SEARCHD_HIGHLIGHT_CLOSE "</em>" #define SEARCHD_DEFAULT_CACHE_MB 32 /* 32 MB */ #defin...
code_c
code
192
null
<filename>tasmota/Tasmota-8.1.0/lib/IRremoteESP8266-2.7.1/src/IRac.h<gh_stars>0 #ifndef IRAC_H_ #define IRAC_H_ // Copyright 2019 <NAME> #ifndef UNIT_TEST #include <Arduino.h> #endif #include "IRremoteESP8266.h" #include "ir_Amcor.h" #include "ir_Argo.h" #include "ir_Coolix.h" #include "ir_Daikin.h" #include "ir_Fuji...
code_c
code
4,581
null
/* Miranda IM: the free IM client for Microsoft* Windows* Copyright 2000-2008 Miranda ICQ/IM project, all portions of this codebase are copyrighted to the people listed in contributors.txt. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as pu...
code_c
code
1,544
null
@import Foundation; #ifndef CStringsFunctions_h #define CStringsFunctions_h /** You must free() return value */ char *removeChars(const char *theChars, const char *theStr); NSString *formatJSON(NSString *JSONString); #endif
code_c
code
64
null
<gh_stars>0 // pxCore CopyRight 2005-2007 <NAME> // Portable Framebuffer and Windowing Library // pxWindowNative.h #ifndef PX_WINDOW_NATIVE_H #define PX_WINDOW_NATIVE_H #include <string> #include <algorithm> #include <vector> class pxWindowNative { public: pxWindowNative(): mWindow(NULL),mTimer(NULL)...
code_c
code
2,048
null
<reponame>imanfredi/TP2-SO<gh_stars>0 // This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include <commands.h> #include <selfLib.h> #include <stringFunctions.h> #include <test_util.h> int endless_loop(int argc, char...
code_c
code
965
null
/** * @file * @brief include file for standard system include files, * or project specific include files that are used frequently, but * are changed infrequently */ /****************************************************************************** * * * Copyright (c) 2013, AllSeen Alliance. All rights reserved. ...
code_c
code
387
null
<reponame>martydill/x86os int main(int argc, char* argv[]) { if (argc != 2) { write(1, "Usage: cat <filename>\n", 22); return 1; } int fd = open(argv[1], 0); if (fd == -1) { write(1, "Could not open file\n", 20); return 1; } while (1) { char buf[256]; int nbytes = read(fd, buf, si...
code_c
code
116
null
<reponame>mghgroup/Glide-Browser // Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_AUTH_CONTEXT_H_ #define CHROME_BROWSER_CHROMEOS_ARC_AUTH_ARC_AUTH_CONTEXT_H_...
code_c
code
704
null
<gh_stars>1-10 struct transaction { char type; int ind; }; struct new_order_entry { Orders o; unsigned int num_items; Lineitem* items; new_order_entry() {} void generate(int idx, maps& m) { int customer_id = random_hash('c', idx, 0, CUSTOMER_NUM) + 1; num_items = random_hash('n', idx, 1, 8); o.orderkey =...
code_c
code
746
null
#define LOG_TAG "ddp_path" #include "platform/mt_irq.h" #include "platform/mt_irq.h" #include "platform/disp_drv_platform.h" #include "platform/ddp_reg.h" #include "platform/ddp_path.h" #include "platform/ddp_info.h" #include "platform/ddp_log.h" typedef struct module_map_s { DISP_MODULE_ENUM module; int bit; } m...
code_c
code
8,335
null
#include <SDL.h> class Line { public: // Needs a constructor for passing the renderer. Line(SDL_Renderer*); /* Number of curves to repeat, the length of each curve, * position x, position y, and rotation angle. * */ void drawCosLine(const int, const int, const int, const int, const int)...
code_c
code
149
null
<filename>Rendering/OpenGL2/vtkOpenGLInstanceCulling.h /*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLInstanceCulling.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copy...
code_c
code
1,525
null
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_UTIL_H_ #define CHROME_BROWSER_EXTENSIONS_API_STORAGE_SETTINGS_SYNC_UTIL_H_ #include "com...
code_c
code
532
null
/* * linux/fs/ext2/symlink.c * * Only fast symlinks left here - the rest is done by generic code. AV, 1999 * * Copyright (C) 1992, 1993, 1994, 1995 * <NAME> (<EMAIL>) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/fs/minix/symlink.c * * Cop...
code_c
code
363
null
<reponame>Kirishikesan/haiku<filename>src/add-ons/kernel/bus_managers/ps2/ps2_alps.h /* * Copyright 2011, Haiku, Inc. * Distributed under the terms of the MIT License. * * Authors: * <NAME> (<EMAIL>) */ #ifndef ALPS_H #define ALPS_H #include <KernelExport.h> #include <touchpad_settings.h> #include "movement_m...
code_c
code
300
null
<gh_stars>1-10 /** Author and Copyright 2018 <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 applicab...
code_c
code
1,171
null
// // WBDetailModuleInterface.h // Weiben // // Created by <NAME> on 12/9/14. // Copyright (c) 2014 wenguang. All rights reserved. // @protocol WBDetailModuleInterface <NSObject> @end
code_c
code
54
null
#ifndef CondFormats_DataRecord_RPCInverseTwinMuxLinkMapRcd_h #define CondFormats_DataRecord_RPCInverseTwinMuxLinkMapRcd_h #include "boost/mpl/vector.hpp" #include "FWCore/Framework/interface/DependentRecordImplementation.h" #include "CondFormats/DataRecord/interface/RPCTwinMuxLinkMapRcd.h" class RPCInverseTwinMuxLin...
code_c
code
168
null
<reponame>maliCaspeco/AsyncDisplayKit // // ASResponderChainEnumerator.h // AsyncDisplayKit // // Created by <NAME> on 2/13/17. // Copyright © 2017 Facebook. All rights reserved. // #import <UIKit/UIResponder.h> #import <AsyncDisplayKit/ASBaseDefines.h> NS_ASSUME_NONNULL_BEGIN AS_SUBCLASSING_RESTRICTED @interfac...
code_c
code
165
null
<filename>src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/r92c_init.c /* $OpenBSD: if_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp $ */ /*- * Copyright (c) 2010 <NAME> <<EMAIL>> * Copyright (c) 2014 <NAME> <<EMAIL>> * Copyright (c) 2015-2016 <NAME> <<EMAIL>> * * Permission to use, copy, mo...
code_c
code
2,696
null
<filename>admin/activec/conui/mdiuisim.h /*--------------------------------------------------------------------------* * * Microsoft Windows * Copyright (C) Microsoft Corporation, 1992 - 1999 * * File: mdiuisim.h * * Contents: Interface file for CMDIMenuDecoration * * History: 17-Nov-97...
code_c
code
800
null
#include "mppl_compiler.h" /*! @name Indent size for cross reference table */ /* @{ */ /*! Width of the Name column */ #define INDENT_SIZE_NAME 20 /*! Width of the Type column */ #define INDENT_SIZE_TYPE 45 /*! Width of the Def column */ #define INDENT_SIZE_DEF 4 /* @} */ /*! search the name pointed by n...
code_c
code
5,908
null
<gh_stars>1-10 /* Copyright 2018 Urban Airship and Contributors */ #import <Foundation/Foundation.h> #import "UAApplicationMetrics.h" NS_ASSUME_NONNULL_BEGIN /* * SDK-private extensions to Application Metrics */ @interface UAApplicationMetrics () ///----------------------------------------------------------------...
code_c
code
310
null
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "3DCartesianPlot.generated.h" UCLASS() class PRESENTATIONFINAL_API A3DCartesianPlot : public AActor { GENERATED_BODY() public: // Sets defa...
code_c
code
456
null
// Author: <NAME> // Date: 10/2/2020 #include <stdlib.h> #include <limits.h> #include <stdio.h> #define BILLION 1000000000 // process classes enum procClass { user, realTime }; // process states enum procState { run, ready, blocked, terminated }; // time struct struct mtime { int sec; long int ns; }; // holds ...
code_c
code
390
null
<gh_stars>1-10 /**********************************************************************/ /* ____ ____ */ /* / /\/ / */ /* /___/ \ / */ /* \ \ \/...
code_c
code
21,410
null
<gh_stars>1-10 /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/billingconductor/BillingConductor_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/b...
code_c
code
1,562
null
/* Переставить элементы в массиве в обратном порядке с использованием указателей. Способ 2. */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <locale.h> // установка русской локали (нужна для ОС Windows) #define SIZE 80 void printText(char array[], int size) { int i; for (i = 0; i <...
code_c
code
249
null
<gh_stars>100-1000 // // HTMLKitExceptions.h // HTMLKit // // Created by Iska on 17/03/15. // Copyright (c) 2015 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> extern NSString * const HTMLKitHierarchyRequestError; extern NSString * const HTMLKitNotFoundError; extern NSString * const HTMLKi...
code_c
code
183
null
// // SetRenderParamsViewController.h // TRTC-API-Example-OC // // Created by bluedang on 2021/4/20. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface SetRenderParamsViewController : UIViewController @end NS_ASSUME_NONNULL_END
code_c
code
70
null
/* * Copyright (C) 2011 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 required by app...
code_c
code
7,784
null
<reponame>Trifunik/zephyr<filename>arch/x86/core/memmap.c<gh_stars>1000+ /* * Copyright (c) 2019 Intel Corporation * SPDX-License-Identifier: Apache-2.0 */ #include <kernel.h> #include <string.h> #include <arch/x86/memmap.h> #include <linker/linker-defs.h> #include <kernel_arch_data.h> struct x86_memmap_exclusion ...
code_c
code
343
null
<filename>api/audio_codecs/audio_decoder_factory_template.h /* * Copyright (c) 2017 The WebRTC 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 right...
code_c
code
1,628
null
#pragma once #include <iostream> #include <vector> #include "../include/glm/glm.hpp" #include "../include/glm/gtc/matrix_transform.hpp" #include <functional> #include <string> #include <sstream> #include "singleton.h" #include "factory.h" #include "entity.h" struct Player_data { public: bool active = false; b...
code_c
code
1,662
null
/* Include Guard */ #ifndef SRC_TOOLS_IMG2VID_KERNELS_H #define SRC_TOOLS_IMG2VID_KERNELS_H /** * Defines */ /* Extern "C" Guard */ #ifdef __cplusplus extern "C" { #endif /** * Includes */ #include <libavutil/avutil.h> #include "main.h" /* Function Prototypes */ extern int i2v_cuda_filter(UNIVERSE* u,...
code_c
code
127
null
<filename>deps/webrtc/include/third_party/WebKit/Source/core/frame/LocalFrameView.h /* Copyright (C) 1997 <NAME> (<EMAIL>) (C) 1998 <NAME> (<EMAIL>) (C) 1998, 1999 <NAME> (<EMAIL>) (C) 1999 <NAME> (<EMAIL>) (C) 1999 <NAME> (<EMAIL>) Copyright (C) 2004, 2005, 200...
code_c
code
14,376
null
//############################################################################# // // FILE: spi_ex3_external_loopback_fifo_interrupt.c // // TITLE: SPI Digital Loopback with FIFO Interrupts // //! \addtogroup driver_example_list //! <h1>SPI Digital External Loopback with FIFO Interrupts</h1> //! //! This program use...
code_c
code
2,909
null
#ifndef __PARSER_GDS_H__ #define __PARSER_GDS_H__ #include <limbo/parsers/gdsii/gdsdb/GdsIO.h> #include <limbo/parsers/gdsii/gdsdb/GdsObjectHelpers.h> #include "global/global.h" #include "db/Layout.h" #include "db/TechDB.h" #include "util/Polygon2Rect.h" #include <algorithm> #include <string> #include <vector> #includ...
code_c
code
1,119
null
/*++ Copyright (c) 1992-1996 Microsoft Corporation Module Name: uniconv.c Abstract: Routine to convert UNICODE to ASCII. Environment: User Mode - Win32 Revision History: 10-May-1996 DonRyan Removed banner from Technology Dynamics, Inc. --*/ //------------------...
code_c
code
1,293
null
<filename>seqList/LinearList.h // // Created by <EMAIL>(抖音: cyberdash_yuan) on 2020/7/14. // #ifndef CYBER_DASH_YUAN_LINEAR_LIST_H #define CYBER_DASH_YUAN_LINEAR_LIST_H template <class T> class LinearList { public: virtual int Size() const = 0; virtual int Length() const = 0; virtual int Search(T& x) const = 0...
code_c
code
231
null
#include "enums.h" #ifndef STRUCTS_H #define STRUCTS_H typedef struct Vector{ int x; int y; } Vector; typedef struct Sprite{ double frame; double angle; double temp_angle; int scale; SDL_Texture *image; SDL_Rect *rect; double w, h; void...
code_c
code
191
null
<reponame>duanguoxue/aerospike-client-c<gh_stars>0 /* * Copyright 2008-2019 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more contributor * license agreements. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with...
code_c
code
2,040
null
/******************************************************************************* * DISCLAIMER * This software is supplied by Renesas Electronics Corporation and is only * intended for use with Renesas products. No other uses are authorized. This * software is owned by Renesas Electronics Corporation and is protecte...
code_c
code
1,314
null
/* This PGEX was made possible by the following people: -Testers My Girlfriend (Thx for letting me borrow your time) Dragoneye Javid KrossX MaGetzUb Tutas Zleapingbear Huhlig Bispoo Lett1 Thx for KrossX for giving me a link to his original work, which helped solve a few problems */ #include "olcPixelGameEngine.h" #in...
code_c
code
10,409
null
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
code_c
code
188
null
<gh_stars>10-100 // local function. static int x; void bar(void) { } // can the compiler remove either write to <x>? // anything else? void foo(int *p) { x = 1; bar(); x = 2; return; }
code_c
code
57
null
<reponame>GavWood/tutorials //////////////////////////////////////////////////////////////////////////////// // SbFrustum.h // Include guard #pragma once #include "BtTypes.h" #include "MtVector3.h" #include "MtMatrix4.h" #include "BtArray.h" #include "RsCamera.h" #include "MtVector3.h" #include "RsMaterial.h" // Clas...
code_c
code
188
null
<reponame>ghsecuritylab/DIR600B2<filename>dir600b_v2.03/kernels/rt305x/fs/sysv/namei.c /* * linux/fs/sysv/namei.c * * minix/namei.c * Copyright (C) 1991, 1992 <NAME> * * coh/namei.c * Copyright (C) 1993 <NAME>, <NAME> * * sysv/namei.c * Copyright (C) 1993 <NAME> * Copyright (C) 1997, 1998 <NAME> ...
code_c
code
1,836
null
<gh_stars>0 // // STHTMLImageSubContent.h // DTCoreTextDemo // // Created by 梁尚嘉 on 16/4/11. // Copyright © 2016年 ST. All rights reserved. // #import "STHTMLImageContent.h" @interface STHTMLImageSubContent : STHTMLImageContent #pragma mark - super_overwrite /** * 构造器 */ + (instancetype)imageContentWithAttribu...
code_c
code
102
null
/* Emulate getpagesize on systems that lack it. */ #ifndef HAVE_GETPAGESIZE #ifdef VMS #define getpagesize() 512 #endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef _SC_PAGESIZE #define getpagesize() sysconf(_SC_PAGESIZE) #else #include <sys/param.h> #ifdef EXEC_PAGESIZE #define getpagesize() EXEC_PAGE...
code_c
code
178
null
<reponame>mihai-constantin/ACS<filename>APP/Laborator/lab03/matrix_multiplication.c /****************************************************************************** * FILE: omp_mm.c * DESCRIPTION: * OpenMp Example - Matrix Multiply - C Version * Demonstrates a matrix multiply using OpenMP. Threads share row iterat...
code_c
code
809
null
<reponame>rizart/oidc-agent #include "tc_codeStateFromURI.h" #include "utils/oidc_error.h" #include "utils/uriUtils.h" START_TEST(test_NULL) { struct codeState codeState = codeStateFromURI(NULL); ck_assert_int_eq(oidc_errno, OIDC_EARGNULLFUNC); ck_assert_ptr_eq(codeState.code, NULL); ck_assert_ptr_eq(codeStat...
code_c
code
727
null
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include <vespa/document/bucket/bucket.h> namespace document::test { // Helper function used by unit tests Bucket makeDocumentBucket(BucketId bucketId); }
code_c
code
79
null
<reponame>Unixeno/Tincl // // Created by unixeno on 2018/9/27. // #ifndef C_IO_HANDLER_H #define C_IO_HANDLER_H #include <stdio.h> #include <stdint.h> typedef struct { wchar_t ch; uint32_t line; uint32_t column; char *filename; }CharStruct; void io_handler_init(); void io_handler_open(char* filename...
code_c
code
145
null
<reponame>spcl/GMS<filename>testing/clique_counting/conversion_tests.h #ifndef ABSTRACTIONOPTIMIZING_TESTS_MINEBENCH_CLIQUECOUNTING_CONVERSION_H #define ABSTRACTIONOPTIMIZING_TESTS_MINEBENCH_CLIQUECOUNTING_CONVERSION_H #include <string> #include "includes.h" typedef EdgePair<NodeId, NodeId> Edge; typedef pvector<Edg...
code_c
code
1,184
null
// Copyright 2016 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 CONTENT_RENDER_LAYOUT_TEST_DEPENDENCIES_H_ #define CONTENT_RENDER_LAYOUT_TEST_DEPENDENCIES_H_ #include <stdint.h> #include <memory> #include "ba...
code_c
code
511
null
<reponame>zack-braun/4607_NS // -*- c++ -*- #include "ns3/wifi-module.h" #include "ns3/propagation-module.h"
code_c
code
31
null
<filename>src/modules/engine/stat.c /* * stat.c -- source file for engine statistics * * Authored by Karl "p0lyh3dron" Kreuze on April 16, 2022. * * This file is part of the Chik engine. * * This file defines the routines for collecting and displaying * engine statistics. */ #include "st...
code_c
code
581
null
/* * Copyright (c) 2015, <NAME> * Copyright (c) 2015, Red Hat, Inc. * * This source code is released for free distribution under the terms of the * GNU General Public License version 2 or (at your option) any later version. * * This module contains functions for xpath meta parser. */ #include "general.h" /*...
code_c
code
1,341
null
<gh_stars>1-10 /* * Copyright (C) 2019-2020 Alibaba Group Holding Limited */ #include <dma_test.h> int test_dma_channelAllocFree(char *args) { csi_dma_ch_t ch_hd; csi_error_t ret_sta; test_dma_args_t td; int ret; uint32_t get_data[2]; ret = args_parsing(args, get_data, 2); TEST_CASE_ASS...
code_c
code
381
null
<reponame>surav6174/Code-With-C<filename>Computer Lab/Lab 3 Source Code/Program11.c /*This example shows the concept of defining search set to read string.*/ #include <stdio.h> #include <conio.h> #include <stdlib.h> int main() { char str[70]; system("cls"); printf("Enter the string: "); scanf("%[a-z0-9...
code_c
code
112
null
/** * Basic header/include file for TransitionRequest.cpp. * * @author GabuEx, dawnmew * @since 1.0 * * Licensed under the MIT License. * * 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 "So...
code_c
code
846
null
/*Program : No4.c * Deskripsi : Romawi ke Desimal * Nama : <NAME> * tanggal/ versi : 24 Januari 2020 */ #include<stdio.h> int Konversi(char); int main(){ int i,next,now,len,hasil=0; char romawi[255]; scanf("%s",romawi); for(len=0;romawi[len];len++); for(i=0;romawi[i];i++){ now=Konversi(romawi[i]); if(romaw...
code_c
code
196
null
/** * MIT License * Copyright (c) 2019 <NAME> <<EMAIL>> * * GitHub repository - https://github.com/griby/ray-tracing-series * * A ray tracer implementation based on the Ray Tracing in One Weekend Book Series by <NAME> - https://raytracing.github.io/ */ #pragma once namespace rts // for ray tracing series { ...
code_c
code
170
null
#include <stdio.h> #include "mex.h" #include <windows.h> #include <winbase.h> #include "ioPort.c" #define pAddr prhs[0] #define pData prhs[1] /* ppWriteStay(IO_ADDR, Value) is used like ppWrite. This function will not set the parallel port value to 0 after 10 ms. It has to be done by the user itself. If y...
code_c
code
323
null
/***************************************************************************** * Copyright (c) 2016 The University of Tokyo * This software is released under the MIT License, see LICENSE.txt *****************************************************************************/ #ifndef INC_HECMW_COUPLE_INFO #define INC_HECM...
code_c
code
735
null
<gh_stars>0 #include <u.h> #include <libc.h> #include <fcall.h> /* * Rather than reading /adm/users, which is a lot of work for * a toy program, we assume all groups have the form * NNN:user:user: * meaning that each user is the leader of his own group. */ enum { OPERM = 0x3, /* mask of all permission types in...
code_c
code
4,589
null
<filename>rai/Optim/retired/kOrderMarkov.h /* ------------------------------------------------------------------ Copyright (c) 2019 <NAME> email: <EMAIL> This code is distributed under the MIT License. Please see <root-path>/LICENSE for details. ----------------------------------------------------...
code_c
code
802
null
<filename>src/Feature/RequestFeature.h<gh_stars>1-10 #ifndef REQUEST_FEATURE_H #define REQUEST_FEATURE_H #include "Interfaces/FeatureBase.h" namespace rank { class RequestFeature : public FeatureBase { public: OBJECT_CLASS(RequestFeature) RequestFeature(); ~RequestFeature(); bool Initialize(...
code_c
code
367
null
<filename>iPhoneOS12.4.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKError.h<gh_stars>100-1000 // // SKError.h // StoreKit // // Copyright 2009 Apple, Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <StoreKit/StoreKitDefines.h> NS_ASSUME_NONNULL_BEGIN SK_EXTERN NSString * const...
code_c
code
690
null
// Copyright 2019 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 THIRD_PARTY_BLINK_RENDERER_MODULES_MANIFEST_MANIFEST_FETCHER_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_MANIFEST_MANIFEST_FETCHER_H_ #include ...
code_c
code
728
null
<filename>src/math/src/windows.c /* * Copyright (c) 2007 - 2022 <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 * t...
code_c
code
3,820
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" volatile int64_t x1 = INT64_MIN; int32_t x4 = -1; int64_t x6 = 1LL; volatile int32_t t1 = 708; volatile uint32...
code_c
code
15,193
null
/* Copyright (C) 1991,1992,1994-1997,2002,2005 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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 ...
code_c
code
585
null
// // AppController.h // OdessaMacGUIApp // // Created by <NAME> on 8/28/12. // Copyright (c) 2012 Authentically Digital LLC. All rights reserved. // #import "Breadcrumbs/BreadcrumbsViewController.h" #import "CocoaLumberjack/DDLog.h" #import "CocoaLumberjack/MyCustomLogFormatter.h" #import "CocoaLumberjack/DDTTYL...
code_c
code
1,000
null
<reponame>NickYJC/yjctestgihub // // CacheItem.h // TeaLeaves // // Created by YangJingcai on 15/12/10. // Copyright © 2015年 walter. All rights reserved. // #import <Foundation/Foundation.h> @interface CacheItem : NSObject //请求的url @property (copy, nonatomic) NSString * url; //保存的缓存数据 @property (retain, nonatomi...
code_c
code
113
null
<gh_stars>100-1000 // Copyright 2012 <NAME>. Released under the MIT license. // @wgtcc: passed #include "test.h" static void t1() { int a[2][3]; int *p = a; *p = 1; expect(1, *p); } static void t2() { int a[2][3]; int *p = a + 1; *p = 1; int *q = a; *p = 32; expect(32, *(q + 3...
code_c
code
387
null
/* * Name: mx_scan_quick.h * * Purpose: Header file for MX_QUICK_SCAN scan records. * * Author: <NAME> * *------------------------------------------------------------------------- * * Copyright 1999-2001, 2006-2007, 2010, 2015-2016 * Illinois Institute of Technology * * See the file "LICENSE" for inf...
code_c
code
911
null
/*========================================================================= Program: VMTK Module: $RCSfile: vtkvmtkFEAssembler.h,v $ Language: C++ Date: $Date: 2006/04/06 16:46:44 $ Version: $Revision: 1.4 $ Copyright (c) <NAME>, <NAME>. All rights reserved. See LICENCE file for details. ...
code_c
code
638
null
<reponame>wenisman/mbt /* * Copyright (c) <NAME>. All rights reserved. * * This file is part of clar, distributed under the ISC license. * For full terms see the included COPYING file. */ #ifndef __CLAR_TEST_H__ #define __CLAR_TEST_H__ #include <stdlib.h> enum cl_test_status { CL_TEST_OK, CL_TEST_FAILURE, CL_...
code_c
code
1,654
null
<reponame>gregmedlock/roadrunnerwork /* * ----------------------------------------------------------------- * $Revision$ * $Date$ * ----------------------------------------------------------------- * Programmer(s): <NAME>, <NAME>, <NAME>, and * <NAME> @ LLNL * -------------------------------------...
code_c
code
9,959
null
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif #import "GPBMessage+CocoaDebug.h" #import "NSObject+CocoaDebug.h" #import "CocoaDebug.h" #import "CocoaDebugDeviceInfo.h" #im...
code_c
code
344
null
#import <Foundation/Foundation.h> #import <CoreLocation/CoreLocation.h> #import "MGLFoundation.h" #import "MGLStyleValue.h" #import "MGLStyleLayer.h" NS_ASSUME_NONNULL_BEGIN @class MGLMapView; typedef struct MGLStyleLayerDrawingContext { CGSize size; CLLocationCoordinate2D centerCoordinate; double zoomL...
code_c
code
247
null
<gh_stars>1-10 #pragma once #include <string> namespace LiteCppDB_Console { class ConsoleException : public std::exception { public: ConsoleException(const std::string& message) : mMsg(message) {}; virtual const char* what() const noexcept override { return mMsg.c_str(); }; private: std::string mMsg; }; ...
code_c
code
91
null
/* * Copyright 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) any later version. * * This library is distri...
code_c
code
2,241
null
<filename>WalkTheMaze-Object-oriented/BizzKit/mathlib.h<gh_stars>10-100 /*** * * Copyright (c) 1998, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * ****/ #...
code_c
code
784
null
/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferable use...
code_c
code
839
null
<reponame>Bounty556/Pong #pragma once #include "ITestSuite.h" class NodeTests : public ITestSuite { public: virtual void RunAllTests() override; };
code_c
code
42
null
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <stdlib.h> #ifdef HAVE_SYS_TIME_H # include <sys/time.h> #endif #ifdef HAVE_EVIL # include <Evil.h> #endif #if defined(__APPLE__) && defined(__MACH__) # include <mach/mach_time.h> #endif #include "Ecore.h" #include "ecore_private.h" #include <time.h> #if ...
code_c
code
1,483
null
<filename>vm.c #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include "common.h" #include "vm.h" #include "debug.h" #include "compiler.h" #include "object.h" #include "memory.h" VM vm; static int lineNumber; static int lineRepeat = 0; // how many types can this line number be applied...
code_c
code
1,197
null
<reponame>alemart/speedy-vision-js<filename>src/core/wasm/utils.c<gh_stars>10-100 /* * speedy-vision.js * GPU-accelerated Computer Vision for JavaScript * Copyright 2020-2021 <NAME> <<EMAIL>martf(at)gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except i...
code_c
code
2,659
null
<gh_stars>1-10 #include <linux/stddef.h> #include <linux/init.h> #include <linux/sched.h> #include <linux/signal.h> #include <asm/io.h> #include "i8259.h" unsigned char cached_8259[2] = { 0xff, 0xff }; #define cached_A1 (cached_8259[0]) #define cached_21 (cached_8259[1]) int i8259_pic_irq_offset; int i8259_irq(int ...
code_c
code
1,242
null
/******************************************************************************* Ficheiro de implementação do Tipo de Dados Abstracto SEQ_ARRAY (seqarray.c). A estrutura de dados de suporte da sequência é um registo, constituída pelos campos de tipo inteiro Dim para indicar a capacidade de armazenamento da seq...
code_c
code
3,247
null
<reponame>ThakurKarthik/expo<filename>ios/Pods/Headers/Public/ReactABI32_0_0/ABI32_0_0RNBranch.h #import "ABI32_0_0EXScopedBridgeModule.h" #import <Branch/Branch.h> // ABI32_0_0EXPO CHANGES: // - inherit from ABI32_0_0EXScopedBridgeModule // - add ABI32_0_0EXBranchScopedModuleDelegate protocol extern NSString * _Nonn...
code_c
code
520
null
#ifndef IMAGE_PROCESSING_UTILS_H #define IMAGE_PROCESSING_UTILS_H #include <vector> #include <string> #include <opencv2/highgui/highgui.hpp> namespace image_processing_utils { double findAngle(cv::Point p1, cv::Point p2, cv::Point p0); std::vector<std::vector<cv::Point>> findSquares(const cv::Mat& image, double min...
code_c
code
484
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 ...
code_c
code
785
null
<gh_stars>0 #ifndef MAJ_PROCESS_H #define MAJ_PROCESS_H // process the file specified by fn void process(const char *fn); #endif // MAJ_PROCESS_H
code_c
code
42
null