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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8579f3e5972a232be71939234deb4ac789e9a895 | 2,938 | cpp | C++ | VEngine/src/VEngine/renderer/Camera.cpp | Parsif/VEngine | a31bdb1479c4dabe6a5eb808008600e736164180 | [
"MIT"
] | null | null | null | VEngine/src/VEngine/renderer/Camera.cpp | Parsif/VEngine | a31bdb1479c4dabe6a5eb808008600e736164180 | [
"MIT"
] | null | null | null | VEngine/src/VEngine/renderer/Camera.cpp | Parsif/VEngine | a31bdb1479c4dabe6a5eb808008600e736164180 | [
"MIT"
] | null | null | null | #include "precheader.h"
#include "Camera.h"
#include "events/Input.h"
#include "events/MouseEvents.h"
#include "events/WindowEvents.h"
namespace vengine
{
Camera::Camera(const float fov, const float near_z, const float far_z) :
m_fov(fov), m_near_z(near_z), m_far_z(far_z)
{
m_view = glm::lookAt(m_eye, m_target,... | 27.203704 | 110 | 0.711368 | Parsif |
857ae7cf007fc227368d641f38355a3595b44729 | 9,406 | cpp | C++ | Medusa/MedusaCore/Core/Siren/Schema/Type/SirenCustomClass.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 143 | 2015-11-18T01:06:03.000Z | 2022-03-30T03:08:54.000Z | Medusa/MedusaCore/Core/Siren/Schema/Type/SirenCustomClass.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 1 | 2019-10-23T13:00:40.000Z | 2019-10-23T13:00:40.000Z | Medusa/MedusaCore/Core/Siren/Schema/Type/SirenCustomClass.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 45 | 2015-11-18T01:17:59.000Z | 2022-03-05T12:29:45.000Z | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaCorePreCompiled.h"
#include "SirenCustomClass.h"
#include "Core/Log/Log.h"
#include "Core/Siren/Schema/SirenTextParser.h"
#include "Core/Siren/Schema/... | 20.995536 | 81 | 0.683606 | tony2u |
858156c4a69e019492ae396a919ada2eeb498a54 | 10,215 | cp | C++ | Win32/Sources/Application/Server/Dialogs/CNamespaceDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Win32/Sources/Application/Server/Dialogs/CNamespaceDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Win32/Sources/Application/Server/Dialogs/CNamespaceDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. 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
... | 26.671018 | 136 | 0.697112 | mulberry-mail |
3fecdd79de1733a32cee4b0aeeb25f3540d62d3d | 59 | hpp | C++ | common/gl.hpp | Legion-Engine/Test_GL | 43e08fd92d2a2a903beea45440f4b4e170d72c6d | [
"MIT"
] | null | null | null | common/gl.hpp | Legion-Engine/Test_GL | 43e08fd92d2a2a903beea45440f4b4e170d72c6d | [
"MIT"
] | null | null | null | common/gl.hpp | Legion-Engine/Test_GL | 43e08fd92d2a2a903beea45440f4b4e170d72c6d | [
"MIT"
] | null | null | null | #pragma once
#include <glad/glad.h>
#include <glfw/glfw3.h> | 19.666667 | 23 | 0.728814 | Legion-Engine |
3fed14833aafb089456a5d2b22176efd49dbc25b | 10,836 | hpp | C++ | include/indri/IndexWriter.hpp | whuang022nccu/IndriLab | 24d13dca14c7c447a4acedb45d7d1ef83551f6ac | [
"Apache-2.0"
] | 2 | 2020-02-16T07:46:47.000Z | 2020-11-23T06:50:19.000Z | include/indri/IndexWriter.hpp | whuang022nccu/IndriLab | 24d13dca14c7c447a4acedb45d7d1ef83551f6ac | [
"Apache-2.0"
] | null | null | null | include/indri/IndexWriter.hpp | whuang022nccu/IndriLab | 24d13dca14c7c447a4acedb45d7d1ef83551f6ac | [
"Apache-2.0"
] | null | null | null | /*==========================================================================
* Copyright (c) 2004 University of Massachusetts. All Rights Reserved.
*
* Use of the Lemur Toolkit for Language Modeling and Information Retrieval
* is subject to the terms of the software license set forth in the LICENSE
* file include... | 42.661417 | 241 | 0.646272 | whuang022nccu |
3fefa01f509a52b2ee96998c7e1c504c92d065ea | 9,731 | cpp | C++ | src/CameraCalibration.cpp | Humhu/calotypes | a05a809b3b27983332c24d8fb04cb71f47e96763 | [
"BSD-2-Clause"
] | 1 | 2019-01-18T14:59:39.000Z | 2019-01-18T14:59:39.000Z | src/CameraCalibration.cpp | Humhu/calotypes | a05a809b3b27983332c24d8fb04cb71f47e96763 | [
"BSD-2-Clause"
] | null | null | null | src/CameraCalibration.cpp | Humhu/calotypes | a05a809b3b27983332c24d8fb04cb71f47e96763 | [
"BSD-2-Clause"
] | null | null | null | #include "calotypes/CameraCalibration.h"
#include "calotypes/KernelDensityEstimation.hpp"
#include "calotypes/ImportanceResampling.hpp"
#include <opencv2/calib3d.hpp>
#include <Eigen/Dense>
namespace calotypes
{
bool CompareDataName( const CameraTrainingData& a, const CameraTrainingData& b )
{
if( a.name.size() == ... | 39.237903 | 124 | 0.692324 | Humhu |
3ff0bb90561856f23ebcfa2a58beb0ed0faecf78 | 1,390 | cpp | C++ | src/mason/al/al_buffer.cpp | ROTARTSI82/Mason | ee5dccc51b2b36288b4115d55b65106cf16ebb58 | [
"Apache-2.0"
] | null | null | null | src/mason/al/al_buffer.cpp | ROTARTSI82/Mason | ee5dccc51b2b36288b4115d55b65106cf16ebb58 | [
"Apache-2.0"
] | null | null | null | src/mason/al/al_buffer.cpp | ROTARTSI82/Mason | ee5dccc51b2b36288b4115d55b65106cf16ebb58 | [
"Apache-2.0"
] | null | null | null | //
// Created by 25granty on 10/14/19.
//
#include "mason/al/al_buffer.h"
#include "stb/stb_vorbis.c" // Has to be included in the c++ source file or else we die from linker errors.
namespace mason::al {
// TODO: Add proper error checking here (Hopefully I'll get unlazy later)
al_buffer::al_buffer(const std... | 28.958333 | 120 | 0.556115 | ROTARTSI82 |
3ff64f73d4f352d9cf6f49c55efff6685977e14e | 3,143 | hpp | C++ | include/abc/tagged_type.hpp | mabaro/abc | db636953f3438e6861458c0aa33642381bc4711d | [
"MIT"
] | null | null | null | include/abc/tagged_type.hpp | mabaro/abc | db636953f3438e6861458c0aa33642381bc4711d | [
"MIT"
] | 3 | 2020-10-18T00:06:28.000Z | 2020-10-18T00:10:14.000Z | include/abc/tagged_type.hpp | mabaro/abc | db636953f3438e6861458c0aa33642381bc4711d | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <type_traits>
namespace abc
{
template <typename T, typename TTag, int64_t DefaultValue>
class tagged_type
{
static_assert(std::is_trivial<T>::value, "Only trivial types are supported");
T m_value;
public:
using value_t = T;
using this_t = tagged_type<T... | 31.747475 | 92 | 0.620108 | mabaro |
3ff75190ab38a045eb6491e1e7b248615fd7d474 | 1,251 | cpp | C++ | Sources/Backend/hermes/db/HMMailDBAddToSavedRecipientsOperation.cpp | packagesdev/dejalu | 3ca934c98a24757f837ffcfab8e374a783e3f970 | [
"BSD-3-Clause"
] | 611 | 2017-12-29T08:17:40.000Z | 2020-06-15T06:26:41.000Z | Sources/Backend/hermes/db/HMMailDBAddToSavedRecipientsOperation.cpp | packagesdev/dejalu | 3ca934c98a24757f837ffcfab8e374a783e3f970 | [
"BSD-3-Clause"
] | 57 | 2018-01-09T09:26:36.000Z | 2020-07-07T22:43:41.000Z | Sources/Backend/hermes/db/HMMailDBAddToSavedRecipientsOperation.cpp | packagesdev/dejalu | 3ca934c98a24757f837ffcfab8e374a783e3f970 | [
"BSD-3-Clause"
] | 47 | 2018-01-02T11:29:41.000Z | 2020-04-28T02:35:53.000Z | // DejaLu
// Copyright (c) 2015 Hoa V. DINH. All rights reserved.
#include "HMMailDBAddToSavedRecipientsOperation.h"
#include "HMMailDB.h"
using namespace hermes;
using namespace mailcore;
MailDBAddToSavedRecipientsOperation::MailDBAddToSavedRecipientsOperation()
{
mAddresses = NULL;
mRowID = -1;
mAllSa... | 22.339286 | 83 | 0.784173 | packagesdev |
3ff7fec602af276513c5a52036f5d5617a70dd3e | 3,451 | hpp | C++ | include/snd/misc.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | 18 | 2020-08-26T11:33:50.000Z | 2021-04-13T15:57:28.000Z | include/snd/misc.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | 1 | 2021-05-16T17:11:57.000Z | 2021-05-16T17:25:17.000Z | include/snd/misc.hpp | colugomusic/snd | 3ecb87581870b14e62893610d027516aea48ff3c | [
"MIT"
] | null | null | null | #pragma once
#ifndef _USE_MATH_DEFINES
# define _USE_MATH_DEFINES
#endif
#include <algorithm>
#include <cmath>
#pragma warning(push, 0)
#include <DSP/MLDSPOps.h>
#pragma warning(pop)
#include "convert.hpp"
namespace snd {
constexpr auto PI = 3.14159265358979f;
constexpr float DENORMAL_DC = 1e-25f;
inline void f... | 17.880829 | 90 | 0.616923 | colugomusic |
3ffb9128a689f3b9ddcb15655694c5b5e7f34cab | 666 | cc | C++ | chapter3/ex3-39.cc | guojing0/cpp-primer | b0e36982d1323395aaca9bd9be09f383c130b645 | [
"MIT"
] | 1 | 2015-03-15T00:35:51.000Z | 2015-03-15T00:35:51.000Z | chapter3/ex3-39.cc | guojing0/cpp-primer | b0e36982d1323395aaca9bd9be09f383c130b645 | [
"MIT"
] | null | null | null | chapter3/ex3-39.cc | guojing0/cpp-primer | b0e36982d1323395aaca9bd9be09f383c130b645 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main(int argc, char const *argv[])
{
string s1 = "Happy day", s2 = "Bad cat";
const char ch1[] = "Know yourself", ch2[] = "Know thyself";
if (s1 > s2) {
cout << "String s1 is larger.";
} else if (s2 < s1) {
... | 21.483871 | 63 | 0.509009 | guojing0 |
3ffff9d5c8c0ef3a22ccb14c0ed1f99df13a2d68 | 3,241 | cc | C++ | services/data_decoder/public/cpp/safe_json_parser_impl.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | services/data_decoder/public/cpp/safe_json_parser_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | services/data_decoder/public/cpp/safe_json_parser_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2013 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 "services/data_decoder/public/cpp/safe_json_parser_impl.h"
#include "base/callback.h"
#include "base/sequenced_task_runner.h"
#include "base/str... | 37.686047 | 80 | 0.701944 | zipated |
b203c07bc6768841c65461f3783e765da3896ea0 | 385 | cpp | C++ | lessons/03-loops/src/problem1_sol.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/03-loops/src/problem1_sol.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/03-loops/src/problem1_sol.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cstdlib>
int main(int argc, char** argv) {
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " <number>\n";
return 1;
}
int nmax = atoi(argv[1]);
int sum_num = 0;
for (int i = 3; i < 1000; i++) {
if (i % 3 == 0 || i % 5 == 0) {
sum_num += i;
}
}
... | 16.041667 | 55 | 0.467532 | chemphys |
b204c5bc971170676d5d06fdf68655dbdae8aae5 | 2,119 | cpp | C++ | src/clock.cpp | JoakimLindbom/JLmod | d4ef1f0fd376492a32b229e054a63dcc32ea317f | [
"BSD-3-Clause"
] | 10 | 2018-01-10T20:29:22.000Z | 2020-07-06T21:23:02.000Z | src/clock.cpp | JoakimLindbom/vcvrack | d4ef1f0fd376492a32b229e054a63dcc32ea317f | [
"BSD-3-Clause"
] | 5 | 2018-02-25T13:57:19.000Z | 2020-04-01T16:07:41.000Z | src/clock.cpp | JoakimLindbom/vcvrack | d4ef1f0fd376492a32b229e054a63dcc32ea317f | [
"BSD-3-Clause"
] | null | null | null | #include "clock.hpp"
#include <functional>
Clock::Clock() {
reset();
}
void Clock::reset() {
step = -1.0;
}
bool Clock::isReset() {
return step == -1.0;
}
double Clock::getStep() {
return step;
}
void Clock::setSampleRate(double inSampleRate) {
sampleRate = inSampleRate; // TODO: Cascade to sub ... | 23.285714 | 123 | 0.577631 | JoakimLindbom |
b20538b53f06da71e3a0e4464c2f782d82060ba8 | 418 | cpp | C++ | app.cpp | retorillo/appveyor-playground | d30895cf7267bdd2083bde81b4e4cfc2ceede940 | [
"CC0-1.0"
] | null | null | null | app.cpp | retorillo/appveyor-playground | d30895cf7267bdd2083bde81b4e4cfc2ceede940 | [
"CC0-1.0"
] | null | null | null | app.cpp | retorillo/appveyor-playground | d30895cf7267bdd2083bde81b4e4cfc2ceede940 | [
"CC0-1.0"
] | null | null | null | #include "app.h"
int CALLBACK WinMain(HINSTANCE i, HINSTANCE p, LPSTR c, int n) {
auto foobar = combine(L"C:\\foo\\bar", L"..\\bar");
MessageBoxW(NULL, foobar.c_str(), L"test", MB_OK);
return foobar != L"C:\\foo\\bar";
}
std::wstring combine(std::wstring l, std::wstring r) {
WCHAR* b;
PathAllocCombine(l.c_st... | 27.866667 | 71 | 0.648325 | retorillo |
b211ac48afa6c04fada1656cfece38f02864b3d2 | 378 | cpp | C++ | C++/helloworld.cpp | Fernal73/LearnCpp | 100aa80e447fe7735d7f8217c2ec72ae32ed1c7f | [
"MIT"
] | null | null | null | C++/helloworld.cpp | Fernal73/LearnCpp | 100aa80e447fe7735d7f8217c2ec72ae32ed1c7f | [
"MIT"
] | null | null | null | C++/helloworld.cpp | Fernal73/LearnCpp | 100aa80e447fe7735d7f8217c2ec72ae32ed1c7f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
cout << "Content-type:text/html\r\n\r\n";
cout << "<html>\n";
cout << "<head>\n";
cout << "<title>Hello World - First CGI Program</title>\n";
cout << "</head>\n";
cout << "<body>\n";
cout << "<h2>Hello World! This is my first CGI program</h2>\n";
c... | 21 | 65 | 0.55291 | Fernal73 |
b21f138767985f93ea54c90c4a329af757e4b679 | 21,664 | cpp | C++ | master/autotools-book-files/autotools/book/flaim-ch8-10/xflaim/util/basictestsrv.cpp | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 4 | 2018-09-07T15:35:24.000Z | 2019-03-27T09:48:12.000Z | master/autotools-book-files/autotools/book/flaim-ch8-10/xflaim/util/basictestsrv.cpp | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 371 | 2020-03-04T21:51:56.000Z | 2022-03-31T20:59:11.000Z | master/autotools-book-files/autotools/book/flaim-ch8-10/xflaim/util/basictestsrv.cpp | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 3 | 2019-06-18T19:57:17.000Z | 2020-11-06T03:55:08.000Z | //------------------------------------------------------------------------------
// Desc: This is the main implementation of BasicTest component of our unit
// test suite. It handles basic operations such as: creating a db,
// deleting a db, backup and restore and add and remove nodes.
// Tabs: 3
//
// Copyright (... | 22.106122 | 80 | 0.646326 | AlexRogalskiy |
b21fad152dad1f22d6cee9b9d96e55a10d96cc84 | 4,323 | cpp | C++ | gsi_openssh/source/contrib/win32/win32compat/lsa/Base64.cpp | eunsungc/globus_toolkit-6.0.1430141288-RAMSES | 910400858b3fc414d848580da90a4a4a370148f4 | [
"Apache-2.0"
] | 1 | 2016-09-27T01:35:12.000Z | 2016-09-27T01:35:12.000Z | gsi_openssh/source/contrib/win32/win32compat/lsa/Base64.cpp | eunsungc/globus_toolkit-6.0.1430141288-RAMSES | 910400858b3fc414d848580da90a4a4a370148f4 | [
"Apache-2.0"
] | 10 | 2015-08-26T20:52:57.000Z | 2017-03-04T11:09:37.000Z | gsi_openssh/source/contrib/win32/win32compat/lsa/Base64.cpp | eunsungc/globus_toolkit-6.0.1430141288-RAMSES | 910400858b3fc414d848580da90a4a4a370148f4 | [
"Apache-2.0"
] | null | null | null | /*
* Author: NoMachine <developers@nomachine.com>
*
* Copyright (c) 2009, 2013 NoMachine
* All rights reserved
*
* Support functions and system calls' replacements needed to let the
* software run on Win32 based operating systems.
*
* Redistribution and use in source and binary forms, with or without
* modifi... | 20.985437 | 76 | 0.578071 | eunsungc |
b2215701198ec1c13461b9cc8e1b700f2dc4a5c2 | 607 | cpp | C++ | Array/zhanchengguo/0716-移动零/moveZeroes.cpp | JessonYue/LeetCodeLearning | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | [
"MIT"
] | 39 | 2020-05-31T06:14:39.000Z | 2021-01-09T11:06:39.000Z | Array/zhanchengguo/0716-移动零/moveZeroes.cpp | JessonYue/LeetCodeLearning | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | [
"MIT"
] | 7 | 2020-06-02T11:04:14.000Z | 2020-06-11T14:11:58.000Z | Array/zhanchengguo/0716-移动零/moveZeroes.cpp | JessonYue/LeetCodeLearning | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | [
"MIT"
] | 20 | 2020-05-31T06:21:57.000Z | 2020-10-01T04:48:38.000Z | #include <iostream>
#include <vector>
using namespace std;
void moveZeroes(vector<int> &nums);
int main() {
int a[] = {0, 0, 1};
vector<int> vv(a, a + 3);
moveZeroes(vv);
for (int i = 0; i < vv.size(); ++i) {
printf("values is %d\n", vv[i]);
}
return 0;
}
/**
* 思路:先把所有的非0数据保持原有顺序,之后... | 18.393939 | 47 | 0.482702 | JessonYue |
b22265f87e1f27dfb73ffb679ab6f2f80419c57d | 1,122 | cpp | C++ | Runtime/src/ad_stack.cpp | astrotuna201/dlvm-core | fb8823bb1c59f8e6b28491b9bc1e26c60938c436 | [
"Apache-2.0"
] | 98 | 2018-01-27T03:00:33.000Z | 2021-05-20T05:27:23.000Z | Runtime/src/ad_stack.cpp | astrotuna201/dlvm-core | fb8823bb1c59f8e6b28491b9bc1e26c60938c436 | [
"Apache-2.0"
] | 23 | 2018-01-27T06:34:34.000Z | 2021-07-31T19:49:42.000Z | Runtime/src/ad_stack.cpp | astrotuna201/dlvm-core | fb8823bb1c59f8e6b28491b9bc1e26c60938c436 | [
"Apache-2.0"
] | 17 | 2018-02-01T16:49:07.000Z | 2021-06-17T12:53:40.000Z | //
// ad_stack.cpp
// DLVM
//
// Copyright 2016-2018 The DLVM Team.
//
// 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 r... | 24.933333 | 76 | 0.713012 | astrotuna201 |
b222c618f036fe9c3bf3b1683957d3d9fb2f8f26 | 788 | cpp | C++ | src/log.cpp | DuinoDu/MotionDetection | da9ba307948882fe66910f3936743309fda07fbc | [
"MIT"
] | 1 | 2017-07-12T09:01:40.000Z | 2017-07-12T09:01:40.000Z | src/log.cpp | DuinoDu/MotionDetection | da9ba307948882fe66910f3936743309fda07fbc | [
"MIT"
] | null | null | null | src/log.cpp | DuinoDu/MotionDetection | da9ba307948882fe66910f3936743309fda07fbc | [
"MIT"
] | null | null | null | #include "../include/log.h"
void Log(const char * szLog)
{
#if defined(DEBUG_OUTPUT_LOG)
OutputDebugStringA(szLog);
OutputDebugStringA("\n");
#else
return;
#endif
/*
SYSTEMTIME st;
GetLocalTime(&st);
FILE *fp;
fp = fopen("mlog.txt", "at");
fprintf(fp, "MyLogInfo: %d:%... | 21.297297 | 96 | 0.579949 | DuinoDu |
b2278b98545dec581081afdf28a8433cbab546af | 302 | hpp | C++ | src/cpp3ds/Graphics/CitroHelpers.hpp | cpp3ds/cpp3ds | 7813714776e2134bd75b9f3869ed142c1d4eeaaf | [
"MIT"
] | 98 | 2015-08-26T16:49:29.000Z | 2022-03-03T10:15:43.000Z | src/cpp3ds/Graphics/CitroHelpers.hpp | Naxann/cpp3ds | 1932e798306ec6d910c6a5b9e85e9d8f02fb815f | [
"MIT"
] | 10 | 2016-02-26T21:30:51.000Z | 2020-07-12T20:48:09.000Z | src/cpp3ds/Graphics/CitroHelpers.hpp | Naxann/cpp3ds | 1932e798306ec6d910c6a5b9e85e9d8f02fb815f | [
"MIT"
] | 15 | 2015-10-16T06:22:37.000Z | 2020-10-01T08:52:48.000Z | #pragma once
#include <citro3d.h>
void CitroInit(size_t commandBufferSize);
void CitroDestroy();
void CitroBindUniforms(shaderProgram_s* program);
void CitroUpdateMatrixStacks();
C3D_MtxStack* CitroGetProjectionMatrix();
C3D_MtxStack* CitroGetModelviewMatrix();
C3D_MtxStack* CitroGetTextureMatrix();
| 27.454545 | 49 | 0.831126 | cpp3ds |
b2293fb20f8db2b783e1324c9e1b5f698dc193f7 | 2,366 | cpp | C++ | apps/gadgetron/connection/nodes/common/Serialization.cpp | roopchansinghv/gadgetron | fb6c56b643911152c27834a754a7b6ee2dd912da | [
"MIT"
] | 1 | 2022-02-22T21:06:36.000Z | 2022-02-22T21:06:36.000Z | apps/gadgetron/connection/nodes/common/Serialization.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null | apps/gadgetron/connection/nodes/common/Serialization.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null |
#include <iomanip>
#include "Serialization.h"
#include "io/primitives.h"
#include "MessageID.h"
using namespace Gadgetron::Core;
namespace Gadgetron::Server::Connection::Nodes {
Serialization::Serialization(
Readers readers,
Writers writers
) : readers(std::move(readers)), writers(... | 32.861111 | 110 | 0.558749 | roopchansinghv |
b22d96ce16a46e20c9a9b9c05ea235799addebaa | 3,041 | cpp | C++ | common/test_libs/arduino_sim/ArduinoSim.cpp | sienna0127/VentilatorSoftware | 73e65d8b00c29617b64430cff921afa597096bf8 | [
"Apache-2.0"
] | null | null | null | common/test_libs/arduino_sim/ArduinoSim.cpp | sienna0127/VentilatorSoftware | 73e65d8b00c29617b64430cff921afa597096bf8 | [
"Apache-2.0"
] | null | null | null | common/test_libs/arduino_sim/ArduinoSim.cpp | sienna0127/VentilatorSoftware | 73e65d8b00c29617b64430cff921afa597096bf8 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020, RespiraWorks
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | 30.108911 | 79 | 0.70832 | sienna0127 |
b232ff0864a1fb74f21167279cd5dbaf6a09b3e1 | 226 | cpp | C++ | Server/game/src/main.cpp | fatihsahinn/Metin2-Coin-System | cf4427fa74ee37f3a699301272c3f5cc18c8015a | [
"MIT"
] | null | null | null | Server/game/src/main.cpp | fatihsahinn/Metin2-Coin-System | cf4427fa74ee37f3a699301272c3f5cc18c8015a | [
"MIT"
] | null | null | null | Server/game/src/main.cpp | fatihsahinn/Metin2-Coin-System | cf4427fa74ee37f3a699301272c3f5cc18c8015a | [
"MIT"
] | null | null | null | // Add File İnclude
#ifdef ENABLE_FATIH_SAHIN_REDCOIN_SYSTEM
#include "RedCoinManager.h"
#endif
// Find
CPrivManager priv_manager;
//Add below
#ifdef ENABLE_FATIH_SAHIN_REDCOIN_SYSTEM
CRedCoinManager RedCoinManager;
#endif | 18.833333 | 40 | 0.827434 | fatihsahinn |
b23885ece11a149f98a639c53ec6a016954c6167 | 1,139 | cpp | C++ | codechef/BINIM2/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/BINIM2/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/BINIM2/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 21-10-2018 22:40:38
* solution_verdict: Accepted language: C++14
* run... | 30.783784 | 111 | 0.369622 | kzvd4729 |
b23c37009fd8fb21a79a37d2a980d31f16e19b66 | 3,835 | cpp | C++ | src/036_valid_sudoku.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 1 | 2019-09-01T22:54:39.000Z | 2019-09-01T22:54:39.000Z | src/036_valid_sudoku.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 6 | 2019-07-19T07:16:42.000Z | 2019-07-26T08:21:31.000Z | src/036_valid_sudoku.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | null | null | null |
/*
Valid Sudoku
URL: https://leetcode.com/problems/valid-sudoku
Tags: ['hash-table']
___
Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be
validated according to the following rules :
1. Each row must contain the digits `1-9` without repetition.
2. Each column must contain the digits `... | 30.19685 | 80 | 0.393481 | llife09 |
b23d918b6b8841b218baedbc00d97ead1298d0f9 | 191 | hpp | C++ | src/Input.hpp | RichardMarks/proto | 68fe7a635c946f7cfd5bbc41ab44ad38b9a48f01 | [
"MIT"
] | null | null | null | src/Input.hpp | RichardMarks/proto | 68fe7a635c946f7cfd5bbc41ab44ad38b9a48f01 | [
"MIT"
] | null | null | null | src/Input.hpp | RichardMarks/proto | 68fe7a635c946f7cfd5bbc41ab44ad38b9a48f01 | [
"MIT"
] | null | null | null | #ifndef INPUT_H
#define INPUT_H
namespace proto {
class Config;
class Input {
public:
Input(Config& config);
~Input();
};
} // !namespace proto
#endif // !INPUT_H
| 10.611111 | 28 | 0.602094 | RichardMarks |
b23e0884e156046a6e20dc29f642df205a4f990e | 888 | cpp | C++ | src/prod/src/api/wrappers/ComClientSettingsResult.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/api/wrappers/ComClientSettingsResult.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/api/wrappers/ComClientSettingsResult.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 26.909091 | 98 | 0.653153 | vishnuk007 |
b2402af98fb294e4e193cec4112358712acd635c | 54,548 | hpp | C++ | ch_frb_io.hpp | CHIMEFRB/ch_frb_io | 1c283cda329c16cd04cf79d9d520a2076f748c9d | [
"MIT"
] | null | null | null | ch_frb_io.hpp | CHIMEFRB/ch_frb_io | 1c283cda329c16cd04cf79d9d520a2076f748c9d | [
"MIT"
] | 17 | 2016-06-15T22:55:57.000Z | 2020-09-25T18:15:40.000Z | ch_frb_io.hpp | CHIMEFRB/ch_frb_io | 1c283cda329c16cd04cf79d9d520a2076f748c9d | [
"MIT"
] | 3 | 2017-01-12T11:42:19.000Z | 2019-01-14T23:54:44.000Z | #ifndef _CH_FRB_IO_HPP
#define _CH_FRB_IO_HPP
#if (__cplusplus < 201103) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
#error "This source file needs to be compiled with C++11 support (g++ -std=c++11)"
#endif
#include <queue>
#include <string>
#include <vector>
#include <map>
#include <unordered_set>
#include <unordered_ma... | 44.240065 | 161 | 0.705507 | CHIMEFRB |
b240b483f53d28c2668fc46cb5c62b6ffad27663 | 1,886 | cpp | C++ | src/src/expr/evaluter_term.cpp | Yukikamome316/MineCode | 65ffbd06a05f09c11cbd43c4de934f97eaffca6d | [
"MIT"
] | 17 | 2020-12-07T10:58:03.000Z | 2021-09-10T05:49:38.000Z | src/src/expr/evaluter_term.cpp | Yukikamome316/MineCode | 65ffbd06a05f09c11cbd43c4de934f97eaffca6d | [
"MIT"
] | 2 | 2021-05-16T18:45:36.000Z | 2021-10-20T13:02:35.000Z | src/src/expr/evaluter_term.cpp | Yukikamome316/MineCode | 65ffbd06a05f09c11cbd43c4de934f97eaffca6d | [
"MIT"
] | 8 | 2021-01-11T09:11:21.000Z | 2021-09-02T17:52:46.000Z | #include <eval.h>
#include <parserCore.h>
#include <parserTypes.h>
#include <stmtProcessor.h>
#include <syntaxError.h>
#include <util.h>
using namespace parserTypes;
void eval::Term(parserCore *that, term obj, int dest) {
int offs = that->Asm->stack_offset;
struct offset {
enum Type { MUL, DIV, MOD };
Ty... | 25.835616 | 74 | 0.513256 | Yukikamome316 |
b24196bd16bdfd814ffbd78e8699c51537e3e760 | 1,148 | cc | C++ | source/RasqalQueryResults.cc | SynBioDex/libSBOL | 50fb77cec1b043ede08ed315cfac6958e80b9d2f | [
"Apache-2.0"
] | 12 | 2016-05-06T08:50:00.000Z | 2021-07-09T21:02:56.000Z | source/RasqalQueryResults.cc | SynBioDex/libSBOL | 50fb77cec1b043ede08ed315cfac6958e80b9d2f | [
"Apache-2.0"
] | 178 | 2016-01-19T19:12:50.000Z | 2020-06-14T08:12:52.000Z | source/RasqalQueryResults.cc | SynBioDex/libSBOL | 50fb77cec1b043ede08ed315cfac6958e80b9d2f | [
"Apache-2.0"
] | 8 | 2016-03-14T15:10:59.000Z | 2019-07-29T20:14:50.000Z | #include <stdio.h>
#include "RasqalQueryResults.hh"
void RasqalQueryResults::loadBindingResults()
{
if(m_results == NULL)
{
return;
}
while(!rasqal_query_results_finished(m_results))
{
int i;
std::map<std::string, rasqal_literal *> bindingResults;
for(i = 0; i < r... | 24.956522 | 92 | 0.60453 | SynBioDex |
b24543063e7a8606e02d514248c669a3d9159efa | 3,344 | cpp | C++ | PhysicsTestbeds/Physics2d/Components/RigidBody2d.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | PhysicsTestbeds/Physics2d/Components/RigidBody2d.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | PhysicsTestbeds/Physics2d/Components/RigidBody2d.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | #include "Precompiled.hpp"
#include "RigidBody2d.hpp"
#include "Engine/Cog.hpp"
#include "Engine/Space.hpp"
#include "PhysicsSpace2d.hpp"
#include "Utilities/ZeroUtilities.hpp"
namespace Physics2d
{
//-------------------------------------------------------------------RigidBody2d
ZilchDefineType(RigidBody2d, builde... | 20.9 | 90 | 0.75299 | jodavis42 |
b24a19eccd5f0b3602553c5b847d171bd60627ec | 743 | cpp | C++ | intermediate/funciones/vectorParamsFunctions.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 1 | 2019-06-20T17:51:10.000Z | 2019-06-20T17:51:10.000Z | intermediate/funciones/vectorParamsFunctions.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 2 | 2018-10-01T08:14:01.000Z | 2018-10-06T05:27:26.000Z | intermediate/funciones/vectorParamsFunctions.cpp | eduardorasgado/CppZerotoAdvance2018 | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | [
"MIT"
] | 1 | 2018-10-05T10:54:10.000Z | 2018-10-05T10:54:10.000Z | /*
PASO DE PARAMETROS TIPO VECTOR
Parametros de la funcion:
void nombreDeFuncion(tipo nombreArreglo[], int tamañoArreglo);
Llamada a la funcion:
nombreDeFuncion(nombreArreglo, tamañoArreglo);
*/
#include <iostream>
using namespace std;
void sqrtVector(int vect[], int N);
void showVector(int vect[], int N);
int ... | 17.690476 | 70 | 0.64603 | eduardorasgado |
b24fdc9bd6f32d5eddd556105561518396f867f4 | 2,453 | cpp | C++ | src/world/csvr/Parser.cpp | desktopgame/ofxPlanet | fe364e83f4c0ec0f169df63ce989a88ae6328c07 | [
"BSD-2-Clause",
"MIT"
] | 3 | 2020-02-24T14:19:20.000Z | 2021-05-17T11:25:07.000Z | src/world/csvr/Parser.cpp | desktopgame/ofxPlanet | fe364e83f4c0ec0f169df63ce989a88ae6328c07 | [
"BSD-2-Clause",
"MIT"
] | 1 | 2020-02-25T09:20:34.000Z | 2020-02-25T09:38:49.000Z | src/world/csvr/Parser.cpp | desktopgame/ofxPlanet | fe364e83f4c0ec0f169df63ce989a88ae6328c07 | [
"BSD-2-Clause",
"MIT"
] | 1 | 2021-08-14T07:12:42.000Z | 2021-08-14T07:12:42.000Z | #include "parser.hpp"
#include <cctype>
#include <iostream>
#include <sstream>
#include <stdexcept>
namespace ofxPlanet {
namespace csvr {
Parser::Parser() : tables() {}
void Parser::parse(const std::string& source) {
int start = 0;
while (true) {
Table table;
int read ... | 33.148649 | 77 | 0.416633 | desktopgame |
b2506097ff0fe500e6be1b5f819e94c3a7b1d673 | 467 | cpp | C++ | C++/isPalindrome.cpp | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 2 | 2020-04-08T17:57:43.000Z | 2021-11-07T09:11:51.000Z | C++/isPalindrome.cpp | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | null | null | null | C++/isPalindrome.cpp | xtt129/LeetCode | 1afa893d38e2fce68e4677b34169c0f0262b6fac | [
"MIT"
] | 8 | 2018-03-13T18:20:26.000Z | 2022-03-09T19:48:11.000Z | // Time Complexity: O(n)
// Space Complexity: O(1)
class Solution {
public:
bool isPalindrome(int x) {
if(x < 0)
return false;
int d = 1;
for(; x / d >= 10 ; d *= 10);
for(; x > 0; x = (x % d) / 10, d /= 100) {
int q = x / d;... | 20.304348 | 54 | 0.329764 | xtt129 |
b250704696796f07757187ddd0f347e9fd3a5209 | 2,052 | hh | C++ | src/ui/win32/bindings/NumericUpDownBinding.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 71 | 2018-04-15T13:02:43.000Z | 2022-03-26T11:19:18.000Z | src/ui/win32/bindings/NumericUpDownBinding.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 309 | 2018-04-15T12:10:59.000Z | 2022-01-22T20:13:04.000Z | src/ui/win32/bindings/NumericUpDownBinding.hh | Jamiras/RAIntegration | ccf3dea24d81aefdcf51535f073889d03272b259 | [
"MIT"
] | 17 | 2018-04-17T16:09:31.000Z | 2022-03-04T08:49:03.000Z | #ifndef RA_UI_WIN32_NUMERICUPDOWNBINDING_H
#define RA_UI_WIN32_NUMERICUPDOWNBINDING_H
#pragma once
#include "NumericTextBoxBinding.hh"
namespace ra {
namespace ui {
namespace win32 {
namespace bindings {
class NumericUpDownBinding : public NumericTextBoxBinding
{
public:
explicit NumericUpDownBinding(ViewModelBa... | 24.428571 | 86 | 0.63499 | Jamiras |
b25105172d2e9011cadedc603ee297e5479a770a | 3,220 | cc | C++ | ash/wm/cursor_manager.cc | junmin-zhu/chromium-rivertrail | eb1a57aca71fe68d96e48af8998dcfbe45171ee1 | [
"BSD-3-Clause"
] | 5 | 2018-03-10T13:08:42.000Z | 2021-07-26T15:02:11.000Z | ash/wm/cursor_manager.cc | sanyaade-mobiledev/chromium.src | d496dfeebb0f282468827654c2b3769b3378c087 | [
"BSD-3-Clause"
] | 1 | 2015-07-21T08:02:01.000Z | 2015-07-21T08:02:01.000Z | ash/wm/cursor_manager.cc | jianglong0156/chromium.src | d496dfeebb0f282468827654c2b3769b3378c087 | [
"BSD-3-Clause"
] | 6 | 2016-11-14T10:13:35.000Z | 2021-01-23T15:29:53.000Z | // Copyright (c) 2012 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 "ash/wm/cursor_manager.h"
#include "ash/shell.h"
#include "ash/wm/image_cursors.h"
#include "base/logging.h"
#include "ui/aura/root_window.h... | 25.967742 | 73 | 0.735714 | junmin-zhu |
b25451f79ccd6a2b2420e0d7196676082dedbb56 | 362 | hpp | C++ | core/LinearActivation.hpp | CltKitakami/NeuralNetwork | 78f2ba1cc38b16d94c10341fe3c5afd8f684db7e | [
"MIT"
] | null | null | null | core/LinearActivation.hpp | CltKitakami/NeuralNetwork | 78f2ba1cc38b16d94c10341fe3c5afd8f684db7e | [
"MIT"
] | null | null | null | core/LinearActivation.hpp | CltKitakami/NeuralNetwork | 78f2ba1cc38b16d94c10341fe3c5afd8f684db7e | [
"MIT"
] | null | null | null | #ifndef _LINEARACTIVATION_HPP_
#define _LINEARACTIVATION_HPP_
#include "Activation.hpp"
namespace nn {
class LinearActivation : public Activation
{
public:
virtual ~LinearActivation() = default;
virtual void forward(MatrixType &) override {}
virtual void backward(MatrixType &x) override
{
x = MatrixType::One... | 14.48 | 47 | 0.729282 | CltKitakami |
b25824e6fb60d6b05fe6dffe0cd2c46d1313748e | 3,461 | cc | C++ | comparison_to_iSS/steinheimer_to_music_converter.cc | doliinychenko/microcanonical_cooper_frye | 4fb66d789b45096db73ddf8f1dfcfa9f0b9554a8 | [
"BSD-3-Clause"
] | 5 | 2019-05-20T16:15:45.000Z | 2021-07-31T10:33:44.000Z | comparison_to_iSS/steinheimer_to_music_converter.cc | doliinychenko/microcanonical_cooper_frye | 4fb66d789b45096db73ddf8f1dfcfa9f0b9554a8 | [
"BSD-3-Clause"
] | null | null | null | comparison_to_iSS/steinheimer_to_music_converter.cc | doliinychenko/microcanonical_cooper_frye | 4fb66d789b45096db73ddf8f1dfcfa9f0b9554a8 | [
"BSD-3-Clause"
] | null | null | null | /*
* Purpose: Converts Steinheimer format to MUSIC format.
* Compiling: g++ -Wall -Wextra -std=c++11 -O3 -o converter steinheimer_to_music_converter.cc
* Running: ./converter input_file output_file
*/
#include <cmath>
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
int main(int arg... | 39.329545 | 93 | 0.526149 | doliinychenko |
b258a92d14a33205982860ce6fcfc512805b1cfa | 26,537 | cpp | C++ | Hardware/Vivado_HLS_IPs/Acceleration_Scheduler_SG_XDMA/acceleration_scheduler_sg_xdma.cpp | iscalab/PCIe_FPGA_Accel | bd601ac5b212583fd6329721ff21a857ae45a0d6 | [
"MIT"
] | 5 | 2018-12-11T03:17:17.000Z | 2021-11-17T06:30:50.000Z | Hardware/Vivado_HLS_IPs/Acceleration_Scheduler_SG_XDMA/acceleration_scheduler_sg_xdma.cpp | dbakoyiannis/PCIe_FPGA_Accel | 1980073afba12c0d3d6accb95066c591e428180a | [
"MIT"
] | null | null | null | Hardware/Vivado_HLS_IPs/Acceleration_Scheduler_SG_XDMA/acceleration_scheduler_sg_xdma.cpp | dbakoyiannis/PCIe_FPGA_Accel | 1980073afba12c0d3d6accb95066c591e428180a | [
"MIT"
] | 2 | 2021-04-04T08:47:03.000Z | 2021-04-27T12:32:48.000Z | /*******************************************************************************
* Filename: acceleration_scheduler_sg_xdma.cpp
* Author: Dimitrios Bakoyiannis <d.bakoyiannis@gmail.com>
* License:
*
* MIT License
*
* Copyright (c) [2018] [Dimitrios Bakoyiannis]
*
* Permission is hereby granted, free of charge, to... | 52.548515 | 187 | 0.703885 | iscalab |
b25a1b236fc30eaab045d725f376a0574901735e | 1,027 | cpp | C++ | src/logging/serial_logger.cpp | abkfenris/gage-particle | 0f70bea48c2f2cfaa195eb4513e557b6c1c48f4f | [
"MIT"
] | null | null | null | src/logging/serial_logger.cpp | abkfenris/gage-particle | 0f70bea48c2f2cfaa195eb4513e557b6c1c48f4f | [
"MIT"
] | 26 | 2019-11-22T16:31:08.000Z | 2021-07-19T21:35:10.000Z | src/logging/serial_logger.cpp | abkfenris/gage-particle | 0f70bea48c2f2cfaa195eb4513e557b6c1c48f4f | [
"MIT"
] | null | null | null | #include "logging/serial_logger.h"
void SerialLogger::setup()
{
Serial.begin();
last_update_ms = millis() - update_interval_ms;
}
void SerialLogger::loop()
{
if (millis() - last_update_ms >= update_interval_ms)
{
last_update_ms = millis();
persist_values();
}
}
void SerialLogger:... | 18.672727 | 70 | 0.627069 | abkfenris |
b25f39b9c350db8114d85c4c171a568e8d87cdd3 | 5,936 | cpp | C++ | src/InterProcessCommunication/NamedPipeNetworkServer/main.cpp | SemenMartynov/SPbPU_SystemProgramming | 151f3de08fe7d0095ddd2e5b7a49e87c32f72b3e | [
"MIT"
] | null | null | null | src/InterProcessCommunication/NamedPipeNetworkServer/main.cpp | SemenMartynov/SPbPU_SystemProgramming | 151f3de08fe7d0095ddd2e5b7a49e87c32f72b3e | [
"MIT"
] | null | null | null | src/InterProcessCommunication/NamedPipeNetworkServer/main.cpp | SemenMartynov/SPbPU_SystemProgramming | 151f3de08fe7d0095ddd2e5b7a49e87c32f72b3e | [
"MIT"
] | null | null | null | #include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <tchar.h>
#include <strsafe.h>
#include "logger.h"
#define BUFSIZE 512
DWORD WINAPI InstanceThread(LPVOID);
int _tmain(int argc, _TCHAR* argv[]) {
//Init log
initlog(argv[0]);
_tprintf(_T("Server is started.\n\n"));
BOOL fCo... | 37.1 | 89 | 0.6656 | SemenMartynov |
b25f7506808265a2fb90971ef604c067e438b69e | 7,410 | cpp | C++ | src/visualmsi.cpp | OpenGene/VisualMSI | 4cbc272002d6a5b30b0c208fbf7b5a6860da0d17 | [
"MIT"
] | 33 | 2018-11-07T06:19:55.000Z | 2021-10-16T04:13:51.000Z | src/visualmsi.cpp | OpenGene/VisualMSI | 4cbc272002d6a5b30b0c208fbf7b5a6860da0d17 | [
"MIT"
] | 3 | 2019-05-19T11:42:06.000Z | 2021-09-01T06:08:58.000Z | src/visualmsi.cpp | OpenGene/VisualMSI | 4cbc272002d6a5b30b0c208fbf7b5a6860da0d17 | [
"MIT"
] | 13 | 2018-11-09T03:47:58.000Z | 2021-05-18T00:43:09.000Z | #include "visualmsi.h"
#include "bamutil.h"
#include "jsonreporter.h"
#include "htmlreporter.h"
#include "reference.h"
VisualMSI::VisualMSI(Options *opt){
mOptions = opt;
}
VisualMSI::~VisualMSI(){
for(int m=0; m<mMsiTargetsTumor.size(); m++)
delete mMsiTargetsTumor[m];
for(int m=0; m<mMsiTargetsN... | 34.147465 | 125 | 0.574359 | OpenGene |
b261584d02f89b87c0729209149505d5b65840ad | 13,157 | cpp | C++ | NextEngine/src/graphics/renderer/terrain.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | NextEngine/src/graphics/renderer/terrain.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | NextEngine/src/graphics/renderer/terrain.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | #include "core/profiler.h"
#include "ecs/ecs.h"
#include "graphics/renderer/terrain.h"
#include "graphics/assets/assets.h"
#include "graphics/assets/model.h"
#include "components/transform.h"
#include "components/terrain.h"
#include "components/camera.h"
#include "graphics/assets/material.h"
#include "graphics/renderer... | 43.566225 | 170 | 0.769628 | CompilerLuke |
b2642858a73238ff8445a18e6e02ffdb615c548a | 342 | cpp | C++ | minerva/common/common.cpp | jjzhang166/minerva | 7d21ed2bdca3de9fbb6e5e2e277fd9956b81a04f | [
"Apache-2.0"
] | 561 | 2015-04-05T02:50:00.000Z | 2022-03-04T09:05:16.000Z | minerva/common/common.cpp | jjzhang166/minerva | 7d21ed2bdca3de9fbb6e5e2e277fd9956b81a04f | [
"Apache-2.0"
] | 35 | 2015-04-05T12:46:45.000Z | 2016-06-14T00:58:17.000Z | minerva/common/common.cpp | jjzhang166/minerva | 7d21ed2bdca3de9fbb6e5e2e277fd9956b81a04f | [
"Apache-2.0"
] | 161 | 2015-04-15T05:47:34.000Z | 2022-01-25T16:01:20.000Z | #include "./common.h"
#include <cstdarg>
#include <dmlc/logging.h>
namespace minerva {
namespace common {
void FatalError(char const* format, ...) {
char buffer[4096];
va_list va;
va_start(va, format);
vsprintf(buffer, format, va);
va_end(va);
LOG(FATAL) << buffer;
abort();
}
} // namespace common
} ... | 16.285714 | 42 | 0.660819 | jjzhang166 |
b26433de2a3b299b75f9277741cbcf77c18d0bb2 | 5,248 | cpp | C++ | src/libminc/MincCastRegister.cpp | RcSepp/minc | 8add46095ba7990ca636a6e6c266dda4148052fd | [
"MIT"
] | null | null | null | src/libminc/MincCastRegister.cpp | RcSepp/minc | 8add46095ba7990ca636a6e6c266dda4148052fd | [
"MIT"
] | null | null | null | src/libminc/MincCastRegister.cpp | RcSepp/minc | 8add46095ba7990ca636a6e6c266dda4148052fd | [
"MIT"
] | null | null | null | #include "minc_api.hpp"
InheritanceCast::InheritanceCast(MincObject* fromType, MincObject* toType, MincKernel* kernel)
: MincCast(fromType, toType, kernel)
{
}
int InheritanceCast::getCost() const
{
return 0;
}
MincCast* InheritanceCast::derive() const
{
return nullptr;
}
TypeCast::TypeCast(MincObject* fromType,... | 31.238095 | 121 | 0.688453 | RcSepp |
b26527d03ec717ccb01c9a61e85e359f363b29ba | 6,146 | cpp | C++ | elem.cpp | soulofmachines/QtCue | 035148f32fa1ca08ded9eca2fa6810c235d4831c | [
"MIT"
] | null | null | null | elem.cpp | soulofmachines/QtCue | 035148f32fa1ca08ded9eca2fa6810c235d4831c | [
"MIT"
] | null | null | null | elem.cpp | soulofmachines/QtCue | 035148f32fa1ca08ded9eca2fa6810c235d4831c | [
"MIT"
] | null | null | null | #include "elem.hpp"
QComboBox *file_list() {
QStringList string = QStringList() << "BINARY" << "MOTOROLA"
<< "AIFF" << "WAVE" << "MP3";
QComboBox* combo = new QComboBox();
combo->addItems(string);
return combo;
}
QComboBox *track_list() {
QStringList string... | 30.884422 | 108 | 0.441263 | soulofmachines |
05ce411b110055dbdd846fce6dcd281fc9086eef | 7,134 | cpp | C++ | engine/Engine.Core/src/core/resource/ResourceManager.cpp | ZieIony/Ghurund | be84166ef0aba5556910685b7a3b754b823da556 | [
"MIT"
] | 66 | 2018-12-16T21:03:36.000Z | 2022-03-26T12:23:57.000Z | engine/Engine.Core/src/core/resource/ResourceManager.cpp | ZieIony/Ghurund | be84166ef0aba5556910685b7a3b754b823da556 | [
"MIT"
] | 57 | 2018-04-24T20:53:01.000Z | 2021-02-21T12:14:20.000Z | engine/Engine.Core/src/core/resource/ResourceManager.cpp | ZieIony/Ghurund | be84166ef0aba5556910685b7a3b754b823da556 | [
"MIT"
] | 7 | 2019-07-16T08:25:25.000Z | 2022-03-21T08:29:46.000Z | #include "ghcpch.h"
#include "ResourceManager.h"
#include "core/Timer.h"
#include "core/logging/Formatter.h"
#include "core/reflection/TypeBuilder.h"
namespace Ghurund::Core {
Status ResourceManager::loadInternal(Loader& loader, Resource& resource, const FilePath& path, const ResourceFormat* format, LoadOption op... | 39.854749 | 171 | 0.581161 | ZieIony |
05d1ac22327335fe17703d3be4a530ea8bc67348 | 1,944 | hpp | C++ | test/examples/code/3rdparty/assimp/detail/ph.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | test/examples/code/3rdparty/assimp/detail/ph.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | test/examples/code/3rdparty/assimp/detail/ph.hpp | maikebing/vpp | efa6c32f898e103d749764ce3a0b7dc29d6e9a51 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright SOFT-ERG (Przemek Kuczmierczyk) 2016
All Rights Reserved.
THIS WORK CONTAINS TRADE SECRET
AND PROPRIETARY INFORMATION WHICH IS THE
PROPERTY OF SOFT-ERG (Przemek Kuczmierczyk)
AND IS SUBJECT TO LICENSE TERMS.
*/
// ---------------------------------------------------------... | 21.6 | 81 | 0.64249 | maikebing |
05d31ac2b37312671d2275ca84dd41fca9cdea6a | 445 | cc | C++ | src/main.cc | rsanchezm98/sudoku-solver | 4b7580105acb4dda50ca24c69be09f89826f39a4 | [
"MIT"
] | null | null | null | src/main.cc | rsanchezm98/sudoku-solver | 4b7580105acb4dda50ca24c69be09f89826f39a4 | [
"MIT"
] | null | null | null | src/main.cc | rsanchezm98/sudoku-solver | 4b7580105acb4dda50ca24c69be09f89826f39a4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "sudoku.hpp"
int main(int argc, char** argv)
{
if(argc < 2)
{
std::cout << "Please, rerun the program with a filename...\n";
return 0;
}
std::string filename = argv[1];
filename = "../sudoku_files/" + filename;
size_t table_size = ... | 22.25 | 70 | 0.58427 | rsanchezm98 |
05d487dc83be83fe591a9cb01fd315bc83ee3151 | 4,405 | hh | C++ | libsrc/pylith/friction/obsolete/StaticFriction.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | libsrc/pylith/friction/obsolete/StaticFriction.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | libsrc/pylith/friction/obsolete/StaticFriction.hh | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 30.804196 | 78 | 0.640863 | Grant-Block |
05df2f5286bb59dc5bd3272f3a3aa1a53af432b7 | 2,825 | hpp | C++ | external/swak/libraries/simpleFunctionObjects/DataStructures/TimeClone/TimeCloneList.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | external/swak/libraries/simpleFunctionObjects/DataStructures/TimeClone/TimeCloneList.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | external/swak/libraries/simpleFunctionObjects/DataStructures/TimeClone/TimeCloneList.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright: ICE Stroemungsfoschungs GmbH
Copyright held by original author
-------------------------------------------------------------------------------
License
This file is based on CAELUS.
CAELUS is free software: you can redis... | 25.917431 | 99 | 0.504425 | MrAwesomeRocks |
05e3e38e2b358720cf85efb9805fa60b9adc7b79 | 1,301 | cpp | C++ | CipherTools/PluginSupport/PIDocManager.cpp | kuustudio/CipherTools | d99e707eab0515424ebe3555bb15dfbdc1782575 | [
"MIT"
] | 2 | 2019-09-02T16:28:10.000Z | 2020-08-19T09:29:51.000Z | PluginSupport/PIDocManager.cpp | SurrealSky/CipherManager | b0b4f3e58d148ee285a279cea46171ef9ef6cb00 | [
"MIT"
] | null | null | null | PluginSupport/PIDocManager.cpp | SurrealSky/CipherManager | b0b4f3e58d148ee285a279cea46171ef9ef6cb00 | [
"MIT"
] | 1 | 2021-07-03T02:49:46.000Z | 2021-07-03T02:49:46.000Z | #include "stdafx.h"
#include "PIDocManager.h"
IMPLEMENT_DYNAMIC(CPIDocManager, CDocManager)
CPIDocManager::CPIDocManager(void)
{
}
CPIDocManager::~CPIDocManager(void)
{
}
#ifdef _DEBUG
void CPIDocManager::AssertValid() const
{
CDocManager::AssertValid();
}
void CPIDocManager::Dump(CDumpContext& dc) const
{
CDo... | 19.41791 | 83 | 0.730208 | kuustudio |
05e9a3513b14c65f8e38da89e82964b50b0346a4 | 1,379 | cc | C++ | src/remoting/host/vlog_net_log.cc | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | 9 | 2018-09-21T05:36:12.000Z | 2021-11-15T15:14:36.000Z | remoting/host/vlog_net_log.cc | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2015-07-21T08:02:01.000Z | 2015-07-21T08:02:01.000Z | remoting/host/vlog_net_log.cc | devasia1000/chromium | 919a8a666862fb866a6bb7aa7f3ae8c0442b4828 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2016-11-14T10:13:35.000Z | 2021-01-23T15:29:53.000Z | // Copyright (c) 2012 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 "remoting/host/vlog_net_log.h"
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "ba... | 25.072727 | 73 | 0.69108 | jxjnjjn |
05ea5e7204956392ba3c8588a4bf5e18c83b93bf | 943 | cc | C++ | poj/2/2457.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | 1 | 2015-04-17T09:54:23.000Z | 2015-04-17T09:54:23.000Z | poj/2/2457.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | poj/2/2457.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
#include <queue>
using namespace std;
int main()
{
int N, K;
scanf("%d %d", &N, &K);
vector<vector<int> > g(K);
for (int i = 0; i < N; i++) {
int a, b;
scanf("%d %d", &a, &b);
--a; --b;
g[a].push_back(b);
}
queue<int> q;
vector<int> prev(K, -1);
prev... | 20.06383 | 91 | 0.45175 | eagletmt |
05edb2d789e67f3c9d902a64ab32b4664fc0b4f3 | 12,624 | cpp | C++ | AircraftDynamicsTestFramework/TrajectoryFromFile.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TrajectoryFromFile.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TrajectoryFromFile.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | // ****************************************************************************
// NOTICE
//
// This is the copyright work of The MITRE Corporation, and was produced
// for the U. S. Government under Contract Number DTFAWA-10-C-00080, and
// is subject to Federal Aviation Administration Acquisition Management
// System... | 27.503268 | 143 | 0.680925 | sbowman-mitre |
05ee05c2da497334d5f35a2006f15402eff776df | 1,440 | cpp | C++ | boboleetcode/Play-Leetcode-master/0937-Reorder-Log-File/cpp-0937/main.cpp | yaominzh/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 2 | 2021-03-25T05:26:55.000Z | 2021-04-20T03:33:24.000Z | boboleetcode/Play-Leetcode-master/0937-Reorder-Log-File/cpp-0937/main.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 6 | 2019-12-04T06:08:32.000Z | 2021-05-10T20:22:47.000Z | boboleetcode/Play-Leetcode-master/0937-Reorder-Log-File/cpp-0937/main.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | null | null | null | /// Source : https://leetcode.com/problems/reorder-log-files/
/// Author : liuyubobobo
/// Time : 2018-11-11
#include <iostream>
#include <vector>
using namespace std;
/// Using Custom Class and overloading < operator to sort
/// Time Complexity: O(nlogn)
/// Space Complexity: O(n)
class Solution {
private:
... | 20.571429 | 88 | 0.528472 | yaominzh |
05ee17328426ba2b9b46434fa8d306717f5edb28 | 793 | cpp | C++ | Private/RHIInstance.cpp | cyj0912/RHI | 70205931d4bdf716acaec02389b9933f72ab6c58 | [
"BSD-2-Clause"
] | 8 | 2019-05-11T06:59:10.000Z | 2022-01-30T12:48:38.000Z | Private/RHIInstance.cpp | cyj0912/RHI | 70205931d4bdf716acaec02389b9933f72ab6c58 | [
"BSD-2-Clause"
] | null | null | null | Private/RHIInstance.cpp | cyj0912/RHI | 70205931d4bdf716acaec02389b9933f72ab6c58 | [
"BSD-2-Clause"
] | 2 | 2019-04-23T02:59:08.000Z | 2019-05-27T22:19:28.000Z | #include "RHIInstance.h"
#ifdef RHI_IMPL_DIRECT3D11
#include "Direct3D11/DeviceD3D11.h"
#elif defined(RHI_IMPL_VULKAN)
#include "Vulkan/DeviceVk.h"
#endif
namespace RHI
{
extern void InitRHIInstance();
extern void ShutdownRHIInstance();
static thread_local CDevice::Ref CurrDevice;
CInstance& CInstance::Get()
{
... | 22.027778 | 75 | 0.760404 | cyj0912 |
05ee5a8bee6a009cee9280c7b62d81e9d27a6228 | 1,436 | cpp | C++ | VideoScriptEditor/VideoScriptEditor.PreviewRenderer.Unmanaged/AviSynthEnvironment.cpp | danjoconnell/VideoScriptEditor | 1d836e0cbe6e5afc56bdeb17ff834da308d752b0 | [
"MIT"
] | null | null | null | VideoScriptEditor/VideoScriptEditor.PreviewRenderer.Unmanaged/AviSynthEnvironment.cpp | danjoconnell/VideoScriptEditor | 1d836e0cbe6e5afc56bdeb17ff834da308d752b0 | [
"MIT"
] | null | null | null | VideoScriptEditor/VideoScriptEditor.PreviewRenderer.Unmanaged/AviSynthEnvironment.cpp | danjoconnell/VideoScriptEditor | 1d836e0cbe6e5afc56bdeb17ff834da308d752b0 | [
"MIT"
] | 1 | 2021-02-04T16:43:57.000Z | 2021-02-04T16:43:57.000Z | #include "pch.h"
#include <string>
#include "AviSynthEnvironment.h"
#include <system_error>
namespace VideoScriptEditor::PreviewRenderer::Unmanaged
{
using namespace VideoScriptEditor::Unmanaged;
AviSynthEnvironment::AviSynthEnvironment() : AviSynthEnvironmentBase()
{
if (!CreateScriptEnvironment(... | 27.09434 | 128 | 0.638579 | danjoconnell |
05f2da41f5bd8713c9a218fa5c8d7d7a351847c1 | 3,876 | cpp | C++ | orbwebai/common/src/common.cpp | HungMingWu/ncnn_example | 6604eab8d76a5e49280e3f840847c84244c0fb2b | [
"MIT"
] | 1 | 2022-03-28T12:45:43.000Z | 2022-03-28T12:45:43.000Z | orbwebai/common/src/common.cpp | HungMingWu/ncnn_example | 6604eab8d76a5e49280e3f840847c84244c0fb2b | [
"MIT"
] | null | null | null | orbwebai/common/src/common.cpp | HungMingWu/ncnn_example | 6604eab8d76a5e49280e3f840847c84244c0fb2b | [
"MIT"
] | null | null | null | #include <assert.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <iostream>
#include <orbwebai/structure.h>
#include <orbwebai/structure_operator.h>
#include <common/common.h>
namespace orbwebai
{
namespace face
{
float CalculateSimilarity(
const std::vector<float>& feature1,
const std::... | 34 | 108 | 0.680599 | HungMingWu |
05f3ab142aa6e830e78f51725f90b93050b2ef4a | 1,615 | cpp | C++ | src/Alias.cpp | irov/GOAP | f8d5f061537019fccdd143b232aa8a869fdb0b2d | [
"MIT"
] | 14 | 2016-10-07T21:53:02.000Z | 2021-12-13T02:57:19.000Z | src/Alias.cpp | irov/GOAP | f8d5f061537019fccdd143b232aa8a869fdb0b2d | [
"MIT"
] | null | null | null | src/Alias.cpp | irov/GOAP | f8d5f061537019fccdd143b232aa8a869fdb0b2d | [
"MIT"
] | 4 | 2016-09-01T10:06:29.000Z | 2021-12-13T02:57:20.000Z | /*
* Copyright (C) 2017-2019, Yuriy Levchenko <irov13@mail.ru>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "GOAP/Alias.h"
#include "GOAP/SourceInterface.h"
#include "GOAP/Cook.h"
#include "GOAP/Exception.h"
namespace GOAP
{
... | 26.47541 | 82 | 0.430341 | irov |
05f426ef899df9cabd8a310697ee86808e2508cc | 17,589 | cpp | C++ | src/Engine/imgui/imgui_impl_gl3.cpp | ennis/autograph-pipelines | afc66ef60bf99fca26d200bd7739528e1bf3ed8c | [
"MIT"
] | 1 | 2021-04-24T12:29:42.000Z | 2021-04-24T12:29:42.000Z | src/Engine/imgui/imgui_impl_gl3.cpp | ennis/autograph-pipelines | afc66ef60bf99fca26d200bd7739528e1bf3ed8c | [
"MIT"
] | null | null | null | src/Engine/imgui/imgui_impl_gl3.cpp | ennis/autograph-pipelines | afc66ef60bf99fca26d200bd7739528e1bf3ed8c | [
"MIT"
] | null | null | null | // ImGui GLFW binding with OpenGL3 + shaders
// In this binding, ImTextureID is used to store an OpenGL 'GLuint' texture
// identifier. Read the FAQ about ImTextureID in imgui.cpp.
// You can copy and use unmodified imgui_impl_* files in your project. See
// main.cpp for an example of using this. If you use this bindi... | 37.107595 | 80 | 0.669907 | ennis |
05f5d52656a4bcfcc7f70162b7b08a51e588f8e3 | 5,924 | cpp | C++ | test/unit/models/TransactionFilterTest.cpp | BlockChain-Station/enjin-cpp-sdk | 3af1cd001d7e660787bbfb2e2414a96f5a95a228 | [
"Apache-2.0"
] | 12 | 2021-09-28T14:37:22.000Z | 2022-03-04T17:54:11.000Z | test/unit/models/TransactionFilterTest.cpp | BlockChain-Station/enjin-cpp-sdk | 3af1cd001d7e660787bbfb2e2414a96f5a95a228 | [
"Apache-2.0"
] | null | null | null | test/unit/models/TransactionFilterTest.cpp | BlockChain-Station/enjin-cpp-sdk | 3af1cd001d7e660787bbfb2e2414a96f5a95a228 | [
"Apache-2.0"
] | 8 | 2021-11-05T18:56:55.000Z | 2022-01-10T11:14:24.000Z | /* Copyright 2021 Enjin Pte. Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 34.847059 | 282 | 0.597569 | BlockChain-Station |
05f790145ef637d2fc34def20229d1b4dd39267e | 459 | cpp | C++ | UILIB/DX9Line.cpp | bo3b/iZ3D | ced8b3a4b0a152d0177f2e94008918efc76935d5 | [
"MIT"
] | 27 | 2020-11-12T19:24:54.000Z | 2022-03-27T23:10:45.000Z | UILIB/DX9Line.cpp | bo3b/iZ3D | ced8b3a4b0a152d0177f2e94008918efc76935d5 | [
"MIT"
] | 2 | 2020-11-02T06:30:39.000Z | 2022-02-23T18:39:55.000Z | UILIB/DX9Line.cpp | bo3b/iZ3D | ced8b3a4b0a152d0177f2e94008918efc76935d5 | [
"MIT"
] | 3 | 2021-08-16T00:21:08.000Z | 2022-02-23T19:19:36.000Z | #include "DX9Line.h"
#include "d3dx9math.h"
DX9Line::DX9Line(LPD3DXLINE pLine ):
m_pLine( pLine )
{
}
DX9Line::~DX9Line()
{
m_pLine->Release();
}
HRESULT DX9Line::Draw( POINTF* pVertexList, DWORD verCount, DWORD Colour )
{
D3DXVECTOR2* vecs = new D3DXVECTOR2[verCount];
for( DWORD i = 0; i < verCount; i++ )
{
ve... | 19.125 | 74 | 0.673203 | bo3b |
05fe51c8a269bea1e2878e19ef2aacb2ef355d47 | 207 | cpp | C++ | CodeBlocks/Codeforces/Solved/Codeforces4A.cpp | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | CodeBlocks/Codeforces/Solved/Codeforces4A.cpp | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | CodeBlocks/Codeforces/Solved/Codeforces4A.cpp | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
int main(void)
{
int input;
scanf("%d", &input);
if((input + 1) % 2 == 0 || input > 2 == 0)
printf("NO\n");
else
printf("YES\n");
return 0;
}
| 12.9375 | 46 | 0.449275 | ash1247 |
05fe5c9ee22dbd27f57753b554100284933be8a6 | 5,915 | cc | C++ | src/third_party/chromium/src/base/file_util.cc | jlmucb/cloudproxy | b5aa0b619bc454ba4dd183ab1c6c8298a3b9d8c1 | [
"Apache-2.0"
] | 34 | 2015-03-10T09:58:23.000Z | 2021-08-12T21:42:28.000Z | src/third_party/chromium/src/base/file_util.cc | virginwidow/cloudproxy | b5aa0b619bc454ba4dd183ab1c6c8298a3b9d8c1 | [
"Apache-2.0"
] | 53 | 2015-06-09T21:07:41.000Z | 2016-12-15T00:14:53.000Z | src/third_party/chromium/src/base/file_util.cc | jethrogb/cloudproxy | fcf90a62bf09c4ecc9812117d065954be8a08da5 | [
"Apache-2.0"
] | 17 | 2015-06-09T21:29:23.000Z | 2021-03-26T15:35:18.000Z | // Copyright (c) 2012 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.
// This code is adapted from Chromium. For the original, see:
// https://code.google.com/p/chromium/codesearch#chromium/src/
// The code has been modi... | 28.4375 | 78 | 0.661369 | jlmucb |
af0087a7e85abdf54d4f22d5fb776247e8f8c5db | 3,491 | cpp | C++ | cmpf_path_tracking_controller/cmpf_decoupled_controller/src/decoupled_controller.cpp | aungpaing98/cmpf | 6dc561895946c8faa5b15c72d2590990ac7d3e9f | [
"Apache-2.0"
] | 3 | 2021-12-23T15:36:37.000Z | 2022-02-28T15:05:35.000Z | cmpf_path_tracking_controller/cmpf_decoupled_controller/src/decoupled_controller.cpp | aungpaing98/cmpf | 6dc561895946c8faa5b15c72d2590990ac7d3e9f | [
"Apache-2.0"
] | 1 | 2022-01-12T15:33:42.000Z | 2022-01-12T15:33:42.000Z | cmpf_path_tracking_controller/cmpf_decoupled_controller/src/decoupled_controller.cpp | aungpaing98/cmpf | 6dc561895946c8faa5b15c72d2590990ac7d3e9f | [
"Apache-2.0"
] | 1 | 2022-01-10T04:47:13.000Z | 2022-01-10T04:47:13.000Z | /************************************************************************
Copyright 2021 Phone Thiha Kyaw
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/license... | 37.138298 | 112 | 0.691492 | aungpaing98 |
af04effcd92a2963645f7475b5a05bf9cd15440e | 6,021 | cpp | C++ | LiteCppDB/LiteCppDB/ObjectId.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | 2 | 2019-07-18T06:30:33.000Z | 2020-01-23T17:40:36.000Z | LiteCppDB/LiteCppDB/ObjectId.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | null | null | null | LiteCppDB/LiteCppDB/ObjectId.cpp | pnadan/LiteCppDB | cb17db1ea6d82e0c1e669b4d70271dcf9c03d1a2 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "BsonValue.h"
#include <functional>
#include <random>
#include <sstream>
#include "ObjectId.h"
#include <gsl\gsl>
namespace LiteCppDB
{
#pragma region Properties
// Get timestamp
int32_t ObjectId::getTimestamp() noexcept
{
return this->mTimestamp;
}
void ObjectId::setTimestamp(in... | 23.892857 | 98 | 0.680618 | pnadan |
af0a3817e818a47eb04b4bd4d953565af9c173f0 | 348 | hpp | C++ | include/cereal/size_type.hpp | VaderY/cereal | b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a | [
"BSD-3-Clause"
] | null | null | null | include/cereal/size_type.hpp | VaderY/cereal | b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a | [
"BSD-3-Clause"
] | null | null | null | include/cereal/size_type.hpp | VaderY/cereal | b03f237713a7e4aab18c7d9150fb3c9a5e92ea3a | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cstdint>
#include <cereal/macros.hpp>
namespace cereal {
// -------------------------------------------------------------------------------------------------
using size_type = CEREAL_SIZE_TYPE;
// ---------------------------------------------------------------------------------------------... | 20.470588 | 100 | 0.304598 | VaderY |
af0fce98bb2f00f6f1c531b9a680a347f47dd3c7 | 4,343 | hpp | C++ | math/utility/fn.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | math/utility/fn.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | math/utility/fn.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#ifndef _SNAKEOIL_MATH_UTILITY_FUNCTION_HPP_
#define _SNAKEOIL_MATH_UTILITY_FUNCTION_HPP_
#include "../typedefs.h"
n... | 28.019355 | 79 | 0.474557 | aconstlink |
af106a6d6819243d90ef0a285d8bbd2765c91efa | 8,786 | cc | C++ | src/init.cc | lightsighter/Legion-SNAP | 922c14dd68b6ed2e8fb84a213b2d2d4f67e33113 | [
"Apache-2.0"
] | 2 | 2017-12-11T16:31:10.000Z | 2019-09-16T21:19:14.000Z | src/init.cc | lightsighter/Legion-SNAP | 922c14dd68b6ed2e8fb84a213b2d2d4f67e33113 | [
"Apache-2.0"
] | null | null | null | src/init.cc | lightsighter/Legion-SNAP | 922c14dd68b6ed2e8fb84a213b2d2d4f67e33113 | [
"Apache-2.0"
] | 2 | 2017-06-01T16:26:04.000Z | 2020-09-27T11:06:59.000Z | /* Copyright 2017 NVIDIA Corporation
*
* The U.S. Department of Energy funded the development of this software
* under subcontract B609478 with Lawrence Livermore National Security, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | 36.915966 | 85 | 0.503756 | lightsighter |
af1130ae08cae69f83aa8589451a7aa94b454f9f | 1,347 | cpp | C++ | src/calc/Checksum.cpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | src/calc/Checksum.cpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | src/calc/Checksum.cpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#include <cstdio>
#include "calc/Checksum.hpp"
using namespace calc;
u8 Checksum::calc_zero_sum(const u8 * data, int size){
int i;
u8 sum = 0;
int count = size/sizeof(u8) - 1;
for(i=0; i < count; i++){
sum += da... | 20.104478 | 100 | 0.644395 | bander9289 |
af11adfc5ebd185ea6fb7dfa00beeff452fdfca1 | 1,597 | cpp | C++ | SharedUtility/DataReader/BaseLibsvmReader.cpp | ELFairyhyuk/ova-gpu-svm | 78610da3d0ae4c1fb60b629d1ed3fd824f878234 | [
"Apache-1.1"
] | null | null | null | SharedUtility/DataReader/BaseLibsvmReader.cpp | ELFairyhyuk/ova-gpu-svm | 78610da3d0ae4c1fb60b629d1ed3fd824f878234 | [
"Apache-1.1"
] | null | null | null | SharedUtility/DataReader/BaseLibsvmReader.cpp | ELFairyhyuk/ova-gpu-svm | 78610da3d0ae4c1fb60b629d1ed3fd824f878234 | [
"Apache-1.1"
] | null | null | null | /*
* BaseLibsvmReader.cpp
*
* Created on: 6 May 2016
* Author: Zeyi Wen
* @brief: definition of some basic functions for reading data in libsvm format
*/
#include <iostream>
#include <assert.h>
#include <sstream>
#include <stdio.h>
#include "BaseLibsvmReader.h"
using std::istringstream;
/**
* @brief: g... | 21.581081 | 127 | 0.66938 | ELFairyhyuk |
af18b4f76e16b8e93b0df54d2a950c84afa2c2b4 | 94,520 | cpp | C++ | player_mp.cpp | darkoppressor/huberts-island-adventure-mouse-o-war | 9ff8d9e2c2b388bf762a0e463238794fb0233df8 | [
"MIT"
] | null | null | null | player_mp.cpp | darkoppressor/huberts-island-adventure-mouse-o-war | 9ff8d9e2c2b388bf762a0e463238794fb0233df8 | [
"MIT"
] | null | null | null | player_mp.cpp | darkoppressor/huberts-island-adventure-mouse-o-war | 9ff8d9e2c2b388bf762a0e463238794fb0233df8 | [
"MIT"
] | null | null | null | /* Copyright (c) 2012-2013 Cheese and Bacon Games, LLC */
/* See the file docs/COPYING.txt for copying permission. */
#include "player_mp.h"
#include "enumerations.h"
#include "shot_data.h"
#include "world.h"
#include "counters.h"
#include "collision.h"
#include "score.h"
#include "mirror.h"
#include "render.h"
#inclu... | 40.811744 | 243 | 0.513764 | darkoppressor |
af19a928b1a8c576a437ad0ca9799287405ae88d | 445 | cpp | C++ | src/collection/CollectionInterface.cpp | christian-esken/mediawarp | 0c0d2423175774421c4b78b36693e29f6146af6b | [
"Apache-2.0"
] | null | null | null | src/collection/CollectionInterface.cpp | christian-esken/mediawarp | 0c0d2423175774421c4b78b36693e29f6146af6b | [
"Apache-2.0"
] | null | null | null | src/collection/CollectionInterface.cpp | christian-esken/mediawarp | 0c0d2423175774421c4b78b36693e29f6146af6b | [
"Apache-2.0"
] | null | null | null | /*
* CollectionInterface.cpp
*
* Created on: 13.01.2015
* Author: chris
*/
#include "CollectionInterface.h"
#include <exception>
CollectionInterface::CollectionInterface(int collectionId) : collectionId(collectionId)
{
}
CollectionInterface::~CollectionInterface()
{
}
std::vector<shared_ptr<MediaItem> ... | 17.8 | 90 | 0.74382 | christian-esken |
af2196db2443b3566ae1eb91d8c17b7d3c5769ae | 4,719 | cpp | C++ | src/socketinputstream.cpp | MacroGu/log4cxx_gcc_4_8 | c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e | [
"Apache-2.0"
] | 1 | 2016-10-06T20:09:32.000Z | 2016-10-06T20:09:32.000Z | src/socketinputstream.cpp | MacroGu/log4cxx_gcc_4_8 | c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e | [
"Apache-2.0"
] | null | null | null | src/socketinputstream.cpp | MacroGu/log4cxx_gcc_4_8 | c6c82ee6dca2808c42cfa567d32f640a8bd9ac3e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2003,2004 The Apache Software Foundation.
*
* 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... | 26.071823 | 81 | 0.665395 | MacroGu |
af255f912b93241b53f81655757ed8fd380199cf | 8,298 | cc | C++ | src/distribution/PairOfDistributions.cc | NOAA-EMC/ioda | 366ce1aa4572dde7f3f15862a2970f3dd3c82369 | [
"Apache-2.0"
] | 1 | 2021-06-09T16:11:50.000Z | 2021-06-09T16:11:50.000Z | src/distribution/PairOfDistributions.cc | NOAA-EMC/ioda | 366ce1aa4572dde7f3f15862a2970f3dd3c82369 | [
"Apache-2.0"
] | null | null | null | src/distribution/PairOfDistributions.cc | NOAA-EMC/ioda | 366ce1aa4572dde7f3f15862a2970f3dd3c82369 | [
"Apache-2.0"
] | 3 | 2021-06-09T16:12:02.000Z | 2021-11-14T09:19:25.000Z | /*
* (C) Crown copyright 2021, Met Office
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
#include "ioda/distribution/PairOfDistributions.h"
#include <boost/make_unique.hpp>
#include "oops/util/DateTime.h"
... | 30.847584 | 92 | 0.641962 | NOAA-EMC |
af2ae618822789d926e55512bd0cbb68f9dc399a | 25,648 | cpp | C++ | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/Network/CNetwork.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 231 | 2018-01-28T00:06:56.000Z | 2022-03-31T21:39:56.000Z | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/Network/CNetwork.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 9 | 2016-02-10T10:46:16.000Z | 2017-12-06T17:27:51.000Z | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Multiplayer/Network/CNetwork.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 66 | 2018-01-28T21:54:52.000Z | 2022-02-16T22:50:57.000Z | // include definition
#define _CRT_SECURE_NO_DEPRECATE
#include "cnetwork.h"
// Defines for this code
#define SAFE_RELEASE( p ) { if ( p ) { ( p )->Release ( ); ( p ) = NULL; } }
#define SAFE_DELETE_ARRAY( p ) { if ( p ) { delete [ ] ( p ); ( p ) = NULL; } }
// GUID Value
GUID DPCREATE_GUID = { 0x7d2f0893, 0xb... | 25.828802 | 167 | 0.641181 | domydev |
af2b2eab5bf69267a5a5b88c20040e6a4c5ef77e | 675 | cpp | C++ | UVa 1363 - Joseph's Problem/sample/1363 - Joseph's Problem.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 1363 - Joseph's Problem/sample/1363 - Joseph's Problem.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 1363 - Joseph's Problem/sample/1363 - Joseph's Problem.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
int main() {
long long n, k;
while(scanf("%lld %lld", &n, &k) == 2) {
long long l = 1, r, div;
long long ret = 0;
while(l <= k) {
div = k/l;
r = k/div;
// d = div
if(r > n) r = n;
long long a0 = k%l, d = -d... | 21.774194 | 53 | 0.374815 | tadvi |
af30f8bb5bc055f1be18c4b6dd569f56c27a7f0c | 184 | cpp | C++ | old_src/example_server/main.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | old_src/example_server/main.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | old_src/example_server/main.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | #include "plotty.h"
#include <QCoreApplication>
int main(int argc, char* argv[]) {
auto app = QCoreApplication(argc, argv);
Plotty plotty(50000);
return app.exec();
}
| 14.153846 | 44 | 0.652174 | InsightCenterNoodles |
af314665d27de3c965b1cdad16acd9bdcf07c943 | 959 | cpp | C++ | tests/cpp/nontype_template_args.201411.cpp | eggs-cpp/sd-6 | d7ba0c08acf7c1c817baa1ea53f488d02394858a | [
"BSL-1.0"
] | 7 | 2015-03-03T18:33:02.000Z | 2018-08-31T08:26:01.000Z | tests/cpp/nontype_template_args.201411.cpp | eggs-cpp/sd-6 | d7ba0c08acf7c1c817baa1ea53f488d02394858a | [
"BSL-1.0"
] | null | null | null | tests/cpp/nontype_template_args.201411.cpp | eggs-cpp/sd-6 | d7ba0c08acf7c1c817baa1ea53f488d02394858a | [
"BSL-1.0"
] | null | null | null | // Eggs.SD-6
//
// Copyright Agustin K-ballo Berge, Fusion Fenix 2015
//
// 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)
int x;
int arr[10];
void fun() {}
struct s { static int sm; } so;
template <typename T, T*> ... | 21.311111 | 79 | 0.698644 | eggs-cpp |
af3243cdf44db04240e5caaeeb6c906616f39c47 | 14,615 | cpp | C++ | src/intcomp/AbbreviationCodegen.cpp | WebAssembly/decompressor-prototype | 44075ebeef75b950fdd9c0cd0b369928ef05a09c | [
"Apache-2.0"
] | 11 | 2016-07-08T20:43:29.000Z | 2021-05-09T21:43:34.000Z | src/intcomp/AbbreviationCodegen.cpp | DalavanCloud/decompressor-prototype | 44075ebeef75b950fdd9c0cd0b369928ef05a09c | [
"Apache-2.0"
] | 62 | 2016-06-07T15:21:24.000Z | 2017-05-18T15:51:04.000Z | src/intcomp/AbbreviationCodegen.cpp | DalavanCloud/decompressor-prototype | 44075ebeef75b950fdd9c0cd0b369928ef05a09c | [
"Apache-2.0"
] | 5 | 2016-06-07T15:05:32.000Z | 2020-01-06T17:21:43.000Z | // -*- C++ -*- */
//
// Copyright 2016 WebAssembly Community Group participants
//
// 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
//
// ... | 33.36758 | 80 | 0.67376 | WebAssembly |
af32802b9e92115193ac6365f68c26580d39cc78 | 1,473 | cpp | C++ | string/simplify_path.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | 1 | 2015-07-15T07:31:42.000Z | 2015-07-15T07:31:42.000Z | string/simplify_path.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | string/simplify_path.cpp | zhangxin23/leetcode | 4c8fc60e59448045a3e880caaedd0486164e68e7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <bits/stl_stack.h>
using namespace std;
/**
* Given an absolute path for a file (Unix-style), simplify it.
* For example,
* path = "/home/", => "/home"
* path = "/a/./b/../../c/", => "/c"
* Corner Cases:
* • Did you consider the case where path = "/../"? In this... | 27.277778 | 102 | 0.441955 | zhangxin23 |
af3684c70243779d4f462636a73078db6e072682 | 2,950 | cpp | C++ | Common/zoneview.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Common/zoneview.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Common/zoneview.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | //
// zoneview.cpp
// MelobaseStation
//
// Created by Daniel Cliche on 2016-02-08.
// Copyright (c) 2016-2021 Daniel Cliche. All rights reserved.
//
#include "zoneview.h"
using namespace MDStudio;
// ----------------------------------------------------------------------------------------------------------------... | 42.142857 | 120 | 0.622034 | dcliche |
af36e438fb8bc750c09a5beb82ddfcc6c7a64cac | 3,668 | cpp | C++ | 3rdparty/webkit/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | 1 | 2020-05-25T16:06:49.000Z | 2020-05-25T16:06:49.000Z | WebLayoutCore/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | null | null | null | WebLayoutCore/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | 1 | 2018-07-10T10:53:18.000Z | 2018-07-10T10:53:18.000Z | /*
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2007 Alp Toker <alp@atoker.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must reta... | 37.428571 | 164 | 0.709378 | mchiasson |
af3c5d944ca4f879ea6d4365e1365e221f69cde7 | 45,136 | cpp | C++ | amd_femfx/src/FindContacts/FEMFXMeshCollision.cpp | UnifiQ/FEMFX | 95cf656731a2465ae1d400138170af2d6575b5bb | [
"MIT"
] | 418 | 2019-12-16T10:36:42.000Z | 2022-03-27T02:46:08.000Z | amd_femfx/src/FindContacts/FEMFXMeshCollision.cpp | UnifiQ/FEMFX | 95cf656731a2465ae1d400138170af2d6575b5bb | [
"MIT"
] | 15 | 2019-12-16T15:39:29.000Z | 2021-12-02T15:45:21.000Z | amd_femfx/src/FindContacts/FEMFXMeshCollision.cpp | UnifiQ/FEMFX | 95cf656731a2465ae1d400138170af2d6575b5bb | [
"MIT"
] | 54 | 2019-12-16T12:33:18.000Z | 2022-02-27T16:33:28.000Z | /*
MIT License
Copyright (c) 2019 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, m... | 44.294406 | 197 | 0.624225 | UnifiQ |
af3c85ba4560bd4fbd781a99e2b5af71ae654cf9 | 772 | hpp | C++ | include/clpp/command_queue_flags.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 5 | 2015-09-08T01:59:26.000Z | 2018-11-26T10:19:29.000Z | include/clpp/command_queue_flags.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 6 | 2015-11-29T03:00:11.000Z | 2015-11-29T03:11:52.000Z | include/clpp/command_queue_flags.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | null | null | null | #ifndef CLPP_COMMAND_QUEUE_FLAGS_HPP
#define CLPP_COMMAND_QUEUE_FLAGS_HPP
#include "clpp/detail/common.hpp"
#include "clpp/detail/mask_wrapper.hpp"
namespace cl {
class CommandQueueFlags final :
public detail::MaskWrapper<cl_command_queue_properties>
{
public:
using detail::MaskWrapper<CommandQueueFlags::cl_ma... | 29.692308 | 74 | 0.759067 | Robbepop |
af3df56bb45d05fea22f60c71a7c5f7d498925b9 | 1,114 | cpp | C++ | ast/src/FieldDeclarationNode.cpp | JBamberger/oberon0-compiler | 399d7ea367403809f1bf31aada10e13eb38aac12 | [
"Apache-2.0"
] | 1 | 2020-09-06T15:38:16.000Z | 2020-09-06T15:38:16.000Z | ast/src/FieldDeclarationNode.cpp | JBamberger/oberon0-compiler | 399d7ea367403809f1bf31aada10e13eb38aac12 | [
"Apache-2.0"
] | null | null | null | ast/src/FieldDeclarationNode.cpp | JBamberger/oberon0-compiler | 399d7ea367403809f1bf31aada10e13eb38aac12 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Jannik Bamberger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 29.315789 | 96 | 0.728905 | JBamberger |
af479203d2cc77aaeb1e75e159093d0557b3792b | 8,788 | cpp | C++ | localgraphclustering/src/lib/include/maxflow.cpp | vishalbelsare/LocalGraphClustering | a6325350997932d548a876deb259c2387fc2c809 | [
"MIT"
] | 106 | 2017-09-06T04:47:02.000Z | 2022-03-30T07:43:27.000Z | localgraphclustering/src/lib/include/maxflow.cpp | pmacg/local-bipartite-clusters | d29e8d37c79e27b48e785b7b2c4bad9ea5d66b6d | [
"MIT"
] | 51 | 2017-09-06T02:22:09.000Z | 2021-12-15T11:39:28.000Z | localgraphclustering/src/lib/include/maxflow.cpp | vishalbelsare/LocalGraphClustering | a6325350997932d548a876deb259c2387fc2c809 | [
"MIT"
] | 38 | 2017-09-04T21:45:13.000Z | 2022-01-19T09:48:25.000Z | #ifndef MAXFLOW_cpp
#define MAXFLOW_cpp
#include "routines.hpp"
#include <list>
#include <climits>
#include <utility>
#include <iostream>
#include <stack>
#include <algorithm>
/*
Based on http://www.geeksforgeeks.org/dinics-algorithm-maximum-flow/
*/
using namespace std;
// Finds if more flow can be sent from s t... | 31.498208 | 162 | 0.505462 | vishalbelsare |
af4b5024feecf15d017f713595e8a8251eeb9623 | 3,158 | cpp | C++ | RTOS_JOB_SCHEDULING_SIMULATOR/Files/sjfnp.cpp | binodkumar23/IITJ_IDDEDA | 2c2f9ec14bcbb882c23866f1329a5fd0a1a7a993 | [
"MIT"
] | 1 | 2021-12-11T10:23:05.000Z | 2021-12-11T10:23:05.000Z | RTOS_JOB_SCHEDULING_SIMULATOR/Files/sjfnp.cpp | binodkumar23/IITJ_IDDEDA | 2c2f9ec14bcbb882c23866f1329a5fd0a1a7a993 | [
"MIT"
] | null | null | null | RTOS_JOB_SCHEDULING_SIMULATOR/Files/sjfnp.cpp | binodkumar23/IITJ_IDDEDA | 2c2f9ec14bcbb882c23866f1329a5fd0a1a7a993 | [
"MIT"
] | 3 | 2021-12-23T17:19:42.000Z | 2022-01-27T13:53:47.000Z | #include <bits/stdc++.h>
using namespace std;
vector<double> sjfnp(vector<int> &cpu_burst, vector<int> &arrival_times, int mode)
{
int n = cpu_burst.size();
vector<int> wait_time(n, 0), turnaround_time(n, 0), response_time(n), completion_time(n, 0);
vector<vector<int> > table(n, vector<int>(6));
tabl... | 31.58 | 99 | 0.468334 | binodkumar23 |
af507d136ec0c8e4bb719e673a2005234f73e475 | 756 | hpp | C++ | src/UI/RepeaterBookResultsWidget.hpp | neotericpiguy/QDmrconfig | 5fd0b5fbacd414f5963bcfef153db95e9447bade | [
"MIT"
] | 1 | 2021-01-03T17:49:59.000Z | 2021-01-03T17:49:59.000Z | src/UI/RepeaterBookResultsWidget.hpp | neotericpiguy/QDmrconfig | 5fd0b5fbacd414f5963bcfef153db95e9447bade | [
"MIT"
] | 39 | 2020-12-19T18:19:06.000Z | 2021-12-29T01:25:39.000Z | src/UI/RepeaterBookResultsWidget.hpp | neotericpiguy/QDmrconfig | 5fd0b5fbacd414f5963bcfef153db95e9447bade | [
"MIT"
] | null | null | null | #ifndef REPEATERBOOKRESULTSWIDGET_HPP
#define REPEATERBOOKRESULTSWIDGET_HPP
#pragma GCC diagnostic ignored "-Weffc++"
#include <QtWidgets/QPlainTextEdit>
#include <QtWidgets/QTableWidget>
#include <QtWidgets/QtWidgets>
#include <memory>
#pragma GCC diagnostic pop
#include "BSONDocWidget.hpp"
class RepeaterBookResult... | 28 | 94 | 0.80291 | neotericpiguy |
af530f8bc0cb8af0aa3e3ec65530a5292b8151a1 | 10,697 | inl | C++ | Phoenix3D/PX2Graphics/PX2Renderer.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 36 | 2016-04-24T01:40:38.000Z | 2022-01-18T07:32:26.000Z | Phoenix3D/PX2Graphics/PX2Renderer.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | null | null | null | Phoenix3D/PX2Graphics/PX2Renderer.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 16 | 2016-06-13T08:43:51.000Z | 2020-09-15T13:25:58.000Z | // PX2Renderer.inl
//----------------------------------------------------------------------------
inline int Renderer::GetWidth () const
{
return mWidth;
}
//----------------------------------------------------------------------------
inline int Renderer::GetHeight () const
{
return mHeight;
}
//--------------------... | 31.83631 | 86 | 0.450126 | PheonixFoundation |
af567748523f630b8d3278d7f56cc7d0ef2934f2 | 3,653 | cc | C++ | leveldb/util/io_posix.cc | naivewong/timeunion | 8070492d2c6a2d68175e7d026c27b858c2aec8e6 | [
"Apache-2.0"
] | null | null | null | leveldb/util/io_posix.cc | naivewong/timeunion | 8070492d2c6a2d68175e7d026c27b858c2aec8e6 | [
"Apache-2.0"
] | null | null | null | leveldb/util/io_posix.cc | naivewong/timeunion | 8070492d2c6a2d68175e7d026c27b858c2aec8e6 | [
"Apache-2.0"
] | null | null | null | #include "util/io_posix.h"
#include <algorithm>
#include <errno.h>
#include <fcntl.h>
#include <future>
#include <linux/falloc.h>
#include <linux/fs.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/sys... | 22.006024 | 80 | 0.607993 | naivewong |
af5783770d5c282eca5c5eb8feffe07c4126afe6 | 8,308 | cpp | C++ | src/mongo/s/catalog/catalog_manager.cpp | rzh/mongo | f1c7cef21ac01792eb4934893b970f0303a23bca | [
"Apache-2.0"
] | null | null | null | src/mongo/s/catalog/catalog_manager.cpp | rzh/mongo | f1c7cef21ac01792eb4934893b970f0303a23bca | [
"Apache-2.0"
] | null | null | null | src/mongo/s/catalog/catalog_manager.cpp | rzh/mongo | f1c7cef21ac01792eb4934893b970f0303a23bca | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... | 35.504274 | 99 | 0.649735 | rzh |
af5891bdaf4af38f689b58909b68817b2462baa7 | 857 | cpp | C++ | dev/IconSource/PathIconSource.cpp | ZachT1711/microsoft-ui-xaml | b781f9d71051cc41968d2cf22501de227832e74b | [
"MIT"
] | 3,788 | 2019-05-07T02:41:36.000Z | 2022-03-30T12:34:15.000Z | dev/IconSource/PathIconSource.cpp | ZachT1711/microsoft-ui-xaml | b781f9d71051cc41968d2cf22501de227832e74b | [
"MIT"
] | 6,170 | 2019-05-06T21:32:43.000Z | 2022-03-31T23:46:55.000Z | dev/IconSource/PathIconSource.cpp | ZachT1711/microsoft-ui-xaml | b781f9d71051cc41968d2cf22501de227832e74b | [
"MIT"
] | 532 | 2019-05-07T12:15:58.000Z | 2022-03-31T11:36:26.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "pch.h"
#include "common.h"
#include "IconSource.h"
#include "PathIconSource.h"
winrt::IconElement PathIconSource::CreateIconElementCore()
{
... | 25.205882 | 111 | 0.682614 | ZachT1711 |
af58dd217a39669eeccb09954b94c546564e8b0a | 955 | cpp | C++ | src/Privileges.cpp | vexyl/MCHawk2 | 9c69795181c5a59ff6c57c36e77d71623df4db8b | [
"MIT"
] | 5 | 2020-09-02T06:58:15.000Z | 2021-12-26T02:29:35.000Z | src/Privileges.cpp | vexyl/MCHawk2 | 9c69795181c5a59ff6c57c36e77d71623df4db8b | [
"MIT"
] | 10 | 2021-11-23T16:10:38.000Z | 2021-12-30T16:05:52.000Z | src/Privileges.cpp | vexyl/MCHawk2 | 9c69795181c5a59ff6c57c36e77d71623df4db8b | [
"MIT"
] | 1 | 2021-07-13T16:55:53.000Z | 2021-07-13T16:55:53.000Z | #include "../include/Privileges.hpp"
#include <algorithm>
void PrivilegeHandler::GivePrivilege(std::string name, std::string priv)
{
auto iter = m_privs.find(name);
if (iter == m_privs.end()) {
// TODO: error check
m_privs.insert(std::make_pair(name, std::vector { priv }));
}
else {
// TODO: Check if alread... | 22.738095 | 117 | 0.653403 | vexyl |
af5c39f793d2afa67502e2cd8d8dfca3c8bb0987 | 4,149 | cpp | C++ | Libraries/RobsJuceModules/rapt/Unfinished/MiscAudio/BandwidthConverter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | null | null | null | Libraries/RobsJuceModules/rapt/Unfinished/MiscAudio/BandwidthConverter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | null | null | null | Libraries/RobsJuceModules/rapt/Unfinished/MiscAudio/BandwidthConverter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | null | null | null | template<class T>
T rsBandwidthConverter::bandedgesToCenterFrequency(T fl, T fu)
{
return sqrt(fl*fu);
}
template<class T>
T rsBandwidthConverter::bandedgesToAbsoluteBandwidth(T fl, T fu)
{
return fu - fl;
}
template<class T>
T rsBandwidthConverter::relativeBandwidthToBandedgeFactor(T br)
{
return 0.5*br + sqrt... | 35.767241 | 100 | 0.692697 | RobinSchmidt |
af5defc1c825bc5680eab5e811e314bbc2dc0de5 | 404 | cpp | C++ | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | #include "MyTestBenchMonitor.h"
void MyTestBenchMonitor::Display_Patterns()
{
cout << "At time : " << sc_time_stamp();
//next_trigger(TBMonitor_a. | TBMonitor_b | TBMonitor_c);
cout << "\ta = " << TBMonitor_a << "\tb = " << TBMonitor_b << "\tc_in = " << TBMonitor_c;
//next_trigger(TBMonitor_sum | TBMonitor_sum);
... | 33.666667 | 90 | 0.648515 | VSPhaneendraPaluri |
af5dfb203e9dceb2ef6970ffe47f34b30138073b | 17,261 | cpp | C++ | examples/lowlevel/benchmark_map.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | 3 | 2020-02-13T02:08:06.000Z | 2020-10-06T16:26:30.000Z | examples/lowlevel/benchmark_map.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | null | null | null | examples/lowlevel/benchmark_map.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | null | null | null | // Copyright (c) 2007-2020, Grigory Buteyko aka Hrissan
// Licensed under the MIT License. See LICENSE for details.
#include <array>
#include <chrono>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <random>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include... | 33.911591 | 115 | 0.639071 | hrissan |