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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f95382a4dba726d05d62b0d6799520fa5395f4be | 2,675 | cpp | C++ | cubecode/13种方法/1.sirgedas/SolveCube.cpp | YuYuCong/Color-recognition-of-Rubik-s-Cube | 35d5af5383ed56d38e596983aaeda98540fdb646 | [
"CC0-1.0"
] | 11 | 2018-07-28T03:20:26.000Z | 2022-02-18T07:36:35.000Z | cubecode/13种方法/1.sirgedas/SolveCube.cpp | technicianliu/Color-recognition-of-Rubik-s-Cube | 35d5af5383ed56d38e596983aaeda98540fdb646 | [
"CC0-1.0"
] | null | null | null | cubecode/13种方法/1.sirgedas/SolveCube.cpp | technicianliu/Color-recognition-of-Rubik-s-Cube | 35d5af5383ed56d38e596983aaeda98540fdb646 | [
"CC0-1.0"
] | 9 | 2018-07-28T03:20:29.000Z | 2021-05-09T05:54:30.000Z | #include <string>
#include <iostream>
using namespace std;
#define SH <<
#define PP = -1; ++
#define _F ;)
#define FOR_i for (int i PP i < __LINE__%21 _F
#define FOR_k for (int k PP k <
#define _E );
#define _G ;}
#define _I [i
#define _Q ){
#define FOR_cur_phase ; for (cur_phase PP cur_phase < 4 _F
#define _48_ [48]
#... | 25.970874 | 147 | 0.649346 | YuYuCong |
f95480d20fe214a6d0227f56bfb12e8f4e28ba65 | 463 | cpp | C++ | cpp/ThreeDimenArray.cpp | chathu1996/hacktoberfest2020 | eaf64ac051709984cde916259e90cb24213b5c2f | [
"MIT"
] | 71 | 2020-10-06T05:53:59.000Z | 2021-11-27T03:14:42.000Z | cpp/ThreeDimenArray.cpp | chathu1996/hacktoberfest2020 | eaf64ac051709984cde916259e90cb24213b5c2f | [
"MIT"
] | 92 | 2020-10-05T19:18:14.000Z | 2021-10-09T04:35:16.000Z | cpp/ThreeDimenArray.cpp | chathu1996/hacktoberfest2020 | eaf64ac051709984cde916259e90cb24213b5c2f | [
"MIT"
] | 572 | 2020-10-05T20:11:28.000Z | 2021-10-10T16:28:29.000Z |
#include<iostream>
using namespace std;
int main()
{
// initializing the 3-dimensional array
int x[2][3][2] =
{
{ {0,1}, {2,3}, {4,5} },
{ {6,7}, {8,9}, {10,11} }
};
// output each element's value
for (int i = 0; i < 2; ++i)
{
for (int j = 0; j < 3; ++j)
{
for (int k = 0; k < 2; ++k)... | 15.965517 | 46 | 0.388769 | chathu1996 |
f956278a4d64314251ea3fa39415f02b40a0d430 | 1,486 | cpp | C++ | MineTest/src/render/api/Camera.cpp | manimax3/MineTest | df4b484d2a58e41b7e418821a4785ab855b3f813 | [
"MIT"
] | 1 | 2016-09-13T20:02:18.000Z | 2016-09-13T20:02:18.000Z | MineTest/src/render/api/Camera.cpp | manimax3/MineTest | df4b484d2a58e41b7e418821a4785ab855b3f813 | [
"MIT"
] | null | null | null | MineTest/src/render/api/Camera.cpp | manimax3/MineTest | df4b484d2a58e41b7e418821a4785ab855b3f813 | [
"MIT"
] | null | null | null | #include "Camera.h"
void Camera::calculateRotation(float xOffset, float yOffset)
{
xOffset *= this->MOUSE_SENSITIVY;
yOffset *= this->MOUSE_SENSITIVY;
this->m_Yaw += xOffset;
this->m_Pitch += yOffset;
// Make sure that when pitch is out of bounds, screen doesn't get flipped
if (this->m_Pitch > 89.0f)
this... | 29.137255 | 203 | 0.707941 | manimax3 |
f95f0bcc0a8dc2f67135c3e6fd067a33a8dfeba8 | 481 | hpp | C++ | gearoenix/system/gx-sys-application.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/system/gx-sys-application.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/system/gx-sys-application.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_SYSTEM_APPLICATION_HPP
#define GEAROENIX_SYSTEM_APPLICATION_HPP
#include "../core/gx-cr-build-configuration.hpp"
#ifdef GX_USE_SDL
#include "sdl/gx-sys-sdl-app.hpp"
#elif defined(GX_USE_GLFW)
#include "glfw/gx-sys-glfw.hpp"
#elif defined(GX_IN_ANDROID)
#include "android/gx-sys-and-app.hpp"
#elif defin... | 30.0625 | 52 | 0.802495 | Hossein-Noroozpour |
f95f7d7531ae20112a1135978273565088d6fc87 | 2,130 | cc | C++ | mediapipe/calculators/util/gesture_to_render_data_calculator.cc | blackhatdwh/MediaPipe_Gesture | 2b4ab4c0ec0452c93c1e9fb8fd49b0fdfcd56385 | [
"Apache-2.0"
] | 1 | 2020-02-07T23:49:02.000Z | 2020-02-07T23:49:02.000Z | mediapipe/calculators/util/gesture_to_render_data_calculator.cc | blackhatdwh/MediaPipe_Gesture | 2b4ab4c0ec0452c93c1e9fb8fd49b0fdfcd56385 | [
"Apache-2.0"
] | null | null | null | mediapipe/calculators/util/gesture_to_render_data_calculator.cc | blackhatdwh/MediaPipe_Gesture | 2b4ab4c0ec0452c93c1e9fb8fd49b0fdfcd56385 | [
"Apache-2.0"
] | 2 | 2020-08-18T03:49:45.000Z | 2022-02-08T05:13:05.000Z | #include "absl/memory/memory.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "mediapipe/framework/calculator_framework.h"
#include "mediapipe/framework/calculator_options.pb.h"
#include "mediapipe/framework/formats/landmark.pb.h"
#include "mediapipe/framework/formats/location_data.pb.h"... | 38.035714 | 88 | 0.749765 | blackhatdwh |
f9671d17f0abbd8eb21f51c56bc4e58f50fe943b | 5,427 | cpp | C++ | notes_tool_tests.cpp | philtherobot/notes_tool | df22ff8bb3e8930c06ac45f37e9cf8270efd7d05 | [
"MIT"
] | null | null | null | notes_tool_tests.cpp | philtherobot/notes_tool | df22ff8bb3e8930c06ac45f37e9cf8270efd7d05 | [
"MIT"
] | null | null | null | notes_tool_tests.cpp | philtherobot/notes_tool | df22ff8bb3e8930c06ac45f37e9cf8270efd7d05 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
TEST(parse_filename, simple)
{
File file(L"./inro desktop The subject.md");
Name fi;
ASSERT_TRUE( parse_filename(file, fi) );
ASSERT_TRUE( fi.sphere );
EXPECT_EQ( *fi.sphere, L"#inro" );
ASSERT_TRUE( fi.project );
EXPECT_EQ( *fi.project, L"#desktop" );
ASSER... | 22.42562 | 84 | 0.624286 | philtherobot |
f96e944b696b4fb550006d1f4e78dc3230e40311 | 10,684 | cpp | C++ | digsby/ext/src/BuddyList/Sorters.cpp | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/ext/src/BuddyList/Sorters.cpp | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/ext/src/BuddyList/Sorters.cpp | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | #include "precompiled.h"
#include "config.h"
#include "Sorters.h"
#include "NodePrivate.h"
#include "Contact.h"
#include "StringUtils.h"
#include "Status.h"
#include <ostream>
#include <string>
using std::wostringstream;
using std::tolower;
#include <iostream>
using std::wcout;
using std::endl;
#def... | 27.968586 | 81 | 0.622707 | ifwe |
f9776b890148d7d63f0bcdaa0e886a58e77576c1 | 1,740 | cc | C++ | ui/android/resources/ui_resource_provider.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | ui/android/resources/ui_resource_provider.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ui/android/resources/ui_resource_provider.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/android/resources/ui_resource_provider.h"
#include "cc/resources/ui_resource_client.h"
#include "cc/trees/layer_tree_host.h"
#include "ui/an... | 26.769231 | 76 | 0.756322 | kjthegod |
f97808bfb07901a24285a9ffa3b26000f482780c | 2,607 | cc | C++ | base/trace_event/heap_profiler_type_name_deduplicator_unittest.cc | gclxry/gn_template | cf20732cdd6c76273b1118819a9c9c5d67c05320 | [
"Apache-2.0"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | base/trace_event/heap_profiler_type_name_deduplicator_unittest.cc | gclxry/gn_template | cf20732cdd6c76273b1118819a9c9c5d67c05320 | [
"Apache-2.0"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | base/trace_event/heap_profiler_type_name_deduplicator_unittest.cc | gclxry/gn_template | cf20732cdd6c76273b1118819a9c9c5d67c05320 | [
"Apache-2.0"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <string>
#include "base/json/json_reader.h"
#include "base/trace_event/heap_profiler_type_name_deduplicator.h"
#include "base/... | 31.035714 | 79 | 0.732259 | gclxry |
f97936c86de4e82372892aa95a871616fe2a4d58 | 12,066 | hpp | C++ | Optimization/src/InstanceAnalyser.hpp | AndreaBorghesi/PA-HPC-SIM | 2caac39033b38496c714831f0c6f467be596b770 | [
"Apache-2.0"
] | null | null | null | Optimization/src/InstanceAnalyser.hpp | AndreaBorghesi/PA-HPC-SIM | 2caac39033b38496c714831f0c6f467be596b770 | [
"Apache-2.0"
] | null | null | null | Optimization/src/InstanceAnalyser.hpp | AndreaBorghesi/PA-HPC-SIM | 2caac39033b38496c714831f0c6f467be596b770 | [
"Apache-2.0"
] | null | null | null | #ifndef INSTANCEANALYSER_HPP_
#define INSTANCEANALYSER_HPP_
#include <algorithm>
#include <map>
#include <iomanip>
#include <limits>
#include <Optimizer.hpp>
#include <FixedStartSchedule.hpp>
#include <Rankers.hpp>
#include <NodeReader.hpp>
#include <JobReader.hpp>
#include <JobQueueReader.hpp>
#include <Util.hpp>
... | 30.938462 | 82 | 0.588679 | AndreaBorghesi |
f97a4569577173e7e43007a7d80c5960a6878b6a | 15,224 | cpp | C++ | src/methods/Octane.cpp | anassmeskini/GPH | c3ded30f5cd780a86e8c92d9db6ea89764fcc499 | [
"MIT"
] | 4 | 2020-10-30T14:57:41.000Z | 2021-07-14T09:00:53.000Z | src/methods/Octane.cpp | anassmeskini/GPH | c3ded30f5cd780a86e8c92d9db6ea89764fcc499 | [
"MIT"
] | 2 | 2021-03-23T02:49:31.000Z | 2021-10-09T02:59:09.000Z | src/methods/Octane.cpp | anassmeskini/GPH | c3ded30f5cd780a86e8c92d9db6ea89764fcc499 | [
"MIT"
] | 1 | 2020-10-30T14:58:05.000Z | 2020-10-30T14:58:05.000Z | #include "Octane.h"
#include "core/Common.h"
#include "core/Numerics.h"
#include "io/Message.h"
void
Octane::search(const MIP& mip, const std::vector<double>& lb,
const std::vector<double>& ub, const std::vector<Activity>&,
const LPResult& result, const std::vector<double>&,
... | 28.140481 | 80 | 0.567459 | anassmeskini |
f97ffba7dc2f3c27c0d869a4bc00443d1046018e | 559 | cpp | C++ | src/sample.cpp | NweZinOo/cnf | 6f5774486d8751bf7885d03882a1e39881f041b0 | [
"BSD-3-Clause"
] | null | null | null | src/sample.cpp | NweZinOo/cnf | 6f5774486d8751bf7885d03882a1e39881f041b0 | [
"BSD-3-Clause"
] | null | null | null | src/sample.cpp | NweZinOo/cnf | 6f5774486d8751bf7885d03882a1e39881f041b0 | [
"BSD-3-Clause"
] | 1 | 2016-05-26T21:28:14.000Z | 2016-05-26T21:28:14.000Z | # include <learner.hpp>
# include <tagger.hpp>
using namespace Cnf;
using namespace SemiCnf;
int main(int argc, char **argv)
{
Learner<Cnflearn> learner(*(argv+1), // template
*(argv+2), // corpus
1000000); // poolsize
learner.init();
learner.learn(50,1); // iter=50, L2-regularization
l... | 23.291667 | 53 | 0.626118 | NweZinOo |
f9865d0acceb496fc510592fabad057f222bff5b | 83 | hpp | C++ | mod/meta/type/adam.hpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 1 | 2019-02-02T07:07:32.000Z | 2019-02-02T07:07:32.000Z | mod/meta/type/adam.hpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 25 | 2016-09-23T16:36:19.000Z | 2019-02-12T14:14:32.000Z | mod/meta/type/adam.hpp | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | null | null | null | #pragma once
#include "../common.hpp"
namespace wrd {
class _wout adam {};
}
| 10.375 | 24 | 0.626506 | kniz |
f986cce029dcbbdc56a5717345d6ac186a500717 | 2,928 | cpp | C++ | src/cimple/ref/DZT_String.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | 4 | 2015-12-16T06:43:14.000Z | 2020-01-24T06:05:47.000Z | src/disp/DZT_String.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | null | null | null | src/disp/DZT_String.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | null | null | null | /*
**==============================================================================
**
** Copyright (c) 2003, 2004, 2005, 2006, Michael Brasher, Karl Schopmeyer
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and associated documentation files (the "Software"),
** ... | 22.875 | 80 | 0.567623 | LegalizeAdulthood |
f987731e7645cd3c702cd80e27c6f2fb95e5bcd9 | 733 | hpp | C++ | src/tcc/tcc/parser/skipper.hpp | tobiashienzsch/tcc | 0311a92804fb32baca8b562bb18683e40f4686e2 | [
"MIT"
] | null | null | null | src/tcc/tcc/parser/skipper.hpp | tobiashienzsch/tcc | 0311a92804fb32baca8b562bb18683e40f4686e2 | [
"MIT"
] | null | null | null | src/tcc/tcc/parser/skipper.hpp | tobiashienzsch/tcc | 0311a92804fb32baca8b562bb18683e40f4686e2 | [
"MIT"
] | null | null | null | #if !defined(TCC_PARSER_QI_SKIPPER_HPP)
#define TCC_PARSER_QI_SKIPPER_HPP
#include <boost/spirit/include/qi.hpp>
namespace tcc
{
namespace parser
{
namespace qi = boost::spirit::qi;
namespace ascii = boost::spirit::ascii;
/**
* The skipper grammar
*/
template<typename Iterator>
struct Skipper : qi::grammar<It... | 18.794872 | 48 | 0.55116 | tobiashienzsch |
f98e447df57fd3769427e564a046449743caf1f5 | 646 | cpp | C++ | source/main.cpp | amanb014/NxReader | f7c74b78e3c676cab29da78079d4c2d12c9065a1 | [
"MIT"
] | 3 | 2018-12-14T17:36:21.000Z | 2020-11-06T19:29:49.000Z | source/main.cpp | amanb014/NxReader | f7c74b78e3c676cab29da78079d4c2d12c9065a1 | [
"MIT"
] | null | null | null | source/main.cpp | amanb014/NxReader | f7c74b78e3c676cab29da78079d4c2d12c9065a1 | [
"MIT"
] | null | null | null | #include <switch.h>
#include <SDL2/SDL.h>
#include "main.hpp"
#include "App.hpp"
#include <string.h>
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/errno.h>
#include <unistd.h>
#include <switch.h>
int main() {
consoleInit(NULL); // TODO remove in final releases
socketInitializeDef... | 17 | 52 | 0.676471 | amanb014 |
f98e8141cdc07d3fc590b592332c8c55cb1fbc7e | 507 | cpp | C++ | showcase/source/Renderer/Shader.cpp | ravi688/VulkanRenderer | 2e4d15cd53a7fef49fc2e6fe27643746ca1245da | [
"MIT"
] | null | null | null | showcase/source/Renderer/Shader.cpp | ravi688/VulkanRenderer | 2e4d15cd53a7fef49fc2e6fe27643746ca1245da | [
"MIT"
] | 3 | 2022-01-28T23:19:13.000Z | 2022-02-02T07:51:30.000Z | showcase/source/Renderer/Shader.cpp | ravi688/VulkanRenderer | 2e4d15cd53a7fef49fc2e6fe27643746ca1245da | [
"MIT"
] | null | null | null |
#include <Renderer/Shader.hpp>
#include <Renderer/Renderer.hpp>
namespace V3D
{
SHOWCASE_API Shader::Shader(Renderer& renderer, const std::string& filePath)
{
handle = shader_load(renderer.handle, filePath.c_str());
}
SHOWCASE_API void Shader::destroy() const
{
shader_destroy(handle);
}
SHOWCASE_API void... | 18.107143 | 77 | 0.741617 | ravi688 |
f98f057143f80a2437962b317892546cad68c7c6 | 4,438 | inl | C++ | legion/engine/core/containers/shared_data_view.inl | Legion-Engine/Legion-Engine | a2b898e1cc763b82953c6990dde0b379491a30d0 | [
"MIT"
] | 258 | 2020-10-22T07:09:57.000Z | 2021-09-09T05:47:09.000Z | legion/engine/core/containers/shared_data_view.inl | LeonBrands/Legion-Engine | 40aa1f4a8c59eb0824de1cdda8e17d8dba7bed7c | [
"MIT"
] | 51 | 2020-11-17T13:02:10.000Z | 2021-09-07T18:19:39.000Z | legion/engine/core/containers/shared_data_view.inl | Rythe-Interactive/Rythe-Engine.rythe-legacy | c119c494524b069a73100b12dc3d8b898347830d | [
"MIT"
] | 13 | 2020-12-08T08:06:48.000Z | 2021-09-09T05:47:19.000Z | #include <core/containers/shared_data_view.hpp>
#pragma once
namespace legion::core
{
template<typename DataType>
inline L_ALWAYS_INLINE shared_data_view<DataType>::shared_data_view(std::nullptr_t) noexcept
: shared_data_view(nullptr, 0, 0, false) {}
template<typename DataType>
inline shared_d... | 31.7 | 126 | 0.687247 | Legion-Engine |
f9921dd157206a112f4fecbcb1764952090856ba | 1,427 | hpp | C++ | src/GUI/ButtonsList/ButtonsList.hpp | YaroshenkoYaroslav/FVNEngine | a242e7a289e50819c1edda4b6fe3cd312cf7667d | [
"MIT"
] | null | null | null | src/GUI/ButtonsList/ButtonsList.hpp | YaroshenkoYaroslav/FVNEngine | a242e7a289e50819c1edda4b6fe3cd312cf7667d | [
"MIT"
] | null | null | null | src/GUI/ButtonsList/ButtonsList.hpp | YaroshenkoYaroslav/FVNEngine | a242e7a289e50819c1edda4b6fe3cd312cf7667d | [
"MIT"
] | null | null | null | #ifndef SRC_GUI_BUTTONS_LIST_BUTTONS_LIST
#define SRC_GUI_BUTTONS_LIST_BUTTONS_LIST
#include <vector>
#include "Button.hpp"
namespace FVNEngine {
class ButtonsList {
public:
ButtonsList();
int UpdateSfmlEvents();
void Update();
void Draw();
//Controller
void AddButton();
void AddButtons(size_t coun... | 23.393443 | 88 | 0.755431 | YaroshenkoYaroslav |
f992b42725c8d64f9234881a0679d32a390e3ee2 | 217 | cpp | C++ | math/extgcd.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | 1 | 2020-11-06T03:36:03.000Z | 2020-11-06T03:36:03.000Z | math/extgcd.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | null | null | null | math/extgcd.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | 2 | 2020-11-06T03:39:10.000Z | 2021-04-04T04:38:30.000Z | template<typename T>
T extgcd(T a, T b, T &x ,T &y){
for (T u = y = 1, v = x = 0; a; ) {
ll q = b/a;
swap(x -= q*u, u);
swap(y -= q*v, v);
swap(b -= q*a, a);
}
return b;
}
| 19.727273 | 39 | 0.364055 | beet-aizu |
f9946ffcd1905f3e51f25975e0adc5b6430bb428 | 608 | cpp | C++ | cpp/locale_isalpha.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/locale_isalpha.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/locale_isalpha.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | /*
g++ --std=c++20 -pthread -o ../_build/cpp/locale_isalpha.exe ./cpp/locale_isalpha.cpp && (cd ../_build/cpp/;./locale_isalpha.exe)
https://en.cppreference.com/w/cpp/locale/isalpha
*/
#include <iostream>
#include <locale>
int main()
{
const wchar_t c = L'\u042f'; // cyrillic capital letter ya
std::locale loc1(... | 33.777778 | 129 | 0.597039 | rpuntaie |
f99787ce897e117635890a31055e56904891fe42 | 2,892 | cpp | C++ | ugene/src/plugins/expert_discovery/src/ExpertDiscoveryPosNegDialog.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/plugins/expert_discovery/src/ExpertDiscoveryPosNegDialog.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/plugins/expert_discovery/src/ExpertDiscoveryPosNegDialog.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | #include "ExpertDiscoveryPosNegDialog.h"
#include <U2Core/GObjectTypes.h>
#include <U2Gui/LastUsedDirHelper.h>
#include <U2Gui/DialogUtils.h>
#include <QtGui/QFileDialog>
#include <QtGui/QMessageBox>
namespace U2 {
ExpertDiscoveryPosNegDialog::ExpertDiscoveryPosNegDialog(QWidget *parent)
: QDialog(parent), generate... | 32.494382 | 171 | 0.71231 | iganna |
f99db7d7abd2a867d738d1fc5fff577b2ad98727 | 2,618 | cpp | C++ | src/ui/widgets/Label.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 65 | 2018-06-03T23:09:46.000Z | 2021-07-22T22:03:34.000Z | src/ui/widgets/Label.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 8 | 2018-06-20T17:21:30.000Z | 2020-06-30T01:06:26.000Z | src/ui/widgets/Label.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 34 | 2018-06-04T03:40:52.000Z | 2022-02-15T07:02:05.000Z | #include "Vorb/stdafx.h"
#include "Vorb/ui/widgets/Label.h"
#include "Vorb/ui/UIRenderer.h"
#include "Vorb/ui/widgets/Viewport.h"
vui::Label::Label() :
TextWidget(),
m_labelColor(color::Transparent),
m_labelHoverColor(color::Transparent),
m_labelTexture(0),
m_labelHoverTexture(0),
m_textColor(c... | 24.933333 | 88 | 0.682964 | ChillstepCoder |
f9a13b6b748e74f02be28d728afddcf6108c4b3e | 3,589 | cpp | C++ | Stanford Competetive Programming/06BGA(BFS).cpp | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 13 | 2021-09-02T07:30:02.000Z | 2022-03-22T19:32:03.000Z | Model Algorithms/Graphs/Breadth First Search.cpp | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | null | null | null | Model Algorithms/Graphs/Breadth First Search.cpp | UtkarshPathrabe/Competitive-Coding | ba322fbb1b88682d56a9b80bdd92a853f1caa84e | [
"MIT"
] | 3 | 2021-08-24T16:06:22.000Z | 2021-09-17T15:39:53.000Z | /* Author: Utkarsh Pathrabe
* Algorithm: Breadth First Search Traversal of Graphs
*/
/* The operations of enqueuing and dequeuing take O(1) time, so the total time devoted to queue
* operations is O(V). Because the adjacency list of each vertex is scanned only when the vertex
* is dequeued, each adjacency list is s... | 26.984962 | 148 | 0.61995 | UtkarshPathrabe |
f9a61aa1813970e703095f5b79b442157b9120a8 | 1,624 | cpp | C++ | src/app/cmds/loop.cpp | glfernando/sc | 55972c296b8a873fed29d4ec6cfdd565da079047 | [
"BSD-3-Clause"
] | 1 | 2021-01-18T03:43:37.000Z | 2021-01-18T03:43:37.000Z | src/app/cmds/loop.cpp | glfernando/sc | 55972c296b8a873fed29d4ec6cfdd565da079047 | [
"BSD-3-Clause"
] | null | null | null | src/app/cmds/loop.cpp | glfernando/sc | 55972c296b8a873fed29d4ec6cfdd565da079047 | [
"BSD-3-Clause"
] | null | null | null | /*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2021 Fernando Lugo <lugo.fernando@gmail.com>
*/
/*
* Command to sleep for speficied time
*/
#include <app/shell.h>
#include <errcodes.h>
#include <string.h>
import lib.fmt;
import std.string;
import std.vector;
using lib::fmt::println;
using std::st... | 20.049383 | 99 | 0.552956 | glfernando |
e2fe7ce15de352af154c53b46e8e14ca789ce17f | 453 | cpp | C++ | competitive_programming/programming_contests/uri/sum_of_consecutive_odd_numbers_3.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/uri/sum_of_consecutive_odd_numbers_3.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/uri/sum_of_consecutive_odd_numbers_3.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | // https://www.urionlinejudge.com.br/judge/en/problems/view/1158
#include <iostream>
using namespace std;
int main() {
int n, n1, n2, counter=0, total=0;
cin >> n;
while (n--) {
cin >> n1 >> n2;
while (true) {
if (n1 % 2 != 0) {
total += n1;
counter++;
}
if (count... | 12.583333 | 64 | 0.461369 | LeandroTk |
3900f714b37a4fe65b4a499f6da666044f565f37 | 47,373 | cpp | C++ | src/02-opengl/opengl.cpp | randomgraphics/random-graphics | 80232edd4f9c66ca2b918ba69a8f94bddd328dfc | [
"BSL-1.0",
"BSD-2-Clause"
] | null | null | null | src/02-opengl/opengl.cpp | randomgraphics/random-graphics | 80232edd4f9c66ca2b918ba69a8f94bddd328dfc | [
"BSL-1.0",
"BSD-2-Clause"
] | null | null | null | src/02-opengl/opengl.cpp | randomgraphics/random-graphics | 80232edd4f9c66ca2b918ba69a8f94bddd328dfc | [
"BSL-1.0",
"BSD-2-Clause"
] | null | null | null | #ifndef RG_INTERNAL
#define RG_INTERNAL
#endif
#include "rg/opengl.h"
#include <sstream>
#include <fstream>
#include <algorithm>
#include <atomic>
#include <stack>
#include <iomanip>
#include <cmath>
#if RG_HAS_EGL
#include <glad/glad_egl.h>
#include <glad/glad_glx.h>
#endif
using namespace rg;
using namespace rg::op... | 34.578832 | 170 | 0.542756 | randomgraphics |
390501148326ee92c6c7e9250512c3705663ea67 | 32,047 | cpp | C++ | AnyAngleAlgorithm.cpp | Gab-Z/rozetta | 491e255a9eec4bdf803a866a50be35d2ad3e4ff8 | [
"Apache-2.0"
] | 1 | 2019-11-28T08:02:06.000Z | 2019-11-28T08:02:06.000Z | AnyAngleAlgorithm.cpp | Gab-Z/rozetta | 491e255a9eec4bdf803a866a50be35d2ad3e4ff8 | [
"Apache-2.0"
] | null | null | null | AnyAngleAlgorithm.cpp | Gab-Z/rozetta | 491e255a9eec4bdf803a866a50be35d2ad3e4ff8 | [
"Apache-2.0"
] | null | null | null | /*
This code was developed by Tansel Uras (turas@usc.edu) at USC.
The code is hosted at 'http://idm-lab.org/anyangle'.
If you use this code in your research, please cite our SoCS paper:
T. Uras and S. Koenig, 2015. An Empirical Comparison of Any-Angle Path-Planning Algorithms. In: Proceedings of the 8th Annual Sympo... | 35.024044 | 158 | 0.609449 | Gab-Z |
3905da1532e747288a197b30583b11b0e1db2165 | 1,539 | cpp | C++ | Source/Riff/Riff_Chunks_AVI__JUNK.cpp | ablwr/AVIMetaEdit | 72cdf628fa90ce36e17c8e8f66247e74567b41aa | [
"CC0-1.0"
] | 9 | 2017-05-30T19:21:11.000Z | 2020-03-21T03:41:08.000Z | Source/Riff/Riff_Chunks_AVI__JUNK.cpp | fooloomanzoo/AVIMetaEdit | 2839eca2075ae071a59db9e7b8e0daf7287c8a2f | [
"CC0-1.0"
] | 1 | 2020-04-08T21:43:29.000Z | 2020-04-08T21:43:29.000Z | Source/Riff/Riff_Chunks_AVI__JUNK.cpp | fooloomanzoo/AVIMetaEdit | 2839eca2075ae071a59db9e7b8e0daf7287c8a2f | [
"CC0-1.0"
] | 11 | 2015-03-23T14:36:06.000Z | 2021-01-11T12:30:12.000Z | // AVI MetaEdit Riff - RIFF stuff for AVI MetaEdit
//
// This code was created in 2010 for the Library of Congress and the
// other federal government agencies participating in the Federal Agencies
// Digitization Guidelines Initiative and it is in the public domain.
//
//+++++++++++++++++++++++++++++++++++++++++... | 36.642857 | 78 | 0.232619 | ablwr |
39174a4318f008611b5eb2dd7685516b807f1b09 | 1,645 | cpp | C++ | src/flapGame/flapGame/Sweat.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 239 | 2020-11-26T12:53:51.000Z | 2022-03-24T01:02:49.000Z | src/flapGame/flapGame/Sweat.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 6 | 2020-11-27T04:00:44.000Z | 2021-07-07T03:02:57.000Z | src/flapGame/flapGame/Sweat.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 24 | 2020-11-26T22:59:27.000Z | 2022-02-06T04:02:50.000Z | #include <flapGame/Core.h>
#include <flapGame/Sweat.h>
#include <flapGame/DrawContext.h>
namespace flap {
bool Sweat::update(float dt) {
this->time = min(2.f, this->time + dt * 2.f);
return this->time < 1.4f;
};
void Sweat::addInstances(const Float4x4& birdToViewport,
Array<StarShade... | 39.166667 | 106 | 0.516717 | KnyazQasan |
391bab6dd9ffc3f284213d7002975d62384d0589 | 12,988 | cpp | C++ | vm/ExecuteInstruction.cpp | rlannon/SIN-Language | cf10a7ac0d7f020f167ba5755eadc6fa84232e2f | [
"MIT"
] | null | null | null | vm/ExecuteInstruction.cpp | rlannon/SIN-Language | cf10a7ac0d7f020f167ba5755eadc6fa84232e2f | [
"MIT"
] | 2 | 2019-02-22T03:54:19.000Z | 2019-07-28T18:27:14.000Z | vm/ExecuteInstruction.cpp | truffly/SIN-Language | cf10a7ac0d7f020f167ba5755eadc6fa84232e2f | [
"MIT"
] | null | null | null | /*
SIN Toolchain
ExecuteInstruction.cpp
Copyright 2019 Riley Lannon
Contains the implementation of the execute_instruction function for the SIN VM; because it is such a large function, it is easier to have it in a separate file
*/
#include "SINVM.h"
void SINVM::execute_instruction(uint16_t opcode) {
/*
Execute ... | 21.326765 | 159 | 0.624269 | rlannon |
391c341b71ea84b78aa6619b5517f442cd3ec51b | 158 | cpp | C++ | tests/gtest/dummy.cpp | vtta/cpp-bootstrap | 43094ed73d323e2165bbdd36e87440e70bdcfb15 | [
"WTFPL"
] | 1 | 2020-07-29T14:28:00.000Z | 2020-07-29T14:28:00.000Z | tests/gtest/dummy.cpp | vtta/cpp-bootstrap | 43094ed73d323e2165bbdd36e87440e70bdcfb15 | [
"WTFPL"
] | null | null | null | tests/gtest/dummy.cpp | vtta/cpp-bootstrap | 43094ed73d323e2165bbdd36e87440e70bdcfb15 | [
"WTFPL"
] | null | null | null | #include "dummy.hpp"
#include "gtest/gtest.h"
TEST(DummyTests, SampleTest) {
for (auto i = 0; i < 10; ++i) {
EXPECT_EQ(dummy(i), i + i);
}
} | 17.555556 | 35 | 0.550633 | vtta |
3923070727ad24e35fcda42f48c4b56318f70938 | 612 | cpp | C++ | computergraphics/exp1.cpp | samarth70/Computer-Graphics-Course | 1b90d953465b537870bb70a33e654b7f72004381 | [
"Apache-2.0"
] | null | null | null | computergraphics/exp1.cpp | samarth70/Computer-Graphics-Course | 1b90d953465b537870bb70a33e654b7f72004381 | [
"Apache-2.0"
] | null | null | null | computergraphics/exp1.cpp | samarth70/Computer-Graphics-Course | 1b90d953465b537870bb70a33e654b7f72004381 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
#include<graphics.h>
void wait_for_char()
{
//Wait for a key press
int in = 0;
while (in == 0) {
in = getchar();
}
}
int main()
{
int gd = DETECT, gm;
int left = 100, right = 200, top ... | 17.485714 | 74 | 0.542484 | samarth70 |
3923f378dae4aaf75bf5b1d44104585773357a80 | 2,825 | hpp | C++ | src/AWEngine/Packet/ToServer/Login/Init.hpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | src/AWEngine/Packet/ToServer/Login/Init.hpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | src/AWEngine/Packet/ToServer/Login/Init.hpp | graymadness/AWEngine_Packet | 5a00aa954edf5bc5d496746cfdeab1511d5633b1 | [
"MIT"
] | null | null | null | #pragma once
#include <chrono>
#include <AWEngine/Packet/IPacket.hpp>
namespace AWEngine::Packet::ToServer::Login
{
/// Initial packet send by client after the connection is created.
/// If other packet is sent or no packet is sent in a short period of time (depends on server), server should terminate the co... | 34.45122 | 156 | 0.581593 | graymadness |
39273a4ef4d7cafb33da1ab828fb9320b4dd2aaf | 6,470 | hpp | C++ | willow/include/popart/popx/pritask.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | null | null | null | willow/include/popart/popx/pritask.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | null | null | null | willow/include/popart/popx/pritask.hpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Graphcore Ltd. All rights reserved.
#ifndef GUARD_PRITASK_HPP
#define GUARD_PRITASK_HPP
#include <functional>
#include <set>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <poplar/Program.hpp>
#include <snap/Graph.hpp>
#include <snap/Program.hpp>
#incl... | 35.944444 | 80 | 0.739258 | gglin001 |
392833cf1592dc6636516baa78069993bbc4f2c8 | 1,941 | cc | C++ | absl/strings/internal/string_constant_test.cc | AlexOrion1/abseil-cpp | 99a3ea575bc98cfcd9057d7acf16c7831375cecc | [
"Apache-2.0"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | absl/strings/internal/string_constant_test.cc | iWYZ-666/abseil-cpp | aad2c8a3966424bbaa2f26027d104d17f9c1c1ae | [
"Apache-2.0"
] | 860 | 2017-09-26T03:38:59.000Z | 2022-03-31T18:28:28.000Z | absl/strings/internal/string_constant_test.cc | iWYZ-666/abseil-cpp | aad2c8a3966424bbaa2f26027d104d17f9c1c1ae | [
"Apache-2.0"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 31.819672 | 75 | 0.736218 | AlexOrion1 |
392bbb4665fa36f9dbc5399984082518b8c0801c | 32,051 | cpp | C++ | Extern/JUCE/extras/Introjucer/Source/Project/jucer_Project.cpp | vinniefalco/SimpleDJ | 30cf1929eaaf0906a1056a33378e8b330062c691 | [
"MIT"
] | 27 | 2015-05-07T02:10:39.000Z | 2021-06-22T14:52:50.000Z | Extern/JUCE/extras/Introjucer/Source/Project/jucer_Project.cpp | JoseDiazRohena/SimpleDJ | 30cf1929eaaf0906a1056a33378e8b330062c691 | [
"MIT"
] | null | null | null | Extern/JUCE/extras/Introjucer/Source/Project/jucer_Project.cpp | JoseDiazRohena/SimpleDJ | 30cf1929eaaf0906a1056a33378e8b330062c691 | [
"MIT"
] | 14 | 2015-09-12T12:00:22.000Z | 2022-03-08T22:24:24.000Z | /*
==============================================================================
This file is part of the JUCE library - "Jules' Utility Class Extensions"
Copyright 2004-11 by Raw Material Software Ltd.
------------------------------------------------------------------------------
JUCE can be r... | 32.407482 | 218 | 0.615145 | vinniefalco |
39361a7fd51a729dacd16908a53bf24a9c29b098 | 12,037 | hpp | C++ | cxx/lib/win32-mingw/include/boost/uuid/uuid.hpp | MoysheBenRabi/setp | 7619f0bae457e14e2fb41e58bfe517019628c5de | [
"Apache-2.0"
] | 1 | 2021-07-13T12:22:22.000Z | 2021-07-13T12:22:22.000Z | cxx/lib/win32-msvc/include/boost/uuid/uuid.hpp | MoysheBenRabi/setp | 7619f0bae457e14e2fb41e58bfe517019628c5de | [
"Apache-2.0"
] | 1 | 2021-01-04T21:53:56.000Z | 2021-01-04T21:59:36.000Z | cxx/lib/darwin-i686/include/boost/uuid/uuid.hpp | MoysheBenRabi/setp | 7619f0bae457e14e2fb41e58bfe517019628c5de | [
"Apache-2.0"
] | 1 | 2021-09-19T16:18:54.000Z | 2021-09-19T16:18:54.000Z | // Boost uuid.hpp header file ----------------------------------------------//
// Copyright 2006 Andy Tompkins.
// 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)
// Revision History
// 06 Feb 2006 - Initial Rev... | 28.659524 | 116 | 0.592008 | MoysheBenRabi |
3938f153341488c768efec75d215ee09ff2c3f0f | 16,546 | cpp | C++ | saber/funcs/impl/amd/amd_gemm.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 533 | 2018-05-18T06:14:04.000Z | 2022-03-23T11:46:30.000Z | saber/funcs/impl/amd/amd_gemm.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 100 | 2018-05-26T08:32:48.000Z | 2022-03-17T03:26:25.000Z | saber/funcs/impl/amd/amd_gemm.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 167 | 2018-05-18T06:14:35.000Z | 2022-02-14T01:44:20.000Z | /* Copyright (c) 2019 Anakin Authors, 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... | 38.840376 | 111 | 0.491116 | baajur |
393e168b66785c3964f4ef10e0538f93270f3150 | 402 | cpp | C++ | SPOJPL/AnotherRockPaperScissors.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | SPOJPL/AnotherRockPaperScissors.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | SPOJPL/AnotherRockPaperScissors.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <iostream>
using namespace std;
typedef long long ll;
ll n;
string app = "RPSPSRSRP";
int main(void) {
while(cin >> n && n != 0) {
char c = app[(n % 9)];
if(c == 'R') {
cout << 'P' << endl;
} else if(c == 'P') {
cout << 'S' << endl;
... | 17.478261 | 33 | 0.378109 | aajjbb |
393e37532319e26bb7d251f7f4e3b9d5ad550f11 | 7,384 | cc | C++ | md-parser/src/diff.cc | kev0960/ModooCode | aae17e3be86da2f39bf93d7a91364b2a6a348525 | [
"Apache-2.0"
] | 39 | 2019-02-26T08:21:06.000Z | 2022-03-24T06:38:25.000Z | md-parser/src/diff.cc | kev0960/ModooCode | aae17e3be86da2f39bf93d7a91364b2a6a348525 | [
"Apache-2.0"
] | 9 | 2019-03-01T05:07:44.000Z | 2022-02-21T07:39:11.000Z | md-parser/src/diff.cc | kev0960/ModooCode | aae17e3be86da2f39bf93d7a91364b2a6a348525 | [
"Apache-2.0"
] | 5 | 2021-02-08T05:52:01.000Z | 2022-03-08T06:37:34.000Z | #include "diff.h"
#include <algorithm>
#include <iostream>
#include "util.h"
namespace md_parser {
namespace {
std::vector<std::string_view> SplitByEnter(const string& s) {
std::vector<std::string_view> chunks;
size_t start = 0;
while (start < s.size()) {
size_t next_enter = s.find('\n', start);
if (n... | 28.183206 | 80 | 0.565276 | kev0960 |
39414439584f9bdebcffb0f7317ec372c5bd7764 | 224 | cpp | C++ | Code Files/section_9/example_4.cpp | PacktPublishing/C-20-2a-New-Features | c842ddf13640f7bfaf65b4662561e2d054b6746d | [
"MIT"
] | 14 | 2020-02-27T16:19:14.000Z | 2022-01-28T01:29:55.000Z | Code Files/section_9/example_4.cpp | PacktPublishing/C-20-2a-New-Features | c842ddf13640f7bfaf65b4662561e2d054b6746d | [
"MIT"
] | null | null | null | Code Files/section_9/example_4.cpp | PacktPublishing/C-20-2a-New-Features | c842ddf13640f7bfaf65b4662561e2d054b6746d | [
"MIT"
] | 8 | 2020-02-23T06:22:27.000Z | 2022-02-24T03:05:29.000Z | #include <iostream>
consteval const char* f(bool v)
{
return v ? "this is true" : "this is false";
}
constinit const char *c = f(true);
int main()
{
constexpr bool v = false;
std::cout << f(v) << std::endl;
}
| 14.933333 | 48 | 0.59375 | PacktPublishing |
39457244a39358cc7495ecb0cd23528b98ba93c3 | 353 | cpp | C++ | CHEFDETE.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | CHEFDETE.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | CHEFDETE.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
unordered_set<int> st;
for (int i = 0; i < n; ++i)
{
int tmp;
cin>>tmp;
st.insert(tmp);
}
if (n==1)
{
printf("0\n");
return 0;
}
for (int i = 1; i <= n; ++i)
{
if (st.find(i)==st.end())
{
printf("... | 13.074074 | 30 | 0.450425 | trehanarsh |
3945ce9ea4197b4f904a27cf4c946b204bcb92c6 | 6,641 | cpp | C++ | src/graphics/Animation.cpp | MicahMartin/asdf | d430777603a6906b7117e422885c949b539865cf | [
"MIT"
] | null | null | null | src/graphics/Animation.cpp | MicahMartin/asdf | d430777603a6906b7117e422885c949b539865cf | [
"MIT"
] | null | null | null | src/graphics/Animation.cpp | MicahMartin/asdf | d430777603a6906b7117e422885c949b539865cf | [
"MIT"
] | null | null | null | #include "graphics/Animation.h"
#include <fstream>
Animation::Animation(){
currentAnimElemIndex = 0;
currentAnimElemTimePassed = 0;
animationTime = 0;
animationTimePassed = 0;
animFrame = 0;
}
Animation::~Animation(){ }
AnimationStateObj* Animation::saveState(){
animObj.animFrame = animFrame;
animObj... | 29.255507 | 150 | 0.655624 | MicahMartin |
3945fa1d2b3b7684190c31d8b0f27fede76a3d95 | 1,531 | hh | C++ | perl/inc/com/centreon/connector/perl/pipe_handle.hh | centreon-lab/centreon-connectors | 3e80bea5c5d999bbce0fcb33b819ddc1cab4d917 | [
"Apache-2.0"
] | 8 | 2020-07-26T09:12:02.000Z | 2022-03-30T17:24:29.000Z | perl/inc/com/centreon/connector/perl/pipe_handle.hh | centreon-lab/centreon-connectors | 3e80bea5c5d999bbce0fcb33b819ddc1cab4d917 | [
"Apache-2.0"
] | 47 | 2020-06-18T12:11:37.000Z | 2022-03-16T10:28:56.000Z | perl/inc/com/centreon/connector/perl/pipe_handle.hh | centreon-lab/centreon-connectors | 3e80bea5c5d999bbce0fcb33b819ddc1cab4d917 | [
"Apache-2.0"
] | 6 | 2016-02-05T15:12:03.000Z | 2021-09-02T19:40:35.000Z | /*
** Copyright 2012-2014 Centreon
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed t... | 28.886792 | 75 | 0.738733 | centreon-lab |
394af68a0a7eac6e9dd3d4783e1b85b66eef4c8b | 1,167 | cpp | C++ | src/DlgRotateSlider.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | 1 | 2022-03-31T02:28:18.000Z | 2022-03-31T02:28:18.000Z | src/DlgRotateSlider.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | null | null | null | src/DlgRotateSlider.cpp | SVGEditors/QtSVGEditor | 90194f281f284a747d6250ff73aa42e931834869 | [
"MIT"
] | null | null | null | /**
*
* @license MIT
*
* @copyright: 2022 LinJi
*
* @technical support: www.svgsvg.cn
*
* @email: 93681992@qq.com
*
* @module: QtSVGEditor
*
* 版权申明:
*
* 本源码开源基于MIT协议。
*
* 该软件及其相关文档对所有人免费,可以任意处置,包括使用,复制,修改,合并,发表,分发,再授权,或者销售。
*
* 唯一的限制是需要保留我们的许可申明。
*
*/
#include "DlgRotateSlider.h"
#include <QLineEdit>
CDlgRotateSlide... | 17.953846 | 92 | 0.71551 | SVGEditors |
394f37c0ff51298c401fb267a2c9bcdbd3d36792 | 1,988 | cc | C++ | gazebo/physics/roki/RokiPhysics_TEST.cc | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/roki/RokiPhysics_TEST.cc | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/roki/RokiPhysics_TEST.cc | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include "gazebo/physics/physics.hh"
#include "gazebo/physics/PhysicsEngine.hh"
#include "gazebo/physics/roki/RokiPhysics.hh"
#include "gazebo/test/ServerFixture.hh"
using namespace gazebo;
using namespace physics;
class RokiPhysics_TEST : public ServerFixture
{
public: void PhysicsMsgPara... | 26.157895 | 67 | 0.731388 | nyxrobotics |
39538a3c3b852ad8cedabbfe89d16c5178be0e3f | 1,375 | cpp | C++ | Atropos/source/renderer/resource/CTexture.cpp | redagito/Atropos | eaf926d5826fd5d5d38a7f8e6aceda64808ba27d | [
"MIT"
] | null | null | null | Atropos/source/renderer/resource/CTexture.cpp | redagito/Atropos | eaf926d5826fd5d5d38a7f8e6aceda64808ba27d | [
"MIT"
] | null | null | null | Atropos/source/renderer/resource/CTexture.cpp | redagito/Atropos | eaf926d5826fd5d5d38a7f8e6aceda64808ba27d | [
"MIT"
] | null | null | null | #include "CTexture.h"
#include "debug/Log.h"
#include "io/TgaLoader.h"
#include <stdexcept>
#include <fstream>
#include <vector>
CTexture::CTexture()
:
d_mipMapLevel(0),
d_texId(0),
d_height(0),
d_width(0)
{
// Create texture id
glGenTextures(1, &d_texId);
}
bool CTexture::init(const CImage& image)
{
// Bi... | 19.366197 | 125 | 0.751273 | redagito |
39583c8c5c1308a92a82591c11eb116d35baf125 | 257 | hpp | C++ | library/ATF/LPPARAMDATA.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/LPPARAMDATA.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/LPPARAMDATA.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 <tagPARAMDATA.hpp>
START_ATF_NAMESPACE
typedef tagPARAMDATA *LPPARAMDATA;
END_ATF_NAMESPACE
| 23.363636 | 108 | 0.789883 | lemkova |
395bf1dbbed76561675905b89e2b94b195078e3c | 18,518 | cpp | C++ | libstm/algs/swissht.cpp | riclas/rstm | a72c861c1b68f5fd516b2293ebdc58c2b62849b4 | [
"BSD-3-Clause"
] | null | null | null | libstm/algs/swissht.cpp | riclas/rstm | a72c861c1b68f5fd516b2293ebdc58c2b62849b4 | [
"BSD-3-Clause"
] | null | null | null | libstm/algs/swissht.cpp | riclas/rstm | a72c861c1b68f5fd516b2293ebdc58c2b62849b4 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) 2011
* University of Rochester Department of Computer Science
* and
* Lehigh University Department of Computer Science and Engineering
*
* License: Modified BSD
* Please see the file LICENSE.RSTM for licensing information
*/
#include "../profiling.hpp"
#include "algs.hpp"
#in... | 31.280405 | 146 | 0.613403 | riclas |
39624718d3565407351f3dbb62596db9e1f667a5 | 1,632 | cpp | C++ | uhk/acm3938.cpp | Hyyyyyyyyyy/acm | d7101755b2c2868d51bb056f094e024d0333b56f | [
"MIT"
] | null | null | null | uhk/acm3938.cpp | Hyyyyyyyyyy/acm | d7101755b2c2868d51bb056f094e024d0333b56f | [
"MIT"
] | null | null | null | uhk/acm3938.cpp | Hyyyyyyyyyy/acm | d7101755b2c2868d51bb056f094e024d0333b56f | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
using namespace std;
const int MAX = 100000000;
int N, M, L, cnt;
int F[10010], sum[10010];
struct node
{
int u;
int v;
int w;
};
node edge[50010];
struct que
{
int l;
int index;
int res;
};
que q[10010];
bool comp1(const node& a, const ... | 15.396226 | 57 | 0.483456 | Hyyyyyyyyyy |
39666554e538cb91e9d7b586d8af803415c9e241 | 2,240 | cpp | C++ | Core/VideoFrame.cpp | st0ne77/balsampear | 0740ad229187d8c68c83a9ef34a6df80774e817b | [
"BSD-3-Clause"
] | 6 | 2019-07-22T15:37:12.000Z | 2019-12-09T03:49:17.000Z | Core/VideoFrame.cpp | st0ne77/balsampear | 0740ad229187d8c68c83a9ef34a6df80774e817b | [
"BSD-3-Clause"
] | null | null | null | Core/VideoFrame.cpp | st0ne77/balsampear | 0740ad229187d8c68c83a9ef34a6df80774e817b | [
"BSD-3-Clause"
] | null | null | null | #include "VideoFrame.h"
extern "C"
{
#include "libavutil/frame.h"
}
namespace balsampear
{
VideoFrame::VideoFrame()
:Frame(),
width_(0),
height_(0)
{
}
VideoFrame::VideoFrame(AVFrame* avframe)
:VideoFrame()
{
if (avframe)
{
width_ = avframe->width;
height_ = avframe->height;
fmt_ = Video... | 18.983051 | 64 | 0.675893 | st0ne77 |
39668afba4ef7379f4694f2cb7741e6b2e22540e | 2,411 | cpp | C++ | posts/js-raytracing/raytracing-cpp/vectors.cpp | quevivasbien/quevivasbien.github.io | 58309961a6eeb290bb6246f5117e226346963f71 | [
"MIT",
"Unlicense"
] | null | null | null | posts/js-raytracing/raytracing-cpp/vectors.cpp | quevivasbien/quevivasbien.github.io | 58309961a6eeb290bb6246f5117e226346963f71 | [
"MIT",
"Unlicense"
] | null | null | null | posts/js-raytracing/raytracing-cpp/vectors.cpp | quevivasbien/quevivasbien.github.io | 58309961a6eeb290bb6246f5117e226346963f71 | [
"MIT",
"Unlicense"
] | null | null | null | #include "vectors.h"
#include <iostream>
#include <math.h>
double dot(std::array<double,3> a, std::array<double,3> b) {
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
}
std::array<double,3> cross(std::array<double,3> a, std::array<double,3> b) {
return std::array<double,3> {
a[1] * b[2] - a[2] * b[1]... | 30.910256 | 99 | 0.558275 | quevivasbien |
3969e4ad57cd7679297bbc5cce21695d972e7490 | 1,164 | cpp | C++ | AtCoder/ABC073/abc073D.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | 1 | 2020-05-24T02:27:05.000Z | 2020-05-24T02:27:05.000Z | AtCoder/ABC073/abc073D.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | null | null | null | AtCoder/ABC073/abc073D.cpp | t-mochizuki/cpp-study | df0409c2e82d154332cb2424c7810370aa9822f9 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
#include <algorithm>
using namespace std;
#define REP(i, n) for (int i = 0; i < n; ++i)
int main() {
int N; // 200
int M; // N * (N - 1) / 2
int R; // min(8, N)
scanf("%d %d %d", &N, &M, &R);
vector<int> r;
REP(i, R) {
int ri = 0;
scanf("%... | 19.081967 | 50 | 0.356529 | t-mochizuki |
3969ee9adabe298632095808d5468875063dd0a2 | 1,231 | cpp | C++ | Projects/bouncesim/Shape.cpp | ZetaFuntime/MenuEditor | 4953cb675fc99047c186e3147402732a1dd955ce | [
"MIT"
] | null | null | null | Projects/bouncesim/Shape.cpp | ZetaFuntime/MenuEditor | 4953cb675fc99047c186e3147402732a1dd955ce | [
"MIT"
] | null | null | null | Projects/bouncesim/Shape.cpp | ZetaFuntime/MenuEditor | 4953cb675fc99047c186e3147402732a1dd955ce | [
"MIT"
] | null | null | null | #include "Shape.h"
#include <Texture.h>
#include "SpriteNode.h"
#include "Input.h"
Shape::Shape()
{
//Put the textures here
m_angryTex = new aie::Texture("./textures/angery.png");
//m_turretTexture = new aie::Texture("./sceneGraph/textures/barrelGreen.png");
//m_turret = new SpriteNode(m_turretTexture);
//m_turr... | 19.854839 | 79 | 0.711617 | ZetaFuntime |
396d3b2d7666660454759942efc5c308f62f194a | 1,968 | cc | C++ | kythe/cxx/extractor/bazel_event_reader.cc | wcalandro/kythe | 64969a853711c228b4e3cfc3ce91b84b5bb853d7 | [
"Apache-2.0"
] | 1,168 | 2015-01-27T10:19:25.000Z | 2018-10-30T15:07:11.000Z | kythe/cxx/extractor/bazel_event_reader.cc | wcalandro/kythe | 64969a853711c228b4e3cfc3ce91b84b5bb853d7 | [
"Apache-2.0"
] | 2,811 | 2015-01-29T16:19:04.000Z | 2018-11-01T19:48:06.000Z | kythe/cxx/extractor/bazel_event_reader.cc | wcalandro/kythe | 64969a853711c228b4e3cfc3ce91b84b5bb853d7 | [
"Apache-2.0"
] | 165 | 2015-01-27T19:06:27.000Z | 2018-10-30T17:31:10.000Z | /*
* Copyright 2020 The Kythe Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 30.276923 | 101 | 0.73628 | wcalandro |
396e87583ecf14610b1b0caf0587d4cd566840d3 | 4,976 | cc | C++ | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/DeleteCustomizations.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/DeleteCustomizations.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/DeleteCustomizations.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1991-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/DeleteCustomizations.cc,v 1.6 1992/09/08 16:40:43 lewis Exp $
*
* Description:
*
* To Do:
*
* $Log: DeleteCustomizations.cc,v $
* Revision 1.6 1992/09/08 16:40:43 lewis
* Renamed NULL -> Nil.
*
* Re... | 25.649485 | 128 | 0.7291 | SophistSolutions |
3975fc992e3411602cfdb5cc26fd7ba46b1de571 | 729 | cc | C++ | kern/drv/acpi/cpu/dpc.cc | SmartPolarBear/dionysus-lite | 9f02e7a4e1ed983368aa5967bd8412244fc469d9 | [
"MIT"
] | 24 | 2020-02-05T15:20:31.000Z | 2022-03-29T03:49:06.000Z | kern/drv/acpi/cpu/dpc.cc | SmartPolarBear/dionysus-lite | 9f02e7a4e1ed983368aa5967bd8412244fc469d9 | [
"MIT"
] | null | null | null | kern/drv/acpi/cpu/dpc.cc | SmartPolarBear/dionysus-lite | 9f02e7a4e1ed983368aa5967bd8412244fc469d9 | [
"MIT"
] | 1 | 2021-10-15T10:14:39.000Z | 2021-10-15T10:14:39.000Z | #include "system/dpc.hpp"
//error_code dpc::queue(bool resched)
//{
// return 0;
//}
//
//error_code dpc::queue_thread_locked() TA_REQ(task::master_thread_lock)
//{
// return 0;
//}
//
//void dpc::invoke()
//{
//
//}
//
//void dpc_queue::initialize_for_current_cpu()
//{
//
//}
//error_code dpc_queue::shutdown(time_typ... | 14.58 | 72 | 0.63786 | SmartPolarBear |
397796bbf49125430b647a8a05314d62ee8fdb4e | 370,346 | cc | C++ | bindings/CPP-Kramer/source/PrimitivesClasses.cc | QualityInformationFramework/qif-community | d1ee5fbe6c126ef7f25ab5f8653b35d7daa4c0b4 | [
"BSL-1.0"
] | 23 | 2017-10-26T22:51:59.000Z | 2022-01-12T04:05:58.000Z | bindings/CPP-Kramer/source/PrimitivesClasses.cc | QualityInformationFramework/qif-community | d1ee5fbe6c126ef7f25ab5f8653b35d7daa4c0b4 | [
"BSL-1.0"
] | 11 | 2018-03-23T08:49:44.000Z | 2022-02-03T20:50:34.000Z | bindings/CPP-Kramer/source/PrimitivesClasses.cc | QualityInformationFramework/qif-community | d1ee5fbe6c126ef7f25ab5f8653b35d7daa4c0b4 | [
"BSL-1.0"
] | 15 | 2017-09-25T12:10:20.000Z | 2021-05-17T10:01:13.000Z | /* ***************************************************************** */
#include <stdio.h> // for printf, etc.
#include <string.h> // for strdup
#include <stdlib.h> // for exit
#include <list>
#include <boost/regex.hpp>
#include <xmlSchemaInstance.hh>
#include "PrimitivesClasses.hh"
... | 24.58647 | 143 | 0.574255 | QualityInformationFramework |
3978150b5fc9891bcc517b90c1f00949ef9b8222 | 2,483 | cpp | C++ | Core/Source/fbxIterator.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | 17 | 2018-03-29T15:24:40.000Z | 2022-01-10T05:01:09.000Z | Core/Source/fbxIterator.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | null | null | null | Core/Source/fbxIterator.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | 3 | 2018-04-07T06:02:05.000Z | 2019-01-21T00:37:18.000Z | // Copyright 2018 E*D Films. All Rights Reserved.
/**
* fbxIterator.h
*
* Fbx implementation of the IteratorBase class
*
* @author dotBunny <hello@dotbunny.com>
* @version 1
* @since 1.0.0
*/
#include "fbxIterator.h"
#include "fbxExporter.h"
namespace SceneTrackFbx
{
FbxExporterT* Iterator::sExporter ... | 23.205607 | 79 | 0.702376 | EDFilms |
397d4732a62f69b1726d2c8280a6189e7bbec931 | 110 | cpp | C++ | Pbinfo/Lazi.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/Lazi.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/Lazi.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
int main(){
int l,h;
cin>>l>>h;
cout<<h/l;
return 0;
} | 10 | 20 | 0.563636 | Al3x76 |
397ed6fdb88f3d2d07240caed91407205bf1b186 | 1,015 | cpp | C++ | plugins/community/repos/squinkylabs-plug1/test/testTremolo.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | plugins/community/repos/squinkylabs-plug1/test/testTremolo.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | plugins/community/repos/squinkylabs-plug1/test/testTremolo.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z |
#include "asserts.h"
#include "Tremolo.h"
#include "TestComposite.h"
using Trem = Tremolo<TestComposite>;
static void test0()
{
Trem t;
t.setSampleRate(44100);
t.init();
assertEQ(t.outputs[Trem::SAW_OUTPUT].value, 0);
assertEQ(t.outputs[Trem::AUDIO_OUTPUT].value, 0);
t.step();
}
static void ... | 20.3 | 80 | 0.583251 | guillaume-plantevin |
397fb9724af1c3e1062d71ef9ca3c5b2af95b51b | 4,099 | cxx | C++ | xp_comm_proj/examfld/examfld.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 3 | 2020-08-03T08:52:20.000Z | 2021-04-10T11:55:49.000Z | xp_comm_proj/examfld/examfld.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | null | null | null | xp_comm_proj/examfld/examfld.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 1 | 2021-06-08T18:16:45.000Z | 2021-06-08T18:16:45.000Z |
/*
Copyright / Disclaimer :
This software/documentation was produced as part of the INDEX project
(Intelligent Data Extraction) which is funded under contract ESPRIT EP22745 of
the European Community. For further details see
http://www.man.ac.uk/MVC/research/INDEX/Public/.
Copyright (c) June 1998, Man... | 25.61875 | 84 | 0.570627 | avs |
302d47f8b882aa6d4cc8fbbfc1044859ba87532e | 820 | cpp | C++ | cpp/11448.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/11448.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/11448.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
using pii = pair<int, int>;
int main() {
fastio;
int N; cin >> N;
while (N--) {
int n, cnt{}; cin >> n;
vector<string> v(n), visited(n, string(n, 0));
for (int i = 0; i < n; i++) cin >> v[i];
queue<pii> Q;
for (in... | 27.333333 | 59 | 0.462195 | jinhan814 |
303071f0b70917d0dd647e321d33687596bf2613 | 12,786 | cpp | C++ | Daniel2.Encoder.FileReadMT/CEncoderTest.cpp | lewk2/Cinecoder.Samples | 74f614a2a8b6a9fef818d4acedd9565637a68c4f | [
"Apache-2.0"
] | 1 | 2019-03-14T00:56:19.000Z | 2019-03-14T00:56:19.000Z | Daniel2.Encoder.FileReadMT/CEncoderTest.cpp | VitaliiGitHub/Cinecoder.Samples | 74f614a2a8b6a9fef818d4acedd9565637a68c4f | [
"Apache-2.0"
] | null | null | null | Daniel2.Encoder.FileReadMT/CEncoderTest.cpp | VitaliiGitHub/Cinecoder.Samples | 74f614a2a8b6a9fef818d4acedd9565637a68c4f | [
"Apache-2.0"
] | 1 | 2019-02-19T16:48:04.000Z | 2019-02-19T16:48:04.000Z | #include "stdafx.h"
#include "CEncoderTest.h"
//---------------------------------------------------------------
CEncoderTest::CEncoderTest()
//---------------------------------------------------------------
{
m_bRunning = FALSE;
m_NumActiveThreads = 0;
}
//----------------------------------------------------------... | 29.665893 | 199 | 0.623807 | lewk2 |
30347a858cf9beff30348cf559c722da0504d627 | 8,479 | cpp | C++ | Source/Geometry/Mesh/imstkPointSet.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | 2 | 2020-08-14T07:21:30.000Z | 2021-08-30T09:39:09.000Z | Source/Geometry/Mesh/imstkPointSet.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | null | null | null | Source/Geometry/Mesh/imstkPointSet.cpp | quantingxie/vibe | 965a79089ac3ec821ad65c45ac50e69bf32dc92f | [
"Apache-2.0"
] | 1 | 2020-08-14T07:00:31.000Z | 2020-08-14T07:00:31.000Z | /*=========================================================================
Library: iMSTK
Copyright (c) Kitware, Inc. & Center for Modeling, Simulation,
& Imaging in Medicine, Rensselaer Polytechnic Institute.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file e... | 26.41433 | 109 | 0.654912 | quantingxie |
303679c53ccd3d6d0603152e985f42ecde9bb5f4 | 410 | cpp | C++ | number/test/prime_factorization.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 20 | 2021-06-21T00:18:54.000Z | 2022-03-17T17:45:44.000Z | number/test/prime_factorization.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 56 | 2021-06-03T14:42:13.000Z | 2022-03-26T14:15:30.000Z | number/test/prime_factorization.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 3 | 2019-12-11T06:45:45.000Z | 2020-09-07T13:45:32.000Z | #include "../sieve.hpp"
#include <iostream>
#define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=NTL_1_A"
using namespace std;
int main() {
Sieve sieve(1 << 15);
int N;
cin >> N;
map<long long int, int> factors = sieve.factorize<long long>(N);
cout << N << ':';
for (auto p ... | 24.117647 | 82 | 0.570732 | ankit6776 |
303792ed5ded8936fa35b2c947bb01f3e2978c1c | 2,537 | cpp | C++ | Info/Info/EventNonPlayerItemList/EventNonPlayerItemList.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/EventNonPlayerItemList/EventNonPlayerItemList.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/EventNonPlayerItemList/EventNonPlayerItemList.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | #pragma once
#include "EventNonPlayerItemList.h"
namespace Lunia {
namespace XRated {
namespace Database {
namespace Info {
void NpcDropEventItems::Serialize(Serializer::IStreamWriter& out) const
{
out.Begin(L"XRated::Database::Info::NpcDropEventItems");
out.Write(L"NpcItems", NpcItems);
ou... | 27.879121 | 166 | 0.612534 | Teles1 |
30396ed37745d8ee15d18d6e07622efeaf7c8e0f | 3,326 | cpp | C++ | Refureku/Library/Source/TypeInfo/Entity/EntityCast.cpp | ThomasProg/Refureku | b5d61a3eeeb2b4bdb19d5851bd2f0cf76caa205d | [
"MIT"
] | null | null | null | Refureku/Library/Source/TypeInfo/Entity/EntityCast.cpp | ThomasProg/Refureku | b5d61a3eeeb2b4bdb19d5851bd2f0cf76caa205d | [
"MIT"
] | null | null | null | Refureku/Library/Source/TypeInfo/Entity/EntityCast.cpp | ThomasProg/Refureku | b5d61a3eeeb2b4bdb19d5851bd2f0cf76caa205d | [
"MIT"
] | null | null | null | #include "Refureku/TypeInfo/Entity/EntityCast.h"
using namespace rfk;
template <>
Archetype const* rfk::entityCast<Archetype, void>(Entity const* entity) noexcept
{
return (entity != nullptr &&
(entity->kind == EEntityKind::FundamentalArchetype || entity->kind == EEntityKind::Struct || entity->kind == EEntityKind... | 35.010526 | 184 | 0.749248 | ThomasProg |
303a1082493a98e9a225b4b1edd280e2b13e4876 | 77,673 | cpp | C++ | src/networking.cpp | shaishasag/redispp | a02abc5809cac2c7b1037a9775d6fd2d1ccbc932 | [
"BSD-3-Clause"
] | 1 | 2018-01-12T12:31:34.000Z | 2018-01-12T12:31:34.000Z | src/networking.cpp | shaishasag/redispp | a02abc5809cac2c7b1037a9775d6fd2d1ccbc932 | [
"BSD-3-Clause"
] | null | null | null | src/networking.cpp | shaishasag/redispp | a02abc5809cac2c7b1037a9775d6fd2d1ccbc932 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* 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 co... | 37.79708 | 266 | 0.620357 | shaishasag |
303edc022fa66f5a041f2628414de7db1aea1402 | 3,001 | cxx | C++ | Base/QTCore/Testing/Cxx/qSlicerCorePythonManagerWithoutApplicationTest.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Base/QTCore/Testing/Cxx/qSlicerCorePythonManagerWithoutApplicationTest.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Base/QTCore/Testing/Cxx/qSlicerCorePythonManagerWithoutApplicationTest.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | /*==============================================================================
Program: 3D Slicer
Copyright (c) Kitware Inc.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distributed under the License... | 43.492754 | 111 | 0.570477 | forfullstack |
304094067961de4e65ca6ff7ce353748b9da1303 | 4,556 | cpp | C++ | main.cpp | dcblack/systemc-main | 96d6d9e829bf7841e30e40c0bdb282291f0b1ddc | [
"Apache-2.0"
] | null | null | null | main.cpp | dcblack/systemc-main | 96d6d9e829bf7841e30e40c0bdb282291f0b1ddc | [
"Apache-2.0"
] | null | null | null | main.cpp | dcblack/systemc-main | 96d6d9e829bf7841e30e40c0bdb282291f0b1ddc | [
"Apache-2.0"
] | 1 | 2021-03-01T14:57:20.000Z | 2021-03-01T14:57:20.000Z | //FILE main.cpp (systemc)
// $Info: Entry point for executing simulation for 'basic'.$
// Copyright 2018 Doulos Inc. All rights reserved.
// Licensed under Apache 2.0 - see accompanying LICENSE FILE.
//-----------------------------------------------------------------------------
#include "top.hpp"
#include "wallclock.h... | 34.515152 | 109 | 0.622476 | dcblack |
3044cc85c91f865882f46b7fcbf50f005500b324 | 1,966 | cpp | C++ | src/libtriton/format/memoryMapping.cpp | Manouchehri/Triton-docker | ce49ce9ba49965a5e7f814f2b46e50cc74b704de | [
"BSD-3-Clause"
] | 1 | 2020-11-15T15:21:12.000Z | 2020-11-15T15:21:12.000Z | src/libtriton/format/memoryMapping.cpp | Manouchehri/Triton-docker | ce49ce9ba49965a5e7f814f2b46e50cc74b704de | [
"BSD-3-Clause"
] | null | null | null | src/libtriton/format/memoryMapping.cpp | Manouchehri/Triton-docker | ce49ce9ba49965a5e7f814f2b46e50cc74b704de | [
"BSD-3-Clause"
] | 1 | 2021-03-04T13:22:48.000Z | 2021-03-04T13:22:48.000Z | //! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the BSD License.
*/
#include <exceptions.hpp>
#include <memoryMapping.hpp>
namespace triton {
namespace format {
MemoryMapping::MemoryMapping(const triton::uint8* binary) {
this->binary = binary;
this->offs... | 22.340909 | 110 | 0.609359 | Manouchehri |
304bf1ddba44a2557351eec6ece5910c37a705ea | 1,408 | cpp | C++ | cpp/Classes/MenuButtonLayer.cpp | cfoust/quat | da5b644400327c5c0ab7d1a28755e4c1cb5a57c6 | [
"MIT"
] | 1 | 2021-05-31T00:47:07.000Z | 2021-05-31T00:47:07.000Z | cpp/Classes/MenuButtonLayer.cpp | cfoust/quat | da5b644400327c5c0ab7d1a28755e4c1cb5a57c6 | [
"MIT"
] | null | null | null | cpp/Classes/MenuButtonLayer.cpp | cfoust/quat | da5b644400327c5c0ab7d1a28755e4c1cb5a57c6 | [
"MIT"
] | 1 | 2019-12-25T02:10:32.000Z | 2019-12-25T02:10:32.000Z | #include "MenuButtonLayer.h"
namespace QUAT {
void MenuButtonLayer::up() {
cocos2d::log("Clicked menu button");
}
void MenuButtonLayer::entered() {
}
void MenuButtonLayer::left() {
}
bool MenuButtonLayer::init() {
// Init the super class
if ( !Clickable::init() )
{
return false;
}
this->ent... | 23.081967 | 79 | 0.575994 | cfoust |
304c1c42ee5aa91960b4e42117bd86045a7cfb63 | 1,804 | cpp | C++ | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/contrib/unict_univr-risnap/RiToSnap/risnap.cpp | qiuhere/Bench | 80f15facb81120b754547586cf3a7e5f46ca1551 | [
"Apache-2.0"
] | 1,805 | 2015-01-06T20:01:35.000Z | 2022-03-29T16:12:51.000Z | contrib/unict_univr-risnap/RiToSnap/risnap.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 168 | 2015-01-07T22:57:29.000Z | 2022-03-15T01:20:24.000Z | contrib/unict_univr-risnap/RiToSnap/risnap.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 768 | 2015-01-09T02:28:45.000Z | 2022-03-30T00:53:46.000Z | /*
* File: main.cpp
* Author: kengi
*
* Created on 4 febbraio 2014, 23.17
*/
#include <iostream>
#include <cstdlib>
#include "Snap.h"
#include "rinetmatch.h"
#include "timer.h"
void usage(char* args0) {
printf("usage %s [iso ind mono] reference query\n", args0);
};
int main(int argc, char** argv) {
if (a... | 21.223529 | 62 | 0.630266 | qiuhere |
305612962c07ce28dc0d10b227c936ebddf12f29 | 4,106 | hpp | C++ | srook/cxx17/mpl/any_pack/algorithm/for_type_conditional.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | 1 | 2018-07-01T07:54:37.000Z | 2018-07-01T07:54:37.000Z | srook/cxx17/mpl/any_pack/algorithm/for_type_conditional.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | null | null | null | srook/cxx17/mpl/any_pack/algorithm/for_type_conditional.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | null | null | null | // Copyright (C) 2011-2020 Roki. Distributed under the MIT License
#ifndef INCLUDED_SROOK_CXX17_MPL_ANY_PACK_FOR_TYPE_CONDITIONAL_HPP
#define INCLUDED_SROOK_CXX17_MPL_ANY_PACK_FOR_TYPE_CONDITIONAL_HPP
#include <srook/config/require.hpp>
#include <srook/cxx17/mpl/any_pack/algorithm/concat.hpp>
#include <srook/cxx17/mpl/... | 41.06 | 178 | 0.725524 | falgon |
3059d86d26b2f84cc68e6aa312b1dc00d3aedaf5 | 290 | cpp | C++ | Codeforces/Codeforces Round #509/A.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | Codeforces/Codeforces Round #509/A.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | Codeforces/Codeforces Round #509/A.cpp | itsmevanessi/Competitive-Programming | e14208c0e0943d0dec90757368f5158bb9c4bc17 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(void){
int n;
cin >> n;
int arr[n];
for(int i = 0; i < n; ++i){
cin >> arr[i];
}
sort(arr, arr + n);
int ans = 0;
for(int i = 1; i < n; ++i){
ans += (arr[i] - arr[i - 1] - 1);
}
cout << ans;
}
| 16.111111 | 39 | 0.434483 | itsmevanessi |
305d66b8d22288ebdea375048bea1bd845799096 | 15,879 | hpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Middlewares/ST/TouchGFX/touchgfx/framework/include/platform/driver/lcd/LCD1bpp.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | 3 | 2019-12-30T21:16:50.000Z | 2021-05-11T05:28:25.000Z | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Middlewares/ST/TouchGFX/touchgfx/framework/include/platform/driver/lcd/LCD1bpp.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | 1 | 2020-11-14T16:53:09.000Z | 2020-11-14T16:53:09.000Z | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Middlewares/ST/TouchGFX/touchgfx/framework/include/platform/driver/lcd/LCD1bpp.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | 3 | 2020-03-15T14:35:38.000Z | 2021-04-07T14:55:42.000Z | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* <h2><center>© Copyright (c) 2018 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Libert... | 45.368571 | 317 | 0.613704 | ramkumarkoppu |
3067eb393e869a215676b46f6d5221bb007bbc45 | 6,238 | cpp | C++ | src/ebenchmarking.cpp | KavrakiLab/pyre | fa3380fc02ca152a00c789ab76492b60fb49c517 | [
"BSD-3-Clause"
] | 5 | 2022-02-02T05:25:02.000Z | 2022-03-15T20:42:04.000Z | src/ebenchmarking.cpp | KavrakiLab/pyre | fa3380fc02ca152a00c789ab76492b60fb49c517 | [
"BSD-3-Clause"
] | 2 | 2022-02-11T03:04:49.000Z | 2022-03-15T20:29:37.000Z | src/ebenchmarking.cpp | KavrakiLab/pyre | fa3380fc02ca152a00c789ab76492b60fb49c517 | [
"BSD-3-Clause"
] | 4 | 2021-06-14T06:48:17.000Z | 2022-03-02T12:17:35.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | 36.057803 | 110 | 0.600834 | KavrakiLab |
306a95807ecf337a98c822c9ed5ee071ce31aa0c | 843 | cpp | C++ | bzoj/3674.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/3674.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/3674.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/rope>
using namespace std;
using namespace __gnu_cxx;
rope<int> *rp[200010];
int n, m, a[200100], f, x, y, lastans;
int find(int i, int x){
int fa = rp[i] -> at(x);
if(fa==x) return x;
int f = find(i, fa);
if(f==fa) return f;
rp[i] -> replace(x, f);
return f;
}
int main(){
... | 20.560976 | 48 | 0.489917 | swwind |
306b30bb72a958ad546946b6cf58cb8271439611 | 855 | cpp | C++ | 202203/0303_reversePrint.cpp | talentwill/CardCoding | 1fcd20f3a76cec85845552a8917847971d9aeeb1 | [
"MIT"
] | null | null | null | 202203/0303_reversePrint.cpp | talentwill/CardCoding | 1fcd20f3a76cec85845552a8917847971d9aeeb1 | [
"MIT"
] | null | null | null | 202203/0303_reversePrint.cpp | talentwill/CardCoding | 1fcd20f3a76cec85845552a8917847971d9aeeb1 | [
"MIT"
] | 1 | 2022-03-10T05:28:19.000Z | 2022-03-10T05:28:19.000Z | // 剑指 Offer 06. 从尾到头打印链表
// 22/02/13 堆栈缓存
class Solution {
public:
vector<int> reversePrint(ListNode* head) {
auto node = head;
std::stack<ListNode*> nodes;
while(node != nullptr)
{
nodes.push(node);
node = node->next;
}
vector<int> result;... | 17.8125 | 49 | 0.491228 | talentwill |
306ddb38058244ed0fe5b7304fae0eb339769105 | 1,189 | hpp | C++ | src/lattices/square/nearest_neighbor.hpp | yangqi137/lattices | 91e270fd4e0899f2fc00940ef5ca6f21b0357ab8 | [
"MIT"
] | 1 | 2019-09-25T05:35:07.000Z | 2019-09-25T05:35:07.000Z | src/lattices/square/nearest_neighbor.hpp | yangqi137/lattices | 91e270fd4e0899f2fc00940ef5ca6f21b0357ab8 | [
"MIT"
] | null | null | null | src/lattices/square/nearest_neighbor.hpp | yangqi137/lattices | 91e270fd4e0899f2fc00940ef5ca6f21b0357ab8 | [
"MIT"
] | null | null | null | #ifndef LATTICES_SQUARE_NEAREST_NEIGHBOR_HPP
#define LATTICES_SQUARE_NEAREST_NEIGHBOR_HPP
#include "lattice.hpp"
#include "offset.hpp"
#include <type_traits>
namespace lattices {
namespace square {
template <typename S>
struct NearestNeighborCat {
typedef S VSize;
typedef LatticeCat<VSize> Latti... | 25.847826 | 63 | 0.667788 | yangqi137 |
306ec46656b4c6406ef6831c00292ad852cb4c87 | 704 | hpp | C++ | Jabbo/Source/BuildOrderManager.hpp | Jabbo16/Jabbo | 8f662610967e7393662df5ce979898be02679b1e | [
"MIT"
] | 4 | 2018-07-21T06:06:26.000Z | 2020-01-26T14:46:36.000Z | Jabbo/Source/BuildOrderManager.hpp | Jabbo16/Jabbo | 8f662610967e7393662df5ce979898be02679b1e | [
"MIT"
] | null | null | null | Jabbo/Source/BuildOrderManager.hpp | Jabbo16/Jabbo | 8f662610967e7393662df5ce979898be02679b1e | [
"MIT"
] | null | null | null | #pragma once
#include <BWAPI.h>
#include <vector>
#include <string>
#include <variant>
using namespace BWAPI;
using namespace std;
enum buildingPlacement
{
Default, Proxy, Hidden
};
enum wallPlacement
{
Main, Natural
};
struct BOItem {
int supply{};
variant<UnitType, TechType, UpgradeType... | 16 | 48 | 0.690341 | Jabbo16 |
306fa61be7ac8421174c51a6477f2cbe3ce79c77 | 442 | cpp | C++ | Prototype/src/GameObject/Component/geometry/velocity.cpp | ArneStenkrona/Prototype | 2d53a0daf35ca7de676c90c7f193b38dc16d5230 | [
"MIT"
] | null | null | null | Prototype/src/GameObject/Component/geometry/velocity.cpp | ArneStenkrona/Prototype | 2d53a0daf35ca7de676c90c7f193b38dc16d5230 | [
"MIT"
] | null | null | null | Prototype/src/GameObject/Component/geometry/velocity.cpp | ArneStenkrona/Prototype | 2d53a0daf35ca7de676c90c7f193b38dc16d5230 | [
"MIT"
] | null | null | null | #include "velocity.h"
#include "GameObject/gameObject.h"
#include <iostream>
Velocity::Velocity(GameObject * _object) : velocity(Point(0, 0)), Component(_object)
{
position = requireComponent<Position>();
}
void Velocity::updateComponents()
{
position = (object->hasComponent<Position>()) ? object->getCompone... | 18.416667 | 96 | 0.701357 | ArneStenkrona |
30756379820fbd7d3358e9ca2fb67f931a6ba3b9 | 4,020 | hpp | C++ | sdk/include/xuxml.hpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | sdk/include/xuxml.hpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | sdk/include/xuxml.hpp | qianxj/XExplorer | 00e326da03ffcaa21115a2345275452607c6bab5 | [
"MIT"
] | null | null | null | #pragma once
namespace Hxsoft{ namespace XUtil { namespace Xml
{
template <class Ch>
inline bool IsSpaceLetter(Ch ch)
{
return ch==' '||ch=='\t'||ch=='\r'||ch=='n';
}
template <class Ch>
inline bool IsDigits(Ch ch)
{
return ch>='0' && ch<='9';
}
template <class Ch>
bool IsIdentLetter(Ch ch)
{
retur... | 18.611111 | 96 | 0.54005 | qianxj |
3076fab8c07f64957ca32495ece5e907408b0f08 | 1,149 | cpp | C++ | ArcDelay/Performance_Process.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | ArcDelay/Performance_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | ArcDelay/Performance_Process.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Performance_Process.cpp - read the link delay file
//*********************************************************
#include "ArcDelay.hpp"
#include "In_Polygon.hpp"
//---------------------------------------------------------
// Performance_Processing
//-----... | 26.113636 | 99 | 0.507398 | kravitz |
307718ce74e554c02a76dce597a502bb14fb754f | 834 | cpp | C++ | lldb/test/API/lang/cpp/complete-type-check/main.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 605 | 2019-10-18T01:15:54.000Z | 2022-03-31T14:31:04.000Z | lldb/test/API/lang/cpp/complete-type-check/main.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,180 | 2019-10-18T01:21:21.000Z | 2022-03-31T23:25:41.000Z | lldb/test/API/lang/cpp/complete-type-check/main.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 275 | 2019-10-18T05:27:22.000Z | 2022-03-30T09:04:21.000Z | struct EmptyClass {};
struct DefinedClass {
int i;
};
typedef DefinedClass DefinedClassTypedef;
struct FwdClass;
typedef FwdClass FwdClassTypedef;
template <typename T> struct DefinedTemplateClass {};
template <> struct DefinedTemplateClass<int> {};
template <typename T> struct FwdTemplateClass;
template <> struct... | 22.540541 | 62 | 0.81295 | mkinsner |
30779f2c0de78d888d3427a2895c7ce1f734c7fe | 469 | cpp | C++ | example/e-HelloWorld.cpp | iboB/jalog | d89a5bb4ef8b0ea701a7cd3ea0229de3fbb3ecd9 | [
"MIT"
] | 3 | 2021-12-07T06:16:31.000Z | 2021-12-22T14:12:36.000Z | example/e-HelloWorld.cpp | iboB/jalog | d89a5bb4ef8b0ea701a7cd3ea0229de3fbb3ecd9 | [
"MIT"
] | null | null | null | example/e-HelloWorld.cpp | iboB/jalog | d89a5bb4ef8b0ea701a7cd3ea0229de3fbb3ecd9 | [
"MIT"
] | null | null | null | // jalog
// Copyright (c) 2021-2022 Borislav Stanimirov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT
//
#include <jalog/Instance.hpp>
#include <jalog/sinks/ColorSink.hpp>
#include <jalog/Log.hpp>
int main()
{
jalog::Instance... | 21.318182 | 47 | 0.686567 | iboB |
307ea48b058298277076e114728a8fc64378239c | 739 | cpp | C++ | epikjjh/baekjoon/11403.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 3 | 2019-05-19T13:44:39.000Z | 2019-07-03T11:15:20.000Z | epikjjh/baekjoon/11403.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 7 | 2019-05-06T02:37:26.000Z | 2019-06-29T07:28:02.000Z | epikjjh/baekjoon/11403.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 1 | 2019-07-28T06:24:54.000Z | 2019-07-28T06:24:54.000Z | #include <bits/stdc++.h>
using namespace std;
int n;
vector<vector<int> > adj;
vector<vector<int> > ret;
vector<bool> visited;
void dfs(int cur){
visited[cur] = true;
for(int nxt: adj[cur]) if(!visited[nxt]) dfs(nxt);
}
int con(int s, int e){
for(int t: adj[s]){
if(!visited[t]) dfs(t);
}
if(visited[e]) retu... | 16.065217 | 56 | 0.564276 | 15ers |
307eb5edd09f583a865100f709b6026b08818399 | 745 | hpp | C++ | include/flx/flx.hpp | jfalcou/fluxion | 7b845d2b5e0b97754ce09bd2bfca1f45913ea8df | [
"MIT"
] | null | null | null | include/flx/flx.hpp | jfalcou/fluxion | 7b845d2b5e0b97754ce09bd2bfca1f45913ea8df | [
"MIT"
] | null | null | null | include/flx/flx.hpp | jfalcou/fluxion | 7b845d2b5e0b97754ce09bd2bfca1f45913ea8df | [
"MIT"
] | null | null | null | //==================================================================================================
/*
Fluxion - Post-Modern Automatic Derivation
Copyright : Fluxion Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//======================================================================================... | 33.863636 | 100 | 0.344966 | jfalcou |
3080ef587a60af6dcf88c64b2a2370265b036176 | 3,474 | cpp | C++ | src/main/algorithms/cpp/array/arithmetic_slices_ii___subsequence_446/solution.cpp | algorithmlover2016/leet_code | 2eecc7971194c8a755e67719d8f66c636694e7e9 | [
"Apache-2.0"
] | null | null | null | src/main/algorithms/cpp/array/arithmetic_slices_ii___subsequence_446/solution.cpp | algorithmlover2016/leet_code | 2eecc7971194c8a755e67719d8f66c636694e7e9 | [
"Apache-2.0"
] | null | null | null | src/main/algorithms/cpp/array/arithmetic_slices_ii___subsequence_446/solution.cpp | algorithmlover2016/leet_code | 2eecc7971194c8a755e67719d8f66c636694e7e9 | [
"Apache-2.0"
] | null | null | null | #include "../../head.h"
class Solution {
public:
int numberOfArithmeticSlices(std::vector<int> const & nums) {
// plagiarizing from https://www.youtube.com/watch?v=tVByevGUxbU
int numsSize = nums.size();
if (MIN_SIZE > numsSize) {
return 0;
}
int ans = 0;
... | 31.581818 | 118 | 0.460564 | algorithmlover2016 |
30837a7910dd5a6e52a2e189dc824d288b5387fc | 14,567 | cc | C++ | F/src/textureunit.cc | vaginessa/Ctrl-Alt-Test | b981ebdbc6b0678f004c4052d70ebb56af2d89a0 | [
"Apache-2.0"
] | 114 | 2015-04-14T10:30:05.000Z | 2021-06-11T02:57:59.000Z | F/src/textureunit.cc | vaginessa/Ctrl-Alt-Test | b981ebdbc6b0678f004c4052d70ebb56af2d89a0 | [
"Apache-2.0"
] | null | null | null | F/src/textureunit.cc | vaginessa/Ctrl-Alt-Test | b981ebdbc6b0678f004c4052d70ebb56af2d89a0 | [
"Apache-2.0"
] | 11 | 2015-07-26T02:11:32.000Z | 2020-04-02T21:06:15.000Z | //
// Texture unit
//
#include "textureunit.hh"
#include "sys/msys.h"
#include "sys/msys_debug.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include "sys/glext.h"
#include "interpolation.hh"
#include "matrix.hh"
//
// void glGenTextures(GLsizei n, GLuint * textures)
// void glBindTexture(GLenum target, GLuint texture... | 31.736383 | 145 | 0.654287 | vaginessa |
3089698fce6dc5838f443d759b46695153e8fa72 | 3,679 | cpp | C++ | src/game/shared/hl2mp/weapons/weapon_357.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/shared/hl2mp/weapons/weapon_357.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/shared/hl2mp/weapons/weapon_357.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "npcevent.h"
#include "in_buttons.h"
#ifdef CLIENT_DLL
#include "c_hl2mp_player.h"
#else
#include "hl2mp_pla... | 25.19863 | 100 | 0.619734 | cstom4994 |
308bb7c5b05b40d0c37418e5e1e108dff7a0bfe5 | 10,380 | cpp | C++ | src/GVDBBatchMapCreator.cpp | mrfmap/mrfmap_ros | 8c1e108860ff297f39591d97f8f8ce2937b29a51 | [
"BSD-3-Clause"
] | 6 | 2020-07-15T21:00:49.000Z | 2021-05-12T07:16:38.000Z | src/GVDBBatchMapCreator.cpp | mrfmap/mrfmap_ros | 8c1e108860ff297f39591d97f8f8ce2937b29a51 | [
"BSD-3-Clause"
] | 2 | 2020-08-14T16:16:21.000Z | 2020-11-12T07:43:22.000Z | src/GVDBBatchMapCreator.cpp | mrfmap/mrfmap_ros | 8c1e108860ff297f39591d97f8f8ce2937b29a51 | [
"BSD-3-Clause"
] | 2 | 2020-08-16T15:53:14.000Z | 2021-05-12T07:16:41.000Z | /**
* Simple class to take in a list of images and poses and build a MRFMap
**/
#include <codetimer/codetimer.h>
#include <mrfmap_ros/GVDBBatchMapCreator.h>
#include <chrono>
extern gvdb_params_t gvdb_params_;
std::string to_zero_lead(const int value, const unsigned precision) {
std::ostringstream oss;
oss <<... | 38.876404 | 330 | 0.657033 | mrfmap |
308e1691e68b0a1523111cd68639506fed1653bc | 392 | cpp | C++ | src/Rocket/Physics.cpp | sarahkittyy/GeneticRockets | 3853f88964696d22cea6464db6109235ac59588d | [
"MIT"
] | null | null | null | src/Rocket/Physics.cpp | sarahkittyy/GeneticRockets | 3853f88964696d22cea6464db6109235ac59588d | [
"MIT"
] | null | null | null | src/Rocket/Physics.cpp | sarahkittyy/GeneticRockets | 3853f88964696d22cea6464db6109235ac59588d | [
"MIT"
] | null | null | null | #include "Rocket/Physics.hpp"
namespace Rocket
{
Physics::Physics()
{
mYA = mAV = 0;
}
Physics::Physics(float ya, float av)
{
mAV = av;
mYA = ya;
}
void Physics::setAcceleration(float newVel)
{
mYA = newVel;
}
float Physics::getAcceleration()
{
return mYA;
}
void Physics::setAngularVelocity(float newVel)
{
... | 10.594595 | 46 | 0.681122 | sarahkittyy |
3090a589a6fcf66e76934f5693252f152dade04d | 1,244 | cpp | C++ | Olympiad Solutions/URI/1317.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/URI/1317.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/URI/1317.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://www.urionlinejudge.com.br/judge/problems/view/1317
#include <iostream>
#include <vector>
#define MAXN 21
#define endl '\n'
using namespace std;
vector<int> grafo[MAXN];
int processado[MAXN];
vector<string> atributos[MAXN];
int t1,t2,n;
string a1,a2,a3;
void dfs(int x){
processad... | 20.733333 | 73 | 0.573151 | Ashwanigupta9125 |
30958c0c05dc3d5c78ded364a3c62eddf821149f | 6,551 | cpp | C++ | src/escposprinter.cpp | ceciletti/escpos-qt | 682017930ae99cc96c16fc050fb4e88a0f4b2c57 | [
"MIT"
] | 8 | 2020-05-09T19:52:54.000Z | 2021-09-02T03:41:46.000Z | src/escposprinter.cpp | ceciletti/escpos-qt | 682017930ae99cc96c16fc050fb4e88a0f4b2c57 | [
"MIT"
] | 1 | 2020-10-05T08:03:46.000Z | 2021-03-25T00:15:02.000Z | src/escposprinter.cpp | ceciletti/escpos-qt | 682017930ae99cc96c16fc050fb4e88a0f4b2c57 | [
"MIT"
] | 4 | 2020-05-09T19:53:00.000Z | 2022-03-21T01:51:46.000Z | #include "escposprinter.h"
#include <QIODevice>
#include <QDataStream>
#include <QLoggingCategory>
#include <QTextCodec>
Q_LOGGING_CATEGORY(EPP, "esc_pos")
static const char ESC = 0x1B;
static const char GS = 0x1D;
EscPosPrinter::EscPosPrinter(QIODevice *device, QObject *parent) : QObject(parent)
, m_device(dev... | 23.564748 | 161 | 0.621127 | ceciletti |
3096b7ba2c6c5ae6617fe7609d5d393c4e6dc13b | 216 | cpp | C++ | codeforces/Codeforces_Round_546_Div2/nastya_is_playing_computer_games.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | codeforces/Codeforces_Round_546_Div2/nastya_is_playing_computer_games.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | codeforces/Codeforces_Round_546_Div2/nastya_is_playing_computer_games.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
using namespace std;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int n, k, cnt;
cin >> n >> k;
cnt = 3 * n + min(k-1, n-k);
cout << cnt << '\n';
return 0;
}
| 10.8 | 30 | 0.546296 | juseongkr |
30a021161744cae8c17671562632954559855571 | 280 | cpp | C++ | Razor/src/Editor/EditorTool.cpp | 0zirix/Razor | b902d316da058caa636efce15da405beb73d9f73 | [
"MIT"
] | 2 | 2021-09-25T02:44:02.000Z | 2021-10-03T09:37:54.000Z | Razor/src/Editor/EditorTool.cpp | 0zirix/Razor | b902d316da058caa636efce15da405beb73d9f73 | [
"MIT"
] | null | null | null | Razor/src/Editor/EditorTool.cpp | 0zirix/Razor | b902d316da058caa636efce15da405beb73d9f73 | [
"MIT"
] | null | null | null | #include "rzpch.h"
#include "EditorTool.h"
#include "Editor/Editor.h"
namespace Razor
{
EditorTool::EditorTool(Editor* editor) :
editor(editor),
dirty(true),
active(true)
{
}
EditorTool::~EditorTool()
{
}
Editor* EditorTool::getEditor()
{
return editor;
}
}
| 11.666667 | 42 | 0.660714 | 0zirix |
30a81bdc1aa585954986267f3caafd58e0dccaf2 | 1,686 | cpp | C++ | uva/tomo108/AndysFirstDictionary.cpp | civilian/competitive_programing | a6ae7ad0db84240667c1dd6231c51c586ba040c7 | [
"MIT"
] | 1 | 2016-02-11T21:28:22.000Z | 2016-02-11T21:28:22.000Z | uva/tomo108/AndysFirstDictionary.cpp | civilian/competitive_programing | a6ae7ad0db84240667c1dd6231c51c586ba040c7 | [
"MIT"
] | null | null | null | uva/tomo108/AndysFirstDictionary.cpp | civilian/competitive_programing | a6ae7ad0db84240667c1dd6231c51c586ba040c7 | [
"MIT"
] | null | null | null | //Uva 10815.
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <cctype>
#include <cassert>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <list>
#include <set>
#inc... | 20.313253 | 84 | 0.544484 | civilian |