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 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ccee7478fd0e8a053cba7962f9c04078dc9395c | 760 | cpp | C++ | TypesetWidget/commanddeletetext.cpp | Math-Collection/YAWYSIWYGEE-Qt-Equation-Editor-Widget | c4e177bff5edff8122ec73a7ed8f325b42fc74b4 | [
"MIT"
] | 2 | 2020-03-28T15:35:08.000Z | 2021-01-10T06:50:05.000Z | TypesetWidget/commanddeletetext.cpp | Qt-Widgets/YAWYSIWYGEE-Qt-Equation-Editor-Widget | 040383a8db795bb863c451caf4022018181afaf1 | [
"MIT"
] | null | null | null | TypesetWidget/commanddeletetext.cpp | Qt-Widgets/YAWYSIWYGEE-Qt-Equation-Editor-Widget | 040383a8db795bb863c451caf4022018181afaf1 | [
"MIT"
] | null | null | null | #include "commanddeletetext.h"
#include "cursor.h"
namespace Typeset{
CommandDeleteText::CommandDeleteText(Cursor& cursor, Text* t, QTextCursor cL, QTextCursor cR)
: cursor(cursor),
t(t) {
pL = cL.position();
pR = cR.position();
c = cL;
c.setPosition(cR.position(), QTextCursor::KeepAnchor);... | 21.714286 | 93 | 0.643421 |
5cd296a9e3c20beb27681f3bfe1b82f42f95c4c1 | 21,491 | cpp | C++ | tests/test_lib_2d.cpp | I3ck/lib_2d | b13267e8b06f8b1908f6681a983bddf5c10ca05a | [
"MIT"
] | 51 | 2015-01-26T23:09:10.000Z | 2021-12-16T05:43:59.000Z | tests/test_lib_2d.cpp | I3ck/lib_2d | b13267e8b06f8b1908f6681a983bddf5c10ca05a | [
"MIT"
] | 1 | 2016-01-08T11:38:42.000Z | 2016-01-09T12:10:30.000Z | tests/test_lib_2d.cpp | I3ck/lib_2d | b13267e8b06f8b1908f6681a983bddf5c10ca05a | [
"MIT"
] | 1 | 2017-09-28T09:06:45.000Z | 2017-09-28T09:06:45.000Z | /*
Copyright (c) 2014 - 2015 Martin Buck
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, pu... | 25.924005 | 151 | 0.573077 |
5cd323e2d31d861165bfadfdce0e6c41f0e91ca8 | 4,970 | tcc | C++ | flens/blas/level1/raxpy.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/blas/level1/raxpy.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/blas/level1/raxpy.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | /*
* Copyright (c) 2012, Michael Lehn
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice,... | 30.121212 | 78 | 0.645272 |
5cd3570a357b9a4becdc314a42657c5218f9cf78 | 309 | cpp | C++ | examples/qcor_demos/pnnl_tutorials/1_kernels/ccnot_qfast.cpp | vetter/qcor | 6f86835737277a26071593bb10dd8627c29d74a3 | [
"BSD-3-Clause"
] | 59 | 2019-08-22T18:40:38.000Z | 2022-03-09T04:12:42.000Z | examples/qcor_demos/pnnl_tutorials/1_kernels/ccnot_qfast.cpp | vetter/qcor | 6f86835737277a26071593bb10dd8627c29d74a3 | [
"BSD-3-Clause"
] | 137 | 2019-09-13T15:50:18.000Z | 2021-12-06T14:19:46.000Z | examples/qcor_demos/pnnl_tutorials/1_kernels/ccnot_qfast.cpp | vetter/qcor | 6f86835737277a26071593bb10dd8627c29d74a3 | [
"BSD-3-Clause"
] | 26 | 2019-07-08T17:30:35.000Z | 2021-12-03T16:24:12.000Z |
__qpu__ void ccnot(qreg q) {
decompose {
UnitaryMatrix ccnot_mat = UnitaryMatrix::Identity(8, 8);
ccnot_mat(6, 6) = 0.0;
ccnot_mat(7, 7) = 0.0;
ccnot_mat(6, 7) = 1.0;
ccnot_mat(7, 6) = 1.0;
}
(q, QFAST);
}
int main() {
auto q = qalloc(3);
ccnot::print_kernel(q);
return 0;
} | 17.166667 | 60 | 0.572816 |
5cd48f36f264bf9e2c1f1cfbe788d0b70faf89f6 | 267 | cc | C++ | benchmarks/0000.10m_size_t/strings/size_t/fmtformat_int.cc | EwoutH/fast_io | 1393ef01b82dffa87f3008ec0898431865870a1f | [
"MIT"
] | 2 | 2020-07-20T06:07:20.000Z | 2020-10-21T08:53:49.000Z | benchmarks/0000.10m_size_t/strings/size_t/fmtformat_int.cc | EwoutH/fast_io | 1393ef01b82dffa87f3008ec0898431865870a1f | [
"MIT"
] | null | null | null | benchmarks/0000.10m_size_t/strings/size_t/fmtformat_int.cc | EwoutH/fast_io | 1393ef01b82dffa87f3008ec0898431865870a1f | [
"MIT"
] | null | null | null | #include"../../../timer.h"
#include<fmt/format.h>
int main()
{
constexpr std::size_t N(200000000);
std::size_t value{};
{
fast_io::timer t("fmt::format_int");
for(std::size_t i{};i!=N;++i)
value+=fmt::format_int(i).str().size();
}
println("value:",value);
} | 19.071429 | 41 | 0.614232 |
5cd51a933cc3bfa003384ad5feff282e29ac0ede | 7,362 | cpp | C++ | multimedia/directx/dplay/dplay8/sp/wsock/locals.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/directx/dplay/dplay8/sp/wsock/locals.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/directx/dplay/dplay8/sp/wsock/locals.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*==========================================================================
*
* Copyright (C) 1998-2002 Microsoft Corporation. All Rights Reserved.
*
* File: Locals.cpp
* Content: Global variables for the DNWsock service provider
*
*
* History:
* Date By Reason
* ==== == ======
... | 30.04898 | 113 | 0.625917 |
5cd67a6323c938d13e7ca548f26524eb93c5ca2a | 1,146 | cpp | C++ | deps/mozjs/js/src/v8api/test/test_handle.cpp | zpao/spidernode | 843d5b5e9be55ce447fd03127aeeb2c7728ae168 | [
"MIT"
] | 48 | 2015-01-09T20:39:35.000Z | 2021-12-21T21:17:52.000Z | deps/mozjs/js/src/v8api/test/test_handle.cpp | ninja1002/spidernode | ada8fc559bd2c047a6e52c78af9d27ab273c87d5 | [
"MIT"
] | 2 | 2016-02-05T10:27:37.000Z | 2019-01-22T16:22:51.000Z | deps/mozjs/js/src/v8api/test/test_handle.cpp | ninja1002/spidernode | ada8fc559bd2c047a6e52c78af9d27ab273c87d5 | [
"MIT"
] | 8 | 2015-01-12T17:14:36.000Z | 2018-09-15T14:10:27.000Z | /* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
#include "v8api_test_harness.h"
////////////////////////////////////////////////////////////////////////////////
//// Tests
void
test_ArrayConversion()
{
HandleScope handle_scope;
Persistent<Context> conte... | 23.387755 | 80 | 0.602967 |
5cd7b02652bcf3eb19abc275c3682832010e23a3 | 398 | cpp | C++ | src/algos/connection.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | 5 | 2016-03-17T07:02:11.000Z | 2021-12-12T14:43:58.000Z | src/algos/connection.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | null | null | null | src/algos/connection.cpp | mhough/braingl | 53e2078adc10731ee62feec11dcb767c4c6c0d35 | [
"MIT"
] | 3 | 2015-10-29T15:21:01.000Z | 2020-11-25T09:41:21.000Z | /*
* connection.cpp
*
* Created on: Apr 30, 2013
* Author: boettgerj
*/
#include "connection.h"
#include "qmath.h"
Connection::Connection( QVector3D fn, QVector3D diff, float v ) :
fn( fn ),
diff( diff ),
v( v )
{
QVector3D diffn = diff.normalized();
r=qAbs(diffn.x());
g=... | 13.724138 | 65 | 0.557789 |
5ce1cf2c85f5c6504197bfe1a1e24e94ee48e855 | 4,033 | cpp | C++ | source/IrrOdeTestBed/tests/CTestCar.cpp | inniyah/irrode | 0ecb125933ef828995e4fd557410acf703bea0e2 | [
"bzip2-1.0.6"
] | 1 | 2018-01-17T22:57:55.000Z | 2018-01-17T22:57:55.000Z | source/IrrOdeTestBed/tests/CTestCar.cpp | inniyah/irrode | 0ecb125933ef828995e4fd557410acf703bea0e2 | [
"bzip2-1.0.6"
] | null | null | null | source/IrrOdeTestBed/tests/CTestCar.cpp | inniyah/irrode | 0ecb125933ef828995e4fd557410acf703bea0e2 | [
"bzip2-1.0.6"
] | null | null | null | #include <tests/CTestCar.h>
CTestCar::CTestCar(irr::IrrlichtDevice *pDevice, IRunner *pRunner) : IState(pDevice, pRunner) {
m_sName=L"Car Test";
m_sDescr=L"Test with user controlled car";
}
void CTestCar::activate() {
m_pSmgr->loadScene(DATADIR "/scenes/Testbed_car.xml");
m_pCam=m_pSmgr->addCamer... | 33.890756 | 114 | 0.629804 |
5ce80c86538d991c55a3fe4c1c3693a440ac9c49 | 405 | hpp | C++ | src/games/chess.hpp | RememberOfLife/mirabel | 4ff62d6b9dbb0bde6a9755e9e2b1fca88baed8af | [
"MIT"
] | 2 | 2022-03-29T08:39:24.000Z | 2022-03-30T09:22:18.000Z | src/games/chess.hpp | RememberOfLife/mirabel | 4ff62d6b9dbb0bde6a9755e9e2b1fca88baed8af | [
"MIT"
] | null | null | null | src/games/chess.hpp | RememberOfLife/mirabel | 4ff62d6b9dbb0bde6a9755e9e2b1fca88baed8af | [
"MIT"
] | null | null | null | #pragma once
#include "surena/game.h"
#include "games/game_catalogue.hpp"
namespace Games {
class Chess : public BaseGameVariant {
public:
Chess();
~Chess();
game* new_game() override;
void draw_options() override;
void draw_state_editor(game*... | 18.409091 | 65 | 0.582716 |
5ce9b755d89a4db853ce4dd62b33cc76509f16df | 1,259 | cpp | C++ | Chapters/Chapter13/GoldenEgg/Source/GoldenEgg/SpellForceField.cpp | PacktPublishing/Learning-Cpp-by-Creating-Games-with-Unreal-Engine-4-Second-Edition | 751edc780ba4c87d0a62acd53eacd9f562e06736 | [
"MIT"
] | null | null | null | Chapters/Chapter13/GoldenEgg/Source/GoldenEgg/SpellForceField.cpp | PacktPublishing/Learning-Cpp-by-Creating-Games-with-Unreal-Engine-4-Second-Edition | 751edc780ba4c87d0a62acd53eacd9f562e06736 | [
"MIT"
] | null | null | null | Chapters/Chapter13/GoldenEgg/Source/GoldenEgg/SpellForceField.cpp | PacktPublishing/Learning-Cpp-by-Creating-Games-with-Unreal-Engine-4-Second-Edition | 751edc780ba4c87d0a62acd53eacd9f562e06736 | [
"MIT"
] | null | null | null | #include "GoldenEgg.h"
#include "SpellForceField.h"
#include "Monster.h"
ASpellForceField::ASpellForceField(const class FObjectInitializer& PCIP) : Super(PCIP)
{
ProxSphere = PCIP.CreateDefaultSubobject<USphereComponent>(this, TEXT("ProxSphere"));
ProxSphere->AttachTo( Particles );
Force = 1000;
}
void ASpellForce... | 27.369565 | 88 | 0.706116 |
5ce9e43f9f473d28a1e6d492cfba214cec9951a4 | 424 | hpp | C++ | src/wifi.hpp | ixsiid/espidf-utility | 06959c10883c9302345e34c23027f75491ec2159 | [
"MIT"
] | null | null | null | src/wifi.hpp | ixsiid/espidf-utility | 06959c10883c9302345e34c23027f75491ec2159 | [
"MIT"
] | null | null | null | src/wifi.hpp | ixsiid/espidf-utility | 06959c10883c9302345e34c23027f75491ec2159 | [
"MIT"
] | null | null | null | #ifndef __UTILITY_WIFI_H
#define __UTILITY_WIFI_H
#include <lwip/inet.h>
class WiFi {
private:
WiFi();
static bool initialized;
static ip4_addr_t ip;
static ip4_addr_t gateway;
static ip4_addr_t subnetmask;
static bool connected;
public:
static bool Connect(const char* ssid, const char* password);
st... | 19.272727 | 61 | 0.75 |
5cee282eefe7faf54143a5c8da6d24341b0e2de5 | 4,436 | cpp | C++ | src_smartcontract/lang/sc_expression/ConstructorArray.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract/lang/sc_expression/ConstructorArray.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract/lang/sc_expression/ConstructorArray.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* ConstructorArray.cpp
*
* Created on: 2020/02/12
* Author: iizuka
*/
#include "lang/sc_expression/ConstructorArray.h"
#include "engine/sc_analyze/AnalyzeContext.h"
#include "engine/sc_analyze/AnalyzedType.h"
#include "engine/sc_analyze/AnalyzedThisClassStackPopper.h"
#include "engine/sc_analyze/Validat... | 24.240437 | 129 | 0.714833 |
5cf4de84e9ae80dd20b510e889854a9125e9131b | 17,124 | cpp | C++ | codec/encoder/core/src/svc_mode_decision.cpp | zhuling13/openh264 | 47a2e65327e0081bac87529ed26cfbc377ed4ddc | [
"BSD-2-Clause"
] | null | null | null | codec/encoder/core/src/svc_mode_decision.cpp | zhuling13/openh264 | 47a2e65327e0081bac87529ed26cfbc377ed4ddc | [
"BSD-2-Clause"
] | null | null | null | codec/encoder/core/src/svc_mode_decision.cpp | zhuling13/openh264 | 47a2e65327e0081bac87529ed26cfbc377ed4ddc | [
"BSD-2-Clause"
] | null | null | null | /*!
* \copy
* Copyright (c) 2009-2013, Cisco Systems
* 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 abo... | 41.362319 | 134 | 0.683076 |
9dc660aa4e41a0a15474be534d00deb672134692 | 5,962 | cpp | C++ | xlw/InterfaceGenerator/ParserData.cpp | jbriand/xlw | 82b98a12f3c99876e54baa33ff2cb6786df141f7 | [
"BSD-3-Clause"
] | 34 | 2020-08-10T16:06:50.000Z | 2022-03-02T18:58:03.000Z | xlw/InterfaceGenerator/ParserData.cpp | jbriand/xlw | 82b98a12f3c99876e54baa33ff2cb6786df141f7 | [
"BSD-3-Clause"
] | 18 | 2020-08-02T23:31:28.000Z | 2022-03-29T11:55:06.000Z | xlw/InterfaceGenerator/ParserData.cpp | jbriand/xlw | 82b98a12f3c99876e54baa33ff2cb6786df141f7 | [
"BSD-3-Clause"
] | 11 | 2020-07-27T20:44:10.000Z | 2022-02-02T20:58:59.000Z |
/*
Copyright (C) 2006 Mark Joshi
Copyright (C) 2007, 2008 Eric Ehlers
Copyright (C) 2011 Narinder Claire
This file is part of XLW, a free-software/open-source C++ wrapper of the
Excel C API - https://xlw.github.io/
XLW is free software: you can redistribute it and/or modify it under the
terms of the XLW licen... | 28.526316 | 87 | 0.626468 |
9dc6aa79772b5cec8310264f1cedb43cc91d9598 | 5,042 | hpp | C++ | include/codegen/include/Zenject/ConventionBindInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/ConventionBindInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/ConventionBindInfo.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:42 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... | 46.256881 | 149 | 0.735026 |
9dc97e63f1312f8a4b80091897bc140aa30d23e8 | 2,742 | cpp | C++ | fifa_gp/predict.cpp | vittorioorlandi/STA663_FIFA_GP | cb5532f8104fa630b8ea6930f414e3228349ae52 | [
"MIT"
] | null | null | null | fifa_gp/predict.cpp | vittorioorlandi/STA663_FIFA_GP | cb5532f8104fa630b8ea6930f414e3228349ae52 | [
"MIT"
] | null | null | null | fifa_gp/predict.cpp | vittorioorlandi/STA663_FIFA_GP | cb5532f8104fa630b8ea6930f414e3228349ae52 | [
"MIT"
] | null | null | null | #include <random>
#include <Eigen/Dense>
#include "HODLR_Tree.hpp"
#include <pybind11/pybind11.h>
#include <pybind11/eigen.h>
#include <squaredeMat.hpp> //squared exponential kernel
#include <squaredeP1Mat.hpp>
using std::normal_distribution;
namespace py = pybind11;
Eigen::MatrixXd predict(Eigen::MatrixXd X, Eigen::... | 29.804348 | 217 | 0.598833 |
9dcad50264e88cff26db3972553fda33ead5bcca | 4,101 | hpp | C++ | bridge/cxx/include/bhxx/array_create.hpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 236 | 2015-03-31T15:39:30.000Z | 2022-03-24T01:43:14.000Z | bridge/cxx/include/bhxx/array_create.hpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 324 | 2015-05-27T10:35:38.000Z | 2021-12-10T07:34:10.000Z | bridge/cxx/include/bhxx/array_create.hpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 41 | 2015-05-26T12:38:42.000Z | 2022-01-10T15:16:37.000Z | /*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 3
of the License, or (at your option) ... | 29.503597 | 89 | 0.692758 |
9dce0e149a08610f1a2950d2187835a1c26aa293 | 2,094 | cpp | C++ | Matrix.cpp | kamindustries/SenseTOP | 2e19923b0d5461df664bffb30adbcccc0d0530d1 | [
"MIT"
] | 3 | 2017-06-30T17:50:11.000Z | 2019-07-25T11:01:00.000Z | Matrix.cpp | kamindustries/SenseTOP | 2e19923b0d5461df664bffb30adbcccc0d0530d1 | [
"MIT"
] | null | null | null | Matrix.cpp | kamindustries/SenseTOP | 2e19923b0d5461df664bffb30adbcccc0d0530d1 | [
"MIT"
] | null | null | null | /* Shared Use License: This file is owned by Derivative Inc. (Derivative) and
* can only be used, and/or modified for use, in conjunction with
* Derivative's TouchDesigner software, and only if you are a licensee who has
* accepted Derivative's TouchDesigner license or assignment agreement (which
* also govern the ... | 43.625 | 80 | 0.472302 |
9dd070c48e471b1ca04cc3c26cba796e857afa25 | 426 | cpp | C++ | src/ElfLoader/Core/Exceptions/ProcessorBinaryShutdownException.cpp | nathanmentley/-elf-loader | 9f484fa61592e3af6835858961bf6290436fb418 | [
"MIT"
] | null | null | null | src/ElfLoader/Core/Exceptions/ProcessorBinaryShutdownException.cpp | nathanmentley/-elf-loader | 9f484fa61592e3af6835858961bf6290436fb418 | [
"MIT"
] | null | null | null | src/ElfLoader/Core/Exceptions/ProcessorBinaryShutdownException.cpp | nathanmentley/-elf-loader | 9f484fa61592e3af6835858961bf6290436fb418 | [
"MIT"
] | null | null | null | //
// ProcessorBinaryShutdownException.cpp
// elf-loader
//
// Created by Nathan Mentley on 4/29/20.
// Copyright © 2020 Nathan Mentley. All rights reserved.
//
#include <ElfLoader/Core/Exceptions/ProcessorBinaryShutdownException.h>
Core::Exceptions::ProcessorBinaryShutdownException::ProcessorBinaryShutdownExcept... | 32.769231 | 85 | 0.788732 |
9dd2e4bb8318b8f7298242866853681f7f10c2f7 | 8,950 | cpp | C++ | src/qt/qtbase/tests/auto/dbus/qdbusservicewatcher/tst_qdbusservicewatcher.cpp | zwollerob/PhantomJS_AMR6VL | 71c126e98a8c32950158d04d0bd75823cd008b99 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/auto/dbus/qdbusservicewatcher/tst_qdbusservicewatcher.cpp | zwollerob/PhantomJS_AMR6VL | 71c126e98a8c32950158d04d0bd75823cd008b99 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/auto/dbus/qdbusservicewatcher/tst_qdbusservicewatcher.cpp | zwollerob/PhantomJS_AMR6VL | 71c126e98a8c32950158d04d0bd75823cd008b99 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | 33.395522 | 105 | 0.694637 |
9dd2e5a3c90f39861f1c914e51c8c060b3b39e11 | 2,613 | cpp | C++ | ext/slamtools/src/slamtools/configurator.cpp | lemonlikelihood/vig_annotation | b83a2627cbcb2499c5f90cfacda71b670e1b659f | [
"Apache-2.0"
] | 1 | 2020-07-15T08:42:11.000Z | 2020-07-15T08:42:11.000Z | ext/slamtools/src/slamtools/configurator.cpp | lemonlikelihood/vig_annotation | b83a2627cbcb2499c5f90cfacda71b670e1b659f | [
"Apache-2.0"
] | null | null | null | ext/slamtools/src/slamtools/configurator.cpp | lemonlikelihood/vig_annotation | b83a2627cbcb2499c5f90cfacda71b670e1b659f | [
"Apache-2.0"
] | null | null | null | #include <slamtools/configurator.h>
using namespace Eigen;
std::shared_ptr<Configurator> Configurator::default_config() {
static std::shared_ptr<Configurator> s_default_config = std::make_shared<Configurator>();
return s_default_config;
}
Configurator::~Configurator() = default;
// 相机内参数
Matrix3d Configurat... | 21.072581 | 94 | 0.711443 |
9dd2fbd09ba6dcd244a3d62627615d9dee4ca6ac | 16,202 | cpp | C++ | src/core/commands.cpp | sellesoft/deshi | 0bcd13bce29278f89fe6fe7b6658df349c104ee2 | [
"Unlicense"
] | null | null | null | src/core/commands.cpp | sellesoft/deshi | 0bcd13bce29278f89fe6fe7b6658df349c104ee2 | [
"Unlicense"
] | null | null | null | src/core/commands.cpp | sellesoft/deshi | 0bcd13bce29278f89fe6fe7b6658df349c104ee2 | [
"Unlicense"
] | null | null | null | /*Index:
@vars
@add
@run
@init
*/
#include "memory.h"
#define DESHI_CMD_START(name, desc) \
deshi__last_cmd_desc = str8_lit(desc); \
auto deshi__cmd__##name = [](str8* args, u32 arg_count) -> void
#define DESHI_CMD_END_NO_ARGS(name) \
; \
cmd_add(deshi__cmd__##name, str8_lit(#name), deshi__last_cmd_desc, 0, 0)
#def... | 34.545842 | 133 | 0.660351 |
9dd39adbcf01df8879247d8e0f45898bc7bd4eea | 1,628 | cpp | C++ | LinkedList/0002-Add-Two-Numbers/main.cpp | FeiZhao0531/PlayLeetCode | ed23477fd6086d5139bda3d93feeabc09b06854d | [
"MIT"
] | 5 | 2019-05-11T18:33:32.000Z | 2019-12-13T09:13:02.000Z | LinkedList/0002-Add-Two-Numbers/main.cpp | FeiZhao0531/PlayLeetCode | ed23477fd6086d5139bda3d93feeabc09b06854d | [
"MIT"
] | null | null | null | LinkedList/0002-Add-Two-Numbers/main.cpp | FeiZhao0531/PlayLeetCode | ed23477fd6086d5139bda3d93feeabc09b06854d | [
"MIT"
] | null | null | null | /// Source : https://leetcode.com/problems/add-two-numbers/description/
/// Author : Fei
/// Time : Jun-4-2019
#include "../SingleLinkedList.h"
#include "../SingleLinkedList.cpp"
#include <cassert>
using namespace std;
class Solution
{
public:
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, List... | 25.046154 | 71 | 0.565725 |
9dd6cee88efd3209a4e42d91fa65b737411476e3 | 850 | cxx | C++ | src/TrackFit/KalmanFilterFit/FitMatrices/StdProjectionMatrix.cxx | fermi-lat/TkrRecon | 9174a0ab1310038d3956ab4dcc26e06b8a845daf | [
"BSD-3-Clause"
] | null | null | null | src/TrackFit/KalmanFilterFit/FitMatrices/StdProjectionMatrix.cxx | fermi-lat/TkrRecon | 9174a0ab1310038d3956ab4dcc26e06b8a845daf | [
"BSD-3-Clause"
] | null | null | null | src/TrackFit/KalmanFilterFit/FitMatrices/StdProjectionMatrix.cxx | fermi-lat/TkrRecon | 9174a0ab1310038d3956ab4dcc26e06b8a845daf | [
"BSD-3-Clause"
] | null | null | null | /**
* @class StdProjectionMatrix
*
* @brief Definition of a Kalman Filter projection matrix. This is used to projected out the measured
* coordinates (and errors) from the state vector (covariance matrix) during the track fits
*
* @author Tracy Usher
*
* $Header: /nfs/slac/g/glast/ground/cvs/TkrRecon/src... | 27.419355 | 152 | 0.716471 |
9dd6f5554452911a8c6ef1b2f5126a2e0ace466b | 6,923 | cpp | C++ | components/z8lua/lpico8lib.cpp | concreted/tac08 | ce0743c9c98b458e67f7473eaf423520f639a2e5 | [
"MIT"
] | 1 | 2021-01-02T19:18:19.000Z | 2021-01-02T19:18:19.000Z | components/z8lua/lpico8lib.cpp | concreted/tac08 | ce0743c9c98b458e67f7473eaf423520f639a2e5 | [
"MIT"
] | null | null | null | components/z8lua/lpico8lib.cpp | concreted/tac08 | ce0743c9c98b458e67f7473eaf423520f639a2e5 | [
"MIT"
] | null | null | null | //
// ZEPTO-8 — Fantasy console emulator
//
// Copyright © 2016—2017 Sam Hocevar <sam@hocevar.net>
//
// This program is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do What the Fuck You Want
// to Pu... | 27.915323 | 90 | 0.619674 |
9dd7e968b3ad4c4aa4f1ecf9cae9d75fd798df51 | 1,557 | cpp | C++ | test/test.cpp | jermp/mm_file | ed6dbb828d7ed85128241ef6693bf383d7f7cb2d | [
"MIT"
] | 8 | 2019-06-06T13:31:01.000Z | 2022-02-09T01:35:48.000Z | test/test.cpp | jermp/mm_file | ed6dbb828d7ed85128241ef6693bf383d7f7cb2d | [
"MIT"
] | null | null | null | test/test.cpp | jermp/mm_file | ed6dbb828d7ed85128241ef6693bf383d7f7cb2d | [
"MIT"
] | 1 | 2020-10-30T19:35:30.000Z | 2020-10-30T19:35:30.000Z | #include <iostream>
#include "../include/mm_file/mm_file.hpp"
int main() {
std::string filename("./tmp.bin");
static const size_t n = 13;
{
// write n uint32_t integers
mm::file_sink<uint32_t> fout(filename, n);
std::cout << "mapped " << fout.bytes() << " bytes "
... | 27.803571 | 71 | 0.478484 |
9ddb60c0c1c15aa85ed2c65a95a3ed7b06d439fb | 1,130 | cpp | C++ | code/epoller.cpp | mazamu/web-server | b70684a21c6fb3addb794310c2262be336425596 | [
"MulanPSL-1.0"
] | null | null | null | code/epoller.cpp | mazamu/web-server | b70684a21c6fb3addb794310c2262be336425596 | [
"MulanPSL-1.0"
] | null | null | null | code/epoller.cpp | mazamu/web-server | b70684a21c6fb3addb794310c2262be336425596 | [
"MulanPSL-1.0"
] | null | null | null | #include"epoller.h"
Epoller::Epoller(int maxEvent) :_epollerFd(epoll_create(512)),_events(maxEvent){
assert(_epollerFd >= 0 && _events.size() > 0);
}
Epoller::~Epoller() { close(_epollerFd); }
bool Epoller::addFd(int fd,uint32_t events) {
if(fd < 0) return false;
epoll_event ev = {0};
ev.data.fd = fd;... | 26.904762 | 89 | 0.653097 |
9de12943e1145ac83a5fd5b10b45272fb5dea7a9 | 3,716 | cpp | C++ | GVRf/Framework/framework/src/main/jni/objects/components/bone_jni.cpp | sidia-dev-team/GearVRf | d93d62d49e5fc5b55dc00a485db92ec8fe004db1 | [
"Apache-2.0"
] | 474 | 2015-03-27T17:14:43.000Z | 2022-03-30T23:10:38.000Z | GVRf/Framework/framework/src/main/jni/objects/components/bone_jni.cpp | sidia-dev-team/GearVRf | d93d62d49e5fc5b55dc00a485db92ec8fe004db1 | [
"Apache-2.0"
] | 1,677 | 2015-03-28T02:00:21.000Z | 2019-10-21T13:28:44.000Z | GVRf/Framework/framework/src/main/jni/objects/components/bone_jni.cpp | sidia-dev-team/GearVRf | d93d62d49e5fc5b55dc00a485db92ec8fe004db1 | [
"Apache-2.0"
] | 260 | 2015-03-27T23:55:12.000Z | 2022-03-18T03:46:41.000Z | /***************************************************************************
* JNI
***************************************************************************/
#include "glm/glm.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "objects/components/bone.h"
#include "util/gvr_jni.h"
namespace gvr {
extern "C" {
JNI... | 31.760684 | 116 | 0.699139 |
9de2b001e9267ff1935a2426223f12bf406b5efe | 225 | cpp | C++ | Pack_plugins/Pack_tool/ToolsModel.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2019-12-25T13:36:01.000Z | 2019-12-25T13:36:01.000Z | Pack_plugins/Pack_tool/ToolsModel.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | null | null | null | Pack_plugins/Pack_tool/ToolsModel.cpp | GreatCong/GUI_EC_PluginSrc | 9194e67b76f3707f782f1fc17ba6e6dcb712c2a5 | [
"MIT"
] | 1 | 2020-08-05T14:05:15.000Z | 2020-08-05T14:05:15.000Z | #include "ToolsModel.h"
#include <QDesktopServices>
#include <QUrl>
ToolsModel::ToolsModel(QObject *parent) : QObject(parent)
{
}
void ToolsModel::openUrl(const QString &url)
{
QDesktopServices::openUrl(QUrl(url));
}
| 16.071429 | 57 | 0.728889 |
9de6658e6542fb507a086f453e6e84eafe9c93fa | 1,155 | cpp | C++ | c10/10.5.cpp | sarthak-gupta-sg/hello-world | 324f321a5454964b35b8399884d8c99971bd3425 | [
"Apache-2.0"
] | null | null | null | c10/10.5.cpp | sarthak-gupta-sg/hello-world | 324f321a5454964b35b8399884d8c99971bd3425 | [
"Apache-2.0"
] | null | null | null | c10/10.5.cpp | sarthak-gupta-sg/hello-world | 324f321a5454964b35b8399884d8c99971bd3425 | [
"Apache-2.0"
] | 1 | 2020-05-30T04:30:16.000Z | 2020-05-30T04:30:16.000Z | #include <iostream>
#include <algorithm>
#include <vector>
#include <list>
#include <cstring>
using namespace std;
int main()
{
vector<const char * > roster1 { "abc", "def", "ghi"};
list<const char * > roster2 { "abc", "def", "ghi"};
//list<const char * > roster2(roster1.cbegin(), roster1.cend());
boo... | 26.25 | 80 | 0.505628 |
9de8a46824c704648359b5985afea7ee55d93062 | 14,883 | cpp | C++ | cpp/libs/Molecular/CLCFGO_lib.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 26 | 2016-12-04T04:45:12.000Z | 2022-03-24T09:39:28.000Z | cpp/libs/Molecular/CLCFGO_lib.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | null | null | null | cpp/libs/Molecular/CLCFGO_lib.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 2 | 2019-02-09T12:31:06.000Z | 2019-04-28T02:24:50.000Z |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <vector>
#include <unordered_map>
#include <string>
#include "fastmath.h"
#include "Vec3.h"
#include "Mat3.h"
//#include "VecN.h"
#include "testUtils.h"
#include "integration.h"
#include "AOIntegrals.h"
//#incl... | 37.678481 | 201 | 0.563932 |
9ded4c0e6c98c96d1dc7e14a4ca4d784bf9d9ba4 | 13,759 | cpp | C++ | common/operations/Softmax.cpp | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | common/operations/Softmax.cpp | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | common/operations/Softmax.cpp | riscv-android-src/platform-packages-modules-NeuralNetworks | 32a7fbe0cec3a17f9cdd8c6f11d94ae77e30add5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 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 app... | 47.940767 | 100 | 0.630714 |
9df3b13073598a0ef2116e9567a8618ec28c1ba2 | 1,341 | cpp | C++ | meta_struct_20/cppcon_version/meta_struct_1.cpp | google/cpp-from-the-sky-down | 10c8d16e877796f2906bedbd3a66fb6469b3a211 | [
"Apache-2.0"
] | 219 | 2018-08-15T22:01:07.000Z | 2022-03-23T11:46:54.000Z | meta_struct_20/cppcon_version/meta_struct_1.cpp | google/cpp-from-the-sky-down | 10c8d16e877796f2906bedbd3a66fb6469b3a211 | [
"Apache-2.0"
] | 5 | 2018-09-11T06:15:28.000Z | 2022-01-05T15:27:31.000Z | meta_struct_20/cppcon_version/meta_struct_1.cpp | google/cpp-from-the-sky-down | 10c8d16e877796f2906bedbd3a66fb6469b3a211 | [
"Apache-2.0"
] | 27 | 2018-09-11T06:14:40.000Z | 2022-03-20T09:46:14.000Z | #include <algorithm>
#include <cstddef>
template <std::size_t N>
struct fixed_string {
constexpr fixed_string(const char (&foo)[N + 1]) {
std::copy_n(foo, N + 1, data);
}
auto operator<=>(const fixed_string&) const = default;
char data[N + 1] = {};
};
template <std::size_t N>
fixed_string(const char (&str)[... | 21.629032 | 61 | 0.633855 |
9df4a23e4e574681f332fe213b1e6627818591cd | 1,815 | cc | C++ | algorithms/background/glm/boost_python/ext.cc | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 58 | 2015-10-15T09:28:20.000Z | 2022-03-28T20:09:38.000Z | algorithms/background/glm/boost_python/ext.cc | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 1,741 | 2015-11-24T08:17:02.000Z | 2022-03-31T15:46:42.000Z | algorithms/background/glm/boost_python/ext.cc | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 45 | 2015-10-14T13:44:16.000Z | 2022-03-22T14:45:56.000Z | /*
* ext.cc
*
* Copyright (C) 2013 Diamond Light Source
*
* Author: James Parkhurst
*
* This code is distributed under the BSD license, a copy of which is
* included in the root directory of this package.
*/
#include <boost/python.hpp>
#include <boost/python/def.hpp>
#include <dials/algorithms/background/g... | 36.3 | 88 | 0.686501 |
9df56b16fdacc8b51af1c8dbcd1d4ce3e7738752 | 5,733 | cpp | C++ | c++/src/State.cpp | SGrosse-Holz/flocking | ac3c02e13eda5da176723fe41dad926ac552f14d | [
"MIT"
] | null | null | null | c++/src/State.cpp | SGrosse-Holz/flocking | ac3c02e13eda5da176723fe41dad926ac552f14d | [
"MIT"
] | null | null | null | c++/src/State.cpp | SGrosse-Holz/flocking | ac3c02e13eda5da176723fe41dad926ac552f14d | [
"MIT"
] | null | null | null | /* This file is distributed under MIT license as part of the project flocksims.
* See LICENSE file for details.
* (c) Simon Grosse-Holz, 2019
*/
# include "State.h"
# include "mathutils.h"
# include <chrono>
# include <cmath>
# include <fstream>
# include <iomanip>
# include <iostream>
# include <random>
# include... | 21.715909 | 112 | 0.613291 |
9df5a52a4836c72b14bdce9701b3cab75024ea52 | 955 | hpp | C++ | plugins/d3d9/include/sge/d3d9/state/core/depth_stencil/depth/visitor.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/d3d9/include/sge/d3d9/state/core/depth_stencil/depth/visitor.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/d3d9/include/sge/d3d9/state/core/depth_stencil/depth/visitor.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_D3D9_STATE_CORE_DEPTH_STENCIL_DEPTH_VISITOR_HPP_INCLUDED
#define SGE_D3D9_STATE_CORE_DE... | 21.704545 | 98 | 0.762304 |
9dfe69429c5cf404fde62bcfe39ee68802b20349 | 1,064 | hpp | C++ | Embedded/terranova_sketch/ImuSensor.hpp | dhawkes36/TerraNova | 8fc460d5f221370c8f0b84851c72432dea148b4e | [
"MIT"
] | null | null | null | Embedded/terranova_sketch/ImuSensor.hpp | dhawkes36/TerraNova | 8fc460d5f221370c8f0b84851c72432dea148b4e | [
"MIT"
] | null | null | null | Embedded/terranova_sketch/ImuSensor.hpp | dhawkes36/TerraNova | 8fc460d5f221370c8f0b84851c72432dea148b4e | [
"MIT"
] | null | null | null | #pragma once
#include <Arduino.h>
#include <Wire.h>
#include <math.h>
#include "SparkFunLSM9DS1.h"
#define LSM9DS1_M 0x1E // Would be 0x1C if SDO_M is LOW
#define LSM9DS1_AG 0x6B // Would be 0x6A if SDO_AG is LOW
// Earth's magnetic field varies by location. Add or subtract
// a declination to get a more accurate... | 19.703704 | 108 | 0.668233 |
3b00e634808c129e66563ab75eb49086a83d0a3d | 2,856 | cpp | C++ | WitchEngine3/src/WE3/mesh/WEMeshInstance.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 3 | 2018-12-02T14:09:22.000Z | 2021-11-22T07:14:05.000Z | WitchEngine3/src/WE3/mesh/WEMeshInstance.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 1 | 2018-12-03T22:54:38.000Z | 2018-12-03T22:54:38.000Z | WitchEngine3/src/WE3/mesh/WEMeshInstance.cpp | jadnohra/World-Of-Football | fc4c9dd23e0b2d8381ae8f62b1c387af7f28fcfc | [
"MIT"
] | 2 | 2020-09-22T21:04:14.000Z | 2021-05-24T09:43:28.000Z | #include "WEMeshInstance.h"
namespace WE {
bool MeshInstance::init(Mesh& mesh, RenderLoadContext& renderLoadContext) {
return mesh.initInstance(*this, renderLoadContext);
}
bool MeshInstance::isInited() {
return mMesh.isValid();
}
/*
bool MeshInstance::hasSkeletonInstance() {
return mSkelIn... | 17.101796 | 105 | 0.686625 |
3b01bb6578e79315fcb1c382fa78278162bf3488 | 885 | hpp | C++ | code/include/common/Mutex.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/include/common/Mutex.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/include/common/Mutex.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | /**
* @file common/Mutex.hpp
* @brief Defines the Mutex class
*/
#pragma once
#ifdef __SWITCH__
#include <sys/lock.h>
#else
#ifdef __PC__
#include <mutex>
#endif
#endif
namespace id {
/**
* @brief A mutex
*/
class Mutex {
public:
/**
* @brief Creates the m... | 16.388889 | 47 | 0.444068 |
3b0498e0685a650933d0c9e4519fc67dc41c8d3b | 4,840 | cpp | C++ | tank_demo.cpp | alerdenisov/eos-tank-demo | 9ef62fc22e8998d091d09298b0ffbd321e1f8cc2 | [
"MIT"
] | 13 | 2017-08-02T03:59:45.000Z | 2021-04-20T04:12:40.000Z | tank_demo.cpp | philsong/eos-tank-demo | 9ef62fc22e8998d091d09298b0ffbd321e1f8cc2 | [
"MIT"
] | 1 | 2021-05-11T02:36:30.000Z | 2021-05-11T02:36:30.000Z | tank_demo.cpp | philsong/eos-tank-demo | 9ef62fc22e8998d091d09298b0ffbd321e1f8cc2 | [
"MIT"
] | 5 | 2017-07-31T05:27:42.000Z | 2019-03-30T09:58:07.000Z | // Copyright (c) 2017 Aler Denisov
// 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, di... | 26.888889 | 81 | 0.718595 |
3b07a3124914a3223202fbd58b1008a8d750950a | 6,514 | cpp | C++ | widgets/screenshotwidget.cpp | JLIT0/GBox | f5df851534bfb5cbdf0ae84d25e58a6cfdc69241 | [
"Apache-2.0"
] | null | null | null | widgets/screenshotwidget.cpp | JLIT0/GBox | f5df851534bfb5cbdf0ae84d25e58a6cfdc69241 | [
"Apache-2.0"
] | null | null | null | widgets/screenshotwidget.cpp | JLIT0/GBox | f5df851534bfb5cbdf0ae84d25e58a6cfdc69241 | [
"Apache-2.0"
] | null | null | null | /***********************************************************************
*Copyright 2010-20XX by 7ymekk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | 35.98895 | 125 | 0.600399 |
3b07a48c5e7b56564fc3984f19bd2ebf04f54b18 | 1,705 | cpp | C++ | main/libs/common/src/message.cpp | ttgc/ThunderSiege6-Chat | 1a1601c2d18429baadc3b6d3d0f9b1354246c1f1 | [
"MIT"
] | null | null | null | main/libs/common/src/message.cpp | ttgc/ThunderSiege6-Chat | 1a1601c2d18429baadc3b6d3d0f9b1354246c1f1 | [
"MIT"
] | null | null | null | main/libs/common/src/message.cpp | ttgc/ThunderSiege6-Chat | 1a1601c2d18429baadc3b6d3d0f9b1354246c1f1 | [
"MIT"
] | null | null | null | #include "message.hpp"
namespace network
{
namespace message
{
size_t Message::s_maxsizeUsername = 24;
size_t Message::s_maxsizeMessage = 512;
Message::Message(
const std::string& username,
MessageType msgType,
Team playerTeam,
const std::string& message) noexcept :
m_message(mes... | 29.912281 | 98 | 0.646334 |
3b086f8c712fea2e9ee0e96726386d77990daf57 | 1,191 | cpp | C++ | src/lib/ConcurrentLib/ConcurrentObjects.cpp | Korovasoft/Concurrent-GARTH | 2f22c464ce30f743b45bbd6c18a8546bee69be93 | [
"MIT"
] | null | null | null | src/lib/ConcurrentLib/ConcurrentObjects.cpp | Korovasoft/Concurrent-GARTH | 2f22c464ce30f743b45bbd6c18a8546bee69be93 | [
"MIT"
] | null | null | null | src/lib/ConcurrentLib/ConcurrentObjects.cpp | Korovasoft/Concurrent-GARTH | 2f22c464ce30f743b45bbd6c18a8546bee69be93 | [
"MIT"
] | null | null | null | ////////////////////////////////////////
////////////////////////////////////////
//
// Copyright (C) 2014 Korovasoft, Inc.
//
// File:
// \file ConcurrentObjects.cpp
//
// Description:
// \brief ConcurrentObjects Library implementation.
//
// Author:
// \author J. Caleb Wherry
//
///////////////////... | 17.26087 | 78 | 0.555835 |
3b0a9c69a2c085265834fdfa3bd784d7609a2b6c | 7,261 | cpp | C++ | esp/main/grabber/cfgpull.cpp | mincrmatt12/MSign | 745bd04bc2b38952f5b35cf81f5924bd8f00452e | [
"MIT"
] | 5 | 2019-11-04T17:01:46.000Z | 2020-06-18T07:07:34.000Z | esp/main/grabber/cfgpull.cpp | mincrmatt12/SignCode | 745bd04bc2b38952f5b35cf81f5924bd8f00452e | [
"MIT"
] | null | null | null | esp/main/grabber/cfgpull.cpp | mincrmatt12/SignCode | 745bd04bc2b38952f5b35cf81f5924bd8f00452e | [
"MIT"
] | 2 | 2020-06-18T07:07:37.000Z | 2020-10-14T04:41:12.000Z | #include "cfgpull.cfg.h"
#include "cfgpull.h"
#include "../dwhttp.h"
#include "esp_system.h"
#include <esp_log.h>
#ifndef SIM
#include <esp_ota_ops.h>
#include <sdkconfig.h>
#endif
#include <memory>
#include <bearssl_hmac.h>
#include <bearssl_hash.h>
#include "../sd.h"
#include "../common/util.h"
#include "../seri... | 25.839858 | 117 | 0.656521 |
3b0ea8fbee263602def6f08e97a21b5a9796e3fc | 993 | cpp | C++ | ambient-sandbox-application/demos/PlatformGame2D/LevelManager.cpp | prajwaldp/cpp-game-engine | df036f115ae45fda21e57d526d251b43ed6368c9 | [
"MIT"
] | null | null | null | ambient-sandbox-application/demos/PlatformGame2D/LevelManager.cpp | prajwaldp/cpp-game-engine | df036f115ae45fda21e57d526d251b43ed6368c9 | [
"MIT"
] | null | null | null | ambient-sandbox-application/demos/PlatformGame2D/LevelManager.cpp | prajwaldp/cpp-game-engine | df036f115ae45fda21e57d526d251b43ed6368c9 | [
"MIT"
] | null | null | null | //
// Created by Prajwal Prakash on 24/06/20.
//
#include "LevelManager.h"
#include <filesystem>
#include <fstream>
LevelManager::LevelManager(const char* assets_directory) : m_AssetsDirectory(assets_directory)
{
LoadLevels();
}
void LevelManager::LoadLevels()
{
for (const auto& entry : std::filesystem::dir... | 21.586957 | 94 | 0.59718 |
3b1136ecd7cb16cb8f1c4b66c68e0fde159dae22 | 1,260 | cc | C++ | Use of STL data structures/P84415.cc | moonchildx/eda | 6198480072d8371bf8eb5e5b4ae1bfb106a28c6e | [
"Apache-2.0"
] | null | null | null | Use of STL data structures/P84415.cc | moonchildx/eda | 6198480072d8371bf8eb5e5b4ae1bfb106a28c6e | [
"Apache-2.0"
] | null | null | null | Use of STL data structures/P84415.cc | moonchildx/eda | 6198480072d8371bf8eb5e5b4ae1bfb106a28c6e | [
"Apache-2.0"
] | null | null | null | /* Creator: Aina Gomez.
*/
#include <iostream>
#include <map>
using namespace std;
int main() {
map<string,int> m;
string op, paraula;
map<string,int>::const_iterator it = m.begin();
while (cin >> op) {
if (op == "minimum?") {
if (m.empty()) cout << "indefinite ... | 24.230769 | 93 | 0.363492 |
3b13b6b256f7e9dd51deb0231598592148539d1c | 23,624 | cpp | C++ | duds/hardware/interface/linux/GpioDevPort.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | duds/hardware/interface/linux/GpioDevPort.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | duds/hardware/interface/linux/GpioDevPort.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | /*
* This file is part of the DUDS project. It is subject to the BSD-style
* license terms in the LICENSE file found in the top-level directory of this
* distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
* No part of DUDS, including this file, may be copied, modified, propagated,
* or dis... | 30.326059 | 84 | 0.696664 |
3b162794ea81a887c37746a19ad17f25cfe96a7d | 8,986 | cxx | C++ | src/ptclib/textdata.cxx | suxinde2009/ptlib | 3d185e55144b98aa46903d48468745ffd07b2a9d | [
"Beerware"
] | null | null | null | src/ptclib/textdata.cxx | suxinde2009/ptlib | 3d185e55144b98aa46903d48468745ffd07b2a9d | [
"Beerware"
] | null | null | null | src/ptclib/textdata.cxx | suxinde2009/ptlib | 3d185e55144b98aa46903d48468745ffd07b2a9d | [
"Beerware"
] | 1 | 2020-07-21T11:47:44.000Z | 2020-07-21T11:47:44.000Z | /*
* textdata.cxx
*
* Text data stream parser
*
* Portable Tools Library
*
* Copyright (C) 2019 by Vox Lucida Pty. Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the L... | 20.284424 | 122 | 0.638883 |
3b1700f1a6320e5bec8ea7b1325d8af1c105c40b | 1,120 | cpp | C++ | LeetCode/665Non-decreasing Array.cpp | zhchuu/OJ-Solutions | 09e1c18104db35d7c6919257ebaa0f170f54796c | [
"MIT"
] | null | null | null | LeetCode/665Non-decreasing Array.cpp | zhchuu/OJ-Solutions | 09e1c18104db35d7c6919257ebaa0f170f54796c | [
"MIT"
] | null | null | null | LeetCode/665Non-decreasing Array.cpp | zhchuu/OJ-Solutions | 09e1c18104db35d7c6919257ebaa0f170f54796c | [
"MIT"
] | null | null | null | #include<iostream>
#include<stdio.h>
#include<vector>
using namespace std;
bool isIncreasing(vector<int>& nums)
{
for (int i = 0; i < nums.size() - 1; i++) {
if (nums[i] > nums[i + 1])
return false;
}
return true;
}
bool checkPossibility(vector<int>& nums)
{
int modified = 0, i;
int temp;
vector<int>::iterat... | 19.649123 | 54 | 0.546429 |
3b17e9e50f5e642166a51cf5a7d96726f77fd3ed | 38,117 | cpp | C++ | src/library/renderbuffer.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | 1 | 2022-02-15T21:00:31.000Z | 2022-02-15T21:00:31.000Z | src/library/renderbuffer.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | null | null | null | src/library/renderbuffer.cpp | flubbe/swr | 2f09acb9f27a8d5345aaeb6f229f74693a24fcdd | [
"MIT"
] | null | null | null | /**
* swr - a software rasterizer
*
* frame buffer buffer implementation.
*
* \author Felix Lubbe
* \copyright Copyright (c) 2021
* \license Distributed under the MIT software license (see accompanying LICENSE.txt).
*/
/* user headers. */
#include "swr_internal.h"
namespace swr
{
namespace impl
{
/*
* he... | 42.541295 | 242 | 0.626859 |
3b1857c8de1641ca1ae73003d9dddc9b264840c5 | 3,185 | cpp | C++ | src/gdx-cpp/audio/analysis/KissFFT.cpp | aevum/libgdx-cpp | 88603a59af4d915259a841e13ce88f65c359f0df | [
"Apache-2.0"
] | 77 | 2015-01-28T17:21:49.000Z | 2022-02-17T17:59:21.000Z | src/gdx-cpp/audio/analysis/KissFFT.cpp | aevum/libgdx-cpp | 88603a59af4d915259a841e13ce88f65c359f0df | [
"Apache-2.0"
] | 5 | 2015-03-22T23:14:54.000Z | 2020-09-18T13:26:03.000Z | src/gdx-cpp/audio/analysis/KissFFT.cpp | aevum/libgdx-cpp | 88603a59af4d915259a841e13ce88f65c359f0df | [
"Apache-2.0"
] | 24 | 2015-02-12T04:34:37.000Z | 2021-06-19T17:05:23.000Z |
/*
Copyright 2011 Aevum Software aevum @ aevumlab.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requi... | 27.456897 | 102 | 0.592465 |
3b185e9fd880a377fb5e1b068f2e01dbbe3f6d4b | 3,304 | inl | C++ | examples/complex_test.inl | sdalton1/grapple | e0384149179b9a51bf7814fe18ef85fda782ff24 | [
"Apache-2.0"
] | 7 | 2015-01-16T07:10:20.000Z | 2019-04-20T07:50:38.000Z | examples/complex_test.inl | sdalton1/grapple | e0384149179b9a51bf7814fe18ef85fda782ff24 | [
"Apache-2.0"
] | null | null | null | examples/complex_test.inl | sdalton1/grapple | e0384149179b9a51bf7814fe18ef85fda782ff24 | [
"Apache-2.0"
] | null | null | null | #include <thrust/adjacent_difference.h>
#include <thrust/device_vector.h>
#include <thrust/random.h>
#include <thrust/reduce.h>
#include <thrust/sort.h>
#include <thrust/unique.h>
namespace example
{
namespace detail
{
template<typename DerivedPolicy, typename Array>
void initialize(thrust::execution_policy<DerivedPo... | 31.169811 | 100 | 0.752119 |
3b189c776d46b50c7fc9efe23de9a9298b2b3b44 | 1,207 | cpp | C++ | 0644-Maximum Average Subarray II/0644-Maximum Average Subarray II.cpp | zhuangli1987/LeetCode-1 | e81788abf9e95e575140f32a58fe983abc97fa4a | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 0601-0700/0644-Maximum Average Subarray II/0644-Maximum Average Subarray II.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 0601-0700/0644-Maximum Average Subarray II/0644-Maximum Average Subarray II.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | class Solution {
public:
double findMaxAverage(vector<int>& nums, int k) {
int n = nums.size();
int minNum = INT_MAX, maxNum = INT_MIN;
for (int num : nums) {
minNum = min(minNum, num);
maxNum = max(maxNum, num);
}
double low = minNum, high = maxNum;
... | 25.145833 | 61 | 0.400994 |
3b19c39ea419dc6a928525f68a89e55b9e06fff5 | 1,549 | cpp | C++ | pihud/src/Event.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | 2 | 2015-01-07T18:36:39.000Z | 2015-01-08T13:54:43.000Z | pihud/src/Event.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | null | null | null | pihud/src/Event.cpp | maximaximal/piga | 54530c208e59eaaf8d44c1f8d640f5ec028d4126 | [
"Zlib"
] | null | null | null | #include <pihud/Event.hpp>
namespace PiH
{
Event::Event()
{
type = EventType::NotSet;
}
Event::Event(const InputEvent &inputEvent, int playerID)
{
type = EventType::Input;
input = inputEvent;
this->playerID = playerID;
}
Event::Event(const FocusEvent &focusEvent, i... | 28.163636 | 92 | 0.534538 |
3b1ae204503de0594c7fadf3480b605dbfd9d0b9 | 5,731 | cc | C++ | aux/broker/tests/benchmark/broker-stream-benchmark.cc | zpx2012/zeek_3.0.8 | 7a912ebbdd0871838c7fb35538fef467279ec1fe | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 1 | 2021-03-06T19:51:07.000Z | 2021-03-06T19:51:07.000Z | aux/broker/tests/benchmark/broker-stream-benchmark.cc | zpx2012/zeek_3.0.8 | 7a912ebbdd0871838c7fb35538fef467279ec1fe | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | aux/broker/tests/benchmark/broker-stream-benchmark.cc | zpx2012/zeek_3.0.8 | 7a912ebbdd0871838c7fb35538fef467279ec1fe | [
"Apache-2.0",
"CC0-1.0",
"MIT"
] | null | null | null | #include <cstdint>
#include <cstdlib>
#include <atomic>
#include <chrono>
#include <iostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>
#include <caf/atom.hpp>
#include <caf/config_option_adder.hpp>
#include <caf/downstream.hpp>
#include <caf/event_based_actor.hpp>
#include <caf/scoped_a... | 26.532407 | 80 | 0.585064 |
3b226b50358c2dc65cb80efd38d9658b043f2ac0 | 1,114 | cpp | C++ | utility/addressof.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 47 | 2016-05-20T08:49:47.000Z | 2022-01-03T01:17:07.000Z | utility/addressof.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | null | null | null | utility/addressof.cpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 37 | 2016-07-25T04:52:08.000Z | 2022-02-14T03:55:08.000Z | // Copyright (c) 2016
// Author: Chrono Law
#include <std.hpp>
using namespace std;
#include <boost/utility/addressof.hpp>
using namespace boost;
///////////////////////////////////////
void case1()
{
int i;
string s;
assert(&i == boost::addressof(i));
assert(&s == boost::addressof(s));
int a[1... | 15.914286 | 48 | 0.487433 |
3b26b2e687ade339b075dcd2ff136e1fb3236ecb | 2,434 | hpp | C++ | gcpp/classes/opathspec.hpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | 2 | 2015-10-15T19:32:42.000Z | 2021-12-20T15:56:04.000Z | gcpp/classes/opathspec.hpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | null | null | null | gcpp/classes/opathspec.hpp | razzlefratz/MotleyTools | 3c69c574351ce6f4b7e687c13278d4b6cbb200f3 | [
"0BSD"
] | null | null | null | /*====================================================================*
*
* opathspec.hpp - interface for the opathspec class.
*
*. Motley Tools by Charles Maier
*: Published 1982-2005 by Charles Maier for personal use
*; Licensed under the Internet Software Consortium License
*
*--------------------------... | 34.28169 | 97 | 0.497124 |
3b281d2749fc00e1bb7f10dea504edd642437cea | 1,026 | hpp | C++ | src/lib/builders/interpretable.hpp | bunsanorg/bacs_system | 22149ecfaac913b820dbda52933bf8ea9fecd723 | [
"Apache-2.0"
] | null | null | null | src/lib/builders/interpretable.hpp | bunsanorg/bacs_system | 22149ecfaac913b820dbda52933bf8ea9fecd723 | [
"Apache-2.0"
] | null | null | null | src/lib/builders/interpretable.hpp | bunsanorg/bacs_system | 22149ecfaac913b820dbda52933bf8ea9fecd723 | [
"Apache-2.0"
] | null | null | null | #include "compilable.hpp"
namespace bacs {
namespace system {
namespace builders {
class interpretable : public compilable {
protected:
name_type name(const bacs::process::Source &source) override;
};
class interpretable_executable : public compilable_executable {
public:
interpretable_executable(const Contain... | 29.314286 | 72 | 0.662768 |
3b2958e86930fc17a868e5f4663e908315b57621 | 28,856 | cpp | C++ | ql/experimental/vanillalocalvolmodel/vanillalocalvolmodel.cpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/vanillalocalvolmodel/vanillalocalvolmodel.cpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 17 | 2020-11-23T07:24:16.000Z | 2022-03-28T10:29:06.000Z | ql/experimental/vanillalocalvolmodel/vanillalocalvolmodel.cpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 7 | 2017-04-24T08:28:43.000Z | 2022-03-15T08:59:54.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2018 Sebastian Schlenkrich
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it a... | 50.802817 | 187 | 0.525818 |
3b29c2ca2a3e3a4b658464060d64c81184792bf2 | 339 | cpp | C++ | HelloWorld.cpp | Pratik282001/hello-world | 640bea5d61e7c747cd2cc5a126eb2dcd96868942 | [
"MIT"
] | null | null | null | HelloWorld.cpp | Pratik282001/hello-world | 640bea5d61e7c747cd2cc5a126eb2dcd96868942 | [
"MIT"
] | 3 | 2020-10-08T08:11:58.000Z | 2020-10-08T08:24:13.000Z | HelloWorld.cpp | Pratik282001/hello-world | 640bea5d61e7c747cd2cc5a126eb2dcd96868942 | [
"MIT"
] | 1 | 2020-10-08T08:06:59.000Z | 2020-10-08T08:06:59.000Z | #include <iostream>
using namespace std;
int main()
{
cout <<"\nHello World"<< endl;
return 0;
}
//======================================================
#include <iostream>
using namespace std;
class helloworld{
helloworld(){
printf("Hello World!!");
}
};
int main(){
helloworld obj= n... | 13.56 | 56 | 0.504425 |
3b2aa11f7e5dfaf5db22d5b8c854b65e354fa357 | 1,758 | cpp | C++ | bzoj/1057.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/1057.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/1057.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null |
// Copy from luogu1169
#include <iostream>
#include <algorithm>
#include <string.h>
#include <sstream>
#include <stdlib.h>
#include <stdio.h>
#include <queue>
#include <cmath>
#include <math.h>
#include <vector>
#include <iostream>
#include <cstdio>
#include <ctime>
#include <set>
#include <map>
#include <fstream>
#... | 22.253165 | 68 | 0.497156 |
3b2ecb1ba6fc9611d8242b246c797a5c9d5173e0 | 431 | hpp | C++ | net/include/HttpProxyAuthenticate.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 27 | 2019-04-27T00:51:22.000Z | 2022-03-30T04:05:44.000Z | net/include/HttpProxyAuthenticate.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 9 | 2020-05-03T12:17:50.000Z | 2021-10-15T02:18:47.000Z | net/include/HttpProxyAuthenticate.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 1 | 2019-04-16T01:45:36.000Z | 2019-04-16T01:45:36.000Z | #ifndef __OBOTCHA_HTTP_PROXY_AUTHENTICATE_HPP__
#define __OBOTCHA_HTTP_PROXY_AUTHENTICATE_HPP__
#include "Object.hpp"
#include "StrongPointer.hpp"
#include "String.hpp"
#include "ArrayList.hpp"
namespace obotcha {
DECLARE_CLASS(HttpProxyAuthenticate) {
public:
_HttpProxyAuthenticate();
_HttpProxyAuthentica... | 15.392857 | 47 | 0.756381 |
3b3613bec8d7f4d9e6ab3d88e2b3b182ecbbde39 | 446 | hpp | C++ | materias ple/programacao orientada ao objeto/trabalhos praticos/tp-1/Codigo/Hpp/MenuMeca.hpp | marcusv77/universidade | 723f9a2ac7b7c14c11ada751c6daa1bd1cd0c4df | [
"MIT"
] | null | null | null | materias ple/programacao orientada ao objeto/trabalhos praticos/tp-1/Codigo/Hpp/MenuMeca.hpp | marcusv77/universidade | 723f9a2ac7b7c14c11ada751c6daa1bd1cd0c4df | [
"MIT"
] | null | null | null | materias ple/programacao orientada ao objeto/trabalhos praticos/tp-1/Codigo/Hpp/MenuMeca.hpp | marcusv77/universidade | 723f9a2ac7b7c14c11ada751c6daa1bd1cd0c4df | [
"MIT"
] | null | null | null | #ifndef MENUMECA_HPP
#define MENUMECA_HPP
#include<iostream>
#include<list>
#include"./Mecanico.hpp"
#include"./Vendedor.hpp"
#include"./Item.hpp"
#include"./MaodeObra.hpp"
#include"./Servico.hpp"
#include"./Ordem.hpp"
using namespace std;
void menuMeca(Mecanico* mecani);
void viewOrdems(Mecanico* mecani, Vendedor ... | 21.238095 | 55 | 0.769058 |
3b395423c34a79882924f9b7f060adbf82872c33 | 2,154 | cpp | C++ | Programs/QuickEd/Classes/UI/Properties/BoolPropertyDelegate.cpp | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 26 | 2018-09-03T08:48:22.000Z | 2022-02-14T05:14:50.000Z | Programs/QuickEd/Classes/UI/Properties/BoolPropertyDelegate.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | null | null | null | Programs/QuickEd/Classes/UI/Properties/BoolPropertyDelegate.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | 45 | 2018-05-11T06:47:17.000Z | 2022-02-03T11:30:55.000Z | #include "BoolPropertyDelegate.h"
#include <QComboBox>
#include "DAVAEngine.h"
#include "PropertiesTreeItemDelegate.h"
#include "Utils/QtDavaConvertion.h"
BoolPropertyDelegate::BoolPropertyDelegate(PropertiesTreeItemDelegate* delegate)
: BasePropertyDelegate(delegate)
{
}
BoolPropertyDelegate::~BoolPropertyDelega... | 31.676471 | 156 | 0.738162 |
3b3e7f7492f7cda4e0c6f4a931e32e1ddcd04e79 | 239 | cpp | C++ | src/Rendering/Lighting/CompositeLight.cpp | Tristeon/Tristeon | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 32 | 2018-06-16T20:50:15.000Z | 2022-03-26T16:57:15.000Z | src/Rendering/Lighting/CompositeLight.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 2 | 2018-10-07T17:41:39.000Z | 2021-01-08T03:14:19.000Z | src/Rendering/Lighting/CompositeLight.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 9 | 2018-06-12T21:00:58.000Z | 2021-01-08T02:18:30.000Z | #include "CompositeLight.h"
#include <Collector.h>
namespace Tristeon
{
CompositeLight::CompositeLight()
{
Collector<CompositeLight>::add(this);
}
CompositeLight::~CompositeLight()
{
Collector<CompositeLight>::remove(this);
}
} | 15.933333 | 42 | 0.732218 |
3b3f290de42e2598a981357d8ebfeacff5adc4ce | 1,420 | cpp | C++ | 17-Hash-Tables/Source.cpp | InamTaj/data-structures | 7a662a8e635402bab3481d69d8df9164499da6b4 | [
"Apache-2.0"
] | 1 | 2019-06-24T11:34:23.000Z | 2019-06-24T11:34:23.000Z | 17-Hash-Tables/Source.cpp | InamTaj/data-structures | 7a662a8e635402bab3481d69d8df9164499da6b4 | [
"Apache-2.0"
] | null | null | null | 17-Hash-Tables/Source.cpp | InamTaj/data-structures | 7a662a8e635402bab3481d69d8df9164499da6b4 | [
"Apache-2.0"
] | 1 | 2020-11-23T03:28:52.000Z | 2020-11-23T03:28:52.000Z | //Inamullah Taj - 1446
// OBJECTIVE: Implement a Class of Static Graph
#include "HashTableHeader.h"
#include <conio.h>
#include <iostream>
using namespace std;
void main()
{
char ext;
int choice, size, value;
cout<<"\t \t \t>>-> HASH TABLES <-<<\n\n";
cout<<"\n\t\tEnter Size of Table = "; cin>>size... | 26.792453 | 151 | 0.569014 |
3b41ac4e3177c9af23d31d8e0ba47349f8bf678d | 2,507 | cpp | C++ | tqli2.cpp | iglpdc/tiny_dmrg | 2679f7d72f19377c7ec2d1381e05f63398177bf8 | [
"MIT"
] | 10 | 2015-02-11T03:07:51.000Z | 2022-03-10T09:14:02.000Z | tqli2.cpp | npatel37/tiny_dmrg | 2679f7d72f19377c7ec2d1381e05f63398177bf8 | [
"MIT"
] | null | null | null | tqli2.cpp | npatel37/tiny_dmrg | 2679f7d72f19377c7ec2d1381e05f63398177bf8 | [
"MIT"
] | 6 | 2015-03-05T22:49:45.000Z | 2019-11-17T08:55:41.000Z | /**
* @file tqli2.cpp
*
* @brief Implementation for the tqli2 function using blitz arrays
*
* @author Roger Melko
* @author Ivan Gonzalez
* @date $Date$
*
* $Revision$
*/
#include <cmath>
#include <iomanip>
#include "blitz/array.h"
#include "tqli2.h"
#define SIGN(a,b) ((b)<0 ? -fabs(a) : fabs(a))
/**
* @b... | 25.07 | 77 | 0.578381 |
3b42d88f49debe20d42ab1933f021c6361e0b810 | 1,266 | hpp | C++ | include/copr/sequence/fft.hpp | orisano/copr | 3c1018edcc20e0f855ec614b2ddf579f8f81cd72 | [
"MIT"
] | null | null | null | include/copr/sequence/fft.hpp | orisano/copr | 3c1018edcc20e0f855ec614b2ddf579f8f81cd72 | [
"MIT"
] | null | null | null | include/copr/sequence/fft.hpp | orisano/copr | 3c1018edcc20e0f855ec614b2ddf579f8f81cd72 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <vector>
template <typename T>
inline std::complex<T> cmul(const std::complex<T>& a, const std::complex<T>& b) {
return std::complex<T>(a.real() * b.real() - a.imag() * b.imag(),
a.real() * b.i... | 25.32 | 81 | 0.460506 |
3b4581ebe1400cc04822f68b1ab6ed506e54ce8e | 3,586 | cpp | C++ | timer/Utility/CollisionUtilities.cpp | MaticVrtacnik/ProceduralnaAnimacija | bc47ccc721d1bedb31ed5949eb740892f094897a | [
"MIT"
] | null | null | null | timer/Utility/CollisionUtilities.cpp | MaticVrtacnik/ProceduralnaAnimacija | bc47ccc721d1bedb31ed5949eb740892f094897a | [
"MIT"
] | null | null | null | timer/Utility/CollisionUtilities.cpp | MaticVrtacnik/ProceduralnaAnimacija | bc47ccc721d1bedb31ed5949eb740892f094897a | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2019 MaticVrtacnik
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, ... | 29.393443 | 84 | 0.726715 |
8dc922b8b29873463fb27cc57301a26a9b2ba1f3 | 21,764 | cc | C++ | ggadget/clutter/view_actor_binder.cc | meego-netbook-ux/google-gadgets-meego | 89af89796bca073e95f44d43c9d81407caabedf0 | [
"Apache-2.0"
] | null | null | null | ggadget/clutter/view_actor_binder.cc | meego-netbook-ux/google-gadgets-meego | 89af89796bca073e95f44d43c9d81407caabedf0 | [
"Apache-2.0"
] | null | null | null | ggadget/clutter/view_actor_binder.cc | meego-netbook-ux/google-gadgets-meego | 89af89796bca073e95f44d43c9d81407caabedf0 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2008 Google Inc.
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 writing,... | 33.32925 | 84 | 0.612617 |
8dcce9bc595ba11809680515c9373c5e627702dc | 54,578 | cpp | C++ | Examples/AEGP/Artie/Artie.cpp | richardlalancette/AfterEffectsExperimentations | 5eae44e81c867ee44d00f88aaefaef578f7c3de7 | [
"MIT"
] | 2 | 2021-10-09T03:47:42.000Z | 2022-02-06T06:34:31.000Z | Examples/AEGP/Artie/Artie.cpp | richardlalancette/AfterEffectsExperimentations | 5eae44e81c867ee44d00f88aaefaef578f7c3de7 | [
"MIT"
] | null | null | null | Examples/AEGP/Artie/Artie.cpp | richardlalancette/AfterEffectsExperimentations | 5eae44e81c867ee44d00f88aaefaef578f7c3de7 | [
"MIT"
] | null | null | null | /*******************************************************************/
/* */
/* ADOBE CONFIDENTIAL */
/* _ _ _ _ _ _ _ _ _ _ _ _ _ */
/* ... | 27.072421 | 128 | 0.635971 |
8dcdc5b342e6868a2206b99876e2e6270592aeba | 6,799 | cpp | C++ | Code/Framework/AzCore/Tests/Math/IntersectPointTest.cpp | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzCore/Tests/Math/IntersectPointTest.cpp | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzCore/Tests/Math/IntersectPointTest.cpp | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Math/IntersectPoint.h>
#include <AzCore/UnitTest/TestTypes.h>
#include <AZTestSha... | 40.712575 | 163 | 0.674805 |
8dcdceb83fc9d8ea0df3482ac0a2b963dda53557 | 6,152 | hpp | C++ | src/field/fieldI.hpp | NSCCWX-AMD/HSF | dbf5987e364ce0ca3e92e72540a66a62353f4b3a | [
"Apache-2.0"
] | null | null | null | src/field/fieldI.hpp | NSCCWX-AMD/HSF | dbf5987e364ce0ca3e92e72540a66a62353f4b3a | [
"Apache-2.0"
] | 1 | 2020-09-10T01:17:13.000Z | 2020-09-10T01:17:13.000Z | src/field/fieldI.hpp | NSCCWX-AMD/HSF | dbf5987e364ce0ca3e92e72540a66a62353f4b3a | [
"Apache-2.0"
] | 2 | 2019-11-29T08:00:29.000Z | 2019-11-29T08:26:13.000Z | /*
The MIT License
Copyright (c) 2019 Hanfeng GU <hanfenggu@gmail.com>
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, m... | 25.957806 | 79 | 0.611996 |
8dd2f535b0f0b2fa61ec96dbe8390931fb18ac3d | 6,827 | hpp | C++ | eagleeye/framework/pipeline/SignalFactory.hpp | MirrorYu/eagleeye | c251e7b3bc919673b41360212c38d5fda85bbe2f | [
"Apache-2.0"
] | 12 | 2020-09-21T02:24:11.000Z | 2022-03-10T03:02:03.000Z | eagleeye/framework/pipeline/SignalFactory.hpp | MirrorYu/eagleeye | c251e7b3bc919673b41360212c38d5fda85bbe2f | [
"Apache-2.0"
] | 1 | 2020-11-30T08:22:50.000Z | 2020-11-30T08:22:50.000Z | eagleeye/framework/pipeline/SignalFactory.hpp | MirrorYu/eagleeye | c251e7b3bc919673b41360212c38d5fda85bbe2f | [
"Apache-2.0"
] | 3 | 2020-03-16T12:10:55.000Z | 2021-07-20T09:58:15.000Z | namespace eagleeye
{
/* Image Signal */
template<class T>
ImageSignal<T>::ImageSignal(Matrix<T> data,char* name,char* info)
:BaseImageSignal(TypeTrait<T>::type,TypeTrait<T>::size,info),
img(data)
{
this->m_meta.name = name;
this->m_meta.info = info;
this->m_meta.fps = 0.0;
this->m_meta.nb_frames = 0;
this-... | 24.038732 | 105 | 0.676139 |
8dd36af4771b112910bf0b04fadce500a90ac765 | 1,519 | cpp | C++ | plugins/eclblas/daxpy.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | plugins/eclblas/daxpy.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | plugins/eclblas/daxpy.cpp | cloLN/HPCC-Platform | 42ffb763a1cdcf611d3900831973d0a68e722bbe | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2016 HPCC Systems®.
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 Licens... | 38.948718 | 82 | 0.597762 |
8dd4dcd5ef4d83bb13c99645e91b6891f9c1b949 | 5,854 | hh | C++ | data.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | 1 | 2021-05-06T04:41:37.000Z | 2021-05-06T04:41:37.000Z | data.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | null | null | null | data.hh | cp-profiler/cp-profiler-deprecated- | ec163bde5c3a5bd9cc428b8fa8fd6ef713e0247a | [
"MIT-feh"
] | 1 | 2021-05-06T04:41:39.000Z | 2021-05-06T04:41:39.000Z | /* 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,
* distribute, sublicense, and/or... | 26.609091 | 171 | 0.66399 |
8dd93358887ec518a9ba3cf295d91528162fcbea | 7,217 | cpp | C++ | base/source/ESBReadWriteLock.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | base/source/ESBReadWriteLock.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | base/source/ESBReadWriteLock.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | #ifndef ESB_READ_WRITE_LOCK_H
#include <ESBReadWriteLock.h>
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
namespace ESB {
ReadWriteLock::ReadWriteLock() : _magic(0) {
#ifdef HAVE_PTHREAD_RWLOCK_INIT
if (0 == pthread_rwlock_init(&_lock, 0)) {
_magic = ESB_MAGIC;
}
#elif defined HAVE_PTHREAD_MUTEX_INI... | 21.803625 | 115 | 0.720382 |
8dd9ee89d9d3745ee949f9b6ad9642311151a589 | 1,295 | hpp | C++ | src/servercommon/struct/global/autoparam.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/servercommon/struct/global/autoparam.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/servercommon/struct/global/autoparam.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #pragma once
#include "common/tlvprotocol.h"
class AutoParamBase
{
public:
virtual ~AutoParamBase() = default;
virtual int Size() const = 0;
virtual void Reset() = 0;
virtual bool Serialize(TLVSerializer &serializer) = 0;
virtual bool Unserialize(TLVUnserializer &unserializer) = 0;
};
template<typename StructPa... | 23.125 | 85 | 0.711969 |
8ddc6940da14f4a282e8905395a41cad2c65b69a | 7,484 | cpp | C++ | CPP_Files/Collider.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | CPP_Files/Collider.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | CPP_Files/Collider.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | #include "Collider.h"
/*Well Fudge. I've learned my lesson. Don't trust online 'optimizations' without checking.
* Square Root apparently isn't as 'costly' as some articles made it out to be. I'm not going back to change
* all my work using LSquare and radSquare instead of gl::length, but that's annoying. Real annoyi... | 44.284024 | 153 | 0.700828 |
8ddccfeff11d9917a006a18ae1a98158dd46e11d | 2,336 | inl | C++ | Kalydo/KRFReadLib/Include/kifstream.inl | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Kalydo/KRFReadLib/Include/kifstream.inl | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Kalydo/KRFReadLib/Include/kifstream.inl | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | #include "KRFReadLib.h"
#include "kseek.h"
inline kifstream::kifstream()
: m_File(NULL)
, m_State(std::ios_base::goodbit)
{
}
inline kifstream::kifstream(const char* filename, std::ios_base::openmode mode)
: m_File(kopen(filename, NULL))
, m_State(std::ios_base::goodbit)
{
}
inline kifstream::~kifstream()
{
close()... | 17.432836 | 79 | 0.684075 |
8ddded375da17fec488d16b92232e2c1a2498443 | 5,902 | cc | C++ | Dragon/src/operators/norm/group_norm.cc | awesome-archive/Dragon | b35f9320909d07d138c2f6b345a4c24911f7c521 | [
"BSD-2-Clause"
] | null | null | null | Dragon/src/operators/norm/group_norm.cc | awesome-archive/Dragon | b35f9320909d07d138c2f6b345a4c24911f7c521 | [
"BSD-2-Clause"
] | null | null | null | Dragon/src/operators/norm/group_norm.cc | awesome-archive/Dragon | b35f9320909d07d138c2f6b345a4c24911f7c521 | [
"BSD-2-Clause"
] | null | null | null | #include "core/workspace.h"
#include "utils/filler.h"
#include "utils/op_kernel.h"
#include "utils/math_functions.h"
#include "operators/norm/group_norm_op.h"
namespace dragon {
template <class Context> template <typename Tx, typename Tp>
void GroupNormOp<Context>::RunWithType() {
TENSOR_FILL_WITH_TYPE(Input(1), ... | 34.717647 | 71 | 0.603016 |
8de04c3d945f848d21b8c823ef034a7f5f912d49 | 919 | cpp | C++ | src/json/ConfigManager.cpp | firmware-loader/cpp-firmware-loader | 895159a50b92526cee59f48d8f42131f5a043879 | [
"MIT"
] | null | null | null | src/json/ConfigManager.cpp | firmware-loader/cpp-firmware-loader | 895159a50b92526cee59f48d8f42131f5a043879 | [
"MIT"
] | 2 | 2019-06-13T18:53:01.000Z | 2019-06-14T20:13:38.000Z | src/json/ConfigManager.cpp | firmware-loader/cpp-firmware-loader | 895159a50b92526cee59f48d8f42131f5a043879 | [
"MIT"
] | null | null | null | //
// Created by sebastian on 03.06.19.
//
#include "ConfigManager.h"
namespace firmware::json::config {
ConfigManager::ConfigManager(const std::string &deviceName) {
ConfigFinder config{deviceName};
if (auto &content = config.getFileContents()) {
if(!content->empty()) {
... | 29.645161 | 73 | 0.523395 |
8de1fa2a9fe015e112ef79c5d18aeb21b2db14f9 | 3,598 | cpp | C++ | generated-sources/cpp-restsdk/mojang-api/model/ChangeSkinRequest.cpp | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/cpp-restsdk/mojang-api/model/ChangeSkinRequest.cpp | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | generated-sources/cpp-restsdk/mojang-api/model/ChangeSkinRequest.cpp | AsyncMC/Mojang-API-Libs | b01bbd2bce44bfa2b9ed705a128cf4ecda077916 | [
"Apache-2.0"
] | null | null | null | /**
* Mojang API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2020-06-05
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
#include... | 24.47619 | 120 | 0.673152 |
8de2427540199994d234727c62d0615f40bbe0fa | 113 | cpp | C++ | SAI/behaviors/VDSAIDefaultBehaviors.cpp | VoiDjinn/vdautomata | 2cfa263d366ec31e298a7743f63a3787f5b6ff0d | [
"MIT"
] | null | null | null | SAI/behaviors/VDSAIDefaultBehaviors.cpp | VoiDjinn/vdautomata | 2cfa263d366ec31e298a7743f63a3787f5b6ff0d | [
"MIT"
] | 1 | 2021-07-22T15:18:47.000Z | 2021-07-26T11:12:32.000Z | SAI/behaviors/VDSAIDefaultBehaviors.cpp | VoiDjinn/vdautomata | 2cfa263d366ec31e298a7743f63a3787f5b6ff0d | [
"MIT"
] | null | null | null | #include "VDSAIDefaultBehaviors.h"
VDAsaiDBArrive::VDAsaiDBArrive() {}
void VDAsaiDBArrive::_bind_methods() {}
| 18.833333 | 39 | 0.778761 |
8de2890abc8b5226dbcbd94a329d87e1159e5e53 | 8,470 | cpp | C++ | Libs/Idx/src/IdxMosaicAccess.cpp | n8vm/OpenVisus | dab633f6ecf13ffcf9ac2ad47d51e48902d4aaef | [
"Unlicense"
] | 1 | 2019-04-30T12:11:24.000Z | 2019-04-30T12:11:24.000Z | Libs/Idx/src/IdxMosaicAccess.cpp | tjhei/OpenVisus | f0c3bf21cb0c02f303025a8efb68b8c36701a9fd | [
"Unlicense"
] | null | null | null | Libs/Idx/src/IdxMosaicAccess.cpp | tjhei/OpenVisus | f0c3bf21cb0c02f303025a8efb68b8c36701a9fd | [
"Unlicense"
] | null | null | null | /*-----------------------------------------------------------------------------
Copyright(c) 2010 - 2018 ViSUS L.L.C.,
Scientific Computing and Imaging Institute of the University of Utah
ViSUS L.L.C., 50 W.Broadway, Ste. 300, 84101 - 2044 Salt Lake City, UT
University of Utah, 72 S Central Campus Dr, Room 3750, 84112... | 35 | 190 | 0.628808 |
8de2c262a9224ed23cc47ebc66021bb2ef374350 | 2,947 | hpp | C++ | src/sdl/surface.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/sdl/surface.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/sdl/surface.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "handle/sdl.hpp"
#include "mutex.hpp"
#include "abstbuffer.hpp"
#include "lubee/src/rect.hpp"
#include "handle/sdl.hpp"
#include <SDL_surface.h>
#include <memory>
namespace rev {
struct RGB;
struct RGBA;
class Surface {
private:
SDL_Surface* _sfc;
mutable Mutex _mutex;
AB_Byte _buff... | 31.688172 | 100 | 0.709196 |
8de6bdbe7832f99cc8adfa472432fdd5782c2df6 | 10,224 | cc | C++ | arcane/samples_build/samples/honeycomb_heat/HoneyCombHeatModule.cc | grospelliergilles/framework | 9cb9bc9ad723e2af626267e59dd531cdb7a4df44 | [
"Apache-2.0"
] | 16 | 2021-09-20T12:37:01.000Z | 2022-03-18T09:19:14.000Z | arcane/samples_build/samples/honeycomb_heat/HoneyCombHeatModule.cc | grospelliergilles/framework | 9cb9bc9ad723e2af626267e59dd531cdb7a4df44 | [
"Apache-2.0"
] | 66 | 2021-09-17T13:49:39.000Z | 2022-03-30T16:24:07.000Z | arcane/samples_build/samples/honeycomb_heat/HoneyCombHeatModule.cc | grospelliergilles/framework | 9cb9bc9ad723e2af626267e59dd531cdb7a4df44 | [
"Apache-2.0"
] | 11 | 2021-09-27T16:48:55.000Z | 2022-03-23T19:06:56.000Z | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 37.450549 | 125 | 0.586072 |
8de9dc71831e53c481a3b0fca8d5a92cf9f2941a | 2,209 | cpp | C++ | HyoDioForm.cpp | hyo0913/DurgaTestSlave | 913084be0a9ec8ffe5d2fc3f23f7fcb670007f0f | [
"MIT"
] | null | null | null | HyoDioForm.cpp | hyo0913/DurgaTestSlave | 913084be0a9ec8ffe5d2fc3f23f7fcb670007f0f | [
"MIT"
] | null | null | null | HyoDioForm.cpp | hyo0913/DurgaTestSlave | 913084be0a9ec8ffe5d2fc3f23f7fcb670007f0f | [
"MIT"
] | null | null | null | #include "HyoDioForm.h"
#include "ui_HyoDioForm.h"
#include <QHBoxLayout>
#include <QPushButton>
HyoDioForm::HyoDioForm(int points, QWidget *parent) :
QWidget(parent),
ui(new Ui::HyoDioForm)
{
ui->setupUi(this);
this->setObjectName("Digital I/O");
makePoints(points);
this->adjustSize();
}
H... | 21.656863 | 100 | 0.57809 |
8dea7d0d3b5a4ae3dc71f7840e7fc01a831ada28 | 19,953 | cpp | C++ | NEST-14.0-FPGA/models/iaf_cond_alpha_mc.cpp | OpenHEC/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 45 | 2019-12-09T06:45:53.000Z | 2022-01-29T12:16:41.000Z | NEST-14.0-FPGA/models/iaf_cond_alpha_mc.cpp | zlchai/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 2 | 2020-05-23T05:34:21.000Z | 2021-09-08T02:33:46.000Z | NEST-14.0-FPGA/models/iaf_cond_alpha_mc.cpp | OpenHEC/SNN-simulator-on-PYNQcluster | 14f86a76edf4e8763b58f84960876e95d4efc43a | [
"MIT"
] | 10 | 2019-12-09T06:45:59.000Z | 2021-03-25T09:32:56.000Z | /*
* iaf_cond_alpha_mc.cpp
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
... | 28.302128 | 79 | 0.565629 |
8deca7c3cc465cea32e06b3586fa6f8c0766b8ef | 2,154 | hh | C++ | runtime/windows/include/log4tango/threading/DummyThreads.hh | t-b/igorpro-binding | 9b9d3568d37bc0db5a107d019854e529e19008df | [
"BSD-3-Clause"
] | null | null | null | runtime/windows/include/log4tango/threading/DummyThreads.hh | t-b/igorpro-binding | 9b9d3568d37bc0db5a107d019854e529e19008df | [
"BSD-3-Clause"
] | null | null | null | runtime/windows/include/log4tango/threading/DummyThreads.hh | t-b/igorpro-binding | 9b9d3568d37bc0db5a107d019854e529e19008df | [
"BSD-3-Clause"
] | null | null | null | //
// DummyThreads.hh
//
// Copyright (C) : 2000 - 2002
// LifeLine Networks BV (www.lifeline.nl). All rights reserved.
// Bastiaan Bakker. All rights reserved.
//
// 2004,2005,2006,2007,2008,2009,2010,2011,2012
// Synchrotron SOLEIL
// L'Orme des Merisiers
// Sa... | 21.979592 | 78 | 0.659239 |
8dee852bf0b19030413966eb84a31b0f739c6149 | 693 | cpp | C++ | src/Hazel/Audio/AudioManager.cpp | TroyNeubauer/hazel | f2c1993048e6e12ab0a44a533343c9da54004233 | [
"Apache-2.0"
] | 1 | 2019-10-21T20:50:07.000Z | 2019-10-21T20:50:07.000Z | src/Hazel/Audio/AudioManager.cpp | TroyNeubauer/hazel | f2c1993048e6e12ab0a44a533343c9da54004233 | [
"Apache-2.0"
] | null | null | null | src/Hazel/Audio/AudioManager.cpp | TroyNeubauer/hazel | f2c1993048e6e12ab0a44a533343c9da54004233 | [
"Apache-2.0"
] | null | null | null | #include "hzpch.h"
#include "AudioManager.h"
#include "Platform/LabSound/LabSoundAudioManager.h"
#include "Platform/NoAPI/NoAPIAudio.h"
namespace Hazel {
Scope<AudioManagerImpl> AudioManager::s_Instance;
void Hazel::AudioManager::Init()
{
HZ_CORE_ASSERT(!s_Instance, "Audio Manager already exists!");
#if defin... | 21 | 63 | 0.756133 |
8df257d3deff0e3d644a3a50d4208e0c9af07099 | 5,698 | hpp | C++ | include/Core/Castor3D/Shader/Program.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 245 | 2015-10-29T14:31:45.000Z | 2022-03-31T13:04:45.000Z | include/Core/Castor3D/Shader/Program.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 64 | 2016-03-11T19:45:05.000Z | 2022-03-31T23:58:33.000Z | include/Core/Castor3D/Shader/Program.hpp | Mu-L/Castor3D | 7b9c6e7be6f7373ad60c0811d136c0004e50e76b | [
"MIT"
] | 11 | 2018-05-24T09:07:43.000Z | 2022-03-21T21:05:20.000Z | /*
See LICENSE file in root folder
*/
#ifndef ___C3D_ShaderProgram_H___
#define ___C3D_ShaderProgram_H___
#include "ShaderModule.hpp"
#include "Castor3D/Cache/CacheModule.hpp"
#include "Castor3D/Miscellaneous/DebugName.hpp"
#include "Castor3D/Render/RenderDevice.hpp"
#include <CastorUtils/Data/TextWriter.hpp>
#inclu... | 29.220513 | 90 | 0.697087 |
8df47a1349ede49810cac1e0af817265deb200f5 | 2,140 | cpp | C++ | tests/fuzz/fuzzScale.cpp | Lederstrumpf/substrate-c-tool | 999bc55ffa2f354b96c347ebb122c79baad812cc | [
"MIT"
] | 2 | 2020-05-27T17:45:37.000Z | 2022-03-05T01:31:29.000Z | tests/fuzz/fuzzScale.cpp | Lederstrumpf/substrate-c-tool | 999bc55ffa2f354b96c347ebb122c79baad812cc | [
"MIT"
] | null | null | null | tests/fuzz/fuzzScale.cpp | Lederstrumpf/substrate-c-tool | 999bc55ffa2f354b96c347ebb122c79baad812cc | [
"MIT"
] | 3 | 2020-05-10T23:01:22.000Z | 2020-07-12T07:07:53.000Z | #include <string>
#include <iostream>
#include <exception>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <cstring>
extern "C" {
#include "../../src/scale.h"
}
int print_input(uint8_t *value, size_t value_len) {
std::stringstream s;
for (unsigned int i=0; i<value_len; i++) {
... | 27.435897 | 114 | 0.65514 |
8df64280462de89c2f71cc33cd41d98d3de72d44 | 5,613 | cpp | C++ | camera_models/extrinsics.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 14 | 2018-03-26T13:43:58.000Z | 2022-03-03T13:04:36.000Z | camera_models/extrinsics.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | null | null | null | camera_models/extrinsics.cpp | dustsigns/lecture-demos | 50d5abb252e7e467e9648b61310ce93b85c6c5f0 | [
"BSD-3-Clause"
] | 1 | 2019-08-03T23:12:08.000Z | 2019-08-03T23:12:08.000Z | //Illustration of extrinsic camera parameters
// Andreas Unterweger, 2017-2022
//This code is licensed under the 3-Clause BSD License. See LICENSE file for details.
#include <iostream>
#include <opencv2/viz.hpp>
#include "common.hpp"
#include "math.hpp"
#include "conf_viz.hpp"
static constexpr auto parameter_accura... | 37.42 | 113 | 0.70408 |
8df78a649fb600c58e0c2f641bc01ae01cd342e9 | 2,910 | cpp | C++ | src/System/Clock/PIT/PIT.cpp | corigan01/FluxedOS | 7f854a4636b1a37004e6b3e616b5409c34653ad9 | [
"MIT"
] | 20 | 2021-01-05T20:49:08.000Z | 2022-03-31T08:20:16.000Z | src/System/Clock/PIT/PIT.cpp | corigan01/FluxedOS | 7f854a4636b1a37004e6b3e616b5409c34653ad9 | [
"MIT"
] | 4 | 2021-01-05T20:26:29.000Z | 2022-01-29T07:10:37.000Z | src/System/Clock/PIT/PIT.cpp | corigan01/FluxedOS | 7f854a4636b1a37004e6b3e616b5409c34653ad9 | [
"MIT"
] | 4 | 2021-03-03T23:08:18.000Z | 2021-12-31T18:07:05.000Z | /*
* ______ __ __ __
* / __/ /_ ____ __ / //_/__ _______ ___ / /
* / _// / // /\ \ / / ,< / -_) __/ _ \/ -_) /
* /_/ /_/\_,_//_\_\ /_/|_|\__/_/ /_//_/\__/_/
*
* copyright (c) 2021 Gavin Kellam (aka corigan01)
*
* Permission is hereby granted, free of ... | 33.068182 | 205 | 0.605155 |
8dfb81bb9778d34a666d306f1b59daf6d0d56b42 | 1,091 | cpp | C++ | http/tests/HttpServer-Test.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | 3 | 2020-08-11T06:47:16.000Z | 2021-07-16T09:51:28.000Z | http/tests/HttpServer-Test.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | null | null | null | http/tests/HttpServer-Test.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | 2 | 2020-08-10T07:38:29.000Z | 2021-07-16T09:48:09.000Z | //
// Created by suncx on 2020/9/23.
//
#include "HttpServer.h"
#include "EventLoop.h"
#include "InetAddress.h"
#include "ConsoleStream.h"
using std::string;
using std::to_string;
using reactor::net::HttpRequest;
using reactor::net::HttpResponse;
using reactor::net::http::Headers;
using reactor::net::EventLoop;
using... | 25.372093 | 66 | 0.683776 |
8dfe5e6135d1354defc4941c715298dddff7d00c | 6,771 | hpp | C++ | core/src/impl/Morpheus_DynamicMatrix_Impl.hpp | morpheus-org/morpheus | 8f12b7b75fb7c7c02a4d5d41c64791bacc2f54c6 | [
"Apache-2.0"
] | 1 | 2021-12-18T01:18:49.000Z | 2021-12-18T01:18:49.000Z | core/src/impl/Morpheus_DynamicMatrix_Impl.hpp | morpheus-org/morpheus | 8f12b7b75fb7c7c02a4d5d41c64791bacc2f54c6 | [
"Apache-2.0"
] | 5 | 2021-10-05T15:12:02.000Z | 2022-01-21T23:26:41.000Z | core/src/impl/Morpheus_DynamicMatrix_Impl.hpp | morpheus-org/morpheus | 8f12b7b75fb7c7c02a4d5d41c64791bacc2f54c6 | [
"Apache-2.0"
] | null | null | null | /**
* Morpheus_DynamicMatrix_Impl.hpp
*
* EPCC, The University of Edinburgh
*
* (c) 2021 - 2022 The University of Edinburgh
*
* Contributing Authors:
* Christodoulos Stylianou (c.stylianou@ed.ac.uk)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | 32.868932 | 80 | 0.66962 |
5c03373b7984c0652faf5b7d28e4efd9d412a798 | 6,137 | cpp | C++ | GameClient/GameStateCommunicating.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | null | null | null | GameClient/GameStateCommunicating.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | 1 | 2019-06-19T15:55:25.000Z | 2019-06-27T07:47:27.000Z | GameClient/GameStateCommunicating.cpp | SamirAroudj/BaseProject | 50ede52bd6fa7b20d6ecb8a11bc1193ef841d91d | [
"BSD-3-Clause"
] | 1 | 2019-07-07T04:37:56.000Z | 2019-07-07T04:37:56.000Z | /*
* Copyright (C) 2017 by Author: Aroudj, Samir, born in Suhl, Thueringen, Germany
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt file for details.
*/
#include <cstdio>
#include "Platform/ApplicationTimer.h"
#include "Cl... | 28.812207 | 139 | 0.744338 |
5c05f054d1f1047c5f44822fc367f254e5b5b3f0 | 2,020 | cpp | C++ | 012. Integer to Roman.cpp | rajeev-ranjan-au6/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | 3 | 2020-12-30T00:29:59.000Z | 2021-01-24T22:43:04.000Z | 012. Integer to Roman.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | 012. Integer to Roman.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | // Top-voted solution (https://discuss.leetcode.com/topic/12384/simple-solution).
class Solution {
public:
string intToRoman(int num) {
string M[] = {"", "M", "MM", "MMM"};
string C[] = {"", "C", "CC", "CCC", "CD", "D", "DC", "DCC", "DCCC", "CM"};
string X[] = {"", "X", "XX", "XXX", "XL", "L... | 26.233766 | 82 | 0.357921 |