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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5123bacd97fe3c650cce1e935f920257fedf47f | 4,742 | cpp | C++ | naive_sol/sensornode.cpp | acse-qq219/Optimal_Drone_Recharging_Scheduling | 6c86a0bc7dd835f30eb70b108365bcf762ecc228 | [
"MIT"
] | 1 | 2022-03-06T15:27:17.000Z | 2022-03-06T15:27:17.000Z | naive_sol/sensornode.cpp | acse-qq219/Optimal_Drone_Recharging_Scheduling | 6c86a0bc7dd835f30eb70b108365bcf762ecc228 | [
"MIT"
] | null | null | null | naive_sol/sensornode.cpp | acse-qq219/Optimal_Drone_Recharging_Scheduling | 6c86a0bc7dd835f30eb70b108365bcf762ecc228 | [
"MIT"
] | null | null | null | /*! @file sensornode.cpp
*
* @warning This is the internal source of the ODP project.
* Do not use it directly in other code. Please note that this file
* is based on the open source code from
* <a href="https://github.com/achu6393/dynamicWeightedClustering">
* dynamicWeightedClustering
* </a>
* Copyright... | 32.479452 | 84 | 0.613454 | acse-qq219 |
b518e56d617ccacb8e30c7b1e1c83a0e1c688c18 | 9,899 | cpp | C++ | multimedia/directx/dinput/diconfig/rundftest.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/directx/dinput/diconfig/rundftest.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/directx/dinput/diconfig/rundftest.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "common.hpp"
#define TOW(a) L##a
static const GUID g_AppGuid =
{ 0x238d8220, 0x7a5d, 0x11d3, { 0x8f, 0xb2, 0x0, 0xc0, 0x4f, 0x8e, 0xc6, 0x27 } };
static const GUID GUID_DIConfigAppEditLayout =
{ 0xfd4ace13, 0x7044, 0x4204, { 0x8b, 0x15, 0x9, 0x52, 0x86, 0xb1, 0x2e, 0xad } };
//for axes com... | 35.607914 | 152 | 0.634711 | npocmaka |
b51a8f1adb0f5acbf5cfb94ec3226c522b8c0722 | 874 | cpp | C++ | P1/b.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | 1 | 2019-12-01T01:37:56.000Z | 2019-12-01T01:37:56.000Z | P1/b.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | null | null | null | P1/b.cpp | SsorryQaQ/Algorithm-competition | ee2ed79438ecaf15015d9b043d3e099cfa3829c5 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
const int maxn = 30000 + 10;
const int maxm = 500 + 10;
int fa[maxn];
void init_union(int n){
for (int i=0;i<n;i++) fa[i] = i;
}
int find(int x){
if (fa[x]==x) return fa[x];
return fa[x] = find(fa[x]);
}
// int find(int x){
// if (x... | 19 | 56 | 0.475973 | SsorryQaQ |
b5213415837a2bd6432648be7cf29ff5537e305a | 8,010 | cpp | C++ | dll/callback/callback.cpp | kbinani/dxrip | ef170fd895c6d9bb6c05bc2026e9fa9bcd0b1908 | [
"MIT"
] | 4 | 2015-09-23T14:12:07.000Z | 2021-10-04T21:03:32.000Z | dll/callback/callback.cpp | kbinani/dxrip | ef170fd895c6d9bb6c05bc2026e9fa9bcd0b1908 | [
"MIT"
] | null | null | null | dll/callback/callback.cpp | kbinani/dxrip | ef170fd895c6d9bb6c05bc2026e9fa9bcd0b1908 | [
"MIT"
] | 2 | 2018-06-26T14:59:11.000Z | 2021-09-01T01:50:20.000Z | #include "Main.h"
#include "interceptor/d3d9Callback.h"
#include "Context.h"
#include "mesh/MeshDescriptor.h"
#include "mesh/MeshRepository.h"
#include "mesh/TextureDescriptor.h"
#include "mesh/TextureRepository.h"
#include <sys/stat.h>
using namespace dxrip::callback;
D3D9CALLBACK_API void D3D9CallbackInitialize() ... | 44.010989 | 259 | 0.725468 | kbinani |
b521c677d9ea2032d58f123d6b42534371a8b64e | 7,029 | cpp | C++ | src/sysrom.cpp | LaudateCorpus1/openbmc-chif-svc | 88b7878c36425983ae4c3f50f7938afac441ce7e | [
"Apache-2.0"
] | 3 | 2021-05-24T03:36:24.000Z | 2021-12-30T00:45:21.000Z | src/sysrom.cpp | LaudateCorpus1/openbmc-chif-svc | 88b7878c36425983ae4c3f50f7938afac441ce7e | [
"Apache-2.0"
] | null | null | null | src/sysrom.cpp | LaudateCorpus1/openbmc-chif-svc | 88b7878c36425983ae4c3f50f7938afac441ce7e | [
"Apache-2.0"
] | 1 | 2022-02-18T06:48:18.000Z | 2022-02-18T06:48:18.000Z | /*
// Copyright (c) 2021 Hewlett-Packard Development Company, L.P.
//
// 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 requi... | 31.379464 | 138 | 0.668516 | LaudateCorpus1 |
b5229ef0de56471d36f30f2914105b85166a992f | 344 | cpp | C++ | src/Tle493d_a2b6.cpp | Infineon/TLE493D-3DMagnetic-Sensor | 744ceb04ef7a309570cda79d44a98bfd7320a873 | [
"MIT"
] | 15 | 2018-08-14T11:13:11.000Z | 2022-01-06T17:48:46.000Z | src/Tle493d_a2b6.cpp | Infineon/TLE493D-3DMagnetic-Sensor | 744ceb04ef7a309570cda79d44a98bfd7320a873 | [
"MIT"
] | 13 | 2018-08-18T20:13:36.000Z | 2022-03-18T09:41:28.000Z | src/Tle493d_a2b6.cpp | Infineon/TLE493D-3DMagnetic-Sensor | 744ceb04ef7a309570cda79d44a98bfd7320a873 | [
"MIT"
] | 9 | 2018-08-13T14:47:13.000Z | 2021-01-27T08:53:36.000Z | #include "Tle493d_a2b6.h"
#include "./util/RegMask.h"
#include "./util/BusInterface2.h"
void Tle493d_a2b6::setUpdateRate(uint8_t updateRate){
if(updateRate != 0 && updateRate != 1)
{
updateRate = 1; // slow
}
// PRD of A2B6 only convers the highest bit
setRegBits(tle493d::PRD, updateRate << 2);
tle493d::writeO... | 26.461538 | 53 | 0.703488 | Infineon |
dddf66ebbb02ec70b7cc81d10607155f190f5b57 | 38,701 | cpp | C++ | orthogonal-planes/ROS_node/catkin_ws/src/orthogonal-planes/src/z_compute_volume_node_sync_NOT.cpp | tamaslevente/trai | 4bf68463b941f305d9b25a9374b6c2a2d51a8046 | [
"MIT"
] | null | null | null | orthogonal-planes/ROS_node/catkin_ws/src/orthogonal-planes/src/z_compute_volume_node_sync_NOT.cpp | tamaslevente/trai | 4bf68463b941f305d9b25a9374b6c2a2d51a8046 | [
"MIT"
] | null | null | null | orthogonal-planes/ROS_node/catkin_ws/src/orthogonal-planes/src/z_compute_volume_node_sync_NOT.cpp | tamaslevente/trai | 4bf68463b941f305d9b25a9374b6c2a2d51a8046 | [
"MIT"
] | null | null | null | #include <pcl/ModelCoefficients.h>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/filters/extract_indices.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/features/normal_3d.h>
#include <pcl/kdtree/kdtree.h>
#include <pcl/sample_consensus/method_types.h>
#include <pcl/sample_consensus/model_t... | 29.363429 | 152 | 0.592388 | tamaslevente |
dde22cdfbbd3a7aeaa6e8b4f0934ce03087ae490 | 76,933 | cpp | C++ | daemon/src/vpn.cpp | realrasengan/desktop | 41213ed9efd70955bdd5872c68425868040afae2 | [
"Apache-2.0"
] | 1 | 2020-09-08T00:41:27.000Z | 2020-09-08T00:41:27.000Z | daemon/src/vpn.cpp | realrasengan/desktop | 41213ed9efd70955bdd5872c68425868040afae2 | [
"Apache-2.0"
] | null | null | null | daemon/src/vpn.cpp | realrasengan/desktop | 41213ed9efd70955bdd5872c68425868040afae2 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 London Trust Media Incorporated
//
// This file is part of the Private Internet Access Desktop Client.
//
// The Private Internet Access Desktop Client 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 Softwa... | 38.543587 | 227 | 0.626805 | realrasengan |
dde53c0d51fee5b89cc1de9cf7ce3266b65310d8 | 2,167 | cpp | C++ | UnitManager.cpp | Kodeman010/TurnBasedStrategy | 3a9cd195552dd30cd024322b347d529c87c3597d | [
"Zlib"
] | 1 | 2019-11-17T22:31:11.000Z | 2019-11-17T22:31:11.000Z | UnitManager.cpp | Kodeman010/TurnBasedStrategy | 3a9cd195552dd30cd024322b347d529c87c3597d | [
"Zlib"
] | null | null | null | UnitManager.cpp | Kodeman010/TurnBasedStrategy | 3a9cd195552dd30cd024322b347d529c87c3597d | [
"Zlib"
] | null | null | null | #include <fstream>
#include <sstream>
#include "UnitManager.h"
#include "Unit.h"
#include "GameState.h"
#include "GameMap.h"
UnitManager::UnitManager(GameState *gameState)
{
this->gameState = gameState;
}
Unit* UnitManager::FindByPosition(sf::Vector2f position)
{
for (int i = 0; i < units.size(); ++i)... | 22.572917 | 92 | 0.602677 | Kodeman010 |
ddea488c215f1c892dda59a916441352996e5b3f | 9,305 | cpp | C++ | src/executables/meanie3D-timestamp.cpp | JuergenSimon/meanie3D | 776890f6b63d735153566fecc5a76c68a23ef333 | [
"MIT"
] | null | null | null | src/executables/meanie3D-timestamp.cpp | JuergenSimon/meanie3D | 776890f6b63d735153566fecc5a76c68a23ef333 | [
"MIT"
] | 5 | 2016-09-17T13:46:23.000Z | 2020-07-01T16:31:29.000Z | src/executables/meanie3D-timestamp.cpp | JuergenSimon/meanie3D | 776890f6b63d735153566fecc5a76c68a23ef333 | [
"MIT"
] | 3 | 2016-04-18T13:13:28.000Z | 2020-06-18T12:30:05.000Z | //
// meanie3D-detect
// cf-algorithms
//
// Created by Jürgen Lorenz Simon on 5/3/12.
// Copyright (c) 2012 Jürgen Lorenz Simon. All rights reserved.
//
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <boost/progress.hpp>
#include <boost/date_time.hpp>
#include <boost/date_time/local... | 24.168831 | 150 | 0.57367 | JuergenSimon |
ddedfd68e1f4213a57caff436cb28f74bbad86c9 | 2,086 | cpp | C++ | android-31/java/text/CollationElementIterator.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/text/CollationElementIterator.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/text/CollationElementIterator.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JIntArray.hpp"
#include "../../JString.hpp"
#include "../lang/StringBuffer.hpp"
#include "./RuleBasedCollator.hpp"
#include "./CollationElementIterator.hpp"
namespace java::text
{
// Fields
jint CollationElementIterator::NULLORDER()
{
return getStaticField<jint>(
"java.text.CollationElementIter... | 18.460177 | 85 | 0.675935 | YJBeetle |
ddf1a54d7bd8f520010f7bf14893b7f49c3bccbf | 788 | cpp | C++ | hyper/src/hyper/ast/expressions/binary_expression.cpp | HyperionOrg/HyperLang | 30f7a1707d00fb5cc6dc22913764389a3b998f09 | [
"MIT"
] | null | null | null | hyper/src/hyper/ast/expressions/binary_expression.cpp | HyperionOrg/HyperLang | 30f7a1707d00fb5cc6dc22913764389a3b998f09 | [
"MIT"
] | null | null | null | hyper/src/hyper/ast/expressions/binary_expression.cpp | HyperionOrg/HyperLang | 30f7a1707d00fb5cc6dc22913764389a3b998f09 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2022-present, SkillerRaptor <skillerraptor@protonmail.com>
*
* SPDX-License-Identifier: MIT
*/
#include "hyper/ast/expressions/binary_expression.hpp"
namespace hyper
{
BinaryExpression::BinaryExpression(
SourceRange source_range,
Operation operation,
Expression *left,
Expression *right... | 17.909091 | 75 | 0.727157 | HyperionOrg |
ddf3c941ab33982d1a7999825472cbbe81950203 | 948 | cpp | C++ | various/OPENEDG/ch2/set_multiset_count.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 14 | 2019-04-23T13:45:10.000Z | 2022-03-12T18:26:47.000Z | various/OPENEDG/ch2/set_multiset_count.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | null | null | null | various/OPENEDG/ch2/set_multiset_count.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 9 | 2019-09-01T15:17:45.000Z | 2020-11-13T20:31:36.000Z | // 2.2.13
#include <set>
#include <string>
#include <iostream>
#include <functional>
using namespace std;
template <class T>
void print(T start, T end)
{
for (; start != end; ++start)
{
std::cout << *start << " ";
}
}
int main()
{
int t[] = {2, 10, 8, 4, 5, 5, 3, 10, 7, 2};
set<int, great... | 18.96 | 47 | 0.486287 | chgogos |
ddf89d2d0aaaf1d235d4cc3fb97bbad7a553a749 | 364 | cpp | C++ | vSRO-GameServer/Silkroad/CRegionManagerBody.cpp | m1xawy/vSRO-ServerAddon | ff7971c4846bbf28e4758bad79cafb64133456bf | [
"MIT"
] | 13 | 2021-07-11T19:41:49.000Z | 2022-03-14T23:43:55.000Z | vSRO-GameServer/Silkroad/CRegionManagerBody.cpp | m1xawy/vSRO-ServerAddon | ff7971c4846bbf28e4758bad79cafb64133456bf | [
"MIT"
] | 10 | 2021-07-12T21:41:03.000Z | 2022-02-08T16:56:55.000Z | vSRO-GameServer/Silkroad/CRegionManagerBody.cpp | m1xawy/vSRO-ServerAddon | ff7971c4846bbf28e4758bad79cafb64133456bf | [
"MIT"
] | 11 | 2021-07-12T13:05:09.000Z | 2022-03-10T02:11:59.000Z | #include "CRegionManagerBody.h"
CRegionManagerBody* CRegionManagerBody::GetInstance()
{
return *reinterpret_cast<CRegionManagerBody**>(0x400000 + 0x8C387C);
}
bool CRegionManagerBody::ResolveCellAndHeight(NavInfo* NavInfoPtr)
{
return reinterpret_cast<bool(__thiscall*)(CRegionManagerBody*, NavInfo*, int)>(0x400000 ... | 33.090909 | 131 | 0.796703 | m1xawy |
ddfa6b005f4d0f9449adf8375cc1ad67fb1545bc | 435 | cpp | C++ | git_C++/SET I/Prob3/main.cpp | soryncrash13/old-C-stuff | d6f7b3573c1f81597795cea75c5f76fd95c4395b | [
"MIT"
] | 1 | 2017-09-30T09:58:07.000Z | 2017-09-30T09:58:07.000Z | git_C++/SET I/Prob3/main.cpp | sorinmiroiu97/old-CPP-stuff | d6f7b3573c1f81597795cea75c5f76fd95c4395b | [
"MIT"
] | null | null | null | git_C++/SET I/Prob3/main.cpp | sorinmiroiu97/old-CPP-stuff | d6f7b3573c1f81597795cea75c5f76fd95c4395b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int x,y,aux;
cout << "Introduceti primul numar:";cin >> x;
cout << "Introduceti al doilea numar:";cin >> y;
cout << "Primul numar este: " << x << endl;
cout << "Al doilea numar este: " << y << endl;
aux=y;
y=x;
x=aux;... | 19.772727 | 88 | 0.514943 | soryncrash13 |
ddfb799da4aea8441793b32182d314d95a5b8df2 | 2,105 | cpp | C++ | Final_Fantasy_Mystery_World/Final_Fantasy_Mystery_World/p1Follow.cpp | polarpathgames/Polar-Path | cf0eed03bbd6478c4fdd1eb074f48a2ceb78e0d6 | [
"MIT"
] | 9 | 2019-03-05T07:26:04.000Z | 2019-10-09T15:57:45.000Z | Final_Fantasy_Mystery_World/Final_Fantasy_Mystery_World/p1Follow.cpp | polarpathgames/Polar-Path | cf0eed03bbd6478c4fdd1eb074f48a2ceb78e0d6 | [
"MIT"
] | 114 | 2019-03-10T09:35:12.000Z | 2019-06-10T21:39:12.000Z | Final_Fantasy_Mystery_World/Final_Fantasy_Mystery_World/p1Follow.cpp | polarpathgames/Polar-Path | cf0eed03bbd6478c4fdd1eb074f48a2ceb78e0d6 | [
"MIT"
] | 3 | 2019-02-25T16:12:40.000Z | 2019-11-19T20:48:06.000Z | #include "p1Follow.h"
#include "p1Particle.h"
#include "m1Render.h"
#include "App.h"
#include "p2Log.h"
p1Follow::p1Follow(e1Entity* element, iPoint* object, SDL_Rect initial_rect, iPoint area, iPoint timelife, int num_textures, int num_particles, bool active, bool mouse, const iPoint& offset):
area(area), number_par... | 20.637255 | 191 | 0.674584 | polarpathgames |
ddfda440e98ee8b0e70e5fef9bc7bd8615bbcaaf | 1,148 | cpp | C++ | test/src/ConcurrentQueueTest.cpp | rsitko92/thread-pool | 997281de2978acf6527ebfa725f9326b210988c8 | [
"MIT"
] | 1 | 2020-12-18T02:18:20.000Z | 2020-12-18T02:18:20.000Z | test/src/ConcurrentQueueTest.cpp | rsitko92/thread-pool | 997281de2978acf6527ebfa725f9326b210988c8 | [
"MIT"
] | null | null | null | test/src/ConcurrentQueueTest.cpp | rsitko92/thread-pool | 997281de2978acf6527ebfa725f9326b210988c8 | [
"MIT"
] | null | null | null | #include "ConcurrentQueue.hpp"
#include "gtest/gtest.h"
#include <memory>
#include <vector>
namespace
{
using namespace thread_pool;
using namespace ::testing;
}
class ConcurrentQueueTest : public Test
{
protected:
using ItemType = std::unique_ptr<int>;
void addItemToQueue(int value)
{
auto item = std:... | 19.133333 | 58 | 0.714286 | rsitko92 |
ddffd821da3bb3b3e5cc5377a21423beb20b3a7d | 322 | cpp | C++ | Easy/Add_digits.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | 1 | 2021-11-21T16:04:59.000Z | 2021-11-21T16:04:59.000Z | Easy/Add_digits.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | null | null | null | Easy/Add_digits.cpp | AnanyaDas162/Leetcode-Solutions | 00f3982f2a48cc7ef3341565b237a1f9637d26f5 | [
"MIT"
] | null | null | null | class Solution {
public:
int addDigits(int num) {
int result;
if (num == 0)
{
result = 0;
}
else if (num % 9 == 0)
{
result = 9;
}
else
{
result = num % 9;
}
cout<<result;
return result;
}
... | 16.1 | 29 | 0.350932 | AnanyaDas162 |
ddfff1a42a80156c33e7392f7f64e1343ca1b7ec | 181 | cc | C++ | apps/cinder_app_main.cc | aadarshkrishnan/CinderChess | 5b055f000f96814081f0404a9e010b30e5e430d3 | [
"MIT"
] | null | null | null | apps/cinder_app_main.cc | aadarshkrishnan/CinderChess | 5b055f000f96814081f0404a9e010b30e5e430d3 | [
"MIT"
] | null | null | null | apps/cinder_app_main.cc | aadarshkrishnan/CinderChess | 5b055f000f96814081f0404a9e010b30e5e430d3 | [
"MIT"
] | null | null | null | #include "game.h"
using chess::Game;
void prepareSettings(Game::Settings *settings) {
settings->setResizable(false);
}
CINDER_APP(Game, ci::app::RendererGl, prepareSettings); | 20.111111 | 55 | 0.740331 | aadarshkrishnan |
fb000316f4243052b4c8dee45df263553e466391 | 2,634 | cpp | C++ | NamelessEngine/Transform.cpp | mattateusb7/NamelessEngine | 14055477b6f873baab7b01ef8508f559a0b72fc0 | [
"MIT"
] | 2 | 2018-07-19T12:19:08.000Z | 2018-07-20T15:20:32.000Z | NamelessEngine/Transform.cpp | mattateusb7/NamelessEngine-Framework | 14055477b6f873baab7b01ef8508f559a0b72fc0 | [
"MIT"
] | null | null | null | NamelessEngine/Transform.cpp | mattateusb7/NamelessEngine-Framework | 14055477b6f873baab7b01ef8508f559a0b72fc0 | [
"MIT"
] | null | null | null | #include "Transform.h"
_NL::Component::Transform::Transform()
{
}
char* _NL::Component::Transform::getTypeName()
{
return "_NL::Component::Transform";
}
_NL::Component::Transform::~Transform()
{
}
glm::vec3 _NL::Component::Transform::getRotatedForwardVector()
{
return this->transform.QuaternionRotation * this... | 27.4375 | 117 | 0.702354 | mattateusb7 |
fb05bd2fd174037f457dad798be09746603437c1 | 2,628 | cpp | C++ | test/beast/json/key_param.cpp | djarek/BeastLounge | 353b2397cf8507d6e36ed913d6682ae2d827a1ab | [
"BSL-1.0"
] | null | null | null | test/beast/json/key_param.cpp | djarek/BeastLounge | 353b2397cf8507d6e36ed913d6682ae2d827a1ab | [
"BSL-1.0"
] | null | null | null | test/beast/json/key_param.cpp | djarek/BeastLounge | 353b2397cf8507d6e36ed913d6682ae2d827a1ab | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2018-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// 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)
//
// Official repository: https://github.com/boostorg/beast
//
// Test that header ... | 23.256637 | 79 | 0.521309 | djarek |
fb0b757db0cc1363cbed55e51c8df8a84ff511de | 4,507 | cpp | C++ | PTA/PAT(Advanced Level)/c++/A1072.error.cpp | Sunrisepeak/AC-Online-Judge | 5b5ea2eefa2ba48d718957720158fb79134a8fa7 | [
"Apache-2.0"
] | 3 | 2019-03-17T11:47:05.000Z | 2021-12-10T03:41:42.000Z | PTA/PAT(Advanced Level)/c++/A1072.error.cpp | Sunrisepeak/AC-Online-Judge | 5b5ea2eefa2ba48d718957720158fb79134a8fa7 | [
"Apache-2.0"
] | null | null | null | PTA/PAT(Advanced Level)/c++/A1072.error.cpp | Sunrisepeak/AC-Online-Judge | 5b5ea2eefa2ba48d718957720158fb79134a8fa7 | [
"Apache-2.0"
] | null | null | null | /*
* @Author: SPeak Shen
* @Date: 2020-06-27 13:58:05
* @Last Modified by: SPeak Shen
* @Last Modified time: 2020-06-27 19:13:32
*/
// score: 26, case 4 : wrong answer
#include <iostream>
#include <vector>
#include <string>
#include <cmath>
#define INF (1u << 30)
using namespace std;
int G[1100][1100] { { 0 ... | 26.511765 | 85 | 0.382516 | Sunrisepeak |
fb0f90eb95376d7a47abd46b3b52b37d4f6de9d0 | 6,094 | cpp | C++ | src/modules/entropyMap.cpp | EvilzoneLabs/BinDyn | ddaba9f001ab907aed0e7f719ba647beec2cf182 | [
"MIT"
] | 4 | 2017-06-30T10:46:36.000Z | 2021-04-26T18:25:10.000Z | src/modules/entropyMap.cpp | EvilzoneLabs/BinDyn | ddaba9f001ab907aed0e7f719ba647beec2cf182 | [
"MIT"
] | 1 | 2015-04-13T14:15:13.000Z | 2015-04-13T14:15:13.000Z | src/modules/entropyMap.cpp | EvilzoneLabs/BinDyn | ddaba9f001ab907aed0e7f719ba647beec2cf182 | [
"MIT"
] | null | null | null | /***************************************
* entropyMap.cpp
* Defines the Class declared in entropyMap.h
*
* PreConditions: Program Started, User/File loaded
* Main Use: Scan file generate plot based on entropy
* of windows at specified jump distances.
* jumpsize and windowsize can be played ... | 34.822857 | 110 | 0.637184 | EvilzoneLabs |
fb121bd37633c9a32cf23acb8f2ad79f8801453d | 3,634 | cpp | C++ | deps/spidermonkey/xpconnect/tests/components/xpctest_domstring.cpp | havocp/hwf | a99e9a0461983226717b278513cfd9f1e53ba0f1 | [
"MIT"
] | 1 | 2015-04-19T10:49:48.000Z | 2015-04-19T10:49:48.000Z | deps/spidermonkey/xpconnect/tests/components/xpctest_domstring.cpp | havocp/hwf | a99e9a0461983226717b278513cfd9f1e53ba0f1 | [
"MIT"
] | null | null | null | deps/spidermonkey/xpconnect/tests/components/xpctest_domstring.cpp | havocp/hwf | a99e9a0461983226717b278513cfd9f1e53ba0f1 | [
"MIT"
] | null | null | null | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | 30.537815 | 78 | 0.708861 | havocp |
fb13ada777976cabeae6c39b1d6ecb7d513325ca | 1,228 | hpp | C++ | includes/itr/Fifo.hpp | juliendoutre/itr | ea555c8f0f4a6b02e5545911bdd48a3b1fb51a97 | [
"MIT"
] | null | null | null | includes/itr/Fifo.hpp | juliendoutre/itr | ea555c8f0f4a6b02e5545911bdd48a3b1fb51a97 | [
"MIT"
] | null | null | null | includes/itr/Fifo.hpp | juliendoutre/itr | ea555c8f0f4a6b02e5545911bdd48a3b1fb51a97 | [
"MIT"
] | null | null | null | #ifndef Fifo_hpp_INCLUDED
#define Fifo_hpp_INCLUDED
#include "Mutex.hpp"
#include <queue>
#include <exception>
template <typename T>
class Fifo
{
private:
Mutex mutex;
std::queue<T> elements;
public:
class EmptyException;
public:
void push(T element);
T pop();
T pop(double timeout_ms);
};
t... | 17.542857 | 61 | 0.623779 | juliendoutre |
fb14f148ccc66fe043318da9d717ba199d77f783 | 322 | cpp | C++ | Class 4 - solve class/J.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | 4 | 2020-07-10T06:37:52.000Z | 2022-01-03T17:14:21.000Z | Class 4 - solve class/J.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | null | null | null | Class 4 - solve class/J.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | 4 | 2020-11-23T16:58:45.000Z | 2021-01-06T20:20:57.000Z | #include<bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(false),cin.tie(NULL)
#define ll long long
using namespace std;
/*fast io
ios_base::sync_with_stdio(false);
cin.tie(NULL);
*/
int main()
{
fastio;
ll n;
cin>>n;
if(n&1) cout<<(n-1)/2 - n<<endl;
else cout<<n/2<<endl;
return 0;
... | 13.416667 | 61 | 0.621118 | pioneerAlpha |
fb151009dd9ebb97b04faf982ddafaf48deead67 | 570 | cpp | C++ | server/server.cpp | serkanturkkolu/tcpip_abstraction | 2d317abc53c20ea8118449b2878a70c37816a5e4 | [
"MIT"
] | null | null | null | server/server.cpp | serkanturkkolu/tcpip_abstraction | 2d317abc53c20ea8118449b2878a70c37816a5e4 | [
"MIT"
] | null | null | null | server/server.cpp | serkanturkkolu/tcpip_abstraction | 2d317abc53c20ea8118449b2878a70c37816a5e4 | [
"MIT"
] | null | null | null | #include <iostream>
#include "include/tcpip.h"
using namespace std;
int main()
{
TcpIp server(TcpIp::Server);
auto sk = server.socket(8881);
std::cout << "Sock: " << sk << endl;
auto bd=server.bind();
std::cout << "Bind: " << bd << endl;
auto ls = server.listen();
std::cout << "Listened: " ... | 28.5 | 90 | 0.570175 | serkanturkkolu |
fb15ffdcf9a2e30a90cf703e36287f45d6c38259 | 813 | cpp | C++ | CODECHEF/SEPT15/MSTEP/main.cpp | AssemblerTC/Workspace | bdb27e2165ab61471b3515c4a1684e5bdf2238d6 | [
"Unlicense"
] | null | null | null | CODECHEF/SEPT15/MSTEP/main.cpp | AssemblerTC/Workspace | bdb27e2165ab61471b3515c4a1684e5bdf2238d6 | [
"Unlicense"
] | null | null | null | CODECHEF/SEPT15/MSTEP/main.cpp | AssemblerTC/Workspace | bdb27e2165ab61471b3515c4a1684e5bdf2238d6 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct RTC{~RTC(){cerr << "Time: " << clock() * 1.0 / CLOCKS_PER_SEC <<" seconds\n";}} runtimecount;
#define DBG(X) cerr << #X << " = " << X << '\n';
#define mp make_pair
#define mt make_tuple
#define pb push_back
#define eb emplace_back
#define sz(x) ((int)(x).size())
#... | 23.911765 | 100 | 0.503075 | AssemblerTC |
fb1716ed4a3b2cb42981b0b1a00f5eab69f9a482 | 70,383 | hpp | C++ | services/script/yacc/parser.hpp | openharmony-gitee-mirror/update_updater | 72393623a6aa9d08346da98433bb3bdbe5f07120 | [
"Apache-2.0"
] | null | null | null | services/script/yacc/parser.hpp | openharmony-gitee-mirror/update_updater | 72393623a6aa9d08346da98433bb3bdbe5f07120 | [
"Apache-2.0"
] | null | null | null | services/script/yacc/parser.hpp | openharmony-gitee-mirror/update_updater | 72393623a6aa9d08346da98433bb3bdbe5f07120 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:34.000Z | 2021-09-13T11:17:34.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 37.004732 | 111 | 0.571672 | openharmony-gitee-mirror |
fb1ca728d5b325dfd821e546875935bd15f09ae0 | 13,481 | cpp | C++ | src/caffe/layers/pooling_td_layer.cpp | niuchuangnn/Caffe_custom | 9e347d238ffcfb7af0b628230a2feb7ddd98adda | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/pooling_td_layer.cpp | niuchuangnn/Caffe_custom | 9e347d238ffcfb7af0b628230a2feb7ddd98adda | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/pooling_td_layer.cpp | niuchuangnn/Caffe_custom | 9e347d238ffcfb7af0b628230a2feb7ddd98adda | [
"BSD-2-Clause"
] | null | null | null | //
// Created by Niu Chuang on 17-9-26.
//
#include <algorithm>
#include <cfloat>
#include <vector>
#include <cstdio>
#include <iostream>
using namespace std;
#include "caffe/common.hpp"
#include "caffe/layer.hpp"
#include "caffe/syncedmem.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/layers/pooling_td... | 48.318996 | 170 | 0.493509 | niuchuangnn |
fb1f3ba39e49360effb23ec0726334742a50de9b | 730 | cpp | C++ | UI_bar.cpp | SarwanShah/C-Game-Hoshruba | a47da529748a9af8085500757cc8e0b7378b0723 | [
"Apache-2.0"
] | null | null | null | UI_bar.cpp | SarwanShah/C-Game-Hoshruba | a47da529748a9af8085500757cc8e0b7378b0723 | [
"Apache-2.0"
] | null | null | null | UI_bar.cpp | SarwanShah/C-Game-Hoshruba | a47da529748a9af8085500757cc8e0b7378b0723 | [
"Apache-2.0"
] | null | null | null | #include "UI_Bar.h"
UIBar::UIBar(LTexture* textureSheet, SDL_Rect* textureRect, int x_pos, int y_pos, int x_size, int y_size):OnScreenTexture(textureSheet, textureRect, x_pos, y_pos, x_size, y_size)
{
cout << "UI Bar Constructor Called" << endl;
}
UIBar::~UIBar()
{
cout << "UI Bar Destructor Called" ... | 30.416667 | 179 | 0.649315 | SarwanShah |
fb27bf1a2ac1928155aa190a6f01d56edc944ae6 | 1,224 | cpp | C++ | ut/source/test_ck_server_threaded.cpp | dicroce/cppkit | dc64dacacc54665b079836a1bc7d8fb028616ffe | [
"BSD-2-Clause-FreeBSD"
] | 12 | 2015-03-27T21:29:02.000Z | 2016-11-26T23:43:52.000Z | ut/source/test_ck_server_threaded.cpp | dicroce/cppkit | dc64dacacc54665b079836a1bc7d8fb028616ffe | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-01-18T00:32:12.000Z | 2017-01-18T00:32:12.000Z | ut/source/test_ck_server_threaded.cpp | dicroce/cppkit | dc64dacacc54665b079836a1bc7d8fb028616ffe | [
"BSD-2-Clause-FreeBSD"
] | 6 | 2015-02-08T13:10:27.000Z | 2017-01-18T00:24:47.000Z |
#include "framework.h"
#include "test_ck_server_threaded.h"
#include "cppkit/ck_server_threaded.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <thread>
#include <mutex>
#include <condition_variable>
using namespace std;
using namespace cppkit;
REGISTER_TEST_FIXTURE(test_ck_server_threaded);
... | 17.73913 | 83 | 0.581699 | dicroce |
fb2cbf29e7d0ac35a071e49719271c5ab0e65040 | 4,752 | hpp | C++ | src/cxx/soDebugCallback.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | src/cxx/soDebugCallback.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | src/cxx/soDebugCallback.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2018 by Bennet Carstensen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, ... | 39.932773 | 79 | 0.590278 | BenSolus |
fb2f43cc49f5d1417964b9cd901a701a4b143da3 | 1,491 | cpp | C++ | src/gui/auxiliary/window_builder/image.cpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 12 | 2015-03-04T15:07:00.000Z | 2019-09-13T16:31:06.000Z | src/gui/auxiliary/window_builder/image.cpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | null | null | null | src/gui/auxiliary/window_builder/image.cpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 5 | 2017-04-22T08:16:48.000Z | 2020-07-12T03:35:16.000Z | /* $Id: image.cpp 48913 2011-03-14 20:36:58Z mordante $ */
/*
Copyright (C) 2008 - 2011 by Mark de Wever <koraq@xs4all.nl>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public L... | 22.253731 | 72 | 0.668679 | blackberry |
fb3176843070d5710e32f03208efac74de544d3d | 583 | cpp | C++ | Source/freeze.cpp | bergice/Kingslayer | 21ba00fd0d518369de870fd4eefc61ee25c2821d | [
"MIT"
] | null | null | null | Source/freeze.cpp | bergice/Kingslayer | 21ba00fd0d518369de870fd4eefc61ee25c2821d | [
"MIT"
] | null | null | null | Source/freeze.cpp | bergice/Kingslayer | 21ba00fd0d518369de870fd4eefc61ee25c2821d | [
"MIT"
] | null | null | null | #include "freeze.h"
#include "program.h"
#include "boost\\lexical_cast.hpp"
#include "player.h"
void FreezeThread (void)
{
while(true)
{
for (unsigned i=0; i<program->frozen.size(); i++)
{
if (program->frozen[i].player)
{
time_t now; time(&now);
double seconds = difftime(now, program->frozen[i].... | 19.433333 | 81 | 0.61235 | bergice |
fb33a529ccabfebacf28d9308dc9adba25154ee4 | 8,698 | cpp | C++ | scisimtests/rational_number_tests.cpp | Lyestria/scisim | e2c2abc8d38ea9b07717841782c5c723fce37ce5 | [
"Apache-2.0"
] | null | null | null | scisimtests/rational_number_tests.cpp | Lyestria/scisim | e2c2abc8d38ea9b07717841782c5c723fce37ce5 | [
"Apache-2.0"
] | null | null | null | scisimtests/rational_number_tests.cpp | Lyestria/scisim | e2c2abc8d38ea9b07717841782c5c723fce37ce5 | [
"Apache-2.0"
] | null | null | null | // rational_number_tests.cpp
//
// Breannan Smith
// Last updated: 09/03/2015
#include <iostream>
#include <string>
#include <cstdlib>
#include <cmath>
#include "scisim/Math/MathDefines.h"
#include "scisim/Math/Rational.h"
int main( int argc, char** argv )
{
if( argc != 2 )
{
std::cerr << "Usage: " << argv[0... | 29.187919 | 86 | 0.618993 | Lyestria |
fb3b97eb2c306b3f5217fbbddde03378a8c8d902 | 724 | cpp | C++ | test/misc/shape/numel.cpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | 16 | 2020-11-17T18:25:16.000Z | 2022-03-19T15:12:19.000Z | test/misc/shape/numel.cpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | 6 | 2021-08-17T16:13:46.000Z | 2022-03-04T09:32:48.000Z | test/misc/shape/numel.cpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | null | null | null | //==================================================================================================
/**
KIWAKU - Containers Well Made
Copyright 2020 Joel FALCOU
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
**/
//=============================================... | 34.47619 | 100 | 0.453039 | jfalcou |
fb3c1f6c5373224f58d4bbb00aff963299aef9ba | 1,237 | cpp | C++ | 8INF259-TP2/ChromoCell.cpp | Hexzhe/8INF259-TP2 | ed72ba14544fdc346b4555e4619f969197735da9 | [
"MIT"
] | null | null | null | 8INF259-TP2/ChromoCell.cpp | Hexzhe/8INF259-TP2 | ed72ba14544fdc346b4555e4619f969197735da9 | [
"MIT"
] | null | null | null | 8INF259-TP2/ChromoCell.cpp | Hexzhe/8INF259-TP2 | ed72ba14544fdc346b4555e4619f969197735da9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ChromoCell.h"
ChromoCell::ChromoCell(ChromoPair* pair1, ChromoPair* pair2, ChromoPair* pair3, ChromoPair* pair4)
{
this->pair1 = pair1;
this->pair2 = pair2;
this->pair3 = pair3;
this->pair4 = pair4;
}
ChromoCell::~ChromoCell()
{
pair1 = pair2 = pair3 = pair4 = nullptr;
delete pair1, ... | 20.616667 | 98 | 0.616815 | Hexzhe |
fb3c5ccc83e27a63a292bd82474580057a543a91 | 1,228 | cpp | C++ | test/Core/TestFPSCounter.cpp | Simmesimme/illusion-3d | 48520d87ea0677bb8852b20bb6fbfbe1a49402d2 | [
"MIT"
] | 8 | 2019-12-05T15:57:23.000Z | 2022-01-19T19:37:23.000Z | test/Core/TestFPSCounter.cpp | Schneegans/illusion | 48520d87ea0677bb8852b20bb6fbfbe1a49402d2 | [
"MIT"
] | null | null | null | test/Core/TestFPSCounter.cpp | Schneegans/illusion | 48520d87ea0677bb8852b20bb6fbfbe1a49402d2 | [
"MIT"
] | 1 | 2019-01-15T10:35:13.000Z | 2019-01-15T10:35:13.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
// //
// _) | | _) This code may be used and modified under the terms //
// | | | |... | 40.933333 | 100 | 0.393322 | Simmesimme |
fb3d24370449e217bc53c0df098392403322519d | 1,355 | hh | C++ | ggeo/GMeshMaker.hh | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | ggeo/GMeshMaker.hh | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | ggeo/GMeshMaker.hh | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | /*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... | 30.795455 | 95 | 0.702583 | hanswenzel |
fb40cbad9e88899b1728b6d350345f1de612e631 | 571 | hpp | C++ | generator/translator_geo_objects.hpp | letko-dmitry/omim | 83797b2070e22f8d67f36d9c7e291e31ea2480ea | [
"Apache-2.0"
] | 1 | 2019-05-27T02:45:22.000Z | 2019-05-27T02:45:22.000Z | generator/translator_geo_objects.hpp | Mahmoudabdelmobdy/omim | 1d444650803b27e507b5e9532551d41bab621a53 | [
"Apache-2.0"
] | 1 | 2019-05-14T15:26:55.000Z | 2019-05-16T11:00:33.000Z | generator/translator_geo_objects.hpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "generator/emitter_interface.hpp"
#include "generator/translator.hpp"
#include <memory>
namespace cache
{
class IntermediateDataReader;
} // namespace cache
namespace generator
{
// The TranslatorGeoObjects class implements translator for building geo objects.
// Every GeoObject is either a b... | 23.791667 | 81 | 0.749562 | letko-dmitry |
fb43f4dd182f9de55df85494c3a2efdc08257bed | 12,043 | cpp | C++ | psx/_dump_/52/_dump_c_src_/diabpsx/source/inv.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 15 | 2018-06-28T01:11:25.000Z | 2021-09-27T15:57:18.000Z | psx/_dump_/52/_dump_c_src_/diabpsx/source/inv.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-29T04:08:23.000Z | 2019-10-17T13:57:22.000Z | psx/_dump_/52/_dump_c_src_/diabpsx/source/inv.cpp | maoa3/scalpel | 2e7381b516cded28996d290438acc618d00b2aa7 | [
"Unlicense"
] | 7 | 2018-06-28T01:11:34.000Z | 2020-05-23T09:21:48.000Z | // C:\diabpsx\SOURCE\INV.CPP
#include "types.h"
// address: 0x80151F04
// line start: 434
// line end: 435
void FreeInvGFX__Fv() {
}
// address: 0x80151F0C
// line start: 440
// line end: 447
void InvDrawSlot__Fiii(int X, int Y, int Frame) {
// register: 2
// size: 0x28
register struct POLY_FT4 *Ft4;
}
// ... | 16.633978 | 174 | 0.630242 | maoa3 |
fb44ef961ff07d17f59951e4138652ae891cd07b | 6,592 | cpp | C++ | code_reading/oceanbase-master/src/storage/memtable/ob_memtable_array.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/storage/memtable/ob_memtable_array.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/storage/memtable/ob_memtable_array.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 26.473896 | 116 | 0.672482 | wangcy6 |
fb44fdc2f98d81d996a11b2af7f480a83c5bdcbf | 1,444 | cc | C++ | C++/Dynamic Programming/Sum of all substrings of a number/substring_sum.cc | vedant-jad99/GeeksForGeeks-DSA-Workshop-Complete-Codes | 35cee8317c05b36864a992789c741554205b3919 | [
"MIT"
] | 1 | 2021-02-11T14:54:34.000Z | 2021-02-11T14:54:34.000Z | C++/Dynamic Programming/Sum of all substrings of a number/substring_sum.cc | vedant-jad99/GeeksForGeeks-DSA-Workshop-Complete-Codes | 35cee8317c05b36864a992789c741554205b3919 | [
"MIT"
] | null | null | null | C++/Dynamic Programming/Sum of all substrings of a number/substring_sum.cc | vedant-jad99/GeeksForGeeks-DSA-Workshop-Complete-Codes | 35cee8317c05b36864a992789c741554205b3919 | [
"MIT"
] | null | null | null | //Link to the problem - https://practice.geeksforgeeks.org/problems/sum-of-all-substrings-of-a-number-1587115621/1
//*****************************************************************************
// IMPORTANT
//*****************************************************************************
... | 30.083333 | 114 | 0.463296 | vedant-jad99 |
fb4508c2905a027430aff4310f8a4d30242f7013 | 1,067 | hpp | C++ | src/rynx/application/visualisation/renderer.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | 11 | 2019-08-19T08:44:14.000Z | 2020-09-22T20:04:46.000Z | src/rynx/application/visualisation/renderer.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null | src/rynx/application/visualisation/renderer.hpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null |
#pragma once
#include <rynx/tech/ecs.hpp>
#include <memory>
#include <vector>
namespace rynx {
namespace scheduler {
class context;
}
namespace application {
class igraphics_step {
public:
virtual ~igraphics_step() {}
virtual void execute() = 0;
virtual void prepare(rynx::scheduler::context* ctx) ... | 21.34 | 104 | 0.676664 | Apodus |
fb455f372f9832f8500f283a4601a5b5333015b9 | 4,765 | cpp | C++ | src/state_space/mesh_map_loader_offline.cpp | cogsys-tuebingen/muse_armcl | 63eb0c8d3a1d03d84222acbb5b0c9978065bcc3c | [
"BSD-3-Clause"
] | 5 | 2020-01-19T09:35:28.000Z | 2021-11-04T10:08:24.000Z | src/state_space/mesh_map_loader_offline.cpp | cxdcxd/muse_armcl | 63eb0c8d3a1d03d84222acbb5b0c9978065bcc3c | [
"BSD-3-Clause"
] | null | null | null | src/state_space/mesh_map_loader_offline.cpp | cxdcxd/muse_armcl | 63eb0c8d3a1d03d84222acbb5b0c9978065bcc3c | [
"BSD-3-Clause"
] | 1 | 2019-11-10T23:40:59.000Z | 2019-11-10T23:40:59.000Z | #include <mutex>
#include <thread>
#include <atomic>
#include <condition_variable>
#include <muse_armcl/state_space/transform_graph.h>
#include <muse_armcl/state_space/mesh_map_provider.hpp>
#include <cslibs_math_ros/tf/conversion_3d.hpp>
#include <cslibs_mesh_map/cslibs_mesh_map_visualization.h>
#include <ros/ros.h>
... | 33.321678 | 112 | 0.558867 | cogsys-tuebingen |
fb45deee763271822a084fa9a5855da35dd6e95b | 568 | cpp | C++ | _includes/leet524/leet524_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | _includes/leet524/leet524_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | 8 | 2019-12-19T04:46:05.000Z | 2022-02-26T03:45:22.000Z | _includes/leet524/leet524_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | class Solution {
public:
string findLongestWord(string s, vector<string>& d) {
string res = "";
for(auto substr:d){
if(substr.size()>res.size()||(substr.size()==res.size()&&substr.compare(res)<0)){
if(match(s,substr)) res = substr;
}
}
return r... | 25.818182 | 93 | 0.466549 | mingdaz |
fb472d40c6458f368f79372fc2a08e9896693141 | 466 | cpp | C++ | src/16000/16471.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/16000/16471.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/16000/16471.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int a[100001], b[100001];
int n;
int solve(int x, int y)
{
if(x>n || y>n) return 0;
if(a[x]<b[y]) return 1+solve(x+1, y+1);
return solve(x, y+1);
}
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cin>>n;
for(int i=1; i<=n; i++)
c... | 16.068966 | 43 | 0.491416 | upple |
fb47c5b5787b2b6649b7321e072b268928fe13e1 | 1,100 | cpp | C++ | src/char_array_allocator.cpp | chloro-pn/pnlog | 0280539ff388db6bcc823a85c987b52b261fa920 | [
"MIT"
] | null | null | null | src/char_array_allocator.cpp | chloro-pn/pnlog | 0280539ff388db6bcc823a85c987b52b261fa920 | [
"MIT"
] | null | null | null | src/char_array_allocator.cpp | chloro-pn/pnlog | 0280539ff388db6bcc823a85c987b52b261fa920 | [
"MIT"
] | 1 | 2020-04-01T13:36:51.000Z | 2020-04-01T13:36:51.000Z | #include "../include/char_array_allocator.h"
#include <cassert>
namespace pnlog {
CharArrayAllocator::CharArrayAllocator():size_(0) {
}
std::shared_ptr<CharArrayAllocator> CharArrayAllocator::instance() {
static std::shared_ptr<CharArrayAllocator> instance_(new CharArrayAllocator());
return instance_;
}
std::sh... | 24.444444 | 81 | 0.673636 | chloro-pn |
fb4e98fb3839025ace91ec7aedecc9c2ededab59 | 6,359 | cpp | C++ | code-demo/list/list_insert_anywhere-k19lesson3.cpp | kzhereb/knu-is-progr2019 | 6a85b3659103800d8ec4a8097df2a547d6c8dda4 | [
"MIT"
] | null | null | null | code-demo/list/list_insert_anywhere-k19lesson3.cpp | kzhereb/knu-is-progr2019 | 6a85b3659103800d8ec4a8097df2a547d6c8dda4 | [
"MIT"
] | null | null | null | code-demo/list/list_insert_anywhere-k19lesson3.cpp | kzhereb/knu-is-progr2019 | 6a85b3659103800d8ec4a8097df2a547d6c8dda4 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
namespace k19lesson3 {
struct Node {
int dat;
Node *next;
Node *prev;
};
//-------------------------
Node *first(int);
void add(Node **, int);
void add_ref(Node *&, int);
Node *find(Node * const, int);
bool remove(Node **, Node **, int);
Node *insert(Node * ... | 22.710714 | 76 | 0.51722 | kzhereb |
fb5339d48152cd0c96b00caf3d0c202470a4f523 | 923 | cpp | C++ | fpstimer.cpp | alxistn/ar-blackboard | 73263c18d37645180565353316085bbcfe361018 | [
"MIT"
] | 1 | 2016-10-12T12:01:59.000Z | 2016-10-12T12:01:59.000Z | fpstimer.cpp | alxistn/ar-blackboard | 73263c18d37645180565353316085bbcfe361018 | [
"MIT"
] | null | null | null | fpstimer.cpp | alxistn/ar-blackboard | 73263c18d37645180565353316085bbcfe361018 | [
"MIT"
] | null | null | null | #include "cmath"
#include "fpstimer.h"
FPSTimer::FPSTimer(float maxFPS)
: _maxFPS(maxFPS), _minFrameTime((1.0f / maxFPS) * 1000.0f)
{
}
FPSTimer::FPSTimer()
: _maxFPS(0), _minFrameTime(0.0f)
{
}
void FPSTimer::start()
{
_currentTime = SDL_GetTicks();
}
void FPSTimer::update()
{
_oldTime = _currentTi... | 19.229167 | 63 | 0.614301 | alxistn |
fb555ce4aff17a2a254b477bc5f051f98727beed | 3,096 | cpp | C++ | lib/poplin/codelets/WgdDataTransform.cpp | graphcore/poplibs | 3fe5a3ecafe995eddb72675d1b4a7af8a622009e | [
"MIT"
] | 95 | 2020-07-06T17:11:23.000Z | 2022-03-12T14:42:28.000Z | lib/poplin/codelets/WgdDataTransform.cpp | giantchen2012/poplibs | 2bc6b6f3d40863c928b935b5da88f40ddd77078e | [
"MIT"
] | null | null | null | lib/poplin/codelets/WgdDataTransform.cpp | giantchen2012/poplibs | 2bc6b6f3d40863c928b935b5da88f40ddd77078e | [
"MIT"
] | 14 | 2020-07-15T12:32:57.000Z | 2022-01-26T14:58:45.000Z | // Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#include <poplar/HalfFloat.hpp>
#include <poplar/Vertex.hpp>
#include <cassert>
using namespace poplar;
static constexpr auto ONE_PTR = poplar::VectorLayout::ONE_PTR;
namespace poplin {
template <class FPType, unsigned patchSizeX, unsigned patchSizeY,
... | 32.93617 | 80 | 0.635659 | graphcore |
fb5a918895aaef33e15fa43ebb840eeccde9ff3b | 7,903 | cpp | C++ | contrib/samples/testsuite/simplebutton/OptionDialog.cpp | nanocortex/vscp | 0b1a51a35a886921179a8112c592547f84c9771a | [
"CC-BY-3.0"
] | 2 | 2020-12-01T18:54:20.000Z | 2022-01-24T20:18:33.000Z | samples/testsuite/simplebutton/OptionDialog.cpp | grodansparadis/vscp-samples | 43becaafe267de0b772e99d9608e8ec4eb8343c8 | [
"MIT"
] | null | null | null | samples/testsuite/simplebutton/OptionDialog.cpp | grodansparadis/vscp-samples | 43becaafe267de0b772e99d9608e8ec4eb8343c8 | [
"MIT"
] | null | null | null | // OptionDialog.cpp: implementation of the COptionDialog class.
//
//////////////////////////////////////////////////////////////////////
// Copyright (C) 2002-2011 Ake Hedman akhe@eurosource.se
//
// This software is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General ... | 23.948485 | 87 | 0.499051 | nanocortex |
fb5d75c43b92ee4de3f9dd1a57ac057435c35568 | 751 | cpp | C++ | GeeksforGeeks/Easy/C++/For Loop- primeCheck.cpp | mohitkhedkar/Competitive-programming | 85d08791002363c6a1104b6b51bf049489fd5257 | [
"MIT"
] | 2 | 2020-10-22T15:37:14.000Z | 2020-12-11T06:45:02.000Z | GeeksforGeeks/Easy/C++/For Loop- primeCheck.cpp | mohitkhedkar/Competitive-programming | 85d08791002363c6a1104b6b51bf049489fd5257 | [
"MIT"
] | null | null | null | GeeksforGeeks/Easy/C++/For Loop- primeCheck.cpp | mohitkhedkar/Competitive-programming | 85d08791002363c6a1104b6b51bf049489fd5257 | [
"MIT"
] | null | null | null | // { Driver Code Starts
//Initial Template for C++
#include <bits/stdc++.h>
using namespace std;
void isPrime(int n);
// } Driver Code Ends
//User function Template for C++
//Complete this function
void isPrime(int n)
{
if(n==1){
cout<<"No\n";
return;
}
for(int i=2;i<=sqrt(n);i++)
{
... | 15.645833 | 61 | 0.517976 | mohitkhedkar |
fb6298634b7718e8677ff7f2b588c3b56464c602 | 6,909 | cpp | C++ | SmartRockets/SmartRocketsApp.cpp | ElectroBean/SmartRockets | fc4bd2a98b4e59929583f3b9b185401d168d8f7b | [
"MIT"
] | null | null | null | SmartRockets/SmartRocketsApp.cpp | ElectroBean/SmartRockets | fc4bd2a98b4e59929583f3b9b185401d168d8f7b | [
"MIT"
] | null | null | null | SmartRockets/SmartRocketsApp.cpp | ElectroBean/SmartRockets | fc4bd2a98b4e59929583f3b9b185401d168d8f7b | [
"MIT"
] | null | null | null | #include "SmartRocketsApp.h"
#include "Texture.h"
#include "Font.h"
#include "Input.h"
#include <glm\gtc\random.hpp>
#include <string>
#include <iostream>
SmartRocketsApp::SmartRocketsApp() {
}
SmartRocketsApp::~SmartRocketsApp() {
}
bool SmartRocketsApp::startup() {
m_2dRenderer = new aie::Renderer2D();
// TO... | 26.988281 | 155 | 0.669417 | ElectroBean |
fb67e61e5aa8f3f8640c947438d9de4ad3a4a232 | 542 | cpp | C++ | Chapter 18/stack.cpp | nikhilbadyal/learn-cpp-primer | 48587c4b138d2c26ba56633c8e0f12d9a6dbea38 | [
"MIT"
] | null | null | null | Chapter 18/stack.cpp | nikhilbadyal/learn-cpp-primer | 48587c4b138d2c26ba56633c8e0f12d9a6dbea38 | [
"MIT"
] | null | null | null | Chapter 18/stack.cpp | nikhilbadyal/learn-cpp-primer | 48587c4b138d2c26ba56633c8e0f12d9a6dbea38 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main() {
int opc;
bool aux = true;
cin.exceptions(std::istream::failbit);
do {
try {
cout << "PLEASE INSERT VALUE:" << endl;
cin >> opc;
aux = true;
}
catch (std::ios_base::failure &fail) {
... | 23.565217 | 60 | 0.46679 | nikhilbadyal |
fb6ea182978e1e34bb278d70ef553459f596a4f9 | 2,277 | cpp | C++ | Caocao/lua_console.cpp | ysm1180/NewJojoGame | d46be6e979642ed3f139ad7905c983ac03356dd2 | [
"MIT"
] | 6 | 2018-10-12T08:06:35.000Z | 2019-01-20T12:53:35.000Z | Caocao/lua_console.cpp | ysm1180/ThreeKingdoms-Caocao | d46be6e979642ed3f139ad7905c983ac03356dd2 | [
"MIT"
] | 2 | 2018-10-12T08:09:05.000Z | 2019-01-20T12:55:27.000Z | Caocao/lua_console.cpp | ysm1180/NewJojoGame | d46be6e979642ed3f139ad7905c983ac03356dd2 | [
"MIT"
] | 2 | 2018-05-19T17:49:23.000Z | 2018-10-15T03:10:57.000Z | #include "lua_console.h"
#include "resource.h"
namespace three_kingdoms {
std::once_flag LuaConsole::s_onceFlag;
std::unique_ptr<LuaConsole> LuaConsole::s_sharedLuaConsole;
INT_PTR __stdcall DialogProc(HWND hDialog, UINT message, WPARAM wParam,
LPARAM lParam) {
switch (message) {
c... | 24.223404 | 74 | 0.653491 | ysm1180 |
fb6edb931e25578d4b852d21b25c053e70112508 | 1,211 | cpp | C++ | src/nativefunc.cpp | end2endzone/msbuildreorder | 9df4df177092e2ad141692ec7b43eb814b806d9b | [
"MIT"
] | 9 | 2018-12-18T11:56:26.000Z | 2022-01-17T07:51:10.000Z | src/nativefunc.cpp | end2endzone/msbuildreorder | 9df4df177092e2ad141692ec7b43eb814b806d9b | [
"MIT"
] | 15 | 2018-02-09T21:37:10.000Z | 2019-07-20T19:31:41.000Z | src/nativefunc.cpp | end2endzone/msbuildreorder | 9df4df177092e2ad141692ec7b43eb814b806d9b | [
"MIT"
] | 3 | 2018-12-18T11:56:29.000Z | 2022-03-07T09:26:25.000Z | #include "nativefunc.h"
#ifdef WIN32
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif
#include <windows.h> // for Sleep()
#undef min
#undef max
#elif _POSIX_C_SOURCE >= 199309L
#include <time.h> // for nanosleep()
#else
#include <unistd.h> // for usleep()
#endif
namespace nativefu... | 25.229167 | 93 | 0.656482 | end2endzone |
fb6efbf3bc412797587535afb3b175e547b3d4c4 | 2,996 | cpp | C++ | BAPSPresenter/BAPSLabel.cpp | UniversityRadioYork/BAPS2 | af80b66cdd7a980cf34714bef7b5260167714ca5 | [
"BSD-3-Clause"
] | 4 | 2018-12-20T20:58:46.000Z | 2019-05-22T21:32:43.000Z | BAPSPresenter/BAPSLabel.cpp | UniversityRadioYork/BAPS2 | af80b66cdd7a980cf34714bef7b5260167714ca5 | [
"BSD-3-Clause"
] | 9 | 2018-12-22T00:55:13.000Z | 2019-01-21T10:08:30.000Z | BAPSPresenter/BAPSLabel.cpp | UniversityRadioYork/BAPS2 | af80b66cdd7a980cf34714bef7b5260167714ca5 | [
"BSD-3-Clause"
] | 1 | 2018-12-21T19:32:48.000Z | 2018-12-21T19:32:48.000Z | #include "StdAfx.h"
#include "BAPSLabel.h"
using namespace BAPSPresenter;
void BAPSLabel::OnResize(System::EventArgs^ e)
{
backBrush = gcnew System::Drawing::Drawing2D::LinearGradientBrush(this->ClientRectangle,
((isHighlighted)?highlightColor:System::Drawing::Color::Snow),
System::Drawing::Color::Anti... | 41.041096 | 162 | 0.73231 | UniversityRadioYork |
fb702a076bdcc2fb52f0a51818911e656833341d | 473 | hpp | C++ | DiffSamp/src/code/Library/CosImportanceField.hpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 24 | 2016-12-13T09:48:17.000Z | 2022-01-13T03:24:45.000Z | DiffSamp/src/code/Library/CosImportanceField.hpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 2 | 2019-03-29T06:44:41.000Z | 2019-11-12T03:14:25.000Z | DiffSamp/src/code/Library/CosImportanceField.hpp | 1iyiwei/noise | 0d1be2030518517199dff5c7e7514ee072037d59 | [
"MIT"
] | 8 | 2016-11-09T15:54:19.000Z | 2021-04-08T14:04:17.000Z | /*
CosImportanceField.hpp
Li-Yi Wei
10/12/2010
*/
#ifndef _COS_IMPORTANCE_FIELD_HPP
#define _COS_IMPORTANCE_FIELD_HPP
#include "ImportanceField.hpp"
class CosImportanceField : public ImportanceField
{
public:
// cos(2*pi*freq*query) + 1
CosImportanceField(const Coordinate & frequency);
~CosImpor... | 15.258065 | 53 | 0.729387 | 1iyiwei |
fb71d1db2b1fc0f103665dd2dc91063f7604ba88 | 357 | cc | C++ | other/unordered_map/02.cc | chanchann/workflow_annotation | f986e65af82a91d9257a655ba7a4ece272b89c26 | [
"MIT"
] | 66 | 2021-10-17T11:54:11.000Z | 2022-03-29T13:05:02.000Z | other/unordered_map/02.cc | xjchilli/workflow_annotation | e91795aa91ee6c0d40f1ca0edd7e9c1338479e77 | [
"MIT"
] | 1 | 2021-11-24T18:37:18.000Z | 2021-11-29T12:49:47.000Z | other/unordered_map/02.cc | xjchilli/workflow_annotation | e91795aa91ee6c0d40f1ca0edd7e9c1338479e77 | [
"MIT"
] | 17 | 2021-09-27T03:47:50.000Z | 2022-03-22T08:22:12.000Z | #include <iostream>
#include <unordered_map>
int main()
{
std::unordered_map<std::string, std::string> map;
map["123"] = "abc";
map["4"] = "d";
std::unordered_map<std::string, std::string> map2;
map2 = std::move(map);
for(auto &m : map2)
{
std::cout << m.first << " : " << m.secon... | 18.789474 | 63 | 0.535014 | chanchann |
fb72c5250430199327c2f02fda47140685d6f4b9 | 502 | cpp | C++ | CPP/bubble_sort.cpp | AbdulConsole/Hacktoberfest2019-2 | b9619361b6cecf9b3e734972af3b0a03dba98d2e | [
"MIT"
] | 1 | 2019-10-28T20:12:23.000Z | 2019-10-28T20:12:23.000Z | CPP/bubble_sort.cpp | AbdulConsole/Hacktoberfest2019-2 | b9619361b6cecf9b3e734972af3b0a03dba98d2e | [
"MIT"
] | null | null | null | CPP/bubble_sort.cpp | AbdulConsole/Hacktoberfest2019-2 | b9619361b6cecf9b3e734972af3b0a03dba98d2e | [
"MIT"
] | 1 | 2020-10-16T14:10:12.000Z | 2020-10-16T14:10:12.000Z | #include <iostream>
#include <vector>
using namespace std;
void bubble_sort(vector<int> &v)
{
int n = v.size();
for(int i=0; i < n-1; i++){
for(int j=0; j < n-i-1; j++){
if(v[j] > v[j+1]){
//swap;
int tmp = v[j];
v[j] = v[j+1];
v[j+1] = tmp;
... | 16.733333 | 52 | 0.408367 | AbdulConsole |
fb78746f889f253e934aef4eb56c3d66683ec97b | 7,649 | cpp | C++ | test/nse_sequential_test.cpp | ahorn/smt-kit | d163b9a45ddf931820759e14f58f21b808ee7f57 | [
"BSD-3-Clause"
] | 31 | 2015-01-31T03:56:01.000Z | 2021-10-02T09:52:39.000Z | test/nse_sequential_test.cpp | ahorn/smt-kit | d163b9a45ddf931820759e14f58f21b808ee7f57 | [
"BSD-3-Clause"
] | null | null | null | test/nse_sequential_test.cpp | ahorn/smt-kit | d163b9a45ddf931820759e14f58f21b808ee7f57 | [
"BSD-3-Clause"
] | 4 | 2015-01-13T12:32:42.000Z | 2020-10-01T03:03:55.000Z | #include "nse_sequential.h"
// Include <gtest/gtest.h> _after_ "nse_sequential.h.h"
#include "gtest/gtest.h"
using namespace crv;
TEST(NseSequentialTest, Pointer)
{
Internal<char[]> array;
Internal<size_t> index;
index = 1;
array[0] = 'A';
array[1] = 'B';
array[2] = 'C';
Internal<char*> ptr = array;... | 23.46319 | 55 | 0.664139 | ahorn |
fb7ac381dceb1534684779aaaaf56c0826600701 | 9,199 | cpp | C++ | engine/renderer/gf3d_device.cpp | ddembner/gf3d_plusplus | cc426866bdf210645ad0e1d42056170a81083cec | [
"MIT"
] | null | null | null | engine/renderer/gf3d_device.cpp | ddembner/gf3d_plusplus | cc426866bdf210645ad0e1d42056170a81083cec | [
"MIT"
] | null | null | null | engine/renderer/gf3d_device.cpp | ddembner/gf3d_plusplus | cc426866bdf210645ad0e1d42056170a81083cec | [
"MIT"
] | null | null | null | #include "core/gf3d_logger.h"
#include "gf3d_device.h"
#include "gf3d_validations.h"
#include "vulkan_functions.h"
#include "containers/vector.hpp"
void Gf3dDevice::init(Gf3dWindow* window)
{
assert(window);
gf3dWindow = window;
createInstance();
if (isValidationLayersEnabled()) {
setupDebugCallback();
LOGGER_... | 33.695971 | 202 | 0.791608 | ddembner |
fb7ac8ea24cdccaaa589cf3dd339ed894cdea915 | 489 | cpp | C++ | Src/Mcal/X86PC_MSVC/Bsw/Mcal/Wdg/Wdg.cpp | miaozhendaoren/autosar-framework | abcf11970470c082b2137da16e9b1a460e72fd74 | [
"BSL-1.0"
] | 31 | 2016-04-15T13:47:28.000Z | 2022-01-26T17:40:26.000Z | Src/Mcal/X86PC_MSVC/Bsw/Mcal/Wdg/Wdg.cpp | myGiter/autosar-framework | abcf11970470c082b2137da16e9b1a460e72fd74 | [
"BSL-1.0"
] | null | null | null | Src/Mcal/X86PC_MSVC/Bsw/Mcal/Wdg/Wdg.cpp | myGiter/autosar-framework | abcf11970470c082b2137da16e9b1a460e72fd74 | [
"BSL-1.0"
] | 21 | 2016-03-25T10:52:07.000Z | 2022-03-25T22:58:39.000Z | ///////////////////////////////////////////////////////
// Copyright 2013 Stephan Hage.
// Copyright 2013 Christopher Kormanyos.
// 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 <Bsw/Mc... | 21.26087 | 56 | 0.638037 | miaozhendaoren |
fb7d14d331038c2334e4d8eb54ed8aafcf8dd9a8 | 14,017 | cpp | C++ | src/nanovg_CoreGraphics.cpp | baconpaul/nanovg_CoreGraphics | 207e53c9090babf68c3844dafce796cbae3118f6 | [
"MIT"
] | null | null | null | src/nanovg_CoreGraphics.cpp | baconpaul/nanovg_CoreGraphics | 207e53c9090babf68c3844dafce796cbae3118f6 | [
"MIT"
] | null | null | null | src/nanovg_CoreGraphics.cpp | baconpaul/nanovg_CoreGraphics | 207e53c9090babf68c3844dafce796cbae3118f6 | [
"MIT"
] | null | null | null | #include "nanovg_CoreGraphics.h"
#include <CoreGraphics/CoreGraphics.h>
#include <iomanip>
#include <iostream>
#include <vector>
extern CGContextRef getCurrentContextRef();
struct CG2DNVGcontext {
int flags;
std::vector<CGLayerRef> textures;
int imageIdToTextureIndex(int id)
{
return id - 2... | 36.886842 | 159 | 0.556253 | baconpaul |
fb8906fa16c0f99c125ef9fb2cffff43500f6d53 | 10,688 | cpp | C++ | DataStructure/tree/rbt.cpp | CloudHolic/algorithms | cfae9b723e432fd9a84600c2a0082a5412759821 | [
"MIT"
] | null | null | null | DataStructure/tree/rbt.cpp | CloudHolic/algorithms | cfae9b723e432fd9a84600c2a0082a5412759821 | [
"MIT"
] | null | null | null | DataStructure/tree/rbt.cpp | CloudHolic/algorithms | cfae9b723e432fd9a84600c2a0082a5412759821 | [
"MIT"
] | null | null | null | #include <queue>
#include <stack>
#include "rbt.h"
rbt::rbt() : root_(nullptr) {}
rbt:: rbt(const rbt& prev) : root_(nullptr)
{
root_ = copy(prev.root_);
}
rbt::rbt(rbt&& prev) noexcept : root_(nullptr)
{
*this = std::move(prev);
}
rbt::~rbt()
{
internal_clear(root_);
}
rbt& rbt::operator=(const rbt& p... | 21.376 | 96 | 0.490457 | CloudHolic |
fb8976a813c3824c59f2ac5b121126d4a76287f1 | 192 | cpp | C++ | test/transport_test.cpp | quixai/quix-streams | d060dc8898bca807fc71e118cdb8b33a0381318c | [
"Apache-2.0"
] | 5 | 2022-01-24T23:21:09.000Z | 2022-03-07T16:09:18.000Z | test/transport_test.cpp | quixai/quix-streams | d060dc8898bca807fc71e118cdb8b33a0381318c | [
"Apache-2.0"
] | null | null | null | test/transport_test.cpp | quixai/quix-streams | d060dc8898bca807fc71e118cdb8b33a0381318c | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include "transport/transport.h"
TEST(blaTest, test1) {
//arrange
Quix::Transport transport(5);
//act
//assert
EXPECT_EQ (transport.get (), 5);
} | 19.2 | 37 | 0.630208 | quixai |
fb8c8f0f48958369618023a307a422972ef5d20c | 1,322 | cpp | C++ | BookSrc/LearningOpenCV3/Example10-3/main.cpp | xiaohaijin/OpenCV | 0b909cd2a3321d5ceaa00cd912a1ca44ed4fade1 | [
"MIT"
] | 1 | 2018-12-24T19:37:02.000Z | 2018-12-24T19:37:02.000Z | BookSrc/LearningOpenCV3/Example10-3/main.cpp | xiaohaijin/OpenCV | 0b909cd2a3321d5ceaa00cd912a1ca44ed4fade1 | [
"MIT"
] | null | null | null | BookSrc/LearningOpenCV3/Example10-3/main.cpp | xiaohaijin/OpenCV | 0b909cd2a3321d5ceaa00cd912a1ca44ed4fade1 | [
"MIT"
] | null | null | null | #include <iostream>
#include "opencv2/opencv.hpp"
int main(int argc, char **argv) {
if (argc != 7) {
std::cout << "Usage: " << argv[0] << " fixed_threshold invert(0=off | 1 = true) "
<< "adaptive_type(0=mean | 1=gaussian) block_size offset image\n"
<< " Example: " << argv[0] << "100... | 30.045455 | 85 | 0.624054 | xiaohaijin |
651f174fa5d668cd6576b4259c55d922877df658 | 1,136 | cpp | C++ | core/src/game/base_game.cpp | Darckore/SpaceAssault | 287db7eff40e83fe08a34d50f617eedfaccb3a55 | [
"MIT"
] | null | null | null | core/src/game/base_game.cpp | Darckore/SpaceAssault | 287db7eff40e83fe08a34d50f617eedfaccb3a55 | [
"MIT"
] | null | null | null | core/src/game/base_game.cpp | Darckore/SpaceAssault | 287db7eff40e83fe08a34d50f617eedfaccb3a55 | [
"MIT"
] | null | null | null | #include "game/base_game.hpp"
#include "game/scene.hpp"
namespace engine
{
// Special members
base_game::base_game() noexcept :
m_engine{ *this }
{
}
// Private members
bool base_game::init() noexcept
{
if (!before_run())
{
// todo: error
return false;
}
update(time_ty... | 15.561644 | 62 | 0.606514 | Darckore |
651f4c945f25c882e3827d3292a8a24ccf565293 | 378 | cpp | C++ | src/record.cpp | pgdeniverville/MyMC | 6cba825ccc6ee9cc4f5ac6a131f677b14215e1ea | [
"MIT"
] | 5 | 2017-03-28T16:10:24.000Z | 2020-02-26T18:57:26.000Z | src/record.cpp | pgdeniverville/MyMC | 6cba825ccc6ee9cc4f5ac6a131f677b14215e1ea | [
"MIT"
] | null | null | null | src/record.cpp | pgdeniverville/MyMC | 6cba825ccc6ee9cc4f5ac6a131f677b14215e1ea | [
"MIT"
] | 4 | 2019-10-08T08:18:22.000Z | 2020-07-14T09:15:42.000Z | #include "record.h"
#include <iomanip>
using std::list; using std::cout;
using std::ostream; using std::endl;
using std::setw;
const int MAXWIDTH = 15;
ostream& Record_Particles(ostream& outstr, list<Particle> &partlist){
for(list<Particle>::iterator it = partlist.begin(); it != partlist.end(); it++)... | 21 | 84 | 0.645503 | pgdeniverville |
6526ef3d61331f446bc80c017a5ac5b4e7c6484c | 1,909 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/animation/CFloatEvaluator.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/animation/CFloatEvaluator.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/animation/CFloatEvaluator.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 29.369231 | 78 | 0.662127 | jingcao80 |
65288b560df5df25e7ef64e3d12cb872ecf1e822 | 2,179 | cxx | C++ | tests/city32.cxx | ogatatsu/consthash | 25b21c8faab85cb19c2f566592f973048e7a250a | [
"MIT"
] | 34 | 2015-01-11T03:33:20.000Z | 2022-01-06T07:00:46.000Z | tests/city32.cxx | ogatatsu/consthash | 25b21c8faab85cb19c2f566592f973048e7a250a | [
"MIT"
] | 1 | 2015-01-25T21:56:38.000Z | 2015-04-23T17:11:32.000Z | tests/city32.cxx | ogatatsu/consthash | 25b21c8faab85cb19c2f566592f973048e7a250a | [
"MIT"
] | 6 | 2015-01-11T03:33:25.000Z | 2022-01-06T07:00:46.000Z |
#include "tests.hxx"
#include <consthash/cityhash32.hxx>
#include <cityhash/city.h>
#define CH_DET_TEST_FUNC_WITH(FUNCNAME, WITH_WHAT) \
TEST(city_utility, FUNCNAME) { WITH_WHAT(FUNCNAME); };
uint32_t Hash32Len0to4(const char *s, size_t len);
uint32_t Hash32Len5to12(const char *s, size_t len);
uint32_t Hash32Len... | 22.697917 | 72 | 0.710418 | ogatatsu |
652f0a10b154cafa2f966c41ee2a8ec914efcbb1 | 42,359 | hpp | C++ | External/Console-Utils_0.1.4/Includes/ConsoleUtils/console-utils.hpp | ReverieWisp/ASCIIPlayer | 678a6957b16fd48a20ff6ed97cba6886cbd5a51c | [
"BSD-3-Clause"
] | 5 | 2018-02-03T19:49:30.000Z | 2020-09-07T12:29:19.000Z | External/Console-Utils_0.1.4/Includes/ConsoleUtils/console-utils.hpp | ReverieWisp/ASCIIPlayer | 678a6957b16fd48a20ff6ed97cba6886cbd5a51c | [
"BSD-3-Clause"
] | 9 | 2018-02-27T06:37:12.000Z | 2020-03-25T05:43:56.000Z | External/Console-Utils_0.1.4/Includes/ConsoleUtils/console-utils.hpp | ReverieWisp/ASCIIPlayer | 678a6957b16fd48a20ff6ed97cba6886cbd5a51c | [
"BSD-3-Clause"
] | 2 | 2018-02-09T06:47:21.000Z | 2019-05-12T07:04:01.000Z | // This is a combination header file that accounts for all sorts of console drawing and whatnot,
// expanding functionality and ease of use of rlutil.h by Tapio Vierros.
//
// Version: 1.4
// Date: Nov. 2016
//
// Console Utils Implementation by:
// Reverie Wisp
// JoShadow
//////////////////////////////////////////... | 25.486763 | 113 | 0.631578 | ReverieWisp |
65348b07346fcda45447ca9eb805da17e0ba2030 | 627 | cc | C++ | chromium/chrome/browser/media/router/local_media_routes_observer.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/browser/media/router/local_media_routes_observer.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/browser/media/router/local_media_routes_observer.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media/router/local_media_routes_observer.h"
#include "chrome/browser/media/router/media_router.h"
namespace media_router {
Loc... | 28.5 | 73 | 0.792663 | wedataintelligence |
653614359c1ceabfbcfec1b202ec1f7845cfc577 | 589 | hpp | C++ | test/__mocks__/game/skirmish/gui/skirmishguifactorymock.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 3 | 2015-03-28T02:51:58.000Z | 2018-11-08T16:49:53.000Z | test/__mocks__/game/skirmish/gui/skirmishguifactorymock.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 39 | 2015-05-18T08:29:16.000Z | 2020-07-18T21:17:44.000Z | test/__mocks__/game/skirmish/gui/skirmishguifactorymock.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | null | null | null | #ifndef QRWTEST_SKIRMISHGUIFACTORYMOCK_HPP
#define QRWTEST_SKIRMISHGUIFACTORYMOCK_HPP
#include <gmock/gmock.h>
#include "game/skirmish/gui/skirmishguifactory.hpp"
#include "__mocks__/game/skirmish/mapmanagermock.hpp"
class SkirmishGuiFactoryMock : public qrw::SkirmishGuiFactory
{
public:
SkirmishGuiFactoryMock() :... | 26.772727 | 133 | 0.837012 | namelessvoid |
6536fd8f26d6a4a750190e9f4e5086106085898e | 893 | cpp | C++ | Dataset/Leetcode/train/15/53.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/15/53.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/15/53.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | vector<vector<int>> XXX(vector<int>& nums) {
vector<vector<int>> result;
sort(nums.begin(),nums.end());
for(int i=0;i<nums.size() && nums[i]<=0;i++)
{
if(i>0 && nums[i]==nums[i-1])
continue;
int first=i+1; int last=nums.size()-1;... | 33.074074 | 82 | 0.358343 | kkcookies99 |
65422f721d79c9c0b794379104e935a9cacbb4bf | 2,436 | cpp | C++ | src/moderate/number-operations/solutions/c++/solution.cpp | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | src/moderate/number-operations/solutions/c++/solution.cpp | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | src/moderate/number-operations/solutions/c++/solution.cpp | rdtsc/codeeval-solutions | d5c06baf89125e9e9f4b163ee57e5a8f7e73e717 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <cstddef>
#include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
template<typename T, typename U>
static bool isValidHand(const T targetCardSum, const std::vector<U>& hand)
{
enum Operators {ADD, SUB, MUL};
unsigned operators[4] = {};
static ... | 25.113402 | 79 | 0.635878 | rdtsc |
65481050d49bf5e635cd6a8967ecd8f1ddabe6c1 | 6,026 | cpp | C++ | src/rmw_subscription.cpp | micro-ROS/rmw_embeddedrtps | 756e867f88f882a8db0c18e198fb6b9bbf22a8c2 | [
"Apache-2.0"
] | 3 | 2021-10-19T12:03:03.000Z | 2022-03-21T07:29:11.000Z | src/rmw_subscription.cpp | micro-ROS/rmw_embeddedrtps | 756e867f88f882a8db0c18e198fb6b9bbf22a8c2 | [
"Apache-2.0"
] | null | null | null | src/rmw_subscription.cpp | micro-ROS/rmw_embeddedrtps | 756e867f88f882a8db0c18e198fb6b9bbf22a8c2 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 31.061856 | 98 | 0.757385 | micro-ROS |
65481e4b4c0f2b7cec93502f2f36162690a5552e | 1,224 | hpp | C++ | graph/mst/Prim.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | 3 | 2021-11-04T08:45:12.000Z | 2021-11-29T08:44:26.000Z | graph/mst/Prim.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | null | null | null | graph/mst/Prim.hpp | shiomusubi496/library | 907f72eb6ee4ac6ef617bb359693588167f779e7 | [
"MIT"
] | null | null | null | #pragma once
#include "../../other/template.hpp"
#include "../Graph.hpp"
#include "../../data-struct/unionfind/UnionFind.hpp"
template<class T> T Prim(const Graph<T>& G) {
const int N = G.size();
std::vector<bool> seen(N, false); seen[0] = true;
prique<edge<T>> que;
each_const (e : G[0]) que.emplace(e... | 24.979592 | 56 | 0.520425 | shiomusubi496 |
654c7990e3e5e729a8f80bfcf9d1587a523665c5 | 506 | cpp | C++ | chapter1/11.cpp | anatolykabakov/cpp-tasks | 82927d4334e8a0709424b61fe25b9be326244d78 | [
"MIT"
] | null | null | null | chapter1/11.cpp | anatolykabakov/cpp-tasks | 82927d4334e8a0709424b61fe25b9be326244d78 | [
"MIT"
] | null | null | null | chapter1/11.cpp | anatolykabakov/cpp-tasks | 82927d4334e8a0709424b61fe25b9be326244d78 | [
"MIT"
] | null | null | null | /*
Task 11: Write the program to convert m/sec to km/h.
*/
#include <iostream>
constexpr double KMH_TO_METERS_PER_SECONDS = 0.277778;
double convert_velocity_ms_to_kmh(const double velocity_ms) {
return velocity_ms / KMH_TO_METERS_PER_SECONDS;
}
int main() {
double velocity = 0;
std::cout << "Enter the ve... | 29.764706 | 104 | 0.701581 | anatolykabakov |
65511d11524aa0823262709bd7d8276cca1031fb | 10,476 | hpp | C++ | include/fc/io/raw.hpp | SatoshiFantasy/fantasybit | 5fc51cd3c056ce01b661ef5e3fb7dcad130fc9a1 | [
"BSD-3-Clause"
] | 77 | 2015-06-09T14:39:00.000Z | 2022-02-04T07:21:48.000Z | include/fc/io/raw.hpp | SatoshiFantasy/fantasybit | 5fc51cd3c056ce01b661ef5e3fb7dcad130fc9a1 | [
"BSD-3-Clause"
] | 2 | 2018-05-24T11:12:59.000Z | 2018-07-16T05:44:11.000Z | include/fc/io/raw.hpp | SatoshiFantasy/fantasybit | 5fc51cd3c056ce01b661ef5e3fb7dcad130fc9a1 | [
"BSD-3-Clause"
] | 25 | 2016-03-18T17:36:53.000Z | 2021-12-09T15:09:05.000Z | #pragma once
#include <fc/reflect/reflect.hpp>
#include <fc/io/datastream.hpp>
#include <fc/io/varint.hpp>
#include <fc/optional.hpp>
#include <fc/fwd.hpp>
#include <fc/array.hpp>
#include <fc/time.hpp>
#include <fc/io/raw_fwd.hpp>
#include <fc/exception/exception.hpp>
#define MAX_ARRAY_ALLOC_SIZE (1024*1024*10)
nam... | 30.277457 | 113 | 0.546583 | SatoshiFantasy |
65522603ed822726602b0d3b47bbfb4a5dfe99ae | 258 | cpp | C++ | lights/sink.cpp | wherewindblow/lights | 0cc01b34de1cc6e440be4e065048277822c040db | [
"Apache-2.0"
] | 1 | 2020-12-10T12:08:41.000Z | 2020-12-10T12:08:41.000Z | lights/sink.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | null | null | null | lights/sink.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | null | null | null | /**
* sink.cpp
* @author wherewindblow
* @date Feb 16, 2019
*/
#include "sink.h"
namespace lights {
void FormatSink<Sink>::append(std::size_t num, char ch)
{
for (std::size_t i = 0; i < num; ++i)
{
this->append(ch);
}
}
} // namespace lights
| 12.285714 | 55 | 0.596899 | wherewindblow |
65551e3323413306bf702fb22bb9d8c2f05f776c | 950 | cpp | C++ | minic/src/unity_build.cpp | waldnercharles/MiniC | a8a86d3174bc54acd24fc1df0bdba6e9eac0cc5d | [
"Unlicense"
] | null | null | null | minic/src/unity_build.cpp | waldnercharles/MiniC | a8a86d3174bc54acd24fc1df0bdba6e9eac0cc5d | [
"Unlicense"
] | null | null | null | minic/src/unity_build.cpp | waldnercharles/MiniC | a8a86d3174bc54acd24fc1df0bdba6e9eac0cc5d | [
"Unlicense"
] | null | null | null | #define DEBUG
//#define __STDDEF_H
//#define NULL nullptr
#define UNICODE
//#define NOMINMAX
//#define WIN32_LEAN_AND_MEAN
//#include <Windows.h>
//#include "minic/assert.h"
//#include "minic/iterator.cpp"
//#include "minic/asset.cpp"
#include "minic/allocator.cpp"
#include "minic/array.cpp"
#include "minic/fp.cpp... | 22.619048 | 67 | 0.746316 | waldnercharles |
655ebbf4e2d0cfd93bc55554706291ac6a4f6224 | 876 | hpp | C++ | code/include/compiler/exceptions.hpp | mrwonko/perseus | 45fcef10c5df7aeae469bf22b9be80e20f79cb21 | [
"MIT"
] | null | null | null | code/include/compiler/exceptions.hpp | mrwonko/perseus | 45fcef10c5df7aeae469bf22b9be80e20f79cb21 | [
"MIT"
] | 5 | 2015-04-07T23:16:02.000Z | 2016-06-17T08:14:15.000Z | code/include/compiler/exceptions.hpp | mrwonko/perseus | 45fcef10c5df7aeae469bf22b9be80e20f79cb21 | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
#include "iterators.hpp"
namespace perseus
{
struct compile_error : std::runtime_error
{
compile_error( const std::string& what, const detail::file_position& location )
: std::runtime_error( what ), location( location )
{
}
detail::file_position location;
... | 19.466667 | 90 | 0.69863 | mrwonko |
6563063c513fae945c8ac37b92c43d6b188b9467 | 444 | cpp | C++ | timus/volume-08/deer_is_better.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | timus/volume-08/deer_is_better.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | timus/volume-08/deer_is_better.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main()
{
use_io_optimizations();
unsigned int distance;
unsigned int segment;
unsigned int time;
cin >> distance >> segment >> time;
cout << dista... | 16.444444 | 62 | 0.59009 | Rkhoiwal |
6563e87603f7e3c4145b407a2e90c2706d9b908c | 2,919 | cpp | C++ | src/ugawg_linear.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2019-01-23T03:37:18.000Z | 2021-08-24T02:20:29.000Z | src/ugawg_linear.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 67 | 2019-01-29T15:35:42.000Z | 2021-08-17T20:42:40.000Z | src/ugawg_linear.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 29 | 2019-01-14T21:33:32.000Z | 2021-08-10T11:35:24.000Z | #include <Omega_h_adapt.hpp>
#include <Omega_h_file.hpp>
#include <Omega_h_for.hpp>
#include <Omega_h_mesh.hpp>
#include <Omega_h_metric.hpp>
#include <Omega_h_timer.hpp>
#include <iostream>
using namespace Omega_h;
template <Int dim>
static void set_target_metric(Mesh* mesh) {
auto coords = mesh->coords();
auto... | 30.40625 | 79 | 0.617335 | joshia5 |
6564348f804bb5186886f277ee233dde963d32bb | 1,353 | cpp | C++ | kernel/Panic.cpp | brightprogrammer/MisraOS | fe7fa81b81b42e69ec8b06c8efa55106e58f444d | [
"BSD-3-Clause"
] | 10 | 2022-01-25T13:05:42.000Z | 2022-02-08T21:26:19.000Z | kernel/Panic.cpp | brightprogrammer/MisraOS | fe7fa81b81b42e69ec8b06c8efa55106e58f444d | [
"BSD-3-Clause"
] | null | null | null | kernel/Panic.cpp | brightprogrammer/MisraOS | fe7fa81b81b42e69ec8b06c8efa55106e58f444d | [
"BSD-3-Clause"
] | null | null | null | #include "Panic.hpp"
#include "Renderer/Framebuffer.hpp"
#include "Renderer/Colors.hpp"
#include "Renderer/FontRenderer.hpp"
#include "Utils/String.hpp"
#include <cstdint>
#include <cstdarg>
#include <cwctype>
#include "Printf.hpp"
uint32_t oldbgcolor = 0;
uint32_t oldfgcolor = 0;
void PRINTF_API(1, 2) INTERRUPT_CALL... | 23.736842 | 80 | 0.699926 | brightprogrammer |
6565b59898e1a7f3f2a7dd8f1fde50826b5722d1 | 1,399 | cpp | C++ | SimpleDivX/ConfigData.cpp | StefH/SimpleDivX | 9740b4e2e497dbb602a907ea4328c0be59651a55 | [
"MIT"
] | 1 | 2020-08-01T18:29:50.000Z | 2020-08-01T18:29:50.000Z | SimpleDivX/ConfigData.cpp | StefH/SimpleDivX | 9740b4e2e497dbb602a907ea4328c0be59651a55 | [
"MIT"
] | null | null | null | SimpleDivX/ConfigData.cpp | StefH/SimpleDivX | 9740b4e2e497dbb602a907ea4328c0be59651a55 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include ".\configdata.h"
#include "SimpleDivX_Defines.h"
#include "SimpleDivXBatch.h"
#include "EncodingInfo.h"
#include "ProgramInfo.h"
IMPLEMENT_SERIAL( CConfigData, CObject, 1 )
#define SIMPLEDIVXDATA "SimpleDivX.dat"
CConfigData::CConfigData(void)
{
status = 0;
}
CConfigData::~CConfigDa... | 13.851485 | 72 | 0.659042 | StefH |
6566c08303025034bbeade4f7e33c0031ab0fa66 | 18,702 | cpp | C++ | src/nv38box/Math/WmlMath.cpp | darwin/inferno | e87017763abae0cfe09d47987f5f6ac37c4f073d | [
"Zlib"
] | 2 | 2016-05-09T11:57:28.000Z | 2021-07-28T16:46:08.000Z | src/nv38box/Math/WmlMath.cpp | darwin/inferno | e87017763abae0cfe09d47987f5f6ac37c4f073d | [
"Zlib"
] | null | null | null | src/nv38box/Math/WmlMath.cpp | darwin/inferno | e87017763abae0cfe09d47987f5f6ac37c4f073d | [
"Zlib"
] | null | null | null | #include "base.h" // precompiled headers support
// Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2003. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/L... | 25.795862 | 79 | 0.459737 | darwin |
65676e872a2109ed5045430324f27a18bd427c15 | 535 | hpp | C++ | driver/includes.hpp | justvmexit/dumpr | 35da30e9488281b22e133ef24413f61a9cbb2356 | [
"MIT"
] | 5 | 2021-12-14T19:44:21.000Z | 2022-03-27T05:47:52.000Z | driver/includes.hpp | justvmexit/dumpr | 35da30e9488281b22e133ef24413f61a9cbb2356 | [
"MIT"
] | 1 | 2021-12-07T02:24:14.000Z | 2021-12-07T02:24:14.000Z | driver/includes.hpp | justvmexit/dumpr | 35da30e9488281b22e133ef24413f61a9cbb2356 | [
"MIT"
] | 3 | 2021-12-19T09:45:35.000Z | 2022-02-16T08:48:46.000Z | #pragma once
#include <ntifs.h>
#include <ntddk.h>
#include <windef.h>
#include <wdf.h>
#include <stdlib.h>
#include <cstdint>
extern "C" {
NTSTATUS NTAPI MmCopyVirtualMemory(PEPROCESS SourceProcess, PVOID SourceAddress, PEPROCESS TargetProcess, PVOID TargetAddress, SIZE_T BufferSize, KPROCESSOR_MODE PreviousMode, s... | 38.214286 | 197 | 0.820561 | justvmexit |
656b2024b7089cde8cf15499175bb80ee7973bfd | 11,803 | cpp | C++ | tests/board/test_board_n6000.cpp | OPAE/opae-sdk | 7140533d5383e144aeedda9e8cf63fe24854af33 | [
"BSD-3-Clause"
] | 220 | 2017-09-02T20:07:11.000Z | 2022-03-01T03:53:35.000Z | tests/board/test_board_n6000.cpp | OPAE/opae-sdk | 7140533d5383e144aeedda9e8cf63fe24854af33 | [
"BSD-3-Clause"
] | 1,335 | 2017-11-05T03:02:55.000Z | 2022-03-29T23:14:06.000Z | tests/board/test_board_n6000.cpp | OPAE/opae-sdk | 7140533d5383e144aeedda9e8cf63fe24854af33 | [
"BSD-3-Clause"
] | 80 | 2017-09-01T21:28:16.000Z | 2022-03-09T08:04:05.000Z | // Copyright(c) 2021, Intel Corporation
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the ... | 29 | 103 | 0.719139 | OPAE |
656bbb95608bc2c47e955579a486b94b43e1c833 | 2,909 | hpp | C++ | src/sched/entry/reduce_local_entry.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/sched/entry/reduce_local_entry.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/sched/entry/reduce_local_entry.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2016-2019 Intel Corporation
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 w... | 33.436782 | 87 | 0.5868 | mshiryaev |
656e762bab26c7999315130917ac0178909947b2 | 2,459 | cpp | C++ | leetcode/biweekly/14.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/biweekly/14.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/biweekly/14.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /****************************************************
Date: November 30, 2019
Successful submissions : 1
Time expiration :
Not Solved : 3
Wrong Answer/ Partial result :
link: https://leetcode.com/contest/biweekly-contest-14
****************************************************/
#include <iostream>
#include <vector>
#... | 18.488722 | 96 | 0.46645 | bvbasavaraju |
656f03be2c41f33f631981698d9900f2099aa36a | 533 | cpp | C++ | src/main.cpp | huffman/StackManagerQt | 5d80db97bb814a0671a2e0c8693c5ec5cc3968f9 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | huffman/StackManagerQt | 5d80db97bb814a0671a2e0c8693c5ec5cc3968f9 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | huffman/StackManagerQt | 5d80db97bb814a0671a2e0c8693c5ec5cc3968f9 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// StackManagerQt/src
//
// Created by Mohammed Nafees on 06/27/14.
// Copyright (c) 2014 High Fidelity. All rights reserved.
//
#include <QApplication>
#include "AppDelegate.h"
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
QApplication::setApplicationName("Stack Manager... | 22.208333 | 72 | 0.703565 | huffman |
656f07b57b021a7a8d40016dd8b4c051b78990dd | 2,185 | cpp | C++ | problems/codeforces/1286/b-numbers-on-tree/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codeforces/1286/b-numbers-on-tree/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codeforces/1286/b-numbers-on-tree/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#ifdef LOCAL
#include "code/formatting.hpp"
#else
#define debug(...) (void)0
#endif
using namespace std;
template <typename Fun>
class y_combinator_result {
Fun fun_;
public:
template <typename T>
explicit y_combinator_result(T&& fun) : fun_(std::forward<T>(fun)) {}
templa... | 22.760417 | 74 | 0.473227 | brunodccarvalho |
65760d71a043bc74cd989c0bb75750197972ff2f | 1,587 | hpp | C++ | rabbit/Array.hpp | atria-soft/rabbit | 685dd2bca8c3ad439e9bd84cfe08f85aa20ef81e | [
"MIT"
] | null | null | null | rabbit/Array.hpp | atria-soft/rabbit | 685dd2bca8c3ad439e9bd84cfe08f85aa20ef81e | [
"MIT"
] | null | null | null | rabbit/Array.hpp | atria-soft/rabbit | 685dd2bca8c3ad439e9bd84cfe08f85aa20ef81e | [
"MIT"
] | null | null | null | /**
* @author Alberto DEMICHELIS
* @author Edouard DUPIN
* @copyright 2018, Edouard DUPIN, all right reserved
* @copyright 2003-2017, Alberto DEMICHELIS, all right reserved
* @license MPL-2 (see license file)
*/
#pragma once
#include <rabbit/RefCounted.hpp>
#include <rabbit/ObjectPtr.hpp>
#include <etk/Vector.hp... | 29.943396 | 69 | 0.669187 | atria-soft |
6576d83882ba429861ee9ffcefc5817c9711e71b | 1,873 | cpp | C++ | libgramtools/tests/prg/test_make_data_structures.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/tests/prg/test_make_data_structures.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/tests/prg/test_make_data_structures.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "prg/make_data_structures.hpp"
#include "submod_resources.hpp"
using namespace gram::submods;
TEST(GetNumVarSites, NoSites) {
auto prg_raw = encode_prg("c");
auto prg_info = generate_prg_info(prg_raw);
auto result = prg_info.num_variant_sites;
uint64_t expected = 0;
EXPECT... | 31.216667 | 79 | 0.665777 | bricoletc |
657780a04b41a86a0b1029bf46ca7fd78d62590d | 996 | cpp | C++ | CPP/matrix multiplication.cpp | thefool76/hacktoberfest2021 | 237751e17a4fc325ded29fca013fb9f5853cd27c | [
"CC0-1.0"
] | 448 | 2021-10-01T04:24:14.000Z | 2022-03-06T14:34:20.000Z | CPP/matrix multiplication.cpp | Chanaka-Madushan-Herath/hacktoberfest2021 | 8473df9e058ccb6049720dd372342e0ea60f0e59 | [
"CC0-1.0"
] | 282 | 2021-10-01T04:29:06.000Z | 2022-03-07T12:42:57.000Z | CPP/matrix multiplication.cpp | Chanaka-Madushan-Herath/hacktoberfest2021 | 8473df9e058ccb6049720dd372342e0ea60f0e59 | [
"CC0-1.0"
] | 1,807 | 2021-10-01T04:24:02.000Z | 2022-03-28T04:51:25.000Z | //matrix multiplication(2-D array)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n1,n2,n3;
cin>>n1 >>n2>> n3;
int arr1[n1][n2];
int arr2[n2][n3];
int prod[n1][n3];
cout<<"\n";
for(int i=0;i<n1;i++)
{
for(int j=0;j<n2;j++)
{
cin>>a... | 15.090909 | 50 | 0.331325 | thefool76 |
6577a19c54a56c76d4937f07ad16369689f1900e | 17,117 | cpp | C++ | engine/src/renderer/DefaultShader.cpp | targodan/gameProgramming | 5c0b36bee271dca65636d0317324a2bb786613f0 | [
"MIT"
] | 1 | 2019-07-14T11:32:30.000Z | 2019-07-14T11:32:30.000Z | engine/src/renderer/DefaultShader.cpp | targodan/gameProgramming | 5c0b36bee271dca65636d0317324a2bb786613f0 | [
"MIT"
] | null | null | null | engine/src/renderer/DefaultShader.cpp | targodan/gameProgramming | 5c0b36bee271dca65636d0317324a2bb786613f0 | [
"MIT"
] | null | null | null | #include "DefaultShader.h"
#include "../WTFException.h"
namespace engine {
namespace renderer {
string DefaultShader::createFlatVertexShader(vec3 color) {
return "#version 330\n"
"#extension GL_ARB_explicit_attrib_location : require\n"
"#extension GL_ARB_... | 48.216901 | 226 | 0.456096 | targodan |