text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<gh_stars>0
//
// Created by nacho on 12/06/19.
//
#include <console.h>
#include "../include/scheduler.h"
#define MAX_BUFFER 100
Color background = {29,29,29};
Color foreground = {255,255,255};
Color errorForeground = {255,0,0};
Color okForeground = {0, 255, 0};
static Vector2 ZeroVector = {0,0};
static Vector2... | code_c | code | 1,498 | null |
<filename>src/xenia/vfs/entry.h
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 <NAME>. All rights reserve... | code_c | code | 1,293 | null |
/* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... | code_c | code | 691 | null |
<reponame>solidajenjo/CyberPimpEngine
#pragma once
typedef bool(__cdecl *SET_CALLBACK)(...);
typedef void(WINAPI *LOG_CB)(const char *msg);
typedef void(WINAPI *HELLO_WORLD)(void);
| code_c | code | 52 | null |
<gh_stars>1-10
/*
license under zlib license
Copyright (C) 2020-2021 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software fo... | code_c | code | 635 | null |
<gh_stars>1-10
#include "holberton.h"
/**
* print_diagonal - draw a diagonal line in the terminal.
* @n: number of times the character '\' should be printed.
*
*/
void print_diagonal(int n)
{
int i, j, spaces;
spaces = 0;
for (i = n; i > 0; i--)
{
for (j = spaces; j > 0; j--)
_putchar(' ');
_putchar(92... | code_c | code | 112 | null |
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2018 The Linux Foundation. All rights reserved. */
#include "a2xx_gpu.h"
#include "msm_gem.h"
#include "msm_mmu.h"
extern bool hang_debug;
static void a2xx_dump(struct msm_gpu *gpu);
static bool a2xx_idle(struct msm_gpu *gpu);
static void a2xx_submit(struct msm_g... | code_c | code | 5,270 | null |
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtWidgets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Lice... | code_c | code | 1,965 | null |
// C++/WinRT v1.0.180821.2
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "winrt/impl/Windows.Storage.1.h"
#include "winrt/impl/Windows.Storage.Streams.1.h"
#include "winrt/impl/Windows.ApplicationModel.Search.1.h"
WINRT_EXPORT namespace winrt::... | code_c | code | 1,028 | null |
<filename>src/test/compiler/filter_lambda_test_header.h
#ifndef _FILTER_LAMBDA_TEST_HEADER_H_
#define _FILTER_LAMBDA_TEST_HEADER_H_ value
#include "furious_macros.h"
FURIOUS_BEGIN_COMPONENT(Position, KILOBYTES(4))
float m_x;
float m_y;
float m_z;
FURIOUS_END_COMPONENT
FURIOUS_BEGIN_COMPONENT(Velocity, KILOBYT... | code_c | code | 123 | null |
<gh_stars>1-10
#ifndef STRATEGY_2019_UTILS_H
#define STRATEGY_2019_UTILS_H
#include <stdbool.h>
#include "../../../navigation/navigation.h"
#include "../../../navigation/path.h"
#include "../../strategy/gameStrategyContext.h"
bool isViolet2019(GameStrategyContext* gameStrategyContext);
/**
* Change t... | code_c | code | 171 | null |
<gh_stars>0
//
// This is a sample General preference pane
//
#import "MASPreferencesViewController.h"
@interface GeneralPreferencesViewController : NSViewController <MASPreferencesViewController>
@property (strong, nonatomic) NSUserDefaults *defaults;
@property IBOutlet NSButton *automaticallyCopy;
@property IBOutl... | code_c | code | 138 | null |
/*
Copyright (c) 2015, <NAME>, <NAME>, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f... | code_c | code | 3,146 | null |
#pragma once
#include "KatherineTpx3.h"
#include "KatherineTimepix3.h"
#include <vector>
#include "MultiplattformTypes.h"
#include <mutex>
#include <chrono>
#include <climits>
const size_t NO_ALGORITHM_IDX = ULLONG_MAX;
class Tpx3RadiationAngleStatistics
{
friend class Tpx3AlgorithmStatistics;
public:
... | code_c | code | 467 | null |
<filename>tools/clang/utils/builtin-defines.c<gh_stars>0
/*
This is a clang style test case for checking that preprocessor
defines match gcc.
*/
/*
RUN: for arch in -m32 -m64; do \
RUN: for lang in -std=gnu89 -ansi -std=c99 -std=gnu99; do \
RUN: for input in c objective-c; do \
RUN: for opts in "-O0" "-O1... | code_c | code | 594 | null |
<reponame>tanwang11/TWMedia
//
// UINavigationController+twRemove.h
// TWTool_Example
//
// Created by TW on 2021/3/11.
// Copyright © 2021 tanwang11. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UINavigationController (twRemove)
- (void)removeVcClass:(Class)vcClass animate... | code_c | code | 137 | null |
<gh_stars>10-100
//
// JGPhotoCollectionViewCell.h
// TwoTableLinkage
//
// Created by stkcctv on 16/9/18.
// Copyright © 2016年 stkcctv. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JGPhotoCollectionViewCell : UICollectionViewCell
@property (nonatomic,strong)UIImageView *photoV;
@end
| code_c | code | 87 | null |
<reponame>flok18/Puzzler
#include "StdInc.h"
#include "Puzzle.h"
int ASSEMBLE_TOLERANCE = 8;
static int Puzzle_Drag_Find_PieceChain(Struct_Puzzle* ThePuzzle, int MouseX, int MouseY)
{
int Ret_Index;
int ii_1;
int ii_2;
Struct_PieceChain* AkChain;
Struct_Piece... | code_c | code | 1,743 | null |
<reponame>google-ar/chromium
// 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 CONTENT_CHILD_PUSH_MESSAGING_PUSH_DISPATCHER_H_
#define CONTENT_CHILD_PUSH_MESSAGING_PUSH_DISPATCHER_H_
#include <ma... | code_c | code | 445 | null |
/******************************************************************************
* Copyright (c) Huawei Technologies Co., Ltd. 2019. All rights reserved.
* iSulad licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PS... | code_c | code | 5,132 | null |
#ifndef dictu_include_h
#define dictu_include_h
#include <stdbool.h>
#define DICTU_MAJOR_VERSION "0"
#define DICTU_MINOR_VERSION "22"
#define DICTU_PATCH_VERSION "0"
#define DICTU_STRING_VERSION "Dictu Version: " DICTU_MAJOR_VERSION "." DICTU_MINOR_VERSION "." DICTU_PATCH_VERSION "\n"
typedef struct _vm DictuVM;
t... | code_c | code | 180 | null |
<filename>contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/audio/IOAudioDebug.h
/*
* Copyright (c) 1998-2014 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* The contents of this file constitute Original Code as defined in and
*... | code_c | code | 646 | null |
<reponame>sambacha/siphon
#include "../include/siphon/list.h"
#include "../include/siphon/alloc.h"
#include "mu.h"
typedef struct {
int value;
SpList h;
} Thing;
static void
test_get (void)
{
SpList list, *entry;
Thing a, b, c, *t;
a.value = 1;
b.value = 2;
c.value = 3;
sp_list_init (&list);
sp_list_add (&... | code_c | code | 3,563 | null |
<filename>util/extract.c
/****************************************************************************
*
* extract.c
*
* This program deals with the consolidation of parallel I/O
* (and in serial with Lees-Edwards planes). This program is
* serial.
*
* To process/recombined parallel I/O into a single file ... | code_c | code | 10,104 | null |
<reponame>wangcy6/weekly_read<gh_stars>0
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* TH... | code_c | code | 1,880 | null |
#pragma once
#include <QtGui/QIconEngine>
class FixedSizeIconEngine : public QIconEngine {
public:
FixedSizeIconEngine(const QPixmap& pixmap) :
m_pixmap(pixmap)
{}
virtual void paint(QPainter* painter, const QRect& rect, QIcon::Mode /*mode*/, QIcon::State /*state*/) override {
painter->dr... | code_c | code | 314 | null |
<gh_stars>1-10
/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94A... | code_c | code | 865 | null |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | code_c | code | 2,819 | null |
/*
* Mach Operating System
* Copyright (c) 1993 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* softw... | code_c | code | 13,258 | null |
// -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research an... | code_c | code | 1,617 | null |
/*-
* BSD LICENSE
*
* Copyright (c) Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyri... | code_c | code | 3,275 | null |
<gh_stars>1-10
#include "change_filter.h"
#include "../main.h"
bool change_filtered( s32_t new_value, ChangeFilter* filter )
{
if ( ABS( new_value - filter->value_last ) > filter->value_th )
{
filter->value_last = new_value;
return true;
}
return false;
}
| code_c | code | 81 | null |
/*
* BASIC SORT FOR INTEGER ARRAYS
*/
#include "sort.h"
static void qsort_int_array(uint64_t *a, uint32_t n);
// insertion sort
static void isort_int_array(uint64_t *a, uint32_t n) {
uint32_t i, j;
uint64_t x, y;
for (i=1; i<n; i++) {
x = a[i];
j = 0;
while (a[j] < x) j ++;
while (j < i) {
... | code_c | code | 345 | null |
<reponame>SSEHUB/spassMeter
// Copyright 2008, Google Inc.
//
// 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 conditio... | code_c | code | 1,004 | null |
#include <orc/orc.h>
#include <orc-test/orctest.h>
#include <orc/orcparse.h>
#include <stdio.h>
#include <stdlib.h>
static char * read_file (const char *filename);
void output_code (OrcProgram *p, FILE *output);
void output_code_header (OrcProgram *p, FILE *output);
void output_code_test (OrcProgram *p, FILE *output... | code_c | code | 493 | null |
<reponame>roisagiv/webrtc-ndk<filename>src/modules/video_render/main/source/mac/video_render_agl.h
/*
* Copyright (c) 2011 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... | code_c | code | 1,803 | null |
<reponame>wiegerw/mcrl2-next-state<filename>libraries/process/include/mcrl2/process/alphabet_operations.h
// Author(s): <NAME>
// Copyright: see the accompanying file COPYING or copy at
// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
//
// Distributed under the Boost Software License, Version 1.0.
// (See acco... | code_c | code | 5,853 | null |
#ifndef BACKGORUND_H
#define BACKGORUND_H
#include<bits/stdc++.h>
#include "allegro5/allegro.h"
#include "allegro5/allegro_image.h"
#include "allegro5/allegro_native_dialog.h"
using namespace std;
class Backgorund
{
public:
Backgorund();
void moveBackground();
void setVX(floa... | code_c | code | 146 | null |
<filename>ubitset.h
// This file is part of the uSTL library, an STL implementation.
//
// Copyright (c) 2005 by <NAME> <<EMAIL>>
// This file is free software, distributed under the MIT License.
#pragma once
#include "ustring.h"
#include "ufunction.h"
namespace ustl {
class istringstream;
typedef uint32_t bitset_v... | code_c | code | 1,985 | null |
<gh_stars>1-10
#ifndef GBEMU_CARTRIDGE_H
#define GBEMU_CARTRIDGE_H
#include <string>
#include <cstdlib>
#include <iosfwd>
#include <gbemu/gbemu.h>
namespace gbemu {
#define GBEMU_CARTRIDGE_TYPES \
X(ROM_ONLY, 0x00) \
X(MBC1, 0x01) \
X(MBC1_RAM, 0x0... | code_c | code | 623 | null |
<filename>linux/drivers/infiniband/hw/amso1100/c2_provider.c<gh_stars>1-10
/*
* Copyright (c) 2005 Ammasso, Inc. All rights reserved.
* Copyright (c) 2005 Open Grid Computing, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed und... | code_c | code | 6,166 | null |
<gh_stars>10-100
#ifndef _CC_TEST_CAT_H
#define _CC_TEST_CAT_H
#include "cc/test/kitten.h"
class Cat : public Kitten {
// The grown-up version.
// It's a bit silly to inherit this but it's hardly real code...
public:
Cat();
Cat(const std::string& name); // Creates a cat of arbitrary age
Cat(const std::stri... | code_c | code | 139 | null |
#ifndef ROLLPITCHYAWFLOATINGJOINT_H_
#define ROLLPITCHYAWFLOATINGJOINT_H_
#include "DrakeJoint.h"
class DLLEXPORT_DRAKEJOINT RollPitchYawFloatingJoint: public DrakeJoint
{
public:
// disable copy construction and assignment
// not available in MSVC2010...
// RollPitchYawFloatingJoint(const RollPitchYawFloatingJ... | code_c | code | 425 | null |
/* radixsort.h - Foundation library - Public Domain - 2013 <NAME>
*
* This library provides a cross-platform foundation library in C11 providing basic support
* data types and functions to write applications and games in a platform-independent fashion.
* The latest source code is always available at
*
* htt... | code_c | code | 9,976 | null |
// propset.h : interface of the CProperty, CPropertySection, and CPropertSet classes
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Referenc... | code_c | code | 1,519 | null |
// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef CONFIG_BASE_H
#define CONFIG_BASE_H
#incl... | code_c | code | 1,210 | null |
/**
* lexer.h
*/
#ifndef LEXER_H
#define LEXER_H
#include <stdio.h>
#include "token.h"
#include "vec.h"
/**
* Enum for the type of 'lex_t' input.
*/
enum {
STRING_BACKED,
FILE_BACKED
};
/* Store either a file descriptor or a string and index. At some point, it may
* be good to read the file in chunks a... | code_c | code | 269 | null |
C !ROUTINE: OFFLINE_SWITCH.h
C -------------------------------
C OFFLINE_SWITCH.h
C variable for switching on/off some calculations
C -------------------------------
C offlineLoadGMRedi :: load from file GMRedi tensor (do not compute it)
C offlineLoadKPP :: load from file KPP mixing coeff (do not com... | code_c | code | 194 | null |
inherit "room/room";
object monster;
int sammu;
reset(arg) {
set_not_out(1);
if(!monster) {
monster = clone_object("/wizards/veron/areat/golem/mobs/fgolem");
move_object(monster, this_object());
sammu = 0;
}
add_exit("north","/wizards/veron/areat/golem/room18.c");
add_exit("south","... | code_c | code | 945 | null |
/*
© 2009–2016, <NAME>
Released under the terms of the Boost license (http://www.boost.org/LICENSE_1_0.txt). See License.txt for details.
*/
#pragma once
#include <cassert>
#include <csignal>
#include <iostream>
#include <memory>
#include <map>
#include "tclap/CmdLine.h"
#include "test.h"
namespace scope {
... | code_c | code | 1,465 | null |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018, Geem developers
//
// This file is part of Bytecoin.
//
// Bytecoin 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 Sof... | code_c | code | 493 | null |
<filename>chrome/browser/nearby_sharing/common/nearby_share_features.h
// Copyright 2020 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_NEARBY_SHARING_COMMON_NEARBY_SHARE_FEATURES_H_
#define CHROM... | code_c | code | 210 | null |
<reponame>GLayton-TX/Student_roster_project
#pragma once
#include <iostream>
#include <string>
#include "student.h"
using namespace std;
class Roster
{
public:
int index = 0;
Student* classRosterArray[5] = { nullptr, nullptr, nullptr, nullptr, nullptr };
int rosterSize = (sizeof(classRosterA... | code_c | code | 267 | null |
#include "blas.h"
#include "error.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <float.h>
#include <math.h>
#include <complex.h>
#include "ref/zgemm_ref.c"
int main(int argc, char * argv[]) {
CBlasTranspose transA, transB;
size_t m, n, k;
int d = 0;
if (argc < 6 || argc > 7) {
fp... | code_c | code | 2,622 | null |
inherit NPC;
void create()
{
set_name("红花会众", ({ "<NAME>", "hong", "honghua", "huizhong" }) );
set("gender", "男性");
set("age", 25);
set("long", "这是位青年壮汉,虎背熊腰,胸前配带一朵大红花。\n");
set("combat_exp", 20000);
set("shen_type", 1);
set("attitude", "heroism");
set("... | code_c | code | 191 | null |
#include "driver.h"
#include "window.h"
#include "input.h"
int ipinmame_get_keycode_status(int keycode);
static struct KeyboardInfo keylist[] = {
{ "ESC", KEY_ESC, KEYCODE_ESC },
{ "F1", KEY_F1, KEYCODE_F1 },
{ "F2", KEY_F2, KEYCODE_F2 },
{ "F3", KEY_... | code_c | code | 2,059 | null |
/*
* Renesas Solutions Highlander R7780RP-1 Support.
*
* Copyright (C) 2002 Atom Create Engineering Co., Ltd.
* Copyright (C) 2006 <NAME>
* Copyright (C) 2008 <NAME>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this... | code_c | code | 450 | null |
<reponame>pereckerdal/arrow<filename>src/storage/optional.h<gh_stars>0
// Copyright (c) 2013, <NAME>. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restri... | code_c | code | 3,821 | null |
<filename>arch/xtensa/src/esp32/esp32_wtd.c
/****************************************************************************
* arch/xtensa/src/esp32/esp32_wtd.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work fo... | code_c | code | 7,846 | null |
/*!
* \file
* \brief TempHum11 Click example
*
* # Description
* This click has two sensors which can be set to sample measurements with the resolution
* of 8, 11 or 14 bits, based on the measurement time. Calibration coefficients that are applied
* to the measured value and the results are stored in the MSB... | code_c | code | 832 | 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 | 819 | null |
<reponame>jrouhaud/postgres
/*------------------------------------------------------------------------
*
* geqo_ox2.c
*
* order crossover [OX] routines;
* OX2 operator according to Syswerda
* (The Genetic Algorithms Handbook, ed L Davis)
*
* src/backend/optimizer/geqo/geqo_ox2.c
*
*----------------------------------... | code_c | code | 800 | null |
<gh_stars>0
/*
* Copyright (c) 1992 Regents of the University of California.
* All rights reserved.
*
* This software was developed by the Computer Systems Engineering group
* at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
* contributed to Berkeley.
*
* Redistribution and use in source and bi... | code_c | code | 5,736 | null |
<filename>Sources/Elastos/LibCore/inc/elastos/utility/HashMap.h
//=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with t... | code_c | code | 7,485 | null |
<gh_stars>1-10
/* ------------------------------
$Id: mount.c,v 1.2 2009/11/17 16:20:54 marquet Exp $
------------------------------------------------------------
Initialization and finalization
<NAME>, Nov 2009
*/
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include ... | code_c | code | 525 | 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.
*/
#define __CRT__NO_INLINE
#include <stdlib.h>
wchar_t* lltow(long long _n, wchar_t * _w, int _i)
{ retu... | code_c | code | 99 | null |
<reponame>rescrv/Replicant<filename>daemon/acceptor.h
// Copyright (c) 2015, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the a... | code_c | code | 1,185 | null |
#pragma once
#include "../types.hpp"
namespace openloco
{
#pragma pack(push, 1)
struct tree_object
{
string_id name;
uint8_t var_02;
uint8_t height; // 0x03
uint8_t var_04;
uint8_t var_05;
uint8_t num_rotations; // 0x06 (1,2,4)
uint8_t growth; // ... | code_c | code | 234 | null |
/*
* Copyright (c) 2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibJS/Runtime/Error.h>
namespace JS {
class ErrorPrototype final : public Object {
JS_OBJECT(ErrorPrototype, Object);
public:
explicit ErrorPrototype(GlobalObject&);
virtual void initialize... | code_c | code | 417 | null |
//
// CubeConferenceService.h
// CubeEngineFoundationKit
//
// Created by Ashine on 2018/5/17.
// Copyright © 2018年 CubeTeam. All rights reserved.
//
#import <CubeEngineFoundationKit/CubeService.h>
@class CubeConference;
@class CubeConferenceConfig;
@class CubeConferenceMember;
@class CubeError;
@class CubeUser;
... | code_c | code | 2,732 | null |
/****************************************************************************
* arch/arm/src/stm32l4/chip/stm32l4_dma2d.h
*
* Copyright (C) 2014-2015 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... | code_c | code | 3,607 | null |
// SPDX-License-Identifier: GPL-2.0
/*
* Driver for the Texas Instruments DP83TC811 PHY
*
* Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
*
*/
#include <linux/ethtool.h>
#include <linux/etherdevice.h>
#include <linux/kernel.h>
#include <linux/mii.h>
#include <linux/module.h>
#include <lin... | code_c | code | 2,534 | null |
<gh_stars>0
/*
* Copyright 2004-2018 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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 Lice... | code_c | code | 1,255 | null |
#pragma once
#include <stdbool.h>
#include "terminal.h"
bool osc_ensure_size(struct terminal *term, size_t required_size);
void osc_dispatch(struct terminal *term);
| code_c | code | 47 | null |
/*!
* @file core.c
* @brief Definitions of core components of the Meterpreter suite.
* @details Much of what exists in the core files is used in almost every area
* of the Meterpreter code base, and hence it's very important. Don't
* change this stuff unless you know what you're doing!
*/
... | code_c | code | 10,592 | null |
#ifndef __LED_H
#define __LED_H
#include "stm32f10x.h"
extern __IO int fadeRate;
void LED_Configuration(void);
void LED_On(void);
void LED_Off(void);
void Delay(__IO uint32_t);
int constrain(int, int, int);
void fadeLED(int);
void ledFadeToBeat(void);
#endif
| code_c | code | 79 | null |
#include <std.h>
#include "../inherits/area_stuff.h"
inherit WEAPONLESS;
void create ()
{
object ob;
::create ();
set_name("starving gray wolf");
set_id(({"wolf", "starving wolf", "gray wolf", "chsaideoozefood"}));
set_short("%^BOLD%^%^BLACK%^A starving gray wolf%^RESET%^");
set_long("%^BOLD%^... | code_c | code | 568 | null |
/*$Id: handlers.c 347 2014-05-21 15:15:57Z kny48981 $*/
# define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <sys/signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <setjmp.h>
#ifdef GNU_TRAP_FPE
# define _GNU_SOURCE
# includ... | code_c | code | 1,264 | null |
#pragma once
/********************************************************************
// Created: 2022/01/20 14:42:44
// File Name: D:\XEngine_ServiceApp\XEngine_Source\XEngine_ServiceApp\XEngine_HttpApp\XEngine_HTTPTask.h
// File Path: D:\XEngine_ServiceApp\XEngine_Source\XEngine_ServiceApp\XEngine_Htt... | code_c | code | 234 | null |
#ifndef TRANSLATEEXCEPTION_H
#define TRANSLATEEXCEPTION_H
#include "../../exceptions/WizardBasicCompilerException.h"
namespace thewizardplusplus {
namespace wizard_basic_2 {
namespace compiler {
namespace translator {
namespace exceptions {
class TranslateException : public compiler::exceptions::
WizardBasicCompile... | code_c | code | 153 | null |
/** @file
Header file for PCH Init SMM Handler
Copyright (c) 2017 - 2020 Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _PCH_INIT_SMM_H_
#define _PCH_INIT_SMM_H_
#include <PiDxe.h>
#include <Library/DebugLib.h>
#include <Library/IoLib.h>
#inclu... | code_c | code | 2,601 | null |
#include <stdio.h>
int main() {
unsigned a, b;
while(scanf("%u %u", &a, &b) != EOF) {
printf("%u\n", a ^ b);
}
return 0;
}
| code_c | code | 37 | null |
//*****************************************************************************
//
// canvas.h - Prototypes for the canvas widget.
//
// Copyright (c) 2008-2017 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and... | code_c | code | 11,291 | null |
#ifndef READ_POLYLINES_H
#define READ_POLYLINES_H
#include <cstddef>
#include <vector>
#include <fstream>
template <typename Point_3>
bool read_polylines(const std::string fname,
std::vector<std::vector<Point_3> >& polylines)
{
std::ifstream ifs(fname);
if(ifs.bad()) return false;
std::size_... | code_c | code | 187 | null |
/*
* Copyright (c) 2018-2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <sys/cdefs.h>
__BEGIN_DECLS
long ulimit(int cmd, long newlimit);
__END_DECLS
| code_c | code | 57 | null |
//
// NSString+CHEmoji.h
// Pods
//
// Created by CHwang on 17/2/10.
//
// 字符串Emoji处理
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSString (CHEmoji)
/**
字符串是否Emoji
@return 仅当字符串是单个Emoji返回YES, 否则返回NO
*/
- (BOOL)ch_isEmoji;
/**
是否包含Emoji
@return 包含返回YES, 否则返回NO
*/
- (BOOL)ch_co... | code_c | code | 126 | null |
<gh_stars>1-10
#pragma once
#ifndef HW2_P3_2_H
#define HW2_P3_2_H
#include "stdafx.h"
#include "io.h"
#include "jpeg.h"
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
using namespace std;
using namespace cv;
void HW2_Proble... | code_c | code | 113 | null |
<gh_stars>0
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://w... | code_c | code | 2,360 | null |
// *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// 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 | 3,110 | null |
<reponame>microsoft/vOW4SIKE_on_HW<gh_stars>1-10
/********************************************************************************************
* vOW4SIKE on HW: a HW/SW co-design implementation of the vOW algorithm on SIKE
* Copyright (c) Microsoft Corporation
*
* Website: https://github.com/microsoft/vOW4SIKE_on_HW
* ... | code_c | code | 1,929 | null |
<filename>UnrealEngine-4.11.2-release/Engine/Source/Developer/ProjectLauncher/Private/Widgets/SProjectLauncherSettings.h<gh_stars>1-10
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
namespace ELauncherWizardPages
{
/**
* Enumerates the session launcher wizard pages.
*/
enum Type
{
... | code_c | code | 942 | null |
<gh_stars>0
#pragma once
#include <SFML/Graphics/Color.hpp>
#include <array>
#include "engine/component.h"
#include "engine/entity.h"
#include "maths/angle.h"
#include "maths/vec2.h"
namespace game
{
using PlayerNumber = std::uint8_t;
const PlayerNumber INVALID_PLAYER = std::numeric_limits<PlayerNumber>::ma... | code_c | code | 599 | null |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_WIN_H_
#define REMOTING_HOST_PAIRING_REGISTRY_DELEGATE_WIN_H_
#include <memory>
#include <string>
#inclu... | code_c | code | 727 | null |
/***************************************************
文件名称:CinLoggerManager.h
作 者:刘玉锋
备 注:日志线程头文件
创建时间:2013-1-12
修改历史:
版权声明:Copyright 2013 . All rights reserved.
***************************************************/
#import <Foundation/Foundation.h>
//定义日志信息宏
#define CinLogLevelInfo 0
#de... | code_c | code | 1,086 | null |
//
// TaskList.h
// test
//
// Created by MikeRiy on 17/3/7.
// Copyright © 2017年 MikeRiy. All rights reserved.
//
#ifndef TaskList_h
#define TaskList_h
#include <stdio.h>
#include <list>
//#define DELETE_TASK(val) do{ if(val){ delete val; val = NULL;} }while(0)
//任务失败
enum TASK_EVENT
{
TASK_COMPLETE = 0,
... | code_c | code | 505 | null |
/* include the enumerator header. */
#include "enum.h"
#include "enum-thread.h"
#include "enum-prune.h"
/* enum_prune_taf_t: structure for holding information required for
* torsion angle feasibility pruning closures.
*/
typedef struct {
/* @ntest, @nprune: test and prune counts of the current closure.
* @n: a... | code_c | code | 1,910 | null |
<filename>tick/traits/is_sequence_container.h<gh_stars>100-1000
/*=============================================================================
Copyright (c) 2015 <NAME>
is_sequence_container.h
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at h... | code_c | code | 521 | null |
<gh_stars>0
/* Copyright (c) 2010-2019, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have... | code_c | code | 3,382 | null |
<filename>extern/llvm/include/llvm/Transforms/Utils/ValueMapper.h
//===- ValueMapper.h - Remapping for constants and metadata -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for d... | code_c | code | 917 | null |
/*
* stm32f407xx_i2c_driver.h
*
* Created on: Sep 5, 2020
* Author: s0lid
*/
#ifndef INC_STM32F407XX_I2C_DRIVER_H_
#define INC_STM32F407XX_I2C_DRIVER_H_
#include "stm32f407xx.h"
typedef struct
{
uint32_t I2C_SCLSpeed;
uint8_t I2C_DeviceAddress;
uint8_t I2C_ACKControl;
uint8_t I2C_FMDutyCycle;
} I2C_Co... | code_c | code | 879 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.