text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<filename>SDK/platform/drivers/src/lptmr/lptmr_hw_access.h
/*
* Copyright 2017 NXP
* All rights reserved.
*
* THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AR... | code_c | code | 6,720 | null |
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Routines for verifying a kernel or disk image
*/
#include "2sysincludes.h"
#include "2api.h"
#include "2common.h"
#include "2misc.h"
#includ... | code_c | code | 1,093 | null |
<gh_stars>1-10
/*
* 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 "Lice... | code_c | code | 836 | null |
/*
* FreeRTOS+FAT Labs Build 160919 (C) 2016 Real Time Engineers ltd.
* Authors include <NAME>, <NAME> and <NAME>
*
*******************************************************************************
***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
*** ... | code_c | code | 5,046 | null |
/*
* Copyright (C) 2013 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | code_c | code | 1,626 | null |
/*---------------------------------------------------------------*/
/*--- begin host_arm64_isel.c ---*/
/*---------------------------------------------------------------*/
/*
This file is part of Valgrind, a dynamic binary instrumentation
framework.
Copyright (C) 2013-2015 Op... | code_c | code | 46,667 | null |
<reponame>awarnke/crystal_facet_uml<gh_stars>0
/* File: draw_classifier_icon.h; Copyright and License: see below */
#ifndef DRAW_CLASSIFIER_ICON_H
#define DRAW_CLASSIFIER_ICON_H
/* public file for the doxygen documentation: */
/*!
* \file
* \brief Renders a classifier into a cairo drawing context
*/
#include "p... | code_c | code | 3,857 | null |
<reponame>markhend/seq
#pragma once
#include "sir/sir.h"
namespace seq {
namespace ir {
namespace util {
/// Base class for IR nodes that match anything.
class Any {};
/// Any type.
class AnyType : public AcceptorExtend<AnyType, types::Type>, public Any {
public:
static const char NodeId;
using AcceptorExtend::... | code_c | code | 457 | null |
<reponame>xzrunner/dungeon<filename>include/dungeon/BaseBSPGen.h
#pragma once
#include <SM_Vector.h>
#include <SM_Rect.h>
#include <memory>
#include <vector>
namespace dungeon
{
class BaseBSPGen
{
public:
BaseBSPGen(const sm::vec2& size, const sm::vec2& split_sz,
const sm::vec2& min_sz, uint32_t seed = ... | code_c | code | 305 | null |
#pragma once
//onboard spi flash descriptor - taken from adafruit flash_devices.h and slightly modified
#define W25Q128JV_SM \
{ \
.total_size = (1UL << 24), /* 16 MiB */ ... | code_c | code | 239 | null |
<filename>testsuite/EXP_5/test503.c
/*
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 int16_t x3 = -26;
int64_t t0 = -135010421LL;
volatile int64_t t1 ... | code_c | code | 15,274 | null |
<gh_stars>1-10
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is dis... | code_c | code | 768 | null |
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "cv.h"
const char toRGB[3] = {'R', 'G', 'B'};
BMPImage *Conv2D(BMPImage *Source, const float kernel[][KERNEL_SIZE])
{
// Initial Result struct on heap
BMPImage *Result;
Result = malloc(sizeof(BMPImage));
if (Result == NULL) // Handle... | code_c | code | 664 | null |
/**
@file
master - demonstrates object subscription, registration and notification, use with 'servant'
<NAME> - <EMAIL>
@ingroup examples
*/
#include "ext.h"
#include "ext_obex.h"
#include "jpatcher_api.h"
////////////////////////// object struct
typedef struct _master
{
t_object ob; // the object itself ... | code_c | code | 1,487 | null |
//
// QMDialogsMemoryStorage.h
// QMServices
//
// Created by Andrey on 03.11.14.
// Copyright (c) 2014 Quickblox. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Quickblox/Quickblox.h>
#import "QMMemoryStorageProtocol.h"
@interface QMDialogsMemoryStorage : NSObject <QMMemoryStorageProtocol>
/... | code_c | code | 678 | null |
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2010 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mo... | code_c | code | 2,965 | null |
#include<stdio.h> // header file
main(){
int n,arr[1000],i,temp; //datatypes assigned
scanf("%d",&n); //reading value
for(i=0;i<n;i++){
scanf("%d ",&arr[i]); // reading values and sorring in the array "arr[]"
}
for(i=0;i<n/2;i++){
temp=arr[i]; //swaping array elements
ar... | code_c | code | 131 | null |
/******************************************************************************
* Copyright 2018 The Apollo 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
... | code_c | code | 1,203 | null |
/*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACT... | code_c | code | 12,739 | null |
/* Copyright (c) 2020 PaddlePaddle 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... | code_c | code | 3,038 | null |
<reponame>ShaunHeNJU/DeepRec-1<filename>tensorflow/core/graph/graph_partition.h
/* Copyright 2015 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
ht... | code_c | code | 1,887 | null |
<reponame>andreasfertl/Homecontrol-Server
#pragma once
#include <string>
#include "IOauth2.h"
class OAuth2 : public IOauth2
{
public:
OAuth2(struct IPrint& iPrint, const std::wstring& secret, const std::wstring& key, const std::wstring& authUrl, const std::wstring& tokenUrl, const std::wstring& scope,
const std::... | code_c | code | 161 | null |
<gh_stars>0
//
// Copyright (c) 2017 The Khronos Group Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | code_c | code | 2,270 | null |
<filename>Source Code/Core/TemplateLibraries/Headers/TemplateAllocator.h
/*
Copyright (c) 2018 DIVIDE-Studio
Copyright (c) 2009 <NAME>
This file is part of DIVIDE Framework.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software
and associated documentation files (the "S... | code_c | code | 1,410 | null |
<gh_stars>0
/**
* ----------------------------------------------------------------------------
* Copyright (c) 2016, <NAME>, Inc.
*
* For more information on licensing, please see Anaren Microwave, Inc's
* end user software licensing agreement: EULA.txt.
*
* ------------------------------------------------------... | code_c | code | 1,700 | null |
<filename>tools/ippfind.c<gh_stars>0
/*
* Utility to find IPP printers via Bonjour/DNS-SD and optionally run
* commands such as IPP and Bonjour conformance tests. This tool is
* inspired by the UNIX "find" command, thus its name.
*
* Copyright © 2021-2022 by OpenPrinting.
* Copyright © 2020 by the IEEE-ISTO Prin... | code_c | code | 23,116 | null |
<reponame>ilya-fedin/tg_owt<gh_stars>100-1000
/*
* Copyright (c) 2019 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 rights grant can be... | code_c | code | 310 | null |
<reponame>Zysen/node_kdmapper
// This is a part of the Active Template Library.
// Copyright (C) Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Active Template Library Reference and related
// electronic documentation provided with the library.
// ... | code_c | code | 2,813 | null |
<reponame>danos/vyatta-dataplane<gh_stars>10-100
/*
* Copyright (c) 2020-2021, AT&T Intellectual Property. All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-only
*/
#ifndef _SIP_PARSE_H_
#define _SIP_PARSE_H_
#include "npf/npf.h"
#include "npf/alg/alg.h"
#include "npf/npf_cache.h"
#include "npf/npf_nat.... | code_c | code | 299 | null |
// Read the documentation to learn more about C++ code generator
// versioning.
// %X% %Q% %Z% %W%
#ifndef FITSTAT_H
#define FITSTAT_H 1
// xsTypes
#include <xsTypes.h>
// string
#include <string>
// map
#include <map>
// Error
#include <XSUtil/Error/Error.h>
// FitStrategy
#include <XSFit/Fit/FitStrategy.h>
#i... | code_c | code | 1,633 | null |
<filename>muduo/base/ProcessInfo.h
// Copyright 2010, <NAME>. All rights reserved.
// http://code.google.com/p/muduo/
//
// Use of this source code is governed by a BSD-style license
// that can be found in the License file.
// Author: <NAME> (chenshuo at chenshuo dot com)
//
// This is a public header file, it must ... | code_c | code | 224 | null |
<filename>src/Reseau.c
#include "Reseau.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SVGwriter.h"
#include "commun.h"
// Permet de creer un reseau
Reseau *cree_reseau(int gamma) {
// On alloue la memoire pour le reseau
Reseau *reseau = malloc(sizeof(Reseau));
// On test si l'a... | code_c | code | 6,407 | null |
//==- PPUArgumentrUsageInfo.h - Function Arg Usage Info -------*- C++ -*-==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------------------------... | code_c | code | 1,364 | null |
<reponame>nalinimsingh/ITK_4D<filename>Modules/ThirdParty/MINC/src/libminc/libcommon/restructure.c
/** \file restructure.c
* \brief In-place reordering of multidimensional arrays.
* \author <NAME>
*
************************************************************************/
#include <stdlib.h>
#include <memory.... | code_c | code | 1,795 | null |
<gh_stars>0
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2015 6WIND S.A.
* Copyright 2020 Mellanox Technologies, Ltd
*/
#include <stddef.h>
#include <unistd.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
#include <net/if.h>
#include <linux/rtnetlink.h>
#include <linux/sock... | code_c | code | 21,692 | null |
#ifndef SDL_CPP_WRAPPER_WINDOW_H
#define SDL_CPP_WRAPPER_WINDOW_H
#include "sdl_cpp/window.h"
#include "sdl_cpp/renderer.h"
#include "sdl_cpp/widgets2/widget.h"
#include "window_flags.h"
#include <memory>
#include <string>
#include <cstdint>
#include <SDL2/SDL.h>
namespace sdl
{
namespace widgets2
{
class window
... | code_c | code | 213 | null |
#pragma once
#include "engine/array.h"
#include "engine/resource.h"
#include "engine/resource_manager_base.h"
namespace Lumix
{
class Clip LUMIX_FINAL : public Resource
{
public:
Clip(const Path& path, ResourceManagerBase& manager, IAllocator& allocator)
: Resource(path, manager, allocator)
, m_data(allocato... | code_c | code | 354 | null |
// Copyright 2020 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | code_c | code | 3,482 | null |
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <3ds.h>
#include "action.h"
#include "../resources.h"
#include "../task/uitask.h"
#include "../../core/core.h"
#include "../../core/stringutil.h"
typedef enum content_type_e {
CONTENT_CIA,
CONTENT_TICKET,
CONTENT_3DSX_SMDH
} content_type... | code_c | code | 4,476 | null |
<reponame>c0der88/webrtc
/*
* Copyright (c) 2014 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 rights grant can be found
* in the fil... | code_c | code | 1,007 | null |
<reponame>cazure/rt-thread<filename>bsp/stm32/libraries/STM32F7xx_HAL/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal_jpeg.h
/**
******************************************************************************
* @file stm32f7xx_hal_jpeg.h
* @author MCD Application Team
* @brief Header file of JPEG HAL module.
****... | code_c | code | 7,396 | null |
//
// OVSDataManager.h
// OVSKit
//
// Created by <NAME> on 2017-05-28.
// Copyright © 2017 The Top AI Technology Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OVSGlobal.h"
#define OPENVS_KIT_VERSION 0.0 //if this is 0.0, that means we are using the test general key and general iv
@inte... | code_c | code | 2,965 | null |
#ifndef INCLUDED_OCIO_NUKE_FILETRANSFORM_H_
#define INCLUDED_OCIO_NUKE_FILETRANSFORM_H_
// Include these early, for Nuke's headers under gcc 4.4.2.
#include <memory>
#include <cstdarg>
#include <DDImage/PixelIop.h>
#include <DDImage/Row.h>
#include <DDImage/Knob.h>
#include <OpenColorIO/OpenColorIO.h>
namespace OCIO... | code_c | code | 968 | null |
<filename>phase_1/eval/xenia/challenge/src/container/stack.h
#ifndef stack_HEADER
#define stack_HEADER
#include <stdint.h>
#include "object.h"
extern const struct object * object_type_stack;
struct stack {
const struct object * object;
void ** objects;
uint32_t size;
uint32_t top;
};
struct stack *... | code_c | code | 183 | null |
<reponame>c-factory/factory<filename>stdlib_names.c
/*
Copyright (c) 2020 <NAME> <<EMAIL>>
Implementation of the list of standard libraries
*/
#include "stdlib_names.h"
wchar_t *stdlib_names[] =
{
L"threads",
L"math",
L"sockets"
};
stdlib_t parse_stdlib_name(const wide_string_t *name)
{
siz... | code_c | code | 135 | null |
<reponame>Meteorite/libtgvoip<gh_stars>10-100
#ifndef __TGVOIP_H
#define __TGVOIP_H
#include <functional>
#include <vector>
#include <string>
#include <memory>
struct TgVoipProxy {
std::string host;
uint16_t port = 0;
std::string login;
std::string password;
};
enum class TgVoipEndpointType {
Ine... | code_c | code | 1,391 | null |
#define _XOPEN_SOURCE 800
#include <ucontext.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <pthread.h>
#include <pony.h>
#include <dtrace_encore.h>
#include "encore.h"
#include "future.h"
#include "../libponyrt/actor/messageq.h"
#include "../libponyrt/sched/scheduler.h"
... | code_c | code | 3,765 | null |
<reponame>Won-Ko/anubis
/**CFile****************************************************************
FileName [reoSwap.c]
PackageName [REO: A specialized DD reordering engine.]
Synopsis [Implementation of the two-variable swap.]
Author [<NAME>]
Affiliation [UC Berkeley]
Date [Ver. 1.0.... | code_c | code | 8,025 | null |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
*
* (C) 2007 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include "mpitest.h"
/*
* This program tests that MPI_Comm_split applies to intercommunicators;
... | code_c | code | 1,635 | null |
<reponame>iLevshevich/Cobalt-Service
#ifndef __MANAGER_MACROSES_H_INCLUDED__
#define __MANAGER_MACROSES_H_INCLUDED__
#define COBALT_MONITOR_IF_EXIST_HANDLER(PTR) \
if(PTR.get()) { \
(*PTR)(); \
} \
///
#define COBALT_MONITOR_IF_EXIST_HANDLER_1_ARG(PTR, ARG) \
if(PTR.get()) { \
(*PTR)(ARG); \
... | code_c | code | 721 | null |
/*
// AEZ v4.1 reference code. AEZ info: http://www.cs.ucdavis.edu/~rogaway/aez
//
// ** This version is slow and susceptible to side-channel attacks. **
// ** Do not use for any purpose other than to understand AEZ. **
//
// Written by <NAME> (<EMAIL>). Last modified 13 September 2015.
//
// This is free and unen... | code_c | code | 5,002 | null |
#include <stdio.h>
int main(void) {
int n_times, array[5] = {0};
printf("Number of iterations: ");
scanf("%d", &n_times);
for (int i = 0; i < n_times; i++)
printf("%d\n", array[i]);
return 0;
}
| code_c | code | 59 | null |
#ifndef __CONVOLUTIONAL_H__
#define __CONVOLUTIONAL_H__
#include "network.h"
namespace nebula {
class convolutional_t : public network_t {
public:
convolutional_t();
~convolutional_t();
// Run network.
void run(const std::string m_output_weight = "");
private:
// Initialize network.
void in... | code_c | code | 199 | null |
/**
* Copyright (C) Mellanox Technologies Ltd. 2001-2015. ALL RIGHTS RESERVED.
*
* See file LICENSE for terms.
*/
#include "eager.h"
#include "rndv.h"
#include "tag_match.inl"
#include "offload.h"
#include <ucp/core/ucp_worker.h>
#include <ucp/core/ucp_request.inl>
#include <ucs/datastruct/mpool.inl>
#include <u... | code_c | code | 2,523 | null |
/*
decode.h: common definitions for decode functions
This file is strongly tied with optimize.h concerning the synth functions.
Perhaps one should restructure that a bit.
copyright 2007-8 by the mpg123 project - free software under the terms of the LGPL 2.1
see COPYING and AUTHORS files in distribution or http:/... | code_c | code | 3,528 | null |
<gh_stars>1-10
/*
Copyright 2010 OuterCurve Foundation
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 agre... | code_c | code | 343 | null |
<filename>Third course/6th semester/Unix programming/Lab5 - Fileworks/1.c<gh_stars>0
#include <stdio.h>
#include <fcntl.h>
int main()
{
// have kernel open connection to our our file
int fd = open("alphabet.txt",O_RDONLY);
FILE *fs1 = fdopen(fd,"r");
char buff1[20];
setvbuf(fs1,buff1,_IOFBF,20);
... | code_c | code | 221 | null |
<filename>Example/Pods/Target Support Files/Pods-JJMaterialTextField_Tests/Pods-JJMaterialTextField_Tests-umbrella.h<gh_stars>100-1000
#import <UIKit/UIKit.h>
FOUNDATION_EXPORT double Pods_JJMaterialTextField_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_JJMaterialTextField_TestsVersionString[];
| code_c | code | 90 | null |
//
// Foo.h
// Holds peripherial, service and characteristic
// TODO rename
//
#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
@interface Foo : NSObject
@property CBPeripheral *peripheral;
@property CBService *service;
@property CBCharacteristic *characteristic;
@end
| code_c | code | 86 | null |
<filename>Prajjwal/day6/t2.c
//print the greatest numbers (among 3 numbers taken from user)//
#include <stdio.h>
int main()
{
int a,b,c;
printf("Enter the numbers\n");
scanf("%d %d %d", &a,&b,&c);
if (a>b && a>c)
{
printf("The greatest number is %d", a);
}
else if (b>a && b>c)
{
printf("The greatest number i... | code_c | code | 115 | null |
/* Copyright (C) 2008 Sun Microsystems, 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; version 2 of the License.
This program is distributed in the hope that it will be useful,
... | code_c | code | 1,451 | null |
<reponame>matthiasnattke/qgroundcontrol
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
... | code_c | code | 2,352 | null |
/* USB OTG (On The Go) defines */
/*
*
* These APIs may be used between USB controllers. USB device drivers
* (for either host or peripheral roles) don't use these calls; they
* continue to use just usb_device and usb_gadget.
*/
#ifndef __LINUX_USB_PHY_H
#define __LINUX_USB_PHY_H
#include <linux/notifier.h>
#in... | code_c | code | 2,320 | null |
<filename>src/images/transform_scanline.h<gh_stars>1000+
/*
* Copyright 2012 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**
* Functions to transform scanlines between packed-pixel formats.
*/
#include "SkBitmap.h"
... | code_c | code | 1,354 | null |
<filename>DuiLib/Utils/Utils.h
#ifndef __UTILS_H__
#define __UTILS_H__
#pragma once
namespace DuiLib
{
/////////////////////////////////////////////////////////////////////////////////////
//
class DUILIB_API STRINGorID
{
public:
STRINGorID(LPCTSTR lpString);
STRINGorID(unsigned int nID);
... | code_c | code | 2,606 | null |
<gh_stars>0
/***************************************************************************
* Copyright 1998-2020 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
... | code_c | code | 1,382 | null |
// WinProm Copyright 2015 <NAME>
// All rights reserved.
//
// This software is distributed under a license that is described in
// the LICENSE file that accompanies it.
//
#if !defined(AFX_ERRORFILTER_DLG_H__ECD6E801_88CC_11D4_8FA2_0040056FBD08__INCLUDED_)
#define AFX_ERRORFILTER_DLG_H__ECD6E801_88CC_11D4_8FA2_0040056... | code_c | code | 540 | null |
<filename>examples/get-started/hello_world/main/source/httpclientcompent.c
#include "esp_http_client.h"
#include "httpclientcompent.h"
static const char *TAG = "httpclient";
static esp_http_client_handle_t client;
esp_err_t _http_event_handler(esp_http_client_event_t *evt)
{
switch (evt->event_id)
{
case H... | code_c | code | 776 | null |
<filename>SnakeGame/Food.h
#ifndef FOOD_H
#define FOOD_H
#include "SDL.h"
#include <string>
#include <vector>
class Snake;
class Powerup;
class BodyPart;
class Food {
private:
SDL_Surface* texture;
int lifeTime;
Snake* snake1;
bool PositionFree( Powerup* powerup1 );
public:
Food( Snake... | code_c | code | 143 | null |
<filename>SDTheme/Classes/UIKit/UINavigationBar+SDTheme.h
//
// UINavigationBar+SDTheme.h
// Pods
//
// Created by SlashDevelopers on 2018/06/07.
// Copyright (c) 2018 SlashDevelopers. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UINavigationBar (SDTheme)
@property (nonatomic, copy) NSString *theme... | code_c | code | 117 | null |
typedef struct {
int status;
cothread_t *thread;
} async_req_t;
ssize_t async_read_simple(uv_stream_t *const stream, size_t const max, char **const outbuf);
int async_cancel(uv_req_t *const req);
static void alloc_cb(uv_handle_t *const handle, size_t const suggested_size, uv_buf_t *const buf) {
struct ... | code_c | code | 933 | null |
<gh_stars>0
/*
* Copyright (C) 2003, 2006, 2009 Apple Inc. All rights reserved.
* 2006 <NAME> <<EMAIL>>
* Copyright (C) 2007-2008 Torch Mobile, Inc.
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | code_c | code | 2,272 | null |
<reponame>kjthegod/chromium
// 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 SYNC_ENGINE_SYNCER_TYPES_H_
#define SYNC_ENGINE_SYNCER_TYPES_H_
// The intent of this is to keep all shared data ... | code_c | code | 734 | null |
<reponame>dvoegeli/adversary_emulation_library
/* <NAME> `gentilkiwi`
http://blog.gentilkiwi.com
<EMAIL>
Licence : https://creativecommons.org/licenses/by/4.0/
*/
#pragma once
#include "globals.h"
#define KULL_M_REGISTRY_HIVE_KEY_NAMED_FLAG_VOLATILE 0x0001
#define KULL_M_REGISTRY_HIVE_KEY_NAMED_FLAG_MOUNT_POINT 0x0... | code_c | code | 800 | null |
<reponame>Ameba8195/amazon-freertos<filename>vendors/realtek/sdk/amebaZ2/component/common/bluetooth/realtek/sdk/example/bt_mesh/lib/model/light_ctl.h
/**
*****************************************************************************************
* Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reser... | code_c | code | 5,345 | null |
<gh_stars>0
/**
* @file VirtualChannelReceptionIF.h
* @brief This file defines the VirtualChannelReceptionIF class.
* @date 25.03.2013
* @author baetz
*/
#ifndef VIRTUALCHANNELRECEPTIONIF_H_
#define VIRTUALCHANNELRECEPTIONIF_H_
#include "ClcwIF.h"
#include "TcTransferFrame.h"
#include "../returnvalues/HasReturnv... | code_c | code | 476 | null |
<reponame>kontais/EFI-MIPS<gh_stars>10-100
/*++
Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished
under a license and may only be used or copied in accordance
with the terms of the license. Except as permitted by such
license, no part of ... | code_c | code | 710 | null |
/*
* Copyright (C) 2016 Eistec AB
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup boards_mulle
* @{
*
* @file
* @brief Board specific configuration of direct mapp... | code_c | code | 677 | null |
<reponame>henesy/plan9-1e
#include <stdio.h>
#include <math.h>
#include "pic.h"
#include "y.tab.h"
obj *linegen(int type)
{
static double prevdx = HT;
static double prevdy = 0;
static double prevw = HT10;
static double prevh = HT5;
int i, j, some, head, ddtype, invis, chop;
double ddval, chop1, chop2, x0, y0, x1... | code_c | code | 1,352 | null |
<gh_stars>10-100
/*
*
* National Security Research Institute
*
* FELICS - Fair Evaluation of Lightweight Cryptographic Systems
*
* Copyright (C) 2015 National Security Research Institute
*
* Written in 2015 by <NAME> <<EMAIL>>
*
* This file is part of FELICS.
*
* FELICS is free software; you can... | code_c | code | 2,203 | null |
/**
\file Synapse.h
\brief Declares the synapse class.
**/
#pragma once
namespace AnimatCarlSim
{
/**
\brief Firing rate synapse model.
\details This synapse type has a weight that is a current value. It injects a portion of that weight
into the post-synaptic neuron based on the pre-synaptic neurons firing rat... | code_c | code | 186 | null |
<reponame>allnes/pp_2022_spring
// Copyright 2022 <NAME>
#ifndef MODULES_TASK_1_KITAEV_P_BLOCK_GAUSS_BLOCK_GAUSS_H_
#define MODULES_TASK_1_KITAEV_P_BLOCK_GAUSS_BLOCK_GAUSS_H_
#include <vector>
#include <random>
#include <ctime>
std::vector<int> getRandomMatrix(int row, int col);
std::vector<int> getGaussKernel(doubl... | code_c | code | 138 | null |
//
// AVFileQuery.h
// AVOS-DynamicFramework
//
// Created by lzw on 15/10/8.
// Copyright © 2015年 tang3w. All rights reserved.
//
#import "AVQuery.h"
/**
* AVFile 查询类
*/
@interface AVFileQuery : AVQuery
+ (instancetype)query;
/**
* 查找一组文件,同步方法
* @param error 通常是网络错误或者查找权限未开启
* @return 返回一组 AVFile 对象
... | code_c | code | 277 | null |
<gh_stars>1-10
/* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Common test code to test lid angle calculation.
*/
#include "accelgyro.h"
#include "host_command.h"
#include "motion_common.h"
#i... | code_c | code | 898 | null |
/*
* <NAME>
* 1125545
* <EMAIL>
*/
#ifndef WIDGETNUOVOSPORT_H
#define WIDGETNUOVOSPORT_H
#include <QWidget>
#include <QGridLayout>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <QLabel>
#include <memory>
#include "contenitore.h"
#include "allenamento.h"
#include "deepptr.h"
#include... | code_c | code | 294 | null |
<reponame>JianYT/mobile-sdk<filename>all/native/layers/NMLModelLODTreeLayer.h<gh_stars>1-10
/*
* Copyright (c) 2016 CartoDB. All rights reserved.
* Copying and using this code is allowed only according
* to license terms, as given in https://cartodb.com/terms/
*/
#ifndef _CARTO_NMLMODELLODTREELAYER_H_
#define _CAR... | code_c | code | 3,041 | null |
/*
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include <string.h>
#i... | code_c | code | 1,496 | null |
#include "connect.h"
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define DEFAULT_REPLICATION_SLOT "bottledwater"
#define APP_NAME "bottledwater"
/* The name of the logical decoding output plugin with which the replication
* slot is created. This must match the name of the Postgres... | code_c | code | 3,013 | null |
/*
Copyright (c) 2005-2017 Intel Corporation
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 appl... | code_c | code | 2,877 | null |
//<NAME>COM 2016 Ejercicio 3
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#define NDATOS_MAX 256 //Cantidad máxima de datos a leer
//estrucutra para almacenar datos del ajuste lineal
typedef struct {
double a, b, siga, sigb, chi2,sigdat;
}FitPARAMS;
//Función para fitear una recta y=a+b*x a los N... | code_c | code | 1,192 | 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"); ... | code_c | code | 530 | null |
#pragma once
#include <vector>
#include <map>
#include <functional>
#include <v8.h>
#include "V8Class.h"
#include <unordered_set>
class V8Module
{
using Callback = std::function<void(v8::Local<v8::Context> ctx, v8::Local<v8::Object> exports)>;
using ModuleMap = std::unordered_map<v8::Isolate*, std::unordered_... | code_c | code | 644 | null |
/****************************************************************************
* @file main.c
* @version V3.0
* $Revision: 3 $
* $Date: 17/05/04 1:15p $
* @brief Perform A/D Conversion with ADC single cycle scan mode.
* @note
* Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
*
... | code_c | code | 2,715 | null |
<gh_stars>1-10
/* -*- tab-width: 8; c-basic-offset: 4 -*- */
/*
* Copyright 2000 <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... | code_c | code | 3,699 | null |
// Copyright (c) Facebook, Inc. and its affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#pragma once
#include <memory>
#include <mutex>
#include <string>
#include <typeindex>
#include <typeinfo>
#include <unordered_map>
#includ... | code_c | code | 543 | null |
<reponame>ImagiaViz/inviwo
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are... | code_c | code | 809 | null |
<gh_stars>0
//
// R5Connection.h
// Red5Pro
//
// Created by <NAME> on 9/16/14.
// Copyright (c) 2014 Infrared5. All rights reserved.
//
#import <Foundation/Foundation.h>
#include "global.h"
#import "R5Configuration.h"
@protocol R5ConnectionDelegate;
/**
* @brief The main connection class for R5Pro. This est... | code_c | code | 1,117 | null |
/* ----------------------------------------------------------------------------
* Copyright (c) Huawei Technologies Co., Ltd. 2013-2019. All rights reserved.
* Description: TIME64 HEAD FILE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... | code_c | code | 1,146 | null |
<filename>xdk-asf-3.51.0/avr32/services/dsp/dsplib/generic/basic/operators/op_fix_ln.c
/*****************************************************************************
*
* \file
*
* \brief Natural logarithm operator for the AVR32 UC3.
*
* Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
*
*... | code_c | code | 626 | null |
<filename>linsched-linsched-alpha/drivers/media/dvb/dvb-usb/m920x.h
#ifndef _DVB_USB_M920X_H_
#define _DVB_USB_M920X_H_
#define DVB_USB_LOG_PREFIX "m920x"
#include "dvb-usb.h"
#define deb(args...) dprintk(dvb_usb_m920x_debug,0x01,args)
#define M9206_CORE 0x22
#define M9206_RC_STATE 0xff51
#define M9206_RC_KEY 0xff... | code_c | code | 601 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.