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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a96e717bc6342b06ddcd2e15d261b9734d8bd62 | 46 | cpp | C++ | BasicRenderer/source/Ray.cpp | giuliom/BasicRenderer | 27a1e3eac437d8ae39fc973b1f6550f59d00dcee | [
"Apache-2.0"
] | 4 | 2017-09-02T13:02:56.000Z | 2020-01-23T17:36:22.000Z | BasicRenderer/source/Ray.cpp | giuliom/BasicRenderer | 27a1e3eac437d8ae39fc973b1f6550f59d00dcee | [
"Apache-2.0"
] | null | null | null | BasicRenderer/source/Ray.cpp | giuliom/BasicRenderer | 27a1e3eac437d8ae39fc973b1f6550f59d00dcee | [
"Apache-2.0"
] | null | null | null | #include "Ray.h"
namespace BasicRenderer
{
} | 7.666667 | 23 | 0.717391 | giuliom |
6a978e78521db6a86d7f95e529b16cd8a59d0618 | 662 | cpp | C++ | ch09/ex9_16.cpp | regconfi/Cpp-Primer | 6e59f24f4c7f3be4f679b7d29084d9d859a463d9 | [
"CC0-1.0"
] | 46 | 2015-07-07T11:13:12.000Z | 2022-03-27T10:20:54.000Z | ch09/ex9_16.cpp | lafener/Cpp-Primer | 8cf1568f2d27622bce2d41493158f58527e5072f | [
"CC0-1.0"
] | 11 | 2015-03-10T12:52:06.000Z | 2015-04-20T12:24:00.000Z | ch09/ex9_16.cpp | lafener/Cpp-Primer | 8cf1568f2d27622bce2d41493158f58527e5072f | [
"CC0-1.0"
] | 65 | 2015-07-01T14:15:48.000Z | 2021-04-10T08:44:19.000Z | //
// ex9_16.cpp
// Exercise 9.16
//
// Created by pezy on 12/2/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
// @Brief Repeat the previous program, but compare elements in a
// list<int> to a vector<int>.
#include <iostream>
#include <vector>
#include <list>
int main()
{
std::list<int> v... | 23.642857 | 88 | 0.554381 | regconfi |
6a99f71f951215aa99e784d654553d1b813cb680 | 1,127 | cpp | C++ | src/homework/tic_tac_toe/tic_tac_toe_data.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-jdudley390 | e26f768b1b47a4b94815d9913c2b79603c34185c | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/tic_tac_toe_data.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-jdudley390 | e26f768b1b47a4b94815d9913c2b79603c34185c | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/tic_tac_toe_data.cpp | acc-cosc-1337-spring-2020-hl/acc-cosc-1337-spring-2020-jdudley390 | e26f768b1b47a4b94815d9913c2b79603c34185c | [
"MIT"
] | null | null | null | #include "tic_tac_toe_data.h"
//cpp
void TicTacToeData::save_games(const std::vector<std::unique_ptr<TicTacToe>>& games)
{
std::ofstream game_file;
game_file.open("game_results.txt");
for (auto& game : games)
{
for (auto& peg : game->get_pegs())
{
game_file << peg;
}
game_file << game->get_winner() <<... | 19.77193 | 85 | 0.621118 | acc-cosc-1337-spring-2020-hl |
6a9db54c7cfa40f843761099ca230ac8b36115b3 | 6,575 | cpp | C++ | src/iniconfig.cpp | merelabs/mere-config-lite | 9f64538eba0f4e9b50f540f59a7be99b6653d252 | [
"BSD-2-Clause"
] | null | null | null | src/iniconfig.cpp | merelabs/mere-config-lite | 9f64538eba0f4e9b50f540f59a7be99b6653d252 | [
"BSD-2-Clause"
] | null | null | null | src/iniconfig.cpp | merelabs/mere-config-lite | 9f64538eba0f4e9b50f540f59a7be99b6653d252 | [
"BSD-2-Clause"
] | null | null | null | #include "iniconfig.h"
#include "parser/iniparser.h"
Mere::Config::IniConfig::IniConfig(const std::string &path)
: CrossConfig(path, ".ini"),
m_config(path)
{
m_config.group()->pattern("^\\[\\w+(\\s+\\w+)*(\\/\\w+(\\s+\\w+)*)*\\]$");
}
std::string Mere::Config::IniConfig::get(const std::string &fqkp, bo... | 23.233216 | 121 | 0.62403 | merelabs |
6aa1acc959c75402f9294ce1a38715d0403fd26f | 285 | cpp | C++ | tests/ArrayParamCalcTests.cpp | jon-smith/obelisk | 44d86fb6c3dfef61c07ae8bd1ea891e08483af88 | [
"WTFPL"
] | null | null | null | tests/ArrayParamCalcTests.cpp | jon-smith/obelisk | 44d86fb6c3dfef61c07ae8bd1ea891e08483af88 | [
"WTFPL"
] | null | null | null | tests/ArrayParamCalcTests.cpp | jon-smith/obelisk | 44d86fb6c3dfef61c07ae8bd1ea891e08483af88 | [
"WTFPL"
] | null | null | null | #include "catch.hpp"
#include "obelisk/ArrayParamCalc.hpp"
using namespace obelisk;
TEST_CASE("FindMinMaxTest")
{
std::vector<int> const values = {2, 1, 4, 3};
const auto [min, max] = findMinAndMax(std::begin(values), std::end(values));
REQUIRE(min == 1);
REQUIRE(max == 4);
}
| 19 | 77 | 0.677193 | jon-smith |
6aa2aa8fd6c50031dd51dd31f1ed6eea8dceb71c | 144 | cpp | C++ | contest/AtCoder/abc120/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc120/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc120/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "math.hpp"
#include "math/prime.hpp"
int main() {
int a(in), b(in), k(in);
cout << divisor(gcd(a, b)).reverse()[k - 1] << endl;
}
| 18 | 54 | 0.5625 | not522 |
6aa87df86196d0727d5a83f2e36d5ac7c5e29092 | 11,704 | cpp | C++ | AVQt/filter/DecoderVAAPI.cpp | sdcieo0330/LibAVQt | ee470728e542385eb5176171e759c68e26e07e8b | [
"MIT"
] | 2 | 2021-04-01T09:32:43.000Z | 2022-03-03T20:39:15.000Z | AVQt/filter/DecoderVAAPI.cpp | sdcieo0330/LibAVQt | ee470728e542385eb5176171e759c68e26e07e8b | [
"MIT"
] | null | null | null | AVQt/filter/DecoderVAAPI.cpp | sdcieo0330/LibAVQt | ee470728e542385eb5176171e759c68e26e07e8b | [
"MIT"
] | null | null | null | //
// Created by silas on 3/1/21.
//
#include "private/DecoderVAAPI_p.h"
#include "DecoderVAAPI.h"
#include "output/IFrameSink.h"
#include "output/IAudioSink.h"
#include "input/IPacketSource.h"
#include <QApplication>
#include <QImage>
//#include <QtConcurrent>
//#ifndef DOXYGEN_SHOULD_SKIP_THIS
//#define NOW() std:... | 35.466667 | 148 | 0.489234 | sdcieo0330 |
6aa8cf14f2f52c168e96038d5131597625f48f16 | 2,427 | hh | C++ | nox/src/nox/static-deployer.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/nox/static-deployer.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/nox/static-deployer.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | /* Copyright 2008 (C) Nicira, Inc.
*
* This file is part of NOX.
*
* NOX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* N... | 31.115385 | 71 | 0.668727 | ayjazz |
6aaf69fc3d36d6bb1a5bf4cb8d7e41d86dbb594f | 1,234 | hpp | C++ | Vision/ObjectRecognition/include/object_recognition_action_server.hpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | null | null | null | Vision/ObjectRecognition/include/object_recognition_action_server.hpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | null | null | null | Vision/ObjectRecognition/include/object_recognition_action_server.hpp | cxdcxd/sepanta3 | a65a3415f046631ac4d6b91f9342966b0c030226 | [
"MIT"
] | null | null | null | #ifndef _OBJECT_RECOGNITION_ACTION_HPP
#define _OBJECT_RECOGNITION_ACTION_HPP
#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/CameraInfo.h>
#include <sepanta_msgs/LookForObjectsAction.h>
#include <actionlib/server/simple_action_server.h>
#include <messa... | 33.351351 | 132 | 0.816045 | cxdcxd |
6ab4543fabadbe6e9ad02f2ac4ba530c35f2e2fd | 6,653 | cpp | C++ | mcrouter/lib/carbon/example/main.cpp | uubk/mcrouter | c2c8d045e773f23847112c06962748e45afdf6f0 | [
"MIT"
] | null | null | null | mcrouter/lib/carbon/example/main.cpp | uubk/mcrouter | c2c8d045e773f23847112c06962748e45afdf6f0 | [
"MIT"
] | null | null | null | mcrouter/lib/carbon/example/main.cpp | uubk/mcrouter | c2c8d045e773f23847112c06962748e45afdf6f0 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
#include <chrono>
#include <folly/fibers/FiberManagerMap.h>
#include <folly/init/Init.h>
#include <folly/io/async/EventBase.h>
#inc... | 26.400794 | 80 | 0.641966 | uubk |
6ab48fb3756c520d811f319913b06042d464aae8 | 4,709 | hh | C++ | src/gaussian_voom.hh | YPARK/fqtl | a1ced54a2b18f8ee66f39c62304c48f5522f7682 | [
"MIT"
] | 4 | 2017-06-15T12:05:02.000Z | 2017-11-16T11:11:45.000Z | src/gaussian_voom.hh | YPARK/fqtl | a1ced54a2b18f8ee66f39c62304c48f5522f7682 | [
"MIT"
] | 1 | 2022-02-22T16:41:36.000Z | 2022-02-22T16:41:36.000Z | src/gaussian_voom.hh | YPARK/fqtl | a1ced54a2b18f8ee66f39c62304c48f5522f7682 | [
"MIT"
] | null | null | null | #ifndef GAUSSIAN_VOOM_MODEL_HH_
#define GAUSSIAN_VOOM_MODEL_HH_
////////////////////////////////////////////////////////////////
// E[Y] = eta_mean
// V[Y] = exp(-eta_mean) + g(eta_var)
////////////////////////////////////////////////////////////////
template <typename T>
struct gaussian_voom_model_t {
using Scalar ... | 28.539394 | 79 | 0.629433 | YPARK |
6ab768a5a49e7f457e77f62807c90eeef48cb6e8 | 5,233 | cpp | C++ | 1._.DistributedProgramming/3/4.DynamicTasks.cpp | mihaighidoveanu/machine-learning-examples | e5a7ab71e52ae2809115eb7d7c943b46ebf394f3 | [
"MIT"
] | null | null | null | 1._.DistributedProgramming/3/4.DynamicTasks.cpp | mihaighidoveanu/machine-learning-examples | e5a7ab71e52ae2809115eb7d7c943b46ebf394f3 | [
"MIT"
] | null | null | null | 1._.DistributedProgramming/3/4.DynamicTasks.cpp | mihaighidoveanu/machine-learning-examples | e5a7ab71e52ae2809115eb7d7c943b46ebf394f3 | [
"MIT"
] | 1 | 2021-05-02T13:12:21.000Z | 2021-05-02T13:12:21.000Z | // Dynamic parallelism version
// Master is sending tasks when slaves are idle
#include <mpi.h>
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <iostream>
using namespace std;
#pragma comment (lib, "msmpi.lib")
// Note, the function below and data structure is used all processes, duplic... | 30.964497 | 206 | 0.634435 | mihaighidoveanu |
6ab8fe6f3193a147356962dd148a6389c76f9327 | 197 | hpp | C++ | create3_coverage/include/create3_coverage/state.hpp | iRobotEducation/create3_examples | 8f04a57be3d2c8e7e9a4d346b78eaca991b83e84 | [
"BSD-3-Clause"
] | 2 | 2021-12-16T16:14:39.000Z | 2022-03-10T01:19:06.000Z | create3_coverage/include/create3_coverage/state.hpp | iRobotEducation/create3_examples | 8f04a57be3d2c8e7e9a4d346b78eaca991b83e84 | [
"BSD-3-Clause"
] | 7 | 2021-11-01T18:59:15.000Z | 2022-01-14T16:43:55.000Z | create3_coverage/include/create3_coverage/state.hpp | iRobotEducation/create3_examples | 8f04a57be3d2c8e7e9a4d346b78eaca991b83e84 | [
"BSD-3-Clause"
] | 1 | 2021-11-11T20:06:22.000Z | 2021-11-11T20:06:22.000Z | // Copyright 2021 iRobot Corporation. All Rights Reserved.
#pragma once
namespace create3_coverage {
enum class State {
RUNNING,
FAILURE,
SUCCESS
};
} // namespace create3_coverage
| 14.071429 | 58 | 0.720812 | iRobotEducation |
6ac0eae03f9c5b1c87d73e8660a969c83c98e7e8 | 1,928 | hpp | C++ | src/vlExtParticle/ParticleSystem.hpp | yk35/vlExt | adaed284ffe8bb1d067a58b02ebf36b61fd63b7a | [
"MIT"
] | null | null | null | src/vlExtParticle/ParticleSystem.hpp | yk35/vlExt | adaed284ffe8bb1d067a58b02ebf36b61fd63b7a | [
"MIT"
] | null | null | null | src/vlExtParticle/ParticleSystem.hpp | yk35/vlExt | adaed284ffe8bb1d067a58b02ebf36b61fd63b7a | [
"MIT"
] | 1 | 2019-12-11T01:45:23.000Z | 2019-12-11T01:45:23.000Z | #pragma once
#include <vlExtParticle/link_config.hpp>
#include <vlCore/Say.hpp>
#include <vlCore/Object.hpp>
#include <vlCore/TypeInfo.hpp>
#include <vlCore/Collection.hpp>
#include <vlGraphics/Actor.hpp>
#include <vlGraphics/Array.hpp>
#include <vlGraphics/DrawArrays.hpp>
#include <vlGraphics/Texture.hpp>
#include <v... | 29.661538 | 80 | 0.743257 | yk35 |
6ac27eff778efd9921491a6cbcb24dea6d845b00 | 5,094 | hpp | C++ | datastore/importers/nmdb-import-pcap/Parser.hpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | datastore/importers/nmdb-import-pcap/Parser.hpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | datastore/importers/nmdb-import-pcap/Parser.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... | 37.733333 | 80 | 0.600118 | cmwill |
6ac3a5af863eb680df0dac6357b2b9f3d902fb78 | 15,981 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Game2D/collectible_item_00.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Game2D/collectible_item_00.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32756G_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Game2D/collectible_item_00.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _collectible_item_00[] LOCATION_EXTFLASH_ATTRIBUTE = { // 28x28 ARGB8888 pixels.
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x... | 202.291139 | 320 | 0.796446 | ramkumarkoppu |
6ac41d1b2ee3551e3b8faaf9e4512fed61de2892 | 991 | cpp | C++ | include/h3api/H3AdventureMap/H3MapTreasureChest.cpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3AdventureMap/H3MapTreasureChest.cpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3AdventureMap/H3MapTreasureChest.cpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 35.392857 | 70 | 0.40666 | Patrulek |
6ac73f091de1e6d3ff9f482e2e3c03e6ce72fb8f | 4,589 | hh | C++ | sdd/hom/local.hh | tic-toc/libsdd | 5c3deb43523d062929f169c3d7a301240f0fb811 | [
"BSD-2-Clause"
] | 6 | 2015-03-21T19:21:29.000Z | 2022-01-29T01:20:28.000Z | sdd/hom/local.hh | tic-toc/libsdd | 5c3deb43523d062929f169c3d7a301240f0fb811 | [
"BSD-2-Clause"
] | 1 | 2017-02-05T23:39:44.000Z | 2017-02-05T23:40:04.000Z | libsdd/sdd/hom/local.hh | kyouko-taiga/SwiftSDD | 9312160e0fac5fef6e605c9e74c543ded9708e54 | [
"MIT"
] | 3 | 2016-05-13T14:39:06.000Z | 2019-08-09T20:13:39.000Z | /// @file
/// @copyright The code is licensed under the BSD License
/// <http://opensource.org/licenses/BSD-2-Clause>,
/// Copyright (c) 2012-2015 Alexandre Hamez.
/// @author Alexandre Hamez
#pragma once
#include <iosfwd>
#include "sdd/dd/definition.hh"
#include "sdd/hom/context_fwd.hh"
#inclu... | 25.926554 | 100 | 0.542384 | tic-toc |
6ac8d89f9d0b326110a410aef024c28a3747629d | 2,445 | cpp | C++ | src/wmmousedll/WinUtils.cpp | zhugecaomao/Bright-Window-Manager | 2090caa6859f2ff70774da45297006424c53c8e2 | [
"Apache-2.0"
] | null | null | null | src/wmmousedll/WinUtils.cpp | zhugecaomao/Bright-Window-Manager | 2090caa6859f2ff70774da45297006424c53c8e2 | [
"Apache-2.0"
] | null | null | null | src/wmmousedll/WinUtils.cpp | zhugecaomao/Bright-Window-Manager | 2090caa6859f2ff70774da45297006424c53c8e2 | [
"Apache-2.0"
] | null | null | null | #include "WinUtils.hpp"
#include "wmmousedll.h"
#include <Windows.h>
#include <Dwmapi.h>
bool IgnoreWindow()
{
// don't move or resize windows that are maximized
WINDOWPLACEMENT wndpl;
wndpl.length = sizeof( WINDOWPLACEMENT );
::GetWindowPlacement( hWnd, &wndpl );
if( wndpl.showCmd == SW_SHOWMAXIMIZED )
{
retu... | 23.970588 | 115 | 0.691616 | zhugecaomao |
6acd7bc02911936875330960fb770661432ea5ff | 1,954 | hpp | C++ | RushHourSolver/Solver.hpp | WubiCookie/RushHourSolver | a3b25489aaa493f781c28ce03f80e75e5ebeac92 | [
"MIT"
] | null | null | null | RushHourSolver/Solver.hpp | WubiCookie/RushHourSolver | a3b25489aaa493f781c28ce03f80e75e5ebeac92 | [
"MIT"
] | null | null | null | RushHourSolver/Solver.hpp | WubiCookie/RushHourSolver | a3b25489aaa493f781c28ce03f80e75e5ebeac92 | [
"MIT"
] | null | null | null | #ifndef RushHourSolver_Solver_HPP
#define RushHourSolver_Solver_HPP
#include "Enums.hpp"
#include "Piece.hpp"
#include "Pieces.hpp"
#include "Printing.hpp"
#include "Table.hpp"
#include <atomic>
#include <functional>
#include <memory>
#include <mutex>
#include <random>
#include <stack>
#include <unordered_set>
names... | 22.72093 | 74 | 0.737462 | WubiCookie |
6ad24dcc7a81401bb5ed862186a106cd6ada6f57 | 958 | cpp | C++ | src/hxtemplatematchingutil/orientation3intcode.cpp | zibamira/SerialSectionAligner | f6d93c84746087a5b3259b264e796611c16533c0 | [
"BSD-2-Clause"
] | 1 | 2020-02-18T09:11:52.000Z | 2020-02-18T09:11:52.000Z | src/hxtemplatematchingutil/orientation3intcode.cpp | zibamira/SerialSectionAligner | f6d93c84746087a5b3259b264e796611c16533c0 | [
"BSD-2-Clause"
] | 1 | 2021-07-27T01:42:57.000Z | 2021-07-27T06:40:48.000Z | src/hxtemplatematchingutil/orientation3intcode.cpp | zibamira/SerialSectionAligner | f6d93c84746087a5b3259b264e796611c16533c0 | [
"BSD-2-Clause"
] | 2 | 2020-09-16T01:07:59.000Z | 2020-10-08T05:25:13.000Z | #include "orientation3intcode.h"
#include <mclib/McVec3.h>
#include <mclib/McMat4.h>
#include <mclib/McMath.h>
orientation3intcode::Orientation
orientation3intcode::decode(const unsigned int code)
{
Orientation o;
unsigned int temp = code;
temp /= 65536;
o.phi = temp;
temp *= 65536;
o.theta = ... | 22.27907 | 76 | 0.677453 | zibamira |
6ad3728f82dab71877fd9ae6f5fd5790d92d1f12 | 436 | cpp | C++ | Ch 14/14.02_test.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 14/14.02_test.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 14/14.02_test.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | #include"14.02.h"
int main()
{
Sales_data item0, item1;
std::cout << "cin>>item0>>item1" << std::endl;
std::cin >> item0 >> item1;
std::cout << "cout<<item0<<item1" << std::endl;
std::cout << item0 <<" "<< item1 << std::endl;
std::cout << "cout<<item0+item1" << std::endl;
std::cout << item0 + item1 << std::endl... | 25.647059 | 49 | 0.575688 | Felon03 |
6ad71dba20b11238d8621f84f81980b1f0e6995c | 2,142 | cpp | C++ | lib/json/src/json_parser.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/json/src/json_parser.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/json/src/json_parser.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Sylko Olzscher
*
*/
#include "json_parser.hpp"
#include <cyng/intrinsics/buffer.h>
namespace cyng
{
template struct json_parser <std::string::const_iterator>;
template struct json_parser <buffer_t::const_iterator>;
std::pair<object, bool>... | 31.970149 | 111 | 0.670401 | solosTec |
6ae00867ce46562742b7a94bb4c23d5b8fb9c1d4 | 22,570 | tcc | C++ | include/CRC/CRC_scalar.tcc | tuddbresilience/coding_benchmark | f4bab7b57fcb57d98d94a4efc3b8adad2bad6767 | [
"Apache-2.0"
] | null | null | null | include/CRC/CRC_scalar.tcc | tuddbresilience/coding_benchmark | f4bab7b57fcb57d98d94a4efc3b8adad2bad6767 | [
"Apache-2.0"
] | null | null | null | include/CRC/CRC_scalar.tcc | tuddbresilience/coding_benchmark | f4bab7b57fcb57d98d94a4efc3b8adad2bad6767 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2018 Till Kolditz
//
// 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... | 43.910506 | 194 | 0.469428 | tuddbresilience |
6ae00b3004a9d9f4b662d9a4b7059f7374a16d5e | 10,391 | cpp | C++ | android/library/maply/jni/src/formats/VectorTileData_jni.cpp | uCiC-app/WhirlyGlobe-3 | 399fa89a7c00db3f7fed08968e1c3692bba25d7c | [
"Apache-2.0"
] | 11 | 2020-01-03T09:17:59.000Z | 2020-10-12T21:42:42.000Z | android/library/maply/jni/src/formats/VectorTileData_jni.cpp | uCiC-app/WhirlyGlobe-3 | 399fa89a7c00db3f7fed08968e1c3692bba25d7c | [
"Apache-2.0"
] | 36 | 2020-01-08T07:52:20.000Z | 2020-11-16T23:49:39.000Z | android/library/maply/jni/src/formats/VectorTileData_jni.cpp | uCiC-app/WhirlyGlobe-3 | 399fa89a7c00db3f7fed08968e1c3692bba25d7c | [
"Apache-2.0"
] | 9 | 2020-01-08T06:04:48.000Z | 2021-07-21T13:14:27.000Z | /*
* VectorTileData_jni.cpp
* WhirlyGlobeLib
*
* Created by sjg
* Copyright 2011-2016 mousebird consulting
*
* 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.apach... | 35.585616 | 198 | 0.686459 | uCiC-app |
6ae1e0a691dfd69b5682184b13488741cfb599fb | 654 | hpp | C++ | include/sharpen/SpinLock.hpp | iceBear67/Sharpen | 4f00fb13a2b3e7dc26cdb34596d58f958eb341f8 | [
"MIT"
] | 13 | 2020-10-25T04:02:07.000Z | 2022-03-29T13:21:30.000Z | include/sharpen/SpinLock.hpp | iceBear67/Sharpen | 4f00fb13a2b3e7dc26cdb34596d58f958eb341f8 | [
"MIT"
] | 18 | 2020-10-09T04:51:03.000Z | 2022-03-01T06:24:23.000Z | include/sharpen/SpinLock.hpp | iceBear67/Sharpen | 4f00fb13a2b3e7dc26cdb34596d58f958eb341f8 | [
"MIT"
] | 7 | 2020-10-23T04:25:28.000Z | 2022-03-23T06:52:39.000Z | #pragma once
#ifndef _SHARPEN_SPINLOCK_HPP
#define _SHARPEN_SPINLOCK_HPP
#include <atomic>
#include "Noncopyable.hpp"
#include "Nonmovable.hpp"
namespace sharpen
{
class SpinLock:public sharpen::Noncopyable,public sharpen::Nonmovable
{
private:
using Flag = std::atomic_flag;
Flag flag_;... | 15.209302 | 73 | 0.54893 | iceBear67 |
6ae4fafc877804c44ec77cd6e32eb4b974b53bf9 | 4,447 | cpp | C++ | unit_tests/aub_tests/command_queue/enqueue_verify_memory_buffer_aub_tests.cpp | hongbolv/compute-runtime | 2e6e791a1cd2da482a63315d9fcbca1b17813337 | [
"MIT"
] | null | null | null | unit_tests/aub_tests/command_queue/enqueue_verify_memory_buffer_aub_tests.cpp | hongbolv/compute-runtime | 2e6e791a1cd2da482a63315d9fcbca1b17813337 | [
"MIT"
] | null | null | null | unit_tests/aub_tests/command_queue/enqueue_verify_memory_buffer_aub_tests.cpp | hongbolv/compute-runtime | 2e6e791a1cd2da482a63315d9fcbca1b17813337 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/api/api.h"
#include "runtime/command_stream/command_stream_receiver.h"
#include "runtime/mem_obj/buffer.h"
#include "test.h"
#include "unit_tests/aub_tests/command_queue/command_enqueue_fixture.h"
#include "unit... | 36.752066 | 134 | 0.680908 | hongbolv |
6ae53109b3906ee2b913569a11b2075bc77f1802 | 3,433 | cpp | C++ | TopCoderSRM/SRM627/BubbleSortWithReversals.cpp | zombiecry/AlgorithmPractice | f42933883bd62a86aeef9740356f5010c6c9bebf | [
"MIT"
] | null | null | null | TopCoderSRM/SRM627/BubbleSortWithReversals.cpp | zombiecry/AlgorithmPractice | f42933883bd62a86aeef9740356f5010c6c9bebf | [
"MIT"
] | null | null | null | TopCoderSRM/SRM627/BubbleSortWithReversals.cpp | zombiecry/AlgorithmPractice | f42933883bd62a86aeef9740356f5010c6c9bebf | [
"MIT"
] | null | null | null | // BEGIN CUT HERE
// END CUT HERE
#line 5 "BubbleSortWithReversals.cpp"
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include<queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iost... | 35.030612 | 308 | 0.55986 | zombiecry |
6ae711f22ef48fba0c30efc59c50292b62f6c593 | 2,499 | cpp | C++ | examples/ExplicitMessagingExample.cpp | Guistac/EIPScanner | 2c4229924e826ad911a96553f9be39c382a362b6 | [
"MIT"
] | 94 | 2019-12-11T01:47:53.000Z | 2022-03-31T09:23:52.000Z | examples/ExplicitMessagingExample.cpp | flipback/EIPScanner | f624b3fd414c180005c64635d430679bdc7dce65 | [
"MIT"
] | 53 | 2019-12-09T17:59:35.000Z | 2022-03-18T22:43:28.000Z | examples/ExplicitMessagingExample.cpp | flipback/EIPScanner | f624b3fd414c180005c64635d430679bdc7dce65 | [
"MIT"
] | 47 | 2020-01-14T13:15:36.000Z | 2022-03-23T15:22:48.000Z | //
// Created by Aleksey Timin on 11/16/19.
//
#if defined(_WIN32) || defined(WIN32) || defined(_WIN64)
#include <winsock2.h>
#define OS_Windows (1)
#endif
#include <cstdlib>
#include <sstream>
#include <cip/connectionManager/NetworkConnectionParams.h>
#include "SessionInfo.h"
#include "MessageRouter.h"
#include "Con... | 27.766667 | 96 | 0.666267 | Guistac |
6ae7adfcecbcf061c163f6aca377ab5af9159b5c | 3,247 | cpp | C++ | khkFramework/src/ContactListener.cpp | kenhyokun/khkFramework-raylib | b1a21fb81f1f0bb3b354b624129267e7514cee24 | [
"Zlib"
] | 2 | 2021-03-09T03:20:12.000Z | 2021-12-29T03:14:07.000Z | khkFramework/src/ContactListener.cpp | kenhyokun/khkFramework-raylib | b1a21fb81f1f0bb3b354b624129267e7514cee24 | [
"Zlib"
] | null | null | null | khkFramework/src/ContactListener.cpp | kenhyokun/khkFramework-raylib | b1a21fb81f1f0bb3b354b624129267e7514cee24 | [
"Zlib"
] | null | null | null | /*
license under zlib license
Copyright (C) 2020-2021 Kevin Haryo Kuncoro
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for ... | 31.833333 | 86 | 0.715738 | kenhyokun |
6aec5cb84c514cee8b2a3ee25bc4647195b5586f | 105 | cpp | C++ | Core/Components/IKeyboardInputInterface.cpp | gaspardpetit/INF740-GameEngine | 075b6563204fb3d1cf7531599f30dd296c2c9239 | [
"Apache-2.0"
] | null | null | null | Core/Components/IKeyboardInputInterface.cpp | gaspardpetit/INF740-GameEngine | 075b6563204fb3d1cf7531599f30dd296c2c9239 | [
"Apache-2.0"
] | null | null | null | Core/Components/IKeyboardInputInterface.cpp | gaspardpetit/INF740-GameEngine | 075b6563204fb3d1cf7531599f30dd296c2c9239 | [
"Apache-2.0"
] | 1 | 2015-09-25T22:24:16.000Z | 2015-09-25T22:24:16.000Z | #include "Precompiled.h"
#include "IKeyboardInputInterface.h"
namespace engine
{
} // namespace engine
| 13.125 | 36 | 0.761905 | gaspardpetit |
6aec670189a4a27415cd86735a95e204fff5ab71 | 7,259 | cpp | C++ | base/SkApp.cpp | unrealflow/LearnDX12 | 8354863c26772385a0a0c29e123d5a1340efce59 | [
"MIT"
] | null | null | null | base/SkApp.cpp | unrealflow/LearnDX12 | 8354863c26772385a0a0c29e123d5a1340efce59 | [
"MIT"
] | null | null | null | base/SkApp.cpp | unrealflow/LearnDX12 | 8354863c26772385a0a0c29e123d5a1340efce59 | [
"MIT"
] | null | null | null | #include "SkApp.h"
#include "SkDevice.h"
#include "SkCmd.h"
#include "SkTex.h"
#include "SkPass.h"
#include "SkModel.h"
#include "SkController.h"
#include "SkAgent.h"
#include "SkTarget.h"
#include "SkComputer.h"
#include "SkAA.h"
//srv [0]
SkTex tex;
//srv [1]
SkTex bk;
SkModel model;
SkPass p_gbuffer;
SkPass p_def... | 34.402844 | 111 | 0.659733 | unrealflow |
6aefe7c308343fb858df6cd6825c166ee4a53c3c | 7,263 | cpp | C++ | src/modules/graphics/Canvas.cpp | flamendless/love | b1f37657ba670f94e22461ab24a8331079d03265 | [
"Apache-2.0"
] | 6 | 2019-05-25T21:19:47.000Z | 2019-05-27T10:04:46.000Z | src/modules/graphics/Canvas.cpp | loveclub/love | 5175b0d1b599ea4c7b929f6b4282dd379fa116b8 | [
"Apache-2.0"
] | null | null | null | src/modules/graphics/Canvas.cpp | loveclub/love | 5175b0d1b599ea4c7b929f6b4282dd379fa116b8 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2006-2022 LOVE Development Team
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* ... | 30.775424 | 142 | 0.717885 | flamendless |
6af66feb1383033f2f065bb067bb15e6e346ed73 | 7,725 | hpp | C++ | source/mango/jpeg/jpeg_process_func.hpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 5 | 2021-08-06T10:37:50.000Z | 2022-01-23T00:27:28.000Z | source/mango/jpeg/jpeg_process_func.hpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | null | null | null | source/mango/jpeg/jpeg_process_func.hpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 5 | 2021-03-22T11:06:00.000Z | 2022-02-22T02:53:19.000Z | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#ifdef FUNCTION_GENERIC
void FUNCTION_GENERIC(u8* dest, size_t stride, const s16* data, ProcessState* state, int width, int height)
{
u8 result[JPEG_MAX_SAMPLES_IN_MCU];
for (int i = 0;... | 29.94186 | 111 | 0.470291 | ufoym |
6af8b57e0dcdce322b29ea90315a454ade618214 | 198,605 | cpp | C++ | cppForSwig/gtest/WalletTests.cpp | siraj/ArmoryDB | d299fcfe764a92c5711ea55d5ec447f7b9f1e132 | [
"MIT"
] | null | null | null | cppForSwig/gtest/WalletTests.cpp | siraj/ArmoryDB | d299fcfe764a92c5711ea55d5ec447f7b9f1e132 | [
"MIT"
] | null | null | null | cppForSwig/gtest/WalletTests.cpp | siraj/ArmoryDB | d299fcfe764a92c5711ea55d5ec447f7b9f1e132 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// //
// //
// Copyright (C) 2017, goatpig ... | 30.247487 | 150 | 0.629858 | siraj |
6af99e46f243087e027ac0ca18147ad61e2c5330 | 8,026 | cpp | C++ | test/optimizer/optimizer_test.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 1 | 2017-04-17T15:19:36.000Z | 2017-04-17T15:19:36.000Z | test/optimizer/optimizer_test.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 5 | 2017-04-23T17:16:14.000Z | 2017-04-25T03:14:16.000Z | test/optimizer/optimizer_test.cpp | phisiart/peloton-p3 | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | null | null | null | #include "common/harness.h"
#define private public
#include "catalog/catalog.h"
#include "common/logger.h"
#include "common/statement.h"
#include "concurrency/transaction_manager_factory.h"
#include "executor/create_executor.h"
#include "executor/insert_executor.h"
#include "executor/plan_executor.h"
#include "optimi... | 37.680751 | 95 | 0.701969 | phisiart |
13929c2b5a48991f7072e73cc0d7b570f17b2123 | 17,914 | cc | C++ | example/main.cc | shadow-yuan/karl | 7408aafbb2b613cb8c901ad4586e120fad808b7d | [
"Apache-2.0"
] | 10 | 2019-11-21T07:31:38.000Z | 2020-03-26T09:44:08.000Z | example/main.cc | shadow-yuan/karl | 7408aafbb2b613cb8c901ad4586e120fad808b7d | [
"Apache-2.0"
] | null | null | null | example/main.cc | shadow-yuan/karl | 7408aafbb2b613cb8c901ad4586e120fad808b7d | [
"Apache-2.0"
] | 1 | 2019-11-22T10:30:18.000Z | 2019-11-22T10:30:18.000Z | #include <iostream>
#include "karl/json.hxx"
using Json = karl::json;
void test_json_object_parse() {
char json[] = "{\"one\":true, \"number\":[1, 2, 3, 4]}";
std::cout << "test_json_parse => " << std::endl;
Json js = Json::parse(json);
std::cout << "json: " << json << std::endl;
std::cout << "dump... | 39.986607 | 996 | 0.533717 | shadow-yuan |
1397b6e37057893043d7bb52850e5f7f9a06bc50 | 1,657 | cpp | C++ | vislib/src/graphics/AbstractFont.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | vislib/src/graphics/AbstractFont.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | vislib/src/graphics/AbstractFont.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* AbstractFont.cpp
*
* Copyright (C) 2006 - 2008 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "vislib/graphics/AbstractFont.h"
#include "vislib/IllegalParamException.h"
#include "vislib/assert.h"
/*
* vislib::graphics::AbstractFont::~AbstractFont
*/
vislib::graphics::AbstractFont... | 20.7125 | 99 | 0.664454 | xge |
139c240fda9e9a41faba284d9edb3d9aa3b0f608 | 1,923 | cpp | C++ | source/CMediaFile.cpp | troldal/Mix-n-Match | f6493437920eb2a4162f0e4901793583ef83142c | [
"MIT"
] | null | null | null | source/CMediaFile.cpp | troldal/Mix-n-Match | f6493437920eb2a4162f0e4901793583ef83142c | [
"MIT"
] | null | null | null | source/CMediaFile.cpp | troldal/Mix-n-Match | f6493437920eb2a4162f0e4901793583ef83142c | [
"MIT"
] | null | null | null | //
// Created by Kenneth Balslev on 11/07/2021.
//
#include "CMediaFile.hpp"
#include <iostream>
#include <filesystem>
#include <sstream>
#include <boost/process.hpp>
namespace bp = boost::process;
CMediaFile::CMediaFile() = default;
CMediaFile::CMediaFile(const std::filesystem::path& path) : m_path(path) {
an... | 25.302632 | 114 | 0.607904 | troldal |
13a09fc115a960a1f814d68dcdea84fb109e99bf | 513 | cpp | C++ | Examples/NDPExample.cpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 2 | 2021-06-09T00:38:46.000Z | 2021-09-04T21:55:33.000Z | Examples/NDPExample.cpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | null | null | null | Examples/NDPExample.cpp | jlandess/LandessDevCore | 3319c36c3232415d6bdba7da8b4896c0638badf2 | [
"BSD-3-Clause"
] | 1 | 2021-08-30T00:46:12.000Z | 2021-08-30T00:46:12.000Z | //
// Created by phoenixflower on 8/25/21.
//
#include "Network/NDP/NDP.hpp"
#include "Network/NDP/ndp.h"
#include <net/if.h>
namespace LD
{
namespace Example
{
void NDPExample()
{
LD::NDP ndp1;
//ndp * ndpSocket = nullptr;
//ndp_open(&ndpSocket);
... | 22.304348 | 77 | 0.526316 | jlandess |
13a68f262afc716a25c24ad36c75e33ba08d1ea9 | 15,912 | cpp | C++ | src/essagui/FocusedObjectGUI.cpp | Adam-Ratajczak/2d-solar-system-simulator | 3b0f39e14ad2bd6098b69079b1904b8fa31960a0 | [
"Beerware"
] | null | null | null | src/essagui/FocusedObjectGUI.cpp | Adam-Ratajczak/2d-solar-system-simulator | 3b0f39e14ad2bd6098b69079b1904b8fa31960a0 | [
"Beerware"
] | 1 | 2022-03-30T14:16:52.000Z | 2022-03-30T14:16:52.000Z | src/essagui/FocusedObjectGUI.cpp | Adam-Ratajczak/2d-solar-system-simulator | 3b0f39e14ad2bd6098b69079b1904b8fa31960a0 | [
"Beerware"
] | null | null | null | #include "FocusedObjectGUI.hpp"
#include "../Object.hpp"
#include <EssaGUI/gui/MessageBox.hpp>
#include <EssaGUI/gui/TabWidget.hpp>
#include <EssaGUI/util/UnitDisplay.hpp>
#include <SFML/Graphics/Color.hpp>
#include <cmath>
#include <iomanip>
#include <memory>
FocusedObjectGUI::FocusedObjectGUI(GUI::WidgetTreeRoot& c... | 45.593123 | 162 | 0.711664 | Adam-Ratajczak |
13a694640718c0f047737baf91d272bdea84b860 | 3,386 | hpp | C++ | beaker/print.hpp | tyharbert/beaker | c0a859eae884ce88c13c6b4d75d4a6a94a784503 | [
"Apache-2.0"
] | 1 | 2020-06-18T18:25:43.000Z | 2020-06-18T18:25:43.000Z | beaker/print.hpp | asutton/beaker-cc | 72f2a2f71d58c4c91eaf7c5fca35c3f0720103a9 | [
"Apache-2.0"
] | 6 | 2015-12-05T22:07:03.000Z | 2015-12-08T02:37:45.000Z | beaker/print.hpp | tyharbert/beaker | c0a859eae884ce88c13c6b4d75d4a6a94a784503 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2015 Andrew Sutton
// All rights reserved
#ifndef BEAKER_PRINT_HPP
#define BEAKER_PRINT_HPP
#include <beaker/prelude.hpp>
#include <iosfwd>
std::ostream& operator<<(std::ostream&, Type const&);
std::ostream& operator<<(std::ostream&, Id_type const&);
std::ostream& operator<<(std::ostream&, Boolean_... | 49.072464 | 63 | 0.716184 | tyharbert |
13a9d8668b160d7f503ebc86787917ce24fa330f | 210 | cpp | C++ | printf.cpp | ahfa92/cpp | bddd80ea5c6aca23c91bd6693bb32da06e67cbd2 | [
"MIT"
] | null | null | null | printf.cpp | ahfa92/cpp | bddd80ea5c6aca23c91bd6693bb32da06e67cbd2 | [
"MIT"
] | null | null | null | printf.cpp | ahfa92/cpp | bddd80ea5c6aca23c91bd6693bb32da06e67cbd2 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <conio.h>
#include <iostream.h>
main()
{
char nama[5]="dita";
int nilai=100;
clrscr();
printf("hai %s, Kamu mendapatkan Nilai %i",nama,nilai);
getch();
} | 16.153846 | 59 | 0.57619 | ahfa92 |
13b6fc26da0e8bcd826ce1e8ee25ecad46282c05 | 60,390 | cpp | C++ | nano/node/lmdb.cpp | dpball/NanoLink-Cash | e4fa7c23b0d7284948c68121287861688c451cc8 | [
"BSD-2-Clause"
] | null | null | null | nano/node/lmdb.cpp | dpball/NanoLink-Cash | e4fa7c23b0d7284948c68121287861688c451cc8 | [
"BSD-2-Clause"
] | null | null | null | nano/node/lmdb.cpp | dpball/NanoLink-Cash | e4fa7c23b0d7284948c68121287861688c451cc8 | [
"BSD-2-Clause"
] | null | null | null | #include <nano/crypto_lib/random_pool.hpp>
#include <nano/lib/utility.hpp>
#include <nano/node/common.hpp>
#include <nano/node/lmdb.hpp>
#include <nano/secure/versioning.hpp>
#include <boost/endian/conversion.hpp>
#include <boost/polymorphic_cast.hpp>
#include <queue>
namespace nano
{
template <>
void * mdb_val::dat... | 34.390661 | 294 | 0.714605 | dpball |
13c68d7f01393b4bb4641bbaccd397441a5f36ba | 16,848 | cpp | C++ | idleRPG/Game.cpp | zhihanLin/text-based-RPG | 1d4919a3d9569739ea924a5aa4699a3995dab043 | [
"FSFAP"
] | null | null | null | idleRPG/Game.cpp | zhihanLin/text-based-RPG | 1d4919a3d9569739ea924a5aa4699a3995dab043 | [
"FSFAP"
] | null | null | null | idleRPG/Game.cpp | zhihanLin/text-based-RPG | 1d4919a3d9569739ea924a5aa4699a3995dab043 | [
"FSFAP"
] | null | null | null | //
// Game.cpp
// idleRPG
//
// Created by ZHIHAN LIN on 4/17/20.
// Copyright © 2020 ZHIHAN LIN. All rights reserved.
//
#include "Game.hpp"
Game::Game(){
}
Game::~Game(){
}
void Game::menu(){
// if first hero hit level 20, found a random major team mate
if (heros[0].getLevel() >= 15 && lv15Re... | 37.523385 | 124 | 0.395655 | zhihanLin |
13c6e1c9626c28e8fc8ad3bf72d4ac9943d07a55 | 2,224 | cpp | C++ | mods/game/src/game.cpp | tpearson1/Eris | f64b681966f9cbd4a4cd448f4d3028efdab19bd9 | [
"MIT"
] | null | null | null | mods/game/src/game.cpp | tpearson1/Eris | f64b681966f9cbd4a4cd448f4d3028efdab19bd9 | [
"MIT"
] | null | null | null | mods/game/src/game.cpp | tpearson1/Eris | f64b681966f9cbd4a4cd448f4d3028efdab19bd9 | [
"MIT"
] | null | null | null | /*
-------------------------------------------------------------------------------
This file is part of Eris Engine
-------------------------------------------------------------------------------
Copyright (c) 2017 Thomas Pearson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this soft... | 32.231884 | 79 | 0.647932 | tpearson1 |
13c7ceb817bceb6567326a48d9953b51c46be343 | 1,321 | cpp | C++ | src/pd/splash.cpp | mtribiere/Pixel-dungeon-CPP | ed930aaeefd1f08eed73ced928acae6e1fe34fa4 | [
"MIT"
] | null | null | null | src/pd/splash.cpp | mtribiere/Pixel-dungeon-CPP | ed930aaeefd1f08eed73ced928acae6e1fe34fa4 | [
"MIT"
] | null | null | null | src/pd/splash.cpp | mtribiere/Pixel-dungeon-CPP | ed930aaeefd1f08eed73ced928acae6e1fe34fa4 | [
"MIT"
] | null | null | null | #include "splash.h"
#include "gamescene.h"
#include "dungeontilemap.h"
#include "../engine/pixelparticle.h"
Splash::SplashFactory* Splash::FACTORY = new Splash::SplashFactory();
void Splash::at(int cell, int color, int n)
{
at(DungeonTilemap::tileCenterToWorld(cell), color, n);
}
void Splash::at(PointF ... | 22.389831 | 105 | 0.619228 | mtribiere |
13c8d25ae951c080d29f9f6c0b445d3ec0f4032d | 3,930 | cpp | C++ | code/libImmExporter/src/toImmersive/toImmersiveLayerSound.cpp | andybak/IMM | c725dcb28a1638dea726381a7189c3b031967d58 | [
"Apache-2.0",
"MIT"
] | 33 | 2021-09-16T18:37:08.000Z | 2022-03-22T23:02:44.000Z | code/libImmExporter/src/toImmersive/toImmersiveLayerSound.cpp | andybak/IMM | c725dcb28a1638dea726381a7189c3b031967d58 | [
"Apache-2.0",
"MIT"
] | 5 | 2021-09-17T10:10:07.000Z | 2022-03-28T12:33:29.000Z | code/libImmExporter/src/toImmersive/toImmersiveLayerSound.cpp | andybak/IMM | c725dcb28a1638dea726381a7189c3b031967d58 | [
"Apache-2.0",
"MIT"
] | 5 | 2021-09-19T07:49:01.000Z | 2021-12-12T21:25:35.000Z | #include "libImmCore/src/libBasics/piStr.h"
#include "libImmCore/src/libBasics/piStreamFileO.h"
#include "libImmCore/src/libWave/piWave.h"
#include "libImmCore/src/libWave/formats/piWaveWAV.h"
#include "libImmCore/src/libWave/formats/piWaveOGG.h"
#include "libImmCore/src/libWave/formats/piWaveOPUS.h"
#include "../docu... | 35.089286 | 102 | 0.545038 | andybak |
13c988af2a779d480fda11b9d7a01136300b3454 | 365 | hpp | C++ | src/menus/task-menu.hpp | AncuL001/ta-strukdat-curses | c0149d85b09bc973cfd2af99b3873f9721bbf745 | [
"MIT"
] | null | null | null | src/menus/task-menu.hpp | AncuL001/ta-strukdat-curses | c0149d85b09bc973cfd2af99b3873f9721bbf745 | [
"MIT"
] | null | null | null | src/menus/task-menu.hpp | AncuL001/ta-strukdat-curses | c0149d85b09bc973cfd2af99b3873f9721bbf745 | [
"MIT"
] | null | null | null | #pragma once
#include "../data-structures/linked-list.hpp"
#include "../data-structures/queue.hpp"
#define NCURSES_MOUSE_VERSION
#include <curses.h>
void first_task_screen(data_structures::CategoryNodePointer ¤t);
void all_task_screen(const data_structures::CategoryNodePointer current);
void add_task_screen(da... | 33.181818 | 73 | 0.824658 | AncuL001 |
13ca206653914c78aaf909e1ad4b706da0b91735 | 1,639 | cpp | C++ | src/Core/Connection.cpp | kefaise/WebForge | c0a7ce197509da27d2ba8c4467861cbdccad22be | [
"MIT"
] | null | null | null | src/Core/Connection.cpp | kefaise/WebForge | c0a7ce197509da27d2ba8c4467861cbdccad22be | [
"MIT"
] | null | null | null | src/Core/Connection.cpp | kefaise/WebForge | c0a7ce197509da27d2ba8c4467861cbdccad22be | [
"MIT"
] | null | null | null | #include "Connection.hpp"
#include <iostream>
#include <boost/algorithm/string.hpp>
#include <boost/bind.hpp>
using namespace WebForge::http;
using namespace boost::asio::ip;
Connection::Connection(boost::asio::io_service& ioService, Connection::RequestListener requestListener) :
m_socket(ioService),
... | 26.435484 | 127 | 0.637584 | kefaise |
13ca8477d7e8598b25d11bb1384e356313fee704 | 980 | cpp | C++ | Greedy/630. Course Schedule III/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Greedy/630. Course Schedule III/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Greedy/630. Course Schedule III/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 630. Course Schedule III
//
// Created by 边俊林 on 2019/11/1.
// Copyright © 2019 边俊林. All rights reserved.
//
#include <map>
#include <set>
#include <queue>
#include <string>
#include <stack>
#include <vector>
#include <cstdio>
#include <numeric>
#include <cstdlib>
#include <utility>
#include <ios... | 19.215686 | 80 | 0.563265 | Minecodecraft |
13cd97c035bcb8a917328a8625320426f41080f9 | 84 | cc | C++ | prothos/platform/linux/app/app/init.cc | ManyThreads/prothos | dd77c46df1dde323ccdfeac3319ba1dd2ea15ce1 | [
"MIT"
] | 1 | 2017-03-09T10:18:54.000Z | 2017-03-09T10:18:54.000Z | prothos/platform/linux/app/app/init.cc | ManyThreads/prothos | dd77c46df1dde323ccdfeac3319ba1dd2ea15ce1 | [
"MIT"
] | 9 | 2018-10-02T11:41:07.000Z | 2019-02-07T14:39:52.000Z | prothos/platform/linux/app/app/init.cc | ManyThreads/prothos | dd77c46df1dde323ccdfeac3319ba1dd2ea15ce1 | [
"MIT"
] | 1 | 2021-12-10T16:40:56.000Z | 2021-12-10T16:40:56.000Z | #include "app/UserApp.hh"
#include <iostream>
int main()
{
return userMain();
}
| 8.4 | 25 | 0.654762 | ManyThreads |
13cda527fc573533be4969adbd7f2933710afacc | 1,942 | cpp | C++ | examples/google-code-jam/IguanaBen/typew.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/IguanaBen/typew.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/IguanaBen/typew.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | /*
Michał Gańczorz
code jam 2015
*/
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <set>
#include <math.h>
#include <string>
#include <queue>
#include <list>
#include <sstream>
// #include <unistd.h>
// #include <unordered_map>
#define ll long long
using nam... | 15.412698 | 43 | 0.494851 | rbenic-fer |
13cda8f9907a01b1bbc44dd02d24952057ac4caf | 245 | hpp | C++ | src/utils/sqlite/SQLite.hpp | daladim/access-log-monitor | 497751cd8ca99b0520c565579c6a53f4cf561c02 | [
"MIT"
] | null | null | null | src/utils/sqlite/SQLite.hpp | daladim/access-log-monitor | 497751cd8ca99b0520c565579c6a53f4cf561c02 | [
"MIT"
] | null | null | null | src/utils/sqlite/SQLite.hpp | daladim/access-log-monitor | 497751cd8ca99b0520c565579c6a53f4cf561c02 | [
"MIT"
] | null | null | null | #ifndef _SQLITE_HPP_
#define _SQLITE_HPP_
#include <iostream>
namespace SQLite{
class SQLError : public std::runtime_error{
public:
SQLError(const std::string& what) : std::runtime_error(what) {}
};
} // namespace
#endif // _SQLITE_HPP_ | 16.333333 | 67 | 0.730612 | daladim |
13d0adb3c572a559e5ef2de7eb5d40f7011490c1 | 21,430 | cc | C++ | dsmeAdaptionLayer/GTSHelper.cc | pmalessa/openDSME | 0755f6e7917c5d3f6e3081cde22a9994feb9daef | [
"BSD-3-Clause"
] | null | null | null | dsmeAdaptionLayer/GTSHelper.cc | pmalessa/openDSME | 0755f6e7917c5d3f6e3081cde22a9994feb9daef | [
"BSD-3-Clause"
] | null | null | null | dsmeAdaptionLayer/GTSHelper.cc | pmalessa/openDSME | 0755f6e7917c5d3f6e3081cde22a9994feb9daef | [
"BSD-3-Clause"
] | null | null | null | /*
* openDSME
*
* Implementation of the Deterministic & Synchronous Multi-channel Extension (DSME)
* described in the IEEE 802.15.4-2015 standard
*
* Authors: Florian Kauer <florian.kauer@tuhh.de>
* Maximilian Koestler <maximilian.koestler@tuhh.de>
* Sandrina Backhauss <sandrina.backhauss@tuhh... | 42.519841 | 155 | 0.684974 | pmalessa |
13d1bf2c3d39d2535b2fff75b295b22f07148ea1 | 4,042 | cpp | C++ | src/SpatialModel.cpp | Leodmanx2/Phantom-Drive-WT- | b609a8ee0ca622744b54991b2120409120cf1aaa | [
"0BSD"
] | 1 | 2018-10-20T00:34:26.000Z | 2018-10-20T00:34:26.000Z | src/SpatialModel.cpp | Leodmanx2/Phantom-Drive-WT | b609a8ee0ca622744b54991b2120409120cf1aaa | [
"0BSD"
] | null | null | null | src/SpatialModel.cpp | Leodmanx2/Phantom-Drive-WT | b609a8ee0ca622744b54991b2120409120cf1aaa | [
"0BSD"
] | null | null | null | #include "SpatialModel.hpp"
#include <plog/Log.h>
using namespace plog;
PREDICATE(pd_translate, 4) {
try {
SpatialModel& model = *static_cast<SpatialModel*>(static_cast<void*>(A1));
model.translate(static_cast<double>(A2),
static_cast<double>(A3),
static_cast<double>(A4));
}... | 34.844828 | 98 | 0.700396 | Leodmanx2 |
13d623296ee98e036a39df5d18e2718b5bfe91e4 | 6,981 | cpp | C++ | server/Orthanc-1.7.2/OrthancFramework/Sources/MetricsRegistry.cpp | nilaysaha/medimaging | 476c87f103a5ff0b4ddc5c6abfe6034c9c981a47 | [
"Apache-2.0"
] | 1 | 2020-11-05T08:34:23.000Z | 2020-11-05T08:34:23.000Z | server/Orthanc-1.7.2/OrthancFramework/Sources/MetricsRegistry.cpp | nilaysaha/medimaging | 476c87f103a5ff0b4ddc5c6abfe6034c9c981a47 | [
"Apache-2.0"
] | null | null | null | server/Orthanc-1.7.2/OrthancFramework/Sources/MetricsRegistry.cpp | nilaysaha/medimaging | 476c87f103a5ff0b4ddc5c6abfe6034c9c981a47 | [
"Apache-2.0"
] | 1 | 2020-11-12T09:00:30.000Z | 2020-11-12T09:00:30.000Z | /**
* Orthanc - A Lightweight, RESTful DICOM Store
* Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
* Department, University Hospital of Liege, Belgium
* Copyright (C) 2017-2020 Osimis S.A., Belgium
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the G... | 21.815625 | 116 | 0.571408 | nilaysaha |
13d64f8972bb7401288d39b00a49e4a988d518ae | 2,278 | hpp | C++ | Optimization/Minimization/Gradient-Descent/C++/AdaDeltaGD.hpp | dkaramit/ASAP | afade2737b332e7dbf0ea06eb4f31564a478ee40 | [
"MIT"
] | null | null | null | Optimization/Minimization/Gradient-Descent/C++/AdaDeltaGD.hpp | dkaramit/ASAP | afade2737b332e7dbf0ea06eb4f31564a478ee40 | [
"MIT"
] | null | null | null | Optimization/Minimization/Gradient-Descent/C++/AdaDeltaGD.hpp | dkaramit/ASAP | afade2737b332e7dbf0ea06eb4f31564a478ee40 | [
"MIT"
] | 1 | 2021-12-15T02:03:01.000Z | 2021-12-15T02:03:01.000Z | #ifndef AdaDelta_GD_class
#define AdaDelta_GD_class
/*
AdaDelta Gradient Descent
*/
#include<vector>
#include<cmath>
#define AdaDelta_GD_Template template<class LD, class Function>
#define AdaDelta_GD_Namespace AdaDeltaGD<LD,Function>
AdaDelta_GD_Template
class AdaDeltaGD: public GradientDescent<LD,Function>{
p... | 22.116505 | 126 | 0.640474 | dkaramit |
13d9518e1513ef39bfd4088354fcca276a1605ae | 8,477 | cpp | C++ | CMinus/CMinus/node/control_node.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | CMinus/CMinus/node/control_node.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | CMinus/CMinus/node/control_node.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | #include "../storage/global_storage.h"
#include "../declaration/variable_declaration.h"
#include "identifier_node.h"
#include "expression_node.h"
#include "declaration_node.h"
#include "control_node.h"
cminus::node::control::control(std::shared_ptr<object> condition, std::shared_ptr<object> statement)
: condition_(c... | 33.638889 | 218 | 0.733986 | benbraide |
13dba983eb9f840eed3468e7f5e88f93963ce535 | 2,470 | hpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/gui/include/gui/graph_screen/graph_widget/GraphLine.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/gui/include/gui/graph_screen/graph_widget/GraphLine.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/gui/include/gui/graph_screen/graph_widget/GraphLine.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* @attention
*
* Copyright (c) 2018 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
... | 33.835616 | 104 | 0.65587 | ramkumarkoppu |
13ddc677fce6f1146e58919b7fee26777ee31369 | 700 | cpp | C++ | src/budget_exception.cpp | FORGIS98/budgetwarrior | ca4c79a7b9694a0db5c7fe11b1b4e9cba96a9971 | [
"MIT"
] | null | null | null | src/budget_exception.cpp | FORGIS98/budgetwarrior | ca4c79a7b9694a0db5c7fe11b1b4e9cba96a9971 | [
"MIT"
] | null | null | null | src/budget_exception.cpp | FORGIS98/budgetwarrior | ca4c79a7b9694a0db5c7fe11b1b4e9cba96a9971 | [
"MIT"
] | null | null | null | //=======================================================================
// Copyright (c) 2013-2020 Baptiste Wicht.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=================================================================... | 33.333333 | 98 | 0.58 | FORGIS98 |
13e1182a93f11ce9bf8ffd1263ad065536750f70 | 787 | cpp | C++ | P2pMediaServer/main.cpp | YuanDaYu002/work-notes | 0d7aff3f709bfcd222aee66f40dedfd52394cdd9 | [
"Apache-2.0"
] | 1 | 2021-08-31T08:12:03.000Z | 2021-08-31T08:12:03.000Z | P2pMediaServer/main.cpp | YuanDaYu002/work-notes | 0d7aff3f709bfcd222aee66f40dedfd52394cdd9 | [
"Apache-2.0"
] | null | null | null | P2pMediaServer/main.cpp | YuanDaYu002/work-notes | 0d7aff3f709bfcd222aee66f40dedfd52394cdd9 | [
"Apache-2.0"
] | 1 | 2022-03-23T21:49:19.000Z | 2022-03-23T21:49:19.000Z | #include <iostream>
#include "media_server_p2p.h"
#include "media_server_signal_def.h"
int main() {
p2p_handle_t P2P_handle;
memset(&P2P_handle,0,sizeof(p2p_handle_t));
int ret = p2p_init(&P2P_handle);
if(ret < 0)printf("p2p_init error !\n");return -1;
ret = p2p_conect(&P2P_handle);
if(ret < 0)printf("p2p_c... | 17.108696 | 81 | 0.622618 | YuanDaYu002 |
13e4e1b85434d2646e1aa6b4932008da0cd510df | 1,095 | cpp | C++ | src/TableCache.cpp | jleung51-coursework/phaser | eceaa65fec75d524e85739a8fe8ecb6e595627cf | [
"MIT"
] | 1 | 2016-04-15T00:43:57.000Z | 2016-04-15T00:43:57.000Z | src/TableCache.cpp | CMPT276-2016spring/phaser | eceaa65fec75d524e85739a8fe8ecb6e595627cf | [
"MIT"
] | 23 | 2016-04-19T20:44:15.000Z | 2016-06-30T02:09:13.000Z | src/TableCache.cpp | jleung51/phaser | eceaa65fec75d524e85739a8fe8ecb6e595627cf | [
"MIT"
] | null | null | null | #include "../include/TableCache.h"
#include <cassert>
#include <string>
#include <unordered_map>
#include <was/storage_account.h>
#include <was/table.h>
using azure::storage::cloud_storage_account;
using azure::storage::cloud_table;
using azure::storage::cloud_table_client;
using azure::storage::storage_uri;
using ... | 25.465116 | 65 | 0.750685 | jleung51-coursework |
13e752f62343b175259421a64b7186630c74c5d7 | 443 | cpp | C++ | tests/math/test_simd_special.cpp | lindahua/light-matrix | 8ce65d14b6027ee9e081dd12460bc714e9131d11 | [
"BSD-2-Clause"
] | 102 | 2015-01-03T05:18:50.000Z | 2022-02-24T14:43:49.000Z | tests/math/test_simd_special.cpp | lindahua/light-matrix | 8ce65d14b6027ee9e081dd12460bc714e9131d11 | [
"BSD-2-Clause"
] | 2 | 2018-02-27T01:16:00.000Z | 2018-11-06T15:12:36.000Z | tests/math/test_simd_special.cpp | lindahua/light-matrix | 8ce65d14b6027ee9e081dd12460bc714e9131d11 | [
"BSD-2-Clause"
] | 25 | 2015-05-03T07:39:34.000Z | 2022-02-24T14:43:51.000Z | /**
* @file test_simd_special.cpp
*
* @brief Unit testing of SIMD special functions
*
* @author Dahua Lin
*/
#include "test_simd_math_base.h"
#include <light_mat/math/simd_math.h>
#include <cstdlib>
using namespace lmat;
using namespace lmat::test;
const int TTimes = 10;
// error functions
DEFINE_MATH_TPAC... | 14.766667 | 48 | 0.693002 | lindahua |
13f1cc9d54180641350544f18a07e6e45a4d9f66 | 3,222 | cpp | C++ | Firmware-Esp8266/test/BufferedReader/test_BufferedReader.cpp | michaelschnyder/SkypeNotifier | 5e3e621ff00c3c77974bfeac037e5d3ca349b9a9 | [
"MIT"
] | 2 | 2020-04-19T03:46:21.000Z | 2021-04-15T04:43:02.000Z | Firmware-Esp8266/test/BufferedReader/test_BufferedReader.cpp | michaelschnyder/SkypeNotifier | 5e3e621ff00c3c77974bfeac037e5d3ca349b9a9 | [
"MIT"
] | null | null | null | Firmware-Esp8266/test/BufferedReader/test_BufferedReader.cpp | michaelschnyder/SkypeNotifier | 5e3e621ff00c3c77974bfeac037e5d3ca349b9a9 | [
"MIT"
] | null | null | null | #include <BufferedReader.h>
#include <MemoryStream.h>
#include <unity.h>
#ifdef ARDUINO
#include <Arduino.h>
#include <Stream.h>
#else
#endif
MemoryStream *memStream;
void singlebyte_can_be_read(void) {
memStream = new MemoryStream(10);
memStream->write(0xff);
BufferedReader *reader = new BufferedRead... | 22.690141 | 65 | 0.692737 | michaelschnyder |
13f361db3edcbe41882d6ef6f1dba55dc5aa6168 | 4,949 | cpp | C++ | swri_image_util/src/nodelets/contrast_stretch_nodelet.cpp | rookie80/marti_common | 2866c243a0df11918fd727cd1c8fce41d67f2078 | [
"BSD-3-Clause"
] | 34 | 2015-03-02T20:51:47.000Z | 2022-02-19T02:31:46.000Z | swri_image_util/src/nodelets/contrast_stretch_nodelet.cpp | rookie80/marti_common | 2866c243a0df11918fd727cd1c8fce41d67f2078 | [
"BSD-3-Clause"
] | 206 | 2015-01-31T16:43:06.000Z | 2022-03-02T01:15:26.000Z | swri_image_util/src/nodelets/contrast_stretch_nodelet.cpp | rookie80/marti_common | 2866c243a0df11918fd727cd1c8fce41d67f2078 | [
"BSD-3-Clause"
] | 67 | 2015-01-23T21:46:05.000Z | 2022-02-23T22:50:27.000Z | // *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:... | 34.852113 | 106 | 0.672257 | rookie80 |
13f3f354512c36c2a91c9f74164700da0679a8c8 | 546 | hpp | C++ | inc/core/timer.hpp | paklui/gearshifft | 2ec19e82ce0b065356132a58a00a3562ef131c55 | [
"Apache-2.0"
] | 31 | 2017-03-06T08:23:26.000Z | 2021-11-13T07:59:28.000Z | inc/core/timer.hpp | paklui/gearshifft | 2ec19e82ce0b065356132a58a00a3562ef131c55 | [
"Apache-2.0"
] | 130 | 2016-06-07T14:38:58.000Z | 2021-07-12T06:08:29.000Z | inc/core/timer.hpp | paklui/gearshifft | 2ec19e82ce0b065356132a58a00a3562ef131c55 | [
"Apache-2.0"
] | 8 | 2016-06-07T12:48:18.000Z | 2020-10-06T16:43:03.000Z |
#ifndef TIMER_HPP_
#define TIMER_HPP_
#include <chrono>
#include <stdexcept>
namespace gearshifft {
/**
* Timer Base Class
*/
template<typename TimerImpl>
struct Timer : public TimerImpl {
bool started = false;
void startTimer() {
TimerImpl::startTimer();
started = true;
}
... | 17.612903 | 66 | 0.622711 | paklui |
13f579bbab65a0b282251a691d7934a21c97765d | 455 | cpp | C++ | src/graphgen/printgraph.cpp | DavePearce/DynamicTopologicalSort | d0af58e303387327be47d644d795f9914104f669 | [
"BSD-3-Clause"
] | 8 | 2018-08-02T23:19:13.000Z | 2022-03-10T20:23:50.000Z | src/graphgen/printgraph.cpp | DavePearce/DynamicTopologicalSort | d0af58e303387327be47d644d795f9914104f669 | [
"BSD-3-Clause"
] | null | null | null | src/graphgen/printgraph.cpp | DavePearce/DynamicTopologicalSort | d0af58e303387327be47d644d795f9914104f669 | [
"BSD-3-Clause"
] | 2 | 2020-08-08T09:32:42.000Z | 2021-08-01T16:41:06.000Z | #include "graphgen.hpp"
using namespace std;
int main(int argc, char *argv[]) {
int V;
std::vector<pair<unsigned int, unsigned int> > edgelist;
V = read_edgelist(cin,edgelist);
cout << "V = " << V << endl;
cout << "E = (" << edgelist.size() << ") { ";
for(int i=0;i!=edgelist.size();i++) {
... | 25.277778 | 61 | 0.50989 | DavePearce |
13f75ac3b28098fcfeae6310eaf325acf2a015cd | 1,843 | cpp | C++ | src/lib/pubkey/ed25519/ed25519.cpp | tiwoc/botan | 6b7e1ba04d394aa7feaee22e859c29264280bf4e | [
"BSD-2-Clause"
] | 1 | 2017-03-21T14:32:53.000Z | 2017-03-21T14:32:53.000Z | src/lib/pubkey/ed25519/ed25519.cpp | tiwoc/botan | 6b7e1ba04d394aa7feaee22e859c29264280bf4e | [
"BSD-2-Clause"
] | null | null | null | src/lib/pubkey/ed25519/ed25519.cpp | tiwoc/botan | 6b7e1ba04d394aa7feaee22e859c29264280bf4e | [
"BSD-2-Clause"
] | null | null | null | /*
* Ed25519
* (C) 2017 Ribose Inc
*
* Based on the public domain code from SUPERCOP ref10 by
* Peter Schwabe, Daniel J. Bernstein, Niels Duif, Tanja Lange, Bo-Yin Yang
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/ed25519.h>
#include <botan/internal/ed25519_internal.h>
#i... | 19 | 74 | 0.590884 | tiwoc |
13f7dae94f46c57dea7f1757595135d7fa987f96 | 2,625 | hpp | C++ | powerset.hpp | alabuzhev/cppitertools | 7d6821df04af066eb4d345bef732f2509433f7e2 | [
"BSD-2-Clause"
] | null | null | null | powerset.hpp | alabuzhev/cppitertools | 7d6821df04af066eb4d345bef732f2509433f7e2 | [
"BSD-2-Clause"
] | null | null | null | powerset.hpp | alabuzhev/cppitertools | 7d6821df04af066eb4d345bef732f2509433f7e2 | [
"BSD-2-Clause"
] | 1 | 2021-07-16T07:51:27.000Z | 2021-07-16T07:51:27.000Z | #ifndef ITER_POWERSET_HPP_
#define ITER_POWERSET_HPP_
#include "internal/iterbase.hpp"
#include "combinations.hpp"
#include <cassert>
#include <memory>
#include <utility>
#include <iterator>
#include <type_traits>
namespace iter {
namespace impl {
template <typename Container>
class Powersetter;
}
temp... | 24.53271 | 80 | 0.653333 | alabuzhev |
13f7fff4d4272d63e0dd4f4997dfd662ee6ba639 | 745 | hpp | C++ | src/EnumClassCast.hpp | Loic-Corenthy/miniGL | 47976ea80e253e115eafae5934ec3ebdd2275d16 | [
"MIT"
] | 1 | 2021-08-18T03:54:22.000Z | 2021-08-18T03:54:22.000Z | src/EnumClassCast.hpp | Loic-Corenthy/miniGL | 47976ea80e253e115eafae5934ec3ebdd2275d16 | [
"MIT"
] | null | null | null | src/EnumClassCast.hpp | Loic-Corenthy/miniGL | 47976ea80e253e115eafae5934ec3ebdd2275d16 | [
"MIT"
] | null | null | null | //===============================================================================================//
/*!
* \file EnumClassCast.hpp
* \author Loïc Corenthy
* \version 1.0
*/
//===============================================================================================//
#pragma once
namespace miniGL... | 29.8 | 99 | 0.471141 | Loic-Corenthy |
13f85a272f4d4eef013040c5584b1a25058abd2c | 1,541 | hpp | C++ | engine/editor/public/log_viewer/log_viewer.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 12 | 2019-01-02T11:13:19.000Z | 2020-06-02T10:58:20.000Z | engine/editor/public/log_viewer/log_viewer.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | null | null | null | engine/editor/public/log_viewer/log_viewer.hpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 1 | 2020-04-03T11:54:53.000Z | 2020-04-03T11:54:53.000Z | #ifndef EDITOR_LOG_VIEWER_LOG_VIEWER_HPP_INCLUDE
#define EDITOR_LOG_VIEWER_LOG_VIEWER_HPP_INCLUDE
#include <core/atl/array.hpp>
#include <core/atl/string_view.hpp>
#include <core/logging.hpp>
#include <list_widget.hpp>
#include <core/diagnostic_macros.hpp>
ANTON_DISABLE_WARNINGS();
#include <QWidget>
ANTON_RESTORE_WA... | 28.537037 | 110 | 0.713173 | kociap |
cd00e429b48c0a581624bd2b704ae0efcd6b6b35 | 366 | cpp | C++ | src/Domain/Commands/command.cpp | miyabishi/waltz_common_library | f2a779930521d461ce987987a9ac5f7eabd2bc13 | [
"BSD-3-Clause"
] | null | null | null | src/Domain/Commands/command.cpp | miyabishi/waltz_common_library | f2a779930521d461ce987987a9ac5f7eabd2bc13 | [
"BSD-3-Clause"
] | null | null | null | src/Domain/Commands/command.cpp | miyabishi/waltz_common_library | f2a779930521d461ce987987a9ac5f7eabd2bc13 | [
"BSD-3-Clause"
] | null | null | null | #include "command.h"
using namespace waltz::common::Commands;
Command::Command(const CommandId& aCommandId)
:mCommandId_(aCommandId)
{
}
Command::~Command()
{
}
bool Command::commandIdEquals(const CommandId& aCommandId)
{
return (aCommandId == mCommandId_);
}
bool Command::operator==(Command& aOther)
{
... | 15.25 | 58 | 0.721311 | miyabishi |
cd0483c72f919e08a67b4eeaebef3b62b0ff9798 | 1,932 | hpp | C++ | src/local/local.hpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | null | null | null | src/local/local.hpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | null | null | null | src/local/local.hpp | clearstorydata/mesos | 4164125048c6635a4d0dbe72daf243457b0f325b | [
"Apache-2.0"
] | 1 | 2022-02-19T10:59:37.000Z | 2022-02-19T10:59:37.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 34.5 | 81 | 0.676501 | clearstorydata |
cd082427b0ffe257e00ed59548c28bc712ce9b9a | 1,581 | cc | C++ | source/extensions/quic_listeners/quiche/codec_impl.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | 1 | 2019-11-19T22:27:58.000Z | 2019-11-19T22:27:58.000Z | source/extensions/quic_listeners/quiche/codec_impl.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | null | null | null | source/extensions/quic_listeners/quiche/codec_impl.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | null | null | null | #include "extensions/quic_listeners/quiche/codec_impl.h"
#include "extensions/quic_listeners/quiche/envoy_quic_server_stream.h"
namespace Envoy {
namespace Quic {
bool QuicHttpConnectionImplBase::wantsToWrite() { return quic_session_.HasDataToWrite(); }
QuicHttpServerConnectionImpl::QuicHttpServerConnectionImpl(
... | 37.642857 | 90 | 0.772929 | jaricftw |
cd094d278397d329bdc27ac4e0f6d2792154df19 | 2,904 | hpp | C++ | include/armnn/backends/ITensorHandleFactory.hpp | muthukumaravel7/armnn | 879ec231203df5b0a94462c0b247dc7d8d8a7a44 | [
"MIT"
] | null | null | null | include/armnn/backends/ITensorHandleFactory.hpp | muthukumaravel7/armnn | 879ec231203df5b0a94462c0b247dc7d8d8a7a44 | [
"MIT"
] | null | null | null | include/armnn/backends/ITensorHandleFactory.hpp | muthukumaravel7/armnn | 879ec231203df5b0a94462c0b247dc7d8d8a7a44 | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "ITensorHandle.hpp"
#include <armnn/IRuntime.hpp>
#include <armnn/MemorySources.hpp>
#include <armnn/Types.hpp>
#include <armnn/utility/IgnoreUnused.hpp>
namespace armnn
{
class ITensorHandleFactory
{
publ... | 39.780822 | 119 | 0.650138 | muthukumaravel7 |
cd0a067d51b7d376aa573949dd527e395fc305f5 | 753 | cc | C++ | naos/src/kernel/preempt.cc | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 14 | 2020-02-12T11:07:58.000Z | 2022-02-02T00:05:08.000Z | naos/src/kernel/preempt.cc | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | null | null | null | naos/src/kernel/preempt.cc | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 4 | 2020-02-27T09:53:53.000Z | 2021-11-07T17:43:44.000Z | #include "kernel/preempt.hpp"
#include "kernel/scheduler.hpp"
#include "kernel/task.hpp"
namespace task
{
void yield_preempt()
{
thread_t *thd = current();
if (likely(thd != nullptr))
{
if (thd->preempt_data.preemptible())
{
if (thd->attributes & thread_attributes::need_schedul... | 18.825 | 67 | 0.598938 | kadds |
cd0f3e4b4e8042e30605dc6649bacbf97e6d54c6 | 3,858 | cpp | C++ | Day20/Day20.cpp | markcheeseborough/AdventOfCode2021 | c6cbf544c618728aa8fac9f628d05b3974c4bdef | [
"MIT"
] | null | null | null | Day20/Day20.cpp | markcheeseborough/AdventOfCode2021 | c6cbf544c618728aa8fac9f628d05b3974c4bdef | [
"MIT"
] | null | null | null | Day20/Day20.cpp | markcheeseborough/AdventOfCode2021 | c6cbf544c618728aa8fac9f628d05b3974c4bdef | [
"MIT"
] | null | null | null | #include <algorithm>
#include <array>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
enum class Pixel
{
Dark,
Light
};
class Grid
{
public:
Grid(int width, int height)
: width_{ width },
height_{ height },
pixels_(height_, std::vector<Pixel>(width_, Pix... | 22.828402 | 140 | 0.486781 | markcheeseborough |
99806cfd5906d0ffd0b640afd2547ac5e1d0601b | 2,270 | cpp | C++ | UOJ/UR#5/T2/std.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | UOJ/UR#5/T2/std.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | UOJ/UR#5/T2/std.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<algorithm>
#define L 1<<25
#define C (c=*A++)
#define ENS //__attribute__((optimize("-O2")))
#define NES //__attribute__((optimize("-O2"))) __inline__ __attribute__((always_inline))
#define N 300001
using namespace std;int n,m,p,f[N],g[N],d[N],fa[N],e[N],E[N],z[N],mx[N],s[N],w[N],S[N],tl,li[N... | 63.055556 | 211 | 0.54185 | jinzhengyu1212 |
99820422044c70df1d5f1c53362b84969801b12d | 285 | hpp | C++ | source/worker/network/interfaces/structures/answer.hpp | RomainAmuat/cluster | eb25c20a94259f98ac7d46c19b8958a827d5502b | [
"MIT"
] | null | null | null | source/worker/network/interfaces/structures/answer.hpp | RomainAmuat/cluster | eb25c20a94259f98ac7d46c19b8958a827d5502b | [
"MIT"
] | null | null | null | source/worker/network/interfaces/structures/answer.hpp | RomainAmuat/cluster | eb25c20a94259f98ac7d46c19b8958a827d5502b | [
"MIT"
] | null | null | null | #ifndef ANSWER_HPP
#define ANSWER_HPP
typedef struct Answer {
Answer() : status (1) { ; }
Answer(int s) : status(s) { ; }
Answer(std::string ret) : status(2), data(ret) { ; }
int status; // 0 = Not Ok, 1 = Ok without answer, 2 = Ok with answer
std::string data;
} Answer;
#endif | 23.75 | 69 | 0.635088 | RomainAmuat |
99821ee2ef6103208d0596ed53bc1135b7e40b8c | 7,165 | cpp | C++ | modules/skottie/src/effects/BuldgeEffect.cpp | stayf/skia | 454c04e8f3b45ba0c518cbdd49f67bfb95d83c35 | [
"BSD-3-Clause"
] | 6,304 | 2015-01-05T23:45:12.000Z | 2022-03-31T09:48:13.000Z | modules/skottie/src/effects/BuldgeEffect.cpp | stayf/skia | 454c04e8f3b45ba0c518cbdd49f67bfb95d83c35 | [
"BSD-3-Clause"
] | 67 | 2016-04-18T13:30:02.000Z | 2022-03-31T23:06:55.000Z | modules/skottie/src/effects/BuldgeEffect.cpp | stayf/skia | 454c04e8f3b45ba0c518cbdd49f67bfb95d83c35 | [
"BSD-3-Clause"
] | 1,231 | 2015-01-05T03:17:39.000Z | 2022-03-31T22:54:58.000Z | /*
* Copyright 2021 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "modules/skottie/src/effects/Effects.h"
#include "include/core/SkPictureRecorder.h"
#include "include/effects/SkRuntimeEffect.h"
#include "include/private/SkNx.h"
#i... | 33.171296 | 108 | 0.609211 | stayf |
99884f044d789f86ff19408fc02b01111b19027e | 6,844 | cpp | C++ | src/ui/simulator/simulator_robot_display.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 6 | 2020-03-29T09:37:01.000Z | 2022-01-20T08:56:31.000Z | src/ui/simulator/simulator_robot_display.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 1 | 2021-03-05T08:00:50.000Z | 2021-03-05T08:00:50.000Z | src/ui/simulator/simulator_robot_display.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 11 | 2019-05-13T00:04:38.000Z | 2022-01-20T08:56:38.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 29.756522 | 126 | 0.667884 | h2ssh |
9997e7f0be0d5a5f20898154cee383a7d1f51723 | 194 | cc | C++ | mock/event/handler.cc | Millisman/OCPP-NANO | e38db48c989e84b4d7eeaf1e90fcf9ef6c9cf5a5 | [
"Apache-2.0"
] | null | null | null | mock/event/handler.cc | Millisman/OCPP-NANO | e38db48c989e84b4d7eeaf1e90fcf9ef6c9cf5a5 | [
"Apache-2.0"
] | null | null | null | mock/event/handler.cc | Millisman/OCPP-NANO | e38db48c989e84b4d7eeaf1e90fcf9ef6c9cf5a5 | [
"Apache-2.0"
] | null | null | null |
#include "event/handler.h"
#include "event/loop.h"
namespace event {
Handler::Handler() { Loop::get().addHandler(this); }
Handler::~Handler() {}
} // namespace event
| 13.857143 | 56 | 0.587629 | Millisman |
9999266a8e9f08f33f3de8291fb89ea29832833e | 677 | cpp | C++ | Leetcode/res/Group Anagrams/4.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | 1 | 2022-03-04T16:06:41.000Z | 2022-03-04T16:06:41.000Z | Leetcode/res/Group Anagrams/4.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | Leetcode/res/Group Anagrams/4.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | \*
Author: allannozomu
Runtime: 56 ms
Memory: 21.1 MB*\
class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
unordered_map<string, vector<string>> mapa;
set<string> keys;
for (const string& str : strs){
string key = str;
sort... | 24.178571 | 64 | 0.493353 | AllanNozomu |
99a02d5dbe054c5085b49b226017ffcc3e292c6e | 398 | cpp | C++ | count_lower.cpp | LSSYA/Competitve-Programming | 5217cc509fe2c4560b64ef7fc7a655c94e9580a5 | [
"MIT"
] | null | null | null | count_lower.cpp | LSSYA/Competitve-Programming | 5217cc509fe2c4560b64ef7fc7a655c94e9580a5 | [
"MIT"
] | null | null | null | count_lower.cpp | LSSYA/Competitve-Programming | 5217cc509fe2c4560b64ef7fc7a655c94e9580a5 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> smallerNumbersThanCurrent(vector<int>& nums)
{
int count=0;
vector<int>ans;
for(int i=0; i<nums.size(); i++)
{
for(int j=0; j<nums.size(); j++)
{
if(nums[i]>nums[j])
{
count++;
}
}
ans.push_back(count);
count = 0;
}
return ans;
... | 13.266667 | 72 | 0.562814 | LSSYA |
99aab16eab3a6e3458b7bbacb274474769bfdbe8 | 5,140 | cpp | C++ | src/test/generate/generate.cpp | BigRedEye/cacos | da80d67375054260eac7518e3b53163e399461fe | [
"MIT"
] | 3 | 2019-02-22T18:25:12.000Z | 2019-02-27T13:32:00.000Z | src/test/generate/generate.cpp | BigRedEye/cacos | da80d67375054260eac7518e3b53163e399461fe | [
"MIT"
] | null | null | null | src/test/generate/generate.cpp | BigRedEye/cacos | da80d67375054260eac7518e3b53163e399461fe | [
"MIT"
] | null | null | null | #include "cacos/test/generate/generate.h"
#include "cacos/test/generate/generator.h"
#include "cacos/test/suite/test.h"
#include "cacos/config/config.h"
#include "cacos/util/split.h"
#include "cacos/util/string.h"
#include <cpparg/cpparg.h>
#include <map>
#include <string>
namespace cacos::test {
template<Type ty... | 27.634409 | 110 | 0.533463 | BigRedEye |
99b624ae40d97045fefd050338821d9c31a0ee5d | 38,937 | cpp | C++ | JetByteTools/Win32Tools/Test/IntrusiveRedBlackTreeTest.cpp | LenHolgate/PracticalTesting | 006a30634a3a12f90de1be255cabe4e471fe44b8 | [
"Unlicense"
] | 1 | 2018-04-25T23:07:45.000Z | 2018-04-25T23:07:45.000Z | JetByteTools/Win32Tools/Test/IntrusiveRedBlackTreeTest.cpp | LenHolgate/PracticalTesting | 006a30634a3a12f90de1be255cabe4e471fe44b8 | [
"Unlicense"
] | null | null | null | JetByteTools/Win32Tools/Test/IntrusiveRedBlackTreeTest.cpp | LenHolgate/PracticalTesting | 006a30634a3a12f90de1be255cabe4e471fe44b8 | [
"Unlicense"
] | 2 | 2018-03-09T04:23:53.000Z | 2020-09-05T11:36:49.000Z | ///////////////////////////////////////////////////////////////////////////////
// File: IntrusiveRedBlackTreeTest.cpp
///////////////////////////////////////////////////////////////////////////////
//
// Copyright 2014 JetByte Limited.
//
// This software is provided "as is" without a warranty of any kind. All
// expr... | 31.502427 | 122 | 0.5983 | LenHolgate |
99b92333aedbfb9706e8ead4bee888f4159db945 | 2,647 | cpp | C++ | MapRenderer/src/loaders/GroundTextures.cpp | zerodowned/Iris1_DeveloperTools | 0b5510bb46824d8939846f73c7e63ed7eecf827d | [
"DOC"
] | 1 | 2019-02-08T18:03:28.000Z | 2019-02-08T18:03:28.000Z | MapRenderer/src/loaders/GroundTextures.cpp | SiENcE/Iris1_DeveloperTools | 0b5510bb46824d8939846f73c7e63ed7eecf827d | [
"DOC"
] | null | null | null | MapRenderer/src/loaders/GroundTextures.cpp | SiENcE/Iris1_DeveloperTools | 0b5510bb46824d8939846f73c7e63ed7eecf827d | [
"DOC"
] | 7 | 2015-03-11T22:06:23.000Z | 2019-12-21T09:49:57.000Z | //
// File: GroundTextures.cpp
// Created by: Alexander Oster - tensor@ultima-iris.de
//
#include "loaders/GroundTextures.h"
#include "Debug.h"
#include "uotype.h"
#include <string.h>
#include <iostream>
using namespace std;
cGroundTextureLoader * pGroundTextureLoader = NULL;
cGroundTextureLoader::cGroundTextureL... | 23.219298 | 97 | 0.65697 | zerodowned |
99ba22ce7690e900dc2c435598684d1f142aef68 | 7,921 | cpp | C++ | src/GARotorEstimator.cpp | mauriciocele/arap-sr-linearized | 94d7cb8b48b63da2065993528dcc97712523fb07 | [
"MIT"
] | 4 | 2021-01-05T15:14:34.000Z | 2021-09-08T14:08:49.000Z | src/GARotorEstimator.cpp | mauriciocele/arap-sr-linearized | 94d7cb8b48b63da2065993528dcc97712523fb07 | [
"MIT"
] | null | null | null | src/GARotorEstimator.cpp | mauriciocele/arap-sr-linearized | 94d7cb8b48b63da2065993528dcc97712523fb07 | [
"MIT"
] | null | null | null | #include "GARotorEstimator.h"
#include <array>
using Eigen::Vector3d;
using Eigen::Vector4d;
using Eigen::Matrix3d;
using Eigen::Matrix4d;
using Eigen::Quaterniond;
using std::vector;
using std::array;
/*
a = H4 * e1 + H5 * e2 + H6 * e3 + H1 * e4;
b = H5 * e1 + H7 * e2 + H8 * e3 + H2 * e4;
c = H6 * e1 + H8 * e2 + ... | 41.471204 | 542 | 0.371923 | mauriciocele |
99c8e0dbbfd4502ceb00ae8ecb6a0a240c1836dc | 2,051 | cpp | C++ | libraries/chain/evaluators/proposal_vote_evaluator.cpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/chain/evaluators/proposal_vote_evaluator.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/chain/evaluators/proposal_vote_evaluator.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #include <scorum/chain/evaluators/proposal_vote_evaluator.hpp>
#include <scorum/chain/schema/proposal_object.hpp>
#include <scorum/chain/evaluators/committee_accessor.hpp>
#include <scorum/chain/data_service_factory.hpp>
#include <scorum/chain/services/account.hpp>
#include <scorum/chain/services/proposal.hpp>
#incl... | 38.698113 | 111 | 0.764993 | scorum |
99c9c0357a053ed83181db4e2b7323298497615d | 5,609 | hpp | C++ | SDK/PUBG_ReplayRenderProgress_parameters.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 7 | 2019-03-06T11:04:52.000Z | 2019-07-10T20:00:51.000Z | SDK/PUBG_ReplayRenderProgress_parameters.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | null | null | null | SDK/PUBG_ReplayRenderProgress_parameters.hpp | realrespecter/PUBG-FULL-SDK | 5e2b0f103c74c95d2329c4c9dfbfab48aa0da737 | [
"MIT"
] | 10 | 2019-03-06T11:53:46.000Z | 2021-02-18T14:01:11.000Z | #pragma once
// PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_ReplayRenderProgress_classes.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------... | 42.172932 | 161 | 0.620788 | realrespecter |
99d120a1f1d436d28a50ffaef86b4cebf1ce1c12 | 335 | cpp | C++ | template/template.cpp | 5522MIKE/algorithm | 7a1e058dec3a609616ca02e9b8b36eda087f97f6 | [
"MIT"
] | null | null | null | template/template.cpp | 5522MIKE/algorithm | 7a1e058dec3a609616ca02e9b8b36eda087f97f6 | [
"MIT"
] | null | null | null | template/template.cpp | 5522MIKE/algorithm | 7a1e058dec3a609616ca02e9b8b36eda087f97f6 | [
"MIT"
] | null | null | null | /*
* @Author: MikyMing
* @Date: 2021-03-25 01:01:16
* @LastEditors: MikyMing
* @LastEditTime: 2021-03-25 01:15:23
* @Description: set
* @Analysis: set
* @FilePath: /algorithm/template/template.cpp
*/
#include<bits/stdc++.h> //万用头文件
#include<cstdio>
using namespace std;
int main(){
cout << "test!";
print... | 18.611111 | 46 | 0.644776 | 5522MIKE |
99d2b820e2e04543c93da29ded8c43b779cd2556 | 4,746 | cpp | C++ | src/saiga/opengl/window/sdl_window.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/opengl/window/sdl_window.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/opengl/window/sdl_window.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2017 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "saiga/config.h"
#ifdef SAIGA_USE_SDL
# include "saiga/opengl/imgui/imgui_impl_sdl_gl3.h"
# include "sdl_window.h"
namespace Saiga
{
SDLWindow::SDLWindow(WindowParameters windowP... | 26.076923 | 117 | 0.668563 | SimonMederer |
99d32975f5cd90f0006db6ae21830ef7a8a7e5d7 | 1,631 | hpp | C++ | include/System/Text/RegularExpressions/RegexReplacement.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Text/RegularExpressions/RegexReplacement.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Text/RegularExpressions/RegexReplacement.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Completed includes
// Begin forward declares
// Forward declaring namespace: System::... | 47.970588 | 200 | 0.728387 | darknight1050 |
99d330aea3274135c917f88967a10586652a17c9 | 803 | cpp | C++ | src/SNMPResponse.cpp | shortbloke/Arduino_SNMP | de7786a575f60d0c397f62475a13b2d96c2ac8e6 | [
"MIT"
] | null | null | null | src/SNMPResponse.cpp | shortbloke/Arduino_SNMP | de7786a575f60d0c397f62475a13b2d96c2ac8e6 | [
"MIT"
] | null | null | null | src/SNMPResponse.cpp | shortbloke/Arduino_SNMP | de7786a575f60d0c397f62475a13b2d96c2ac8e6 | [
"MIT"
] | null | null | null | #include "include/SNMPResponse.h"
bool SNMPResponse::addResponse(const VarBind& response){
this->varbindList.emplace_back(response);
return true;
}
bool SNMPResponse::addErrorResponse(const VarBind& response){
int index = this->varbindList.size() + 1;
this->varbindList.emplace_back(response);
... | 32.12 | 109 | 0.704857 | shortbloke |
99d5727bd1354406ca2510bab59280dfeabbf08c | 3,297 | cpp | C++ | RoboChase/Scene.cpp | nspool/RoboChase | 907a77187ca94194f1ee2b2e4ad075ac6fe13379 | [
"MIT"
] | null | null | null | RoboChase/Scene.cpp | nspool/RoboChase | 907a77187ca94194f1ee2b2e4ad075ac6fe13379 | [
"MIT"
] | null | null | null | RoboChase/Scene.cpp | nspool/RoboChase | 907a77187ca94194f1ee2b2e4ad075ac6fe13379 | [
"MIT"
] | null | null | null | //
// Scene.cpp
// RoboChase
//
// Created by nsp on 29/3/17.
// Copyright © 2017 nspool. All rights reserved.
//
#include "Scene.hpp"
Scene::Scene(SDL_Renderer* renderer)
{
renderer_ = renderer;
}
bool Scene::isGameOver() {
return gameOver_;
}
bool Scene::isGameWon() {
return (ROBOT_COUNT == destroyed_);... | 22.582192 | 115 | 0.594783 | nspool |
99dd11e710a6f1994dd0f95f0c380c6871d823b3 | 1,110 | cpp | C++ | src/prod/src/Transport/MessageHeadersCollection.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Transport/MessageHeadersCollection.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Transport/MessageHeadersCollection.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 26.428571 | 98 | 0.58018 | vishnuk007 |
99e095dc21d0b68ec71cf82cca1d84ce0db72896 | 2,602 | cpp | C++ | Framework/Source/iOS/LWVideo/LWVideoDrivers/LWVideoDriver_OpenGLES2_iOS.cpp | slicer4ever/Lightwaver | 1f444e42eab9988632f541ab3c8f491d557c7de7 | [
"MIT"
] | 3 | 2017-10-24T08:04:49.000Z | 2018-08-28T10:08:08.000Z | Framework/Source/iOS/LWVideo/LWVideoDrivers/LWVideoDriver_OpenGLES2_iOS.cpp | slicer4ever/Lightwave | 1f444e42eab9988632f541ab3c8f491d557c7de7 | [
"MIT"
] | null | null | null | Framework/Source/iOS/LWVideo/LWVideoDrivers/LWVideoDriver_OpenGLES2_iOS.cpp | slicer4ever/Lightwave | 1f444e42eab9988632f541ab3c8f491d557c7de7 | [
"MIT"
] | null | null | null | #include "LWVideo/LWVideoDrivers/LWVideoDriver_OpenGLES2.h"
#include "LWPlatform/LWWindow.h"
#include <iostream>
LWVideoDriver_OpenGLES2 *LWVideoDriver_OpenGLES2::MakeVideoDriver(LWWindow *Window) {
LWVideoDriver *Driver = nullptr;
LWOpenGLES2Context Context;
EAGLContext *GLContext = [[EAGLContext alloc] ini... | 40.030769 | 107 | 0.718678 | slicer4ever |
99e76f6753f638ec050474c7315ee742a596cf90 | 1,442 | hpp | C++ | src/org/apache/poi/ss/util/ExpandedDouble.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/util/ExpandedDouble.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/util/ExpandedDouble.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/util/ExpandedDouble.java
#pragma once
#include <fwd-POI.hpp>
#include <java/math/fwd-POI.hpp>
#include <org/apache/poi/ss/util/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct default_init_tag;
class poi::ss::util::ExpandedDouble final
: public ::java::lang::Obje... | 25.298246 | 80 | 0.703883 | pebble2015 |
99ed558f73fddcfbbb25efdc3e379871451c1231 | 1,632 | cpp | C++ | editor/src/DebugView.cpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | editor/src/DebugView.cpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | editor/src/DebugView.cpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | #include "DebugView.hpp"
#include "imgui.h"
#include "Core/Core.hpp"
#include "Debug/Debug.hpp"
#include "Engine/EngineSettings.hpp"
#include "System/Time.hpp"
#include "EditorContext.hpp"
namespace kokko
{
namespace editor
{
DebugView::DebugView() :
EditorWindow("Debug"),
debug(nullptr)
... | 22.666667 | 93 | 0.702206 | aleksigron |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.