hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9560563cd2c3580ae3742ccbf51bd366177e3ee | 851 | cpp | C++ | src/database/kernels/xgemm_direct/xgemm_direct.cpp | vbkaisetsu/CLBlast | 441373c8fd1442cc4c024e59e7778b4811eb210c | [
"Apache-2.0"
] | null | null | null | src/database/kernels/xgemm_direct/xgemm_direct.cpp | vbkaisetsu/CLBlast | 441373c8fd1442cc4c024e59e7778b4811eb210c | [
"Apache-2.0"
] | null | null | null | src/database/kernels/xgemm_direct/xgemm_direct.cpp | vbkaisetsu/CLBlast | 441373c8fd1442cc4c024e59e7778b4811eb210c | [
"Apache-2.0"
] | null | null | null |
// =================================================================================================
// This file is part of the CLBlast project. The project is licensed under Apache Version 2.0. It
// is auto-generated by the 'scripts/database/database.py' Python script.
//
// This file populates the database with be... | 53.1875 | 101 | 0.619271 | vbkaisetsu |
b95ebf0558356875c2da7fb0a00ff3b860418f74 | 2,141 | cpp | C++ | MathTL/utils/plot_tools.cpp | kedingagnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 3 | 2018-05-20T15:25:58.000Z | 2021-01-19T18:46:48.000Z | MathTL/utils/plot_tools.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | null | null | null | MathTL/utils/plot_tools.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 2 | 2019-04-24T18:23:26.000Z | 2020-09-17T10:00:27.000Z | // implementation for plot_tools.h
#include <cassert>
#include <geometry/sampled_mapping.h>
namespace MathTL
{
void matlab_output(const map<double,double>& log_10_residual_norms,
std::ostream& os)
{
Array1D<double> x(log_10_residual_norms.size());
Array1D<double> values(log_10_residual_norms.size()... | 18.299145 | 74 | 0.475012 | kedingagnumerikunimarburg |
b96319024b21d50c0ae86359b4325fe35803490c | 14,585 | cpp | C++ | modules/juce_audio_basics/mpe/juce_MPESynthesiserBase.cpp | LWKS-Software/JUCE | b2af338782a4be3e2c9bb0128c7f62182127c511 | [
"ISC"
] | 1,472 | 2017-04-26T05:46:29.000Z | 2020-04-13T08:27:43.000Z | modules/juce_audio_basics/mpe/juce_MPESynthesiserBase.cpp | LWKS-Software/JUCE | b2af338782a4be3e2c9bb0128c7f62182127c511 | [
"ISC"
] | 471 | 2017-04-25T07:57:02.000Z | 2020-04-08T21:06:47.000Z | modules/juce_audio_basics/mpe/juce_MPESynthesiserBase.cpp | LWKS-Software/JUCE | b2af338782a4be3e2c9bb0128c7f62182127c511 | [
"ISC"
] | 589 | 2017-04-24T19:45:04.000Z | 2020-04-14T20:14:24.000Z | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2020 - Raw Material Software Limited
JUCE is an open source library subject to commercial or open-source
licensing.
The code included in this file is provid... | 38.789894 | 123 | 0.524649 | LWKS-Software |
b967fb0fa23e74d2be253caa2a432b6569746b59 | 10,367 | cxx | C++ | src/machine/galaxian_soundboard.cxx | ascottix/tickle | de3b7df8a6e719b7682398ac689a7e439b40876f | [
"MIT"
] | 1 | 2021-05-31T21:09:50.000Z | 2021-05-31T21:09:50.000Z | src/machine/galaxian_soundboard.cxx | ascottix/tickle | de3b7df8a6e719b7682398ac689a7e439b40876f | [
"MIT"
] | null | null | null | src/machine/galaxian_soundboard.cxx | ascottix/tickle | de3b7df8a6e719b7682398ac689a7e439b40876f | [
"MIT"
] | null | null | null | /*
Galaxian arcade machine emulator
Soundboard emulation
Copyright (c) 2004 Alessandro Scotti
*/
#include "galaxian_soundboard.h"
AGalaxianFireControl::AGalaxianFireControl( AChannel * ch_fire, AChannel * ch_noise )
{
a_fire_ = ch_fire;
a_noise_ = ch_noise;
AFloat R46 = Ki... | 31.996914 | 150 | 0.560336 | ascottix |
b968d8fa16e3fbccdfe1c10652bbed99f1ad0378 | 7,754 | hpp | C++ | src/deBGA_index.hpp | hitbc/panSV | 273b13bf496593325778d926f763bed6d2de5be2 | [
"MIT"
] | null | null | null | src/deBGA_index.hpp | hitbc/panSV | 273b13bf496593325778d926f763bed6d2de5be2 | [
"MIT"
] | null | null | null | src/deBGA_index.hpp | hitbc/panSV | 273b13bf496593325778d926f763bed6d2de5be2 | [
"MIT"
] | 1 | 2021-09-25T10:35:46.000Z | 2021-09-25T10:35:46.000Z | /*
* deBGA_index.hpp
*
* Created on: 2021年3月15日
* Author: fenghe
*/
#ifndef DEBGA_INDEX_HPP_
#define DEBGA_INDEX_HPP_
#include <stdint.h>
#include <stdlib.h>
#include <string>
extern "C"
{
#include "clib/bam_file.h"
#include "clib/desc.h"
#include "clib/binarys_qsort.h"
}
#include <vector>
#include "cpp_l... | 33.5671 | 176 | 0.728269 | hitbc |
b970fac9fd92d719ad307987651dba09fa9d6ad1 | 6,627 | hh | C++ | data.hh | msgmaxim/cp-profiler | 6b5327445fb0b62eef607795100d1822af457fab | [
"MIT-feh"
] | null | null | null | data.hh | msgmaxim/cp-profiler | 6b5327445fb0b62eef607795100d1822af457fab | [
"MIT-feh"
] | null | null | null | data.hh | msgmaxim/cp-profiler | 6b5327445fb0b62eef607795100d1822af457fab | [
"MIT-feh"
] | 1 | 2020-04-12T02:44:51.000Z | 2020-04-12T02:44:51.000Z | /* 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, sublicense, and/or... | 27.962025 | 112 | 0.685076 | msgmaxim |
b978b61cc8aff0c4d66f8a0f57ba5bbdb66c78cc | 777 | cpp | C++ | Pacote-Download/array/array_ex4.cpp | TacianasdOliveira/ExerciciosCPlusPlus | d8b64024fbcba283b8ffba3468b61a50a257ac55 | [
"MIT"
] | null | null | null | Pacote-Download/array/array_ex4.cpp | TacianasdOliveira/ExerciciosCPlusPlus | d8b64024fbcba283b8ffba3468b61a50a257ac55 | [
"MIT"
] | null | null | null | Pacote-Download/array/array_ex4.cpp | TacianasdOliveira/ExerciciosCPlusPlus | d8b64024fbcba283b8ffba3468b61a50a257ac55 | [
"MIT"
] | null | null | null | #include <iostream>
#include <Windows.h>
using namespace std;
int main(){
SetConsoleOutputCP(CP_UTF8);
cout<< "*****programa que computecomputecompute computecomput potência elétrica média de n pontos de um circuito em que seja disponibilizado pelo usuário n pares de dados tensão e corrente*****"<<endl<<endl<... | 25.9 | 215 | 0.658945 | TacianasdOliveira |
b97da0c3f3491abdb42029e9c7a4129d855cd5a7 | 5,897 | cpp | C++ | src/main.cpp | Heerdam/webgl-fun | 13ae94b8d88ea24a8974f166dcc00f83781de35b | [
"MIT"
] | null | null | null | src/main.cpp | Heerdam/webgl-fun | 13ae94b8d88ea24a8974f166dcc00f83781de35b | [
"MIT"
] | null | null | null | src/main.cpp | Heerdam/webgl-fun | 13ae94b8d88ea24a8974f166dcc00f83781de35b | [
"MIT"
] | null | null | null | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <chrono>
#include <cmath>
#include "shader.hpp"
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
#define SHADERPROGRAM 1
const char* vertexSource =
"#version 100 \n"
"attribute vec3 pos... | 29.93401 | 105 | 0.662201 | Heerdam |
b97dbc9702de7ef9aba5f51f991dfbc79c50ca87 | 16,012 | cpp | C++ | src/xbridge/xbridgewalletconnectordevault.cpp | luusluus/blocknet | f028653c40938491cbfd991bd73b7bb0952aceaa | [
"MIT"
] | 122 | 2019-05-08T22:15:42.000Z | 2022-03-18T08:12:48.000Z | src/xbridge/xbridgewalletconnectordevault.cpp | luusluus/blocknet | f028653c40938491cbfd991bd73b7bb0952aceaa | [
"MIT"
] | 67 | 2019-10-30T19:12:16.000Z | 2022-03-06T14:42:00.000Z | src/xbridge/xbridgewalletconnectordevault.cpp | luusluus/blocknet | f028653c40938491cbfd991bd73b7bb0952aceaa | [
"MIT"
] | 58 | 2017-07-27T05:36:55.000Z | 2019-02-12T13:53:30.000Z | // Copyright (c) 2017-2020 The Blocknet developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//******************************************************************************
//**********************************************... | 38.30622 | 169 | 0.551149 | luusluus |
b97ec14b6482a589e0ebe87a547f374b19b8b92a | 1,364 | cpp | C++ | edge_detection/edge.cpp | ammarnajjar/opencv_tutorials | d34581f2dca1873adcff56d79d67a01ec009df02 | [
"MIT"
] | 1 | 2016-07-23T22:17:23.000Z | 2016-07-23T22:17:23.000Z | edge_detection/edge.cpp | ammarnajjar/opencv_tutorials | d34581f2dca1873adcff56d79d67a01ec009df02 | [
"MIT"
] | null | null | null | edge_detection/edge.cpp | ammarnajjar/opencv_tutorials | d34581f2dca1873adcff56d79d67a01ec009df02 | [
"MIT"
] | null | null | null | #include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
cv::Mat edges, edges_thresholded;
int slider = 50;
void on_slider(int, void*) {
if (!edges.empty()) {
cv::threshold(edges, edges_thresholded, slider, 255, cv::THRESH_TOZERO);
cv::imshow("Thresholded Schar... | 26.230769 | 86 | 0.704545 | ammarnajjar |
b98277ee58646cd118819026b1ce7e9b724200c3 | 5,620 | inl | C++ | include/Image.inl | Brandagot/SimpleRayTracing | c1fe53f186e901eb6000d3415930eddcb67410ad | [
"BSD-3-Clause"
] | null | null | null | include/Image.inl | Brandagot/SimpleRayTracing | c1fe53f186e901eb6000d3415930eddcb67410ad | [
"BSD-3-Clause"
] | null | null | null | include/Image.inl | Brandagot/SimpleRayTracing | c1fe53f186e901eb6000d3415930eddcb67410ad | [
"BSD-3-Clause"
] | null | null | null | /**
********************************************************************************
*
* @file Image.inl
*
* @brief Class to manage 2D greyscale images in float.
*
* @version 1.0
*
* @date 12/08/2021
*
* @author Dr Franck P. Vidal
*
****************************************... | 25.898618 | 96 | 0.368327 | Brandagot |
b983d8346176cc39492f1c91f4ad55363c87a3ba | 849 | cpp | C++ | Timer.cpp | Team-DJS/Hyper-Infinity-Carnage | a5fc4411440ac3270070d49c8ce18f4d35a3b5d8 | [
"Apache-2.0"
] | null | null | null | Timer.cpp | Team-DJS/Hyper-Infinity-Carnage | a5fc4411440ac3270070d49c8ce18f4d35a3b5d8 | [
"Apache-2.0"
] | null | null | null | Timer.cpp | Team-DJS/Hyper-Infinity-Carnage | a5fc4411440ac3270070d49c8ce18f4d35a3b5d8 | [
"Apache-2.0"
] | null | null | null | #include "Timer.hpp"
using namespace HIC;
//-----------------------------------
// Constructors / Destructors
//-----------------------------------
// Constructor for Timer
Timer::Timer(float endTime) :
mEndTime(endTime),
mCurrentTime(0.0f)
{
}
// Destructor for Timer
Timer::~Timer()
{
}
//----------------------... | 17.326531 | 67 | 0.585395 | Team-DJS |
b987242ab905c7f1b50b02c396ee46e9ca1b4a17 | 1,974 | cpp | C++ | src/gplisp.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | 1 | 2017-01-22T19:40:23.000Z | 2017-01-22T19:40:23.000Z | src/gplisp.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | null | null | null | src/gplisp.cpp | o01eg/gfp | 49a5becba87ae14f36b3d42190006391d613e03f | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2010-2012 O01eg <o01eg@yandex.ru>
*
* This file is part of Genetic Function Programming.
*
* 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, incl... | 31.333333 | 82 | 0.700608 | o01eg |
b98ba8460af72e9b60209e1a037bbf039d3d7940 | 11,273 | cpp | C++ | src/lib/src/nanotdf/policy_info.cpp | opentdf/client-cpp | 9c6dbc73a989733e30371555aa7a24ff496a62f1 | [
"MIT"
] | null | null | null | src/lib/src/nanotdf/policy_info.cpp | opentdf/client-cpp | 9c6dbc73a989733e30371555aa7a24ff496a62f1 | [
"MIT"
] | 3 | 2022-01-31T14:42:51.000Z | 2022-03-28T22:44:54.000Z | src/lib/src/nanotdf/policy_info.cpp | opentdf/client-cpp | 9c6dbc73a989733e30371555aa7a24ff496a62f1 | [
"MIT"
] | 1 | 2022-03-09T18:40:47.000Z | 2022-03-09T18:40:47.000Z | /*
* Copyright 2020 Virtru Corporation
*
* SPDX - License Identifier: BSD-3-Clause-Clear
*
*/
//
// TDF SDK
//
// Created by Sujan Reddy on 2020/05/29
//
#include <boost/endian/conversion.hpp>
#include "tdf_exception.h"
#include "ecc_mode.h"
#include "utils.h"
#include "sdk_constants.h"
#include "policy_info.h"
na... | 35.787302 | 101 | 0.619179 | opentdf |
b9902046daddf832b44a8853cf3ad29fc0805003 | 6,958 | cpp | C++ | src/rx/core/math/tan.cpp | DethRaid/rex | 21ba92d38398240faa45a402583c11f8c72e6e41 | [
"MIT"
] | 2 | 2020-06-13T11:39:46.000Z | 2021-03-10T01:03:03.000Z | src/rx/core/math/tan.cpp | DethRaid/rex | 21ba92d38398240faa45a402583c11f8c72e6e41 | [
"MIT"
] | null | null | null | src/rx/core/math/tan.cpp | DethRaid/rex | 21ba92d38398240faa45a402583c11f8c72e6e41 | [
"MIT"
] | 1 | 2021-01-06T03:47:08.000Z | 2021-01-06T03:47:08.000Z | #define _USE_MATH_DEFINES
#include <math.h> // M_PI_2
#include "rx/core/math/tan.h"
#include "rx/core/math/abs.h"
#include "rx/core/math/shape.h"
#include "rx/core/math/force_eval.h"
#include "rx/core/hints/unreachable.h"
namespace Rx::Math {
// |tan(x)/x - t(x)| < 2**-25.5 (~[-2e-08, 2e-08])
static constexpr const... | 23.270903 | 89 | 0.545415 | DethRaid |
b9991ed9a337b2b7d593a74ff79f32fb2cfbfdb7 | 7,849 | cpp | C++ | Samples/JTSP/TSP/Interface.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | 1 | 2021-02-08T20:31:46.000Z | 2021-02-08T20:31:46.000Z | Samples/JTSP/TSP/Interface.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | null | null | null | Samples/JTSP/TSP/Interface.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | 4 | 2019-11-14T03:47:33.000Z | 2021-03-08T01:18:05.000Z | /*******************************************************************/
//
// INTERFACE.CPP
//
// WinSock interface definitions.
//
// Copyright (C) 1998 JulMar Technology, Inc.
// All rights reserved
//
// TSP++ Version 3.00 PBX/ACD Emulator Projects
//
// Modification History
// ----------------------------------------... | 25.990066 | 108 | 0.519174 | markjulmar |
b99b1822d9aa81b4a58d7c4f7ee8fa6768932959 | 4,760 | hh | C++ | include/ignition/gui/Helpers.hh | zflat/ign-gui | 879a8d193d0cc976587f437a2ec1254093681963 | [
"ECL-2.0",
"Apache-2.0"
] | 31 | 2020-04-17T22:47:47.000Z | 2022-03-31T11:00:06.000Z | include/ignition/gui/Helpers.hh | zflat/ign-gui | 879a8d193d0cc976587f437a2ec1254093681963 | [
"ECL-2.0",
"Apache-2.0"
] | 297 | 2020-04-25T02:55:37.000Z | 2022-03-30T20:18:23.000Z | include/ignition/gui/Helpers.hh | zflat/ign-gui | 879a8d193d0cc976587f437a2ec1254093681963 | [
"ECL-2.0",
"Apache-2.0"
] | 33 | 2020-04-20T00:38:42.000Z | 2022-03-18T10:10:46.000Z | /*
* Copyright (C) 2017 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... | 39.338843 | 80 | 0.672269 | zflat |
b99f4b7cb2ecd95adc8100acc5f93138e6548ed2 | 6,628 | hpp | C++ | SOLVER/src/core/element/FluidElementWindow.hpp | chaindl/AxiSEM-3D | 0251f301c79c676fb37792209d6e24f107773b3d | [
"MIT"
] | null | null | null | SOLVER/src/core/element/FluidElementWindow.hpp | chaindl/AxiSEM-3D | 0251f301c79c676fb37792209d6e24f107773b3d | [
"MIT"
] | null | null | null | SOLVER/src/core/element/FluidElementWindow.hpp | chaindl/AxiSEM-3D | 0251f301c79c676fb37792209d6e24f107773b3d | [
"MIT"
] | null | null | null | //
// FluidElement.hpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 3/2/19.
// Copyright © 2019 Kuangdai Leng. All rights reserved.
//
// fluid spectral element
#ifndef FluidElementWindow_hpp
#define FluidElementWindow_hpp
#include "ElementWindow.hpp"
#include "SFRCPointWindow.hpp"
// point
#include <array>
c... | 36.822222 | 141 | 0.647254 | chaindl |
b9a1e2e07184c0937df5d2213d9cfff614c8d907 | 3,457 | cpp | C++ | agv_base/src/odom_temp.cpp | MihirSPatil/ROS-AGV | efac05ec02fc5b4fed88bbfba7688405bf551a60 | [
"MIT"
] | 7 | 2017-03-04T16:35:33.000Z | 2019-06-10T14:48:37.000Z | agv_base/src/odom_temp.cpp | MihirSPatil/-Rapid-prototyping-mobile-robot-platform-for-warehouse-logistics | efac05ec02fc5b4fed88bbfba7688405bf551a60 | [
"MIT"
] | 23 | 2016-09-30T03:05:06.000Z | 2017-05-26T09:57:35.000Z | agv_base/src/odom_temp.cpp | MihirSPatil/ROS-AGV | efac05ec02fc5b4fed88bbfba7688405bf551a60 | [
"MIT"
] | 4 | 2019-10-14T12:25:59.000Z | 2020-12-02T14:30:02.000Z | #include <ros/ros.h>
#include <ros/console.h>
#include <std_msgs/String.h>
#include <grizzly_msgs/Drive.h>
#include <nav_msgs/Odometry.h>
#include <tf/transform_broadcaster.h>
#include <geometry_msgs/TransformStamped.h>
#include <iomanip>
#include <iostream>
#include <sstream>
#define PI 3.1415926535897931
int64_t ... | 23.201342 | 110 | 0.627423 | MihirSPatil |
b9a2335c2d2367dbbe077898ca30471a9abdcda1 | 4,098 | cpp | C++ | bench/ReadPixBench.cpp | jonhpark7966/skia | 39d16248f5a7d1692cec49847052cf3a5b420ff1 | [
"BSD-3-Clause"
] | 1 | 2019-02-12T19:10:24.000Z | 2019-02-12T19:10:24.000Z | bench/ReadPixBench.cpp | jonhpark7966/skia | 39d16248f5a7d1692cec49847052cf3a5b420ff1 | [
"BSD-3-Clause"
] | null | null | null | bench/ReadPixBench.cpp | jonhpark7966/skia | 39d16248f5a7d1692cec49847052cf3a5b420ff1 | [
"BSD-3-Clause"
] | 1 | 2019-02-14T01:00:16.000Z | 2019-02-14T01:00:16.000Z | /*
* Copyright 2012 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 "Benchmark.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
/**
* This bench mark tests the use case where the user writes the a canvas
* and th... | 26.960526 | 92 | 0.595168 | jonhpark7966 |
b9a38120e7c80907be4a37ea599516e10c03f70b | 15,911 | cpp | C++ | app/src/main/cpp/WorldState.cpp | samlin001/gpu-emulation-stress-test | dd7ac30b0821f2420cc83ef5e6fbddfc62e50673 | [
"Apache-2.0"
] | 74 | 2017-12-15T20:56:06.000Z | 2022-03-22T04:35:02.000Z | app/src/main/cpp/WorldState.cpp | samlin001/gpu-emulation-stress-test | dd7ac30b0821f2420cc83ef5e6fbddfc62e50673 | [
"Apache-2.0"
] | 3 | 2019-01-30T16:07:55.000Z | 2020-11-23T15:03:04.000Z | app/src/main/cpp/WorldState.cpp | samlin001/gpu-emulation-stress-test | dd7ac30b0821f2420cc83ef5e6fbddfc62e50673 | [
"Apache-2.0"
] | 21 | 2017-12-25T23:21:34.000Z | 2021-03-25T04:08:58.000Z | /*
* Copyright (C) 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 applicable law or... | 35.515625 | 105 | 0.553076 | samlin001 |
b9a6f434a2d02fe5d81aaa5b1c75591ec74426db | 24,926 | cpp | C++ | src/platform/win/MainWindow_win.cpp | knobin/ptk | 7141ceeeda61a0d0e9217afafe39e5e40f43c48c | [
"MIT"
] | null | null | null | src/platform/win/MainWindow_win.cpp | knobin/ptk | 7141ceeeda61a0d0e9217afafe39e5e40f43c48c | [
"MIT"
] | null | null | null | src/platform/win/MainWindow_win.cpp | knobin/ptk | 7141ceeeda61a0d0e9217afafe39e5e40f43c48c | [
"MIT"
] | null | null | null | //
// platform/win/MainWindow_win.cpp
// pTK
//
// Created by Robin Gustafsson on 2020-02-07.
//
// Local Headers
#include "MainWindow_win.hpp"
#include "Application_win.hpp"
#include "../common/RasterContext.hpp"
#include "RasterPolicy_win.hpp"
#include "MenuBarUtil_win.hpp"
// pTK Headers
#include "ptk/Applicati... | 33.279039 | 139 | 0.533579 | knobin |
b9a992f68d5a845b726764e46f98fd6ab1406ee0 | 48 | hpp | C++ | src/boost_geometry_algorithms_assign.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_algorithms_assign.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_algorithms_assign.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/algorithms/assign.hpp>
| 24 | 47 | 0.8125 | miathedev |
b9aa1709e689058b689bd282fcdf6696cb422b72 | 42,042 | cpp | C++ | src/tests/unit_x509.cpp | rafalsk/botan | 95185297aa91edf34c68fd56f7f095df16a7197f | [
"BSD-2-Clause"
] | 1 | 2018-10-14T13:49:36.000Z | 2018-10-14T13:49:36.000Z | benchmark/botan/src/tests/unit_x509.cpp | JaredCJR/ThesisTools | 41af365ca85da3f73f72880488477ec699b05923 | [
"Apache-2.0"
] | null | null | null | benchmark/botan/src/tests/unit_x509.cpp | JaredCJR/ThesisTools | 41af365ca85da3f73f72880488477ec699b05923 | [
"Apache-2.0"
] | null | null | null | /*
* (C) 2009 Jack Lloyd
* (C) 2016 René Korthaus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "tests.h"
#if defined(BOTAN_HAS_X509_CERTIFICATES)
#include <botan/calendar.h>
#include <botan/pkcs10.h>
#include <botan/x509self.h>
#inclu... | 36.558261 | 132 | 0.663527 | rafalsk |
b9ab5cf1f1e7ab4cd31843da816f01ccb9953ed5 | 257 | cc | C++ | src/server/server_main.cc | ChaoMai/medis | 1fff7668e7918a9d5a858c3182b6d9b3ff356563 | [
"Apache-2.0"
] | null | null | null | src/server/server_main.cc | ChaoMai/medis | 1fff7668e7918a9d5a858c3182b6d9b3ff356563 | [
"Apache-2.0"
] | null | null | null | src/server/server_main.cc | ChaoMai/medis | 1fff7668e7918a9d5a858c3182b6d9b3ff356563 | [
"Apache-2.0"
] | null | null | null | #include <cstdint>
#include <string>
#include "blocking_server.h"
using std::string;
int main(int argc, const char *argv[]) {
string addr("127.0.0.1");
uint16_t port = 6789;
BlockingServer blocking_server(addr, port);
blocking_server.serve();
}
| 17.133333 | 45 | 0.700389 | ChaoMai |
b9ab6d11723c83fd6ce0e845b44b1652b41c895f | 735 | cpp | C++ | Constrained Optimization/dAvgNegLogLikeC.cpp | ismand95/PQE | 4fca1358d4cc192381ff0ef85670413a2e78365e | [
"MIT"
] | null | null | null | Constrained Optimization/dAvgNegLogLikeC.cpp | ismand95/PQE | 4fca1358d4cc192381ff0ef85670413a2e78365e | [
"MIT"
] | null | null | null | Constrained Optimization/dAvgNegLogLikeC.cpp | ismand95/PQE | 4fca1358d4cc192381ff0ef85670413a2e78365e | [
"MIT"
] | null | null | null | // [[Rcpp::depends(RcppArmadillo)]]
#include <RcppArmadillo.h>
using namespace arma;
using namespace Rcpp;
// [[Rcpp::export]]
double dAvgNegLogLike(
vec vY,
double dPhi,
double dAlpha)
{
// Initialize variables and the first element of vLambda
int iT = vY.size();
double dSumLL = 0;
double NegAvgL... | 19.864865 | 77 | 0.620408 | ismand95 |
b9ae1e12aff602132309cebff90875d36a5535eb | 18,187 | cc | C++ | src/lib/storage/vfs/cpp/directory_connection.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | 2 | 2021-12-29T10:11:08.000Z | 2022-01-04T15:37:09.000Z | src/lib/storage/vfs/cpp/directory_connection.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | null | null | null | src/lib/storage/vfs/cpp/directory_connection.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | null | null | null | // 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/lib/storage/vfs/cpp/directory_connection.h"
#include <fcntl.h>
#include <fidl/fuchsia.io.admin/cpp/wire.h>
#include <fidl/fuchsia.io/cpp/wir... | 38.53178 | 100 | 0.676472 | PlugFox |
b9b218d61cd176e95b2b62302ba7e3ca2f8bc4e8 | 6,126 | cpp | C++ | FillDEM_Zhou-onepass.cpp | zhouguiyun-uestc/openmp | badf4b214c81b7564a714abef9cb19c927f7d255 | [
"MIT"
] | null | null | null | FillDEM_Zhou-onepass.cpp | zhouguiyun-uestc/openmp | badf4b214c81b7564a714abef9cb19c927f7d255 | [
"MIT"
] | null | null | null | FillDEM_Zhou-onepass.cpp | zhouguiyun-uestc/openmp | badf4b214c81b7564a714abef9cb19c927f7d255 | [
"MIT"
] | 1 | 2021-12-03T10:55:17.000Z | 2021-12-03T10:55:17.000Z | /*
source codes are downloaded from https://github.com/zhouguiyun-uestc/FillDEM
*/
#include <iostream>
#include <string>
#include <fstream>
#include <queue>
#include <algorithm>
#include "dem.h"
#include "node.h"
#include "utils.h"
#include <time.h>
#include <list>
#include <stack>
using namespace std;
typedef std::ve... | 23.471264 | 155 | 0.639079 | zhouguiyun-uestc |
b9b23f14cc26ea35bbbb8c7d536f7331b92db4d6 | 26,410 | cpp | C++ | src/Widgets/ChatBox.cpp | dmg103/TGUI | ed2ac830c399b8b579dc67493823551dbf966d63 | [
"Zlib"
] | null | null | null | src/Widgets/ChatBox.cpp | dmg103/TGUI | ed2ac830c399b8b579dc67493823551dbf966d63 | [
"Zlib"
] | null | null | null | src/Widgets/ChatBox.cpp | dmg103/TGUI | ed2ac830c399b8b579dc67493823551dbf966d63 | [
"Zlib"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TGUI - Texus' Graphical User Interface
// Copyright (C) 2012-2022 Bruno Van de Velde (vdv_b@tgui.eu)
//
// This software is provided 'as-is', without any express or implied warranty.
/... | 39.535928 | 188 | 0.465051 | dmg103 |
b9bbb2d4ed325552361ce5ed42a0b5209c4c98f4 | 813 | cpp | C++ | 06_class_overloads/main.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-arvaldez722 | 22f0b33bd04c1b3d0430968d008e99f5015873af | [
"MIT"
] | null | null | null | 06_class_overloads/main.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-arvaldez722 | 22f0b33bd04c1b3d0430968d008e99f5015873af | [
"MIT"
] | null | null | null | 06_class_overloads/main.cpp | acc-cosc-1337-spring-2019/midterm-spring-2019-arvaldez722 | 22f0b33bd04c1b3d0430968d008e99f5015873af | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include "roll_ol.h"
/*
Create two Die instances.
Create a vector of Roll
Create a 20iteration loop and create a Roll instance, call roll OVERLOADED function,
output rolled values, and add to vector.
Loop through vector of Roll and output roll result
*/
int mai... | 21.394737 | 134 | 0.656827 | acc-cosc-1337-spring-2019 |
b9bdd17f9f2948b6ed3a28182b8d3dc3648e50ca | 770 | cpp | C++ | ThirdParty/UPnP/Neptune/Source/System/Null/NptNullHttpProxy.cpp | snazy2000/MediaBrowser.Plugins | 8c3a23fc0ce0186dd1ef048bf51a0eb7a1ee42b0 | [
"MIT"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | ThirdParty/UPnP/Neptune/Source/System/Null/NptNullHttpProxy.cpp | bllakjakk/MediaBrowser.Plugins | 4b115a832f7f31d752ba0c135c65d570c6220bec | [
"MIT"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | ThirdParty/UPnP/Neptune/Source/System/Null/NptNullHttpProxy.cpp | bllakjakk/MediaBrowser.Plugins | 4b115a832f7f31d752ba0c135c65d570c6220bec | [
"MIT"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | /*****************************************************************
|
| Neptune - HTTP Proxy :: Null Implementation
|
| (c) 2001-2007 Gilles Boccon-Gibod
| Author: Gilles Boccon-Gibod (bok@bok.net)
|
****************************************************************/
/*-------------------------------------... | 32.083333 | 72 | 0.309091 | snazy2000 |
b9c377d752ae29b119f8e041f15d84da1320be0b | 1,340 | hpp | C++ | src/main/include/Robot.hpp | Team3512/Robot-2012 | ceb45b04cf1fe63fd2f3b0bc3c048688c5a26060 | [
"BSD-3-Clause"
] | null | null | null | src/main/include/Robot.hpp | Team3512/Robot-2012 | ceb45b04cf1fe63fd2f3b0bc3c048688c5a26060 | [
"BSD-3-Clause"
] | null | null | null | src/main/include/Robot.hpp | Team3512/Robot-2012 | ceb45b04cf1fe63fd2f3b0bc3c048688c5a26060 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012-2021 FRC Team 3512. All Rights Reserved.
#pragma once
#include <cmath>
#include <frc/Encoder.h>
#include <frc/Joystick.h>
#include <frc/Relay.h>
#include <frc/SpeedControllerGroup.h>
#include <frc/TimedRobot.h>
#include <frc/Victor.h>
#include <frc/controller/PIDController.h>
#include <frc/driv... | 22.711864 | 63 | 0.704478 | Team3512 |
b9c4e5fb5782f7e427a2e43cb9907cb1986c9927 | 6,302 | cc | C++ | example/t/memcached_light.cc | bureado/libmemcached | 3f27e2b935a0580ff3fa7c098040ce96083fa70f | [
"BSD-3-Clause"
] | null | null | null | example/t/memcached_light.cc | bureado/libmemcached | 3f27e2b935a0580ff3fa7c098040ce96083fa70f | [
"BSD-3-Clause"
] | 1 | 2021-03-09T05:01:19.000Z | 2021-03-09T05:01:19.000Z | example/t/memcached_light.cc | bureado/libmemcached | 3f27e2b935a0580ff3fa7c098040ce96083fa70f | [
"BSD-3-Clause"
] | 2 | 2015-02-03T02:37:59.000Z | 2020-10-20T09:12:02.000Z | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Test memcat
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redi... | 26.041322 | 102 | 0.706284 | bureado |
b9c5b7e0fed51f3d7d18c58902744882045ee783 | 1,345 | cpp | C++ | src/examples/timer.cpp | linkjumper/fileio | c2a6479e498accea65bd8df015692712bfc80820 | [
"MIT"
] | null | null | null | src/examples/timer.cpp | linkjumper/fileio | c2a6479e498accea65bd8df015692712bfc80820 | [
"MIT"
] | null | null | null | src/examples/timer.cpp | linkjumper/fileio | c2a6479e498accea65bd8df015692712bfc80820 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <time.h>
#include <unistd.h>
#include <chrono>
#include <signal.h>
#include <vector>
#include <cstring>
#include "fileio/EpollFD.h"
#include "asyncio/AsyncIO.h"
#include "fileio/TimerFD.h"
asyncio::AsyncIO loop {7};
void sigfunc(int signum) {
static bool signalHandl... | 22.04918 | 70 | 0.575465 | linkjumper |
b9c8d5e200f502dce9a52d3ef9da658ca233fdbc | 5,078 | cpp | C++ | src/demo/k_truss_demo.cpp | KIwabuchi/gbtl | 62c6b1e3262f3623359e793edb5ec4fa7bb471f0 | [
"Unlicense"
] | 112 | 2016-04-26T05:54:30.000Z | 2022-03-27T05:56:16.000Z | src/demo/k_truss_demo.cpp | KIwabuchi/gbtl | 62c6b1e3262f3623359e793edb5ec4fa7bb471f0 | [
"Unlicense"
] | 21 | 2016-03-22T19:06:46.000Z | 2021-10-07T15:40:18.000Z | src/demo/k_truss_demo.cpp | KIwabuchi/gbtl | 62c6b1e3262f3623359e793edb5ec4fa7bb471f0 | [
"Unlicense"
] | 22 | 2016-04-26T05:54:35.000Z | 2021-12-21T03:33:20.000Z | /*
* GraphBLAS Template Library (GBTL), Version 3.0
*
* Copyright 2020 Carnegie Mellon University, Battelle Memorial Institute, and
* Authors.
*
* THIS MATERIAL WAS PREPARED AS AN ACCOUNT OF WORK SPONSORED BY AN AGENCY OF
* THE UNITED STATES GOVERNMENT. NEITHER THE UNITED STATES GOVERNMENT NOR THE
* UNITED STA... | 30.22619 | 95 | 0.498031 | KIwabuchi |
b9caded50374035003ca788d3f0d17898040673c | 5,186 | cpp | C++ | src/test/staking_tests.cpp | dlhendo70/crown-core | e34163e206c4c0c586a02c8d1d8e9975c1e1cc5f | [
"MIT"
] | 12 | 2018-08-26T13:59:10.000Z | 2022-01-02T14:31:27.000Z | src/test/staking_tests.cpp | dlhendo70/crown-core | e34163e206c4c0c586a02c8d1d8e9975c1e1cc5f | [
"MIT"
] | 43 | 2018-09-17T16:45:59.000Z | 2021-08-05T11:01:38.000Z | src/test/staking_tests.cpp | dlhendo70/crown-core | e34163e206c4c0c586a02c8d1d8e9975c1e1cc5f | [
"MIT"
] | 12 | 2018-06-11T01:11:03.000Z | 2022-01-03T10:57:10.000Z | #include <boost/test/unit_test.hpp>
#include <iostream>
#include "amount.h"
#include "arith_uint256.h"
#include "key.h"
#include "utiltime.h"
#include "primitives/block.h"
#include "mn-pos/kernel.h"
#include "mn-pos/stakeminer.h"
#include "mn-pos/stakevalidation.h"
BOOST_AUTO_TEST_SUITE(staking_tests)
BOOST_AUTO_T... | 36.521127 | 140 | 0.712881 | dlhendo70 |
844deb85af3a222e6f98ffae0c83e4fb149ed0c6 | 307,811 | cpp | C++ | Tools/GenerateOpenGLWrapper/GteOpenGL.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | 4 | 2019-03-03T18:13:30.000Z | 2020-08-25T18:15:30.000Z | Tools/GenerateOpenGLWrapper/GteOpenGL.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | Tools/GenerateOpenGLWrapper/GteOpenGL.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | 6 | 2016-07-15T11:04:52.000Z | 2021-12-07T03:11:42.000Z | // Geometric Tools LLC, Redmond WA 98052
// Copyright (c) 1998-2016
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: This file is automatically generated.
#include <Graphics/GL4/GteOpenG... | 29.841105 | 259 | 0.719753 | vehsakul |
844f960a4a10cd2370fd402654f4f496c322c911 | 1,636 | cpp | C++ | structures/keywords.cpp | pat-laugh/websson-libraries | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | [
"MIT"
] | null | null | null | structures/keywords.cpp | pat-laugh/websson-libraries | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | [
"MIT"
] | 33 | 2017-04-25T21:53:59.000Z | 2017-07-14T13:30:29.000Z | structures/keywords.cpp | pat-laugh/websson-libraries | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | [
"MIT"
] | null | null | null | //MIT License
//Copyright 2017-2018 Patrick Laughrea
#include "keywords.hpp"
#include <cassert>
#include <unordered_map>
using namespace std;
using namespace webss;
const Keyword::Enum Keyword::KEY_NULL;
const Keyword::Enum Keyword::KEY_FALSE;
const Keyword::Enum Keyword::KEY_TRUE;
static const unordered_map<string... | 22.410959 | 90 | 0.66687 | pat-laugh |
84554501b6ac6f4b8b0873cf60436e75d6f45eb0 | 10,717 | cc | C++ | tests/test_engines.cc | riccardoporreca/trng4 | 22cc3b684213bbce3d6ded917ccf5bdc23f14c22 | [
"BSD-3-Clause"
] | null | null | null | tests/test_engines.cc | riccardoporreca/trng4 | 22cc3b684213bbce3d6ded917ccf5bdc23f14c22 | [
"BSD-3-Clause"
] | null | null | null | tests/test_engines.cc | riccardoporreca/trng4 | 22cc3b684213bbce3d6ded917ccf5bdc23f14c22 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2000-2020, Heiko Bauke
// 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 ... | 34.908795 | 94 | 0.614071 | riccardoporreca |
8458b1b34d698532957e9c671e094b6f4e7d0556 | 2,833 | cpp | C++ | artemis-modified/src/strategies/inputgenerator/form/constantstringforminputgenerator.cpp | sch8906/static-dom-anlaysis | 840109a582e044ff2a4b0ab70f50369941a3c09d | [
"MIT"
] | 7 | 2018-01-18T10:31:24.000Z | 2021-06-29T07:16:44.000Z | artemis-code/src/strategies/inputgenerator/form/constantstringforminputgenerator.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 3 | 2016-06-29T20:53:52.000Z | 2017-05-14T06:01:20.000Z | artemis-code/src/strategies/inputgenerator/form/constantstringforminputgenerator.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 1 | 2019-02-20T13:34:59.000Z | 2019-02-20T13:34:59.000Z | /*
* Copyright 2012 Aarhus University
*
* 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 agre... | 37.276316 | 160 | 0.680551 | sch8906 |
84597bbf8f1d07dcec1940a34bc1a819db35993e | 12,388 | cpp | C++ | src/Registry.cpp | b-com-software-basis/xpcf | 26ce21929ff6209ef69117270cf49844348c988f | [
"Apache-2.0"
] | null | null | null | src/Registry.cpp | b-com-software-basis/xpcf | 26ce21929ff6209ef69117270cf49844348c988f | [
"Apache-2.0"
] | 7 | 2020-02-13T20:35:16.000Z | 2021-11-19T17:46:15.000Z | src/Registry.cpp | b-com-software-basis/xpcf | 26ce21929ff6209ef69117270cf49844348c988f | [
"Apache-2.0"
] | 1 | 2018-02-26T14:10:43.000Z | 2018-02-26T14:10:43.000Z | /**
* @copyright Copyright (c) 2019 B-com http://www.b-com.com/
*
* 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... | 35.803468 | 153 | 0.708508 | b-com-software-basis |
84655a23a7adb02446e832b41065f4a4125a7f97 | 3,120 | cpp | C++ | utilities/src/SnapConstraints/src/ConstraintHolder.cpp | Stalpaard/SensoHapt | 74c90f1f4b1a17bd94109bc6543a864006849c75 | [
"MIT"
] | null | null | null | utilities/src/SnapConstraints/src/ConstraintHolder.cpp | Stalpaard/SensoHapt | 74c90f1f4b1a17bd94109bc6543a864006849c75 | [
"MIT"
] | null | null | null | utilities/src/SnapConstraints/src/ConstraintHolder.cpp | Stalpaard/SensoHapt | 74c90f1f4b1a17bd94109bc6543a864006849c75 | [
"MIT"
] | null | null | null | /*****************************************************************************
Copyright (c) 2004 SensAble Technologies, Inc. All rights reserved.
OpenHaptics(TM) toolkit. The material embodied in this software and use of
this software is subject to the terms and conditions of the clickthrough
Development License Agr... | 25.57377 | 79 | 0.510577 | Stalpaard |
8465b1b6a47912d15c6ac9b0f56b592e9a4ed1c6 | 1,829 | hpp | C++ | core/src/main/cpp/include/res/font/Font.hpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | 2 | 2021-09-16T15:14:39.000Z | 2021-09-17T14:39:52.000Z | core/src/main/cpp/include/res/font/Font.hpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | null | null | null | core/src/main/cpp/include/res/font/Font.hpp | caolongcl/OpenImage | d29e0309bc35ff1766e0c81bfba82b185a7aabb6 | [
"BSD-3-Clause"
] | null | null | null | //
// Created by caolong on 2020/8/6.
//
#pragma once
#include <res/font/FontSquareModel.hpp>
#include <res/IRenderText.hpp>
#include <softarch/VarType.hpp>
#include <softarch/IComFunc.hpp>
#include <softarch/GLUtils.hpp>
#include <render/texture/Texture.hpp>
#include <res/Shader.hpp>
#include "freetype2/ft2build.h"... | 16.477477 | 71 | 0.597048 | caolongcl |
846885477fd78e338cc015a78fb6cd49020532ad | 5,966 | cxx | C++ | src/vw/Core/tests/TestThreadPool.cxx | lucasz93/visionworkbench | 1784572beda475e6770384f5cf34b578a320da51 | [
"Apache-2.0"
] | 318 | 2015-01-02T16:37:34.000Z | 2022-03-17T07:12:20.000Z | src/vw/Core/tests/TestThreadPool.cxx | lucasz93/visionworkbench | 1784572beda475e6770384f5cf34b578a320da51 | [
"Apache-2.0"
] | 39 | 2015-07-30T22:22:42.000Z | 2021-03-23T16:11:55.000Z | src/vw/Core/tests/TestThreadPool.cxx | lucasz93/visionworkbench | 1784572beda475e6770384f5cf34b578a320da51 | [
"Apache-2.0"
] | 135 | 2015-01-19T00:57:20.000Z | 2022-03-18T13:51:40.000Z | // __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... | 26.39823 | 125 | 0.6589 | lucasz93 |
846dd05e98cc96d6e2fcd00205d7c452f4b7b908 | 2,759 | cxx | C++ | src/unittest/inference/test_loc.cxx | yanlend/opengm | 910cba0323ddafd1f1b8bb5d4483d77dba234efd | [
"MIT"
] | null | null | null | src/unittest/inference/test_loc.cxx | yanlend/opengm | 910cba0323ddafd1f1b8bb5d4483d77dba234efd | [
"MIT"
] | null | null | null | src/unittest/inference/test_loc.cxx | yanlend/opengm | 910cba0323ddafd1f1b8bb5d4483d77dba234efd | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <vector>
#include <set>
#include <functional>
#include <opengm/graphicalmodel/graphicalmodel.hxx>
#include <opengm/operations/adder.hxx>
#include <opengm/operations/multiplier.hxx>
#include <opengm/operations/minimizer.hxx>
#include <opengm/operations/maximizer.hxx>
#include <opengm/infer... | 37.794521 | 104 | 0.676694 | yanlend |
847058ec7ccbc21857d40599a7a25d6c7e891a79 | 842 | cc | C++ | code/foundation/math/sce/sce_float4.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/foundation/math/sce/sce_float4.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/foundation/math/sce/sce_float4.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// float4.cc
// (C) 2007 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "math/sce/sce_float4.h"
#include "math/sce/sce_matrix44.h"
namespace Math
{
//------... | 26.3125 | 97 | 0.415677 | gscept |
847184f0231a9c138c8dddd85cb2de92d21abda8 | 3,382 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/ServiceDescription/CPP/servicedescription.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Remoting/ServiceDescription/CPP/servicedescription.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Remoting/ServiceDescription/CPP/servicedescription.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | // System.Web.Services.Description.ServiceDescription
/*
The following example demonstrates the 'ServiceDescription' class.
The input to the program is a WSDL file 'MyWsdl.wsdl'.
This program removes one 'Binding' from the existing WSDL.
A new Binding is defined and added to the ServiceDescription object.
The ... | 39.788235 | 111 | 0.724719 | hamarb123 |
84745000c03748c978d1686906f88762492a4954 | 4,030 | cpp | C++ | test/isomorphic_synth_equivalence.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 14 | 2018-03-10T21:50:20.000Z | 2021-11-22T04:09:09.000Z | test/isomorphic_synth_equivalence.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 3 | 2018-06-12T15:17:22.000Z | 2019-06-20T12:00:45.000Z | test/isomorphic_synth_equivalence.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 12 | 2018-03-10T17:02:07.000Z | 2022-01-09T16:04:56.000Z | #include <percy/percy.hpp>
#define MAX_TESTS 512ul
using namespace percy;
using kitty::static_truth_table;
/*
template<int nr_in>
void check_equivalence()
{
printf("Checking synthesis equivalence for %d-input functions\n", nr_in);
dag<2> g;
vector<int> perm(nr_in);
static_truth_table<nr_in> tt;
... | 26 | 98 | 0.558065 | mdsudara |
8476fc9ec7160ade5e7def7f4558215ce5b76ad9 | 2,857 | cpp | C++ | cpp/leetcode/419.BattleshipsInABoard.cpp | XiaoLLei/pungoo | 55bc55ec2dec721cdbb0a3ac3559d3c58fbf82cd | [
"Apache-2.0"
] | null | null | null | cpp/leetcode/419.BattleshipsInABoard.cpp | XiaoLLei/pungoo | 55bc55ec2dec721cdbb0a3ac3559d3c58fbf82cd | [
"Apache-2.0"
] | null | null | null | cpp/leetcode/419.BattleshipsInABoard.cpp | XiaoLLei/pungoo | 55bc55ec2dec721cdbb0a3ac3559d3c58fbf82cd | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
> File Name: 419.BattleshipsInABoard.cpp
> Author: XiaoLLei
> Mail: Errant.Xia@gmail.com
> Created Time: Tue 24 Jan 2017 05:05:25 PM CST
************************************************************************/
#include <iostream>
#include... | 27.737864 | 74 | 0.369968 | XiaoLLei |
84791bc83546a761f66c3612565ab3db0eddb799 | 5,361 | cpp | C++ | driver/main.cpp | sidsahay/nidra | c99702ac144c925daa1e9e3f7bac94cdc1f3ef5e | [
"MIT"
] | null | null | null | driver/main.cpp | sidsahay/nidra | c99702ac144c925daa1e9e3f7bac94cdc1f3ef5e | [
"MIT"
] | null | null | null | driver/main.cpp | sidsahay/nidra | c99702ac144c925daa1e9e3f7bac94cdc1f3ef5e | [
"MIT"
] | null | null | null | // Include standard headers
#include <vector>
#include <map>
#include <iostream>
#define USE_ASSIMP
// Include GLEW
#include <GL/glew.h>
// Include GLFW
#include <GLFW/glfw3.h>
GLFWwindow *window;
// Include GLM
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/quaternion.hpp>
using... | 31.910714 | 142 | 0.655288 | sidsahay |
847a45523c32cad0e740eb7fc6e4c74af69086a3 | 37,411 | cpp | C++ | modules/spacecraftinstruments/util/projectioncomponent.cpp | hedbergj/OpenSpace | 0125fb7a3be4d6e6529781522f5d9e9a826241fb | [
"MIT"
] | null | null | null | modules/spacecraftinstruments/util/projectioncomponent.cpp | hedbergj/OpenSpace | 0125fb7a3be4d6e6529781522f5d9e9a826241fb | [
"MIT"
] | null | null | null | modules/spacecraftinstruments/util/projectioncomponent.cpp | hedbergj/OpenSpace | 0125fb7a3be4d6e6529781522f5d9e9a826241fb | [
"MIT"
] | null | null | null | /*****************************************************************************************
* *
* OpenSpace *
* ... | 34.38511 | 90 | 0.58702 | hedbergj |
8488c87a392a334d1c70b994282efb13c79194be | 6,635 | cpp | C++ | Source/NightLight/KeyBindingUtil.cpp | sena0711/NightLight | d7de62c0e731fa42973ac27ab20be7bc99e05688 | [
"Apache-2.0"
] | null | null | null | Source/NightLight/KeyBindingUtil.cpp | sena0711/NightLight | d7de62c0e731fa42973ac27ab20be7bc99e05688 | [
"Apache-2.0"
] | null | null | null | Source/NightLight/KeyBindingUtil.cpp | sena0711/NightLight | d7de62c0e731fa42973ac27ab20be7bc99e05688 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "KeyBindingUtil.h"
#include "NightLight.h"
#include "GameFramework/InputSettings.h"
#include "UObject/UObjectGlobals.h"
UKeyBindingUtil::UKeyBindingUtil(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
}
... | 24.483395 | 117 | 0.760362 | sena0711 |
848b786526f497726e61f6cb730fe36ec97af622 | 24,093 | cpp | C++ | unexpected_decisions/pomcp/src/mcts.cpp | GiuMaz/XPOMCP | ba109f390ddc3c6224f7f41b20839866d6a232d8 | [
"MIT"
] | 2 | 2021-02-01T13:53:52.000Z | 2021-12-23T12:56:48.000Z | unexpected_decisions/pomcp/src/mcts.cpp | GiuMaz/XPOMCP | ba109f390ddc3c6224f7f41b20839866d6a232d8 | [
"MIT"
] | null | null | null | unexpected_decisions/pomcp/src/mcts.cpp | GiuMaz/XPOMCP | ba109f390ddc3c6224f7f41b20839866d6a232d8 | [
"MIT"
] | null | null | null | #include "mcts.h"
#include "testsimulator.h"
#include <math.h>
#include <algorithm>
using namespace std;
using namespace UTILS;
//-----------------------------------------------------------------------------
MCTS::PARAMS::PARAMS()
: Verbose(0),
MaxDepth(100),
NumSimulations(1000),
NumStartStates(1000)... | 31.28961 | 182 | 0.609306 | GiuMaz |
8496b776ce21a5dba7df399277b35634c5e8da2a | 362 | cpp | C++ | Leetcode1974.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | 1 | 2020-06-28T06:29:05.000Z | 2020-06-28T06:29:05.000Z | Leetcode1974.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | Leetcode1974.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
inline int cal(int x) {
if (x < 0) x += 26;
return x;
}
int minTimeToType(string word) {
int res = 0;
int pos = 0;
for (char c: word) {
res += min(cal(c - 'a' - pos), cal(pos - c + 'a'));
pos = c - 'a';
res+... | 20.111111 | 63 | 0.38674 | dezhonger |
849e235f0aeb32967efa644e40e991d87316f373 | 588 | cpp | C++ | wbs/src/UI/Common/TmplEx/ArrayEx.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 6 | 2017-05-26T21:19:41.000Z | 2021-09-03T14:17:29.000Z | wbs/src/UI/Common/TmplEx/ArrayEx.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 5 | 2016-02-18T12:39:58.000Z | 2016-03-13T12:57:45.000Z | wbs/src/UI/Common/TmplEx/ArrayEx.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 1 | 2019-06-16T02:49:20.000Z | 2019-06-16T02:49:20.000Z | //=========================================================
// TITLE: Array extention
// for WinNT, MSVC 6.0, MFC 6.00
// Copyright (C) Matrix Baltic Software
// Vilnius, Lithuania
// MODULE: ArrayEx.cpp
// PURPOSE: Implementation of the CArrayEx class.
//
// AUTHOR: Audrius Vasiliauskas
//
// ME... | 19.6 | 60 | 0.513605 | RNCan |
849e24f05d250bc6e2c1ecc139b3ede7dc5176d4 | 66,390 | cpp | C++ | modules/gles31/functional/es31fSRGBDecodeTests.cpp | imirkin/VK-GL-CTS | a10cacdef34a59cf14fa7693f5c970243e46c57c | [
"Apache-2.0"
] | null | null | null | modules/gles31/functional/es31fSRGBDecodeTests.cpp | imirkin/VK-GL-CTS | a10cacdef34a59cf14fa7693f5c970243e46c57c | [
"Apache-2.0"
] | null | null | null | modules/gles31/functional/es31fSRGBDecodeTests.cpp | imirkin/VK-GL-CTS | a10cacdef34a59cf14fa7693f5c970243e46c57c | [
"Apache-2.0"
] | null | null | null | /*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.1 Module
* -------------------------------------------------
*
* Copyright 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 32.947891 | 200 | 0.728589 | imirkin |
84a3110355ad5abc3c545c59620273125c8878d8 | 15,056 | cpp | C++ | OpenSim/Simulation/Model/HuntCrossleyForce.cpp | MaartenAfschrift/OpenSim_SourceAD | e063021c44e15744cfc5438b5fe5250d02018098 | [
"Apache-2.0"
] | 2 | 2020-10-30T09:08:44.000Z | 2020-12-08T07:15:54.000Z | OpenSim/Simulation/Model/HuntCrossleyForce.cpp | MaartenAfschrift/OpenSim_SourceAD | e063021c44e15744cfc5438b5fe5250d02018098 | [
"Apache-2.0"
] | null | null | null | OpenSim/Simulation/Model/HuntCrossleyForce.cpp | MaartenAfschrift/OpenSim_SourceAD | e063021c44e15744cfc5438b5fe5250d02018098 | [
"Apache-2.0"
] | null | null | null | ///* -------------------------------------------------------------------------- *
// * OpenSim: HuntCrossleyForce.cpp *
// * -------------------------------------------------------------------------- *
// * The OpenSim API is a toolkit for musculoskeletal modeling and simulat... | 38.804124 | 124 | 0.613908 | MaartenAfschrift |
84a41c3698337cb113cfe104346387d50ee733c0 | 2,244 | cpp | C++ | unit_tests/api/cl_create_user_event_tests_mt.cpp | jdanecki/compute-runtime | 0d7be1066d61a4e803fee9dcea6e9e9b4213b3b9 | [
"MIT"
] | null | null | null | unit_tests/api/cl_create_user_event_tests_mt.cpp | jdanecki/compute-runtime | 0d7be1066d61a4e803fee9dcea6e9e9b4213b3b9 | [
"MIT"
] | null | null | null | unit_tests/api/cl_create_user_event_tests_mt.cpp | jdanecki/compute-runtime | 0d7be1066d61a4e803fee9dcea6e9e9b4213b3b9 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017 - 2018, 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, ... | 34 | 107 | 0.722371 | jdanecki |
84a5cdf4c0dd49a2773648467266bac07dd2456d | 2,666 | cpp | C++ | test/function/scalar/bitwise_xor.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | test/function/scalar/bitwise_xor.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | test/function/scalar/bitwise_xor.cpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
Copyright 2015 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//====================================... | 33.746835 | 100 | 0.62003 | yaeldarmon |
84a62538a7168c5dd5eafb397a0f5229a523ddf2 | 2,703 | cpp | C++ | Zentrale/src/cpp/Rpc/RpcServer.cpp | pm1000/Energysystem | c23a0cd4a1ccdbc45cdbb528d566db2359d586de | [
"MIT"
] | null | null | null | Zentrale/src/cpp/Rpc/RpcServer.cpp | pm1000/Energysystem | c23a0cd4a1ccdbc45cdbb528d566db2359d586de | [
"MIT"
] | null | null | null | Zentrale/src/cpp/Rpc/RpcServer.cpp | pm1000/Energysystem | c23a0cd4a1ccdbc45cdbb528d566db2359d586de | [
"MIT"
] | null | null | null | //
// Created by yabr on 09.06.21.
//
#include "../../header/Rpc/RpcServer.h"
/**
*
*/
RpcServer::RpcServer() = default;
/**
*
*/
RpcServer::~RpcServer() = default;
/**
*
*/
grpc::Status RpcServer::GetKomponentenIDs(::grpc::ServerContext *context, const ::Energieversorger::Empty *request,
... | 21.452381 | 119 | 0.63707 | pm1000 |
84a8dc4e1518b2c0fe0a17cec2de01577a34f1f6 | 1,279 | hpp | C++ | src/bembel/graphics/rendering-pipeline/geometry-rendering-stage.hpp | JoachimHerber/Bembel-Game-Engine | 5c4e46c5a15356af6e997038a8d76065b0691b50 | [
"MIT"
] | 2 | 2018-01-02T14:07:54.000Z | 2021-07-05T08:05:21.000Z | src/bembel/graphics/rendering-pipeline/geometry-rendering-stage.hpp | JoachimHerber/Bembel-Game-Engine | 5c4e46c5a15356af6e997038a8d76065b0691b50 | [
"MIT"
] | null | null | null | src/bembel/graphics/rendering-pipeline/geometry-rendering-stage.hpp | JoachimHerber/Bembel-Game-Engine | 5c4e46c5a15356af6e997038a8d76065b0691b50 | [
"MIT"
] | null | null | null | #ifndef BEMBEL_GRAPHICS_RENDERING_PIPELINE_GEOMETRYRENDERINGSTAGE_HPP
#define BEMBEL_GRAPHICS_RENDERING_PIPELINE_GEOMETRYRENDERINGSTAGE_HPP
#include <bembel/base/io/xml.hpp>
#include <bembel/kernel/open-gl.hpp>
#include <bembel/kernel/rendering/frame-buffer-object.hpp>
#include <bembel/kernel/rendering/texture.hpp>
#... | 34.567568 | 76 | 0.753714 | JoachimHerber |
84af282ee4dc10be51f1ac5a48a032968290ad6a | 2,381 | cpp | C++ | src/2021/day-1/unittest.cpp | philong6297/advent-of-code | c5ee47050cc9ba1239b1558450850202c384c7b4 | [
"Unlicense"
] | null | null | null | src/2021/day-1/unittest.cpp | philong6297/advent-of-code | c5ee47050cc9ba1239b1558450850202c384c7b4 | [
"Unlicense"
] | null | null | null | src/2021/day-1/unittest.cpp | philong6297/advent-of-code | c5ee47050cc9ba1239b1558450850202c384c7b4 | [
"Unlicense"
] | null | null | null | // Copyright 2021 Long Le Phi. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.
#include "2021/day-1/solution.hpp"
#include <sstream>
#include <string>
#include <vector>
#include <doctest/doctest.h>
#include <fmt/format.h>
namespace {
using sol... | 24.295918 | 80 | 0.579168 | philong6297 |
84ba238a1997db6b08a8ed3f5eef12fbfdd89127 | 384 | cc | C++ | libmat/test/src/test_cFn_information.cc | stiegerc/winterface | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | [
"BSD-2-Clause"
] | 2 | 2020-10-06T09:14:23.000Z | 2020-11-25T06:08:54.000Z | libmat/test/src/test_cFn_information.cc | stiegerc/Winterface | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | [
"BSD-2-Clause"
] | 1 | 2020-12-23T04:20:33.000Z | 2020-12-23T04:20:33.000Z | libmat/test/src/test_cFn_information.cc | stiegerc/Winterface | b6d501df1d0c015f2cd7126ac6b4e746d541c80c | [
"BSD-2-Clause"
] | 1 | 2020-07-14T13:53:32.000Z | 2020-07-14T13:53:32.000Z | // 2014-2019, ETH Zurich, Integrated Systems Laboratory
// Authors: Christian Stieger
#include "testTools.h"
#include "test_tFn_information.h"
#include "test_tFn_information.cc"
// test id
template<>
const char* test_tFn_information<CPX__,RE__,CPX__>::test_id() noexcept {
return "test_cFn_information";
}
// insta... | 21.333333 | 72 | 0.778646 | stiegerc |
84be175ee9a9eb19b62bd926ab6fc10b1dd1c2fa | 361 | cpp | C++ | Day 5/Q.1]/RAO.cpp | gopalshendge18/Practice-Question | c0dfefb4b6d7c3c5344d09b23d311f07a4444149 | [
"MIT"
] | 1 | 2022-01-03T14:04:26.000Z | 2022-01-03T14:04:26.000Z | Day 5/Q.1]/RAO.cpp | gopalshendge18/Practice-Question | c0dfefb4b6d7c3c5344d09b23d311f07a4444149 | [
"MIT"
] | null | null | null | Day 5/Q.1]/RAO.cpp | gopalshendge18/Practice-Question | c0dfefb4b6d7c3c5344d09b23d311f07a4444149 | [
"MIT"
] | 8 | 2021-11-03T04:12:17.000Z | 2021-12-11T09:28:54.000Z | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
int t;
cin>>t;
while(t--){
ll c, a, b, bits = 0, x;
cin>>c;
x = c;
while(x>0){
x /= 2;
bits++;
}
a = pow(2, (bits-1)) - 1;
b = a^c;
cou... | 12.892857 | 33 | 0.365651 | gopalshendge18 |
84c48a7d1704e885ad75fa55c1c4a871c4c806c2 | 5,208 | cpp | C++ | FGGSD_2/13_freeglut/Cube.cpp | nerolileung/cgd_year1 | 211e91c37831a388b1abe1a1cc496716a4e9ca44 | [
"MIT"
] | null | null | null | FGGSD_2/13_freeglut/Cube.cpp | nerolileung/cgd_year1 | 211e91c37831a388b1abe1a1cc496716a4e9ca44 | [
"MIT"
] | null | null | null | FGGSD_2/13_freeglut/Cube.cpp | nerolileung/cgd_year1 | 211e91c37831a388b1abe1a1cc496716a4e9ca44 | [
"MIT"
] | 1 | 2019-12-09T22:41:49.000Z | 2019-12-09T22:41:49.000Z | #include "Cube.h"
#include <iostream>
using namespace std;
Cube::Cube(Mesh* mesh) : SceneObject(mesh){
_position.x = ((rand() % 49) - 25);
_position.y = ((rand() % 49) - 25);
_position.z = ((rand() % 49) - 25);
_rotationChange = 0.5f + ((rand() % 20) - 10);
_mesh = new TexturedMesh();
_mesh->vertexCo... | 34.039216 | 175 | 0.648425 | nerolileung |
84c5bd09af979fdc88942b580de7c4c9e489dede | 16,612 | cpp | C++ | src/base/command/PlotCommand.cpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | 1 | 2018-09-18T07:09:36.000Z | 2018-09-18T07:09:36.000Z | src/base/command/PlotCommand.cpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | null | null | null | src/base/command/PlotCommand.cpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | 2 | 2020-06-18T04:45:30.000Z | 2021-07-20T02:11:54.000Z | //$Id$
//------------------------------------------------------------------------------
// PlotCommand
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2015 United States Government as... | 34.972632 | 94 | 0.483446 | rockstorm101 |
84caae3ef50a35ed5d9dc59b5d4a64ce1914f426 | 526 | cpp | C++ | Lumos/Source/Lumos/Graphics/RHI/Query.cpp | full-dev1010/C-2D-3D-game-engine | f5e6a2b4d938386e2886e22a9a7aad52a22086ad | [
"MIT"
] | 1 | 2021-10-04T07:19:27.000Z | 2021-10-04T07:19:27.000Z | Lumos/Source/Lumos/Graphics/RHI/Query.cpp | full-dev1010/C-2D-3D-game-engine | f5e6a2b4d938386e2886e22a9a7aad52a22086ad | [
"MIT"
] | null | null | null | Lumos/Source/Lumos/Graphics/RHI/Query.cpp | full-dev1010/C-2D-3D-game-engine | f5e6a2b4d938386e2886e22a9a7aad52a22086ad | [
"MIT"
] | null | null | null | #include "Precompiled.h"
#include "Query.h"
#ifdef LUMOS_RENDER_API_OPENGL
#include "Platform/OpenGL/GLQuery.h"
#endif
#ifdef LUMOS_RENDER_API_DIRECT3D
#include "Graphics/directx/DXQuery.h"
#endif
#include "Graphics/RHI/GraphicsContext.h"
namespace Lumos
{
namespace Graphics
{
Query* (*Query::Create... | 18.785714 | 65 | 0.669202 | full-dev1010 |
84ccbb3f4c87ee2dd85e1703ac1f508f9f03da53 | 3,082 | cpp | C++ | Triple/Triple.cpp | bnu05pp/gStoreD | 6522a573771af9af77240063f9e7a8246cf42677 | [
"BSD-3-Clause"
] | 14 | 2016-08-24T14:51:52.000Z | 2022-03-01T01:50:10.000Z | Triple/Triple.cpp | bnu05pp/gStoreD | 6522a573771af9af77240063f9e7a8246cf42677 | [
"BSD-3-Clause"
] | 2 | 2018-05-20T23:32:38.000Z | 2019-10-07T12:50:52.000Z | Triple/Triple.cpp | bnu05pp/gStoreD | 6522a573771af9af77240063f9e7a8246cf42677 | [
"BSD-3-Clause"
] | 4 | 2016-10-06T13:31:59.000Z | 2018-09-04T12:18:12.000Z | /*
* Triple.cpp
*
* Created on: 2014-6-20
* Author: liyouhuan
*/
#include "Triple.h"
Triple::Triple(const string& _s, const string& _p, const string& _o)
{
this->subject = _s;
this->predicate = _p;
this->object = _o;
}
/* _line responds to a triple
* It's OK if _line ends up with '.' or not
* tuples ... | 21.704225 | 130 | 0.691759 | bnu05pp |
84d59429d1912b8324b92db2c2a82f3fe2bff163 | 1,080 | cpp | C++ | Flyweight/Flyweight.cpp | jhxqy/designpattern | 0b28694c92b95b6a43a763ca80228d0e82a1f8b0 | [
"MIT"
] | 2 | 2019-10-05T14:58:21.000Z | 2019-11-28T02:16:47.000Z | Flyweight/Flyweight.cpp | jhxqy/designpattern | 0b28694c92b95b6a43a763ca80228d0e82a1f8b0 | [
"MIT"
] | null | null | null | Flyweight/Flyweight.cpp | jhxqy/designpattern | 0b28694c92b95b6a43a763ca80228d0e82a1f8b0 | [
"MIT"
] | null | null | null | //
// Flyweight.cpp
// DesignPattern
//
// Created by 贾皓翔 on 2018/10/22.
// Copyright © 2018 贾皓翔. All rights reserved.
//
#include "Flyweight.hpp"
using namespace std;
void ConcretePiece::PrintPosition(int r, int c){
switch (color_) {
case Piece::black:
cout<<r<<"行 "<<c<<"列 黑子"<<endl;
... | 21.6 | 52 | 0.536111 | jhxqy |
84d9f392a14f7dd2d68f52ec35b0a2d1569dfe93 | 1,473 | hpp | C++ | saga/saga/adaptors/packages/logical_file_cpi_instance_data.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | saga/saga/adaptors/packages/logical_file_cpi_instance_data.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | saga/saga/adaptors/packages/logical_file_cpi_instance_data.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | // Copyright (c) 2005-2009 Hartmut Kaiser
// Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net)
//
// 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)
#ifndef SAGA_SAGA_ADAPTORS_LOGICAL_FILE_CPI_INSTANCE_DAT... | 39.810811 | 81 | 0.630686 | saga-project |
84d9fdd55f4ad2e55727513a8041b8969ea08d80 | 695 | cpp | C++ | Framework/Core/Src/MetaRegistry.cpp | amyrhzhao/CooEngine | 8d467cc53fd8fe3806d726cfe4d7482ad0aca06a | [
"MIT"
] | 3 | 2020-07-23T02:50:11.000Z | 2020-10-20T14:49:40.000Z | Framework/Core/Src/MetaRegistry.cpp | amyrhzhao/CooEngine | 8d467cc53fd8fe3806d726cfe4d7482ad0aca06a | [
"MIT"
] | null | null | null | Framework/Core/Src/MetaRegistry.cpp | amyrhzhao/CooEngine | 8d467cc53fd8fe3806d726cfe4d7482ad0aca06a | [
"MIT"
] | null | null | null | #include "Precompiled.h"
#include "MetaRegistry.h"
#include "Debug.h"
#include "MetaClass.h"
using namespace Coo::Core;
namespace
{
inline auto& GetRegistry()
{
using MetaClassMap = std::map<std::string, const Meta::MetaClass*>;
static MetaClassMap sMetaClassMap;
return sMetaClassMap;
}
}
... | 23.166667 | 104 | 0.694964 | amyrhzhao |
84dd63a3d1ea011bfd190a1d462cd8c87e414e07 | 2,349 | hh | C++ | kenlm/lm/interpolate/bounded_sequence_encoding.hh | cmedlock/deepspeech.pytorch | 7f0dbcdb3bcc41992136ebedfcd3e7d6fdb256d1 | [
"MIT"
] | 33 | 2019-12-07T01:34:14.000Z | 2021-12-29T01:55:29.000Z | Part 02/001_LM/ngram_lm_lab/kenlm/lm/interpolate/bounded_sequence_encoding.hh | Kabongosalomon/AMMI-NLP | 00a0e47399926ad1951b84a11cd936598a9c7c3b | [
"MIT"
] | 13 | 2020-11-10T07:47:49.000Z | 2021-12-08T19:33:42.000Z | Part 02/001_LM/ngram_lm_lab/kenlm/lm/interpolate/bounded_sequence_encoding.hh | Kabongosalomon/AMMI-NLP | 00a0e47399926ad1951b84a11cd936598a9c7c3b | [
"MIT"
] | 7 | 2020-01-07T05:06:00.000Z | 2021-07-16T21:44:09.000Z | #ifndef LM_INTERPOLATE_BOUNDED_SEQUENCE_ENCODING_H
#define LM_INTERPOLATE_BOUNDED_SEQUENCE_ENCODING_H
/* Encodes fixed-length sequences of integers with known bounds on each entry.
* This is used to encode how far each model has backed off.
* TODO: make this class efficient. Bit-level packing or multiply by bound a... | 30.506494 | 135 | 0.642401 | cmedlock |
84dd8db02510f4752cdc7c2e625d79915be7c895 | 6,635 | cpp | C++ | src/common/tcpheader.cpp | smurfomen/tcpuploader | 25f54f14984ccdcbc59dcacd75d01a23d6b888d6 | [
"MIT"
] | null | null | null | src/common/tcpheader.cpp | smurfomen/tcpuploader | 25f54f14984ccdcbc59dcacd75d01a23d6b888d6 | [
"MIT"
] | null | null | null | src/common/tcpheader.cpp | smurfomen/tcpuploader | 25f54f14984ccdcbc59dcacd75d01a23d6b888d6 | [
"MIT"
] | null | null | null | #include <QRegularExpression>
#include <QRegularExpressionMatch>
#include "QHostAddress"
#include "QHostInfo"
#include "QNetworkInterface"
#include "tcpheader.h"
TcpHeader::TcpHeader()
{
sign = SIGNATURE;
len = 4;
}
ExtendedTcpHeader::ExtendedTcpHeader()
{
sign1 = SIGNATURE;
sign2 = 0x... | 40.457317 | 180 | 0.625923 | smurfomen |
84e3f90a79c6995087df88a32e114c92fbe0b61e | 584 | hpp | C++ | Engine/Header/Game/Floppy/Asset/S_BigAsset.hpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | 9 | 2018-07-21T00:30:35.000Z | 2021-09-04T02:54:11.000Z | Engine/Header/Game/Floppy/Asset/S_BigAsset.hpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | null | null | null | Engine/Header/Game/Floppy/Asset/S_BigAsset.hpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | 1 | 2021-12-03T14:12:41.000Z | 2021-12-03T14:12:41.000Z | /// \file S_BigAsset.hpp
/// \date 08/08/2018
/// \project OOM-Engine
/// \package Built-in/Script
/// \author Vincent STEHLY--CALISTO
#ifndef OOM_ENGINE_S_BIG_ASSET_HPP__
#define OOM_ENGINE_S_BIG_ASSET_HPP__
#include "SDK/SDK.hpp"
#include "Game/Floppy/Asset/IAsset.hpp"
class S_BigAsset : publ... | 18.25 | 50 | 0.691781 | Aredhele |
84e5a2350aa6f14fc3a1afc7d3d253cc09e9dd1d | 998 | cpp | C++ | algorithm/8-7-2-calc.cpp | Evg503/Stepik | f84cddfd311b067bf34c3ef3df69956c51e25096 | [
"MIT"
] | null | null | null | algorithm/8-7-2-calc.cpp | Evg503/Stepik | f84cddfd311b067bf34c3ef3df69956c51e25096 | [
"MIT"
] | null | null | null | algorithm/8-7-2-calc.cpp | Evg503/Stepik | f84cddfd311b067bf34c3ef3df69956c51e25096 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
using namespace std;
int n;
const int maxn = 100000+5;
int D[maxn] = {};
char path[maxn] = {};
int k = 0;
int out[maxn] = {};
int calc()
{
for (int i = 2; i <=n; ++i)
{
D[i] = D[i-1]+1;
path[i] = '1';
if(i%2 == 0)
{
if(D[i/2]+1<D[i])
{
D[i] = D[i/2]+1;
... | 14.463768 | 48 | 0.336673 | Evg503 |
84e65d18f7b25ad934e28313a3a132235a529fd0 | 5,475 | cpp | C++ | samples/ExtendedUWPSamples/MSDKInterop/pch.cpp | fzhar/MediaSDK | be66c7e40b04f6594e3c075a6138ff706616e0cc | [
"MIT"
] | null | null | null | samples/ExtendedUWPSamples/MSDKInterop/pch.cpp | fzhar/MediaSDK | be66c7e40b04f6594e3c075a6138ff706616e0cc | [
"MIT"
] | null | null | null | samples/ExtendedUWPSamples/MSDKInterop/pch.cpp | fzhar/MediaSDK | be66c7e40b04f6594e3c075a6138ff706616e0cc | [
"MIT"
] | null | null | null | /******************************************************************************\
Copyright (c) 2005-2018, Intel 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:
1. Redistributions of source ... | 53.676471 | 755 | 0.748676 | fzhar |
84e84d3cc4337615e5c285b10d5da7ea9f80132c | 2,424 | cpp | C++ | Graph-Map-Editor/Graph-Map-Editor/main.cpp | SaivNator/Graph-Map-Editor | ede597fa6de3812cbb3f63fe8b822d05a09a3c5f | [
"MIT"
] | null | null | null | Graph-Map-Editor/Graph-Map-Editor/main.cpp | SaivNator/Graph-Map-Editor | ede597fa6de3812cbb3f63fe8b822d05a09a3c5f | [
"MIT"
] | null | null | null | Graph-Map-Editor/Graph-Map-Editor/main.cpp | SaivNator/Graph-Map-Editor | ede597fa6de3812cbb3f63fe8b822d05a09a3c5f | [
"MIT"
] | null | null | null | //Author: Sivert Andresen Cubedo
#include <ostream>
#include <sstream>
#include <iostream>
#include <vector>
#include <array>
#include <SFML\Graphics.hpp>
#include "Window.hpp"
#include "EditorPath.hpp"
#include "RemoveHull.hpp"
#include "MergeTriangles.hpp"
int main() {
std::vector<std::unique_ptr<MapPoint>> poi... | 23.307692 | 143 | 0.632013 | SaivNator |
84f48b5515fd790e32fac81d75e7d15078b654a9 | 3,538 | hpp | C++ | logos/epoch/epoch_voting_manager.hpp | LogosNetwork/logos-core | 6b155539a734efefb8f649a761d044b5f267a51a | [
"BSD-2-Clause"
] | 3 | 2020-01-17T18:05:19.000Z | 2021-12-29T04:21:59.000Z | logos/epoch/epoch_voting_manager.hpp | LogosNetwork/logos-core | 6b155539a734efefb8f649a761d044b5f267a51a | [
"BSD-2-Clause"
] | null | null | null | logos/epoch/epoch_voting_manager.hpp | LogosNetwork/logos-core | 6b155539a734efefb8f649a761d044b5f267a51a | [
"BSD-2-Clause"
] | 2 | 2020-12-22T05:51:53.000Z | 2021-06-08T00:27:46.000Z | ///
/// @file
/// This file contains definition of the EpochVotingManager class which handles epoch voting
///
#pragma once
#include <boost/log/sources/record_ostream.hpp>
#include <boost/log/sources/logger.hpp>
#include <logos/epoch/epoch.hpp>
#include <logos/lib/log.hpp>
#include <unordered_set>
#include <logos/ele... | 34.686275 | 92 | 0.70831 | LogosNetwork |
84f6dd845c710710a83bc9b7dd3a3a61806fb51c | 13,905 | cpp | C++ | src/lua/functions/creatures/npc/npc_functions.cpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | src/lua/functions/creatures/npc/npc_functions.cpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | src/lua/functions/creatures/npc/npc_functions.cpp | Waclaw-I/BagnoOTS | dbeb04322698ecdb795eba196872815b36ca134f | [
"MIT"
] | null | null | null | /**
* Canary - A free and open-source MMORPG server emulator
* Copyright (C) 2021 OpenTibiaBR <opentibiabr@outlook.com>
*
* 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 o... | 23.688245 | 119 | 0.693923 | Waclaw-I |
84f8dd5ae3d60a3b9a8d1096cf819b498af0decf | 1,596 | cpp | C++ | Behavioral/Interpreter/src/Lexer.cpp | craviee/design-patterns-modern-cpp | 39896c8a2491c5599f79afa65a07deda2e4e7dd7 | [
"Unlicense"
] | 3 | 2019-11-15T01:38:31.000Z | 2020-04-21T13:04:19.000Z | Behavioral/Interpreter/src/Lexer.cpp | craviee/design-patterns-modern-cpp | 39896c8a2491c5599f79afa65a07deda2e4e7dd7 | [
"Unlicense"
] | 23 | 2019-11-29T09:13:42.000Z | 2020-02-05T14:53:03.000Z | Behavioral/Interpreter/src/Lexer.cpp | craviee/design-patterns-modern-cpp | 39896c8a2491c5599f79afa65a07deda2e4e7dd7 | [
"Unlicense"
] | null | null | null | #include "Lexer.hpp"
void Lexer::finishIntegerToken(std::vector<Token>& rawTokens, std::string& currentAppend, bool& processingInteger)
{
rawTokens.push_back(Token{TokenType::INTEGER, std::stoi(currentAppend)});
currentAppend = "";
processingInteger = false;
}
std::vector<Token> Lexer::getTokens()
{
... | 30.113208 | 114 | 0.588346 | craviee |
84f9a0652e47b5b280b77512dd58d248487ee28e | 17,054 | cpp | C++ | Library/QuadRemeshing.cpp | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | Library/QuadRemeshing.cpp | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | Library/QuadRemeshing.cpp | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null |
#include "QuadRemeshing.hpp"
#include "../libs/quadwild/components/field_computation/AutoRemesher.h"
#include "../libs/quadwild/components/field_computation/mesh_manager.h"
#include "../libs/quadwild/components/field_computation/triangle_mesh_type.h"
#include "../libs/quadwild/components/quad_from_patches/load_save.h"... | 33.972112 | 80 | 0.683711 | Pentacode-IAFA |
ebcbf69eb3bc55dbf26a9f2c1e1425812e997e24 | 2,810 | cpp | C++ | FlowField/src/ofApp.cpp | AmnonOwed/OF_GenerativeTypography | 48d93403664d50688e5b0d6d452149240eb1ca30 | [
"MIT"
] | 103 | 2015-01-23T11:27:15.000Z | 2022-02-10T02:16:38.000Z | FlowField/src/ofApp.cpp | sandblasted7/OF_GenerativeTypography | 48d93403664d50688e5b0d6d452149240eb1ca30 | [
"MIT"
] | null | null | null | FlowField/src/ofApp.cpp | sandblasted7/OF_GenerativeTypography | 48d93403664d50688e5b0d6d452149240eb1ca30 | [
"MIT"
] | 15 | 2015-01-25T00:06:28.000Z | 2017-08-14T02:48:49.000Z | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
maxParticles = 1000; // the maximum number of active particles
drawMode = 0; // move through the drawing modes by clicking the mouse
bg_color = ofColor(255);
fbo_color = ofColor(0);
bUpdateDrawMode... | 29.893617 | 156 | 0.581139 | AmnonOwed |
ebcc13f8a936a1fcd12d86e7a18714247a8f5c8f | 12,008 | hxx | C++ | opencascade/TObj_Model.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/TObj_Model.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/TObj_Model.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 2004-11-23
// Created by: Pavel TELKOV
// Copyright (c) 2004-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as ... | 32.27957 | 105 | 0.71927 | mgreminger |
ebd2d169d72aa7a235167842efc13e2b43023df6 | 4,937 | cpp | C++ | applications/mne_analyze/extensions/surfer/surfer.cpp | MagCPP/mne-cpp | 05f634a8401b20226bd719254a5da227e67a379b | [
"BSD-3-Clause"
] | 1 | 2019-05-14T07:38:25.000Z | 2019-05-14T07:38:25.000Z | applications/mne_analyze/extensions/surfer/surfer.cpp | MagCPP/mne-cpp | 05f634a8401b20226bd719254a5da227e67a379b | [
"BSD-3-Clause"
] | 1 | 2018-08-23T12:40:56.000Z | 2018-08-23T12:40:56.000Z | applications/mne_analyze/extensions/surfer/surfer.cpp | MagCPP/mne-cpp | 05f634a8401b20226bd719254a5da227e67a379b | [
"BSD-3-Clause"
] | null | null | null | //=============================================================================================================
/**
* @file surfer.cpp
* @author Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date February, 2017
*
* @section LICENSE
*
* ... | 34.284722 | 116 | 0.423942 | MagCPP |
ebdbb44fb8262fe3d61ca4308b3da19972979c97 | 6,907 | cpp | C++ | mp/src/old/dlls/physics_impact_damage.cpp | MaartenS11/Team-Fortress-Invasion | f36b96d27f834d94e0db2d2a9470b05b42e9b460 | [
"Unlicense"
] | 1 | 2021-03-20T14:27:45.000Z | 2021-03-20T14:27:45.000Z | mp/src/old/dlls/physics_impact_damage.cpp | MaartenS11/Team-Fortress-Invasion | f36b96d27f834d94e0db2d2a9470b05b42e9b460 | [
"Unlicense"
] | null | null | null | mp/src/old/dlls/physics_impact_damage.cpp | MaartenS11/Team-Fortress-Invasion | f36b96d27f834d94e0db2d2a9470b05b42e9b460 | [
"Unlicense"
] | null | null | null | #include "cbase.h"
#include "physics_impact_damage.h"
//==============================================================================================
// PLAYER PHYSICS DAMAGE TABLE
//==============================================================================================
static impactentry_t playerLinearTable[]... | 28.423868 | 172 | 0.64051 | MaartenS11 |
ebdcb22d71677f5f03f0c7c3a2cfc6e78a06132e | 1,534 | cpp | C++ | src/ZoomGraphicsView.cpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/ZoomGraphicsView.cpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/ZoomGraphicsView.cpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | #include "ZoomGraphicsView.hpp"
#include <QWheelEvent>
#include <QMouseEvent>
#include <QScrollBar>
namespace sempr { namespace gui {
ZoomGraphicsView::ZoomGraphicsView(QWidget* parent)
: QGraphicsView(parent), moving_(false)
{
}
void ZoomGraphicsView::wheelEvent(QWheelEvent* event)
{
const ViewportAnchor a... | 21.914286 | 77 | 0.653846 | sempr-tk |
ebde48db4e9c0e86ab05a0060a718fc2a915583e | 6,268 | cc | C++ | src/kernel/cobject.cc | hackbinary/pdfedit | 5efb58265d0b86c2786d7b218aa0d6f895b926d3 | [
"CECILL-B"
] | 63 | 2016-01-08T14:48:19.000Z | 2022-03-23T11:21:28.000Z | src/kernel/cobject.cc | mmoselhy/PDF-X | b72597bbb0c6c86d99e44cf18f7b46d5175a7bfa | [
"CECILL-B"
] | 2 | 2017-05-12T02:57:20.000Z | 2020-08-15T13:16:00.000Z | src/kernel/cobject.cc | mmoselhy/PDF-X | b72597bbb0c6c86d99e44cf18f7b46d5175a7bfa | [
"CECILL-B"
] | 27 | 2015-01-21T01:33:56.000Z | 2022-03-22T19:42:45.000Z | /*
* PDFedit - free program for PDF document manipulation.
* Copyright (C) 2006-2009 PDFedit team: Michal Hocko,
* Jozef Misutka,
* Martin Petricek
* Former team members: Miroslav Jahoda
*
* This program is free soft... | 29.566038 | 121 | 0.616305 | hackbinary |
ebdec7874a7cbe0896d5c625cc89b9cce1bf4746 | 633 | cpp | C++ | jitast/AstFun1.cpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | 11 | 2015-06-12T19:54:14.000Z | 2021-11-26T10:45:18.000Z | jitast/AstFun1.cpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | jitast/AstFun1.cpp | cjang/chai | 7faba752cc4491d1b30590abef21edc4efffa0f6 | [
"Unlicense"
] | null | null | null | // Copyright 2012 Chris Jang (fastkor@gmail.com) under The Artistic License 2.0
#include "AstFun1.hpp"
using namespace std;
namespace chai_internal {
////////////////////////////////////////////////
// single argument functions
AstFun1::AstFun1(const string& fun,
BaseAst* barg)
: BaseAst(barg-... | 18.085714 | 79 | 0.543444 | cjang |
ebe616658d80064f3d37cafb99bb4e45691bbc8c | 3,651 | cpp | C++ | sp/src/game/server/WaterLODControl.cpp | joshmartel/source-sdk-2013 | 524e87f708d6c30360613b1f65ee174deafa20f4 | [
"Unlicense"
] | 2,268 | 2015-01-01T19:31:56.000Z | 2022-03-31T20:15:31.000Z | sp/src/game/server/WaterLODControl.cpp | joshmartel/source-sdk-2013 | 524e87f708d6c30360613b1f65ee174deafa20f4 | [
"Unlicense"
] | 241 | 2015-01-01T15:26:14.000Z | 2022-03-31T22:09:59.000Z | sp/src/game/server/WaterLODControl.cpp | DimasDSF/SMI | 76cc2df8d1f51eb06743d66169524c3493b6d407 | [
"Unlicense"
] | 2,174 | 2015-01-01T08:18:05.000Z | 2022-03-31T10:43:59.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Shadow control entity.
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdb... | 30.680672 | 93 | 0.581211 | joshmartel |
ebe757bb1e9da7331edec54e51fbe7cca1ade6eb | 13,115 | cpp | C++ | src/mongo/s/catalog/type_settings.cpp | daveh86/mongo | a6462c6926ea97508b803b70fae0357b85b50427 | [
"Apache-2.0"
] | 1 | 2020-03-23T02:59:49.000Z | 2020-03-23T02:59:49.000Z | src/mongo/s/catalog/type_settings.cpp | daveh86/mongo | a6462c6926ea97508b803b70fae0357b85b50427 | [
"Apache-2.0"
] | null | null | null | src/mongo/s/catalog/type_settings.cpp | daveh86/mongo | a6462c6926ea97508b803b70fae0357b85b50427 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2012 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... | 42.71987 | 102 | 0.565307 | daveh86 |
ebe8faed97aca94bde9a912d857ce6c1db1921ea | 1,166 | cpp | C++ | Libraries/Editor/ResourceCommands.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 1 | 2019-07-13T03:36:11.000Z | 2019-07-13T03:36:11.000Z | Libraries/Editor/ResourceCommands.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Editor/ResourceCommands.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
#include "Widget/Command.hpp"
#include "Widget/CommandBinding.hpp"
#include "Editor.hpp"
//#include "EditorImport.hpp"
#include "ContentUploader.hpp"
#include "ContentPackageImporter.hpp"
namespace Zero
{
// Update the transforms of the object hierarchy wit... | 29.897436 | 94 | 0.782161 | RyanTylerRae |
ebeb00673505354f1887227ec2fd97d87efd7f7c | 2,419 | cpp | C++ | ExplainConcepts/LinkParameterGUI_Synth/PluginEditor.cpp | JoergBitzer/DAFx2020 | 64e2f02047ad843760aaf4dcc0aa6986cc82d1d2 | [
"BSD-3-Clause"
] | null | null | null | ExplainConcepts/LinkParameterGUI_Synth/PluginEditor.cpp | JoergBitzer/DAFx2020 | 64e2f02047ad843760aaf4dcc0aa6986cc82d1d2 | [
"BSD-3-Clause"
] | null | null | null | ExplainConcepts/LinkParameterGUI_Synth/PluginEditor.cpp | JoergBitzer/DAFx2020 | 64e2f02047ad843760aaf4dcc0aa6986cc82d1d2 | [
"BSD-3-Clause"
] | 1 | 2020-06-15T19:04:58.000Z | 2020-06-15T19:04:58.000Z | /*
==============================================================================
This file was auto-generated!
It contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "PluginEd... | 39.016129 | 114 | 0.661844 | JoergBitzer |
ebede4abcecfdbbcc6ab030f3401895a46992d01 | 2,223 | cpp | C++ | Code/Engine/Core/Assets/Implementation/AssetFileHeader.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 703 | 2015-03-07T15:30:40.000Z | 2022-03-30T00:12:40.000Z | Code/Engine/Core/Assets/Implementation/AssetFileHeader.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 233 | 2015-01-11T16:54:32.000Z | 2022-03-19T18:00:47.000Z | Code/Engine/Core/Assets/Implementation/AssetFileHeader.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 101 | 2016-10-28T14:05:10.000Z | 2022-03-30T19:00:59.000Z | #include <Core/CorePCH.h>
#include <Core/Assets/AssetFileHeader.h>
#include <Foundation/IO/MemoryStream.h>
static const char* g_szAssetTag = "ezAsset";
ezAssetFileHeader::ezAssetFileHeader()
{
// initialize to a 'valid' hash
// this may get stored, unless someone sets the hash
m_uiHash = 0;
m_uiVersion = 0;
... | 23.4 | 120 | 0.721997 | Tekh-ops |
ebf5c420d741609779e400f5c13bb94d29a130ec | 1,848 | cpp | C++ | Source/gravity/Castro_pointmass.cpp | taehoryu/Castro | 223c72c993343ba5df84613d058ffb0767c2a7c9 | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-06-05T19:23:47.000Z | 2019-06-05T19:23:47.000Z | Source/gravity/Castro_pointmass.cpp | taehoryu/Castro | 223c72c993343ba5df84613d058ffb0767c2a7c9 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/gravity/Castro_pointmass.cpp | taehoryu/Castro | 223c72c993343ba5df84613d058ffb0767c2a7c9 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "Castro.H"
#include "Castro_F.H"
using namespace amrex;
void
Castro::pointmass_update(Real time, Real dt)
{
int finest_level = parent->finestLevel();
if (level == finest_level && point_mass_fix_solution)
{
MultiFab& S_old = get_old_data(State_Type);
MultiFab& S_new = get_new_data(State... | 27.176471 | 113 | 0.62987 | taehoryu |
ebfd2b3d41ee7dbe7e25621c8197402c4bafe3b2 | 1,461 | cpp | C++ | src/OpenLoco/Windows/VehicleList.cpp | janisozaur/loko64 | 7fbba844afbca10ff289b7382d00600ebab24bde | [
"MIT"
] | null | null | null | src/OpenLoco/Windows/VehicleList.cpp | janisozaur/loko64 | 7fbba844afbca10ff289b7382d00600ebab24bde | [
"MIT"
] | null | null | null | src/OpenLoco/Windows/VehicleList.cpp | janisozaur/loko64 | 7fbba844afbca10ff289b7382d00600ebab24bde | [
"MIT"
] | null | null | null | #include "../Interop/Interop.hpp"
#include "../OpenLoco.h"
#include "../Ui/WindowManager.h"
#include <stdexcept>
using namespace OpenLoco::Interop;
namespace OpenLoco::Ui::Windows::VehicleList
{
enum widx
{
frame = 0,
caption = 1,
close_button = 2,
panel = 3,
tab_trains... | 23.190476 | 95 | 0.519507 | janisozaur |
ebff71fc3af131f43b1560f71bba2893efe59de5 | 8,584 | cpp | C++ | OrionUO/GUI/GUIShopItem.cpp | BryanNoller/OrionUO | 5985315969c5f3c7c7552392d9d40d4b24b718e2 | [
"MIT"
] | 169 | 2016-09-16T22:24:34.000Z | 2022-03-27T09:58:20.000Z | OrionUO/GUI/GUIShopItem.cpp | BryanNoller/OrionUO | 5985315969c5f3c7c7552392d9d40d4b24b718e2 | [
"MIT"
] | 104 | 2016-10-26T23:02:52.000Z | 2021-10-02T17:36:04.000Z | OrionUO/GUI/GUIShopItem.cpp | BryanNoller/OrionUO | 5985315969c5f3c7c7552392d9d40d4b24b718e2 | [
"MIT"
] | 111 | 2016-09-16T22:25:30.000Z | 2022-03-28T07:01:40.000Z | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/***********************************************************************************
**
** GUIShopItem.cpp
**
** Copyright (C) August 2016 Hotride
**
*********... | 26.909091 | 92 | 0.468896 | BryanNoller |
23025e22acebfd67c998eb8c28a000ba5a801ba9 | 2,997 | hpp | C++ | include/cps/responses/AlternativesResponse.hpp | clusterpoint/cpp-client-api | 605825f0d46678c1ebdabb006bc0c138e4b0b7f3 | [
"MIT"
] | 1 | 2015-09-22T10:32:36.000Z | 2015-09-22T10:32:36.000Z | include/cps/responses/AlternativesResponse.hpp | clusterpoint/cpp-client-api | 605825f0d46678c1ebdabb006bc0c138e4b0b7f3 | [
"MIT"
] | null | null | null | include/cps/responses/AlternativesResponse.hpp | clusterpoint/cpp-client-api | 605825f0d46678c1ebdabb006bc0c138e4b0b7f3 | [
"MIT"
] | null | null | null | #ifndef CPS_ALTERNATIVESRESPONSE_HPP
#define CPS_ALTERNATIVESRESPONSE_HPP
#include <string>
#include <vector>
#include <map>
#include "../Response.hpp"
#include "../Utils.hpp"
namespace CPS
{
class Alternative
{
public:
class Word
{
public:
Word() {}
virtual ~Word() {}
/** numbe... | 29.97 | 107 | 0.569236 | clusterpoint |
23027e068ba3eca6825a2aa41339a47bb37e6d94 | 3,159 | cpp | C++ | src/thread/task.cpp | Revolution-Populi/fc | 02b7593a96b02d9966358c59d22f344d86fa9a19 | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | 37 | 2017-02-04T09:42:48.000Z | 2021-02-17T14:59:15.000Z | src/thread/task.cpp | Revolution-Populi/fc | 02b7593a96b02d9966358c59d22f344d86fa9a19 | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | 120 | 2017-11-09T19:46:40.000Z | 2022-01-20T18:26:23.000Z | src/thread/task.cpp | Revolution-Populi/fc | 02b7593a96b02d9966358c59d22f344d86fa9a19 | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | 109 | 2017-01-16T14:24:31.000Z | 2022-03-18T21:10:07.000Z | #include <fc/thread/task.hpp>
#include <fc/exception/exception.hpp>
#include <fc/thread/unique_lock.hpp>
#include <fc/thread/spin_lock.hpp>
#include <fc/fwd_impl.hpp>
#include "context.hpp"
#include <fc/log/logger.hpp>
#include <boost/exception/all.hpp>
#ifdef _MSC_VER
# include <fc/thread/thread.hpp>
# include <Wind... | 27.710526 | 191 | 0.662551 | Revolution-Populi |
2307acf10eae36f68163065400ea92633f4ba87d | 6,794 | hpp | C++ | electroslag/graphics/graphics_opengl.hpp | jwb1/electroslag | a0f81ec6f8f8485c2418193b2e3d3f5347c92df5 | [
"Apache-2.0"
] | 1 | 2018-08-19T11:06:17.000Z | 2018-08-19T11:06:17.000Z | electroslag/graphics/graphics_opengl.hpp | jwb1/electroslag | a0f81ec6f8f8485c2418193b2e3d3f5347c92df5 | [
"Apache-2.0"
] | null | null | null | electroslag/graphics/graphics_opengl.hpp | jwb1/electroslag | a0f81ec6f8f8485c2418193b2e3d3f5347c92df5 | [
"Apache-2.0"
] | null | null | null | // Electroslag Interactive Graphics System
// Copyright 2018 Joshua Buckman
//
// 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
//
/... | 36.331551 | 90 | 0.605534 | jwb1 |
23086abade2db34db17ae4dcc8848cb549b638b3 | 416 | cpp | C++ | uri/1036.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uri/1036.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uri/1036.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <stdio.h>
#include <stdlib.h>
#include<math.h>
int main()
{
double a, b, c, r, x, y;
scanf("%lf %lf %lf", &a, &b, &c);
x = pow(b , 2) -(4 * a * c);
if(a == 0 || x < 0)
{
printf("Impossivel calcular\n");
}
else
{
r = (- b + sqrt(x) ) / (2 * a);
y = (- b -... | 18.909091 | 51 | 0.391827 | cosmicray001 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.