text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
#define MAIL_PORT 587
#define DATA_INTERVAL 30 // time in millis between heartbeat and climate data sends
#define MQTT_CLIENT_ID "sumpAlarm" // MQTT Unique Client ID can be changed if preferred
#define STATUS_TOPIC_ALARM "status/basement/sumpalarm/alarm"
#define STATUS_TOPIC_CONTROLLER "status/basement/sumpalarm//hear... | code_c | code | 288 | null |
/*
pbrt source code is Copyright(c) 1998-2016
<NAME>, <NAME>, and <NAME>.
This file is part of pbrt.
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 copyr... | code_c | code | 731 | null |
#pragma once
#include <cstdint>
#include <SFML/Graphics/Rect.hpp>
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/Graphics/RenderTexture.hpp>
#include "SFML/VertexArray2.h"
#include "SFML/View2.h"
class Panel;
class Sprite2;
struct SpriteShaderCache;
class UIObject;
class Surface
{
protected:
sf::Rectang... | code_c | code | 660 | null |
#pragma once
#include "Mieic.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
unsigned short int InicialMenu(); //Funcao que apresenta o Menu inicial
void InicialOptions(Mieic & TheCourse); //Funcao que direciona a escolha do utilizador para a funcionalidade de ... | code_c | code | 233 | null |
#pragma once
#include "missile.h"
#include "DamageSource.h"
class CBolt :
public CMissile,
public IDamageSource
{
typedef CMissile inherited;
u16 m_thrower_id;
public:
CBolt(void);
virtual ~CBolt(void);
virtual void OnH_A_Chield();
virtual void OnEvent(NET_Packet& P, u16 type);
virtual bool Activate();
vir... | code_c | code | 240 | null |
<reponame>ghsecuritylab/tomato_egg
/*
* xor.c : Multiple Devices driver for Linux
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000,
* <NAME>, <NAME>, <NAME>, <NAME>.
*
* Dispatch optimized RAID-5 checksumming functions.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms... | code_c | code | 1,024 | null |
<reponame>MariaHammer/opensim-core_HaeufleMuscle<filename>OpenSim/Moco/Archive/InverseMuscleSolver/DeGrooteFregly2016MuscleStandalone.h
#ifndef OPENSIM_DEGROOTEFREGLY2016MUSCLESTANDALONE_H_
#define OPENSIM_DEGROOTEFREGLY2016MUSCLESTANDALONE_H_
/* -------------------------------------------------------------------------... | code_c | code | 5,037 | null |
<reponame>zjtheone/postgres_cluster
#include "postgres.h"
#include "access/clog.h"
#include "storage/lwlock.h"
#include "utils/hsearch.h"
#include "ddd.h"
void MtmGraphInit(MtmGraph* graph)
{
memset(graph->hashtable, 0, sizeof(graph->hashtable));
}
static inline MtmVertex* findVertex(MtmGraph* graph, GlobalTran... | code_c | code | 580 | null |
<gh_stars>1-10
//
// SendBirdVideoChat.h
// SendBirdVideoChat
//
// Created by <NAME> on 1/10/19.
// Copyright © 2019 SendBird. All rights reserved.
//
#import <SendBirdSDK/SendBirdSDK.h>
#import <UIKit/UIKit.h>
#import <WebRTC/WebRTC.h>
//! Project version number for SendBirdVideoChat.
FOUNDATION_EXPORT double S... | code_c | code | 262 | null |
<filename>TZTV/TZTV/Category/UIViewController+/OTSDataNaviBtn.h
//
// OTSDataNaviBtn.h
// TZTV
//
// Created by Luosa on 2016/11/8.
// Copyright © 2016年 Luosa. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OTSDataNaviBtn : UIButton
@property(nonatomic, copy) NSString *href;
@property(nonatomic, st... | code_c | code | 119 | null |
/* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#ifndef META_LISTSPACESPROCESSOR_H_
#define META_LISTSPACESPROCESSOR_H_
#include "meta/processors/BaseProcessor.h"
nam... | code_c | code | 237 | null |
/*
** get_next_line.h for get_next_line.h in /home/peixot_b/Depot/CPE/CPE_2015_getnextline
**
** Made by <NAME>
** Login <<EMAIL>>
**
** Started on Tue Jan 12 15:07:41 2016 <NAME>
** Last update Mon Mar 14 13:12:49 2016 <NAME>
*/
#ifndef READ_SIZE
# define READ_SIZE (4500)
#endif /* !READ_SIZE */
#ifndef GET_NEX... | code_c | code | 141 | null |
<gh_stars>10-100
/* Copyright (c) 2015, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/* _GNU_SOURCE defined by ODP ThunderX Makefile triggers
* ethtool compilation error.
*
* TODO: use odp_posix_extensions.h header if possible
*/
#ifdef HAVE_THUNDERX
#undef _GNU_SOURCE
... | code_c | code | 1,136 | null |
//
// Created by yasha on 18.11.2019.
//
#ifndef LAB_01_PARSER_JSONEXEPTION_H
#define LAB_01_PARSER_JSONEXEPTION_H
#include "Json.h"
#include <exception>
class JsonException : public std::exception
{
public:
const char*what() const noexcept
{
return "Error: Wrong input\n";
}
};
#endif //LAB_01_P... | code_c | code | 97 | null |
<filename>src/p7_evopipeline.c
/* H3's accelerated seq/profile comparison pipeline
* Contents:
* 1. P7_PIPELINE: allocation, initiazation, destruction
* 2. Setting pipeline for next target or model
* 3. Testing bitscore/E-value against reporting/inclusion thresholds
* 4. Statistics output from a completed ... | code_c | code | 14,748 | null |
/*
Copyright (c) 2015, Plume Design Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | code_c | code | 1,396 | null |
<gh_stars>1-10
/*
* Copyright 2013 Red Hat 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; either version 2 of the License, or
* (at your option) any later version.
*
* This progr... | code_c | code | 5,370 | null |
<reponame>jeffrizzo/zephyr<filename>subsys/random/rand32_xoroshiro128.c<gh_stars>1-10
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: CC0-1.0
*
* Based on code written in 2016 by <NAME> and <NAME>
* (<EMAIL>)
*
* To the extent possible under law, the author has dedicated all copyright
* ... | code_c | code | 948 | null |
<filename>cpp_version/GridFun2D.h
#ifndef _GridFun2D_h
#define _GridFun2D_h
#include<stdio.h>
#include<vector>
#include<cmath>
#include"DoubleArray2D.h"
class GridFun2D{
public:
Math270A::DoubleArray2D values;
double hx, xMin, xMax;
double hy, yMin, yMax;
long xPanel, yPanel;
GridFun2D(){initialize... | code_c | code | 1,330 | null |
#include "game.h"
#include "assets.h"
#include "scene_playground.h"
void game_init(Game* game, fw64Engine* engine) {
game->engine = engine;
chase_camera_init(&game->chase_cam, engine);
game->scene = fw64_scene_load(game->engine->assets, FW64_ASSET_scene_playground, NULL);
fw64Node *node = fw64_scene... | code_c | code | 514 | null |
<reponame>aaliomer/exos
/*
* Copyright (C) 1997 Massachusetts Institute of Technology
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, using and/or copying this software,
* you agree that you have read, understood, and will comply with the
* following ter... | code_c | code | 1,168 | null |
<filename>YTproject/Class/Store/Views/BuyCell.h<gh_stars>0
//
// BuyCell.h
// YTproject
//
// Created by suhuahao on 2018/7/18.
// Copyright © 2018年 suhuahao. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BuyCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIButton *titleBtn;
@end
| code_c | code | 90 | null |
// util/const-integer-set-inl.h
// Copyright 2009-2011 Microsoft Corporation
// See ../../COPYING for clarification regarding multiple 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 L... | code_c | code | 751 | null |
/*
* mehstation - Video widget.
* A video widget is an embedded image widget
* having an update method.
*
* Copyright © 2015 <NAME>
*/
#pragma once
#include <SDL2/SDL.h>
#include <glib.h>
#include "view/image.h"
#include "view/video.h"
#include "view/window.h"
#include "view/widget_image.h"
#include "system/tr... | code_c | code | 216 | null |
<filename>RenderSystems/Direct3D11/include/OgreMonitorInfo.h
#ifndef __OGREMONITORINFO_H__
#define __OGREMONITORINFO_H__
#include "OgreD3D11Prerequisites.h"
#include "ogrestd/map.h"
namespace Ogre
{
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
class _OgreD3D11Export MonitorInfo
{
public :
MonitorInfo... | code_c | code | 268 | null |
<filename>src/c/src/zk_log.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 ownership. The ASF licenses this file
* to you under the Apache License, Versio... | code_c | code | 1,381 | null |
#include "../inc/libmx.h"
void mx_pop_front(t_list **head) {
if (head == NULL || *head == NULL)
return;
t_list *temp = *head;
*head = (*head)->next;
free(temp);
temp = NULL;
}
| code_c | code | 59 | null |
<gh_stars>0
/* Test for logn: rand */
#define NX 300
#define FNAME "t8"
#define MAXERROR 40
DATA x[NX] ={
22559,
13967,
17497,
13022,
7241,
14609,
16965,
16868,
24944,
27964,
17788,
20953,
13561,
21730,
17604,
14642,
15053,
23278,
19798,
17415,
7455,
16868,
23615... | code_c | code | 1,652 | null |
void
movestack(const Arg *arg) {
Client *c = NULL, *p = NULL, *pc = NULL, *i;
if (!selmon->sel)
return;
if(arg->i > 0) {
/* find the client after selmon->sel */
for(c = selmon->sel->next; c && (!ISVISIBLE(c) || c->isfloating); c = c->next);
if(!c)
for(c = selmon->clients; c && (!ISVISIBLE(c) || c->isfloa... | code_c | code | 360 | null |
<filename>thirdparty/ffs/ffs/fm/progs/server.c<gh_stars>1-10
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#undef FD_SETSIZE
#define FD_SETSIZE 1024
#include <winsock.h>
#define getpid() _getpid()
#define getcwd(a,b) _getcwd(a,b)
#define __ANSI... | code_c | code | 20,950 | null |
/*
* @Author: AGOGIN
* @Date: 2019-07-28 16:09:04
* @Last Modified by: AGOGIN
* @Last Modified time: 2019-07-28 16:09:04
*/
#include <stdio.h>
void ShellSort_1(int* nums, int q, int r) {
int numsSize = r - q + 1;
int i, j, temp;
int* p;
int interval[] = { // Sedgewick增量
1073643521... | code_c | code | 338 | null |
#include <stdio.h>
int main()
{
int binary_num = 0, x=0, result=0, n = 1;
puts("Enter a binary number (at most 5 digits)");
scanf("%d", &binary_num);
x = binary_num;
while(x > 0)
{
if(x % 2)
{
result += n;
}
x = x/10;
... | code_c | code | 117 | null |
<gh_stars>1000+
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.open... | code_c | code | 766 | null |
#pragma once
#include<string>
#include "InventoryMenu.h"
#include "ReservationMenu.h"
namespace Project2 {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace Syst... | code_c | code | 3,106 | null |
<reponame>Alfret/Lingon<gh_stars>0
// MIT License
//
// Copyright (c) 2019 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the r... | code_c | code | 7,448 | null |
<reponame>shell832/QBoot
/*
* Most of this source has been derived from the Linux USB
* project:
* (C) Copyright <NAME> 1999
* (C) Copyright <NAME> 1999-2001
* (C) Copyright <NAME> 1999
* (C) Copyright <NAME> 1999
* (C) Copyright <NAME> 1999 (new USB architecture)
* (C) Copyright <NAME> 2000
* (C) Copyright <N... | code_c | code | 7,507 | null |
// Copyright 2014 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 TOOLS_GN_C_INCLUDE_ITERATOR_H_
#define TOOLS_GN_C_INCLUDE_ITERATOR_H_
#include <stddef.h>
#include <string_view>
#include "base/macros.h"
#incl... | code_c | code | 521 | null |
<gh_stars>100-1000
namespace std __attribute__ ((__visibility__ ("default"))) {
template<typename _Alloc>
class allocator;
template<class _CharT>
struct char_traits;
template<typename _CharT, typename _Traits = char_traits<_CharT>,
typename _Alloc = alloc... | code_c | code | 54,393 | null |
/*
* Based on MPC8560 ADS and arch/ppc tqm85xx ports
*
* Maintained by <NAME> (see MAINTAINERS for contact information)
*
* Copyright 2008 Freescale Semiconductor Inc.
*
* Copyright (c) 2005-2006 DENX Software Engineering
* <NAME> <<EMAIL>>
*
* Based on original work by
* <NAME> <<EMAIL>>
* Copyright ... | code_c | code | 1,388 | null |
<filename>include/nanomsg/transports/ws/ws.c
/*
Copyright (c) 2012-2013 250bpm s.r.o. All rights reserved.
Copyright (c) 2013 GoPivotal, Inc. All rights reserved.
Copyright (c) 2014 Wirebird Labs LLC. All rights reserved.
Copyright 2015 <NAME> <<EMAIL>>
Permission is hereby granted, free o... | code_c | code | 1,339 | null |
<gh_stars>0
#pragma once
// CDialogue3 dialog
class CDialogue3 : public CDialog
{
DECLARE_DYNAMIC(CDialogue3)
public:
CDialogue3(CWnd* pParent = NULL); // standard constructor
virtual ~CDialogue3();
// Dialog Data
enum { IDD = IDD_DIALOG3 };
protected:
virtual void DoDataExchange(CDataExch... | code_c | code | 253 | null |
// Copyright (c) 2009 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL: https://github.com/CGAL/cgal/blob/releases/CGAL-5.0.2/Mesh_3/include/CGAL/Mesh_3/Triangle_accessor_primitive.h $
// $Id: Triangle_accessor_primitive.h 254d60f 2019-10-19T15:23:19+02... | code_c | code | 724 | null |
#pragma once
#include <iostream>
#include "../GUI/TextView.h"
#include "../Sprite.h"
class Button : public Sprite {
public:
TextView* tv;
std::string data = "";
Button();
Button(Texture*, SDL_Rect);
Button(SDL_Rect);
Button(Texture*);
Button(std::string, Font, SDL_Renderer*, int x, int y);
Button(std::strin... | code_c | code | 142 | null |
#include "f2c.h"
#include "blaswrap.h"
/* Subroutine */ int clatrz_(integer *m, integer *n, integer *l, complex *a,
integer *lda, complex *tau, complex *work)
{
/* System generated locals */
integer a_dim1, a_offset, i__1, i__2;
complex q__1;
/* Builtin functions */
void r_cnjg(complex *, comple... | code_c | code | 1,435 | null |
<filename>NPSVisor/SVisor/svisor/include/pVarSpin.h
//-------- PVarSpin.h --------------------------------------------------------
#ifndef PVarSpin_H_
#define PVarSpin_H_
//----------------------------------------------------------------------------
#include "precHeader.h"
//--------------------------------------------... | code_c | code | 428 | null |
/* ----------------------------------------------------------------------- *
*
* Copyright 1996-2009 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for
* the specific copyright holders.
*
* Redistribution and use in source and binary forms, with or wit... | code_c | code | 2,685 | null |
<reponame>google-ar/chromium<gh_stars>1000+
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_SETTIN... | code_c | code | 335 | null |
<gh_stars>1-10
#pragma once
#include <libio/BufLine.h>
#include <libio/Format.h>
#include <libio/Handle.h>
#include <libsystem/process/Process.h>
namespace IO
{
class InStream :
public Reader,
public RawHandle
{
private:
RefPtr<Handle> _handle;
public:
using Reader::read;
InStream() : _handle{... | code_c | code | 1,117 | null |
/***
PKCS7 module for lua-openssl binding
@module pkcs7
@usage
pkcs7 = require('openssl').pkcs7
*/
#include "openssl.h"
#include <openssl/pkcs7.h>
#include "private.h"
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) \
|| (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2090000fL)
#define OPENSSL_USE_M_A... | code_c | code | 4,057 | null |
// Timer Interrupt handler
#include "include/types.h"
#include "include/param.h"
#include "include/riscv.h"
#include "include/sbi.h"
#include "include/spinlock.h"
#include "include/timer.h"
#include "include/printf.h"
#include "include/proc.h"
struct spinlock tickslock;
uint ticks;
void timerinit() {
initlock(&... | code_c | code | 297 | null |
/*
* Copyright 2015 Freescale Semiconductor, Inc.
*
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <command.h>
#include <netdev.h>
#include <malloc.h>
#include <fsl_mdio.h>
#include <miiphy.h>
#include <phy.h>
#include <fm_eth.h>
#include <asm/io.h>
#include <exports.h>
#include <asm/ar... | code_c | code | 901 | null |
/*
* Cron. Execute commands stored in /usr/lib/crontab at preset times.
* It sets its uid and gid to those of daemon, if possible.
*/
#include <stdio.h>
#include <time.h>
#include <signal.h>
#include <errno.h>
#include <ctype.h>
#include <pwd.h>
#define TRUE (0 == 0)
#define FALSE (0 != 0)
/*
* Time field types.... | code_c | code | 1,866 | null |
/* Sorting algorithms.
Copyright (C) 2000-2017 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>.
This file is part of GNU CC.
GNU CC 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 ... | code_c | code | 1,405 | null |
<filename>External/FEXCore/Source/Interface/HLE/Syscalls/Numa.h
#pragma once
#include <stdint.h>
namespace FEXCore::Core {
struct InternalThreadState;
}
namespace FEXCore::HLE {
uint64_t Get_mempolicy(FEXCore::Core::InternalThreadState *Thread, int *mode, unsigned long *nodemask, unsigned long maxnode, void *addr, ... | code_c | code | 98 | null |
<filename>Source/Source/Tools/GameDesignerEditor/AtlKG3DEngineProxy/IndeSource/SO3World/KGlobalSystemValueCache.h
#ifndef _KGLOBAL_SYSTEM_VALUE_CACHE_H_
#define _KGLOBAL_SYSTEM_VALUE_CACHE_H_
#ifdef _SERVER
#include "Luna.h"
class KGlobalSystemValueCache
{
public:
KGlobalSystemValueCache();
public:
... | code_c | code | 158 | null |
//
// Created by carlos on 16/05/2021.
//
#include "task.h"
TASK *new_task(char *name, int tid, int priority, int burst) {
TASK *t = malloc(sizeof(TASK));
t->name = name;
t->tid = tid;
t->priority = priority;
t->burst = burst;
return t;
}
| code_c | code | 76 | null |
// vim: awa:sts=4:ts=4:sw=4:et:cin:fdm=manual:tw=120:ft=cpp
#pragma once
#include <string>
namespace mmotd::assertion {
[[nodiscard]] auto GetStackTrace() -> std::string;
}
| code_c | code | 50 | null |
/**
* @file Zerocoin.h
*
* @brief Exceptions and constants for Zerocoin
*
* @author <NAME>, <NAME> and <NAME>
* @date June 2013
*
* @copyright Copyright 2013 <NAME>, <NAME> and <NAME>
* @license This project is released under the MIT license.
**/
#ifndef ZEROCOIN_H_
#define ZEROCOIN_H_
#inclu... | code_c | code | 526 | null |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2018 Intel Corporation. All Rights Reserved.
#pragma once
#include <vector>
#include <string>
#include "device.h"
#include "stream.h"
namespace librealsense
{
class l500_color : public virtual device
{
public:
std::shared... | code_c | code | 843 | null |
/*++
Copyright (c) 2000-2001, Microsoft Corporation All rights reserved.
Module Name:
uceshare.h
Abstract:
This file defines the header information used by both the
getuname (getuname.dll) and uce (charmap.exe) directories.
Revision History:
27-Nov-2000 JulieB Created
... | code_c | code | 169 | null |
// Copyright (c) 2014, 2015 <NAME>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, di... | code_c | code | 2,057 | null |
#ifndef FUNCTIONS_H_
#define FUNCTIONS_H_
#include <list>
#include <string>
#include<functional>
namespace cparse {
typedef std::list<std::string> args_t;
class Function : public TokenBase {
public:
static packToken call(packToken _this, const Function* func,
TokenList* args, TokenMap sco... | code_c | code | 537 | null |
//
// ScoreRecordModel.h
// DWduifubao
//
// Created by 席亚坤 on 16/10/27.
// Copyright © 2016年 bianming. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ScoreRecordModel : NSObject
///score_type
@property (nonatomic, assign) NSInteger score_type;
///积分
@property (nonatomic, assign) CGFloat am... | code_c | code | 146 | null |
#ifndef VAR_H
#define VAR_H
#include <QString>
#include <QDir>
#define BL_MAJOR_VER 2
#define BL_MINOR_VER 1
#define BL_ORG_NAME QString("Joveler")
#define BL_ORG_DOMAIN QString("joveler.kr")
#define BL_APP_NAME QString("BatteryLine")
#define BL_WEB_BINARY QString("https://ied206.github.io/Ba... | code_c | code | 199 | null |
<filename>ppapi/proxy/tcp_socket_resource_base.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 PPAPI_PROXY_TCP_SOCKET_RESOURCE_BASE_H_
#define PPAPI_PROXY_TCP_SOCKET_RESOURCE_BASE_H_
#include... | code_c | code | 1,861 | null |
<gh_stars>0
#ifndef SCENE_H_
#define SCENE_H_
#include <vector>
#include "hit_record.h"
#include "ray.h"
#include "sphere.h"
class Scene {
public:
Scene() {}
Scene(std::vector<Sphere> spheres) { spheres_ = spheres; }
bool intersects(Ray const& r, float t_min, float t_max, HitRecord& record) {
HitRecord tm... | code_c | code | 206 | null |
// -*- c++ -*-
//
// <NAME> <<EMAIL>>
// (c) 1998-2021 all rights reserved
// code guard
#if !defined(pyre_memory_forward_h)
#define pyre_memory_forward_h
// set up the namespace
namespace pyre::memory {
// utility that normalizes type access
template <typename T, bool isConst> class Cell;
// block on t... | code_c | code | 212 | null |
/*
* Copyright 2008-2013 NVIDIA Corporation
* Copyright 2013 <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
*
* Unl... | code_c | code | 1,736 | null |
//====== Copyright Valve Corporation, All rights reserved. ====================
//
// Internal low-level access to Steamworks interfaces.
//
// Most users of the Steamworks SDK do not need to include this file.
// You should only include this if you are doing something special.
//=======================================... | code_c | code | 2,556 | null |
/*------------------------------------------------------------------
* us5399.c - Unit Tests for User Story 5399 - Test DTLS max active
* sessions API
*
* August, 2019
*
* Copyright (c) 2019 by cisco Systems, Inc.
* All rights reserved.
*--------------------------------------------------------------... | code_c | code | 3,855 | null |
<reponame>hardhat/dragonbattle
#ifndef FONT_H
#define FONT_H
enum FontId {
FONT_HEADLINE,
FONT_BODY,
FONT_LABEL,
FONT_NOTICE,
};
void initFont();
void extentMessage(FontId fontId,const char *message,int &w,int &h);
void drawMessage(FontId fontId,const char *message,int x,int y);
#endif
| code_c | code | 84 | null |
/*
* Copyright (c) 2003 <NAME> <comac AT comac DOT darktech DOT org>
* Copyright (c) 2010 <NAME>
* Copyright (c) 2012 <NAME>
*
* This file is part of FFmpeg, ported from MPlayer.
*
* FFmpeg is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publishe... | code_c | code | 443 | null |
//******************************************************************
//
// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... | code_c | code | 1,117 | null |
//
// Created by <NAME> on 2021/7/28.
//
#ifndef TYPE_LIST_2_DA3357ECD043474BA9425E708D88831E
#define TYPE_LIST_2_DA3357ECD043474BA9425E708D88831E
#include <type-list/algo/detail/apply_op.h>
#include <type-list/algo/detail/merge_sort.h>
#include <type-list/types/tuple_c.h>
namespace holo::detail {
struct sort {
... | code_c | code | 256 | null |
<reponame>manggoguy/parsec-modified<filename>pkgs/libs/glib/src/gio/inotify/inotify-path.h<gh_stars>10-100
/*
Copyright (C) 2005 <NAME>
The Gnome 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 Fo... | code_c | code | 371 | null |
/************************************************************************************
* arch/arm/src/imxrt/chip/rt106x/imxrt106x_memorymap.h
*
* Copyright (C) 2018 <NAME>. All rights reserved.
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, wit... | code_c | code | 5,102 | null |
<gh_stars>10-100
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | code_c | code | 11,592 | null |
/** @file
Declares editor types.
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _EDITOR_TYPE_H_
#define _EDITOR_TYPE_H_
#include "UefiShellDebug1CommandsLib.h"
#include "EditTitleBar.h"
#include "EditMenuBar.h"
#... | code_c | code | 856 | null |
#include <windef.h>
#ifdef MIDL_PASS
#define LPWSTR [string] wchar_t*
#define PSECURITY_DESCRIPTOR DWORD
#endif
#include <stdarg.h>
#include <winbase.h>
#include <wingdi.h>
#include <winspool.h>
#define _INC_WINDOWS
#include <winsock2.h>
#include <wsipx.h>
#include <nspapi.h>
| code_c | code | 84 | null |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... | code_c | code | 24,187 | null |
#ifndef TRIE_H_
#define TRIE_H_
#include <vector>
template<class T>
struct TrieEntry {
TrieEntry() {
value = NULL;
children.resize(256, NULL);
}
~TrieEntry() {
for(int i = 0; i < children.size(); i++) {
if(children[i] != NULL) {
delete children[i];
}
}
}
const T *value; // If non-null then t... | code_c | code | 318 | null |
#pragma once
#include "MetricsI.h"
class EuclideanMetric : public MetricsI {
public:
std::string getName() override;
double calculateDistance(const Point&, const Point&) override;
}; | code_c | code | 54 | null |
<reponame>Dushistov/rct
#ifndef Set_h
#define Set_h
#include <set>
#include <memory>
#include <rct/List.h>
template <typename T>
class Set : public std::set<T>
{
public:
typedef std::set<T> Base;
Set() {}
bool contains(const T &t) const
{
return Base::find(t) != Base::end();
}
bool ... | code_c | code | 1,632 | null |
<filename>src/core/provider.h
// Copyright (c) 2018-2019, NVIDIA CORPORATION. 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 copyrig... | code_c | code | 4,157 | null |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PresentationConnectionList_h
#define PresentationConnectionList_h
#include "core/dom/ExecutionContext.h"
#include "core/dom/events/EventTarget.h"... | code_c | code | 587 | null |
<reponame>Davidfind/rt-thread
/**
* @file
* IANA assigned numbers (RFC 1700 and successors)
*
* @defgroup iana IANA assigned numbers
* @ingroup infrastructure
*/
/*
* Copyright (c) 2017 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are ... | code_c | code | 827 | null |
<reponame>AkiaCode/winget-cli
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include <vector>
namespace AppInstaller::Utility
{
static const int InapplicableArchitecture = -1;
enum class Architecture
{
Unknown = -1,
Neutral,
... | code_c | code | 308 | null |
<reponame>Sasha7b9/S8-57M
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
void NMI_Handler(void);
void HardFault_Handler(void);
void MemManage_Handler(void);
void BusFault_Handler(void);
void UsageFault_Handler(void);
void SVC_Handler(void);
void DebugMon_Handler(void);
void PendS... | code_c | code | 122 | null |
<filename>library/ADK2/v_bitwise.c
#define ADK_INTERNAL
/********************************************************************
* *
* THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. *
* ... | code_c | code | 5,576 | null |
#ifndef _TOOLS_LINUX_ASM_X86_ATOMIC_H
#define _TOOLS_LINUX_ASM_X86_ATOMIC_H
#include <linux/compiler.h>
#include <linux/types.h>
#include "rmwcc.h"
#define LOCK_PREFIX "\n\tlock; "
#include <asm/cmpxchg.h>
/*
* Atomic operations that C can't guarantee us. Useful for
* resource counting etc..
*/
#define ATOMIC_... | code_c | code | 417 | null |
/*
+------------------------------------------------------------------------+
| Zephir Language |
+------------------------------------------------------------------------+
| Copyright (c) 2011-2015 Zephir Team (http://www.zephir-lang.com) |
+-----... | code_c | code | 7,318 | null |
<filename>crypto_kem/ntrulpr761/m4f/kem.c
#include "params.h"
#include "randombytes.h"
#include "sha512_hash.h"
#ifdef LPR
#include "aes.h"
#include "aes-publicinputs.h"
#endif
#include "Encode.h"
#include "Decode.h"
#include <string.h>
#include "cmsis.h"
#include "Rq_mult.h"
/* ----- masks */
#define q12 ((q-1)/2)... | code_c | code | 9,543 | null |
<reponame>jiwon6833/MTE<filename>softboundcets-llvm-clang34/tools/clang/test/Sema/attr-availability-ios.c
// RUN: %clang_cc1 "-triple" "x86_64-apple-ios3.0" -fsyntax-only -verify %s
void f0(int) __attribute__((availability(ios,introduced=2.0,deprecated=2.1))); // expected-note {{'f0' declared here}}
void f1(int) __att... | code_c | code | 431 | null |
#ifndef __J1FADETOBLACK_H__
#define __J1FADETOBLACK_H__
#include "j1Module.h"
#include "SDL\include\SDL_rect.h"
class j1FadeToBlack : public j1Module
{
public:
j1FadeToBlack();
~j1FadeToBlack();
bool Start();
bool Update(float dt);
bool PostUpdate();
bool FadeToBlack(j1Module* module_off, j1Module* module_on, ... | code_c | code | 259 | null |
/*
* Copyright (c) 2020 Huawei Device Co., Ltd.
* 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 ... | code_c | code | 1,156 | null |
<gh_stars>0
#include "ai_predict.h"
#include <huawei_platform/log/hw_log.h>
#ifdef CONFIG_APP_QOE_AI_PREDICT
#define INT_MAX (2147483647)
#define NETWORK_STATUS_APP_QOE_NORMAL (4)
#define NETWORK_STATUS_APP_QOE_GENERAL_SLOW (5)
int g_slow_proba_threshold_normal_state = 540;
int g_slow_proba_threshold_slow_state = ... | code_c | code | 1,050 | null |
/************************************************************************************
* apps/system/termcurses/tcurses_vt100.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 regard... | code_c | code | 11,286 | null |
<reponame>viktorradnai/bluepilljs<gh_stars>1-10
#include "hal.h"
#include "ch.h"
#include "i2c_util.h"
#include "mlx90393.h"
extern SerialUSBDriver SDU1;
bool_t mlx90393_init(I2CDriver *device)
{
// MLX903939 Write register format: CMD, DATA_H, DATA_L, ADDR << 2
// Address must be shifted up by 2 bits
u... | code_c | code | 604 | null |
// File: $Id$
// Author: <NAME> <John.Wu at acm.org>
// Lawrence Berkeley National Laboratory
// Copyright (c) 1998-2016 the Regents of the University of California
//
// Primary contact: <NAME> <John.Wu at acm.org>
#ifndef IBIS_EXPR_H
#define IBIS_EXPR_H
///@file
/// Define the query expression.
///
#include "uti... | code_c | code | 17,891 | null |
<gh_stars>1-10
//
// HWPopTool.h
// HWPopTool
//
// Created by HenryCheng on 16/1/11.
// Copyright © 2016年 www.igancao.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/**
* 关闭按钮的位置
*/
typedef NS_ENUM(NSInteger, ButtonPositionType) {
/**
* 无
*/
ButtonPosi... | code_c | code | 395 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.