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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f0db72dce53a713876d31a7f4dbb58d6e20f8f3b | 2,273 | cpp | C++ | Callflow.cpp | DineshDevaraj/hivecf | 6462131c8aa75d8b41c7592f11cb7aef03ecbc47 | [
"MIT"
] | null | null | null | Callflow.cpp | DineshDevaraj/hivecf | 6462131c8aa75d8b41c7592f11cb7aef03ecbc47 | [
"MIT"
] | null | null | null | Callflow.cpp | DineshDevaraj/hivecf | 6462131c8aa75d8b41c7592f11cb7aef03ecbc47 | [
"MIT"
] | null | null | null |
/**
*
* Author : D.Dinesh
* Licence : Refer the license file
*
**/
#include "Callflow.h"
struct Node
{
int m_line;
int m_level;
Node *m_next;
const char *m_szFunc;
const char *m_szFile;
};
static int g_level = 0;
static Node *g_base = 0;
static Node *g_last = 0;
static int g_max_level ... | 20.853211 | 78 | 0.556093 | DineshDevaraj |
f0de20d8f5185bf47585f5d7a7b526d35f267688 | 558 | cc | C++ | draw/main.cc | FacelessManipulator/StructureAlgo | 73ce3cbd469c4beb7df88c39e8cf2a7777eb27e8 | [
"MIT"
] | null | null | null | draw/main.cc | FacelessManipulator/StructureAlgo | 73ce3cbd469c4beb7df88c39e8cf2a7777eb27e8 | [
"MIT"
] | null | null | null | draw/main.cc | FacelessManipulator/StructureAlgo | 73ce3cbd469c4beb7df88c39e8cf2a7777eb27e8 | [
"MIT"
] | null | null | null | #include "draw/table.hpp"
using namespace Faceless;
int main() {
Table table;
Terminal term;
table[0][0].setContent("root ").setAlign(Cell::Right).setFiller('-');
table[0][1].setContent("--> child1 ").setAlign(Cell::Right).setFiller('-');
table[0][2].setContent("--> child2 ").setAlign(Cell::Right).setFiller('... | 37.2 | 79 | 0.639785 | FacelessManipulator |
f0e6e482ffe222966f3744c15bb1d40b14e77ae0 | 4,329 | cpp | C++ | 105/105.cpp | bsamseth/project-euler | 60d70b117960f37411935bc18eab5bb2fca220e2 | [
"MIT"
] | null | null | null | 105/105.cpp | bsamseth/project-euler | 60d70b117960f37411935bc18eab5bb2fca220e2 | [
"MIT"
] | null | null | null | 105/105.cpp | bsamseth/project-euler | 60d70b117960f37411935bc18eab5bb2fca220e2 | [
"MIT"
] | null | null | null | /*
Let S(A) represent the sum of elements in set A of size n. We shall call it a
special sum set if for any two non-empty disjoint subsets, B and C, the
following properties are true:
1. S(B) ≠ S(C); that is, sums of subsets cannot be equal.
2. If B contains more elements than C then S(B) > S(C).
For example,... | 33.55814 | 105 | 0.584893 | bsamseth |
f0e802d21d2a747063a6c3c6ca1dd4419fb4ea63 | 1,428 | cpp | C++ | src/RCE/Gui/rce/gui/RGraphicsPolylineItem.cpp | Timie/PositionEstimationAccuracy | 9e88597c271ccc2a1a8442db6fa62236b7178296 | [
"MIT"
] | 1 | 2019-05-15T09:46:40.000Z | 2019-05-15T09:46:40.000Z | src/RCE/Gui/rce/gui/RGraphicsPolylineItem.cpp | Timie/PositionEstimationAccuracy | 9e88597c271ccc2a1a8442db6fa62236b7178296 | [
"MIT"
] | null | null | null | src/RCE/Gui/rce/gui/RGraphicsPolylineItem.cpp | Timie/PositionEstimationAccuracy | 9e88597c271ccc2a1a8442db6fa62236b7178296 | [
"MIT"
] | null | null | null | #include "RGraphicsPolylineItem.h"
#include <QPainterPath>
#include <QPainterPathStroker>
rce::gui::RGraphicsPolylineItem::
RGraphicsPolylineItem(const QPolygonF &path,
const QPen &pen,
QGraphicsItem *parent):
QGraphicsPathItem(parent),
polyline_(path),
penWidth... | 20.112676 | 50 | 0.62395 | Timie |
f0ea5e2a0dd12c21431427276e3402e14e3dd423 | 1,567 | hpp | C++ | src/TestXE/XETCommon/TestControllerSystem.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 11 | 2017-01-17T15:02:25.000Z | 2020-11-27T16:54:42.000Z | src/TestXE/XETCommon/TestControllerSystem.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 9 | 2016-10-23T20:15:38.000Z | 2018-02-06T11:23:17.000Z | src/TestXE/XETCommon/TestControllerSystem.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 2 | 2019-08-29T10:23:51.000Z | 2020-04-03T06:08:34.000Z | #pragma once
#include <XEngine.hpp>
#include "TestController.hpp"
namespace XE
{
class GraphicsManager;
class OgreConsole;
class XEngine;
}
namespace XET {
class TestControllerSystem : public entityx::System < TestControllerSystem > , public XE::SDLInputHandler
{
public:
TestControllerSystem(XE::XEngine& ... | 24.484375 | 106 | 0.758775 | devxkh |
f0ecd75c90b1397381cc270c29c3cc394e32feee | 8,784 | cpp | C++ | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/DirectWrite hit testing sample (Windows 8)/C++/DWriteHitTesting.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/DirectWrite hit testing sample (Windows 8)/C++/DWriteHitTesting.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/DirectWrite hit testing sample (Windows 8)/C++/DWriteHitTesting.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | //// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
#include "pch.h... | 27.111111 | 122 | 0.675546 | alonmm |
f0ee749e1a3d95496f8274ffbe8edb9ea3eb2222 | 2,778 | cpp | C++ | Modules/ProxyModule/firewalldiscoverymanager.cpp | OwNet/qtownet | bcddc85401a279e850f269cdd14e2d08dff5e02e | [
"MIT"
] | 2 | 2016-09-28T02:23:07.000Z | 2019-07-13T15:53:47.000Z | Modules/ProxyModule/firewalldiscoverymanager.cpp | OwNet/qtownet | bcddc85401a279e850f269cdd14e2d08dff5e02e | [
"MIT"
] | null | null | null | Modules/ProxyModule/firewalldiscoverymanager.cpp | OwNet/qtownet | bcddc85401a279e850f269cdd14e2d08dff5e02e | [
"MIT"
] | null | null | null | #include "firewalldiscoverymanager.h"
#include "irequest.h"
#include "iproxyconnection.h"
#include "idatabasesettings.h"
#include "isession.h"
#include "isettings.h"
#include <QThread>
#include <QTimer>
bool FirewallDiscoveryManager::m_wasPingedBack = false;
bool FirewallDiscoveryManager::m_statusChecked = false;
F... | 32.302326 | 222 | 0.662707 | OwNet |
f0f3edf65ada39edd4d875628f77efab8c768201 | 270 | cpp | C++ | old/practice/lesson2/special.cpp | Lyuminarskiy/oop | b8c6a4b1cf8905c8bbeea5aa80769b5519307654 | [
"MIT"
] | 3 | 2018-02-16T11:22:55.000Z | 2018-03-23T14:10:33.000Z | old/practice/lesson2/special.cpp | OOP-course/OOP-course | b8c6a4b1cf8905c8bbeea5aa80769b5519307654 | [
"MIT"
] | null | null | null | old/practice/lesson2/special.cpp | OOP-course/OOP-course | b8c6a4b1cf8905c8bbeea5aa80769b5519307654 | [
"MIT"
] | 1 | 2020-04-28T17:13:02.000Z | 2020-04-28T17:13:02.000Z | #include <string>
using namespace std;
struct Backup final
{
static void makeBakup(string path) {}
};
struct Printer final
{
static void print(string text) {}
};
int main()
{
Backup::makeBakup("C:/myBackups/");
Printer::print("Hello, world!");
return 0;
} | 12.857143 | 39 | 0.666667 | Lyuminarskiy |
e7cc78d92806210ceb5c2003c6ddbce43886464a | 16,811 | cpp | C++ | nsl/api/glsl/generator.cpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | nsl/api/glsl/generator.cpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | 292 | 2020-03-19T22:38:52.000Z | 2022-03-05T22:49:34.000Z | nsl/api/glsl/generator.cpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | #include "generator.h"
#include <sstream>
#include <regex>
using namespace natus::nsl::glsl ;
natus::ntd::string_t generator::replace_buildin_symbols( natus::ntd::string_t code ) noexcept
{
natus::nsl::repl_syms_t repls =
{
{
natus::ntd::string_t( "mul" ),
[=] ( natus::ntd::ve... | 33.893145 | 242 | 0.454762 | aconstlink |
e7cf06b3e60825044f85863d5f24f3f9fae10376 | 8,733 | cpp | C++ | Source/Core/Visualization/Mapper/Streamline.cpp | CCSEPBVR/KVS | f6153b3f52aa38904cc96d38d5cd609c5dccfc59 | [
"BSD-3-Clause"
] | null | null | null | Source/Core/Visualization/Mapper/Streamline.cpp | CCSEPBVR/KVS | f6153b3f52aa38904cc96d38d5cd609c5dccfc59 | [
"BSD-3-Clause"
] | null | null | null | Source/Core/Visualization/Mapper/Streamline.cpp | CCSEPBVR/KVS | f6153b3f52aa38904cc96d38d5cd609c5dccfc59 | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************/
/**
* @file Streamline.cpp
* @author Yukio Yasuhra, Naohisa Sakamoto
*/
/*----------------------------------------------------------------------------
*
* Copyright (c) Visualization Laboratory, Kyoto University.
* All rights re... | 31.189286 | 105 | 0.612504 | CCSEPBVR |
e7d5b7e1336a699fc45f5c704060073b301168fb | 2,385 | cpp | C++ | ext/nuvo_image/src/Gif.cpp | crema/nuvo_image | 7868601deca054dc1bd45507c8d01e640611d322 | [
"MIT"
] | null | null | null | ext/nuvo_image/src/Gif.cpp | crema/nuvo_image | 7868601deca054dc1bd45507c8d01e640611d322 | [
"MIT"
] | 5 | 2016-08-02T13:33:02.000Z | 2020-11-03T15:22:52.000Z | ext/nuvo_image/src/Gif.cpp | crema/nuvo-image | 365e4a54429fe4180e03adb1968ab9989e7ee5fb | [
"MIT"
] | null | null | null | #include "Gif.h"
#include <cstring>
bool Gif::TryReadFromBuffer(const std::shared_ptr<std::vector<unsigned char>>& buffer, Gif& gif, Flatten flatten) {
GifBuffer readBuffer(buffer->data(), buffer->size());
int error = 0;
auto gifFile = DGifOpen(&readBuffer, GifBuffer::ReadFromData, &error);
if (gifFile == NUL... | 29.085366 | 115 | 0.67086 | crema |
e7db49fd1820aac516d688f41489b6279c002c05 | 857 | cpp | C++ | src/Core/Application.cpp | TheJoKeR15/RaiTracer | fb7c498d49c6f886228d54aed1939580bbfb4043 | [
"Apache-2.0"
] | 1 | 2020-12-26T03:55:08.000Z | 2020-12-26T03:55:08.000Z | src/Core/Application.cpp | TheJoKeR15/RaiTracer | fb7c498d49c6f886228d54aed1939580bbfb4043 | [
"Apache-2.0"
] | null | null | null | src/Core/Application.cpp | TheJoKeR15/RaiTracer | fb7c498d49c6f886228d54aed1939580bbfb4043 | [
"Apache-2.0"
] | null | null | null | #include "Application.h"
ApplicationLayer::ApplicationLayer(GLFWwindow* window, int weight, int height)
{
m_imGuiLayer = new ImGuiLayer(window, ImVec2((float)weight, (float)height));
}
ApplicationLayer ::~ApplicationLayer()
{
delete m_imGuiLayer;
}
void ApplicationLayer::OnAttach()
{
RenderSettings... | 18.234043 | 80 | 0.705951 | TheJoKeR15 |
e7dc9cc36818cacc1b256cc8333ebf8286fbefed | 215 | cpp | C++ | puzzlemoppet/source/NodeHandler.cpp | LibreGames/puzzlemoppet | d79b10e6968f9f1f27e930c4f13194700ff42126 | [
"WTFPL"
] | null | null | null | puzzlemoppet/source/NodeHandler.cpp | LibreGames/puzzlemoppet | d79b10e6968f9f1f27e930c4f13194700ff42126 | [
"WTFPL"
] | null | null | null | puzzlemoppet/source/NodeHandler.cpp | LibreGames/puzzlemoppet | d79b10e6968f9f1f27e930c4f13194700ff42126 | [
"WTFPL"
] | null | null | null |
#include "NodeHandler.h"
void NodeHandler::ReceiveRenderPosition(core::vector3df pos)
{
irrNode->setPosition(pos);
}
void NodeHandler::ReceiveRenderRotation(core::vector3df rot)
{
irrNode->setRotation(rot);
}
| 15.357143 | 60 | 0.767442 | LibreGames |
e7e21691c1e63353a0f8d4b3921fd608f4703eb1 | 940 | cpp | C++ | sources/2015/2015_10.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | 2 | 2021-02-01T13:19:37.000Z | 2021-02-25T10:39:46.000Z | sources/2015/2015_10.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | sources/2015/2015_10.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | #include "2015_10.h"
namespace Day10_2015
{
pair<size_t, size_t> both_parts(string input)
{
size_t p1 = 0;
size_t p2 = 0;
for (int j = 1; j <= 50; j++)
{
string next;
int cnt = 0;
char ch = 0;
for (size_t i = 0; i < input.size(); i++)
{
if (input[i] != ch)
{
if (ch)
next += ... | 18.431373 | 82 | 0.565957 | tbielak |
e7e59a8104e8fabe05e8d54858ac8af31f80afc9 | 5,253 | cpp | C++ | examples/log_example.cpp | yumilceh/libqi | f094bcad506bcfd5a8dcfa7688cbcce864b0765b | [
"BSD-3-Clause"
] | null | null | null | examples/log_example.cpp | yumilceh/libqi | f094bcad506bcfd5a8dcfa7688cbcce864b0765b | [
"BSD-3-Clause"
] | null | null | null | examples/log_example.cpp | yumilceh/libqi | f094bcad506bcfd5a8dcfa7688cbcce864b0765b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#include <qi/log.hpp>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
int main(int argc, char **argv)
{
po::option... | 35.734694 | 227 | 0.570912 | yumilceh |
e7e5d5107266ecb4fcb40f9eae3608ef75bab634 | 1,826 | cpp | C++ | test/unit/math/opencl/kernel_cl_test.cpp | peterwicksstringfield/math | 5ce0718ea64f2cca8b2f1e4eeac27a2dc2bd246e | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/opencl/kernel_cl_test.cpp | peterwicksstringfield/math | 5ce0718ea64f2cca8b2f1e4eeac27a2dc2bd246e | [
"BSD-3-Clause"
] | null | null | null | test/unit/math/opencl/kernel_cl_test.cpp | peterwicksstringfield/math | 5ce0718ea64f2cca8b2f1e4eeac27a2dc2bd246e | [
"BSD-3-Clause"
] | null | null | null | #ifdef STAN_OPENCL
#include <stan/math/prim/mat.hpp>
#include <stan/math/opencl/opencl.hpp>
#include <gtest/gtest.h>
#include <algorithm>
#define EXPECT_MATRIX_NEAR(A, B, DELTA) \
for (int i = 0; i < A.size(); i++) \
EXPECT_NEAR(A(i), B(i), DELTA);
TEST(MathGpu, make_kernel) {
stan::math::matrix_d m0(3, 3... | 29.451613 | 78 | 0.594195 | peterwicksstringfield |
e7e609a2ee5b0ac3c5d65d3452624fc99092084e | 13,267 | cpp | C++ | src/atta/fileSystem/project/projectSerializer.cpp | brenocq/atta | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 5 | 2021-11-18T02:44:45.000Z | 2021-12-21T17:46:10.000Z | src/atta/fileSystem/project/projectSerializer.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 1 | 2021-11-18T02:56:14.000Z | 2021-12-04T15:09:16.000Z | src/atta/fileSystem/project/projectSerializer.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 3 | 2020-09-10T07:17:00.000Z | 2020-11-05T10:24:41.000Z | //--------------------------------------------------
// Atta File System
// projectSerializer.cpp
// Date: 2021-09-15
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <atta/fileSystem/project/projectSerializer.h>
#include <atta/fileSystem/serializer/serializer.h>
#include <atta/cm... | 33.587342 | 293 | 0.544434 | brenocq |
e7efd444fb854946efc856df366d11f249d692db | 233 | cpp | C++ | greeting.cpp | ADITYA-CS/ncurse | f6a9ce3b5e024b76338ab92ae966daf63eb53bc2 | [
"MIT"
] | null | null | null | greeting.cpp | ADITYA-CS/ncurse | f6a9ce3b5e024b76338ab92ae966daf63eb53bc2 | [
"MIT"
] | null | null | null | greeting.cpp | ADITYA-CS/ncurse | f6a9ce3b5e024b76338ab92ae966daf63eb53bc2 | [
"MIT"
] | null | null | null | #include <ncurses.h>
int main(void)
{
initscr();
char text[] = "Greetings from NCurses!";
char *t = text;
while(*t) {
addch(*t++);
refresh();
napms(100);
}
endwin();
return 0;
}
| 12.944444 | 44 | 0.472103 | ADITYA-CS |
e7f039a3480d5001ccc2814ae9898acf0a79cdaf | 483 | cpp | C++ | src/node.cpp | pedroccrp/mata54-compressor | 921fe88abd09217a7d6b865106ece4871ba2ec87 | [
"MIT"
] | null | null | null | src/node.cpp | pedroccrp/mata54-compressor | 921fe88abd09217a7d6b865106ece4871ba2ec87 | [
"MIT"
] | null | null | null | src/node.cpp | pedroccrp/mata54-compressor | 921fe88abd09217a7d6b865106ece4871ba2ec87 | [
"MIT"
] | null | null | null | #include "node.h"
Node::Node()
{
}
Node::Node(char value_, int rate_, bool isLeaf_)
{
value = value_;
rate = rate_;
isLeaf = isLeaf_;
}
Node::~Node()
{
}
void Node::addChild(Node node)
{
children.push_back(node);
}
bool operator<(const Node& n1, const Node& n2)
{
return n1.rate < n2.rate;
}
bo... | 13.054054 | 48 | 0.619048 | pedroccrp |
e7f4dc026ad488f4a4b3e4f1f385c222346d1ab6 | 1,901 | cpp | C++ | ZooidEngine/UI/UIInputComponent.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | 4 | 2019-05-31T22:55:49.000Z | 2020-11-26T11:55:34.000Z | ZooidEngine/UI/UIInputComponent.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | null | null | null | ZooidEngine/UI/UIInputComponent.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | 1 | 2018-04-11T02:50:47.000Z | 2018-04-11T02:50:47.000Z | #include "UIInputComponent.h"
#include "ZooidUI.h"
#include "ZEGameContext.h"
#include "Input/InputManager.h"
#include "Input/Keys.h"
namespace ZE
{
IMPLEMENT_CLASS_1(UIInputComponent, Component);
UIInputComponent::UIInputComponent(GameContext* gameContext)
: Component(gameContext)
{
}
void UIInputComponent... | 27.550725 | 116 | 0.776433 | azon04 |
e7fa714d7f40dcea1a236b7ac245bc545bbac3b3 | 2,190 | cpp | C++ | game/modules/settings.cpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | 33 | 2017-01-13T20:47:21.000Z | 2022-03-21T23:29:17.000Z | game/modules/settings.cpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | null | null | null | game/modules/settings.cpp | tapio/weep | aca40e3ce20eae4ce183a98ab707ac65c4be4e63 | [
"MIT"
] | 4 | 2016-12-10T16:10:42.000Z | 2020-06-28T04:44:11.000Z | // Implements a settings menu for end-user. This is in a separate module
// so that it can be shared between multiple small example games.
#include "common.hpp"
#include "renderer.hpp"
#include "glrenderer/renderdevice.hpp"
#include "audio.hpp"
#include "gui.hpp"
#include "../game.hpp"
#include <json11/json11.hpp>
us... | 30 | 88 | 0.677626 | tapio |
e7fc661eb3da78393138874d92b0124b6335f4fb | 4,069 | cpp | C++ | StyleFramework/StyleGridCtrl.cpp | edwig/StyleFramework | c9b19af74f5298c3da348cdbdc988191e76ed807 | [
"MIT"
] | 2 | 2021-04-03T12:50:30.000Z | 2022-02-08T23:23:56.000Z | StyleFramework/StyleGridCtrl.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 10 | 2022-01-14T13:28:32.000Z | 2022-02-13T12:46:34.000Z | StyleFramework/StyleGridCtrl.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////
//
// File: StyleGridCtrl.cpp
// Function: Styling frame for the Chris Maunder CGridCtrl grid.
//
// _____ _ _ _ ______ _
// / ____| | | (_) | ____| ... | 25.753165 | 91 | 0.529123 | edwig |
e7fcefc0e0a7f5b05a9d3530c85fee061e89034e | 15,397 | cpp | C++ | xyfd/GaussLegendreQuad.cpp | xxxiasu/XYFDPlus | 6bc49723100c9c052a8613ae8ca3135794bc558f | [
"MIT"
] | 2 | 2020-09-08T15:58:16.000Z | 2020-09-09T12:44:18.000Z | xyfd/GaussLegendreQuad.cpp | xxxiasu/XYFDPlus | 6bc49723100c9c052a8613ae8ca3135794bc558f | [
"MIT"
] | null | null | null | xyfd/GaussLegendreQuad.cpp | xxxiasu/XYFDPlus | 6bc49723100c9c052a8613ae8ca3135794bc558f | [
"MIT"
] | null | null | null | /**
* GaussLegendreQuad.cpp : xyfd class for representing Gauss-Legendre quadrature rules.
*
* @author
* Xiasu Yang <xiasu.yang@sorbonne-universite.fr>
*/
/*------------------------------------------------------------------*\
Dependencies
\*------------------------------------------------------------------... | 58.543726 | 98 | 0.673053 | xxxiasu |
f0069085f03a6eff49cae6b18f4a5eed49d722e6 | 766 | hpp | C++ | src/ast/include/function_call_expr.hpp | bfeip/Lain | 3df115167dbb0eb8147b225a24bb72b6c0920c64 | [
"MIT"
] | 5 | 2017-03-28T00:36:54.000Z | 2019-08-06T00:05:44.000Z | src/ast/include/function_call_expr.hpp | bfeip/Lain | 3df115167dbb0eb8147b225a24bb72b6c0920c64 | [
"MIT"
] | 4 | 2017-03-28T01:36:05.000Z | 2017-04-17T20:34:46.000Z | src/ast/include/function_call_expr.hpp | bfeip/Lain | 3df115167dbb0eb8147b225a24bb72b6c0920c64 | [
"MIT"
] | null | null | null | #ifndef FUNCTION_CALL_EXPR_HPP
#define FUNCTION_CALL_EXPR_HPP
class FunctionDecl;
#include "expr.hpp"
class FunctionCallExpr : virtual public Expr {
private:
FunctionDecl* func;
std::vector<std::unique_ptr<Expr>> args;
public:
FunctionCallExpr() = delete;
FunctionCallExpr(ScopeCreator* owner, Expr* pe, Functi... | 26.413793 | 79 | 0.715405 | bfeip |
f00ac9b055704cdea5f7e2c8677c5d0a2c99a793 | 369 | cpp | C++ | source/XCalcSigLib/Data/Functions.cpp | feudalnate/NinjaCrypt | e0a2a42735f3ffcb0e88c1d66998a126569e2d67 | [
"Unlicense"
] | 2 | 2022-03-11T20:13:05.000Z | 2022-03-12T07:49:01.000Z | source/XCalcSigLib/Data/Functions.cpp | feudalnate/NinjaCrypt | e0a2a42735f3ffcb0e88c1d66998a126569e2d67 | [
"Unlicense"
] | null | null | null | source/XCalcSigLib/Data/Functions.cpp | feudalnate/NinjaCrypt | e0a2a42735f3ffcb0e88c1d66998a126569e2d67 | [
"Unlicense"
] | 1 | 2022-03-11T20:13:07.000Z | 2022-03-11T20:13:07.000Z | #include "Functions.h"
void memcpy(byte* dst, byte* src, u32 len) {
for (u32 i = 0; i < len; i++)
dst[i] = src[i];
}
void memset(byte* buffer, byte value, u32 len) {
for (u32 i = 0; i < len; i++)
buffer[i] = value;
}
bool32 memcmp(byte* a, byte* b, u32 len) {
for (u32 i = 0; i < len; i++)
if (... | 20.5 | 49 | 0.531165 | feudalnate |
f01827da3aaf42c2b8e6c91563718b54dacc7769 | 73 | cpp | C++ | src/logging/log.cpp | stridera/FieryV4 | 747c80fee1dc71e2e06f57fc3f058f3540aaf880 | [
"Unlicense"
] | 1 | 2020-07-17T14:03:34.000Z | 2020-07-17T14:03:34.000Z | src/logging/log.cpp | stridera/FieryV4 | 747c80fee1dc71e2e06f57fc3f058f3540aaf880 | [
"Unlicense"
] | null | null | null | src/logging/log.cpp | stridera/FieryV4 | 747c80fee1dc71e2e06f57fc3f058f3540aaf880 | [
"Unlicense"
] | null | null | null | #include "log.hpp"
std::shared_ptr<spdlog::logger> Mud::Logger::logger_; | 24.333333 | 53 | 0.739726 | stridera |
f01b3c73bf5c9a48a978288b48022b83aa893a29 | 34,690 | hxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimMaterial_EquivGlazingMaterial_Blind.hxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimMaterial_EquivGlazingMaterial_Blind.hxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimMaterial_EquivGlazingMaterial_Blind.hxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 45.228162 | 212 | 0.769155 | EnEff-BIM |
f01d7722a7494aa12536d92b9f4445bdc7bd5b43 | 1,875 | inl | C++ | samples/extensions/open_cl_interop/open_cl_functions.inl | samhsw/Vulkan-Samples | 53b75db552330772c3c08734adf1ca983bedbf88 | [
"Apache-2.0"
] | 20 | 2020-03-25T17:57:32.000Z | 2022-03-12T08:16:10.000Z | samples/extensions/open_cl_interop/open_cl_functions.inl | JasonWinston/Vulkan-Samples | fe3fd6435e5f209b00d72a85004f189d01debee4 | [
"Apache-2.0"
] | 1 | 2020-02-18T07:08:52.000Z | 2020-02-18T07:08:52.000Z | samples/extensions/open_cl_interop/open_cl_functions.inl | JasonWinston/Vulkan-Samples | fe3fd6435e5f209b00d72a85004f189d01debee4 | [
"Apache-2.0"
] | 1 | 2020-04-12T16:23:18.000Z | 2020-04-12T16:23:18.000Z | /* Copyright (c) 2021, Arm Limited and Contributors
*
* SPDX-License-Identifier: Apache-2.0
*
* 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/license... | 38.265306 | 78 | 0.817067 | samhsw |
f026eb7a1d592f75bed531fdd748786e38ecc01e | 2,990 | cpp | C++ | cbits/nqs.cpp | BagrovAndrey/nqs-playground | e2834e8d340c06468687944516a2858bb754cbfe | [
"BSD-3-Clause"
] | null | null | null | cbits/nqs.cpp | BagrovAndrey/nqs-playground | e2834e8d340c06468687944516a2858bb754cbfe | [
"BSD-3-Clause"
] | null | null | null | cbits/nqs.cpp | BagrovAndrey/nqs-playground | e2834e8d340c06468687944516a2858bb754cbfe | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019, Tom Westerhout
// 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
// list of condition... | 37.375 | 81 | 0.692308 | BagrovAndrey |
f035ab93bef94a250ff2ca333fdd69a5f83a7943 | 6,444 | cpp | C++ | src/sim/entities/sim_Explosion.cpp | marek-cel/fightersfs | 5511162726861fee17357f39274461250370c224 | [
"MIT"
] | 4 | 2021-01-28T17:39:38.000Z | 2022-02-11T20:13:46.000Z | src/sim/entities/sim_Explosion.cpp | marek-cel/fightersfs | 5511162726861fee17357f39274461250370c224 | [
"MIT"
] | null | null | null | src/sim/entities/sim_Explosion.cpp | marek-cel/fightersfs | 5511162726861fee17357f39274461250370c224 | [
"MIT"
] | 3 | 2021-02-22T21:22:30.000Z | 2022-01-10T19:32:12.000Z | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* 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 restrict... | 43.836735 | 105 | 0.617008 | marek-cel |
f039bed9ffb5dc464e1986b13a2bfe6e726662a1 | 2,678 | cc | C++ | google/cloud/spanner/internal/time_format_benchmark.cc | devjgm/google-cloud-cpp-spanner | e9f73518069f69f79ab8e74e69ea68babcc20a58 | [
"Apache-2.0"
] | 29 | 2019-05-03T15:03:48.000Z | 2021-06-04T06:15:55.000Z | google/cloud/spanner/internal/time_format_benchmark.cc | devjgm/google-cloud-cpp-spanner | e9f73518069f69f79ab8e74e69ea68babcc20a58 | [
"Apache-2.0"
] | 1,199 | 2019-05-03T13:05:54.000Z | 2020-06-01T18:58:26.000Z | google/cloud/spanner/internal/time_format_benchmark.cc | devjgm/google-cloud-cpp-spanner | e9f73518069f69f79ab8e74e69ea68babcc20a58 | [
"Apache-2.0"
] | 18 | 2019-05-02T20:53:06.000Z | 2021-10-07T21:29:36.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 28.795699 | 75 | 0.621733 | devjgm |
f0477bf7e895edc949eceae7f9ced2770cf779fe | 664 | hpp | C++ | library/ATF/std___String_baseInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/std___String_baseInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/std___String_baseInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <std___String_base.hpp>
START_ATF_NAMESPACE
namespace std
{
namespace Info
{
using std___String_basector__Stri... | 34.947368 | 175 | 0.713855 | lemkova |
f053c47d0bc953e643b5c0aafc06430eca429c6e | 3,922 | cc | C++ | src/ir/ir_printer_test.cc | Cypher1/raksha | 0f52f108ceb8bc7b8be36a7bf8e9662188c57551 | [
"Apache-2.0"
] | null | null | null | src/ir/ir_printer_test.cc | Cypher1/raksha | 0f52f108ceb8bc7b8be36a7bf8e9662188c57551 | [
"Apache-2.0"
] | null | null | null | src/ir/ir_printer_test.cc | Cypher1/raksha | 0f52f108ceb8bc7b8be36a7bf8e9662188c57551 | [
"Apache-2.0"
] | null | null | null | //-----------------------------------------------------------------------------
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.o... | 31.126984 | 79 | 0.63794 | Cypher1 |
f053f6e90c761647c48770c12ec88db3da347152 | 2,526 | cpp | C++ | old_src/example_server/imageplot.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | old_src/example_server/imageplot.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | old_src/example_server/imageplot.cpp | InsightCenterNoodles/NoodlesPlusPlus | 3396e530a5948416fd364cc9ffa3f5bcbb8abc3b | [
"MIT"
] | null | null | null | #include "imageplot.h"
#include "plotty.h"
void ImagePlot::rebuild(Domain const& d) {
auto center = (m_top_left + m_bottom_right) / 2.0f;
auto o = -(m_bottom_left - center);
if (!m_image_texture) {
m_image_texture = noo::create_texture_from_file(m_doc, m_image_data);
}
if (!m_image_mat)... | 25.515152 | 77 | 0.548694 | InsightCenterNoodles |
f05c7289ea1481eaad964d4db7cdafb1cd8c0b55 | 3,878 | cpp | C++ | NOV18B/PRITREE.cpp | Chhekur/codechef-solutions | 14ca902ea693139de13ffe5b9f602447bf34b79f | [
"MIT"
] | 1 | 2019-03-25T14:14:47.000Z | 2019-03-25T14:14:47.000Z | NOV18B/PRITREE.cpp | Chhekur/codechef-solutions | 14ca902ea693139de13ffe5b9f602447bf34b79f | [
"MIT"
] | null | null | null | NOV18B/PRITREE.cpp | Chhekur/codechef-solutions | 14ca902ea693139de13ffe5b9f602447bf34b79f | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
#include<utility>
#include<cstdlib>
#include<set>
#include<stack>
using namespace std;
vector<pair<int, int> > edges;
vector<pair<int, int> > graph;
vector<vector<int> > temp_graph;
int a[1001];
bool isPrime(int num){
int f = 0;
for(int i = 2; i * i <= num; i++... | 22.287356 | 72 | 0.465446 | Chhekur |
f05d7aafd52938ad7b393f36679dfc15e8292de4 | 22,731 | cpp | C++ | unittests/utils/FileCheckTest.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | unittests/utils/FileCheckTest.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | unittests/utils/FileCheckTest.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | //===- llvm/unittest/Support/FileCheckTest.cpp - FileCheck tests --===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------------------------------... | 39.259067 | 85 | 0.723505 | PHP-OPEN-HUB |
f05e11c9aa8b06d2cce2ca4aa7b0eb9e2b992d49 | 5,180 | hpp | C++ | include/System/Data/DataRowAction.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Data/DataRowAction.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Data/DataRowAction.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "System/Enum.h... | 51.287129 | 97 | 0.733398 | v0idp |
f06de431cb9933773c4c4fbea87a43ffd31cbb7c | 2,404 | cpp | C++ | lua100/sources/utils/plugin_loader.cpp | SoulWorkerResearch/swp-loader | 00d8ca0d59e0e5a0d279e5d4b5d08850042aa190 | [
"WTFPL"
] | 1 | 2022-01-05T13:36:26.000Z | 2022-01-05T13:36:26.000Z | lua100/sources/utils/plugin_loader.cpp | SoulWorkerResearch/swp-loader | 00d8ca0d59e0e5a0d279e5d4b5d08850042aa190 | [
"WTFPL"
] | 1 | 2022-01-06T04:41:02.000Z | 2022-01-06T04:41:02.000Z | lua100/sources/utils/plugin_loader.cpp | SoulWorkerResearch/swp-loader | 00d8ca0d59e0e5a0d279e5d4b5d08850042aa190 | [
"WTFPL"
] | null | null | null | // local
#include "../../headers/utils/plugin_loader.hpp"
#include "../../headers/utils/game_version.hpp"
#include "../../headers/plugins.hpp"
// windows
#include <Windows.h>
// local deps
#include <swpsdk/utils/spdlog_formatter.hpp>
#include <swpsdk/plugin/attach.hpp>
#include <swpsdk/plugin/loader.hpp>
... | 30.05 | 117 | 0.680532 | SoulWorkerResearch |
f07244b9aa7b9739d855c629eed6db0a68eb950c | 12,578 | hpp | C++ | src/include/InterpolationTemplate.hpp | 12ff54e/BSplineInterpolation | b0f04414807bea999c5102f1274ea2ad9c2a6b6f | [
"MIT"
] | 5 | 2022-03-21T08:50:42.000Z | 2022-03-31T05:31:41.000Z | src/include/InterpolationTemplate.hpp | 12ff54e/BSplineInterpolation | b0f04414807bea999c5102f1274ea2ad9c2a6b6f | [
"MIT"
] | null | null | null | src/include/InterpolationTemplate.hpp | 12ff54e/BSplineInterpolation | b0f04414807bea999c5102f1274ea2ad9c2a6b6f | [
"MIT"
] | 1 | 2022-03-31T11:12:24.000Z | 2022-03-31T11:12:24.000Z | #pragma once
#include "BSpline.hpp"
#include "Mesh.hpp"
namespace intp {
template <typename T, size_t D>
class InterpolationFunction; // Forward declaration, since template has
// a member of it.
/**
* @brief Template for interpolation with only coordinates, and generate
* interpola... | 40.574194 | 79 | 0.5225 | 12ff54e |
f073a8f2172f9a84bb1539aa1a7d706d36e8e251 | 25,075 | cpp | C++ | src/Networking.cpp | crumblingstatue/Galaxy | a33d1df85e57a88206265c2780b288f3fda52bbb | [
"CC-BY-3.0"
] | 1 | 2015-08-27T17:01:48.000Z | 2015-08-27T17:01:48.000Z | src/Networking.cpp | crumblingstatue/Galaxy | a33d1df85e57a88206265c2780b288f3fda52bbb | [
"CC-BY-3.0"
] | 11 | 2015-09-24T03:15:13.000Z | 2016-02-23T03:03:04.000Z | src/Networking.cpp | crumblingstatue/Galaxy | a33d1df85e57a88206265c2780b288f3fda52bbb | [
"CC-BY-3.0"
] | 1 | 2016-02-16T22:25:06.000Z | 2016-02-16T22:25:06.000Z | #include "Networking.h"
#include "globalvars.h"
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <string>
namespace network
{
int mainPort = 23636;
bool packetDeletion = false;
bool servWait = false;
bool cliWait = false;
bool server = false;
bool client = false;
bool ch... | 31.501256 | 180 | 0.45324 | crumblingstatue |
f07413236a6a881943dacab4e29821e19995c331 | 323 | hpp | C++ | src/RadialGrid/RadialGrid.hpp | rdietric/lsms | 8d0d5f01186abf9a1cc54db3f97f9934b422cf92 | [
"BSD-3-Clause"
] | 28 | 2020-01-05T20:05:31.000Z | 2022-03-07T09:08:01.000Z | src/RadialGrid/RadialGrid.hpp | rdietric/lsms | 8d0d5f01186abf9a1cc54db3f97f9934b422cf92 | [
"BSD-3-Clause"
] | 8 | 2019-07-30T13:59:18.000Z | 2022-03-31T17:43:35.000Z | lsms/src/RadialGrid/RadialGrid.hpp | hkershaw-brown/MuST | 9db4bc5061c2f2c4d7dfd92f53b4ef952602c070 | [
"BSD-3-Clause"
] | 13 | 2020-02-11T17:04:45.000Z | 2022-03-28T09:23:46.000Z | #ifndef LSMS_RGRID_H
#define LSMS_RGRID_H
#include <vector>
#include "Real.hpp"
class RadialGrid {
public:
inline RadialGrid() : N(0), jmt(0), jws(0), h(0.0) {}
int N,jmt,jws;
Real h;
std::vector<Real> r_mesh,x_mesh;
};
void generateRadialGrid(RadialGrid * g, Real x0, Real h, int N, int jmt, int jws);
#end... | 17.944444 | 82 | 0.674923 | rdietric |
7eb581ab465752104d52238a6737e197c1a6fefd | 683 | cc | C++ | solutions/cpp/448-find-all-numbers-disappeared-in-an-array.cc | PW486/leetcode | c8a38265ebc98fc6335b6420fefe0ce2bb3eeae9 | [
"Unlicense"
] | null | null | null | solutions/cpp/448-find-all-numbers-disappeared-in-an-array.cc | PW486/leetcode | c8a38265ebc98fc6335b6420fefe0ce2bb3eeae9 | [
"Unlicense"
] | null | null | null | solutions/cpp/448-find-all-numbers-disappeared-in-an-array.cc | PW486/leetcode | c8a38265ebc98fc6335b6420fefe0ce2bb3eeae9 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> findDisappearedNumbers(vector<int> &nums) {
vector<int> result;
int len = nums.size();
for (int i = 0; i < len; i++) {
int pos = abs(nums[i]) - 1;
if (nums[pos] > 0) {
nums[pos] = -nums[p... | 18.972222 | 63 | 0.524158 | PW486 |
7eb8391219baa3aad813314e31142d86f4cf2224 | 1,176 | cpp | C++ | src/devices/video/WXGLDevice.cpp | SolarAquarion/ffmpegyag | bb77508afd7dd30b853ff8e56a9a062c01ca8237 | [
"MIT"
] | 12 | 2017-09-24T06:27:25.000Z | 2022-02-02T09:40:38.000Z | src/devices/video/WXGLDevice.cpp | SolarAquarion/ffmpegyag | bb77508afd7dd30b853ff8e56a9a062c01ca8237 | [
"MIT"
] | 3 | 2017-09-24T06:34:06.000Z | 2018-06-11T05:31:21.000Z | src/devices/video/WXGLDevice.cpp | SolarAquarion/ffmpegyag | bb77508afd7dd30b853ff8e56a9a062c01ca8237 | [
"MIT"
] | 4 | 2018-03-02T15:23:12.000Z | 2019-06-05T12:07:13.000Z | #include "WXGLDevice.h"
WXGLDevice::WXGLDevice()
{
widget = NULL;
}
WXGLDevice::~WXGLDevice()
{
//
}
void* WXGLDevice::CreateWidget(const char* title, int width, int height, bool fullscreen)
{
// TODO: create wxWidgets window
return NULL;
}
void WXGLDevice::DestroyWidget(void* Widget)
{
Release(... | 18.092308 | 104 | 0.602891 | SolarAquarion |
7eb87aaedd0bb95200e6b68d928558a911803211 | 466 | hpp | C++ | srcs/game/components/LimitSide.hpp | BenjaminRepingon/Nibbler-MultiLib | 71ae0b374346fef63ea5280f05722b185afa793a | [
"Apache-2.0"
] | null | null | null | srcs/game/components/LimitSide.hpp | BenjaminRepingon/Nibbler-MultiLib | 71ae0b374346fef63ea5280f05722b185afa793a | [
"Apache-2.0"
] | null | null | null | srcs/game/components/LimitSide.hpp | BenjaminRepingon/Nibbler-MultiLib | 71ae0b374346fef63ea5280f05722b185afa793a | [
"Apache-2.0"
] | null | null | null | #ifndef LIMITSIDE_HPP
# define LIMITSIDE_HPP
# include "../../core/AComponent.hpp"
# include "../../utils/vec.hpp"
class LimitSide : public AComponent
{
public:
// LimitSide( void );
LimitSide( Vec2i const & a, Vec2i const & b);
~LimitSide( void );
LimitSide( LimitSide const & src );
LimitSide & operator=( L... | 22.190476 | 58 | 0.665236 | BenjaminRepingon |
7eb89fa94b69a80478d0a7c23f0facb0389627e5 | 363 | cpp | C++ | recursion/jumps.cpp | heysujal/Problem-Solving-in-cpp | b5e21bc467d57d3c2050776b948e7f59daabe945 | [
"Unlicense"
] | 1 | 2021-10-04T16:24:57.000Z | 2021-10-04T16:24:57.000Z | recursion/jumps.cpp | heysujal/Problem-Solving-in-cpp | b5e21bc467d57d3c2050776b948e7f59daabe945 | [
"Unlicense"
] | null | null | null | recursion/jumps.cpp | heysujal/Problem-Solving-in-cpp | b5e21bc467d57d3c2050776b948e7f59daabe945 | [
"Unlicense"
] | 1 | 2021-10-04T16:25:00.000Z | 2021-10-04T16:25:00.000Z | // no of ways to reach n by only jumping 1, 2 or 3 steps at a time.
#include <bits/stdc++.h>
using namespace std;
int jump_count(int n)
{
if (n < 0)
return 0;
if (n == 0)
return 1;
return jump_count(n - 1) + jump_count(n - 2) + jump_count(n - 3);
}
int main()
{
int n;
cin >> n;
... | 15.125 | 69 | 0.5427 | heysujal |
7ebbf675263b8a48bc6ce5c9c43edda6c5720677 | 1,472 | cpp | C++ | CleaningService/main.cpp | KamranMackey/cplusplusprojects | 1b42afa9b530098dcb9ada8b133c1351ab4c8155 | [
"MIT"
] | null | null | null | CleaningService/main.cpp | KamranMackey/cplusplusprojects | 1b42afa9b530098dcb9ada8b133c1351ab4c8155 | [
"MIT"
] | null | null | null | CleaningService/main.cpp | KamranMackey/cplusplusprojects | 1b42afa9b530098dcb9ada8b133c1351ab4c8155 | [
"MIT"
] | null | null | null | #include <iostream>
int main() {
std::cout << "Hello there, welcome to the Cleaning Service!\n\n";
auto small_room_count{0};
std::cout << "Please enter the amount of small rooms you would like cleaned: ";
std::cin >> small_room_count;
auto large_room_count{0};
std::cout << "Please enter the amount of large room... | 38.736842 | 83 | 0.658967 | KamranMackey |
7ebd99138b259d93d69fc7793560b665a749cdb6 | 374 | cpp | C++ | source/code/RigorPhysics/AABBox.cpp | AdamWallberg/RigorPhysics | 85da20dbf1f1990f703e2be687b65987fc48386f | [
"MIT"
] | null | null | null | source/code/RigorPhysics/AABBox.cpp | AdamWallberg/RigorPhysics | 85da20dbf1f1990f703e2be687b65987fc48386f | [
"MIT"
] | null | null | null | source/code/RigorPhysics/AABBox.cpp | AdamWallberg/RigorPhysics | 85da20dbf1f1990f703e2be687b65987fc48386f | [
"MIT"
] | null | null | null | #include "AABBox.h"
namespace rg
{
AABBox::AABBox()
: min(ZeroVector)
, max(ZeroVector)
{
}
AABBox::AABBox(Vector3 min, Vector3 max)
: min(min)
, max(max)
{
}
bool AABBox::inside(const Vector3& position) const
{
return
position.x >= min.x && position.x <= max.x &&
position.y >= min.y && position.y <= max.y... | 14.384615 | 50 | 0.620321 | AdamWallberg |
7ebdb1bf448696ebfb075de4a3ece125b9b5eb6a | 394 | cpp | C++ | codeforces/round-294/div-2/a_and_b_and_team_training.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | codeforces/round-294/div-2/a_and_b_and_team_training.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | codeforces/round-294/div-2/a_and_b_and_team_training.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <algorithm>
#include <iostream>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main()
{
use_io_optimizations();
unsigned int experienced;
unsigned int newbies;
cin >> experienced >> newbies;
cout << min({(exp... | 15.153846 | 77 | 0.65736 | Rkhoiwal |
7ec4d9509feb5da68609c9181629b63d62a508f6 | 1,361 | hpp | C++ | modules/memory/include/shard/memory/allocators/proxy_allocator.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | modules/memory/include/shard/memory/allocators/proxy_allocator.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | modules/memory/include/shard/memory/allocators/proxy_allocator.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Miklos Molnar. All rights reserved.
#ifndef SHARD_MEMORY_PROXY_ALLOCATOR_HPP
#define SHARD_MEMORY_PROXY_ALLOCATOR_HPP
#include "shard/memory/allocator.hpp"
namespace shard {
namespace memory {
class proxy_allocator : public allocator {
public:
explicit proxy_allocator(allocator& a, const c... | 27.22 | 120 | 0.685525 | ikimol |
7eca9af2de615d15fc20145673768b53402310d4 | 1,182 | cpp | C++ | SYCL/ESIMD/api/simd_view_select_2d_fp.cpp | abuyukku/llvm-test-suite | b10bd8e733519ae0e365fc097d36a32bc1d53d62 | [
"Apache-2.0"
] | null | null | null | SYCL/ESIMD/api/simd_view_select_2d_fp.cpp | abuyukku/llvm-test-suite | b10bd8e733519ae0e365fc097d36a32bc1d53d62 | [
"Apache-2.0"
] | null | null | null | SYCL/ESIMD/api/simd_view_select_2d_fp.cpp | abuyukku/llvm-test-suite | b10bd8e733519ae0e365fc097d36a32bc1d53d62 | [
"Apache-2.0"
] | null | null | null | //==------- simd_view_select_2d_fp.cpp - DPC++ ESIMD on-device test -------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 35.818182 | 80 | 0.624365 | abuyukku |
7ed312ce24f292fc67bf7e568395df052560d8ae | 4,291 | cpp | C++ | src/selectappdialog.cpp | FinchX/loli_profiler | 9391bb82fd0a26c5855770974ae886f42daf4266 | [
"BSD-2-Clause"
] | 388 | 2021-03-11T04:20:19.000Z | 2022-03-29T05:55:07.000Z | src/selectappdialog.cpp | habbyge/loli_profiler | fc5700acd5ee034698da2fff1189e58873721711 | [
"BSD-2-Clause"
] | 23 | 2021-03-24T06:38:29.000Z | 2022-03-30T06:17:17.000Z | src/selectappdialog.cpp | habbyge/loli_profiler | fc5700acd5ee034698da2fff1189e58873721711 | [
"BSD-2-Clause"
] | 44 | 2021-03-11T06:27:02.000Z | 2022-03-28T03:58:09.000Z | #include "selectappdialog.h"
#include <QVBoxLayout>
#include <QListWidget>
#include <QKeyEvent>
ArrowLineEdit::ArrowLineEdit(QListWidget* listView, QWidget *parent)
: QLineEdit(parent), listView_(listView) {
connect(this, &QLineEdit::textChanged, this, &ArrowLineEdit::onTextChanged);
}
void ArrowLineEdit::key... | 35.172131 | 116 | 0.582149 | FinchX |
7ed9f7f322642e5063a174aea77f62f59d93c87f | 9,515 | cpp | C++ | test/inventory_test.cpp | YADRO-KNS/obmc-yadro-lsinventory | 2b52c92669d35500d3ad2f0c656dab5c9bec1625 | [
"Apache-2.0"
] | null | null | null | test/inventory_test.cpp | YADRO-KNS/obmc-yadro-lsinventory | 2b52c92669d35500d3ad2f0c656dab5c9bec1625 | [
"Apache-2.0"
] | 2 | 2020-04-22T07:32:25.000Z | 2022-03-10T09:40:32.000Z | test/inventory_test.cpp | YADRO-KNS/obmc-yadro-lsinventory | 2b52c92669d35500d3ad2f0c656dab5c9bec1625 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2020 YADRO
#include "inventory.hpp"
#include <sdbusplus/test/sdbus_mock.hpp>
using ::testing::_;
using ::testing::Invoke;
using ::testing::Return;
using ::testing::StrEq;
/**
* class InventoryTest
* @brief Inventory tests.
*/
class InventoryTest : public ::... | 35.240741 | 79 | 0.601051 | YADRO-KNS |
7ee266dec2493da56f8108fd80c43a5700ff351d | 397 | cpp | C++ | BeginnerLevel/Puppy_and_Sum.cpp | AkashKumarSingh11032001/CodeChef-Beginner-To-Medium | 5c4a55b909ba90976099cb81374a8cecb4c3ead3 | [
"MIT"
] | 1 | 2021-05-05T04:50:26.000Z | 2021-05-05T04:50:26.000Z | BeginnerLevel/Puppy_and_Sum.cpp | AkashKumarSingh11032001/CodeChef-Beginner-To-Medium | 5c4a55b909ba90976099cb81374a8cecb4c3ead3 | [
"MIT"
] | null | null | null | BeginnerLevel/Puppy_and_Sum.cpp | AkashKumarSingh11032001/CodeChef-Beginner-To-Medium | 5c4a55b909ba90976099cb81374a8cecb4c3ead3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int sum_l(int d, int n)
{
int sum = 0;
for (int i = 1; i <= n; i++)
{
sum += i;
}
if (d == 1)
return sum;
else
return sum_l(d - 1, sum);
}
int main()
{
int T;
cin >> T;
int d, n;
while (T--)
{
/... | 13.233333 | 36 | 0.387909 | AkashKumarSingh11032001 |
7ee2bf9dc25225b64833301e070299f46c913d02 | 8,700 | cpp | C++ | test-src/suite.cpp | cslauritsen/cslhomie | e30bca41406099233e877b44186124f337a78f0b | [
"MIT"
] | null | null | null | test-src/suite.cpp | cslauritsen/cslhomie | e30bca41406099233e877b44186124f337a78f0b | [
"MIT"
] | null | null | null | test-src/suite.cpp | cslauritsen/cslhomie | e30bca41406099233e877b44186124f337a78f0b | [
"MIT"
] | null | null | null | #include "homie.hpp"
#include <algorithm>
#include <gtest/gtest.h>
#include <list>
#include <string>
using Msg = homie::Message;
class TestDevice : public homie::Device {
public:
TestDevice() : homie::Device("testdevice", "1.0", "TestDevice") {
extensions.push_back("com.planetlauritsen.test:0.0.1:[4.x]");
}
... | 32.103321 | 80 | 0.595287 | cslauritsen |
7ee43efa331193d3f74507e4f2181196fe53e5b3 | 2,877 | cpp | C++ | Chapter07/Exercise7.01/EnemyCharacter.cpp | rutuja027/Game-Development-Projects-with-Unreal-Engine | e165ebd9404c76b9bdffa38d040dc640ba9b79ed | [
"MIT"
] | 41 | 2020-11-14T07:18:27.000Z | 2022-03-28T13:42:02.000Z | Chapter07/Exercise7.01/EnemyCharacter.cpp | fghaddar/Game-Development-Projects-with-Unreal-Engine | 79a987c01dd672b6e8b95bdd15f1d17380044bf8 | [
"MIT"
] | null | null | null | Chapter07/Exercise7.01/EnemyCharacter.cpp | fghaddar/Game-Development-Projects-with-Unreal-Engine | 79a987c01dd672b6e8b95bdd15f1d17380044bf8 | [
"MIT"
] | 23 | 2021-01-20T07:05:38.000Z | 2022-03-15T05:25:54.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "EnemyCharacter.h"
#include "Engine/World.h"
#include "Kismet/KismetMathLibrary.h"
#include "Kismet/GameplayStatics.h"
#include "TimerManager.h"
#include "DodgeballProjectile.h"
#include "DodgeballFunctionLibrary.h"
#include "GameF... | 27.4 | 121 | 0.748349 | rutuja027 |
7ee7df3da333a5477cdb0454d3dcc4f4274c090f | 1,493 | cc | C++ | fundamental/array/binary_search/binary_search.cc | geek-yang/Algorism | fc1fa544b0a21459808797cdc9287b9c6b8f5358 | [
"Apache-2.0"
] | null | null | null | fundamental/array/binary_search/binary_search.cc | geek-yang/Algorism | fc1fa544b0a21459808797cdc9287b9c6b8f5358 | [
"Apache-2.0"
] | null | null | null | fundamental/array/binary_search/binary_search.cc | geek-yang/Algorism | fc1fa544b0a21459808797cdc9287b9c6b8f5358 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
/* Solution for leetcode question 704.
For binary search, it is a must that the given input
array is sorted in ascending order and there is no
repeated element.
*/
public:
int binary_search(vector<int>& nums, int target) {
int l... | 24.080645 | 54 | 0.513731 | geek-yang |
7ee82e3d0bdce9fd102a134ea79eba859025b141 | 2,297 | cpp | C++ | DXMPP/SASL/SASLMechanism.cpp | synergysky/dxmpp | 8bd741993ee8cded5bfbc8cc739e7c7a81b3f203 | [
"BSL-1.0"
] | 17 | 2015-02-09T05:18:11.000Z | 2021-10-10T04:13:11.000Z | DXMPP/SASL/SASLMechanism.cpp | synergysky/dxmpp | 8bd741993ee8cded5bfbc8cc739e7c7a81b3f203 | [
"BSL-1.0"
] | 4 | 2017-04-07T13:55:10.000Z | 2019-06-10T09:56:47.000Z | DXMPP/SASL/SASLMechanism.cpp | synergysky/dxmpp | 8bd741993ee8cded5bfbc8cc739e7c7a81b3f203 | [
"BSL-1.0"
] | 24 | 2015-03-20T06:57:27.000Z | 2020-06-18T15:29:22.000Z | //
// SASLMechanism.cpp
// DXMPP
//
// Created by Stefan Karlsson 2014
// Copyright (c) 2014 Deus ex Machinae. All rights reserved.
//
#include <DXMPP/SASL/SASLMechanism.hpp>
#include <pugixml/pugixml.hpp>
#include <DXMPP/JID.hpp>
#include <boost/function.hpp>
#include <boost/asio.hpp>
#include <boost/asio/ssl.h... | 30.223684 | 117 | 0.685677 | synergysky |
7eeb4e4e379d0b1a0d7ea46f9dd55e0a5bd079f2 | 2,070 | hh | C++ | construct/CSGNode.i.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | construct/CSGNode.i.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | construct/CSGNode.i.hh | celeritas-project/orange-port | 9aa2d36984a24a02ed6d14688a889d4266f7b1af | [
"Apache-2.0",
"MIT"
] | null | null | null | //---------------------------------*-C++-*-----------------------------------//
/*!
* \file construct/CSGNode.i.hh
* \brief CSGNode inline method definitions
* \note Copyright (c) 2021 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//---------------------------------------------------------------------------... | 28.356164 | 79 | 0.423671 | celeritas-project |
7ef367188a456625b49bda5a02720ea64be9e6c3 | 154 | hpp | C++ | src/LevelScheduler.hpp | hpcg-benchmark/KHPCG3.0 | 9591b148ea6552342a0471a932d2abf332e490e0 | [
"BSD-3-Clause"
] | null | null | null | src/LevelScheduler.hpp | hpcg-benchmark/KHPCG3.0 | 9591b148ea6552342a0471a932d2abf332e490e0 | [
"BSD-3-Clause"
] | null | null | null | src/LevelScheduler.hpp | hpcg-benchmark/KHPCG3.0 | 9591b148ea6552342a0471a932d2abf332e490e0 | [
"BSD-3-Clause"
] | 3 | 2019-03-05T16:46:25.000Z | 2021-12-22T03:49:00.000Z | #ifndef LEVELSCHEDULER_HPP
#define LEVELSCHEDULER_HPP
#include "KokkosSetup.hpp"
#include "SparseMatrix.hpp"
int levelSchedule(SparseMatrix & A);
#endif | 19.25 | 36 | 0.811688 | hpcg-benchmark |
7ef95f706923464ac5e1417ba4876f4e19fb3860 | 9,520 | cpp | C++ | Turso3D/Resource/ResourceCache.cpp | cadaver/turso3d | 5659df48b7915b95a351dfcad382b3ed653573f2 | [
"Zlib"
] | 29 | 2015-03-21T22:35:50.000Z | 2022-01-25T04:13:46.000Z | Turso3D/Resource/ResourceCache.cpp | cadaver/turso3d | 5659df48b7915b95a351dfcad382b3ed653573f2 | [
"Zlib"
] | 1 | 2016-10-23T16:20:14.000Z | 2018-04-13T13:32:13.000Z | Turso3D/Resource/ResourceCache.cpp | cadaver/turso3d | 5659df48b7915b95a351dfcad382b3ed653573f2 | [
"Zlib"
] | 8 | 2015-09-28T06:26:41.000Z | 2020-12-28T14:29:51.000Z | // For conditions of distribution and use, see copyright notice in License.txt
#include "../Debug/Log.h"
#include "../Debug/Profiler.h"
#include "../IO/File.h"
#include "../IO/FileSystem.h"
#include "Image.h"
#include "JSONFile.h"
#include "ResourceCache.h"
#include "../Debug/DebugNew.h"
namespace Turso3D
{
Resourc... | 25.72973 | 113 | 0.590651 | cadaver |
7d08b77c8a8b9574512877ad3a2afc49d0029fda | 8,399 | cpp | C++ | src/tracker/TrackerSystem_simulate.cpp | bitbloop/KalmanFilter | f1616134d6eeeab05afc56bb6b0a921fad106d7f | [
"MIT"
] | 1 | 2022-03-29T15:55:01.000Z | 2022-03-29T15:55:01.000Z | src/tracker/TrackerSystem_simulate.cpp | bitbloop/KalmanFilter | f1616134d6eeeab05afc56bb6b0a921fad106d7f | [
"MIT"
] | null | null | null | src/tracker/TrackerSystem_simulate.cpp | bitbloop/KalmanFilter | f1616134d6eeeab05afc56bb6b0a921fad106d7f | [
"MIT"
] | 1 | 2022-03-18T07:29:55.000Z | 2022-03-18T07:29:55.000Z | #include "TrackerSystem.h"
#include "TrackerSystemInputHandler.h"
/** Do the simulation loop. */
void TrackerSystem::Loop()
{
{
// Fast forward the simulation at the start.
math::time::Timer fast_forward_timer;
FastForward(TIME_TO_FAST_FORWARD, FAST_FORWARD_STEP);
double fast_forward_end_time{ fast_forward_ti... | 40.970732 | 202 | 0.761162 | bitbloop |
7d0a1d436efbf4f8ef8ccd9bf1a9c61fab3bce51 | 3,136 | hpp | C++ | src/backends/reference/workloads/Lstm.hpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | 856 | 2018-03-09T17:26:23.000Z | 2022-03-24T21:31:33.000Z | src/backends/reference/workloads/Lstm.hpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | 623 | 2018-03-13T04:40:42.000Z | 2022-03-31T09:45:17.000Z | src/backends/reference/workloads/Lstm.hpp | sahilbandar/armnn | 249950645b7bc0593582182097c7e2f1d6d97442 | [
"MIT"
] | 284 | 2018-03-09T23:05:28.000Z | 2022-03-29T14:42:28.000Z | //
// Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/TypesUtils.hpp>
#include <backendsCommon/WorkloadData.hpp>
#include "Encoders.hpp"
#include "Decoders.hpp"
namespace armnn
{
void LstmImpl(const LstmDescriptor& descriptor,
... | 50.580645 | 78 | 0.660714 | sahilbandar |
7d0a62159844187c30c4387853782473f2295c65 | 2,889 | cpp | C++ | modules/itmx/src/imagesources/DepthCorruptingImageSourceEngine.cpp | torrvision/spaint | 9cac8100323ea42fe439f66407b832b88f72d2fd | [
"Unlicense"
] | 197 | 2015-10-01T07:23:01.000Z | 2022-03-23T03:02:31.000Z | modules/itmx/src/imagesources/DepthCorruptingImageSourceEngine.cpp | torrvision/spaint | 9cac8100323ea42fe439f66407b832b88f72d2fd | [
"Unlicense"
] | 16 | 2016-03-26T13:01:08.000Z | 2020-09-02T09:13:49.000Z | modules/itmx/src/imagesources/DepthCorruptingImageSourceEngine.cpp | torrvision/spaint | 9cac8100323ea42fe439f66407b832b88f72d2fd | [
"Unlicense"
] | 62 | 2015-10-03T07:14:59.000Z | 2021-08-31T08:58:18.000Z | /**
* itmx: DepthCorruptingImageSourceEngine.cpp
* Copyright (c) Torr Vision Group, University of Oxford, 2019. All rights reserved.
*/
#include "imagesources/DepthCorruptingImageSourceEngine.h"
#include <ITMLib/Engines/ViewBuilding/Shared/ITMViewBuilder_Shared.h>
using namespace ITMLib;
namespace itmx {
//#####... | 30.734043 | 150 | 0.709242 | torrvision |
7d0a8f4b0c580058655d52745c5c9355d8295677 | 1,077 | hpp | C++ | Nacro/SDK/FN_AssetRegistry_structs.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_AssetRegistry_structs.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_AssetRegistry_structs.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Script Structs
//---------------------------------------------------------------------------
// ScriptStruct AssetRegistry.AssetBundleEnt... | 29.916667 | 161 | 0.457753 | Milxnor |
7d0d89f6393eaa16a5a92f1444eb5c9a73ae4abf | 5,433 | cpp | C++ | src/HADemoService.cpp | mark1-umd/homebot | 578c424b15331de32cc6b32a4cbf7ad27dbb5ffe | [
"BSD-3-Clause"
] | null | null | null | src/HADemoService.cpp | mark1-umd/homebot | 578c424b15331de32cc6b32a4cbf7ad27dbb5ffe | [
"BSD-3-Clause"
] | null | null | null | src/HADemoService.cpp | mark1-umd/homebot | 578c424b15331de32cc6b32a4cbf7ad27dbb5ffe | [
"BSD-3-Clause"
] | null | null | null | /**
* @copyright (c) 2017 Mark R. Jenkins. All rights reserved.
* @file HADemoService.cpp
*
* @author MJenkins, ENPM 808X Spring 2017
* @date May 10, 2017 - Creation
*
* @brief Provides a Home Automation "demo" service (sends HBBehavior goals to bot_actor action server)
*
* This service provides a way to manu... | 45.655462 | 197 | 0.735689 | mark1-umd |
7d0dafd27bd571aad05a2041e55204df0ba0530f | 1,033 | cpp | C++ | lintcode/maxproductsubarray.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | lintcode/maxproductsubarray.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | lintcode/maxproductsubarray.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
/**
* @param nums: a vector of integers
* @return: an integer
*/
int maxProduct(vector<int>& nums) {
// write your code here
int n=nums.size();
if(n==0){
return 0;
}
//maintain a mintemp incase... | 27.918919 | 83 | 0.504356 | WIZARD-CXY |
7d14fd45738791225df985e91d6006f6f9a6b859 | 506 | cpp | C++ | LibSFML/SFText.cpp | Gotatang/FrameWorkIA | 347b3b400a706427ecf7d5401e19ba4bd2bf18c3 | [
"MIT"
] | null | null | null | LibSFML/SFText.cpp | Gotatang/FrameWorkIA | 347b3b400a706427ecf7d5401e19ba4bd2bf18c3 | [
"MIT"
] | null | null | null | LibSFML/SFText.cpp | Gotatang/FrameWorkIA | 347b3b400a706427ecf7d5401e19ba4bd2bf18c3 | [
"MIT"
] | null | null | null | /*Documentation */
/*@author : Quentin Ladevie */
/*@file : SFText.cpp */
/*@date : 29/12/2015 */
/*@brief : Fichier source des textes SFML */
#include "stdafx.h"
#include "SFText.hpp"
namespace DadEngine
{
SFText::SFText()
{
}
SFText::~SFText()
{
}
// Get/Set
sf::Text& SFText::Get... | 12.65 | 47 | 0.579051 | Gotatang |
7d18a518d116a68731c9290c5e73dbc3da4a6e63 | 4,271 | cpp | C++ | sqsgenerator/core/python/iteration.cpp | dgehringer/sqsgenerator | 562697166a53f806629e8e1086b381871d9a675e | [
"MIT"
] | 14 | 2019-11-16T10:34:04.000Z | 2022-03-28T09:32:42.000Z | sqsgenerator/core/python/iteration.cpp | dgehringer/sqsgenerator | 562697166a53f806629e8e1086b381871d9a675e | [
"MIT"
] | 5 | 2019-11-21T05:54:07.000Z | 2022-03-29T07:56:34.000Z | sqsgenerator/core/python/iteration.cpp | dgehringer/sqsgenerator | 562697166a53f806629e8e1086b381871d9a675e | [
"MIT"
] | 4 | 2020-09-28T14:28:23.000Z | 2021-03-05T14:11:44.000Z | //
// Created by dominik on 14.07.21.
//
#include "iteration.hpp"
#include "helpers.hpp"
namespace sqsgenerator::python {
shuffling_bounds_t convert_bound_list(py::list &list) {
shuffling_bounds_t bounds;
if (list.is_none()) return bounds;
for (int i = 0; i < len(list); i++) {
... | 33.367188 | 114 | 0.648326 | dgehringer |
7d1df48aacc2edd0b2dace2583a02e4ad527144d | 10,603 | cpp | C++ | Cpp/SDK/BP_WeatherSystem_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 1 | 2020-08-15T08:31:55.000Z | 2020-08-15T08:31:55.000Z | Cpp/SDK/BP_WeatherSystem_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-15T08:43:56.000Z | 2021-01-15T05:04:48.000Z | Cpp/SDK/BP_WeatherSystem_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-10T12:05:42.000Z | 2021-02-12T19:56:10.000Z | // Name: S, Version: b
#include "../SDK.h"
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
// ... | 29.129121 | 176 | 0.776761 | MrManiak |
7d24153e72beb069099d37518c6f00579d1007e1 | 5,736 | cpp | C++ | Source/Pineapple/Engine/Platform/FileSystem.cpp | JoshYaxley/Pineapple | 490b0ccdfa26e2bb6fd9ec290b43b355462dd9ec | [
"Zlib"
] | 11 | 2017-04-15T14:44:19.000Z | 2022-02-04T13:16:04.000Z | Source/Pineapple/Engine/Platform/FileSystem.cpp | JoshYaxley/Pineapple | 490b0ccdfa26e2bb6fd9ec290b43b355462dd9ec | [
"Zlib"
] | 25 | 2017-04-19T12:48:42.000Z | 2020-05-09T05:28:29.000Z | Source/Pineapple/Engine/Platform/FileSystem.cpp | JoshYaxley/Pineapple | 490b0ccdfa26e2bb6fd9ec290b43b355462dd9ec | [
"Zlib"
] | 1 | 2019-04-21T21:14:04.000Z | 2019-04-21T21:14:04.000Z | #include <Pineapple/Engine/Platform/FileSystem.h>
#include <Pineapple/Engine/Platform/Memory.h>
#include <Pineapple/Engine/Util/Macro.h>
#include <cstdio>
#include <sys/stat.h>
namespace
{
pa::FileResult openFile(FILE** file, const char* path, const char* mode)
{
#ifdef _MSC_VER
fopen_s(file, path, mode);
#else
... | 23.508197 | 139 | 0.699965 | JoshYaxley |
7d26bf1357b6c0628786f1e9d3f6754960393458 | 959 | cpp | C++ | c++/Functor/Argument.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Functor/Argument.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Functor/Argument.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <vector>
#define TRUE 1
#define FALSE 0
template<typename Container, typename Functor>
void for_each(Container container_, Functor functor_) {
for (typename Container::iterator ite = container_.begin(); ite != container_.end(); ++ite) {
functor_(*ite);
}
}
class ... | 15.983333 | 95 | 0.632951 | taku-xhift |
7d2a71dd1670cd90b80409cf45bfba5f895e52d9 | 1,640 | hpp | C++ | src/neural_network/optimizer/Dropout.hpp | MatthieuHernandez/StraightforwardNeuralNetwork | e0b99a80bb1b3f76dcb08134aa0f1bc3e6b705d7 | [
"Apache-2.0"
] | 14 | 2019-08-29T07:20:19.000Z | 2022-03-22T12:51:02.000Z | src/neural_network/optimizer/Dropout.hpp | MatthieuHernandez/StraightforwardNeuralNetwork | e0b99a80bb1b3f76dcb08134aa0f1bc3e6b705d7 | [
"Apache-2.0"
] | 7 | 2020-08-07T11:08:45.000Z | 2021-05-08T17:11:12.000Z | src/neural_network/optimizer/Dropout.hpp | MatthieuHernandez/StraightforwardNeuralNetwork | e0b99a80bb1b3f76dcb08134aa0f1bc3e6b705d7 | [
"Apache-2.0"
] | 3 | 2020-08-07T10:53:52.000Z | 2021-02-16T22:13:22.000Z | #pragma once
#include <vector>
#include <boost/serialization/unique_ptr.hpp>
#include <boost/serialization/access.hpp>
#include "LayerOptimizer.hpp"
namespace snn::internal
{
class Dropout final : public LayerOptimizer
{
private:
friend class boost::serialization::access;
template <class Ar... | 33.469388 | 99 | 0.686585 | MatthieuHernandez |
7d2d7a43208e54bd51d3146d3f07b2a737c8db7c | 1,745 | cc | C++ | test_hash.cc | pallas/libace | 62477c78bd8848c80d91ffb311ad1c7708b655d7 | [
"Zlib"
] | null | null | null | test_hash.cc | pallas/libace | 62477c78bd8848c80d91ffb311ad1c7708b655d7 | [
"Zlib"
] | null | null | null | test_hash.cc | pallas/libace | 62477c78bd8848c80d91ffb311ad1c7708b655d7 | [
"Zlib"
] | 3 | 2018-06-04T12:52:51.000Z | 2021-07-14T09:20:45.000Z | #include "hash.h"
#include <cassert>
#include <cstdlib>
#include <string>
#include <algorithm>
int main(int, char*[]) {
assert(lace::hash(0) == lace::hash(0));
assert(lace::hash<uint8_t>(1) == lace::hash<uint8_t>(1));
assert(lace::hash<uint16_t>(1) == lace::hash<uint16_t>(1));
assert(lace::hash<uint32_t>(1) =... | 37.12766 | 103 | 0.603438 | pallas |
7d2ff077104f78ba5534f12a271add9d483f72e7 | 4,377 | cpp | C++ | NGS_testing/uParser/uTagTests.cpp | NGS-lib/NGSplusplus | 7fa9fff2453917f24e9e35dab1f04a9be67f7f13 | [
"BSL-1.0"
] | 3 | 2015-11-23T14:24:06.000Z | 2017-11-21T21:04:06.000Z | NGS_testing/uParser/uTagTests.cpp | NGS-lib/NGSplusplus | 7fa9fff2453917f24e9e35dab1f04a9be67f7f13 | [
"BSL-1.0"
] | null | null | null | NGS_testing/uParser/uTagTests.cpp | NGS-lib/NGSplusplus | 7fa9fff2453917f24e9e35dab1f04a9be67f7f13 | [
"BSL-1.0"
] | null | null | null |
#include "uFormats.h"
#include "uTags.h"
#include "uRegion.h"
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <time.h>
#include <thread>
#include <random>
#include <string.h>
#include "utility/utility.h"
#include <time.h>
#include <gtest/gtest.h>
using namespace NGS;
/**< Testing o... | 33.930233 | 314 | 0.705278 | NGS-lib |
7d3013745deb7db393378c97e18ae3e8e2f42bc3 | 2,808 | cpp | C++ | tests/RaZ/Render/Shader.cpp | Sausty/RaZ | 211cc1c0c4a7374520a3141fc069b7717e2e5e0f | [
"MIT"
] | 339 | 2017-09-24T17:26:15.000Z | 2022-03-20T13:25:39.000Z | tests/RaZ/Render/Shader.cpp | Sausty/RaZ | 211cc1c0c4a7374520a3141fc069b7717e2e5e0f | [
"MIT"
] | 24 | 2017-09-22T10:30:12.000Z | 2022-01-05T21:32:20.000Z | tests/RaZ/Render/Shader.cpp | Sausty/RaZ | 211cc1c0c4a7374520a3141fc069b7717e2e5e0f | [
"MIT"
] | 24 | 2018-01-21T17:38:18.000Z | 2022-02-02T11:16:22.000Z | #include "Catch.hpp"
#include "RaZ/Render/Renderer.hpp"
#include "RaZ/Render/Shader.hpp"
TEST_CASE("Shader validity") {
Raz::Renderer::recoverErrors(); // Flushing errors
{
Raz::VertexShader vertShader;
CHECK_FALSE(Raz::Renderer::hasErrors());
CHECK(vertShader.isValid());
vertShader.destroy();
... | 25.297297 | 89 | 0.696581 | Sausty |
7d3273f11efd2af5e0ee426d3c1790d19dd893b3 | 6,546 | cpp | C++ | brain/sw/components/brain-httpd/firmware_handler.cpp | tomseago/sparklemotion | 572369ff67977be3626a1162d208a33dddd33e63 | [
"MIT"
] | 24 | 2019-03-21T23:17:24.000Z | 2022-03-10T07:59:27.000Z | brain/sw/components/brain-httpd/firmware_handler.cpp | tomseago/sparklemotion | 572369ff67977be3626a1162d208a33dddd33e63 | [
"MIT"
] | 138 | 2019-03-21T23:29:48.000Z | 2022-03-22T05:01:47.000Z | brain/sw/components/brain-httpd/firmware_handler.cpp | tomseago/sparklemotion | 572369ff67977be3626a1162d208a33dddd33e63 | [
"MIT"
] | 5 | 2019-06-09T00:50:38.000Z | 2022-02-02T04:22:44.000Z | //
// Created by Tom Seago on 2019-08-07.
//
#include "firmware_handler.h"
#include "http_server.h"
#include <string.h>
#include <sys/param.h>
#include <esp_ota_ops.h>
/* Max length a file path can have on storage */
//#define FILE_PATH_MAX (ESP_VFS_PATH_MAX + CONFIG_SPIFFS_OBJ_NAME_LEN)
#define SCRATCH_BUFSIZE 819... | 33.228426 | 112 | 0.624809 | tomseago |
7d392cb87a83460a79a6304169facef98f988304 | 2,451 | cpp | C++ | test/test.cpp | AZMDDY/astar | 49ea623e042181e29a3de17bf79ec872d104fe61 | [
"MIT"
] | 2 | 2020-10-20T00:03:49.000Z | 2020-10-24T09:27:13.000Z | test/test.cpp | AZMDDY/astar | 49ea623e042181e29a3de17bf79ec872d104fe61 | [
"MIT"
] | null | null | null | test/test.cpp | AZMDDY/astar | 49ea623e042181e29a3de17bf79ec872d104fe61 | [
"MIT"
] | null | null | null | #include <iostream>
#include <random>
#include "point.hpp"
#include "map.hpp"
#include "astar.hpp"
#include "play.hpp"
using namespace astar;
Point MapRandPoint(uint32_t h, uint32_t w)
{
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<> dis(0, h * w);
auto res = dis(gen);
... | 23.122642 | 87 | 0.485924 | AZMDDY |
7d3c01ed6da3271047049ba6a690530cb4932984 | 8,237 | cpp | C++ | src/zoneserver/service/cheat/CheatService.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | src/zoneserver/service/cheat/CheatService.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | src/zoneserver/service/cheat/CheatService.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | #include "ZoneServerPCH.h"
#include "CheatService.h"
#include "../arena/ArenaService.h"
#include "../../model/gameobject/EntityEvent.h"
#include "../../model/gameobject/Entity.h"
#include "../../model/gameobject/AbstractAnchor.h"
#include "../../model/gameobject/ability/Cheatable.h"
#include "../../model/gameobject/abi... | 40.576355 | 115 | 0.613573 | mark-online |
7d42aec8e09eca5b92cc375c7235b51ff9e93e21 | 4,171 | hpp | C++ | include/foxy/impl/session/async_read.impl.hpp | djarek/foxy | c5a008760505f670e599216e003f08963c32d201 | [
"BSL-1.0"
] | null | null | null | include/foxy/impl/session/async_read.impl.hpp | djarek/foxy | c5a008760505f670e599216e003f08963c32d201 | [
"BSL-1.0"
] | null | null | null | include/foxy/impl/session/async_read.impl.hpp | djarek/foxy | c5a008760505f670e599216e003f08963c32d201 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2018-2019 Christian Mazakas (christian dot mazakas at gmail dot
// com)
//
// 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)
//
// Official repository: https://github.com/LeonineKing1199/foxy
//
#... | 28.37415 | 80 | 0.614481 | djarek |
7d43465d3369eb5606cc416932eb52bd194549d1 | 2,428 | cpp | C++ | src/container/Handle.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 45 | 2018-08-24T12:57:38.000Z | 2021-11-12T11:21:49.000Z | src/container/Handle.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | null | null | null | src/container/Handle.cpp | Lyatus/L | 0b594d722200d5ee0198b5d7b9ee72a5d1e12611 | [
"Unlicense"
] | 4 | 2019-09-16T02:48:42.000Z | 2020-07-10T03:50:31.000Z | #include "Handle.h"
#include <atomic>
#include "../system/Memory.h"
using namespace L;
static constexpr uint32_t address_bits = 48;
static constexpr uint64_t address_mask = (1ull << address_bits) - 1;
static constexpr uint64_t version_bits = 16;
static constexpr uint64_t version_mask = (1ull << version_bits) - 1;
... | 31.128205 | 92 | 0.714168 | Lyatus |
7d53e8ed09ee0737c09b0d0b08b4f8b18c49fcf2 | 3,441 | cpp | C++ | test/src/test_enumeration.cpp | ivangalkin/spotify-json | 68cfafc488ffae851cca3f556b90129cffb26be1 | [
"Apache-2.0"
] | 192 | 2016-09-29T17:10:07.000Z | 2022-03-22T15:22:48.000Z | test/src/test_enumeration.cpp | ivangalkin/spotify-json | 68cfafc488ffae851cca3f556b90129cffb26be1 | [
"Apache-2.0"
] | 35 | 2016-10-03T16:57:12.000Z | 2021-09-28T13:11:15.000Z | test/src/test_enumeration.cpp | ivangalkin/spotify-json | 68cfafc488ffae851cca3f556b90129cffb26be1 | [
"Apache-2.0"
] | 47 | 2016-09-29T08:21:32.000Z | 2022-03-19T10:05:43.000Z | /*
* Copyright (c) 2015-2016 Spotify AB
*
* 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... | 29.410256 | 106 | 0.718396 | ivangalkin |
7d5b6bc46dca279363db254f7ec569c81fbdf343 | 801 | cpp | C++ | Competitive Programming/counting_valleys.cpp | darnoceloc/Algorithms | bc455cc00d9405493c951b8ea3132e615a49c9ee | [
"MIT"
] | null | null | null | Competitive Programming/counting_valleys.cpp | darnoceloc/Algorithms | bc455cc00d9405493c951b8ea3132e615a49c9ee | [
"MIT"
] | null | null | null | Competitive Programming/counting_valleys.cpp | darnoceloc/Algorithms | bc455cc00d9405493c951b8ea3132e615a49c9ee | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <limits>
#include <fstream>
// Complete the countingValleys function below.
int countingValleys(int n, std::string s) {
int elevation = 0;
int valleys = 0;
for(int i = 0; i < n; i++){
if(elevation == 0 && s[i] == 'D'){
valleys += 1;
... | 19.536585 | 71 | 0.503121 | darnoceloc |
7d603fbc768f522484dd1870294162a515fa6ce7 | 1,990 | cpp | C++ | PraktiskieDarbi/praktiskaisDarbs1.cpp | ElizaGulbe/MIprogramma_darbi | 4b1e027afe939317046d82e99d65a4d22d84651e | [
"MIT"
] | null | null | null | PraktiskieDarbi/praktiskaisDarbs1.cpp | ElizaGulbe/MIprogramma_darbi | 4b1e027afe939317046d82e99d65a4d22d84651e | [
"MIT"
] | null | null | null | PraktiskieDarbi/praktiskaisDarbs1.cpp | ElizaGulbe/MIprogramma_darbi | 4b1e027afe939317046d82e99d65a4d22d84651e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
using namespace std;
float computeAvgValue(int arr[10]){
float sum = 0;
for (int i = 0; i <= 9; i++) {
sum += arr[i];
}
float average = sum/10;
return average;
}
float findBiggest(float arr[10]) {
float curBiggest = arr[0];
... | 22.359551 | 115 | 0.51608 | ElizaGulbe |
7d60c646d8121c85bd5c9787487373c9855e66da | 1,848 | cpp | C++ | frameworks/runtime-src/Classes/lua-binding/manual/lua_cocos2dx_plugin_manual.cpp | edwardzhou/ddz-client | ed5db2b625cc55192027ffd69e0ec5f342a40222 | [
"MIT"
] | 5 | 2018-01-22T13:00:11.000Z | 2021-02-20T04:24:30.000Z | frameworks/runtime-src/Classes/lua-binding/manual/lua_cocos2dx_plugin_manual.cpp | edwardzhou/ddz-client | ed5db2b625cc55192027ffd69e0ec5f342a40222 | [
"MIT"
] | null | null | null | frameworks/runtime-src/Classes/lua-binding/manual/lua_cocos2dx_plugin_manual.cpp | edwardzhou/ddz-client | ed5db2b625cc55192027ffd69e0ec5f342a40222 | [
"MIT"
] | 5 | 2018-01-10T00:40:29.000Z | 2021-08-22T14:12:44.000Z | #include "lua_cocos2dx_plugin_manual.hpp"
#include "PluginManager.h"
#include "PluginProtocol.h"
#include "ProtocolAnalytics.h"
#include "PluginParam.h"
#include "tolua_fix.h"
#include "LuaBasicConversions.h"
int tolua_Cocos2d_plugin_PluginProtocol_callFuncWithParam00(lua_State* tolua_S)
{
int argc = 0;
cocos2... | 24.315789 | 125 | 0.6829 | edwardzhou |
7d629a2a0ec8fc39bc991f5e0e713bd7433d5e1a | 2,122 | cpp | C++ | src/person.cpp | arctech-training-worldline-cpp/HospitalManagementDemo | a553c9fa523ac1308564e424ce996a676557d91f | [
"MIT"
] | 7 | 2021-07-04T18:18:02.000Z | 2022-02-20T14:29:23.000Z | src/person.cpp | arctech-training-worldline-cpp/HospitalManagementDemo | a553c9fa523ac1308564e424ce996a676557d91f | [
"MIT"
] | null | null | null | src/person.cpp | arctech-training-worldline-cpp/HospitalManagementDemo | a553c9fa523ac1308564e424ce996a676557d91f | [
"MIT"
] | 2 | 2021-11-08T13:30:34.000Z | 2021-11-16T02:57:26.000Z | using namespace std;
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include "./../include/global.hh"
#include "./../include/person.hh"
person::person()
{
id = -1;
}
void person::addPerson(int16_t minAge, int16_t maxAge)
{
//getting basic details of the person fr... | 30.314286 | 134 | 0.494816 | arctech-training-worldline-cpp |
7d667e5944be9ad5c6921f9e298ff28bd8beec5d | 3,161 | cpp | C++ | project3D/GameObject.cpp | nandos13/Shadercpp | 404f2ab8d3b32073a54945081d74fac46bdd0178 | [
"MIT"
] | null | null | null | project3D/GameObject.cpp | nandos13/Shadercpp | 404f2ab8d3b32073a54945081d74fac46bdd0178 | [
"MIT"
] | null | null | null | project3D/GameObject.cpp | nandos13/Shadercpp | 404f2ab8d3b32073a54945081d74fac46bdd0178 | [
"MIT"
] | null | null | null | #include "GameObject.h"
#include "Application3D.h"
#include <limits>
glm::mat4 GameObject::getMatrixTransform()
{
// Define radian
float rad = 3.14f / 180.0f;
glm::mat4 transform = glm::translate(m_translation)
* glm::rotate(m_rotationEuler.z * rad, glm::vec3(0, 0, 1))
* glm::rotate(m_rotationEuler.y * rad, glm... | 25.288 | 93 | 0.693135 | nandos13 |
7d670b5a68f4d4dcb4a193ed68aa5994f9d91229 | 4,690 | hpp | C++ | order.hpp | chaosmw/youdex | 78e1c20548183b7c9b30ec924ff0711c029123ef | [
"MIT"
] | 1 | 2020-08-29T09:53:29.000Z | 2020-08-29T09:53:29.000Z | order.hpp | chaosmw/youdex | 78e1c20548183b7c9b30ec924ff0711c029123ef | [
"MIT"
] | null | null | null | order.hpp | chaosmw/youdex | 78e1c20548183b7c9b30ec924ff0711c029123ef | [
"MIT"
] | null | null | null | #pragma once
#include <eosiolib/eosio.hpp>
#include <eosiolib/asset.hpp>
#include "exchange_types.hpp"
using namespace eosio;
using namespace std;
namespace dex {
// caution: the order is deliberately designd for matching routine, do not change it!!!
// see get_range
enum order_type: uint8_t {
RE... | 34.740741 | 114 | 0.550746 | chaosmw |
de10e86dc85a333467721695dbb3f08c264feceb | 6,008 | cpp | C++ | cpp/oneapi/dal/algo/pca/backend/gpu/train_kernel_cov_dpc.cpp | dmitrii-kriukov/oneDAL | e962159893ffabdcc601f999f998ce2373c3ce71 | [
"Apache-2.0"
] | null | null | null | cpp/oneapi/dal/algo/pca/backend/gpu/train_kernel_cov_dpc.cpp | dmitrii-kriukov/oneDAL | e962159893ffabdcc601f999f998ce2373c3ce71 | [
"Apache-2.0"
] | 1 | 2021-05-04T13:03:30.000Z | 2021-05-04T13:03:30.000Z | cpp/oneapi/dal/algo/pca/backend/gpu/train_kernel_cov_dpc.cpp | dmitrii-kriukov/oneDAL | e962159893ffabdcc601f999f998ce2373c3ce71 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2020-2021 Intel Corporation
*
* 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.apa... | 44.176471 | 98 | 0.672437 | dmitrii-kriukov |
de110e5302019a7f0ee9f279285372df74156109 | 6,765 | cpp | C++ | src/extern/inventor/lib/database/src/so/nodes/SoCallback.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/lib/database/src/so/nodes/SoCallback.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/lib/database/src/so/nodes/SoCallback.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights 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 opti... | 25.820611 | 77 | 0.520177 | OpenXIP |
de1856ea478f66b6f47989f7c6f155c6fd50efce | 156 | cpp | C++ | codeforces/656A.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | codeforces/656A.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | codeforces/656A.cpp | Shisir/Online-Judge | e58c32eeb7ca18a19cc2a83ef016f9c3b124370a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long a,res=1;
cin>>a;
for(int i=1; i<=a; i++)res*=2;
cout<< res<<endl;;
return 0;
} | 13 | 31 | 0.576923 | Shisir |
de1c1a9cd315d35bd625c7f15bde751057a7371d | 2,918 | cpp | C++ | kinesis-video-pic/src/mkvgen/tst/AudioCpdParserTest.cpp | nsharma098/amazon-kinesis-video-streams-producer-sdk-cpp | e3b63724494b16e00079027ccc232e8914731d66 | [
"Apache-2.0"
] | 1 | 2021-04-29T08:08:10.000Z | 2021-04-29T08:08:10.000Z | kinesis-video-pic/src/mkvgen/tst/AudioCpdParserTest.cpp | jonmnick/aws-kinesis-cpp-sdk | f7d4a0fa67081780808f5b1e4cc8b97697953a72 | [
"Apache-2.0"
] | null | null | null | kinesis-video-pic/src/mkvgen/tst/AudioCpdParserTest.cpp | jonmnick/aws-kinesis-cpp-sdk | f7d4a0fa67081780808f5b1e4cc8b97697953a72 | [
"Apache-2.0"
] | null | null | null | #include "MkvgenTestFixture.h"
class AudioCpdParserTest : public MkvgenTestBase {
};
TEST_F(AudioCpdParserTest, audioCpdParser_InvalidInput)
{
BYTE cpd[] = {0x00, 0x00};
UINT32 cpdSize = 2;
DOUBLE samplingFrequency;
UINT16 channelConfig;
EXPECT_NE(STATUS_SUCCESS, getSamplingFreqAndChannelFromAacC... | 42.911765 | 154 | 0.789239 | nsharma098 |
de1e527e8357da26a93b7b50f7bfc04c6d250be5 | 18,329 | cpp | C++ | game/server/tfo/npc_monster.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | 13 | 2016-04-05T23:23:16.000Z | 2022-03-20T11:06:04.000Z | game/server/tfo/npc_monster.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | null | null | null | game/server/tfo/npc_monster.cpp | BerntA/tfo-code | afa3ea06a64cbbf7a9370b214ea5e80e69d9d7a1 | [
"MIT"
] | 4 | 2016-04-05T23:23:19.000Z | 2021-05-16T05:09:46.000Z | //========= Copyright Bernt Andreas Eide, All rights reserved. ============//
//
// Purpose: Custom Monster NPC Entity - Allows parsing of unique stuff. Parses npc scripts in resource/data/npc
//
//=============================================================================//
#include "cbase.h"
#include "ai_basenpc.h... | 31.171769 | 136 | 0.540564 | BerntA |
de23c456db92799c7cdedb8b84d59f75e6bbe413 | 843 | cpp | C++ | matrix/matrix_power.cpp | ShinyaKato/competitive-programming-utils | 53ae76cdc427dd816a7a11147d80a172fb16bcc3 | [
"Apache-2.0"
] | 1 | 2017-12-16T14:08:49.000Z | 2017-12-16T14:08:49.000Z | matrix/matrix_power.cpp | ShinyaKato/competitive-programming-utils | 53ae76cdc427dd816a7a11147d80a172fb16bcc3 | [
"Apache-2.0"
] | 2 | 2018-07-03T17:19:18.000Z | 2018-07-03T17:23:10.000Z | matrix/matrix_power.cpp | ShinyaKato/competitive-programming-utils | 53ae76cdc427dd816a7a11147d80a172fb16bcc3 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define REP(i, a, n) for(ll i = ((ll) a); i < ((ll) n); i++)
#define MOD 1000000007LL
using namespace std;
typedef long long ll;
typedef vector<ll> vec;
typedef vector<vec> mat;
mat mul(mat &A, mat &B) {
mat C(A.size(), vector<ll>(B[0].size()));
REP(i, 0, A.size())
REP(j, 0, B[0].size(... | 24.085714 | 82 | 0.487544 | ShinyaKato |
de2bb30cb5a58184d70f4d07c3c6ca056aeddab0 | 82 | hpp | C++ | src/elona/main.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | 84 | 2018-03-03T02:44:32.000Z | 2019-07-14T16:16:24.000Z | src/elona/main.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | 685 | 2018-02-27T04:31:17.000Z | 2019-07-12T13:43:00.000Z | src/elona/main.hpp | XrosFade/ElonaFoobar | c33880080e0b475103ae3ea7d546335f9d4abd02 | [
"MIT"
] | 23 | 2019-07-26T08:52:38.000Z | 2021-11-09T09:21:58.000Z | #pragma once
namespace elona
{
int run(int argc, const char* const* argv);
}
| 7.454545 | 43 | 0.670732 | XrosFade |
de331995ccb829155f588de8da5537d04ddaa885 | 3,694 | hpp | C++ | src/Core/TransactionExtra.hpp | mygirl8893/evo | c90f69ad6132c426042749ff3fe4174d22aa63b2 | [
"MIT"
] | 1 | 2019-05-20T01:00:40.000Z | 2019-05-20T01:00:40.000Z | src/Core/TransactionExtra.hpp | mygirl8893/evo | c90f69ad6132c426042749ff3fe4174d22aa63b2 | [
"MIT"
] | 4 | 2018-05-07T07:15:53.000Z | 2018-06-01T19:35:46.000Z | src/Core/TransactionExtra.hpp | mygirl8893/evo | c90f69ad6132c426042749ff3fe4174d22aa63b2 | [
"MIT"
] | 10 | 2018-05-09T10:45:07.000Z | 2020-01-11T17:21:28.000Z | #pragma once
#include <boost/variant.hpp>
#include <vector>
#include "CryptoNote.hpp"
#include "seria/ISeria.hpp"
namespace cryptonote {
enum { TX_EXTRA_PADDING_MAX_COUNT = 255, TX_EXTRA_NONCE_MAX_COUNT = 255, TX_EXTRA_NONCE_PAYMENT_ID = 0x00 };
struct TransactionExtraPadding {
size_t size = 0;
enu... | 30.783333 | 117 | 0.73281 | mygirl8893 |
de337a4c7dc31a4813842329f7ad3796967d3438 | 2,123 | cpp | C++ | Visual Mercutio/zBaseLib/PSS_Splitter.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zBaseLib/PSS_Splitter.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zBaseLib/PSS_Splitter.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_Splitter --------------------------------------------------------*
****************************************************************************
* Description : Provides a splitter *
* Devel... | 37.910714 | 78 | 0.370231 | Jeanmilost |
de340e9fd170a18b5163c178219e094171ac96ed | 7,769 | cpp | C++ | main/source/cl_dll/util.cpp | fmoraw/NS | 6c3ae93ca7f929f24da4b8f2d14ea0602184cf08 | [
"Unlicense"
] | 27 | 2015-01-05T19:25:14.000Z | 2022-03-20T00:34:34.000Z | main/source/cl_dll/util.cpp | fmoraw/NS | 6c3ae93ca7f929f24da4b8f2d14ea0602184cf08 | [
"Unlicense"
] | 9 | 2015-01-14T06:51:46.000Z | 2021-03-19T12:07:18.000Z | main/source/cl_dll/util.cpp | fmoraw/NS | 6c3ae93ca7f929f24da4b8f2d14ea0602184cf08 | [
"Unlicense"
] | 5 | 2015-01-11T10:31:24.000Z | 2021-01-06T01:32:58.000Z | /***
*
* Copyright (c) 1999, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* ... | 24.663492 | 126 | 0.604582 | fmoraw |
de3593ab1508ac91eba7bd889caff87e1e6a0703 | 2,088 | cpp | C++ | json_rest_test/Client.cpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | 1 | 2020-05-22T08:47:00.000Z | 2020-05-22T08:47:00.000Z | json_rest_test/Client.cpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | null | null | null | json_rest_test/Client.cpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | null | null | null | #include <tm_kit/infra/RealTimeApp.hpp>
#include <tm_kit/infra/Environments.hpp>
#include <tm_kit/infra/TerminationController.hpp>
#include <tm_kit/infra/DeclarativeGraph.hpp>
#include <tm_kit/basic/real_time_clock/ClockComponent.hpp>
#include <tm_kit/basic/SpdLoggingComponent.hpp>
#include <tm_kit/transport/CrossGui... | 31.164179 | 77 | 0.621169 | cd606 |
de37255f5b9a56dec1a112ec3c95d5d573ec19e0 | 10,212 | cpp | C++ | videodecodethread.cpp | Whatchado/storyrecorder | a442ebf2f5f5920f965ec5c07fddeec38a2a7aab | [
"Zlib"
] | null | null | null | videodecodethread.cpp | Whatchado/storyrecorder | a442ebf2f5f5920f965ec5c07fddeec38a2a7aab | [
"Zlib"
] | null | null | null | videodecodethread.cpp | Whatchado/storyrecorder | a442ebf2f5f5920f965ec5c07fddeec38a2a7aab | [
"Zlib"
] | null | null | null | #include "videodecodethread.h"
#include <QTime>
#include <QElapsedTimer>
#include "video_image.h"
#include "log.h"
VideoDecodeThread::VideoDecodeThread(QObject *parent) :
QThread(parent)
{
is_Running=false;
doStop=false;
isPaused=false;
doPause=false;
vbuffer=NULL;
doSeek=-1;
got_audiof... | 33.592105 | 145 | 0.588915 | Whatchado |
de3c4c6c328d2f6f66cddaf09aadd757796f46b3 | 4,486 | hh | C++ | src/kinetics/SyntheticMomentSource.i.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/kinetics/SyntheticMomentSource.i.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/kinetics/SyntheticMomentSource.i.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/**
* @file SyntheticMomentSource.i.hh
* @brief SyntheticMomentSource inline member definitions
* @author Jeremy Roberts
* @date Nov 15, 2012
*/
//---------------------------------------------------------------------------//
... | 34.244275 | 114 | 0.476371 | RLReed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.