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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45d3c6e6a6076b4a8268d6d86a5b5449ac3a68fd | 1,488 | cpp | C++ | GSLAM/evaluation/metric_trajectory/main.cpp | qistout/GSLAM | 0dc339faffed1c17efa3ddb1da63442b53ec4618 | [
"BSD-2-Clause"
] | 875 | 2016-09-19T01:35:56.000Z | 2022-03-28T09:12:00.000Z | GSLAM/evaluation/metric_trajectory/main.cpp | bhsphd/GSLAM | a2139d1c52ad70c282bc950b51876a0b0ba019e0 | [
"BSD-2-Clause"
] | 40 | 2017-08-01T02:32:35.000Z | 2021-05-31T13:45:59.000Z | GSLAM/evaluation/metric_trajectory/main.cpp | bhsphd/GSLAM | a2139d1c52ad70c282bc950b51876a0b0ba019e0 | [
"BSD-2-Clause"
] | 259 | 2016-08-20T14:54:09.000Z | 2022-03-09T06:18:05.000Z | #include <GSLAM/core/GSLAM.h>
using namespace GSLAM;
int metric_traj(Svar config){
std::string slam_name=config.arg<std::string>("slam","","The slam topic name to evaluate");
std::string vo_traj=config.arg<std::string>("traj_vo",slam_name+"_traj_vo.txt","the vo trajectory");
std::string final_traj=config.a... | 30.367347 | 116 | 0.594086 | qistout |
45d526118ea9c3ebd9782dafe6f93eb117b05a55 | 8,569 | cc | C++ | src/atd/config.cc | galeone/openatd | b60c5fb774d8310e867363503dd4eb40bb2c8481 | [
"Apache-2.0"
] | 15 | 2017-11-06T17:20:29.000Z | 2021-12-09T19:31:18.000Z | src/atd/config.cc | galeone/openatd | b60c5fb774d8310e867363503dd4eb40bb2c8481 | [
"Apache-2.0"
] | null | null | null | src/atd/config.cc | galeone/openatd | b60c5fb774d8310e867363503dd4eb40bb2c8481 | [
"Apache-2.0"
] | 2 | 2018-07-21T20:37:34.000Z | 2021-02-01T19:55:01.000Z | /* Copyright 2017 Paolo Galeone <nessuno@nerdz.eu>. 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 ... | 36.619658 | 80 | 0.51908 | galeone |
45d76551d6c96544fc1a487569912becc6c36003 | 33,366 | cpp | C++ | src/main.cpp | buresu/ndi-python | 002597146ee7b7f73968e52c811e9791b12bc8f6 | [
"MIT"
] | 43 | 2019-07-29T02:52:14.000Z | 2022-03-23T10:20:33.000Z | src/main.cpp | akarak/ndi-python | f8f02cfd624290f0b2ea8b94f76a41a6671765b6 | [
"MIT"
] | 13 | 2020-05-12T17:00:05.000Z | 2022-03-25T04:59:56.000Z | src/main.cpp | akarak/ndi-python | f8f02cfd624290f0b2ea8b94f76a41a6671765b6 | [
"MIT"
] | 14 | 2020-06-29T06:32:09.000Z | 2022-03-21T08:51:53.000Z | #include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <Processing.NDI.Lib.h>
namespace py = pybind11;
PYBIND11_MODULE(NDIlib, m) {
m.doc() = "NDI Plugin";
// Processing.NDI.structs
py::enum_<NDIlib_frame_type_e>(m, "FrameType", py::arithmetic())
.value("FRAME_TYPE_NONE", NDIlib_frame_type... | 44.488 | 80 | 0.652221 | buresu |
45db8d06e30ce9249f9ebcdc7f11645f29ac4691 | 615 | cpp | C++ | server/Common/Packets/GCNotifyGoodBad.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Common/Packets/GCNotifyGoodBad.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Common/Packets/GCNotifyGoodBad.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
#include "GCNotifyGoodBad.h"
BOOL GCNotifyRMBMoney::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read((CHAR*)(&m_nValue), sizeof(m_nValue));
return TRUE;
__LEAVE_FUNCTION
return FALSE;
}
BOOL GCNotifyRMBMoney::Write( SocketOutputStream& oStream )const
{
__ENTER_F... | 15 | 64 | 0.733333 | viticm |
45dda6adf4bc4c53ed70f7403621834648832c5d | 1,226 | cpp | C++ | src/job/system/JobQueue.cpp | Ohjurot/DX12-YT | b71683843716efcfd9ff4c9c8b4d0a9fa14b1af6 | [
"BSD-2-Clause",
"Unlicense"
] | 16 | 2021-03-07T09:18:38.000Z | 2022-03-31T18:40:29.000Z | src/job/system/JobQueue.cpp | Ohjurot/DX12-YT | b71683843716efcfd9ff4c9c8b4d0a9fa14b1af6 | [
"BSD-2-Clause",
"Unlicense"
] | 1 | 2021-09-18T10:18:01.000Z | 2021-09-23T04:12:38.000Z | src/job/system/JobQueue.cpp | Ohjurot/DX12-YT | b71683843716efcfd9ff4c9c8b4d0a9fa14b1af6 | [
"BSD-2-Clause",
"Unlicense"
] | 5 | 2021-08-12T04:33:40.000Z | 2022-03-31T08:55:07.000Z | #include "DefHeader.h"
#include "JobQueue.h"
bool Job::JobQueue::queueJob(JobQueueDesc& jobDesc) noexcept {
switch (jobDesc.jobPriority) {
// LOW
case JobPriority::LOW:
return m_arrQueue[4].push<JobQueueDesc>(jobDesc);
// NORMAL
case JobPriority::NORMAL:
ret... | 25.541667 | 63 | 0.589723 | Ohjurot |
45de879b6d1c9a7eb919c02a433ed2a71721b0eb | 480 | inl | C++ | src/ogl/ogldefaultVS.inl | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/ogl/ogldefaultVS.inl | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/ogl/ogldefaultVS.inl | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null |
#ifdef __ANDROID__
//precision mediump float;
#endif
char const* defaultVS =
R"(
#version 140
attribute vec4 iPosition;
attribute vec2 iTexCoord;
uniform mat4 worldMatrix;
layout(std140) uniform Camera
{
mat4 viewMatrix;
mat4 viewInverseMatrix;
mat4 projMatrix;
};
uniform vec2 tcOffset;
uniform vec2 tcScaling... | 16 | 66 | 0.754167 | eXl-Nic |
45e4d098bf632446b95f1011aa33310ded0f2d29 | 753 | cc | C++ | leet_code/Sort_Colors/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | leet_code/Sort_Colors/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | leet_code/Sort_Colors/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
void sortColors(vector<int>& nums) {
auto zero = 0, one = 0, two = 0;
for_each(nums.begin(), nums.end(), [&zero, &one, &two] (const auto &val) {
switch (val) {
case 0 :
++zero;
break;
case 1 ... | 25.1 | 82 | 0.309429 | ldy121 |
45e5eb3deb51f23da8334ee5d6c60f179d9ee320 | 5,775 | cpp | C++ | jpegkit/src/main/cpp/jpegkit/jpeg.cpp | CameraKit/camerakit-android-jpegtools | 01a782f22bdb2fa9b2488731efc72693cd74f703 | [
"MIT"
] | 155 | 2018-01-22T19:14:47.000Z | 2022-03-22T03:47:48.000Z | jpegkit/src/main/cpp/jpegkit/jpeg.cpp | CameraKit/camerakit-android-jpegtools | 01a782f22bdb2fa9b2488731efc72693cd74f703 | [
"MIT"
] | 8 | 2018-03-22T23:40:28.000Z | 2021-05-31T17:43:23.000Z | jpegkit/src/main/cpp/jpegkit/jpeg.cpp | CameraKit/camerakit-android-jpegtools | 01a782f22bdb2fa9b2488731efc72693cd74f703 | [
"MIT"
] | 32 | 2018-01-29T05:05:32.000Z | 2022-03-22T03:47:50.000Z | #include <jni.h>
#include <stdio.h>
#include <cstring>
#include <unistd.h>
#include <turbojpeg.h>
extern "C"
{
JNIEXPORT jobject JNICALL
Java_jpegkit_Jpeg_jniMount
(JNIEnv *env, jobject obj, jbyteArray jpegBytes);
JNIEXPORT void JNICALL
Java_jpegkit_Jpeg_jniRelease
(JNIEnv *env, jobject obj, jobject h... | 27.631579 | 114 | 0.692987 | CameraKit |
45ea1fff84ed347b40c2e773e38b3b7cbd618f5f | 661 | hpp | C++ | library/inc/argo/nargs/INArgs.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | library/inc/argo/nargs/INArgs.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | library/inc/argo/nargs/INArgs.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | #ifndef HEADER_argo_nargs_INArgs_hpp_INCLUDE_GUARD
#define HEADER_argo_nargs_INArgs_hpp_INCLUDE_GUARD
#include "argo/details/memory.hpp"
#include <string>
namespace argo { namespace nargs {
class INargs;
using Ptr = std::unique_ptr<INargs>;
class INargs
{
public:
virtual ~INargs() = defa... | 20.65625 | 53 | 0.638427 | phforest |
45f173c14dc02b5558ab89d14ac3a22cb6e3904d | 2,137 | cpp | C++ | src/core/vector_types.cpp | scanberg/viamdutils | 36294a8a07fc7900d5dae921a2fa3fc9eed30226 | [
"MIT"
] | null | null | null | src/core/vector_types.cpp | scanberg/viamdutils | 36294a8a07fc7900d5dae921a2fa3fc9eed30226 | [
"MIT"
] | null | null | null | src/core/vector_types.cpp | scanberg/viamdutils | 36294a8a07fc7900d5dae921a2fa3fc9eed30226 | [
"MIT"
] | null | null | null | #define HAS_VECTOR_TEMPLATE_INSTANTIATION
#include "vector_types.h"
template struct glm::vec<2, float, glm::packed_highp>;
template struct glm::vec<3, float, glm::packed_highp>;
template struct glm::vec<4, float, glm::packed_highp>;
template struct glm::vec<2, double, glm::packed_highp>;
template struct glm::vec<3, d... | 42.74 | 58 | 0.749181 | scanberg |
45f2935fa4e6ff93dc1c8edd1531d64b1750b9e7 | 1,552 | cpp | C++ | Source/Main.cpp | BoomerDev/EndoBuild | 19d8f6b66403132ad93186ecb94b135ae2109525 | [
"MIT"
] | 4 | 2021-04-16T17:01:08.000Z | 2021-06-10T19:12:33.000Z | Source/Main.cpp | BoomerDev/EndoBuild | 19d8f6b66403132ad93186ecb94b135ae2109525 | [
"MIT"
] | null | null | null | Source/Main.cpp | BoomerDev/EndoBuild | 19d8f6b66403132ad93186ecb94b135ae2109525 | [
"MIT"
] | null | null | null | #include "FileSystem.h"
#include "Script/ScriptContext.h"
#include "Consts.h"
#include "Cache.h"
#include <iostream>
#include <vector>
#include <unordered_map>
std::string workingDirectory = "";
std::string version = "1.0.0-development:debug";
void HandleArgs(int argc, char **argv) {
std::vector<int> ignoreArg... | 23.164179 | 101 | 0.528351 | BoomerDev |
45f3c7401467b3738801a4b61dcef1f618e2effa | 418 | cpp | C++ | A/734/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | A/734/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | A/734/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n, A(0), D(0);
char ch;
cin >> n;
for (int i(0); i < n; i++)
{
cin >> ch;
switch (ch)
{
case 'A': A++; break;
case 'D': D++; break;
}
}
if (A > D)
cout << "Anton";
... | 13.933333 | 33 | 0.370813 | ABGEO07 |
45f9268acaa13d0adc80944c86e0b02c13c3eab0 | 670 | hpp | C++ | pomdog/experimental/texture_packer/texture_atlas_loader.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 163 | 2015-03-16T08:42:32.000Z | 2022-01-11T21:40:22.000Z | pomdog/experimental/texture_packer/texture_atlas_loader.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 17 | 2015-04-12T20:57:50.000Z | 2020-10-10T10:51:45.000Z | pomdog/experimental/texture_packer/texture_atlas_loader.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 21 | 2015-04-12T20:45:11.000Z | 2022-01-14T20:50:16.000Z | // Copyright mogemimi. Distributed under the MIT license.
#pragma once
#include "pomdog/basic/conditional_compilation.hpp"
#include "pomdog/basic/export.hpp"
#include "pomdog/experimental/texture_packer/texture_atlas.hpp"
#include "pomdog/utility/errors.hpp"
POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_BEGIN
#i... | 26.8 | 73 | 0.804478 | mogemimi |
45fae9f8f8042c820e6801e3b736f8d87e2a1794 | 14,478 | cpp | C++ | Ryukuo Suspender/mainwindow.cpp | Iciclez/ryukuo-suspender | cdcc6beede79a23e5da71813b78c41cde718453a | [
"MIT"
] | null | null | null | Ryukuo Suspender/mainwindow.cpp | Iciclez/ryukuo-suspender | cdcc6beede79a23e5da71813b78c41cde718453a | [
"MIT"
] | null | null | null | Ryukuo Suspender/mainwindow.cpp | Iciclez/ryukuo-suspender | cdcc6beede79a23e5da71813b78c41cde718453a | [
"MIT"
] | null | null | null | #include "mainwindow.hpp"
#include "process.hpp"
#include "messagebox.hpp"
#include "inject.hpp"
#include <sstream>
#include <iomanip>
#include <thread>
#include <string>
#include <algorithm>
#include <TlHelp32.h>
#include <Psapi.h>
#include <Shlobj.h>
#include <Shlwapi.h>
#include "resource.h"
logger l("ryukuo_sus... | 33.206422 | 303 | 0.691256 | Iciclez |
45fb8efd923598ac7eb9cfc58e99a533d5872c21 | 241 | hpp | C++ | rps-cpp/src/net/net_utils.hpp | Adrien-Luxey/cyclon-rps | 28667b064ce0ef418fad34b54f3e0765e83434dd | [
"Unlicense"
] | null | null | null | rps-cpp/src/net/net_utils.hpp | Adrien-Luxey/cyclon-rps | 28667b064ce0ef418fad34b54f3e0765e83434dd | [
"Unlicense"
] | null | null | null | rps-cpp/src/net/net_utils.hpp | Adrien-Luxey/cyclon-rps | 28667b064ce0ef418fad34b54f3e0765e83434dd | [
"Unlicense"
] | null | null | null | #ifndef NET_NET_UTILS_HPP
#define NET_NET_UTILS_HPP
#include <string>
//#include <sys/socket.h> // listen, bind, etc
//#include <sys/types.h> // listen, bind, etc
std::string sockaddrToIP(struct sockaddr *sa);
#endif // NET_NET_UTILS_HPP | 21.909091 | 46 | 0.73444 | Adrien-Luxey |
340621dc9ea772068487856411e3c62779a4c5be | 1,583 | cpp | C++ | compiler/luci/export/src/Optimize.cpp | chunseoklee/ONE-1 | f45d579eb78e7e3cd1d878b4137ed23ab569081b | [
"Apache-2.0"
] | null | null | null | compiler/luci/export/src/Optimize.cpp | chunseoklee/ONE-1 | f45d579eb78e7e3cd1d878b4137ed23ab569081b | [
"Apache-2.0"
] | null | null | null | compiler/luci/export/src/Optimize.cpp | chunseoklee/ONE-1 | f45d579eb78e7e3cd1d878b4137ed23ab569081b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. 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... | 29.867925 | 75 | 0.742893 | chunseoklee |
340818745a0928e1c10dd0eca91d92844b6c251a | 1,300 | hh | C++ | src/mesh_functions/CompositeVectorFunction.hh | cannsudemir/amanzi | c6cd3287bdc2c6cf26c6f8b79e34799751385f9e | [
"RSA-MD"
] | 1 | 2021-02-23T18:34:47.000Z | 2021-02-23T18:34:47.000Z | src/mesh_functions/CompositeVectorFunction.hh | cannsudemir/amanzi | c6cd3287bdc2c6cf26c6f8b79e34799751385f9e | [
"RSA-MD"
] | null | null | null | src/mesh_functions/CompositeVectorFunction.hh | cannsudemir/amanzi | c6cd3287bdc2c6cf26c6f8b79e34799751385f9e | [
"RSA-MD"
] | null | null | null | /* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
/* -------------------------------------------------------------------------
ATS
License: see $AMANZI_DIR/COPYRIGHT
Author Ethan Coon
Function applied to a mesh component, along with meta-data to store the values
of this function in a Composte... | 27.083333 | 88 | 0.662308 | cannsudemir |
340b320df8268a104d5c552069ce9b15bece2906 | 5,171 | cpp | C++ | src/rectify/main.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | src/rectify/main.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | src/rectify/main.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | #include "MainWindow.h"
#include <QApplication>
#include <opencv2/core/utility.hpp>
#include <opencv2/photo.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <iostream>
using namespace cv;
using namespace std;
#define ER... | 24.051163 | 101 | 0.545929 | Franklin-Qi |
340b4165665fd10a93b5f8d16d0dc36c0148b029 | 643 | cpp | C++ | examples/text.cpp | CourrierGui/plotcpp | 00b5a94e4c9804cbc441a0bcede67f70cef08a0c | [
"MIT"
] | null | null | null | examples/text.cpp | CourrierGui/plotcpp | 00b5a94e4c9804cbc441a0bcede67f70cef08a0c | [
"MIT"
] | null | null | null | examples/text.cpp | CourrierGui/plotcpp | 00b5a94e4c9804cbc441a0bcede67f70cef08a0c | [
"MIT"
] | null | null | null | #include <figure.hpp>
int main(int argc, char* argv[]) {
pcpp::Figure f{argc, argv, 1, 1};
auto text = f.text(1.5, 1.5, "Hello World!");
text.font("Source Code Pro", 15);
text.rotate(25);
text.align(pcpp::Align::bottom|pcpp::Align::center);
text.color(0, 0, 0);
auto rect = f.rect({0.0, 0.0}, {1.0, 1.0... | 22.964286 | 70 | 0.553655 | CourrierGui |
340da0ba0237030daf6163d0fc2b8587b6e2cf32 | 3,003 | cpp | C++ | src/frameworks/wilhelm/src/objects/COutputMix.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | src/frameworks/wilhelm/src/objects/COutputMix.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/wilhelm/src/objects/COutputMix.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /*
* Copyright (C) 2010 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 app... | 32.641304 | 100 | 0.703297 | dAck2cC2 |
3410f6dde3d540ad8357b87db5a7d6aaedf7fb54 | 2,941 | cpp | C++ | src/test/add/add.cpp | BigRedEye/cacos | da80d67375054260eac7518e3b53163e399461fe | [
"MIT"
] | 3 | 2019-02-22T18:25:12.000Z | 2019-02-27T13:32:00.000Z | src/test/add/add.cpp | BigRedEye/cacos | da80d67375054260eac7518e3b53163e399461fe | [
"MIT"
] | null | null | null | src/test/add/add.cpp | BigRedEye/cacos | da80d67375054260eac7518e3b53163e399461fe | [
"MIT"
] | null | null | null | #include "cacos/test/add/add.h"
#include "cacos/config/config.h"
#include "cacos/test/suite/suite.h"
#include <cpparg/cpparg.h>
namespace cacos::test {
template<test::Type type>
int add_impl(int argc, const char* argv[]) {
std::string descr;
if constexpr (type == Type::diff) {
descr = "diff";
} ... | 23.910569 | 93 | 0.537232 | BigRedEye |
341a608b07b32e87369af0fadb78dc6c32fef860 | 1,081 | cpp | C++ | Tree Data Structure/Tree search/Least Common Ancestor.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 7 | 2019-06-29T08:57:07.000Z | 2021-02-13T06:43:40.000Z | Tree Data Structure/Tree search/Least Common Ancestor.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | null | null | null | Tree Data Structure/Tree search/Least Common Ancestor.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 3 | 2020-06-17T04:26:26.000Z | 2021-02-12T04:51:40.000Z | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
TreeNode* find_source(TreeNode *root, int req ){
queue<TreeNode*> q;
q.push(root);
while( !q.empty() ){
TreeNo... | 27.717949 | 59 | 0.561517 | cenation092 |
34215feb7a749aef1856bf843972fc4032c4647e | 7,367 | hpp | C++ | Sisyphe/cppbase/src/interpreter/cppVariableInterpreterAccess.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/interpreter/cppVariableInterpreterAccess.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/interpreter/cppVariableInterpreterAccess.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | /*
* cppVariableInterpreterAccess.hpp
*
*
* @date 14-07-2020
* @author Teddy DIDE
* @version 1.00
* cppBase generated by gensources.
*/
#ifndef _CPPVARIABLE_INTERPRETER_ACCESS_HPP_
#define _CPPVARIABLE_INTERPRETER_ACCESS_HPP_
#include "config.hpp"
#include "Macros.hpp"
#include "String.hpp"
#include "cppBas... | 50.458904 | 179 | 0.793946 | tedi21 |
3422ada7a8e90c1eaed63baba67ac0d46fd0e0e1 | 28,121 | cpp | C++ | modules/objfmts/mach/MachOutput.cpp | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | 1 | 2016-06-03T20:02:45.000Z | 2016-06-03T20:02:45.000Z | modules/objfmts/mach/MachOutput.cpp | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | null | null | null | modules/objfmts/mach/MachOutput.cpp | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | null | null | null | //
// Mach-O object format writer
//
// Copyright (C) 2002-2012 Peter Johnson
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, th... | 31.00441 | 80 | 0.601757 | path64 |
34299f0dda0176a20c8e7aed824ee1aee6735e68 | 1,551 | hpp | C++ | LinkedList.hpp | hyzale/Process-Scheduling | ed19c8a4dde0683db058937d37be4cfb7fb17120 | [
"Unlicense"
] | null | null | null | LinkedList.hpp | hyzale/Process-Scheduling | ed19c8a4dde0683db058937d37be4cfb7fb17120 | [
"Unlicense"
] | null | null | null | LinkedList.hpp | hyzale/Process-Scheduling | ed19c8a4dde0683db058937d37be4cfb7fb17120 | [
"Unlicense"
] | null | null | null | #ifndef LINKED_LIST
#define LINKED_LIST
#include "List.hpp"
#include "LinkedListNode.hpp"
template <class item_t>
class LinkedList : public List<item_t>
{
protected:
LinkedListNode<item_t>* head;
LinkedListNode<item_t>* tail;
int size;
public:
LinkedList();
virtual ~LinkedList();
//Pushes ... | 26.288136 | 64 | 0.705351 | hyzale |
343444f1836813c532c71d9fb25220abba65b864 | 1,849 | cpp | C++ | apps/myApps/ScreenMeasure/src/ofApp.cpp | nmbakfm/ScreenMeasure | f11cfa50370034fb9e721ee0ed74b19e73972753 | [
"MIT"
] | null | null | null | apps/myApps/ScreenMeasure/src/ofApp.cpp | nmbakfm/ScreenMeasure | f11cfa50370034fb9e721ee0ed74b19e73972753 | [
"MIT"
] | null | null | null | apps/myApps/ScreenMeasure/src/ofApp.cpp | nmbakfm/ScreenMeasure | f11cfa50370034fb9e721ee0ed74b19e73972753 | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
startX = 0;
endX = 0;
ofShowCursor();
ofBackground(0);
font.loadFont("Helvetica Neue Bold", 50);
}
//--------------------------------------------------------------
void ofApp::up... | 24.328947 | 126 | 0.348837 | nmbakfm |
3436c818d71ea67bc72dfb85a470db34d025c785 | 278 | cpp | C++ | src/J/J993.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/J/J993.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/J/J993.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cmath>
#define ll long long
int main(){
ll a,f=2;
ll sum=0;
scanf("%lld",&a);
while(a!=1){
while(a/f*f==a){
sum+=f;
a=a/f;
} if(f%2==1) f++;
f++;
} printf("%d\n",sum);
return 0;
}
| 16.352941 | 25 | 0.417266 | wlhcode |
3442eb14cdb83119792e40d05f0c677442de3def | 1,530 | cpp | C++ | src/prod/src/Reliability/LoadBalancing/IPlacementAndLoadBalancing.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 1 | 2018-03-15T02:09:21.000Z | 2018-03-15T02:09:21.000Z | src/prod/src/Reliability/LoadBalancing/IPlacementAndLoadBalancing.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | src/prod/src/Reliability/LoadBalancing/IPlacementAndLoadBalancing.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------
// 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"
#include "... | 34.772727 | 98 | 0.681046 | AnthonyM |
4517d386b5c48e7dbbc3bfa8c75a013186859300 | 11,653 | cpp | C++ | Target/BeagleBoneBlack/CCore/src/dev/DevHDMI.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | 8 | 2017-12-21T07:00:16.000Z | 2020-04-02T09:05:55.000Z | Target/BeagleBoneBlack/CCore/src/dev/DevHDMI.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | Target/BeagleBoneBlack/CCore/src/dev/DevHDMI.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | 1 | 2020-03-30T09:54:18.000Z | 2020-03-30T09:54:18.000Z | /* DevHDMI.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 2.00
//
// Tag: Target/BeagleBoneBlack
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
... | 21.034296 | 102 | 0.65614 | SergeyStrukov |
451c0f494193e5eabd9489d15cd023fec3fbf480 | 1,307 | cpp | C++ | client/connectdialog.cpp | manpat/netsynth | 17b46aa373ed778a1e991aab10d221c8d2828b5b | [
"MIT",
"Unlicense"
] | 2 | 2016-09-06T12:03:11.000Z | 2016-09-06T17:25:58.000Z | client/connectdialog.cpp | manpat/netsynth | 17b46aa373ed778a1e991aab10d221c8d2828b5b | [
"MIT",
"Unlicense"
] | null | null | null | client/connectdialog.cpp | manpat/netsynth | 17b46aa373ed778a1e991aab10d221c8d2828b5b | [
"MIT",
"Unlicense"
] | null | null | null | #include "moc_connectdialog.h"
#include <QtGui/QLabel>
#include <QtGui/QToolTip>
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
#include <QtGui/QHBoxLayout>
#include <QtGui/QRegExpValidator>
#include <QtCore/QDebug>
#include <QtCore/QRegExp>
#include "moc_clientnetwork.h"
ConnectDialog::ConnectDialog(QWidg... | 25.134615 | 93 | 0.706963 | manpat |
45345a5cbe729643443ce4409f150f8026e4c0e7 | 284 | cpp | C++ | Src/Lesson3/Casting/MemoryManagement_SmartPointers/Resource.cpp | arekbee/CppWorkshop | 301e620ff00613ae52af1da51816130623711f95 | [
"MIT"
] | null | null | null | Src/Lesson3/Casting/MemoryManagement_SmartPointers/Resource.cpp | arekbee/CppWorkshop | 301e620ff00613ae52af1da51816130623711f95 | [
"MIT"
] | 1 | 2016-01-06T19:19:08.000Z | 2016-01-18T17:21:46.000Z | Src/Lesson3/Casting/MemoryManagement_SmartPointers/Resource.cpp | arekbee/CppWorkshop | 301e620ff00613ae52af1da51816130623711f95 | [
"MIT"
] | null | null | null | #include <string>
#include "Resource.h"
#include <iostream>
using namespace std;
Resource::Resource(std::string name): resourceName(name)
{
cout << "constructing Resource: " << GetName() << endl;
}
Resource::~Resource()
{
cout << "destructing Resource: " << GetName() << endl;
} | 18.933333 | 56 | 0.672535 | arekbee |
453b4d331c3220f6d3df09696534cf8467393958 | 3,068 | cpp | C++ | src/jmespath.cpp | sotex/jmespath.cpp | 836ce82ccb1c93c054708bbf1a8a61da2aabeba1 | [
"MIT"
] | 12 | 2020-01-17T06:33:20.000Z | 2021-11-23T01:00:21.000Z | src/jmespath.cpp | sotex/jmespath.cpp | 836ce82ccb1c93c054708bbf1a8a61da2aabeba1 | [
"MIT"
] | 3 | 2020-04-07T16:18:47.000Z | 2022-02-26T08:57:58.000Z | src/jmespath.cpp | sotex/jmespath.cpp | 836ce82ccb1c93c054708bbf1a8a61da2aabeba1 | [
"MIT"
] | 1 | 2020-04-15T06:25:22.000Z | 2020-04-15T06:25:22.000Z | /****************************************************************************
**
** Author: Róbert Márki <gsmiko@gmail.com>
** Copyright (c) 2016 Róbert Márki
**
** This file is part of the jmespath.cpp project which is distributed under
** the MIT License (MIT).
**
** Permission is hereby granted, free of charge, to a... | 40.368421 | 79 | 0.687093 | sotex |
453bd69d2685c4b9cb4a3a57e8432185ac7c4fc7 | 2,200 | cpp | C++ | src/1_feature_extraction.cpp | swook/SfM | a99ab9f8daaa74d668510488b3920f68a6a02810 | [
"MIT"
] | 18 | 2016-05-15T04:17:53.000Z | 2021-12-08T14:50:21.000Z | src/1_feature_extraction.cpp | swook/SfM | a99ab9f8daaa74d668510488b3920f68a6a02810 | [
"MIT"
] | null | null | null | src/1_feature_extraction.cpp | swook/SfM | a99ab9f8daaa74d668510488b3920f68a6a02810 | [
"MIT"
] | 9 | 2015-11-19T15:43:21.000Z | 2021-06-24T12:37:35.000Z | #include <algorithm>
#include "opencv2/opencv.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/xfeatures2d/nonfree.hpp"
using namespace cv;
using namespace xfeatures2d;
#include "Pipeline.hpp"
#include "util.hpp"
void Pipeline::extract_features(const Images& images,CamFrames& cam_Frames,DescriptorsVec& descr... | 30.136986 | 107 | 0.697727 | swook |
453be59e73eac706890c89b654a18c91ac845c66 | 307 | cpp | C++ | csgo/hooking/hooks/LockCursor.cpp | TsunamiNori/DEADCELL-CSGO | cfdd4ad3b23360b93466908025a630bc0ffc67e4 | [
"MIT"
] | 506 | 2019-03-16T08:34:47.000Z | 2022-03-29T14:08:59.000Z | csgo/hooking/hooks/LockCursor.cpp | TsunamiNori/DEADCELL-CSGO | cfdd4ad3b23360b93466908025a630bc0ffc67e4 | [
"MIT"
] | 124 | 2019-03-17T02:54:57.000Z | 2021-03-29T01:51:05.000Z | csgo/hooking/hooks/LockCursor.cpp | TsunamiNori/DEADCELL-CSGO | cfdd4ad3b23360b93466908025a630bc0ffc67e4 | [
"MIT"
] | 219 | 2019-03-16T21:39:01.000Z | 2022-03-30T08:59:24.000Z | #include "../../inc.h"
void __stdcall hook::LockCursor( ) {
if( g_renderer.get_instance( ) ) {
if( g_renderer.get_instance( )->IsEnabled( ) ) {
g_csgo.m_surface->unlock_cursor( );
return;
}
}
g_hooks.m_surface.get_old_method< fn::LockCursor_t >( hook::idx::LOCK_CURSOR )( g_csgo.m_surface );
} | 27.909091 | 100 | 0.67101 | TsunamiNori |
453eb1dfc81fa9c9196c6823d294604f1c4dcdd1 | 1,448 | cpp | C++ | google/traverse.cpp | lordstone/shua_codes | cf4e0d5488ccd8e46e0cfe0fabaaadf7894bf8f3 | [
"MIT"
] | 1 | 2016-09-14T00:54:52.000Z | 2016-09-14T00:54:52.000Z | google/traverse.cpp | lordstone/shua_codes | cf4e0d5488ccd8e46e0cfe0fabaaadf7894bf8f3 | [
"MIT"
] | null | null | null | google/traverse.cpp | lordstone/shua_codes | cf4e0d5488ccd8e46e0cfe0fabaaadf7894bf8f3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_set>
using namespace std;
unordered_set<string> ext;
long long countPath(string f, vector<string>& dir){
long long count = 0;
count += static_cast<int>(f.length());
for (auto item : dir){
count += static_cast<int>(item.length());
}
return count + 1;
}
... | 19.052632 | 52 | 0.554558 | lordstone |
4543984af805b1a27beff9137da8b476f69310b5 | 1,876 | cpp | C++ | Infrastructure/Log.cpp | TommyRadan/AlphaEngine | 5d248e6e980eb0e4759dc698bdc1eece551b9145 | [
"MIT"
] | 1 | 2019-07-13T10:39:20.000Z | 2019-07-13T10:39:20.000Z | Infrastructure/Log.cpp | TommyRadan/AlphaEngine | 5d248e6e980eb0e4759dc698bdc1eece551b9145 | [
"MIT"
] | 1 | 2017-04-05T00:41:36.000Z | 2017-04-05T00:41:36.000Z | Infrastructure/Log.cpp | TommyRadan/AlphaEngine | 5d248e6e980eb0e4759dc698bdc1eece551b9145 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2015-2019 Tomislav Radanovic
*
* 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, m... | 36.076923 | 92 | 0.739872 | TommyRadan |
4544434cb613a2ac9219cfcfa98db0867ba16abd | 285 | cpp | C++ | Three_dividers/Three_dividers.cpp | TotalChest/Small-programs | 561dc36ecffd57378f7384ada947e55e4d38252d | [
"CNRI-Python"
] | null | null | null | Three_dividers/Three_dividers.cpp | TotalChest/Small-programs | 561dc36ecffd57378f7384ada947e55e4d38252d | [
"CNRI-Python"
] | null | null | null | Three_dividers/Three_dividers.cpp | TotalChest/Small-programs | 561dc36ecffd57378f7384ada947e55e4d38252d | [
"CNRI-Python"
] | null | null | null | #include <iostream>
#include <cmath>
#define MIN(x,y) ((x)<(y)?(x):(y))
int main(void){
int n, count = 0;
std::cin >> n;
for(int i = ceil((float)n/3); i < n-1; i++)
for(int j = ceil( ((float)(n-i)) / 2); j <= MIN(i,n-i-1); j++)
count++;
std::cout << count;
return 0;
}
| 15 | 64 | 0.505263 | TotalChest |
455295e7bd801ec0f2d0aa39f178c536346b2aed | 151 | cpp | C++ | Hurikan/src/Hurikan/Scene/Entity.cpp | RikalSiHurikan/Hurikan | c871a7b926214f7f8ef6b5afd2daf85725af3e22 | [
"Apache-2.0"
] | 1 | 2022-03-21T13:30:53.000Z | 2022-03-21T13:30:53.000Z | Hurikan/src/Hurikan/Scene/Entity.cpp | RikalSiHurikan/Hurikan | c871a7b926214f7f8ef6b5afd2daf85725af3e22 | [
"Apache-2.0"
] | 2 | 2021-09-23T21:26:26.000Z | 2022-01-04T12:06:50.000Z | Hurikan/src/Hurikan/Scene/Entity.cpp | RikalSiHurikan/Hurikan | c871a7b926214f7f8ef6b5afd2daf85725af3e22 | [
"Apache-2.0"
] | null | null | null | #include "hupch.h"
#include "Entity.h"
namespace Hurikan
{
Entity::Entity(entt::entity id, Scene* scene) : m_EntityHandle(id), m_Scene(scene)
{
}
} | 16.777778 | 83 | 0.695364 | RikalSiHurikan |
45590c41dbb43bccdf845619f0fde5667e31fa96 | 1,296 | cc | C++ | app/g4hpc/src/DetectorConstruction.cc | celeritas-project/acceleritas | 50c37807fed84855fc32ee0a84f13007cd62c245 | [
"Apache-2.0",
"MIT"
] | null | null | null | app/g4hpc/src/DetectorConstruction.cc | celeritas-project/acceleritas | 50c37807fed84855fc32ee0a84f13007cd62c245 | [
"Apache-2.0",
"MIT"
] | null | null | null | app/g4hpc/src/DetectorConstruction.cc | celeritas-project/acceleritas | 50c37807fed84855fc32ee0a84f13007cd62c245 | [
"Apache-2.0",
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 27.574468 | 79 | 0.58179 | celeritas-project |
4559b44271edaf331d21e6f98503788182e2c8ab | 11,773 | cpp | C++ | src/main.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | 2 | 2021-11-09T11:30:02.000Z | 2022-01-13T17:47:49.000Z | src/main.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | null | null | null | src/main.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | null | null | null | #include <mpi.h>
#include <iostream>
#include <fstream>
#include <assert.h>
#include <vector>
#include <algorithm>
#include <chrono>
#include "snake_computation.hpp"
const int debug_level = 0;
#ifndef NDEBUG
#define DEBUG(level, x) \
if (debug_level >= level) \
{ \
s... | 26.279018 | 147 | 0.564087 | tehwalris |
455f99a7b36b492cf55725aba915983ed11ce94e | 1,002 | cpp | C++ | oop-rubook/cp11/11-8.cpp | lymven-io/OOP | dd4f8487c15b4b58c7d24b0f7c0f0ad90b9ee54a | [
"MIT"
] | null | null | null | oop-rubook/cp11/11-8.cpp | lymven-io/OOP | dd4f8487c15b4b58c7d24b0f7c0f0ad90b9ee54a | [
"MIT"
] | null | null | null | oop-rubook/cp11/11-8.cpp | lymven-io/OOP | dd4f8487c15b4b58c7d24b0f7c0f0ad90b9ee54a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
using namespace std;
class A {
int a;
public:
void setA(int i) {
a = i;
}
int getA() {
return a;
}
};
template <class T>
class B: public A {
T b;
public:
void setB(int j, T k) {
b = k; ... | 16.42623 | 63 | 0.426148 | lymven-io |
456f878c29bfca91e8dd70b92208944b64dd55af | 66,984 | cpp | C++ | packages/core/RecordObject.cpp | ICESat2-SlideRule/sliderule | 90776d7e174e151c5806077001f5f9c21ef81f48 | [
"BSD-3-Clause"
] | 2 | 2021-05-06T19:56:26.000Z | 2021-05-27T16:41:56.000Z | packages/core/RecordObject.cpp | ICESat2-SlideRule/sliderule | 90776d7e174e151c5806077001f5f9c21ef81f48 | [
"BSD-3-Clause"
] | 54 | 2021-03-30T18:45:12.000Z | 2022-03-17T20:13:04.000Z | packages/core/RecordObject.cpp | ICESat2-SlideRule/sliderule | 90776d7e174e151c5806077001f5f9c21ef81f48 | [
"BSD-3-Clause"
] | 1 | 2021-05-14T16:34:08.000Z | 2021-05-14T16:34:08.000Z | /*
* Copyright (c) 2021, University of Washington
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this li... | 37.801354 | 197 | 0.496208 | ICESat2-SlideRule |
4571782470404067036049f9b9961a3041da08d0 | 1,529 | cpp | C++ | tests/unit/appc/schema/test_labels.cpp | cdaylward/libappc | 4f7316b584d92a110198a3f1573c170e5492194c | [
"Apache-2.0"
] | 63 | 2015-01-20T18:35:27.000Z | 2021-11-16T10:53:40.000Z | tests/unit/appc/schema/test_labels.cpp | Manu343726/libappc | 8d181ef4ee80c8f1bcbf6ca04cf66e04e5e5bc8a | [
"Apache-2.0"
] | 5 | 2015-01-20T17:28:54.000Z | 2015-02-09T17:36:54.000Z | tests/unit/appc/schema/test_labels.cpp | cdaylward/libappc | 4f7316b584d92a110198a3f1573c170e5492194c | [
"Apache-2.0"
] | 12 | 2015-01-26T04:37:08.000Z | 2020-11-14T02:19:13.000Z | #include "gtest/gtest.h"
#include "appc/schema/labels.h"
using namespace appc::schema;
TEST(Label, from_json) {
const Json json = { {"name", "name.given"}, {"value", "Herbert"} };
std::shared_ptr<Label> result = Label::from_json(json);
Label& label = *result;
ASSERT_EQ(std::string{"name.given"}, label.name)... | 26.362069 | 78 | 0.593852 | cdaylward |
457a31b13b79fb6035a014f8cb08bbaf782ee2f4 | 787 | cpp | C++ | gui/qt-gui/processor/facedetection.cpp | yleniaBattistini/ObjectTracker | 9f408d2c8e55209e80592ab17e6cddfddb38f5c4 | [
"MIT"
] | null | null | null | gui/qt-gui/processor/facedetection.cpp | yleniaBattistini/ObjectTracker | 9f408d2c8e55209e80592ab17e6cddfddb38f5c4 | [
"MIT"
] | null | null | null | gui/qt-gui/processor/facedetection.cpp | yleniaBattistini/ObjectTracker | 9f408d2c8e55209e80592ab17e6cddfddb38f5c4 | [
"MIT"
] | null | null | null | #include "facedetection.h"
#include<iostream>
#include<stdlib.h>
#include<vector>
#include<QtCore/QDir>
#include <QDir>
#include <QProcessEnvironment>
using namespace cv;
using namespace std;
FaceDetection::FaceDetection()
{
QDir dir = QDir(QProcessEnvironment::systemEnvironment().value("OPENCV_DIR"));
dir.c... | 24.59375 | 83 | 0.698856 | yleniaBattistini |
457ad0b4da3e0c0a4a65bb434626f3950c1f0146 | 9,264 | cpp | C++ | velox/exec/Merge.cpp | laithsakka/velox | 41c01f63276205f6afd7e1db49c9d09430dcfbcc | [
"ECL-2.0",
"Apache-2.0"
] | 672 | 2021-09-22T16:45:58.000Z | 2022-03-31T13:42:31.000Z | velox/exec/Merge.cpp | laithsakka/velox | 41c01f63276205f6afd7e1db49c9d09430dcfbcc | [
"ECL-2.0",
"Apache-2.0"
] | 986 | 2021-09-22T17:02:52.000Z | 2022-03-31T23:57:25.000Z | velox/exec/Merge.cpp | laithsakka/velox | 41c01f63276205f6afd7e1db49c9d09430dcfbcc | [
"ECL-2.0",
"Apache-2.0"
] | 178 | 2021-09-22T17:27:47.000Z | 2022-03-31T03:18:37.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 28.681115 | 79 | 0.649503 | laithsakka |
457d0ce8c2651c9d619cf37b72724a4d64c8c7c3 | 2,000 | cpp | C++ | c++/fila/fila.cpp | Fernando3917/c-- | 0429ca27b8ba5cf3c7d18ac4629bd2f3906abe45 | [
"MIT"
] | null | null | null | c++/fila/fila.cpp | Fernando3917/c-- | 0429ca27b8ba5cf3c7d18ac4629bd2f3906abe45 | [
"MIT"
] | null | null | null | c++/fila/fila.cpp | Fernando3917/c-- | 0429ca27b8ba5cf3c7d18ac4629bd2f3906abe45 | [
"MIT"
] | null | null | null | //exercicio do tipo fila
#include <iostream>
#include <conio.h>
using namespace std;
const int MAXTAM=3;
//------------ ---- -- -- -- Classe Fila com vetor
class TipoFila{
private:
string Item[MAXTAM];
int frente, tras, Quantos;
public:
TipoFila ();
int vazia ();
int cheia ();
int tamanho();
void... | 15.748031 | 81 | 0.472 | Fernando3917 |
457ea31463d54c2ddf605c53be75ce17840074e2 | 677 | cpp | C++ | Cpp/misc/named/SnakesAndLadders.cpp | MarioJim/CompetitiveProgramming | ade07551e37e32be3f6511bfe68ed633701c3a4d | [
"MIT"
] | 1 | 2019-01-28T15:12:20.000Z | 2019-01-28T15:12:20.000Z | Cpp/misc/named/SnakesAndLadders.cpp | MarioJim/ClubDeProgra | ade07551e37e32be3f6511bfe68ed633701c3a4d | [
"MIT"
] | null | null | null | Cpp/misc/named/SnakesAndLadders.cpp | MarioJim/ClubDeProgra | ade07551e37e32be3f6511bfe68ed633701c3a4d | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
int last = 100;
int* arr;
unordered_map<int, int> from_to = {{1, 18}, {7, 18}, {24, 2}, {22, 20}, {13, 6}};
int main() {
arr = new int[last + 1];
fill(arr, arr+last+1, INT32_MAX);
arr[0] = 0;
for (int i = 1; i <= last... | 24.178571 | 81 | 0.440177 | MarioJim |
458945bba18370ed4f362a8221e9903beae21b8d | 374 | cpp | C++ | Commands/CommandComment.cpp | yehonatansofri/SonySim | 93c98c4bebbbb6f0616c8be7230407ad3cec2c15 | [
"OML"
] | null | null | null | Commands/CommandComment.cpp | yehonatansofri/SonySim | 93c98c4bebbbb6f0616c8be7230407ad3cec2c15 | [
"OML"
] | null | null | null | Commands/CommandComment.cpp | yehonatansofri/SonySim | 93c98c4bebbbb6f0616c8be7230407ad3cec2c15 | [
"OML"
] | null | null | null | /**
* this class is a dummy command - just ignores the line.
*
* @authoer Rony
* @date 12/28/19
*/
#include "../DataManagement/GeneralData.h"
#include "../DataManagement/GlobalVars.h"
#include "CommandComment.h"
/**
* Comment Command
*/
int CommandComment ::execute(int index) {
while (tokens[index] != "\n... | 15.583333 | 57 | 0.614973 | yehonatansofri |
458973ffdcf7a721794483ac2cc3393d78c70167 | 5,096 | cpp | C++ | HMIN323/G-Map/src/gmap.cpp | Eikins/M2-Imagina | 6e37ef755bd5312fc808ec599b3bd76084d35568 | [
"MIT"
] | null | null | null | HMIN323/G-Map/src/gmap.cpp | Eikins/M2-Imagina | 6e37ef755bd5312fc808ec599b3bd76084d35568 | [
"MIT"
] | null | null | null | HMIN323/G-Map/src/gmap.cpp | Eikins/M2-Imagina | 6e37ef755bd5312fc808ec599b3bd76084d35568 | [
"MIT"
] | null | null | null | #include "gmap.hpp"
/*------------------------------------------------------------------------*/
// Return the application of the alpha_deg on dart
GMap::id_t GMap::alpha(degree_t degree, id_t dart) const
{
return alphas.at(dart)[degree];
}
// Return the application of a composition of alphas on dart
GMap::id_t G... | 25.48 | 80 | 0.572606 | Eikins |
45909071fca572a5a32623f1d9c0634d56f43913 | 5,157 | cpp | C++ | app/QVrViewer.cpp | josokw/YAAV-simulation | 4647b363a96b2564bdae725cb1b0a84188627cbc | [
"MIT"
] | null | null | null | app/QVrViewer.cpp | josokw/YAAV-simulation | 4647b363a96b2564bdae725cb1b0a84188627cbc | [
"MIT"
] | null | null | null | app/QVrViewer.cpp | josokw/YAAV-simulation | 4647b363a96b2564bdae725cb1b0a84188627cbc | [
"MIT"
] | null | null | null | #include "QVrViewer.h"
#include "Log.h"
#include "VirtualReality.h"
#include <QMouseEvent>
#include <QTimer>
#include <QWheelEvent>
QVrViewer::QVrViewer(VirtualReality &vr, QWidget *parent)
: QGLWidget(parent)
, isPerpendicular(false)
, timer(new QTimer(this))
, vr(&vr)
{
SET_FNAME("QVrView... | 24.098131 | 63 | 0.603258 | josokw |
4592f20da2e4dedf0dd178514dd729093f78e042 | 3,493 | cpp | C++ | QtnProperty/PropertyQSizeF.cpp | SolarCpp/QtnProperty | 6711a7436865f14d3a4398f0745de9f0de32c7b7 | [
"Apache-2.0"
] | null | null | null | QtnProperty/PropertyQSizeF.cpp | SolarCpp/QtnProperty | 6711a7436865f14d3a4398f0745de9f0de32c7b7 | [
"Apache-2.0"
] | null | null | null | QtnProperty/PropertyQSizeF.cpp | SolarCpp/QtnProperty | 6711a7436865f14d3a4398f0745de9f0de32c7b7 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
Copyright 2015-2017 Alexandra Cherdantseva <neluhus.vagus@gmail.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
... | 28.631148 | 80 | 0.727169 | SolarCpp |
45936c36ab935cc0403c46653c44e44c04efc689 | 1,159 | cpp | C++ | codeforce/547/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | codeforce/547/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | codeforce/547/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | /**
It takes a great deal of bravery to stand up to our enemies, but just as much to stand up to our friends.
*/
#include <bits/stdc++.h>
#define forn(i, l, r) for(int i=l;i<=r;++i)
#define all(v) v.begin(),v.end()
#define pb push_back
#define nd second
#define st first
#define sz(x) (int)x.size()
#define UNIQ... | 21.072727 | 113 | 0.611734 | heiseish |
45958ae55c3a49dc043c919df182b1bc031191ed | 196 | cpp | C++ | project/Source/Zero/BuffSystem/Buff.cpp | ZhangShiQi/Zero | 598b9ec6b1b5ed98bbd366bb3ec9a4e0649db931 | [
"MIT"
] | null | null | null | project/Source/Zero/BuffSystem/Buff.cpp | ZhangShiQi/Zero | 598b9ec6b1b5ed98bbd366bb3ec9a4e0649db931 | [
"MIT"
] | null | null | null | project/Source/Zero/BuffSystem/Buff.cpp | ZhangShiQi/Zero | 598b9ec6b1b5ed98bbd366bb3ec9a4e0649db931 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Buff.h"
void UBuff::OnInit()
{
}
void UBuff::OnUpdate(float delta)
{
}
void UBuff::OnExit()
{
}
| 8.909091 | 78 | 0.673469 | ZhangShiQi |
459b80a7ec56bc20cb1ee1d82a57f45915c468fa | 530,337 | hpp | C++ | IGC/Compiler/Builtins/PreCompiledFuncLibrary.hpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 440 | 2018-01-30T00:43:22.000Z | 2022-03-24T17:28:37.000Z | IGC/Compiler/Builtins/PreCompiledFuncLibrary.hpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 225 | 2018-02-02T03:10:47.000Z | 2022-03-31T10:50:37.000Z | IGC/Compiler/Builtins/PreCompiledFuncLibrary.hpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 138 | 2018-01-30T08:15:11.000Z | 2022-03-22T14:16:39.000Z | /*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
namespace IGC
{
const unsigned char preCompiledFunctionLibrary [] =
{
0x42, 0x... | 75.859963 | 80 | 0.6315 | kurapov-peter |
45a4abd823b9804ef16b57d28c3e45ba07aae67b | 52 | cxx | C++ | math-lib/src/math/PeakFinder.cxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | math-lib/src/math/PeakFinder.cxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | 8 | 2019-03-06T08:43:29.000Z | 2019-05-07T11:28:08.000Z | math-lib/src/math/PeakFinder.cxx | andrey-nakin/gneis-daq | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | #include "math/PeakFinder.hxx"
namespace math {
}
| 8.666667 | 30 | 0.711538 | andrey-nakin |
45a69168693612a64fefef9326003238eb785f57 | 212 | cpp | C++ | options.cpp | debbech-esprit/b_fast | 8497621ae2ff2fee7dd6d305a16cf1c123c9b074 | [
"Unlicense"
] | 1 | 2020-10-23T22:03:29.000Z | 2020-10-23T22:03:29.000Z | options.cpp | debbech-esprit/b_fast | 8497621ae2ff2fee7dd6d305a16cf1c123c9b074 | [
"Unlicense"
] | null | null | null | options.cpp | debbech-esprit/b_fast | 8497621ae2ff2fee7dd6d305a16cf1c123c9b074 | [
"Unlicense"
] | null | null | null | #include "options.h"
#include "ui_options.h"
Options::Options(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Options)
{
ui->setupUi(this);
}
Options::~Options()
{
delete ui;
}
| 14.133333 | 36 | 0.59434 | debbech-esprit |
45a87151c16bbfb7ce224bc80d23bd6b5530d6fc | 2,286 | cpp | C++ | test/core/aio.cpp | nbosb/vcml | 5b946a32b024cbba8da6928971ffc2a4f9b712f1 | [
"Apache-2.0"
] | null | null | null | test/core/aio.cpp | nbosb/vcml | 5b946a32b024cbba8da6928971ffc2a4f9b712f1 | [
"Apache-2.0"
] | null | null | null | test/core/aio.cpp | nbosb/vcml | 5b946a32b024cbba8da6928971ffc2a4f9b712f1 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* *
* Copyright 2021 Jan Henrik Weinstock *
* *
... | 40.105263 | 80 | 0.435696 | nbosb |
45ab35f76c1c9d996cfd2e5b974aada2d7894782 | 1,235 | cpp | C++ | Engine/Platforms/Soft/Android/SwAndSurface.cpp | azhirnov/GraphicsGenFramework-modular | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | 12 | 2017-12-23T14:24:57.000Z | 2020-10-02T19:52:12.000Z | Engine/Platforms/Soft/Android/SwAndSurface.cpp | azhirnov/ModularGraphicsFramework | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | null | null | null | Engine/Platforms/Soft/Android/SwAndSurface.cpp | azhirnov/ModularGraphicsFramework | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) Zhirnov Andrey. For more information see 'LICENSE.txt'
#include "Core/STL/Common/Platforms.h"
#include "Core/Config/Engine.Config.h"
#if defined( GRAPHICS_API_SOFT ) and defined( PLATFORM_ANDROID )
#include "Engine/Platforms/Soft/Android/SwAndSurface.h"
#include <android/native_window.h>
namespace... | 20.245902 | 77 | 0.464777 | azhirnov |
45b1e6abcd1b6ca3635bffe0c47ecb2af3fb5ece | 3,689 | cpp | C++ | testQtrCPP/testQtrCPP.cpp | alexgubanow/LocalGlobalTest | 71c2a547fe72ae43d170e0453aebbfa7a0ac075c | [
"MIT"
] | null | null | null | testQtrCPP/testQtrCPP.cpp | alexgubanow/LocalGlobalTest | 71c2a547fe72ae43d170e0453aebbfa7a0ac075c | [
"MIT"
] | null | null | null | testQtrCPP/testQtrCPP.cpp | alexgubanow/LocalGlobalTest | 71c2a547fe72ae43d170e0453aebbfa7a0ac075c | [
"MIT"
] | null | null | null | // testQtrCPP.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <d3d11_1.h>
#include <DirectXMath.h>
#include "SimpleMath.h"
#include "Stopwatch.h"
#include <chrono> // for high_resolution_clock
#include <stdio.h>
#include <conio.h>
#include "dcm_t.... | 29.512 | 100 | 0.618054 | alexgubanow |
45b6fb30506b6026a8f422151b07ed8d9884cc68 | 303 | cpp | C++ | DynamicProgramming/LeetCode/00121.cpp | chiseungii/Algorithms | f0e7dd1c9fc29e77c97b644e602e94047b9cf887 | [
"MIT"
] | null | null | null | DynamicProgramming/LeetCode/00121.cpp | chiseungii/Algorithms | f0e7dd1c9fc29e77c97b644e602e94047b9cf887 | [
"MIT"
] | null | null | null | DynamicProgramming/LeetCode/00121.cpp | chiseungii/Algorithms | f0e7dd1c9fc29e77c97b644e602e94047b9cf887 | [
"MIT"
] | null | null | null | class Solution {
public:
int maxProfit(vector<int>& prices) {
vector<int> DP = { 0 };
int min_price = prices[0];
for (int i = 1; i < prices.size(); i++) {
DP.push_back(max(DP[i - 1], prices[i] - min_price));
if (prices[i] < min_price) min_price = prices[i];
}
return DP.back();
}
};
| 20.2 | 55 | 0.584158 | chiseungii |
45b73655792974b5f25f97a0d9dc8602a8691bcd | 1,551 | cpp | C++ | sources/CRModules/crprofiler/src/gui_nm.cpp | chic-yukim/crsf | 57eddf5e86401eecc5560f3fc2e6297f86d801fc | [
"MIT"
] | 1 | 2019-05-10T04:31:10.000Z | 2019-05-10T04:31:10.000Z | sources/CRModules/crprofiler/src/gui_nm.cpp | chic-yukim/crsf | 57eddf5e86401eecc5560f3fc2e6297f86d801fc | [
"MIT"
] | 1 | 2019-04-14T11:49:07.000Z | 2019-05-10T00:43:38.000Z | sources/CRModules/crprofiler/src/gui_nm.cpp | chic-yukim/crsf | 57eddf5e86401eecc5560f3fc2e6297f86d801fc | [
"MIT"
] | 1 | 2019-01-17T06:12:29.000Z | 2019-01-17T06:12:29.000Z | /**
* MIT License
*
* Copyright (c) 2016-2018 Center of Human-centered Interaction for Coexistence
*
* 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 with... | 37.829268 | 106 | 0.738233 | chic-yukim |
45be1361f13caee574ec598596d2dafd336c1ac3 | 5,163 | cpp | C++ | code/parser/xml_hprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | 1 | 2019-03-28T20:40:36.000Z | 2019-03-28T20:40:36.000Z | code/parser/xml_hprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | null | null | null | code/parser/xml_hprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | null | null | null | // *****************************************************************************************
//
// File description:
//
// Author: Joao Costa
// Purpose: Implementation of a generic XML hierarchical processor
//
// *****************************************************************************************
// ***********... | 20.247059 | 128 | 0.552005 | jmpcosta |
45c1c96b20b4292b334a3989b75c250cfbd49361 | 25 | cpp | C++ | demo/contact/contactdata.cpp | Qters/QrWidgets | f408ce5841a258c742dd0609ff19c9a65f258a70 | [
"Apache-2.0"
] | 2 | 2016-08-15T12:43:14.000Z | 2021-03-10T11:36:16.000Z | demo/contact/contactdata.cpp | Qters/QrWidgets | f408ce5841a258c742dd0609ff19c9a65f258a70 | [
"Apache-2.0"
] | 2 | 2016-10-21T08:12:43.000Z | 2020-11-10T09:41:45.000Z | demo/contact/contactdata.cpp | Qters/QrWidgets | f408ce5841a258c742dd0609ff19c9a65f258a70 | [
"Apache-2.0"
] | 1 | 2017-10-11T16:20:23.000Z | 2017-10-11T16:20:23.000Z | #include "contactdata.h"
| 12.5 | 24 | 0.76 | Qters |
45c6422fef863882c222ec701e43a6ceb69a5498 | 2,689 | cpp | C++ | python/main.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | python/main.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | python/main.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | /*******************************************************************************
* python/main.cpp
*
* Copyright (c) 2019 Timo Bingmann
*
* All rights reserved. Published under the MIT License in the LICENSE file.
******************************************************************************/
#include <pybind11/... | 32.39759 | 80 | 0.586463 | karasikov |
68f640dd1b1d2e3bb279fce0c0057177ff2ebde9 | 675 | hxx | C++ | source/code/iceshard/engine/public/ice/ecs/ecs_detail.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 39 | 2019-08-17T09:08:51.000Z | 2022-02-13T10:14:19.000Z | source/code/iceshard/engine/public/ice/ecs/ecs_detail.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 63 | 2020-05-22T16:09:30.000Z | 2022-01-21T14:24:05.000Z | source/code/iceshard/engine/public/ice/ecs/ecs_detail.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | null | null | null | #pragma once
#include <ice/stringid.hxx>
#include <ice/ecs/ecs_entity.hxx>
#include <algorithm>
namespace ice::ecs
{
namespace detail
{
template<typename T>
concept HasIdentifierMember = requires(T x) {
{ ice::clear_type_t<T>::Identifier } -> std::convertible_to<ice::StringID cons... | 24.107143 | 93 | 0.604444 | iceshard-engine |
68fb84eb39ca1140ecfcca7c160ce71394300682 | 574 | cpp | C++ | src/backends/windows/window/client_to_screen.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/windows/window/client_to_screen.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/windows/window/client_to_screen.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #include <awl/backends/windows/optional_point.hpp>
#include <awl/backends/windows/windows.hpp>
#include <awl/backends/windows/window/client_to_screen.hpp>
#include <awl/backends/windows/window/object.hpp>
awl::backends::windows::optional_point awl::backends::windows::window::client_to_screen(
awl::backends::window... | 38.266667 | 88 | 0.726481 | freundlich |
ec0407c19e9c00e3f727e8f2531121298a4610e0 | 680 | cpp | C++ | Source/agc030/agc030_a.cpp | Scosa/Competitive-Programming | 19ecf1149e0fa4eb8bafa7e0bee0651741f5e906 | [
"MIT"
] | null | null | null | Source/agc030/agc030_a.cpp | Scosa/Competitive-Programming | 19ecf1149e0fa4eb8bafa7e0bee0651741f5e906 | [
"MIT"
] | null | null | null | Source/agc030/agc030_a.cpp | Scosa/Competitive-Programming | 19ecf1149e0fa4eb8bafa7e0bee0651741f5e906 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
int a,b,c;
cin >> a >> b >> c;
if(c >= a + b + 1) cout << a + b + 1 + b << endl;
else {
cout << c + b << endl;
}
for(int i = 0; i < n; i++) cout << "ok" << endl;
if... | 20 | 53 | 0.476471 | Scosa |
ec058dc5c8eae47fd7d7671f596a24de2014cfce | 367 | cpp | C++ | secret_number_client/BotAlex.cpp | abdalmoez/cpp-secret-number | cd8c00bf0c4f1d712fa48e67c66f22e2f3372a6f | [
"MIT"
] | null | null | null | secret_number_client/BotAlex.cpp | abdalmoez/cpp-secret-number | cd8c00bf0c4f1d712fa48e67c66f22e2f3372a6f | [
"MIT"
] | null | null | null | secret_number_client/BotAlex.cpp | abdalmoez/cpp-secret-number | cd8c00bf0c4f1d712fa48e67c66f22e2f3372a6f | [
"MIT"
] | null | null | null | #include "BotAlex.h"
void BotAlex::setup(int32_t min, int32_t max)
{
m_max = max;
m_min = min;
m_output = min - 1;
}
void BotAlex::learn()
{
if(m_output<m_max)
{
m_output++;
}
}
int32_t BotAlex::getOutput()
{
return m_output;
}
void BotAlex::onFail(int32_t v... | 13.592593 | 51 | 0.561308 | abdalmoez |
ec0a2646f9270a9458df9bf74690675a6c679b87 | 1,064 | cpp | C++ | src/WrapAroundFunction.cpp | CaptCrunch333/flight_controller_temp | df996cb6721cc00efe3c46379ecc7d992ae9c764 | [
"BSD-3-Clause"
] | null | null | null | src/WrapAroundFunction.cpp | CaptCrunch333/flight_controller_temp | df996cb6721cc00efe3c46379ecc7d992ae9c764 | [
"BSD-3-Clause"
] | null | null | null | src/WrapAroundFunction.cpp | CaptCrunch333/flight_controller_temp | df996cb6721cc00efe3c46379ecc7d992ae9c764 | [
"BSD-3-Clause"
] | 3 | 2020-10-26T12:37:07.000Z | 2020-10-27T04:44:27.000Z | #include "WrapAroundFunction.hpp"
WrapAroundFunction::WrapAroundFunction(double t_min_val,double t_max_val){
_min_val = t_min_val;
_max_val = t_max_val;
_span = _max_val-_min_val;
this->_input_port = new InputPort(ports_id::IP_0_DATA, this);
this->_output_port = new OutputPort(ports_id::OP_0_DATA,... | 25.95122 | 74 | 0.640038 | CaptCrunch333 |
ec0e4b85928b370230e1e5e83e4175f3eecb1220 | 444 | cpp | C++ | src/transforms/debounce.cpp | mairas/SensESP | 5e25db1bb205eeb485f922ca693713e8ffe6e3d6 | [
"Apache-2.0"
] | 4 | 2019-02-05T19:15:53.000Z | 2019-05-08T11:29:51.000Z | src/transforms/debounce.cpp | mairas/SensESP | 5e25db1bb205eeb485f922ca693713e8ffe6e3d6 | [
"Apache-2.0"
] | 2 | 2019-05-20T20:42:47.000Z | 2019-05-27T20:42:31.000Z | src/transforms/debounce.cpp | mairas/SensESP | 5e25db1bb205eeb485f922ca693713e8ffe6e3d6 | [
"Apache-2.0"
] | 3 | 2019-04-20T19:28:15.000Z | 2019-05-28T16:07:38.000Z | #include "debounce.h"
Debounce::Debounce(int msMinDelay, String sk_path, String config_path) :
SymmetricBooleanTransform(sk_path, config_path), msMinDelay{msMinDelay} {
lastTime = millis();
}
void Debounce::set_input(bool newValue, uint8_t inputChannel) {
int elapsed = millis() - lastTime;
if (newV... | 23.368421 | 77 | 0.664414 | mairas |
ec102d5b1e0ff273dc1c7d3bff4a88f841b952bf | 1,063 | hpp | C++ | source/Kai/Memory/ManagedObject.hpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | 4 | 2016-07-19T08:53:09.000Z | 2021-08-03T10:06:41.000Z | source/Kai/Memory/ManagedObject.hpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | null | null | null | source/Kai/Memory/ManagedObject.hpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | null | null | null | //
// ManagedObject.h
// This file is part of the "Kai" project, and is released under the MIT license.
//
// Created by Samuel Williams on 29/12/11.
// Copyright (c) 2011 Orion Transfer Ltd. All rights reserved.
//
#ifndef _KAI_MEMORY_MANAGEDOBJECT_H
#define _KAI_MEMORY_MANAGEDOBJECT_H
#include "ObjectAllocator.... | 21.693878 | 82 | 0.698024 | ioquatix |
ec1b93bd1efb840b8bae2792ee826b9a1bd78142 | 425 | cpp | C++ | tests/test_sa_unspec.cpp | StirlingLabs/libsa | 53ab48f1a87dd2b383bf4c7ea9c2f8bf05fc01dd | [
"MIT"
] | 2 | 2022-03-01T18:48:06.000Z | 2022-03-01T20:33:07.000Z | tests/test_sa_unspec.cpp | StirlingLabs/libsa | 53ab48f1a87dd2b383bf4c7ea9c2f8bf05fc01dd | [
"MIT"
] | null | null | null | tests/test_sa_unspec.cpp | StirlingLabs/libsa | 53ab48f1a87dd2b383bf4c7ea9c2f8bf05fc01dd | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "common.h"
#include "sa.h"
TEST(sa, unspec) {
sockaddr_in6 expected;
expected.sin6_family = AF_UNSPEC;
expected.sin6_port = htons(1000);
auto actual = reinterpret_cast<sockaddr_in6 *>( sa_unspec(1000));
EXPECT_NE(actual, nullptr);
EXPECT_EQ(actual->sin6_fami... | 22.368421 | 69 | 0.705882 | StirlingLabs |
ec1d64904eeb6f9f67b7efb1868106da49e26499 | 283 | hpp | C++ | library/ATF/_RTC_vardesc.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_RTC_vardesc.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_RTC_vardesc.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct _RTC_vardesc
{
int addr;
int size;
char *name;
};
END_ATF_NAMESPACE
| 18.866667 | 108 | 0.674912 | lemkova |
ec1f70e62c144323b628a40583bd1ab2ca48c871 | 938 | hpp | C++ | BrickEngine/src/BrickEngine/Renderer/Mesh.hpp | HomelikeBrick42/GameEngineTest1 | 3771c65fcd910d360e19b3820b5f4d758cb83997 | [
"Apache-2.0"
] | null | null | null | BrickEngine/src/BrickEngine/Renderer/Mesh.hpp | HomelikeBrick42/GameEngineTest1 | 3771c65fcd910d360e19b3820b5f4d758cb83997 | [
"Apache-2.0"
] | null | null | null | BrickEngine/src/BrickEngine/Renderer/Mesh.hpp | HomelikeBrick42/GameEngineTest1 | 3771c65fcd910d360e19b3820b5f4d758cb83997 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "BrickEngine/Core/Base.hpp"
#include "BrickEngine/Renderer/Vertex.hpp"
#include "BrickEngine/Renderer/VertexBuffer.hpp"
#include "BrickEngine/Renderer/IndexBuffer.hpp"
namespace BrickEngine {
class Mesh
{
public:
Mesh(const std::vector<Vertex>& vertices, const std::vector<uint32_t>& indic... | 26.8 | 84 | 0.73774 | HomelikeBrick42 |
ec20f845847b9a05f195a43d058386c71c5e5eec | 6,462 | cpp | C++ | Code/Source/Cesium/Math/BoundingVolumeConverters.cpp | CesiumGS/cesium-o3de | b4e682df0131256c08ec5680397abfbfcb89f4b0 | [
"Apache-2.0"
] | 23 | 2022-01-14T16:20:16.000Z | 2022-03-24T07:41:55.000Z | Code/Source/Cesium/Math/BoundingVolumeConverters.cpp | CesiumGS/cesium-o3de | b4e682df0131256c08ec5680397abfbfcb89f4b0 | [
"Apache-2.0"
] | 12 | 2022-01-21T18:34:26.000Z | 2022-03-28T16:03:35.000Z | Code/Source/Cesium/Math/BoundingVolumeConverters.cpp | CesiumGS/cesium-o3de | b4e682df0131256c08ec5680397abfbfcb89f4b0 | [
"Apache-2.0"
] | 4 | 2022-02-08T15:17:08.000Z | 2022-03-23T04:45:20.000Z | #include "Cesium/Math/BoundingVolumeConverters.h"
#include <Cesium/Math/BoundingRegion.h>
#include <Cesium/Math/BoundingSphere.h>
#include <Cesium/Math/OrientedBoundingBox.h>
namespace Cesium
{
TilesetBoundingVolume BoundingVolumeConverter::operator()(const CesiumGeometry::BoundingSphere& sphere)
{
ret... | 47.866667 | 132 | 0.668833 | CesiumGS |
ec23defea313bd7c082ae0755143e11d3334b9bc | 1,311 | cpp | C++ | cpp/hr.cpp | ashishpatel26/learning | b9e9472a70841061d2e755659872c8b093124f89 | [
"MIT"
] | 54 | 2017-09-10T17:28:21.000Z | 2021-12-17T14:55:04.000Z | cpp/hr.cpp | parvathirajan/learning | bb112015d4513414bf86c7392c12b13f8d0fdd21 | [
"MIT"
] | 1 | 2019-07-04T21:57:14.000Z | 2019-07-04T21:57:14.000Z | cpp/hr.cpp | parvathirajan/learning | bb112015d4513414bf86c7392c12b13f8d0fdd21 | [
"MIT"
] | 36 | 2017-11-13T16:54:58.000Z | 2022-02-07T11:20:20.000Z | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include <ctype.h>
#include <sstream>
using namespace std;
vector<string> split(string str, char delimiter) {
vector<string> internal;
stringstream ss(str); // Turn the string into a stream.
string t... | 23.410714 | 84 | 0.607933 | ashishpatel26 |
ec2793f5a636b04907b69188fe35fbb557a9724d | 390 | hpp | C++ | includes/CRSMatrix.hpp | razerx100/Ceres | 271bf4dccae83403fa03b0905148dedfa1012052 | [
"MIT"
] | null | null | null | includes/CRSMatrix.hpp | razerx100/Ceres | 271bf4dccae83403fa03b0905148dedfa1012052 | [
"MIT"
] | null | null | null | includes/CRSMatrix.hpp | razerx100/Ceres | 271bf4dccae83403fa03b0905148dedfa1012052 | [
"MIT"
] | null | null | null | #ifndef CERES_MATRIX_HPP_
#define CERES_MATRIX_HPP_
#include "CRSVector.hpp"
namespace Ceres {
struct alignas(16) Matrix {
Vector row1;
Vector row2;
Vector row3;
Vector row4;
Matrix() = default;
constexpr Matrix(
const Vector& v1, const Vector& v2, const Vector& v3, const Vector& v4
) ... | 20.526316 | 74 | 0.658974 | razerx100 |
ec28d9aadf2f15adbb2e9ec29e3884c70746f3a7 | 99 | hh | C++ | test/helper.hh | gsauthof/libixxxutil | 6b5f82268bb9bb3c10df8cef3170e70a2f1592d8 | [
"BSD-2-Clause"
] | null | null | null | test/helper.hh | gsauthof/libixxxutil | 6b5f82268bb9bb3c10df8cef3170e70a2f1592d8 | [
"BSD-2-Clause"
] | null | null | null | test/helper.hh | gsauthof/libixxxutil | 6b5f82268bb9bb3c10df8cef3170e70a2f1592d8 | [
"BSD-2-Clause"
] | 1 | 2019-11-20T09:33:37.000Z | 2019-11-20T09:33:37.000Z | #ifndef TEST_HELPER_HH
#define TEST_HELPER_HH
char *portable_mkdtemp(char *dir_template);
#endif
| 14.142857 | 43 | 0.818182 | gsauthof |
ec355e10279245ef0348bddd5cc9a8335663225b | 645 | cpp | C++ | Week4/bagOfTokensScore.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | 1 | 2020-10-29T11:21:58.000Z | 2020-10-29T11:21:58.000Z | Week4/bagOfTokensScore.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | null | null | null | Week4/bagOfTokensScore.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | null | null | null | class Solution {
public:
int bagOfTokensScore(vector<int>& tokens, int P) {
int n = tokens.size();
if(n == 0) return 0;
sort(tokens.begin(), tokens.end());
int i = 0, j = n - 1, score = 0, maxScore = 0;
while(i <= j) {
if(tokens[i] <= P)... | 24.807692 | 54 | 0.372093 | AkashRajpurohit |
ec3c302a9b781d881f999abc27cb833669a303a1 | 3,524 | cpp | C++ | oneflow/core/functional/impl/nn_functor.cpp | qqsun8819/oneflow | b61e07b3406cc5c2d71f3d5e8b0f4de9b3fb9e40 | [
"Apache-2.0"
] | null | null | null | oneflow/core/functional/impl/nn_functor.cpp | qqsun8819/oneflow | b61e07b3406cc5c2d71f3d5e8b0f4de9b3fb9e40 | [
"Apache-2.0"
] | null | null | null | oneflow/core/functional/impl/nn_functor.cpp | qqsun8819/oneflow | b61e07b3406cc5c2d71f3d5e8b0f4de9b3fb9e40 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 39.595506 | 99 | 0.553916 | qqsun8819 |
ec418007c8e1640dbe12df384e7384857bc93fe7 | 592 | hpp | C++ | SampleProject/GameLogic.hpp | i0r/i0rTech | c74b327345e6e9e1a08c6b5631e84383431f2661 | [
"BSD-3-Clause"
] | null | null | null | SampleProject/GameLogic.hpp | i0r/i0rTech | c74b327345e6e9e1a08c6b5631e84383431f2661 | [
"BSD-3-Clause"
] | null | null | null | SampleProject/GameLogic.hpp | i0r/i0rTech | c74b327345e6e9e1a08c6b5631e84383431f2661 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <i0rGame/IGameLogic.hpp>
class GameLogic : public IGameLogic {
DECLARE_MEMBER( private, renderable_t*, MouseCursor )
DECLARE_MEMBER( private, renderable_t*, MouseDecal )
DECLARE_MEMBER( private, Mesh*, ActiveAsset ) // selected asset
public:
explicit GameLogic() ;
~GameLogic() ;... | 24.666667 | 83 | 0.72973 | i0r |
ec44fb84b41c80d3f2ca59f85264ba11aa3fc841 | 1,072 | cpp | C++ | Codility_CountFactors.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | 1 | 2021-01-31T22:59:59.000Z | 2021-01-31T22:59:59.000Z | Codility_CountFactors.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | Codility_CountFactors.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <assert.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <numeric>
#include <map>
#include <deque>
#include <stdlib.h>
#include <string>
using namespace std;
int solution(int N)
{
size_t i=1u;
size_t result=0u;
if(2147483647 == N)
return 2;
w... | 14.684932 | 26 | 0.541045 | CharlieGearsTech |
ec49a2fb150366998efe346c96a3da0efedfd82d | 4,987 | hh | C++ | dune/gdt/tests/linearelliptic/problems/interface.hh | ftalbrecht/dune-gdt | 574bc4a3b28d2a6a6195a6b4df6727c61f0d73c9 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:12:08.000Z | 2020-02-08T04:12:08.000Z | dune/gdt/tests/linearelliptic/problems/interface.hh | dune-community/dune-gdt-archive | 08c0167b2761f8263514189be2dcdf0e21a055dc | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/tests/linearelliptic/problems/interface.hh | dune-community/dune-gdt-archive | 08c0167b2761f8263514189be2dcdf0e21a055dc | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:12:11.000Z | 2020-02-08T04:12:11.000Z | // This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_TESTS_LINEARELLIPTIC_PROBLEMS_INTERFACE_HH
#define DUNE_GDT_TESTS_LINEARELLIPTIC_PROBL... | 38.960938 | 120 | 0.704432 | ftalbrecht |
ec4b1f379c0ad5af0ddc1871fd9f6afbdc85f206 | 1,327 | cc | C++ | src/comm/SysStatusManager.cc | NejatRmz/qgroundcontrol | 225528c7c052d642df5e67eb9150af98a0684020 | [
"Apache-2.0"
] | 6 | 2019-04-30T03:28:25.000Z | 2021-03-23T23:58:33.000Z | src/comm/SysStatusManager.cc | NejatRmz/qgroundcontrol | 225528c7c052d642df5e67eb9150af98a0684020 | [
"Apache-2.0"
] | null | null | null | src/comm/SysStatusManager.cc | NejatRmz/qgroundcontrol | 225528c7c052d642df5e67eb9150af98a0684020 | [
"Apache-2.0"
] | 1 | 2019-06-05T08:17:33.000Z | 2019-06-05T08:17:33.000Z | /****************************************************************************
*
* Copyright (C) 2018 Pinecone Inc. All rights reserved.
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
******************************************************... | 27.645833 | 128 | 0.566692 | NejatRmz |
ec4ee5b26ec0e6b270d6a1e872ffdbd1c640347e | 740 | cpp | C++ | AgoraClrLibrary/AgoraClrLibrary/AgoraClrPacketObserver.cpp | wulaoh/AgoraCLI | 217d3b46b2ca273057b425a6bac2ebab440b3195 | [
"MIT"
] | 45 | 2017-03-27T15:17:40.000Z | 2021-09-09T12:21:41.000Z | AgoraClrLibrary/AgoraClrLibrary/AgoraClrPacketObserver.cpp | wulaoh/AgoraCLI | 217d3b46b2ca273057b425a6bac2ebab440b3195 | [
"MIT"
] | 47 | 2017-03-07T08:32:55.000Z | 2021-01-08T09:32:31.000Z | AgoraClrLibrary/AgoraClrLibrary/AgoraClrPacketObserver.cpp | wulaoh/AgoraCLI | 217d3b46b2ca273057b425a6bac2ebab440b3195 | [
"MIT"
] | 21 | 2017-03-16T07:05:25.000Z | 2021-09-25T10:00:29.000Z | #include "stdafx.h"
#include "AgoraClrPacketObserver.h"
using namespace AgoraClrLibrary;
bool AgoraClrPacketObserver::onSendAudioPacket(Packet & packet)
{
if (onSendAudioPacketEvent) return onSendAudioPacketEvent(packet);
return true;
}
bool AgoraClrPacketObserver::onSendVideoPacket(Packet & packet)
{
... | 25.517241 | 74 | 0.787838 | wulaoh |
ec51c7bf7434a78333c922845e685c01dcb6f727 | 23,702 | hpp | C++ | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_meat.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_meat.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/glue_times_meat.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | // Copyright (C) 2008-2012 NICTA (www.nicta.com.au)
// Copyright (C) 2008-2012 Conrad Sanderson
//
// This file is part of the Armadillo C++ library.
// It is provided without any warranty of fitness
// for any purpose. You can redistribute this file
// and/or modify it under the terms of the GNU
// Lesser General Pub... | 27.43287 | 174 | 0.573201 | HerrFroehlich |
ec54b1666634717e35592d42e0b4c17a17789acf | 887 | cpp | C++ | combinatorial_1/mesa.cpp | eder-matheus/programming_challenges | 9d318bf5b8df18f732c07e60aa72b302ea887419 | [
"BSD-3-Clause"
] | null | null | null | combinatorial_1/mesa.cpp | eder-matheus/programming_challenges | 9d318bf5b8df18f732c07e60aa72b302ea887419 | [
"BSD-3-Clause"
] | null | null | null | combinatorial_1/mesa.cpp | eder-matheus/programming_challenges | 9d318bf5b8df18f732c07e60aa72b302ea887419 | [
"BSD-3-Clause"
] | 1 | 2021-08-24T17:18:54.000Z | 2021-08-24T17:18:54.000Z | // a mesa quadrada de ines venezuela - uri 2069
#include <iostream>
#include <cmath>
#define MAX 100000
unsigned long long fatoracao(unsigned long long n1, unsigned long long n2) {
unsigned long long f = 1;
unsigned long long n = std::max(n1, n2);
for (int i = 2; i * i <= n; i++) {
int e1 = 0;
if (n1 %... | 16.735849 | 76 | 0.496054 | eder-matheus |
ec54c7b5ae55f098efdb06447f041efc4e199487 | 22 | cpp | C++ | core/protocol.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | 1 | 2016-01-01T02:23:55.000Z | 2016-01-01T02:23:55.000Z | core/protocol.cpp | Byrd-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | core/protocol.cpp | Byrd-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | #include "protocol.h"
| 11 | 21 | 0.727273 | Rod-Lin |
ec57356aaa0d32741f95f6c33debf25d354e2d58 | 2,781 | hpp | C++ | include/ph_concepts/Type.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | include/ph_concepts/Type.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | include/ph_concepts/Type.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | //#pragma once
//
//#include "common.hpp"
//#include "concepts.hpp"
//
//
//
//template <typename T>
//struct Max{};
//
//
//template <>
//struct Max <char>
//{
// cexpr char max = CHAR_MAX;
//};
//
//template <>
//struct Max <signed char>
//{
// cexpr signed char max = SCHAR_MAX;
//};
//
//template <>
//struct M... | 13.767327 | 64 | 0.547645 | phiwen96 |
ec62dcb411a8947bb04eb3b32a22b9f60ac160db | 3,268 | cpp | C++ | fluorender/FluoRender/FLIVR/Point.cpp | sandorbx/VVD_Viewer | ad21f4c8700c81d89e8973a4ecacb777ee1d0f37 | [
"MIT"
] | 20 | 2016-06-22T04:14:55.000Z | 2022-03-21T15:06:48.000Z | fluorender/FluoRender/FLIVR/Point.cpp | sandorbx/VVD_Viewer | ad21f4c8700c81d89e8973a4ecacb777ee1d0f37 | [
"MIT"
] | 5 | 2019-06-06T18:47:10.000Z | 2022-03-31T14:05:18.000Z | fluorender/FluoRender/FLIVR/Point.cpp | sandorbx/VVD_Viewer | ad21f4c8700c81d89e8973a4ecacb777ee1d0f37 | [
"MIT"
] | 5 | 2017-07-11T22:28:45.000Z | 2021-12-03T22:21:08.000Z | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2004 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to d... | 23.014085 | 75 | 0.647491 | sandorbx |
ec6b6fa91acc39acac5ffeeb7da1f900f8a990ad | 2,170 | hpp | C++ | src/mods/BossDanteSetup.hpp | praydog/dx11_mod_base | cfbce80313b782813a959c2d2ceb69705643a6cd | [
"MIT"
] | 1 | 2022-03-26T22:57:55.000Z | 2022-03-26T22:57:55.000Z | src/mods/BossDanteSetup.hpp | praydog/dx11_mod_base | cfbce80313b782813a959c2d2ceb69705643a6cd | [
"MIT"
] | null | null | null | src/mods/BossDanteSetup.hpp | praydog/dx11_mod_base | cfbce80313b782813a959c2d2ceb69705643a6cd | [
"MIT"
] | null | null | null | #pragma once
#include "Mod.hpp"
class BossDanteSetup : public Mod
{
public:
inline static bool cheaton = false;
inline static bool isDtRegenEnabled = false;
inline static bool isSdtTransformSetup = false;
inline static bool isDtsTimerSkip = false;
inline static bool isCustomDtDuration = false;
inline static bool... | 28.181818 | 98 | 0.767742 | praydog |
ec6cf4df23bad0b2f55e936f77f918cc20824ed9 | 1,048 | cpp | C++ | test/core/strong_type.cpp | lifting-bits/gap | 971ac626e49e5508f6b488661120bd8cacbc0e72 | [
"Apache-2.0"
] | 2 | 2021-12-16T06:43:46.000Z | 2022-01-05T14:30:58.000Z | test/core/strong_type.cpp | lifting-bits/gap | 971ac626e49e5508f6b488661120bd8cacbc0e72 | [
"Apache-2.0"
] | 4 | 2022-01-05T13:49:36.000Z | 2022-02-22T22:05:35.000Z | test/core/strong_type.cpp | lifting-bits/gap | 971ac626e49e5508f6b488661120bd8cacbc0e72 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2021-present, Trail of Bits, Inc.
#include <compare> // for operator<, strong_ordering
#include <doctest/doctest.h>
#include <gap/core/strong_type.hpp> // for strong_type
namespace gap::test
{
struct int_tag {};
using tagged_int = gap::strong_type< int, int_tag >;
static_assert(tagged_in... | 26.871795 | 94 | 0.646947 | lifting-bits |
ec6ee35ccf70a4c625caadc8f2655fac31bdc530 | 1,236 | cpp | C++ | minorGems/util/test/testSnprintf.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 1 | 2020-01-16T00:07:11.000Z | 2020-01-16T00:07:11.000Z | minorGems/util/test/testSnprintf.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | null | null | null | minorGems/util/test/testSnprintf.cpp | PhilipLudington/CastleDoctrine | 443f2b6b0215a6d71515c8887c99b4322965622e | [
"Unlicense"
] | 2 | 2019-09-17T12:08:20.000Z | 2020-09-26T00:54:48.000Z | /*
* Modification History
*
* 2004-January-15 Jason Rohrer
* Created.
*/
/**
* A test program for snprintf behavior.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int numStrings = 3;
// test strings of length 3, 4, and 5
const char *testStrings[3] = { "tst",... | 20.949153 | 71 | 0.511327 | PhilipLudington |
ec71b5f27ef3d76a4bba21074591b9a6a7f11586 | 2,999 | cpp | C++ | part3/Task3.1/Task 3.1.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:41.000Z | 2020-09-30T17:17:41.000Z | part3/Task3.1/Task 3.1.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | null | null | null | part3/Task3.1/Task 3.1.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
void swap(int* a, int* b)
{
int tmp = *a;
*a = *b;
*b = tmp;
}
void insertionSort(int* array, int lo, int hi)
{
for (int i = lo; i <= hi; i++)
{
for (int j = i; j > lo && array[j - 1] > array[j]; j--)
{
swap(&array[j - 1], &array[j]);
}
}
}
vo... | 19.224359 | 187 | 0.598533 | Matvey1703 |
ec73c11132863f6e458700d196db74819b172f59 | 3,092 | cpp | C++ | src/DateHeaderView.cpp | fritzvd/Calendar | 3c8e458d9a7e8df04e2976a3879e1af56f384959 | [
"MIT"
] | null | null | null | src/DateHeaderView.cpp | fritzvd/Calendar | 3c8e458d9a7e8df04e2976a3879e1af56f384959 | [
"MIT"
] | null | null | null | src/DateHeaderView.cpp | fritzvd/Calendar | 3c8e458d9a7e8df04e2976a3879e1af56f384959 | [
"MIT"
] | null | null | null | /*
* Copyright 2017 Akshay Agarwal, agarwal.akshay.akshay8@gmail.com
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "DateHeaderView.h"
#include <DateFormat.h>
#include <Font.h>
#include <LayoutBuilder.h>
#include <LocaleRoster.h>
#include <StringView.h>
#include "MainView.h"
... | 24.346457 | 71 | 0.72348 | fritzvd |
3f435841cbaed1c75ef19fde534d0bc71eb38806 | 2,786 | cpp | C++ | Source/Client/IM-Client/IMClient/mcticker.cpp | InstantBusinessNetwork/IBN | bbcf47de56bfc52049eeb2e46677642a28f38825 | [
"MIT"
] | 21 | 2015-07-22T15:22:41.000Z | 2021-03-23T05:40:44.000Z | Source/Client/IM-Client/IMClient/mcticker.cpp | InstantBusinessNetwork/IBN | bbcf47de56bfc52049eeb2e46677642a28f38825 | [
"MIT"
] | 11 | 2015-10-19T07:54:10.000Z | 2021-09-01T08:47:56.000Z | Source/Client/IM-Client/IMClient/mcticker.cpp | InstantBusinessNetwork/IBN | bbcf47de56bfc52049eeb2e46677642a28f38825 | [
"MIT"
] | 16 | 2015-07-22T15:23:09.000Z | 2022-01-17T10:49:43.000Z | // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "mcticker.h"
///////////////////////////////////... | 22.836066 | 83 | 0.632807 | InstantBusinessNetwork |
3f57a41efaa3ebd1e327b77a853c80ac1be2bf9f | 3,760 | cpp | C++ | code_blocks/dictionary_file_to_array_cpp/main.cpp | NewYaroslav/xquotes_history | 6a72a3cf88f0d00c42aa735cc84327806257e422 | [
"MIT"
] | 4 | 2019-09-05T20:49:38.000Z | 2021-11-17T09:44:22.000Z | code_blocks/dictionary_file_to_array_cpp/main.cpp | NewYaroslav/xquotes_history | 6a72a3cf88f0d00c42aa735cc84327806257e422 | [
"MIT"
] | 2 | 2020-04-10T20:00:56.000Z | 2020-05-08T03:47:55.000Z | code_blocks/dictionary_file_to_array_cpp/main.cpp | NewYaroslav/xquotes_history | 6a72a3cf88f0d00c42aa735cc84327806257e422 | [
"MIT"
] | 3 | 2019-11-02T19:57:11.000Z | 2021-05-13T20:12:59.000Z | #include <iostream>
#include "banana_filesystem.hpp"
#include <cctype>
#include <algorithm>
using namespace std;
std::string convert_hex_to_string(unsigned char value) {
char hex_string[32] = {};
sprintf(hex_string,"0x%.2X", value);
return std::string(hex_string);
}
std::string str_toupper(std::string s)... | 37.6 | 131 | 0.547606 | NewYaroslav |
3f57feb450d0c5115df0fd6c0bcd646835c252f1 | 2,306 | cpp | C++ | codeforces/617div3/C1.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/617div3/C1.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/617div3/C1.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define ll long long
#define rnd mt19937_64 rng(chrono::high_resolution_clock::now().time_since_epoch... | 20.22807 | 91 | 0.43235 | xenowits |
3f5b7395202ce79abb4ffc5ff5d850670a71832a | 2,252 | hpp | C++ | sdl1/xargon/include/camoto/suppitem.hpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/xargon/include/camoto/suppitem.hpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/xargon/include/camoto/suppitem.hpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | /**
* @file camoto/suppitem.hpp
* @brief Supplemental files required to open other files.
*
* Copyright (C) 2010-2015 Adam Nielsen <malvineous@shikadi.net>
*
* 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 ... | 27.13253 | 73 | 0.696714 | pdpdds |
3f6e6916ae5607539e65441188751fb7f763cafc | 1,628 | cpp | C++ | LLY/LLY/resource/IndexBuffer.cpp | ooeyusea/GameEngine | 85e7ceef7ddf663f9601a8a8787e29e8e8cdb425 | [
"MIT"
] | 3 | 2015-07-04T03:35:51.000Z | 2017-09-10T08:23:25.000Z | LLY/LLY/resource/IndexBuffer.cpp | ooeyusea/GameEngine | 85e7ceef7ddf663f9601a8a8787e29e8e8cdb425 | [
"MIT"
] | null | null | null | LLY/LLY/resource/IndexBuffer.cpp | ooeyusea/GameEngine | 85e7ceef7ddf663f9601a8a8787e29e8e8cdb425 | [
"MIT"
] | null | null | null | #include "IndexBuffer.h"
#include "VertexBuffer.h"
#include "VertexDescription.h"
#include "../util/FuncUnitl.h"
namespace lly {
IndexBuffer::IndexBuffer()
: _vao(0)
, _vio(0)
, _drawType(DrawType::POINTS)
, _count(0)
{
}
IndexBuffer::~IndexBuffer()
{
if (_vio)
{
glDeleteBuffers(1, &_vio);
_vi... | 19.853659 | 90 | 0.711916 | ooeyusea |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.