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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e906cf3c644a94cc00e3720d99685bb7742adfa9 | 4,573 | cpp | C++ | src/lib/pq/result.cpp | skaae/taopq | a621cbba1f63c599819466f3da7ef7d352bdaf0d | [
"BSL-1.0"
] | 142 | 2018-12-10T10:12:50.000Z | 2022-03-26T16:01:06.000Z | src/lib/pq/result.cpp | skaae/taopq | a621cbba1f63c599819466f3da7ef7d352bdaf0d | [
"BSL-1.0"
] | 45 | 2018-11-29T13:13:59.000Z | 2022-01-17T07:03:30.000Z | src/lib/pq/result.cpp | skaae/taopq | a621cbba1f63c599819466f3da7ef7d352bdaf0d | [
"BSL-1.0"
] | 34 | 2018-11-29T14:03:59.000Z | 2022-03-15T13:08:13.000Z | // Copyright (c) 2016-2021 Daniel Frey and Dr. Colin Hirsch
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#include <cassert>
#include <charconv>
#include <cstring>
#include <stdexcept>
#include <libpq-fe.h>
#i... | 29.503226 | 145 | 0.579707 | skaae |
e90702114395409435b67b5d8629cdffb3e5ff40 | 1,651 | hpp | C++ | src/triangle2d.hpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | src/triangle2d.hpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | src/triangle2d.hpp | degarashi/beat | 456cc4469067509f0746fbe4eca0d3a0879cb894 | [
"MIT"
] | null | null | null | #pragma once
#include "g2.hpp"
#include "constant.hpp"
#include "imodel2d.hpp"
namespace beat {
namespace g2 {
class AABB;
struct Circle;
struct Triangle : CID<Triangle> {
Vec2 pos[3];
Triangle() = default;
Triangle(const Vec2& p0, const Vec2& p1, const Vec2& p2) noexcept;
static Triangle Encapsule... | 29.482143 | 74 | 0.646275 | degarashi |
e909944625c116b12ed728bb5747f7018e3f8d5e | 2,692 | cpp | C++ | AlconCalculator/src/applicationui.cpp | eperiod-software/alcon-calculator | eaf801e4e2764fa4bc7586aa66812d2788ae565a | [
"BSD-3-Clause"
] | null | null | null | AlconCalculator/src/applicationui.cpp | eperiod-software/alcon-calculator | eaf801e4e2764fa4bc7586aa66812d2788ae565a | [
"BSD-3-Clause"
] | null | null | null | AlconCalculator/src/applicationui.cpp | eperiod-software/alcon-calculator | eaf801e4e2764fa4bc7586aa66812d2788ae565a | [
"BSD-3-Clause"
] | null | null | null | // Application with UI adaptability support template
#include "applicationui.hpp"
#include <bb/cascades/Application>
#include <bb/cascades/QmlDocument>
#include <bb/cascades/AbstractPane>
#include <bb/cascades/Window>
#include <math.h>
#define DEBUG_CLASS "ApplicationUI"
#include "debug.hpp"
using namespace bb::casc... | 29.582418 | 92 | 0.722511 | eperiod-software |
e90b636b10988d0615c8ad1444cef8ab7a4f5021 | 1,850 | cpp | C++ | libsrc/smsg/SMsg_TakeItemAck.cpp | christywear/UlServer | 44d090ab266f7de0096b8f55c0906f21522243ff | [
"BSD-3-Clause"
] | 5 | 2018-08-17T17:16:50.000Z | 2019-07-01T12:54:01.000Z | libsrc/smsg/SMsg_TakeItemAck.cpp | christywear/UlServer | 44d090ab266f7de0096b8f55c0906f21522243ff | [
"BSD-3-Clause"
] | 2 | 2019-01-06T15:32:09.000Z | 2019-01-18T06:03:26.000Z | libsrc/smsg/SMsg_TakeItemAck.cpp | christywear/UlServer | 44d090ab266f7de0096b8f55c0906f21522243ff | [
"BSD-3-Clause"
] | 4 | 2018-08-16T15:41:15.000Z | 2020-06-22T06:09:10.000Z | // SMsg_TakeItemAck.cpp -*- C++ -*-
// $Id: SMsg_TakeItemAck.cpp,v 1.1 1997-09-18 16:49:05-07 jason Exp $
// Copyright 1996-1997 Lyra LLC, All rights reserved.
//
// message implementation
#ifdef __GNUC__
#pragma implementation "SMsg_TakeItemAck.h"
#endif
#ifdef WIN32
#define STRICT
#include "unix.h"
#include <winso... | 17.619048 | 108 | 0.675135 | christywear |
e90bb256762739cf8f2c3852115c00c391825424 | 748 | cc | C++ | chrono/floor.cc | pycpp/stl-test | cbae1e77a16c102715c1c0c64ba3f929f78aadef | [
"MIT"
] | null | null | null | chrono/floor.cc | pycpp/stl-test | cbae1e77a16c102715c1c0c64ba3f929f78aadef | [
"MIT"
] | null | null | null | chrono/floor.cc | pycpp/stl-test | cbae1e77a16c102715c1c0c64ba3f929f78aadef | [
"MIT"
] | null | null | null | // :copyright: (c) 2017-2018 Alex Huszagh.
// :license: MIT, see LICENSE.md for more details.
/*
* \addtogroup Tests
* \brief `chrono::floor` unittests.
*/
#include <pycpp/stl/chrono/floor.h>
#include <gtest/gtest.h>
PYCPP_USING_NAMESPACE
// TEST
// ----
TEST(chrono, floor)
{
using clock_type = std::chro... | 25.793103 | 82 | 0.681818 | pycpp |
e90bc92cdfcfe6d733acbc652b7e3f4778958625 | 5,145 | cc | C++ | agent/qconf_feedback.cc | wbaweto/QConf | 977a53d601eab2055fd8fb344b92f4026d178ad5 | [
"BSD-2-Clause"
] | 2,056 | 2015-03-23T04:51:13.000Z | 2022-03-20T11:57:36.000Z | agent/qconf_feedback.cc | xzz0329/QConf | f852f984de0b55bbca5bcb433a7be5af6383c449 | [
"BSD-2-Clause"
] | 116 | 2015-03-25T01:32:39.000Z | 2022-02-12T03:21:08.000Z | agent/qconf_feedback.cc | xzz0329/QConf | f852f984de0b55bbca5bcb433a7be5af6383c449 | [
"BSD-2-Clause"
] | 634 | 2015-03-24T11:51:22.000Z | 2022-01-28T04:22:19.000Z | #include <errno.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <zk_adaptor.h>
#include <sstream>
#include "qconf_const.h"
#include "qconf_log.h"
#include "qconf_feedback.h"
#include "qconf_format.h"
#include "qlibc.h"
using namespace std;
#... | 27.961957 | 140 | 0.624101 | wbaweto |
e911271ce6a0f0a7e7eb596dae418dd83c890e45 | 1,464 | hpp | C++ | shared/Core/BSSBMasterAPI.hpp | EnderdracheLP/BeatSaberServerBrowserQuest | 962fc089a2a8bbcf091688295b5104d49aec0d6b | [
"MIT"
] | 6 | 2021-11-15T19:59:59.000Z | 2022-03-28T22:25:50.000Z | shared/Core/BSSBMasterAPI.hpp | EnderdracheLP/BeatSaberServerBrowserQuest | 962fc089a2a8bbcf091688295b5104d49aec0d6b | [
"MIT"
] | 3 | 2021-11-15T23:44:05.000Z | 2022-01-03T00:20:35.000Z | shared/Core/BSSBMasterAPI.hpp | EnderdracheLP/BeatSaberServerBrowserQuest | 962fc089a2a8bbcf091688295b5104d49aec0d6b | [
"MIT"
] | 2 | 2021-08-31T22:26:39.000Z | 2021-10-03T16:27:13.000Z | #pragma once
#include "ServerBrowserResult.hpp"
#include <string>
namespace ServerBrowser::Core {
class BSSBMasterAPI {
static std::string exception;
public:
static const std::string get_Exception() { return exception; }
//static std::optional<BeatSaver::Page> SearchPaged(std::string ... | 56.307692 | 293 | 0.708333 | EnderdracheLP |
e9178f3cfcc78d6672f4d3ab4e220eb466010f4c | 12,504 | cpp | C++ | src/ARIA/ArLaserFilter.cpp | rzsavilla/Robot_PathPlanning | 7ca805b917824ecaf8f12a950b1f77bd76ac5836 | [
"MIT"
] | 1 | 2018-10-13T02:50:25.000Z | 2018-10-13T02:50:25.000Z | src/ARIA/ArLaserFilter.cpp | rzsavilla/Robot_PathPlanning | 7ca805b917824ecaf8f12a950b1f77bd76ac5836 | [
"MIT"
] | null | null | null | src/ARIA/ArLaserFilter.cpp | rzsavilla/Robot_PathPlanning | 7ca805b917824ecaf8f12a950b1f77bd76ac5836 | [
"MIT"
] | 1 | 2018-10-13T02:50:26.000Z | 2018-10-13T02:50:26.000Z | /*
MobileRobots Advanced Robotics Interface for Applications (ARIA)
Copyright (C) 2004, 2005 ActivMedia Robotics LLC
Copyright (C) 2006, 2007, 2008, 2009 MobileRobots Inc.
Copyright (C) 2010, 2011 Adept Technology, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms o... | 29.421176 | 296 | 0.690499 | rzsavilla |
e917d91658cbcdd237dd924ee5fe04cef157b638 | 1,341 | hh | C++ | include/GUI/Screen.hh | Shinao/JustAGame | d2683b9a1b33f236e5f87b1cb26444be50a9851a | [
"MIT"
] | null | null | null | include/GUI/Screen.hh | Shinao/JustAGame | d2683b9a1b33f236e5f87b1cb26444be50a9851a | [
"MIT"
] | null | null | null | include/GUI/Screen.hh | Shinao/JustAGame | d2683b9a1b33f236e5f87b1cb26444be50a9851a | [
"MIT"
] | null | null | null | #ifndef SCREEN_HH_
# define SCREEN_HH_
# include "GUI/Layer.hh"
# include "GUI/EventManager.hh"
#include <iostream>
// Screen is the layer manager
// Update them and display them
// Manage mouse depending on the type and location and dispatch it to the appropriate layer
// Keyboard input are managed by callbacks wit... | 21.629032 | 91 | 0.66443 | Shinao |
e91bec4445248c79a9b7e656debebf79b6bc7f35 | 835 | cpp | C++ | Arkanoid/src/player.cpp | 5Daydreams/CppAssignement | 2b3662c81f6ecafb05d9a909bf2a869f256e5d9d | [
"Apache-2.0"
] | null | null | null | Arkanoid/src/player.cpp | 5Daydreams/CppAssignement | 2b3662c81f6ecafb05d9a909bf2a869f256e5d9d | [
"Apache-2.0"
] | null | null | null | Arkanoid/src/player.cpp | 5Daydreams/CppAssignement | 2b3662c81f6ecafb05d9a909bf2a869f256e5d9d | [
"Apache-2.0"
] | null | null | null | #include "player.h"
#include "engine.h"
#include "game.h"
void Player::update()
{
float direction = 0;
if (keys[SDL_SCANCODE_D])
{
direction = +1;
}
if (keys[SDL_SCANCODE_A])
{
direction = -1;
}
x += direction * speed * deltaTime;
paddleRect.x = x; // updating paddle position
innerRect.x = x + 2; // i... | 20.365854 | 88 | 0.635928 | 5Daydreams |
11e6bea3c99fd0a08a5dec406f984696403dd991 | 3,450 | cpp | C++ | src/shader.cpp | Eleobert/mona | 079e70b190b0850cf2579c1b0872da87f2706d80 | [
"MIT"
] | null | null | null | src/shader.cpp | Eleobert/mona | 079e70b190b0850cf2579c1b0872da87f2706d80 | [
"MIT"
] | null | null | null | src/shader.cpp | Eleobert/mona | 079e70b190b0850cf2579c1b0872da87f2706d80 | [
"MIT"
] | null | null | null |
#include "mona/internal/shader.hpp"
#include "slam/slam.h"
#include <glm/gtc/type_ptr.hpp>
#include <fstream>
#include <iostream>
auto compile(gl::GLenum shader_type, const std::string& path) -> gl::GLuint
{
std::ifstream file;
file.exceptions(std::ifstream::failbit | std::ifstream::badbit);
file.open(... | 26.136364 | 99 | 0.650725 | Eleobert |
11e725b394d053f7c8b9870a62d59c6a8cb170d6 | 4,134 | cc | C++ | projects/node-pylon/src/genicam/genericxmlloaderparams.cc | bjoernrennfanz/node-pylon | 8c20349d112de2674817a07b3ddbe2e5c481a676 | [
"MIT"
] | null | null | null | projects/node-pylon/src/genicam/genericxmlloaderparams.cc | bjoernrennfanz/node-pylon | 8c20349d112de2674817a07b3ddbe2e5c481a676 | [
"MIT"
] | null | null | null | projects/node-pylon/src/genicam/genericxmlloaderparams.cc | bjoernrennfanz/node-pylon | 8c20349d112de2674817a07b3ddbe2e5c481a676 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2017 - 2018 Björn Rennfanz <bjoern@fam-rennfanz.de>
//
// 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 limitatio... | 42.618557 | 181 | 0.711176 | bjoernrennfanz |
11e89c35516201bec039fefd4076a90c73f0d364 | 3,119 | hpp | C++ | modules/osd/src/cnosd.hpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | 172 | 2019-08-24T10:05:14.000Z | 2022-03-29T07:45:18.000Z | modules/osd/src/cnosd.hpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | 27 | 2019-09-01T11:04:45.000Z | 2022-01-17T09:27:07.000Z | modules/osd/src/cnosd.hpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | 72 | 2019-08-24T10:13:06.000Z | 2022-03-28T08:26:05.000Z | /*************************************************************************
* Copyright (C) [2019] by Cambricon, Inc. 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 a... | 39.481013 | 119 | 0.691247 | HFauto |
11f041cb708fec42b6c842ac5a6dd747d7e0ae1a | 620 | cpp | C++ | src/ast/UnresolvedEntityImport.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | 1 | 2019-06-17T07:16:01.000Z | 2019-06-17T07:16:01.000Z | src/ast/UnresolvedEntityImport.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | src/ast/UnresolvedEntityImport.cpp | denisw/soyac | 2531e16e8dfbfa966931b774f9d79af528d16ff9 | [
"MIT"
] | null | null | null | /*
* soyac - Soya Programming Language compiler
* Copyright (c) 2009 Denis Washington <dwashington@gmx.net>
*
* This file is distributed under the terms of the MIT license.
* See LICENSE.txt for details.
*/
#include "UnresolvedEntityImport.hpp"
#include "Visitor.hpp"
namespace soyac {
namespace ast
{
Unresolv... | 16.315789 | 72 | 0.746774 | denisw |
11f16abcc337fe03a4fb7eb4be9840a0bcb3c778 | 3,746 | cpp | C++ | NGS_testing/uBasicNGS/test_uBasicNGS.cpp | NGS-lib/NGSplusplus | 7fa9fff2453917f24e9e35dab1f04a9be67f7f13 | [
"BSL-1.0"
] | 3 | 2015-11-23T14:24:06.000Z | 2017-11-21T21:04:06.000Z | NGS_testing/uBasicNGS/test_uBasicNGS.cpp | NGS-lib/NGSplusplus | 7fa9fff2453917f24e9e35dab1f04a9be67f7f13 | [
"BSL-1.0"
] | null | null | null | NGS_testing/uBasicNGS/test_uBasicNGS.cpp | NGS-lib/NGSplusplus | 7fa9fff2453917f24e9e35dab1f04a9be67f7f13 | [
"BSL-1.0"
] | null | null | null | #include "NGS++.h"
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <time.h>
#include <thread>
#include <random>
#include <string.h>
#include <time.h>
#include "gtest.h"
using namespace std;
#define SOMENUMBER 102343
using namespace NGS;
#define STARTCASE1 100
#define ENDCASE1 200
... | 28.815385 | 71 | 0.735451 | NGS-lib |
f50405a2f8913c5f7ed03a27fd23c12fa63131af | 1,705 | cc | C++ | src/libxtp/xtpapplication.cc | mbarbry/xtp | e79828209d11ec25bf1750ab75499ecf50f584ef | [
"Apache-2.0"
] | 1 | 2018-03-05T17:36:53.000Z | 2018-03-05T17:36:53.000Z | src/libxtp/xtpapplication.cc | choudarykvsp/xtp | 9a249fd34615abcf790d5f0ecd3ddf1ed0ac0e7a | [
"Apache-2.0"
] | null | null | null | src/libxtp/xtpapplication.cc | choudarykvsp/xtp | 9a249fd34615abcf790d5f0ecd3ddf1ed0ac0e7a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2017 The VOTCA Development Team
* (http://www.votca.org)
*
* 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
*
* h... | 26.640625 | 84 | 0.673314 | mbarbry |
f505d7db2cc41bdcc350785b1deef1030d7f3fea | 724 | hpp | C++ | include/Module/Decoder/NO/Decoder_NO.hpp | FredrikBlomgren/aff3ct | fa616bd923b2dcf03a4cf119cceca51cf810d483 | [
"MIT"
] | 315 | 2016-06-21T13:32:14.000Z | 2022-03-28T09:33:59.000Z | include/Module/Decoder/NO/Decoder_NO.hpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 153 | 2017-01-17T03:51:06.000Z | 2022-03-24T15:39:26.000Z | include/Module/Decoder/NO/Decoder_NO.hpp | a-panella/aff3ct | 61509eb756ae3725b8a67c2d26a5af5ba95186fb | [
"MIT"
] | 119 | 2017-01-04T14:31:58.000Z | 2022-03-21T08:34:16.000Z | /*!
* \file
* \brief Class module::Decoder_NO.
*/
#ifndef DECODER_NO_HPP_
#define DECODER_NO_HPP_
#include "Module/Decoder/Decoder_SISO.hpp"
namespace aff3ct
{
namespace module
{
template <typename B = int, typename R = float>
class Decoder_NO : public Decoder_SISO<B,R>
{
public:
Decoder_NO(const int K);
virtual... | 22.625 | 80 | 0.711326 | FredrikBlomgren |
f5060c4e3368419a11f473ce8207929b782efe73 | 22,984 | inl | C++ | glm/gtx/euler_angles.inl | MilanDierick/glm | 35cf689f59e74e2528c3e0b979b40946cfa10e32 | [
"MIT"
] | null | null | null | glm/gtx/euler_angles.inl | MilanDierick/glm | 35cf689f59e74e2528c3e0b979b40946cfa10e32 | [
"MIT"
] | null | null | null | glm/gtx/euler_angles.inl | MilanDierick/glm | 35cf689f59e74e2528c3e0b979b40946cfa10e32 | [
"MIT"
] | null | null | null | /// @ref gtx_euler_angles
#include "compatibility.hpp" // glm::atan2
namespace glm
{
template <typename T>
GLM_FUNC_QUALIFIER mat<4, 4, T, defaultp> eulerAngleX(T const& angleX)
{
T cosX = glm::cos(angleX);
T sinX = glm::sin(angleX);
return mat<4, 4, T, defaultp>(T(1),
T(0),
T(0),
... | 27.691566 | 105 | 0.521015 | MilanDierick |
f507dd288c59fd9e008acb7fa106d34e78209ffd | 6,217 | cpp | C++ | source/alflib/file/archive.cpp | Alfret/AlfLibCpp | 15bf07d31b0772a23904967f85495cbb2121f391 | [
"MIT"
] | null | null | null | source/alflib/file/archive.cpp | Alfret/AlfLibCpp | 15bf07d31b0772a23904967f85495cbb2121f391 | [
"MIT"
] | 9 | 2019-06-19T19:35:34.000Z | 2019-07-03T16:10:20.000Z | source/alflib/file/archive.cpp | Alfret/AlfLibCpp | 15bf07d31b0772a23904967f85495cbb2121f391 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2019 Filip Björklund
//
// 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, mod... | 29.051402 | 80 | 0.611871 | Alfret |
f5092f46f2dfa75da580a24034593aded5e5d211 | 1,761 | cpp | C++ | Modules/AlgorithmsExt/src/mitkPlaneLandmarkProjector.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/AlgorithmsExt/src/mitkPlaneLandmarkProjector.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/AlgorithmsExt/src/mitkPlaneLandmarkProjector.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 30.362069 | 117 | 0.703578 | zhaomengxiao |
f512ac5ed21a9cb3e37315cb573acf4ed7fc14f5 | 3,983 | cc | C++ | src/serial/RS232Tester.cc | sdsnatcher73/openMSX | 6de09386ff674668325ddf700b0b16334ad1d2ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 320 | 2015-06-16T20:32:33.000Z | 2022-03-26T17:03:27.000Z | src/serial/RS232Tester.cc | sdsnatcher73/openMSX | 6de09386ff674668325ddf700b0b16334ad1d2ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2,592 | 2015-05-30T12:12:21.000Z | 2022-03-31T17:16:15.000Z | src/serial/RS232Tester.cc | sdsnatcher73/openMSX | 6de09386ff674668325ddf700b0b16334ad1d2ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 74 | 2015-06-18T19:51:15.000Z | 2022-03-24T15:09:33.000Z | #include "RS232Tester.hh"
#include "RS232Connector.hh"
#include "PlugException.hh"
#include "EventDistributor.hh"
#include "Scheduler.hh"
#include "FileOperations.hh"
#include "serialize.hh"
namespace openmsx {
RS232Tester::RS232Tester(EventDistributor& eventDistributor_,
Scheduler& scheduler... | 25.208861 | 76 | 0.700979 | sdsnatcher73 |
f516e4f0a79acafbf635a2f68b749c5fdac237ca | 1,679 | cpp | C++ | src/bufferreader.cpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 61 | 2015-01-08T08:05:28.000Z | 2022-01-07T16:47:47.000Z | src/bufferreader.cpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 30 | 2015-04-06T21:41:18.000Z | 2021-08-18T13:24:51.000Z | src/bufferreader.cpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 64 | 2015-02-23T20:01:11.000Z | 2022-03-14T13:31:20.000Z | /*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#include <cstring>
#include <stdexcept>
#include <qi/buffer.hpp>
#include "buffer_p.hpp"
namespace qi {
BufferReader::BufferReader(const Buffer& buffer)
: _buffer(&buffer)
, _cursor(0)
, _subCursor(0)
{
}
BufferReader::~Buf... | 18.450549 | 68 | 0.605718 | arntanguy |
f517c651778b5d0890ec530a2158ec9b92ff5d62 | 3,784 | cpp | C++ | source/core/scene/area_light.cpp | RichieSams/lantern | eab413264d958a81914e8d4463bae9449e5ca3e4 | [
"Apache-2.0"
] | 16 | 2017-01-24T02:33:17.000Z | 2021-10-11T14:49:42.000Z | source/core/scene/area_light.cpp | RichieSams/lantern | eab413264d958a81914e8d4463bae9449e5ca3e4 | [
"Apache-2.0"
] | null | null | null | source/core/scene/area_light.cpp | RichieSams/lantern | eab413264d958a81914e8d4463bae9449e5ca3e4 | [
"Apache-2.0"
] | 3 | 2016-10-14T03:19:43.000Z | 2021-11-16T16:51:58.000Z | /* Lantern - A path tracer
*
* Lantern is the legal property of Adrian Astley
* Copyright Adrian Astley 2015 - 2016
*/
#include "scene/area_light.h"
#include "scene/scene.h"
#include "math/sampling.h"
#include "integrator/surface_interaction.h"
namespace Lantern {
float3 AreaLight::SampleLi(UniformSampler *sampl... | 33.486726 | 184 | 0.751057 | RichieSams |
f518a394886ba66d5b0cfa48b056927d136a481b | 982 | cpp | C++ | TeamRanking/SkillBasedMatchMacker.cpp | OlivierDeRivoyre/TeamRanking | 4cf856b75a016d2a0685a1532ace86b3112becc7 | [
"Unlicense"
] | null | null | null | TeamRanking/SkillBasedMatchMacker.cpp | OlivierDeRivoyre/TeamRanking | 4cf856b75a016d2a0685a1532ace86b3112becc7 | [
"Unlicense"
] | null | null | null | TeamRanking/SkillBasedMatchMacker.cpp | OlivierDeRivoyre/TeamRanking | 4cf856b75a016d2a0685a1532ace86b3112becc7 | [
"Unlicense"
] | null | null | null | #include "stdafx.h"
#include "SkillBasedMatchMacker.h"
#include <algorithm>
SkillBasedMatchMacker::SkillBasedMatchMacker()
{
}
SkillBasedMatchMacker::~SkillBasedMatchMacker()
{
}
void SkillBasedMatchMacker::createGames(Census& census, Round& round)
{
vector<Player*> players = census.getAllPlayers();
sort(players.... | 21.822222 | 94 | 0.650713 | OlivierDeRivoyre |
f51bf419252103be234c9747113c48788f8c7696 | 400 | cpp | C++ | tests/init.cpp | rtv22/insertion_sort | 31277ddf243225583e4fcf1ec95eb73525661884 | [
"MIT"
] | null | null | null | tests/init.cpp | rtv22/insertion_sort | 31277ddf243225583e4fcf1ec95eb73525661884 | [
"MIT"
] | null | null | null | tests/init.cpp | rtv22/insertion_sort | 31277ddf243225583e4fcf1ec95eb73525661884 | [
"MIT"
] | null | null | null | #include <BinaryTree.hpp>
#include <catch.hpp>
SCENARIO("sort","[sort]")
{
int matrix[6] = { 222 , 111, 666, 333, 555, 444 };
int sorted_matrix[6] = { 111, 222, 333, 444, 555, 666 };
int* first = &matrix[0];
int* second = &matrix[6];
insertion_sort(first, second);
bool check = NULL;
for (int i = 0; i < 6; i++... | 23.529412 | 58 | 0.605 | rtv22 |
f51ccb25b5c85b6017884081344cc9cd0ba416ff | 1,283 | cpp | C++ | external/eigen/blas/complex_double.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | external/eigen/blas/complex_double.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | external/eigen/blas/complex_double.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Gael Guennebaud <g.gael@free.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Found... | 40.09375 | 77 | 0.744349 | rms80 |
f51dceb48d0eee7120cf6f1c0b70ab79c8b237f8 | 16,098 | cpp | C++ | Applications/ReinforcementLearning/DeepQ/jni/main.cpp | JuYeong0413/nntrainer | 37b7c2234dd591a994148d14dd399037702ccd31 | [
"Apache-2.0"
] | 1 | 2022-03-24T10:33:45.000Z | 2022-03-24T10:33:45.000Z | Applications/ReinforcementLearning/DeepQ/jni/main.cpp | JuYeong0413/nntrainer | 37b7c2234dd591a994148d14dd399037702ccd31 | [
"Apache-2.0"
] | null | null | null | Applications/ReinforcementLearning/DeepQ/jni/main.cpp | JuYeong0413/nntrainer | 37b7c2234dd591a994148d14dd399037702ccd31 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2019 Samsung Electronics Co., Ltd. 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 requ... | 29.591912 | 79 | 0.48329 | JuYeong0413 |
f52012b1a281aaccf170ec427e98fe776491070e | 5,085 | cpp | C++ | modules/task_3/chernyh_d_global_search_algorithm/agp.cpp | dmitrybezro/pp_2020_autumn_math | ba31057b9f491d757b3f5496b2a7843de21d0de7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/chernyh_d_global_search_algorithm/agp.cpp | dmitrybezro/pp_2020_autumn_math | ba31057b9f491d757b3f5496b2a7843de21d0de7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/chernyh_d_global_search_algorithm/agp.cpp | dmitrybezro/pp_2020_autumn_math | ba31057b9f491d757b3f5496b2a7843de21d0de7 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 Nesterov Alexander
#include <mpi.h>
#include <vector>
#include <string>
#include <random>
#include <ctime>
#include <algorithm>
#include<iostream>
#include "../../../modules/task_3/chernyh_d_global_search_algorithm/agp.h"
std::vector<int> coef(5);
void CoefIn(std::vector<int> _coef) {
coef = _coef... | 33.675497 | 108 | 0.574041 | dmitrybezro |
f5208daa2a4214a51ad5159535f5fda4fe894059 | 1,208 | hpp | C++ | phylanx/plugins/controls/controls.hpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | phylanx/plugins/controls/controls.hpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | phylanx/plugins/controls/controls.hpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | // Copyright (c) 2018 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(PHYLANX_PLUGINS_CONTROLS_APR_07_2108_1223PM)
#define PHYLANX_PLUGINS_CONTROLS_APR_07_2108_1223PM
#include <ph... | 41.655172 | 80 | 0.825331 | NanmiaoWu |
f522df9caa1b995b3114f37fa5481b096963e35a | 627 | cpp | C++ | LongWords.cpp | d3cod3monk78/codeforce | 10a4e7f9b50d41f9acbac8ba2019405eba4e4937 | [
"MIT"
] | null | null | null | LongWords.cpp | d3cod3monk78/codeforce | 10a4e7f9b50d41f9acbac8ba2019405eba4e4937 | [
"MIT"
] | null | null | null | LongWords.cpp | d3cod3monk78/codeforce | 10a4e7f9b50d41f9acbac8ba2019405eba4e4937 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <string>
using namespace std;
void generateWord(vector<string> arr);
void generateWord(vector<string> arr) {
int n = (int)arr.size();
for(int i = 0; i < n; i++) {
if(arr[i].length() > 10) {
string temp = arr[i].substr(0 , 1);
cout << temp.append(to_string(arr[i].length() - ... | 19 | 110 | 0.574163 | d3cod3monk78 |
f52333eb348d75b4abdf1a138806a6d2cce4f126 | 9,203 | cpp | C++ | source/iconhelper.cpp | AmuUncle/ProcessMonitor | 9daa0752cc12d76629a1cccb938511b40a11b343 | [
"MulanPSL-1.0"
] | null | null | null | source/iconhelper.cpp | AmuUncle/ProcessMonitor | 9daa0752cc12d76629a1cccb938511b40a11b343 | [
"MulanPSL-1.0"
] | null | null | null | source/iconhelper.cpp | AmuUncle/ProcessMonitor | 9daa0752cc12d76629a1cccb938511b40a11b343 | [
"MulanPSL-1.0"
] | null | null | null | #include "iconhelper.h"
IconHelper *IconHelper::self = 0;
IconHelper *IconHelper::Instance()
{
if (!self) {
QMutex mutex;
QMutexLocker locker(&mutex);
if (!self) {
self = new IconHelper;
}
}
return self;
}
IconHelper::IconHelper(QObject *) : QObject(qApp)
{
... | 39.32906 | 146 | 0.61317 | AmuUncle |
f52903309d8e59327e2ca0c015cdf9b84987ec46 | 1,926 | cpp | C++ | src/core/xml/DJNComponentAttrs.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | src/core/xml/DJNComponentAttrs.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | src/core/xml/DJNComponentAttrs.cpp | alicemona/Smala | 6f66c3b4bb111993a6bcf148e84c229fb3fa3534 | [
"BSD-2-Clause"
] | null | null | null | /* C++ code produced by gperf version 3.0.3 */
/* Command-line: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/gperf -L C++ -t -N djn_DJNComponentAttrsLookup -Z DJNComponentAttrs_Hash src/core/xml/DJNComponentAttrs.gperf */
/* Computed positions: -k'' */
#line 16 "src/core/xml/... | 24.075 | 217 | 0.679128 | alicemona |
f52a67830e2510b53990ae739fd9066b99b8a261 | 43,641 | cc | C++ | packager/hls/base/simple_hls_notifier_unittest.cc | Videofy/shaka-packager | 33792ca2daae5d3fdcd7a8f72ddb3d2455db2ece | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-13T03:50:58.000Z | 2021-01-13T03:50:58.000Z | packager/hls/base/simple_hls_notifier_unittest.cc | Videofy/shaka-packager | 33792ca2daae5d3fdcd7a8f72ddb3d2455db2ece | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | packager/hls/base/simple_hls_notifier_unittest.cc | Videofy/shaka-packager | 33792ca2daae5d3fdcd7a8f72ddb3d2455db2ece | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gflags/gflags.h>
#include <memory>
#... | 41.841802 | 80 | 0.696409 | Videofy |
f52b8c027e917ea0b0ebfb872d87eefa481ccadc | 2,902 | cpp | C++ | src/DeferredShadingLightPass.cpp | Loic-Corenthy/miniGL | 47976ea80e253e115eafae5934ec3ebdd2275d16 | [
"MIT"
] | 1 | 2021-08-18T03:54:22.000Z | 2021-08-18T03:54:22.000Z | src/DeferredShadingLightPass.cpp | Loic-Corenthy/miniGL | 47976ea80e253e115eafae5934ec3ebdd2275d16 | [
"MIT"
] | null | null | null | src/DeferredShadingLightPass.cpp | Loic-Corenthy/miniGL | 47976ea80e253e115eafae5934ec3ebdd2275d16 | [
"MIT"
] | null | null | null | //===============================================================================================//
/*!
* \author Loïc Corenthy
* \version 1.0
*/
//===============================================================================================//
#include "DeferredShadingLightPass.hpp"
#include "Constants.hp... | 46.806452 | 102 | 0.689869 | Loic-Corenthy |
f531cfb9eebbde906f725e9f1153532b9256a66f | 17,238 | cpp | C++ | tutorial/part_6/src/GameState.cpp | fallahn/xygine | c17e7d29bb57a5425a58abd3a05a843d6bac48e3 | [
"Unlicense"
] | 220 | 2015-10-22T16:12:13.000Z | 2022-03-16T18:51:11.000Z | tutorial/part_6/src/GameState.cpp | fallahn/xygine | c17e7d29bb57a5425a58abd3a05a843d6bac48e3 | [
"Unlicense"
] | 64 | 2016-05-05T19:17:13.000Z | 2021-02-11T19:24:37.000Z | tutorial/part_6/src/GameState.cpp | fallahn/xygine | c17e7d29bb57a5425a58abd3a05a843d6bac48e3 | [
"Unlicense"
] | 33 | 2016-01-13T16:44:26.000Z | 2021-11-05T21:57:24.000Z | /*********************************************************************
(c) Matt Marchant 2019
This file is part of the xygine tutorial found at
https://github.com/fallahn/xygine
xygineXT - Zlib license.
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
l... | 38.221729 | 172 | 0.644564 | fallahn |
f5362bb68f079d4a775548d7af3364c6104e85ff | 16,394 | hpp | C++ | libs/iterator_support/tests/unit/iterator_tests.hpp | jnvance/hpx | 258bf04aae03c6864e06a0fad0f5c5848310a300 | [
"BSL-1.0"
] | null | null | null | libs/iterator_support/tests/unit/iterator_tests.hpp | jnvance/hpx | 258bf04aae03c6864e06a0fad0f5c5848310a300 | [
"BSL-1.0"
] | null | null | null | libs/iterator_support/tests/unit/iterator_tests.hpp | jnvance/hpx | 258bf04aae03c6864e06a0fad0f5c5848310a300 | [
"BSL-1.0"
] | null | null | null | // Copyright David Abrahams 2001-2004.
// Copyright (c) Jeremy Siek 2001-2003.
// Copyright (c) Thomas Witt 2002.
//
// Copyright (c) 2016 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http:... | 26.613636 | 80 | 0.528913 | jnvance |
f53812afa15c5bb8a3f14d853d27301e61c7c6eb | 6,125 | cpp | C++ | Coin3D/src/bundles/SoNormalBundle.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | Coin3D/src/bundles/SoNormalBundle.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | Coin3D/src/bundles/SoNormalBundle.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | /**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... | 26.982379 | 76 | 0.705959 | pniaz20 |
f53cf4a37d9e0a1707b2e414a36ccc077671dc7f | 5,934 | hpp | C++ | heart/src/odes/ionicmodels/NobleVargheseKohlNoble1998WithSac.hpp | stu-l/Chaste | 8efa8b440660553af66804067639f237c855f557 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | heart/src/odes/ionicmodels/NobleVargheseKohlNoble1998WithSac.hpp | stu-l/Chaste | 8efa8b440660553af66804067639f237c855f557 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | heart/src/odes/ionicmodels/NobleVargheseKohlNoble1998WithSac.hpp | stu-l/Chaste | 8efa8b440660553af66804067639f237c855f557 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2005-2022, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... | 34.300578 | 122 | 0.697843 | stu-l |
f53f459b01e9b0792aebe0c19579ae1151ebeb97 | 716,131 | cpp | C++ | test/normalize_to_nfkc_040.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/normalize_to_nfkc_040.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/normalize_to_nfkc_040.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | // Warning! This file is autogenerated.
#include <boost/text/normalize_string.hpp>
#include <boost/text/transcode_view.hpp>
#include <boost/text/string_utility.hpp>
#include <gtest/gtest.h>
#include <algorithm>
TEST(normalization, nfkc_040_000)
{
// C1D0;C1D0;1109 116B 11B3;C1D0;1109 116B 11B3;
// (쇐; 쇐; ... | 36.146325 | 84 | 0.479971 | eightysquirrels |
f53fb64707259fefb4637fa36101687a0af5d2b0 | 13,987 | cpp | C++ | code/Torsion/TorsionApp.cpp | Bloodknight/NeuTorsion | a5890e9ca145a8c1b6bec7b70047a43d9b1c29ea | [
"MIT"
] | 38 | 2016-02-20T02:46:28.000Z | 2021-11-17T11:39:57.000Z | code/Torsion/TorsionApp.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 17 | 2016-02-20T02:19:55.000Z | 2021-02-08T15:15:17.000Z | code/Torsion/TorsionApp.cpp | Dwarf-King/TorsionEditor | e6887d1661ebaf4ccbf1d09f2690e2bf805fbb50 | [
"MIT"
] | 46 | 2016-02-20T02:47:33.000Z | 2021-01-31T15:46:05.000Z | // Torsion TorqueScript IDE - Copyright (C) Sickhead Games, LLC
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
#include "PreCompiled.h"
#include "TorsionApp.h"
#include "MainFrame.h"
#include "ScriptFrame.h"
#include "DocManager.h"
#inc... | 28.544898 | 189 | 0.626224 | Bloodknight |
f54107dea3793dc4acd415ba01ff39952b4b6601 | 1,332 | hpp | C++ | sprout/sized_pit/type_traits.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 691 | 2015-01-15T18:52:23.000Z | 2022-03-15T23:39:39.000Z | sprout/sized_pit/type_traits.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 22 | 2015-03-11T01:22:56.000Z | 2021-03-29T01:51:45.000Z | sprout/sized_pit/type_traits.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 57 | 2015-03-11T07:52:29.000Z | 2021-12-16T09:15:33.000Z | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx... | 30.976744 | 80 | 0.65991 | kevcadieux |
f542a26f10661e21c22654e2644a0cebfa92f786 | 3,618 | cpp | C++ | math/test/test_vector_linux.cpp | blobrobots/libs | cc11f56bc4e1112033e8b7352e5653f98f1bfc13 | [
"MIT"
] | 1 | 2015-10-21T14:36:43.000Z | 2015-10-21T14:36:43.000Z | math/test/test_vector_linux.cpp | blobrobots/libs | cc11f56bc4e1112033e8b7352e5653f98f1bfc13 | [
"MIT"
] | null | null | null | math/test/test_vector_linux.cpp | blobrobots/libs | cc11f56bc4e1112033e8b7352e5653f98f1bfc13 | [
"MIT"
] | null | null | null | /******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015 Blob Robotics
*
* 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 S... | 24.951724 | 81 | 0.582919 | blobrobots |
f5459ecf1dd878f354e5e6390aff1493f05c1738 | 1,032 | cpp | C++ | Foundation/src/Event_WIN32.cpp | e0861280/poco | 961ca3e246f55646ab6e101e35e3ec0db359360f | [
"BSL-1.0"
] | 111 | 2015-01-13T18:14:31.000Z | 2022-02-20T14:26:55.000Z | Foundation/src/Event_WIN32.cpp | e0861280/poco | 961ca3e246f55646ab6e101e35e3ec0db359360f | [
"BSL-1.0"
] | 54 | 2015-02-23T16:57:41.000Z | 2021-02-19T08:16:27.000Z | Foundation/src/Event_WIN32.cpp | e0861280/poco | 961ca3e246f55646ab6e101e35e3ec0db359360f | [
"BSL-1.0"
] | 26 | 2015-01-17T13:07:56.000Z | 2021-12-02T07:43:29.000Z | //
// Event_WIN32.cpp
//
// $Id: //poco/1.4/Foundation/src/Event_WIN32.cpp#1 $
//
// Library: Foundation
// Package: Threading
// Module: Event
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Event_WIN32.h"
... | 16.125 | 87 | 0.707364 | e0861280 |
f54769a1f3ed3fd04f8bd98c05c909ab49de51b5 | 32,467 | cpp | C++ | pxr/usd/sdr/shaderProperty.cpp | jwarrencode/USD | 857ffda41f4f1553fe1019ac7c7b4f08c233a7bb | [
"Apache-2.0"
] | 1 | 2022-03-16T01:40:10.000Z | 2022-03-16T01:40:10.000Z | pxr/usd/sdr/shaderProperty.cpp | jwarrencode/USD | 857ffda41f4f1553fe1019ac7c7b4f08c233a7bb | [
"Apache-2.0"
] | null | null | null | pxr/usd/sdr/shaderProperty.cpp | jwarrencode/USD | 857ffda41f4f1553fe1019ac7c7b4f08c233a7bb | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2018 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 39.069795 | 84 | 0.600209 | jwarrencode |
f54918a5b9a86922bbd0dcdf3f1df60efbf83b96 | 5,121 | cpp | C++ | prophy_cpp/test/test_generated_others.cpp | florczakraf/prophy | a42a6151a77b31afa05300fc2e1f52cc15a298cf | [
"MIT"
] | 14 | 2015-02-19T22:00:37.000Z | 2020-11-30T03:03:55.000Z | prophy_cpp/test/test_generated_others.cpp | florczakraf/prophy | a42a6151a77b31afa05300fc2e1f52cc15a298cf | [
"MIT"
] | 31 | 2015-06-22T11:11:10.000Z | 2021-05-12T06:35:47.000Z | prophy_cpp/test/test_generated_others.cpp | florczakraf/prophy | a42a6151a77b31afa05300fc2e1f52cc15a298cf | [
"MIT"
] | 16 | 2015-06-12T06:48:06.000Z | 2019-11-26T22:48:13.000Z | #include <vector>
#include <gtest/gtest.h>
#include "Others.ppf.hpp"
#include "util.hpp"
using namespace testing;
using namespace prophy::generated;
TEST(generated_others, ConstantTypedefEnum)
{
std::vector<char> data(1024);
ConstantTypedefEnum x{prophy::array<uint16_t, CONSTANT>{{1, 2, 3}}, 4, Enum_One};
... | 23.171946 | 85 | 0.506737 | florczakraf |
f54ed5943c9a29021a761a73884164ae03dc47e8 | 68,029 | cc | C++ | PYTHIA8/pythia8243/src/ProcessLevel.cc | mpoghos/AliRoot | e81490f640ad6f2a6189f679de96b07a94304b58 | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | PYTHIA8/pythia8243/src/ProcessLevel.cc | mpoghos/AliRoot | e81490f640ad6f2a6189f679de96b07a94304b58 | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | PYTHIA8/pythia8243/src/ProcessLevel.cc | mpoghos/AliRoot | e81490f640ad6f2a6189f679de96b07a94304b58 | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | // ProcessLevel.cc is a part of the PYTHIA event generator.
// Copyright (C) 2019 Torbjorn Sjostrand.
// PYTHIA is licenced under the GNU GPL v2 or later, see COPYING for details.
// Please respect the MCnet Guidelines, see GUIDELINES for details.
// Function definitions (not found in the header) for the ProcessLevel ... | 38.762963 | 79 | 0.550118 | mpoghos |
f55160114433a3e989797d24581140ebc93160a0 | 27,267 | cpp | C++ | src/Compilers/Core/NativeClient/native_client.cpp | DavidKarlas/roslyn | d9aaaee2403e47106898f105fd2e77b1c14a3c97 | [
"Apache-2.0"
] | 85 | 2015-01-02T12:12:29.000Z | 2021-03-13T18:25:34.000Z | src/Compilers/Core/NativeClient/native_client.cpp | DavidKarlas/roslyn | d9aaaee2403e47106898f105fd2e77b1c14a3c97 | [
"Apache-2.0"
] | 18 | 2015-01-04T13:29:38.000Z | 2018-11-06T15:42:30.000Z | src/Compilers/Core/NativeClient/native_client.cpp | DavidKarlas/roslyn | d9aaaee2403e47106898f105fd2e77b1c14a3c97 | [
"Apache-2.0"
] | 43 | 2015-01-03T13:48:55.000Z | 2022-02-16T11:57:26.000Z | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#include "stdafx.h"
#include <memory>
#include <algorithm>
#include <string>
#include "logging.h"
#include "native_client.h"
#include "pipe_utils.h"
#include ... | 31.197941 | 161 | 0.624271 | DavidKarlas |
f55202cf8af6ef0c61f3b1c1f6d464dc05a1f008 | 3,465 | cpp | C++ | tools/constructHistogram/ConstructHistogram1.cpp | wd15/graspi | cbdbee28062dbc18005a506f307171702ac249be | [
"BSD-3-Clause"
] | 2 | 2020-11-24T15:07:00.000Z | 2021-03-09T00:22:14.000Z | tools/constructHistogram/ConstructHistogram1.cpp | wd15/graspi | cbdbee28062dbc18005a506f307171702ac249be | [
"BSD-3-Clause"
] | 2 | 2021-05-21T21:33:55.000Z | 2021-07-08T16:17:12.000Z | tools/constructHistogram/ConstructHistogram1.cpp | owodolab/graspi | 4319cad2d5490903998094cdee85f039f70a4ff6 | [
"BSD-3-Clause"
] | 3 | 2020-11-19T22:18:32.000Z | 2021-12-22T11:13:22.000Z | #include <algorithm>
#include <fstream>
#include <iostream>
#include <sstream>
#include <cmath>
#include <vector>
// weighting function (f(0)=1 , f(ld)=\sim 0)
double wfoo(double d){
// return exp(-1.0*d*d/25.0);
double A1=6.265;
double B1=-23.0;
double C1=17.17;
return A1*exp(-((d-B1)/C1)*((d-B1)/... | 24.75 | 104 | 0.582684 | wd15 |
f553d29815d282d5acb060a4fafb8064d869b654 | 14,325 | cpp | C++ | src/glcontext_egl.cpp | bencoyote/bgfx | feb453025d7d5ba423b1bbd11a33816a86644023 | [
"BSD-2-Clause"
] | 9 | 2016-05-25T12:25:50.000Z | 2020-11-30T13:40:13.000Z | src/glcontext_egl.cpp | Vaiklol/bgfx | 1196825aebc4b4cdf9acc6c632d002d3c91ba095 | [
"BSD-2-Clause"
] | null | null | null | src/glcontext_egl.cpp | Vaiklol/bgfx | 1196825aebc4b4cdf9acc6c632d002d3c91ba095 | [
"BSD-2-Clause"
] | 3 | 2018-02-25T06:10:31.000Z | 2019-09-28T15:55:36.000Z | /*
* Copyright 2011-2019 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "bgfx_p.h"
#if (BGFX_CONFIG_RENDERER_OPENGLES || BGFX_CONFIG_RENDERER_OPENGL)
# include "renderer_gl.h"
# if BGFX_USE_EGL
# if BX_PLATFORM_RPI
# include <X11/Xlib.h>
#... | 30.54371 | 162 | 0.720908 | bencoyote |
f556062aa5867831b6678cc89a875e3e8119045a | 3,834 | cpp | C++ | runtime/os_interface/windows/device_factory.cpp | jdanecki/compute-runtime | 0d7be1066d61a4e803fee9dcea6e9e9b4213b3b9 | [
"MIT"
] | null | null | null | runtime/os_interface/windows/device_factory.cpp | jdanecki/compute-runtime | 0d7be1066d61a4e803fee9dcea6e9e9b4213b3b9 | [
"MIT"
] | null | null | null | runtime/os_interface/windows/device_factory.cpp | jdanecki/compute-runtime | 0d7be1066d61a4e803fee9dcea6e9e9b4213b3b9 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017 - 2018, Intel Corporation
*
* 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, ... | 38.34 | 111 | 0.682055 | jdanecki |
f5578c24ea4b232d21c76f69da10952a9d240ef5 | 11,769 | cpp | C++ | src/AppItem.cpp | jkalter11/freeshop | c7b1858ed713732b8ff9afa116f05a1ed9a4d4c3 | [
"MIT"
] | 1 | 2021-05-11T10:40:14.000Z | 2021-05-11T10:40:14.000Z | src/AppItem.cpp | jkalter11/freeshop | c7b1858ed713732b8ff9afa116f05a1ed9a4d4c3 | [
"MIT"
] | null | null | null | src/AppItem.cpp | jkalter11/freeshop | c7b1858ed713732b8ff9afa116f05a1ed9a4d4c3 | [
"MIT"
] | 2 | 2021-06-05T15:51:05.000Z | 2022-02-03T20:44:33.000Z | #include <cpp3ds/System/Err.hpp>
#include <iostream>
#include <cpp3ds/System/I18n.hpp>
#include "AssetManager.hpp"
#include "AppItem.hpp"
#include "Util.hpp"
#include "TitleKeys.hpp"
#include "Theme.hpp"
#include "DownloadQueue.hpp"
#include <sstream>
#include <unistd.h>
#include "Notification.hpp"
#include "Installer.... | 24.265979 | 133 | 0.703458 | jkalter11 |
f55b41df3f5380588590ee6a9d6c224c7083f936 | 1,823 | cpp | C++ | game/ball.cpp | Lut1n/Vulkan-BrickBreaker | 05b2c9a59277d2a18e4ba8085ccc77ce620a8ca8 | [
"MIT"
] | 1 | 2020-06-15T01:44:13.000Z | 2020-06-15T01:44:13.000Z | game/ball.cpp | Lut1n/Vulkan-BrickBreaker | 05b2c9a59277d2a18e4ba8085ccc77ce620a8ca8 | [
"MIT"
] | null | null | null | game/ball.cpp | Lut1n/Vulkan-BrickBreaker | 05b2c9a59277d2a18e4ba8085ccc77ce620a8ca8 | [
"MIT"
] | null | null | null | #include "game/ball.h"
#include "app/assetsloader.h"
//--------------------------------------------------------------
Ball::Ball()
: started(false)
, firstFrame(true)
{
mesh = AssetsLoader::instance()->getOrLoadMesh(MODEL_BALL_PATH);
material = AssetsLoader::instance()->getOrLoadTexture("textu... | 26.042857 | 85 | 0.466813 | Lut1n |
f55cdd14ceec0c3619507000d2e7dee86160c451 | 534 | hpp | C++ | include/RaZ/Data/FbxFormat.hpp | Razakhel/RaZ | d7bc8d4631a2ebd212950f8001f192bcd7d3e80a | [
"MIT"
] | 339 | 2017-09-24T17:26:15.000Z | 2022-03-20T13:25:39.000Z | include/RaZ/Data/FbxFormat.hpp | Razakhel/RaZ | d7bc8d4631a2ebd212950f8001f192bcd7d3e80a | [
"MIT"
] | 24 | 2017-09-22T10:30:12.000Z | 2022-01-05T21:32:20.000Z | include/RaZ/Data/FbxFormat.hpp | Razakhel/RaZ | d7bc8d4631a2ebd212950f8001f192bcd7d3e80a | [
"MIT"
] | 24 | 2018-01-21T17:38:18.000Z | 2022-02-02T11:16:22.000Z | #pragma once
#ifndef RAZ_FBXFORMAT_HPP
#define RAZ_FBXFORMAT_HPP
#include <utility>
namespace Raz {
class FilePath;
class Mesh;
class MeshRenderer;
namespace FbxFormat {
/// Loads an FBX mesh from a file.
/// \param filePath File from which to load the mesh.
/// \return Pair containing respectively the mesh's dat... | 20.538462 | 131 | 0.749064 | Razakhel |
f564c119df4a262e0785d2e6a3d6bb93463f57bb | 6,076 | cpp | C++ | docker/cytnx/test.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 11 | 2020-04-14T15:45:42.000Z | 2022-03-31T14:37:03.000Z | docker/cytnx/test.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 38 | 2019-08-02T15:15:51.000Z | 2022-03-04T19:07:02.000Z | docker/cytnx/test.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 7 | 2019-07-17T07:50:55.000Z | 2021-07-03T06:44:52.000Z | #include "cytnx.hpp"
#include <complex>
using namespace std;
using namespace cytnx;
typedef cytnx::Accessor ac;
int main(int argc, char *argv[]){
/*
vector<cytnx_int64> A(10);
for(int i=0;i<10;i++){
A[i] = rand()%500;
}
cout << vec_unique(A) << endl;
*/
//Device.Print_Property... | 25.211618 | 103 | 0.49391 | j9263178 |
f5680b6b7aa3adf4887feb02bdba02de22a5566b | 3,181 | cpp | C++ | src/runner/powertoys_events.cpp | theaquamarine/PowerToys | 431f7ab37c781beae9a1ffc7223e98d78c60f204 | [
"MIT"
] | 8 | 2020-02-24T13:13:08.000Z | 2022-03-27T22:37:26.000Z | src/runner/powertoys_events.cpp | zvictorb/PowerToys | 87fb6fc3d1f5073729717a6b16b6f12b79cea280 | [
"MIT"
] | 5 | 2021-03-11T06:46:46.000Z | 2022-02-27T10:56:37.000Z | src/runner/powertoys_events.cpp | zvictorb/PowerToys | 87fb6fc3d1f5073729717a6b16b6f12b79cea280 | [
"MIT"
] | 1 | 2021-06-27T05:12:50.000Z | 2021-06-27T05:12:50.000Z | #include "pch.h"
#include "powertoys_events.h"
#include "lowlevel_keyboard_event.h"
#include "win_hook_event.h"
#include "system_menu_helper.h"
void first_subscribed(const std::wstring& event)
{
if (event == ll_keyboard)
start_lowlevel_keyboard_hook();
else if (event == win_hook_event)
... | 30.295238 | 108 | 0.654511 | theaquamarine |
f56820ea68b670998d00501c1f17bfef1579bc42 | 2,404 | hpp | C++ | curl/tests/mock_curl.hpp | lucywyman/leatherman | 0d79e5a012c9451700bbe64e28849f8b5dc8629c | [
"Apache-2.0"
] | 55 | 2015-08-27T13:17:42.000Z | 2022-02-07T15:19:59.000Z | curl/tests/mock_curl.hpp | lucywyman/leatherman | 0d79e5a012c9451700bbe64e28849f8b5dc8629c | [
"Apache-2.0"
] | 236 | 2015-02-23T23:50:10.000Z | 2021-09-01T18:09:12.000Z | curl/tests/mock_curl.hpp | lucywyman/leatherman | 0d79e5a012c9451700bbe64e28849f8b5dc8629c | [
"Apache-2.0"
] | 88 | 2015-02-23T22:40:27.000Z | 2022-02-07T15:19:59.000Z | #pragma once
#include <string>
#include <functional>
#include <curl/curl.h>
#ifdef _WIN32
#include "export.h"
#else
#define MOCK_CURL_EXPORT
#endif
struct curl_impl
{
enum struct http_method
{
get,
put,
post
};
enum struct error_mode
{
success,
easy... | 27.318182 | 121 | 0.6901 | lucywyman |
f5684858fcbf1876b9c747a6617e77e39809fc80 | 14,058 | cpp | C++ | Kernel/Bus/USB/USBHub.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 19,438 | 2019-05-20T15:11:11.000Z | 2022-03-31T23:31:32.000Z | Kernel/Bus/USB/USBHub.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 7,882 | 2019-05-20T01:03:52.000Z | 2022-03-31T23:26:31.000Z | Kernel/Bus/USB/USBHub.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 2,721 | 2019-05-23T00:44:57.000Z | 2022-03-31T22:49:34.000Z | /*
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Arch/x86/IO.h>
#include <Kernel/Bus/USB/SysFSUSB.h>
#include <Kernel/Bus/USB/USBClasses.h>
#include <Kernel/Bus/USB/USBController.h>
#include <Kernel/Bus/USB/USBHub.h>
#include <Kernel/Bus/USB/U... | 46.549669 | 242 | 0.627685 | r00ster91 |
f5689def30057b55458902b33ee4025cad32d718 | 6,633 | cc | C++ | examples/demo/src/bmp.cc | chfanghr/lutenist | da22b41802bdb2f9b63052c050877225e0ff9dde | [
"MIT"
] | null | null | null | examples/demo/src/bmp.cc | chfanghr/lutenist | da22b41802bdb2f9b63052c050877225e0ff9dde | [
"MIT"
] | null | null | null | examples/demo/src/bmp.cc | chfanghr/lutenist | da22b41802bdb2f9b63052c050877225e0ff9dde | [
"MIT"
] | null | null | null | //
// Created by 方泓睿 on 2020/3/30.
//
#include <fstream>
#include <stdexcept>
#include <lutenist/demo/bmp.h>
demo::BMP::BMP(const std::string &filename) {
std::ifstream f(filename, std::ios::binary);
BitmapFileHeader header{};
f.read(reinterpret_cast<char *>(&header.bf_type), sizeof(header.bf_type));
if (... | 44.516779 | 115 | 0.731946 | chfanghr |
f569cad46524a6af8192f01548d2d4b17d5ec41e | 458 | hpp | C++ | third_party/glm/vec4.hpp | floppyhammer/nanovg-demo | 47e0772e73d7d0cbb4f017b09871da4fd19af7a6 | [
"MIT"
] | null | null | null | third_party/glm/vec4.hpp | floppyhammer/nanovg-demo | 47e0772e73d7d0cbb4f017b09871da4fd19af7a6 | [
"MIT"
] | null | null | null | third_party/glm/vec4.hpp | floppyhammer/nanovg-demo | 47e0772e73d7d0cbb4f017b09871da4fd19af7a6 | [
"MIT"
] | null | null | null | /// @ref core
/// @file glm/vec4.hpp
#pragma once
#include "glm/ext/vector_bool4.hpp"
#include "glm/ext/vector_bool4_precision.hpp"
#include "glm/ext/vector_float4.hpp"
#include "glm/ext/vector_float4_precision.hpp"
#include "glm/ext/vector_double4.hpp"
#include "glm/ext/vector_double4_precision.hpp"
#include "glm/ext... | 28.625 | 47 | 0.779476 | floppyhammer |
f56bec3bdfbd368042e8374f667d6a85ff6df783 | 15,729 | cpp | C++ | ros/src/computing/perception/detection/trafficlight_recognizer/nodes/region_tlr_mxnet/region_tlr_mxnet.cpp | filiperinaldi/Autoware | 9fae6cc7cb8253586578dbb62a2f075b52849e6e | [
"Apache-2.0"
] | 20 | 2019-05-21T06:14:17.000Z | 2021-11-03T04:36:09.000Z | ros/src/computing/perception/detection/trafficlight_recognizer/nodes/region_tlr_mxnet/region_tlr_mxnet.cpp | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 18 | 2019-04-08T16:09:37.000Z | 2019-06-05T15:24:40.000Z | ros/src/computing/perception/detection/trafficlight_recognizer/nodes/region_tlr_mxnet/region_tlr_mxnet.cpp | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 8 | 2019-04-28T13:15:18.000Z | 2021-06-03T07:05:16.000Z | #include <string>
#include <autoware_msgs/TrafficLight.h>
#include <std_msgs/String.h>
#include <visualization_msgs/Marker.h>
#include <visualization_msgs/MarkerArray.h>
#include "Context.h"
#include "region_tlr_mxnet.h"
static bool show_superimpose_result = false;
static const std::string window_name = "superimpos... | 30.07457 | 118 | 0.71988 | filiperinaldi |
f56e99d4afe3c8903d0112ed8ce2320e2fd795ab | 13,896 | cpp | C++ | src/cascadia/TerminalSettingsModel/Profile.cpp | PathogenDavid/windows-terminal | a74c37bbcd699ce2cd90bb5d81412663a6236fcc | [
"MIT"
] | 1 | 2021-11-08T02:37:54.000Z | 2021-11-08T02:37:54.000Z | src/cascadia/TerminalSettingsModel/Profile.cpp | DolphinHome/terminal | c79334ffbbcbb0d0483579035328aebd27f517f4 | [
"MIT"
] | null | null | null | src/cascadia/TerminalSettingsModel/Profile.cpp | DolphinHome/terminal | c79334ffbbcbb0d0483579035328aebd27f517f4 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "Profile.h"
#include "JsonUtils.h"
#include "../../types/inc/Utils.hpp"
#include "TerminalSettingsSerializationHelpers.h"
#include "AppearanceConfig.h"
#include "FontConfig.h"
#include "Profile.g.cpp"
... | 41.112426 | 204 | 0.702073 | PathogenDavid |
f57072239b95cac0e172e41375d73062af402635 | 445 | hpp | C++ | deps/glm/glm/vec3.hpp | hydrocarborane/polyscope | bee34c22cd7ac1b1e01686b55b7b8ceeee20d2fe | [
"MIT"
] | 3,914 | 2017-01-20T04:55:53.000Z | 2022-03-31T18:06:12.000Z | deps/glm/glm/vec3.hpp | hydrocarborane/polyscope | bee34c22cd7ac1b1e01686b55b7b8ceeee20d2fe | [
"MIT"
] | 1,284 | 2015-01-02T07:31:47.000Z | 2022-03-30T02:06:43.000Z | deps/glm/glm/vec3.hpp | hydrocarborane/polyscope | bee34c22cd7ac1b1e01686b55b7b8ceeee20d2fe | [
"MIT"
] | 1,263 | 2017-01-15T09:54:44.000Z | 2022-03-31T14:59:11.000Z | /// @ref core
/// @file glm/vec3.hpp
#pragma once
#include "./ext/vector_bool3.hpp"
#include "./ext/vector_bool3_precision.hpp"
#include "./ext/vector_float3.hpp"
#include "./ext/vector_float3_precision.hpp"
#include "./ext/vector_double3.hpp"
#include "./ext/vector_double3_precision.hpp"
#include "./ext/vector_int3.h... | 29.666667 | 45 | 0.752809 | hydrocarborane |
f5722abcb3e9fc18c3a988a176001370a55241f4 | 1,726 | cpp | C++ | hphp/runtime/base/rds-util.cpp | radford/hhvm | a7cd6754d14742b40528c847b607a1608cfcfe98 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-04-10T10:46:00.000Z | 2015-04-10T10:46:00.000Z | hphp/runtime/base/rds-util.cpp | radford/hhvm | a7cd6754d14742b40528c847b607a1608cfcfe98 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2017-04-10T11:50:15.000Z | 2017-04-10T11:50:15.000Z | hphp/runtime/base/rds-util.cpp | radford/hhvm | a7cd6754d14742b40528c847b607a1608cfcfe98 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... | 38.355556 | 75 | 0.441483 | radford |
f572c492e82ca21a304588638c8d9d620bcf0a0f | 2,848 | cpp | C++ | ntree/dim2.cpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | 1 | 2015-06-14T15:54:27.000Z | 2015-06-14T15:54:27.000Z | ntree/dim2.cpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | null | null | null | ntree/dim2.cpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | null | null | null | #include "dim2.hpp"
#include "../geom2D.hpp"
#include "../bits.hpp"
namespace boom {
namespace ntree {
// ---------------------- CTDim_2D ----------------------
CTDim_2D::Id::Id(uint32_t val):
v0(val),
v1(val)
{}
CTDim_2D::Id::Id(uint32_t val0, uint32_t val1) {
v0 = val0;
v1 = val1;
}
CTDim_2D... | 27.384615 | 138 | 0.545295 | degarashi |
f57516bf397f9aca89060e51f4e1c2ba818f9026 | 2,579 | cpp | C++ | C++ STL/set.cpp | MuteMeteor/PAT | 2fbe50d206886e351c664ee89761cfca2f79d20d | [
"MIT"
] | null | null | null | C++ STL/set.cpp | MuteMeteor/PAT | 2fbe50d206886e351c664ee89761cfca2f79d20d | [
"MIT"
] | null | null | null | C++ STL/set.cpp | MuteMeteor/PAT | 2fbe50d206886e351c664ee89761cfca2f79d20d | [
"MIT"
] | null | null | null | // set 翻译为集合,是一个内部自动有序且不含重复元素的容器。
// Define
set<typename> name;
// examples
set<int> name;
set<double> name;
set<char> name;
set<node> name; // the type of struct
set<vector<int> > name;
// array
set<typename> Arrayname[arraysize];
// examples
set<int> a[100];
// =============================================... | 17.07947 | 65 | 0.500969 | MuteMeteor |
f57630ae15edcaf0e44198ced35522b3a2d5f482 | 4,969 | hpp | C++ | NWNXLib/API/API/CPathfindInformation.hpp | Mefi100/unified | b12a6cc27f291ff779d5ce1226c180ba3f3db800 | [
"MIT"
] | 3 | 2019-02-23T12:51:55.000Z | 2020-10-20T03:24:21.000Z | NWNXLib/API/API/CPathfindInformation.hpp | Mefi100/unified | b12a6cc27f291ff779d5ce1226c180ba3f3db800 | [
"MIT"
] | null | null | null | NWNXLib/API/API/CPathfindInformation.hpp | Mefi100/unified | b12a6cc27f291ff779d5ce1226c180ba3f3db800 | [
"MIT"
] | 1 | 2020-11-04T01:56:44.000Z | 2020-11-04T01:56:44.000Z | #pragma once
#include "nwn_api.hpp"
#include "CNWGridSearchPath.hpp"
#include "Vector.hpp"
#include "Vector2.hpp"
#ifdef NWN_API_PROLOGUE
NWN_API_PROLOGUE(CPathfindInformation)
#endif
struct CNWTileSurfaceMeshHashTableEntry;
struct CPathfindInfoIntraTileSuccessors;
typedef int BOOL;
typedef uint32_t OBJECT_ID;
... | 33.126667 | 161 | 0.791306 | Mefi100 |
f577e48e8b7832df4dd0f2ff8af8550ed6754f86 | 18,460 | cpp | C++ | src/tools/common_src/algebra4.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/tools/common_src/algebra4.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/tools/common_src/algebra4.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | 2 | 2016-09-19T00:16:05.000Z | 2021-03-29T22:06:45.000Z | /****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2016 **
** Fors... | 32.442882 | 213 | 0.538787 | OpenCMISS-Dependencies |
f57bf3d94ca5f7e8331f38dd9571a91c4fc2ab12 | 950 | cpp | C++ | Code/Client/ClientUI/Source/SplitterCtrl.cpp | MarvinGeng/TinyIM | 01c1c2e257e85caf8afa5ac5ecc4d5295fb0d710 | [
"MIT"
] | null | null | null | Code/Client/ClientUI/Source/SplitterCtrl.cpp | MarvinGeng/TinyIM | 01c1c2e257e85caf8afa5ac5ecc4d5295fb0d710 | [
"MIT"
] | null | null | null | Code/Client/ClientUI/Source/SplitterCtrl.cpp | MarvinGeng/TinyIM | 01c1c2e257e85caf8afa5ac5ecc4d5295fb0d710 | [
"MIT"
] | 1 | 2022-01-15T03:18:26.000Z | 2022-01-15T03:18:26.000Z | #include "stdafx.h"
#include "SplitterCtrl.h"
CSplitterCtrl::CSplitterCtrl()
{
m_hCursorNS = NULL;
}
CSplitterCtrl::~CSplitterCtrl()
{
}
int CSplitterCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
m_hCursorNS = ::LoadCursor(NULL, IDC_SIZENS);
return 1;
}
BOOL CSplitterCtrl::OnEraseBkgnd(CDCHandle dc)
{
retu... | 17.924528 | 97 | 0.727368 | MarvinGeng |
f57e91abc3229258cb144a48ac9a28d8014d5245 | 510 | cpp | C++ | InSight/src/Platform/OpenGL/OpenGLRendererAPI.cpp | I-Hudson/InSightEngine | a766c87a7be51a19ab796a81888fbbf93a8a43be | [
"Apache-2.0"
] | 3 | 2019-05-26T19:22:27.000Z | 2019-07-09T21:42:18.000Z | InSight/src/Platform/OpenGL/OpenGLRendererAPI.cpp | I-Hudson/InSightEngine | a766c87a7be51a19ab796a81888fbbf93a8a43be | [
"Apache-2.0"
] | 15 | 2019-05-26T09:32:22.000Z | 2019-06-11T11:31:03.000Z | InSight/src/Platform/OpenGL/OpenGLRendererAPI.cpp | I-Hudson/Insight-Engine | a766c87a7be51a19ab796a81888fbbf93a8a43be | [
"Apache-2.0"
] | null | null | null | #include "Platform/OpenGL/OpenGLRendererAPI.h"
#include <glad/glad.h>
namespace InSight
{
void OpenGLRendererAPI::SetClearColor(const glm::vec4 & aColor)
{
glClearColor(aColor.r, aColor.g, aColor.b, aColor.a);
}
void OpenGLRendererAPI::Clear()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}
void ... | 24.285714 | 101 | 0.762745 | I-Hudson |
f58244fa06be6732306713530b98c7e43a2e3077 | 4,997 | cpp | C++ | tests/device/device_constructors.cpp | alexbatashev/SYCL-CTS | 806294de8e9e69fe0057432f3c4fdb668b12db0b | [
"Apache-2.0"
] | null | null | null | tests/device/device_constructors.cpp | alexbatashev/SYCL-CTS | 806294de8e9e69fe0057432f3c4fdb668b12db0b | [
"Apache-2.0"
] | null | null | null | tests/device/device_constructors.cpp | alexbatashev/SYCL-CTS | 806294de8e9e69fe0057432f3c4fdb668b12db0b | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
//
// SYCL 1.2.1 Conformance Test Suite
//
// Copyright: (c) 2017 by Codeplay Software LTD. All Rights Reserved.
//
*******************************************************************************/
#include "../common/common.h"
#define ... | 28.231638 | 80 | 0.53332 | alexbatashev |
f5825bc94f4e59ddf5d799f62331ee7ac8f70052 | 781 | hpp | C++ | include/ceetah/ast/structure-definition.hpp | alta-lang/ceetah | bddb3478d10480f62ff0b3b4930479a2d745ae52 | [
"MIT"
] | null | null | null | include/ceetah/ast/structure-definition.hpp | alta-lang/ceetah | bddb3478d10480f62ff0b3b4930479a2d745ae52 | [
"MIT"
] | null | null | null | include/ceetah/ast/structure-definition.hpp | alta-lang/ceetah | bddb3478d10480f62ff0b3b4930479a2d745ae52 | [
"MIT"
] | null | null | null | #ifndef CEETAH_AST_STRUCTURE_DEFINITION_HPP
#define CEETAH_AST_STRUCTURE_DEFINITION_HPP
#include "statement.hpp"
#include "type.hpp"
#include <vector>
namespace Ceetah {
namespace AST {
class StructureDefinition: public Statement {
public:
virtual NodeType nodeType() const override;
std::... | 28.925926 | 87 | 0.700384 | alta-lang |
f586938806235d05a3328ea2044ef0e416ac7aa4 | 675 | cpp | C++ | performance-tests/Synch-Benchmarks/Perf_Test/context_test.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | performance-tests/Synch-Benchmarks/Perf_Test/context_test.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | performance-tests/Synch-Benchmarks/Perf_Test/context_test.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | 1 | 2020-04-26T03:07:12.000Z | 2020-04-26T03:07:12.000Z | #define ACE_BUILD_SVC_DLL
#include "Performance_Test_Options.h"
#include "Benchmark_Performance.h"
#if defined (ACE_HAS_THREADS)
class ACE_Svc_Export Context_Test : public Benchmark_Performance
{
public:
virtual int svc (void);
};
int
Context_Test::svc (void)
{
int ni = this->thr_id ();
sync... | 19.285714 | 65 | 0.682963 | azerothcore |
f5869828a68df09f481474fb3015e9a3b97a59bd | 1,809 | cpp | C++ | src_experiment/exp_01_stmt_parser/exp_01_05_delete.cpp | RSMinBamGro/DongmenDB | d15bf0685042b3d045d8102b2245e0048b9ce969 | [
"Apache-2.0"
] | null | null | null | src_experiment/exp_01_stmt_parser/exp_01_05_delete.cpp | RSMinBamGro/DongmenDB | d15bf0685042b3d045d8102b2245e0048b9ce969 | [
"Apache-2.0"
] | null | null | null | src_experiment/exp_01_stmt_parser/exp_01_05_delete.cpp | RSMinBamGro/DongmenDB | d15bf0685042b3d045d8102b2245e0048b9ce969 | [
"Apache-2.0"
] | null | null | null | //
// Created by Sam on 2018/2/13.
//
#include <dongmensql/sqlstatement.h>
#include <parser/StatementParser.h>
/**
* 在现有实现基础上,实现delete from子句
*
* 支持的delete语法:
*
* DELETE <table_name> WHERE <logical_expr>
*
* 解析获得 sql_stmt_delete 结构
*/
sql_stmt_delete *DeleteParser::parse_sql_stmt_delete () {
/** 匹配保留字 ... | 26.217391 | 95 | 0.640685 | RSMinBamGro |
f5894a73cfd5edc54316d2e2fddacc55c9ff1e38 | 26,229 | cpp | C++ | ImageProcess.cpp | ryanjthomas/ADC20-Processor | c341d36f7867fce33918f6ee4bff72d4a321a092 | [
"MIT"
] | null | null | null | ImageProcess.cpp | ryanjthomas/ADC20-Processor | c341d36f7867fce33918f6ee4bff72d4a321a092 | [
"MIT"
] | null | null | null | ImageProcess.cpp | ryanjthomas/ADC20-Processor | c341d36f7867fce33918f6ee4bff72d4a321a092 | [
"MIT"
] | null | null | null | #include <numeric>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include "ImageProcess.h"
#include "ImageProcessDefs.h"
#include "vec_funcs.h"
//Root crap
#include "TH1D.h"
#include "TF1.h"
#include "TFile.h"
#include "TGraph.h"
#include "TROOT.h"
#include "stdio.h"
#include "fitsio.h"
#include <iostr... | 33.412739 | 165 | 0.691525 | ryanjthomas |
f58dbd0993c3a3ecf276d969976f6881d88087cf | 1,594 | cpp | C++ | Algorithms on graphs/Shortest paths/Pallottino's.cpp | afentev/Algorithms-and-Data-structures | 4049c8dd21e9db90f341aefeb1669d4d3f33a519 | [
"MIT"
] | 1 | 2022-03-22T16:53:17.000Z | 2022-03-22T16:53:17.000Z | Algorithms on graphs/Shortest paths/Pallottino's.cpp | afentev/Algorithms-and-Data-structures | 4049c8dd21e9db90f341aefeb1669d4d3f33a519 | [
"MIT"
] | null | null | null | Algorithms on graphs/Shortest paths/Pallottino's.cpp | afentev/Algorithms-and-Data-structures | 4049c8dd21e9db90f341aefeb1669d4d3f33a519 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
struct Edge {
int dst, w;
};
struct Label {
char m1, m2;
};
std::vector<int> dists;
std::vector<std::vector<Edge>> edges;
int n, m;
int inf = 30000;
void Pollattino(int vertex) {
dists.resize(n, inf);
dists[vertex] = 0;
std::vector<Label> labels(n, ... | 19.679012 | 61 | 0.534504 | afentev |
f590c5f879dafe463ad8817af2c3528ee4715831 | 693 | cpp | C++ | src/sprite.cpp | hjelmw/Gyruss | 031222a1f8072f1c6965c546d39f979ff37a0267 | [
"Unlicense"
] | 3 | 2020-03-15T22:32:50.000Z | 2020-04-27T21:09:00.000Z | src/sprite.cpp | hjelmw/Gyruss | 031222a1f8072f1c6965c546d39f979ff37a0267 | [
"Unlicense"
] | null | null | null | src/sprite.cpp | hjelmw/Gyruss | 031222a1f8072f1c6965c546d39f979ff37a0267 | [
"Unlicense"
] | 2 | 2020-03-15T22:35:30.000Z | 2020-03-15T22:35:38.000Z | #include "Sprite.hpp"
Sprite::Sprite(SDL_Renderer* renderer, SDL_Texture* texture)
{
Sprite::spriteDim = new SDL_Rect{ 0, 0, 0, 0 };
Sprite::renderer = renderer;
Sprite::texture = texture;
int w = 0;
int h = 0;
int angle;
SDL_QueryTexture(texture, NULL, NULL, &w, &h); // get the width and height of the textur... | 19.8 | 90 | 0.669553 | hjelmw |
f5937a7fc0100708590f98ee8f1914ed58b524f4 | 16,663 | cpp | C++ | src/Invariants.cpp | Songtuan-Lin/pandaPIengine | be019b16fec6f679fa3db31b97ccbe9491769d65 | [
"BSD-3-Clause"
] | 5 | 2021-04-06T22:06:47.000Z | 2021-07-20T14:56:13.000Z | src/Invariants.cpp | Songtuan-Lin/pandaPIengine | be019b16fec6f679fa3db31b97ccbe9491769d65 | [
"BSD-3-Clause"
] | 2 | 2021-04-07T12:17:39.000Z | 2021-09-03T10:30:26.000Z | src/Invariants.cpp | Songtuan-Lin/pandaPIengine | be019b16fec6f679fa3db31b97ccbe9491769d65 | [
"BSD-3-Clause"
] | 6 | 2021-06-16T13:41:06.000Z | 2022-03-30T07:13:18.000Z | #include <vector>
#include <iostream>
#include <queue>
#include <cassert>
#include "Invariants.h"
#include "Debug.h"
using namespace std;
namespace std {
template <> struct hash<std::pair<int, int>> {
inline size_t operator()(const std::pair<int, int> &v) const {
std::hash<int> int_hasher;
return ... | 32.608611 | 166 | 0.648563 | Songtuan-Lin |
60d3e2114106486531a429f67b910671547709d2 | 7,381 | cxx | C++ | Packages/java/nio/LongBuffer.cxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/nio/LongBuffer.cxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/nio/LongBuffer.cxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | //
// LongBuffer.cxx
// Aries
//
// Created by Brandon on 2018-02-24.
// Copyright © 2018 Brandon. All rights reserved.
//
#include "LongBuffer.hxx"
#include "Buffer.hxx"
#include "Object.hxx"
#include "String.hxx"
#include "ByteOrder.hxx"
using java::nio::LongBuffer;
using java::lang::Object;
using java::lang::S... | 39.897297 | 132 | 0.695028 | Brandon-T |
60d5902eac9d2e3d0792fb5ebe550330b60c1604 | 5,482 | cpp | C++ | gporca/libnaucrates/src/parser/CParseHandlerCtasStorageOptions.cpp | Tanmoy248/gpdb | 67fa1568b3ef2dc1c7757e3e94705de2f92e124b | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gporca/libnaucrates/src/parser/CParseHandlerCtasStorageOptions.cpp | Tanmoy248/gpdb | 67fa1568b3ef2dc1c7757e3e94705de2f92e124b | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gporca/libnaucrates/src/parser/CParseHandlerCtasStorageOptions.cpp | Tanmoy248/gpdb | 67fa1568b3ef2dc1c7757e3e94705de2f92e124b | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2022-03-22T18:45:41.000Z | 2022-03-22T18:45:41.000Z | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2014 Pivotal Inc.
//
// @filename:
// CParseHandlerCtasStorageOptions.cpp
//
// @doc:
// Implementation of the SAX parse handler class for parsing CTAS storage
// options
//---------------------------... | 36.546667 | 176 | 0.664721 | Tanmoy248 |
60e3147522438a2a8794b4a339b93135ecee3c52 | 7,804 | hpp | C++ | external/ipopt/include/coin/IpIpoptAlg.hpp | l03ie/Gernby | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 9 | 2020-07-09T06:40:31.000Z | 2022-03-28T02:50:21.000Z | external/ipopt/include/coin/IpIpoptAlg.hpp | iambluefred/Test_9 | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 1 | 2018-07-31T16:52:31.000Z | 2018-08-02T15:37:55.000Z | external/ipopt/include/coin/IpIpoptAlg.hpp | iambluefred/Test_9 | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 5 | 2020-12-01T01:41:12.000Z | 2022-01-04T01:21:49.000Z | // Copyright (C) 2004, 2010 International Business Machines and others.
// All Rights Reserved.
// This code is published under the Eclipse Public License.
//
// $Id: IpIpoptAlg.hpp 2167 2013-03-08 11:15:38Z stefan $
//
// Authors: Carl Laird, Andreas Waechter IBM 2004-08-13
#ifndef __IPIPOPTALG_HPP__
#define ... | 34.684444 | 92 | 0.671579 | l03ie |
60e5214e7db30d1c841d8fbbcda3ecf4c5ae9f27 | 2,875 | cpp | C++ | QtnProperty/Core/PropertyEnumFlags.cpp | SolarCpp/QtnProperty | 6711a7436865f14d3a4398f0745de9f0de32c7b7 | [
"Apache-2.0"
] | null | null | null | QtnProperty/Core/PropertyEnumFlags.cpp | SolarCpp/QtnProperty | 6711a7436865f14d3a4398f0745de9f0de32c7b7 | [
"Apache-2.0"
] | null | null | null | QtnProperty/Core/PropertyEnumFlags.cpp | SolarCpp/QtnProperty | 6711a7436865f14d3a4398f0745de9f0de32c7b7 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
Copyright 2012-2015 Alex Zhondin <qtinuum.team@gmail.com>
Copyright 2015-2017 Alexandra Cherdantseva <neluhus.vagus@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance ... | 23.958333 | 80 | 0.685913 | SolarCpp |
60e91eb8042a149641cfde2cdc2723a791661e54 | 15,132 | cpp | C++ | Ouroboros/Source/oBasis/oInputMapper.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oBasis/oInputMapper.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oBasis/oInputMapper.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | // Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use.
#include <oBasis/oInputMapper.h>
#include <oBasis/oError.h>
#include <oBasis/oRefCount.h>
#include <oConcurrency/mutex.h>
#include <array>
using namespace ouro;
using namespace std;
class oActionHookHelper
{
public:
oActionHookHelper(... | 28.550943 | 175 | 0.675059 | jiangzhu1212 |
60ed1c138adc3f8d4911b01db202dc929b83e89c | 77,974 | cpp | C++ | libs/base/src/utils/CImage.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/base/src/utils/CImage.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | libs/base/src/utils/CImage.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 1 | 2021-08-16T11:50:47.000Z | 2021-08-16T11:50:47.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 27.857806 | 205 | 0.59012 | yhexie |
60ee060ccc5d2e79aa4db87fe36bb33397bc0c67 | 578 | cpp | C++ | abc/abc005/d/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | 3 | 2019-06-25T06:17:38.000Z | 2019-07-13T15:18:51.000Z | abc/abc005/d/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | abc/abc005/d/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | #include "template.hpp"
int main() {
ll(N);
vvll(D, N);
ll(Q);
vll(P, Q);
auto s = vec(ll, N + 1, N + 1);
repi(i, N) {
repi(j, N) {
s[i][j] = D[i - 1][j - 1] + s[i][j - 1] + s[i - 1][j] - s[i - 1][j - 1];
}
}
each(p, P) {
ll ans = 0;
repi(i, N) {
repi(j, N) {
repi(k,... | 18.645161 | 78 | 0.309689 | wotsushi |
60f12763b77e261983610a06dea34b6994c7a257 | 13,129 | cpp | C++ | hphp/runtime/ext/xenon/ext_xenon.cpp | ritikagrawat/hhvm | 4f18db152aeea6c380c877f38fc99778a5511008 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/ext/xenon/ext_xenon.cpp | ritikagrawat/hhvm | 4f18db152aeea6c380c877f38fc99778a5511008 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/ext/xenon/ext_xenon.cpp | ritikagrawat/hhvm | 4f18db152aeea6c380c877f38fc99778a5511008 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... | 32.659204 | 80 | 0.641862 | ritikagrawat |
60f24dcbc9b1065d91a22cab314123234fbf1bc7 | 308 | cpp | C++ | dups/BasicHandler.cpp | dtylman/dups | 7797ff0fe61978b6d31727e01b5787a79faf2c9a | [
"MIT"
] | null | null | null | dups/BasicHandler.cpp | dtylman/dups | 7797ff0fe61978b6d31727e01b5787a79faf2c9a | [
"MIT"
] | null | null | null | dups/BasicHandler.cpp | dtylman/dups | 7797ff0fe61978b6d31727e01b5787a79faf2c9a | [
"MIT"
] | null | null | null | /*
* File: BasicActionsHandler.cpp
* Author: danny
*
* Created on September 4, 2018, 6:08 PM
*/
#include "BasicHandler.h"
BasicHandler::BasicHandler()
{
}
BasicHandler::~BasicHandler()
{
}
void BasicHandler::handleDuplicates(const Items& duplicates)
{
}
void BasicHandler::process()
{
}
| 11 | 60 | 0.675325 | dtylman |
60f66abc779e69691dddda78482cb3e6d7c67ca2 | 5,847 | hpp | C++ | modint.hpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 20 | 2021-06-21T00:18:54.000Z | 2022-03-17T17:45:44.000Z | modint.hpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 56 | 2021-06-03T14:42:13.000Z | 2022-03-26T14:15:30.000Z | modint.hpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 2 | 2021-08-31T04:47:49.000Z | 2021-09-09T06:39:57.000Z | #pragma once
#include <iostream>
#include <set>
#include <vector>
// CUT begin
template <int md> struct ModInt {
#if __cplusplus >= 201402L
#define MDCONST constexpr
#else
#define MDCONST
#endif
using lint = long long;
MDCONST static int mod() { return md; }
static int get_primitive_root() {
static... | 41.468085 | 110 | 0.507098 | ankit6776 |
60f88ae98eed01a7188814b4dbce83e075599017 | 624 | cpp | C++ | libfma/src/fma/File.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | libfma/src/fma/File.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | libfma/src/fma/File.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #include <fma/File.hpp>
#include <boost/filesystem.hpp>
#include <iostream>
using namespace FMA;
// ----------------------------------------------------------------------------
File::File(const std::string &fileName)
: fileName(fileName)
{
}
// ---------------------------------------------------------------------... | 24.96 | 79 | 0.333333 | BenjaminSchulte |
60fa568ed269403e744c6dde4f6ebd8fa5908a52 | 7,247 | ipp | C++ | dep/win/include/boost/test/impl/xml_log_formatter.ipp | Netis/packet-agent | 70da3479051a07e3c235abe7516990f9fd21a18a | [
"BSD-3-Clause"
] | 995 | 2018-06-22T10:39:18.000Z | 2022-03-25T01:22:14.000Z | dep/win/include/boost/test/impl/xml_log_formatter.ipp | Netis/packet-agent | 70da3479051a07e3c235abe7516990f9fd21a18a | [
"BSD-3-Clause"
] | 32 | 2018-06-23T14:19:37.000Z | 2022-03-29T10:20:37.000Z | dep/win/include/boost/test/impl/xml_log_formatter.ipp | Netis/packet-agent | 70da3479051a07e3c235abe7516990f9fd21a18a | [
"BSD-3-Clause"
] | 172 | 2018-06-22T11:12:00.000Z | 2022-03-29T07:44:33.000Z | // (C) Copyright Gennadiy Rozental 2001.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Versi... | 32.066372 | 136 | 0.630744 | Netis |
60fbf8afad8778539c1b624520fa3591519140ea | 1,343 | hpp | C++ | vm/thread_state.hpp | larrytheliquid/rubinius | 5af42280ab95626f33517ca5f6330e17be04ec64 | [
"BSD-3-Clause"
] | null | null | null | vm/thread_state.hpp | larrytheliquid/rubinius | 5af42280ab95626f33517ca5f6330e17be04ec64 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T14:09:00.000Z | 2022-03-12T14:09:00.000Z | vm/thread_state.hpp | isabella232/rubinius | 5af42280ab95626f33517ca5f6330e17be04ec64 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T12:08:44.000Z | 2022-03-12T12:08:44.000Z | #ifndef RBX_THREAD_STATE_HPP
#define RBX_THREAD_STATE_HPP
#include "raise_reason.hpp"
#include "gc/root.hpp"
#include <iostream>
namespace rubinius {
class Object;
class Exception;
class VariableScope;
class VM;
class ThreadState {
TypedRoot<Object*> raise_value_;
RaiseReason raise_reason_;
Typ... | 22.762712 | 71 | 0.670886 | larrytheliquid |
60fc61abfcefecc571cdbf80a08c672104fe000d | 33,750 | cc | C++ | generator/internal/descriptor_utils.cc | jmouradi-google/google-cloud-cpp | 7bd738251a80e9520d7a7de4cc14558f161c8edc | [
"Apache-2.0"
] | null | null | null | generator/internal/descriptor_utils.cc | jmouradi-google/google-cloud-cpp | 7bd738251a80e9520d7a7de4cc14558f161c8edc | [
"Apache-2.0"
] | null | null | null | generator/internal/descriptor_utils.cc | jmouradi-google/google-cloud-cpp | 7bd738251a80e9520d7a7de4cc14558f161c8edc | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 43.945313 | 80 | 0.691289 | jmouradi-google |
60fd14829f9fed9a58056d18b425649ed09a77fe | 9,213 | cpp | C++ | Server/dep/g3dlite/G3D/AABox.cpp | ZON3DEV/wow-vanilla | 7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f | [
"OpenSSL"
] | null | null | null | Server/dep/g3dlite/G3D/AABox.cpp | ZON3DEV/wow-vanilla | 7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f | [
"OpenSSL"
] | 20 | 2017-04-10T18:41:58.000Z | 2017-04-10T19:01:12.000Z | Server/dep/g3dlite/G3D/AABox.cpp | ZON3DEV/wow-vanilla | 7b6f03c3e1e7d8dd29a92ba77ed021e5913e5e9f | [
"OpenSSL"
] | null | null | null | /**
@file AABox.cpp
@maintainer Morgan McGuire, http://graphics.cs.williams.edu
@created 2004-01-10
@edited 2006-01-11
*/
#include "G3D/platform.h"
#include "G3D/AABox.h"
#include "G3D/Box.h"
#include "G3D/Plane.h"
#include "G3D/Sphere.h"
#include "G3D/BinaryInput.h"
#include "G3D/BinaryOutput.h"
namespac... | 24.832884 | 93 | 0.483447 | ZON3DEV |
60fdb40ffe5757ecc7a1817fd6113c92798a27dd | 33,873 | cpp | C++ | src/openms/source/FORMAT/MascotRemoteQuery.cpp | rahul799/OpenMS | 962916f588789b6fab185d7f2d5fbac27226a99e | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | src/openms/source/FORMAT/MascotRemoteQuery.cpp | rahul799/OpenMS | 962916f588789b6fab185d7f2d5fbac27226a99e | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | src/openms/source/FORMAT/MascotRemoteQuery.cpp | rahul799/OpenMS | 962916f588789b6fab185d7f2d5fbac27226a99e | [
"BSL-1.0",
"Apache-2.0",
"Zlib"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 39.991736 | 533 | 0.662711 | rahul799 |
60febc355f9bfd8911ef306827d40c5c12452c8f | 371 | cpp | C++ | hw6/homework_6/src/app/test_iotools.cpp | fanyang805/modern_cpp_sol | 48f74fe3c089f0aa5c39bea194accc383cba4f2b | [
"MIT"
] | null | null | null | hw6/homework_6/src/app/test_iotools.cpp | fanyang805/modern_cpp_sol | 48f74fe3c089f0aa5c39bea194accc383cba4f2b | [
"MIT"
] | null | null | null | hw6/homework_6/src/app/test_iotools.cpp | fanyang805/modern_cpp_sol | 48f74fe3c089f0aa5c39bea194accc383cba4f2b | [
"MIT"
] | 1 | 2020-12-20T20:12:21.000Z | 2020-12-20T20:12:21.000Z | #include "io_tools.hpp"
#include <iostream>
#include <string>
int main() {
const std::string &file_name{"data/lena.ascii.pgm"};
igg::io_tools::ImageData img = igg::io_tools::ReadFromPgm(file_name);
int rows = img.rows;
int cols = img.cols;
std::vector<uint8_t> data = img.data;
std::cout << img.data.size()... | 24.733333 | 71 | 0.649596 | fanyang805 |
60ff086e303589b1fe46f1b2dd6624dbf786781f | 2,296 | hpp | C++ | include/GlobalNamespace/VRControllersRecorderSaveAndLoad.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/VRControllersRecorderSaveAndLoad.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/VRControllersRecorderSaveAndLoad.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: GlobalNa... | 47.833333 | 121 | 0.758711 | darknight1050 |
880342c54bd91e6c8f36466fd080ba0464c36140 | 320 | cpp | C++ | C++/RegexMatching.cpp | muthusk07/cs-algorithms | 5e05de538e672cf49dd6c689a317c32959a67902 | [
"MIT"
] | 239 | 2019-10-07T11:01:56.000Z | 2022-01-27T19:08:55.000Z | C++/RegexMatching.cpp | muthusk07/cs-algorithms | 5e05de538e672cf49dd6c689a317c32959a67902 | [
"MIT"
] | 176 | 2019-10-07T06:59:49.000Z | 2020-09-30T08:16:22.000Z | C++/RegexMatching.cpp | muthusk07/cs-algorithms | 5e05de538e672cf49dd6c689a317c32959a67902 | [
"MIT"
] | 441 | 2019-10-07T07:34:08.000Z | 2022-03-15T07:19:58.000Z | #include<iostream>
#include<regex>
using namespace std;
int main()
{
//the string that will be matched with the regex
string s;
cin >> s;
if(regex_match(s, regex("(str)(.*)"))
cout << "the entered string contains 'str'";
else
cout << "there was no match between the entered string and 'str'";
return 0;
}
| 16.842105 | 68 | 0.6625 | muthusk07 |
88072229ee06e385a541e65e36ef73ce8efd32e7 | 24,338 | cpp | C++ | src/mainwindow.cpp | Loukei/Qt-Notepad | 7f540cad59ca0ad9c78fdceaf7bb89b0e5193cc7 | [
"MIT"
] | null | null | null | src/mainwindow.cpp | Loukei/Qt-Notepad | 7f540cad59ca0ad9c78fdceaf7bb89b0e5193cc7 | [
"MIT"
] | null | null | null | src/mainwindow.cpp | Loukei/Qt-Notepad | 7f540cad59ca0ad9c78fdceaf7bb89b0e5193cc7 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "tabwidget.h"
#include "texteditor.h"
#include "recentfiles.h"
#include "searchwidget.h"
#include <QDebug>
#include <QSettings>
#include <QFileDialog>
#include <QStandardPaths>
#include <QMessageBox>
#include <QVBoxLayout>
#include <QCloseEvent>
//! Darg & dro... | 34.182584 | 100 | 0.659339 | Loukei |
880c634df656e49597721c7192ce01521645ff4d | 4,332 | cc | C++ | zircon/system/ulib/fs/test/tracked_remote_dir_tests.cc | billchen1977/fuchsia | d443f9c7b03ad317d1700c2c9457be8ed1147b86 | [
"BSD-2-Clause"
] | null | null | null | zircon/system/ulib/fs/test/tracked_remote_dir_tests.cc | billchen1977/fuchsia | d443f9c7b03ad317d1700c2c9457be8ed1147b86 | [
"BSD-2-Clause"
] | null | null | null | zircon/system/ulib/fs/test/tracked_remote_dir_tests.cc | billchen1977/fuchsia | d443f9c7b03ad317d1700c2c9457be8ed1147b86 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <utility>
#include <fs/tracked_remote_dir.h>
#include <zxtest/zxtest.h>... | 35.801653 | 94 | 0.721607 | billchen1977 |
880de5ad3cc8d6fb4f42f520fb7b7392a8feff58 | 5,645 | hpp | C++ | include/ensmallen_bits/adam/nadam_update.hpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-04-07T18:50:10.000Z | 2020-04-07T18:50:10.000Z | include/ensmallen_bits/adam/nadam_update.hpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/ensmallen_bits/adam/nadam_update.hpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2019-01-16T16:21:59.000Z | 2019-01-16T16:21:59.000Z | /**
* @file nadam_update.hpp
* @author Sourabh Varshney
*
* Nadam update rule. Nadam is an optimizer that combines the effect of Adam
* and NAG to the gradient descent to improve its Performance.
*
* ensmallen is free software; you may redistribute it and/or modify it under
* the terms of the 3-clause BSD licen... | 30.026596 | 80 | 0.658459 | ElianeBriand |
880f704d3730f08a7e5c0e3a05282988dea3a738 | 7,183 | hpp | C++ | include/imgproc/xf_stereo_pipeline.hpp | ZoTechGroup/xfopencv | 78e871e7a64ec4c07f5320024b0ca2b4f9199a96 | [
"BSD-3-Clause"
] | 1 | 2021-03-19T15:21:54.000Z | 2021-03-19T15:21:54.000Z | include/imgproc/xf_stereo_pipeline.hpp | ZoTechGroup/xfopencv | 78e871e7a64ec4c07f5320024b0ca2b4f9199a96 | [
"BSD-3-Clause"
] | null | null | null | include/imgproc/xf_stereo_pipeline.hpp | ZoTechGroup/xfopencv | 78e871e7a64ec4c07f5320024b0ca2b4f9199a96 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
Copyright (c) 2016, Xilinx, Inc.
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 reta... | 35.559406 | 197 | 0.703884 | ZoTechGroup |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.