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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d571bea53f21a1864f150d1350f703b8d1890b7e | 504 | cpp | C++ | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex05-jmurkijanian | f0d5c8a60227cb4eef10241e97e949dc6c9790a2 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex05-jmurkijanian | f0d5c8a60227cb4eef10241e97e949dc6c9790a2 | [
"MIT"
] | null | null | null | prob03/main.cpp | CSUF-CPSC120-2019F23-24/labex05-jmurkijanian | f0d5c8a60227cb4eef10241e97e949dc6c9790a2 | [
"MIT"
] | null | null | null | // Random Rectangle
#include <iostream>
#include <string>
#include <cstdlib>
int main()
{
//Constants, and assigned values
const int MAXHEIGHT = 3;
const int MAX = 40;
unsigned seed = time(0);
srand(seed);
int length = rand();
//Gives length its max value
//the 1 prevents it from outputing nothing
length = rand() % ... | 16.8 | 42 | 0.662698 | CSUF-CPSC120-2019F23-24 |
d5775ec94f6960c8745c9549f9b4bf7147d02b6e | 730 | hpp | C++ | libs/gui/impl/include/sge/gui/impl/make_container_pair.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/gui/impl/include/sge/gui/impl/make_container_pair.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/gui/impl/include/sge/gui/impl/make_container_pair.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_GUI_IMPL_MAKE_CONTAINER_PAIR_HPP_INCLUDED
#define SGE_GUI_IMPL_MAKE_CONTAINER_PAIR_HPP_... | 30.416667 | 65 | 0.761644 | cpreh |
d57b2e18c1af91ea67aa92a11bb3c0f1c6580aa9 | 3,416 | cpp | C++ | src/graphics/vulkan/descriptor_init.cpp | InspectorSolaris/nd-engine | a8d63fe4bc0e57a96317adf015534d2e779ffcbb | [
"WTFPL"
] | null | null | null | src/graphics/vulkan/descriptor_init.cpp | InspectorSolaris/nd-engine | a8d63fe4bc0e57a96317adf015534d2e779ffcbb | [
"WTFPL"
] | null | null | null | src/graphics/vulkan/descriptor_init.cpp | InspectorSolaris/nd-engine | a8d63fe4bc0e57a96317adf015534d2e779ffcbb | [
"WTFPL"
] | null | null | null | #include "descriptor_init.hpp"
#include "tools_runtime.hpp"
namespace nd::src::graphics::vulkan
{
using namespace nd::src::tools;
DescriptorPool
createDescriptorPool(opt<const DescriptorPoolCfg>::ref cfg, const VkDevice device) noexcept(ND_VK_ASSERT_NOTHROW)
{
ND_SET_SCOPE();
const au... | 46.794521 | 141 | 0.53103 | InspectorSolaris |
d57e24cab5c502dd7faa514aa18dac25dd49dce5 | 4,651 | hh | C++ | include/click/statvector.hh | MassimoGirondi/fastclick | 71b9a3392c2e847a22de3c354be1d9f61216cb5b | [
"BSD-3-Clause-Clear"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | include/click/statvector.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | include/click/statvector.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | // -*- c-basic-offset: 4 -*-
#ifndef CLICK_STATVECTOR_HH
#define CLICK_STATVECTOR_HH
#include <click/batchelement.hh>
#include <click/multithread.hh>
#include <click/vector.hh>
#include <click/straccum.hh>
#include <click/statvector.hh>
CLICK_DECLS
template <typename T>
class StatVector {
enum{H_MEDIAN,H_AVERA... | 34.198529 | 97 | 0.500538 | MassimoGirondi |
d58ac31b2fb6c9ddee3b02c404d400ba910ffed0 | 369 | cpp | C++ | regression/esbmc-cpp/qt/QList/list_contains/main.cpp | vanderson-rocha/esbmc | 45768923a0fe79226feca5581b4d75b0a9f5f741 | [
"BSD-3-Clause"
] | 1 | 2021-02-26T22:03:18.000Z | 2021-02-26T22:03:18.000Z | regression/esbmc-cpp/qt/QList/list_contains/main.cpp | vanderson-rocha/esbmc | 45768923a0fe79226feca5581b4d75b0a9f5f741 | [
"BSD-3-Clause"
] | null | null | null | regression/esbmc-cpp/qt/QList/list_contains/main.cpp | vanderson-rocha/esbmc | 45768923a0fe79226feca5581b4d75b0a9f5f741 | [
"BSD-3-Clause"
] | 1 | 2021-04-15T14:14:27.000Z | 2021-04-15T14:14:27.000Z | #include <iostream>
#include <QList>
#include <QString>
#include <cassert>
using namespace std;
int main ()
{
QList<QString> list;
list << "A" << "B" << "C" << "B" << "A";
assert(list.contains("B"));
assert(list.contains("A"));
assert(list.contains("C"));
//assert(list.indexOf("X")... | 21.705882 | 62 | 0.528455 | vanderson-rocha |
d58b83add753a6374f7748174e813bee36758f80 | 2,092 | cpp | C++ | StarLight/filewriter.cpp | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StarLight/filewriter.cpp | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | StarLight/filewriter.cpp | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright 2010
//
// This file is part of starlight.
//
// starlight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Found... | 22.021053 | 75 | 0.556883 | klendathu2k |
d58cf4d6b06e06529868f891053a04653fe15275 | 9,457 | hpp | C++ | include/fe/math/Vector3.hpp | TheCandianVendingMachine/TCVM_Flat_Engine | 13797b91f6f4199d569f80baa29e2584652fc4b5 | [
"MIT"
] | 1 | 2018-06-15T23:49:37.000Z | 2018-06-15T23:49:37.000Z | include/fe/math/Vector3.hpp | TheCandianVendingMachine/TCVM_Flat_Engine | 13797b91f6f4199d569f80baa29e2584652fc4b5 | [
"MIT"
] | 5 | 2017-04-23T03:25:10.000Z | 2018-02-23T07:48:16.000Z | include/fe/math/Vector3.hpp | TheCandianVendingMachine/TCVM_Flat_Engine | 13797b91f6f4199d569f80baa29e2584652fc4b5 | [
"MIT"
] | null | null | null | // Vector3.hpp
// A 3d vector class used for defining coordinates in space
#pragma once
#include <cmath>
#include <SFML/System/Vector3.hpp>
namespace fe
{
template <typename dataType>
struct Vector3;
template <typename T>
struct lightVector3;
template<typename dataType, typ... | 55.629412 | 227 | 0.538754 | TheCandianVendingMachine |
d58d16e90aea0760422135219f8e4764a4605170 | 6,152 | hh | C++ | include/psp/libos/su/DispatchSu.hh | maxdml/Pers-phone | 510833b934e9df916d2f9f5b243d7e530a353840 | [
"Apache-2.0"
] | 2 | 2021-11-13T03:31:33.000Z | 2022-02-20T16:08:50.000Z | include/psp/libos/su/DispatchSu.hh | maxdml/psp | 510833b934e9df916d2f9f5b243d7e530a353840 | [
"Apache-2.0"
] | null | null | null | include/psp/libos/su/DispatchSu.hh | maxdml/psp | 510833b934e9df916d2f9f5b243d7e530a353840 | [
"Apache-2.0"
] | null | null | null | #ifndef DISPATCH_SU_H_
#define DISPATCH_SU_H_
#include <arpa/inet.h>
#include <psp/libos/persephone.hh>
#include <psp/libos/Request.hh>
#include <fstream>
#define MAX_CLIENTS 64
#define RESA_SAMPLES_NEEDED 5e4
#define UPDATE_PERIOD 5 * 1e3 //5 usec
#define MAX_WINDOWS 8192
struct profiling_windows {
uint64_t ts... | 36.402367 | 117 | 0.569083 | maxdml |
d58f93c1ba82427fc731279cc053a0ad36790def | 91 | cpp | C++ | contracts/test.inline/test.inline.cpp | ETAIO/eta | cdf2427f5b955ba2cde9b3978cf1f268053306ef | [
"MIT"
] | null | null | null | contracts/test.inline/test.inline.cpp | ETAIO/eta | cdf2427f5b955ba2cde9b3978cf1f268053306ef | [
"MIT"
] | null | null | null | contracts/test.inline/test.inline.cpp | ETAIO/eta | cdf2427f5b955ba2cde9b3978cf1f268053306ef | [
"MIT"
] | null | null | null | #include <test.inline/test.inline.hpp>
ETAIO_ABI( ETAio::testinline, (reqauth)(forward) )
| 22.75 | 50 | 0.747253 | ETAIO |
d58fba1c1f02154fdefdf22d4e656da6e9a640e8 | 432 | cpp | C++ | tests/compile_fail/unique_ptr_a_copy_assignment.cpp | rockdreamer/throwing_ptr | cd28490ebf9be803497a9fff733de62295d8288e | [
"BSL-1.0"
] | 2 | 2020-12-11T15:46:26.000Z | 2021-02-02T05:26:11.000Z | tests/compile_fail/unique_ptr_a_copy_assignment.cpp | rockdreamer/throwing_ptr | cd28490ebf9be803497a9fff733de62295d8288e | [
"BSL-1.0"
] | null | null | null | tests/compile_fail/unique_ptr_a_copy_assignment.cpp | rockdreamer/throwing_ptr | cd28490ebf9be803497a9fff733de62295d8288e | [
"BSL-1.0"
] | null | null | null | // Copyright Claudio Bantaloukas 2017-2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <throwing/unique_ptr.hpp>
int main() {
// cannot assign from unique_ptr to another (array ve... | 28.8 | 63 | 0.668981 | rockdreamer |
d593acf738b3cfb817b771b1122d7b155f37a0ea | 17,597 | cpp | C++ | test/testEpoll.cpp | mnaveedb/finalmq | 3c3b2b213fa07bb5427a1364796b19d732890ed2 | [
"MIT"
] | null | null | null | test/testEpoll.cpp | mnaveedb/finalmq | 3c3b2b213fa07bb5427a1364796b19d732890ed2 | [
"MIT"
] | null | null | null | test/testEpoll.cpp | mnaveedb/finalmq | 3c3b2b213fa07bb5427a1364796b19d732890ed2 | [
"MIT"
] | null | null | null | //MIT License
//Copyright (c) 2020 bexoft GmbH (mail@bexoft.de)
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, ... | 39.455157 | 151 | 0.697278 | mnaveedb |
d59528abc769a6352fba83bf91ce430152d70e5e | 665 | hpp | C++ | libs/fnd/iterator/include/bksge/fnd/iterator/default_sentinel.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/iterator/include/bksge/fnd/iterator/default_sentinel.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/iterator/include/bksge/fnd/iterator/default_sentinel.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file default_sentinel.hpp
*
* @brief default_sentinel の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_ITERATOR_DEFAULT_SENTINEL_HPP
#define BKSGE_FND_ITERATOR_DEFAULT_SENTINEL_HPP
#include <bksge/fnd/iterator/config.hpp>
#if defined(BKSGE_USE_STD_RANGES_ITERATOR)
namespace bksge
{
usi... | 16.219512 | 50 | 0.741353 | myoukaku |
d59e02bcb06319d174002a7a7c0b41db85531c6f | 1,992 | cpp | C++ | src/RaZor/Interface/Component/RigidBodyGroup.cpp | Razakhel/RaZor | e3cc7942f168a0df6cd08d8874e6390fd24e5b10 | [
"MIT"
] | null | null | null | src/RaZor/Interface/Component/RigidBodyGroup.cpp | Razakhel/RaZor | e3cc7942f168a0df6cd08d8874e6390fd24e5b10 | [
"MIT"
] | 1 | 2021-01-13T01:35:45.000Z | 2021-05-04T15:43:56.000Z | src/RaZor/Interface/Component/RigidBodyGroup.cpp | Razakhel/RaZor | e3cc7942f168a0df6cd08d8874e6390fd24e5b10 | [
"MIT"
] | 2 | 2021-01-13T01:36:02.000Z | 2021-08-08T10:17:53.000Z | #include "RaZor/Interface/Component/RigidBodyGroup.hpp"
#include "ui_RigidBodyComp.h"
#include <RaZ/Entity.hpp>
#include <RaZ/Physics/RigidBody.hpp>
RigidBodyGroup::RigidBodyGroup(Raz::Entity& entity, AppWindow& appWindow) : ComponentGroup(entity, appWindow) {
Ui::RigidBodyComp rigidBodyComp {};
rigidBodyComp.set... | 39.058824 | 114 | 0.758032 | Razakhel |
d59e579eb0548c18a88c8e802a4a642410d7988b | 379 | hpp | C++ | include/SSVOpenHexagon/Utils/FontHeight.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 409 | 2015-01-03T00:08:16.000Z | 2021-11-29T05:42:06.000Z | include/SSVOpenHexagon/Utils/FontHeight.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 185 | 2015-01-03T14:52:31.000Z | 2021-11-19T20:58:48.000Z | include/SSVOpenHexagon/Utils/FontHeight.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 74 | 2015-01-12T19:08:54.000Z | 2021-11-22T23:43:59.000Z | // Copyright (c) 2013-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: https://opensource.org/licenses/AFL-3.0
#pragma once
namespace sf {
class Text;
}
namespace hg::Utils {
[[nodiscard]] float getFontHeight(sf::Text& font);
[[nodiscard]] float getFontHeight(sf::Text& fon... | 19.947368 | 79 | 0.707124 | duck-37 |
d59fec959c24f6f6ab2cdad16e0476c01013e662 | 3,306 | cpp | C++ | Snakeware/features/bullet-manipulation/bullet-event.cpp | d3dx9tex/InsightCSGO | 6c218e243e165ec2d171db8bf5f006f00c4a95c8 | [
"Apache-2.0"
] | null | null | null | Snakeware/features/bullet-manipulation/bullet-event.cpp | d3dx9tex/InsightCSGO | 6c218e243e165ec2d171db8bf5f006f00c4a95c8 | [
"Apache-2.0"
] | null | null | null | Snakeware/features/bullet-manipulation/bullet-event.cpp | d3dx9tex/InsightCSGO | 6c218e243e165ec2d171db8bf5f006f00c4a95c8 | [
"Apache-2.0"
] | 2 | 2021-06-29T14:28:21.000Z | 2022-01-31T16:45:42.000Z | #include "bullet-event.h"
#include "../../valve_sdk/interfaces/IVRenderBeams.h"
#include "../../features/ragebot/ragebot.h"
#include "../../features/ragebot/resolver/resolver.h"
void BulletImpactEvent::FireGameEvent(IGameEvent *event) {
if (!g_LocalPlayer || !event) return;
static ConVar* sv_showimpacts = g_CVar->Fi... | 26.031496 | 147 | 0.705687 | d3dx9tex |
d5a0f6c285e13541ba7d921041ca19929c4d822a | 8,697 | cpp | C++ | wrappers/glcaps.cpp | moonlinux/apitrace | 764c9786b2312b656ce0918dff73001c6a85f46f | [
"MIT"
] | 1,723 | 2015-01-08T19:10:21.000Z | 2022-03-31T16:41:40.000Z | wrappers/glcaps.cpp | moonlinux/apitrace | 764c9786b2312b656ce0918dff73001c6a85f46f | [
"MIT"
] | 471 | 2015-01-02T15:02:34.000Z | 2022-03-26T17:54:10.000Z | wrappers/glcaps.cpp | moonlinux/apitrace | 764c9786b2312b656ce0918dff73001c6a85f46f | [
"MIT"
] | 380 | 2015-01-22T19:06:32.000Z | 2022-03-25T02:20:39.000Z | /**************************************************************************
*
* Copyright 2011 Jose Fonseca
* All Rights Reserved.
*
* 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 wit... | 27.609524 | 105 | 0.634012 | moonlinux |
d5a94e747658932f35f740260bd43d6bb43d329c | 10,282 | cpp | C++ | tcs/csp_solver_tou_block_schedules.cpp | JordanMalan/ssc | cadb7a9f3183d63c600b5c33f53abced35b6b319 | [
"BSD-3-Clause"
] | 61 | 2017-08-09T15:10:59.000Z | 2022-02-15T21:45:31.000Z | tcs/csp_solver_tou_block_schedules.cpp | JordanMalan/ssc | cadb7a9f3183d63c600b5c33f53abced35b6b319 | [
"BSD-3-Clause"
] | 462 | 2017-07-31T21:26:46.000Z | 2022-03-30T22:53:50.000Z | tcs/csp_solver_tou_block_schedules.cpp | JordanMalan/ssc | cadb7a9f3183d63c600b5c33f53abced35b6b319 | [
"BSD-3-Clause"
] | 73 | 2017-08-24T17:39:31.000Z | 2022-03-28T08:37:47.000Z | /**
BSD-3-Clause
Copyright 2019 Alliance for Sustainable Energy, LLC
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 copyright notice, this list of conditions
and the... | 34.619529 | 188 | 0.71844 | JordanMalan |
d5a9ae7c2b9029df289fdd0f8063e3db2eee9cd7 | 360 | hpp | C++ | include/turbo/DebugImgui.hpp | mariusvn/turbo-engine | 63cc2b76bc1aff7de9655916553a03bd768f5879 | [
"MIT"
] | 2 | 2021-02-12T13:05:02.000Z | 2021-02-22T14:25:00.000Z | include/turbo/DebugImgui.hpp | mariusvn/turbo-engine | 63cc2b76bc1aff7de9655916553a03bd768f5879 | [
"MIT"
] | null | null | null | include/turbo/DebugImgui.hpp | mariusvn/turbo-engine | 63cc2b76bc1aff7de9655916553a03bd768f5879 | [
"MIT"
] | null | null | null |
#ifndef __TURBO_ENGINE_DEBUGIMGUI_HPP__
#define __TURBO_ENGINE_DEBUGIMGUI_HPP__
#ifdef __TURBO_USE_IMGUI__
#include <imgui/imgui.h>
#include <imgui/imgui_impl_allegro5.h>
#include "debug_menus/EngineDebug.hpp"
#include "debug_menus/SceneManagerDebug.hpp"
#define ONLYIMGUI(expr) expr;
#else
... | 18 | 48 | 0.761111 | mariusvn |
d5b3721c4eac2e2bdb250f4de4c4da0c83f3ff3b | 520 | cpp | C++ | native/graphics/opengl/desktop/linux/platform_graphics.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | null | null | null | native/graphics/opengl/desktop/linux/platform_graphics.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | 7 | 2021-09-02T05:58:24.000Z | 2022-02-27T07:06:43.000Z | native/graphics/opengl/desktop/linux/platform_graphics.cpp | 49View/event_horizon | 9b78c9318e1a785384ab01eb4d90e79f0192c6ad | [
"BSD-3-Clause"
] | 2 | 2020-02-06T02:05:15.000Z | 2021-11-25T11:35:14.000Z | #include "../../../platform_graphics.hpp"
#include "../../gl_headers.hpp"
#include "core/util.h"
void initGraphics() {
// glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
// glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
// glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
// glfwWindowHint(GLFW_OPENGL_FOR... | 26 | 65 | 0.734615 | 49View |
d5b546d2d04fed03d0c5ab9d67fdeffe41ffb07f | 3,279 | cpp | C++ | source/rendercore-examples/source/GltfExampleRenderer.cpp | sbusch42/rendercore | 8d0bd316ff23f8f6596a07d8a3ce568049ad08d2 | [
"MIT"
] | 1 | 2019-02-12T16:00:45.000Z | 2019-02-12T16:00:45.000Z | source/rendercore-examples/source/GltfExampleRenderer.cpp | sbusch42/rendercore | 8d0bd316ff23f8f6596a07d8a3ce568049ad08d2 | [
"MIT"
] | null | null | null | source/rendercore-examples/source/GltfExampleRenderer.cpp | sbusch42/rendercore | 8d0bd316ff23f8f6596a07d8a3ce568049ad08d2 | [
"MIT"
] | null | null | null |
#include <rendercore-examples/GltfExampleRenderer.h>
#include <cppassist/memory/make_unique.h>
#include <glbinding/gl/gl.h>
#include <rendercore/rendercore.h>
#include <rendercore-gltf/GltfConverter.h>
#include <rendercore-gltf/GltfLoader.h>
#include <rendercore-gltf/Asset.h>
using namespace rendercore::opengl;
... | 28.513043 | 126 | 0.676426 | sbusch42 |
d5b8088798fa7de545854f74e24636c75d645472 | 3,536 | cpp | C++ | evaporative_air_cooler/evaporative_air_cooler_code/src/main.cpp | hhk7734/avr_proj | cb0c5c53af7eb8a0924f8c483a1a010be4b92636 | [
"MIT"
] | null | null | null | evaporative_air_cooler/evaporative_air_cooler_code/src/main.cpp | hhk7734/avr_proj | cb0c5c53af7eb8a0924f8c483a1a010be4b92636 | [
"MIT"
] | null | null | null | evaporative_air_cooler/evaporative_air_cooler_code/src/main.cpp | hhk7734/avr_proj | cb0c5c53af7eb8a0924f8c483a1a010be4b92636 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <BlynkSimpleSerialBLE.h>
#include "LOT_adc.h"
#include "LOT_ntc103f397.h"
#define SYSTEM_STATE_VIRTUAL_PIN V0
#define FORCED_FAN_ON_OFF_VIRTUAL_PIN V1
#define NTC103F397_VIRTUAL_PIN V2
#define THRESHOLD_TEMPERATURE_VIRTUAL_PIN V3
#define MOTION_STATE_VIRTUAL_PIN V4
#define MAX_PUSH_TIME... | 23.417219 | 117 | 0.606335 | hhk7734 |
d5bdc08023633e1ad70c97907b5e60dfe585edb3 | 18,848 | cpp | C++ | src/mlapack/Rlaed4.cpp | JaegerP/gmpack | 1396fda32177b1517cb6c176543025c3336c8c21 | [
"BSD-2-Clause"
] | null | null | null | src/mlapack/Rlaed4.cpp | JaegerP/gmpack | 1396fda32177b1517cb6c176543025c3336c8c21 | [
"BSD-2-Clause"
] | null | null | null | src/mlapack/Rlaed4.cpp | JaegerP/gmpack | 1396fda32177b1517cb6c176543025c3336c8c21 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2008-2010
* Nakata, Maho
* All rights reserved.
*
* $Id: Rlaed4.cpp,v 1.7 2010/08/07 04:48:32 nakatamaho Exp $
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributi... | 26.887304 | 106 | 0.524194 | JaegerP |
d5c082e3fe50e130b11d22dbe777878e19d46a82 | 2,098 | cpp | C++ | Source/MLApp/MLReporter.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null | Source/MLApp/MLReporter.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null | Source/MLApp/MLReporter.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null |
// MadronaLib: a C++ framework for DSP applications.
// Copyright (c) 2013 Madrona Labs LLC. http://www.madronalabs.com
// Distributed under the MIT license: http://madrona-labs.mit-license.org/
#include "MLReporter.h"
// --------------------------------------------------------------------------------
#pragma mark p... | 24.114943 | 86 | 0.638227 | afofo |
d5c25e539cbb9f6f38b23b843fb68da4f6c5dfe7 | 68,739 | cpp | C++ | src/louischessx/chessboard_eval.cpp | louishobson/louischessx | cc97e4ef4b716bfa9d83435f1f0cb8512bd1c4f4 | [
"MIT"
] | null | null | null | src/louischessx/chessboard_eval.cpp | louishobson/louischessx | cc97e4ef4b716bfa9d83435f1f0cb8512bd1c4f4 | [
"MIT"
] | null | null | null | src/louischessx/chessboard_eval.cpp | louishobson/louischessx | cc97e4ef4b716bfa9d83435f1f0cb8512bd1c4f4 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2020 Louis Hobson <louis-hobson@hotmail.co.uk>. All Rights Reserved.
*
* Distributed under MIT licence as a part of the Chess C++ library.
* For details, see: https://github.com/louishobson/Chess/blob/master/LICENSE
*
* src/chess/chessboard_eval.cpp
*
* Implementation of evaluation methods... | 55.079327 | 264 | 0.672704 | louishobson |
d5c613037da92a42adefc3e03b2cf4a88879e4d2 | 16,129 | cpp | C++ | fs/fat32/tests/fat32_test/main.cpp | kms1212/OpenFSL | 476bb59bce6b451ef39b2dbfef85a814218bce80 | [
"BSD-3-Clause"
] | 3 | 2021-05-27T13:12:28.000Z | 2022-03-08T19:04:49.000Z | fs/fat32/tests/fat32_test/main.cpp | kms1212/OpenFSL | 476bb59bce6b451ef39b2dbfef85a814218bce80 | [
"BSD-3-Clause"
] | 3 | 2021-06-15T14:11:11.000Z | 2021-08-17T02:03:07.000Z | fs/fat32/tests/fat32_test/main.cpp | kms1212/OpenFSL | 476bb59bce6b451ef39b2dbfef85a814218bce80 | [
"BSD-3-Clause"
] | 3 | 2021-06-15T14:05:08.000Z | 2022-02-22T08:13:10.000Z | /* Copyright (c) 2021. kms1212(Minsu Kwon)
This file is part of OpenFSL.
OpenFSL and its source code is published over BSD 3-Clause License.
See the BSD-3-Clause for more details.
<https://raw.githubusercontent.com/kms1212/OpenFSL/main/LICENSE>
*/
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <... | 35.139434 | 83 | 0.545601 | kms1212 |
d5cac4189391d3a5ab3edbd8333094c6bd8426bf | 320 | hpp | C++ | include/game/texture.hpp | CoryNull/gold | b990ec6f874434b6e46f838213b5f4936aa86792 | [
"Apache-2.0"
] | null | null | null | include/game/texture.hpp | CoryNull/gold | b990ec6f874434b6e46f838213b5f4936aa86792 | [
"Apache-2.0"
] | null | null | null | include/game/texture.hpp | CoryNull/gold | b990ec6f874434b6e46f838213b5f4936aa86792 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "file.hpp"
#include "types.hpp"
namespace gold {
struct texture : public file {
protected:
static object& getPrototype();
public:
texture();
texture(file copy);
texture(path fpath);
texture(binary data);
var load(list args = {});
var bind(list args);
};
} // namespace gold | 16 | 32 | 0.6625 | CoryNull |
d5cdf8882529fd5bc4327631f446d7997755b886 | 959 | hh | C++ | gneis-geant4/private-include/isnp/facility/component/SpallationTargetMessenger.hh | andrey-nakin/gneis-geant4 | 6def0304b5664a5dafdcfd58344ad2006ef44d62 | [
"MIT"
] | null | null | null | gneis-geant4/private-include/isnp/facility/component/SpallationTargetMessenger.hh | andrey-nakin/gneis-geant4 | 6def0304b5664a5dafdcfd58344ad2006ef44d62 | [
"MIT"
] | null | null | null | gneis-geant4/private-include/isnp/facility/component/SpallationTargetMessenger.hh | andrey-nakin/gneis-geant4 | 6def0304b5664a5dafdcfd58344ad2006ef44d62 | [
"MIT"
] | null | null | null | #ifndef isnp_facility_component_SpallationTargetMessenger_hh
#define isnp_facility_component_SpallationTargetMessenger_hh
#include <memory>
#include <G4UImessenger.hh>
#include <G4UIdirectory.hh>
#include <G4UIcmdWithABool.hh>
#include <G4UIcmdWith3VectorAndUnit.hh>
#include "isnp/facility/component/SpallationTarget.... | 22.302326 | 75 | 0.828989 | andrey-nakin |
d5cff4d5527fecb5bd854b98d73ceae25be84698 | 136 | cpp | C++ | main.cpp | Hiro-KE/RayTracer | d30b3ef794df3d31c42e8d6e99dea640b413c417 | [
"MIT"
] | null | null | null | main.cpp | Hiro-KE/RayTracer | d30b3ef794df3d31c42e8d6e99dea640b413c417 | [
"MIT"
] | null | null | null | main.cpp | Hiro-KE/RayTracer | d30b3ef794df3d31c42e8d6e99dea640b413c417 | [
"MIT"
] | null | null | null | #include <RayTracer/render.h>
int main(int, char**) {
render Render;
Render.init();
Render.process();
return 0;
}
| 13.6 | 29 | 0.580882 | Hiro-KE |
d5d24a29410f8602d9b09664fa30cb7009576dcf | 869 | hpp | C++ | week4/Person/Person.hpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | 1 | 2019-01-06T22:36:01.000Z | 2019-01-06T22:36:01.000Z | week4/Person/Person.hpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | week4/Person/Person.hpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | /*********************************************************************
** Author: Wei-Chien Hsu
** Date: 04/24/18
** Description: A class called Person that has two data members
- a string variable called name and a double variable called age.
It should have a co... | 31.035714 | 89 | 0.50748 | WeiChienHsu |
d5d2b1114c1f6d5a35f3e3d7962cc2699fb8e67c | 473 | cpp | C++ | src/Commands/SelVertexCmd.cpp | PlayMe-Martin/XiMapper | 1926cbd1d13c771d9d60d0d5eb343e059067e0f0 | [
"MIT"
] | 410 | 2015-02-04T22:26:32.000Z | 2022-03-29T00:00:13.000Z | src/Commands/SelVertexCmd.cpp | victorscaff/ofxPiMapper | e79e88e21891abded8388520d4e7f5e6868bfbb7 | [
"MIT"
] | 162 | 2015-01-11T16:09:39.000Z | 2022-03-14T11:24:48.000Z | src/Commands/SelVertexCmd.cpp | victorscaff/ofxPiMapper | e79e88e21891abded8388520d4e7f5e6868bfbb7 | [
"MIT"
] | 100 | 2015-02-09T06:42:31.000Z | 2022-01-01T01:40:36.000Z | #include "SelVertexCmd.h"
namespace ofx {
namespace piMapper {
SelVertexCmd::SelVertexCmd(SurfaceManager * sm, int i){
_surfaceManager = sm;
_newVertexIndex = i;
}
void SelVertexCmd::exec(){
_prevVertexIndex = _surfaceManager->getSelectedVertexIndex();
_surfaceManager->selectVertex(_newVertexIndex);
}
void SelV... | 19.708333 | 62 | 0.761099 | PlayMe-Martin |
d5d498f2c2979ef8d9a980b037d10cf6b0d1031e | 4,323 | cpp | C++ | demo/sireen_example/src/coding_image_demo.cpp | Jetpie/SiReen | 00365023117bec88391bfb37d9549fdca75ac10b | [
"BSD-2-Clause"
] | 4 | 2015-03-18T15:00:38.000Z | 2016-01-04T13:09:59.000Z | demo/sireen_example/src/coding_image_demo.cpp | Jetpie/SiReen | 00365023117bec88391bfb37d9549fdca75ac10b | [
"BSD-2-Clause"
] | null | null | null | demo/sireen_example/src/coding_image_demo.cpp | Jetpie/SiReen | 00365023117bec88391bfb37d9549fdca75ac10b | [
"BSD-2-Clause"
] | null | null | null | #include <unistd.h>
#include <ctime>
#include <vector>
#include "sireen/file_utility.hpp"
#include "sireen/image_feature_extract.hpp"
/*
* Main
*/
int main(int argc, char * argv[]) {
/*********************************************
* Step 0 - optget to receive input option
*****************************... | 30.020833 | 74 | 0.442979 | Jetpie |
d5d607bcc74262633493aea149afe1accf9e6af5 | 4,854 | cpp | C++ | ZeroLibraries/Common/String/StringUtility.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | 1 | 2022-03-26T21:08:19.000Z | 2022-03-26T21:08:19.000Z | ZeroLibraries/Common/String/StringUtility.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | ZeroLibraries/Common/String/StringUtility.cpp | jodavis42/ZeroPhysicsTestbed | e84a3f6faf16b7a4242dc049121b5338e80039f8 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
///
/// \file StringUtility.cpp
///
///
/// Authors: Chris Peters
/// Copyright 2013, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
... | 26.380435 | 138 | 0.568809 | jodavis42 |
d5d8e7be9d5306c7eb0f2aef9fba0c635d0935ca | 628 | cpp | C++ | Polymorphism/player.cpp | LegendaryyDoc/Constructors-and-Decuns | d3469ad46ff88a7d33dee1f50a5f49ee4b99f208 | [
"MIT"
] | null | null | null | Polymorphism/player.cpp | LegendaryyDoc/Constructors-and-Decuns | d3469ad46ff88a7d33dee1f50a5f49ee4b99f208 | [
"MIT"
] | null | null | null | Polymorphism/player.cpp | LegendaryyDoc/Constructors-and-Decuns | d3469ad46ff88a7d33dee1f50a5f49ee4b99f208 | [
"MIT"
] | null | null | null | #include "player.h"
#include "raylib.h"
#include <iostream>
bool player::moveTo(const Vector2 & dest)
{
std::cout << "player moving" << std::endl;
return false;
}
void player::takeDamage(int damage)
{
if (health >= 0)
{
health -= damage;
death = false;
}
else
{
death = true;
}
}
player::player(const s... | 13.361702 | 48 | 0.636943 | LegendaryyDoc |
d5daa1639a8aecc7956364b0221bddbdf2321648 | 527 | cpp | C++ | BOJ_CPP/10269.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/10269.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/10269.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
using namespace std;
int main() {
fastio;
int C, n, a, b, c, i;
long long m = 0;
cin >> C >> n;
for (i = 1; i <= n; ++i) {
cin >> a >> b >> c;
if (m < a) {
break;
}
... | 20.269231 | 63 | 0.371917 | tnsgh9603 |
d5e4eaa1f195ed86fbbc103d55e4b37d79d2df24 | 5,015 | hpp | C++ | Sources/Models/Model.hpp | LukePrzyb/Acid | ba7da3ffcc08791f047ec0f15317b3e0ba971850 | [
"MIT"
] | null | null | null | Sources/Models/Model.hpp | LukePrzyb/Acid | ba7da3ffcc08791f047ec0f15317b3e0ba971850 | [
"MIT"
] | null | null | null | Sources/Models/Model.hpp | LukePrzyb/Acid | ba7da3ffcc08791f047ec0f15317b3e0ba971850 | [
"MIT"
] | null | null | null | #pragma once
#include "Maths/Vector3.hpp"
#include "Graphics/Buffers/Buffer.hpp"
#include "Resources/Resource.hpp"
namespace acid {
template<typename Base>
class ModelFactory {
public:
using TCreateReturn = std::shared_ptr<Base>;
using TCreateMethodNode = std::function<TCreateReturn(const Node &)>;
using TRegist... | 30.210843 | 109 | 0.714656 | LukePrzyb |
d5e988104d12cb3eb25053a7b6090f42e28be3d8 | 26,239 | cc | C++ | src/GraphTraverser.cc | berselius/tycho2 | b57f0aeeb861f34139577d386f18e59070ea2eca | [
"Unlicense"
] | 11 | 2017-07-26T16:08:58.000Z | 2021-03-02T14:49:32.000Z | src/GraphTraverser.cc | berselius/tycho2 | b57f0aeeb861f34139577d386f18e59070ea2eca | [
"Unlicense"
] | 3 | 2017-07-31T15:51:31.000Z | 2021-06-08T21:16:25.000Z | src/GraphTraverser.cc | berselius/tycho2 | b57f0aeeb861f34139577d386f18e59070ea2eca | [
"Unlicense"
] | 14 | 2017-06-21T20:27:21.000Z | 2021-06-24T18:53:11.000Z | /*
Copyright (c) 2016, Los Alamos National Security, LLC
All rights reserved.
Copyright 2016. Los Alamos National Security, LLC. This software was produced
under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National
Laboratory (LANL), which is operated by Los Alamos National Security, LLC for
the U.S. ... | 34.389253 | 84 | 0.548725 | berselius |
d5e9f464b23a5a84da88b2d7b6ac621cb6f56c51 | 5,131 | hpp | C++ | expected.hpp | KholdStare/plumbingplusplus | cced5c76e6d9e8a1b3467b45c3bf36e14e57734c | [
"BSL-1.0"
] | 10 | 2015-01-26T16:30:04.000Z | 2022-03-16T14:37:31.000Z | expected.hpp | KholdStare/plumbingplusplus | cced5c76e6d9e8a1b3467b45c3bf36e14e57734c | [
"BSL-1.0"
] | null | null | null | expected.hpp | KholdStare/plumbingplusplus | cced5c76e6d9e8a1b3467b45c3bf36e14e57734c | [
"BSL-1.0"
] | null | null | null | // This code is put in the public domain by Andrei Alexandrescu
// See http://www.reddit.com/r/programming/comments/14m1tc/andrei_alexandrescu_systematic_error_handling_in/c7etk47
// Some edits by Alexander Kondratskiy.
#ifndef EXPECTED_HPP_TN6DJT51
#define EXPECTED_HPP_TN6DJT51
#include <stdexcept>
#include <algorit... | 21.834043 | 115 | 0.603391 | KholdStare |
d5eb345505ba75f1c5e48d9d375bb67bc53df562 | 666 | cpp | C++ | 05. Searching/05 Count 1s in Sorted Binary Array/05b count 1s in sorted binary array.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 190 | 2021-02-10T17:01:01.000Z | 2022-03-20T00:21:43.000Z | 05. Searching/05 Count 1s in Sorted Binary Array/05b count 1s in sorted binary array.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | null | null | null | 05. Searching/05 Count 1s in Sorted Binary Array/05b count 1s in sorted binary array.cpp | VivekYadav105/Data-Structures-and-Algorithms | 7287912da8068c9124e0bb89c93c4d52aa48c51f | [
"MIT"
] | 27 | 2021-03-26T11:35:15.000Z | 2022-03-06T07:34:54.000Z | #include<bits/stdc++.h>
using namespace std;
/*
problem is similar as finding first occurrence
because array is binary and sorted so,
if we find first occurrence of 1, then subtract it from
last index to find count.
*/
int count1s(int a[], int n)//time comp. O(logn)
{
int low = 0;
int high = n - 1;
while (low <= ... | 14.478261 | 55 | 0.545045 | VivekYadav105 |
d5ed8afbb7ae6ba5c91700484eaab897dc2e03ee | 1,040 | cpp | C++ | 10591 Happy Number.cpp | zihadboss/UVA-Solutions | 020fdcb09da79dc0a0411b04026ce3617c09cd27 | [
"Apache-2.0"
] | 86 | 2016-01-20T11:36:50.000Z | 2022-03-06T19:43:14.000Z | 10591 Happy Number.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | null | null | null | 10591 Happy Number.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | 113 | 2015-12-04T06:40:57.000Z | 2022-02-11T02:14:28.000Z | #include <iostream>
using namespace std;
enum Status {Unchecked, Checking, IsHappy, NotHappy };
const int HIGHEST = 1000;
Status numbers[HIGHEST];
inline int nextNum(int num)
{
int ret = 0;
while (num)
{
ret += (num % 10) * (num % 10);
num /= 10;
}
return ret;
}
bool isHappy(in... | 17.333333 | 79 | 0.4875 | zihadboss |
d5f2a4b8dd5f721a7cd9705db193fe2302c6188b | 5,060 | cpp | C++ | thirdparty/ULib/src/ulib/debug/error_simulation.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/src/ulib/debug/error_simulation.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/src/ulib/debug/error_simulation.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | // ============================================================================
//
// = LIBRARY
// ULib - c++ library
//
// = FILENAME
// error_simulation.cpp
//
// = AUTHOR
// Stefano Casazza
//
// ============================================================================
/*
#define DEBUG_DEBUG
*/
#includ... | 24.444444 | 102 | 0.422925 | liftchampion |
d5f3557e2fdaab5141eaa5f83dc185801c3a2a1c | 5,393 | cpp | C++ | Blaze/logger.cpp | Star-Athenaeum/Blaze | 73f26316e4146596aeb82f77d054cf4e472a2d3d | [
"MIT"
] | 1 | 2021-09-29T21:54:54.000Z | 2021-09-29T21:54:54.000Z | Blaze/logger.cpp | Star-Athenaeum/Blaze | 73f26316e4146596aeb82f77d054cf4e472a2d3d | [
"MIT"
] | 44 | 2020-04-17T14:39:36.000Z | 2020-10-14T04:15:48.000Z | Blaze/logger.cpp | Stryxus/Blaze | 73f26316e4146596aeb82f77d054cf4e472a2d3d | [
"MIT"
] | 1 | 2020-09-30T22:56:48.000Z | 2020-09-30T22:56:48.000Z | #include "pch.hpp"
#include "logger.hpp"
bool Logger::is_using_custom_color = false;
Logger::COLOR Logger::global_foregronnd_color = COLOR::BRIGHT_WHITE_FOREGROUND;
void Logger::log_info(string message)
{
if (!is_using_custom_color) set_console_color_internal(COLOR::BRIGHT_WHITE_FOREGROUND);
printf(string("\n" + ge... | 36.194631 | 220 | 0.749676 | Star-Athenaeum |
d5f7b9bc02d182192c18faf987c2f68cf1eeb6df | 20,947 | cpp | C++ | core/src/main.cpp | qualk/Vega.wtf | 8e0966d5d490f73d405433154daa5b2d9a50f9b6 | [
"MIT"
] | 6 | 2021-09-17T01:33:23.000Z | 2022-03-19T05:13:21.000Z | core/src/main.cpp | qualk/Vega.wtf | 8e0966d5d490f73d405433154daa5b2d9a50f9b6 | [
"MIT"
] | 1 | 2021-09-17T02:03:02.000Z | 2021-09-17T02:03:02.000Z | core/src/main.cpp | qualk/Vega.wtf | 8e0966d5d490f73d405433154daa5b2d9a50f9b6 | [
"MIT"
] | 4 | 2021-09-17T01:33:32.000Z | 2021-09-29T05:12:23.000Z | #include "includes.h"
#define OBF_BEGIN try { obf::next_step __crv = obf::next_step::ns_done; std::shared_ptr<obf::base_rvholder> __rvlocal;
// Data
static LPDIRECT3D9 g_pD3D = NULL;
static LPDIRECT3DDEVICE9 g_pd3dDevice = NULL;
static D3DPRESENT_PARAMETERS g_d3dpp = {};
// Forward declaratio... | 29.881598 | 263 | 0.532009 | qualk |
d5fa1d60b0d0efac056ab516c51fc4448961e201 | 4,555 | cpp | C++ | A2020/Module12_4Digits/Demo4Digits/src/Affichage4DigitsBase.cpp | monkTrapist/420-W48-SF | d1c2b64dcc3054c054a29040eedf05fbdcbfeece | [
"CC0-1.0"
] | 1 | 2021-01-28T18:36:35.000Z | 2021-01-28T18:36:35.000Z | A2020/Module12_4Digits/Demo4Digits/src/Affichage4DigitsBase.cpp | monkTrapist/420-W48-SF | d1c2b64dcc3054c054a29040eedf05fbdcbfeece | [
"CC0-1.0"
] | 2 | 2020-12-09T19:52:34.000Z | 2022-03-21T12:11:08.000Z | A2020/Module12_4Digits/Demo4Digits/src/Affichage4DigitsBase.cpp | monkTrapist/420-W48-SF | d1c2b64dcc3054c054a29040eedf05fbdcbfeece | [
"CC0-1.0"
] | 11 | 2020-11-11T16:55:57.000Z | 2022-03-28T13:46:57.000Z | #include "Affichage4DigitsBase.h"
#include "OptimiserEntreesSorties.h"
static const byte valeurSegments[] = {
// Segements ABCDEFGP
0b11111100, // 0 '0' AAA
0b01100000, // 1 '1' F B
0b11011010, // 2 '2' F B
0b11110010, // 3 '3' GGG
0b01100110, /... | 31.19863 | 152 | 0.554336 | monkTrapist |
91067fa19469909ffe22bf89389e71dae6d1be7e | 2,372 | hpp | C++ | boost/numeric/itl/krylov/async_executor.hpp | lit-uriy/mtl4-mirror | 37cf7c2847165d3537cbc3400cb5fde6f80e3d8b | [
"MTLL"
] | null | null | null | boost/numeric/itl/krylov/async_executor.hpp | lit-uriy/mtl4-mirror | 37cf7c2847165d3537cbc3400cb5fde6f80e3d8b | [
"MTLL"
] | null | null | null | boost/numeric/itl/krylov/async_executor.hpp | lit-uriy/mtl4-mirror | 37cf7c2847165d3537cbc3400cb5fde6f80e3d8b | [
"MTLL"
] | null | null | null | // Software License for MTL
//
// Copyright (c) 2007 The Trustees of Indiana University.
// 2008 Dresden University of Technology and the Trustees of Indiana University.
// 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com.
// All rights reserved.
// Authors: Peter Gottschling and And... | 30.025316 | 94 | 0.677487 | lit-uriy |
5103455a2ad81cf0f3ed55dad96c5de5ed3414f1 | 18,644 | cpp | C++ | Inkpad-develop-framework-project/Inkpad-Core/livarot/ShapeSweepUtils.cpp | manjukiran/MKImageMarkup | be4046e2d5c9a4f6b69d2c6e928af5e70093144d | [
"Apache-2.0"
] | 1 | 2021-06-14T15:35:13.000Z | 2021-06-14T15:35:13.000Z | Inkpad-develop-framework-project/Inkpad-Core/livarot/ShapeSweepUtils.cpp | manjukiran/MKImageMarkup | be4046e2d5c9a4f6b69d2c6e928af5e70093144d | [
"Apache-2.0"
] | null | null | null | Inkpad-develop-framework-project/Inkpad-Core/livarot/ShapeSweepUtils.cpp | manjukiran/MKImageMarkup | be4046e2d5c9a4f6b69d2c6e928af5e70093144d | [
"Apache-2.0"
] | null | null | null | /*
* ShapeSweepUtils.cpp
* nlivarot
*
* Created by fred on Wed Jun 18 2003.
*
*/
#include "Shape.h"
#include "MyMath.h"
SweepEvent::SweepEvent()
{
MakeNew(NULL,NULL,0,0,0,0);
}
SweepEvent::~SweepEvent(void)
{
MakeDelete();
}
void
SweepEvent::MakeNew(SweepTree* iLeft,SweepTree* iRight,float px,float py,flo... | 27.744048 | 167 | 0.64734 | manjukiran |
5107892e5a1d972fb443ea1ce54bf6e01ae87b6c | 3,235 | cc | C++ | Frontend/timer.cc | TongLing916/ICE-BA | b8febd35af821e3bbb5909c66a485b9e234a80fe | [
"Apache-2.0"
] | null | null | null | Frontend/timer.cc | TongLing916/ICE-BA | b8febd35af821e3bbb5909c66a485b9e234a80fe | [
"Apache-2.0"
] | null | null | null | Frontend/timer.cc | TongLing916/ICE-BA | b8febd35af821e3bbb5909c66a485b9e234a80fe | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2017-2018 Baidu Robotic Vision Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... | 38.058824 | 79 | 0.619165 | TongLing916 |
510c52aaeb3ff95cdb61f442a869f2d5cc10769a | 1,972 | cpp | C++ | test/environmentTest5.cpp | Preponderous-Software/SDL-Environment | 2d03160330d16da52996a8344ff47fe11cbdfe43 | [
"MIT"
] | null | null | null | test/environmentTest5.cpp | Preponderous-Software/SDL-Environment | 2d03160330d16da52996a8344ff47fe11cbdfe43 | [
"MIT"
] | null | null | null | test/environmentTest5.cpp | Preponderous-Software/SDL-Environment | 2d03160330d16da52996a8344ff47fe11cbdfe43 | [
"MIT"
] | null | null | null | #include "Environment.h"
#include <cstdlib>
// create environment
Environment environment;
int xpos = environment.getW()/2 - 50;
int ypos = environment.getH()/2 - 50;
int xvel = 0;
int yvel = 0;
int xtarget = 0;
int ytarget = 0;
drawRects() {
// render black square
environment.setRenderColor(0x00, 0x00, 0x00, 0x... | 17 | 61 | 0.639452 | Preponderous-Software |
510fa8b52b24bb8c9fd6df0eb31fdab90e79b353 | 11,216 | cpp | C++ | Code/Engine/Foundation/Threading/Implementation/TaskSystemGroups.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 703 | 2015-03-07T15:30:40.000Z | 2022-03-30T00:12:40.000Z | Code/Engine/Foundation/Threading/Implementation/TaskSystemGroups.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 233 | 2015-01-11T16:54:32.000Z | 2022-03-19T18:00:47.000Z | Code/Engine/Foundation/Threading/Implementation/TaskSystemGroups.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 101 | 2016-10-28T14:05:10.000Z | 2022-03-30T19:00:59.000Z | #include <Foundation/FoundationPCH.h>
#include <Foundation/Logging/Log.h>
#include <Foundation/Profiling/Profiling.h>
#include <Foundation/Threading/Implementation/TaskGroup.h>
#include <Foundation/Threading/Implementation/TaskSystemState.h>
#include <Foundation/Threading/Implementation/TaskWorkerThread.h>
#include <F... | 31.069252 | 222 | 0.711751 | Tekh-ops |
5110e7dcb11d6a211544dbca488947c8c99a01c1 | 1,565 | cpp | C++ | Algorithms/Easy/155.min-stack.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/155.min-stack.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/155.min-stack.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=155 lang=cpp
*
* [155] Min Stack
*
* https://leetcode.com/problems/min-stack/description/
*
* algorithms
* Easy (35.38%)
* Total Accepted: 269.9K
* Total Submissions: 756.8K
* Testcase Example: '["MinStack","push","push","push","getMin","pop","top","getMin"]\n[[],[-2],[0],[-3],[]... | 16.648936 | 119 | 0.557827 | jtcheng |
51150480081cae85b33c08a4b31f2dc9e9fcc218 | 25,801 | cpp | C++ | lib/vdf/LayeredGrid.cpp | yyr/vapor | cdebac81212ffa3f811064bbd7625ffa9089782e | [
"BSD-3-Clause"
] | null | null | null | lib/vdf/LayeredGrid.cpp | yyr/vapor | cdebac81212ffa3f811064bbd7625ffa9089782e | [
"BSD-3-Clause"
] | null | null | null | lib/vdf/LayeredGrid.cpp | yyr/vapor | cdebac81212ffa3f811064bbd7625ffa9089782e | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cassert>
#include <cmath>
#include <cfloat>
#include "vapor/LayeredGrid.h"
using namespace std;
using namespace VAPoR;
LayeredGrid::LayeredGrid(
const size_t bs[3],
const size_t min[3],
const size_t max[3],
const double extents[6],
const bool periodic[3],
float ** blks,
float ** c... | 23.476797 | 82 | 0.586218 | yyr |
5119450791c9c70e8f3501fa1f5c6ae74244ed2a | 738 | hpp | C++ | src/gui/hud/gui_ability.hpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 7 | 2015-01-28T09:17:08.000Z | 2020-04-21T13:51:16.000Z | src/gui/hud/gui_ability.hpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | null | null | null | src/gui/hud/gui_ability.hpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 1 | 2020-07-11T09:20:25.000Z | 2020-07-11T09:20:25.000Z | #ifndef GUI_ABILITY_HPP_INCLUDED
#define GUI_ABILITY_HPP_INCLUDED
/**
* Contains all the information about an ability, for the GUI part. For
* example the icone to use, the activate callback (it can execute the
* ability directly, or change the LeftClick structure, which only involves
* the GUI)
*/
#include <gui... | 23.806452 | 75 | 0.738482 | louiz |
511c4044a743e00aa56c998735284dfc1fd86f47 | 243 | hpp | C++ | include/mutex.hpp | oskarirauta/podman-ubus | fb12bea03ce172d517fd1543249c45bba17b2a45 | [
"MIT"
] | null | null | null | include/mutex.hpp | oskarirauta/podman-ubus | fb12bea03ce172d517fd1543249c45bba17b2a45 | [
"MIT"
] | null | null | null | include/mutex.hpp | oskarirauta/podman-ubus | fb12bea03ce172d517fd1543249c45bba17b2a45 | [
"MIT"
] | 1 | 2022-01-08T07:03:58.000Z | 2022-01-08T07:03:58.000Z | #pragma once
#include <mutex>
#include <thread>
typedef void (*die_handler_func)(int);
struct MutexStore {
public:
std::mutex podman, podman_sched, podman_sock;
MutexStore(die_handler_func die_handler);
};
extern MutexStore mutex;
| 13.5 | 47 | 0.748971 | oskarirauta |
511d7daa914d64fcc4ae8455aad714116a838029 | 246 | cpp | C++ | src/010 - Summation of primes.cpp | montyanderson/euler | ba07a13c8afaa61edf35987f2a4db34c89b5ad39 | [
"MIT"
] | 1 | 2016-03-16T17:08:54.000Z | 2016-03-16T17:08:54.000Z | src/010 - Summation of primes.cpp | montyanderson/euler | ba07a13c8afaa61edf35987f2a4db34c89b5ad39 | [
"MIT"
] | null | null | null | src/010 - Summation of primes.cpp | montyanderson/euler | ba07a13c8afaa61edf35987f2a4db34c89b5ad39 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include "isPrime.hpp"
using namespace std;
int main() {
long int sum = 0;
for(int i = 2; i < 2000000; i++) {
if(isPrime(i) == true)
sum += i;
}
cout << sum << endl;
}
| 13.666667 | 38 | 0.50813 | montyanderson |
512308bd3bfb58307a904a5d872518cf11ac8f01 | 578 | cpp | C++ | codeforces/contests/round/655-div2/c.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/contests/round/655-div2/c.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/contests/round/655-div2/c.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
int32_t main(){
desync();
int t;
cin >> t;
while(t--){
int n;
cin >> n;
vi arr(n);
int acc = 0, flag = 0;
for(int i=1; i<=n; ++i){
cin >> arr[i-1];
if(arr[i-1] == i)
flag = 0;
else i... | 19.266667 | 32 | 0.316609 | tysm |
5124d128b166defd1236b752cab620cdaef99725 | 2,969 | cpp | C++ | source/core/owt_base/internal/InternalClient.cpp | yfdandy/owt-server | 93b1721865907c6af94be4fdef8f191e59f345d2 | [
"Apache-2.0"
] | 890 | 2019-03-08T08:04:10.000Z | 2022-03-30T03:07:44.000Z | source/core/owt_base/internal/InternalClient.cpp | yfdandy/owt-server | 93b1721865907c6af94be4fdef8f191e59f345d2 | [
"Apache-2.0"
] | 583 | 2019-03-11T10:27:42.000Z | 2022-03-29T01:41:28.000Z | source/core/owt_base/internal/InternalClient.cpp | yfdandy/owt-server | 93b1721865907c6af94be4fdef8f191e59f345d2 | [
"Apache-2.0"
] | 385 | 2019-03-08T07:50:13.000Z | 2022-03-29T06:36:28.000Z | // Copyright (C) <2021> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#include "InternalClient.h"
#include "RawTransport.h"
namespace owt_base {
DEFINE_LOGGER(InternalClient, "owt.InternalClient");
InternalClient::InternalClient(
const std::string& streamId,
const std::string& protocol,
Li... | 25.376068 | 87 | 0.624453 | yfdandy |
5127aea9d1bba2efd60678830c1013b6cfbe718f | 8,199 | hpp | C++ | include/GlobalNamespace/ShowHideAnimationController.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/ShowHideAnimationController.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/ShowHideAnimationController.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#... | 47.393064 | 248 | 0.731919 | RedBrumbler |
512eb0cb8c6ad7662d5123ae67ecd2e42d58b987 | 1,525 | cpp | C++ | src/cpp/MagmaWndTest/main.cpp | bhrnjica/MagmaSharp | 60d3ae4baa03a9db7cc9683f4a44ce864d742f26 | [
"MIT"
] | 2 | 2020-08-02T02:11:27.000Z | 2020-08-30T16:15:50.000Z | src/cpp/MagmaWndTest/main.cpp | bhrnjica/MagmaSharp | 60d3ae4baa03a9db7cc9683f4a44ce864d742f26 | [
"MIT"
] | null | null | null | src/cpp/MagmaWndTest/main.cpp | bhrnjica/MagmaSharp | 60d3ae4baa03a9db7cc9683f4a44ce864d742f26 | [
"MIT"
] | null | null | null | #include <iostream>
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "HelperTest.h"
#include "MagmaDevice.h"
#include "mbmagma.h"
using namespace MagmaBinding;
#include "GSVTests.h"
#include "SVDTests.h"
#include "LSSTests.h"
#include "EIGENTests.h"
#include "M... | 17.329545 | 31 | 0.756721 | bhrnjica |
512eea02b2150f4c75cdc9bc70f54ea5376c2147 | 5,252 | cpp | C++ | src/TicTacToeGame.cpp | That-Cool-Coder/sfml-tictactoe | af43fd32b70acd8e73b54a2feb074df93c36bc6d | [
"MIT"
] | null | null | null | src/TicTacToeGame.cpp | That-Cool-Coder/sfml-tictactoe | af43fd32b70acd8e73b54a2feb074df93c36bc6d | [
"MIT"
] | null | null | null | src/TicTacToeGame.cpp | That-Cool-Coder/sfml-tictactoe | af43fd32b70acd8e73b54a2feb074df93c36bc6d | [
"MIT"
] | null | null | null | #include "TicTacToeGame.hpp"
void TicTacToeGame::setup()
{
createBoard();
createText();
m_board.clear();
m_crntPlayer = CellValue::Cross; // todo: set this randomly
}
void TicTacToeGame::createText()
{
m_textEntities.clear();
m_headingText = std::make_shared<sf::Text>();
m_headingText... | 29.177778 | 89 | 0.609863 | That-Cool-Coder |
51318153f254555c64f9201de6ecb0142f915259 | 7,122 | cpp | C++ | DearPyGui/src/core/AppItems/mvAppItemState.cpp | htnminh/DearPyGui | bfbcb297f287295fae9766b21a53a99fbb0fe756 | [
"MIT"
] | null | null | null | DearPyGui/src/core/AppItems/mvAppItemState.cpp | htnminh/DearPyGui | bfbcb297f287295fae9766b21a53a99fbb0fe756 | [
"MIT"
] | 1 | 2021-08-16T02:39:32.000Z | 2021-08-16T02:39:32.000Z | DearPyGui/src/core/AppItems/mvAppItemState.cpp | Jah-On/DearPyGui | 0e4f5d05555f950670e01bb2a647fb8b0b9a106f | [
"MIT"
] | null | null | null | #include "mvAppItemState.h"
#include <imgui.h>
#include "mvAppItem.h"
#include "mvApp.h"
#include "mvPyObject.h"
namespace Marvel {
void mvAppItemState::reset()
{
_hovered = false;
_active = false;
_focused = false;
_leftclicked = false;
_rightclicked = false;
_... | 36.901554 | 172 | 0.659927 | htnminh |
5133bba43106ad19491cc409206c5b9064cfd136 | 5,366 | cpp | C++ | src/pi-src/util.cpp | 31337H4X0R/crab-tracker | c822a40010d172ba797b5de8c340931d0feea6e4 | [
"MIT"
] | 1 | 2019-07-31T01:32:17.000Z | 2019-07-31T01:32:17.000Z | src/pi-src/util.cpp | 31337H4X0R/crab-tracker | c822a40010d172ba797b5de8c340931d0feea6e4 | [
"MIT"
] | 47 | 2017-11-04T02:04:42.000Z | 2018-06-16T01:00:48.000Z | src/pi-src/util.cpp | 31337H4X0R/crab-tracker | c822a40010d172ba797b5de8c340931d0feea6e4 | [
"MIT"
] | 2 | 2018-06-10T21:58:49.000Z | 2019-06-18T17:21:03.000Z | /******************************************************************************
Helper methods, including configuration management.
Author: Noah Strong
Project: Crab Tracker
Created: 2018-02-19
******************************************************************************/
#include <stdint.h>
#include <stdio.h>
#inc... | 32.131737 | 80 | 0.549758 | 31337H4X0R |
51350ef7d52628847601f5a0ec6fa701d333df3a | 324 | hpp | C++ | include/log.hpp | langenhagen/barn-bookmark-manager | e7db7dba34e92c74ad445d088b57559dbba26f63 | [
"MIT"
] | null | null | null | include/log.hpp | langenhagen/barn-bookmark-manager | e7db7dba34e92c74ad445d088b57559dbba26f63 | [
"MIT"
] | null | null | null | include/log.hpp | langenhagen/barn-bookmark-manager | e7db7dba34e92c74ad445d088b57559dbba26f63 | [
"MIT"
] | null | null | null | /* Common logging functionality.
author: andreasl
*/
#pragma once
#include <ostream>
namespace barn {
namespace bbm {
/* Severity levels for logging.*/
enum Severity {
INFO,
WARN,
ERROR
};
/* Write a log message to console.*/
std::ostream& log(const Severity level);
} // namespace bbm
} // namespace b... | 13.5 | 40 | 0.675926 | langenhagen |
5135b5e0813ed68e19a88286b59accf0a2449e62 | 45,832 | cpp | C++ | NFIQ2/NFIQ2/NFIQ2Algorithm/src/wsq/util.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | null | null | null | NFIQ2/NFIQ2/NFIQ2Algorithm/src/wsq/util.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | null | null | null | NFIQ2/NFIQ2/NFIQ2Algorithm/src/wsq/util.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | 1 | 2022-02-14T03:16:05.000Z | 2022-02-14T03:16:05.000Z | /*******************************************************************************
License:
This software and/or related materials was developed at the National Institute
of Standards and Technology (NIST) by employees of the Federal Government
in the course of their official duties. Pursuant to title 17 Section 105
of... | 30.595461 | 82 | 0.448202 | mahizhvannan |
51388507df9298375b670a75a0448f730e9b882a | 1,291 | hh | C++ | skysim/onnc-cimHW/lib/hardware/WordLineDriver.hh | ONNC/ONNC-CIM | dd15eae6b22b39dcd2bff179e14ad0eda40e4338 | [
"BSD-3-Clause"
] | 2 | 2021-07-05T02:26:11.000Z | 2022-01-11T10:37:20.000Z | skysim/onnc-cimHW/lib/hardware/WordLineDriver.hh | ONNC/ONNC-CIM | dd15eae6b22b39dcd2bff179e14ad0eda40e4338 | [
"BSD-3-Clause"
] | null | null | null | skysim/onnc-cimHW/lib/hardware/WordLineDriver.hh | ONNC/ONNC-CIM | dd15eae6b22b39dcd2bff179e14ad0eda40e4338 | [
"BSD-3-Clause"
] | 1 | 2022-01-11T10:39:01.000Z | 2022-01-11T10:39:01.000Z | //===- WordLineDriver.hh --------------------------------------------------===//
//
// The CIM Hardware Simulator Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#pragma once
#include "types.hh"
#include "CrossBarArray.... | 33.102564 | 110 | 0.522076 | ONNC |
513da54bf06620d5fd47c5a679cbfdfeab902860 | 47,571 | cc | C++ | gui/schedule_list.cc | chris-nada/simutrans-extended | 71c0c4f78cb3170b1fa1c68d8baafa9a7269ef6f | [
"Artistic-1.0"
] | 38 | 2017-07-26T14:48:12.000Z | 2022-03-24T23:48:55.000Z | gui/schedule_list.cc | chris-nada/simutrans-extended | 71c0c4f78cb3170b1fa1c68d8baafa9a7269ef6f | [
"Artistic-1.0"
] | 74 | 2017-03-15T21:07:34.000Z | 2022-03-18T07:53:11.000Z | gui/schedule_list.cc | chris-nada/simutrans-extended | 71c0c4f78cb3170b1fa1c68d8baafa9a7269ef6f | [
"Artistic-1.0"
] | 43 | 2017-03-10T15:27:28.000Z | 2022-03-05T10:55:38.000Z | /*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include <stdio.h>
#include <algorithm>
#include "messagebox.h"
#include "schedule_list.h"
#include "line_management_gui.h"
#include "components/gui_convoiinfo.h"
#include "components/gui_divider.h"
#include... | 35.580404 | 223 | 0.734817 | chris-nada |
51416c8e10df51850d6fb404a2ba6e0e0dff40c8 | 395 | cpp | C++ | engine/generators/settlements/sector/source/SectorFeature.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/generators/settlements/sector/source/SectorFeature.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/generators/settlements/sector/source/SectorFeature.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "SectorFeature.hpp"
#include "CoordUtils.hpp"
using namespace std;
bool SectorFeature::generate(MapPtr map, const Coordinate& start_coord, const Coordinate& end_coord)
{
bool generated = false;
if (map && CoordUtils::is_in_range(map->size(), start_coord, end_coord))
{
generated = genera... | 21.944444 | 101 | 0.703797 | sidav |
5143ffaee250fada2155680e07a710901a7e2add | 9,281 | cpp | C++ | interpreter/lexer.cpp | kmc-jp/icfpc-2020 | 5bff55fe16bc2fc79e74601c6cb18ee1466beaf8 | [
"MIT"
] | null | null | null | interpreter/lexer.cpp | kmc-jp/icfpc-2020 | 5bff55fe16bc2fc79e74601c6cb18ee1466beaf8 | [
"MIT"
] | null | null | null | interpreter/lexer.cpp | kmc-jp/icfpc-2020 | 5bff55fe16bc2fc79e74601c6cb18ee1466beaf8 | [
"MIT"
] | null | null | null | #include "lexer.hpp"
void skip_spaces(std::string const& in, int& pos) {
while(pos < (int)in.size() && in[pos] == ' ') ++pos;
}
void skip_spaces(std::vector<std::string> const& in, int& x) {
while(x < (int)in[0].size()) {
bool all_space = true;
for(int y = 0; y < (int)in.size(); ++y) ... | 38.35124 | 113 | 0.504579 | kmc-jp |
51462164b90de054864b36b9771f835aacfdc382 | 196 | hpp | C++ | src/fwd/sln.hpp | PiotrOstrow/eoserv | 73253dcc711368a94942b0cfab86f3d42b88b999 | [
"Zlib"
] | 21 | 2020-01-22T10:42:26.000Z | 2022-02-15T19:45:43.000Z | src/fwd/sln.hpp | eoserv/mainclone-eoserv | e18e87f169140b6c0da80b9d866f672e8f6dced5 | [
"Zlib"
] | 12 | 2019-12-10T21:47:57.000Z | 2020-11-06T06:01:52.000Z | src/fwd/sln.hpp | eoserv/mainclone-eoserv | e18e87f169140b6c0da80b9d866f672e8f6dced5 | [
"Zlib"
] | 11 | 2020-04-01T21:46:07.000Z | 2022-03-07T10:50:43.000Z |
/* $Id$
* EOSERV is released under the zlib license.
* See LICENSE.txt for more info.
*/
#ifndef FWD_SLN_HPP_INCLUDED
#define FWD_SLN_HPP_INCLUDED
class SLN;
#endif // FWD_SLN_HPP_INCLUDED
| 15.076923 | 45 | 0.744898 | PiotrOstrow |
5146f18a203e00e16d60dc73391b8ce36cadcdd8 | 3,606 | cpp | C++ | Project/zoolib/ValPred/Expr_Bool_ValPred.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 13 | 2015-01-28T21:05:09.000Z | 2021-11-03T22:21:11.000Z | Project/zoolib/ValPred/Expr_Bool_ValPred.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | null | null | null | Project/zoolib/ValPred/Expr_Bool_ValPred.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 4 | 2018-11-16T08:33:33.000Z | 2021-12-11T19:40:46.000Z | // Copyright (c) 2011 Andrew Green. MIT License. http://www.zoolib.org
#include "zoolib/ValPred/Expr_Bool_ValPred.h"
namespace ZooLib {
// =================================================================================================
#pragma mark - Expr_Bool_ValPred
Expr_Bool_ValPred::Expr_Bool_ValPred(const Val... | 29.801653 | 100 | 0.691625 | ElectricMagic |
514786e45bfa78af864d4f97ff08ceae21f9fbcd | 2,542 | cpp | C++ | lightOJ/loj1123.cpp | partho222/programming | 98a87b6a04f39c343125cf5f0dd85e0f1c37d56c | [
"BSD-2-Clause"
] | null | null | null | lightOJ/loj1123.cpp | partho222/programming | 98a87b6a04f39c343125cf5f0dd85e0f1c37d56c | [
"BSD-2-Clause"
] | null | null | null | lightOJ/loj1123.cpp | partho222/programming | 98a87b6a04f39c343125cf5f0dd85e0f1c37d56c | [
"BSD-2-Clause"
] | null | null | null | /* Tariq ahmed khan - Daffodil */
#include <bits/stdc++.h>
#define _ ios_base::sync_with_stdio(0);cin.tie(0); // I/O optimization
#define pi 2*acos(0.0)
#define scan(x) scanf("%d",&x)
#define sf scanf
#define pf printf
#define pb push_back
#define memoclr(n,x) memset(n,x,sizeof(n) )
#define INF 1 << 30
typedef lo... | 23.537037 | 120 | 0.434304 | partho222 |
5147b6b5966663e3288f8cec47347c937a866519 | 954 | cpp | C++ | The_Eye/src/Biquad_Filter.cpp | michprev/drone | 51c659cdd4e1d50446a563bb11e800defda9a298 | [
"MIT"
] | 2 | 2017-06-03T01:07:16.000Z | 2017-07-14T17:49:16.000Z | The_Eye/src/Biquad_Filter.cpp | michprev/drone | 51c659cdd4e1d50446a563bb11e800defda9a298 | [
"MIT"
] | 5 | 2017-04-24T20:29:04.000Z | 2017-06-26T17:40:53.000Z | The_Eye/src/Biquad_Filter.cpp | michprev/drone | 51c659cdd4e1d50446a563bb11e800defda9a298 | [
"MIT"
] | null | null | null | /*
* Biquad_Filter.cpp
*
* Created on: 24. 6. 2017
* Author: michp
*/
#include <Biquad_Filter.h>
namespace flyhero {
Biquad_Filter::Biquad_Filter(Filter_Type type, float sample_frequency, float cut_frequency) {
double K = std::tan(this->PI * cut_frequency / sample_frequency);
double Q = 1.0... | 20.73913 | 94 | 0.524109 | michprev |
514ca2cb3acec8c2b0b53fb1c22ade80fbb6b6f6 | 17,331 | hpp | C++ | GetOrientation/Vector2.hpp | LiangJy123/GetOrientation | b7ced089676847b986b5c16718ec847bbb3fd223 | [
"MIT"
] | 71 | 2020-05-28T07:19:39.000Z | 2022-02-14T02:48:01.000Z | GetOrientation/Vector2.hpp | LiangJy123/GetOrientation | b7ced089676847b986b5c16718ec847bbb3fd223 | [
"MIT"
] | 4 | 2021-02-20T13:49:53.000Z | 2022-03-24T16:39:08.000Z | GetOrientation/Vector2.hpp | LiangJy123/GetOrientation | b7ced089676847b986b5c16718ec847bbb3fd223 | [
"MIT"
] | 9 | 2017-11-22T01:25:32.000Z | 2021-12-25T11:28:34.000Z | /**
* ============================================================================
* MIT License
*
* Copyright (c) 2016 Eric Phillips
*
* 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 So... | 30.620141 | 80 | 0.63724 | LiangJy123 |
515437bc433e9c841957d5e61e63a18afde2dd41 | 2,903 | cc | C++ | framework/memory/memory_manager.cc | ans-hub/gdm_framework | 4218bb658d542df2c0568c4d3aac813cd1f18e1b | [
"MIT"
] | 1 | 2020-12-30T23:50:01.000Z | 2020-12-30T23:50:01.000Z | framework/memory/memory_manager.cc | ans-hub/gdm_framework | 4218bb658d542df2c0568c4d3aac813cd1f18e1b | [
"MIT"
] | null | null | null | framework/memory/memory_manager.cc | ans-hub/gdm_framework | 4218bb658d542df2c0568c4d3aac813cd1f18e1b | [
"MIT"
] | null | null | null | // *************************************************************
// File: memory_manager.cc
// Author: Novoselov Anton @ 2018
// URL: https://github.com/ans-hub/gdm_framework
// *************************************************************
#include "memory_manager.h"
#include <memory/memory_tracker.h>
#includ... | 27.647619 | 106 | 0.704099 | ans-hub |
51557d33621fe7cfed967ce3a7394e8251002639 | 3,118 | hpp | C++ | KFPlugin/KFDeployServer/KFDeployServerModule.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFPlugin/KFDeployServer/KFDeployServerModule.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFPlugin/KFDeployServer/KFDeployServerModule.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #ifndef __KF_DEPLOY_SERVER_MODULE_H__
#define __KF_DEPLOY_SERVER_MODULE_H__
/************************************************************************
// @Module : 部署Server
// @Author : __凌_痕__
// @QQ : 7969936
// @Mail : lori227@qq.com
// @Date : 2018-7-... | 23.801527 | 78 | 0.570558 | 282951387 |
515bdedef961afeb3573601aa52e151ec83104d1 | 706 | cpp | C++ | server/Common/Packets/GCStallError.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Common/Packets/GCStallError.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Common/Packets/GCStallError.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
// GCStallError.cpp
//
/////////////////////////////////////////////////////
#include "GCStallError.h"
BOOL GCStallError::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ID), sizeof(BYTE));
return TRUE ;
__LEAVE_FUNCTION
return FALSE ;
}... | 16.045455 | 62 | 0.610482 | viticm |
515c0f991d826f7014190d628854a375aba1a70d | 1,624 | cpp | C++ | audio_editor_core/audio_editor_core/paste_board/ae_pasteboard_types.cpp | objective-audio/audio_editor | 649f74cdca3d7db3d618922a345ea158a0c03a1d | [
"MIT"
] | null | null | null | audio_editor_core/audio_editor_core/paste_board/ae_pasteboard_types.cpp | objective-audio/audio_editor | 649f74cdca3d7db3d618922a345ea158a0c03a1d | [
"MIT"
] | null | null | null | audio_editor_core/audio_editor_core/paste_board/ae_pasteboard_types.cpp | objective-audio/audio_editor | 649f74cdca3d7db3d618922a345ea158a0c03a1d | [
"MIT"
] | null | null | null | //
// ae_pasteboard_types.cpp
//
#include "ae_pasteboard_types.h"
#include <audio_editor_core/ae_pasteboard_constants.h>
#include <audio_editor_core/ae_pasteboard_utils.h>
using namespace yas;
using namespace yas::ae;
using namespace yas::ae::pasteboard_constants;
std::string pasting_file_module::data() const {
... | 38.666667 | 117 | 0.692118 | objective-audio |
515fdcb124524d54694735ebf2de3286716ca302 | 920 | cpp | C++ | Actor/Characters/Enemy/E4/State/StateRoot_EnemyE4.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/E4/State/StateRoot_EnemyE4.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/E4/State/StateRoot_EnemyE4.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "StateRoot_EnemyE4.h"
#include "StateMng_EnemyE4.h"
UStateRoot_EnemyE4::UStateRoot_EnemyE4()
{
}
UStateRoot_EnemyE4::~UStateRoot_EnemyE4()
{
}
void UStateRoot_EnemyE4::Init(class UStateMng_GC* pMng)
{
Super::Init(pMng);
m_pS... | 16.727273 | 78 | 0.755435 | Bornsoul |
51637f2c62188dae57e1f0a21870117260bcf1c9 | 813 | hpp | C++ | WorldLoader/Include/WorldDataTags.hpp | jordanlittlefair/Foundation | ab737b933ea5bbe2be76133ed78c8e882f072fd0 | [
"BSL-1.0"
] | null | null | null | WorldLoader/Include/WorldDataTags.hpp | jordanlittlefair/Foundation | ab737b933ea5bbe2be76133ed78c8e882f072fd0 | [
"BSL-1.0"
] | null | null | null | WorldLoader/Include/WorldDataTags.hpp | jordanlittlefair/Foundation | ab737b933ea5bbe2be76133ed78c8e882f072fd0 | [
"BSL-1.0"
] | null | null | null | #pragma once
#ifndef _WORLDLOADER_WORLDDATATAGS_HPP_
#define _WORLDLOADER_WORLDDATATAGS_HPP_
/*
Define the tags which make up the entities in an xml world file.
*/
#define WORLD_TAG "World"
#define ASSETS_TAG "Assets"
#define ENTITIES_TAG "Entities"
#define ENTITY_TAG "Entity"
#define NAME_TAG "Na... | 15.339623 | 66 | 0.597786 | jordanlittlefair |
5164f4efc116badb10d2b6ddc9de96185a4dd22c | 966 | cpp | C++ | lab5ex6.cpp | nuriyevanar0/cpp-first-sem-labs | 6811b4339b9781f01d21ab0224a3ddf4ecf6a7a7 | [
"MIT"
] | null | null | null | lab5ex6.cpp | nuriyevanar0/cpp-first-sem-labs | 6811b4339b9781f01d21ab0224a3ddf4ecf6a7a7 | [
"MIT"
] | null | null | null | lab5ex6.cpp | nuriyevanar0/cpp-first-sem-labs | 6811b4339b9781f01d21ab0224a3ddf4ecf6a7a7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
/*
Laboratory 5 Ex 6
Write a program to generate two-dimentional array with random numbers and find maximum element in the whole array.
Print array and maximum element.
*/
int main() {
srand (time(NULL));
int array1[3][... | 19.714286 | 116 | 0.546584 | nuriyevanar0 |
5165566847d1911f4bc07185ae61e0d32f02d691 | 5,813 | cc | C++ | vm/message_loop_epoll.cc | Outcue/primordialsoup | 056dd858b011c2f3bc71b9f15240061d1d0760ad | [
"Apache-2.0"
] | 35 | 2016-05-20T03:59:10.000Z | 2022-02-21T09:59:14.000Z | vm/message_loop_epoll.cc | Outcue/primordialsoup | 056dd858b011c2f3bc71b9f15240061d1d0760ad | [
"Apache-2.0"
] | 7 | 2020-11-22T04:53:24.000Z | 2021-04-18T02:14:09.000Z | vm/message_loop_epoll.cc | Outcue/primordialsoup | 056dd858b011c2f3bc71b9f15240061d1d0760ad | [
"Apache-2.0"
] | 4 | 2017-02-15T04:26:37.000Z | 2020-11-21T02:29:23.000Z | // Copyright (c) 2018, the Newspeak 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 "vm/globals.h" // NOLINT
#if defined(OS_ANDROID) || defined(OS_LINUX)
#include "vm/messag... | 25.384279 | 80 | 0.62429 | Outcue |
5169c78622a0ad2debdf3bee0f2f1700c8106601 | 1,232 | cpp | C++ | Round-Robin/Frame.cpp | MichelDequick/mbed-round-robin | dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1 | [
"Apache-2.0"
] | null | null | null | Round-Robin/Frame.cpp | MichelDequick/mbed-round-robin | dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1 | [
"Apache-2.0"
] | null | null | null | Round-Robin/Frame.cpp | MichelDequick/mbed-round-robin | dbdcf88ac30be2e64c2de286b99f3bebe8f3a2e1 | [
"Apache-2.0"
] | null | null | null | #include "Frame.h"
#include "mbed.h"
Frame::Frame(char * data)
{
this->data = data;
memset(id, 0x00, 32);
}
Frame::~Frame(void)
{
}
void Frame::decode(void)
{
len = data[2];
idd = data[3];
tmp = (data[4] << 8) + data[5];;
pwm = data[6];
tun = data[7];
for(int i = 8; i < (strlen(data... | 16.648649 | 49 | 0.474026 | MichelDequick |
5174d524b9373318061ff23bb5bc8dc555f6ea5e | 217 | cpp | C++ | chapter-4/4.8.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-4/4.8.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-4/4.8.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // && operator: if the left operand is flase, there is no need to compute the right operand
// || operator: if the left operand is true, there is no need to compute the right operand
// == operator: there is no order
| 54.25 | 91 | 0.723502 | zero4drift |
5176f73ee52bf7a3246e4672abf3bd45bbd3d757 | 1,560 | cpp | C++ | cpp/beginner_contest_147/d.cpp | kitoko552/atcoder | a1e18b6d855baefb90ae6df010bcf1ffa8ff5562 | [
"MIT"
] | 1 | 2020-03-31T05:53:38.000Z | 2020-03-31T05:53:38.000Z | cpp/beginner_contest_147/d.cpp | kitoko552/atcoder | a1e18b6d855baefb90ae6df010bcf1ffa8ff5562 | [
"MIT"
] | null | null | null | cpp/beginner_contest_147/d.cpp | kitoko552/atcoder | a1e18b6d855baefb90ae6df010bcf1ffa8ff5562 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<map>
#include<queue>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int INF = 1001001001;
const int mod = 1000000... | 18.795181 | 48 | 0.527564 | kitoko552 |
517854476b5e9fdff130edbcaef0775d56a1532c | 232 | cpp | C++ | project/CrafterraTest/CrafterraTest/Source.cpp | AsPJT/CrafterraProterozoic | d0531d2052b1bb5c10b6763f74034e6e3c678d1f | [
"CC0-1.0"
] | null | null | null | project/CrafterraTest/CrafterraTest/Source.cpp | AsPJT/CrafterraProterozoic | d0531d2052b1bb5c10b6763f74034e6e3c678d1f | [
"CC0-1.0"
] | null | null | null | project/CrafterraTest/CrafterraTest/Source.cpp | AsPJT/CrafterraProterozoic | d0531d2052b1bb5c10b6763f74034e6e3c678d1f | [
"CC0-1.0"
] | null | null | null | #ifdef _OPENMP
#include <omp.h>
#endif
#ifdef _WIN32
#include <DxLib.h>
#ifndef __DXLIB
#define __DXLIB
#endif
#ifndef __WINDOWS__
#define __WINDOWS__
#endif
#else
#include <Siv3D.hpp>
#endif
#include <Sample/UseAsLib2/Sample1.hpp>
| 14.5 | 39 | 0.767241 | AsPJT |
5178f25f4875cdbef934fb4fc3337045663a5abb | 26,635 | cpp | C++ | OgreMain/src/OgreProfiler.cpp | FreeNightKnight/ogre-next | f2d1a31887a87c492b4225e063325c48693fec19 | [
"MIT"
] | null | null | null | OgreMain/src/OgreProfiler.cpp | FreeNightKnight/ogre-next | f2d1a31887a87c492b4225e063325c48693fec19 | [
"MIT"
] | null | null | null | OgreMain/src/OgreProfiler.cpp | FreeNightKnight/ogre-next | f2d1a31887a87c492b4225e063325c48693fec19 | [
"MIT"
] | null | null | null | /*
-----------------------------------------------------------------------------
This source file is part of OGRE-Next
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any pe... | 39.635417 | 105 | 0.516689 | FreeNightKnight |
51829af04373ec22127a695a60160a8edfa14157 | 1,099 | cpp | C++ | 1-CLRS-Solution/C15-Dynamic-Programming/Problem/code/15.4.cpp | ftxj/2th-SummerHO | 422e04478d5904eb3bb75417793a4981ba108e19 | [
"MIT"
] | null | null | null | 1-CLRS-Solution/C15-Dynamic-Programming/Problem/code/15.4.cpp | ftxj/2th-SummerHO | 422e04478d5904eb3bb75417793a4981ba108e19 | [
"MIT"
] | null | null | null | 1-CLRS-Solution/C15-Dynamic-Programming/Problem/code/15.4.cpp | ftxj/2th-SummerHO | 422e04478d5904eb3bb75417793a4981ba108e19 | [
"MIT"
] | 1 | 2018-03-29T12:00:15.000Z | 2018-03-29T12:00:15.000Z | #include <iostream>
#include <climits>
#include <cmath>
using namespace std;
int main(){
const int N = 7;
int dp[N];
int M = 30;
int cost[N][N];
int G[N];
for(int i = 0; i < N; ++i){
cin >> G[i];
}
int temp;
for(int i = 0; i < N; ++i){
for(int j = i; j < N; ++j){
... | 22.895833 | 55 | 0.312102 | ftxj |
51835c5df2de4879756205d30600687a501c29c4 | 3,573 | cpp | C++ | src/couchdb/couchview.cpp | jpnurmi/qtcouchdb | 44fdb67d04b86ea715f8ede66b510488d5232493 | [
"MIT"
] | 2 | 2020-12-12T03:15:03.000Z | 2022-01-03T11:11:58.000Z | src/couchdb/couchview.cpp | CELLINKAB/qtcouchdb | 44fdb67d04b86ea715f8ede66b510488d5232493 | [
"MIT"
] | 3 | 2020-11-28T10:53:10.000Z | 2020-11-28T14:00:29.000Z | src/couchdb/couchview.cpp | jpnurmi/qtcouchdb | 44fdb67d04b86ea715f8ede66b510488d5232493 | [
"MIT"
] | 2 | 2021-02-13T14:38:58.000Z | 2022-02-21T15:42:26.000Z | #include "couchview.h"
#include "couchclient.h"
#include "couchdatabase.h"
#include "couchdesigndocument.h"
#include "couchrequest.h"
#include "couchresponse.h"
class CouchViewPrivate
{
Q_DECLARE_PUBLIC(CouchView)
public:
CouchResponse *response(CouchResponse *response)
{
Q_Q(CouchView);
... | 23.662252 | 106 | 0.671425 | jpnurmi |
3d601d61551912a675c10715d1120966d560daf2 | 506 | cpp | C++ | Falling-into-deeps/src/graphics/VertexBuffer.cpp | RustyGuard/Falling_into_deeps | 81021f7ebeba65a6c367850462636309365e7e4a | [
"Apache-2.0"
] | null | null | null | Falling-into-deeps/src/graphics/VertexBuffer.cpp | RustyGuard/Falling_into_deeps | 81021f7ebeba65a6c367850462636309365e7e4a | [
"Apache-2.0"
] | null | null | null | Falling-into-deeps/src/graphics/VertexBuffer.cpp | RustyGuard/Falling_into_deeps | 81021f7ebeba65a6c367850462636309365e7e4a | [
"Apache-2.0"
] | null | null | null | #include "gearpch.h"
#include "VertexBuffer.h"
#include <glad/glad.h>
VertexBuffer::VertexBuffer(const void* data, unsigned int size) {
glGenBuffers(1, &m_RendererId);
glBindBuffer(GL_ARRAY_BUFFER, m_RendererId);
glBufferData(GL_ARRAY_BUFFER, size, data, GL_STATIC_DRAW);
}
VertexBuffer::~VertexBuffer() {
glDelet... | 23 | 65 | 0.764822 | RustyGuard |
3d693dac6cbf4bafac99f7da2535618067b5fb6a | 1,553 | cc | C++ | src/libraptor/Utility.cc | RabbitNick/rfc5053 | e7a8e94be467a1e5d9fa18f55d6bf4dd84757dec | [
"MIT"
] | 28 | 2015-04-11T10:20:25.000Z | 2021-04-28T15:48:36.000Z | src/libraptor/Utility.cc | RabbitNick/rfc5053 | e7a8e94be467a1e5d9fa18f55d6bf4dd84757dec | [
"MIT"
] | 1 | 2016-11-25T06:10:13.000Z | 2016-11-25T06:10:13.000Z | src/libraptor/Utility.cc | RabbitNick/rfc5053 | e7a8e94be467a1e5d9fa18f55d6bf4dd84757dec | [
"MIT"
] | 18 | 2015-04-10T08:25:48.000Z | 2022-01-25T11:22:31.000Z |
#include "Utility.h"
Utility::Utility(void)
{
}
Utility::~Utility(void)
{
}
bool Utility::checking_prime_integer(uint32_t v)
{
for (int i = 2; i < v; i++)
{
if (v % i == 0)
{
return 0;
}
}
return 1;
}
uint32_t Utility::find_smallest_prime_integer(uint32_t v)
{
bool r = 0;
uint32_t prime =... | 16.521277 | 120 | 0.631037 | RabbitNick |
3d6c20b45a546f37ae10e83a2456432c8c3ded8d | 7,016 | cpp | C++ | src/chatroomwindow.cpp | Alpha-Incorporated/Chatter-Box | 96937353a75c2dcb8e89e99fb3d317211ff7e85c | [
"MIT"
] | 2 | 2019-02-27T12:02:16.000Z | 2019-02-27T15:29:49.000Z | src/chatroomwindow.cpp | Alien-Inc/Chatter-Box | 96937353a75c2dcb8e89e99fb3d317211ff7e85c | [
"MIT"
] | 2 | 2020-11-19T08:39:52.000Z | 2020-11-19T08:50:19.000Z | src/chatroomwindow.cpp | Alpha-Incorporated/Chatter-Box | 96937353a75c2dcb8e89e99fb3d317211ff7e85c | [
"MIT"
] | 1 | 2020-02-21T04:26:13.000Z | 2020-02-21T04:26:13.000Z | #include "chatroomwindow.h"
using namespace chat_room;
ChatRoomWindow::ChatRoomWindow() : QMainWindow(nullptr), initialized(false)
{
// Set up Window
this->setGeometry(150, 150, 640, 480);
setWindowTitle(tr("Chat"));
setMinimumSize(640, 480);
// Menu Bar
exit_chat_action = new... | 28.064 | 112 | 0.638683 | Alpha-Incorporated |
3d70329e7cbc40ded3bdfda45592de5854d0ae37 | 677 | cpp | C++ | Camp_0-2563/1007-AwitCat34.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_0-2563/1007-AwitCat34.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_0-2563/1007-AwitCat34.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | /*
* TASK : AwitCat34
* AUTHOR : Hydrolyzed~
* LANG : C
* SCHOOL : RYW
* */
#include<stdio.h>
#include<string.h>
char a[510];
char *ptr;
int main (){
int i,q,ch,ch2,len;
gets(a);
sscanf(a,"%d",&q);
while(q--)
{
gets(a);
if(a[strlen(a)-1]=='\r')
a[strlen(a)-1]='\0';
ptr = strto... | 14.104167 | 36 | 0.423929 | MasterIceZ |
3d723a663ce7d5148bc1a2e3f308422cc832ea65 | 286 | cpp | C++ | src/cliente/modelos/PuntuacionJugadores.cpp | humbertodias/Final-Fight | f5f8983dce599cc68548797d6d992cb34b44c3b2 | [
"MIT"
] | null | null | null | src/cliente/modelos/PuntuacionJugadores.cpp | humbertodias/Final-Fight | f5f8983dce599cc68548797d6d992cb34b44c3b2 | [
"MIT"
] | null | null | null | src/cliente/modelos/PuntuacionJugadores.cpp | humbertodias/Final-Fight | f5f8983dce599cc68548797d6d992cb34b44c3b2 | [
"MIT"
] | null | null | null | //
// Created by sebas on 7/11/19.
//
#include "PuntuacionJugadores.h"
void
PuntuacionJugadores::setPuntuacion (string jugador, int puntuacion)
{
puntuaciones[jugador] = puntuacion;
}
unordered_map < string, int >
PuntuacionJugadores::getPuntuaciones ()
{
return puntuaciones;
}
| 15.888889 | 67 | 0.744755 | humbertodias |
3d73ddf3050c562588f8e6fa6b3e018b6ae3d663 | 494 | hpp | C++ | DesignPattern/Creator/Factory/FactoryBuilder.hpp | ludaye123/DesignPatterns | aec36ca2c7475640f6e34153a9a6678a953124a7 | [
"MIT"
] | null | null | null | DesignPattern/Creator/Factory/FactoryBuilder.hpp | ludaye123/DesignPatterns | aec36ca2c7475640f6e34153a9a6678a953124a7 | [
"MIT"
] | null | null | null | DesignPattern/Creator/Factory/FactoryBuilder.hpp | ludaye123/DesignPatterns | aec36ca2c7475640f6e34153a9a6678a953124a7 | [
"MIT"
] | null | null | null | //
// FactoryBuilder.hpp
// DesignPatterns
//
// Created by Shen Lu on 2018/8/18.
// Copyright © 2018 Shen Lu. All rights reserved.
//
#ifndef FactoryBuilder_hpp
#define FactoryBuilder_hpp
#include <memory>
namespace ls {
typedef enum FactoryType {
Factory1 = 0,
Factory2 = 1
}FactoryType;... | 18.296296 | 72 | 0.663968 | ludaye123 |
3d74c2e8973c303968c154b02ea4a55a0df334c6 | 160 | cpp | C++ | network_viruses/randomFactory.cpp | uncerso/code-graveyard | df875fd070022faf84374e260bd77663760b1e4c | [
"Apache-2.0"
] | 1 | 2017-10-24T21:43:43.000Z | 2017-10-24T21:43:43.000Z | network_viruses/randomFactory.cpp | uncerso/code-graveyard | df875fd070022faf84374e260bd77663760b1e4c | [
"Apache-2.0"
] | 3 | 2017-12-02T08:15:29.000Z | 2018-06-05T19:35:56.000Z | network_viruses/randomFactory.cpp | uncerso/code-graveyard | df875fd070022faf84374e260bd77663760b1e4c | [
"Apache-2.0"
] | null | null | null | #include "randomFactory.hpp"
RandomFactory::RandomFactory()
: gen_((std::random_device())())
{}
unsigned int RandomFactory::operator()() {
return gen_();
}
| 16 | 42 | 0.69375 | uncerso |
3d74fd41ee998d04b737d0e3cc6ccb61e8cdff43 | 4,051 | cpp | C++ | CSL/Sources/Window.cpp | eriser/CSL | 6f4646369f0c90ea90e2c113374044818ab37ded | [
"BSD-4-Clause-UC"
] | 32 | 2020-04-17T22:48:53.000Z | 2021-06-15T13:13:28.000Z | CSL/Sources/Window.cpp | eriser/CSL | 6f4646369f0c90ea90e2c113374044818ab37ded | [
"BSD-4-Clause-UC"
] | null | null | null | CSL/Sources/Window.cpp | eriser/CSL | 6f4646369f0c90ea90e2c113374044818ab37ded | [
"BSD-4-Clause-UC"
] | 2 | 2020-06-05T15:51:31.000Z | 2021-08-31T15:09:26.000Z | //
// Window.cpp -- implementation of the various function window classes
// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
//
#include "Window.h"
#include <math.h>
using namespace csl;
Window::Window() : UnitGenerator(), mGain(1) {
this->setSize(CGestalt::blockSize());
}
// Gain is ... | 30.458647 | 97 | 0.690941 | eriser |
3d7c3af74d836e566f95a05cb69cb62848074c79 | 5,123 | hpp | C++ | include/strf/detail/printers_tuple.hpp | eyalroz/strf | 94cd5aef40530269da0727178017cb4a8992c5dc | [
"BSL-1.0"
] | null | null | null | include/strf/detail/printers_tuple.hpp | eyalroz/strf | 94cd5aef40530269da0727178017cb4a8992c5dc | [
"BSL-1.0"
] | 18 | 2019-12-13T15:52:26.000Z | 2020-01-17T14:51:33.000Z | include/strf/detail/printers_tuple.hpp | eyalroz/strf | 94cd5aef40530269da0727178017cb4a8992c5dc | [
"BSL-1.0"
] | 1 | 2021-12-23T05:53:22.000Z | 2021-12-23T05:53:22.000Z | #ifndef STRF_DETAIL_PRINTERS_TUPLE_HPP
#define STRF_DETAIL_PRINTERS_TUPLE_HPP
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <strf/detail/facets/encoding.hpp>
namespace strf {
namespace detail {
... | 26.407216 | 89 | 0.632637 | eyalroz |
3d806e9c34580c43acc589461acae24f252ae99b | 1,175 | cpp | C++ | MonoNative.Tests/mscorlib/System/Reflection/mscorlib_System_Reflection_AssemblyVersionAttribute_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Reflection/mscorlib_System_Reflection_AssemblyVersionAttribute_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Reflection/mscorlib_System_Reflection_AssemblyVersionAttribute_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Reflection
// Name: AssemblyVersionAttribute
// C++ Typed Name: mscorlib::System::Reflection::AssemblyVersionAttribute
#include <gtest/gtest.h>
#include <mscorlib/System/Reflection/msco... | 20.614035 | 91 | 0.728511 | brunolauze |
3d8472edd22f2fd255f7b698bea9a011461a382b | 31,155 | cpp | C++ | src/aadcBase/src/jury/AADC_JuryModule_ConnectionLib/cJuryModule.cpp | AppliedAutonomyOffenburg/AADC_2015_A2O | 19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac | [
"BSD-4-Clause"
] | 1 | 2018-09-09T21:39:29.000Z | 2018-09-09T21:39:29.000Z | src/aadcBase/src/jury/AADC_JuryModule_ConnectionLib/cJuryModule.cpp | TeamAutonomousCarOffenburg/A2O_2015 | 19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac | [
"BSD-4-Clause"
] | null | null | null | src/aadcBase/src/jury/AADC_JuryModule_ConnectionLib/cJuryModule.cpp | TeamAutonomousCarOffenburg/A2O_2015 | 19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac | [
"BSD-4-Clause"
] | 1 | 2016-04-05T06:34:08.000Z | 2016-04-05T06:34:08.000Z | /**
Copyright (c)
Audi Autonomous Driving Cup. 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 copyright notice, this list of conditions and the ... | 33.717532 | 728 | 0.670647 | AppliedAutonomyOffenburg |
3d967d74a56a02f98bf1629c747b63e56e076687 | 25,002 | cpp | C++ | src/io.cpp | ericgjackson/slumbot2017 | f0ddb6af63e9f7e25ffa7ef01337d47299a6520d | [
"MIT"
] | 15 | 2017-11-01T16:11:46.000Z | 2020-08-18T14:20:12.000Z | src/io.cpp | ericgjackson/slumbot2017 | f0ddb6af63e9f7e25ffa7ef01337d47299a6520d | [
"MIT"
] | 11 | 2020-02-16T12:45:33.000Z | 2022-02-10T07:20:47.000Z | src/io.cpp | ericgjackson/slumbot2017 | f0ddb6af63e9f7e25ffa7ef01337d47299a6520d | [
"MIT"
] | 7 | 2017-11-01T18:32:31.000Z | 2021-01-11T17:55:59.000Z | #include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <string>
#include <vector>
#include "io.h"
// Note that stat() is very slow. We've replaced the call to stat() with
// a call to open().
bool FileEx... | 24.297376 | 79 | 0.62191 | ericgjackson |
3d999d5f0d448760b952954f732fe32a95e06901 | 3,021 | hpp | C++ | Nacro/SDK/FN_Results_PlayerScoreRow_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_Results_PlayerScoreRow_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_Results_PlayerScoreRow_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function Results_Playe... | 41.958333 | 152 | 0.572327 | Milxnor |
3d9a34a2b9f721db162195c2eea5ade04f3d56c0 | 36,728 | hpp | C++ | Motorola/MCore IDA IDP/5.0/IDA/Inc/loader.hpp | erithion/old_junk | b2dcaa23320824f8b2c17571f27826869ccd0d4b | [
"MIT"
] | 1 | 2021-06-26T17:08:24.000Z | 2021-06-26T17:08:24.000Z | Motorola/MCore IDA IDP/5.0/IDA/Inc/loader.hpp | erithion/old_junk | b2dcaa23320824f8b2c17571f27826869ccd0d4b | [
"MIT"
] | null | null | null | Motorola/MCore IDA IDP/5.0/IDA/Inc/loader.hpp | erithion/old_junk | b2dcaa23320824f8b2c17571f27826869ccd0d4b | [
"MIT"
] | null | null | null | /*
* Interactive disassembler (IDA).
* Copyright (c) 1990-97 by Ilfak Guilfanov.
* ALL RIGHTS RESERVED.
* E-mail: ig@estar.msk.su
* FIDO: 2:5020/209
*
*/
#ifndef _LOADER_HPP
#define _LOADER_HPP
#pragma pack(push, 1) ... | 40.183807 | 113 | 0.577135 | erithion |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.