text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>cywd/CYSuperDemo<filename>CYSuperDemo/Pods/JJTabBarController/JJTabBarController/views/JJBarView.h<gh_stars>10-100
//
// JJBarView.h
// JJTabBarController
//
// Created by <NAME> on 05/03/2014.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
/**
* Type that describes the ... | code_c | code | 1,043 | null |
<filename>sample_project/env/include/qt/QtSensors/qsensor.h
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtSensors module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$... | code_c | code | 2,886 | null |
<filename>llvm-2.9/tools/clang/include/clang/AST/CharUnits.h
//===--- CharUnits.h - Character units for sizes and offsets ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//... | code_c | code | 1,883 | null |
<filename>quantum/rgb_matrix_animations/cycle_left_right_anim.h
#ifndef DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
RGB_MATRIX_EFFECT(CYCLE_LEFT_RIGHT)
# ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS
static HSV CYCLE_LEFT_RIGHT_math(HSV hsv, uint8_t i, uint8_t time) {
hsv.h = g_led_config.point[i].x - time;
return hsv;
}
b... | code_c | code | 149 | null |
/*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*
* File: cint_debug.c
* Purpose: CINT debug functions
*/
#include "cint_config.h"
#include "cint_po... | code_c | code | 438 | null |
/*
* WLDAP32 - LDAP support for Wine
*
* Copyright 2005 <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... | code_c | code | 5,182 | null |
#ifndef CHECKSEUM_SIZE_T
#define CHECKSEUM_SIZE_T
#if defined(NO_SIZE_T)
typedef unsigned NO_SIZE_T size_t; /* user-defined size_t */
#elif defined(CHECKSEUM_STDDEF) && !defined(CHECKSEUM_NO_STDDEF)
# include <stddef.h>
#elif defined(WIN32)
# include <BaseTsd.h> /* XXX(dinosaure): see checkseum#7 */
typedef SIZE_T s... | code_c | code | 108 | null |
<reponame>jyi2ya/artifacts<gh_stars>0
#include <stdio.h>
int main(void)
{
int n = 0, x;
while (scanf("%d", &x) == 1)
n ^= x;
printf("%d\n", n);
return 0;
}
| code_c | code | 46 | null |
<reponame>mousepawmedia/libdeps
#ifndef __GMETADATA_METAOBJECTARRAY_H
#define __GMETADATA_METAOBJECTARRAY_H
#include "cpgf/gmetadefine.h"
#include "cpgf/metadata/gmetadataconfig.h"
#include "cpgf/metadata/private/gmetadata_header.h"
namespace cpgf {
namespace metadata_internal {
template <typen... | code_c | code | 295 | null |
/* lanai.c -- Copyright 1999-2003 by <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 Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* T... | code_c | code | 24,054 | null |
<filename>S3-CLASS-10-PILE/2.c<gh_stars>1-10
#include <stdio.h>
#include <stdlib.h>
#define size 4
/* ----------------------------
------------FUNÇÕES------------
-----------------------------*/
int addData(int nPessoas, int matriz[][size])
{
printf("\nDigite 1 para SIM e 0 para NAO\n\n");
for (int linha = 0... | code_c | code | 736 | null |
#ifndef C_H
#define C_H
#include "./B.h"
#include "./Global.h"
//定义C类 - 是B类的公共派生类
class C: protected B
{
//B类的私有属性
private:
int p = 7;
//B类的保护属性及方法
protected:
int q = 8;
void f5();
//B类的公共属性及方法
public:
int r = 9;
void f6();
... | code_c | code | 101 | null |
<filename>prototype/test_scalarmult.c
#include "scalarmult.h"
#include <stdio.h>
#include <string.h>
void test_scalarmult(unsigned char const *x,
unsigned char const *a,
unsigned char const *b,
char const *test) {
unsigned char q[32];
scalarm... | code_c | code | 776 | null |
/*
** ###################################################################
** Processors: MK82FN256CAx15
** MK82FN256VDC15
** MK82FN256VLL15
** MK82FN256VLQ15
**
** Compilers: Keil ARM C/C++ Compiler
** ... | code_c | code | 4,350 | null |
//
// TKThumbnailView.h
// TKPhotoLibary
//
// Created by ZickOne on 11/16/16.
// Copyright © 2016 ZickOne. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol TKGalleryViewDatasource;
@class TKGalleryViewController;
@interface TKThumbnailView : UIView
@property (nonatomic, weak) id<TKGalleryViewDatasource>... | code_c | code | 171 | null |
#pragma once
/*
cppcryptfs : user-mode cryptographic virtual overlay filesystem.
Copyright (C) 2016-2022 <NAME> (github.com/bailey27/cppcryptfs)
cppcryptfs is based on the design of gocryptfs (github.com/rfjakob/gocryptfs)
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person o... | code_c | code | 1,050 | null |
// Copyright 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_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
#define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
#include <string>
#include <vector>
#include "base/bas... | code_c | code | 4,577 | null |
<reponame>metatooth/tusk
#ifndef TUSK_UNION_H
#define TUSK_UNION_H
#include "app.h"
namespace tusk {
class Union: public App {
public:
void usage();
int run(const std::string& afile,
const std::string& bfile,
const std::string& outfile);
};
}
#endif // TUSK_UNION_H
| code_c | code | 88 | null |
/*
* Sigma Control API DUT (station/AP)
* Copyright (c) 2010-2011, Atheros Communications, Inc.
* Copyright (c) 2011-2014, 2016, Qualcomm Atheros, Inc.
* Copyright (c) 2018-2021, The Linux Foundation
* All Rights Reserved.
* Licensed under the Clear BSD license. See README for more details.
*/
#include "sigma_d... | code_c | code | 5,538 | null |
<reponame>liaowei-zsxq/ZXingObjC<gh_stars>0
/*
* Copyright 2012 ZXing authors
*
* 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 | 434 | null |
/* tc-rl78.c -- Assembler for the Renesas RL78
Copyright (C) 2011-2017 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
GAS 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 Foundatio... | code_c | code | 10,792 | null |
#include "eeprom.h"
//*****************************************************************************
// Used to determine if the EEPROM is busy writing the last transaction to
// non-volatile storage
//
// Paramters
// i2c_base: a valid base address of an I2C peripheral
//
// Returns
// I2C_OK is returned one the... | code_c | code | 2,021 | null |
#ifndef CG_SERVER_H
#define CG_SERVER_H
#include "config.h"
#include <wayland-server-core.h>
#include <wlr/types/wlr_idle.h>
#include <wlr/types/wlr_idle_inhibit_v1.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_xdg_decoration_v1.h>
#if CAGE_HAS_XWAYLAND
#include <wlr/xwayland.h>
#endif
#include... | code_c | code | 286 | null |
/*
* 0BSD
*
* BSD Zero Clause License
*
* Copyright (c) 2019 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WAR... | code_c | code | 690 | null |
//===-- MemoryRegionInfo.h ---------------------------------------*- 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,245 | null |
<reponame>pea-pousset/gbcc
/**
* \addtogroup gbcc
* \{
* \addtogroup code_generation
* \{
*/
#ifndef CODEGEN_H
#define CODEGEN_H
#include <stdio.h>
void codegen(FILE* outfile);
#endif
/**
* \} gbcc
* \} code_generation
*/
| code_c | code | 72 | null |
<reponame>swilly22/LAGraph<filename>Experimental/Algorithm/old/LAGraph_cc_fastsv3.c
/*
LAGraph: graph algorithms based on GraphBLAS
Copyright 2019 LAGraph Contributors.
(see Contributors.txt for a full list of Contributors; see
ContributionInstructions.txt for information on how you can Contribute to... | code_c | code | 2,453 | null |
<filename>library/ui_gfx/platform_font_win.h
#ifndef __ui_gfx_platform_font_win_h__
#define __ui_gfx_platform_font_win_h__
#pragma once
#include "platform_font.h"
namespace gfx
{
class PlatformFontWin : public PlatformFont
{
public:
PlatformFontWin();
explicit PlatformFontWin(const Font... | code_c | code | 1,433 | null |
<reponame>rodrigomr/VFS
// Copyright 2018 <NAME>, <NAME>
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable... | code_c | code | 346 | null |
//
// Copyright (c) Microsoft. All rights reserved.
// See https://aka.ms/csspeech/license201809 for the full license information.
//
// speechapi_cxx_intent_recognizer.h: Public API declarations for IntentRecognizer C++ class
//
#pragma once
#include "speechapi_cxx_common.h"
#include "speechapi_cxx_string_helpers.h"
... | code_c | code | 3,882 | null |
<reponame>junfff/nf-server<filename>NFComm/NFCore/NFIRecordManager.h
/*
This file is part of:
NoahFrame
https://github.com/ketoo/NoahGameFrame
Copyright 2009 - 2018 NoahFrame(NoahGameFrame)
File creator: lvsheng.huang
NoahFrame is open-source software and you can ... | code_c | code | 1,360 | null |
<filename>JWPlayer_iOS_SDK.framework/Headers/JWCaptionStyling.h<gh_stars>0
//
// JWCaptionConfig.h
// JWPlayer-iOS-SDK
//
// Created by <NAME> on 5/4/15.
// Copyright (c) 2015 JWPlayer. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, JWEdgeStyle) {
... | code_c | code | 406 | null |
<gh_stars>0
/*++
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
Module Name:
ntassert.h
Abstract:
Defines DbgRaiseAssertionFailure, and the NT_ASSERT and NT_VERIFY macros.
Specializations of NT_ASSERT include:
NT_ASSERT_ASSUME(_exp) - In addition to the runtime... | code_c | code | 2,302 | null |
#include <stdio.h>
int main()
{
char c = 'A';
char *p;
p = &c;
printf("Address of c: %p\n", p);
printf("Address of p: %p\n", &p);
return 0;
}
| code_c | code | 48 | null |
<filename>Utilities/hdf5/H5Tbit.c
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | code_c | code | 3,662 | null |
/* $OpenBSD: devopen.c,v 1.3 2002/06/11 09:36:23 hugh Exp $ */
/* $NetBSD: devopen.c,v 1.10 2002/05/24 21:40:59 ragge Exp $ */
/*
* Copyright (c) 1997 Ludd, University of Lule}, Sweden.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provi... | code_c | code | 1,606 | null |
<reponame>team-charls/charls<gh_stars>100-1000
// Copyright (c) Team CharLS.
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "util.h"
#include <cassert>
#include <cstdint>
namespace charls {
// Purpose: a JPEG-LS context with it's current statistics.
struct jls_context final
{
int32_t A{};
i... | code_c | code | 688 | null |
/*@
XOC Release License
Copyright (c) 2013-2014, Alibaba Group, All rights reserved.
<EMAIL>
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
n... | code_c | code | 1,138 | null |
<reponame>bertilxi/Pegaso
/* svg.c - Scalable Vector Graphics */
/*
libzint - the open source barcode library
Copyright (C) 2009 <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 Softw... | code_c | code | 7,900 | null |
<filename>src/jit/impl/jit.sereg.h
/**
* \file src/jit/impl/jit.sereg.h
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licens... | code_c | code | 324 | null |
<gh_stars>1-10
//
// LocalizedStringUtilities.h
// HeartMate
//
// Created by xaoxuu on 09/03/2018.
// Copyright © 2018 xaoxuu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LocalizedStringUtilities : NSObject
/**
日期描述(今天、昨天、2018-03-07 星期三)
@param date 日期
@return 描述
*/
+ (NSString *)stringFor... | code_c | code | 182 | null |
//
// MAFMySecurity.h
// MAF
//
// Created by ctnq on 16/6/8.
// Copyright © 2016年 ctnq. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MAFMySecurity : NSObject
+(NSString *)dictToStringEncryption:(NSDictionary *)dict;
/**
字典加密 不过滤空格
*/
+(NSString *)dictToStringNoSpaceEncryption:(NSDictio... | code_c | code | 226 | null |
<reponame>capt-hb/cheritest<filename>cheri-c-tests/clang-purecap/uintcapmath.c
/*-
* Copyright (c) 2015 SRI International
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
* ("CTSRD"), as p... | code_c | code | 1,804 | null |
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <inttypes.h>
#include "java-interop.h"
#include "java-interop-gc-bridge.h"
#include "java-interop-mono.h"
#ifdef __linux__
#include <unistd.h>
#endif /* !defined (__linux__) */
#if defined (ANDROID)
#include "logger.h"
#endi... | code_c | code | 10,380 | null |
<reponame>mzahnd/EDA-TP7-Twitter<filename>src/TwitterLCD.h<gh_stars>0
#pragma once
#ifndef _TWITTERLCD_H_
#define _TWITTERLCD_H_ 1
#include <ctime> /* clock_t */
#include <list>
#include <string>
#include <curl/curl.h>
#include <LCD/LCD.h>
enum TWEETS_STATE {
INTERNAL_ERROR = -2,
INVALID_ARGS = -1,
FINISHED_O... | code_c | code | 841 | null |
<filename>src/smartpeak/include/SmartPeak/ml/OpToTensorOp.h<gh_stars>1-10
/**TODO: Add copyright*/
#ifndef SMARTPEAK_OPTOTENSOROP_H
#define SMARTPEAK_OPTOTENSOROP_H
#include <SmartPeak/ml/ActivationFunction.h>
#include <SmartPeak/ml/ActivationFunctionTensor.h>
#include <SmartPeak/ml/IntegrationFunction.h>
#include <... | code_c | code | 12,382 | null |
<gh_stars>10-100
/* $XConsortium: PclInit.c /main/3 1996/12/30 16:37:06 kaleb $ */
/*******************************************************************
**
** *********************************************************
** *
** * File: PclInit.c
** *
** * Contents:
** * Initialization c... | code_c | code | 5,555 | null |
<gh_stars>1-10
/*!
* \author <NAME> - <EMAIL>
*
* @section LICENSE
*
* Open-WBO, Copyright (c) 2013-2022, <NAME>, <NAME>, <NAME>
* UpMax, Copyright (c) 2022, <NAME>, <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentatio... | code_c | code | 1,156 | null |
//
// HXCache.h
// HXCache
//
// Created by Insomnia on 2019/3/20.
//
#ifndef HXCache_h
#define HXCache_h
#endif /* HXCache_h */
| code_c | code | 38 | null |
<filename>PBLogExample/PBLogExample/Classes/PBLog.h
/**
Copyright © 2012 <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:
* Redistributions of source code must retain the above copyright no... | code_c | code | 715 | null |
<reponame>dplbsd/soc2013<gh_stars>10-100
/***********************license start***************
* Copyright (c) 2003-2010 Cavium Inc. (<EMAIL>). All rights
* reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
... | code_c | code | 1,134 | null |
<reponame>codehz/telegram-bot-api<gh_stars>1-10
//
// Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include "telegram-bot-api/ClientParam... | code_c | code | 2,329 | null |
<reponame>chenyanmeng666/HP-Socket<filename>Linux/src/TcpPackClient.h
/*
* Copyright: JessMA Open Source (<EMAIL>)
*
* Author : <NAME>
* Website : http://www.jessma.org
* Project : https://github.com/ldcsaa
* Blog : http://www.cnblogs.com/ldcsaa
* Wiki : http://www.oschina.net/p/hp-socket
* QQ Group : 7537591... | code_c | code | 1,014 | null |
<filename>php_ssh2.h
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group ... | code_c | code | 1,671 | null |
/*
* Copyright 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 rights grant can be found
* in the file PATENTS. All contributing ... | code_c | code | 930 | null |
#pragma once
#include <MiniFB_enums.h>
#include <stdint.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
typedef struct {
HWND window;
WNDCLASS wc;
HDC hdc;
BITMAPINFO *bitmapInfo;
struct mfb_timer *timer;
bool mouse_insi... | code_c | code | 98 | null |
/*
* name-hash.c
*
* Hashing names in the index state
*
* Copyright (C) 2008 <NAME>
*/
#define NO_THE_INDEX_COMPATIBILITY_MACROS
#include "index.h"
/*
* This removes bit 5 if bit 6 is set.
*
* That will make US-ASCII characters hash to their upper-case
* equivalent. We could easily do this one whole word at ... | code_c | code | 1,546 | null |
#include "tommath_private.h"
#ifdef BN_S_MP_TOOM_SQR_C
/* LibTomMath, multiple-precision integer library -- <NAME> */
/* SPDX-License-Identifier: Unlicense */
/* squaring using Toom-Cook 3-way algorithm */
/*
This file contains code from <NAME>'s book "Matters Computational"
and the accompanying FXT-library wi... | code_c | code | 1,239 | null |
<filename>lib/mock/MockHttpServer.h
// Copyright (c) 2021 <NAME>. See LICENSE.
#ifndef ARDUINO
#pragma once
#include "base.h"
#include "mockesp.h"
typedef struct
{
char buf[128];
} httpd_req_t;
esp_err_t httpd_query_key_value(const char *qry, const char *key, char *val, size_t val_size);
esp_err_t httpd_resp_s... | code_c | code | 219 | null |
// 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 CHROMEOS_COMPONENTS_TETHER_PERSISTENT_HOST_SCAN_CACHE_H_
#define CHROMEOS_COMPONENTS_TETHER_PERSISTENT_HOST_SCAN_CACHE_H_
#include "base/macros.h... | code_c | code | 324 | null |
<reponame>beaglecode/skytools
#ifndef _TXID_H_
#define _TXID_H_
#define MAX_INT64 0x7FFFFFFFFFFFFFFFLL
/* Use unsigned variant internally */
typedef uint64 txid;
typedef struct
{
int32 __varsz; /* should not be touched directly */
uint32 nxip;
txid xmin;
txid xmax;
txid xip[1];
} ... | code_c | code | 380 | null |
<filename>src/db/db_entry.h<gh_stars>0
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#ifndef ctrlplane_db_entry_h
#define ctrlplane_db_entry_h
#include <map>
#include <tbb/atomic.h>
#include "db/db_table.h"
#include <boost/intrusive/list.hpp>
#include <boost/intrusive/set.hpp>
struct DB... | code_c | code | 909 | null |
<reponame>zanghu/nn_imp<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "debug_macros.h"
#include "io_utils.h"
int main()
{
float *blob_w_784x256 = calloc(784 * 256, sizeof(float));
CHK_NIL(blob_w_784x256);
float *blob_b_256 = calloc(256, sizeof(float));
CHK_NIL(blob_b_2... | code_c | code | 564 | null |
#if defined(CGV_GUI_FORCE_STATIC)
# define CGV_FORCE_STATIC_LIB
#endif
#ifdef MULTI_MOUSE_EXPORTS
# define CGV_EXPORTS
#endif
#include <cgv/config/lib_begin.h>
| code_c | code | 46 | null |
#ifndef __MORDOR_COROUTINE_H__
#define __MORDOR_COROUTINE_H__
// Copyright (c) 2009 - Mozy, Inc.
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <boost/noncopyable.hpp>
#include "exception.h"
#include "fiber.h"
namespace Mordor {
struct DummyVoid;
struct CoroutineAbortedException : virtual Operati... | code_c | code | 1,280 | null |
<reponame>tkat0/pynq-chainer<filename>pynq_chainer/HLS/src/include_hls/hls/hls_log_reference_tables.h<gh_stars>1-10
/*****************************************************************************
*
* Author: Xilinx, Inc.
*
* This text contains proprietary, confidential information of
* Xilinx, Inc. , is... | code_c | code | 2,401 | null |
#ifndef VIDEO_BUFFER_H
#define VIDEO_BUFFER_H
#include <QMutex>
#include <QWaitCondition>
#include "fpscounter.h"
// forward declarations
typedef struct AVFrame AVFrame;
class VideoBuffer
{
public:
VideoBuffer();
virtual ~VideoBuffer();
bool init(bool renderExpiredFrames = false);
void deInit()... | code_c | code | 403 | null |
<reponame>nistefan/cmssw
#ifndef DaqSource_DTNewROS8FileReader_h
#define DaqSource_DTNewROS8FileReader_h
/** \class DTNewROS8FileReader
* Read DT ROS8 raw data files
* From DTROS8FileReader
*
* $Date: 2015/12/17$
*/
#include "FWCore/Framework/interface/EDProducer.h"
#include <IORawData/DTCommissioning/plugins... | code_c | code | 332 | null |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Struct que descreve o cabecalho do arquivo BMP */
typedef struct cabecalho{
char inicial1;
char inicial2;
unsigned int tamanho_arquivo;
unsigned int reservado;
unsigned int deslocamento;
unsigned int tamanho_segundo_cabecalho;
u... | code_c | code | 3,154 | null |
<reponame>Ravi116/unimrcp-1.5.0
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: <NAME> <<EMAIL>>
*
* 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 Fr... | code_c | code | 666 | null |
<filename>WeChatExtension/WeChatExtension/Sources/Managers/YMVersionManager.h<gh_stars>10-100
//
// YMVersionManager.h
// WeChatExtension
//
// Created by WeChatExtension on 2018/2/24.
// Copyright © 2018年 WeChatExtension. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, TKVer... | code_c | code | 228 | null |
//
// MSUIKit.h
// MSUIKit
//
// Created by <NAME> on 9/27/21.
//
#import <Foundation/Foundation.h>
//! Project version number for MSUIKit.
FOUNDATION_EXPORT double MSUIKitVersionNumber;
//! Project version string for MSUIKit.
FOUNDATION_EXPORT const unsigned char MSUIKitVersionString[];
// In this header, you s... | code_c | code | 123 | null |
<filename>Utils/WIZnet_Driver/ioLibrary_Driver/Internet/DHCP/dhcps.c
#include "../../Ethernet/socket.h"
#include "dhcps.h"
#include <string.h>
#include <stdlib.h>
#ifdef W5500_WITH_A7
#include <applibs/log.h>
#define printf Log_Debug
#else
#include "printf.h"
#endif
//static struct dhcp_server_state dhcp_server_state... | code_c | code | 12,080 | null |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pra... | code_c | code | 1,832 | null |
<reponame>ElectroTechnique/EncoderTool
#pragma once
#include "../delay.h"
#include "Bounce2.h"
#include "EncPlexBase.h"
namespace EncoderTool
{
class EncPlex74165 : public EncPlexBase
{
public:
inline EncPlex74165(unsigned nrOfEncoders, unsigned pinLD, unsigned pinCLK, unsigned pinA, unsigned pinB... | code_c | code | 898 | null |
<filename>src/User Code/Frigate.h
// Frigate
#ifndef _Frigate
#define _Frigate
#include "GameObject.h"
class FrigateBSphere;
class Bullet;
class EnemyTank;
class Frigate : public GameObject
{
public:
Frigate();
Frigate(const Frigate& other) = delete;
Frigate& operator=(const Frigate& other) = del... | code_c | code | 304 | null |
/* StringDictionaryHASHUFFDAC.h
* Copyright (C) 2014, <NAME> & <NAME> & <NAME>
* all rights reserved.
*
* This class implements a Compressed String Dictionary based on double hashing.
* It is inspired ont the foundations described in the technique HashBB from:
*
* ==============================================... | code_c | code | 1,832 | null |
<filename>third_party/gst-plugins-bad/ext/closedcaption/gstccextractor.c
/*
* GStreamer
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; eith... | code_c | code | 4,136 | null |
/****************************************************************************
* apps/nshlib/nsh_consolemain.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 regarding copyright own... | code_c | code | 1,006 | null |
<gh_stars>1-10
/*
* icl::protoip
* Author: asuardi <https://github.com/asuardi>
* Date: November - 2014
*/
////////////////////////////////////////////////////////////
#define DEBUG 1 //1 to enable debug printf, 0 to disable debug printf
////////////////////////////////////////////////////////////
// Define FLOAT_... | code_c | code | 434 | null |
#ifndef INTERACTIVEMARKER_DCPS_IMPL_H_
#define INTERACTIVEMARKER_DCPS_IMPL_H_
#include "ccpp.h"
#include "ccpp_InteractiveMarker_.h"
#include "TypeSupportMetaHolder.h"
#include "TypeSupport.h"
#include "FooDataWriter_impl.h"
#include "FooDataReader_impl.h"
#include "FooDataReaderView_impl.h"
#include "visualization_ms... | code_c | code | 5,750 | null |
#include <stdio.h>
int main()
{
// valores entre -128 a 127
char letra_negativa = -128;
printf("La letra es: %c y su valor ASCII es: %i\n", letra_negativa, letra_negativa);
char letra = 'A';
printf("La letra es: %c y su valor ASCII es: %i\n", letra, letra);
letra = letra + 1;
printf("Ahora es: %c y su v... | code_c | code | 195 | null |
/**********************************************************************************************************
NAME : <NAME>
CLASS : SE COMPS B
ROLL NO. : 8960
BATCH : C
TITLE : LONGEST COMMON SUB-SEQUENCE
SUBMISSION DATE : 12th APRIL, 2021
***************************************************************************... | code_c | code | 1,468 | null |
//
// HHTerminalCommandLine
// taskwarrior-ios
//
// Created by david on 5/8/14.
// Copyright 2014 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol HHTerminalCommandLineDelegate;
@interface HHTerminalCommandLine : UIView
@property (nonatomic, weak) id<HHTerminalCommandLineDelegate> d... | code_c | code | 200 | null |
<gh_stars>1-10
/*
* Tencent is pleased to support the open source community by making TBase available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below.
*
* A copy of the ... | code_c | code | 23,138 | null |
/*++
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
--*/
typedef struct QUIC_PARTITIONED_HASHTABLE QUIC_PARTITIONED_HASHTABLE;
typedef struct QUIC_STATELESS_CONTEXT QUIC_STATELESS_CONTEXT;
//
// Structure that MsQuic servers use for encoding data for stateless retries and
// NEW_TOKEN ... | code_c | code | 3,419 | null |
/*
* Copyright (c) 2018 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 file PATENTS. All contribut... | code_c | code | 649 | null |
#ifndef DBUS_SERVICE_H
#define DBUS_SERVICE_H
#include "dbus-interface.h"
ShairportSync *shairportSyncSkeleton;
int start_dbus_service();
void stop_dbus_service();
int dbus_service_is_running();
#endif /* #ifndef DBUS_SERVICE_H */
| code_c | code | 67 | null |
/**
* Copyright (c) 2018, Nordic Semiconductor ASA
*
*
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions ... | code_c | code | 2,229 | null |
<reponame>glennlopez/-CS50.HarvardX
#include<stdio.h>
#include<cs50.h>
int get_negative(void);
int main(){
int i = get_negative();
printf("%i is a negative number\n", i);
return 0;
}
int get_negative(void){int n = 9999;
do{
printf("Number: ");
n = get_int();
}while... | code_c | code | 98 | null |
#include "minunit.h"
char *test_should_fail()
{
mu_assert(0 == 1, "Zero is not equal to 1 (duh).");
return NULL;
}
char *test_should_succeed()
{
mu_assert(1 == 1, "One is not equal to one.");
return NULL;
}
char *all_tests()
{
mu_suite_start();
mu_run_test(test_should_fail);
mu_run_test(test_should_succeed... | code_c | code | 103 | null |
/**
* If not stated otherwise in this file or this component's LICENSE
* file the following copyright and licenses apply:
*
* Copyright 2019 RDK Management
*
* 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 th... | code_c | code | 6,040 | null |
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 1998-2013 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
... | code_c | code | 990 | null |
/*
File: AVSynchronizedLayer.h
Framework: AVFoundation
Copyright 2010-2013 Apple Inc. All rights reserved.
*/
/*!
@class AVSynchronizedLayer
@abstract AVSynchronizedLayer is a subclass of CALayer with layer timing that synchronized with a specific AVPlayerItem.
@discussion Note that arbitrary n... | code_c | code | 732 | null |
<reponame>ToMadoRe/v4r
/**
* Copyright (C) 2012
* <NAME>, <NAME>, <NAME>
* Automation and Control Institute
* Vienna University of Technology
* Gusshausstraße 25-29
* 1170 Vienn, Austria
* ari(at)acin.tuwien.ac.at
*
* This program is free software: you can redistribute it and/or modify
*... | code_c | code | 4,294 | null |
/******************************************************************************
CytronWiFiServer.h
Cytron WiFi Shield Library Server Header File
Created by <NAME> @ Cytron Technologies Sdn Bhd
Original Creation Date: Sept 11, 2015
https://github.com/CytronTechnologies/CytronWiFiShield
Modified from ESP8266 WiFi Shiel... | code_c | code | 675 | null |
<reponame>dycodex/ESPectro32
/*
* ESPectro32_RGBLED.h
*
* Created on: Aug 19, 2017
* Author: andri
*/
#ifndef COMPONENTS_ESPECTRO32_SRC_ESPECTRO32_RGBLED_H_
#define COMPONENTS_ESPECTRO32_SRC_ESPECTRO32_RGBLED_H_
#include <WS2812.h>
#include "ESPectro32_Constants.h"
/**
* @brief RGB LED class
*
* You ca... | code_c | code | 196 | null |
#ifndef RUBYSLICC_INCLUDES_H
#define RUBYSLICC_INCLUDES_H
#include "RubySlicc_ComponentMapping.h"
#include "RubySlicc_Util.h"
#include "RubySlicc_Profiler_interface.h"
#endif
| code_c | code | 50 | null |
<gh_stars>0
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
int main()
{
char fname[50], buffer[1025];
int req, res, n;
req = open("req.fifo", O_WRONLY);
res = open("res.fifo", O_RDONLY);
if(req < 0 || res < 0)
{
... | code_c | code | 248 | null |
<reponame>ideallic/UAV_NAV
#ifndef UAVNAV_UAVNAV_H_
#define UAVNAV_UAVNAV_H_
#define CAMERARANGE 10
#define RESOLUTION_M 0.5
#define WIDTH 320
#define HEIGHT 240
#define C_PI (double)3.141592653589793
#define DEG2RAD(DEG) ((DEG) * ((C_PI) / (180.0)))
#define RAD2DEG(RAD) ((RAD) * (180.0) / (C_PI))
inline float wrapTo... | code_c | code | 172 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.