text
stringlengths
3.08k
12.5k
/* * @file Server.cpp * Adapted from examples in uw1-320-lab.uwb.edu:~css432/examples/, by * <NAME> * @brief This program sets up a server that expects a connection from one * client. The * @author <NAME>, SID 1161836 * @date October 9, 2012 */ #include <cstdlib> #inclu...
/* * Copyright 2009, The Android Open Source Project * * 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 ...
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* Cache tester by <NAME> (<EMAIL>) */ /* Derived from fe_tester.cpp */ using namespace std; #include <iostream> #include <sstream> #include <string> #include "fe.h" #include "dbid.h" #include "hashutil.h" #include "timing.h" using fawn::HashUtil; usin...
// Copyright (c) 2021 MIT Digital Currency Initiative, // Federal Reserve Bank of Boston // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "uhs/transaction/transaction.hpp" #include "uhs/transaction/wal...
// traits.cpp // Copyright (c) 2019, zhiayang // Licensed under the Apache License Version 2.0. #include "ast.h" #include "errors.h" #include "typecheck.h" #include "polymorph.h" #include "memorypool.h" #include "ir/type.h" TCResult ast::TraitDefn::generateDeclaration(sst::TypecheckState* fs, fir::Type* infer, cons...
#include "dmzRuntimeContextDefinitions.h" #include "dmzRuntimeContextMessaging.h" #include "dmzRuntimeMessageContext.h" dmz::Message dmz::RuntimeContextDefinitions::create_message ( const String &Name, const String &ParentName, RuntimeContext *context, RuntimeContextMessaging *messagingContext)...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
#include <stdio.h> #include <malloc.h> #include <string.h> #include <stdlib.h> struct linkedNode; struct mainNode{ char cityName[100]; linkedNode* linkedNodes; mainNode* next; }; struct linkedNode { //char cityName[100]; //another way of implementing it mainNode* destination; linkedNode* next; int travelTime;...
/* * Copyright (C) 2015 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...
/***************************************************************************** TestSvfAntisat.cpp Author: <NAME>, 2020 --- Legal stuff --- This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms ...
/* Sitemon Copyright 2010-2019 <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 writin...
// Copyright (C) 2018 ETH Zurich // Copyright (C) 2018 UT-Battelle, LLC // All rights reserved. // // See LICENSE for terms of usage. // See CITATION.md for citation guidelines, if DCA++ is used for scientific publications. // // Author: <NAME> (<EMAIL>) // // This file tests the MatrixView<CPU> class. #include "dca/l...
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
/* * Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates * * 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 req...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <folly/executors/ManualExecutor.h> #include <folly/init/Init.h> #include <folly/portability/GTest.h> #include <deque> #inc...
#include <functional> #include <string> #include <stdexcept> #include <vector> #include <unordered_map> #include <unordered_set> #include <cstdint> #include <cmath> #include <sstream> #include <boost/property_tree/ptree.hpp> #include "midgard/logging.h" #include "baldr/location.h" #include "midgard/util.h" #include "m...
/* * 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 "delfem2/mshio.h" #include "delfem2/mshtopo.h" #include "delfem2/mshmisc.h" // ------ #include "glad/glad.h" #include <GLFW/glfw3.h> #include "de...
/* * Copyright © 2012, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * you may not use t...
#define _SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING #include <ThreadPool.h> #include <cmath> // import pow, cos, sqrt #include <multiplierless/rootfinding.hpp> // using vec2 = numeric::vector2<double>; // using mat2 = numeric::matrix2<vec2>; auto makeG(const vec2& vr, const vec2& vp) -> mat2 { const auto& [r, ...
/** * Copyright (c) 2012-2014 Microsoft Mobile. */ #include "imageanalyzer.h" #include <QtGui> #include <math.h> const int ThumbnailDiv(8); const int ThumbnailMiddle(4); /*! \class ImageAnalyzer \brief Analyze an image for other components to display. */ /*! Construct the analyzer and reset it's informa...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
/** * \file imperative/python/src/common.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2020 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "...
/* * Copyright (c) 2013, <NAME> * https://github.com/TheJare/imgp.git * * 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 * ...
#include "Drink.h" #include <iostream> #include <string> #include <vector> #include <sstream> #include <fstream> #include <chrono> #include <thread> #include <limits> using namespace std; using namespace std::this_thread; using namespace std::chrono; void diningHallIngredientsPopulate(vector<string> &usersIngredients...
// 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 "src/sys/appmgr/storage_watchdog.h" #include <dirent.h> #include <fcntl.h> #include <fuchsia/io/c/fidl.h> #include <lib/async/cpp/task.h> #includ...
/* Copyright 2013-present Barefoot Networks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
/* Copyright (c) 2011-2014, <NAME> - IntRoLab - Universite de Sherbrooke 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 is a part of TotemDQM and TOTEM offline software. * Authors: * <NAME> (<EMAIL>) * ****************************************************************************/ #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FW...
// // Created by Silmont on 2019/11/23. // #include "RoomType.h" #include <random> #include <time.h> #include <iostream> default_random_engine gen = default_random_engine((unsigned) time(NULL)); int monster_floor, monster_x, monster_y; int princess_floor, princess_x, princess_y; int monster_blood = 50; int princess_n...
#include "Maths.h" void Mat4x4::MakeIdentity() { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) this->m[c][r] = ( r == c ? 1.0f : 0.0f); } void Mat4x4::MakeProjection(float near, float far, float fov) { float fov_rad = 1.0f / tanf(fov * 0.5f / 180.0f * 3.14159f); this->Make...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
/* * Copyright (c) 2010-2020 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 rights...
/** * @file SerialMonitor.cpp * @brief SerialMonitor for Linux * @date 2022-01-08 * * @copyright Copyright (c) 2022-. * MaSiRo Project. * */ #include "SerialMonitor.h" #include <fcntl.h> #include <unistd.h> // ==================================================== // #define SERIALMONITOR_DEBUG 0 ...
#include "../../include/utilities/optimization.hpp" // Compute the x value fo the optimum of a linear regression std::vector<long double> quad_max(std::vector<long double> x, std::vector<long double> y){ // Initialize things std::vector< std::vector<long double> > A(3, std::vector<long double>(4, 0.0)); s...
/* Copyright (c) 2014 Aerys 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, sublicens...
/** * BSD 3-Clause License * * Copyright (c) 2019, <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: * * 1. Redistributions of source code must retain the above copyright notice, thi...
#include "ui_topbar.h" #include "battery.h" #include "ui.h" #include "resources-gen.h" #include <stdio.h> UiTopBar::UiTopBar() : shotNameDirty(true), gpsDirty(true), numSatsDirty(true), batteryDirty(true), rssiDirty(true), chargerDirty(true) { } void UiTopBar::init() { markDirty(); dr...
#include "ai/hl/stp/tactic/shoot_goal_tactic.h" #include "ai/hl/stp/action/move_action.h" #include "ai/hl/stp/evaluation/calc_best_shot.h" #include "ai/hl/stp/evaluation/intercept.h" #include "geom/rectangle.h" ShootGoalTactic::ShootGoalTactic(const Field &field, const Team &friendly_team, ...
#include "basilio_chat.h++" #include <iostream> #include <sstream> #include <cstring> #include <cstdint> #include <thread> #include <mutex> #include <chrono> /* XXX */ using namespace vanwestco; void basilio_chat::process_console() { bool running = true; while (running) { std::string line = term...
#include "scanner.hpp" Token::Token(TokenType type, const std::string& source, int start, size_t length, int line) { this->type = type; this->source = source.substr(start, length); this->length = length; this->line = line; } bool Scanner::isAtEnd() { return this->current == this->source.length();...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "xfa/src/fgas/src/fgas_base.h" #include "fx_unicode.h" void F...
#include "AttachGeometryPopup.hpp" #include "src/UI/HelpMarker.hpp" #include "src/Utils/ScopeGuard.hpp" #include "src/Utils/FilesystemHelpers.hpp" #include "src/App.hpp" #include <OpenSim/Simulation/Model/Model.h> #include <OpenSim/Simulation/Model/PhysicalFrame.h> #include <imgui.h> #include <nfd.h> #include <cstdd...
// Harris.cpp : 定义控制台应用程序的入口点。 // //#include "stdafx.h" #include "opencv2/core.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/highgui.hpp" #include <iostream> #include <sys/types.h> #include <vector> #include <string.h> #include <math.h> using namespace cv; using namespace std; void compareMat(Mat& s1, Mat& s2...
/* Copyright (c) 2003-2007 <NAME> <<EMAIL>> Modified by <NAME> <<EMAIL>> Copyright (c) 2015-2018 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source cod...
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 restr...
/* graphite_connector_test.cc <NAME>, 3 August 2011 Copyright (c) 2011 Datacratic. All rights reserved. Test for the carbon connector. */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include "soa/service/carbon_connector.h" #include "jml/arch/atomic_ops.h" #inclu...
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2014 <NAME> http://bulletphysics.org //This file is Copyright (c) 2014 Google Inc. 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 u...
#include <Arduino.h> #include "AdvServo.h" #include "InverseKinematics.h" #include "Util.h" #include <Servo.h> using namespace std; String serialResponse = ""; char msg0[] = "0,-999.9,-999.9,-999.9"; // general structure for normal position command char msg1[] = "0,-999.9,-999.9,-999.9,-999.9,-999.9,-999.9"; // gener...
#include "TriangulateGlobal.hpp" #include <cmath> #include <cstring> int TriangulateGlobal::Triangulate(float *vol_data, std::vector<float>& vertex_data, std::vector<int>& triangle_data, int *n, float *s, int *nvtx, int *ntri, float mu, int cmp) { int i, iz; // initializations: NVtx = 0; NTri = 0; IsoValue =...
/********************************************************************* Copyright (c) 2018 Audi Autonomous Driving Cup. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code ...
// Copyright 2017 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 "chrome/browser/win/conflicts/module_event_sink_impl.h" #include <windows.h> #include <psapi.h> #include <memory> #include <utility> #include ...
#include <iostream> #include <winsock2.h> #include <ws2tcpip.h> #include <string> #include <thread> #include <vector> #pragma comment (lib, "Ws2_32.lib") #define IP_ADDRESS "192.168.56.1" #define DEFAULT_PORT "3504" #define DEFAULT_BUFLEN 512 struct client_type { int id; SOCKET socket; }; const char OPT...
// // HuffmanTree.cpp // odevs // // Created by <NAME> on 17.12.2017. // Copyright © 2017 <NAME>. All rights reserved. // #include "HuffmanTree.hpp" #include <iostream> #include <fstream> #include <sstream> #include <bitset> #include <algorithm> using namespace std; HuffmanTree::HuffmanTree(string s) { messa...
#include "PortSchema.h" uint8_t portSchema::encodeSensorDataToPayload(sensorData *sensor_data, uint8_t *payload_buffer, uint8_t start_pos) { /* If the data should be included in the payload according to the portSchema, then encode the value. * he order of these if statements is the order the sensor data will ...
#pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma GCC target("sse4,popcnt,abm,mmx,tune=native") #include <bits/stdc++.h> #define gc getchar_unlocked() #define pc(x) putchar_unlocked(x) template<typename T> void scan(T &x){x = 0;register bool _=0;register T c=gc;_=c==45;c=_?gc:c;while(c<48|...
#include <unistd.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/epoll.h> #include <netdb.h> #include <string.h> #include "epollinterface.h" #include "connection.h" #include "Logger.h" #include "netutils.h" #define BUFFER_SIZE 4096 struct data_buffer_entry { int is_clo...
#include "ShaderManager.hpp" #include "glad/glad.h" #include <glm/gtc/type_ptr.hpp> #include <fstream> #include <iostream> #include <sstream> #include <utility> #include <filesystem> ShaderProgram::ShaderProgram(const ShaderIdentifier& id) : version{id.version}, shaderProgram{ShaderProgramFromFiles(id.vertShade...
/* * Copyright (c) 2015 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
// matrix/numpy-array-test.cc // Copyright 2020 Mobvoi AI Lab, Beijing, China (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. // You may obtain...
// // Minimum Cost Maximum Flow (Tomizawa, Edmonds-Karp's successive shortest path) // // Description: // Given a directed graph G = (V,E) with nonnegative capacity c and cost w. // The algorithm find a maximum s-t flow of G with minimum cost. // // Algorithm: // Tomizawa (1971), and Edmonds and Karp (1972)'s /...
#include <stdio.h> #include <stdlib.h> #include <hls_video.h> #include <iostream> #include "hls_opencv.h" #include "ap_fixed.h" #include "hls_half.h" typedef half data_type; using namespace std; // typedef ap_fixed<16, 4> data_type; // typedef float data_type; #define IMAGE_SIZE 256 #define IMAGE_CHANNELS 1 // type...
#include "FcgiPoll.h" #include "fastcgi.h" #include "fcgimisc.h" #include "fcgios.h" #include <sys/epoll.h> #include <fcntl.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> FcgiPollBase::FcgiPollBase() { m_poll = epoll_create1(0); m_refreshListeners = false; m_accept = false; m_stop = tr...
/* * See the file LICENSE for redistribution information. * * Copyright (c) 2004,2009 Oracle. All rights reserved. * * ******* * * queryWithContext * * This program illustrates how to query for documents that require namespace * usage in the query, and how to use variables in the query. You should pre-load the * con...
// Copyright (C) 2019 by <NAME>, Rector and Visitors of the // University of Virginia, University of Heidelberg, and University // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and University ...
#include <Arduino.h> // PCB Factory - Tool control board // using Pronteer.nz Grbl CNC shield v 3.00 clone // ================================================ // INTERFACE TO GRBL CNC CONTROLLER // ================================================ // the below pins are connected to the Grbl cnc controller board // ...
extern "C" { #include "postgres.h" #include "fmgr.h" #include "catalog/pg_type.h" #include "utils/uuid.h" #include "executor/spi.h" #include "provsql_utils.h" PG_FUNCTION_INFO_V1(save_circuit); } #include <csignal> #include "BooleanCircuit.h" #include "provsql_utils_cpp.h" #include "dDNNFTreeDecompositionBuilder...
#include <iostream> #include "TriangulationAlgorithm.h" #include "Parametrics.h" std::vector<QVector3D> Parametrics::createTriangles(const std::vector<QVector3D> &points, int bucketsize) { std::vector<QVector3D> triangles; size_t s = points.size(); for (...
#include "UtilityFunc.h" #include <random> #include <stdlib.h> using namespace std; using std::string; using nanogui::Window; using nanogui::Widget; using nanogui::Button; using nanogui::Label; using nanogui::Widget; using nanogui::Slider; Eigen::MatrixXd V; Eigen::MatrixXi F; Eigen::MatrixXd C; igl::viewer::Viewe...
/* * * Copyright (c) 2015-2017 <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 ...
#include "meshloader.h" #include "fileio.h" #include "log.h" #include "gfx.h" bool read_int(const char **s, int &i) { while ((**s) != '\0' && !isdigit(**s)) (*s)++; if (**s == '\0') return false; i = 0; while ((**s) != '\0' && isdigit(**s)) { i *= 10; i += int(**s) - int('0'); (*s)++; } return true; }...
#include "stdafx.h" #include "ClosestPointOnMesh.h" //std::stringstream ss; //ss << "Number of points: " << N; //MGlobal::displayWarning(ss.str().c_str()); const char kMeshFlag[] = "mesh"; const char kMeshFlagShort[] = "m"; const char kPointsFlag[] = "points"; const char kPointsFlagShort[] = "p"; const char kWorldSpa...
/* * Software License Agreement(BSD License) * * Copyright(c) 2011, The MITRE 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 mu...
 #include "../libpng/png.h" #include <iostream> #include <fstream> #include <cstdio> #include <cstring> #include <vector> #include <string> #include <tuple> #include <regex> #include <filesystem> using sample_type = unsigned char; using width_type = size_t; using height_type = size_t; using image_type = std::tuple<st...
#define _LARGEFILE_SOURCE #define _LARGEFILE64_SOURCE #define _FILE_OFFSET_BITS 64 #include "mpi.h" #include <stdio.h> /* printf, fopen */ #include <stdlib.h> /* exit, EXIT_FAILURE */ #include <string.h> #include <unistd.h> #include <fcntl.h> #include <dirent.h> #include <sys/types.h> #include <sys/stat.h>...
#include "Texture.h" Texture::Texture(const std::string &filePath, const std::string &fallback) : _paletteLength(0), _texLength(0), _texCmpLength(0), _texHeight(0), _texWidth(0), _type(TextureType::Unknown) { FILE *file = fopen(filePath.c_str(), "rb"); if (!file) { file = fopen(fallback.c_str(), "rb"); } ...
#include "WriteThread.h" #include "Payload.h" #include <chrono> #include <thread> #include <stdlib.h> #include <pcapplusplus/Packet.h> #include <pcapplusplus/EthLayer.h> #include <pcapplusplus/VlanLayer.h> #include <pcapplusplus/IPv4Layer.h> #include <pcapplusplus/TcpLayer.h> #include <pcapplusplus/HttpLayer.h> #incl...
#include "gl_utils.h" #include <stdio.h> #include <time.h> #include <assert.h> #include <string.h> bool restart_gl_log () { FILE* file = fopen (GL_LOG_FILE, "w"); if (!file) { fprintf ( stderr, "ERROR: could not open GL_LOG_FILE log file %s for writing\n", GL_LOG_FILE ); return false; } time_t now =...
#include "filesys.hpp" #include "http.hpp" #include "prog_options.hpp" #include <iostream> #include <sstream> #include <vector> #include <regex> static void _fill_html_body (std::stringstream &ss, std::vector<FSEntry> &tree, std::string &uri); static std::string _get_parent_dir (std::string &path); static void...
#include<bits/stdc++.h> using namespace std; typedef struct Node { int data; Node *parent, *left, *right; int height = 1; } node; node *tree = nullptr; void create_avl_tree(node *&, vector<int> &); void insert(node *&, int); void rotateRight(node *&); void rotateLeft(node *&); void rebalance(node *&); voi...
#include "Vorb/stdafx.h" #include "Vorb/ui/widgets/Slider.h" #include "Vorb/ui/MouseInputDispatcher.h" #include "Vorb/ui/UIRenderer.h" #include "Vorb/ui/widgets/Viewport.h" #include "Vorb/utils.h" vui::Slider::Slider() : Widget(), m_barColor(color::LightGray), m_slideColor(color::DarkGray), m_slideHove...
#include <iostream> #include <fstream> #include "include/v8.h" #include "src/execution/isolate.h" #include "src/objects/objects.h" #include "src/objects/js-regexp.h" #include "src/objects/js-regexp-inl.h" #include "src/regexp/regexp-bytecode-generator.h" #include "src/regexp/regexp-bytecodes.h" #include "src/regexp/re...
#include "AsyncNotificationComponent.h" #include "ThemeData.h" #include "components/ComponentGrid.h" #include "components/NinePatchComponent.h" #include "components/TextComponent.h" #include "LocaleES.h" #include "Window.h" #include <SDL_timer.h> #define PADDING_PX (Renderer::getScreenWidth()*0.01) AsyncNotification...
#include "process.h" #include <conio.h> #include <Windows.h> #include <sstream> #define bzero(a) memset(a,0,sizeof(a)) //easier -- shortcut bool _isWinNT() //check if we're running NT { OSVERSIONINFO osv; osv.dwOSVersionInfoSize = sizeof(osv); GetVersionEx(&osv); return (osv.dwPlatformId == VER_PLATFORM_WIN32_N...
// <NAME> "Damdoshi" // Hanged Bunny Studio 2014-2018 // // Lapin library #include "lapin_private.h" t_bunny_parallax *bunny_read_parallax_wh(t_bunny_configuration *cnf, unsigned int width, unsigned int height) { struct bunny_parallax *px; if ((px = new (std::nothrow) struct bunny_parallax) == NUL...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2012 Couchbase, 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 * * h...
// Include DTSource.h if you want to include all the headers. #define CGAL_EIGEN3_ENABLED #include <CGAL/Surface_mesh.h> //#include <CGAL/extract_mean_curvature_flow_skeleton.h> #include <CGAL/Mean_curvature_flow_skeletonization.h> #include <CGAL/Simple_cartesian.h> #include <CGAL/boost/graph/graph_traits_Surface_mes...
/** * @file * This file is part of SeisSol. * * @author <NAME> (c.uphoff AT tum.de, http://www5.in.tum.de/wiki/index.php/Carsten_Uphoff,_M.Sc.) * * @section LICENSE * Copyright (c) 2017, SeisSol Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modificati...
#include <fstream> #include <iostream> #include <string> #include "verilator_sim.hpp" /*! @brief Instance a new verilator simulation of the DUT. */ verilator_sim::verilator_sim() { // Create a new instance of the dut. this -> dut = new Vrvm_core_axi4; // Create a new main memory image. thi...
/* * Copyright (c) 2018-present, <EMAIL>. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "AlFFEncoder.h" #include "Logcat.h" #include "HwVideoFrame.h" #include "HwAudioFrame.h" #include "HwFFMuxer.h" #include "HwFFCodec.h" #incl...
/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * 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, or (at your option) * any later version. * * ...
#include "ga.h" #include "utils.h" #include <cfloat> #include <algorithm> #include <cmath> GA::GA( float mutation_chance, float mutation_scale, uint32 dna_splits, float dna_twist_chance, float parent_fitness_scale, uint32 elitism ): HeapPopulation(), generation(0), best_score( -FLT_MAX ), params( {mutation_chanc...
// // MIT License // // Copyright (c) 2022 <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,...
#include <CtrlLib/CtrlLib.h> using namespace Upp; #include <Functions4U/Functions4U.h> #include "audioSystem.h" int GetMainVolume() { int left, right; if(!GetMainVolume(left, right)) return -1; return Average(left, right); } bool SetMainVolume(int vol) { return SetMainVolume(vol, vol); } ...
// // Created by <NAME> (EI) on 10/02/2018. // #pragma once #include <memory> #include <cstdint> #include <iostream> #include <string> #include <unordered_set> #include <set> #include <vector> #include <cstddef> #include <list> #include <fcntl.h> #include <unistd.h> #include <algorithm> #include <sdglib/factories/KMe...
#include "igen_lib.h" #include "igen_math.h" #include <math.h> #include <stddef.h> #include <stdlib.h> static f64_I _y1[1024]; static f64_I _y2[1024]; static void WeightedSum_opt(f64_I *W, f64_I *b, f64_I *x, f64_I *y, int n_in, int num_n) { for (int i = 0; i < num_n; i += 2) { f64_...
#include <iostream> #include <memory> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif #include "SDL2/SDL.h" #include "GL/glew.h" #include "engine/error.h" #include "engine/input.h" #include "world.h" namespace { void disable_dpi_scaling() { #ifdef _WIN32 // Silence gcc >= 8 warning a...
#include <math.h> #include "mex.h" #include "common.h" // All matlab values are matrices, even scalars! double get_scalar(const mxArray*prhs[], int idx) { double * d = mxGetPr(prhs[idx]); return d[0]; } // Arguments: A, y, lambda, algo (1=lasso,2=logreg), threshold, K, maxiter void mexFunction( int nlhs, ...
//********************************************************* // Top_100.cpp - Create a Top 100 Link/Lane/VC Report //********************************************************* #include "TripSum.hpp" //--------------------------------------------------------- // Top_100_Report //-----------------------------------------...
/** ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
// This software is released as part of the k8psh project. // Portions of this software are public domain or licensed under the MIT license. (See the license file for details.) #define main k8pshMain #include "k8psh.cxx" #undef main #include <chrono> #include <cstdio> #include <cstdlib> #include <fstream> #include <i...