text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
/*
* toothrot - log source of packets matching a pcap filter expression to syslog
*
* (c) by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain ... | code_c | code | 2,374 | null |
/***************************************************************************
machine.c
Street Heat runs on the same type board as theglobp. It features 4 decryption algorythms
that can be implemented sequentially using the IN command. See machine\theglobp.c for more
details. The advantage of this is weak section... | code_c | code | 1,626 | null |
/*
** (not) EPITECH PROJECT, 2021
** Libfox
** File description:
** Write pad n times in an already allocated string
*/
#include <unistd.h>
#include "fox_define.h"
__Anonnull __Aconst count_t fox_siopadn(str_t s, int pad, count_t n)
{
count_t i = 0;
while (--n - 1 > 0)
s[i++] = pad;
s[i] = '\0';... | code_c | code | 96 | null |
<reponame>EMCECS/ecs-object-client-windows-cpp<filename>ECSUtil/ProcessEvent.h<gh_stars>1-10
/*
* Copyright (c) 2017 - 2021, Dell Technologies, 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.
* A copy o... | code_c | code | 926 | null |
// online/online-faster-decoder.h
// Copyright 2012 Cisco Systems (author: <NAME>)
// Modifications to the original contribution by Cisco Systems made by:
// <NAME>
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may n... | code_c | code | 1,673 | null |
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include "_getline.h"
#define LINE_LEN 21
/**
* main - entry point.
*
* Return: always 0.
*/
int main(void)
{
int fd;
char *line;
int i;
fd = open("zero", O_RDONLY);
if (-1 == fd)
{
fprintf(stderr, "nop\n");
return (EXIT_FAI... | code_c | code | 154 | null |
<reponame>kraj/WPEFramework
#pragma once
// @stubgen:skip
#include "Module.h"
namespace WPEFramework {
namespace Exchange {
struct IKeyProducer;
struct IWheelProducer;
struct IPointerProducer;
struct ITouchProducer;
struct IKeyHandler : virtual public Core::IUnknown {
enum { ID = ID_KEY... | code_c | code | 974 | null |
<reponame>github188/catlib
/*
* by <NAME>
*
* Copyright 2003-2012 -- See accompanying license
*
*/
#include <sys/time.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#define NREPS 10000
int nreps = NREPS;
#define TEST(op) \
{ \
struct timeval start... | code_c | code | 1,033 | null |
<reponame>aprabhudesai/TipCalculator<gh_stars>0
//
// SettingsViewController.h
// TipCalculator
//
// Created by <NAME> on 1/11/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SettingsViewController : UIViewController <UITextFieldDelegate, UIPickerViewDelegate, UIPickerV... | code_c | code | 106 | null |
#include "fila.h"
int main()
{
Fila f;
Item aux;
FFVazia(&f);
aux.val = 10;
Enfileira(&f, aux);
aux.val = 20;
Enfileira(&f, aux);
aux.val = 30;
Enfileira(&f, aux);
aux.val = 40;
Enfileira(&f, aux);
FImprime(&f);
Desenfileira(&f, &aux);
aux.val = 40;
Enfileira(&f, aux);
FImprime(&f);
//FImpr... | code_c | code | 98 | null |
<filename>t/test-bin/syd-abort.c
#include "headers.h"
int main(int argc, char *argv[])
{
int s;
pid_t p;
s = atoi(argv[1]);
p = getpid();
errno = 0;
kill(p, s);
return errno;
}
| code_c | code | 53 | null |
<filename>frameworks/core/components/focus_animation/focus_animation_theme.h
/*
* Copyright (c) 2021 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:/... | code_c | code | 658 | null |
<reponame>WilliamBCA/CA_Embedded
/*
* USBprint.h
*
* Created on: Apr 26, 2021
* Author: alema
*/
#ifndef INC_USBPRINT_H_
#define INC_USBPRINT_H_
#include <unistd.h>
#include "stm32f4xx_hal.h"
#include "stdarg.h"
// Wrap vsnprintf(char *str, size_t size, const char *format, va_list ap)
// and send data to ... | code_c | code | 190 | null |
//
// ZzbTypeListModel.h
// ZzbGameSDK
//
// Created by isec on 2019/12/3.
//
#import <Foundation/Foundation.h>
#import <JSONModel/JSONModel.h>
NS_ASSUME_NONNULL_BEGIN
@protocol ZzbTypeModel;
@interface ZzbTypeModel : JSONModel
@property (nonatomic) NSInteger id;
@property (nonatomic) NSString *name;
@property (... | code_c | code | 306 | null |
/*
* Copyright (c) 2011 NVIDIA CORPORATION. All Rights Reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software... | code_c | code | 121,579 | null |
<reponame>felixekn/MuANN
#ifndef _TABLECOMPILER_H_
#define _TABLECOMPILER_H_ 1
#include <Rcpp.h>
#include "common.h"
#include "utilities.h"
#include "map.h"
#include "properties.h"
void add_groove_width_to_pentamers_table(std::string filename,DNA_to_properties& onemap,std::string sequence,int object_index, \
... | code_c | code | 403 | null |
<gh_stars>0
// Copyright <NAME>.
#pragma once
#include <memory>
namespace Puyu
{
class ImGuiManager
{
public:
virtual ~ImGuiManager() = default;
public:
virtual void Begin() const = 0;
virtual void End() const = 0;
void SetDarkTheme() const;
public:
static std::unique_ptr<ImGuiManager> Create();
... | code_c | code | 92 | null |
#include "add_gf2n.h"
#include "arch.h"
#include "config_HFE.h"
#include "genCanonicalBasis_gf2n.h"
#include "genSecretMQS_gf2.h"
#include "gf2nx.h"
#include "mul_gf2n.h"
#include "rem_gf2n.h"
#include "tools_gf2n.h"
#include <stdlib.h>
/*****************************************************************************/
... | code_c | code | 3,631 | null |
#pragma once
#include "TypePack.h"
#include "nullptr_to.h"
namespace meta19 {
template<template<class...> class Tpl, class T, class... Ts> auto typePackFrontType(Tpl<T, Ts...>*) -> T;
template<class... Ts> using PackFront = decltype(typePackFrontType(nullptr_to<TypePack<Ts...>>));
template<class T> using TypePackFr... | code_c | code | 112 | null |
#include <linux/kernel.h>
#include <stdio.h>
#include <string.h>
#include <sys/syscall.h>
#include <unistd.h>
#define MAX_NAME_SIZE 64
#define PNAMETOID_SYSCALL_NUMBER 355
int main()
{
printf("Enter name process to find pid: ");
char name[MAX_NAME_SIZE];
fgets(name, MAX_NAME_SIZE, stdin);
// remove \n of name
i... | code_c | code | 150 | null |
<gh_stars>1-10
//
// MAXJsonAdapterNSArraryUtilities.h
// MAXJsonAdapter
//
// Created by <NAME> on 12/29/16.
// Copyright © 2016 Konta ehf. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MAXJANSArraryUtilities : NSObject
+(NSArray <NSString *> *)removeStrings:(NSArray <NSString *> *)string... | code_c | code | 128 | null |
<reponame>dongbinghua/ipp-crypto
/*******************************************************************************
* Copyright 2013-2021 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 ... | code_c | code | 1,548 | null |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSVGExporter.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT... | code_c | code | 1,434 | null |
/*
* Copyright (C) <NAME> (vozlt)
*/
#ifndef _NGX_HTTP_VTS_DISPLAY_H_INCLUDED_
#define _NGX_HTTP_VTS_DISPLAY_H_INCLUDED_
ngx_int_t ngx_http_vhost_traffic_status_display_get_upstream_nelts(
ngx_http_request_t *r);
ngx_int_t ngx_http_vhost_traffic_status_display_get_size(
ngx_http_request_t *r, ngx_int_t f... | code_c | code | 745 | null |
<gh_stars>0
#ifndef _PHYSICS_H
#define _PHYSICS_H
#include "collision.h"
#include "game_objects.h"
void physics(object_t* ball,object_t* player_2, object_t* player_1 );
int game_over(object_t* ball,object_t* player_2, object_t* player_1 );
#endif
| code_c | code | 71 | null |
#pragma once
#include <string>
#include "../parameter.h"
class TextParameter : public Parameter
{
public:
TextParameter() = default;
TextParameter(const std::string &name);
public:
std::string value() const;
void setValue(const std::string &v);
std::string defaultValue() const;
void se... | code_c | code | 174 | null |
<reponame>cinepost/Falcor
#ifndef SRC_LAVA_LIB_RENDERER_H_
#define SRC_LAVA_LIB_RENDERER_H_
#include <cstddef>
#include <string>
#include <vector>
#include <memory>
#include "types.h"
#include "Falcor/Falcor.h"
#include "Falcor/FalcorExperimental.h"
#include "Falcor/Core/API/Device.h"
#include "Falcor/Core/API/Devic... | code_c | code | 1,194 | null |
<filename>src/kernel/i386-kos/interrupt.c
/* Copyright (c) 2018 Griefer@<EMAIL> *
* *
* This software is provided 'as-is', without any express or implied *
* warranty. In no event will the a... | code_c | code | 869 | null |
<gh_stars>0
/*!
* \brief Command to transmit data to/from the card.
*
* \copyright Copyright (c) 2014-2018 Governikus GmbH & Co. KG, Germany
*/
#pragma once
#include "BaseCardCommand.h"
#include "InputAPDUInfo.h"
class test_TransmitCommand;
class test_CardConnection;
namespace governikus
{
class TransmitComman... | code_c | code | 321 | null |
#import <Foundation/Foundation.h>
@class CDEDatePickerViewController;
@protocol CDEDatePickerViewControllerDelegate <NSObject>
@required
- (void)datePickerViewControllerDidCancel:(CDEDatePickerViewController *)controller;
- (void)datePickerViewControllerDidConfirmDate:(CDEDatePickerViewController *)controller;
@end
| code_c | code | 91 | null |
//
// AWFForecastsLoader.h
// Aeris
//
// Created by <NAME> on 9/6/13.
// Copyright (c) 2013 AerisWeather, LLC. All rights reserved.
//
#import <AerisWeatherKit/AWFWeatherEndpoint.h>
#import <AerisWeatherKit/AWFForecast.h>
NS_ASSUME_NONNULL_BEGIN
typedef NSString * AWFForecastFilter NS_TYPED_EXTENSIBLE_ENUM;
FO... | code_c | code | 320 | null |
<reponame>pundiramit/external-mesa3d
/*
* Mesa 3-D graphics library
*
* Copyright (C) 1999-2008 <NAME> All Rights Reserved.
*
* 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... | code_c | code | 2,428 | null |
<gh_stars>0
#ifndef MOTION
#define MOTION
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::VectorXd;
using Eigen::MatrixXd;
class Motion{
public:
int x_dim;
int aug_dim;
VectorXd acc;
Motion(){};
virtual ~Motion(){};
VectorXd AugmentX(VectorXd x){
VectorXd aug_x(aug_dim);
... | code_c | code | 304 | null |
/****************************************************************************
* arch/arm/src/sama5/sam_irq.c
*
* Copyright (C) 2013-2014 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... | code_c | code | 7,967 | null |
/*
* <NAME>
* anj218
* 11136793
*/
#include"common.h"
char SEPARATOR = 30;
int FrameInit(FRAME **frame, int size, int maxSeqNo, int beginSeq){
int i;
for(i = 0; i < size; i++){
frame[i]->inUse = 0;
frame[i]->ack = 0;
frame[i]->seqNo = (beginSeq + i) % (maxSeqNo + 1);
frame[i]->data[0] = '\0';
}
return... | code_c | code | 871 | null |
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005-2014 <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, or (at your option) any ... | code_c | code | 8,099 | null |
<reponame>mattpro/SmartFlowerPot<filename>Firmware/src/nRF5_SDK_12.1.0/examples/ant/experimental/ant_shared_channel/master_to_master/asc_slave.h
/*
This software is subject to the license described in the License.txt file
included with this software distribution. You may not use this file except in compliance
with this... | code_c | code | 1,180 | null |
/*
*
* ZDCOfflineMessageHandler.h
* ZDCChat
*
* Created by Zendesk on 06/03/2015.
*
* Copyright (c) 2016 Zendesk. All rights reserved.
*
* By downloading or using the Zendesk Mobile SDK, You agree to the Zendesk Master
* Subscription Agreement https://www.zendesk.com/company/customers-partners/#master-s... | code_c | code | 560 | null |
<reponame>Rascof/dynamic-graph
/*
* Copyright 2010,
* <NAME>,
* <NAME>,
*
* CNRS/AIST
*
*/
#ifndef __SIGNAL_HH
#define __SIGNAL_HH
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <string>
#include <dynamic-graph/exception-signal.h>
#include <dynamic-graph/signal-base.h>
#ifdef HAVE_LIBBOOST... | code_c | code | 1,024 | null |
/****************************************************************************
**
** Copyright (C) 2018 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtQml module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid... | code_c | code | 1,802 | null |
#include <std.h>
inherit "/d/attaya/spec/cliff";
void create()
{
::create();
set_name("Ledge on the Obsidian Staircase.");
set_short("%^RESET%^%^BOLD%^%^BLACK%^Ledge on %^WHITE%^Obsidian %^BLACK%^s%^WHITE%^tair%^BLACK%^c%^BLACK%^a%^WHITE%^se%^RESET%^");
set_property("indoors",0);
set_property("light",1);
set... | code_c | code | 464 | null |
<reponame>dinosaure/infer
/*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
void array_access_Ok(int x, int y) {
int a[1];
if (x + y == 1) {
a[x + y - 1] = 0;
}
}
void call_arra... | code_c | code | 218 | null |
<filename>dongxi02/dongxi/Classes/Profile/Controller/DXProfileUpdateViewController.h
//
// DXProfileUpdateViewController.h
// dongxi
//
// Created by <NAME> on 15/10/30.
// Copyright (c) 2015年 北京聚益网络科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DXProfileUpdateViewController : UIViewControlle... | code_c | code | 110 | null |
<filename>src/app/w1209/thermistor_toggler.c
/*!
* @file
* @brief
*/
#include <stm8s.h>
#include <stddef.h>
#include <stdbool.h>
#include "thermistor_toggler.h"
#include "led.h"
#include "thermistor.h"
#include "tiny_utils.h"
static void thermistor_callback(void* context, const void* args) {
reinterpret(self, co... | code_c | code | 216 | null |
//
// IKResultsCommon.h
// IKResults
//
// Created by <NAME> on 1/07/2015.
// Copyright (c) 2015 IanKeen. All rights reserved.
//
#define PERFORM_SELECTOR_WITHOUT_WARNINGS(code) _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") code; _Pragma("clang diagnostic pop"... | code_c | code | 146 | null |
/* ===========================================================================
*
* This file is part of HISE.
* Copyright 2016 <NAME>
*
* HISE 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 | 5,338 | null |
<reponame>Ngo-The-Trung/mcrouter
/*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the sa... | code_c | code | 1,689 | null |
#pragma once
#include <libjson/Json.h>
#include <libsystem/io/Path.h>
#include <libsystem/utils/List.h>
#include <libwidget/Model.h>
struct DeviceModel : public Model
{
json::Value *data;
};
DeviceModel *device_model_create();
void device_model_navigate(DeviceModel *model, Path *path);
const char *device_model... | code_c | code | 106 | null |
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <memory.h>
#include "../inc/spr_tools.h"
#include "../inc/tools.h"
static int getMaxNumTileAnimation(animation_* animation);
static int getMaxNumSpriteAnimation(animation_* animation);
frameSprite_* getFlippedFrameSprite(frameSprite_* ... | code_c | code | 2,939 | null |
<filename>simba/src/kernel/time.h
/**
* @section License
*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017, <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
* re... | code_c | code | 1,080 | null |
<filename>contrib/libs/musl-1.1.20/include/tar.h<gh_stars>10-100
#ifndef _TAR_H
#define _TAR_H
#include <features.h>
#define TSUID 04000
#define TSGID 02000
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_XOPEN_SOURCE)
#define TSVTX 01000
#endif
#define TUREAD 00400
#define TUWRITE 00200
#define T... | code_c | code | 213 | null |
<reponame>professordeng/OS<filename>memory/malloc/malloc-max.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#define TYPE "/status"
void print(const char * name, pid_t pid, const char * type){
printf("\n %s \n", name);
char order[64] = "cat /proc/";
char PID[8];
sprintf(PID, "%d"... | code_c | code | 179 | null |
C $Header: /u/gcmpack/MITgcm/eesupp/inc/SIGREG.h,v 1.1 2005/12/03 08:30:32 edhill Exp $
C $Name: $
integer i_got_signal
common / sig_i / i_got_signal
CEH3 ;;; Local Variables: ***
CEH3 ;;; mode:fortran ***
CEH3 ;;; End: ***
| code_c | code | 68 | null |
// Copyright (c) 2020 The Orbit 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 ORBIT_BASE_THREAD_CONSTANTS_H_
#define ORBIT_BASE_THREAD_CONSTANTS_H_
#include <cstdint>
namespace orbit_base {
// Note that any non-multiple ... | code_c | code | 347 | null |
<reponame>lukaszgryglicki/old_c<filename>pgxexplorer/pgxexplorer.h<gh_stars>0
/* Written by <NAME>, <EMAIL>
This is part of PgXexplorer software, Open Source
on BSD licence, Libraries(interaces) used:
GNU GCC, AS (all stuff needed to compile C source into executable binary)
LibPQ-FE from PostgreSQL, GTK (GIMP Toolk... | code_c | code | 424 | null |
<gh_stars>0
/**
******************************************************************************
* @file main.c
* @author <EMAIL>
* @date 2017-03-02
* @mainpage Soldering pen bootloader
* This program supports loading new firmware for Nicecircuits Soldering Pen.
* More info available at:... | code_c | code | 3,678 | null |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
class SGraphPinExec : public SGraphPin
{
public:
SLATE_BEGIN_ARGS(SGraphPinExec) {}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, UEdGraphPin* InPin);
protected:
// Begin SGraphPin interface
virtual TSharedRef<SWidget> GetDef... | code_c | code | 152 | null |
/** This header file provides a set of concepts that are useful for implementing
* convex optimization algorithms. For more information, please consult the
* excellent references:
*
* "Convex Optimization" by Boyd and Vandenberghe
*
* "Proximal Algorithms" by Parikh and Boyd
*
* Copyright (C) 2017 - 2018 by <NA... | code_c | code | 861 | null |
<filename>tensorflow/c/experimental/grappler/grappler.h
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/lice... | code_c | code | 3,673 | null |
<gh_stars>0
/**
* A primitive COM serial driver
*
* Currently works in QEMU, but doesn't support IRQ and the port is hard-coded
*/
#include "com.h"
int is_transmit_empty() {
return inb(PORT + 5) & 0x20;
}
void write_serial(char a) {
while (is_transmit_empty() == 0);
outb(PORT,a);
}
int serial_rec... | code_c | code | 127 | null |
<reponame>DarlingXIe/DLCommercial
//
// DLMainNavViewController.h
// DLCommercialPro
//
// Created by DalinXie on 17/1/23.
// Copyright © 2017年 itdarlin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DLMainNavViewController : UINavigationController
@end
| code_c | code | 78 | null |
<gh_stars>10-100
#include <x86intrin.h>
void AddRoundKey(__m128i plain[64], __m128i key[64]) {
for (int i = 0; i < 64; i++)
plain[i] = _mm_xor_si128(plain[i], key[i]);
}
void SubColumn(__m128i* a0, __m128i* a1, __m128i* a2, __m128i* a3) {
__m128i t1, t2, t3, t5, t6, t8, t9, t11;
t1 = _mm_andnot_si128(_mm... | code_c | code | 388 | null |
<filename>Optimus/src/pch.h<gh_stars>0
#pragma once
#include <iostream>
#include <utility>
#include <algorithm>
#include <functional>
#include <memory>
#include <string>
#include <sstream>
#include <vector>
#include <unordered_map>
#include <map>
#include <set>
#include <fstream>
#include <Optimus/Utilities/Macros.h... | code_c | code | 108 | null |
<filename>dlls/comctl32/tests/msg.h<gh_stars>1-10
/* Message Sequence Testing Code
*
* Copyright (C) 2007 <NAME>
* Copyright (C) 2007 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software F... | code_c | code | 638 | null |
/*
* Copyright (c) 2020-2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "bstests.h"
extern struct bst_test_list *test_vcs_install(struct bst_test_list *tests);
extern struct bst_test_list *test_vcs_client_install(struct bst_test_list *tests);
extern struct bst_test_list *test_mic... | code_c | code | 325 | null |
#ifndef DisplayUI_h
#define DisplayUI_h
#include <iostream>
#include <SimpleMenu.h> // SimpleMenu library
#include <SimpleButton.h> // SimpleButton library
#include "ConfigOLED.h" // Config class for OLED
#include "MenuGraph.h" // Packet Graph Menu
#include "MenuChannel.h" // Channel Menu
#include... | code_c | code | 846 | null |
<reponame>AmuUncle/CarCompass
#ifndef APPINIT_H
#define APPINIT_H
#include <QObject>
#include <QTime>
class QTimer;
class AppInit : public QObject
{
Q_OBJECT
public:
static AppInit *Instance();
explicit AppInit(QObject *parent = 0);
void start();
void StartWatchMouse();
void StopWatchMou... | code_c | code | 161 | null |
/*
* linux/fs/isofs/rock.c
*
* (C) 1992, 1993 <NAME>
*
* Rock Ridge Extensions to iso9660
*/
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/smp_lock.h>
#include "isofs.h"
#include "rock.h"
/*
* These functions are designed to read the system areas of a directory record
* and extract r... | code_c | code | 5,372 | null |
<reponame>couchbaselabs/couchstore-specials
//
// arena.h
// couchstore
//
// Created by <NAME> on 4/13/12.
// Copyright (c) 2012 Couchbase, Inc. All rights reserved.
//
#ifndef COUCH_ARENA_H
#define COUCH_ARENA_H
#include <sys/types.h>
/** Opaque arena-allocator object. */
typedef struct arena arena;
/** Saved... | code_c | code | 616 | null |
/*
* Copyright 2011 <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 of
* conditions... | code_c | code | 2,007 | null |
<gh_stars>1-10
// Copyright (c) 2014-2018 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | code_c | code | 962 | null |
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-2.0-xr-w32-bld/build/widget/public/nsIWinTaskbar.idl
*/
#ifndef __gen_nsIWinTaskbar_h__
#define __gen_nsIWinTaskbar_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
#ifndef __gen_nsIBaseWindow_h__
#include "nsIBa... | code_c | code | 3,136 | null |
<gh_stars>0
#ifndef DB_H
#define DB_H
struct block_info {
u8 valid;
u8 occupied;
u8 part_count; //# of partitions total in a block
u8 part_occupancy; //# of partitions allocated in a block
u16 part_size; //0 == invalid block, 61=>X>=1 == block size = X * 16,, X > 63 == invalid block
u16 part_tbl_offs; // offset ... | code_c | code | 218 | null |
/*
* Copyright 2021 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | code_c | code | 468 | null |
<filename>src/xray/xr_3da/xrGame/ode_include.h
#pragma warning(disable:4995)
#pragma warning(disable:4267)
#include "../../xrODE/include/ode/ode.h"
#pragma warning(default:4995)
#pragma warning(default:4267)
#include "ode_redefine.h" | code_c | code | 66 | null |
#include <stdlib.h>
struct pair
{
int x;
int y;
};
struct pair_of_pairs
{
struct pair p1;
struct pair p2;
};
int f1(int *a, struct pair *b) __CPROVER_assigns(*a, b)
{
struct pair_of_pairs *pop =
(struct pair_of_pairs *)malloc(sizeof(struct pair_of_pairs));
b = &(pop->p2);
b->y = 5;
}
int main()
{
... | code_c | code | 108 | null |
/*
*
* ===================================
* HARP | Host ATM Research Platform
* ===================================
*
*
* This Host ATM Research Platform ("HARP") file (the "Software") is
* made available by Network Computing Services, Inc. ("NetworkCS")
* "AS IS". NetworkCS does not provide maintenance, i... | code_c | code | 3,148 | null |
<filename>targets/STM32F103C8_MINIMAL/board_drivers.c<gh_stars>0
/**
* @file board_drivers.c
* @brief
*
* @{
*/
#include "board_drivers.h"
#include "ch.h"
#include "hal.h"
#include "mod_led.h"
extern ModLED LED_BMS_HEARTBEAT;
extern ModLED LED_CAN_RX;
extern ModLED LED_BOARDHEARTBEAT;
s... | code_c | code | 489 | null |
<gh_stars>0
/*
*
* Author
* <NAME>
* Date
* 4/18/2014
* Description
* process and thread infos
*
* Licensed under the Apache License, Version 2.0
*
*/
#ifndef TESLA_BASE_PROCESSINFO_H
#define TESLA_BASE_PROCESSINFO_H
#include <tesla/base/StringPiece.hpp>
#include <tesla/base/Types.hpp>
#include... | code_c | code | 427 | null |
<filename>ds/netapi/rpcxlate/rxapi/sessdel.c
/*++
Copyright (c) 1991-1993 Microsoft Corporation
Module Name:
SessDel.c
Abstract:
This file contains RxNetSessionDel().
Author:
<NAME> (JohnRo) 18-Oct-1991
Environment:
Portable to any flat, 32-bit environment. (Uses Win32 typed... | code_c | code | 1,448 | null |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
int8_t x2 = -1;
static uint64_t t2 = 2628947662824976LLU;
uint16_t x22 = 943U;
static uint32_t x23 = 363913485... | code_c | code | 15,461 | null |
<reponame>qysmob/QYSMobDemo<gh_stars>1-10
//
// QYSSplashAd.h
// QYSMobSDK
//
// Created by quys on 2020/11/2.
// Copyright © 2020 Quys. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#if __has_include(<QYSMobSDK/QYSSplashAdDelegate.h>)
#import <QYSMobSDK/QYSSplashAdDelegate... | code_c | code | 358 | null |
<reponame>mnrsmith/altURI
/*
Copyright (c) 2010, <NAME>, All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of condit... | code_c | code | 607 | null |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | code_c | code | 1,298 | null |
/*--------------------------------------------------------------------------------
Copyright (c) Microsoft Corporation. All rights reserved. See license.txt for license information.
*/
/**
\file
\brief Enumeration of BIOS
\date 11-01-14 15:00:00
*/
/*-----------------------------------------... | code_c | code | 326 | null |
<gh_stars>0
/* Copyright (c) 2013-2018, 2020 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is d... | code_c | code | 1,187 | null |
#ifndef LITESQL_VIEW_H
#define LITESQL_VIEW_H
#include <wx/docview.h>
#include <wx/treebook.h>
class LitesqlModelTreePanel;
class LitesqlView: public wxView
{
public:
wxMDIChildFrame *frame;
LitesqlModelTreePanel* panel;
LitesqlView();
virtual ~LitesqlView();
protected:
wxPanel... | code_c | code | 399 | null |
#import <CoreAudio/CoreAudio.h>
#import <CoreMediaIO/CMIOHardware.h>
#import <CoreMediaIO/CMIOHardwareObject.h>
#import <CoreMediaIO/CMIOHardwareSystem.h>
uint8_t checkResult(OSStatus result) {
if (result == noErr) {
return 0;
}
char message[20];
*(UInt32 *)(message + 1) = CFSwapInt32HostToBig... | code_c | code | 1,398 | null |
#pragma once
#include "array19/AllocatedArrayOf.h"
#include "serialize.h"
#include <stdint.h> // uint32_t
namespace serialize19 {
using array19::AllocatedArrayOf;
template<Archive A, class T> void serialize(A& a, AllocatedArrayOf<T>& allocatedArray) {
auto count = static_cast<uint32_t>(allocatedArray... | code_c | code | 202 | null |
<reponame>Muhammedsuwaneh/Mobile_Robot_Control_System
/*
Adept MobileRobots Robotics Interface for Applications (ARIA)
Copyright (C) 2004-2005 ActivMedia Robotics LLC
Copyright (C) 2006-2010 MobileRobots Inc.
Copyright (C) 2011-2015 Adept Technology, Inc.
Copyright (C) 2016 Omron Adept Technologies, Inc.
This pro... | code_c | code | 4,304 | null |
#ifndef SETTINGS
#define SETTINGS
#define DEVICEID "" // Your device id comes here
#define CLIENTID "" // Your client id comes here;
#define CLIENTKEY "" // Your client key comes here;
#endif
| code_c | code | 64 | null |
// Copyright © 1996-2018, Valve Corporation, All rights reserved.
#ifndef SOURCE_TIER1_RESOURCEMANAGER_H_
#define SOURCE_TIER1_RESOURCEMANAGER_H_
#include "base/include/macros.h"
#include "tier0/include/threadtools.h"
#include "tier1/utlmultilist.h"
#include "tier1/utlvector.h"
SOURCE_FORWARD_DECLARE_HANDLE(memhandl... | code_c | code | 2,192 | null |
//-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Generates COM+ byte codes from trees.
// See CodeGenerator.cpp for file organization info.
//
//-------------------------------------------------... | code_c | code | 9,496 | null |
/*
* Copyright (c) 2011, 2012, 2013, 2014, 2017 Nicira, 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 b... | code_c | code | 2,943 | null |
#ifndef MD5_H
#define MD5_H
#include <bpclient_config.h>
typedef struct
{
BP_UINT32 count[2];
BP_UINT32 state[4];
BP_UINT8 buffer[64];
}MD5_CTX;
#define F(x,y,z) ((x & y) | (~x & z))
#define G(x,y,z) ((x & z) | (y & ~z))
#define H(x,y,z) (x^y^z)
#define I(x,y,z) (y ^ (x | ~z))
#define R... | code_c | code | 320 | null |
<reponame>cleemesser/libmaple<gh_stars>0
/******************************************************************************
* The MIT License
*
* Copyright (c) 2010 <NAME>.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "... | code_c | code | 1,343 | null |
<reponame>vitessedata/gpdb.4.3.99.x
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CDatumTest.h
//
// @doc:
// Test for datum classes
//
// @owner:
//
//
// @test:
//
//
//---------------------------------------... | code_c | code | 418 | null |
<reponame>Andrew-Kulpa/PAR-Packer<gh_stars>0
#include "mktmpdir.h"
#include "sha1.h"
#define PAR_TEMP "PAR_TEMP"
#ifdef O_BINARY
# define OPEN_O_BINARY O_BINARY
#else
# define OPEN_O_BINARY 0
#endif
#ifndef P_tmpdir
#define P_tmpdir "/tmp"
#endif
/* NOTE: This code is #include'd both from a plain C program (boot.... | code_c | code | 3,248 | null |
<reponame>dreamcmi/esp-idf
/*
* SPDX-FileCopyrightText: 2020-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _ESP_WNM_H
#define _ESP_WNM_H
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* enum btm_query_reason: Reason code for sending btm query
*/
... | code_c | code | 400 | null |
//
// UpdateUserInfoApi.h
// FreelyHeath
//
// Created by L on 2017/12/18.
// Copyright © 2017年 深圳乐易住智能科技股份有限公司. All rights reserved.
//
#import "BaseApi.h"
@interface UpdateUserInfoApi : BaseApi
- (void)updateUser:(NSMutableDictionary *)detail;
@end
| code_c | code | 74 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.