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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
018e0f12c6c03bf8f2a952189aa678b3d79b9fc4 | 2,653 | cpp | C++ | code/pkg_Utility/Modules/ConfigDB/Cx_ConfigFactory.cpp | xiaobazhang/plugin | d84ae4c678e8bb44e5c936446984499e1aaa1fac | [
"Apache-1.1"
] | null | null | null | code/pkg_Utility/Modules/ConfigDB/Cx_ConfigFactory.cpp | xiaobazhang/plugin | d84ae4c678e8bb44e5c936446984499e1aaa1fac | [
"Apache-1.1"
] | null | null | null | code/pkg_Utility/Modules/ConfigDB/Cx_ConfigFactory.cpp | xiaobazhang/plugin | d84ae4c678e8bb44e5c936446984499e1aaa1fac | [
"Apache-1.1"
] | null | null | null | // x3c - C++ PluginFramework
//
// Changes:
// 2010-01-12, Zhang Yungui: Remove Ix_FileUtility.
// Open access connection readonly if file is readonly.
//
#include <UtilFunc/PluginInc.h>
#include "Cx_ConfigFactory.h"
#include "Cx_CfgDatabase.h"
#include "ClsID_Internal.h"
#include "Ix_InitDatabase.h"
#include "Cx... | 26.009804 | 74 | 0.564644 | xiaobazhang |
01921e2799258cf20b279f7b412dd2c7fc60c515 | 2,109 | cpp | C++ | irohad/ametsuchi/impl/proto_command_executor.cpp | Insafin/iroha | 5e3c3252b2a62fa887274bdf25547dc264c10c26 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | irohad/ametsuchi/impl/proto_command_executor.cpp | Insafin/iroha | 5e3c3252b2a62fa887274bdf25547dc264c10c26 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | irohad/ametsuchi/impl/proto_command_executor.cpp | Insafin/iroha | 5e3c3252b2a62fa887274bdf25547dc264c10c26 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "ametsuchi/impl/proto_command_executor.h"
#include "ametsuchi/command_executor.hpp"
#include "ametsuchi/impl/common_c_types_helpers.hpp"
#include "backend/protobuf/commands/proto_command.hpp"
#include "valida... | 35.15 | 80 | 0.663348 | Insafin |
0192da41600f8209878eed5639696f22eac8d039 | 822 | hpp | C++ | src/slaggy-engine/slaggy-engine/physics/volumes/Sphere.hpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 1 | 2021-09-24T23:13:13.000Z | 2021-09-24T23:13:13.000Z | src/slaggy-engine/slaggy-engine/physics/volumes/Sphere.hpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | null | null | null | src/slaggy-engine/slaggy-engine/physics/volumes/Sphere.hpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 2 | 2020-06-24T07:10:13.000Z | 2022-03-08T17:19:12.000Z | #pragma once
#ifndef SPHERE_HPP
#define SPHERE_HPP
#include <physics/volumes/Shape.hpp>
namespace slaggy
{
class Sphere : public Shape
{
public:
bool intersects(const IIntersect& shape) const override;
bool intersects(const Plane& plane) const override;
bool intersects(const Sphere& sphere) const override;
... | 26.516129 | 99 | 0.739659 | SlaggyWolfie |
01a85357e0275eb9647600d040d56437c88cfa8a | 859 | cpp | C++ | CnD/meep.cpp | LegendaryyDoc/Constructors-and-Decuns | d3469ad46ff88a7d33dee1f50a5f49ee4b99f208 | [
"MIT"
] | null | null | null | CnD/meep.cpp | LegendaryyDoc/Constructors-and-Decuns | d3469ad46ff88a7d33dee1f50a5f49ee4b99f208 | [
"MIT"
] | null | null | null | CnD/meep.cpp | LegendaryyDoc/Constructors-and-Decuns | d3469ad46ff88a7d33dee1f50a5f49ee4b99f208 | [
"MIT"
] | null | null | null | #include "meep.h"
#include <iostream>
meep::meep()
{
std::cout << "Texture being created!" << std::endl;
texture = LoadTexture("redTexture.png");
}
meep::meep(bool _enabled, bool playerEnabled, float deltaTime)
{
enabled = _enabled;
if (enabled)
{
refresh();
}
playerController = playerEnabled;
if (playerC... | 13.854839 | 62 | 0.641444 | LegendaryyDoc |
01ab46236e19cbff3bf2b1a492749cc5bdc4c2f3 | 1,379 | cpp | C++ | examples/ALU/ALU4.cpp | hoangmle/crave-bundle-2015-07-22 | ffe89f3752887ca2fe12a327ba6c5b25bf23d98a | [
"MIT"
] | null | null | null | examples/ALU/ALU4.cpp | hoangmle/crave-bundle-2015-07-22 | ffe89f3752887ca2fe12a327ba6c5b25bf23d98a | [
"MIT"
] | null | null | null | examples/ALU/ALU4.cpp | hoangmle/crave-bundle-2015-07-22 | ffe89f3752887ca2fe12a327ba6c5b25bf23d98a | [
"MIT"
] | null | null | null | #include <crave/SystemC.hpp>
#include <crave/ConstrainedRandom.hpp>
#include <systemc.h>
#include <boost/timer.hpp>
using crave::rand_obj;
using crave::randv;
using sc_dt::sc_bv;
using sc_dt::sc_uint;
/**
* ALU:
* complete enumerated there are:
* ADD 0x0: 136
* SUB 0x1: 136
* MUL 0x2: 76
* DIV 0x3: 240
* vali... | 23.372881 | 103 | 0.534445 | hoangmle |
01ae77010c218a384433b6e6f3575557e70aa5b3 | 574 | cpp | C++ | player/bot.cpp | triffon/oop-2018-19 | 3368b78593ddc7031f208e2752e4111900172f44 | [
"MIT"
] | 3 | 2019-04-22T18:52:45.000Z | 2021-02-22T16:42:14.000Z | player/bot.cpp | triffon/oop-2018-19 | 3368b78593ddc7031f208e2752e4111900172f44 | [
"MIT"
] | null | null | null | player/bot.cpp | triffon/oop-2018-19 | 3368b78593ddc7031f208e2752e4111900172f44 | [
"MIT"
] | 4 | 2019-03-05T15:10:29.000Z | 2020-04-06T18:40:52.000Z | #include "bot.h"
Bot::Bot(char const* n, int s,
char const* algo, double t,
unsigned d) : Player(n, s), AI(algo, t),
difficulty(d)
{}
void Bot::printDirect(std::ostream& os) const {
os << " и е бот с ниво на трудност "
<< getDifficulty()
<< ", реализиран от ";
AI... | 22.076923 | 58 | 0.581882 | triffon |
01b25670109a953e3eaec27373cc6f3e612a4835 | 552 | hpp | C++ | sprout/compost/ranges/adapted_dropped_end.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/compost/ranges/adapted_dropped_end.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/compost/ranges/adapted_dropped_end.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_COMPOST_RANGES_ADAPTED_DROPPED_END_HPP
#define SPROUT_COMPOST_RANGES_ADAPTED_DROPPED_END_HPP
#include <sprout/config.hpp>
#include <sprout/range/adaptor/adapted_dropped_end.hpp>
namespace sprout {
namespace compost {
namespace ranges {
//
// adapted_dropped_end
//
using sprou... | 26.285714 | 64 | 0.759058 | osyo-manga |
01be6f098c7ed5f293db27e63f189df73ae2abf2 | 1,227 | cpp | C++ | src/hal/Core.cpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | library/src/Core.cpp | StratifyLabs/HalAPI | 9707d7c021fa655666796a0a02994f7766d76e81 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | library/src/Core.cpp | StratifyLabs/HalAPI | 9707d7c021fa655666796a0a02994f7766d76e81 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
//Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc
#include <unistd.h>
#include <fcntl.h>
#include "hal/Core.hpp"
using namespace hal;
Core::Core(port_t port) : Periph(CORE_PERIPH_CORE, port){}
int Core::se... | 19.47619 | 100 | 0.711491 | bander9289 |
01c1979d548f09b15f017b6c59a8dad073af3a84 | 1,598 | cpp | C++ | Game/Source/InputSystem.cpp | OCA99/Project2-RPG | 13a2e5ebe25824492ac03740a32dc5f5ab8af9cd | [
"MIT"
] | null | null | null | Game/Source/InputSystem.cpp | OCA99/Project2-RPG | 13a2e5ebe25824492ac03740a32dc5f5ab8af9cd | [
"MIT"
] | 1 | 2021-02-25T11:10:26.000Z | 2021-02-25T11:10:26.000Z | Game/Source/InputSystem.cpp | OCA99/Project2-RPG | 13a2e5ebe25824492ac03740a32dc5f5ab8af9cd | [
"MIT"
] | 1 | 2021-05-16T16:49:27.000Z | 2021-05-16T16:49:27.000Z | #include "InputSystem.h"
#include "ECS.h"
#include "DialogSytem.h"
#include "App.h"
#include "Debug.h"
#include "Audio.h"
#include "Input.h"
#include "ItemManager.h"
#include "QuestManager.h"
#include "SceneManager.h"
#include "SDL/include/SDL_scancode.h"
void InputSystem::tick(ECS::World* world, float dt)
{
world->... | 27.084746 | 114 | 0.628285 | OCA99 |
01c246e7500ce738c1b3b109705643f6ea18ab24 | 1,952 | cpp | C++ | Processor.cpp | dennistrukhin/C-Virtual-machine | 644be1f45c0d2804f93bddbfb4728e3d0c9fee5a | [
"MIT"
] | null | null | null | Processor.cpp | dennistrukhin/C-Virtual-machine | 644be1f45c0d2804f93bddbfb4728e3d0c9fee5a | [
"MIT"
] | null | null | null | Processor.cpp | dennistrukhin/C-Virtual-machine | 644be1f45c0d2804f93bddbfb4728e3d0c9fee5a | [
"MIT"
] | null | null | null | //
// Created by Dennis Trukhin on 21/04/2018.
//
#include <iostream>
#include "Processor.h"
#include "Workers/Declarator.h"
#include "Workers/NumberLoader.h"
#include "Workers/StringLoader.h"
#include "Workers/IntegerPusher.h"
#include "Workers/VariablePusher.h"
#include "Workers/IntegerAdder.h"
#include "Workers/Int... | 34.857143 | 71 | 0.598873 | dennistrukhin |
01c4c75bf222bcabe285133092cdee8fb31ec224 | 1,997 | cpp | C++ | csapex_boolean/src/binary_boolean.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_boolean/src/binary_boolean.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-11T09:14:31.000Z | 2021-02-27T09:30:14.000Z | csapex_boolean/src/binary_boolean.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z |
/// PROJECT
#include <csapex/model/node.h>
#include <csapex/model/node_modifier.h>
#include <csapex/msg/generic_value_message.hpp>
#include <csapex/msg/io.h>
#include <csapex/param/parameter_factory.h>
#include <csapex/utility/register_apex_plugin.h>
using namespace csapex;
using namespace csapex::connection_types;
... | 22.954023 | 165 | 0.547321 | AdrianZw |
01c71a2110ab467eb103e2bbb70daff4cc9fe5b8 | 1,627 | cpp | C++ | algoexalgo/youngestcommonancestor.cpp | Shekhar0050M/Shekhar0050M | 0b868e55690821218cf9e9f53d6fe18a22d2d2a5 | [
"MIT"
] | null | null | null | algoexalgo/youngestcommonancestor.cpp | Shekhar0050M/Shekhar0050M | 0b868e55690821218cf9e9f53d6fe18a22d2d2a5 | [
"MIT"
] | null | null | null | algoexalgo/youngestcommonancestor.cpp | Shekhar0050M/Shekhar0050M | 0b868e55690821218cf9e9f53d6fe18a22d2d2a5 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include<iostream>
#include <vector>
using namespace std;
class AncestralTree{
public:
char name;
AncestralTree* ancestor;
AncestralTree(char name){
this->name=name;
this->ancestor=NULL;
}
void addAsAncestor(v... | 25.030769 | 111 | 0.432698 | Shekhar0050M |
01d80b068a0e4dc2f7dcf0e24a220ca22252a2f3 | 2,302 | cpp | C++ | tools/common.cpp | common-config-bot/prjuray | c550b03a26b4c4a9c4453353bd642a21f710b3ec | [
"Apache-2.0"
] | 39 | 2020-07-17T19:43:40.000Z | 2022-01-07T02:05:48.000Z | tools/common.cpp | common-config-bot/prjuray | c550b03a26b4c4a9c4453353bd642a21f710b3ec | [
"Apache-2.0"
] | 24 | 2020-07-17T20:15:54.000Z | 2022-01-21T08:29:51.000Z | tools/common.cpp | common-config-bot/prjuray | c550b03a26b4c4a9c4453353bd642a21f710b3ec | [
"Apache-2.0"
] | 11 | 2020-07-17T19:43:45.000Z | 2022-02-09T08:43:23.000Z | // Copyright 2020 Project U-Ray Authors
//
// 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 ag... | 28.419753 | 75 | 0.655517 | common-config-bot |
01d9bcd3bc4583c3c3f6414f91b22fe0d8d2f19e | 11,761 | hpp | C++ | lib/include/efyj/efyj.hpp | quesnel/efyj | 5f214449e26000fb30f3a037cac52269704fe703 | [
"MIT"
] | 1 | 2021-05-04T16:06:55.000Z | 2021-05-04T16:06:55.000Z | lib/include/efyj/efyj.hpp | quesnel/efyj | 5f214449e26000fb30f3a037cac52269704fe703 | [
"MIT"
] | null | null | null | lib/include/efyj/efyj.hpp | quesnel/efyj | 5f214449e26000fb30f3a037cac52269704fe703 | [
"MIT"
] | null | null | null | /* Copyright (C) 2016-2017 INRA
*
* 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, merge, publish, dis... | 28.615572 | 79 | 0.630729 | quesnel |
01de5acf96e41262d447b54b3998e830d218ca2b | 185 | cpp | C++ | src/main.cpp | RyanDraves/Chess-curses | 1b20cf0b4a69fc51571b05adbc76a4c7a0bfa291 | [
"MIT"
] | null | null | null | src/main.cpp | RyanDraves/Chess-curses | 1b20cf0b4a69fc51571b05adbc76a4c7a0bfa291 | [
"MIT"
] | null | null | null | src/main.cpp | RyanDraves/Chess-curses | 1b20cf0b4a69fc51571b05adbc76a4c7a0bfa291 | [
"MIT"
] | null | null | null | #include <cppurses/system/system.hpp>
#include "chess_ui.hpp"
int main() {
using namespace cppurses;
System sys;
Chess_UI w;
sys.set_head(&w);
return sys.run();
}
| 15.416667 | 37 | 0.643243 | RyanDraves |
01e68ae551a3313f4ba479404af48be3148320bc | 834 | cpp | C++ | ros/src/common/libs/diagnostics_lib/diag_lib/src/diag_subscriber.cpp | filiperinaldi/Autoware | 9fae6cc7cb8253586578dbb62a2f075b52849e6e | [
"Apache-2.0"
] | 64 | 2018-11-19T02:34:05.000Z | 2021-12-27T06:19:48.000Z | ros/src/common/libs/diagnostics_lib/diag_lib/src/diag_subscriber.cpp | filiperinaldi/Autoware | 9fae6cc7cb8253586578dbb62a2f075b52849e6e | [
"Apache-2.0"
] | 1 | 2019-03-05T05:52:41.000Z | 2019-03-05T05:52:41.000Z | ros/src/common/libs/diagnostics_lib/diag_lib/src/diag_subscriber.cpp | filiperinaldi/Autoware | 9fae6cc7cb8253586578dbb62a2f075b52849e6e | [
"Apache-2.0"
] | 34 | 2018-11-27T08:57:32.000Z | 2022-02-18T08:06:04.000Z | #include <diag_lib/diag_subscriber.h>
diag_subscriber::diag_subscriber(std::string target_node,int target_node_number) : target_node_(target_node), target_node_number_(target_node_number)
{
diag_sub_ = nh_.subscribe(target_node+"/diag", 1, &diag_subscriber::callback_, this);
}
diag_subscriber::~diag_subscriber()
... | 26.0625 | 149 | 0.724221 | filiperinaldi |
5434e35dd927eaea60e5d23a34942ea5b6dbf235 | 6,910 | cpp | C++ | 3rd_party/aruco/trunk/utils/aruco_selectoptimalmarkers.cpp | grace-/opencv-3.0.0-cvpr | 6d854e002d60ed853732a051343ab48d5b8a30dd | [
"BSD-3-Clause"
] | 4 | 2015-03-30T14:02:41.000Z | 2016-12-10T05:42:59.000Z | 3rd_party/aruco/trunk/utils/aruco_selectoptimalmarkers.cpp | grace-/opencv-3.0.0-cvpr | 6d854e002d60ed853732a051343ab48d5b8a30dd | [
"BSD-3-Clause"
] | null | null | null | 3rd_party/aruco/trunk/utils/aruco_selectoptimalmarkers.cpp | grace-/opencv-3.0.0-cvpr | 6d854e002d60ed853732a051343ab48d5b8a30dd | [
"BSD-3-Clause"
] | 2 | 2017-12-15T08:26:45.000Z | 2019-02-10T19:50:16.000Z | /*****************************
Copyright 2011 Rafael Muñoz Salinas. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list... | 34.039409 | 148 | 0.634298 | grace- |
54388ebc427978b99d8017fe6fa17561ff6d77bf | 2,056 | cpp | C++ | Final/Dataset/B2016_Z3_Z2/student6956.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z3_Z2/student6956.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | Final/Dataset/B2016_Z3_Z2/student6956.cpp | Team-PyRated/PyRated | 1df171c8a5a98977b7a96ee298a288314d1b1b96 | [
"MIT"
] | null | null | null | /B2016/2017: Zadaća 3, Zadatak 2
#include <iostream>
#include <map>
#include <stdexcept>
#include <string>
#include <set>
typedef std::map<std::string, std::set<int>> tip;
tip KreirajIndeksPojmova(std::string s){
if (s.empty()) return tip();
s.push_back(' ');
tip rezultat;
int brojac(0);
... | 26.358974 | 82 | 0.482977 | Team-PyRated |
543c9b84b747b093d0c6afa088712782b4472daa | 2,003 | hpp | C++ | vm/test/test_compiled_file.hpp | marnen/rubinius | 05b3f9789d01bada0604a7f09921c956bc9487e7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T16:58:14.000Z | 2016-05-08T16:58:14.000Z | vm/test/test_compiled_file.hpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | vm/test/test_compiled_file.hpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | #include "compiled_file.hpp"
#include "vm/object_utils.hpp"
#include "objectmemory.hpp"
#include "builtin/task.hpp"
#include "builtin/class.hpp"
#include "builtin/compiledmethod.hpp"
#include "builtin/lookuptable.hpp"
#include "builtin/staticscope.hpp"
#include "builtin/symbol.hpp"
#include <cxxtest/TestSuite.h>
#inc... | 23.290698 | 91 | 0.661508 | marnen |
54461baa2d8f0778b4ddf10d3be83e8d8e887b3c | 1,534 | hh | C++ | include/introvirt/core/breakpoint/Breakpoint.hh | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | 23 | 2021-02-17T16:58:52.000Z | 2022-02-12T17:01:06.000Z | include/introvirt/core/breakpoint/Breakpoint.hh | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | 1 | 2021-04-01T22:41:32.000Z | 2021-09-24T14:14:17.000Z | include/introvirt/core/breakpoint/Breakpoint.hh | srpape/IntroVirt | fe553221c40b8ef71f06e79c9d54d9e123a06c89 | [
"Apache-2.0"
] | 4 | 2021-02-17T16:53:18.000Z | 2021-04-13T16:51:10.000Z | /*
* Copyright 2021 Assured Information Security, Inc.
*
* 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 a... | 26.912281 | 75 | 0.674055 | srpape |
544635b121b2982488fd5ad5f117378a093d0a2a | 2,254 | cpp | C++ | src/Test/TestAlerter.cpp | SlimThreading/slimthreading-windows | a685d14ca172856f5a329a93aee4d00a4d0dd879 | [
"Apache-2.0"
] | 4 | 2015-11-06T03:11:14.000Z | 2019-04-22T05:50:58.000Z | src/Test/TestAlerter.cpp | SlimThreading/slimthreading-windows | a685d14ca172856f5a329a93aee4d00a4d0dd879 | [
"Apache-2.0"
] | null | null | null | src/Test/TestAlerter.cpp | SlimThreading/slimthreading-windows | a685d14ca172856f5a329a93aee4d00a4d0dd879 | [
"Apache-2.0"
] | 1 | 2018-12-26T12:30:47.000Z | 2018-12-26T12:30:47.000Z | // Copyright 2011 Carlos Martins
//
// 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 agr... | 24.5 | 80 | 0.565217 | SlimThreading |
545b66e48e3ac791998b468a27510e1358ed9967 | 827 | cc | C++ | src/ppl/nn/engines/x86/optimizer/ops/onnx/where_op.cc | weisk/ppl.nn | 7dd75a1077867fc9a762449953417088446ae2f8 | [
"Apache-2.0"
] | 1 | 2021-10-06T14:39:58.000Z | 2021-10-06T14:39:58.000Z | src/ppl/nn/engines/x86/optimizer/ops/onnx/where_op.cc | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | src/ppl/nn/engines/x86/optimizer/ops/onnx/where_op.cc | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | #include "ppl/nn/engines/x86/optimizer/ops/onnx/where_op.h"
#include "ppl/nn/engines/x86/kernels/onnx/where_kernel.h"
#include "ppl/nn/oputils/onnx/reshape_where.h"
using namespace std;
using namespace ppl::common;
namespace ppl { namespace nn { namespace x86 {
RetCode WhereOp::Init(const OptKernelOptions& options) {... | 30.62963 | 120 | 0.712213 | weisk |
545cd69c90cda273696b0de074f6d18ae5bdfe72 | 31,492 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_Coil.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_Coil.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimFlowEnergyTransfer_Coil.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 41.766578 | 156 | 0.723644 | EnEff-BIM |
545d43a0ddd8fb325ebac6286564666925a0eda6 | 10,441 | cpp | C++ | source/Core/Castor3D/Render/ShadowMap/ShadowMapDirectional.cpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | source/Core/Castor3D/Render/ShadowMap/ShadowMapDirectional.cpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | source/Core/Castor3D/Render/ShadowMap/ShadowMapDirectional.cpp | DragonJoker/Castor3D | ee0b02eeda70cd235a224be306539850e32195f6 | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | #include "Castor3D/Render/ShadowMap/ShadowMapDirectional.hpp"
#include "Castor3D/DebugDefines.hpp"
#include "Castor3D/Engine.hpp"
#include "Castor3D/Material/Texture/Sampler.hpp"
#include "Castor3D/Material/Texture/TextureView.hpp"
#include "Castor3D/Material/Texture/TextureLayout.hpp"
#include "Castor3D/Miscellaneous... | 34.803333 | 110 | 0.696485 | DragonJoker |
545ee3945a3eaebe999c4ca075437a2985dbab38 | 1,767 | cpp | C++ | Source/ComputeEngine/Vulkan/VulkanCommandBuffers.cpp | Fillo7/KTT | a0c252efb75a8366450e2df589f0ae641f015312 | [
"MIT"
] | 32 | 2017-09-12T23:52:52.000Z | 2020-12-09T07:13:24.000Z | Source/ComputeEngine/Vulkan/VulkanCommandBuffers.cpp | Fillo7/KTT | a0c252efb75a8366450e2df589f0ae641f015312 | [
"MIT"
] | 23 | 2017-05-11T14:38:45.000Z | 2021-02-03T13:45:14.000Z | Source/ComputeEngine/Vulkan/VulkanCommandBuffers.cpp | Fillo7/KTT | a0c252efb75a8366450e2df589f0ae641f015312 | [
"MIT"
] | 5 | 2017-11-06T12:40:05.000Z | 2020-06-16T13:11:24.000Z | #ifdef KTT_API_VULKAN
#include <ComputeEngine/Vulkan/VulkanCommandBuffers.h>
#include <ComputeEngine/Vulkan/VulkanCommandPool.h>
#include <ComputeEngine/Vulkan/VulkanDevice.h>
#include <ComputeEngine/Vulkan/VulkanUtility.h>
#include <Utility/ErrorHandling/Assert.h>
namespace ktt
{
VulkanCommandBuffers::VulkanCommand... | 28.967213 | 132 | 0.765139 | Fillo7 |
546df664da89640f432cb78fde1fce3eca7444b8 | 1,874 | cc | C++ | nes/src/graphics/framebuffer.cc | alanjian85/nes | 0580bd231f67ac7e760eec51df8e5265b2b04534 | [
"MIT"
] | null | null | null | nes/src/graphics/framebuffer.cc | alanjian85/nes | 0580bd231f67ac7e760eec51df8e5265b2b04534 | [
"MIT"
] | null | null | null | nes/src/graphics/framebuffer.cc | alanjian85/nes | 0580bd231f67ac7e760eec51df8e5265b2b04534 | [
"MIT"
] | null | null | null | #include "framebuffer.h"
using namespace nes;
#include <cassert>
#include <stdexcept>
#include <string>
#include <spdlog/spdlog.h>
Framebuffer::Framebuffer()
: texture_(nullptr)
{
}
Framebuffer::Framebuffer(const Renderer& renderer, int width, int height)
: pixels_(width * height)
{
width_ = width;
... | 24.657895 | 105 | 0.652081 | alanjian85 |
546faac521985335bb00933d4dd58f85cd3231e9 | 404 | cpp | C++ | Ejercicios/Ejercicio28-Funciones/funciones.cpp | IngrMendez/cpp | 059e8e16ada33eb3b12e3b0f3c06391371ac876b | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio28-Funciones/funciones.cpp | IngrMendez/cpp | 059e8e16ada33eb3b12e3b0f3c06391371ac876b | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio28-Funciones/funciones.cpp | IngrMendez/cpp | 059e8e16ada33eb3b12e3b0f3c06391371ac876b | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int sumar (){
return 5+7;
}
string nombrecompleto(){
string nombre ="Juan";
string apellido="Perez";
return nombre + " " + apellido;
}
int main(int argc, char const *argv[])
{
int resultado = sumar ();
string nombreyapellido = nombrecompleto (... | 12.242424 | 43 | 0.613861 | IngrMendez |
54705a45c37fc61d7c7825450bf4b8c1324b920c | 10,066 | cpp | C++ | Node/Software/Shell.cpp | UofT-HPRC/FFIVE | 4bb17f9669b0c731fe23ea06de26a8921c708ab5 | [
"BSD-Source-Code"
] | 3 | 2021-08-17T11:07:32.000Z | 2022-01-14T15:52:23.000Z | Node/Software/Shell.cpp | UofT-HPRC/FFIVE | 4bb17f9669b0c731fe23ea06de26a8921c708ab5 | [
"BSD-Source-Code"
] | null | null | null | Node/Software/Shell.cpp | UofT-HPRC/FFIVE | 4bb17f9669b0c731fe23ea06de26a8921c708ab5 | [
"BSD-Source-Code"
] | null | null | null | #include <string>
#include <map>
#include <iostream>
#include "docopt.h"
#include "ShellParameters.hpp"
#include "ShellAccess.hpp"
#include "ShellUtils.hpp"
#include "ShellMMap.hpp"
const std::string USAGE =
R"(VNF Shell Config.
A simple program to configure our 100G VNF Shell.
Usage:
Shell (-h | --help... | 44.9375 | 200 | 0.519571 | UofT-HPRC |
547956ff40388ce7909ee6e88eaac41541383a9e | 732 | hpp | C++ | Source/wali/include/wali/wpds/GenKeySource.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | src/wpds/Source/wali/wpds/GenKeySource.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | src/wpds/Source/wali/wpds/GenKeySource.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #ifndef wali_wpds_GENKEY_SOURCE_GUARD
#define wali_wpds_GENKEY_SOURCE_GUARD 1
/*!
* @author Nicholas Kidd
*/
#include "wali/Common.hpp"
#include "wali/KeySource.hpp"
namespace wali
{
namespace wpds {
class GenKeySource : public KeySource
{
public:
GenKeySource( size_t g, Key k );
v... | 17.023256 | 61 | 0.635246 | jusito |
547c54a09b5e6c789107b49e3f5c1f17a034e1e2 | 9,414 | cpp | C++ | client/hooks_ny/live/LiveXOnline.cpp | jamieb452/cfx-client | 1143b8b623bcccc4cf7bfe40bfef3d6db91a0a5b | [
"MIT"
] | 5 | 2017-07-19T16:42:12.000Z | 2021-01-19T22:46:43.000Z | client/hooks_ny/live/LiveXOnline.cpp | Zuiron/FiveM | 2e38beaf76d21a07be3bad6f4f00b68642e47edc | [
"MIT"
] | null | null | null | client/hooks_ny/live/LiveXOnline.cpp | Zuiron/FiveM | 2e38beaf76d21a07be3bad6f4f00b68642e47edc | [
"MIT"
] | 6 | 2017-01-24T22:11:17.000Z | 2020-07-07T19:53:18.000Z | #include "StdInc.h"
#include "Live.h"
#include "CrossLibraryInterfaces.h"
#include "NetBuffer.h"
// #5312: XFriendsCreateEnumerator
DWORD __stdcall XFriendsCreateEnumerator(DWORD, DWORD, DWORD, DWORD, HANDLE * phEnum)
{
*phEnum = INVALID_HANDLE_VALUE;
return 0;
}
// #5314: XUserMuteListQuery
int __stdc... | 27.051724 | 168 | 0.701402 | jamieb452 |
5485cf0c67818b85d367ed818995a11dc39a2f39 | 18,936 | cpp | C++ | Libraries/Graphics/ZilchShaderManager.cpp | jodavis42/ZilchShadersSamples | 3c94d295b68ae2e81ece3b12f3a17fe7d59566de | [
"MIT"
] | 1 | 2019-08-31T00:45:44.000Z | 2019-08-31T00:45:44.000Z | Libraries/Graphics/ZilchShaderManager.cpp | jodavis42/ZilchShadersSamples | 3c94d295b68ae2e81ece3b12f3a17fe7d59566de | [
"MIT"
] | 2 | 2019-09-08T16:06:05.000Z | 2019-09-08T16:06:58.000Z | Libraries/Graphics/ZilchShaderManager.cpp | jodavis42/ZilchShadersSamples | 3c94d295b68ae2e81ece3b12f3a17fe7d59566de | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// Authors: Joshua Davis
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
#include "ZilchShaderManager.hpp"
#include "Engine/ResourceSystem.hpp"
#include "Texture.hpp"
namespace ... | 40.54818 | 148 | 0.761671 | jodavis42 |
5485d63d58d3ff229b2a4c0a78db61d45d546715 | 2,041 | cpp | C++ | src/_leetcode/leet_763.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_763.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_763.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_763.cpp ==========================
* -- tpr --
* CREATE -- 2020.04.14
* MODIFY --
* ----------------------------------------------------------
* 763. 划分字母区间
*/
#include "innLee... | 23.45977 | 97 | 0.430181 | turesnake |
548cf490a0b698f960d41e8fb22c8110d969be83 | 502 | cpp | C++ | leetcode/645. Set Mismatch/s3.cpp | joycse06/LeetCode-1 | ad105bd8c5de4a659c2bbe6b19f400b926c82d93 | [
"Fair"
] | 1 | 2021-02-11T01:23:10.000Z | 2021-02-11T01:23:10.000Z | leetcode/645. Set Mismatch/s3.cpp | AnupSadhukhan/LeetCode | 725c22ec2f11f5232fd7ab6d63ab4fcd800f201b | [
"Fair"
] | null | null | null | leetcode/645. Set Mismatch/s3.cpp | AnupSadhukhan/LeetCode | 725c22ec2f11f5232fd7ab6d63ab4fcd800f201b | [
"Fair"
] | 1 | 2021-03-25T17:11:14.000Z | 2021-03-25T17:11:14.000Z | // OJ: https://leetcode.com/problems/set-mismatch/solution/
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(N)
class Solution {
public:
vector<int> findErrorNums(vector<int>& nums) {
vector<int> cnts(nums.size(), 0);
int dup, missing;
for (int n : nums) cnts[n - 1]++;
for ... | 29.529412 | 59 | 0.511952 | joycse06 |
549fafcb2b62b8f8ad61b7e7f9f0498c24a11156 | 585 | hpp | C++ | nano/lib/rocksdbconfig.hpp | simpago/nano-node | 39587264ce0ff0803466d990f8d44d776d998f1b | [
"BSD-3-Clause"
] | 2 | 2022-01-25T14:12:19.000Z | 2022-02-17T09:37:19.000Z | nano/lib/rocksdbconfig.hpp | simpago/nano-node | 39587264ce0ff0803466d990f8d44d776d998f1b | [
"BSD-3-Clause"
] | null | null | null | nano/lib/rocksdbconfig.hpp | simpago/nano-node | 39587264ce0ff0803466d990f8d44d776d998f1b | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <nano/lib/errors.hpp>
#include <nano/lib/rsnano.hpp>
#include <thread>
namespace nano
{
class tomlconfig;
/** Configuration options for RocksDB */
class rocksdb_config final
{
public:
rocksdb_config ();
void load_dto (rsnano::RocksDbConfigDto & dto);
rsnano::RocksDbConfigDto to_dto () const... | 20.172414 | 92 | 0.753846 | simpago |
54a022cf8e58f0e8b70ace00733a35217cb83da1 | 437 | cpp | C++ | GEC_1/04_userDefVariables/4_userDefVariables/userDefVariables.cpp | nerolileung/cgd_year1 | 211e91c37831a388b1abe1a1cc496716a4e9ca44 | [
"MIT"
] | null | null | null | GEC_1/04_userDefVariables/4_userDefVariables/userDefVariables.cpp | nerolileung/cgd_year1 | 211e91c37831a388b1abe1a1cc496716a4e9ca44 | [
"MIT"
] | null | null | null | GEC_1/04_userDefVariables/4_userDefVariables/userDefVariables.cpp | nerolileung/cgd_year1 | 211e91c37831a388b1abe1a1cc496716a4e9ca44 | [
"MIT"
] | 1 | 2019-12-09T22:41:49.000Z | 2019-12-09T22:41:49.000Z | #include <iostream>
using namespace std;
int main() {
typedef int date;
enum Month {
JANUARY = 1,
FEBRUARY,
MARCH,
APRIL,
MAY,
JUNE,
JULY,
AUGUST,
SEPTEMBER,
OCTOBER,
NOVEMBER,
DECEMBER
};
date varDate = 15;
Month varMonth = APRIL;
cout << "Value of date variabl... | 14.566667 | 60 | 0.583524 | nerolileung |
54a2f70f24ab6aaf88b88c9e68c2973f93eec1a3 | 178 | hpp | C++ | include/ghostfragment/fragment_based_method.hpp | rmrresearch/GhostFragment | 7f0dbcfab3054416ee788c9e972528f15b4d611b | [
"Apache-2.0"
] | null | null | null | include/ghostfragment/fragment_based_method.hpp | rmrresearch/GhostFragment | 7f0dbcfab3054416ee788c9e972528f15b4d611b | [
"Apache-2.0"
] | 1 | 2022-02-25T16:20:50.000Z | 2022-02-25T16:20:50.000Z | include/ghostfragment/fragment_based_method.hpp | rmrresearch/GhostFragment | 7f0dbcfab3054416ee788c9e972528f15b4d611b | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace ghostfragment {
/** @brief Class to connect all the pieces of a fragment-based method
*
*/
class FragmentBasedMethod {};
} // namespace ghostfragment | 17.8 | 70 | 0.735955 | rmrresearch |
54a5d6ed6825378585a68f53f95e255f27bc8a8c | 3,046 | hpp | C++ | datastore/common/parsers/ParserMacAddress.hpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | datastore/common/parsers/ParserMacAddress.hpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | datastore/common/parsers/ParserMacAddress.hpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 13 | 2019-12-01T21:32:33.000Z | 2022-03-28T15:40:02.000Z | // =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... | 39.558442 | 80 | 0.609652 | cmwill |
54a63116fa925399930b8c15c6af476ccbb8a83f | 1,169 | cc | C++ | project2/ai_project/ai/src/neural_network.cc | my3ngd/bottom-up-artificial-intelligence | cddcd5a0031d0515c5ea946d30be7c3e6b2728f6 | [
"MIT"
] | 1 | 2022-03-07T12:45:57.000Z | 2022-03-07T12:45:57.000Z | project2/ai_project/ai/src/neural_network.cc | my3ngd/bottom-up-artificial-intelligence | cddcd5a0031d0515c5ea946d30be7c3e6b2728f6 | [
"MIT"
] | null | null | null | project2/ai_project/ai/src/neural_network.cc | my3ngd/bottom-up-artificial-intelligence | cddcd5a0031d0515c5ea946d30be7c3e6b2728f6 | [
"MIT"
] | 3 | 2021-12-23T07:30:14.000Z | 2021-12-24T17:15:01.000Z | #include "neural_network.h"
// activation function implementation
matrix_t Sigmoid(matrix_t& mat)
{
// code
}
matrix_t Tanh(matrix_t& mat)
{
// code
}
matrix_t ReLU(matrix_t& mat)
{
// code
}
matrix_t Leaky_ReLU(matrix_t& mat, const real_t& alpha)
{
// code
}
matrix_t ExpLU(matrix_t& mat)
{
... | 14.797468 | 116 | 0.714286 | my3ngd |
54a79631bf233ef1e43b6d0b27f35ecc26a6b87b | 591 | hpp | C++ | src/ProjectForecast/Systems/EntityTransformControlSystem.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2019-04-09T13:03:11.000Z | 2021-01-27T04:58:29.000Z | src/ProjectForecast/Systems/EntityTransformControlSystem.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 2 | 2017-02-06T03:48:45.000Z | 2020-08-31T01:30:10.000Z | src/ProjectForecast/Systems/EntityTransformControlSystem.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2020-06-28T08:19:53.000Z | 2020-06-28T16:30:19.000Z | #pragma once
#include "KEngine/Interfaces/ISystem.hpp"
#include "KEngine/Interfaces/IEvent.hpp"
namespace pf
{
class EntityTransformControlSystem : public ke::ISystem
{
KE_DEFINE_SYSTEM_COMMON_PROPERTIES(EntityTransformControlSystem, 0xB4AAC4C2)
public:
virtual bool initialise() fin... | 23.64 | 84 | 0.71912 | yxbh |
2a6382e4b894eb1adf68267545ffa258ce62c86c | 1,480 | cpp | C++ | Chapter_9_Rare_Topics/9.8_Lowest_Common_Ancestor/kattis_chewbacca.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_9_Rare_Topics/9.8_Lowest_Common_Ancestor/kattis_chewbacca.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_9_Rare_Topics/9.8_Lowest_Common_Ancestor/kattis_chewbacca.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - chewbacca
* A question that is easy in theory, but hard in practise. The problem is that 10^15 fits into
* a long long but 10^3 * 10^15 barely does it, so using unsigned long long instead of long long
* is just barely enough to AC.
*
* Time: O(log(n)^2*q), Space: O(1)
*/
#include <bits/stdc++.h>
us... | 21.764706 | 96 | 0.488514 | BrandonTang89 |
2a64d92e838367140059a772d2f3d489d41105a9 | 1,083 | cpp | C++ | test/optimisationProblem/blackBoxOptimisationBenchmark/testBentCigarFunction.cpp | OpusV/AstroMechanics | 3fe7a5462fce575c465be372d1c69bf788784297 | [
"MIT"
] | 1 | 2019-11-08T22:06:56.000Z | 2019-11-08T22:06:56.000Z | test/optimisationProblem/blackBoxOptimisationBenchmark/testBentCigarFunction.cpp | OpusV/AstroMechanics | 3fe7a5462fce575c465be372d1c69bf788784297 | [
"MIT"
] | null | null | null | test/optimisationProblem/blackBoxOptimisationBenchmark/testBentCigarFunction.cpp | OpusV/AstroMechanics | 3fe7a5462fce575c465be372d1c69bf788784297 | [
"MIT"
] | null | null | null | // Catch
#include <catch.hpp>
#include "../../catchHelper.hpp"
class TestBentCigarFunction : public mant::bbob::BentCigarFunction {
public:
using mant::bbob::BentCigarFunction::BentCigarFunction;
// Increases the visibility of internal parameters, to make them accessible.
using mant::bbob::BentCigarFunction::r... | 36.1 | 135 | 0.733149 | OpusV |
2a6d9269787228d3e96cd71312d69386e8ae5178 | 1,234 | cpp | C++ | src/parser/SemRecorder.cpp | IcicleF/thu-rdbms | 08c329041778ec5bbdcc19fccf475bf1dfa70443 | [
"MIT"
] | 3 | 2019-09-17T10:52:28.000Z | 2021-01-13T08:34:36.000Z | src/parser/SemRecorder.cpp | IcicleF/thu-rdbms | 08c329041778ec5bbdcc19fccf475bf1dfa70443 | [
"MIT"
] | null | null | null | src/parser/SemRecorder.cpp | IcicleF/thu-rdbms | 08c329041778ec5bbdcc19fccf475bf1dfa70443 | [
"MIT"
] | 1 | 2019-09-17T10:52:32.000Z | 2019-09-17T10:52:32.000Z | #include <iostream>
#include <algorithm>
#include "parser/SemRecorder.h"
using namespace std;
void SemRecorder::beginField() {
symStack.clear();
inField = true;
}
void SemRecorder::endField() {
inField = false;
}
bool SemRecorder::isInField() {
return inField;
}
bool SemRecorder::push(const string&... | 21.649123 | 71 | 0.611021 | IcicleF |
2a6dfde205bd4f5d7adede20df0e0d649e3155d2 | 6,262 | cpp | C++ | Classes/Scene/StartGameScene.cpp | PlusOneZ/OOPCourseProject | 4b058167ec7ef79eacf7faaba05f13b6bee1d631 | [
"DOC"
] | 5 | 2020-05-16T08:30:45.000Z | 2021-06-05T07:39:44.000Z | Classes/Scene/StartGameScene.cpp | PlusOneZ/OOPCourseProject | 4b058167ec7ef79eacf7faaba05f13b6bee1d631 | [
"DOC"
] | null | null | null | Classes/Scene/StartGameScene.cpp | PlusOneZ/OOPCourseProject | 4b058167ec7ef79eacf7faaba05f13b6bee1d631 | [
"DOC"
] | 4 | 2020-05-25T05:22:14.000Z | 2021-07-15T06:27:31.000Z | /**
* @file StartGameScene.cpp
* @date 05/24/2020 [modified ZZY]
* @author 翟晨昊 ZZY
*/
#include "StartGameScene.h"
#include "SafeMapScene.h"
#include "ui/CocosGUI.h"
USING_NS_CC;
using namespace cocos2d::ui;
extern int gBackgroundMusicID;
extern bool gIsMusicPlaying;
extern bool gIsEffectPlayin... | 31 | 126 | 0.595816 | PlusOneZ |
2a7058f4e49d2af7786789db7cd75c969cbf561f | 365 | hpp | C++ | sprout/adapt/sscrisk/cel/array.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/adapt/sscrisk/cel/array.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/adapt/sscrisk/cel/array.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_ADAPT_SSCRISK_CEL_ARRAY_HPP
#define SPROUT_ADAPT_SSCRISK_CEL_ARRAY_HPP
#include <sscrisk/cel/array.hpp>
#include <sprout/config.hpp>
#include <sprout/container/sscrisk/cel/array.hpp>
#include <sprout/functional/hash/sscrisk/cel/array.hpp>
#include <sprout/tuple/sscrisk/cel/array.hpp>
#endif //... | 33.181818 | 56 | 0.80274 | osyo-manga |
2a70e7a618e3b6f0455ba739c7ddfc41dba51bb2 | 1,679 | cpp | C++ | src/cpp/unit/VarIntTest.cpp | martinus/bitcoin_playground | f9a9089fe04341d5786765e1cb899061a2c06b01 | [
"MIT"
] | 29 | 2020-05-20T22:13:51.000Z | 2021-12-05T03:10:40.000Z | src/cpp/unit/VarIntTest.cpp | martinus/bitcoin_playground | f9a9089fe04341d5786765e1cb899061a2c06b01 | [
"MIT"
] | 2 | 2021-01-06T10:00:28.000Z | 2021-01-06T11:45:56.000Z | src/cpp/unit/VarIntTest.cpp | martinus/bitcoin_playground | f9a9089fe04341d5786765e1cb899061a2c06b01 | [
"MIT"
] | 5 | 2020-07-14T15:42:17.000Z | 2021-11-17T07:01:25.000Z | #include <util/VarInt.h>
#include <util/hex.h>
#include <doctest.h>
#include <fmt/format.h>
template <typename T>
void testEncDec(T val) {
auto varint = util::VarInt();
auto sv = varint.encode(val);
auto ptr = sv.data();
auto decVal = T();
util::VarInt::decode<T>(decVal, ptr);
REQUIRE(ptr == ... | 31.679245 | 54 | 0.654556 | martinus |
2a75c82d442a86b5ab8835c66895c96befed33d3 | 4,706 | cpp | C++ | application_kit/colorPickerModule/colorPickerClient/ModuleProxy.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-09-09T21:01:57.000Z | 2022-03-27T10:01:27.000Z | application_kit/colorPickerModule/colorPickerClient/ModuleProxy.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | null | null | null | application_kit/colorPickerModule/colorPickerClient/ModuleProxy.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-04-03T01:45:23.000Z | 2021-05-14T08:23:01.000Z | /*
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code License.
*/
#include <Application.h>
#include <Roster.h>
#include <MenuItem.h>
#include <Mime.h>
#include <PopUpMenu.h>
#include "ModuleProxy.h"
#include "../simpleColorPicker/Protocol.h"
#include ... | 24.010204 | 79 | 0.713982 | return |
2a77360d2e0748d7eade7dae6313558a3cb3d86f | 3,082 | cpp | C++ | Chapter03/03_numeric_cast/main.cpp | apolukhin/boost-cookbook | 912e36f38b9b1da93b03ae7afd19fcec0900aa83 | [
"BSL-1.0"
] | 313 | 2017-05-28T15:30:57.000Z | 2022-03-15T12:32:40.000Z | Chapter03/03_numeric_cast/main.cpp | apolukhin/boost-cookbook | 912e36f38b9b1da93b03ae7afd19fcec0900aa83 | [
"BSL-1.0"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Chapter03/03_numeric_cast/main.cpp | apolukhin/boost-cookbook | 912e36f38b9b1da93b03ae7afd19fcec0900aa83 | [
"BSL-1.0"
] | 85 | 2017-05-28T16:47:33.000Z | 2022-03-30T10:04:55.000Z | void some_function(unsigned short param);
int foo();
void foo1() {
// Some compilers may warn, that int is being converted to
// unsigned short and that there is a possibility of loosing
// data.
some_function(foo());
}
void foo2() {
// Warning suppressed.
some_function(
static_cast<un... | 21.704225 | 66 | 0.570409 | apolukhin |
2a77a9e6971da6ff46dd2043274e78e2bd65dadc | 4,396 | cpp | C++ | vehicle/src/udp_trans/udp_server_main.cpp | Alvintang6/robot_formation | 44017e939cede6bc3e964732511a53eba50544da | [
"MIT"
] | 11 | 2018-10-28T17:51:58.000Z | 2022-03-02T22:46:35.000Z | vehicle/src/udp_trans/udp_server_main.cpp | Alvintang6/robot_formation | 44017e939cede6bc3e964732511a53eba50544da | [
"MIT"
] | null | null | null | vehicle/src/udp_trans/udp_server_main.cpp | Alvintang6/robot_formation | 44017e939cede6bc3e964732511a53eba50544da | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//
// This is a udp_server node to get the information from other nodes.
// It also publish the received information to local ros master with topic
// (/cross_info).
// author: JieTang data: 29/08/2018
//
//////////////////... | 20.542056 | 179 | 0.651274 | Alvintang6 |
2a785ab1e76537bdabd2ad7075b5a37f2f1e2764 | 4,652 | cc | C++ | test/hns-test-parse-tlsa.cc | handshake-org/libhns | 5cc63093ac4832bcdf9bcb1d46f331c0746a93c1 | [
"MIT"
] | 18 | 2018-08-02T16:58:49.000Z | 2022-03-05T22:34:51.000Z | test/hns-test-parse-tlsa.cc | jilky/libhns | 5cc63093ac4832bcdf9bcb1d46f331c0746a93c1 | [
"MIT"
] | 2 | 2018-10-04T23:09:50.000Z | 2020-06-26T17:20:37.000Z | test/hns-test-parse-tlsa.cc | jilky/libhns | 5cc63093ac4832bcdf9bcb1d46f331c0746a93c1 | [
"MIT"
] | 4 | 2019-09-22T10:16:46.000Z | 2022-03-05T22:34:51.000Z | #include "hns-test.h"
#include "dns-proto.h"
#include <sstream>
#include <vector>
namespace hns {
namespace test {
#define fingerprint_hex \
"0c72ac70b745ac19998811b131d662c9ac69dbdbe7cb23e5b514b56664c5d3d6"
TEST_F(LibraryTest, ParseTlsaReplyOK) {
std::string fp_hex(fingerprint_hex);
DNSPacket pkt;
pkt.se... | 40.103448 | 80 | 0.816853 | handshake-org |
2a78994c6b8779483414878da5fdf57180ea0d16 | 1,047 | cpp | C++ | game/shared/DefaultClassifications.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 83 | 2016-06-10T20:49:23.000Z | 2022-02-13T18:05:11.000Z | game/shared/DefaultClassifications.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 26 | 2016-06-16T22:27:24.000Z | 2019-04-30T19:25:51.000Z | game/shared/DefaultClassifications.cpp | xalalau/HLEnhanced | f108222ab7d303c9ed5a8e81269f9e949508e78e | [
"Unlicense"
] | 58 | 2016-06-10T23:52:33.000Z | 2021-12-30T02:30:50.000Z | #include "Platform.h"
#include "DefaultClassifications.h"
namespace classify
{
const char NONE[] = "NONE";
const char MACHINE[] = "MACHINE";
const char PLAYER[] = "PLAYER";
const char HUMAN_PASSIVE[] = "HUMAN_PASSIVE";
const char HUMAN_MILITARY[] = "HUMAN_MILITARY";
const char ALIEN_MILITARY[] = "ALIEN_MILITARY";
con... | 23.795455 | 80 | 0.755492 | xalalau |
2a7b4f8e3e9c06c64bf3ae86de7f9b313b7b8526 | 2,675 | cpp | C++ | examples/modern_example.cpp | biaks/prometheus-cpp-light | 8f252c36e55d8a82cae16df9eeed9ed64199643c | [
"MIT"
] | null | null | null | examples/modern_example.cpp | biaks/prometheus-cpp-light | 8f252c36e55d8a82cae16df9eeed9ed64199643c | [
"MIT"
] | null | null | null | examples/modern_example.cpp | biaks/prometheus-cpp-light | 8f252c36e55d8a82cae16df9eeed9ed64199643c | [
"MIT"
] | 2 | 2021-08-31T18:05:16.000Z | 2022-03-10T18:47:33.000Z | #include <prometheus/registry.h>
#include <prometheus/counter.h>
#include <prometheus/text_serializer.h>
#include <array>
#include <chrono>
#include <cstdlib>
#include <memory>
#include <string>
#include <thread>
#include <iostream>
int main() {
using namespace prometheus;
// for clarity, we ded... | 40.530303 | 141 | 0.69757 | biaks |
2a7c17e49b7b52df6fab3fcab04938b7bfcec786 | 2,190 | cc | C++ | src/options_helper.cc | WyattJia/blackwidow | 5d070e2970f68fafde8105d358acd09c571ea398 | [
"BSD-3-Clause"
] | 67 | 2018-08-01T05:52:25.000Z | 2022-03-22T04:08:22.000Z | src/options_helper.cc | WyattJia/blackwidow | 5d070e2970f68fafde8105d358acd09c571ea398 | [
"BSD-3-Clause"
] | 7 | 2018-11-30T01:48:07.000Z | 2022-02-10T12:17:07.000Z | src/options_helper.cc | rockeet/blackwidow | 8eef278a3d43d204cc7b6198c96ad8de45c2851f | [
"BSD-3-Clause"
] | 30 | 2018-08-15T06:34:31.000Z | 2022-03-20T09:04:27.000Z | // Copyright (c) 2017-present, Qihoo, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include "src/options_... | 28.815789 | 94 | 0.66895 | WyattJia |
2a8bf1d8e3db11c797a6fbba0a86804a30e63472 | 2,041 | cpp | C++ | logdevice/common/protocol/DELETE_LOG_METADATA_REPLY_Message.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | 1,831 | 2018-09-12T15:41:52.000Z | 2022-01-05T02:38:03.000Z | logdevice/common/protocol/DELETE_LOG_METADATA_REPLY_Message.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | 183 | 2018-09-12T16:14:59.000Z | 2021-12-07T15:49:43.000Z | logdevice/common/protocol/DELETE_LOG_METADATA_REPLY_Message.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | 228 | 2018-09-12T15:41:51.000Z | 2022-01-05T08:12:09.000Z | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "logdevice/common/protocol/DELETE_LOG_METADATA_REPLY_Message.h"
#include "log... | 32.396825 | 77 | 0.683488 | mickvav |
2a916a18e29afdda80aaa22d92b5f71c44d0e9cd | 182 | cpp | C++ | gierka/bullet.cpp | PiterWaw/informatyka_2021_projekt_ | f0a49007c1badd5c82e22c26347ca6a33d4569c4 | [
"BSD-2-Clause"
] | null | null | null | gierka/bullet.cpp | PiterWaw/informatyka_2021_projekt_ | f0a49007c1badd5c82e22c26347ca6a33d4569c4 | [
"BSD-2-Clause"
] | null | null | null | gierka/bullet.cpp | PiterWaw/informatyka_2021_projekt_ | f0a49007c1badd5c82e22c26347ca6a33d4569c4 | [
"BSD-2-Clause"
] | null | null | null | #include "bullet.h"
#include "weapon.h"
bullet::bullet()
{
bulletObject.setRadius(2);
bulletObject.setFillColor(sf::Color::Black);
}
int bullet::giveDamage()
{
return damage;
}
| 13 | 45 | 0.708791 | PiterWaw |
2a95280b7f691f0e8aa6e40d473899961f84c7d0 | 817 | cc | C++ | Code/0155-min-stack.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/0155-min-stack.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/0155-min-stack.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class MinStack {
vector<int> v;
vector<int> mins;
public:
/** initialize your data structure here. */
MinStack() {
}
void push(int x) {
v.push_back(x);
if (v.size() == 1) {
mins.push_back(x);
} else {
mins.push_back(min(x, mins.back()));
... | 18.568182 | 64 | 0.450428 | SMartQi |
2aa050208755bcad9760417276b4c06dca06fe66 | 1,070 | cpp | C++ | tests/test.cpp | ryanhomer/pinyin-compare | 6f744f6b19a88559e9640fe462ccd465187f0693 | [
"Apache-2.0"
] | 4 | 2018-11-18T21:39:21.000Z | 2021-01-14T15:57:08.000Z | tests/test.cpp | ryanhomer/pinyin-compare | 6f744f6b19a88559e9640fe462ccd465187f0693 | [
"Apache-2.0"
] | null | null | null | tests/test.cpp | ryanhomer/pinyin-compare | 6f744f6b19a88559e9640fe462ccd465187f0693 | [
"Apache-2.0"
] | 2 | 2019-06-05T08:48:19.000Z | 2020-01-12T07:26:02.000Z | #include "gtest/gtest.h"
#include "test.h"
// https://www.sqlite.org/c3ref/create_collation.html
void test_commutative_eq(const char *s1, const char *s2) {
ASSERT_EQ(_pinyin_compare(s1, s2), _pinyin_compare(s2, s1));
}
void test_transitive_eq(const char *s1, const char *s2, const char *s3) {
const int r1 = _piny... | 28.918919 | 78 | 0.692523 | ryanhomer |
2aa923ac81491ff68017467fe05cae911c97c355 | 16,292 | cpp | C++ | packages/monte_carlo/collision/electron/test/tstScreenedRutherfordElasticElectronScatteringDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/electron/test/tstScreenedRutherfordElasticElectronScatteringDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/electron/test/tstScreenedRutherfordElasticElectronScatteringDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstScreenedRutherfordElasticElectronScatteringDistribution.cpp
//! \author Luke Kersting
//! \brief ScreenedRutherford elastic electron scattering distribution unit tests
//!
//----------------------------------------------... | 38.334118 | 142 | 0.645838 | bam241 |
2aaf5139071c13629bd61fb361701d0d29e1f992 | 1,856 | cpp | C++ | Problem Set Volumes/Volume 4/437 - The Tower of Babylon.cpp | ztrixack/uva-online-judge | ef87e745390a6a1965fe06621e50c6dc48db7257 | [
"MIT"
] | null | null | null | Problem Set Volumes/Volume 4/437 - The Tower of Babylon.cpp | ztrixack/uva-online-judge | ef87e745390a6a1965fe06621e50c6dc48db7257 | [
"MIT"
] | null | null | null | Problem Set Volumes/Volume 4/437 - The Tower of Babylon.cpp | ztrixack/uva-online-judge | ef87e745390a6a1965fe06621e50c6dc48db7257 | [
"MIT"
] | null | null | null | //============================================================================
// Name : 437 - The Tower of Babylon.cpp
// Author : ztrixack
// Copyright : MIT License
// Description : 437 - The Tower of Babylon in C++, Ansi-style
// Run Time : 0.000 seconds
//==========================================... | 23.493671 | 87 | 0.468211 | ztrixack |
2ab7b642d07fcc25bab560f355f0ad8d9211779d | 33 | hpp | C++ | include/ox/pugiconfig.hpp | chuckvalenza/oxygine-framework | e6cd7b78091e75e0dc5900fcdeadba4b97197d40 | [
"MIT"
] | null | null | null | include/ox/pugiconfig.hpp | chuckvalenza/oxygine-framework | e6cd7b78091e75e0dc5900fcdeadba4b97197d40 | [
"MIT"
] | null | null | null | include/ox/pugiconfig.hpp | chuckvalenza/oxygine-framework | e6cd7b78091e75e0dc5900fcdeadba4b97197d40 | [
"MIT"
] | null | null | null | #include "pugixml/pugiconfig.hpp" | 33 | 33 | 0.818182 | chuckvalenza |
2ac152ed0213a3df002b238a0dc98ea7b9042898 | 3,862 | cpp | C++ | src/core/vertexbuffer.cpp | GuyTristram/grt | 4329ed58f22248ed4924246e148fb6b5f3f7e1bc | [
"MIT"
] | 1 | 2015-10-08T19:11:18.000Z | 2015-10-08T19:11:18.000Z | src/core/vertexbuffer.cpp | GuyTristram/grt | 4329ed58f22248ed4924246e148fb6b5f3f7e1bc | [
"MIT"
] | null | null | null | src/core/vertexbuffer.cpp | GuyTristram/grt | 4329ed58f22248ed4924246e148fb6b5f3f7e1bc | [
"MIT"
] | null | null | null | #include "core/vertexbuffer.h"
#include <map>
#include <string>
namespace
{
std::map< std::string, int > g_attribute_locations;
}
VertexBuffer::~VertexBuffer()
{
if( m_static_data )
free( m_static_data );
if( m_dynamic_data )
free( m_dynamic_data );
if( m_gl_buffer )
glDeleteBuffers( 1, &m_gl_buffer );
}
... | 23.54878 | 122 | 0.665458 | GuyTristram |
2ac29276423e99c84e0681891f40ed4d9750b930 | 7,563 | cpp | C++ | src/lib/algorithm/skeletonization/voronoi/VoronoiSkeleton2D.cpp | Ibujah/propagatedskeleton | 56a583e6f9907e68a388eec6ad179ad671ca156e | [
"MIT"
] | 2 | 2019-03-29T08:40:16.000Z | 2019-03-30T11:06:46.000Z | src/lib/algorithm/skeletonization/voronoi/VoronoiSkeleton2D.cpp | Ibujah/propagatedskeleton | 56a583e6f9907e68a388eec6ad179ad671ca156e | [
"MIT"
] | null | null | null | src/lib/algorithm/skeletonization/voronoi/VoronoiSkeleton2D.cpp | Ibujah/propagatedskeleton | 56a583e6f9907e68a388eec6ad179ad671ca156e | [
"MIT"
] | null | null | null | /*
Copyright (c) 2016 Bastien Durix
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, merge, publish, distribute, s... | 29.428016 | 172 | 0.631363 | Ibujah |
2ac3cbe7c995f740d49d7f83c01ddec9eee9aa1a | 19,266 | cpp | C++ | shirabeengine/shirabeengine/modules/vulkan_integration/code/source/resources/vulkanresourcetaskmodule_pipeline.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 5 | 2019-12-02T12:28:57.000Z | 2021-04-07T21:21:13.000Z | shirabeengine/shirabeengine/modules/vulkan_integration/code/source/resources/vulkanresourcetaskmodule_pipeline.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | null | null | null | shirabeengine/shirabeengine/modules/vulkan_integration/code/source/resources/vulkanresourcetaskmodule_pipeline.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 1 | 2020-01-09T14:25:42.000Z | 2020-01-09T14:25:42.000Z | #include <filesystem>
#include <fstream>
#include <resources/resourcetypes.h>
#include "vulkan_integration/vulkandevicecapabilities.h"
#include "vulkan_integration/resources/vulkanresourcetaskbackend.h"
#include "vulkan_integration/resources/types/vulkanmaterialpipelineresource.h"
#include "vulkan_integration/resourc... | 52.211382 | 180 | 0.537372 | BoneCrasher |
2ac45969574bf302f604eaaa54bec3654929231a | 742 | hpp | C++ | include/autolib/auton/selector.hpp | acetousk/autolib-1 | fb1649aa6e13735aa67c71901a961639a57659e6 | [
"MIT"
] | null | null | null | include/autolib/auton/selector.hpp | acetousk/autolib-1 | fb1649aa6e13735aa67c71901a961639a57659e6 | [
"MIT"
] | null | null | null | include/autolib/auton/selector.hpp | acetousk/autolib-1 | fb1649aa6e13735aa67c71901a961639a57659e6 | [
"MIT"
] | null | null | null | #pragma once
#include "display/lvgl.h"
#include "okapi/api.hpp"
#include "autolib/auton/auton.hpp"
namespace autolib{
using namespace okapi;
class Selector{
public:
Selector( const std::shared_ptr<Auton> &iauton, lv_obj_t * iparent = lv_scr_act() );
void init( int maxButtonsPerLine = 4 );
void togg... | 21.2 | 88 | 0.671159 | acetousk |
2ac706dae5db93c8ce8c177fd89ab12b0bf53279 | 1,440 | cpp | C++ | linked-list/deletion_at_end.cpp | kushasharma/data-structure | 4fd0ddeed76f2ab61f5fe22fba9d59aace89413d | [
"MIT"
] | 1 | 2019-10-03T14:04:35.000Z | 2019-10-03T14:04:35.000Z | linked-list/deletion_at_end.cpp | kushasharma/data-structure | 4fd0ddeed76f2ab61f5fe22fba9d59aace89413d | [
"MIT"
] | null | null | null | linked-list/deletion_at_end.cpp | kushasharma/data-structure | 4fd0ddeed76f2ab61f5fe22fba9d59aace89413d | [
"MIT"
] | 2 | 2020-10-01T11:23:58.000Z | 2020-10-02T09:53:29.000Z | #include<iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
struct Node
{
int data;
Node* next;
};
void insertion(Node** head, int data)
{
Node* newnode = new Node();
Node* last = *head;
newnode->data = data;
newnode->next = NULL;
if(*head==NULL)
{
*head=newnode;
return;
}
while(last->n... | 16.363636 | 48 | 0.477083 | kushasharma |
2ac82be8dc1f084d337af8bf61accfabe54d547a | 92 | cpp | C++ | src/BigDecimal.cpp | kosmaz/BigID | 26b0339a2b41be5f55db0f093bd5766da68fe345 | [
"MIT"
] | 1 | 2017-01-12T15:25:21.000Z | 2017-01-12T15:25:21.000Z | src/BigDecimal.cpp | kosmaz/BigID | 26b0339a2b41be5f55db0f093bd5766da68fe345 | [
"MIT"
] | null | null | null | src/BigDecimal.cpp | kosmaz/BigID | 26b0339a2b41be5f55db0f093bd5766da68fe345 | [
"MIT"
] | null | null | null | #include "BigDecimal.h"
#include <vector>
using namespace std;
extern void testing();
| 15.333333 | 24 | 0.706522 | kosmaz |
2aca2bf4d67d142a93ae9823f2470c7aaafa5549 | 3,280 | cpp | C++ | ros2_beagle/src/beagle_io/src/imu_sensor.cpp | paagutie/ros2_beagle | 9a988875c496c9fdbb67e9a0a4cd9e740eb6a2c0 | [
"MIT"
] | 1 | 2020-12-29T03:51:30.000Z | 2020-12-29T03:51:30.000Z | ros2_beagle/src/beagle_io/src/imu_sensor.cpp | paagutie/ros2_beagle | 9a988875c496c9fdbb67e9a0a4cd9e740eb6a2c0 | [
"MIT"
] | null | null | null | ros2_beagle/src/beagle_io/src/imu_sensor.cpp | paagutie/ros2_beagle | 9a988875c496c9fdbb67e9a0a4cd9e740eb6a2c0 | [
"MIT"
] | 1 | 2020-12-29T03:51:32.000Z | 2020-12-29T03:51:32.000Z | /**
* imu_sensor.cpp
*
* @author Pablo Gutiérrez
* @date 08/07/2020
*/
#include "beagle_io/MPU9250.hpp"
#include "beagle_io/AK8963.hpp"
#include <chrono>
#include <memory>
#include <iomanip>
#include "rclcpp/rclcpp.hpp"
#include "sensor_msgs/msg/imu.hpp"
#include "beagle_io/Madgwick.hpp"
namespac... | 24.848485 | 109 | 0.610366 | paagutie |
2acead86559a771221d0181ba2edb54c445ee5a9 | 14,170 | cc | C++ | src/genetic/genetic.cc | grzegorzmatczak/GeneticOptimizationModule | 2b01db28268a6c15756cbd10913f8c7ff7dd95ac | [
"MIT"
] | null | null | null | src/genetic/genetic.cc | grzegorzmatczak/GeneticOptimizationModule | 2b01db28268a6c15756cbd10913f8c7ff7dd95ac | [
"MIT"
] | null | null | null | src/genetic/genetic.cc | grzegorzmatczak/GeneticOptimizationModule | 2b01db28268a6c15756cbd10913f8c7ff7dd95ac | [
"MIT"
] | null | null | null | #include "genetic/genetic.h"
#include <QDebug>
#include <QDateTime>
//#define DEBUG
//#define GENETIC_OPERATION_DEBUG
#define DEBUG_FITNESS_POPULATION
constexpr auto GRAPH{ "Graph" };
constexpr auto GENETIC{ "Genetic" };
constexpr auto POPULATION_SIZE{ "PopulationSize" };
constexpr auto RESULTS_PATH{"ResultsPath"};
c... | 31.700224 | 156 | 0.707339 | grzegorzmatczak |
2ad037ea66df74b72cea7ddec5eaa5c1c51c2510 | 1,615 | cpp | C++ | tools/BOSSA-Arduino/src/Applet.cpp | lucasw00079/bmptk | 4e29d57411b1c6825a5e5e034c262cd8ebb8c00b | [
"BSL-1.0"
] | null | null | null | tools/BOSSA-Arduino/src/Applet.cpp | lucasw00079/bmptk | 4e29d57411b1c6825a5e5e034c262cd8ebb8c00b | [
"BSL-1.0"
] | null | null | null | tools/BOSSA-Arduino/src/Applet.cpp | lucasw00079/bmptk | 4e29d57411b1c6825a5e5e034c262cd8ebb8c00b | [
"BSL-1.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// BOSSA
//
// Copyright (C) 2011-2012 ShumaTech http://www.shumatech.com/
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Softwa... | 29.363636 | 88 | 0.601858 | lucasw00079 |
2ad5f766d1bb6faff44ff48effc989454dcb73b8 | 2,123 | cpp | C++ | pqnet/platform/base.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | pqnet/platform/base.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | pqnet/platform/base.cpp | paoqi1997/pqnet | 3413916bdc355b0a4eea8ef934a3ff658b047b19 | [
"BSD-3-Clause"
] | null | null | null | #include <cerrno>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <sstream>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/stat.h> // for mkdir()
#include <unistd.h> // for access()
#endif
#include "../util/defines.h"
#include "base.h"
using namespace pqnet;
namespace {
std::size_t nProc... | 21.444444 | 68 | 0.562883 | paoqi1997 |
2adb3b1bf1ef8dd1f0d16c1353e69a2c0ed92e3d | 229 | hpp | C++ | include/mocha_settings.hpp | iwatakeshi/mocha | a892e65df0e402446fea99e70fcc8f94f8552995 | [
"MIT"
] | 1 | 2019-02-23T02:47:20.000Z | 2019-02-23T02:47:20.000Z | include/mocha_settings.hpp | iwatakeshi/mocha | a892e65df0e402446fea99e70fcc8f94f8552995 | [
"MIT"
] | null | null | null | include/mocha_settings.hpp | iwatakeshi/mocha | a892e65df0e402446fea99e70fcc8f94f8552995 | [
"MIT"
] | null | null | null | #ifndef MOCHA_SETTINGS_H
#define MOCHA_SETTINGS_H
namespace mocha {
struct __mocha_settings {
bool use_color = true;
bool debug = false;
std::string indention = " ";
};
__mocha_settings mocha_settings;
} // mocha
#endif | 16.357143 | 32 | 0.737991 | iwatakeshi |
2adf012934a009932bf22bd862be08dee1d79228 | 1,387 | hpp | C++ | libs/camera-pipes/pipeline/camera/Logitech_C525_gst.hpp | suburbanmarine/opaleye | c3843716ffc31956f2499987d3fdb9e31a7de0c9 | [
"BSD-3-Clause"
] | 4 | 2021-08-16T22:23:38.000Z | 2022-02-16T15:49:26.000Z | libs/camera-pipes/pipeline/camera/Logitech_C525_gst.hpp | suburbanmarine/opaleye | c3843716ffc31956f2499987d3fdb9e31a7de0c9 | [
"BSD-3-Clause"
] | 3 | 2021-11-15T03:35:00.000Z | 2022-01-15T19:06:34.000Z | libs/camera-pipes/pipeline/camera/Logitech_C525_gst.hpp | suburbanmarine/opaleye | c3843716ffc31956f2499987d3fdb9e31a7de0c9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @author Jacob Schloss <jacob.schloss@suburbanmarine.io>
* @copyright Copyright (c) 2021 Suburban Marine, Inc. All rights reserved.
* @license Licensed under the 3-Clause BSD LICENSE. See LICENSE.txt for details.
*/
#pragma once
#include "cameras/Logitech_C525.hpp"
#include "pipeline/GST_element_base.hpp"
#... | 21.338462 | 81 | 0.651766 | suburbanmarine |
2ae735f7b9468ae041edbcff5d618e99b1ad59e3 | 2,178 | hpp | C++ | Simulator/Dart/Valkyrie/ValkyrieWorldNode.hpp | stevenjj/PnC | e1e417dbd507f174bb2661247cb4360b6ee0ada7 | [
"MIT"
] | 1 | 2020-05-04T22:36:54.000Z | 2020-05-04T22:36:54.000Z | Simulator/Dart/Valkyrie/ValkyrieWorldNode.hpp | stevenjj/PnC | e1e417dbd507f174bb2661247cb4360b6ee0ada7 | [
"MIT"
] | null | null | null | Simulator/Dart/Valkyrie/ValkyrieWorldNode.hpp | stevenjj/PnC | e1e417dbd507f174bb2661247cb4360b6ee0ada7 | [
"MIT"
] | null | null | null | #pragma once
#include <Eigen/Dense>
#include <dart/dart.hpp>
#include <dart/gui/GLFuncs.hpp>
#include <dart/gui/osg/osg.hpp>
class EnvInterface;
class ValkyrieSensorData;
class ValkyrieCommand;
class ValkyrieWorldNode : public dart::gui::osg::WorldNode {
private:
void GetContactSwitchData_(bool& rfoot_contact... | 25.325581 | 73 | 0.672635 | stevenjj |
2ae9f76da7f3354e92aba207a388d76d869fffec | 4,061 | cpp | C++ | gpu_buf.cpp | DinosaurBlanket/BlueGreenWaves | c22ca3d5137a2aefb79fc6acf67bd39a8b62af08 | [
"MIT"
] | null | null | null | gpu_buf.cpp | DinosaurBlanket/BlueGreenWaves | c22ca3d5137a2aefb79fc6acf67bd39a8b62af08 | [
"MIT"
] | null | null | null | gpu_buf.cpp | DinosaurBlanket/BlueGreenWaves | c22ca3d5137a2aefb79fc6acf67bd39a8b62af08 | [
"MIT"
] | null | null | null |
#include <CL/cl.h>
#include "shared_all.hpp"
#include "shared_gpu.hpp"
using namespace std;
int main(int argc, char* argv[]) {
cout << "\n" << __FILE__ << endl;
cl_int status = CL_SUCCESS;
const cl_uint maxDevices = 8;
cl_device_id computeDevices[maxDevices];
cl_context context = NULL;
cl_command_que... | 32.488 | 76 | 0.629648 | DinosaurBlanket |
2aecf4895604183844f2a723ab7c793412f81cce | 18,078 | cc | C++ | voxblox_ros/src/simulation_eval.cc | mfehr/voxblox | 1cf538e6713c0b8a33d11bbdf7cf6b8768f99669 | [
"BSD-3-Clause"
] | null | null | null | voxblox_ros/src/simulation_eval.cc | mfehr/voxblox | 1cf538e6713c0b8a33d11bbdf7cf6b8768f99669 | [
"BSD-3-Clause"
] | 4 | 2017-05-05T13:19:34.000Z | 2018-10-15T15:04:43.000Z | voxblox_ros/src/simulation_eval.cc | mfehr/voxblox | 1cf538e6713c0b8a33d11bbdf7cf6b8768f99669 | [
"BSD-3-Clause"
] | 1 | 2019-12-26T08:10:38.000Z | 2019-12-26T08:10:38.000Z | #include <ros/ros.h>
#include <voxblox/simulation/simulation_world.h>
#include <voxblox/mesh/mesh_integrator.h>
#include <voxblox/integrator/esdf_integrator.h>
#include <voxblox/integrator/tsdf_integrator.h>
#include <voxblox/integrator/occupancy_integrator.h>
#include <voxblox/integrator/esdf_occ_integrator.h>
#incl... | 34.5 | 80 | 0.691503 | mfehr |
2aef361afb682a10a588fd5d16764f9d3613f579 | 315 | cpp | C++ | signtest.cpp | https-github-com-fandfproject/OOP | fd40d9ecbd076ccdab7571734cbd07d66b0ac5fe | [
"Apache-2.0"
] | null | null | null | signtest.cpp | https-github-com-fandfproject/OOP | fd40d9ecbd076ccdab7571734cbd07d66b0ac5fe | [
"Apache-2.0"
] | null | null | null | signtest.cpp | https-github-com-fandfproject/OOP | fd40d9ecbd076ccdab7571734cbd07d66b0ac5fe | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int signedVar= 1500000000;
unsigned int unsignVar = 1500000000;
signedVar = (signedVar * 2)/3;
unsignVar = (unsignVar * 2)/3;
cout<<"signedVar = "<<signedVar<<endl;
cout<<"unsigVar = "<<unsignVar<<endl;
return 0;
} | 19.6875 | 43 | 0.6 | https-github-com-fandfproject |
2af10bfeea037d2fb33c2f05b437b10ba1e76ed8 | 13,255 | hpp | C++ | test/libv_reporter.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 2 | 2018-04-11T03:07:03.000Z | 2019-03-29T15:24:12.000Z | test/libv_reporter.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | null | null | null | test/libv_reporter.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 1 | 2021-06-13T06:39:06.000Z | 2021-06-13T06:39:06.000Z | // Project: libv, File: test/libv_reporter.hpp, Author: Császár Mátyás [Vader]
#pragma once
// ext
#include <fmt/format.h>
// libv
#include <libv/algo/slice.hpp>
// std
#include <string_view>
#include <unordered_set>
// pro
#include <catch/catch.hpp>
// NOTE: This file is a mess. Its a test driver; No time, don't c... | 31.188235 | 125 | 0.663674 | cpplibv |
2af307b5f802ac746195b04bc66bfdf08b3df162 | 2,577 | cpp | C++ | framework/tarscpp/unittest/testcode/source/testcase/LoggerTest.cpp | hfcrwx/Tars-v2.4.20 | b0782b3fad556582470cddaa4416874126bd105c | [
"BSD-3-Clause"
] | null | null | null | framework/tarscpp/unittest/testcode/source/testcase/LoggerTest.cpp | hfcrwx/Tars-v2.4.20 | b0782b3fad556582470cddaa4416874126bd105c | [
"BSD-3-Clause"
] | null | null | null | framework/tarscpp/unittest/testcode/source/testcase/LoggerTest.cpp | hfcrwx/Tars-v2.4.20 | b0782b3fad556582470cddaa4416874126bd105c | [
"BSD-3-Clause"
] | null | null | null | /**
* Tencent is pleased to support the open source community by making Tars
* available.
*
* Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this
* file except in compliance with the License. You may obtain a... | 25.77 | 80 | 0.597982 | hfcrwx |
2af6a046b29676127efe8d5297b2bb34ffb3e23b | 6,951 | cpp | C++ | aplcore/src/graphic/graphicbuilder.cpp | DamianMehers/apl-core-library | 9c003dbfc8bc90709396c07179c523473d380db1 | [
"Apache-2.0"
] | 28 | 2019-11-05T12:23:01.000Z | 2022-03-22T10:01:53.000Z | aplcore/src/graphic/graphicbuilder.cpp | DamianMehers/apl-core-library | 9c003dbfc8bc90709396c07179c523473d380db1 | [
"Apache-2.0"
] | 7 | 2020-03-28T12:44:08.000Z | 2022-01-23T17:02:27.000Z | aplcore/src/graphic/graphicbuilder.cpp | DamianMehers/apl-core-library | 9c003dbfc8bc90709396c07179c523473d380db1 | [
"Apache-2.0"
] | 15 | 2019-12-25T10:15:52.000Z | 2021-12-30T03:50:00.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" ... | 34.929648 | 115 | 0.658323 | DamianMehers |
2af6f1982ca06dba1a0a602966ca4ac27986f2c7 | 4,535 | cpp | C++ | codecs/heif.cpp | mattvchandler/asciiart | 65eeb38aa42b98d49ce15bb2cc3a98950edb18cc | [
"MIT"
] | 5 | 2020-06-02T18:05:43.000Z | 2022-02-19T10:44:47.000Z | codecs/heif.cpp | mattvchandler/asciiart | 65eeb38aa42b98d49ce15bb2cc3a98950edb18cc | [
"MIT"
] | null | null | null | codecs/heif.cpp | mattvchandler/asciiart | 65eeb38aa42b98d49ce15bb2cc3a98950edb18cc | [
"MIT"
] | 1 | 2021-11-29T15:32:54.000Z | 2021-11-29T15:32:54.000Z | #include "heif.hpp"
#include <libheif/heif_cxx.h>
#ifdef EXIF_FOUND
#include "exif.hpp"
#endif
Heif::Heif(std::istream & input)
{
auto data = Image::read_input_to_memory(input);
heif::Context context;
try
{
context.read_from_memory_without_copy(std::data(data), std::size(data));
auto... | 36.869919 | 183 | 0.535832 | mattvchandler |
2afe9d15f1490d5e91ad4fe2f5358c5b3639c5b4 | 1,419 | hpp | C++ | include/dll/util/random.hpp | ongbe/dll | 1f451eae2c020dbd8ac17e76e7befc5079210051 | [
"MIT"
] | 1 | 2020-02-19T13:13:09.000Z | 2020-02-19T13:13:09.000Z | include/dll/util/random.hpp | ongbe/dll | 1f451eae2c020dbd8ac17e76e7befc5079210051 | [
"MIT"
] | null | null | null | include/dll/util/random.hpp | ongbe/dll | 1f451eae2c020dbd8ac17e76e7befc5079210051 | [
"MIT"
] | 1 | 2020-02-27T03:42:24.000Z | 2020-02-27T03:42:24.000Z | //=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | 21.5 | 73 | 0.611698 | ongbe |
63013cf833879e720e3c58ec40f4698c47f1c008 | 1,914 | cpp | C++ | 01/part2.cpp | lukmi15/Advent-Of-Code-2021 | f9da7064c87b357ea37e1a22b2a90095ef7c47d8 | [
"Unlicense"
] | null | null | null | 01/part2.cpp | lukmi15/Advent-Of-Code-2021 | f9da7064c87b357ea37e1a22b2a90095ef7c47d8 | [
"Unlicense"
] | null | null | null | 01/part2.cpp | lukmi15/Advent-Of-Code-2021 | f9da7064c87b357ea37e1a22b2a90095ef7c47d8 | [
"Unlicense"
] | null | null | null | /*Advent of Code 2021, day 1, part 2
Author(s) : Lukas Mirow
Date of creation : 12/1/2021
*/
//#define DEBUG
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(int argc, char **argv)
{
unsigned res = 0; //Final result
int last_measurements[4]; //We only need to memorize the last ... | 40.723404 | 195 | 0.656217 | lukmi15 |
630ada53866045788342fafa9aabaa3cf85b6516 | 418 | cc | C++ | src/bgm_strategy_random.cc | michaelkkli/bilgamesh | f3b708d90840f3d21cff1d3e3b93a980ee2c0e82 | [
"BSD-3-Clause"
] | null | null | null | src/bgm_strategy_random.cc | michaelkkli/bilgamesh | f3b708d90840f3d21cff1d3e3b93a980ee2c0e82 | [
"BSD-3-Clause"
] | null | null | null | src/bgm_strategy_random.cc | michaelkkli/bilgamesh | f3b708d90840f3d21cff1d3e3b93a980ee2c0e82 | [
"BSD-3-Clause"
] | null | null | null | #include "bilgamesh_internal.hh"
#include <cmath>
#include <cstdlib>
template <class T>
_bgm_action<T>
_bgm_strategy_random<T>::operator () (const _bgm_board<T>& board, const std::vector<_bgm_action<T>>& in)
{
size_t n = in.size ();
if (0 == n) {
return _bgm_action<T> ();
}
int tmp = (int)std::round((do... | 19 | 104 | 0.667464 | michaelkkli |
deb88196bbd87685b9b64b26b3f65970c7a82ae5 | 1,611 | cpp | C++ | Official Windows Platform Sample/Windows Phone 8.1 samples/[C++]-Windows Phone 8.1 samples/HttpClient sample/C++/Shared/SampleConfiguration.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | Official Windows Platform Sample/Windows Phone 8.1 samples/[C++]-Windows Phone 8.1 samples/HttpClient sample/C++/Shared/SampleConfiguration.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Official Windows Platform Sample/Windows Phone 8.1 samples/[C++]-Windows Phone 8.1 samples/HttpClient sample/C++/Shared/SampleConfiguration.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2015-12-25T11:15:10.000Z | 2015-12-25T11:15:10.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... | 46.028571 | 110 | 0.664184 | zzgchina888 |
deb9b7d3b04716d9f89ae76c051aeda2fdd40202 | 39,024 | cc | C++ | apf/apfNedelec.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 138 | 2015-01-05T15:50:20.000Z | 2022-02-25T01:09:58.000Z | apf/apfNedelec.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 337 | 2015-08-07T18:24:58.000Z | 2022-03-31T14:39:03.000Z | apf/apfNedelec.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 70 | 2015-01-17T00:58:41.000Z | 2022-02-13T04:58:20.000Z | /*
* Copyright 2011 Scientific Computation Research Center
*
* This work is open source software, licensed under the terms of the
* BSD license as described in the LICENSE file in the top-level directory.
*/
#include "apfShape.h"
#include "apfMesh.h"
#include "apfFieldOf.h"
#include "apfElement.h"
#include "apfVe... | 31.269231 | 85 | 0.490083 | Thomas-Ulrich |
debe8cff544f06e089eac33ba060f47c78bfdb76 | 974 | cpp | C++ | History.cpp | anirudhdayal/snakepit | 8f0f9c21e27aa3d7b0c2afddcb5536d59c7b4ddd | [
"Unlicense"
] | null | null | null | History.cpp | anirudhdayal/snakepit | 8f0f9c21e27aa3d7b0c2afddcb5536d59c7b4ddd | [
"Unlicense"
] | null | null | null | History.cpp | anirudhdayal/snakepit | 8f0f9c21e27aa3d7b0c2afddcb5536d59c7b4ddd | [
"Unlicense"
] | null | null | null | //
// History.cpp
// Project_One
//
// Created by Anirudh Dayal on 1/10/15.
// Copyright (c) 2015 CS 31. All rights reserved.
//
#include "History.h"
#include "globals.h"
#include "Pit.h"
History::History(int nRows, int nCols)
{
m_r = nRows;
m_c = nCols;
for (int x = 1; x <= m_r; x++)
{
for... | 18.037037 | 53 | 0.428131 | anirudhdayal |
dec1d3dfe9f0f543b536e48080605e91fe2c3fc5 | 386 | cpp | C++ | graph-source-code/520-B/12285544.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/520-B/12285544.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/520-B/12285544.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <iostream>
#include <vector>
#define MAX 33333
using namespace std;
bool b[MAX];
int main()
{
int n, m;
cin >> n >> m;
int cnt = 0;
while (m > n)
{
if (m % 2 == 0)
m /= 2;
else
m++;
cnt++;
}
cnt += n-m;
co... | 12.866667 | 31 | 0.38342 | AmrARaouf |
dec5357f0df3bc74d793be291603c7cde277a6ee | 360 | cpp | C++ | 2019/cpp/day_5.cpp | rmottus/advent-of-code | 6b803ed61867125375028ce8943c919b1d8ae365 | [
"MIT"
] | null | null | null | 2019/cpp/day_5.cpp | rmottus/advent-of-code | 6b803ed61867125375028ce8943c919b1d8ae365 | [
"MIT"
] | null | null | null | 2019/cpp/day_5.cpp | rmottus/advent-of-code | 6b803ed61867125375028ce8943c919b1d8ae365 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include "intcode.h"
#include "utils.h"
int main() {
std::vector<int> program = load_program_from_cin();
IntCode computer(program);
computer.push_input(5);
computer.execute();
while (computer.has_output()) {
std::cout << "The program output: " << com... | 21.176471 | 82 | 0.638889 | rmottus |
dec58cdbcb3ee230bace2c209f5698979d4b0187 | 279 | hpp | C++ | GLFramework/Base/Time.hpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 39 | 2016-03-23T00:39:46.000Z | 2022-02-07T21:26:05.000Z | GLFramework/Base/Time.hpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 1 | 2016-03-24T14:39:45.000Z | 2016-03-24T17:34:39.000Z | GLFramework/Base/Time.hpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 3 | 2016-08-15T01:27:13.000Z | 2021-12-29T01:37:51.000Z | #pragma once
#include <chrono>
class Time
{
public:
Time();
~Time();
void Start();
void Update();
float GetTime();
float DeltaTime();
float FPS();
private:
std::chrono::steady_clock::time_point begin;
std::chrono::steady_clock::time_point last;
float m_DeltaTime;
};
| 13.95 | 45 | 0.691756 | Illation |
dec829a5727f333ab02022ed87d10fc90bae8f1a | 2,420 | cpp | C++ | Kernel/Drivers/Graphics/BochVBE.cpp | Plunkerusr/WisteriaOS | 14f853cb8fdd6b958dd94ab24e5f19ac0268a4f6 | [
"MIT"
] | 2 | 2020-09-30T08:32:01.000Z | 2020-10-22T15:38:58.000Z | Kernel/Drivers/Graphics/BochVBE.cpp | Plunkerusr/WisteriaOS | 14f853cb8fdd6b958dd94ab24e5f19ac0268a4f6 | [
"MIT"
] | null | null | null | Kernel/Drivers/Graphics/BochVBE.cpp | Plunkerusr/WisteriaOS | 14f853cb8fdd6b958dd94ab24e5f19ac0268a4f6 | [
"MIT"
] | null | null | null | #include "BochVBE.hpp"
#include <Drivers/Base/CharacterDevice.hpp>
#include <Drivers/Base/DriverEntity.hpp>
#include <Hardware/Port.hpp>
#include <Libkernel/Assert.hpp>
#include <Libkernel/Logger.hpp>
#include <Memory/pmm.hpp>
#include <Memory/vmm.hpp>
#include <Tasking/Scheduler.hpp>
#include <Macaronlib/ABI/Syscall... | 28.139535 | 139 | 0.71281 | Plunkerusr |
dec9ada5fd53a64480b6a2ea156df5cae4486128 | 1,148 | cpp | C++ | LeetCode/DynamicProgramming/LongestIncreasingSubsequence_w.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 3 | 2021-07-26T15:58:45.000Z | 2021-09-08T14:55:11.000Z | LeetCode/DynamicProgramming/LongestIncreasingSubsequence_w.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | null | null | null | LeetCode/DynamicProgramming/LongestIncreasingSubsequence_w.cpp | a4org/Angorithm4 | d2227d36608491bed270375bcea67fbde134209a | [
"MIT"
] | 2 | 2021-05-31T11:27:59.000Z | 2021-10-03T13:26:00.000Z | /*
* LeetCode 300 Longest Increasing Subsequence
* Medium
* Jiawei Wang
* 2021 9.8
*/
/* Revision
* $1 2022.1.3 Jiawei Wang
*/
#include <vector>
using namespace::std;
class Solution {
public:
// #1 DP
// DP Basic II
// O(n^2)
int lengthOfLIS(vector<int>& nums) {
int n = nums.size();
vector<... | 19.793103 | 69 | 0.554878 | a4org |
dece1f7bb49060d96e7e0698d805352373276b42 | 12,160 | cpp | C++ | Solver/Cross.cpp | senumo88/cubikSolver | 6b0d6e6c562b4c95c5a77a20784c95ec3c625224 | [
"MIT"
] | 17 | 2017-01-23T09:53:13.000Z | 2020-04-08T17:02:36.000Z | Solver/Cross.cpp | senumo88/cubikSolver | 6b0d6e6c562b4c95c5a77a20784c95ec3c625224 | [
"MIT"
] | 8 | 2017-01-20T20:59:10.000Z | 2018-02-13T16:37:50.000Z | Solver/Cross.cpp | senumo88/cubikSolver | 6b0d6e6c562b4c95c5a77a20784c95ec3c625224 | [
"MIT"
] | 2 | 2018-02-13T16:32:48.000Z | 2021-04-21T04:11:54.000Z | #include "Cross.hpp"
#include "Cube.hpp"
#include <iostream>
void Cross::solveCross(Cube &cube) {
while (checkCross(cube)) {
solveEdge(cube);
}
}
int Cross::checkCross(Cube &cube) { //must check if in correct position as well
if (!cube.cubies[1][0] && !cube.cubies[3][0] && !cube.cubies[5][0] && !cube.cubies... | 29.514563 | 197 | 0.314145 | senumo88 |
decfbeba5550de8eeccac4582f453cf5ce26671d | 189 | cpp | C++ | BitMagic/PowerOf2.cpp | SagarMedtiya/DSA-in-c- | eae528d97bdbbb2d3e5ecd3e91be346503d0c8af | [
"MIT"
] | 1 | 2021-07-16T14:38:51.000Z | 2021-07-16T14:38:51.000Z | BitMagic/PowerOf2.cpp | SagarMedtiya/DSA-in-c- | eae528d97bdbbb2d3e5ecd3e91be346503d0c8af | [
"MIT"
] | null | null | null | BitMagic/PowerOf2.cpp | SagarMedtiya/DSA-in-c- | eae528d97bdbbb2d3e5ecd3e91be346503d0c8af | [
"MIT"
] | 1 | 2021-07-16T14:34:59.000Z | 2021-07-16T14:34:59.000Z | #include<bits/stdc++.h>
using namespace std;
bool powerof2(int n){
if(n==0){
return false;
}
return ((n&(n-1)) == 0);
}
int main(){
int a;
cin>>a;
cout<<powerof2(a);
return 0;
} | 12.6 | 27 | 0.57672 | SagarMedtiya |
ded097a2e8f67a778457e79d39f376d0f8a7576c | 1,101 | hpp | C++ | src/fla/AutocorrelationFLA.hpp | lucasmpavelski/Adaptive-IG | cf48ffae80597a6fd1738da6b4871fe98a3b5189 | [
"Unlicense"
] | null | null | null | src/fla/AutocorrelationFLA.hpp | lucasmpavelski/Adaptive-IG | cf48ffae80597a6fd1738da6b4871fe98a3b5189 | [
"Unlicense"
] | null | null | null | src/fla/AutocorrelationFLA.hpp | lucasmpavelski/Adaptive-IG | cf48ffae80597a6fd1738da6b4871fe98a3b5189 | [
"Unlicense"
] | null | null | null | #pragma once
#include <algorithm>
#include <iterator>
#include "fla/FitnessHistoryFLA.hpp"
template <class EOT>
class AutocorrelationFLA : public FitnessHistoryFLA<EOT> {
int delay;
public:
AutocorrelationFLA(const FitnessHistory<EOT>& fitnessHistory, int delay = 1)
: FitnessHistoryFLA<EOT>{fitnessHistor... | 29.756757 | 78 | 0.625795 | lucasmpavelski |
dedd6b8cdce8e3a3357754dc9eca02e35a0054b0 | 10,366 | cpp | C++ | plll/src/lattices/enumimpl-updater.cpp | KudrinMatvey/myfplll | 99fa018201097b6c078c00721cdc409cdcd4092c | [
"MIT"
] | null | null | null | plll/src/lattices/enumimpl-updater.cpp | KudrinMatvey/myfplll | 99fa018201097b6c078c00721cdc409cdcd4092c | [
"MIT"
] | null | null | null | plll/src/lattices/enumimpl-updater.cpp | KudrinMatvey/myfplll | 99fa018201097b6c078c00721cdc409cdcd4092c | [
"MIT"
] | null | null | null | /*
Copyright (c) 2011-2014 University of Zurich
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... | 49.836538 | 170 | 0.550839 | KudrinMatvey |
dee58abda77e16a472aead005ce2c377f09a6307 | 167 | cpp | C++ | C++/Classes/Warrior.cpp | Phansa/HearthstoneBasicPowerSimulator | 7a4c9a2369c8431fc9b497dfe1848ade71057eb6 | [
"MIT"
] | null | null | null | C++/Classes/Warrior.cpp | Phansa/HearthstoneBasicPowerSimulator | 7a4c9a2369c8431fc9b497dfe1848ade71057eb6 | [
"MIT"
] | null | null | null | C++/Classes/Warrior.cpp | Phansa/HearthstoneBasicPowerSimulator | 7a4c9a2369c8431fc9b497dfe1848ade71057eb6 | [
"MIT"
] | null | null | null | #ifndef CLASS
#define CLASS
#include "Class.h"
#endif
#ifndef WARRIOR
#define WARRIOR
#include "Warrior.h"
#endif
void Warrior::power()
{
armor += 2;
}
| 11.928571 | 22 | 0.646707 | Phansa |
dee7661c1cfca221a1dd062e2d4569c9d2d87776 | 25,290 | cc | C++ | moui/widgets/table_view.cc | ollix/moui | 4a931aa15fac42b308baae170a855c2d78f9ee9f | [
"Apache-2.0"
] | 59 | 2015-01-23T01:02:50.000Z | 2021-11-26T00:01:45.000Z | moui/widgets/table_view.cc | ollix/moui | 4a931aa15fac42b308baae170a855c2d78f9ee9f | [
"Apache-2.0"
] | 2 | 2017-05-26T15:26:24.000Z | 2020-09-25T03:54:01.000Z | moui/widgets/table_view.cc | ollix/moui | 4a931aa15fac42b308baae170a855c2d78f9ee9f | [
"Apache-2.0"
] | 7 | 2015-09-25T08:09:20.000Z | 2019-11-24T15:24:28.000Z | // Copyright (c) 2016 Ollix. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 33.145478 | 79 | 0.691064 | ollix |
def5a894bf8894c39c22c2d736a7db1384978e9d | 164 | cpp | C++ | 14b.cpp | Nanas0100/AOJ | ef5f6964dca65d9f4d5efea449cc7891d710f700 | [
"MIT"
] | null | null | null | 14b.cpp | Nanas0100/AOJ | ef5f6964dca65d9f4d5efea449cc7891d710f700 | [
"MIT"
] | null | null | null | 14b.cpp | Nanas0100/AOJ | ef5f6964dca65d9f4d5efea449cc7891d710f700 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
double r;
double pi=3.141592653589793;
cin >> r;
printf("%.6f %.6f\n", pi*r*r,2*pi*r);
return 0;
}
| 13.666667 | 39 | 0.609756 | Nanas0100 |
def71f8b499fbaae30fc2dbc6cc2b28ceb58bc26 | 61 | cpp | C++ | Code/EditorPlugins/Fileserve/EditorPluginFileserve/EditorPluginFileserve.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 703 | 2015-03-07T15:30:40.000Z | 2022-03-30T00:12:40.000Z | Code/EditorPlugins/Fileserve/EditorPluginFileserve/EditorPluginFileserve.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 233 | 2015-01-11T16:54:32.000Z | 2022-03-19T18:00:47.000Z | Code/EditorPlugins/Fileserve/EditorPluginFileserve/EditorPluginFileserve.cpp | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 101 | 2016-10-28T14:05:10.000Z | 2022-03-30T19:00:59.000Z | #include <EditorPluginFileserve/EditorPluginFileservePCH.h>
| 20.333333 | 59 | 0.868852 | Tekh-ops |
def7950728245cad833f7dd585515c619fdbb53c | 765 | cpp | C++ | src/main/Game/GameMaster/GameSync.cpp | mak1a/SivComponent | 1043cde67a5dc14f2d4e0128aecfee7f54ed7002 | [
"MIT"
] | 1 | 2021-01-24T08:55:59.000Z | 2021-01-24T08:55:59.000Z | src/main/Game/GameMaster/GameSync.cpp | mak1a/SivComponent | 1043cde67a5dc14f2d4e0128aecfee7f54ed7002 | [
"MIT"
] | 2 | 2021-01-24T06:12:12.000Z | 2021-01-24T14:37:10.000Z | src/main/Game/GameMaster/GameSync.cpp | mak1a/SivComponent | 1043cde67a5dc14f2d4e0128aecfee7f54ed7002 | [
"MIT"
] | null | null | null | #include "../../../PhotonComponent/NetworkSystem.hpp"
#include "GameSync.hpp"
void SendDefeatSignal()
{
auto network = ComponentEngine::Photon::NetworkSystem::GetInstance();
ExitGames::Common::Dictionary<nByte, int> dic;
dic.put(DataName::GameSync::Result, static_cast<int>(DataName::GameSync::R... | 31.875 | 100 | 0.708497 | mak1a |
def7ae953bf13317b7b690c2e246a470cb8c0919 | 148 | cpp | C++ | 20200503_ABC166/template.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20200503_ABC166/template.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | 20200503_ABC166/template.cpp | miyalab/AtCoder | a57c8a6195463a9a8edd1c3ddd36cc56f145c60d | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
} | 13.454545 | 32 | 0.682432 | miyalab |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.