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 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfb1202543b6cfbf1bd81ea14c8754894a4cd615 | 3,248 | cpp | C++ | common/DebugWriter.cpp | pinterf/AviSynthCUDAFilters | 5d5f1a8fdccc52642ad213486127b7e0a034fb16 | [
"MIT"
] | 9 | 2021-02-08T17:24:31.000Z | 2022-02-03T21:00:08.000Z | common/DebugWriter.cpp | pinterf/AviSynthCUDAFilters | 5d5f1a8fdccc52642ad213486127b7e0a034fb16 | [
"MIT"
] | null | null | null | common/DebugWriter.cpp | pinterf/AviSynthCUDAFilters | 5d5f1a8fdccc52642ad213486127b7e0a034fb16 | [
"MIT"
] | 1 | 2022-02-13T15:11:06.000Z | 2022-02-13T15:11:06.000Z |
#define NOMINMAX
#include <Windows.h>
#include "DebugWriter.h"
#include <stdio.h>
#include <string>
#include <memory>
bool FileExists(const char *fname)
{
FILE *file;
if (file = fopen(fname, "r")) {
fclose(file);
return true;
}
return false;
}
static std::string GetUniqueFileName(... | 32.808081 | 166 | 0.661638 | pinterf |
cfb35df3f2063f77e189ab4fd6b92ec3768fad87 | 15,551 | cpp | C++ | tests/test/transport/test_point_to_point.cpp | Shillaker/faabric | 40da290179c650d9e285475a1992572dfe1c0b10 | [
"Apache-2.0"
] | 1 | 2020-09-01T13:37:54.000Z | 2020-09-01T13:37:54.000Z | tests/test/transport/test_point_to_point.cpp | Shillaker/faabric | 40da290179c650d9e285475a1992572dfe1c0b10 | [
"Apache-2.0"
] | null | null | null | tests/test/transport/test_point_to_point.cpp | Shillaker/faabric | 40da290179c650d9e285475a1992572dfe1c0b10 | [
"Apache-2.0"
] | 1 | 2020-09-13T15:21:16.000Z | 2020-09-13T15:21:16.000Z | #include <catch2/catch.hpp>
#include "faabric_utils.h"
#include <sys/mman.h>
#include <faabric/proto/faabric.pb.h>
#include <faabric/scheduler/Scheduler.h>
#include <faabric/transport/PointToPointServer.h>
#include <faabric/util/config.h>
#include <faabric/util/func.h>
#include <faabric/util/logging.h>
#include <faa... | 31.801636 | 80 | 0.623175 | Shillaker |
cfc08047152b622b9349602ce04f3376fa06ed60 | 3,942 | cpp | C++ | src/core/qgstextlabelfeature.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/core/qgstextlabelfeature.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/core/qgstextlabelfeature.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgstextlabelfeature.cpp
---------------------
begin : December 2015
copyright : (C) 2015 by Martin Dobias
email : wonder dot sk at gmail dot com
************************************... | 35.836364 | 148 | 0.592593 | dyna-mis |
cfc1860d7363e26e741f08e63bc6c0992bbb25e7 | 149,205 | cpp | C++ | twain-v2/support/twain_dsm.cpp | miyako/4d-plugin-twain-v2 | b12641250c4522a2a1e0c9c36f86dfe10e34c903 | [
"MIT"
] | null | null | null | twain-v2/support/twain_dsm.cpp | miyako/4d-plugin-twain-v2 | b12641250c4522a2a1e0c9c36f86dfe10e34c903 | [
"MIT"
] | 1 | 2019-10-07T14:36:39.000Z | 2019-10-07T16:24:46.000Z | twain-v2/support/twain_dsm.cpp | miyako/4d-plugin-twain-v2 | b12641250c4522a2a1e0c9c36f86dfe10e34c903 | [
"MIT"
] | null | null | null | #include "twain_dsm.h"
void twain_get_option_value_name(TW_UINT16 cap, TW_INT32 item, Json::Value& value) {
char str[CAP_VALUE_BUF_SIZE];
memset(str, 0, sizeof(str));
BOOL string_or_constant_value = TRUE;
switch (cap)
{
//convert to constant
#if USE_TWAIN_DSM
case ICAP_AUTOSIZE:
{
switch (... | 27.402204 | 114 | 0.550102 | miyako |
cfc6913d50c60734473a89636303d95835fb0cab | 5,428 | cpp | C++ | modules/segmentation/src/smooth_Euclidean_segmenter.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | modules/segmentation/src/smooth_Euclidean_segmenter.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | modules/segmentation/src/smooth_Euclidean_segmenter.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | #include <pcl/common/angles.h>
#include <v4r/common/miscellaneous.h>
#include <v4r/segmentation/smooth_Euclidean_segmenter.h>
namespace v4r {
template <typename PointT>
void SmoothEuclideanSegmenter<PointT>::segment() {
size_t max_pts_per_cluster = std::numeric_limits<int>::max();
clusters_.clear();
CHECK(sce... | 34.35443 | 114 | 0.616065 | v4r-tuwien |
cfc7d415da8288cba7eb019a7bfd61b997165bef | 599 | cpp | C++ | src/ComposerGUI/composer/package/form/delegate/BaseDelegate.cpp | composer-gui/composer-gui | 2a488db4c6828fee0f36682d0b0edc96d359b4c3 | [
"BSD-3-Clause"
] | 13 | 2019-04-01T07:54:05.000Z | 2022-03-27T16:55:59.000Z | src/ComposerGUI/composer/package/form/delegate/BaseDelegate.cpp | informaticacba/composer-gui | 2a488db4c6828fee0f36682d0b0edc96d359b4c3 | [
"BSD-3-Clause"
] | null | null | null | src/ComposerGUI/composer/package/form/delegate/BaseDelegate.cpp | informaticacba/composer-gui | 2a488db4c6828fee0f36682d0b0edc96d359b4c3 | [
"BSD-3-Clause"
] | 1 | 2022-03-27T16:56:02.000Z | 2022-03-27T16:56:02.000Z | #include "BaseDelegate.h"
namespace composer_gui
{
namespace composer
{
namespace package
{
namespace form
{
namespace delegate
{
void BaseDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
{
// stub
Q_UNUSED(editor);
Q_UNUSED(model);
Q_UNUSED(index);
}... | 16.189189 | 124 | 0.714524 | composer-gui |
cfc83624569f334c133221a3e16b92f38f1f657f | 7,864 | cpp | C++ | 3rdparty/meshlab-master/src/meshlabplugins/io_x3d/io_x3d.cpp | HoEmpire/slambook2 | 96d360f32aa5d8b5c5dcbbf9ee7ba865e84409f4 | [
"MIT"
] | 4 | 2016-03-30T14:31:52.000Z | 2019-02-02T05:01:32.000Z | graphics/meshlab/src/meshlabplugins/io_x3d/io_x3d.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | graphics/meshlab/src/meshlabplugins/io_x3d/io_x3d.cpp | hlzz/dotfiles | 0591f71230c919c827ba569099eb3b75897e163e | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
* MeshLab o o *
* An extendible mesh processor o o *
* _ O _ *
* Copyri... | 42.27957 | 201 | 0.548449 | HoEmpire |
cfcf4e1a0268d179cba838b156ac3e7f72e76870 | 2,426 | cpp | C++ | cpp/libjoynr/proxy/QosArbitrationStrategyFunction.cpp | naeramarth7/joynr | 3c378d3447cf83678d26ef0def44a29fe1270193 | [
"Apache-2.0"
] | 151 | 2015-02-12T16:08:35.000Z | 2022-03-10T06:58:22.000Z | cpp/libjoynr/proxy/QosArbitrationStrategyFunction.cpp | naeramarth7/joynr | 3c378d3447cf83678d26ef0def44a29fe1270193 | [
"Apache-2.0"
] | 78 | 2015-09-28T05:53:22.000Z | 2022-03-18T14:40:30.000Z | cpp/libjoynr/proxy/QosArbitrationStrategyFunction.cpp | naeramarth7/joynr | 3c378d3447cf83678d26ef0def44a29fe1270193 | [
"Apache-2.0"
] | 60 | 2015-06-19T14:07:45.000Z | 2022-03-13T07:58:39.000Z | /*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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 requir... | 37.90625 | 98 | 0.687964 | naeramarth7 |
cfd16aa39895e7a57c68a60906806cf4d9060967 | 2,283 | hpp | C++ | source/canvas/Scene.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:18.000Z | 2021-12-26T12:48:18.000Z | source/canvas/Scene.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | null | null | null | source/canvas/Scene.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:25.000Z | 2021-12-26T12:48:25.000Z | #pragma once
#include <GLCallback.hpp>
#include <RD.hpp>
#include <OriginLLA.hpp>
#include <Skybox.hpp>
#include <GroundPlane.hpp>
#include <HumanInterface.hpp>
#include <VehicleManager.hpp>
class Scene: public GLCallback {
public:
glm::dvec3 renderingOffset; ///< The rendering offset (OpenGL-frame... | 30.039474 | 198 | 0.52431 | RobertDamerius |
cfd215b089622d7347cc037149c365df4d88b98e | 551 | hpp | C++ | include/selection.hpp | SimonRussia/COURSEWORK_fixed | 8cd58f151e5bcddb03ed98b27e27cea0b769d98f | [
"MIT"
] | null | null | null | include/selection.hpp | SimonRussia/COURSEWORK_fixed | 8cd58f151e5bcddb03ed98b27e27cea0b769d98f | [
"MIT"
] | null | null | null | include/selection.hpp | SimonRussia/COURSEWORK_fixed | 8cd58f151e5bcddb03ed98b27e27cea0b769d98f | [
"MIT"
] | null | null | null | // SELECTION.HPP
#include <iostream>
#include <vector>
template <typename RandomAccessIterator>
void selection_sort(RandomAccessIterator left, RandomAccessIterator right) {
for (RandomAccessIterator iter1 = left; iter1 != (right - 1); iter1++) {
RandomAccessIterator min = iter1;
for (RandomAccess... | 30.611111 | 81 | 0.598911 | SimonRussia |
cfd444ae7a9ee096911fd6285cd5f37c0d95d956 | 434 | cc | C++ | src/StackedBlock/Control/StopBlock.cc | khuebeo/scrape | 9706fad08041cac1864036916d8675ec8ad6f034 | [
"MIT"
] | 11 | 2020-06-01T02:26:07.000Z | 2022-03-24T09:12:49.000Z | src/StackedBlock/Control/StopBlock.cc | khuebeo/scrape | 9706fad08041cac1864036916d8675ec8ad6f034 | [
"MIT"
] | 4 | 2020-06-01T14:48:46.000Z | 2020-09-17T16:43:33.000Z | src/StackedBlock/Control/StopBlock.cc | khuebeo/scrape | 9706fad08041cac1864036916d8675ec8ad6f034 | [
"MIT"
] | 2 | 2020-06-05T18:14:44.000Z | 2021-08-13T03:48:17.000Z | #include "StackedBlock/Control/StopBlock.h"
#include "NestedBlock/RoundBlock/Constant.h"
StopBlock::StopBlock(std::shared_ptr<Constant> opt) : option(opt) {}
void StopBlock::exec() const
{
if(option->getString()=="all" || option->getString()=="this script")
{
throw StopBlockCalledException();
}
}
... | 24.111111 | 72 | 0.693548 | khuebeo |
cfd6be510aa7d7970ccdf915362a3966410158a6 | 832 | cpp | C++ | test/cpp/promise/future1.cpp | FeiyangJin/hclib | d23c850dce914e2d80cae733670820812a1edeee | [
"BSD-3-Clause"
] | 55 | 2015-07-28T01:32:58.000Z | 2022-02-27T16:27:46.000Z | test/cpp/promise/future1.cpp | FeiyangJin/hclib | d23c850dce914e2d80cae733670820812a1edeee | [
"BSD-3-Clause"
] | 66 | 2015-06-15T20:38:19.000Z | 2020-08-26T00:11:43.000Z | test/cpp/promise/future1.cpp | FeiyangJin/hclib | d23c850dce914e2d80cae733670820812a1edeee | [
"BSD-3-Clause"
] | 26 | 2015-10-26T22:11:51.000Z | 2021-03-02T22:09:15.000Z | /*
* RICE University
* Habanero Team
*
* This file is part of HC Test.
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "hclib_cpp.h"
int main(int argc, char ** argv) {
constexpr int SIGNAL_VALUE = 42;
const char *deps[] = { "system" };
hclib::launch(deps, 1, []() {
... | 23.111111 | 71 | 0.457933 | FeiyangJin |
cfe1c62182f96b97f256b6b2926bdd33b0dcdaaf | 422 | cpp | C++ | infer/tests/codetoanalyze/cpp/shared/constructors/std_init_list.cpp | awelc/infer | b1e60a1de12428d2de650310271b688dce5d99b1 | [
"MIT"
] | 4 | 2021-11-19T02:07:46.000Z | 2022-03-24T06:03:50.000Z | infer/tests/codetoanalyze/cpp/shared/constructors/std_init_list.cpp | awelc/infer | b1e60a1de12428d2de650310271b688dce5d99b1 | [
"MIT"
] | 1 | 2021-04-05T15:19:58.000Z | 2021-12-16T04:22:26.000Z | infer/tests/codetoanalyze/cpp/shared/constructors/std_init_list.cpp | awelc/infer | b1e60a1de12428d2de650310271b688dce5d99b1 | [
"MIT"
] | 1 | 2019-04-26T02:27:43.000Z | 2019-04-26T02:27:43.000Z | /*
* Copyright (c) 2016-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <initializer_list>
class X {
public:
X(std::initializer_list<int> list) {
for (auto i = list.begin(); i != list.end(); i... | 18.347826 | 66 | 0.594787 | awelc |
cfe1ef19aaeb68d68f76160d1d92224114f6bc4e | 4,962 | cpp | C++ | Server/src/Pages/UsersList.cpp | siisgoo/siisty | 66103c54e0d1b35b88177c290e2bf60012607309 | [
"MIT"
] | null | null | null | Server/src/Pages/UsersList.cpp | siisgoo/siisty | 66103c54e0d1b35b88177c290e2bf60012607309 | [
"MIT"
] | null | null | null | Server/src/Pages/UsersList.cpp | siisgoo/siisty | 66103c54e0d1b35b88177c290e2bf60012607309 | [
"MIT"
] | null | null | null | #include "Pages/Users/UsersList.hpp"
#include "ui_UsersList.h"
#include <QAction>
#include <qnamespace.h>
UsersList::UsersList(const QMap<Database::RoleId, Database::Driver::role_set>& roles, QWidget *parent)
: QWidget(parent),
ui(new Ui::UsersList),
_usersWaiter(new Database::DriverAssistant),
... | 36.485294 | 136 | 0.548771 | siisgoo |
cfe2039937be6a3dcd6c38da4d44998cf18e8750 | 7,901 | hpp | C++ | include/gvmt/internal/compiler.hpp | Melab/gvmt | 566eac01724b687bc5e11317e44230faab15f895 | [
"MIT"
] | null | null | null | include/gvmt/internal/compiler.hpp | Melab/gvmt | 566eac01724b687bc5e11317e44230faab15f895 | [
"MIT"
] | null | null | null | include/gvmt/internal/compiler.hpp | Melab/gvmt | 566eac01724b687bc5e11317e44230faab15f895 | [
"MIT"
] | 1 | 2021-12-04T15:59:58.000Z | 2021-12-04T15:59:58.000Z | #ifndef GVMT_COMPILER_INTERNAL_H
#define GVMT_COMPILER_INTERNAL_H
// LLVM says we must define this so we do. Don't know why!
#define __STDC_CONSTANT_MACROS
#include "gvmt/internal/core.h"
#include "gvmt/internal/compiler_shared.h"
#include <llvm/Module.h>
#include <llvm/Function.h>
#include <llvm/PassManager.h>
#incl... | 42.026596 | 111 | 0.703202 | Melab |
cfe8884fb75a0abd7db0f86070c02919fd940de3 | 4,525 | cpp | C++ | Shader/NormalRenderer.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | Shader/NormalRenderer.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | null | null | null | Shader/NormalRenderer.cpp | PremiumGraphicsCodes/CGLib | eecd73c5af1a9e0c044e7d675318dbb496aec6b5 | [
"MIT"
] | 1 | 2022-02-03T08:09:03.000Z | 2022-02-03T08:09:03.000Z | #include "stdafx.h"
#include "NormalRenderer.h"
#include <sstream>
using namespace Crystal::Math;
using namespace Crystal::Graphics;
using namespace Crystal::Shader;
void NormalBuffer::add(const Vector3d<float>& position, const Vector3d<float>& normal, const ColorRGBA<float>& color)
{
this->position.add(... | 30.782313 | 118 | 0.676464 | PremiumGraphicsCodes |
cfeb18776b9b59f40fc9441765d3ae3af847a120 | 51 | hpp | C++ | src/boost_spirit_home_x3_directive_skip.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_home_x3_directive_skip.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_home_x3_directive_skip.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/home/x3/directive/skip.hpp>
| 25.5 | 50 | 0.784314 | miathedev |
cfee87279dbcd01414c7b75b892bb46af0efdc50 | 43 | hh | C++ | RAVL2/MSVC/include/Ravl/Base64.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/MSVC/include/Ravl/Base64.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/MSVC/include/Ravl/Base64.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null |
#include "../.././Core/System/Base64.hh"
| 10.75 | 40 | 0.581395 | isuhao |
cfef116472a426d17c420246aa030c2348d3a422 | 18,710 | cc | C++ | library/common/config/config.cc | lyft/envoy-mobile | 218e317288f79915249e7bee33a4c8ec58cfd76d | [
"Apache-2.0"
] | 399 | 2019-06-17T23:05:09.000Z | 2020-11-11T09:15:47.000Z | library/common/config/config.cc | lyft/envoy-mobile | 218e317288f79915249e7bee33a4c8ec58cfd76d | [
"Apache-2.0"
] | 619 | 2019-06-17T22:22:59.000Z | 2020-11-11T03:58:27.000Z | library/common/config/config.cc | lyft/envoy-mobile | 218e317288f79915249e7bee33a4c8ec58cfd76d | [
"Apache-2.0"
] | 40 | 2019-06-18T16:09:58.000Z | 2020-10-21T19:11:42.000Z | // NOLINT(namespace-envoy)
#include "library/common/config/internal.h"
#include "library/common/config/templates.h"
const int custom_cluster_indent = 2;
const int custom_listener_indent = 2;
const int custom_filter_indent = 2;
const int custom_route_indent = 16;
const int fake_remote_response_indent = 14;
const char*... | 35.638095 | 129 | 0.698771 | lyft |
cff07859889f0d027fa62da168a82bdd58bc24b9 | 2,670 | cpp | C++ | software/arduino/SensorDemo/lib/MyCst816s/CST816S.cpp | Ualker/T-Watch-2021 | 741e29740fd854be6b1036637b5f1dce4b428bb2 | [
"MIT"
] | 34 | 2021-08-10T11:12:15.000Z | 2022-03-30T11:57:15.000Z | software/arduino/SensorDemo/lib/MyCst816s/CST816S.cpp | Ualker/T-Watch-2021 | 741e29740fd854be6b1036637b5f1dce4b428bb2 | [
"MIT"
] | 2 | 2021-10-03T23:58:16.000Z | 2022-01-11T02:01:58.000Z | software/arduino/SensorDemo/lib/MyCst816s/CST816S.cpp | Ualker/T-Watch-2021 | 741e29740fd854be6b1036637b5f1dce4b428bb2 | [
"MIT"
] | 11 | 2021-10-02T05:17:39.000Z | 2022-03-30T11:59:41.000Z | #include <Wire.h>
#include "CST816S.h"
// Write register values to chip
void CST816S::_writeReg(uint8_t reg, uint8_t *data, uint8_t len)
{
_i2cPort->beginTransmission(_address);
_i2cPort->write(reg);
for (uint8_t i = 0; i < len; i++)
{
_i2cPort->write(data[i]);
}
_i2cPort->endTransmission();
}
// read registe... | 19.489051 | 74 | 0.668165 | Ualker |
cff3a59452c3dbc82f3c2a4a48430e757655a491 | 2,239 | hpp | C++ | reflection/Reflectible.hpp | ValtoLibraries/PUtils | f30ebf21416654743ad2a05b14974acd27257da8 | [
"MIT"
] | null | null | null | reflection/Reflectible.hpp | ValtoLibraries/PUtils | f30ebf21416654743ad2a05b14974acd27257da8 | [
"MIT"
] | null | null | null | reflection/Reflectible.hpp | ValtoLibraries/PUtils | f30ebf21416654743ad2a05b14974acd27257da8 | [
"MIT"
] | null | null | null | #pragma once
#include <atomic>
#include <string>
#include <string_view>
#include "meta/table.hpp"
#include "meta/nameof.hpp"
#define pmeta_reflectible_attribute(memberPtr) std::string_view(#memberPtr).substr(std::string_view(#memberPtr).find("::") + 2), memberPtr
#define pmeta_reflectible_attribute_private(memberPtr... | 36.112903 | 146 | 0.646717 | ValtoLibraries |
320100ff5a27d461564894af12821d780c2e310a | 1,605 | cpp | C++ | online-judge/10114.cpp | kirillgashkov/cp-solutions | 863603b076e94b324b0d44a9adff4099e3131513 | [
"MIT"
] | null | null | null | online-judge/10114.cpp | kirillgashkov/cp-solutions | 863603b076e94b324b0d44a9adff4099e3131513 | [
"MIT"
] | null | null | null | online-judge/10114.cpp | kirillgashkov/cp-solutions | 863603b076e94b324b0d44a9adff4099e3131513 | [
"MIT"
] | null | null | null | #include <iostream>
#include <unordered_map>
using namespace std;
float calculate_months(
int duration_months,
float down_payment,
float amount_loan,
int depr_count
) {
float amount_with_depr = amount_loan + down_payment;
float amount_with_paid = amount_loan;
float monthly_pay = amoun... | 25.47619 | 84 | 0.598754 | kirillgashkov |
32024d8348dc95d0bffd16b4985c9630ccb31121 | 769 | tpp | C++ | src/util/algorithm/path.tpp | luist18/feup-cal-proj | b7fbb8aaed63c705cd85125b3d3f88ae77b1416c | [
"MIT"
] | null | null | null | src/util/algorithm/path.tpp | luist18/feup-cal-proj | b7fbb8aaed63c705cd85125b3d3f88ae77b1416c | [
"MIT"
] | null | null | null | src/util/algorithm/path.tpp | luist18/feup-cal-proj | b7fbb8aaed63c705cd85125b3d3f88ae77b1416c | [
"MIT"
] | 2 | 2020-05-05T11:19:34.000Z | 2020-06-07T14:41:46.000Z |
#include "path.h"
template<typename T>
Path<T>::Path(const list<Vertex<T>> &path, double pathCost, Cluster &cluster) : path(path), pathCost(pathCost),
cluster(cluster) {}
template<typename T>
const list<Vertex<T>> &Path<T>::getPath() con... | 21.971429 | 111 | 0.603381 | luist18 |
32035fe4b4bc342eae7759487dadc41b3dcacda5 | 5,561 | cpp | C++ | sqlite.cpp | felaugmar/gd-sqlite | 29921dabb52b08788cfd659551ea78615cea935a | [
"MIT"
] | 1 | 2020-07-05T13:39:40.000Z | 2020-07-05T13:39:40.000Z | sqlite.cpp | felaugmar/gd-sqlite | 29921dabb52b08788cfd659551ea78615cea935a | [
"MIT"
] | null | null | null | sqlite.cpp | felaugmar/gd-sqlite | 29921dabb52b08788cfd659551ea78615cea935a | [
"MIT"
] | null | null | null | #include "sqlite.h"
#include "database.h"
SQLite *SQLite::singleton = NULL;
SQLite *SQLite::get_singleton() {
return singleton;
}
String SQLite::errstr(int result_code) const {
return sqlite3_errstr(result_code);
}
String SQLite::version() const {
return SQLITE_VERSION;
}
uint32_t SQLite::version_number() cons... | 30.387978 | 108 | 0.830067 | felaugmar |
3203c1934a479ee14d64d08b5ce229a286b82378 | 1,027 | hpp | C++ | nacl/graph/spfa.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | 3 | 2021-08-31T17:51:01.000Z | 2021-11-13T16:22:25.000Z | nacl/graph/spfa.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | nacl/graph/spfa.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | struct SPFA {
static const int maxn = 1010, INF = 1e9;
int dis[maxn];
bitset<maxn> inq, inneg;
queue<int> q, tq;
vector<pii> v[maxn];
void make_edge(int s, int t, int w) {
v[s].emplace_back(t, w);
}
void dfs(int a) {
inneg[a] = 1;
for (pii i : v[a])
if (!inneg[i.F]) dfs(i.F);
}
boo... | 23.340909 | 54 | 0.439143 | ToxicPie |
3209b2cad585d1b7f719f40fe3eebfe11ab57d84 | 578 | cpp | C++ | src/Engine/Engine.cpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | src/Engine/Engine.cpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | src/Engine/Engine.cpp | Hazurl/Framework-haz | 370348801cd969ce8521264653069923a255e0b0 | [
"MIT"
] | null | null | null | #include <haz/Engine/Engine.hpp>
#include <haz/GameObject/GameObject.hpp>
#include <haz/Tools/Time.hpp>
BEG_NAMESPACE_HAZ
Engine::~Engine() {
Engine::reset();
}
Time const& Engine::time () {
return *get()._time;
}
void Engine::reset() {
GameObject::destroyAll();
if (get()._time != nullptr) {
... | 16.055556 | 40 | 0.591696 | Hazurl |
320d395c6da6fdd63d6636067d347237e15048e9 | 1,172 | cxx | C++ | Modules/Loadable/CropVolume/Testing/vtkMRMLCropVolumeParametersNodeTest1.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Modules/Loadable/CropVolume/Testing/vtkMRMLCropVolumeParametersNodeTest1.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Modules/Loadable/CropVolume/Testing/vtkMRMLCropVolumeParametersNodeTest1.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | /*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH)
All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
========================================... | 33.485714 | 82 | 0.6843 | TheInterventionCentre |
3212c6fc6d087fe5addcc9e3815f3dce60e11154 | 1,234 | cpp | C++ | Codes/CodeForces/B/1150B.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | 3 | 2019-07-20T07:26:31.000Z | 2020-08-06T09:31:09.000Z | Codes/CodeForces/B/1150B.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | null | null | null | Codes/CodeForces/B/1150B.cpp | fahimfarhan/legendary-coding-odyssey | 55289e05aa04f866201c607bed00c505cd9c4df9 | [
"MIT"
] | 4 | 2019-06-20T18:43:32.000Z | 2020-10-07T16:45:23.000Z | #include <bits/stdc++.h>
using namespace std;
#define PI 2*acos(0)
#define ll long long int
bool myAssert(bool b);
void testDrivenDevelopment();
int start(int argc=0, char const *argv[] = NULL);
// int n,m;
vector<int> *g;
bool *isvisited;
int n;
string *s;
int main(int argc, char const *argv[])
{
/* code */... | 19.587302 | 115 | 0.426256 | fahimfarhan |
32172762f4a1853f728f5af8987d401b38b2e5f4 | 348 | cpp | C++ | solutions/leetcode/1221. Split a String in Balanced Strings.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | 1 | 2021-08-12T14:53:37.000Z | 2021-08-12T14:53:37.000Z | solutions/leetcode/1221. Split a String in Balanced Strings.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | null | null | null | solutions/leetcode/1221. Split a String in Balanced Strings.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | null | null | null | static int __=[](){std::ios::sync_with_stdio(false);return 1000;}();
class Solution {
public:
int balancedStringSplit(string s) {
int sum = 0 , c = 0;
for(int i=0 ; i<s.size() ; i++){
if(s[i]=='L') sum--;
else sum ++ ;
if(!sum)c++;
}
... | 23.2 | 68 | 0.422414 | MohanedAshraf |
32177c9c8fd88caf048d0d3e8f53969ed24e714b | 17,611 | cpp | C++ | d-collide/narrowphase/intersectionhelpers.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | 6 | 2015-12-08T05:38:03.000Z | 2021-04-09T13:45:59.000Z | d-collide/narrowphase/intersectionhelpers.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | d-collide/narrowphase/intersectionhelpers.cpp | ColinGilbert/d-collide | 8adb354d52e7ee49705ca2853d50a6a879f3cd49 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2007 by the members of PG 510, University of Dortmund: *
* d-collide-users@lists.sourceforge.net *
* Andreas Beckermann, Christian Bode, Marcel Ens, Sebastian Ens, ... | 40.392202 | 87 | 0.564193 | ColinGilbert |
32189d93713ec007cc74c4a94689870ad948bdb8 | 21,331 | cpp | C++ | src/software/simulation/simulator_test.cpp | EvanMorcom/Software | 586fb3cf8dc2d93de194d9815af5de63caa7e318 | [
"MIT"
] | null | null | null | src/software/simulation/simulator_test.cpp | EvanMorcom/Software | 586fb3cf8dc2d93de194d9815af5de63caa7e318 | [
"MIT"
] | null | null | null | src/software/simulation/simulator_test.cpp | EvanMorcom/Software | 586fb3cf8dc2d93de194d9815af5de63caa7e318 | [
"MIT"
] | null | null | null | #include "software/simulation/simulator.h"
#include <gtest/gtest.h>
#include "software/primitive/move_primitive.h"
#include "software/primitive/primitive.h"
#include "software/test_util/test_util.h"
TEST(SimulatorTest, get_field)
{
Field field = Field::createSSLDivisionBField();
Simulator simulator(field);
... | 41.339147 | 90 | 0.697389 | EvanMorcom |
32196251aa923cc50e936cf33b5542925de2f80e | 967 | cpp | C++ | URI/HiddenMessage.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | URI/HiddenMessage.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | URI/HiddenMessage.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... | 16.672414 | 67 | 0.433299 | aajjbb |
321d8254125b561a75b463271f8eeb7765155e10 | 5,771 | cpp | C++ | sdktools/sysparse/nt4dev.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | sdktools/sysparse/nt4dev.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | sdktools/sysparse/nt4dev.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "globals.h"
kNT4DevWalk::kNT4DevWalk(kLogFile *Proc, HWND hIn)
{
LogProc=Proc;
hMainWnd=hIn;
}
BOOL kNT4DevWalk::Begin()
{
DWORD dwRet = 0;
dwCurrentKey = 0;
dwLevel2Key = 0;
lstrcpy(szRootKeyString, "SYSTEM\\CurrentControlSet\\Enum\\Root");
if (ERROR_SUCCESS == RegOpenKey... | 29.747423 | 130 | 0.555883 | npocmaka |
321e1905f18bb7dbc3de98a8e5736a7c9493e3eb | 492 | cc | C++ | weblayer/browser/component_updater/registration.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | weblayer/browser/component_updater/registration.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | weblayer/browser/component_updater/registration.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "weblayer/browser/component_updater/registration.h"
namespace weblayer {
component_updater::ComponentLoaderPolicyVector GetComponentLoaderPolic... | 32.8 | 77 | 0.796748 | zealoussnow |
322481eb96f697dd11210553d8186567094dc7ed | 2,363 | cpp | C++ | main.cpp | SinaRaoufi/AVLWordTree | 87e18951175b9cf93fa9d2323e8df52de2e3c2ab | [
"MIT"
] | null | null | null | main.cpp | SinaRaoufi/AVLWordTree | 87e18951175b9cf93fa9d2323e8df52de2e3c2ab | [
"MIT"
] | null | null | null | main.cpp | SinaRaoufi/AVLWordTree | 87e18951175b9cf93fa9d2323e8df52de2e3c2ab | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include "AVLWordTree.hpp"
using namespace std;
int main()
{
AVLWordTree tree;
// an empty tree
cout << "Is tree empty? " << boolalpha << tree.isEmpty() << endl;
tree.insert("fig");
// fig
cout << "Is tree empty? " << boolalpha << tree.isEmpty() << endl... | 27.16092 | 96 | 0.490478 | SinaRaoufi |
322538eaab9bfdc0586d6d93e37ef07041b18fe1 | 5,040 | hpp | C++ | src/animation.hpp | texierp/easysplash | 8885ecad917e4b06da4c447edbd48263a9315955 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-04-30T22:09:32.000Z | 2021-04-30T22:09:32.000Z | src/animation.hpp | texierp/easysplash | 8885ecad917e4b06da4c447edbd48263a9315955 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/animation.hpp | texierp/easysplash | 8885ecad917e4b06da4c447edbd48263a9315955 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* EasySplash - tool for animated splash screens
* Copyright (C) 2014 O.S. Systems Software LTDA.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*/
#ifndef EASYSPLASH_ANIMATION_HPP
#define EASYSPLASH_ANIMATION_HPP
#include <cstddef>
#include <vector>
#include <iostream>
#include <functional>
#include <condit... | 31.111111 | 124 | 0.763095 | texierp |
3226558e276a487396cd4fb0133e7be3b071e439 | 9,325 | cxx | C++ | main/svx/source/gallery2/galbrws.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/svx/source/gallery2/galbrws.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/svx/source/gallery2/galbrws.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 32.491289 | 136 | 0.592172 | Grosskopf |
322938883b8d8ab44d7588fd247252f0a2d4ae88 | 13,796 | cpp | C++ | src/arboretum/stSeqNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | src/arboretum/stSeqNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | src/arboretum/stSeqNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | /* Copyright 2003-2017 GBDI-ICMC-USP <caetano@icmc.usp.br>
*
* 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 applicabl... | 31.788018 | 89 | 0.557553 | marcosivni |
322adaa924d386a395e11b59cc96dc8a89a0460e | 1,916 | cc | C++ | test/server/listener_socket_option_impl_test.cc | wrowe/envoy | e785478be30a55db518c8cf1d9366859cb74d216 | [
"Apache-2.0"
] | null | null | null | test/server/listener_socket_option_impl_test.cc | wrowe/envoy | e785478be30a55db518c8cf1d9366859cb74d216 | [
"Apache-2.0"
] | null | null | null | test/server/listener_socket_option_impl_test.cc | wrowe/envoy | e785478be30a55db518c8cf1d9366859cb74d216 | [
"Apache-2.0"
] | null | null | null | #include "server/listener_socket_option_impl.h"
#include "test/common/network/socket_option_test.h"
namespace Envoy {
namespace Server {
class ListenerSocketOptionImplTest : public Network::SocketOptionTest {
public:
void testSetSocketOptionSuccess(ListenerSocketOptionImpl& socket_option, int socket_level,
... | 43.545455 | 100 | 0.716075 | wrowe |
7a89ed04c4fc1dc2512e14dc942b9d6da0e57fe5 | 566 | cpp | C++ | LevelHEngine/Maths/Convert.cpp | JSlowgrove/LevelHEngine-GEP-Assignment-1 | ab5f59414e712c1c10177e3063f9e1554cda8331 | [
"MIT"
] | null | null | null | LevelHEngine/Maths/Convert.cpp | JSlowgrove/LevelHEngine-GEP-Assignment-1 | ab5f59414e712c1c10177e3063f9e1554cda8331 | [
"MIT"
] | null | null | null | LevelHEngine/Maths/Convert.cpp | JSlowgrove/LevelHEngine-GEP-Assignment-1 | ab5f59414e712c1c10177e3063f9e1554cda8331 | [
"MIT"
] | null | null | null | #include "Convert.h"
#include "../Core/WindowFrame.h"
namespace Convert
{
float convertDegreeToRadian(float angle)
{
return (angle * PI / 180.0f);
}
float convertRadianToDegree(float angle)
{
return (angle * 180.0f / PI);
}
Vec2 convertToOpenGLCoordinate(Vec2 coordinates)
{
//convert to openGL coordin... | 17.6875 | 49 | 0.687279 | JSlowgrove |
7a8a353de0f59f0a0c89cb1d5ebcca4a6cac698e | 468 | hpp | C++ | srook/config/extension.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | 1 | 2018-07-01T07:54:37.000Z | 2018-07-01T07:54:37.000Z | srook/config/extension.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | null | null | null | srook/config/extension.hpp | falgon/srookCppLibraries | ebcfacafa56026f6558bcd1c584ec774cc751e57 | [
"MIT"
] | null | null | null | // Copyright (C) 2011-2020 Roki. Distributed under the MIT License
#ifndef INCLUDED_SROOK_CONFIG_EXTENSION_HPP
#define INCLUDED_SROOK_CONFIG_EXTENSION_HPP
#include <srook/config/extension/Nonnull.hpp>
#include <srook/config/extension/Nullunspecified.hpp>
#include <srook/config/extension/Nullable.hpp>
#include <srook/c... | 36 | 66 | 0.82906 | falgon |
7a8c836a34b62a05f010a32b78575184a82313cf | 458 | cpp | C++ | test/example.cpp | dermojo/spsl | 68f9ae6f50f7b94601f0b8e7cbc47f553345e836 | [
"MIT"
] | null | null | null | test/example.cpp | dermojo/spsl | 68f9ae6f50f7b94601f0b8e7cbc47f553345e836 | [
"MIT"
] | 25 | 2016-11-06T20:51:06.000Z | 2022-02-26T15:43:17.000Z | test/example.cpp | dermojo/spsl | 68f9ae6f50f7b94601f0b8e7cbc47f553345e836 | [
"MIT"
] | 1 | 2019-07-16T00:37:11.000Z | 2019-07-16T00:37:11.000Z | /**
* @file Special Purpose Strings Library: example.cpp
* @author Daniel Evers
* @brief Simple usage examples
* @license MIT
*/
#include <spsl.hpp>
int main(int, const char**)
{
spsl::ArrayString<64> a1("I'm a stack-based string and can store 64 characters + NUL");
spsl::ArrayStringW<32> a2(L"Wide... | 25.444444 | 91 | 0.655022 | dermojo |
7a8fd2a673ce94400990b4c5c2ab79f2af0f5eee | 7,987 | cpp | C++ | Common/etc/date.cpp | jjuiddong/Common | 2518fa05474222f84c474707b4511f190a34f574 | [
"MIT"
] | 2 | 2017-11-24T12:34:14.000Z | 2021-09-10T02:18:34.000Z | Common/etc/date.cpp | jjuiddong/Common | 2518fa05474222f84c474707b4511f190a34f574 | [
"MIT"
] | null | null | null | Common/etc/date.cpp | jjuiddong/Common | 2518fa05474222f84c474707b4511f190a34f574 | [
"MIT"
] | 6 | 2017-11-24T12:34:56.000Z | 2022-03-22T10:05:45.000Z |
#include "stdafx.h"
#include "date.h"
#include "boost/date_time/gregorian/gregorian.hpp"
#include "boost/date_time/posix_time/posix_time.hpp"
using namespace common;
// return time string, yyyy-mm-dd-hh-mm-ss-mmm
// ex) 2017-01-08-11-05-30-010
// http://stackoverflow.com/questions/22975077/how-to-convert-a-boostpti... | 26.983108 | 88 | 0.65569 | jjuiddong |
7a9534ca8435041af260844e9fd92ac973b42331 | 5,891 | cpp | C++ | src/opts/SkBlitRow_opts_arm_neon.cpp | InvictrixRom/external_skia | 5d1778b530aa0b845b8d6996815665f7cc44bf38 | [
"BSD-3-Clause"
] | 4 | 2019-10-18T05:53:30.000Z | 2021-08-21T07:36:37.000Z | src/opts/SkBlitRow_opts_arm_neon.cpp | InvictrixRom/external_skia | 5d1778b530aa0b845b8d6996815665f7cc44bf38 | [
"BSD-3-Clause"
] | null | null | null | src/opts/SkBlitRow_opts_arm_neon.cpp | InvictrixRom/external_skia | 5d1778b530aa0b845b8d6996815665f7cc44bf38 | [
"BSD-3-Clause"
] | 7 | 2017-09-30T23:06:11.000Z | 2019-05-30T08:54:33.000Z | /*
* Copyright 2012 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBlitRow_opts_arm_neon.h"
#include "SkBlitMask.h"
#include "SkBlitRow.h"
#include "SkColorPriv.h"
#include "SkDither.h"
#include "SkMathPriv.h"... | 29.019704 | 85 | 0.579189 | InvictrixRom |
7a95a74430682830236a4a74ef2832ad2cb507e0 | 6,853 | hpp | C++ | src/widgets/widget_layer_spacefill.hpp | DisQS/AniMolViewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | 2 | 2021-11-21T23:26:00.000Z | 2021-12-18T10:33:17.000Z | src/widgets/widget_layer_spacefill.hpp | DisQS/AniMolViewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | 5 | 2021-11-28T18:26:25.000Z | 2021-12-06T08:15:06.000Z | src/widgets/widget_layer_spacefill.hpp | DisQS/animol-viewer | c56293067672a453a3cf3490c0e86004df0130dc | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <array>
#include <type_traits>
#include "plate.hpp"
#include "widgets/widget_spheres.hpp"
#include "widgets/anim_alpha.hpp"
#include "widget_layer.hpp"
namespace animol {
template<class M>
class widget_layer_spacefill : public widget_layer<M>
{
public:
~widget_layer_spacefill()
{
... | 26.66537 | 150 | 0.584562 | DisQS |
7a95c9cf5b65453dff00f81258d0de83284eecb4 | 2,130 | cpp | C++ | test/StringTest.cpp | maxvu/busboy | 4faed5638e81003d99a68ed68c0db32ffca2be9d | [
"MIT"
] | 1 | 2016-04-11T21:48:54.000Z | 2016-04-11T21:48:54.000Z | test/StringTest.cpp | maxvu/busboy | 4faed5638e81003d99a68ed68c0db32ffca2be9d | [
"MIT"
] | null | null | null | test/StringTest.cpp | maxvu/busboy | 4faed5638e81003d99a68ed68c0db32ffca2be9d | [
"MIT"
] | null | null | null | #include "catch/catch.hpp"
#include "String.hpp"
using busboy::String;
TEST_CASE( "String access", "[String]" ) {
SECTION( "Construction, equality" ) {
String one = "one";
String two = "two";
CHECK( one.getLength() == 3 );
CHECK( one.getCapacity() >= 3 );
CHECK( one.oper... | 22.903226 | 69 | 0.429108 | maxvu |
7a9791dedfc31f56328a7f97bec3bec2ba987252 | 4,709 | cpp | C++ | extension/tpcds/dsdgen/dsdgen-c/init.cpp | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 2,816 | 2018-06-26T18:52:52.000Z | 2021-04-06T10:39:15.000Z | extension/tpcds/dsdgen/dsdgen-c/init.cpp | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 1,310 | 2021-04-06T16:04:52.000Z | 2022-03-31T13:52:53.000Z | extension/tpcds/dsdgen/dsdgen-c/init.cpp | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 270 | 2021-04-09T06:18:28.000Z | 2022-03-31T11:55:37.000Z | /*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trademark rig... | 36.503876 | 77 | 0.764494 | AldoMyrtaj |
7a9b48579ee79e754b24089e0ce91447d1271350 | 1,112 | cpp | C++ | SDKs/CryCode/3.7.0/GameDll/uberfiles/GameSDK_7_uber.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/GameDll/uberfiles/GameSDK_7_uber.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/GameDll/uberfiles/GameSDK_7_uber.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | #ifdef _DEVIRTUALIZE_
#include <GameSDK_devirt_defines.h>
#endif
#include "../Utility/AttachmentUtils.cpp"
#include "../PlayerAnimation.cpp"
#include "../StickyProjectile.cpp"
#include "../UI/HUD/HUDControllerInputIcons.cpp"
#include "../UI/HUD/HUDEventDispatcher.cpp"
#include "../UI/HUD/HUDEventTranslator.cpp"
#incl... | 32.705882 | 54 | 0.742806 | amrhead |
7aa1c363983585b236897b78568c1da965c70ff9 | 385 | hpp | C++ | falcon/mpl/key_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/mpl/key_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/mpl/key_type.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_MPL_KEY_TYPE_HPP
#define FALCON_MPL_KEY_TYPE_HPP
#include <falcon/mpl/key_type_fwd.hpp>
#include <falcon/mpl/sequence_tag.hpp>
namespace falcon {
namespace mpl {
template<typename AssociativeSequence, typename Key>
struct key_type
{
using type = key_type_impl<sequence_tag_t<AssociativeSequence>>
:... | 18.333333 | 65 | 0.794805 | jonathanpoelen |
7aa35115ccb108f020cb6952ce61080d7277556b | 2,489 | cpp | C++ | test/algorithms/dp/test_knapsack_problem.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | test/algorithms/dp/test_knapsack_problem.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | test/algorithms/dp/test_knapsack_problem.cpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #include <boost/test/unit_test.hpp>
#include "algorithms/dp/knapsack_problem.hpp"
#include "common/equality.hpp"
BOOST_AUTO_TEST_SUITE(KnapsakProblem)
BOOST_AUTO_TEST_CASE(greedy_test)
{
{
std::vector<std::pair<uint32_t, uint32_t>> items = {
{10, 10}, {5, 100}, {15, 3}
};
uint... | 29.630952 | 85 | 0.586581 | iamantony |
7aa413252796834f146a532eb6f7c0d4d9c3a47f | 11,822 | cpp | C++ | Source/TinyEngine/Graphics3D/ModelNode.cpp | chenjinxian/FX-Studio | cc4afddc4bce688e8366b8e4ceb2708adffd6eb4 | [
"MIT"
] | 18 | 2016-10-19T00:40:56.000Z | 2021-10-03T16:45:11.000Z | Source/TinyEngine/Graphics3D/ModelNode.cpp | chenjinxian/FX-Studio | cc4afddc4bce688e8366b8e4ceb2708adffd6eb4 | [
"MIT"
] | null | null | null | Source/TinyEngine/Graphics3D/ModelNode.cpp | chenjinxian/FX-Studio | cc4afddc4bce688e8366b8e4ceb2708adffd6eb4 | [
"MIT"
] | 4 | 2017-02-10T09:08:59.000Z | 2021-02-15T08:39:27.000Z | #include "ModelNode.h"
#include "CameraNode.h"
#include "Scene.h"
#include "Model.h"
#include "Material.h"
#include "../Actors/Actor.h"
#include "../Actors/RenderComponent.h"
#include "../Actors/TransformComponent.h"
#include "../ResourceCache/ResCache.h"
#include "../ResourceCache/TextureResource.h"
#include "../Resou... | 28.834146 | 122 | 0.670868 | chenjinxian |
7ab3b27242585af42243c9a6a40815835e0942bf | 578 | cpp | C++ | a program to form combination of 0,S AND 1,S upon how much user enter the value of n.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | a program to form combination of 0,S AND 1,S upon how much user enter the value of n.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | a program to form combination of 0,S AND 1,S upon how much user enter the value of n.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
void printarray(vector<int>&comb)
{
for(int i=0;i<comb.size();i++)
{
cout<<comb[i];
}
cout<<endl;
}
void printallcomb(int n,vector<int>&comb)
{
if(n==0)
{
printarray(comb);
}
else
{
comb.push_back(0);
printallcomb(n-1,comb);
comb.pop_back();
... | 14.45 | 68 | 0.655709 | Faiquekhan15 |
7aba0fa8a5277cd4df4eb3bc1cef86897c0fce68 | 1,772 | cpp | C++ | Data_structures/STL/contest_scoreboard.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | 3 | 2017-08-12T06:09:39.000Z | 2018-09-16T02:31:27.000Z | Data_structures/STL/contest_scoreboard.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | null | null | null | Data_structures/STL/contest_scoreboard.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Data{
public:
int id;
int solved;
vector <int> penalty;
int final;
};
bool satvik(Data a, Data b){
if(a.solved > b.solved) return true;
else if(a.solved == b.solved) {
if(a.final < b.final) return true;
else if(a.final == b.final){
if(a.id < b.id) retur... | 22.43038 | 89 | 0.530474 | satvik007 |
7aba225364d6d3e40f27ea20d81556166219085c | 175 | cpp | C++ | test/system/test_socket.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | test/system/test_socket.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | test/system/test_socket.cpp | joydit/solidframe | 0539b0a1e77663ac4c701a88f56723d3e3688e8c | [
"BSL-1.0"
] | null | null | null | #include <iostream>
#include "system/cassert.hpp"
using namespace std;
int test_socket(int argc, char **argv){
cout<<"test_socket"<<endl;
//cassert(false);
return -1;
}
| 14.583333 | 39 | 0.697143 | joydit |
7abe82b9fc562589c3b86efa5a3796a0161f960e | 5,253 | cpp | C++ | time.cpp | komasaru/sun_moon | d4dee17f1164188f5c7686c76a9119e7688be10a | [
"MIT"
] | null | null | null | time.cpp | komasaru/sun_moon | d4dee17f1164188f5c7686c76a9119e7688be10a | [
"MIT"
] | null | null | null | time.cpp | komasaru/sun_moon | d4dee17f1164188f5c7686c76a9119e7688be10a | [
"MIT"
] | null | null | null | #include "time.hpp"
namespace sun_moon {
// 定数
static constexpr unsigned int kJstOffset = 9; // JST - UTC (hours)
static constexpr unsigned int kSecHour = 3600; // Seconds in an hour
static constexpr double kTtTai = 32.184; // TT - TAI
/*
* @brief 変換: JST -> UTC
*
* @param[in] JST (tim... | 24.661972 | 73 | 0.503522 | komasaru |
7ac4815337ebec182ca2ce2601cb7a81b1c55015 | 237 | cpp | C++ | src/Resources/config/parameters.cpp | Inlife/video-cube | 1caefa2b2cda7c1386c3b75796086cb7201f5e8d | [
"MIT"
] | 2 | 2015-08-19T13:52:43.000Z | 2016-09-02T23:12:32.000Z | src/Resources/config/parameters.cpp | Inlife/video-cube | 1caefa2b2cda7c1386c3b75796086cb7201f5e8d | [
"MIT"
] | null | null | null | src/Resources/config/parameters.cpp | Inlife/video-cube | 1caefa2b2cda7c1386c3b75796086cb7201f5e8d | [
"MIT"
] | 1 | 2018-05-25T11:29:45.000Z | 2018-05-25T11:29:45.000Z | using namespace Cooper;
// Set params for DB connection
void loadParams() {
config["dbname"] = "videocube";
config["user"] = "postgres";
config["password"] = "1we2q3";
config["hostaddr"] = "93.73.16.132";
config["port"] = "5432";
} | 23.7 | 37 | 0.649789 | Inlife |
7ac53260bea8f6577ff7db4b87860ab863908f89 | 2,468 | hh | C++ | src/renderer/font.hh | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | 4 | 2015-10-01T20:10:20.000Z | 2021-08-28T23:43:33.000Z | src/renderer/font.hh | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | src/renderer/font.hh | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | /*
font.hh -- Copyright (c) 2013 Noel Cower. All rights reserved.
See COPYING under the project root for the source code license. If this file
is not present, refer to <https://raw.github.com/nilium/snow/master/COPYING>.
*/
#ifndef __SNOW__FONT_HH__
#define __SNOW__FONT_HH__
#include "../config.hh"
#include <sno... | 25.443299 | 79 | 0.632091 | nilium |
7ac8db1e5813c6423380dee90d1d7c413f43b623 | 6,348 | cpp | C++ | COptionTree/OptionTreeSpinnerEdit.cpp | vanch3d/DEMIST | f49e3409cf5eca8df6b03f1a1bbc0f9f4ca44521 | [
"MIT"
] | null | null | null | COptionTree/OptionTreeSpinnerEdit.cpp | vanch3d/DEMIST | f49e3409cf5eca8df6b03f1a1bbc0f9f4ca44521 | [
"MIT"
] | null | null | null | COptionTree/OptionTreeSpinnerEdit.cpp | vanch3d/DEMIST | f49e3409cf5eca8df6b03f1a1bbc0f9f4ca44521 | [
"MIT"
] | 1 | 2021-01-11T09:52:21.000Z | 2021-01-11T09:52:21.000Z | // COptionTree
//
// License
// -------
// This code is provided "as is" with no expressed or implied warranty.
//
// Feel free to modify and/or distribute this file, but
// do not remove the headers in place.
//
// You may use this code in a commercial product with or without acknowledgement.
// However you may not s... | 21.445946 | 113 | 0.68242 | vanch3d |
7acbd663ebd1f6ccce57fe76f1fa91ff3720c6ba | 2,157 | hpp | C++ | Library/include/mavlink/v2.0/matrixpilot/mavlink_msg_flexifunction_buffer_function_ack.hpp | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 10 | 2021-03-15T03:58:06.000Z | 2021-12-30T15:33:38.000Z | Library/include/mavlink/v2.0/matrixpilot/mavlink_msg_flexifunction_buffer_function_ack.hpp | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 1 | 2021-07-08T10:26:06.000Z | 2021-07-08T10:31:11.000Z | Library/include/mavlink/v2.0/matrixpilot/mavlink_msg_flexifunction_buffer_function_ack.hpp | Dieptranivsr/Ros_Diep | d790e75e6f5da916701b11a2fdf3e03b6a47086b | [
"MIT"
] | 4 | 2021-03-06T09:35:58.000Z | 2021-05-24T14:34:11.000Z | // MESSAGE FLEXIFUNCTION_BUFFER_FUNCTION_ACK support class
#pragma once
namespace mavlink {
namespace matrixpilot {
namespace msg {
/**
* @brief FLEXIFUNCTION_BUFFER_FUNCTION_ACK message
*
* Flexifunction type and parameters for component at function index from buffer
*/
struct FLEXIFUNCTION_BUFFER_FUNCTION_ACK ... | 29.547945 | 80 | 0.583681 | Dieptranivsr |
7ad0650ce9faae7ce4f48fc8b84e5ff1b65a7a80 | 445 | cpp | C++ | LeetCode/Solutions/LC0503.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | LeetCode/Solutions/LC0503.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | LeetCode/Solutions/LC0503.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | /*
Problem Statement: https://leetcode.com/problems/next-greater-element-ii/
*/
class Solution {
public:
vector<int> nextGreaterElements(vector<int>& nums) {
int n = nums.size();
stack<int> st;
vector<int> larger(n, -1);
// monotonic stack
for (int i = 0; i < 2 * n; i++) {
while (!st.empty() && nums[i %... | 19.347826 | 73 | 0.570787 | Mohammed-Shoaib |
7ad3497aa709ce5262daa48f6c5146f75093bbc8 | 4,785 | cpp | C++ | src/plugins/matrixops/matrixops.cpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | src/plugins/matrixops/matrixops.cpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | src/plugins/matrixops/matrixops.cpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2018 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/config.hpp>
#include <phylanx/plugins/matrixops/matrixops.hpp>
#include <phylanx/plugins/plugin_factory.h... | 48.826531 | 80 | 0.814002 | diehlpk |
7ad3ab27ec0c88791b4e0c1266de67031cef8275 | 4,651 | hpp | C++ | ux/uxsocket.hpp | bachue/AUPv2 | 97ea014fc6619f6355174bbd1ee68a9a1ae19a0d | [
"Unlicense"
] | null | null | null | ux/uxsocket.hpp | bachue/AUPv2 | 97ea014fc6619f6355174bbd1ee68a9a1ae19a0d | [
"Unlicense"
] | null | null | null | ux/uxsocket.hpp | bachue/AUPv2 | 97ea014fc6619f6355174bbd1ee68a9a1ae19a0d | [
"Unlicense"
] | null | null | null | /*
Copyright 2003 by Marc J. Rochkind. All rights reserved.
May be copied only for purposes and under conditions described
on the Web page www.basepath.com/aup/copyright.htm.
The Example Files are provided "as is," without any warranty;
without even the implied warranty of merchantability or fitness
for a partic... | 27.52071 | 102 | 0.71361 | bachue |
7ad81a440c2097e32d4f628938d66eda083dd01f | 344 | cpp | C++ | ycitoj/week2_div2/b.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | 3 | 2022-03-30T14:14:57.000Z | 2022-03-31T04:30:32.000Z | ycitoj/week2_div2/b.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | null | null | null | ycitoj/week2_div2/b.cpp | Zilanlann/cp-code | 0500acbf6fb05a66f7bdbdf0e0a8bd6170126a4a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
int main() {
int n;
std::cin >> n;
std::vector<int> ve(n);
for (auto& v : ve) std::cin >> v;
int l = 0, r = n - 1;
while (l < n || r >= 0) {
if (l < n) std::cout << ve[l] << " ";
if (r >= 0) std::cout << ve[r] << " ";
l += 2, r -= 2;... | 19.111111 | 46 | 0.389535 | Zilanlann |
7ad8a8f579af0ef3bc7dc55195c4605ad161d4aa | 2,232 | cpp | C++ | third_party/WebKit/Source/core/editing/SelectionTemplateTest.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/editing/SelectionTemplateTest.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/editing/SelectionTemplateTest.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/editing/SelectionTemplate.h"
#include "core/editing/EditingTestBase.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
... | 32.347826 | 73 | 0.757616 | metux |
7adedafade2a2f8465e127b09567f2f437531595 | 2,483 | cpp | C++ | rendu/src/Declaration.cpp | H4112/GrammairesLangages | 437a1b692217d85c7146404b0bdb7b8d292de6bd | [
"Apache-2.0"
] | null | null | null | rendu/src/Declaration.cpp | H4112/GrammairesLangages | 437a1b692217d85c7146404b0bdb7b8d292de6bd | [
"Apache-2.0"
] | null | null | null | rendu/src/Declaration.cpp | H4112/GrammairesLangages | 437a1b692217d85c7146404b0bdb7b8d292de6bd | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
Declaration - Déclaration d'une variable/constante
-------------------
début : 8 mars 2016 11:21:34
copyright : (C) 2016 par H4112
**********************... | 28.54023 | 83 | 0.373339 | H4112 |
7aeb01173893e2ac0f5ce37f208eab88c3a73b81 | 6,223 | cpp | C++ | module-cellular/at/src/ATFactory.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-cellular/at/src/ATFactory.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-cellular/at/src/ATFactory.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "ATFactory.hpp"
#include "cmd/CSCA.hpp"
namespace at
{
using namespace std::chrono_literals;
std::initializer_list<std::pair<const AT, const Cmd>> initializer = {
... | 45.757353 | 81 | 0.526274 | bitigchi |
7aefcef675d734cdc99c8b7fe4152baee547564e | 7,706 | cpp | C++ | ropgenerator/cpp-core/Semantic.cpp | avltree9798/ropgenerator | c63c81f03e8653dc3911e21300c00003a4224f6a | [
"MIT"
] | 1 | 2021-01-07T13:16:19.000Z | 2021-01-07T13:16:19.000Z | ropgenerator/cpp-core/Semantic.cpp | avltree9798/ropgenerator | c63c81f03e8653dc3911e21300c00003a4224f6a | [
"MIT"
] | null | null | null | ropgenerator/cpp-core/Semantic.cpp | avltree9798/ropgenerator | c63c81f03e8653dc3911e21300c00003a4224f6a | [
"MIT"
] | null | null | null | #include "Semantic.hpp"
#include "Architecture.hpp"
// SPair
SPair::SPair(ExprObjectPtr e, CondObjectPtr c): _expr(e), _cond(c){};
ExprObjectPtr SPair::expr(){return _expr;}
CondObjectPtr SPair::cond(){return _cond;}
ExprPtr SPair::expr_ptr(){return _expr->expr_ptr();}
CondPtr SPair::cond_ptr(){return _cond->cond_ptr(... | 33.215517 | 83 | 0.482481 | avltree9798 |
7aefe6cf4324a86095607d412beed8d388d0e394 | 2,741 | cc | C++ | test/cow/surface-source/surface_source_test.cc | halleyzhao/alios-mm | bef2a6de0c207a5ae9bf4f63de2e562df864aa3e | [
"Apache-2.0"
] | null | null | null | test/cow/surface-source/surface_source_test.cc | halleyzhao/alios-mm | bef2a6de0c207a5ae9bf4f63de2e562df864aa3e | [
"Apache-2.0"
] | null | null | null | test/cow/surface-source/surface_source_test.cc | halleyzhao/alios-mm | bef2a6de0c207a5ae9bf4f63de2e562df864aa3e | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2017 Alibaba Group Holding Limited. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... | 30.120879 | 90 | 0.686611 | halleyzhao |
7af09930b35507e1cb1ce6f34ba63ea96ed0a2bd | 441 | cpp | C++ | examples/catch2/main.cpp | jhasse/CPM.cmake | aad0397bebbadf2f0fc78d50007a22ad6fa70bcf | [
"MIT"
] | 587 | 2021-02-09T05:23:14.000Z | 2022-03-30T11:50:03.000Z | examples/catch2/main.cpp | jhasse/CPM.cmake | aad0397bebbadf2f0fc78d50007a22ad6fa70bcf | [
"MIT"
] | 96 | 2021-02-13T23:07:15.000Z | 2022-03-03T11:50:35.000Z | examples/catch2/main.cpp | jhasse/CPM.cmake | aad0397bebbadf2f0fc78d50007a22ad6fa70bcf | [
"MIT"
] | 55 | 2021-02-12T13:38:38.000Z | 2022-03-26T13:14:28.000Z | #define CATCH_CONFIG_MAIN
#include <fibonacci.h>
#include <catch2/catch.hpp>
TEST_CASE("fibonacci") {
REQUIRE(fibonacci(0) == 0);
REQUIRE(fibonacci(1) == 1);
REQUIRE(fibonacci(2) == 1);
REQUIRE(fibonacci(3) == 2);
REQUIRE(fibonacci(4) == 3);
REQUIRE(fibonacci(5) == 5);
REQUIRE(fibonacci(13) == 233);
}
... | 20.045455 | 46 | 0.630385 | jhasse |
7af39d6a6e3b660e00e08e3c35746696e18254fa | 1,629 | cpp | C++ | HideousGameEngine/utests/Utils/GLKMath_AdditionsTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-09-13T18:18:07.000Z | 2019-09-13T18:18:07.000Z | HideousGameEngine/utests/Utils/GLKMath_AdditionsTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | null | null | null | HideousGameEngine/utests/Utils/GLKMath_AdditionsTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-11-21T06:32:56.000Z | 2019-11-21T06:32:56.000Z | //
// GLKMath_Additions.cpp
// HideousGameEngine
//
// Created by Sid on 08/06/13.
// Copyright (c) 2013 whackylabs. All rights reserved.
//
#include <he/Utils/GLKMath_Additions.h>
#include <gtest.h>
TEST(GLKVector2, Equality){
GLKVector2 a = GLKVector2Make(0.5f, 0.5f);
GLKVector2 b = GLKVector2Make(0.5f, 0.5f... | 26.704918 | 95 | 0.715163 | chunkyguy |
7af846e5151c1be9581a1a185dc60f31978478fd | 2,094 | hpp | C++ | include/mathtoolbox/som.hpp | yuki-koyama/mathtoolbox | eb7449c3c489f465849a74405e72aff016a296f7 | [
"MIT"
] | 195 | 2018-04-28T16:12:06.000Z | 2022-03-30T03:52:56.000Z | include/mathtoolbox/som.hpp | amazing89/mathtoolbox | 8904bb06ced2ac501594f9574ef1ba3454b8e38e | [
"MIT"
] | 52 | 2018-04-15T01:24:52.000Z | 2022-01-02T09:14:23.000Z | include/mathtoolbox/som.hpp | amazing89/mathtoolbox | 8904bb06ced2ac501594f9574ef1ba3454b8e38e | [
"MIT"
] | 21 | 2018-06-05T04:11:22.000Z | 2022-03-17T13:28:12.000Z | #ifndef MATHTOOLBOX_SOM_HPP
#define MATHTOOLBOX_SOM_HPP
#include <Eigen/Core>
#include <memory>
namespace mathtoolbox
{
class DataNormalizer;
class Som
{
public:
/// \param data An n-by-m matrix representing m data points lying in an n-dimensional space.
///
/// \param latent_... | 30.347826 | 108 | 0.607927 | yuki-koyama |
7afa88bc487a030c3f58270a5bb0b8f13c7703c1 | 779 | hpp | C++ | include/SFPlot/CartesianData.hpp | MoriokaReimen/SFPlot | 64b50500076a683026e4e439a9315f3725f1236f | [
"MIT"
] | 3 | 2021-01-25T14:30:36.000Z | 2021-03-10T17:12:41.000Z | include/SFPlot/CartesianData.hpp | MoriokaReimen/SFPlot | 64b50500076a683026e4e439a9315f3725f1236f | [
"MIT"
] | 1 | 2021-06-11T10:35:07.000Z | 2021-06-11T10:35:07.000Z | include/SFPlot/CartesianData.hpp | MoriokaReimen/SFPlot | 64b50500076a683026e4e439a9315f3725f1236f | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <utility>
#include <SFML/Graphics.hpp>
namespace sf
{
/**
* @relates CartesianChart
* data class which holds data member of cartesian chart plot.
*
*/
struct CartesianData {
/**
* @relates CartesianData
* specifier switches plotting method of data
*/
en... | 24.34375 | 70 | 0.599487 | MoriokaReimen |
7afd08ef5616ddc983dffeba64830f44449b9cbe | 1,030 | hpp | C++ | src/version.hpp | pangenome/smoothxg | 0f383e5033c6af18d95f5d8dca0a6e17e5dbf524 | [
"MIT"
] | 18 | 2020-10-02T18:39:03.000Z | 2022-01-27T11:18:29.000Z | src/version.hpp | pangenome/smoothxg | 0f383e5033c6af18d95f5d8dca0a6e17e5dbf524 | [
"MIT"
] | 50 | 2020-09-30T17:52:18.000Z | 2022-03-17T10:14:21.000Z | src/version.hpp | ekg/smoothxg | 20fee54d5279dd8bb435fb95b93b386cc5eec997 | [
"MIT"
] | 2 | 2020-08-28T13:08:09.000Z | 2020-09-23T20:15:17.000Z | // version.hpp: Version reflection information for smoothxg builds.
// modified from https://github.com/vgteam/vg/blob/master/src/version.hpp
#include <string>
#include <unordered_map>
namespace smoothxg {
using namespace std;
/// Class for holding smoothxg version.
class Version {
public:
/// The Git versio... | 25.75 | 102 | 0.727184 | pangenome |
bb005b41189f732a97e04e3bba59b627948b006f | 8,103 | cc | C++ | impl-endpoints/boringssl/runner-src/transport_common.cc | mingtaoy/tls-interop-runner | 1d99bab0dabab21e27dd706b9e86448e4867b531 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2020-12-12T00:05:52.000Z | 2021-05-12T06:59:36.000Z | impl-endpoints/boringssl/runner-src/transport_common.cc | mingtaoy/tls-interop-runner | 1d99bab0dabab21e27dd706b9e86448e4867b531 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 35 | 2020-12-11T18:30:41.000Z | 2022-01-20T21:58:00.000Z | impl-endpoints/boringssl/runner-src/transport_common.cc | mingtaoy/tls-interop-runner | 1d99bab0dabab21e27dd706b9e86448e4867b531 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2020-12-12T00:05:58.000Z | 2021-12-02T21:47:07.000Z | // SPDX-FileCopyrightText: 2014 Google Inc.
// SPDX-License-Identifier: ISC
#include <openssl/base.h>
#include <string>
#include <vector>
#include <errno.h>
#include <limits.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <netd... | 29.790441 | 80 | 0.655066 | mingtaoy |
bb0151f5d0be04570308242c3e31d4e57f7f3d44 | 6,864 | cpp | C++ | Moco/Executable/opensim-moco.cpp | zhengsizehrb/opensim-moco | 9844abc640a34d818a4bb21ef4fea3c3cb0f34ed | [
"Apache-2.0"
] | 41 | 2019-11-13T10:29:20.000Z | 2022-03-10T17:42:30.000Z | Moco/Executable/opensim-moco.cpp | zhengsizehrb/opensim-moco | 9844abc640a34d818a4bb21ef4fea3c3cb0f34ed | [
"Apache-2.0"
] | 165 | 2019-11-13T00:55:57.000Z | 2022-03-04T19:02:26.000Z | Moco/Executable/opensim-moco.cpp | zhengsizehrb/opensim-moco | 9844abc640a34d818a4bb21ef4fea3c3cb0f34ed | [
"Apache-2.0"
] | 15 | 2020-01-24T23:57:57.000Z | 2021-12-10T21:59:46.000Z | /* -------------------------------------------------------------------------- *
* OpenSim Moco: opensim-moco.cpp *
* -------------------------------------------------------------------------- *
* Copyright (c) 2017-19 Stanford University and the Authors *
... | 37.102703 | 85 | 0.522436 | zhengsizehrb |
bb01eedfedaf302956552ab6d5207533c2c4ea93 | 9,359 | cpp | C++ | src/messages.cpp | wltr/maritime-sdr | 24f434d0fbdb89c627abcee2868c22f7aa78b48e | [
"MIT"
] | null | null | null | src/messages.cpp | wltr/maritime-sdr | 24f434d0fbdb89c627abcee2868c22f7aa78b48e | [
"MIT"
] | null | null | null | src/messages.cpp | wltr/maritime-sdr | 24f434d0fbdb89c627abcee2868c22f7aa78b48e | [
"MIT"
] | null | null | null | #include "messages.h"
#include <stdexcept>
#include <iostream>
uint32_t Messages::integer(const std::vector<bool>& bits, size_t begin, size_t length)
{
if (bits.size() < (begin + length)) {
throw std::runtime_error("Not enough data to extract integer");
}
if (length > 32) {
throw std::runtime_error("Can... | 27.937313 | 114 | 0.593546 | wltr |
bb0763d3768aa1125acca645e4769cff1f3ef28b | 1,356 | hpp | C++ | tools/train/source/transform/OpGrad.hpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | 1 | 2019-08-09T03:16:49.000Z | 2019-08-09T03:16:49.000Z | tools/train/source/transform/OpGrad.hpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | null | null | null | tools/train/source/transform/OpGrad.hpp | xindongzhang/MNN | f4740c78dc8fc67ee4596552d2257f12c48af067 | [
"Apache-2.0"
] | 1 | 2021-08-23T03:40:09.000Z | 2021-08-23T03:40:09.000Z | //
// OpGrad.hpp
// MNN
//
// Created by MNN on 2019/05/05.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef OpGrad_hpp
#define OpGrad_hpp
#include <map>
#include <vector>
#include "OpConverter.hpp"
#include "Tensor.hpp"
class MNN_PUBLIC OpGrad {
public:
enum Type { LINEAR, SEMI_LINEAR, NO_LINEAR... | 27.673469 | 116 | 0.571534 | xindongzhang |
bb076e91aa466d83ddc027c9e5ab24ccf6e8c803 | 344 | cpp | C++ | test/functional/args.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | test/functional/args.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | test/functional/args.cpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #include <test/test.hpp>
#include <falcon/functional/args.hpp>
#include "args.hpp"
void args_test()
{
const int i0 = 1;
const int i1 = 2;
const int i2 = 3;
CHECK((falcon::args<2, 0>()(i0, i1, i2) == std::make_tuple(i2, i0)));
CHECK((falcon::args<-1, -2>()(i0, i1, i2) == std::make_tuple(i2, i1)));
}
FALCON_... | 21.5 | 73 | 0.627907 | jonathanpoelen |
bb080c3e60d82a7f58c294dfe78bea2975e1461d | 28,380 | hpp | C++ | src/backend/KLT/include/KLT/Core/kernel.hpp | JamesLinus/rose | b3bfc1fdfb91f3f19c2791858b9f8c98aaf7a73e | [
"BSD-3-Clause"
] | 1 | 2019-04-22T09:09:05.000Z | 2019-04-22T09:09:05.000Z | src/backend/KLT/include/KLT/Core/kernel.hpp | JamesLinus/rose | b3bfc1fdfb91f3f19c2791858b9f8c98aaf7a73e | [
"BSD-3-Clause"
] | null | null | null | src/backend/KLT/include/KLT/Core/kernel.hpp | JamesLinus/rose | b3bfc1fdfb91f3f19c2791858b9f8c98aaf7a73e | [
"BSD-3-Clause"
] | null | null | null |
#ifndef __KLT_KERNEL_HPP__
#define __KLT_KERNEL_HPP__
#include "KLT/Core/loop-trees.hpp"
#include "KLT/Core/loop-tiler.hpp"
#include "KLT/Core/data.hpp"
#include "MFB/utils.hpp"
#include <vector>
#include <list>
#include <set>
class SgVariableSymbol;
namespace KLT {
/*!
* \addtogroup grp_klt_kernel
* @{
*/
te... | 43.06525 | 185 | 0.708527 | JamesLinus |
bb0995d3fd8db1228c39e463dd656a35adcdd120 | 6,172 | cpp | C++ | C++/utils.cpp | eechava6/NumericalAnalysisMethods | 3eeb06bdb20d97f13a09fd0ed71bce045173ffef | [
"MIT"
] | null | null | null | C++/utils.cpp | eechava6/NumericalAnalysisMethods | 3eeb06bdb20d97f13a09fd0ed71bce045173ffef | [
"MIT"
] | null | null | null | C++/utils.cpp | eechava6/NumericalAnalysisMethods | 3eeb06bdb20d97f13a09fd0ed71bce045173ffef | [
"MIT"
] | null | null | null | #include "utils.h"
vector<double> split(string &s, char delim) {
vector<double> result;
stringstream ss (s);
string item;
while (getline (ss, item, delim)) {
result.push_back(stod(item));
}
return result;
}
vector<vector<double>> parseMatrix(string filename) {
ifstream file(filename)... | 31.171717 | 103 | 0.55687 | eechava6 |
bb0b4994c0b46835f29d28be6d4e15dfc5501b8e | 8,071 | cpp | C++ | example/image/blitter/blitter.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 3 | 2021-02-27T10:29:37.000Z | 2022-02-16T16:31:26.000Z | example/image/blitter/blitter.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | null | null | null | example/image/blitter/blitter.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 5 | 2021-03-22T11:06:00.000Z | 2022-02-22T02:53:19.000Z | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2021 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <mango/core/core.hpp>
#include <mango/image/image.hpp>
using namespace mango;
using namespace mango::image;
struct Test
{
Format dest;
Format source;
const char* note;
};
... | 40.154229 | 132 | 0.548259 | ufoym |
bb0f150b890d7267e29e5a7d81e0396873740b41 | 2,479 | cpp | C++ | opencl/test/unit_test/xe_hpg_core/test_local_work_size_xe_hpg_core.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/xe_hpg_core/test_local_work_size_xe_hpg_core.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/xe_hpg_core/test_local_work_size_xe_hpg_core.cpp | againull/compute-runtime | 3ef1ab88a4d9fad5c72e343f349365817c54da17 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_helper.h"
#include "shared/source/os_interface/hw_info_config.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include "shared/test/common/test_macros/test.h"
#include "opencl... | 38.734375 | 145 | 0.745865 | againull |
bb137ac105751f987cd3f0565b71a68720ea972d | 1,632 | hpp | C++ | src/cusp_compiler_fence.hpp | nikitavlaev/SpBench | 8e9d22d250c7d13e61c183ee289d57563c3a462c | [
"MIT"
] | null | null | null | src/cusp_compiler_fence.hpp | nikitavlaev/SpBench | 8e9d22d250c7d13e61c183ee289d57563c3a462c | [
"MIT"
] | null | null | null | src/cusp_compiler_fence.hpp | nikitavlaev/SpBench | 8e9d22d250c7d13e61c183ee289d57563c3a462c | [
"MIT"
] | 2 | 2021-04-01T17:06:03.000Z | 2021-04-14T10:29:46.000Z | /*
* Copyright 2008-2012 NVIDIA 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 29.142857 | 141 | 0.765319 | nikitavlaev |
bb178711f74003cc544f82e91fefc787d5037f28 | 1,895 | cpp | C++ | venv/boost_1_73_0/libs/core/test/lightweight_test_bool.cpp | uosorio/heroku_face | 7d6465e71dba17a15d8edaef520adb2fcd09d91e | [
"Apache-2.0"
] | 106 | 2015-08-07T04:23:50.000Z | 2020-12-27T18:25:15.000Z | 3rdparty/boost_1_73_0/libs/core/test/lightweight_test_bool.cpp | qingkouwei/mediaones | cec475e1bfd5807b5351cc7e38d244ac5298ca16 | [
"MIT"
] | 130 | 2016-06-22T22:11:25.000Z | 2020-11-29T20:24:09.000Z | Libs/boost_1_76_0/libs/core/test/lightweight_test_bool.cpp | Antd23rus/S2DE | 47cc7151c2934cd8f0399a9856c1e54894571553 | [
"MIT"
] | 41 | 2015-07-08T19:18:35.000Z | 2021-01-14T16:39:56.000Z | // Copyright 2020 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/core/lightweight_test.hpp>
#include <vector>
int main()
{
BOOST_TEST( BOOST_TEST( true ) );
BOOST_TEST_NOT( BOOST_TEST( false ) );
BOOST_TEST( BOOST_TEST_NO... | 29.609375 | 115 | 0.618997 | uosorio |
bb19410f5cf40c9fa3fe15e135163e5a4fca5f77 | 9,502 | cpp | C++ | source/glraw/source/UniformParser.cpp | cginternals/glraw | 4c9930833e42404e74364b9b6eaf5afd98ac3096 | [
"MIT"
] | 48 | 2015-07-30T11:20:49.000Z | 2022-01-10T20:07:51.000Z | source/glraw/source/UniformParser.cpp | hpicgs/glraw | 4c9930833e42404e74364b9b6eaf5afd98ac3096 | [
"MIT"
] | 3 | 2015-08-08T08:51:36.000Z | 2017-01-17T17:26:54.000Z | source/glraw/source/UniformParser.cpp | cginternals/glraw | 4c9930833e42404e74364b9b6eaf5afd98ac3096 | [
"MIT"
] | 9 | 2015-07-06T15:51:22.000Z | 2019-04-24T06:23:12.000Z |
#include "UniformParser.h"
#include <QOpenGLShaderProgram>
#include <QOpenGLFunctions_3_2_Core>
namespace glraw
{
void UniformParser::setUniforms(
QOpenGLFunctions_3_2_Core & gl
, QOpenGLShaderProgram & program
, const QMap<QString, QString> & uniforms)
{
if (uniforms.isEmpty())
return;
if... | 27.865103 | 98 | 0.615028 | cginternals |
bb19b36844b59035064ee1117258b0f0b67d8f51 | 584 | cpp | C++ | tests/src/test_BgzipWriter.cpp | PacificBiosciences/pbbam | 5ab9230d36daf29be8a9d4d8c645307c2c193e32 | [
"BSD-3-Clause-Clear"
] | 21 | 2016-04-26T20:46:41.000Z | 2022-03-01T01:55:55.000Z | tests/src/test_BgzipWriter.cpp | PacificBiosciences/pbbam | 5ab9230d36daf29be8a9d4d8c645307c2c193e32 | [
"BSD-3-Clause-Clear"
] | 25 | 2015-09-03T22:18:01.000Z | 2019-08-27T14:47:39.000Z | tests/src/test_BgzipWriter.cpp | PacificBiosciences/pbbam | 5ab9230d36daf29be8a9d4d8c645307c2c193e32 | [
"BSD-3-Clause-Clear"
] | 20 | 2015-11-24T15:54:26.000Z | 2022-03-14T03:49:18.000Z | #include <pbbam/BgzipWriter.h>
#include <string>
#include <gtest/gtest.h>
#include <pbbam/FormatUtils.h>
#include "PbbamTestData.h"
using namespace PacBio;
using namespace PacBio::BAM;
TEST(BAM_BgzipWriter, writes_bgzf_format_to_file)
{
const std::string fn{PbbamTestsConfig::GeneratedData_Dir + "/bgzf_writer_... | 21.62963 | 86 | 0.700342 | PacificBiosciences |
bb1b45f4c16786ec29a40f2e1cbfe0952e4ffbfc | 1,060 | cc | C++ | src/boson/test/shared_buffer.cc | duckie/boson | f3eb787f385c86b7735fcd7bc0ac0dc6a8fb7b1a | [
"MIT"
] | 174 | 2016-10-10T12:47:01.000Z | 2022-03-09T16:06:59.000Z | src/boson/test/shared_buffer.cc | duckie/boson | f3eb787f385c86b7735fcd7bc0ac0dc6a8fb7b1a | [
"MIT"
] | 5 | 2017-02-01T21:30:14.000Z | 2018-09-09T10:02:00.000Z | src/boson/test/shared_buffer.cc | duckie/boson | f3eb787f385c86b7735fcd7bc0ac0dc6a8fb7b1a | [
"MIT"
] | 13 | 2016-10-10T12:19:14.000Z | 2021-12-04T08:23:26.000Z | #include "catch.hpp"
#include "boson/boson.h"
#include <unistd.h>
#include "boson/logger.h"
#include "boson/shared_buffer.h"
#include <iostream>
using namespace boson;
/**
* This tests abuses of its knowledge of the framework
* to check that the buffer is effectively shared.
*
* The fact that data is shared betwe... | 25.853659 | 63 | 0.589623 | duckie |
bb238f2cd71005eaac6caddd4f74f41e21f8b8e6 | 4,556 | cpp | C++ | src/prefix_weight.cpp | keenbo/wwsearch | 5c5f5c5deac1820c6bc6ef96e8163c583cf57641 | [
"CC-BY-3.0"
] | 465 | 2019-11-18T07:00:58.000Z | 2022-03-30T07:13:36.000Z | src/prefix_weight.cpp | Jie-Yuan/wwsearch | 5c5f5c5deac1820c6bc6ef96e8163c583cf57641 | [
"CC-BY-3.0"
] | 7 | 2019-11-20T03:53:00.000Z | 2021-01-01T02:35:46.000Z | src/prefix_weight.cpp | Jie-Yuan/wwsearch | 5c5f5c5deac1820c6bc6ef96e8163c583cf57641 | [
"CC-BY-3.0"
] | 77 | 2019-11-18T07:05:52.000Z | 2022-02-11T08:01:24.000Z | /*
* Tencent is pleased to support the open source community by making wwsearch
* available.
*
* Copyright (C) 2018-present Tencent. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of... | 35.874016 | 80 | 0.6464 | keenbo |
bb2501ca5d5830dde00ac26ed5f0688544f056a9 | 1,858 | cc | C++ | src/commonTools.cc | MaximilienNaveau/EnergyComputation | f9fdefcff197f7527a7c686f990ff496562ebc5e | [
"BSD-3-Clause"
] | null | null | null | src/commonTools.cc | MaximilienNaveau/EnergyComputation | f9fdefcff197f7527a7c686f990ff496562ebc5e | [
"BSD-3-Clause"
] | null | null | null | src/commonTools.cc | MaximilienNaveau/EnergyComputation | f9fdefcff197f7527a7c686f990ff496562ebc5e | [
"BSD-3-Clause"
] | null | null | null | #include "commonTools.hh"
using namespace std ;
namespace fs = boost::filesystem;
// Return RC low-pass filter output samples, given input samples,
// time interval dt, and time constant RC
int lowpass( double x, double & y, double i, double a)
{
static double y_1 = 0.0 ;
if (i==0)
{
y = x ;
... | 22.119048 | 114 | 0.50592 | MaximilienNaveau |
bb25d550909e90a6daeb0462909734bff64f9492 | 3,319 | cpp | C++ | 20-iterators/readerEx.20.06/plot.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 81 | 2018-11-15T21:23:19.000Z | 2022-03-06T09:46:36.000Z | 20-iterators/readerEx.20.06/plot.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | null | null | null | 20-iterators/readerEx.20.06/plot.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 41 | 2018-11-15T21:23:24.000Z | 2022-02-24T03:02:26.000Z | //
// plot.cpp
//
// --------------------------------------------------------------------------
// Attribution: "Programming Abstractions in C++" by Eric Roberts
// Chapter 20, Exercise 06
// Stanford University, Autumn Quarter 2012
// http://web.stanford.edu/class/archive/cs/cs106b/cs106b.1136/materials/CS106BX-Reader... | 31.018692 | 91 | 0.564628 | heavy3 |
bb25e0091145bd4cd265569e004fdcb6c0699333 | 4,564 | hpp | C++ | src/session.hpp | olekolek1000/multipixel | 74760f92c6d9cf2be5f05cebc5b10780136f2662 | [
"BSD-3-Clause"
] | 4 | 2022-02-07T09:57:58.000Z | 2022-02-27T23:03:07.000Z | src/session.hpp | olekolek1000/multipixel | 74760f92c6d9cf2be5f05cebc5b10780136f2662 | [
"BSD-3-Clause"
] | null | null | null | src/session.hpp | olekolek1000/multipixel | 74760f92c6d9cf2be5f05cebc5b10780136f2662 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "command.hpp"
#include "src/waiter.hpp"
#include "util/event_queue.hpp"
#include "util/mutex.hpp"
#include "util/optional.hpp"
#include "util/smartptr.hpp"
#include "util/timestep.hpp"
#include "util/types.hpp"
#include "ws_server.hpp"
#include <atomic>
#include <memory>
#include <mutex>
#include... | 23.895288 | 66 | 0.740578 | olekolek1000 |
bb28724008a65fcf4694e65e1b3b8d324ca9c76a | 11,466 | cc | C++ | src/structure.cc | DouglasRMiles/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | 5 | 2019-11-20T02:05:31.000Z | 2022-01-06T18:59:16.000Z | src/structure.cc | logicmoo/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | null | null | null | src/structure.cc | logicmoo/QuProlog | 798d86f87fb4372b8918ef582ef2f0fc0181af2d | [
"Apache-2.0"
] | 2 | 2022-01-08T13:52:24.000Z | 2022-03-07T17:41:37.000Z | // structrure.cc - Contains functions which retrieve information from and
// build up structures.
//
// ##Copyright##
//
// Copyright 2000-2016 Peter Robinson (pjr@itee.uq.edu.au)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance wi... | 23.163636 | 83 | 0.597855 | DouglasRMiles |
bb28a7372d1be4a8dfc4cc9bd378d531af3a745d | 6,614 | cpp | C++ | src/postgres/backend/executor/nodeForeignscan.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 6 | 2017-04-28T00:38:52.000Z | 2018-11-06T07:06:49.000Z | src/postgres/backend/executor/nodeForeignscan.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 57 | 2016-03-19T22:27:55.000Z | 2017-07-08T00:41:51.000Z | src/postgres/backend/executor/nodeForeignscan.cpp | eric-haibin-lin/pelotondb | 904d6bbd041a0498ee0e034d4f9f9f27086c3cab | [
"Apache-2.0"
] | 14 | 2017-01-12T11:09:09.000Z | 2019-04-19T09:58:20.000Z | /*-------------------------------------------------------------------------
*
* nodeForeignscan.c
* Routines to support scans of foreign tables
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION... | 27.789916 | 77 | 0.641669 | jessesleeping |
bb29c8bdf374aa90b1e53803ac9ee5d21b500c75 | 1,270 | hpp | C++ | code/source/util/mem_pool_chunk.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/util/mem_pool_chunk.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/util/mem_pool_chunk.hpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #ifndef CLOVER_UTIL_MEM_POOL_CHUNK_HPP
#define CLOVER_UTIL_MEM_POOL_CHUNK_HPP
#include "build.hpp"
#include "util/dyn_bitarray.hpp"
#include "util/dyn_array.hpp"
#include "util/mem_pool.hpp"
namespace clover {
namespace util {
/// Memory pool for equally sized chunks
class ENGINE_API ChunkMemPool : public MemPool {
... | 25.918367 | 70 | 0.770866 | crafn |
bb2c1d80eb6387992acf69cfd7a75cde7c8294fc | 1,927 | cxx | C++ | src/gem/TrgConfiguration.cxx | fermi-lat/configData | 3b824540d8173a24be12316a3821304e4ea20a1f | [
"BSD-3-Clause"
] | null | null | null | src/gem/TrgConfiguration.cxx | fermi-lat/configData | 3b824540d8173a24be12316a3821304e4ea20a1f | [
"BSD-3-Clause"
] | null | null | null | src/gem/TrgConfiguration.cxx | fermi-lat/configData | 3b824540d8173a24be12316a3821304e4ea20a1f | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------
// File and Version Information:
// $Id: TrgConfiguration.cxx,v 1.2 2007/03/21 00:26:40 echarles Exp $
//
// Description:
// A GEM configuration register class
//
// Environment:
// Software developed for GLAST.
//
// Author L... | 31.080645 | 84 | 0.658018 | fermi-lat |
bb2cb095e6a3b2170c6f279b7a385772210ddebd | 559 | hpp | C++ | graphics/RawMesh.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | graphics/RawMesh.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | graphics/RawMesh.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #ifndef ___INANITY_GRAPHICS_RAW_MESH_HPP___
#define ___INANITY_GRAPHICS_RAW_MESH_HPP___
#include "graphics.hpp"
BEGIN_INANITY
class File;
END_INANITY
BEGIN_INANITY_GRAPHICS
class VertexLayout;
class RawMesh : public Object
{
private:
ptr<File> vertices;
ptr<VertexLayout> vertexLayout;
ptr<File> indices;
publ... | 15.971429 | 80 | 0.78712 | quyse |
bb2f01cd1f62777092ddde0453f883341dc74720 | 251 | hpp | C++ | srcs/constants.hpp | armandmgt/cpp_plazza | 1ebec0e0eb5c653b2478ee494a7023fcd874cb90 | [
"MIT"
] | 1 | 2019-08-27T10:15:40.000Z | 2019-08-27T10:15:40.000Z | srcs/constants.hpp | armandmgt/cpp_plazza | 1ebec0e0eb5c653b2478ee494a7023fcd874cb90 | [
"MIT"
] | null | null | null | srcs/constants.hpp | armandmgt/cpp_plazza | 1ebec0e0eb5c653b2478ee494a7023fcd874cb90 | [
"MIT"
] | 1 | 2020-02-08T18:56:40.000Z | 2020-02-08T18:56:40.000Z | /*
** EPITECH PROJECT, 2017
** Project
** File description:
** Created by armandmgt, constants
*/
#pragma once
#ifdef SUCCESS
#undef SUCCESS
#endif
#ifdef FAILURE
#undef FAILURE
#endif
static int const SUCCESS = 0;
static int const FAILURE = 84;
| 13.210526 | 34 | 0.717131 | armandmgt |
bb311eafc9bc0a6fc58bbee8a13861d9d0158658 | 12,461 | cpp | C++ | plugins/dataflow_analysis/src/utils/utils_xilinx_unisim.cpp | e7p/hal | 2a88a8abefe5e2f79a74ec646e5fb3d8e6eb7cc8 | [
"MIT"
] | null | null | null | plugins/dataflow_analysis/src/utils/utils_xilinx_unisim.cpp | e7p/hal | 2a88a8abefe5e2f79a74ec646e5fb3d8e6eb7cc8 | [
"MIT"
] | null | null | null | plugins/dataflow_analysis/src/utils/utils_xilinx_unisim.cpp | e7p/hal | 2a88a8abefe5e2f79a74ec646e5fb3d8e6eb7cc8 | [
"MIT"
] | null | null | null | #include "dataflow_analysis/utils/utils_xilinx_unisim.h"
#include "hal_core/netlist/gate.h"
#include "hal_core/utilities/log.h"
#include <string>
#include <unordered_set>
namespace hal
{
namespace dataflow
{
namespace dataflow_utils
{
bool UtilsXilinxUnisim::is_sequential(Gate* sg... | 59.62201 | 192 | 0.425809 | e7p |
bb315fdb065da3856cc2cca11cfc271d0b6d6b78 | 935 | cpp | C++ | src/saiga/opengl/uniformBuffer.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/opengl/uniformBuffer.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/opengl/uniformBuffer.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2017 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "saiga/opengl/uniformBuffer.h"
namespace Saiga
{
UniformBuffer::UniformBuffer() : Buffer(GL_UNIFORM_BUFFER) {}
UniformBuffer::~UniformBuffer() {}
void UniformBuffer::init(std::shared_... | 19.893617 | 73 | 0.709091 | SimonMederer |
bb32f648b2a52fbbdda39fa1d6ced9fbfb1bc071 | 13,844 | cpp | C++ | RemCppCommon/ESP8266/SimpleWiFiScanner.cpp | nemo9955/RespirMesh | afef38c85e5686a565d1d6b577578e1fdc426cbc | [
"Apache-2.0"
] | null | null | null | RemCppCommon/ESP8266/SimpleWiFiScanner.cpp | nemo9955/RespirMesh | afef38c85e5686a565d1d6b577578e1fdc426cbc | [
"Apache-2.0"
] | null | null | null | RemCppCommon/ESP8266/SimpleWiFiScanner.cpp | nemo9955/RespirMesh | afef38c85e5686a565d1d6b577578e1fdc426cbc | [
"Apache-2.0"
] | null | null | null | #import "SimpleWiFiScanner.hpp"
#include <WiFiClient.h>
/*
client_state
enum WiFIClientState
{
unknown,
wifi_off,
none_available,
scanning,
filtering_aps,
selecting_ap,
connecting_ap,
getting_ip_ap,
full_available,
};
server_state
enum WiFIServerState
{
unknown,
wifi_off... | 29.900648 | 180 | 0.623664 | nemo9955 |