text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>PUT-PTM/RFIDVault2<filename>00-STM32F429_LIBRARIES/tm_stm32f4_gps.c
/**
* |----------------------------------------------------------------------
* | Copyright (C) <NAME>, 2014
* |
* | This program is free software: you can redistribute it and/or modify
* | it under the terms of the GNU General Public ... | code_c | code | 6,936 | null |
/**MIT License
Copyright (c) 2018 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, ... | code_c | code | 3,281 | null |
<filename>d/dali/bingying.c
inherit ROOM;
void create()
{
set("short","兵营");
set("long",@LONG
大理国虽小,却重视精兵良将。然屈人必先屈志,兵戈
乃下下之策,段氏大理先与北邻宋朝修和,再以姻亲拉拢当
地人,多年无战事。这是城里的铁骑营,为皇族的嫡系,装
备给养无不优于中原地方。军士们严缜以待,盔甲鲜明,刀
剑锋利。
LONG);
set("objects", ([
__DIR__"npc/bing": 2,
__DIR__"npc/weishi1": 1,
]));
... | code_c | code | 144 | null |
<reponame>archivest/spin2cpp
#ifndef test090_Class_Defined__
#define test090_Class_Defined__
#include <stdint.h>
class test090 {
public:
int32_t Test(void);
private:
int32_t A;
int32_t C;
int32_t E;
uint16_t D;
char B;
char F;
};
#endif
| code_c | code | 72 | null |
<reponame>testdlc/repo-new-18
#ifndef CCT2METRICS_H
#define CCT2METRICS_H
//
// cct_node -> metrics map
//
#include <stdbool.h>
#include <hpcrun/metrics.h>
#include <cct/cct.h>
//
// ******** Typedef ********
//
//
typedef struct cct2metrics_t cct2metrics_t;
//
// ******** initialization
//
// The cct2metrics map g... | code_c | code | 578 | null |
*/
#include <stdio.h>
#include <string.h>
#define MAXS 10
void solve()
{
int n;
scanf("%d", &n);
char str[MAXS];
int digit[10];
memset(digit, 0, sizeof(digit));
memset(str, 0, sizeof(str));
for (int i = 1; i <= n; i++) {
sprintf(str, "%d", i);
//printf("%s", str);
char *p = str;
while (*p... | code_c | code | 168 | null |
/*-
* Copyright (c) 2011 NetApp, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | code_c | code | 18,564 | null |
#include "../mouse.h"
#include "../microsleep.h"
#include <math.h> /* For floor() */
#include <ApplicationServices/ApplicationServices.h>
#if !defined(M_SQRT2)
#define M_SQRT2 1.4142135623730950488016887 /* Fix for MSVC. */
#endif
#define MMMouseToCGEventType(down, button) \
(down ? MMMouseDownToCGEventType(butt... | code_c | code | 1,711 | null |
<reponame>NomotoKazuhiro/oneDNN
/*******************************************************************************
* Copyright 2016-2020 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 L... | code_c | code | 23,923 | null |
<reponame>gaschler/cgal
// Copyright (c) 2006-2009 Max-Planck-Institute Saarbruecken (Germany).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME> <<EMAIL>>
//
// ==============... | code_c | code | 12,073 | null |
// SPDX-License-Identifier: GPL-2.0-only
/*
* SPI driver for Nvidia's Tegra20/Tegra30 SLINK Controller.
*
* Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
*/
#include <linux/clk.h>
#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/dmaengine.h>
#include <linux/dma-mapping.h>
#inc... | code_c | code | 9,858 | null |
<gh_stars>0
/*
*
* Copyright (c) 2020-2021 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | code_c | code | 1,417 | null |
//
// UIViewController+MASAdditions.h
// Masonry
//
// Created by <NAME> on 2015-06-23.
//
//
#import "MASUtilities.h"
#import "MASConstraintMaker.h"
#import "MASViewAttribute.h"
#ifdef MAS_VIEW_CONTROLLER
@interface MAS_VIEW_CONTROLLER (MASAdditions)
/**
* following properties return a new MASViewAttribute wit... | code_c | code | 302 | null |
<gh_stars>100-1000
/*-------------------------------------------------------------------------
* ic_tcp.c
* Interconnect code specific to TCP transport.
*
* Portions Copyright (c) 2005-2008, Greenplum, Inc.
* Portions Copyright (c) 2012-Present Pivotal Software, Inc.
* Portions Copyright (c) 2021, Alibaba Grou... | code_c | code | 23,979 | null |
/*++
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
Abstract:
This module tracks in-flight packets and determines when they
have been lost or delivered to the peer.
RACK (time-based loss detection) algorithm:
An unacknowledged packet sent before an acknowledged packet... | code_c | code | 15,726 | null |
<gh_stars>10-100
/******************************************************************************
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2012 - 2014 Intel Corporation. All rig... | code_c | code | 3,014 | null |
int foo() {
int a[5] = { 1, 2, 3, 4, 5 };
// a[2] = 3;
return a[2];
}
int compiler() {
return foo();
}
int main() {
compiler();
compiler();
return compiler();
}
| code_c | code | 50 | null |
#ifndef _VT_KERN_H
#define _VT_KERN_H
/*
* this really is an extension of the vc_cons structure in console.c, but
* with information needed by the vt package
*/
#include <linux/vt.h>
#include <linux/kd.h>
#include <linux/tty.h>
#include <linux/mutex.h>
#include <linux/console_struct.h>
#include <linux/mm.h>
#inclu... | code_c | code | 1,323 | null |
<gh_stars>1-10
/*
* Copyright (c) 2012 Los Alamos National Security, LLC.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*
* @file
*/
/*
Per RFC3986:
The generic URI syntax consists of a hierarchical sequence of
components referred... | code_c | code | 888 | null |
<gh_stars>10-100
// Copyright 2019 The Fuchsia 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 SRC_MEDIA_AUDIO_DRIVERS_AS370_TDM_OUTPUT_CODEC_H_
#define SRC_MEDIA_AUDIO_DRIVERS_AS370_TDM_OUTPUT_CODEC_H_
#include <lib/sync/co... | code_c | code | 384 | null |
<filename>src/logoinsert.c
/*
* logoinsert - insert an image into a dreamcast ip.bin
*
* use pngtomr to produce images to insert
* images must be less than 8192 bytes to use in a "normal" ip.bin
*
* adk / napalm 2001
*
* <EMAIL>
*
* http://www.napalm-x.com
*
*
* This program is free software; you can red... | code_c | code | 530 | null |
<filename>J1120Client/jni/include/control/ZKCircleBar.h
/*
* ZKCircleBar.h
*
* Created on: Sep 5, 2017
* Author: guoxs
*/
#ifndef _CONTROL_ZKCIRCLEBAR_H_
#define _CONTROL_ZKCIRCLEBAR_H_
#include "ZKBase.h"
class ZKCircleBarPrivate;
class ZKCircleBar : public ZKBase {
ZK_DECLARE_PRIVATE(ZKCircleBar)
pub... | code_c | code | 396 | null |
#include "hmac_then_enc.h"
#include <stdlib.h>
#include <string.h>
//@ #include "quantifiers.gh"
#define SERVER_PORT 121212
void sender(char *enc_key, char *hmac_key, char *msg, unsigned int msg_len)
/*@ requires [_]public_invar(hmac_then_enc_pub) &*&
principal(?sender, _) &*&
[?f1]cryptog... | code_c | code | 3,300 | null |
<filename>src/dpdk/drivers/net/sfc/base/medford2_nic.c
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2015-2018 Solarflare Communications Inc.
* All rights reserved.
*/
#include "efx.h"
#include "efx_impl.h"
#if EFSYS_OPT_MEDFORD2
static __checkReturn efx_rc_t
medford2_nic_get_required_pcie_bandwidt... | code_c | code | 1,210 | null |
#pragma once
#include "float3.h"
namespace EDMath
{
void clipPolygonToPlaneNegative(const Float3& planeN, float planeOffset, const Float3* verts, unsigned int vertCount, Float3* out, unsigned int& outCount);
} | code_c | code | 60 | null |
<filename>include/GLFW/glfw3native.h
/*************************************************************************
* GLFW 3.4 - www.glfw.org
* A library for OpenGL, window and input
*------------------------------------------------------------------------
* Copyright (c) 2002-2006 <NAME>
* Copyright (c) 2006-2018 <NA... | code_c | code | 5,548 | null |
<reponame>ritschmaster/b3
/******************************************************************************
This file is part of b3.
Copyright 2020-2021 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softwar... | code_c | code | 1,628 | null |
<gh_stars>0
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cloudformation/CloudFormation_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/cloudformation/model/AccountGateStatus.h>
#include <aw... | code_c | code | 4,126 | null |
<reponame>thsmi/EmbeddedFileSystems
/*
* The content of this file is licensed. You may obtain a copy of
* the license at https://github.com/thsmi/EmbeddedFileSystems/ or
* request it via email from the author.
*
* Do not remove or change this comment.
*
* The initial author of the code is:
* <NAME> <<... | code_c | code | 259 | null |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* Development of the code in this file was sponsored by Microbric Pty Ltd
*
* The MIT License (MIT)
*
* Copyright (c) 2013-2015 <NAME>
* Copyright (c) 2016 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtain... | code_c | code | 3,329 | null |
/*
*
* Copyright (c) 2011, 2012
* University of Houston System and Oak Ridge National Laboratory.
*
* 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 sourc... | code_c | code | 815 | null |
#if defined(PEGASUS_OS_HPUX)
# include "UNIX_LabelReaderStatDataDeps_HPUX.h"
#elif defined(PEGASUS_OS_LINUX)
# include "UNIX_LabelReaderStatDataDeps_LINUX.h"
#elif defined(PEGASUS_OS_DARWIN)
# include "UNIX_LabelReaderStatDataDeps_DARWIN.h"
#elif defined(PEGASUS_OS_AIX)
# include "UNIX_LabelReaderStatDataDeps_AIX.h"
#... | code_c | code | 224 | null |
/*
* Copyright (c) 2017 - 2018, Intel Corporation
*
* 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, ... | code_c | code | 1,143 | null |
<reponame>jmckaskill/subversion
/*
* info-cmd.c -- Display information about a resource
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with t... | code_c | code | 7,043 | null |
//**********************************************************************************
//
// © 2015 Arizona Board of Regents on behalf of the University of Arizona with rights
// granted for USDOT OSADP distribution with the Apache 2.0 open source license.
//
//******************************************************... | code_c | code | 1,974 | null |
<reponame>adelka132/SHSegueBlocks
//
// KIFTester+UI.h
// KIF
//
// Created by <NAME> on 12/14/12.
// Licensed to Square, Inc. under one or more contributor license agreements.
// See the LICENSE file distributed with this work for the terms under
// which Square, Inc. licenses this file to you.
#import "KIFTest... | code_c | code | 7,382 | null |
<reponame>lviala-zaack/zephyr<filename>include/bluetooth/hci_raw.h
/** @file
* @brief Bluetooth HCI RAW channel handling
*/
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_
#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_RAW_H_
/**
* @brief ... | code_c | code | 959 | null |
#include "testYarpReadSHORE_sfun.h"
#include "sf_runtime/sfcdebug.h"
struct SfDebugInstanceStruct;
struct SfDebugInstanceStruct* sfGlobalDebugInstanceStruct = NULL;
#define PROCESS_MEX_SFUNCTION_CMD_LINE_CALL
unsigned int sf_process_check_sum_call( int nlhs, mxArray * plhs[], int nrhs,
const mxArray * prh... | code_c | code | 2,364 | null |
//
// KKJSBridgeFormDataFile.h
// AFNetworking
//
// Created by <NAME> on 2020/6/20.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface KKJSBridgeFormDataFile : NSObject
@property (nonatomic, copy) NSString *key;
@property (nonatomic, copy) NSString *fileName;
@property (nonatomic, assign) N... | code_c | code | 144 | null |
/* genbg.c : version 2.5; <NAME>, 14 Nov 2017. */
/* TODO: consider colour swaps */
#define USAGE \
"genbg [-c -ugs -vq -lzF] [-Z#] [-D#] [-A] [-d#|-d#:#] [-D#|-D#:#] n1 n2 \n\
[mine[:maxe]] [res/mod] [file]"
#define HELPTEXT \
" Find all bicoloured graphs of a specified class.\n\
\n\
n1 : the nu... | code_c | code | 13,950 | null |
/*__________________________________________________________________________________________
(c) Hash(BEGIN(Satoshi[2010]), END(Sunny[2012])) == Videlicet[2014] ++
(c) Copyright The Nexus Developers 2014 - 2021
Distributed under the MIT software license, see the accompanying
... | code_c | code | 2,415 | null |
<filename>pipemessage/PipeJSONServer.h
#pragma once
#include "PipeServer.h"
#include "../../rapidjson/document.h"
#include "../../rapidjson/writer.h"
using RapidDocument = rapidjson::GenericDocument<rapidjson::UTF8<>>;
typedef std::function<void(const std::unique_ptr<RapidDocument>)> json_callback_function;
class Pi... | code_c | code | 408 | null |
<reponame>shwnchpl/wine-proton<filename>dlls/winhttp/winhttp_private.h
/*
* 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 ... | code_c | code | 3,085 | null |
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* Copyright (C) 2020 <NAME>
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
//
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
// #include "platform_api_extension.h"
#include "wasm_export.h"
#include <th... | code_c | code | 1,044 | null |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CPhysicalMotionHashDistribute.h
//
// @doc:
// Physical Hash distribute motion operator
//---------------------------------------------------------------------------
... | code_c | code | 1,242 | null |
<gh_stars>10-100
/*
* Copyright (c) 2015-2018 Nexenta Systems, inc.
*
* This file is part of EdgeFS Project
* (see https://github.com/Nexenta/edgefs).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for ad... | code_c | code | 3,114 | null |
// ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | code_c | code | 9,890 | null |
---
#ifndef TEST4_H
#define TEST4_H
"Currently in " __FILE__ "\n";
#obviouslybaddirective what
#endif // TEST4_H
---
| code_c | code | 34 | null |
<gh_stars>1000+
#pragma once
#include <QBackingStore>
#include <QFont>
#include <QLabel>
#include <QList>
#include <QMap>
#include <QMenu>
#include <QTimer>
#include <QUrl>
#include <QVariantList>
#include <QWidget>
#include "neovimconnector.h"
#include "popupmenu.h"
#include "popupmenumodel.h"
#include "shelloptions.... | code_c | code | 2,770 | null |
<reponame>fionatrahe/qatlib
/***************************************************************************
*
* BSD LICENSE
*
* Copyright(c) 2007-2021 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ar... | code_c | code | 1,932 | null |
/*
* cpmcart.c
*
* Written by
* <NAME> <<EMAIL>>
*
* Based on code written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... | code_c | code | 70,098 | null |
<reponame>crisbia/bse
#ifndef _BSE_SCENE_H_INCLUDED
#define _BSE_SCENE_H_INCLUDED
#include <list>
#include "bseBody.h"
#include "bseShape.h"
#include "bseMaterial.h"
#include "bseCollision.h"
#include "bsePhysicsTypes.h"
#include "bsePhysicsContext.h"
#include "bseIsland.h"
namespace bse
{
class Profile... | code_c | code | 1,707 | null |
<filename>src/Debugger.h
#pragma once
#include "Base.h"
// If set, debugging features are enabled for the emulator (slower)
#define DEBUGGING_ENABLED 0
class Nes;
namespace Debugger
{
#if DEBUGGING_ENABLED
void Initialize(Nes& nes);
void Shutdown();
void Update();
void DumpMemory();
void PreCpuInstruction();
... | code_c | code | 196 | null |
/*
* include/uapi/video/nvhdcp.h
*
* nvhdcp.h: tegra dc hdcp declarations.
*
* Copyright (c) 2016-2020, NVIDIA CORPORATION, All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distri... | code_c | code | 995 | null |
<gh_stars>0
/*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains tr... | code_c | code | 814 | null |
// pch.h: это предварительно скомпилированный заголовочный файл.
// Перечисленные ниже файлы компилируются только один раз, что ускоряет последующие сборки.
// Это также влияет на работу IntelliSense, включая многие функции просмотра и завершения кода.
// Однако изменение любого из приведенных здесь файлов между опера... | code_c | code | 377 | null |
<filename>examples/common/debugdraw/fs_debugdraw_lines.bin.h<gh_stars>1-10
static const uint8_t fs_debugdraw_lines_glsl[93] =
{
0x46, 0x53, 0x48, 0x06, 0xa4, 0x8b, 0xef, 0x49, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4a, 0x00, // FSH....I......J.
0x00, 0x00, 0x76, 0x61, 0x72, 0x79, 0x69, 0x6e, 0x67, 0x20, 0x68, 0x69, 0x... | code_c | code | 2,892 | null |
#include "arena/meta.h"
#include "lru/lruq.h"
#include "lib/buddy/memory.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
extern arena_t * arena;
arena_t * new_arena(size_t pages) {
arena_t * arena = malloc(sizeof(arena_t));
uint32_t bytes = pages * PAGE_SIZE + sizeof(arena_t);
char * mem_ptr = bud... | code_c | code | 525 | null |
/* $OpenBSD: vgafb_pci.c,v 1.21 2010/05/22 21:30:26 deraadt Exp $ */
/* $NetBSD: vga_pci.c,v 1.4 1996/12/05 01:39:38 cgd Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* All rights reserved.
*
* Author: <NAME>
*
* Permission to use, copy, modify and distribute this software and
* its docume... | code_c | code | 2,887 | null |
/* $Id$ */
/*
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-2008 <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 2 of ... | code_c | code | 572 | null |
<reponame>temcocontrols/Programmable-Controller<gh_stars>1-10
/* Schedule Objects customize -- writen by chesea*/
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "bacnet.h"
#include "bacdef.h"
#include "bacdcode.h"
#include "bacenum.h"
#include "schedule.h"
#if BAC_COMMON
/* Analog Input = Pho... | code_c | code | 2,519 | null |
<reponame>fanc999/graphene
/* graphene-point.h: Point and Size
*
* SPDX-License-Identifier: MIT
*
* Copyright 2014 <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,363 | null |
<reponame>usenixatc2021/SoftRefresh_Scheduling
/* drivers/media/video/s5p-tv/regs-sdo.h
*
* Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* SDO register description file
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU ... | code_c | code | 478 | null |
<filename>Tutorial_2/server.c
#include <stdio.h>
#include <string.h>
#include <Winsock2.h>
#pragma comment(lib, "ws2_32.lib")
void main()
{
int err; // 错误信息
int len = sizeof(SOCKADDR);
char cmdStr[100] = {0};
char sendBuf[100] = {0}; // 发送至客户端的字符串
char recvBuf[100] = {0}; // 接受客户端返回的字符串
char ... | code_c | code | 610 | null |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) Marvell International Ltd. and its affiliates
*/
#include "ddr3_init.h"
#include "mv_ddr_training_db.h"
#include "ddr_training_ip_db.h"
#include "mv_ddr_regs.h"
#define WL_ITERATION_NUM 10
static u32 pup_mask_table[] = {
0x000000ff,
0x0000ff00,
0x00ff0000,
... | code_c | code | 18,627 | null |
<gh_stars>1-10
/* See LICENSE file for copyright and license details. */
/* Multimedia Keys Support */
#include <X11/XF86keysym.h>
#include "bstack.c"
#include "bstackhoriz.c"
/* appearance */
static const unsigned int borderpx = 0; /* border pixel of windows */
static const unsigned int snap = 32; ... | code_c | code | 2,783 | null |
#pragma once
#if JPEG_FOUND
#include <stdio.h>
#include <jpeglib.h>
#include <setjmp.h>
namespace vision {
namespace image {
namespace detail {
static const JOCTET EOI_BUFFER[1] = {JPEG_EOI};
struct torch_jpeg_error_mgr {
struct jpeg_error_mgr pub; /* "public" fields */
char jpegLastErrorMsg[JMSG_LENGTH_MAX]; /... | code_c | code | 164 | null |
#pragma once
#include <cmath>
#include "DelayedLinearInterpolator.h"
namespace improbable
{
namespace unreal
{
template <typename TValue>
DelayedLinearInterpolator<TValue>::DelayedLinearInterpolator():
PreviousValue(nullptr), CurrentValue(nullptr), InterpolationDelay(DEFAULT_INTERPOLATION_DELAY_SECONDS), Ea... | code_c | code | 1,657 | null |
//
// InvalidArgumentException.h
// TUCUT (Take Up Code Utility)
//
// Created by <NAME> on 3/25/13.
// Copyright © 2013 Take Up Code. All rights reserved.
//
#ifndef TUCUT_Exception_InvalidArgumentException_h
#define TUCUT_Exception_InvalidArgumentException_h
#include <stdexcept>
#include <string>
namespace TUC... | code_c | code | 348 | null |
#ifndef STONES_H
#define STONES_H
#include "../../RGBColor.h"
#include <string.h>
class IStone
{
public:
int width;
int height;
RGBColor color;
int imgData[6];
};
class Stones
{
public:
IStone stone[7];
int stone0[6] = { 1,1,1,0,1,0 };
int stone1[4] = { 1,1,1,1 };
int stone2[4] = { 1,1,1,1 };
int stone3[6] ... | code_c | code | 417 | null |
/* Copyright 2017 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/licenses/LICENSE-2.0
Unless required by applicable ... | code_c | code | 548 | null |
<reponame>Almasty/twemproxy
/*
* twemproxy - A fast and lightweight proxy for memcached protocol.
* Copyright (C) 2011 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | code_c | code | 1,799 | null |
/*
* <NAME>
* July 18, 2014
* Ref: ISEE main05.c
*/
#include <reg52.h>
#include <STC12C.h>
#include <intrins.h>
#include <stdio.h>
//变量类型标识的宏定义
#define Uchar unsigned char
#define Uint unsigned int
#define uchar unsigned char
#define uint unsigned int
#define DataPort P2 // 数据端口
#define Busy 0... | code_c | code | 2,905 | null |
// A pool of thread working concurrently on a task list
#pragma once
#define PROFILE 1
#include <unordered_map>
#include <queue>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <atomic>
#include <memory>
#include <functional>
#include <chrono>
namespace ems {
typedef std::chrono::time_p... | code_c | code | 1,903 | null |
/*
* VoIPcodecs - a series of DSP components for telephony
*
* g722.h - The ITU G.722 codec.
*
* Written by <NAME> <<EMAIL>>
*
* Copyright (C) 2005 <NAME>
*
* 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 ... | code_c | code | 1,428 | null |
<gh_stars>1-10
/*!
* -------------------------------------------------------------------------------------------------
* \file wf_pow.c
* \par ESA Contract Number
* 4000117691/16/NL/FE
* \brief Implementation file for pow.
* \version c07acbf539f8880d8c1255e7f85138b89f33387b
* \date 2018-03-22 17:44:24 +0100... | code_c | code | 1,463 | null |
/*
* Copyright 2020-2021 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/l... | code_c | code | 5,195 | null |
<gh_stars>1000+
// Copyright 2014-2015 <NAME>
// MIT licensed (see LICENSE for details)
#include <yajl/yajl_parse.h>
#include "util/fts.h"
#include "StrongLink.h"
#include "SLNDB.h"
#define BUF_LEN (1024 * 8)
#define PARSE_MAX (1024 * 1024 * 1)
#define DEPTH_MAX 1 // TODO
#define IGNORE_MAX 1023 // Just to prevent o... | code_c | code | 2,823 | null |
/*
*
* Copyright (c) 1996,1997
* Silicon Graphics Computer Systems, Inc.
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright no... | code_c | code | 11,765 | null |
<reponame>TORU777/OpenR8
/*****************************************************************************
* HClassMLP.h
*****************************************************************************
*
* Project: HALCON/C++
* Description: Class HClassMlp
*
* (c) 1996-2016 by MVTec Software GmbH
* ... | code_c | code | 2,297 | null |
<reponame>brianlheim/crawl
enum weapon_choice
{
WCHOICE_NONE, ///< No weapon choice
WCHOICE_PLAIN, ///< Normal weapon choice
WCHOICE_GOOD, ///< Chooses from "good" weapons
WCHOICE_RANGED, ///< Choice of ranged weapon
};
struct job_def
{
const char* abbrev; ///< Two-letter abbreviation
cons... | code_c | code | 2,666 | null |
/*
* Decoder of socket filter programs.
*
* Copyright (c) 2017 <NAME> <<EMAIL>>
* 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 | 720 | null |
<filename>CG-SGI/include/geometria/Mundo.h
#ifndef MUNDO_H_
#define MUNDO_H_
#include "geometria/DisplayFile.h"
#include "geometria/CurvaBezier.h"
#include "geometria/CurvaBSpline.h"
#include "geometria/Poligono.h"
#include "geometria/Ponto.h"
#include "geometria/Reta.h"
#include "geometria/Window.h"
/**
* Mundo de ... | code_c | code | 1,272 | null |
<gh_stars>0
// Copyright 2018 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_OFFLINE_PAGES_OFFLINE_PAGE_URL_LOADER_H_
#define CHROME_BROWSER_OFFLINE_PAGES_OFFLINE_PAGE_URL_LOADER_H_
#include <cst... | code_c | code | 1,374 | null |
<filename>tdutils/td/utils/AesCtrByteFlow.h
//
// Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2017
//
// 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)
//
#pragma once
#include "td/utils/ByteFlow.h"
#include "t... | code_c | code | 386 | null |
<gh_stars>0
/*
* 这个例程演示了用SDK代理子设备,之后创建2个线程
*
* + 一个线程用于保活长连接
* + 一个线程用于接收消息, 并在有消息到达时进入默认的数据回调, 在连接状态变化时进入事件回调
*
* 接着演示了在MQTT连接上进行属性上报, 事件上报, 以及处理收到的属性设置, 服务调用, 取消这些代码段落的注释即可观察运行效果
*
* 需要用户关注或修改的部分, 已经用 TODO 在注释中标明
*
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <aos/kernel.h>
#incl... | code_c | code | 3,876 | null |
<gh_stars>0
/*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. A... | code_c | code | 483 | null |
<reponame>Frama-C/open-source-case-studies
/*------------------------------------------------------------------------------
*
* Copyright (C) 1998 : Space Systems Finland Ltd.
*
* Space Systems Finland Ltd (SSF) allows you to use this version of
* the DEBIE-I DPU software for the specific purpose and under the
... | code_c | code | 313 | null |
<gh_stars>0
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 <NAME>
* Copyright (c) 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation file... | code_c | code | 4,796 | null |
<gh_stars>1-10
/*
** SQLCipher
** crypto.h developed by <NAME> (Zetetic LLC)
** sjlombardo at zetetic dot net
** http://zetetic.net
**
** Copyright (c) 2008, ZETETIC LLC
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the ... | code_c | code | 2,832 | null |
#include <Python.h>
#include <SAM_TcsmoltenSalt.h>
#include <SAM_api.h>
#include "PySAM_utils.h"
/*
* SolarResource Group
*/
static PyTypeObject SolarResource_Type;
static PyObject *
SolarResource_new(SAM_TcsmoltenSalt data_ptr)
{
PyObject* new_obj = SolarResource_Type.tp_alloc(&SolarResource_Type,0);
VarGr... | code_c | code | 92,716 | null |
#pragma once
#include <memory>
#include <vector>
#include "si_base/core/assert.h"
#include "si_base/misc/string.h"
#include "si_base/gpu/gfx.h"
namespace SI
{
struct VertexAttribute
{
GfxSemantics m_semantics;
int m_accessorId;
};
class SubMesh
{
public:
SubMesh()
: m_topology(SI::GfxPrimit... | code_c | code | 417 | null |
#include <stdio.h>
#include <stdlib.h>
#include "gd32v_pjt_include.h"
#include "systick.h"
/**
\brief configure the GPIO ports
\param[in] none
\param[out] none
\retval none
*/
static void gpio_config(void)
{
/* Configure led GPIO port */
gpio_init(GPIOC, GPIO_MODE_OUT_PP, GPIO_O... | code_c | code | 1,000 | null |
<gh_stars>1-10
/*
* Copyright (C) 2006 <NAME> (<EMAIL>)
* Copyright (C) 2009 Google Inc. All rights reserved.
* Copyright (C) 2011 Apple 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:... | code_c | code | 1,790 | null |
<filename>chrome/browser/policy/device_management_service.h<gh_stars>1-10
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_SERVICE_H_
#define CHROME_BR... | code_c | code | 1,692 | null |
#ifndef _LIB_ELF_H
#define _LIB_ELF_H
#define ELF_WIDTH long
struct ElfHeader
{
int ei_mag;
char ei_class;
char ei_data;
char ei_version;
char ei_osabi;
char ei_absversion;
char ei_pad[7];
short e_type;
short e_machine;
int e_version;
ELF_WIDTH e_entry;
ELF_WIDTH e_phof... | code_c | code | 341 | null |
<filename>src/include/storage/predicate.h
/*-------------------------------------------------------------------------
*
* predicate.h
* POSTGRES public predicate locking definitions.
*
*
* Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the Univer... | code_c | code | 762 | null |
// Author : <NAME> (samvel at cern dot ch)
// Created: 05/21/08
#ifndef APVANALYSIS_TT6NTPEDESTALCALCULATOR_H
#define APVANALYSIS_TT6NTPEDESTALCALCULATOR_H
#include "CalibTracker/SiStripAPVAnalysis/interface/ApvAnalysis.h"
#include "CalibTracker/SiStripAPVAnalysis/interface/TkPedestalCalculator.h"
/*
* @brief
* ... | code_c | code | 521 | null |
/******************************************************************************
* Copyright 2018 The Apollo 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
... | code_c | code | 1,677 | null |
<gh_stars>1-10
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2020 The Ocvcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
/**
* Why base-58 instead of standard base-64 encoding?
* - Don't want 0OI... | code_c | code | 454 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.