hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7001321a999a3253859b7b4a42cccf9650bfdc48 | 317 | hpp | C++ | src/scenarios/Scenario.hpp | krenzland/FreeSurfaceLBM | 5619edcf318623c3a4feac478db66663687bca94 | [
"MIT"
] | 8 | 2017-12-12T19:39:29.000Z | 2022-02-03T13:37:53.000Z | src/scenarios/Scenario.hpp | krenzland/FreeSurfaceLBM | 5619edcf318623c3a4feac478db66663687bca94 | [
"MIT"
] | 1 | 2020-07-23T13:51:06.000Z | 2020-07-23T20:16:56.000Z | src/scenarios/Scenario.hpp | krenzland/FreeSurfaceLBM | 5619edcf318623c3a4feac478db66663687bca94 | [
"MIT"
] | 3 | 2019-05-09T07:50:48.000Z | 2020-11-05T12:28:43.000Z | #ifndef CFD_LAB_SCENARIO_HPP
#define CFD_LAB_SCENARIO_HPP
#include <LBDefinitions.hpp>
#include <vector>
class Scenario {
public:
// Initialises the flag field without the boundary layer.
virtual void getFlagField(std::vector<flag_t> &flags, const coord_t &length) = 0;
};
#endif // CFD_LAB_SCENARIO_HPP
| 22.642857 | 85 | 0.757098 | krenzland |
700642d1feb9837154b2b118393b5b194cdb7b1d | 2,102 | cpp | C++ | addons/main/config.cpp | johnb432/Weapons-Balance-Broma | cb5c1664fce2147bcf1ca22fd2ace0ab106bc622 | [
"MIT"
] | null | null | null | addons/main/config.cpp | johnb432/Weapons-Balance-Broma | cb5c1664fce2147bcf1ca22fd2ace0ab106bc622 | [
"MIT"
] | null | null | null | addons/main/config.cpp | johnb432/Weapons-Balance-Broma | cb5c1664fce2147bcf1ca22fd2ace0ab106bc622 | [
"MIT"
] | null | null | null | #include "script_component.hpp"
class CfgPatches {
class ADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"BRM_MODELS",
"BRM_REQUIRED",
"BRM_AOR",
"BRM_ATACS"... | 24.44186 | 66 | 0.505233 | johnb432 |
700e3af0d5ed77b32a50b03afa6b6e4a48649c7c | 69 | cpp | C++ | src/views/home/Register.cpp | HadesD/LaraCC | cb4e52bb87c777042e68e54a52be73a1a1e3abbd | [
"MIT"
] | null | null | null | src/views/home/Register.cpp | HadesD/LaraCC | cb4e52bb87c777042e68e54a52be73a1a1e3abbd | [
"MIT"
] | null | null | null | src/views/home/Register.cpp | HadesD/LaraCC | cb4e52bb87c777042e68e54a52be73a1a1e3abbd | [
"MIT"
] | null | null | null | #include "views/home/Register.hpp"
namespace app::views::home
{
}
| 8.625 | 34 | 0.695652 | HadesD |
7012845aa51b6f140bb3034e1030da24708a5259 | 2,810 | cpp | C++ | JEngine/src/JEngine/Renderer/Camera/ProjectiveCameraController.cpp | peter-819/JEngine | f4362cdaa5e781e3a973cf84b604bd055b1b3880 | [
"Apache-2.0"
] | 1 | 2020-06-01T05:24:16.000Z | 2020-06-01T05:24:16.000Z | JEngine/src/JEngine/Renderer/Camera/ProjectiveCameraController.cpp | peter-819/JEngine | f4362cdaa5e781e3a973cf84b604bd055b1b3880 | [
"Apache-2.0"
] | null | null | null | JEngine/src/JEngine/Renderer/Camera/ProjectiveCameraController.cpp | peter-819/JEngine | f4362cdaa5e781e3a973cf84b604bd055b1b3880 | [
"Apache-2.0"
] | null | null | null | #include "JEpch.h"
#include "ProjectiveCameraController.h"
#include "JEngine/Core/Input.h"
#include "JEngine/Events/keycode.h"
#include "gtx/transform.hpp"
namespace JEngine {
void ProjectiveCameraController::OnUpdate(float ts) {
glm::vec3 delta(0.0f, 0.0f, 0.0f);
float speed = 10.0f * ts;
if (Input::IsKeyPres... | 33.058824 | 158 | 0.733096 | peter-819 |
70153cad9afda42d2ea523f8f4d799bf02f506ff | 3,227 | cpp | C++ | tests/mongo_agent_nice.cpp | yokkidack/mongo-juice | fc4784fe29ef4c871ce0acfb02d0cfbd79c99723 | [
"MIT",
"Unlicense"
] | null | null | null | tests/mongo_agent_nice.cpp | yokkidack/mongo-juice | fc4784fe29ef4c871ce0acfb02d0cfbd79c99723 | [
"MIT",
"Unlicense"
] | null | null | null | tests/mongo_agent_nice.cpp | yokkidack/mongo-juice | fc4784fe29ef4c871ce0acfb02d0cfbd79c99723 | [
"MIT",
"Unlicense"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <sstream>
#include <string>
#include <typeinfo>
#include <fstream>
#include "mongo_agent_nice.hpp"
TEST_CASE("Length test 0 - get_random_string")
{
int length = 0;
std::string a{ get_random_string(length) };
REQUIRE(a.length() == length);
}
TEST_C... | 23.215827 | 85 | 0.671212 | yokkidack |
7017dccdf3c7520123225c32ac1a00b754273464 | 341 | cpp | C++ | tests/testutil/unix/TestFileUtilImpl.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 147 | 2017-10-05T01:42:02.000Z | 2022-01-21T08:15:05.000Z | tests/testutil/unix/TestFileUtilImpl.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 20 | 2018-05-17T01:55:16.000Z | 2021-04-20T07:27:00.000Z | tests/testutil/unix/TestFileUtilImpl.cpp | commshare/easyhttpcpp | 757ec75679c1cbc5f04c81a30133f4bcd3e780f4 | [
"MIT"
] | 32 | 2018-05-05T13:04:34.000Z | 2022-03-25T16:57:11.000Z | /*
* Copyright 2017 Sony Corporation
*/
#include "TestFileUtil.h"
#include "TestFileUtilImpl.h"
namespace easyhttpcpp {
namespace testutil {
void TestFileUtilImpl::changeAccessPermission(const std::string& absolutePath, unsigned int mode)
{
chmod(absolutePath.c_str(), mode);
}
} /* namespace testutil */
} /* name... | 20.058824 | 97 | 0.747801 | commshare |
701e44d3d46a04037f972f49f7574d65a7abe333 | 813 | cpp | C++ | src/lua/luadebug.cpp | hodgman/eight | b3ade9ad355e47bcc853c087d670b55b33933ccb | [
"Unlicense",
"MIT"
] | 9 | 2016-04-24T16:57:15.000Z | 2018-12-08T05:52:21.000Z | src/lua/luadebug.cpp | hodgman/eight | b3ade9ad355e47bcc853c087d670b55b33933ccb | [
"Unlicense",
"MIT"
] | null | null | null | src/lua/luadebug.cpp | hodgman/eight | b3ade9ad355e47bcc853c087d670b55b33933ccb | [
"Unlicense",
"MIT"
] | null | null | null | #include "eight/core/alloc/scope.h"
#include "eight/core/alloc/new.h"
#include "eight/lua/lua.h"
#include "eight/lua/lua_api.h"
#include "tilde/LuaHostWindows.h"
#include "tilde/LuaDebuggerComms.h"
#include "stdio.h"
#include "string.h"
using namespace eight;
using namespace tilde;
Tilde* Tilde::New(Scope& a, int por... | 25.40625 | 80 | 0.659287 | hodgman |
7020604b96929afb1ea072093d651a6242d16cde | 311 | cpp | C++ | 11047.cpp | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | 11047.cpp | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | 11047.cpp | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main(void)
{
int arr[10];
int N, K, cnt = 0;
cin >> N >> K;
for (int i = 0; i < N; i++)
cin >> arr[i];
for (int i = N - 1; i >= 0; i--)
{
int div = K / arr[i];
if (div > 0)
{
cnt += div;
K %= arr[i];
}
}
cout << cnt << endl;
return 0;
} | 11.961538 | 33 | 0.453376 | programmer-k |
70218d66e0d48b476754ffab6153b7d93a900135 | 914 | cpp | C++ | tools/level_editor/src/scene/callbacks/StandardMouseEventHandler.cpp | filipwasil/fillwave | 65f5eeebf8ca4a8ce2d25293874b051c2a4c0550 | [
"MIT"
] | 27 | 2015-09-26T23:29:48.000Z | 2021-03-06T08:54:46.000Z | tools/level_editor/src/scene/callbacks/StandardMouseEventHandler.cpp | filipwasil/fillwave | 65f5eeebf8ca4a8ce2d25293874b051c2a4c0550 | [
"MIT"
] | 83 | 2015-09-28T22:20:16.000Z | 2018-05-16T13:25:28.000Z | tools/level_editor/src/scene/callbacks/StandardMouseEventHandler.cpp | filipwasil/fillwave | 65f5eeebf8ca4a8ce2d25293874b051c2a4c0550 | [
"MIT"
] | 8 | 2015-11-03T22:29:29.000Z | 2018-11-17T08:49:07.000Z | #include "StandardMouseEventHandler.h"
#include <QMouseEvent>
namespace scene {
namespace callbacks {
StandardMouseEventHandler::StandardMouseEventHandler(QTreeView* tree, QObject* parent)
: QObject(parent)
, mTree(tree) {
}
bool StandardMouseEventHandler::eventFilter(QObject* watched, QEvent* event) {
if (eve... | 27.69697 | 86 | 0.703501 | filipwasil |
70288ebd436a8b3ee315aae9898ab4a1f62de1ea | 2,149 | hpp | C++ | course/include/isometry/matrix3.hpp | stevendes/cppl1_q12020 | 3795e6b07c28965ec2c020cd4e3d6743e756f158 | [
"Apache-2.0"
] | null | null | null | course/include/isometry/matrix3.hpp | stevendes/cppl1_q12020 | 3795e6b07c28965ec2c020cd4e3d6743e756f158 | [
"Apache-2.0"
] | 3 | 2020-09-04T22:20:15.000Z | 2020-11-05T12:21:38.000Z | course/include/isometry/matrix3.hpp | stevendes/cppl1_q12020 | 3795e6b07c28965ec2c020cd4e3d6743e756f158 | [
"Apache-2.0"
] | null | null | null | /*
* Vector library
* Author: Agustin Alba Chicar, 2019
* Author: Gerardo Puga, 2020
* Author: Steven Desvars, 2020
*/
#pragma once
#include <isometry/vector3.hpp>
#include <iomanip>
#include <sstream>
namespace ekumen {
namespace math {
class Matrix3 {
public:
/// Constructs a Matrix3.
/// @param values ... | 27.202532 | 68 | 0.711959 | stevendes |
702b09e79f1c08585c5fc843dcdff61a5cb7402c | 30 | cpp | C++ | sources/complex_t.cpp | yanaxgrishkova/insertion_sort | 86cb607ba7931cbcf4a79a262a4ec1f97b3f22af | [
"MIT"
] | null | null | null | sources/complex_t.cpp | yanaxgrishkova/insertion_sort | 86cb607ba7931cbcf4a79a262a4ec1f97b3f22af | [
"MIT"
] | null | null | null | sources/complex_t.cpp | yanaxgrishkova/insertion_sort | 86cb607ba7931cbcf4a79a262a4ec1f97b3f22af | [
"MIT"
] | null | null | null | #include "insertion_sort.hpp"
| 15 | 29 | 0.8 | yanaxgrishkova |
702c912599b397936808c07ce314980ebf6f9c2e | 521 | cpp | C++ | Framework/Common/BaseApplication.cpp | jjyy4sun/SaberEngine | 5e9411c42fab33d4caafc4dfe8caa69bf326d5d4 | [
"MIT"
] | null | null | null | Framework/Common/BaseApplication.cpp | jjyy4sun/SaberEngine | 5e9411c42fab33d4caafc4dfe8caa69bf326d5d4 | [
"MIT"
] | null | null | null | Framework/Common/BaseApplication.cpp | jjyy4sun/SaberEngine | 5e9411c42fab33d4caafc4dfe8caa69bf326d5d4 | [
"MIT"
] | null | null | null | #include "BaseApplication.hpp"
#include <GraphicsManager.hpp>
//Parse command lilne ,read configuration,initialize all sub modules
int Saber::BaseApplication::Initialize()
{
m_bQuit = false;
GraphicsManager& graph = GraphicsManager::getInstance();
return 0;
}
//Finalize all sub modules and clean up all run... | 20.038462 | 68 | 0.737044 | jjyy4sun |
702ed1d776a9309ecf0898a2c705fd850bc5956b | 2,919 | cpp | C++ | snippets/cpp/VS_Snippets_CLR_System/system.String.Class/cpp/string.index3.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-02-22T09:30:21.000Z | 2021-08-02T23:44:31.000Z | snippets/cpp/VS_Snippets_CLR_System/system.String.Class/cpp/string.index3.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR_System/system.String.Class/cpp/string.index3.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z | // String.Index3.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
// <Snippet6>
using namespace System;
using namespace System::Collections::Generic;
using namespace System::Globalization;
void main()
{
// First sentence of The Mystery of the Yellow Room, by Leroux.
String^ op... | 36.4875 | 108 | 0.377869 | BohdanMosiyuk |
7032af31b1151fda8ba62dd1d1382230005993b5 | 6,593 | cpp | C++ | testapp/scenes/general/dcollidescene.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | 6 | 2015-12-08T05:38:03.000Z | 2021-04-09T13:45:59.000Z | testapp/scenes/general/dcollidescene.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | testapp/scenes/general/dcollidescene.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2007 by the members of PG 510, University of Dortmund: *
* d-collide-devel@lists.sourceforge.net *
*
* Andreas Beckermann, Christian Bode, Marcel Ens, Sebastian Ens, ... | 40.950311 | 128 | 0.610648 | ColinGilbert |
70368b0ad8111769b7a708eac3084c96eb09646e | 494 | cpp | C++ | FileParse/ModelFileParse/modelfileparse.cpp | xubenhao/VisualAlgorithm | 5fc45d9a4fc58569953fe3d880517adcd2fb0881 | [
"Apache-2.0"
] | 1 | 2021-01-29T02:12:53.000Z | 2021-01-29T02:12:53.000Z | FileParse/ModelFileParse/modelfileparse.cpp | xubenhao/VisualAlgorithm | 5fc45d9a4fc58569953fe3d880517adcd2fb0881 | [
"Apache-2.0"
] | null | null | null | FileParse/ModelFileParse/modelfileparse.cpp | xubenhao/VisualAlgorithm | 5fc45d9a4fc58569953fe3d880517adcd2fb0881 | [
"Apache-2.0"
] | null | null | null | // Author : XuBenHao
// Version : 1.0.0
// Mail : xbh370970843@163.com
// Copyright : XuBenHao 2020 - 2030
#include "modelfileparse.h"
namespace NFileParse
{
ModelFileParse::ModelFileParse(QObject *parent) : FileParse(parent)
{
}
/*FILE_PARSE_RET_CODE ModelFileParse::Parse(
... | 20.583333 | 71 | 0.609312 | xubenhao |
703ade841df8fb78d541c9560f0ba81046337dc3 | 3,152 | cpp | C++ | src/ui/legendprinterspreadjob.cpp | hrxcodes/cbftp | bf2784007dcc4cc42775a2d40157c51b80383f81 | [
"MIT"
] | 8 | 2019-04-30T00:37:00.000Z | 2022-02-03T13:35:31.000Z | src/ui/legendprinterspreadjob.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 2 | 2019-11-19T12:46:13.000Z | 2019-12-20T22:13:57.000Z | src/ui/legendprinterspreadjob.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 9 | 2020-01-15T02:38:36.000Z | 2022-02-15T20:05:20.000Z | #include "legendprinterspreadjob.h"
#include "../race.h"
#include "../util.h"
#include "../globalcontext.h"
#include "../engine.h"
#include "menuselectadjustableline.h"
#include "menuselectoptiontextbutton.h"
#include "ui.h"
LegendPrinterSpreadJob::LegendPrinterSpreadJob(Ui * ui, unsigned int id) : ui(ui), jobfinis... | 32.494845 | 109 | 0.675444 | hrxcodes |
703f206bc1ec6a69b0d1fef937db69b68c5443e8 | 1,742 | cpp | C++ | gym/102416/D.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | 1 | 2021-07-16T19:59:39.000Z | 2021-07-16T19:59:39.000Z | gym/102416/D.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | gym/102416/D.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
const int oo = 0x3f3f3f3f;
const double eps = 1e-9;
int gauss(vector<vector<double>> a, vector<double> &ans)
{
int n = (int) a.size();
int m = (int) a[0].size() - 1;
vector<int> where(m, -1);
fo... | 17.77551 | 57 | 0.470149 | albexl |
7040e76f3a83b0c29038548bf0de36f89b120b25 | 5,635 | cpp | C++ | src/util.cpp | YaweiZhao/hybrid_svrg | f576e46f1169909f64692977fb1e68181533f4f0 | [
"MIT"
] | null | null | null | src/util.cpp | YaweiZhao/hybrid_svrg | f576e46f1169909f64692977fb1e68181533f4f0 | [
"MIT"
] | null | null | null | src/util.cpp | YaweiZhao/hybrid_svrg | f576e46f1169909f64692977fb1e68181533f4f0 | [
"MIT"
] | null | null | null | #include<iostream>
#include "util.h"
#include <cstring>
#include <unordered_map>
#include <sstream>
#include <fstream>
using namespace std;
namespace multiverso
{
namespace hybrid_logistic_regression
{
Option::Option()
{
do_dense = false;
do_sparse = false; ... | 36.590909 | 91 | 0.491393 | YaweiZhao |
7041b474a2358b710255a247c87c5b8c2e5c0e07 | 1,546 | cpp | C++ | Sort/BubbleSort.cpp | LeeInJae/DS | 9290b26b7410f8dcd2311a60992cbfca01e3e040 | [
"MIT"
] | null | null | null | Sort/BubbleSort.cpp | LeeInJae/DS | 9290b26b7410f8dcd2311a60992cbfca01e3e040 | [
"MIT"
] | null | null | null | Sort/BubbleSort.cpp | LeeInJae/DS | 9290b26b7410f8dcd2311a60992cbfca01e3e040 | [
"MIT"
] | null | null | null | //
// Created by cowspirit on 2019-06-20.
//
#include "BubbleSort.h"
void BubbleSort::Sort() {
for (int i = 0; i < data_.size() - 1; ++i) {
int exchange_count = 0;
for (int j = data_.size() - 1; j > i; --j) {
if (data_[j - 1] > data_[j]) {
std::swap(data_[j - 1], data_[... | 24.935484 | 66 | 0.449547 | LeeInJae |
704bd697a28dfcb13583071b398466bfd60ef5db | 1,842 | cp | C++ | 673.cp | JazzikPeng/UVa_Algorithm_CPP | 5de29ebc44ae8dd94b767fd5815309e5eaa7c8bf | [
"MIT"
] | null | null | null | 673.cp | JazzikPeng/UVa_Algorithm_CPP | 5de29ebc44ae8dd94b767fd5815309e5eaa7c8bf | [
"MIT"
] | null | null | null | 673.cp | JazzikPeng/UVa_Algorithm_CPP | 5de29ebc44ae8dd94b767fd5815309e5eaa7c8bf | [
"MIT"
] | null | null | null | //Zhejian Peng
#include <stdio.h>
char arr[129];
int main() {
unsigned tc;
unsigned ch;
scanf("%u", &tc);
getchar();
while(tc--)
{
bool flag = true;
int num1=0,num2=0,num3=0,num4=0;
// int checker = -1;
while((ch=getchar())!='\n')
{
if(ch == ... | 18.989691 | 53 | 0.295874 | JazzikPeng |
704cd249054e71136d2650b75e5b4ff23c34a245 | 1,609 | cpp | C++ | HideousGameEngine/src/Main/HideousGame.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-09-13T18:18:07.000Z | 2019-09-13T18:18:07.000Z | HideousGameEngine/src/Main/HideousGame.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | null | null | null | HideousGameEngine/src/Main/HideousGame.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-11-21T06:32:56.000Z | 2019-11-21T06:32:56.000Z | //
// HideousGame.cpp
// HideousGameEngine
//
// Created by Sid on 15/06/13.
// Copyright (c) 2013 whackylabs. All rights reserved.
//
#include <he/Main/HideousGame.h>
#include <he/Animation/AnimationLoop.h>
#include <he/Utils/Utils.h>
#include <he/Utils/DebugHelper.h>
#include <he/Animation/AnimationLoop.h>
#inc... | 20.1125 | 80 | 0.702921 | chunkyguy |
704d7aa86a57cbcb8f31c76b2789e3565608209f | 4,524 | cpp | C++ | graph/symbol_graph/symbol_graph.cpp | fedom/Algorithms | 94f9c80c7425d4739be8fb67292deb6b8bb78cc2 | [
"MIT"
] | null | null | null | graph/symbol_graph/symbol_graph.cpp | fedom/Algorithms | 94f9c80c7425d4739be8fb67292deb6b8bb78cc2 | [
"MIT"
] | null | null | null | graph/symbol_graph/symbol_graph.cpp | fedom/Algorithms | 94f9c80c7425d4739be8fb67292deb6b8bb78cc2 | [
"MIT"
] | null | null | null | #include "symbol_graph.h"
#include "common/utils.h"
#include <iostream>
#include <fstream>
#include <cassert>
#include <set>
namespace graph {
bool SymbolGraph::Load(const char *file_name) {
const char *delims = " ";
std::ifstream ifs(file_name, std::ios_base::in);
if (!ifs) {
std::cout << fi... | 22.507463 | 96 | 0.523873 | fedom |
70529226418ff2bf3815fd26b0fd5fc686884e78 | 1,571 | hpp | C++ | fallen/Editor/Headers/Editor.hpp | inco1/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 188 | 2017-05-20T03:26:33.000Z | 2022-03-10T16:58:39.000Z | fallen/Editor/Headers/Editor.hpp | dizzy2003/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 7 | 2017-05-28T14:28:13.000Z | 2022-01-09T01:47:38.000Z | fallen/Editor/Headers/Editor.hpp | inco1/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 43 | 2017-05-20T07:31:32.000Z | 2022-03-09T18:39:35.000Z | // Editor.hpp
// Guy Simmons, 18th February 1997.
#ifndef THE_EDITOR_HPP
#define THE_EDITOR_HPP
#ifdef __WINDOWS_386__
#pragma warning 389 9
#endif
#include "EditorLib.h"
#pragma warning( disable : 4244)
#include "Alert.hpp"
#include "Anim.h"
//#include "building.hpp"
#include "Controls.hpp"
#include "CtrlSet.hpp"
... | 21.22973 | 52 | 0.742202 | inco1 |
70563a3437b29ceeb569dfaa2ef903e69ee1c559 | 4,543 | cpp | C++ | VST3 SDK/vstgui4/vstgui/tests/unittest/uidescription/uiviewcreator/ccontrolcreator_test.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 2 | 2019-06-14T10:20:30.000Z | 2020-02-19T17:53:42.000Z | VST3 SDK/vstgui4/vstgui/tests/unittest/uidescription/uiviewcreator/ccontrolcreator_test.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | null | null | null | VST3 SDK/vstgui4/vstgui/tests/unittest/uidescription/uiviewcreator/ccontrolcreator_test.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 1 | 2021-03-16T13:02:17.000Z | 2021-03-16T13:02:17.000Z | //-----------------------------------------------------------------------------
// VST Plug-Ins SDK
// VSTGUI: Graphical User Interface Framework for VST plugins
//
// Version 4.3
//
//-----------------------------------------------------------------------------
// VSTGUI LICENSE
// (c) 2015, Steinberg Media Technologi... | 35.217054 | 96 | 0.651332 | jagilley |
70580528673b11dc915189eeb0feb92633954a83 | 2,254 | cpp | C++ | src/flexasio/FlexASIO/portaudio.cpp | ThreeDeeJay/FlexASIO | 0419da5f409b59b19f82d2fdf31f7202cd4d88a4 | [
"MIT"
] | 603 | 2015-05-10T04:13:10.000Z | 2022-03-30T14:27:59.000Z | src/flexasio/FlexASIO/portaudio.cpp | ThreeDeeJay/FlexASIO | 0419da5f409b59b19f82d2fdf31f7202cd4d88a4 | [
"MIT"
] | 148 | 2017-04-09T13:26:01.000Z | 2022-03-26T10:23:26.000Z | src/flexasio/FlexASIO/portaudio.cpp | koord-live/KoordASIO | 8c61017a98c2abebc00cac2d1919a1edb387e01b | [
"MIT"
] | 51 | 2016-08-11T16:41:11.000Z | 2022-03-28T14:24:30.000Z | #include "portaudio.h"
#include "log.h"
#include "../FlexASIOUtil/portaudio.h"
namespace flexasio {
void StreamDeleter::operator()(PaStream* stream) throw() {
Log() << "Closing PortAudio stream " << stream;
const auto error = Pa_CloseStream(stream);
if (error != paNoError)
Log() << "Unable to close PortAud... | 47.957447 | 234 | 0.702307 | ThreeDeeJay |
705c896926a42a0c72b904e158611b91ad41ab60 | 5,920 | cpp | C++ | src/ui/widgets/Slider.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 65 | 2018-06-03T23:09:46.000Z | 2021-07-22T22:03:34.000Z | src/ui/widgets/Slider.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 8 | 2018-06-20T17:21:30.000Z | 2020-06-30T01:06:26.000Z | src/ui/widgets/Slider.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/Slider.h"
#include "Vorb/ui/MouseInputDispatcher.h"
#include "Vorb/ui/UIRenderer.h"
#include "Vorb/ui/widgets/Viewport.h"
#include "Vorb/utils.h"
vui::Slider::Slider() :
Widget(),
m_barColor(color::LightGray),
m_slideColor(color::DarkGray),
m_slideHove... | 26.547085 | 179 | 0.642061 | ChillstepCoder |
705fb4576f722daee2167296130960cef5e42b0d | 969 | cpp | C++ | src/Layers/LayerStack.cpp | PurpleAzurite/cnn_probe | 63d72e56fdb643bf42fa7f7b8168b781979d631f | [
"Apache-2.0"
] | null | null | null | src/Layers/LayerStack.cpp | PurpleAzurite/cnn_probe | 63d72e56fdb643bf42fa7f7b8168b781979d631f | [
"Apache-2.0"
] | null | null | null | src/Layers/LayerStack.cpp | PurpleAzurite/cnn_probe | 63d72e56fdb643bf42fa7f7b8168b781979d631f | [
"Apache-2.0"
] | null | null | null | // clang-format off
#include "LayerStack.h"
#include <algorithm>
// clang-format on
namespace Engine {
LayerStack::LayerStack()
: m_insertionItr(m_layers.begin())
{
}
LayerStack::~LayerStack()
{
for (auto* l : m_layers)
l->onDetach();
}
void LayerStack::pushLayer(Layer* layer)
{
m_insertionItr =... | 19 | 95 | 0.637771 | PurpleAzurite |
7062c773859fbc9b62985fc0c9b1d75798ed81f4 | 1,036 | cpp | C++ | find_span_of_an_array.cpp | Rohan1412/Data-Structures-and-Algorithms-in-cpp | df0a2cb76a6c8ce31380f872976fb617d455d580 | [
"MIT"
] | 354 | 2020-09-24T10:59:33.000Z | 2022-03-22T10:28:35.000Z | find_span_of_an_array.cpp | Rohan1412/Data-Structures-and-Algorithms-in-cpp | df0a2cb76a6c8ce31380f872976fb617d455d580 | [
"MIT"
] | 503 | 2020-09-24T04:27:51.000Z | 2022-03-31T04:51:40.000Z | find_span_of_an_array.cpp | Rohan1412/Data-Structures-and-Algorithms-in-cpp | df0a2cb76a6c8ce31380f872976fb617d455d580 | [
"MIT"
] | 393 | 2020-09-24T08:50:55.000Z | 2022-03-25T22:36:50.000Z | #include <iostream>
using namespace std;
void calculate_span(int* inputArrayPtr, int inputArraySize, int* outputArrayPtr) {
outputArrayPtr[0] = 1;
int i, counter;
for (i = 1; i < inputArraySize; i++) {
counter = 1;
while ((i - counter) >= 0 && inputArrayPtr[i] >= inputArrayPtr[i - counter])
counter += output... | 24.093023 | 82 | 0.633205 | Rohan1412 |
7063651336138dd6343dc28181530658abfeba5c | 1,846 | cpp | C++ | sw/flashTest/main.cpp | agra-uni-bremen/fdl21-stackuse-vp | 9c8be7a3534cdd8ed8b8fbce7be740fc16807876 | [
"MIT"
] | 72 | 2018-06-19T14:22:30.000Z | 2022-03-23T06:38:52.000Z | sw/flashTest/main.cpp | agra-uni-bremen/fdl21-stackuse-vp | 9c8be7a3534cdd8ed8b8fbce7be740fc16807876 | [
"MIT"
] | 16 | 2020-06-19T12:00:13.000Z | 2022-03-24T16:27:15.000Z | sw/flashTest/main.cpp | agra-uni-bremen/fdl21-stackuse-vp | 9c8be7a3534cdd8ed8b8fbce7be740fc16807876 | [
"MIT"
] | 36 | 2018-08-14T12:18:36.000Z | 2022-03-26T17:27:00.000Z | #include <inttypes.h>
#include <string.h>
#include <iostream>
// From flash.h
static constexpr unsigned int BLOCKSIZE = 512;
static constexpr unsigned int FLASH_ADDR_REG = 0;
static constexpr unsigned int FLASH_SIZE_REG = sizeof(uint64_t);
static constexpr unsigned int DATA_ADDR = FLASH_SIZE_REG + sizeof(uint64_t);
//... | 31.827586 | 106 | 0.725352 | agra-uni-bremen |
7067107fbe0176ba64575bf7d8fe636de7fe2be4 | 2,952 | cpp | C++ | Atcoder/aising2019/a.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | Atcoder/aising2019/a.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null | Atcoder/aising2019/a.cpp | SuperPuperMegaUltraEpicGoldenHacker/Competetive-Programming | ab1ca0d0d2187b561750d547e155e768951d29a0 | [
"MIT"
] | null | null | null |
# include <bits/stdc++.h>
# define x first
# define y second
# define mp make_pair
// everything goes according to my plan
# define pb push_back
# define sz(a) (int)(a.size())
# define vec vector
// shimkenttin kyzdary, dzyn, dzyn, dzyn...
# define y1 Y_U_NO_y1
# define left Y_U_NO_left
# define right Y_U_NO_rig... | 19.549669 | 68 | 0.45122 | SuperPuperMegaUltraEpicGoldenHacker |
70689d860c3535f4d16342fe6346fa8672258e1f | 18,428 | hpp | C++ | SDK/ARKSurvivalEvolved_FPV_Drill_AnimBP_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_FPV_Drill_AnimBP_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_FPV_Drill_AnimBP_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_FPV_Drill_AnimBP_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//--------------------------------------------------------... | 121.236842 | 231 | 0.631322 | 2bite |
0ad653a39aae4d4f95db13ffd796312917e91e0c | 4,927 | cpp | C++ | src/application/Manipulator/Simple3DManipulator.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | src/application/Manipulator/Simple3DManipulator.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | src/application/Manipulator/Simple3DManipulator.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | #include <vector>
#include <glm/gtx/transform.hpp>
#include <glm/vec2.hpp>
#include <mtt/application/Manipulator/Simple3DManipulator.h>
#include <mtt/application/Application.h>
#include <mtt/render/SceneGraph/CameraNode.h>
#include <mtt/utilities/Log.h>
#include <mtt/utilities/Segment.h>
using namespace mtt;
Simple... | 29.860606 | 80 | 0.6507 | AluminiumRat |
0ad72489ea16e5369fd12df04d8f6799c236514d | 12,865 | cpp | C++ | Sources/Sapphire/compute/dense/naive/Conv2D.cpp | jwkim98/Motutapu | f494d23953a18be1aba3261c8e79392f96a140ef | [
"MIT"
] | 1 | 2021-01-11T18:14:04.000Z | 2021-01-11T18:14:04.000Z | Sources/Sapphire/compute/dense/naive/Conv2D.cpp | jlee335/Sapphire | f494d23953a18be1aba3261c8e79392f96a140ef | [
"MIT"
] | 3 | 2020-12-31T13:21:00.000Z | 2021-04-28T09:51:33.000Z | Sources/Sapphire/compute/dense/naive/Conv2D.cpp | jlee335/Sapphire | f494d23953a18be1aba3261c8e79392f96a140ef | [
"MIT"
] | 2 | 2020-12-31T06:29:54.000Z | 2021-01-11T18:14:23.000Z | // Copyright (c) 2021, Justin Kim
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <cassert>
#include <memory>
#include <Sapphire/compute/dense/naive/Conv2D.hpp>
#include <Sa... | 40.329154 | 79 | 0.527789 | jwkim98 |
0adb8b1e16dae807204c4aa76826793fddecf8a5 | 11,967 | cpp | C++ | UnitTests/FoundationTest/Containers/SetTest.cpp | Manuzor/ezEngine | 876ad33ef21c6b986bb9bb333b2a3cbfed2be5ef | [
"CC-BY-3.0"
] | null | null | null | UnitTests/FoundationTest/Containers/SetTest.cpp | Manuzor/ezEngine | 876ad33ef21c6b986bb9bb333b2a3cbfed2be5ef | [
"CC-BY-3.0"
] | null | null | null | UnitTests/FoundationTest/Containers/SetTest.cpp | Manuzor/ezEngine | 876ad33ef21c6b986bb9bb333b2a3cbfed2be5ef | [
"CC-BY-3.0"
] | null | null | null | #include <PCH.h>
#include <Foundation/Containers/Set.h>
typedef ezConstructionCounter st;
EZ_CREATE_SIMPLE_TEST(Containers, Set)
{
EZ_TEST_BLOCK(ezTestBlock::Enabled, "Constructor")
{
ezSet<ezUInt32> m;
ezSet<st, ezUInt32> m2;
ezSet<st, st> m3;
}
EZ_TEST_BLOCK(ezTestBlock::Enabled, "IsEmpty")
{... | 22.96929 | 98 | 0.592546 | Manuzor |
0ae48dd02e821611e80ac1efedfbd70ae26e5641 | 2,580 | cpp | C++ | aws-cpp-sdk-transcribe/source/model/OutputLocationType.cpp | ploki/aws-sdk-cpp | 17074e3e48c7411f81294e2ee9b1550c4dde842c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-transcribe/source/model/OutputLocationType.cpp | ploki/aws-sdk-cpp | 17074e3e48c7411f81294e2ee9b1550c4dde842c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-transcribe/source/model/OutputLocationType.cpp | ploki/aws-sdk-cpp | 17074e3e48c7411f81294e2ee9b1550c4dde842c | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 31.851852 | 92 | 0.663953 | ploki |
0aea57aaf8c5270fe290085ceb2b9bb6b68ea6c1 | 4,715 | cpp | C++ | Engine/Platform/Windows/Windows_PlatformHandler.cpp | minimpoun/MARS | b989e173bc401ce382a4f1a5bbcc36389e3d5969 | [
"Apache-2.0"
] | null | null | null | Engine/Platform/Windows/Windows_PlatformHandler.cpp | minimpoun/MARS | b989e173bc401ce382a4f1a5bbcc36389e3d5969 | [
"Apache-2.0"
] | null | null | null | Engine/Platform/Windows/Windows_PlatformHandler.cpp | minimpoun/MARS | b989e173bc401ce382a4f1a5bbcc36389e3d5969 | [
"Apache-2.0"
] | null | null | null | #include "Windows_PlatformHandler.h"
#include "Core/Events/ApplicationEvent.h"
#include "Core/Events/MouseEvent.h"
#include "Core/Events/KeyEvent.h"
#include "Rendering/OpenGL/OpenGLContext.h"
#include "GLFW/glfw3.h"
static bool s_bGLFWInit = false;
namespace MARS
{
Windows_PlatformHandler::Windows_PlatformHandler(... | 24.815789 | 125 | 0.718558 | minimpoun |
0aeb1f95da187cacb0b1c1922862f67539ca8f72 | 1,698 | cpp | C++ | axProjects/SoundEditor/axVolumeMeter.cpp | alxarsenault/axLib-1 | aff63abebff118059d5daca80f06cc8464192c6d | [
"MIT"
] | 1 | 2019-10-15T05:09:34.000Z | 2019-10-15T05:09:34.000Z | axProjects/SoundEditor/axVolumeMeter.cpp | EQ4/axLib | aff63abebff118059d5daca80f06cc8464192c6d | [
"MIT"
] | null | null | null | axProjects/SoundEditor/axVolumeMeter.cpp | EQ4/axLib | aff63abebff118059d5daca80f06cc8464192c6d | [
"MIT"
] | 1 | 2021-12-18T06:30:51.000Z | 2021-12-18T06:30:51.000Z | //
// axVolumeMeter.cpp
// MidiSequencer
//
// Created by Alexandre Arsenault on 2014-11-17.
// Copyright (c) 2014 Alexandre Arsenault. All rights reserved.
//
#include "axVolumeMeter.h"
axVolumeMeter::axVolumeMeter(axWindow* parent,
const axRect& rect,
// const axToolBarE... | 25.343284 | 137 | 0.548292 | alxarsenault |
0aecf98e9ba2e35b744dab9c89068dd36e7a36a8 | 497 | cpp | C++ | 3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/Region_Size.cpp | ratiotile/StardustDevEnvironment | 15c512b81579d8bd663db3fa8e0847d4c27f17e8 | [
"MIT"
] | 8 | 2020-09-29T17:11:15.000Z | 2022-01-29T20:41:33.000Z | 3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/Region_Size.cpp | ratiotile/StardustDevEnvironment | 15c512b81579d8bd663db3fa8e0847d4c27f17e8 | [
"MIT"
] | 1 | 2021-03-08T17:43:05.000Z | 2021-03-09T06:35:04.000Z | 3rdparty/openbw/bwapi/bwapi/BWScriptEmulator/Region_Size.cpp | ratiotile/StardustDevEnvironment | 15c512b81579d8bd663db3fa8e0847d4c27f17e8 | [
"MIT"
] | 1 | 2021-03-01T04:31:30.000Z | 2021-03-01T04:31:30.000Z | #include "Region_Size.h"
#include <tuple>
using namespace AISCRIPT;
IMPLEMENT(Region_Size);
bool Region_Size::execute(aithread &thread) const
{
// Retrieve parameters
BYTE bSize;
WORD wOffset;
thread.readTuple( std::tie(bSize, wOffset) );
// @TODO: Region::getTileCount
// if ( this->pTown->RegionSize() ... | 21.608696 | 78 | 0.688129 | ratiotile |
0af139b64c9c1dbf2775c841eb77adf2ab1ac6c6 | 2,329 | cc | C++ | cartographer/io/draw_trajectories.cc | laotie/cartographer | b8228ee6564f5a7ad0d6d0b9a30516521cff2ee9 | [
"Apache-2.0"
] | 5,196 | 2016-08-04T14:52:31.000Z | 2020-04-02T18:30:00.000Z | cartographer/io/draw_trajectories.cc | laotie/cartographer | b8228ee6564f5a7ad0d6d0b9a30516521cff2ee9 | [
"Apache-2.0"
] | 1,206 | 2016-08-03T14:27:00.000Z | 2020-03-31T21:14:18.000Z | cartographer/io/draw_trajectories.cc | laotie/cartographer | b8228ee6564f5a7ad0d6d0b9a30516521cff2ee9 | [
"Apache-2.0"
] | 1,810 | 2016-08-03T05:45:02.000Z | 2020-04-02T03:44:18.000Z | /*
* Copyright 2016 The Cartographer 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 33.271429 | 75 | 0.677115 | laotie |
0af33411ba7cdf1dbd8380cf736c265da014ae31 | 2,550 | hpp | C++ | phylanx/util/slicing_helpers.hpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | phylanx/util/slicing_helpers.hpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | phylanx/util/slicing_helpers.hpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018 Bibek Wagle
// Copyright (c) 2020 Hartmut Kaiser
//
// 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)
////////... | 43.965517 | 80 | 0.612549 | NanmiaoWu |
0af3cd5b22bdd042ee3626033dc391a8cc4a2983 | 883 | hpp | C++ | include/generics/scene.hpp | murilobnt/vulnus | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | 13 | 2017-05-23T05:38:07.000Z | 2022-03-26T16:08:47.000Z | include/generics/scene.hpp | Murilo-Bento/Gnjk | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | null | null | null | include/generics/scene.hpp | Murilo-Bento/Gnjk | e350f227434306d5d3a7f4d9b22a5eb8d926b81a | [
"MIT"
] | 1 | 2017-08-12T22:25:17.000Z | 2017-08-12T22:25:17.000Z | #ifndef _SCENE_HPP_
#define _SCENE_HPP_
#include <SFML/Graphics.hpp>
#include "structures/scenemanager.hpp"
#include "entities/clock/clockhandler.hpp"
#include "enums/scenecatalog.hpp"
class Scene {
protected:
SceneManager* sceneManager;
public:
bool hasCamera;
Scene(SceneManager* sceneManager);
virtual void... | 25.970588 | 73 | 0.765572 | murilobnt |
0af528830401f86cf37d5cffb252d790a8659bf3 | 1,201 | cpp | C++ | 3933.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 3933.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 3933.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int main() {
while(1) {
int n;
cin >> n;
if(n==0) break;
int num = (int)sqrt(n), cnt=0;
for(int i=1;i<=num;i++) {
if(i*i == n) {
cnt++;
continue;
}
... | 23.54902 | 65 | 0.26811 | jaemin2682 |
0af58962a567f6bda554a8a09ae0776dd713b7a8 | 2,217 | hpp | C++ | exam/q3_record.hpp | Yyyyyyyao/COMP6771---Advanced-CPP | 948dc1b566d7547b5a03dbfa9edf6d2791e13df4 | [
"Apache-2.0"
] | null | null | null | exam/q3_record.hpp | Yyyyyyyao/COMP6771---Advanced-CPP | 948dc1b566d7547b5a03dbfa9edf6d2791e13df4 | [
"Apache-2.0"
] | null | null | null | exam/q3_record.hpp | Yyyyyyyao/COMP6771---Advanced-CPP | 948dc1b566d7547b5a03dbfa9edf6d2791e13df4 | [
"Apache-2.0"
] | null | null | null | #ifndef RECORD_HPP
#define RECORD_HPP
#include <algorithm>
#include <ostream>
#include <map>
#include <iostream>
#include <string>
#include <sstream>
namespace q2 {
class record {
public:
record() {};
~record() {};
auto get_value(std::string const& s) const -> std::string {
auto iter = values_.find(s);
... | 24.633333 | 164 | 0.56608 | Yyyyyyyao |
0afd40f7444e05460f3fed260de40b6b6883af2d | 762 | cpp | C++ | EmbeddedGameEngine/Sprite.cpp | gamer-cndg/embedded-game-engine | 9ff13ee77b0c2f091678fb4582e982a94bc0152d | [
"MIT"
] | null | null | null | EmbeddedGameEngine/Sprite.cpp | gamer-cndg/embedded-game-engine | 9ff13ee77b0c2f091678fb4582e982a94bc0152d | [
"MIT"
] | null | null | null | EmbeddedGameEngine/Sprite.cpp | gamer-cndg/embedded-game-engine | 9ff13ee77b0c2f091678fb4582e982a94bc0152d | [
"MIT"
] | null | null | null | #include "Sprite.h"
#include "lodepng.h"
#include <iostream>
Sprite::~Sprite()
{
if(freeData && pixelData != NULL)
free((void*)pixelData);
}
Sprite* Sprite::FromPNG(const char* path) {
//Try to decode the given file in
//RGBA format
unsigned error;
unsigned char* image;
unsigned w = 0, h = 0;
std::cout << "... | 21.771429 | 84 | 0.632546 | gamer-cndg |
e400b41ccd9b521c63ffab53366e1b529aec0a90 | 13,526 | cc | C++ | runtime/llvm_codegen/codegen/dart.cc | icatalud/sdk | 929a306bfc3d950651bc651600dd4c9db7051aa5 | [
"BSD-3-Clause"
] | null | null | null | runtime/llvm_codegen/codegen/dart.cc | icatalud/sdk | 929a306bfc3d950651bc651600dd4c9db7051aa5 | [
"BSD-3-Clause"
] | null | null | null | runtime/llvm_codegen/codegen/dart.cc | icatalud/sdk | 929a306bfc3d950651bc651600dd4c9db7051aa5 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "dart.h"
#include "llvm/ADT/StringSwitch.h"
#include "vm/dart_api_state.h"
using namespace l... | 37.782123 | 80 | 0.672778 | icatalud |
e404dbe605a4e7caea7373b1a59afadbcb280339 | 6,562 | cpp | C++ | modules/task_2/chesnokov_a_scatter/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2020-10-30T13:49:58.000Z | 2020-10-30T13:49:58.000Z | modules/task_2/chesnokov_a_scatter/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2020-12-27T20:31:37.000Z | 2020-12-27T20:31:37.000Z | modules/task_2/chesnokov_a_scatter/main.cpp | RachinIA/pp_2020_autumn_engineer | 23f7df688a77cad9496b9d95bbe2645e0528f106 | [
"BSD-3-Clause"
] | 1 | 2021-03-14T18:08:22.000Z | 2021-03-14T18:08:22.000Z | // Copyright 2020 Chesnokov Artyom
#include <time.h>
#include <gtest/gtest.h>
#include <gtest-mpi-listener.hpp>
#include <random>
#include "./scatter.h"
TEST(Task_2, Test_Scatter_Naive_Works) {
int rank, size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
int test_data[100... | 28.907489 | 92 | 0.591588 | RachinIA |
e4101adaf947f2784bf4a5594cd368548dd97f39 | 1,559 | cpp | C++ | 2019/day7/cpp/src/amplifier.cpp | ivobatkovic/advent-of-code | e43489bcd2307f0f3ac8b0ec4e850f0a201f9944 | [
"MIT"
] | 3 | 2019-12-14T16:24:50.000Z | 2020-12-06T16:40:13.000Z | 2019/day7/cpp/src/amplifier.cpp | ivobatkovic/advent-of-code | e43489bcd2307f0f3ac8b0ec4e850f0a201f9944 | [
"MIT"
] | 4 | 2019-12-03T14:18:13.000Z | 2020-12-03T08:29:32.000Z | 2019/day7/cpp/src/amplifier.cpp | ivobatkovic/advent-of-code | e43489bcd2307f0f3ac8b0ec4e850f0a201f9944 | [
"MIT"
] | 2 | 2019-12-06T07:25:57.000Z | 2020-12-08T12:42:37.000Z | #include "2019/day7/cpp/include/amplifier.hpp"
#include <algorithm>
#include <vector>
#include "2019/day5/cpp/include/intcode.hpp"
Amplifier::Amplifier() {}
// Go through all phase permutations to find maximum thrust
int Amplifier::get_maximum_thrust(std::string file_name) {
// Default max value
auto max_val = ... | 25.557377 | 73 | 0.631174 | ivobatkovic |
e418df1667ddcb125db8da1fb30ab3bf8bf7a804 | 4,331 | hpp | C++ | src/polynomials/include/sequence.hpp | dkavolis/polynomials | 10abe0ca8bdd3ae7dafc1ecd04142b42e3213af0 | [
"MIT"
] | null | null | null | src/polynomials/include/sequence.hpp | dkavolis/polynomials | 10abe0ca8bdd3ae7dafc1ecd04142b42e3213af0 | [
"MIT"
] | null | null | null | src/polynomials/include/sequence.hpp | dkavolis/polynomials | 10abe0ca8bdd3ae7dafc1ecd04142b42e3213af0 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2022 <Daumantas Kavolis>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 33.573643 | 100 | 0.708612 | dkavolis |
e41a7b30c4d9082dc96345fe703f22efc81ff77d | 3,254 | cpp | C++ | PluginControlInterfaceGeneric/src/CAmRouteElement.cpp | sathallasuresh/AudioManagerPlugins | 72a88ac2b967ef3941dd12350397246d28c78e9d | [
"MIT"
] | null | null | null | PluginControlInterfaceGeneric/src/CAmRouteElement.cpp | sathallasuresh/AudioManagerPlugins | 72a88ac2b967ef3941dd12350397246d28c78e9d | [
"MIT"
] | null | null | null | PluginControlInterfaceGeneric/src/CAmRouteElement.cpp | sathallasuresh/AudioManagerPlugins | 72a88ac2b967ef3941dd12350397246d28c78e9d | [
"MIT"
] | null | null | null | /******************************************************************************
* @file: CAmRouteElement.cpp
*
* This file contains the definition of route element class (member functions
* and data members) used as data container to store the information related to
* route of connection as maintained by controlle... | 28.54386 | 79 | 0.67394 | sathallasuresh |
e41d658f5786acfc8faff1af091fba45ad648c2f | 1,281 | hpp | C++ | source/quantum-script-extension-version-version.template.hpp | g-stefan/quantum-script-extension-version | a10ef4dfbb35e17957786ef39bf2750acf5de4cc | [
"MIT",
"Unlicense"
] | null | null | null | source/quantum-script-extension-version-version.template.hpp | g-stefan/quantum-script-extension-version | a10ef4dfbb35e17957786ef39bf2750acf5de4cc | [
"MIT",
"Unlicense"
] | null | null | null | source/quantum-script-extension-version-version.template.hpp | g-stefan/quantum-script-extension-version | a10ef4dfbb35e17957786ef39bf2750acf5de4cc | [
"MIT",
"Unlicense"
] | null | null | null | //
// Quantum Script Extension Version
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#ifndef QUANTUM_SCRIPT_EXTENSION_VERSION_VERSION_HPP
#define QUANTUM_SCRIPT_EXTENSION_VERS... | 30.5 | 89 | 0.747853 | g-stefan |
e422d308f410cc57c59c64a599d34dce2dfb0d2a | 241 | hpp | C++ | Axis.BLAS/foundation/blas/blas_omp.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.BLAS/foundation/blas/blas_omp.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.BLAS/foundation/blas/blas_omp.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#define VECTOR_SCHEDULE_TINY_OPS schedule(static,256)
#define VECTOR_SCHEDULE_MEDIUM_OPS schedule(static,128)
#define MATRIX_SCHEDULE_TINY_OPS schedule(static,256)
#define MATRIX_SCHEDULE_MEDIUM_OPS schedule(static,128)
| 30.125 | 56 | 0.838174 | renato-yuzup |
e4241c5e351b5dc25c5bffc77a8a116b9f21d2b6 | 972 | hpp | C++ | include/gbl/graphics/Shape.hpp | Afendar/sf-gdLib | 94af14bb3759234ade5cc02127cf53f3e4049966 | [
"MIT"
] | null | null | null | include/gbl/graphics/Shape.hpp | Afendar/sf-gdLib | 94af14bb3759234ade5cc02127cf53f3e4049966 | [
"MIT"
] | 1 | 2020-02-15T23:18:13.000Z | 2020-02-16T13:19:39.000Z | include/gbl/graphics/Shape.hpp | Afendar/sf-gdLib | 94af14bb3759234ade5cc02127cf53f3e4049966 | [
"MIT"
] | null | null | null | #pragma once
//GameBaseLibrary Includes
#include <graphics/Drawable.hpp>
#include <graphics/Transformable.hpp>
#include <graphics/Color.hpp>
namespace gbl {
namespace graphics {
class Shape : public Drawable, public Transformable {
public:
~Shape();
void setColor(const Color& color);
void setOutlin... | 21.6 | 55 | 0.694444 | Afendar |
e424e4225996ce47fea7385d7f1af4b403f8b576 | 971 | cpp | C++ | Test/String__PadLeft.cpp | Leonetienne/StringTools | 1fe3eeb14470470d8c95c40c98a12c15320bcd57 | [
"BSD-2-Clause"
] | null | null | null | Test/String__PadLeft.cpp | Leonetienne/StringTools | 1fe3eeb14470470d8c95c40c98a12c15320bcd57 | [
"BSD-2-Clause"
] | null | null | null | Test/String__PadLeft.cpp | Leonetienne/StringTools | 1fe3eeb14470470d8c95c40c98a12c15320bcd57 | [
"BSD-2-Clause"
] | null | null | null | #include <StringTools.h>
#include "Catch2.h"
// Tests that padding to a length shorter adds no padding
TEST_CASE(__FILE__"/PadToShorterLength", "[Strings][PadLeft]")
{
// Setup
const std::string in = "hello";
// Exercise
const std::string out = StringTools::PadLeft(in, '0', 3);
// Ve... | 21.577778 | 63 | 0.601442 | Leonetienne |
e42acbc4c6b8fbd768f9be04c00e8b90f520ff8e | 525 | cpp | C++ | algorithm/chapter1/utils.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | algorithm/chapter1/utils.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | algorithm/chapter1/utils.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | /*************************************************************************
> File Name: utils.cpp
> Author: ziqiang
> Mail: ziqiang_free@163.com
> Created Time: Fri 11 May 2018 04:33:38 PM CST
************************************************************************/
#include <iostream>
namespace MyUtils {
/*
... | 21.875 | 74 | 0.417143 | sczzq |
e42b4eddf452c2cf50ecd443a1874cb4b9e7ab9c | 14,730 | cpp | C++ | framework/zilch/src/zMipsParser.cpp | TrustworthyComputing/Zilch | 793523455fc313babaa285f7d29d8e8a5bbb3253 | [
"MIT"
] | 11 | 2021-09-22T22:29:01.000Z | 2022-03-04T00:24:00.000Z | framework/zilch/src/zMipsParser.cpp | TrustworthyComputing/Zilch | 793523455fc313babaa285f7d29d8e8a5bbb3253 | [
"MIT"
] | null | null | null | framework/zilch/src/zMipsParser.cpp | TrustworthyComputing/Zilch | 793523455fc313babaa285f7d29d8e8a5bbb3253 | [
"MIT"
] | 1 | 2022-01-11T10:55:03.000Z | 2022-01-11T10:55:03.000Z | #include "zMipsParser.hpp"
using namespace std;
#define DEBUG 0
int labelcnt_ = 1000;
bool answer_instruction = false;
string remove_extension(const string& filename) {
size_t lastdot = filename.find_last_of(".");
if (lastdot == string::npos) return filename;
return filename.substr(0, lastdot);
}
strin... | 42.449568 | 141 | 0.519756 | TrustworthyComputing |
e42b6d9a32f2eb080e97e452b0ba2a18cbbf85a0 | 1,535 | cpp | C++ | src/dtpanel/main.cpp | Arquivotheca/OpenCDE | 4bb0f65dab345790bcf8d8422a05dda495990cd1 | [
"BSD-2-Clause-FreeBSD"
] | 11 | 2015-05-30T14:58:42.000Z | 2021-10-12T04:50:00.000Z | src/dtpanel/main.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-11-30T08:11:39.000Z | 2021-11-30T08:11:39.000Z | src/dtpanel/main.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-05-30T14:58:44.000Z | 2017-09-28T21:58:50.000Z | #include <motifmm.h>
#include <opencde.h>
#include "PanelWindow.h"
void safe_main(int argc, char* argv[])
{
OpenCDE::Environment::initialize(argc, argv);
Motif::Application::addResources(OpenCDE::Environment::getPrefix() + "/share/opencde/app-defaults/Dtpanel");
/*
Motif::Application::addFallbackResource("*h... | 28.962264 | 110 | 0.669055 | Arquivotheca |
e42f47ce97470e16ebe973a04cf58f847aafc790 | 1,812 | cpp | C++ | Razor/src/Razor/Buffers/TextureAttachment.cpp | 0zirix/Razor | b902d316da058caa636efce15da405beb73d9f73 | [
"MIT"
] | 2 | 2021-09-25T02:44:02.000Z | 2021-10-03T09:37:54.000Z | Razor/src/Razor/Buffers/TextureAttachment.cpp | 0zirix/Razor | b902d316da058caa636efce15da405beb73d9f73 | [
"MIT"
] | null | null | null | Razor/src/Razor/Buffers/TextureAttachment.cpp | 0zirix/Razor | b902d316da058caa636efce15da405beb73d9f73 | [
"MIT"
] | null | null | null | #include "rzpch.h"
#include "TextureAttachment.h"
#include <glad/glad.h>
namespace Razor {
TextureAttachment::TextureAttachment(const glm::vec2& size, bool depth, bool transparent) :
size(size),
depth(depth),
transparent(transparent)
{
glGenTextures(1, &id);
bind();
glTexParameteri(GL_TEXTURE_2D, GL_T... | 22.936709 | 92 | 0.729029 | 0zirix |
e4303080fb77693f7ce4eae9e80bde182a8b6601 | 1,168 | hpp | C++ | C++/Simulacre/Oxygene.hpp | 0x0D15EA5Exd/College | 42d78e5d53bef5738684019bf57840bdf2f7d96c | [
"Unlicense"
] | 1 | 2021-11-29T15:22:06.000Z | 2021-11-29T15:22:06.000Z | C++/Simulacre/Oxygene.hpp | 0x0D15EA5Exd/College | 42d78e5d53bef5738684019bf57840bdf2f7d96c | [
"Unlicense"
] | null | null | null | C++/Simulacre/Oxygene.hpp | 0x0D15EA5Exd/College | 42d78e5d53bef5738684019bf57840bdf2f7d96c | [
"Unlicense"
] | null | null | null | #ifndef Oxygene_hpp
#define Oxygene_hpp
/*!
* \file Capteur.h++
* \author 0xdeadc0de
* \version 1.0-stable-release
*/
#include "Capteur.hpp"
/*! \class Oxygene
* \brief Classe Oxygene, herite de Capteur.
*
* La classe gere les différentes constantes en rapport avec l'oxygene, ainsi que les relevés.
*/
clas... | 19.147541 | 95 | 0.58476 | 0x0D15EA5Exd |
e4308ed4fdd320fabd6a3d97c990f27d0889e2f9 | 6,964 | cpp | C++ | Src/LinkLayer.cpp | Mforcen/DL_COS | d40707d24a9e453dacd2d51330d8f53403081d40 | [
"Unlicense"
] | null | null | null | Src/LinkLayer.cpp | Mforcen/DL_COS | d40707d24a9e453dacd2d51330d8f53403081d40 | [
"Unlicense"
] | null | null | null | Src/LinkLayer.cpp | Mforcen/DL_COS | d40707d24a9e453dacd2d51330d8f53403081d40 | [
"Unlicense"
] | null | null | null | #include "LinkLayer.h"
namespace FwLogger
{
//CRC courtesy from LibCRC
static bool crc_tabccitt_init = false;
static uint16_t crc_tabccitt[256];
#define CRC_POLY_CCITT 0x1021
#define CRC_START_XMODEM 0x0000
#define CRC_START_16 0x0000
static uint16_t crc_ccitt_generic( ... | 20.78806 | 114 | 0.591901 | Mforcen |
e4319590d0072e764063be0f3b8b55de1a31e437 | 671 | cpp | C++ | LeetCodeCPP/119. Pascal's Triangle II/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | 1 | 2019-03-29T03:33:56.000Z | 2019-03-29T03:33:56.000Z | LeetCodeCPP/119. Pascal's Triangle II/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | LeetCodeCPP/119. Pascal's Triangle II/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// 119. Pascal's Triangle II
//
// Created by admin on 2019/4/17.
// Copyright © 2019年 liu. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> getRow(int rowIndex) {
vector<int> ret(rowIndex+1,0);
ret[0]=1;
... | 18.638889 | 47 | 0.514158 | 18600130137 |
e43316e17f597c3f826d18f9e0a4168468127058 | 3,534 | cpp | C++ | VK9-Library/RealInstance.cpp | mmmaisel/VK9 | b8dc0be644d1a455bfcb64fdb3f8800d0d8a481a | [
"Zlib"
] | 1 | 2020-07-20T19:08:25.000Z | 2020-07-20T19:08:25.000Z | VK9-Library/RealInstance.cpp | mmmaisel/VK9 | b8dc0be644d1a455bfcb64fdb3f8800d0d8a481a | [
"Zlib"
] | null | null | null | VK9-Library/RealInstance.cpp | mmmaisel/VK9 | b8dc0be644d1a455bfcb64fdb3f8800d0d8a481a | [
"Zlib"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/*
Copyright(c) 2018 Christopher Joseph Dean Schaefer
This software is provided 'as-is', without any express or implied
warranty.In no event will the authors... | 32.127273 | 141 | 0.760611 | mmmaisel |
e4363de6564318078b7f9eaa4a249222e61fe96e | 772 | hpp | C++ | src/effect/tech_pass.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/effect/tech_pass.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/effect/tech_pass.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "tech_pair.hpp"
#include "resource.hpp"
namespace rev {
class TechPass : public Resource {
private:
// [Tech|Pass] -> HTech
using NameToTech = std::unordered_map<Name, HTech>;
NameToTech _nameToTech;
public:
static Name MakeName(const Name& tech, const Name& pass);
// ------... | 28.592593 | 64 | 0.67228 | degarashi |
e438c23dd7531f49b6ff319c659e0b55bd551182 | 285 | hpp | C++ | include/Sirius/Renderer/Objects/PrefabMeshes.hpp | xam4lor/Sirius | f05a89538ab2bc79a8d46f482fbb060271adce0a | [
"MIT"
] | 1 | 2021-07-12T11:53:06.000Z | 2021-07-12T11:53:06.000Z | include/Sirius/Renderer/Objects/PrefabMeshes.hpp | xam4lor/Sirius | f05a89538ab2bc79a8d46f482fbb060271adce0a | [
"MIT"
] | null | null | null | include/Sirius/Renderer/Objects/PrefabMeshes.hpp | xam4lor/Sirius | f05a89538ab2bc79a8d46f482fbb060271adce0a | [
"MIT"
] | 1 | 2021-07-12T11:51:53.000Z | 2021-07-12T11:51:53.000Z |
#pragma once
#include "Sirius/Renderer/Objects/Model.hpp"
#include "Sirius/Renderer/Utils/Material.hpp"
namespace Sirius
{
class Cube: public Model
{
public:
Cube();
explicit Cube(const Material& mat, bool perFaceTexture = true);
};
}
| 15 | 75 | 0.624561 | xam4lor |
e43d3aab46b4f6a873d35420e2e24b2bb8a029db | 1,703 | cpp | C++ | simple-dx11-renderer/Base/Compiler/HLSLCompiler.cpp | ike-0/simple-dx11-renderer | e6597e30d9675a56be84c8c26f78697cc16a7e25 | [
"MIT"
] | null | null | null | simple-dx11-renderer/Base/Compiler/HLSLCompiler.cpp | ike-0/simple-dx11-renderer | e6597e30d9675a56be84c8c26f78697cc16a7e25 | [
"MIT"
] | null | null | null | simple-dx11-renderer/Base/Compiler/HLSLCompiler.cpp | ike-0/simple-dx11-renderer | e6597e30d9675a56be84c8c26f78697cc16a7e25 | [
"MIT"
] | null | null | null | #include "HLSLCompiler.h"
Microsoft::WRL::ComPtr<ID3DBlob> HLSLCompiler::LoadFromFile(const std::filesystem::path& filepath)
{
Microsoft::WRL::ComPtr<ID3DBlob> blob;
Microsoft::WRL::ComPtr<ID3DBlob> errorblob;
unsigned int compileFlags = 0;
#ifdef _DEBUG
compileFlags |= D3DCOMPILE_DEBUG;
#endif
#ifdef NDEBUG
c... | 21.556962 | 189 | 0.694069 | ike-0 |
e43e507e3dc4825af238eb477c8e3c16b70850a6 | 3,256 | cpp | C++ | source/Library/Utils.cpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | source/Library/Utils.cpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | source/Library/Utils.cpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------------------------------------------
#include "Library/Utils.hpp"
// ------------------------------------------------------------------------------------------------
#include <cstdio>
#include <cstdlib>
// -------------------------------------------------... | 32.888889 | 99 | 0.449017 | dracc |
e43f02b12023149d7efa597e367e08606a5ade8c | 4,546 | cpp | C++ | FEBioSource2.9/FEBioMech/FENeoHookean.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-08-24T08:37:21.000Z | 2021-08-24T08:37:21.000Z | FEBioSource2.9/FEBioMech/FENeoHookean.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | null | null | null | FEBioSource2.9/FEBioMech/FENeoHookean.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-03-15T08:22:06.000Z | 2021-03-15T08:22:06.000Z | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2019 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... | 30.306667 | 82 | 0.602068 | wzaylor |
e44ef676343172fc8b517e19e8e06bd640237f89 | 2,302 | cc | C++ | chrono_vs_gettimeofday_or_clockgettime/benchmark.cc | xysperi/benchmark | a1fd0bb10842329e1c17a25768d23e3d725f60ef | [
"MIT"
] | null | null | null | chrono_vs_gettimeofday_or_clockgettime/benchmark.cc | xysperi/benchmark | a1fd0bb10842329e1c17a25768d23e3d725f60ef | [
"MIT"
] | null | null | null | chrono_vs_gettimeofday_or_clockgettime/benchmark.cc | xysperi/benchmark | a1fd0bb10842329e1c17a25768d23e3d725f60ef | [
"MIT"
] | null | null | null | #include <benchmark/benchmark.h>
#include <sys/time.h>
#include <time.h>
#include <chrono>
// get result in micro seconds
static void BM_chrono_sysclock_time_since_epoch(benchmark::State& state) {
for (auto _ : state) {
auto timeSinceEpoch = std::chrono::system_clock::now().time_since_epoch();
auto microSec... | 32.885714 | 81 | 0.644657 | xysperi |
e4502138a05783cd3630ba7e32ae8cb7d3bace06 | 1,293 | hpp | C++ | libraries/plugins/raw_block/include/scorum/plugins/raw_block/raw_block_api.hpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/plugins/raw_block/include/scorum/plugins/raw_block/raw_block_api.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/plugins/raw_block/include/scorum/plugins/raw_block/raw_block_api.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z |
#pragma once
#include <scorum/chain/schema/scorum_object_types.hpp>
#include <fc/api.hpp>
namespace scorum {
namespace app {
struct api_context;
}
}
namespace scorum {
namespace plugin {
namespace raw_block {
namespace detail {
class raw_block_api_impl;
}
struct get_raw_block_args
{
uint32_t block_num = 0;
}... | 17.958333 | 103 | 0.730085 | scorum |
e4532c633f3b919bbb05ed53b0e58060f189fc2e | 10,623 | cpp | C++ | Game/Source/GameScene.cpp | Turmo11/Development | 790c55e27a08cddff3bf57ec26ca9166d7bd39e1 | [
"MIT"
] | null | null | null | Game/Source/GameScene.cpp | Turmo11/Development | 790c55e27a08cddff3bf57ec26ca9166d7bd39e1 | [
"MIT"
] | null | null | null | Game/Source/GameScene.cpp | Turmo11/Development | 790c55e27a08cddff3bf57ec26ca9166d7bd39e1 | [
"MIT"
] | null | null | null | #include "Defs.h"
#include "Log.h"
#include "Application.h"
#include "Input.h"
#include "Textures.h"
#include "Audio.h"
#include "Render.h"
#include "Window.h"
#include "Map.h"
#include "GameScene.h"
#include "EntityPlayer.h"
//#include "Pickups.h"
#include "EntityEnemy.h"
#include "FadeToBlack.h"
#include "Projectile.... | 25.113475 | 151 | 0.668173 | Turmo11 |
e45773d17752240f1aaec12f83c13057b4f61705 | 734 | cpp | C++ | src/exceptions.cpp | MPI-IS/signal_handler | 1a4551125bd25037be49b44152744194ee847064 | [
"BSD-3-Clause"
] | null | null | null | src/exceptions.cpp | MPI-IS/signal_handler | 1a4551125bd25037be49b44152744194ee847064 | [
"BSD-3-Clause"
] | 2 | 2020-11-28T19:16:55.000Z | 2021-01-06T15:04:02.000Z | src/exceptions.cpp | MPI-IS/signal_handler | 1a4551125bd25037be49b44152744194ee847064 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T16:36:43.000Z | 2022-03-29T16:36:43.000Z | /**
* @file
* @brief Exceptions related to signal handling.
* @copyright 2020, Max Planck Gesellschaft. All rights reserved.
* @license BSD 3-clause
*/
#include <signal_handler/exceptions.hpp>
#include <csignal>
namespace signal_handler
{
ReceivedSignal::ReceivedSignal(int signal)
: message_("Received signa... | 20.388889 | 67 | 0.667575 | MPI-IS |
e45a9ccb24f5f433974822b506136586776da4bb | 4,493 | cpp | C++ | SPOJ/Random/COT/cot.cpp | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | SPOJ/Random/COT/cot.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | SPOJ/Random/COT/cot.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include<stdio.h>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<math.h>
#define sd(x) scanf("%d",&x);
#define sd2(x,y) scanf("%d %d",&x,&y);
#define sd3(x,y,z) scanf("%d %d %d",&x,&y,&z);
#define sull(x) scanf("%ull",&x)... | 26.744048 | 330 | 0.599377 | VastoLorde95 |
e460ba8ca174da88d87a8e0f7f0c5f9800279712 | 4,898 | cpp | C++ | UrgDrawWidget3D/Scene.cpp | UrgBenri/Plot3DViewerPlugin | f4da06b65bc078e3cd3ffde9ff6c5852509fbc5a | [
"BSD-2-Clause"
] | null | null | null | UrgDrawWidget3D/Scene.cpp | UrgBenri/Plot3DViewerPlugin | f4da06b65bc078e3cd3ffde9ff6c5852509fbc5a | [
"BSD-2-Clause"
] | null | null | null | UrgDrawWidget3D/Scene.cpp | UrgBenri/Plot3DViewerPlugin | f4da06b65bc078e3cd3ffde9ff6c5852509fbc5a | [
"BSD-2-Clause"
] | null | null | null | #include "Scene.h"
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <algorithm>
Scene::Scene(QObject *parent)
: RenderableItem (parent)
, m_backgroundColor(108, 108, 132)
{
}
Scene::~Scene()
{
qDeleteAll(m_viewports);
qDeleteAll(m_items);
}
void Scene::render()
{
... | 22.162896 | 102 | 0.613312 | UrgBenri |
e46b25e300eb0574011ba4d6945b7063227b9589 | 595 | cpp | C++ | codes/15.cpp | frederick-vs-ja/CppExam | f8e5691dd1d1e7a40a56f61499eb3fc79f909e4c | [
"Apache-2.0"
] | 2 | 2020-03-11T11:19:23.000Z | 2020-07-18T16:35:10.000Z | codes/15.cpp | frederick-vs-ja/CppExam | f8e5691dd1d1e7a40a56f61499eb3fc79f909e4c | [
"Apache-2.0"
] | 1 | 2020-07-24T06:05:17.000Z | 2020-07-24T06:05:17.000Z | codes/15.cpp | frederick-vs-ja/CppExam | f8e5691dd1d1e7a40a56f61499eb3fc79f909e4c | [
"Apache-2.0"
] | 1 | 2020-03-17T08:13:54.000Z | 2020-03-17T08:13:54.000Z | #include <iostream>
struct Foo {
int a {0};
int override {1};
constexpr static int c {3};
bool operator==(const Foo &rhs) {
return this->a == rhs.a and this->override == rhs.override;
}
Foo() noexcept = default;
Foo(const Foo &) = delete; Foo(Foo &&rhs) noexcept {
this->a = ... | 23.8 | 67 | 0.554622 | frederick-vs-ja |
e47256d1547cc29f243bbb610b390bcff640abdf | 4,301 | hpp | C++ | include/ponder/uses/uses.hpp | nikoqw/ponder | 3069d5ab72e74aa4e67f173267eb56b5e06f9143 | [
"MIT"
] | null | null | null | include/ponder/uses/uses.hpp | nikoqw/ponder | 3069d5ab72e74aa4e67f173267eb56b5e06f9143 | [
"MIT"
] | null | null | null | include/ponder/uses/uses.hpp | nikoqw/ponder | 3069d5ab72e74aa4e67f173267eb56b5e06f9143 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** This file is part of the Ponder library.
**
** The MIT License (MIT)
**
** Copyright (C) 2015-2019 Nick Trout.
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documen... | 33.084615 | 99 | 0.674494 | nikoqw |
e4784a40b448fdf87a9d45b124e40cbf0e1a1114 | 733 | cpp | C++ | Week11InClass/Week11InClass.cpp | MaxwellJFleming/CppClassFall21 | 3fbcb66c0ee02b5a838bc14124a88dcde5d60006 | [
"MIT"
] | null | null | null | Week11InClass/Week11InClass.cpp | MaxwellJFleming/CppClassFall21 | 3fbcb66c0ee02b5a838bc14124a88dcde5d60006 | [
"MIT"
] | null | null | null | Week11InClass/Week11InClass.cpp | MaxwellJFleming/CppClassFall21 | 3fbcb66c0ee02b5a838bc14124a88dcde5d60006 | [
"MIT"
] | null | null | null | #include <iostream>
struct ChildTest
{
ChildTest()
{
std::cout << "ChildTest Initialized" << std::endl;
}
~ChildTest()
{
std::cout << "ChildTest DeInitialized" << std::endl;
}
};
struct Test
{
private:
ChildTest *m_child_test;
public:
Test()
... | 15.934783 | 60 | 0.499318 | MaxwellJFleming |
e479bb7b5a91f46b69a117016da1f4f49022e95e | 36 | hpp | C++ | src/boost_log_exceptions.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_log_exceptions.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_log_exceptions.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/log/exceptions.hpp>
| 18 | 35 | 0.777778 | miathedev |
e47a85e64558d60ba58c11071e0fdba1eeae0344 | 6,662 | hpp | C++ | Source/AllProjects/CQCMedia/CQCMedia_MediaInfoClass_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CQCMedia/CQCMedia_MediaInfoClass_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CQCMedia/CQCMedia_MediaInfoClass_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CQCNedia_MediaInfoClass_.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 04/16/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https:... | 37.426966 | 83 | 0.470279 | MarkStega |
e47cacf180f52eaa48c9e05738043882e25b40b6 | 5,340 | hpp | C++ | Source/AllProjects/OrbUtils/CIDCfgSrv/CIDCfgSrv_ThisFacility.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/OrbUtils/CIDCfgSrv/CIDCfgSrv_ThisFacility.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/OrbUtils/CIDCfgSrv/CIDCfgSrv_ThisFacility.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDCfgSrv_ThisFacility.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 12/05/2001
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://op... | 35.6 | 79 | 0.449813 | MarkStega |
e47cc9e1db45a2258aea22623d4cfed1e75d9bb5 | 6,313 | hpp | C++ | includes/zab/timer_service.hpp | Donald-Rupin/zab | b0967f39d3c0418071349da41c1e43d60462583f | [
"MIT"
] | 26 | 2021-09-21T12:24:39.000Z | 2022-02-22T22:57:53.000Z | includes/zab/timer_service.hpp | Donald-Rupin/zab | b0967f39d3c0418071349da41c1e43d60462583f | [
"MIT"
] | 5 | 2021-09-30T01:46:31.000Z | 2022-02-03T00:56:12.000Z | includes/zab/timer_service.hpp | Donald-Rupin/zab | b0967f39d3c0418071349da41c1e43d60462583f | [
"MIT"
] | 3 | 2021-09-21T12:53:55.000Z | 2021-09-30T01:38:01.000Z | /*
* MMM"""AMV db `7MM"""Yp,
* M' AMV ;MM: MM Yb
* ' AMV ,V^MM. MM dP
* AMV ,M `MM MM"""bg.
* AMV , AbmmmqMA MM `Y
* AMV ,M A' VML MM ,9
* AMVmmmmMM .AMA. .AMMA..JMMmmmd9
*
*
* MIT License
*
* Copyright (c) 2021... | 33.579787 | 99 | 0.546967 | Donald-Rupin |
e47d2bc5f32dc89d4ea9811bc0920e6d43472fba | 4,380 | hpp | C++ | SysLib/Include/Dir_Data.hpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | SysLib/Include/Dir_Data.hpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | SysLib/Include/Dir_Data.hpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Dir_Data.hpp - network link direction data
//*********************************************************
#ifndef DIR_DATA_HPP
#define DIR_DATA_HPP
#include "Class_Index.hpp"
#include "Class_Array.hpp"
//-----------------------------------------------------... | 42.941176 | 106 | 0.476712 | kravitz |
7cfdcf91549335234a0268c0f0f895b765331299 | 443 | cpp | C++ | Online-Judge-Solution/Codeforces Solutions/CBR42(A.Football).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/Codeforces Solutions/CBR42(A.Football).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/Codeforces Solutions/CBR42(A.Football).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
ll n,k=0,i;
string s1,s2;
map<string, int> mp;
map<string, int>:: iterator itr;
cin>>n;
for(i=1;i<=n;i++)
{
cin>>s1;
mp[s1]++;
}
for(itr = mp.begin(); itr != mp.end(); itr++)
{
... | 17.038462 | 49 | 0.455982 | arifparvez14 |
7cfe20c1de039def14a2e12fd0fb2d49402c9a4f | 167,464 | hpp | C++ | ThreeDScanner-iOS/Libraries/PCL/include/pcl-1.8/pcl/surface/3rdparty/poisson4/multi_grid_octree_data.hpp | anwholesquare/3DScanr | 335b6fa47a86b7c121e26ad2cbde342340ec855b | [
"MIT"
] | 96 | 2018-09-22T11:13:49.000Z | 2022-01-26T19:23:42.000Z | ThreeDScanner-iOS/Libraries/PCL/include/pcl-1.8/pcl/surface/3rdparty/poisson4/multi_grid_octree_data.hpp | anwholesquare/3DScanr | 335b6fa47a86b7c121e26ad2cbde342340ec855b | [
"MIT"
] | 7 | 2018-09-06T06:32:40.000Z | 2021-05-07T04:32:35.000Z | ThreeDScanner-iOS/Libraries/PCL/include/pcl-1.8/pcl/surface/3rdparty/poisson4/multi_grid_octree_data.hpp | anwholesquare/3DScanr | 335b6fa47a86b7c121e26ad2cbde342340ec855b | [
"MIT"
] | 27 | 2018-01-03T22:49:14.000Z | 2022-01-24T15:41:23.000Z | /*
Copyright (c) 2006, Michael Kazhdan and Matthew Bolitho
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions ... | 42.731309 | 304 | 0.53925 | anwholesquare |
7cfe8c2d7fe37e45dfbdf955d0ca79f6ce7e17fc | 742 | hpp | C++ | flare/include/flare/animation/component_animation.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 14 | 2019-04-29T15:17:24.000Z | 2020-12-30T12:51:05.000Z | flare/include/flare/animation/component_animation.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | null | null | null | flare/include/flare/animation/component_animation.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 6 | 2019-04-29T15:17:25.000Z | 2021-11-16T03:20:59.000Z | #ifndef _FLARE_COMPONENTANIMATION_HPP_
#define _FLARE_COMPONENTANIMATION_HPP_
#include <string>
#include <vector>
#include "property_animation.hpp"
namespace flare
{
class BlockReader;
class ActorComponent;
class ActorArtboard;
struct ActorAnimationEvent;
class ComponentAnimation
{
private:
unsigned short... | 23.1875 | 119 | 0.77628 | taehyub |
7cfef43e7078db0622db5ffc00649bcdbdd61cdc | 156 | cpp | C++ | src/SVmain.cpp | psykokwak-com/Surround-View | b64e1df87f3f1f60f82b84f0053373939019fb09 | [
"MIT"
] | null | null | null | src/SVmain.cpp | psykokwak-com/Surround-View | b64e1df87f3f1f60f82b84f0053373939019fb09 | [
"MIT"
] | null | null | null | src/SVmain.cpp | psykokwak-com/Surround-View | b64e1df87f3f1f60f82b84f0053373939019fb09 | [
"MIT"
] | null | null | null | #include <SVApp.hpp>
int main(int argc, char* argv[])
{
SVAppConfig svcfg;
SVApp svapp(svcfg);
auto res = svapp.init();
svapp.run();
return 0;
}
| 9.75 | 32 | 0.634615 | psykokwak-com |
6b0349836a2e0781b5367f2113b6cfc986377ccf | 7,638 | hpp | C++ | src/core/input/types.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/core/input/types.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/core/input/types.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | /** basic types and enumerations used by the Input_manager *******************
* *
* Copyright (c) 2016 Florian Oetke *
* This file is distributed under the MIT License *
* ... | 20.153034 | 87 | 0.543991 | lowkey42 |
6b080c5ad690147df338bea3e76d06a361137378 | 553 | cpp | C++ | src/homework/02_expressions/expressions.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-salimjemai | 924dc037599200a45d6a1d4a9dc850692a102c9e | [
"MIT"
] | null | null | null | src/homework/02_expressions/expressions.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-salimjemai | 924dc037599200a45d6a1d4a9dc850692a102c9e | [
"MIT"
] | null | null | null | src/homework/02_expressions/expressions.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-salimjemai | 924dc037599200a45d6a1d4a9dc850692a102c9e | [
"MIT"
] | null | null | null | #include "expressions.h"
//example
int add_numbers(int num1, int num2)
{
return num1 + num2;
}
//write code for multiply_numbers function here
//function returns product of num1 and num2
//write function prototype for multiply_numbers with two integer parameters num1, and num2
double get_sales_tax_amount(double mea... | 20.481481 | 90 | 0.775769 | acc-cosc-1337-spring-2022 |
6b09b73c7af5fd3602cf8b74e29f8f4e3ea947bb | 3,325 | hpp | C++ | src/gen_descriptors.hpp | AnnoyingDog99/GEngine | 5d0ef1b168e803559098c146f6c082c12e52dadd | [
"MIT"
] | null | null | null | src/gen_descriptors.hpp | AnnoyingDog99/GEngine | 5d0ef1b168e803559098c146f6c082c12e52dadd | [
"MIT"
] | null | null | null | src/gen_descriptors.hpp | AnnoyingDog99/GEngine | 5d0ef1b168e803559098c146f6c082c12e52dadd | [
"MIT"
] | null | null | null | #pragma once
#include "gen_device.hpp"
// std
#include <memory>
#include <unordered_map>
#include <vector>
namespace gen
{
class GenDescriptorSetLayout
{
public:
class Builder
{
public:
Builder(GenDevice &genDevice) : genDevice{genDevice} {}
Builder &addBi... | 30.787037 | 103 | 0.658947 | AnnoyingDog99 |
6b0c72f2197d575e185baa6d8091ecbf0d9663c4 | 660 | cpp | C++ | LeetCode/MinimumDepthOfBinaryTree.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/MinimumDepthOfBinaryTree.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/MinimumDepthOfBinaryTree.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int minDepth(TreeNode* root) {
if (root == NULL) return 0; // based on examples, answer... | 28.695652 | 133 | 0.581818 | SelvorWhim |
6b0ce5418634b5472228b2994e413bd4488e8d79 | 154,387 | cpp | C++ | src/qExpr.cpp | rodriguescr/libfastlib | b89172ae727cd36f84d0d02359ce635eb11b8472 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/qExpr.cpp | rodriguescr/libfastlib | b89172ae727cd36f84d0d02359ce635eb11b8472 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/qExpr.cpp | rodriguescr/libfastlib | b89172ae727cd36f84d0d02359ce635eb11b8472 | [
"BSD-3-Clause-LBNL"
] | null | null | null | // $Id$
// Author: John Wu <John.Wu at acm.org>
// Lawrence Berkeley National Laboratory
// Copyright (c) 1998-2017 the Regents of the University of California
//
// implement the functions defined in qExpr.h
//
#include "util.h"
#include "part.h"
#include "qExpr.h"
#ifdef sun
#include <ieeefp.h> // finite
#e... | 36.029638 | 153 | 0.47184 | rodriguescr |
6b0d0d2eaedf2b977f6b652d9d64aae19b5b011d | 1,014 | hpp | C++ | include/cb/assetpack.hpp | blitterfly/critterbits | fdfc696ac01c4ce95a1e96f0314f11eeccdde588 | [
"MIT"
] | 1 | 2017-11-25T20:35:55.000Z | 2017-11-25T20:35:55.000Z | include/cb/assetpack.hpp | taxes-dev/critterbits | fdfc696ac01c4ce95a1e96f0314f11eeccdde588 | [
"MIT"
] | null | null | null | include/cb/assetpack.hpp | taxes-dev/critterbits | fdfc696ac01c4ce95a1e96f0314f11eeccdde588 | [
"MIT"
] | null | null | null | #pragma once
#ifndef CB_ASSETPACK_HPP
#define CB_ASSETPACK_HPP
namespace Critterbits{
namespace AssetPack {
#define CB_ASSETPACK_VER_MAJ 1
#define CB_ASSETPACK_VER_MIN 0
#define CB_ASSETPACK_HDR_BYTES 0xef, 0xbb, 0xbf, 'c', 'b', 'p', 'a', 'k', 0xe2, 0x90, 0x84, 0
#define CB_ASSETPACK_MAX_NAME_SIZE 256
#define CB_ASSE... | 28.166667 | 93 | 0.779093 | blitterfly |
6b0dd5409f01974679d8aa4714fcd67643d7d1ba | 915 | hpp | C++ | libreglisse/ref.hpp | Wmbat/libreglisse | db0765987592d2d95e1322422ac2f751cf560018 | [
"MIT"
] | 1 | 2020-08-30T03:27:37.000Z | 2020-08-30T03:27:37.000Z | libreglisse/ref.hpp | Wmbat/libreglisse | db0765987592d2d95e1322422ac2f751cf560018 | [
"MIT"
] | 3 | 2020-08-29T23:04:41.000Z | 2020-09-01T22:47:54.000Z | libreglisse/ref.hpp | Wmbat/libreglisse | db0765987592d2d95e1322422ac2f751cf560018 | [
"MIT"
] | 2 | 2020-08-29T22:59:58.000Z | 2020-10-06T03:41:17.000Z | /**
* @file ref.hpp
* @author wmbat wmbat@protonmail.com
* @date Saturday, 24th of june 2021
* @brief Contains the ref type alias.
* @copyright Copyright (C) 2021 wmbat.
*/
#ifndef LIBREGLISSE_UTILS_REF_HPP
#define LIBREGLISSE_UTILS_REF_HPP
#include <functional>
namespace reglisse::inline v0
{
/**
* @br... | 25.416667 | 91 | 0.703825 | Wmbat |
6b10b44e274fc3773c49073295e36a9e5fedc65c | 1,783 | hpp | C++ | NumberWithUnits.hpp | shaiBonfil/CPP-Ex3 | d766ca822645380c06d5818ce28f1f3c3d244215 | [
"MIT"
] | null | null | null | NumberWithUnits.hpp | shaiBonfil/CPP-Ex3 | d766ca822645380c06d5818ce28f1f3c3d244215 | [
"MIT"
] | null | null | null | NumberWithUnits.hpp | shaiBonfil/CPP-Ex3 | d766ca822645380c06d5818ce28f1f3c3d244215 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
namespace ariel
{
class NumberWithUnits
{
private:
double number;
std::string unit_type;
public:
NumberWithUnits(double number, const std::string &unit_type);
~NumberWithUnits() {}
static void read_units(st... | 33.641509 | 86 | 0.650028 | shaiBonfil |
6b111c7552eaca3921389fcde5ff6c11cd567296 | 3,705 | cpp | C++ | Homework/3. HW/Homework/Source.cpp | Ignatoff/FMI-OOP-2018 | a84c250e4b6d2df3135708a2fbe0447b9533858a | [
"MIT"
] | 3 | 2018-03-20T18:28:53.000Z | 2018-06-06T17:29:13.000Z | Homework/3. HW/Homework/Source.cpp | Ignatoff/FMI-OOP-2018 | a84c250e4b6d2df3135708a2fbe0447b9533858a | [
"MIT"
] | null | null | null | Homework/3. HW/Homework/Source.cpp | Ignatoff/FMI-OOP-2018 | a84c250e4b6d2df3135708a2fbe0447b9533858a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "CurrentAccount.h"
#include "Bank.h"
Bank bank("UniCredit", "Sofia, Bulgaria");
void addNewCustomer()
{
std::cout << "ADD NEW CUSTOMER\n\n";
std::string customerId, name, address;
std::cout << "Customer details\n";
std::cout << "Customer ID: ";
getline(std::cin, cu... | 19.603175 | 258 | 0.641026 | Ignatoff |
6b130f41b3c14f877ca584a78f8b7906d374b771 | 892 | cc | C++ | leetcode/1457-minimum-difficulty-of-a-job-schedule.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | leetcode/1457-minimum-difficulty-of-a-job-schedule.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | leetcode/1457-minimum-difficulty-of-a-job-schedule.cc | Magic07/online-judge-solutions | 02a289dd7eb52d7eafabc97bd1a043213b65f70a | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
class Solution {
public:
int dp[300][11];
int minDifficulty(int start, vector<int>& jobDifficulty, int d) {
if (dp[start][d] != 0)
return dp[start][d];
if (d == 1) {
return *max_element(jobDifficulty.begin() + start, jobDifficulty.end());
}... | 31.857143 | 79 | 0.544843 | Magic07 |
6b14bb5eecad56abc735ef3324d3007efab683b5 | 2,045 | cpp | C++ | robotics/dependencies/sai2-urdfreader/examples/02-world_parse/main.cpp | xpennec/applications | 50aefdf14de308fc3c132784ebba9d329e47b087 | [
"MIT"
] | 21 | 2019-01-12T17:59:41.000Z | 2022-03-08T17:42:56.000Z | robotics/dependencies/sai2-urdfreader/examples/02-world_parse/main.cpp | farrell236/applications | 0e1ab139ade2a0b3ba6f04f6fd93822b1dd5ae2f | [
"MIT"
] | 7 | 2019-01-24T11:44:58.000Z | 2020-04-21T21:13:37.000Z | robotics/dependencies/sai2-urdfreader/examples/02-world_parse/main.cpp | farrell236/applications | 0e1ab139ade2a0b3ba6f04f6fd93822b1dd5ae2f | [
"MIT"
] | 8 | 2019-01-24T11:36:05.000Z | 2021-06-15T20:59:50.000Z | // 02-robot-parse: example of how the parser loads the world
#include "urdf_parser/urdf_parser.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
const string world_fname = "resources/world.urdf";
int main (int argc, char ** argv) {
cout << "Loading world file: " << world_fname << end... | 32.460317 | 120 | 0.644988 | xpennec |
6b2415b1031b7209c24ee077d9928fbc0c4b56d6 | 124 | cpp | C++ | judges/uri/iniciante/2642.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | null | null | null | judges/uri/iniciante/2642.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T11:53:02.000Z | 2018-10-17T11:54:42.000Z | judges/uri/iniciante/2642.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T12:14:04.000Z | 2018-10-17T12:14:04.000Z | #include <bits/stdc++.h>
using namespace std;
int main (){
int n, j;
cin >> n >> j;
int d[n], s[n];
return 0;
} | 7.294118 | 24 | 0.516129 | eduardonunes2525 |
6b252d2db42d7ec2eb0574eed0ed1280177636df | 2,968 | cpp | C++ | TOMB5/game/sniper.cpp | walkawayy/TOMB5 | cc33d5147ed21c8db123a72f4acdc9241e3ed73c | [
"MIT"
] | null | null | null | TOMB5/game/sniper.cpp | walkawayy/TOMB5 | cc33d5147ed21c8db123a72f4acdc9241e3ed73c | [
"MIT"
] | null | null | null | TOMB5/game/sniper.cpp | walkawayy/TOMB5 | cc33d5147ed21c8db123a72f4acdc9241e3ed73c | [
"MIT"
] | null | null | null | #include "../tomb5/pch.h"
#include "sniper.h"
#include "box.h"
#include "objects.h"
#include "sphere.h"
#include "effect2.h"
#include "people.h"
#include "../specific/function_stubs.h"
static BITE_INFO sniper_gun =
{
0, 480, 110, 13
};
void InitialiseSniper(short item_number)
{
ITEM_INFO* item;
item = &items[item... | 20.755245 | 88 | 0.63814 | walkawayy |
6b2ea3dded2aab4743e6fc8d6319e38f84674b4d | 11,826 | cpp | C++ | src/game/client/components/effects.cpp | TsFreddie/New-Nodes | 8cc2ddc02a6835342604e45ca3c19eeb84811a9c | [
"Zlib"
] | 2 | 2016-04-11T13:35:05.000Z | 2019-06-10T22:07:12.000Z | src/game/client/components/effects.cpp | TsFreddie/New-Nodes | 8cc2ddc02a6835342604e45ca3c19eeb84811a9c | [
"Zlib"
] | null | null | null | src/game/client/components/effects.cpp | TsFreddie/New-Nodes | 8cc2ddc02a6835342604e45ca3c19eeb84811a9c | [
"Zlib"
] | null | null | null | /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <engine/demo.h>
#include <engine/engine.h>
#include <engine/shared/config.h>
#include <game/generated/client_data.h>
... | 24.792453 | 117 | 0.658803 | TsFreddie |
6b33f989d94b42a306bcc7d488f99f1635c82022 | 12,094 | inl | C++ | branch/old_angsys/angsys_beta2/include/angsys/ang/platform/inlines/platform.inl | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta2/include/angsys/ang/platform/inlines/platform.inl | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta2/include/angsys/ang/platform/inlines/platform.inl | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | #ifndef __ANG_PLATFORM_HPP__
#error ...
#elif !defined __ANG_PLATFORM_GRAPHICS_INL__
#define __ANG_PLATFORM_GRAPHICS_INL__
template<typename T>
inline ang::graphics::point<T>::point()
: x(0)
, y(0)
{
}
template<typename T>
inline ang::graphics::point<T>::point(point const& p)
: x(p.x)
, y(p.y)
{
}
template<ty... | 30.235 | 239 | 0.653961 | ChuyX3 |
6b386394aedfac6a7ec040726610f126fd89647b | 5,889 | cpp | C++ | controller/src/command.cpp | sienna0127/VentilatorSoftware | 73e65d8b00c29617b64430cff921afa597096bf8 | [
"Apache-2.0"
] | null | null | null | controller/src/command.cpp | sienna0127/VentilatorSoftware | 73e65d8b00c29617b64430cff921afa597096bf8 | [
"Apache-2.0"
] | null | null | null | controller/src/command.cpp | sienna0127/VentilatorSoftware | 73e65d8b00c29617b64430cff921afa597096bf8 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020, Edwin Chiu
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
dis... | 29.009852 | 76 | 0.701817 | sienna0127 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.