text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
#include <stdio.h>
#include <string.h>
#include "../../TinyFrame.h"
#include "../utils.h"
TinyFrame *demo_tf;
extern const char *romeo;
/**
* This function should be defined in the application code.
* It implements the lowest layer - sending bytes to UART (or other)
*/
void TF_WriteImpl(TinyFrame *tf, const uint8... | code_c | code | 2,798 | null |
<filename>win32/VandaEngine1/physXEngine/NXU_ScaledCopy.h
//Author: <NAME>
#ifndef NXU_SCALED_COPY_H
#define NXU_SCALED_COPY_H
class NxVec3;
namespace NXU
{
class NxuPhysicsCollection;
// This is a helper function that will scale the assets in a physics collection to a new copy. New id is *required* and must be ... | code_c | code | 136 | null |
<filename>Source/Utilities/ULWeakify.h
//
// ULWeakify.h
//
// Copyright © 2018 Ulysses GmbH & Co. KG
//
// 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 wi... | code_c | code | 739 | null |
<reponame>devliubo/ATAssistiveTools
//
// ATRootViewController.h
// ATAssistiveTools
//
// Created by liubo on 2017/5/27.
// Copyright © 2017年 devliubo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ATCustomViewProtocol.h"
NS_ASSUME_NONNULL_BEGIN
#pragma mark - ATRootViewController
@protocol ATRootVi... | code_c | code | 276 | null |
/* WebDownloader for X-Window
* Copyright (C) 1999-2002 <NAME>
* This Program is free but not GPL!!! You can't modify it
* without agreement with author. You can't distribute modified
* program but you can distribute unmodified program.
*
* This program is distributed in the hope that it will be useful,
* but WI... | code_c | code | 433 | null |
/**
* Copyright (c) 2014 Netheos (http://www.netheos.net)
*
* 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 appl... | code_c | code | 1,292 | null |
<filename>Example/Pods/FlutterApi/outProduct/ios/plugins/xservice_kit/XserviceKitPlugin.h
#import <Flutter/Flutter.h>
@interface XserviceKitPlugin : NSObject<FlutterPlugin>
@end
| code_c | code | 51 | null |
/*
* Bond several ethernet interfaces into a Cisco, running 'Etherchannel'.
*
* Portions are (c) Copyright 1995 Simon "<NAME>" Janes
* NCM: Network and Communications Management, Inc.
*
* BUT, I'm the one who modified it for ethernet, so:
* (c) Copyright 1999, <NAME>, <EMAIL>
*
* This software may be used and ... | code_c | code | 3,022 | null |
/*
Copyright 2020 The Matrix.org Foundation C.I.C
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 | 1,506 | null |
//
// LogoutViewController.h
// Uni app
//
// Created by <NAME> on 11/28/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LogoutViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIBarButtonItem *sidebarButton;
@end
| code_c | code | 82 | null |
<reponame>thanrunzaw/GOTPIDLoop
//
// GOTPIDLoop.h
//
// MIT License
//
// Copyright (c) Saturday 1st September 2018, <NAME> (Grumpy Old Tech)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to dea... | code_c | code | 626 | null |
<gh_stars>0
/*-
* Copyright (c) 2014-present MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
static int __ckpt_last(WT_SESSION_IMPL *, const char *, WT_CKPT *);
static int __ckpt_last_name(WT_SES... | code_c | code | 18,705 | null |
//=======================================================================
//
// Copyright (c) 1998-2000 Microsoft Corporation. All Rights Reserved.
//
// File: History.h
// Author: <NAME>, 10/13/2000
//
// Revision History:
//
//
//
// Description:
//
// Class to handle history log
//
//======... | code_c | code | 2,080 | null |
/* Copyright (c) 2018 Griefer@Work *
* *
* This software is provided 'as-is', without any express or implied *
* warranty. In no event will the authors be held liable for any damages *
... | code_c | code | 2,401 | null |
<reponame>amygatech/ldd3
/*
* scull-async.h
*
* Copyright (C) 2019 <NAME>
* Copyright (C) 2001 <NAME> and <NAME>
* Copyright (C) 2001 O'Reilly & Associates
*
* The source code in this file can be freely used, adapted,
* and redistributed in source or binary form, so long as an
* acknowledgment appears in deriv... | code_c | code | 238 | null |
/****************************************************************************
* Copyright 2014-2015 <NAME> *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use ... | code_c | code | 770 | null |
//
// Created by sethsan on 5/2/19.
//
#ifndef CIT66FINALPROJ_SHOP_H
#define CIT66FINALPROJ_SHOP_H
#include "Problem.h"
class Shop: public Problem {
public:
Shop();
bool action(player *player1);
};
#endif //CIT66FINALPROJ_SHOP_H
| code_c | code | 69 | null |
#define HAVE_CHSIZE 1
#define HAVE_FCNTL_H 1
#define HAVE_FT_BITMAP_SIZE_Y_PPEM 1
#define HAVE_FT_GET_NEXT_CHAR 1
#define HAVE_FT_GET_PS_FONT_INFO 1
#define HAVE_FT_HAS_PS_GLYPH_NAMES 1
#define HAVE_FT_SELECT_SIZE 1
//#define HAVE_FT_GET_BDF_PROPERTY 1
#define HAVE_INTTYPES_H 1
#define HAVE_MEMMOVE 1
#define HAVE_MEMO... | code_c | code | 314 | null |
// Copyright (c) 2012-2018 The Elastos Open Source Project
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef __ELASTOS_SDK_ELAMESSAGESERIALIZABLE_H__
#define __ELASTOS_SDK_ELAMESSAGESERIALIZABLE_H__
#include <Common/ByteS... | code_c | code | 215 | null |
// Copyright 2020 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.
#include <fuchsia/hardware/dotmatrixdisplay/llcpp/fidl.h>
#include <fuchsia/hardware/dotmatrixdisplay/cpp/banjo.h>
#include <fuchsia/hardware/i2c/cpp/banjo... | code_c | code | 658 | null |
<gh_stars>0
/* Unit test suite for SHLWAPI ordinal functions
*
* Copyright 2004 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at... | code_c | code | 30,114 | null |
<filename>src/memory.c<gh_stars>0
#include "memory.h"
#include <proto/exec.h>
#include "sizes.h"
static ULONG memoryChip;
static ULONG memoryAny;
static void MemoryRelease(ULONG memory, ULONG size);
/*--------------------------------------------------------------------------*/
ULONG MemoryAllocateA... | code_c | code | 694 | null |
<reponame>jdavidberger/rikitiki<filename>include/rikitiki/http/incoming/Request.h
#pragma once
#include <rikitiki/http/Request.h>
#include <rikitiki/http/incoming/Message.h>
namespace rikitiki {
struct IRequest : public virtual IMessage {
};
template <class T> struct IRequest_ :... | code_c | code | 166 | null |
/*
* main.c
*
* Copyright (c) 1996-1999 Whistle Communications, Inc.
* All rights reserved.
*
* Subject to the following obligations and disclaimer of warranty, use and
* redistribution of this software, in source or object code forms, with or
* without modifications are expressly permitted by Whistle Communic... | code_c | code | 2,201 | null |
/* vprint.c -- v[fs]printf() for 4.[23] BSD systems. */
/* Copyright (C) 1987,1989 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
Bash is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
... | code_c | code | 590 | null |
<gh_stars>1-10
#include <stdlib.h>
typedef struct
{
int queue[3002];
int front;
int rear;
int size;
} RecentCounter;
RecentCounter *recentCounterCreate()
{
RecentCounter *res = (RecentCounter *)malloc(sizeof(RecentCounter));
res->front = res->rear = 0;
res->size = 3002;
return res;
}
int recentCounterPing(Re... | code_c | code | 259 | null |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#import <Foundation/Foundation.h>
@interface AppCenterReactNativeShared : NSObject
+ (void) setAppSecret: (NSString *)secret;
+ (NSString *) getAppSecret;
+ (void) configureAppCenter;
+ (MSWrapperSdk *) getWrapperSdk;
... | code_c | code | 106 | null |
/*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 applicabl... | code_c | code | 13,065 | null |
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char* argv[]){
int num1, num2, low, high;
printf("Enter the first number: ");
scanf("%d",&num1 );
printf("Enter the second number: ");
scanf("%d",&num2 );
if (num1 < num2){
low = num1;
high = num2;
}
else{
low = num2;
high... | code_c | code | 129 | null |
/*
* Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2003 Internet Software Consortium.
*
* 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 permiss... | code_c | code | 23,671 | null |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (C) 2018 MIPS Tech, LLC
* Author: <NAME> <<EMAIL>>
*/
#ifndef __MIPS_ASM_ISA_REV_H__
#define __MIPS_ASM_ISA_REV_H__
/*
* The ISA revision level. This is 0 for MIPS I to V and N for
* MIPS{32,64}rN.
*/
/* If the compiler has defined __mips_isa_rev, believe i... | code_c | code | 152 | null |
/** @file
Copyright 2006 - 2012 Unified EFI, Inc.<BR>
Copyright (c) 2011 - 2012 ARM Ltd. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the... | code_c | code | 866 | null |
#ifndef _FILE_H
#define _FILE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
struct stat fs;
int fexist(char *file);
int get_nrow(char *file);
void read_into_struct(char *file);
void init_file(void);
#endif
| code_c | code | 70 | null |
<filename>mplayer/libass/ass_font.c
/*
* Copyright (C) 2006 <NAME> <<EMAIL>>
*
* This file is part of libass.
*
* 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 notice appear in ... | code_c | code | 6,780 | null |
/* main.c -- Grand Theft Auto: San Andreas .so loader
*
* Copyright (C) 2021 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <psp2/io/dirent.h>
#include <psp2/io/fcntl.h>
#include <psp2/kernel/clib.h>
#include <psp2/ker... | code_c | code | 12,272 | null |
// Exercício 13 - Dada uma sequência de n números reais, determinar o número de vezes que cada um deles ocorre na mesma.
# include <stdio.h>
int linha(void) {
char x = '-';
printf("\n\033[33m");
for (int count = 0; count < 30; count ++) {
printf("%c", x);
}
printf("\033[m\n\n");
... | code_c | code | 354 | null |
<gh_stars>1-10
#ifndef _DCF77_H
#define _DCF77_H
#ifdef HAS_DCF77
#include "globals.h"
#include "timekeeper.h"
#define set_dcfbit(b) (1ULL << (b))
#ifdef DCF77_ACTIVE_LOW
enum dcf_pinstate { dcf_high, dcf_low };
#else
enum dcf_pinstate { dcf_low, dcf_high };
#endif
void DCF77_Pulse(uint8_t bit);
uint64_t DCF77_Fra... | code_c | code | 102 | null |
//
// DZHVolumeTypeStrategy.h
// StockKLineDemo
//
// Created by Merlin on 2017/3/13.
// Copyright © 2017年 2345. All rights reserved.
//
#import "DZHDataTraveler.h"
@interface DZHVolumeTypeStrategy : NSObject<DZHDataTraveler>
@end
| code_c | code | 68 | null |
#pragma once
#ifdef __OBJC__
#include <UIKit/UIKit.h>
#include <Uno-iOS/AppDelegate.h>
#include <Uno-iOS/Uno-iOS.h>
@(AppDelegate.HeaderFile.Declaration:Join())
@{Uno.Rect:IncludeDirective}
@interface uAppDelegate (SoftKeyboard)
- (void)uKeyboardWillChangeFrame:(NSNotification *)notification;
@end
#endif
| code_c | code | 89 | null |
<reponame>zjz2020/fh
//
// JZProgress.h
// JZProject
//
// Created by zjz on 2019/6/22.
// Copyright © 2019 zjz. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface JZProgress : NSObject
+ (void)show;
+ (void)showWithStatus:(NSString*)string;
+ (voi... | code_c | code | 146 | null |
//
// pch.h
// Header for standard system include files.
//
// Used by the build system to generate the precompiled header. Note that no
// pch.cpp is needed and the pch.h is automatically included in all cpp files
// that are part of the project
//
#include <jni.h>
#include <errno.h>
#include <string.h>
#include <un... | code_c | code | 139 | null |
#ifndef __PROTOS_DOH_PARSER__
#define __PROTOS_DOH_PARSER__
#include <stdbool.h>
// #include <sys/socket.h>
// #include <arpa/inet.h>
// #include <unistd.h>
// #include <string.h>
#include "doh_answer_struct.h"
#include "buffer.h"
//type of dns we are looking for
// 1 = A
#define DNSTYPE_IPV4 0x01
#define DNST... | code_c | code | 260 | null |
/* dutils1D.c */
/*---------------------------------------------------------------------------*/
/* */
/* dutils1D.c: 1D data utilities */
/* ... | code_c | code | 862 | null |
<gh_stars>0
/*===========================================================================*
* *
* sflxml.c - XML navigation functions *
* ... | code_c | code | 9,233 | null |
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2014 Zend Technologies Ltd. (http://www.zend.com) |
+---------... | code_c | code | 47,354 | null |
/**
*****************************************************************************************
* Copyright(c) 2017, Realtek Semiconductor Corporation. All rights reserved.
*****************************************************************************************
* @file app_task.c
* @brief Routines to ... | code_c | code | 1,684 | null |
<gh_stars>10-100
/*
* sata_promise.c - Promise SATA
*
* Maintained by: <NAME> <<EMAIL>>
* <NAME>
* Please ALWAYS copy <EMAIL>
* on emails.
*
* Copyright 2003-2004 Red Hat, Inc.
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU G... | code_c | code | 9,946 | null |
<reponame>huronbikes/TeensyTRSKeyboard
#ifndef TRS_80_KEYBOARD_H_
#define TRS_80_KEYBOARD_H_
#define KEY_BRACES KEY_LEFT_BRACE
#define KEY_LABEL KEY_HOME
#define KEY_PASTE KEY_END
#define KEY_CLR KEY_BACKSPACE
#define MODIFIERKEY_GRPH MODIFIERKEY_LEFT_ALT
#define MODIFIERKEY_CODE MODIFIERKEY_RIGHT_ALT
// NOTE that th... | code_c | code | 536 | null |
/* SPDX-License-Identifier: MIT */
#ifndef IPMI_CONNECTION_H_
#define IPMI_CONNECTION_H_
#include <aiRecord.h>
#include <mbbiDirectRecord.h>
#include <mbbiRecord.h>
void ipmiConnect(int _id, const char* _hostname, const char* _username,
const char* _password, const char* _proto, int _privlevel);
voi... | code_c | code | 216 | null |
/*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundl... | code_c | code | 577 | null |
<filename>fullcode/Motor2D/j1Player.h
#ifndef __j1Player_H__
#define __j1Player_H__
#include "j1Module.h"
#include "p2Point.h"
struct SDL_Texture;
class j1Player :public j1Module
{
public:
j1Player();
~j1Player();
// Called before render is available
bool Awake();
// Called before the first frame
bool Start... | code_c | code | 219 | null |
/*
* Copyright(c) 2019 Intel Corporation
* Copyright (c) 2019, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENS... | code_c | code | 580 | null |
#include <utility>
#include <vector>
#include "DataFormats/Common/interface/Wrapper.h"
#include "DataFormats/JetMatching/interface/JetFlavourInfo.h"
#include "DataFormats/JetMatching/interface/JetFlavourInfoMatching.h"
#include "DataFormats/JetMatching/interface/JetFlavour.h"
#include "DataFormats/JetMatching/interfac... | code_c | code | 134 | null |
#ifndef VAIVEN_AST_HEADER_STRING_EXPRESSION
#define VAIVEN_AST_HEADER_STRING_EXPRESSION
#include <memory>
#include "expression.h"
#include "../heap.h"
using std::unique_ptr;
namespace vaiven { namespace ast {
template<typename RD>
class StringExpression : public Expression<RD> {
public:
StringExpression(Gcable... | code_c | code | 177 | null |
//
// Created by kazem on 7/25/17.
//
#ifndef CHOLOPENMP_TRANSPOSE_H
#define CHOLOPENMP_TRANSPOSE_H
#include <cstdlib>
#include "def.h"
#include "SparseUtils.h"
namespace nasoq {
/* ========================================================================== */
/* === t_cholmod_transpose_sym =========================... | code_c | code | 5,478 | null |
#ifndef __GFX_RGB_MSB_H__
#define __GFX_RGB_MSB_H__
/* big-endian RGB888-color support */
#define GFX_ALPHA_OFS 0
#define GFX_RED_OFS 8
#define GFX_GREEN_OFS 16
#define GFX_BLUE_OFS 24
#define GFX_RGB888_RED_OFS 0
#define GFX_RGB888_GREEN_OFS 1
#define GFX_RGB88... | code_c | code | 285 | null |
//*****************************************************************************
//
// exit.c
//
// exits are structures that keep information about the links between rooms.
//
//*****************************************************************************
#include "mud.h"
#include "utils.h"
#include "storage.h"
#inclu... | code_c | code | 2,296 | null |
/* crepl.c
* Copyright 1984-2017 Cisco Systems, 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 applicab... | code_c | code | 743 | null |
#include "service_guard.h"
#include "services/nifm.h"
#include "runtime/hosversion.h"
static NifmServiceType g_nifmServiceType;
static Service g_nifmSrv;
static Service g_nifmIGS;
static Result _nifmCreateGeneralService(Service* srv_out);
static Result _nifmCreateGeneralServiceOld(Service* srv_out);
NX_GENERATE_SER... | code_c | code | 1,240 | null |
/*
*
* Copyright (c) 2008-2012, OFFIS e.V. and ICSMED AG, Oldenburg, Germany
* Copyright (C) 2013-2016, <NAME>, Oldenburg, Germany
* All rights reserved. See COPYRIGHT file for details.
*
* Header file for class DRTTypes
*
* Generated manually based on dsrtypes.h
* File created on 2008-12-05
* Last mo... | code_c | code | 3,200 | null |
<filename>src/spaces-tabs.h
// Created by: WestleyR
// email: <EMAIL>
// Date: Apr 4, 2019
// https://github.com/WestleyR/tabspaces
// version-1.0.0
//
// The Clear BSD License
//
// Copyright (c) 2019 WestleyR
// All rights reserved.
//
// This software is licensed under a Clear BSD License.
//
#include "utils.h"
#d... | code_c | code | 118 | null |
<gh_stars>0
//
// EMDMineViewController.h
// EMsgDemo
//
// Created by Hawk on 16/3/17.
// Copyright © 2016年 鹰. All rights reserved.
//
#import "ZXBaseUIViewController.h"
@interface EMDMineViewController : ZXBaseUIViewController
@end
| code_c | code | 68 | null |
/*
* libc/time/asctime.c
*/
#include <stddef.h>
#include <stdio.h>
#include <time.h>
static const char * week_days[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
static const char * month_days[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
char * asctime(const str... | code_c | code | 167 | null |
<filename>db/single_partner_table.h
#ifndef STORAGE_DB_SINGLE_PARTNER_TABLE_H_
#define STORAGE_DB_SINGLE_PARTNER_TABLE_H_
#include <cstdio>
#include <map>
#include <list>
#include <string>
#include <atomic>
#include <mutex>
#include <condition_variable>
#include "leveldb/slice.h"
#include "db/partner_meta.h"
#include ... | code_c | code | 496 | null |
// ATTENTION: The code in this file is highly EXPERIMENTAL.
// Adventurous users should note that the APIs will probably change.
#pragma once
#include "onnx/optimizer/passes/optimize_pass.h"
namespace ONNX_NAMESPACE { namespace optimization {
struct EliminateIdentity final : public OptimizePass {
explicit Elimina... | code_c | code | 245 | null |
#pragma once
#include "LDtkLoader/Entity.hpp"
#include "BestiaryEntry.h"
#include "TargetDialogue.h"
namespace rpge {
class Entity
{
public:
Entity(const ldtk::Entity& e, int cell_size);
Entity(const ldtk::Entity& e, int cell_size, const rpge::BestiaryEntry&);
Entity(const ldtk::Entity& e, int cell_size, con... | code_c | code | 274 | null |
<filename>TuSdk-xh/Frameworks/TuSDK.framework/Versions/A/Headers/TuSDKPFCameraPreviewControllerBase.h
//
// TuSDKPFCameraPreviewControllerBase.h
// TuSDK
//
// Created by <NAME> on 16/9/20.
// Copyright © 2016年 tusdk.com. All rights reserved.
//
#import "TuSDKCPImageResultController.h"
/**
* 拍照结果预览控制器基础类
*/
@in... | code_c | code | 129 | null |
#pragma once
struct def_exprs;
struct expr;
struct lit_expr;
struct lookup_expr;
struct bin_expr;
struct unit_expr;
struct call_args;
struct call_expr;
struct let_assigns;
struct let_expr;
struct def_params;
struct def_expr;
struct if_expr;
struct for_handles;
struct for_expr;
struct list_expr;
struct def_exprs {
s... | code_c | code | 2,296 | null |
<gh_stars>0
//
// CGMetalSwitchAlpha.h
// VGAMac
//
// Created by Jason on 2022/1/12.
//
#import "CGMetalBasic.h"
NS_ASSUME_NONNULL_BEGIN
@interface CGMetalSwitchAlpha : CGMetalBasic
- (instancetype)initWithAlphaMode:(CGMetalAlphaMode)blendAlphaMode;
@end
NS_ASSUME_NONNULL_END
| code_c | code | 82 | null |
<gh_stars>1-10
/*
* Copyright (c) 2021, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: MIT
*/
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <Library/HiiLib.h>
#include <Library/UefiHiiServicesLib.h>
EFI_STATUS
EFIAPI
UefiMain (
IN EFI_HANDLE ImageHandle,
IN EFI_SYS... | code_c | code | 556 | null |
<reponame>stockalexander/newrelic-php-agent<gh_stars>10-100
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "tlib_php.h"
#include "tlib_datastore.h"
#include "php_agent.h"
#include "lib_predis_private.h"
#include "util_system.h"
tlib_parallel_info_... | code_c | code | 7,993 | null |
#pragma once
#include <cstddef>
struct UserCmd;
struct GlobalVars
{
const float realtime;
const int framecount;
const float absoluteFrameTime;
const std::byte pad[4];
float currenttime;
float frametime;
const int maxClients;
const int tickCount;
const float intervalPerTick;
float serverT... | code_c | code | 104 | null |
<filename>edukit/components/esp-cryptoauthlib/cryptoauthlib/third_party/hal/esp32/hal_esp32_i2c.c<gh_stars>10-100
/*
* Copyright 2018 Espressif Systems (Shanghai) PTE 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 ob... | code_c | code | 2,596 | null |
<reponame>fergy/aplit_linux-5<gh_stars>1-10
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _MOTOROLA_PGALLOC_H
#define _MOTOROLA_PGALLOC_H
#include <asm/tlb.h>
#include <asm/tlbflush.h>
extern pmd_t *get_pointer_table(void);
extern int free_pointer_table(pmd_t *);
static inline pte_t *pte_alloc_one_kernel(struct mm_... | code_c | code | 660 | null |
<reponame>ankursehgalGitHub/ChakraCore<gh_stars>0
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------... | code_c | code | 391 | null |
<reponame>yugr/SymbolHider
/*
* Copyright 2022 <NAME>
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE.txt file.
*/
void foo() {}
| code_c | code | 53 | null |
#include <std.h>
#include <spell.h>
#include <magic.h>
#include <daemons.h>
#define ALARM "/d/magic/obj/inv_alarm"
inherit SPELL;
object alarm;
void create()
{
::create();
set_spell_name("invisibility alarm");
set_spell_level(([ "bard" : 1, "inquisitor" : 1, "ranger" : 1, "psion":1, "mage":1 ]));
set... | code_c | code | 397 | null |
<gh_stars>1-10
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main (int argc, char *argv[]) {
if (argc < 2) {
printf("Sintassi: %s <media>\n", argv[0]);
return 1;
}
double x = atof(argv[1]);
double p = (1+x+x*x/2+x*x*x/6+x*x*x*x/24)/pow(M_E, x);
printf("Probabilità promozione: %.2f%\n", p*100);
... | code_c | code | 95 | null |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/wait.h>
#include<unistd.h>
#include<fcntl.h>
#include<sys/stat.h>
#include<sys/types.h>
int32_t main()
{
fd_set rfds;
struct timeval tv;
int ret;
FD_ZERO(&rfds);
FD_SET(0,&rfds);
tv.tv_sec=10;
tv.tv_usec=0;
ret=selec... | code_c | code | 145 | null |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
Broadcom B43 wireless driver
IEEE 802.11n HT-PHY support
Copyright (c) 2011 <NAME> <<EMAIL>>
*/
#include <linux/slab.h>
#include "b43.h"
#include "phy_ht.h"
#include "tables_phy_ht.h"
#include "radio_2059.h"
#include "main.h"
/* Force values to keep compatibi... | code_c | code | 9,434 | null |
<reponame>mikaelm1/Brain-Teaser<gh_stars>1000+
/**
Copyright (c) 2014-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in... | code_c | code | 961 | null |
<filename>src/espgoodies/wifi.c<gh_stars>1-10
/*
* Copyright 2019 The qToggle Team
*
* 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 | 8,218 | 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 WebDistillability_h
#define WebDistillability_h
namespace blink {
struct WebDistillabilityFeatures {
bool is_mobile_friendly;
// The rest of... | code_c | code | 263 | null |
<filename>STM32CubeL5/Projects/STM32L552E-EV/Examples/OCTOSPI/OSPI_NOR_MemoryMapped_DTR/Src/stm32l5xx_hal_msp.c
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file OSPI/OSPI_NOR_MemoryMapped_DTR/Src/stm32l5xx_hal_msp.c
* @author MCD Applicati... | code_c | code | 1,899 | null |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | code_c | code | 1,056 | null |
#ifndef IKVREADER_H
#define IKVREADER_H
//License: Public Domain
//Author: elf
//EMail: <EMAIL>
//Structure: "Key0:Value0\n.Key1:Value1\n..Key2:Value2\n:\n"
//Buffer must ends with ":\n"
#include "String.h"
#ifndef IKVReader_FILE_END
#define IKVReader_FILE_END ":\n"
#endif
#ifndef IKVReader_KEY_END_CHAR
#define IK... | code_c | code | 413 | null |
<gh_stars>0
#ifndef FLASH_H_INCLUDED
#define FLASH_H_INCLUDED
/*---------------------------------------------------------
flash.h
---------------------------------------------------------*/
#include "xmain.h"
#include "iic.h"
#define FLASH_SIZE 0x20000
#define FLASH_PAGE_SIZE 0x80U
void F... | code_c | code | 255 | null |
/*
* Copyright 2013-2015 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICENS... | code_c | code | 685 | null |
/******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | code_c | code | 2,168 | null |
<reponame>pexip/os-ncurses
/****************************************************************************
* Copyright 2018,2020 <NAME> *
* Copyright 2012,2013 Free Software Foundation, Inc. *
* ... | code_c | code | 1,278 | null |
<gh_stars>0
//
// RRTSelectArticleTableViewController.h
// RSSTestReader
//
// Created by Yuto on 2018/07/28.
// Copyright © 2018年 Yuto. All rights reserved.
//
#import <UIKit/UIKit.h>
@class RSSFeedEntity;
@interface RRTSelectArticleTableViewController : UITableViewController
@property RSSFeedEntity *targetEnt... | code_c | code | 94 | null |
/*
* Copyright (c) 2010 The WebM 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. All contributin... | code_c | code | 50,368 | null |
<filename>arch/sim/src/sim/up_heap.c
/****************************************************************************
* arch/sim/src/sim/up_heap.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional i... | code_c | code | 3,723 | null |
#include <string.h>
#include "py/runtime.h"
#include "py/mperrno.h"
#include "py/mphal.h"
#include "extmod/misc.h"
#include "usb.h"
#include "uart.h"
// this table converts from HAL_StatusTypeDef to POSIX errno
const byte mp_hal_status_to_errno_table[4] = {
[HAL_OK] = 0,
[HAL_ERROR] = MP_EIO,
[HAL_BUSY] =... | code_c | code | 2,989 | null |
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
/* ISO C1x Unicode utilities
* Based on ISO/IEC SC22/WG14 9899 TR 19769 (SC22 N1326)
*
* THIS SOFTWA... | code_c | code | 459 | null |
/*
<BasicIO.h>
*/
/*** Functions (GLOBAL) ***/
extern void Find_Filename_Core();
extern void Get_Part_Of_Line();
extern char *Get_Date_String();
extern double Get_Time_in_Second_by_Double();
extern void Set_END_DATE();
extern void Split_to_Words();
extern void RGBTstr_to_floatRGBT();
| code_c | code | 82 | null |
<reponame>medismailben/llvm-project
// RUN: not %clang %s --hedonism -### 2>&1 | \
// RUN: FileCheck %s
// RUN: not %clang %s --hell -### 2>&1 | \
// RUN: FileCheck %s --check-prefix=DID-YOU-MEAN
// CHECK: error: unsupported option '--hedonism'
// DID-YOU-MEAN: error: unsupported option '--hell'; did you mean '--help'... | code_c | code | 92 | null |
<gh_stars>1-10
// Copyright 2017 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.
#pragma once
#include <stdint.h>
#include <stddef.h>
#include <zircon/compiler.h>
#include <zircon/types.h>
#ifndef SHA256_DIGEST_LENGTH
... | code_c | code | 1,638 | null |
<gh_stars>0
#ifndef XS_Treatment_SLXS_h
#define XS_Treatment_SLXS_h
#include "V_XS_Treatment.h"
#include "Fem_Quadrature.h"
#include <vector>
#include <stdlib.h>
#include <math.h>
class XS_Treatment_SLXS: public V_XS_Treatment
{
public:
XS_Treatment_SLXS(const Fem_Quadrature& fem_quad);
virtual ~XS_T... | code_c | code | 156 | null |
<filename>CDNSimulator/libCacheSim/evictionAlgo/slabLRU.c<gh_stars>0
//
// evict the least recent accessed slab
//
// Created by <NAME> on 04/22/20.
//
#include "../include/libCacheSim/evictionAlgo/slabLRU.h"
#include "../utils/include/utilsInternal.h"
#include "include/cacheAlg.h"
#include <inttypes.h>
#ifdef __cplu... | code_c | code | 2,111 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.