text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>cyrex562/Net-Loom
#pragma once
#include <ppp_opts.h>
#include <ppp.h>
#include <pppos.h>
#include <sys.h>
#include <network_interface.h>
#include <tcpip_priv.h>
#include <ppp.h>
#include <pppos.h>
struct PppApiMsgMsg
{
PppPcb* ppp;
union
{
struct
{
ppp_notify_phase_c... | code_c | code | 753 | null |
/*
* WhatsApp protocol dissector
* Written by <NAME> <<EMAIL>>
* Based on WhatsAPI sources
*
*/
#include <config.h>
#include <epan/packet.h>
#include <epan/prefs.h>
#include <epan/uat.h>
#define WHATSAPP_PORT 5222
#define WHATSAPP_PORT_NEW 443
int whatsapp_data_length(const char * data, int len);
int whatsapp... | code_c | code | 6,365 | null |
#ifndef STACK_H_INCLUDED
#define STACK_H_INCLUDED
template <class T>
class Stack
{
private:
int size;
int top;
T *data;
public:
Stack();
Stack(int size);
~Stack();
void push(T item);
T pop();
int getTop();
bool isEmpty();
i... | code_c | code | 119 | null |
#ifndef _WDL_RFBCLIENT_H_
#define _WDL_RFBCLIENT_H_
#include "wdlstring.h"
#include "queue.h"
#include "jnetlib/jnetlib.h"
#include "lice/lice.h"
class WDL_RFB_Client
{
public:
WDL_RFB_Client(JNL_IConnection *con, const char *password);
~WDL_RFB_Client();
int GetScreenWidth() { return m_screen_w;... | code_c | code | 451 | null |
<reponame>devxpy/masm32-programs
#include <LPC214X.H>
#define EN (1 << 10) // enable set to pin 10
#define RW (1 << 12) // RW set to pin 11
#define RS (1 << 13) // RS set to pin 13
#define DATA (0xff << 15) // Data pin selection from P0.15 to P0.22
#define port EN | RW | RS | DATA // define all to port
// Co... | code_c | code | 381 | null |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
struct scene_stats
{
size_t n_valid_scene, n_valid_scene_diff;
size_t n_valid_result, n_valid_result_diff;
size_t n_converged, n_converged_diff;
double cost, d_cost;
double movem... | code_c | code | 19,985 | null |
//
// LFColor.h
//
// Created by 刘丰 on 2017/5/26.
// Copyright © 2017年 liufeng. All rights reserved.
//
#ifndef LFColor_h
#define LFColor_h
//背景(灰白色)
#define kBackColor [UIColor colorWithHexString:@"#EFEFF4"]
//导航条(蓝色)
#define kNavColor [UIColor colorWithHexString:@"#61A1F1"]
//进度条(橙色)
#define kProgressColor [UICo... | code_c | code | 168 | null |
<gh_stars>100-1000
#include <assert.h>
union U_ok {
int x;
int y;
} u_ok = {.x = 1, .y = 2};
#ifndef _MSC_VER
union U {
int x;
int y;
} u = {1, 2};
int main()
{
assert(u_ok.y == 2);
// the excess initializer (2) is ignored
assert(u.x == 1);
}
#else
int main()
{
assert(u_ok.y == 2);
}
#endif
| code_c | code | 88 | null |
<reponame>RussGlover/381-module-1
/*
* switch_pushbutton.c
*
* Created on: 2015-02-10
* Author: Allen
*/
#ifndef SWITCH_PUSHBUTTON_C_
#define SWITCH_PUSHBUTTON_C_
//#include <../audio_core_test/Definitions.h>
#include <../audio_core_test/switch_pushbutton.h>
void switchpushbutton_Detect(char keys, char swi... | code_c | code | 126 | null |
//
// MenuSingleView.h
// DeliciousMenu
//
// Created by hgy on 16/3/23.
// Copyright © 2016年 hgy. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^MenuSingleViewButtonClickBlock)(void);
@interface MenuSingleView : UIView
@property (nonatomic,copy) NSString *buttonImg;
@property (nonatomic,copy) NSSt... | code_c | code | 128 | null |
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2008, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source an... | code_c | code | 2,667 | null |
//
// SimpleProtocol.h
// XLMultiCastDelegate
//
// Created by kaizei on 14/9/26.
// Copyright (c) 2014年 kaizei. All rights reserved.
//
@protocol SimpleProtocol <NSObject>
- (id)someRequiredMethod:(id)object;
@optional
- (void)someOptionalMethod;
@end
| code_c | code | 75 | null |
<reponame>edlabbe/3d-tests<gh_stars>0
#ifndef FACTORY_GRAPH_FACTORY_H
#define FACTORY_GRAPH_FACTORY_H
#include <memory>
#include "factory.h"
#include "graph_builder_factory.h"
#include "edge_weight_computer_factory.h"
#include "graph/common.h"
#include "measure_runtime.h"
namespace factory
{
template <typename Po... | code_c | code | 1,030 | null |
//file: _insn_test_v2packl_X0.c
//op=306
#include <stdio.h>
#include <stdlib.h>
void func_exit(void) {
printf("%s\n", __func__);
exit(0);
}
void func_call(void) {
printf("%s\n", __func__);
exit(0);
}
unsigned long mem[2] = { 0x6110cf64d9a1b913, 0xc8c9da0e90770658 };
int main(void) {
unsigned... | code_c | code | 376 | null |
<filename>corokafka/corokafka.h
/*
** Copyright 2019 <NAME> L.P.
**
** 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... | code_c | code | 721 | null |
// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#ifndef SHAPES_H
#define SHAPES_H
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include <xml_net_builder.hpp>
#include <random>
#include <chrono>
using namespace testing;
struct Maps{
std::map<std::s... | code_c | code | 2,172 | null |
<gh_stars>1-10
/**
* Copyright 2019 AbbeyCatUK
*
* 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 | 5,039 | null |
/* Sunxi Remote Controller
*
* keymap imported from ir-keymaps.c
*
* Copyright (c) 2014 by allwinnertech
*
* 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... | code_c | code | 396 | null |
#include "miner.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include "sha3/sph_blake.h"
//#define DEBUG_ALGO
extern void pentablakehash(void *output, const void *input)
{
unsigned char _ALIGN(32) hash[128];
// same as uint32_t hashA[16], hashB[16];
#define hashB hash+64
sp... | code_c | code | 677 | null |
/*
* SPDX-License-Identifier: MIT
*
* Copyright (C) 2019 <NAME> <<EMAIL>>
*/
#include <stdarg.h>
#include <stdbool.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include <evl/... | code_c | code | 1,626 | null |
/*=========================================================================
Copyright 2009 Rensselaer Polytechnic Institute
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/lice... | code_c | code | 898 | null |
<reponame>asheraryam/stabilizer
/* pad.h
*
* Copyright (C) 2002, by <NAME> and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
* This file defines the types and macros associated with the API for
* m... | code_c | code | 2,442 | null |
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
This file is part of Quake III Arena source code.
Quake III Arena source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
publish... | code_c | code | 13,736 | null |
// Copyright(c) 2016-2021 <NAME>
// Distributed under the MIT License (See accompanying file LICENSE.md file or copy at http://opensource.org/licenses/MIT).
#pragma once
#include "lang/reflect/coTypeDecl.h"
#include "math/vector/coInt32x3.h"
#include "math/vector/coFloatx2.h"
class coFloatx4;
class coBinaryOutputStream... | code_c | code | 477 | null |
char peer0_0[] = {
0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x00 };
char peer0_1[] = {
0x2e, 0x00, 0x13, 0x83, 0x00, 0x00, 0x37, 0x8e,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
char peer1_0[] = {
0x00, 0x00, 0x00, 0x21, 0x01, 0x00, 0x00, 0x00 };
char peer1_1[] = {
0x2e, 0x00, 0x00, 0x00, 0x79, 0x1f, 0xc1, 0x4... | code_c | code | 56,447 | null |
<gh_stars>1-10
//
// ofxBluetoothManager.h
//
// Created by ISHII 2bit on 2014/02/01.
// Copyright (c) 2014 buffer Renaiss co., ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
# import <CoreBluetooth/CoreBluetooth.h>
#elif TARGET_OS_MAC
#... | code_c | code | 368 | null |
<reponame>behdad2018/myrcpilot
/**
* @file settings.c
*
* contains all the functions for io to the settings file, including default
* values that can be written to disk if no file is present.
**/
#include <stdio.h>
#include <string.h> // FOR str_cmp()
#include <fcntl.h> // for F_OK
#include <unistd.h> // for access()... | code_c | code | 5,610 | null |
<reponame>robertmaynard/Sandbox
//=============================================================================
//
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY ... | code_c | code | 732 | null |
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include "malloc.h"
#include "core.h"
#include <syslinux/memscan.h>
struct free_arena_header __core_malloc_head[NHEAP];
//static __hugebss char main_heap[128 << 10];
extern char __lowmem_heap[];
extern char free_high_memory[];
#define E820_MEM_MAX 0xfff00000... | code_c | code | 736 | null |
<reponame>NicholasRSarantinos/FullTextSearchEngine
#include "tbb/tbbmalloc_proxy.h"
#include <string>
#include <thread>
using namespace std;
//#define DICTIONARY_CREATION
//#define INDEX_CREATION
#define PROGRAM_RUN
#define NEW_INDEX
//#define OLD_INDEX
/*
MODES:
1. CREATE DICTIONARY: DEFINE DICTIONARY_CREAT... | code_c | code | 1,758 | null |
//
// UIView+Sizes.h
// ABMToolbox
//
// Created by <NAME> on 6/9/13.
// Copyright (c) 2013 <EMAIL>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (Sizes)
@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat right;
@property (nonatomic) CGFloat ... | code_c | code | 138 | null |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... | code_c | code | 1,613 | null |
<reponame>haampie/libflame
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include "FLAME.h... | code_c | code | 637 | null |
<filename>chromium/components/storage_monitor/test_volume_mount_watcher_win.h
// 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.
//
// This file contains a subclass of VolumeMountWatcherWin to expose some
/... | code_c | code | 600 | null |
/*
* Copyright (C) 2013 - 2019 Jolla Ltd.
* Copyright (C) 2020 Open Mobile Platform LLC.
*
* You may use this file under the terms of the BSD license as follows:
*
* "Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met... | code_c | code | 2,749 | null |
// mex2main.h
// Create a standalone application from an mex file by linking the mex-code
// with this wrapper (and mex2main.cpp) which gives the basic matlab functionality that
// the user's mex-code expects to have
#ifndef MEX2MAIN_H
#define MEX2MAIN_H
#define mexPrintf printf
namespace mex2main {
// prototypes... | code_c | code | 203 | null |
/*
* arch/alpha/boot/bootpz.c
*
* Copyright (C) 1997 <NAME>
*
* This file is used for creating a compressed BOOTP file for the
* Linux/AXP kernel
*
* based significantly on the arch/alpha/boot/main.c of <NAME>
* and the decompression code from MILO.
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#includ... | code_c | code | 3,829 | null |
#if !defined(SRKSNAPSHOTWIN_H)
#define SRKSNAPSHOTWIN_H
/*
Sonork Messaging System
Portions Copyright (C) 2001 Sonork SRL:
This program is free software; you can redistribute it and/or modify
it under the terms of the Sonork Source Code License (SSCL).
This program is distributed in the hope that it... | code_c | code | 500 | null |
<filename>core/externals/google-toolbox-for-mac/Foundation/GTMServiceManagement.c
//
// GTMServiceManagement.c
//
// Copyright 2010 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the ... | code_c | code | 6,402 | null |
// Copyright 2021 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_SERVICES_APP_SERVICE_PUBLIC_CPP_PREFERRED_APPS_LIST_HANDLE_H_
#define COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_PREFERRED_APPS_LIST_HA... | code_c | code | 1,085 | null |
#ifndef PS_FREE_INTERPRETER_H
#define PS_FREE_INTERPRETER_H
#include "parserl.h"
#include "../context.h"
namespace ps
{
namespace free
{
// Forward declaration
template <typename Ret>
struct ParserLVisitor;
template <typename Ret>
ParserResult<Ret> runParserL(
ParserRuntime& runtime,
const ParserL<R... | code_c | code | 682 | null |
/* Spa
*
* Copyright © 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 rights to use, copy, modify, merge, publish... | code_c | code | 1,134 | null |
<filename>IOSServer/PhoneLocation.h<gh_stars>0
#pragma once
#include <iostream>
using namespace std;
class PhoneLocation {
public:
static int splitLocation(string locinfo, string &x, string & y, string &info, string &strtime);
};
| code_c | code | 67 | null |
<filename>instruments/src/fdi_serial_wire_instrument.c
#include "fdi_serial_wire_instrument.h"
#include "fdi_api.h"
#include "fdi_gpio.h"
#include "fdi_instrument.h"
#include "fdi_serial_wire.h"
#include "fdi_serial_wire_debug.h"
#include "fdi_storage_instrument.h"
#include "fd_log.h"
#include <string.h>
static con... | code_c | code | 7,363 | null |
<gh_stars>100-1000
//
// UIButton+RITLBlockButton.h
// RITLPhotoDemo
//
// Created by YueWen on 2016/12/29.
// Copyright © 2017年 YueWen. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIControl (RITLBlockButton)
/**
用来替代目标动作回调的方法
@param controlEvents 响应事件
@param eventHa... | code_c | code | 382 | null |
<gh_stars>1-10
/*
Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
dedicated to making software imaging solutions freely available.
You may not use this file except in compliance with the License.
obtain a copy of the License at
http://www.imagemagick.org/script/license.php
U... | code_c | code | 1,146 | null |
/*******************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas Electronics Corporation and is protected un... | code_c | code | 3,059 | null |
<gh_stars>0
//
// KVPlayerBase.h
// KVPlayer
//
// Created by kevin on 2018/4/24.
// Copyright © 2018年 kv. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "KVPlayerAudioManager.h"
//帧类型
typedef NS_ENUM(NSInteger, KVPlayerFrameType) {
KVPlayerFrameTypeAudio, //音频帧
KVPlayerFrameTypeVideo, //视频帧
... | code_c | code | 488 | null |
/* Copyright 2014. The Regents of the University of California.
* All rights reserved. Use of this source code is governed by
* a BSD-style license which can be found in the LICENSE file.
*/
#ifdef __cplusplus
#error This file does not support C++
#endif
extern int poissondisc(int D, int N, int II, float vardens,... | code_c | code | 176 | null |
<gh_stars>1-10
/**
* \file IfxEbcu_bf.h
* \brief
* \copyright Copyright (c) 2014 Infineon Technologies AG. All rights reserved.
*
* Version: TC2XXED_TS_V1.0.R2
* Specification: AurixED_TS_V1.0_CPU_VIEW_SFR.xml (Revision: V1.0)
* MAY BE CHANGED BY USER [yes/no]: No
*
* IMPORTANT ... | code_c | code | 5,814 | null |
<filename>include/awkward/builder/UnionBuilder.h
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#ifndef AWKWARD_UNIONBUILDER_H_
#define AWKWARD_UNIONBUILDER_H_
#include <vector>
#include "awkward/common.h"
#include "awkward/builder/GrowableBuffer.h"
#include "awkward/builder... | code_c | code | 1,051 | null |
<reponame>genomecuration/JAM
/* $Id: build_ares.c $ */
/* copyright (c) 2010, 2014 by <NAME> and The Rector &
Vistors of the University of Virginia */
/* 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 t... | code_c | code | 2,339 | null |
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/**
* How to add tests:
* 1. Add tests definition to az_test_definitions.h. All tests must follow the signature `void
* test_name(void** state)`.
* 2. Add test_names to `CMUnitTest test[]` array at the end of `az_test_defi... | code_c | code | 752 | null |
<filename>api/tests/server.c
/*
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
*
* Use of this source code is governed by MIT license that can be found in the
* LICENSE file in the root of the source tree. All ... | code_c | code | 4,478 | null |
<filename>Lumin/src/Lumin/Log.h
#pragma once
#include <memory>
#include "Core.h"
#include "spdlog/spdlog.h"
#include "spdlog/sinks/stdout_color_sinks.h"
namespace Lumin {
class LUMIN_API Log
{
public:
static void Init();
inline static std::shared_ptr<spdlog::logger> s_CoreLogger;
inline static std::share... | code_c | code | 320 | null |
<filename>Logic/OpenCL/DeviceArray.h
/*
* Copyright (c) 2013-2014 <NAME> <<EMAIL>>
*
* 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... | code_c | code | 1,138 | null |
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LITENSE-2.0
*
* Unless required by applica... | code_c | code | 1,334 | null |
<filename>ui/gfx/platform_font.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GFX_PLATFORM_FONT_H_
#define UI_GFX_PLATFORM_FONT_H_
#include <string>
#include "base/memory/ref_counted... | code_c | code | 782 | null |
/*
* Copyright 2016-2017 Uber Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | code_c | code | 369 | null |
#ifndef MOLECULE_H_INCLUDED
#define MOLECULE_H_INCLUDED
#include <vector>
using namespace std;
struct Atom
{
char At;
double x,y,z;
};
struct Molecule
{
int Nat;
vector<Atom> Atoms;
};
void Read_file(vector<Molecule>&,int,int);
void Read_data(vector<double>&,vector<double>&,vector<double>&,vector<doub... | code_c | code | 267 | null |
/*TCP Tezpur Functions; Author: <NAME>; Dated:05/10/2004 */
//Insert/change a segment seq no. with sent time;12/09/2004
extern struct sentseg* tezpur_ins_seg(struct sentseg *segs,__u32 seq,__u32 bytes,long stime) ;
//extern struct sentseg* tezpur_ins_seg(struct sentseg *segs,__u32 seq,long stime) ;
extern void tezpur_... | code_c | code | 445 | null |
<reponame>tarsoly/NaoTH
/*
* spline.h
*
* simple cubic spline interpolation library without external
* dependencies
*
* ---------------------------------------------------------------------
* Copyright (C) 2011, 2014 <NAME> (<EMAIL>)
*
* This program is free software; you can redistribute it and/or
* modify... | code_c | code | 1,093 | null |
//
// TLAnimationProtocol.h
// TabBar
//
// Created by 故乡的云 on 2019/7/19.
// Copyright © 2019 故乡的云. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol TLAnimationProtocol <NSObject>
@required
/**
UITabBarItem选中动画, UITabBarItem 被选中时调用
@param button UITabBarItem 的按钮:... | code_c | code | 527 | null |
//
// YBCurriculumScheduleConst.h
// CurriculumSchedule
//
// Created by 站在巨人肩膀上的小菜鸟 on 16/7/29.
// Copyright © 2016年 YB. All rights reserved.
// 常量
#import <UIKit/UIKit.h>
#import "UIView+BMLine.h"
#import "YBControl.h"
#import "NSDate+YBTime.h"
#import "YBDateListModel.h"
#import "YBDateTools.h"
#import "YBUILa... | code_c | code | 222 | null |
<reponame>yangtzehina/Vulkan_Start_Study_Road
// vulkan_guide.h : Include file for standard system include files,
// or project specific include files.
#pragma once
#include <vk_types.h>
#include <vector>
#include <deque>
#include <functional>
#include <vk_mesh.h>
#include <glm/glm.hpp>
// Add camera data
struct ... | code_c | code | 1,527 | null |
/*
* Dynomite - A thin, distributed replication layer for multi non-distributed storages.
* Copyright (C) 2014 Netflix, Inc.
*/
/*
* twemproxy - A fast and lightweight proxy for memcached protocol.
* Copyright (C) 2011 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may... | code_c | code | 2,598 | null |
<reponame>SaulPerezP/IPC2<gh_stars>0
#include <stdio.h>
int main() {
float *ptr_float;
printf("El valor apuntado por ptr_float es %f", *ptr_float);
*ptr_float = 10.5;
return 0;
}
| code_c | code | 61 | null |
/*
Copyright <NAME> 2014
Copyright <NAME> 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_OS_HAIKU_H
#define MSGPACK_PREDEF_OS_HAIKU_H
#include "../version_number.h"
#include "../make.h"
... | code_c | code | 296 | null |
//https://www.hackerrank.com/challenges/the-grid-search
// A Naive string brute force algorithm. Not even sure how it passed the cases without timing out.
#include<stdio.h>
int a[1005][1005];
int b[1005][1005];
int main() {
int t, i, j, k, l;
int r1, c1, r2, c2;
char inp[1005];
int globalFlag = 0;
int flag = 0;
... | code_c | code | 383 | null |
#pragma once
#ifndef IN_RANGE
#define IN_RANGE(VAL, START, INCLUSIVE_END) (((VAL) >= (START)) && ((VAL) <= (INCLUSIVE_END)))
#endif // !IN_RANGE
#ifndef GET_BIT
#define GET_BIT(VAL, IDX) (((VAL) >> (IDX)) & 1)
#endif // !GET_BIT | code_c | code | 65 | null |
/*
* Copyright (c) 2013 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed... | code_c | code | 305 | null |
<reponame>farlepet/lambda-modules
#ifndef MOD_DRV_IO_SERIAL_8250_8250_H
#define MOD_DRV_IO_SERIAL_8250_8250_H
#include <stdint.h>
typedef enum serial_8250_portaddr {
SERIAL_COM1 = 0x3F8,
SERIAL_COM2 = 0x2F8,
SERIAL_COM3 = 0x3E8,
SERIAL_COM4 = 0x2E8
} serial_8250_portaddr_e;
enum serial_8250_reg {
... | code_c | code | 294 | null |
<reponame>TheTypoMaster/trafficserver-secondary-hash-ring
/** @file
A brief file description
@section license License
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 cop... | code_c | code | 684 | null |
// ----------------------------------------------------------------------------
// Copyright 2018-2019 ARM Ltd.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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 ... | code_c | code | 684 | null |
<reponame>nehalem501/gendev
/*
* aPLib compression library - the smaller the better :)
*
* OMF format header file
*
* Copyright (c) 1998-2014 <NAME>
* All Rights Reserved
*
* http://www.ibsensoftware.com/
*/
#ifndef APLIB_H_INCLUDED
#define APLIB_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#... | code_c | code | 621 | null |
<filename>GECompression.h
// GE Recompression C++ Class
// Painstakingly done by <NAME> (<EMAIL>)
// Ported to C++ Class by SubDrag (<EMAIL>) July 13, 2005
// Compression Games Added April 03, 2007
#pragma once
#include <iostream>
#include <string>
#define maxByteSize 0x800000
#define GOLDENEYE 0
#define PD 1
#defi... | code_c | code | 964 | null |
// Copyright 2020 DeChainy
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... | code_c | code | 317 | null |
#pragma once
#include <Engine/k3dSceneObject.h>
#include <Math/kMath.hpp>
#include <Renderer/k3dTexture.h>
#include <json/json.h>
class k3dLight : public k3dRenderNode {
public:
k3dLight();
virtual ~k3dLight();
bool LoadJson(Json::Value & lightNode);
bool ObjectInVolume(kSObject* obj);
bool NodeInVolume(kMa... | code_c | code | 240 | null |
<filename>SDL_Engine/Renderer.h
#pragma once
#include "Object.h"
#include "SDL2/SDL.h"
#include "Window.h"
#include "Color.h"
#include "Texture.h"
#include <string>
class Renderer :
public Object
{
public:
Renderer();
~Renderer();
static Renderer*create(Window*window, int index, Uint32 flags);
bool i... | code_c | code | 170 | null |
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
+---------... | code_c | code | 984 | null |
/**
\brief This is a standalone test program for the magnetometer of the GINA2.2b/c
board.
Download the program to a GINA board, run it, and break after a few
seconds at the line indicated in the code. Use the Watch Window to see the
value of the variables 'magnetometer_x', 'magnetometer_y' and 'magnetometer_z'... | code_c | code | 875 | null |
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <3ds.h>
#include "error.h"
extern void cleanup();
static int util_get_line_length(PrintConsole* console, const char* str) {
int lineLength = 0;
while(*str != 0) {
if(*str == '\n') {
break;
}
... | code_c | code | 852 | null |
<reponame>The-Alchemist/RedisGraph
/*
* Copyright 2018-2019 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#include "merge.h"
#include "../ast_common.h"
AST_MergeNode* New_AST_MergeNode(Vector *graphEntities) {
AST_MergeNode *mergeNode = malloc(... | code_c | code | 461 | null |
<reponame>thepriyakadam/hrms
#include "common.h"
static char software_version[] = "$Id: norowset.c,v 1.9 2010-07-05 09:20:33 freddy77 Exp $";
static void *no_unused_var_warn[] = { software_version, no_unused_var_warn };
/* Test that a select following a store procedure execution return results */
int
main(int argc, ... | code_c | code | 301 | null |
<reponame>fjalvingh/esp32<gh_stars>0
/*
* SmartMatrix Library - Hardware-Specific Header File (for SmartMatrix Shield V4)
*
* Copyright (c) 2015 <NAME> (Pixelmatix)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software... | code_c | code | 4,134 | null |
<gh_stars>1-10
/*
* avl_tree.c - intrusive, nonrecursive AVL tree data structure (self-balancing
* binary search tree), implementation file
*
* Written in 2014-2016 by <NAME> <<EMAIL>>
*
* To the extent possible under law, the author(s) have dedicated all copyright
* and related and neighboring rights to this s... | code_c | code | 6,734 | null |
<filename>tests/unit/tests/utils/utils_rbtree.c/utils_rbtree.c
/*
* Copyright(c) 2012-2021 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* <tested_file_path>src/utils/utils_rbtree.c</tested_file_path>
* <tested_function>ocf_rb_tree_insert</tested_function>
* <functions_to_leave>
* ocf_rb_tree... | code_c | code | 1,554 | null |
<reponame>WUSTL-CSPL/RT-TEE
/*
* SuperH Timer Support - MTU2
*
* Copyright (C) 2009 <NAME>
*
* 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
*
* This pr... | code_c | code | 3,615 | null |
/** @file
Legacy Region Support
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _LEGACY_INTERRUPT_H_
#define _LEGACY_INTERRUPT_H_
#include <PiDxe.h>
#include <Protocol/LegacyInterrupt.h>
#include <Library/PcdLib.h>
#include <Li... | code_c | code | 777 | null |
<filename>source/vaultgui/DirectInputHook.h
#pragma once
#include <d3d9.h>
#include <d3dx9.h>
#include <vector>
#include <string>
#include <windowsx.h>
using namespace std;
void RealityKeyDown(LPVOID ths, DWORD size, LPVOID data);
void SimulateKeyDown(LPVOID ths, DWORD size, LPVOID data); | code_c | code | 85 | null |
//
// NSString+JustSpaces.h
// Weather
//
// Created by <NAME> on 4/22/17.
// Copyright © 2017 shabri. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (JustSpaces)
-(BOOL)isJustSpaces;
@end
| code_c | code | 65 | null |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dynamodb/DynamoDB_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dynamodb/model/AttributeValue.h>
#i... | code_c | code | 1,126 | 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,668 | null |
<gh_stars>10-100
template <typename V>
class MapNode {
public :
char *key;
V value;
MapNode<V> *next;
MapNode(char *key, V value) {
// Shallow copy
// this -> key = key;
// Deep Copy
this -> key = new char[strlen(key) + 1];
strcpy(this -> key, key);
... | code_c | code | 922 | null |
/** @file
* Copyright (c) 2020, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* 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://... | code_c | code | 1,128 | null |
/* smlacf2.c: Function access to matrix contents, +- bounds checking */
/* This version is for a->m declared as REAL** */
/**********************************************************/
#ifdef SML_AC_FUN
#include "smlbase.h"
#define SML_NAN ((REAL)0.0/(REAL)0.0)
#define matrows(a) ((a)-... | code_c | code | 1,358 | null |
<filename>modules/paxmon/include/motis/paxmon/service_info.h
#pragma once
#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "cista/reflection/comparable.h"
#include "motis/core/schedule/schedule.h"
#include "motis/paxmon/compact_journey.h"
namespace motis::pa... | code_c | code | 274 | null |
//
// MJHomeController.h
// MeiTuanDemo
//
// Created by kimi on 8/5/16.
// Copyright © 2016 kimi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MJHomeController : UIViewController
@end
| code_c | code | 58 | null |
// bdlb_bitutil.h -*-C++-*-
#ifndef INCLUDED_BDLB_BITUTIL
#define INCLUDED_BDLB_BITUTIL
#ifndef INCLUDED_BSLS_IDENT
#include <bsls_ident.h>
#endif
BSLS_IDENT("$Id: $")
//@PURPOSE: Provide efficient bit-manipulation of 'uint32_t'/'uint64_t' values.
//
//@CLASSES:
// ... | code_c | code | 4,534 | null |
/*
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the terms of the GNU Genera... | code_c | code | 4,156 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.