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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
66c438e51bf580136bf8a0c9ec54ee9d9a0180e3 | 1,192 | cpp | C++ | Codeforces/GYM/UTPC Contest 10-29-21 Div. 2 (Beginner)/E.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | Codeforces/GYM/UTPC Contest 10-29-21 Div. 2 (Beginner)/E.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | Codeforces/GYM/UTPC Contest 10-29-21 Div. 2 (Beginner)/E.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | /**
* author: MaGnsi0
* created: 21.11.2021 15:54:14
**/
#include <bits/stdc++.h>
using namespace std;
void dfs(vector<vector<int>>& adj, int& x, int& maxd, int v = 0, int curd = 0, int par = -1) {
if (curd > maxd) {
x = v;
maxd = curd;
}
for (auto& u : adj[v]) {
if (u == ... | 21.285714 | 94 | 0.439597 | MaGnsio |
66cb64a7e7ab92f4f426ffa12b5634eee9cf3242 | 4,161 | cpp | C++ | test/Filesystem.test.cpp | Brett208/nas2d-core | f9506540f32d34f3c60bc83b87b34460d582ae81 | [
"Zlib"
] | null | null | null | test/Filesystem.test.cpp | Brett208/nas2d-core | f9506540f32d34f3c60bc83b87b34460d582ae81 | [
"Zlib"
] | null | null | null | test/Filesystem.test.cpp | Brett208/nas2d-core | f9506540f32d34f3c60bc83b87b34460d582ae81 | [
"Zlib"
] | null | null | null | #include "NAS2D/Filesystem.h"
#include <gtest/gtest.h>
#include <gmock/gmock.h>
TEST(Filesystem, ConstructDestruct) {
EXPECT_NO_THROW(NAS2D::Filesystem fs("", "NAS2DUnitTests", "LairWorks"));
}
class FilesystemTest : public ::testing::Test {
protected:
static constexpr auto AppName = "NAS2DUnitTests";
static c... | 30.595588 | 85 | 0.738765 | Brett208 |
66cd26240c0319321dde87beff637e079f6e42fa | 1,416 | cpp | C++ | module-platform/rt1051/src/RT1051Platform.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-platform/rt1051/src/RT1051Platform.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-platform/rt1051/src/RT1051Platform.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <platform/rt1051/RT1051Platform.hpp>
#include "BlockDeviceFactory.hpp"
#include <bsp/bsp.hpp>
#include <purefs/vfs_subsystem.hpp>
#include <exception>
#include <Logger.hpp>
... | 27.230769 | 91 | 0.681497 | buk7456 |
66cd5e1884982ac8ef79ca8479e8f2384f267403 | 13,977 | hpp | C++ | glm/detail/type_vec5.hpp | gchunev/Dice4D | f96db406204fdca0155d26db856b66a2afd4e664 | [
"MIT"
] | 1 | 2019-05-22T08:53:46.000Z | 2019-05-22T08:53:46.000Z | glm/detail/type_vec5.hpp | gchunev/Dice4D | f96db406204fdca0155d26db856b66a2afd4e664 | [
"MIT"
] | null | null | null | glm/detail/type_vec5.hpp | gchunev/Dice4D | f96db406204fdca0155d26db856b66a2afd4e664 | [
"MIT"
] | null | null | null | /// @ref core
/// @file glm/detail/type_vec5.hpp
#pragma once
#include "qualifier.hpp"
#include <cstddef>
namespace glm
{
template<typename T, qualifier Q>
struct vec<5, T, Q>
{
// -- Implementation detail --
typedef T value_type;
typedef vec<5, T, Q> type;
typedef vec<5, bool, Q> bool_type;
// -- Da... | 38.717452 | 110 | 0.686628 | gchunev |
66cfd0d171eeeb1358dba701d9c51814d629158d | 2,469 | cpp | C++ | stringext.cpp | AlpsMonaco/BinInCpp | feffcda6ae63b81946aefbaa88dbb1559c22217f | [
"MIT"
] | null | null | null | stringext.cpp | AlpsMonaco/BinInCpp | feffcda6ae63b81946aefbaa88dbb1559c22217f | [
"MIT"
] | null | null | null | stringext.cpp | AlpsMonaco/BinInCpp | feffcda6ae63b81946aefbaa88dbb1559c22217f | [
"MIT"
] | null | null | null | #include "stringext.h"
namespace stringext
{
void ReplaceAll(std::string &s, const std::string &from, const std::string &to)
{
size_t index = 0;
while ((index = s.find(from, index)) != std::string::npos)
{
s.replace(index, from.length(), to);
index += to.length();
}
}
void ReplaceAll(std::string &s,... | 24.69 | 121 | 0.603888 | AlpsMonaco |
66d2e2e4b36375ec233ca1ff385b825f3712d3c7 | 704 | cpp | C++ | matu137.cpp | NewtonVan/Fxxk_Y0u_m47u | d303c7f13c074b5462ac8390a9ff94e546099fac | [
"MIT"
] | 1 | 2020-09-26T16:47:16.000Z | 2020-09-26T16:47:16.000Z | matu137.cpp | NewtonVan/Fxxk_Y0u_m47u | d303c7f13c074b5462ac8390a9ff94e546099fac | [
"MIT"
] | null | null | null | matu137.cpp | NewtonVan/Fxxk_Y0u_m47u | d303c7f13c074b5462ac8390a9ff94e546099fac | [
"MIT"
] | 1 | 2020-09-26T16:47:40.000Z | 2020-09-26T16:47:40.000Z | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cmath>
using namespace std;
class Ctriangle{
double a, b, c;
public:
Ctriangle(double aa, double bb, double cc) : a(aa), b(bb), c(cc){}
Ctriangle(){}
void display();
double GetArea();
double GetPerimeter();
};
void Ctriangle... | 17.170732 | 67 | 0.629261 | NewtonVan |
202d43b10ae1b8103a0820ce6478817f52ba4094 | 1,261 | cpp | C++ | cuda/CudaPartition.cpp | jdinkla/parallel2015_gpucomputing | 15654399897d891637bb466bcca0e5aa73c22fce | [
"MIT"
] | 1 | 2020-03-13T18:40:07.000Z | 2020-03-13T18:40:07.000Z | cuda/CudaPartition.cpp | jdinkla/parallel2015_gpucomputing | 15654399897d891637bb466bcca0e5aa73c22fce | [
"MIT"
] | 1 | 2019-06-09T14:33:31.000Z | 2019-06-18T20:35:30.000Z | cuda/CudaPartition.cpp | jdinkla/parallel2015_gpucomputing | 15654399897d891637bb466bcca0e5aa73c22fce | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015 by Joern Dinkla, www.dinkla.com, All rights reserved.
*
* See the LICENSE file in the root directory.
*/
#include "CudaPartition.h"
using namespace std;
vector<CudaPartition> calc_partitions(GPUs& gpus, const Extent2& extent)
{
vector<CudaPartition> partitions;
const int nu... | 23.792453 | 132 | 0.680412 | jdinkla |
20340d83f323bb09267d40a675a18c7c2f7c80d2 | 9,849 | cpp | C++ | windows_agent/TestCollect/SoftwareCollector.cpp | syslist/Syslist | 1b8c1051a6423a98bdc09d55904f2de63b3fe95c | [
"MIT"
] | 7 | 2016-08-07T01:11:30.000Z | 2021-01-27T11:03:02.000Z | windows_agent/TestCollect/SoftwareCollector.cpp | syslist/Syslist | 1b8c1051a6423a98bdc09d55904f2de63b3fe95c | [
"MIT"
] | 1 | 2018-07-02T14:01:04.000Z | 2018-07-02T14:01:04.000Z | windows_agent/TestCollect/SoftwareCollector.cpp | syslist/Syslist | 1b8c1051a6423a98bdc09d55904f2de63b3fe95c | [
"MIT"
] | 6 | 2016-12-01T02:11:39.000Z | 2022-03-26T03:31:27.000Z | #include "stdafx.h"
#include "SoftwareCollector.h"
#include "KeyDecode.h"
#include <sstream>
char SW_INFO_PATH[] = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall";
char SW_MS_OFFICE_PATH[] = "Software\\Microsoft\\Office";
long SW_INFO_PATH_LEN = sizeof (SW_INFO_PATH);
char* SWCL_TAG = "SoftwareList... | 28.301724 | 135 | 0.648797 | syslist |
203532959ca2a192bf9409770eb25396ad402125 | 1,599 | cpp | C++ | window.cpp | lewez/zombie-game | fdfefc312aaac4848a025c150e0862ca37a71fca | [
"MIT"
] | 1 | 2019-04-26T12:57:05.000Z | 2019-04-26T12:57:05.000Z | window.cpp | lewez/zombie-game | fdfefc312aaac4848a025c150e0862ca37a71fca | [
"MIT"
] | null | null | null | window.cpp | lewez/zombie-game | fdfefc312aaac4848a025c150e0862ca37a71fca | [
"MIT"
] | null | null | null | /* MIT License
Copyright (c) 2019 Lewis Clark
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | 29.611111 | 78 | 0.762977 | lewez |
2038570c3414f4bccef2da6105fff771dbe0df27 | 3,083 | cpp | C++ | p2p/xxx/peer_storage.cpp | akhavr/beam | 99e427f6ba0a0ee1a0dbe598d0fa6d642e571d62 | [
"Apache-2.0"
] | null | null | null | p2p/xxx/peer_storage.cpp | akhavr/beam | 99e427f6ba0a0ee1a0dbe598d0fa6d642e571d62 | [
"Apache-2.0"
] | null | null | null | p2p/xxx/peer_storage.cpp | akhavr/beam | 99e427f6ba0a0ee1a0dbe598d0fa6d642e571d62 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 The Beam 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 required by applicable law or agre... | 24.862903 | 86 | 0.600389 | akhavr |
203a1e29d6c664f030bff9cd2c44a3894a036e38 | 193 | hpp | C++ | libs/numeric/mtl/examples/gdbinit_example.hpp | lit-uriy/mtl4-mirror | 37cf7c2847165d3537cbc3400cb5fde6f80e3d8b | [
"MTLL"
] | 24 | 2019-03-26T15:25:45.000Z | 2022-03-26T10:00:45.000Z | libs/numeric/mtl/examples/gdbinit_example.hpp | lit-uriy/mtl4-mirror | 37cf7c2847165d3537cbc3400cb5fde6f80e3d8b | [
"MTLL"
] | 2 | 2020-04-17T12:35:32.000Z | 2021-03-03T15:46:25.000Z | libs/numeric/mtl/examples/gdbinit_example.hpp | lit-uriy/mtl4-mirror | 37cf7c2847165d3537cbc3400cb5fde6f80e3d8b | [
"MTLL"
] | 10 | 2019-12-01T13:40:30.000Z | 2022-01-14T08:39:54.000Z | python
import sys
# STL support and alike here
sys.path.insert(0, '/home/username/tools/gdb_printers/python')
from mtl.printers import register_mtl_printers
register_mtl_printers (None)
end
| 17.545455 | 62 | 0.80829 | lit-uriy |
2044e9c642160319e9658cb48ad579f1efad6561 | 6,323 | cpp | C++ | Frameworks/Helmet/Core/src/Plugin/Environment.cpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | 2 | 2018-02-07T01:19:37.000Z | 2018-02-09T14:27:48.000Z | Frameworks/Helmet/Core/src/Plugin/Environment.cpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | null | null | null | Frameworks/Helmet/Core/src/Plugin/Environment.cpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | null | null | null | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// Helmet Software Framework
//
// Copyright (C) 2018 Hat Boy Software, Inc.
//
// @author Matthew Alan Gray - <mgray@hatboysoftware.com>
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
#include "Environme... | 27.732456 | 88 | 0.47177 | hatboysoftware |
20454b4a1188ce6f0f195b84a5ec271f929c65d9 | 366 | hpp | C++ | src/Ast/LessThanCondition.hpp | JCube001/pl0 | a6ce723ffc7f639ab64d1a06946990fb6ec295d5 | [
"MIT"
] | null | null | null | src/Ast/LessThanCondition.hpp | JCube001/pl0 | a6ce723ffc7f639ab64d1a06946990fb6ec295d5 | [
"MIT"
] | null | null | null | src/Ast/LessThanCondition.hpp | JCube001/pl0 | a6ce723ffc7f639ab64d1a06946990fb6ec295d5 | [
"MIT"
] | null | null | null | #ifndef PL0_AST_LESS_THAN_CONDITION_HPP
#define PL0_AST_LESS_THAN_CONDITION_HPP
#include "Ast/BinaryCondition.hpp"
namespace PL0 {
namespace Ast {
struct LessThanCondition final : public BinaryCondition
{
void accept(Visitor& visitor) override
{ visitor.visit(*this); }
};
} // namespace Ast
} // namespace P... | 19.263158 | 55 | 0.773224 | JCube001 |
204a893f0e0c67829072d10a9fbc2d3baa2e1675 | 3,588 | hpp | C++ | include/chopper/build/read_data_file_and_set_high_level_bins.hpp | Felix-Droop/Chopper | 5cc214103b2d088ae400bec0fde8973e03dd3095 | [
"BSD-3-Clause"
] | null | null | null | include/chopper/build/read_data_file_and_set_high_level_bins.hpp | Felix-Droop/Chopper | 5cc214103b2d088ae400bec0fde8973e03dd3095 | [
"BSD-3-Clause"
] | null | null | null | include/chopper/build/read_data_file_and_set_high_level_bins.hpp | Felix-Droop/Chopper | 5cc214103b2d088ae400bec0fde8973e03dd3095 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cstdlib>
#include <set>
#include <string>
#include <vector>
#include <seqan3/std/charconv>
#include <chopper/build/build_config.hpp>
#include <chopper/build/build_data.hpp>
#include <chopper/detail_bin_prefixes.hpp>
#include <chopper/detail_parse_chopper_pack_line.hpp>
#include <chopper/detail... | 39 | 122 | 0.578595 | Felix-Droop |
204cb8a0ba405dd7cac79a70cacfa2fd5a22993a | 1,329 | hpp | C++ | include/literator/internal/filter_iterator_base.hpp | jason2506/literator | 452e5d1416bed80093d989c49cb27c3b665c4bba | [
"BSL-1.0"
] | null | null | null | include/literator/internal/filter_iterator_base.hpp | jason2506/literator | 452e5d1416bed80093d989c49cb27c3b665c4bba | [
"BSL-1.0"
] | null | null | null | include/literator/internal/filter_iterator_base.hpp | jason2506/literator | 452e5d1416bed80093d989c49cb27c3b665c4bba | [
"BSL-1.0"
] | null | null | null | // (c) Copyright David Abrahams 2002.
// (c) Copyright Jeremy Siek 2002.
// (c) Copyright Thomas Witt 2002.
// (c) Copyright Chi-En Wu 2016.
//
// 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)
#ifndef LITERATOR_I... | 26.58 | 71 | 0.684725 | jason2506 |
204e41cd089df96cb3a85ace70de165b3d007716 | 447 | cpp | C++ | msvcTemplate/vc2010/VC2010DuiLibWizard/Templates/2052/MainFrame.cpp | wenyongfan/DuiLib_DuiEditor | 087b0de316b7816a366a278e2439aef7cbc5ed26 | [
"BSD-2-Clause"
] | 72 | 2020-02-25T03:59:19.000Z | 2022-03-27T23:20:46.000Z | msvcTemplate/vc2010/VC2010DuiLibWizard/Templates/2052/MainFrame.cpp | wenyongfan/DuiLib_DuiEditor | 087b0de316b7816a366a278e2439aef7cbc5ed26 | [
"BSD-2-Clause"
] | 3 | 2021-03-17T14:42:54.000Z | 2022-02-13T09:03:37.000Z | msvcTemplate/vc2010/VC2010DuiLibWizard/Templates/2052/MainFrame.cpp | wenyongfan/DuiLib_DuiEditor | 087b0de316b7816a366a278e2439aef7cbc5ed26 | [
"BSD-2-Clause"
] | 31 | 2020-03-15T01:57:50.000Z | 2022-03-19T11:10:29.000Z | #include "StdAfx.h"
#include "MainFrame.h"
CMainFrame::CMainFrame(void)
{
}
CMainFrame::~CMainFrame(void)
{
}
void CMainFrame::InitWindow()
{
}
bool CMainFrame::OnCustomMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
return false;
}
bool CMainFrame::OnMenuCommand(const MenuCmd *cmd)
{
return false;
}
bo... | 11.763158 | 73 | 0.733781 | wenyongfan |
204eb679e842f9be8e90207999d270514f8bc630 | 259 | hpp | C++ | src/vm/include/nk/vm/interp.hpp | nickl-lang/nickl | bc68fb85b81eea770907ad1dbe8f680178fa9937 | [
"BSD-3-Clause"
] | 1 | 2022-02-09T10:56:50.000Z | 2022-02-09T10:56:50.000Z | src/vm/include/nk/vm/interp.hpp | nickl-lang/nickl | bc68fb85b81eea770907ad1dbe8f680178fa9937 | [
"BSD-3-Clause"
] | null | null | null | src/vm/include/nk/vm/interp.hpp | nickl-lang/nickl | bc68fb85b81eea770907ad1dbe8f680178fa9937 | [
"BSD-3-Clause"
] | null | null | null | #ifndef HEADER_GUARD_NK_VM_INTERP
#define HEADER_GUARD_NK_VM_INTERP
#include "nk/vm/bc.hpp"
namespace nk {
namespace vm {
void interp_invoke(type_t self, value_t ret, value_t args);
} // namespace vm
} // namespace nk
#endif // HEADER_GUARD_NK_VM_INTERP
| 17.266667 | 59 | 0.772201 | nickl-lang |
204faf8cc4fd0bf00282909c9527af49a36dae68 | 577 | cpp | C++ | creating of nodes.cpp | Pratikrocks/linked--lists | 7832fed689ba25008b6136da2c7ea17b759fb6e7 | [
"MIT"
] | null | null | null | creating of nodes.cpp | Pratikrocks/linked--lists | 7832fed689ba25008b6136da2c7ea17b759fb6e7 | [
"MIT"
] | null | null | null | creating of nodes.cpp | Pratikrocks/linked--lists | 7832fed689ba25008b6136da2c7ea17b759fb6e7 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
struct node
{
int data;
struct node *next;
};
void print(struct node*n)
{
while(n!=NULL)
{
cout<<n->data<<" ";
n=n->next;
}
}
int main()
{
struct node*head=NULL;
struct node*first=NULL;
struct node*second=NULL;
head=(struct node*)malloc... | 16.485714 | 51 | 0.632582 | Pratikrocks |
205c63011276c504199caa68bb444b85b1dbb6f4 | 1,728 | cpp | C++ | Graphics/Drawing/scale.cpp | YemSalat/jetcat | 6fffb814759bb7e46a9967e2c6226df3a1a0eb91 | [
"MIT"
] | 1 | 2016-04-20T13:47:20.000Z | 2016-04-20T13:47:20.000Z | Graphics/Drawing/scale.cpp | YemSalat/jetcat | 6fffb814759bb7e46a9967e2c6226df3a1a0eb91 | [
"MIT"
] | null | null | null | Graphics/Drawing/scale.cpp | YemSalat/jetcat | 6fffb814759bb7e46a9967e2c6226df3a1a0eb91 | [
"MIT"
] | null | null | null | /********************************************************************************/
/* Portable Graphics Library for Embedded Systems * (C) Componentality Oy, 2015 */
/* Initial design and development: Konstantin A. Khait */
/* Support, comments and questions: dev@componentality.com ... | 33.230769 | 82 | 0.548032 | YemSalat |
205c891c1bd6ff5bdd8940cb2e0c9c229f9be53a | 1,113 | cpp | C++ | Chapter_5_Mathematics/Probability/kattis_anthony.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_5_Mathematics/Probability/kattis_anthony.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_5_Mathematics/Probability/kattis_anthony.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - anthony
* A relatively simple probability problem. The neat trick here is that we don't need to use
* both c_left and a_left as DP parameters since a_left + c_left = n - game so we can recover
* it from a_left and game.
*
* Time: O(a*(a+c)), Space: O(a*(a+c))
*/
#pragma GCC optimize("Ofast")
#pragma ... | 29.289474 | 114 | 0.617251 | BrandonTang89 |
205f2e1b4ac818c618cb2cabdb762fca7fbb673c | 14,763 | cpp | C++ | Test.cpp | Sarah-han/War-game-a-b | 7ac91779b294f12fc9616836166a9efde9d711f2 | [
"MIT"
] | null | null | null | Test.cpp | Sarah-han/War-game-a-b | 7ac91779b294f12fc9616836166a9efde9d711f2 | [
"MIT"
] | null | null | null | Test.cpp | Sarah-han/War-game-a-b | 7ac91779b294f12fc9616836166a9efde9d711f2 | [
"MIT"
] | null | null | null | #include "doctest.h"
#include <stdbool.h>
#include "Board.hpp"
#include "FootCommander.hpp"
#include "FootSoldier.hpp"
#include "Paramedic.hpp"
#include "ParamedicCommander.hpp"
#include "Sniper.hpp"
#include "SniperCommander.hpp"
#include "Soldier.hpp"
using namespace WarGame;
TEST_CASE("Snipers And Paramedics") {
... | 66.800905 | 156 | 0.681095 | Sarah-han |
20655d6ec142d8aabab826e5c12e0809b6338ef7 | 17,930 | c++ | C++ | src/Note.c++ | dsvi/NotesTree | e9f932027281f8eb2e53dcd250d99bc48caeeabf | [
"Zlib"
] | null | null | null | src/Note.c++ | dsvi/NotesTree | e9f932027281f8eb2e53dcd250d99bc48caeeabf | [
"Zlib"
] | null | null | null | src/Note.c++ | dsvi/NotesTree | e9f932027281f8eb2e53dcd250d99bc48caeeabf | [
"Zlib"
] | null | null | null | #include "Note.h"
using namespace std;
using namespace boost::filesystem;
const char Note::delimChar;
Note::Note()
{
}
Note::~Note()
{
}
bool Note::hasAttach()
{
if (parent_)
return exists(attachDir());
return false;
}
QString Note::decodeFromFilename(const boost::filesystem::path &filename)
{
QString ret;
... | 24.002677 | 115 | 0.649805 | dsvi |
2069353ea4fa81075506c54b491868cdc1ece792 | 3,192 | cpp | C++ | data_structure/splay/RANK_TREE_SPLAY.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | data_structure/splay/RANK_TREE_SPLAY.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | data_structure/splay/RANK_TREE_SPLAY.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | template<typename T>
struct SPLAY {
//0 is invalid
int c[MAXN][2], fa[MAXN], cnt[MAXN], siz[MAXN], tot, root;
T keys[MAXN];
#define ls(rt) c[rt][0]
#define rs(rt) c[rt][1]
void Init() {
root = tot = 0;
}
bool Side(int rt) {
return rt == rc(fa[rt]);
}
void PushUp(int rt) {
siz[rt] = cnt[rt];
if (lc(rt))... | 19.703704 | 59 | 0.515038 | searchstar2017 |
2069a4e15b5fb0b5fe3c1a28e8f6e453111a30f4 | 1,563 | hpp | C++ | src/res/Prefab/ComponentParsing/ParseTransformComponent.hpp | awwdev/MiniSTL | 218998f6109a2a42c0017b4255bec48a235998c3 | [
"MIT"
] | 5 | 2021-02-10T19:14:32.000Z | 2021-11-19T13:29:55.000Z | src/res/Prefab/ComponentParsing/ParseTransformComponent.hpp | awwdev/MiniSTL | 218998f6109a2a42c0017b4255bec48a235998c3 | [
"MIT"
] | 41 | 2020-05-16T09:56:45.000Z | 2020-07-05T15:14:33.000Z | src/res/Prefab/ComponentParsing/ParseTransformComponent.hpp | awwdev/MiniSTL | 218998f6109a2a42c0017b4255bec48a235998c3 | [
"MIT"
] | 2 | 2021-07-21T22:21:41.000Z | 2021-09-06T19:25:11.000Z | //https://github.com/awwdev
#pragma once
#include "ecs/Components/TransformComponent.hpp"
#include "res/Prefab/ComponentParsing/ComponentMember.hpp"
namespace rpg::res {
inline auto ParseTransformComponent(ComponentMemberPairs const& pairs)
{
ecs::TransformComponent transformComponent {};
FOR_ARRAY(pairs, i)... | 31.897959 | 98 | 0.535509 | awwdev |
206b9a298595565ea89c60d9dd381c847a5f16e2 | 2,309 | cpp | C++ | ComTest/main.cpp | iclosure/com422 | 7279f625ad9dd2e6c374e61608074fdaf206f326 | [
"MIT"
] | 1 | 2018-09-20T07:45:43.000Z | 2018-09-20T07:45:43.000Z | ComTest/main.cpp | iclosure/com422 | 7279f625ad9dd2e6c374e61608074fdaf206f326 | [
"MIT"
] | null | null | null | ComTest/main.cpp | iclosure/com422 | 7279f625ad9dd2e6c374e61608074fdaf206f326 | [
"MIT"
] | null | null | null | // ComTest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
//#include "test_comapi_load.h"
//#include "test_comapi_speed.h"
//#include "test_comm.h"
#include "moxa/pcomm.h"
#include "serialport/serialport.h"
#pragma comment(lib, "moxa/pcomm")
#define HR_DEBUG_PRIN... | 18.181102 | 92 | 0.686011 | iclosure |
2075bcb585d944b48c82d9b8299daafb2440718e | 11,733 | cpp | C++ | src/AudioFrame.cpp | SolarAquarion/ffmpegyag | bb77508afd7dd30b853ff8e56a9a062c01ca8237 | [
"MIT"
] | 12 | 2017-09-24T06:27:25.000Z | 2022-02-02T09:40:38.000Z | src/AudioFrame.cpp | SolarAquarion/ffmpegyag | bb77508afd7dd30b853ff8e56a9a062c01ca8237 | [
"MIT"
] | 3 | 2017-09-24T06:34:06.000Z | 2018-06-11T05:31:21.000Z | src/AudioFrame.cpp | SolarAquarion/ffmpegyag | bb77508afd7dd30b853ff8e56a9a062c01ca8237 | [
"MIT"
] | 4 | 2018-03-02T15:23:12.000Z | 2019-06-05T12:07:13.000Z | #include "AudioFrame.h"
AudioFrame::AudioFrame(int64_t FrameTimestamp, int64_t FrameTimecode, int64_t FrameDuration, int FrameSampleRate, int FrameChannels, AVSampleFormat FrameSampleFormat, size_t FrameSampleCount)
{
Timestamp = FrameTimestamp;
Timecode = FrameTimecode;
Duration = FrameDuration;
Sampl... | 37.605769 | 191 | 0.534987 | SolarAquarion |
208c9c87b731803550534e629c27e52784c2aa37 | 3,207 | hpp | C++ | src/webots/vrml/WbFieldModel.hpp | binppo/webots | 9ac92fb46265173f25ac2358e052e3a04991cf01 | [
"Apache-2.0"
] | null | null | null | src/webots/vrml/WbFieldModel.hpp | binppo/webots | 9ac92fb46265173f25ac2358e052e3a04991cf01 | [
"Apache-2.0"
] | null | null | null | src/webots/vrml/WbFieldModel.hpp | binppo/webots | 9ac92fb46265173f25ac2358e052e3a04991cf01 | [
"Apache-2.0"
] | 1 | 2021-09-09T10:34:42.000Z | 2021-09-09T10:34:42.000Z | // Copyright 1996-2019 Cyberbotics 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 agr... | 30.836538 | 108 | 0.741191 | binppo |
208e009d0f1045a14240785fd3d86d3cffe85fd9 | 5,020 | cpp | C++ | UnitTests/ZilchShaders/RendererShared.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | UnitTests/ZilchShaders/RendererShared.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | UnitTests/ZilchShaders/RendererShared.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Joshua Davis
/// Copyright 2015, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
String mFragmentExtension = "zilchfrag... | 32.179487 | 184 | 0.629681 | RachelWilSingh |
208ef8e54f0800ecc365ca834868adf9d5b9d3d5 | 930 | cpp | C++ | Challenge-2020-07/3_sum.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2020-07/3_sum.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2020-07/3_sum.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | #include "header.h"
class Solution {
public:
vector<vector<int>> threeSum(vector<int>& nums) {
vector<vector<int>> res;
int size = nums.size();
sort(nums.begin(), nums.end());
for (int i = 0; i < size - 2; i++) {
if ( i > 0 && nums[i] > 0) break;
if (nums[i] ... | 29.0625 | 64 | 0.352688 | qiufengyu |
2092d9f3af99ecdf098a4d38c0c597b3884ff79e | 1,256 | cc | C++ | src/gui/ScreenManager.cc | shiromino/shiromino | 10e9bc650417ea05d5990836c64709af3f82ec5e | [
"CC-BY-4.0"
] | 23 | 2020-07-12T22:49:10.000Z | 2022-03-15T17:58:22.000Z | src/gui/ScreenManager.cc | shiromino/shiromino | 10e9bc650417ea05d5990836c64709af3f82ec5e | [
"CC-BY-4.0"
] | 64 | 2020-07-12T22:27:53.000Z | 2022-01-02T23:10:24.000Z | src/gui/ScreenManager.cc | shiromino/shiromino | 10e9bc650417ea05d5990836c64709af3f82ec5e | [
"CC-BY-4.0"
] | 8 | 2020-08-30T04:16:17.000Z | 2021-06-28T17:12:06.000Z | #include "ScreenManager.h"
#include "CoreState.h"
#include "game_qs.h"
GUIScreen *mainMenu_create(CoreState *cs, ScreenManager *mngr, BitFont& font)
{
SDL_Rect destRect = {0, 0, 640, 480};
GUIScreen *mainMenu = new GUIScreen {cs, "Main Menu", mainMenuInteractionCallback, destRect};
SDL_Rect pentominoRect ... | 27.911111 | 97 | 0.599522 | shiromino |
2096cde2cb4d401e3d8d98efe3743aa451fc3fff | 20,092 | cpp | C++ | tests/unittests/tiglWingGuideCurves.cpp | MarAlder/tigl | 76e1f1442a045e1b8b7954119ca6f9c883ea41e2 | [
"Apache-2.0"
] | null | null | null | tests/unittests/tiglWingGuideCurves.cpp | MarAlder/tigl | 76e1f1442a045e1b8b7954119ca6f9c883ea41e2 | [
"Apache-2.0"
] | null | null | null | tests/unittests/tiglWingGuideCurves.cpp | MarAlder/tigl | 76e1f1442a045e1b8b7954119ca6f9c883ea41e2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2007-2014 German Aerospace Center (DLR/SC)
*
* Created: 2014-02-10 Tobias Stollenwerk <Tobias.Stollenwerk@dlr.de>
*
* 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
*
... | 43.678261 | 244 | 0.689578 | MarAlder |
2098ec4d8fdccefe938aa81571c5dcb93d2384c6 | 28,136 | cpp | C++ | tools/geomc/main.cpp | tonipes/wargrid | 2458f3f606f28fe6892c67eb736d5c8282d02c85 | [
"MIT"
] | null | null | null | tools/geomc/main.cpp | tonipes/wargrid | 2458f3f606f28fe6892c67eb736d5c8282d02c85 | [
"MIT"
] | null | null | null | tools/geomc/main.cpp | tonipes/wargrid | 2458f3f606f28fe6892c67eb736d5c8282d02c85 | [
"MIT"
] | null | null | null | // ============================================================================
// Kimberlite
//
// Copyright 2020 Toni Pesola. All Rights Reserved.
// ============================================================================
#define KB_TOOL_ONLY
#include <kb/foundation/core.h>
#include <kb/foundation/time.h>
... | 39.965909 | 156 | 0.634987 | tonipes |
20a308d486b7a79728cd79ccd05269545e2bae92 | 8,630 | cpp | C++ | src/GreenThumbFrame.cpp | captain-igloo/greenthumb | 39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72 | [
"MIT"
] | 3 | 2019-04-08T19:17:51.000Z | 2019-05-21T01:01:29.000Z | src/GreenThumbFrame.cpp | captain-igloo/greenthumb | 39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72 | [
"MIT"
] | 1 | 2019-04-30T23:39:06.000Z | 2019-07-27T00:07:20.000Z | src/GreenThumbFrame.cpp | captain-igloo/greenthumb | 39d62004e6f6b6fa7da52b3f6ff1c198b04e1d72 | [
"MIT"
] | 1 | 2019-02-28T09:22:18.000Z | 2019-02-28T09:22:18.000Z | /**
* Copyright 2019 Colin Doig. Distributed under the MIT license.
*/
#include <time.h>
#include <wx/wx.h>
#include <wx/menu.h>
#include <wx/sizer.h>
#include <wx/treectrl.h>
#include "dialog/LoginDialog.h"
#include "dialog/Settings.h"
#include "entity/Config.h"
#include "worker/GetAccountDetails.h"
#include "w... | 33.710938 | 97 | 0.696524 | captain-igloo |
20a3608d9b8d9ca4382e05da72b8563d06559736 | 1,880 | cpp | C++ | C++/03-currying_lambda.cpp | duinomaker/LearningStuff | 34f8e3338dd2322013d519c19230c12fcb7897d4 | [
"CC0-1.0"
] | null | null | null | C++/03-currying_lambda.cpp | duinomaker/LearningStuff | 34f8e3338dd2322013d519c19230c12fcb7897d4 | [
"CC0-1.0"
] | null | null | null | C++/03-currying_lambda.cpp | duinomaker/LearningStuff | 34f8e3338dd2322013d519c19230c12fcb7897d4 | [
"CC0-1.0"
] | null | null | null | #include <deque>
#include <functional>
#include <iostream>
#include <iterator>
using namespace std;
// Automatic Currying
template<typename Ret, typename Arg>
auto curry_(function<Ret(Arg)> f) {
return f;
}
template<typename Ret, typename Arg, typename ...Args>
auto curry_(function<Ret(Arg, Args...)> f) {
r... | 20.659341 | 73 | 0.605319 | duinomaker |
20a736689f90c32671db6c5206d35bb451770a23 | 11,784 | cpp | C++ | src/interpreter.cpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | src/interpreter.cpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | src/interpreter.cpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | #include "interpreter.hpp"
#include "reply.hpp"
#include "except.hpp"
#include "exec_state.hpp"
#include "opcodes.hpp"
#include "op_map.hpp"
#include "op_package.hpp"
#include "type_registry.hpp"
#include "listvar.hpp"
#include "strvar.hpp"
#include "intvar.hpp"
#include "realvar.hpp"
#include <iostream>
namespace Mo... | 34.761062 | 129 | 0.535048 | mujido |
20a7c5edda5c2d6f6d9acd98ea6904ba7f25d77c | 1,488 | cpp | C++ | 318-1.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 318-1.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 318-1.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | class UnionFind {
private:
vector<int> p, size;
public:
UnionFind(int N) {
p.assign(N, 0);
size.assign(N, 1);
for (int i = 0; i < N; i++)
p[i] = i;
}
int findSet(int u) {
return p[u] == u ? u : p[u] = findSet(p[u]);
}
bool isSameSet(int u, int v) {
... | 26.105263 | 77 | 0.373656 | Alex-Amber |
20acd8cb9b1b1f66f72c62cb38837fc199432b63 | 22,041 | cpp | C++ | fileformats/DFFaceTex.cpp | Pickle/XLEngine | c1aa5cf4584cb1940373505e4350336662fecf43 | [
"MIT"
] | 179 | 2018-04-04T12:35:07.000Z | 2021-11-28T03:53:30.000Z | fileformats/DFFaceTex.cpp | Pickle/XLEngine | c1aa5cf4584cb1940373505e4350336662fecf43 | [
"MIT"
] | 34 | 2018-04-04T17:15:40.000Z | 2021-11-28T03:01:22.000Z | fileformats/DFFaceTex.cpp | Pickle/XLEngine | c1aa5cf4584cb1940373505e4350336662fecf43 | [
"MIT"
] | 25 | 2018-04-04T23:49:46.000Z | 2022-02-05T01:02:58.000Z | /*===========================================================================
*
* File: DF_3DSTex.CPP
* Author: Dave Humphrey (uesp@m0use.net)
* Created On: Friday, March 22, 2002
*
* Implements 3DS specific texture and material related export functions
* for Daggerfall 3D objects.
*
*===================... | 44.89002 | 132 | 0.517581 | Pickle |
20acef1fd0a9644eaf0ffa1eb7422fe27bc42720 | 1,098 | hpp | C++ | ringOS-Beta17/src/interrupts/interrupts.hpp | ElectroBoy404NotFound/ringOS | 9c109828363f3dc8b957dc58ecdfd5bc8d81e1a4 | [
"MIT"
] | 1 | 2021-12-05T15:49:40.000Z | 2021-12-05T15:49:40.000Z | ringOS-Beta17/src/interrupts/interrupts.hpp | ElectroBoy404NotFound/ringOS | 9c109828363f3dc8b957dc58ecdfd5bc8d81e1a4 | [
"MIT"
] | null | null | null | ringOS-Beta17/src/interrupts/interrupts.hpp | ElectroBoy404NotFound/ringOS | 9c109828363f3dc8b957dc58ecdfd5bc8d81e1a4 | [
"MIT"
] | null | null | null | #pragma once
#include "../BasicRenderer.hpp"
#include "../userinput/mouse.hpp"
#define PIC1_COMMAND 0x20
#define PIC1_DATA 0x21
#define PIC2_COMMAND 0xA0
#define PIC2_DATA 0xA1
#define PIC_EOI 0x20
#define ICW1_INIT 0x10
#define ICW1_ICW4 0x01
#define ICW4_8086 0x01
struct interrupt_frame;
__attribute... | 40.666667 | 107 | 0.802368 | ElectroBoy404NotFound |
20b3b3b5c4ec4e5b3633641a674be51d8ea7cd2b | 16,421 | cpp | C++ | OpenGL/src/tests/TestAdvanced.cpp | ilkeraktug/OpenGL | ddf639166e75c96e02864dd92aea7a562cf36a72 | [
"MIT"
] | null | null | null | OpenGL/src/tests/TestAdvanced.cpp | ilkeraktug/OpenGL | ddf639166e75c96e02864dd92aea7a562cf36a72 | [
"MIT"
] | null | null | null | OpenGL/src/tests/TestAdvanced.cpp | ilkeraktug/OpenGL | ddf639166e75c96e02864dd92aea7a562cf36a72 | [
"MIT"
] | null | null | null | #include "TestAdvanced.h"
#include "VertexBufferLayout.h"
namespace test {
TestAdvanced::TestAdvanced()
: camera(&m_Proj, &m_View, 1280.0f, 768.0f)
{
GLCall(glEnable(GL_DEPTH_TEST));
GLCall(glDepthFunc(GL_LESS));
/* glEnable(GL_PROGRAM_POINT_SIZE);
GLCall(glEnable(GL_... | 44.261456 | 140 | 0.552281 | ilkeraktug |
20b83187f4fb38bb0026e9567dc41efb574b4cd5 | 17,034 | cpp | C++ | game/shared/EntityClasses.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 83 | 2016-06-10T20:49:23.000Z | 2022-02-13T18:05:11.000Z | game/shared/EntityClasses.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 26 | 2016-06-16T22:27:24.000Z | 2019-04-30T19:25:51.000Z | game/shared/EntityClasses.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 58 | 2016-06-10T23:52:33.000Z | 2021-12-30T02:30:50.000Z | #include <algorithm>
#include <cstdio>
#include "extdll.h"
#include "util.h"
#include "DefaultClassifications.h"
#include "EntityClasses.h"
//TODO: move to utility header - Solokiller
//Taken from cppreference.com documentation for std::lower_bound - Solokiller
template<class ForwardIt, class T, class Compare = std... | 29.470588 | 190 | 0.739345 | xalalau |
20ba2f04decb2e79b9054982b3c3ac7cad79d59e | 1,631 | hh | C++ | include/io/rest.hh | king1600/Valk | b376a0dcce522ae03ced7d882835e4dea98df86e | [
"MIT"
] | null | null | null | include/io/rest.hh | king1600/Valk | b376a0dcce522ae03ced7d882835e4dea98df86e | [
"MIT"
] | null | null | null | include/io/rest.hh | king1600/Valk | b376a0dcce522ae03ced7d882835e4dea98df86e | [
"MIT"
] | null | null | null | #pragma once
#include "http.hh"
namespace io {
using RestCallback = std::function<void(const json&)>;
static const json JSON_EMPTY = json::parse("{}");
static const RestCallback CB_NONE = [](const json& j){};
class RestRequest {
public:
json data;
std::string method;
std::string endpoint;
... | 25.092308 | 72 | 0.669528 | king1600 |
20ba5330cab4477274432ce6129c724719399f12 | 922 | hpp | C++ | plugins/help_mongo/include/help_mongo/help_mongo.hpp | myappbase/myappbase | 5a405ca0c1411da48ee755874b11dfb4ee625155 | [
"MIT"
] | null | null | null | plugins/help_mongo/include/help_mongo/help_mongo.hpp | myappbase/myappbase | 5a405ca0c1411da48ee755874b11dfb4ee625155 | [
"MIT"
] | null | null | null | plugins/help_mongo/include/help_mongo/help_mongo.hpp | myappbase/myappbase | 5a405ca0c1411da48ee755874b11dfb4ee625155 | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in myappbase/LICENSE
*/
#pragma once
#include <string>
#include <bsoncxx/builder/basic/kvp.hpp>
#include <bsoncxx/builder/basic/document.hpp>
#include <bsoncxx/builder/stream/document.hpp>
#include <bsoncxx/exception/exception.hpp>
#include <bsoncxx/json.hpp>
#include <mongocxx/clie... | 27.117647 | 75 | 0.712581 | myappbase |
20baf3805dca450bd4450c313df25c6688db4669 | 1,324 | hh | C++ | XRADGUI/Sources/RasterImageFile/RasterImageFile.hh | n-kulberg/xrad | 3d089cc24d942db4649f1a50defbd69f01739ae2 | [
"BSD-3-Clause"
] | 1 | 2021-04-02T16:47:00.000Z | 2021-04-02T16:47:00.000Z | XRADGUI/Sources/RasterImageFile/RasterImageFile.hh | n-kulberg/xrad | 3d089cc24d942db4649f1a50defbd69f01739ae2 | [
"BSD-3-Clause"
] | null | null | null | XRADGUI/Sources/RasterImageFile/RasterImageFile.hh | n-kulberg/xrad | 3d089cc24d942db4649f1a50defbd69f01739ae2 | [
"BSD-3-Clause"
] | 3 | 2021-08-30T11:26:23.000Z | 2021-09-23T09:39:56.000Z |
#ifndef __RasterImageFile_hh
//#error This file must be included from "RasterImageFile.h" only
#endif
XRAD_BEGIN
template<class RGB_IMAGE_T>
RGB_IMAGE_T RasterImageFile::rgb()
{
using value_type = typename RGB_IMAGE_T::value_type;
ColorImageF64 buffer = rgb_internal();
double scalefactor = scalefactor_calcu... | 24.072727 | 123 | 0.762085 | n-kulberg |
20bb811d1aae729460f3e6f60b4cf4d83f0c03e6 | 742 | cpp | C++ | docs/mfc/codesnippet/CPP/mfc-activex-controls-creating-an-automation-server_2.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/codesnippet/CPP/mfc-activex-controls-creating-an-automation-server_2.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-04-01T04:17:07.000Z | 2021-04-01T04:17:07.000Z | docs/mfc/codesnippet/CPP/mfc-activex-controls-creating-an-automation-server_2.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | void CCircDlg::OnOK()
{
UpdateData(); // Get the current data from the dialog box.
CCirc2 circ; // Create a wrapper class for the ActiveX object.
COleException e; // In case of errors
// Create the ActiveX object.
// The name is the control's progid; look it up using OleView
if (circ.CreateDi... | 35.333333 | 68 | 0.642857 | jmittert |
20c051b1a532c68c0f76f2ca0f302595f86136cf | 1,425 | cpp | C++ | tests/external/libcxx/array/compare.pass.cpp | GlitterIsMe/libpmemobj-cpp | 71c614ca4c8bb769cf8bb01550acc1ca1c76d6bc | [
"BSD-3-Clause"
] | 1 | 2018-11-06T13:09:12.000Z | 2018-11-06T13:09:12.000Z | tests/external/libcxx/array/compare.pass.cpp | GlitterIsMe/libpmemobj-cpp | 71c614ca4c8bb769cf8bb01550acc1ca1c76d6bc | [
"BSD-3-Clause"
] | null | null | null | tests/external/libcxx/array/compare.pass.cpp | GlitterIsMe/libpmemobj-cpp | 71c614ca4c8bb769cf8bb01550acc1ca1c76d6bc | [
"BSD-3-Clause"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 22.619048 | 80 | 0.54386 | GlitterIsMe |
20c3629dd29990b7bdb2273bbc8cef74b2040ff3 | 289,875 | cpp | C++ | Development/SDKs/1.7.1/SDK/AIModule_functions.cpp | ResaloliPT/HydroneerReleases | 3a3501f04608cea77ccbf7229f94089295128ea7 | [
"Unlicense"
] | null | null | null | Development/SDKs/1.7.1/SDK/AIModule_functions.cpp | ResaloliPT/HydroneerReleases | 3a3501f04608cea77ccbf7229f94089295128ea7 | [
"Unlicense"
] | null | null | null | Development/SDKs/1.7.1/SDK/AIModule_functions.cpp | ResaloliPT/HydroneerReleases | 3a3501f04608cea77ccbf7229f94089295128ea7 | [
"Unlicense"
] | null | null | null | // Name: Hydroneer, Version: 1.7.1
#include "../pch.h"
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Functions
//------------------------------------------------... | 36.7815 | 350 | 0.689304 | ResaloliPT |
20c8ee434e3d61bfed242485685487def4f3d90c | 21,599 | cpp | C++ | src/modules/hip/kernel/canny_edge_detector.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 26 | 2019-09-04T17:48:41.000Z | 2022-02-23T17:04:24.000Z | src/modules/hip/kernel/canny_edge_detector.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 57 | 2019-09-06T21:37:34.000Z | 2022-03-09T02:13:46.000Z | src/modules/hip/kernel/canny_edge_detector.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 24 | 2019-09-04T23:12:07.000Z | 2022-03-30T02:06:22.000Z | #include <hip/hip_runtime.h>
#include "rpp_hip_host_decls.hpp"
#define RPPABS(a) ((a < 0) ? (-a) : (a))
#define saturate_8u(value) ((value) > 255 ? 255 : ((value) < 0 ? 0 : (value)))
extern "C" __global__ void canny_ced_pln3_to_pln1(unsigned char *input,
unsigned char... | 36.795571 | 178 | 0.499097 | shobana-mcw |
20ccd2fede826b3d29e1aba3d5e679cb814a3688 | 6,628 | cpp | C++ | ModelGenerator/src/model_generator_tests.cpp | adam-lafontaine/AugmentedAI | a4736ce59963ee86313a5936aaf09f0f659e4184 | [
"MIT"
] | null | null | null | ModelGenerator/src/model_generator_tests.cpp | adam-lafontaine/AugmentedAI | a4736ce59963ee86313a5936aaf09f0f659e4184 | [
"MIT"
] | null | null | null | ModelGenerator/src/model_generator_tests.cpp | adam-lafontaine/AugmentedAI | a4736ce59963ee86313a5936aaf09f0f659e4184 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2021 Adam Lafontaine
*/
#include "../src/ModelGenerator.hpp"
#include "../src/pixel_conversion.hpp"
#include "../../utils/dirhelper.hpp"
#include "../../utils/test_dir.hpp"
#include <string>
#include <iostream>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <cstdio>
namespace di... | 22.855172 | 80 | 0.731895 | adam-lafontaine |
20cfddaafc69172e6bfe621cc5d77802b557bf0c | 315 | hpp | C++ | library/ATF/PIMAGE_RESOURCE_DIRECTORY_ENTRY.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/PIMAGE_RESOURCE_DIRECTORY_ENTRY.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/PIMAGE_RESOURCE_DIRECTORY_ENTRY.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_IMAGE_RESOURCE_DIRECTORY_ENTRY.hpp>
START_ATF_NAMESPACE
typedef _IMAGE_RESOURCE_DIRECTORY_ENTRY *PIMAGE_RESOURCE_DIRECTORY_ENTRY;
END_ATF_NAMESPACE
| 28.636364 | 108 | 0.828571 | lemkova |
20d0ec7f70f575369ab03c9eb8e0c00aac6c65dd | 17,083 | cpp | C++ | tests/one/arcus/arcus.cpp | i3D-net/ONE-GameHosting-SDK | 060473173136b2c8d9bc43aaad0eb487870dc115 | [
"BSD-3-Clause"
] | 6 | 2020-07-03T09:18:04.000Z | 2021-01-07T17:50:06.000Z | tests/one/arcus/arcus.cpp | i3D-net/ONE-GameHosting-SDK | 060473173136b2c8d9bc43aaad0eb487870dc115 | [
"BSD-3-Clause"
] | null | null | null | tests/one/arcus/arcus.cpp | i3D-net/ONE-GameHosting-SDK | 060473173136b2c8d9bc43aaad0eb487870dc115 | [
"BSD-3-Clause"
] | null | null | null | #include <catch.hpp>
#include <tests/one/arcus/util.h>
#include <functional>
#include <utility>
#include <one/arcus/array.h>
#include <one/arcus/internal/codec.h>
#include <one/arcus/internal/connection.h>
#include <one/arcus/internal/socket.h>
#include <one/arcus/internal/version.h>
#include <one/arcus/error.h>
#inc... | 35.295455 | 87 | 0.667447 | i3D-net |
20d5b08375dcb27748e86b9323cc50884bb0e90b | 84 | cpp | C++ | src/test/unit/multiple_translation_units1.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | src/test/unit/multiple_translation_units1.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/test/unit/multiple_translation_units1.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2018-08-28T12:09:08.000Z | 2018-08-28T12:09:08.000Z | #include <stan/model/model_header.hpp>
stan::math::var function1() {
return 0;
}
| 14 | 38 | 0.690476 | drezap |
20d603ef9954fc79b5eb3e03dd4911a8b7d6748c | 2,138 | hpp | C++ | include/hogl/detail/internal.hpp | maxk-org/hogl | 07a714da00075125cbf930bfacb59645493ad313 | [
"BSD-2-Clause"
] | 14 | 2015-08-25T20:17:16.000Z | 2021-08-24T11:28:02.000Z | include/hogl/detail/internal.hpp | maxk-org/hogl | 07a714da00075125cbf930bfacb59645493ad313 | [
"BSD-2-Clause"
] | 8 | 2016-06-15T16:49:01.000Z | 2019-10-05T19:12:12.000Z | include/hogl/detail/internal.hpp | maxk-org/hogl | 07a714da00075125cbf930bfacb59645493ad313 | [
"BSD-2-Clause"
] | 6 | 2015-09-30T00:00:12.000Z | 2021-08-02T20:43:56.000Z | /*
Copyright (c) 2015-2020 Max Krasnyansky <max.krasnyansky@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyr... | 27.063291 | 85 | 0.755847 | maxk-org |
20ddfc4d3bd4bc8693b5372cce680ca590fb96f5 | 2,385 | cpp | C++ | Labs/d6t2.cpp | Chalkydoge/FDU_DS | 8d2dec307d8dd641fbe3bcfa633cede9e1a45252 | [
"MIT"
] | 1 | 2020-09-16T06:17:14.000Z | 2020-09-16T06:17:14.000Z | Labs/d6t2.cpp | Chalkydoge/FDU_DS | 8d2dec307d8dd641fbe3bcfa633cede9e1a45252 | [
"MIT"
] | null | null | null | Labs/d6t2.cpp | Chalkydoge/FDU_DS | 8d2dec307d8dd641fbe3bcfa633cede9e1a45252 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
#include <stack>
using namespace std;
struct TreeNode{
int val;
TreeNode *left, *right;
TreeNode(int v) : val(v), left(NULL), right(NULL){}
};
TreeNode* buildTree(vector<int>& nums){
if(nums.size() == 0)
return NULL;
TreeNode *root = ... | 22.5 | 110 | 0.501468 | Chalkydoge |
221401a6eff107280df2b62b14a5c9d0b852a75a | 7,945 | cc | C++ | Cassie_Example/opt_two_step/periodic/c_code/src/gen/Js_ddh_LeftToeBottom_cassie.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/periodic/c_code/src/gen/Js_ddh_LeftToeBottom_cassie.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/periodic/c_code/src/gen/Js_ddh_LeftToeBottom_cassie.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Fri 5 Nov 2021 09:03:12 GMT-04:00
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "frost/gen/Js_ddh_LeftToeBottom_cassie.hh"
#ifdef _MSC_VER
#define INLINE __forceinline /* use __forceinline (VC++ specific) */
#else
#define INLINE inline ... | 21.130319 | 83 | 0.663436 | prem-chand |
22145a726afc6e780537042e0710486590beb861 | 1,810 | cpp | C++ | src/algebra/curves/edwards/edwards_pp.cpp | amiller/libsnark | d34b477ed9c0e36f74c78946012658bdecde0c00 | [
"MIT"
] | null | null | null | src/algebra/curves/edwards/edwards_pp.cpp | amiller/libsnark | d34b477ed9c0e36f74c78946012658bdecde0c00 | [
"MIT"
] | null | null | null | src/algebra/curves/edwards/edwards_pp.cpp | amiller/libsnark | d34b477ed9c0e36f74c78946012658bdecde0c00 | [
"MIT"
] | null | null | null | /** @file
*****************************************************************************
* @author This file is part of libsnark, developed by SCIPR Lab
* and contributors (see AUTHORS).
* @copyright MIT license (see LICENSE file)
********************************************************************... | 27.014925 | 79 | 0.599448 | amiller |
2214a8bab85388c389cbc2c0f8a6122974a0e905 | 2,153 | cpp | C++ | src/Emulators/nestopiaue/core/board/NstBoardJalecoJf17.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 34 | 2021-05-29T07:04:17.000Z | 2022-03-10T20:16:03.000Z | src/Emulators/nestopiaue/core/board/NstBoardJalecoJf17.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-25T13:05:21.000Z | 2022-01-19T17:35:17.000Z | src/Emulators/nestopiaue/core/board/NstBoardJalecoJf17.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-24T18:37:41.000Z | 2022-02-06T23:06:02.000Z | ////////////////////////////////////////////////////////////////////////////////////////
//
// Nestopia - NES/Famicom emulator written in C++
//
// Copyright (C) 2003-2008 Martin Freij
//
// This file is part of Nestopia.
//
// Nestopia is free software; you can redistribute it and/or modify
// it under the te... | 26.256098 | 159 | 0.570831 | slajerek |
2214d19b7d70c44ade25603a62fff62bdda90e63 | 3,584 | cc | C++ | tests/test_sha256.cc | lichray/macrofree-demo | dabe03b3be4f0d5e05f4bb28cf253619ee223ad5 | [
"BSD-2-Clause"
] | 3 | 2019-10-15T01:42:33.000Z | 2019-11-15T05:12:28.000Z | tests/test_sha256.cc | lichray/macrofree-demo | dabe03b3be4f0d5e05f4bb28cf253619ee223ad5 | [
"BSD-2-Clause"
] | null | null | null | tests/test_sha256.cc | lichray/macrofree-demo | dabe03b3be4f0d5e05f4bb28cf253619ee223ad5 | [
"BSD-2-Clause"
] | null | null | null | #include <doctest/doctest.h>
#include <macrofree_demo/sha256.h>
#include <macrofree_demo/sha256_implementations.h>
#include <string_view>
using namespace macrofree_demo;
using namespace std::literals;
TYPE_TO_STRING(sha256_openssl);
TYPE_TO_STRING(sha256_cng);
SCENARIO_TEMPLATE_DEFINE ("feed sha256 inputs", T, tes... | 26.352941 | 79 | 0.504743 | lichray |
22221e66f35f6c6059c1ade5dbd101fcbb4c4b47 | 514 | cpp | C++ | SourceCode/Chapter 15/GradedActivity Version 3/PassFailActivity.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | 1 | 2019-04-09T18:29:38.000Z | 2019-04-09T18:29:38.000Z | SourceCode/Chapter 15/PassFailActivity/PassFailActivity.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | SourceCode/Chapter 15/PassFailActivity/PassFailActivity.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | #include "PassFailActivity.h"
//******************************************************
// Member function PassFailActivity::getLetterGrade *
// This function returns 'P' if the score is passing, *
// otherwise it returns 'F'. *
//******************************************************
cha... | 27.052632 | 56 | 0.480545 | aceiro |
2224fa53d15ae417f12d204ef9c7acb15b06e6b5 | 2,224 | hpp | C++ | include/gridtools/boundaries/direction.hpp | tehrengruber/gridtools | 92bbbf65174d440c28a33babffde41b46ed943de | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/boundaries/direction.hpp | tehrengruber/gridtools | 92bbbf65174d440c28a33babffde41b46ed943de | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/boundaries/direction.hpp | tehrengruber/gridtools | 92bbbf65174d440c28a33babffde41b46ed943de | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
/**
@file
@brief definition of direction in a 3D cartesian grid
*/
namespace gridtools {
namespace boundaries {... | 28.151899 | 102 | 0.503597 | tehrengruber |
2226718a81a4b52ad987ff20dcc7882042d03526 | 424 | cpp | C++ | _includes/leet022/leet022_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | _includes/leet022/leet022_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | 8 | 2019-12-19T04:46:05.000Z | 2022-02-26T03:45:22.000Z | _includes/leet022/leet022_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<string> generateParenthesis(int n) {
vector<string> res;
helper("",n,0,res);
return res;
}
void helper(string cur, int left, int right,vector<string>& res){
if(!left&&!right) res.push_back(cur);
else{
if(left>0) helper(cu... | 26.5 | 72 | 0.537736 | mingdaz |
2227f9972117dce06a1507be79c5659f570d265c | 360 | cpp | C++ | SimCore/model/Chip/Chip.cpp | kino-6/BuiltInSystemSimulator | 63d447f89c0c9166b93a96844d2d103f9d00a4b2 | [
"Apache-2.0"
] | null | null | null | SimCore/model/Chip/Chip.cpp | kino-6/BuiltInSystemSimulator | 63d447f89c0c9166b93a96844d2d103f9d00a4b2 | [
"Apache-2.0"
] | null | null | null | SimCore/model/Chip/Chip.cpp | kino-6/BuiltInSystemSimulator | 63d447f89c0c9166b93a96844d2d103f9d00a4b2 | [
"Apache-2.0"
] | null | null | null | #include "Chip.h"
SFR g_sfr;
Chip::Chip(void) {
this->Reset();
}
Chip::~Chip(void) {
}
void Chip::Main(void) {
this->fetch_sfr();
this->sfr.TMR += 1;
this->reflect_sfr();
}
void Chip::reflect_sfr(void) {
g_sfr = this->sfr;
}
void Chip::fetch_sfr(void) {
this->sfr = g_sfr;
}
void Chip::Reset(void) {
... | 10.285714 | 30 | 0.591667 | kino-6 |
22285afe5975218c2971ec1b925c6f10700cb402 | 5,913 | cpp | C++ | src/map/generator/modules/Water.cpp | Yukkurigame/Yukkuri | 3c8440b6b4e4d14cf6eec5685504839e4e714036 | [
"MIT"
] | 2 | 2017-05-15T19:28:37.000Z | 2018-03-31T01:10:19.000Z | src/map/generator/modules/Water.cpp | Yukkurigame/Yukkuri | 3c8440b6b4e4d14cf6eec5685504839e4e714036 | [
"MIT"
] | null | null | null | src/map/generator/modules/Water.cpp | Yukkurigame/Yukkuri | 3c8440b6b4e4d14cf6eec5685504839e4e714036 | [
"MIT"
] | null | null | null | /*
* Water.cpp
*
* Created on: 13.04.2013
*/
#include "map/generator/modules/Water.h"
#include "debug.h"
#include "hacks.h"
namespace MapWater
{
void redistributeMoisture( list< Corner* >& );
void calculateWatersheds( );
void createRivers( );
void assignCornerMoisture( );
void assignPolygonMoisture( );
M... | 22.655172 | 72 | 0.643666 | Yukkurigame |
222860ac5e12896f94c5162e06f71dbb82925e31 | 4,386 | cpp | C++ | extsamp/company.cpp | OS2World/DEV-SAMPLES-SOM-IBM | 083a80ccf1c7afe2518f3cbf90998ccc5cf44391 | [
"BSD-3-Clause"
] | null | null | null | extsamp/company.cpp | OS2World/DEV-SAMPLES-SOM-IBM | 083a80ccf1c7afe2518f3cbf90998ccc5cf44391 | [
"BSD-3-Clause"
] | null | null | null | extsamp/company.cpp | OS2World/DEV-SAMPLES-SOM-IBM | 083a80ccf1c7afe2518f3cbf90998ccc5cf44391 | [
"BSD-3-Clause"
] | null | null | null | /*
*
* 25H7912 (C) COPYRIGHT International Business Machines Corp. 1992,1996,1996
* All Rights Reserved
* Licensed Materials - Property of IBM
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
*
*
* DISCLAIMER OF WARRANT... | 37.487179 | 98 | 0.676471 | OS2World |
222a48a800ee9eae152891fa0360f5c680a2fb93 | 3,441 | cpp | C++ | CPP_Files/Button.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | CPP_Files/Button.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | CPP_Files/Button.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | #include "Button.h"
Button::Button() {
size = glm::vec2(0, 0);
pos = glm::vec2(0, 0);
charSize = 0;
stringSize = glm::vec2(0,0);
boxTitle = "Button";
}
//Basic constructor sets values
Button::Button(std::string text, glm::vec2 size, glm::vec2 pos, GLfloat charSize): text(text) {
this->size = size;
this->pos = ... | 36.606383 | 132 | 0.66347 | Yaters |
222f8e1a3a058234efb038ca7dec8660bb15a64a | 1,350 | cpp | C++ | karum/DeleteList.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | karum/DeleteList.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | karum/DeleteList.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdlib>
using namespace std;
class Node{
public:
int data;
Node *next;
Node(){}
Node(int d){
data=d;
next=NULL;
}
Node *insertElement(... | 21.774194 | 60 | 0.36 | shivanib01 |
22386e73c247825f89ce2ead691d0f9f15e97948 | 3,536 | hpp | C++ | Include/Events/Receiver.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Include/Events/Receiver.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Include/Events/Receiver.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Common/Debug.hpp"
#include "Events/Dispatcher.hpp"
#include "Events/Delegate.hpp"
// Forward declarations.
namespace Common
{
template<typename Type>
class DispatcherBase;
template<typename Type>
class ReceiverInvoker;
}
/*
Receiver
Invokes a delegate after receiving ... | 29.22314 | 109 | 0.595871 | igorlev91 |
22453f62f0865c998d1e6f2b5ba708fbfa6b2622 | 4,965 | cpp | C++ | example/distances.cpp | mjtrautmann/AnalyticalGeometry | 86213d68c5ecfc1b0743ab90b91f4e1cb42f7ca9 | [
"MIT"
] | null | null | null | example/distances.cpp | mjtrautmann/AnalyticalGeometry | 86213d68c5ecfc1b0743ab90b91f4e1cb42f7ca9 | [
"MIT"
] | null | null | null | example/distances.cpp | mjtrautmann/AnalyticalGeometry | 86213d68c5ecfc1b0743ab90b91f4e1cb42f7ca9 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2022 mjtrautmann
//
// 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... | 56.420455 | 207 | 0.622961 | mjtrautmann |
22470115de1902158dd1566b554579148025e1b7 | 1,925 | cpp | C++ | tests/unit/typegen_implicit.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/typegen_implicit.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/typegen_implicit.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | #include "coreir.h"
using namespace std;
using namespace CoreIR;
int main() {
Context* c = newContext();
Namespace* g = c->getGlobal();
//Declare an implicit TypeGenerator
TypeGen* tg = TypeGenImplicit::make(
g,
"add_type", //name for the typegen
{{"width",c->Int()}} //generater parameters
... | 23.765432 | 71 | 0.54961 | joyliu37 |
2249453ec0f3b2c4062157997d230cd6a0a13a14 | 1,965 | cc | C++ | stack/basic_calculator.cc | windscope/Cracking | 0db01f531ff56428bafff72aaea1d046dbc14112 | [
"Apache-2.0"
] | null | null | null | stack/basic_calculator.cc | windscope/Cracking | 0db01f531ff56428bafff72aaea1d046dbc14112 | [
"Apache-2.0"
] | null | null | null | stack/basic_calculator.cc | windscope/Cracking | 0db01f531ff56428bafff72aaea1d046dbc14112 | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <stack>
#include <string>
#include <cctype>
#include <iostream>
#include <cassert>
using namespace std;
class Solution {
public:
int calculate(string s) {
stack<int> signs;
// signs record the predefine sign: signs*1()
signs.push(1);
// treat a as (a)
... | 23.392857 | 99 | 0.384733 | windscope |
224e8bd287ec00157d536cc395b5589a0d0d0fe7 | 2,412 | cc | C++ | src/cpu/backend.cc | aj7tesh/CTranslate2 | 8e424efdbcf40c89dca7e237a249464a95eeaf74 | [
"MIT"
] | null | null | null | src/cpu/backend.cc | aj7tesh/CTranslate2 | 8e424efdbcf40c89dca7e237a249464a95eeaf74 | [
"MIT"
] | null | null | null | src/cpu/backend.cc | aj7tesh/CTranslate2 | 8e424efdbcf40c89dca7e237a249464a95eeaf74 | [
"MIT"
] | null | null | null | #include "backend.h"
#ifdef CT2_WITH_MKL
# include <mkl.h>
#endif
#include "ctranslate2/utils.h"
#include "cpu_info.h"
namespace ctranslate2 {
namespace cpu {
#ifdef CT2_WITH_MKL
static inline bool mkl_has_fast_int_gemm() {
# if __INTEL_MKL__ > 2019 || (__INTEL_MKL__ == 2019 && __INTEL_MKL_UPDATE__ >= 5)
... | 25.935484 | 99 | 0.660862 | aj7tesh |
224f46a12acd0c706f28ddfe9f6303cc7363e10d | 7,332 | cpp | C++ | src/mapclear.cpp | SenhorGatinho/kale | a4e1819c568c3925cd7e94a8b06608e1c233ebf9 | [
"MIT"
] | 32 | 2015-03-02T05:40:42.000Z | 2022-02-21T04:13:02.000Z | src/mapclear.cpp | SenhorGatinho/kale | a4e1819c568c3925cd7e94a8b06608e1c233ebf9 | [
"MIT"
] | null | null | null | src/mapclear.cpp | SenhorGatinho/kale | a4e1819c568c3925cd7e94a8b06608e1c233ebf9 | [
"MIT"
] | 3 | 2017-02-03T05:01:51.000Z | 2022-01-10T01:38:13.000Z | #include "mapclear.h"
#include "romfile.h"
#include "level.h"
#include <cstdint>
#include <cstdio>
#include <QSpinBox>
std::vector<QRect> mapClearData[7][16];
const romaddr_t ptrMapClearL = {0x12, 0x9C7E};
const romaddr_t ptrMapClearH = {0x12, 0x9CEE};
const uint ptrMapClearB = 0x12;
const romaddr_t mapClearS... | 25.109589 | 125 | 0.563557 | SenhorGatinho |
2254e220fb9dcba2d2970100b007d57cf6fe7e40 | 4,801 | cpp | C++ | src/World.cpp | aebarber/LD41 | 9501e3bd4de5e617a36f4065f4e6ab3f898abe4c | [
"MIT"
] | null | null | null | src/World.cpp | aebarber/LD41 | 9501e3bd4de5e617a36f4065f4e6ab3f898abe4c | [
"MIT"
] | null | null | null | src/World.cpp | aebarber/LD41 | 9501e3bd4de5e617a36f4065f4e6ab3f898abe4c | [
"MIT"
] | null | null | null | #include "../include/World.hpp"
World::World () {
m_grassTexture.loadFromImage(*aw::AssetStore::getImage("grass"));
m_gravelTexture.loadFromImage(*aw::AssetStore::getImage("gravel"));
m_waterTexture.loadFromImage(*aw::AssetStore::getImage("water"));
m_mudTexture.loadFromImage(*aw::AssetStore::getImage... | 42.486726 | 206 | 0.676317 | aebarber |
225e95d5ffaf77e76ad6478fe5bc386ae7f65369 | 626 | cpp | C++ | main.cpp | ArionasMC/TicTacToe | 998585ca415c7d263eeb73e43840fbf98d9a4c99 | [
"Apache-2.0"
] | 3 | 2019-02-23T18:20:24.000Z | 2019-02-23T18:30:18.000Z | main.cpp | ArionasMC/TicTacToe | 998585ca415c7d263eeb73e43840fbf98d9a4c99 | [
"Apache-2.0"
] | null | null | null | main.cpp | ArionasMC/TicTacToe | 998585ca415c7d263eeb73e43840fbf98d9a4c99 | [
"Apache-2.0"
] | null | null | null | #include "SDL.h"
#include "Game.h"
#include <iostream>
using namespace std;
Game *game = NULL;
int main(int argc, char *argv[])
{
const int FPS = 60;
const int frameDelay = 1000 / FPS;
Uint32 frameStart;
int frameTime;
game = new Game();
game->init("Tic Tac Toe", 800, 600, false);
... | 16.473684 | 47 | 0.58147 | ArionasMC |
226737397de0b16688a5798449b86f3abf42e80d | 6,083 | cpp | C++ | Algorithm/arcsim/adaptiveCloth/constraint.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 32 | 2016-12-13T05:49:12.000Z | 2022-02-04T06:15:47.000Z | Algorithm/arcsim/adaptiveCloth/constraint.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 2 | 2019-07-30T02:01:16.000Z | 2020-03-12T15:06:51.000Z | Algorithm/arcsim/adaptiveCloth/constraint.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 18 | 2017-11-16T13:37:06.000Z | 2022-03-11T08:13:46.000Z | /*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... | 27.278027 | 94 | 0.644583 | dolphin-li |
226b322b2b0aae123a65e38fa7bb009e25e34675 | 44,252 | cpp | C++ | EasyCpp/Net/Curl.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 3 | 2018-02-06T05:12:41.000Z | 2020-05-12T20:57:32.000Z | EasyCpp/Net/Curl.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 41 | 2016-07-11T12:19:10.000Z | 2017-08-08T07:43:12.000Z | EasyCpp/Net/Curl.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 2 | 2019-08-02T10:24:36.000Z | 2020-09-11T01:45:12.000Z | #include "Curl.h"
#include <curl/curl.h>
#include <string>
#include <stdexcept>
#include <map>
#include <cstring>
#include "../StringAlgorithm.h"
// Fix for missing macro in old versions
#ifndef CURL_AT_LEAST_VERSION
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|z)
#define CURL_AT_LEAST_VERSION(x,y,z) \
(LIBCURL_... | 23.907077 | 121 | 0.684783 | Thalhammer |
226d4baca5f63f97260efa9e2d9c7ef2d2703612 | 4,404 | cc | C++ | src/thirdparty/acg_localizer/src/solver/solverbase.cc | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | null | null | null | src/thirdparty/acg_localizer/src/solver/solverbase.cc | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | null | null | null | src/thirdparty/acg_localizer/src/solver/solverbase.cc | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | null | null | null | /*===========================================================================*\
* *
* ACG Localizer *
* Copyright (C) 2011 by Computer Graphics Group, RWTH Aachen *
* ... | 27.873418 | 80 | 0.45663 | rajvishah |
226efccb72784f9e6191e7a3795c1b4c7b162605 | 1,691 | cpp | C++ | Classes/Foundation/NSObject.cpp | duranamu/Foundation | 5569fb52cb93ef11dcf4f779a2d1ea4b8cfeb0df | [
"MIT"
] | 2 | 2015-06-29T06:49:20.000Z | 2016-10-30T04:25:35.000Z | Classes/Foundation/NSObject.cpp | duranamu/Foundation | 5569fb52cb93ef11dcf4f779a2d1ea4b8cfeb0df | [
"MIT"
] | null | null | null | Classes/Foundation/NSObject.cpp | duranamu/Foundation | 5569fb52cb93ef11dcf4f779a2d1ea4b8cfeb0df | [
"MIT"
] | null | null | null | /****************************************************************************
Foundation OpenSource Project
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, incl... | 38.431818 | 77 | 0.698995 | duranamu |
227365972f4cb42f159fc1c6f7cdf04f407e28a0 | 646 | cpp | C++ | poj/3438/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | poj/3438/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | poj/3438/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | //
// main.cpp
// 3438
// 水题
// Created by Nimitz_007 on 16/7/31.
// Copyright © 2016年 Fujian Ruijie Networks Co., Ltd. All rights reserved.
//
#include <iostream>
int main(int argc, const char * argv[]) {
int n, count;
char c,pre;
scanf("%d\n",&n);
while(n--){
count = 1;
scanf("%... | 20.1875 | 75 | 0.417957 | nimitz871016 |
22790e90761843a29aec9854856aa2efcfa93323 | 1,438 | cpp | C++ | 1_Practice_CPP/_CPP_LEARNING__Switch_Operations.cpp | CyberThulhu22/CPP-Projects | d5ed94d45988e5b18ebdff3d19658af87d94a2df | [
"MIT"
] | null | null | null | 1_Practice_CPP/_CPP_LEARNING__Switch_Operations.cpp | CyberThulhu22/CPP-Projects | d5ed94d45988e5b18ebdff3d19658af87d94a2df | [
"MIT"
] | null | null | null | 1_Practice_CPP/_CPP_LEARNING__Switch_Operations.cpp | CyberThulhu22/CPP-Projects | d5ed94d45988e5b18ebdff3d19658af87d94a2df | [
"MIT"
] | 1 | 2022-01-05T04:18:05.000Z | 2022-01-05T04:18:05.000Z | // Switch Operations
//
// NAME: switchoperation.cpp
// VERSION: 0.0.0
// AUTHOR: Jesse Leverett (CyberThulhu)
// STATUS: Work In Progress
// DESCRIPTION: Basic Program That Teaches Switch Operations
// TO-DO: Build Initial Code Framework
// USAGE: switchoperation.exe
// COPYRIGHT © 20... | 26.145455 | 105 | 0.552156 | CyberThulhu22 |
22839c7c3a288dc0d1ee45357a36dee0ff3a1deb | 706 | hpp | C++ | Code/include/OE/Engine/Transform.hpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | 21 | 2018-06-26T16:37:36.000Z | 2022-01-11T01:19:42.000Z | Code/include/OE/Engine/Transform.hpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | null | null | null | Code/include/OE/Engine/Transform.hpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | 3 | 2019-10-01T14:10:50.000Z | 2021-11-19T20:30:18.000Z | #ifndef ENGINE_TRANSFORM_HPP
#define ENGINE_TRANSFORM_HPP
#include "OE/Config.hpp"
#include "OE/Engine/Component.hpp"
#include "OE/Math/Vec3.hpp"
#include "OE/Math/Mat4.hpp"
namespace OrbitEngine { namespace Engine {
class Transform : public Component {
NATIVE_REFLECTION
public:
Transform();
~Transform();
... | 19.081081 | 43 | 0.719547 | mlomb |
22841b4dac3d8081a32c55ba564bf19e5a34d857 | 15,614 | cpp | C++ | src/vidhrdw/mermaid.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 8 | 2020-05-01T15:15:16.000Z | 2021-05-30T18:49:15.000Z | src/vidhrdw/mermaid.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | null | null | null | src/vidhrdw/mermaid.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 5 | 2020-05-07T18:38:11.000Z | 2021-08-03T12:57:41.000Z | /***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "tilemap.h"
#include "vidhrdw/generic.h"
unsigned char* merma... | 23.444444 | 118 | 0.626937 | gameblabla |
22866855db221634cabad0169bdeab827220463b | 128 | cpp | C++ | engine/Source.cpp | LHolmberg/L3D | 6020222700f3ee70cfbf02601bd93bfd59a8fb34 | [
"MIT"
] | null | null | null | engine/Source.cpp | LHolmberg/L3D | 6020222700f3ee70cfbf02601bd93bfd59a8fb34 | [
"MIT"
] | null | null | null | engine/Source.cpp | LHolmberg/L3D | 6020222700f3ee70cfbf02601bd93bfd59a8fb34 | [
"MIT"
] | null | null | null | #include "TESTSAMPLEFILE.h"
int main() {
Game::Startup();
while (running)
Game::Update();
Game::Shutdown();
return 0;
} | 11.636364 | 27 | 0.632813 | LHolmberg |
2288a9f0d5ffd36fe1a4e2e1cc2289293258d161 | 662 | cpp | C++ | SourceCode/Chapter 12/Pr12-4.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | 1 | 2019-04-09T18:29:38.000Z | 2019-04-09T18:29:38.000Z | SourceCode/Chapter 12/Pr12-4.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | SourceCode/Chapter 12/Pr12-4.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | // This program writes three rows of numbers to a file.
#include<iostream>
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{
const int ROWS = 3; // Rows to write
const int COLS = 3; // Columns to write
int nums[ROWS][COLS] = { 2897, 5, 837,
34, 7, 1623,
390, 3456... | 22.827586 | 55 | 0.595166 | aceiro |
228e98e9c38d2139893a515586219984c9e0031b | 113 | hpp | C++ | redvoid/src/DLL.hpp | fictionalist/RED-VOID | 01bacd893f095748d784e494c80a6a9c96481acc | [
"MIT"
] | 1 | 2021-01-04T01:31:34.000Z | 2021-01-04T01:31:34.000Z | redvoid/src/DLL.hpp | fictionalist/RED-VOID | 01bacd893f095748d784e494c80a6a9c96481acc | [
"MIT"
] | null | null | null | redvoid/src/DLL.hpp | fictionalist/RED-VOID | 01bacd893f095748d784e494c80a6a9c96481acc | [
"MIT"
] | 1 | 2021-01-05T00:55:47.000Z | 2021-01-05T00:55:47.000Z | #pragma once
#include <Windows.h>
namespace DLL {
void init();
void quit();
DWORD WINAPI main(LPVOID lp);
}
| 11.3 | 30 | 0.672566 | fictionalist |
228f97ad7c8a18ceeaf766bfe8470114312b1d06 | 12,309 | cpp | C++ | SDL2/SDL2Engine/SDL2Engine/Player.cpp | functard/INK.-A-SDL-2-GAME | 2b65706c65ba38fa909c8b7726863f3c4e835748 | [
"MIT"
] | 1 | 2022-02-22T13:42:44.000Z | 2022-02-22T13:42:44.000Z | SDL2/SDL2Engine/SDL2Engine/Player.cpp | functard/INK.-A-SDL-2-GAME | 2b65706c65ba38fa909c8b7726863f3c4e835748 | [
"MIT"
] | null | null | null | SDL2/SDL2Engine/SDL2Engine/Player.cpp | functard/INK.-A-SDL-2-GAME | 2b65706c65ba38fa909c8b7726863f3c4e835748 | [
"MIT"
] | null | null | null | #pragma region project include
#include "Player.h"
#include "Input.h"
#include "Engine.h"
#include "Renderer.h"
#include "ContentManagement.h"
#include "Config.h"
#include "Bullet.h"
#include "MenuScene.h"
#include "MainScene.h"
#include "Animation.h"
#include "Sound.h"
#include "Texture.h"
#include "Config.h"
#include... | 20.79223 | 115 | 0.699488 | functard |
22941298dfcca580c5dc668974c30d6ed6b491c1 | 397 | hpp | C++ | Parser/includes/RapidJsonErrorHandler.hpp | LiardeauxQ/r-type | 8a77164c276b2d5958cd3504a9ea34f1cf6823cf | [
"MIT"
] | 2 | 2020-02-12T12:02:00.000Z | 2020-12-23T15:31:59.000Z | Parser/includes/RapidJsonErrorHandler.hpp | LiardeauxQ/r-type | 8a77164c276b2d5958cd3504a9ea34f1cf6823cf | [
"MIT"
] | null | null | null | Parser/includes/RapidJsonErrorHandler.hpp | LiardeauxQ/r-type | 8a77164c276b2d5958cd3504a9ea34f1cf6823cf | [
"MIT"
] | 2 | 2020-02-12T12:02:03.000Z | 2020-12-23T15:32:55.000Z | //
// Created by Quentin Liardeaux on 11/18/19.
//
#ifndef R_TYPE_RAPIDJSONERRORHANDLER_HPP
#define R_TYPE_RAPIDJSONERRORHANDLER_HPP
#include <string>
#include "ParseError.hpp"
#include "rapidjson/document.h"
class RapidJsonErrorHandler {
public:
static const rapidjson::Value &getValidValue(rapidjson::Value co... | 19.85 | 98 | 0.783375 | LiardeauxQ |
2294966034f0c3b8f277cccd7cae798cfcec69a5 | 14,328 | cpp | C++ | CT/CT_PhysX.cpp | ca1773130n/CubeTop | 15059ad1c82723738d6c2bfb529663eb0796ff50 | [
"MIT"
] | null | null | null | CT/CT_PhysX.cpp | ca1773130n/CubeTop | 15059ad1c82723738d6c2bfb529663eb0796ff50 | [
"MIT"
] | null | null | null | CT/CT_PhysX.cpp | ca1773130n/CubeTop | 15059ad1c82723738d6c2bfb529663eb0796ff50 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CT_PhysX.h"
#include "CT_Object.h"
#include "NxCooking.h"
#include "Stream.h"
#include <vector>
/*************************************************************************************************************************************************************/
/* 피직스 클래스 ... | 34.277512 | 159 | 0.490717 | ca1773130n |
22956c2e81ae51d0c6242c8b621d1af1d84506f4 | 3,022 | cpp | C++ | Source/ThirdParty/embree/kernels/bvh/bvh_intersector_stream_bvh4.cpp | vinhig/rbfx | 884de45c623d591f346a2abd5e52edaa84bcc137 | [
"MIT"
] | 441 | 2018-12-26T14:50:23.000Z | 2021-11-05T03:13:27.000Z | Source/ThirdParty/embree/kernels/bvh/bvh_intersector_stream_bvh4.cpp | vinhig/rbfx | 884de45c623d591f346a2abd5e52edaa84bcc137 | [
"MIT"
] | 221 | 2018-12-29T17:40:23.000Z | 2021-11-06T21:41:55.000Z | Source/ThirdParty/embree/kernels/bvh/bvh_intersector_stream_bvh4.cpp | vinhig/rbfx | 884de45c623d591f346a2abd5e52edaa84bcc137 | [
"MIT"
] | 101 | 2018-12-29T13:08:10.000Z | 2021-11-02T09:58:37.000Z | // Copyright 2009-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "bvh_intersector_stream.cpp"
namespace embree
{
namespace isa
{
////////////////////////////////////////////////////////////////////////////////
/// General BVHIntersectorStreamPacketFallback Intersector
////////... | 81.675676 | 199 | 0.747849 | vinhig |
2296489d805f3296218ed09ab0eef7438d470912 | 1,181 | hpp | C++ | include/NGGMergeOperator.hpp | NikolasGialitsis/NGramGraphParallel | 26427e7ff39ba591a8c7eedd0ace458f1821a876 | [
"Apache-2.0"
] | 1 | 2021-09-17T08:51:55.000Z | 2021-09-17T08:51:55.000Z | include/NGGMergeOperator.hpp | NikolasGialitsis/NGramGraphParallel | 26427e7ff39ba591a8c7eedd0ace458f1821a876 | [
"Apache-2.0"
] | 1 | 2021-05-24T10:36:50.000Z | 2021-05-24T10:36:50.000Z | include/NGGMergeOperator.hpp | NikolasGialitsis/NGramGraphParallel | 26427e7ff39ba591a8c7eedd0ace458f1821a876 | [
"Apache-2.0"
] | 1 | 2021-05-09T16:00:52.000Z | 2021-05-09T16:00:52.000Z | #ifndef NGGMERGEOPERATOR_H
#define NGGMERGEOPERATOR_H
#include "BinaryOperator.hpp"
#include "NGGUpdateOperator.hpp"
#include "NGramGraph.hpp"
//TODO Add an NGGUpdateOperator object as a member field, and set it's operands in the apply().
/*
* \class Implements the merge operator for NGramGraph objects.
* The oper... | 29.525 | 103 | 0.748518 | NikolasGialitsis |
229a78f7772aecb1f99d4f1a67c4c40bba56a308 | 2,610 | cpp | C++ | src/InputFileParser/AuxDataParser.cpp | dgoldri25/WaterPaths | 08f098e5f8baf93bc25098aa450650a4632c7eb6 | [
"Apache-2.0"
] | 11 | 2018-07-30T01:47:55.000Z | 2021-07-28T22:17:07.000Z | src/InputFileParser/AuxDataParser.cpp | bernardoct/RevampedTriangleModel | 122116eb5b32efd35f4212f09511cd68528462be | [
"Apache-2.0"
] | 26 | 2018-06-26T15:48:20.000Z | 2021-01-12T15:48:59.000Z | src/InputFileParser/AuxDataParser.cpp | bernardoct/RevampedTriangleModel | 122116eb5b32efd35f4212f09511cd68528462be | [
"Apache-2.0"
] | 9 | 2018-12-08T02:47:39.000Z | 2021-07-26T15:34:22.000Z | //
// Created by bernardo on 11/27/19.
//
#include <algorithm>
#include "AuxDataParser.h"
#include "../Utils/Utils.h"
#include "AuxParserFunctions.h"
vector<vector<int>> AuxDataParser::parseReservoirUtilityConnectivityMatrix(
vector<vector<string>> &block, const map<string, int> &ws_name_to_id,
const... | 37.285714 | 82 | 0.560536 | dgoldri25 |
229ac60f794443c7a788c4501ceb9f18de1e7ff9 | 8,201 | cc | C++ | gen_secondary_antiproton_source.cc | bjbuckman/galprop_bb_ | 076b168f7475b3ba9fb198b6ec2df7be66b1763c | [
"MIT"
] | null | null | null | gen_secondary_antiproton_source.cc | bjbuckman/galprop_bb_ | 076b168f7475b3ba9fb198b6ec2df7be66b1763c | [
"MIT"
] | null | null | null | gen_secondary_antiproton_source.cc | bjbuckman/galprop_bb_ | 076b168f7475b3ba9fb198b6ec2df7be66b1763c | [
"MIT"
] | null | null | null |
//**.****|****.****|****.****|****.****|****.****|****.****|****.****|****.****|
// * gen_secondary_antiproton_source.cc * galprop package * 2001/05/11
//**"****!****"****!****"****!****"****!****"****!****"****!****"****!****"****|
//**"****!****"****!****"****!****"****!****"****!****"****!****"****!****"*... | 50.006098 | 161 | 0.501524 | bjbuckman |
229bd1555a21376df233101267fa45a6458335b0 | 742 | hpp | C++ | boost/sequence/traits/size_type.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 11 | 2015-02-21T11:23:44.000Z | 2021-08-15T03:39:29.000Z | boost/sequence/traits/size_type.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | null | null | null | boost/sequence/traits/size_type.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 3 | 2015-05-09T02:25:42.000Z | 2019-11-02T13:39:29.000Z | // Copyright David Abrahams 2006. 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)
#ifndef BOOST_SEQUENCE_TRAITS_SIZE_TYPE_DWA200658_HPP
# define BOOST_SEQUENCE_TRAITS_SIZE_TYPE_DWA200658_HPP
# include <boost/... | 30.916667 | 73 | 0.752022 | ericniebler |
229e2ab063f6b8b391d4ea89f759e538bc49d474 | 2,823 | hpp | C++ | src/libs/io/binary_output_stream.hpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/libs/io/binary_output_stream.hpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/libs/io/binary_output_stream.hpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #pragma once
#include <type_traits>
#include <string>
#include "output_stream.hpp"
#include "utility/service_registry.hpp"
#include "utility/time.hpp"
#include "utility/flag_set.hpp"
namespace gorc {
class binary_output_stream : public output_stream {
private:
output_stream &stream;
public:
... | 29.40625 | 99 | 0.639391 | jdmclark |
22a1e69931c23ffe346ef76c330301268dc9137c | 669 | hpp | C++ | asyncnet.hpp | Chingyat/asyncnet | e012b64fcf38c9fba15dee52e467d98772926b81 | [
"MIT"
] | null | null | null | asyncnet.hpp | Chingyat/asyncnet | e012b64fcf38c9fba15dee52e467d98772926b81 | [
"MIT"
] | null | null | null | asyncnet.hpp | Chingyat/asyncnet | e012b64fcf38c9fba15dee52e467d98772926b81 | [
"MIT"
] | 1 | 2020-11-10T05:33:25.000Z | 2020-11-10T05:33:25.000Z | //
// Created by lince on 11/6/20.
//
#ifndef ASYNCNET_HPP
#define ASYNCNET_HPP
#include <asyncnet/associated_allocator.hpp>
#include <asyncnet/associated_executor.hpp>
#include <asyncnet/async_completion.hpp>
#include <asyncnet/async_result.hpp>
#include <asyncnet/defer.hpp>
#include <asyncnet/dispatch.hpp>
#include... | 26.76 | 44 | 0.796712 | Chingyat |
22a3a012de375dda73818b93c8777d79f20248d9 | 10,125 | cpp | C++ | CrystalCavern/Plugins/VRM4U/Source/VRM4U/Private/VrmUtil.cpp | NikkoBertoa/test | 6e27eb89ae8fddb41535a73617704cb1c8f6e125 | [
"Apache-2.0"
] | null | null | null | CrystalCavern/Plugins/VRM4U/Source/VRM4U/Private/VrmUtil.cpp | NikkoBertoa/test | 6e27eb89ae8fddb41535a73617704cb1c8f6e125 | [
"Apache-2.0"
] | null | null | null | CrystalCavern/Plugins/VRM4U/Source/VRM4U/Private/VrmUtil.cpp | NikkoBertoa/test | 6e27eb89ae8fddb41535a73617704cb1c8f6e125 | [
"Apache-2.0"
] | null | null | null | // VRM4U Copyright (c) 2019 Haruyoshi Yamamoto. This software is released under the MIT License.
#pragma once
#include "VrmUtil.h"
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
void FImportOptionData::init() {
}
const TArray<VRMUtil::VRMBoneTable> VRMUtil::table_ue4_vrm = {
{"Root",""},
{"Pelvis... | 24.049881 | 97 | 0.679111 | NikkoBertoa |
22a7bd433656a096e6e21118b963d5287106c662 | 433 | cpp | C++ | src/atta/uiSystem/layers/editor/windows/logWindow.cpp | brenocq/atta | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 5 | 2021-11-18T02:44:45.000Z | 2021-12-21T17:46:10.000Z | src/atta/uiSystem/layers/editor/windows/logWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 1 | 2021-11-18T02:56:14.000Z | 2021-12-04T15:09:16.000Z | src/atta/uiSystem/layers/editor/windows/logWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 3 | 2020-09-10T07:17:00.000Z | 2020-11-05T10:24:41.000Z | //--------------------------------------------------
// Atta UI System
// logWindow.cpp
// Date: 2021-12-28
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <atta/uiSystem/layers/editor/windows/logWindow.h>
#include <imgui.h>
namespace atta::ui
{
void LogWindow::render()
... | 22.789474 | 58 | 0.471132 | brenocq |
22a81895bc47a1df94e35679c5d89285e4847a96 | 1,332 | cpp | C++ | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 14 ( Recursion)/main(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 14 ( Recursion)/main(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 14 ( Recursion)/main(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int fibonacci(int n)
{
if((n==1)||(n==0))
{
return(n);
}
else
{
return(fibonacci(n-1)+fibonacci(n-2));
}
}
int factorial(int n)
{
if(n==1)
return 1;
else
return n*factorial (n-1);
}
int add(int n)
{
if(n != 0)
retu... | 14.021053 | 67 | 0.511261 | diptu |
22ac6edc23e3ee23a1513a485413b9f292131d90 | 27,483 | cc | C++ | src/messages.cc | qian-long/TileDB-multinode | ba2a38b2cc6169935c73b76af8c53e8544c11300 | [
"MIT"
] | null | null | null | src/messages.cc | qian-long/TileDB-multinode | ba2a38b2cc6169935c73b76af8c53e8544c11300 | [
"MIT"
] | null | null | null | src/messages.cc | qian-long/TileDB-multinode | ba2a38b2cc6169935c73b76af8c53e8544c11300 | [
"MIT"
] | null | null | null | #include "messages.h"
#include <assert.h>
#include <cstring>
#include <functional>
#include "debug.h"
/******************************************************
*********************** MESSAGE **********************
******************************************************/
std::pair<char*, uint64_t> Msg::serialize() {
... | 28.12999 | 119 | 0.632573 | qian-long |
22b2b4b3c01f94a387aa9b5836834c4e2d2f1e88 | 59,332 | cpp | C++ | src/fw/asdxApp.cpp | ProjectAsura/asdx12 | 359f7288557ea3e83775864f69a85b6ad11f7f62 | [
"MIT"
] | 2 | 2021-06-17T02:27:43.000Z | 2022-01-30T09:06:05.000Z | src/fw/asdxApp.cpp | ProjectAsura/asdx12 | 359f7288557ea3e83775864f69a85b6ad11f7f62 | [
"MIT"
] | null | null | null | src/fw/asdxApp.cpp | ProjectAsura/asdx12 | 359f7288557ea3e83775864f69a85b6ad11f7f62 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// File : asdxApp.cpp
// Desc : Application Module.
// Copyright(c) Project Asura. All right reserved.
//-----------------------------------------------------------------------------
//-----------------------------------------------------... | 32.980545 | 132 | 0.450718 | ProjectAsura |
22baf5c6472ce3fb08d66673fcc75c6206009eb6 | 727 | cpp | C++ | src/ofxPixelObject.cpp | BlueJayLouche/ofxSACN_led_mapper | a8f889c78d654c16fe4acae1b98b26e266707257 | [
"MIT"
] | null | null | null | src/ofxPixelObject.cpp | BlueJayLouche/ofxSACN_led_mapper | a8f889c78d654c16fe4acae1b98b26e266707257 | [
"MIT"
] | null | null | null | src/ofxPixelObject.cpp | BlueJayLouche/ofxSACN_led_mapper | a8f889c78d654c16fe4acae1b98b26e266707257 | [
"MIT"
] | null | null | null | //
// ofxPixelObject.cpp
// sACN_Mapped
//
// Created by bluejaylouche on 19/7/21.
//
// Adapted from: https://github.com/DHaylock/ofxOPC
#include "ofxPixelObject.hpp"
//--------------------------------------------------------------
vector <ofColor> ofxPixelObject::colorData()
{
// Transmit Data
return col... | 22.71875 | 64 | 0.440165 | BlueJayLouche |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.