max_stars_repo_path stringlengths 4 186 | max_stars_repo_name stringlengths 7 73 | max_stars_count float64 0 14.7k | id stringlengths 5 7 | text stringlengths 10 753k | lang stringclasses 1
value |
|---|---|---|---|---|---|
Uri-Online-Judge/c/1116 - Dividing X by Y.c | ThiagoInocencio/Competitive-Programming-Solutions | 1 | 6456536 | #include <stdio.h>
int main(){
int i=0 ,N;
double A, B;
scanf(" %d" , &N);
while(i<N){
scanf(" %lf %lf" , &A, &B);
if(B==0) printf("divisao impossivel\n");
else printf("%0.1lf\n" , A/B);
i++;
}
return 0;
} | c |
test/src/logic_test.h | saccharios/FollowMeFly | 0 | 3538681 | #pragma once
#include "gtest/gtest.h"
#include "math/logic.h"
class Logic_Test : public testing::Test
{
};
TEST_F(Logic_Test, PositiveEdgeDetectors)
{
Positive_Edge_Detector pos_edge_det;
EXPECT_FALSE(pos_edge_det.Update(false));
EXPECT_TRUE(pos_edge_det.Update(true));
EXPECT_FALSE(pos_edge_det.Up... | c |
System/Library/AccessibilityBundles/iTunesStoreFramework.axbundle/AXiTunesStoreGlue.h | zhangkn/iOS14Header | 1 | 7126025 | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 12:33:06 PM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/AccessibilityBundles/iTunesStoreFramework.axbundle/iTunesStoreFramework
* classdump-dyld is licensed under GPLv3, Copy... | c |
include/b0/protobuf/service_client.h | DanialLiu/bluezero | 13 | 4349568 | #ifndef B0__PROTOBUF__SERVICE_CLIENT_H__INCLUDED
#define B0__PROTOBUF__SERVICE_CLIENT_H__INCLUDED
#include <string>
#include <b0/service_client.h>
#include <b0/protobuf/socket.h>
namespace b0
{
namespace protobuf
{
/*!
* \brief The service client template class
*
* This template class specializes b0::AbstractSe... | c |
packages/PIPS/validation/Preprocessor/mrqcof.c | DVSR1966/par4all | 51 | 1567746 | void mrqcof(x,y,sig,ndata,a,ma,lista,mfit,alpha,beta,chisq,funcs)
float x[],y[],sig[],a[],**alpha,beta[],*chisq;
int ndata,ma,lista[],mfit;
void (*funcs)(); /* ANSI: void (*funcs)(float,float *,float *,float *,int); */
{
int k,j,i;
float ymod,wt,sig2i,dy,*dyda,*vector();
void free_vector();
... | c |
src/types/flags.h | myxor/ceema | 19 | 4106932 | /**
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | c |
include/GafferScene/SceneReader.h | cedriclaunay/gaffer | 0 | 7427783 | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2013-2014, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | c |
workspace/uclibc-ng-master/libc/sysdeps/linux/nds32/bits/kernel_stat.h | maydali28/toolchain-cross-compile | 0 | 4952287 | /*
* Copyright (C) 2016 <NAME>, Inc.
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#ifndef _BITS_STAT_STRUCT_H
#define _BITS_STAT_STRUCT_H
struct kernel_stat {
#if defined(__NDS32_EB__)
unsigned short st_dev;
unsigned short __pad1;
#else
unsigned long st_dev;
#endif
unsigned lon... | c |
crpal.h | micutil/Odroid-GO-Pacman | 11 | 5830853 | /******************************************************************************/
/* */
/* PACMAN GAME FOR ARDUINO DUE */
/* ... | c |
include/deepx_core/graph/optimizer_impl.h | ishine/deepx_core | 309 | 6905804 | // Copyright 2019 the deepx authors.
// Author: <NAME> (<EMAIL>)
//
#pragma once
// include all headers needed by optimizers
#include <deepx_core/common/class_factory.h>
#include <deepx_core/common/read_write_lock.h>
#include <deepx_core/dx_log.h>
#include <deepx_core/graph/optimizer.h>
#include <unordered_map>
#inclu... | c |
gpu/KMeansGPU.h | arokasprz100/K-Means-CUDA | 0 | 3327947 | #ifndef CUDA_DATA_MINING_CPP_KMEANSGPU_H
#define CUDA_DATA_MINING_CPP_KMEANSGPU_H
#include <vector>
/**
* Performs K-Means clustering on GPU.
* @param data_device Pointer to data stored in GPU memory in row-major order (each row is a single data point).
* @param number_of_rows Number of rows (entries) in the data... | c |
src/PythonObject.h | darwin/stpyv8 | 1 | 7449811 | #ifndef NAGA_PYTHONOBJECT_H_
#define NAGA_PYTHONOBJECT_H_
#include "Base.h"
class PythonObject {
public:
static void NamedGetter(v8::Local<v8::Name> v8_name, const v8::PropertyCallbackInfo<v8::Value>& v8_info);
static void NamedSetter(v8::Local<v8::Name> v8_name,
v8::Local<v8::Value> v8... | c |
ZhongShu.h | liuts/ChanlunX | 50 | 3293699 | #ifndef __ZHONGSHU_H__
#define __ZHONGSHU_H__
#include <vector>
#include <algorithm>
#pragma pack(push, 1)
struct ZhongShu
{
bool bValid;
int nTop1, nTop2, nTop3, nBot1, nBot2, nBot3;
float fTop1, fTop2, fTop3, fBot1, fBot2, fBot3;
int nLines, nStart, nEnd;
float fHigh, fLow;
int nDirection;
... | c |
src/cpu.c | hoot-w00t/chip8-emu | 0 | 4951843 | #include "chip8/defs.h"
#include "chip8/opcodes.h"
#include "logger.h"
// return values
// -1: an error occured but was handled
// -2: unknown opcode
int execute_opcode(const uint16_t opcode, chip8_system_t *c8)
{
// TODO: replace switch statement with a function pointer array
switch (opcode & 0xF000) {
... | c |
third_party/make/src/variable.h | jokva/cosmopolitan | 0 | 171513 | /* Definitions for using variables in GNU Make.
Copyright (C) 1988-2020 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make 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 3 of t... | c |
FreeBSD/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h | TigerBSD/FreeBSD-Custom-ThinkPad | 4 | 5494748 | //===-- ProcessGDBRemoteLog.h -----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | c |
rcl/include/rcl/logging_rosout.h | NoyZuberi/rcl | 0 | 6408982 | // Copyright 2018-2019 Open Source Robotics Foundation, 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 ... | c |
oneplusone/python/Include/opcode.h | jtauber/cleese | 117 | 2217274 | #ifndef Py_OPCODE_H
#define Py_OPCODE_H
#define BINARY_ADD 23
#define PRINT_ITEM 71
#define PRINT_NEWLINE 72
#define RETURN_VALUE 83
#define HAVE_ARGUMENT 90
#define LOAD_CONST 100
#define HAS_ARG(op) ((op) >= HAVE_ARGUMENT)
#endif /* !Py_OPCODE_H */ | c |
linux/arch/x86/include/asm/trace/hyperv.h | WUSTL-CSPL/RT-TEE | 6 | 5256736 | #undef TRACE_SYSTEM
#define TRACE_SYSTEM hyperv
#if !defined(_TRACE_HYPERV_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HYPERV_H
#include <linux/tracepoint.h>
#if IS_ENABLED(CONFIG_HYPERV)
TRACE_EVENT(hyperv_mmu_flush_tlb_others,
TP_PROTO(const struct cpumask *cpus,
const struct flush_tlb_info ... | c |
sandbox/src1/TCSE3-3rd-examples/src/py/mixed/Grid2D/C++/swig/gridloop.h | sniemi/SamPy | 5 | 597254 | #include <NumPyArray.h>
void gridloop1(PyArrayObject* a_, PyArrayObject* xcoor_,
PyArrayObject* ycoor_, PyObject* func1);
PyArrayObject* gridloop2(PyArrayObject* xcoor_,
PyArrayObject* ycoor_, PyObject* func1); | c |
src/animation/controller.h | sierra-zero/LumixEngine | 0 | 47534 | #pragma once
#include "condition.h"
#include "engine/flag_set.h"
#include "engine/resource.h"
#include "engine/stream.h"
namespace Lumix {
struct BoneMask;
struct LocalRigidTransform;
struct Pose;
namespace anim {
struct GroupNode;
struct RuntimeContext;
struct Controller final : Resource {
public:
Controller(co... | c |
server/api/src/rsStructFileSync.c | DICE-UNC/iRODS-FUSE-Mod | 2 | 8176329 | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to subStructFiles in the COPYRIGHT directory ***/
#include "structFileDriver.h"
#include "structFileSync.h"
#include "miscServerFunct.h"
#include "dataObjOpr.h"
int
rsStructFileSync (rsComm_t *rsComm,... | c |
src/drivers/deprecated/kbd_ipaq.c | symfund/microwindows | 1 | 8050147 | /*
* Microwindows keyboard driver for Compaq iPAQ
*
* Copyright (c) 2000, 2003 Century Software Embedded Technologies
* Written by <NAME>
*/
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include "device.h"
#define IPAQ_SCANCODE_RECORD 129
#define IPAQ_SCAN... | c |
src/common/nexusfile.h | neuged/nexus | 0 | 940811 | #ifndef NX_NEXUSFILE_H
#define NX_NEXUSFILE_H
namespace nx {
class NexusFile {
public:
enum OpenMode {
Read = 0b00000001,
Write = 0b00000010,
Append = 0b00000100,
ReadWrite = Read | Write,
};
virtual ~NexusFile() {}
virtual void setFileName(const char* uri) = 0;
virtual bool open(OpenMode mod... | c |
benchmarks/darkmark/sha/shabench.c | IanJiangICT/coremark-pro | 72 | 7820333 | /*
(C) 2014 EEMBC(R). All rights reserved.
All EEMBC Benchmark Software are products of EEMBC
and are provided under the terms of the EEMBC Benchmark License Agreements.
The EEMBC Benchmark Software are proprietary intellectual properties of EEMBC and its Members
and is protected under... | c |
Decoder/omxdl/reference/vc/src/armVC_Version.c | ra-app/Broadway | 1,762 | 8184720 | #include "omxtypes.h"
#include "armCOMM_Version.h"
#ifdef ARM_INCLUDE_VERSION_DESCRIPTIONS
const char * const omxVC_VersionDescription = "ARM OpenMAX DL v" ARM_VERSION_STRING " Rel=" OMX_ARM_RELEASE_TAG " Arch=" OMX_ARM_BUILD_ARCHITECTURE " Tools=" OMX_ARM_BUILD_TOOLCHAIN ;
#endif /* ARM_INCLUDE_VERSION_DESCRIP... | c |
inserttext.c | zhemao/hodgepodge | 1 | 7441759 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "saferead.h"
int main(int argc, char *argv[]){
FILE * f1, * f2;
char * str1, * str2, * tok;
int line = 1;
int target;
if(argc < 3){
printf("Usage: %s dest lineno [src]\n", argv[0]);
exit(1);
}
f1 = fopen(argv[1], "r");
if(f1==NULL){
fpr... | c |
listen.h | daniel-bandstra/supa_metronome | 0 | 6229740 | #ifndef LISTEN_H
#define LISTEN_H
nframes_t acoustic_delay = SAMPLE_RATE / 470;
void show_lag(nframes_t lag) {
uint16_t width;
uint16_t height = ARCADA_TFT_HEIGHT / 2;
uint16_t x = ARCADA_TFT_WIDTH / 2;
uint16_t y = (ARCADA_TFT_HEIGHT - height) / 2;
arcada.display->fillScreen(ARCADA_YELLOW);
arcada.... | c |
src/includes/wireless.h | sch3m4/farlo-ng | 2 | 3405931 | /*********************************************************************************
* Copyright (c) 2012, <NAME> *
* All rights reserved. *
* ... | c |
Extras/GrowlTunes/additions/SPSuccinct/SPLowVerbosity.h | PersonifyInc/growl | 0 | 6078670 | // Copyright (C) 2011 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 the rights
// to use, copy, modify, merge, publish, di... | c |
include/feature_tracker/feature_tracker.h | krawal19/feature_tracker | 0 | 8157449 | /**
* BSD 3-Clause License
* Copyright (c) 2020, <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 above copyright notice, this
* list... | c |
audio/simpleaudiosample/Source/Filters/micarraywavtable.h | galeksandrp/Windows-driver-samples | 3,084 | 3854515 | /*++
Copyright (c) Microsoft Corporation All Rights Reserved
Module Name:
micarraywavtable.h
Abstract:-
Declaration of wave miniport tables for the mic array.
--*/
#ifndef _SIMPLEAUDIOSAMPLE_MICARRAYWAVTABLE_H_
#define _SIMPLEAUDIOSAMPLE_MICARRAYWAVTABLE_H_
//
// Mic array range.
//
#define MICARRAY_RAW... | c |
netbsd/sys/dev/ieee1394/fwohci.c | MarginC/kame | 91 | 3399984 | /*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> of 3am Software Foundry.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... | c |
release/src/linux/linux/include/asm-alpha/mmu.h | enfoTek/tomato.linksys.e2000.nvram-mod | 278 | 8130195 | #ifndef __ALPHA_MMU_H
#define __ALPHA_MMU_H
/* The alpha MMU context is one "unsigned long" bitmap per CPU */
typedef unsigned long mm_context_t[NR_CPUS];
#endif | c |
OpenShop/BFProductFilterAttributes.h | aequasi/openshop.io-ios | 418 | 2377361 | //
// BFProductFilterAttributes.h
// OpenShop
//
// Created by Jirka Apps
// Copyright (c) 2015 Business Factory. All rights reserved.
//
#import "BFNFiltering.h"
#import "BFProductVariantColor.h"
#import "BFProductVariantSize.h"
#import "BFProductBrand.h"
#import "BFProductPriceRange.h"
NS_ASSUME_NONNULL_BEGIN
... | c |
OpenRobertaParent/RobotArdu/resources/hardware/additional/sensebox/hardware/samd/1.2.1/libraries/Adafruit_BMP3XX/Adafruit_BMP3XX.h | WGraterol64/robertalab | 3 | 4247200 | /*!
* @file Adafruit_BMP3XX.h
*
* Adafruit BMP3XX temperature & barometric pressure sensor driver
*
* This is the documentation for Adafruit's BMP3XX driver for the
* Arduino platform. It is designed specifically to work with the
* Adafruit BMP388 breakout: https://www.adafruit.com/products/3966
*
* These sen... | c |
src/engine/animmodel.h | le0nklcpp/eoavov | 2 | 519358 | VARP(fullbrightmodels, 0, 0, 200);
VAR(testtags, 0, 0, 1);
VARF(dbgcolmesh, 0, 0, 1,
{
extern void cleanupmodels();
cleanupmodels();
});
struct animmodel : model
{
struct animspec
{
int frame, range;
float speed;
int priority;
};
struct animpos
{
int anim, f... | c |
src/khash.h | tmbx/libktools | 0 | 7934099 | /**
* src/hash.h
* Copyright (C) 2005-2012 Opersys inc., All rights reserved.
*/
#ifndef __K_HASH_H__
#define __K_HASH_H__
#include <kiter.h>
/* A cell in the hash table: a key and its associated value. */
struct khash_cell {
void *key;
void *value;
};
/* The hash itself. */
typedef struct khash {
... | c |
mains/findfire.c | rnleach/satfire | 0 | 2347904 | /** \file findfire.c
* \brief Group individual satellite pixels showing wildfire into connected clusters.
*
* This program walks a directory tree and analyzes all the NOAA Big Data files with GOES satellite
* Fire Detection Characteristics (FDC) data. Individual pixels with fire power greater than 0.0 MW
* are gro... | c |
genif/gif/GIFExitCondition.h | philippjh/genif | 6 | 3327928 | #ifndef GENIF_GIFEXITCONDITION_H
#define GENIF_GIFEXITCONDITION_H
#include "Tree.h"
#include <genif/kernels/Kernel.h>
#include <genif/kernels/MaternKernel.h>
#include <genif/kernels/RBFKernel.h>
namespace genif {
/**
* This class provides an interface to describe different exit conditions.
*/
class ... | c |
src/mame/drivers/combatsc.c | Zoltan45/Mame-mkp119 | 0 | 2750965 | /***************************************************************************
"Combat School" (also known as "Boot Camp") - (Konami GX611)
TODO:
- in combasc (and more generally the 007121) the number of sprites can be
increased from 0x40 to 0x80. There is a hack in konamiic.c to handle that,
but it is wrong. If y... | c |
kernel/drivers/huawei_platform/power/hardware_ic/charge_pump/sy6510/sy6510.h | wonderful666/marx-10.1.0 | 0 | 1309185 | /*
* sy6510.h
*
* charge-pump sy6510 macro, addr etc. (bp: bypass mode; cp: charge-pump mode)
*
* Copyright (c) 2019-2019 Huawei Technologies Co., Ltd.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied,... | c |
totp/byte_stream.h | atmikajoy/otp_generation_and_validation | 1 | 48035 | #ifndef BYTE_STREAM_H
#define BYTE_STREAM_H
#include <cstddef>
#include <vector>
#include <string_view>
#include <limits>
#include <string>
#include <array>
#include <sstream>
#include <iomanip>
namespace util
{
// our byte is an octet
using byte = std::uint8_t;
using byte_sequence = std::vector<byte>;
... | c |
05-Thresholding-AOT/include/threshold.h | booleangabs/Halide | 0 | 2829678 | #include "threshold_binary.h"
#include "threshold_binary_inv.h"
#include "threshold_to_zero.h"
#include "threshold_to_zero_inv.h" | c |
cpp/src/charm/hgdm/relae-txh/kernel/graph/relae-txh-node.h | ScignScape-RZ/phcg | 0 | 6816750 | // Copyright <NAME> 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef RELAE_TXH_NODE__H
#define RELAE_TXH_NODE__H
#include "relae-graph/relae-node-ptr.h"
#include "kernel/... | c |
ass1-int/binary.tab.h | homoroselaps/DV1565 | 0 | 5831259 | // A Bison parser, made by GNU Bison 3.0.2.
// Skeleton interface for Bison LALR(1) parsers in C++
// Copyright (C) 2002-2013 Free Software Foundation, Inc.
// 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 Soft... | c |
Linux/4.进程间通信与同步/homework/test.c | HypoX64/SZU_CSSE_master | 8 | 7756081 | #include <semaphore.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <string.h>
int main(int argc, char **argv)
{
int pfds[2];
pid_t pid1, pid2, wpid;
pipe(pfds);
char buf[1024];
int nwr = 0;
... | c |
cases/spherical_surfers/param/post/objects/surfer__us_1o0__surftimeconst_6o0__reorientationtime_0o5/pz/choice.h | C0PEP0D/sheld0n | 0 | 6332685 | #ifndef C0P_PARAM_POST_OBJECTS_SURFER__US_1O0__SURFTIMECONST_6O0__REORIENTATIONTIME_0O5_PZ_CHOICE_H
#define C0P_PARAM_POST_OBJECTS_SURFER__US_1O0__SURFTIMECONST_6O0__REORIENTATIONTIME_0O5_PZ_CHOICE_H
#pragma once
// choose your post processing
#include "core/post/objects/object/post/group/all/core.h"
#include "param/p... | c |
source/core/graphics.h | SantosLeandro/retrogame | 0 | 6420867 | #pragma once
#include "vector2.h"
class Texture{
private:
void* bitmap = nullptr;
public:
Texture(){}
Texture(void *bitmap){
this->bitmap = bitmap;
}
virtual void* get(){ return bitmap;}
void set(void* bitmap){
this->bitmap = bitmap;
... | c |
sanity.c | goolime/xv6-public | 0 | 5830797 | //
// Created by gal on 17/03/19.
//
#include "types.h"
#include "stat.h"
#include "user.h"
int main(void) {
int pid;
int first_status;
int second_status;
int third_status;
pid = fork(); // the child pid is 99
if (pid > 0) {
first_status = detach(pid); // status = 0
second_statu... | c |
src/womersley/womersley_elements.h | pkeuchel/oomph-lib | 4 | 7344578 | // LIC// ====================================================================
// LIC// This file forms part of oomph-lib, the object-oriented,
// LIC// multi-physics finite-element library, available
// LIC// at http://www.oomph-lib.org.
// LIC//
// LIC// Copyright (C) 2006-2021 <NAME> and <NAME>
// LIC//
// LIC// This... | c |
HuaBi/Views/MyAsset/YTExAlertView.h | XYGDeveloper/Chinese-currency | 1 | 5359646 | //
// YTExAlertView.h
// YJOTC
//
// Created by <NAME> on 2018/10/7.
// Copyright © 2018年 前海数交平台运营. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^YTAlertViewLeftEvent)(NSString *btcCount,NSString *scaleContent,NSString *atCount,NSString *mulCount,NSString *pwd);
typedef void (^YTAlertViewMiddleEv... | c |
ShareKit demo app/RootViewController.h | ShareKit/ShareKit-Demo-App | 9 | 5841669 | //
// RootViewController.h
// ShareKit
//
// Created by <NAME> on 6/4/10.
// Copyright Idea Shower, LLC 2010. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface RootViewController : UITableViewController
@end | c |
opcodes.h | hackingotter/LC3-Simulator | 0 | 7611553 | #ifndef OPCODES_H
#define OPCODES_H
#define addOpCode 0x1000
#define andOpCode 0x5000
#define brOpCode 0x0000
#define jmpOpCode 0xC000
#define jsrOpCode 0x4000
#define jsrrOpCode 0x4000 //special version of jsr
#define ldOpCode 0x2000
#define ldiOpCode 0xA000
#define ldrOpCode 0x6000
#define leaOpCode 0xE00... | c |
Code/FBContainer/Password/FBFindPasswordViewController.h | coderYB/FBKit | 0 | 3667414 | //
// FBFindPasswordViewController.h
// FBContainer
//
// Created by 王磊 on 2020/3/29.
// Copyright © 2020 王磊. All rights reserved.
//
#import "FBConfig.h"
@import FBBridge;
@import FBTransition;
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger , FBFindPasswordActionType) {
FBFindPasswordActionTypeBack,
... | c |
deflate.c | jlublin/udeflate | 2 | 3941234 | /******************************************************************************
MIT License
Copyright (c) 2017 <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, includi... | c |
cpp/src/gp.h | wtang8/SINATRA_python | 0 | 4928552 | #include <iostream>
#include <armadillo>
#include <omp.h>
using namespace std;
using namespace arma;
//const double pi = M_PI;
dmat calc_covariance_matrix(dmat X,float bandwidth=0.01)
{
bandwidth = 1.0 / (2.0 * pow(bandwidth,2));
int n = X.n_cols;
dmat K(n,n,fill::eye);
#pragma omp parallel
{... | c |
lib/djvViewApp/ViewDataFunc.h | pafri/DJV | 0 | 4677985 | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020 <NAME>
// All rights reserved.
#pragma once
#include <djvViewApp/ViewData.h>
#include <djvCore/RapidJSONFunc.h>
namespace djv
{
rapidjson::Value toJSON(const ViewApp::GridOptions&, rapidjson::Document::AllocatorType&);
rapidjson::Value toJSON(co... | c |
cxx_catch2/src/fluxes/fluxes.h | cwj5/UnitTesting | 1 | 4376710 | #pragma once
#include <array>
#include <functions/primitive_to_conserved_1D.h>
// Takes primitive variables and returns the flux
namespace Flux {
// exact flux
inline std::array<double, 3> flux_exact(const std::array<double, 3>& primitive_state, double gamma) {
auto conserved_state = primitive_to_conserved_1D(pri... | c |
SimulationsOMP/Step_T3D_ME_TBB.h | COFS-UWA/MPM3D | 0 | 4864500 | #ifndef __Step_T3D_ME_TBB_h__
#define __Step_T3D_ME_TBB_h__
#include "PclSort.h"
#include "NodeElemSort.hpp"
#include "Model_T3D_ME_mt.h"
#include "Step_T3D_ME_TBB_Task.h"
#include "Step_TBB.h"
namespace Model_T3D_ME_mt_hdf5_utilities
{
struct ParticleData;
int output_pcl_data_to_hdf5_file(
Model_T3D_ME_mt& md, S... | c |
kernel/include/kernel/spinlock.h | CunningLearner/lk | 17 | 1523227 | /*
* Copyright (c) 2014 <NAME>
*
* 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 <arch/spinlock.h>
#include <lk/compiler.h>
__BEGIN_CDECLS
/* interrupts should already be disabled */
static... | c |
ompi/mca/fcoll/dynamic/fcoll_dynamic_file_write_all.c | bringhurst/ompi | 1 | 5620898 | /*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... | c |
src/network.h | TranscendComputing/TopStackMessageAgent | 0 | 4834382 | /**
* collectd - src/network.h
* Copyright (C) 2005-2008 <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; only version 2 of the License is applicable.
*
* This program is distri... | c |
src/peefycpp/piobuffer.h | Peefy/PeefyCompiler | 1 | 3676784 | #ifndef __P_IO_BUFFER_H__
#define __P_IO_BUFFER_H__
// peefy 输入输出缓存库
#include "util.h"
BEGIN_PEEFY_NAMESPACE
class PBuffer
{
private:
/* data */
public:
PBuffer(/* args */);
~PBuffer();
};
PBuffer::PBuffer(/* args */)
{
}
PBuffer::~PBuffer()
{
}
class PIOBuffer : public PBuffer
{
private:
/* dat... | c |
winml/lib/Api/impl/Tensor.h | lchang20/onnxruntime | 669 | 321440 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "NumericData.h"
#include "StringData.h"
//
// the Tensor class is the actual object for CPU memory buffers.
// TensorBase contains one of these to represent the raw memory
// GetCpuResource() returns... | c |
inc/ddsurface.h | Kevok93/cnc-ddraw | 0 | 8211822 | #ifndef DDSURFACE_H
#define DDSURFACE_H
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "ddraw.h"
#include "IDirectDrawSurface.h"
// enables redraw via blt/unlock if there wasn't any flip for X ms
#define FLIP_REDRAW_TIMEOUT 1000 / 10
HRESULT dds_AddAttachedSurface(IDirectDrawSurfaceImpl* This, LPDIRECTDRA... | c |
Week3-Problem1-geneticInheritance/src/geneticInheritance.h | lizy14/cpp-assignments | 0 | 6498669 | #ifndef G_H_H
#define G_H_H
extern unsigned int geneticInheritance(unsigned int, unsigned int);
extern unsigned int geneticInheritance_arithmeticVersion(unsigned int x, unsigned int y);
#endif | c |
System/Library/Frameworks/MultipeerConnectivity.framework/MCSession.h | lechium/tvOS10Headers | 4 | 602546 | /*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:08:04 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/Frameworks/MultipeerConnectivity.framework/MultipeerConnectivity
* classdump-dyld is licensed under GPLv3, Copyright © 2... | c |
headers/OnlineGameEvent.h | AndrisRTU/Digital-Wars-Online | 0 | 6866989 | #ifndef ONLINEGAMEEVENT_H
#define ONLINEGAMEEVENT_H
enum class OnlineGameEvent {
setPosition,
setSeed,
start,
joinedLobby,
returnedToLobby,
wroteToChat,
receiveOpponentName,
firstPlayerBoxChanged,
secondPlayerBoxChanged,
boardSizeBoxChanged,
firstTurnBoxChanged,
timerBox... | c |
Source/Util.h | atanub/SurveyUtilitiesArx | 1 | 4826620 | //Util.h
//////////////////////////////////////////////////////////////////////////////
#ifndef _UTIL_H
#define _UTIL_H
#include <acgi.h>
#include <AdsCodes.h>
#include <GEAssign.h>
#include <Math.h>
#define PI 3.1415926535897932384626433832795
inline int XtractStrFrEntData(struct resbuf* pEntData, const int& iDXFC... | c |
src/redset_reedsolomon_common.c | CamStan/redset | 1 | 5580853 | #include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "mpi.h"
#include "kvtree.h"
#include "kvtree_util.h"
#include "kvtree_mpi.h"
#include "redset_io.h"
#include "redset_util.h"
#include "redset.h"
#include "redset_internal.h"
#define RE... | c |
LiscArgs.h | frozenbears/Lisc | 2 | 383579 | #import <Cocoa/Cocoa.h>
//convenience class for checking function arguments against expected types
@interface LiscArgs : NSObject
//if variadic, the last expected argument type can be repeated
+ (void)checkArgs:(NSArray *)args expecting:(NSArray *)expected variadic:(BOOL)variadic; //NSArray of Class
+ (void)checkArgs... | c |
config.h | cjhead/dwm | 0 | 8009744 | /* See LICENSE file for copyright and license details. */
/* appearance */
static unsigned int borderpx = 1; /* border pixel of windows */
static unsigned int snap = 32; /* snap pixel */
static const int swallowfloating = 0; /* 1 means swallow floating windows by default */
static int show... | c |
src/Renderer.h | ruidfigueiredo/mesmerize-viewer | 7 | 7109503 | #pragma once
#include "VertexArray.h"
#include "ShaderProgram.h"
class Renderer
{
public:
void Clear();
void Draw(const VertexArray &vertexArray, const ShaderProgram &shaderProgram);
}; | c |
src/mesh/store/contactinterfacestore.h | It4innovations/mesio | 1 | 6271026 | #ifndef SRC_MESH_STORE_CONTACTINTERFACESTORE_H_
#define SRC_MESH_STORE_CONTACTINTERFACESTORE_H_
#include "boundaryregionstore.h"
namespace mesio {
struct ContactInterfaceStore: public BoundaryRegionStore {
esint interfaceIndex;
ContactInterfaceStore(const std::string &name, esint interfaceIndex);
ContactInterfa... | c |
main.c | ahmedramadan02/LAD_POSIX | 0 | 171830 | /********************************************************************************
Main.c is the main file to implement the application
The main purpose is to use SYSV IPC Msg Queues, pthreads, POSIX timers and signals
Current Version: V2.0
History:
V1.0: Initial application version
V2.0:
1. Resolved BUG_01: parent i... | c |
openvino_tensorflow/contexts.h | slyalin/openvino_tensorflow | 0 | 39245 | /*******************************************************************************
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/
#ifndef CONTEXTS_H
#define CONTEXTS_H
#include <inference_engine.hpp>
na... | c |
aws-cpp-sdk-worklink/include/aws/worklink/model/WebsiteAuthorizationProviderSummary.h | crazecdwn/aws-sdk-cpp | 1 | 5903114 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | c |
HRBClassDemo/HRBClass/BaseClass/TableView/BaseTableViewUI.h | OC-SZJ/HRBClass | 7 | 7198867 | //
// BaseTableViewUI.h
// FrameWork
//
// Created by SZJ on 2020/3/15.
// Copyright © 2020 SZJ. All rights reserved.
//
#import <Foundation/Foundation.h>
@class BaseModel;
NS_ASSUME_NONNULL_BEGIN
@interface TableViewLeftSlideAction : NSObject
@property (readonly) NSString * t_title;
@property (readonly) U... | c |
pru1_mcp3208_comm/pru_timer.c | christianprado911/pru-mcp3208-6ch | 0 | 1224466 | #include "pru_timer.h"
/// Holds the excess cycle count which would have overflowed the CYCLE counter
static uint64_t pru1_extended_cycles = 0;
static inline void stop_pru1_timer() {
PRU1_CTRL.CTRL_bit.CTR_EN = 0; // Disable cycle counter
}
void manage_pru1_cycle_overflow() {
unsigned cycle = PRU1_CTRL.CYCLE;... | c |
LambdaEngine/Include/Memory/API/New.h | IbexOmega/CrazyCanvas | 18 | 2367221 | #pragma once
#include <new>
#ifdef LAMBDA_DEBUG
#define DBG_NEW new(__FILE__, __LINE__)
#else
#define DBG_NEW new
#endif
/*
* Custom Debug new and delete
*/
void* operator new (size_t sizeInBytes, const char* pFileName, int32 lineNumber);
void* operator new[](size_t sizeInBytes, const char* pFileName, int32 lineN... | c |
include/vphysics/constraintsV32.h | JJL772/vphysics_module_base | 252 | 8073372 | #ifndef CONSTRAINTSV32_H
#define CONSTRAINTSV32_h
#ifdef _MSC_VER
#pragma once
#endif
#include "vphysics/constraints.h"
struct physconstraintinfo_t {
int numConstraintRows; // Amount of constraint rows
int nub; // Unknown. Usually 6 - numConstraintRows. Appears unused in bullet.
};
struct physconstraintsolveinfo_t... | c |
source/Utils.h | Ivan-Medvedev/CG2_template_clear | 0 | 3107533 | #pragma once
#include "stl.h"
template <typename T, typename IntType>
int InsertStable(T &&elem, stl::vector<T> &v, stl::vector<IntType> &freeIds)
{
if (!freeIds.size())
{
v.push_back(stl::move(elem));
return v.size() - 1;
}
else
{
int id = freeIds.back();
v[freeIds... | c |
WordleGS/main.h | dmalec/Wordle.GS | 5 | 7000760 | /*
* MIT License
*
* Copyright (c) 2022 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | c |
src/mode.h | klmanion/work | 0 | 7334352 | /** mode.h: controlls the event loop
*/
#ifndef _MODE_H_
#define _MODE_H_
#include "model.h"
#include "controller.h"
class Mode
{
public:
Mode();
~Mode();
virtual int loop (void) = 0;
protected:
Model *_model;
Controller *_controller;
/* view objects are in the derrived classes */
};
#endif /* !_MODE_H_ *... | c |
WLRRoute/Classes/NSError+WLRError.h | Neojoke/WLRRoute | 321 | 7792801 | //
// NSError+WLRError.h
// Pods
//
// Created by Neo on 2016/12/15.
//
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, WLRError) {
/** The passed URL does not match a registered route. */
WLRErrorNotFound = 45150,
/** The matched route handler does not specify a target view co... | c |
linux-2.6.16-unmod/include/asm-ia64/uaccess.h | ut-osa/syncchar | 0 | 6233458 | #ifndef _ASM_IA64_UACCESS_H
#define _ASM_IA64_UACCESS_H
/*
* This file defines various macros to transfer memory areas across
* the user/kernel boundary. This needs to be done carefully because
* this code is executed in kernel mode and uses user-specified
* addresses. Thus, we need to be careful not to let the ... | c |
src/Models/FeBasedSc/ParametersModelFeAs.h | g1257/LanczosPlusPlus | 9 | 4743846 | /*
Copyright (c) 2009-2014, UT-Battelle, LLC
All rights reserved
[DMRG++, Version 2.0.0]
[by G.A., Oak Ridge National Laboratory]
UT Battelle Open Source Software License 11242008
OPEN SOURCE LICENSE
Subject to the conditions of this License, each
contributor to this software hereby grants, free of
charge, to any p... | c |
src/core/MixSdk.h | pzx601917159/Hercules | 121 | 5175371 | // Copyright 2021 HUYA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing... | c |
external/glbinding-2.1.1/source/glbinding/include/glbinding/Binding.h | Arduqq/computer-graphics | 2 | 2836771 | #pragma once
#include <array>
#include <vector>
#include <functional>
#include <glbinding/glbinding_api.h>
#include <glbinding/ContextHandle.h>
#include <glbinding/Function.h>
#include <glbinding/gl/types.h>
namespace glbinding
{
/**
* @brief
* The main interface to handle additional features to OpenGL func... | c |
utilities/ovs-checkpoint.c | sdyy1990/ovs | 0 | 7404751 | #include <config.h>
#include <ctype.h>
#include <errno.h>
#include <getopt.h>
#include <inttypes.h>
#include <sys/socket.h>
#include <net/if.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include "byte-order.h"
#inc... | c |
YYModelSudy/YYModelTest/User.h | wangdxnum1/MyOpenSourceCodeStudyAndResearch | 1 | 5338244 | //
// User.h
// YYModelTest
//
// Created by HaKim on 16/9/27.
// Copyright © 2016年 haKim. All rights reserved.
//
#import <Foundation/Foundation.h>
@class Author;
@interface User : NSObject
//@property UInt64 uid;
//@property NSString *name;
//@property NSDate *created;
//@property NSString *name;
//@property ... | c |
head/crypto/heimdal/appl/rcp/rcp.c | dplbsd/soc2013 | 34 | 5703469 | /*
* Copyright (c) 1983, 1990, 1992, 1993
* The Regents of the University of California. 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... | c |
project2D/TextureManager.h | BladeofDebt/Slot-Cars | 1 | 6646916 | #pragma once
#include <map>
#include <string>
namespace aie { class Texture; }
// singleton to handle non-tilemap textures
class TextureManager
{
public:
static void Create();
static void Destroy();
static TextureManager* GetSingleton();
void LoadTexture(const std::string& _filePath);
void LoadTexture_NearestN... | c |
Frameworks/UnionSDK.framework/Headers/UnionAdManager+banner.h | LongYunGit/Upon | 0 | 6816115 | //
// UnionAdManager+banner.h
// UnionSDK
//
// Created by DHY on 2021/3/10.
//
#import <UnionSDK/UnionAdManager.h>
#import <UnionSDK/UnionBannerDelegate.h>
#import <UnionSDK/UnionBannerView.h>
NS_ASSUME_NONNULL_BEGIN
/// 设置Banner尺寸
extern NSString * const kUnionBannerExtraAdSizeKey;
/// 设置Banner是否采用动画切换:BOOL
ext... | c |
ios/chrome/browser/signin/constants.h | Wzzzx/chromium-crosswalk | 2 | 5216938 | // 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 IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_
#define IOS_CHROME_BROWSER_SIGNIN_CONSTANTS_H_
#include <Foundation/Foundation.h>
// Error domain for aut... | c |
AquaEngine/AquaEngine/core/DirectX/DxResourcesManager.h | mrev1l/Project_Aqua | 0 | 4127640 | #pragma once
#include "core\Helpers\Dx.h"
#include "core\Patterns\Singleton.h"
namespace aqua
{
class DxResourcesManager : public patterns::Singleton<DxResourcesManager>
{
public:
bool Initialize(const int _screenW, const int _screenH, const bool _vsync, HWND _hwnd,
const bool _fullscreen, const float _screenDepth... | c |
dynamic/main.c | mistotebe/examples | 1 | 2651920 | #include "header.h"
#include <stdio.h>
#include <dlfcn.h>
int hiddenfunc(int i)
{
if (i)
return i + hiddenfunc(i - 1);
else
return 0;
}
int func(int i)
{
printf("%d - ", i);
return hiddenfunc(i);
}
int main(int argc, char** argv)
{
char *error;
int (*extfunc)(int);
if (!argc)
return 2;
v... | c |
Pods/LKDBHelper+Transaction/FMDatabaseQueue+Database.h | Gaolili/FrameDemo | 1 | 2807469 | //
// FMDatabaseQueue+Database.h
// mvoice
//
// Created by yangjunhai on 14-7-12.
// Copyright (c) 2014年 soooner. All rights reserved.
//
#import "FMDatabaseQueue.h"
@interface FMDatabaseQueue (Database)
-(FMDatabase *)getDatabase;
@end | c |
WebServer.c | mattkobi789/miniWebServer | 0 | 2410030 | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
#include <ctype.h>
#include <sys/types.h>
#include <fcntl.h>
#define BACKLOG 10
#define MAX_THREADS 128
#de... | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.