text stringlengths 3.08k 22k |
|---|
/**************************************************************
*
* 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 y... |
/*
* Copyright (c) 2012-2018, Association Scientifique pour la Geologie et ses
* Applications (ASGA). 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 mus... |
#include "Game.hpp"
#include "Core.hpp"
#include "Entity.hpp"
#include "Vars.hpp"
struct Game Game;
void Game::Init() {
commands["echo"] = &_echo;
commands["quit"] = &_quit;
commands["clear"] = &_clear;
commands["showfps"] = &_showfps;
commands["showconsole"] = &_showconsole;
commands["printvars"] ... |
#include "viewer/primitives/simple_geometry.hh"
#include "viewer/window_3d.hh"
#include "geometry/visualization/put_stl.hh"
#include "planning/jet/jet_dynamics.hh"
#include "planning/jet/jet_planner.hh"
// #include "planning/jet/filter_sim.hh"
#include "planning/jet/jet_model.hh"
// TODO CLEANUP
#include "viewer/pr... |
/*
* Copyright 2017 MapD Technologies, 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 o... |
/*
* Copyright (C) 2020 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... |
/*
* Copyright 2017 MapD Technologies, 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 o... |
/**
* (C) Copyright 2020, 2021 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications or derivati... |
#include "HIDGamepad.h"
#include "HIDManager.h"
#include <kinc/input/gamepad.h>
#include <kinc/error.h>
#include <kinc/log.h>
#include <kinc/math/core.h>
namespace {
bool debugButtonInput = false;
void logButton(int buttonIndex, bool pressed) {
switch (buttonIndex) {
case 0:
kinc_log(KINC_LOG_LEVEL_INFO, "A ... |
/**
* Python wrappers for raisim.object using pybind11.
*
* Copyright (c) 2019, kangd (original C++), <NAME> <<EMAIL>> (Python wrappers)
*
* 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 Softwa... |
#include "modules/planning/open_space/coarse_trajectory_generator/hybrid_a_star.h"
#include "modules/planning/open_space/trajectory_smoother/distance_approach_problem.h"
#include "modules/planning/open_space/trajectory_smoother/dual_variable_warm_start_problem.h"
#include "cyber/common/file.h"
#include "matplotlibcpp.h... |
#include "VolumetricClouds.h"
#include "imgui/imgui.h"
#define INT_CEIL(n,d) (int)ceil((float)n/d)
float VolumetricClouds::cloudSpeed = 450.0;
float VolumetricClouds::coverage = 0.45;
float VolumetricClouds::crispiness = 40.;
float VolumetricClouds::curliness = .1;
float VolumetricClouds::density = 0.02;
float Volume... |
#include "config.h"
configuration::configuration(){
m_size[0]=5;
m_size[1]=48;
m_size[2]=48;
m_size[3]=48;
m_size[4]=50;
m_size[5]=48;
m_size[6]=6;
m_size[7]=48;
m_size[8]=48;
m_size[9]=48;
m_size[10]=48;
skip_last = 0; // skip capability
inConfig = false;
};
c... |
/*
* Copyright 2021 Omnisci, 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 t... |
#include "state.h"
#include <twix/twix.h>
#include <stdio.h>
static std::pair<long, bool> __get_proc_info(std::shared_ptr<queue_client> client,
twix_queue_entry *tqe)
{
if(tqe->buflen != sizeof(proc_info))
return R_S(-EINVAL);
struct proc_info pi = {
.pid = client->proc->pid,
.tid = client->thr->tid,
/* T... |
/*
* RealProgramParty.cpp
*
*/
#include "RealProgramParty.h"
#include "Register_inline.h"
#include "Tools/NetworkOptions.h"
#include "Math/Setup.h"
#include "RealGarbleWire.hpp"
#include "CommonParty.hpp"
#include "Register.hpp"
#include "ProgramParty.hpp"
#include "GC/Machine.hpp"
#include "GC/Processor.hpp"
#i... |
/**
* \file src/opr/impl/loop/output_recorder.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an... |
#include <bits/stdc++.h>
#include "GL/freeglut.h"
#include "GL/gl.h"
#include <GL/glu.h>
#include "../include/view.h"
#include "../include/SOIL.h"
using namespace std;
GLuint View::tex[] = {0, 0, 0};
void coords(int x, int y, double &xp, double &yp, double &zp) {
GLint viewport[4];
GLdouble modelview[16];
GLdoubl... |
/*
* proto rpc client
*
* @build make protorpc
* @server bin/protorpc_server 1234
* @client bin/protorpc_client 127.0.0.1 1234 add 1 2
*
*/
#include "TcpClient.h"
#include <mutex>
#include <condition_variable>
using namespace hv;
#include "protorpc.h"
#include "generated/base.pb.h"
#include "generated/ca... |
#include <iostream>
#include <sstream>
#include <vector>
using namespace std;
const string FREE_WORKER_LABEL = "Free";
const string WORKING_WORKER_LABEL = "Working";
const string SECCESSFUL_MESSAGE = "OK";
const string ADD_STAGE_COMMAND = "add_stage";
const string ADD_CAR_COMMAND ... |
/*
* ****** COPS v7 Emulator - Open Source ******
* Copyright (C) 2012 - 2014 <NAME>
*
* Please read the WARNING, DISCLAIMER and PATENTS
* sections in the LICENSE file.
*/
#include "item.h"
#include "monster.h"
#include "basefunc.h"
#include "world.h"
#include "database.h"
#include <algorithm> // min, max
#inclu... |
/* The MIT License
Copyright (C) 2012 <NAME> (<EMAIL>)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, mo... |
// Copyright 2019 - University of Strathclyde, King's College London and Schlumberger Ltd
// This source code is licensed under the BSD license found in the LICENSE file in the root directory of this source tree.
#include "Plan.h"
#include "RobustAnalyse.h"
#include "State.h"
#include "Validator.h"
#include "typecheck... |
// BEGIN_COPYRIGHT
/*------------------------------------------------------------------------------
* Code: Library that allows to create, train and evaluate
* various kinds of Associative Neural Networks.
* Author: <NAME>, 2003-2005
* name@domain, name=olexii, domain=mail.ru
* Copyri... |
// From https://github.com/chadaustin/Web-Benchmarks/blob/master/skinning_test_no_simd.cpp
// Modifications:
// 1. Run for a fixed # of iterations, so the total runtime is the benchmark
// 2. Not have so much stuff on the stack in main()
//
// compiled in cygwin with:
// g++ -Wall -O2 -o skinning_test_no_simd skinn... |
// RUN: %clang_cc1 -std=c++2a -verify %s -fcxx-exceptions
namespace std {
struct strong_ordering { // expected-note 6{{candidate}}
int n;
constexpr operator int() const { return n; }
static const strong_ordering less, equal, greater;
};
constexpr strong_ordering strong_ordering::less{-1},
stron... |
#include <vector>
#include <cmath>
#include <QCoreApplication>
#include <QPainter>
#include <QFile>
#include <QTextStream>
#include "spherecube.hpp"
#include "common.hpp"
#include "pdfplot.hpp"
/*
* Get land mass polygon data from buildin CSV file.
*/
const std::vector<std::vector<std::pair<double, double>>>& g... |
/*
* Copyright (c) 2017 Juniper Networks, Inc. All rights reserved.
*/
#include "base/os.h"
#include "testing/gunit.h"
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/if_ether.h>
#include <base/logging.h>
#include <io/event_manager.h>
#include <cmn/agent_cmn.h>
#include <oper/operdb_init.h>
#include ... |
/**
* 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... |
// -*- C++ -*-
//
// Package: Zanalyzer
// Class: Zanalyzer
//
/**\class Zanalyzer Zanalyzer.cc Zmonitoring/Zanalyzer/src/Zanalyzer.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Author: <NAME>
// Created: Wed May 11 14:53:26 CEST 2011
//
//
// ... |
#include "HLTMessages.h"
const char * kSubEventMap = "subevent map";
const char * kHLTjets = "uncorrected HLT jets";
const char * kHLTCorjets = "corrected HLT jets";
const char * kHLTCorL1L2L3jets = "corrected, L1L2L3, HLT jets";
const char * kRho ... |
using namespace RAPT;
void fillWithCheckerBoardPattern(rsImageF& image)
{
image.clear();
for(int x = 0; x < image.getWidth(); x++) {
for(int y = 0; y < image.getHeight(); y++) {
if( (x+y) % 2 == 0) // x+y even -> fill pixel
image(x, y) = 1;
}
}
}
void fillWithCross(rsImageF& image)
{
ima... |
#include "tagpainter.h"
// clang-format off
#include <AprilTags/TagDetector.h>
#include <AprilTags/Tag36h11.h>
#include <AprilTags/Tag36h9.h>
#include <AprilTags/Tag25h9.h>
#include <AprilTags/Tag25h7.h>
#include <AprilTags/Tag16h5.h>
// clang-format on
#include <stack>
#include <map>
static AprilTags::TagCodes tag_cod... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2009,2010,2014,2015,2017,2018, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromac... |
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifndef WIN32
#include <unistd.h>
#else
#include <io.h>
#endif
#include <dicom_.h>
#define PLAN_BIG_ENDIAN
// This class define a DI... |
/*
pxCore Copyright 2005-2018 <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 writing, software... |
#include <iostream>
#include <math.h>
#include "trick/Executive.hh"
#include "trick/exec_proto.hh"
#include "trick/memorymanager_c_intf.h"
#include "trick/TrickConstant.hh"
/**
@details
-# For each job in the sim_object
-# Assign the job's sim_object id to the parent object's id.
-# Assign the job's parent o... |
#include "mfem.hpp"
#include <iostream>
#include <fstream>
using namespace std;
using namespace mfem;
/** After spatial discretization, the resistive MHD model can be written as a
* system of ODEs:
* dPsi/dt = M^{-1}*F1,
* dw /dt = M^{-1}*F2,
* coupled with two linear systems
* j = -M^{-1}*(K-B)... |
#include "RTMA.h"
#include <vector>
#include <thread>
#include <chrono>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MT_TEST_MSG 1234
#define MT_PUBLISHER_READY 5677
#define MT_PUBLISHER_DONE 5678
#define MT_SUBSCRIBER_READY 5679
#define MT_SUBSCRIBER_DONE 5680
int subscriber_loop(int id, char... |
//
// AnimPoleVectorConstraint.cpp
//
// Created by <NAME> on 5/12/18.
// Copyright (c) 2018 High Fidelity, Inc. All rights reserved.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AnimPoleVectorConstrai... |
/*
Copyright (c) 2007 <NAME>. 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 require... |
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<queue>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=500010*2;
const int inf=2147483647;
class Splay_Data
{
public:
int key;
int fa,ch[2];
int size,... |
/*
793. Preimage Size of Factorial Zeroes Function
Let f(x) be the number of zeroes at the end of x!. (Recall that x! = 1 * 2 * 3 * ... * x, and by convention, 0! = 1.)
For example, f(3) = 0 because 3! = 6 has no zeroes at the end, while f(11) = 2 because 11! = 39916800 has 2 zeroes at the end.
Given K, find h... |
#include "Bodyparts.h"
#include "../Utils/Data/Logger.h"
#include "../Utils/Data/DataProvider.h"
#include "../Utils/Data/ArabicHelper.h"
#include "../Utils/Data/ArabicHelperForGames.h"
#include "../WatchmanScene/WatchmanScene.h"
#include "../AppMacros.h"
template<> const bool kukua::Game<Bodyparts>::USE_PHYSICS = fals... |
///////////////////////////////////////////////////////////////////////////////////////////////////
// Demo: CG-03-D.01D_BasicModeling (Ver 2.1) //
///////////////////////////////////////////////////////////////////////////////////////////////////
// system includ... |
#include "ImperatorWorld.h"
#include <ZipFile.h>
#include <filesystem>
#include <fstream>
#include "CommonRegexes.h"
#include "Configuration/Configuration.h"
#include "Date.h"
#include "GameVersion.h"
#include "Helpers/rakaly_wrapper.h"
#include "Log.h"
#include "OSCompatibilityLayer.h"
#include "ParserHelpers.h"
na... |
#include "graphics.h"
#include <math.h>
#include <string.h>
#include "../../freeimage241/source/freeimage.h"
#pragma warning(disable:4244)
static BBGraphics *src;
static BBColor src_key;
static void *src_pixels;
static int src_pitch,src_fmt,src_sz;
static BBColor readPixel( int x,int y ){
if( x<0 || x>=src->wid... |
/**
* Converts ascii hex firmware files with byte values
* into files with word values.
* It is required by femtosoc's RAM initialization, that
* is organized by words, and initialized using verilog's
* $readmemh().
*/
#include <iostream>
#include <fstream>
#include <cctype>
#include <map>
#include <string>
... |
/*
Generic joystick driver (C) 2017-2018
<EMAIL>
Git : https://github.com/DimitrisVlachos
*/
#include "generic_joy_driver.hpp"
//#include "../trace/trace.hpp"
template <typename T>
static inline void make_room(std::vector<T>& v,const size_t r) {
if ((v.size() > r))
return;
T tmp = T();
v.push_... |
// I2Cdev library collection - BMP085 I2C device class
// Based on register information stored in the I2Cdevlib internal database
// 2012-06-28 by <NAME> <<EMAIL>>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2012-06-28 - initial release, dynamically... |
/* Copyright 2020 Intel Corporation
*
* 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 ... |
/*
* FFNx - Complete OpenGL replacement of the Direct3D renderer used in
* the original ports of Final Fantasy VII and Final Fantasy VIII for the PC.
*
* 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 Softwar... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2008, The GROMACS development team.
* Copyright (c) 2013,2014,2015,2017,2018 by the GROMACS development team.
* Copyright (c) 2019,2020,2021, by the GROMA... |
#include "dc_decode_sprite.hh"
#include <phosg/Encoding.hh>
#include <stdexcept>
using namespace std;
struct InputFormat {
int16_t height;
int16_t width;
uint8_t bits_per_pixel; // actually bits per pixel - 1, but whatever
uint8_t unknown[2];
uint8_t generate_transparency_map;
uint8_t da... |
/*
* Copyright (c) 2016 <NAME>
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer... |
#include "StaticMesh.h"
#include "Hierarchy.h"
#include "Camera.h"
#include "HiveWE.h"
StaticMesh::StaticMesh(const fs::path& path) {
if (path.extension() != ".mdx" && path.extension() != ".MDX") {
throw;
}
BinaryReader reader = hierarchy.open_file(path);
this->path = path;
size_t vertices = 0;
size_t indi... |
/*
Test for extended numeric types.
Copyright 2020. <NAME>.
*/
#include "test.h"
#include <sstream>
#include <string>
#include <vector>
#include "extended.h"
using std::string;
using std::stringstream;
using std::vector;
void assert(bool predicate, const char* msg) {
if (!predicate) throw test_error(msg);
}
/**
*... |
/* Copyright (c) <2003-2016> <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 any purpose,
* includi... |
#include "oecakeLoader.h"
#include <stdio.h> //printf debugging
#include <stdlib.h>
btCompoundShape* shiftTransform(btCompoundShape* boxCompound,btScalar mass,btTransform& shift)
{
btTransform principal;
btVector3 principalInertia;
btScalar* masses = new btScalar[boxCompound->getNumChildShapes()];
f... |
/*
* Copyright (c) 2014-2016 - Adjacent Link LLC, Bridgewater, New Jersey
* 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 copy... |
#include "headers/n_gfUtilSpaceConstraint.h"
// Configure a input attribute.
#define INPUT_ATTR(FNATTR) \
FNATTR.setWritable(true); \
FNATTR.setReadable(true); \
FNATTR.setStorable(true); \
FNATTR.setKeyable(true); \
// Configure a input attribute.
#define OUTPUT_ATTR(FNATTR) \
F... |
#include <stdio.h>
#include <stdlib.h>
#include <quda_internal.h>
#include <color_spinor_field.h>
#include <blas_quda.h>
#include <host_utils.h>
#include <command_line_params.h>
#include <misc.h>
// include because of nasty globals used in the tests
#include <dslash_reference.h>
#include <dirac_quda.h>
#define MAX(... |
#include "core.hpp"
#include "Yaml.hpp"
#include <algorithm>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/trim.hpp>
#include <fstream>
#include <iostream>
#include <regex>
struct Stringify : public boost::static_visitor<std::string>
{
std::string operator()(const std::string& s) c... |
//=============================================================================
/**
* @file server.cpp
*
* $Id: server.cpp 93650 2011-03-28 08:44:53Z johnnyw $
*
* @author Source code used in TAO has been modified and adapted from the codeprovided in the book
* @author "Advanced CORBA Programming with C++... |
#include <Windows.h>
#include <zhelpers.hpp>
#include <fmt/format.h>
#include <fmt/printf.h>
#include <thread>
#include <vector>
#include <memory>
#include <gsl/gsl_assert>
#include <queue>
#include <random>
using namespace std::string_literals;
using namespace std::string_view_literals;
int gen_num(int a, int b)
{
... |
/*
* qtvterminal.cc
*
* Written 2003-2021 by <NAME> ⚧ Trans Liberation Now
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighboring rights to this software to the
* public domain worldwide. This software is distributed without any
* warranty.
*
* You shoul... |
#include "idmind_arms/idmind_arms.h"
IdmindArms::IdmindArms()
: n_("~"), serial_("/dev/idmind-armsboard", 115200, 5), time_constant_(11.2),
min_ticks_(100), max_ticks_(900), range_(150), mode_ON_(0x60), green_light_(false)
{
position_sub_ = n_.subscribe<std_msgs::UInt16MultiArray>("position", 100, &IdmindA... |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
/****************************************************************************
**
** This file is part of the LibreCAD project, a 2D CAD program
**
** Copyright (C) 2010 <NAME> (<EMAIL>)
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
**
**
** This file may be distributed and/or modified under the terms of t... |
#include "Normalization.h"
#include <string.h>
#include <math.h>
#include <float.h> // Lee: added
void Normalization::normalizeiris(Masek::filter *image, int xiris, int yiris, int riris,
int xpupil, int ypupil, int rpupil,
int radpixels, int angulardiv,
Masek::filter... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
// 文字
#include "Text.h"
#include "SkyBox.hpp"
#include "Fire.h"
#include "shader_m.h"
#include "camera.h"
#include "stb_image.h"
#include "filesystem.h"
#include <iostream... |
////////////////////////////////////////////////////////////////////////////////
// ExStandardShader.cpp
#include "StdAfx.h"
#include "BaArchive.h"
#include "ExMaterial.h"
#include "ExTextureList.h"
#include "ExScene.h"
#include "FCDAsset.h"
#include "FCDocument.h"
#include "FCDController.h"
#include "FCDEffect.h"
#in... |
/**
* This class implements a bridge between ROS hardware interfaces and a KUKA LBR IIWA Robot,
* using an IIWARos communication described in the iiwa_ros package.
*
* It is a porting of the work from the Centro E. Piaggio in Pisa : https://github.com/CentroEPiaggio/kuka-lwr
* for the LBR IIWA. We acknowledge the... |
/*
* Copyright 2011 Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#include <QDebug>
#include <string.h>
#include <unicode/ulocdata.h>
#include <unicod... |
/**
* Copyright 2015 <NAME>
*/
#include "GBitmap.h"
#include <png.h>
void GBitmap::setIsOpaque(IsOpaque io) {
switch (io) {
case kYes_IsOpaque: fIsOpaque = true; break;
case kNo_IsOpaque: fIsOpaque = false; break;
case kCompute_IsOpaque: this->computeIsOpaque(); break;
}
}
void G... |
/**
* \file PnlBrlyLegRec.cpp
* job handler for job PnlBrlyLegRec (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 11 Jan 2021
*/
// IP header --- ABOVE
#ifdef BRLYCMBD
#include <Brlycmbd.h>
#else
#include <Brlyd.h>
#endif
#include "PnlBrly... |
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<vector>
#include<cmath>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define lson (now<<1)
#define rson (lson|1)
const int maxN=70000;
const int Mod=998244353;
const int G=3;
... |
#include "muscle.h"
#include "tree.h"
#define TRACE 0
/***
Algorithm to compare two trees, X and Y.
A node x in X and node y in Y are defined to be
similar iff the set of leaves in the subtree under
x is identical to the set of leaves under y.
A node is defined to be dissimilar iff it is not
similar to... |
#include "RulerWidget.h"
#include "QtGlSliceView.h"
#include <Qt>
#include <QtOpenGL/qgl.h>
#include <QMouseEvent>
#include <QGuiApplication>
#include <cmath>
#include "itkMath.h"
bool operator< (std::unique_ptr< RulerToolMetaData > const& lhs, std::unique_ptr< RulerToolMetaData > const& rhs) {
return lhs->sortId ... |
/*
SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
SPDX-License-Identifier: BSD-3-Clause
*/
#include "AudacityDatabase.h"
#include <string>
#include <iostream>
#include <vector>
#include <charconv>
#include <locale>
#include <algorithm>
#include <boost/process.hpp>
#include <boost/filesystem.hpp>
#include <fmt/form... |
/**
* @copyright Copyright 2018 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable law... |
#include <cassert>
#include "chain.h"
#include <chrono>
#include "docopt.h"
#include "hash.h"
#include <iomanip>
#include <iostream>
#include <limits>
#include "param.h"
#include <random>
#include "streamhash.h"
#include <sstream>
#include <string>
#include <thread>
#include <tuple>
#include <unordered_map>
#include "u... |
#include "loki/search.h"
#include "loki/worker.h"
#include "baldr/rapidjson_utils.h"
#include "midgard/encoded.h"
#include "midgard/logging.h"
#include "midgard/pointll.h"
#include "tyr/actor.h"
#include <cmath>
using namespace valhalla;
using namespace valhalla::tyr;
using namespace valhalla::baldr;
using namespace... |
#include "Mesh.hpp"
#include "Logging.hpp"
#include "debug.hpp"
#include "OpenGLModel.hpp"
#include "BoxCollider.hpp"
// -- Constructors -------------------------------------------------------------
/**
* @brief Construct a new Mesh:: Mesh object
*
* @param openGLModel OpenGLModel master object
* @param sh Shader
... |
/*
This file is part of cpp-ethereum.
cpp-ethereum 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 the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... |
#include "pch.hpp"
#include "PoW.hpp"
#include <exception>
#include <limits>
#include <ranges>
#include <boost/bind/bind.hpp>
#include <boost/thread/thread.hpp>
#include "Chain.hpp"
#include "GetBlockMsg.hpp"
#include "HashChecker.hpp"
#include "Log.hpp"
#include "Mempool.hpp"
#include "MerkleTree.hpp"
#include "NetC... |
/*
VSTSoundConfigure.cpp
by <NAME>
© 2000, Steinberg Soft- und Hard GmbH, All Rights Reserved.
*/
#ifndef _VSTSOUND_CONFIGURE_H_
#include "VSTSoundConfigure.h"
#endif
#ifndef _VSTFILTER_H_
#include "VSTInstrument.h"
#endif
#include <Window.h>
#include <Messenger.h>
#include <MessageRunner.h>
#include <StringV... |
#include "ff_context.h"
#include <stdlib.h>
#include <sstream>
#include <cassert>
#include <cmath>
#include "hg.h"
#include "filelib.h"
#include "stringlib.h"
#include "sentence_metadata.h"
#include "lattice.h"
#include "fdict.h"
#include "verbose.h"
#include "tdict.h"
RuleContextFeatures::RuleContextFeatures(const ... |
/*
* WCSimUnitCell.hh
*
* Created on: 11 Aug 2014
* Author: aperch
*
* PMT rotation feature added on: 10 Dec 2015
* by <NAME>
*/
#pragma once
#include "WCSimPMTConfig.hh"
#include "WCSimGeometryEnums.hh"
#include "G4TwoVector.hh"
#include <vector>
/**
* \class WCSimPMTPlacement
* This class co... |
/* library based on jeelabs RTClib [original library at https://github.com/jcw/rtclib ] altered to support Microchip MCP7940M RTC, used in Arduino
based embedded environments. To use this library, add #include <MCP7940.h> to the top of your program.*/
#include <Wire.h>
#ifndef ENERGIA
#include <avr/pgmspace.h>
#else
... |
/*<NAME>
The evaluator implementation. Does the stuff.*/
#include "evaluator.h"
evaluator::evaluator(int debugMode, char** argv, int argc) {
globalScope = new lexeme(ENV);
if (debugMode) {
debug = true;
} else {
debug = false;
}
//Insert builtin functions.
string bId;
bId = string("PRINT");
globalScope->... |
#include <Automaton.h>
#include <CircularBuffer.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
/**
* LCD display.
*/
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
Atm_timer lcdTimer;
const int LCD_TIMER_MS = 500;
const String STR_DEFAULT = String("Enter morse code");
const S... |
#include <iostream>
#include <fstream>
#include <vector>
#include <zlib.h>
#include "CBSFile.h"
#pragma pack(push, 1)
typedef struct cbsHeader {
char magic[4];
uint32_t unk1;
uint32_t dataOffset;
uint32_t decompressedSize;
uint32_t compressedSize;
char name[32];
sceMcStDateTime created;
... |
#include <log4cxx/logger.h>
#include <KrisLibrary/Logger.h>
#include "Segment2D.h"
#include "geometry2d.h"
#include "clip.h"
#include "misc.h"
#include <math/misc.h>
#include <math/Interval.h>
#include "interpolate.h"
#include <iostream>
using namespace Math3D;
using namespace std;
bool Segment2D::Read(File& f)
{
if... |
#include "stdafx.h"
#include "SceneScroller.h"
#include "ComplexStuffEntity.h"
#include <time.h>
#include <dingus/gfx/gui/Gui.h>
#include <dingus/math/MathUtils.h>
// --------------------------------------------------------------------------
const float CSceneScroller::SCROLLER_DURATION = 60; // seconds
... |
// Copyright 2005 Mitsubishi Electric Research Laboratories All Rights Reserved.
// Permission to use, copy and modify this software and its documentation without
// fee for educational, research and non-profit purposes, is hereby granted, provided
// that the above copyright notice and the following three paragraphs ... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkIntersections.h"
#include "SkOpAngle.h"
#include "SkPathOpsCurve.h"
#include "SkTSort.h"
#if DEBUG_SORT || DEBUG_SORT_SINGLE
#include "SkOpSegment.h"
#endif
// FI... |
#include <cstring>
#include <chrono>
#include <iostream>
#include <math.h>
#include <numeric>
#include <fstream>
#include <time.h>
#include <string>
#include <iomanip>
#include "mkldnn.hpp"
#include <assert.h>
#include "configure.h"
using namespace mkldnn;
using namespace std;
void lstm()
{
auto cpu_engine = engi... |
/* Copyright 2019 The Spin-Scenario 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 applicable law or a... |
#include "heltech.hpp"
using namespace contech;
/**
* This program takes in a taskgraph file, and searches for data races in it based on the
* memory access patterns
*/
uint64_t racesReported = 0;
uint64_t memAccesses = 0;
int printVerbose = false;
int main(int argc, char const *argv[])
{
//input check
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.