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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f3c10b2d46a2ce85d09b01b977e23f1c3cbc35b | 85,734 | cpp | C++ | sdl1/VisualBoyAdvance/src/sdl/SDL.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/VisualBoyAdvance/src/sdl/SDL.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/VisualBoyAdvance/src/sdl/SDL.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
// Copyright (C) 1999-2003 Forgotten
// Copyright (C) 2005-2006 Forgotten and the VBA development team
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// ... | 24.75 | 123 | 0.563102 | pdpdds |
9f41fbc29c1e407dd715c2789c22554486c643b4 | 265 | cpp | C++ | src/Gomoku/1win_result_show.cpp | HahnXia/GOMOKU | 52086bbb1fa2d6c59c5b05168c26c2fa6f155f70 | [
"MIT"
] | 1 | 2018-09-07T16:59:38.000Z | 2018-09-07T16:59:38.000Z | src/Gomoku/1win_result_show.cpp | HahnXia/GOMOKU | 52086bbb1fa2d6c59c5b05168c26c2fa6f155f70 | [
"MIT"
] | null | null | null | src/Gomoku/1win_result_show.cpp | HahnXia/GOMOKU | 52086bbb1fa2d6c59c5b05168c26c2fa6f155f70 | [
"MIT"
] | null | null | null | #include "1win_result_show.h"
#include "ui_win_result_show.h"
win_result_show::win_result_show(QWidget *parent) :
QDialog(parent),
ui(new Ui::win_result_show)
{
ui->setupUi(this);
}
win_result_show::~win_result_show()
{
delete ui;
}
| 17.666667 | 52 | 0.675472 | HahnXia |
9f4279322fe536526907b2bf244bdf0a3061dd2c | 20,410 | cc | C++ | src/api/ccapi/cinterface.cc | msalle/voms | 73f9db44c058f898ab8362a2e422a409ee468fde | [
"Apache-2.0"
] | 2 | 2016-09-15T16:29:03.000Z | 2020-08-03T13:14:09.000Z | src/api/ccapi/cinterface.cc | msalle/voms | 73f9db44c058f898ab8362a2e422a409ee468fde | [
"Apache-2.0"
] | 35 | 2015-01-16T15:22:13.000Z | 2022-03-06T15:23:14.000Z | src/api/ccapi/cinterface.cc | msalle/voms | 73f9db44c058f898ab8362a2e422a409ee468fde | [
"Apache-2.0"
] | 6 | 2015-01-23T10:48:02.000Z | 2022-03-20T22:36:52.000Z | /*********************************************************************
*
* Authors: Vincenzo Ciaschini - Vincenzo.Ciaschini@cnaf.infn.it
*
* Copyright (c) Members of the EGEE Collaboration. 2004-2010.
* See http://www.eu-egee.org/partners/ for details on the copyright holders.
*
* Licensed under the Apache Lice... | 21.759062 | 124 | 0.568839 | msalle |
9f4441daa8128d58899b789a474fffdef05030df | 379 | cpp | C++ | NKZX_NOI_OJ/P1122.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | 1 | 2021-04-05T16:26:00.000Z | 2021-04-05T16:26:00.000Z | NKZX_NOI_OJ/P1122.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | NKZX_NOI_OJ/P1122.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
#include<cstring>
int main(){
char s[241];int c,k;
scanf("%s%d",s,&k);c=strlen(s);
for(int i=0;i<k&&c>1;i++,c--){
int j=0;
for(int v=0;v<c-1;v++){
if(s[v]>s[v+1]){
j=v;break;
}
}
for(int v=j;v<c;v++){
s[v]=s... | 18.95 | 35 | 0.369393 | Rose2073 |
9f4aa00d5fc87410ffdaa3b6546a482a404a0f9d | 145,590 | inl | C++ | src/fonts/stb_font_arial_bold_31_latin_ext.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_arial_bold_31_latin_ext.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_arial_bold_31_latin_ext.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_bold_31_latin... | 70.367327 | 131 | 0.808874 | stetre |
9f4f6a5d1f20b126b98bf34924521add9ab8e6cc | 46 | cpp | C++ | macroslib/tests/expectations/return_result_with_vec.cpp | skeet70/rust_swig | f6c596df93a65ee9ea8c31954b7d3e178ac124cb | [
"BSD-3-Clause"
] | null | null | null | macroslib/tests/expectations/return_result_with_vec.cpp | skeet70/rust_swig | f6c596df93a65ee9ea8c31954b7d3e178ac124cb | [
"BSD-3-Clause"
] | null | null | null | macroslib/tests/expectations/return_result_with_vec.cpp | skeet70/rust_swig | f6c596df93a65ee9ea8c31954b7d3e178ac124cb | [
"BSD-3-Clause"
] | null | null | null | "std::variant<RustVecU8, PosErr> f1() const";
| 23 | 45 | 0.695652 | skeet70 |
9f5157409a68abda7577314571dae0ab4f6996b7 | 2,128 | cpp | C++ | Codejam/Round2/D.cpp | transcompany/Training | d9ff0454a1171a46a8b81af5024f76d362d8e547 | [
"MIT"
] | null | null | null | Codejam/Round2/D.cpp | transcompany/Training | d9ff0454a1171a46a8b81af5024f76d362d8e547 | [
"MIT"
] | null | null | null | Codejam/Round2/D.cpp | transcompany/Training | d9ff0454a1171a46a8b81af5024f76d362d8e547 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define repd(i, a, b) for (int i = (a) - 1; i >= 0; i--)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define sz(a) ((int)a.size())
int T, n, m, has[101][101];
string s[1010], ns[1010], ... | 21.494949 | 76 | 0.337876 | transcompany |
9f5636a2b43ff7a34b4fda35ddcf815b46010904 | 2,617 | hpp | C++ | include/codegen/include/RootMotion/FinalIK/InteractionTrigger_Range.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/RootMotion/FinalIK/InteractionTrigger_Range.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/RootMotion/FinalIK/InteractionTrigger_Range.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:17 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 43.616667 | 196 | 0.743217 | Futuremappermydud |
9f64ed17909437880e3b8c5d2278e3d38ef9f1c1 | 348 | cpp | C++ | MainBrain/test/ModelTest/SdCardTest/SdCardTest.cpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 10 | 2017-07-30T21:26:32.000Z | 2021-05-04T14:33:29.000Z | MainBrain/test/ModelTest/SdCardTest/SdCardTest.cpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 122 | 2017-07-30T15:55:55.000Z | 2019-05-19T20:29:13.000Z | MainBrain/test/ModelTest/SdCardTest/SdCardTest.cpp | smit-happens/YCP_EVOS | cecfa8aaa3c73945106786c44aa78d4fe872e3c3 | [
"MIT"
] | 3 | 2018-03-10T20:01:10.000Z | 2019-06-07T18:02:38.000Z | /** Handles the hardware level functions of the SdFat library
*
* SdCardTest.cpp
* Created 10-24-17 By: Smitty
*
* A longer description.
*/
#include "SdCardTest.hpp"
//FIXME: rip out all the demo code and put into functions
/**
* @brief SdCardTest constructor
*/
SdCardTest::SdCardTest(void)
{
storage... | 17.4 | 62 | 0.689655 | smit-happens |
9f6afac315b8bd421b0dd2bf6b60475f306f0261 | 762 | cpp | C++ | sources/Attributes.cpp | prfcto2/noName | e179d49282755039f2acb267931ef445aff5000b | [
"MIT"
] | 3 | 2019-08-05T13:33:01.000Z | 2022-02-14T12:55:18.000Z | sources/Attributes.cpp | prfcto2/noName | e179d49282755039f2acb267931ef445aff5000b | [
"MIT"
] | null | null | null | sources/Attributes.cpp | prfcto2/noName | e179d49282755039f2acb267931ef445aff5000b | [
"MIT"
] | null | null | null | # include <Attributes.hpp>
Attributes::Attributes(short unsigned health)
: m_health(health)
{
// empty
}
const short unsigned & Attributes::get_health() const
{
return m_health;
}
void Attributes::healted()
{
if(m_health < 3)
++m_health;
}
void Attributes::attacked()
{
if(m_health > 0)
--m_health;
... | 12.915254 | 53 | 0.675853 | prfcto2 |
9f6b6ec03a6301f97ad8298fecfc3f569de93422 | 36,843 | cpp | C++ | AircraftDynamicsTestFramework/TestFrameworkDynamics.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TestFrameworkDynamics.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TestFrameworkDynamics.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | // ****************************************************************************
// NOTICE
//
// This is the copyright work of The MITRE Corporation, and was produced
// for the U. S. Government under Contract Number DTFAWA-10-C-00080, and
// is subject to Federal Aviation Administration Acquisition Management
// System... | 32.954383 | 225 | 0.689195 | sbowman-mitre |
9f6dfae2ebfb56c3f64ebb8b50fb71ea38ddc117 | 574 | cpp | C++ | All_code/110.cpp | jnvshubham7/cpp-programming | 7d00f4a3b97b9308e337c5d3547fd3edd47c5e0b | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | All_code/110.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | All_code/110.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | // #include <bits/stdc++.h>
// using namespace std;
// int addTwoInts(int arg1, int arg2)
// {
// int sum = (arg1*arg1 + arg2*arg2);
// return sum;
// }
// int main() {
// int a,b;
// cin>>a>>b;
// int answer = addTwoInts(a,b);
// cout <<answer << endl;
// return 0;
// }
#include <... | 14 | 44 | 0.512195 | jnvshubham7 |
9f711ed5115a89fc96459678399e8a640550e1e6 | 2,927 | cpp | C++ | engine/backends/vulkan_deprecated/extra_api.cpp | thomtl/Benzene | 603f924a2471a115144b58af27028f6d913fc42a | [
"MIT"
] | null | null | null | engine/backends/vulkan_deprecated/extra_api.cpp | thomtl/Benzene | 603f924a2471a115144b58af27028f6d913fc42a | [
"MIT"
] | null | null | null | engine/backends/vulkan_deprecated/extra_api.cpp | thomtl/Benzene | 603f924a2471a115144b58af27028f6d913fc42a | [
"MIT"
] | 1 | 2020-04-12T18:52:20.000Z | 2020-04-12T18:52:20.000Z | #include "extra_api.hpp"
#pragma region VK_KHR_push_descriptor
static PFN_vkCmdPushDescriptorSetKHR _vkCmdPushDescriptorSetKHR;
extern "C" void vkCmdPushDescriptorSetKHR(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set, uint32_t descriptorWriteCount, const Vk... | 56.288462 | 229 | 0.863683 | thomtl |
9f7fd40c7e7bb9fb8eca7c082b7f4dc9acc60411 | 209,500 | cpp | C++ | ModelTarget_Vuforia/Build/ModelTarget_Hololens/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_12Table.cpp | GooDtoLivE/ModelTarget-Vuforia-iOS | b3c0d70a63d5ebcea5893f377e4f3bb42ab8f6ba | [
"MIT"
] | null | null | null | ModelTarget_Vuforia/Build/ModelTarget_Hololens/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_12Table.cpp | GooDtoLivE/ModelTarget-Vuforia-iOS | b3c0d70a63d5ebcea5893f377e4f3bb42ab8f6ba | [
"MIT"
] | 1 | 2020-04-01T15:06:47.000Z | 2020-04-01T15:07:19.000Z | ModelTarget_Vuforia/Build/ModelTarget_Hololens/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_12Table.cpp | GooDtoLivE/ModelTarget-Vuforia-iOS | b3c0d70a63d5ebcea5893f377e4f3bb42ab8f6ba | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... | 63.273935 | 271 | 0.895928 | GooDtoLivE |
9f8077fae1b2cdc4bd76bc6e5c667e3dce2c4053 | 173 | cpp | C++ | lib/sfml/src/SceneMenu/event/SceneMenuEventButtonPlay.cpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | lib/sfml/src/SceneMenu/event/SceneMenuEventButtonPlay.cpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | lib/sfml/src/SceneMenu/event/SceneMenuEventButtonPlay.cpp | Brukols/Epitech-Arcade | 5443d28169e9494f0c77abac23f4139e60b46365 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** Arcade
** File description:
** EventButtonPlay
*/
#include "sfml/SceneMenu.hpp"
void arc::SceneMenu::eventButtonPlay()
{
_eventPlay();
} | 13.307692 | 38 | 0.682081 | Brukols |
9f83961ac7b5cb4a152c19a8e10265ed4a67ecb1 | 6,681 | hh | C++ | src/ds++/Check_Strings.hh | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/ds++/Check_Strings.hh | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/ds++/Check_Strings.hh | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
/*!
* \file ds++/Check_Strings.hh
* \author John McGhee
* \date Sun Jan 30 14:57:09 2000 *
* \brief Provides some utilities to check containers of strings.
* \note Copyright (C) 2016-2019 Triad National Security, LLC.
* ... | 35.163158 | 80 | 0.633737 | rspavel |
9f84275dd080db29201511d2b7d6aa9aecf081ef | 685 | cpp | C++ | test/shared_library_test/test_shared_class_use.cpp | kuba-kazimierczak/kaguya | 0c00444139cdd55f34e0c1cc317d0d02fca5b1d0 | [
"BSL-1.0"
] | 336 | 2015-12-11T14:14:51.000Z | 2022-03-27T13:36:03.000Z | test/shared_library_test/test_shared_class_use.cpp | roctomato/kaguya | 38ca7e1d894c138e454bbe5c89048bdd5091545a | [
"BSL-1.0"
] | 99 | 2016-01-21T19:44:07.000Z | 2022-02-04T19:13:13.000Z | test/shared_library_test/test_shared_class_use.cpp | roctomato/kaguya | 38ca7e1d894c138e454bbe5c89048bdd5091545a | [
"BSL-1.0"
] | 74 | 2016-01-05T17:04:17.000Z | 2022-03-03T05:17:30.000Z | #include "kaguya/kaguya.hpp"
#include "../test_util.hpp"
#include "test_shared_class.hpp"
namespace {
int A_fn(const A &a) { return a.data; }
int B_fn(const B &) { return 22; }
int DerivedB_fn(const DerivedB &) { return 33; }
A create_A() { return A(1); }
}
#if defined(_WIN32) || defined(_WIN64)
extern "C" __declspec... | 23.62069 | 53 | 0.684672 | kuba-kazimierczak |
9f855949ce0b732cd4e893afbd057be2abcd892f | 682 | cpp | C++ | ROHIT KUMAR SINGH (Hacktober Contribution)/CODEFORCES Questions Solutions (CP)/A_Ilya_and_Bank_Account.cpp | Chinmay0896/Hacktoberfest-KIIT-2020 | da6af815100ea74aa4f1d2e6d2a453161e10471c | [
"MIT"
] | 8 | 2019-10-05T18:40:46.000Z | 2019-10-25T16:26:41.000Z | ROHIT KUMAR SINGH (Hacktober Contribution)/CODEFORCES Questions Solutions (CP)/A_Ilya_and_Bank_Account.cpp | Chinmay0896/Hacktoberfest-KIIT-2020 | da6af815100ea74aa4f1d2e6d2a453161e10471c | [
"MIT"
] | 13 | 2020-09-30T19:27:29.000Z | 2021-09-08T02:31:48.000Z | ROHIT KUMAR SINGH (Hacktober Contribution)/CODEFORCES Questions Solutions (CP)/A_Ilya_and_Bank_Account.cpp | Chinmay0896/Hacktoberfest-KIIT-2020 | da6af815100ea74aa4f1d2e6d2a453161e10471c | [
"MIT"
] | 84 | 2020-09-30T19:00:05.000Z | 2021-09-30T04:17:34.000Z | #include<iostream>
#include<algorithm>
#include<vector>
#include<string.h>
#include<set>
#include<cmath>
#include<sstream>
#define LL long long
using namespace std;
int main()
{
int n;
cin>>n;
if(n>=0)
{
cout<<n<<endl;
}
else
{
string s = to_string(n);
if(s.length()... | 16.238095 | 51 | 0.428152 | Chinmay0896 |
9f893a41d7edc2ba86d530380d52ecfa2782d30c | 10,600 | cpp | C++ | system/spawn.cpp | dnartz/PvZ-Emulator | 3954f36f4e0f22cee07d6a86003d3892f0938b8b | [
"BSD-2-Clause"
] | 1 | 2022-03-29T23:49:55.000Z | 2022-03-29T23:49:55.000Z | system/spawn.cpp | dnartz/PvZ-Emulator | 3954f36f4e0f22cee07d6a86003d3892f0938b8b | [
"BSD-2-Clause"
] | 2 | 2021-03-10T18:17:07.000Z | 2021-05-11T13:59:22.000Z | system/spawn.cpp | dnartz/PvZ-Emulator | 3954f36f4e0f22cee07d6a86003d3892f0938b8b | [
"BSD-2-Clause"
] | 1 | 2021-10-18T18:29:47.000Z | 2021-10-18T18:29:47.000Z | #include <cassert>
#include <array>
#include <vector>
#include <algorithm>
#include <utility>
#include "spawn.h"
#include "util.h"
namespace pvz_emulator::system {
using namespace pvz_emulator::object;
const unsigned int spawn::MAX_WAVES = 20;
const unsigned int spawn::MAX_ZOMBIES = 50;
const unsigned int spawn::MA... | 22.795699 | 82 | 0.659057 | dnartz |
9f8abd387717dbf7c832faa2f440a1c3de3e2ab3 | 1,965 | cpp | C++ | tests/gates/gates.cpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | tests/gates/gates.cpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | tests/gates/gates.cpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | /*-------------------------------------------------------------------------------------------------
| This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*------------------------------------------------------------------------------------------------*/
#include <catch.hpp>
#in... | 35.089286 | 99 | 0.606616 | AriJordan |
9f91f81c27ef6037e356d511150c7c0e27450b7e | 4,200 | cpp | C++ | test/PidTest.cpp | nakulpatel94/AcmeAckermanControl | 64abb351b6fc41362939109dd0e27ce2cbed0c60 | [
"BSD-3-Clause"
] | 1 | 2021-05-03T09:01:02.000Z | 2021-05-03T09:01:02.000Z | test/PidTest.cpp | nakulpatel94/AcmeAckermanControl | 64abb351b6fc41362939109dd0e27ce2cbed0c60 | [
"BSD-3-Clause"
] | null | null | null | test/PidTest.cpp | nakulpatel94/AcmeAckermanControl | 64abb351b6fc41362939109dd0e27ce2cbed0c60 | [
"BSD-3-Clause"
] | 2 | 2019-12-08T03:50:22.000Z | 2020-03-27T13:00:43.000Z | /**
* BSD 3-Clause License
*
* Copyright (c) 2019, Ishan Patel, Nakul Patel, Suyash Yeotikar
* 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 ret... | 34.146341 | 88 | 0.689286 | nakulpatel94 |
7a0596d2103b2067be40a96fffc072bea6d78a40 | 11,612 | cc | C++ | dust3d/data/dust3d_vertical_png.cc | huxingyi/tubetube | 6a73a7e068610b58066457f5446cf1ebc3427a36 | [
"MIT"
] | 1 | 2022-03-23T23:01:39.000Z | 2022-03-23T23:01:39.000Z | dust3d/data/dust3d_vertical_png.cc | huxingyi/tubetube | 6a73a7e068610b58066457f5446cf1ebc3427a36 | [
"MIT"
] | null | null | null | dust3d/data/dust3d_vertical_png.cc | huxingyi/tubetube | 6a73a7e068610b58066457f5446cf1ebc3427a36 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2022 Jeremy HU <jeremy-at-dust3d dot org>. 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 without restriction, including without limi... | 70.375758 | 83 | 0.650792 | huxingyi |
7a05e5dcef1237acfa05677a1c65d7af57710b60 | 861 | cpp | C++ | CrazyEights/Player.cpp | evrenkaya/CrazyEights | 8df96540ef2fa84d7e64dffe81fc0663df6ca4de | [
"MIT"
] | null | null | null | CrazyEights/Player.cpp | evrenkaya/CrazyEights | 8df96540ef2fa84d7e64dffe81fc0663df6ca4de | [
"MIT"
] | null | null | null | CrazyEights/Player.cpp | evrenkaya/CrazyEights | 8df96540ef2fa84d7e64dffe81fc0663df6ca4de | [
"MIT"
] | null | null | null | #include "Player.h"
#include <iostream>
Player::Player(IOManager* io, std::string name) : mIOManager(io), mName(name)
{
}
Player::~Player()
{
}
void Player::addCard(Card* card)
{
mHand.addCard(card);
}
Card* Player::removeCard(int i)
{
return mHand.removeCard(i);
}
Card* Player::getCard(int i) const
{
return m... | 14.844828 | 90 | 0.681765 | evrenkaya |
7a0690905730aa097ffc9814d1f69a07fc13955e | 333 | cpp | C++ | MajorityElement.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | 3 | 2017-11-27T03:01:50.000Z | 2021-03-13T08:14:00.000Z | MajorityElement.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | MajorityElement.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | class Solution {
public:
int majorityElement(vector<int>& nums) {
int ans = -1;
int cnt = 0;
for (auto num : nums) {
if (cnt == 0 || ans == num) {
cnt++;
ans = num;
} else {
cnt--;
}
}
return ... | 20.8125 | 44 | 0.345345 | yplusplus |
7a09b08ac7cc890e00326d813dbfa3acd94566e7 | 1,675 | cpp | C++ | python/src/bindings.cpp | ipc-sim/ipc-toolk | 81873d0288810e30166d871419da4104329860e3 | [
"MIT"
] | 61 | 2020-08-04T21:08:25.000Z | 2022-02-25T02:24:31.000Z | python/src/bindings.cpp | dbelgrod/ipc-toolkit | 0b7ca9b5f867db63bd68dd02ce54a9d00b0fc337 | [
"MIT"
] | 2 | 2020-10-12T05:54:40.000Z | 2021-10-10T18:39:30.000Z | python/src/bindings.cpp | dbelgrod/ipc-toolkit | 0b7ca9b5f867db63bd68dd02ce54a9d00b0fc337 | [
"MIT"
] | 7 | 2020-11-26T12:47:38.000Z | 2022-03-25T04:55:49.000Z | #include <pybind11/pybind11.h>
namespace py = pybind11;
void define_barrier_functions(py::module_& m);
void define_broad_phase_functions(py::module_& m);
void define_collision_candidate_classes(py::module_& m);
void define_collision_constraint_classes(py::module_& m);
void define_distance_type_functions(py::module... | 31.603774 | 62 | 0.807164 | ipc-sim |
7a111857e95095bf5b2824001c105ca5a28b75ff | 505 | hpp | C++ | higan/fc/scheduler/scheduler.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/fc/scheduler/scheduler.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/fc/scheduler/scheduler.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | struct Scheduler : property<Scheduler> {
enum class SynchronizeMode : uint { None, PPU, All } sync;
enum class ExitReason : uint { UnknownEvent, FrameEvent, SynchronizeEvent };
auto enter() -> void;
auto exit(ExitReason) -> void;
auto power() -> void;
auto reset() -> void;
cothread_t host_thread; //pr... | 29.705882 | 78 | 0.710891 | ameer-bauer |
7a1afec22610e6ff0559b7817329ba054f706278 | 12,037 | hpp | C++ | src/org/apache/poi/ss/usermodel/ShapeTypes.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/ShapeTypes.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/ShapeTypes.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/usermodel/ShapeTypes.java
#pragma once
#include <fwd-POI.hpp>
#include <org/apache/poi/ss/usermodel/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class poi::ss::usermodel::ShapeTypes
: public virtual ::java::lang::Object
{
public:
typede... | 55.470046 | 76 | 0.737393 | pebble2015 |
7a1b604be24ce61dc1521f1f07453f3692fb7fc2 | 5,243 | cpp | C++ | WildMagic4/LibFoundation/Intersection/Wm4IntrRay2Ray2.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | WildMagic4/LibFoundation/Intersection/Wm4IntrRay2Ray2.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | WildMagic4/LibFoundation/Intersection/Wm4IntrRay2Ray2.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4FoundationPCH.h"
#include "Wm4IntrRay2Ray... | 29.96 | 79 | 0.486363 | rms80 |
7a1bbfc4708fa9afe9e33bb5be5536d8a9ed4380 | 1,716 | cpp | C++ | httplite/HttpClient.cpp | michaelsballoni/httplite | 25ab914157e2b690f0d5acd0bb5a96a0d8f1df52 | [
"Apache-2.0"
] | null | null | null | httplite/HttpClient.cpp | michaelsballoni/httplite | 25ab914157e2b690f0d5acd0bb5a96a0d8f1df52 | [
"Apache-2.0"
] | null | null | null | httplite/HttpClient.cpp | michaelsballoni/httplite | 25ab914157e2b690f0d5acd0bb5a96a0d8f1df52 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "HttpClient.h"
#include "HeaderReader.h"
namespace httplite
{
HttpClient::HttpClient(const std::string& server, uint16_t port)
: m_socket(INVALID_SOCKET)
, m_server(server)
, m_port(port)
, m_isConnected(false)
{
}
HttpClient::~HttpClient()
{
Disconnect();
}
void HttpClient... | 20.428571 | 104 | 0.703963 | michaelsballoni |
7a1f9bacd593cd8576472cf2c62606b7ffba9820 | 319 | cpp | C++ | variadicformat/src/util.cpp | dsp-testing/blog | b3454d913ee9ae585facf67009b23ea1a8685466 | [
"MIT"
] | 109 | 2015-01-11T19:37:47.000Z | 2022-03-24T11:23:15.000Z | variadicformat/src/util.cpp | dsp-testing/blog | b3454d913ee9ae585facf67009b23ea1a8685466 | [
"MIT"
] | 5 | 2015-02-21T05:18:54.000Z | 2019-10-13T19:04:35.000Z | variadicformat/src/util.cpp | dsp-testing/blog | b3454d913ee9ae585facf67009b23ea1a8685466 | [
"MIT"
] | 275 | 2015-01-02T14:26:13.000Z | 2022-03-28T07:37:28.000Z | #include "util.h"
namespace util {
void replace_all(std::string& str, const std::string& from, const std::string& to)
{
size_t pos = 0;
while ((pos = str.find(from, pos)) != std::string::npos) {
str.replace(pos, from.length(), to);
pos += to.length();
}
}
} | 24.538462 | 86 | 0.523511 | dsp-testing |
7a22c2e4ec8d21e9a7f8cb255c3ae761a0c4a0fe | 477 | cpp | C++ | src/message/RequestVote.cpp | taroyuyu/KakaKV | 47d0c36f6a77959d02c30b955ca5fbc8999d24d6 | [
"MIT"
] | 1 | 2021-09-27T11:41:12.000Z | 2021-09-27T11:41:12.000Z | src/message/RequestVote.cpp | taroyuyu/KakaKV | 47d0c36f6a77959d02c30b955ca5fbc8999d24d6 | [
"MIT"
] | null | null | null | src/message/RequestVote.cpp | taroyuyu/KakaKV | 47d0c36f6a77959d02c30b955ca5fbc8999d24d6 | [
"MIT"
] | null | null | null | //
// Created by 凌宇 on 2021/9/20.
//
#include <message/RequestVote.h>
namespace kakakv {
namespace message {
std::ostream & operator<<(std::ostream & cout,RequestVote & request){
cout<<"RequestVote{candidateId="<<request.candidateId
<<",lastLogIndex="<<request.lastLogIndex
... | 26.5 | 77 | 0.536688 | taroyuyu |
7a22eaf9855931aee8723449fd0abafd83553d76 | 288 | hh | C++ | src/phantasm-renderer/default_config.hh | project-arcana/phantasm-renderer | dd6f9af8d95f227f88c81194dea4a893761cac62 | [
"MIT"
] | 2 | 2020-10-22T18:09:11.000Z | 2020-12-09T13:53:46.000Z | src/phantasm-renderer/default_config.hh | project-arcana/phantasm-renderer | dd6f9af8d95f227f88c81194dea4a893761cac62 | [
"MIT"
] | 1 | 2021-04-29T08:16:49.000Z | 2021-04-30T07:54:25.000Z | src/phantasm-renderer/default_config.hh | project-arcana/phantasm-renderer | dd6f9af8d95f227f88c81194dea4a893761cac62 | [
"MIT"
] | null | null | null | #pragma once
#include <phantasm-hardware-interface/types.hh>
namespace pr
{
/**
* This object is implicitly convertible to default configurations for most types
*/
static constexpr struct default_config_t
{
operator phi::pipeline_config() const { return {}; }
} default_config;
}
| 19.2 | 81 | 0.75 | project-arcana |
7a237f3e6b5590183321fc4687ac9d6445091a48 | 526 | cpp | C++ | lib/chpmv.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 6 | 2015-12-13T09:10:11.000Z | 2022-02-09T23:18:22.000Z | lib/chpmv.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | lib/chpmv.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 2 | 2019-02-01T06:46:36.000Z | 2022-02-09T23:18:24.000Z | //
// chpmv.cpp
// Linear Algebra Template Library
//
// Created by Rodney James on 1/1/13.
// Copyright (c) 2013 University of Colorado Denver. All rights reserved.
//
#include "blas.h"
#include "hpmv.h"
using LATL::HPMV;
using std::complex;
int chpmv_(char& uplo, int &n, complex<float> &alpha, complex<float> *A... | 25.047619 | 154 | 0.663498 | langou |
7a2721be3f44a083a14ec63035f84a9a16e8f6dd | 961 | cpp | C++ | graph-source-code/417-C/6563535.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/417-C/6563535.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/417-C/6563535.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <vector>
#include <map>
#define mod 1000000007
using namespace std;
int n,k;
int win[1003];
struct ans
{
int x,y;
};
ans a[1000003];
int coun;
int main()
{
scanf("%d %d"... | 17.160714 | 41 | 0.371488 | AmrARaouf |
7a27fee7e1fb61c23ed93a7693a4b630580950a6 | 2,854 | tcc | C++ | hackt_docker/hackt/src/util/memory/fixed_pool_chunk.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/memory/fixed_pool_chunk.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/util/memory/fixed_pool_chunk.tcc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "util/memory/fixed_pool_chunk.tcc"
Method definitions for chunk-allocated memory pool.
$Id: fixed_pool_chunk.tcc,v 1.1 2007/02/21 17:00:28 fang Exp $
*/
#ifndef __UTIL_MEMORY_FIXED_POOL_CHUNK_TCC__
#define __UTIL_MEMORY_FIXED_POOL_CHUNK_TCC__
#include "util/memory/fixed_pool_chunk.hh"
#include "util/mem... | 30.042105 | 79 | 0.613525 | broken-wheel |
7a280b241a5268b80982f792d7daffa00a887cc6 | 2,253 | cpp | C++ | problems/minimal_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 5 | 2021-05-17T12:32:42.000Z | 2021-12-12T21:09:55.000Z | problems/minimal_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | null | null | null | problems/minimal_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 1 | 2021-05-13T20:29:57.000Z | 2021-05-13T20:29:57.000Z | #include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
string minimalSum(vector<int> &, int);
int main() {
/**
* In order to add rearranged orders of the digits together such
* that the sum is minimal, we will use a Max Heap to maintain
* what digits to be ... | 28.884615 | 116 | 0.579228 | oishikm12 |
7a283b69d0a1181419bcb08c0b80f12e3b2b89e4 | 7,573 | cpp | C++ | src/prefixdfamem.cpp | dmitriy-philimonov/oak | 4a0c8eb4b7529265d61172f6ad9db7b490fd4c51 | [
"Apache-2.0"
] | null | null | null | src/prefixdfamem.cpp | dmitriy-philimonov/oak | 4a0c8eb4b7529265d61172f6ad9db7b490fd4c51 | [
"Apache-2.0"
] | null | null | null | src/prefixdfamem.cpp | dmitriy-philimonov/oak | 4a0c8eb4b7529265d61172f6ad9db7b490fd4c51 | [
"Apache-2.0"
] | null | null | null | #include "prefixdfamem.h"
#include <cstring>
#include <iostream>
#include <iomanip>
namespace NPrefix {
namespace NMemoryOptimized {
ui8 TDfa::DoXLAT(ui8 symbol) noexcept {
if (HAS_XLAT[symbol])
return XLAT[symbol];
ui8 id = NextId++;
XLAT[symbol] = id;
HAS_XLAT[symbol]... | 34.579909 | 101 | 0.496765 | dmitriy-philimonov |
7a291ec9b5c52e88cf3c56889131df0efeb899d1 | 4,807 | hpp | C++ | routing_algorithms/dijkstra.hpp | cypox/devacus-backend | ba3d2ca8d72843560c4ff754780482dfe8a67c6b | [
"BSD-2-Clause"
] | null | null | null | routing_algorithms/dijkstra.hpp | cypox/devacus-backend | ba3d2ca8d72843560c4ff754780482dfe8a67c6b | [
"BSD-2-Clause"
] | null | null | null | routing_algorithms/dijkstra.hpp | cypox/devacus-backend | ba3d2ca8d72843560c4ff754780482dfe8a67c6b | [
"BSD-2-Clause"
] | null | null | null | #ifndef DIJKSTRA_HPP
#define DIJKSTRA_HPP
#include <boost/assert.hpp>
#include "routing_base.hpp"
#include "../DynamicServer/DataStructures/InternalDataFacade.h"
#include "../data_structures/search_engine_data.hpp"
#include "../Util/integer_range.hpp"
#include "../Util/timing_util.hpp"
#include "../typedefs.h"
templ... | 32.924658 | 117 | 0.70543 | cypox |
7a2c6425383e7b15e088fa773c4b76b12ab49f28 | 1,128 | cpp | C++ | hj/composition/Player.cpp | hustlic/cppstudy | ee007bbfb344845bc48792f495cdfe4cfbe9ba22 | [
"Apache-2.0"
] | null | null | null | hj/composition/Player.cpp | hustlic/cppstudy | ee007bbfb344845bc48792f495cdfe4cfbe9ba22 | [
"Apache-2.0"
] | null | null | null | hj/composition/Player.cpp | hustlic/cppstudy | ee007bbfb344845bc48792f495cdfe4cfbe9ba22 | [
"Apache-2.0"
] | null | null | null | /* *************************************************
* | | | | | | |/ ____|__ __| | | (_)
* | |__| | | | | (___ | | | | _ ___
* | __ | | | |\___ \ | | | | | | / __|
* | | | | |__| |____) | | | | | | | | (__
* |_| |_|\____/|_____/ |_| |_| |_| \___|
*
* ***************... | 21.692308 | 63 | 0.434397 | hustlic |
7a359c9b2020222993eac7b1f3e72eb18bfdbcd0 | 10,534 | hpp | C++ | Nacro/SDK/FN_ObjectivesPage_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_ObjectivesPage_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_ObjectivesPage_classes.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
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass ObjectivesPage.Obj... | 169.903226 | 644 | 0.776058 | Milxnor |
7a39d692a83407f9958b9bbabc03ce31fb198ed9 | 1,143 | cpp | C++ | practice/sort/merge.cpp | ja-ho/swfc | 1aad671199f14c69228430228b161b4f7a09c4f7 | [
"MIT"
] | null | null | null | practice/sort/merge.cpp | ja-ho/swfc | 1aad671199f14c69228430228b161b4f7a09c4f7 | [
"MIT"
] | null | null | null | practice/sort/merge.cpp | ja-ho/swfc | 1aad671199f14c69228430228b161b4f7a09c4f7 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define swap(a, b) {int t; t = a; a = b; b = t;}
void merge_sort(int *arr, int size);
int main() {
int size;
int *arr;
srand((unsigned int)time(NULL));
scanf("%d", &size);
arr = (int *)malloc(sizeof(int) * size);
for (int i = 0; i < size; i++) {
arr[i... | 19.706897 | 51 | 0.534558 | ja-ho |
7a3c80efc439b64d0a010b228281e4f0d9ee027e | 2,418 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_GetUnqlNameAsDtor.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_GetUnqlNameAsDtor.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_GetUnqlNameAsDtor.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_GetUnqlNameAsDtor.cpp
//
#include "smtc_GetUnqlNameAsDtor.h"
// semantic
#include "smtc_BaseNameVisitor.h"
#include "smtc_CreateDtorBaseName.h"
#include "smtc_CreateNonTmplName.h"
#include "smtc_CreateTmplName.h"
#include "smtc_IdentBaseName.h"
#include "smtc_NameVisitor.h"
#include "smtc_NonTmplName.h"
#inclu... | 22.183486 | 119 | 0.717535 | SuperDizor |
7a4156f9bb7f0723e6e4370e4d821f0c59e5f684 | 1,096 | cpp | C++ | DFRobot_gxy.cpp | ghjklzx/DFRobot_gxy | 52f2fbe11a4f955f47cba6454287d2af1a86c89b | [
"MIT"
] | null | null | null | DFRobot_gxy.cpp | ghjklzx/DFRobot_gxy | 52f2fbe11a4f955f47cba6454287d2af1a86c89b | [
"MIT"
] | null | null | null | DFRobot_gxy.cpp | ghjklzx/DFRobot_gxy | 52f2fbe11a4f955f47cba6454287d2af1a86c89b | [
"MIT"
] | null | null | null | /*!
* @file DFRobot_gxy.h
* @brief 定义DFRobot_gxy 类的基础结构,基础方法的实现
*
* @copyright Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
* @licence The MIT License (MIT)
* @author [Arya](xue.peng@dfrobot.com)
* @version V1.0
* @eGDAte 2019-07-28
* @get from https://www.dfrobot.com
* @url https://git... | 19.22807 | 74 | 0.664234 | ghjklzx |
7a4271866b15efe0d8fa35fa66f92d1e40ac09d5 | 559 | hpp | C++ | code/src/utility/intrinsics.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 3 | 2020-04-29T14:55:58.000Z | 2020-08-20T08:43:24.000Z | code/src/utility/intrinsics.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 1 | 2022-03-12T11:37:46.000Z | 2022-03-12T20:17:38.000Z | code/src/utility/intrinsics.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | null | null | null |
#ifndef UTILITY_INTRINSICS_HPP
#define UTILITY_INTRINSICS_HPP
#if defined(_MSC_VER)
# include <intrin.h>
#endif
#if defined(__GNUG__)
# define intrinsic_likely(x) __builtin_expect(!!(x), 1)
#else
# define intrinsic_likely(x) !!(x)
#endif
/**
* Hint to the compiler that this path will never be reached.
*/
#if defi... | 20.703704 | 61 | 0.753131 | shossjer |
7a43f5407499cc5e5938b2577bdb38d2f2b15440 | 2,668 | hpp | C++ | src/graphics/vulkan/GraphicsPipeline.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null | src/graphics/vulkan/GraphicsPipeline.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null | src/graphics/vulkan/GraphicsPipeline.hpp | Galhad/firestorm | 3c1584b1e5b95f21d963b9cf226f6ec1a469d7af | [
"MIT"
] | null | null | null |
#ifndef FIRESTORM_GRAPHICSPIPELINE_HPP
#define FIRESTORM_GRAPHICSPIPELINE_HPP
#include "Shader.hpp"
#include "SwapChain.hpp"
#include "RenderPass.hpp"
#include "DepthImage.hpp"
#include <vulkan/vulkan.h>
#include <memory>
namespace fs::graphics
{
class GraphicsPipeline
{
public:
GraphicsPipeline();
virtua... | 35.105263 | 134 | 0.788231 | Galhad |
7a4876acc763ad397bd4258809ef7f853793dc29 | 10,748 | cpp | C++ | obs-studio/libobs-d3d11/d3d11-texture2d.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/libobs-d3d11/d3d11-texture2d.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | obs-studio/libobs-d3d11/d3d11-texture2d.cpp | noelemahcz/libobspp | 029472b973e5a1985f883242f249848385df83a3 | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (C) 2013 by Hugh Bailey <obs.jim@gmail.com>
This program 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, e... | 28.136126 | 79 | 0.690175 | noelemahcz |
7a4988d3fc7ec5c0babc0f6f39cab718549abae9 | 905 | cc | C++ | libs/xmi/legacy-test-xmi.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xmi/legacy-test-xmi.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xmi/legacy-test-xmi.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::XMI: test-xmi.cc
//
// Test harness for ObTools XMI reader
//
// Copyright (c) 2003 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//========================================... | 20.111111 | 76 | 0.468508 | sandtreader |
7a4a08b3ca9e32900eb540bfb2fe90a757a42eaf | 1,356 | cpp | C++ | LeetCode/DynamicProgramming/WordBreak.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 3 | 2021-07-26T15:58:45.000Z | 2021-09-08T14:55:11.000Z | LeetCode/DynamicProgramming/WordBreak.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | null | null | null | LeetCode/DynamicProgramming/WordBreak.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 2 | 2021-05-31T11:27:59.000Z | 2021-10-03T13:26:00.000Z | /*
* LeetCode 139 Word Break
* Medium
* Jiawei Wang
* 2021 8.24
*/
#include <vector>
#include <string>
#include <unordered_map>
using namespace::std;
// catsandog
// cats dog sand and cat
//
// 1. dog + Break(catsan)
// 2. since catsan is not breakable return false
class Solution {
public:
// DP (true and... | 21.870968 | 86 | 0.635693 | a4org |
7a4cbd4d6b56454eb9fd1e51bd87fb6322a6318d | 800 | hpp | C++ | dialogs/newGame/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | null | null | null | dialogs/newGame/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | 26 | 2020-05-15T14:38:08.000Z | 2021-06-28T18:26:53.000Z | dialogs/newGame/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | null | null | null | class AS_newGameMenu {
idd=1601;
movingenable=false;
class controls
{
AS_DIALOG(9,"Configure new game", "[] spawn AS_fnc_UI_newGame_close;");
BTN_L(1,-1,"Rebel against the West", "", "[""east""] call AS_fnc_UI_newGame_update;");
BTN_R(1,-1,"Rebel against the East", "", "[""west""] call AS_fnc_UI_newGame_update;")... | 23.529412 | 110 | 0.6525 | Kortonki |
7a53d0bab8160aa2be5a6edb7cb89d8df0dd7f0f | 2,137 | cpp | C++ | Framework/Common/Image.cpp | lishaojiang/GameEngineFromScratch | 7769d3916a9ffabcfdaddeba276fdf964d8a86ee | [
"MIT"
] | 1,217 | 2017-08-18T02:41:11.000Z | 2022-03-30T01:48:46.000Z | Framework/Common/Image.cpp | lishaojiang/GameEngineFromScratch | 7769d3916a9ffabcfdaddeba276fdf964d8a86ee | [
"MIT"
] | 16 | 2017-09-05T15:04:37.000Z | 2021-09-09T13:59:38.000Z | Framework/Common/Image.cpp | lishaojiang/GameEngineFromScratch | 7769d3916a9ffabcfdaddeba276fdf964d8a86ee | [
"MIT"
] | 285 | 2017-08-18T04:53:55.000Z | 2022-03-30T00:02:15.000Z | #include "Image.hpp"
using namespace std;
namespace My {
Image::Image(Image&& rhs) noexcept {
Width = rhs.Width;
Height = rhs.Height;
data = rhs.data;
bitcount = rhs.bitcount;
pitch = rhs.pitch;
data_size = rhs.data_size;
compressed = rhs.compressed;
is_float = rhs.is_float;
compre... | 26.382716 | 78 | 0.533926 | lishaojiang |
7a575c040a41f49d73f4c67edff8dca3fbb6d665 | 2,002 | hpp | C++ | Include/multi_index/detail/base_type.hpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | Include/multi_index/detail/base_type.hpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | Include/multi_index/detail/base_type.hpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | /* Copyright 2003-2013 Joaquin M Lopez Munoz.
* 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)
*
* See http://www.boost.org/libs/multi_index for library home page.
*/
#pragma once
#include <brigand/functions/... | 26.342105 | 81 | 0.737762 | pablokawan |
7a57dba24c6784f4e2e3561debb3f5630753149a | 247 | cpp | C++ | src/square_attacked.cpp | superchessengine/libchess | a169b5efe61bb8ce53eab7edf5445a78997fec80 | [
"MIT"
] | 4 | 2021-05-27T01:40:06.000Z | 2022-02-28T12:14:41.000Z | src/square_attacked.cpp | superchessengine/libchess | a169b5efe61bb8ce53eab7edf5445a78997fec80 | [
"MIT"
] | 4 | 2021-09-02T16:28:46.000Z | 2022-03-29T13:35:41.000Z | src/square_attacked.cpp | superchessengine/libchess | a169b5efe61bb8ce53eab7edf5445a78997fec80 | [
"MIT"
] | 4 | 2021-09-07T17:04:04.000Z | 2022-01-17T20:03:09.000Z | #include "libchess/movegen.hpp"
#include "libchess/position.hpp"
namespace libchess {
[[nodiscard]] bool Position::square_attacked(const Square sq, const Side s) const noexcept {
return !attackers(sq, s).empty();
}
} // namespace libchess
| 22.454545 | 92 | 0.728745 | superchessengine |
7a590e2b56992d79c3e13332d48838031cfc061f | 1,917 | hpp | C++ | include/codegen/include/RootMotion/FinalIK/IKSolver_Node.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/RootMotion/FinalIK/IKSolver_Node.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/RootMotion/FinalIK/IKSolver_Node.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:16 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: RootMotion.FinalIK.IKSolver/Point
#include "RootMotion/FinalIK/IKSolver_Point.hpp"
#incl... | 37.588235 | 100 | 0.703704 | Futuremappermydud |
7a5b3a5afb3aaf2bc8fdea578492e3e8c92210e3 | 3,575 | cpp | C++ | cpp/src/piece.cpp | oseiskar/3dtris | 16f60c10b8496db1a584c0eaf55cc9959bffab3a | [
"Apache-2.0"
] | 4 | 2018-07-06T21:03:00.000Z | 2022-02-10T10:17:21.000Z | cpp/src/piece.cpp | oseiskar/3dtris | 16f60c10b8496db1a584c0eaf55cc9959bffab3a | [
"Apache-2.0"
] | null | null | null | cpp/src/piece.cpp | oseiskar/3dtris | 16f60c10b8496db1a584c0eaf55cc9959bffab3a | [
"Apache-2.0"
] | 2 | 2021-08-04T05:49:30.000Z | 2022-02-26T12:19:45.000Z | #include "piece.hpp"
#include <array>
#include <algorithm>
#include <iterator>
#include <assert.h>
namespace pos_methods {
Pos3d fromArray(std::array<int, 3> arr) {
return Pos3d { arr[0], arr[1], arr[2] };
}
std::array<int, 3> toArray(const Pos3d& pos) {
return {{ pos.x, pos.y, pos.z }};
... | 25.719424 | 78 | 0.568392 | oseiskar |
7a5f4bb53524681abb48a2e09b37d3583a23fe43 | 1,744 | cpp | C++ | src/kernel/line_2.cpp | rgcv/libcgal-julia | 8d5bc5f13d3c9c6160cfff795d2a0bbe1e473d94 | [
"MIT"
] | 5 | 2020-01-22T14:06:29.000Z | 2021-09-23T11:29:18.000Z | src/kernel/line_2.cpp | rgcv/libcgal-julia | 8d5bc5f13d3c9c6160cfff795d2a0bbe1e473d94 | [
"MIT"
] | null | null | null | src/kernel/line_2.cpp | rgcv/libcgal-julia | 8d5bc5f13d3c9c6160cfff795d2a0bbe1e473d94 | [
"MIT"
] | 2 | 2021-02-16T13:56:02.000Z | 2022-03-14T17:17:30.000Z | #include <jlcxx/module.hpp>
#include <julia.h>
#include "io.hpp"
#include "kernel.hpp"
namespace jlcgal {
void wrap_line_2(jlcxx::Module& kernel, jlcxx::TypeWrapper<Line_2>& line_2) {
line_2
// Creation
.constructor<const RT&, const RT&, const RT&>()
.constructor<const Point_2&, const Point_2&>()
... | 31.709091 | 77 | 0.647362 | rgcv |
7a5fdb1b277772f6109728b85ae147315615bbf4 | 1,863 | cpp | C++ | src/Front/Mainwindow-zones/mainwindow-image.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 10 | 2020-12-20T15:32:20.000Z | 2021-07-12T18:09:57.000Z | src/Front/Mainwindow-zones/mainwindow-image.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 2 | 2022-01-04T12:51:00.000Z | 2022-01-04T14:40:19.000Z | src/Front/Mainwindow-zones/mainwindow-image.cpp | Igisid/Breeks-desktop | 0dfaa6ea64d1d2912a4aed9e1febb537b9a9eec6 | [
"Apache-2.0"
] | 3 | 2020-12-22T02:50:11.000Z | 2021-02-24T01:58:11.000Z | #include "Front/mainwindow.h"
#include <iostream>
#include <cstdlib>
bool MainWindow::openImageFromDisk(const QString &imageName) {
if ( QString::compare(imageName, QString()) != 0 ) {
QImage image;
bool valid = image.load(imageName);
if (valid) {
QJsonObject json;
json.insert("linkToImage"... | 28.661538 | 100 | 0.667203 | Igisid |
7a61cc17c55f18a63b3bf5260f53264f47c5c2cf | 2,830 | hpp | C++ | parsecpp/parser/parserResult.hpp | vorotynsky/ParseCpp | 7dd3763dd42f2299aafc0930d2be8542f8682074 | [
"Apache-2.0"
] | 5 | 2020-03-20T20:04:45.000Z | 2020-10-29T06:56:29.000Z | parsecpp/parser/parserResult.hpp | vorotynsky/ParseCpp | 7dd3763dd42f2299aafc0930d2be8542f8682074 | [
"Apache-2.0"
] | null | null | null | parsecpp/parser/parserResult.hpp | vorotynsky/ParseCpp | 7dd3763dd42f2299aafc0930d2be8542f8682074 | [
"Apache-2.0"
] | 2 | 2020-04-12T20:41:22.000Z | 2020-05-01T00:26:06.000Z | // Copyright 2020 Vorotynsky Maxim
//
// 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 agree... | 26.698113 | 99 | 0.590813 | vorotynsky |
7a785be4485870c53b1ec1a6b7d219bea5c8d3d9 | 1,554 | hpp | C++ | PropertiesPanel/ConnectionPropertiesPanel.hpp | sielicki/PothosFlow | 61487651f3718fc75fd2da6ef36e90c8537c8dd3 | [
"BSL-1.0"
] | 44 | 2017-10-14T19:27:44.000Z | 2022-02-20T13:43:20.000Z | PropertiesPanel/ConnectionPropertiesPanel.hpp | sielicki/PothosFlow | 61487651f3718fc75fd2da6ef36e90c8537c8dd3 | [
"BSL-1.0"
] | 72 | 2015-01-06T09:36:43.000Z | 2017-07-08T17:36:45.000Z | PropertiesPanel/ConnectionPropertiesPanel.hpp | sielicki/PothosFlow | 61487651f3718fc75fd2da6ef36e90c8537c8dd3 | [
"BSL-1.0"
] | 24 | 2018-02-02T04:29:29.000Z | 2022-03-24T06:19:04.000Z | // Copyright (c) 2014-2014 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#pragma once
#include <Pothos/Config.hpp>
#include "GraphObjects/GraphEndpoint.hpp"
#include "GraphEditor/GraphState.hpp"
#include <QWidget>
#include <QPointer>
#include <QString>
#include <map>
class GraphConnection;
class QPushButton;
class QT... | 28.254545 | 137 | 0.758044 | sielicki |
7a80edf05b0bc5b7403f119bf85a57c62a33ce9b | 853 | cpp | C++ | BUPT 2021 Winter Training #6/h.cpp | rakty/2022-spring-training | db36ad3838945d2bb3a951f9ccd8dfa6f0916d0d | [
"MIT"
] | 1 | 2022-03-04T15:11:33.000Z | 2022-03-04T15:11:33.000Z | BUPT 2021 Winter Training #6/h.cpp | rakty/2022-spring-training | db36ad3838945d2bb3a951f9ccd8dfa6f0916d0d | [
"MIT"
] | null | null | null | BUPT 2021 Winter Training #6/h.cpp | rakty/2022-spring-training | db36ad3838945d2bb3a951f9ccd8dfa6f0916d0d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
//const int inf=0x7fffffff;
const int inf = 0x3f3f3f3f;
const int maxn = 1e5 + 5;
int t, n;
struct G
{
ll a, b;
} g[maxn];
bool cmp(G g1, G g2)
{
return g1.b > g2.b;
}
void solve()
{
cin >> n;
for (int i = 1; i <= n; i++)
{
c... | 19.386364 | 55 | 0.438453 | rakty |
7a82a940359e272f885a91339490c8cedf115db3 | 44,964 | cpp | C++ | _vscp_common/duktape_vscp_func.cpp | benys/vscpworks | 755a1733d0c55c8dd22d65e0e1ed1598311ef999 | [
"MIT"
] | 1 | 2022-01-24T20:21:09.000Z | 2022-01-24T20:21:09.000Z | _vscp_common/duktape_vscp_func.cpp | benys/vscpworks | 755a1733d0c55c8dd22d65e0e1ed1598311ef999 | [
"MIT"
] | 1 | 2020-05-05T18:40:57.000Z | 2020-05-05T18:40:57.000Z | _vscp_common/duktape_vscp_func.cpp | benys/vscpworks | 755a1733d0c55c8dd22d65e0e1ed1598311ef999 | [
"MIT"
] | 1 | 2020-05-05T08:07:32.000Z | 2020-05-05T08:07:32.000Z | // duktape_vscp_func.c
//
// This file is part of the VSCP (http://www.vscp.org)
//
// The MIT License (MIT)
//
// Copyright (c) 2000-2018 Ake Hedman, Grodans Paradis AB <info@grodansparadis.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated doc... | 28.368454 | 92 | 0.508229 | benys |
7a8548efc589ec5067ee04abd3fd97490636c072 | 303 | hpp | C++ | library/linear_algebra/Hadamard_matrix.hpp | fura2/competitive-programming-library | fc101651640ac5418155efce74f5ec103443bc8c | [
"MIT"
] | null | null | null | library/linear_algebra/Hadamard_matrix.hpp | fura2/competitive-programming-library | fc101651640ac5418155efce74f5ec103443bc8c | [
"MIT"
] | null | null | null | library/linear_algebra/Hadamard_matrix.hpp | fura2/competitive-programming-library | fc101651640ac5418155efce74f5ec103443bc8c | [
"MIT"
] | null | null | null | /*
2^n 次の Hadamard 行列
各要素が 1 か -1 の正方行列であって次をみたすもの
- どの二つの行も直交する
- どの二つの列も直交する
計算量 : O(4^N)
*/
matrix<int> Hadamard(int n){
matrix<int> H(1<<n);
H[0][0]=1;
rep(k,n){
int d=1<<k;
rep(i,d) rep(j,d) {
H[i][j+d]=H[i][j];
H[i+d][j]=H[i][j];
H[i+d][j+d]=-H[i][j];
}
}
return H;
}
| 13.772727 | 30 | 0.50165 | fura2 |
18547a55a38350e8c1943ae81ee6d62c0e576471 | 1,615 | cpp | C++ | libs/mixer---linux/sound.cpp | ElectronicCats/pxt-common-packages | 230921df47581695d5c9ed2eb9f80792bf58c62a | [
"MIT"
] | 1 | 2020-02-03T07:15:28.000Z | 2020-02-03T07:15:28.000Z | libs/mixer---linux/sound.cpp | ElectronicCats/pxt-common-packages | 230921df47581695d5c9ed2eb9f80792bf58c62a | [
"MIT"
] | null | null | null | libs/mixer---linux/sound.cpp | ElectronicCats/pxt-common-packages | 230921df47581695d5c9ed2eb9f80792bf58c62a | [
"MIT"
] | null | null | null | #include "pxt.h"
#include "SoundOutput.h"
#include <alsa/asoundlib.h>
#include <pthread.h>
static void alsa_check(int pos, int fn) {
if (fn < 0) {
DMESG("alsa fail! pos=%d err=%d: %s", pos, fn, snd_strerror(fn));
target_panic(950);
}
}
void *LinuxDAC::play(void *self) {
auto dac = (LinuxD... | 27.844828 | 99 | 0.569659 | ElectronicCats |
185ec02db22123b5f8b3e2e83268669ddb73098a | 1,870 | cpp | C++ | zusaetzlicher_code/test_programme/klassen_operator/myClass.cpp | jWeb94/kit_wissenschaftliches_programmieren_fuer_ingenieure | b7a6b1b6be62263a7b7955e0fd60e2bd55adac09 | [
"WTFPL"
] | null | null | null | zusaetzlicher_code/test_programme/klassen_operator/myClass.cpp | jWeb94/kit_wissenschaftliches_programmieren_fuer_ingenieure | b7a6b1b6be62263a7b7955e0fd60e2bd55adac09 | [
"WTFPL"
] | null | null | null | zusaetzlicher_code/test_programme/klassen_operator/myClass.cpp | jWeb94/kit_wissenschaftliches_programmieren_fuer_ingenieure | b7a6b1b6be62263a7b7955e0fd60e2bd55adac09 | [
"WTFPL"
] | null | null | null | #include"myClass.h" // Stellt die Abhaenigkeit her, damit ich in der Implementierung auch alle anderen Methoden, Variablen und Funktionen verwenden kann. Ohne das wuerde this->x nicht funktionieren!
using namespace std;
myClass::myClass(){
cout << "called the standart constructor" << endl;
//this->a = -1;
//t... | 24.933333 | 199 | 0.67861 | jWeb94 |
18661f0a8a713d015d3438bfe12bd83f9016b789 | 1,230 | cpp | C++ | leetcode/linked-list/1290_convert_binary_number_in_a_linked_list_to_integer.cpp | k10tetry/data-structure-algorithm | 56af1e648ace71877874e45afad787a90beb4455 | [
"MIT"
] | 1 | 2021-09-30T19:14:59.000Z | 2021-09-30T19:14:59.000Z | leetcode/linked-list/1290_convert_binary_number_in_a_linked_list_to_integer.cpp | k10tetry/data-structure-algorithm | 56af1e648ace71877874e45afad787a90beb4455 | [
"MIT"
] | null | null | null | leetcode/linked-list/1290_convert_binary_number_in_a_linked_list_to_integer.cpp | k10tetry/data-structure-algorithm | 56af1e648ace71877874e45afad787a90beb4455 | [
"MIT"
] | 1 | 2021-10-01T14:29:20.000Z | 2021-10-01T14:29:20.000Z | #include <bits/stdc++.h>
using namespace std;
/*
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1. The linked list holds the binary representation of a number.
Return the decimal value of the number in the linked list.
*/
/*
Solved using stri... | 26.73913 | 182 | 0.572358 | k10tetry |
186c4609c562bc29147ee8642b2a18502409729e | 389 | cpp | C++ | MFC++/SourceCodes/Chapter4/ListOrder.cpp | CoodingPenguin/StudyMaterial | b6d8084fc38673ad6ffb54bc0bc60b2471168810 | [
"MIT"
] | 9 | 2019-02-21T20:20:25.000Z | 2020-04-14T15:18:59.000Z | MFC++/SourceCodes/Chapter4/ListOrder.cpp | CoodingPenguin/StudyMaterial | b6d8084fc38673ad6ffb54bc0bc60b2471168810 | [
"MIT"
] | null | null | null | MFC++/SourceCodes/Chapter4/ListOrder.cpp | CoodingPenguin/StudyMaterial | b6d8084fc38673ad6ffb54bc0bc60b2471168810 | [
"MIT"
] | 2 | 2019-07-09T02:01:37.000Z | 2020-01-07T18:45:25.000Z | /* Written by @nErumin (Github)
* 2016-10-25
*
* Topic - 생성자 초기화 리스트 내에서 멤버의 초기화 순서에 주의하자.
*/
#include <iostream>
#include <string>
using namespace std;
template <typename T>
class Twin
{
public:
Twin() : second(0), first(0) { }
Twin(T val) : second(val), first(second) { }
private:
T second;
T first;
};
in... | 13.892857 | 45 | 0.601542 | CoodingPenguin |
186cea470da63c4d8213bed891ecb71864a6d25a | 7,753 | cpp | C++ | CursedHeaven/Motor2D/j1SceneMenu.cpp | golden-rhino-studio/CursedHeaven | 16e7bd3e82b64302564251d4856be570add0f98e | [
"MIT"
] | null | null | null | CursedHeaven/Motor2D/j1SceneMenu.cpp | golden-rhino-studio/CursedHeaven | 16e7bd3e82b64302564251d4856be570add0f98e | [
"MIT"
] | 1 | 2019-03-05T18:25:36.000Z | 2019-03-05T18:26:39.000Z | CursedHeaven/Motor2D/j1SceneMenu.cpp | golden-rhino-studio/CursedHeaven | 16e7bd3e82b64302564251d4856be570add0f98e | [
"MIT"
] | null | null | null | #include "j1SceneMenu.h"
#include "j1SceneCredits.h"
#include "j1Scene1.h"
#include "j1Scene2.h"
#include "j1App.h"
#include "p2Log.h"
#include "j1Textures.h"
#include "j1EntityManager.h"
#include "j1FadeToBlack.h"
#include "j1Audio.h"
#include "j1Map.h"
#include "j1Gui.h"
#include "j1Button.h"
#include "j1Label.h"
#in... | 29.591603 | 122 | 0.613698 | golden-rhino-studio |
18802f774a0e957be4c3c039fdab646afd528f3b | 685 | cpp | C++ | C++/Template/coding_test_template.cpp | 0417yjy/source-storage | 13a58f84140eab84e48421414219f4f0ff4ac88a | [
"MIT"
] | null | null | null | C++/Template/coding_test_template.cpp | 0417yjy/source-storage | 13a58f84140eab84e48421414219f4f0ff4ac88a | [
"MIT"
] | 1 | 2020-10-09T18:11:55.000Z | 2020-10-09T18:14:16.000Z | C++/Template/coding_test_template.cpp | 0417yjy/source-storage | 13a58f84140eab84e48421414219f4f0ff4ac88a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
/* Write your own Classes, Structures, or Functions here */
/* Main Function */
int main(void) {
int test_num;
string input;
/* Define the number of test cases */
cin >> test_num;
cin.ignore();
string* answers = new string[test_num];... | 20.147059 | 59 | 0.569343 | 0417yjy |
1882d88aab3e2e3423f5afda9fd7ebfb48ca4896 | 2,017 | cpp | C++ | tests/Game/src/QuadtreeTest.cpp | cristianglezm/AntFarm | df7551621ad6eda6dae43a2ede56222500be1ae1 | [
"Apache-2.0"
] | null | null | null | tests/Game/src/QuadtreeTest.cpp | cristianglezm/AntFarm | df7551621ad6eda6dae43a2ede56222500be1ae1 | [
"Apache-2.0"
] | 1 | 2016-03-13T10:55:21.000Z | 2016-03-13T10:55:21.000Z | tests/Game/src/QuadtreeTest.cpp | cristianglezm/AntFarm | df7551621ad6eda6dae43a2ede56222500be1ae1 | [
"Apache-2.0"
] | null | null | null | #include <../include/QuadtreeTest.hpp>
#include <Utils/Quadtree.hpp>
#include <Utils/String.hpp>
#include <Entity/Entity.hpp>
#include <Components/Component.hpp>
#include <Components/ComponentMask.hpp>
#include <Event/EventsAlias.hpp>
#include <EntityManager/EntityManager.hpp>
#include <cassert>
#include <list>
#includ... | 41.163265 | 142 | 0.608825 | cristianglezm |
188d66dc1898b08b81bbd5da5de4039c31c7e74d | 2,512 | cpp | C++ | SPOJ/LOSTNSURVIVED_Lost_and_survived.cpp | ASM-ATIKUR/Competitive_Programming_Atikur_Rahman | 9552e4dca7daad5c07542514d4b8c8baabea1989 | [
"MIT"
] | null | null | null | SPOJ/LOSTNSURVIVED_Lost_and_survived.cpp | ASM-ATIKUR/Competitive_Programming_Atikur_Rahman | 9552e4dca7daad5c07542514d4b8c8baabea1989 | [
"MIT"
] | null | null | null | SPOJ/LOSTNSURVIVED_Lost_and_survived.cpp | ASM-ATIKUR/Competitive_Programming_Atikur_Rahman | 9552e4dca7daad5c07542514d4b8c8baabea1989 | [
"MIT"
] | null | null | null | /***
** A S M Atikur Rahman
** Update: 27-10-2019
***/
#include <bits/stdc++.h>
#define sci(x) scanf("%d", &(x))
#define scll(x) scanf("%lld", &(x))
#define scd(x) scanf("%lf", &(x))
#define scstr(x) scanf("%s", x)
#define pfi(x) printf("%d", (x))
#define pfll(x) printf("%lld", (x))
#define pfd(x) printf("%f",... | 18.335766 | 52 | 0.500796 | ASM-ATIKUR |
189518ab75c19537d1f199730ae59917538f2012 | 271 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/world/ProxySyncNormalSource.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/world/ProxySyncNormalSource.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/world/ProxySyncNormalSource.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace world {
enum class ProxySyncNormalSource : uint8_t
{
From_Groups = 0,
From_Face_Average = 1,
};
} // namespace world
} // namespace RED4ext
| 16.9375 | 57 | 0.723247 | jackhumbert |
189a75128d44fdecab61ac10f0abd38028264ca2 | 2,157 | cpp | C++ | ros_stairsdetection/src/transform_helper.cpp | ne0h/hmmwv_stairsdetection | f07a0ac1b0063df0057d806a95cc02a7dad5cb04 | [
"MIT"
] | null | null | null | ros_stairsdetection/src/transform_helper.cpp | ne0h/hmmwv_stairsdetection | f07a0ac1b0063df0057d806a95cc02a7dad5cb04 | [
"MIT"
] | null | null | null | ros_stairsdetection/src/transform_helper.cpp | ne0h/hmmwv_stairsdetection | f07a0ac1b0063df0057d806a95cc02a7dad5cb04 | [
"MIT"
] | null | null | null | #include <vector>
#include "transform_helper.hpp"
#include "step.hpp"
#include "print_helpers.hpp"
void TransformHelper::getAABB(pcl::PointCloud<pcl::PointXYZ>::Ptr cloud, Step &step) {
pcl::MomentOfInertiaEstimation<pcl::PointXYZ> feature_extractor;
feature_extractor.setInputCloud(cloud);
feature_extractor.comput... | 25.678571 | 114 | 0.679648 | ne0h |
189ae4918e3d33a0dd210bb155baca9890bf91a1 | 6,040 | cpp | C++ | src/PeakFinder.cpp | AustinHartman/shasta | 105b8e85e272247f72ced59005c88879631931c0 | [
"BSD-3-Clause"
] | 267 | 2018-07-31T16:12:24.000Z | 2022-03-29T13:57:53.000Z | src/PeakFinder.cpp | AustinHartman/shasta | 105b8e85e272247f72ced59005c88879631931c0 | [
"BSD-3-Clause"
] | 140 | 2018-08-10T14:14:19.000Z | 2022-02-18T22:05:05.000Z | src/PeakFinder.cpp | AustinHartman/shasta | 105b8e85e272247f72ced59005c88879631931c0 | [
"BSD-3-Clause"
] | 47 | 2018-09-28T18:29:37.000Z | 2022-02-21T02:45:40.000Z | #include "PeakFinder.hpp"
#include <algorithm>
using namespace shasta;
shasta::PeakFinderException::PeakFinderException(double minAreaFraction, double observedAreaFraction):
minPercentArea(minAreaFraction),
observedPercentArea(observedAreaFraction)
{}
PeakFinder::Peak::Peak(uint64_t start):
... | 30.2 | 117 | 0.557781 | AustinHartman |
189e7707b67a194ef203a1fc6f5b83731544dc5d | 3,971 | cc | C++ | example/chipset_c_driver.cc | alex4747-pub/proper_singleton | 2f667421b2832f2ce83b73507ce9c5ac00e66358 | [
"MIT"
] | null | null | null | example/chipset_c_driver.cc | alex4747-pub/proper_singleton | 2f667421b2832f2ce83b73507ce9c5ac00e66358 | [
"MIT"
] | null | null | null | example/chipset_c_driver.cc | alex4747-pub/proper_singleton | 2f667421b2832f2ce83b73507ce9c5ac00e66358 | [
"MIT"
] | null | null | null | // Copyright (C) 2020 Aleksey Romanov (aleksey at voltanet dot io)
//
// 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 us... | 29.857143 | 80 | 0.725258 | alex4747-pub |
189fe478e94472ff943c05958b02dfe6d30306e6 | 1,452 | cpp | C++ | src/hexview/editor/structure_brush.cpp | ejrh/hex | 3c063ce142e6b62fb0f92f71bc94280305b53322 | [
"MIT"
] | 7 | 2015-09-15T13:20:23.000Z | 2020-12-07T10:14:57.000Z | src/hexview/editor/structure_brush.cpp | ejrh/hex | 3c063ce142e6b62fb0f92f71bc94280305b53322 | [
"MIT"
] | null | null | null | src/hexview/editor/structure_brush.cpp | ejrh/hex | 3c063ce142e6b62fb0f92f71bc94280305b53322 | [
"MIT"
] | 1 | 2018-09-07T00:54:35.000Z | 2018-09-07T00:54:35.000Z | #include "common.h"
#include "hexgame/game/game.h"
#include "hexgame/game/game_messages.h"
#include "hexview/editor/brush.h"
namespace hex {
void StructureBrush::paint(const Point point, int radius, Game *game, GameView *view) {
const Tile& tile = game->level.tiles[point];
Atom current_structure_type = ti... | 27.396226 | 115 | 0.703168 | ejrh |
18a09285753f7bc1a6f9b320bbea64fe3a7be555 | 5,782 | cc | C++ | celeriteflow/ops/celerite_solve_grad_op.cc | mirca/celeriteflow | ed09a178df05856097552a9081b6eb6d537216ee | [
"MIT"
] | null | null | null | celeriteflow/ops/celerite_solve_grad_op.cc | mirca/celeriteflow | ed09a178df05856097552a9081b6eb6d537216ee | [
"MIT"
] | null | null | null | celeriteflow/ops/celerite_solve_grad_op.cc | mirca/celeriteflow | ed09a178df05856097552a9081b6eb6d537216ee | [
"MIT"
] | null | null | null | #include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/platform/default/logging.h"
#include "tensorflow/core/framework/shape_inference.h"
#include <Eigen/Core>
#include "celerite.h"
using namespace tensorflow;
REGISTER_OP("CeleriteSolveGrad")
... | 40.433566 | 125 | 0.618298 | mirca |
18af15dbeb60891946e1e6f828a144420e7aeba4 | 23 | cpp | C++ | src/common/TyObject.cpp | tmtmazum/tylang | e8c382bfe7da826017c405153150a9e0433b329f | [
"MIT"
] | null | null | null | src/common/TyObject.cpp | tmtmazum/tylang | e8c382bfe7da826017c405153150a9e0433b329f | [
"MIT"
] | null | null | null | src/common/TyObject.cpp | tmtmazum/tylang | e8c382bfe7da826017c405153150a9e0433b329f | [
"MIT"
] | null | null | null | #include "TyObject.h"
| 7.666667 | 21 | 0.695652 | tmtmazum |
18be6d5703b31beabe566941af285a75486b8cb3 | 507 | cpp | C++ | ACMSGURU/358.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | ACMSGURU/358.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | ACMSGURU/358.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, t) for(ll i=0; i<t; i++)
#define FOR(i, s, e) for(ll i=s; i<=e; i++)
#define pb push_back
#define mp make_pair
#define p1 first
#define p2 second
typedef unsigned long long int ull;
typedef long long int ll;
typedef short int si;
int main(){
ios_base::sy... | 16.354839 | 43 | 0.607495 | Alipashaimani |
18d4765c504d168eeb23bf5c7bf979840de8a6e0 | 8,762 | cc | C++ | build/ARM/python/m5/internal/param_BasicLink.py.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_BasicLink.py.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_BasicLink.py.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_BasicLink[] = {
120,156,189,88,109,111,227,88,21,62,215,118,210,58,109,218,
116,250,54,211,22,106,4,21,97,197,182,48,48,44,98,71,
35,118,217,149,88,4,221,197,1,58,27,22,140,107,223,36,
78,29,59,178,111,167,155,85,251,133,142,128,1... | 57.267974 | 76 | 0.664803 | Jakgn |
18d6ee1565b07a5e3c88069f21d97b96c50529c3 | 1,918 | cpp | C++ | DFNs/Executors/CamerasTransformEstimation/CamerasTransformEstimationExecutor.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 7 | 2019-02-26T15:09:50.000Z | 2021-09-30T07:39:01.000Z | DFNs/Executors/CamerasTransformEstimation/CamerasTransformEstimationExecutor.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | null | null | null | DFNs/Executors/CamerasTransformEstimation/CamerasTransformEstimationExecutor.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 1 | 2020-12-06T12:09:05.000Z | 2020-12-06T12:09:05.000Z | /**
* @addtogroup DFNs
* @{
*/
#include "CamerasTransformEstimationExecutor.hpp"
#include <Errors/Assert.hpp>
using namespace MatrixWrapper;
using namespace CorrespondenceMap2DWrapper;
using namespace PoseWrapper;
namespace CDFF
{
namespace DFN
{
namespace Executors
{
void Execute(CamerasTransformEstimationInter... | 33.649123 | 174 | 0.793014 | H2020-InFuse |
18e38baf325063e0ae23e521f5f3d5ed9abe7910 | 5,761 | cpp | C++ | Footfall/src/CameraManager.cpp | prabuckt/Footfall | fe8f87e7c804e670f5c4aae57a17fd4f7cb0fe49 | [
"BSD-2-Clause"
] | 1 | 2018-12-20T03:48:14.000Z | 2018-12-20T03:48:14.000Z | Footfall/src/CameraManager.cpp | prabuckt/Footfall | fe8f87e7c804e670f5c4aae57a17fd4f7cb0fe49 | [
"BSD-2-Clause"
] | null | null | null | Footfall/src/CameraManager.cpp | prabuckt/Footfall | fe8f87e7c804e670f5c4aae57a17fd4f7cb0fe49 | [
"BSD-2-Clause"
] | null | null | null | // * Name: CameraManager.cpp
// * Project: Footfall
// * Author: David Haylock
// * Creation Date: 13/02/2017
// * Copyright: (c) 2017 by Watershed Arts Trust Ltd.
#include "CameraManager.h"
//--------------------------------------------------------------
void CameraManager::setup(Camera_Configuration _cameraConfig)
{... | 30.321053 | 121 | 0.691026 | prabuckt |
18e551bafb75f4fabd3a44ed9aa186c9254d4d4a | 1,724 | cpp | C++ | openGLSolution/openGLFirst/BPCollisionProfile.cpp | qsrenniks/quengine | 55cf9c69f5c17109b04e6ceb771fd6d12bf41fee | [
"MIT"
] | null | null | null | openGLSolution/openGLFirst/BPCollisionProfile.cpp | qsrenniks/quengine | 55cf9c69f5c17109b04e6ceb771fd6d12bf41fee | [
"MIT"
] | null | null | null | openGLSolution/openGLFirst/BPCollisionProfile.cpp | qsrenniks/quengine | 55cf9c69f5c17109b04e6ceb771fd6d12bf41fee | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "BPCollisionProfile.h"
#include "CollisionOccurence.h"
#include "glm/gtc/matrix_transform.hpp"
BPCollisionProfile::BPCollisionProfile(const glm::vec2& extent)
: offsetExtent_(extent)
{
}
BPCollisionProfile::~BPCollisionProfile()
{
}
void BPCollisionProfile::UpdateAABB(const glm::vec2&... | 24.628571 | 160 | 0.725638 | qsrenniks |
18fb7d3a89eb2cad1341e7595d21abe7fb1826bf | 895 | hpp | C++ | src/lib/expression/IExpressionHandler.hpp | lachvoj/pugcpp | b0f0f3f52ed81553717f9f5d72b319b6d48d05d4 | [
"MIT"
] | null | null | null | src/lib/expression/IExpressionHandler.hpp | lachvoj/pugcpp | b0f0f3f52ed81553717f9f5d72b319b6d48d05d4 | [
"MIT"
] | null | null | null | src/lib/expression/IExpressionHandler.hpp | lachvoj/pugcpp | b0f0f3f52ed81553717f9f5d72b319b6d48d05d4 | [
"MIT"
] | null | null | null | #ifndef IExpressionHadler
#define IExpressionHadler
#include <any>
#include <string>
#include "../exceptions/ExpressionException.hpp"
#include "../model/PugModel.hpp"
using namespace std;
namespace pugcpp
{
// forward declarations
namespace model
{
class PugModel;
}
namespace expression
{
using namespace model;
c... | 21.829268 | 91 | 0.746369 | lachvoj |
18fdda9169abff5e7dec5b9300e14884dd426084 | 750 | cpp | C++ | Array/find_missing_digit.cpp | heysujal/Problem-Solving-in-cpp | b5e21bc467d57d3c2050776b948e7f59daabe945 | [
"Unlicense"
] | 1 | 2021-10-04T16:24:57.000Z | 2021-10-04T16:24:57.000Z | Array/find_missing_digit.cpp | heysujal/Problem-Solving-in-cpp | b5e21bc467d57d3c2050776b948e7f59daabe945 | [
"Unlicense"
] | null | null | null | Array/find_missing_digit.cpp | heysujal/Problem-Solving-in-cpp | b5e21bc467d57d3c2050776b948e7f59daabe945 | [
"Unlicense"
] | 1 | 2021-10-04T16:25:00.000Z | 2021-10-04T16:25:00.000Z | #include <bits/stdc++.h>
using namespace std;
void find_missing(int arr[], int n){
int original_size = n + 1;
for (int j = 1; j <= original_size;j++){
int flag = 0;
int k;
for ( k = 0; k < n; k++)
{
if (arr[k] == j)
{
flag = 1;
... | 14.705882 | 64 | 0.350667 | heysujal |
bb391ae375b5b82dd51b83d8fe269c41c9e44e82 | 755 | cpp | C++ | Blog/10_AccessModifier/AccessModifierPractice.cpp | LeeHeungrok/CPP-Study | 9350a9e396d26a7994077c739bc566c4329e1f03 | [
"MIT"
] | null | null | null | Blog/10_AccessModifier/AccessModifierPractice.cpp | LeeHeungrok/CPP-Study | 9350a9e396d26a7994077c739bc566c4329e1f03 | [
"MIT"
] | null | null | null | Blog/10_AccessModifier/AccessModifierPractice.cpp | LeeHeungrok/CPP-Study | 9350a9e396d26a7994077c739bc566c4329e1f03 | [
"MIT"
] | null | null | null | #include <iostream>
#define SAFEDELETE(PTR) delete PTR; PTR = nullptr
struct PRODUCTINFO{
private:
char Name[10];
int Price;
protected:
char Company[20];
public:
void InitializeInfo(const char *szName, int iPrice, const char *szCompany){
strcpy(this->Name, szName);
this->Price = iPrice... | 22.878788 | 79 | 0.627815 | LeeHeungrok |
bb3aa65f5e0ff05f42de3b6ed9f53782719a17b3 | 1,510 | cpp | C++ | 1c++/src/createFileNameList.cpp | nuke160/NIT-ICCV17Challenge | 6091695bef56d0ed41d05176f3e153632f5a758a | [
"BSD-2-Clause"
] | null | null | null | 1c++/src/createFileNameList.cpp | nuke160/NIT-ICCV17Challenge | 6091695bef56d0ed41d05176f3e153632f5a758a | [
"BSD-2-Clause"
] | null | null | null | 1c++/src/createFileNameList.cpp | nuke160/NIT-ICCV17Challenge | 6091695bef56d0ed41d05176f3e153632f5a758a | [
"BSD-2-Clause"
] | null | null | null | // Authors: Frerk Saxen and Philipp Werner (Frerk.Saxen@ovgu.de, Philipp.Werner@ovgu.de)
// License: BSD 2-Clause "Simplified" License (see LICENSE file in root directory)
#include <iostream>
#include <fstream>
#include <experimental/filesystem>
#include <dlib/string.h>
namespace fs = std::experimental::filesystem;
... | 26.491228 | 127 | 0.681457 | nuke160 |
bb3b50f57fe69a04a063a8c04d72f5b207d8038a | 1,419 | cpp | C++ | src/parser/canada/montrealparser.cpp | sthocs/harbour-bikeme | 3ebaf553199a1c91275126dbc1d6baac00d58135 | [
"MIT"
] | 6 | 2017-11-20T06:05:50.000Z | 2022-01-04T11:11:51.000Z | src/parser/canada/montrealparser.cpp | sthocs/harbour-bikeme | 3ebaf553199a1c91275126dbc1d6baac00d58135 | [
"MIT"
] | 2 | 2021-06-29T22:30:57.000Z | 2022-01-05T16:31:44.000Z | src/parser/canada/montrealparser.cpp | sthocs/harbour-bikeme | 3ebaf553199a1c91275126dbc1d6baac00d58135 | [
"MIT"
] | 1 | 2017-04-18T05:56:51.000Z | 2017-04-18T05:56:51.000Z | #include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include "montrealparser.h"
// See http://donnees.ville.montreal.qc.ca/dataset/bixi-etat-des-stations/resource/b1ddc812-f5c8-48e8-94c5-57efb12ddd6a
QList<Station*> MontrealParser::parseStationsList(QString allStations, bool wi... | 44.34375 | 119 | 0.666667 | sthocs |
bb3d19183ec0fdc0df525978d5b11a450fb012c1 | 1,380 | hpp | C++ | src/nearest_neighbors/visible_proximity.hpp | falcowinkler/flockingbird | eed3e7cead4a37635625d1055fb0a830e6152d1b | [
"MIT"
] | 2 | 2021-05-30T19:19:50.000Z | 2021-08-29T05:58:21.000Z | src/nearest_neighbors/visible_proximity.hpp | falcowinkler/flockingbird | eed3e7cead4a37635625d1055fb0a830e6152d1b | [
"MIT"
] | null | null | null | src/nearest_neighbors/visible_proximity.hpp | falcowinkler/flockingbird | eed3e7cead4a37635625d1055fb0a830e6152d1b | [
"MIT"
] | 1 | 2021-12-01T07:00:49.000Z | 2021-12-01T07:00:49.000Z | #include "../flock_simulation/flock.hpp"
#include "nanoflann.hpp"
#include <iostream>
#include <ostream>
#include <vector>
using namespace nanoflann;
const int dim = 2;
const int maxLeaf = 10;
typedef KDTreeSingleIndexAdaptor<L2_Simple_Adaptor<float, flockingbird::Flock>, flockingbird::Flock, dim> kd_tree_t;
cla... | 31.363636 | 116 | 0.656522 | falcowinkler |
bb457bf6116e1937274c8c6ef49db42c12088985 | 1,019 | cpp | C++ | 13_greedy_prob/9_max_tot_val.cpp | ShyamNandanKumar/coding-ninja2 | a43a21575342261e573f71f7d8eff0572f075a17 | [
"MIT"
] | 11 | 2021-01-02T10:07:17.000Z | 2022-03-16T00:18:06.000Z | 13_greedy_prob/9_max_tot_val.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | null | null | null | 13_greedy_prob/9_max_tot_val.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | 5 | 2021-05-19T11:17:18.000Z | 2021-09-16T06:23:31.000Z | // https://dmoj.ca/problem/coci13c1p4
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
bool compare(int item1[],int item2[]){
if(item1[1]!=item2[1]){
return item1[1]>item2[1];
}
return item1[0]<item2[0];
}
int main(){
// inputs
int n,k;
cin>>n>>k;
int **item... | 21.229167 | 60 | 0.511286 | ShyamNandanKumar |
bb48fccca53186845978cbb24f1276b3efebf0a9 | 363 | cpp | C++ | RegistryPerformanceViewer/Utils.cpp | Eran-YT/RegistryPerformanceViewer | 0040ba20c0400af28e7d31c0c2e858ee8ead38d7 | [
"MIT"
] | 1 | 2022-01-22T18:30:43.000Z | 2022-01-22T18:30:43.000Z | RegistryPerformanceViewer/Utils.cpp | Eran-YT/RegistryPerformanceViewer | 0040ba20c0400af28e7d31c0c2e858ee8ead38d7 | [
"MIT"
] | 7 | 2022-01-22T18:27:44.000Z | 2022-03-01T19:12:08.000Z | RegistryPerformanceViewer/Utils.cpp | Eran-YT/RegistryPerformanceViewer | 0040ba20c0400af28e7d31c0c2e858ee8ead38d7 | [
"MIT"
] | null | null | null | #include "Utils.hpp"
std::wstring Utils::fix_path(const std::wstring& path)
{
static const std::wstring invalid_chars{ L'<', L'>', L':', L'"', L'/', L'\\', L'|', L'?', L'*' };
std::wstring new_path(path);
for (wchar_t& wchar : new_path) {
if (invalid_chars.contains(wchar)) {
wchar = L'_... | 24.2 | 101 | 0.534435 | Eran-YT |
bb4d7881c45fec9093966789fd77580ba5ca7eb5 | 206 | cc | C++ | basics/01_hello_world/hello_main.cc | lyrahgames/cpp-basic-course | e35b938a29e4d27d70cf1427b229352beb23f2be | [
"MIT"
] | 1 | 2019-07-04T10:52:58.000Z | 2019-07-04T10:52:58.000Z | basics/01_hello_world/hello_main.cc | lyrahgames/cpp-basic-course | e35b938a29e4d27d70cf1427b229352beb23f2be | [
"MIT"
] | 3 | 2021-05-20T04:44:25.000Z | 2022-02-26T05:09:15.000Z | basics/01_hello_world/hello_main.cc | lyrahgames/cpp-basic-course | e35b938a29e4d27d70cf1427b229352beb23f2be | [
"MIT"
] | null | null | null | // include standard library to use 'cout'
#include <iostream>
// define the entry point of the program
int main() {
// print "Hello, World!" on the terminal
std::cout << "Hello, World!" << std::endl;
} | 25.75 | 44 | 0.660194 | lyrahgames |
bb5a078e63985cf638584bcf215c808547ba7837 | 872 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/physics/FilterData.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/physics/FilterData.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/physics/FilterData.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/ISerializable.hpp>
#include <RED4ext/Scripting/Natives/Generated/physics/QueryFilter.hpp>
#include <RED4ext/Scripting/Nat... | 28.129032 | 75 | 0.763761 | jackhumbert |
bb617bba33cafcdf562edefe00a7869dd2a40242 | 4,678 | cpp | C++ | src/executor/task_action.cpp | pointnity/Scheduler-of-Pointnity-N.1.1.0 | 8824bfb95d80d638ff466535747430bae15c212d | [
"MIT"
] | 1 | 2019-08-15T10:04:31.000Z | 2019-08-15T10:04:31.000Z | src/executor/task_action.cpp | pointnity/Scheduler-V0.1- | 8824bfb95d80d638ff466535747430bae15c212d | [
"MIT"
] | null | null | null | src/executor/task_action.cpp | pointnity/Scheduler-V0.1- | 8824bfb95d80d638ff466535747430bae15c212d | [
"MIT"
] | null | null | null | /********************************
FileName: executor/task_entity.cpp
Version: 0.1
Description: task entity in executor, corresponds to task, corresponds to kvm/lxc
*********************************/
#include <log4cplus/logger.h>
#include <log4cplus/loggingmacros.h>
#include <gflags/gflags.h>
#include <iostream>
#... | 39.310924 | 130 | 0.641513 | pointnity |
bb760689af05cf279072a32ab277167edabeb44d | 2,917 | hpp | C++ | private/inc/rtprocessingfwx/IasStreamParams.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 5 | 2018-11-05T07:37:58.000Z | 2022-03-04T06:40:09.000Z | private/inc/rtprocessingfwx/IasStreamParams.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | null | null | null | private/inc/rtprocessingfwx/IasStreamParams.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 7 | 2018-12-04T07:32:19.000Z | 2021-02-17T11:28:28.000Z | /*
* Copyright (C) 2018 Intel Corporation.All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file IasStreamParams.hpp
* @date 2012
* @brief The definition of the IasStreamParams class.
*/
#ifndef IASSTREAMPARAMS_HPP_
#define IASSTREAMPARAMS_HPP_
#include "avbaudiomodules/audio/commo... | 31.031915 | 113 | 0.658553 | juimonen |
bb7aa2482452906b087994aac4ee543e4759538f | 2,151 | hpp | C++ | include/ocpp1_6/messages/MeterValues.hpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | 9 | 2022-01-16T05:13:16.000Z | 2022-03-18T22:15:16.000Z | include/ocpp1_6/messages/MeterValues.hpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | null | null | null | include/ocpp1_6/messages/MeterValues.hpp | EVerest/libocpp | e2378e4fcef88e4be82b057626086c899a186b14 | [
"Apache-2.0"
] | 3 | 2022-01-20T04:51:01.000Z | 2022-03-13T07:16:49.000Z | // SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2022 Pionix GmbH and Contributors to EVerest
#ifndef OCPP1_6_METERVALUES_HPP
#define OCPP1_6_METERVALUES_HPP
#include <boost/optional.hpp>
#include <ocpp1_6/enums.hpp>
#include <ocpp1_6/ocpp_types.hpp>
#include <ocpp1_6/types.hpp>
namespace ocpp1_6 {
/// \b... | 38.410714 | 114 | 0.756857 | EVerest |
bb86fe1eed19020df4d18f7db3310dbb9d693fc1 | 3,841 | cpp | C++ | tc 160+/ResistorCombinations.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/ResistorCombinations.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/ResistorCombinations.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;
double tr, sol, dif;
vector<double> a;
vector<int> order;
inline double serial(double a, double b) {
return a+b;
}
inline doubl... | 36.235849 | 315 | 0.588649 | ibudiselic |
bb8ba3fc0ae7998f48a46d45c151f770e1699f3f | 656 | cpp | C++ | Baekjoon/2246.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/2246.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/2246.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(void)
{
int n, cnt = 0;
bool check;
cin >> n;
vector<pair<int, int> > arr(n);
for (int i = 0; i < n; i++)
cin >> arr[i].first >> arr[i].second;
for (int i = 0; i < n; i++)
{
check = false;
for (int j = 0; j < n; j++)
{
if (i != j)
... | 14.577778 | 43 | 0.455793 | Twinparadox |
bb9a291d8f2f9a1cf13e0cabd212b7be90e9e16e | 20,631 | cpp | C++ | vr/vr_common/src/vr/data/parse/attr_parser.cpp | vladium/vrt | 57394a630c306b7529dbe4574036ea71420d00cf | [
"MIT"
] | 4 | 2019-09-09T22:08:40.000Z | 2021-05-17T13:43:31.000Z | vr/vr_common/src/vr/data/parse/attr_parser.cpp | vladium/vrt | 57394a630c306b7529dbe4574036ea71420d00cf | [
"MIT"
] | null | null | null | vr/vr_common/src/vr/data/parse/attr_parser.cpp | vladium/vrt | 57394a630c306b7529dbe4574036ea71420d00cf | [
"MIT"
] | 1 | 2019-09-09T15:46:20.000Z | 2019-09-09T15:46:20.000Z |
#line 1 "src/vr/data/parse/attr_parser.rl"
//
// NOTE: THIS CODE IS AUTO-GENERATED
//
// ragel -C -G2 -I data/grammar/ src/vr/data/parse/attr_parser.rl && rename .c .cpp src/vr/data/parse/*.c
//
#include "vr/data/parse/attr_parser.h"
#include "vr/data/attributes.h"
//------------------------------------------------... | 22.547541 | 156 | 0.570016 | vladium |
bba27353c5d3b1145fb65a0d9b6adcf5796e98b3 | 3,955 | hpp | C++ | firmware/unit_tests/tests/EepromSimulationTests.hpp | richardclli/SynapseOS | da053155baf9ebf84db41ac24af101af1c9871f6 | [
"MIT"
] | null | null | null | firmware/unit_tests/tests/EepromSimulationTests.hpp | richardclli/SynapseOS | da053155baf9ebf84db41ac24af101af1c9871f6 | [
"MIT"
] | null | null | null | firmware/unit_tests/tests/EepromSimulationTests.hpp | richardclli/SynapseOS | da053155baf9ebf84db41ac24af101af1c9871f6 | [
"MIT"
] | 1 | 2020-08-18T04:35:45.000Z | 2020-08-18T04:35:45.000Z | #pragma once
#include <EepromSimulation.hpp>
template<std::size_t SectorSize, std::size_t SectorCount>
class RamDriver: public MemoryDriver<SectorSize, SectorCount>
{
public:
constexpr RamDriver()
{
for (auto i = 0U; i < SectorCount; ++i)
m_data[i].fill(0xFF);
}
void read(uint8_t *buffer, std::size_t lengt... | 20.386598 | 117 | 0.653856 | richardclli |
bbacf8d2c5eee7f39df74e87d7c77ab22b35c618 | 183 | cpp | C++ | src/Assembler/AssemblerToken.cpp | RicardoLuis0/Chip8-Emulator-RicardoLuis0 | c57d0d1df48b67f9e40c0c4af01a76b5877a4187 | [
"Unlicense"
] | null | null | null | src/Assembler/AssemblerToken.cpp | RicardoLuis0/Chip8-Emulator-RicardoLuis0 | c57d0d1df48b67f9e40c0c4af01a76b5877a4187 | [
"Unlicense"
] | null | null | null | src/Assembler/AssemblerToken.cpp | RicardoLuis0/Chip8-Emulator-RicardoLuis0 | c57d0d1df48b67f9e40c0c4af01a76b5877a4187 | [
"Unlicense"
] | null | null | null | #include "AssemblerToken.h"
AssemblerToken::AssemblerToken(AssemblerTokenType_t tok):type(tok),val(0){}
AssemblerToken::AssemblerToken(unsigned long _val):type(LITERAL),val(_val){}
| 30.5 | 76 | 0.797814 | RicardoLuis0 |
bbb07e2006a6658531551e2b701c26a2f6ebdf35 | 555 | cpp | C++ | Challenges/Challenge86/src/main.cpp | GamesTrap/PracticeChallenges | 46ad8b2c18515a9740910162381a3dea18be72ab | [
"MIT"
] | null | null | null | Challenges/Challenge86/src/main.cpp | GamesTrap/PracticeChallenges | 46ad8b2c18515a9740910162381a3dea18be72ab | [
"MIT"
] | null | null | null | Challenges/Challenge86/src/main.cpp | GamesTrap/PracticeChallenges | 46ad8b2c18515a9740910162381a3dea18be72ab | [
"MIT"
] | null | null | null | #include <cassert>
#include <cstdint>
#include <string>
#include <algorithm>
std::string RemoveExclamationMark(std::string str)
{
str.erase(std::remove(str.begin(), str.end(), '!'), str.end());
return str;
}
int main()
{
assert(RemoveExclamationMark("Hello World!") == "Hello World");
assert(RemoveExclamationMark(... | 26.428571 | 66 | 0.677477 | GamesTrap |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.