text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>google-ar/chromium
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_COMMON_TEST_ASH_TEST_IMPL_H_
#define ASH_COMMON_TEST_ASH_TEST_IMPL_H_
#include <memory>
#include <string>
#incl... | code_c | code | 521 | null |
/* @BANNER@ */
#ifndef USBD_CCID_IMPL_H
#define USBD_CCID_IMPL_H
#ifdef HAVE_USB_CLASS_CCID
// ================================================
// CCID
#define TPDU_EXCHANGE 0x01
#define SHORT_APDU_EXCHANGE 0x02
#define EXTENDED_APDU_EXCHANGE 0x04
#define CHARACTER_EXCHANGE ... | code_c | code | 239 | null |
<reponame>junitas/coreflightexec<filename>tools/utf/inc/utf_cfe_time_utils.h
/*
** File: utf_cfe_time_utils.h
** $Id: utf_cfe_time_utils.h 1.3 2010/10/25 14:09:27GMT-05:00 jmdagost Exp $
**
** Copyright (c) 2004-2006, United States government as represented by the
** administrator of the National Aeronauti... | code_c | code | 768 | null |
// Copyright (c) 2019, University of Washington 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 cond... | code_c | code | 943 | null |
<reponame>MauTol16/sis-ops
#pragma once
#include <string>
enum class ResponseActionType { AccessAddressQuery,
AllocateProcessQuery,
DeallocateProcessQuery,
CommentQuery,
FinishQuery,
... | code_c | code | 450 | null |
/* Create new section group.
Copyright (C) 2002 Red Hat, Inc.
This file is part of elfutils.
Written by <NAME> <<EMAIL>>, 2002.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Sof... | code_c | code | 729 | null |
#ifndef FLOWMONITOR_H
#define FLOWMONITOR_H
#include <QObject>
#include <QTcpSocket>
#include <QList>
#include <QTcpServer>
/*
* status: property status
* alerts: custom messages
* events: signals emited
*
* total:
* eventHistory: [ newEvent,....]
* alertHistory: [ newAlert,....]
* currentStatus: ... | code_c | code | 925 | null |
<gh_stars>10-100
/*
* Based on linux/arch/arm/include/asm/dma.h
*/
#ifndef __ASM_ARM_DMA_H
#define __ASM_ARM_DMA_H
/*
* This is the maximum virtual address which can be DMA'd from.
*/
#define MAX_DMA_ADDRESS (~0ULL)
#ifdef CONFIG_PCI
extern int isa_dma_bridge_buggy;
#else
#define isa_dma_bridge_buggy (0)
#endi... | code_c | code | 100 | null |
/**
* @file
*
* @brief Header for the toml plugin
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#ifndef ELEKTRA_PLUGIN_TOML_H
#define ELEKTRA_PLUGIN_TOML_H
#include <kdbplugin.h>
int elektraTomlGet (Plugin * handle, KeySet * returned, Key * parentKey);
int elektraTomlSet (Plug... | code_c | code | 124 | null |
<gh_stars>10-100
/**********************************************************************
*<
FILE: stack.h
DESCRIPTION: Simple stack using Tab.
CREATED BY: <NAME>
HISTORY: Created 22 November 1994
*> Copyright (c) 1994, All Rights Reserved.
*********************************************************************... | code_c | code | 608 | null |
<filename>src/c/include/files.h
/**
* @file files.h
* @author <NAME> (<EMAIL>)
* @brief File handler header
* @version 0.1
* @date 2020-09-01
*
* @copyright Copyright (c) 2020
*
*/
#ifndef FILES_H
#define FILES_H
#include "structures.h"
#include <string.h>
void logFile(Parameters parameters, double time);
... | code_c | code | 263 | null |
<filename>hpy/debug/src/include/hpy_debug.h<gh_stars>0
#ifndef HPY_DEBUG_H
#define HPY_DEBUG_H
#include "hpy.h"
/*
This is the main public API for the debug mode, and it's meant to be used
by hpy.universal implementations (including but not limited to the
CPython's version of hpy.universal which is included in ... | code_c | code | 416 | null |
<reponame>sysrel/SIFT
//===-- CoreStats.h ---------------------------------------------*- C++ -*-===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------... | code_c | code | 467 | null |
/*
* Copyright 2008-2014 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements.
*
* 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 Licen... | code_c | code | 1,771 | null |
/* { dg-do compile { target powerpc*-*-* } } */
/* APPLE LOCAL begin radar 3961392 */
/* { dg-options "-O -mpowerpc-gfxopt -ftrapping-math" } */
/* APPLE LOCAL end radar 3961392 */
/* { dg-final { scan-assembler-not "fsub" } } */
/* Check that an fsub isn't generated when no arithmetic was requested;
such an fsub m... | code_c | code | 130 | null |
<reponame>Brent-rb/University
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
int main(int argc, const char* argv[]) {
int n = 0;
pid_t id;
int i = 0, f1, f2, fn, status;
if(argc == 2) {
n = atoi(argv[1]);
id = fork();
if(id == 0... | code_c | code | 160 | null |
<filename>subsys/bluetooth/host/rfcomm_internal.h
/** @file
* @brief Internal APIs for Bluetooth RFCOMM handling.
*/
/*
* Copyright (c) 2015-2016 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 ob... | code_c | code | 1,786 | null |
<filename>scsi_opcodes.h
#if !defined(SCSI_OPCODES_H)
#define SCSI_OPCODES_H 1
/****************************************************************************
* *
* COPYRIGHT (c) 1988 - 2021 *
* This Software Provided *
* By *
* Robin's Nest Software Inc. *
... | code_c | code | 5,989 | null |
/*BHEADER**********************************************************************
* Copyright (c) 2008, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
* This file is part of HYPRE. See file COPYRIGHT for details.
*
* HYPRE is free software; you can redistribute... | code_c | code | 2,838 | null |
<filename>lst2/names.c
/*
Little Smalltalk, version 2
Written by <NAME>, Oregon State University, July 1987
Name Table module
A name table is the term used for a Dictionary indexed by symbols.
There are two name tables used internally by the bytecode interpreter.
The first is the table, contained in the variabl... | code_c | code | 1,664 | null |
static void freeze(uint64_t out[9], const uint64_t in1[9]) {
{ const uint64_t x15 = in1[8];
{ const uint64_t x16 = in1[7];
{ const uint64_t x14 = in1[6];
{ const uint64_t x12 = in1[5];
{ const uint64_t x10 = in1[4];
{ const uint64_t x8 = in1[3];
{ const uint64_t x6 = in1[2];
{ const uint64_t x4 = in1[1]... | code_c | code | 1,261 | null |
<filename>src/mod_flv_streaming.c
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "response.h"
#include "http_chunk.h"
#include "stat_cache.h"
#include "plugin.h"
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
/* plugin config for all request/connections */
typedef st... | code_c | code | 1,755 | null |
#ifndef EventSetup_h
#define EventSetup_h
#include <memory>
#include <typeindex>
#include <unordered_map>
#include <iostream>
namespace edm {
// This is very different from CMSSW, but (hopefully) good-enough
// for this test
class ESWrapperBase {
public:
virtual ~ESWrapperBase() = default;
};
templa... | code_c | code | 421 | null |
<filename>source/common/quic/envoy_quic_proof_source_base.h<gh_stars>1-10
#pragma once
#include <string>
#include "envoy/network/filter.h"
#include "source/common/common/assert.h"
#include "source/common/common/logger.h"
#include "absl/strings/str_cat.h"
#include "openssl/ssl.h"
#include "quiche/quic/core/crypto/cr... | code_c | code | 753 | null |
/**
*******************************************************************************
* @file hc32f4a0_dmc.c
* @brief This file provides firmware functions to manage the EXMC DMC
* (External Memory Controller: Dynamic Memory Controller) driver library.
@verbatim
Change Logs:
Date Author ... | code_c | code | 6,849 | null |
<reponame>phildow/SproutedInterface
//
// NSDate_PDAdditions.h
// SproutedUtilities
//
// Created by <NAME> on 1/10/07.
// Copyright Sprouted. All rights reserved.
// All inquiries should be directed to <EMAIL>
//
#import <Cocoa/Cocoa.h>
@interface NSDate (PDAdditions)
- (BOOL) fallsOnSameDay:(NSDate*)aDate;
- ... | code_c | code | 111 | null |
<reponame>AsahiOS/gate
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* ... | code_c | code | 829 | null |
<filename>Example/Pods/Headers/Public/weibo-configure/FLEXNetworkSettingsTableViewController.h
//
// FLEXNetworkSettingsTableViewController.h
// FLEXInjected
//
// Created by <NAME> on 2/20/15.
//
//
#import <UIKit/UIKit.h>
@interface FLEXNetworkSettingsTableViewController : UITableViewController
@end
| code_c | code | 88 | null |
/* nstm_test.c - test program for nstm.c
# For documentation, see https://github.com/fordsfords/nstm
#
# This code and its documentation is Copyright 2002-2021 <NAME>
# and licensed "public domain" style under Creative Commons "CC0":
# http://creativecommons.org/publicdomain/zero/1.0/
# To the extent possible under l... | code_c | code | 1,545 | null |
// Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE'
#pragma once
#include "stl/Math/Transformation.h"
#include "stl/Math/Radians.h"
#include "stl/Math/Rectangle.h"
namespace AE::Math
{
//
// Camera
//
template <typename T>
struct CameraTempl
{
// types
using Transform_t = Transformatio... | code_c | code | 680 | null |
/*
* Copyright 2019-2020, <NAME>. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#include "ggtkgeneral.h"
#include <assert.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include "ggtkconstants.h"
#include "ggtkinstall.h"
#include "core/search.h"
// ----... | code_c | code | 1,849 | null |
<reponame>muratdemirtas/Linux-Kernel-Examples
//BASIC USB DEVICE DRIVER MODULE EXAMPLE FOR LINUX///
//include required headers
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/usb.h>
#include <linux/cdev.h>
#include <linux/fs.h>
#include <asm/uaccess.h>
//usb device identifi... | code_c | code | 1,804 | null |
/*
MIT License
Copyright (c) 2018-2020 <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, d... | code_c | code | 519 | null |
// SPDX-License-Identifier: GPL-2.0
/*
* Access to PCI I/O memory from user space programs.
*
* Copyright IBM Corp. 2014
* Author(s): <NAME> <<EMAIL>>
*/
#include <linux/kernel.h>
#include <linux/syscalls.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <asm... | code_c | code | 2,351 | null |
#pragma once
#include <glm/glm.hpp>
#include <glm/gtx/norm.hpp>
#include <glm/gtx/string_cast.hpp>
#include <cmath>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <ostream>
#include <string>
namespace ray_tracing
{
using glm::cross;
using glm::dot;
using glm::mat3;
using glm::mat... | code_c | code | 484 | null |
<filename>Postfix1.c
#include"head1.h"
int main()
{
char exp[25];
printf("\n\n\n Evaluvation Of Postfix Exxpression \n\n\n");
printf(" Enter An Expression : ");
scanf("%s",exp);
printf("\n\n\n Result \n\n\n");
printf(" %d \n\n\n The End \n\n\n",evaluatePostfix(exp));
return 0;
} | code_c | code | 89 | null |
/* Do not modify this file. Changes will be overwritten. */
/* Generated automatically by the ASN.1 to Wireshark dissector compiler */
/* packet-dap.h */
/* asn2wrs.py -b -L -p dap -c ./dap.cnf -s ./packet-dap-template -D . -O ../.... | code_c | code | 2,440 | null |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of... | code_c | code | 29,237 | null |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | code_c | code | 3,764 | null |
<filename>ext/systemc/src/sysc/datatypes/fx/scfx_rep.h
/*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional informat... | code_c | code | 5,300 | null |
/* Create new ABS symbol.
Copyright (C) 2002 Red Hat, Inc.
This file is part of elfutils.
Written by <NAME> <<EMAIL>>, 2002.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General Public License as published by the Free
Softwa... | code_c | code | 1,002 | null |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <functional>
#include <string>
#include "logdevice/common/Compl... | code_c | code | 2,896 | null |
#include "laev2.h"
#include "wnrme.h"
#include "rnd.h"
#include "timer.h"
int main(int argc, char *argv[])
{
(void)set_cbwr();
if (4 != argc) {
(void)fprintf(stderr, "%s filename 2^{batch_size} #batches\n", *argv);
return EXIT_FAILURE;
}
const size_t n = ((size_t)1u << atoz(argv[2u]));
int th = 0;
... | code_c | code | 1,791 | null |
/*----------------------------------------------------------------------
This source distribution is placed in the public domain by its author,
<NAME>. You may use it for any purpose, free of charge,
without having to notify anyone. I disclaim any responsibility for any
errors.
Optionally, please be nice and tel... | code_c | code | 23,687 | null |
<reponame>yichenluan/Mario
#ifndef MARIO_NET_POLLER_H
#define MARIO_NET_POLLER_H
#include "mario/net/EventLoop.h"
#include "mario/base/Timestamp.h"
#include <map>
#include <vector>
struct pollfd;
namespace mario {
class Channel;
class Poller {
public:
typedef std::vector<Channel*> ChannelList;
Poller(E... | code_c | code | 245 | null |
/*
Copyright (c) 2018, <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 and the followi... | code_c | code | 1,966 | null |
<filename>usr/src/sys/dev/tc/asc_tc.c
/* $OpenBSD: asc_tc.c,v 1.11 2010/11/11 17:54:54 miod Exp $ */
/* $NetBSD: asc_tc.c,v 1.19 2001/11/15 09:48:19 lukem Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation... | code_c | code | 2,527 | null |
<filename>Example/Pods/SCNetworkReachability/Classes/Private/SCReachabilityRefBuilder.h<gh_stars>10-100
//
// SCReachabilityRefBuilder.h
// SCNetworkReachability
//
// Created by <NAME> on 12/05/13
// Copyright (c) 2013 okolodev. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <SystemConfiguratio... | code_c | code | 136 | null |
<filename>FileSystems/GrubFS/grub/grub-core/efiemu/pnvram.c
/* Export pnvram and some variables for runtime */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2009 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Pu... | code_c | code | 2,200 | null |
<reponame>prazek/elf
asm (
".global _start\n"
"_start:\n"
"call entry\n"
"hlt\n"
);
#include "fakelib.h"
#define SIZE (1<<21)
void entry() {
char test[SIZE];
test[0] = 'O';
test[1] = 'K';
test[2] = 0;
test[SIZE - 1] = 0x04;
print(test);
fake_exit(0);
}
| code_c | code | 76 | null |
<filename>Example/Pods/Headers/Private/RMHBase/TTViewPagerController.h
//
// TTViewPagerController.h
// RMHBase_Example
//
// Created by 任梦晗 on 2016/12/15.
// Copyright © 2016年 renmenghan. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TTViewPagerBar.h"
#import "BaseViewController.h"
@interface TTViewPa... | code_c | code | 161 | null |
/****************************************************************
The author of this software is <NAME>.
Copyright (C) 1998 by Lucent Technologies
All Rights Reserved
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that t... | code_c | code | 1,010 | null |
<gh_stars>0
/*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | code_c | code | 416 | null |
/*
* hebimath - arbitrary precision arithmetic library
* See LICENSE file for copyright and license details
*/
#include "generic.h"
HEBI_API
size_t
hebi_pctz(const hebi_packet *a, size_t n)
{
const LIMB *al;
size_t i, m, r;
ASSERT(n > 0);
al = LIMB_PTR(a);
m = n * LIMB_PER_PACKET;
i = r = 0;
do {
if (a... | code_c | code | 118 | null |
<reponame>mavit/squeezelite<filename>output_stdout.c
/*
* Squeezelite - lightweight headless squeezebox emulator
*
* (c) <NAME> 2012-2015, <EMAIL>
* <NAME> 2015-2017, <EMAIL>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... | code_c | code | 1,179 | null |
<filename>release/src-rt-6.x.4708/router/samba3/source4/kdc/pac-glue.h<gh_stars>1-10
/*
Unix SMB/CIFS implementation.
PAC Glue between Samba and the KDC
Copyright (C) <NAME> <<EMAIL>> 2005-2009
Copyright (C) <NAME> <<EMAIL>> 2010
This program is free software; you can redistribute it and/or modify
... | code_c | code | 482 | null |
<reponame>zhiqiang-hu/ZJ-SDK-RT-Thread-NORDIC
/**
* Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
*
* 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 sourc... | code_c | code | 2,240 | null |
<gh_stars>1000+
/*
BLIS
An object-based framework for developing high-performance BLAS-like
libraries.
Copyright (C) 2014, The University of Texas at Austin
Copyright (C) 2018, Advanced Micro Devices, Inc.
Redistribution and use in source and binary forms, with or without
modification, are permi... | code_c | code | 1,446 | null |
<reponame>daverigby/memcached<gh_stars>0
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, 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 obt... | code_c | code | 858 | null |
#ifndef MTIMERANGE_H
#define MTIMERANGE_H
#include <QTime>
/*! \class MTimeRange
* \brief A class that represents the time range
*/
class MTimeRange
{
public:
QTime from;
QTime to;
MTimeRange() {}
MTimeRange(const QTime &from, const QTime &to)
{
this->from = from;
this->to = t... | code_c | code | 189 | null |
/*
* File Layout for: RM.RM_TRANSFLAG on 21-May-01
*
* Transaction Flag for Worksheet
*/
#pragma member_alignment save
#pragma nomember_alignment
struct rm_transflag_cdd
{
/* Element = TRANSTYPE
Description = Transaction type code */
char transtype[2];
/* Element = PRODUCT
Description = Product Number */
... | code_c | code | 106 | null |
/**
* \file
*
* \brief SAM GCLK
*
* Copyright (C) 2017 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 following conditions are met:
*
* 1. Redistribution... | code_c | code | 6,828 | null |
<reponame>charpointer/ceres-lang
#pragma once
#include <cstdio>
#include <iostream>
#include <exception>
#include <algorithm>
#include <string>
#include <vector>
#include "token.h"
#include "error.h"
#include "ast/node.h"
#include "ast/value.h"
namespace ceres {
class Parser {
public:
std::vector<Token> tokens;
... | code_c | code | 236 | null |
<reponame>OutbackMan/tetris
#include "test-helpers.h"
#include <stdio.h>
int game_tests_strcmp(const char* s1, const char* s2)
{
while (*s1 && *s1 == *s2) {
++s1;
++s2;
}
return *s1 - *s2;
}
int game_test_report_failure(const char* file_name, const int line_number, const char* expr)
{
static const char* ANS... | code_c | code | 150 | null |
/*
Copyright 2010-2013 SourceGear, 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | code_c | code | 1,548 | null |
<filename>Microsoft/SAMPLES/xedit/hlsqstr/list.c
//*************************************************************
// File name: list.c
//
// Description:
// Code for the list stuff
//
// History: Date Author Comment
// 12/ 4/91 MSM Created
//
//***********************... | code_c | code | 6,702 | null |
<reponame>thepriyakadam/hrms
#include "common.h"
/* Test SQLFetchScroll with a non-unitary rowset, using bottom-up direction */
static char software_version[] = "$Id: cursor7.c,v 1.10 2011-07-12 10:16:59 freddy77 Exp $";
static void *no_unused_var_warn[] = { software_version, no_unused_var_warn };
static void
Test(v... | code_c | code | 722 | null |
<filename>src/core/ngx_proxy_protocol.c
/*
* Copyright (C) <NAME>
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#define NGX_PROXY_PROTOCOL_AF_INET 1
#define NGX_PROXY_PROTOCOL_AF_INET6 2
#define ngx_proxy_protocol_parse_uint16(p) ((p)[0] << 8 | (p)[1])
typede... | code_c | code | 2,461 | null |
/*
* Driver for the MDIO interface of Marvell network interfaces.
*
* Since the MDIO interface of Marvell network interfaces is shared
* between all network interfaces, having a single driver allows to
* handle concurrent accesses properly (you may have four Ethernet
* ports, but they in fact share the same SMI i... | code_c | code | 3,041 | null |
<gh_stars>1000+
/*
* Copyright (c) 2011-2012, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyri... | code_c | code | 1,806 | null |
//------------------------------------------------------------------------------
// gb_mxstring_to_binop: get a GraphBLAS operator from a built-in string
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2022, All Rights Reserved.
// SPDX-Licens... | code_c | code | 500 | null |
/*
Copyright 2015-present the Material Components for iOS 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/licenses/LICENSE-2.0
Unless requ... | code_c | code | 1,720 | null |
#include <lib.h>
#define brk _brk
#define sbrk _sbrk
#include <unistd.h>
extern char *_brksize;
/* Both OSF/1 and SYSVR4 man pages specify that brk(2) returns int.
* However, BSD4.3 specifies that brk() returns char*. POSIX omits
* brk() on the grounds that it imposes a memory model on an architecture.
* For this... | code_c | code | 248 | null |
<gh_stars>1000+
/*-------------------------------------------------------------------------
*
* extaccess.h
* external table access method definitions.
*
* Portions Copyright (c) 2007-2008, Greenplum inc
* Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates.
*
*
* IDENTIFICATION
* gpcontrib/gp... | code_c | code | 1,109 | null |
//===--- PrintClangFunction.h - Printer for C/C++ functions -----*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2022 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 | 425 | null |
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
/*
MIT License
Copyright (c) 2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation ... | code_c | code | 511 | null |
<gh_stars>10-100
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <k_api.h>
#include <test_fw.h>
#include "workqueue_test.h"
#define MODULE_NAME "workqueue_interface"
#if (RHINO_CONFIG_WORKQUEUE > 0)
static ksem_t g_wq_test_sem;
static void work0_func(void *arg)
{
krhino_task_sleep(45);
... | code_c | code | 1,977 | null |
<filename>A04/read_ppm.c
/*
* Program Name : read_ppm.c
* CS223 - Spring 2022
* Author: <NAME>
* Date: 02/19/2022
* Read and stored a PPM file
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "read_ppm.h"
struct ppm_pixel** read_ppm(const char* filename, int* w, int* h) {
int max = 0;
... | code_c | code | 404 | null |
//////////////////////////////////////////////////////////////////////
//
// Crytek Source code
// Copyright (c) Crytek 2001-2004
//
// File:
//
// Description:
//
// History:
//
//////////////////////////////////////////////////////////////////////
#ifndef _CRY_ANIMATION_CRY_ANIMATION_INFO_HDR_
... | code_c | code | 1,840 | null |
#pragma once
class EditorState;
class Command
{
public:
Command(EditorState *editorState, const std::string &description) : editorState(editorState), description(description) {}
virtual ~Command() {};
virtual void Do() = 0;
virtual void Undo() = 0;
const std::string &GetDescription() const { return description;... | code_c | code | 112 | null |
<reponame>cppshizoidS/Lab-Nstu
#include <stdio.h>
static int vars[] = {12, 8, 32, 123};
int main() {
printf("\n\t\tИсходные данные:\n\tvars[0]=%d, vars[1]=%d, vars[2]=0%o, vars[3]=0%o", vars[0], vars[1], vars[2], vars[3]);
vars[0] = vars[0] % vars[1] + ++vars[2] + vars[3]++;
vars[1] += 5;
vars[2] ... | code_c | code | 164 | null |
<filename>third_party/aten/src/ATen/utils/catch/include/internal/catch_stream.h
/*
* Created by Phil on 2/12/2013.
* Copyright 2013 Two Blue Cubes Ltd. All rights reserved.
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LI... | code_c | code | 373 | null |
#pragma once
#include "Graph/Node/KEGraphNodeModel.h"
#include "KRender/Interface/IKPostProcess.h"
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include "Property/KEPropertyComboView.h"
#include "Property/KEPropertyLineEditView.h"
#include "Property/KEProper... | code_c | code | 516 | null |
#ifndef _sample_buff_h_
#define _sample_buff_h_
#include <stdlib.h>
#include <math.h>
#include <map>
class Speaker;
class SampleBuff
{
private:
float* m_minbuff;
float* m_maxbuff;
float m_allmin = NAN;
float m_allmax = NAN;
uint16_t m_length;
uint16_t m_decimate;
uint32_t m_count;
... | code_c | code | 570 | null |
<reponame>bradchesney79/illacceptanything
/*
* Copyright (c) 2010-2011 Atheros Communications Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies... | code_c | code | 4,609 | null |
<filename>gui-win32/r16.c
#define _WIN32_WINNT 0x0500
#include <windows.h>
#include "u.h"
#include "lib.h"
#include "r16.h"
#define Bit(i) (7-(i))
/* N 0's preceded by i 1's, T(Bit(2)) is 1100 0000 */
#define T(i) (((1 << (Bit(i)+1))-1) ^ 0xFF)
/* 0000 0000 0000 0111 1111 1111 */
#define RuneX(i) ((1 << (Bit(i) + ((i... | code_c | code | 637 | null |
#pragma once
#include "ThreadLocal.h"
#include "EduServer_IOCP.h"
class Session;
class IOThread;
struct OverlappedSendContext;
struct OverlappedPreRecvContext;
struct OverlappedRecvContext;
struct OverlappedDisconnectContext;
struct OverlappedAcceptContext;
struct DatabaseJobContext;
class IocpManager
{
public:
Io... | code_c | code | 419 | null |
//
// Created by <NAME> on 2021/7/12.
//
#ifndef OBJECT_ARRAY_2_95B55795A3FD457AAB4A8E61FD883C6B
#define OBJECT_ARRAY_2_95B55795A3FD457AAB4A8E61FD883C6B
#include <l0-infra/array/concept/Less.h>
namespace mixin {
template<typename T>
struct ScopeViewSort : T {
using typename T::ObjectType;
usi... | code_c | code | 314 | null |
<filename>include/cmsis-plus/posix-io/tty.h
/*
* This file is part of the µOS++ distribution.
* (https://github.com/micro-os-plus)
* Copyright (c) 2017 <NAME>.
*
* 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 | 2,331 | null |
//
// sdLoader.h
//
#ifndef ____sdLoader__
#define ____sdLoader__
#include <string>
#include "sdScene.h"
using namespace std;
/*!
convert XML, JSON, or YAML strings to a sdScene
*/
class sdLoader
{
public:
/*! converts a XML string to a sdScene
@param xmlString a xml String to be converted
... | code_c | code | 212 | null |
<filename>src/DX12/shaders/perFrameStruct.h<gh_stars>1-10
// AMD Cauldron code
//
// Copyright(c) 2020 Advanced Micro Devices, Inc.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 t... | code_c | code | 681 | null |
<reponame>Tylarb/gpdb
/*-------------------------------------------------------------------------
*
* nodeBitmapHeapscan.h
*
*
*
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/executor/nodeBitmapHeap... | code_c | code | 297 | null |
/*
* Copyright 2021 <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, distrib... | code_c | code | 519 | null |
<filename>scripts/lemonbar/cpu_usage.c
/*
* Copyright 2009-2021 <NAME> <<EMAIL>>
* & VentGrey (<NAME>) <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#inclu... | code_c | code | 718 | null |
<gh_stars>0
//
// UIFontAdditions.h
// SimpleTidbits
//
// Created by <NAME> on 9/26/09.
// Copyright 2009 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface UIFont (SimpleTidbits)
+ (UIFont *)st_settingsTitleFont;
+ (UIFont *)st_settingsDetailFont;
+ (UIFont *)s... | code_c | code | 109 | null |
<reponame>fabiojna02/OpenCellular
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Test thermal engine.
*/
#include "common.h"
#include "console.h"
#include "driver/temp_sensor/thermistor.h... | code_c | code | 4,236 | null |
<filename>posixtestsuite/conformance/definitions/signal_h/46-1.c
/*
Test that the function:
int sigsuspend(const sigset_t *);
is declared.
*/
#include <signal.h>
typedef int (*sigsuspend_test)(const sigset_t *);
int dummyfcn (void)
{
sigsuspend_test dummyvar;
dummyvar = sigsuspend;
return 0;
}
| code_c | code | 89 | null |
/*
* Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/licens... | code_c | code | 993 | null |
/*
* QEMU float support
*
* The code in this source file is derived from release 2a of the SoftFloat
* IEC/IEEE Floating-point Arithmetic Package. Those parts of the code (and
* some later contributions) are provided under that license, as detailed below.
* It has subsequently been modified by contributors to the... | code_c | code | 79,372 | null |
/*
*
* Copyright (c) 2020 Project CHIP 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/licenses/LICENSE... | code_c | code | 416 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.