text stringlengths 5.71k 33.7k |
|---|
/*
* Copyright (C) 2009-2010, <NAME> <<EMAIL>>
* Copyright (C) 2017-2019, <NAME> <<EMAIL>>
* Copyright (C) 2017, <NAME> <<EMAIL>>
* Copyright (C) 2018, 2020, <NAME> <<EMAIL>>
* Copyright (C) 2019, <NAME> <<EMAIL>>
* Copyright (C) 2020, <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it ... |
#include <string>
#include <unordered_map>
#include <unordered_set>
#include "gtest/gtest.h"
#include "common/symbols.h"
#include "common/goal_constants.h"
#include "game/kernel/fileio.h"
#include "game/kernel/kboot.h"
#include "game/kernel/kprint.h"
#include "game/kernel/kdsnetm.h"
#include "game/kernel/kscheme.h"
#in... |
/*-------------------------------------------------------------------------
*
* parse_node.c
* various routines that make nodes for querytrees
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
... |
// -*- C++ -*-
//
// Package: HiJetMatchAnalyzer
// Class: HiJetMatchAnalyzer
//
/**\class HiJetMatchAnalyzer HiJetMatchAnalyzer.cc CmsHi/HiJetMatchAnalyzer/src/HiJetMatchAnalyzer.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Author: <NAME>
// ... |
// Copyright 2019 The Fuchsia 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 "lcd.h"
#include <ddk/debug.h>
#include <ddktl/device.h>
#include <lib/mipi-dsi/mipi-dsi.h>
#include "common.h"
#define DELAY_CMD (0xFF)
#define ... |
#include "stackMath.h"
#include "stackMathGlob.h"
void stackMath(void) {
textViewClearAll();
textViewSetCCTitle("Stack Math");
textViewStatusUpdate();
textViewLinefeed();
textViewRender();
keyControl();
const byte stackSize = 16;
char key;
bool doRedraw = true, useRads = false;
DoubleStack stack;
... |
//----------------------------------------------------------------------------
/** @file GoSafetyUtil.cpp
See GoSafetyUtil.h.
*/
//----------------------------------------------------------------------------
#include "SgSystem.h"
#include "GoSafetyUtil.h"
#include "GoBlock.h"
#include "GoBoard.h"
#include "GoBoar... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 app... |
/****************************************************************************/
/// @file MSLaneChangerSublane.cpp
/// @author <NAME>
/// @date Oct 2015
/// @version $Id$
///
// Performs sub-lane changing of vehicles
/****************************************************************************/
// SUMO, Simulatio... |
#include <sandshark_common/main.h>
#include <sandshark_common/task_base.h>
#include <sandshark_msgs/Navigation.h>
#include <sandshark_msgs/MavlinkObjectiveCommand.h>
#include <sandshark_msgs/DynamicControlCommand.h>
#include <sandshark_msgs/ObjectiveCommand.h>
#include <ros/ros.h>
#define MAVLINK_ALIGNED_FIELDS fals... |
// Member functions for TileManager.h
/* IIP Server: Tile Cache Handler
Copyright (C) 2005-2014 <NAME>.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the Li... |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* 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 app... |
/***********************************************************************************************************************
* *
* libscopeprotocols ... |
#define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING // vtk only targets C++11, so disable this iterator warning
#define WIN32_LEAN_AND_MEAN
#include <Windows.h> // to eliminate warning C4005: 'APIENTRY' : macro redefinition, glad.h should be included after Windows.h
// use Adobe spectrum ImGUI fork
#incl... |
/*
* Logical Inferencing Engine (LIE)
* Copyright (c) <NAME>, et al, see License.md
*/
#include "../parallel_RA_inc.h"
//#include <experimental/filesystem>
void LIE::add_relation(relation* rel)
{
lie_relations[lie_relation_count] = rel;
lie_relation_count++;
}
void LIE::add_scc(RAM* ra)
{
lie_sccs[... |
// This Demo was written by <NAME>. Nov 2008.
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include "chipmunk.h"
#include "drawSpace.h"
#include "ChipmunkDemo.h"
#define WIDTH 600
#define HEIGHT 400
#define SINGMAX 10 // Maximum number of singularities per body
#def... |
/*
* Adapted from OpenColorIO with this license:
*
* Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al.
* 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... |
/*
Copyright (c) 2019-2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sub... |
// Karatsuba multiplication <NAME>, 2019
/**************************************************************************
* Copyright (C) 2019, Codemist. <NAME> *
* *
* Redistribution and ... |
#include "../gtest.h"
#include <list>
#include "util/piecewise.hpp"
#include "util/rangeutil.hpp"
using namespace arb;
using util::pw_elements;
using util::pw_element;
using util::pw_npos;
TEST(piecewise, eq) {
pw_elements<int> p1((double[3]){1., 1.5, 2.}, (int[2]){3, 4});
pw_elements<int> p2(p1);
EXPEC... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2010 University of Washington
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This pro... |
#include "dBiz.hpp"
#include "dsp/digital.hpp"
struct SmiX : Module {
enum ParamIds
{
FALL_RANGE_PARAM,
CLOCK_PARAM,
OUT_A_ATT_PARAM,
OUT_C_ATT_PARAM,
MODE_BUTTON_PARAM,
DIR_BUTTON_PARAM,
MIX_SEL_PARAM,
VOL_PARAM = MIX_SEL_PARAM + 8,
NUM_PARAMS = VOL_PARAM + 8
};
enum InputIds
{
CLOCK_INPUT... |
/* Copyright 2017-2018 CNRS-AIST JRL and CNRS-UM LIRMM
*
* 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 foll... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... |
int Igd,Xms
, T ,
FiB ,RV,MJaDS , Lu //E8j
,
rp7,sZ1,qz
, Uu
,//Q
W, PNVfNH, yQ, Ot,
WtI ,//Z8j
/*y*/sJK,kSAAL//zV
,fU9HQL,
b3pX, h6XV7 ,
qdJd ,//
svQ, z3,
j1 ,u
,
/*rtQx*/ kIoz , DfHP , ix9N ,al ,bk
,cX ,SWBvu,//Zx9Z
/*e*/
g
,
Y ,hv,wDF
, vdU,h1a/*Qc*/, ixv
,hDeg//cz67
, /*8*/ q ,Bjee//C
,//xh... |
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
using namespace std;
typedef int Face;
typedef long long int64;
typedef pair<int, int> ii;
typedef vector<int> vi;
const double EPS = 1e-9;
const int INF = 0x3f3f3f3f;
const int MOD = 1000000007;
const int C = 4; /... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... |
// Copyright 2016 The Streamer 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 ... |
////////////////////////////////////////////////////////////////////////////////
//
// DgProjFuller.cpp: DgProjFuller class implementation
//
// Version 6.1 - <NAME>, 5/23/13
//
////////////////////////////////////////////////////////////////////////////////
#include <cmath>
#include <limits>
#include "DgProjFuller.h"... |
/* This file is part of the Vc library. {{{
Copyright © 2009-2017 <NAME> <<EMAIL>>
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... |
/*-
* Copyright (c) 2017-2018 wenba, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "echo_h264_encoder.h"
#include "logging.h"
#include <iostream>
/*load ffmpeg lib*/
//#pragma comment(lib, "avcodec.lib")
//#pragma comment(lib, "avutil.lib")
//#pragma comm... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010-2012, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
#include <ftk/mesh/simplicial_xgc_2d_mesh.hh>
#include <ftk/mesh/simplicial_xgc_3d_mesh.hh>
#include <ftk/io/xgc_stream.hh>
#include <ftk/features/feature_point.hh>
#include <ftk/features/feature_point_set.hh>
#include <ftk/features/feature_curve_set.hh>
#include <ftk/geometry/write_polydata.hh>
#include <ftk/geometry/... |
#include <cmath>
#include <stdint.h>
#include <string>
#include <sstream>
#include <vector>
#include <list>
#include <map>
#include <unordered_map>
#include <fstream>
#include "zlib.h"
#include "debug.hpp"
#include "defines.hpp"
#include "Config.hpp"
#include "Request.hpp"
#include "Response.hpp"
#include "Mem_Interfac... |
#include "ColorPalette.h"
#include <kvs/HSVColor>
#include <kvs/String>
#include <kvs/EventBase>
#include <kvs/MouseEvent>
#include <kvs/IgnoreUnusedVariable>
#include <kvs/ScreenBase>
#include <kvs/OpenGL>
#include <cstdio>
// Default parameters.
namespace { namespace Default
{
const size_t Margin = 10;
const size_t ... |
#include <iostream>
#include <fstream>
#include <vector>
#include <random>
/*
PLEASE READ DESCRIPTION!
The program simulates Conway's Game of Life in an arena. The starting structure (life)
could be random or user-defined, as desired. Every life is in the form of a matrix. The matrix
elements should be binary zeros a... |
#include "../include/manual.h"
#include "../include/globals.h"
#define LOOP_DEFAULT_WAIT_TIME 100
const byte mock_data[] = {60, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 3, 132, 4, 3, 132, 2, 1, 0, 1, 0, 1, 62};
const int mock_data_len = sizeof(mock_data) / sizeof(byte);
namespace ... |
#include <string>
#include <time.h>
#include <fmt/core.h>
#include "simulation/config.hpp"
#include "simulation/simulation.hpp"
#include "utils/logger.hpp"
#include "utils/utils.hpp"
#include "utils/pktdumper.hpp"
#include "topology/fattree_topology.hpp"
Simulation syndbSim;
Simulation::Simulation(){
this->star... |
//Author: <NAME>
//Date: August 2019
//Purpose: PDF Functions for minuit fitting
//ROOT:
#include "Math/VectorUtil.h"
#include "TMath.h"
#include "Math/Math.h"
#include <TSystem.h>
#include <TROOT.h>
#include <TObjString.h>
//For Drift:
#include "BTrk/BaBar/BaBar.hh"
#include "BTrk/BbrGeom/Trajectory.hh"
#include "B... |
#ifndef __PROGTEST__
#include <cassert>
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <string>
#include <memory>
#include <vector>
#include <algorithm>
using namespace std;
#endif /* __PROGTEST__ */
class Prop {
public: //struktura obsahující veškeré ide... |
#include <qtcomponents.h>
#define TABLES(ID) GraphicPlan->Tables[N::Tables::ID]
#define Language GraphicPlan->LanguageId
#define UuidWhere "where uuid = :UUID"
N::GraphicsManager:: GraphicsManager (Plan * p)
: GraphicPlan ( p)
{
}
N::GraphicsManager::~GraphicsManager (void)
{
}
bool ... |
#include "PBRender.h"
#include "geometry.h"
#include "transform.h"
#include "modelloader.h"
#include "accelerators/bvh.h"
#include "cameras/orthographic.h"
#include "cameras/perspective.h"
#include "sampler.h"
#include "samplers/halton.h"
#include "shapes/sphere.h"
#include "shapes/triangle.h"
#include "spectrum.h"... |
/*
* Copyright 2010-2015, Tarantool AUTHORS, please see AUTHORS file.
*
* Redistribution and use in source and iproto 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 lis... |
#include "dynamicModel.hpp"
//Constructor
Model::Model(float freq) : _N_samples(0)
{
this->init(false);
_frequency = freq;
}
void Model::init(const bool useInitialTrajectoryStates)
{
_internals = {0};
_states = {0, 0, 0, 0, 0, 0, 0, 0, 900, 0, 0, 0};
_params = {750, 9.8056, 1.225, 9.84, 7000, 7.87... |
//
// Metrics.cpp
// IntervalTree
//
// Created by <NAME> on 7/5/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "Metrics.h"
#include <iostream>
#include <math.h>
#include <cmath>
#include <unordered_set>
#include <algorithm>
#include <iterator>
namespace rnaseqc {
std::map<std::string, dou... |
/*
* Copyright 2017, The Android Open Source Project
*
* 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 applica... |
int sQtr,tsB
, o5
,uD
,Uh ,
b24t5/*FEmG*/
,
QPJx
, rRu, Hs ,pUc
//Nx
, GRm,
jU6/*P*/
,
YJ , AsHe , Cq
,Kc, hf ,Rv6 , /*EI*/VA ,BXF,Jgz , JYwi ,eJ ,
gW4 ,u0U,Lev,//sB2
tW9,auHL87 ,
aUj
, EoD/**/
,ZM0mE, kWSv,
a7Vg ,
Nlt ;
void//lLT
f_f0 ()//
{
;for
(int i=1;
i<
1//LX
;++i ){//B
volatile i... |
/*
#
# UFFBAPS - Unified Force Field for Binding And Protein Stability
# Copyright (C) 2010 <NAME> & <NAME>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Licen... |
//
// Created by kellerberrin on 2/11/20.
//
#include "kgl_analysis_inbreed_locus.h"
#include "kgl_variant_filter.h"
#include "kgl_analysis_inbreed_calc.h"
#include "kel_distribution.h"
#include <fstream>
#include <algorithm>
namespace kgl = kellerberrin::genome;
namespace kel = kellerberrin;
kgl::AlleleFreqVecto... |
/* Example to show how to use Intel's FGMRES with preconditioner to solve the linear system Ax=b in MPI.
* Based on Intel's example: solverc/source/fgmres_full_funct_c.c
* For CS51501 HW3 Part b
*
* Please read Intel Reference Manual, Chapter 6 Sparse Solve Routine, FGMRES Interface Description for the detail informati... |
/*************************************************************************
* Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved.
* Modifications Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
*
* See LICENSE.txt for license information
**************************************... |
#include "fast_travel_sim.h"
#include <plantgen/plant_generator.h>
#include <plantgen/plant_printer.h>
#include <plantgen/from_json.h>
using namespace std;
using namespace plantgen;
using namespace plant_printer;
namespace fast_travel_sim
{
namespace
{
constexpr char const* hex_encounter_data_filepa... |
// Copyright (c) 2021 Xeni Robotics
//
// 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 ... |
/*
* Copyright (c) 2010-2013 OTClient <https://github.com/edubart/otclient>
*
* 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 r... |
/*
* File: main.cpp
* Author: joseph
*
* Created on July 11, 2014, 6:35 PM
*/
#include <cstdlib>
#include <string>
#include <iostream>
#include <math.h>
#include <vector>
#include <iomanip>
using namespace std;
//This is an implementation of quickSort that I found on the internet.
void quickSort(int arr[], i... |
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt... |
#define _CRT_SECURE_NO_WARNINGS
//#include "Examples\ShadowExample.h"
//#include "Examples\NormalTestExample.h"
//include "Examples\PBRTest.h"
//#include "Examples\SoundExample.h"
#include "Examples\AnimationExample.h"
//#include "Examples\ReflectionExample.h"
#include "glm/gtx/string_cast.hpp"
//Engine Time
float de... |
//
// imgEditor.cpp
// harlequin
//
// Created by <NAME> on 4/21/15.
//
//
#include "imgEditor.h"
//--------------------------------------------------------------
void imgEditor::setup(string guiSettingsPath_, string imagesDirectory_, string imageJointDataDirectory_) {
initializing = true; // flag to chec... |
#include "special.h"
#include "Constants.h"
using MathConstants::DOUBLE_EPSILON;
using MathConstants::EPSILON;
using MathConstants::PI;
#include <cassert>
#include <cstdlib>
#include <vector>
#include <cmath>
#include <iostream>
using std::swap;
using std::vector;
const double INV_RAND_MAX = 1.0 / static_cast<dou... |
#include "application.h"
#include "gpk_bitmap_file.h"
#include "gpk_encoding.h"
#include "gpk_label.h"
#include "gpk_grid_copy.h"
//#define GPK_AVOID_LOCAL_APPLICATION_MODULE_MODEL_EXECUTABLE_RUNTIME
#include "gpk_app_impl.h"
GPK_DEFINE_APPLICATION_ENTRY_POINT(::gme::SApplication, "Module Explorer");
::gpk::error_t... |
/*
* main.cpp - ROM patches
*
* SheepShaver (C) 1997-2008 <NAME> and <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option)... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
//cout<<"hello";
// if this is false, laser measurement... |
#include <algorithm>
#include <dirent.h>
#include <iostream>
#include <assert.h>
#include <fstream>
#include <iomanip>
#include <limits>
#include <random>
#include <cmath>
#include <unordered_map>
#include <list>
#include <deque>
#include <vector>
#include "clustered_binary_freq_collection.hpp"
#include "clustered_bi... |
/*
* Copyright (c) 2019 <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cstdlib>
#include <iostream>
#include <vector>
#if defined(_MSC_VER)
# include <windows.h>
#endif
#ifdef EMSCRIPTEN
# include <emscripten/em... |
// SPDX-License-Identifier: GPL-3.0-only
#include <optional>
#include <invader/map/map.hpp>
#include <invader/file/file.hpp>
#include <invader/command_line_option.hpp>
#include <invader/crc/hek/crc.hpp>
#include <invader/version.hpp>
#include <invader/tag/parser/parser.hpp>
#include <invader/hek/map.hpp>
#include <inv... |
#include "TerritoryDocument.h"
#include "render/backend/DX11Renderer.h"
#include "util/Profiler.h"
#include "render/Render.h"
#include "Log.h"
#include "gui/GuiState.h"
#include "rfg/TerrainHelpers.h"
#include "util/TaskScheduler.h"
#include "render/resources/Scene.h"
#include "application/Config.h"
#include "render/im... |
#include "../cl_headers.hpp"
#include "../half.hpp"
#include "../ir/types.hpp"
#include "../devices.hpp"
#include "../system.hpp"
#include "../text.hpp"
#include "intel_gen_binary_decoder.hpp"
#include "kargs.hpp"
#include "parser.hpp"
#include "spirv_decoder.hpp"
#include <fstream>
#include <sstream>
#include <unorde... |
#include "bjit.h"
#include <vector>
#include <algorithm> // use STL heapsort
using namespace bjit;
static const bool cse_debug = false; // print decisions
void Proc::rebuild_memtags(bool unsafeOpt)
{
for(auto b : live)
{
// reset block tags to noVal, we'll solve these in 2nd pass
bloc... |
#include <memory>
#include "Sound.h"
#include "GBA.h"
#include "Globals.h"
#include "../common/Port.h"
#include "../apu/Gb_Apu.h"
#include "../apu/Multi_Buffer.h"
#include "../common/SoundDriver.h"
#include "XSFCommon.h"
extern SoundDriver *systemSoundInit();
static const uint32_t NR52 = 0x84;
static std::unique_ptr... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <ie_core.hpp>
#include <cmath>
#include "tests_common.hpp"
#include "single_layer_common.hpp"
using namespace ::testing;
using namespace InferenceEngine;
using namespace std;
struct strided_sl... |
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <map>
#include <ext/hash_map>
#include <vector>
#include <algorithm>
#include <sys/mman.h>
#include <stdio.h>
#include <utmp.h>
#include <time.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <tr1/unordered_map>
#include <errn... |
/*
* Copyright 2017 <NAME>
*
* 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 ... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "Analyzers/Sokoban.h"
#include "Debug.h"
#include "Globals.h"
#include "Saiph.h"
#include "World.h"
#include "Actions/Move.h"
using namespace analyzer;
using namespace std;
Sokoban::Sokoban() : Analyzer("Sokoban") {
/* 8 sokoban levels */
_moves.resize(8);
/* Level 1A */
addMoves(0, Point(8, 37), "j");... |
// Notice
// ------
//
// This file is part of the Mezzo SoundFont2 Sampling Based Synthesizer:
//
// https://github.com/turgu1/mezzo
//
// Simplified BSD License
// ----------------------
//
// Copyright (c) 2018, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or with... |
//#include "stdafx.h"
/* matrix.c -- library routines for constructing dynamic matrices with
* arbitrary bounds using Iliffe vectors
****************************************************************
* HISTORY
*
* 15-Jul-95 <NAME> (<EMAIL>) at 3M St. Paul, MN
* Use stdlib.h rather than defi... |
/*
* MIT License
*
* Copyright (c) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
/**
* @file SpotConcealment.cpp
* @brief An example demonstrates how to detect and conceal large blemishes with Canny Edge
* detector.
*
*/
#include <dlib/image_processing.h>
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/opencv.h>
#include <iostream>
#include <opencv2/highgui.hpp>
#includ... |
#include <iostream>
#include "image_texture.h"
#include "constant_medium.h"
#include "rotate_y.h"
#include "translate.h"
#include "box.h"
#include "flip_face.h"
#include "xy_rect.h"
#include "xz_rect.h"
#include "yz_rect.h"
#include "diffuse_light.h"
#include "noise_texture.h"
#include <chrono>
#include "solid_color.h"... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
//
// Copyright (C) 2014 <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 ... |
/// \file price_setter.cpp
///
/// \brief
///
/// \authors <NAME>
/// \date 2018-07-19
/// \copyright Copyright 2017-2019 The Institute for New Economic Thinking,
/// Oxford Martin School, University of Oxford
///
/// Licensed under the Apache License, Version 2.0 (the "License");
//... |
/*
* Copyright 2006-2007, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include "TransformBox.h"
#include <stdio.h>
#include <agg_trans_affine.h>
#include <agg_math.h>
#include <View.h>
#include "support.h"
#include "TransformBoxStates.h"
#include "StateView.h... |
// dispiez.cpp
//
// Implements IDispatch helper functions.
//
// Important: This .cpp file assumes a zero-initializing global "new" operator.
//
// @doc MMCTL
//
#include "precomp.h"
#include "..\..\inc\ochelp.h"
#include "debug.h"
// Common code used by DispatchInvokeEZ and DispatchInvokeIDEZ to conver... |
/*
LICENSE
-------
Copyright 2005 Nullsoft, 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 conditions a... |
#include <iostream>
#include <fstream>
//#include <bits/stdc++.h>
#include <sys/stat.h>
#include<string>
#include<bitset>
#include<dirent.h>
#include<vector>
#define _POSIX_SOURCE
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
#undef _POSIX_SOURCE
#include <stdio.h>
#include<sstream>
#include <cmath>
us... |
#include <string>
#include <iostream>
#include <stdio.h>
#include <math.h>
#include <opencv\cv.h>
#include <opencv\highgui.h>
#include <opencv2\objdetect\objdetect.hpp>
#include <opencv2\highgui\highgui.hpp>
#include <opencv2\imgproc\imgproc.hpp>
#include <vector>
#include <time.h>
#include <windows.h>
#include "Seria... |
// *************************************************************
// File: helpers.cc
// Author: <NAME> @ 2018
// URL: https://github.com/ans-hub/gdm_framework
// *************************************************************
#include "helpers.h"
// This is default gl framebuffer attributes represented in value... |
/*
* search.cc
*
* Created on: 2014-12-11
* Author: wangjin
*/
# include "search.h"
#include "index.h"
#include <string.h>
InvertedMap::iterator inv_it;
vector<int>::iterator vitr;
Groupset::iterator gitr;
priority_queue<q_entry> results;
priority_queue<q_entry> ctheap;
vector<int> ctbound;
vector<int> matc... |
#include "Common/Common.h"
#include "Common/Log.h"
#include "Configuration/Platform.h"
#include "Application/AppModuleBase.h"
#include "Vulkan/VulkanPlatform.h"
#include "Vulkan/VulkanDevice.h"
#include "Vulkan/VulkanQueue.h"
#include "Vulkan/VulkanSwapChain.h"
#include "Vulkan/VulkanMemory.h"
#include "Math/Vector4.h... |
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the Licens... |
// Neural Network.cpp : Defines the entry point for the console application.
//
// Created by: <NAME>
#include "stdafx.h"
#include "windows.h"
#include <cmath>
#include <vector>
#include <iostream>
#include <cassert>
#include <sstream>
/****************************************************************... |
/**
g++ $(pkg-config --cflags --libs /usr/local/Cellar/opencv/4.1.1_2/lib/pkgconfig/opencv4.pc) -std=c++11 local.cpp -o local
**/
#include <iostream> // for standard I/O
#include <string> // for strings
#include <iomanip> // for controlling float print precision
#include <sstream> // string to number conversion
#... |
#include <stdio.h>
#include <stdlib.h>
#include "GenCode.h"
#include "ScriptObjects/ScriptObjects.h"
#include "TempCode.h"
#include "Script.h"
#include "Config.h"
#include "vm.h"
void OutputSrc(TempCode *pos, FILE *out) {
int size = pos->param3;
if (size == 1) {
size = 18;
}
else if (size == 2) {
size = 32;
}... |
#include "ukf.h"
#include "Eigen/Dense"
#include "tools.h"
#include <iostream>
#include <vector>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measureme... |
#include "control.h"
#include "windowfunctions.h"
#include "controlmanager.h"
#include "workspace.h"
#include "c.h"
#include "findresults.h"
#include "xml.h"
#include "keybindings.h"
#include "settings.h"
#include "globalsettings.h"
#include "projectexplorer.h"
#include "replaymanager.h"
#include "splitter.h"
#inc... |
#include "SkewtQtPlot.h"
#include <datastore/DataDomain.h>
#include <datastore/DataSource.h>
#include <datastore/DataSet.h>
#include <datastore/DataSetSelection.h>
#include "plotlib/DataSetSelectionDialog.h"
#include "PlotFactoryP.h"
#include <QMenu>
#include <QLabel>
#include <QVBoxLayout>
#include <QHBoxLayout>
#inc... |
// Copyright <NAME> 2006
// Copyright <NAME> 2007, 2010
// Use, modification and distribution are 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)
#ifdef _MSC_VER
# pragma warning(disable: 4512) // assignment operator... |
#include <iostream>
#include <fstream>
#include <cstring>
#include <omp.h>
#include <algorithm>
#include <random>
#include <chrono>
#include "mapfile.hpp"
void DebugArray2(const uint32_t* cpuArray, uint64_t StartIdx, uint64_t EndIdx);
void DebugArray4(const uint64_t* cpuArray, uint64_t StartIdx, uint64_t... |
#include "linelib.h"
sampler::sampler()
{
n = 0;
alias = 0;
prob = 0;
}
sampler::~sampler()
{
n = 0;
if (alias != NULL) { free(alias); alias = NULL; }
if (prob != NULL) { free(prob); prob = NULL; }
}
void sampler::init(long long ndata, double *p)
{
n = ndata;
alias = (long long *)malloc(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.