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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aee87c0172909d7adf89977324b6ad5bb4b7787a | 1,499 | hpp | C++ | src/add_markers/include/marker_displayer.hpp | PenguinLemma/udacity-robond-p5 | 485bc2c93baea6d82cd15fc26c6ba463e5a08625 | [
"MIT"
] | null | null | null | src/add_markers/include/marker_displayer.hpp | PenguinLemma/udacity-robond-p5 | 485bc2c93baea6d82cd15fc26c6ba463e5a08625 | [
"MIT"
] | null | null | null | src/add_markers/include/marker_displayer.hpp | PenguinLemma/udacity-robond-p5 | 485bc2c93baea6d82cd15fc26c6ba463e5a08625 | [
"MIT"
] | null | null | null | #pragma once
#include <ros/ros.h>
#include <visualization_msgs/Marker.h>
#include "home_service_robot_common.hpp"
class MarkerDisplayer
{
public:
typedef int32_t ActionType;
virtual void Display() = 0;
void FillInMarker(SimplifiedPose const & pose, visualization_msgs::Marker & marker, std::string const... | 28.283019 | 113 | 0.635757 | PenguinLemma |
aef455067c5874748e3b4cf31dd77df19afae190 | 9,414 | cpp | C++ | Source/FlightSimulator/Private/UI/FlightHUD.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | 1 | 2022-02-03T08:29:35.000Z | 2022-02-03T08:29:35.000Z | Source/FlightSimulator/Private/UI/FlightHUD.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | null | null | null | Source/FlightSimulator/Private/UI/FlightHUD.cpp | Lynnvon/FlightSimulator | 2dca6f8364b7f4972a248de3dbc3a711740f5ed4 | [
"MIT"
] | null | null | null | //MIT License
//
//Copyright(c) 2021 HaiLiang Feng
//
//QQ : 632865163
//Blog : https ://www.cnblogs.com/LynnVon/
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwareand associated documentation files(the "Software"), to deal
// in the Software without restric... | 28.70122 | 138 | 0.621627 | Lynnvon |
aef50e9c173175c6f7e687c5c4b979724b6b3db1 | 940 | cpp | C++ | build/compiled_eigen/doc/snippets/compile_Matrix_resize_int_int.cpp | aminulce/soil_model_cpp | 027803c29cbf5bddd1222839ba73019876533f87 | [
"MIT"
] | null | null | null | build/compiled_eigen/doc/snippets/compile_Matrix_resize_int_int.cpp | aminulce/soil_model_cpp | 027803c29cbf5bddd1222839ba73019876533f87 | [
"MIT"
] | null | null | null | build/compiled_eigen/doc/snippets/compile_Matrix_resize_int_int.cpp | aminulce/soil_model_cpp | 027803c29cbf5bddd1222839ba73019876533f87 | [
"MIT"
] | null | null | null | static bool eigen_did_assert = false;
#define eigen_assert(X) if(!eigen_did_assert && !(X)){ std::cout << "### Assertion raised in " << __FILE__ << ":" << __LINE__ << ":\n" #X << "\n### The following would happen without assertions:\n"; eigen_did_assert = true;}
#include <iostream>
#include <Eigen/Eigen>
#ifndef M_PI... | 28.484848 | 224 | 0.665957 | aminulce |
aefaae1658cfb1cb3213c24d1ebdb18537090f54 | 834 | hpp | C++ | src/psws/vendor/example-websocket/client-binance.com/src/AggregateTradesListener.hpp | xingyun86/psws | a773cbfcf7ad6b8c811b1769d0b751f45f8253ee | [
"MIT"
] | 39 | 2019-06-13T16:29:25.000Z | 2022-03-06T04:49:16.000Z | src/psws/vendor/example-websocket/client-binance.com/src/AggregateTradesListener.hpp | xingyun86/psws | a773cbfcf7ad6b8c811b1769d0b751f45f8253ee | [
"MIT"
] | 6 | 2019-06-25T17:28:23.000Z | 2021-12-17T02:04:25.000Z | src/psws/vendor/example-websocket/client-binance.com/src/AggregateTradesListener.hpp | xingyun86/psws | a773cbfcf7ad6b8c811b1769d0b751f45f8253ee | [
"MIT"
] | 13 | 2019-06-14T11:32:34.000Z | 2022-03-29T15:44:55.000Z |
#ifndef AggregateTradesListener_hpp
#define AggregateTradesListener_hpp
#include "Model.hpp"
#include "WSEventListener.hpp"
/**
* Listener for Aggregate Trade events
*/
class AggregateTradesListener : public WSEventListener<oatpp::Object<AggregateTrade>> {
public:
AggregateTradesListener(const std::shared_ptr<o... | 24.529412 | 106 | 0.708633 | xingyun86 |
aefc3545c6291d6d1d8f951c576b3d87c86093e5 | 471 | cpp | C++ | extras/pybind_example/basic/example_default.cpp | marioviti/PatchMatch | 7840e0dbab5effcf2f65889c36ee21f04e8779a6 | [
"MIT"
] | null | null | null | extras/pybind_example/basic/example_default.cpp | marioviti/PatchMatch | 7840e0dbab5effcf2f65889c36ee21f04e8779a6 | [
"MIT"
] | null | null | null | extras/pybind_example/basic/example_default.cpp | marioviti/PatchMatch | 7840e0dbab5effcf2f65889c36ee21f04e8779a6 | [
"MIT"
] | null | null | null | #include <pybind11/pybind11.h>
namespace py = pybind11;
int add(int i = 1, int j = 2) {
return i+j;
}
PYBIND11_MODULE(example_default, m) {
m.doc() = "pybind11 example_default plugin";
// regular notation
m.def("add", &add, "A function which adds two numbers",
py::arg("i") = 1, py::arg("j") = 2);
}
/... | 26.166667 | 145 | 0.651805 | marioviti |
aefe7ff8a38fea245f1508db3b6520b8ec291e2c | 3,501 | cpp | C++ | src/moves/InversePinchingMove.cpp | benruijl/cdt | 340f00488f46167112dbc763810d7ebfbd1056d5 | [
"MIT"
] | 1 | 2017-06-30T16:07:31.000Z | 2017-06-30T16:07:31.000Z | src/moves/InversePinchingMove.cpp | benruijl/cdt | 340f00488f46167112dbc763810d7ebfbd1056d5 | [
"MIT"
] | null | null | null | src/moves/InversePinchingMove.cpp | benruijl/cdt | 340f00488f46167112dbc763810d7ebfbd1056d5 | [
"MIT"
] | 1 | 2019-11-28T15:44:21.000Z | 2019-11-28T15:44:21.000Z | #include "moves/InversePinchingMove.h"
InversePinchingMove::InversePinchingMove(bool isTimelike) : Move(isTimelike * 4 + !isTimelike * -2,
!isTimelike * 4 + isTimelike * -2) {
t = NULL;
s = NULL;
this->isTimelike = isTimelike;
}
double InversePinchingMove::getTransitionProbability(std::vector<Vertex*>& ve... | 30.443478 | 99 | 0.633533 | benruijl |
aeff56b458584358ef141030432e36f0b578716e | 281 | cpp | C++ | YorozuyaGSLib/source/_pt_inform_commission_income_zocl.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_pt_inform_commission_income_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_pt_inform_commission_income_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_pt_inform_commission_income_zocl.hpp>
START_ATF_NAMESPACE
int _pt_inform_commission_income_zocl::size()
{
using org_ptr = int (WINAPIV*)(struct _pt_inform_commission_income_zocl*);
return (org_ptr(0x1400f05c0L))(this);
};
END_ATF_NAMESPACE
| 25.545455 | 82 | 0.743772 | lemkova |
aeff9343e3d14d6b48e0f9e84222b59c1afc54c2 | 338 | cpp | C++ | solutions/URI_1709 - (2392318) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | solutions/URI_1709 - (2392318) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | solutions/URI_1709 - (2392318) - Accepted.cpp | KelwinKomka/URI-Online-Judge-1 | 3d6e37ebe3aa145f47dfcad8b219e53c3cae50f6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
int n, p, t;
cin >> n;
p = 2; t = 1;
while(p != 1){
if(p <= n/2){
p += p;
}else{
p -= (n - p + 1);
}
t++;
}
cout << t << endl;
... | 15.363636 | 40 | 0.331361 | KelwinKomka |
4e0318d1bad44ab6ec6c5cafd5577ed24f0a7fb6 | 10,371 | cpp | C++ | src/Lucia/Graphics/Shaders/Blur.cpp | Polynominal/Lucy3D | a55fc331bc509a69ad7fb70a1eda70c409d22271 | [
"MIT"
] | 1 | 2017-02-22T23:47:22.000Z | 2017-02-22T23:47:22.000Z | src/Lucia/Graphics/Shaders/Blur.cpp | Polynominal/Lucy3D | a55fc331bc509a69ad7fb70a1eda70c409d22271 | [
"MIT"
] | null | null | null | src/Lucia/Graphics/Shaders/Blur.cpp | Polynominal/Lucy3D | a55fc331bc509a69ad7fb70a1eda70c409d22271 | [
"MIT"
] | null | null | null | #include "Lucia/Graphics/Shaders/Blur.h"
using namespace Lucia;
typedef Graphics::Shaders::Blur Blur;
namespace Lucia {
namespace Graphics
{
namespace _Shaders
{
std::unique_ptr<Shader> Kawase;
std::unique_ptr<Shader> Gaus5x5;
std::unique_ptr<Shader>... | 37.440433 | 114 | 0.469097 | Polynominal |
4e0c1a7f55a466f9d68fd4341529ed25ecf2c0c2 | 76 | hpp | C++ | Types/Numerics/GpNumerics.hpp | heimusharper/GpCore2 | b3b443e8a06ae0121eeb23b93af747f1ce95e15a | [
"MIT"
] | null | null | null | Types/Numerics/GpNumerics.hpp | heimusharper/GpCore2 | b3b443e8a06ae0121eeb23b93af747f1ce95e15a | [
"MIT"
] | 1 | 2020-06-19T18:38:40.000Z | 2020-06-19T18:38:40.000Z | Types/Numerics/GpNumerics.hpp | heimusharper/GpCore2 | b3b443e8a06ae0121eeb23b93af747f1ce95e15a | [
"MIT"
] | 6 | 2020-06-04T07:32:59.000Z | 2021-05-17T15:41:30.000Z | #pragma once
#include "GpNumericTypes.hpp"
#include "GpNumericOps.hpp"
| 15.2 | 30 | 0.736842 | heimusharper |
4e12637f2f61b16c7a70cef65c8f3ca31f8863cf | 1,605 | cpp | C++ | binary search/34. Find First and Last Position of Element in Sorted Array.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | 1 | 2021-04-08T10:33:48.000Z | 2021-04-08T10:33:48.000Z | binary search/34. Find First and Last Position of Element in Sorted Array.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | null | null | null | binary search/34. Find First and Last Position of Element in Sorted Array.cpp | Constantine-L01/leetcode | 1f1e3a8226fcec036370e75c1d69e823d1323392 | [
"MIT"
] | 1 | 2021-02-23T05:58:58.000Z | 2021-02-23T05:58:58.000Z | Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.
If target is not found in the array, return [-1, -1].
You must write an algorithm with O(log n) runtime complexity.
Example 1:
Input: nums = [5,7,7,8,8,10], target = 8
Output: [3,4]
class Solu... | 24.692308 | 121 | 0.410592 | Constantine-L01 |
4e19bb83b48d2f6fbd1b0c4062ed1d1bc35f64f1 | 5,203 | cpp | C++ | source/assets/ObjectLoader.cpp | jrbeck/longshot | 5dde65a5331ca7bf133b1188bfd6160da4ffc649 | [
"MIT"
] | null | null | null | source/assets/ObjectLoader.cpp | jrbeck/longshot | 5dde65a5331ca7bf133b1188bfd6160da4ffc649 | [
"MIT"
] | null | null | null | source/assets/ObjectLoader.cpp | jrbeck/longshot | 5dde65a5331ca7bf133b1188bfd6160da4ffc649 | [
"MIT"
] | null | null | null | #include "../assets/ObjectLoader.h"
ObjectLoader::ObjectLoader() {
}
ObjectLoader::~ObjectLoader() {
}
GLuint ObjectLoader::loadObjectToDisplayList(const char* fileName) {
GLuint displayListHandle;
displayListHandle = glGenLists(1);
glNewList(displayListHandle, GL_COMPILE);
XmlParser xmlParser;
xmlParser... | 26.682051 | 99 | 0.592543 | jrbeck |
4e1c2cd9e271ba9af53734392df35e7912556898 | 9,911 | cpp | C++ | src/tests/class_tests/openms/source/SpectrumHelper_test.cpp | raghav17083/OpenMS | ddcdd3068a93a7c415675c39bac43d796a845f1d | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | src/tests/class_tests/openms/source/SpectrumHelper_test.cpp | raghav17083/OpenMS | ddcdd3068a93a7c415675c39bac43d796a845f1d | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | src/tests/class_tests/openms/source/SpectrumHelper_test.cpp | raghav17083/OpenMS | ddcdd3068a93a7c415675c39bac43d796a845f1d | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and ... | 52.439153 | 139 | 0.689436 | raghav17083 |
4e1e5155acd5e9ce3b50a1ac7122645e82824c13 | 655 | cpp | C++ | editor/editor_barrera_de_energia.cpp | joaquinbf/TPFinalPortal | 27eed2d1c52297b810a4ad30a54f3267083b9c42 | [
"Apache-2.0"
] | null | null | null | editor/editor_barrera_de_energia.cpp | joaquinbf/TPFinalPortal | 27eed2d1c52297b810a4ad30a54f3267083b9c42 | [
"Apache-2.0"
] | null | null | null | editor/editor_barrera_de_energia.cpp | joaquinbf/TPFinalPortal | 27eed2d1c52297b810a4ad30a54f3267083b9c42 | [
"Apache-2.0"
] | null | null | null | #include "editor_barrera_de_energia.h"
#include "editor_defines.h"
BarreraDeEnergia::BarreraDeEnergia(unsigned idClass) : ItemGrafico(idClass)
{
if (this->idClass == IDCLASS_BARRERA_VERTICAL)
{
QPixmap spriteBarrera(DIR_IMAGEN_BARRERA_V);
this->sprite = spriteBarrera.scaled(CELL_SIZE_W, CELL_SI... | 29.772727 | 75 | 0.705344 | joaquinbf |
4e240ed3c3f8b5d89dc3ae5c99792d348bb74ddf | 235 | cpp | C++ | SMOL/Platform/Input.cpp | all500234765/SMOL | d6f1e9401105cd1bf2209f30311dc90bcc78e43b | [
"MIT"
] | null | null | null | SMOL/Platform/Input.cpp | all500234765/SMOL | d6f1e9401105cd1bf2209f30311dc90bcc78e43b | [
"MIT"
] | null | null | null | SMOL/Platform/Input.cpp | all500234765/SMOL | d6f1e9401105cd1bf2209f30311dc90bcc78e43b | [
"MIT"
] | null | null | null | #include "pc.h"
#include "Input.h"
#if SMOL_OS == SMOL_OS_WIN
#include "Win32/WinInput.inl"
#elif SMOL_OS == SMOL_OS_PSP
#include "PSP/PSPInput.inl"
#elif SMOL_OS == SMOL_OS_SWITCH
#include "Switch/SwitchInput.inl"
#endif
| 21.363636 | 37 | 0.706383 | all500234765 |
89f70d4185e502c9b110c523a51875a47feb122c | 420 | cpp | C++ | recursion/permutations_string.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | recursion/permutations_string.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | recursion/permutations_string.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std;
void permutation(string str, string ans){
if(str.length() == 0){
cout<<ans<<endl;
return;
}
for(int i= 0; i<str.length(); i++){
char fix = str[i];
string ros = str.substr(0, i) + str.substr(i+1);
permutation(ro... | 19.090909 | 56 | 0.542857 | neerajsingh869 |
89fa9cfb9d8e70b8173433325997c34cc1ab2504 | 2,271 | cpp | C++ | src/plugins/win32/drawdeviceIrrlicht/irrlicht/source/Irrlicht/CWriteFile.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | 2 | 2020-02-25T15:18:53.000Z | 2020-08-24T13:30:34.000Z | src/plugins/win32/drawdeviceIrrlicht/irrlicht/source/Irrlicht/CWriteFile.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | null | null | null | src/plugins/win32/drawdeviceIrrlicht/irrlicht/source/Irrlicht/CWriteFile.cpp | miahmie/krkrz | e4948f61393ca4a2acac0301a975165dd4efc643 | [
"Unlicense",
"Apache-2.0",
"Libpng",
"FTL",
"IJG"
] | 1 | 2019-11-25T05:29:30.000Z | 2019-11-25T05:29:30.000Z | // Copyright (C) 2002-2008 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "CWriteFile.h"
// XXX support for kirikiri
#include "../../../../tp_stub.h"
namespace irr
{
namespace io
{
CWriteFile::CWriteFile(const ... | 16.456522 | 89 | 0.687803 | miahmie |
d605b2f8356dc336af379c9c1c81389addffe076 | 3,860 | cpp | C++ | src/ui/mainwindow.cpp | EnyoYoen/Fast-Discord | 3fde017d67f6673205d0e7ff3de7cf2a572a6aec | [
"MIT"
] | 30 | 2021-09-18T15:50:30.000Z | 2022-03-25T14:12:57.000Z | src/ui/mainwindow.cpp | EnyoYoen/Fast-Discord | 8d483a87d302370df770d47d311d16e95d6e3951 | [
"MIT"
] | 3 | 2021-11-22T11:11:42.000Z | 2021-12-11T12:28:26.000Z | src/ui/mainwindow.cpp | EnyoYoen/Fast-Discord | 8d483a87d302370df770d47d311d16e95d6e3951 | [
"MIT"
] | 2 | 2022-01-11T02:50:04.000Z | 2022-01-22T14:04:33.000Z | #include "ui/mainwindow.h"
#include "api/ressourcemanager.h"
#include <QThread>
#include <QInputDialog>
#include <QLineEdit>
namespace Ui {
MainWindow::MainWindow() : QWidget()
{
// Style the window
// this->setWindowFlags(Qt::CustomizeWindowHint); Soon
this->setGeometry(0, 0, 940, 728);
this->setSt... | 52.876712 | 186 | 0.706995 | EnyoYoen |
d60e2a411228ec91fa2ed855264d86e239afd9b4 | 2,950 | hpp | C++ | core/parser.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | core/parser.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | core/parser.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | #ifndef LIBSTL_PARSER_HPP
#define LIBSTL_PARSER_HPP
#include <fstream>
#include <string>
#include <vector>
#include "triangle.hpp"
#include "parser_option.hpp"
#include "utilities/string.hpp"
#include <iostream>
namespace libstl {
namespace {
std::vector<triangle> parse_file(const std::string& filename, parser_o... | 24.380165 | 107 | 0.549492 | fritzio |
d60ff76a18d2cc639d9727d3d162c703065d3664 | 1,059 | cpp | C++ | arcise/dialects/relalg/RelalgDialect.cpp | fexolm/arcise | 44e201db2e8e6b45ea30542718cd35b500952d51 | [
"MIT"
] | null | null | null | arcise/dialects/relalg/RelalgDialect.cpp | fexolm/arcise | 44e201db2e8e6b45ea30542718cd35b500952d51 | [
"MIT"
] | 4 | 2020-10-04T09:39:07.000Z | 2021-04-01T09:57:49.000Z | arcise/dialects/relalg/RelalgDialect.cpp | fexolm/arcise | 44e201db2e8e6b45ea30542718cd35b500952d51 | [
"MIT"
] | 1 | 2021-01-29T05:01:19.000Z | 2021-01-29T05:01:19.000Z | #include "arcise/dialects/relalg/RelalgDialect.h"
#include "arcise/dialects/relalg/RelalgOps.h"
#include "arcise/dialects/relalg/RelalgTypes.h"
#include <mlir/IR/DialectImplementation.h>
#include <mlir/IR/OpImplementation.h>
void arcise::dialects::relalg::RelalgDialect::initialize() {
addOperations<
#define GET_OP_L... | 29.416667 | 62 | 0.68272 | fexolm |
d61093971f7d2ea83ef8e1e801ad0bd0209f3a46 | 655 | cpp | C++ | tools/System/DynamicLib-linux.cpp | xcillero001/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | 1 | 2019-02-21T10:40:28.000Z | 2019-02-21T10:40:28.000Z | tools/System/DynamicLib-linux.cpp | JosuGom3z/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | null | null | null | tools/System/DynamicLib-linux.cpp | JosuGom3z/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | null | null | null | #include "DynamicLib.h"
#include <stdio.h>
#include <dlfcn.h>
DynamicLib::DynamicLib()
{
m_handle = 0;
m_libPath = 0;
}
DynamicLib::~DynamicLib()
{
Unload();
}
bool DynamicLib::IsLoaded()
{
return m_handle != 0;
}
void DynamicLib::Load(const char* libPath)
{
if (!IsLoaded())
{
m_libPath = libPath;
m_hand... | 13.1 | 56 | 0.653435 | xcillero001 |
d61109c57f92ed535be1679b4172a5bf5007f50f | 803 | cpp | C++ | libvmod/source/vmod/sdlog/sdlog_SdCardLogger.cpp | MarioPossamato/vax | c40f0f9740643003e02fa9da6e0e986695b87ff2 | [
"MIT"
] | 6 | 2022-03-23T23:26:04.000Z | 2022-03-27T06:33:22.000Z | libvmod/source/vmod/sdlog/sdlog_SdCardLogger.cpp | MarioPossamato/vax | c40f0f9740643003e02fa9da6e0e986695b87ff2 | [
"MIT"
] | null | null | null | libvmod/source/vmod/sdlog/sdlog_SdCardLogger.cpp | MarioPossamato/vax | c40f0f9740643003e02fa9da6e0e986695b87ff2 | [
"MIT"
] | 6 | 2022-03-25T22:56:04.000Z | 2022-03-26T09:32:08.000Z | #include <vmod/sdlog/sdlog_SdCardLogger.hpp>
#include <vmod/vmod_Assert.hpp>
namespace vmod::sdlog {
namespace {
FsFile g_LogFile;
u64 g_LogFileOffset;
}
Result Initialize(const char (&log_file_path)[FS_MAX_PATH], FsFileSystem &sd_fs) {
fsFsDeleteFile(&sd_fs, log_file_path);
... | 25.903226 | 107 | 0.669988 | MarioPossamato |
d618f5fe918d70ed54213701c441aeeb03d732d6 | 195 | cpp | C++ | Clerk/Data/ViewModels/ReportViewModel.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 14 | 2016-11-01T15:48:02.000Z | 2020-07-15T13:00:27.000Z | Clerk/Data/ViewModels/ReportViewModel.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 29 | 2017-11-16T04:15:33.000Z | 2021-12-22T07:15:42.000Z | Clerk/Data/ViewModels/ReportViewModel.cpp | sergeylenkov/Clerk | b220864e89559207c5eeea113668891236fcbfb9 | [
"MIT"
] | 2 | 2018-08-15T15:25:11.000Z | 2019-01-28T12:49:50.000Z | #include "ReportViewModel.h"
using namespace Clerk::Data;
ReportViewModel::ReportViewModel(ReportModel& report) {
this->id = report.id;
this->name = wxString::FromUTF8(report.name.c_str());
} | 24.375 | 55 | 0.748718 | sergeylenkov |
d624af2a26f0147edf1e4eb6ed5e3a0555e43206 | 5,476 | cpp | C++ | pixie/UI/PushButton/PushButton_Visualizer_Standard.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | pixie/UI/PushButton/PushButton_Visualizer_Standard.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | pixie/UI/PushButton/PushButton_Visualizer_Standard.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "PushButton_Visualizer_Standard.h"
template<class T>
void tStandardPushButtonVisualizer<T>::Init(const cPushButton::cInitData &InitData)
{
mTextStyle=InitData.mTextStyle;
mTextureBaseName=InitData.mTextureBaseName;
if(mTextureBaseName.empty())
mTextureBaseName="ui_button";
mUseTextR... | 28.520833 | 132 | 0.773375 | martonantoni |
d6252dda3b7029849842f4cdc5dfcbb91c6df3b6 | 4,921 | cc | C++ | river.cc | waywardgeek/highwayhash | 71e18c513aae7eb3447794e51d9baf122181effb | [
"Apache-2.0"
] | null | null | null | river.cc | waywardgeek/highwayhash | 71e18c513aae7eb3447794e51d9baf122181effb | [
"Apache-2.0"
] | null | null | null | river.cc | waywardgeek/highwayhash | 71e18c513aae7eb3447794e51d9baf122181effb | [
"Apache-2.0"
] | 1 | 2021-05-29T01:31:22.000Z | 2021-05-29T01:31:22.000Z | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 33.705479 | 79 | 0.667547 | waywardgeek |
d625b7e0665d97e9ece3c6e02c2440f87c716562 | 327 | cc | C++ | src/syntax/node/negative_precheck_node.cc | Viredery/RegexEngine | 9dead62c6446a3c35754e089b11a7e2f4d251806 | [
"MIT"
] | null | null | null | src/syntax/node/negative_precheck_node.cc | Viredery/RegexEngine | 9dead62c6446a3c35754e089b11a7e2f4d251806 | [
"MIT"
] | null | null | null | src/syntax/node/negative_precheck_node.cc | Viredery/RegexEngine | 9dead62c6446a3c35754e089b11a7e2f4d251806 | [
"MIT"
] | null | null | null | // negative_precheck_node.cc
// Created by viredery on 17/03/29
#include "negative_precheck_node.h"
namespace regex {
void NegativePrecheckNode::Accept(VisitorInterface* visitor) {
visitor->Visit(this);
}
std::string NegativePrecheckNode::ConvertString() const {
return "NegativePrecheckNode";
}
} // namespac... | 20.4375 | 62 | 0.761468 | Viredery |
d62f5b6b40dfd9b0067923da88f6093e0d1b3741 | 11,331 | cpp | C++ | src/Saurobyte/InputImpl.cpp | Symphonym/Saurobyte | c4bc5afd4ac4353ed6cd9a201454fd14aa3aced2 | [
"MIT"
] | 17 | 2015-01-26T19:46:42.000Z | 2021-10-04T15:30:32.000Z | src/Saurobyte/InputImpl.cpp | Symphonym/Saurobyte | c4bc5afd4ac4353ed6cd9a201454fd14aa3aced2 | [
"MIT"
] | 1 | 2021-04-06T01:12:03.000Z | 2021-04-06T01:12:03.000Z | src/Saurobyte/InputImpl.cpp | Symphonym/Saurobyte | c4bc5afd4ac4353ed6cd9a201454fd14aa3aced2 | [
"MIT"
] | 2 | 2015-02-03T21:23:49.000Z | 2021-05-02T14:52:52.000Z | /*
The MIT License (MIT)
Copyright (c) 2014 by Jakob Larsson
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, m... | 42.920455 | 83 | 0.742123 | Symphonym |
d62fda9dfa4f04d69d5edc551a21cd9400cd51f5 | 7,123 | hpp | C++ | include/nifty/infusion/optimizers/inplace/libdai.hpp | DerThorsten/nifty_infusion | 45064872d4880374fe1e34cc51f6efb727c8a4a3 | [
"MIT"
] | null | null | null | include/nifty/infusion/optimizers/inplace/libdai.hpp | DerThorsten/nifty_infusion | 45064872d4880374fe1e34cc51f6efb727c8a4a3 | [
"MIT"
] | null | null | null | include/nifty/infusion/optimizers/inplace/libdai.hpp | DerThorsten/nifty_infusion | 45064872d4880374fe1e34cc51f6efb727c8a4a3 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <algorithm>
#include <string>
#include <sstream>
#include <dai/daialg.h>
#include <dai/alldai.h>
#include "nifty/tools/runtime_check.hpp"
#include "nifty/infusion/infusion.hpp"
#include "nifty/infusion/optimizers/inplace/inplace_discrete_graphical_model_optimizer_base.hpp"
... | 23.743333 | 107 | 0.5829 | DerThorsten |
d6389eb5f054faec73a28f7293b77c807d0f3c02 | 657 | cpp | C++ | src/Root/NodeDatabase.cpp | TopHatProductions115/openp2p | 07c29cf96c72748ddc1748488b45f73b100f0c62 | [
"BSL-1.0"
] | 24 | 2016-09-15T16:18:35.000Z | 2021-12-24T03:03:09.000Z | src/Root/NodeDatabase.cpp | TopHatProductions115/openp2p | 07c29cf96c72748ddc1748488b45f73b100f0c62 | [
"BSL-1.0"
] | 2 | 2015-09-26T10:23:46.000Z | 2015-11-21T11:11:12.000Z | src/Root/NodeDatabase.cpp | TopHatProductions115/openp2p | 07c29cf96c72748ddc1748488b45f73b100f0c62 | [
"BSL-1.0"
] | 10 | 2016-08-28T13:00:45.000Z | 2021-08-09T12:40:51.000Z | #include <unordered_map>
#include <p2p/Root/Key.hpp>
#include <p2p/Root/NodeDatabase.hpp>
#include <p2p/Root/NodeId.hpp>
#include <p2p/Root/PublicIdentity.hpp>
namespace p2p {
namespace Root {
NodeDatabase::NodeDatabase() { }
bool NodeDatabase::isKnownId(const NodeId& id) const {
return map_.find(id) !... | 19.323529 | 70 | 0.680365 | TopHatProductions115 |
d63edc25e033aad6ee993facead55619ca98db2e | 718 | hpp | C++ | tests/mock_lpsolver.hpp | Jvanrhijn/lpinterface | 49b038582aad2eebef129e2755736dfbdf79ec50 | [
"MIT"
] | 1 | 2019-09-04T07:11:00.000Z | 2019-09-04T07:11:00.000Z | tests/mock_lpsolver.hpp | Jvanrhijn/lpinterface | 49b038582aad2eebef129e2755736dfbdf79ec50 | [
"MIT"
] | 36 | 2019-07-11T10:16:14.000Z | 2019-10-20T08:41:54.000Z | tests/mock_lpsolver.hpp | Jvanrhijn/lpinterface | 49b038582aad2eebef129e2755736dfbdf79ec50 | [
"MIT"
] | 1 | 2019-08-16T12:47:14.000Z | 2019-08-16T12:47:14.000Z | #ifndef LPINTERFACE_TESTS_MOCK_LPSOLVER_H
#define LPINTERFACE_TESTS_MOCK_LPSOLVER_H
#include "lpinterface.hpp"
#include <vector>
namespace lpint {
class MockLpSolver : public LinearProgramSolver {
public:
MOCK_METHOD0(solve_primal, Status());
MOCK_METHOD0(solve_dual, Status());
MOCK_METHOD0(update_program, v... | 28.72 | 70 | 0.789694 | Jvanrhijn |
d6423e65a876d7faef2e506afd2282d4c7310cae | 1,450 | cpp | C++ | gen-data/lib/ARSeq.cpp | kvathupo/Synthetic-Time-Series-Generator | ac133d2b0beff7f93f686742ce59401bc3cd1b90 | [
"MIT"
] | null | null | null | gen-data/lib/ARSeq.cpp | kvathupo/Synthetic-Time-Series-Generator | ac133d2b0beff7f93f686742ce59401bc3cd1b90 | [
"MIT"
] | null | null | null | gen-data/lib/ARSeq.cpp | kvathupo/Synthetic-Time-Series-Generator | ac133d2b0beff7f93f686742ce59401bc3cd1b90 | [
"MIT"
] | null | null | null | #include "ARSeq.h"
#include "GaussSeq.h"
#include "utils.h"
/*
* Member variables
*/
GaussSeq ARSeq::g {}; // static generator
/*
* Constructors and destructors
*/
ARSeq::ARSeq(std::map<int, my_float> mp) {
int max_lag = 0;
for (const auto& ele : mp) {
if (ele.first > max_lag)
... | 21.641791 | 98 | 0.554483 | kvathupo |
d642d412f049b9de5111474ee7dfeef54d752b1c | 3,341 | cpp | C++ | src/framework/math/vec.cpp | tristanred/libtech | 88f49e893dc3674821cc3d5f57e354846c8dbccd | [
"MIT"
] | null | null | null | src/framework/math/vec.cpp | tristanred/libtech | 88f49e893dc3674821cc3d5f57e354846c8dbccd | [
"MIT"
] | 1 | 2019-06-01T14:37:41.000Z | 2019-06-01T14:37:41.000Z | src/framework/math/vec.cpp | tristanred/libtech | 88f49e893dc3674821cc3d5f57e354846c8dbccd | [
"MIT"
] | null | null | null | #include "libtech/vec.h"
#include <cmath>
vec2::vec2() {}
vec2::vec2(float scale)
{
this->x = scale;
this->y = scale;
}
vec2::vec2(float x, float y)
{
this->x = x;
this->y = y;
}
vec2::vec2(const vec2& other)
{
this->x = other.x;
this->y = other.y;
}
float vec2::Length() const
{
return... | 16.788945 | 60 | 0.588147 | tristanred |
d642eacc6c0771db03185e72bb634195e5f05024 | 2,082 | cpp | C++ | src/prod/src/Management/healthmanager/ApplicationHealthId.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Management/healthmanager/ApplicationHealthId.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Management/healthmanager/ApplicationHealthId.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 23.659091 | 99 | 0.698367 | AnthonyM |
d6472165a2c23a1188904701ec4f2b7102a63201 | 608 | cpp | C++ | src/main.cpp | Druggist/genetic-algorithm | 50f59019fe8c60ef6f9acab900441fb6565adef7 | [
"MIT"
] | 1 | 2016-12-31T11:03:31.000Z | 2016-12-31T11:03:31.000Z | src/main.cpp | Druggist/random_project | 50f59019fe8c60ef6f9acab900441fb6565adef7 | [
"MIT"
] | null | null | null | src/main.cpp | Druggist/random_project | 50f59019fe8c60ef6f9acab900441fb6565adef7 | [
"MIT"
] | 1 | 2017-01-31T17:02:15.000Z | 2017-01-31T17:02:15.000Z | #include "machine.h"
#include "maitenance.h"
#include "order.h"
#include "task.h"
#include "generations.h"
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cstdlib>
#include <fstream>
using std::cout;
using std::string;
using std::fstream;
using std::vector;
using std::endl;
int ... | 20.965517 | 82 | 0.672697 | Druggist |
d64a41c8088e7b7adb171be483c2b2acb247e5d4 | 102 | cpp | C++ | src/shared/SecurityStatus.cpp | severin-toldo/m242_security_system | 4dffe6482eeeff0712b4e6be448e52c1a0ec5dc5 | [
"MIT"
] | 2 | 2021-03-26T12:10:09.000Z | 2021-05-25T10:47:32.000Z | src/shared/SecurityStatus.cpp | severin-toldo/m242_security_system | 4dffe6482eeeff0712b4e6be448e52c1a0ec5dc5 | [
"MIT"
] | 1 | 2021-05-25T10:47:08.000Z | 2021-05-25T11:10:32.000Z | src/shared/SecurityStatus.cpp | severin-toldo/m242_security_system | 4dffe6482eeeff0712b4e6be448e52c1a0ec5dc5 | [
"MIT"
] | null | null | null | #include <iostream>
#pragma once
enum SecurityStatus {
DEACTIVATED,
ACTIVATED,
ALARM
}; | 12.75 | 22 | 0.666667 | severin-toldo |
d650636a93c9f0c13ac2eeb69e3d4344cdc32208 | 1,748 | hpp | C++ | include/codegen/include/Valve/VR/VROverlayIntersectionMaskPrimitive_t.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Valve/VR/VROverlayIntersectionMaskPrimitive_t.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Valve/VR/VROverlayIntersectionMaskPrimitive_t.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:16 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Including type: Valve.VR.EVROverlayI... | 51.411765 | 255 | 0.779176 | Futuremappermydud |
d65367b92699ee711ea3196eafa0222f4d640be3 | 4,705 | cpp | C++ | src/signature/lib/signaturecontext.cpp | cs854paper58/PerfEvaFHE | 4913920e20c3488556702bd15095cc2055fa381a | [
"BSD-2-Clause"
] | null | null | null | src/signature/lib/signaturecontext.cpp | cs854paper58/PerfEvaFHE | 4913920e20c3488556702bd15095cc2055fa381a | [
"BSD-2-Clause"
] | null | null | null | src/signature/lib/signaturecontext.cpp | cs854paper58/PerfEvaFHE | 4913920e20c3488556702bd15095cc2055fa381a | [
"BSD-2-Clause"
] | null | null | null | // @file signaturecontext.cpp - Implementation file for signature context class
// @author TPOC: contact@palisade-crypto.org
//
// @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT)
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are p... | 44.386792 | 80 | 0.714134 | cs854paper58 |
d65500c2cbd56c607e8a7513289bec5efc4ec985 | 19,490 | cpp | C++ | DarkSpace/GameClient.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | 1 | 2016-05-22T21:28:29.000Z | 2016-05-22T21:28:29.000Z | DarkSpace/GameClient.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | DarkSpace/GameClient.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | /*
GameClient.cpp
This object is used to connect to an GameServer object over a Socket object
(c)1999 Palestar, Richard Lyle
*/
#define MEDUSA_TRACE_ON // force trace messages to stay on
#include "Debug/Assert.h"
#include "Debug/ExceptionHandler.h"
#include "Standard/Time.h"
#include "Standard/MD5.h"
#include "... | 28.083573 | 140 | 0.638327 | SnipeDragon |
d655ab12f0f3d4d0ae63cf8290a1c6a05a6e9d0e | 1,413 | cpp | C++ | src/LightBulbApp/IO/PreferenceGroupIO.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 5 | 2016-02-04T06:14:42.000Z | 2017-02-06T02:21:43.000Z | src/LightBulbApp/IO/PreferenceGroupIO.cpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 41 | 2015-04-15T21:05:45.000Z | 2015-07-09T12:59:02.000Z | src/LightBulbApp/IO/PreferenceGroupIO.cpp | domin1101/LightBulb | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | null | null | null | #include "LightBulbApp/IO/PreferenceGroupIO.hpp"
// Libraray includes
#include <cereal/cereal.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/memory.hpp>
#include <cereal/types/polymorphic.hpp>
namespace LightBulb
{
/**
* \brief Saves a PreferenceGroup.
* \tparam Archive The archive type.
* \param a... | 31.4 | 75 | 0.777778 | domin1101 |
d65b9da0b4bad01ca5696fea9e1ce4b4592cb7db | 19,671 | hpp | C++ | include/jvm_lib/jni_wrapper.hpp | MarkusJx/node-java-bridge | 82a2649406f7903c427ed2f135c8eb30b8f750d1 | [
"MIT"
] | 1 | 2022-03-07T17:39:42.000Z | 2022-03-07T17:39:42.000Z | include/jvm_lib/jni_wrapper.hpp | MarkusJx/node-java-bridge | 82a2649406f7903c427ed2f135c8eb30b8f750d1 | [
"MIT"
] | 2 | 2021-08-20T16:03:56.000Z | 2021-12-21T10:45:45.000Z | include/jvm_lib/jni_wrapper.hpp | MarkusJx/node-java-bridge | 82a2649406f7903c427ed2f135c8eb30b8f750d1 | [
"MIT"
] | null | null | null | #ifndef NODE_JAVA_BRIDGE_JNI_WRAPPER_HPP
#define NODE_JAVA_BRIDGE_JNI_WRAPPER_HPP
#include <functional>
#include <vector>
#include <map>
#include <jni.h>
#include <util/shared_releaser.hpp>
#include <definitions.hpp>
#include "shared_library.hpp"
#include "jobject_wrapper.hpp"
#include "java_type.hpp"
/**
* A names... | 31.174326 | 121 | 0.57811 | MarkusJx |
d65e3d3456e59999464b81d0b6b979a18c549ab1 | 819 | cpp | C++ | problems/leet/72-edit-distance/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/leet/72-edit-distance/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/leet/72-edit-distance/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// *****
class Solution {
public:
// levenshtein distance
int minDistance(const string &a, const string &b) {
if (a.size() < b.size())
return minDistance(b, a);
size_t A = a.size(), B = b.size();
vector<size_t> cur_row(B + 1), old_row(B + 1);
... | 17.804348 | 53 | 0.4884 | brunodccarvalho |
d65e46804c915bb48a3cfee32b9f1482f69a335c | 3,615 | hpp | C++ | src/CLODEfeatures.hpp | patrickfletcher/clODE | f6237182fbcfe319e0875cc0c380d312002455ee | [
"MIT"
] | null | null | null | src/CLODEfeatures.hpp | patrickfletcher/clODE | f6237182fbcfe319e0875cc0c380d312002455ee | [
"MIT"
] | 2 | 2020-10-03T18:51:44.000Z | 2020-10-03T18:53:05.000Z | src/CLODEfeatures.hpp | patrickfletcher/clODE | f6237182fbcfe319e0875cc0c380d312002455ee | [
"MIT"
] | null | null | null | /* clODE: a simulator class to run parallel ODE simulations on OpenCL capable hardware.
* A clODE simulator solves on initial value problem over a grid of parameters and/or initial conditions. At each timestep,
* "observer" rountine may be called to record/store/compute features of the solutions. Examples include sto... | 38.870968 | 187 | 0.746058 | patrickfletcher |
d6606a8007c92598cadf001d912822ab27c3d261 | 1,662 | cpp | C++ | src/geometry.cpp | mbullington/astro-wasm | 7e0cf5d512fcd32d52da5473cff56a4b653a1d8c | [
"MIT"
] | 1 | 2021-10-04T18:26:04.000Z | 2021-10-04T18:26:04.000Z | src/geometry.cpp | mbullington/astro-wasm | 7e0cf5d512fcd32d52da5473cff56a4b653a1d8c | [
"MIT"
] | null | null | null | src/geometry.cpp | mbullington/astro-wasm | 7e0cf5d512fcd32d52da5473cff56a4b653a1d8c | [
"MIT"
] | null | null | null | #include <algorithm>
#include "geometry.hpp"
using namespace std;
using namespace mapbox::geometry;
// LineString type.
EXPORT LinearRing *create_linear_ring() asm("create_linear_ring");
EXPORT void push_linear_ring(LinearRing *linear_ring, double lng, double lat) asm("push_linear_ring");
EXPORT void delete_linear... | 27.245902 | 104 | 0.775572 | mbullington |
d660886f685f7c4bd40eb680cbee66e76f8e5bad | 35 | cpp | C++ | src/mqrl_4.cpp | mganger/quantum-multiple-q-learning | 08d6c010cd9082b58f79bdc2da45a1cd6d1f512f | [
"MIT"
] | 1 | 2019-12-27T20:59:00.000Z | 2019-12-27T20:59:00.000Z | src/mqrl_4.cpp | mganger/quantum-multiple-q-learning | 08d6c010cd9082b58f79bdc2da45a1cd6d1f512f | [
"MIT"
] | null | null | null | src/mqrl_4.cpp | mganger/quantum-multiple-q-learning | 08d6c010cd9082b58f79bdc2da45a1cd6d1f512f | [
"MIT"
] | null | null | null | #include "mqrl.h"
MAIN(mqrl< 4 >)
| 11.666667 | 18 | 0.6 | mganger |
d665f0790f03d71efd871723dd8ea40713bf1089 | 831 | cpp | C++ | Codeforces/CF1616D.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | null | null | null | Codeforces/CF1616D.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | 1 | 2021-11-18T15:10:29.000Z | 2021-11-20T07:13:31.000Z | Codeforces/CF1616D.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstring>
const int maxn = 5e4 + 10;
int n, a[maxn], x;
inline void solve()
{
scanf("%d", &n);
for (int i = 1; i <= n; ++i)
scanf("%d", a + i);
scanf("%d", &x);
int cnt = 0, ans = 0;
for (int i = 1; i <= n; ++i)
{
a[i] -= x, ++cnt... | 18.065217 | 66 | 0.329723 | Nickel-Angel |
69947978877a13dda9c22c73c579f447208584d0 | 1,319 | hpp | C++ | hpx/lcos/preprocessed/future_wait.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/lcos/preprocessed/future_wait.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/lcos/preprocessed/future_wait.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2013 Hartmut Kaiser
// Copyright (c) 2012-2013 Thomas Heller
//
// 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)
#if !defined(HPX_PREPROCESSED_LCOS_FUTURE_WAIT_HPP)
#define HPX_PREPROCESSED... | 35.648649 | 80 | 0.802881 | andreasbuhr |
699761d25d7a2fad8a7a3aa3dac1d10d6ce47bce | 4,908 | cpp | C++ | CrimeEngine/source/Utils/Editor/EditorMenuBar.cpp | boschman32/Crime-Engine | 128529634011d41a1f7fc1a356245d7f7ef77cb3 | [
"MIT"
] | 1 | 2021-07-21T17:14:35.000Z | 2021-07-21T17:14:35.000Z | CrimeEngine/source/Utils/Editor/EditorMenuBar.cpp | boschman32/Crime-Engine | 128529634011d41a1f7fc1a356245d7f7ef77cb3 | [
"MIT"
] | null | null | null | CrimeEngine/source/Utils/Editor/EditorMenuBar.cpp | boschman32/Crime-Engine | 128529634011d41a1f7fc1a356245d7f7ef77cb3 | [
"MIT"
] | 3 | 2021-03-07T15:51:03.000Z | 2021-07-13T20:01:34.000Z | #include "cepch.h"
#include "Utils/Editor/EditorMenuBar.h"
#include "Core/Application.h"
#include "Scenes/SceneManager.h"
#include "Scenes/IMapScene.h"
#include "Utils/FileSystem.h"
namespace ce
{
namespace editor
{
EditorMenuBar::EditorMenuBar(const std::string& a_windowName, const ImVec2& a_pos, const ImVec2& ... | 31.261146 | 163 | 0.651589 | boschman32 |
6997b8afc8454d899053eb0f4249006ef73963e3 | 4,588 | cpp | C++ | src/executor_monitor/checker.cpp | pointnity/Scheduler-of-Pointnity-N.1.1.0 | 8824bfb95d80d638ff466535747430bae15c212d | [
"MIT"
] | 1 | 2019-08-15T10:04:31.000Z | 2019-08-15T10:04:31.000Z | src/executor_monitor/checker.cpp | pointnity/Scheduler-V0.1- | 8824bfb95d80d638ff466535747430bae15c212d | [
"MIT"
] | null | null | null | src/executor_monitor/checker.cpp | pointnity/Scheduler-V0.1- | 8824bfb95d80d638ff466535747430bae15c212d | [
"MIT"
] | null | null | null | /********************************
FileName: executor_monitor/checker.cpp
Version: 0.1
Description: checker
*********************************/
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <log4cplus/logger.h>
... | 31 | 142 | 0.630122 | pointnity |
699805f7b15e4bd4bdc66121a73cfef2eed0e92d | 1,588 | cpp | C++ | ekbase/base/datetime.cpp | artintexo/exkit | 18d71e84d688060f0c30af456dcbec5252ebbdac | [
"MIT"
] | 2 | 2019-05-20T10:02:16.000Z | 2021-01-04T06:18:55.000Z | ekbase/base/datetime.cpp | artintexo/exkit | 18d71e84d688060f0c30af456dcbec5252ebbdac | [
"MIT"
] | null | null | null | ekbase/base/datetime.cpp | artintexo/exkit | 18d71e84d688060f0c30af456dcbec5252ebbdac | [
"MIT"
] | 3 | 2020-09-07T06:44:54.000Z | 2022-01-01T11:52:33.000Z | #include "datetime.h"
#include <cassert>
#include <chrono>
constexpr long NS_PER_SEC = 1000000000;
Datetime::Datetime()
: Datetime(0)
{
}
Datetime::Datetime(long timestamp)
: timestamp(timestamp)
{
assert(timestamp >= 0);
long secs = timestamp / NS_PER_SEC;
tm *local = localtime(&secs);
yea... | 21.753425 | 85 | 0.621537 | artintexo |
699e4423a6a44300365b0007b9f25c3ed56dff47 | 2,204 | cpp | C++ | Spark/WorldTransform.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | 1 | 2022-02-15T19:50:01.000Z | 2022-02-15T19:50:01.000Z | Spark/WorldTransform.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | Spark/WorldTransform.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | #include "WorldTransform.h"
#include <iostream>
#include <glm/gtx/euler_angles.hpp>
#include "JsonSerializer.h"
namespace spark
{
WorldTransform::WorldTransform(glm::mat4 mat) : modelMatrix(mat) {}
glm::mat4 WorldTransform::getMatrix() const
{
return modelMatrix;
}
glm::vec3 WorldTransform::getPosition() cons... | 22.958333 | 84 | 0.685572 | MickAlmighty |
699f2ea0d63a5981133be3c3f3edb6899839deb2 | 1,974 | cpp | C++ | common/World.cpp | S1lv10Fr4gn4n1/physics-simulation-tool-ios | 6d32bfcbe0b90a9b0112c56faa971ea4be278e93 | [
"MIT"
] | null | null | null | common/World.cpp | S1lv10Fr4gn4n1/physics-simulation-tool-ios | 6d32bfcbe0b90a9b0112c56faa971ea4be278e93 | [
"MIT"
] | null | null | null | common/World.cpp | S1lv10Fr4gn4n1/physics-simulation-tool-ios | 6d32bfcbe0b90a9b0112c56faa971ea4be278e93 | [
"MIT"
] | null | null | null | //
// World.cpp
// Physical.Simulation.Tool
//
// Created by Silvio Fragnani da Silva on 17/06/12.
//
//
#include "World.h"
using namespace std;
World::World()
{
this->simulatedObjects = new vector<SimulatedObject *>();
this->camera = new Camera();
}
World::~World()
{
if (this->simulatedObjects && ... | 24.675 | 77 | 0.616008 | S1lv10Fr4gn4n1 |
69a0cd2b74a04c79a7d8bdf21ca2c7b09e60e13c | 581 | hpp | C++ | PpmViewer/NoiseEffect.hpp | Rbeck200/ppm-viewer | dd46270192504a5331be82c6deb087eaf5bdf1c7 | [
"Apache-2.0"
] | null | null | null | PpmViewer/NoiseEffect.hpp | Rbeck200/ppm-viewer | dd46270192504a5331be82c6deb087eaf5bdf1c7 | [
"Apache-2.0"
] | null | null | null | PpmViewer/NoiseEffect.hpp | Rbeck200/ppm-viewer | dd46270192504a5331be82c6deb087eaf5bdf1c7 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "PpmDocument.hpp"
#include "ImageEffect.hpp"
class NoiseEffect : public ImageEffect
{
public:
virtual void applyEffect(PpmDocument& doc)
{
for (int i = 0; i < doc.getHeight(); i++)
{
for (int j = 0; j < doc.getWidth(); j++)
{
Pixel& p = doc[i][j];
int noise = (rand() % 21) - 10... | 23.24 | 80 | 0.583477 | Rbeck200 |
69a295c26f60a0acc3f3dbb4dc9b788ab0b590a9 | 5,651 | cpp | C++ | src/coherence/net/cache/AbstractEntryBundler.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | src/coherence/net/cache/AbstractEntryBundler.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | src/coherence/net/cache/AbstractEntryBundler.cpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "coherence/net/cache/AbstractEntryBundler.hpp"
#include <algorithm>
COH_OPEN_NAMESPACE3(coherence,net,cache)
AbstractEntryBundler::... | 26.406542 | 107 | 0.520616 | chpatel3 |
69a8f6a456557dc534a5a4f5c214dab241212cbc | 392 | cpp | C++ | test/test_decompose_E.cpp | lchoseni/Simple-SLAM | 25b4ef98bbd1e155eee281495ad69fd60f17fb4b | [
"Apache-2.0"
] | null | null | null | test/test_decompose_E.cpp | lchoseni/Simple-SLAM | 25b4ef98bbd1e155eee281495ad69fd60f17fb4b | [
"Apache-2.0"
] | null | null | null | test/test_decompose_E.cpp | lchoseni/Simple-SLAM | 25b4ef98bbd1e155eee281495ad69fd60f17fb4b | [
"Apache-2.0"
] | null | null | null | #include "SSLAM/graph.h"
#include "SSLAM/dataset.h"
#include "SSLAM/front_end.h"
#include "SSLAM/config.h"
#include "SSLAM/frame.h"
int main(){
sslam::Config::SetConfigFile(sslam::Config::config_file_);
sslam::FrontEnd front_end;
sslam::Dataset dataset;
sslam::Graph graph = sslam::Graph(&dataset, dat... | 21.777778 | 72 | 0.696429 | lchoseni |
69aa362d8299ea08c0ac6facfa364375c4788dcf | 1,790 | cpp | C++ | tcp_buf/tcp_recv_buf.cpp | Shannon1/LinuxBasicSkillPractice | f7fe3bcc1bb7c7207ec5d93f1cb73353c4a36a30 | [
"MIT"
] | null | null | null | tcp_buf/tcp_recv_buf.cpp | Shannon1/LinuxBasicSkillPractice | f7fe3bcc1bb7c7207ec5d93f1cb73353c4a36a30 | [
"MIT"
] | null | null | null | tcp_buf/tcp_recv_buf.cpp | Shannon1/LinuxBasicSkillPractice | f7fe3bcc1bb7c7207ec5d93f1cb73353c4a36a30 | [
"MIT"
] | null | null | null | //
// Created by lee on 17-7-23.
//
#include <iostream>
#include <sys/socket.h>
#include <csignal>
#include <cassert>
#include <cstring>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
static const int BUFFER_SIZE = 1024;
int main(int argc, char* argv[]) {
if (argc <= 3) {
std::cout <<... | 26.716418 | 81 | 0.600559 | Shannon1 |
69b0a95a84ea04a1b4b51c64445d18da629f6d94 | 966 | cpp | C++ | 05_DFT/05_dft.cpp | LU-JIANGZHOU/CppOpencv | 8a8690e152e6e7e0818767ca383c6dd22a02bb70 | [
"MIT"
] | null | null | null | 05_DFT/05_dft.cpp | LU-JIANGZHOU/CppOpencv | 8a8690e152e6e7e0818767ca383c6dd22a02bb70 | [
"MIT"
] | null | null | null | 05_DFT/05_dft.cpp | LU-JIANGZHOU/CppOpencv | 8a8690e152e6e7e0818767ca383c6dd22a02bb70 | [
"MIT"
] | null | null | null | #include <cstring>
#include <iostream>
#include <string.h>
#include <vector>
#include <iomanip>
#include <stdint.h>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui.hpp>
using namespace std;
using namespace cv;
Mat generateDFT(Mat src)
{
Mat fsrc;
src.convertTo(fsrc, CV_32FC1);
Mat complesSrc[2] = {fsrc, M... | 17.25 | 86 | 0.697723 | LU-JIANGZHOU |
69b16abb92df09064e4e3e693111a49762b005f5 | 24,820 | cpp | C++ | tests/argos-Delphi-Tests/Syntax/Expressions/DelphiPointerTypeExpressionTests.cpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | tests/argos-Delphi-Tests/Syntax/Expressions/DelphiPointerTypeExpressionTests.cpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | 19 | 2021-12-01T20:37:23.000Z | 2022-02-14T21:05:43.000Z | tests/argos-Delphi-Tests/Syntax/Expressions/DelphiPointerTypeExpressionTests.cpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | #include <memory>
#include <catch2/catch.hpp>
#include <argos-Core/argos-Core.hpp>
#include <argos-Delphi/argos-Delphi.hpp>
using argos::Core::LanguageKind;
using argos::Core::AST::ISyntaxTree;
using argos::Core::Syntax::ExpressionKind;
using argos::Core::Syntax::ISyntaxExpression;
using argos::Core::Syntax::ISyntaxNo... | 50.653061 | 126 | 0.734408 | henrikfroehling |
69b3bb4d7d036ddbbc35135666ad63901273914a | 984 | cpp | C++ | tpl/examples/includefiles/IncludeFiles.cpp | Rahul18728/cerl | 8d90c03b2ffe397021bcb8c7198c713acf840bb4 | [
"MIT"
] | 443 | 2015-03-14T06:04:45.000Z | 2022-01-10T01:30:56.000Z | tpl/examples/includefiles/IncludeFiles.cpp | Rahul18728/cerl | 8d90c03b2ffe397021bcb8c7198c713acf840bb4 | [
"MIT"
] | null | null | null | tpl/examples/includefiles/IncludeFiles.cpp | Rahul18728/cerl | 8d90c03b2ffe397021bcb8c7198c713acf840bb4 | [
"MIT"
] | 125 | 2015-03-14T13:08:04.000Z | 2021-12-08T13:03:29.000Z | #include <vector> // std::vector
#include <iostream> // std::cout
#include <tpl/c/Lex.h>
#include <tpl/RegExp.h>
/* is */ # /* this */ include /* supported? *//*
no problem! */ "stdext/FileBuf.h"
using namespace tpl;
// -------------------------------------------------------------------------
// list inc... | 25.230769 | 88 | 0.494919 | Rahul18728 |
69bd32c74fbc89ce026e2573bb78e30522d5cfa1 | 1,371 | hpp | C++ | src/collisionCleanupSystem.hpp | Yattabyte/Particules | 538ce57368b36feae6dad47f54a8736d22b39aa4 | [
"MIT"
] | 1 | 2020-05-10T13:41:15.000Z | 2020-05-10T13:41:15.000Z | src/collisionCleanupSystem.hpp | Yattabyte/Particules | 538ce57368b36feae6dad47f54a8736d22b39aa4 | [
"MIT"
] | 3 | 2020-06-13T16:32:40.000Z | 2020-06-25T01:50:25.000Z | src/collisionCleanupSystem.hpp | Yattabyte/Particules | 538ce57368b36feae6dad47f54a8736d22b39aa4 | [
"MIT"
] | null | null | null | #pragma once
#ifndef COLLISIONCLEANUPSYSTEM_HPP
#define COLLISIONCLEANUPSYSTEM_HPP
#include "components.hpp"
#include "ecsSystem.hpp"
#include "ecsWorld.hpp"
///////////////////////////////////////////////////////////////////////////
/// Use the shared mini namespace
using namespace mini;
///////////////////////////... | 36.078947 | 79 | 0.512764 | Yattabyte |
69c134c2b0587c5d3570d501c837bf9e1ef62f7d | 2,911 | cpp | C++ | SuperVimontBros/src/Entity/Splash/Splash.cpp | vimontgames/supervimontbros | d589e42628e549273878d3db1298dd8c7525036a | [
"MIT"
] | 1 | 2021-01-21T19:37:57.000Z | 2021-01-21T19:37:57.000Z | SuperVimontBros/src/Entity/Splash/Splash.cpp | vimontgames/supervimontbros | d589e42628e549273878d3db1298dd8c7525036a | [
"MIT"
] | null | null | null | SuperVimontBros/src/Entity/Splash/Splash.cpp | vimontgames/supervimontbros | d589e42628e549273878d3db1298dd8c7525036a | [
"MIT"
] | null | null | null | #include "Precomp.h"
#include "Splash.h"
#include "SuperVimontBros/SuperVimontBros.h"
#include "Tiles/LevelObject.h"
#include "Entity/Enemy/Enemy.h"
using namespace sf;
//--------------------------------------------------------------------------
Splash::Splash(SplashType _splashType, uint _subIndex) :
Entity("Splash... | 24.669492 | 81 | 0.63449 | vimontgames |
69c20fde6770cf0eaeee5c92eff633c4fd346c57 | 215 | hpp | C++ | Web-Server/include/IConnection.hpp | marmal95/Web-Server | 6f1fc5fe75d7ca516697a93149880a9c67933a2c | [
"MIT"
] | null | null | null | Web-Server/include/IConnection.hpp | marmal95/Web-Server | 6f1fc5fe75d7ca516697a93149880a9c67933a2c | [
"MIT"
] | null | null | null | Web-Server/include/IConnection.hpp | marmal95/Web-Server | 6f1fc5fe75d7ca516697a93149880a9c67933a2c | [
"MIT"
] | null | null | null | #pragma once
#include <string>
namespace web
{
class IConnection
{
public:
virtual void start() = 0;
virtual void stop() = 0;
virtual uint32_t get_id() const = 0;
virtual ~IConnection() = default;
};
} | 14.333333 | 38 | 0.660465 | marmal95 |
69c39cdae207e4b9e4529c7d9d244c56c94d87e1 | 518 | cpp | C++ | BOJ/code/002920_musical_scale.cpp | sml0399/implementation_of_algorithms | ea0b4e00f836875baea5946cca186ad80d7f5473 | [
"RSA-MD"
] | null | null | null | BOJ/code/002920_musical_scale.cpp | sml0399/implementation_of_algorithms | ea0b4e00f836875baea5946cca186ad80d7f5473 | [
"RSA-MD"
] | 1 | 2021-01-12T05:42:07.000Z | 2021-01-12T05:42:07.000Z | BOJ/code/002920_musical_scale.cpp | sml0399/implementation_of_algorithms | ea0b4e00f836875baea5946cca186ad80d7f5473 | [
"RSA-MD"
] | null | null | null | #include <iostream>
using namespace std;
int main(void){
cin.tie(NULL);
ios_base::sync_with_stdio(false);
int in_num=0,i;
cin>>in_num;
if(in_num==1){
for(i=2;i<9;i++){
cin>>in_num;
if(in_num==i)
continue;
cout<<"mixed\n";
return 0;
}
cout<<"ascending\n";
}else if(in_num=... | 15.69697 | 35 | 0.530888 | sml0399 |
69c7e87330e6dfa6d98165d95898134c65151489 | 1,134 | cpp | C++ | CONTRIB/LLVM/src/lib/Dbg/CodeView/ListRecordBuilder.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | 30 | 2016-09-06T06:58:43.000Z | 2021-12-23T11:59:38.000Z | lib/DebugInfo/CodeView/ListRecordBuilder.cpp | rjordans/avr-llvm | 1802f85a455fbbe5fd1b55183bf588e2e4731dc5 | [
"FSFAP"
] | 21 | 2016-08-11T09:43:43.000Z | 2017-01-29T12:52:56.000Z | lib/DebugInfo/CodeView/ListRecordBuilder.cpp | rjordans/avr-llvm | 1802f85a455fbbe5fd1b55183bf588e2e4731dc5 | [
"FSFAP"
] | 17 | 2016-10-24T06:08:16.000Z | 2022-02-18T17:27:14.000Z | //===-- ListRecordBuilder.cpp ---------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 35.4375 | 80 | 0.626984 | Cwc-Test |
69c932f744143a5fedeeb73acf459038c44712d2 | 1,468 | inl | C++ | dependencies/2dmapping/UnitSquareToHemisphere.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | dependencies/2dmapping/UnitSquareToHemisphere.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | dependencies/2dmapping/UnitSquareToHemisphere.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | /*! \file UnitSquareToHemisphere.inl
* \author Jared Hoberock
* \brief Inline file for UnitSquareToHemisphere.h.
*/
#include "UnitSquareToHemisphere.h"
#include <math.h>
#ifndef PI
#define PI 3.14159265f
#endif // PI
#ifndef INV_2PI
#define INV_2PI (1.0f / (2.0f * PI))
#endif // INV_PI
#ifnde... | 22.584615 | 53 | 0.567439 | jaredhoberock |
69ca3922a962d8964e7c633e12f66276a05c0780 | 4,704 | cpp | C++ | Editor/Sources/o2Editor/Core/Tools/SelectionTool.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Editor/Sources/o2Editor/Core/Tools/SelectionTool.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Editor/Sources/o2Editor/Core/Tools/SelectionTool.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2Editor/stdafx.h"
#include "SelectionTool.h"
#include "o2/Render/Sprite.h"
#include "o2/Scene/Scene.h"
#include "o2/Utils/Editor/SceneEditableObject.h"
#include "o2Editor/Core/Actions/Select.h"
#include "o2Editor/Core/EditorApplication.h"
#include "o2Editor/SceneWindow/SceneEditScreen.h"
#include "o2Editor/... | 26.576271 | 111 | 0.743197 | zenkovich |
69cd41f56944f1408e81af41d0e0f714b9d2f0ee | 1,820 | cpp | C++ | source/noise/LinearNoise.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/noise/LinearNoise.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/noise/LinearNoise.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | #include "raytracing/noise/LinearNoise.h"
#include "raytracing/maths/Point3D.h"
namespace rt
{
LinearNoise::LinearNoise(int octaves, float lacunarity, float gain)
: LatticeNoise(octaves, lacunarity, gain)
{
}
float LinearNoise::value_noise(const Point3D& p) const
{
int ix, iy, iz;
float fx, fy, fz;
... | 23.947368 | 73 | 0.480769 | xzrunner |
69d19faeaa95f7969298e77d4d747e278f401485 | 679 | hpp | C++ | src/gpu/arch.hpp | rigred/peakperf | 4055b0a39fa906a7f1658eb530669ce95073e32b | [
"MIT"
] | 32 | 2021-01-09T19:27:01.000Z | 2022-02-26T10:06:59.000Z | src/gpu/arch.hpp | rigred/peakperf | 4055b0a39fa906a7f1658eb530669ce95073e32b | [
"MIT"
] | 11 | 2021-01-01T22:17:15.000Z | 2022-03-14T05:44:59.000Z | src/gpu/arch.hpp | rigred/peakperf | 4055b0a39fa906a7f1658eb530669ce95073e32b | [
"MIT"
] | 3 | 2021-04-10T20:47:32.000Z | 2021-11-12T14:24:17.000Z | #ifndef __KERNEL__
#define __KERNEL__
#include "../getarg.hpp"
#define BENCHMARK_GPU_ITERS 400000000
struct benchmark_gpu;
struct benchmark_gpu* init_benchmark_gpu(struct gpu* gpu, int nbk, int tpb);
double get_gflops_gpu(struct benchmark_gpu* bench);
bool compute_gpu(struct benchmark_gpu* bench, double* e_time);
c... | 29.521739 | 76 | 0.811487 | rigred |
69d206213b2bc849e6c01e44950127f931807046 | 1,643 | cpp | C++ | tests/standalone/doctest_tests/DoctestMain.cpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | 5 | 2018-08-16T00:55:33.000Z | 2020-06-19T14:30:17.000Z | tests/standalone/doctest_tests/DoctestMain.cpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | tests/standalone/doctest_tests/DoctestMain.cpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest/doctest.h"
#include "easylogging++.h"
INITIALIZE_EASYLOGGINGPP
#include "RenderingContext.hpp"
#include "objects/MeshPrimitives.hpp"
#include "resources/MeshData.hpp"
#include "components/graphics/DrawCommandComponents.hpp"
#include "components/NameComponent.... | 42.128205 | 177 | 0.714547 | fuchstraumer |
69d4d30dfb105bf02d50a695de195c3423f253b9 | 658 | hpp | C++ | archive/stan/src/stan/version.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | archive/stan/src/stan/version.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | archive/stan/src/stan/version.hpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_VERSION_HPP
#define STAN_VERSION_HPP
#include <string>
#ifndef STAN_STRING_EXPAND
#define STAN_STRING_EXPAND(s) #s
#endif
#ifndef STAN_STRING
#define STAN_STRING(s) STAN_STRING_EXPAND(s)
#endif
#define STAN_MAJOR 2
#define STAN_MINOR 20
#define STAN_PATCH 0
namespace stan {
/** M... | 20.5625 | 61 | 0.721884 | alashworth |
69d978a549bc90077f59ffcce8d23e8d26b20d5f | 303 | cpp | C++ | Iniciante/C++/1133.cpp | Garotos-de-Programa/URI-Online-Judge | 0b6b8bbb1da634adf594a7a62bdb0d0601037528 | [
"MIT"
] | 1 | 2021-09-17T19:03:43.000Z | 2021-09-17T19:03:43.000Z | Iniciante/C++/1133.cpp | rabispedro/URI-Online-Judge | 0b6b8bbb1da634adf594a7a62bdb0d0601037528 | [
"MIT"
] | null | null | null | Iniciante/C++/1133.cpp | rabispedro/URI-Online-Judge | 0b6b8bbb1da634adf594a7a62bdb0d0601037528 | [
"MIT"
] | 1 | 2020-03-16T03:01:36.000Z | 2020-03-16T03:01:36.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
int maior,menor,x,y;
scanf("%d\n%d",&x,&y);
if(x>y){
maior=x;
menor=y;
}else{
maior=y;
menor=x;
}
for(int i=menor+1;i<maior;i++) if((i%5)==2 || (i%5)==3) printf("%d\n",i);
return 0;
}
| 16.833333 | 77 | 0.465347 | Garotos-de-Programa |
69db085acc9069864a6c8b6dfc0bcae40c5543d9 | 1,147 | cpp | C++ | src/form.cpp | NMFES/QtFormValidator | ee738a10e2eeb1c658f2d515d211e43d9c341c7f | [
"Apache-2.0"
] | 3 | 2021-04-15T01:09:42.000Z | 2022-01-22T14:07:01.000Z | src/form.cpp | NMFES/QtFormValidator | ee738a10e2eeb1c658f2d515d211e43d9c341c7f | [
"Apache-2.0"
] | null | null | null | src/form.cpp | NMFES/QtFormValidator | ee738a10e2eeb1c658f2d515d211e43d9c341c7f | [
"Apache-2.0"
] | 2 | 2021-04-15T01:09:55.000Z | 2021-07-22T01:37:11.000Z | #include "form.h"
namespace QtFormValidator {
Form::Form(const QJsonObject& data, const QHash<QString, QVariant>& extra): data(data), extra(extra) {}
Form::~Form() {
delete validator;
}
bool Form::validate() {
return validator->validate() ? after() : failed(validator->getError());
... | 21.641509 | 107 | 0.55449 | NMFES |
69e1d985c9a425766ec1bfe823df5a6c785da310 | 49,629 | hpp | C++ | sdl/Hypergraph/MutableHypergraph.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Hypergraph/MutableHypergraph.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Hypergraph/MutableHypergraph.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 33.807221 | 113 | 0.665276 | sdl-research |
69e628d15f61c1d785e4355075c012644f572cd7 | 3,973 | hpp | C++ | src/direct3d/creator.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | src/direct3d/creator.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | src/direct3d/creator.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include "com_ptr.hpp"
#include "device.hpp"
#include "smart_win32_handle.hpp"
#include <array>
#include <atomic>
#include <mutex>
#include <vector>
#include <dxgi1_6.h>
#include <d3d9.h>
namespace sp::d3d9 {
class Creator : public IDirect3D9 {
public:
static Com_ptr<Creator> create() noexcept;
... | 42.72043 | 98 | 0.62069 | SleepKiller |
69e7315c71f526786e9ed923cb8a17147824448e | 3,072 | cpp | C++ | engine/graphics/shader.cpp | danielytics/gou | fa7eea77a46a238793cbfdff58265139ca8f4f6c | [
"MIT"
] | null | null | null | engine/graphics/shader.cpp | danielytics/gou | fa7eea77a46a238793cbfdff58265139ca8f4f6c | [
"MIT"
] | null | null | null | engine/graphics/shader.cpp | danielytics/gou | fa7eea77a46a238793cbfdff58265139ca8f4f6c | [
"MIT"
] | null | null | null |
#include "shader.hpp"
GLuint compileAndAttach (GLuint shaderProgram, GLenum shaderType, const std::string& filename, const std::string& shaderSource)
{
GLuint shader = glCreateShader(shaderType);
// Compile the shader
char* source = const_cast<char*>(shaderSource.c_str());
int32_t size = int32_t(shad... | 32 | 127 | 0.672526 | danielytics |
69e93578cc1e411c45a7a7a93365f2350b16e26f | 2,999 | cpp | C++ | src/Coordination/InMemoryStateManager.cpp | Taschenbergerm/ClickHouse | d15bac31ff462a7c5fde36d5e58a3683e7b45135 | [
"Apache-2.0"
] | 3 | 2021-02-16T13:50:34.000Z | 2021-03-19T12:22:52.000Z | src/Coordination/InMemoryStateManager.cpp | Taschenbergerm/ClickHouse | d15bac31ff462a7c5fde36d5e58a3683e7b45135 | [
"Apache-2.0"
] | null | null | null | src/Coordination/InMemoryStateManager.cpp | Taschenbergerm/ClickHouse | d15bac31ff462a7c5fde36d5e58a3683e7b45135 | [
"Apache-2.0"
] | 1 | 2021-02-16T21:24:34.000Z | 2021-02-16T21:24:34.000Z | #include <Coordination/InMemoryStateManager.h>
#include <Common/Exception.h>
namespace DB
{
namespace ErrorCodes
{
extern const int RAFT_ERROR;
}
InMemoryStateManager::InMemoryStateManager(int server_id_, const std::string & host, int port)
: my_server_id(server_id_)
, my_port(port)
, log_store(nuraf... | 37.962025 | 139 | 0.693231 | Taschenbergerm |
69eec591749f982ca4d2a3b71dd69b905c7bb756 | 1,997 | cpp | C++ | FE-CU Training 2021-2022/[Juniors] - STL #2/D.cpp | ZiadSheriif/Problem-Solving | 662a32c465005e094cfe06f4353a735384e58627 | [
"MIT"
] | null | null | null | FE-CU Training 2021-2022/[Juniors] - STL #2/D.cpp | ZiadSheriif/Problem-Solving | 662a32c465005e094cfe06f4353a735384e58627 | [
"MIT"
] | null | null | null | FE-CU Training 2021-2022/[Juniors] - STL #2/D.cpp | ZiadSheriif/Problem-Solving | 662a32c465005e094cfe06f4353a735384e58627 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <unordered_map>
#include <climits>
#include <map>
#include <set>
#include <limits.h>
#include <iomanip>
using namespace std;
#include <string>
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef vector<int> vi;... | 20.587629 | 52 | 0.472709 | ZiadSheriif |
69efd8942515719594848459d1709c2226b020e7 | 25,226 | cc | C++ | lib/matrices/wimax_1248_0_75A.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | 8 | 2018-10-29T14:56:05.000Z | 2022-02-10T09:42:21.000Z | lib/matrices/wimax_1248_0_75A.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | null | null | null | lib/matrices/wimax_1248_0_75A.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | 4 | 2018-10-16T20:12:56.000Z | 2020-10-19T07:37:05.000Z | #include "matrices.h"
#ifdef Z_52
unsigned int wimax_1248_0_75A_D = 26;
unsigned int wimax_1248_0_75A_X = 3;
int16_t wimax_1248_0_75A[312][15] = {
{3, 72, 105, 206, 380, 453, 566, 644, 696, 730, 785, 908, 962, 988, -1},
{4, 73, 106, 207, 381, 454, 567, 645, 697, 731, 786, 909, 963, 989, -1},
{5, 74, 107,... | 78.341615 | 81 | 0.542892 | iamviji |
69f1037882867a6773789f508bff62f484b28856 | 11,940 | cpp | C++ | src/StrumpackSparseSolver.cpp | sarahorsak/STRUMPACK | 1c23ba83a07082b3bce5cf7092e990c71af0ee67 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/StrumpackSparseSolver.cpp | sarahorsak/STRUMPACK | 1c23ba83a07082b3bce5cf7092e990c71af0ee67 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/StrumpackSparseSolver.cpp | sarahorsak/STRUMPACK | 1c23ba83a07082b3bce5cf7092e990c71af0ee67 | [
"BSD-3-Clause-LBNL"
] | null | null | null | /*
* STRUMPACK -- STRUctured Matrices PACKage, Copyright (c) 2014, The
* Regents of the University of California, through Lawrence Berkeley
* National Laboratory (subject to receipt of any required approvals
* from the U.S. Dept. of Energy). All rights reserved.
*
* If you have questions about your rights to use... | 36.402439 | 76 | 0.654858 | sarahorsak |
69f120e70a0669fa948360fdde3b3f7166139d17 | 1,495 | cpp | C++ | src/prepared.cpp | API92/cassaforte | 27eb8fdd822c0fc5d7b078228b698cb2e0804e01 | [
"BSD-2-Clause"
] | null | null | null | src/prepared.cpp | API92/cassaforte | 27eb8fdd822c0fc5d7b078228b698cb2e0804e01 | [
"BSD-2-Clause"
] | null | null | null | src/prepared.cpp | API92/cassaforte | 27eb8fdd822c0fc5d7b078228b698cb2e0804e01 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) Andrey Pikas
*/
#include <cass/prepared.hpp>
#include <cassandra.h>
#include <cass/data_type.hpp>
#include <cass/statement.hpp>
#include <cass/wrapper_ptr_def.hpp>
namespace cass {
prepared const * prepared::ptr(::CassPrepared const *p)
{
return reinterpret_cast<prepared const *>(p);
}
::... | 22.651515 | 78 | 0.701003 | API92 |
69f57a6b296ec12f6bba3a338c003277e7c2bf01 | 13,133 | cpp | C++ | src/ros_param.cpp | BruceChanJianLe/ros-param | 71fde518005bf19044b306fe2ce88692cf7c802d | [
"MIT"
] | null | null | null | src/ros_param.cpp | BruceChanJianLe/ros-param | 71fde518005bf19044b306fe2ce88692cf7c802d | [
"MIT"
] | null | null | null | src/ros_param.cpp | BruceChanJianLe/ros-param | 71fde518005bf19044b306fe2ce88692cf7c802d | [
"MIT"
] | null | null | null | #include "ros-param/ros_param.hpp"
namespace ros_param
{
loader::loader()
: private_nh_(ros::NodeHandle("~")),
global_nh_(ros::NodeHandle()),
param_nh_(ros::NodeHandle("main_namespace/sub_namespace")),
bool_var_(false),
int_var_(0),
double_var_(0.0),
string_va... | 35.209115 | 144 | 0.52943 | BruceChanJianLe |
69fb404350d45327c838c447c56e2c7ffa04778f | 6,071 | cpp | C++ | Object.cpp | e-thing/arduino | af7566722c581772746c01813b1ec454bbe4b39a | [
"Apache-2.0"
] | null | null | null | Object.cpp | e-thing/arduino | af7566722c581772746c01813b1ec454bbe4b39a | [
"Apache-2.0"
] | null | null | null | Object.cpp | e-thing/arduino | af7566722c581772746c01813b1ec454bbe4b39a | [
"Apache-2.0"
] | null | null | null | #include "Object.h"
#include <string.h>
#include <stdlib.h>
#include "JSON.h"
Object::Object() : buf_(NULL) {
clear();
}
Object::~Object()
{
if(buf_!=NULL) free(buf_);
}
Object::Object(const Object &obj)
{
*this = obj;
}
Object & Object::operator = (const Object &obj)
{
if (this == &obj) return *this;
clear... | 18.565749 | 108 | 0.622962 | e-thing |
69fd946a0d0e86a03c96cccdc9e61e32e64771db | 892 | cc | C++ | src/externalized/strategic/SectorLandTypes.cc | FluffyQuack/ja2-stracciatella | 59781890986dc5360ed4b148b83836c029121d5f | [
"BSD-Source-Code"
] | 346 | 2016-02-16T11:17:25.000Z | 2022-03-28T18:18:14.000Z | src/externalized/strategic/SectorLandTypes.cc | FluffyQuack/ja2-stracciatella | 59781890986dc5360ed4b148b83836c029121d5f | [
"BSD-Source-Code"
] | 1,119 | 2016-02-14T23:19:56.000Z | 2022-03-31T21:57:58.000Z | src/externalized/strategic/SectorLandTypes.cc | FluffyQuack/ja2-stracciatella | 59781890986dc5360ed4b148b83836c029121d5f | [
"BSD-Source-Code"
] | 90 | 2016-02-17T22:17:11.000Z | 2022-03-12T11:59:56.000Z | #include "SectorLandTypes.h"
#include "Campaign_Types.h"
#include "JsonObject.h"
std::map<SectorKey, LandType> SectorLandTypes::deserialize(const rapidjson::Document& document, const TraversibilityMap& travMap)
{
std::map<SectorKey, LandType> landTypes;
for (const auto &el : document.GetArray())
{
JsonObjectRead... | 31.857143 | 129 | 0.75 | FluffyQuack |
0e0729f3e9f6e09c162aba1babda1ba3feba6126 | 3,014 | cpp | C++ | core/silkworm/common/test_util.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | 87 | 2020-08-03T11:40:39.000Z | 2022-03-31T10:27:58.000Z | core/silkworm/common/test_util.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | 452 | 2020-08-17T16:32:00.000Z | 2022-03-28T19:19:59.000Z | core/silkworm/common/test_util.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | 28 | 2020-08-27T02:06:50.000Z | 2022-03-03T22:30:46.000Z | /*
Copyright 2021 The Silkworm Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 35.880952 | 111 | 0.702721 | elmato |
97b9899c753d9d60a30c8fc7daf9fb0955209ecb | 590 | cpp | C++ | src/vpp/stage/blur.cpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | 1 | 2020-06-18T14:01:50.000Z | 2020-06-18T14:01:50.000Z | src/vpp/stage/blur.cpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | src/vpp/stage/blur.cpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | /**
*
* @file vpp/stage/blur.cpp
*
* @brief This is the VPP blur handling stage implementation
*
* This file is part of the VPP framework (see link).
*
* @author Olivier Stoltz-Douchet <ezdayo@gmail.com>
*
* @copyright (c) 2019-2020 Olivier Stoltz-Douchet
* @license http://opensource... | 21.071429 | 64 | 0.638983 | ezdayo |
97c117898368dedc7a400bcf9cabe1d9ca2185c7 | 9,434 | cpp | C++ | src/erhe/log/log.cpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 36 | 2021-05-03T10:47:49.000Z | 2022-03-19T12:54:03.000Z | src/erhe/log/log.cpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 29 | 2020-05-17T08:26:31.000Z | 2022-03-27T08:52:47.000Z | src/erhe/log/log.cpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 2 | 2022-01-24T09:24:37.000Z | 2022-01-31T20:45:36.000Z | #include "erhe/log/log.hpp"
#include "erhe/toolkit/verify.hpp"
#include <cassert>
#include <cstdarg>
#include <cstdio>
#include <iostream>
#if defined _WIN32
# include <windows.h>
#else
# include <unistd.h>
#endif
namespace erhe::log
{
#if defined _WIN32
auto Log::print_color() -> bool
{
return true;
}
... | 27.109195 | 114 | 0.398558 | tksuoran |
97d2ab15963bc2502b985c4fb4a1baf2b8b65427 | 515 | cpp | C++ | demo_source/network_flow_demo.cpp | yhlim1225/OSS_G6 | c88f78eefeacf89893ace3f07bbdf3ebb1923244 | [
"MIT"
] | null | null | null | demo_source/network_flow_demo.cpp | yhlim1225/OSS_G6 | c88f78eefeacf89893ace3f07bbdf3ebb1923244 | [
"MIT"
] | 5 | 2019-11-24T07:30:12.000Z | 2019-12-19T04:43:52.000Z | demo_source/network_flow_demo.cpp | yhlim1225/OSS_G6 | c88f78eefeacf89893ace3f07bbdf3ebb1923244 | [
"MIT"
] | 2 | 2019-12-01T07:09:18.000Z | 2019-12-09T16:46:38.000Z | #include<stdio.h>
#include "network_flow.h"
int n, m;
int main()
{
scanf("%d %d",&n,&m);
MaximumFlow mf(n+m+2);
mf.set_SNK(0), mf.set_SRC(n+m+1);
for(int i=1 ; i<=n ; i++) mf.add_edge(mf.get_SRC(),i,1);
for(int i=1 ; i<=m ; i++) mf.add_edge(n+i,mf.get_SNK(),1);
for(int i=1 ; i<=n ; i++){
... | 21.458333 | 62 | 0.452427 | yhlim1225 |
97d524d1765b7814e340a36b8545409c0a494cdd | 9,190 | cpp | C++ | rclcpp/test/rclcpp/test_qos_parameters.cpp | jlack1987/rclcpp | d107a844eae6f4d6a86515f0b3e469802ab1e785 | [
"Apache-2.0"
] | 271 | 2015-04-07T15:26:53.000Z | 2022-03-31T17:42:58.000Z | rclcpp/test/rclcpp/test_qos_parameters.cpp | jlack1987/rclcpp | d107a844eae6f4d6a86515f0b3e469802ab1e785 | [
"Apache-2.0"
] | 1,676 | 2015-01-15T23:46:56.000Z | 2022-03-31T21:32:06.000Z | rclcpp/test/rclcpp/test_qos_parameters.cpp | jlack1987/rclcpp | d107a844eae6f4d6a86515f0b3e469802ab1e785 | [
"Apache-2.0"
] | 299 | 2015-10-05T16:51:32.000Z | 2022-03-30T11:23:18.000Z | // Copyright 2020 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... | 35.620155 | 99 | 0.705985 | jlack1987 |
97dc92490f6cff24dac7d55f8068965c05214354 | 3,030 | cpp | C++ | lib/src/fsmc/FsmcSram.cpp | ADTL/stm32plus | 32f3657bf764b0373889427e113e7925f21a6b4f | [
"BSD-3-Clause"
] | 1 | 2019-05-03T14:30:03.000Z | 2019-05-03T14:30:03.000Z | lib/src/fsmc/FsmcSram.cpp | ADTL/stm32plus | 32f3657bf764b0373889427e113e7925f21a6b4f | [
"BSD-3-Clause"
] | null | null | null | lib/src/fsmc/FsmcSram.cpp | ADTL/stm32plus | 32f3657bf764b0373889427e113e7925f21a6b4f | [
"BSD-3-Clause"
] | null | null | null | /*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "config/stm32plus.h"
#if defined(STM32PLUS_F1_HD) || defined(STM32PLUS_F4)
#include "config/fsmc.h"
namespace stm32plus {
... | 42.676056 | 135 | 0.728053 | ADTL |
97dd0f366666bd59a1ce6b23f5d389aa5e2507b2 | 34,619 | hpp | C++ | include/GlobalNamespace/StandardLevelDetailViewController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StandardLevelDetailViewController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StandardLevelDetailViewController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: HMUI.ViewController
#include "HMUI/ViewController.hpp"
// Including t... | 67.880392 | 3,324 | 0.782489 | darknight1050 |
97ddbe5e27922731f976dec8576d7a1ad5d04f2d | 279 | cpp | C++ | kinect/util.cpp | mik90/kinect-time | 6777350f3744724877a6006c39eb7e06f0925889 | [
"MIT"
] | null | null | null | kinect/util.cpp | mik90/kinect-time | 6777350f3744724877a6006c39eb7e06f0925889 | [
"MIT"
] | null | null | null | kinect/util.cpp | mik90/kinect-time | 6777350f3744724877a6006c39eb7e06f0925889 | [
"MIT"
] | null | null | null | #include "util.hpp"
namespace mik {
void exit_with_error(const char* file, std::uint32_t line, std::string_view err_msg) {
std::cerr << file << ":" << line << " - " << err_msg << "\n";
std::cerr << "Exiting with return code 1\n";
std::exit(1);
}
} // namespace mik | 25.363636 | 86 | 0.598566 | mik90 |
97ded493c23816ffcb7e572ea0511417fcdfe605 | 65 | cpp | C++ | tui/screen.cpp | GravisZro/put | 89e45861c9bf53d4826becae122858c742e07f98 | [
"Unlicense"
] | 4 | 2018-12-08T01:45:14.000Z | 2021-03-14T11:29:56.000Z | tui/screen.cpp | GravisZro/put | 89e45861c9bf53d4826becae122858c742e07f98 | [
"Unlicense"
] | null | null | null | tui/screen.cpp | GravisZro/put | 89e45861c9bf53d4826becae122858c742e07f98 | [
"Unlicense"
] | null | null | null | #include "screen.h"
using namespace tui;
Screen::Screen()
{
}
| 7.222222 | 20 | 0.661538 | GravisZro |
97e55906be36396efdf426094e262f5d4586ea7c | 12,247 | cpp | C++ | Sources/Plugins/Game_Quake/QuakeMD2ModelReader.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Plugins/Game_Quake/QuakeMD2ModelReader.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Plugins/Game_Quake/QuakeMD2ModelReader.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | /*=============================================================================
QuakeMD2ModelReader.cpp
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
#include "QuakeMD2ModelReader.h"
namespace SE_Quake
{
typedef uint8 byte;
#include "q... | 26.566161 | 159 | 0.690945 | jdelezenne |
97e64d0579beade7c4d370296c4655f38a33a66b | 1,164 | hpp | C++ | include/parserlib/rule_reference.hpp | axilmar/parserlib | 68c6d4be31ce7a09d819b8c5150f90c9d0014b12 | [
"Apache-2.0"
] | 47 | 2015-01-15T18:53:52.000Z | 2021-11-03T11:11:25.000Z | include/parserlib/rule_reference.hpp | axilmar/parserlib | 68c6d4be31ce7a09d819b8c5150f90c9d0014b12 | [
"Apache-2.0"
] | 2 | 2015-03-27T16:28:09.000Z | 2020-05-08T11:32:01.000Z | include/parserlib/rule_reference.hpp | axilmar/parserlib | 68c6d4be31ce7a09d819b8c5150f90c9d0014b12 | [
"Apache-2.0"
] | 9 | 2015-03-26T01:22:08.000Z | 2020-04-27T07:42:55.000Z | #ifndef PARSERLIB__RULE_REFERENCE__HPP
#define PARSERLIB__RULE_REFERENCE__HPP
#include "parse_result.hpp"
#include "expression_type.hpp"
namespace parserlib
{
template <typename ParseContext> class rule;
/**
Class that represents a reference to a rule.
References... | 21.555556 | 69 | 0.572165 | axilmar |
97e94b515bc270a891e8ce77b3699ce87ed883bd | 1,615 | cpp | C++ | Days 071 - 080/Day 78/MergeLinkedLists.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 071 - 080/Day 78/MergeLinkedLists.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 071 - 080/Day 78/MergeLinkedLists.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
#include <type_traits>
#include <vector>
struct Node
{
int value;
Node* next;
explicit Node(int value, Node* next = nullptr) noexcept
: value(value), next(next)
{ }
};
struct NodePointerComparison
{
bool operator ()(Node* left, Node* right) const noexcept
{
return left-... | 17.554348 | 113 | 0.640867 | LucidSigma |
97ea0517f4b30576d01cb58b89814b1c3bfc3994 | 3,905 | cpp | C++ | purenessscopeserver/FrameCore/CppUnit/Unit_CommandAccount.cpp | normalscene/PSS | e1fea50dd3ff7dab990fa203a5eaaec25f1cef2c | [
"Apache-2.0"
] | null | null | null | purenessscopeserver/FrameCore/CppUnit/Unit_CommandAccount.cpp | normalscene/PSS | e1fea50dd3ff7dab990fa203a5eaaec25f1cef2c | [
"Apache-2.0"
] | null | null | null | purenessscopeserver/FrameCore/CppUnit/Unit_CommandAccount.cpp | normalscene/PSS | e1fea50dd3ff7dab990fa203a5eaaec25f1cef2c | [
"Apache-2.0"
] | null | null | null | #include "Unit_CommandAccount.h"
#ifdef _CPPUNIT_TEST
CUnit_CommandAccount::CUnit_CommandAccount()
{
}
void CUnit_CommandAccount::setUp(void)
{
m_pCommandAccount = new CCommandAccount();
m_u1CommandAccount = 1;
m_u1Flow = 1;
m_u2RecvTimeout = 30;
m_pCommandAccount->Init... | 30.271318 | 129 | 0.701921 | normalscene |
97ec4ec17c4ea9d4a67db8b8bbeea590a7f0238c | 62 | hpp | C++ | modules/clicker/functions/clicker/script_component.hpp | Bear-Cave-ArmA/Olsen-Framework-ArmA-3 | 1c1715f0e4ed8f2b655a66999754256fa42ca6bf | [
"MIT"
] | 4 | 2020-05-04T18:03:59.000Z | 2020-05-06T19:40:27.000Z | modules/clicker/functions/clicker/script_component.hpp | Bear-Cave-ArmA/Olsen-Framework-ArmA-3 | 1c1715f0e4ed8f2b655a66999754256fa42ca6bf | [
"MIT"
] | 13 | 2020-05-06T19:02:06.000Z | 2020-08-24T08:16:43.000Z | modules/clicker/functions/clicker/script_component.hpp | Bear-Cave-ArmA/Olsen-Framework-ArmA-3 | 1c1715f0e4ed8f2b655a66999754256fa42ca6bf | [
"MIT"
] | 5 | 2020-05-04T18:04:05.000Z | 2020-05-14T16:53:13.000Z | #define COMPONENT CLICK
#include "..\..\script_component.hpp" | 31 | 37 | 0.741935 | Bear-Cave-ArmA |
97eece844544fca141596b31394a88b52c2fb900 | 1,677 | cpp | C++ | src_p/DnaAssembler.cpp | kosiacz3q/isbh | 27aefaeb6926c62d61b2fbb832120b32db2b92ec | [
"MIT"
] | null | null | null | src_p/DnaAssembler.cpp | kosiacz3q/isbh | 27aefaeb6926c62d61b2fbb832120b32db2b92ec | [
"MIT"
] | null | null | null | src_p/DnaAssembler.cpp | kosiacz3q/isbh | 27aefaeb6926c62d61b2fbb832120b32db2b92ec | [
"MIT"
] | null | null | null | #include "DnaAssembler.hpp"
#include <algorithm>
#include <set>
#include "utils.hpp"
std::string sequence;
std::set<GraphNodePtr> minimalIsNotReach;
bool checkIfMinimumIsReached(const GraphNodePtr current)
{
if (!current->flag)
{
current->flag = true;
if (current->currentCount < current->minCount)
return ... | 21.227848 | 124 | 0.705426 | kosiacz3q |
97f58660ea5737747c368ae1491572689b9ec34e | 261 | cpp | C++ | source/stitcher/src/typedeclarations.cpp | Svetuf/imageregistration | e271a5ee2fdb284bb1b062d425ee50a4be541f41 | [
"MIT"
] | 1 | 2020-07-05T13:37:10.000Z | 2020-07-05T13:37:10.000Z | source/stitcher/src/typedeclarations.cpp | Svetuf/imageregistration | e271a5ee2fdb284bb1b062d425ee50a4be541f41 | [
"MIT"
] | 3 | 2020-07-17T12:15:36.000Z | 2020-07-17T12:23:21.000Z | source/stitcher/src/typedeclarations.cpp | Svetuf/imageregistration | e271a5ee2fdb284bb1b062d425ee50a4be541f41 | [
"MIT"
] | 2 | 2021-03-14T23:08:45.000Z | 2022-03-17T20:45:36.000Z | #include <stitching/core/factory.h>
DEFINE_TYPE(IFeaturing, OrbFeaturing);
DEFINE_TYPE(IFeaturing, SurfFeaturing);
DEFINE_TYPE(IMatcher, KnnMatcher);
DEFINE_TYPE(IHomography, Homography);
DEFINE_TYPE(IWarping, Warping);
DEFINE_TYPE(IStitcher, SimpleStitcher);
| 29 | 39 | 0.827586 | Svetuf |
97f6176fb729fd243e5e71a8a3019269eddc163a | 1,481 | cpp | C++ | C++/sqrtx.cpp | xenron/sandbox-dev-lintcode | 114145723af43eafc84ff602ad3ac7b353a9fc38 | [
"MIT"
] | 695 | 2015-04-18T16:11:56.000Z | 2022-03-11T13:28:44.000Z | C++/sqrtx.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 4 | 2015-07-04T13:07:35.000Z | 2020-08-11T11:32:29.000Z | C++/sqrtx.cpp | Abd-Elrazek/LintCode | 8f6ee0ff38cb7cf8bf9fca800243823931604155 | [
"MIT"
] | 338 | 2015-04-28T04:39:03.000Z | 2022-03-16T03:00:15.000Z | // Time: O(logn)
// Space: O(1)
class Solution {
public:
/**
* @param x: An integer
* @return: The sqrt of x
*/
int sqrt(int x) {
int left = 1;
int right = x / 2;
// Find min of left s.t. left > x / left.
while (left <= right) {
int mid = left + (rig... | 19.486842 | 52 | 0.375422 | xenron |
97f79b9175bab42bb962d5754cd6fab8cc103b5d | 23,693 | hpp | C++ | branch/old_angsys/angsys_beta2/include/angsys/ang/streams.hpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta2/include/angsys/ang/streams.hpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta2/include/angsys/ang/streams.hpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | /*********************************************************************************************************************/
/* Copyright (C) angsys, Jesus Angel Rocha Morales */
/* You may opt to use, copy, modify, merge, publish and/or distribute copies o... | 32.906944 | 191 | 0.715823 | ChuyX3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.