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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21e8d0699df488e7ff186709b7864b885a3957d1 | 3,400 | cpp | C++ | src/applications/replicoscillator/edgedBasedDetection.cpp | TASBE/ImageAnalytics | 5d6fc1a64b4c17e263451fa4252c94dc86193d14 | [
"CC-BY-3.0"
] | 1 | 2019-08-29T20:48:32.000Z | 2019-08-29T20:48:32.000Z | src/applications/replicoscillator/edgedBasedDetection.cpp | TASBE/ImageAnalytics | 5d6fc1a64b4c17e263451fa4252c94dc86193d14 | [
"CC-BY-3.0"
] | 1 | 2021-11-02T18:14:21.000Z | 2021-11-02T18:19:50.000Z | src/applications/replicoscillator/edgedBasedDetection.cpp | TASBE/ImageAnalytics | 5d6fc1a64b4c17e263451fa4252c94dc86193d14 | [
"CC-BY-3.0"
] | null | null | null | /*
Copyright (C) 2011 - 2019, Raytheon BBN Technologies and contributors listed
in the AUTHORS file in TASBE Flow Analytics distribution's top directory.
This file is part of the TASBE Flow Analytics package, and is distributed
under the terms of the GNU General Public License, with a linking
exception, as d... | 26.153846 | 83 | 0.682647 | TASBE |
21f64e60d69cac1e09217f89d5dacb1865cf26c9 | 15,688 | cpp | C++ | mp/src/game/server/da/da_datamanager.cpp | Black-Stormy/DoubleAction | cef6ff5ec41f2fed938d8ee3d6ffd3c770f523c7 | [
"Unlicense"
] | null | null | null | mp/src/game/server/da/da_datamanager.cpp | Black-Stormy/DoubleAction | cef6ff5ec41f2fed938d8ee3d6ffd3c770f523c7 | [
"Unlicense"
] | null | null | null | mp/src/game/server/da/da_datamanager.cpp | Black-Stormy/DoubleAction | cef6ff5ec41f2fed938d8ee3d6ffd3c770f523c7 | [
"Unlicense"
] | null | null | null | #include "cbase.h"
using namespace std;
#ifdef WITH_DATA_COLLECTION
#undef min
#undef max
#include <time.h>
#include "da_datamanager.h"
#include "da_player.h"
#include "weapon_grenade.h"
#include "da_gamerules.h"
#include "da_briefcase.h"
#include "../datanetworking/math.pb.h"
#include "../datanetworking/data.pb... | 28.732601 | 191 | 0.744327 | Black-Stormy |
21fa2ada2fcfcd2c34a4efcdaf37f072bb8e6e6f | 2,579 | cpp | C++ | test/test_preprocessor.cpp | sakshikakde/human-detector-and-tracker | 04e1fd08b858ababfa4fa91da8306890ef1d7d00 | [
"MIT"
] | null | null | null | test/test_preprocessor.cpp | sakshikakde/human-detector-and-tracker | 04e1fd08b858ababfa4fa91da8306890ef1d7d00 | [
"MIT"
] | 3 | 2021-10-16T05:46:37.000Z | 2021-10-18T22:16:20.000Z | test/test_preprocessor.cpp | sakshikakde/human-detector-and-tracker | 04e1fd08b858ababfa4fa91da8306890ef1d7d00 | [
"MIT"
] | 2 | 2021-10-06T02:52:31.000Z | 2021-10-06T05:16:28.000Z | /**
* MIT License
*
* Copyright (c) 2021 Anubhav Paras, Sakshi Kakde, Siddharth Telang
*
* 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 limitati... | 36.323944 | 81 | 0.724699 | sakshikakde |
21fae4fa506214d1580df4ba2c9ecb7631f6b632 | 21,586 | cpp | C++ | frame_tests.cpp | draghan/memoryframe | da573df30613759d61537ca78b5a41a248c2a811 | [
"MIT"
] | null | null | null | frame_tests.cpp | draghan/memoryframe | da573df30613759d61537ca78b5a41a248c2a811 | [
"MIT"
] | null | null | null | frame_tests.cpp | draghan/memoryframe | da573df30613759d61537ca78b5a41a248c2a811 | [
"MIT"
] | null | null | null | /*
This file is distributed under MIT License.
Copyright (c) 2019 draghan
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... | 23.412148 | 84 | 0.493236 | draghan |
1d01a2f71775db78545546cad9c421aed8f3b28c | 2,021 | cpp | C++ | tests/test2.cpp | kosirev/lab5 | f898ac9253e01b45879fd75f05d6f348516d7762 | [
"MIT"
] | null | null | null | tests/test2.cpp | kosirev/lab5 | f898ac9253e01b45879fd75f05d6f348516d7762 | [
"MIT"
] | null | null | null | tests/test2.cpp | kosirev/lab5 | f898ac9253e01b45879fd75f05d6f348516d7762 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <Stack2.hpp>
TEST(Stack2, correct_primitive) {
Stack2<int> stack;
stack.push(10);
int value1 = 15, value2 = 33;
stack.push_emplace(value1);
EXPECT_EQ(value1, stack.pop());
EXPECT_EQ(10, stack.head());
stack.push_emplace(value2);
EXPECT_EQ(value2, stack.head());
stack... | 28.464789 | 59 | 0.703117 | kosirev |
1d048fb4fbb4d23044d47e06cc09edf76f25e8c6 | 826 | cpp | C++ | OculusPlatformBP/Source/OculusPlatformBP/Private/OBP_TeamArray.cpp | InnerLoopLLC/OculusPlatformBP | d4bfb5568c56aa781e2ee76896d69a0ade1f57a2 | [
"MIT"
] | 29 | 2020-10-22T13:46:23.000Z | 2022-03-18T14:32:51.000Z | OculusPlatformBP/Source/OculusPlatformBP/Private/OBP_TeamArray.cpp | InnerLoopLLC/OculusPlatformBP | d4bfb5568c56aa781e2ee76896d69a0ade1f57a2 | [
"MIT"
] | 2 | 2021-05-06T18:14:39.000Z | 2021-05-25T01:12:15.000Z | OculusPlatformBP/Source/OculusPlatformBP/Private/OBP_TeamArray.cpp | InnerLoopLLC/OculusPlatformBP | d4bfb5568c56aa781e2ee76896d69a0ade1f57a2 | [
"MIT"
] | null | null | null | // OculusPlatformBP plugin by InnerLoop LLC 2020
#include "OBP_TeamArray.h"
// --------------------
// Initializers
// --------------------
UOBP_TeamArray::UOBP_TeamArray(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
// --------------------
// OVR_TeamArray.h
// --------------------
... | 21.736842 | 75 | 0.690073 | InnerLoopLLC |
1d05d60365d501f0507835f1138b237bbb3d9428 | 4,123 | cc | C++ | src/core/CommandLine.cc | estepanov-lvk/runos | 9b856b8a829539bb667156178d283ffc4ef3cf32 | [
"Apache-2.0"
] | 41 | 2015-02-09T10:04:35.000Z | 2021-11-21T06:34:38.000Z | src/core/CommandLine.cc | estepanov-lvk/runos | 9b856b8a829539bb667156178d283ffc4ef3cf32 | [
"Apache-2.0"
] | 31 | 2015-03-04T14:02:36.000Z | 2020-12-11T09:23:16.000Z | src/core/CommandLine.cc | estepanov-lvk/runos | 9b856b8a829539bb667156178d283ffc4ef3cf32 | [
"Apache-2.0"
] | 42 | 2015-02-13T14:24:00.000Z | 2021-11-09T12:04:38.000Z | /*
* Copyright 2019 Applied Research Center for Computer Networks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 24.541667 | 78 | 0.60878 | estepanov-lvk |
1d068c53c2c54186aaadfcfb5ac858ebc6ceb418 | 456 | hpp | C++ | include/VBE/graphics/RenderTarget.hpp | Dirbaio/VBE | 539d222dcbbf565ab64dc5d2463b310fd4b75873 | [
"MIT"
] | null | null | null | include/VBE/graphics/RenderTarget.hpp | Dirbaio/VBE | 539d222dcbbf565ab64dc5d2463b310fd4b75873 | [
"MIT"
] | null | null | null | include/VBE/graphics/RenderTarget.hpp | Dirbaio/VBE | 539d222dcbbf565ab64dc5d2463b310fd4b75873 | [
"MIT"
] | null | null | null | #ifndef RENDERTARGET_HPP
#define RENDERTARGET_HPP
#include <VBE/graphics/RenderTargetBase.hpp>
class RenderTarget : public RenderTargetBase {
public:
RenderTarget(unsigned int width, unsigned int height);
~RenderTarget();
void setTexture(RenderTargetBase::Attachment a, Texture2D* tex);
void setBuffer(Render... | 25.333333 | 69 | 0.787281 | Dirbaio |
1d096066ff2a26e8048c83dbe153adee14bb3153 | 4,233 | cpp | C++ | ironstack_agent/gui/output.cpp | zteo-phd-software/ironstack | 649f82ddcbb82831796fa2a1e1d1b8cc0f94a8e0 | [
"BSD-3-Clause"
] | null | null | null | ironstack_agent/gui/output.cpp | zteo-phd-software/ironstack | 649f82ddcbb82831796fa2a1e1d1b8cc0f94a8e0 | [
"BSD-3-Clause"
] | null | null | null | ironstack_agent/gui/output.cpp | zteo-phd-software/ironstack | 649f82ddcbb82831796fa2a1e1d1b8cc0f94a8e0 | [
"BSD-3-Clause"
] | null | null | null | #include <string.h>
#include "output.h"
weak_ptr<gui_controller> output::controller;
atomic_bool output::log_printf{false};
output::loglevel output::loglevel_threshold{output::loglevel::WARNING};
mutex output::fp_lock;
FILE* output::fp = nullptr;
// sets up output to point to a controller
void output::init(const shar... | 22.396825 | 103 | 0.665722 | zteo-phd-software |
1d101c36e2656c2e2405b153d27510e444dc4552 | 2,730 | hpp | C++ | MATLAB/attitude_filter/helper_functions/conversion.hpp | kylekrol/psim | a4817117189f0f5597452076e6e138f70f51d4e8 | [
"MIT"
] | 5 | 2020-04-11T06:53:46.000Z | 2022-01-05T05:39:11.000Z | MATLAB/attitude_filter/helper_functions/conversion.hpp | kylekrol/psim | a4817117189f0f5597452076e6e138f70f51d4e8 | [
"MIT"
] | 201 | 2019-09-05T03:46:21.000Z | 2022-01-08T04:44:16.000Z | MATLAB/attitude_filter/helper_functions/conversion.hpp | kylekrol/psim | a4817117189f0f5597452076e6e138f70f51d4e8 | [
"MIT"
] | 10 | 2019-10-12T17:24:34.000Z | 2022-02-25T01:20:14.000Z | #include "mex.hpp"
#include "mexAdapter.hpp"
#include <gnc/attitude_estimator.hpp>
#include <lin.hpp>
using namespace matlab::data;
/**
* @brief Create a matlab array from lin vec object
*
* @tparam N the dimension of the lin::vector
* @tparam T the type of lin::vector
* @param f a matlab array factory
* @pa... | 27.575758 | 99 | 0.621978 | kylekrol |
1d151b23993319bc256654ed6eec6d324b07e039 | 448 | cpp | C++ | Framework/Sources/o2/Assets/Meta.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Framework/Sources/o2/Assets/Meta.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Framework/Sources/o2/Assets/Meta.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2/stdafx.h"
#include "Meta.h"
#include "o2/Assets/Asset.h"
namespace o2
{
AssetMeta::AssetMeta() :
mId(0)
{}
AssetMeta::~AssetMeta()
{}
const Type* AssetMeta::GetAssetType() const
{
return &TypeOf(Asset);
}
bool AssetMeta::IsEqual(AssetMeta* other) const
{
return GetAssetType() == other->... | 14 | 70 | 0.65625 | zenkovich |
1d175c9aa45e1dddb65d3437382488753a1d169f | 118 | cpp | C++ | StaticEx/Hello.cpp | jaespo/Nifty | 6114eb7250776c136d3ae7757b70388caa6930a5 | [
"Unlicense"
] | null | null | null | StaticEx/Hello.cpp | jaespo/Nifty | 6114eb7250776c136d3ae7757b70388caa6930a5 | [
"Unlicense"
] | null | null | null | StaticEx/Hello.cpp | jaespo/Nifty | 6114eb7250776c136d3ae7757b70388caa6930a5 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include "Hello.h"
void nsHello::CHello::SayHello()
{
std::cout << "Hello World" << std::endl;
}
| 16.857143 | 41 | 0.652542 | jaespo |
1d1e40bc0889f5eb9ae46d628d5a19c36b439b01 | 1,315 | cpp | C++ | C++_Mavros/amov_mavro service _3.cpp | Chentao2000/practice_code | aa4fb6bbc26ac1ea0fb40e6e0889050b7e9f096c | [
"Apache-2.0"
] | 4 | 2022-01-07T13:07:48.000Z | 2022-02-08T04:46:02.000Z | C++_Mavros/amov_mavro service _3.cpp | Chentao2000/practice_code | aa4fb6bbc26ac1ea0fb40e6e0889050b7e9f096c | [
"Apache-2.0"
] | null | null | null | C++_Mavros/amov_mavro service _3.cpp | Chentao2000/practice_code | aa4fb6bbc26ac1ea0fb40e6e0889050b7e9f096c | [
"Apache-2.0"
] | null | null | null | // 通过前面两节的学习,我们对mavros操作无人机有了深刻的理解,无非就是通过ROS去取得以下当前的飞行状态,然后发送控制让他执行
// 当前在控制的时候,你可以选取很多方式,加速度方式,位置方式,姿态方式,都是可行的
// 那么这一节,将会围绕两个服务进行我们讲解,(模式切换 解锁
// -------------------------------------------------------------------
// 1. arming Service 加解锁服务
// 消息名称 : mavros/cmd/arming
// 类型名称 : mavros_msgs::CommandBool
// 类型所在头文件 ... | 26.836735 | 83 | 0.656274 | Chentao2000 |
918e4c89682e9fa1fa47324ffe0082c9e49a1df8 | 1,361 | hpp | C++ | library/ATF/CRecallRequest.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CRecallRequest.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CRecallRequest.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>
#include <CCharacter.hpp>
#include <CPlayer.hpp>
#include <CUnmannedTraderSchedule.hpp>
START_ATF_NAMESPACE
#pragma pack(push, 8)
struct CRecallRequest
{
... | 30.244444 | 123 | 0.65687 | lemkova |
919fbd6e647511321d8ba925e23bfa04047ea51d | 132 | cpp | C++ | spoj/test.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | spoj/test.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | spoj/test.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
while(scanf("%d",&n) && n!=42)printf("%d\n",n);
return 0;
} | 13.2 | 48 | 0.568182 | Shisir |
91a1a16f9e4ff73019dab4dc11692cd1228714f1 | 1,579 | cpp | C++ | codebook/code/String/Suffix_Array.cpp | NCTU-PCCA/NCTU_Yggdrasill | 4f086c9737502f69044f574514cf191d536aaf22 | [
"MIT"
] | null | null | null | codebook/code/String/Suffix_Array.cpp | NCTU-PCCA/NCTU_Yggdrasill | 4f086c9737502f69044f574514cf191d536aaf22 | [
"MIT"
] | null | null | null | codebook/code/String/Suffix_Array.cpp | NCTU-PCCA/NCTU_Yggdrasill | 4f086c9737502f69044f574514cf191d536aaf22 | [
"MIT"
] | null | null | null | //should initialize s and n first
#define N 301000
using namespace std;
char s[N]; //string=s,suffix array=sar,longest common prefix=lcp
int rk[2][N],id[2][N];
int n,p;
int cnt[N];
int len[N],od[N],sar[N];
inline int sr(int i,int t){ //rank of shifted position
return i+t<n?rk[p][i+t]:-1;
}
inline bool check_same(int ... | 21.930556 | 64 | 0.494617 | NCTU-PCCA |
91a3d0a576955b145efac47137e5976f3a2eb01a | 5,305 | cpp | C++ | learningC++/learningHandleClass.cpp | QiJunHu/newToCpp | 02988845fdb2e818608d4362e0d4ca0e91818509 | [
"MIT"
] | 2 | 2015-12-03T15:05:52.000Z | 2019-05-12T16:08:26.000Z | learningC++/learningHandleClass.cpp | QiJunHu/learningRecord | 02988845fdb2e818608d4362e0d4ca0e91818509 | [
"MIT"
] | null | null | null | learningC++/learningHandleClass.cpp | QiJunHu/learningRecord | 02988845fdb2e818608d4362e0d4ca0e91818509 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iterator>
#include <algorithm>
#include <fstream>
#include <list>
#include <string>
#include <vector>
#include <set>
#include<utility>
#include<functional>
#include<stdexcept>
//base class
class Item_base
{
friend std::ostream& operator<<(std::ostream &, Item_base &);
public:
Item_... | 20.248092 | 155 | 0.575683 | QiJunHu |
91a932492725a8bcf00c640b3273c80c6f61e9ab | 2,291 | cpp | C++ | common-lib/modules/general/src/hebench_math_utils.cpp | hebench/frontend | 891652bbf7fd6e3aae1020f5cfc30b52e1c491f9 | [
"Apache-2.0"
] | 9 | 2021-12-16T18:34:15.000Z | 2022-03-29T08:45:35.000Z | common-lib/modules/general/src/hebench_math_utils.cpp | hebench/frontend | 891652bbf7fd6e3aae1020f5cfc30b52e1c491f9 | [
"Apache-2.0"
] | 13 | 2021-11-04T20:35:39.000Z | 2022-02-25T20:06:35.000Z | common-lib/modules/general/src/hebench_math_utils.cpp | hebench/frontend | 891652bbf7fd6e3aae1020f5cfc30b52e1c491f9 | [
"Apache-2.0"
] | 2 | 2021-12-14T20:09:50.000Z | 2022-02-02T17:17:55.000Z |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <algorithm>
#include <stdexcept>
#include "../include/hebench_math_utils.h"
namespace hebench {
namespace Utilities {
namespace Math {
double computePercentile(const double *data, std::size_t count, double percentile)
{
// ... | 25.175824 | 82 | 0.591881 | hebench |
91ac4db899172ed17544ea028421e291f81a6353 | 3,788 | hpp | C++ | simpletest_signal.hpp | jonathanrlemos/simpletest | 0b0086279c756aa7bd14a40d907352233fc98313 | [
"MIT"
] | null | null | null | simpletest_signal.hpp | jonathanrlemos/simpletest | 0b0086279c756aa7bd14a40d907352233fc98313 | [
"MIT"
] | null | null | null | simpletest_signal.hpp | jonathanrlemos/simpletest | 0b0086279c756aa7bd14a40d907352233fc98313 | [
"MIT"
] | null | null | null | /** @file simpletest_signal.hpp
* @brief simpletest signal handler.
* @copyright Copyright (c) 2018 Jonathan Lemos
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef __SIMPLETEST_SIGNAL_HPP
#define __SIMPLETEST_SIGNAL_HPP
#includ... | 27.057143 | 166 | 0.704329 | jonathanrlemos |
91b663f57316e5d21f13386e193c34792608dc8f | 29,467 | cpp | C++ | src/SyntaxTree.cpp | gitmodimo/cppgraphqlgen | bee89894653ad12f574f941d27c156354b1d497c | [
"MIT"
] | 52 | 2018-08-12T15:36:12.000Z | 2019-05-04T09:22:34.000Z | src/SyntaxTree.cpp | gitmodimo/cppgraphqlgen | bee89894653ad12f574f941d27c156354b1d497c | [
"MIT"
] | 30 | 2018-09-10T18:05:16.000Z | 2019-05-02T00:43:01.000Z | src/SyntaxTree.cpp | gitmodimo/cppgraphqlgen | bee89894653ad12f574f941d27c156354b1d497c | [
"MIT"
] | 13 | 2018-08-20T03:40:22.000Z | 2019-04-19T08:15:46.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "graphqlservice/GraphQLParse.h"
#include "graphqlservice/internal/Grammar.h"
#include "graphqlservice/internal/SyntaxTree.h"
#include <tao/pegtl/contrib/unescape.hpp>
#include <functional>
#include <iterator>
#i... | 24.972034 | 100 | 0.729562 | gitmodimo |
91bb15200a33975b5c004971acaccceed920bcfc | 97,774 | cpp | C++ | src/currency_core/blockchain_storage.cpp | UScrypto/boolberry-opencl | 1369c7a2cb012983a2fac7e78438bd9a7185e867 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/currency_core/blockchain_storage.cpp | UScrypto/boolberry-opencl | 1369c7a2cb012983a2fac7e78438bd9a7185e867 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/currency_core/blockchain_storage.cpp | UScrypto/boolberry-opencl | 1369c7a2cb012983a2fac7e78438bd9a7185e867 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | // Copyright (c) 2012-2013 The Cryptonote developers
// Copyright (c) 2012-2013 The Boolberry developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <algorithm>
#include <cstdio>
#include <boost/archive/binary_o... | 41.482393 | 297 | 0.663049 | UScrypto |
91beb4ae0b8f9ec855d9a00590a37a36cd0602a0 | 6,099 | cpp | C++ | src/sampling.cpp | Algebraicphylogenetics/Empar | 1c2b4eec4ac0917c65786acf36de4b906d95715c | [
"MIT"
] | null | null | null | src/sampling.cpp | Algebraicphylogenetics/Empar | 1c2b4eec4ac0917c65786acf36de4b906d95715c | [
"MIT"
] | null | null | null | src/sampling.cpp | Algebraicphylogenetics/Empar | 1c2b4eec4ac0917c65786acf36de4b906d95715c | [
"MIT"
] | null | null | null | /*
* sampling.cpp
*
* Created by Ania M. Kedzierska on 11/11/11.
* Copyright 2011 Politecnic University of Catalonia, Center for Genomic Regulation. This is program can be redistributed, modified or else as given by the terms of the GNU General Public License.
*
*/
#include <iostream>
#include <cstdlib>
#in... | 24.493976 | 198 | 0.608296 | Algebraicphylogenetics |
91c4cbd4d21cadea7cd6e77cfe1d4d540c861c9b | 1,181 | cpp | C++ | c++/leetcode/0953-Verifying_an_Alien_Dictionary-E.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | c++/leetcode/0953-Verifying_an_Alien_Dictionary-E.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | c++/leetcode/0953-Verifying_an_Alien_Dictionary-E.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | // 953 Verifying an Alien Dictionary
// https://leetcode.com/problems/verifying-an-alien-dictionary
// version: 1; create time: 2020-01-14 22:54:25;
class Solution {
public:
bool isAlienSorted(vector<string>& words, string order) {
int order_index[26];
for (int i = 0; i < 26; ++i) {
con... | 31.918919 | 72 | 0.458933 | levendlee |
91c72ac9ce76c638fd476ad637785c2dc856d710 | 9,391 | cpp | C++ | dwarf/SB/Core/x/xMovePoint.cpp | stravant/bfbbdecomp | 2126be355a6bb8171b850f829c1f2731c8b5de08 | [
"OLDAP-2.7"
] | 1 | 2021-01-05T11:28:55.000Z | 2021-01-05T11:28:55.000Z | dwarf/SB/Core/x/xMovePoint.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | null | null | null | dwarf/SB/Core/x/xMovePoint.cpp | sonich2401/bfbbdecomp | 5f58b62505f8929a72ccf2aa118a1539eb3a5bd6 | [
"OLDAP-2.7"
] | 1 | 2022-03-30T15:15:08.000Z | 2022-03-30T15:15:08.000Z | typedef struct xLinkAsset;
typedef struct xMovePoint;
typedef struct xMovePointAsset;
typedef struct xEnt;
typedef struct xBaseAsset;
typedef struct xVec3;
typedef struct xEnv;
typedef struct xSerial;
typedef struct xCoef;
typedef struct xSpline3;
typedef struct xCoef3;
typedef struct xScene;
typedef struct xMemPool;
t... | 26.908309 | 91 | 0.728676 | stravant |
91ca9f6c30220237d286d7ad387f085e03f7dc47 | 9,163 | cpp | C++ | Plugins/UnLua/Source/UnLua/Private/Registries/ClassRegistry.cpp | xiejiangzhi/UnLua | 86ad978f939016caed1d11f803bb79bc73dbdfc1 | [
"MIT"
] | 1 | 2022-03-24T02:56:59.000Z | 2022-03-24T02:56:59.000Z | Plugins/UnLua/Source/UnLua/Private/Registries/ClassRegistry.cpp | xiejiangzhi/UnLua | 86ad978f939016caed1d11f803bb79bc73dbdfc1 | [
"MIT"
] | null | null | null | Plugins/UnLua/Source/UnLua/Private/Registries/ClassRegistry.cpp | xiejiangzhi/UnLua | 86ad978f939016caed1d11f803bb79bc73dbdfc1 | [
"MIT"
] | null | null | null | // Tencent is pleased to support the open source community by making UnLua available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the MIT License (the "License");
// you may not use this file except in compliance with the License. You may obtain a copy of th... | 30.141447 | 145 | 0.58889 | xiejiangzhi |
91cadaf1f75cbf8a4c49b75247976a88e84dacc1 | 827 | cpp | C++ | soj/3845.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/3845.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/3845.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
int p[300];
int Parent(int n)
{
if (p[n]==-1)
return n;
return p[n]=Parent(p[n]);
}
void Swap(int &a,int &b)
{
int temp=a;
a=b;
b=temp;
}
int main()
{
int n,m;
int a,b;
int i,count;
while (scanf("%d%d",&n,&m)==2)
{
memset... | 15.903846 | 34 | 0.336155 | huangshenno1 |
91cd45520970a6e49e6d13c3fd9db0d37fbe06a9 | 7,968 | cpp | C++ | libs/ofxCloudPlatform/src/VisionDebug.cpp | SAIC/ofxCloudPlatform | 4a97b38cb9be1faf245b9421789e9b43b5645356 | [
"MIT"
] | 1 | 2017-11-17T01:20:54.000Z | 2017-11-17T01:20:54.000Z | libs/ofxCloudPlatform/src/VisionDebug.cpp | SAIC/ofxCloudPlatform | 4a97b38cb9be1faf245b9421789e9b43b5645356 | [
"MIT"
] | 3 | 2017-09-30T18:30:08.000Z | 2019-11-21T09:14:42.000Z | libs/ofxCloudPlatform/src/VisionDebug.cpp | SAIC/ofxCloudPlatform | 4a97b38cb9be1faf245b9421789e9b43b5645356 | [
"MIT"
] | 1 | 2017-11-06T12:14:43.000Z | 2017-11-06T12:14:43.000Z | //
// Copyright (c) 2016 Christopher Baker <https://christopherbaker.net>
//
// SPDX-License-Identifier: MIT
//
#include "ofx/CloudPlatform/VisionDebug.h"
#include "ofGraphics.h"
namespace ofx {
namespace CloudPlatform {
void VisionDebug::draw(const std::string& label,
float value,
... | 29.511111 | 101 | 0.609438 | SAIC |
91d1ad6ada1817bead4703de39514f46188fc341 | 20,599 | cpp | C++ | Systronix_M24C32.cpp | systronix/Systronix_M24C32 | 3d9e2e11fd17d7d54978a6dff50076561b9943dc | [
"MIT"
] | null | null | null | Systronix_M24C32.cpp | systronix/Systronix_M24C32 | 3d9e2e11fd17d7d54978a6dff50076561b9943dc | [
"MIT"
] | null | null | null | Systronix_M24C32.cpp | systronix/Systronix_M24C32 | 3d9e2e11fd17d7d54978a6dff50076561b9943dc | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <Systronix_M24C32.h>
//---------------------------< D E F A U L T C O N S R U C T O R >------------------------------------------
//
// default constructor assumes lowest base address
//
Systronix_M24C32::Systronix_M24C32 (void)
{
_base = EEP_BASE_MIN;
error.total_error_count = 0; ... | 37.317029 | 157 | 0.633332 | systronix |
91d37878541358051b949781050b06f103150bc5 | 2,035 | hpp | C++ | test/unit/module/real/math/log1p/regular/log1p.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | test/unit/module/real/math/log1p/regular/log1p.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | test/unit/module/real/math/log1p/regular/log1p.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 39.134615 | 112 | 0.531695 | orao |
91d9e9e4de5c0d8d813ac48f2bf8192fa77c23b2 | 1,417 | cpp | C++ | mapchannel.cpp | chuanstudyup/TrackReplay | fdce9ee21c0fd9394968616f277cced7f23d7b7e | [
"Apache-2.0"
] | null | null | null | mapchannel.cpp | chuanstudyup/TrackReplay | fdce9ee21c0fd9394968616f277cced7f23d7b7e | [
"Apache-2.0"
] | null | null | null | mapchannel.cpp | chuanstudyup/TrackReplay | fdce9ee21c0fd9394968616f277cced7f23d7b7e | [
"Apache-2.0"
] | null | null | null | #include "mapchannel.h"
MapChannel::MapChannel(QObject *parent) : QObject(parent)
{
}
void MapChannel::getMousePoint(double lng, double lat)
{
emit mousePointChanged(lng,lat);
}
void MapChannel::addPoint(double lng, double lat)
{
emit addPointClicked(lng,lat);
}
void MapChannel::movePoint... | 17.280488 | 70 | 0.673253 | chuanstudyup |
91eb3e744eea84991fb9e428fa2eaa64d4a37026 | 2,114 | cpp | C++ | src/listener.cpp | inani47/beginner_tutorials | 7b5b3ec6ab32b22ad77273087ad4b1d2aa9c5041 | [
"BSD-2-Clause"
] | null | null | null | src/listener.cpp | inani47/beginner_tutorials | 7b5b3ec6ab32b22ad77273087ad4b1d2aa9c5041 | [
"BSD-2-Clause"
] | null | null | null | src/listener.cpp | inani47/beginner_tutorials | 7b5b3ec6ab32b22ad77273087ad4b1d2aa9c5041 | [
"BSD-2-Clause"
] | 1 | 2018-10-27T06:17:24.000Z | 2018-10-27T06:17:24.000Z | /*
* BSD 2-Clause License
*
* Copyright (c) 2017, Pranav Inani
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,... | 33.03125 | 81 | 0.733207 | inani47 |
91ebfc21408addb761be14b571a2954e3516c58e | 8,845 | cpp | C++ | src/frm/frmBackup.cpp | dpage/pgadmin3 | 6784e6281831a083fe5a0bbd49eac90e1a6ac547 | [
"Artistic-1.0"
] | 2 | 2021-07-16T21:45:41.000Z | 2021-08-14T15:54:17.000Z | src/frm/frmBackup.cpp | dpage/pgadmin3 | 6784e6281831a083fe5a0bbd49eac90e1a6ac547 | [
"Artistic-1.0"
] | null | null | null | src/frm/frmBackup.cpp | dpage/pgadmin3 | 6784e6281831a083fe5a0bbd49eac90e1a6ac547 | [
"Artistic-1.0"
] | 2 | 2017-11-18T15:00:24.000Z | 2021-08-14T15:54:30.000Z | //////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
// RCS-ID: $Id$
// Copyright (C) 2002 - 2010, The pgAdmin Development Team
// This software is released under the Artistic Licence
//
// frmBackup.cpp - Backup database dialogue
//
//////////////////////... | 28.440514 | 128 | 0.59299 | dpage |
91ecc0f918c51550b90273cd61737bfc91e6d7a6 | 519 | cpp | C++ | src/lib/io/mipi_tx.cpp | kinglee1982/FaceRecognitionTerminalDemo | 5e197011a87403d2433f691b8390ec340432b2be | [
"Apache-2.0"
] | 2 | 2020-12-21T13:15:59.000Z | 2021-07-07T08:04:06.000Z | src/lib/io/mipi_tx.cpp | kinglee1982/FaceRecognitionTerminalDemo | 5e197011a87403d2433f691b8390ec340432b2be | [
"Apache-2.0"
] | null | null | null | src/lib/io/mipi_tx.cpp | kinglee1982/FaceRecognitionTerminalDemo | 5e197011a87403d2433f691b8390ec340432b2be | [
"Apache-2.0"
] | 1 | 2022-03-24T01:08:42.000Z | 2022-03-24T01:08:42.000Z | #include "mipi_tx.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include "hi_mipi_tx.h"
#include "rp-lcd-mipi-8inch-800x1280.h"
Mipi_Tx::Mipi_Tx() {}
Mipi_Tx *Mipi_Tx::getInstance() {
static Mipi_Tx self;
return &self;
}
bool Mipi_Tx::startMipiTx(VO_INTF_SYNC_E voIntfSync) {
... | 19.961538 | 58 | 0.716763 | kinglee1982 |
91ed58a6dc446a8afb77af133372d237d2d746b1 | 912 | cpp | C++ | Sorting and Searching/array_division.cpp | vjerin/CSES-Problem-Set | 68070812fa1d27e4653f58dcdabed56188a45110 | [
"Apache-2.0"
] | null | null | null | Sorting and Searching/array_division.cpp | vjerin/CSES-Problem-Set | 68070812fa1d27e4653f58dcdabed56188a45110 | [
"Apache-2.0"
] | 10 | 2020-10-02T10:28:22.000Z | 2020-10-09T18:30:56.000Z | Sorting and Searching/array_division.cpp | vjerin/CSES-Problem-Set | 68070812fa1d27e4653f58dcdabed56188a45110 | [
"Apache-2.0"
] | 10 | 2020-10-02T11:16:32.000Z | 2020-10-08T18:31:18.000Z | #include <bits/stdc++.h>
#define int long long
#define MOD 1000000007
using namespace std;
void solve() {
int n, k;
cin >> n >> k;
int x[n];
int sum = 0;
for(int i = 0; i < n; i++) {
cin >> x[i];
sum += x[i];
}
int l = sum / k, h = sum;
int m, ans = l;
while(l ... | 16.581818 | 41 | 0.326754 | vjerin |
91ef65ef4bbd6f4410d4498335a0703839a5517b | 3,829 | inl | C++ | src/core/reflection/include/meta_struct.inl | Caravetta/Engine | 6e2490a68727dc731b466335499f3204490acc5f | [
"MIT"
] | 2 | 2018-05-21T02:12:50.000Z | 2019-04-23T20:56:00.000Z | src/core/reflection/include/meta_struct.inl | Caravetta/Engine | 6e2490a68727dc731b466335499f3204490acc5f | [
"MIT"
] | 12 | 2018-05-30T13:15:25.000Z | 2020-02-02T21:29:42.000Z | src/core/reflection/include/meta_struct.inl | Caravetta/Engine | 6e2490a68727dc731b466335499f3204490acc5f | [
"MIT"
] | 2 | 2018-06-14T19:03:29.000Z | 2018-12-30T07:37:22.000Z | #include "crc32.h"
#include "reflection_system.h"
namespace Engine {
#define GET_FIELD_OFFSET( __struct, __field ) (uint32_t) (uintptr_t) &( ((__struct*)NULL)->*__field)
template<class T>
void Meta_Struct::create( Meta_Struct const*& meta_struct, const char* name, const char* base_name )
{
Meta_Struct* tmp_str... | 30.149606 | 118 | 0.702533 | Caravetta |
91f41160c9460d2c15cc16e05173d23c1ac4c4ec | 1,240 | cpp | C++ | openscenario/openscenario_interpreter/src/syntax/private.cpp | autocore-ai/scenario_simulator_v2 | bb9569043e20649f0e4390e9225b6bb7b4de10b6 | [
"Apache-2.0"
] | null | null | null | openscenario/openscenario_interpreter/src/syntax/private.cpp | autocore-ai/scenario_simulator_v2 | bb9569043e20649f0e4390e9225b6bb7b4de10b6 | [
"Apache-2.0"
] | null | null | null | openscenario/openscenario_interpreter/src/syntax/private.cpp | autocore-ai/scenario_simulator_v2 | bb9569043e20649f0e4390e9225b6bb7b4de10b6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2015-2021 Tier IV, 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 app... | 32.631579 | 75 | 0.740323 | autocore-ai |
91fba7fbcbec3c3c1017da674cf1f51386ef9ded | 806 | cpp | C++ | Recursion and Backtracking/AllIndicesOfX.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | Recursion and Backtracking/AllIndicesOfX.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | Recursion and Backtracking/AllIndicesOfX.cpp | Ankitlenka26/IP2021 | 99322c9c84a8a9c9178a505afbffdcebd312b059 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
vector<int> *allIndices(vector<int> arr, int x, int idx, int fsf)
{
if (idx == arr.size())
{
vector<int> *res = new vector<int>(fsf);
return res;
}
if (arr[idx] == x)
{
vector<int> *iarr = allIndices(arr, x, idx + 1... | 17.521739 | 65 | 0.46402 | Ankitlenka26 |
91fd3fe0219c586b1d4a975467d4a9e5a93d7ec9 | 5,625 | cpp | C++ | Src/Files/MXFileMap.cpp | L-Spiro/MhsX | 9cc71fbbac93ba54a01839db129cd9b47a68f29e | [
"BSD-2-Clause"
] | 19 | 2016-09-07T18:22:09.000Z | 2022-03-25T23:05:39.000Z | Src/Files/MXFileMap.cpp | L-Spiro/MhsX | 9cc71fbbac93ba54a01839db129cd9b47a68f29e | [
"BSD-2-Clause"
] | 1 | 2021-09-30T14:24:54.000Z | 2021-11-13T14:58:02.000Z | Src/Files/MXFileMap.cpp | L-Spiro/MhsX | 9cc71fbbac93ba54a01839db129cd9b47a68f29e | [
"BSD-2-Clause"
] | 5 | 2018-04-10T16:52:25.000Z | 2021-05-11T02:40:17.000Z | #include "MXFileMap.h"
#include "../System/MXSystem.h"
#include <algorithm>
// == Macros.
#define MX_MAP_BUF_SIZE static_cast<UINT64>(mx::CSystem::GetSystemInfo().dwAllocationGranularity * 64)
namespace mx {
CFileMap::CFileMap() :
m_hFile( INVALID_HANDLE_VALUE ),
m_hMap( INVALID_HANDLE_VALUE ),
m_pbMapBuff... | 29.605263 | 125 | 0.692622 | L-Spiro |
62105e35a225e3ba313c25872bce921d49d03304 | 5,362 | hh | C++ | jpeg.hh | nurettin/libnuwen | 5b3012d9e75552c372a4d09b218b7af04a928e68 | [
"BSL-1.0"
] | 9 | 2019-09-17T10:33:58.000Z | 2021-07-29T10:03:42.000Z | jpeg.hh | nurettin/libnuwen | 5b3012d9e75552c372a4d09b218b7af04a928e68 | [
"BSL-1.0"
] | null | null | null | jpeg.hh | nurettin/libnuwen | 5b3012d9e75552c372a4d09b218b7af04a928e68 | [
"BSL-1.0"
] | 1 | 2019-10-05T04:31:22.000Z | 2019-10-05T04:31:22.000Z | // Copyright Stephan T. Lavavej, http://nuwen.net .
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://boost.org/LICENSE_1_0.txt .
#ifndef PHAM_JPEG_HH
#define PHAM_JPEG_HH
#include "compiler.hh"
#ifdef NUWEN_PLATFORM_MSVC
#pragma once
#end... | 31.727811 | 137 | 0.666729 | nurettin |
621dd17616a19e6c168e308708aae90df1cc581d | 2,342 | cpp | C++ | tests/flvstream_unittest.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 28 | 2017-04-30T13:56:13.000Z | 2022-03-20T06:54:37.000Z | tests/flvstream_unittest.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 72 | 2017-04-25T03:42:58.000Z | 2021-12-04T06:35:28.000Z | tests/flvstream_unittest.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 12 | 2017-04-16T06:25:24.000Z | 2021-07-07T13:28:27.000Z | #include <gtest/gtest.h>
#include "flv.h"
#include "amf0.h"
class FLVStreamFixture : public ::testing::Test {
public:
FLVStreamFixture()
{
}
void SetUp()
{
}
void TearDown()
{
}
~FLVStreamFixture()
{
}
};
TEST_F(FLVStreamFixture, readMetaData_commonCase)
{
std::... | 21.099099 | 100 | 0.60205 | plonk |
62261d6120f78d8884b5feef2b8fd8606c40a360 | 559 | hh | C++ | example/include/core/capture/real_sense/Image.hh | thingthing/smart-agent | f4c41432b1bab3283b00237b0208676acb0a00b1 | [
"MIT"
] | null | null | null | example/include/core/capture/real_sense/Image.hh | thingthing/smart-agent | f4c41432b1bab3283b00237b0208676acb0a00b1 | [
"MIT"
] | null | null | null | example/include/core/capture/real_sense/Image.hh | thingthing/smart-agent | f4c41432b1bab3283b00237b0208676acb0a00b1 | [
"MIT"
] | null | null | null | #ifndef _IMAGE_HH_
#define _IMAGE_HH_
class Image
{
public:
Image(const uint8_t* rgb_image, size_t height, size_t width,
double fx, double fy, double cx, double cy, const float *disto)
: _rgb(rgb_image), _height(height), _width(width),
_fx(fx), _fy(fy), _cx(cx), _cy(cy), _disto(disto) {}
~Image() {}
privat... | 18.633333 | 65 | 0.67263 | thingthing |
622698bb9f169f8bf37060908f246b14927b1b47 | 11,535 | cpp | C++ | iceoryx_utils/test/moduletests/test_cxx_convert.cpp | Karsten1987/iceoryx | e5c23eaf5c351ef0095e43673282867b8d060026 | [
"Apache-2.0"
] | 2 | 2019-11-04T05:02:53.000Z | 2019-11-04T05:19:20.000Z | iceoryx_utils/test/moduletests/test_cxx_convert.cpp | Karsten1987/iceoryx | e5c23eaf5c351ef0095e43673282867b8d060026 | [
"Apache-2.0"
] | null | null | null | iceoryx_utils/test/moduletests/test_cxx_convert.cpp | Karsten1987/iceoryx | e5c23eaf5c351ef0095e43673282867b8d060026 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 by Robert Bosch GmbH. 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... | 30.196335 | 99 | 0.705678 | Karsten1987 |
6229fd95e90e5a7f6062a97a2c0b9c8e009c4995 | 180 | cc | C++ | src/itensor/mps/localmpo_mps.h.cc | kyungminlee/PiTensor | f206fe5a384b52336e9f406c11dc492ff129791b | [
"MIT"
] | 10 | 2019-01-25T03:21:49.000Z | 2020-01-19T04:42:32.000Z | src/itensor/mps/localmpo_mps.h.cc | kyungminlee/PiTensor | f206fe5a384b52336e9f406c11dc492ff129791b | [
"MIT"
] | null | null | null | src/itensor/mps/localmpo_mps.h.cc | kyungminlee/PiTensor | f206fe5a384b52336e9f406c11dc492ff129791b | [
"MIT"
] | 2 | 2018-04-10T05:11:30.000Z | 2018-09-14T08:16:07.000Z | #include "../../pitensor.h"
#include "itensor/mps/localmpo_mps.h"
namespace py = pybind11;
using namespace itensor;
void pitensor::mps::localmpo_mps(pybind11::module& module) {
}
| 22.5 | 60 | 0.738889 | kyungminlee |
622dadbe497fbff44ca9d45118bcd93a6ab74f1b | 21,442 | hpp | C++ | source/RD/Engine/Engine.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:18.000Z | 2021-12-26T12:48:18.000Z | source/RD/Engine/Engine.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | null | null | null | source/RD/Engine/Engine.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:25.000Z | 2021-12-26T12:48:25.000Z | /**
* @file Engine.hpp
* @brief The engine header.
* @details Version 20210203.
* The OpenGL headers should be included in the following way:
* #define GLEW_STATIC
* #include <GL/glew.h>
* #ifdef _WIN32
* #define GLFW_EXPOSE_NATIVE_WGL
* #define GLFW_EXPOSE_NATIVE_WIN32
* #endif
*... | 52.425428 | 251 | 0.623962 | RobertDamerius |
622e0dbff83d5e823a76f4fa0834f1b206977408 | 2,207 | hh | C++ | src/include/Token.hh | websurfer5/json-schema-enforcer | 99211a602b1c8177d9f9e67cd7773015f74a4080 | [
"Apache-2.0"
] | null | null | null | src/include/Token.hh | websurfer5/json-schema-enforcer | 99211a602b1c8177d9f9e67cd7773015f74a4080 | [
"Apache-2.0"
] | null | null | null | src/include/Token.hh | websurfer5/json-schema-enforcer | 99211a602b1c8177d9f9e67cd7773015f74a4080 | [
"Apache-2.0"
] | null | null | null | // Token.hh
//
// Copyright 2018 Jeffrey Kintscher <websurfer@surf2c.net>
//
// 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
//... | 32.455882 | 100 | 0.643407 | websurfer5 |
622ebf7562d5cf93bb2cde67f1a33f516bcb3d0c | 7,017 | hpp | C++ | src/io.hpp | jewettaij/calc_writhe | 018ee05d802b7bf51182a8f7cb70b67194a09aba | [
"MIT"
] | null | null | null | src/io.hpp | jewettaij/calc_writhe | 018ee05d802b7bf51182a8f7cb70b67194a09aba | [
"MIT"
] | 1 | 2021-03-24T20:59:10.000Z | 2021-03-24T20:59:10.000Z | src/io.hpp | jewettaij/calc_writhe | 018ee05d802b7bf51182a8f7cb70b67194a09aba | [
"MIT"
] | null | null | null | /// @file io.hpp
/// @brief A series of (arguably unnecessary) functions that
/// read strings and numbers from a file.
/// @date 2007-4-13
#ifndef _IO_HPP
#define _IO_HPP
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <cstring>
using namespace std;
#include "e... | 24.882979 | 77 | 0.601254 | jewettaij |
622f49a80f31a99c173edbdef5a20effd5e494c9 | 695 | cpp | C++ | client/client_main.cpp | aejaz83/asio_server | 6b9bfbb9ca6954694ea08bfca0a9b1f4cf8741b4 | [
"BSL-1.0"
] | null | null | null | client/client_main.cpp | aejaz83/asio_server | 6b9bfbb9ca6954694ea08bfca0a9b1f4cf8741b4 | [
"BSL-1.0"
] | null | null | null | client/client_main.cpp | aejaz83/asio_server | 6b9bfbb9ca6954694ea08bfca0a9b1f4cf8741b4 | [
"BSL-1.0"
] | null | null | null | /*
* Author: Aehjaj Ahmed P
* Date: 1-July-2019
*/
#include <iostream>
#include <boost/asio.hpp>
#include "tcp_client.hpp"
using boost::asio::ip::tcp;
int main(int argc, char* argv[]){
try{
if(argc != 3){
std::cerr << "Usage: tcp_client <host> <port>\n";
return -1;
}
boost::asi... | 23.166667 | 58 | 0.58705 | aejaz83 |
62343debc4ea5eca48577fbaf39775d7dfdd40b5 | 589 | hpp | C++ | Kernel/syscalls.hpp | foragerDev/GevOS | f21c8432dd63ab583d9132422bf313ebf60557e8 | [
"Unlicense"
] | null | null | null | Kernel/syscalls.hpp | foragerDev/GevOS | f21c8432dd63ab583d9132422bf313ebf60557e8 | [
"Unlicense"
] | null | null | null | Kernel/syscalls.hpp | foragerDev/GevOS | f21c8432dd63ab583d9132422bf313ebf60557e8 | [
"Unlicense"
] | null | null | null | #ifndef SYSCALLS_HPP
#define SYSCALLS_HPP
#include "Exec/loader.hpp"
#include "Filesystem/vfs.hpp"
#include "Hardware/Drivers/keyboard.hpp"
#include "Hardware/Drivers/pcspk.hpp"
#include "Hardware/interrupts.hpp"
#include "LibC/stdio.hpp"
#include "LibC/types.hpp"
#include "Mem/mm.hpp"
#include "multitasking.hpp"
#inc... | 22.653846 | 80 | 0.765705 | foragerDev |
62361cc16c9ad5370189225d5253bad12c1f6e7f | 12,672 | hpp | C++ | src/cpp_lib/statistics/StatsTracker.hpp | hitbc/panSV | 273b13bf496593325778d926f763bed6d2de5be2 | [
"MIT"
] | null | null | null | src/cpp_lib/statistics/StatsTracker.hpp | hitbc/panSV | 273b13bf496593325778d926f763bed6d2de5be2 | [
"MIT"
] | null | null | null | src/cpp_lib/statistics/StatsTracker.hpp | hitbc/panSV | 273b13bf496593325778d926f763bed6d2de5be2 | [
"MIT"
] | 1 | 2021-09-25T10:35:46.000Z | 2021-09-25T10:35:46.000Z | /*
* StatsTracker.hpp
*
* Created on: 2020年5月1日
* Author: fenghe
*/
#pragma once
#include<iostream>
#include <cstring>
#include <cassert>
#include <functional>
#include <iosfwd>
#include <map>
#include <vector>
extern "C" {
#include "../clib/bam_file.h"
}
/****************PART ONE: Size Distribution*****... | 29.746479 | 141 | 0.716461 | hitbc |
9a8c5628500474c3eb9bef147aaf32e1d349a862 | 935 | cpp | C++ | src/macro/macro203.cpp | chennachaos/stabfem | b3d1f44c45e354dc930203bda22efc800c377c6f | [
"MIT"
] | null | null | null | src/macro/macro203.cpp | chennachaos/stabfem | b3d1f44c45e354dc930203bda22efc800c377c6f | [
"MIT"
] | null | null | null | src/macro/macro203.cpp | chennachaos/stabfem | b3d1f44c45e354dc930203bda22efc800c377c6f | [
"MIT"
] | null | null | null | #include "Macro.h"
#include "DomainTree.h"
#include "StandardFEM.h"
extern DomainTree domain;
int macro203(Macro ¯o)
{
if (!macro)
{
macro.name = "erro";
macro.type = "chen";
macro.what = " Compute Error Norm ";
macro.sensitivity[INTER] = true;
macro.sensitivity[BATCH]... | 18.333333 | 101 | 0.517647 | chennachaos |
9a8ced79843ca7f82f63b1cd0046cfb6efaa5937 | 1,105 | hpp | C++ | source/Input/Mapper.hpp | kurocha/input | 619cbe901ebb2cfd9dd97235d30e596edc96aa14 | [
"MIT",
"Unlicense"
] | null | null | null | source/Input/Mapper.hpp | kurocha/input | 619cbe901ebb2cfd9dd97235d30e596edc96aa14 | [
"MIT",
"Unlicense"
] | null | null | null | source/Input/Mapper.hpp | kurocha/input | 619cbe901ebb2cfd9dd97235d30e596edc96aa14 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Mapper.hpp
// This file is part of the "Input" project and released under the MIT License.
//
// Created by Samuel Williams on 23/2/2019.
// Copyright, 2019, by Samuel Williams. All rights reserved.
//
#pragma once
#include <unordered_map>
namespace Input
{
template <typename ActionT>
class Mapper {
pro... | 19.051724 | 80 | 0.630769 | kurocha |
9a8d5e604c6c9b2f1d4a8aecd6d8b8757fa165a7 | 4,853 | cpp | C++ | src/HashGenerator.cpp | kyberdrb/duplicate_finder | 4971830082b0248d2f5b434f1cdb53eb3da39b6d | [
"CC0-1.0"
] | null | null | null | src/HashGenerator.cpp | kyberdrb/duplicate_finder | 4971830082b0248d2f5b434f1cdb53eb3da39b6d | [
"CC0-1.0"
] | null | null | null | src/HashGenerator.cpp | kyberdrb/duplicate_finder | 4971830082b0248d2f5b434f1cdb53eb3da39b6d | [
"CC0-1.0"
] | null | null | null | #include "HashGenerator.h"
#include "openssl/sha.h"
#include <array>
#include <vector>
#include <fstream>
#include <iomanip>
#include <sstream>
// TODO maybe template this, or abstract this into virtual functions, according to the algorithm type - tested on SHA1 with SHA_CTX and with SHA256 with SHA256_CTX
// - ma... | 43.720721 | 437 | 0.712343 | kyberdrb |
9a901d305711cf12167bd8866b489ce1e756f783 | 4,969 | cpp | C++ | tuw_multi_robot_test/src/goal_generator.cpp | JakubHazik/tuw_multi_robot | 9c5c8a2ed87e0bf6f9a573e38b4d5790dfc25aba | [
"BSD-3-Clause"
] | null | null | null | tuw_multi_robot_test/src/goal_generator.cpp | JakubHazik/tuw_multi_robot | 9c5c8a2ed87e0bf6f9a573e38b4d5790dfc25aba | [
"BSD-3-Clause"
] | null | null | null | tuw_multi_robot_test/src/goal_generator.cpp | JakubHazik/tuw_multi_robot | 9c5c8a2ed87e0bf6f9a573e38b4d5790dfc25aba | [
"BSD-3-Clause"
] | null | null | null | #include <ros/ros.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <cmath>
#include <geometry_msgs/Pose.h>
#include <geometry_msgs/PoseStamped.h>
#include <nav_msgs/Odometry.h>
#include <tf/transform_datatypes.h>
#include <tf/transform_listener.h>
#include <std_msgs/Bool.h>
#inclu... | 29.229412 | 177 | 0.674784 | JakubHazik |
9a93b9f0558350f01e0429a0954ddcd5a9f2caa1 | 1,323 | cpp | C++ | src/wolf3d_shaders/ws_shaders.cpp | Daivuk/wolf3d-shaders | 0f3c0ab82422d068f6440af6649603774f0543b2 | [
"DOC",
"Unlicense"
] | 5 | 2019-09-14T14:08:46.000Z | 2021-04-27T11:21:43.000Z | src/wolf3d_shaders/ws_shaders.cpp | Daivuk/wolf3d-shaders | 0f3c0ab82422d068f6440af6649603774f0543b2 | [
"DOC",
"Unlicense"
] | null | null | null | src/wolf3d_shaders/ws_shaders.cpp | Daivuk/wolf3d-shaders | 0f3c0ab82422d068f6440af6649603774f0543b2 | [
"DOC",
"Unlicense"
] | 1 | 2019-10-19T04:19:46.000Z | 2019-10-19T04:19:46.000Z | #include "ws.h"
static void checkShader(GLuint handle)
{
GLint bResult;
glGetShaderiv(handle, GL_COMPILE_STATUS, &bResult);
if (bResult == GL_FALSE)
{
GLchar infoLog[1024];
glGetShaderInfoLog(handle, 1023, NULL, infoLog);
Quit((char *)(std::string("shader compile faile... | 30.767442 | 103 | 0.664399 | Daivuk |
9a97c9bb78b98356e6c59f1881cc8cbd28877248 | 29,999 | cc | C++ | libs/core/tests/Logging/LogTest.cc | v8App/v8App | 96c5278ae9078d508537f2e801b9ba0272ab1168 | [
"MIT"
] | null | null | null | libs/core/tests/Logging/LogTest.cc | v8App/v8App | 96c5278ae9078d508537f2e801b9ba0272ab1168 | [
"MIT"
] | null | null | null | libs/core/tests/Logging/LogTest.cc | v8App/v8App | 96c5278ae9078d508537f2e801b9ba0272ab1168 | [
"MIT"
] | null | null | null | // Copyright 2020 The v8App Authors. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include "Logging/Log.h"
#include "Logging/ILogSink.h"
#include "Logging/LogMacros.h"
#include "TestLogSink.h"
n... | 34.923166 | 160 | 0.555852 | v8App |
9a97eb315751fbcc82f4df4a2637e3039cea497e | 706 | hpp | C++ | srcs/deque/common.hpp | tristiisch/containers_test | 5a4a0c098b69e79fa62348074ca0ccaeda5dde73 | [
"MIT"
] | null | null | null | srcs/deque/common.hpp | tristiisch/containers_test | 5a4a0c098b69e79fa62348074ca0ccaeda5dde73 | [
"MIT"
] | null | null | null | srcs/deque/common.hpp | tristiisch/containers_test | 5a4a0c098b69e79fa62348074ca0ccaeda5dde73 | [
"MIT"
] | null | null | null | #include "../base.hpp"
#if !defined(USING_STD)
# include "deque.hpp"
#else
# include <deque>
#endif /* !defined(STD) */
template <typename T>
void printSize(TESTED_NAMESPACE::deque<T> const &deq, bool print_content = 1)
{
std::cout << "size: " << deq.size() << std::endl;
std::cout << "max_size: " << deq.max_size() <... | 30.695652 | 77 | 0.575071 | tristiisch |
9a9ae4d19d7c9dacabe4dacbf24219d9ea5e3e0b | 907 | cpp | C++ | Plugins/StoryGraphPlugin/Source/StoryGraphPluginEditor/Commands_StoryGraph.cpp | Xian-Yun-Jun/StoryGraph | 36b4a9a24e86e963b1d1d61d4fd5bdfe2eabef9b | [
"MIT"
] | 126 | 2016-12-24T13:58:18.000Z | 2022-03-10T03:20:47.000Z | Plugins/StoryGraphPlugin/Source/StoryGraphPluginEditor/Commands_StoryGraph.cpp | Xian-Yun-Jun/StoryGraph | 36b4a9a24e86e963b1d1d61d4fd5bdfe2eabef9b | [
"MIT"
] | 5 | 2017-01-05T08:23:30.000Z | 2018-01-30T19:38:33.000Z | Plugins/StoryGraphPlugin/Source/StoryGraphPluginEditor/Commands_StoryGraph.cpp | Xian-Yun-Jun/StoryGraph | 36b4a9a24e86e963b1d1d61d4fd5bdfe2eabef9b | [
"MIT"
] | 45 | 2016-12-25T02:21:45.000Z | 2022-02-14T16:06:58.000Z | // Copyright 2016 Dmitriy Pavlov
#include "Commands_StoryGraph.h"
void FCommands_StoryGraph::RegisterCommands()
{
#define LOCTEXT_NAMESPACE "Commands_StoryGraphCommands"
UI_COMMAND(CheckObjects, "Check Objects", "Check Objects", EUserInterfaceActionType::Button, FInputChord());
UI_COMMAND(SaveAsset, "Save Asset"... | 47.736842 | 130 | 0.790518 | Xian-Yun-Jun |
9a9bf1f263300b076fa07a5f58592f044b637a84 | 687 | cpp | C++ | src/Games/TicTacToe/ActGens/DefaultActGen.cpp | ClubieDong/BoardGameAI | 588506278f606fa6bef2864875bf8f78557ef03b | [
"MIT"
] | 2 | 2021-05-26T07:17:24.000Z | 2021-05-26T07:21:16.000Z | src/Games/TicTacToe/ActGens/DefaultActGen.cpp | ClubieDong/ChessAI | 588506278f606fa6bef2864875bf8f78557ef03b | [
"MIT"
] | null | null | null | src/Games/TicTacToe/ActGens/DefaultActGen.cpp | ClubieDong/ChessAI | 588506278f606fa6bef2864875bf8f78557ef03b | [
"MIT"
] | null | null | null | #include "DefaultActGen.hpp"
#include <cassert>
namespace tictactoe
{
bool DefaultActGen::NextAction(const ActGenDataBase *, ActionBase &_act) const
{
// Assert and convert polymorphic types
assert(_act.GetGameType() == GameType::TicTacToe);
auto &act = dynamic_cast<Action &>(_act);
... | 25.444444 | 82 | 0.512373 | ClubieDong |
9a9f4a5d68efc52dedec28e95460c67e41801baa | 1,990 | cpp | C++ | tree_traversal.cpp | ivan18m/cpp-practice | 1e9ae7d55a77f72a297e1ceb69fadf1cc4e7dfc6 | [
"BSD-3-Clause"
] | null | null | null | tree_traversal.cpp | ivan18m/cpp-practice | 1e9ae7d55a77f72a297e1ceb69fadf1cc4e7dfc6 | [
"BSD-3-Clause"
] | null | null | null | tree_traversal.cpp | ivan18m/cpp-practice | 1e9ae7d55a77f72a297e1ceb69fadf1cc4e7dfc6 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file tree_traversal.cpp
* @author Ivan Mercep
* @brief
* This program contains_
* Binary Tree traversal methods: preorder, inorder, postorder.
* Functions to print and swap the binary tree.
* @version 0.1
* @date 2021-09-06
*
* @copyright Copyright (c) 2021
*
*/
#include <iostream>
struct Node
{
... | 17.155172 | 63 | 0.556281 | ivan18m |
9aa555ee9e29a90c226a3125471700e640942b3e | 5,415 | hpp | C++ | include/RootMotion/FinalIK/FullBodyBipedIK.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/FullBodyBipedIK.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/FullBodyBipedIK.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: RootMotion.FinalIK.IK
#include "RootMotion/FinalIK/IK.hpp"
#include "... | 44.752066 | 180 | 0.708218 | darknight1050 |
9aaa45337a7ce537f2c6b688feefc10d63137e47 | 7,836 | cxx | C++ | HLT/TPCLib/HWCFemulator/AliHLTTPCHWCFEmulator.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | HLT/TPCLib/HWCFemulator/AliHLTTPCHWCFEmulator.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | HLT/TPCLib/HWCFemulator/AliHLTTPCHWCFEmulator.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | // $Id$
//****************************************************************************
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* ... | 33.20339 | 117 | 0.662711 | AllaMaevskaya |
9ab275d54314d22f77d0f51a27d325d4d8fa4bd0 | 1,145 | cpp | C++ | ToneArmEngine/OpenGLTransparencyPass.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | ToneArmEngine/OpenGLTransparencyPass.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | ToneArmEngine/OpenGLTransparencyPass.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | /*
========================
Copyright (c) 2014 Vinyl Games Studio
OpenGLTransparencyPass
Created by: Karl Merten
Created on: 04/08/2014
========================
*/
#include "OpenGLTransparencyPass.h"
#include "Renderable.h"
#include <GL\glew.h>
namespace vgs {
OpenGLTransparencyPass* OpenGLTransparencyPass::C... | 20.087719 | 93 | 0.710917 | Mertank |
9abc64573b83e2dd51fd9bbc4cd10c7dd3a0b0b4 | 78 | cpp | C++ | sem11-mmap-instrumentation/ub.cpp | karmashka/caos_2019-2020 | ecfeb944a6a8d8392ac05e833d0d77cafdd3e88d | [
"MIT"
] | 32 | 2019-10-04T20:02:32.000Z | 2020-07-21T17:18:06.000Z | sem11-mmap-instrumentation/ub.cpp | karmashka/caos_2019-2020 | ecfeb944a6a8d8392ac05e833d0d77cafdd3e88d | [
"MIT"
] | 2 | 2020-04-05T12:52:13.000Z | 2020-05-04T23:42:02.000Z | sem11-mmap-instrumentation/ub.cpp | karmashka/caos_2019-2020 | ecfeb944a6a8d8392ac05e833d0d77cafdd3e88d | [
"MIT"
] | 10 | 2020-09-03T17:25:42.000Z | 2022-02-18T23:36:51.000Z | // %%cpp ub.cpp
int main(int argc, char** argv) {
return -argc << 31;
}
| 11.142857 | 33 | 0.538462 | karmashka |
9abe9a4e62c41a2cf187b1940fe6d37969a3bf51 | 4,709 | cpp | C++ | cpp/pipesquare/pipesquare.cpp | jakvrh1/paralelni-milkshake | 42b8151482b0e831ab1f2f6058cd389193372022 | [
"MIT"
] | null | null | null | cpp/pipesquare/pipesquare.cpp | jakvrh1/paralelni-milkshake | 42b8151482b0e831ab1f2f6058cd389193372022 | [
"MIT"
] | null | null | null | cpp/pipesquare/pipesquare.cpp | jakvrh1/paralelni-milkshake | 42b8151482b0e831ab1f2f6058cd389193372022 | [
"MIT"
] | null | null | null | /**
* Uporaba cevovoda s štirimi stopnjami;
* posamezno stopnjo lahko opravlja več niti
*/
#include <iostream>
#include <random>
#include <pthread.h>
#include <unistd.h>
#include "../input.hpp"
#include "../rle.hpp"
#include "../huffman.hpp"
#include "../output.hpp"
#include "../stream.hpp"
#define REPS 1000
#de... | 27.219653 | 116 | 0.661712 | jakvrh1 |
9ac1b7250246294f2497523086d456027f7f9314 | 19,860 | cpp | C++ | Samples/Win7Samples/netds/wirelessdiagnostics/WlExtHC.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/netds/wirelessdiagnostics/WlExtHC.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/netds/wirelessdiagnostics/WlExtHC.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (C) 2006 Microsoft Corporation. All Rights Reserved.
//
// Module:... | 23.146853 | 126 | 0.512739 | windows-development |
9acd71e8de724a3ce78857d7a32b50b495be5614 | 858 | cpp | C++ | outbound_place/src/mosaic.cpp | ManuelBeschi/manipulation | 0caddd6dc78dc6d00a39b2e674093d1eafdc7221 | [
"BSD-3-Clause"
] | null | null | null | outbound_place/src/mosaic.cpp | ManuelBeschi/manipulation | 0caddd6dc78dc6d00a39b2e674093d1eafdc7221 | [
"BSD-3-Clause"
] | null | null | null | outbound_place/src/mosaic.cpp | ManuelBeschi/manipulation | 0caddd6dc78dc6d00a39b2e674093d1eafdc7221 | [
"BSD-3-Clause"
] | 1 | 2021-03-12T09:50:37.000Z | 2021-03-12T09:50:37.000Z | #include <ros/ros.h>
#include <outbound_place/outbound_mosaic.h>
#include <moveit_msgs/GetPlanningScene.h>
int main(int argc, char **argv)
{
ros::init(argc, argv, "outbound_mosaic");
ros::NodeHandle nh;
ros::NodeHandle pnh("~");
ros::ServiceClient ps_client=nh.serviceClient<moveit_msgs::GetPlanningScene>("/g... | 22.578947 | 102 | 0.693473 | ManuelBeschi |
9ad1d5d732e096c5ce1dfba081bf6fde98c5a130 | 3,713 | cpp | C++ | src/navigation/camera.cpp | h4k1m0u/first-person-shooter | b1e60d77edb3144daf252f65c28a340aa63e6945 | [
"MIT"
] | null | null | null | src/navigation/camera.cpp | h4k1m0u/first-person-shooter | b1e60d77edb3144daf252f65c28a340aa63e6945 | [
"MIT"
] | null | null | null | src/navigation/camera.cpp | h4k1m0u/first-person-shooter | b1e60d77edb3144daf252f65c28a340aa63e6945 | [
"MIT"
] | null | null | null | #include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/constants.hpp>
#include <algorithm>
#include <iostream>
#include "navigation/camera.hpp"
// not declared as private members as constants cause class's implicit copy-constructor to be deleted (prevents re-assignment)
// movement constants
const float SPEED = 0.... | 35.361905 | 126 | 0.699973 | h4k1m0u |
9ad2e36a016ddc139c298b984b4c0c4d6e1d7c53 | 10,937 | hpp | C++ | external/boost_1_60_0/qsboost/preprocessor/slot/detail/slot3.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/preprocessor/slot/detail/slot3.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/preprocessor/slot/detail/slot3.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | # /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... | 40.809701 | 324 | 0.782481 | wouterboomsma |
9ad3840865e3e2067328758f90a58750f42428df | 45,140 | cpp | C++ | wbs/src/Basic/UtilMath.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 6 | 2017-05-26T21:19:41.000Z | 2021-09-03T14:17:29.000Z | wbs/src/Basic/UtilMath.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 5 | 2016-02-18T12:39:58.000Z | 2016-03-13T12:57:45.000Z | wbs/src/Basic/UtilMath.cpp | RNCan/WeatherBasedSimulationFramework | 19df207d11b1dddf414d78e52bece77f31d45df8 | [
"MIT"
] | 1 | 2019-06-16T02:49:20.000Z | 2019-06-16T02:49:20.000Z | //******************************************************************************
// project: Weather-based simulation framework (WBSF)
// Programmer: Rémi Saint-Amant
//
// It under the terms of the GNU General Public License as published by
// the Free Software Foundation
// It is provided "as is" ... | 27.407407 | 176 | 0.554741 | RNCan |
9ad6a8505f14e03c3def5a20acdd37af0be43ce6 | 2,092 | cpp | C++ | test/TestHelpers/ClangCompileHelper.cpp | ptensschi/CppUMockGen | d11f12297688f99863238b263f241b6e3ac66dfd | [
"BSD-3-Clause"
] | null | null | null | test/TestHelpers/ClangCompileHelper.cpp | ptensschi/CppUMockGen | d11f12297688f99863238b263f241b6e3ac66dfd | [
"BSD-3-Clause"
] | null | null | null | test/TestHelpers/ClangCompileHelper.cpp | ptensschi/CppUMockGen | d11f12297688f99863238b263f241b6e3ac66dfd | [
"BSD-3-Clause"
] | 1 | 2019-01-10T20:36:24.000Z | 2019-01-10T20:36:24.000Z | #include "ClangCompileHelper.hpp"
#include "ClangHelper.hpp"
#include <iostream>
bool ClangCompileHelper::CheckCompilation( const std::string &testedHeader, const std::string &testedSource )
{
#ifdef DISABLE_COMPILATION_CHECK
return true;
#else
CXIndex index = clang_createIndex( 0, 0 );
const char* clangO... | 34.295082 | 121 | 0.5674 | ptensschi |
9adc96be6da2e72d5bbd72bc81c6703360f88afa | 2,076 | cpp | C++ | code/random/functions.cpp | adm244/mwsilver | d88ebb240095f0bd0adfe3cc983fa504d974ba83 | [
"Unlicense"
] | null | null | null | code/random/functions.cpp | adm244/mwsilver | d88ebb240095f0bd0adfe3cc983fa504d974ba83 | [
"Unlicense"
] | null | null | null | code/random/functions.cpp | adm244/mwsilver | d88ebb240095f0bd0adfe3cc983fa504d974ba83 | [
"Unlicense"
] | null | null | null | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copy... | 28.054054 | 71 | 0.753854 | adm244 |
9aea51745f3235fd439cd911bbe86c13eca10d38 | 12,965 | cpp | C++ | winmisc/shared/plugin.winmisc.cpp | ggcrunchy/solar2d-plugins | c3c9f41659ea64a1b04f992c3ca4b8549aa0dbe1 | [
"MIT"
] | 12 | 2020-05-04T08:49:04.000Z | 2021-12-30T09:35:17.000Z | winmisc/shared/plugin.winmisc.cpp | ggcrunchy/solar2d-plugins | c3c9f41659ea64a1b04f992c3ca4b8549aa0dbe1 | [
"MIT"
] | null | null | null | winmisc/shared/plugin.winmisc.cpp | ggcrunchy/solar2d-plugins | c3c9f41659ea64a1b04f992c3ca4b8549aa0dbe1 | [
"MIT"
] | 3 | 2021-02-19T18:39:02.000Z | 2022-03-09T17:14:57.000Z | /*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell c... | 30.650118 | 101 | 0.514925 | ggcrunchy |
9af2ffea551526586de0251519d1ae9fac9ae037 | 587 | cpp | C++ | String/MaximumOccurence.cpp | sanp9/DSA-Questions | f265075b83f66ec696576be3eaa5517ee387d5cf | [
"MIT"
] | null | null | null | String/MaximumOccurence.cpp | sanp9/DSA-Questions | f265075b83f66ec696576be3eaa5517ee387d5cf | [
"MIT"
] | null | null | null | String/MaximumOccurence.cpp | sanp9/DSA-Questions | f265075b83f66ec696576be3eaa5517ee387d5cf | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
void maxOccur(string str)
{
int freq[26] = {0};
char ans = 'a';
int maxF = 0;
for (int i = 0; i < str.length(); i++)
{
freq[str[i] - 'a']++;
} // for maintaining the count of occurrences of characters
for (int i = 0; i < 2... | 15.447368 | 63 | 0.46678 | sanp9 |
9af73ce4c787f073abdfd54bc2461d8070e92fe4 | 5,009 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise13Def.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise13Def.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartIII/bjarneStroustrupC++PartIII/Chapter17Exercise13Def.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE Linked list Chapter17Exercise13.cpp
"Bjarne Stroustrup "C++ Programming: Principles and Practice.""
COMMENT
Objcective: Modify Link to include struct God,
containing members of type string:
name, mythology, vehicle, weapon.
Write: print_all(), add_ordered() functions.
... | 15.555901 | 80 | 0.489918 | Ziezi |
9af9f58090a73a97ed73dde269039e1b91b34a4f | 253 | cpp | C++ | src/rick/RickState.cpp | ZZBGames/games | 8da707b0beb38aa4308dde1ce70ebe38fd82003a | [
"MIT"
] | null | null | null | src/rick/RickState.cpp | ZZBGames/games | 8da707b0beb38aa4308dde1ce70ebe38fd82003a | [
"MIT"
] | null | null | null | src/rick/RickState.cpp | ZZBGames/games | 8da707b0beb38aa4308dde1ce70ebe38fd82003a | [
"MIT"
] | null | null | null | //
// Created by mathbagu on 19/03/16.
//
#include <zzbgames/rick/RickState.hpp>
namespace zzbgames
{
namespace rick
{
RickState::RickState(RickStateStack& stateStack, RickContext& context)
: State(stateStack),
m_context(context)
{
}
}
} | 12.047619 | 70 | 0.699605 | ZZBGames |
9afaa845542f25886c2843e813a355e93dc14bad | 2,637 | hpp | C++ | libsynthpp/src/LSP/MIDI/Messages/BasicMessage.hpp | my04337/libsynthpp | 99584d0e568e6c92a5c298d4fdcde277fe7511f1 | [
"MIT"
] | 1 | 2018-01-31T14:02:32.000Z | 2018-01-31T14:02:32.000Z | libsynthpp/src/LSP/MIDI/Messages/BasicMessage.hpp | my04337/libsynthpp | 99584d0e568e6c92a5c298d4fdcde277fe7511f1 | [
"MIT"
] | 1 | 2018-02-21T02:33:47.000Z | 2018-02-21T02:36:23.000Z | libsynthpp/src/LSP/MIDI/Messages/BasicMessage.hpp | my04337/libsynthpp | 99584d0e568e6c92a5c298d4fdcde277fe7511f1 | [
"MIT"
] | 1 | 2018-02-20T05:30:52.000Z | 2018-02-20T05:30:52.000Z | #pragma once
#include <LSP/Base/Base.hpp>
#include <LSP/MIDI/Message.hpp>
namespace LSP::MIDI::Messages
{
/// ノートオン
class NoteOn
: public ChannelVoiceMessage
{
public:
NoteOn(uint8_t ch, uint8_t noteNo, uint8_t vel)
: mChannel(ch), mNoteNo(noteNo), mVelocity(vel)
{}
uint8_t channel()const noexcept override f... | 19.977273 | 69 | 0.740235 | my04337 |
9afc1a96924b965c5593c598045877e39440a6ed | 511 | cpp | C++ | 2021/day24/tests/TestClass.cpp | alexandru-andronache/adventofcode | ee41d82bae8b705818fda5bd43e9962bb0686fec | [
"Apache-2.0"
] | 3 | 2021-07-01T14:31:06.000Z | 2022-03-29T20:41:21.000Z | 2021/day24/tests/TestClass.cpp | alexandru-andronache/adventofcode | ee41d82bae8b705818fda5bd43e9962bb0686fec | [
"Apache-2.0"
] | null | null | null | 2021/day24/tests/TestClass.cpp | alexandru-andronache/adventofcode | ee41d82bae8b705818fda5bd43e9962bb0686fec | [
"Apache-2.0"
] | null | null | null | #include "TestClass.h"
#include "../test.h"
namespace aoc2021_day24 {
TEST_F(Tests2021Day24, part_1_test) {
ASSERT_EQ(part_1("../2021/day24/input_test.in"), 0);
}
TEST_F(Tests2021Day24, part_1_real_test) {
ASSERT_EQ(part_1("../2021/day24/input.in"), 0);
}
TEST_F(Tests2021Day24, pa... | 25.55 | 60 | 0.632094 | alexandru-andronache |
9aff74edeb68c2441c3d1ca7b99dd3393f623d08 | 2,466 | hpp | C++ | libbio/include/bio/gpu/gpu_TransactionTypes.hpp | biosphere-switch/libbio | 7c892ff1e0f47e4612f3b66fdf043216764dfd1b | [
"MIT"
] | null | null | null | libbio/include/bio/gpu/gpu_TransactionTypes.hpp | biosphere-switch/libbio | 7c892ff1e0f47e4612f3b66fdf043216764dfd1b | [
"MIT"
] | null | null | null | libbio/include/bio/gpu/gpu_TransactionTypes.hpp | biosphere-switch/libbio | 7c892ff1e0f47e4612f3b66fdf043216764dfd1b | [
"MIT"
] | null | null | null |
#pragma once
#include <bio/gpu/gpu_Types.hpp>
namespace bio::gpu {
enum class ConnectionApi : i32 {
EGL = 1,
Cpu = 2,
Media = 3,
Camera = 4,
};
enum class DisconnectMode : u32 {
Api = 0,
AllLocal = 1,
};
struct QueueBufferOutput {
u32 widt... | 20.213115 | 73 | 0.544201 | biosphere-switch |
b104357842a56d514edbcdeada4e43077f9c4043 | 433 | cpp | C++ | logsource.cpp | rdffg/bcaa_importer | f92e0b39673b5c557540154d4567c53a15adadcd | [
"Apache-2.0"
] | null | null | null | logsource.cpp | rdffg/bcaa_importer | f92e0b39673b5c557540154d4567c53a15adadcd | [
"Apache-2.0"
] | 2 | 2019-05-07T22:49:31.000Z | 2021-08-20T20:03:53.000Z | logsource.cpp | rdffg/bcaa_importer | f92e0b39673b5c557540154d4567c53a15adadcd | [
"Apache-2.0"
] | null | null | null | #include "logsource.h"
#include <QCoreApplication>
LogSource::LogSource(QObject *parent) : QObject(parent)
, m_logtext("")
{
}
void LogSource::addLogText(QString text) {
m_logtext += "\n" + text;
QCoreApplication::processEvents();
emit dataChanged();
}
void LogSource::clearLogText() {
... | 16.653846 | 56 | 0.628176 | rdffg |
623f6880c191cb8b07b9393f313a4d08c17c5afa | 1,876 | hpp | C++ | RL-master/Engine/UE3/PropertyFlags.hpp | jeremwhitten/RL | 15ff898afe82b6a07e076b8a3609c81a0942e6ca | [
"MIT"
] | 230 | 2018-01-26T07:20:25.000Z | 2022-03-26T14:57:00.000Z | Engine/UE3/PropertyFlags.hpp | ChairGraveyard/UnrealEngineSDKGenerator | 0589f640fa61c05316c1708e6c3b9ab3e13eb6aa | [
"MIT"
] | 1 | 2020-10-18T16:30:26.000Z | 2020-10-18T16:30:26.000Z | Engine/UE3/PropertyFlags.hpp | ChairGraveyard/UnrealEngineSDKGenerator | 0589f640fa61c05316c1708e6c3b9ab3e13eb6aa | [
"MIT"
] | 164 | 2018-01-15T09:11:46.000Z | 2022-03-08T11:57:12.000Z | #pragma once
#include <type_traits>
#include <string>
enum class UEPropertyFlags : uint64_t
{
Edit = 0x0000000000000001,
Const = 0x0000000000000002,
Input = 0x0000000000000004,
ExportObject = 0x0000000000000008,
OptionalParm = 0x0000000000000010,
Net = 0x0000000000000020,
EditFixedSize = 0x0000000000000040,
P... | 32.344828 | 189 | 0.816631 | jeremwhitten |
62489fe7a0d3546aec6300f80ec138a763f427b7 | 2,775 | cpp | C++ | performerservice.cpp | audurara/verklegt1 | ca07845b9fc7129cb4c7ea4c3f1bad46899a4bcf | [
"MIT"
] | 1 | 2016-11-28T12:24:02.000Z | 2016-11-28T12:24:02.000Z | performerservice.cpp | audurara/verklegt1 | ca07845b9fc7129cb4c7ea4c3f1bad46899a4bcf | [
"MIT"
] | null | null | null | performerservice.cpp | audurara/verklegt1 | ca07845b9fc7129cb4c7ea4c3f1bad46899a4bcf | [
"MIT"
] | null | null | null | #include "performerservice.h"
#include "dataaccess.h"
#include <algorithm>
#include <iostream>
using namespace std;
struct PerformerComparison { //Struct sem ber saman nöfn
bool operator() (Performer i,Performer j) {
return (i.getName()<j.getName());
}
};
struct CompareYear{ //Fæðingarár borin saman
bo... | 25.458716 | 153 | 0.654054 | audurara |
6253a9e2743fc74e37b6814935199d1a09e23d38 | 2,008 | cc | C++ | mains/pool_identity_testing_main.cc | guilhermemtr/semistandard-tableaux | bdc25df3c091bb457055579455bb05d4d7f2f5b5 | [
"MIT"
] | null | null | null | mains/pool_identity_testing_main.cc | guilhermemtr/semistandard-tableaux | bdc25df3c091bb457055579455bb05d4d7f2f5b5 | [
"MIT"
] | null | null | null | mains/pool_identity_testing_main.cc | guilhermemtr/semistandard-tableaux | bdc25df3c091bb457055579455bb05d4d7f2f5b5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <boost/program_options.hpp>
#include <cstdio>
#include "placid.hpp"
namespace po = boost::program_options;
namespace p = __placid;
int
main (int argc, char **argv)
{
p::free_monoid::element aaa;
p::tropical_elements::number bbb;
po::options_description desc ("Options");
... | 22.561798 | 80 | 0.571713 | guilhermemtr |
625584b9c6553ba26611179070c2a817d20fa1f9 | 1,626 | cpp | C++ | leetcode/leetcode_1170_easy_compare_strings_by_frequency_of_the_smallest_character/main.v01.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | leetcode/leetcode_1170_easy_compare_strings_by_frequency_of_the_smallest_character/main.v01.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | leetcode/leetcode_1170_easy_compare_strings_by_frequency_of_the_smallest_character/main.v01.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | // https://leetcode-cn.com/problems/compare-strings-by-frequency-of-the-smallest-character/
#include <iostream>
#include <vector>
#include <cstring>
using namespace std;
// submit start
class Solution {
public:
vector<int> numSmallerByFrequency(vector<string>& queries, vector<string>& words) {
vector<int> ... | 26.225806 | 91 | 0.48893 | friskit-china |
625610649e940f4c7beef65f33bc9fcef38980d2 | 5,402 | cpp | C++ | ajaapps/crossplatform/demoapps/ntv2fieldburn/main.cpp | ibstewart/ntv2 | 0acbac70a0b5e6509cca78cfbf69974c73c10db9 | [
"MIT"
] | null | null | null | ajaapps/crossplatform/demoapps/ntv2fieldburn/main.cpp | ibstewart/ntv2 | 0acbac70a0b5e6509cca78cfbf69974c73c10db9 | [
"MIT"
] | null | null | null | ajaapps/crossplatform/demoapps/ntv2fieldburn/main.cpp | ibstewart/ntv2 | 0acbac70a0b5e6509cca78cfbf69974c73c10db9 | [
"MIT"
] | null | null | null | /* SPDX-License-Identifier: MIT */
/**
@file ntv2fieldburn/main.cpp
@brief Demonstration application to capture frames from the SDI input as two distinct fields
in separate, non-contiguous memory locations, "burn" a timecode window into each field,
and recombine the modified fields for SDI playout.
@c... | 41.236641 | 144 | 0.666235 | ibstewart |
6259cba42f6fc4ed7d503b6174f2f50ca56e30f2 | 5,700 | cpp | C++ | latte-dock/app/view/helpers/screenedgeghostwindow.cpp | VaughnValle/lush-pop | cdfe9d7b6a7ebb89ba036ab9a4f07d8db6817355 | [
"MIT"
] | 64 | 2020-07-08T18:49:29.000Z | 2022-03-23T22:58:49.000Z | latte-dock/app/view/helpers/screenedgeghostwindow.cpp | VaughnValle/kanji-pop | 0153059f0c62a8aeb809545c040225da5d249bb8 | [
"MIT"
] | 1 | 2021-04-02T04:39:45.000Z | 2021-09-25T11:53:18.000Z | latte-dock/app/view/helpers/screenedgeghostwindow.cpp | VaughnValle/kanji-pop | 0153059f0c62a8aeb809545c040225da5d249bb8 | [
"MIT"
] | 11 | 2020-12-04T18:19:11.000Z | 2022-01-10T08:50:08.000Z | /*
* Copyright 2018 Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at y... | 31.318681 | 155 | 0.663509 | VaughnValle |
625beffe0f541f450e071f72a9482b6f8578d8e6 | 2,844 | hpp | C++ | include/elemental/blas-like/level1/Transpose.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | include/elemental/blas-like/level1/Transpose.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | include/elemental/blas-like/level1/Transpose.hpp | ahmadia/Elemental-1 | f9a82c76a06728e9e04a4316e41803efbadb5a19 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2009-2013, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#pragma once
#ifndef BLAS_TRAPEZOID_HPP
#define BLAS_TR... | 27.61165 | 79 | 0.503165 | ahmadia |
625ef4959e4ed675f6b571aed964e6b44d9bd680 | 3,045 | cpp | C++ | src/pong_game/Ball.cpp | jjerome/Niski | 58bcc1303cdb6676c051d55e9d7a248dfea65cde | [
"MIT"
] | 1 | 2017-09-19T16:33:06.000Z | 2017-09-19T16:33:06.000Z | src/pong_game/Ball.cpp | jjerome/Niski | 58bcc1303cdb6676c051d55e9d7a248dfea65cde | [
"MIT"
] | null | null | null | src/pong_game/Ball.cpp | jjerome/Niski | 58bcc1303cdb6676c051d55e9d7a248dfea65cde | [
"MIT"
] | null | null | null | #include "pong_game/Ball.h"
#include "pong_game/Paddle.h"
#include "engine/ConVar.h"
#include "renderer/VertexBuffer2D.h"
#include "math/Math.h"
#include "utils/Log.h"
using namespace Niski::Pong_Game;
Niski::Engine::ConVar addPaddleVelocity("PongGame::Ball::AddPaddleVelocity", 0, "If enabled, when the ball collides ... | 25.588235 | 183 | 0.685714 | jjerome |
626695984253639e951f90b2e70651d7ca5877a2 | 14,973 | cc | C++ | libs/gather/test-gather.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/gather/test-gather.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/gather/test-gather.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::Gather: test-buffer.cc
//
// Test harness for gather buffer library
//
// Copyright (c) 2010 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//===============================... | 32.980176 | 84 | 0.646631 | sandtreader |
6269092d278ad6e28176e79aea034cf363d74e23 | 151 | cc | C++ | src/foo/foo.cc | da2ce7/meson-sample-project | 225a2006d8ba207b044fd70a0ac7f4429a4fd27d | [
"MIT"
] | 86 | 2018-05-27T22:05:29.000Z | 2022-03-28T09:21:42.000Z | src/foo/foo.cc | seanwallawalla-forks/meson-sample-project | 0e09d1d1a08f9f19f7e7615e3ed21f548ac56b13 | [
"MIT"
] | 2 | 2019-08-14T09:06:29.000Z | 2019-08-16T14:20:01.000Z | src/foo/foo.cc | seanwallawalla-forks/meson-sample-project | 0e09d1d1a08f9f19f7e7615e3ed21f548ac56b13 | [
"MIT"
] | 24 | 2018-08-07T17:32:11.000Z | 2021-12-21T07:30:32.000Z | #include "foo/foo.h"
#include <config.h>
#include <iostream>
/*!
Description of implementation of foo
*/
int foo(int param) { return param + 1; }
| 16.777778 | 40 | 0.668874 | da2ce7 |
626b077564a109690a18d2404087d11dbef9bb0f | 2,319 | hpp | C++ | include/commands/Label.hpp | MrHands/Panini | 464999debf6ad6ee9f2184514ba719062f8375b5 | [
"MIT-0"
] | null | null | null | include/commands/Label.hpp | MrHands/Panini | 464999debf6ad6ee9f2184514ba719062f8375b5 | [
"MIT-0"
] | null | null | null | include/commands/Label.hpp | MrHands/Panini | 464999debf6ad6ee9f2184514ba719062f8375b5 | [
"MIT-0"
] | null | null | null | /*
MIT No Attribution
Copyright 2021-2022 Mr. Hands
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge,... | 23.663265 | 77 | 0.688228 | MrHands |
626d8b588ed8c82861226897531f5254cedbada8 | 2,577 | cpp | C++ | TG/bookcodes/ch4/la4728.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | TG/bookcodes/ch4/la4728.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | TG/bookcodes/ch4/la4728.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // LA4728/UVa1453 Square
// Rujia Liu
#include<cstdio>
#include<vector>
#include<cmath>
#include<algorithm>
using namespace std;
struct Point {
int x, y;
Point(int x=0, int y=0):x(x),y(y) { }
};
typedef Point Vector;
Vector operator - (const Point& A, const Point& B) {
return Vector(A.x-B.x, A.y-B.y);
}
int C... | 23.216216 | 82 | 0.503298 | Anyrainel |
627067211edef4a9f95182e1b7a389c3569596cb | 5,872 | cpp | C++ | src/tests/possumwood/subnetwork_from_file.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 1 | 2020-10-06T08:40:10.000Z | 2020-10-06T08:40:10.000Z | src/tests/possumwood/subnetwork_from_file.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | null | null | null | src/tests/possumwood/subnetwork_from_file.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | null | null | null | #include <actions/actions.h>
#include <actions/filesystem_mock.h>
#include <dependency_graph/graph.h>
#include <dependency_graph/metadata_register.h>
#include <dependency_graph/rtti.h>
#include <possumwood_sdk/app.h>
#include <boost/test/unit_test.hpp>
#include <dependency_graph/node_base.inl>
#include <dependency_gra... | 39.945578 | 113 | 0.626703 | LIUJUN-liujun |
6273a616ec80b4bf68bd6f7e18c4744366a5f8c8 | 5,425 | cpp | C++ | Game/OGRE/Tests/PlayPen/src/WindowEmbedding.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/OGRE/Tests/PlayPen/src/WindowEmbedding.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/OGRE/Tests/PlayPen/src/WindowEmbedding.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2005 The OGRE Team
Also see acknowledgements in Readme.html
This program is free software; yo... | 26.207729 | 87 | 0.655668 | hackerlank |
627492e773dce21dc549ac82c039f07e89be3fe7 | 1,690 | cc | C++ | tictoc/txc3.cc | deezombiedude612/masters-omnetpp | 949e5af7235114ca8de2ba9140c6422907bae50d | [
"MIT"
] | null | null | null | tictoc/txc3.cc | deezombiedude612/masters-omnetpp | 949e5af7235114ca8de2ba9140c6422907bae50d | [
"MIT"
] | null | null | null | tictoc/txc3.cc | deezombiedude612/masters-omnetpp | 949e5af7235114ca8de2ba9140c6422907bae50d | [
"MIT"
] | null | null | null | /*
* txc3.cc
*
* Created on: May 12, 2021
* Author: deezombiedude612
*/
#include <stdio.h>
#include <string.h>
#include <omnetpp.h>
using namespace omnetpp;
/**
* In this class we add a counter, and delete the message after ten exchanges.
*/
class Txc3 : public cSimpleModule {
private:
int counter; ... | 25.606061 | 85 | 0.606509 | deezombiedude612 |
6276f653074c7a3b38e2d082f15873a3e623b514 | 2,706 | hpp | C++ | navigation_layer/fovis/libfovis/libfovis/libfovis/stereo_calibration.hpp | kartavya2000/Anahita | 9afbf6c238658188df7d0d97b2fec3bd48028c03 | [
"BSD-3-Clause"
] | 5 | 2018-10-22T20:04:24.000Z | 2022-01-04T09:24:46.000Z | navigation_layer/fovis/libfovis/libfovis/libfovis/stereo_calibration.hpp | kartavya2000/Anahita | 9afbf6c238658188df7d0d97b2fec3bd48028c03 | [
"BSD-3-Clause"
] | 19 | 2018-10-03T12:14:35.000Z | 2019-07-07T09:33:14.000Z | navigation_layer/fovis/libfovis/libfovis/libfovis/stereo_calibration.hpp | kartavya2000/Anahita | 9afbf6c238658188df7d0d97b2fec3bd48028c03 | [
"BSD-3-Clause"
] | 15 | 2018-09-09T12:35:15.000Z | 2020-01-03T09:28:19.000Z | #ifndef __fovis_stereo_calibration_hpp__
#define __fovis_stereo_calibration_hpp__
#include <inttypes.h>
#include "camera_intrinsics.hpp"
#include "rectification.hpp"
namespace fovis
{
/**
* \ingroup DepthSources
* \brief Calibration data structure for stereo cameras.
*/
struct StereoCalibrationParameters
{
/**... | 23.530435 | 79 | 0.646711 | kartavya2000 |
62779338af81a8f087be2035267ce0bd8032074e | 1,283 | cxx | C++ | test/telea1.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | test/telea1.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | test/telea1.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | /* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#include <stdio.h>
class A {
public:... | 16.881579 | 74 | 0.359314 | paulwratt |
62782608446126bae4ed17dfdebe4a4923d55144 | 240 | cpp | C++ | src/mwave/mwave_modules/src/mwave_modules/logic_component.cpp | mwaverecycling/ros2-packages | 6ae566d86dc5f724ee69255df3319f6692db6db5 | [
"MIT"
] | null | null | null | src/mwave/mwave_modules/src/mwave_modules/logic_component.cpp | mwaverecycling/ros2-packages | 6ae566d86dc5f724ee69255df3319f6692db6db5 | [
"MIT"
] | null | null | null | src/mwave/mwave_modules/src/mwave_modules/logic_component.cpp | mwaverecycling/ros2-packages | 6ae566d86dc5f724ee69255df3319f6692db6db5 | [
"MIT"
] | null | null | null | // TODO
#include "mwave_modules/logic_component.hpp"
namespace mwave_modules
{
LogicComponent::LogicComponent(const std::string & node_name, const std::string & namespace_)
: mwave_util::BroadcastNode(node_name, namespace_)
{
}
} | 20 | 94 | 0.754167 | mwaverecycling |
627a8d7ebd1e255e5da4c19be872be1eda90f71a | 11,297 | cpp | C++ | util.cpp | Cirras/eomap-classic | 7ba4f5208ce49aeacb17bc4ad016b278388485b8 | [
"Zlib"
] | 2 | 2020-11-02T08:23:11.000Z | 2020-11-03T18:14:51.000Z | util.cpp | Cirras/eomap-classic | 7ba4f5208ce49aeacb17bc4ad016b278388485b8 | [
"Zlib"
] | 4 | 2020-12-09T14:34:56.000Z | 2020-12-14T11:29:59.000Z | util.cpp | Cirras/eomap-classic | 7ba4f5208ce49aeacb17bc4ad016b278388485b8 | [
"Zlib"
] | 2 | 2020-12-09T12:40:10.000Z | 2020-12-14T20:52:10.000Z |
/* $Id: util.cpp 169 2009-10-23 20:17:53Z sausage $
* EOSERV is released under the zlib license.
* See LICENSE.txt for more info.
*/
#include "util.hpp"
#include <algorithm>
#include <ctime>
#include <limits>
#if defined(WIN32) || defined(WIN64)
#include <windows.h>
#endif // defined(WIN32) || defined(WIN64)
na... | 17.624025 | 144 | 0.589449 | Cirras |
627b5d30a69101c87233a69fde12f17eee36e414 | 180 | cpp | C++ | plasma_lambda/test2.cpp | plasma-effect/plasma_lambda | e2113076cd792e76237bd4f37869c6f39534d16f | [
"BSL-1.0"
] | null | null | null | plasma_lambda/test2.cpp | plasma-effect/plasma_lambda | e2113076cd792e76237bd4f37869c6f39534d16f | [
"BSL-1.0"
] | null | null | null | plasma_lambda/test2.cpp | plasma-effect/plasma_lambda | e2113076cd792e76237bd4f37869c6f39534d16f | [
"BSL-1.0"
] | null | null | null | #include"test.hpp"
#if TEST_CODE == 2
#include<iostream>
void test()
{
using namespace plasma::lambda;
auto func = _<1>();
std::cout << func(1, 2, 3) << std::endl;
}
#endif | 12 | 41 | 0.616667 | plasma-effect |
62833a86648c6b50eafb78f2dcb1f5c7c34d5803 | 278 | cpp | C++ | Challenges - Fundamentals/Print Series.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | 3 | 2019-10-04T13:24:16.000Z | 2020-01-22T05:07:02.000Z | Challenges - Fundamentals/Print Series.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | null | null | null | Challenges - Fundamentals/Print Series.cpp | helewrer3/CB_Launchpad | cda17f62a25e15cb914982d1cc24f7ba0e2f7a67 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
//Variables
int N1, N2, n = 1, val;
//Input
cin >> N1 >> N2;
// Process
while(n <= N1)
{
val = 3*n+2;
if(val%N2 != 0)
printf("%d\n", val);
else
N1++;
n++;
}
return 0;
} | 11.12 | 24 | 0.456835 | helewrer3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.