text stringlengths 4 6.14k |
|---|
// Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#pragma once
#include "AutoFilterDescriptor.h"
namespace autowiring {
/// <summary>
/// A single subscription counter entry
/// </summary>
struct SatCounter:
AutoFilterDescriptor
{
SatCounter(void) = default;
SatCounter(const AutoFilterDescripto... |
/*
* Copyright [1999-2017] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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.o... |
#ifndef LAYER_H_INCLUDED
#define LAYER_H_INCLUDED
#include "basicresource.h"
#include "Drawable.h"
class Layer : public Drawable
{
private:
void transformation() override;
void onDraw() override;
void postDraw() override;
public:
Layer():
Drawable()
{
//
}
};
#endif // LAYER_H... |
/*
** Copyright (c) 2007, DNA Pty Ltd and contributors
**
** 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, mo... |
#import "RLDTableViewModelProtocol.h"
#pragma mark - RLDTableViewGenericEventHandler protocol
@protocol RLDTableViewGenericEventHandler <NSObject>
// Suitability checking
+ (BOOL)canHandleTableView:(UITableView *)tableView viewModel:(id<RLDTableViewReusableViewModel>)viewModel view:(UIView *)view;
// Collaborators
... |
/*
* Copyright (c) 2018 <Carlos Chacón>
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Yo... |
//
// DZYSquareCell.h
// budejie
//
// Created by dzy on 16/1/7.
// Copyright © 2016年 董震宇. All rights reserved.
//
#import <UIKit/UIKit.h>
@class DZYSquareModel;
@interface DZYSquareCell : UICollectionViewCell
/** 方块模型 */
@property (nonatomic, strong) DZYSquareModel *squareModel;
@end
|
// Copyright 2015 Thomas Trapp
//
// 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... |
/*_ generic.hpp Tue Jul 5 1988 Modified by: Walter Bright */
#ifndef __GENERIC_H
#define __GENERIC_H 1
/* Name concatenator functions */
#define name2(n1,n2) n1 ## n2
#define name3(n1,n2,n3) n1 ## n2 ## n3
#define name4(n1,n2,n3,n4) n1 ## n2 ## n3 ## n4
typedef int (*GPT) (int,char *);
extern int genericerro... |
/*
Copyright (c) 2012, William Magato
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... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "vm_strings.h"
#include <assert.h>
String *String_alloc(size_t length) {
String *p = (String *)calloc(1, sizeof(String) + (length+1) * sizeof(char));
p->length = length;
return p;
}
String *String_new(char *orig) {
String *s = String_alloc(strlen... |
#ifndef AOS_COMMON_STL_MUTEX_H_
#define AOS_COMMON_STL_MUTEX_H_
#include <mutex>
#include "aos/linux_code/ipc_lib/aos_sync.h"
#include "aos/common/logging/logging.h"
#include "aos/common/type_traits.h"
#include "aos/common/macros.h"
namespace aos {
// A mutex with the same API and semantics as ::std::mutex, with th... |
#pragma once
//-----------------------------------------------------------------------------------------------------
/*
NAMESPACE::CLASS
DESC
Copyright 2015 - See license file LICENSE.txt
*/
//-----------------------------------------------------------------------------------------------------
names... |
/*
* Software written by Jared Bruni https://github.com/lostjared
This software is dedicated to all the people that experience mental illness.
Website: http://lostsidedead.com
YouTube: http://youtube.com/LostSideDead
Instagram: http://instagram.com/lostsidedead
Twitter: http://twitter.com/jaredbruni
Faceboo... |
/*
* Copyright (c) 2013 Ambroz Bizjak
* 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 conditio... |
/* Copyright (c) Citrix Systems Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted provided
* that the following conditions are met:
*
* * Redistributions of source code must retain the above
* copyright notice, this list o... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/epoll.h>
#include <arpa/inet.h>
#define BUFF_SIZE 1024
int main(int argc, const char *argv[])
{
int i = 0;
char buff[BUFF_SIZE];
ssize_t msg_len = 0;
int srv_fd ... |
/*
* The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
*
* Find the sum of all the primes below two million.
*/
#include <stdio.h>
#include <stdint.h>
#include "euler.h"
#define PROBLEM 10
int
main(int argc, char **argv)
{
uint64_t sum = 0, number = 0;
do {
number++;
if(is_prime(numb... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2016 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... |
/*
* Copyright (c) 2016, Linaro Limited
* 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 conditi... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "UnrealEd.h"
#include "SoundMod.h"
DECLARE_LOG_CATEGORY_EXTERN(LogSoundModImporter, Verbose, All);
#include "SoundModImporterClasses.h"
|
/**
* @file
* @brief test for access of http://embox.googlecode.com/files/ext2_users.img
*
* @author Anton Kozlov
* @date 18.02.2013
*/
#include <stdint.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <security/smac/smac.h>
#include <fs/vfs.h>
#include <fs/fsop.h>
... |
/***** includes *****/
#include "lfds720_stack_np_internal.h"
/***** private prototypes *****/
static void lfds720_stack_np_internal_stack_np_validate( struct lfds720_stack_np_state *ss,
struct lfds720_misc_validation_info *vi,
... |
#ifndef FRC971_CONTROL_LOOPS_DRIVETRAIN_POLYDRIVETRAIN_H_
#define FRC971_CONTROL_LOOPS_DRIVETRAIN_POLYDRIVETRAIN_H_
#include "aos/common/controls/polytope.h"
#ifdef INCLUDE_971_INFRASTRUCTURE
#include "frc971/control_loops/drivetrain/drivetrain.q.h"
#endif //INCLUDE_971_INFRASTRUCTURE
#include "frc971/control_loops/s... |
/*
* cuda_common.h
*
* Created on: Jul 14, 2014
* Author: shu
*/
#pragma once
#include <cstdio>
#include <stdint.h>
#define CUDA_CHECK_RETURN(value) { \
cudaError_t _m_cudaStat = value; \
if (_m_cudaStat != cudaSuccess) { \
fprintf(stderr, "Error %s at line %d in file %s\n"... |
/* @LICENSE(MUSLC_MIT) */
#include "pthread_impl.h"
int pthread_detach(pthread_t t)
{
/* Cannot detach a thread that's already exiting */
if (a_swap(t->exitlock, 1))
return pthread_join(t, 0);
t->detached = 2;
__unlock(t->exitlock);
return 0;
}
|
/* Copyright (c) 2016-2017, Artem Kashkanov
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 and the fol... |
// Set color based on frequency and brightness
void setColor(int peak_index, int brightness) {
if (peak_index == 0) {
// signal was weak, turn lights off
red = 0;
green = 0;
blue = 0;
} else if (peak_index > 30) {
red = current_palette[29].red;
green = current_pal... |
/*******
*
* FILE INFO:
* project: RTP_lib
* file: Types.h
* started on: 03/26/03
* started by: Cedric Lacroix <lacroix_cedric@yahoo.com>
*
*
* TODO:
*
* BUGS:
*
* UPDATE INFO:
* updated on: 05/13/03
* updated by: Cedric Lacroix <lacroix_cedric@yahoo.com>
*
*******/
#ifndef TYPES_H
#define TYPES_H
#ifndef FALSE
#def... |
/* Copyright (c) 2013, Anthony Cornehl
* 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 cond... |
#ifndef _CONVOUTPUT_SPH_H_
#define _CONVOUTPUT_SPH_H_
/*
###################################################################################
#
# CDMlib - Cartesian Data Management library
#
# Copyright (c) 2013-2017 Advanced Institute for Computational Science (AICS), RIKEN.
# All rights reserved.
#
# Copyright (c) 20... |
// Copyright (c) 2012 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 UI_GFX_IMAGE_IMAGE_UTIL_H_
#define UI_GFX_IMAGE_IMAGE_UTIL_H_
#include <vector>
#include "base/basictypes.h"
#include "ui/gfx/gfx_export.h"
... |
/*
* Copyright (c) 2006, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* wrapper pow(x,y) return x**y
*/
#include "fdlibm.h"
#ifdef __STDC__
double pow(double x, double y) /* wrapper pow */
#else
double pow(x,y) /* wrapper... |
// Copyright (c) 2009 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_HTTP_HTTP_STREAM_PARSER_H_
#define NET_HTTP_HTTP_STREAM_PARSER_H_
#include <string>
#include "base/basictypes.h"
#include "net/base/io_b... |
/****************************************************************************
**
** BSD 3-Clause License
**
** Copyright (c) 2017, bitdewy
** All rights reserved.
**
****************************************************************************/
#pragma once
#include <QtCore/QMap>
#include <QtGui/QIcon>
... |
#include <lib.h>
#include <string.h>
/* lsearch(3) and lfind(3)
*
* Author: Terrence W. Holm Sep. 1988
*/
#include <stddef.h>
char *lsearch(key, base, count, width, keycmp)
char *key;
char *base;
unsigned *count;
unsigned width;
_PROTOTYPE( int (*keycmp), (const void *, const void *));
{
char *entry... |
/* $OpenBSD: limits.h,v 1.5 1998/03/22 21:15:24 millert Exp $ */
/* $NetBSD: limits.h,v 1.7 1996/01/05 18:10:57 pk Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt... |
///////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// This example code is from the book:
//
// Object-Oriented Programming with C++ and OSF/Motif
// by
// Douglas Young
// ... |
// RUN: %clang_builtins %s %librt -o %t && %run %t
//===-- ctzti2_test.c - Test __ctzti2 -------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for detail... |
/*
* from: FreeBSD: src/sys/tools/fw_stub.awk,v 1.6 2007/03/02 11:42:53 flz
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: releng/9.3/sys/dev/cxgb/cxgb_t3fw.c 189643 2009-03-10 19:22:45Z gnn $");
#include <sys/param.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/linker.h>
#incl... |
/* copyright(C) 2002 H.Kawai (under KL-01). */
#include <stdio.h>
#include <stdlib.h>
int GO_fputc(int c, GO_FILE *stream)
{
if (stream->p >= stream->p1)
abort();
*stream->p++ = c;
/* GOL_debuglog(1, &c); */
return (unsigned char) c;
}
|
// xml_do_read.h see license.txt for copyright and terms of use
#ifndef XML_DO_READ_H
#define XML_DO_READ_H
class TranslationUnit;
class StringTable;
TranslationUnit *xmlDoRead(StringTable &strTable, char const *inputFname);
#endif // XML_DO_READ_H
|
/*@author gihan tharanga*/
#include <iostream>
#include <string>
//video capturing methods
int videoCapturing();
int videoCapOriginal();
/*detect the faces display the frames and number of face*/
int FaceDetector(std::string&);
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__short_rand_postdec_07.c
Label Definition File: CWE191_Integer_Underflow.label.xml
Template File: sources-sinks-07.tmpl.c
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: rand Set data to result of rand()
* GoodSource: Set... |
#pragma once
#include "boxFilter.hpp"
class boxFilter_Separable_VHI_nonVec : public cp::BoxFilterBase
{
protected:
int ksize;
void filter_naive_impl() override;
void filter_omp_impl() override;
void operator()(const cv::Range& range) const override;
public:
boxFilter_Separable_VHI_nonVec(cv::Mat& _src, cv::Mat... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Whether to build xhprof as dynamic module */
#define COMPILE_DL_XHPROF 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <inttyp... |
/*
* ColorBasedROIExtractorRGB.h
*
* Created on: Dec 2, 2011
* Author: Pinaki Sunil Banerjee
*/
#ifndef BRICS_3D_COLORBASEDROIEXTRACTORRGB_H_
#define BRICS_3D_COLORBASEDROIEXTRACTORRGB_H_
#include "IFiltering.h"
#include <stdlib.h>
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <stdint.h>... |
// Copyright 2015 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
/*-
* Copyright (c) 2006 The FreeBSD Project
* 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... |
/*
* 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 following disclaimer.
* 2. Redistributions in bin... |
// 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_ASH_CROSTINI_CROSTINI_ENGAGEMENT_METRICS_SERVICE_H_
#define CHROME_BROWSER_ASH_CROSTINI_CROSTINI_ENGAGEMENT_METRICS_SERVICE_H_
#in... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import <UIKit/UIKit.h>
#import <ABI42_0_0React/ABI42_0_0RCTView.h>
@interface ABI42_0_0RCTMaskedView : ABI42_0_0RCTView
@end
|
#ifndef MTF_MC_RSCV_H
#define MTF_MC_RSCV_H
#include "RSCV.h"
_MTF_BEGIN_NAMESPACE
class MCRSCV : public RSCV{
public:
MCRSCV(const ParamType *rscv_params = nullptr);
};
_MTF_END_NAMESPACE
#endif |
#include <stdlib.h>
#include <stdio.h>
#include <utp.h>
#include <utp.c>
int test()
{
return -1;
}
int main(int argc, char ** argv)
{
if (argc != 2) {
fprintf(stderr, "usage: server <PORT>\n");
return EXIT_FAILURE;
}
int port = atoi(argv[1]);
printf("using port = %i\n", port);
... |
/*
* mplsred.h
*
* Copyright 2010 Daniel Mende <dmende@ernw.de>
*/
/*
* 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 ab... |
/* $OpenBSD: tls_server.c,v 1.4 2015/02/07 06:19:26 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice a... |
/*
Copyright (c) 2015, Kripasindhu Sarkar
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 and th... |
/*
Copyright (c) 2010 Anders Bakken
Copyright (c) 2010 Donald Carr
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 ... |
/*============================================================================
WCSLIB 7.6 - an implementation of the FITS WCS standard.
Copyright (C) 1995-2021, Mark Calabretta
This file is part of WCSLIB.
WCSLIB is free software: you can redistribute it and/or modify it under the
terms of the GNU Lesser Ge... |
extern zend_class_entry *ice_mvc_service_ce;
ZEPHIR_INIT_CLASS(Ice_Mvc_Service);
PHP_METHOD(Ice_Mvc_Service, setModel);
PHP_METHOD(Ice_Mvc_Service, getModel);
PHP_METHOD(Ice_Mvc_Service, __call);
ZEND_BEGIN_ARG_INFO_EX(arginfo_ice_mvc_service_setmodel, 0, 0, 1)
ZEND_ARG_INFO(0, model)
ZEND_END_ARG_INFO()
ZEND_BEG... |
/*
* Copyright 2004-2009, IM Kit Team. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _LOGGER_H
#define _LOGGER_H
void logmsg(const char* message, ...);
#endif // _LOGGER_H
|
#ifndef SSERVICE_LOGGER_H
#define SSERVICE_LOGGER_H
/******************************************************************************
"Copyright (c) 2015-2015, Intel Corporation
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the followi... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_GPU_TEST_VIDEO_PLAYER_TEST_VDA_VIDEO_DECODER_H_
#define MEDIA_GPU_TEST_VIDEO_PLAYER_TEST_VDA_VIDEO_DECODER_H_
#include <stdint.h>
#include ... |
//
// BenthosLibraryTableCell.h
// SeafloorExplore
//
// Modified from Brad Larson's Molecules Project in 2011-2012 for use in The SeafloorExplore Project
//
// Copyright (C) 2012 Matthew Johnson-Roberson
//
// See COPYING for license details
//
// Molecules
//
// The source code for Molecules is available und... |
/*
* Kit.h
*
* Created on: 21 Aug 2016
* Author: jeremy
*/
#ifndef SOURCE_DRUMKIT_KITS_KIT_H_
#define SOURCE_DRUMKIT_KITS_KIT_H_
#include "KitParameters.h"
#include "KitManager.h"
#include "../../Sound/SoundBank/SoundBank.h"
#include "../Instruments/Instrument.h"
#include "../Triggers/Triggers/Trigger.h"... |
/* ========================================================================= */
/* ------------------------------------------------------------------------- */
/*!
\file cmdtextfield.h
\date Dec 2011
\author TNick
\brief Contains the definition for CmdTextField class
*//*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004-2021 musikcube team
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redist... |
#ifndef REGRESS_H
#define REGRESS_H
/* Macro to shorten code where a number is added to the current value of an
* element in a matrix. */
#define addval(A, VAL, I, J) setval((A), (VAL) + val((A), (I), (J)), (I), (J))
typedef struct {
double **array;
int rows;
int cols;
} matrix;
void DestroyMatrix(matri... |
// 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 ASH_COMPONENTS_PHONEHUB_FAKE_NOTIFICATION_ACCESS_MANAGER_H_
#define ASH_COMPONENTS_PHONEHUB_FAKE_NOTIFICATION_ACCESS_MANAGER_H_
#include "ash/com... |
// 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 ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_
#define ASH_SYSTEM_AUDIO_TRAY_AUDIO_H_
#include "ash/system/audio/audio_observer.h"
#include "ash/system/tray/tray... |
//
// CEDestinySDK.h
// CEDestinySDK
//
// Created by Caleb Eades on 11/12/15.
// Copyright (c) 2015 Caleb Eades. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for CEDestinySDK.
FOUNDATION_EXPORT double CEDestinySDKVersionNumber;
//! Project version string for CEDestinySDK.
FOUNDATIO... |
#ifndef CTRL_PARTITION_H
#define CTRL_PARTITION_H
#include <wx/panel.h>
//#include <wx/sizer.h>
enum CTRL_STATE
{
S_IDLE,
S_LEFT_SLIDER,
S_RIGHT_SLIDER,
S_MOVE
};
class wxPartition : public wxPanel
{
static const int slider_width = 10;
int slider_left_pos;
int slider_right_p... |
#ifndef __KIDS_CONFIG_H_
#define __KIDS_CONFIG_H_
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#define NLIMIT_NORMAL 0
#define NLIMIT_NETWORKSTORE 1
#define NLIMIT_PUBSUB 2
struct LimitConfig {
int hard_limit_bytes;
int soft_limit_bytes;
int soft_limit_seconds;
};
struct StoreConfi... |
// Copyright 2010-2016, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... |
/* $NetBSD: proc.h,v 1.8 1996/11/25 22:09:11 gwr Exp $ */
/*
* Copyright (c) 1991, 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.... |
/*
* Copyright (c) 2006, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* ceil(x)
* Return x rounded toward -inf to integral value
* Method:
* Bit twiddling.
* Exception:
* Inexact flag raised if x not equal to ceil(x).
*/
#... |
#include <core/Runtime.h>
#include <stdlib.h>
#include <math.h>
int runtime_f32_mul(Stack stack)
{
Value* operand1 = NULL;
Value* operand2 = NULL;
pop_Value(stack, &operand2);
pop_Value(stack, &operand1);
if(isnan(operand1->value.f32) || isnan(operand2->value.f32)) {
push_Value(stack, new_... |
/*
* ctm-cvb
*
* CollapsedBayesEngine
*/
#ifndef COLLAPSED_BAYES_ENGINE_H
#define COLLAPSED_BAYES_ENGINE_H
#include "InferenceEngine.h"
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
namespace ctm
{
class CollapsedBayesEngine : public InferenceEngine
{
/***
* Model hyperpa... |
/*
* This file is part of the MIAMI framework. For copyright information, see
* the LICENSE file in the MIAMI root folder.
*/
/*
* File: TemplateExecutionUnit.h
* Author: Gabriel Marin, mgabi99@gmail.com
*
* Defines data structure to hold information about the use pattern of an
* execution unit type as part o... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_VIDEO_SUPPORTED_VIDEO_DECODER_CONFIG_H_
#define MEDIA_VIDEO_SUPPORTED_VIDEO_DECODER_CONFIG_H_
#include <vector>
#include "base/containers/... |
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "MockORKTask.h"
#import "MockTrackedDataStore.h"
#import "MockAppInfoDelegate.h"
#import "MockKeychainWrapper.h"
#import "BridgeSDKTestable.h"
|
#ifndef ENTRY_H
#define ENTRY_H
#include "Object.h"
#include "CompiledCode.h"
#include "String.h"
#define ENTRY_MAX_ARGS_SIZE 16
typedef struct {
_Bool isHandle;
union { Value value; Object *handle; };
} EntryArg;
typedef struct {
size_t size;
EntryArg values[ENTRY_MAX_ARGS_SIZE];
} EntryArgs;
Value invokeMeth... |
// Copyright (c) 2019 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 QUICHE_QUIC_QBONE_QBONE_CLIENT_INTERFACE_H_
#define QUICHE_QUIC_QBONE_QBONE_CLIENT_INTERFACE_H_
#include <cstdint>
#include "absl/strings/st... |
/**
* Copyright (c) 2019, Łukasz Marcin Podkalicki <lpodkalicki@gmail.com>
* ESP8266/005
* Blinky example using pure ESP8266 Non-OS SDK.
*/
#include "ets_sys.h"
#include "osapi.h"
#include "gpio.h"
#include "os_type.h"
#include "user_config.h"
#define LED_PIN (2)
static volatile os_timer_t blinky_timer;
static ... |
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
//
// text_recognizer.h
// STR
//
// Created by vampirewalk on 2015/4/14.
// Copyright (c) 2015年 mocacube. All rights reserved.
//
#ifndef __STR__text_recognizer__
#define __STR__text_recognizer__
#include <iostream>
#include <string>
#include <vector>
#include <opencv2/text.hpp>
#include <opencv2/core/utility.h... |
/*
* ArrayEntryType.h
*
* Created on: Nov 14, 2012
* Author: Mitchell Wills
*/
#ifndef ARRAYENTRYTYPE_H_
#define ARRAYENTRYTYPE_H_
#include <stdlib.h>
#include <stdio.h>
#ifndef _WRS_KERNEL
#include <stdint.h>
#endif
class ArrayEntryType;
#include "ArrayData.h"
#include "ComplexEntryTy... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_environment_w32_spawnv_61b.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-61b.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input from a... |
// Copyright 2021-present 650 Industries. All rights reserved.
#import <Foundation/Foundation.h>
#import <ABI44_0_0UMTaskManagerInterface/ABI44_0_0UMTaskConsumerInterface.h>
NS_ASSUME_NONNULL_BEGIN
@interface ABI44_0_0EXBackgroundRemoteNotificationConsumer : NSObject <ABI44_0_0UMTaskConsumerInterface>
@property (no... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE194_Unexpected_Sign_Extension__fgets_malloc_03.c
Label Definition File: CWE194_Unexpected_Sign_Extension.label.xml
Template File: sources-sink-03.tmpl.c
*/
/*
* @description
* CWE: 194 Unexpected Sign Extension
* BadSource: fgets Read data from the console usi... |
// Copyright (c) 2012 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_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_
#define CHROME_RENDERER_CHROME_RENDER_THREAD_OBSERVER_H_
#include <memory>
#include "base/c... |
/****************************************************************************/
/* */
/* Module: LegTrnaslationFuncs.h */
/* */
... |
#ifndef APPS_SFDL_HW_V_INP_GEN_HW_H_
#define APPS_SFDL_HW_V_INP_GEN_HW_H_
#include <libv/libv.h>
#include <common/utility.h>
#include <apps_sfdl_gen/fannkuch_v_inp_gen.h>
/*
* Provides the ability for user-defined input creation
*/
class fannkuchVerifierInpGenHw : public InputCreator {
public:
fannkuchVerifierI... |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_
#define ASH_COMMON_MATERIAL_DESIGN_MATERIAL_DESIGN_CONTROLLER_H_
#include "ash/ash_expor... |
// 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 CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_
#define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_
#include ... |
//===-- MainLoopBase.h ------------------------------------------*- 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
//
//===---------------------------... |
/*
* Copyright (C) 2007-2015 Frank Mertens.
*
* Use of this source is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#ifndef FLUXMETA_METAPROTOCOL_H
#define FLUXMETA_METAPROTOCOL_H
#include <flux/meta/MetaObject>
namespace flux {
namespace meta {
/** \brief Duck-typed object pro... |
/*
----------------------
BeDC License
----------------------
Copyright 2002, The BeDC team.
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 copy... |
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "native_client/src/include/portability_string.h"
#include "native_client/src/include/nacl_macros.h"
#include "native_client/src/i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.