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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71ee75f97a2554d9a1cb1c7024b7d96104074b96 | 5,839 | cpp | C++ | src/input.cpp | adhithyaarun/Plane-Game-3D | aa9c2ec75baa662f3d75d27bd5a5301a4fb99f21 | [
"MIT"
] | null | null | null | src/input.cpp | adhithyaarun/Plane-Game-3D | aa9c2ec75baa662f3d75d27bd5a5301a4fb99f21 | [
"MIT"
] | null | null | null | src/input.cpp | adhithyaarun/Plane-Game-3D | aa9c2ec75baa662f3d75d27bd5a5301a4fb99f21 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <fstream>
#include <vector>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "main.h"
bool cannon_keyboard_input = true;
bool drag_pan = fa... | 28.34466 | 104 | 0.520466 | adhithyaarun |
71f38dc01c19713fef677cab26794d26155cccce | 2,175 | cpp | C++ | trie/trie.cpp | rusucosmin/eMag---Hai-la-Olimpiada- | 8adfa8e9cc6cf357e280a89e15b467c9cd77b2c2 | [
"MIT"
] | null | null | null | trie/trie.cpp | rusucosmin/eMag---Hai-la-Olimpiada- | 8adfa8e9cc6cf357e280a89e15b467c9cd77b2c2 | [
"MIT"
] | null | null | null | trie/trie.cpp | rusucosmin/eMag---Hai-la-Olimpiada- | 8adfa8e9cc6cf357e280a89e15b467c9cd77b2c2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string.h>
using namespace std;
struct Trie {
int cnt, nrfii;
Trie *fiu[26];
Trie() {
cnt = nrfii = 0;
memset(fiu, 0, sizeof(fiu));
}
};
int getord(char x) {
if(x >= 'a' && x <= 'z')
return x - 'a';
if(x >= 'A' ** x <= 'Z')
retur... | 18.913043 | 99 | 0.53977 | rusucosmin |
71f3992f4bc823d6e39f4a146662abf9bef4a5ea | 19,458 | cpp | C++ | cpp/tests/unit-tests/StdComplexDataTypeTest.cpp | naeramarth7/joynr | 3c378d3447cf83678d26ef0def44a29fe1270193 | [
"Apache-2.0"
] | null | null | null | cpp/tests/unit-tests/StdComplexDataTypeTest.cpp | naeramarth7/joynr | 3c378d3447cf83678d26ef0def44a29fe1270193 | [
"Apache-2.0"
] | null | null | null | cpp/tests/unit-tests/StdComplexDataTypeTest.cpp | naeramarth7/joynr | 3c378d3447cf83678d26ef0def44a29fe1270193 | [
"Apache-2.0"
] | null | null | null | /*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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 requir... | 39.710204 | 100 | 0.692312 | naeramarth7 |
71f4f5f29690ea96f7894af73f012517a50d9a85 | 618 | hpp | C++ | src/main_finding_players.hpp | MlsDmitry/RakNet-samples | 05873aecb5c8dac0c0f822845c764bd5f8dc6a6d | [
"MIT"
] | null | null | null | src/main_finding_players.hpp | MlsDmitry/RakNet-samples | 05873aecb5c8dac0c0f822845c764bd5f8dc6a6d | [
"MIT"
] | null | null | null | src/main_finding_players.hpp | MlsDmitry/RakNet-samples | 05873aecb5c8dac0c0f822845c764bd5f8dc6a6d | [
"MIT"
] | null | null | null | #pragma once
#include "RakPeerInterface.h"
#include "RakNetTypes.h"
#include "RakNetDefines.h"
#include "RakNetStatistics.h"
#include "BitStream.h"
#include "StringCompressor.h"
#include "GetTime.h"
#include "MessageIdentifiers.h"
#include "NetworkIDManager.h"
#include "RakSleep.h"
// std::mutex mtx;
// RakNet::RakP... | 23.769231 | 72 | 0.779935 | MlsDmitry |
71f57908aac86476880e84d5d9092902524641f9 | 222 | hpp | C++ | reflex/test/implementation/members/Get.hpp | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | reflex/test/implementation/members/Get.hpp | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | reflex/test/implementation/members/Get.hpp | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | // Tests for Get
template <typename U>
struct St {
struct A {
int a;
static int s;
};
typedef A T;
};
#ifndef __GCCXML__
template <typename U>
int St<U>::A::s = 43;
#endif
template class St<int>;
| 11.1 | 23 | 0.594595 | paulwratt |
71f8202f267e4ebfd95289c46523925636024e83 | 976 | cc | C++ | src/hlib/libcpp/conv.cc | hascal/llvm | f9893068ec2cff12889d2a8c3f935bccda8769e3 | [
"MIT"
] | null | null | null | src/hlib/libcpp/conv.cc | hascal/llvm | f9893068ec2cff12889d2a8c3f935bccda8769e3 | [
"MIT"
] | null | null | null | src/hlib/libcpp/conv.cc | hascal/llvm | f9893068ec2cff12889d2a8c3f935bccda8769e3 | [
"MIT"
] | null | null | null |
int to_int(string s){
return std::stoi(s);
}
int to_int(float s){
return (int)s;
}
int to_int(bool s){
return (int)s;
}
int to_int(int s){
return s;
}
int to_int(char s){
return (int)s-48; // ASCII chars starts with 48
}
string to_string(int s){
string res = std::to_string(s);
return res;
}
string to_stri... | 12.2 | 48 | 0.643443 | hascal |
71fb19f6b6f42cb73cd54f5f176f7b060237af0f | 3,097 | cpp | C++ | dal gita/src/Prostopadloscian.cpp | Szymon253191/Zadanie_Dron_Podwodny | c5c88f2c67bd90eb6c216dc068b1bf60483cd766 | [
"MIT"
] | null | null | null | dal gita/src/Prostopadloscian.cpp | Szymon253191/Zadanie_Dron_Podwodny | c5c88f2c67bd90eb6c216dc068b1bf60483cd766 | [
"MIT"
] | null | null | null | dal gita/src/Prostopadloscian.cpp | Szymon253191/Zadanie_Dron_Podwodny | c5c88f2c67bd90eb6c216dc068b1bf60483cd766 | [
"MIT"
] | null | null | null | #include "Prostopadloscian.hh"
Prostopadloscian::Prostopadloscian()
{
dl_bokow = Wektor<double,3> W;
}
Prostopadloscian::Prostopadloscian(double A,double B, double H,drawNS::Draw3DAPI *api)
{
dl_bokow[0] = A;
dl_bokow[1] = B;
dl_bokow[2] = H;
(*this).gplt = api;
}
void Prostopadloscian::ustal_wier... | 38.234568 | 111 | 0.587665 | Szymon253191 |
9f98b748adce7385c99149eecc6cdfc737fa0f0e | 5,773 | cpp | C++ | game_vision/src/main.cpp | SHEUN1/gameVision | 089f2fa1144e37a141dbb2e05d36c3131b92af0a | [
"MIT"
] | 20 | 2017-08-20T07:32:03.000Z | 2022-02-26T16:33:36.000Z | game_vision/src/main.cpp | SHEUN1/gameVision | 089f2fa1144e37a141dbb2e05d36c3131b92af0a | [
"MIT"
] | null | null | null | game_vision/src/main.cpp | SHEUN1/gameVision | 089f2fa1144e37a141dbb2e05d36c3131b92af0a | [
"MIT"
] | 2 | 2018-07-03T06:47:39.000Z | 2020-03-12T16:52:17.000Z | //============================================================================
// Name : main.cpp
// Author : Olu Adebari
// Description : Process the captured video game frame, analyse and then send data over to Python caller program
//=======================================================================... | 40.370629 | 286 | 0.778971 | SHEUN1 |
9f9fd055d24b87d0050cf7e7b729e23a7930dd62 | 2,455 | cc | C++ | course/test/src/CellMap_TEST.cc | LucasJSch/terrarium_simulator | 93dbd4a340d38ec54de6dc4876feceeb1f4a0094 | [
"Apache-2.0"
] | null | null | null | course/test/src/CellMap_TEST.cc | LucasJSch/terrarium_simulator | 93dbd4a340d38ec54de6dc4876feceeb1f4a0094 | [
"Apache-2.0"
] | 1 | 2020-11-12T15:40:37.000Z | 2020-11-12T15:40:37.000Z | course/test/src/CellMap_TEST.cc | LucasJSch/terrarium_simulator | 93dbd4a340d38ec54de6dc4876feceeb1f4a0094 | [
"Apache-2.0"
] | null | null | null | #include "cellmap.h"
#include "ant.h"
#include "cell.h"
#include <cmath>
#include <sstream>
#include <string>
#include "gtest/gtest.h"
namespace ekumen {
namespace simulation {
namespace test {
namespace {
using insect_ptr = std::shared_ptr<Insect>;
GTEST_TEST(CellMapTest, ReturnsExceptionOnConstructorWithNonPosi... | 25.572917 | 75 | 0.716904 | LucasJSch |
9faa05bf2f62080638406437765d7fb6df63aeec | 321 | cpp | C++ | Fall-17/CSE/CPP/Assignments/Basic/LeapYear.cpp | 2Dsharp/college | 239fb4c85878f082529a3668544d1ad305b46170 | [
"MIT"
] | 1 | 2021-05-18T06:34:53.000Z | 2021-05-18T06:34:53.000Z | Fall-17/CSE/CPP/Assignments/Basic/LeapYear.cpp | 2Dsharp/college | 239fb4c85878f082529a3668544d1ad305b46170 | [
"MIT"
] | null | null | null | Fall-17/CSE/CPP/Assignments/Basic/LeapYear.cpp | 2Dsharp/college | 239fb4c85878f082529a3668544d1ad305b46170 | [
"MIT"
] | 1 | 2018-11-12T16:01:39.000Z | 2018-11-12T16:01:39.000Z | #include <iostream>
#include <string>
int main() {
int year;
std::string type;
std::cout << "Enter year: ";
std::cin >> year;
type = "Common year";
if ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0)) {
type= "Leap year";
}
std::cout << "It is a " << type << "\n";
return 0;
}... | 14.590909 | 67 | 0.482866 | 2Dsharp |
9fb135fb66066857d4a346cf9818ae54eb7d0231 | 5,531 | cxx | C++ | src/ai.cxx | gviegas/mad-meat-rampage | 2edd70ab4a54fda344f410c498896077f0e994e2 | [
"MIT"
] | null | null | null | src/ai.cxx | gviegas/mad-meat-rampage | 2edd70ab4a54fda344f410c498896077f0e994e2 | [
"MIT"
] | null | null | null | src/ai.cxx | gviegas/mad-meat-rampage | 2edd70ab4a54fda344f410c498896077f0e994e2 | [
"MIT"
] | null | null | null | /*
* Created by Gustavo Viegas (2016/10)
*/
#include "ai.hxx"
AI::AI() { m_lastMove = Movement::Idle; }
AI::~AI() {}
void AI::createGraph(TileMap* map) {
for(unsigned int i = 0; i < map->getGridSize().x; ++i) {
for(unsigned int j = 1; j < map->getGridSize().y; ++j) {
if(map->checkTile({i, j})... | 37.120805 | 86 | 0.488338 | gviegas |
9fb3cd137b0eef10c67b094162cdf360e302bb59 | 734 | cpp | C++ | leetcode/491. Increasing Subsequences/s3.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/491. Increasing Subsequences/s3.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/491. Increasing Subsequences/s3.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/permutations-ii
// Author: github.com/lzl124631x
// Time: O(2^N)
// Space: O(N)
class Solution {
private:
vector<vector<int>> ans;
void dfs(vector<int> &nums, int start, vector<int> &seq) {
if (start == nums.size()) return;
unordered_set<int> visited;
for (int i = st... | 27.185185 | 71 | 0.581744 | zhuohuwu0603 |
9fb3de83b9f2ec610527cc45678c9ba4d9787ecf | 706 | cpp | C++ | TVTest_0.7.23_Src/Options.cpp | mark10als/TVTest_0.7.23_fix_Sources | 313c295ab67a39bb285303ad814ee4f5aa15d921 | [
"libpng-2.0"
] | null | null | null | TVTest_0.7.23_Src/Options.cpp | mark10als/TVTest_0.7.23_fix_Sources | 313c295ab67a39bb285303ad814ee4f5aa15d921 | [
"libpng-2.0"
] | null | null | null | TVTest_0.7.23_Src/Options.cpp | mark10als/TVTest_0.7.23_fix_Sources | 313c295ab67a39bb285303ad814ee4f5aa15d921 | [
"libpng-2.0"
] | null | null | null | #include "stdafx.h"
#include "TVTest.h"
#include "Options.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
COptionFrame *COptions::m_pFrame=NULL;
DWORD COptions::m_GeneralUpdateFlags=0;
COptions::COptions()
: m_UpdateFlags(0)
{
}
COptions::COptions(LPCTSTR pszSe... | 12.836364 | 48 | 0.746459 | mark10als |
9fb59be37087068fc162869dc19b2c2d61e62b97 | 15,865 | cpp | C++ | src/Scene/COctree.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | 1 | 2018-01-06T04:44:36.000Z | 2018-01-06T04:44:36.000Z | src/Scene/COctree.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | src/Scene/COctree.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | #include "Scene/COctree.h"
#include "Scene/CScene.h"
namespace VKE
{
namespace Scene
{
SOctreeNode::~SOctreeNode()
{
//m_vObjectAABBs.Destroy();
//m_vpObjectBits.Destroy();
}
//void SOctreeNode::CalcAABB( const COctree* pOctree, Math::CAABB* pOut ) const... | 40.368957 | 123 | 0.515916 | przemyslaw-szymanski |
9fb8e9c3e7e26bc435816a07831bb06ad39a7486 | 3,187 | cpp | C++ | src/matching.cpp | gnardari/urquhart | ce92836bd3eeecca6e4b21c5efb13ff43953b800 | [
"MIT"
] | 2 | 2021-05-15T03:04:17.000Z | 2021-09-16T12:21:58.000Z | src/matching.cpp | gnardari/urquhart | ce92836bd3eeecca6e4b21c5efb13ff43953b800 | [
"MIT"
] | null | null | null | src/matching.cpp | gnardari/urquhart | ce92836bd3eeecca6e4b21c5efb13ff43953b800 | [
"MIT"
] | null | null | null | #include <matching.hpp>
namespace matching {
void polygonMatching(
urquhart::Observation& ref, std::vector<size_t> refIds,
urquhart::Observation& targ, std::vector<size_t> targIds, double thresh,
std::vector<std::pair<size_t, size_t>>& polygonMatches){
std::set<size_t> matched;
for(auto rIdx : ... | 37.940476 | 106 | 0.600565 | gnardari |
9fb99605718228a2f381abae032b9fe97bb084fc | 1,681 | hpp | C++ | engine/include/engine/rendering/ForwardRenderingSystem.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | engine/include/engine/rendering/ForwardRenderingSystem.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | 9 | 2016-12-09T13:02:18.000Z | 2019-09-13T09:29:18.000Z | engine/include/engine/rendering/ForwardRenderingSystem.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | #pragma once
#include "entityx/entityx.h"
#include "fw/UniversalPhongEffect.hpp"
#include "fw/resources/Cubemap.hpp"
#include "fw/Mesh.hpp"
#include "fw/Vertices.hpp"
#include "fw/rendering/Framebuffer.hpp"
namespace ee
{
class ForwardRenderingSystem:
public entityx::System<ForwardRenderingSystem>
{
public:
... | 25.469697 | 80 | 0.703153 | sienkiewiczkm |
9fbb6a258f4d2ca078fceb5f235c400eaf7023a6 | 3,538 | cpp | C++ | cppcms_skel/models/SqlImporter.cpp | Tatoeba/cppcms-skeleton | c4a7d3060915ce241f5eed38d0e951343ba84330 | [
"MIT"
] | 16 | 2015-03-03T13:03:59.000Z | 2021-12-27T10:19:59.000Z | cppcms_skel/models/SqlImporter.cpp | Tatoeba/cppcms-skeleton | c4a7d3060915ce241f5eed38d0e951343ba84330 | [
"MIT"
] | 1 | 2015-06-15T07:52:33.000Z | 2015-06-15T07:52:33.000Z | cppcms_skel/models/SqlImporter.cpp | Tatoeba/cppcms-skeleton | c4a7d3060915ce241f5eed38d0e951343ba84330 | [
"MIT"
] | 5 | 2015-09-14T14:01:05.000Z | 2017-08-23T11:28:01.000Z | /**
* Copyright (C) 2012-2013 Allan SIMON (Sysko) <allan.simon@supinfo.com>
* See accompanying file COPYING.TXT file for licensing details.
*
* @category Cppcms-skeleton
* @author Allan SIMON <allan.simon@supinfo.com>
* @package Models
*
*/
#include <fstream>
#include <iostream>
#include <string>
#include <... | 20.450867 | 74 | 0.589881 | Tatoeba |
9fbbf1637bd30d8d8df212435ccbb1ad65d29c8f | 4,205 | hpp | C++ | include/simple/template_is_prime.hpp | kahido/template-metaprogramming-journey | ad214c14039e40f56e32e72fb83dcff01601b267 | [
"Unlicense"
] | null | null | null | include/simple/template_is_prime.hpp | kahido/template-metaprogramming-journey | ad214c14039e40f56e32e72fb83dcff01601b267 | [
"Unlicense"
] | null | null | null | include/simple/template_is_prime.hpp | kahido/template-metaprogramming-journey | ad214c14039e40f56e32e72fb83dcff01601b267 | [
"Unlicense"
] | null | null | null | /*
* @brief Template Metaprogramming 06
*
* Source: https://youtu.be/XNJlyCAr7tA
*
*/
#pragma once
// simple primality test
// this algorithm is inefficient
bool is_prime_loop(unsigned p)
{
bool ret = true;
if (p < 4)// p = 0, 1, 2, 3
{
ret = (p > 1);// p = 2 or 3, then we return true
} ... | 22.72973 | 88 | 0.51629 | kahido |
9fbefa6eb15cb74f1d464592a697063b1e3c6f65 | 1,599 | cpp | C++ | Native/Src/detail/ChannelFactory.cpp | chengwei45254/IPC | 86df124c5f2a0447d6ec56af7a506dc41bbf5546 | [
"MIT"
] | 167 | 2017-04-26T00:17:34.000Z | 2019-05-06T09:50:30.000Z | Native/Src/detail/ChannelFactory.cpp | chengwei45254/IPC | 86df124c5f2a0447d6ec56af7a506dc41bbf5546 | [
"MIT"
] | 22 | 2017-04-26T20:24:40.000Z | 2019-03-23T20:03:42.000Z | Native/Src/detail/ChannelFactory.cpp | chengwei45254/IPC | 86df124c5f2a0447d6ec56af7a506dc41bbf5546 | [
"MIT"
] | 42 | 2017-04-27T01:51:39.000Z | 2019-04-12T21:23:17.000Z | #include "stdafx.h"
#include "IPC/detail/ChannelFactory.h"
namespace IPC
{
namespace detail
{
std::shared_ptr<SharedMemory> ChannelFactory<void>::InstanceBase::GetMemory(
create_only_t, bool input, const char* name, const ChannelSettingsBase& settings)
{
retu... | 31.352941 | 94 | 0.537211 | chengwei45254 |
9fc125b0e726e5ae456466ee8cd318a8ab4fad2f | 1,763 | cpp | C++ | math_pazzle/1.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | math_pazzle/1.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | math_pazzle/1.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <sstream>
#include <bitset>
// #include <maniplator>
bool IsReversible(const std::string& str) {
std::size_t count = str.length()/2;
if (count == 0) {
return true;
}
auto begin = str.cbegin();
auto rbegin = str.crbegin();
for (std::size_t i = 0; i < count; ++i... | 16.951923 | 56 | 0.559841 | taku-xhift |
9fc2753bed0ed37270c307c5ecca0c4bd43cd435 | 407 | hh | C++ | octo/types/OctoString.hh | KevinTheBarbarian/octo | 98047dbe7fd7ba5bf6a5f6c1b1a5a8d03fdf8f5f | [
"MIT"
] | null | null | null | octo/types/OctoString.hh | KevinTheBarbarian/octo | 98047dbe7fd7ba5bf6a5f6c1b1a5a8d03fdf8f5f | [
"MIT"
] | null | null | null | octo/types/OctoString.hh | KevinTheBarbarian/octo | 98047dbe7fd7ba5bf6a5f6c1b1a5a8d03fdf8f5f | [
"MIT"
] | null | null | null |
#ifndef __OCTO_STRING_HH__
#define __OCTO_STRING_HH__
#include "OctoObject.hh"
namespace types {
class OctoString : public OctoObject {
public:
virtual void assign(const char* data, size_t size) = 0;
// Compare to a null terminated string.
virtual bool equalTo(const char* data) const... | 19.380952 | 63 | 0.665848 | KevinTheBarbarian |
9fc8f3ca97bc472b182c1f2c953479f0bb908ce0 | 16,004 | cpp | C++ | src/WMIMapper/WMIProvider/WMIBaseProvider.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 1 | 2021-11-12T21:28:50.000Z | 2021-11-12T21:28:50.000Z | src/WMIMapper/WMIProvider/WMIBaseProvider.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 39 | 2021-01-18T19:28:41.000Z | 2022-03-27T20:55:36.000Z | src/WMIMapper/WMIProvider/WMIBaseProvider.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 4 | 2021-07-09T12:52:33.000Z | 2021-12-21T15:05:59.000Z | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | 30.310606 | 79 | 0.544989 | natronkeltner |
9fcdbaa648d982e79ee56c8467fa93f6c7b4c002 | 1,407 | cpp | C++ | c++/0198-house-robber.cpp | aafulei/leetcode | e3a0ef9c912abf99a1d6e56eff8802ba44b0057d | [
"MIT"
] | 2 | 2019-04-13T09:55:04.000Z | 2019-05-16T12:47:40.000Z | c++/0198-house-robber.cpp | aafulei/leetcode | e3a0ef9c912abf99a1d6e56eff8802ba44b0057d | [
"MIT"
] | null | null | null | c++/0198-house-robber.cpp | aafulei/leetcode | e3a0ef9c912abf99a1d6e56eff8802ba44b0057d | [
"MIT"
] | null | null | null | // 22/04/29 = Fri
// 198. House Robber [Medium]
// You are a professional robber planning to rob houses along a street. Each
// house has a certain amount of money stashed, the only constraint stopping you
// from robbing each of them is that adjacent houses have security systems
// connected and it will automaticall... | 28.14 | 80 | 0.618337 | aafulei |
9fd1bd75eef5b961a63a43dc61fcccbb46e9fc1a | 586 | cxx | C++ | Geovis/Core/Testing/Cxx/TestGeoProjection.cxx | txwhhny/vtk | 854d9aa87b944bc9079510515996406b98b86f7c | [
"BSD-3-Clause"
] | 1,755 | 2015-01-03T06:55:00.000Z | 2022-03-29T05:23:26.000Z | Geovis/Core/Testing/Cxx/TestGeoProjection.cxx | txwhhny/vtk | 854d9aa87b944bc9079510515996406b98b86f7c | [
"BSD-3-Clause"
] | 29 | 2015-04-23T20:58:30.000Z | 2022-03-02T16:16:42.000Z | Geovis/Core/Testing/Cxx/TestGeoProjection.cxx | txwhhny/vtk | 854d9aa87b944bc9079510515996406b98b86f7c | [
"BSD-3-Clause"
] | 1,044 | 2015-01-05T22:48:27.000Z | 2022-03-31T02:38:26.000Z | #include "vtkGeoProjection.h"
int TestGeoProjection(int, char*[])
{
int np = vtkGeoProjection::GetNumberOfProjections();
cout << "Supported projections:\n";
for (int i = 0; i < np; ++i)
{
cout << "Projection: " << vtkGeoProjection::GetProjectionName(i) << "\n";
cout << "\t" << vtkGeoProjection::GetProj... | 29.3 | 77 | 0.617747 | txwhhny |
9fd30f542f14d939964a19a9b22a5dde0219cdf3 | 10,427 | cpp | C++ | src/WeatherData.cpp | FMeinicke/Weather-App | 8168c07592938539c1c00f8fd15e1297c32d2f0d | [
"MIT"
] | 10 | 2020-03-12T12:45:50.000Z | 2020-06-28T06:10:04.000Z | src/WeatherData.cpp | FMeinicke/Weather-App | 8168c07592938539c1c00f8fd15e1297c32d2f0d | [
"MIT"
] | null | null | null | src/WeatherData.cpp | FMeinicke/Weather-App | 8168c07592938539c1c00f8fd15e1297c32d2f0d | [
"MIT"
] | 2 | 2021-08-24T12:37:33.000Z | 2021-09-05T14:59:58.000Z | /**
** This file is part of the "Mobile Weather" project.
** Copyright (c) 2020 Florian Meinicke <florian.meinicke@t-online.de>.
**
** 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 Softw... | 34.299342 | 83 | 0.482018 | FMeinicke |
9fdef1ca39b0c61b56e5e893bbf52a6927962a12 | 267 | cc | C++ | find_first_of/find_first_of_main.cc | ULL-ESIT-IB-2020-2021/ib-practica09-funciones-LZ01014 | c3351a8e1e62d01dad072c21f57654c102efc114 | [
"MIT"
] | null | null | null | find_first_of/find_first_of_main.cc | ULL-ESIT-IB-2020-2021/ib-practica09-funciones-LZ01014 | c3351a8e1e62d01dad072c21f57654c102efc114 | [
"MIT"
] | null | null | null | find_first_of/find_first_of_main.cc | ULL-ESIT-IB-2020-2021/ib-practica09-funciones-LZ01014 | c3351a8e1e62d01dad072c21f57654c102efc114 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstring>
#include "find_first_of.h"
int main(int argc, char *argv[]){
std::string word =argv[1];
std::string character_to_find = argv[2];
std::cout << PositionOfCharacter(word, character_to_find) << std::endl;
} | 24.272727 | 73 | 0.70412 | ULL-ESIT-IB-2020-2021 |
9fe74f0633e78896deed5dd2fcaad8450039d33a | 311 | cpp | C++ | 283.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 8 | 2018-10-31T11:00:19.000Z | 2020-07-31T05:25:06.000Z | 283.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | null | null | null | 283.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 2 | 2018-05-31T11:29:22.000Z | 2019-09-11T06:34:40.000Z | class Solution {
public:
void moveZeroes(vector<int>& nums) {
int now = 0;
for(int i = 0; i < nums.size(); i++){
if(nums[i]){
nums[now] = nums[i];
now++;
}
}
for(int i = now; i < nums.size(); i++) nums[i] = 0;
}
};
| 22.214286 | 59 | 0.382637 | zfang399 |
9fed8a7f7f2d9a4f79551d9799b91564402649d0 | 332 | cpp | C++ | asteria/rocket/format.cpp | usama-makhzoum/asteria | ea4c893a038e0c5bef14d4d9f6723124a0cbb30f | [
"BSD-3-Clause"
] | 292 | 2018-03-23T08:57:39.000Z | 2022-03-28T16:49:09.000Z | asteria/rocket/format.cpp | usama-makhzoum/asteria | ea4c893a038e0c5bef14d4d9f6723124a0cbb30f | [
"BSD-3-Clause"
] | 71 | 2018-04-13T18:42:13.000Z | 2022-03-08T16:56:58.000Z | asteria/rocket/format.cpp | usama-makhzoum/asteria | ea4c893a038e0c5bef14d4d9f6723124a0cbb30f | [
"BSD-3-Clause"
] | 22 | 2018-10-20T19:14:30.000Z | 2022-03-04T08:32:30.000Z | // This file is part of Asteria.
// Copyleft 2018 - 2021, LH_Mouse. All wrongs reserved.
#include "format.hpp"
namespace rocket {
template
tinyfmt&
vformat(tinyfmt&, const char*, size_t, const formatter*, size_t);
template
wtinyfmt&
vformat(wtinyfmt&, const wchar_t*, size_t, const wformatter*, size_t);
} // names... | 19.529412 | 70 | 0.73494 | usama-makhzoum |
9fefee80d0f02d86c8d2a971b451ae3feb5d166f | 458 | cpp | C++ | Dynamic Programing/21min_operations.cpp | waytoashutosh/CPP_Algo_Implementation | b7f8d859eeff06740dd8b343951308d8937ea6fb | [
"MIT"
] | null | null | null | Dynamic Programing/21min_operations.cpp | waytoashutosh/CPP_Algo_Implementation | b7f8d859eeff06740dd8b343951308d8937ea6fb | [
"MIT"
] | null | null | null | Dynamic Programing/21min_operations.cpp | waytoashutosh/CPP_Algo_Implementation | b7f8d859eeff06740dd8b343951308d8937ea6fb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
unsigned long long int n;
unsigned long long int solve(unsigned long long int i)
{
if(i>=n)
{
return 0;
}
unsigned long long int x=0,y=0;
if(i+1<=n)
x = 1+solve(i+1);
if((unsigned long long int)(i*2)<=n)
y = 1+solve(i*2);
... | 13.470588 | 54 | 0.50655 | waytoashutosh |
9ff0d3655ea30c48c11c8c0c5958c1969d24cf18 | 6,644 | cpp | C++ | emulator/src/mame/machine/namco06.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/machine/namco06.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/machine/namco06.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
Namco 06XX
This chip is used as an interface to up to 4 other custom chips.
It signals IRQs to the custom MCUs when writes happen, and generates
NMIs to the controlling... | 30.3379 | 117 | 0.579169 | rjw57 |
9ff5cfc1bc1a8e25d4d66f43c60fb532d0188333 | 1,589 | cpp | C++ | Examenes/Febrero2016/UnidadCuriosaDeMonitorizacion.cpp | manumonforte/AdvancedAlgorithm | fe82ef552147a041e7ad717f85999eb677f5340a | [
"MIT"
] | 4 | 2019-01-30T21:35:40.000Z | 2019-06-25T03:19:44.000Z | Examenes/Febrero2016/UnidadCuriosaDeMonitorizacion.cpp | manumonforte/AdvancedAlgorithm | fe82ef552147a041e7ad717f85999eb677f5340a | [
"MIT"
] | null | null | null | Examenes/Febrero2016/UnidadCuriosaDeMonitorizacion.cpp | manumonforte/AdvancedAlgorithm | fe82ef552147a041e7ad717f85999eb677f5340a | [
"MIT"
] | 3 | 2019-06-06T17:01:28.000Z | 2021-06-27T10:55:34.000Z | //Manuel Monforte
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "PriorityQueue.h"
/*
Coste de la solucion--> Aplicamos PriorityQueue
-->Se aplican operaciones top y pop que tiene complejidad logN
-->Se aplican K veces cada una de ella
-->Total: O(2K*logN)
*/
struct tUsuar... | 20.113924 | 92 | 0.651353 | manumonforte |
9ff8346f48ef2d620986d0cf1fe99a9efcf36bb7 | 1,492 | cpp | C++ | 15. Maximum Sub Array - GFG/15.-maximum-sub-array.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | 1 | 2022-02-27T09:01:07.000Z | 2022-02-27T09:01:07.000Z | 15. Maximum Sub Array - GFG/15.-maximum-sub-array.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | 15. Maximum Sub Array - GFG/15.-maximum-sub-array.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template for C++
class Solution{
public:
bool checkPositive(int arr[], int n){
for(int i=0;i<n;i++){
if(arr[i]>0) return (true);
}
return (false);
}
vector<int> fin... | 19.128205 | 43 | 0.419571 | champmaniac |
9ffb505d1ffe22fccd34af8f82c007adc9b46458 | 5,289 | cpp | C++ | test/src/test_writer.cpp | steinwurf/bitter | d303d9c1607ef6affd740f84464fbb23ea72a632 | [
"BSD-3-Clause"
] | 15 | 2017-02-01T19:01:01.000Z | 2021-05-04T12:00:17.000Z | test/src/test_writer.cpp | steinwurf/bitter | d303d9c1607ef6affd740f84464fbb23ea72a632 | [
"BSD-3-Clause"
] | 10 | 2016-09-05T07:28:51.000Z | 2021-11-26T13:11:48.000Z | test/src/test_writer.cpp | steinwurf/bitter | d303d9c1607ef6affd740f84464fbb23ea72a632 | [
"BSD-3-Clause"
] | 3 | 2017-12-09T20:10:35.000Z | 2019-08-23T08:42:06.000Z | // Copyright (c) Steinwurf ApS 2016.
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#include <bitter/lsb0_writer.hpp>
#include <bitter/msb0_writer.hpp>
#include <cstdint>
#include <gtest/gtest.h>
#include <iostream>
#include <vector>
TEST(test_bit_writer, wri... | 23.717489 | 78 | 0.562488 | steinwurf |
9ffd4514974b80bf43987e06a64668aca487fc26 | 2,440 | cpp | C++ | cpc/exercise2-17_allowance.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | cpc/exercise2-17_allowance.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | cpc/exercise2-17_allowance.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | // POJ 3040
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int,int> PII;
const int INF = 2000000000;
const int MAXN = 20+10;
PII D... | 25.154639 | 76 | 0.445492 | aoibird |
9ffd8f7cd96e6a971019678f43873aae23951174 | 24,131 | cpp | C++ | UnrealEngine-4.11.2-release/Engine/Source/Editor/UnrealEd/Private/PhysicsAssetUtils.cpp | armroyce/Unreal | ea1cdebe70407d59af4e8366d7111c52ce4606df | [
"MIT"
] | 1 | 2016-10-01T21:35:52.000Z | 2016-10-01T21:35:52.000Z | UnrealEngine-4.11.2-release/Engine/Source/Editor/UnrealEd/Private/PhysicsAssetUtils.cpp | armroyce/Unreal | ea1cdebe70407d59af4e8366d7111c52ce4606df | [
"MIT"
] | null | null | null | UnrealEngine-4.11.2-release/Engine/Source/Editor/UnrealEd/Private/PhysicsAssetUtils.cpp | armroyce/Unreal | ea1cdebe70407d59af4e8366d7111c52ce4606df | [
"MIT"
] | 1 | 2021-04-27T08:48:33.000Z | 2021-04-27T08:48:33.000Z | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "UnrealEd.h"
#include "PhysicsAssetUtils.h"
#include "Developer/MeshUtilities/Public/MeshUtilities.h"
#include "Editor/UnrealEd/Private/ConvexDecompTool.h"
#include "MessageLog.h"
#include "PhysicsEngine/PhysicsAsset.h"
#include "PhysicsEngine/Physi... | 30.391688 | 318 | 0.725581 | armroyce |
b004658140899e7ae44fd85eefc013fb862fe3d9 | 1,673 | cpp | C++ | src/CipherTable.cpp | fcifuentesq/bg-mixnet | dea0e6ff1ad321f0e919298cbdc3fe9a666fae43 | [
"Apache-2.0"
] | 7 | 2018-03-25T23:45:36.000Z | 2020-02-13T13:55:41.000Z | src/CipherTable.cpp | fcifuentesq/bg-mixnet | dea0e6ff1ad321f0e919298cbdc3fe9a666fae43 | [
"Apache-2.0"
] | 1 | 2022-01-21T00:44:07.000Z | 2022-01-21T00:44:07.000Z | src/CipherTable.cpp | fcifuentesq/bg-mixnet | dea0e6ff1ad321f0e919298cbdc3fe9a666fae43 | [
"Apache-2.0"
] | 4 | 2018-03-27T19:36:00.000Z | 2022-01-10T22:24:06.000Z | #include "CipherTable.h"
#include "Functions.h"
CipherTable::CipherTable() : m_(0), n_(0), owner_(true) {}
CipherTable::CipherTable(string& ciphers, long m, ElGammal* elgammal) : m_(m), owner_(true) {
Functions::parse_ciphers(ciphers, m, C_, elgammal);
if (m == 0) {
n_ = 0;
} else {
n_ = C_.at(0)->size();
}... | 18.797753 | 95 | 0.632397 | fcifuentesq |
b00cb0010d1018cecccfb1d1bf690b0215f103c4 | 1,168 | cpp | C++ | DirectX11 Engine 2019/UI/Primitives/UIRectangle.cpp | FirowMD/Luna-Engine | 4011a43df48ca85f6d8f8657709471da02bd8301 | [
"MIT"
] | 2 | 2021-07-28T23:08:29.000Z | 2021-09-14T19:32:36.000Z | DirectX11 Engine 2019/UI/Primitives/UIRectangle.cpp | FirowMD/Luna-Engine | 4011a43df48ca85f6d8f8657709471da02bd8301 | [
"MIT"
] | null | null | null | DirectX11 Engine 2019/UI/Primitives/UIRectangle.cpp | FirowMD/Luna-Engine | 4011a43df48ca85f6d8f8657709471da02bd8301 | [
"MIT"
] | null | null | null | #include "pc.h"
#include "UIRectangle.h"
UIRectangle::UIRectangle(float2 TopLeft, float2 BottomRight) {
UIVertex v0{}, v1{}, v2{};
float z = (float)gLayerID;
v0.Color = gColor;
v1.Color = gColor;
v2.Color = gColor;
// Tri 1
v0.Position = float3(TopLeft.x, TopLeft.y, z);
v1.Position ... | 24.333333 | 66 | 0.605308 | FirowMD |
b016be99a66187cb8412fce6d9e6da14afaf806a | 318 | hh | C++ | source/geometry/KBGeometry.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 3 | 2021-05-24T19:43:30.000Z | 2022-01-06T21:03:23.000Z | source/geometry/KBGeometry.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 4 | 2020-05-04T15:52:26.000Z | 2021-09-13T10:51:03.000Z | source/geometry/KBGeometry.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 3 | 2020-06-14T10:53:58.000Z | 2022-01-06T21:03:30.000Z | #ifndef KBGEOMETRY_HH
#define KBGEOMETRY_HH
#include "KBContainer.hh"
class KBGeometry
{
protected:
Double_t fRMS = -1;
public:
KBGeometry() {}
virtual ~KBGeometry() {}
void SetRMS(Double_t val) { fRMS = val; }
Double_t GetRMS() const { return fRMS; }
ClassDef(KBGeometry, 1)
};
#endif
| 14.454545 | 45 | 0.657233 | ggfdsa10 |
b018d6335bb1a08c5c808c21859adf89cac603f5 | 7,133 | cpp | C++ | src/Flownodes/CFlowCUIOutputEntityNode.cpp | CoherentLabs/CoherentUI_CryEngine3 | 44b30e41e37a92ee16edbc6b738f996cfb3bd67e | [
"BSD-2-Clause"
] | 12 | 2015-04-04T17:21:06.000Z | 2021-05-11T16:03:36.000Z | src/Flownodes/CFlowCUIOutputEntityNode.cpp | CoherentLabs/CoherentUI_CryEngine3 | 44b30e41e37a92ee16edbc6b738f996cfb3bd67e | [
"BSD-2-Clause"
] | 1 | 2015-06-23T21:24:38.000Z | 2015-06-25T03:42:39.000Z | src/Flownodes/CFlowCUIOutputEntityNode.cpp | CoherentLabs/CoherentUI_CryEngine3 | 44b30e41e37a92ee16edbc6b738f996cfb3bd67e | [
"BSD-2-Clause"
] | 5 | 2015-02-11T22:43:43.000Z | 2017-12-03T00:38:46.000Z | #include <StdAfx.h>
#include <Nodes/G2FlowBaseNode.h>
#include <CPluginCoherentUI.h>
#include <Coherent/UI/View.h>
#include "CoherentViewListener.h"
#include "CoherentUISystem.h"
#include "ViewConfig.h"
namespace CoherentUIPlugin
{
class CFlowCUIOutputEntityNode : public CFlowBaseNode<eNCT_Instanced>
{
... | 40.299435 | 147 | 0.451423 | CoherentLabs |
b0195ddb8638f6b42cd5717fad6555f2992e531f | 3,861 | cpp | C++ | 600-700/608.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 600-700/608.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 600-700/608.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null |
const int maxp = 2000000;
#include <pe>
const int64 mod = 1000000000+7;
const int F = 200;
const int64 N = 1000000000000;
const int64 sqrtN = sqrt(N);
int L;
int L1;
int64 invs[1000000 + 100];
int pp[F+1];
int pp2[F+1];
static_assert(sqrtN*sqrtN == N);
int64 ans;
int64 scon[1000000+10];
... | 21.813559 | 148 | 0.471121 | Thomaw |
b01dcb8e9ef1c33e8e21aa7cb0d155177875ee0e | 933 | cpp | C++ | WLMOJ/lcc18c3s2.cpp | starfy84/Competitive-Programming | 6e024caaf1568723e4eebab208baf366c57830e1 | [
"Unlicense"
] | null | null | null | WLMOJ/lcc18c3s2.cpp | starfy84/Competitive-Programming | 6e024caaf1568723e4eebab208baf366c57830e1 | [
"Unlicense"
] | null | null | null | WLMOJ/lcc18c3s2.cpp | starfy84/Competitive-Programming | 6e024caaf1568723e4eebab208baf366c57830e1 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> pii;
bool comp(const pii &a, const pii &b){
if(a.first == b.first)
return a.second < b.second;
else
return a.first < b.first;
}
int main() {
cin.sync_with_stdio(0);
cin.tie(0);
int i, mmax =0,mmin = INT_MAX;
vector<pii> ... | 23.325 | 69 | 0.516613 | starfy84 |
b02028397eae9430a9a4bd316d0e48847620a3e9 | 708 | cpp | C++ | TOI16/Camp-3/sudden death/max rectangle.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | TOI16/Camp-3/sudden death/max rectangle.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | TOI16/Camp-3/sudden death/max rectangle.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
void solve()
{
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
stack<int> stc;
int mx = 0, i = 0;
while(i < n)
{
if(stc.empty() || arr[i] >= arr[stc.top()]) stc.push(i++);
else
{
int tmp = stc.top();
stc.pop();
if(stc.empty()) mx = ... | 14.44898 | 60 | 0.497175 | mrmuffinnxz |
b0239bf05d84034f3b609bd5a07f7abcf0fbef94 | 1,850 | cpp | C++ | lnetlib/lnetlib/server_session_non_ssl.cpp | cpp11nullptr/lnetlib | cf29b7a6f209e1d174e16992188d25e589c5e181 | [
"MIT"
] | 39 | 2015-10-13T22:29:29.000Z | 2021-08-14T18:40:51.000Z | lnetlib/lnetlib/server_session_non_ssl.cpp | cpp11nullptr/lnetlib | cf29b7a6f209e1d174e16992188d25e589c5e181 | [
"MIT"
] | 1 | 2015-12-29T09:23:29.000Z | 2015-12-29T09:41:20.000Z | lnetlib/lnetlib/server_session_non_ssl.cpp | cpp11nullptr/lnetlib | cf29b7a6f209e1d174e16992188d25e589c5e181 | [
"MIT"
] | 8 | 2015-10-14T09:17:09.000Z | 2022-02-21T06:47:24.000Z | /*
The MIT License (MIT)
Copyright (c) 2015 Ievgen Polyvanyi
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, me... | 30.327869 | 102 | 0.770811 | cpp11nullptr |
b03041fdb7f4f82abfcfad7c5821828e8b2601cd | 885 | cpp | C++ | src/framework/graphics/opengl/vertexLayout.cpp | oda404/oxu | 5df4755f796be976bed767cd889a2e71ed867f9b | [
"MIT"
] | null | null | null | src/framework/graphics/opengl/vertexLayout.cpp | oda404/oxu | 5df4755f796be976bed767cd889a2e71ed867f9b | [
"MIT"
] | null | null | null | src/framework/graphics/opengl/vertexLayout.cpp | oda404/oxu | 5df4755f796be976bed767cd889a2e71ed867f9b | [
"MIT"
] | null | null | null |
#include<oxu/framework/graphics/opengl/vertexLayout.hpp>
#include<oxu/framework/graphics/opengl/core.hpp>
namespace oxu::framework::graphics::opengl
{
VertexLayoutElement::VertexLayoutElement(
const unsigned int &type,
const unsigned int &count
): type(type), count(count)
{
}
tem... | 23.289474 | 77 | 0.651977 | oda404 |
b033a3d9d25e486902deaff232dc156cb16599e2 | 394 | cpp | C++ | 5-Inherit/5-2-Multi-Inherit/Infantry.cpp | mtianyan/CPlusPlusCode | 61403af90c7c73faec1959d9d63238b8bfddaf87 | [
"Apache-2.0"
] | 1 | 2018-11-07T13:56:18.000Z | 2018-11-07T13:56:18.000Z | 5-Inherit/5-2-Multi-Inherit/Infantry.cpp | mtianyan/CPlusPlusCode | 61403af90c7c73faec1959d9d63238b8bfddaf87 | [
"Apache-2.0"
] | null | null | null | 5-Inherit/5-2-Multi-Inherit/Infantry.cpp | mtianyan/CPlusPlusCode | 61403af90c7c73faec1959d9d63238b8bfddaf87 | [
"Apache-2.0"
] | 1 | 2022-01-17T06:21:37.000Z | 2022-01-17T06:21:37.000Z | #include <iostream>
#include "Infantry.h"
using namespace std;
Infantry::Infantry(string name /* = "jack" */, int age /* = 30 */)
{
m_strName = name;
m_iAge = age;
cout << "Infantry()" << endl;
}
Infantry::~Infantry()
{
cout << "~Infantry()" << endl;
}
void Infantry::attack() {
cout << m_iAge << en... | 20.736842 | 67 | 0.576142 | mtianyan |
b034f81f95d0fe893fdc4b23c6902580554b177d | 334 | cpp | C++ | codes/raulcr-p3772-Accepted-s1133272.cpp | raulcr98/coj-solutions | b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca | [
"MIT"
] | 1 | 2020-03-17T01:44:21.000Z | 2020-03-17T01:44:21.000Z | codes/raulcr-p3772-Accepted-s1133272.cpp | raulcr98/coj-solutions | b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca | [
"MIT"
] | null | null | null | codes/raulcr-p3772-Accepted-s1133272.cpp | raulcr98/coj-solutions | b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int N;
int main()
{
cin >> N;
while(N--){
double a, sol = 0.0;
for(int i = 1 ; i <= 10 ; i++){
cin >> a;
sol += a;
}
sol = (85 * sol) / 100;
printf("%.3lf\n", sol);
}
... | 13.916667 | 40 | 0.350299 | raulcr98 |
b034fd1474d2f021d7be5f5b2df7804d027f879b | 1,044 | hh | C++ | App/app_serv/tx_service.hh | Nimita311/motor-driver | 7141e968798fea4a01dbc03481151cd8bfbbefeb | [
"MIT"
] | 3 | 2020-03-12T05:02:50.000Z | 2021-07-10T03:33:12.000Z | App/app_serv/tx_service.hh | Nimita311/motor-driver | 7141e968798fea4a01dbc03481151cd8bfbbefeb | [
"MIT"
] | null | null | null | App/app_serv/tx_service.hh | Nimita311/motor-driver | 7141e968798fea4a01dbc03481151cd8bfbbefeb | [
"MIT"
] | 1 | 2020-12-05T23:11:04.000Z | 2020-12-05T23:11:04.000Z | #ifndef _INC_TX_SERVICE_HH
#define _INC_TX_SERVICE_HH
#include "app_serv/service.hh"
#include "app_lib/messenger.hh"
#include "app_msg/info.pb.h"
#include "stm32h7xx_ll_usart.h"
#include "stm32h7xx_ll_dma.h"
#include "queue.h"
namespace brown {
class TXService: public Service, public Sender {
private:
const UB... | 21.75 | 70 | 0.681992 | Nimita311 |
b03a6852121251eaabfe59690e8bcbdbd146e768 | 283 | hpp | C++ | src/KEngine/include/KEngine/Entity/ComponentBuilders/EntityRenderableComponentBuilder.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2019-04-09T13:03:11.000Z | 2021-01-27T04:58:29.000Z | src/KEngine/include/KEngine/Entity/ComponentBuilders/EntityRenderableComponentBuilder.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 2 | 2017-02-06T03:48:45.000Z | 2020-08-31T01:30:10.000Z | src/KEngine/include/KEngine/Entity/ComponentBuilders/EntityRenderableComponentBuilder.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2020-06-28T08:19:53.000Z | 2020-06-28T16:30:19.000Z | #pragma once
#include "KEngine/Interfaces/IEntityComponentBuilder.hpp"
namespace ke
{
class EntityRenderableComponentBuilder : public ke::IEntityComponentBuilder
{
public:
virtual ke::EntityComponentSptr build(const std::any & p_jsonObject) override;
};
} | 20.214286 | 86 | 0.738516 | yxbh |
b03c7edb2e5c3c242a3dbbc141085d748e1331d2 | 7,301 | cpp | C++ | ultra96/ROOT_FS/app/fad/src/fad/OdometryCalculator/PatternMatchingVOCalculator/PatternMatchingVOCalculator.cpp | rits-drsl/ZybotR2-96-fpt19 | bed374a70fc6bad637770532244b20002f8e8a28 | [
"MIT"
] | 14 | 2019-12-25T10:17:11.000Z | 2022-01-18T09:35:05.000Z | ultra96/ROOT_FS/app/fad/src/fad/OdometryCalculator/PatternMatchingVOCalculator/PatternMatchingVOCalculator.cpp | rits-drsl/ZybotR2-96-fpt19 | bed374a70fc6bad637770532244b20002f8e8a28 | [
"MIT"
] | null | null | null | ultra96/ROOT_FS/app/fad/src/fad/OdometryCalculator/PatternMatchingVOCalculator/PatternMatchingVOCalculator.cpp | rits-drsl/ZybotR2-96-fpt19 | bed374a70fc6bad637770532244b20002f8e8a28 | [
"MIT"
] | 2 | 2020-02-02T03:12:37.000Z | 2020-09-02T00:25:21.000Z | /**
* PatternMatchingVOCalculator: 路面の俯瞰画像からVisualOdometryを導出するクラス
*
* Copyright (C) 2019 Yuya Kudo.
* Copyright (C) 2019 Atsushi Takada.
* Authors:
* Yuya Kudo <ri0049ee@ed.ritsumei.ac.jp>
* Atsushi Takada <ri0051rr@ed.ritsumei.ac.jp>
*
*/
#include "PatternMatchingVOCalculator.h"
namespac... | 55.732824 | 170 | 0.594028 | rits-drsl |
b03e29a0f7ec1d4b9c6d83c5a97c1e43d4fd035c | 5,668 | cpp | C++ | src/RemotePhotoTool/UsbDriverSwitcherDlg.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 16 | 2015-03-26T02:32:43.000Z | 2021-10-18T16:34:31.000Z | src/RemotePhotoTool/UsbDriverSwitcherDlg.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 7 | 2019-02-21T06:07:09.000Z | 2022-01-01T10:00:50.000Z | src/RemotePhotoTool/UsbDriverSwitcherDlg.cpp | vividos/RemotePhotoTool | d17ae2abbda531acbd0ec8e90ddc4856c4fdfa00 | [
"BSD-2-Clause"
] | 6 | 2019-05-07T09:21:15.000Z | 2021-09-01T06:36:24.000Z | //
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2020 Michael Fink
//
/// \file UsbDriverSwitcherDlg.cpp USB driver switcher dialog
//
#include "stdafx.h"
#include "resource.h"
#include "UsbDriverSwitcherDlg.hpp"
#include <ulib/Path.hpp>
/// timer ID for refreshing USB devices list
const UI... | 27.784314 | 132 | 0.694425 | vividos |
b03f0fb691dc7ab8491a25aa1f7762f917ca5a60 | 10,635 | cpp | C++ | test/main-test.cpp | NikolausDemmel/enum-flags | 48d25b470ee6971d0db15f020937abf6017ebf51 | [
"MIT"
] | 130 | 2015-02-24T18:22:24.000Z | 2022-03-21T18:14:22.000Z | test/main-test.cpp | NikolausDemmel/enum-flags | 48d25b470ee6971d0db15f020937abf6017ebf51 | [
"MIT"
] | 16 | 2015-05-15T01:56:47.000Z | 2020-04-12T13:03:48.000Z | test/main-test.cpp | NikolausDemmel/enum-flags | 48d25b470ee6971d0db15f020937abf6017ebf51 | [
"MIT"
] | 28 | 2015-05-18T21:15:09.000Z | 2022-03-26T10:22:20.000Z | #include "common.hpp"
#include <vector>
#include <boost/core/lightweight_test.hpp>
namespace flags {
template <class E>
auto operator<<(std::ostream& o, flags<E> fl) -> std::ostream& {
return o << "flags<" << fl.underlying_value() << '>';
}
} // namespace flags
void test_set_underlying_value() {
Enums result;... | 27.269231 | 77 | 0.693653 | NikolausDemmel |
b04246fa5d1815d3ac3f7bc4a6acd532cc68c21f | 2,816 | cpp | C++ | src/slib/social/facebook_ui.cpp | emarc99/SLib | 4e492d6c550f845fd1b3f40bf10183097eb0e53c | [
"MIT"
] | 146 | 2017-03-21T07:50:43.000Z | 2022-03-19T03:32:22.000Z | src/slib/social/facebook_ui.cpp | Crasader/SLib | 4e492d6c550f845fd1b3f40bf10183097eb0e53c | [
"MIT"
] | 50 | 2017-03-22T04:08:15.000Z | 2019-10-21T16:55:48.000Z | src/slib/social/facebook_ui.cpp | Crasader/SLib | 4e492d6c550f845fd1b3f40bf10183097eb0e53c | [
"MIT"
] | 55 | 2017-03-21T07:52:58.000Z | 2021-12-27T13:02:08.000Z | /*
* Copyright (c) 2008-2019 SLIBIO <https://github.com/SLIBIO>
*
* 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
* ... | 32.367816 | 100 | 0.681108 | emarc99 |
b0442b206f4edd25e44544f75b97954ea551af24 | 4,588 | hpp | C++ | include/edyn/collision/raycast.hpp | xissburg/EntityDynamics | 115da67243da53f7b5001a83260b2f3d7a0355b4 | [
"MIT"
] | null | null | null | include/edyn/collision/raycast.hpp | xissburg/EntityDynamics | 115da67243da53f7b5001a83260b2f3d7a0355b4 | [
"MIT"
] | null | null | null | include/edyn/collision/raycast.hpp | xissburg/EntityDynamics | 115da67243da53f7b5001a83260b2f3d7a0355b4 | [
"MIT"
] | null | null | null | #ifndef EDYN_COLLISION_RAYCAST_HPP
#define EDYN_COLLISION_RAYCAST_HPP
#include <variant>
#include <entt/entity/fwd.hpp>
#include <entt/entity/entity.hpp>
#include "edyn/math/vector3.hpp"
#include "edyn/shapes/cylinder_shape.hpp"
#include "edyn/shapes/capsule_shape.hpp"
namespace edyn {
struct box_shape;
struct spher... | 28.147239 | 86 | 0.727768 | xissburg |
b04531e3ba791274c303ebc1421871f9188efc70 | 13,859 | cpp | C++ | src/App/glwidget.cpp | snousias/avatree | 57493c13f491ba97bfb9d7b294629c9c296e6c57 | [
"AAL"
] | 8 | 2020-04-06T14:08:15.000Z | 2022-02-15T07:48:14.000Z | src/AVATreeExtensionGUI/glwidget.cpp | snousias/avatree | 57493c13f491ba97bfb9d7b294629c9c296e6c57 | [
"AAL"
] | null | null | null | src/AVATreeExtensionGUI/glwidget.cpp | snousias/avatree | 57493c13f491ba97bfb9d7b294629c9c296e6c57 | [
"AAL"
] | 4 | 2020-08-24T13:09:37.000Z | 2021-11-08T02:26:15.000Z | #include "glwidget.h"
#include "ray.h"
#include "modellerToViewer.h"
#include <QtWidgets>
#include <QWidget>
#include <QMouseEvent>
#include <QOpenGLShaderProgram>
#include <QCoreApplication>
#include <math.h>
GLWidget::GLWidget(QWidget *parent)
: QOpenGLWidget(parent),
m_model(NULL),
m_wireframe(0),
m_b... | 27.829317 | 249 | 0.702576 | snousias |
b05048428fada06c56821557b744777672c9c008 | 13,745 | cpp | C++ | src/AES.cpp | BlazingNova/APT | ba1fadb9a44588c2285646fac4a6f001ed6e065d | [
"MIT"
] | null | null | null | src/AES.cpp | BlazingNova/APT | ba1fadb9a44588c2285646fac4a6f001ed6e065d | [
"MIT"
] | 1 | 2018-04-20T20:30:58.000Z | 2018-04-20T20:30:58.000Z | src/AES.cpp | BlazingNova/APT | ba1fadb9a44588c2285646fac4a6f001ed6e065d | [
"MIT"
] | null | null | null | //============================================================================
// Name : AES.cpp
// Author : Mathew Prabakar
// Version : 2.0
// Copyright : Keep your hands off my code
// Description : AES Encryption and Decryption in C++
//=============================================================... | 22.870216 | 98 | 0.549218 | BlazingNova |
b0512767d9caf48c7a0ad86678a4225cdd9dd711 | 2,386 | cpp | C++ | AtCoder/Educational_DP_Contest/F.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/Educational_DP_Contest/F.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/Educational_DP_Contest/F.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | #include <algorithm>
#include <boost/optional.hpp>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string... | 19.398374 | 76 | 0.564543 | arlechann |
b0513d443f9110a3bfb8ae4276f086a2bfaad699 | 6,499 | cpp | C++ | Strings/AhoCorasick.cpp | NhatMinh0208/CP-Library | 4d174b01a569106d2d7ad0fa5e3594175e97de31 | [
"MIT"
] | null | null | null | Strings/AhoCorasick.cpp | NhatMinh0208/CP-Library | 4d174b01a569106d2d7ad0fa5e3594175e97de31 | [
"MIT"
] | null | null | null | Strings/AhoCorasick.cpp | NhatMinh0208/CP-Library | 4d174b01a569106d2d7ad0fa5e3594175e97de31 | [
"MIT"
] | null | null | null | #ifndef CPL_TEMPLATE
#define CPL_TEMPLATE
/*
Normie's Aho-Corasick, version 2.0.
This data structure receives a set of strings and builds 2 trees:
+) A trie of the strings
+) A suffix link tree of the strings
The implementation is kept as barebones as possible to promote flexibility.
Tested with https://codeforc... | 22.333333 | 153 | 0.613325 | NhatMinh0208 |
b053f3dc61b03fc60286aed7d619458ac382da19 | 442 | hpp | C++ | includes/SpecialFood.hpp | tiboitel/Nibbler | f95341206d6750d2b85deb4ee6bb789234229201 | [
"MIT"
] | null | null | null | includes/SpecialFood.hpp | tiboitel/Nibbler | f95341206d6750d2b85deb4ee6bb789234229201 | [
"MIT"
] | null | null | null | includes/SpecialFood.hpp | tiboitel/Nibbler | f95341206d6750d2b85deb4ee6bb789234229201 | [
"MIT"
] | null | null | null | #ifndef SPECIALFOOD_HPP
# define SPECIALFOOD_HPP
# include <Food.hpp>
class SpecialFood : public Food
{
public:
SpecialFood(int x, int y, size_t score = 200, size_t lifespan = 10000);
~SpecialFood();
SpecialFood (SpecialFood const &rhs);
SpecialFood &operator=(SpecialFood const &rhs);
size_t getLifeSpa... | 20.090909 | 73 | 0.71267 | tiboitel |
b057f910197a2efb139b6ef20d02a1bfb1b9afee | 4,748 | cc | C++ | src/native/VMem.cc | jappavoo/EbbRT | b0aacb6cafebd2b3e43b6636f1325e0ae10d7fba | [
"BSL-1.0"
] | 67 | 2015-02-26T17:55:43.000Z | 2022-01-06T09:30:59.000Z | src/native/VMem.cc | jmcadden/EbbRT | d213abd76f3cc065755170876cc269d97591abd3 | [
"BSL-1.0"
] | 146 | 2015-02-11T16:39:58.000Z | 2021-02-21T21:27:09.000Z | src/native/VMem.cc | jmcadden/EbbRT | d213abd76f3cc065755170876cc269d97591abd3 | [
"BSL-1.0"
] | 12 | 2015-02-04T05:49:54.000Z | 2019-08-07T10:20:09.000Z | // Copyright Boston University SESA Group 2013 - 2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "VMem.h"
#include <atomic>
#include <cinttypes>
#include <cstdint>
#include <c... | 35.432836 | 79 | 0.609941 | jappavoo |
b059fcafa945380b1b4df080e5ee6682f2127d55 | 997 | hpp | C++ | include/dracosha/validator/utils/adjust_storable_ignore.hpp | evgeniums/cpp-validator | e4feccdce19c249369ddb631571b60613926febd | [
"BSL-1.0"
] | 27 | 2020-09-18T13:45:33.000Z | 2022-03-16T21:14:37.000Z | include/dracosha/validator/utils/adjust_storable_ignore.hpp | evgeniums/cpp-validator | e4feccdce19c249369ddb631571b60613926febd | [
"BSL-1.0"
] | 7 | 2020-08-07T21:48:14.000Z | 2021-01-14T12:25:37.000Z | include/dracosha/validator/utils/adjust_storable_ignore.hpp | evgeniums/cpp-validator | e4feccdce19c249369ddb631571b60613926febd | [
"BSL-1.0"
] | 1 | 2021-03-30T09:17:58.000Z | 2021-03-30T09:17:58.000Z | /**
@copyright Evgeny Sidorov 2020
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
/****************************************************************************/
/** @file validator/utils/adjust_storable_ignore.hpp
*
* Def... | 26.236842 | 112 | 0.57673 | evgeniums |
b05aea2b808eb84be88a18b8efded02a244b1b12 | 4,551 | cpp | C++ | kari_localization/src/mesh.cpp | karrykarry/kari_localization | e81e1fda587958e87771e149b5ca3769eae891fc | [
"MIT"
] | null | null | null | kari_localization/src/mesh.cpp | karrykarry/kari_localization | e81e1fda587958e87771e149b5ca3769eae891fc | [
"MIT"
] | null | null | null | kari_localization/src/mesh.cpp | karrykarry/kari_localization | e81e1fda587958e87771e149b5ca3769eae891fc | [
"MIT"
] | null | null | null | //meshビューア
#include <ros/ros.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/kdtree/kdtree_flann.h>
#include <pcl/features/normal_3d.h>
#include <pcl/surface/gp3.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/io/vtk_io.h... | 23.703125 | 99 | 0.725775 | karrykarry |
b05b855e9987739443d02d6f052641352b9d86cb | 17,149 | cpp | C++ | src/entity/RDimensionEntity.cpp | ouxianghui/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 12 | 2021-03-26T03:23:30.000Z | 2021-12-31T10:05:44.000Z | src/entity/RDimensionEntity.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | null | null | null | src/entity/RDimensionEntity.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 9 | 2021-06-23T08:26:40.000Z | 2022-01-20T07:18:10.000Z | /**
* Copyright (c) 2011-2016 by Andrew Mustun. All rights reserved.
*
* This file is part of the QCAD project.
*
* QCAD 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 3 of the License,... | 54.61465 | 170 | 0.72115 | ouxianghui |
b05fc83f6dc3bcb9390f9d004b6a905d84165c44 | 5,826 | cc | C++ | doc/user-guide/core-functionalities/functionspace/NodeColumns.cc | egparedes/atlas | fff4b692334b1dcb5abd14a36a09df9c9204b08b | [
"Apache-2.0"
] | 1 | 2019-12-02T20:41:33.000Z | 2019-12-02T20:41:33.000Z | doc/user-guide/core-functionalities/functionspace/NodeColumns.cc | egparedes/atlas | fff4b692334b1dcb5abd14a36a09df9c9204b08b | [
"Apache-2.0"
] | null | null | null | doc/user-guide/core-functionalities/functionspace/NodeColumns.cc | egparedes/atlas | fff4b692334b1dcb5abd14a36a09df9c9204b08b | [
"Apache-2.0"
] | null | null | null | #include "atlas/functionspace/NodeColumns.h"
#include "atlas/array/ArrayView.h"
#include "atlas/field.h"
#include "atlas/grid.h"
#include "atlas/library/Library.h"
#include "atlas/mesh.h"
#include "atlas/meshgenerator.h"
#include "atlas/output/Gmsh.h"
#include "atlas/runtime/Log.h"
using namespace atlas;
using atlas::... | 38.328947 | 119 | 0.60539 | egparedes |
b0601f9cf3454394bcedea54ce2f50e5069a8e59 | 397 | cpp | C++ | Level_4/1_ExamGrade/ExamGrade.cpp | LeeHeungrok/BaekjoonAlgorithm | fca6ce5729938df64099074e9276325ca5e11c8a | [
"MIT"
] | null | null | null | Level_4/1_ExamGrade/ExamGrade.cpp | LeeHeungrok/BaekjoonAlgorithm | fca6ce5729938df64099074e9276325ca5e11c8a | [
"MIT"
] | null | null | null | Level_4/1_ExamGrade/ExamGrade.cpp | LeeHeungrok/BaekjoonAlgorithm | fca6ce5729938df64099074e9276325ca5e11c8a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(void){
int examGrade;
cin>>examGrade;
if(examGrade >= 90){
cout<<"A"<<endl;
}
else if(examGrade >= 80){
cout<<"B"<<endl;
}
else if(examGrade >= 70){
cout<<"C"<<endl;
}
else if(examGrade >= 60){
cout... | 14.703704 | 29 | 0.471033 | LeeHeungrok |
b061614cac6d8d343308adb38f0ef5047c6ea317 | 1,346 | cpp | C++ | TSS/src/locotrain.cpp | valdiz777/TSS | 49c915a2da83eab202a2c5ea992c95f8e0d3d06b | [
"MIT"
] | null | null | null | TSS/src/locotrain.cpp | valdiz777/TSS | 49c915a2da83eab202a2c5ea992c95f8e0d3d06b | [
"MIT"
] | null | null | null | TSS/src/locotrain.cpp | valdiz777/TSS | 49c915a2da83eab202a2c5ea992c95f8e0d3d06b | [
"MIT"
] | null | null | null | #include "locotrain.h"
bool LocoTrain::debug = false;
LocoTrain::LocoTrain()
{
name = "";
slot = LocoByte("00");
adr = LocoByte("00");
speed = LocoByte("00");
reverse = 1;
}
LocoTrain::~LocoTrain()
{
}
QString LocoTrain::timeStamp()
{
return(QTime::currentTime().toString("[HH:mm:ss:zzz] "));
}
bool LocoTrai... | 14.630435 | 86 | 0.661218 | valdiz777 |
b062af68b9cd6c89c1e6074d4f0f713cffbcbe6d | 2,413 | cpp | C++ | test/SelectedEntryTest.cpp | DronMDF/zond | c882400aff5f41569e6deee609ddbe7b2b1bc378 | [
"MIT"
] | 5 | 2018-11-14T19:46:49.000Z | 2022-01-08T09:00:45.000Z | test/SelectedEntryTest.cpp | DronMDF/zond | c882400aff5f41569e6deee609ddbe7b2b1bc378 | [
"MIT"
] | 223 | 2018-11-14T19:20:27.000Z | 2019-02-13T11:53:23.000Z | test/SelectedEntryTest.cpp | DronMDF/zond | c882400aff5f41569e6deee609ddbe7b2b1bc378 | [
"MIT"
] | null | null | null | // Copyright (c) 2018-2019 Andrey Valyaev <dron.valyaev@gmail.com>
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#include "SelectedEntryTest.h"
#include "../http/EqualCriterion.h"
#include "../http/HttpHeader.h"
#include "../http/HttpReque... | 24.13 | 66 | 0.636966 | DronMDF |
b0648b54dbf40086ac386e7e90446ccf2e32c4ae | 3,913 | cpp | C++ | stl/src/wlocale.cpp | elay00/STL | 7f04137880e1c3df5125c1baf808f16f399dee2e | [
"Apache-2.0"
] | null | null | null | stl/src/wlocale.cpp | elay00/STL | 7f04137880e1c3df5125c1baf808f16f399dee2e | [
"Apache-2.0"
] | null | null | null | stl/src/wlocale.cpp | elay00/STL | 7f04137880e1c3df5125c1baf808f16f399dee2e | [
"Apache-2.0"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// class locale wide member functions
#include <istream>
#include <locale>
_STD_BEGIN
#pragma warning(disable : 4074)
#pragma init_seg(compiler)
// facets associated with C categories
#define ADDFAC(Facet... | 43 | 114 | 0.567851 | elay00 |
b065bddc05ce7632d3e5cdc60ef43a602ce47995 | 6,820 | cpp | C++ | Code/src/OE/Misc/RectsPacker.cpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | 21 | 2018-06-26T16:37:36.000Z | 2022-01-11T01:19:42.000Z | Code/src/OE/Misc/RectsPacker.cpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | null | null | null | Code/src/OE/Misc/RectsPacker.cpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | 3 | 2019-10-01T14:10:50.000Z | 2021-11-19T20:30:18.000Z | #include "OE/Misc/RectsPacker.hpp"
/*
This is a modified version of this algorithm:
http://blackpawn.com/texts/lightmaps/default.html
*/
#include "OE/Math/Math.hpp"
namespace OrbitEngine { namespace Misc {
bool area(Packeable2D* a, Packeable2D* b) {
return a->area() > b->area();
}
bool perimeter(Packeable2D* a... | 23.197279 | 139 | 0.589589 | mlomb |
b068406ae9586c61520c5083560ef173049838cf | 6,682 | cc | C++ | lib/ghmm.cc | wwood/exportpred | 55238e5f06d7837b27899cd51bc3f3763d2233c8 | [
"MIT"
] | 1 | 2018-06-23T06:05:56.000Z | 2018-06-23T06:05:56.000Z | lib/ghmm.cc | wwood/exportpred | 55238e5f06d7837b27899cd51bc3f3763d2233c8 | [
"MIT"
] | null | null | null | lib/ghmm.cc | wwood/exportpred | 55238e5f06d7837b27899cd51bc3f3763d2233c8 | [
"MIT"
] | null | null | null | // Copyright (c) 2005 The Walter and Eliza Hall Institute
//
// 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, ... | 33.243781 | 139 | 0.614636 | wwood |
b06e28e4bb831c4c3f30ed1a9882b86f941e0ee7 | 594 | cxx | C++ | panda/src/downloader/p3downloader_composite2.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | panda/src/downloader/p3downloader_composite2.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | panda/src/downloader/p3downloader_composite2.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | #include "httpAuthorization.cxx"
#include "httpBasicAuthorization.cxx"
#include "httpChannel.cxx"
#include "httpClient.cxx"
#include "httpCookie.cxx"
#include "httpDate.cxx"
#include "httpDigestAuthorization.cxx"
#include "httpEntityTag.cxx"
#include "httpEnum.cxx"
#include "identityStream.cxx"
#include "identityStream... | 28.285714 | 38 | 0.79798 | cmarshall108 |
b06e2b3129c556cc581ea35d8dc3a568e688b64b | 8,756 | cpp | C++ | src/Generation/BuildQueueBuilder.cpp | PoetaKodu/cpp-pkg | 3d5cabf4e015f4727328db430a003c189aeed88a | [
"MIT"
] | 9 | 2021-05-07T21:18:26.000Z | 2022-02-01T20:44:13.000Z | src/Generation/BuildQueueBuilder.cpp | PoetaKodu/pacc | 3d5cabf4e015f4727328db430a003c189aeed88a | [
"MIT"
] | null | null | null | src/Generation/BuildQueueBuilder.cpp | PoetaKodu/pacc | 3d5cabf4e015f4727328db430a003c189aeed88a | [
"MIT"
] | null | null | null | #include PACC_PCH
#include <Pacc/Generation/BuildQueueBuilder.hpp>
#include <Pacc/Generation/OutputFormatter.hpp>
#include <Pacc/System/Filesystem.hpp>
#include <Pacc/System/Environment.hpp>
///////////////////////////////////////////////////////////////
// Private functions (forward declaration)
///////////////////... | 26.137313 | 123 | 0.596962 | PoetaKodu |
b070791a72d7c010876e8671ba5721a4179d900f | 4,388 | cpp | C++ | src/dicebot/data/manual_dice_control.cpp | DrakeOu/coolq-dicebot | a38a500bbecbb44ee82adbbd191d9a5b73324606 | [
"MIT"
] | 2 | 2019-06-01T13:52:28.000Z | 2019-06-03T08:17:56.000Z | src/dicebot/data/manual_dice_control.cpp | DrakeOu/coolq-dicebot | a38a500bbecbb44ee82adbbd191d9a5b73324606 | [
"MIT"
] | null | null | null | src/dicebot/data/manual_dice_control.cpp | DrakeOu/coolq-dicebot | a38a500bbecbb44ee82adbbd191d9a5b73324606 | [
"MIT"
] | null | null | null | #include "./manual_dice_control.h"
#include <iostream>
#include <sstream>
#include "../entity/manual_dice.h"
#include "./database_manager.h"
using namespace dicebot;
using namespace dicebot::manual;
using namespace dicebot::database;
using db_manager = dicebot::database::database_manager;
#define MANUALDICE_TABLE_N... | 43.019608 | 126 | 0.670465 | DrakeOu |
b073a809fe1bb93b32ddb4a15bd5a02483c8bd71 | 10,770 | cc | C++ | modules/kernel/src/hardware/mb1.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | 12 | 2018-12-03T15:16:52.000Z | 2022-03-16T21:07:13.000Z | modules/kernel/src/hardware/mb1.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | null | null | null | modules/kernel/src/hardware/mb1.cc | eryjus/century-os | 6e6bef8cbc0f9c5ff6a943b44aa87a7e89fdfbd7 | [
"BSD-3-Clause"
] | 2 | 2018-11-13T01:30:41.000Z | 2021-08-12T18:22:26.000Z | //===================================================================================================================
//
// mb1.c -- This is the parser for the Multiboot 1 information structure
//
// Copyright (c) 2017-2020 -- Adam Clark
// Licensed under "THE BEER-WARE LICENSE"
// See License.md... | 33.138462 | 117 | 0.480316 | eryjus |
b073ffe0a2281614d0f089894080910fc40ff001 | 860 | cpp | C++ | apps/concepts/api-cpp/assfire/concepts/Speed.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/concepts/api-cpp/assfire/concepts/Speed.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/concepts/api-cpp/assfire/concepts/Speed.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | #include "Speed.hpp"
using namespace assfire;
assfire::Speed::Speed(double meters_per_second)
: meters_per_second(meters_per_second)
{}
double assfire::Speed::toMetersPerSecond() const
{
return meters_per_second;
}
double assfire::Speed::toMetersPerSecondWithPrecision(double precision) const
{
retur... | 22.631579 | 91 | 0.756977 | Eaglegor |
b076a108878a3ecc3e24a423777b6e2bf14034ce | 263 | hpp | C++ | Modules/TinyOBJ/Public/Toon/TinyOBJ/TinyOBJConfig.hpp | benjinx/Toon | f21032b2f9ad5fbc9a3618a7719c33159257d954 | [
"MIT"
] | 2 | 2021-01-28T03:08:08.000Z | 2021-01-28T03:08:21.000Z | Modules/TinyOBJ/Public/Toon/TinyOBJ/TinyOBJConfig.hpp | benjinx/Toon | f21032b2f9ad5fbc9a3618a7719c33159257d954 | [
"MIT"
] | null | null | null | Modules/TinyOBJ/Public/Toon/TinyOBJ/TinyOBJConfig.hpp | benjinx/Toon | f21032b2f9ad5fbc9a3618a7719c33159257d954 | [
"MIT"
] | null | null | null | #ifndef TOON_TINYOBJ_CONFIG_HPP
#define TOON_TINYOBJ_CONFIG_HPP
#include <Toon/Config.hpp>
#if defined(TOON_TINYOBJ_EXPORT)
#define TOON_TINYOBJ_API TOON_API_EXPORT
#else
#define TOON_TINYOBJ_API TOON_API_IMPORT
#endif
#endif // TOON_TINYOBJ_CONFIG_HPP | 21.916667 | 44 | 0.825095 | benjinx |
b0794a6bbc80df3023456cefb0d31b2a2161a6cd | 2,512 | cpp | C++ | engine/core/object/Light.cpp | supernovaengine/supernova | 54dfdc1032a0e7cf2de10a2dd72ae6654e75c8b8 | [
"MIT"
] | 10 | 2020-05-17T15:19:11.000Z | 2022-03-31T13:46:19.000Z | engine/core/object/Light.cpp | supernovaengine/supernova | 54dfdc1032a0e7cf2de10a2dd72ae6654e75c8b8 | [
"MIT"
] | null | null | null | engine/core/object/Light.cpp | supernovaengine/supernova | 54dfdc1032a0e7cf2de10a2dd72ae6654e75c8b8 | [
"MIT"
] | 2 | 2020-06-17T21:43:02.000Z | 2022-03-31T13:46:21.000Z | //
// (c) 2021 Eduardo Doria.
//
#include "Light.h"
#include "math/Angle.h"
#include "math/Color.h"
#include <math.h>
using namespace Supernova;
Light::Light(Scene* scene): Object(scene){
addComponent<LightComponent>({});
}
Light::~Light(){
}
void Light::setType(LightType type){
LightComponent& ligh... | 24.871287 | 70 | 0.717755 | supernovaengine |
b081d930c276620854c86d7e2c142be8bbb6ae0c | 3,615 | cpp | C++ | Dependencies/Build/mac/share/faust/minimal-bench.cpp | SKyzZz/test | 9b03adce666adb85e5ae2d8af5262e0acb4b91e1 | [
"Zlib"
] | 2 | 2020-10-25T09:03:03.000Z | 2021-06-24T13:20:01.000Z | Dependencies/Build/mac/share/faust/minimal-bench.cpp | SKyzZz/test | 9b03adce666adb85e5ae2d8af5262e0acb4b91e1 | [
"Zlib"
] | null | null | null | Dependencies/Build/mac/share/faust/minimal-bench.cpp | SKyzZz/test | 9b03adce666adb85e5ae2d8af5262e0acb4b91e1 | [
"Zlib"
] | null | null | null | /************************************************************************
IMPORTANT NOTE : this file contains two clearly delimited sections :
the ARCHITECTURE section (in two parts) and the USER section. Each section
is governed by its own copyright and license. Please check individually
each section for license a... | 37.268041 | 152 | 0.503181 | SKyzZz |
b0837617a00055bac00c5c0e00752c31637a81b0 | 844 | cpp | C++ | 999_Practice/Day_25/0116_transpose_matrix.cpp | Gandham-Srinithya/Data-Structure-and-Algorithms | 177d03105188c83a157947ca9870bf8037e92528 | [
"MIT"
] | 126 | 2019-12-22T17:49:08.000Z | 2021-12-14T18:45:51.000Z | 999_Practice/Day_25/0116_transpose_matrix.cpp | Gandham-Srinithya/Data-Structure-and-Algorithms | 177d03105188c83a157947ca9870bf8037e92528 | [
"MIT"
] | 7 | 2019-12-25T18:03:41.000Z | 2021-02-20T06:25:27.000Z | 999_Practice/Day_25/0116_transpose_matrix.cpp | Gandham-Srinithya/Data-Structure-and-Algorithms | 177d03105188c83a157947ca9870bf8037e92528 | [
"MIT"
] | 54 | 2019-12-26T06:28:39.000Z | 2022-02-01T05:04:43.000Z | // Given a square matrix A and its number of rows (or columns) N,
// return the transpose of A.
//
// The transpose of a matrix is the matrix flipped over it's main
// diagonal, switching the row and column indices of the matrix.
//
// CONSTRAINS
// 1 <= N <= 1000
#include <bits/stdc++.h>
using namespace std;
int ... | 17.583333 | 65 | 0.438389 | Gandham-Srinithya |
b083b2a51dfe8cd8b3f5ea853d7b4357f0338f79 | 36,425 | cpp | C++ | drlvm/vm/jitrino/src/dynopt/EdgeProfiler.cpp | sirinath/Harmony | 724deb045a85b722c961d8b5a83ac7a697319441 | [
"Apache-2.0"
] | 8 | 2015-11-04T06:06:35.000Z | 2021-07-04T13:47:36.000Z | drlvm/vm/jitrino/src/dynopt/EdgeProfiler.cpp | sirinath/Harmony | 724deb045a85b722c961d8b5a83ac7a697319441 | [
"Apache-2.0"
] | 1 | 2021-10-17T13:07:28.000Z | 2021-10-17T13:07:28.000Z | drlvm/vm/jitrino/src/dynopt/EdgeProfiler.cpp | sirinath/Harmony | 724deb045a85b722c961d8b5a83ac7a697319441 | [
"Apache-2.0"
] | 13 | 2015-11-27T03:14:50.000Z | 2022-02-26T15:12:20.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 44.04474 | 219 | 0.591517 | sirinath |
b08714ac2529a53c41ba7485e95325d5f0d876c4 | 25,842 | cpp | C++ | lib/smack/SmackInstGenerator.cpp | jjgarzella/smack | 1458fa20de42af69b40b09de00256c799574ca52 | [
"MIT"
] | null | null | null | lib/smack/SmackInstGenerator.cpp | jjgarzella/smack | 1458fa20de42af69b40b09de00256c799574ca52 | [
"MIT"
] | null | null | null | lib/smack/SmackInstGenerator.cpp | jjgarzella/smack | 1458fa20de42af69b40b09de00256c799574ca52 | [
"MIT"
] | null | null | null | //
// This file is distributed under the MIT License. See LICENSE for details.
//
#define DEBUG_TYPE "smack-inst-gen"
#include "smack/SmackInstGenerator.h"
#include "smack/BoogieAst.h"
#include "smack/SmackRep.h"
#include "smack/SmackOptions.h"
#include "smack/Naming.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/I... | 35.69337 | 126 | 0.598174 | jjgarzella |
b087c2613764b330c046071cf30e3e05f2e50536 | 211 | cpp | C++ | Baekjoon/14490.cpp | r4k0nb4k0n/Programming-Challenges | 3d734902a7503f9dc49c97fe6e69e7541cd73e56 | [
"MIT"
] | 2 | 2019-05-24T08:58:26.000Z | 2022-01-09T00:46:42.000Z | Baekjoon/14490.cpp | r4k0nb4k0n/Programming-Challenges | 3d734902a7503f9dc49c97fe6e69e7541cd73e56 | [
"MIT"
] | null | null | null | Baekjoon/14490.cpp | r4k0nb4k0n/Programming-Challenges | 3d734902a7503f9dc49c97fe6e69e7541cd73e56 | [
"MIT"
] | null | null | null | #include <cstdio>
int gcd(int a, int b){
if(a%b==0) return b;
return gcd(b, a%b);
}
int main(){
int n, m;
scanf("%d:%d",&n,&m);
int x = (n>m)?(gcd(n, m)):(gcd(m, n));
printf("%d:%d",n/x,m/x);
return 0;
}
| 16.230769 | 39 | 0.507109 | r4k0nb4k0n |
b087ef516e123f5e6a886e665388daaace3cad99 | 1,056 | cpp | C++ | Linked Lists/Add Two Numbers as Lists.cpp | torquecoder/InterviewBit-Solutions | 7c5e2e5c904c9354f3eb213739a8dd4aaf13b7b2 | [
"MIT"
] | null | null | null | Linked Lists/Add Two Numbers as Lists.cpp | torquecoder/InterviewBit-Solutions | 7c5e2e5c904c9354f3eb213739a8dd4aaf13b7b2 | [
"MIT"
] | null | null | null | Linked Lists/Add Two Numbers as Lists.cpp | torquecoder/InterviewBit-Solutions | 7c5e2e5c904c9354f3eb213739a8dd4aaf13b7b2 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
ListNode* Solution::addTwoNumbers(ListNode* A, ListNode* B) {
ListNode *currA = A;
ListNode *currB = B;
int sum = 0, carry = 0;
if (!... | 23.466667 | 62 | 0.466856 | torquecoder |
b08b0e1cabd5291ee1dc735c7ac91f9df52a38b4 | 4,215 | cpp | C++ | sample/main.cpp | xerdink/enetpp | 57b6f030eed7bc42347eec6df2b27d37e6c14925 | [
"MIT"
] | 77 | 2015-10-03T01:02:20.000Z | 2022-01-17T14:39:43.000Z | third_party/enetpp/sample/main.cpp | Zephilinox/Enki | 5f405fec9ae0f3c3344a99fbee590d76ed4dbe55 | [
"MIT"
] | 45 | 2017-05-03T16:47:29.000Z | 2019-12-02T14:49:50.000Z | third_party/enetpp/sample/main.cpp | Zephilinox/Enki | 5f405fec9ae0f3c3344a99fbee590d76ed4dbe55 | [
"MIT"
] | 16 | 2015-10-03T04:00:19.000Z | 2021-10-01T03:18:11.000Z | #include <iostream>
#include <string>
#include <random>
#include <conio.h>
#include "enetpp/client.h"
#include "enetpp/server.h"
static const int CLIENT_COUNT = 10;
static const int PORT = 123;
static bool s_exit = false;
static std::mutex s_cout_mutex;
class server_client {
public:
unsigned int _uid;
public:
ser... | 29.475524 | 121 | 0.714116 | xerdink |
b08b55ecfe251456b1271ff39c5938171f494de9 | 75 | cpp | C++ | tests/test_serialization/main_test_serialization.cpp | Xoanis/s2smtp | 2262d39cbe8c1c0cfd4e7dfb7761f6bd15e7caeb | [
"MIT"
] | null | null | null | tests/test_serialization/main_test_serialization.cpp | Xoanis/s2smtp | 2262d39cbe8c1c0cfd4e7dfb7761f6bd15e7caeb | [
"MIT"
] | null | null | null | tests/test_serialization/main_test_serialization.cpp | Xoanis/s2smtp | 2262d39cbe8c1c0cfd4e7dfb7761f6bd15e7caeb | [
"MIT"
] | null | null | null | #define BOOST_TEST_MODULE serialization
#include <boost/test/unit_test.hpp> | 37.5 | 39 | 0.853333 | Xoanis |
b0906fe8bfa5157f850e330e16d18d614c771f72 | 1,007 | cpp | C++ | test/zoneserver.test/MockPlayerPartyController.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | test/zoneserver.test/MockPlayerPartyController.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | test/zoneserver.test/MockPlayerPartyController.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | #include "ZoneServerTestPCH.h"
#include "MockPlayerPartyController.h"
using namespace gideon::zoneserver;
MockPlayerPartyController::MockPlayerPartyController(zoneserver::go::Entity* owner) :
PlayerPartyController(owner),
lastErrorCode_(ecWhatDidYouTest)
{
}
// = rpc::PartyRpc overriding
DEFINE_SRPC_METHOD_... | 26.5 | 85 | 0.784508 | mark-online |
b091c971338652de7f1d45a3da43fe9badcaf11a | 4,676 | cpp | C++ | aws-cpp-sdk-kendra/source/model/WorkDocsConfiguration.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-kendra/source/model/WorkDocsConfiguration.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-kendra/source/model/WorkDocsConfiguration.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kendra/model/WorkDocsConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
... | 28.687117 | 134 | 0.767109 | perfectrecall |
b093a41a060dc900cfc4dd72b779a8e8ade57c40 | 652 | hpp | C++ | Include/Oak/Platform/AtomicDataTypes.hpp | n-suudai/OakPlanet | fd13328ad97b87151bf3fafb00fc01440832393a | [
"MIT"
] | null | null | null | Include/Oak/Platform/AtomicDataTypes.hpp | n-suudai/OakPlanet | fd13328ad97b87151bf3fafb00fc01440832393a | [
"MIT"
] | null | null | null | Include/Oak/Platform/AtomicDataTypes.hpp | n-suudai/OakPlanet | fd13328ad97b87151bf3fafb00fc01440832393a | [
"MIT"
] | null | null | null |
#pragma once
#include <cstdint>
#include <cstddef>
namespace Oak
{
typedef std::int8_t Int8;
typedef std::int16_t Int16;
typedef std::int32_t Int32;
typedef std::int64_t Int64;
typedef std::uint8_t UInt8;
typedef std::uint16_t UInt16;
typedef std::uint32_t UInt32;
typedef std::uint64_t UInt64;
typedef float Floa... | 15.162791 | 31 | 0.773006 | n-suudai |
b097e42d11d1f08a92f9032f0802f8df03490101 | 2,131 | cpp | C++ | examples/WolfEggs/Egg.cpp | geegrow/Geegrow_ILI9341 | f2b5f3d70f4f5e36c7a8817b54b10eee5350cbad | [
"BSD-3-Clause"
] | null | null | null | examples/WolfEggs/Egg.cpp | geegrow/Geegrow_ILI9341 | f2b5f3d70f4f5e36c7a8817b54b10eee5350cbad | [
"BSD-3-Clause"
] | null | null | null | examples/WolfEggs/Egg.cpp | geegrow/Geegrow_ILI9341 | f2b5f3d70f4f5e36c7a8817b54b10eee5350cbad | [
"BSD-3-Clause"
] | null | null | null | #include "Egg.h"
uint8_t Egg::id_counter = 0;
Egg::Egg(){
this->_obj = Drawer::instance().createCircleObj();
this->_obj->setColorBG(WHITE);
this->id = Egg::id_counter;
Egg::id_counter++;
this->callbackID = Tweak::attachMsMemberCallback(this, 1000);
Tweak::setCallbackActive(this->callbackID, fa... | 23.677778 | 76 | 0.614735 | geegrow |
b0992c467b5ba4b533ab958e1d45b4a89dab736d | 1,589 | cpp | C++ | test-example.cpp | bhargavthriler/OpenGL-env-setup | a40e2fbb98b76a818ffcaaa1a8a65bc638751b69 | [
"MIT"
] | null | null | null | test-example.cpp | bhargavthriler/OpenGL-env-setup | a40e2fbb98b76a818ffcaaa1a8a65bc638751b69 | [
"MIT"
] | null | null | null | test-example.cpp | bhargavthriler/OpenGL-env-setup | a40e2fbb98b76a818ffcaaa1a8a65bc638751b69 | [
"MIT"
] | null | null | null | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
//test flow
//default height and width
const unsigned int SCR_WIDTH = 800;
const unsigned int SCR_HEIGHT = 600;
int main(){
//initialising OpenGL with version OpenGL3.3 an... | 27.396552 | 93 | 0.701699 | bhargavthriler |
b09d7c777a68c7968fa2ac5b2234b885b2ba23d5 | 350 | cpp | C++ | Linked Lists/Reverse Linked List/soln(iterative).cpp | shrustimy/LeetCode_Solutions-C_Cpp | b6f7da9dbfa83f6fc13573e22c4ee4086921e148 | [
"MIT"
] | null | null | null | Linked Lists/Reverse Linked List/soln(iterative).cpp | shrustimy/LeetCode_Solutions-C_Cpp | b6f7da9dbfa83f6fc13573e22c4ee4086921e148 | [
"MIT"
] | null | null | null | Linked Lists/Reverse Linked List/soln(iterative).cpp | shrustimy/LeetCode_Solutions-C_Cpp | b6f7da9dbfa83f6fc13573e22c4ee4086921e148 | [
"MIT"
] | null | null | null | class Solution {
//Iterative
public:
ListNode* reverseList(ListNode* head) {
ListNode* curr=head;
ListNode* prev=NULL;
ListNode* next=NULL;
while(curr!=NULL)
{
next=curr->next;
curr->next=prev;
prev=curr;
curr=next;
}
... | 19.444444 | 43 | 0.485714 | shrustimy |
b09f3fbb569dbf65749bc6c715062b058c59d570 | 835 | cpp | C++ | Framework/AI/Src/FleeBehavior.cpp | TheJimmyGod/JimmyGod_Engine | b9752c6fbd9db17dc23f03330b5e4537bdcadf8e | [
"MIT"
] | null | null | null | Framework/AI/Src/FleeBehavior.cpp | TheJimmyGod/JimmyGod_Engine | b9752c6fbd9db17dc23f03330b5e4537bdcadf8e | [
"MIT"
] | null | null | null | Framework/AI/Src/FleeBehavior.cpp | TheJimmyGod/JimmyGod_Engine | b9752c6fbd9db17dc23f03330b5e4537bdcadf8e | [
"MIT"
] | null | null | null | #include "Precompiled.h"
#include "FleeBehavior.h"
using namespace JimmyGod::AI;
JimmyGod::Math::Vector2 FleeBehavior::Calculate(Agent & agent)
{
if (IsActive())
{
const float PanicDistanceSq = panicDistance * panicDistance;
if (JimmyGod::Math::DistanceSqr(agent.Position, agent.Destination) > PanicDis... | 33.4 | 136 | 0.71497 | TheJimmyGod |
b09fd305fd8d805ed9b6d2f16c20c98f30836fe7 | 469 | cpp | C++ | acmicpc.net/source/3040.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 7 | 2019-06-26T07:03:32.000Z | 2020-11-21T16:12:51.000Z | acmicpc.net/source/3040.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | null | null | null | acmicpc.net/source/3040.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 9 | 2019-02-28T03:34:54.000Z | 2020-12-18T03:02:40.000Z | // 3040. 백설 공주와 일곱 난쟁이
// 2019.05.21
// 구현
#include<iostream>
using namespace std;
int main()
{
int a[9];
int sum = 0;
for (int i = 0; i < 9; i++)
{
cin >> a[i];
sum += a[i];
}
// 두개를 뺏을때 100이 되도록 모든 경우에 대해 계산
for (int i = 0; i < 8; i++)
{
for (int j = i + 1; j < 9; j++)
{
if (sum - a[i] - a[j] ==... | 12.675676 | 33 | 0.398721 | tdm1223 |
b0a2be33f92e8c476ad3d32a0334756134f8f966 | 2,841 | cpp | C++ | source/FileControl.cpp | mystesPF/Raw-Format-Convert-to-BMP | 8e0640b488a0cc441e7a9d8db2a2e79976e89eb2 | [
"BSD-3-Clause"
] | 1 | 2021-01-25T03:19:13.000Z | 2021-01-25T03:19:13.000Z | source/FileControl.cpp | mystesPF/Raw-Format-Convert-to-BMP | 8e0640b488a0cc441e7a9d8db2a2e79976e89eb2 | [
"BSD-3-Clause"
] | null | null | null | source/FileControl.cpp | mystesPF/Raw-Format-Convert-to-BMP | 8e0640b488a0cc441e7a9d8db2a2e79976e89eb2 | [
"BSD-3-Clause"
] | 1 | 2019-05-28T09:55:42.000Z | 2019-05-28T09:55:42.000Z | #include "StdAfx.h"
#include "FileControl.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CFileControl::CFileControl(void){}
CFileControl::~CFileControl(void){}
BOOL CFileControl::DoConvertRawFile(CFiles* pFile)
{
// Create File Data
if( !OpenRawFil... | 22.023256 | 140 | 0.637804 | mystesPF |
b0aad6c22b4c85330c066ca5ff4b0a640c10e449 | 7,092 | hpp | C++ | SharedPtr.hpp | avinarsale/Smart-Pointers | a5cae680012710a99008eef2fda2b9b4b1db02af | [
"Apache-2.0"
] | null | null | null | SharedPtr.hpp | avinarsale/Smart-Pointers | a5cae680012710a99008eef2fda2b9b4b1db02af | [
"Apache-2.0"
] | null | null | null | SharedPtr.hpp | avinarsale/Smart-Pointers | a5cae680012710a99008eef2fda2b9b4b1db02af | [
"Apache-2.0"
] | null | null | null | #ifndef SHARED_PTR
#define SHARED_PTR
#include<iostream>
#include <mutex>
namespace cs540 {
std::mutex myMutex;
class ReferenceCount{
public:
int refCount;
ReferenceCount() : refCount(0) {}
virtual ~ReferenceCount() {}
};
template <typename T>
class CriticalSection : public ReferenceCount
{... | 21.956656 | 82 | 0.609278 | avinarsale |
b0ad5831b8e4ecfb9ccb44e5b5855e0ac5f9b01c | 1,911 | cpp | C++ | NAS2D/Renderer/Color.cpp | cugone/nas2d-core | 632983fa6e9d334d79fdf2dfc54719eee5b5d3ca | [
"Zlib"
] | 13 | 2017-03-23T06:11:30.000Z | 2021-09-15T16:22:56.000Z | NAS2D/Renderer/Color.cpp | cugone/nas2d-core | 632983fa6e9d334d79fdf2dfc54719eee5b5d3ca | [
"Zlib"
] | 467 | 2016-06-28T22:47:06.000Z | 2022-02-08T18:08:12.000Z | NAS2D/Renderer/Color.cpp | cugone/nas2d-core | 632983fa6e9d334d79fdf2dfc54719eee5b5d3ca | [
"Zlib"
] | 8 | 2015-10-12T21:36:10.000Z | 2021-06-24T07:46:31.000Z | // ==================================================================================
// = NAS2D
// = Copyright © 2008 - 2020 New Age Software
// ==================================================================================
// = NAS2D is distributed under the terms of the zlib license. You are free to copy,
// = m... | 34.125 | 103 | 0.603349 | cugone |
b0b090a596b98fbbe44d008d616dc42b567a5992 | 76,642 | cpp | C++ | FPSLighting/Dependencies/DIRECTX/Samples/C++/Direct3D10/AdvancedParticles/AdvancedParticles.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | null | null | null | FPSLighting/Dependencies/DIRECTX/Samples/C++/Direct3D10/AdvancedParticles/AdvancedParticles.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | null | null | null | FPSLighting/Dependencies/DIRECTX/Samples/C++/Direct3D10/AdvancedParticles/AdvancedParticles.cpp | billionare/FPSLighting | c7d646f51cf4dee360dcc7c8e2fd2821b421b418 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------------------------
// File: ParticlesGS.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "DXUT.h"
#include "DXUTgui.h"
#include "DXUT... | 41.653261 | 119 | 0.635317 | billionare |
b0b9194ff681cc3b74fd6134acd7dda99ed56769 | 1,392 | cpp | C++ | BOJ_solve/17678.cpp | biyotte/Code_of_gunwookim | b8b679ea56b8684ec44a7911211edee1fb558a96 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | BOJ_solve/17678.cpp | biyotte/Code_of_gunwookim | b8b679ea56b8684ec44a7911211edee1fb558a96 | [
"MIT"
] | null | null | null | BOJ_solve/17678.cpp | biyotte/Code_of_gunwookim | b8b679ea56b8684ec44a7911211edee1fb558a96 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 1e16;
const long long ... | 23.59322 | 64 | 0.586925 | biyotte |
b0b9381b29db8aa72f31f4d304c52846d76b5fd0 | 287 | hxx | C++ | admin/burnslib/src/headers.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/burnslib/src/headers.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/burnslib/src/headers.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // Copyright (c) 1997-1999 Microsoft Corporation
//
// precompiled header for support code
//
// 8-14-97 sburns
#ifndef HEADERS_HXX_INCLUDED
#define HEADERS_HXX_INCLUDED
#include "burnslib.hpp"
#include <activeds.h>
#endif // HEADERS_HXX_INCLUDED
| 11.958333 | 49 | 0.665505 | npocmaka |
b0bdf8782d63bbc53d457dfc9bf3839c02f1bbe5 | 7,473 | cpp | C++ | src/chaincontrol/viewmanager.cpp | bille18/SuperBitcoin | f0145d53ec99decbcb571165b926f283c17e32bd | [
"MIT"
] | null | null | null | src/chaincontrol/viewmanager.cpp | bille18/SuperBitcoin | f0145d53ec99decbcb571165b926f283c17e32bd | [
"MIT"
] | null | null | null | src/chaincontrol/viewmanager.cpp | bille18/SuperBitcoin | f0145d53ec99decbcb571165b926f283c17e32bd | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////
// CViewManger.cpp
// Implementation of the Class CViewManger
// Created on: 2-2-2018 16:40:58
// Original author: ranger
///////////////////////////////////////////////////////////
#include <interface/ichaincomponent.h>
#include "sbtcd/baseimpl.hpp"... | 29.305882 | 115 | 0.617824 | bille18 |
b0c29f1a7269c26de4df0655f33e7a9443c5ebdd | 601 | cc | C++ | vize/src/vize/tool/import_raw_tool.cc | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 47 | 2020-03-30T14:36:46.000Z | 2022-03-06T07:44:54.000Z | vize/src/vize/tool/import_raw_tool.cc | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | null | null | null | vize/src/vize/tool/import_raw_tool.cc | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 8 | 2020-04-01T01:22:45.000Z | 2022-01-02T13:06:09.000Z | #include "vize/tool/import_raw_tool.hpp"
#include "vize/factory/impl/raw_volume_factory.hpp"
#include <QFileDialog>
namespace vize {
ImportRawTool::ImportRawTool(VolumeDocument& document, QWidget* parent)
: ImportVolumeTool(document, std::make_unique<RawVolumeFactory>()), _parent(parent)
{ }
ImportRawTool::~Impor... | 28.619048 | 117 | 0.778702 | oprogramadorreal |