text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<reponame>mine260309/skiboot<filename>hw/xscom.c
/* Copyright 2013-2014 IBM Corp.
*
* 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
*
* U... | code_c | code | 4,713 | null |
/*
* Phoenix-RTOS
*
* USB Mass Storage host driver
*
* Copyright 2019, 2020 Phoenix Systems
* Author: <NAME>, <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/platform.h>
#include <... | code_c | code | 2,874 | null |
/*-
* BSD LICENSE
*
* Copyright(c) 2010-2014 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,618 | null |
<filename>Software/Azure_RTOS_Example1/STM32H7xx_HAL/Inc/stm32h7xx_ll_spi.h
/**
******************************************************************************
* @file stm32h7xx_ll_spi.h
* @author MCD Application Team
* @brief Header file of SPI LL module.
************************************************... | code_c | code | 34,934 | null |
<gh_stars>1-10
// Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#pragma once
#include "../../vw.h"
VW_WARNING_STATE_PUSH
VW_WARNING_DISABLE_BADLY_FORMED_XML
#include "gene... | code_c | code | 668 | null |
/***************************************************************************
video.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "emu.h"
#include "includes/gundealr.h"
/*******************************... | code_c | code | 1,220 | null |
/**
* Standard C library routine test suite
*/
#include <stdio.h>
#include "SDL.h"
#include "SDL_test.h"
/* Test case functions */
/**
* @brief Call to SDL_strlcpy
*/
#undef SDL_strlcpy
int
stdlib_strlcpy(void *arg)
{
size_t result;
char text[1024];
const char *expected;
result = SDL_strlcpy(text, "fo... | code_c | code | 4,008 | null |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LINE_MAX 50
int arraySize = 0;
char **readInput(FILE *fp) {
char **array = NULL;
int index = 0;
while (1) {
if (feof(fp)) break;
char *p = malloc(LINE_MAX);
if (!p) return NULL;
if (1 != fscanf(fp, "%s\n", p))
return NULL;
arraySi... | code_c | code | 423 | null |
<reponame>2019dj/TIM-VX<filename>src/tim/vx/internal/src/kernel/vsi_nn_kernel_util.c
/****************************************************************************
*
* Copyright (c) 2020 Vivante Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and a... | code_c | code | 6,356 | null |
<filename>tokens_test.h
#ifndef H_TOKENS_TEST
#define H_TOKENS_TEST
void test_tokens();
void test_cmptok();
void test_tokbuff();
#endif // H_TOKENS_TEST
| code_c | code | 44 | null |
// Copyright 2014 The Crashpad 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 ... | code_c | code | 2,552 | null |
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | code_c | code | 877 | null |
<gh_stars>0
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
... | code_c | code | 668 | null |
<reponame>duzitong/spdk
/*-
* 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... | code_c | code | 8,217 | null |
<reponame>Indemsys/Backup-controller_BACKPMAN-v2.0
/**************************************************************************/
/* */
/* Copyright (c) Microsoft Corporation. All rights reserved. */
/* ... | code_c | code | 3,942 | null |
/*
* 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 copyright
* notice, this ... | code_c | code | 1,792 | null |
<gh_stars>0
/*
* Copyright (c) 2014 - 2015, The Linux Foundation. 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 l... | code_c | code | 1,023 | null |
/**
* Copyright (C) 2016-2017 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | code_c | code | 1,688 | null |
// Copyright 2015 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 IOS_CHROME_BROWSER_UI_SETTINGS_PASSPHRASE_TABLE_VIEW_CONTROLLER_TEST_H_
#define IOS_CHROME_BROWSER_UI_SETTINGS_PASSPHRASE_TABLE_VIEW_CONTROLLER_TE... | code_c | code | 664 | null |
/*-------------------------------------------------------------------------
*
* common.c
* Catalog routines used by pg_dump; long ago these were shared
* by another dump tool, but not anymore.
*
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the ... | code_c | code | 8,912 | null |
<gh_stars>0
//
// CYYResponse.h
// CYYHttpManager
//
// Created by yangchang on 2022/2/23.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface CYYResponse : NSObject
@end
NS_ASSUME_NONNULL_END
| code_c | code | 63 | null |
//
// Created by admin on 2018/6/29.
//
#ifndef WEBCARDEMO_USBCAMERA_H
#define WEBCARDEMO_USBCAMERA_H
#include <sys/types.h>
#include <string>
#include <pthread.h>
#include <android/log.h>
#include "yuvTobmp.h"
#include <iostream>
#define LOG_TAG "UsbCamera"
#define LOGI(...) __android_log_print(ANDROID_LOG_IN... | code_c | code | 395 | null |
/*
* Declare the interface to pico_ql_exec.c
*
* Copyright 2012 <NAME>
*
* 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 | 367 | null |
#include <xorg/xf86.h>
#include "button-axle.h"
#include <xorg/xserver-properties.h>
#include <X11/Xatom.h>
#include <xf86Module.h>
#include "os.h"
#include <xorg/exevents.h>
#include <xorg/xf86Xinput.h>
/* button mapping simplified */
#define PROPMAP(m, x, y) m[x] = XIGetKnownProperty(y)
#if GET_ABI_MAJOR(ABI_XINPUT_... | code_c | code | 824 | null |
<filename>WePeiYang/Sharing/CalendarEventActivity.h
//
// CalendarEventActivity.h
// WePeiYang
//
// Created by 秦昱博 on 15/2/11.
// Copyright (c) 2015年 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CalendarEventActivity : UIActivity
@end
| code_c | code | 75 | null |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | code_c | code | 316 | null |
/*
* $Id: c_ppuntr.c,v 1.5 2008-07-23 16:16:59 haley Exp $
*/
/************************************************************************
* *
* Copyright (C) 2000 *
* University Corporation fo... | code_c | code | 446 | null |
<reponame>wakare/Leviathan<filename>include/DrawableNode.h
#pragma once
#include "IDrawable.h"
#include "IMesh.h"
#include "Node.h"
#include "GLCommonMaterial.h"
#include "PictureObject.h"
#include "DynamicArray.h"
#include "GeometryCalculator.h"
#include "TriDGLObject.h"
namespace Leviathan
{
template<class T>
cla... | code_c | code | 2,454 | null |
<filename>server/src/unifyfs_fops_rpc.c
/*
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Copyright 2020, UT-Battelle, LLC.
*
* LLNL-CODE-741539
* All rights reserved.
*
* This is the license for UnifyFS.
* For details, see https:... | code_c | code | 3,125 | null |
<reponame>dnybz/MeshBSD
/* $Id: datetime.c,v 1.3 2016/10/10 20:50:57 kristaps Exp $ */
/*
* Copyright (c) 2016 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission n... | code_c | code | 1,112 | null |
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is ... | code_c | code | 17,206 | null |
/**
* @file ObservableBase.h
* @author <NAME> (<EMAIL>)
* @brief Observable Base class
* @version 1.0
* @date 2019-06-11
*
* @copyright Copyright (c) 2020
*
*/
#ifndef __OBSERVABLE_BASE_H__
#define __OBSERVABLE_BASE_H__
#include <2DGameSDK/dll/gamesdk_dll.h>
namespace game {
/**
* @... | code_c | code | 262 | null |
#pragma once
#include <mdstypes.h>
#include <mdsdescrip.h>
#ifdef COM
#undef COM
#endif
#define COM
#define OPC(name,builtin,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11) extern int Tdi##name ( struct descriptor *first, ... );
#include <opcbuiltins.h>
#undef OPC
#define OPC(name,builtin,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11) extern uns... | code_c | code | 181 | null |
/*
Copyright (C) 2012-2014 Soomla Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... | code_c | code | 508 | null |
<gh_stars>0
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITN... | code_c | code | 361 | null |
<reponame>PerformanceHorizonGroup/measurementkit-cocoapod
//
// PHNDeepLinkProcessor.h
// PHGMobileTracking
//
// Created by <NAME> on 09/11/2015.
//
//
#import <Foundation/Foundation.h>
@interface PHNDeepLinkProcessor : NSObject
- (NSURL*) processsURL:(NSURL*)url;
//processor results.
@property(nonatomic, reado... | code_c | code | 120 | null |
<reponame>suluner/tencentcloud-sdk-cpp
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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... | code_c | code | 1,586 | null |
/*-------------------------------------------------------------------------
*
* tidbitmap.h
* PostgreSQL tuple-id (TID) bitmap package
*
* This module provides bitmap data structures that are spiritually
* similar to Bitmapsets, but are specially adapted to store sets of
* tuple identifiers (TIDs), or ItemPoin... | code_c | code | 2,361 | null |
<gh_stars>1-10
// 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_PUBLIC_THREAD_SCHEDULER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_PUBL... | code_c | code | 1,962 | null |
<reponame>ganyunhan/DUAL-OV5640-for-GOWIN
/*
* *****************************************************************************************
*
* Copyright (C) 2014-2020 Gowin Semiconductor Technology Co.,Ltd.
*
* @file GOWIN_M3_uart.c
* @author Embedded Development Team
* @version V1.0.0
* @date 2020-4-1... | code_c | code | 2,369 | null |
/*
* Copyright 2011-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (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/lice... | code_c | code | 1,676 | null |
<filename>include/drivers/ti/uart/uart_16550.h
/*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __UART_16550_H__
#define __UART_16550_H__
#include <console.h>
/* UART16550 Registers */
#define UARTTX 0x0
#define UARTRX 0x0
#defin... | code_c | code | 891 | null |
/*
*
* Copyright 2017, 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 of source code must retain the above copyright
* notice, this list of condi... | code_c | code | 1,278 | null |
<reponame>dnshp/rapid-design-methods-for-developing-hardware-accelerators<filename>labs/linkedlist-lab/lab2-solution/CycleExistInfo.h
// See LICENSE for license details.
/*[[[cog
import cog
from cog_acctempl import *
from dut_params import *
if "ty" not in globals():
lst = cog.previous.lstri... | code_c | code | 1,238 | null |
//
// JDBaseAppDelegate.h
// JDBaseModule
//
// Created by JDragon on 2018/9/17.
// Copyright © 2018年 JDragon. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface JDBaseAppDelegate : UIResponder<UIApplicationDelegate>
/**
window
*/
@property (strong, nonatomic) UIWindow *window;... | code_c | code | 99 | null |
<reponame>hosuzuki/ft_printf<gh_stars>0
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_utils.c ... | code_c | code | 431 | null |
/*
Fake86: A portable, open-source 8086 PC emulator.
Copyright (C)2010-2013 <NAME>
2019 <NAME>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the ... | code_c | code | 7,433 | null |
/*
* Driver for 93xx46 EEPROMs
*
* (C) 2011 DENX Software Engineering, <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.
*/
#include <linux/delay.h>
#include ... | code_c | code | 2,421 | null |
#pragma once
////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// Copyright (c) 2017 <NAME> & Animation Compression Library contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated docum... | code_c | code | 2,984 | null |
<gh_stars>0
// Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries.
// SPDX-License-Identifier: MIT
#include <unistd.h>
#include <stdio.h>
#include "cli.h"
#include "example.h"
#include "mscc/ethernet/switch/api.h"
static struct {
mesa_port_no_t iport;
mesa_port_no_t eport;
... | code_c | code | 2,189 | null |
<gh_stars>10-100
/**************************************************************************//**
* @file usbkbdscancodes.c
* @brief USB HID keyboard scancodes.
* @version 4.1.0
******************************************************************************
* @section License
* <b>(C) Copyright 2014 Silicon Labs, h... | code_c | code | 4,654 | null |
#ifndef DEFINESIMAGESANDSOUNDS_h
#define DEFINESIMAGESANDSOUNDS_h
#include <Arduboy2.h>
#define FPSDELAY 1000/30
#define BUTTONCD 200
#define GameSeeds 4
#define TileSize 8
#define MinLevelWidth 12
#define RoomFeatures 3
#define RoomWidth 16
#define RoomHeight 16
#define RoomBytes (Room... | code_c | code | 4,064 | null |
/**
******************************************************************************
* @file stm32l4xx_hal_irda.h
* @author MCD Application Team
* @brief Header file of IRDA HAL module.
******************************************************************************
* @attention
*
* Copyright (c) 2017... | code_c | code | 12,424 | null |
<gh_stars>1-10
/*
* 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 Software Alliance licenses this file to You under
* the... | code_c | code | 26,998 | null |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Shared Player Variables / Functions and variables that may or may not be networked
//
//===========================================================================================//
#ifndef DMO_PLAYER_SHARED_H
#define DMO_PLAYE... | code_c | code | 874 | null |
<reponame>zJvco/CS50x-Harvard-Course<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <cs50.h>
int main(int argc, char *argv[])
{
if (argc != 2) {
printf("Usage: ./recover image\n");
return 1;
}
FILE *file = fopen(argv[1], "r");
if (file == NULL) {
... | code_c | code | 345 | null |
/*
Copyright 1999-2017 ImageMagick Studio LLC, a non-profit organization
dedicated to making software imaging solutions freely available.
You may not use this file except in compliance with the License.
obtain a copy of the License at
http://www.imagemagick.org/script/license.php
Unless required ... | code_c | code | 505 | null |
<filename>modules/juce_video/native/juce_android_CameraDevice.h<gh_stars>0
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
li... | code_c | code | 41,266 | null |
<filename>tail.h<gh_stars>1-10
#ifndef TAIL_H
#define TAIL_H
#include <QObject>
#include <log_format.h>
#include <QSharedPointer>
#include <QFileSystemWatcher>
namespace Log_viewer
{
class Tail : public QObject
{
Q_OBJECT
public:
Tail(const QString& file,
qint64 file_pos,
... | code_c | code | 271 | null |
#pragma once
#include "channel.h"
// __smp_Channel_Waiter goes into Channel.send/recv
typedef struct {
void *buffer;
uintptr_t count; // object count, NOT bytes
smp_Condition *cond;
} __smp_Channel_Waiter;
| code_c | code | 64 | null |
<gh_stars>10-100
#ifndef _LIBLINEAR_H
#define _LIBLINEAR_H
#define LIBLINEAR_VERSION 230
#include <iostream>
struct feature_node{
int index;
float value;
};
#ifdef __cplusplus
extern "C" {
#endif
extern int liblinear_version;
struct problem
{
int l, n;
float *y;
struct feature_node **x;
float bias; ... | code_c | code | 730 | null |
/*
Chessboard lib demo/test program
By <NAME> - 13/08/2001
Chess game engine by <NAME>
Sept. 2021: integrated the game engine by <NAME>
https://sourceforge.net/p/smmax/blog/2014/08/playing-full-fide-in-766-bytes-/
Black moves first. If you wish to do otherwise, enter an invalid move.
Corn... | code_c | code | 947 | null |
// sktoolslib - common files for SK tools
// Copyright (C) 2012, 2017, 2020 - <NAME>
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option)... | code_c | code | 1,287 | null |
/*
* Copyright (c) 2019, The Linux Foundation. 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 con... | code_c | code | 1,313 | null |
<gh_stars>0
/* This file was generated automatically.
It's probably not a good idea to change it. */
#ifndef _H_SCHEME48
#define _H_SCHEME48
/* Copyright (c) 1993-1999 by <NAME> and <NAME>.
See file COPYING. */
#include "write-barrier.h"
typedef long s48_value;
#define NO_ERRORS 0 /* errno value */
exter... | code_c | code | 7,212 | 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 law or a... | code_c | code | 2,387 | null |
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the term... | code_c | code | 1,310 | null |
<reponame>mewpull/devilution
/**
* @file loadsave.h
*
* Interface of save game functionality.
*/
#ifndef __LOADSAVE_H__
#define __LOADSAVE_H__
void LoadGame(BOOL firstflag);
void SaveGame();
void SaveLevel();
void LoadLevel();
#endif /* __LOADSAVE_H__ */
| code_c | code | 78 | null |
#pragma once
#include <string>
class Config
{
protected:
Config();
static Config* instance;
public:
static Config* GetInstance();
bool HasBoot();
std::string GetBootFileName();
}; | code_c | code | 63 | null |
<reponame>GustavoGalo/discord-bot-1<filename>ffmpeg/libavfilter/vf_transpose.c
/*
* Copyright (c) 2010 <NAME>
* Copyright (c) 2008 <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 publish... | code_c | code | 4,240 | null |
<gh_stars>10-100
/*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the SCEA Shared Source License, Version 1.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://research.scea.com/scea_shared_source_license.ht... | code_c | code | 8,868 | null |
<reponame>exube/sound-locator
#ifndef FONT8X8_BASIC_H_
#define FONT8X8_BASIC_H_
/**
* 8x8 monochrome bitmap fonts for rendering
* Author: <NAME> <<EMAIL>>
*
* License: Public Domain
*
* Based on:
* // Summary: font8x8.h
* // 8x8 monochrome bitmap fonts for rendering
* //
* // Author:
* //... | code_c | code | 2,816 | null |
//
// MenuCell.h
// ipad
//
// Created by <NAME> on 2018/11/9.
// Copyright © 2018 nil. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface MenuCell : UITableViewCell
@property(nonatomic,strong)UILabel *titleLabel;
@property(nonatomic,strong)UIView *rightView;
-(void)updateUI:(NSDi... | code_c | code | 104 | null |
#pragma once
#include "ScriptBase.h"
#include "CRectangle.h"
class ElectricSpawn : public ScriptBase
{
public:
struct DoorWay
{
bool _opened = false;
GameObj* _door = nullptr;
CRectangle _rect;
Vector3 _spawnPoint;
};
public:
void OnStart() override;
void OnEnabled() override;
void OnDisabled() override... | code_c | code | 170 | null |
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <inttypes.h>
#include "zbuild.h"
#ifdef ZLIB_COMPAT
# include "zlib.h"
#else
# include "zlib-ng.h"
#endif
#define CHECK_ERR(err, msg) { \
if (err != Z_OK) { \
fprintf(stderr, "... | code_c | code | 978 | null |
/****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call i... | code_c | code | 664 | null |
<gh_stars>10-100
/*
Copyright (c) 2013. The YARA 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 copyright notice, this
list of condition... | code_c | code | 7,559 | null |
////////////////////////////////////////////////////////////
// Nero Game Engine - Box2D Tutorials
// Copyright (c) 2021 <NAME>
////////////////////////////////////////////////////////////
#ifndef DEBUGDRAW_H_INCLUDED
#define DEBUGDRAW_H_INCLUDED
///////////////////////////HEADERS//////////////////////////
//Box2D
#inc... | code_c | code | 1,597 | null |
//*****************************************************************************
// aes_userinput.c
//
// Functions for AES USER Input
//
// Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
//
//
// Redistribution and use in source and binary forms, with or without
// modification, a... | code_c | code | 4,147 | null |
#pragma once
#include "Singleton.h"
namespace StreamEngine
{
class Texture2D;
class Font;
class ResourceManager final : public Singleton<ResourceManager>
{
public:
void Init(const std::string& data);
std::shared_ptr<Texture2D> LoadTexture(const std::string& file) const;
std::shared_ptr<Font> LoadFont(const ... | code_c | code | 138 | null |
/*******************************************************************************
Copyright 2009 Enseed Inc. & <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restrict... | code_c | code | 2,853 | null |
<reponame>yuhonghong66/CNTK
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include <type_traits>
namespace onnxruntime {
/**
Container has T* entries. e.g. std::vector<T*>, and this class provides const access to those
via iterators and direct acce... | code_c | code | 596 | null |
<gh_stars>1-10
//
// IOHIDKeyboardUtilities.h
// Firedrake
//
// Created by <NAME>
// Copyright (c) 2015 by <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, i... | code_c | code | 1,266 | null |
<reponame>xuezhong/Paddle<gh_stars>1-10
/* Copyright (c) 2016 PaddlePaddle 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... | code_c | code | 1,820 | null |
/*
ChibiOS/RT - Copyright (C) 2006-2013 <NAME>
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 | 1,003 | null |
/*
* Tencent is pleased to support the open source community by making XiaoweiSDK Demo Codes available.
*
* Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the MIT License (the "License"); you may not use this file except in compliance
* with the License. You may ob... | code_c | code | 681 | null |
<gh_stars>1-10
/*
* Toppoly TD028TTEC1 panel support
*
* Copyright (C) 2008 Nokia Corporation
* Author: <NAME> <<EMAIL>>
*
* Neo 1973 code (jbt6k74.c):
* Copyright (C) 2006-2007 by OpenMoko, Inc.
* Author: <NAME> <<EMAIL>>
*
* Ported and adapted from Neo 1973 U-Boot by:
* <NAME> <<EMAIL>>
*
* This program ... | code_c | code | 3,789 | null |
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod
/* Tester for calling inline string functions.
Copyright (C) 1998, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Gene... | code_c | code | 537 | null |
<filename>Trojan.Win32.Gozi/crypto/ncbc_enc.c
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CRYPTO library project. Version 2.1
//
// module: ncbc_enc.c
// $Revision: 25 $
// $Date: 2013-03-12 17:34:27 +0400 (Tue, 12 Mar 2013) $
// description... | code_c | code | 665 | null |
/* terminal colors */
/* https://en.wikipedia.org/wiki/List_of_colors */
/* use this shell function to test different settings:
* The contents of file mg.txt is given in the #if 0 block below
* colortest () {
* urxvt -sh 50 -tint "$1" -e sh -c "figlet -f small '$1'; cat mg.txt; while true; do read; done" &
... | code_c | code | 2,444 | null |
/*!
* \file rtc-board.c
*
* \brief Target board RTC timer and low power modes management
*
* \copyright Revised BSD License, see section \ref LICENSE.
*
* \code
* ______ _
* / _____) _ | |
* ( (____ _____... | code_c | code | 1,309 | null |
/*
This is a SampVoice project file
Developer: CyberMor <<EMAIL>>
See more here https://github.com/CyberMor/sampvoice
Copyright (c) Daniel (CyberMor) 2020 All rights reserved
*/
#pragma once
#include <memory>
#include <cstdint>
#include <functional>
#include <vector>
#include <map>
#include "Stream... | code_c | code | 639 | null |
#pragma once
template <class T, int rank, int myMem=memDefault, int myStyle=styleDefault> class Array;
class Dims {
public:
int data[8];
int rank;
YAKL_INLINE Dims() {rank = 0;}
YAKL_INLINE Dims(int i0) {
data[0] = i0;
rank = 1;
}
YAKL_INLINE Dims(int i0, int i1) {
data[0] = i0;
data[1]... | code_c | code | 1,384 | null |
#ifndef CG_SERVER_H
#define CG_SERVER_H
#include "config.h"
#include "ipc_server.h"
#include <wayland-server-core.h>
#include <wlr/types/wlr_xdg_decoration_v1.h>
struct cg_seat;
struct cg_output;
struct keybinding_list;
struct wlr_output_layout;
struct wlr_idle_inhibit_manager_v1;
struct cg_output_config;
struct cg_... | code_c | code | 423 | null |
<reponame>bGZoCg/view_postgresql_13.2
/*-------------------------------------------------------------------------
*
*main.c
*postgres可执行文件的存根main()例程。
*
*这对postgres的任何化身都执行了一些基本的启动任务
*(邮政局长,独立后端,独立引导程序或
*由邮局局长单独执行的孩子),然后分派给
*正确的化身FooMain()例程。
*
*
*部分(c)1996-2020版权所有,PostgreSQL全球发展小组
*部分版权所有(c)1994,加利福尼亚大学董事... | code_c | code | 4,312 | null |
// 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 MEDIA_REMOTING_REMOTING_SINK_OBSERVER_H_
#define MEDIA_REMOTING_REMOTING_SINK_OBSERVER_H_
#include "media/mojo/interfaces/remoting.mojom.h"
#incl... | code_c | code | 400 | null |
/*-
* Copyright (c) 2006 IronPort Systems Inc. <<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 copyright
* notice, ... | code_c | code | 2,325 | null |
<reponame>Neusoft-Technology-Solutions/aws-sdk-cpp
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/model/JobBookmarksEncryptionMode.h>
#include <aws/core/utils/memory/stl/AWSString.... | code_c | code | 1,267 | null |
/*
* 20153230 안준홍
* 조건 변수 예제
*/
#include <stdlib.h>
#include <pthread.h>
#define BUFFER_SIZE 20
#define NUMITEMS 30
typedef struct {
int item[BUFFER_SIZE];
int totalitems;
int in, out;
pthread_mutex_t mutex;
pthread_cond_t full;
pthread_cond_t empty;
} buffer_t;
buffer_t bb = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}... | code_c | code | 720 | null |
/*-------------------------------------------------------------------------
*
* subscriptioncmds.h
* prototypes for subscriptioncmds.c.
*
*
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/commands/s... | code_c | code | 284 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.