text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>leozz37/makani<filename>lib/pcap_reader/ip_defragmenter.h<gh_stars>1000+
/*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | code_c | code | 1,542 | null |
#pragma once
#include "Atlas.h"
#include "Color.h"
#include "Tileset.h"
struct Leaf
{
Leaf();
Color color[4];
int16_t dx, dy;
char32_t code;
uint8_t flags;
uint8_t reserved;
static const uint8_t CornerColored = 0x01;
};
struct Cell
{
std::vector<Leaf> leafs;
};
struct Layer
{
Layer(Size size);
std::vector... | code_c | code | 247 | null |
<filename>AG/Client/Plane.h
#pragma once
#include "../Engine/GameObject.h"
NAMESPACE(Engine)
class DynamicMesh;
class Transform;
class Shader;
class Trail;
class TextureEffect;
class Collider;
END
class Shadow;
class Plane final : public Engine::GameObject
{
private:
FLOAT invincibletime = 1.f;
Engine::GameObje... | code_c | code | 379 | null |
// REQUIRES: arm-registered-target
// RUN: %clang_cc1 -triple thumbv7-linux-gnueabihf -target-cpu cortex-a8 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK-VFP3
// RUN: %clang_cc1 -triple thumbv7-linux-gnueabi -target-cpu cortex-a9 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK-VFP3
// CHECK-VFP3: "targ... | code_c | code | 807 | null |
<filename>mono/metadata/debug-mono-symfile.h
/*
* This header is only installed for use by the debugger:
* the structures and the API declared here are not supported.
* Copyright 2012 Xamarin Inc (http://www.xamarin.com)
*/
#ifndef __MONO_DEBUG_MONO_SYMFILE_H__
#define __MONO_DEBUG_MONO_SYMFILE_H__
#include <glib... | code_c | code | 1,344 | null |
<reponame>ishiura-compiler/CF3<filename>testsuite/EXP_3/test1859.c
/*
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"
uint16_t x10 = 2554U;
int32_t t3 = 1;
uint8... | code_c | code | 14,848 | null |
<reponame>hjelmn/pmix
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee ... | code_c | code | 2,210 | null |
#ifndef MODEL_SUPPORTVECTORMACHINE_SOLVER_H_
#define MODEL_SUPPORTVECTORMACHINE_SOLVER_H_
#include "Kernel.h"
#include "Para.h"
#include <armadillo>
double tol = 1.0e-3;
class SmoSolver {
public:
SmoSolver(arma::mat &x, arma::vec &y, double regPar = 1.0, Kernel *kernel= new Kernel(LINEAR))
: kernel{kernel}, x{... | code_c | code | 244 | null |
<reponame>JKrystalMH/NYN<gh_stars>1-10
//
// ShopSelectView.h
// NetFarmCommune
//
// Created by manager on 2017/12/19.
// Copyright © 2017年 NongYiNong. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol ShopSelectViewDelagate<NSObject>
-(void)selectCellClick:(NSString * )str selectID:(NSString*)selectID... | code_c | code | 143 | null |
<gh_stars>0
// Copyright <NAME> 2014-2015.
// 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)
/*
* IAPWS-IF97 Region 1 equations
* VALIDITY 273.15 K <= T <= 623.15 K Psat <= p <= 1... | code_c | code | 430 | null |
<filename>pysurvival/cpp_extensions/survival_forest_utility.h
#ifndef SURVIVAL_FOREST_UTILITY_H_
#define SURVIVAL_FOREST_UTILITY_H_
#include <vector>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <random>
#include <unordered_set>
#include <unordered_map>
#include <cstddef>
#include <memory>
#i... | code_c | code | 4,472 | null |
//
// JTCalendarPageView.h
// JTCalendar
//
// Created by <NAME>
//
#import <UIKit/UIKit.h>
#import "JTCalendarPage.h"
@interface JTCalendarPageView : UIView<JTCalendarPage>
@property (nonatomic, weak) JTCalendarManager *manager;
@property (nonatomic) NSDate *date;
/*!
* Must be call if override the class
*/... | code_c | code | 120 | null |
<reponame>tiiuae/libsurvive<filename>redist/CNFGWinDriver.c
//Copyright (c) 2011 <>< <NAME> - Under the MIT/x11 or NewBSD License you choose.
//Portion from: http://en.wikibooks.org/wiki/Windows_Programming/Window_Creation
#include "CNFGFunctions.h"
#include <windows.h>
#include <stdlib.h>
#if !defined(__FreeBSD__) &... | code_c | code | 2,431 | null |
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
* 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 cod... | code_c | code | 1,276 | null |
<reponame>pguibert6WIND/rtrlib-1<gh_stars>10-100
/*
* 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:
*
* 1. Redistributions of source code must retain the above... | code_c | code | 2,999 | null |
<filename>firmwares/bootloaders/hid_bootloader_cli_win_vs/hid_bootloader_cli_win_vs/ddk/ntrxdef.h<gh_stars>1-10
/*++
Copyright (c) 1994 Microsoft Corporation
Module Name:
NtRxDef.h
Abstract:
This module defines a whole host of macros that orient the code towards NT
as opposed to Win9x.
Author:
--*/
... | code_c | code | 2,713 | null |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSplineRepresentation.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distribute... | code_c | code | 1,264 | null |
#ifndef WORK_REPORT_AIRPORT_SIM_H
#define WORK_REPORT_AIRPORT_SIM_H
/*
Features:
-Not Implemented: None
-Implemented:
all the given classes plus a modified runway class
that controls the runway and processes takeoff and landing
Queue cl... | code_c | code | 392 | null |
<gh_stars>0
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | code_c | code | 2,277 | null |
/*
MIT License
Copyright (c) 2019 ZhuQian
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, distri... | code_c | code | 1,455 | null |
#pragma once
#ifndef __Network_H__
#define __Network_H__
class CPacket;
#define NETWORK_PROTOCOL_VERSION 1
#define NETWORK_PROTOCOL_PASSPHRASE "somerandompass01"
#define DEFAULT_PORT 25045
#define BROADCAST_PING_PERIOD 2.5 // How often to broadcast the Ping packet on the server
#define PING_SENT_TI... | code_c | code | 844 | null |
/*
* hostapd / EAP-PAX (RFC 4746) server
* Copyright (c) 2005-2007, <NAME> <<EMAIL>>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include... | code_c | code | 4,516 | null |
<gh_stars>1-10
/*
* Copyright (c) 2019 Intel Corporation.
* Copyright (c) 2020 Endian Technologies AB
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <logging/log.h>
LOG_MODULE_DECLARE(net_l2_ppp, CONFIG_NET_L2_PPP_LOG_LEVEL);
#include <net/net_core.h>
#include <net/net_pkt.h>
#include <net/ppp.h>
#include ... | code_c | code | 2,852 | null |
#include "header.h"
pid_t shPid;
pid_t chPid = 0;
char *homeDir;
char *chName;
char blank[] = "";
void getshPid()
{
shPid = getpid();
}
void setChPid(int id, char *cmd)
{
// printf("@%d %s@\n", id, cmd);
chPid = id;
chName = cmd;
if(chName == NULL)
chName = blank;
}
void ctrlC(int nec)
... | code_c | code | 316 | null |
<filename>src/Gulden/Common/diff_common.h
// Copyright (c) 2015-2018 The Gulden developers
// Authored by: <NAME> (<EMAIL>)
// Distributed under the GULDEN software license, see the accompanying
// file COPYING
#ifndef GULDEN_DIFF_COMMON_H
#define GULDEN_DIFF_COMMON_H
#ifdef __JAVA__
#define fDebug false
#de... | code_c | code | 941 | null |
#ifndef __FONT5x7_H
#define __FONT5x7_H
#include "ssd1306_ftdi.h"
#define fnt5x7 &Font5x7
static const Font_TypeDef Font5x7 = {
5, // Font width
7, // Font height
5, // Bytes per character
FONT_V, // Vertical font scan lines
32, // First character: ' '
126, ... | code_c | code | 1,133 | null |
<reponame>cgutman/userland<filename>containers/core/containers.c
/*
Copyright (c) 2012, Broadcom Europe Ltd
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 retai... | code_c | code | 6,907 | null |
<filename>Pods/UIKit.framework/Headers/UIPrintFormatter.h
//
// UIPrintFormatter.h
// UIKit
//
// Copyright 2010-2012 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
#import <UIKit/UIView.h>
#import <UIKit/UIStringDrawing.h>
#import <UIKit/UIGeometry.h>
#im... | code_c | code | 983 | null |
/*
* Copyright (c) 2020, RTBtech, MediaSniper, <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | code_c | code | 453 | null |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef ETITANIUM_QT_ETITANIUMADDRESSVALIDATOR_H
#define ETITANIUM_QT_ETITANIUMADDRESSVALIDATOR_H
#include <QValidator>
/**... | code_c | code | 276 | null |
/**
* \file
*
* \brief USB Device Human Interface Device (HID) interface.
*
* Copyright (c) 2009-2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... | code_c | code | 1,440 | null |
<reponame>czen/open-ops<gh_stars>10-100
#ifndef _DEPGRAPH_
#define _DEPGRAPH_
#include <iostream>
#include <list>
#include "id.h"
#include "Status.h"
#include "LoopStruct.h"
namespace DepGraph
{
/// Различные типы зависимости
enum EN_DepType
{
/// Истинная (потоковая) зависимость. От генератора к использованию.
... | code_c | code | 11,565 | null |
<filename>targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2/TARGET_SOFTDEVICE_COMMON/ble/peer_manager/pm_buffer.h
/**
* Copyright (c) 2015 - 2017, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that... | code_c | code | 1,887 | null |
<gh_stars>1-10
/*
* Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn... | code_c | code | 1,820 | null |
/** jsobjManipulator.h */
/**
* Copyright (C) 2009 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the ... | code_c | code | 978 | null |
/* cast initialization */
typedef unsigned char u_char;
typedef unsigned int size_t;
struct sockaddr_x25 {
u_char x25_len;
u_char x25_family;
short x25_net;
char x25_addr[16];
struct x25opts {
char op_flags;
char op_psize;
char op_wsize;
char op_speed;
} x25_opts;
short x25_udlen;
char x... | code_c | code | 190 | null |
//
// WCPaymentViewController.h
// WeCrowd
//
// Created by <NAME> on 7/6/15.
// Copyright (c) 2015 WePay. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CWStatusBarNotification.h"
#import "WCPaymentFlowDelegate.h"
@interface WCPaymentViewController : UITableViewController
@property (nonatomic, weak, r... | code_c | code | 130 | null |
<filename>cli/owslave/moat_backend.c
/*
* Copyright © 2014-2015, <NAME> <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opti... | code_c | code | 601 | null |
<reponame>OrdinaryMagician/aliceos-kernel
/*
timer.c : programmable timer interface.
(C)2012-2013 <NAME>, UnSX Team.
Part of AliceOS, the Alice Operating System.
Released under the MIT License.
*/
#include <sys/types.h>
#include <sys/regs.h>
#include <sys/timer.h>
#include <sys/irq_handlers.h>
#include <sys/helpers... | code_c | code | 921 | null |
<gh_stars>1-10
/*
* Copyright © 2007,2008 Red Hat, Inc.
* Copyright © 2010 NVIDIA Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Soft-
* ware"), to deal in the Software without restriction, including without
... | code_c | code | 654 | null |
<reponame>telecommai/ios
//
// RecommendMarketCell.h
// StockMarket
//
// Created by 赵洪壮 on 2018/11/13.
// Copyright © 2018 SpiderMan. All rights reserved.
// 简况-市场推荐Cell
//
#import <UIKit/UIKit.h>
@class CoinSimpleIntroRecommendModel;
NS_ASSUME_NONNULL_BEGIN
@interface RecommendMarketCell : UITableViewCell
@... | code_c | code | 121 | null |
<reponame>RESP3CT88/Nuitka
// Copyright 2021, <NAME>, mailto:<EMAIL>
//
// Part of "Nuitka", an optimizing Python compiler that is compatible and
// integrates with CPython, but also works on its own.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ... | code_c | code | 21,989 | null |
/* See LICENSE file for copyright and license details.
*
* A test suite for dh_cuts, implemented with dh_cuts.
* Weirdness ensues.
*/
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#define DH_IMPLEMENT_HERE
#include "dh_cuts.h"
static ... | code_c | code | 307 | null |
<gh_stars>10-100
#pragma once
#include "CoreMinimal.h"
#include "Interfaces/IHttpRequest.h"
#include "GISDataSource.h"
#include "UObject/NoExportTypes.h"
#include "MapboxDataSource.generated.h"
enum class EMapboxRequestDataType
{
RGB,
HEIGHT
};
struct FMapboxRequestData
{
EMapboxRequestDataType DataType;
int Rel... | code_c | code | 562 | null |
<filename>src/tbprobe.c
/*
* tbprobe.c
* Copyright (c) 2013-2016 <NAME>
* Copyright (c) 2016-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 restriction, includin... | code_c | code | 16,052 | null |
<gh_stars>1-10
//
// IOSubmitOrderView.h
// iOrder
//
// Created by 易无解 on 5/25/16.
// Copyright © 2016 易无解. All rights reserved.
//
#import <UIKit/UIKit.h>
@class IOSubmitOrderView;
@protocol IOSubmitOrderViewDelegate <NSObject>
- (void)submitOrderView:(IOSubmitOrderView *)submitOrderView submitClicked:(UIButt... | code_c | code | 154 | null |
//
// Copyright © 2016年 Vizlab. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface VZInspectorBizLogItem : NSObject<NSCoding ,NSCopying>
@property (nonatomic, assign) float itemHeight;
@property (nonatomic, assign) Class cellClass;
@property (nonatomic, strong) NSIndexPath *indexPath;
@end
| code_c | code | 90 | null |
<filename>third_party/tcmalloc/chromium/src/packed-cache-inl.h<gh_stars>1000+
// Copyright (c) 2007, Google 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:
//
// * Redistributions ... | code_c | code | 2,858 | null |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011-2014, <NAME>, Inc.
* Copyright (c) 2014-2016, Open Source Robotics Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... | code_c | code | 1,764 | null |
//
// Nios_process.h
// nios
//
// Created by <NAME> on 2/6/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Nios.h"
@interface Nios_process : NSObject
@end
| code_c | code | 64 | null |
/**
******************************************************************************
* @file CRYP/CRYP_DESTDESmodes/main.c
* @author MCD Application Team
* @version V1.1.0
* @date 18-January-2013
* @brief Main program body
********************************************************************... | code_c | code | 3,619 | null |
<reponame>Garuda-IIITH-RRC/Octomap-using-T265-and-D415-
#ifndef MAVLINK_TYPES_H_
#define MAVLINK_TYPES_H_
#include "inttypes.h"
enum MAV_CLASS
{
MAV_CLASS_GENERIC = 0, ///< Generic autopilot, full support for everything
MAV_CLASS_PIXHAWK = 1, ///< PIXHAWK autopilot, http://pixhawk.ethz.ch
MA... | code_c | code | 3,208 | null |
<gh_stars>1-10
/*
* Copyright 2008-2010 NVIDIA 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 require... | code_c | code | 3,710 | null |
<filename>protocol/MessageIO.h
//
// Created by <NAME> on 2019-09-02.
//
#ifndef LIBLICHTENSTEIN_IO_MESSAGEIO_H
#define LIBLICHTENSTEIN_IO_MESSAGEIO_H
#include <functional>
#include <cstddef>
#include <vector>
#include <google/protobuf/message.h>
namespace lichtenstein::protocol {
class Message;
}
namespace libl... | code_c | code | 428 | null |
<reponame>subhamb123/C-and-CPP-Projects<filename>Data Structures and Algorithms/Arrays/Array ADT/Union.c<gh_stars>1-10
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
int main(){
int A[10] = {1, 2, 3, 4, 5, 6, 7, 8};
int B[10] = {3, 5, 2, 434, 1};
int C[20];
int lengthA = 8;
int lengthB = ... | code_c | code | 228 | null |
<filename>mindspore/ccsrc/backend/kernel_compiler/gpu/other/check_valid_gpu_kernel.h
/**
* Copyright 2020 Huawei Technologies 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 a... | code_c | code | 1,138 | null |
<reponame>devasia1000/chromium<filename>chrome/browser/chromeos/drive/file_system/search_operation.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 CHROME_BROWSER_CHROMEOS_DRIVE_FILE_SYSTEM_SEA... | code_c | code | 882 | null |
/*
* Copyright (c) 2007 Mellanox Technologies. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this sou... | code_c | code | 3,192 | null |
<filename>All-onboard/Categories/UIView+LSCUIViewAdditions.h
//
// UIView+LLMUIViewAdditions.h
// Situate
//
// Created by <NAME> on 26/03/2015.
// Copyright (c) 2015 Llamadigital. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (LSCUIViewAdditions)
- (void)sizeToFitWithAlignmentCenter:(CGRect)... | code_c | code | 130 | null |
<gh_stars>0
#include "ckcsym.h"
int xcmdsrc = 0;
#ifdef NOICP
int cmdsrc() { return(0); }
#endif /* NOICP */
/* C K U U S 5 -- "User Interface" for C-Kermit, part 5 */
/*
Authors:
<NAME> <<EMAIL>>,
The Kermit Project, Columbia University, New York City
<NAME> <<EMAIL>>
Secure Endpoints Inc.... | code_c | code | 111,075 | null |
//===--- TypeInfo.h - Abstract primitive operations on values ---*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | code_c | code | 6,055 | null |
/* generated */
#include "class.h"
static const struct range ranges[] = {
{ 0x13000UL, 0x1342EUL },
{ 0x13430UL, 0x13438UL }
};
const struct class utf8_Egyptian_Hieroglyphs = {
ranges,
sizeof ranges / sizeof *ranges
};
| code_c | code | 64 | null |
<gh_stars>1000+
#ifndef _HEADERGUARDSUB1_H_
#define _HEADERGUARDSUB1_H_
#include "HeaderGuardSubSub.h"
#include "HeaderGuardSubSubDefined.h"
#endif // _HEADERGUARDSUB1_H_
| code_c | code | 48 | null |
<filename>lte/gateway/c/oai/tasks/mme_app/mme_app_embedded_spgw.c
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Softw... | code_c | code | 1,334 | null |
<filename>src/gromacs/trajectoryanalysis/tests/moduletest.h
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright 2012- The GROMACS Authors
* and the project initiators <NAME>, <NAME> and <NAME>.
* Consult the AUTHORS/COPYING files and https://www.gromacs.org for details.
*
* GROMACS ... | code_c | code | 2,149 | null |
/*
This file is part of NetGuard.
NetGuard 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 3 of the License, or
(at your option) any later version.
NetGuard is distributed ... | code_c | code | 2,037 | 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 Corporatio... | code_c | code | 2,616 | null |
<filename>VC2010Samples/MFC/ole/oleview/shadow.h<gh_stars>100-1000
/*
* These defines are used in the uiFlags and uiStyle parameters to
* the TDUTIL functions.
*/
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code i... | code_c | code | 1,257 | null |
<reponame>ddreyer/openthread
/*
* Copyright (c) 2016, The OpenThread Authors.
* 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 c... | code_c | code | 1,141 | null |
<reponame>HelixOS/prebuilts-gcc
#ifndef _LINUX_MMAN_H
#define _LINUX_MMAN_H
#include <asm/mman.h>
#define MREMAP_MAYMOVE 1
#define MREMAP_FIXED 2
#define OVERCOMMIT_GUESS 0
#define OVERCOMMIT_ALWAYS 1
#define OVERCOMMIT_NEVER 2
#endif /* _LINUX_MMAN_H */
| code_c | code | 74 | null |
<reponame>VonaInc/lokl<filename>wxWidgets/include/wx/notifmsg.h
///////////////////////////////////////////////////////////////////////////////
// Name: wx/notifmsg.h
// Purpose: class allowing to show notification messages to the user
// Author: <NAME>
// Created: 2007-11-19
// Copyright: (c) 200... | code_c | code | 1,738 | null |
/*
* Copyright (c) 1998 <NAME>
* Copyright (c) 1994 <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
* notic... | code_c | code | 4,050 | null |
<filename>nar/lib/Messaging/MessageTypes/KeepAliveCheck.h
#ifndef NAR_MESSKEEPALIVECHECK_H
#define NAR_MESSKEEPALIVECHECK_H
#include <string>
#include <vector>
#include "RequestHeader.h"
#include "ResponseHeader.h"
#include <nar/lib/nlohJson/json.hpp>
#include <nar/narnode/utility.h>
namespace nar {
namespace Messa... | code_c | code | 353 | null |
/*
* Copyright (C) 2010 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
*
* Unless required by app... | code_c | code | 3,604 | null |
<gh_stars>1-10
/* dnsmasq is Copyright (c) 2000-2012 <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; version 2 dated June, 1991, or
(at your option) version 3 dated 29 June, 2007.
... | code_c | code | 3,635 | null |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/crypto/crypto_tests/t_prng.c */
/*
* Copyright (C) 2001 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States... | code_c | code | 1,024 | null |
/****************************************************************************************
Copyright (C) 2016 Autodesk, Inc.
All rights reserved.
Use of this software is subject to the terms of the Autodesk license agreement
provided at the time of installation or download, or which otherwise accompanies... | code_c | code | 3,414 | null |
<filename>Libs/DICOM/Core/ctkDICOMObjectModel.h
/*=============================================================================
Library: CTK
Copyright (c) Brigham and Women's Hospital (BWH)
Copyright (c) University of Sheffield
Licensed under the Apache License, Version 2.0 (the "License");
you may not us... | code_c | code | 495 | null |
// SPDX-License-Identifier: GPL-2.0
/*
* PCI support in ACPI
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) 2004 <NAME> <<EMAIL>>
* Copyright (C) 2004 Intel Corp.
*/
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/irqdomain.h>
#include <linux/pci.h>
#include <linux/msi.h>
#include <linu... | code_c | code | 10,468 | null |
/* With non GPL files, use following license */
/*
* Copyright 2008 Sony Corporation.
*
* 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
* not... | code_c | code | 1,560 | null |
<reponame>liufengcoder/FUSealTalkDemo
//
// RCDGroupInfo.h
// RCloudMessage
//
// Created by 杜立召 on 15/3/19.
// Copyright (c) 2015年 RongCloud. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <RongIMLib/RCGroup.h>
typedef NS_ENUM(NSInteger, RCDGroupMessageClearStatus) {
RCDGroupMessageClearSta... | code_c | code | 321 | null |
/*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#ifndef SIMLOADINGSCREEN_H
#define SIMLOADINGSCREEN_H
#include "simtypes.h"
#include "tpl/slist_tpl.h"
struct event_t;
/**
* Implements the loading screen related routines, in the aim of centralize
* a... | code_c | code | 349 | null |
<reponame>correcthorsebatterystaple/esbmc
int main()
{
int x[1][1][3];
x[0][0][0] = 80;
x[0][0][2] = 0;
__ESBMC_assume((x[0][0][0] >= 77) && (x[0][0][0] <= 87));
__ESBMC_assume((x[0][0][2] >= -64) && (x[0][0][2] <= 64));
__ESBMC_assert(0, "");
return 0;
} | code_c | code | 76 | null |
<gh_stars>10-100
/* 32-bit compatibility syscall for 64-bit systems
*
* Copyright (C) 2004-5 Red Hat, Inc. All Rights Reserved.
* Written by <NAME> (<EMAIL>)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free ... | code_c | code | 1,073 | null |
#include "libpov.h"
int main(int cgc_argc, char *cgc_argv[]) {
cgc_negotiate_type1(0x0, 0x0, 0);
do {
//*** writing data
static unsigned char write_00000_00000[] =
"\x48\x45\x4c\x4c\x4f\x0a";
static unsigned int write_00000_00000_len = 6;
unsigned char *write_00000 = NULL;
... | code_c | code | 2,176 | null |
/****************************************************************************
* boards/arm/stm32/clicker2-stm32/src/stm32_mrf24j40.c
*
* Copyright (C) 2017 <NAME>, All rights reserver
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt... | code_c | code | 3,040 | null |
//////////////////////////////////////////////////////
// MDIChildRect.h
// Declaration of the CViewRect and CMDIChildRect classes
#ifndef MDICHILDRECT_H
#define MDICHILDRECT_H
// Declaration of CViewRect
class CViewRect : public CWnd
{
public:
CViewRect() : m_cxClientMax(0), m_cyClientMax(0) {}
virtual int... | code_c | code | 262 | null |
<filename>product/n1sdp/module/n1sdp_flash/include/internal/uuid.h
/*
* Arm SCP/MCP Software
* Copyright (c) 2018-2020, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Description:
* Header file defining the structure of the Universally Unique
* IDentifie... | code_c | code | 304 | null |
<filename>include/d3dx9math.h
/*
* 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 Foundation; either
* version 2.1 of the License, or (... | code_c | code | 6,851 | null |
/*
* Apple ProRes compatible decoder
*
* Copyright (c) 2010-2011 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2... | code_c | code | 782 | null |
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2016 Intel Corporation. All rights reserved.
* Copyright(c) 2017 IBM 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:
... | code_c | code | 1,532 | null |
<filename>dlls/d3d11/utils.c
/*
* Copyright 2008 <NAME> for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) an... | code_c | code | 9,931 | null |
/*-
* BSD LICENSE
*
* Copyright (c) Intel 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 copyri... | code_c | code | 14,764 | null |
<reponame>PragmaticCoder/cme332
#include "globals.h"
#include "utils.h"
#define STANDARD_X 320
#define STANDARD_Y 240
#define INTEL_BLUE 0x0071C5
/* global variables */
extern volatile int* video_resolution;
extern volatile int* rgb_status;
extern int screen_x;
extern int screen_y;
extern int res_offset;
extern int ... | code_c | code | 1,466 | 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 CHROME_BROWSER_CHROMEOS_LOGIN_ERROR_SCREENS_HISTOGRAM_HELPER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_ERROR_SCREENS_HISTOGRAM_HELPER_H_
#include ... | code_c | code | 483 | null |
<filename>Project/LooseLeaf/MMTodoListTemplateView.h
//
// MMTodoListTemplateView.h
// LooseLeaf
//
// Created by <NAME> on 4/4/17.
// Copyright © 2017 Milestone Made, LLC. All rights reserved.
//
#import "MMPaperTemplateView.h"
@interface MMTodoListTemplateView : MMPaperTemplateView
@end
| code_c | code | 84 | null |
#include <stdio.h>
#include <string.h>
#include "common.h"
#include "../mqrspec.h"
unsigned char v4frame[] = {
0xc1,0xc1,0xc1,0xc1,0xc1,0xc1,0xc1,0xc0,0x91,0x90,0x91,0x90,0x91,0x90,0x91,0x90,0x91,
0xc1,0xc0,0xc0,0xc0,0xc0,0xc0,0xc1,0xc0,0x84,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xc1,0xc0,0xc1,0xc1,0xc1,... | code_c | code | 1,326 | null |
<gh_stars>10-100
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The Universi... | code_c | code | 916 | null |
/**
* @file test_mpin_random.c
* @author <NAME>
* @brief Test good token and correct PIN with D-TA
*
* 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 copyr... | code_c | code | 2,749 | null |
<filename>kernel-headers/linux/msm_audio_mvs.h
#ifndef _MSM_AUDIO_MVS_H
#define _MSM_AUDIO_MVS_H
#include <linux/msm_audio.h>
#define AUDIO_GET_MVS_CONFIG _IOW(AUDIO_IOCTL_MAGIC, \
(AUDIO_MAX_COMMON_IOCTL_NUM + 0), unsigned int)
#define AUDIO_SET_MVS_CONFIG _IOR(AUDIO_IOCTL_MAGIC, \
(AUDIO_MAX_COMMON_IOCTL_NUM + 1)... | code_c | code | 1,126 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.