text
stringlengths
3.08k
12.5k
#include "CommandRunner.h" #include <stdio.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <termios.h> #include <memory.h> #include "stringprintf.h" CommandRunner::CommandRunner(const char* fileName) : lineNo(0), file(-1) { int f = open( f...
#include <stdlib.h> #include <unistd.h> #include "ogl.h" ogl::LoggerPtr Bitmap::m_logger(ogl::Logger::getLogger("ogl.Bitmap")); //The test bit - used to find out which blocks are used/free const BitmapUnit Bitmap::m_testBit = 1; //Default Constructor Bitmap::Bitmap() : m_bitmap(0), m_numBitmapUnits(0), m_nu...
#include "models.h" Base::Base() { this->variables = unordered_set<Variable*>(); this->trainable_variables = unordered_set<Variable*>(); } void Base::train() { GlobalGraph::IS_TRAINING = true; } void Base::eval() { GlobalGraph::IS_TRAINING = false; } _Model::_Model() { this->loss = NULL; this->optimizer = ...
// Copyright (C) 2017 SYCstudio. // 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; version 3 // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; wi...
#include <iostream> #include <algorithm> #include <cstdio> #include <queue> #include <vector> #define maxN 1000001 #define maxS 21 #define N (n * n) #define idx(x, y) ((x) * n + (y)) #define row(x) ((x) / n) #define col(x) ((x) % n) #define valid(x, y) ((x) >= 0 && (x) < n && (y) >= 0 && (y) < n) #define vert first #d...
// Copyright 2020 RoboMaster-OSS // // 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 ...
// // Created by niracler on 19-1-5. // #include "LaneDetect.h" #include "AutoAdjust.h" //亮度及对比度自适应方案 Mat imgLaneDetect(const Mat &input, bool flag){ Mat auto_frame, adjust_frame, denoise_frame; Mat enhancement_frame, morphological_frame; Mat warp, edges_frame; Mat mask_frame, output; // 设置ROI ...
#include "touchpad.h" #include "synaptics/SynKit.h" #pragma comment(lib,"SynCom.lib") #pragma comment(lib,"SynCtrl.lib") #define dbg printf TouchPad::TouchPad( ) : frame_counter( 0 ) , nfingers( 0 ) , prev_nfingers( 0 ) { } bool TouchPad::start() { HRESULT hr; // Wait object will indicate when new data ...
#include <nanogui/opengl.h> #include <nanogui/screen.h> #include <nanogui/window.h> #include "common.hpp" #include "camera.hpp" #include "graph.hpp" #include "graphnode.hpp" #include "glshadersource.hpp" #include "glshaderobject.hpp" #include "util.hpp" #include "qce.hpp" NAMESPACE_BEGIN(QCE); Qce::Qce() : Scree...
#include "Gui.h" #include "Tracer.h" #include <opencv2/highgui.hpp> #include <opencv2/imgproc.hpp> #define RED cv::Scalar(0, 0, 255) #define BLUE cv::Scalar(255, 0, 0) #define YELLOW cv::Scalar(0, 255, 255) #define GREEN cv::Scalar(0, 255, 0) #define GRAY cv::Scalar(150,150,150) using std::string; using cv::Mat; Gu...
// 00_display_class.cpp : Defines the entry point for the console application. // // This is my first attempt to build a game engine, starting with display and input. //What I like about the design is that all entities have a draw function that can be registered to the display manager. //I also liked that each entitie...
/* Copyright 2005-2012 Intel Corporation. All Rights Reserved. The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its supplier...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
/**********************************************************************/ /** Microsoft Windows NT **/ /** Copyright(c) Microsoft Corp., 1992 **/ /**********************************************************************/ /* * openfile.cxx ...
/* Copyright (c) 2021 <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, distri...
#include <iostream> #include <unordered_map> #include <stdlib.h> #include <cppcms/application.h> #include <cppcms/service.h> #include <cppcms/http_request.h> #include <cppcms/http_response.h> #include <cppcms/url_dispatcher.h> #include <cppcms/url_mapper.h> #include <cppcms/applications_pool.h> #include <cppcms/sessi...
#include <string> #include <thread> #ifdef __linux__ #include <arpa/inet.h> #include <netinet/in.h> #endif #include "gtest/gtest.h" #include "netinet_any.h" #include "srtrs.h" class TestIPv6 : public ::testing::Test { protected: int yes = 1; int no = 0; TestIPv6() { // initialization code here } ~Te...
#include "CFindTemplate.h" #include "ClassLogFile.h" // #define DEBUG_DETAIL_ON bool CFindTemplate::FindTemplate(RefInfo *_ref) { uint8_t* rgb_template = stbi_load(_ref->image_file.c_str(), &tpl_width, &tpl_height, &tpl_bpp, channels); // printf("FindTemplate 01\n"); int ow, ow_start, ow_stop; in...
#include <bits/stdc++.h> const int MAXN = 100100; inline char read() { static const int IO_LEN = 1024 * 1024; static char buf[IO_LEN], *ioh, *iot; if (ioh == iot) { iot = (ioh = buf) + fread(buf, 1, IO_LEN, stdin); if (ioh == iot) return -1; } return *ioh++; } template <class T> inli...
/* * Video Quality Assessment Tool using SSIM (VQATS). * Written by <NAME>, <EMAIL>, 2008. * * A* algorithm. */ #include "vqats.hh" #include "dtable.hh" #include "fib.h" enum state_t { NONE = 0, OPEN, CLOSED }; struct QueueElement { QueueElement(frame_t i1, frame_t i2): _i1(i1), _i2(i2), _estim...
#include "PanelInspector.h" #include "Application.h" #include "ModuleSceneManager.h" #include "ModuleResourceManager.h" #include "ModuleGui.h" #include "GameObject.h" #include "Components.h" #include "PanelProject.h" #include "Imgui/imgui.h" #include "mmgr/mmgr.h" PanelInspector::PanelInspector(char* name) : Panel...
#include <stdio.h> #include <QHeaderView> #include <QMenu> #include "RegViewVU.h" #include "string_format.h" #define CLIP_FLAG_MASK 0xFFFFFF CRegViewVU::CRegViewVU(QWidget* parent, CMIPS* ctx) : CRegViewPage(parent) , m_ctx(ctx) { AllocateTableEntries(2, 45 + 16); setColumnWidth(0, 46); horizontalHeader()-...
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmSetSourceFilesPropertiesCommand.h" #include <algorithm> #include <iterator> #include <cm/string_view> #include <cmext/algorithm> #include <cmext/string_view> ...
//#define EDM_ML_DEBUG #include "Geometry/MTDGeometryBuilder/interface/MTDParametersFromDD.h" #include "Geometry/MTDCommonData/interface/MTDTopologyMode.h" #include "CondFormats/GeometryObjects/interface/PMTDParameters.h" #include "DetectorDescription/Core/interface/DDCompactView.h" #include "DetectorDescription/Core/...
#pragma once #include PACC_PCH #include <Pacc/Helpers/HelperTypes.hpp> #include <Pacc/PackageSystem/Version.hpp> using RawDependency = std::string; using PackagePtr = std::shared_ptr<struct Package>; enum class AccessType { Private, Public, Interface }; enum MultiAccess { Private = 1 << 0, Public = 1 <<...
/*************************************************************************************** Autodesk(R) Open Reality(R) Samples (C) 2009 Autodesk, Inc. and/or its licensors All rights reserved. AUTODESK SOFTWARE LICENSE AGREEMENT Autodesk, Inc. licenses this Software to you only upon the condition that you acce...
#include"get_subtrees.h" #include "pattern_analysis.h" #include <qstack.h> #include <stdlib.h> #include <math.h> #include <set> #include "../pattern_search/my_sort.h" Boundary getBoundary(const NeuronTree &nt) { V3DLONG siz = nt.listNeuron.size(); Boundary b; b.minx=VOID; b.miny=VOID;b.minz=VOID; b.max...
#include <string> #include <iomanip> #include <iostream> #include <sstream> #include "url.h" using namespace gomibako; std::string gomibako::urlencode(const char *data, size_t length) { using namespace std; ostringstream os; for (size_t i = 0; i < length; ++i) { switch (data[i]) { case...
/* * halo.cpp * * Created on: Feb 2, 2012 * Author: cgiocoli */ #include <halo.h> /** * \brief Constructor initializing a NFW-halo */ HALOCalculator::HALOCalculator ( COSMOLOGY *cos /// pointer to a COSMOLOGY ,double mass /// halo mass in M_sun/h TODO Carlo: Is this really M_sun/h ,...
#include<iostream> #include<fstream> #include<stack> #include<algorithm> #include<vector> using namespace std; long long add_null = 0; long long add_null_squares = 0; long long add_one = 0; int isolated = 0; int last_visited_vertex = -1; void dfs(vector<vector<int>> adjacency, int*marks, int*earliest...
/* * The MIT License (MIT) * * Copyright (c) 2017 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy,...
#include<bits/stdc++.h> using namespace std; const int N = 1e5 + 9; struct ST { #define lc (n << 1) #define rc ((n << 1) | 1) long long t[4 * N], lazy[4 * N]; ST() { memset(t, 0, sizeof t); memset(lazy, 0, sizeof lazy); } inline void push(int n, int b, int e) { if (lazy[n] == 0) ...
#include <iostream> #include "Aerodynamics.hh" AeroDynamics::AeroDynamics(Propulsion& prop, Data_exchang& input) : propulsion(&prop), VECTOR_INIT(XCP, 3) { data_exchang = &input; } AeroDynamics::AeroDynamics(const AeroDynamics& other) : propulsion(other.propulsion), VECTOR_INIT(XCP, 3) { this->aerotable =...
/********************************************************************* * * Copyright (C) 2003-2004, Karlsruhe University * * File path: amd64.cc * Description: AMD64 specific implementation fragments of kickstart * * Redistribution and use in source and bina...
/* * @file: RungaKutta.hpp * @author: pdsherman * @date: April 2020 * @brief: Class for general use of 4th order runga-kutta */ #pragma once #include <libs/util/util.hpp> #include <functional> /// Numerical ODE solver using Runga-Kutta method /// Class is setup to system of first order ODEs /// The solver...
#include "http_server.h" #include "../spectator/gzip.h" #include "../spectator/logger.h" #include <fmt/format.h> #include <fstream> #include <gtest/gtest.h> #include <netinet/in.h> #include <sys/socket.h> #include <thread> using spectator::DefaultLogger; using spectator::gzip_compress; http_server::http_server() noex...
/* Apache License, Version 2.0 */ #include "testing/testing.h" #include "BLI_math_matrix.h" TEST(math_matrix, interp_m4_m4m4_regular) { /* Test 4x4 matrix interpolation without singularity, i.e. without axis flip. */ /* Transposed matrix, so that the code here is written in the same way as print_m4() outputs. *...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBlitRow.h" #include "SkBlendModePriv.h" #include "SkColorFilter.h" #include "SkColorPriv.h" #include "SkFixedAlloc.h" #include "SkModeColorFilt...
// VConsole.cxx // implementation of VConsole // NOTE: this is OS-sensitive // Logical windows: // top half: Franci // bottom half: user // 1st line of bottom half: user name // 1st line of top half, or title bar: Franci // headers #include <memory.h> #include <fstream> #include "TVal.hxx" #include "...
/** \class GBRForestWriter * * Read GBRForest objects from ROOT file input * and store it in SQL-lite output file * * \authors <NAME>, LLR * */ #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/P...
// Copyright (C) 2019-2020 Zilliz. 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 l...
/* Copyright (c) 2007-2011 <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 re...
// Copyright (c) 2001-2010 <NAME> // // 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) #include <boost/config/warning_disable.hpp> #include <boost/detail/lightweight_test.hpp> #include <boost/mpl/print....
#include "mainwindow.h" #include "./ui_mainwindow.h" #include <memory> #include <functional> #include "MarianInterface.h" #include <QtNetwork/QNetworkAccessManager> #include <QtNetwork/QNetworkReply> #include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> #include <QSettings> #include <QSaveFile> #inclu...
/* HMC5883L.cpp - Class file for the HMC5883L Triple Axis Magnetometer Arduino Library. Copyright (C) 2011 Love Electronics (<EMAIL>) This program is free software: you can redistribute it and/or modify it under the terms of the version 3 GNU General Public License as published by the Free Software Foundation. ...
#if defined(_MSC_VER) /* MSVC Compiler */ #pragma warning(disable : 4305) #endif #include "qwt3d_colorlegend.h" using namespace Qwt3D; /** Contructs a legend object with an axis at the left side. The legend resides in the top-right area and has no caption. Scale numbering is shown. */ ColorLegend::Color...
#include "Model.hpp" #include "utils.hpp" #include <iostream> #include <algorithm> #include <assimp/Importer.hpp> #include <assimp/postprocess.h> #include <assimp/scene.h> Model::Model(std::string path) { setXform(glm::mat4(1.0f)); importMesh(path); calculateAABB(); texCache.clear(); } Model::Model(Me...
/*************************************************************************************************** * Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without *modification, are permitted provided that the following conditions are met...
/******************************************************************************* * Copyright (c) 2007, 2008, CerroKai Development * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribu...
#define GL_GLEXT_PROTOTYPES #define EGL_EGLEXT_PROTOTYPES #include <cmath> #include <iostream> #include <vector> extern "C" { #include <GL/gl.h> #include <GL/glut.h> } static const char vertex_shader[] = "#ifdef GL_ES\n" "precision lowp float;\n" "#endif\n" "attribute float indices;\n" ...
/** * @file arena.cxx * @desc Battle area module. */ #include <SDL.h> #include <SDL_image.h> #include <SDL_ttf.h> #include <SDL_mixer.h> #include "../game.hxx" #include "common.hxx" #ifndef __ANDROID__ #include <windows.h> #include <shlobj.h> #endif Arena::~Arena() { if (map != NULL) delete map...
#include "muscle.h" #include "objscore.h" #include "msa.h" #include "textfile.h" #include "pwpath.h" const unsigned INDELS = 1; static void GetPos(const char Str[], unsigned L, int *pi1, int *pi2) { int i1; for (;;) { i1 = rand()%(L-2) + 1; if (Str[i1] == 'M') break; } int i2; for (;...
/* Copyright (c) 2021, NVIDIA CORPORATION. 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 condi...
#include <stdlib.h> #include "PredComp.h" #include "Wavelets.h" #if defined(WIN32) && !defined(__CYGWIN__) #define strcasecmp stricmp #endif WaveletRepresentationInfo outputrep; typedef WaveletInputSample<double> WISD; typedef WaveletOutputSample<double> WOSD; StaticForwardWaveletTransform<double,WOSD,WISD>...
#include <stdint.h> #include "../Level.h" #include "../Game.h" #include "../MathUtil.h" #include "../Log.h" //Scratch structure struct SCRATCH { uint8_t weight = 0; uint16_t fallTime = 0; int32_t origX = 0; int32_t origY = 0; int32_t y = 0; }; void ObjGHZPlatform_Move(OBJECT *object) { //Get (but hopefully not ...
#include "menu.h" Menu::Menu(void){ // Default variables. visible = true; menuX = 1500; menuY = 250; // Load Menu resources. font_small.loadFont("DroidSans.ttf", 12); font_large.loadFont("DroidSans.ttf", 18); img_hdd.loadImage("hdd.png"); // Load menu items. ofPtr<MenuItem> item(new MenuItem()); item->na...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once...
/* C:B************************************************************************** This software is Copyright 2016-2018 <NAME> <<EMAIL>> This software is Copyright 2014-2016 Bright Plaza Inc. <<EMAIL>> This file is part of sedutil. sedutil is free software: you can redistribute it and/or modify it under the terms of th...
/* udp_connection.cpp <NAME> Created 4/28/2017 Modified 4/28/2017 This is a C++ class made to handle a UDP connection. Credit for much of this code goes to: Beej's Guide to Network Programming http://beej.us/guide/bgnet/output/html/multipage/index.html Brian "<NAME>" Hall Version 3.0.21 ...
#include "OBMol.hpp" #include "common.hpp" #include "infile_reader.hpp" #include "utils.hpp" #include "AtomEnergyGrid.hpp" #include "EnergyCalculator.hpp" #include "log_writer_stream.hpp" #include <map> #include <vector> #include <iostream> #include <cmath> #include <fstream> #include <cstdlib> #include <sys/stat.h> ...
#pragma once #include "GLES2/gl2.h" #include "EGL/egl.h" #include "EGL/eglext.h" #include "lodepng.h" #include "llibreries.hpp" class subDisplay; using namespace cv; using namespace std; /******************************************************************** * Classe Display * Mostra en display les textures * Tambe ...
// // 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...
/* Copyright 2015-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 writing, software di...
/* * Simple file (de)crypt utility. * @author <NAME> (<EMAIL>) */ #include <io/File.h> #include <io/FileInputStream.h> #include <io/FileOutputStream.h> #include <lang/Array.h> #include <lang/String.h> #include <lang/Exception.h> #include <util/Vector.h> #include <crypt/CryptUtil.h> #include <stdint.h> #...
#include "xr_ai_version.h" #include "xr_level_graph.h" #include "xr_file_system.h" using namespace xray_re; xr_level_graph::xr_level_graph(): m_version(AI_VERSION_8), m_levels(0), m_vertices(0), m_edges(0), m_death_points(0) { m_guid.reset(); } xr_level_graph::~xr_level_graph() { delete[] m_levels; delete[] m_ve...
/******************************************************************************* * Copyright 2016-2018 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.apa...
/* ISC License Copyright (c) 2016, <NAME> <<EMAIL>> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AU...
/* Copyright (c) 2008, <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 the followin...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/views/controls/native_control_win.h" #include <windowsx.h> #include "base/logging.h" #include "ui/base/accessibility/accessibility_type...
/** * Mightex CCD Interface * Copyright 2011 <NAME> * This work is licensed under the MIT license, * subject to all terms as reproduced in the included LICENSE file. */ #include "stdafx.h" #include <cstdio> #include <cstdarg> #include <direct.h> #include "camera.h" using namespace std; // Compile Settings #def...
//===-------------------------- FlattenModule.cpp ------------------------===// // This file implements the Scaffold pass of flattening modules whose gate // counts are below the threshold. These modules' names have been previously // written to the file "flat_info.txt". // // This file was created by Scaffold...
#include <iostream> #include <Eigen/Dense> #include <math.h> #include <complex> #include <cmath> using Eigen::MatrixXcd; using Eigen::VectorXd; using Eigen::VectorXcd; #define AU_L 5.2917721067e-11 // m #define AU_T 2.41888432651e-17 // s #define AU_E 4.35974465e-18 // J #define EV 1.6021766208e-19 // J #define AU2AN...
// // Created by 陈斐童 on 27/03/2018. // #include "allocation.h" #include <iostream> #include <cmath> #include <random> int Allocator::count(int phy_id, const string &flavor) { int id = phy_id - 1; if (this->result.find(id) == this->result.end()) return 0; auto &t = this->result[id]; return t[flavor]; ...
/* * Copyright (c) 2014 <NAME>, Inc. All rights reserved. */ #include <ovs_tor_agent/ovsdb_client/ovsdb_route_peer.h> #include <ovs_tor_agent/ovsdb_client/ovsdb_route_data.h> #include <oper/nexthop.h> #include <oper/tunnel_nh.h> #include <ovsdb_client_idl.h> #include <ovsdb_types.h> OvsPeer::OvsPeer(const IpAddres...
#include "../headers/connection.h" Connection::Connection(bool lanGame) { LOG("Podaj port servera: "); std::cin >> serverJoinPort; try { info = LoadFromFiles::LoadNetworkInfo(); } catch (const char * e) { throw e; } if (lanGame == true) { if (recei...
#include "common.hpp" #define M_UNROLL 6 #define N_UNROLL 8 /* * Compute C += A*B for some subblocks of A, B, and C */ template <typename MatrixA, typename MatrixB, typename MatrixC> void my_dgemm_kernel(int k, const MatrixA& A, const MatrixB& B, MatrixC& C) { /* * Step 3: * * Now that we've unro...
#include <shadowmocap.hpp> #include <asio/awaitable.hpp> #include <asio/co_spawn.hpp> #include <asio/experimental/awaitable_operators.hpp> #include <asio/io_context.hpp> #include <asio/ip/tcp.hpp> #include <asio/stream_file.hpp> #include <chrono> #include <exception> #include <iostream> #include <string> #include <st...
/* A Round of Golf puzzle (Dell Logic Puzzles) in Gecode. From http://brownbuffalo.sourceforge.net/RoundOfGolfClues.html """ Title: A Round of Golf Author: <NAME> Publication: Dell Favorite Logic Problems Issue: Summer, 2000 Puzzle #: 9 Stars: 1 When the Sunny Hills Country Club golf course is...
/* author: <NAME> * license: FreeBSD License * copyright: Copyright (C) 2016 <NAME> */ #include <Python.h> #include "libsvm_file.h" #include "string_kernel.h" #include "sum_string_kernel.h" #include <sstream> #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include <numpy/arrayobject.h> // static PyArrayObject *...
// Copyright (c) 2009-2013 University of Twente // Copyright (c) 2009-2013 <NAME> <<EMAIL>> // Copyright (c) 2009-2013 <NAME> <<EMAIL>> // Copyright (c) 2009-2013 Eindhoven University of Technology // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // h...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #include "hash.h" #include "protocol.h" #include "util.h" #include "utilstr...
#include <windows.h> #define IStream int #include <gdiplus.h> #include <gradienttst.hxx> #include <report.hxx> #include <epsilon.hxx> #include <tsterror.hxx> // compiler complained abs() ambiguous call to overloaded functions! #define ABS(x) ((x) > 0) ? (x) : -(x) GradientTst::GradientTst(VOID) { ...
#include <EigenFaceVector.h> #include <EigenFace.h> #include <QBuffer> #include <QDomElement> #include <QIODevice> #include <QStringList> #include <Return.h> #include <math.h> /* EigenFaceVector VectorId; int PersonKey, FaceKey; qreal Residual; QVector<qreal> coefficients; */ Eigen...
// TreasureHuntGame.cpp : This file contains the 'main' function. Program execution begins and ends there. // Author: <NAME> // Purpose: Player has to guess X and Y coordinates to find the hidden treasure (T). // #include <iostream> #include <string> #include <iomanip> using namespace std; // GLOBAL CONST...
#include "SlaughterVst.h" #include "SlaughterEditor.h" #include <WaveSabreCore.h> using namespace WaveSabreCore; AudioEffect *createEffectInstance(audioMasterCallback audioMaster) { Helpers::Init(); return new SlaughterVst(audioMaster); } SlaughterVst::SlaughterVst(audioMasterCallback audioMaster) : VstPlug(audio...
#include "replay.h" #include "game_qs.h" #include "Input.h" #include <cstdlib> #include <cstring> #include <iomanip> #include <sstream> // clang-format off enum packed_input_mask { pi_left = 1 << 0, pi_right = 1 << 1, pi_up = 1 << 2, pi_down = 1 << 3, pi_a = 1 << 4, pi_b = 1 ...
/* * Copyright (c) 2020, NVIDIA 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 applic...
#include "common/rule_induction/rule_induction_top_down.hpp" #include "common/rule_refinement/score_processor.hpp" #include "common/indices/index_vector_complete.hpp" #include "common/validation.hpp" #include "omp.h" #include <unordered_map> TopDownRuleInduction::TopDownRuleInduction(uint32 minCoverage, uint32 maxCon...
/// Nachos initialization and cleanup routines. /// /// Copyright (c) 1992-1993 The Regents of the University of California. /// 2016-2017 Docentes de la Universidad Nacional de Rosario. /// All rights reserved. See `copyright.h` for copyright notice and /// limitation of liability and disclaimer of warr...
// nnet2bin/nnet-copy-egs-discriminative.cc // Copyright 2012-2013 Johns Hopkins University (author: <NAME>) // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // ...
#include <iostream> #include <fstream> #include <filesystem> #include <regex> #include <string> #ifdef __linux__ #include <unistd.h> #include <climits> #elif _WIN32 #endif #include "logger.h" #include "wtypes.h" using namespace wcore; namespace fs = std::filesystem; static fs::path self_path_; static fs::p...
#include "Structure.h" #include "StructureBuilder.h" #include "Tile.h" #include "HandUI.h" #include "AssemblingMachine1.h" #include "BurnerMiningDrill.h" #include "TransportBelt.h" #include "BurnerInserter.h" #include "StoneFurnace.h" #include "WoodenChest.h" #include "FastTransportBelt.h" #include "ExpressTransportBel...
#include <playapi/util/http.h> #include <cassert> #include <zlib.h> #include <Net/Http/V1/RequestImpl.h> #include <Net/Http/Request.h> #include <Net/Http/Response.h> #include <Net/Http/V1/ResponseImpl.h> #include <Net/../utility.h> #include <Net/TLSSocket.h> #include <cstring> #include <iostream> using namespace play...
#include "sequence.h" #include "counting_sort.h" #include "get_time.h" #include "strings/string_basics.h" #include "strings/suffix_array.h" #include "strings/lcp.h" #include "parse_command_line.h" #include "random.h" #include "stlalgs.h" using namespace pbbs; template <class Int> std::pair<sequence<uchar>, size_t> bw...
/* * Created on April 5 2020 * * Copyright (c) 2020 - <NAME> * <EMAIL> * * This file is part of the STM32 Class Factory project. */ #include "Wire.hpp" Wire::Wire( I2C_HandleTypeDef *i2c_peripherial_p ){ // We save the peripherial data to a local variable. i2c_peripherial = i2c_peripherial_p; } void Wire::begin(...
#include <iostream> #include <ros/ros.h> #include <std_msgs/Int32.h> #include <geometry_msgs/Twist.h> #include <geometry_msgs/Pose.h> #include <gazebo_msgs/ModelState.h> #include <gazebo_msgs/ModelStates.h> #include <rms/TakeOff.h> #include <rms/Land.h> #include <rms/GoToWaypoint.h> enum DroneState { Landed, TakingOff...
#include "AddHistory.h" #include "ui_AddHistory.h" #include <utils/CommonUtils.h> #include <utils/DatabaseUtils.h> #include <notice/NoticeWidget.h> #include <QTextBlock> #include <index/IndexMain.h> AddHistory::AddHistory(QWidget *parent) : QWidget(parent), ui(new Ui::AddHistory) { ui->setupUi(this); ...
/// /// \class l1t::Stage2Layer2JetSumAlgorithmFirmwareImp1 /// /// \author: <NAME> /// /// Description: first iteration of stage 2 jet algo #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "L1Trigger/L1TCalorimeter/interface/Stage2Layer2JetSumAlgorithmFirmware.h" #include "L1Trigger/L1TCalorimeter/i...
#include <vector> #include <string> #include <sstream> #include <algorithm> #include "log.h" #include "simulator.h" #include "config.h" #include "transport.h" #include "tile.h" #include "tile_manager.h" using namespace std; // -- outputSummary // // Collect output summaries for all the tiles and send them to process ...
#include <algorithm> #include <cstring> #include <ctime> #include <fstream> #include <iostream> #include <memory> #include <optional> #include <string> #include <vector> #include <wordle.hpp> #include <resources.hpp> #include <solver.hpp> int main() { run(); } static std::optional<wordle::Word> input(); class St...