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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
962ffee954876d8999083f3bffc80ce4602a7c70 | 1,441 | cpp | C++ | greedy/Huffman_coding.cpp | verma-tanishq/placement-essentials | 515135f417f002db5e59317cce7660f29b8e902a | [
"MIT"
] | 1 | 2021-04-04T16:23:15.000Z | 2021-04-04T16:23:15.000Z | greedy/Huffman_coding.cpp | verma-tanishq/placement-essentials | 515135f417f002db5e59317cce7660f29b8e902a | [
"MIT"
] | null | null | null | greedy/Huffman_coding.cpp | verma-tanishq/placement-essentials | 515135f417f002db5e59317cce7660f29b8e902a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct MinHeapNode{
char data;
unsigned frq;
MinHeapNode *left;
MinHeapNode *right;
MinHeapNode(char data, unsigned frq){
left=right=NULL;
this->data = data;
this->frq = frq;
}
};
struct comp{
bool opera... | 22.169231 | 70 | 0.519084 | verma-tanishq |
9635570a8c1ba2dbdfc1faf6a8ff56b8ffbd5222 | 1,367 | cpp | C++ | Chapter13/TextQuery.cpp | FrogLu/CPPP | 0ee4632c12b287957739e2061fd6b02234465346 | [
"MIT"
] | null | null | null | Chapter13/TextQuery.cpp | FrogLu/CPPP | 0ee4632c12b287957739e2061fd6b02234465346 | [
"MIT"
] | null | null | null | Chapter13/TextQuery.cpp | FrogLu/CPPP | 0ee4632c12b287957739e2061fd6b02234465346 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "StrVec.h"
#include "myfunction.h"
#include "TextQuery.h"
std::set<TextQuery::line_no>::iterator QueryResult::begin()
{
auto ret=lines->begin();
return ret;
}
const std::set<TextQuery::line_no>::iterator QueryResult::begin() const
{
auto ret = lines->cbegin();
return ret;
}
... | 22.783333 | 71 | 0.556693 | FrogLu |
963c7efd265515d3a06622501dd8338d5263c25b | 3,601 | cpp | C++ | pc/attr_id.cpp | rtilder/pyth-client | aaf33e1dd13c7c945f1545dd5b207646cba034d3 | [
"Apache-2.0"
] | 89 | 2021-05-13T15:05:45.000Z | 2022-03-17T16:42:21.000Z | pc/attr_id.cpp | rtilder/pyth-client | aaf33e1dd13c7c945f1545dd5b207646cba034d3 | [
"Apache-2.0"
] | 46 | 2021-05-14T15:26:14.000Z | 2022-03-31T11:33:48.000Z | pc/attr_id.cpp | rtilder/pyth-client | aaf33e1dd13c7c945f1545dd5b207646cba034d3 | [
"Apache-2.0"
] | 50 | 2021-05-18T05:10:38.000Z | 2022-03-31T22:26:28.000Z | #include "attr_id.hpp"
using namespace pc;
///////////////////////////////////////////////////////////////////////////
// attr_dict
attr_dict::pos::pos()
: idx_( 0 ), len_ ( 0 ) {
}
void attr_dict::clear()
{
num_ = 0;
abuf_.clear();
avec_.clear();
}
unsigned attr_dict::get_num_attr() const
{
return num_;
}... | 20.815029 | 75 | 0.550958 | rtilder |
9640b4ab153b76bf5f6ac5aca006d12f618598b4 | 3,907 | cpp | C++ | src/Host.cpp | dgu123/enet-pp | 19559db6201d5b5d679185731bbb0bc623241576 | [
"MIT"
] | null | null | null | src/Host.cpp | dgu123/enet-pp | 19559db6201d5b5d679185731bbb0bc623241576 | [
"MIT"
] | null | null | null | src/Host.cpp | dgu123/enet-pp | 19559db6201d5b5d679185731bbb0bc623241576 | [
"MIT"
] | null | null | null | // Copyright (c) 2010 Johann Duscher (alias Jonny Dee)
//
// 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, m... | 32.02459 | 135 | 0.668032 | dgu123 |
96444558a1df67b443e3e3b51efad318659be8e0 | 17,885 | cpp | C++ | system/test/preprocessor_tools_test.cpp | vinders/pandora_toolbox | f32e301ebaa2b281a1ffc3d6d0c556091420520a | [
"MIT"
] | 2 | 2020-11-19T03:23:35.000Z | 2021-02-25T03:34:40.000Z | system/test/preprocessor_tools_test.cpp | vinders/pandora_toolbox | f32e301ebaa2b281a1ffc3d6d0c556091420520a | [
"MIT"
] | null | null | null | system/test/preprocessor_tools_test.cpp | vinders/pandora_toolbox | f32e301ebaa2b281a1ffc3d6d0c556091420520a | [
"MIT"
] | null | null | null | /*******************************************************************************
MIT License
Copyright (c) 2021 Romain Vinders
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, ... | 38.462366 | 135 | 0.601342 | vinders |
9645aa2ab6dbd5e765fff8cc431bc20f5a56dfb0 | 6,234 | cpp | C++ | src/sigspm/spmtest.cpp | Hexlord/sig | 50be810f3f56e79e56110165972b7911d7519281 | [
"Apache-2.0"
] | null | null | null | src/sigspm/spmtest.cpp | Hexlord/sig | 50be810f3f56e79e56110165972b7911d7519281 | [
"Apache-2.0"
] | null | null | null | src/sigspm/spmtest.cpp | Hexlord/sig | 50be810f3f56e79e56110165972b7911d7519281 | [
"Apache-2.0"
] | null | null | null | # pragma once
# include <sig/gs_vars.h>
# include <sig/sn_poly_editor.h>
# include <sig/sn_lines.h>
# include <sigogl/gl_texture.h>
# include <sigogl/gl_resources.h>
# include <sigogl/ui_radio_button.h>
# include <sigogl/ws_viewer.h>
# include <sigogl/ws_run.h>
# include "spm_manager.h"
class SpmViewer : public WsVi... | 34.441989 | 113 | 0.675008 | Hexlord |
96471df8a208257b172268172b40cd98a5fd3e76 | 2,953 | hpp | C++ | products/PurePhone/services/db/include/db/ServiceDB.hpp | SP2FET/MuditaOS-1 | 2906bb8a2fb3cdd39b167e600f6cc6d9ce1327bd | [
"BSL-1.0"
] | 1 | 2021-11-11T22:56:43.000Z | 2021-11-11T22:56:43.000Z | products/PurePhone/services/db/include/db/ServiceDB.hpp | SP2FET/MuditaOS-1 | 2906bb8a2fb3cdd39b167e600f6cc6d9ce1327bd | [
"BSL-1.0"
] | null | null | null | products/PurePhone/services/db/include/db/ServiceDB.hpp | SP2FET/MuditaOS-1 | 2906bb8a2fb3cdd39b167e600f6cc6d9ce1327bd | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <service-db/DBServiceName.hpp>
#include <service-db/ServiceDBCommon.hpp>
class AlarmEventRecordInterface;
class AlarmsRecordInterface;
class CalllogDB;
class Ca... | 32.450549 | 105 | 0.772773 | SP2FET |
9649ef28c41a5d2316e8dbc02492efc189ff18b7 | 389 | cpp | C++ | Logistics/2-D Transformations/Translate.cpp | amrii1/Computer-Graphics | 597b4ab061b57d222e54c01a7adf2799cb889f3a | [
"MIT"
] | 27 | 2020-01-18T02:30:40.000Z | 2022-03-13T17:15:38.000Z | Logistics/2-D Transformations/Translate.cpp | KINGRANDOLPH/Computer-Graphics | 509d2b06a34d9988e6c866eb6f900a56167f78ac | [
"MIT"
] | 5 | 2019-12-13T14:08:05.000Z | 2020-08-11T15:31:54.000Z | Logistics/2-D Transformations/Translate.cpp | KINGRANDOLPH/Computer-Graphics | 509d2b06a34d9988e6c866eb6f900a56167f78ac | [
"MIT"
] | 16 | 2019-12-17T08:28:42.000Z | 2021-10-31T03:47:54.000Z | #include<iostream>
using namespace std;
int main()
{
int x,y,tx,ty;
cout<<"Translation";
cout<<"Enter point to be translated\n";
cout<<"x: ";
cin>>x;
cout<<"y: ";
cin>>y;
cout<<"Enter the translation factors\n";
cout<<"tx: ";
cin>>tx;
cout<<"ty: ";
cin>>ty;
//Translate
x=x+tx;
y=y+ty;
//
cout<<"Point a... | 15.56 | 41 | 0.580977 | amrii1 |
964c616723335f4c83822526c277ffb11d238bd9 | 455 | hpp | C++ | include/xvega/grammar/marks/mark_rule.hpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 34 | 2020-08-14T14:32:51.000Z | 2022-02-16T23:20:02.000Z | include/xvega/grammar/marks/mark_rule.hpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 19 | 2020-08-20T20:04:39.000Z | 2022-02-28T14:34:37.000Z | include/xvega/grammar/marks/mark_rule.hpp | domoritz/xvega | 3754dee3e7e38e79282ba267cd86c3885807a4cd | [
"BSD-3-Clause"
] | 7 | 2020-08-14T14:18:17.000Z | 2022-02-01T10:59:24.000Z | // Copyright (c) 2020, QuantStack and XVega Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.
#ifndef XVEGA_MARK_RULE_HPP
#define XVEGA_MARK_RULE_HPP
#include "../marks.hpp"
namespace xv
{
struct mark_rule : ... | 19.782609 | 75 | 0.707692 | domoritz |
9654c62959de7600e8de907ad5a6839bd3b48315 | 585 | hpp | C++ | ClassicProblem/reFibonacci.hpp | shaneliu-zf/CodeBook | 0c30e46f5661051d523c621eac9740d6dcbab440 | [
"MIT"
] | 3 | 2020-12-15T12:34:29.000Z | 2020-12-15T21:21:33.000Z | ClassicProblem/reFibonacci.hpp | shane-liu-1010/CodeBook | 0c30e46f5661051d523c621eac9740d6dcbab440 | [
"MIT"
] | null | null | null | ClassicProblem/reFibonacci.hpp | shane-liu-1010/CodeBook | 0c30e46f5661051d523c621eac9740d6dcbab440 | [
"MIT"
] | null | null | null | int reFibonacci(int n){
union{
double d;
long long lld;
}log2={0x23C6EF372FE951P-52*n};
int result=((log2.lld>>52)-0x3FF)/0xB1B9D68A8E5338P-56;
double power=0x727C9716FFB764P-56;
int i=(result+3)/4;
switch(result%4){
case 0:do{ power*=0x19E3779B97F4A8P-52;
case 3:... | 30.789474 | 88 | 0.620513 | shaneliu-zf |
9657b0ece15c4e4552b441526a981b1f5613f3fe | 6,270 | cpp | C++ | wxGUI/ctrl_partition_list.cpp | Null665/partmod | 11f2b90c745e27bdb47b105e0bf45834c62d3527 | [
"BSD-3-Clause"
] | 1 | 2017-02-12T15:10:38.000Z | 2017-02-12T15:10:38.000Z | wxGUI/ctrl_partition_list.cpp | Null665/partmod | 11f2b90c745e27bdb47b105e0bf45834c62d3527 | [
"BSD-3-Clause"
] | 1 | 2016-06-03T18:20:16.000Z | 2016-10-10T22:22:41.000Z | wxGUI/ctrl_partition_list.cpp | Null665/partmod | 11f2b90c745e27bdb47b105e0bf45834c62d3527 | [
"BSD-3-Clause"
] | null | null | null | #include "ctrl_partition_list.h"
#include "../Partmod/numstr.h"
#include <algorithm>
using std::sort;
bool cmp_lv(lvlist a,lvlist b)
{
return strtoull((char*)a.begin_sect.c_str(),0,10) < strtoull((char*)b.begin_sect.c_str(),0,10);
}
wxPartitionList::wxPartitionList(wxWindow *parent,
wx... | 31.039604 | 123 | 0.560447 | Null665 |
965a24213b0e0cce210c5eefd6c24f5e1b0ef002 | 2,730 | hpp | C++ | DT3Core/Scripting/ScriptingParticleColorRandomizer.hpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2018-10-05T15:03:27.000Z | 2019-03-19T11:01:56.000Z | DT3Core/Scripting/ScriptingParticleColorRandomizer.hpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | null | null | null | DT3Core/Scripting/ScriptingParticleColorRandomizer.hpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2016-01-14T07:51:52.000Z | 2021-08-21T08:02:51.000Z | #ifndef DT3_SCRIPTINGPARTICLECOLORRANDOMIZER
#define DT3_SCRIPTINGPARTICLECOLORRANDOMIZER
//==============================================================================
///
/// File: ScriptingParticleColorRandomizer.hpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
... | 35.454545 | 107 | 0.476923 | 9heart |
965acb9105b85009cae75d76f715acec39a19fe4 | 6,485 | cpp | C++ | sdl1/kiloblaster/src/2b_editr.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/kiloblaster/src/2b_editr.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/kiloblaster/src/2b_editr.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | // 2B_EDITR.C
//
// Kiloblaster v.2 Editor
//
// Written by Allen W. Pilgrim
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <fcntl.h>
#include "include/gr.h"
#include "include/keyboard.h"
#include "include/windows.h"
#include "include/gamectrl.h"
#include "include/kconfig.h"
#include "include/2bla... | 24.846743 | 68 | 0.578412 | pdpdds |
965ca6279cac1e760ea9faafa930f71c56e5d994 | 9,743 | cpp | C++ | src/resource/resource_manager.cpp | sndrz/glen | 398fbc146c92a2fa36433e9a9865344bc4c23c6e | [
"MIT"
] | null | null | null | src/resource/resource_manager.cpp | sndrz/glen | 398fbc146c92a2fa36433e9a9865344bc4c23c6e | [
"MIT"
] | null | null | null | src/resource/resource_manager.cpp | sndrz/glen | 398fbc146c92a2fa36433e9a9865344bc4c23c6e | [
"MIT"
] | null | null | null | #include "../../includes/resource/resource_manager.hpp"
#include "../../includes/render/shader_program.hpp"
#include "../../includes/render/texture2d.hpp"
#include "../../includes/render/sprite.hpp"
#include "../includes/logger.hpp"
#include <sstream>
#include <fstream>
#include <iostream>
#include <vector>
#define S... | 41.815451 | 193 | 0.725136 | sndrz |
9660835c2012e72569a4a4f893a430e82ea2076b | 2,939 | cpp | C++ | src/game/client/swarm/vgui/playerswaitingpanel.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | src/game/client/swarm/vgui/playerswaitingpanel.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | src/game/client/swarm/vgui/playerswaitingpanel.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | #include "cbase.h"
#include "PlayersWaitingPanel.h"
#include "vgui/isurface.h"
#include <KeyValues.h>
#include <vgui_controls/Label.h>
#include "c_asw_game_resource.h"
#include "c_playerresource.h"
// memdbgon must be the last include file in a .cpp file!!!
#include <tier0/memdbgon.h>
PlayersWaitingPanel... | 31.602151 | 114 | 0.696155 | BlueNovember |
9663569663a266aae9657999178e5c9e5cbced75 | 12,841 | cpp | C++ | RenderCore/Techniques/CommonResources.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 3 | 2015-12-04T09:16:53.000Z | 2021-05-28T23:22:49.000Z | RenderCore/Techniques/CommonResources.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | null | null | null | RenderCore/Techniques/CommonResources.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 2 | 2015-03-03T05:32:39.000Z | 2015-12-04T09:16:54.000Z | // Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "CommonResources.h"
#include "CommonBindings.h"
#include "../IDevice.h"
#include "../Metal/Metal.h"
#include "../Metal/Resource.h" // for Metal::CompleteIniti... | 62.639024 | 232 | 0.696052 | djewsbury |
966417aa7ffa9a07a97bc85a1348824217b9e726 | 5,067 | cpp | C++ | OpenSHMEM/buffon.cpp | aljo242/nn_training | ce583cbf5a03ec10dbece768961863720f83093b | [
"Apache-2.0"
] | null | null | null | OpenSHMEM/buffon.cpp | aljo242/nn_training | ce583cbf5a03ec10dbece768961863720f83093b | [
"Apache-2.0"
] | null | null | null | OpenSHMEM/buffon.cpp | aljo242/nn_training | ce583cbf5a03ec10dbece768961863720f83093b | [
"Apache-2.0"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <shmem.h>
static const double PI = 3.141592653589793238462643;
int
buffon_laplace_simulate(double a, double b, double l, int trial_num)
{
double angle;
int hits;
int trial;
double x1;
double x2;
double y1;
... | 26.253886 | 86 | 0.525755 | aljo242 |
966c21903180632e01bb45310a389af5a4677467 | 8,719 | cpp | C++ | src/wrapper/lua_qevent.cpp | nddvn2008/bullet-physics-playground | 2895af190054b6a38525b679cf3f241c7147ee6f | [
"Zlib"
] | 1 | 2015-10-05T01:25:18.000Z | 2015-10-05T01:25:18.000Z | src/wrapper/lua_qevent.cpp | nddvn2008/bullet-physics-playground | 2895af190054b6a38525b679cf3f241c7147ee6f | [
"Zlib"
] | null | null | null | src/wrapper/lua_qevent.cpp | nddvn2008/bullet-physics-playground | 2895af190054b6a38525b679cf3f241c7147ee6f | [
"Zlib"
] | 2 | 2015-01-02T20:02:13.000Z | 2018-02-26T03:08:43.000Z | #include "lua_qevent.h"
#include "luabind/dependency_policy.hpp"
namespace luabind{
QT_ENUM_CONVERTER(Qt::KeyboardModifiers)
QT_ENUM_CONVERTER(Qt::MouseButtons)
QT_ENUM_CONVERTER(Qt::MouseButton)
QT_ENUM_CONVERTER(Qt::DropAction)
QT_ENUM_CONVERTER(Qt::DropActions)
}
template<typename T>
bool isEve... | 31.59058 | 118 | 0.634247 | nddvn2008 |
9671460fad50fc96675723b56d38f5e2a22998ce | 1,170 | cpp | C++ | codechef/STROPR.cpp | hardbeater/Coding-competition-solution | d75eb704caa26a33505f0488f91636cc27d4c849 | [
"MIT"
] | 1 | 2016-10-02T03:22:57.000Z | 2016-10-02T03:22:57.000Z | codechef/STROPR.cpp | hardbeater/Coding-competition-solution | d75eb704caa26a33505f0488f91636cc27d4c849 | [
"MIT"
] | null | null | null | codechef/STROPR.cpp | hardbeater/Coding-competition-solution | d75eb704caa26a33505f0488f91636cc27d4c849 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<vector>
#include<cstdlib>
#include<cmath>
#include<cstring>
typedef unsigned long long int lli;
lli mod=1000000007;
using namespace std;
lli a[100010];
lli nu,de;
lli power(lli a,lli b)
{
lli res = 1;
while(b > 0) {
if( b % 2 != 0) {
... | 13.295455 | 36 | 0.432479 | hardbeater |
96727133f2d1e8aa777c256e2a3acb64a6e9a900 | 2,113 | cpp | C++ | Siv3D/src/Siv3D/TexturedRoundRect/SivTexturedRoundRect.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/src/Siv3D/TexturedRoundRect/SivTexturedRoundRect.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/TexturedRoundRect/SivTexturedRoundRect.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/TexturedRoundRect.hpp>
# incl... | 28.945205 | 146 | 0.666351 | tas9n |
967b278cf5c670082ad5a8f615252fd100ec0a30 | 471 | cpp | C++ | PAT/PAT-A/CPP/1019.General Palindromic Number (20 分).cpp | hao14293/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 950 | 2020-02-21T02:39:18.000Z | 2022-03-31T07:27:36.000Z | PAT/PAT-A/CPP/1019.General Palindromic Number (20 分).cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 6 | 2020-04-03T13:08:47.000Z | 2022-03-07T08:54:56.000Z | PAT/PAT-A/CPP/1019.General Palindromic Number (20 分).cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 131 | 2020-02-22T15:35:59.000Z | 2022-03-21T04:23:57.000Z | #include <iostream>
using namespace std;
int main(){
int n, d;
scanf("%d %d", &n, &d);
int arr[40], index = 0;
while(n != 0){
arr[index++] = n % d;
n = n / d;
}
int flag = 0;
for(int i = 0; i < index / 2; i++){
if(arr[i] != arr[index - i - 1]){
printf("No\n");
flag = 1;
break;
}
}
if(!flag) p... | 16.241379 | 37 | 0.469214 | hao14293 |
967d0c1d78f9f96380f7e150f1147a9a66c8626e | 5,445 | cpp | C++ | drawmapfigure.cpp | AirSThib/MinetestMapperGUI | adb672841de32c1ac1ab36d78731831ecfc369d3 | [
"CC-BY-3.0"
] | 1 | 2021-08-05T08:58:04.000Z | 2021-08-05T08:58:04.000Z | drawmapfigure.cpp | AirSThib/MinetestMapperGUI | adb672841de32c1ac1ab36d78731831ecfc369d3 | [
"CC-BY-3.0"
] | null | null | null | drawmapfigure.cpp | AirSThib/MinetestMapperGUI | adb672841de32c1ac1ab36d78731831ecfc369d3 | [
"CC-BY-3.0"
] | 1 | 2021-04-08T14:44:27.000Z | 2021-04-08T14:44:27.000Z | #include "drawmapfigure.h"
QStringList DrawMapFigure::figuresList = QStringList() << QT_TR_NOOP("Unknown")
<< QT_TR_NOOP("Arrow")
<< QT_TR_NOOP("Circle")
... | 23.571429 | 113 | 0.573737 | AirSThib |
968365c6410eec6015a053a24d4d9b633575d595 | 819 | hpp | C++ | runtime-lib/include/modules/ModuleFactory.hpp | edwino-stein/elrond-runtime-linux | 77b64e9c960c53fa8a2a2e5b9d96e060b5c95533 | [
"Apache-2.0"
] | null | null | null | runtime-lib/include/modules/ModuleFactory.hpp | edwino-stein/elrond-runtime-linux | 77b64e9c960c53fa8a2a2e5b9d96e060b5c95533 | [
"Apache-2.0"
] | 13 | 2019-11-29T21:58:39.000Z | 2020-04-02T03:30:43.000Z | runtime-lib/include/modules/ModuleFactory.hpp | edwino-stein/elrond-runtime | 77b64e9c960c53fa8a2a2e5b9d96e060b5c95533 | [
"Apache-2.0"
] | null | null | null | #if !defined _ELROND_RUNTIME_MODULE_FACTORY_HPP
#define _ELROND_RUNTIME_MODULE_FACTORY_HPP
#include "rtTypes.hpp"
namespace elrond {
namespace runtime {
class ModuleFactory {
protected:
elrond::String _name;
elrond::runtime::M... | 26.419355 | 93 | 0.545788 | edwino-stein |
968539cbbbb5705b37cc802cbf63090a1867ae15 | 14,005 | cpp | C++ | src/gtsamutils.cpp | tmcg0/bioslam | d59f07733cb3a9a1de8e6dea4b1fb745d706da09 | [
"MIT"
] | 6 | 2021-01-26T19:31:46.000Z | 2022-03-10T15:33:49.000Z | src/gtsamutils.cpp | tmcg0/bioslam | d59f07733cb3a9a1de8e6dea4b1fb745d706da09 | [
"MIT"
] | 8 | 2021-01-26T16:12:22.000Z | 2021-08-12T18:39:36.000Z | src/gtsamutils.cpp | tmcg0/bioslam | d59f07733cb3a9a1de8e6dea4b1fb745d706da09 | [
"MIT"
] | 1 | 2021-05-02T18:47:42.000Z | 2021-05-02T18:47:42.000Z | // -------------------------------------------------------------------- //
// (c) Copyright 2021 Massachusetts Institute of Technology //
// Author: Tim McGrath //
// All rights reserved. See LICENSE file for license information. //
// -----------------... | 46.374172 | 173 | 0.619564 | tmcg0 |
9689bf7cdb4a419310b90dbf8e3fabc7c0f0af22 | 68,541 | cpp | C++ | main_d2/gameseg.cpp | Kreeblah/ChocolateDescent | ce575a8193c4fa560731203d9aea66355c41cc0d | [
"MIT"
] | 22 | 2019-08-19T21:09:29.000Z | 2022-03-25T23:19:15.000Z | main_d2/gameseg.cpp | Kreeblah/ChocolateDescent | ce575a8193c4fa560731203d9aea66355c41cc0d | [
"MIT"
] | 6 | 2019-11-08T22:17:03.000Z | 2022-03-10T05:02:59.000Z | main_d2/gameseg.cpp | Kreeblah/ChocolateDescent | ce575a8193c4fa560731203d9aea66355c41cc0d | [
"MIT"
] | 6 | 2019-08-24T08:03:14.000Z | 2022-02-04T15:04:52.000Z | /*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... | 30.694581 | 219 | 0.634525 | Kreeblah |
968c396fc3be636ce57ca53eae55cc1abc49e699 | 358 | cpp | C++ | 6. Heaps/Function_operator.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 6. Heaps/Function_operator.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 6. Heaps/Function_operator.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class Func
{
public:
void operator()(){
cout<<"Having Fun inside Operator() func.";
}
};
int main()
{
Func f;// Constructor
f();// Overloaded() Operator = Function call f is an object. As it is a object but it is behaving like a fu... | 16.272727 | 126 | 0.583799 | suraj0803 |
968c4e4d936965d36e0e8e9fc2f6cf999205efaa | 3,579 | cpp | C++ | src/reduced_alphabet_coder.cpp | metaVariable/ghostz | 273cc1efe6278f8012fa9232d854e392b467477f | [
"BSD-2-Clause"
] | null | null | null | src/reduced_alphabet_coder.cpp | metaVariable/ghostz | 273cc1efe6278f8012fa9232d854e392b467477f | [
"BSD-2-Clause"
] | null | null | null | src/reduced_alphabet_coder.cpp | metaVariable/ghostz | 273cc1efe6278f8012fa9232d854e392b467477f | [
"BSD-2-Clause"
] | null | null | null | /*
* reduced_alphabet_coder.cpp
*
* Created on: 2012/11/29
* Author: shu
*/
#include <iostream>
#include <stdint.h>
#include <vector>
#include <string.h>
#include <string>
#include <algorithm>
#include <limits.h>
#include "alphabet_type.h"
#include "alphabet_coder.h"
#include "reduced_alphabet_coder.h"
usi... | 31.955357 | 117 | 0.703828 | metaVariable |
f7b9a5ba0cc3bb12e0efd5f74638123a0b2f1f7b | 551 | cc | C++ | src/gb/utils/log.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | 3 | 2021-11-30T20:37:33.000Z | 2022-01-06T20:26:52.000Z | src/gb/utils/log.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | null | null | null | src/gb/utils/log.cc | jonatan-ekstrom/FreshBoy | 228302e720f4a8fe4bf5c911e86588e412c0ce0a | [
"MIT"
] | null | null | null | #include "log.h"
#include <iostream>
namespace {
bool Enabled{false};
}
namespace gb::log {
void Enable() { Enabled = true; }
std::string Hex(const u16 address) {
constexpr char c[]{"0123456789ABCDEF"};
std::string res{"0x"};
res.push_back(c[(address >> 12) & 0x0F]);
res.push_back(c[(address >> ... | 19.678571 | 45 | 0.598911 | jonatan-ekstrom |
f7bd6786d3a823303b0c3fbfe741d49f43adf94d | 5,972 | hpp | C++ | include/svgpp/parser/external_function/parse_misc_impl.hpp | RichardCory/svgpp | 801e0142c61c88cf2898da157fb96dc04af1b8b0 | [
"BSL-1.0"
] | 428 | 2015-01-05T17:13:54.000Z | 2022-03-31T08:25:47.000Z | include/svgpp/parser/external_function/parse_misc_impl.hpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 61 | 2015-01-08T14:32:27.000Z | 2021-12-06T16:55:11.000Z | include/svgpp/parser/external_function/parse_misc_impl.hpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 90 | 2015-05-19T04:56:46.000Z | 2022-03-26T16:42:50.000Z | // Copyright Oleg Maximenko 2016.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://github.com/svgpp/svgpp for library home page.
#pragma once
#include <boost/spirit/include/qi.hpp>
#include <svg... | 40.90411 | 139 | 0.708138 | RichardCory |
f7c0b4f3b57ecb89c975c1f0a90b0e89490bbaf1 | 3,477 | cpp | C++ | src/jaegertracing/thrift-gen/aggregation_validator_types.cpp | ankit-varma10/jaeger-client-cpp | 855cddb1352347f8199be7e10c69fe970a020e22 | [
"Apache-2.0"
] | null | null | null | src/jaegertracing/thrift-gen/aggregation_validator_types.cpp | ankit-varma10/jaeger-client-cpp | 855cddb1352347f8199be7e10c69fe970a020e22 | [
"Apache-2.0"
] | null | null | null | src/jaegertracing/thrift-gen/aggregation_validator_types.cpp | ankit-varma10/jaeger-client-cpp | 855cddb1352347f8199be7e10c69fe970a020e22 | [
"Apache-2.0"
] | 1 | 2020-03-09T04:52:07.000Z | 2020-03-09T04:52:07.000Z | /**
* Autogenerated by Thrift Compiler (0.9.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "aggregation_validator_types.h"
#include <algorithm>
#include <ostream>
#include <thrift/TToString.h>
namespace jaegertracing { namespace thrift {
ValidateTraceResponse... | 26.746154 | 144 | 0.672131 | ankit-varma10 |
f7c4ab92496fa5c7064134eae25f005cc2e84a66 | 132 | hpp | C++ | InvalidCardException.hpp | FrankBotos/PokerHandStrength | bd11de0f90bbf517b3b4cd10d7d6c933478047a9 | [
"MIT"
] | null | null | null | InvalidCardException.hpp | FrankBotos/PokerHandStrength | bd11de0f90bbf517b3b4cd10d7d6c933478047a9 | [
"MIT"
] | null | null | null | InvalidCardException.hpp | FrankBotos/PokerHandStrength | bd11de0f90bbf517b3b4cd10d7d6c933478047a9 | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
class InvalidCardException : public std::runtime_error
{
public:
InvalidCardException();
};
| 13.2 | 54 | 0.75 | FrankBotos |
f7c4ed699c8b50d7aa69b2a6e9cdc331830bdc6e | 744 | hpp | C++ | cpp/include/example/AsioTcpClient.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2018-06-06T20:33:28.000Z | 2018-06-06T20:33:28.000Z | cpp/include/example/AsioTcpClient.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | null | null | null | cpp/include/example/AsioTcpClient.hpp | skydiveuas/skylync | 73db7fe4593e262a1fc1a7b61c18190275abe723 | [
"MIT"
] | 1 | 2020-07-31T03:39:15.000Z | 2020-07-31T03:39:15.000Z | #ifndef EXAMPLE_ASIOTCPCLIENT_HPP
#define EXAMPLE_ASIOTCPCLIENT_HPP
#include "ICommInterface.hpp"
#include "asio.hpp"
#include <array>
namespace sl
{
namespace example
{
class AsioTcpClient : public sl::ICommInterface
{
public:
AsioTcpClient(ICommInterface::Listener* _listener, asio::io_context& _ioContext);
... | 17.714286 | 85 | 0.735215 | skydiveuas |
f7cf9513215406093d090b3305e6927d77e21171 | 1,007 | hpp | C++ | doc/quickbook/oglplus/quickref/enums/ext/debug_output_source.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | doc/quickbook/oglplus/quickref/enums/ext/debug_output_source.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | doc/quickbook/oglplus/quickref/enums/ext/debug_output_source.hpp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | // File doc/quickbook/oglplus/quickref/enums/ext/debug_output_source.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/ext/debug_output_source.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
// Distributed ... | 33.566667 | 73 | 0.784508 | matus-chochlik |
f7cfff6dd03f729f81f5df153e563d7bb50caacf | 648 | cpp | C++ | MPAGS-CIPHER/writeOutput.cpp | MPAGS-CPP-2019/mpags-day-2-JamesDownsLab | 9039e31b21c46008b4759e06a9e2cadff1b05014 | [
"MIT"
] | null | null | null | MPAGS-CIPHER/writeOutput.cpp | MPAGS-CPP-2019/mpags-day-2-JamesDownsLab | 9039e31b21c46008b4759e06a9e2cadff1b05014 | [
"MIT"
] | 1 | 2019-10-31T18:00:48.000Z | 2019-10-31T18:00:48.000Z | MPAGS-CIPHER/writeOutput.cpp | MPAGS-CPP-2019/mpags-day-2-JamesDownsLab | 9039e31b21c46008b4759e06a9e2cadff1b05014 | [
"MIT"
] | 1 | 2019-10-31T09:23:24.000Z | 2019-10-31T09:23:24.000Z | #include "writeOutput.hpp"
#include <string>
#include <fstream>
#include <iostream>
void write_output(
const std::string &outputFile,
const std::string &outputText) {
/*
* Writes outputText to outputFile. If outputFile is an empty string
* write the output to the console.
*/
if ... | 24.923077 | 72 | 0.57716 | MPAGS-CPP-2019 |
f7d09690c76197e30d4bb019fdd51dfe7b72b611 | 2,039 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlTextWriter.WriteEndElement Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlTextWriter.WriteEndElement Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Data/Classic WebData XmlTextWriter.WriteEndElement Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
// <Snippet1>
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{
XmlTextWriter^ writer = nullptr;
String^ filename = "sampledata.xml";
writer = gcnew XmlTextWriter( filename, nullptr );
//Use indenting for readability.
... | 26.828947 | 82 | 0.62972 | hamarb123 |
f7d0a156d1a840df1a733e12ecaeb962021e42c7 | 1,522 | cpp | C++ | shared/vkRenderers/VulkanClear.cpp | adoug/3D-Graphics-Rendering-Cookbook | dabffed670b8be5a619f0f62b10e0cc8ccdd5a36 | [
"MIT"
] | 399 | 2021-06-03T02:42:20.000Z | 2022-03-27T23:23:15.000Z | shared/vkRenderers/VulkanClear.cpp | adoug/3D-Graphics-Rendering-Cookbook | dabffed670b8be5a619f0f62b10e0cc8ccdd5a36 | [
"MIT"
] | 7 | 2021-07-13T02:36:01.000Z | 2022-03-26T03:46:37.000Z | shared/vkRenderers/VulkanClear.cpp | adoug/3D-Graphics-Rendering-Cookbook | dabffed670b8be5a619f0f62b10e0cc8ccdd5a36 | [
"MIT"
] | 53 | 2021-06-02T20:02:24.000Z | 2022-03-29T15:36:30.000Z | #include "shared/Utils.h"
#include "shared/UtilsMath.h"
#include "shared/vkRenderers/VulkanClear.h"
#include "shared/EasyProfilerWrapper.h"
VulkanClear::VulkanClear(VulkanRenderDevice& vkDev, VulkanImage depthTexture)
: RendererBase(vkDev, depthTexture)
, shouldClearDepth(depthTexture.image != VK_NULL_HANDLE)
{
if (!... | 32.382979 | 139 | 0.761498 | adoug |
f7d69ac314df9f0d7e36c1472107ed435f235080 | 1,384 | cc | C++ | tests/elle/Printable.cc | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | tests/elle/Printable.cc | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | tests/elle/Printable.cc | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | #include <elle/test.hh>
#include <elle/Printable.hh>
#include <iostream>
#include <sstream>
namespace elle
{
class ComplexNumber : public Printable
{
public:
ComplexNumber(int real, int imag);
~ComplexNumber();
void
set(int real, int imag);
void
print(std::ostream& stream) const;
... | 17.74359 | 67 | 0.615607 | infinitio |
f7d7561837a92999a315ff140df0d9893a61cd26 | 1,109 | cpp | C++ | Engine/Source/Rendering/VertexArray.cpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | 2 | 2022-01-11T21:15:31.000Z | 2022-02-22T21:14:33.000Z | Engine/Source/Rendering/VertexArray.cpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | Engine/Source/Rendering/VertexArray.cpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | #pragma once
#include "VertexArray.h"
#include "VertexBufferLayout.h"
#include "Vertexbuffer.h"
VertexArray::VertexArray()
{
glGenVertexArrays(1, &m_RendererID);
}
VertexArray::~VertexArray()
{
glDeleteVertexArrays(1, &m_RendererID);
}
void VertexArray::Addbuffer(const VertexBuffer& vb, const VertexBufferLayout& l... | 24.644444 | 133 | 0.74752 | wdrDarx |
f7d813c47898857d7f483f3d86bcdc4f637aac01 | 1,447 | cpp | C++ | exercises/C01-Beginner_Exercises/S06-fwcTools2/Solutions/160_ChangeTextSOLN.cpp | rdholder/FeetWetCoding | c0106009eae0ff0fadd7e96b8adfe3a815d5dcfb | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2016-04-28T19:31:51.000Z | 2016-05-22T06:57:47.000Z | exercises/C01-Beginner_Exercises/S06-fwcTools2/Solutions/160_ChangeTextSOLN.cpp | rdholder/FeetWetCoding | c0106009eae0ff0fadd7e96b8adfe3a815d5dcfb | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | exercises/C01-Beginner_Exercises/S06-fwcTools2/Solutions/160_ChangeTextSOLN.cpp | rdholder/FeetWetCoding | c0106009eae0ff0fadd7e96b8adfe3a815d5dcfb | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | // copyright (c) 2011 Robert Holder, Janice Dugger.
// See HELP.html included in this distribution.
#include <exercises/C01_S06.h>
// ==========================================
// = THIS IS THE SOLUTION CODE =
// = THIS IS *NOT* THE EXERCISE CODE =
// = (If you meant to look at the exercise =
// ... | 30.787234 | 104 | 0.514858 | rdholder |
f7e15c976119ea8f370ce1e1037c6aeb883717a6 | 4,000 | cpp | C++ | server/Server/Packets/CGUnEquipHandler.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Server/Packets/CGUnEquipHandler.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Server/Packets/CGUnEquipHandler.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
#include "CGUnEquip.h"
#include "Type.h"
#include "Log.h"
#include "GamePlayer.h"
#include "Scene.h"
#include "Obj_Human.h"
#include "GCUnEquipResult.h"
#include "GCCharEquipment.h"
#include "HumanItemLogic.h"
#include "ItemOperator.h"
extern UINT GetEquipmentMaxLevelGemID(Item *pEquipment);
UIN... | 27.39726 | 89 | 0.5575 | viticm |
f7e9ec9db344b25b9553fee2fdad35f3de141b20 | 464 | hpp | C++ | renderboi/toolbox/mesh_generators/mesh_type.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/toolbox/mesh_generators/mesh_type.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | renderboi/toolbox/mesh_generators/mesh_type.hpp | deqyra/GLSandbox | 40d641ebbf6af694e8640a584d283876d128748c | [
"MIT"
] | null | null | null | #ifndef RENDERBOI__TOOLBOX__MESH_GENERATORS__MESH_TYPE_HPP
#define RENDERBOI__TOOLBOX__MESH_GENERATORS__MESH_TYPE_HPP
namespace Renderboi
{
/// @brief Collection of literals describing the different shapes a mesh can
// come in. Each of these can be mapped to a concrete MeshGenerator subclass.
enum class MeshType
{
... | 23.2 | 77 | 0.797414 | deqyra |
f7ed264042caccf0b2df1c7d7acfbb8d9262ae47 | 918 | cpp | C++ | C_CPP/final/tree.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/final/tree.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | C_CPP/final/tree.cpp | dengchongsen/study_codes | 29d74c05d340117f76aafcc320766248a0f8386b | [
"MulanPSL-1.0"
] | null | null | null | #include<iostream>
#include<cstring>
#include<queue>
using namespace std;
char ans[99];
int lans = 0;
char ca[99];
char cb[99];
int la, lb;
void dfs(int index){
if( ca[index] == '\0' || ca[index] == '#') {
ans[lans++] = '#';
return ;
}
ans[lans++] = ca[index];
dfs( 2*index+1 );
dfs( 2*index+2);
}
... | 16.105263 | 46 | 0.446623 | dengchongsen |
f7edf7b2b27d08a886d369f0bf63b52a5fe87b87 | 5,030 | cpp | C++ | PrinterContextNativeRuntimeComponent/PrinterProperty.cpp | Ganeshcoep/print-oem-samples | 0508c31e2881ee0d4379cd7ff830e0062e818a6c | [
"MIT"
] | 4 | 2020-03-25T20:39:20.000Z | 2021-04-20T16:11:17.000Z | PrinterContextNativeRuntimeComponent/PrinterProperty.cpp | Ganeshcoep/print-oem-samples | 0508c31e2881ee0d4379cd7ff830e0062e818a6c | [
"MIT"
] | 2 | 2017-12-13T16:44:29.000Z | 2018-11-14T16:01:37.000Z | PrinterContextNativeRuntimeComponent/PrinterProperty.cpp | Ganeshcoep/print-oem-samples | 0508c31e2881ee0d4379cd7ff830e0062e818a6c | [
"MIT"
] | 7 | 2019-06-13T23:15:42.000Z | 2020-08-05T14:57:37.000Z | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
* This class re... | 33.986486 | 105 | 0.541948 | Ganeshcoep |
f7ef46b21439489c8caa208e04fb2175b74b4130 | 11,891 | cpp | C++ | MQUVCopyByVCol.cpp | devil-tamachan/MQUVCopyByVCol | d1a2d16df137a7759b7b13d2dcd2573c2ddf47d7 | [
"BSD-3-Clause"
] | null | null | null | MQUVCopyByVCol.cpp | devil-tamachan/MQUVCopyByVCol | d1a2d16df137a7759b7b13d2dcd2573c2ddf47d7 | [
"BSD-3-Clause"
] | null | null | null | MQUVCopyByVCol.cpp | devil-tamachan/MQUVCopyByVCol | d1a2d16df137a7759b7b13d2dcd2573c2ddf47d7 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------
//
// MQUVCopyByVCol
//
// Copyright(C) 1999-2013, tetraface Inc.
//
// Sample for Object plug-in for deleting faces with reserving lines
// in the faces.
// Created DLL must be installed in "Plugins\Object" directory.
... | 26.307522 | 305 | 0.570516 | devil-tamachan |
f7f14c072123066b3863735cf881deb6aecd6db0 | 1,411 | cpp | C++ | lib/mayaUsd/undo/UsdUndoManager.cpp | smithw-adsk/maya-usd | 3a2278111e631423ffa9bae28158a6d2299a200e | [
"Apache-2.0"
] | null | null | null | lib/mayaUsd/undo/UsdUndoManager.cpp | smithw-adsk/maya-usd | 3a2278111e631423ffa9bae28158a6d2299a200e | [
"Apache-2.0"
] | 4 | 2020-05-04T19:21:26.000Z | 2020-05-08T15:30:38.000Z | lib/mayaUsd/undo/UsdUndoManager.cpp | smithw-adsk/maya-usd | 3a2278111e631423ffa9bae28158a6d2299a200e | [
"Apache-2.0"
] | 1 | 2020-05-04T22:14:09.000Z | 2020-05-04T22:14:09.000Z | //
// Copyright 2020 Autodesk
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 26.12963 | 92 | 0.744862 | smithw-adsk |
f7f4961c679525497c2980665598f0c615d4197d | 5,802 | inl | C++ | Core/DianYing/Include/Dy/Management/Inline/MWindowImpl.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | 4 | 2019-03-17T19:46:54.000Z | 2019-12-09T20:11:01.000Z | Core/DianYing/Include/Dy/Management/Inline/MWindowImpl.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | Core/DianYing/Include/Dy/Management/Inline/MWindowImpl.inl | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | #ifndef GUARD_DY_MANAGEMENT_WINDOWMANAGER_IMPL_INL
#define GUARD_DY_MANAGEMENT_WINDOWMANAGER_IMPL_INL
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY... | 35.814815 | 121 | 0.715615 | liliilli |
f7f5e739d6d881d28940dd7fe11e1b1508d19b4a | 749 | cpp | C++ | Sources/LibRT/source/RTBufferDescriptor.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibRT/source/RTBufferDescriptor.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibRT/source/RTBufferDescriptor.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | /// https://github.com/Rominitch/MouCaLab
/// \author Rominitch
/// \license No license
#include "Dependencies.h"
#include <LibRT/include/RTBufferDescriptor.h>
namespace RT
{
ComponentDescriptor::ComponentDescriptor(const uint64_t nbComponents, const Type formatType, const ComponentUsage componentUsage, const bool ... | 32.565217 | 155 | 0.781041 | Rominitch |
f7f811321f9e8fc5459641b58262b596b9d77852 | 2,524 | cpp | C++ | application/game.cpp | YoeyT/IPASS-SSD1351-Tron | 9f01b8ac84fe3304bcc711dd43e3211b178bb9c0 | [
"BSL-1.0"
] | null | null | null | application/game.cpp | YoeyT/IPASS-SSD1351-Tron | 9f01b8ac84fe3304bcc711dd43e3211b178bb9c0 | [
"BSL-1.0"
] | null | null | null | application/game.cpp | YoeyT/IPASS-SSD1351-Tron | 9f01b8ac84fe3304bcc711dd43e3211b178bb9c0 | [
"BSL-1.0"
] | null | null | null | #include "game.hpp"
void StartGame(SSD1351& screen, hwlib::pin_in& upKey, hwlib::pin_in& downKey, hwlib::pin_in& leftKey, hwlib::pin_in& rightKey)
{
//setup
screen.Init();
screen.FillScreen(0);
//player
bike player(12, 12, color(0, 0xFF, 0xFF));
player.Draw(screen);
//AI
AIBike AI(111... | 26.020619 | 126 | 0.596276 | YoeyT |
f7fab0ab8126e6982361b4bbd2a0ea4f501bb302 | 5,085 | cpp | C++ | tests/lexy/dsl/capture.cpp | netcan/lexy | 775e3d6bf1169ce13b08598d774e707c253f0792 | [
"BSL-1.0"
] | null | null | null | tests/lexy/dsl/capture.cpp | netcan/lexy | 775e3d6bf1169ce13b08598d774e707c253f0792 | [
"BSL-1.0"
] | null | null | null | tests/lexy/dsl/capture.cpp | netcan/lexy | 775e3d6bf1169ce13b08598d774e707c253f0792 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2020 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#include <lexy/dsl/capture.hpp>
#include "verify.hpp"
#include <lexy/callback.hpp>
#include <lexy/dsl/label.hpp>
#include <le... | 31.006098 | 96 | 0.532153 | netcan |
7901240c1580bfaa28c775b4e754cdbd074a422a | 270 | cpp | C++ | frontend/typing/types/meta.cpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/typing/types/meta.cpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | frontend/typing/types/meta.cpp | NicolaiLS/becarre | cf23e80041f856f50b9f96c087819780dfe1792c | [
"MIT"
] | null | null | null | #include <becarre/frontend/typing/types/meta.hpp>
#include <becarre/frontend/typing/types.hpp>
namespace becarre::frontend::typing::types
{
Type meta(Type const & value) noexcept
{
return Type(types::Meta{value});
}
} // namespace becarre::frontend::typing::types
| 19.285714 | 49 | 0.740741 | NicolaiLS |
7903fcb0a505e1afe2adbec3030a92f354b3c8dd | 36,384 | cpp | C++ | plugins/Rembed/Rembed.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | plugins/Rembed/Rembed.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | plugins/Rembed/Rembed.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems®.
Licensed under the GPL, Version 2.0 or later
you may not use this file except in compliance with the License.
Unless required by applicable law or agreed to in writing, softwar... | 32.572963 | 152 | 0.587456 | oxhead |
790447cc78fa125da041f588d6d0229913035315 | 1,628 | cpp | C++ | leetcode.com/0710 Random Pick with Blacklist/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0710 Random Pick with Blacklist/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0710 Random Pick with Blacklist/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <iostream>
#include <vector>
#include <random>
#include <unordered_map>
using namespace std;
// ref: Java O(B) / O(1), HashMap
// https://leetcode.com/problems/random-pick-with-blacklist/discuss/144624/Java-O(B)-O(1)-HashMap
// this should be the right way to approch this problem
// I don't think other binar... | 27.59322 | 97 | 0.562039 | sky-bro |
79071baa18a4f9615d7747c08a4ed592dbb72c5f | 132 | cpp | C++ | Modules/Nulstar/NulstarMain/NPluginManger.cpp | Berzeck/Nulstar | d3a7f59ee617e045966071d19c39d1ab63b23114 | [
"MIT"
] | 17 | 2018-08-13T23:37:31.000Z | 2019-04-25T18:31:22.000Z | Modules/Nulstar/NulstarMain/NPluginManger.cpp | Berzeck/Nulstar-v0 | d3a7f59ee617e045966071d19c39d1ab63b23114 | [
"MIT"
] | 7 | 2018-09-03T22:43:15.000Z | 2019-07-14T06:57:16.000Z | Modules/Nulstar/NulstarMain/NPluginManger.cpp | CCC-NULS/Nulstar | f48d869254f4adb60e7c95f0e313bfb44ab8dc84 | [
"MIT"
] | 7 | 2018-09-07T10:05:08.000Z | 2020-02-03T12:18:49.000Z | #include "NPluginManger.h"
NPluginManger::NPluginManger(QObject* parent)
: QObject(parent)
{
}
void NPluginManger::scan()
{
}
| 12 | 45 | 0.712121 | Berzeck |
790e3b95739046c5c4aa15e12e5f987bc2b75c5f | 1,501 | cpp | C++ | examples/NUCLEO-G070RB/ADC/Main.cpp | marangisto/HAL | fa56b539f64b277fa122a010e4ee643463f58498 | [
"MIT"
] | 2 | 2019-09-12T04:12:16.000Z | 2020-09-23T19:13:06.000Z | examples/NUCLEO-G070RB/ADC/Main.cpp | marangisto/HAL | fa56b539f64b277fa122a010e4ee643463f58498 | [
"MIT"
] | 2 | 2019-09-10T13:47:50.000Z | 2020-02-24T03:27:47.000Z | examples/NUCLEO-G070RB/ADC/Main.cpp | marangisto/HAL | fa56b539f64b277fa122a010e4ee643463f58498 | [
"MIT"
] | 3 | 2019-08-31T12:58:28.000Z | 2020-03-26T22:56:34.000Z | #include <timer.h>
#include <dac.h>
#include <adc.h>
#include <dma.h>
using hal::sys_tick;
using hal::sys_clock;
using namespace hal::gpio;
using namespace hal::timer;
using namespace hal::adc;
using namespace hal::dma;
typedef hal::timer::timer_t<3> trig;
typedef hal::dac::dac_t<1> dac;
typedef hal::dma::dma_t<1> dm... | 22.402985 | 62 | 0.655563 | marangisto |
7912e35c058c92610901e5d8cbd7a53cc35be4be | 1,965 | cpp | C++ | engine/source/Actions/ActionParallel.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 11 | 2020-10-21T15:03:41.000Z | 2020-11-03T09:15:28.000Z | engine/source/Actions/ActionParallel.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | null | null | null | engine/source/Actions/ActionParallel.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 1 | 2020-10-27T00:13:41.000Z | 2020-10-27T00:13:41.000Z | /////////////////////////////////////////////////////
// 2016 © Max Gittel //
/////////////////////////////////////////////////////
// SGEngine
#include "ActionParallel.h"
namespace sge {
ActionParallel::ActionParallel(){
_time=0;
}
ActionParalle... | 23.674699 | 73 | 0.410178 | MaxSigma |
79197bd50f1a481121720400a0547845e64b525d | 233 | cpp | C++ | atcoder/92B.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | atcoder/92B.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | atcoder/92B.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n,d,x,ans;
cin>>n>>d>>x;
ans = 0;
while(n--){
int a;
cin>>a;
ans += ((d-1)/a + 1);
}
cout<<ans+x<<endl;
return 0;
}
| 12.944444 | 29 | 0.424893 | freedomDR |
791a8085867aca9e5606d061a6769ac8bb911637 | 2,066 | cpp | C++ | Tropelet.cpp | mls-m5/NoMaintenance | c54c702b658c6a3abe36ff2d175b5c923d4ca55f | [
"Apache-2.0"
] | null | null | null | Tropelet.cpp | mls-m5/NoMaintenance | c54c702b658c6a3abe36ff2d175b5c923d4ca55f | [
"Apache-2.0"
] | null | null | null | Tropelet.cpp | mls-m5/NoMaintenance | c54c702b658c6a3abe36ff2d175b5c923d4ca55f | [
"Apache-2.0"
] | null | null | null | /*
* Tropelet.cpp
*
* Created on: 6 feb 2013
* Author: mattias
*/
#include "Tropelet.h"
#include "Screen.h"
struct Position{
double X, Y;
};
Tropelet::Tropelet() {
// TODO Auto-generated constructor stub
}
Tropelet::~Tropelet() {
// TODO Auto-generated destructor stub
}
void Tropelet::Fire(double X,... | 29.098592 | 89 | 0.580348 | mls-m5 |
791f9f712e7bfca11b7601af6cfffbcd9ae19c64 | 3,784 | hpp | C++ | include/navigation.hpp | maarufvazifdar/shamazon_robot | ffdbacf649dcac604e5366e9ac8ae3b519b9599d | [
"BSD-3-Clause"
] | null | null | null | include/navigation.hpp | maarufvazifdar/shamazon_robot | ffdbacf649dcac604e5366e9ac8ae3b519b9599d | [
"BSD-3-Clause"
] | 1 | 2021-12-13T21:15:09.000Z | 2021-12-13T21:15:09.000Z | include/navigation.hpp | maarufvazifdar/shamazon_robot | ffdbacf649dcac604e5366e9ac8ae3b519b9599d | [
"BSD-3-Clause"
] | 8 | 2021-11-28T00:00:03.000Z | 2021-12-13T18:59:55.000Z | /**
* BSD-3 Clause
*
* Copyright (c) 2021 Maaruf Vazifdar, Maitreya Kulkarni, Pratik Bhujnbal
*
* 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 ... | 29.795276 | 80 | 0.701903 | maarufvazifdar |
7920a3179398f183c0a1fd5e77ff82528aa06912 | 2,355 | cpp | C++ | PhysicsSandbox/SandboxGeometry/Shapes2d/SatShape2d.cpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | 1 | 2022-03-26T21:08:19.000Z | 2022-03-26T21:08:19.000Z | PhysicsSandbox/SandboxGeometry/Shapes2d/SatShape2d.cpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | null | null | null | PhysicsSandbox/SandboxGeometry/Shapes2d/SatShape2d.cpp | jodavis42/PhysicsSandbox | 3119caaa77721041440cdc1b3cf96d4bd9e2d98b | [
"MIT"
] | null | null | null | #include "Precompiled.hpp"
#include "SatShape2d.hpp"
#include "SandboxGeometry/Shapes2d/Line2d.hpp"
namespace SandboxGeometry
{
//-------------------------------------------------------------------SatShape2d
size_t SatShape2d::PointCount() const
{
return mPoints.Size();
}
size_t SatShape2d::EdgeCount() const
{
... | 27.068966 | 127 | 0.693418 | jodavis42 |
792286095a28e6b42b9bd4b8b9efe1c808a9d413 | 6,038 | cpp | C++ | LibXDK/src/_BaseXValue.cpp | sim9108/SDKS | 2823124fa0a22f8a77d131e7a2fb7f4aba59129c | [
"MIT"
] | 2 | 2015-03-23T01:08:49.000Z | 2015-03-23T02:28:17.000Z | LibXDK/src/_BaseXValue.cpp | sim9108/SDKS | 2823124fa0a22f8a77d131e7a2fb7f4aba59129c | [
"MIT"
] | null | null | null | LibXDK/src/_BaseXValue.cpp | sim9108/SDKS | 2823124fa0a22f8a77d131e7a2fb7f4aba59129c | [
"MIT"
] | null | null | null | #include <LibXtra/_BaseXValue.h>
_BaseXValue::_BaseXValue(_MOAFactory* mobj, const char* title)
:refcnt_(1), moa_obj_{ mobj }, utils_{ moa_obj_ }, xtra_name_{ title }
{
this->moa_obj_->AddRef();
++DllgXtraInterfaceCount;
}
_BaseXValue::~_BaseXValue(void)
{
this->moa_obj_->Release();
--DllgXtraInterfaceCount;
}
... | 22.784906 | 147 | 0.753395 | sim9108 |
7924f71f624649dd618883c3138e8cfb96b4f59d | 6,030 | cpp | C++ | lib/Analysis/Memory/BitMemoryTrait.cpp | yukatan1701/tsar | a6f95cdaeb117ccd5fcb775b471b1aa17c45f4e8 | [
"Apache-2.0"
] | 14 | 2019-11-04T15:03:40.000Z | 2021-09-07T17:29:40.000Z | lib/Analysis/Memory/BitMemoryTrait.cpp | yukatan1701/tsar | a6f95cdaeb117ccd5fcb775b471b1aa17c45f4e8 | [
"Apache-2.0"
] | 11 | 2019-11-29T21:18:12.000Z | 2021-12-22T21:36:40.000Z | lib/Analysis/Memory/BitMemoryTrait.cpp | yukatan1701/tsar | a6f95cdaeb117ccd5fcb775b471b1aa17c45f4e8 | [
"Apache-2.0"
] | 17 | 2019-10-15T13:56:35.000Z | 2021-10-20T17:21:14.000Z | //=== BitMemoryTrait.cpp Bitwise Representation of Memory Traits *- C++ -*===//
//
// Traits Static Analyzer (SAPFOR)
//
// Copyright 2018 DVM System Group
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... | 32.95082 | 80 | 0.626368 | yukatan1701 |
792eef6bec38f4ac702f6857dfe889116b1e3181 | 8,757 | cpp | C++ | data/121.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/121.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/121.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int v, g4U , WW
, WtYKC,Yu,Fuf /*7q*/,aDKMr, U3 ,
fQ,
Hnl8
,
kII , wd,kAx,d5,dt83
,
Ax
,//M
m,
se
,jX ,
hX6 ,
pNn,tuaf, W4
,
HD,
Pr,//e
yIm9
,P7A ,/*d*/esSeWz ,Yi8NA, tT ,
k1E6,CM, Wp ,eGQ/*HZ*/, S, LLm
, mO ,tnO3//6
, PRO, k9td, GCN; void
f_f0(){
{ { return
;
return ; /*wtv7*... | 10.588875 | 82 | 0.444787 | TianyiChen |
79304246b4aa17ff848ca3fb5d38677493231890 | 4,242 | cpp | C++ | src/hooks/VRController.cpp | Lythium4848/SmoothedController | 97fb5cb547637f41565b563a13dc6a1e90f1e51f | [
"MIT"
] | null | null | null | src/hooks/VRController.cpp | Lythium4848/SmoothedController | 97fb5cb547637f41565b563a13dc6a1e90f1e51f | [
"MIT"
] | null | null | null | src/hooks/VRController.cpp | Lythium4848/SmoothedController | 97fb5cb547637f41565b563a13dc6a1e90f1e51f | [
"MIT"
] | null | null | null | #include "SmoothedController.hpp"
#include "SmoothedControllerConfig.hpp"
#include "Wrapper.hpp"
#include <map>
#include "GlobalNamespace/IVRPlatformHelper.hpp"
#include "GlobalNamespace/VRController.hpp"
#include "GlobalNamespace/VRControllerTransformOffset.hpp"
#include "System/Math.hpp"
#include "UnityEngine/Mathf... | 42.42 | 183 | 0.7157 | Lythium4848 |
79310b5ae511e49799a3979344f4ec74764770f6 | 1,217 | cpp | C++ | codeforces/C - Meme Problem/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - Meme Problem/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - Meme Problem/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: * kzvd4729 created: Nov/12/2018 21:14
* solution_verdict: Accepted language: GNU C++14
* run... | 28.97619 | 111 | 0.384552 | kzvd4729 |
a6a89fa8355feac8f43f05f3960f766db13c8997 | 489 | cpp | C++ | src/Source/Chunks/Shex/SyncFlags.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | 20 | 2015-03-29T02:14:03.000Z | 2021-11-14T12:27:02.000Z | src/Source/Chunks/Shex/SyncFlags.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | null | null | null | src/Source/Chunks/Shex/SyncFlags.cpp | tgjones/slimshader-cpp | a1833e2eccf32cccfe33aa7613772503eca963ee | [
"MIT"
] | 12 | 2015-05-04T06:39:10.000Z | 2022-02-23T06:48:04.000Z | #include "PCH.h"
#include "SyncFlags.h"
#include "Decoder.h"
using namespace std;
using namespace SlimShader;
string SlimShader::ToString(SyncFlags value)
{
string result;
if (HasFlag(value, SyncFlags::UnorderedAccessViewGlobal))
result += "_uglobal";
if (HasFlag(value, SyncFlags::UnorderedAccessViewGroup))
... | 21.26087 | 58 | 0.728016 | tgjones |
a6a8ceb77adb2c3b96880b5d88bdb570f2046c04 | 1,660 | cpp | C++ | cpu_version/convert/bvec_line.cpp | takanokage/Product-Quantization-Tree | 2651ba871100ff4c0ccef42ba57e871fbc6181f8 | [
"MIT"
] | 98 | 2016-07-18T07:38:07.000Z | 2022-02-02T15:28:01.000Z | cpu_version/convert/bvec_line.cpp | takanokage/Product-Quantization-Tree | 2651ba871100ff4c0ccef42ba57e871fbc6181f8 | [
"MIT"
] | 14 | 2016-08-03T08:43:36.000Z | 2017-11-02T14:39:41.000Z | cpu_version/convert/bvec_line.cpp | takanokage/Product-Quantization-Tree | 2651ba871100ff4c0ccef42ba57e871fbc6181f8 | [
"MIT"
] | 36 | 2016-07-27T13:47:12.000Z | 2020-07-13T14:34:46.000Z | #include <iostream>
#include <fstream>
#include <string>
#include <stdexcept>
#include <cassert>
#include "../helper.hpp"
#include "../filehelper.hpp"
#include "../iterator/memiterator.hpp"
#include "../iterator/bvecsiterator.hpp"
using namespace std;
int main(int argc, char const *argv[]) {
int line = atoi(arg... | 24.776119 | 94 | 0.535542 | takanokage |
a6ae01a0d384bdfa265c3da954710c2fb0cd6037 | 636 | cpp | C++ | server/src/main.cpp | silverthreadk/Mafia2 | 275f7e9fb63a98bcb5781c4d388a63da16a63213 | [
"BSL-1.0"
] | null | null | null | server/src/main.cpp | silverthreadk/Mafia2 | 275f7e9fb63a98bcb5781c4d388a63da16a63213 | [
"BSL-1.0"
] | null | null | null | server/src/main.cpp | silverthreadk/Mafia2 | 275f7e9fb63a98bcb5781c4d388a63da16a63213 | [
"BSL-1.0"
] | null | null | null | #include <iostream>
#include "server.h"
int main(int argc, char* argv[]) {
try {
if (argc < 2) {
std::cerr << "Usage: Server <port> [<port> ...]\n";
return 1;
}
boost::asio::io_context io_context;
std::list<Server> servers;
for (int i = 1; i < argc... | 23.555556 | 100 | 0.492138 | silverthreadk |
a6af98ea81cf6041f60789187af3f22c0bf4658f | 8,684 | hxx | C++ | src/lapack_wrapper/code++/trid.hxx | ceccocats/LapackWrapper | fea6aa41849ffe5440fa3195c36f74e45e36b414 | [
"BSD-4-Clause"
] | 3 | 2021-05-19T14:33:59.000Z | 2022-03-14T02:12:47.000Z | src/lapack_wrapper/code++/trid.hxx | ceccocats/LapackWrapper | fea6aa41849ffe5440fa3195c36f74e45e36b414 | [
"BSD-4-Clause"
] | null | null | null | src/lapack_wrapper/code++/trid.hxx | ceccocats/LapackWrapper | fea6aa41849ffe5440fa3195c36f74e45e36b414 | [
"BSD-4-Clause"
] | 1 | 2020-01-24T15:10:34.000Z | 2020-01-24T15:10:34.000Z | /*--------------------------------------------------------------------------*\
| |
| Copyright (C) 2019 |
| |
| ... | 24.461972 | 80 | 0.376324 | ceccocats |
a6b04db6b50d7a607d55726b59212303ae9477ff | 2,721 | cpp | C++ | server/src/MediaLibraryServer.cpp | jabaa/MediaLibraryServer | 52caf9adc40694300adade33f89d86cf32960efd | [
"MIT"
] | null | null | null | server/src/MediaLibraryServer.cpp | jabaa/MediaLibraryServer | 52caf9adc40694300adade33f89d86cf32960efd | [
"MIT"
] | null | null | null | server/src/MediaLibraryServer.cpp | jabaa/MediaLibraryServer | 52caf9adc40694300adade33f89d86cf32960efd | [
"MIT"
] | null | null | null | #include "MediaLibraryServer.hpp"
MediaLibraryServer::MediaLibraryServer() : configs(), help(false) {}
void MediaLibraryServer::initialize(Application &self) {
loadConfiguration();
logger().information(fmt::format("Configs: {}", configs.size()));
for (const auto &c : configs) {
try {
l... | 33.592593 | 79 | 0.639838 | jabaa |
a6b2aa30c32d3e2c41525105c5e27b15eb01670a | 593 | cpp | C++ | hooks/weapons/weapon_fire_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/weapons/weapon_fire_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/weapons/weapon_fire_inject.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | //Injector source file for the Weapon Fire hook module.
#include "weapon_fire.h"
#include <hook_tools.h>
namespace {
void __declspec(naked) fireWeaponWrapper() {
static CUnit* unit;
static u8 weaponId;
__asm {
PUSH EBP
MOV EBP, ESP
MOVZX EAX, [EBP+0x08]
MOV weaponId, AL
MOV unit, ESI
PUSHAD
}
hook... | 13.790698 | 55 | 0.709949 | Lucifirius |
a6b383c81ac60616678be98f148ad798a3755cec | 200,736 | inl | C++ | 2d_samples/pmj02_344.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | 1 | 2021-12-10T23:35:04.000Z | 2021-12-10T23:35:04.000Z | 2d_samples/pmj02_344.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | 2d_samples/pmj02_344.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | {std::array<float,2>{0.228854537f, 0.699147999f},
std::array<float,2>{0.952923894f, 0.237815425f},
std::array<float,2>{0.70954746f, 0.808866024f},
std::array<float,2>{0.422894925f, 0.445519507f},
std::array<float,2>{0.30648163f, 0.966786563f},
std::array<float,2>{0.569666564f, 0.372576654f},
std::array<float,2>{0.80805... | 49.007813 | 53 | 0.734731 | st-ario |
a6b7cfc432faae582fa25bf2fae88f1bc236ce4f | 1,541 | cpp | C++ | source/ListFileRecursively_For_Compare.cpp | Linux-pt/escan-backup | bfaed321201e512974e70c305beba53892428efc | [
"Unlicense"
] | null | null | null | source/ListFileRecursively_For_Compare.cpp | Linux-pt/escan-backup | bfaed321201e512974e70c305beba53892428efc | [
"Unlicense"
] | null | null | null | source/ListFileRecursively_For_Compare.cpp | Linux-pt/escan-backup | bfaed321201e512974e70c305beba53892428efc | [
"Unlicense"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<string>
#include<iostream>
#include<stdlib.h>
#include<unistd.h>
#include<signal.h>
#include"Compare_File_Present_In_Backup.h"
#include<dirent.h>
#include<sqlite3.h>
#include"CalculateSha1sum.h"
#include"ListFileRecursively_For_Compare.h"
#include"HandleSigint.h"
using name... | 24.854839 | 153 | 0.693056 | Linux-pt |
a6c22243e61255bbf774e0eb06a0a7f7bb1b5d8c | 4,028 | cpp | C++ | lib/smack/SmackWarnings.cpp | Guoanshisb/smack | 6fee210b1cb272cb9f596ea53e08935c159ec2f2 | [
"MIT"
] | 2 | 2021-10-08T00:50:26.000Z | 2021-12-17T07:18:15.000Z | lib/smack/SmackWarnings.cpp | Guoanshisb/smack | 6fee210b1cb272cb9f596ea53e08935c159ec2f2 | [
"MIT"
] | 1 | 2021-09-29T07:21:20.000Z | 2021-09-29T07:21:20.000Z | lib/smack/SmackWarnings.cpp | Guoanshisb/smack | 6fee210b1cb272cb9f596ea53e08935c159ec2f2 | [
"MIT"
] | 1 | 2021-10-12T09:02:40.000Z | 2021-10-12T09:02:40.000Z | #include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/Support/raw_ostream.h"
#include "smack/SmackOptions.h"
#include "smack/SmackWarnings.h"
#include <algorithm>
#include <set>
namespace smack {
using namespace llvm;
std::string buildDebugInfo(const Instruction *i) {
std::stringstre... | 35.646018 | 80 | 0.59434 | Guoanshisb |
a6c3afb8b0d9b79b258b3b169d1743872bc4af57 | 1,647 | hpp | C++ | Crisp/Animation/Animator.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | 6 | 2017-09-14T03:26:49.000Z | 2021-09-18T05:40:59.000Z | Crisp/Animation/Animator.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | Crisp/Animation/Animator.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | #pragma once
#include "Animation/Animation.hpp"
#include <memory>
#include <vector>
#include <unordered_map>
#include <unordered_set>
namespace crisp
{
class Animator
{
public:
Animator();
~Animator() = default;
Animator(const Animator& animator) = delete;
Animator(Animat... | 34.3125 | 96 | 0.690346 | FallenShard |
a6c482f53f26f26847571a3e58cfab955df67f44 | 2,258 | cpp | C++ | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_callbacks.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | 1 | 2021-02-07T21:33:42.000Z | 2021-02-07T21:33:42.000Z | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_callbacks.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | null | null | null | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_callbacks.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | null | null | null | #include "v8_callbacks.h"
#include "rr.h"
using namespace v8;
namespace {
VALUE ArgumentsClass;
VALUE AccessorInfoClass;
VALUE _Data(VALUE self) {
return rb_iv_get(self, "data");
}
namespace Accessor {
AccessorInfo *info(VALUE value) {
AccessorInfo* i = 0;
Data_Get_Struct(value, cla... | 27.536585 | 80 | 0.670948 | tcmaker |
a6c4da6eb438be1445b8c3a428b6148ec1d4d42e | 3,405 | cpp | C++ | External/xlLib/Projects/UnitTest/Common/Containers/xlSetTest.cpp | Streamlet/RCVersion | f34d01d84bdb58c6a989c88e3cb1d75d04aefd21 | [
"MIT"
] | 5 | 2015-10-13T15:04:09.000Z | 2021-12-30T00:07:05.000Z | External/xlLib/Projects/UnitTest/Common/Containers/xlSetTest.cpp | Streamlet/RCVersion | f34d01d84bdb58c6a989c88e3cb1d75d04aefd21 | [
"MIT"
] | null | null | null | External/xlLib/Projects/UnitTest/Common/Containers/xlSetTest.cpp | Streamlet/RCVersion | f34d01d84bdb58c6a989c88e3cb1d75d04aefd21 | [
"MIT"
] | 1 | 2016-06-22T12:32:51.000Z | 2016-06-22T12:32:51.000Z | //------------------------------------------------------------------------------
//
// Copyright (C) Streamlet. All rights reserved.
//
// File Name: xlSetTest.cpp
// Author: Streamlet
// Create Time: 2011-04-30
// Description:
//
//-------------------------------------------------------... | 20.889571 | 81 | 0.408811 | Streamlet |
a6c5f99c3e9c524b163d245bd93e4ddfd6778a2c | 1,352 | cpp | C++ | libs/renderer/src/renderer/state/ffp/misc/parameters.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/src/renderer/state/ffp/misc/parameters.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/src/renderer/state/ffp/misc/parameters.cpp | 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)
#include <sge/renderer/state/ffp/misc/enable_point_sprites.hpp>
#include <sge/renderer/state/ffp/mi... | 35.578947 | 86 | 0.756657 | cpreh |
a6cb8a676ed34194a0da709b53eb3f3b558c463e | 4,562 | cpp | C++ | DPMI.cpp | fringpfe/BBSETUP | eb9d96e7223797e5c4170301f0120baace25424c | [
"MIT"
] | null | null | null | DPMI.cpp | fringpfe/BBSETUP | eb9d96e7223797e5c4170301f0120baace25424c | [
"MIT"
] | null | null | null | DPMI.cpp | fringpfe/BBSETUP | eb9d96e7223797e5c4170301f0120baace25424c | [
"MIT"
] | null | null | null | /**
*
* Copyright (C) 2021 Fabian Ringpfeil
*
* 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, m... | 29.816993 | 154 | 0.603463 | fringpfe |
a6d2ca41a9848773de508407966b96f6846fd538 | 1,145 | cpp | C++ | src/common.cpp | baldinialberto/awiGame | 88937014bcbacdac6766fad8696384fa84f91582 | [
"Unlicense"
] | null | null | null | src/common.cpp | baldinialberto/awiGame | 88937014bcbacdac6766fad8696384fa84f91582 | [
"Unlicense"
] | null | null | null | src/common.cpp | baldinialberto/awiGame | 88937014bcbacdac6766fad8696384fa84f91582 | [
"Unlicense"
] | null | null | null | #include "../include/common.hpp"
me::fIt::fIt(const char *path, const char *flags)
: _file{path, flags[0] == 'r' ? std::ios_base::in : std::ios_base::out}
{
}
me::fIt::~fIt()
{
if (_file.is_open())
_file.close();
}
bool me::fIt::opened() const { return _file.is_open(); }
const me::fIt &me::fIt::load... | 25.444444 | 79 | 0.625328 | baldinialberto |
a6dee0dbf1fac1d4e4a8c8bd64759b178250ccbb | 1,824 | cpp | C++ | source/tests.cpp | MarianFriedrich/3_programmiersprachen-blatt | 0bd4087b29fa628a7e9ff0a0f489402b08685bd1 | [
"MIT"
] | null | null | null | source/tests.cpp | MarianFriedrich/3_programmiersprachen-blatt | 0bd4087b29fa628a7e9ff0a0f489402b08685bd1 | [
"MIT"
] | null | null | null | source/tests.cpp | MarianFriedrich/3_programmiersprachen-blatt | 0bd4087b29fa628a7e9ff0a0f489402b08685bd1 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_RUNNER
#include <catch.hpp>
#include <list>
#include <cstdlib>
#include "circle.hpp"
// Circle Operatoren
TEST_CASE("describe_circle_operator_same","[circle_operator_same]")
{
Circle test1{{0,0},5,{0.0,0.0,0.0}};
Circle test2{{0,0},5,{0.0,0.0,0.0}};
REQUIRE(test1 == test2);
}
TEST_CASE("descri... | 28.061538 | 81 | 0.64693 | MarianFriedrich |
a6e2a2806d8ee5c1a94caab136a98daab2f282e4 | 883 | cpp | C++ | src/tests/test-datetime.cpp | cshnick/liteSql_custom_generator | 31f81ab13b689616672ab45805c3ffdfab3a1057 | [
"BSD-3-Clause"
] | 11 | 2017-04-19T03:01:13.000Z | 2020-08-03T05:21:31.000Z | src/tests/test-datetime.cpp | cshnick/liteSql_custom_generator | 31f81ab13b689616672ab45805c3ffdfab3a1057 | [
"BSD-3-Clause"
] | 14 | 2016-05-24T00:20:42.000Z | 2019-02-11T18:36:36.000Z | src/tests/test-datetime.cpp | cshnick/liteSql_custom_generator | 31f81ab13b689616672ab45805c3ffdfab3a1057 | [
"BSD-3-Clause"
] | 4 | 2017-04-03T08:03:11.000Z | 2019-08-20T04:48:50.000Z | /* LiteSQL - test-datetime
*
* The list of contributors at http://litesql.sf.net/
*
* See LICENSE for copyright information. */
#include <assert.h>
#include "litesql/datetime.hpp"
/*
Datetime unit tester
TC1: test for equality on load/ save (see ticket #13)
*/
using namespace litesql;
int main(int argc, ... | 19.195652 | 61 | 0.629672 | cshnick |
a6e422508141ebac8748f387c343b07046835c8b | 18 | cpp | C++ | Gear/src/grpch.cpp | GearEngine/GearEngine | fa5ed49ca6289a215799a7b84ece1241eb33bd36 | [
"Apache-2.0"
] | 3 | 2020-03-05T06:56:51.000Z | 2020-03-12T09:36:20.000Z | Gear/src/grpch.cpp | GearEngine/GearEngine | fa5ed49ca6289a215799a7b84ece1241eb33bd36 | [
"Apache-2.0"
] | 2 | 2020-03-05T15:40:28.000Z | 2020-03-11T16:04:44.000Z | Gear/src/grpch.cpp | GearEngine/GearEngine | fa5ed49ca6289a215799a7b84ece1241eb33bd36 | [
"Apache-2.0"
] | null | null | null | #include "grpch.h" | 18 | 18 | 0.722222 | GearEngine |
a6ec95078cdd6a6eb6ffdf181bf90086478bbe17 | 1,146 | cpp | C++ | src/searchparameters.cpp | nemishkor/harbour-otpusk | 225fa040426a654249ba45e33efe3f169911fc14 | [
"MIT"
] | null | null | null | src/searchparameters.cpp | nemishkor/harbour-otpusk | 225fa040426a654249ba45e33efe3f169911fc14 | [
"MIT"
] | null | null | null | src/searchparameters.cpp | nemishkor/harbour-otpusk | 225fa040426a654249ba45e33efe3f169911fc14 | [
"MIT"
] | null | null | null | #include "searchparameters.h"
SearchParameters::SearchParameters(QObject *parent) : QObject(parent)
{
}
int SearchParameters::getLocationId() const
{
return locationId;
}
int SearchParameters::getFromCityId() const
{
return fromCityId;
}
QString SearchParameters::getStartDate() const
{
return startDate... | 14.883117 | 69 | 0.729494 | nemishkor |
a6f04893187e9082b96f40c22f27ab7029a6b0e5 | 5,081 | hpp | C++ | sampml/sampml/random_forest.hpp | YashasSamaga/sampml | dc84110b53b120caeeb4c0234fcfd6ab16793c59 | [
"MIT"
] | 12 | 2018-12-01T18:30:32.000Z | 2021-12-08T21:53:36.000Z | sampml/sampml/random_forest.hpp | YashasSamaga/sampml | dc84110b53b120caeeb4c0234fcfd6ab16793c59 | [
"MIT"
] | 2 | 2019-08-21T17:52:59.000Z | 2022-01-17T03:28:11.000Z | sampml/sampml/random_forest.hpp | YashasSamaga/sampml | dc84110b53b120caeeb4c0234fcfd6ab16793c59 | [
"MIT"
] | 3 | 2020-09-04T14:53:46.000Z | 2022-03-18T17:53:33.000Z | #include <cassert>
#include <dlib/random_forest.h>
#include <dlib/global_optimization.h>
#include "common.hpp"
#include "data.hpp"
namespace SAMPML_NAMESPACE {
namespace trainer {
template <class sample_type>
class random_forest {
public:
random_forest() { }
templ... | 44.570175 | 135 | 0.550679 | YashasSamaga |
a6fd4b0c75385f0cde9941adcae2168cdf874e04 | 1,225 | cpp | C++ | source/tools/editor/dropzonebrush.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/tools/editor/dropzonebrush.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/tools/editor/dropzonebrush.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | /*************************************************************************************************\
dropZoneBrush.cpp : Implementation of the dropZoneBrush component.
//---------------------------------------------------------------------------//
// Copyright (C) Microsoft Corporation. All rights reserved. ... | 31.410256 | 99 | 0.520816 | mechasource |
470d54522a5ff339dddad5538a5beacd850ebd07 | 1,552 | cpp | C++ | graphDataStructuresAndAlgorithms/wordLatterII.cpp | archit-1997/InterviewB | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | [
"MIT"
] | 1 | 2021-01-27T16:37:38.000Z | 2021-01-27T16:37:38.000Z | graphDataStructuresAndAlgorithms/wordLatterII.cpp | archit-1997/InterviewBit | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | [
"MIT"
] | null | null | null | graphDataStructuresAndAlgorithms/wordLatterII.cpp | archit-1997/InterviewBit | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | [
"MIT"
] | null | null | null | vector<vector<string>> res;
int nd, minL;
string en;
bool isAdj(string a, string b) {
int n = a.length();
int cnt = 0;
for (int i = 0; i < n; i++) {
if (a[i] != b[i])
cnt++;
if (cnt > 1)
return false;
}
return cnt == 1 ? true : false;
}
void dfs(vector<string> &dict, vector<string> &te... | 20.155844 | 78 | 0.556057 | archit-1997 |
470d83ac1637399f02fd02afdf04312d546e0273 | 12,015 | cc | C++ | src/jtocconversion.cc | yamii/node-bacnet | bfe63ff626d7bb02bebfefd301307952fcbd4ee0 | [
"MIT"
] | null | null | null | src/jtocconversion.cc | yamii/node-bacnet | bfe63ff626d7bb02bebfefd301307952fcbd4ee0 | [
"MIT"
] | null | null | null | src/jtocconversion.cc | yamii/node-bacnet | bfe63ff626d7bb02bebfefd301307952fcbd4ee0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <v8.h>
#include <node.h>
#include <nan.h>
#include "address.h"
#include "datalink.h"
#include "bacapp.h"
#include "bactext.h"
using v8::Local;
using v8::Value;
using v8::Object;
using v8::Int32;
using v8::Uint32;
using v8::String;
using Nan::MaybeLocal;
using Nan::New;
uint32_t getUint32... | 41.006826 | 163 | 0.635456 | yamii |
470ecca09a38e5e9808703253e7803ea0723bee0 | 2,424 | cpp | C++ | picam/libs/client/src/picam_client.cpp | avribacki/neato-pi | dd415f0f6ab82492468fedcafc85f18277fc7c06 | [
"MIT"
] | null | null | null | picam/libs/client/src/picam_client.cpp | avribacki/neato-pi | dd415f0f6ab82492468fedcafc85f18277fc7c06 | [
"MIT"
] | null | null | null | picam/libs/client/src/picam_client.cpp | avribacki/neato-pi | dd415f0f6ab82492468fedcafc85f18277fc7c06 | [
"MIT"
] | null | null | null | #include "picam_api.h"
#include "jaw_client.hpp"
#include "picam_protocol.hpp"
using namespace Jaw;
using namespace PiCam;
/*************************************************************************************************/
using PiCamClient = Client<Command>;
/******************************************... | 35.130435 | 108 | 0.458333 | avribacki |
4711bc5b49380ac67c4d616b955618c7147dc312 | 14,992 | cpp | C++ | devtools/lit/lib/ProgressBar.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | devtools/lit/lib/ProgressBar.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | devtools/lit/lib/ProgressBar.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2019 polarphp software foundation
// Copyright (c) 2017 - 2019 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... | 30.975207 | 126 | 0.614128 | PHP-OPEN-HUB |
471296fa4ba4364588b96efd2791ca2403d838dc | 5,179 | cpp | C++ | src/types/spatial.cpp | vi3itor/Blunted2 | 318af452e51174a3a4634f3fe19b314385838992 | [
"Unlicense"
] | 56 | 2020-07-22T22:11:06.000Z | 2022-03-09T08:11:43.000Z | GameplayFootball/src/types/spatial.cpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 9 | 2021-04-22T07:06:25.000Z | 2022-01-22T12:54:52.000Z | GameplayFootball/src/types/spatial.cpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 20 | 2017-11-07T16:52:32.000Z | 2022-01-25T02:42:48.000Z | // written by bastiaan konings schuiling 2008 - 2014
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#include "spatial.hpp"
namespace blunted {
Spatial::Spatia... | 26.834197 | 132 | 0.659973 | vi3itor |
471992f04f7855bfd1d789d6a73137485c4bfa3e | 6,805 | cpp | C++ | src/docks/quadockwidgetperms.cpp | juangburgos/QUaAccessControl | 6a1af53e30fb4e75111312b9bce46b983567049e | [
"MIT"
] | null | null | null | src/docks/quadockwidgetperms.cpp | juangburgos/QUaAccessControl | 6a1af53e30fb4e75111312b9bce46b983567049e | [
"MIT"
] | null | null | null | src/docks/quadockwidgetperms.cpp | juangburgos/QUaAccessControl | 6a1af53e30fb4e75111312b9bce46b983567049e | [
"MIT"
] | 1 | 2021-11-04T21:16:21.000Z | 2021-11-04T21:16:21.000Z | #include "quadockwidgetperms.h"
#include "ui_quadockwidgetperms.h"
#include <QUaAccessControl>
#include <QUaUser>
#include <QUaRole>
#include <QUaPermissions>
#include <QUaPermissionsList>
int QUaDockWidgetPerms::PointerRole = Qt::UserRole + 1;
QUaDockWidgetPerms::QUaDockWidgetPerms(QWidget *parent) :
... | 32.716346 | 148 | 0.714622 | juangburgos |
471d40609c336608934ef13cc447ef7eac67c3e5 | 987 | cpp | C++ | programs/decisions and loops/04_Quadratic_equation.cpp | MKrishan21/learn-cpp | 55f6fbccf97fc73e5d6081372a5ebda75f2a98d7 | [
"Apache-2.0"
] | null | null | null | programs/decisions and loops/04_Quadratic_equation.cpp | MKrishan21/learn-cpp | 55f6fbccf97fc73e5d6081372a5ebda75f2a98d7 | [
"Apache-2.0"
] | 1 | 2022-03-20T17:08:50.000Z | 2022-03-30T17:54:30.000Z | programs/decisions and loops/04_Quadratic_equation.cpp | MKrishan21/learn-cpp | 55f6fbccf97fc73e5d6081372a5ebda75f2a98d7 | [
"Apache-2.0"
] | null | null | null | // C++ Program to Find Quotient and Remainder
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float a, b, c, x1, x2, discriminant, x3, x4;
cout << "enter the coefficients a b & c ";
cin >> a >> b >> c;
discriminant = b * b - 4 * a * c;
if (discriminant > 0)
{
x1 ... | 27.416667 | 58 | 0.435664 | MKrishan21 |
471ed406bdae8204c546e0c8b0f1151b07d33bb1 | 1,942 | hpp | C++ | libs/parse/include/fcppt/parse/make_convert_if.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/parse/include/fcppt/parse/make_convert_if.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/parse/include/fcppt/parse/make_convert_if.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_PARSE_MAKE_CONVERT_IF_HPP_INCLUDED
#define FCPPT_PARSE_MAKE_CONVERT_IF_HPP_INCLUDED
... | 16.886957 | 61 | 0.659114 | pmiddend |
47231b8910539119531cb2f3c6b5034866a68708 | 638 | cpp | C++ | src/executor/Executor.cpp | Charlieglider/machinery1 | 1d085634ecbb1cd69d920a92f71dd0fece659e1a | [
"Unlicense"
] | 1 | 2018-06-12T21:48:53.000Z | 2018-06-12T21:48:53.000Z | src/executor/Executor.cpp | chpap/machinery | 63130ccbe91339cadbdb0c3df3b6eea4da575403 | [
"Unlicense"
] | null | null | null | src/executor/Executor.cpp | chpap/machinery | 63130ccbe91339cadbdb0c3df3b6eea4da575403 | [
"Unlicense"
] | null | null | null | #include "Executor.h"
namespace kerberos
{
SequenceInterval::SequenceInterval(IntegerTypeArray & integers)
{
m_count = 0;
m_times = integers[0].first;
m_boundery = integers[1].first;
m_increase = m_boundery / m_times;
}
bool SequenceInterval::operator()()
{
... | 19.333333 | 67 | 0.540752 | Charlieglider |
472860cd6fcb7a90a6937d5c2e920d41e1edc0d6 | 719 | cpp | C++ | lucas/uri/1171.cpp | medeiroslucas/lo-and-behold-pp | d2be16f9b108b501fd9fccf173e741c93350cee4 | [
"MIT"
] | 2 | 2019-09-09T00:34:40.000Z | 2019-09-09T17:35:19.000Z | lucas/uri/1171.cpp | medeiroslucas/lo-and-behold-pp | d2be16f9b108b501fd9fccf173e741c93350cee4 | [
"MIT"
] | null | null | null | lucas/uri/1171.cpp | medeiroslucas/lo-and-behold-pp | d2be16f9b108b501fd9fccf173e741c93350cee4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
int N, i, min=2001, numanterior=0, cont=0;
int *numeros;
cin >> N;
numeros = (int *) malloc(N*sizeof(int));
for(i = 0; i<N; i++){
cin >> *(numeros+i);
}
while(1){
cont = 0;
for(i=0; i<N; i++){
... | 15.630435 | 65 | 0.399166 | medeiroslucas |
472bf849153eac1a2753ad985cc015407da3743d | 8,613 | cpp | C++ | cegui/src/RenderTarget.cpp | cbeck88/cegui-mirror | 50d3a670b22fd957eba06549a9a7e04796d0b92f | [
"MIT"
] | null | null | null | cegui/src/RenderTarget.cpp | cbeck88/cegui-mirror | 50d3a670b22fd957eba06549a9a7e04796d0b92f | [
"MIT"
] | null | null | null | cegui/src/RenderTarget.cpp | cbeck88/cegui-mirror | 50d3a670b22fd957eba06549a9a7e04796d0b92f | [
"MIT"
] | 1 | 2020-07-21T00:03:01.000Z | 2020-07-21T00:03:01.000Z | /***********************************************************************
created: Sat Feb 18 2012
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/***************************************************************************
* Copyrigh... | 38.450893 | 138 | 0.564728 | cbeck88 |
472ec7e2931ae78bb65dabb8973dfac45545236e | 2,242 | cpp | C++ | src/vpg/memory/pool.cpp | RiscadoA/voxel-platformer | 4e7aadad978c333a59f452a8ee9f4612ee128614 | [
"MIT"
] | 3 | 2021-03-01T16:00:04.000Z | 2022-01-07T03:45:32.000Z | src/vpg/memory/pool.cpp | RiscadoA/voxel-platformer | 4e7aadad978c333a59f452a8ee9f4612ee128614 | [
"MIT"
] | null | null | null | src/vpg/memory/pool.cpp | RiscadoA/voxel-platformer | 4e7aadad978c333a59f452a8ee9f4612ee128614 | [
"MIT"
] | 2 | 2021-03-27T03:54:24.000Z | 2021-06-22T13:53:07.000Z | #include <vpg/memory/pool.hpp>
#include <cstring>
#include <cstdlib>
using namespace vpg::memory;
Pool<void>::Pool(size_t initial_count, size_t element_sz, std::align_val_t alignment) {
this->used = 0;
this->total = initial_count;
this->element_sz = element_sz;
this->alignment = alignment;
if ((... | 28.74359 | 102 | 0.582516 | RiscadoA |
47309395d715106960a581d984116c4e00f25402 | 3,485 | hpp | C++ | source/AsioExpress/EventHandling/ResourceCachePrivate/AddResourceItemsProcessor.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/EventHandling/ResourceCachePrivate/AddResourceItemsProcessor.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/EventHandling/ResourceCachePrivate/AddResourceItemsProcessor.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | // Copyright Ross MacGregor 2013
// 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)
#pragma once
#include <map>
#include <algorithm>
#include <boost/shared_ptr.hpp>
#include... | 30.304348 | 128 | 0.613199 | suhao |
473ddd7ed441686f935bd2f047b8e26dd205f682 | 10,542 | hpp | C++ | src/mods/FileEditor.hpp | youwereeatenbyalid/dx11_mod_base | c9c31426261c793e34a5b7ff1a15598777691ba5 | [
"MIT"
] | 2 | 2021-03-25T20:27:49.000Z | 2022-03-29T13:00:31.000Z | src/mods/FileEditor.hpp | youwereeatenbyalid/dx11_mod_base | c9c31426261c793e34a5b7ff1a15598777691ba5 | [
"MIT"
] | null | null | null | src/mods/FileEditor.hpp | youwereeatenbyalid/dx11_mod_base | c9c31426261c793e34a5b7ff1a15598777691ba5 | [
"MIT"
] | 2 | 2021-02-20T13:42:25.000Z | 2022-03-26T16:05:47.000Z | #pragma once
#include <map>
#include <filesystem>
#include <fstream>
#include <sstream>
#include "Mod.hpp"
#include "sdk/ReClass.hpp"
#include "mods/LDK.hpp"
#include "mods/SpardaWorkshop.hpp"
#include "mods/BpStageJump.hpp"
// clang-format off
namespace fs = std::filesystem;
class HotSwapCFG {
public:
HotSwapCFG... | 34.907285 | 124 | 0.677006 | youwereeatenbyalid |
473ebb403849cafbd4d58a78c43a7d4159e2cbc3 | 1,154 | cpp | C++ | Chapter04/mmap_write.cpp | trantrongquy/C-System-Programming-Cookbook | 2df8795d8f88de10e38297606ac2fa9993d6dab4 | [
"MIT"
] | 36 | 2020-03-23T21:10:14.000Z | 2022-01-22T20:22:30.000Z | Chapter04/mmap_write.cpp | trantrongquy/C-System-Programming-Cookbook | 2df8795d8f88de10e38297606ac2fa9993d6dab4 | [
"MIT"
] | 2 | 2020-02-28T13:14:44.000Z | 2021-06-17T07:55:34.000Z | Chapter04/mmap_write.cpp | trantrongquy/C-System-Programming-Cookbook | 2df8795d8f88de10e38297606ac2fa9993d6dab4 | [
"MIT"
] | 22 | 2020-02-21T08:00:06.000Z | 2022-02-09T11:05:13.000Z | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <iostream>
#define FILEPATH "mmapped.txt"
#define NUM_OF_ITEMS_IN_FILE (1000)
#define FILESIZE (NUM_OF_ITEMS_IN_FILE * sizeof(int))
int main(int argc, char *argv[])
{
int fd = open(FILEPATH, O_RDWR | O_CR... | 20.981818 | 83 | 0.584922 | trantrongquy |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.