text stringlengths 3.08k 12.5k |
|---|
/*
* Copyright (C) 2005-2007 <NAME>
* Copyright (C) 2001-2002 <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
* ... |
/* Copyright (c) <2003-2011> <<NAME>, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for an... |
#include "Gui/Controls.h"
#include "Debugging/Assert.h"
#include "Gui/Support.h"
#include "imgui.h"
#include "..\imgui\imgui_internal.h"
#include <algorithm>
bool yaget::gui::BufferingBar(const std::string& /*label*/, float /*value*/, const math3d::Vector2& /*size_arg*/, uint32_t /*bg_col*/, uint32_t /*fg_col*/)
{
... |
// <NAME>
// Randomized solution for genetics
// At each step, does any simplification (if possible) or
// if there isn't any, cuts and pastes randomly
#include <iostream>
#include <string>
#include <cstdio>
#include <cstdlib>
using namespace std;
string transform(string& s, int & arms, int& legs){
... |
/*-
* Copyright (c) 2010 <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 copyright
* notice, this list of co... |
#include "CheckboxComponent.h"
#include "Application.h"
#include "Globals.h"
#include"ModuleUI.h"
#include"ModuleInput.h"
#include "GameObject.h"
#include"MaterialComponent.h"
#include "Transform2DComponent.h"
#include "GL/glew.h"
#include "Profiling.h"
CheckboxComponent::CheckboxComponent(GameObject* own)
{
type... |
/**
* Definition of the Blackjack environment
*
*/
#include "Blackjack.h"
#include <time.h>
#include "Distribution.h"
#include "NormalDistribution.h"
#include "SingularDistribution.h"
Blackjack::Blackjack(RandomNumberGenerator* rng_, real win_value_,
real draw_value_, real loss_value_)
: win_v... |
#include "redAgent.h"
#include "mazeAlgorithm.h"
#include "matlab/generateMaze_emxAPI.h"
#include "matlab/generateMaze_emxutil.h"
#include "matlab/updateStartPosition.h"
#define NS LedsChat::RedAgent
NS::RedAgent(Maze & maze, const StartData & data)
: m_currentSolution(0), m_cpt(0)
{
setMaze(maze, data);
}
... |
#include "AMDiS.h"
using namespace std;
using namespace AMDiS;
// ===========================================================================
// ===== function definitions ================================================
// ===========================================================================
/// RHS function
... |
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <syslog.h>
#include <time.h>
#include <string.h>
#include <dirent.h>
#include <fstream>
#include <algorithm>
#i... |
#include <iostream>
#include "fbo.h"
#include <png.h>
bool alpha_save = true;
int image_width = 1024, image_height = 1024;
GLuint framebuffer;
GLuint status;
void ExternalRenderer::setImageWidth(int width) {
image_width = width;
}
void ExternalRenderer::setImageHeight(int height) {
image_height = height;
}
voi... |
/*
* Copyright (C) 2005-2011, <NAME>.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/**
Send a binary file to the ... |
// This file is part of The New Aspell
// Copyright (C) 2002,2011 by <NAME> under the GNU LGPL license
// version 2.0 or 2.1. You should have received a copy of the LGPL
// license along with this library if you did not you can find
// it at http://www.gnu.org/.
#include <assert.h>
#include "checker_string.hpp"
#inc... |
#include <cstdio>
#include <iostream>
const int MAX_N = 500050;
namespace DSU {
int fa[MAX_N];
int find(int x);
} // namespace DSU
namespace Tree {
struct Node {
int ch[2]; // child
int v; // value
int f; // parent node
int s; // size
} tree[MAX_N];
int root[MAX_N];
int tot;
vo... |
#include <boost/property_tree/json_parser.hpp>
#include <fstream>
#include <iostream>
#include <nano/lib/jsonconfig.hpp>
#include <nano/lib/utility.hpp>
#include <nano/nano_node/daemon.hpp>
#include <nano/node/ipc.hpp>
#include <nano/node/working.hpp>
nano_daemon::daemon_config::daemon_config () :
rpc_enable (false),
... |
#include "blocks/FigureInfo.h"
#include "blocks/BrickInfo.h"
#include "blocks/CommonUtils.h"
#include "blocks/WallInfo.h"
#include "SixCatsLogger.h"
#include "SixCatsLoggerMacro.h"
#include <sstream>
USING_NS_CC;
using namespace std;
using namespace blocks;
static const float iterationDuration = 0.7;
static const f... |
#include "spline.h"
v_Spline::v_Spline(const ViewBody &body, RGBA curve_color, RGBA background_color, double mag_radius) :
v_Highlighter(body),
dots({
new v_Magnetic({{0, 0}, {0, body.size.y()}}, {{0, body.size.y()}, PX_SPLINE_DOT}, PX_SPLINE_MAG_RAD),
new v_Magnetic({{body.size.x(), 0}, {0, body.size.y()}}, ... |
/*
https://practice.geeksforgeeks.org/problems/egg-dropping-puzzle-1587115620/1
https://www.geeksforgeeks.org/egg-dropping-puzzle-dp-11/
Egg Dropping Puzzle
Medium Accuracy: 54.38% Submissions: 30023 Points: 4
You are given N identical eggs and you have access to a K-floored building from 1 to K.
There exists a floor... |
//
// state.cpp
// duplex
//
// Created by <NAME> on 4/23/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#include "state.h"
#include <iostream>
#include <random>
#include <sstream>
using namespace std;
State::State(int _parameterDimension, int _objectiveDimension) {
parameterDimension = _parameterDim... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAME>.... |
//===- BuildCallGraph.cpp --------------------------------------*- C++ --*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT in the LLVM repository for details.
//
//===-------------------------------... |
#include "NDNS.h"
#include "SDLAudioManager.h"
#include "DirectConn.h"
#include "Settings.h"
#include "SettingsFields.h"
int main(int, char **)
{
NDNS::Get().Start();
}
NDNS::NDNS()
{
}
NDNS &NDNS::Get()
{
static NDNS inst;
return inst;
}
void NDNS::Start()
{
initscr();
settingsWindow = UIWind... |
// Copyright (c) 2011 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.
#include "base/rand_util.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <limits>
#include <memory>
#include "base/logging... |
// Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Signer.h"
#include "HexCoding.h"
#include <google... |
/****************************************************************************
*
* Copyright (c) 2020 Vivante Corporation
*
* 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 ... |
// Boost.Geometry Index
// Additional tests
// Copyright (c) 2011-2015 <NAME>, <NAME>.
// Use, modification and distribution is subject to 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)
#include <iostream>
#include <vector>
#incl... |
/*
* Copyright (c) 2015, 2016, 2017, 2018, Intel Corporation
*
* 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... |
/****************************************************************************
* Copyright (c) 2021, CEA
* 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 retai... |
/******************************************************************************
*
* Project: TIGER/Line Translator
* Purpose: Implements TigerPolygonCorrections, providing access to .RTB files.
* Author: <NAME>, <EMAIL>
*
******************************************************************************
* Copyri... |
/**
* @file bug601.cpp regression case for bug 601 ("COM_CHANGE_USER fails with correct user/pwd if executed
* during authentication")
* - configure Maxscale.cnf to use only one thread
* - in 100 parallel threads start to open/close session
* - do change_user 2000 times
* - check all change_user are ok
* - check... |
#include <rendering/Texture.h>
// Texture typestrings
std::string textureTypeStrings[] = {
"texture_diffuse",
"texture_specular",
"texture_emmision",
"texture_normal",
"texture_height"};
TEXTURE_TEMPLATES get_tex_template(int i)
{
return (static_cast<TEXTURE_TEMPLATES>(i));
}
// Path to the t... |
#include <CSVGCircle.h>
#include <CSVG.h>
#include <CSVGLog.h>
/* Attributes:
<Core>
<Conditional>
<Style>
<Paint>
<Color>
<Opacity>
<Graphics>
<Clip>
<Mask>
<Filter>
<GraphicalEvents>
<Cursor>
<External>
cx <Coordinate>
cy <Coordinate>
r ... |
#include "../include/ceras.hpp"
#include "../include/utils/range.hpp"
#include "../include/utils/better_assert.hpp"
#include "../include/utils/color.hpp"
#include <fstream>
#include <string>
#include <vector>
#include <cstddef>
#include <cstdint>
#include <iterator>
// image: [u32, u32, u32, u32, uint8, uint8 .... ]
... |
/* Authors: <NAME>, <NAME>
* Description: This pin tools creates a trace of dynamic branches.
*/
#include <cassert>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <unistd.h>
#include <unordered_map>
#include <vector>
#include <memory>
#include "control_manager.H"
#include "instl... |
/*
* Copyright (c) 2018 <copyright holder> <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, modi... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)2017-2022, WWIV Software Services */
/* ... |
#pragma once
#include <cstddef>
#include <functional>
#include <memory>
#include <tuple>
#include <vector>
#include "decoding.hpp"
#include "error.hpp"
struct syz_CustomStreamDef;
namespace synthizer {
/**
* Byte streaming functionality, to abstract over file and otherI/O.
*
* Note that this infrastructure uses... |
//===- test.cpp -------------------------------------------------*- C++ -*-===//
//
// This file is licensed 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
//
// (c) Copyright 2020 Xilinx Inc.
//... |
/*
* Copyright (C) 2017 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
//
// Created by raver119 on 11.10.2017.
//
// This "set of tests" is special one - we don't check ops results here. we just check for memory equality BEFORE op launch and AFTER op launch
//
//
#include "testlayers.h"
#include <vector>
#include <ops/declarable/CustomOperations.h>
#include <ops/declarable/OpTuple.h>
#in... |
#include<stdio.h>
#include "face_recognization.h"
#include "dlib/image_processing/frontal_face_detector.h"
#include "dlib/image_processing.h"
#include "dlib/image_io.h"
using namespace dlib;
int image2rgbbinary(const char *imagepath, rectangle &re, int *w, int *h)
{
/*-------------------------------------将图片转换为rgb平面... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may n... |
//
// serialForest.cpp
// Forest
//
// Created by <NAME>
// Copyright © 2020 <NAME>. All rights reserved.
//
// Forest - a green cellular automata
//
// Forest rules:
// 1. A burning tree turns into an empty cell.
// 2. A non-burning tree with one burning neighbour turns into a burning tree.
// 3. A tree ig... |
/*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
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, me... |
// STL includes
#include <cstring>
#include <iostream>
// Qt includes
#include <QTimer>
// Local Hyperion includes
#include "ProviderHID.h"
ProviderHID::ProviderHID()
: _VendorId(0)
, _ProductId(0)
, _useFeature(false)
, _deviceHandle(nullptr)
, _delayAfterConnect_ms (0)
, _blockedForDelay(false)
{
... |
#include "lab_m1/lab1/lab1.h"
#include <vector>
#include <iostream>
using namespace std;
using namespace m1;
/*
* To find out more about `FrameStart`, `Update`, `FrameEnd`
* and the order in which they are called, see `world.cpp`.
*/
Lab1::Lab1()
{
// TODO(student): Never forget to initialize class variabl... |
// Copyright (c) 2020 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/resiliency/config.hpp>
#include <hpx/assert.hpp>
#include <hpx/asy... |
//
// 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 following disclaimer.
// * Redistributions in bin... |
#ifndef RUNTIME_INCLUDE_SYCL_SYCL_HPP_
#define RUNTIME_INCLUDE_SYCL_SYCL_HPP_
#include <CL/sycl.hpp>
namespace sycl = cl::sycl;
#endif // RUNTIME_INCLUDE_SYCL_SYCL_HPP_
// See maxangle.go for more details.
template <typename dataT>
class adddmibulk_kernel {
public:
using read_accessor =
sycl::accessor<dat... |
/*
* This file is part of the CMaNGOS Project. See AUTHORS file for Copyright information
*
* 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 o... |
/*******************************************************************\
Module: String solver
Author: <NAME>.
\*******************************************************************/
#include "string_refinement_util.h"
#include "string_format_builtin_function.h"
#include <algorithm>
#include <functional>
#include <iostr... |
/*
* Copyright 2019 Xilinx, 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 applicable law or agreed to... |
#include <particle_simulator.hpp>
class FPGrav{
public:
PS::F64 mass;
PS::F64vec pos;
PS::F64vec vel;
PS::F64vec acc;
PS::F64 pot;
PS::F64vec vel2;
static PS::F64 eps;
PS::F64vec getPos() const {
return pos;
}
PS::F64 getCharge() const {
return mass;... |
///////////////////////////////////////////////////////////////
// //
// EncodingTable.cpp //
// HaselLoyance 2018-2019, Unlicense //
// https://github.com/HaselLoyance/criware-tools //
... |
// Las palabras que empiezan por # se llaman directivas e indican información para el proceso de compilado
// Por ejemplo #include añade un fichero dentro de otro
// Aqui se utilizan otras:
// #define SIM hacemos que el símbolo SIM exista
// #if / #elif / #else / #end funciona como un if/else if/else/} pero para el pro... |
/* -*-mode:c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#include <sys/socket.h>
#include <netinet/in.h>
#include <linux/netfilter_ipv4.h>
#include "socket.hh"
#include "util/exception.hh"
using namespace std;
/* default constructor for socket of (subclassed) domain and type */
Socket::Socket( ... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <vector>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool neg=c=='-';
neg?c... |
/*!
LTC2640: Single 12-/10-/8-Bit Rail-to-Rail DACs with 10ppm/C Reference.
LTC2630: Single 12-/10-/8-Bit Rail-to-Rail DACs with Integrated Reference in SC70.
@verbatim
The LTC2640 is a family of 12-, 10-, and 8-bit voltage-output DACs with an
integrated, high-accuracy, low-drift reference in an 8-lead TSOT-23... |
/* Copyright 2013-2021 <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 ... |
/*
Copyright (c) 2012 <NAME>, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and th... |
/*
GHexominoSubdivisionTiler.cpp
<NAME>
11/12/2007
*/
#include <iostream>
using namespace std;
#include "GHexominoSubdivisionTiler.hpp"
#include "GHexomino.hpp"
#include "Random.hpp"
#include "Exception.hpp"
#include <math.h>
GHexominoSubdivisionTiler::GHexominoSubdivisionTiler(void) : _grid_height(27), _gr... |
//=============================================================================
/**
* @file Default_Servant.cpp
*
* $Id: Default_Servant.cpp 93650 2011-03-28 08:44:53Z johnnyw $
*
* This program tests the behavior of POA::id_to_servant() and
* POA::reference_to_servant() with the use of default servant... |
// (C) Copyright <NAME>, 2021.
// Distributed under MIT license, available at
// https://opensource.org/licenses/MIT.
#include "Universe.hpp"
#include <cmath>
#include <exception>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include ... |
/*
* Copyright 2012, Samsung Electronics Co. LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
// Copyright 1996-2018 Cyberbotics Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
/***
** Program name: Coastal class
** Author: <NAME>
** Date: 12/10/2020
** Description: Child of Space class. Parent of Subtropical class.
** Inherits everything from space.
** Implements its own versions of takePhotos() and greeting().
** Adds me... |
#include "Heightmap.hpp"
#include <iterator>
#include <algorithm>
#include <coconut-tools/utils/Range.hpp>
#include "coconut/milk/graphics/ImageLoader.hpp"
#include "coconut/milk/utils/integralValue.hpp"
using namespace coconut;
using namespace coconut::pulp;
using namespace coconut::pulp::world;
namespace /* anon... |
/**
@author <NAME> <<EMAIL>>
@brief This file implements a basic tool for training a linear regression model. The dataset used to train the model can be in two formats, (1) a GRT RegressionData formatted file or (2)
a CSV formatted file. If the data is formatted as a CSV file then it should be formatted as follows:... |
/****************************************
* Universita' degli Studi di Udine *
* Ingegneria Elettronica *
* T<NAME> *
* <NAME> - 133047 *
* File: ServerAMQP.cpp *
****************************************/
/* Licence inherited from the use of the open source ... |
/**
* @file
*/
#include "MNRLAdapter.h"
#include <iostream>
using namespace std;
using namespace MNRL;
static string convertStart(MNRLDefs::EnableType st) {
switch(st) {
case MNRLDefs::EnableType::ENABLE_ALWAYS:
return "all-input";
case MNRLDefs::EnableType::ENABLE_ON_AC... |
//
// Created by david on 2020-03-28.
//
#include <config/enums.h>
#include <h5pp/h5pp.h>
#include <tools/common/io.h>
#include <tools/common/log.h>
std::string tools::common::io::h5resume::extract_state_name(const std::string &state_prefix) {
std::string_view state_pattern = "state_";
std::string ... |
#include "GameOverScene.h"
#include "GameScene.h"
#include "HelloWorldScene.h"
#include "Config.h"
#include "HighScene.h"
#include "sqlite3.h"
USING_NS_CC;
cocos2d::PhysicsWorld* m_world;
void setPhyWorld(cocos2d::PhysicsWorld* world){m_world = world;}
Scene* GameOver::createScene()
{
// 'scene' is an autorelease... |
/*
Copyright (C) 2022 The Falco Authors.
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, s... |
#include "Primitive.hpp"
#include <iostream>
Primitive::~Primitive()
{
}
Sphere::~Sphere()
{
}
bool Sphere::intersect(const Ray &ray, Intersection &intersection) const
{
NonhierSphere sphere(glm::vec3(0.0, 0.0, 0.0), 1.0);
return sphere.intersect(ray, intersection);
}
Cube::~Cube()
{
}
bool Cube::intersect... |
#include "Method.h"
#include "../Error Handler/error_handler.h"
#include "../AST/Object/Variable.h"
#include "../AST/Object/Procedure.h"
#include "../AST/Object/ArrayInitializer.h"
extern errorHandler error_handler;
bool Method::compare_status = true;
Method::Method(queue<string>&modifiers, string return_type, string... |
/*
* 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 later version.
*
* This program is distributed in the hope that it will be use... |
/****************************************************************************
*
* Copyright (c) 2018-19 PX4 Development 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. Redis... |
/*
Copyright 2013-present Barefoot Networks, 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 applicable law or agreed to in w... |
/************************************************************************
* Derived from the BSD3-licensed
* LAPACK routine (version 3.7.0) --
* Univ. of Tennessee, Univ. of California Berkeley,
* Univ. of Colorado Denver and NAG Ltd..
* April 2012
* Copyright (c) 2019-2021 Advanced Micro Devices, Inc... |
/** Copyright (c) 2014, EtlamGit */
#include <QDebug>
#include <assert.h>
#include "./entityidentifier.h"
#include "./json.h"
EntityInfo::EntityInfo(QString name, QString category, QColor brushColor,
QColor penColor) : name(name), category(category),
brushColor(brushColor), penColor(penColor) ... |
// From: https://github.com/gumb0/wol.cpp
/* **************************************************
* wol.cpp - Simple Wake-On-LAN utility to wake a networked PC.
* Usage: wol [-q] [-b <bcast>] [-p <port>] <dest>
* Compile it with: g++ -Wall -Os -DNDEBUG -std=c++11 -o wol wol.cpp
*
* **********************************... |
/*
* Created by <NAME> on 19/06/16.
* Copyright (c) 2003-2020 <NAME> <<EMAIL>>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
... |
#include "hypoproject.h"
Project::Project(HypoMain *main)
{
mainwin = main;
mod = NULL;
protag = "";
path = "";
tagset = mainwin->tagset;
}
void Project::Init(wxString tag, Model *model)
{
wxString text;
if(!model) mod = mainwin->mod;
else mod = model;
protag = tag;
path = mod->GetPath() + "/Projects... |
//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include "RotatingProgressBar.h"
#include <vgui/IVGU... |
/*
* Image.cpp
*
* Created on: Jul 15, 2013
* Author: jpdavid
*/
#include "Image.h"
#include "stdio.h"
#include "io.h"
#include "system.h"
Image::Image() {
// TODO Auto-generated constructor stub
source_array = 0;
length = 0;
height = 0;
}
Image::Image(int new_length, int new_he... |
/*
Programa en el que he implementado la clase cuadrado definida por
las coordenadas x e y del vértice inferior izquierdo y la longitud
del lado. He creado varios métodos de clase para obtener informaci�n
sobre el cuadrado (área, perímetro, longitud de la diagonal y
distancia al centro), para comparar caracte... |
/*ckwg +29
* Copyright 2014-2017 by Kitware, 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 li... |
//
// Created by muhammed on 04/04/18.
//
#include "Scanner.h"
void Scanner::terminal_output(string& rules_file, string& input_file, string& grammer_file) {
string output = run(rules_file,input_file,grammer_file);
cout << output;
}
void Scanner::file_output(string& rules_file, string& input_file, string& o... |
/**********************************************************\
Original Author: <NAME> (taxilian)
Created: Dec 3, 2009
License: Dual license model; choose one of two:
New BSD License
http://www.opensource.org/licenses/bsd-license.php
- or -
GNU Lesser General Public ... |
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
smt_decl_collector.cpp
Abstract:
Collect uninterpreted func_delcs and sorts.
This class was originally in ast_smt_pp.h
Author:
Leonardo (leonardo) 2011-10-04
Revision History:
--*/
#include "ast/decl_collector.h"
#include "ast/ast_pp.h"
... |
//g++-5 --std=c++11 -Wall -g -o algo_dc_search_2D_matrix_i_ii algo_dc_search_2D_matrix_i_ii.cc
/**
* @file Search a 2D Matrix
* @brief In an increasing matrix, find a target
*/
#include <iostream> /* std::cout */
#include <iomanip> /* std::setw */
#include ... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/test/chromedriver/chrome/ui_ev... |
#include "Particle.h"
#include "cinder/gl/gl.h"
#include "cinder/app/App.h"
#include "ParticleEmitter.h"
#include <SimpleGUI.h>
#define DEG_TO_RAD( x ) ( ( x ) * 0.017453292519943295769236907684886f )
#define LUMINANCE( r, g, b ) ( 0.299f * ( r ) + 0.587f * ( g ) + 0.114f * ( b ) )
float Particle::s_maxRadius ... |
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#define termios asmtermios
#include <asm/termios.h>
#undef termios
#include <termios.h>
#include <rt/rt_interface_lcm.h>
#include <rt/rt_sb... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <primitives/transaction.h>
#include <hash.h>
#include <util.h>
#include <base58.h... |
/**
* Copyright (C) 2020-2022 Xilinx, Inc
* Copyright (C) 2022 Advanced Micro Devices, Inc. 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://www.apache.... |
#include "CutsIsolatorWithCorrection.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
using namespace muonisolation;
CutsIsolatorWithCorrection::CutsIsolatorWithCorrection(const edm::ParameterSet& par, edm::ConsumesCollector&& iC)
: theCuts(par.getPara... |
#include "MpiTestFixture.hpp"
#include <cmath>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <regex>
int* testingResources::MpiTestFixture::argc;
char*** testingResources::MpiTestFixture::argv;
const std::string testingResources::MpiTestFixture::InTestRunFlag = "--runMpiTestDirectly=true";
const... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.