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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
92f81503558e7e763360c33af2ca80129260aa7c | 2,318 | hpp | C++ | src/libv/net/detail/rate_policy.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 2 | 2018-04-11T03:07:03.000Z | 2019-03-29T15:24:12.000Z | src/libv/net/detail/rate_policy.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | null | null | null | src/libv/net/detail/rate_policy.hpp | cpplibv/libv | 293e382f459f0acbc540de8ef6283782b38d2e63 | [
"Zlib"
] | 1 | 2021-06-13T06:39:06.000Z | 2021-06-13T06:39:06.000Z | // Project: libv.net, File: src/libv/net/detail/rate_policy.hpp, Author: Császár Mátyás [Vader]
#pragma once
// ext
#include <boost/beast/core/rate_policy.hpp>
// std
#include <atomic>
#include <limits>
namespace libv {
namespace net {
// ----------------------------------------------------------------------------... | 24.659574 | 100 | 0.664366 | cpplibv |
92f85288e032e7718f3437cac5afe5c902a522c3 | 3,016 | cpp | C++ | src/posemanagewidget.cpp | st4ll1/dust3d | c1de02f7ddcfdacc730cc96740f8073f87e7818c | [
"MIT"
] | null | null | null | src/posemanagewidget.cpp | st4ll1/dust3d | c1de02f7ddcfdacc730cc96740f8073f87e7818c | [
"MIT"
] | null | null | null | src/posemanagewidget.cpp | st4ll1/dust3d | c1de02f7ddcfdacc730cc96740f8073f87e7818c | [
"MIT"
] | null | null | null | #include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPushButton>
#include "posemanagewidget.h"
#include "theme.h"
#include "poseeditwidget.h"
#include "infolabel.h"
PoseManageWidget::PoseManageWidget(const Document *document, QWidget *parent) :
QWidget(parent),
m_document(document)
{
QPushButton *addPo... | 33.142857 | 131 | 0.662467 | st4ll1 |
92f941195782c20fb34da63cb9861b4efa2b87c6 | 4,092 | cpp | C++ | tc 160+/BagsQuiz.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/BagsQuiz.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/BagsQuiz.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
struct Bag {
int ind;
vector<Bag> inside;
Bag(int ind_): ind(ind_) {}
};
int getInd(int x, const vector<Bag> &v) {
for (int ... | 33.818182 | 309 | 0.559384 | ibudiselic |
92ffa3246a69cc01324da4b70aef2dfb88ca06aa | 7,589 | cpp | C++ | examples/snippets/wiki_utility-theory.cpp | whyliuxing/HFSM2 | 59b5497466ed418df87c3abe8b0ef32dbddb2431 | [
"MIT"
] | null | null | null | examples/snippets/wiki_utility-theory.cpp | whyliuxing/HFSM2 | 59b5497466ed418df87c3abe8b0ef32dbddb2431 | [
"MIT"
] | null | null | null | examples/snippets/wiki_utility-theory.cpp | whyliuxing/HFSM2 | 59b5497466ed418df87c3abe8b0ef32dbddb2431 | [
"MIT"
] | null | null | null | // HFSM2 (hierarchical state machine for games and interactive applications)
// Created by Andrew Gresyk
#define HFSM2_ENABLE_LOG_INTERFACE
#define HFSM2_ENABLE_UTILITY_THEORY
#define HFSM2_ENABLE_VERBOSE_DEBUG_LOG
#include <hfsm2/machine.hpp>
#include <catch2/catch.hpp>
//#include <vector> // already included in ca... | 33.431718 | 97 | 0.478587 | whyliuxing |
1303d8a11e9dff3b6f73f3ac0ab6bde08fe348ce | 3,710 | cpp | C++ | dlls/Env/CLaser.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 1 | 2020-12-11T17:52:33.000Z | 2020-12-11T17:52:33.000Z | dlls/Env/CLaser.cpp | BlueNightHawk4906/HL-ADM-Custom | 7cd3925de819d4f5a2a808e5c0b34bb03a51c991 | [
"Unlicense"
] | 7 | 2021-07-09T09:19:14.000Z | 2021-07-20T19:35:21.000Z | dlls/Env/CLaser.cpp | phoenixprojectsoftware/phoenixADM | 5f170a34739e64111dbe161d9ab9e0baa219512b | [
"Unlicense"
] | null | null | null | #include "Base/ExtDLL.h"
#include "Util.h"
#include "Base/CBase.h"
#include "CSprite.h"
#include "CBeam.h"
#include "CLaser.h"
LINK_ENTITY_TO_CLASS( env_laser, CLaser );
TYPEDESCRIPTION CLaser::m_SaveData[] =
{
DEFINE_FIELD( CLaser, m_pSprite, FIELD_CLASSPTR ),
DEFINE_FIELD( CLaser, m_iszSpriteName, FIE... | 21.823529 | 136 | 0.634771 | BlueNightHawk4906 |
1305c225bec3cbd72abc45afa68e6f08da1a6064 | 277 | cpp | C++ | Day-03/Day-03-CodeForces/977-A-WrongSubraction.cpp | LawranceMichaelite/100-Days-of-Code | de80015c2ab7c94956d4fe39f6e143627cdd7bc9 | [
"Apache-2.0"
] | null | null | null | Day-03/Day-03-CodeForces/977-A-WrongSubraction.cpp | LawranceMichaelite/100-Days-of-Code | de80015c2ab7c94956d4fe39f6e143627cdd7bc9 | [
"Apache-2.0"
] | null | null | null | Day-03/Day-03-CodeForces/977-A-WrongSubraction.cpp | LawranceMichaelite/100-Days-of-Code | de80015c2ab7c94956d4fe39f6e143627cdd7bc9 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int num , k ;
cin >> num >> k ;
while( k--)
{
if( num % 10 == 0)
{
num /= 10;
}
else
{
--num ;
}
}
cout << num << endl ;
return 0;
}
| 12.590909 | 25 | 0.353791 | LawranceMichaelite |
1306ff66f8d77a9ebceddc670c287b19c9e4c4f6 | 7,125 | cpp | C++ | local_addons/ofxPostProcessing/src/ToonPass.cpp | pierrextardif/ofxAVPostProcessing | 5f56590ac4d06ed02ed2a852da76d8893266b58b | [
"MIT"
] | 2 | 2019-02-19T11:23:39.000Z | 2020-07-26T08:56:38.000Z | local_addons/ofxPostProcessing/src/ToonPass.cpp | pierrextardif/ofxAVPostProcessing | 5f56590ac4d06ed02ed2a852da76d8893266b58b | [
"MIT"
] | null | null | null | local_addons/ofxPostProcessing/src/ToonPass.cpp | pierrextardif/ofxAVPostProcessing | 5f56590ac4d06ed02ed2a852da76d8893266b58b | [
"MIT"
] | null | null | null | /*
* ToonPass.cpp
*
* Copyright (c) 2013, satcy, http://satcy.net
* 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 c... | 41.911765 | 215 | 0.575579 | pierrextardif |
1307e5bf3ddca9d6890070b2c567571e1e6b234d | 3,105 | cpp | C++ | libdect/simul.cpp | jncronin/dect | 120ab4e1b4fbdf947bab58f1725448ff9b044d9b | [
"MIT"
] | 1 | 2021-11-22T18:59:56.000Z | 2021-11-22T18:59:56.000Z | libdect/simul.cpp | jncronin/dect | 120ab4e1b4fbdf947bab58f1725448ff9b044d9b | [
"MIT"
] | null | null | null | libdect/simul.cpp | jncronin/dect | 120ab4e1b4fbdf947bab58f1725448ff9b044d9b | [
"MIT"
] | null | null | null | /* Copyright (C) 2016 by John Cronin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... | 27.723214 | 95 | 0.635749 | jncronin |
130ab1dd54dc6229a6f7a2816e21e5381562bec1 | 12,829 | cpp | C++ | src/frameworks/native/services/surfaceflinger/CompositionEngine/src/DisplayColorProfile.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/native/services/surfaceflinger/CompositionEngine/src/DisplayColorProfile.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/native/services/surfaceflinger/CompositionEngine/src/DisplayColorProfile.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 32.396465 | 99 | 0.658664 | dAck2cC2 |
130c350fccd486df1342180cb0249dcd4ad14f64 | 30,480 | cpp | C++ | plotter.cpp | ArashMassoudieh/QAquifolium | ad9ee68a2b73741042f537a2f6d835773b826335 | [
"Apache-2.0"
] | null | null | null | plotter.cpp | ArashMassoudieh/QAquifolium | ad9ee68a2b73741042f537a2f6d835773b826335 | [
"Apache-2.0"
] | null | null | null | plotter.cpp | ArashMassoudieh/QAquifolium | ad9ee68a2b73741042f537a2f6d835773b826335 | [
"Apache-2.0"
] | null | null | null | #include "plotter.h"
#include "ui_plotter.h"
#include "qcustomplot.h"
#include "qdebug.h"
#include "qfileinfo.h"
#include "qaction.h"
#include "mainwindow.h"
Plotter::Plotter(MainWindow *_parent) :
QMainWindow(_parent),
ui(new Ui::Plotter)
{
parent = _parent;
ui->setupUi(this);
plot = new CustomP... | 39.584416 | 161 | 0.581266 | ArashMassoudieh |
13121bb06edd6c5ca684641231ff9608f93f0380 | 1,024 | cpp | C++ | graph_data_structures/dfs_graph.cpp | divyanshu-rawat/Programming-paradigms | 5e0145923e341808aa1f54b4c0611072635827d5 | [
"MIT"
] | null | null | null | graph_data_structures/dfs_graph.cpp | divyanshu-rawat/Programming-paradigms | 5e0145923e341808aa1f54b4c0611072635827d5 | [
"MIT"
] | null | null | null | graph_data_structures/dfs_graph.cpp | divyanshu-rawat/Programming-paradigms | 5e0145923e341808aa1f54b4c0611072635827d5 | [
"MIT"
] | 1 | 2020-07-06T06:51:22.000Z | 2020-07-06T06:51:22.000Z |
#include <iostream>
#include <list>
using namespace std;
class Graph{
int V;
list <int> *adj;
void DFSutility(int visited[],int v);
public:
Graph(int size);
void addEdge(int v,int w);
void DFS(int v);
};
Graph:: Graph(int size){
this->V = size;
this->adj = new list <int>[V];
}
void Graph:: addEdg... | 11.377778 | 51 | 0.549805 | divyanshu-rawat |
1312a88cc431407c641ff4b7f42a141afc97193d | 2,546 | cpp | C++ | Practice/2018/2018.4.4/BZOJ3110.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.4.4/BZOJ3110.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.4.4/BZOJ3110.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define lson (now<<1)
#define rson (lson|1)
const int maxN=50100;
const int inf=2147483647;
int n,m;
ll numcnt=0,Num[maxN];
class SegData... | 21.041322 | 82 | 0.588374 | SYCstudio |
13136c3a632cf293ad8558fda6270139247de9fb | 2,329 | hpp | C++ | include/nopengl/gltypes.hpp | BetaJester/nopengl | 6220eab842db531d275e7c0f9276992d22170e3a | [
"MIT"
] | null | null | null | include/nopengl/gltypes.hpp | BetaJester/nopengl | 6220eab842db531d275e7c0f9276992d22170e3a | [
"MIT"
] | null | null | null | include/nopengl/gltypes.hpp | BetaJester/nopengl | 6220eab842db531d275e7c0f9276992d22170e3a | [
"MIT"
] | null | null | null | // Copyright (C) 2021 Glenn Duncan <betajester@betajester.com>
// See README.md, LICENSE, or go to https://github.com/BetaJester/nopengl
// for details.
#pragma once
#include <type_traits>
#include <cstdint>
#include "nopengl_config.hpp"
namespace nopengl {
template<typename T>
[[nodiscard]]
... | 46.58 | 110 | 0.661657 | BetaJester |
1315d5c1ff55a064394644de3a7b01c7eb5783c1 | 776 | cpp | C++ | stdQt/TestStdQt/testqstring.cpp | ambiesoft/lsMisc | c55f87719c4da2c207199a54064d691b49ed32da | [
"BSD-2-Clause"
] | null | null | null | stdQt/TestStdQt/testqstring.cpp | ambiesoft/lsMisc | c55f87719c4da2c207199a54064d691b49ed32da | [
"BSD-2-Clause"
] | null | null | null | stdQt/TestStdQt/testqstring.cpp | ambiesoft/lsMisc | c55f87719c4da2c207199a54064d691b49ed32da | [
"BSD-2-Clause"
] | 1 | 2019-05-25T08:16:32.000Z | 2019-05-25T08:16:32.000Z | #include <QtTest/QtTest>
#include "testqstring.h"
//QTEST_MAIN(TestQString)
//#include "testqstring.moc"
void TestQString::toUpper_data()
{
QTest::addColumn<QString>("string");
QTest::addColumn<QString>("result");
QTest::newRow("all lower") << "hello" << "HELLO";
QTest::newRow("mixed") << "Hello... | 27.714286 | 59 | 0.631443 | ambiesoft |
13175e52186b3e80db52f52ad0396b984a98339e | 3,786 | cpp | C++ | src/io/dstream.cpp | astomih/sinen | be850aba18f8b75e6152c2072949e796d014732c | [
"MIT"
] | 1 | 2022-02-13T10:44:01.000Z | 2022-02-13T10:44:01.000Z | src/io/dstream.cpp | astomih/sinen | be850aba18f8b75e6152c2072949e796d014732c | [
"MIT"
] | null | null | null | src/io/dstream.cpp | astomih/sinen | be850aba18f8b75e6152c2072949e796d014732c | [
"MIT"
] | null | null | null | #include <SDL.h>
#include <SDL_rwops.h>
#include <io/dstream.hpp>
#include <iostream>
#include <mutex>
#include <string_view>
#include <thread>
#include <unordered_map>
namespace nen {
void decoding(std::string &str, std::vector<uint8_t> &key) {
int i = 0;
for (auto &c : str) {
uint8_t uc = (uint8_t)c;
uc... | 28.900763 | 77 | 0.64131 | astomih |
131bf4a6fbaac6bfb77eff499f92a1c101238608 | 4,919 | hpp | C++ | Engine/Src/Ancona/Util2D/Collision/Box2.hpp | ild-games/Ancona | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | [
"MIT"
] | 11 | 2018-04-15T21:00:48.000Z | 2021-12-30T20:55:21.000Z | Engine/Src/Ancona/Util2D/Collision/Box2.hpp | tlein/Ancona | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | [
"MIT"
] | 58 | 2016-04-17T20:41:25.000Z | 2017-02-27T01:21:46.000Z | Engine/Src/Ancona/Util2D/Collision/Box2.hpp | ild-games/Ancona | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | [
"MIT"
] | 4 | 2018-05-04T17:03:20.000Z | 2021-02-12T21:26:57.000Z | #ifndef Ancona_Util2D_Box2_H_
#define Ancona_Util2D_Box2_H_
#include <vector>
#include <SFML/System.hpp>
#include <Ancona/Util2D/Collision/Box3.hpp>
#include <Ancona/Util2D/Collision/Math.hpp>
namespace ild
{
/**
* @brief Represents a square in 2d space with dimension, position,
* and rotation
* @author Jeff Sw... | 33.236486 | 118 | 0.558244 | ild-games |
131efade8a49740927d8084c4224aa95891b1492 | 2,327 | hpp | C++ | src/udp_socket.hpp | pcdangio/ros-driver_tcpip | 7e2aa0d727cd3a86ec5ddc7f3495a6f461e55702 | [
"MIT"
] | 2 | 2021-03-23T19:15:55.000Z | 2021-04-04T13:55:53.000Z | src/udp_socket.hpp | pcdangio/ros-driver_tcpip | 7e2aa0d727cd3a86ec5ddc7f3495a6f461e55702 | [
"MIT"
] | 1 | 2019-07-30T01:36:43.000Z | 2019-07-31T23:52:49.000Z | src/udp_socket.hpp | pcdangio/ros-driver_modem | 7e2aa0d727cd3a86ec5ddc7f3495a6f461e55702 | [
"MIT"
] | 1 | 2022-03-16T03:46:55.000Z | 2022-03-16T03:46:55.000Z | /// \file udp_socket.hpp
/// \brief Defines the driver_tcpip::udp_socket_t class.
#ifndef DRIVER_TCPIP___UDP_SOCKET_H
#define DRIVER_TCPIP___UDP_SOCKET_H
#include "socket.hpp"
#include <ros/ros.h>
#include <driver_tcpip_msgs/udp_packet.h>
#include <driver_tcpip_msgs/udp_socket.h>
#include <boost/asio/ip/udp.hpp>
#i... | 33.242857 | 85 | 0.712935 | pcdangio |
13215e51c090a4bf80627370daa722284d007669 | 29 | cpp | C++ | Code/gpCoreTests/PCH.cpp | Manuzor/GamePhysics | 59c7ff68c6bb72a4b3503752debd35c8b98893ce | [
"MIT"
] | 2 | 2020-08-15T06:48:36.000Z | 2020-09-11T21:18:05.000Z | Code/gpCoreTests/PCH.cpp | Manuzor/GamePhysics | 59c7ff68c6bb72a4b3503752debd35c8b98893ce | [
"MIT"
] | 4 | 2015-01-22T13:16:09.000Z | 2015-01-25T21:55:49.000Z | Code/gpCoreTests/PCH.cpp | Manuzor/GamePhysics | 59c7ff68c6bb72a4b3503752debd35c8b98893ce | [
"MIT"
] | null | null | null | #include "gpCoreTests/PCH.h"
| 14.5 | 28 | 0.758621 | Manuzor |
1324255df92db7984e33a9a3ce6051104c484a93 | 1,450 | cpp | C++ | Terra/test/ThreadSafeRingBufferTest.cpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 68 | 2019-01-27T08:59:23.000Z | 2022-03-30T02:29:02.000Z | Terra/test/ThreadSafeRingBufferTest.cpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 11 | 2019-03-18T17:21:53.000Z | 2019-07-07T05:28:55.000Z | Terra/test/ThreadSafeRingBufferTest.cpp | leeairw/Terra | 9387c064b727633da34e3c2146a67b7fa9b59c62 | [
"MIT"
] | 8 | 2019-03-20T07:54:29.000Z | 2021-07-14T01:45:59.000Z | #include "catch2/catch.hpp"
#include "../misc/ThreadSafeRingBuffer.hpp"
TEST_CASE("Thread safe ring buffer test", "[ringbuffer]")
{
using ring_buffer_type = hwm::SingleChannelThreadSafeRingBuffer<int>;
using ec_type = hwm::ThreadSafeRingBufferErrorCode;
ring_buffer_type buffer(5);
REQUIRE(buffer.... | 30.208333 | 77 | 0.616552 | leeairw |
132588b1cd5cc8b754a8b9de047536ebc55b7702 | 4,971 | cpp | C++ | Testbed/Tests/RopeJoint.cpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 88 | 2017-07-13T18:12:40.000Z | 2022-03-23T03:43:11.000Z | Testbed/Tests/RopeJoint.cpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 388 | 2017-07-13T04:32:09.000Z | 2021-11-10T20:59:23.000Z | Testbed/Tests/RopeJoint.cpp | Hexlord/PlayRho | a3a91554cf9b267894d06a996c5799a0479c5b5f | [
"Zlib"
] | 18 | 2017-07-20T16:14:57.000Z | 2021-06-20T07:17:23.000Z | /*
* Original work Copyright (c) 2006-2010 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2021 Louis Langholtz https://github.com/louis-langholtz/PlayRho
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* a... | 43.99115 | 99 | 0.548582 | Hexlord |
132761b2d68aeb1348a47203fe7587bde099d306 | 10,357 | cpp | C++ | clang/test/SemaTemplate/concepts.cpp | colemancda/llvm-project | 9e9ab256a766cdb4fbafa887e0cfcd8dae675935 | [
"Apache-2.0"
] | null | null | null | clang/test/SemaTemplate/concepts.cpp | colemancda/llvm-project | 9e9ab256a766cdb4fbafa887e0cfcd8dae675935 | [
"Apache-2.0"
] | null | null | null | clang/test/SemaTemplate/concepts.cpp | colemancda/llvm-project | 9e9ab256a766cdb4fbafa887e0cfcd8dae675935 | [
"Apache-2.0"
] | null | null | null | // RUN: %clang_cc1 -std=c++20 -verify %s
namespace PR47043 {
template<typename T> concept True = true;
template<typename ...T> concept AllTrue1 = True<T>; // expected-error {{expression contains unexpanded parameter pack 'T'}}
template<typename ...T> concept AllTrue2 = (True<T> && ...);
static_assert(AllTrue2<... | 46.031111 | 197 | 0.641595 | colemancda |
132dc5a5ed8cfce9021ff176c0665bb41a131600 | 2,088 | cpp | C++ | ClientSide/Sources/Graphics/Managers/ShaderManager.cpp | vaskers5/RacingWorld | fd5fce286ba57429fc79430f57652f70feb0cc07 | [
"Apache-2.0"
] | 3 | 2020-12-16T22:04:55.000Z | 2021-05-10T13:30:37.000Z | ClientSide/Sources/Graphics/Managers/ShaderManager.cpp | vaskers5/RacingWorld | fd5fce286ba57429fc79430f57652f70feb0cc07 | [
"Apache-2.0"
] | null | null | null | ClientSide/Sources/Graphics/Managers/ShaderManager.cpp | vaskers5/RacingWorld | fd5fce286ba57429fc79430f57652f70feb0cc07 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 Vladimir Balun
*
* 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 ... | 40.153846 | 191 | 0.768678 | vaskers5 |
132e724e79c9c4905fb47a4920423a487b659d1b | 97 | cpp | C++ | 11654.cpp | devlphj/BaekjoonOJ | ecf715ece2a81bb69aa2e2b045e53acec01d3736 | [
"MIT"
] | null | null | null | 11654.cpp | devlphj/BaekjoonOJ | ecf715ece2a81bb69aa2e2b045e53acec01d3736 | [
"MIT"
] | null | null | null | 11654.cpp | devlphj/BaekjoonOJ | ecf715ece2a81bb69aa2e2b045e53acec01d3736 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
char ch; cin >> ch;
printf("%d", ch);
} | 12.125 | 20 | 0.608247 | devlphj |
1331767858e3385d48d0a75d847898603e803218 | 8,312 | cpp | C++ | Game/Source/GameObjects/FollowCamera.cpp | Crewbee/Space-Racer-OpenGL | 1b089a853d525095a0187cf35a5be9d0b728efc1 | [
"CC0-1.0"
] | null | null | null | Game/Source/GameObjects/FollowCamera.cpp | Crewbee/Space-Racer-OpenGL | 1b089a853d525095a0187cf35a5be9d0b728efc1 | [
"CC0-1.0"
] | null | null | null | Game/Source/GameObjects/FollowCamera.cpp | Crewbee/Space-Racer-OpenGL | 1b089a853d525095a0187cf35a5be9d0b728efc1 | [
"CC0-1.0"
] | null | null | null | #include "GamePCH.h"
#include "GameObjects/GameCamera.h"
#include "FollowCamera.h"
#include "GameObjects/GameObject.h"
#include "Game/Game.h"
#include "Scenes/Scene.h"
#include "Mesh/Mesh.h"
#include "Mesh/Material.h"
FollowCamera::FollowCamera(Scene* aScene, std::string aName, vec3 pos, vec3 rot, vec3 scale, vec3... | 36.13913 | 276 | 0.724254 | Crewbee |
133207e2acea33903469a8442102a7cb69f0b1ae | 1,114 | cpp | C++ | 2394 Checking an Alibi/main.cpp | sqc1999-oi/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | 1 | 2016-07-18T12:05:16.000Z | 2016-07-18T12:05:16.000Z | 2394 Checking an Alibi/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | 2394 Checking an Alibi/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <cstring>
using namespace std;
struct Edge { int From, To, Pow; };
int pos[101], dis[501];
bool inq[501];
vector<Edge> G[501];
int main()
{
ios::sync_with_stdio(false);
int f, p, c, m;
cin >> f >> p >> c >> m;
for (... | 20.62963 | 58 | 0.476661 | sqc1999-oi |
1332c28126b8f7490044d179447884293698ad4d | 15,382 | cpp | C++ | src/stringsearch/Test.cpp | jwiesler/strsearch | 1ce32c3ed3e9f0767dec4639ad83cc7d49972c98 | [
"MIT"
] | null | null | null | src/stringsearch/Test.cpp | jwiesler/strsearch | 1ce32c3ed3e9f0767dec4639ad83cc7d49972c98 | [
"MIT"
] | null | null | null | src/stringsearch/Test.cpp | jwiesler/strsearch | 1ce32c3ed3e9f0767dec4639ad83cc7d49972c98 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#pragma warning(push)
#pragma warning(disable: 26812)
#pragma warning(disable: 6319)
#include <catch2/catch.hpp>
#include "stringsearch/Search.hpp"
#include "stringsearch/SuffixSort.hpp"
#include "stringsearch/Utf16Le.hpp"
#include <numeric>
using namespace std::literals;
template<typena... | 34.722348 | 151 | 0.677675 | jwiesler |
13379cc756b8967df65d84392b8fe4c0c7c3ef72 | 755 | hxx | C++ | src/cxon/lib/std/variant.hxx | oknenavin/cxon | 29df5c162baf686dbc3ed5339d88cb61d63d4992 | [
"MIT"
] | 8 | 2019-04-04T20:42:23.000Z | 2021-12-11T17:52:48.000Z | src/cxon/lib/std/variant.hxx | oknenavin/cxon | 29df5c162baf686dbc3ed5339d88cb61d63d4992 | [
"MIT"
] | 1 | 2021-02-20T18:26:18.000Z | 2021-02-20T18:27:41.000Z | src/cxon/lib/std/variant.hxx | oknenavin/cxon | 29df5c162baf686dbc3ed5339d88cb61d63d4992 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2021 oknenavin.
// Licensed under the MIT license. See LICENSE file in the library root for full license information.
//
// SPDX-License-Identifier: MIT
#ifndef CXON_LIB_STD_VARIANT_HXX_
# define CXON_LIB_STD_VARIANT_HXX_
# if __cplusplus >= 201703L
# if defined(__has_include) && __has... | 29.038462 | 101 | 0.691391 | oknenavin |
1339d4d60377da3c33e4cb218ef3f70065b84d4c | 10,657 | cpp | C++ | native/src/ccomplete.cpp | invokr/ccomplete | 2d04122d124a7c6088cd7bbdf3a9373171f6792d | [
"Apache-2.0"
] | 1 | 2015-06-09T19:21:28.000Z | 2015-06-09T19:21:28.000Z | native/src/ccomplete.cpp | invokr/ccomplete | 2d04122d124a7c6088cd7bbdf3a9373171f6792d | [
"Apache-2.0"
] | null | null | null | native/src/ccomplete.cpp | invokr/ccomplete | 2d04122d124a7c6088cd7bbdf3a9373171f6792d | [
"Apache-2.0"
] | null | null | null | /**
* This file is part of cComplete (https://bitbucket.org/blue-dev/ccomplete).
*
* @copyright 2013, Robin Dietrich
* @license Apache 2.0 <http://www.apache.org/licenses/LICENSE-2.0>
* @license Public Domain <>
*/
#include <algorithm>
#include "ccomplete.hpp"
Persistent<FunctionTemplate> ccomplete::constructo... | 34.600649 | 167 | 0.62344 | invokr |
133a7cb2010e96f2174de632a3bd2ba9fc52817f | 13,098 | cc | C++ | dcmtk-master2/dcmfg/libsrc/fgfracon.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-master2/dcmfg/libsrc/fgfracon.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-master2/dcmfg/libsrc/fgfracon.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | /*
*
* Copyright (C) 2015-2019, Open Connections GmbH
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation are maintained by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmfg
*
* Author: ... | 38.410557 | 116 | 0.746908 | happymanx |
133ca375d12df6ebc7987264471d90a549c7799b | 164 | hpp | C++ | SandBox/include/sandbox/TestInputs.hpp | HadesD/HGEnzine | 722b22c1ac2a192c04cbf5729335d3ef7f50b5b0 | [
"MIT"
] | null | null | null | SandBox/include/sandbox/TestInputs.hpp | HadesD/HGEnzine | 722b22c1ac2a192c04cbf5729335d3ef7f50b5b0 | [
"MIT"
] | null | null | null | SandBox/include/sandbox/TestInputs.hpp | HadesD/HGEnzine | 722b22c1ac2a192c04cbf5729335d3ef7f50b5b0 | [
"MIT"
] | null | null | null | #ifndef __SANDBOX_TEST_INPUTS_HPP__
#define __SANDBOX_TEST_INPUTS_HPP__
namespace SandBox
{
class TestInputs
{
public:
TestInputs();
};
}
#endif
| 10.933333 | 35 | 0.719512 | HadesD |
13469ae7176d0dc643b11416fe2f7c3db013382b | 596 | cpp | C++ | src/common/Invariant.cpp | fogshot/relational-analysis | f954fc3637709e30e7844c2e28b5d32709e7f6b1 | [
"MIT"
] | 1 | 2018-11-26T00:51:43.000Z | 2018-11-26T00:51:43.000Z | src/common/Invariant.cpp | fogshot/relational-analysis | f954fc3637709e30e7844c2e28b5d32709e7f6b1 | [
"MIT"
] | null | null | null | src/common/Invariant.cpp | fogshot/relational-analysis | f954fc3637709e30e7844c2e28b5d32709e7f6b1 | [
"MIT"
] | 1 | 2018-11-30T17:50:40.000Z | 2018-11-30T17:50:40.000Z | #include "Invariant.h"
using std::string;
using std::shared_ptr;
using std::set;
namespace bra {
string Invariant::toString() {
string ret;
for (auto it = eqClass.cbegin(); it != eqClass.cend(); ++it) {
ret += (*it)->toString();
if (it != std::prev(eqClass.end())) {
... | 24.833333 | 94 | 0.548658 | fogshot |
13488cd2308e6a35fd7962fb8a328549afc4e176 | 14,131 | cpp | C++ | build/moc/moc_ParameterEditorController.cpp | UNIST-ESCL/UNIST_GCS | f61f0c12bbb028869e4494f507ea8ab52c8c79c2 | [
"Apache-2.0"
] | 1 | 2018-11-07T06:10:53.000Z | 2018-11-07T06:10:53.000Z | build/moc/moc_ParameterEditorController.cpp | UNIST-ESCL/UNIST_GCS | f61f0c12bbb028869e4494f507ea8ab52c8c79c2 | [
"Apache-2.0"
] | null | null | null | build/moc/moc_ParameterEditorController.cpp | UNIST-ESCL/UNIST_GCS | f61f0c12bbb028869e4494f507ea8ab52c8c79c2 | [
"Apache-2.0"
] | 1 | 2018-11-07T06:10:47.000Z | 2018-11-07T06:10:47.000Z | /****************************************************************************
** Meta object code from reading C++ file 'ParameterEditorController.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.3)
**
** WARNING! All changes made in this file will be lost!
*******************************************... | 40.84104 | 177 | 0.6214 | UNIST-ESCL |
134e4cc3096e01f714d944684b91cb869764e65f | 211 | hh | C++ | src/widgets/eraserToolButton.hh | izzyaxel/NovaPx | b5db202a585654e97c550425d1c0b9de4937bbd9 | [
"BSD-3-Clause"
] | null | null | null | src/widgets/eraserToolButton.hh | izzyaxel/NovaPx | b5db202a585654e97c550425d1c0b9de4937bbd9 | [
"BSD-3-Clause"
] | null | null | null | src/widgets/eraserToolButton.hh | izzyaxel/NovaPx | b5db202a585654e97c550425d1c0b9de4937bbd9 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <QtWidgets/QPushButton>
struct EraserToolButton : public QPushButton
{
Q_OBJECT
public:
EraserToolButton(QString name, QWidget *parent = nullptr);
public slots:
void selectTool();
};
| 15.071429 | 59 | 0.767773 | izzyaxel |
135252bd1ccd86d4ca9f0dad9e3361def58ef010 | 11,873 | cpp | C++ | remotefile/src/qrmf_proto.cpp | sander-visser/qt-apx | b658fc7d960198820489c18848250d4a26094cd3 | [
"MIT"
] | 1 | 2018-01-29T17:42:34.000Z | 2018-01-29T17:42:34.000Z | remotefile/src/qrmf_proto.cpp | sander-visser/qt-apx | b658fc7d960198820489c18848250d4a26094cd3 | [
"MIT"
] | 4 | 2018-04-27T06:43:57.000Z | 2019-09-07T10:07:43.000Z | remotefile/src/qrmf_proto.cpp | sander-visser/qt-apx | b658fc7d960198820489c18848250d4a26094cd3 | [
"MIT"
] | 2 | 2018-01-29T17:42:58.000Z | 2019-05-02T07:42:48.000Z | #include "qrmf_proto.h"
#include "qrmf_base.h"
#include <QtEndian>
#define RMF_MORE_BIT_IN_CHAR 0x40u
#define RMF_LONG_BIT_IN_CHAR 0x80u
#define RMF_MAX16_ADDRESS 0x3FFFu
#define RMF_MAX32_ADDRESS 0x3FFFFFFFu
namespace RemoteFile
{
/**
* @brief packs address and more_bit into buffer
... | 30.365729 | 139 | 0.547208 | sander-visser |
1352d7d966a1a156ad71dabeafd87b212825dea3 | 1,357 | cpp | C++ | imgui_hack/animfix.cpp | heavenly/versace_P2C | 26391d008e80fb0cb3cdf4476d5a762a77dad785 | [
"MIT"
] | 2 | 2020-11-13T15:21:16.000Z | 2021-05-19T19:30:41.000Z | imgui_hack/animfix.cpp | heavenly/versace_P2C | 26391d008e80fb0cb3cdf4476d5a762a77dad785 | [
"MIT"
] | null | null | null | imgui_hack/animfix.cpp | heavenly/versace_P2C | 26391d008e80fb0cb3cdf4476d5a762a77dad785 | [
"MIT"
] | 1 | 2022-03-26T11:08:15.000Z | 2022-03-26T11:08:15.000Z | #include "animfix.h"
void c_animfix::do_animfix()
{
//this shit is so fucking incorrect
return;
if (!g_EngineClient->IsInGame() || !g_EngineClient->IsConnected())
return;
if (!g_LocalPlayer)
return;
for (int i = 1; i < g_EngineClient->GetMaxClients(); i++)
{
C_BasePlayer* entity = static_cast<C_BasePlaye... | 31.55814 | 117 | 0.722918 | heavenly |
1353f6e76f18ae31f8f216289094c8eb7796e809 | 2,193 | cpp | C++ | mv_parallel_code_gen/mv_mult.cpp | harshshukla7/LAfF | ab2b2d06816788b2a64973298efbdc4a7f279c0b | [
"BSD-3-Clause"
] | 3 | 2017-12-19T17:09:57.000Z | 2018-01-17T19:49:00.000Z | mv_parallel_code_gen/mv_mult.cpp | harshshukla7/LAfF | ab2b2d06816788b2a64973298efbdc4a7f279c0b | [
"BSD-3-Clause"
] | null | null | null | mv_parallel_code_gen/mv_mult.cpp | harshshukla7/LAfF | ab2b2d06816788b2a64973298efbdc4a7f279c0b | [
"BSD-3-Clause"
] | 1 | 2018-12-21T14:24:04.000Z | 2018-12-21T14:24:04.000Z | #include "mv_mult.h"
void mv_mult(real y_out[SIZE],real x_in[SIZE])
{
short i, j;
float sum;
// matrix
real H[SIZE][SIZE] = {0.3027644007766090,0.8216291607353428,0.8384960449380805,0.5225903490807078,0.8938979664452533,0.5155117521407628,0.7833286498677127,0.8743671715876262,0.3200355774664969,0.839238240336195... | 99.681818 | 1,925 | 0.844505 | harshshukla7 |
1354609c0ad4a41299bc39d5fa0a9e9808b0f28a | 1,652 | cpp | C++ | src/rtc/Triangle.cpp | potato3d/rtrt | cac9f2f80d94bf60adf0bbd009f5076973ee10c6 | [
"MIT"
] | 2 | 2021-02-13T14:18:39.000Z | 2021-11-04T07:21:21.000Z | src/rtc/Triangle.cpp | potato3d/rtrt | cac9f2f80d94bf60adf0bbd009f5076973ee10c6 | [
"MIT"
] | null | null | null | src/rtc/Triangle.cpp | potato3d/rtrt | cac9f2f80d94bf60adf0bbd009f5076973ee10c6 | [
"MIT"
] | null | null | null | #include <rtc/Triangle.h>
namespace rtc {
void TriAccel::buildFrom( const rtu::float3& v0, const rtu::float3& v1, const rtu::float3& v2 )
{
// Compute edges and normal
rtu::float3 b = v2 - v0;
rtu::float3 c = v1 - v0;
rtu::float3 normal = c.cross( b );
// Determine projection dimension
unsigned int dim;
if( r... | 25.030303 | 110 | 0.568402 | potato3d |
13598d132b8e6ffafaf8afe7779aa2c5e787cd4c | 2,684 | cc | C++ | examples/eval.cc | nahratzah/monsoon_plus_plus | 789082078f1d474d38056518f66613ed1319181b | [
"BSD-2-Clause"
] | 1 | 2018-03-06T11:15:40.000Z | 2018-03-06T11:15:40.000Z | examples/eval.cc | nahratzah/monsoon_plus_plus | 789082078f1d474d38056518f66613ed1319181b | [
"BSD-2-Clause"
] | null | null | null | examples/eval.cc | nahratzah/monsoon_plus_plus | 789082078f1d474d38056518f66613ed1319181b | [
"BSD-2-Clause"
] | null | null | null | #include <monsoon/history/dir/dirhistory.h>
#include <monsoon/history/collect_history.h>
#include <monsoon/time_point.h>
#include <monsoon/time_range.h>
#include <monsoon/expression.h>
#include <monsoon/tags.h>
#include <monsoon/metric_value.h>
#include <monsoon/overload.h>
#include <iostream>
#include <memory>
#includ... | 31.952381 | 94 | 0.584203 | nahratzah |
135dfe205e14951d353407946d735ab6d750988e | 1,442 | hpp | C++ | pizmidi/midiNoteMap/midiNoteMap.hpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | null | null | null | pizmidi/midiNoteMap/midiNoteMap.hpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | null | null | null | pizmidi/midiNoteMap/midiNoteMap.hpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | 1 | 2021-01-26T12:25:01.000Z | 2021-01-26T12:25:01.000Z | /*-----------------------------------------------------------------------------
midiNoteMap
by Reuben Vinal
-----------------------------------------------------------------------------*/
#ifndef __MidiNoteMap_NOGUI_H
#define __MidiNoteMap_NOGUI_H
#include "../common/PizMidi.h"
enum
{
kChannel,
kReset... | 23.258065 | 107 | 0.634535 | nonameentername |
135f4901f12979370bc46435db51b249027bf486 | 9,528 | cpp | C++ | src_main/dx9sdk/Utilities/Source/DxViewer/Render.cpp | raxxor45/ValveSecurity | de512a0b596c0bc6b8dcd1bcf1d5309442757706 | [
"MIT"
] | 2 | 2019-09-16T02:42:38.000Z | 2020-04-24T19:52:46.000Z | src_main/dx9sdk/Utilities/Source/DxViewer/Render.cpp | raxxor45/ValveSecurity | de512a0b596c0bc6b8dcd1bcf1d5309442757706 | [
"MIT"
] | null | null | null | src_main/dx9sdk/Utilities/Source/DxViewer/Render.cpp | raxxor45/ValveSecurity | de512a0b596c0bc6b8dcd1bcf1d5309442757706 | [
"MIT"
] | 3 | 2018-10-22T11:45:38.000Z | 2020-04-24T19:52:47.000Z |
#include "d3d9.h"
#include "d3dx9.h"
#include "App.h"
#include "camera.h"
#include "render.h"
#include "resource.h"
#include "windows.h"
#pragma warning(disable: 4995)
#include <strsafe.h>
#include <shlwapi.h>
#include <shlobj.h>
#pragma warning(default: 4995)
const SHORT IbFSQ[] = {0, 1, 2, 2, 1, 3};
const FSQ_VE... | 41.973568 | 134 | 0.701092 | raxxor45 |
1362709a365b1896c80a2000156a76448833b50f | 409 | cpp | C++ | deploy/src/classification/ros/src/node.cpp | hamzaMahdi/bonnetal | f0a20223b8019da28a3f1b778aae80825beef701 | [
"MIT"
] | 231 | 2019-05-08T19:17:41.000Z | 2022-02-21T20:43:58.000Z | deploy/src/classification/ros/src/node.cpp | hamzaMahdi/bonnetal | f0a20223b8019da28a3f1b778aae80825beef701 | [
"MIT"
] | 32 | 2019-06-11T06:16:00.000Z | 2022-03-24T20:09:55.000Z | deploy/src/classification/ros/src/node.cpp | hamzaMahdi/bonnetal | f0a20223b8019da28a3f1b778aae80825beef701 | [
"MIT"
] | 59 | 2019-05-18T02:27:24.000Z | 2022-03-24T19:23:13.000Z | /* Copyright (c) 2019 Andres Milioto, Cyrill Stachniss, University of Bonn.
*
* This file is part of Bonnetal, and covered by the provided LICENSE file.
*
*/
#include <ros/ros.h>
#include "handler.hpp"
int main(int argc, char** argv) {
ros::init(argc, argv, "bonnetal_classification_node");
ros::NodeHandle no... | 20.45 | 76 | 0.679707 | hamzaMahdi |
136424ef7688bac1853dfbb23ce5270141993178 | 889 | cpp | C++ | codeforces/contests/educational/95-div2/g.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/contests/educational/95-div2/g.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/contests/educational/95-div2/g.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
#include <cpplib/utility/random.hpp>
int32_t main(){
desync();
int n;
cin >> n;
vector<uint> rng(n+1), freq(n+1);
for(int i=0; i<=n; ++i)
rng[i] = randint(-1e18, 1e18);
vector<queue<int> > lst3(n+1);
vector<uint> hsh(n+1);
map<uint, int> hsh_freq;
... | 20.674419 | 49 | 0.424072 | tysm |
136634dddcb66916081702864273d92eb7033f4b | 2,599 | hpp | C++ | src/3rd party/components/ElPack/Code/Source/ElHook.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 8 | 2016-01-25T20:18:51.000Z | 2019-03-06T07:00:04.000Z | src/3rd party/components/ElPack/Code/Source/ElHook.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | null | null | null | src/3rd party/components/ElPack/Code/Source/ElHook.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | // Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'ElHook.pas' rev: 6.00
#ifndef ElHookHPP
#define ElHookHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Classes.hpp> // Pascal u... | 34.197368 | 121 | 0.700269 | OLR-xray |
1369528fdbee363c076cb4c8f87724612e022b45 | 2,112 | cpp | C++ | Engine/Module/ModuleAnimation.cpp | mariofv/LittleEngine | 38ecfdf6041a24f304c679ee3b6b589ba2040e48 | [
"MIT"
] | 9 | 2020-04-05T07:44:38.000Z | 2022-01-12T02:07:14.000Z | Engine/Module/ModuleAnimation.cpp | mariofv/LittleEngine | 38ecfdf6041a24f304c679ee3b6b589ba2040e48 | [
"MIT"
] | 105 | 2020-03-13T19:12:23.000Z | 2020-12-02T23:41:15.000Z | Engine/Module/ModuleAnimation.cpp | mariofv/LittleEngine | 38ecfdf6041a24f304c679ee3b6b589ba2040e48 | [
"MIT"
] | 1 | 2021-04-24T16:11:49.000Z | 2021-04-24T16:11:49.000Z | #include "ModuleAnimation.h"
#include "Component/ComponentAnimation.h"
#include "Log/EngineLog.h"
#include "Main/Application.h"
#include "Main/GameObject.h"
#include "Module/ModuleResourceManager.h"
#include "Module/ModuleTime.h"
#include <Brofiler/Brofiler.h>
bool ModuleAnimation::Init()
{
APP_LOG_SECTION("******... | 19.376147 | 87 | 0.741004 | mariofv |
136b2bee839c0204d4fee1ebbdf8e679b9110fb4 | 2,655 | hpp | C++ | lib/fiber/parallelization_options.hpp | nicolas-chaulet/bempp | 0f5cc72e0e542437e787db5704978456b0ad9e35 | [
"BSL-1.0"
] | 2 | 2021-07-22T13:34:28.000Z | 2021-07-22T13:35:20.000Z | lib/fiber/parallelization_options.hpp | UCL/bempp | f768ec7d319c02d6e0142512fb61db0607cadf10 | [
"BSL-1.0"
] | null | null | null | lib/fiber/parallelization_options.hpp | UCL/bempp | f768ec7d319c02d6e0142512fb61db0607cadf10 | [
"BSL-1.0"
] | 1 | 2021-05-17T09:46:44.000Z | 2021-05-17T09:46:44.000Z | // Copyright (C) 2011-2012 by the BEM++ 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... | 36.875 | 80 | 0.73032 | nicolas-chaulet |
13716285361b3e9959a77c400b11461612d3df4a | 101,549 | cpp | C++ | SDK/ARKSurvivalEvolved_IceKaiju_Character_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_IceKaiju_Character_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_IceKaiju_Character_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_IceKaiju_Character_BP_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//------------------------------------------------------------... | 32.704992 | 315 | 0.753666 | 2bite |
1372cc725f4e0c309acdfef137518d1f7215c97d | 8,087 | cpp | C++ | game/src/Player.cpp | speedy0/SoldierNo1296 | bd379e9e21d6bab585c2b68c43016a1e5b6ffc59 | [
"MIT"
] | null | null | null | game/src/Player.cpp | speedy0/SoldierNo1296 | bd379e9e21d6bab585c2b68c43016a1e5b6ffc59 | [
"MIT"
] | null | null | null | game/src/Player.cpp | speedy0/SoldierNo1296 | bd379e9e21d6bab585c2b68c43016a1e5b6ffc59 | [
"MIT"
] | null | null | null | #pragma once
#include "pch.h"
#include "Player.h"
#include "engine/core/input.h"
#include "engine/key_codes.h"
Player::Player() : health(100), grenades(10), m_timer(0.f), m_speed(0.f) {
;
}
Player::~Player(){}
void Player::Initialise(engine::ref<engine::game_object> object) {
//We assign m_gbp to the object that w... | 28.079861 | 125 | 0.704588 | speedy0 |
138b6edc86a7f1f0e75933d20961f9fb566ae13c | 250 | hpp | C++ | sprout/operation/realign.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/operation/realign.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/operation/realign.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_OPERATION_REALIGN_HPP
#define SPROUT_OPERATION_REALIGN_HPP
#include <sprout/config.hpp>
#include <sprout/operation/fixed/realign.hpp>
#include <sprout/operation/fit/realign.hpp>
#endif // #ifndef SPROUT_OPERATION_REALIGN_HPP
| 27.777778 | 47 | 0.804 | osyo-manga |
138c057c7a9205f97a61554606e98bcb1f241764 | 93,507 | hpp | C++ | src/modules/cpu/kernel/noise_salt_and_pepper.hpp | fiona-gladwin/rpp | 1ddd9a3c4600cd7eefde61a6455079a12ea3e016 | [
"MIT"
] | null | null | null | src/modules/cpu/kernel/noise_salt_and_pepper.hpp | fiona-gladwin/rpp | 1ddd9a3c4600cd7eefde61a6455079a12ea3e016 | [
"MIT"
] | null | null | null | src/modules/cpu/kernel/noise_salt_and_pepper.hpp | fiona-gladwin/rpp | 1ddd9a3c4600cd7eefde61a6455079a12ea3e016 | [
"MIT"
] | null | null | null | #include "rppdefs.h"
#include "cpu/rpp_cpu_simd.hpp"
#include "cpu/rpp_cpu_common.hpp"
RppStatus salt_and_pepper_noise_u8_u8_host_tensor(Rpp8u *srcPtr,
RpptDescPtr srcDescPtr,
Rpp8u *dstPtr,
... | 56.774135 | 393 | 0.580449 | fiona-gladwin |
ca5b21e4e54c8dbb0b489d29867208881f19eb83 | 30,960 | hxx | C++ | include/decomposition_bdd_base.hxx | aabbas90/BDD | abab0c746a22ae04e8ca5ceacbec1d8f75b758bb | [
"BSD-2-Clause"
] | 4 | 2021-03-20T11:29:15.000Z | 2022-03-22T10:43:14.000Z | include/decomposition_bdd_base.hxx | aabbas90/BDD | abab0c746a22ae04e8ca5ceacbec1d8f75b758bb | [
"BSD-2-Clause"
] | null | null | null | include/decomposition_bdd_base.hxx | aabbas90/BDD | abab0c746a22ae04e8ca5ceacbec1d8f75b758bb | [
"BSD-2-Clause"
] | 3 | 2021-03-31T15:26:20.000Z | 2022-03-24T08:58:01.000Z | #pragma once
#include <vector>
#include <cmath>
#include <cassert>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <queue>
#include "decomposition_bdd_mma.h"
#include "bdd_variable.h"
#include "bdd_branch_node.h"
#include "bdd_mma_base.hxx"
#include "time_measure_util.h"
#include <iostream> ... | 47.484663 | 208 | 0.575097 | aabbas90 |
ca631887929f42718cf23bf83681b65eac11d605 | 21,360 | cpp | C++ | code/graphics/material.cpp | MageKing17/fs2open.github.com | 84b25b52d7d775af8a810d70e6beb6d20405b58c | [
"Unlicense"
] | 1 | 2015-04-24T12:37:48.000Z | 2015-04-24T12:37:48.000Z | code/graphics/material.cpp | JohnAFernandez/fs2open.github.com | c0bb5bc8eb640c3932aefd3dfad1fd4758571cff | [
"Unlicense"
] | 4 | 2015-03-30T20:33:03.000Z | 2020-06-03T08:48:35.000Z | code/graphics/material.cpp | JohnAFernandez/fs2open.github.com | c0bb5bc8eb640c3932aefd3dfad1fd4758571cff | [
"Unlicense"
] | 3 | 2020-10-16T03:34:06.000Z | 2021-07-08T21:20:07.000Z | #include "globalincs/pstypes.h"
#include "graphics/grinternal.h"
#include "graphics/2d.h"
#include "graphics/material.h"
#include "globalincs/systemvars.h"
#include "cmdline/cmdline.h"
gr_alpha_blend material_determine_blend_mode(int base_bitmap, bool blending)
{
if ( blending ) {
if ( base_bitmap >= 0 && bm_has_al... | 23.141928 | 122 | 0.763904 | MageKing17 |
ca631d5489b45e35a7d0e70fe1838c6a8668305c | 524 | hpp | C++ | TFD_Units/Classes/Weapons/Uniformes/UBACS.hpp | Heartbroken-Git/TFP_CORE | 2102248d548f2a2d69794f6c47932f9a998c5c3a | [
"RSA-MD",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | TFD_Units/Classes/Weapons/Uniformes/UBACS.hpp | Heartbroken-Git/TFP_CORE | 2102248d548f2a2d69794f6c47932f9a998c5c3a | [
"RSA-MD",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 37 | 2016-03-29T06:25:42.000Z | 2021-01-03T19:12:19.000Z | TFD_Units/Classes/Weapons/Uniformes/UBACS.hpp | Heartbroken-Git/TFP_CORE | 2102248d548f2a2d69794f6c47932f9a998c5c3a | [
"RSA-MD",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2017-12-13T23:10:05.000Z | 2019-03-16T11:55:34.000Z | //UBACS
class U_B_survival_uniform;
class TFD_UBACSCE_Palmes : U_B_survival_uniform {
_generalMacro = "U_B_survival_uniform";
scope = 2;
scopeCurator = 2;
scopeArsenal = 2;
displayName="Treillis UBACS de survie (Centre Europe)";
author = "Heartbroken";
hiddenSelections[]= {"camo"};
hiddenSelectionsTextures[]= {... | 27.578947 | 70 | 0.730916 | Heartbroken-Git |
ca67b4fef1fd34839744004caa22ab1f13cf6683 | 720 | cpp | C++ | example.cpp | ivere27/SimpleProcessSpawn | 76561ed062aa2fdc98191904d8b741c0fb5b367c | [
"MIT"
] | null | null | null | example.cpp | ivere27/SimpleProcessSpawn | 76561ed062aa2fdc98191904d8b741c0fb5b367c | [
"MIT"
] | null | null | null | example.cpp | ivere27/SimpleProcessSpawn | 76561ed062aa2fdc98191904d8b741c0fb5b367c | [
"MIT"
] | null | null | null | #include <iostream>
#include "SimpleProcessSpawn.hpp"
using namespace std;
using namespace spawn;
int main() {
uv_loop_t* uv_loop = uv_default_loop();
char* args[3];
args[0] = (char*)"./child";
args[1] = (char*)"200";
args[2] = NULL;
SimpleProcessSpawn process(uv_loop, args);
process.timeout = 1000;
... | 24.827586 | 58 | 0.622222 | ivere27 |
ca68319d5c6fa737252126655564de06c45003e0 | 8,948 | cpp | C++ | examples/boards/ek-tm4c123gxl/robot/test/tests/utils/stateMachineTest.cpp | marcindev/balancing_robot | b7598fb52acb22c3d6a8af667905e0c6130bd29a | [
"BSD-3-Clause"
] | null | null | null | examples/boards/ek-tm4c123gxl/robot/test/tests/utils/stateMachineTest.cpp | marcindev/balancing_robot | b7598fb52acb22c3d6a8af667905e0c6130bd29a | [
"BSD-3-Clause"
] | null | null | null | examples/boards/ek-tm4c123gxl/robot/test/tests/utils/stateMachineTest.cpp | marcindev/balancing_robot | b7598fb52acb22c3d6a8af667905e0c6130bd29a | [
"BSD-3-Clause"
] | 1 | 2019-07-24T13:58:07.000Z | 2019-07-24T13:58:07.000Z | #include "gtest/gtest.h"
#include <stdlib.h>
#include "gmock/gmock.h"
//#ifndef _UT
//#define _UT
//#endif
extern "C" {
#include "stateMachine.c"
}
#include "graphMock.h"
#include "testFixture.h"
#include <vector>
using ::testing::_;
using ::testing::Return;
using ::testing::InSequence;
using ::testing::Invoke;
names... | 25.712644 | 92 | 0.729325 | marcindev |
ca6ab6e81819b830bb1a8a8b7a9f70e87a2da57e | 3,846 | cpp | C++ | FEBioSource2.9/FEBioMech/FEMembraneMaterial.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-08-24T08:37:21.000Z | 2021-08-24T08:37:21.000Z | FEBioSource2.9/FEBioMech/FEMembraneMaterial.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | null | null | null | FEBioSource2.9/FEBioMech/FEMembraneMaterial.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-03-15T08:22:06.000Z | 2021-03-15T08:22:06.000Z | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2019 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... | 31.52459 | 82 | 0.561882 | wzaylor |
ca6dee8ca0706d379d4cb881cfee4e78e5bf1e89 | 1,150 | cpp | C++ | asemic/src/asemic/AsemicN4.cpp | npisanti/np-sketches | 256203d73c8bedecc106157841e048731a7ab50a | [
"MIT"
] | 1 | 2019-05-08T17:01:46.000Z | 2019-05-08T17:01:46.000Z | asemic/src/asemic/AsemicN4.cpp | npisanti/np-sketches | 256203d73c8bedecc106157841e048731a7ab50a | [
"MIT"
] | null | null | null | asemic/src/asemic/AsemicN4.cpp | npisanti/np-sketches | 256203d73c8bedecc106157841e048731a7ab50a | [
"MIT"
] | null | null | null |
#include "AsemicN4.h"
void np::AsemicN4::setupGlyph( int gh ) {
cx = gh*0.5f;
cy = gh*0.5f;
dim = gh * 0.4f;
tilde.allocate(gh, gh);
tilde.begin();
ofClear( 0, 0, 0, 0 );
static const float h = 0.8;
float c0x = cx - dim*0.5f;
float c1x ... | 18.548387 | 70 | 0.43913 | npisanti |
ca73e98b868355fe4657b4d8b9bcbf9424c8c9a8 | 1,986 | hpp | C++ | core/src/api/Block.hpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 92 | 2016-11-13T01:28:34.000Z | 2022-03-25T01:11:37.000Z | core/src/api/Block.hpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 242 | 2016-11-28T11:13:09.000Z | 2022-03-04T13:02:53.000Z | core/src/api/Block.hpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 91 | 2017-06-20T10:35:28.000Z | 2022-03-09T14:15:40.000Z | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from wallet.djinni
#ifndef DJINNI_GENERATED_BLOCK_HPP
#define DJINNI_GENERATED_BLOCK_HPP
#include <chrono>
#include <cstdint>
#include <iostream>
#include <string>
#include <utility>
namespace ledger { namespace core { namespace api {
/** Struc... | 27.205479 | 70 | 0.636959 | RomanWlm |
ca748018a87c7b0fdc1c9d4c18203d4a66d827f4 | 1,275 | cpp | C++ | Resources/Data_Structures/Priority Queue.cpp | MAXI0008/Kattis-Problems | ff6ec752b741a56fc37a993c528fc925ca302cc8 | [
"MIT"
] | 3 | 2019-04-01T05:38:09.000Z | 2021-11-17T11:43:20.000Z | Resources/Data_Structures/Priority Queue.cpp | MAXI0008/Algorithms-Practices | ff6ec752b741a56fc37a993c528fc925ca302cc8 | [
"MIT"
] | null | null | null | Resources/Data_Structures/Priority Queue.cpp | MAXI0008/Algorithms-Practices | ff6ec752b741a56fc37a993c528fc925ca302cc8 | [
"MIT"
] | null | null | null | // Priority queues are a type of container adapters, specifically designed such that the first element of the queue is the greatest of all elements in the queue and elements are in non decreasing order(hence we can see that each element of the queue has a priority{fixed order}).
// The functions associated with prior... | 26.5625 | 279 | 0.606275 | MAXI0008 |
ca76fd1caf47d81109d469d364ece94a0d1344f7 | 155 | hpp | C++ | lib/Throttle.hpp | artm/vision-ui-skeleton | 0197c2aa532ee3479f0bd8f43ad819ec91b11c9a | [
"BSD-4-Clause"
] | 5 | 2018-02-07T08:16:07.000Z | 2020-09-01T12:20:18.000Z | lib/Throttle.hpp | artm/vision-ui-skeleton | 0197c2aa532ee3479f0bd8f43ad819ec91b11c9a | [
"BSD-4-Clause"
] | null | null | null | lib/Throttle.hpp | artm/vision-ui-skeleton | 0197c2aa532ee3479f0bd8f43ad819ec91b11c9a | [
"BSD-4-Clause"
] | 2 | 2018-11-22T09:20:26.000Z | 2020-02-15T03:21:47.000Z | #pragma once
namespace QArtm {
class Throttle : public QTime {
public:
Throttle( int ms );
bool mayI();
protected:
int m_throttleTime;
};
}
| 11.071429 | 31 | 0.651613 | artm |
ca79aeebb0954d0ebd31392f0b4fbe3edb877120 | 2,282 | cpp | C++ | libs/fusion/test/algorithm/for_each.cpp | Talustus/boost_src | ffe074de008f6e8c46ae1f431399cf932164287f | [
"BSL-1.0"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | third_party/boost/libs/fusion/test/algorithm/for_each.cpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 1 | 2019-04-04T18:00:00.000Z | 2019-04-04T18:00:00.000Z | third_party/boost/libs/fusion/test/algorithm/for_each.cpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2018 Kohei Takahashi
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.t... | 27.166667 | 82 | 0.531113 | Talustus |
ca7abdf41420f2991cef72a0d8b83339ddb50cab | 790 | hpp | C++ | lib/inc/internal/util/bsd/scoped_ifaddrs.hpp | whopper/facter | f034727b92992f6f56a76ae1c925e668a7b07161 | [
"Apache-2.0"
] | 1 | 2015-03-27T10:33:40.000Z | 2015-03-27T10:33:40.000Z | lib/inc/internal/util/bsd/scoped_ifaddrs.hpp | ferventcoder/facter | f034727b92992f6f56a76ae1c925e668a7b07161 | [
"Apache-2.0"
] | null | null | null | lib/inc/internal/util/bsd/scoped_ifaddrs.hpp | ferventcoder/facter | f034727b92992f6f56a76ae1c925e668a7b07161 | [
"Apache-2.0"
] | null | null | null | /**
* @file
* Declares the scoped ifaddrs resource.
*/
#pragma once
#include <facter/util/scoped_resource.hpp>
#include <ifaddrs.h>
namespace facter { namespace util { namespace bsd {
/**
* Represents a scoped ifaddrs pointer that automatically is freed when it goes out of scope.
*/
struct scoped... | 23.235294 | 97 | 0.620253 | whopper |
ca81da0bec859b2240607fa9b9945346dad561b5 | 1,062 | cpp | C++ | include/html/tr.cpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | 1 | 2020-07-11T14:53:38.000Z | 2020-07-11T14:53:38.000Z | include/html/tr.cpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | 1 | 2020-07-04T16:45:49.000Z | 2020-07-04T16:45:49.000Z | include/html/tr.cpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | null | null | null | #include "tr.hpp"
namespace rhizome {
namespace html {
Tr::Tr() {
}
Tr::~Tr() {
}
void
Tr::write_to( ostream &out, size_t indent ) const {
string spacer(indent*4,' ');
out << spacer << "<tr>\n";
for(size_t i=0; i<cells.size(); ... | 20.823529 | 71 | 0.422787 | nathanmullenax83 |
ca82666db3e63d197f6d6e1427a65d053c69d8e0 | 5,684 | cpp | C++ | AZ3166/src/variants/MXChip_AZ3166/variant.cpp | douglas-johnston/devkit-sdk | 4c545f2d53f20b86d86dfc113c1a2acf111f078e | [
"MIT"
] | null | null | null | AZ3166/src/variants/MXChip_AZ3166/variant.cpp | douglas-johnston/devkit-sdk | 4c545f2d53f20b86d86dfc113c1a2acf111f078e | [
"MIT"
] | null | null | null | AZ3166/src/variants/MXChip_AZ3166/variant.cpp | douglas-johnston/devkit-sdk | 4c545f2d53f20b86d86dfc113c1a2acf111f078e | [
"MIT"
] | null | null | null | /*
Copyright (c) 2011 Arduino. All right reserved.
This library 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 Foundation; either
version 2.1 of the License, or (at your option) any later version.
This ... | 58.597938 | 105 | 0.605911 | douglas-johnston |
ca867f727d569692ef57a68f52ece1facc41901e | 1,437 | hpp | C++ | src/graphics/gui/button.hpp | Harrand/Engine-A | 995fff8a7a07ac496c368a235659e72107b6b6cb | [
"Apache-2.0"
] | null | null | null | src/graphics/gui/button.hpp | Harrand/Engine-A | 995fff8a7a07ac496c368a235659e72107b6b6cb | [
"Apache-2.0"
] | null | null | null | src/graphics/gui/button.hpp | Harrand/Engine-A | 995fff8a7a07ac496c368a235659e72107b6b6cb | [
"Apache-2.0"
] | null | null | null | #ifndef TOPAZ_BUTTON_HPP
#define TOPAZ_BUTTON_HPP
#include "graphics/gui/widget.hpp"
#include "graphics/gui/display.hpp"
#include "utility/functional.hpp"
class Button : public GUIWidget
{
public:
Button(Vector2I position_local_pixel_space, Vector2I dimensions_local_pixel_space, Font font, Vector3F text_colour, s... | 42.264706 | 286 | 0.773834 | Harrand |
ca87b178b7694bca30aafe14b1740c6d2fd40494 | 1,069 | hpp | C++ | libraries/plugins/apis/condenser_api/include/crea/plugins/condenser_api/condenser_api_plugin.hpp | fgallaire/crea | 4b06773487f3cefc2442aa59a959952de238f040 | [
"MIT"
] | 6 | 2018-10-08T09:30:39.000Z | 2021-08-16T00:16:49.000Z | libraries/plugins/apis/condenser_api/include/crea/plugins/condenser_api/condenser_api_plugin.hpp | fgallaire/crea | 4b06773487f3cefc2442aa59a959952de238f040 | [
"MIT"
] | 1 | 2019-03-10T08:07:46.000Z | 2019-04-03T19:32:08.000Z | libraries/plugins/apis/condenser_api/include/crea/plugins/condenser_api/condenser_api_plugin.hpp | fgallaire/crea | 4b06773487f3cefc2442aa59a959952de238f040 | [
"MIT"
] | 4 | 2019-02-25T03:56:50.000Z | 2020-03-20T07:03:35.000Z | #pragma once
#include <crea/plugins/json_rpc/json_rpc_plugin.hpp>
#include <crea/plugins/database_api/database_api_plugin.hpp>
#include <crea/plugins/block_api/block_api_plugin.hpp>
#define CREA_CONDENSER_API_PLUGIN_NAME "condenser_api"
namespace crea { namespace plugins { namespace condenser_api {
using namespace a... | 33.40625 | 122 | 0.785781 | fgallaire |
ca95dbd124e3ec9b5d2e5a91b481421aa1dddfb1 | 2,191 | cc | C++ | INET_EC/linklayer/ieee80211/mac/originator/OriginatorAckPolicy.cc | LarryNguyen/ECSim- | 0d3f848642e49845ed7e4c7b97dd16bd3d65ede5 | [
"Apache-2.0"
] | 12 | 2020-11-30T08:04:23.000Z | 2022-03-23T11:49:26.000Z | INET_EC/linklayer/ieee80211/mac/originator/OriginatorAckPolicy.cc | LarryNguyen/ECSim- | 0d3f848642e49845ed7e4c7b97dd16bd3d65ede5 | [
"Apache-2.0"
] | 1 | 2021-01-26T10:49:56.000Z | 2021-01-31T16:58:52.000Z | INET_EC/linklayer/ieee80211/mac/originator/OriginatorAckPolicy.cc | LarryNguyen/ECSim- | 0d3f848642e49845ed7e4c7b97dd16bd3d65ede5 | [
"Apache-2.0"
] | 8 | 2021-03-15T02:05:51.000Z | 2022-03-21T13:14:02.000Z | //
// Copyright (C) 2016 OpenSim Ltd.
//
// This program 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 Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... | 39.125 | 165 | 0.749886 | LarryNguyen |
ca95dc4c600d3eeb3d0fd9e29c9c0000178b8eb3 | 6,609 | cpp | C++ | global/src/MathsCustomFunctions.cpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 100 | 2015-02-23T08:32:23.000Z | 2022-02-25T11:39:26.000Z | global/src/MathsCustomFunctions.cpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 11 | 2017-06-14T13:48:43.000Z | 2022-03-10T10:42:07.000Z | global/src/MathsCustomFunctions.cpp | mdp19pn/Chaste | f7b6bafa64287d567125b587b29af6d8bd7aeb90 | [
"Apache-2.0",
"BSD-3-Clause"
] | 53 | 2015-02-23T13:52:44.000Z | 2022-02-28T18:57:35.000Z | /*
Copyright (c) 2005-2021, 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... | 27.886076 | 118 | 0.620669 | mdp19pn |
ca95ec2331b2734db990295ae3e1db4721b3a202 | 2,886 | cpp | C++ | src/shared/uniforms.cpp | lukaswagner/l3d | aed51a0ce5c269421283981aa650a2c9f0ea6350 | [
"MIT"
] | null | null | null | src/shared/uniforms.cpp | lukaswagner/l3d | aed51a0ce5c269421283981aa650a2c9f0ea6350 | [
"MIT"
] | null | null | null | src/shared/uniforms.cpp | lukaswagner/l3d | aed51a0ce5c269421283981aa650a2c9f0ea6350 | [
"MIT"
] | null | null | null | #include "uniforms.hpp"
#include <algorithm>
#include <glbinding-aux/meta.h>
#include "logUtil.hpp"
INIT_CTX
std::regex uniformArrayRegex("(.*)\\[.*\\]");
std::string uniformCommentRegexStart =
// comment between // (with optional space) and newline
// uniform def starts with optional layout spec, keyword ... | 26.722222 | 77 | 0.585932 | lukaswagner |
ca987f17d8dd3ecb34ea88d72408e44356231ca2 | 1,399 | cpp | C++ | main.cpp | Ybalrid/PPD-BV | e750746c2d182dbfaa47a3512f41c551f9051fd4 | [
"MIT"
] | null | null | null | main.cpp | Ybalrid/PPD-BV | e750746c2d182dbfaa47a3512f41c551f9051fd4 | [
"MIT"
] | null | null | null | main.cpp | Ybalrid/PPD-BV | e750746c2d182dbfaa47a3512f41c551f9051fd4 | [
"MIT"
] | null | null | null | #include <Annwvyn.h>
using namespace Annwvyn;
AnnMain()
{
AnnEngine* GameEngine = new AnnEngine("PPD Balade Virtuelle");
//Confort adjustement : reduce Body turn speed
GameEngine->getBodyParams()->turnSpeed *=0.7f;
GameEngine->getBodyParams()->Position = Ogre::Vector3(-15.5, 0, -0.5);
GameE... | 26.396226 | 74 | 0.624732 | Ybalrid |
ca98eb30be66a8dd99363bcd933359326a366c79 | 1,451 | cpp | C++ | 23/02.cpp | philipplenk/adventofcode20 | 5a9d8b42c4c43bfa32d4f43c4c6ba6de357e7a81 | [
"BSD-2-Clause"
] | null | null | null | 23/02.cpp | philipplenk/adventofcode20 | 5a9d8b42c4c43bfa32d4f43c4c6ba6de357e7a81 | [
"BSD-2-Clause"
] | null | null | null | 23/02.cpp | philipplenk/adventofcode20 | 5a9d8b42c4c43bfa32d4f43c4c6ba6de357e7a81 | [
"BSD-2-Clause"
] | null | null | null | #include <algorithm>
#include <array>
#include <iostream>
#include <vector>
#include <cstddef>
#include <cstdint>
int main(int argc, char* argv[])
{
struct forward_list_element
{
std::uint32_t next;
};
std::vector<forward_list_element> list;
list.resize(1000000);
for(std::size_t i=0;i<list.size()-1;++i)
... | 22.671875 | 83 | 0.657478 | philipplenk |
ca99d36df0380d592aceb0aa0714001c02025dc4 | 10,135 | hpp | C++ | include/System/Net/WebUtility.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Net/WebUtility.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Net/WebUtility.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Net.Con... | 60.327381 | 205 | 0.738826 | Fernthedev |
ca99ef474e8520c29c5ec8863787b887217a74a8 | 2,802 | cpp | C++ | osquery/tables/events/darwin/file_events.cpp | poppyseedplehzr/osquery | c298718c2a6569ff1503fb0bc6f9d3ef7155f034 | [
"BSD-3-Clause"
] | 1 | 2016-08-05T00:17:46.000Z | 2016-08-05T00:17:46.000Z | osquery/tables/events/darwin/file_events.cpp | poppyseedplehzr/osquery | c298718c2a6569ff1503fb0bc6f9d3ef7155f034 | [
"BSD-3-Clause"
] | null | null | null | osquery/tables/events/darwin/file_events.cpp | poppyseedplehzr/osquery | c298718c2a6569ff1503fb0bc6f9d3ef7155f034 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 28.591837 | 80 | 0.686652 | poppyseedplehzr |
ca9e9c037ee0a4d8938f03e5368ee331450d56f3 | 5,138 | cc | C++ | ev/source/common/api/os_sys_calls_impl.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 91 | 2018-11-24T05:33:58.000Z | 2022-03-16T05:58:05.000Z | ev/source/common/api/os_sys_calls_impl.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 11 | 2019-06-02T23:50:17.000Z | 2022-02-04T23:58:56.000Z | ev/source/common/api/os_sys_calls_impl.cc | sergiorr/yastack | 17cdc12a52ea5869f429aa8ec421c3d1d25b32e7 | [
"Apache-2.0"
] | 18 | 2018-11-24T10:35:29.000Z | 2021-04-22T07:22:10.000Z | #include "common/api/os_sys_calls_impl.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cstdint>
#include "ff_api.h"
#include <envoy/network/address.h>
namespace Envoy {
namespace Api {
SysCallIntResult OsSysCallsImpl::bind(int64_t sockfd, const sockaddr* addr, socklen_t a... | 26.484536 | 109 | 0.626703 | sergiorr |
caa1e0155d74bca29e7684f3f4bd02ec24cab04a | 5,874 | cpp | C++ | DungeonBuilder/text_editor.cpp | jackmott/dungeonbuilder | c5f0d6bd42dce14002a8ad56f82958a92dbdc6ef | [
"MIT"
] | 14 | 2016-05-19T23:09:35.000Z | 2021-12-21T15:42:25.000Z | DungeonBuilder/text_editor.cpp | jackmott/dungeonbuilder | c5f0d6bd42dce14002a8ad56f82958a92dbdc6ef | [
"MIT"
] | 1 | 2016-05-27T13:55:48.000Z | 2016-05-27T13:55:48.000Z | DungeonBuilder/text_editor.cpp | jackmott/dungeonbuilder | c5f0d6bd42dce14002a8ad56f82958a92dbdc6ef | [
"MIT"
] | 2 | 2016-05-27T13:23:56.000Z | 2019-04-30T16:12:57.000Z | #include "text_editor.h"
#include "string_constants.h"
#include "printutils.h"
#include "utils.h"
using namespace std;
extern GlobalState globalState;
void TextEditor::clearWindows()
{
x = 0;
y = 0;
done = 0;
delwin(headerWindow);
delwin(mainWindow);
clear();
}
void TextEditor::resetWindows()
{
headerWindow =... | 15.498681 | 89 | 0.575247 | jackmott |
caa482eee39027e57ae9f047c1d6324d9f38f61b | 1,534 | cc | C++ | base/deps/mimalloc/scoped_dump_mimalloc_main_stats.cc | dimhotepus/whitebox | 03902b15b03ae0bfe6db5dc12d91ce49c576ac97 | [
"BSD-3-Clause"
] | 1 | 2022-01-16T15:01:42.000Z | 2022-01-16T15:01:42.000Z | base/deps/mimalloc/scoped_dump_mimalloc_main_stats.cc | dimhotepus/whitebox | 03902b15b03ae0bfe6db5dc12d91ce49c576ac97 | [
"BSD-3-Clause"
] | 5 | 2021-08-11T22:04:28.000Z | 2022-01-10T11:18:56.000Z | base/deps/mimalloc/scoped_dump_mimalloc_main_stats.cc | dimhotepus/whitebox | 03902b15b03ae0bfe6db5dc12d91ce49c576ac97 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2021 The WhiteBox Authors. All rights reserved.
// Use of this source code is governed by a 3-Clause BSD license that can be
// found in the LICENSE file.
//
// Mimalloc main statistics / process info printer.
#include "base/deps/mimalloc/scoped_dump_mimalloc_main_stats.h"
#include "base/deps/g3log/... | 24.741935 | 78 | 0.706649 | dimhotepus |
caa694a4e0e463fc5f9ff8f4f1bdda1e4c559b67 | 891 | cpp | C++ | CPUBloom/ControlsDlg.cpp | shaovoon/vcpp_parallel_loops | 93a45f640073cfec76b1fd8ca568470230b2e735 | [
"MIT"
] | 2 | 2018-11-19T12:54:17.000Z | 2020-01-11T02:43:35.000Z | CPUBloom/ControlsDlg.cpp | shaovoon/vcpp_parallel_loops | 93a45f640073cfec76b1fd8ca568470230b2e735 | [
"MIT"
] | null | null | null | CPUBloom/ControlsDlg.cpp | shaovoon/vcpp_parallel_loops | 93a45f640073cfec76b1fd8ca568470230b2e735 | [
"MIT"
] | 1 | 2020-01-11T02:43:37.000Z | 2020-01-11T02:43:37.000Z | // ControlsDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CPUBloom.h"
#include "ControlsDlg.h"
#include "afxdialogex.h"
// CControlsDlg dialog
IMPLEMENT_DYNAMIC(CControlsDlg, CDialogEx)
CControlsDlg::CControlsDlg(CWnd* pParent /*=NULL*/)
: CDialogEx(CControlsDlg::IDD, pParent),
m_pWndTarget(NULL)... | 15.910714 | 63 | 0.737374 | shaovoon |
caa81c07c638726caf9f9f5b0f98e22b1cfc19f1 | 2,234 | cpp | C++ | test/gui/bitmap/bitmap_test.cpp | ShigotoShoujin/shigoto.shoujin | 165bac0703ffdec544ab275af25dd3504529a565 | [
"MIT"
] | 1 | 2021-10-31T04:29:16.000Z | 2021-10-31T04:29:16.000Z | test/gui/bitmap/bitmap_test.cpp | ShigotoShoujin/shigoto.shoujin | 165bac0703ffdec544ab275af25dd3504529a565 | [
"MIT"
] | null | null | null | test/gui/bitmap/bitmap_test.cpp | ShigotoShoujin/shigoto.shoujin | 165bac0703ffdec544ab275af25dd3504529a565 | [
"MIT"
] | null | null | null | #include <shoujin/assert.hpp>
#include <shoujin/gui.hpp>
#include "CppUnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace shoujin::gui;
using namespace shoujin::gui::bitmap;
TEST_CLASS(BitmapTest) {
public:
TEST_METHOD_CLEANUP(TestCleanup)
{
shoujin::assert::OnErrorEvent = ... | 20.495413 | 74 | 0.678156 | ShigotoShoujin |
caa828e77ae29d35b0d2a4d168d8134d3b3952b7 | 853 | hpp | C++ | WinFelix/WinAudioOut.hpp | zoltraks/Felix | c3391517df5bbc660782c522c4bdf9f6ed387f5a | [
"MIT"
] | null | null | null | WinFelix/WinAudioOut.hpp | zoltraks/Felix | c3391517df5bbc660782c522c4bdf9f6ed387f5a | [
"MIT"
] | null | null | null | WinFelix/WinAudioOut.hpp | zoltraks/Felix | c3391517df5bbc660782c522c4bdf9f6ed387f5a | [
"MIT"
] | null | null | null | #pragma once
#include "Utility.hpp"
#include "wav.h"
class Core;
class IEncoder;
class WinAudioOut
{
public:
WinAudioOut();
~WinAudioOut();
void setEncoder( std::shared_ptr<IEncoder> pEncoder );
void fillBuffer( std::shared_ptr<Core> instance, int64_t renderingTime );
void setWavOut( std::filesystem::pat... | 19.837209 | 79 | 0.75381 | zoltraks |
caae7d7d502d8b0c9426b5ceb8b3afeeffa911f9 | 408 | hpp | C++ | src/color/generic/constant/beige.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | null | null | null | src/color/generic/constant/beige.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | null | null | null | src/color/generic/constant/beige.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 1 | 2022-03-03T07:55:24.000Z | 2022-03-03T07:55:24.000Z | #ifndef color_generic_constant_beige
#define color_generic_constant_beige
// ::color::constant::beige( c )
#include "./base.hpp"
namespace color
{
namespace constant
{
namespace _internal
{
struct beige_type{};
}
using beige_type = ::color::constant::base< ::color::constant::_internal... | 17 | 92 | 0.661765 | 3l0w |
caaede162cba0c487ae503b4c75c455a0fa7af0d | 14,248 | cpp | C++ | src/gui/gui_document.cpp | grotius-cnc/mayo | 8f8932588522a937d4698f244a6703c781c9fda1 | [
"BSD-2-Clause"
] | 1 | 2021-06-17T12:48:50.000Z | 2021-06-17T12:48:50.000Z | src/gui/gui_document.cpp | grotius-cnc/mayo | 8f8932588522a937d4698f244a6703c781c9fda1 | [
"BSD-2-Clause"
] | null | null | null | src/gui/gui_document.cpp | grotius-cnc/mayo | 8f8932588522a937d4698f244a6703c781c9fda1 | [
"BSD-2-Clause"
] | 1 | 2021-06-17T12:48:51.000Z | 2021-06-17T12:48:51.000Z | /****************************************************************************
** Copyright (c) 2020, Fougue Ltd. <http://www.fougue.pro>
** All rights reserved.
** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt
****************************************************************************/
#includ... | 35.442786 | 112 | 0.697923 | grotius-cnc |
cab4fceae9eacbd7c5dab8700e7126975a4eea64 | 3,416 | cpp | C++ | Stars45/TerrainHaze.cpp | RogerioY/starshatter-open | 3a507e08b1d4e5970b27401a7e6517570d529400 | [
"BSD-3-Clause"
] | null | null | null | Stars45/TerrainHaze.cpp | RogerioY/starshatter-open | 3a507e08b1d4e5970b27401a7e6517570d529400 | [
"BSD-3-Clause"
] | 4 | 2019-09-05T22:22:57.000Z | 2021-03-28T02:09:24.000Z | Stars45/TerrainHaze.cpp | RogerioY/starshatter-open | 3a507e08b1d4e5970b27401a7e6517570d529400 | [
"BSD-3-Clause"
] | null | null | null | /* Starshatter OpenSource Distribution
Copyright (c) 1997-2004, Destroyer Studios LLC.
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 t... | 29.704348 | 87 | 0.593677 | RogerioY |
cabb91d26f2095365287f45378dcf64416f16d15 | 202 | cpp | C++ | src/stan/lang/grammars/program_grammar_inst.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | src/stan/lang/grammars/program_grammar_inst.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/stan/lang/grammars/program_grammar_inst.cpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T11:36:09.000Z | 2020-07-14T11:36:09.000Z | #include <stan/lang/grammars/program_grammar_def.hpp>
#include <stan/lang/grammars/iterator_typedefs.hpp>
namespace stan {
namespace lang {
template struct program_grammar<pos_iterator_t>;
}
}
| 22.444444 | 53 | 0.777228 | drezap |
cabd949b6d5e289925887e10f2d645490e4303ae | 3,605 | cpp | C++ | Exec/RegTests/EB-C10/prob.cpp | nataraj2/PeleC | f2df454d51bb3f3b052a992903f257f9a008449e | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-07-01T06:30:27.000Z | 2021-07-01T06:30:27.000Z | Exec/RegTests/EB-C10/prob.cpp | adityaIyerramesh98/PeleC | f3070ed78498d74a4bc0833ed34d431e72573028 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Exec/RegTests/EB-C10/prob.cpp | adityaIyerramesh98/PeleC | f3070ed78498d74a4bc0833ed34d431e72573028 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "prob.H"
void
pc_prob_close()
{
}
extern "C" {
void
amrex_probinit(
const int* /*init*/,
const int* /*name*/,
const int* /*namelen*/,
const amrex_real* problo,
const amrex_real* probhi)
{
// Parse params
{
amrex::ParmParse pp("prob");
pp.query("p", PeleC::h_prob_parm_device->p);
pp.... | 30.294118 | 80 | 0.667961 | nataraj2 |
cabea4b3e4600510ee872f7d3798487175cbf070 | 42,283 | cc | C++ | src/Distributed/VoronoiRedistributeNodes.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 1 | 2020-10-21T01:56:55.000Z | 2020-10-21T01:56:55.000Z | src/Distributed/VoronoiRedistributeNodes.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Distributed/VoronoiRedistributeNodes.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | //---------------------------------Spheral++----------------------------------//
// VoronoiRedistributeNodes
//
// This algorithm uses the Voronoi tessellation to decide how to domain
// decompose our points. The idea is to relax a set of generator points into
// the SPH node distribution -- the generators are attrac... | 40.617675 | 204 | 0.604735 | markguozhiming |
cabf17127155873b8d15a752dc46bfd31b40c858 | 26,369 | cpp | C++ | source/ScriptDefinition.cpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 31 | 2015-03-19T08:44:48.000Z | 2021-12-15T20:52:31.000Z | source/ScriptDefinition.cpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T09:02:44.000Z | 2016-06-09T03:51:03.000Z | source/ScriptDefinition.cpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 3 | 2017-10-04T23:38:18.000Z | 2022-03-07T08:27:13.000Z | // Copyright (C) 2011 - 2014 David Reid. See included LICENCE.
#include <GTGE/ScriptDefinition.hpp>
#include <GTGE/ScriptLibrary.hpp>
#include <GTGE/Script.hpp>
#include <GTGE/Core/Strings/LineIterator.hpp>
#include <GTGE/Core/Strings/Tokenizer.hpp>
#include <GTGE/GTEngine.hpp>
namespace GT
{
ScriptDefinition::Sc... | 41.591483 | 155 | 0.377982 | mackron |
cac2333f5ba91eec943bfb138961135ce95991ad | 10,840 | cpp | C++ | src/Menu.cpp | DevelopersGuild/C-RPG | 92d33bf5ab14d8c41478d75aa7068f83890a5ea0 | [
"MIT"
] | 4 | 2018-04-15T06:01:06.000Z | 2022-02-26T02:08:59.000Z | src/Menu.cpp | DevelopersGuild/C-RPG | 92d33bf5ab14d8c41478d75aa7068f83890a5ea0 | [
"MIT"
] | 6 | 2016-02-02T07:46:03.000Z | 2016-06-10T18:41:15.000Z | src/Menu.cpp | DevelopersGuild/C-RPG | 92d33bf5ab14d8c41478d75aa7068f83890a5ea0 | [
"MIT"
] | 5 | 2016-03-15T01:12:26.000Z | 2019-02-28T18:51:14.000Z | #include "Menu.h"
// this is constructor.
Menu::Menu(Configuration & newConfig) :
config(newConfig),
gui(config.window)
{
/*
initialize the menu state
*/
state = STATE::getUserName;
gui.setFont(tgui::Font(config.fontMan.get("Carlito-Bold.ttf"))); //set the default font of gui
titlePic = std::make_shared<tgui::... | 23.463203 | 97 | 0.6881 | DevelopersGuild |
cac28d71028356e3ca07cf4bc338f3a5770a9fec | 4,279 | cpp | C++ | main/ui.cpp | ggerganov/ocl-lights | 507fa27b9940b5ef900d66853ef7e5e1e4ff267d | [
"MIT"
] | 1 | 2019-05-05T13:04:33.000Z | 2019-05-05T13:04:33.000Z | main/ui.cpp | ggerganov/ocl-lights | 507fa27b9940b5ef900d66853ef7e5e1e4ff267d | [
"MIT"
] | null | null | null | main/ui.cpp | ggerganov/ocl-lights | 507fa27b9940b5ef900d66853ef7e5e1e4ff267d | [
"MIT"
] | 1 | 2020-12-16T09:52:50.000Z | 2020-12-16T09:52:50.000Z | /*! \file ui.cpp
* \brief Enter description here.
* \author Georgi Gerganov
*/
#include "ui.h"
#include "cg_window2d.h"
#include "cg_opencl/oclBaseManager.h"
#include "data.h"
#include "imgui/imgui.h"
#include "imgui/examples/opengl2_example/imgui_impl_glfw.h"
void UI::init(std::shared_ptr<CG::Window2D> wind... | 34.788618 | 126 | 0.621874 | ggerganov |
cac4beb1d4d90ab47ad8be9da20e7eed67bda7f7 | 8,032 | cpp | C++ | FragSvx.Exe/SvxEntry.cpp | jeremy-boschen/FragExt | c340eecf7cd5992001db1b4a404bcaec09523ba4 | [
"Zlib"
] | null | null | null | FragSvx.Exe/SvxEntry.cpp | jeremy-boschen/FragExt | c340eecf7cd5992001db1b4a404bcaec09523ba4 | [
"Zlib"
] | null | null | null | FragSvx.Exe/SvxEntry.cpp | jeremy-boschen/FragExt | c340eecf7cd5992001db1b4a404bcaec09523ba4 | [
"Zlib"
] | 2 | 2020-03-03T12:55:17.000Z | 2022-03-07T15:37:33.000Z | /* FragExt - Shell extension for providing file fragmentation
* information.
*
* Copyright (C) 2004-2009 Jeremy Boschen. All rights reserved.
*
* 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 thi... | 23.904762 | 116 | 0.593127 | jeremy-boschen |
cad2d53eb9791c3e46399917a01211d851fd1c26 | 1,505 | cpp | C++ | basecode/compiler/elements/import.cpp | Alaboudi1/bootstrap | 4ec4629424ad6fe70c84d95d79b2132f24832379 | [
"MIT"
] | 32 | 2018-05-14T23:26:54.000Z | 2020-06-14T10:13:20.000Z | basecode/compiler/elements/import.cpp | Alaboudi1/bootstrap | 4ec4629424ad6fe70c84d95d79b2132f24832379 | [
"MIT"
] | 79 | 2018-08-01T11:50:45.000Z | 2020-11-17T13:40:06.000Z | basecode/compiler/elements/import.cpp | Alaboudi1/bootstrap | 4ec4629424ad6fe70c84d95d79b2132f24832379 | [
"MIT"
] | 14 | 2021-01-08T05:05:19.000Z | 2022-03-27T14:56:56.000Z | // ----------------------------------------------------------------------------
//
// Basecode Bootstrap Compiler
// Copyright (C) 2018 Jeff Panici
// All rights reserved.
//
// This software source file is licensed under the terms of MIT license.
// For details, please read the LICENSE file.
//
// --------------------... | 32.717391 | 115 | 0.51495 | Alaboudi1 |
cad551b9da073ec4985753832eacf3c732d25f4d | 962 | hpp | C++ | src/CAS/expr/Visitor.hpp | dpacbach/CAStle | 35c9f4187ad8a0efda96c6f3f624e58f3fe9c6cb | [
"MIT"
] | null | null | null | src/CAS/expr/Visitor.hpp | dpacbach/CAStle | 35c9f4187ad8a0efda96c6f3f624e58f3fe9c6cb | [
"MIT"
] | null | null | null | src/CAS/expr/Visitor.hpp | dpacbach/CAStle | 35c9f4187ad8a0efda96c6f3f624e58f3fe9c6cb | [
"MIT"
] | null | null | null | #pragma once
#include "Expression.hpp"
#include "exprfwd.hpp"
namespace DS {
namespace CAS {
namespace Expressions {
class Visitor
{
public:
virtual ~Visitor() {}
Visitor(Visitor const&) = delete;
Visitor const& operator= (Visitor const&) = delete;
virtual void reset(void) {}
... | 26 | 83 | 0.622661 | dpacbach |
cad6d7a942cec75d54b649b2273458178e79d2fc | 1,761 | cpp | C++ | bfs.cpp | srijanshetty/Algorithms | 6f10a3f9f2632cbf00aac68899ccfcf28c4014bc | [
"MIT"
] | 1 | 2021-07-13T03:49:31.000Z | 2021-07-13T03:49:31.000Z | bfs.cpp | srijanshetty/Algorithms | 6f10a3f9f2632cbf00aac68899ccfcf28c4014bc | [
"MIT"
] | null | null | null | bfs.cpp | srijanshetty/Algorithms | 6f10a3f9f2632cbf00aac68899ccfcf28c4014bc | [
"MIT"
] | 1 | 2018-10-24T16:53:26.000Z | 2018-10-24T16:53:26.000Z | #include <iostream>
#include <vector>
#include <queue>
#define NOT_VISITED -1
using namespace std;
void bfs(int start, int distance[], const vector<vector<int> > adjList) {
queue<int> processingQueue;
distance[start] = 0;
processingQueue.push(start);
while (!processingQueue.empty()) {
int el... | 23.48 | 88 | 0.559909 | srijanshetty |
cad7548e1e61cd65e5dd7722721ca09798c32735 | 1,353 | cpp | C++ | src/050_powx_n.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 1 | 2019-09-01T22:54:39.000Z | 2019-09-01T22:54:39.000Z | src/050_powx_n.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 6 | 2019-07-19T07:16:42.000Z | 2019-07-26T08:21:31.000Z | src/050_powx_n.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | null | null | null |
/*
Pow(x, n)
URL: https://leetcode.com/problems/powx-n
Tags: ['math', 'binary-search']
___
Implement [pow( x , n )](http://www.cplusplus.com/reference/valarray/pow/),
which calculates x raised to the power n (x n).
Example 1:
Input: 2.00000, 10
Output: 1024.00000
Example 2:
Input: 2.10000, 3
Ou... | 17.346154 | 75 | 0.481153 | llife09 |
cad9de0721df35c80b92853d9e16a81bd0005004 | 4,357 | cc | C++ | auth_providers/oauth/oauth_request_builder_unittest.cc | bleonard252/gfuchsiaos-topaz | 1d01e18fdb932f3bef20fd41d035035969297e04 | [
"BSD-3-Clause"
] | null | null | null | auth_providers/oauth/oauth_request_builder_unittest.cc | bleonard252/gfuchsiaos-topaz | 1d01e18fdb932f3bef20fd41d035035969297e04 | [
"BSD-3-Clause"
] | null | null | null | auth_providers/oauth/oauth_request_builder_unittest.cc | bleonard252/gfuchsiaos-topaz | 1d01e18fdb932f3bef20fd41d035035969297e04 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 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 "topaz/auth_providers/oauth/oauth_request_builder.h"
#include <string>
#include "gtest/gtest.h"
#include "lib/fxl/logging.h"
#include "peridot/l... | 32.274074 | 79 | 0.670874 | bleonard252 |
cae08d68c98a8f3425cbc46372325fd2b35d0c32 | 672 | cpp | C++ | 070-climbing-stairs.cpp | nave7693/leetcode | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | [
"MIT"
] | null | null | null | 070-climbing-stairs.cpp | nave7693/leetcode | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | [
"MIT"
] | null | null | null | 070-climbing-stairs.cpp | nave7693/leetcode | 8ff388cb17e87aa9053eaed3b84e7dc2be3e2e49 | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/climbing-stairs/
class Solution {
public:
int climbStairs(int n) {
int *steps = new int[n+1];
steps[0] = 0;
steps[1] = 1;
steps[2] = 2;
if (n > 2) {
for (int i = 3; i <= n; i++) {
steps[i] = steps[i-1] +... | 22.4 | 52 | 0.401786 | nave7693 |
cae10ce96384e01262839ec296bfdee2380ba4f2 | 2,389 | cpp | C++ | Chapter06-3d/06-mesh/src/ofApp.cpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | 6 | 2017-09-27T14:13:44.000Z | 2020-06-24T18:16:22.000Z | Chapter06-3d/06-mesh/src/ofApp.cpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | null | null | null | Chapter06-3d/06-mesh/src/ofApp.cpp | jeffcrouse/ccof | d9c5773b9913209e3ff06a4777115d750487cb44 | [
"MIT"
] | 3 | 2017-10-27T20:33:33.000Z | 2019-09-17T05:42:13.000Z | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetVerticalSync(true);
ofSetWindowShape(1024, 768);
ofSetWindowTitle("mesh");
ofSetFrameRate(60);
ofBackground(10, 10, 10);
ofEnableDepthTest();
ofSetSmoothLighting(true);
... | 22.327103 | 64 | 0.389284 | jeffcrouse |
cae6e924fe39d117d81e1625c1064ceb02f393d5 | 9,082 | cpp | C++ | src/RayTracer.cpp | GoncaloFDS/RayTracingInVulkan | 412e89106473327aff7d5952692e4c6984489007 | [
"BSD-3-Clause"
] | 2 | 2020-09-29T10:30:32.000Z | 2021-01-11T10:08:30.000Z | src/RayTracer.cpp | seanbaxter/RayTracingInVulkan | 479f2ca02814e90655ccfd54ea63d9cf63de462b | [
"BSD-3-Clause"
] | null | null | null | src/RayTracer.cpp | seanbaxter/RayTracingInVulkan | 479f2ca02814e90655ccfd54ea63d9cf63de462b | [
"BSD-3-Clause"
] | null | null | null | #include "RayTracer.hpp"
#include "UserInterface.hpp"
#include "UserSettings.hpp"
#include "Assets/Model.hpp"
#include "Assets/Scene.hpp"
#include "Assets/Texture.hpp"
#include "Assets/UniformBuffer.hpp"
#include "Utilities/Exception.hpp"
#include "Utilities/Glm.hpp"
#include "Vulkan/Device.hpp"
#include "Vulkan/SwapCh... | 27.858896 | 142 | 0.74521 | GoncaloFDS |
caec46b4d7b64ce9f0c5bb4077c01dcf0e5257ef | 9,448 | hpp | C++ | src/Callback.hpp | richardclli/OpSy | 1b16d36e451a3e5ef46b23ca20299f898fc2f0c7 | [
"MIT"
] | null | null | null | src/Callback.hpp | richardclli/OpSy | 1b16d36e451a3e5ef46b23ca20299f898fc2f0c7 | [
"MIT"
] | null | null | null | src/Callback.hpp | richardclli/OpSy | 1b16d36e451a3e5ef46b23ca20299f898fc2f0c7 | [
"MIT"
] | null | null | null | /**
******************************************************************************
* @file Callback.hpp
* @author Thomas Legrand
* @version V0.1
* @date 01-March-2019
* @brief Replacement for @c std::function
*
* Compared to @c std::function, @c Callback does not:
* - allocate any memory on the... | 33.385159 | 187 | 0.688082 | richardclli |
caee18ac1f290109a4c9f228616a8645259d7421 | 2,236 | hpp | C++ | Atorio-Filters/core/Quaternion.hpp | Ari-Atori/Atorio-Filters | c0766a033c1b40e6967dcd92cda9df321dfc1c8d | [
"MIT"
] | null | null | null | Atorio-Filters/core/Quaternion.hpp | Ari-Atori/Atorio-Filters | c0766a033c1b40e6967dcd92cda9df321dfc1c8d | [
"MIT"
] | null | null | null | Atorio-Filters/core/Quaternion.hpp | Ari-Atori/Atorio-Filters | c0766a033c1b40e6967dcd92cda9df321dfc1c8d | [
"MIT"
] | null | null | null | #ifndef ATORIO_QUATERNION
#define ATORIO_QUATERNION
#include "Vector.hpp"
class quat {
public:
quat operator = (quat const &q) {this->x = q.x; this->y = q.y; this->z = q.z; this->w = q.w; return *this;}
quat operator - () { return {-x, -y, -z, -w}; }
quat operator ~ () { return {-x, -y, -z, w}; }
quat operator +... | 31.942857 | 192 | 0.519678 | Ari-Atori |
caf14ab9f59887feaa0214c61eb1ea97709d7e82 | 500 | cpp | C++ | examples/example_json_map.cpp | alexeimenshikh/Crow | 1e73642535356c99d32627c4395d65224c1521d4 | [
"Unlicense"
] | 487 | 2021-07-26T11:57:48.000Z | 2022-03-31T22:01:39.000Z | examples/example_json_map.cpp | alexeimenshikh/Crow | 1e73642535356c99d32627c4395d65224c1521d4 | [
"Unlicense"
] | 179 | 2021-07-26T12:01:27.000Z | 2022-03-31T14:21:17.000Z | examples/example_json_map.cpp | alexeimenshikh/Crow | 1e73642535356c99d32627c4395d65224c1521d4 | [
"Unlicense"
] | 73 | 2021-07-27T13:32:08.000Z | 2022-03-31T18:04:03.000Z | #define CROW_JSON_USE_MAP
#include "crow.h"
int main()
{
crow::SimpleApp app;
// simple json response using a map
// To see it in action enter {ip}:18080/json
// it shoud show amessage before zmessage despite adding zmessage first.
CROW_ROUTE(app, "/json")
([] {
crow::json::wvalue x({{... | 22.727273 | 76 | 0.558 | alexeimenshikh |
caf28edc6241cb288c875a5362b2ad1fec1a5e75 | 23,607 | cpp | C++ | emulador/src/char/int_mail.cpp | dattebayoonline/Dattebayo | 09526566f63e76b9a5ce80f1f4e3d1918e26cf01 | [
"DOC",
"OLDAP-2.2.1"
] | 1 | 2022-03-24T17:24:12.000Z | 2022-03-24T17:24:12.000Z | emulador/src/char/int_mail.cpp | eluvju/Dattebayo | cc0fc92d8827f4890a8595bc3be0a71ef98767c1 | [
"DOC"
] | null | null | null | emulador/src/char/int_mail.cpp | eluvju/Dattebayo | cc0fc92d8827f4890a8595bc3be0a71ef98767c1 | [
"DOC"
] | null | null | null | // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#include "int_mail.hpp"
#include <stdlib.h>
#include <string.h>
#include "../common/mmo.hpp"
#include "../common/showmsg.hpp"
#include "../common/socket.hpp"
#include "../common/sql.hpp"
#include "../c... | 31.143799 | 308 | 0.658364 | dattebayoonline |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.