text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UI_MODEL_H_
#define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UI_MODEL_H_
#include <stdint.h>
#include "base/files/file_... | code_c | code | 3,792 | null |
<gh_stars>100-1000
#pragma once
class CSampler;
class CSettings
{
/*
public:
class CTrigger // filter
{
public:
// Primary
int nMaxGap{5000};
int nMaxGapOnce{9000}; // preamble len
int nMaxTransitions{-1}; // CHCEME BREAKNUT READING PRE ATTACK? alebo nacitat cely buffe... | code_c | code | 497 | null |
<reponame>npocmaka/Windows-Server-2003
//**************************************************************************************************
//
// Purpose: Defines classes to support parsing tokens from a xml file
#ifndef _PARSER_H
#define _PARSER_H
#include <stdio.h>
#undef CLASS_IMPORT_EXPORT
#ifdef HHCT... | code_c | code | 582 | null |
int main()
{
int nonerror = -5;
if (nonerror % 2)
{ }
// nonerror is being used arithmetically, so quietly assume that it
// must not have contained an error in the first place.
return 0;
}
| code_c | code | 58 | null |
// # condition variables ######################################################
// - rlyeh, public domain
#ifndef CONDV_H
#define CONDV_H
typedef union condv {
char opaque_cpp_x64_vs2013[16];
char opaque_cpp_x64_vs2015[88];
char opaque_cpp_x64_vs2017[88];
char opaque_cpp_x86_vs2013[8];
char opaque... | code_c | code | 1,320 | null |
<gh_stars>10-100
/***************************************************************************
* Plug-in for TAS5110C1B image sensor connected to the SN9C1xx PC Camera *
* Controllers *
* ... | code_c | code | 1,249 | null |
/**
@brief: a sample for using gettimeofday()
@file: time.c
@date: 2014/06/25
*/
#include <unistd.h>
#include <sys/time.h>
#include <stdio.h>
int main(void)
{
struct timeval tv;
double t1;
double t2;
gettimeofday(&tv, NULL);
t1 = tv.tv_sec + tv.tv_usec/1000000.0;
sleep(1);
usleep(50);
gettimeofday(&... | code_c | code | 123 | null |
<gh_stars>1-10
#define CONFIG_LINUXOS_ENABLE 1
#define CONFIG_CJSON_ENABLE 1
#define CONFIG_LINKQUEUE_ENABLE 1
#define CONFIG_STIMER_ENABLE 1
#define CONFIG_STIMER_STACKSIZE 2048
#define CONFIG_STIMER_TASKPRIOR 10
#define CONFIG_TCIP_AL_ENABLE 1
#define CONFIG_LINUXSOCKET_ENABLE 1
#define CONFIG_DTLS_AL_ENABLE 1
#defin... | code_c | code | 248 | null |
<filename>plainECS/plainECS/includes/ecsEventListener.h
#pragma once
#include "ecsEvent.h"
#include "ecsTypeFilter.h"
namespace ecs
{
struct ECSEventListener;
/*
ECSEventListenerListener is a observer-type listener for ECSEventListener-objects.
Created in order to make ECS listen on new subscriptions from syst... | code_c | code | 649 | null |
<reponame>seawee1/RenderMan
/*
==============================================================================
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
licensing.
The code included in this file i... | code_c | code | 4,971 | null |
/*
*********************************************************************************************************
* uC/TCP-IP
* The Embedded TCP/IP Suite
*
* Copyright 2004-2020 Silicon Laboratories Inc. www.silabs.com
*
* ... | code_c | code | 11,196 | null |
/* <dory/mock_kafka_server/prod_req/msg_set.h>
----------------------------------------------------------------------------
Copyright 2013-2014 if(we)
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 o... | code_c | code | 713 | null |
/*
* $Id: ldapconf.h 1012 2008-03-26 00:44:22Z <EMAIL> $
*
* ========================================================================
* Copyright 2006-2008 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | code_c | code | 251 | null |
#ifndef __GUI_INIT_H__
#define __GUI_INIT_H__
#include "../GUI.h"
#include "put_pixel.h"
#include "draw_square.h"
#include "interrupts/isr.h"
#include "bios/bios.h"
#include "utils/memory.h"
#endif | code_c | code | 64 | null |
<filename>tools/clang/test/CodeGen/ppc64le-aggregates.c<gh_stars>1000+
// RUN: %clang_cc1 -faltivec -triple powerpc64le-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
// Test homogeneous float aggregate passing and returning.
struct f1 { float f[1]; };
struct f2 { float f[2]; };
struct f3 { float f[3]; };
struct... | code_c | code | 5,023 | null |
/* Copyright (c) 2018, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef ODP_ETHTOOL_H_
#define ODP_ETHTOOL_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <string.h>
#include <odp/api/packet_io_stats.h>
/**
* Get ethtool statistics of a packet socket
*/
int eth... | code_c | code | 128 | null |
#include "../cetcd.h"
#include <signal.h>
#include <unistd.h>
int quit = 0;
void sighandler(int sig) {
quit = 1;
}
int watch(void *userdata, cetcd_response *resp) {
cetcd_response_print(resp);
return 0;
}
int main(int argc, char *argv[]) {
cetcd_client cli;
cetcd_array addrs;
cetcd_array watc... | code_c | code | 356 | null |
<reponame>mok0/MolScript
/*
Error message procedures. The messages are written to stderr.
clib v1.1
Copyright (C) 1997-1998 <NAME>
15-May-1997 first attempts
15-Apr-1998 hgen modifications
*/
#include "err.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <str_utils.h>
/*=... | code_c | code | 677 | null |
<gh_stars>1-10
//
// UIView+additions.h
// weibo
//
// Created by laijiawei on 14-3-30.
// Copyright (c) 2014年 laijiawei. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (additions)
-(UIViewController *)viewController;
@end
| code_c | code | 71 | null |
<gh_stars>10-100
#pragma once
#include <vector>
#include <sys/epoll.h>
//EPOLLIN :表示对应的文件描述符可以读(包括对端SOCKET正常关闭);
//EPOLLOUT:表示对应的文件描述符可以写;
//EPOLLPRI:表示对应的文件描述符有紧急的数据可读(这里应该表示有带外数据到来);
//EPOLLERR:表示对应的文件描述符发生错误;
//EPOLLHUP:表示对应的文件描述符被挂断;
//EPOLLET: 将EPOLL设为边缘触发(Edge Triggered)模式,这是相对于水平触发(Level Triggered)来说的。
//EPOLL... | code_c | code | 286 | null |
<filename>src/libemanexmlparser/transportdaemonconfiguration.h
/*
* Copyright (c) 2013 - Adjacent Link LLC, Bridgewater, New Jersey
* Copyright (c) 2009-2010 - DRS CenGen, LLC, Columbia, Maryland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... | code_c | code | 1,018 | null |
/** @file
Capsule Library instance to process capsule images.
Copyright (c) 2007 - 2013, Intel Corporation. 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 ... | code_c | code | 5,146 | null |
<gh_stars>100-1000
#pragma once
#include <unordered_map>
namespace Zero
{
/**
C# Dictionary 비슷하게 만든 std::unordered_map 래핑 클래스
*/
template<class _Kty, class _Ty, class _Hasher = std::hash<_Kty>, class _Keyeq = std::equal_to<_Kty>, class _Alloc = std::allocator<std::pair<const _Kty, _Ty> >>
class CDictionary : p... | code_c | code | 230 | null |
<reponame>lastweek/source-freebsd
/*
* Copyright (c) 2014 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyri... | code_c | code | 3,152 | null |
#define principal_width 128
#define principal_height 64
typedef char u8g_pgm_uint8_t;
#define U8G_PROGMEM PROGMEM
static const uint8_t principal_bits[] U8G_PROGMEM = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,... | code_c | code | 1,878 | null |
/* Picasso - a vector graphics library
*
* Copyright (C) 2010 <NAME>
* Contact: <EMAIL>
*/
#ifndef _MEMORY_MANAGER_H_
#define _MEMORY_MANAGER_H_
#include <new>
#include <stdlib.h>
#include <stdint.h>
#include "fastcopy.h"
// common memory managers
#define mem_malloc(n) malloc(n)
#define mem_calloc(n, s... | code_c | code | 256 | null |
<filename>examples/osqp_demo.c
#include "osqp/osqp.h"
int main(int argc, char **argv) {
// Load problem data
c_float P_x[3] = { 4.0, 1.0, 2.0, };
c_int P_nnz = 3;
c_int P_i[3] = { 0, 0, 1, };
c_int P_p[3] = { 0, 1, 3, };
c_float q[2] = { 1.0, 1.0, };
c_float A_x[4] = { 1.0, 1.0, 1.0, 1.0, };
... | code_c | code | 403 | null |
<reponame>Djw2017/BBNetwork<gh_stars>0
//
// NSString+BBNetwork.h
// bbframework
//
// Created by Dongjw on 2018/2/2.
// Copyright © 2018年 Babybus. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (BBNetwork)
/**
判断字符串是否为nil或者为空字符
@return 可用
*/
- (BOOL)isValidate;
@end
| code_c | code | 89 | null |
<reponame>ShravyaMallya/CSE-MIT-Manipal<filename>Year 1/PSUC/Lab/Week 1/area,volume.c<gh_stars>10-100
#include<stdio.h>
#include<math.h>
void main()
{
int surface,volume;
float radius;
printf("enter radius of sphere");
scanf("%f",&radius);
surface=4*3.1416*pow(radius,2);
volume=(4*3.1416*pow(radius,3))/3;
printf("surfa... | code_c | code | 113 | null |
<gh_stars>1-10
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc, char *argv[]) {
char c;
while (read(STDIN_FILENO, &c, 1) != 0) {
write(STDOUT_FILENO, &c, 1);
}
} | code_c | code | 69 | null |
// SKIP PARAM: --set kernel true --set mainfun[+] "'test_init'" --set dbg.debug true --set exp.list-type true
#include <linux/mutex.h>
#include <linux/list.h>
struct elem {
struct list_head item;
int d;
};
struct elem e1,e2;
LIST_HEAD(my_list);
int sum(){
struct elem *e;
int sum = 0;
list_f... | code_c | code | 186 | null |
/***********************************************************************
threads.h - Abstracts away the differences between POSIX threads and
Windows native threads. Used by the cpool example only; we could
keep this code inline there, but it's really just unimportant
details.
Copyright (c) 2008 by Educational T... | code_c | code | 618 | null |
/* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \___... | code_c | code | 2,043 | null |
<filename>include/keyb.h<gh_stars>0
/*
* rofi
*
* MIT/X11 License
* Copyright © 2013-2021 <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 restriction, inclu... | code_c | code | 1,234 | null |
/* regexHelper: easy wrappers on POSIX Extended Regular Expressions (man 7 regex, man 3 regex) */
/* Copyright (C) 2012 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "regexHelper.h"
#include "hash.h"
const regex_t *regexCompile(const cha... | code_c | code | 881 | null |
<reponame>edmund-troche/openweave-mfgn-examples<gh_stars>1-10
/*
*
* Copyright (c) 2020 Google LLC.
* 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 a... | code_c | code | 820 | null |
<filename>network/trans/WFPSampler/syslib/HelperFunctions_Headers.h
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014 Microsoft Corporation. All Rights Reserved.
//
// Module Name:
// HelperFunctions_Headers.h
//
// Abstract:... | code_c | code | 8,655 | null |
/*
* GDI Device Context functions
*
* Copyright 1993 <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 your option) any later ve... | code_c | code | 16,713 | null |
/*
* Copyright (c) 2009 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... | code_c | code | 1,733 | null |
<gh_stars>1-10
// Copyright 2016 The Fuchsia Authors
// Copyright (c) 2016, Google, Inc. All rights reserved
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#pragma once
#include <zircon/compiler.h>
#include <zircon... | code_c | code | 870 | null |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <openenclave/bits/defs.h>
long double exp2l(long double n)
{
OE_UNUSED(n);
return 0;
}
| code_c | code | 57 | null |
<reponame>ELITE-DANE/coreclr-module
#pragma once
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wempty-body"
#pragma clang diagnostic ignored "-Wswitch"
#endif
#include <altv-cpp-api/SDK.h>
#include <CSharpResourceImpl.h>
#include "rotation.h"
#include "position.h"
#include "vector2... | code_c | code | 2,049 | null |
<reponame>ivansafrin/librgs<filename>include/rgs_tilemap.h
/*
Copyright (C) 2012 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, including without limitation th... | code_c | code | 1,745 | null |
#include "plr_common.h"
#include "plr_verify.h"
#include "plr_verify_report.h"
#include "plr_verify_log.h"
#include "plr_deviceio.h"
#include "plr_case_info.h"
#include "plr_errno.h"
void print_default_step(uchar *buf, struct plr_state *state, struct Unconfirmed_Info *crash_info)
{
if(crash_info == NULL)
return ;
... | code_c | code | 1,669 | null |
<gh_stars>0
/*
* Copyright (c) 2019 Inteli-House.
* See LICENSE for more information
*/
#ifndef _SENSORS_H
#define _SENSORS_H
#include <Arduino.h>
void initializeSensors();
float getTemperature ();
uint8_t crc8(const uint8_t *addr, uint8_t len);
#endif // _SENSORS_H
| code_c | code | 78 | null |
<gh_stars>0
/*
malloc.c -- override *alloc() to allow testing special cases
Copyright (C) 2015 <NAME> and <NAME>
This file is part of ckmame, a program to check rom sets for MAME.
The authors can be contacted at <<EMAIL>>
Redistribution and use in source and binary forms, with or without
modification, are... | code_c | code | 1,118 | null |
#import "HTTPResponse.h"
@interface HTTPErrorResponse : NSObject <HTTPResponse> {
NSInteger _status;
}
- (id)initWithErrorCode:(int)httpErrorCode;
@end
| code_c | code | 45 | null |
//
// WVRProgramPackageViewModel.h
// WhaleyVR
//
// Created by qbshen on 17/4/13.
// Copyright © 2017年 Snailvr. All rights reserved.
//
#import <Foundation/Foundation.h>
@class WVRSectionModel;
@interface WVRProgramPackageViewModel : NSObject
+ (void)http_programPackageWithCode:(NSString *)code successBlock:(... | code_c | code | 116 | null |
#include<stdio.h>
#define maxn 128
int HashTable[maxn];
char res[maxn];
int main(){
char s1[maxn],s2[maxn];
int num=0;
int i=0,j=0;
scanf("%s%s",&s1,&s2);
while(s1[i]!=0){
if(s1[i]==s2[j]){
i++;
j++;
}else{
if(s1[i]>='a'&&s1[i]<='z'){
... | code_c | code | 331 | null |
/*
* segment.c: Prom routine to map segments in other contexts before
* a standalone is completely mapped. This is for sun4 and
* sun4c architectures only.
*
* Copyright (C) 1995 <NAME> (<EMAIL>)
*/
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <as... | code_c | code | 210 | null |
<filename>Pods/LMGDataAccess/LMGDataAccess.framework/Headers/LMGDADeviceLocationStore.h
//
// LMGDADeviceLocationStore.h
// LMGData
//
// Created by <NAME> on 2018-09-28.
//
#import <Foundation/Foundation.h>
#import "LMGDACoordinate.h"
@protocol LMGDADeviceLocationStore <NSObject>
- (nullable LMGDACoordinate *)ge... | code_c | code | 136 | null |
/**
* Copyright (c) 2016-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 the same directory.
*/
#import <U... | code_c | code | 422 | null |
/*
* Copyright (c) 2018, Pinecone Inc. and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* @file nuttx/sleep.h
* @brief NuttX sleep primitives for libmetal.
*/
#ifndef __METAL_SLEEP__H__
#error "Include metal/sleep.h instead of metal/nuttx/sleep.h"
#endif
#ifndef __METAL_N... | code_c | code | 174 | null |
<filename>codessnippets/imagemanagement.c
//==================================================================================================
//==================================================================================================
void CachedGraphicsDeleteAll(void) {
Dir dir = SPIFFS.openDir("/");
... | code_c | code | 1,282 | null |
<reponame>bebeidon/351elec-emulationstation
#pragma once
#ifndef ES_CORE_UTILS_TIME_UTIL_H
#define ES_CORE_UTILS_TIME_UTIL_H
#include <string>
namespace Utils
{
namespace Time
{
static int NOT_A_DATE_TIME = 0;
class DateTime
{
public:
static DateTime now();
DateTime();
DateTime(const time_t& _... | code_c | code | 742 | null |
<reponame>murrayrm/sparrow<gh_stars>0
/*
* chnconf.c - configuration routines for channel library
*
* <NAME>
* September 1993
*
* Copyright (c) 2008 by California Institute of Technology
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt... | code_c | code | 5,558 | null |
<reponame>bocke/ucc<filename>test/cases/literals/shift.c
// RUN: %check %s
f(int i){}
main()
{
f(1 << 35); // CHECK: /warning: shift count >= /
f(1U << 35); // CHECK: /warning: shift count >= /
f(1L << 35); // CHECK: !/warnng: shift count/
f(1LU << 35); // CHECK: !/warnng: shift count/
f(1ULL << 35); // ... | code_c | code | 100 | null |
/*
* Copyright (c) 2017, 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 copyright
* notice, this list of co... | code_c | code | 746 | null |
<reponame>EvanHahn/ponyc<filename>src/libponyrt/ds/hash.h
#ifndef ds_hash_h
#define ds_hash_h
#include "fun.h"
#include "../pony.h"
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <platform.h>
PONY_EXTERN_C_BEGIN
#define HASHMAP_BEGIN ((size_t)-1)
#define HASHMAP_UNKNOWN ((size_t)-1)
typedef s... | code_c | code | 2,324 | null |
//
// VNDropDownMenu.h
// Created by Mac-Vishal on 08/06/17.
// Copyright © 2017 Vishal. All rights reserved.
//
@import UIKit;
@class VNDropDownMenu;
@class VNDropDownMenuItem;
NS_ASSUME_NONNULL_BEGIN
typedef void (^VNDropDownMenuCompletionBlock)(VNDropDownMenu *dropDownMenu, id menuItem, NSUInteger index);
typ... | code_c | code | 498 | null |
#include "stdafx.h"
//code by </MATRIX>@<NAME>
//==========================================================================
//LCD1602 UI界面
//LCD1602显示字符串
u8 code MotorStatus[] = "MS:"; //显示电机状态
u8 code Start[] = "Work"; //起始转动显示
u8 code Stop[] = "Stew"; //停止转动显示
u8 code Direction[] = "DIR:"; //显示转动方... | code_c | code | 1,192 | null |
/* ----------------------------------------------------------------------------
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
* Description: LiteOS Perf Hardware Pmu Module Implementation
* Author: Hu<NAME>
* Create: 2020-07-29
* Redistribution and use in source and binary forms, wi... | code_c | code | 1,952 | null |
/**
* @file SLRESTAdapter.h
*
* @author <NAME>
* @copyright (c) 2013 StrongLoop. All rights reserved.
*/
#import "SLRemotingUtils.h"
#import "SLAdapter.h"
#import "SLRESTContract.h"
/**
* A specific SLAdapter implementation for RESTful servers.
*
* In addition to implementing the SLAdapter interface, SLRESTAd... | code_c | code | 207 | null |
//===-- mlir-c/IR.h - C API to Core MLIR IR classes ---------------*- C -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM
// Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------------------... | code_c | code | 9,729 | null |
//
// SNRulerPickerView.h
// SNRulerPicker
//
// Created by HuWenzhi on 15/8/18.
// Copyright (c) 2015年 SinceNow. All rights reserved.
//
#import "SNRulerPickerRulerView.h"
@interface SNRulerPickerView : UIView
-(void) updateView:(NSString*)title unit:(NSString*)unit minValue:(CGFloat)minValue maxValue:(CGFloat)... | code_c | code | 139 | null |
// Copyright 2017 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_CORE_FRAME_EMBEDDED_CONTENT_VIEW_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_EMBEDDED_CONTENT_VIEW_H_
#include "t... | code_c | code | 1,158 | null |
<reponame>SheepyWang/2018-Game
#pragma once
#include "renderer2d.h"
#include "../buffers/indexbuffer.h"
#define MAX_SPRITES 60000
#define VERTEX_SIZE sizeof(VertexData)
#define SPRITE_SIZE VERTEX_SIZE * 4
#define BUFFER_SIZE SPRITE_SIZE * MAX_SPRITES
#define INDICIES_SIZE MAX_SPRITES * 6
#define SHADER_VERTEX_IN... | code_c | code | 196 | null |
#ifndef VRP_H
#define VRP_H
/*
This file is part of VROOM.
Copyright (c) 2015-2020, <NAME>.
All rights reserved (see LICENSE).
*/
#include "structures/vroom/solution/solution.h"
namespace vroom {
class Input;
class VRP {
// Abstract class describing a VRP (vehicle routing problem).
protected:
const Input& _... | code_c | code | 162 | null |
#import <UIKit/UIKit.h>
@interface UIView (WMFDefaultNib)
/**
* The name of the nib used to instantiate an instance of the receiver in <code>+[UIView wmf_viewFromClassNib]</code>.
*
* The default implementation returns the name of the receiver's class (similar to
* <code>+[UIViewController nibName]</code>).
*/
... | code_c | code | 201 | null |
<reponame>bksasuke/lenzoom<gh_stars>0
//
// Tap1.h
// GestureRecognizer
//
// Created by TuanTa on 10/27/15.
// Copyright © 2015 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface Tap1 : UIViewController
@end
| code_c | code | 66 | null |
/***********************************************************************************
Copyright (c) Nordic Semiconductor ASA
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source... | code_c | code | 2,702 | null |
/**
* \file WznmQLibAMakefile.h
* API code for table TblWznmQLibAMakefile (declarations)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
#ifndef WZNMQLIBAMAKEFILE_H
#define WZNMQLIBAMAKEFILE_H
#include <sbecore/Xmlio.h>
... | code_c | code | 358 | null |
/********************************************************************/
/* Coldfire C Header File
*
* Date : 2010/07/19
* Revision : 0.4
*
* Copyright : 1997 - 2010 Freescale Semiconductor, Inc. All Rights Reserved.
*
* http : www.freescale.com
* mail : <EMAIL>
*/
#ifndef __... | code_c | code | 7,520 | null |
<reponame>zhaomengxiao/MITK<gh_stars>1-10
/*============================================================================
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
fou... | code_c | code | 824 | null |
<reponame>patkan/foxbms-2
/**
*
* @copyright © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | code_c | code | 2,026 | null |
<reponame>PieKing1215/rust-pxtone-sys<filename>pxtone/pxtnPulse_PCM.h
#ifndef pxtnPulse_PCM_H
#define pxtnPulse_PCM_H
#include "./pxtn.h"
#include "./pxtnDescriptor.h"
class pxtnPulse_PCM
{
private:
void operator = (const pxtnPulse_PCM& src){}
pxtnPulse_PCM (const pxtnPulse_PCM& src){}
int32_t _ch ;
int... | code_c | code | 424 | null |
// Copyright 2017 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_UTIL_PASTEBOARD_UTIL_H_
#define IOS_CHROME_BROWSER_UI_UTIL_PASTEBOARD_UTIL_H_
#import <UIKit/UIKit.h>
class GURL;
// Stor... | code_c | code | 181 | null |
<gh_stars>1-10
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//===================================================... | code_c | code | 168 | null |
// Copyright 2004-present Facebook. All Rights Reserved.
#pragma once
#include <common/fb303/cpp/FacebookBase2.h>
#include <fboss/agent/if/gen-cpp2/PacketStream.tcc>
namespace facebook {
namespace fboss {
class PacketStreamService : virtual public PacketStreamSvIf,
public facebook::fb303::... | code_c | code | 643 | null |
<filename>uart_ex2_loopback_udma/device/driverlib_cm/gpio.h
//###########################################################################
//
// FILE: gpio.h
//
// TITLE: CM GPIO driver.
//
//###########################################################################
// $TI Release: F2838x Support Library v3.03.00.00... | code_c | code | 4,857 | null |
<gh_stars>0
//
// BingPhoneNextVC.h
// app
//
// Created by zhao on 2019/12/12.
// Copyright © 2019 Facebook. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "CommonTool.h"
NS_ASSUME_NONNULL_BEGIN
@interface BingPhoneNextVC : UIViewController
@property (nonatomic, strong) NSString *phone;
@property (non... | code_c | code | 141 | null |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2006 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*
*/
#ifndef SHM_MISC_H_INCLUDED
#define SHM_MISC_H_INCLUDED
#include <shm.h>
#include "../posix/shm_inline.h"
MPL_STATIC_INLINE_PREFIX int MPIDI_SHM_comm_g... | code_c | code | 885 | null |
// Copyright 2015, VIXL 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:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions ... | code_c | code | 1,607 | null |
<reponame>antjowie/Cubecraft<filename>src/objects/BlockMesh.h
#pragma once
// Blockmesh is its own class so that rendering can be split from the logic
class Camera;
class BlockMesh
{
public:
BlockMesh();
void draw() const;
private:
unsigned m_vao;
unsigned m_texture;
}; | code_c | code | 79 | null |
<reponame>guoyu07/HGBTool
//
// HGBBottomPopTool.h
// 测试
//
// Created by huangguangbao on 2017/8/14.
// Copyright © 2017年 <EMAIL>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface HGBBottomPopTool : NSObject
#pragma mark 获取字符串宽高
/**
@method 获取指定宽度情况下,字符串value的高度
@para... | code_c | code | 210 | null |
<filename>core/include/core/engine.h<gh_stars>1000+
/*
*
* Tencent is pleased to support the open source community by making
* Hippy available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use... | code_c | code | 617 | null |
#ifndef LIGHTGBM_FEATURE_GROUP_H_
#define LIGHTGBM_FEATURE_GROUP_H_
#include <LightGBM/utils/random.h>
#include <LightGBM/meta.h>
#include <LightGBM/bin.h>
#include <cstdio>
#include <memory>
#include <vector>
namespace LightGBM {
class Dataset;
class DatasetLoader;
/*! \brief Using to store data and providing som... | code_c | code | 2,040 | null |
#include<stdio.h>
int main(){
int n,a,b,i;
scanf("%d",&n);
while(n--){
scanf("%d%d",&a,&b);
if(a>b) i=b;
else i=a;
for(;i>0;i--)
if(!(a%i || b%i)){
printf("%d\n",i);
break;
}
}
return 0;
} | code_c | code | 61 | null |
/*Copyright 2021 <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 restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, ... | code_c | code | 536 | null |
//
// Created by monty on 09/12/16.
//
#ifndef DUNGEONSOFNOUDAR_NDK_ANDROIDFILELOADERDELEGATE_H
#define DUNGEONSOFNOUDAR_NDK_ANDROIDFILELOADERDELEGATE_H
namespace odb {
class AndroidFileLoaderDelegate : public Knights::IFileLoaderDelegate {
AAssetManager *mAssetManager;
public:
AndroidFileLoa... | code_c | code | 198 | null |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <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) any ... | code_c | code | 542 | null |
<reponame>ghdawn/apollo
/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a... | code_c | code | 794 | null |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/**
* Use this file as an abstraction to the underlying hooks api
*/
#ifndef ALLOCATOR_HOOKS_H
#define ALLOCATOR_HOOKS_H
#include <stdint.h>
#include <stdlib.h>
#ifndef __cplusplus
#include <stdbool.h>
#endif
#ifdef __cplusplus
extern ... | code_c | code | 1,145 | null |
/*
* lcd_api.c
*
* Created on: 18-Jan-2021
* Author: ABC
*/
#include <msp430.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "inc/lcd_api.h"
void init();
void init1();
void clealddram();
void font1();
void font2();
void showpic(char *k);
void show... | code_c | code | 1,442 | null |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkOutlineCornerSource.h
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed... | code_c | code | 639 | null |
<reponame>kwgt/samples
/*
* string slicer
*
* Copyright (C) 2012 <NAME> <<EMAIL>>
*/
#include <stdlib.h>
#include <string.h>
#include "slicer.h"
#define DEFAULT_ERROR __LINE__
#define DEFAULT_DELIMITER "\r\n"
#define ALLOC(t) ((t*)malloc(sizeof(t)))
int
slicer_new(char* src, size_t len, ch... | code_c | code | 841 | null |
<reponame>google-ar/chromium<gh_stars>100-1000
// 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 NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_
#define NET_PROXY_MOJO_PROXY_RESOLVER_FACTORY_IMPL_H_... | code_c | code | 386 | null |
#include <stdio.h>
int main(void){
int start, finish, sum, i;
i = 0;
do {
printf("Only numbers acceptable.\n");
printf("Start from: ");
scanf("%d", &start);
printf("Finish at: ");
scanf("%d", &finish);
if (start > finish){
printf("Number of startin... | code_c | code | 157 | null |
<reponame>matthb2/ParaView-beforekitwareswtichedtogit
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for deta... | code_c | code | 1,388 | null |
// C++ for the Windows Runtime v1.0.161012.5
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
#pragma once
#include "internal/Windows.Foundation.3.h"
#include "internal/Windows.Storage.Streams.3.h"
#include "internal/Windows.Devices.Printers.3.h"
#include "Windows.Devices.h"
WINRT_EXPORT namespace w... | code_c | code | 1,936 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.