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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
946eb5b09957fa538cd6af6ac65a4470202796d3 | 1,869 | hpp | C++ | src/include/RAII.hpp | whyamiroot/vulkalc | 7ad50235d043aed86284c84ef5f2eea8dba36677 | [
"MIT"
] | 1 | 2018-01-19T00:29:49.000Z | 2018-01-19T00:29:49.000Z | src/include/RAII.hpp | whyamiroot/vulkalc | 7ad50235d043aed86284c84ef5f2eea8dba36677 | [
"MIT"
] | 4 | 2020-12-18T10:06:16.000Z | 2020-12-18T10:09:25.000Z | src/include/RAII.hpp | whyamiroot/vulkalc | 7ad50235d043aed86284c84ef5f2eea8dba36677 | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Lev Sizov
*
* 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, modi... | 28.753846 | 80 | 0.702515 | whyamiroot |
946fd1b61af12a89a1c68896aea9425c55592921 | 3,109 | cpp | C++ | src/trie.cpp | AkshayMohan/contact-management | 07f9f129db66735d8dc3a2fc81f3d24442a1509e | [
"MIT"
] | null | null | null | src/trie.cpp | AkshayMohan/contact-management | 07f9f129db66735d8dc3a2fc81f3d24442a1509e | [
"MIT"
] | null | null | null | src/trie.cpp | AkshayMohan/contact-management | 07f9f129db66735d8dc3a2fc81f3d24442a1509e | [
"MIT"
] | null | null | null | /*____________________________________________________________________________________
Contact Management System
trie.cpp - Trie data structure class definition file.
- Akshay Mohan
MIT License
Copyright (c) 2019 Akshay Mohan
Permission is hereby granted, free of charge, to any person obtainin... | 24.480315 | 100 | 0.675137 | AkshayMohan |
20e1ccc95c27380a715dcc4d587d9309fa62ee06 | 3,489 | cpp | C++ | variational_fluids/VariationalViscosity3D/levelset_util.cpp | OrionQuest/Nova_Examples | 482521902bc3afa7d0caefeb9ce9595456384961 | [
"Apache-2.0"
] | 1 | 2022-02-01T18:04:45.000Z | 2022-02-01T18:04:45.000Z | variational_fluids/VariationalViscosity3D/levelset_util.cpp | OrionQuest/Nova_Examples | 482521902bc3afa7d0caefeb9ce9595456384961 | [
"Apache-2.0"
] | null | null | null | variational_fluids/VariationalViscosity3D/levelset_util.cpp | OrionQuest/Nova_Examples | 482521902bc3afa7d0caefeb9ce9595456384961 | [
"Apache-2.0"
] | 1 | 2018-12-30T00:49:36.000Z | 2018-12-30T00:49:36.000Z | #include "levelset_util.h"
//Given two signed distance values (line endpoints), determine what fraction of a connecting segment is "inside"
float fraction_inside(float phi_left, float phi_right) {
if(phi_left < 0 && phi_right < 0)
return 1;
if (phi_left < 0 && phi_right >= 0)
return phi_left / (phi_l... | 33.548077 | 112 | 0.57495 | OrionQuest |
20e29f2b5cae32bdfa088f94e170950d54f0719d | 590 | cpp | C++ | Anton_and_Letters.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | Anton_and_Letters.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | Anton_and_Letters.cpp | amit9amarwanshi/The_Quiet_Revolution | 7713787ef27c0c144e4c2d852d826ee1c4176a95 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
string s;
getline(cin,s);
set<char>k;
for(int i=0;i<s.length();i++){
if(s[i]=='a'||s[i]=='b'||s[i]=='c'||s[i]=='d'||s[i]=='e'||s[i]=='f'||s[i]=='g'||s[i]=='h'||s[i]=='i... | 32.777778 | 297 | 0.394915 | amit9amarwanshi |
20e39a1800584a041a68aba2a289e213fafd4d70 | 88,719 | cpp | C++ | Hacks/Esp.cpp | DanielBence/Atomware | e413b57b45f395c1f45a9230db4d7e94a3d72681 | [
"MIT"
] | 2 | 2020-06-18T11:07:55.000Z | 2020-07-14T15:16:24.000Z | Hacks/Esp.cpp | DanielAtom/Atomware | e413b57b45f395c1f45a9230db4d7e94a3d72681 | [
"MIT"
] | null | null | null | Hacks/Esp.cpp | DanielAtom/Atomware | e413b57b45f395c1f45a9230db4d7e94a3d72681 | [
"MIT"
] | 1 | 2020-11-04T07:15:30.000Z | 2020-11-04T07:15:30.000Z | #define NOMINMAX
#include <sstream>
#include "Esp.h"
#include "../Config.h"
#include "../Interfaces.h"
#include "../Memory.h"
#include "../SDK/ConVar.h"
#include "../SDK/Entity.h"
#include "../SDK/GlobalVars.h"
#include "../SDK/Localize.h"
#include "../SDK/Surface.h"
#include "../SDK/Vector.h"
#include "../SDK/Weapo... | 134.831307 | 11,501 | 0.743088 | DanielBence |
20e78e1cfa121675c5113ab8e3290f244b540070 | 661 | cpp | C++ | DDrawCompat/v0.3.1/Win32/MsgHooks.cpp | elishacloud/dxwrapper | 6be80570acfcfd2b6f8e0aec1ed250dd96f5be5c | [
"Zlib"
] | 634 | 2017-02-09T01:32:58.000Z | 2022-03-26T18:14:28.000Z | DDrawCompat/v0.3.1/Win32/MsgHooks.cpp | elishacloud/dxwrapper | 6be80570acfcfd2b6f8e0aec1ed250dd96f5be5c | [
"Zlib"
] | 128 | 2017-03-02T13:30:12.000Z | 2022-03-11T07:08:24.000Z | DDrawCompat/v0.3.1/Win32/MsgHooks.cpp | elishacloud/dxwrapper | 6be80570acfcfd2b6f8e0aec1ed250dd96f5be5c | [
"Zlib"
] | 58 | 2017-05-16T14:42:35.000Z | 2022-02-21T20:32:02.000Z | #define WIN32_LEAN_AND_MEAN
#define CINTERFACE
#include <Windows.h>
#include <DDrawCompat/v0.3.1/Common/Hook.h>
#include <DDrawCompat/v0.3.1/Win32/MsgHooks.h>
namespace
{
HHOOK WINAPI setWindowsHookExA(int idHook, HOOKPROC lpfn, HINSTANCE hMod, DWORD dwThreadId)
{
if (WH_KEYBOARD_LL == idHook && hMod && GetModul... | 20.65625 | 92 | 0.726172 | elishacloud |
20e8467d9b10b31a3b54dec79147a02445d2219b | 2,092 | cpp | C++ | src/test/TCAtl/RangeValueSlider.cpp | FreeAllegiance/AllegianceDX7 | 3955756dffea8e7e31d3a55fcf6184232b792195 | [
"MIT"
] | 76 | 2015-08-18T19:18:40.000Z | 2022-01-08T12:47:22.000Z | src/test/TCAtl/RangeValueSlider.cpp | StudentAlleg/Allegiance | e91660a471eb4e57e9cea4c743ad43a82f8c7b18 | [
"MIT"
] | 37 | 2015-08-14T22:44:12.000Z | 2020-01-21T01:03:06.000Z | src/test/TCAtl/RangeValueSlider.cpp | FreeAllegiance/Allegiance-AZ | 1d8678ddff9e2efc79ed449de6d47544989bc091 | [
"MIT"
] | 42 | 2015-08-13T23:31:35.000Z | 2022-03-17T02:20:26.000Z | /////////////////////////////////////////////////////////////////////////////
// RangeValueSlider.cpp | Implementation of the TCRangeValueSlider class.
#include "RangeValueSlider.h"
/////////////////////////////////////////////////////////////////////////////
// TCRangeValueSlider
/////////////////////////////////... | 24.325581 | 77 | 0.5674 | FreeAllegiance |
20e8ef67bc739c95d3bc6e439d40a5872348b812 | 10,580 | cpp | C++ | src/src/vk/vulkan_memory_manager.cpp | N4G170/vulkan | aea90d2e7d4d59dd9743f36d159239f16ffdca61 | [
"MIT"
] | null | null | null | src/src/vk/vulkan_memory_manager.cpp | N4G170/vulkan | aea90d2e7d4d59dd9743f36d159239f16ffdca61 | [
"MIT"
] | null | null | null | src/src/vk/vulkan_memory_manager.cpp | N4G170/vulkan | aea90d2e7d4d59dd9743f36d159239f16ffdca61 | [
"MIT"
] | null | null | null | #include "vulkan_memory_manager.hpp"
#include <utility>
#include "vulkan_utils.hpp"
#include "vulkan_context.hpp"
#include <iostream>
namespace vk
{
//<f> Constructors & operator=
VulkanMemoryManager::VulkanMemoryManager(VulkanContext* vulkan_context): m_vulkan_context{vulkan_context}
{
}
VulkanMemoryManager::~Vulka... | 36.608997 | 208 | 0.727977 | N4G170 |
20ebf22705922377c623c9c12bf9a36de894fcad | 1,286 | cpp | C++ | Algorithms/1935.MaxNumberOfWordsYouCanType/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/1935.MaxNumberOfWordsYouCanType/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/1935.MaxNumberOfWordsYouCanType/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <array>
#include <string>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
[[nodiscard]] int canBeTypedWords(std::string const &text, std::string const &brokenLetters) const
{
constexpr size_t alphabetSize = 26;
constexpr size_t alphabetStart = 'a';
std::array<bo... | 25.72 | 102 | 0.604977 | stdstring |
20ed76c1f86d76d05998fd0e7408fb8f70d88752 | 452 | cc | C++ | Code/0089-gray-code.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/0089-gray-code.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/0089-gray-code.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> grayCode(int n) {
vector<int> result;
result.push_back(0);
if (n == 0) return result;
for (int i = 0; i < n; i++) {
// the left most bit
int mask = 1 << i;
int s = result.size();
while (s) {
... | 25.111111 | 45 | 0.415929 | SMartQi |
20f74baa01709f573a7d499f1c2b0c29e75497f7 | 5,588 | cpp | C++ | Chapter/09_Debugging/kmain.cpp | arkiny/OSwithMSVC | 90cd62ce9bbe8301942e024404f32b04874e7906 | [
"MIT"
] | 1 | 2021-05-09T01:24:05.000Z | 2021-05-09T01:24:05.000Z | Chapter/09_Debugging/kmain.cpp | arkiny/OSwithMSVC | 90cd62ce9bbe8301942e024404f32b04874e7906 | [
"MIT"
] | null | null | null | Chapter/09_Debugging/kmain.cpp | arkiny/OSwithMSVC | 90cd62ce9bbe8301942e024404f32b04874e7906 | [
"MIT"
] | null | null | null | #include "kmain.h"
#include "SkyTest.h"
#include "PhysicalMemoryManager.h"
#include "VirtualMemoryManager.h"
#include "HeapManager.h"
#include "HDDAdaptor.h"
#include "RamDiskAdaptor.h"
#include "FloppyDiskAdaptor.h"
#include "StorageManager.h"
#include "fileio.h"
#include "SysAPI.h"
#include "FPU.h"
_declspec(naked... | 23.677966 | 82 | 0.717788 | arkiny |
20fbc0d91e7c0a548a83816a1f209b4ea6619a0f | 752 | cpp | C++ | programs_AtoZ/Check Prime Number/Check Prime Number using Class.cpp | EarthMan123/unitech_cpp_with_oops-course | 941fec057bdcb8a5289994780ae553e6d4fddbbe | [
"Unlicense"
] | 2 | 2021-06-12T02:55:28.000Z | 2021-07-04T22:25:38.000Z | programs_AtoZ/Check Prime Number/Check Prime Number using Class.cpp | EarthMan123/unitech_cpp_with_oops-course | 941fec057bdcb8a5289994780ae553e6d4fddbbe | [
"Unlicense"
] | null | null | null | programs_AtoZ/Check Prime Number/Check Prime Number using Class.cpp | EarthMan123/unitech_cpp_with_oops-course | 941fec057bdcb8a5289994780ae553e6d4fddbbe | [
"Unlicense"
] | 1 | 2021-07-04T22:28:38.000Z | 2021-07-04T22:28:38.000Z | // Check Prime or Not using Class
#include<iostream>
using namespace std;
class CodesCracker
{
private:
int num, i, chk;
public:
int getData();
int checkPrimeNumber(int);
};
int CodesCracker::getData()
{
cout<<"Enter a Number: ";
cin>>num;
return num;
}
int CodesCracker::chec... | 17.090909 | 43 | 0.530585 | EarthMan123 |
20fc08c093597e22303de20bf328bb218667f8bb | 870 | hpp | C++ | library/ATF/_starting_vote_inform_zoclInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_starting_vote_inform_zoclInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_starting_vote_inform_zoclInfo.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 <_starting_vote_inform_zocl.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _starting_vote_inform_zoclctor__starting_vote_inform_zocl2... | 48.333333 | 196 | 0.803448 | lemkova |
20fdeada0b93f5682ce471d92f56cbbefed44f3e | 5,954 | cpp | C++ | src/coordinate_system.cpp | tomalexander/topaz | a0776a3b14629e5e1af3a4ed89fded3fe06cfea3 | [
"Zlib"
] | 1 | 2015-07-23T00:26:23.000Z | 2015-07-23T00:26:23.000Z | src/coordinate_system.cpp | tomalexander/topaz | a0776a3b14629e5e1af3a4ed89fded3fe06cfea3 | [
"Zlib"
] | null | null | null | src/coordinate_system.cpp | tomalexander/topaz | a0776a3b14629e5e1af3a4ed89fded3fe06cfea3 | [
"Zlib"
] | null | null | null | /*
* Copyright (c) 2012 Tom Alexander, Tate Larsen
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* ... | 31.336842 | 80 | 0.433322 | tomalexander |
20feca9f22ac9481e2e2bb9a016dff751212252d | 5,165 | cpp | C++ | RtLibrary/src/Xuzumi/Platform.Windows/WindowsConsole.cpp | lymuc-studio/Xuzumi | 6377b07ba991d3c4f7cfa92c25fd35cc8a136f81 | [
"MIT"
] | null | null | null | RtLibrary/src/Xuzumi/Platform.Windows/WindowsConsole.cpp | lymuc-studio/Xuzumi | 6377b07ba991d3c4f7cfa92c25fd35cc8a136f81 | [
"MIT"
] | null | null | null | RtLibrary/src/Xuzumi/Platform.Windows/WindowsConsole.cpp | lymuc-studio/Xuzumi | 6377b07ba991d3c4f7cfa92c25fd35cc8a136f81 | [
"MIT"
] | null | null | null | #include "WindowsConsole.h"
#include "Xuzumi/Core/Debug/InternalAssertion.h"
#include "Xuzumi/Platform.Windows/Debug/HrDebug.h"
#include <cstdio>
#include <Windows.h>
#include <Shobjidl.h>
namespace Xuzumi
{
namespace
{
UINT convertForegroundConsoleColor_(ConsoleColor color)
{
UINT colorFlags = 0u;
swit... | 22.167382 | 77 | 0.700097 | lymuc-studio |
20ff4e05e7f7bdfad3644345adf591f1adb55a60 | 2,603 | cpp | C++ | torrijas/source/trjsequenceaction.cpp | GValiente/torrijas | 209ca7e770860e5aea3a2322fdefee6f34b0e551 | [
"Zlib"
] | 4 | 2015-09-13T09:04:29.000Z | 2016-08-21T22:12:59.000Z | torrijas/source/trjsequenceaction.cpp | GValiente/torrijas | 209ca7e770860e5aea3a2322fdefee6f34b0e551 | [
"Zlib"
] | null | null | null | torrijas/source/trjsequenceaction.cpp | GValiente/torrijas | 209ca7e770860e5aea3a2322fdefee6f34b0e551 | [
"Zlib"
] | null | null | null | //
// Copyright (c) 2015 Gustavo Valiente gustavovalient@gmail.com
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any p... | 25.519608 | 83 | 0.633116 | GValiente |
1f020fbbe19230c161940500849d1f2777756ac2 | 881 | hpp | C++ | include/operon/core/operator.hpp | ivor-dd/operon | 57775816304b5df7a2f64e1505693a1fdf17a2fe | [
"MIT"
] | 3 | 2019-10-29T09:36:18.000Z | 2020-08-17T08:31:37.000Z | include/operon/core/operator.hpp | ivor-dd/operon | 57775816304b5df7a2f64e1505693a1fdf17a2fe | [
"MIT"
] | 3 | 2020-04-24T20:02:56.000Z | 2020-10-14T10:07:18.000Z | include/operon/core/operator.hpp | ivor-dd/operon | 57775816304b5df7a2f64e1505693a1fdf17a2fe | [
"MIT"
] | 3 | 2020-01-29T05:36:03.000Z | 2020-05-31T06:48:52.000Z | // SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright 2019-2022 Heal Research
#ifndef OPERON_OPERATOR_HPP
#define OPERON_OPERATOR_HPP
#include "types.hpp"
namespace Operon {
template <typename Ret, typename... Args>
struct OperatorBase {
using ReturnType = Ret;
using ArgumentType = std::tuple<... | 31.464286 | 92 | 0.724177 | ivor-dd |
1f068f97526b1f11a9c7796cab8c6735efb4f176 | 2,095 | cpp | C++ | src/types/cube_framebuffer.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | src/types/cube_framebuffer.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | src/types/cube_framebuffer.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #include "chokoengine.hpp"
CE_BEGIN_NAMESPACE
_FrameBufferCube::_FrameBufferCube(uint r, std::vector<GLenum> types, int div)
: _maps(types.size(), nullptr), _depth(nullptr), _lastUpdated(0) {
std::vector<GLenum> bufs(types.size());
for (size_t a = 0; a < types.size(); a++) {
_maps[a] = CubeMap::New(r, types[a... | 32.734375 | 119 | 0.713604 | chokomancarr |
1f0837174b1e9d05cd8e27dfb723a47c5ac5b268 | 2,501 | cpp | C++ | lib/commands/src/CommandCombat.cpp | ica778/adventure2019 | 51167c67967877eb0be2937b3e38780e6365e1b6 | [
"MIT"
] | null | null | null | lib/commands/src/CommandCombat.cpp | ica778/adventure2019 | 51167c67967877eb0be2937b3e38780e6365e1b6 | [
"MIT"
] | null | null | null | lib/commands/src/CommandCombat.cpp | ica778/adventure2019 | 51167c67967877eb0be2937b3e38780e6365e1b6 | [
"MIT"
] | null | null | null | #include "CommandCombat.h"
#include <boost/algorithm/string.hpp>
void CommandCombat::executeInHeartbeat(const std::string& username, const std::vector<std::string>& fullCommand) {
auto& combatManager = characterManager.getCombatManager();
auto& currentCombat = combatManager.getCombatWithPlayer(username);
i... | 44.660714 | 118 | 0.661335 | ica778 |
1f0d6a327fbd20e3f2c972e17737883cc64eda60 | 8,904 | cpp | C++ | mpw/mpw_ioctl.cpp | tsupplis/mpw | bab20662aacc37ddadef3f2d075b167e263ea18f | [
"Xnet",
"X11"
] | 191 | 2015-01-04T17:17:00.000Z | 2022-03-30T22:59:31.000Z | mpw/mpw_ioctl.cpp | tsupplis/mpw | bab20662aacc37ddadef3f2d075b167e263ea18f | [
"Xnet",
"X11"
] | 28 | 2015-01-06T01:16:25.000Z | 2020-11-26T14:46:14.000Z | mpw/mpw_ioctl.cpp | tsupplis/mpw | bab20662aacc37ddadef3f2d075b167e263ea18f | [
"Xnet",
"X11"
] | 18 | 2015-01-26T21:33:31.000Z | 2021-12-21T05:33:24.000Z | /*
* Copyright (c) 2013, Kelvin W Sherlock
* 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 c... | 19.919463 | 82 | 0.636119 | tsupplis |
1f15f8db8541780972f18bac14cdfb549498b72d | 2,983 | cpp | C++ | components/raisedbutton.cpp | ashraf-kx/qt-material-widgets | 851d3fb7b56695a9181e3ea373f3d9e4015c15df | [
"BSD-3-Clause"
] | 5 | 2018-09-13T16:18:03.000Z | 2022-03-16T07:34:21.000Z | components/raisedbutton.cpp | ashraf-kx/qt-material-widgets | 851d3fb7b56695a9181e3ea373f3d9e4015c15df | [
"BSD-3-Clause"
] | null | null | null | components/raisedbutton.cpp | ashraf-kx/qt-material-widgets | 851d3fb7b56695a9181e3ea373f3d9e4015c15df | [
"BSD-3-Clause"
] | 2 | 2022-02-22T04:08:50.000Z | 2022-03-12T10:05:15.000Z | #include "raisedbutton_p.h"
namespace md
{
/*!
* \class QtMaterialRaisedButtonPrivate
* \internal
*/
/*!
* \internal
*/
RaisedButtonPrivate::RaisedButtonPrivate(RaisedButton *q)
: FlatButtonPrivate(q)
{
}
/*!
* \internal
*/
RaisedButtonPrivate::~RaisedButtonPrivate()
{
}
/*!
* \internal
*/
void R... | 23.304688 | 70 | 0.684211 | ashraf-kx |
1f17a00fc05e94477d5bb3428d939891fdb66ae5 | 1,259 | hpp | C++ | code/src/engine/physics/helper_physx.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 3 | 2020-04-29T14:55:58.000Z | 2020-08-20T08:43:24.000Z | code/src/engine/physics/helper_physx.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 1 | 2022-03-12T11:37:46.000Z | 2022-03-12T20:17:38.000Z | code/src/engine/physics/helper_physx.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | null | null | null |
#ifndef ENGINE_PHYSICS_HELPER_PHYSX_HPP
#define ENGINE_PHYSICS_HELPER_PHYSX_HPP
#include <PxPhysicsAPI.h>
#include <core/maths/Vector.hpp>
/**
* \note Should be used by physics implementation only.
*/
namespace engine
{
namespace physics
{
template<class T>
inline T convert(const core::maths::Vector3f val)
{
... | 23.314815 | 77 | 0.709293 | shossjer |
1f1a52d230d41f4071da52d70426260c3af197cc | 1,377 | hpp | C++ | lib/graph/chromatic_number.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | null | null | null | lib/graph/chromatic_number.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | 4 | 2022-01-05T14:40:40.000Z | 2022-03-05T08:03:19.000Z | lib/graph/chromatic_number.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | null | null | null | #include "graph/matrix_graph.hpp"
#include "template/template.hpp"
// 彩色数を求める
// O(2^N)
int chromatic_number(const matrix_graph<bool> &G) {
constexpr int64_t _MOD = (1LL << 31) - 1;
int n = G.size();
vector<int> neighbor(n, 0);
for (int i = 0; i < n; ++i) {
int s = 1 << i;
fo... | 27 | 93 | 0.394336 | kuhaku-space |
1f1e93e0df42d30a99c04fc4bf35157a42a2abe7 | 2,428 | cpp | C++ | registerwidget/borrowerregister.cpp | winthegame9/cpp-libsystem | 4346dbb1aa22464e1ce26d8f3f53311411eac9f3 | [
"Apache-2.0"
] | null | null | null | registerwidget/borrowerregister.cpp | winthegame9/cpp-libsystem | 4346dbb1aa22464e1ce26d8f3f53311411eac9f3 | [
"Apache-2.0"
] | null | null | null | registerwidget/borrowerregister.cpp | winthegame9/cpp-libsystem | 4346dbb1aa22464e1ce26d8f3f53311411eac9f3 | [
"Apache-2.0"
] | null | null | null | #include "borrowerregister.h"
#include "ui_borrowerregister.h"
#include "dialogs/persondialog.h"
#include <QMessageBox>
#include <QDebug>
BorrowerRegister::BorrowerRegister(QWidget *parent) :
QWidget(parent),
ui(new Ui::BorrowerRegister)
{
ui->setupUi(this);
listModel = new PersonListModel(lib::Borrow... | 25.557895 | 70 | 0.679572 | winthegame9 |
1f23c11bab6091dd70ae53585057c8dc71bbfb14 | 855 | cpp | C++ | scripting/lua/ScutControls/Win32/myWin32WebView.cpp | ScutGame/Client-source | 7dd886bf128c857a957f5360fcc28bcd511bf654 | [
"MIT"
] | 23 | 2015-01-28T12:41:43.000Z | 2021-07-14T05:35:56.000Z | scripting/lua/ScutControls/Win32/myWin32WebView.cpp | HongXiao/Client-source | 7dd886bf128c857a957f5360fcc28bcd511bf654 | [
"MIT"
] | null | null | null | scripting/lua/ScutControls/Win32/myWin32WebView.cpp | HongXiao/Client-source | 7dd886bf128c857a957f5360fcc28bcd511bf654 | [
"MIT"
] | 35 | 2015-02-04T10:01:00.000Z | 2021-03-05T15:27:14.000Z | #include "Win32WebView.h"
#include "cocos2d.h"
#include "myWin32WebView.h"
namespace NdCxControl
{
void *Win32WebView(const char *pszUrl, cocos2d::CCRect rcScreenFrame, const char *pszTitle, const char *pszNormal, const char *pszPushDown)
{
CWin32WebView *pWebView = new CWin32WebView();
if(pWebView &... | 20.357143 | 141 | 0.654971 | ScutGame |
1f263b9edbcfca1a85f53837cb55d2c013497e61 | 1,607 | cpp | C++ | Nacro/SDK/FN_SpeechBubbleWidget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_SpeechBubbleWidget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_SpeechBubbleWidget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function SpeechBubbleWidget.SpeechBub... | 26.783333 | 137 | 0.679527 | Milxnor |
1f2a00d5500b776e4c4e83265b682523580237c6 | 1,258 | cpp | C++ | EZOJ/Contests/1276/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1276/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1276/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cmath>
#include <vector>
using namespace std;
typedef long long lint;
inline bool is_num(char c){
return c>='0'&&c<='9';
}
inline int ni(){
int i=0;char c;
while(!is_num(c=getchar()));
while(i=i*10-'0'+c,is_num(c=getchar()));
ret... | 17.971429 | 46 | 0.566773 | sshockwave |
1f2fa872325ae64e4492f854c686f00b07153594 | 2,734 | cpp | C++ | Nagi/Source/Input/Keyboard.cpp | nfginola/VkPlayground | b512117f47497d2c8f24b501e9fd3d8861504187 | [
"MIT"
] | 1 | 2022-01-09T05:30:29.000Z | 2022-01-09T05:30:29.000Z | Nagi/Source/Input/Keyboard.cpp | nfginola/VkPlayground | b512117f47497d2c8f24b501e9fd3d8861504187 | [
"MIT"
] | null | null | null | Nagi/Source/Input/Keyboard.cpp | nfginola/VkPlayground | b512117f47497d2c8f24b501e9fd3d8861504187 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Input/Keyboard.h"
#include <GLFW/glfw3.h>
namespace Nagi
{
Keyboard::Keyboard()
{
}
void Keyboard::handleKeyEvent(GLFWwindow* win, int key, int scancode, int action, int mods)
{
// Perhaps we can add an intermediary between GLFW and Keyboard.
// This way, only the intermediary kn... | 38.507042 | 115 | 0.70117 | nfginola |
1f31d6fd566d687bc8afbb8baca1657844ef5628 | 8,665 | hpp | C++ | src/area776.hpp | r6eve/area776 | c39b9d2393a7cdaaa056933fa452ec9adfc8fdce | [
"BSL-1.0"
] | null | null | null | src/area776.hpp | r6eve/area776 | c39b9d2393a7cdaaa056933fa452ec9adfc8fdce | [
"BSL-1.0"
] | 1 | 2018-06-02T05:38:40.000Z | 2018-06-02T07:47:41.000Z | src/area776.hpp | r6eve/area776 | c39b9d2393a7cdaaa056933fa452ec9adfc8fdce | [
"BSL-1.0"
] | null | null | null | //
// Copyright r6eve 2019 -
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <iomanip>
#include <memory>
#include <sstream>
#include "boss.hpp"
#include "def_g... | 30.403509 | 79 | 0.63416 | r6eve |
1f327aadd4b254c47bdf5dd03c2390ad82891df2 | 3,788 | cpp | C++ | src/common/EnumStringMapper.cpp | cgodkin/fesapi | d25c5e30ccec537c471adc3bb036c48f2c51f2c9 | [
"Apache-2.0"
] | 1 | 2021-01-04T16:19:33.000Z | 2021-01-04T16:19:33.000Z | src/common/EnumStringMapper.cpp | philippeVerney/fesapi | 5aff682d8e707d4682a0d8674b5f6353be24ed55 | [
"Apache-2.0"
] | null | null | null | src/common/EnumStringMapper.cpp | philippeVerney/fesapi | 5aff682d8e707d4682a0d8674b5f6353be24ed55 | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... | 44.046512 | 225 | 0.802798 | cgodkin |
1f38f894c5c4f23f8b23ee8e6d6ca7870503bc6e | 2,543 | cpp | C++ | openbr/plugins/imgproc/gradient.cpp | gaatyin/openbr | a55fa7bd0038b323ade2340c69f109146f084218 | [
"Apache-2.0"
] | 1 | 2021-04-26T12:53:42.000Z | 2021-04-26T12:53:42.000Z | openbr/plugins/imgproc/gradient.cpp | William-New/openbr | 326f9bbb84de35586e57b1b0449c220726571c6c | [
"Apache-2.0"
] | null | null | null | openbr/plugins/imgproc/gradient.cpp | William-New/openbr | 326f9bbb84de35586e57b1b0449c220726571c6c | [
"Apache-2.0"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright 2012 The MITRE Corporation *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* y... | 37.955224 | 99 | 0.527723 | gaatyin |
1f3c3aaebd967b19bd4b6bc76baf6de9c5647988 | 6,846 | cpp | C++ | sim/config.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | 7 | 2016-03-01T13:16:59.000Z | 2021-08-20T07:41:43.000Z | sim/config.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | null | null | null | sim/config.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | 5 | 2015-04-20T14:29:38.000Z | 2018-12-29T11:09:17.000Z | #include "sim/config.h"
#include "programs/mgsim.h"
#include <set>
#include <map>
#include <vector>
using namespace std;
void Config::collectPropertiesByType(Config::types_t& types,
Config::typeattrs_t& typeattrs)
{
map<Symbol, set<Symbol> > collect;
for (auto& i : m_obje... | 27.384 | 106 | 0.551417 | svp-dev |
1f3f71f2c7fb4c372c14046673ea851a9d6fb79f | 355 | hpp | C++ | include/rect.hpp | teamprova/ProvaEngine-CPP | 0ba9b4b0d73a5a261194d5333e5a572c40c0c21f | [
"Unlicense"
] | null | null | null | include/rect.hpp | teamprova/ProvaEngine-CPP | 0ba9b4b0d73a5a261194d5333e5a572c40c0c21f | [
"Unlicense"
] | null | null | null | include/rect.hpp | teamprova/ProvaEngine-CPP | 0ba9b4b0d73a5a261194d5333e5a572c40c0c21f | [
"Unlicense"
] | null | null | null | #pragma once
namespace Prova
{
class Vector2;
class Rect
{
public:
Rect();
Rect(float left, float top, float width, float height);
float left;
float top;
float width;
float height;
Vector2 GetTopLeft();
Vector2 GetTopRight();
Vector2 GetBottomLeft();
... | 16.904762 | 61 | 0.594366 | teamprova |
1f40b744c830dbb7b3165bde25fdc7f0091c7e02 | 1,221 | cpp | C++ | workshop5-6/Sum.cpp | PavanKamra96/BTP200 | 516f5ed60452da53d47206caef22423825a3145e | [
"MIT"
] | null | null | null | workshop5-6/Sum.cpp | PavanKamra96/BTP200 | 516f5ed60452da53d47206caef22423825a3145e | [
"MIT"
] | null | null | null | workshop5-6/Sum.cpp | PavanKamra96/BTP200 | 516f5ed60452da53d47206caef22423825a3145e | [
"MIT"
] | null | null | null | /**
Name: Pavan Kumar Kamra
Course: BTP200
**/
#include <iostream>
#include <cstring>
#include "Sum.h"
using namespace std;
// constructor with defaults
Sum::Sum() {
array = nullptr;
size = 0;
counter = 0;
sum = 0;
}
// recieves the size of the array
Sum::Sum(int s) {
if (s > 0)
size = s;
else
... | 18.223881 | 81 | 0.530713 | PavanKamra96 |
1f4236929b5440ffed877c85b19e07125f382c81 | 4,329 | cpp | C++ | Ouroboros/Source/oString/codify_data.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oString/codify_data.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oString/codify_data.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | // Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use.
#include <oString/string.h>
#include <iterator>
int snprintf(char* dst, size_t dst_size, const char* fmt, ...);
using namespace std;
namespace ouro {
errno_t replace(char* oRESTRICT result, size_t result_size, const char* oRESTRICT sr... | 35.195122 | 232 | 0.68353 | jiangzhu1212 |
1f436e92f7674bd40f703105967be8cc1a00b10e | 3,438 | cpp | C++ | Engine/WindowManager.cpp | tairoman/CraftClone | b50e40f5fb4a10febe8a17a37a439aa238d8deb3 | [
"MIT"
] | 5 | 2018-11-17T18:15:44.000Z | 2020-04-26T11:27:16.000Z | Engine/WindowManager.cpp | tairoman/CraftClone | b50e40f5fb4a10febe8a17a37a439aa238d8deb3 | [
"MIT"
] | 1 | 2020-04-22T13:03:52.000Z | 2020-04-23T12:57:40.000Z | Engine/WindowManager.cpp | tairoman/CraftClone | b50e40f5fb4a10febe8a17a37a439aa238d8deb3 | [
"MIT"
] | null | null | null | #include <SDL2/SDL_video.h>
#include <cstdint>
#include <iostream>
#include "WindowManager.h"
#include <GL/glew.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <GL/glu.h>
namespace
{
using namespace Engine;
std::uint32_t windowModeToSDL(WindowMode mode)
{
switch (mode) {
case WindowMode::Win... | 23.547945 | 84 | 0.656486 | tairoman |
1f4567327732139e8ac9da14afab1935c571db55 | 1,242 | cc | C++ | src/posix-pid.cc | afett/clingeling | e6f6810dde5a1076e70f261ef738ae8f4dbd4e54 | [
"BSD-2-Clause"
] | null | null | null | src/posix-pid.cc | afett/clingeling | e6f6810dde5a1076e70f261ef738ae8f4dbd4e54 | [
"BSD-2-Clause"
] | null | null | null | src/posix-pid.cc | afett/clingeling | e6f6810dde5a1076e70f261ef738ae8f4dbd4e54 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2021 Andreas Fett. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
*/
#include "posix/pid.h"
#include "posix/signal.h"
#include "posix/system-error.h"
#include "posix/wait.h"
#include <signal.h>
#include <sys/wait.h>
na... | 18.537313 | 94 | 0.673913 | afett |
1f4b21f86baa27718b6ea5a3cbf0c166bf2fdbc5 | 7,634 | cpp | C++ | src/configuration/RunConfig.cpp | Childcity/copyright_notice | 3f343d42bc47a1d48a945ceb214ca9aa5da7ed69 | [
"MIT"
] | null | null | null | src/configuration/RunConfig.cpp | Childcity/copyright_notice | 3f343d42bc47a1d48a945ceb214ca9aa5da7ed69 | [
"MIT"
] | null | null | null | src/configuration/RunConfig.cpp | Childcity/copyright_notice | 3f343d42bc47a1d48a945ceb214ca9aa5da7ed69 | [
"MIT"
] | null | null | null | #include "RunConfig.h"
#include <mutex>
#include <QCommandLineParser>
#include <QDir>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include "src/file_utils/file_utils.h"
#include "src/logger/log.h"
#include "StaticConfig.h"
namespace environment {
void init()
{
qputenv("QT_ENABLE_REGEXP_JI... | 31.415638 | 113 | 0.716269 | Childcity |
1f4dc3123b91d623e648da04e7f74492d58ee1aa | 1,092 | cpp | C++ | Engine/Base/GameTime.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | null | null | null | Engine/Base/GameTime.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | 4 | 2021-10-21T12:42:04.000Z | 2022-02-03T08:41:31.000Z | Engine/Base/GameTime.cpp | Antd23rus/S2DE | 47cc7151c2934cd8f0399a9856c1e54894571553 | [
"MIT"
] | 1 | 2021-09-06T08:30:20.000Z | 2021-09-06T08:30:20.000Z | #include "GameTime.h"
#include "Base/Utils/Logger.h"
namespace S2DE::Core
{
GameTime::GameTime() :
m_time(std::chrono::high_resolution_clock::now()),
m_time_begin(std::chrono::high_resolution_clock::now()),
m_fps(0),
m_frame_count(0),
m_deltaTime(0.0f),
m_timer(0.0f)
{
}
GameTime::~GameTime()
{
}... | 18.2 | 119 | 0.685897 | Antd23rus |
1f524ece0c720ba2b1f74b40b87a0ac8f7a9a08a | 4,768 | cpp | C++ | drivers/adagfx/lvdrv-adagfx-ssd1306.cpp | yhfudev/lv_platformio | 45c9c2b1cdb14dac07fe59dc2993d6e33f07bc1d | [
"MIT"
] | null | null | null | drivers/adagfx/lvdrv-adagfx-ssd1306.cpp | yhfudev/lv_platformio | 45c9c2b1cdb14dac07fe59dc2993d6e33f07bc1d | [
"MIT"
] | null | null | null | drivers/adagfx/lvdrv-adagfx-ssd1306.cpp | yhfudev/lv_platformio | 45c9c2b1cdb14dac07fe59dc2993d6e33f07bc1d | [
"MIT"
] | null | null | null | /**
* \file lvdrv-adagfx-ssd1306.cpp
* \brief SSD1306 driver for LittlevGL
* \author Yunhui Fu (yhfudev@gmail.com)
* \version 1.0
* \date 2020-02-03
* \copyright GPL/BSD
*/
#include "lvgl.h"
#include "lvdrv-adagfx-ssd1306.h"
#include "setuprotary.h"
#include "lvdrv-rotarygrp.h"
////////////////////////... | 29.614907 | 145 | 0.630663 | yhfudev |
1f595b1d26cbca32ab1722cc106f0f695510ce3f | 3,105 | cpp | C++ | source/Debug/debug.cpp | Vadru93/LevelMod | 85738a89f6df2dbd50deacdbc895b30c77e016b9 | [
"BSD-2-Clause"
] | 13 | 2020-08-24T10:46:26.000Z | 2022-02-08T23:59:11.000Z | source/Debug/debug.cpp | Vadru93/LevelMod | 85738a89f6df2dbd50deacdbc895b30c77e016b9 | [
"BSD-2-Clause"
] | 112 | 2020-08-25T11:42:53.000Z | 2022-01-04T14:25:26.000Z | source/Debug/debug.cpp | Vadru93/LevelMod | 85738a89f6df2dbd50deacdbc895b30c77e016b9 | [
"BSD-2-Clause"
] | 1 | 2021-02-17T18:11:52.000Z | 2021-02-17T18:11:52.000Z | #define _CRT_SECURE_NO_WARNINGS
#include "pch.h"
#include "debug.h"
void Tracer(LPCSTR format, ...)
{
if (format)
{
va_list vl;
char str[4096];
va_start(vl, format);
_vsnprintf(str, (sizeof(str) - 1), format, vl);
str[(sizeof(str) - 1)] = 0;
va_end(vl);
... | 31.683673 | 245 | 0.612238 | Vadru93 |
1f5aa6bd8d4afdad744fe799c239f71a9fb1893c | 5,586 | cpp | C++ | src/ui/c_load_builder_dialog.cpp | Mankio/Wakfu-Builder | d2ce635dde2da21eee3639cf3facebd07750ab78 | [
"MIT"
] | null | null | null | src/ui/c_load_builder_dialog.cpp | Mankio/Wakfu-Builder | d2ce635dde2da21eee3639cf3facebd07750ab78 | [
"MIT"
] | null | null | null | src/ui/c_load_builder_dialog.cpp | Mankio/Wakfu-Builder | d2ce635dde2da21eee3639cf3facebd07750ab78 | [
"MIT"
] | null | null | null | #include "c_load_builder_dialog.h"
#include "ui_c_load_builder_dialog.h"
c_save_builder_model *c_load_builder_dialog::model = nullptr;
c_load_builder_dialog::c_load_builder_dialog(c_dbmanager *manager, QWidget *parent) :
QDialog(parent),
ui(new Ui::c_load_builder_dialog)
{
ui->setupUi(this);
ui->widge... | 44.333333 | 135 | 0.591837 | Mankio |
48f2c40de243e4ad583a87975cfab95a08567263 | 2,467 | cpp | C++ | snippets/0x05/b_pointer_05_swap.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | snippets/0x05/b_pointer_05_swap.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | snippets/0x05/b_pointer_05_swap.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | // author: a.voss@fh-aachen.de
#include <iostream>
using std::cout;
using std::endl;
// #pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
void init1(int n); // (A)
void init2(int& n);
void init3(int* n);
void swap1(int n, int m);
void swap2(int& n, int& m);
void swa... | 25.43299 | 81 | 0.535063 | pblan |
48f339e44b91598999d4ecc386d476f568dacefd | 96 | cpp | C++ | test/cpp_prj/src/file_set_test/house/included_file_in_partition2.cpp | JaniHonkanen/RabbitCall | 2652e201ebcd6697cd25ec7e18163afa002c1016 | [
"MIT"
] | null | null | null | test/cpp_prj/src/file_set_test/house/included_file_in_partition2.cpp | JaniHonkanen/RabbitCall | 2652e201ebcd6697cd25ec7e18163afa002c1016 | [
"MIT"
] | null | null | null | test/cpp_prj/src/file_set_test/house/included_file_in_partition2.cpp | JaniHonkanen/RabbitCall | 2652e201ebcd6697cd25ec7e18163afa002c1016 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "included_file_in_partition2.h"
int partition2Test() {
return 22;
}
| 13.714286 | 40 | 0.739583 | JaniHonkanen |
48fb908b5742af84c3a526c8030fea32af382ba7 | 3,726 | cpp | C++ | src/meshInfo/geometry.cpp | guhanfeng/HSF | d2f091e990bb5a18473db0443872e37de6b6a83f | [
"Apache-2.0"
] | null | null | null | src/meshInfo/geometry.cpp | guhanfeng/HSF | d2f091e990bb5a18473db0443872e37de6b6a83f | [
"Apache-2.0"
] | null | null | null | src/meshInfo/geometry.cpp | guhanfeng/HSF | d2f091e990bb5a18473db0443872e37de6b6a83f | [
"Apache-2.0"
] | null | null | null | /**
* @file: geometry.cpp
* @author: Liu Hongbin
* @brief:
* @date: 2019-11-28 10:57:45
* @last Modified by: lenovo
* @last Modified time: 2019-11-28 16:14:40
*/
#include "geometry.hpp"
namespace HSF
{
scalar calculateQUADArea(const Array<scalar>& x, const Array<scalar>& y,
const Array<scalar>& z)
{
scalar v1... | 23 | 75 | 0.553945 | guhanfeng |
48fcaffb5e2c08a64895be09ec2083923ec00ff5 | 1,690 | cpp | C++ | tests/runtime_test.cpp | ElDesalmado/endian_converter | 6cdaae26e01d3f5b77b053fce7a0b494e69b1605 | [
"MIT"
] | null | null | null | tests/runtime_test.cpp | ElDesalmado/endian_converter | 6cdaae26e01d3f5b77b053fce7a0b494e69b1605 | [
"MIT"
] | null | null | null | tests/runtime_test.cpp | ElDesalmado/endian_converter | 6cdaae26e01d3f5b77b053fce7a0b494e69b1605 | [
"MIT"
] | null | null | null |
#include <gtest/gtest.h>
#include <endian_converter/endian_converter.h>
#include <array>
#include <numeric>
#include <algorithm>
using namespace eld;
template<typename T>
bool test_endian_conversion()
{
std::array<uint8_t, sizeof(T)> input{},
expected{},
output{};
std::iota(input.b... | 19.882353 | 80 | 0.672189 | ElDesalmado |
48fe27e5cab98f6389e1795176c3f4da009c043b | 713 | cpp | C++ | CSC201/in-class/Wk8/Wk-8b.cpp | ochudi/ochudi-CSC201 | 3a792beef4780960c725ef9bf6c4af96110c373d | [
"MIT"
] | null | null | null | CSC201/in-class/Wk8/Wk-8b.cpp | ochudi/ochudi-CSC201 | 3a792beef4780960c725ef9bf6c4af96110c373d | [
"MIT"
] | null | null | null | CSC201/in-class/Wk8/Wk-8b.cpp | ochudi/ochudi-CSC201 | 3a792beef4780960c725ef9bf6c4af96110c373d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class csc201
{
public: // access specifier
int score; // attribute score
string name; // attribute name
char grade; // attribute grade
};
int main()
{
csc201 student1;
csc201 student2;
student1.score = 20;
student1.grade = 'F... | 28.52 | 124 | 0.58906 | ochudi |
48fe4f78ca022862ef87f873388f1dacd0873158 | 6,259 | cpp | C++ | libconsensus/ConsensusEngineBase.cpp | michealbrownm/phantom | a1a41a6f9317c26e621952637c7e331c8dacf79d | [
"Apache-2.0"
] | 27 | 2020-09-24T03:14:13.000Z | 2021-11-29T14:00:36.000Z | libconsensus/ConsensusEngineBase.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | null | null | null | libconsensus/ConsensusEngineBase.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | 10 | 2020-09-24T14:34:30.000Z | 2021-02-22T06:50:31.000Z | /*
* @CopyRight:
* FISCO-BCOS 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FISCO-BCOS is distributed in the hope that it ... | 36.389535 | 99 | 0.634926 | michealbrownm |
48fff39706b19c8bd6ffbfef4cf9ceff56e06f2e | 779 | hpp | C++ | Nacro/SDK/FN_EnemyPawn_Interface_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_EnemyPawn_Interface_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_EnemyPawn_Interface_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 EnemyPawn_Int... | 26.862069 | 161 | 0.441592 | Milxnor |
5b03732d4054b2f2c65bbce4f3fb77cdb6d1794d | 3,665 | cpp | C++ | Source/Windows.Test/HresultTest.cpp | andrei-datcu/arcana.cpp | 3c4757cbee49b3272130bf8b72094c2c62fd36c5 | [
"MIT"
] | 65 | 2019-05-08T01:53:22.000Z | 2022-03-25T15:05:38.000Z | Source/Windows.Test/HresultTest.cpp | andrei-datcu/arcana.cpp | 3c4757cbee49b3272130bf8b72094c2c62fd36c5 | [
"MIT"
] | 12 | 2019-08-13T03:18:30.000Z | 2022-01-03T20:12:24.000Z | Source/Windows.Test/HresultTest.cpp | andrei-datcu/arcana.cpp | 3c4757cbee49b3272130bf8b72094c2c62fd36c5 | [
"MIT"
] | 18 | 2019-05-09T23:07:44.000Z | 2021-12-26T14:24:29.000Z | //
// Copyright (C) Microsoft Corporation. All rights reserved.
//
#include <arcana/hresult.h>
#include <arcana/type_traits.h>
#include <future>
#include <CppUnitTest.h>
#include <bitset>
using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert;
namespace UnitTests
{
namespace
{
constexpr... | 36.287129 | 115 | 0.65075 | andrei-datcu |
5b041a9797da2b0aa8d3df1d5c7efbab983a5262 | 977 | hpp | C++ | src/cpu/interrupts/idt.hpp | Tunacan427/FishOS | 86a173e8c423e96e70dfc624b5738e1313b0b130 | [
"MIT"
] | null | null | null | src/cpu/interrupts/idt.hpp | Tunacan427/FishOS | 86a173e8c423e96e70dfc624b5738e1313b0b130 | [
"MIT"
] | null | null | null | src/cpu/interrupts/idt.hpp | Tunacan427/FishOS | 86a173e8c423e96e70dfc624b5738e1313b0b130 | [
"MIT"
] | null | null | null | #pragma once
#include <kstd/types.hpp>
namespace cpu::interrupts {
struct [[gnu::packed]] IDTR {
u16 limit;
u64 base;
};
enum class IDTType {
INTERRUPT = 0b1110,
TRAP = 0b1111
};
struct [[gnu::packed]] IDTEntry {
u16 offset1;
u16 selector;
... | 24.425 | 78 | 0.579324 | Tunacan427 |
5b0fe82587c2b51fcf41f9bc58048d190df3d79e | 495 | cpp | C++ | codes/UVA/01001-01999/uva1160.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/01001-01999/uva1160.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/01001-01999/uva1160.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 1e5;
int f[maxn+5];
int getfar(int x) {
return x == f[x] ? x : f[x] = getfar(f[x]);
}
int main () {
int x, y;
while (scanf("%d", &x) == 1) {
int ret = 0;
for (int i = 0; i <= maxn; i++)
f[i] = i;
while (x !=... | 13.75 | 44 | 0.474747 | JeraKrs |
5b14f4a95cd297d9e5951f64d28481a2b9a7f468 | 4,077 | cpp | C++ | APEX_1.4/common/src/ApexAssetAuthoring.cpp | gongyiling/PhysX-3.4 | 99bc1c62880cf626f9926781e76a528b5276c68b | [
"Unlicense"
] | 1,863 | 2018-12-03T13:06:03.000Z | 2022-03-29T07:12:37.000Z | APEX_1.4/common/src/ApexAssetAuthoring.cpp | cctxx/PhysX-3.4-1 | 5e42a5f112351a223c19c17bb331e6c55037b8eb | [
"Unlicense"
] | 71 | 2018-12-03T19:48:39.000Z | 2022-01-11T09:30:52.000Z | APEX_1.4/common/src/ApexAssetAuthoring.cpp | cctxx/PhysX-3.4-1 | 5e42a5f112351a223c19c17bb331e6c55037b8eb | [
"Unlicense"
] | 265 | 2018-12-03T14:30:03.000Z | 2022-03-25T20:57:01.000Z | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 29.330935 | 155 | 0.723817 | gongyiling |
5b1ca84deb08818f9c4d3e36db9805a75fbe8ef9 | 1,811 | hh | C++ | src/Utilities/coarsenBinnedValues.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Utilities/coarsenBinnedValues.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Utilities/coarsenBinnedValues.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// coarsenBinnedValues
//
// Given a lattice of Values, return the multi-level result of progressively
// coarsening the distribution a requeted number of levels. The passed
// in vector<vector<Value> > should have the finest values as t... | 36.22 | 80 | 0.44561 | jmikeowen |
5b21267a0977d054ae7cc9600c195fb64bb07e81 | 10,854 | cpp | C++ | SnakePredictor/Entity/SnakeEntity.cpp | DanielMcAssey/SnakePredictor | 2e0c24b51df3089e8fa3bb1a354beec5f8ebfcb2 | [
"MIT"
] | null | null | null | SnakePredictor/Entity/SnakeEntity.cpp | DanielMcAssey/SnakePredictor | 2e0c24b51df3089e8fa3bb1a354beec5f8ebfcb2 | [
"MIT"
] | null | null | null | SnakePredictor/Entity/SnakeEntity.cpp | DanielMcAssey/SnakePredictor | 2e0c24b51df3089e8fa3bb1a354beec5f8ebfcb2 | [
"MIT"
] | null | null | null | /*
// This file is part of SnakePredictor
//
// (c) Daniel McAssey <hello@glokon.me>
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
*/
#include "stdafx.h"
#include "../stdafx.h"
#include "SnakeEntity.h"
// Determine priority for path n... | 28.790451 | 203 | 0.718261 | DanielMcAssey |
5b2247bfe72322a1bbce35b4c9d07ef0ca4eb38e | 4,255 | cpp | C++ | Cellular/Cellular/src/Window.cpp | Hukunaa/SandGame | ec33e942d2a377404b09849d09d6997cc13cf879 | [
"MIT"
] | null | null | null | Cellular/Cellular/src/Window.cpp | Hukunaa/SandGame | ec33e942d2a377404b09849d09d6997cc13cf879 | [
"MIT"
] | null | null | null | Cellular/Cellular/src/Window.cpp | Hukunaa/SandGame | ec33e942d2a377404b09849d09d6997cc13cf879 | [
"MIT"
] | null | null | null | #include <Window.h>
#include <iostream>
std::mutex Window::mtx;
Window::Window()
{
}
Window::Window(int x, int y, std::string name)
{
window = new sf::RenderWindow(sf::VideoMode(x, y), name);
collisionCheck = new ArrData[40000];
for (int i = 0; i < 40000; ++i)
collisionCheck[i].part = nullptr;
... | 30.177305 | 161 | 0.587544 | Hukunaa |
5b350088139791ab79c3469873954b19e485c0d7 | 1,482 | hpp | C++ | pybind/handler.hpp | mnaza/Pangolin | 2ed3f08f9ccb82255d23c6db1dce426166ceb3bf | [
"MIT"
] | 1 | 2018-01-14T08:44:02.000Z | 2018-01-14T08:44:02.000Z | pybind/handler.hpp | mnaza/Pangolin | 2ed3f08f9ccb82255d23c6db1dce426166ceb3bf | [
"MIT"
] | null | null | null | pybind/handler.hpp | mnaza/Pangolin | 2ed3f08f9ccb82255d23c6db1dce426166ceb3bf | [
"MIT"
] | null | null | null | //
// Copyright (c) Andrey Mnatsakanov
//
#ifndef PY_PANGOLIN_HANDLER_HPP
#define PY_PANGOLIN_HANDLER_HPP
#include <pybind11/pybind11.h>
#include <pangolin/handler/handler.h>
#include <pangolin/display/view.h>
namespace py_pangolin {
class PyHandler : public pangolin::Handler {
public:
using pangolin::Han... | 35.285714 | 152 | 0.706478 | mnaza |
5b3dc38e0fd3189a12e0dd0761c6f19f6df170e9 | 320 | hpp | C++ | domain/params/inc/i_hit_params.hpp | PKizin/game_design | 6223466ea46c091616f8d832659306fe7140b316 | [
"MIT"
] | null | null | null | domain/params/inc/i_hit_params.hpp | PKizin/game_design | 6223466ea46c091616f8d832659306fe7140b316 | [
"MIT"
] | null | null | null | domain/params/inc/i_hit_params.hpp | PKizin/game_design | 6223466ea46c091616f8d832659306fe7140b316 | [
"MIT"
] | null | null | null | #ifndef I_HIT_PARAMS_HPP
#define I_HIT_PARAMS_HPP
#include "e_params_categories.hpp"
class IHitParams {
public:
virtual float get_hit_param(EHitParams) const = 0;
virtual void set_hit_param(EHitParams, float) = 0;
protected:
IHitParams() { }
virtual ~IHitParams() { }
};
#endif // I_HIT_PARAMS_HPP
| 16.842105 | 54 | 0.725 | PKizin |
5b3f2bc436fcaf9a49307a565a1bbe07f5440df3 | 2,740 | cpp | C++ | numeric.cpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 6 | 2015-05-19T06:30:06.000Z | 2018-07-24T08:15:45.000Z | numeric.cpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 1 | 2015-05-19T06:42:38.000Z | 2015-05-19T14:45:49.000Z | numeric.cpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 3 | 2015-10-09T05:54:58.000Z | 2018-07-25T13:52:32.000Z | //Sample provided by Thiago Massari Guedes
//December 2015
//http://www.simplycpp.com/
#include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
namespace concrete {
//C++98 version ----------------------------
struct numerical_appender {
numerical_appender(std::string &buf) : _buf(buf) { }
... | 24.464286 | 81 | 0.599635 | SimplyCpp |
5b44ad8774a4a352a2fcbc42422aa966a945acd3 | 967 | hpp | C++ | SDK/ARKSurvivalEvolved_LeftClimbing_ImpactEffect_Metal_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_LeftClimbing_ImpactEffect_Metal_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_LeftClimbing_ImpactEffect_Metal_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_LeftClimbing_ImpactEffect_Metal_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//--------------------------------------... | 29.30303 | 152 | 0.638056 | 2bite |
5b460f288b981de7fde05ad02c8dee3c9f2ec179 | 1,090 | cpp | C++ | examples/toml_to_json_transcoder.cpp | GiulioRomualdi/tomlplusplus | 3f04e12b53f6fca1c12f230d285da167a656c899 | [
"MIT"
] | null | null | null | examples/toml_to_json_transcoder.cpp | GiulioRomualdi/tomlplusplus | 3f04e12b53f6fca1c12f230d285da167a656c899 | [
"MIT"
] | null | null | null | examples/toml_to_json_transcoder.cpp | GiulioRomualdi/tomlplusplus | 3f04e12b53f6fca1c12f230d285da167a656c899 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <toml++/toml.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
using namespace std::string_view_literals;
int main(int argc, char** argv)
{
#ifdef _WIN32
SetConsoleOutputCP(65001); //UTF-8 console output
#endif
//read from a file
if (argc > 1... | 18.793103 | 94 | 0.615596 | GiulioRomualdi |
5b4778588cf91e7a561ea17e1f690d1383179466 | 19,994 | cpp | C++ | time_util.cpp | r3dl3g/util | 385fd89d2d453d8827e3b92187b4087744b3d8c4 | [
"MIT"
] | null | null | null | time_util.cpp | r3dl3g/util | 385fd89d2d453d8827e3b92187b4087744b3d8c4 | [
"MIT"
] | null | null | null | time_util.cpp | r3dl3g/util | 385fd89d2d453d8827e3b92187b4087744b3d8c4 | [
"MIT"
] | null | null | null | /**
* @copyright (c) 2015-2021 Ing. Buero Rothfuss
* Riedlinger Str. 8
* 70327 Stuttgart
* Germany
* http://www.rothfuss-web.de
*
* @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a>
*
* Projec... | 36.025225 | 134 | 0.449485 | r3dl3g |
5b4981befd71c99fe04ba5e3c15d7dbce7632867 | 813 | cpp | C++ | tutorial/classes/Person.cpp | epg-apg/cpptutorial | 028e5039314ccd98146d6f394981f137c5b85b19 | [
"Unlicense"
] | null | null | null | tutorial/classes/Person.cpp | epg-apg/cpptutorial | 028e5039314ccd98146d6f394981f137c5b85b19 | [
"Unlicense"
] | null | null | null | tutorial/classes/Person.cpp | epg-apg/cpptutorial | 028e5039314ccd98146d6f394981f137c5b85b19 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <sstream>
#include "Person.h"
Person::Person()
{
std::cout << "Person created..." << std::endl;
name = "George";
age = 0;
}
Person::Person(std::string newName)
{
name = newName;
age = 0;
}
Person::Person(std::string newName, int newAge)
{
name = newName;
ag... | 14.517857 | 54 | 0.579336 | epg-apg |
5b49b5a5e1d7e5ce8c957f6cf2440b3acbdbd91d | 6,924 | cpp | C++ | leetcode/30_days_challenge/2021_3_March/20.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/30_days_challenge/2021_3_March/20.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/30_days_challenge/2021_3_March/20.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /****************************************************
Date: March 20th
link: https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/590/week-3-march-15th-march-21st/3673/
****************************************************/
#include <iostream>
#include <vector>
#include <list>
#include <algorith... | 38.043956 | 297 | 0.659301 | bvbasavaraju |
5b4b25e02378196ea5acb2abc84e6090787d1267 | 389 | cpp | C++ | 4th semester/lab_6/src/Sofa.cpp | kmalski/cpp_labs | 52b0fc84319d6cc57ff7bfdb787aa5eb09edf592 | [
"MIT"
] | 1 | 2020-05-19T17:14:55.000Z | 2020-05-19T17:14:55.000Z | 4th semester/lab_6/src/Sofa.cpp | kmalski/CPP_Laboratories | 52b0fc84319d6cc57ff7bfdb787aa5eb09edf592 | [
"MIT"
] | null | null | null | 4th semester/lab_6/src/Sofa.cpp | kmalski/CPP_Laboratories | 52b0fc84319d6cc57ff7bfdb787aa5eb09edf592 | [
"MIT"
] | null | null | null | #include "Sofa.h"
#include <iostream>
Sofa::Sofa(const int width, const int height, const int length, const int seat) : Mebel(width, height, length), _seat(seat) {}
Sofa::Sofa(const int seat) : _seat(seat) {}
Sofa::~Sofa() {
std::cout << "~Sofa" << std::endl;
}
void Sofa::print() const {
std::cout << "Sofa:... | 22.882353 | 126 | 0.601542 | kmalski |
5b5600292d5f0d3a1d12f48353f0a1ffa28a0baa | 14,199 | cpp | C++ | lib/SmartSign/Display.cpp | in-tech/SmartSign | 476a07ea2606ca80d2193f2957e7b62fb114d05e | [
"MIT"
] | 4 | 2022-01-07T12:38:08.000Z | 2022-01-07T14:58:25.000Z | lib/SmartSign/Display.cpp | in-tech/SmartSign | 476a07ea2606ca80d2193f2957e7b62fb114d05e | [
"MIT"
] | null | null | null | lib/SmartSign/Display.cpp | in-tech/SmartSign | 476a07ea2606ca80d2193f2957e7b62fb114d05e | [
"MIT"
] | 2 | 2022-01-07T12:39:29.000Z | 2022-01-07T12:42:25.000Z | #include "Display.h"
#include "IAppContext.h"
#include <images.h>
#include <fonts.h>
#include "TimeUtils.h"
#include "CryptoUtils.h"
#include <qrcode.h>
#include "Log.h"
extern sIMAGE IMG_background;
extern sIMAGE IMG_booked;
extern sIMAGE IMG_free;
extern sIMAGE IMG_cwa;
// Hash of the last content that was presente... | 32.051919 | 156 | 0.595605 | in-tech |
5b5f1ecb136405854385b4aa313db509d54ff208 | 17,787 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Bold_otf_27_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Bold_otf_27_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Bold_otf_27_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | #include <touchgfx/hal/Types.hpp>
FONT_LOCATION_FLASH_PRAGMA
KEEP extern const uint8_t unicodes_Asap_Bold_otf_27_4bpp[] FONT_LOCATION_FLASH_ATTRIBUTE = {
// Unicode: [0x0020, space]
// (Has no glyph data)
// Unicode: [0x0030, zero]
0x00,0x00,0xB4,0xFE,0x8D,0x00,0x00,0x00,0x90,0xFF,0xFF,0xFF,0x2D,0x00,0x00,0xF7,
0xFF,0... | 68.675676 | 92 | 0.782088 | ramkumarkoppu |
5b6eb1a8f650508647ebb1d09defc4bcc8314938 | 451 | cpp | C++ | src/robotics/genetico.cpp | pcamarillor/Exploratory3D | 10705d201376b98bdf8f19fca398a3bf341807c9 | [
"MIT"
] | null | null | null | src/robotics/genetico.cpp | pcamarillor/Exploratory3D | 10705d201376b98bdf8f19fca398a3bf341807c9 | [
"MIT"
] | null | null | null | src/robotics/genetico.cpp | pcamarillor/Exploratory3D | 10705d201376b98bdf8f19fca398a3bf341807c9 | [
"MIT"
] | null | null | null | #include "genetico.h"
genetico::genetico()
{
this->numGeneraciones = 100;
this->tamPoblacion = 20;
this->pCruza = 0.8;
this->pMutacion = 0.2;
}
genetico::genetico(int _nGeneraciones, int _tPoblacion, float _pCruza, float _pMutacion)
{
this->numGeneraciones = _nGeneraciones;
this... | 18.791667 | 89 | 0.640798 | pcamarillor |
ac8e0fdaba7552f4373146f3be78ecf133f34d4b | 10,011 | cc | C++ | build/X86_MESI_Two_Level/python/m5/internal/param_TaggedPrefetcher.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | build/X86_MESI_Two_Level/python/m5/internal/param_TaggedPrefetcher.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/param_TaggedPrefetcher.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_TaggedPrefetcher[] = {
120,156,197,88,123,111,219,200,17,159,165,94,150,108,217,114,
252,202,195,62,51,137,221,168,143,216,109,15,110,175,189,52,
104,146,166,197,1,141,47,165,3,36,81,11,16,52,185,146,
105,75,164,74,174,226,40,144,... | 58.54386 | 97 | 0.668365 | hoho20000000 |
ac98cb3849583db62e6c84d96b3bbb447b64167f | 882 | cpp | C++ | common/lib/Vector/Vector.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | common/lib/Vector/Vector.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | common/lib/Vector/Vector.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | #include "Vector.h"
#include "Quaternion.h"
Vector::Vector() : v0(0), v1(0), v2(0) {}
Vector::Vector(float32_t _v0, float32_t _v1, float32_t _v2) {
v0 = _v0;
v1 = _v1;
v2 = _v2;
}
Vector Vector::minus(Vector v) {
return Vector(v0 - v.v0, v1 - v.v1, v2 - v.v2);
}
Vector Vector::add(Vector v) {
return Vecto... | 21.512195 | 88 | 0.633787 | mc18g13 |
ac9bbc6bf15e5d7b3d39e29918a0d63392279e2b | 601 | hpp | C++ | libs/renderer/include/sge/renderer/texture/capabilities_field_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/texture/capabilities_field_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/texture/capabilities_field_fwd.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_RENDERER_TEXTURE_CAPABILITIES_FIELD_FWD_HPP_INCLUDED
#define SGE_RENDERER_TEXTURE_CAPAB... | 30.05 | 100 | 0.778702 | cpreh |
aca67d2392ee147493e0c311330e400de6ff9b5d | 637 | cpp | C++ | patbasic/test1051.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1051.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1051.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | //
// Created by neild47 on 18-4-28.
//
#include <iostream>
#include <cmath>
using namespace std;
int test1051() {
double r1, p1, r2, p2;
cin >> r1 >> p1 >> r2 >> p2;
double n1, n2, n3, n4;
n1 = r1 * cos(p1);
n2 = r1 * sin(p1);
n3 = r2 * cos(p2);
n4 = r2 * sin(p2);
double a, b;
a ... | 18.735294 | 38 | 0.414443 | neild47 |
aca72d628281ab6382c8fc2b5c247bd99b0ba05f | 1,393 | cpp | C++ | Chapter5/12_image_thresholding.cpp | robotchaoX/Hands-On-GPU-Accelerated-Computer-Vision-with-OpenCV-and-CUDA | fa0c6c80e70d4dbbea8662b6f17d18927ca6d3fa | [
"MIT"
] | null | null | null | Chapter5/12_image_thresholding.cpp | robotchaoX/Hands-On-GPU-Accelerated-Computer-Vision-with-OpenCV-and-CUDA | fa0c6c80e70d4dbbea8662b6f17d18927ca6d3fa | [
"MIT"
] | null | null | null | Chapter5/12_image_thresholding.cpp | robotchaoX/Hands-On-GPU-Accelerated-Computer-Vision-with-OpenCV-and-CUDA | fa0c6c80e70d4dbbea8662b6f17d18927ca6d3fa | [
"MIT"
] | null | null | null | #include <iostream>
#include "opencv2/opencv.hpp"
int main(int argc, char* argv[])
{
//Read Image
cv::Mat h_img1 = cv::imread("images/cameraman.tif", 0);
//Define device variables
cv::cuda::GpuMat d_result1, d_result2, d_result3, d_result4, d_result5, d_img1;
//Upload image on device
d_img1.upload(h_im... | 40.970588 | 81 | 0.72649 | robotchaoX |
aca7fb019c97d1ff67c829f5263eaa8a1ef3ac6d | 2,491 | hpp | C++ | Program Interface/src/interfaceDecl.hpp | Milosz08/Matrix_Calculator | 0534b3bb59962312e83273a744356dc598b08a43 | [
"MIT"
] | null | null | null | Program Interface/src/interfaceDecl.hpp | Milosz08/Matrix_Calculator | 0534b3bb59962312e83273a744356dc598b08a43 | [
"MIT"
] | null | null | null | Program Interface/src/interfaceDecl.hpp | Milosz08/Matrix_Calculator | 0534b3bb59962312e83273a744356dc598b08a43 | [
"MIT"
] | null | null | null | #ifndef PK_MATRIX_CALCULATOR_INTERFACEDECL_HPP
#define PK_MATRIX_CALCULATOR_INTERFACEDECL_HPP
#include "../../Matrix Classes/src/packages/abstractMatrixPackage/MatrixAbstract.hpp"
#include "../../Matrix Classes/src/packages/generalMatrixPackage/GeneralMatrix.hpp"
#include "../../Matrix Classes/src/packages/diagonalMat... | 37.742424 | 109 | 0.76114 | Milosz08 |
acaa8f2854ab19c4cb21c961c649058f418e4978 | 973 | hpp | C++ | include/experimental/fundamental/v3/contract/constexpr_assert.hpp | jwakely/std-make | f09d052983ace70cf371bb8ddf78d4f00330bccd | [
"BSL-1.0"
] | 105 | 2015-01-24T13:26:41.000Z | 2022-02-18T15:36:53.000Z | include/experimental/fundamental/v3/contract/constexpr_assert.hpp | jwakely/std-make | f09d052983ace70cf371bb8ddf78d4f00330bccd | [
"BSL-1.0"
] | 37 | 2015-09-04T06:57:10.000Z | 2021-09-09T18:01:44.000Z | include/experimental/fundamental/v3/contract/constexpr_assert.hpp | jwakely/std-make | f09d052983ace70cf371bb8ddf78d4f00330bccd | [
"BSL-1.0"
] | 23 | 2015-01-27T11:09:18.000Z | 2021-10-04T02:23:30.000Z | // 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)
// (C) Copyright 2013,2014,2017 Vicente J. Botet Escriba
#ifndef JASEL_EXPERIMENTAL_V3_CONTRACT_CONSTEXPR_ASSERT_HPP
#define JASEL_EXPERIMENTAL_V3_CONTRACT_CONSTEX... | 25.605263 | 116 | 0.756423 | jwakely |
acb07b4c7f9f601d1e9dafbc93988ae6504cb612 | 247 | cpp | C++ | Leetcode1963.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | 1 | 2020-06-28T06:29:05.000Z | 2020-06-28T06:29:05.000Z | Leetcode1963.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | Leetcode1963.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int minSwaps(string s) {
int res = 0, mv = 0;
for (char c : s) {
if (c == '[') res++;
else res--;
mv = min(mv, res);
}
return (-mv + 1) / 2;
}
};
| 19 | 32 | 0.360324 | dezhonger |
acbf9d5811f274b7e3faf017cf7135a8ad794ada | 6,554 | hpp | C++ | cpp2c/test_data/bitblock128.hpp | mendlin/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | 1 | 2021-01-07T03:18:27.000Z | 2021-01-07T03:18:27.000Z | cpp2c/test_data/bitblock128.hpp | Logicalmars/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | null | null | null | cpp2c/test_data/bitblock128.hpp | Logicalmars/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | 1 | 2021-11-29T07:28:13.000Z | 2021-11-29T07:28:13.000Z | #ifndef BITBLOCK128_HPP_
#define BITBLOCK128_HPP_
/*=============================================================================
bitblock128 - Specific 128 bit IDISA implementations.
Copyright (C) 2011, Robert D. Cameron, Kenneth S. Herdy, Hua Huang and Nigel Medforth.
Licensed to the public under the Ope... | 46.15493 | 157 | 0.753891 | mendlin |
accabed9773495b37cc003cdcb3ede1ddc826818 | 1,903 | cpp | C++ | server/Server.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | server/Server.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | server/Server.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | #include "Server.h"
#include <cmath>
#include <iostream>
Server::Server(std::string &port_number, unsigned short backlog, unsigned long max_workers) {
this->port_number = port_number;
this->backlog = backlog;
this->max_workers = max_workers;
server_socket = new ServerSocket(port_number, backlog);
}
Se... | 25.373333 | 101 | 0.576458 | MohamedAshrafTolba |
accfbbce45432c9ac4235b5c5cbb6a3ed224148d | 9,908 | cpp | C++ | src/sc.cpp | josephnoir/indexing | 99f6a02c22451d0db204731a6c53ed56ad751365 | [
"BSD-3-Clause"
] | 5 | 2017-01-30T17:02:24.000Z | 2017-04-22T04:20:41.000Z | src/sc.cpp | josephnoir/indexing | 99f6a02c22451d0db204731a6c53ed56ad751365 | [
"BSD-3-Clause"
] | null | null | null | src/sc.cpp | josephnoir/indexing | 99f6a02c22451d0db204731a6c53ed56ad751365 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* Copyright (C) 2017 *
* Raphael Hiesgen <raphael.hiesgen (at) haw-hamburg.de> *
* *
... | 34.643357 | 98 | 0.552382 | josephnoir |
acd046ee059426ae791159e5ed3a53fd19cfc83e | 3,632 | cpp | C++ | dp/sg/ui/manipulator/src/FlightCameraManipulatorHIDSync.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 217 | 2015-01-06T09:26:53.000Z | 2022-03-23T14:03:18.000Z | dp/sg/ui/manipulator/src/FlightCameraManipulatorHIDSync.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 10 | 2015-01-25T12:42:05.000Z | 2017-11-28T16:10:16.000Z | dp/sg/ui/manipulator/src/FlightCameraManipulatorHIDSync.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 44 | 2015-01-13T01:19:41.000Z | 2022-02-21T21:35:08.000Z | // Copyright NVIDIA Corporation 2010
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following d... | 35.960396 | 110 | 0.627753 | asuessenbach |
acd1919f833609fcc07594346191cfa8d2f00d16 | 2,156 | cpp | C++ | examples/gestures/Canvas.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | examples/gestures/Canvas.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | examples/gestures/Canvas.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /**
* A Gesture Recognition system in C++
* This library is based on the following paper:
*
* Wobbrock, J, Wilson, A, Li, Y 2007
* Gestures without Libraries, Toolkits or Training:
* A $1 Recognizer for User Interface Prototypes
* UIST 2007
*
* @author Michael Marner (marnermr@cs.unisa.edu.au)
*/
#include "C... | 19.779817 | 69 | 0.684601 | WearableComputerLab |
acd40d0d2213ae5664925e8dbc79e1e387a18863 | 1,396 | cpp | C++ | Plugins/GStreamer/Source/GStreamer/Private/GStreamerModule.cpp | kevinrev26/UnrealGAMS | 74b53f5d0e52bd8826e5991192a62cc04547d93e | [
"BSD-3-Clause"
] | 7 | 2019-02-19T23:28:25.000Z | 2021-09-06T16:23:49.000Z | Plugins/GStreamer/Source/GStreamer/Private/GStreamerModule.cpp | kevinrev26/UnrealGAMS | 74b53f5d0e52bd8826e5991192a62cc04547d93e | [
"BSD-3-Clause"
] | 1 | 2019-02-19T21:46:07.000Z | 2019-02-19T21:46:07.000Z | Plugins/GStreamer/Source/GStreamer/Private/GStreamerModule.cpp | racsoraul/UnrealGAMS | 3931d6d45ddc7aed7acf941740bd60250e9db196 | [
"BSD-3-Clause"
] | 8 | 2019-02-18T18:00:25.000Z | 2019-07-12T19:33:36.000Z | #include "GStreamerModule.h"
#include "GstCoreImpl.h"
#include "SharedUnreal.h"
#include "Runtime/Core/Public/Misc/Paths.h"
class FGStreamerModule : public IGStreamerModule
{
public:
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};
DEFINE_LOG_CATEGORY(LogGStreamer);
... | 22.885246 | 90 | 0.7149 | kevinrev26 |
acdc41f45d220f0e49dc58fbee296d41adf55335 | 363 | hpp | C++ | dialogs/loadMenu/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | null | null | null | dialogs/loadMenu/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | 26 | 2020-05-15T14:38:08.000Z | 2021-06-28T18:26:53.000Z | dialogs/loadMenu/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | null | null | null | class AS_loadMenu
{
idd=1601;
movingenable=false;
class controls
{
AS_DIALOG(5,"Load game", "[] spawn AS_fnc_UI_loadMenu_close;");
LIST_L(0,1,0,4,"");
BTN_L(5,-1,"Delete selected", "Delete the selected saved game", "[] spawn AS_fnc_UI_loadMenu_delete;");
BTN_R(5,-1,"Load game", "Load the selected saved game", "[... | 22.6875 | 103 | 0.699725 | Kortonki |
acdf0c5876147daab059a3e5bcb48643137dc070 | 958 | cpp | C++ | Userland/Demos/ModelGallery/main.cpp | TheCrott/serenity | 925f21353efaa5304c5d486e6802c4e75e0c4d15 | [
"BSD-2-Clause"
] | 650 | 2019-03-01T13:33:03.000Z | 2022-03-15T09:26:44.000Z | Userland/Demos/ModelGallery/main.cpp | TheCrott/serenity | 925f21353efaa5304c5d486e6802c4e75e0c4d15 | [
"BSD-2-Clause"
] | 51 | 2019-04-03T08:32:38.000Z | 2019-05-19T13:44:28.000Z | Userland/Demos/ModelGallery/main.cpp | TheCrott/serenity | 925f21353efaa5304c5d486e6802c4e75e0c4d15 | [
"BSD-2-Clause"
] | 33 | 2019-03-26T05:47:59.000Z | 2021-11-22T18:18:45.000Z | /*
* Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "GalleryWidget.h"
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h>
#include <LibGUI/Frame.h>
#include <LibGUI/MessageBox.h>
#include <unistd.h>
int main(int argc,... | 23.95 | 76 | 0.646138 | TheCrott |
acdfb7986a63e425ad08820c50aa0b34dbb63dac | 28,026 | cpp | C++ | docs/simple.cpp | ief015/libfada | 97dc34a96fd3a6fb454680303229b6295ef3d28a | [
"Zlib"
] | null | null | null | docs/simple.cpp | ief015/libfada | 97dc34a96fd3a6fb454680303229b6295ef3d28a | [
"Zlib"
] | null | null | null | docs/simple.cpp | ief015/libfada | 97dc34a96fd3a6fb454680303229b6295ef3d28a | [
"Zlib"
] | null | null | null | /***********************************************************
** libfada Full Example Visualizer
** Written by Nathan Cousins - December 2013
**
** Usage: full_visualizer <audio_filepath>
** `audio_filepath' may be any filetype supported by SFML/libsndfile.
**********************************************... | 24.139535 | 178 | 0.603261 | ief015 |
ace411b3a3f20ac6879fbaa863a943dedd909894 | 1,362 | hh | C++ | include/Activia/ActGuiRun.hh | UniversityofWarwick/ACTIVIA | bbd0dfa71337602f94d911fa5101a440e8c16606 | [
"BSL-1.0"
] | 1 | 2020-11-04T08:32:23.000Z | 2020-11-04T08:32:23.000Z | include/Activia/ActGuiRun.hh | UniversityofWarwick/ACTIVIA | bbd0dfa71337602f94d911fa5101a440e8c16606 | [
"BSL-1.0"
] | null | null | null | include/Activia/ActGuiRun.hh | UniversityofWarwick/ACTIVIA | bbd0dfa71337602f94d911fa5101a440e8c16606 | [
"BSL-1.0"
] | 1 | 2020-11-04T08:32:30.000Z | 2020-11-04T08:32:30.000Z | #ifdef ACT_USE_QT
#ifndef ACT_GUI_RUN_HH
#define ACT_GUI_RUN_HH
#include "Activia/ActAbsRun.hh"
#include "Activia/ActGuiWindow.hh"
#include "QtGui/qdialog.h"
#include "QtGui/qmenubar.h"
#include "QtGui/qprogressbar.h"
/// \brief Run all of the isotope production code using a GUI
///
/// All relevent input and outpu... | 19.457143 | 68 | 0.707048 | UniversityofWarwick |
ace45f838efefc721e7e28f82d34c4a06ce2b73d | 9,652 | cc | C++ | processors/IA32/bochs/cpu/bit32.cc | pavel-krivanek/opensmalltalk-vm | 694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16 | [
"MIT"
] | 445 | 2016-06-30T08:19:11.000Z | 2022-03-28T06:09:49.000Z | processors/IA32/bochs/cpu/bit32.cc | pavel-krivanek/opensmalltalk-vm | 694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16 | [
"MIT"
] | 439 | 2016-06-29T20:14:36.000Z | 2022-03-17T19:59:58.000Z | processors/IA32/bochs/cpu/bit32.cc | pavel-krivanek/opensmalltalk-vm | 694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16 | [
"MIT"
] | 137 | 2016-07-02T17:32:07.000Z | 2022-03-20T11:17:25.000Z | /////////////////////////////////////////////////////////////////////////
// $Id: bit32.cc,v 1.14 2008/08/11 18:53:23 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris... | 26.228261 | 102 | 0.657688 | pavel-krivanek |
ace4a50850d5f4d87cbe2a154f3840bcdccfc00b | 17,895 | cpp | C++ | YGO3_Decoder/YGO3_Decoder.cpp | xan1242/ygo3_decoder | ed2344021c7a9ee92efbd2059ce7da245705ac1a | [
"MIT"
] | null | null | null | YGO3_Decoder/YGO3_Decoder.cpp | xan1242/ygo3_decoder | ed2344021c7a9ee92efbd2059ce7da245705ac1a | [
"MIT"
] | null | null | null | YGO3_Decoder/YGO3_Decoder.cpp | xan1242/ygo3_decoder | ed2344021c7a9ee92efbd2059ce7da245705ac1a | [
"MIT"
] | null | null | null | // Yu-Gi-Oh! Online 3 File Codec
//
#include "stdafx.h"
#include "DecodeKeys.h"
#include <stdlib.h>
#include <string.h>
char DecodeKeys1[0x48] = DECODE_KEYS_1;
char DecodeKeys2[0x1000] = DECODE_KEYS_2;
char* OutputFileName;
char FileExt[16];
unsigned int KeyPointers[2];
struct stat st = { 0 };
v... | 21.984029 | 71 | 0.501481 | xan1242 |
ace4ff0b3f45dcf59d65921a5707091c2f87a03b | 14,919 | cpp | C++ | Orbit/src/Render/VulkanBase.cpp | JusticesHand/orbit-engine | fd9bd160f6e54fb49a9e720f0c409ae5deb6e676 | [
"MIT"
] | null | null | null | Orbit/src/Render/VulkanBase.cpp | JusticesHand/orbit-engine | fd9bd160f6e54fb49a9e720f0c409ae5deb6e676 | [
"MIT"
] | 8 | 2017-09-05T04:12:03.000Z | 2017-10-26T03:17:07.000Z | Orbit/src/Render/VulkanBase.cpp | JusticesHand/orbit-engine | fd9bd160f6e54fb49a9e720f0c409ae5deb6e676 | [
"MIT"
] | null | null | null | /*! @file Render/VulkanBase.cpp */
#include "Render/VulkanBase.h"
#include "Input/Window.h"
#include <iostream>
#if defined(USE_WIN32)
#error Win32Window not implemented yet!
#elif defined(USE_XWINDOW)
#error XWindow is not implemented yet!
#elif defined(USE_WAYLAND)
#error WaylandWindow is not implemented yet!
#el... | 31.742553 | 142 | 0.779878 | JusticesHand |
acef8a783993b913184fc0b58bab11983ffca7cf | 821 | hh | C++ | include/khmer/_cpy_countgraph.hh | wltrimbl/khmer | ff95776eabee96420f1ae43d0eff562682cbb17b | [
"CNRI-Python"
] | null | null | null | include/khmer/_cpy_countgraph.hh | wltrimbl/khmer | ff95776eabee96420f1ae43d0eff562682cbb17b | [
"CNRI-Python"
] | null | null | null | include/khmer/_cpy_countgraph.hh | wltrimbl/khmer | ff95776eabee96420f1ae43d0eff562682cbb17b | [
"CNRI-Python"
] | null | null | null | #ifndef _CPY_COUNTGRAPH_HH
#define _CPY_COUNTGRAPH_HH
#include <Python.h>
#include "_cpy_utils.hh"
#include "_cpy_hashgraph.hh"
namespace khmer {
typedef struct {
khmer_KHashgraph_Object khashgraph;
oxli::Countgraph * countgraph;
} khmer_KCountgraph_Object;
extern PyTypeObject khmer_KCountgraph_Type
CPYCHE... | 22.805556 | 71 | 0.771011 | wltrimbl |
acf5a4d1c5bada979452ea50c9d6fd52e3b599d6 | 3,554 | cpp | C++ | experiments/Experiment08/M8E8_apw5450.cpp | austinmwhaley/cmps121 | d2ae8bad2f5cc6aee50e13f2b5b1a98f041de088 | [
"MIT"
] | null | null | null | experiments/Experiment08/M8E8_apw5450.cpp | austinmwhaley/cmps121 | d2ae8bad2f5cc6aee50e13f2b5b1a98f041de088 | [
"MIT"
] | null | null | null | experiments/Experiment08/M8E8_apw5450.cpp | austinmwhaley/cmps121 | d2ae8bad2f5cc6aee50e13f2b5b1a98f041de088 | [
"MIT"
] | null | null | null | //Author: Austin Whaley, APW5450, 2019-03-03
//Class: CMPSC 121
//Experiment: 08
//File: cmpsc121/experiments/Experiment08/M7A15_apw5450.cpp
//Purpose: Develop Confidence with random numbers
/********************************************************************\
* Academic Integrity Affidavit: ... | 26.132353 | 79 | 0.558244 | austinmwhaley |
acf90af34b816b8823c4e40426c066c2e9223c46 | 1,239 | cpp | C++ | Application/source/db/migrations/6_RemoveImages.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | 106 | 2020-11-01T09:58:37.000Z | 2022-03-26T10:44:26.000Z | Application/source/db/migrations/6_RemoveImages.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | 30 | 2020-11-01T11:21:48.000Z | 2022-02-01T23:09:47.000Z | Application/source/db/migrations/6_RemoveImages.cpp | RoutineFree/TriPlayer | 4e5ee19c992eba033b57444b7f4b312acf339163 | [
"MIT"
] | 15 | 2020-11-02T12:06:03.000Z | 2021-08-05T14:22:39.000Z | #include "db/migrations/6_RemoveImages.hpp"
namespace Migration {
std::string migrateTo6(SQLite * db) {
// Add triggers to delete images when a relevant row is deleted
bool ok = db->prepareAndExecuteQuery("CREATE TRIGGER deleteAlbumImage AFTER DELETE ON Albums WHEN removeImage(OLD.image_path) BEGIN... | 45.888889 | 166 | 0.649718 | RoutineFree |
acfb66918f9c2725bb3c91b819491bd3004fd4a3 | 3,783 | cpp | C++ | src/Plugins/GOAPPlugin/Tasks/TaskAnimatablePlayWait.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Plugins/GOAPPlugin/Tasks/TaskAnimatablePlayWait.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | src/Plugins/GOAPPlugin/Tasks/TaskAnimatablePlayWait.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | null | null | null | #include "TaskAnimatablePlayWait.h"
#include "Interface/AnimationInterface.h"
#include "Kernel/Logger.h"
#include "Kernel/Assertion.h"
#include "Kernel/DocumentHelper.h"
#include "TaskAnimatablePlayReceiver.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
Tas... | 38.602041 | 176 | 0.613534 | Terryhata6 |
acfe52437cdad9d506c58b9f9d051007341c2bee | 2,791 | cpp | C++ | 2018_11_04/src/main.cpp | dafer45/SecondTech | 262dda0c3599d182bf4bf51df595078c93b19b20 | [
"Apache-2.0"
] | 3 | 2018-10-29T04:33:16.000Z | 2019-07-10T18:28:27.000Z | 2018_11_04/src/main.cpp | dafer45/SecondTech | 262dda0c3599d182bf4bf51df595078c93b19b20 | [
"Apache-2.0"
] | null | null | null | 2018_11_04/src/main.cpp | dafer45/SecondTech | 262dda0c3599d182bf4bf51df595078c93b19b20 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2018 Kristofer Björnson
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 26.084112 | 75 | 0.681834 | dafer45 |
4a00f6a8c140aa42075347ce520ba22e120383c0 | 1,003 | cpp | C++ | core/source/detail/string_view.cpp | GremSnoort/actor-zeta | ec9f5624871f1fe3b844bb727e80388ba6c0557e | [
"BSD-3-Clause"
] | null | null | null | core/source/detail/string_view.cpp | GremSnoort/actor-zeta | ec9f5624871f1fe3b844bb727e80388ba6c0557e | [
"BSD-3-Clause"
] | null | null | null | core/source/detail/string_view.cpp | GremSnoort/actor-zeta | ec9f5624871f1fe3b844bb727e80388ba6c0557e | [
"BSD-3-Clause"
] | null | null | null | #include <actor-zeta/detail/string_view.hpp>
#if CPP17_OR_GREATER
#elif CPP14_OR_GREATER or CPP11_OR_GREATER
#include <ostream>
namespace std {
std::ostream &operator<<(std::ostream &out, actor_zeta::detail::string_view str) {
for (auto ch : str)
out.put(ch);
return out;
}
... | 26.394737 | 86 | 0.54337 | GremSnoort |
4a02c2e670b5085f6cbe172f79925b143a31ae7e | 2,159 | hpp | C++ | include/rrl/cm/cm_no_reset.hpp | umbreensabirmain/readex-rrl | 0cb73b3a3c6948a8dbdce96c240b24d8e992c2fe | [
"BSD-3-Clause"
] | 1 | 2019-10-09T09:15:47.000Z | 2019-10-09T09:15:47.000Z | include/rrl/cm/cm_no_reset.hpp | readex-eu/readex-rrl | ac8722c44f84d65668e2a60e4237ebf51b298c9b | [
"BSD-3-Clause"
] | null | null | null | include/rrl/cm/cm_no_reset.hpp | readex-eu/readex-rrl | ac8722c44f84d65668e2a60e4237ebf51b298c9b | [
"BSD-3-Clause"
] | 1 | 2018-07-13T11:31:05.000Z | 2018-07-13T11:31:05.000Z | /*
* config_manager.hpp
*
* Created on: 06.06.2017
* Author: marcel
*/
#ifndef INCLUDE_CM_NO_RESET_HPP_
#define INCLUDE_CM_NO_RESET_HPP_
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <mutex>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#... | 23.467391 | 99 | 0.691524 | umbreensabirmain |
4a04a4fc080162297ab1faa9e7d1e1ca936e9c20 | 245 | cpp | C++ | 04. Recursion/taylorseriesiterative.cpp | pratik8696/DSA | 049a76b6e2445bb5de2e87f3755038609006c06a | [
"MIT"
] | 2 | 2021-09-27T14:12:28.000Z | 2021-09-28T03:35:46.000Z | 04. Recursion/taylorseriesiterative.cpp | pratik8696/DSA | 049a76b6e2445bb5de2e87f3755038609006c06a | [
"MIT"
] | 2 | 2021-09-30T09:07:11.000Z | 2021-10-17T18:42:34.000Z | 04. Recursion/taylorseriesiterative.cpp | pratik8696/DSA | 049a76b6e2445bb5de2e87f3755038609006c06a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int iterative(int x,int n)
{
static int s=1;
for(;n>0;n--)
{
s=1+x/n*s;
}
return s;
}
int main()
{
int x,n;
cin>>x>>n;
cout<<iterative(x,n);
return 0;
}
| 11.666667 | 26 | 0.493878 | pratik8696 |
4a053aadc637d67124c9c9c6854b80eb6d5d96f8 | 790 | cpp | C++ | codes/UVA/10001-19999/uva10115.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/10001-19999/uva10115.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/10001-19999/uva10115.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
#define N 15
#define M 85
#define K 260
int main()
{
char before[N][M], after[N][M];
char str[K], tem[K];
int n;
while (cin >> n, n)
{
getchar();
// Init.
memset(before, 0, sizeof(before));
memset(after, 0, sizeof(after));
mem... | 14.90566 | 36 | 0.534177 | JeraKrs |
4a07af97299eb23ec1169cd59022da232c736bf9 | 1,446 | hpp | C++ | src/TypeInfo.hpp | MustafaSabur/RobotWereld | e696e6e7ad890abb719a78fc1a0c111a680d27e0 | [
"BSD-2-Clause"
] | null | null | null | src/TypeInfo.hpp | MustafaSabur/RobotWereld | e696e6e7ad890abb719a78fc1a0c111a680d27e0 | [
"BSD-2-Clause"
] | null | null | null | src/TypeInfo.hpp | MustafaSabur/RobotWereld | e696e6e7ad890abb719a78fc1a0c111a680d27e0 | [
"BSD-2-Clause"
] | null | null | null | #ifndef TYPEINFO_HPP_
#define TYPEINFO_HPP_
/*
* Copyright (c) 1997 - 2013 Askesis B.V. See license.txt for details.
* For information, bug reports and additions send an e-mail to Danu@Askesis.nl.
*
* Author: jkr
*/
#include <cstdlib>
#include <typeinfo>
#include <cxxabi.h>
#include <string>
/**
* @return The ... | 23.322581 | 126 | 0.722683 | MustafaSabur |
4a12bef02a73ba8fbc5f46e0dc69754b06740074 | 7,721 | cpp | C++ | Engine/gkDebugFps.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 241 | 2015-01-04T00:36:58.000Z | 2022-01-06T19:19:23.000Z | Engine/gkDebugFps.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | 10 | 2015-07-10T18:27:17.000Z | 2019-06-26T20:59:59.000Z | Engine/gkDebugFps.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z | /*
-------------------------------------------------------------------------------
This file is part of OgreKit.
http://gamekit.googlecode.com/
Copyright (c) 2006-2013 Xavier T.
Contributor(s): Charlie C.
-------------------------------------------------------------------------------
This software i... | 32.995726 | 109 | 0.669732 | gamekit-developers |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.