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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1342b54d0e743b458172397246e820c507a534a9 | 14,208 | hpp | C++ | src/libraries/fvOptions/fvOptions/fvOption.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/fvOptions/fvOptions/fvOption.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/fvOptions/fvOptions/fvOption.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of Caelus.
Caelus is free software: you can redistribute it and/or modify it
under... | 26.458101 | 80 | 0.472973 | MrAwesomeRocks |
13431a63a4004bbabf286b936771d2ea19b0e147 | 3,475 | cpp | C++ | niv/src/exchange/shared_memory.cpp | HBPVIS/nest-in-situ-vis | 289956a9a352dcf76f3fa8a8c694a1b044df1b41 | [
"Apache-2.0"
] | null | null | null | niv/src/exchange/shared_memory.cpp | HBPVIS/nest-in-situ-vis | 289956a9a352dcf76f3fa8a8c694a1b044df1b41 | [
"Apache-2.0"
] | null | null | null | niv/src/exchange/shared_memory.cpp | HBPVIS/nest-in-situ-vis | 289956a9a352dcf76f3fa8a8c694a1b044df1b41 | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------------------
// nest in situ vis
//
// Copyright (c) 2017-2018 RWTH Aachen University, Germany,
// Virtual Reality & Immersive Visualisation Group.
//------------------------------------------------------------------------------
// ... | 33.737864 | 80 | 0.69554 | HBPVIS |
134373ddd6377308c009d166499412c05d2ec103 | 5,632 | cc | C++ | shell/common/gin_converters/gfx_converter.cc | jdwalker/electron | 69be9fa798dbb8d49a6550cdb287be900db13ac1 | [
"MIT"
] | 16 | 2020-11-08T21:58:19.000Z | 2022-03-23T20:11:13.000Z | shell/common/gin_converters/gfx_converter.cc | jdwalker/electron | 69be9fa798dbb8d49a6550cdb287be900db13ac1 | [
"MIT"
] | 350 | 2020-09-02T21:26:05.000Z | 2022-03-31T20:18:55.000Z | shell/common/gin_converters/gfx_converter.cc | ColleenKeegan/electron | f3dc3997b10fd79439ad22ff5973b3d3541d8e9d | [
"MIT"
] | 5 | 2020-12-14T23:25:47.000Z | 2021-08-12T02:31:25.000Z | // Copyright (c) 2019 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/common/gin_converters/gfx_converter.h"
#include "shell/common/gin_helper/dictionary.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/gfx/... | 34.552147 | 79 | 0.604936 | jdwalker |
13472aaad9749a0f86cdc35b3343d8f7b37281fe | 570 | cpp | C++ | 2. Yellow/Week 5/01. Inheritance/main.cpp | AmaterasuOmikami/The-art-of-modern-Cpp-development | 4f0958197da92d216ee526384a6f7386a0fe62a0 | [
"MIT"
] | 1 | 2022-02-17T10:58:58.000Z | 2022-02-17T10:58:58.000Z | 2. Yellow/Week 5/01. Inheritance/main.cpp | AmaterasuOmikami/The-art-of-modern-Cpp-development | 4f0958197da92d216ee526384a6f7386a0fe62a0 | [
"MIT"
] | null | null | null | 2. Yellow/Week 5/01. Inheritance/main.cpp | AmaterasuOmikami/The-art-of-modern-Cpp-development | 4f0958197da92d216ee526384a6f7386a0fe62a0 | [
"MIT"
] | null | null | null | /*
* Определите до конца тела классов, соблюдая следующие требования:
* - Класс Dog должен являться наследником класса Animal.
* - Конструктор класса Dog должен принимать параметр типа string и
* инициализировать им поле Name в классе Animal.
*/
#include <iostream>
using namespace std;
class Animal {
public:
... | 20.357143 | 67 | 0.673684 | AmaterasuOmikami |
13487b34f87a8e2378695c946db6ebcecde63d41 | 3,466 | cpp | C++ | hi_sampler/sampler/MachFiveImporter.cpp | MIDIculous/HISE | cb4c567bacb02c6bf7ca46a78daa06d3ce0b2b78 | [
"Intel",
"MIT"
] | 1 | 2021-03-04T19:37:06.000Z | 2021-03-04T19:37:06.000Z | hi_sampler/sampler/MachFiveImporter.cpp | psobot/HISE | cb97378039bae22c8eade3d4b699931bfd65c7d1 | [
"Intel",
"MIT"
] | null | null | null | hi_sampler/sampler/MachFiveImporter.cpp | psobot/HISE | cb97378039bae22c8eade3d4b699931bfd65c7d1 | [
"Intel",
"MIT"
] | null | null | null | namespace hise { using namespace juce;
StringArray MachFiveImporter::getLayerNames(const File &machFiveFile)
{
ScopedPointer<XmlElement> rootXml = XmlDocument::parse(machFiveFile);
if (rootXml != nullptr)
{
ValueTree root = ValueTree::fromXml(*rootXml);
ValueTree layers = root.getChildWithName("Program").get... | 32.392523 | 103 | 0.746682 | MIDIculous |
1349f07778caeaa9029f1de1d08bfbab60742c03 | 2,871 | cpp | C++ | src/as/multithread_task/task_interface.cpp | asmith-git/multithread-task | 4b09b854aff2cf24651fd75bbed8d3019f8be379 | [
"Apache-2.0"
] | null | null | null | src/as/multithread_task/task_interface.cpp | asmith-git/multithread-task | 4b09b854aff2cf24651fd75bbed8d3019f8be379 | [
"Apache-2.0"
] | null | null | null | src/as/multithread_task/task_interface.cpp | asmith-git/multithread-task | 4b09b854aff2cf24651fd75bbed8d3019f8be379 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Adam Smith
//
// 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 i... | 27.605769 | 113 | 0.730408 | asmith-git |
134c1ecf57b5efca1a1c1ac5178f89108e77076e | 1,450 | cpp | C++ | test/catch/map-test.cpp | malachi-iot/estdlib | b455315c567ede54cea02eee5174036170d8fd26 | [
"MIT"
] | 11 | 2019-01-04T12:02:02.000Z | 2021-06-17T01:38:56.000Z | test/catch/map-test.cpp | malachi-iot/estdlib | b455315c567ede54cea02eee5174036170d8fd26 | [
"MIT"
] | 5 | 2020-01-01T06:12:48.000Z | 2022-03-29T20:49:21.000Z | test/catch/map-test.cpp | malachi-iot/estdlib | b455315c567ede54cea02eee5174036170d8fd26 | [
"MIT"
] | 1 | 2020-10-19T11:10:13.000Z | 2020-10-19T11:10:13.000Z | #include <catch.hpp>
#include <estd/map.h>
#include <estd/string.h>
#include "mem.h"
using namespace estd;
TEST_CASE("map-test")
{
SECTION("layer 1 map")
{
typedef layer1::map<int, int, 4> map_t;
estd::array<map_t::value_type, 4> buf;
#ifdef FEATURE_ESTD_LEGACY_ARRAY
buf[0].first = ... | 18.589744 | 53 | 0.428276 | malachi-iot |
134d752f81d4159ff614f943d349bda119421f12 | 9,117 | cc | C++ | includes/openvdb/openvdb_houdini/SOP_OpenVDB_Platonic.cc | ibfernandes/NarvalEngine | fb9ad53ebc7b244f4eed76f43e7aac2faa94772a | [
"MIT"
] | 6 | 2020-02-06T03:30:25.000Z | 2021-10-12T11:38:24.000Z | includes/openvdb/openvdb_houdini/SOP_OpenVDB_Platonic.cc | ibfernandes/NarvalEngine | fb9ad53ebc7b244f4eed76f43e7aac2faa94772a | [
"MIT"
] | 1 | 2021-07-29T17:38:23.000Z | 2021-07-29T17:38:23.000Z | includes/openvdb/openvdb_houdini/SOP_OpenVDB_Platonic.cc | ibfernandes/NarvalEngine | fb9ad53ebc7b244f4eed76f43e7aac2faa94772a | [
"MIT"
] | 1 | 2020-02-14T06:42:03.000Z | 2020-02-14T06:42:03.000Z | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) DreamWorks Animation LLC
//
// All rights reserved. This software is distributed under the
// Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
//
// Redistributions of source code must retain the above copyrigh... | 36.322709 | 100 | 0.658769 | ibfernandes |
134f18a3ab88ec3a236b4a635c131977d6789cb3 | 4,708 | cpp | C++ | src/main.cpp | FranciscoPDNeto/mpi-sum-reduction | 0221b0ccada6de85be8c28a3745ba56d7942ec78 | [
"MIT"
] | null | null | null | src/main.cpp | FranciscoPDNeto/mpi-sum-reduction | 0221b0ccada6de85be8c28a3745ba56d7942ec78 | [
"MIT"
] | null | null | null | src/main.cpp | FranciscoPDNeto/mpi-sum-reduction | 0221b0ccada6de85be8c28a3745ba56d7942ec78 | [
"MIT"
] | null | null | null | #include <mpi.h>
#include <cassert>
#include <chrono>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#define MAINPROC 0
int main(int argc, char** argv) {
int numProcessors;
int myRank;
MPI_Init(NULL, NULL);
MPI_Comm_size(MPI_COMM_WORLD, &numProcessors);
MPI_Comm_... | 30.973684 | 99 | 0.620221 | FranciscoPDNeto |
13538a7b4390c75483f9bb78940212f8a49151ec | 56 | hpp | C++ | src/boost_graph_planar_detail_face_iterators.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_graph_planar_detail_face_iterators.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_graph_planar_detail_face_iterators.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/graph/planar_detail/face_iterators.hpp>
| 28 | 55 | 0.839286 | miathedev |
135426aa10e89e8c728c226c24e98820780c2234 | 4,098 | cpp | C++ | libnd4j/include/ops/declarable/generic/tsne/symmetrized.cpp | steven-lang/deeplearning4j | 979ef13c0b28565800fc651693102d7bd2bf52c9 | [
"Apache-2.0"
] | 1 | 2019-10-14T06:55:41.000Z | 2019-10-14T06:55:41.000Z | libnd4j/include/ops/declarable/generic/tsne/symmetrized.cpp | steven-lang/deeplearning4j | 979ef13c0b28565800fc651693102d7bd2bf52c9 | [
"Apache-2.0"
] | null | null | null | libnd4j/include/ops/declarable/generic/tsne/symmetrized.cpp | steven-lang/deeplearning4j | 979ef13c0b28565800fc651693102d7bd2bf52c9 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 44.543478 | 140 | 0.618106 | steven-lang |
13548d3a2be2e80e5cff44b2291af10f5cc2cef4 | 1,383 | cpp | C++ | helpers/tail.cpp | ideeinc/Deepagent | 5d37ecf8e196d54d3914edc0c7b309377f772c1f | [
"BSD-3-Clause"
] | null | null | null | helpers/tail.cpp | ideeinc/Deepagent | 5d37ecf8e196d54d3914edc0c7b309377f772c1f | [
"BSD-3-Clause"
] | null | null | null | helpers/tail.cpp | ideeinc/Deepagent | 5d37ecf8e196d54d3914edc0c7b309377f772c1f | [
"BSD-3-Clause"
] | null | null | null | #include <QFileInfo>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include "tail.h"
Tail::Tail(const QString &filePath)
: ApplicationHelper(), path(filePath)
{ }
QByteArray Tail::tail(int maxlen, qint64 offset) const
{
static const qint64 BUFSIZE = sysconf(_SC_PAGE_SIZE);
QByteArray ret... | 24.263158 | 96 | 0.556038 | ideeinc |
135618d3fdccbe5f47a6caa7b342baab54481a4c | 11,285 | cpp | C++ | games/games/BrickBash/BrickBash.cpp | timskillman/pico-arcade | 9c036f8507319bd6e4552e86a6d7211ed74a2670 | [
"MIT"
] | 1 | 2022-02-27T15:46:13.000Z | 2022-02-27T15:46:13.000Z | games/games/BrickBash/BrickBash.cpp | timskillman/pico-arcade | 9c036f8507319bd6e4552e86a6d7211ed74a2670 | [
"MIT"
] | null | null | null | games/games/BrickBash/BrickBash.cpp | timskillman/pico-arcade | 9c036f8507319bd6e4552e86a6d7211ed74a2670 | [
"MIT"
] | null | null | null | #include "BrickBash.h"
#include "hardware/adc.h"
#include "pico/stdlib.h" // stdlib
#include "hardware/irq.h" // interrupts
#include "hardware/pwm.h" // pwm
#include "hardware/sync.h" // wait for interrupt
// Audio PIN is to match some of the design guide shields.
#define AUDIO_PIN 28 // you can change this ... | 30.41779 | 116 | 0.606646 | timskillman |
13571219a31c25d46c896598bd3a1081c8f966fe | 332 | hpp | C++ | contracts/eosio.system/include/eosio.system/get_trx_id.hpp | eosnationftw/geojsonpoint | e5b38051753d760cbe2759d542e5c9b92a70c002 | [
"MIT"
] | null | null | null | contracts/eosio.system/include/eosio.system/get_trx_id.hpp | eosnationftw/geojsonpoint | e5b38051753d760cbe2759d542e5c9b92a70c002 | [
"MIT"
] | null | null | null | contracts/eosio.system/include/eosio.system/get_trx_id.hpp | eosnationftw/geojsonpoint | e5b38051753d760cbe2759d542e5c9b92a70c002 | [
"MIT"
] | 2 | 2019-08-12T10:55:42.000Z | 2021-04-13T14:09:39.000Z | #include <eosio/transaction.hpp>
#include <eosio/crypto.hpp>
namespace eosiosystem {
checksum256 get_trx_id()
{
size_t size = eosio::transaction_size();
char buf[size];
size_t read = eosio::read_transaction( buf, size );
check( size == read, "read_transaction failed");
return eosio::sha256( buf, r... | 20.75 | 55 | 0.683735 | eosnationftw |
135875e079e7cce7cf5cfab249e7d6f607d47fd6 | 324 | hpp | C++ | include/IClickable.hpp | Zouizoui78/memory | 2023ea9b17e676b0cdeaa37f692f50cfbda908a5 | [
"MIT"
] | null | null | null | include/IClickable.hpp | Zouizoui78/memory | 2023ea9b17e676b0cdeaa37f692f50cfbda908a5 | [
"MIT"
] | null | null | null | include/IClickable.hpp | Zouizoui78/memory | 2023ea9b17e676b0cdeaa37f692f50cfbda908a5 | [
"MIT"
] | null | null | null | #ifndef ICLICKABLE
#define ICLICKABLE
#include <functional>
template <class T>
class IClickable
{
public:
virtual void setCallback(std::function<bool (T* clicked)>) = 0;
virtual bool click() = 0;
virtual void setClickable(bool clickable) = 0;
virtual bool isClickable() = 0;
};
#endif // ICLICK... | 17.052632 | 67 | 0.685185 | Zouizoui78 |
135bc60e0e07cc17e6ca1c8ec363298aad8e9f9c | 3,015 | cxx | C++ | Modules/Wrappers/ApplicationEngine/test/otbWrapperImageInterface.cxx | heralex/OTB | c52b504b64dc89c8fe9cac8af39b8067ca2c3a57 | [
"Apache-2.0"
] | null | null | null | Modules/Wrappers/ApplicationEngine/test/otbWrapperImageInterface.cxx | heralex/OTB | c52b504b64dc89c8fe9cac8af39b8067ca2c3a57 | [
"Apache-2.0"
] | null | null | null | Modules/Wrappers/ApplicationEngine/test/otbWrapperImageInterface.cxx | heralex/OTB | c52b504b64dc89c8fe9cac8af39b8067ca2c3a57 | [
"Apache-2.0"
] | 1 | 2020-10-15T09:37:30.000Z | 2020-10-15T09:37:30.000Z | /*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 31.736842 | 122 | 0.66335 | heralex |
135d8d0d917cab341eede7ccc2bfbaf1efde4621 | 821 | cpp | C++ | books/tech/cpp/std-11/a_williams-cpp_concurrency_in_action/code/appendix_A/04-constexpr_functions/01-constant_expressions/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | 1 | 2017-05-04T08:23:46.000Z | 2017-05-04T08:23:46.000Z | books/techno/cpp/_upper-intermediate/cpp_concurrency_in_action_a_williams/code/appendix_A/04-constexpr_functions/01-constant_expressions/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | books/techno/cpp/_upper-intermediate/cpp_concurrency_in_action_a_williams/code/appendix_A/04-constexpr_functions/01-constant_expressions/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | int bounds = 99;
const int bounds2 = 99;
const int forty_two = 42;
// specify the bounds of an array
// int array[bounds]; // error
int array2[bounds2]; // OK
// specify the value of a nontype template parameter
template <unsigned size>
struct test { };
// test<bounds> ia{}; // error
test<bounds2> ia2{}; // OK
// pr... | 23.457143 | 70 | 0.696711 | ordinary-developer |
135f2a7c8306398982674a90b91a9af0bcca1b8e | 6,409 | cpp | C++ | SourceCode/case studies/String Manipulation/Program 10-24.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | 1 | 2019-04-09T18:29:38.000Z | 2019-04-09T18:29:38.000Z | SourceCode/case studies/String Manipulation/Program 10-24.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | SourceCode/case studies/String Manipulation/Program 10-24.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | // This program prints a simple form letter reminding a customer
// of an overdue account balance.
#include <iostream>
#include <cctype>
#include <cstring>
using namespace std;
// Function Prototypes
void printLetter(char *, char *, char *, char *, char *);
void getInfo(char *, char *, char *, char *, char *);
void ge... | 32.866667 | 71 | 0.561554 | aceiro |
13603bed1310ae78d5f2e13e1160477159f73c60 | 3,176 | cpp | C++ | transform/src/init.cpp | nvxden/opengl | a5af176e095ef8f263f359ccb23b9103ceaa5722 | [
"MIT"
] | null | null | null | transform/src/init.cpp | nvxden/opengl | a5af176e095ef8f263f359ccb23b9103ceaa5722 | [
"MIT"
] | null | null | null | transform/src/init.cpp | nvxden/opengl | a5af176e095ef8f263f359ccb23b9103ceaa5722 | [
"MIT"
] | null | null | null | #include <glob.hpp>
#include <stdio.h>
#include <stb_image.h>
#include <nvx/opengl/common.hpp>
#include <nvx/opengl/Shader.hpp>
GLFWwindow *g_window;
uint g_vbo_rectangle;
uint g_vao_rectangle;
uint g_ebo_rectangle;
uint g_texture;
uint g_texture2;
nvx::Shader g_shader;
GLFWwindow *create_window();
void ... | 22.055556 | 93 | 0.704345 | nvxden |
13617ede71b0e9259f4189437e595242cdfdfe3f | 1,375 | cpp | C++ | src/xrGame/GlobalFeelTouch.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 2 | 2015-02-23T10:43:02.000Z | 2015-06-11T14:45:08.000Z | src/xrGame/GlobalFeelTouch.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 17 | 2022-01-25T08:58:23.000Z | 2022-03-28T17:18:28.000Z | src/xrGame/GlobalFeelTouch.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 1 | 2015-06-05T20:04:00.000Z | 2015-06-05T20:04:00.000Z | #include "StdAfx.h"
#include "GlobalFeelTouch.hpp"
#include <functional>
GlobalFeelTouch::GlobalFeelTouch() {}
GlobalFeelTouch::~GlobalFeelTouch() {}
struct delete_predicate_by_time
{
bool operator()(Feel::Touch::DenyTouch const& left, u32 const expire_time) const
{
if (left.Expire <= expire_time)
... | 30.555556 | 136 | 0.685818 | clayne |
1362203de29172ed750d155f0eab94672162776e | 3,626 | cc | C++ | pagespeed/kernel/util/simple_stats_test.cc | PeterDaveHello/incubator-pagespeed-mod | 885f4653e204e1152cb3928f0755d93ec5fdceae | [
"Apache-2.0"
] | null | null | null | pagespeed/kernel/util/simple_stats_test.cc | PeterDaveHello/incubator-pagespeed-mod | 885f4653e204e1152cb3928f0755d93ec5fdceae | [
"Apache-2.0"
] | null | null | null | pagespeed/kernel/util/simple_stats_test.cc | PeterDaveHello/incubator-pagespeed-mod | 885f4653e204e1152cb3928f0755d93ec5fdceae | [
"Apache-2.0"
] | 1 | 2020-05-20T07:09:05.000Z | 2020-05-20T07:09:05.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 you under the Apache License, Version 2.0 (the
* "License"); you ... | 31.258621 | 63 | 0.730006 | PeterDaveHello |
1367ad766b1b8a682f2f33cf1a57bab0d8938afc | 2,203 | cpp | C++ | src/condvartest.cpp | sda1969/cpptest | 068b8401664e3c13f969abcfc93ea4f60028a73a | [
"Unlicense"
] | null | null | null | src/condvartest.cpp | sda1969/cpptest | 068b8401664e3c13f969abcfc93ea4f60028a73a | [
"Unlicense"
] | null | null | null | src/condvartest.cpp | sda1969/cpptest | 068b8401664e3c13f969abcfc93ea4f60028a73a | [
"Unlicense"
] | null | null | null | /*
* condvartest.cpp
*
* Created on: 16 февр. 2017 г.
* Author: dmitry
*/
// condition_variable example
#include <iostream> // std::cout
#include <thread> // std::thread
#include <mutex> // std::mutex, std::unique_lock
#include <condition_variable> // std::condition_variab... | 27.886076 | 89 | 0.597367 | sda1969 |
1368a9c6cd80b00e8ef0f259893fc17b524ca1d0 | 2,621 | hpp | C++ | HolidayCalendar.hpp | som-dev/Holiday | 027d9433cbdcf153f8fc102039252f3b25e063d3 | [
"MIT"
] | null | null | null | HolidayCalendar.hpp | som-dev/Holiday | 027d9433cbdcf153f8fc102039252f3b25e063d3 | [
"MIT"
] | null | null | null | HolidayCalendar.hpp | som-dev/Holiday | 027d9433cbdcf153f8fc102039252f3b25e063d3 | [
"MIT"
] | null | null | null | #pragma once
#include "Date.hpp"
#include <unordered_set>
namespace Holiday
{
/// @brief A class that can cache holdays using a provided template parameter
/// to query if the date is a holiday.
template <class Holidays>
class HolidayCalendar
{
public:
/// @brief Creates a calendar with no cache
HolidayCale... | 28.802198 | 83 | 0.701641 | som-dev |
1368ef09c31178285277be45e38842472ec0401e | 2,704 | cc | C++ | xapian-core_scws-1.2.18/api/leafpostlist.cc | iveteran/xapian-scws | 670d0475f61bb4ff7cf1b1979abc4dea5d3acddf | [
"BSD-2-Clause"
] | null | null | null | xapian-core_scws-1.2.18/api/leafpostlist.cc | iveteran/xapian-scws | 670d0475f61bb4ff7cf1b1979abc4dea5d3acddf | [
"BSD-2-Clause"
] | null | null | null | xapian-core_scws-1.2.18/api/leafpostlist.cc | iveteran/xapian-scws | 670d0475f61bb4ff7cf1b1979abc4dea5d3acddf | [
"BSD-2-Clause"
] | null | null | null | /** @file leafpostlist.cc
* @brief Abstract base class for leaf postlists.
*/
/* Copyright (C) 2007,2009,2014 Olly Betts
* Copyright (C) 2009 Lemur Consulting Ltd
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the ... | 25.271028 | 83 | 0.723003 | iveteran |
136e614a75587e9782ff17aa740f653a1b73a52c | 734 | hpp | C++ | cmdstan/stan/lib/stan_math/stan/math/fwd/arr/fun/log_sum_exp.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/fwd/arr/fun/log_sum_exp.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/fwd/arr/fun/log_sum_exp.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_FWD_ARR_FUN_LOG_SUM_EXP_HPP
#define STAN_MATH_FWD_ARR_FUN_LOG_SUM_EXP_HPP
#include <stan/math/fwd/core.hpp>
#include <stan/math/prim/arr/fun/log_sum_exp.hpp>
#include <vector>
namespace stan {
namespace math {
template <typename T>
fvar<T>
log_sum_exp(const std::vector<fvar<T> >& v) {... | 23.677419 | 61 | 0.592643 | yizhang-cae |
136ecd77c9961dc3aebe935108215f2856615bb3 | 38,371 | cpp | C++ | pxr/imaging/lib/hd/renderIndex.cpp | marsupial/USD | 98d49911893d59be5a9904a29e15959affd530ec | [
"BSD-3-Clause"
] | 9 | 2021-03-31T21:23:48.000Z | 2022-03-05T09:29:27.000Z | pxr/imaging/lib/hd/renderIndex.cpp | marsupial/USD | 98d49911893d59be5a9904a29e15959affd530ec | [
"BSD-3-Clause"
] | null | null | null | pxr/imaging/lib/hd/renderIndex.cpp | marsupial/USD | 98d49911893d59be5a9904a29e15959affd530ec | [
"BSD-3-Clause"
] | 1 | 2021-04-15T16:18:55.000Z | 2021-04-15T16:18:55.000Z | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 32.964777 | 89 | 0.569857 | marsupial |
13744c9a458373e2aad9e6b728cbf65601543950 | 6,311 | inl | C++ | include/vke/Core/Utils/inl/TCSmartPtr.inl | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | 1 | 2018-01-06T04:44:36.000Z | 2018-01-06T04:44:36.000Z | include/vke/Core/Utils/inl/TCSmartPtr.inl | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | include/vke/Core/Utils/inl/TCSmartPtr.inl | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null |
template<typename T>
void TCWeakPtr< T >::operator=(const TCWeakPtr& o)
{
m_pPtr = o.m_pPtr;
}
template<typename T>
void TCWeakPtr< T >::operator=(TCWeakPtr&& o)
{
m_pPtr = o.Release();
}
template<typename T>
void TCWeakPtr< T >::operator=(T* pPtr)
{
m_pPtr = pPtr;
}
template<typename T>
bool TCWeakPtr<... | 19.783699 | 98 | 0.638409 | przemyslaw-szymanski |
1375987a353fde0ef47dae9e1c4b2925e49302d8 | 308 | cpp | C++ | src/detector.cpp | fntlnz/id-extractor | 0c6ccfb2e6f16c932635a9a945d2664872906aa8 | [
"MIT"
] | 1 | 2015-07-21T06:24:37.000Z | 2015-07-21T06:24:37.000Z | src/detector.cpp | fntlnz/id-extractor | 0c6ccfb2e6f16c932635a9a945d2664872906aa8 | [
"MIT"
] | null | null | null | src/detector.cpp | fntlnz/id-extractor | 0c6ccfb2e6f16c932635a9a945d2664872906aa8 | [
"MIT"
] | null | null | null | #include "detector.h"
Detector::Detector(cv::Mat img, double hessianThreshold) {
this->img = img;
this->opencv_detector = cv::xfeatures2d::SURF::create(hessianThreshold);
}
void Detector::detect() {
this->opencv_detector->detectAndCompute(this->img, cv::Mat(), this->keypoints, this->descriptors);
}
| 28 | 100 | 0.724026 | fntlnz |
137773f1d6c013074694f306a3622c7635d4a918 | 1,290 | cpp | C++ | CGJ-Rose/Rose_Engine/src/utils/drawing/UniformBuffer.cpp | HerouFenix/cgj-rose | f0c8f39267de48d2dcaa14422062ecff06c51127 | [
"MIT"
] | null | null | null | CGJ-Rose/Rose_Engine/src/utils/drawing/UniformBuffer.cpp | HerouFenix/cgj-rose | f0c8f39267de48d2dcaa14422062ecff06c51127 | [
"MIT"
] | null | null | null | CGJ-Rose/Rose_Engine/src/utils/drawing/UniformBuffer.cpp | HerouFenix/cgj-rose | f0c8f39267de48d2dcaa14422062ecff06c51127 | [
"MIT"
] | null | null | null | #include "../../headers/drawing/UniformBuffer.h"
#include "../../headers/drawing/Renderer.h"
#include <iostream>
UniformBuffer::UniformBuffer()
{
m_VboID = -1;
UBO_BP = -1;
}
void UniformBuffer::SetupBuffer(const void* data, GLuint size, GLuint UBO_BP_)
{
UBO_BP = UBO_BP_;
GLCall(glGenBuffers(1, &m_VboID));
gl... | 21.864407 | 81 | 0.674419 | HerouFenix |
137cb6be59724ac6ca269e106e19843daa4539d5 | 1,599 | cpp | C++ | src/dockerswarm.cpp | MassGrid/MassGrid | 5634dda1b9997c3d230678b1b19b6af17b590a3d | [
"MIT"
] | 18 | 2018-01-31T10:02:27.000Z | 2021-04-16T14:22:31.000Z | src/dockerswarm.cpp | MassGrid/MassGrid | 5634dda1b9997c3d230678b1b19b6af17b590a3d | [
"MIT"
] | null | null | null | src/dockerswarm.cpp | MassGrid/MassGrid | 5634dda1b9997c3d230678b1b19b6af17b590a3d | [
"MIT"
] | 14 | 2018-02-11T02:07:00.000Z | 2022-03-18T10:28:06.000Z | #include "dockerswarm.h"
void Swarm::DockerSwarm(const string& swarmData,Swarm &swarms)
{
// LogPrint("docker","Swarm::DockerSwarm docker json node\n");
try{
UniValue data(UniValue::VARR);
if(!data.read(swarmData)){
LogPrint("docker","Swarm::DockerSwarm docker json error\n");
... | 39 | 99 | 0.58349 | MassGrid |
137dc9387be538a2a7f018b2c3cdc19334e0c56c | 11,734 | cpp | C++ | src/drivers/yiear.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 8 | 2020-05-01T15:15:16.000Z | 2021-05-30T18:49:15.000Z | src/drivers/yiear.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | null | null | null | src/drivers/yiear.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 5 | 2020-05-07T18:38:11.000Z | 2021-08-03T12:57:41.000Z | #include "../vidhrdw/yiear.cpp"
/***************************************************************************
Yie Ar Kung-Fu memory map (preliminary)
enrique.sanchez@cs.us.es
CPU: Motorola 6809
Normal 6809 IRQs must be generated each video frame (60 fps).
The 6809 NMI is used for sound timing.
0000 R VLM50... | 31.124668 | 117 | 0.654679 | gameblabla |
137df95e69ab968dd3d0dc1181671129253bb7d7 | 451 | cpp | C++ | src/tools/tools.cpp | InspectorSolaris/nd-engine | a8d63fe4bc0e57a96317adf015534d2e779ffcbb | [
"WTFPL"
] | null | null | null | src/tools/tools.cpp | InspectorSolaris/nd-engine | a8d63fe4bc0e57a96317adf015534d2e779ffcbb | [
"WTFPL"
] | null | null | null | src/tools/tools.cpp | InspectorSolaris/nd-engine | a8d63fe4bc0e57a96317adf015534d2e779ffcbb | [
"WTFPL"
] | null | null | null | #include "tools.hpp"
namespace nd::src::tools
{
f64
getDt(const f64 min) noexcept
{
using namespace std;
using namespace std::chrono;
static auto time = high_resolution_clock::now();
const auto now = high_resolution_clock::now();
const auto dt = duration_cast<seco... | 21.47619 | 68 | 0.603104 | InspectorSolaris |
13802e4d3b9dadc78a5fca529f7b05b9e18dc077 | 658 | cpp | C++ | sample/joystick/MyApp.cpp | RockyRocks/glbase | 0b03e5216e5efd3060a5ddd8cf61fb733319af17 | [
"IJG"
] | null | null | null | sample/joystick/MyApp.cpp | RockyRocks/glbase | 0b03e5216e5efd3060a5ddd8cf61fb733319af17 | [
"IJG"
] | null | null | null | sample/joystick/MyApp.cpp | RockyRocks/glbase | 0b03e5216e5efd3060a5ddd8cf61fb733319af17 | [
"IJG"
] | null | null | null | #include "MyApp.h"
// single, static instance of our application
static MyApp theApp;
void MyApp::OnCreate() {
if (!m_joystick.Open())
MsgPrintf("This sample needs a joystick!");
position[0]=position[1]=0.0f;
for (int n=0;n<MAX_BUTTON;n++) button[n]=false;
}//OnCreate
MyApp & MyApp::Get() {
return theApp;
... | 19.939394 | 51 | 0.674772 | RockyRocks |
1385a43ee760faba8fc02144787193b5528ec1a8 | 1,323 | hpp | C++ | app/create_trading_db/include/offcenter/trading/createtradingdb/CreateTradingDBOptions.hpp | CodeRancher/offcenter_trading | 68526fdc0f27d611f748b2fa20f49e743d3ee5eb | [
"Apache-2.0"
] | null | null | null | app/create_trading_db/include/offcenter/trading/createtradingdb/CreateTradingDBOptions.hpp | CodeRancher/offcenter_trading | 68526fdc0f27d611f748b2fa20f49e743d3ee5eb | [
"Apache-2.0"
] | 4 | 2021-12-27T17:56:21.000Z | 2022-01-05T00:05:01.000Z | app/create_trading_db/include/offcenter/trading/createtradingdb/CreateTradingDBOptions.hpp | CodeRancher/offcenter_trading | 68526fdc0f27d611f748b2fa20f49e743d3ee5eb | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021 Scott Brauer
*
* Licensed under the Apache License, Version 2.0 (the );
* 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 writ... | 24.962264 | 75 | 0.762661 | CodeRancher |
1385e5cf9d2f3c4326a8a419ca0c2f77393da857 | 4,977 | cpp | C++ | src/client.cpp | rafaelppires/sgx_lightweight_mapreruce | a25b58d5ad69d61e32546a43dc604e720ef95bb8 | [
"Apache-2.0"
] | 1 | 2020-12-11T03:15:58.000Z | 2020-12-11T03:15:58.000Z | src/client.cpp | rafaelppires/sgx_lightweight_mapreruce | a25b58d5ad69d61e32546a43dc604e720ef95bb8 | [
"Apache-2.0"
] | null | null | null | src/client.cpp | rafaelppires/sgx_lightweight_mapreruce | a25b58d5ad69d61e32546a43dc604e720ef95bb8 | [
"Apache-2.0"
] | 1 | 2019-09-03T02:31:08.000Z | 2019-09-03T02:31:08.000Z | /**
* MapReduce client - Subscribe reducced data
* Publish code for Map, Reduce and Data
**/
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdlib.h>
#include <message.h>
#include <client_protocol.h>
#include <mrprotocol.h>
#include <zhelpers.h>
#include <argp.h>
//-----... | 35.297872 | 94 | 0.494876 | rafaelppires |
138670db81488c5a39eea0295f349114ab17dfeb | 910 | hpp | C++ | src/bqt_layer.hpp | JadeMatrix/BQTDraw | 329b015c45d8f151fde09b8f26aa7e0e8151b604 | [
"Zlib"
] | null | null | null | src/bqt_layer.hpp | JadeMatrix/BQTDraw | 329b015c45d8f151fde09b8f26aa7e0e8151b604 | [
"Zlib"
] | null | null | null | src/bqt_layer.hpp | JadeMatrix/BQTDraw | 329b015c45d8f151fde09b8f26aa7e0e8151b604 | [
"Zlib"
] | null | null | null | #ifndef BQT_LAYER_HPP
#define BQT_LAYER_HPP
/*
* bqt_sketch.hpp
*
* About
*
*/
/* INCLUDES *******************************************************************//******************************************************************************/
#include "bqt_datastructures.hpp"
#include <vector>
#include "bqt_s... | 21.666667 | 160 | 0.295604 | JadeMatrix |
13882a249633232bf7af3e56a1cfd285b243b59e | 12,367 | cc | C++ | ecsops/src/model/OpsDescribeInstancesResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | ecsops/src/model/OpsDescribeInstancesResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | ecsops/src/model/OpsDescribeInstancesResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 54.241228 | 112 | 0.773268 | sdk-team |
138a86ccc0b99e677e84fa61c56cb460691d68a3 | 16,508 | cpp | C++ | packages/CLPBN/horus/HorusYap.cpp | denys-duchier/yap-6.3 | 97163fa150ba570e4ba2881646363e9877a07bcb | [
"Artistic-1.0-Perl",
"ClArtistic"
] | 2 | 2015-11-01T07:38:31.000Z | 2016-03-30T18:05:28.000Z | packages/CLPBN/horus/HorusYap.cpp | denys-duchier/yap-6.3 | 97163fa150ba570e4ba2881646363e9877a07bcb | [
"Artistic-1.0-Perl",
"ClArtistic"
] | null | null | null | packages/CLPBN/horus/HorusYap.cpp | denys-duchier/yap-6.3 | 97163fa150ba570e4ba2881646363e9877a07bcb | [
"Artistic-1.0-Perl",
"ClArtistic"
] | null | null | null | #include <cstdlib>
#include <vector>
#include <iostream>
#include <sstream>
#include <YapInterface.h>
#include "ParfactorList.h"
#include "FactorGraph.h"
#include "LiftedVe.h"
#include "VarElim.h"
#include "LiftedBp.h"
#include "CountingBp.h"
#include "BeliefProp.h"
#include "ElimGraph.h"
#include "BayesBall.h"
u... | 29.851718 | 78 | 0.65544 | denys-duchier |
138a9738117224552305d9f8005c5e6a02a06754 | 588 | hpp | C++ | MATLAB/Utilities/IO/VarianCBCT/XimPara.hpp | tsadakane/TIGRE | a853cd2d4a6bc9509c01414b85ca75b4448fd700 | [
"BSD-3-Clause"
] | 326 | 2016-07-01T10:48:09.000Z | 2022-03-20T07:34:52.000Z | MATLAB/Utilities/IO/VarianCBCT/XimPara.hpp | tsadakane/TIGRE | a853cd2d4a6bc9509c01414b85ca75b4448fd700 | [
"BSD-3-Clause"
] | 311 | 2016-07-05T16:00:06.000Z | 2022-03-30T12:14:55.000Z | MATLAB/Utilities/IO/VarianCBCT/XimPara.hpp | tsadakane/TIGRE | a853cd2d4a6bc9509c01414b85ca75b4448fd700 | [
"BSD-3-Clause"
] | 157 | 2016-08-08T12:13:09.000Z | 2022-03-17T00:37:45.000Z | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <iostream>
//typedef struct XimPara
#ifndef STR_XIM
#define STR_XIM
//struct XimPara
typedef struct XimPara
{
char FileName[256];
int ImgWidth; // Image Width
int ImgHeight; // Image Height
int PixelNO;
int BytesPerPixel; // Determine how ... | 20.275862 | 65 | 0.732993 | tsadakane |
138b7b6196c41532498823ac52122a6f08c69992 | 174 | hpp | C++ | headers/Simulators/ModelLoadSimulator.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | headers/Simulators/ModelLoadSimulator.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | headers/Simulators/ModelLoadSimulator.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | #ifndef MODELLOADSIMULATOR_HPP
# define MODELLOADSIMULATOR_HPP
# include "pch.hpp"
namespace NAMESPACE
{
class ModelLoadSimulator
{
public:
void main();
};
}
#endif
| 9.666667 | 31 | 0.741379 | Gilqamesh |
138e7b65b80ab7e53057b5cdc8e5f9b9f1ef375b | 2,429 | cpp | C++ | alica_cace_tests/src/test_alica_init_shutdown.cpp | carpe-noctem-cassel/cace | e3c9cad6ca2e5b6ec5cb3b3c913a196fb95065b1 | [
"MIT"
] | null | null | null | alica_cace_tests/src/test_alica_init_shutdown.cpp | carpe-noctem-cassel/cace | e3c9cad6ca2e5b6ec5cb3b3c913a196fb95065b1 | [
"MIT"
] | null | null | null | alica_cace_tests/src/test_alica_init_shutdown.cpp | carpe-noctem-cassel/cace | e3c9cad6ca2e5b6ec5cb3b3c913a196fb95065b1 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <engine/AlicaEngine.h>
#include <engine/IAlicaClock.h>
#include "TestBehaviourCreator.h"
#include "TestConstraintCreator.h"
#include "TestUtilityFunctionCreator.h"
#include <clock/AlicaROSClock.h>
#include "engine/PlanRepository.h"
#include "engine/DefaultUtilityFunction.h"
#include "e... | 27.292135 | 121 | 0.732812 | carpe-noctem-cassel |
ca5e0cf257dfdc1192f76a784250ddac75476081 | 2,803 | cpp | C++ | LibAudio/WASAPIDevice.cpp | ebragge/LibAudio | 7848f257ba0ab83307e0498384c99469d7dedccb | [
"BSD-3-Clause"
] | 2 | 2016-01-28T10:47:42.000Z | 2016-05-10T07:45:39.000Z | LibAudio/WASAPIDevice.cpp | ebragge/LibAudio | 7848f257ba0ab83307e0498384c99469d7dedccb | [
"BSD-3-Clause"
] | null | null | null | LibAudio/WASAPIDevice.cpp | ebragge/LibAudio | 7848f257ba0ab83307e0498384c99469d7dedccb | [
"BSD-3-Clause"
] | null | null | null | #include "pch.h"
#include "WASAPIDevice.h"
using namespace LibAudio;
WASAPIDevice::WASAPIDevice() : m_initialized(false)
{
}
void WASAPIDevice::StopAsync()
{
if (Capture != nullptr)
{
Capture->StopCaptureAsync();
}
}
void WASAPIDevice::InitCaptureDevice(size_t id, DataCollector^ collector)
{
... | 24.80531 | 143 | 0.693899 | ebragge |
ca60a04ce33ba8e4123ceec044c4de6948170158 | 9,681 | cpp | C++ | infer/tests/codetoanalyze/cpp/liveness/dead_stores.cpp | JacobBarthelmeh/infer | 12c582a69855e17a2cf9c7b6cdf7f8e9c71e5341 | [
"MIT"
] | 2 | 2020-12-01T19:17:41.000Z | 2021-11-16T11:16:32.000Z | infer/tests/codetoanalyze/cpp/liveness/dead_stores.cpp | JacobBarthelmeh/infer | 12c582a69855e17a2cf9c7b6cdf7f8e9c71e5341 | [
"MIT"
] | 6 | 2021-06-28T20:43:36.000Z | 2022-02-27T11:27:43.000Z | infer/tests/codetoanalyze/cpp/liveness/dead_stores.cpp | JacobBarthelmeh/infer | 12c582a69855e17a2cf9c7b6cdf7f8e9c71e5341 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <exception>
#include <mutex>
#include <new>
#include <stdexcept>
#include <thread>
namespace infer {
class ScopeGuard {};... | 15.639742 | 79 | 0.565231 | JacobBarthelmeh |
ca60f968abc4cb1646b9e36b4768f1389ad4d002 | 613 | cpp | C++ | src/logging/formatting_channel_logging.cpp | gbellizio/poco_showcase | f8974002d01a89149a6a50b4f676f421605f4524 | [
"MIT"
] | null | null | null | src/logging/formatting_channel_logging.cpp | gbellizio/poco_showcase | f8974002d01a89149a6a50b4f676f421605f4524 | [
"MIT"
] | null | null | null | src/logging/formatting_channel_logging.cpp | gbellizio/poco_showcase | f8974002d01a89149a6a50b4f676f421605f4524 | [
"MIT"
] | null | null | null | //
// Created by gennaro on 27/11/20.
//
#include <Poco/ConsoleChannel.h>
#include <Poco/FormattingChannel.h>
#include <Poco/Logger.h>
#include <Poco/PatternFormatter.h>
int main(int argc, char **argv) {
auto &logger = Poco::Logger::get("SampleApp");
auto pattern = new Poco::PatternForma... | 32.263158 | 96 | 0.672104 | gbellizio |
ca61401946cb41df62b50478ae72595aa30a63ac | 234 | cpp | C++ | event/EventContext.cpp | indigames/igeScene | caf6e5c7575ac9fb4d7e887764707d4faa5d168e | [
"MIT"
] | null | null | null | event/EventContext.cpp | indigames/igeScene | caf6e5c7575ac9fb4d7e887764707d4faa5d168e | [
"MIT"
] | null | null | null | event/EventContext.cpp | indigames/igeScene | caf6e5c7575ac9fb4d7e887764707d4faa5d168e | [
"MIT"
] | null | null | null | #include "event/EventContext.h"
NS_IGE_SCENE_BEGIN
EventContext::EventContext() :
m_sender(nullptr),
m_bIsStopped(false),
m_defaultPrevented(false),
m_type(0)
{
}
EventContext::~EventContext()
{
}
NS_IGE_SCENE_END | 13 | 31 | 0.722222 | indigames |
ca619d8ba032986aece5533b6eb8aaccdfe156dc | 6,822 | cpp | C++ | src/Tools/CompTool/CompTool-main.cpp | kokizzu/OmniPhotos | b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da | [
"Apache-2.0"
] | 129 | 2020-12-13T02:22:05.000Z | 2022-03-22T02:45:39.000Z | src/Tools/CompTool/CompTool-main.cpp | kokizzu/OmniPhotos | b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da | [
"Apache-2.0"
] | 4 | 2020-12-20T20:18:05.000Z | 2021-06-03T10:51:55.000Z | src/Tools/CompTool/CompTool-main.cpp | kokizzu/OmniPhotos | b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da | [
"Apache-2.0"
] | 23 | 2020-12-15T15:11:18.000Z | 2022-03-18T00:15:30.000Z | //#include "ssim.h"
#include "Utils/FlowIO.hpp"
#include "Utils/FlowVisualisation.hpp"
#include "Utils/IOTools.hpp"
#include "Utils/cvutils.hpp"
#include <tclap/CmdLine.h>
#include <string>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
int main(int argc, char* argv[])
{
// Set up comman... | 41.597561 | 192 | 0.635151 | kokizzu |
ca652c5b250057df25ee3be1afbeae84131fbfa7 | 5,981 | cc | C++ | Geometry/VeryForwardGeometryBuilder/src/DetGeomDesc.cc | flodamas/cmssw | fff9de2a54e62debab81057f8d6f8c82c2fd3dd6 | [
"Apache-2.0"
] | null | null | null | Geometry/VeryForwardGeometryBuilder/src/DetGeomDesc.cc | flodamas/cmssw | fff9de2a54e62debab81057f8d6f8c82c2fd3dd6 | [
"Apache-2.0"
] | null | null | null | Geometry/VeryForwardGeometryBuilder/src/DetGeomDesc.cc | flodamas/cmssw | fff9de2a54e62debab81057f8d6f8c82c2fd3dd6 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
*
* This is a part of the TOTEM offline software.
* Authors:
* Jan Kašpar (jan.kaspar@gmail.com)
* CMSSW developers (based on GeometricDet class)
*
****************************************************************************/
#include <uti... | 31.151042 | 106 | 0.496071 | flodamas |
ca661eaf8e55b7f188391d1a3146e13ddfe93ccb | 34,374 | cpp | C++ | tapi-master/unittests/libtapi/LinkerInterfaceFileTest_TBD_v1.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | tapi-master/unittests/libtapi/LinkerInterfaceFileTest_TBD_v1.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | tapi-master/unittests/libtapi/LinkerInterfaceFileTest_TBD_v1.cpp | JunyiXie/ld64 | ffaa615b31ff1baa5d6249e4d9a6a21c2ae603ae | [
"Apache-2.0"
] | null | null | null | //===-- LinkerInterfaceFileTest_TBD_v1.cpp - Linker Interface File Test ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 43.732824 | 80 | 0.602141 | JunyiXie |
ca6840f3bfe127d7d52a92e48e146582ae9b9bf1 | 4,599 | cpp | C++ | src/Eigen-3.3/unsupported/test/cxx11_tensor_volume_patch.cpp | shareq2005/CarND-MPC-Project | f4094e8b446d2fac2ca0a4c5054d5058621595b0 | [
"MIT"
] | 3,457 | 2018-06-09T15:36:42.000Z | 2020-06-01T22:09:25.000Z | src/Eigen-3.3/unsupported/test/cxx11_tensor_volume_patch.cpp | shareq2005/CarND-MPC-Project | f4094e8b446d2fac2ca0a4c5054d5058621595b0 | [
"MIT"
] | 1,057 | 2015-04-27T04:27:57.000Z | 2022-03-31T13:14:59.000Z | src/Eigen-3.3/unsupported/test/cxx11_tensor_volume_patch.cpp | shareq2005/CarND-MPC-Project | f4094e8b446d2fac2ca0a4c5054d5058621595b0 | [
"MIT"
] | 1,380 | 2017-06-12T23:58:23.000Z | 2022-03-31T14:52:48.000Z | #include "main.h"
#include <Eigen/CXX11/Tensor>
using Eigen::Tensor;
static void test_single_voxel_patch()
{
Tensor<float, 5> tensor(4,2,3,5,7);
tensor.setRandom();
Tensor<float, 5, RowMajor> tensor_row_major = tensor.swap_layout();
Tensor<float, 6> single_voxel_patch;
single_voxel_patch = tensor.extract_... | 40.699115 | 109 | 0.676451 | shareq2005 |
ca691c9ed217fceb4b39f424d19ff0d47fd1ae1b | 1,413 | cc | C++ | ports/www/node14/dragonfly/patch-deps_v8_src_base_platform_platform-posix.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2015-02-06T17:06:37.000Z | 2022-03-08T19:53:28.000Z | ports/www/node14/dragonfly/patch-deps_v8_src_base_platform_platform-posix.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 236 | 2015-06-29T19:51:17.000Z | 2021-12-16T22:46:38.000Z | ports/www/node14/dragonfly/patch-deps_v8_src_base_platform_platform-posix.cc | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 52 | 2015-02-06T17:05:36.000Z | 2021-10-21T12:13:06.000Z | --- deps/v8/src/base/platform/platform-posix.cc.orig 2021-02-09 14:11:20 UTC
+++ deps/v8/src/base/platform/platform-posix.cc
@@ -134,7 +134,7 @@ int GetProtectionFromMemoryPermission(OS
int GetFlagsForMemoryPermission(OS::MemoryPermission access) {
int flags = MAP_PRIVATE | MAP_ANONYMOUS;
if (access == OS::Memor... | 47.1 | 104 | 0.72753 | liweitianux |
ca6a0b6d9a2e68b8167525fa71d6a140769658d1 | 424 | cpp | C++ | reversevec.cpp | Mohamed742/C-AIMS-SA-2018 | a59ba718872dfae0f8ee216b10dbb66db3e8a921 | [
"Apache-2.0"
] | null | null | null | reversevec.cpp | Mohamed742/C-AIMS-SA-2018 | a59ba718872dfae0f8ee216b10dbb66db3e8a921 | [
"Apache-2.0"
] | null | null | null | reversevec.cpp | Mohamed742/C-AIMS-SA-2018 | a59ba718872dfae0f8ee216b10dbb66db3e8a921 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include <vector>
#include <algorithm>
#include<cmath>
using namespace std;
double rev1(vector<int>v)
{
vector<int> w;
{
for (int i = v.size()-1 ; 0<=i ;i--)
w.push_back(v[i]);
v = w;
}
for(auto &k : w)
cout << k << endl;
}
int main()
{
vector<int> vec14... | 14.62069 | 42 | 0.528302 | Mohamed742 |
ca6a90bbcf4149a3325e31a323575f7d13bc9009 | 8,022 | cpp | C++ | mmtbx/scaling/twinning_bpl.cpp | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | mmtbx/scaling/twinning_bpl.cpp | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | mmtbx/scaling/twinning_bpl.cpp | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | #include <scitbx/array_family/boost_python/flex_fwd.h>
#include <boost/python/class.hpp>
#include <boost/python/args.hpp>
#include <boost/python/return_value_policy.hpp>
#include <boost/python/return_by_value.hpp>
#include <boost/python/copy_const_reference.hpp>
#include <boost/python/module.hpp>
#include <boost/pytho... | 25.794212 | 70 | 0.510845 | rimmartin |
ca6b4a27a31432c4d1aa54a40d86b2669de579ff | 2,566 | cc | C++ | base/strings/utf_string_conversions_regression_fuzzer.cc | nctl144/cy-gurl | fef56d043b1f4fca22e721addc331241a8c97e46 | [
"MIT"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | base/strings/utf_string_conversions_regression_fuzzer.cc | nctl144/cy-gurl | fef56d043b1f4fca22e721addc331241a8c97e46 | [
"MIT"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | base/strings/utf_string_conversions_regression_fuzzer.cc | nctl144/cy-gurl | fef56d043b1f4fca22e721addc331241a8c97e46 | [
"MIT"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright (c) 2018 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 "base/logging.h"
#include "base/strings/old_utf_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
namespace {
void UTF... | 24.207547 | 73 | 0.668745 | nctl144 |
ca6ef602f5aa971aa669b93fad0f16ae9ed64841 | 37,812 | cpp | C++ | src/cashlib/cashlib.cpp | gandrewstone/bitcoin | 05de381c02eb4bfca94957733acadfa217527f25 | [
"MIT"
] | 535 | 2015-09-04T15:10:08.000Z | 2022-03-17T20:51:05.000Z | src/cashlib/cashlib.cpp | gandrewstone/bitcoin | 05de381c02eb4bfca94957733acadfa217527f25 | [
"MIT"
] | 1,269 | 2016-01-31T20:21:24.000Z | 2022-03-16T01:20:08.000Z | src/cashlib/cashlib.cpp | gandrewstone/bitcoin | 05de381c02eb4bfca94957733acadfa217527f25 | [
"MIT"
] | 295 | 2015-10-19T16:12:29.000Z | 2021-08-02T20:05:17.000Z | // Copyright (c) 2015-2020 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
/* clang-format off */
// must be first for windows
#include "compat.h"
/* clang-format on */
#ifdef ANDROID // Workarou... | 30.791531 | 120 | 0.680683 | gandrewstone |
ca7095409cf148299a17292567a32a86cb475506 | 76,536 | cpp | C++ | Source/platform/graphics/gpu/WebGLImageConversion.cpp | prepare/Blink_only_permissive_lic_files | 8b3acc51c7ae8b074d2e2b610d0d9295d9a1ecb4 | [
"BSD-3-Clause"
] | null | null | null | Source/platform/graphics/gpu/WebGLImageConversion.cpp | prepare/Blink_only_permissive_lic_files | 8b3acc51c7ae8b074d2e2b610d0d9295d9a1ecb4 | [
"BSD-3-Clause"
] | null | null | null | Source/platform/graphics/gpu/WebGLImageConversion.cpp | prepare/Blink_only_permissive_lic_files | 8b3acc51c7ae8b074d2e2b610d0d9295d9a1ecb4 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 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 "config.h"
#include "platform/graphics/gpu/WebGLImageConversion.h"
#include "platform/CheckedInt.h"
#include "platform/graphics/ImageObserver.h"... | 42.805369 | 216 | 0.639163 | prepare |
ca72eddd5ebcd12e52117fa85d5042842c7c458f | 1,958 | cpp | C++ | Dx2D/cParticle.cpp | jjuiddong/Dx2D-Engine | ceaad4661db2af84946da60b528a598f701f11fe | [
"MIT"
] | 1 | 2015-04-30T13:38:57.000Z | 2015-04-30T13:38:57.000Z | Dx2D/cParticle.cpp | jjuiddong/Dx2D-Engine | ceaad4661db2af84946da60b528a598f701f11fe | [
"MIT"
] | null | null | null | Dx2D/cParticle.cpp | jjuiddong/Dx2D-Engine | ceaad4661db2af84946da60b528a598f701f11fe | [
"MIT"
] | 1 | 2019-11-26T07:58:45.000Z | 2019-11-26T07:58:45.000Z | #include "StdAfx.h"
#include "cParticle.h"
#include "cDeviceManager.h"
cParticle::cParticle(LPD3DXSPRITE pSprite)
: cSprite(pSprite)
, m_fPassedTime(0.0f)
, m_fLifespan(0.0f)
, m_fStartSize(0.0f)
, m_fFinishSize(0.0f)
, m_fEmitterAngle(0.0f)
, m_fStartRot(0.0f)
, m_fEndRot(0.0f)
, m_fSpeed(0.0f)
, m_vDirection(0,0,0)
... | 20.185567 | 80 | 0.69714 | jjuiddong |
ca77deeb672f63241c5ea023db003d8cc0a21581 | 520 | cpp | C++ | plugins/Ninjas/scratchpad/find_nearest.cpp | rghvdberg/ninjas | 089b7766c3a8c0ab66421c3d6e97e0a06908e4cc | [
"0BSD"
] | 22 | 2017-11-11T10:29:37.000Z | 2021-10-16T16:42:39.000Z | plugins/Ninjas/scratchpad/find_nearest.cpp | rghvdberg/ninjas | 089b7766c3a8c0ab66421c3d6e97e0a06908e4cc | [
"0BSD"
] | 26 | 2017-11-11T08:52:59.000Z | 2018-01-18T11:34:12.000Z | plugins/Ninjas/scratchpad/find_nearest.cpp | rghvdberg/ninjas | 089b7766c3a8c0ab66421c3d6e97e0a06908e4cc | [
"0BSD"
] | 3 | 2017-11-30T20:30:58.000Z | 2018-04-03T19:31:36.000Z | #include <iostream>
#include <vector>
#include <algorithm>
template <typename T, typename U>
auto find_nearest(T&& haystack, U&& needle)
{
auto distance_to_needle_comparator = [&](auto&& a, auto&& b) {
return abs(a - needle) < abs(b - needle);
};
return std::min_element(std::begin(haystack), s... | 23.636364 | 69 | 0.6 | rghvdberg |
ca78933fd78339a655916b36910a5312220263ec | 10,902 | cpp | C++ | gdal/frmts/pcidsk/sdk/segment/vecsegdataindex.cpp | cartosquare/gdal | c2ce185366e6276e77bbebbe9fe509055ed6d0fd | [
"MIT"
] | null | null | null | gdal/frmts/pcidsk/sdk/segment/vecsegdataindex.cpp | cartosquare/gdal | c2ce185366e6276e77bbebbe9fe509055ed6d0fd | [
"MIT"
] | null | null | null | gdal/frmts/pcidsk/sdk/segment/vecsegdataindex.cpp | cartosquare/gdal | c2ce185366e6276e77bbebbe9fe509055ed6d0fd | [
"MIT"
] | 1 | 2021-11-21T02:33:51.000Z | 2021-11-21T02:33:51.000Z | /******************************************************************************
*
* Purpose: Implementation of the VecSegIndex class.
*
* This class is used to manage a vector segment data block index. There
* will be two instances created, one for the record data (sec_record) and
* one for the vertices (sec_ve... | 34.830671 | 81 | 0.436801 | cartosquare |
ca7c17c03f468111787a73a6781f59c8fe223090 | 1,739 | cpp | C++ | oxygine/src/oxygine/Font.cpp | on-three/oxygine-framework | 12afd02e155cfd502523bb76c9dc94ff59cafd53 | [
"MIT"
] | null | null | null | oxygine/src/oxygine/Font.cpp | on-three/oxygine-framework | 12afd02e155cfd502523bb76c9dc94ff59cafd53 | [
"MIT"
] | null | null | null | oxygine/src/oxygine/Font.cpp | on-three/oxygine-framework | 12afd02e155cfd502523bb76c9dc94ff59cafd53 | [
"MIT"
] | null | null | null | #include "Font.h"
#include "core/NativeTexture.h"
namespace oxygine
{
Font::Font() : _ignoreOptions(true), _scale(1.0f), _sdf(false), _size(0), _baselineDistance(0)
{
}
Font::~Font()
{
}
void Font::init(const char* name, int realSize, int baselineDistance, int lineHeight, bool sdf)
{
... | 19.761364 | 99 | 0.525014 | on-three |
ca7fc3404e1bd3f3ba84676bfee89a0dc2975794 | 465 | cpp | C++ | Drakhtar/Telemetria/TrackerEvents/RoundEndEvent.cpp | CarlosMGM/Drakhtar_Telemetria | 551e2e6bd1893f6d5e7d627838a71775ad0f4a41 | [
"MIT"
] | null | null | null | Drakhtar/Telemetria/TrackerEvents/RoundEndEvent.cpp | CarlosMGM/Drakhtar_Telemetria | 551e2e6bd1893f6d5e7d627838a71775ad0f4a41 | [
"MIT"
] | null | null | null | Drakhtar/Telemetria/TrackerEvents/RoundEndEvent.cpp | CarlosMGM/Drakhtar_Telemetria | 551e2e6bd1893f6d5e7d627838a71775ad0f4a41 | [
"MIT"
] | null | null | null | #include "RoundEndEvent.h"
RoundEndEvent::RoundEndEvent() : EndEvent(ROUND_END) {}
std::string RoundEndEvent::toJson() {
std::string str = ",\n";
str += " {\n";
str += R"( "Event Type": "Round End Event",)";
str += "\n" + EndEvent::toJson() + +",\n";
str += R"( "Round#": )" + std::to_string(rou... | 25.833333 | 69 | 0.587097 | CarlosMGM |
ca87365ef7ac69a2e747bf555e49a761fc93db3f | 3,794 | cc | C++ | tests/testapp/testapp_client_test.cc | daverigby/memcached | 197cca992d5f1f8d7382a936969c8db999478c19 | [
"BSD-3-Clause"
] | null | null | null | tests/testapp/testapp_client_test.cc | daverigby/memcached | 197cca992d5f1f8d7382a936969c8db999478c19 | [
"BSD-3-Clause"
] | null | null | null | tests/testapp/testapp_client_test.cc | daverigby/memcached | 197cca992d5f1f8d7382a936969c8db999478c19 | [
"BSD-3-Clause"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, 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
*
* ... | 41.23913 | 79 | 0.649446 | daverigby |
ca8945711b4c8dd60f36fd509d81b45e7179ada7 | 4,057 | cpp | C++ | lib/GxTFT/src/GxCTRL/GxCTRL_ILI9488/GxCTRL_ILI9488.cpp | yuzi40277738/openHASP | e5332a3aad19a399194bcf31add3bcacf3e2c130 | [
"MIT"
] | 191 | 2021-04-02T18:20:34.000Z | 2022-03-27T23:37:22.000Z | lib/GxTFT/src/GxCTRL/GxCTRL_ILI9488/GxCTRL_ILI9488.cpp | yuzi40277738/openHASP | e5332a3aad19a399194bcf31add3bcacf3e2c130 | [
"MIT"
] | 82 | 2021-04-02T14:37:32.000Z | 2022-03-31T23:33:37.000Z | lib/GxTFT/src/GxCTRL/GxCTRL_ILI9488/GxCTRL_ILI9488.cpp | yuzi40277738/openHASP | e5332a3aad19a399194bcf31add3bcacf3e2c130 | [
"MIT"
] | 72 | 2021-04-11T14:46:02.000Z | 2022-03-31T14:33:15.000Z | // created by Jean-Marc Zingg to be the GxCTRL_ILI9488 class for the GxTFT library
// init register values taken from MCUFRIEND_kbv
//
// License: GNU GENERAL PUBLIC LICENSE V3, see LICENSE
//
#include "GxCTRL_ILI9488.h"
#define ILI9488_CASET 0x2A
#define ILI9488_PASET 0x2B
#define ILI9488_RAMWR 0x2C
#define ILI9488_... | 26.00641 | 93 | 0.664284 | yuzi40277738 |
ca8b90f8ccf2d1c7e64d954811cedb4ca3b5e287 | 170 | cpp | C++ | Tests/Tests/all_tests.cpp | CaptainKant/RottenFish | 32f205b3447ddc1f8f569fcf282f5123dbd0f25d | [
"MIT"
] | null | null | null | Tests/Tests/all_tests.cpp | CaptainKant/RottenFish | 32f205b3447ddc1f8f569fcf282f5123dbd0f25d | [
"MIT"
] | null | null | null | Tests/Tests/all_tests.cpp | CaptainKant/RottenFish | 32f205b3447ddc1f8f569fcf282f5123dbd0f25d | [
"MIT"
] | null | null | null | //
// Created by Emmanuel Cervetti on 03/10/2016.
//
#include "loading_check.cpp"
#include "log2_check.cpp"
#include "random_check.cpp"
#include "rottenfish_check.cpp"
| 17 | 46 | 0.741176 | CaptainKant |
ca8fdd50fde80e3f8aa6586bcfb952c5ba5cb9e0 | 1,930 | hpp | C++ | src/RateLimiter.hpp | spebern/cpp-burst-pool-node | 0cbf0759cd166ef7c3f850059180d3a8ceb158eb | [
"MIT"
] | null | null | null | src/RateLimiter.hpp | spebern/cpp-burst-pool-node | 0cbf0759cd166ef7c3f850059180d3a8ceb158eb | [
"MIT"
] | null | null | null | src/RateLimiter.hpp | spebern/cpp-burst-pool-node | 0cbf0759cd166ef7c3f850059180d3a8ceb158eb | [
"MIT"
] | 2 | 2018-09-20T16:11:14.000Z | 2018-12-12T08:46:30.000Z | #pragma once
#include <unordered_map>
#include <string>
#include <memory>
#include <boost/thread/thread.hpp>
#include <stdint.h>
#include <atomic>
#include <chrono>
class Bucket {
private:
std::atomic<double> _zero_time;
public:
Bucket(double zero_time = 0.0) :
_zero_time(zero_time) {};
bool aquir... | 30.15625 | 83 | 0.61658 | spebern |
ca90ab4ab14e36365f6c976a5f4bcd28de40af30 | 2,257 | cpp | C++ | src/utils/LogManager.cpp | pgniewko/elasticshells | 6f307fc86a9657551c82d602af638aa1f3d25f7a | [
"BSD-3-Clause"
] | 1 | 2019-02-16T23:55:29.000Z | 2019-02-16T23:55:29.000Z | src/utils/LogManager.cpp | pgniewko/elasticshells | 6f307fc86a9657551c82d602af638aa1f3d25f7a | [
"BSD-3-Clause"
] | 22 | 2018-11-20T01:35:24.000Z | 2020-05-21T02:25:24.000Z | src/utils/LogManager.cpp | pgniewko/elasticshells | 6f307fc86a9657551c82d602af638aa1f3d25f7a | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (C) 2014, Dominik Gront
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, this list of co... | 42.584906 | 130 | 0.750554 | pgniewko |
ca926beadc631709832830a3bd0023f2b60577f2 | 51,586 | cpp | C++ | opencv/build/modules/rgbd/opencl_kernels_rgbd.cpp | soyyuz/opencv-contrib-ARM64 | 25386df773f88a071532ec69ff541c31e62ec8f2 | [
"Apache-2.0"
] | null | null | null | opencv/build/modules/rgbd/opencl_kernels_rgbd.cpp | soyyuz/opencv-contrib-ARM64 | 25386df773f88a071532ec69ff541c31e62ec8f2 | [
"Apache-2.0"
] | null | null | null | opencv/build/modules/rgbd/opencl_kernels_rgbd.cpp | soyyuz/opencv-contrib-ARM64 | 25386df773f88a071532ec69ff541c31e62ec8f2 | [
"Apache-2.0"
] | 1 | 2022-03-27T03:35:07.000Z | 2022-03-27T03:35:07.000Z | // This file is auto-generated. Do not edit!
#include "opencv2/core.hpp"
#include "cvconfig.h"
#include "opencl_kernels_rgbd.hpp"
#ifdef HAVE_OPENCL
namespace cv
{
namespace ocl
{
namespace rgbd
{
static const char* const moduleName = "rgbd";
struct cv::ocl::internal::ProgramEntry hash_tsdf_oclsrc={moduleName, "ha... | 32.34232 | 133 | 0.64975 | soyyuz |
ca968015d8f8a4ad2308ee04629dec09f1baf55c | 3,109 | cpp | C++ | 3rdparty/webkit/Source/WebCore/bindings/js/ReadableStreamDefaultController.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | null | null | null | 3rdparty/webkit/Source/WebCore/bindings/js/ReadableStreamDefaultController.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | null | null | null | 3rdparty/webkit/Source/WebCore/bindings/js/ReadableStreamDefaultController.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | 1 | 2019-01-25T13:55:25.000Z | 2019-01-25T13:55:25.000Z | /*
* Copyright (C) 2016 Canon Inc.
* Copyright (C) 2016-2017 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted, provided that the following conditions
* are required to be met:
*
* 1. Redistributions of source code must retain t... | 40.907895 | 148 | 0.745577 | mchiasson |
ca98e3df57f42bdc0418d395557fa9adc1abf9e7 | 13,242 | hpp | C++ | include/codegen/include/UnityEngine/RenderTexture.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/RenderTexture.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/RenderTexture.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:28 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: UnityEngine.Texture
#include "UnityEngine/Texture.hpp"
#include "utils/il2cpp-utils.hpp"... | 58.078947 | 336 | 0.771485 | Futuremappermydud |
ca9af8873ded9de65dd6fb8ab5628b0e1d876763 | 3,489 | cpp | C++ | TensorShaderAvxBackend/Convolution/Dense/transposedense.cpp | tk-yoshimura/TensorShaderAVX | de47428efbeaa4df694e4a3584b0397162e711d9 | [
"MIT"
] | null | null | null | TensorShaderAvxBackend/Convolution/Dense/transposedense.cpp | tk-yoshimura/TensorShaderAVX | de47428efbeaa4df694e4a3584b0397162e711d9 | [
"MIT"
] | null | null | null | TensorShaderAvxBackend/Convolution/Dense/transposedense.cpp | tk-yoshimura/TensorShaderAVX | de47428efbeaa4df694e4a3584b0397162e711d9 | [
"MIT"
] | null | null | null | #include "../../TensorShaderAvxBackend.h"
using namespace System;
__forceinline __m128 _mm256d_sum(__m256d hi, __m256d lo) {
__m256d u = _mm256_hadd_pd(lo, hi);
__m256d v = _mm256_hadd_pd(u, _mm256_setzero_pd());
__m128d w = _mm_add_pd(_mm256_extractf128_pd(v, 1), _mm256_castpd256_pd128(v));
return _... | 44.164557 | 145 | 0.658068 | tk-yoshimura |
ca9b0401dbb5383b690a3430e65ded8f96ca0571 | 7,562 | cpp | C++ | src/ChildProcess.Native/Exports.cpp | asmichi/ChildProcess | f40fa535dd475cf45c003265a1e428a30bf5b005 | [
"MIT"
] | 16 | 2019-05-09T01:31:01.000Z | 2022-02-24T12:31:50.000Z | src/ChildProcess.Native/Exports.cpp | asmichi/ChildProcess | f40fa535dd475cf45c003265a1e428a30bf5b005 | [
"MIT"
] | null | null | null | src/ChildProcess.Native/Exports.cpp | asmichi/ChildProcess | f40fa535dd475cf45c003265a1e428a30bf5b005 | [
"MIT"
] | 2 | 2020-12-13T03:08:01.000Z | 2021-01-30T21:54:41.000Z | // Copyright (c) @asmichi (https://github.com/asmichi). Licensed under the MIT License. See LICENCE in the project root for details.
// Interface for the managed implementation.
#include "AncillaryDataSocket.hpp"
#include "Base.hpp"
#include "MiscHelpers.hpp"
#include "Request.hpp"
#include "Service.hpp"
#include "So... | 24.472492 | 154 | 0.640571 | asmichi |
ca9bcae4b24183b5a47599116f02d13eafcca560 | 22,049 | cpp | C++ | 12/moon_simulator.t.cpp | ComicSansMS/AdventOfCode2019 | 7ca0c57bf28ee8edab04c31a36dbd34d66d7f816 | [
"Unlicense"
] | 3 | 2019-12-01T17:37:33.000Z | 2021-12-14T10:12:09.000Z | 12/moon_simulator.t.cpp | ComicSansMS/AdventOfCode2019 | 7ca0c57bf28ee8edab04c31a36dbd34d66d7f816 | [
"Unlicense"
] | null | null | null | 12/moon_simulator.t.cpp | ComicSansMS/AdventOfCode2019 | 7ca0c57bf28ee8edab04c31a36dbd34d66d7f816 | [
"Unlicense"
] | null | null | null | #include <moon_simulator.hpp>
#include <catch.hpp>
#include <sstream>
#include <vector>
TEST_CASE("Moon Simulator")
{
SECTION("Vector3 Construction")
{
CHECK(Vector3().x == 0);
CHECK(Vector3().y == 0);
CHECK(Vector3().z == 0);
CHECK(Vector3(1, 2, 3).x == 1);
CHECK(Vec... | 42.813592 | 81 | 0.42655 | ComicSansMS |
ca9cec86a39aa3b042e2701498c9620a31eac83d | 3,505 | cpp | C++ | test/integ/ABExperimentContextTest.cpp | fengjixuchui/redex | 62e631d5fa1ee466ba5936f68ce3e94a1d5c1263 | [
"MIT"
] | null | null | null | test/integ/ABExperimentContextTest.cpp | fengjixuchui/redex | 62e631d5fa1ee466ba5936f68ce3e94a1d5c1263 | [
"MIT"
] | 1 | 2021-08-21T07:48:54.000Z | 2021-08-21T07:48:54.000Z | test/integ/ABExperimentContextTest.cpp | LaudateCorpus1/redex | 571e4b40aef8a602c9ff02f4be371b060d503cd9 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include "ABExperimentContextImpl.h"
#include "ControlFlow.h"
#include "DexClass.h"
#include "RedexTest.h... | 30.478261 | 89 | 0.669615 | fengjixuchui |
ca9eb80224812236843df2cf2cf9f84ba3b99322 | 10,588 | cc | C++ | modules/planning/planning_base.cc | Ngugisenior/apollo | b752a7fa8d63e398cd8ab70ba12f879c11e1039d | [
"Apache-2.0"
] | null | null | null | modules/planning/planning_base.cc | Ngugisenior/apollo | b752a7fa8d63e398cd8ab70ba12f879c11e1039d | [
"Apache-2.0"
] | null | null | null | modules/planning/planning_base.cc | Ngugisenior/apollo | b752a7fa8d63e398cd8ab70ba12f879c11e1039d | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2018 The Apollo Authors. 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
... | 38.926471 | 80 | 0.694277 | Ngugisenior |
ca9fbff61a38c4235ec462243c039a6f5a9d092a | 1,224 | cpp | C++ | src/hssh/global_topological/global_place.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/hssh/global_topological/global_place.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/hssh/global_topological/global_place.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 23.09434 | 103 | 0.72549 | anuranbaka |
caa0a1713e1b14054ef2f12045dde429df23fb45 | 8,647 | cc | C++ | example/http_c++/http_server.cc | flare-rpc/flare-cpp | c1630c7eb8bae0a0b0cee6ec3f13f1babeaef950 | [
"Apache-2.0"
] | 3 | 2022-01-23T17:55:24.000Z | 2022-03-23T12:55:18.000Z | example/http_c++/http_server.cc | flare-rpc/flare-cpp | c1630c7eb8bae0a0b0cee6ec3f13f1babeaef950 | [
"Apache-2.0"
] | null | null | null | example/http_c++/http_server.cc | flare-rpc/flare-cpp | c1630c7eb8bae0a0b0cee6ec3f13f1babeaef950 | [
"Apache-2.0"
] | null | null | null | // 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 you under the Apache License, Version 2.0 (the
// "License"); you may... | 40.218605 | 94 | 0.588412 | flare-rpc |
caa28412140382609c47ff3d890363bea9a7c4d3 | 8,793 | cpp | C++ | app/src/main/cpp/drizzleDumper.cpp | ChanJLee/ptrace_android | f6c4a3218010c8884ef944ccfb309866fe772e14 | [
"MIT"
] | null | null | null | app/src/main/cpp/drizzleDumper.cpp | ChanJLee/ptrace_android | f6c4a3218010c8884ef944ccfb309866fe772e14 | [
"MIT"
] | null | null | null | app/src/main/cpp/drizzleDumper.cpp | ChanJLee/ptrace_android | f6c4a3218010c8884ef944ccfb309866fe772e14 | [
"MIT"
] | 1 | 2021-07-23T02:53:35.000Z | 2021-07-23T02:53:35.000Z | //
// Created by chan on 2017/12/6.
//
/*
* drizzleDumper Code By Drizzle.Risk
* file: drizzleDumper.c
*/
#include "drizzleDumper.h"
std::vector<memory_region *> result_container;
int fuck_dex(const char *package_name, double wait_times) {
system("su");
if(getuid() != 0) {
LOGI("Device Not root!... | 29.31 | 100 | 0.511543 | ChanJLee |
caa511c164e2846dfa02c78c7cdaa3d3c69cd6a1 | 1,648 | hpp | C++ | Sources/inc/Boss.hpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Sources/inc/Boss.hpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Sources/inc/Boss.hpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | /**
* 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 you under the Apache License, Version 2.0 (the
* "License"); you... | 27.932203 | 64 | 0.716626 | Tifox |
caa5b8e0f748c2d37cdaf8011bd03ed3d5b43976 | 1,543 | cpp | C++ | SoftwareDev/C++/Rho_Algorithm.cpp | impuranjayp/OpenOctober | 1f99483a0cccaccc7c2f0bce7a54deeb2f26ea2d | [
"Apache-2.0"
] | null | null | null | SoftwareDev/C++/Rho_Algorithm.cpp | impuranjayp/OpenOctober | 1f99483a0cccaccc7c2f0bce7a54deeb2f26ea2d | [
"Apache-2.0"
] | null | null | null | SoftwareDev/C++/Rho_Algorithm.cpp | impuranjayp/OpenOctober | 1f99483a0cccaccc7c2f0bce7a54deeb2f26ea2d | [
"Apache-2.0"
] | null | null | null | #include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "time.h"
const int MAX = 100000000;
const int LMT = 10000;
bool isprime[MAX];
void sieve()
{
memset(isprime, true, sizeof(isprime));
int i, k, j;
isprime[1] = false;
for (i = 4; i <= MAX; i+=2)
{
isprim... | 16.072917 | 52 | 0.41024 | impuranjayp |
caa60e41b5aba03f9f72d72c1ed679569f307e5e | 12,162 | cc | C++ | webkit/plugins/ppapi/ppb_transport_impl.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | webkit/plugins/ppapi/ppb_transport_impl.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | webkit/plugins/ppapi/ppb_transport_impl.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.000Z | // Copyright (c) 2012 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 "webkit/plugins/ppapi/ppb_transport_impl.h"
#include "base/message_loop.h"
#include "base/string_util.h"
#include "net/base/io_buffer.h"
#in... | 30.02963 | 80 | 0.703996 | Scopetta197 |
caa76ec145ded3dc8e5285dd2efdacbcf7535f49 | 3,860 | cpp | C++ | tools/ImgTool/ImgTool.cpp | trailofbits/codereason | 5c9d51fe61895ebe29cd9b6d8e60dc49d0162ea2 | [
"MIT"
] | 129 | 2015-06-18T01:24:22.000Z | 2019-05-21T01:00:56.000Z | tools/ImgTool/ImgTool.cpp | zeezocode/codereason | 5c9d51fe61895ebe29cd9b6d8e60dc49d0162ea2 | [
"MIT"
] | 5 | 2015-06-19T05:09:37.000Z | 2015-07-13T18:57:18.000Z | tools/ImgTool/ImgTool.cpp | zeezocode/codereason | 5c9d51fe61895ebe29cd9b6d8e60dc49d0162ea2 | [
"MIT"
] | 28 | 2015-06-18T02:02:03.000Z | 2019-06-28T03:48:15.000Z | #include <getExec.h>
#include <boost/program_options/config.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/regex.hpp>
using namespace boost;
using namespace std;
// parses the arch from the... | 28.382353 | 83 | 0.527979 | trailofbits |
caa7720cf58d7a104c82067b4594b30a42332992 | 3,750 | cpp | C++ | src/Window/Mouse.cpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | src/Window/Mouse.cpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | src/Window/Mouse.cpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | #include <Mouse.hpp>
Mouse::Mouse()
: m_x(0),
m_y(0),
m_inWindow(false),
m_leftPressed(false),
m_middlePressed(false),
m_rightPressed(false),
m_wheelDeltaCarry(0),
m_rawEnabled(false) {}
std::pair<int, int> Mouse::GetPos() const noexcept {
return { m_x, m_y };
}
int Mouse::GetPosX() const no... | 20.604396 | 71 | 0.6736 | razerx100 |
caa85bbd435f74ae2f87361a07258a877ba98c35 | 1,096 | cpp | C++ | src/ivf/cone.cpp | jonaslindemann/ivf2 | 67bee6c36b5824d045957ea2b223bc0595d59b47 | [
"MIT"
] | 1 | 2021-09-12T12:10:19.000Z | 2021-09-12T12:10:19.000Z | src/ivf/cone.cpp | jonaslindemann/ivf2 | 67bee6c36b5824d045957ea2b223bc0595d59b47 | [
"MIT"
] | null | null | null | src/ivf/cone.cpp | jonaslindemann/ivf2 | 67bee6c36b5824d045957ea2b223bc0595d59b47 | [
"MIT"
] | null | null | null | #include <ivf/cone.h>
#include <generator/ConeMesh.hpp>
using namespace ivf;
using namespace generator;
Cone::Cone(double radius, double size, int slices, int segments, double start, double sweep)
:m_radius(radius),
m_size(size),
m_slices(slices),
m_segments(segments),
m_start(start),
m_... | 23.826087 | 116 | 0.693431 | jonaslindemann |
caa9dbebab00fb575b944a72f769b8e389c1b98b | 2,558 | cc | C++ | third_party/webrtc/src/chromium/src/third_party/mojo/src/mojo/edk/system/incoming_endpoint.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/chromium/src/third_party/mojo/src/mojo/edk/system/incoming_endpoint.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2021-05-05T11:11:31.000Z | 2021-05-05T11:11:31.000Z | third_party/webrtc/src/chromium/src/third_party/mojo/src/mojo/edk/system/incoming_endpoint.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | // Copyright 2014 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 "third_party/mojo/src/mojo/edk/system/incoming_endpoint.h"
#include "base/logging.h"
#include "third_party/mojo/src/mojo/edk/system/channel_endp... | 30.819277 | 80 | 0.74785 | bopopescu |
caaa38fe5b8afff309e02056ead5e2c6d1ca38eb | 574 | cpp | C++ | code/save_before/13.cpp | EGyeom/BlogMaker | 7b319a19bb23786c55a0539be86e1c3246e62240 | [
"MIT"
] | 1 | 2021-06-03T13:44:27.000Z | 2021-06-03T13:44:27.000Z | code/save_before/13.cpp | EGyeom/BlogMaker | 7b319a19bb23786c55a0539be86e1c3246e62240 | [
"MIT"
] | null | null | null | code/save_before/13.cpp | EGyeom/BlogMaker | 7b319a19bb23786c55a0539be86e1c3246e62240 | [
"MIT"
] | null | null | null | // 두 정수 a, b가 주어졌을 때 a와 b 사이에 속한 모든 정수의 합을 리턴하는 함수, solution을 완성하세요.
// 예를 들어 a = 3, b = 5인 경우, 3 + 4 + 5 = 12이므로 12를 리턴합니다.
// 제한 조건
// a와 b가 같은 경우는 둘 중 아무 수나 리턴하세요.
// a와 b는 -10,000,000 이상 10,000,000 이하인 정수입니다.
// a와 b의 대소관계는 정해져있지 않습니다.
// 입출력 예
// a b return
// 3 5 12
// 3 3 3
// 5 3 12
#include <stdio.h>
#includ... | 18.516129 | 68 | 0.503484 | EGyeom |
caab14b7f57a17bd957577fe5e79794b26f09e20 | 1,668 | cpp | C++ | ysu/lib/rate_limiting.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/lib/rate_limiting.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/lib/rate_limiting.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | #include <ysu/lib/locks.hpp>
#include <ysu/lib/rate_limiting.hpp>
#include <ysu/lib/utility.hpp>
#include <limits>
ysu::rate::token_bucket::token_bucket (size_t max_token_count_a, size_t refill_rate_a)
{
// A token count of 0 indicates unlimited capacity. We use 1e9 as
// a sentinel, allowing largest burst to still... | 30.888889 | 146 | 0.736811 | lik2129 |
caab5e211038363d29802d4b1317bb36b3f1e0f4 | 563 | cpp | C++ | BOJ/boj1697.cpp | estela19/PS | 0cefc78cf6b98ad1e3e9086ebf07b61b28314f26 | [
"MIT"
] | null | null | null | BOJ/boj1697.cpp | estela19/PS | 0cefc78cf6b98ad1e3e9086ebf07b61b28314f26 | [
"MIT"
] | null | null | null | BOJ/boj1697.cpp | estela19/PS | 0cefc78cf6b98ad1e3e9086ebf07b61b28314f26 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<queue>
#include<vector>
#include<utility>
#include<string.h>
int N, K;
int dp[100001];
int move(int i);
int main() {
std::cin >> N >> K;
memset(dp, -1, sizeof(dp));
dp[N] = 0;
move(K);
std::cout << dp[K];
}
int move(int i) {
if (dp[i] != -1)... | 15.638889 | 55 | 0.463588 | estela19 |
caab8d6a9e1e00db9b7beaac165a23f5fbec7cff | 5,081 | cpp | C++ | pxr/imaging/hgiGL/diagnostic.cpp | stephenp24/USD | faed18ce62c8736b02413635b584a2f637156bad | [
"Apache-2.0"
] | 3,680 | 2016-07-26T18:28:11.000Z | 2022-03-31T09:55:05.000Z | pxr/imaging/hgiGL/diagnostic.cpp | stephenp24/USD | faed18ce62c8736b02413635b584a2f637156bad | [
"Apache-2.0"
] | 1,759 | 2016-07-26T19:19:59.000Z | 2022-03-31T21:24:00.000Z | pxr/imaging/hgiGL/diagnostic.cpp | stephenp24/USD | faed18ce62c8736b02413635b584a2f637156bad | [
"Apache-2.0"
] | 904 | 2016-07-26T18:33:40.000Z | 2022-03-31T09:55:16.000Z | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 29.034286 | 78 | 0.650069 | stephenp24 |
caad2462e78f3240edc880601ad4b5665aee7300 | 2,947 | hpp | C++ | core/src/api_impl/BigIntImpl.hpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | core/src/api_impl/BigIntImpl.hpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | core/src/api_impl/BigIntImpl.hpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | /*
*
* BigIntImpl
* ledger-core
*
* Created by Pierre Pollastri on 04/11/2016.
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Ledger
*
* 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 So... | 37.782051 | 103 | 0.680014 | kodxana |
caaeda5398432aa0d6b25f1e45394e0dc2a92fd0 | 44,238 | cpp | C++ | third_party/houdini/gusd/GT_Utils.cpp | mistafunk/USD | be1a80f8cb91133ac75e1fc2a2e1832cd10d91c8 | [
"BSD-2-Clause"
] | 2 | 2020-02-17T11:13:02.000Z | 2020-02-17T14:51:01.000Z | third_party/houdini/gusd/GT_Utils.cpp | mistafunk/USD | be1a80f8cb91133ac75e1fc2a2e1832cd10d91c8 | [
"BSD-2-Clause"
] | null | null | null | third_party/houdini/gusd/GT_Utils.cpp | mistafunk/USD | be1a80f8cb91133ac75e1fc2a2e1832cd10d91c8 | [
"BSD-2-Clause"
] | null | null | null | //
// Copyright 2017 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 33.615502 | 89 | 0.602988 | mistafunk |
caaf57fc051ab50314547c24263f0b5c4cb07525 | 1,267 | hpp | C++ | mars_common/include/mars_common/behavior/Utils.hpp | ramp-eu/Motion_Task_Planner | f2a2b5af7ec721c3a965763bacecbee98d39f5b3 | [
"Apache-2.0"
] | 1 | 2021-03-01T08:53:52.000Z | 2021-03-01T08:53:52.000Z | mars_common/include/mars_common/behavior/Utils.hpp | ramp-eu/Motion_Task_Planner | f2a2b5af7ec721c3a965763bacecbee98d39f5b3 | [
"Apache-2.0"
] | null | null | null | mars_common/include/mars_common/behavior/Utils.hpp | ramp-eu/Motion_Task_Planner | f2a2b5af7ec721c3a965763bacecbee98d39f5b3 | [
"Apache-2.0"
] | 1 | 2021-03-24T14:03:53.000Z | 2021-03-24T14:03:53.000Z | // Copyright 2020 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https:www.apache.org/licenses/LICENSE-2.0... | 24.365385 | 87 | 0.740331 | ramp-eu |
cab07ed8404b350afd07da4e95586d614cdaa107 | 870 | hpp | C++ | include/miok/package.hpp | michaelbrockus/bunny-package-cpp | 50774a65dad10dda3e61f803898659a6eca5ec58 | [
"Apache-2.0"
] | null | null | null | include/miok/package.hpp | michaelbrockus/bunny-package-cpp | 50774a65dad10dda3e61f803898659a6eca5ec58 | [
"Apache-2.0"
] | null | null | null | include/miok/package.hpp | michaelbrockus/bunny-package-cpp | 50774a65dad10dda3e61f803898659a6eca5ec58 | [
"Apache-2.0"
] | null | null | null | //
// file: package.hpp
// author: Michael Brockus
// gmail: <michaelbrockus@gmail.com>
#ifndef MIOK_PACKAGE_HPP
#define MIOK_PACKAGE_HPP
//
// Macros to control the visibility of functions provided by this package
//
#ifdef BUILDING_MIOK_PACKAGE
#define MIOK_PUBLIC __attribute__((visibility("default")))
#else
#defin... | 24.857143 | 73 | 0.726437 | michaelbrockus |
cab2ae2ee206a2b393c0cd3a1fec3c43a3b49812 | 21,725 | hpp | C++ | lib/core/include/key_value_proxy.hpp | BuildJet/irods | d38f3e83d9b16494c42ceb8915dbc7af68ee58d9 | [
"BSD-3-Clause"
] | 1 | 2020-05-31T17:00:37.000Z | 2020-05-31T17:00:37.000Z | lib/core/include/key_value_proxy.hpp | rpatil524/irods | 0d992aaedca24afffc95735fd7c5e9f37b4648bc | [
"BSD-3-Clause"
] | null | null | null | lib/core/include/key_value_proxy.hpp | rpatil524/irods | 0d992aaedca24afffc95735fd7c5e9f37b4648bc | [
"BSD-3-Clause"
] | 2 | 2015-10-29T03:37:30.000Z | 2015-12-16T15:09:14.000Z | #ifndef IRODS_KEY_VALUE_PROXY_HPP
#define IRODS_KEY_VALUE_PROXY_HPP
#include "objInfo.h"
#include "rcMisc.h"
#include "lifetime_manager.hpp"
#include <algorithm>
#include <limits>
#include <string>
#include <string_view>
struct KeyValPair;
namespace irods::experimental {
/// \brief Tag which indicates that a m... | 37.521589 | 116 | 0.526951 | BuildJet |
cab2eadca09249fd737bc573bef98b810765ddec | 164,513 | cxx | C++ | PWGCF/FEMTOSCOPY/PLamAnalysisPP/AliAnalysisTaskPLFemto.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | PWGCF/FEMTOSCOPY/PLamAnalysisPP/AliAnalysisTaskPLFemto.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | PWGCF/FEMTOSCOPY/PLamAnalysisPP/AliAnalysisTaskPLFemto.cxx | wiechula/AliPhysics | 6c5c45a5c985747ee82328d8fd59222b34529895 | [
"BSD-3-Clause"
] | null | null | null | /*
**************************************************************************
* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributo... | 39.470489 | 206 | 0.699015 | wiechula |
cabb05e177d03fab947544c16f4eda8dcfb9ac71 | 1,319 | cpp | C++ | test/random/module/math/cosd.cpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | test/random/module/math/cosd.cpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | test/random/module/math/cosd.cpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#in... | 32.975 | 100 | 0.54511 | clayne |
cabe427a88dc37e6fb397f850445d187c81bc709 | 2,578 | hpp | C++ | src/mlpack/methods/ann/activation_functions/tanh_exponential_function.hpp | laszlzso/mlpack | 52e123e56792638c957d0229b001ae14a9e94a75 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2019-07-09T21:52:01.000Z | 2020-07-29T19:14:33.000Z | src/mlpack/methods/ann/activation_functions/tanh_exponential_function.hpp | laszlzso/mlpack | 52e123e56792638c957d0229b001ae14a9e94a75 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2020-06-21T17:36:46.000Z | 2020-08-07T07:16:01.000Z | src/mlpack/methods/ann/activation_functions/tanh_exponential_function.hpp | laszlzso/mlpack | 52e123e56792638c957d0229b001ae14a9e94a75 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file methods/ann/activation_functions/tanh_exponential_function.hpp
* @author Mayank Raj
*
* Definition and implementation of the Tanh exponential function.
*
* For more information see the following paper
*
* @code
* @misc{The Institution of Engineering and Technology 2015 ,
* title = {TanhExp: A ... | 26.57732 | 114 | 0.658262 | laszlzso |
cabfa7f78fc24b397244116e491be2fb8227f008 | 5,127 | cc | C++ | design_patterns/algorithms/algorithm.cc | fetaxyu/design-patterns | 4e1a4d07ab928ca72ec370608cadf0824c41915e | [
"Apache-2.0"
] | null | null | null | design_patterns/algorithms/algorithm.cc | fetaxyu/design-patterns | 4e1a4d07ab928ca72ec370608cadf0824c41915e | [
"Apache-2.0"
] | null | null | null | design_patterns/algorithms/algorithm.cc | fetaxyu/design-patterns | 4e1a4d07ab928ca72ec370608cadf0824c41915e | [
"Apache-2.0"
] | null | null | null | /* Copyleft 2018 The design-patterns Authors. Some Rights Reserved.
@Author: fetaxyu
@Date: 2018-11-14
Email: fetaxyu@gmail.com
===============================================================*/
#include <iostream>
#include "design_patterns/algorithms/algorithm.h"
namespace solution {
bool Find(int target, std::vec... | 17.989474 | 77 | 0.55237 | fetaxyu |
cac1147091236a13651345a043bd327a58d9b656 | 488 | cpp | C++ | problems/codeforces/1260/c-infinite-fence/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codeforces/1260/c-infinite-fence/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codeforces/1260/c-infinite-fence/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define long int64_t
// *****
auto solve() {
long r, b, k;
cin >> r >> b >> k;
long g = gcd(r, b);
if (r > (k - 1) * b + g || b > (k - 1) * r + g) {
return false;
} else {
return true;
}
}
// *****
int main() {
ios::sync_wit... | 15.741935 | 53 | 0.428279 | brunodccarvalho |
cac29ccbd066c0503ed280bd4b47577e260c6605 | 6,422 | cpp | C++ | src/TextField.cpp | moebiussurfing/ofxSimpleFloatingGui | 67777c46c9aea920a81bc7510be69b1865adb390 | [
"MIT"
] | 4 | 2019-08-21T05:01:51.000Z | 2020-05-10T21:50:32.000Z | src/TextField.cpp | moebiussurfing/ofxSimpleFloatingGui | 67777c46c9aea920a81bc7510be69b1865adb390 | [
"MIT"
] | null | null | null | src/TextField.cpp | moebiussurfing/ofxSimpleFloatingGui | 67777c46c9aea920a81bc7510be69b1865adb390 | [
"MIT"
] | 1 | 2020-05-08T19:49:45.000Z | 2020-05-08T19:49:45.000Z | #include "TextField.h"
TextField::TextField()
{
}
/// setup methods
void TextField::setup(ofTrueTypeFont _stringFont){
setup(10, _stringFont);
}
void TextField::setup(int _maxChar, ofTrueTypeFont _stringFont){
setup(" ", _maxChar, _stringFont);
}
void TextField::setup(string _displayedString, int _maxChar,... | 30.436019 | 153 | 0.605263 | moebiussurfing |
cac3badb523262663820b93e2527588f49be4923 | 5,311 | cc | C++ | mace/ops/arm/fp32/activation.cc | WeipengChan/mace | a610d506592892007be538e71ca1daef07c7857b | [
"Apache-2.0"
] | 1 | 2018-12-19T02:48:20.000Z | 2018-12-19T02:48:20.000Z | mace/ops/arm/fp32/activation.cc | WeipengChan/mace | a610d506592892007be538e71ca1daef07c7857b | [
"Apache-2.0"
] | null | null | null | mace/ops/arm/fp32/activation.cc | WeipengChan/mace | a610d506592892007be538e71ca1daef07c7857b | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The MACE Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 28.86413 | 79 | 0.555639 | WeipengChan |
cac3c63af218479a2bac860d436966698c990997 | 5,114 | cpp | C++ | EOSAI/EOSAIDesire2.cpp | BritClousing/EOSAI | c147500d223c361dce2e32d6547aaa234c07d472 | [
"MIT"
] | 1 | 2019-05-22T12:41:38.000Z | 2019-05-22T12:41:38.000Z | EOSAI/EOSAIDesire2.cpp | BritClousing/EOSAI | c147500d223c361dce2e32d6547aaa234c07d472 | [
"MIT"
] | null | null | null | EOSAI/EOSAIDesire2.cpp | BritClousing/EOSAI | c147500d223c361dce2e32d6547aaa234c07d472 | [
"MIT"
] | null | null | null |
#include "stdafx.h"
#include "EOSAIDesire2.h"
#include "EOSAIUnitTemplate.h"
//#include "WorldDescPlayer.h"
//#include "WorldDescServer.h"
//#include "WorldDescPlayerProxy.h"
#include "EOSAIBrain.h"
#include "EOSAICommonData.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#en... | 27.945355 | 133 | 0.779625 | BritClousing |