text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
/*-
* Copyright (c) 2011 Varnish Software AS
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistribution... | code_c | code | 5,676 | null |
/*
** ClanLib SDK
** Copyright (c) 1997-2009 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this softwa... | code_c | code | 3,277 | null |
/*
* Copyright (c) 2016, 2017 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* r... | code_c | code | 1,218 | null |
/*
* Copyright (c) 2002 <NAME> <<EMAIL>>
* Copyright (c) 2013 <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 Lice... | code_c | code | 2,441 | null |
/*
* Copyright (c) 1999, 2000-2001 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not ... | code_c | code | 639 | null |
#pragma once
#ifndef LADRC_H
#define LADRC_H
#include "Fpu87.h"
class LADRC {
//TD parameters
float r;
float h;
float h0;
float td_x1;
float td_x2;
//ESO parameters
float omega_o;
float b;
float beta01;
float beta02;
float beta03;
float z1 ;
float z2 ;
float z3 ;
//PD parameters
fl... | code_c | code | 248 | null |
/****************************************************************************
* gnss_pvtlog/gnss_pvtlog_main.c
*
* Copyright 2018 Sony Semiconductor Solutions Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... | code_c | code | 5,371 | null |
/******************************************************************************
This source file is part of the MoleQueue project.
Copyright 2012 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distr... | code_c | code | 820 | null |
<reponame>merckhung/cascade
// Copyright 2017-2019 VMware, Inc.
// SPDX-License-Identifier: BSD-2-Clause
//
// The BSD-2 license (the License) set forth below applies to all parts of the
// Cascade project. You may not use this file except in compliance with the
// License.
//
// BSD-2 License
//
// Redistribution and... | code_c | code | 4,965 | null |
<reponame>slashdotted/dropboxQt
/**********************************************************
DO NOT EDIT
This file was generated from stone specification "sharing"
Part of "Ardi - the organizer" project.
<EMAIL>
www.prokarpaty.net
***********************************************************/
#pragma once
#include "... | code_c | code | 878 | null |
/* Declarations and data types for RTL call insn generation.
Copyright (C) 2013-2018 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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... | code_c | code | 544 | null |
<filename>dart_list.h
// Copyright 2017 The Fuchsia 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 LIB_TONIC_DART_LIST_H_
#define LIB_TONIC_DART_LIST_H_
#include <stddef.h>
#include "third_party/dart/runtime/include/dart_a... | code_c | code | 406 | null |
<filename>_/Chapter 09/ch9/TestDeployApp/ios/Pods/HockeySDK/HockeySDK-iOS/HockeySDK.embeddedframework/HockeySDK.framework/Versions/A/Headers/BITFeedbackManager.h
/*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 2012-2014 HockeyApp, Bit Stadium GmbH.
* All rights reserved.
*
* Permission is hereby granted, free of ... | code_c | code | 4,350 | null |
/*******************************************************************************
********************************* BLUEBOTTLE **********************************
*******************************************************************************
*
* Copyright 2015 - 2016 <NAME>, The Johns Hopkins University
*
* Lice... | code_c | code | 3,699 | null |
<gh_stars>0
#include <stdlib.h>
#include <stdio.h>
// num: the number to divide
// gd: the greatest divisor to count up to
int isDivisible(int num, int gd){
int divisible = 1;
for(int i = 1; i < gd; i++){
if(num % i != 0)
divisible = 0;
}
return divisible;
}
int main(){
int fou... | code_c | code | 133 | null |
/* Copyright (c) 2011, 2012, Oracle and/or its affiliates.
Copyright (c) 2011, 2012, Monty Program Ab
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 pr... | code_c | code | 348 | null |
#pragma once
#include <string>
namespace Constants
{
namespace Bluetooth
{
namespace StellarPaymentService
{
const std::string ServiceUUID = "23d9e12d-9f60-45d3-b863-ac71d691eb02";
namespace Characteristics
{
const std::string PaymentRequest... | code_c | code | 242 | null |
<reponame>MarginC/kame<filename>netbsd/sys/arch/mvme68k/stand/netboot/if_iereg.h
/* $NetBSD: if_iereg.h,v 1.1 1996/05/17 21:18:29 chuck Exp $ */
/*
* if_sunie.h
*
* sun's ie interface
*/
/*
* programming notes:
*
* the ie chip operates in a 24 bit address space.
*
* most ie interfaces appear to be divided in... | code_c | code | 1,553 | null |
<reponame>poevoid/PogoShell
#ifndef TEXTREADER_H
#define TEXTTEADER_H
#include "../window.h"
#include "../backdrop.h"
#include "typeface.h"
#define WIDGET_TEXTREADER 0x1010
typedef struct
{
Widget w;
BackDrop *backdrop;
} TextReader;
enum {FONT_TEXT, FONT_BOLD, FONT_EMPH, FONT_BIG};
TextRe... | code_c | code | 121 | null |
<filename>IPTV/TVPlayerViewController.h
// TVPlayerViewController.h
//
// Created By <NAME> <<EMAIL>> on 2015/12/01.
// Copyright (c) 2015年 <NAME>. All rights reserved.
#import <UIKit/UIKit.h>
#import <SRPPlayerViewController/SRPPlayerViewController.h>
/**
* Player UIViewController.
*/
@interface TVPlayerViewContr... | code_c | code | 102 | null |
#ifndef TESTS_CPU_FPGA_H_
#define TESTS_CPU_FPGA_H_
#include "actors.h"
/*
* x ---> location
* v ---> value
* vc ---> virtual channel (VA represents don't care)
* mdata ---> meta data(tag)
*
*
* WrReq(x, v, vc, mdata) or WrReq(x, vc, mdata) = v
* RdReq(x, vc, mdata)
* FnReq(vc, mdata)
* WrRsp(md... | code_c | code | 1,107 | null |
// license:BSD-3-Clause
// copyright-holders:<NAME>
#ifndef MAME_MACHINE_TMP68301_H
#define MAME_MACHINE_TMP68301_H
#pragma once
#include "cpu/m68000/m68000.h"
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//*******************************************... | code_c | code | 1,048 | null |
/* Low level Unix child interface to ptrace, for GDB when running under Unix.
Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
1998, 1999, 2000, 2001, 2002, 2004
Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
... | code_c | code | 4,139 | null |
/**
* If not stated otherwise in this file or this component's LICENSE
* file the following copyright and licenses apply:
*
* Copyright 2020 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 | 521 | null |
// PartonVertex.h is a part of the PYTHIA event generator.
// Copyright (C) 2018 <NAME>.
// PYTHIA is licenced under the GNU GPL v2 or later, see COPYING for details.
// Please respect the MCnet Guidelines, see GUIDELINES for details.
// Header file for vertex information during the parton-level evolution.
#ifndef Py... | code_c | code | 600 | null |
#import "GPUImageFilter.h"
@interface GPUImageTransformFilter : GPUImageFilter
{
GLint transformMatrixUniform, orthographicMatrixUniform;
GPUMatrix4x4 orthographicMatrix;
}
// You can either set the transform to apply to be a 2-D affine transform or a 3-D transform. The default is the identity transform (the ... | code_c | code | 228 | null |
<reponame>timgates42/leetcode
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
static inline int min(int a, int b)
{
return a < b ? a : b;
}
static int minSubArrayLen(int s, int* nums, int numsSize)
{
int i, sum = 0, len = INT_MAX, start = 0;
for (i = 0; i < numsSize; i++) {
sum += nums[... | code_c | code | 258 | null |
<reponame>buffyanamin/clang-uml
/**
* tests/t00036/test_case.cc
*
* Copyright (c) 2021-2022 <NAME> <<EMAIL>>
*
* 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... | code_c | code | 482 | null |
#ifndef __ST_PPL_KERNEL_X86_INT64_EXPAND_H_
#define __ST_PPL_KERNEL_X86_INT64_EXPAND_H_
#include "ppl/kernel/x86/common/general_include.h"
namespace ppl { namespace kernel { namespace x86 {
ppl::common::RetCode expand_ndarray_int64(
const ppl::nn::TensorShape *src_shape,
const ppl::nn::TensorShape *dst_shape... | code_c | code | 116 | null |
#pragma once
#include <QMenu>
#include "neovimconnector.h"
namespace NeovimQt {
class ContextMenu final : public QMenu
{
Q_OBJECT
public:
ContextMenu(NeovimConnector* nvim, QWidget* parent) noexcept;
void neovimSendCut() noexcept;
void neovimSendCopy() noexcept;
void neovimSendPaste() noexcept;
void neovimS... | code_c | code | 155 | null |
<filename>tools-src/gnu/gcc/gcc/testsuite/gcc.dg/cpp/tr-warn2.c
/* K+R rejects use of function-like macros in non-function context.
ANSI C explicitly permits this (the macro is not expanded). */
/* { dg-do compile } */
/* { dg-options -Wtraditional } */
enum { SIGN_EXTEND = 23 };
#define SIGN_EXTEND(v) (((v) < 0... | code_c | code | 121 | null |
<reponame>mrose17/owntracks-ios<filename>OwnTracks/OwnTracks/OwnTracking.h
//
// OwnTracking.h
// OwnTracks
//
// Created by <NAME> on 28.06.15.
// Copyright © 2015-2020 OwnTracks. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Friend+CoreDataClass.h"
#import "Waypoint+CoreDataClass.h"
#import... | code_c | code | 372 | null |
#pragma once
#include <array>
#include <random>
#include <sstream>
#include <iomanip>
#include "directions.h"
class game_field
{
private:
typedef unsigned char ubyte_t;
std::array<ubyte_t, 16> _gameField;
size_t _zeroPos;
bool _fieldChanged;
private:
inline void drawLine(std::stringstream& ss, ub... | code_c | code | 978 | null |
<filename>toggle/main.c
/* toggles GPIO2 (pin 14) */
#include "osapi.h"
#include "os_type.h"
#include "gpio.h"
#include "user_interface.h"
/* ICACHE_FLASH_ATTR macro: put functions in .irom0 segment in flash */
#define MESSAGE_QUEUE_DEPTH 1
static os_timer_t os_timer;
static os_event_t queue[MESSAGE_QUEUE_DEPTH];
... | code_c | code | 385 | null |
<reponame>thealphadollar/OSLab2020<filename>Assgn6_10_17CS30033_17CS10045.submission/syscall.h<gh_stars>0
#include <stdbool.h>
#ifndef USERPROG_SYSCALL_H
#define USERPROG_SYSCALL_H
void syscall_init (void);
// implement sys call definition
void sys_exit (int status);
static bool create (const char *file, unsigned in... | code_c | code | 176 | null |
/* shout.h
*
* API for libshout, the streaming library for icecast
*
* Copyright (C) 2002-2003 the Icecast team <<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; ... | code_c | code | 2,090 | null |
//
// QL_MSShopInfoTabelViewCell.h
// Rebate
//
// Created by mini2 on 17/4/6.
// Copyright © 2017年 Rebate. All rights reserved.
//
// 我的店铺--店铺信息
//
#import "Hen_BaseTableViewCell.h"
#import "QL_ShopModel.h"
@interface QL_MSShopInfoTabelViewCell : Hen_BaseTableViewCell
///更新UI
- (void)updateUIForData:(QL_ShopInf... | code_c | code | 100 | null |
//******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | code_c | code | 34,676 | null |
<reponame>lihuaqigh/qianxunng<filename>qianxunng/Pods/AliLinkPartnerSDK/AlibcLinkPartnerSDK.framework/Headers/ALPError.h
//
// ALPError.h
// ALPLinkPartnerSDK
//
// Created by czp on 16/9/22.
// Copyright © 2016年 czp. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, LinkPartner... | code_c | code | 384 | null |
/*++
Copyright (c) 1991 Microsoft Corporation
Module Name:
dlcreg.c
Abstract:
This module accesses the registry for DLC.SYS
Contents:
DlcRegistryInitialization
LoadDlcConfiguration
LoadAdapterConfiguration
GetAdapterParameters
OpenDlcRegistryHa... | code_c | code | 7,884 | null |
/* *********************************************************************
* Broadcom Common Firmware Environment (CFE)
*
* Test commands for c3 board File: c3_tests.c
*
*
* Author: <NAME> (<EMAIL>)
*
*********************************************************************... | code_c | code | 3,089 | null |
//
// YBVideoBrowseCellData.h
// YBImageBrowserDemo
//
// Created by 杨波 on 2018/8/28.
// Copyright © 2018年 杨波. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Photos/Photos.h>
#import "YBImageBrowserCellDataProtocol.h"
NS_ASSUME_NONNULL_BEGIN
@interface YBVideoBrowseCellData : NSObject <YBImag... | code_c | code | 499 | null |
#ifndef RDAI_IOCTL_H
#define RDAI_IOCTL_H
#include <linux/ioctl.h>
#define RDAI_MAGIC 'Z'
/* Buffer Related IOCTLs */
#define ALLOC_BUFFER _IOWR(RDAI_MAGIC, 0x20, void *)
#define FREE_BUFFER _IOWR(RDAI_MAGIC, 0x21, void *)
/* Execution Related IOCTLs */
#define DEVICE_RUN_ASYNC _IOWR(... | code_c | code | 189 | null |
//--------------------------------------------------
// File: id_generator.h
// Created: 12/11/2021 6:14:13 PM
//
// Created By: nickdb
//
// Copyright (c) REX
//--------------------------------------------------
#pragma once
namespace rtl
{
using ID = card32;
namespace id_generator
{
// unique ID base... | code_c | code | 135 | null |
<gh_stars>1-10
/*
** mruby/debug.h - mruby debug info
**
** See Copyright Notice in ../mruby.h
*/
#ifndef MRUBY_DEBUG_H
#define MRUBY_DEBUG_H
#if defined(__cplusplus)
extern "C" {
#endif
typedef enum mrb_debug_line_type {
mrb_debug_line_ary = 0,
mrb_debug_line_flat_map = 1
} mrb_debug_line_type;
typedef struct ... | code_c | code | 447 | null |
<filename>bin/gnu_regex/regcomp.c
/* Extended regular expression matching and search library.
Copyright (C) 2002,2003,2004,2005,2006,2007,2009
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>.
The GNU C Library is free software; you can redistr... | code_c | code | 32,720 | null |
/**
* \file dnn/src/fallback/elemwise_multi_type/opr_impl.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 License is distrib... | code_c | code | 636 | null |
//------------------------------------------------------------------------------
// GB_AxB_saxpy3_slice_quick: construct a single task for GB_AxB_saxpy3
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved.
// SPDX-License... | code_c | code | 894 | null |
/*
BMP085.h - wrapper for the BMP085 Extended Example Code by <NAME>
Created by <NAME>, 2012
Released into the public domain.
*/
#ifndef BMP085_h
#define BMP085_h
#include "Arduino.h"
class BMP085
{
public:
void setup();
void sample();
short getLastTemperature();
long getLastPressur... | code_c | code | 146 | null |
/*
Copyright <NAME> 2008-2014
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)
*/
#ifndef MSGPACK_PREDEF_COMPILER_COMEAU_H
#define MSGPACK_PREDEF_COMPILER_COMEAU_H
#include <msgpack/predef/version_number.h>
#include <msg... | code_c | code | 495 | 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 THIRD_PARTY_BLINK_PUBLIC_COMMON_FEATURE_POLICY_FEATURE_POLICY_H_
#define THIRD_PARTY_BLINK_PUBLIC_COMMON_FEATURE_POLICY_FEATURE_POLICY_H_
#includ... | code_c | code | 3,208 | null |
/*
* Broadcom specific AMBA
* ChipCommon Power Management Unit driver
*
* Copyright 2009, <NAME> <<EMAIL>>
* Copyright 2007, 2011, Broadcom Corporation
* Copyright 2011, 2012, <NAME> <<EMAIL>>
*
* Licensed under the GNU/GPL. See COPYING for details.
*/
#include "bcma_private.h"
#include <linux/export.h>
#incl... | code_c | code | 5,655 | null |
<gh_stars>10-100
// Copyright 2021 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | code_c | code | 6,730 | null |
#ifndef __MDFN_CHEAT_FORMATS_GB_H
#define __MDFN_CHEAT_FORMATS_GB_H
namespace Mednafen
{
extern const std::vector<CheatFormatStruct> CheatFormats_GB;
}
#endif
| code_c | code | 46 | null |
<filename>pyjit/core/pyjit.c<gh_stars>0
#include "pyjit.h"
__thread _PyFrameEvalFunction orig_eval_frame;
__thread int extra_slot;
__thread pyjit_options_t pyjit_options;
void pyjit_free(void *object) {
pyjit_header_t *header = (pyjit_header_t *)object;
header->func = NULL;
if (header->dlhandle != NULL) {
d... | code_c | code | 1,163 | null |
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_VM_COMPILER_BACKEND_BLOCK_SCHEDULER_H_
#define RUNTIME_VM_COMPILER_BACKEND_BLOCK_SCHEDU... | code_c | code | 262 | null |
<reponame>AlamyLiu/tf-a-tests
/*
* Copyright (c) 2018, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <platform.h>
#include <psci.h>
/* State IDs for local power states on SGI platforms. */
#define SGI_PS_RUN_STATE_ID 0 /* Valid for CPUs and Clusters */
#define SGI_PS_RET... | code_c | code | 366 | null |
/*
* auth.h - Handle SiriDB authentication.
*
* author : <NAME>
* email : <EMAIL>
* copyright : 2016, Transceptor Technology
*
* changes
* - initial version, 10-03-2016
*
*/
#pragma once
#include <stddef.h>
#include <siri/net/clserver.h>
#include <qpack/qpack.h>
#include <siri/net/protocol.h... | code_c | code | 197 | null |
<reponame>equalsraf/vim-qt<filename>src/qt/vimaction.h<gh_stars>10-100
#ifndef __GUI_QT_VIMACTION__
#define __GUI_QT_VIMACTION__
#include <QAction>
#include "qvimshell.h"
class VimAction: public QAction
{
Q_OBJECT
public:
VimAction(vimmenu_T *, QObject* );
protected slots:
void actionTriggered();
private:
vimme... | code_c | code | 107 | null |
<filename>src/tg/autoschedule/utils.h
#ifndef TVM_TG_AUTOSCHEDULE_UTILS_H_
#define TVM_TG_AUTOSCHEDULE_UTILS_H_
#include <unordered_map>
#include <unordered_set>
#include <tvm/tir/expr.h>
// #include <tvm/tir/ir_pass.h>
// #include <tvm/arith/analyzer.h>
#include <tvm/te/operation.h>
#include <tvm/runtime/registry.h>... | code_c | code | 463 | null |
<reponame>bradfordb-vmware/gpdb
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CCTEInfo.h
//
// @doc:
// Information about CTEs in a query
//------------------------------------------------------------------------... | code_c | code | 2,165 | null |
<reponame>JinfeiChen/IMSForm
//
// IMSTagView.h
// IMSForm
//
// Created by cjf on 8/1/2021.
//
#import <IMSForm/IMSFormView.h>
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface IMSTagViewUIModel : NSObject
@property (nonatomic, strong) NSString * _Nonnull text;
@property (nonatomic, strong) U... | code_c | code | 567 | null |
"rotatefont {[mode][mode options][rotation options][shared options][files]}*\n",
"rotatefont [other options]\n",
"\n",
"This program is based on the 'tx' program. Without the rotation options, this\n",
"program behaves exactly like the tx program. See 'tx -u' for a list of all\n",
"options, and 'tx -h' for a discussion... | code_c | code | 1,162 | null |
<filename>inference/inference/module/nn/LayerNorm.h
/**
* Copyright (c) Facebook, Inc. and its affiliates.
* 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.
*/
#pragma once
#include <cereal/access.hpp>
#incl... | code_c | code | 386 | null |
// ************************
// *** CLASS DICTIONARY ***
// ************************
#ifndef _DICTIONR_H_
#define _DICTIONR_H_
#include "pair.h"
#include <stdio.h>
class Dictionary
/*!
This class implements a linked list whose entries are Pairs (see below).
Dictionaries are typically... | code_c | code | 307 | null |
/*
* $Id$
* keadataset.h
*
* Created by <NAME> on 01/08/2012.
* Copyright 2012 LibKEA. All rights reserved.
*
* This file is part of LibKEA.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to d... | code_c | code | 1,268 | null |
<filename>src/nwpw/nwpwlib/pseudopotential/pred_cor.h
/*
$Id$
*/
#ifndef _PRED_CORR_H_
#define _PRED_CORR_H_
/* Pred_Corr.h - 6/9/95
author - <NAME>
This file contains the 5th order predictor-corrector
formulas for integrating inward and outward.
This file also contains 5th order derivatives.
*/
extern d... | code_c | code | 251 | null |
/* Copyright (c) 2014, The Linux Foundation. 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 c... | code_c | code | 2,828 | null |
/*
* Copyright (c) 1980, 1988, 1993
* The Regents of the University of California. 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... | code_c | code | 1,509 | null |
/*
* edge.h - a graph edge
* Copyright (C) 2010 <NAME>
* www.martinbroadhurst.com
*/
#ifndef EDGE_H
#define EDGE_H
#include "vertex.h"
typedef struct {
MBvertex *from;
MBvertex *to;
int weight;
} MBedge;
MBedge * MBedge_create(MBvertex* from, MBvertex *to, int weight);
void MBe... | code_c | code | 169 | null |
/*
* Copyright (C) 2015 <NAME>
* All rights reserved.
*/
#pragma once
#include <memory>
#include <string>
#include "../common/task.h"
#include "../common/vec.h"
#include "SDL.h"
#include "../sail/game_struct.h"
#include "../gfx/gl/driver.h"
#include "../common/aabb.h"
#include "../effects/envmap.h"
#include "../ef... | code_c | code | 300 | null |
<gh_stars>1-10
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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,514 | null |
#ifndef __SW_HASHMAP_H
#define __SW_HASHMAP_H
typedef struct swHashMap_node* swHashMap;
void swHashMap_free(swHashMap *hm);
int swHashMap_add(swHashMap *hm, char *key, uint16_t key_len, void *data);
void swHashMap_add_int(swHashMap *hm, uint64_t key, void *data);
void* swHashMap_find(swHashMap *hm, char *key, uint16_... | code_c | code | 251 | null |
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#ifndef __systemTasks_h__
... | code_c | code | 197 | null |
<filename>Example/TLKeyboard/TLAppDelegate.h
//
// TLAppDelegate.h
// TLKeyboard
//
// Created by xieyingliang on 12/24/2018.
// Copyright (c) 2018 xieyingliang. All rights reserved.
//
@import UIKit;
@interface TLAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
... | code_c | code | 92 | null |
<gh_stars>10-100
#include "app_ac_dev.h"
#include "app_modbus.h"
#include "app_console.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
void app_main()
{
xTaskCreate(modebus_task,"modebus_task",1024*80,NULL,5,NULL);
app_console_init();
app_console_run();
} | code_c | code | 80 | null |
<filename>src/client/api/streaming.h
/** //
* Copyright (c) 2013-2018, The Kovri I2P Router Project //
* ... | code_c | code | 4,050 | null |
#include "utils.h"
/* points */
point_t *point_create(const char ch, double x, double y)
{
point_t *point = malloc(sizeof(*point));
if (NULL == point)
printf("That's bad\n");
if (NULL != point) {
point->x = x;
point->y = y;
point->n = ch;
}
return point;
}
enum GEN_ERR p... | code_c | code | 636 | null |
#ifndef learner_h
#define learner_h
#include <string>
#include <unordered_map>
#include "rapidjson/document.h"
#include "AlgoInput.h"
#include "Model.h"
#include "TrainingRoute.h"
class Learner {
private:
std::unordered_map<std::string, TrainingRoute> allroutes;
Model model;
static AlgoInp... | code_c | code | 769 | null |
/*
* Copyright (c) 2013 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 | 1,206 | null |
<reponame>OpenPSS/pss-mono<gh_stars>0
/* $OpenBSD: glob.c,v 1.26 2005/11/28 17:50:12 deraadt Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source... | code_c | code | 3,135 | null |
/*
* Copyright (c) 1994, 1995, 1996
* The Regents of the University of California. 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... | code_c | code | 3,079 | null |
<reponame>SPontadit/PathTracer<gh_stars>0
#pragma once
#ifndef __HITABLE_LIST_H_INCLUDED__
#define __HITABLE_LIST_H_INCLUDED__
#include "Hitable.h"
class HitableList : public Hitable
{
public:
~HitableList() = default;
HitableList(HitableList const&) = default;
HitableList(HitableList&&) = default;
HitableList... | code_c | code | 208 | null |
//
// JOObject.h
// JOBridge
//
// Created by Wei on 2018/9/21.
// Copyright © 2018年 Wei. All rights reserved.
//
#if __arm64__
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <UIKit/UIKit.h>
#import "JODefs.h"
typedef struct JOBOXABLE CGRect JOBoxCGRect;
typedef struct JOBOXABLE ... | code_c | code | 731 | null |
/*
---------------------------------------------------------------------------
Copyright (c) 1998-2013, <NAME>, Worcester, UK. All rights reserved.
The redistribution and use of this software (with or without changes)
is allowed without the payment of fees or royalties provided that:
source code distributions inclu... | code_c | code | 2,043 | null |
#ifndef __HTTPD_DACP_H__
#define __HTTPD_DACP_H__
#include "httpd.h"
int
dacp_init(void);
void
dacp_deinit(void);
void
dacp_request(struct evhttp_request *req, struct httpd_uri_parsed *uri_parsed);
int
dacp_is_request(const char *path);
#endif /* !__HTTPD_DACP_H__ */
| code_c | code | 78 | null |
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <<EMAIL>> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy m... | code_c | code | 315 | null |
<filename>chromium/components/webp_transcode/webp_network_client.h
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_WEBP_TRANSCODE_WEBP_NETWORK_CLIENT_H_
#define COMPONENTS_WEBP_TRANSC... | code_c | code | 258 | null |
//
// gfastats-functions.h
//
//
// Created by <NAME> on 12/30/21.
//
#ifndef GFASTATS_FUNCTIONS_H
#define GFASTATS_FUNCTIONS_H
#include <gfastats-global.h>
#include <memory>
#include <chrono>
#include <cstring>
#include <sstream>
#include <algorithm>
//typedef
typedef std::tuple<char, unsigned int, char, unsigned... | code_c | code | 1,543 | null |
<reponame>chucktilbury/common-cpp
/**
* @file var_table.h
*
* @brief
*
*/
#ifndef __VAR_TABLE_H__
#define __VAR_TABLE_H__
#include "str_table.h"
typedef enum {
VT_NONE,
VT_UNUM,
VT_INUM,
VT_FNUM,
VT_BOOL,
VT_ADDR, // same as a unum
VT_STR,
} var_type_t;
#define VAR_TYPE_TO_STR(v) ( \... | code_c | code | 509 | null |
#pragma once
// Name: Hydroneer, Version: 1.7.1
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Script Structs
//-------------------------------------------------... | code_c | code | 1,012 | null |
#ifndef __SYMBOLS_H__
#define __SYMBOLS_H__
#define FILE_END 0
#define LITERAL_INTEGER 1
#define LITERAL_FLOAT 2
#define KEYWORD_MAIN 10
#define LEFT_CURLY_BRACKET 100
#define RIGHT_CURLY_BRACKET 101
#define LEFT_BRACKET 102
#define RIGHT_BRACKET 103
#define OPERATOR_UNARY 200
#d... | code_c | code | 123 | null |
/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/loader.h,v 1.28 2003/11/06 18:38:14 tsi Exp $ */
/*
*
* Copyright 1995-1998 by Metro Link, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the abo... | code_c | code | 2,866 | null |
/*-
* Copyright (c) 2002, 2003 <NAME>, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list o... | code_c | code | 3,057 | null |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* editor_drawing.c :+: :+: :+: ... | code_c | code | 1,364 | null |
/*
* mode_common.h
*
* Created on: Aug 29, 2020
* Author: tuannv
*/
#ifndef APPLICATION_MODE_MODE_COMMON_H_
#define APPLICATION_MODE_MODE_COMMON_H_
#include <application/pid/pid.h>
#include <application/timer/timer.h>
#include <application/params/params.h>
#include <application/user_define.h>
#include <ap... | code_c | code | 154 | null |
<reponame>malbx/willOS
/** @file */
#ifndef MMU_PAGING_H
#define MMU_PAGING_H
#include <core/multiboot.h>
#include <mmu/frame.h>
#include <stdint.h>
#include <sys/types.h>
#define PAGE_ENTRIES 512
#define P4_TABLE 0xfffffffffffff000
/// Specifies whether the mapped page is loaded in memory.
#define PAGING_FLAG_P... | code_c | code | 1,637 | null |
<filename>source/component/3rd-party/btstack/raw/test/avdtp/sine_encode_decode_ring_buffer_test.c
/*
* Copyright (C) 2016 BlueKitchen GmbH
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions ... | code_c | code | 2,888 | null |
// Copyright (c) 2006-2008 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 BASE_WIN_UTIL_H__
#define BASE_WIN_UTIL_H__
#include <windows.h>
#include <aclapi.h>
#include <string>
#include "base/keyboard_codes.h... | code_c | code | 1,228 | null |
#ifndef HPUH_H
#define HPUH_H
#include "Arduino.h"
/* HPUH-can library
MIT license
written by <NAME>
*/
#define SPI_CS_PIN 10
#define INTERR_ID 0 //pin 2
class HPUH {
private:
unsigned char buf[64];
unsigned int combineBytes(unsigned char low, unsigned char high);
unsigned int rpm;
float tps;
unsign... | code_c | code | 315 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.