text
string
size
int64
token_count
int64
#include "../vidhrdw/liberatr.cpp" /*************************************************************************** Liberator Memory Map (for the main set, the other one is rearranged) (from the schematics/manual) HEX R/W D7 D6 D5 D4 D3 D2 D2 D0 function ---------+-----+------------------------+----------...
17,753
8,253
//===--- opencl_example.cpp - Example of using Acxxel with OpenCL ---------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
2,453
894
/************************************************************************//** * @file PeerIOSerialControl.cpp * @brief Arduino Peer IO-Control through Serial Port Communications. * @authors * tgit23 1/2017 Original ******************************************************************************/ #in...
12,174
4,429
/*------------------------------------------------------------------------------* * (c)2016, All Rights Reserved. * * ___ ___ ___ * * /__/\ / /\ / /\ * * \ \:\ / /:/ / /::\ * * ...
23,188
8,170
#ifndef KORE_VALUE_TYPE_HPP #define KORE_VALUE_TYPE_HPP #include <ostream> #include "frontend/internal_value_types.hpp" namespace kore { enum class ValueTag { Bool, I32, I64, F32, F64, Str, }; /// The types for the vm's runtime values implemented /// a...
1,996
664
// OutboxDlg.cpp : implementation file // #include "stdafx.h" #include "ConfigTest.h" #include "OutboxDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif typedef unsigned long ULONG_PTR, *PULONG_PTR; typedef ULONG_PTR DWORD_PTR, *PDWORD_PTR; #includ...
3,707
1,625
#include <bits/stdc++.h> using namespace std; bool ratInAMaze(char maze[1001][1001],bool path[1001][1001], int n, int m,int i, int j){ if(i==n-1 && j==m-1){ path[i][j]=1; return true; } if(maze[i][j]=='X') return false; if(i>=n || j>=m){ return false; } path[i][j]=1; ...
1,010
463
/*============================================================================= GLSLShaderSystem.cpp Project: Sonata Engine Author: Julien Delezenne =============================================================================*/ #include "GLSLShaderSystem.h" #include "GLSLShaderProgram.h" namespace SE_GL { GLSLShade...
1,252
437
#ifdef PEGASUS_OS_FREEBSD #ifndef __UNIX_POLICYREPOSITORYINPOLICYREPOSITORY_PRIVATE_H #define __UNIX_POLICYREPOSITORYINPOLICYREPOSITORY_PRIVATE_H #endif #endif
166
90
// // Copyright (c) 2019 Singular Inversions Inc. (facegen.com) // Use, modification and distribution is subject to the MIT License, // see accompanying file LICENSE.txt or facegen.com/base_library_license.txt // // Compile target platform and compiler specific definitions. // // ANSI defines: // _DATE_ // _FI...
2,211
873
/* -*-C++-*- ***************************************************************************** * * File: ComExtents.C * Description: Provides conversion functions to convert Maxsize and Allocate * attributes to primary-extents, secondary-extents and max-extents * * Created: 11/28/94 * La...
3,937
1,221
#include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <string.h> #include <FreeRTOS.h> #include <task.h> #include "logging.hpp" static const size_t bytesPerLine = 16; static inline uint32_t ticks2ms(TickType_t ticks) { return (ticks * portTICK_PERIOD_MS); } static inline uint32_t getSeconds(TickTy...
1,743
623
/* $Id: err_handler.cpp 343796 2011-11-09 18:12:57Z ivanovp $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" u...
2,004
626
/* * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * */ #include "libi3.hpp" #include "queue.hpp" #include "memory.hpp" #include <stdint.h> #include <stdlib.h> #include <string.h> struct Colorpixel { char hex[8]; ...
2,249
906
/**************************************************************************** ** $Id: adatafield.cpp,v 1.1 2008/11/05 21:16:28 leader Exp $ ** ** Code file of the Ananas database field of Ananas ** Designer and Engine applications ** ** Created : 20031201 ** ** Copyright (C) 2003-2004 Leader InfoTech. All rights reser...
3,741
1,434
// _______ _______ ______ _______ ___ ___ _______ _______ _______ // | | | | __ \ | | | ___| | | | // | - | | | < - | | | ___| - | | // |_______|_______|___|__|_______|\_____/|_______|_______|__|____| // ishani.org 2022 e.t.c. ...
1,841
716
#include <imgpp/imgpp.hpp> int main() { // Test clone { imgpp::Img image(2, 2, 1, 1, 32, true, true, 1); image.ROI().At<float>(0, 0) = 1.0f; image.ROI().At<float>(0, 1) = 2.0f; image.ROI().At<float>(1, 0) = 3.0f; image.ROI().At<float>(1, 1) = 4.0f; imgpp::Img clone = image.Clone(); // M...
596
259
/* Copyright 2001, 2019 IBM Corporation * * 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 * following d...
7,613
3,093
class Solution { public: vector<int> pancakeSort(vector<int>& arr) { int n = arr.size(); vector<int> index(n), ret; for(int i = 0; i < n; ++i) index[arr[i] - 1] = i; for(int i = n - 1; i > 0; --i) if(index[i] != i) { // AxBy ret.push_back(index...
791
287
/////////////////////////////////////////////////////// // SgAxisView.C: A component class to show a plot axis. //////////////////////////////////////////////////////// #include "SgAxisView.h" #include "ErrorManager.h" #include <Xm/DrawingA.h> #include <Xm/Form.h> #include <iostream> using namespace std; #include <asse...
11,237
4,309
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
8,776
3,588
// Copyright 2016 The SwiftShader 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 b...
12,706
5,020
#include <vector> #include <boost/asio.hpp> #include "server/server_setting.hpp" #include "session/session_data.hpp" #include "logger/log.hpp" #include "../message_parameter_validator.hpp" #include "connection_test_request_message_handler.hpp" using namespace std; using namespace boost; namespace pgl { bool test_c...
8,133
2,912
// // Instruction.hpp // Clock Signal // // Created by Thomas Harte on 15/01/21. // Copyright © 2021 Thomas Harte. All rights reserved. // #ifndef InstructionSets_M50740_Instruction_h #define InstructionSets_M50740_Instruction_h #include <cstdint> #include <iomanip> #include <string> #include <sstream> #include "...
8,569
3,632
/** * Copyright 2020 The Magma Authors. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, ...
1,985
622
#include "system.hpp" #include <thread> namespace FirnLibs{ namespace System{ int GetProcessorCount() { return std::thread::hardware_concurrency(); } }}
160
55
/* * Copyright (c) 2017, Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publis...
7,714
2,762
/**************************************************************************** ** Copyright (c) 2019, Fougue Ltd. <http://www.fougue.pro> ** All rights reserved. ** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt ****************************************************************************/ #includ...
2,191
647
/*************************************************************************** * * * Author: Amilkar Quintero, Feb 2015 *************************************************************************** * * Description: Monte Carlo Ist Ladder Hit Collection class * *******************************************************...
2,017
595
// util_GetIdent.inl // #ifdef LZZ_ENABLE_INLINE #define LZZ_INLINE inline #else #define LZZ_INLINE #endif namespace util { LZZ_INLINE util::Ident getIdent (util::String const & str) { return getIdent (str.c_str ()); } } #undef LZZ_INLINE
250
108
#include "../std_lib_facilities.h" void skip_to_int() { if (cin.fail()) { cin.clear(); char ch; while (cin >> ch && !isdigit(ch)); if (!cin) error("Brak danych"); cin.unget(); } } int get_int() { int n = 0; while(true) { if(cin >> n) return n; cout << "That was n...
870
347
#include <mvnc.h> #include <vector> #include <stdio.h> #include <string> #include <chrono> #include <unistd.h> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #include "movidiusdevice.h" const int req_width = 227; const int req_height = 227; const bool show_perfs = false; const bool show_results = false; int...
5,703
2,067
#include <iostream> using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: ListNode* oddEvenList(ListNode* head) { if ( !head ) return head; ListNode *even = NULL, *tail = NULL; ListNod...
866
263
/* * Copyright 2001-2005, Haiku. * Distributed under the terms of the MIT License. * * Authors: * Michael Lotz <mmlr@mlotz.ch> * DarkWyrm <bpmagic@columbus.rr.com> * Stephan Aßmus <superstippi@gmx.de> */ /** Accelerant based HWInterface implementation */ #include <new> #include <malloc.h> #include <stdio.h...
22,529
9,287
// Copyright (c) 2021 xxlang@grandstream.cn. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/browser/hid/hid_chooser_context_factory.h" #include "components/keyed_service/content/browser_context_dependency_manager.h" #include "shell/browser/hid/hid_c...
1,284
379
//problem //Given a vector of integers, find the highest product you can get from three of the integers. //The input vectorOfInts will always have at least three integers. //solution // we want to do it in O(n) instead of O(n3) or O(nlgn) //so we need to follow greedy approach //we are storing 3 highest as well as 2 l...
1,488
636
#ifndef EASY_CALCULATOR_EXPRESSION_PARSER_HPP #define EASY_CALCULATOR_EXPRESSION_PARSER_HPP #include <regex> #include <string> #include <vector> #include <unordered_map> namespace Expr { extern const std::regex BLANK; enum Associativity { L, R }; template <class T> struct Operator { Associativity as...
2,474
819
#pragma once #ifndef UITSL_MPI_MPIGUARD_HPP_INCLUDE #define UITSL_MPI_MPIGUARD_HPP_INCLUDE #include <functional> #include "audited_routines.hpp" #include "mpi_utils.hpp" namespace uitsl { struct MpiGuard { MpiGuard() { uitsl::mpi_init(); } ~MpiGuard() { UITSL_Finalize(); } }; } // namespace uitsl #endif //...
360
177
// Copyright 2015 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/ui/website_settings/mock_permission_bubble_view.h" #include "base/bind.h" #include "base/run_loop.h" #include "chrome/browser/ui...
1,775
555
#include <bits/stdc++.h> using namespace std; struct cow { long long w, t; }; cow c[255]; long long dp[1000005]; int main() { //freopen("talent.in", "r", stdin); //freopen("talent.out", "w", stdout); int n, wl; cin >> n >> wl; for (int i = 1; i <= n; i++) { long long w, t; ci...
807
387
/*! * @brief Declaration of Reserve SDR Repository Request/Response. * * @copyright Copyright (c) 2017-2019 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://ww...
2,560
776
#include <iostream> using namespace std; void move_rings(int n, int src, int dest, int other); void move_a_ring(int src, int dest); int main() { int n; cout << "Enter number of rings" << endl; cin >> n; if (n >= 0) { cout << "Enter a number greater than 0" << endl; cin >> n; ...
726
278
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
1,991
640
/* * ins.cpp * * Created on: 03.06.2011 * Author: User */ #include "M16C_xx.h" instruc_t instructions[ ] = { { "Unknown", 0 }, // Unknown Operation { "ABS.B", CF_CHG1 }...
26,057
7,027
// Copyright (c) 2018-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef IOTAWALLET_HPP #define IOTAWALLET_HPP #include <interfaces/wallet.h> #include <interfaces/handler.h> #include <QObj...
4,867
1,491
namespace JRenderer { }
24
8
#include "../test.h" #include <stdint.h> #define P #define T uint8_t #include <vec.h> #define P #define T uint16_t #include <vec.h> #define P #define T uint32_t #include <vec.h> #define P #define T uint64_t #include <vec.h> #define P #define T float #include <vec.h> #define P #define T double #include <vec.h> #...
3,522
1,310
// Copyright 2019 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 "tools/binary_size/libsupersize/caspian/grouped_path.h" #include <stdint.h> #include <tuple> namespace { // Returns |s| with the last |sep| +...
2,166
752
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here...
9,403
3,873
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "spherescalechangedcommand.hpp" #include "widgets/outputconfigurationwidget.hpp" #include <QCoreApplication> SphereScaleChangedCommand::SphereScaleChangedCommand(double oldSphereScale, double newSphereScale, ...
855
235
#include "ResourceImageData.h" #include "Interface/ImageCodecInterface.h" #include "Interface/CodecServiceInterface.h" #include "Interface/ConfigServiceInterface.h" #include "Kernel/Logger.h" #include "Kernel/DocumentHelper.h" #include "Kernel/ConstString.h" #include "Kernel/AssertionMemoryPanic.h" #include "Kernel/F...
5,646
1,526
#include "BBE/MouseButtons.h" #include "BBE/Exceptions.h" bbe::String bbe::mouseButtonToString(MouseButton button) { switch (button) { case MouseButton::LEFT: return bbe::String("MB_LEFT"); case MouseButton::RIGHT: return bbe::String("MB_RIGHT"); case MouseButton::MIDDLE: return bbe::String("MB_MIDDLE"); c...
958
381
// Written by Sean M. Marks (https://github.com/seanmarks) #include "MpiOp.h" MpiOp::MpiOp(): user_function_ptr_(nullptr), is_commutative_(false) {} MpiOp::MpiOp(const MpiOp& mpi_op) { this->user_function_ptr_ = mpi_op.user_function_ptr_; this->is_commutative_ = mpi_op.is_commutative_; #ifdef MPI_ENABLED if ...
2,038
879
#pragma once #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgproc.hpp> #include <iostream> #include <stdio.h> #include <vector> #include <string> #include <algorithm> #include <cmath> #include "functions.hpp" /// <summary> /// Caculates the 3D spetial point from the given parameters. ...
5,408
2,070
// Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. // Full license terms provided in LICENSE.md file. #include <ros/package.h> #include <deep_nav_layers/segmentation_layer.h> #include <pluginlib/class_list_macros.h> #include <cv_bridge/cv_bridge.h> #include<costmap_2d/costmap_layer.h> #include <math.h> P...
7,426
2,834
// ============================= // SDL Programming // Name: ODOH KENNETH EMEKA // Student id: 0902024 // Task 18 // ============================= #include "CHighScoreList.h" #include <fstream> #include <string> #include <sstream> #include <stdexcept> ///////////////////////////////////////////////////////////////////...
1,759
520
#include "LlvmVal.h" using namespace std;
42
17
#include <iostream> #include <thread> #include <mutex> #include <condition_variable> std::mutex M; std::condition_variable threadready; // Условная переменная - позволяет блокировать один или более потоков, // пока не произойдет некое определенное действие (например, уведомлние // от другого потока) // Идея: // Ожид...
1,110
428
#include "Vorb/stdafx.h" #include "Vorb/ui/widgets/WidgetList.h" vui::WidgetList::WidgetList() : Widget(), m_spacing(10.0f), m_maxHeight(FLT_MAX) { // Empty } vui::WidgetList::~WidgetList() { // Empty } void vui::WidgetList::initBase() { m_panel.init(this, getName() + "_panel"); m_panel....
4,075
1,362
#include <iostream> using namespace std; int main() { int k, n, w, total(0); cin >> k >> n >> w; for (int i(0); i <= w; i++) total = total + k * i; if ((total - n) > 0) cout << total - n; else cout << 0; return 0; }
233
112
#include "lock.h" namespace { void WINAPI defaultCsInit (void ** object) { auto cs = new CRITICAL_SECTION; InitializeCriticalSectionAndSpinCount (cs, 32); *object = cs; } void WINAPI defaultInit (void ** object) { if (!lock::initialize ()) { defaultCsInit (object...
2,651
845
// // Created by rahul on 21/7/19. //
38
23
/* Project 3 - Hashtable and Heapsort James Halladay Theory of Algorithms 10/9/2021 This program will test the various functions and methods used to create this project */ #include <iostream> #include <string> #include <fstream> #include "hash.h" #include "heap.h" #include "utility.h" using...
4,180
1,440
// Copyright 2015 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 "content/browser/renderer_host/input/synthetic_pointer_action.h" #include "base/logging.h" #include "third_party/WebKit/public/web/WebInputEvent...
2,153
628
#include "RichText.h" #include <sstream> #include <vector> #include <stdlib.h> #include <cmath> #include <iostream> namespace UT { RichText::RichText() { this->font = NULL; this->rawText = ""; this->renderPosition = { 0, 0 }; this->monospacing = -1; this->renderOffset = ...
6,134
1,698
#pragma once #include "./base.hpp" namespace math { ll totient(ll n) { ll res = n; for (ll i = 2; i * i <= n; i++) { if (n % i == 0) { res -= res / i; while (n % i == 0) n /= i; } } if (n > 1) res -= res / n; return res; } } // namespace math
306
127
/** * MIT License * Copyright (c) 2020 Adrian T. Visarra **/ #include "os/reactor/iocp/wsa_activator.h" #include "baba/logger.h" #include <cstdlib> namespace baba::os { wsa_activator::wsa_activator() : _data{0} { if (int result = WSAStartup(MAKEWORD(2, 2), &_data); result != 0) { LOGFTL("WSA...
466
206
class Solution { public: int XXX(string s) { int temp1=0; int temp=0; int sum =0; for(int i=0; i<s.length();i++) { switch(s[i]) { case 'I': temp=1; if(i<(s.length()-1)&&s[i+1]=='V') ...
1,775
506
#pragma once #include <functional> #include <ESP8266WiFi.h> #include <ESP8266WebServer.h> #include <DNSServer.h> #include <ArduinoJson.h> #include "Boot.hpp" #include "../Config.hpp" #include "../Constants.hpp" #include "../Limits.hpp" #include "../Datatypes/Interface.hpp" #include "../Timer.hpp" #include "../Helpers....
963
331
#include "testbcp47languages.h" namespace { BCP47LanguagesTest::BCP47LanguagesTest() : configDir( QDir(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation))) , libraryDir(QDir(Paths::join( QStandardPaths::writableLocation(QStandardPaths::AppDataLocation), "library"))) , configFi...
10,542
3,497
#pragma once #include "vector.hpp" #include "angle.hpp" #include "lubee/src/meta/compare.hpp" #include "lubee/src/ieee754.hpp" #include "exception.hpp" namespace frea { template <class VW, int M> using wrapM_t = wrapM_spec<VW, M, VW::size>; // ベクトル演算レジスタクラスをM方向に束ねたもの /*! \tparam VW 各行のベクトル型 \tparam M 行数 \...
28,333
14,489
#include <cstdio> int main() { int t, n, m; scanf("%d", &t); while (t--) { scanf("%d%d", &n, &m); if (n < 0 || m < 0 || m > n) puts("0"); else if (!m || n == m) puts("1"); else { int dif = m - 1; if (m > n / 2) m = n - 1 - m; for (int i = 0, c = n - 3; i < dif; i++, c -= 2) n += c; printf("%d\n"...
334
189
template <typename T> struct A { void foo() { T v; } }; template <typename T> struct B { typedef T type; }; void bar() { A<float> v; B< A<int> >::type w; }
174
78
// // Created by rokas on 3/12/22. // #ifndef WUSEMEDIASERVER_CONSOLE_HPP #define WUSEMEDIASERVER_CONSOLE_HPP class Console { public: void Run(); private: }; #endif //WUSEMEDIASERVER_CONSOLE_HPP
204
98
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
4,501
1,685
#include <cstdlib> #include "native_libraries.hpp" #include "builtin/exception.hpp" #include <cxxtest/TestSuite.h> using namespace rubinius; class TestNativeLibrary : public CxxTest::TestSuite { public: VM* state_; const char* lib_name_; void setUp() { state_ = new VM(); lib_name_ = ::getenv("LIB...
2,448
815
#ifndef RDS_GUI_ROS_NODE_HPP #define RDS_GUI_ROS_NODE_HPP #include <rds/gui.hpp> #include <rds/geometry.hpp> #include <rds_network_ros/ToGui.h> #include <ros/ros.h> struct RDSGUIROSNode { RDSGUIROSNode(ros::NodeHandle* n); void toGuiMessageCallback(const rds_network_ros::ToGui::ConstPtr& to_gui_msg); GUI gui_c...
1,056
445
/* * Copyright (C) 2013-2016 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
35,119
9,767
#pragma once #include <hpx/future.hpp> #include <fmt/format.h> #include <string> namespace lue { hpx::future<std::string> system_description(); void write_debug_message (std::string const& message); template< typename Class> std::string describe (Class const& instance); templa...
1,419
466
#include<iostream> using namespace std; class Kitty { public: void nyan() { cout << "Kitty on your lap\n";} }; class Di_Gi_Gharat : public Kitty{ public: void nyan() {cout << "Di Gi Gharat\n";} } obj; int main(){ obj.nyan(); obj.Kitty::nyan(); return 0; }
279
117
/*** *mbsnbicmp.c - Compare n bytes of strings, ignoring case (MBCS) * * Copyright (c) Microsoft Corporation. All rights reserved. * *Purpose: * Compare n bytes of strings, ignoring case (MBCS) * *******************************************************************************/ #ifndef _MBCS #error This ...
4,321
1,422
#include <fstream> #include <sstream> #include "file.h" std::string readFile(std::string filename) { std::ifstream in(filename, std::ios::in | std::ios::binary); if (in) { std::ostringstream contents; contents << in.rdbuf(); in.close(); return(contents.str()); } throw(errno); }
307
114
#include "MotionState.hpp" #include "Utility.hpp" namespace APhyBullet { BulletMotionState::BulletMotionState(btMotionState *handle) : handle(handle) { } BulletMotionState::~BulletMotionState() { delete handle; } aphy_transform BulletMotionState::getTransform() { btTransform transform; handle->getWo...
3,002
1,019
#include "rays.hpp" #include <cppitertools/itertools.hpp> #include <glm/gtx/rotate_vector.hpp> void Rays::initializeGL(GLuint program) { terminateGL(); // start pseudo-random number generator m_randomEngine.seed( std::chrono::steady_clock::now().time_since_epoch().count()); m_program = program; m_co...
5,496
2,480
/*=================================================================== BlueBerry Platform Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS...
1,218
368
#include <IBEngine/IBRenderer.h> #include <IBEngine/IBRendererFrontend.h> #include <IBEngine/IBSerialization.h> #include <IBEngine/IBLogging.h> #include <IBEngine/IBPlatform.h> #include <imgui/imgui.h> int main() { IB::WindowDesc winDesc = {}; winDesc.Name = "Ice Box"; winDesc.Width = 1024; winDesc.He...
1,684
512
#include "distributions_publisher.h" #include <class_loader/register_macro.hpp> CLASS_LOADER_REGISTER_CLASS(cslibs_mapping::publisher::DistributionsPublisher, cslibs_mapping::publisher::Publisher) CLASS_LOADER_REGISTER_CLASS(cslibs_mapping::publisher::DistributionsPublisher_d, cslibs_mapping::publisher::Publisher) C...
438
156
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
4,032
1,212
/* * Copyright (c) 2020 Sebastian Kylander https://gaztin.com/ * * This software is provided 'as-is', without any express or implied warranty. In no event will * the authors be held liable for any damages arising from the use of this software. * * Permission is granted to anyone to use this software for any purpo...
5,262
1,994
// ============================================================================= // High Performance ParalleX Library (libhpx) // // Copyright (c) 2013-2017, Trustees of Indiana University, // All rights reserved. // // This software may be modified and distributed under the terms of the BSD // license. See the C...
3,149
1,230
/* @file EOIconManager.cpp @brief Contains the Icon manager definitions @date 2021-09-17 @author Olivier Sannier @section LICENSE MIT License Copyright (c) 2021 Olivier Sannier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
11,662
3,425
#include "node.h" Node::Node(QGraphicsItem *parent):QGraphicsItemGroup(parent) { }
85
33
#include "Thread.hpp" #include <chrono> #include <iostream> #include "ThreadPool.hpp" const ThreadTask ThreadTask::NoTasksFound = ThreadTask(nullptr, ThreadTask::eNoTasksFound); const ThreadTask ThreadTask::ShouldDie = ThreadTask(nullptr, ThreadTask::eShouldDie ); const ThreadTask ThreadTask::NextLoop = Thre...
919
328
//------------------------------------------------------------------------------ // framepass.cc // (C) 2007 Radon Labs GmbH // (C) 2013-2016 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "stdneb.h" #include "frame/framepass.h" #in...
4,264
1,294
#include "mytool/mytool.h" #include <iostream> #include <string> #include <opencv2/opencv.hpp> #include <nlohmann/json.hpp> #define SETTING_JSON "../setting.json" #define DEFAULT_TESTIMAGE "lena.png" #define REPEAT 200 void test() { using namespace std; using namespace cv; string test_ima...
987
385
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/webcrypto_impl.h" #include "base/memory/scoped_ptr.h" #include "third_party/WebKit/public/platform/WebArrayBuffer.h" #incl...
2,122
659
//============================================================================================================== //Dice.hpp //by Albert Chen Sep-2-2015. //============================================================================================================== #pragma once #ifndef _included_Dice__ #define _inclu...
1,396
382
#include <iostream> #include <config.h> #include <pb_controller.h> #include <cstring> #include <pb_view.h> #include <errno.h> #include <utils.h> using namespace podboat; int main(int argc, char * argv[]) { utils::initialize_ssl_implementation(); if (!setlocale(LC_CTYPE,"") || !setlocale(LC_MESSAGES,"")) { std::...
549
227
/* Copyright (c) 2019 SiFive Inc. */ /* SPDX-License-Identifier: Apache-2.0 */ #include "default_e20_strategy.h" #include <layouts/default_layout.h> #include <layouts/scratchpad_layout.h> #include <layouts/ramrodata_layout.h> bool DefaultE20Strategy::valid(const fdt &dtb, list<Memory> available_memories) { return ...
1,192
430
#include "cilantroengine.h" #include "graphics/Framebuffer.h" Framebuffer::Framebuffer (unsigned int bufferWidth, unsigned int bufferHeight) { this->bufferWidth = bufferWidth; this->bufferHeight = bufferHeight; } Framebuffer::~Framebuffer () { } unsigned int Framebuffer::GetWidth () const { return buff...
585
169