text
stringlengths
84
499k
source
stringclasses
6 values
slice
stringclasses
1 value
est_tokens
int32
24
143k
score
float32
<reponame>adamvent/googlesitemapgenerator<filename>third_party/apr-1/64/apu_want.h /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as * applicable. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
code_c
code
405
null
<gh_stars>10-100 #include <stdio.h> #include <inttypes.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "driver/gpio.h" #include "sdkconfig.h" //Definitions #define BLINK_GPIO 2 //constants const TickType_t xDelay250ms = pdMS_TO_TICKS(250); const TickType_t xDelay200...
code_c
code
654
null
<filename>components/language/ios/browser/ios_language_detection_tab_helper.h // Copyright 2017 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 COMPONENTS_LANUGUAGE_IOS_BROWSER_IOS_LANGUAGE_DETECTION_TAB_HELPER_H...
code_c
code
622
null
<gh_stars>1-10 /* * FreeRTOS Kernel V10.1.1 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * 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 rest...
code_c
code
3,524
null
// // begin license header // // This file is part of Pixy CMUcam5 or "Pixy" for short // // All Pixy source code is provided under the terms of the // GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html). // Those wishing to use Pixy source code, software and/or // technologies under differ...
code_c
code
1,115
null
<gh_stars>0 // Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2017 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. /** * Money parsing/formatting utilities. */ #ifndef BITCOIN_UTILMONEYSTR_H #...
code_c
code
299
null
<filename>geomag70.h extern int get_declination(double latitude, double longitude, double alt, int *ret_dd, int *ret_dm, int *ret_id, int *ret_im); extern int init_declination(char *mdfile, int year, int month, int day);
code_c
code
64
null
<reponame>rajkubp020/helloword<gh_stars>0 #ifndef FE_INTERPOLATE_H #define FE_INTERPOLATE_H #include "MatrixLibrary.h" #include "ATC_TypeDefs.h" #include <vector> #include <map> namespace ATC { struct FE_Quadrature; class FE_Element; /** * @class FE_Interpolate * @brief Base class for computing sha...
code_c
code
2,468
null
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */ /* vi: set expandtab shiftwidth=4 tabstop=4: */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "modp_b16.h" #include "minunit.h" static char* testEndian(void) { // this test that "0001" is "00000001" char buf[10...
code_c
code
2,344
null
<gh_stars>1-10 /* ipproto.c * Routines for converting IPv4 protocol/IPv6 nxthdr field into string * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <glib.h> #include <epan/packet.h> #include <ep...
code_c
code
6,620
null
<filename>ios/versioned-react-native/ABI28_0_0/Expo/Core/Api/AdMob/ABI28_0_0RNAdMobInterstitial.h #import <ReactABI28_0_0/ABI28_0_0RCTBridgeModule.h> #import <ReactABI28_0_0/ABI28_0_0RCTEventEmitter.h> #import <GoogleMobileAds/GoogleMobileAds.h> @interface ABI28_0_0RNAdMobInterstitial : ABI28_0_0RCTEventEmitter <ABI2...
code_c
code
106
null
<filename>hackathon/2010/li_yun/ITK-V3D-Plugins/Source/RegistrationIntegrated/FilterPlugin/CastOut.h #ifndef __CastOut_H__ #define __CastOut_H__ #include <QtGui> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <v3d_interface.h> class CastOutPlugin : public QObject, public V3DPlug...
code_c
code
208
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 no...
code_c
code
987
null
<reponame>bsf2dev/bsf //************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsPhysXPrerequisites.h" #includ...
code_c
code
238
null
#ifndef __HERBST_FLOATING_H_ #define __HERBST_FLOATING_H_ #include "types.h" #include "x11-types.h" class Client; class HSTag; // utilities int char_to_direction(char ch); int find_rectangle_in_direction(RectangleIdxVec& rects, int idx, Direction dir); int find_rectangle_right_of(RectangleIdxVec rects, int idx); int...
code_c
code
210
null
//! VBaseRawDataReader contains common elements of VRawDataReader and VBFDataReader #ifndef VBASEDATAREADER_H #define VBASEDATAREADER_H #include <VDetectorGeometry.h> #include <VMonteCarloRunHeader.h> #include <VNoiseFileReader.h> #include <VRawEventParser.h> #include <VRawDataExceptions.h> #include <VVirtualDataRead...
code_c
code
3,014
null
<reponame>ExoticObjects/test_sibling_dependencies_pod_a // // Created by <NAME> on 3/3/16. // #import <Foundation/Foundation.h> @interface PodAHelper : NSObject - (void)helperMethod; @end
code_c
code
54
null
<reponame>ssgnat/misc /* * Copyright (C) 2012 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or 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...
code_c
code
536
null
<filename>pstock/main.c<gh_stars>0 // // strategyM_1.c // pstock // // Created by takayoshi on 2016/01/23. // Copyright © 2016年 pgostation. All rights reserved. // #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/time.h> #include <libiomp/omp.h> #include "main.h" #include "strMdata.h" #incl...
code_c
code
1,775
null
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include "bftree_map.h" #include "bftree_set.h" void bftmap_example() { struct bftree *tree; int i, len; char buf[100]; char *val; struct bftree_iterator *iter; int count; tree = bftmap_create(); for (i = 0; i < 1000; i++) { ...
code_c
code
460
null
<gh_stars>0 /* TEMPLATE GENERATED TESTCASE FILE Filename: CWE416_Use_After_Free__return_freed_ptr_08.c Label Definition File: CWE416_Use_After_Free__return_freed_ptr.label.xml Template File: point-flaw-08.tmpl.c */ /* * @description * CWE: 416 Use After Free * Sinks: * GoodSink: Use a block of memory re...
code_c
code
1,723
null
// // FlyingCubes.c // GLESCompute // // Created by <NAME> on 06.12.13. // // #include "playgrounds/playground.h" #include "colorspace.h" #include "FreeType3D.h" #include "globaltime.h" #include "Math3D.h" #include "noise.h" #include "OpenGLES2Core.h" #include <assert.h> #include <iso646.h> #include <math.h> #inc...
code_c
code
1,575
null
<filename>sources/drivers/staging/lustre/lustre/lov/lov_ea.c /* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * as published by th...
code_c
code
3,033
null
<filename>Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/local/remote_document_cache.h<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:2b116292015dce87b1e1e8ac40f7084088963b307261b85e8923e01a84f4dd51 size 3344
code_c
code
68
null
<gh_stars>10-100 #include <stdio.h> #include <stdlib.h> #define circle_size 256 #define m *(circle + (*current_position + i) % circle_size) #define n *(circle + (*current_position + length - 1 - i) % circle_size) void run_round(int* circle, const int* lengths, const int lengths_size, int* current_position, int* skip_...
code_c
code
454
null
/* * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef XLAT_TABLES_H #define XLAT_TABLES_H #include <lib/xlat_tables/xlat_tables_defs.h> #ifndef __ASSEMBLY__ #include <stddef.h> #include <stdint.h> #include <lib/xlat_tables/xlat_mmu_...
code_c
code
758
null
/* * eui64.c - EUI64 routines for IPv6CP. * * Copyright (c) 1999 <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 copyr...
code_c
code
586
null
<reponame>ridoo/IlwisCore<filename>ilwisscript/ast/breaknode.h #ifndef BREAKNODE_H #define BREAKNODE_H namespace Ilwis { class BreakNode : public ASTNode { public: BreakNode(); QString nodeType() const; }; } #endif // BREAKNODE_H
code_c
code
68
null
<reponame>nipunbatra/os2018 #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <assert.h> #include <math.h> int sum = 0; int arr[1000000]; struct arguments{ int start; int stop; }; void *sum_thread(void *args){ struct arguments *arg; arg = (struct arguments *)args; int beg,end; beg = arg->st...
code_c
code
322
null
<gh_stars>1-10 #pragma once #include "jni.h" class HttpRequest { public: HttpRequest(XAsyncBlock* asyncBlock, JavaVM* javaVm, jobject applicationContext, jclass httpRequestClass, jclass httpResponseClass); virtual ~HttpRequest(); HRESULT Initialize(); XAsyncBlock* GetAsyncBlock() { return m_asyncBloc...
code_c
code
298
null
<filename>platforms/ios/Pods/Headers/Public/NatImage/MWCommon.h // // MWPreprocessor.h // MWPhotoBrowser // // Created by <NAME> on 01/10/2013. // #define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) #define SYSTEM_VERSIO...
code_c
code
260
null
#pragma once #include <common/logger/Logger.h> #include <cstring> #include <functional> #include <optional> #include <variant> #include "icd/CLPlatformId.hpp" #include "CLObjectInfoParameterValue.hpp" #include "device/DeviceConfigurationParser.h" #include "icd/IcdDispatchTable.h" extern Logger kLogger; extern IcdDis...
code_c
code
551
null
<gh_stars>1-10 #ifndef CAFFE2_CORE_OPERATOR_SCHEMA_H_ #define CAFFE2_CORE_OPERATOR_SCHEMA_H_ #include <climits> #include <functional> #include <initializer_list> #include <ostream> #include <set> #include <vector> #include <unordered_map> #include "caffe2/core/common.h" #include "caffe2/core/logging.h" #include "caff...
code_c
code
4,577
null
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ #include "mpiimpl.h" #if defined(HAVE_LIMITS_H) #include <limits.h> #endif #if defined(HAVE_UNISTD_H) #include <unistd.h> #endif #if defined(HAVE_ERRNO_H) ...
code_c
code
2,686
null
<gh_stars>0 inherit "room/room"; reset(arg) { add_exit("north","/wizards/trooper/areas/rohelm/r26.c"); add_exit("east","/wizards/trooper/areas/rohelm/r15.c"); add_exit("south","/wizards/trooper/areas/rohelm/r2.c"); add_exit("west","/wizards/trooper/areas/rohelm/r13.c"); short_desc = "The main stre...
code_c
code
295
null
#ifndef UIELEMENT_H #define UIELEMENT_H #include "Headers.h" #include "Shader.h" struct UiVertex { glm::vec2 Position; }; struct UiTextureVertex { glm::vec2 Position; glm::vec2 TexCoords; }; class UiElement { public: UiElement(Shader* shader, const char* texture, glm::vec2 position, glm::vec2 size, bool center ...
code_c
code
261
null
// Copyright © 2019 650 Industries. All rights reserved. NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, ABI39_0_0EXUpdatesCheckAutomaticallyConfig) { ABI39_0_0EXUpdatesCheckAutomaticallyConfigAlways = 0, ABI39_0_0EXUpdatesCheckAutomaticallyConfigWifiOnly = 1, ABI39_0_0EXUpdatesCheckAutomaticallyConfigNever...
code_c
code
353
null
<reponame>limix/bgen-reader<filename>include/bgen/variant.h #ifndef BGEN_VARIANT_H #define BGEN_VARIANT_H #include <inttypes.h> /** Variant metadata. * @struct bgen_variant */ struct bgen_variant { uint64_t genotype_offset; /**< Genotype offset (bgen file). */ struct bgen_string const* id...
code_c
code
209
null
<filename>tests/kernel/workq/work_queue/src/main.c<gh_stars>1-10 /* * Copyright (c) 2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <stdbool.h> #include <zephyr.h> #include <ztest.h> #include <tc_util.h> #include <sys/util.h> #define NUM_TEST_ITEMS 6 /* Each work item takes 10...
code_c
code
5,238
null
// -*- C++ -*- // -*- coding: utf-8 -*- // // <NAME> <<EMAIL>> // (c) 1998-2022 all rights reserved // code guard #if !defined(qed_nisar_api_h) #define qed_nisar_api_h #endif // end of file
code_c
code
55
null
<reponame>sunilkori/odp /* Copyright (c) 2015-2018, Linaro Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /** * @file * * ODP pool */ #ifndef ODP_API_POOL_H_ #define ODP_API_POOL_H_ #ifdef __cplusplus extern "C" { #endif #include <odp/api/abi/pool.h> #include <odp/api/spec/...
code_c
code
104
null
#pragma once bool isLimitEntryOrder(IO2GOrderRow *order); class TableListener : public IO2GTableListener { public: TableListener(ResponseListener *responseListener); /** Increase reference counter. */ virtual long addRef(); /** Decrease reference counter. */ virtual long release(); /** ...
code_c
code
276
null
/********************************************************************** * Copyright (c) 2015 <NAME> * * Distributed under the MIT software license, see the accompanying * * file COPYING or http://www.opensource.org/licenses/mit-license.php.* ****************************************...
code_c
code
538
null
<gh_stars>1-10 /* * Copyright (c) 2000, 2001, 2002 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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 ...
code_c
code
2,443
null
<filename>kernel/linux-4.13/drivers/i2c/muxes/i2c-mux-pca9541.c /* * I2C multiplexer driver for PCA9541 bus master selector * * Copyright (c) 2010 Ericsson AB. * * Author: <NAME> <<EMAIL>> * * Derived from: * pca954x.c * * Copyright (c) 2008-2009 <NAME> <<EMAIL>> * Copyright (c) 2008-2009 Eurotech S.p.A. ...
code_c
code
2,993
null
#ifndef LGAMMANODE_H #define LGAMMANODE_H #include"NodeSystem/nodecore.h" class LGammaNode : public NodeCore { public: LGammaNode(); }; #endif // LGAMMANODE_H
code_c
code
48
null
<reponame>mbits-os/JiraDesktop<filename>apps/Tasks/src/version.h #pragma once #include "program_version.h" #define PROGRAM_NAME "Tasks" #define PROGRAM_COPYRIGHT_HOLDER "midnightBITS" #define VERSION_STRINGIFY(n) VERSION_STRINGIFY_HELPER(n) #define VERSION_STRINGIFY_HELPER(n) #n #define PROGRAM_VERSION_STRING \ ...
code_c
code
293
null
/* headers to use the BSD sockets */ #ifndef QEMU_SOCKET_H #define QEMU_SOCKET_H #ifdef _WIN32 #include <windows.h> #include <winsock2.h> #include <ws2tcpip.h> #define socket_error() WSAGetLastError() #undef EINTR #define EWOULDBLOCK WSAEWOULDBLOCK #define EINTR WSAEINTR #define EINPROGRESS WSAEINPROGRESS int ...
code_c
code
464
null
<reponame>dme26/intravisor /* * Silicon Labs Si2146/2147/2148/2157/2158 silicon tuner driver * * Copyright (C) 2014 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundat...
code_c
code
3,936
null
<gh_stars>100-1000 // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. //#include "OpenVRExpansionPlugin.h" //#include "OpenVRExpansionFunctionLibrary.h" //#include "GripSteamVRTrackedDevice.h" //#include "Runtime/Launch/Resources/Version.h" // You should place include statements to your module's priv...
code_c
code
128
null
<reponame>nicokorn/STM32F4XX_RNDIS_DEMO<filename>Core/Src/queuex.c // **************************************************************************** /// \file queuex.c /// /// \brief queue Module /// /// \details This is the queuex c source file. It contents the queue /// functionality. The queue is...
code_c
code
3,049
null
<reponame>yuhao-kuo/WasmVM<gh_stars>100-1000 #include <core/Runtime.h> int runtime_f64_lt(Stack stack) { Value* operand1 = NULL; Value* operand2 = NULL; pop_Value(stack, &operand2); pop_Value(stack, &operand1); push_Value(stack, new_f64Value(operand1->value.f64 < operand2->value.f64)); free_...
code_c
code
108
null
<gh_stars>0 /***************************************************************************** * * Copyright (c) 2000 - 2019, Lawrence Livermore National Security, LLC * Produced at the Lawrence Livermore National Laboratory * LLNL-CODE-442911 * All rights reserved. * * This file is part of VisIt. For details, see https:...
code_c
code
1,749
null
<gh_stars>1-10 /*- * Copyright (c) 2000, 2001 <NAME> * Copyright (c) 2000 BSDi * 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 c...
code_c
code
5,167
null
/* ---------------------------------------------------------------------- * RPly library, read/write PLY files * <NAME>, IMPA * http://www.impa.br/~diego/software/rply * * This library is distributed under the MIT License. See notice * at the end of this file. * --------------------------------------------------...
code_c
code
15,857
null
#pragma once // NowSound library by <NAME>, https://github.com/RobJellinghaus/NowSound // Licensed under the MIT license #include "stdafx.h" #include "NowSoundTime.h" namespace NowSound { // Class which provides an interface to the Stream functions that mappers need. template<typename TTime> class IStrea...
code_c
code
2,227
null
<reponame>TheDonsky/Jimara #pragma once #include "../VulkanDevice.h" #pragma warning(disable: 26812) namespace Jimara { namespace Graphics { namespace Vulkan { /// <summary> /// Wrapper on top of a Vulkan Timeline Semaphore /// </summary> class VulkanTimelineSemaphore : public virtual Object { public...
code_c
code
1,006
null
<filename>src/gallium/drivers/nouveau/nvc0/nvc0_tex.c /* * Copyright 2008 <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 * th...
code_c
code
14,681
null
<reponame>montylab3d/coin #ifndef COIN_SOGLRENDERACTION_H #define COIN_SOGLRENDERACTION_H /**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modif...
code_c
code
1,637
null
<reponame>rastrup/no-one-lives-forever // FolderWeapons.h: interface for the CFolderWeapons class. // ////////////////////////////////////////////////////////////////////// #ifndef _FOLDER_WEAPONS_H_ #define _FOLDER_WEAPONS_H_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "BaseSelect...
code_c
code
322
null
<gh_stars>0 /*********************************************************************************************************************/ /* File Name: ang/base/text.h */ /* Author: Ing. <NAME> <<EMAIL>>, July 2016. ...
code_c
code
5,030
null
<reponame>xsiro/NULL_Engine #ifndef __RANDOM_H__ #define __RANDOM_H__ #include "MathGeoLib/include/Algorithm/Random/LCG.h" #include "VariableTypedefs.h" namespace Random { namespace LCG // RNG library included with MathGeoLib. Average Performance (Real random factor...) { static math::LCG lcg_rand...
code_c
code
229
null
<filename>src/plugins/lb/api.c /* * Copyright (c) 2016 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * ...
code_c
code
1,768
null
<filename>include/swift/SIL/SILFunctionBuilder.h<gh_stars>10-100 //===--- SILFunctionBuilder.h ---------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License ...
code_c
code
1,457
null
/*========================================================================= Program: Visualization Toolkit Module: vtkRectilinearGrid.h Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distri...
code_c
code
2,745
null
<gh_stars>1000+ // 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 CHROMECAST_RENDERER_EXTENSIONS_TABS_HOOKS_DELEGATE_H_ #define CHROMECAST_RENDERER_EXTENSIONS_TABS_HOOKS_DELEGATE_H_ #include <str...
code_c
code
567
null
// Copyright 2020 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 COMPONENTS_CRASH_CONTENT_BROWSER_ERROR_REPORTING_MOCK_CRASH_ENDPOINT_H_ #define COMPONENTS_CRASH_CONTENT_BROWSER_ERROR_REPORTING_MOCK_CRASH_ENDPOI...
code_c
code
844
null
<gh_stars>10-100 /**************************************************************************** * arch/risc-v/src/k210/k210_timerisr.c * * 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...
code_c
code
1,132
null
<reponame>timrdf/csv2rdf4lod-automation-prod<filename>bin/lod-materialize/c/avl.c<gh_stars>10-100 /* Produced by texiweb from libavl.w. */ /* libavl - library for manipulation of binary trees. Copyright (C) 1998-2002, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and...
code_c
code
7,124
null
/*====================================================================* * * Copyright (c) 2013 Qualcomm Atheros, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted (subject to the limitations * in the disclaimer below) pro...
code_c
code
770
null
<filename>src/comm/transport.h<gh_stars>1-10 /** * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in com...
code_c
code
1,929
null
<reponame>brunolauze/MonoNative<filename>MonoNative/mscorlib/System/Runtime/mscorlib_System_Runtime_GCLargeObjectHeapCompactionMode.h #ifndef __MONO_NATIVE_MSCORLIB_SYSTEM_RUNTIME_GCLARGEOBJECTHEAPCOMPACTIONMODE_H #define __MONO_NATIVE_MSCORLIB_SYSTEM_RUNTIME_GCLARGEOBJECTHEAPCOMPACTIONMODE_H namespace mscorlib { name...
code_c
code
146
null
/* * DEBUG: section 39 Peer source hash based selection * AUTHOR: <NAME> * BASED ON: carp.cc * * SQUID Web Proxy Cache http://www.squid-cache.org/ * ---------------------------------------------------------- * * Squid is the result of efforts by numerous individuals from * the Internet community;...
code_c
code
485
null
<reponame>btrask/libasync /* $OpenBSD$ */ /* Written by <NAME>, 2013, Public domain. */ void createfiles(int); void delfiles(void);
code_c
code
38
null
<filename>display7/src/bargraph_defines.c<gh_stars>1-10 /* * bargraph_defines.c * * Created on: 24.09.2017 * Author: kurt */ #include <main.h> void bar_initstruct(t_bargraph *bar); void bar_setxy(t_bargraph *bar, int leftx, int starty, int width, int height); void bar_title(t_bargraph *bar, FONT_INFO *pfi,...
code_c
code
4,705
null
/* * Copyright (C) 2015, <NAME> * TU Darmstadt - Graphics, Capture and Massively Parallel Computing * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD 3-Clause license. See the LICENSE.txt file for details. */ #ifndef JOB_QUEUE_HEADER #define JOB_QUEUE_HEADER ...
code_c
code
657
null
<gh_stars>10-100 #include <std.h> inherit OBJECT; void create(){ ::create(); set_name("gem"); set_id(({ "gem" })); set_short("%^BOLD%^%^RED%^A glowing red gem%^RESET%^"); set_obvious_short("%^BOLD%^%^RED%^A glowing red gem%^RESET%^"); set_long( @AVATAR %^BOLD%^%^RED%^This gem is pulsing. AVATAR ); set_weight(...
code_c
code
97
null
// Copyright 2018 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_UI_VIEWS_MD_TEXT_BUTTON_WITH_DOWN_ARROW_H_ #define CHROME_BROWSER_UI_VIEWS_MD_TEXT_BUTTON_WITH_DOWN_ARROW_H_ #include <string> #i...
code_c
code
334
null
<reponame>hanswenzel/opticks #pragma once #if defined(__CUDACC__) || defined(__CUDABE__) #define QPROP_METHOD __device__ #else #define QPROP_METHOD #endif /** qprop ======= **/ #include "sview.h" template<typename T> struct qprop { T* pp ; unsigned width ; unsigned height ; #if defined(__C...
code_c
code
415
null
<gh_stars>0 /* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2016-2020 Authors of Cilium */ #ifndef __LIB_COMMON_H_ #define __LIB_COMMON_H_ #include <bpf/ctx/ctx.h> #include <bpf/api.h> #include <linux/if_ether.h> #include <linux/ipv6.h> #include <linux/in.h> #include "mono.h" // FIXME: GH-3239 LRU logic is...
code_c
code
5,654
null
#ifndef RF_BRIDGE_COMMON_H #define RF_BRIDGE_COMMON_H #include "sdkconfig.h" #define IT_WIFI_SSID CONFIG_WIFI_SSID #define IT_WIFI_PASS CONFIG_WIFI_PASS #define IT_RF_GPIO CONFIG_RF_TRANSMITTER_DATA_GPIO #define IT_QUEUE_SIZE CONFIG_MQTT_QUEUE_SIZE #define IT_MQTT_HOST CONFIG_MQTT_HOST #define IT_MQTT_TOPIC CONFIG_MQ...
code_c
code
123
null
<reponame>metux/chromium-deb /* * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * ...
code_c
code
906
null
/* Copyright libuv project contributors. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, cop...
code_c
code
5,397
null
/** * @file common.c * @author <NAME> <<EMAIL>> * @brief common internal definitions for libyang * * Copyright (c) 2018 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You may not use this file except in compliance with the License. * You may obtain a copy of the...
code_c
code
5,304
null
<reponame>9names/bl_iot_sdk_autoformatted /* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following co...
code_c
code
3,618
null
/* ------------------------------------------ * Copyright (c) 2017, Synopsys, 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 copyr...
code_c
code
1,516
null
/*************************************************************************** Atari Escape hardware ****************************************************************************/ #include "driver.h" #include "machine/atarigen.h" #include "eprom.h" #include "thunderj.h" /************************************* * ...
code_c
code
2,498
null
<filename>kernel/drivers/huawei_platform/power/charger/charger_ap/direct_charger/loadswitch/dual_loadswitch/fpf2283/fpf2283.h /* * fpf2283.h * * fpf2283 driver * * Copyright (c) 2012-2019 Huawei Technologies Co., Ltd. * * This software is licensed under the terms of the GNU General Public * License version 2, a...
code_c
code
2,813
null
<filename>Texture2D.h /******************************************************************* ** This code is part of Breakout. ** ** Breakout is free software: you can redistribute it and/or modify ** it under the terms of the CC BY 4.0 license as published by ** Creative Commons, either version 4 of the License, or...
code_c
code
443
null
<reponame>NoctisGames/insectoid-defense_opensource // // Direct3DProgram.h // gowengamedev-framework // // Created by <NAME> on 11/16/14. // Copyright (c) 2015 Gowen Game Dev. All rights reserved. // #ifndef __gowengamedev__Direct3DProgram__ #define __gowengamedev__Direct3DProgram__ struct COLOR_VERTEX { float X...
code_c
code
183
null
/*************************************************************************/ /* asset_library_editor_plugin.h */ /*************************************************************************/ /* This file is part of: */ /* ...
code_c
code
2,806
null
// Tests simple switch()-statement - not inside a loop void main() { char* SCREEN = (char*)0x0400; char b=0; char v64 = 0; switch(v64){ case 0: b = 1; } SCREEN[0] = b; }
code_c
code
57
null
<reponame>bfabiszewski/QLMobi /** @file debug.h * * Copyright (c) 2015 <NAME> * http://www.fabiszewski.net * * This file is part of QLMobi. * Licensed under GPL, either version 3, or any later. * See <http://www.gnu.org/licenses/> */ #ifndef debug_h #define debug_h #if defined(MOBI_DEBUG) #define DebugLog(......
code_c
code
113
null
<filename>libmoon/deps/dpdk/lib/librte_acl/rte_acl_osdep.h /*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
code_c
code
743
null
// Copyright (c) 2019-2020 Open Tournament Project, All Rights Reserved. ///////////////////////////////////////////////////////////////////////////////////////////////// #pragma once #include "CoreMinimal.h" #include "Components/RichTextBlockDecorator.h" #include "UR_RichTextDecorator_CustomStyle.generated....
code_c
code
253
null
<reponame>nopjmp/mcproxy #include "packets.h" #include "util.h" #include "stdlib.h" PACKET_FUNC_DEF(handshake) { // TODO: rewrite server address. maybe? int32_t protocol_version; char* server_address = NULL; uint16_t server_port; int32_t next_state; bytebuf_read_varint(b, &protocol_version); ...
code_c
code
241
null
<filename>chibios_3.0.x/hal/ports/STM32/STM32F1xx/stm32_registry.h /* ChibiOS - Copyright (C) 2006..2015 <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.ap...
code_c
code
12,796
null
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _SCSI_SCSI_HOST_H #define _SCSI_SCSI_HOST_H #include <linux/device.h> #include <linux/list.h> #include <linux/types.h> #include <linux/workqueue.h> #include <linux/mutex.h> #include <linux/seq_file.h> #include <linux/blk-mq.h> #include <scsi/scsi.h> struct request_queue;...
code_c
code
8,581
null
<filename>src/app_linux.c #include "atto/app.h" #include <time.h> #include <stdio.h> #include <stdarg.h> static struct timespec a__time_start = {0, 0}; ATimeUs aAppTime(void) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); if (a__time_start.tv_sec == 0 && a__time_start.tv_nsec == 0) a__time_start = ts; ...
code_c
code
173
null
/* * phi/region.h * * Represent a text region in a text view */ #ifndef __PHI_REGION__ #define __PHI_REGION__ #include <stdlib.h> typedef struct phi_region_t { unsigned int start_pos; // The start position of region unsigned int end_pos; // The end position of region struct phi_region_t *next; // So, it's a...
code_c
code
229
null