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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b15c5f4324e695b7db2e7ebc8dc2d552fc37b758 | 980 | cc | C++ | src/perf_to_profile.cc | cervantesyu/perf_data_converter | 5fe21942c1db6625963e657f458fea5c30af40e2 | [
"BSD-3-Clause"
] | null | null | null | src/perf_to_profile.cc | cervantesyu/perf_data_converter | 5fe21942c1db6625963e657f458fea5c30af40e2 | [
"BSD-3-Clause"
] | 1 | 2019-10-18T07:50:07.000Z | 2019-10-19T02:14:40.000Z | src/perf_to_profile.cc | cervantesyu/perf_data_converter | 5fe21942c1db6625963e657f458fea5c30af40e2 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 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.
*/
#include "src/perf_to_profile_lib.h"
#include "src/quipper/base/logging.h"
#include "src/perf_data_converter.h"
int main(int argc, char** argv) {
... | 28 | 76 | 0.689796 | cervantesyu |
b15de914bdee652baa0d944113947a99f62db45c | 2,641 | cpp | C++ | src/futz/platforms/FutzGlut.cpp | zibas/futz | 83fc0e1a7489940bb55e2db6ccc8ca7d1ac0719f | [
"MIT"
] | 4 | 2019-01-30T00:14:29.000Z | 2020-05-15T01:14:28.000Z | src/futz/platforms/FutzGlut.cpp | zibas/futz | 83fc0e1a7489940bb55e2db6ccc8ca7d1ac0719f | [
"MIT"
] | null | null | null | src/futz/platforms/FutzGlut.cpp | zibas/futz | 83fc0e1a7489940bb55e2db6ccc8ca7d1ac0719f | [
"MIT"
] | null | null | null | /*
* FutzGlut.cpp
*
* Created on: Nov 3, 2010
* Author: ziba
*/
#if FUTZ_PLATFORM_GLUT
#ifdef _WIN32
#include <Windows.h>
#endif
#ifdef OSX
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#ifdef _WIN32
#include <glut.h>
#else
#include <GL/gl... | 21.471545 | 87 | 0.706172 | zibas |
b1613bae1ecfdc4f880b98c4a372c4239a7d9013 | 9,964 | cpp | C++ | ui_components/comboex/CheckCombo.cpp | l619534951/monitor_helper_duilib | a0df2a0285bdd37b77a611fba080dee0e55bda4f | [
"BSD-2-Clause",
"MIT"
] | null | null | null | ui_components/comboex/CheckCombo.cpp | l619534951/monitor_helper_duilib | a0df2a0285bdd37b77a611fba080dee0e55bda4f | [
"BSD-2-Clause",
"MIT"
] | null | null | null | ui_components/comboex/CheckCombo.cpp | l619534951/monitor_helper_duilib | a0df2a0285bdd37b77a611fba080dee0e55bda4f | [
"BSD-2-Clause",
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CheckCombo.h"
namespace nim_comp
{
class CCheckComboWnd : public Window
{
public:
void Init(CheckCombo* pOwner);
virtual std::wstring GetWindowClassName() const override;
virtual void OnFinalMessage(HWND hWnd) override;
virtual LRESULT HandleMessage(UINT uMsg, WPARAM wParam, L... | 26.92973 | 101 | 0.691389 | l619534951 |
b161ae5e22605317290fd30b79ce84565cc1f983 | 25,206 | cpp | C++ | src/universal_robot/ur_modern_driver/src/ur_ros_wrapper.cpp | Slifer64/ur5_test_delay | c7e8460a89d967615592471ad5d196900c5e89df | [
"MIT"
] | null | null | null | src/universal_robot/ur_modern_driver/src/ur_ros_wrapper.cpp | Slifer64/ur5_test_delay | c7e8460a89d967615592471ad5d196900c5e89df | [
"MIT"
] | null | null | null | src/universal_robot/ur_modern_driver/src/ur_ros_wrapper.cpp | Slifer64/ur5_test_delay | c7e8460a89d967615592471ad5d196900c5e89df | [
"MIT"
] | null | null | null | #include "ur_modern_driver/ur_ros_wrapper.h"
namespace ur_
{
RosWrapper::RosWrapper(const std::string &robot_ip_address, int reverse_port):
spinner(3), as_(nh_, "follow_joint_trajectory", boost::bind(&RosWrapper::goalCB, this, _1), boost::bind(&RosWrapper::cancelCB, this, _1), false)
{
keep_alive = true;
bool use... | 34.576132 | 159 | 0.719829 | Slifer64 |
b16a24468a2a1321b48701381e8ee37fa4eda76a | 3,264 | cpp | C++ | getic/ProgressDlg.cpp | circinusX1/getic3d | a9c54c977f2f4fef8bc3a5f91f9d8e99684e5eb5 | [
"BSD-4-Clause"
] | null | null | null | getic/ProgressDlg.cpp | circinusX1/getic3d | a9c54c977f2f4fef8bc3a5f91f9d8e99684e5eb5 | [
"BSD-4-Clause"
] | 1 | 2020-09-01T15:02:02.000Z | 2020-09-01T16:11:07.000Z | getic/ProgressDlg.cpp | circinusX1/getic3d | a9c54c977f2f4fef8bc3a5f91f9d8e99684e5eb5 | [
"BSD-4-Clause"
] | 1 | 2020-09-08T19:14:57.000Z | 2020-09-08T19:14:57.000Z | // ProgressDlg.cpp: implementation of the ProgressDlg class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "z-edmap.h"
#include "ProgressDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
////... | 21.90604 | 91 | 0.553002 | circinusX1 |
b16b49bc8d49d5edd6e5b61b162e26652c379ab6 | 2,291 | cc | C++ | tests/functional_small/expressions/eigen_diag.cc | Pressio/pressio | e07eb1ed71266490217f2f7a3aad5e1acfecfd4a | [
"BSD-3-Clause"
] | 29 | 2019-11-11T13:17:57.000Z | 2022-03-16T01:31:31.000Z | tests/functional_small/expressions/eigen_diag.cc | Pressio/pressio | e07eb1ed71266490217f2f7a3aad5e1acfecfd4a | [
"BSD-3-Clause"
] | 303 | 2019-09-30T10:15:41.000Z | 2022-03-30T08:24:04.000Z | tests/functional_small/expressions/eigen_diag.cc | Pressio/pressio | e07eb1ed71266490217f2f7a3aad5e1acfecfd4a | [
"BSD-3-Clause"
] | 4 | 2020-07-07T03:32:36.000Z | 2022-03-10T05:21:42.000Z |
#include <gtest/gtest.h>
#include "pressio/expressions.hpp"
namespace{
template <typename T>
void test1(T & A)
{
{
const auto diagvals = pressio::diag(A);
EXPECT_EQ( diagvals.extent(0), 4 );
EXPECT_DOUBLE_EQ( diagvals(0), 1.2 );
EXPECT_DOUBLE_EQ( diagvals(1), 6.2 );
EXPECT_DOU... | 26.034091 | 66 | 0.539939 | Pressio |
b16dbc2861c7692cb9852fe2459715a6185b3df7 | 8,738 | cpp | C++ | src/chronometer.cpp | cbassem/resilient-icnc | 9f94b185358f2af133244fc8c877190bd15ed413 | [
"BSD-3-Clause"
] | 1 | 2018-05-08T18:26:39.000Z | 2018-05-08T18:26:39.000Z | src/chronometer.cpp | cbassem/resilient-icnc | 9f94b185358f2af133244fc8c877190bd15ed413 | [
"BSD-3-Clause"
] | null | null | null | src/chronometer.cpp | cbassem/resilient-icnc | 9f94b185358f2af133244fc8c877190bd15ed413 | [
"BSD-3-Clause"
] | null | null | null | /* *******************************************************************************
* Copyright (c) 2007-2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source c... | 39.538462 | 135 | 0.42916 | cbassem |
b16f8ae238fb5a0a3d9fe4685f185719f6bc296d | 2,254 | hpp | C++ | contracts/eoslib/datastream.hpp | cmpt376temper/eos | 74661de324166e0d99ab43c155b640ac0d665a32 | [
"MIT"
] | null | null | null | contracts/eoslib/datastream.hpp | cmpt376temper/eos | 74661de324166e0d99ab43c155b640ac0d665a32 | [
"MIT"
] | null | null | null | contracts/eoslib/datastream.hpp | cmpt376temper/eos | 74661de324166e0d99ab43c155b640ac0d665a32 | [
"MIT"
] | null | null | null | #pragma once
#include <eoslib/system.h>
#include <eoslib/memory.h>
namespace eos {
template<typename T>
class datastream {
public:
datastream( T start, size_t s )
:_start(start),_pos(start),_end(start+s){};
inline void skip( size_t s ){ _pos += s; }
inline bool read( char* d, ... | 31.305556 | 86 | 0.466726 | cmpt376temper |
b1702c0ea9264ff7aa6d3d4f5add84a770c450fa | 378 | cpp | C++ | GradientDescent/GradientDescent/Add.cpp | skostrov/GradientDescent | aed56fa9d1452252f76e8841227283372f2e761d | [
"MIT"
] | null | null | null | GradientDescent/GradientDescent/Add.cpp | skostrov/GradientDescent | aed56fa9d1452252f76e8841227283372f2e761d | [
"MIT"
] | null | null | null | GradientDescent/GradientDescent/Add.cpp | skostrov/GradientDescent | aed56fa9d1452252f76e8841227283372f2e761d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Add.h"
Add::Add(AbstractOperation* leftOperand_, AbstractOperation* rightOperand_) :
BinaryOperation("+", leftOperand_, rightOperand_)
{
}
Add::~Add()
{
}
OperationPriority Add::GetPriority() const
{
return OperationPriority::LOW;
}
double Add::Eval(const Point& point) const
{
retur... | 16.434783 | 77 | 0.73545 | skostrov |
b170ee095af006f3cd4badce1f32d6f6bb94c275 | 1,572 | cpp | C++ | software_package/testing/old_dev/lib/old/communication/src/Radio/RadioImpl.cpp | scottzach1/Project-Beans | 0c7a257409464d5e44ea7367e439ae0e12fd41f1 | [
"MIT"
] | 5 | 2020-10-21T23:35:18.000Z | 2021-02-02T19:44:46.000Z | software_package/testing/old_dev/lib/old/communication/src/Radio/RadioImpl.cpp | scottzach1/Project-Beans | 0c7a257409464d5e44ea7367e439ae0e12fd41f1 | [
"MIT"
] | null | null | null | software_package/testing/old_dev/lib/old/communication/src/Radio/RadioImpl.cpp | scottzach1/Project-Beans | 0c7a257409464d5e44ea7367e439ae0e12fd41f1 | [
"MIT"
] | 1 | 2020-10-26T05:13:21.000Z | 2020-10-26T05:13:21.000Z | /**
Concrete Implementation which will inherit RadioInterface.
This will communicate with other packages to get info where appropriate.
*/
#include "RadioImpl.h"
#include <iostream>
RadioImpl::RadioImpl() = default;
RadioImpl::~RadioImpl() = default;
int RadioImpl::getPostFlightData() {
std::cout << "This is... | 25.770492 | 78 | 0.610051 | scottzach1 |
b1747a3875794f8faeb601bb8fd61b87e43928b4 | 8,953 | cpp | C++ | src/ExtFilterAddNormalAttribute/ExtFilterAddNormalAttribute.cpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 4 | 2016-06-03T18:41:43.000Z | 2020-04-17T20:28:58.000Z | src/ExtFilterAddNormalAttribute/ExtFilterAddNormalAttribute.cpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | src/ExtFilterAddNormalAttribute/ExtFilterAddNormalAttribute.cpp | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2022 The Voxie Authors
*
* 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, mer... | 40.328829 | 80 | 0.658662 | voxie-viewer |
b179788d3174178cc76d01d256c470769778a70b | 570 | hpp | C++ | fmaspc/include/sym/Plugin.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | fmaspc/include/sym/Plugin.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | fmaspc/include/sym/Plugin.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #ifndef __FMASPC_SYM_PLUGIN_H__
#define __FMASPC_SYM_PLUGIN_H__
#include <fma/plugin/Plugin.hpp>
#include <fma/output/DynamicBuffer.hpp>
namespace FMASPC {
namespace sym {
class SpcOutputPlugin : public FMA::plugin::OutputFileWriterPlugin {
public:
SpcOutputPlugin(FMA::Project *project);
const char *getName()... | 17.8125 | 70 | 0.726316 | BenjaminSchulte |
b17d9ea147acf9435c14db9a227b6f751b6c148c | 672 | cpp | C++ | practise/3-6.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | practise/3-6.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | practise/3-6.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <string>
using namespace std;
// compare two circular string
int Isless(string &s, int p, int q)
{
int len = s.size();
for (int i = 0; i < len; i++)
{
if (s[(p + i) % len] != s[(q + i) % len])
{
return s[(p + i) % len] < s[(q + i) %... | 17.230769 | 55 | 0.407738 | WIZARD-CXY |
b17e6e6c24b272a02bfb24d200f1f7edaaa8c98b | 11,951 | cpp | C++ | ElementTest/properties.cpp | iSplasher/gSplasher | c4870b91940a42a2c2a8e384fbe202543b88b87a | [
"Apache-2.0"
] | null | null | null | ElementTest/properties.cpp | iSplasher/gSplasher | c4870b91940a42a2c2a8e384fbe202543b88b87a | [
"Apache-2.0"
] | 9 | 2017-02-23T18:03:41.000Z | 2017-02-27T17:00:20.000Z | ElementTest/properties.cpp | iSplasher/gSplasher | c4870b91940a42a2c2a8e384fbe202543b88b87a | [
"Apache-2.0"
] | null | null | null | #include "element/core.h"
#include "element/property.h"
#include "catch.hpp"
#include <chrono>
#include <thread>
USING_NAMESPACE
SCENARIO("Regular properties", "[Property]") {
Application* app = Application::instance();
if( !app )
app = new Application();
GIVEN("Simple read-write properties can be instantiate... | 24.439673 | 127 | 0.499707 | iSplasher |
b17f637c17fda6b145b1d6db74da5d737a696424 | 1,550 | cpp | C++ | tblock/source/GameStates/GS_Menu.cpp | maximbilan/T-Block | b2eb3701a2567590090947a3c3dfb4afe282695a | [
"MIT"
] | 1 | 2016-03-09T13:03:48.000Z | 2016-03-09T13:03:48.000Z | tblock/source/GameStates/GS_Menu.cpp | maximbilan/T-Block | b2eb3701a2567590090947a3c3dfb4afe282695a | [
"MIT"
] | null | null | null | tblock/source/GameStates/GS_Menu.cpp | maximbilan/T-Block | b2eb3701a2567590090947a3c3dfb4afe282695a | [
"MIT"
] | null | null | null | #include "PlatformPrecomp.h"
#include "GS_Menu.h"
#include "Defines/GUI_IDs.h"
#include "GUI/GUI_MainMenu.h"
#include "Utils/Timer.h"
GS_Menu::GS_Menu() :
m_timer( new Timer() ),
m_startTime( 0.0f ),
m_alpha( 1.0f )
{
m_timer->start();
m_startTime = m_timer->getElapsedTimeInMilliSec();
}
GS_Menu::... | 18.674699 | 85 | 0.604516 | maximbilan |
b189f0c06d794d536cdd618911abf6fc9e9a824e | 2,679 | hpp | C++ | tests/ZsyncRemoteControlFileParser.hpp | azubieta/AppImageUpdaterBridge | b555ad508186c3ca0c285a3de14cde4b76abded6 | [
"BSD-3-Clause"
] | null | null | null | tests/ZsyncRemoteControlFileParser.hpp | azubieta/AppImageUpdaterBridge | b555ad508186c3ca0c285a3de14cde4b76abded6 | [
"BSD-3-Clause"
] | null | null | null | tests/ZsyncRemoteControlFileParser.hpp | azubieta/AppImageUpdaterBridge | b555ad508186c3ca0c285a3de14cde4b76abded6 | [
"BSD-3-Clause"
] | null | null | null | #ifndef ZSYNC_REMOTE_CONTROL_FILE_PARSER_TESTS_HPP_INCLUDED
#define ZSYNC_REMOTE_CONTROL_FILE_PARSER_TESTS_HPP_INCLUDED
#include <QTest>
#include <QSignalSpy>
#include <QNetworkAccessManager>
#include "../include/zsyncremotecontrolfileparser_p.hpp"
/*
* Get the official appimage tool to test it with
* our library.
*/... | 34.346154 | 150 | 0.698022 | azubieta |
b18c638317a91d7d4e28ebbb93bc81273c479c0b | 581 | cpp | C++ | Data_Structures/Binary_Tree/construction/const_from_preorder_postorder.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 11 | 2020-03-20T17:24:28.000Z | 2022-01-08T02:43:24.000Z | Data_Structures/Binary_Tree/construction/const_from_preorder_postorder.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 1 | 2021-07-25T11:24:46.000Z | 2021-07-25T12:09:25.000Z | Data_Structures/Binary_Tree/construction/const_from_preorder_postorder.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 4 | 2020-03-20T17:24:36.000Z | 2021-12-07T19:22:59.000Z | // https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/
// Given two integer arrays, preorder and postorder where preorder
// is the preorder traversal of a binary tree of distinct values and postorder
// is the postorder traversal of the same tree, reconstruct and return the bi... | 38.733333 | 93 | 0.729776 | abhishekjha786 |
b18c754e3377a7b6ad1eb5fcc1bd04c9dea3f9f6 | 15,706 | cpp | C++ | Source/TitanUMG/Private/STitanVirtualJoystick.cpp | learnMoreCode/UE4_TitanUMG | e01233801502ca0c026b19bf2d8804fc1b991857 | [
"MIT"
] | 18 | 2020-09-09T13:50:48.000Z | 2022-03-08T11:39:29.000Z | Source/TitanUMG/Private/STitanVirtualJoystick.cpp | irajsb/UE4_TitanUMG | e01233801502ca0c026b19bf2d8804fc1b991857 | [
"MIT"
] | null | null | null | Source/TitanUMG/Private/STitanVirtualJoystick.cpp | irajsb/UE4_TitanUMG | e01233801502ca0c026b19bf2d8804fc1b991857 | [
"MIT"
] | 3 | 2021-07-29T16:28:18.000Z | 2022-02-21T01:58:27.000Z | // Copyright Epic Games, Inc. All Rights Reserved.
#include "STitanVirtualJoystick.h"
#include "Rendering/DrawElements.h"
#include "Misc/ConfigCacheIni.h"
#include "TitanJoystick.h"
#include "Framework/Application/SlateApplication.h"
const float OPACITY_LERP_RATE = 3.f;
static FORCEINLINE float GetScaleFactor(cons... | 28.556364 | 249 | 0.715523 | learnMoreCode |
b18eb201b9e8ca428a05f04a2031f06ad3111520 | 1,781 | cpp | C++ | src/hdk/animation/hdTranslationAction.cpp | cdave1/hdk | 7c00dcbb255a48ab4a77d808cda0096c7e0a0fa6 | [
"Zlib"
] | 2 | 2016-06-15T17:47:50.000Z | 2019-07-29T10:33:05.000Z | src/hdk/animation/hdTranslationAction.cpp | cdave1/hdk | 7c00dcbb255a48ab4a77d808cda0096c7e0a0fa6 | [
"Zlib"
] | null | null | null | src/hdk/animation/hdTranslationAction.cpp | cdave1/hdk | 7c00dcbb255a48ab4a77d808cda0096c7e0a0fa6 | [
"Zlib"
] | null | null | null | /*
* Copyright (c) 2014 Hackdirt Ltd.
* Author: David Petrie (david@davidpetrie.com)
*
* 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 so... | 36.346939 | 102 | 0.733296 | cdave1 |
b18f5ac1472778806890adfd1f0e6b92b5622683 | 170 | hpp | C++ | package/broker/broker/broker_multiton.hpp | mambaru/wfc_io | 953f03831e323b85df05d5e0461444f1879e412c | [
"MIT"
] | null | null | null | package/broker/broker/broker_multiton.hpp | mambaru/wfc_io | 953f03831e323b85df05d5e0461444f1879e412c | [
"MIT"
] | 4 | 2019-12-06T01:02:14.000Z | 2021-04-20T19:46:34.000Z | package/broker/broker/broker_multiton.hpp | mambaru/wfc_io | 953f03831e323b85df05d5e0461444f1879e412c | [
"MIT"
] | null | null | null | #pragma once
#include <wfc/module/component.hpp>
namespace wfc{ namespace io{
class broker_multiton
: public ::wfc::component
{
public:
broker_multiton();
};
}}
| 11.333333 | 35 | 0.705882 | mambaru |
b1924bd0e2db117071ee765812688fb3cb7b5c13 | 128 | cc | C++ | tests/parallel_flat_hash_set_test.cc | phprus/parallel-hashmap | 73be7c2ab267778f64c7383b7a8150788ab7e2ef | [
"Apache-2.0"
] | null | null | null | tests/parallel_flat_hash_set_test.cc | phprus/parallel-hashmap | 73be7c2ab267778f64c7383b7a8150788ab7e2ef | [
"Apache-2.0"
] | null | null | null | tests/parallel_flat_hash_set_test.cc | phprus/parallel-hashmap | 73be7c2ab267778f64c7383b7a8150788ab7e2ef | [
"Apache-2.0"
] | null | null | null | #define THIS_HASH_SET parallel_flat_hash_set
#define THIS_TEST_NAME ParallelFlatHashSet
#include "parallel_hash_set_test.cc"
| 21.333333 | 45 | 0.867188 | phprus |
b196f574873787e5bebaffed631140bc467bab7c | 73,964 | cpp | C++ | src/blas/backends/cublas/cublas_level3.cpp | trosenqu/oneMKL | d06919ca0f1c675b170df94259f319eb1d020d5c | [
"Apache-2.0"
] | null | null | null | src/blas/backends/cublas/cublas_level3.cpp | trosenqu/oneMKL | d06919ca0f1c675b170df94259f319eb1d020d5c | [
"Apache-2.0"
] | null | null | null | src/blas/backends/cublas/cublas_level3.cpp | trosenqu/oneMKL | d06919ca0f1c675b170df94259f319eb1d020d5c | [
"Apache-2.0"
] | 1 | 2022-01-10T16:44:10.000Z | 2022-01-10T16:44:10.000Z | /***************************************************************************
* Copyright (C) Codeplay Software Limited
* 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.ap... | 55.61203 | 100 | 0.572062 | trosenqu |
b198d4947f6c61ffdae52d3bdbf5cc0c348bc882 | 12,185 | cpp | C++ | src/Cip2location_db3.cpp | silgy/ip2loc | 84fc4b0a7f62e2dbe87e6576c08c9afcfb238c40 | [
"MIT"
] | null | null | null | src/Cip2location_db3.cpp | silgy/ip2loc | 84fc4b0a7f62e2dbe87e6576c08c9afcfb238c40 | [
"MIT"
] | null | null | null | src/Cip2location_db3.cpp | silgy/ip2loc | 84fc4b0a7f62e2dbe87e6576c08c9afcfb238c40 | [
"MIT"
] | null | null | null | /* ---------------------------------------------------------------------------
Table access class
Generated on silgy.org on 2020-05-30 11:13:49, generator v.1.0.0
Using C-style strings
Using exceptions
--------------------------------------------------------------------------- */
#include "Cip2location_db3... | 28.738208 | 139 | 0.504473 | silgy |
b198eff6ac64daaa4c2ee7c1636219eddc936459 | 28,522 | cpp | C++ | src/core/NEON/kernels/arm_conv/depthwise/kernels/a64_s8q_packed_to_nhwc_5x5_s1_with_multiplier_output4x2_dot_depthfirst/generic.cpp | MaximMilashchenko/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 1 | 2022-02-10T11:06:25.000Z | 2022-02-10T11:06:25.000Z | src/core/NEON/kernels/arm_conv/depthwise/kernels/a64_s8q_packed_to_nhwc_5x5_s1_with_multiplier_output4x2_dot_depthfirst/generic.cpp | 0xgpapad/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | null | null | null | src/core/NEON/kernels/arm_conv/depthwise/kernels/a64_s8q_packed_to_nhwc_5x5_s1_with_multiplier_output4x2_dot_depthfirst/generic.cpp | 0xgpapad/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 1 | 2022-02-04T10:22:53.000Z | 2022-02-04T10:22:53.000Z | /*
* Copyright (c) 2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 ... | 42.890226 | 392 | 0.562478 | MaximMilashchenko |
b1a2f5d4b9059f0b8d6f941dbd7bcb020b3f3f5e | 5,809 | cpp | C++ | src/Factory/Module/Quantizer/Quantizer.cpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | null | null | null | src/Factory/Module/Quantizer/Quantizer.cpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | 4 | 2018-09-27T16:46:31.000Z | 2018-11-22T11:10:41.000Z | src/Factory/Module/Quantizer/Quantizer.cpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | null | null | null | #include <type_traits>
#include "Tools/Exception/exception.hpp"
#include "Module/Quantizer/Pow2/Quantizer_pow2.hpp"
#include "Module/Quantizer/Pow2/Quantizer_pow2_fast.hpp"
#include "Module/Quantizer/Custom/Quantizer_custom.hpp"
#include "Module/Quantizer/NO/Quantizer_NO.hpp"
#include "Quantizer.hpp"
using namespac... | 41.791367 | 159 | 0.659838 | OlivierHartmann |
b1a916adf403f5dca5537e84a501cfe606982722 | 275 | cpp | C++ | integration/src/angelscript-integration/glm/engine-library-math-vector-swizzle-operators-uvec-xyzw.cpp | Robert42/anglescript-integration | 5688bc3916a47c1cb1e7e08c017d01dcfd201097 | [
"MIT"
] | 1 | 2019-03-26T18:44:55.000Z | 2019-03-26T18:44:55.000Z | integration/src/angelscript-integration/glm/engine-library-math-vector-swizzle-operators-uvec-xyzw.cpp | Robert42/anglescript-integration | 5688bc3916a47c1cb1e7e08c017d01dcfd201097 | [
"MIT"
] | null | null | null | integration/src/angelscript-integration/glm/engine-library-math-vector-swizzle-operators-uvec-xyzw.cpp | Robert42/anglescript-integration | 5688bc3916a47c1cb1e7e08c017d01dcfd201097 | [
"MIT"
] | null | null | null | #include "engine-library-math-vector-swizzle-operators.h"
namespace AngelScriptIntegration {
void initVectorLibrary_swizzle_operators_uvec_xyzw(AngelScript::asIScriptEngine* as_engine)
{
int r;
ALL_SWIZZLE_FOR_VEC_XYZW(uvec);
}
} // namespace Angelscriptintegration
| 19.642857 | 91 | 0.818182 | Robert42 |
b1aeaf7c25e1177d262ae832410257749648e474 | 12,273 | cpp | C++ | src/common/classes/misc/string_test.cpp | AlexeyMochalov/firebird | 8b485a455c70d1eaf201192b46b5dd5fdf5ea386 | [
"Condor-1.1"
] | 988 | 2016-03-16T10:27:43.000Z | 2022-03-31T14:52:19.000Z | src/common/classes/misc/string_test.cpp | mistmist/firebird | d31495be14daa8bca46c879bdaf0e30194abd891 | [
"Condor-1.1"
] | 574 | 2016-03-23T15:35:56.000Z | 2022-03-31T07:11:03.000Z | src/common/classes/misc/string_test.cpp | mistmist/firebird | d31495be14daa8bca46c879bdaf0e30194abd891 | [
"Condor-1.1"
] | 241 | 2016-03-17T09:53:16.000Z | 2022-03-29T19:58:29.000Z | char lbl[] = "0123456789";
//#define CHECK_FATAL_RANGE_EXCEPTION
//Don't modify 3 lines upper from this - they are used in file read test
//If you plan to check range exception, you may uncomment it -
//anyway file test should not happen
/*
* PROGRAM: Class library integrity tests
* MODULE: string_test.cpp
* DESC... | 18.128508 | 90 | 0.589831 | AlexeyMochalov |
b1aed871b014f19bf3f4ce3d9054d403e3bd5471 | 453 | hpp | C++ | Bonus.hpp | polinaucc/galaga | 6feea0a6a74669c5d3fa6e106653ceacda19b416 | [
"MIT"
] | null | null | null | Bonus.hpp | polinaucc/galaga | 6feea0a6a74669c5d3fa6e106653ceacda19b416 | [
"MIT"
] | null | null | null | Bonus.hpp | polinaucc/galaga | 6feea0a6a74669c5d3fa6e106653ceacda19b416 | [
"MIT"
] | null | null | null | #pragma once
#include "movingobject.hpp"
enum class BonusType
{
life,
score
};
class Bonus : public MovingObject
{
protected:
BonusType m_type;
public:
Bonus(double x, double y, double s, std::shared_ptr<Sprite> sprite, BonusType type):
MovingObject(x, y, 0.0, s, sprite), m_type(type)
{}
virtu... | 22.65 | 88 | 0.688742 | polinaucc |
b1b23b1e570ee3407d36e6a469549691513e2688 | 452 | cpp | C++ | solutions/0009.palindrome-number/0009.palindrome-number.1521550303.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 1 | 2021-01-14T06:01:02.000Z | 2021-01-14T06:01:02.000Z | solutions/0009.palindrome-number/0009.palindrome-number.1521550303.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 8 | 2018-03-27T11:47:19.000Z | 2018-11-12T06:02:12.000Z | solutions/0009.palindrome-number/0009.palindrome-number.1521550303.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 2 | 2020-04-30T09:47:01.000Z | 2020-12-03T09:34:08.000Z | class Solution {
public:
bool isPalindrome(int x) {
if (x < 0) {
return false;
}
vector<int> digits;
while (x > 0) {
int d = x % 10;
digits.push_back(d);
x = x / 10;
}
for (int i = 0, j = digits.size() - 1; i < j; i++, j... | 21.52381 | 65 | 0.362832 | nettee |
b1b3a11ce454a516918aa04720816b6d84c3958c | 4,803 | cpp | C++ | ToolKit/PropertyGrid/XTPPropertyGridItemFont.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/PropertyGrid/XTPPropertyGridItemFont.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/PropertyGrid/XTPPropertyGridItemFont.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTPPropertyGridItemFont.cpp : implementation of the CXTPPropertyGridItemFont class.
//
// This file is a part of the XTREME PROPERTYGRID MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEA... | 23.544118 | 96 | 0.713721 | 11Zero |
04d98ffcbee295d9abca30fd92b2cc6fa7bf997f | 568 | hpp | C++ | Editor/Source/ImGui/Utility/Draw.hpp | AhsanSarwar45/Qombat-OLD | 0247441cf4927733ef0786c6df9a087461b0260b | [
"Apache-2.0"
] | null | null | null | Editor/Source/ImGui/Utility/Draw.hpp | AhsanSarwar45/Qombat-OLD | 0247441cf4927733ef0786c6df9a087461b0260b | [
"Apache-2.0"
] | null | null | null | Editor/Source/ImGui/Utility/Draw.hpp | AhsanSarwar45/Qombat-OLD | 0247441cf4927733ef0786c6df9a087461b0260b | [
"Apache-2.0"
] | null | null | null | #include <stdarg.h>
#include <ImGui/imgui.h>
#include <Qombat/Core.hpp>
#include "Mouse.hpp"
namespace QCreate
{
namespace ImGuiHelper
{
inline void DrawHoverableRect(const ImVec2& a, const ImVec2& b, const ImColor& color, const char* tooltip, ...)
{
ImDrawList* drawList = ImGui::GetWindowDrawList();
dr... | 19.586207 | 113 | 0.679577 | AhsanSarwar45 |
04e77c5c080e38f14b8cade8354e2fb7c1f493ab | 16,645 | cpp | C++ | src/RenderPrimitives.cpp | Cavantar/SoftRenderer | d6ef9a76ec11088d3af7a59b17c15bb38b5856de | [
"WTFPL"
] | null | null | null | src/RenderPrimitives.cpp | Cavantar/SoftRenderer | d6ef9a76ec11088d3af7a59b17c15bb38b5856de | [
"WTFPL"
] | null | null | null | src/RenderPrimitives.cpp | Cavantar/SoftRenderer | d6ef9a76ec11088d3af7a59b17c15bb38b5856de | [
"WTFPL"
] | null | null | null |
#include "RenderPrimitives.h"
#include <algorithm>
void
TextureBuffer::setPixel(uint32 x, uint32 y, const Vec3f& color)
{
if(x >= 0 && x < dimensions.x &&
y >= 0 && y < dimensions.y)
{
pixelData[x + (uint32)dimensions.x * y] =
(uint32)(color.x) << 24 | (uint32)(color.y) << 16 | (uint32)(color.z) <... | 24.370425 | 107 | 0.642716 | Cavantar |
04e92e8d1599101bc89a2c2e8ed2fb2c5c531376 | 1,991 | cpp | C++ | NearestNeighbor/Tests/TestLinearNeighborSearchSubset.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | NearestNeighbor/Tests/TestLinearNeighborSearchSubset.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | NearestNeighbor/Tests/TestLinearNeighborSearchSubset.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | #include <iostream>
#include <boost/graph/grid_graph.hpp>
#include "NearestNeighbor/topological_search.hpp"
int main(int argc, char *argv[])
{
typedef boost::grid_graph<2> GraphType;
const unsigned int dimension = 5;
boost::array<std::size_t, 2> lengths = { { dimension, dimension } };
GraphType graph(length... | 31.603175 | 127 | 0.713712 | jingtangliao |
04ec5bcd4269f64a55221478fb714ccc3cbd2cbd | 2,783 | cpp | C++ | src/Pathfinding/visualizer_test.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null | src/Pathfinding/visualizer_test.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null | src/Pathfinding/visualizer_test.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null | #include "Visualizer.h"
#include "ObstacleMap.h"
#include <iostream>
using namespace cv;
void runTest(std::string description, const std::vector<PointXY>& obstacles, PointXY dest) {
Visualizer sim;
Pather2 pather;
pather.updateMap(obstacles, 0.0, 0.0);
std::cout << "Text version of map:\n";
pather... | 27.554455 | 92 | 0.541861 | jonahbardos |
04ee35860e1b30246d19c26e7d2e86c0094c5e31 | 4,262 | hpp | C++ | master/core/third/boost/geometry/strategies/spherical/ssf.hpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | master/core/third/boost/geometry/strategies/spherical/ssf.hpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 197 | 2017-07-06T16:53:59.000Z | 2019-05-31T17:57:51.000Z | master/core/third/boost/geometry/strategies/spherical/ssf.hpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to 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)
... | 31.109489 | 80 | 0.601595 | importlib |
04ef575493ef883169e2906e3647678ce7086341 | 540 | cpp | C++ | Problems/rod.cpp | anand434/-Algorithm-And-DataStructures | e4197db5342def163a8bd22de4187b90bc5ff1d3 | [
"MIT"
] | null | null | null | Problems/rod.cpp | anand434/-Algorithm-And-DataStructures | e4197db5342def163a8bd22de4187b90bc5ff1d3 | [
"MIT"
] | null | null | null | Problems/rod.cpp | anand434/-Algorithm-And-DataStructures | e4197db5342def163a8bd22de4187b90bc5ff1d3 | [
"MIT"
] | null | null | null | // dynamic programing
#include <bits/stdc++.h>
using namespace std;
int calc(int a[] , int l){
int s = sizeof(a)/sizeof(a[0]);
int dp[s][l+1];
for(int i = 1; i <= s; ++i){
for(int j = 0; j <= l; ++j){
if(i == 0)
dp[i][j] = j;
else if(j == 0)
dp[i][j] = i;
else if(j >= i)
dp[i][j] = max(dp... | 16.363636 | 53 | 0.457407 | anand434 |
04f6fcc33c80c183514a66a1ab37f628b573f849 | 3,874 | cpp | C++ | bulletgba/generator/data/code/__system/3way-laser.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/__system/3way-laser.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/__system/3way-laser.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | // XXX uniqID XXX 5aa05dce2cc2c392ac12214081381a73 XXX
#include <gba_types.h>
#include "bullet.hpp"
#include "fixed.hpp"
#include "__system/3way-laser.hpp"
extern const BulletStepFunc bullet_0e9cb1a61061b85c007db56fc11fa063_5aa05dce2cc2c392ac12214081381a73[] = {
stepfunc_bbf4d4d1a84fe518316ecf2f20d6a516_5aa05dce... | 62.483871 | 365 | 0.824729 | pqrs-org |
04f80736a2c3d3c9c5b039e15ef358de796909dd | 1,793 | hpp | C++ | 2d-platform-game/Fase2.hpp | hadryansalles/random-projects | 2c97fcb407acd2605a6c46ccc184a86f8130b56f | [
"MIT"
] | 3 | 2021-04-02T02:26:47.000Z | 2021-05-18T01:56:18.000Z | 2d-platform-game/Fase2.hpp | hadryans/random-projects | 2c97fcb407acd2605a6c46ccc184a86f8130b56f | [
"MIT"
] | null | null | null | 2d-platform-game/Fase2.hpp | hadryans/random-projects | 2c97fcb407acd2605a6c46ccc184a86f8130b56f | [
"MIT"
] | null | null | null | #pragma once
#include "Std.hpp"
#include "Fase.hpp"
#include "Janela.hpp"
#include "Ladrao.hpp"
#include "Demonio.hpp"
class Fase2 : public Fase{
private:
// local onde o jogador encerra a fase
sf::RectangleShape _portal_fim_fase;
// cenario em segundo plano
sf::RectangleShape _cenario_dinamico;
sf::Texture... | 27.166667 | 71 | 0.709426 | hadryansalles |
04f8bb24964c293785510004ff2ec82bff01ab3a | 1,933 | cc | C++ | src/curses.cc | lollek/chip8curses | 3f62e01d1f4411a084cc74edc331d75c32ef4e0f | [
"MIT"
] | null | null | null | src/curses.cc | lollek/chip8curses | 3f62e01d1f4411a084cc74edc331d75c32ef4e0f | [
"MIT"
] | null | null | null | src/curses.cc | lollek/chip8curses | 3f62e01d1f4411a084cc74edc331d75c32ef4e0f | [
"MIT"
] | null | null | null | #include <curses.h>
#include <iostream>
#include "curses.h"
using namespace std;
namespace chip8curses {
namespace curses {
Emulator* emulator_ptr{nullptr};
bool double_width;
namespace {
void write_pixel(int x, int y, bool black) {
if (double_width) {
mvaddch(y, x*2, (black ? ' ' | A_STANDOUT : ' '));
... | 21.719101 | 75 | 0.58924 | lollek |
04f94bf3ec5a3f1f5deec0c720be63e2bfdb8713 | 476 | cpp | C++ | src/TEMA DIVIZIBILITATE/64/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | 2 | 2021-11-27T18:29:32.000Z | 2021-11-28T14:35:47.000Z | src/TEMA DIVIZIBILITATE/64/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | src/TEMA DIVIZIBILITATE/64/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
//Prob. 64
int main()
{
int n, d, s=0, dn;
cout<<"Numarul n= ";
cin>>n;
dn=2*n;
for (d=1; d*d<=n; d++)
{
if (n%d==0)
{
s=s+d;
if (d*d<n)
{
s=s+n/d;
}
}
}
i... | 12.205128 | 47 | 0.357143 | andrew-miroiu |
04ff2de91fc7b68d7fc026cf06db3e76205eef92 | 8,488 | hh | C++ | include/qpdf/PointerHolder.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | null | null | null | include/qpdf/PointerHolder.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | 3 | 2021-11-19T15:59:21.000Z | 2021-12-10T20:44:33.000Z | include/qpdf/PointerHolder.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2005-2022 Jay Berkenbilt
//
// This file is part of qpdf.
//
// 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 ... | 34.504065 | 80 | 0.719015 | m-holger |
04ffd4107bf79ab03580413b737ec61845049efa | 103 | cpp | C++ | softbody/engine/ui/image.cpp | legsonwings/SoftBody | c918d67338b5677bfb095f3849873bda684f9447 | [
"MIT"
] | null | null | null | softbody/engine/ui/image.cpp | legsonwings/SoftBody | c918d67338b5677bfb095f3849873bda684f9447 | [
"MIT"
] | null | null | null | softbody/engine/ui/image.cpp | legsonwings/SoftBody | c918d67338b5677bfb095f3849873bda684f9447 | [
"MIT"
] | null | null | null | #include "image.h"
gfx::resourcelist ui::image::createresources()
{
return gfx::resourcelist();
}
| 14.714286 | 46 | 0.68932 | legsonwings |
ca00485766f3cf9d916b10ed1d4ae47b064f1162 | 2,381 | cpp | C++ | src/extension-examples/show_image.cpp | 104-Berlin/universal-software-kit | d542d3e3fd01954c1c68ba81e7251926889c9e65 | [
"MIT"
] | 1 | 2021-06-19T12:37:10.000Z | 2021-06-19T12:37:10.000Z | src/extension-examples/show_image.cpp | 104-Berlin/universal-software-kit | d542d3e3fd01954c1c68ba81e7251926889c9e65 | [
"MIT"
] | 46 | 2021-03-26T22:11:59.000Z | 2022-03-29T20:13:59.000Z | src/extension-examples/show_image.cpp | 104-Berlin/universal-software-kit | d542d3e3fd01954c1c68ba81e7251926889c9e65 | [
"MIT"
] | null | null | null | #include "editor_extension.h"
using namespace Engine;
using namespace Graphics;
using namespace Renderer;
E_STORAGE_STRUCT(ImageLayer,
(bool, Visible),
(EResourceLink, resourceLink, "Image"),
(EString, SomeString)
)
class ImageLayerView : public EUIField
{
private:
EUnorderedMap<ERegister::Enti... | 30.922078 | 130 | 0.600168 | 104-Berlin |
ca036a16e4c555f1a4fc244dfdc76612f5fa844c | 1,549 | hpp | C++ | include/caffe/layers/faceEvaluateLayer.hpp | yuqj1990/deepano_train | c7247801ccea4c3a5c0be9c9091fc91876dbf279 | [
"Unlicense"
] | 21 | 2019-11-28T06:11:17.000Z | 2020-06-15T00:45:46.000Z | include/caffe/layers/faceEvaluateLayer.hpp | yuqj1990/deepano_train | c7247801ccea4c3a5c0be9c9091fc91876dbf279 | [
"Unlicense"
] | 12 | 2019-11-20T01:38:28.000Z | 2020-06-30T06:29:40.000Z | include/caffe/layers/faceEvaluateLayer.hpp | yuqj1990/deepano_train | c7247801ccea4c3a5c0be9c9091fc91876dbf279 | [
"Unlicense"
] | 10 | 2019-11-26T00:50:06.000Z | 2020-06-20T05:43:45.000Z | #ifndef CAFFE_DETECTION_EVALUATE_LAYER_HPP_
#define CAFFE_DETECTION_EVALUATE_LAYER_HPP_
#include <utility>
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caffe {
/**
* @brief Generate the detection evaluation based on DetectionOutputLayer and
* g... | 29.226415 | 79 | 0.737895 | yuqj1990 |
ca03e02f13a17c8571526769a65935c787a8c3ca | 19,358 | cpp | C++ | src/tools/lvr2_viewer/widgets/LVRLabelDialog.cpp | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 38 | 2019-06-19T15:10:35.000Z | 2022-02-16T03:08:24.000Z | src/tools/lvr2_viewer/widgets/LVRLabelDialog.cpp | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 9 | 2019-06-19T16:19:51.000Z | 2021-09-17T08:31:25.000Z | src/tools/lvr2_viewer/widgets/LVRLabelDialog.cpp | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 13 | 2019-04-16T11:50:32.000Z | 2020-11-26T07:47:44.000Z | /**
* Copyright (c) 2018, University Osnabrück
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this li... | 37.661479 | 164 | 0.638392 | uos |
ca1581293fe58f00e56c910efe420fdfa0932f6a | 1,388 | hpp | C++ | src/process.hpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/process.hpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/process.hpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 Kristina Simpson <sweet.kristas@gmail.com>
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 app... | 25.236364 | 75 | 0.711816 | cbeck88 |
ca20024b441ffa9c64706c6f9000c4337c7d0249 | 4,154 | cpp | C++ | src/utils/string_helper.cpp | ppearson/sitemon2 | 22b5eaa03e9036c32b08a485917a3477078e6a57 | [
"Apache-2.0"
] | null | null | null | src/utils/string_helper.cpp | ppearson/sitemon2 | 22b5eaa03e9036c32b08a485917a3477078e6a57 | [
"Apache-2.0"
] | null | null | null | src/utils/string_helper.cpp | ppearson/sitemon2 | 22b5eaa03e9036c32b08a485917a3477078e6a57 | [
"Apache-2.0"
] | null | null | null | /*
Sitemon
Copyright 2010-2019 Peter Pearson.
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... | 21.523316 | 107 | 0.643476 | ppearson |
ca244e287288abc707731d63c571095c3162952d | 6,497 | cpp | C++ | d912pxy/d3d9_proxy_dll.cpp | febryjp/d912pxy | 208f741135ca108bc4742c69430dc5eb95578480 | [
"MIT"
] | 1,076 | 2019-01-11T02:04:35.000Z | 2022-03-24T19:00:46.000Z | d912pxy/d3d9_proxy_dll.cpp | NaturalBoy/d912pxy | ecca0dfdf8ae58cfb7b0ab9b1d9096acf3d8c829 | [
"MIT"
] | 398 | 2019-01-16T07:58:30.000Z | 2022-02-26T11:53:46.000Z | d912pxy/d3d9_proxy_dll.cpp | NaturalBoy/d912pxy | ecca0dfdf8ae58cfb7b0ab9b1d9096acf3d8c829 | [
"MIT"
] | 140 | 2019-01-25T09:58:31.000Z | 2022-03-24T10:56:41.000Z | /*
Original work: https://github.com/iorlas/D3D9Proxy
*/
//FIXME: correct this to be right, as i'm not shure
/*
MIT License
Copyright(c) 2018-2019 megai2
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... | 25.182171 | 136 | 0.765276 | febryjp |
ca27e8edb38f080deeb5feba82d5cddf7f7985c4 | 1,387 | hpp | C++ | benchmark/include/uBLAS/convolution.hpp | bebuch/Mitrax | bc33a1b93058886daab3e4ef736ef9b519111454 | [
"BSL-1.0"
] | null | null | null | benchmark/include/uBLAS/convolution.hpp | bebuch/Mitrax | bc33a1b93058886daab3e4ef736ef9b519111454 | [
"BSL-1.0"
] | null | null | null | benchmark/include/uBLAS/convolution.hpp | bebuch/Mitrax | bc33a1b93058886daab3e4ef736ef9b519111454 | [
"BSL-1.0"
] | null | null | null | //-----------------------------------------------------------------------------
// Copyright (c) 2016 Benjamin Buch
//
// https://github.com/bebuch/mitrax
//
// 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)
//------... | 22.370968 | 79 | 0.561644 | bebuch |
ca2ba9e3c132322d4f1e76698384f02df89c995b | 2,108 | cpp | C++ | Minigin/Game/TileTexture.cpp | DaanRavelingien/2DGameEngine | d1c9f4864c4183d1e4d8a15c986f2b0ab032f73b | [
"MIT"
] | null | null | null | Minigin/Game/TileTexture.cpp | DaanRavelingien/2DGameEngine | d1c9f4864c4183d1e4d8a15c986f2b0ab032f73b | [
"MIT"
] | null | null | null | Minigin/Game/TileTexture.cpp | DaanRavelingien/2DGameEngine | d1c9f4864c4183d1e4d8a15c986f2b0ab032f73b | [
"MIT"
] | null | null | null | #include "TileTexture.h"
#include <ResourceManager.h>
#include "HexGrid.h"
#include <Render.h>
#include <Transform.h>
#include <GameObject.h>
#include <Texture2D.h>
Comp::TileTexture::TileTexture(const std::string& filePath)
:m_FileName{filePath}
{
GetNeededComponents();
m_NeedsUpdate = true;
}
void Comp::TileText... | 23.422222 | 78 | 0.718691 | DaanRavelingien |
ca2ec71a057171ee721eead2933a80fa4babca1b | 31,288 | cpp | C++ | client/Rendering/WaterRenderer.cpp | gitdnd/NovusCore-Client | 51e76ffe579734cb93a76b6f6d6db8bec8855676 | [
"MIT"
] | null | null | null | client/Rendering/WaterRenderer.cpp | gitdnd/NovusCore-Client | 51e76ffe579734cb93a76b6f6d6db8bec8855676 | [
"MIT"
] | null | null | null | client/Rendering/WaterRenderer.cpp | gitdnd/NovusCore-Client | 51e76ffe579734cb93a76b6f6d6db8bec8855676 | [
"MIT"
] | null | null | null | #include "WaterRenderer.h"
#include "DebugRenderer.h"
#include "../Utils/ServiceLocator.h"
#include "../Utils/MapUtils.h"
#include "RenderResources.h"
#include "CVar/CVarSystem.h"
#include "Camera.h"
#include "RenderUtils.h"
#include <filesystem>
#include <GLFW/glfw3.h>
#include <InputManager.h>
#include <Renderer/Ren... | 44.633381 | 196 | 0.642706 | gitdnd |
ca30cef1cede85822d078168f8789e1a61f01055 | 946 | cpp | C++ | CK2ToEU4/Source/Mappers/ProvinceTitleMapper/ProvinceTitleGrabber.cpp | Grave461/CK2ToEU4 | 659cf5406c7d683649f9c888bc674424a312d10d | [
"MIT"
] | 1 | 2021-05-09T16:49:23.000Z | 2021-05-09T16:49:23.000Z | CK2ToEU4/Source/Mappers/ProvinceTitleMapper/ProvinceTitleGrabber.cpp | PKZB/CK2ToEU4 | 48e7d7a954079e48c74496745f703cd6d128d133 | [
"MIT"
] | null | null | null | CK2ToEU4/Source/Mappers/ProvinceTitleMapper/ProvinceTitleGrabber.cpp | PKZB/CK2ToEU4 | 48e7d7a954079e48c74496745f703cd6d128d133 | [
"MIT"
] | null | null | null | #include "ProvinceTitleGrabber.h"
#include "CommonFunctions.h"
#include "OSCompatibilityLayer.h"
#include "ParserHelpers.h"
mappers::ProvinceTitleGrabber::ProvinceTitleGrabber(const std::string& provincePath)
{
if (!commonItems::DoesFileExist(provincePath))
throw std::runtime_error(provincePath + " does not exist?"... | 28.666667 | 129 | 0.739958 | Grave461 |
ca32298bf218d33165c64faf7d3505221adcc82a | 6,654 | cpp | C++ | games/snake/Snake_mouli.cpp | Sinjide/cpp_arcade | c6a9dc54ed10ea5300d7bf972c5ee2bee2e58116 | [
"MIT"
] | null | null | null | games/snake/Snake_mouli.cpp | Sinjide/cpp_arcade | c6a9dc54ed10ea5300d7bf972c5ee2bee2e58116 | [
"MIT"
] | null | null | null | games/snake/Snake_mouli.cpp | Sinjide/cpp_arcade | c6a9dc54ed10ea5300d7bf972c5ee2bee2e58116 | [
"MIT"
] | null | null | null | //
// Snake_mouli.cpp for in /home/doremi/rendu/cpp/cpp_arcade/games/snake
//
// Made by Guillaume
// Login <doremi@epitech.net>
//
// Started on Mon Apr 3 20:15:30 2017 Guillaume
// Last update Sat Apr 8 10:10:49 2017 Guillaume Doremieux
//
#include "../../my.hpp"
#include "../../Protocol.hpp"
#include <stdlib... | 21.745098 | 150 | 0.575894 | Sinjide |
ca33ddff8fd05f2da62ec22d62c7879e2d382cea | 125 | cc | C++ | src/example.cc | eddiehoyle/sevengine | 4f5bd2b16b1179784c831ef8a0d57ccecee0a92e | [
"MIT"
] | 1 | 2019-08-21T05:06:04.000Z | 2019-08-21T05:06:04.000Z | src/example.cc | eddiehoyle/sevengine | 4f5bd2b16b1179784c831ef8a0d57ccecee0a92e | [
"MIT"
] | null | null | null | src/example.cc | eddiehoyle/sevengine | 4f5bd2b16b1179784c831ef8a0d57ccecee0a92e | [
"MIT"
] | null | null | null | //
// Created by Eddie Hoyle on 5/08/16.
//
#include <cstdio>
#include "example.hh"
void hello() {
printf( "Hey\n" );
} | 12.5 | 37 | 0.592 | eddiehoyle |
ca35bc10244d90a19133d258fedfae9f551b5063 | 720 | cpp | C++ | codeforces/round-273/div-2/random_teams.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | codeforces/round-273/div-2/random_teams.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | codeforces/round-273/div-2/random_teams.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <iostream>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
inline
unsigned long long pairs(unsigned long long people)
{
return people * (people - 1) / 2;
}
int main()
{
use_io_optimizations();
unsigned long long participan... | 18 | 72 | 0.620833 | Rkhoiwal |
ca433727af55d48ca0bc58a45e42eb870e845f20 | 68,757 | cpp | C++ | compiler/luci/logex/src/FormattedGraph.cpp | dev-hue/ONE | a4ca4318c1f9331a102a7ab8c544794a108cffbf | [
"Apache-2.0"
] | null | null | null | compiler/luci/logex/src/FormattedGraph.cpp | dev-hue/ONE | a4ca4318c1f9331a102a7ab8c544794a108cffbf | [
"Apache-2.0"
] | 1 | 2022-02-10T04:18:26.000Z | 2022-02-10T04:18:26.000Z | compiler/luci/logex/src/FormattedGraph.cpp | dev-hue/ONE | a4ca4318c1f9331a102a7ab8c544794a108cffbf | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 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... | 34.241534 | 100 | 0.672659 | dev-hue |
ca4339fe6506211ed23e5a4aff5781c112080817 | 2,595 | cpp | C++ | tests/test_shortest_path.cpp | JohnPapagiannakos/graphcpp | 32291f895c68477d256609d97cf66135926262a4 | [
"MIT"
] | null | null | null | tests/test_shortest_path.cpp | JohnPapagiannakos/graphcpp | 32291f895c68477d256609d97cf66135926262a4 | [
"MIT"
] | null | null | null | tests/test_shortest_path.cpp | JohnPapagiannakos/graphcpp | 32291f895c68477d256609d97cf66135926262a4 | [
"MIT"
] | null | null | null | #include "GraphCpp.hpp"
#include <cassert>
int main()
{
// Example #1
WeightedVertex<int, int> S0(0);
WeightedVertex<int, int> S1(1);
WeightedVertex<int, int> S2(2);
WeightedVertex<int, int> S3(3);
WeightedVertex<int, int> S4(4);
UndirectedWeightedGraph<int, int> testWeightedGraph;
tes... | 30.529412 | 112 | 0.647399 | JohnPapagiannakos |
ca4536e54a4c45a4f1018e1cb736391991d15223 | 12,420 | cpp | C++ | Form_DLL/Source_Files/Form.cpp | SebastienKeroack/MyEA | 5130056735199595c28c274cf67e7addb280aabc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | Form_DLL/Source_Files/Form.cpp | SebastienKeroack/MyEA | 5130056735199595c28c274cf67e7addb280aabc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | Form_DLL/Source_Files/Form.cpp | SebastienKeroack/MyEA | 5130056735199595c28c274cf67e7addb280aabc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* Copyright 2020 Sébastien Kéroack. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | 46.343284 | 165 | 0.496618 | SebastienKeroack |
ca49acb3a7702340d3e0d74edf3d833d9c4e0624 | 5,703 | hpp | C++ | Graphics/GraphicsEngineVulkan/include/EngineVkImplTraits.hpp | MikhailGorobets/DiligentCore | 340064e521a6012cb6230564fb9d2e3a263b6911 | [
"Apache-2.0"
] | 398 | 2016-04-21T03:38:50.000Z | 2022-03-23T15:27:31.000Z | Graphics/GraphicsEngineVulkan/include/EngineVkImplTraits.hpp | MikhailGorobets/DiligentCore | 340064e521a6012cb6230564fb9d2e3a263b6911 | [
"Apache-2.0"
] | 275 | 2017-12-27T04:11:55.000Z | 2022-03-30T07:35:11.000Z | Graphics/GraphicsEngineVulkan/include/EngineVkImplTraits.hpp | MikhailGorobets/DiligentCore | 340064e521a6012cb6230564fb9d2e3a263b6911 | [
"Apache-2.0"
] | 139 | 2017-09-13T06:19:49.000Z | 2022-03-28T15:01:20.000Z | /*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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.... | 40.446809 | 89 | 0.716114 | MikhailGorobets |
ca4a3b59709f41f392d1270ee057df2939511ebe | 1,345 | cpp | C++ | Rev/cpp/revMaterialLoader.cpp | YIMonge/Rev | db3b71a27659a2652bdd50069a881702b3ae059e | [
"MIT"
] | null | null | null | Rev/cpp/revMaterialLoader.cpp | YIMonge/Rev | db3b71a27659a2652bdd50069a881702b3ae059e | [
"MIT"
] | null | null | null | Rev/cpp/revMaterialLoader.cpp | YIMonge/Rev | db3b71a27659a2652bdd50069a881702b3ae059e | [
"MIT"
] | null | null | null | #include "revMaterialLoader.h"
const uint32 DATA_VERSION = 1;
revMaterialLoader::revMaterialLoader()
{}
revMaterialLoader::~revMaterialLoader()
{}
bool revMaterialLoader::LoadFromFile(const char* path, revMaterial* material)
{
if (!revResourceLoader::LoadFromFile(path, material)) return false;
uint32 offset = 0;... | 27.44898 | 90 | 0.744981 | YIMonge |
ca4e292a63712fdf69e6acf422d0e42b0b8ac282 | 123 | cpp | C++ | examples/simple_library/sources/simple_library.cpp | Liastre/CMakeExtended | 806951169ad340afb3d15060dacacf8e19c7facc | [
"MIT"
] | null | null | null | examples/simple_library/sources/simple_library.cpp | Liastre/CMakeExtended | 806951169ad340afb3d15060dacacf8e19c7facc | [
"MIT"
] | null | null | null | examples/simple_library/sources/simple_library.cpp | Liastre/CMakeExtended | 806951169ad340afb3d15060dacacf8e19c7facc | [
"MIT"
] | null | null | null | #include <simple_library.hpp>
#include <iostream>
void Simple::hello() {
std::cout << "Hello World!" << std::endl;
}
| 15.375 | 45 | 0.634146 | Liastre |
ca4ed8dfef3c1c1a2b6bc60b5eb09456ddc1867d | 677 | hpp | C++ | CocoaPhoenix/include/PHXCocoaClassDefs.hpp | phoenix-engine/phoenix | c3285482ee507b566a1c38da071439dab507a877 | [
"MIT"
] | 2 | 2019-05-04T19:33:26.000Z | 2019-06-29T13:19:33.000Z | CocoaPhoenix/include/PHXCocoaClassDefs.hpp | phoenix-engine/phoenix | c3285482ee507b566a1c38da071439dab507a877 | [
"MIT"
] | 13 | 2019-05-05T12:40:54.000Z | 2020-02-29T20:32:11.000Z | CocoaPhoenix/include/PHXCocoaClassDefs.hpp | phoenix-engine/phoenix | c3285482ee507b566a1c38da071439dab507a877 | [
"MIT"
] | 4 | 2018-09-15T21:59:08.000Z | 2019-05-04T20:19:07.000Z | //
// PHXCocoaClassDefns.h
// CocoaPhoenix
//
// PHXCocoaClassDefns includes the necessary internal headers defining
// CocoaPhoenix components, such as view delegates, view controllers, and
// responders. The actual implementations vary by target platform.
//
// Created by Bodie Solomon on 4/8/19.
//
#ifndef PHXC... | 28.208333 | 73 | 0.790251 | phoenix-engine |
ca53907e2fcb003dff4f612891b4ee7c42bde0d9 | 593 | hpp | C++ | include/Utility.hpp | Yunxiang-Li/SFML_Space-Shooter-Game | f6bf9753d2109e1a206efb7dc5a0b1b6e421ce52 | [
"MIT"
] | null | null | null | include/Utility.hpp | Yunxiang-Li/SFML_Space-Shooter-Game | f6bf9753d2109e1a206efb7dc5a0b1b6e421ce52 | [
"MIT"
] | null | null | null | include/Utility.hpp | Yunxiang-Li/SFML_Space-Shooter-Game | f6bf9753d2109e1a206efb7dc5a0b1b6e421ce52 | [
"MIT"
] | null | null | null | #ifndef UTILITY_HPP
#define UTILITY_HPP
// Include standard library C++ libraries.
#include <sstream>
// Forward declaration of sf::Sprite class and sf::Text class.
namespace sf
{
class Sprite;
class Text;
}
// Since std::to_string doesn't work on MinGW we have to implement
// our own to support all platforms.
templ... | 23.72 | 66 | 0.745363 | Yunxiang-Li |
ca547177c2aeb395793ee233c33b6a7779ff043f | 902 | hpp | C++ | src/fhmdot/include/utils.hpp | nokx5/fhmdot | 53a92804a18c98537964cd7cb09a60896d5d3744 | [
"MIT"
] | null | null | null | src/fhmdot/include/utils.hpp | nokx5/fhmdot | 53a92804a18c98537964cd7cb09a60896d5d3744 | [
"MIT"
] | null | null | null | src/fhmdot/include/utils.hpp | nokx5/fhmdot | 53a92804a18c98537964cd7cb09a60896d5d3744 | [
"MIT"
] | null | null | null | #include <boost/type_traits/is_complex.hpp>
#include <complex>
#ifndef FLOAT_PRECISION
using data_t = double;
#else
using data_t = float;
#endif
namespace fhmdot {
namespace utils {
template <typename T> constexpr bool is_complex() {
return boost::is_complex<T>::value;
}
template <typename T> constexpr bool is_fl... | 21.47619 | 69 | 0.651885 | nokx5 |
ca54c3245dd4c4ae395b7697343d6ed728c24ac2 | 3,439 | hpp | C++ | viz/SurfaceGeode.hpp | skasperski/slam-maps | 916c2ab77573162a17df2567cf6df16c300538bc | [
"BSD-2-Clause"
] | null | null | null | viz/SurfaceGeode.hpp | skasperski/slam-maps | 916c2ab77573162a17df2567cf6df16c300538bc | [
"BSD-2-Clause"
] | null | null | null | viz/SurfaceGeode.hpp | skasperski/slam-maps | 916c2ab77573162a17df2567cf6df16c300538bc | [
"BSD-2-Clause"
] | null | null | null | //
// Copyright (c) 2015-2017, Deutsches Forschungszentrum für Künstliche Intelligenz GmbH.
// Copyright (c) 2015-2017, University of Bremen
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... | 35.091837 | 133 | 0.701076 | skasperski |
ca55e88543c640a25adf7ee12b247b8dd1948e7d | 858 | cpp | C++ | libraries/tests/net/cellular/sms/common/smstest.cpp | hakehuang/mbed | 04b488dcc418f0317cdee1781b27a59295909c77 | [
"Apache-2.0"
] | 1 | 2019-05-07T15:01:19.000Z | 2019-05-07T15:01:19.000Z | libraries/tests/net/cellular/sms/common/smstest.cpp | suparit/mbed | 49df530ae72ce97ccc773d1f2c13b38e868e6abd | [
"Apache-2.0"
] | null | null | null | libraries/tests/net/cellular/sms/common/smstest.cpp | suparit/mbed | 49df530ae72ce97ccc773d1f2c13b38e868e6abd | [
"Apache-2.0"
] | null | null | null | #include "CellularModem.h"
#include "smstest.h"
void smstest(CellularModem& modem)
{
modem.power(true);
Thread::wait(1000);
#ifdef DESTINATION_NUMBER
modem.sendSM(DESINATION_NUMBER, "Hello from mbed:)");
#endif
while(true)
{
char num[17];
char msg[64];
size_t count;
... | 20.428571 | 57 | 0.481352 | hakehuang |
ca583476bd54c47392209ea474030d4180cafa27 | 2,660 | cpp | C++ | src/utilities.cpp | KerryL/SystemID | d1d4ff61db06ed79c1e1e5f7fd05ab2d1b879498 | [
"MIT"
] | 1 | 2019-12-08T03:07:02.000Z | 2019-12-08T03:07:02.000Z | src/utilities.cpp | KerryL/SystemID | d1d4ff61db06ed79c1e1e5f7fd05ab2d1b879498 | [
"MIT"
] | 1 | 2021-12-02T01:23:27.000Z | 2021-12-02T01:23:27.000Z | src/utilities.cpp | KerryL/SystemID | d1d4ff61db06ed79c1e1e5f7fd05ab2d1b879498 | [
"MIT"
] | null | null | null | // File: utilities.cpp
// Date: 8/4/2016
// Auth: K. Loux
// Desc: Tire data modeling utilities.
// Standard C++ headers
#include <limits>
#include <sstream>
#include <iomanip>
// Local headers
#include "utilities.h"
//==========================================================================
// Namespace: Util... | 27.42268 | 96 | 0.62218 | KerryL |
3ed35e570fbcb03fd0c1985284a9011f20702b1f | 866 | cpp | C++ | ZOJ/4014/implementation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | ZOJ/4014/implementation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | ZOJ/4014/implementation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <functional>
#include <iterator>
using namespace std;
int main()
{
ios::sync_with_stdio(fa... | 18.826087 | 44 | 0.461894 | codgician |
3ed66912d664ac4cdc51e4d44ff3b6e1b78f3024 | 4,257 | hpp | C++ | src/vec/func/trig.hpp | Thhethssmuz/mmm | ee91a990fba3849db1fc2b6df0e89004e2df466f | [
"MIT"
] | 1 | 2017-03-14T20:45:54.000Z | 2017-03-14T20:45:54.000Z | src/vec/func/trig.hpp | Thhethssmuz/mmm | ee91a990fba3849db1fc2b6df0e89004e2df466f | [
"MIT"
] | 1 | 2017-03-08T17:14:03.000Z | 2017-03-08T23:40:35.000Z | src/vec/func/trig.hpp | Thhethssmuz/mmm | ee91a990fba3849db1fc2b6df0e89004e2df466f | [
"MIT"
] | null | null | null | #pragma once
// all trigonometric functions are only defined for floating point types and
// floating vector types.
template <typename T, typename = typefu::for_arithmetic<T>>
constexpr typefu::promotef<T> radians(T degrees);
template <typename T, size_t N, typename = typefu::for_floating<T>>
constexpr tvec<T, N> ra... | 37.342105 | 80 | 0.709655 | Thhethssmuz |
3ed75ac2540d9a81cdd0d224888fdfd86366de14 | 444 | c++ | C++ | xp_comm_proj/rd_vrml/vrml2geo/qv/src/QvWWWInline.c++ | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 3 | 2020-08-03T08:52:20.000Z | 2021-04-10T11:55:49.000Z | xp_comm_proj/rd_vrml/vrml2geo/qv/src/QvWWWInline.c++ | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | null | null | null | xp_comm_proj/rd_vrml/vrml2geo/qv/src/QvWWWInline.c++ | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 1 | 2021-06-08T18:16:45.000Z | 2021-06-08T18:16:45.000Z | #include <QvWWWInline.h>
QV_NODE_SOURCE(QvWWWInline);
QvWWWInline::QvWWWInline()
{
QV_NODE_CONSTRUCTOR(QvWWWInline);
isBuiltIn = TRUE;
QV_NODE_ADD_FIELD(name);
QV_NODE_ADD_FIELD(bboxSize);
QV_NODE_ADD_FIELD(bboxCenter);
name.value = "";
bboxSize.value[0] = bboxSize.value[0] = bboxSize.va... | 20.181818 | 74 | 0.691441 | avs |
3ed9d61e7928f8f10a762f9161ed9b2ba354d31b | 7,663 | cpp | C++ | src/common/expression/PredicateExpression.cpp | linkensphere201/nebula-common-personal | e31b7e88326195a08ac0460fd469326455df6417 | [
"Apache-2.0"
] | null | null | null | src/common/expression/PredicateExpression.cpp | linkensphere201/nebula-common-personal | e31b7e88326195a08ac0460fd469326455df6417 | [
"Apache-2.0"
] | null | null | null | src/common/expression/PredicateExpression.cpp | linkensphere201/nebula-common-personal | e31b7e88326195a08ac0460fd469326455df6417 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "common/expression/PredicateExpression.h"
#include "common/expression/ExprVisitor.h"
namespace nebula {
std::... | 28.381481 | 92 | 0.517813 | linkensphere201 |
3edb23a8859aa4f922f741373da9a0a04c10eb93 | 388 | hpp | C++ | Dialogs/AboutDialog.hpp | rafaelgc/EasyReceipt | c4dae474fff0bba14f0f64ff485e3e3e19a9f399 | [
"MIT"
] | 1 | 2021-07-12T06:36:10.000Z | 2021-07-12T06:36:10.000Z | Dialogs/AboutDialog.hpp | rafaelgc/SplitQt | c4dae474fff0bba14f0f64ff485e3e3e19a9f399 | [
"MIT"
] | null | null | null | Dialogs/AboutDialog.hpp | rafaelgc/SplitQt | c4dae474fff0bba14f0f64ff485e3e3e19a9f399 | [
"MIT"
] | null | null | null | #ifndef ABOUTDIALOG_HPP
#define ABOUTDIALOG_HPP
#include <QDialog>
#include <QDebug>
#include "Version.hpp"
#include "Config.hpp"
#include "ui_aboutform.h"
class AboutDialog : public QDialog
{
Q_OBJECT
private:
Ui::AboutForm *ui;
public:
explicit AboutDialog(Config *config, QWidget *parent = 0);
~Ab... | 14.37037 | 62 | 0.719072 | rafaelgc |
3edf3e17b9792f3d5c121c17738c73d53346999f | 1,778 | cpp | C++ | programs/C++/infix_to_postfix.cpp | siddhantgore/hacktoberfest | d9b2e0483414d0b124e2c8c7c347aef46683d968 | [
"Apache-2.0"
] | 3 | 2021-10-03T17:03:41.000Z | 2022-02-15T15:18:32.000Z | programs/C++/infix_to_postfix.cpp | siddhantgore/hacktoberfest | d9b2e0483414d0b124e2c8c7c347aef46683d968 | [
"Apache-2.0"
] | 8 | 2021-10-02T14:09:31.000Z | 2021-10-08T07:54:15.000Z | programs/C++/infix_to_postfix.cpp | siddhantgore/hacktoberfest | d9b2e0483414d0b124e2c8c7c347aef46683d968 | [
"Apache-2.0"
] | 25 | 2021-10-02T10:30:12.000Z | 2021-10-10T04:01:56.000Z | #include<iostream>
#define n 100
using namespace std;
class stack
{
public:
char stack_arr[n+1];
int top;
stack(){
top=-1;
}
bool overflow(int top){
if(top==n){
return 1;
}
return 0;
}
bool underflow(){
if(top==-1){
return 1;
}
return 0;
}
void push(char value){
if(overflow(top)){
cout<<"Stack is... | 15.067797 | 76 | 0.591676 | siddhantgore |
3ee1f4a1030a49307036c3c9967498f36f837073 | 980 | hpp | C++ | QFsm/Front/Operations.hpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | 1 | 2020-12-18T20:43:20.000Z | 2020-12-18T20:43:20.000Z | QFsm/Front/Operations.hpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | null | null | null | QFsm/Front/Operations.hpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2011-2012 Krzysztof Jusiak (krzysztof at jusiak dot net)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef QFSM_FRONT_OPERATIONS_HPP
#define QFSM_FRONT_OPERATIONS_HPP
#include "QFsm/... | 35 | 90 | 0.787755 | krzysztof-jusiak |
3ee2dd0f7a2e43e7858553a1c968c1d5b302cb85 | 1,179 | hpp | C++ | Libraries/Widget/Utility.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 1 | 2019-07-13T03:36:11.000Z | 2019-07-13T03:36:11.000Z | Libraries/Widget/Utility.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Widget/Utility.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
namespace Zero
{
class ColorBlock : public Widget
{
public:
ColorBlock(Composite* parent, AttachType::Enum attachType = AttachType::Normal) : Widget(parent, attachType)
{
}
void RenderUpdate(
ViewBlock& viewBlock, FrameBlock& frameBlock, Mat4Param parentTx... | 26.2 | 116 | 0.703986 | RyanTylerRae |
3ee37edb73684a536091234b68cba7c93d402561 | 34,130 | cpp | C++ | src/gromacs/mdrun/rerun.cpp | gromacs/gromacs | 6cea3ac02b633e99167ce572f563368516853349 | [
"BSD-2-Clause"
] | 384 | 2015-01-02T19:44:15.000Z | 2022-03-27T15:13:15.000Z | src/gromacs/mdrun/rerun.cpp | gromacs/gromacs | 6cea3ac02b633e99167ce572f563368516853349 | [
"BSD-2-Clause"
] | 9 | 2015-04-07T20:48:00.000Z | 2022-01-24T21:29:26.000Z | src/gromacs/mdrun/rerun.cpp | gromacs/gromacs | 6cea3ac02b633e99167ce572f563368516853349 | [
"BSD-2-Clause"
] | 258 | 2015-01-19T11:19:57.000Z | 2022-03-18T08:59:52.000Z | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2018,2019,2020,2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at... | 37.629548 | 120 | 0.48995 | gromacs |
3ee3a709218539929cfdca64e5c12cb8997f0fae | 9,360 | cpp | C++ | src/cpp/DatasetBuilder.cpp | aflorio81/Amazon-MIT-RoutingChallenge | cbacc7b62a41b81c3e4b9ffde0f8dea0f81d3f5a | [
"Apache-2.0"
] | 3 | 2022-03-24T20:56:52.000Z | 2022-03-28T22:55:18.000Z | src/cpp/DatasetBuilder.cpp | aflorio81/Amazon-MIT-RoutingChallenge | cbacc7b62a41b81c3e4b9ffde0f8dea0f81d3f5a | [
"Apache-2.0"
] | null | null | null | src/cpp/DatasetBuilder.cpp | aflorio81/Amazon-MIT-RoutingChallenge | cbacc7b62a41b81c3e4b9ffde0f8dea0f81d3f5a | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <random>
#include "DatasetBuilder.h"
#include "JSONParser.h"
using namespace std;
using namespace rapidjson;
DatasetBuilder::DatasetBuilder(const string& actualseqs,
const string& invalidseqscrs, const string& packagedata,
const string& routedata, cons... | 40.171674 | 80 | 0.657799 | aflorio81 |
3ee8adbd50ddb5ad2ef4b81a7f715c3fee353540 | 44,101 | cpp | C++ | glib-adv/nmobj.cpp | ksemer/snap | 0084126c30ad49a4437bc8ea30be78484f8c58d7 | [
"BSD-3-Clause"
] | 1,805 | 2015-01-06T20:01:35.000Z | 2022-03-29T16:12:51.000Z | glib-adv/nmobj.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 168 | 2015-01-07T22:57:29.000Z | 2022-03-15T01:20:24.000Z | glib-adv/nmobj.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 768 | 2015-01-09T02:28:45.000Z | 2022-03-30T00:53:46.000Z | /////////////////////////////////////////////////
// Includes
#include "nmobj.h"
/////////////////////////////////////////////////
// Named-Objects
TNmObjBs::TNmObjBs(
const TSwSetType& SwSetType, const PSIn& CustSwSetSIn,
const PSIn& NrWordBsSIn, const PSIn& WordTypeBsSIn, const TStr& MteFNm):
ChDef(),
... | 37.278952 | 125 | 0.64062 | ksemer |
3eeae9b0cd211ccec05d48cc18791723593f9628 | 6,867 | cpp | C++ | ui/viewmodel/wallet/info_view.cpp | Webonnix/beam-ui | 65b6120e0d013db84d6bd863295f074830cae96c | [
"Apache-2.0"
] | null | null | null | ui/viewmodel/wallet/info_view.cpp | Webonnix/beam-ui | 65b6120e0d013db84d6bd863295f074830cae96c | [
"Apache-2.0"
] | null | null | null | ui/viewmodel/wallet/info_view.cpp | Webonnix/beam-ui | 65b6120e0d013db84d6bd863295f074830cae96c | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 The Beam Team
//
// 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... | 34.681818 | 147 | 0.659968 | Webonnix |
3eeb92f32f748efc4895b2271aca660e3d674cbc | 1,454 | cpp | C++ | C++/0045_jump_gamp.cpp | lazybing/leetcode | f12e593cfdebe357887e8b6f169d573e273e27a2 | [
"BSD-2-Clause"
] | 1 | 2020-07-07T14:06:27.000Z | 2020-07-07T14:06:27.000Z | C++/0045_jump_gamp.cpp | lazybing/leetcode | f12e593cfdebe357887e8b6f169d573e273e27a2 | [
"BSD-2-Clause"
] | null | null | null | C++/0045_jump_gamp.cpp | lazybing/leetcode | f12e593cfdebe357887e8b6f169d573e273e27a2 | [
"BSD-2-Clause"
] | null | null | null | /*
* Given an array of non-negative integers, you are initially positioned at the first index of the array.
* Each element in the array represents your maximum jump length at that position.
* Your goal is to reach the last index in the minimum number of jumps.
*
* Example:
* Input:[2, 3, 1, 1, 4]
* Output:... | 30.291667 | 106 | 0.450481 | lazybing |
3eedb0568560b7ebaa2030eff541a4186b71104e | 1,784 | cpp | C++ | test/src/init.cpp | beroso/godot-cpp | eafe6d96226da5ebf02ec35ca1599a45dd794cfc | [
"MIT"
] | 17 | 2021-02-01T21:00:19.000Z | 2021-11-08T09:41:00.000Z | test/src/init.cpp | beroso/godot-cpp | eafe6d96226da5ebf02ec35ca1599a45dd794cfc | [
"MIT"
] | 29 | 2021-04-07T07:24:52.000Z | 2022-03-03T21:22:22.000Z | test/src/init.cpp | beroso/godot-cpp | eafe6d96226da5ebf02ec35ca1599a45dd794cfc | [
"MIT"
] | 1 | 2021-08-28T14:14:20.000Z | 2021-08-28T14:14:20.000Z | #include <Godot.hpp>
#include <Reference.hpp>
using namespace godot;
class SimpleClass : public Reference {
GODOT_CLASS(SimpleClass, Reference);
public:
SimpleClass() {}
/** `_init` must exist as it is called by Godot. */
void _init() {
_name = String("SimpleClass");
_value = 0;
}
void test_void_method()... | 24.108108 | 136 | 0.71861 | beroso |
3eeee3aa150cfd347545a6d7a9b570b26f26fd84 | 4,568 | cc | C++ | spec/image_expand_spec.cc | fweiss/mcu-gif | aefe64ffcfe6e5c5ff80524c0f131cbc0e24fb49 | [
"MIT"
] | null | null | null | spec/image_expand_spec.cc | fweiss/mcu-gif | aefe64ffcfe6e5c5ff80524c0f131cbc0e24fb49 | [
"MIT"
] | null | null | null | spec/image_expand_spec.cc | fweiss/mcu-gif | aefe64ffcfe6e5c5ff80524c0f131cbc0e24fb49 | [
"MIT"
] | null | null | null | #include "ccspec/core.h"
#include "ccspec/expectation.h"
#include "ccspec/matchers.h"
using ccspec::core::describe;
using ccspec::core::before;
using ccspec::core::it;
using ccspec::expect;
using ccspec::matchers::eq;
#include "helpers/fake_file.h"
#include "helpers/pack.h"
extern "C" {
#include "gd.h"
#include "... | 30.453333 | 164 | 0.468695 | fweiss |
3eef36b856da4184d01a4502ebbbdcb6983d6282 | 1,507 | cpp | C++ | foo_dotnet_component_host/ui/ui_preferences.cpp | TheQwertiest/foo_dotnet_component_host | f849849b591a5d85b4bc12790123dc40aaf24f93 | [
"MIT"
] | 4 | 2021-12-01T18:54:26.000Z | 2022-03-30T13:16:17.000Z | foo_dotnet_component_host/ui/ui_preferences.cpp | TheQwertiest/foo_dotnet_component_host | f849849b591a5d85b4bc12790123dc40aaf24f93 | [
"MIT"
] | 1 | 2021-11-29T13:25:14.000Z | 2022-01-16T22:54:57.000Z | foo_dotnet_component_host/ui/ui_preferences.cpp | TheQwertiest/foo_dotnet_component_host | f849849b591a5d85b4bc12790123dc40aaf24f93 | [
"MIT"
] | null | null | null | #include <stdafx.h>
#include "ui_preferences.h"
#include <convert/to_net.h>
#include <ui/ui_preferences_form.h>
namespace Qwr::DotnetHost
{
ComponentInterface::PreferencesPageInfo Preferences::GetInfo()
{
PreferencesPageInfo info;
info.Name = DNET_NAME;
info.Guid = Convert::ToNet::ToValue( Guids::ui_pre... | 22.161765 | 108 | 0.713338 | TheQwertiest |
3eefa692eaf66833c6752afa9285ad9067ae3210 | 943 | ipp | C++ | Siv3D/include/Siv3D/detail/UnicodeConverter.ipp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/include/Siv3D/detail/UnicodeConverter.ipp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Siv3D/include/Siv3D/detail/UnicodeConverter.ipp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
namespace s3d
{
inline char32 ... | 20.5 | 92 | 0.64263 | tas9n |
3ef08b68456eb0d9b1bb3a17df25f057246f652f | 1,246 | cpp | C++ | Onboard-SDK-ROS/dji_sdk_demo/src/stereo_utility/point_cloud_viewer.cpp | NMMI/aerial-alter-ego | ba6517ecc1986e4808f6c17df3348dc5637d9cf7 | [
"BSD-3-Clause"
] | 6 | 2020-08-16T07:31:14.000Z | 2022-02-17T06:24:47.000Z | src/Onboard-SDK-ROS-3.6/dji_sdk_demo/src/stereo_utility/point_cloud_viewer.cpp | isuran/droneautomation | c53017f8c8d4c03e3095ec7b6269d5a2659489e5 | [
"MIT"
] | 1 | 2021-08-18T08:14:19.000Z | 2021-08-18T08:14:19.000Z | src/Onboard-SDK-ROS-3.6/dji_sdk_demo/src/stereo_utility/point_cloud_viewer.cpp | isuran/droneautomation | c53017f8c8d4c03e3095ec7b6269d5a2659489e5 | [
"MIT"
] | 2 | 2021-05-18T07:04:23.000Z | 2021-05-23T13:22:13.000Z | #include "stereo_utility/point_cloud_viewer.hpp"
PointCloudViewer* PointCloudViewer::single_instance_ = new PointCloudViewer("Point Cloud Viewer");
PointCloudViewer::PointCloudViewer(const std::string &name)
: viewer_(name)
, view_pos_(-1.0, -2.0, -3.0)
, view_point_(0, 0, 0)
, view_y_dir_(0, 1, 0)
, world_... | 25.958333 | 98 | 0.691011 | NMMI |
3ef89c6d8023cad4347a80cceb00b2842e18c870 | 45,101 | cpp | C++ | Source/MaestroMakeFlux.cpp | XinlongSBU/MAESTROeX | bda189af39390fc09bb0ebb8321971b9d7688fd7 | [
"BSD-3-Clause"
] | null | null | null | Source/MaestroMakeFlux.cpp | XinlongSBU/MAESTROeX | bda189af39390fc09bb0ebb8321971b9d7688fd7 | [
"BSD-3-Clause"
] | null | null | null | Source/MaestroMakeFlux.cpp | XinlongSBU/MAESTROeX | bda189af39390fc09bb0ebb8321971b9d7688fd7 | [
"BSD-3-Clause"
] | null | null | null |
#include <Maestro.H>
using namespace amrex;
const int pred_rhoh = 0;
const int pred_rhohprime = 1;
const int pred_h = 2;
const int pred_T_then_rhohprime = 3;
const int pred_T_then_h = 4;
const int pred_hprime = 5;
const int pred_Tprime_then_h = 6;
const int pre... | 47.979787 | 123 | 0.473271 | XinlongSBU |
3ef9c8e4e0b641fdbbcea3006950837a1fd633e2 | 714 | cpp | C++ | codes/c++/101.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | codes/c++/101.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | codes/c++/101.cpp | YuanweiZHANG/Leetcode | 14a083528431bc65ada8f8265a5ef9d0fae40ecd | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <stack>
using namespace std;
/**
* 2020-04-16
* Veronica
*/
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
bool isSymmetric(TreeNode* root) {
if (!root)
return true;
... | 17.85 | 82 | 0.644258 | YuanweiZHANG |
41017fb2f376efeecdc4633c5b85a459ea5687d9 | 9,873 | cpp | C++ | 3rdparty/etl/src/ETIndexHandler.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | 3rdparty/etl/src/ETIndexHandler.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | 3rdparty/etl/src/ETIndexHandler.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | /********************************************************************************
EDITABLE TERRAIN LIBRARY v3 for Ogre
Copyright (c) 2008 Holger Frydrych <frydrych@oddbeat.de>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arisin... | 30.472222 | 115 | 0.599514 | Osumi-Akari |
4102fab03bd88530e38bf7a60c1dcace162208ae | 205 | cc | C++ | external/hacked_packages/pytest-cpp-0.4/tests/acceptance/googletest-samples/main.cc | willsheffler/rosette | 199fdbf18e9fceb5324cd7bae9b47c3feb47af73 | [
"Apache-2.0"
] | null | null | null | external/hacked_packages/pytest-cpp-0.4/tests/acceptance/googletest-samples/main.cc | willsheffler/rosette | 199fdbf18e9fceb5324cd7bae9b47c3feb47af73 | [
"Apache-2.0"
] | 1 | 2015-02-24T13:15:29.000Z | 2015-02-26T23:45:19.000Z | external/hacked_packages/pytest-cpp-0.4/tests/acceptance/googletest-samples/main.cc | willsheffler/rosette | 199fdbf18e9fceb5324cd7bae9b47c3feb47af73 | [
"Apache-2.0"
] | null | null | null | // compiled with samples which don't declare their own main() function
#include "gtest/gtest.h"
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
} | 25.625 | 70 | 0.697561 | willsheffler |
4103417d514d4e5f5245d77094c8b1622d8288fc | 10,508 | cpp | C++ | afj-assignment-04/lib/grammar.cpp | Kyslik/afj-assignment-04 | 026c8408bb1284c535f04bed91fe32d894ca6ef1 | [
"MIT"
] | null | null | null | afj-assignment-04/lib/grammar.cpp | Kyslik/afj-assignment-04 | 026c8408bb1284c535f04bed91fe32d894ca6ef1 | [
"MIT"
] | null | null | null | afj-assignment-04/lib/grammar.cpp | Kyslik/afj-assignment-04 | 026c8408bb1284c535f04bed91fe32d894ca6ef1 | [
"MIT"
] | null | null | null | //
// grammar.cpp
// afj-assignment-04
//
// Created by Martin Kiesel on 08/05/16.
// Copyright © 2016 Martin Kiesel. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <sstream>
#include "grammar.hpp"
namespace afj_4
{
namespace grammar
{
void Grammar::addTerminal(const std::string &term... | 36.234483 | 168 | 0.501808 | Kyslik |
41034f208c4e9edf30b1918e51eed0132f53fd42 | 1,275 | cpp | C++ | sdf-net/lib/submodules/libigl/tutorial/604_Triangle/main.cpp | hardikk13/nglod | 6c6c66ce1b39c5a3515cafc290ec903ae90b506e | [
"MIT"
] | null | null | null | sdf-net/lib/submodules/libigl/tutorial/604_Triangle/main.cpp | hardikk13/nglod | 6c6c66ce1b39c5a3515cafc290ec903ae90b506e | [
"MIT"
] | null | null | null | sdf-net/lib/submodules/libigl/tutorial/604_Triangle/main.cpp | hardikk13/nglod | 6c6c66ce1b39c5a3515cafc290ec903ae90b506e | [
"MIT"
] | null | null | null | #include <igl/opengl/glfw/Viewer.h>
#include <igl/triangle/triangulate.h>
// Input polygon
Eigen::MatrixXd V;
Eigen::MatrixXi E;
Eigen::MatrixXd H;
// Triangulated interior
Eigen::MatrixXd V2;
Eigen::MatrixXi F2;
int main(int argc, char *argv[])
{
using namespace Eigen;
using namespace std;
// ... | 26.020408 | 60 | 0.627451 | hardikk13 |
4105e6b6718b235b9d597ee392f076af3ff10654 | 922 | cpp | C++ | src/ctap/reset.cpp | uru-card/uru-card | 0d20f8dd3bd5db3781ac0c6535744f77af6dfda2 | [
"Apache-2.0"
] | 98 | 2020-06-29T11:01:45.000Z | 2022-02-20T06:50:31.000Z | src/ctap/reset.cpp | uru-card/uru-card | 0d20f8dd3bd5db3781ac0c6535744f77af6dfda2 | [
"Apache-2.0"
] | 9 | 2020-06-29T11:22:19.000Z | 2022-03-16T11:06:12.000Z | src/ctap/reset.cpp | uru-card/uru-card | 0d20f8dd3bd5db3781ac0c6535744f77af6dfda2 | [
"Apache-2.0"
] | 1 | 2021-07-29T16:12:54.000Z | 2021-07-29T16:12:54.000Z | #include <Arduino.h>
#include <YACL.h>
#include "fido2/ctap/ctap.h"
#include "util/util.h"
namespace FIDO2
{
namespace CTAP
{
namespace Request
{
CommandCode Reset::getCommandCode() const
{
return authenticatorReset;
}
Status pa... | 22.487805 | 82 | 0.509761 | uru-card |
4108eb22a65ef908199fdba979c870b54251f16f | 304 | cpp | C++ | 10- Recursion & Backtracking/LinearSearch.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 21 | 2020-10-03T03:57:19.000Z | 2022-03-25T22:41:05.000Z | 10- Recursion & Backtracking/LinearSearch.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 40 | 2020-10-02T07:02:34.000Z | 2021-10-30T16:00:07.000Z | 10- Recursion & Backtracking/LinearSearch.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 90 | 2020-10-02T07:06:22.000Z | 2022-03-25T22:41:17.000Z | #include<iostream>
using namespace std;
int linearSearch(int *a, int i, int key, int n){
if(i==n){
return -1;
}
if(i==key){
return i;
}
return linearSearch(a, i+1, key,n);
}
int main()
{
int a[]= {1,2,3,5,4,8};
int n= sizeof(a)/sizeof(int);
int key;cin>>key;
cout<<linearSearch(a,0,key,n);
} | 16.888889 | 48 | 0.608553 | ShreyashRoyzada |
41098bd3b922147e0b075bba069846dcba4d6dfc | 1,563 | hpp | C++ | src/netspeak/model/SearchResult.hpp | netspeak/netspeak4-application-cpp | b322c19e22c71f39be95b37b14f43daab1cb9024 | [
"MIT"
] | null | null | null | src/netspeak/model/SearchResult.hpp | netspeak/netspeak4-application-cpp | b322c19e22c71f39be95b37b14f43daab1cb9024 | [
"MIT"
] | 7 | 2020-06-02T18:37:02.000Z | 2021-02-17T11:04:22.000Z | src/netspeak/model/SearchResult.hpp | netspeak/netspeak4-application-ngrams | b322c19e22c71f39be95b37b14f43daab1cb9024 | [
"MIT"
] | null | null | null | #ifndef NETSPEAK_MODEL_SEARCH_RESULT_HPP
#define NETSPEAK_MODEL_SEARCH_RESULT_HPP
#include <memory>
#include <vector>
#include "netspeak/model/NormQuery.hpp"
#include "netspeak/model/Phrase.hpp"
namespace netspeak {
namespace model {
class SearchResult {
public:
struct Item {
std::shared_ptr<const NormQuery... | 21.121622 | 77 | 0.662828 | netspeak |
410d1fd34142e08ac378f424bfaa92ae24488562 | 10,161 | cpp | C++ | OpenEXR/IlmImfUtil/ImfFlatImageIO.cpp | Lord-Kamina/openexr | cb16232387a8dabf75797ff8d3015594a7a87abe | [
"BSD-3-Clause"
] | 107 | 2015-01-27T22:01:49.000Z | 2021-12-27T07:44:25.000Z | OpenEXR/IlmImfUtil/ImfFlatImageIO.cpp | Lord-Kamina/openexr | cb16232387a8dabf75797ff8d3015594a7a87abe | [
"BSD-3-Clause"
] | 2 | 2015-10-09T19:13:25.000Z | 2018-12-25T17:16:54.000Z | OpenEXR/IlmImfUtil/ImfFlatImageIO.cpp | Lord-Kamina/openexr | cb16232387a8dabf75797ff8d3015594a7a87abe | [
"BSD-3-Clause"
] | 17 | 2015-03-12T19:11:30.000Z | 2020-11-30T15:51:23.000Z | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 24.782927 | 80 | 0.586655 | Lord-Kamina |
411194daf2146fd369a4aed89fbb7d3044a055d6 | 3,281 | cpp | C++ | src-plugins/undoRedoRegistration/undoRedoRegistration.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/undoRedoRegistration/undoRedoRegistration.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/undoRedoRegistration/undoRedoRegistration.cpp | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | // /////////////////////////////////////////////////////////////////
// Generated by medPluginGenerator
// /////////////////////////////////////////////////////////////////
#include "undoRedoRegistration.h"
#include <dtkCore/dtkAbstractData.h>
#include <dtkCore/dtkAbstractDataFactory.h>
#include <dtkCore/dtkAbstractP... | 38.6 | 130 | 0.629077 | ocommowi |
4117908e59bd2f5b87794ddf0e858896f13a9532 | 335 | hpp | C++ | common/Stopwatch.hpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | common/Stopwatch.hpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | common/Stopwatch.hpp | CltKitakami/MyLib | d2dc4fb06ea5c3379a1818b49b0ecf13f8cd2b36 | [
"MIT"
] | null | null | null | #ifndef _STOPWATCH_HPP_
#define _STOPWATCH_HPP_
#include <cstdint>
#ifndef _MSC_VER
#include <sys/time.h>
#else
#include <windows.h>
#endif
class Stopwatch
{
public:
void start();
void stop();
uint32_t getMillis();
uint32_t getMicros();
private:
struct timeval begin, end;
struct timeval getElapsedTime... | 11.964286 | 36 | 0.716418 | CltKitakami |
4118f9e840af92b4b8c3503526ce307eb9bcd371 | 9,940 | cpp | C++ | carto/CartoImageProc.cpp | mpthomas/Draw-Bot | 83bb7d755f805ae7f1a7b2fa9053c0882bc20b35 | [
"Apache-2.0"
] | null | null | null | carto/CartoImageProc.cpp | mpthomas/Draw-Bot | 83bb7d755f805ae7f1a7b2fa9053c0882bc20b35 | [
"Apache-2.0"
] | null | null | null | carto/CartoImageProc.cpp | mpthomas/Draw-Bot | 83bb7d755f805ae7f1a7b2fa9053c0882bc20b35 | [
"Apache-2.0"
] | null | null | null |
#include "CartoImageProc.hpp"
#include <iostream>
#include <sys/stat.h>
#include "PerlinNoise.hpp"
#include "CartoPath.hpp"
#include "CartoNode.hpp"
#include "CartoSimulator.hpp"
#include <gsl/gsl_errno.h>
#include <gsl/gsl_spline.h>
#include <cmath>
namespace Carto {
using namespace cv;
using namespace std;... | 34.634146 | 123 | 0.512173 | mpthomas |
411e3928579a66b19248021cbaad0d936655f227 | 2,774 | cpp | C++ | QuoteGeneration/qcnl/win/os_version.cpp | dpuzikox/SGXDataCenterAttestationPrimitives | 88c8bb619db0945623256138a980f950139e6013 | [
"BSD-3-Clause"
] | 156 | 2018-09-06T07:19:23.000Z | 2022-03-30T19:01:40.000Z | QuoteGeneration/qcnl/win/os_version.cpp | dpuzikox/SGXDataCenterAttestationPrimitives | 88c8bb619db0945623256138a980f950139e6013 | [
"BSD-3-Clause"
] | 136 | 2018-10-02T00:58:26.000Z | 2022-03-21T08:45:25.000Z | QuoteGeneration/qcnl/win/os_version.cpp | dpuzikox/SGXDataCenterAttestationPrimitives | 88c8bb619db0945623256138a980f950139e6013 | [
"BSD-3-Clause"
] | 109 | 2018-10-01T19:09:58.000Z | 2022-03-29T13:33:51.000Z | /*
* Copyright (C) 2011-2021 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... | 43.34375 | 97 | 0.693944 | dpuzikox |
411e477533f25450adf67fe60d3afe2af5c413b7 | 1,313 | hpp | C++ | include/codegen/include/Microsoft/Win32/Win32Native.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Microsoft/Win32/Win32Native.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Microsoft/Win32/Win32Native.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:38 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 35.486486 | 89 | 0.70297 | Futuremappermydud |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.