hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 77k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68881e7d66e313cd139022a82a3a89cbcf64aefe | 2,911 | cpp | C++ | deps/vision/src/vca_sample_echostring_server/vca_sample_echostring_server.cpp | MichaelJCaruso/vision-xa-nodejs-connect | ef13ccc2730bf1db07cb44106dfcfd020d843d82 | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/vca_sample_echostring_server/vca_sample_echostring_server.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/vca_sample_echostring_server/vca_sample_echostring_server.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** Vca Sample Server *****/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
******************/
/************************
***** Supporting *****
************************/
#include "Vca_VOneAppMain_.h"
#include "Vca_VServerApplic... | 21.248175 | 96 | 0.40055 |
68899bb54200e7df5bcd9314f946c07d8e684b49 | 684 | hpp | C++ | 508 - A4-spbspu-labs-2020-904-3/2/common/shape.hpp | NekoSilverFox/CPP | c6797264fceda4a65ac3452acca496e468d1365a | [
"Apache-2.0"
] | 5 | 2020-02-08T20:57:21.000Z | 2021-12-23T06:24:41.000Z | 508 - A4-spbspu-labs-2020-904-3/2/common/shape.hpp | NekoSilverFox/CPP | c6797264fceda4a65ac3452acca496e468d1365a | [
"Apache-2.0"
] | 2 | 2020-03-02T14:44:55.000Z | 2020-11-11T16:25:33.000Z | 508 - A4-spbspu-labs-2020-904-3/2/common/shape.hpp | NekoSilverFox/CPP | c6797264fceda4a65ac3452acca496e468d1365a | [
"Apache-2.0"
] | 4 | 2020-09-27T17:30:03.000Z | 2022-02-16T09:48:23.000Z | #ifndef SHAPE_H
#define SHAPE_H
#include <memory>
namespace gadzhiev
{
struct point_t;
struct rectangle_t;
class Shape
{
public:
typedef std::shared_ptr<const Shape> ConstShapePtr;
typedef std::shared_ptr<Shape> ShapePtr;
virtual ~Shape() = default;
virtual double getArea() const ... | 21.375 | 59 | 0.685673 |
688a49523e06e10ee9fc273c7239431b67069106 | 911 | cpp | C++ | Libraries/plist/Sources/Format/ABPCommon.cpp | kolinkrewinkel/xcbuild | 05ac2e574d96a3edff08df4d87b49f39931043f1 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | Libraries/plist/Sources/Format/ABPCommon.cpp | kolinkrewinkel/xcbuild | 05ac2e574d96a3edff08df4d87b49f39931043f1 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | Libraries/plist/Sources/Format/ABPCommon.cpp | kolinkrewinkel/xcbuild | 05ac2e574d96a3edff08df4d87b49f39931043f1 | [
"BSD-2-Clause-NetBSD"
] | null | null | null | /**
Copyright (c) 2015-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
*/
#include <plist/Format... | 23.973684 | 76 | 0.641054 |
688bad96be36f936d263c3eba93553365283e53f | 4,767 | hpp | C++ | src/controller/DualAdvancedRunner.hpp | psettle/podracing | 1a9c816bf8bb51910d0d2aa95c7c155553d9435e | [
"MIT"
] | 1 | 2021-09-25T18:18:14.000Z | 2021-09-25T18:18:14.000Z | src/controller/DualAdvancedRunner.hpp | psettle/podracing | 1a9c816bf8bb51910d0d2aa95c7c155553d9435e | [
"MIT"
] | null | null | null | src/controller/DualAdvancedRunner.hpp | psettle/podracing | 1a9c816bf8bb51910d0d2aa95c7c155553d9435e | [
"MIT"
] | null | null | null |
#ifndef DUALADVANCEDRUNNER_HPP
#define DUALADVANCEDRUNNER_HPP
#include <math.h>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include "GameIO.hpp"
#include "IPlayer.hpp"
#include "NeuralNetwork.hpp"
#include "Vec2.hpp"
class DualAdvancedRunner : public IPlayer {
public:
static unsign... | 32.428571 | 93 | 0.696665 |
68932b764c381906b5d31e306e63332ed7f38ca8 | 10,499 | cpp | C++ | drishti/camerapathnode.cpp | shouhengli/drishti | 46558d12adcc1d365b7e2125d28190e3be2181c3 | [
"MIT"
] | 118 | 2016-11-01T06:01:44.000Z | 2022-03-30T05:20:19.000Z | drishti/camerapathnode.cpp | shouhengli/drishti | 46558d12adcc1d365b7e2125d28190e3be2181c3 | [
"MIT"
] | 56 | 2016-09-30T09:29:36.000Z | 2022-03-31T17:15:32.000Z | drishti/camerapathnode.cpp | shouhengli/drishti | 46558d12adcc1d365b7e2125d28190e3be2181c3 | [
"MIT"
] | 28 | 2016-07-31T23:48:51.000Z | 2021-05-25T05:32:47.000Z | #include "camerapathnode.h"
CameraPathNode::CameraPathNode(Vec pos, Quaternion rot)
{
m_mf = new ManipulatedFrame();
// disable camera manipulation by mouse
m_mf->removeFromMouseGrabberPool();
m_mf->setPosition(pos);
m_mf->setOrientation(rot);
m_constraints = new LocalConstraint();
m_constraints->set... | 25.057279 | 83 | 0.590151 |
689f57399ac5c28a6bed7bbb043bcacfc45adc8d | 1,023 | cpp | C++ | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch03/Exercise3.36.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch03/Exercise3.36.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch03/Exercise3.36.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | // Exercise3.36.cpp
// Ad
// Write a program to compare two arrays for equality, then write a similar to compare vectors.
#include <iostream>
#include <vector>
#include <iterator>
using std::cin;
using std::cout;
using std::endl;
int main()
{
// to compare two arrays
int arr1[10]{}, arr2[10]{};
int *p... | 20.058824 | 96 | 0.475073 |
68a223fcb0bad703e33b65855153863e1d03fe20 | 542 | cpp | C++ | test/main.cpp | chenxu2048/DockerClientpp | 81792fb0d84028b059983e1a08f12edf6e8c6b32 | [
"MIT"
] | 5 | 2017-05-23T16:32:15.000Z | 2019-02-16T14:27:51.000Z | test/main.cpp | chenxu2048/DockerClientpp | 81792fb0d84028b059983e1a08f12edf6e8c6b32 | [
"MIT"
] | 5 | 2019-07-13T23:14:52.000Z | 2019-07-16T20:46:53.000Z | test/main.cpp | fedemengo/DockerClientpp | a83a1a992f081b5d25dccc2b9530308105e5c9c4 | [
"MIT"
] | 4 | 2017-11-14T14:00:58.000Z | 2020-07-23T07:16:01.000Z | #include "gtest/gtest.h"
class GlobalEnv : public ::testing::Environment {
public:
virtual void SetUp() {
if (std::system("docker pull busybox:1.26")) {
throw std::runtime_error("Cannot pull busybox");
}
std::system("docker run -dt --name test busybox:1.26 > /dev/null 2>&1");
}
virtual void Te... | 25.809524 | 76 | 0.645756 |
68a49f934efc4cfdc2f5e354471ec32d42b79391 | 10,418 | cpp | C++ | crud-example/request_processor.cpp | Stiffstream/restinio-crud-example | 3e3e3a859b9743a870b20dda7da14360ccdae3ce | [
"BSD-3-Clause"
] | 4 | 2019-10-07T21:23:55.000Z | 2020-02-05T16:10:57.000Z | crud-example/request_processor.cpp | Stiffstream/restinio-crud-example | 3e3e3a859b9743a870b20dda7da14360ccdae3ce | [
"BSD-3-Clause"
] | 1 | 2020-02-04T05:14:23.000Z | 2020-02-04T09:45:17.000Z | crud-example/request_processor.cpp | Stiffstream/restinio-crud-example | 3e3e3a859b9743a870b20dda7da14360ccdae3ce | [
"BSD-3-Clause"
] | 1 | 2020-02-05T16:11:00.000Z | 2020-02-05T16:11:00.000Z | #include "request_processor.hpp"
#include <restinio/helpers/http_field_parsers/content-type.hpp>
#include <restinio/helpers/file_upload.hpp>
#include <fmt/format.h>
#include <stdexcept>
namespace crud_example
{
namespace errors
{
const int unknow_error = -1;
const int json_dto_error = 1;
const int sqlite_error = ... | 25.98005 | 93 | 0.727683 |
68a4dc075d7caec1988290fd3a4cc07c184c3c83 | 862 | cpp | C++ | Regex/Problem27/main.cpp | akaseon/ModernCppChallengeStudy | 1630f8cf5b3656171ee656738a908619cee6e718 | [
"MIT"
] | null | null | null | Regex/Problem27/main.cpp | akaseon/ModernCppChallengeStudy | 1630f8cf5b3656171ee656738a908619cee6e718 | [
"MIT"
] | null | null | null | Regex/Problem27/main.cpp | akaseon/ModernCppChallengeStudy | 1630f8cf5b3656171ee656738a908619cee6e718 | [
"MIT"
] | null | null | null | //#include <gsl/gsl>
#include <vector>
#include <string>
#include <iostream>
std::vector<std::string> splittingString( std::string aFrom,
std::string aDelimiter )
{
std::vector<std::string> sTo;
char * sToken = NULL;
sToken = std::strtok... | 23.297297 | 68 | 0.533643 |
68a4e871e0fe4dbd179de98e9eb77f3df31dcdd0 | 795 | cpp | C++ | Game/Sources/State/PausedState.cpp | YvesHenri/Chico | e583a9995cd6e26fe198b21b9c7996c3199c4ff3 | [
"MIT"
] | 6 | 2017-01-09T13:19:56.000Z | 2021-11-15T11:18:35.000Z | Game/Sources/State/PausedState.cpp | YvesHenri/Chico | e583a9995cd6e26fe198b21b9c7996c3199c4ff3 | [
"MIT"
] | null | null | null | Game/Sources/State/PausedState.cpp | YvesHenri/Chico | e583a9995cd6e26fe198b21b9c7996c3199c4ff3 | [
"MIT"
] | null | null | null | #include "../../Includes/State/PausedState.h"
PausedState::PausedState()
{
overlap = sf::RectangleShape(sf::Vector2f(800.f, 600.f));
overlap.setFillColor(sf::Color(0, 0, 0, 185));
}
void PausedState::onEnter()
{
WARN("-----> Paused");
}
void PausedState::onLeave()
{
WARN("<----- Paused");
}
void PausedState::dr... | 19.875 | 79 | 0.68805 |
68ae2dba87fdef7d2b77799274d10e9e024b8dd3 | 1,280 | cpp | C++ | Onegin/sorting.cpp | Great1ng/Huawei_Tasks | 21f855f30df9806f81d5cedf8cd314a633174be1 | [
"CC0-1.0"
] | null | null | null | Onegin/sorting.cpp | Great1ng/Huawei_Tasks | 21f855f30df9806f81d5cedf8cd314a633174be1 | [
"CC0-1.0"
] | null | null | null | Onegin/sorting.cpp | Great1ng/Huawei_Tasks | 21f855f30df9806f81d5cedf8cd314a633174be1 | [
"CC0-1.0"
] | null | null | null | #include "sorting.h"
void mergesort(void *base, size_t count, size_t type, comparator comp) {
if (count == 1) return;
char *bt_base = (char *) base;
size_t lcount = count / 2;
size_t rcount = count - lcount;
mergesort(bt_base, lcount, type, comp);
mergesort(bt_base + lcount * type, rcount, t... | 26.122449 | 101 | 0.575781 |
68b7fb59d66d1da145b5b6fb694765973d6465ee | 607 | hpp | C++ | src/Missile.hpp | michal-tangri/sgd-game | aa4cf5704a9ca75b7b9c06b6096ae707607a8539 | [
"MIT"
] | null | null | null | src/Missile.hpp | michal-tangri/sgd-game | aa4cf5704a9ca75b7b9c06b6096ae707607a8539 | [
"MIT"
] | null | null | null | src/Missile.hpp | michal-tangri/sgd-game | aa4cf5704a9ca75b7b9c06b6096ae707607a8539 | [
"MIT"
] | null | null | null | #ifndef __MISSILE_CLASS_HPP__
#define __MISSILE_CLASS_HPP__
#include "GameObject.hpp"
#include "Tile.hpp"
#include <array>
class Missile : public GameObject {
public:
enum MissileOrigin {
MISSILE_ORIGIN_PLAYER,
MISSILE_ORIGIN_ENEMY
};
Missile(MissileOrigin origin);
void update(dou... | 19.580645 | 89 | 0.723229 |
68b9e96bc998aa6ee10b2b90ee56dcf8bcade8f1 | 3,436 | cpp | C++ | src/homie.cpp | dgomes/homie | 9f92756be5c2b95933d31780c9a9608d4ec5a2b0 | [
"MIT"
] | 4 | 2018-08-23T11:35:28.000Z | 2020-11-19T00:25:19.000Z | src/homie.cpp | dgomes/homie | 9f92756be5c2b95933d31780c9a9608d4ec5a2b0 | [
"MIT"
] | null | null | null | src/homie.cpp | dgomes/homie | 9f92756be5c2b95933d31780c9a9608d4ec5a2b0 | [
"MIT"
] | 1 | 2020-03-22T22:09:14.000Z | 2020-03-22T22:09:14.000Z | #include "homie.h"
Homie::Homie(PubSubClient &client, String deviceID) {
this->_mqttClient = &client;
this->deviceID = deviceID;
this->nodes = NULL;
this->nodes_size = 0;
}
Homie::Homie(PubSubClient &client, String deviceID, const char *nodes[], size_t nodes_size) {
this->_mqttClient = &client;
... | 30.40708 | 105 | 0.630384 |
68ba56c90c62dc771c66c7fe4bfea2ed7d3a1b5a | 8,576 | cpp | C++ | src/hyposystem.cpp | HypoModel/HypoModBase | 29572f98202780c9a8b25cffe80761fedb35aa1a | [
"MIT"
] | null | null | null | src/hyposystem.cpp | HypoModel/HypoModBase | 29572f98202780c9a8b25cffe80761fedb35aa1a | [
"MIT"
] | null | null | null | src/hyposystem.cpp | HypoModel/HypoModBase | 29572f98202780c9a8b25cffe80761fedb35aa1a | [
"MIT"
] | null | null | null |
#include "hypomodel.h"
//#include "hypomain.h"
//#include "hypopanels.h"
OptionPanel::OptionPanel(HypoMain *main, const wxString & title)
: wxDialog(NULL, -1, title, wxDefaultPosition, wxSize(450, 450),
wxFRAME_FLOAT_ON_PARENT | wxFRAME_TOOL_WINDOW | wxCAPTION | wxSYSTEM_MENU | wxCLOSE_BOX | wxRESIZE_BORDER)
{
i... | 35.585062 | 131 | 0.731343 |
68be163aad621d1fd1d5c3538565f5f8d5c1430c | 122,962 | cpp | C++ | CELLULARDlg.cpp | yantis/amps-cellular-interceptor | fff85cf5e4ba01a916a20f75a29d7ce8cc4a3df0 | [
"MIT"
] | 4 | 2018-02-12T15:18:43.000Z | 2021-03-08T21:35:31.000Z | CELLULARDlg.cpp | yantis/amps-cellular-interceptor | fff85cf5e4ba01a916a20f75a29d7ce8cc4a3df0 | [
"MIT"
] | null | null | null | CELLULARDlg.cpp | yantis/amps-cellular-interceptor | fff85cf5e4ba01a916a20f75a29d7ce8cc4a3df0 | [
"MIT"
] | null | null | null | // CELLULARDlg.cpp : implementation file
//
#include "stdafx.h"
#include "CELLULAR.h"
#include "CELLULARDlg.h"
#include <sys/types.h>
#include <sys/stat.h>
/*
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
*/
#include "supercom\supercom.h"
#inclu... | 26.806627 | 190 | 0.587279 |
68c3732c72577fd424f41c28144aca72ff4e6b24 | 1,950 | cpp | C++ | src/Elements/emitter.cpp | attilabibok/epanet-dev | 91d87377b8462cf0a12cb55ea0554951fb586993 | [
"MIT"
] | 1 | 2017-12-21T19:40:35.000Z | 2017-12-21T19:40:35.000Z | src/Elements/emitter.cpp | attilabibok/epanet-dev | 91d87377b8462cf0a12cb55ea0554951fb586993 | [
"MIT"
] | null | null | null | src/Elements/emitter.cpp | attilabibok/epanet-dev | 91d87377b8462cf0a12cb55ea0554951fb586993 | [
"MIT"
] | null | null | null | /* EPANET 3
*
* Copyright (c) 2016 Open Water Analytics
* Distributed under the MIT License (see the LICENSE file for details).
*
*/
#include "emitter.h"
#include "junction.h"
#include "pattern.h"
#include "Core/network.h"
#include <cmath>
using namespace std;
//-------------------------------------------------... | 24.375 | 82 | 0.507692 |
68c4415146bf139aac80e5779108f3bd23f4fefa | 10,585 | cpp | C++ | src/arboretum/stPartitionNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | src/arboretum/stPartitionNode.cpp | marcosivni/arboretum | 329147b2d147903bc8e527fc3dcfe2349141725a | [
"Apache-2.0"
] | null | null | null | src/arboretum/stPartitionNode.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... | 32.469325 | 91 | 0.559565 |
68c503a54d6a500daeb69a026d88a4463a5e20eb | 6,845 | cpp | C++ | src/PinholePCLCam.cpp | HWiese1980/merge_depth_cam | 974008b6b1f84d516a0f74dfd3832bfa55ef163d | [
"BSD-3-Clause"
] | 16 | 2019-01-23T10:35:27.000Z | 2022-03-10T16:21:34.000Z | src/PinholePCLCam.cpp | mmiles19/merge_depth_cam | 7bd00a7d2baabdb9c4a8afc6a4eb516898f995b0 | [
"BSD-3-Clause"
] | 3 | 2019-02-26T16:48:08.000Z | 2022-01-24T18:16:15.000Z | src/PinholePCLCam.cpp | mmiles19/merge_depth_cam | 7bd00a7d2baabdb9c4a8afc6a4eb516898f995b0 | [
"BSD-3-Clause"
] | 4 | 2019-10-27T10:45:41.000Z | 2021-01-23T08:44:37.000Z | // #include <pluginlib/class_list_macros.h>
#include "PinholePCLCam.hpp"
#include <opencv2/opencv.hpp>
#include <pcl/range_image/range_image_planar.h>
#include <cassert>
#include <cmath>
using namespace sensor_msgs;
using namespace std_msgs;
namespace ap34 {
void store_image(std::string fname, cv::Mat& img) {
... | 41.737805 | 132 | 0.622498 |
68c5c2ec21cf1af2560c0717b4118df93f520b17 | 4,866 | cc | C++ | gpu/command_buffer/service/transfer_buffer_manager_unittest.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | gpu/command_buffer/service/transfer_buffer_manager_unittest.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-12-13T19:44:12.000Z | 2021-12-13T19:44:12.000Z | gpu/command_buffer/service/transfer_buffer_manager_unittest.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.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 "gpu/command_buffer/service/transfer_buffer_manager.h"
#include "base/memory/scoped_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#i... | 41.948276 | 78 | 0.606658 |
68c7a487e962bab969ab40a56ea58e555a3defc7 | 1,848 | cpp | C++ | tests/src/main.cpp | nemu-cpp/web-server | 353ba231bc42c72e69f82ddbb7ae2ffbb5cbb97f | [
"MIT"
] | null | null | null | tests/src/main.cpp | nemu-cpp/web-server | 353ba231bc42c72e69f82ddbb7ae2ffbb5cbb97f | [
"MIT"
] | null | null | null | tests/src/main.cpp | nemu-cpp/web-server | 353ba231bc42c72e69f82ddbb7ae2ffbb5cbb97f | [
"MIT"
] | null | null | null | /*
Copyright (c) 2019-2022 Xavier Leclercq
Released under the MIT License
See https://github.com/nemu-cpp/web-framework/blob/main/LICENSE.txt
*/
#include "DebugTemplateEngineProfileTests.hpp"
#include "DebugTemplateEngineTests.hpp"
#include "FileSystemWebRequestHandlerTests.hpp"
#include "FunctionWebReques... | 35.538462 | 74 | 0.77381 |
68c7f065cffccfaa24d72f7e637a04addbf03f30 | 5,053 | cpp | C++ | src/main_void_MPI_bitvec.cpp | rapastranac/gempba | 3b50f9809af95e2001615ab704bb055db68f50c8 | [
"MIT"
] | 1 | 2021-07-08T13:52:06.000Z | 2021-07-08T13:52:06.000Z | src/main_void_MPI_bitvec.cpp | rapastranac/gempba | 3b50f9809af95e2001615ab704bb055db68f50c8 | [
"MIT"
] | 2 | 2021-07-31T14:58:02.000Z | 2021-09-07T01:55:06.000Z | src/main_void_MPI_bitvec.cpp | rapastranac/gempba | 3b50f9809af95e2001615ab704bb055db68f50c8 | [
"MIT"
] | null | null | null | #ifdef BITVECTOR_VC
#include "../include/main.h"
#include "../include/Graph.hpp"
#include "../MPI_Modules/MPI_Scheduler.hpp"
#include "../include/VC_void_MPI_bitvec.hpp"
#include "../include/resultholder/ResultHolder.hpp"
#include "../include/BranchHandler.hpp"
#include "../include/DLB_Handler.hpp"
#include <chrono... | 30.624242 | 124 | 0.64338 |
68c845b9335cdf764e208c6c9a498556a8478c7c | 16,778 | hh | C++ | include/click/flow/flowelement.hh | MassimoGirondi/fastclick | 71b9a3392c2e847a22de3c354be1d9f61216cb5b | [
"BSD-3-Clause-Clear"
] | 1 | 2021-01-22T16:51:37.000Z | 2021-01-22T16:51:37.000Z | include/click/flow/flowelement.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | null | null | null | include/click/flow/flowelement.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | null | null | null | // -*- c-basic-offset: 4 -*-
#ifndef CLICK_FLOWELEMENT_HH
#define CLICK_FLOWELEMENT_HH
#include <click/glue.hh>
#include <click/vector.hh>
#include <click/string.hh>
#include <click/batchelement.hh>
#include <click/routervisitor.hh>
#include <click/pair.hh>
#include "flow.hh"
CLICK_DECLS
#ifdef HAVE_FLOW
# if HAVE_C... | 30.672761 | 258 | 0.671355 |
68c88971ef4e0dc763be19d3efed1264cdbf02af | 4,475 | cpp | C++ | arangod/Scheduler/JobQueue.cpp | pjesudhas/ArangoDB | 76684f84ee34f1fff25fc9bf2f4cee7a5abd03cc | [
"BSL-1.0",
"Zlib",
"ICU",
"Apache-2.0"
] | null | null | null | arangod/Scheduler/JobQueue.cpp | pjesudhas/ArangoDB | 76684f84ee34f1fff25fc9bf2f4cee7a5abd03cc | [
"BSL-1.0",
"Zlib",
"ICU",
"Apache-2.0"
] | null | null | null | arangod/Scheduler/JobQueue.cpp | pjesudhas/ArangoDB | 76684f84ee34f1fff25fc9bf2f4cee7a5abd03cc | [
"BSL-1.0",
"Zlib",
"ICU",
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// 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... | 28.685897 | 80 | 0.56 |
68c90335118c25cb4852515593eb2d7fe6f87ffe | 13,005 | cc | C++ | xvcSrv/src/xvcDrvAxisTmem.cc | paulscherrerinstitute/xvcSupport | 62aa062cd9126c71fcc556f547abdd1fa8823eff | [
"BSD-3-Clause-LBNL"
] | 6 | 2020-12-23T16:46:26.000Z | 2022-02-11T14:42:32.000Z | xvcSrv/src/xvcDrvAxisTmem.cc | paulscherrerinstitute/xvcSupport | 62aa062cd9126c71fcc556f547abdd1fa8823eff | [
"BSD-3-Clause-LBNL"
] | null | null | null | xvcSrv/src/xvcDrvAxisTmem.cc | paulscherrerinstitute/xvcSupport | 62aa062cd9126c71fcc556f547abdd1fa8823eff | [
"BSD-3-Clause-LBNL"
] | 2 | 2020-09-18T14:34:25.000Z | 2021-07-22T16:14:58.000Z | //-----------------------------------------------------------------------------
// Title : JTAG Support
//-----------------------------------------------------------------------------
// File : xvcDrvAxisFifo.cc
// Author : Till Straumann <strauman@slac.stanford.edu>
// Company : SLAC National Acceler... | 24.308411 | 123 | 0.599846 |
68d06c4cee3563eb2780bc7480f894d15594a007 | 1,066 | hpp | C++ | src/ipc/ipc.hpp | imaphatduc/Hypr | 1528659eebf2f41fcfde6ab514a956f5dd51cdfc | [
"BSD-3-Clause"
] | 277 | 2021-11-19T20:15:18.000Z | 2022-03-29T12:07:59.000Z | src/ipc/ipc.hpp | imaphatduc/Hypr | 1528659eebf2f41fcfde6ab514a956f5dd51cdfc | [
"BSD-3-Clause"
] | 46 | 2021-11-21T10:25:58.000Z | 2022-03-23T15:04:51.000Z | src/ipc/ipc.hpp | imaphatduc/Hypr | 1528659eebf2f41fcfde6ab514a956f5dd51cdfc | [
"BSD-3-Clause"
] | 28 | 2021-12-07T02:49:16.000Z | 2022-03-22T05:26:07.000Z | #pragma once
#include "../defines.hpp"
std::string readFromIPCChannel(const std::string);
int writeToIPCChannel(const std::string, std::string);
#define IPC_END_OF_FILE (std::string)"HYPR_END_OF_FILE"
#define IPC_MESSAGE_SEPARATOR std::string("\t")
#define IPC_MESSAGE_EQUALITY std:... | 31.352941 | 74 | 0.666979 |
68d34d564ceb53f0ebc5b1a17bfa5928436ccd5e | 2,009 | cpp | C++ | Engine/Model.cpp | kristofe/VolumeRenderer | 653976ef8c80d05fd1059ebc0b3d3542649879fc | [
"MIT"
] | null | null | null | Engine/Model.cpp | kristofe/VolumeRenderer | 653976ef8c80d05fd1059ebc0b3d3542649879fc | [
"MIT"
] | null | null | null | Engine/Model.cpp | kristofe/VolumeRenderer | 653976ef8c80d05fd1059ebc0b3d3542649879fc | [
"MIT"
] | null | null | null | /*
* Model.cpp
* XPlatformGL
*
* Created by Kristofer Schlachter on 1/2/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "Model.h"
#include "Platform.h"
#include "Globals.h"
#include "Mesh.h"
#include <stdlib.h>
//#include <stdio.h>
#include <math.h>
/////////////////////////////... | 22.573034 | 80 | 0.520159 |
68d4601f864810d0ecc2a731fa03496616a82c2b | 8,737 | hpp | C++ | include/metrics/pu_encode_data.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/metrics/pu_encode_data.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | include/metrics/pu_encode_data.hpp | ecarpita93/HPC_projet_1 | a2c00e056c03227711c43cf2ad23d75c6afbe698 | [
"Xnet",
"X11"
] | null | null | null | /*
PICCANTE
The hottest HDR imaging library!
http://vcg.isti.cnr.it/piccante
Copyright (C) 2014
Visual Computing Laboratory - ISTI CNR
http://vcg.isti.cnr.it
First author: Francesco Banterle
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed ... | 15.856624 | 67 | 0.550418 |
68d512e62f9c1e8496242c297e03eb8efe4f94de | 1,478 | cpp | C++ | src/environment/model/ModelContainer.cpp | tobiaskohlbau/IPPP | 91432f00b49ea5a83648e3294ad5b4b661dcd284 | [
"Apache-2.0"
] | null | null | null | src/environment/model/ModelContainer.cpp | tobiaskohlbau/IPPP | 91432f00b49ea5a83648e3294ad5b4b661dcd284 | [
"Apache-2.0"
] | null | null | null | src/environment/model/ModelContainer.cpp | tobiaskohlbau/IPPP | 91432f00b49ea5a83648e3294ad5b4b661dcd284 | [
"Apache-2.0"
] | null | null | null | //-------------------------------------------------------------------------//
//
// Copyright 2017 Sascha Kaden
//
// 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.... | 28.980392 | 101 | 0.621786 |
68d6a5ca027ce4152a2eb01862726e28dd603b9c | 19,968 | hpp | C++ | atto/atto/math/geometry/algebra.hpp | ubikoo/libfish | 7f0b5e06b2bf1d6ff490ddfda9cc7aab69cdbf39 | [
"MIT"
] | null | null | null | atto/atto/math/geometry/algebra.hpp | ubikoo/libfish | 7f0b5e06b2bf1d6ff490ddfda9cc7aab69cdbf39 | [
"MIT"
] | null | null | null | atto/atto/math/geometry/algebra.hpp | ubikoo/libfish | 7f0b5e06b2bf1d6ff490ddfda9cc7aab69cdbf39 | [
"MIT"
] | null | null | null | /*
* algebra.hpp
*
* Copyright (c) 2020 Carlos Braga
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the MIT License.
*
* See accompanying LICENSE.md or https://opensource.org/licenses/MIT.
*/
#ifndef ATTO_MATH_GEOMETRY_ALGEBRA_H_
#define ATTO_MATH_GEOMETRY_ALG... | 31.796178 | 80 | 0.455629 |
68d7c6a7182e36cfd4e148b2297d38ea46c3c128 | 3,313 | cpp | C++ | src/SceneMonitor.cpp | rcstilborn/SecMon | f750d9c421dac1c5a795384ff8f7b7a29a0aece9 | [
"MIT"
] | 2 | 2021-12-17T17:35:07.000Z | 2022-01-11T12:38:00.000Z | src/SceneMonitor.cpp | rcstilborn/SecMon | f750d9c421dac1c5a795384ff8f7b7a29a0aece9 | [
"MIT"
] | null | null | null | src/SceneMonitor.cpp | rcstilborn/SecMon | f750d9c421dac1c5a795384ff8f7b7a29a0aece9 | [
"MIT"
] | 2 | 2018-01-15T06:10:07.000Z | 2021-07-08T19:40:49.000Z | /*
* SceneMonitor.cpp
*
* Created on: Jul 27, 2015
* Author: richard
*
* Copyright 2017 Richard Stilborn
* Licensed under the MIT License
*/
#include "SceneMonitor.h"
#include <boost/asio/io_service.hpp>
#include <boost/bind/bind.hpp>
#include <boost/iterator/iterator_facade.hpp>
#include <boost/ptr_c... | 29.061404 | 116 | 0.686991 |
68d9deed1f22ec03ee368305b88181ee84a5347d | 1,854 | cpp | C++ | m4cpp/src/uart.cpp | matheusmb/smep-gateway | c32ff83cf48488404a5c094137b33be09d84581c | [
"MIT"
] | null | null | null | m4cpp/src/uart.cpp | matheusmb/smep-gateway | c32ff83cf48488404a5c094137b33be09d84581c | [
"MIT"
] | null | null | null | m4cpp/src/uart.cpp | matheusmb/smep-gateway | c32ff83cf48488404a5c094137b33be09d84581c | [
"MIT"
] | null | null | null | #include "uart.h"
#include "board.h"
#include "WString.h"
#define UARTx_IRQn USART0_IRQn
void UART_Init( const uint32_t baud ) {
Board_UART_Init( LPC_UART );
Chip_UART_Init( LPC_UART );
Chip_UART_SetBaud( LPC_UART, baud );
Chip_UART_TXEnable( LPC_UART );
}
void UART_IRQ_Init() {
UART_IntEnable();
Chip_U... | 20.373626 | 98 | 0.718986 |
68da56c8bbc6797e2daedc237bef5589843c7f6e | 328 | cpp | C++ | SPiCall/example.cpp | MoePus/SPiCall | 4b0331d6ec456aff55b0b6080246d917ead900c3 | [
"MIT"
] | 15 | 2020-10-14T06:22:19.000Z | 2022-03-12T00:59:03.000Z | SPiCall/example.cpp | c3358/SPiCall | 4b0331d6ec456aff55b0b6080246d917ead900c3 | [
"MIT"
] | null | null | null | SPiCall/example.cpp | c3358/SPiCall | 4b0331d6ec456aff55b0b6080246d917ead900c3 | [
"MIT"
] | 9 | 2020-07-29T12:37:50.000Z | 2021-08-16T13:57:07.000Z | #include <iostream>
#include "SPiCall/SPiCall.h"
int main()
{
SPiCall::init();
#ifdef _MSC_VER
const auto funcNameHash = SPiCall::syscall::fnv1a_32("NtTerminateProcess");
SPiCall::syscall::nt_syscall(funcNameHash, ~0, 0);
#else
SPiCall::syscall::nt_syscall("NtTerminateProcess", ~0, 0);
#endif
retu... | 21.866667 | 79 | 0.692073 |
68dadb09346cfe63541bc35f3e22509be8a45b89 | 1,970 | cpp | C++ | llarp/service/info.cpp | KeeJef/loki-network | f5dbbaf832d11b88d351e3de7ab584465a28f6bf | [
"Zlib"
] | null | null | null | llarp/service/info.cpp | KeeJef/loki-network | f5dbbaf832d11b88d351e3de7ab584465a28f6bf | [
"Zlib"
] | null | null | null | llarp/service/info.cpp | KeeJef/loki-network | f5dbbaf832d11b88d351e3de7ab584465a28f6bf | [
"Zlib"
] | null | null | null | #include <buffer.hpp>
#include <service/Info.hpp>
#include <service/address.hpp>
#include <cassert>
#include <sodium/crypto_generichash.h>
namespace llarp
{
namespace service
{
bool
ServiceInfo::DecodeKey(llarp_buffer_t key, llarp_buffer_t* val)
{
bool read = false;
if(!BEncodeMaybeReadDi... | 25.25641 | 76 | 0.591371 |
68dd0fd03a89896af9cefc24fd2642e92fc94ade | 22,627 | cpp | C++ | framework/areg/component/private/ComponentLoader.cpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | framework/areg/component/private/ComponentLoader.cpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | framework/areg/component/private/ComponentLoader.cpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | /************************************************************************
* This file is part of the AREG SDK core engine.
* AREG SDK is dual-licensed under Free open source (Apache version 2.0
* License) and Commercial (with various pricing models) licenses, depending
* on the nature of the project (commercial, re... | 38.878007 | 165 | 0.557431 |
68e3ef0f200b918d322171a0dec5379e2df62dde | 18,478 | hpp | C++ | third_party/omr/compiler/x/codegen/OMRRegisterDependency.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/compiler/x/codegen/OMRRegisterDependency.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/compiler/x/codegen/OMRRegisterDependency.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 40.700441 | 241 | 0.669391 |
68e7b53a748c7f1204bdbd44a08745d63ee42e9e | 4,874 | cpp | C++ | jit.cpp | c3sr/go-pytorch | 0d1f6edbc6e48f0f68055274af0997e2ff9b0ce1 | [
"Apache-2.0"
] | 14 | 2018-11-26T18:33:27.000Z | 2021-12-17T11:14:33.000Z | jit.cpp | c3sr/go-pytorch | 0d1f6edbc6e48f0f68055274af0997e2ff9b0ce1 | [
"Apache-2.0"
] | 7 | 2019-04-02T16:46:01.000Z | 2020-06-10T02:02:33.000Z | jit.cpp | c3sr/go-pytorch | 0d1f6edbc6e48f0f68055274af0997e2ff9b0ce1 | [
"Apache-2.0"
] | 3 | 2019-07-16T16:47:07.000Z | 2021-12-29T07:47:59.000Z | #ifdef ENABLE_PYTROCH_JIT
#include "error.hpp"
#include "predictor.hpp"
#include <algorithm>
#include <iosfwd>
#include <iostream>
#include <memory>
#include <string>
#include <typeinfo>
#include <utility>
#include <vector>
extern Torch_IValue Torch_ConvertIValueToTorchIValue(torch::IValue value);
struct Torch_JIT... | 29.539394 | 112 | 0.708863 |
68eeb54c52b1f098da02acc840a138117e18e72c | 2,191 | cpp | C++ | src/stereo_ugv/image_source.cpp | yunhao-qian/stereo_ugv | 23480a8b93918fc2bc44e16416ac0b4e0598788b | [
"BSD-2-Clause"
] | null | null | null | src/stereo_ugv/image_source.cpp | yunhao-qian/stereo_ugv | 23480a8b93918fc2bc44e16416ac0b4e0598788b | [
"BSD-2-Clause"
] | null | null | null | src/stereo_ugv/image_source.cpp | yunhao-qian/stereo_ugv | 23480a8b93918fc2bc44e16416ac0b4e0598788b | [
"BSD-2-Clause"
] | null | null | null | #include "stereo_ugv/image_source.h"
namespace stereo_ugv
{
/**
* @brief Creates an ImageSource.
* @details The function determines the concrete subclass of the layout to be created by looking up the "type" key, and
* calls the corresponding initialization function. Currently, "camera", "images" and "video" are sup... | 37.135593 | 119 | 0.740758 |
68f10e810d3722fa4aaf268cea3e77e0684a346c | 2,325 | cpp | C++ | foedus_code/foedus-core/src/foedus/storage/sequential/sequential_partitioner_impl.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/src/foedus/storage/sequential/sequential_partitioner_impl.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/src/foedus/storage/sequential/sequential_partitioner_impl.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* 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 Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 33.695652 | 91 | 0.744946 |
190387dff2ca8b91b790b2a534eec90c398aa606 | 3,683 | hpp | C++ | PhantomEngine/Common/Value.hpp | restary/Phantom | 1d34afc3da9aa2bf58e68beefd4f4351ecc1a01c | [
"MIT"
] | null | null | null | PhantomEngine/Common/Value.hpp | restary/Phantom | 1d34afc3da9aa2bf58e68beefd4f4351ecc1a01c | [
"MIT"
] | null | null | null | PhantomEngine/Common/Value.hpp | restary/Phantom | 1d34afc3da9aa2bf58e68beefd4f4351ecc1a01c | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
#include <Define.hpp>
using namespace std;
namespace PhantomEngine
{
namespace DataTypes
{
static const uint8_t UNDEFINED = 255;
static const uint8_t INTEGER = 0;
static const uint8_t FLOAT = 1;
static const uint... | 23.01875 | 80 | 0.472984 |
1903fb7b9a2da957750f0a1fd043519c6fc9c0b3 | 8,239 | cpp | C++ | src/StockExchange/StockExchange.cpp | SABCEMM/SABCEMM | a87ea83b57a8a7d16591abe30e56db459e710a0e | [
"BSD-3-Clause"
] | 17 | 2018-01-08T13:38:28.000Z | 2022-01-21T05:39:26.000Z | src/StockExchange/StockExchange.cpp | SABCEMM/SABCEMM | a87ea83b57a8a7d16591abe30e56db459e710a0e | [
"BSD-3-Clause"
] | null | null | null | src/StockExchange/StockExchange.cpp | SABCEMM/SABCEMM | a87ea83b57a8a7d16591abe30e56db459e710a0e | [
"BSD-3-Clause"
] | 1 | 2018-01-08T13:39:00.000Z | 2018-01-08T13:39:00.000Z | /* Copyright 2017 - BSD-3-Clause
*
* Copyright Holder (alphabetical):
*
* Beikirch, Maximilian
* Cramer, Simon
* Frank, Martin
* Otte, Philipp
* Pabich, Emma
* Trimborn, Torsten
*
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* followin... | 28.908772 | 125 | 0.73237 |
1905c4166233cc8b835b80f27c0aa834ce68fb80 | 933 | cpp | C++ | src/world/abilities/blink.cpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 7 | 2015-01-28T09:17:08.000Z | 2020-04-21T13:51:16.000Z | src/world/abilities/blink.cpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | null | null | null | src/world/abilities/blink.cpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 1 | 2020-07-11T09:20:25.000Z | 2020-07-11T09:20:25.000Z | #include <world/abilities/blink.hpp>
#include <world/works/blink_work.hpp>
#include <world/entity.hpp>
#include <logging/logging.hpp>
#include <memory>
using namespace std::chrono_literals;
template<>
const std::string NamedAbility<Blink>::name = "Blink";
template<>
const AbilityType NamedAbility<Blink>::ability_t... | 25.916667 | 90 | 0.719185 |
19061669c719a818d8563f9c8f75664fb79d9bf7 | 1,004 | hpp | C++ | tests/messaging/sock/networkcommon.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 61 | 2015-01-08T08:05:28.000Z | 2022-01-07T16:47:47.000Z | tests/messaging/sock/networkcommon.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 30 | 2015-04-06T21:41:18.000Z | 2021-08-18T13:24:51.000Z | tests/messaging/sock/networkcommon.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 64 | 2015-02-23T20:01:11.000Z | 2022-03-14T13:31:20.000Z | #pragma once
#ifndef _QI_TESTS_MESSAGING_NETWORKCOMMON_HPP
#define _QI_TESTS_MESSAGING_NETWORKCOMMON_HPP
#include <algorithm>
#include <random>
#include <boost/lexical_cast.hpp>
/// @file
/// Contains functions and types used by socket tests.
/// Precondition: With p = reinterpret_cast<unsigned char*>(t),
/// writa... | 26.421053 | 66 | 0.718127 |
1907555a950fd68d43b118706ee986f0fe711c7a | 3,089 | cpp | C++ | worker/callback_runner_test.cpp | tkwong/parameter_server | ef8424f341f3b4c4e1088b72d88930fac8b78daf | [
"Apache-2.0"
] | null | null | null | worker/callback_runner_test.cpp | tkwong/parameter_server | ef8424f341f3b4c4e1088b72d88930fac8b78daf | [
"Apache-2.0"
] | null | null | null | worker/callback_runner_test.cpp | tkwong/parameter_server | ef8424f341f3b4c4e1088b72d88930fac8b78daf | [
"Apache-2.0"
] | null | null | null | #include "glog/logging.h"
#include "gtest/gtest.h"
#include "worker/callback_runner.cpp"
namespace csci5570 {
class TestCallbackRunner: public testing::Test {
protected:
void SetUp() {}
void TearDown() {}
}; // class TestCallbackRunner
TEST_F(TestCallbackRunner, Init)
{
CallbackRunner runne... | 27.336283 | 98 | 0.616381 |
190ee3f87e869fae0d4deb4a480c1b36a6b936b3 | 3,141 | cpp | C++ | src/blackboard_entry.cpp | robotics-upo/BehaviorTree.CPP | 320e61711f75604a23726fbf16fd2660e8c68efe | [
"MIT"
] | null | null | null | src/blackboard_entry.cpp | robotics-upo/BehaviorTree.CPP | 320e61711f75604a23726fbf16fd2660e8c68efe | [
"MIT"
] | null | null | null | src/blackboard_entry.cpp | robotics-upo/BehaviorTree.CPP | 320e61711f75604a23726fbf16fd2660e8c68efe | [
"MIT"
] | null | null | null | #include "behaviortree_cpp_v3/blackboard_entry.h"
namespace BT
{
Entry::Entry(const Entry& _other_entry, const TypesConverter& _converter) :
converter_ ( _converter )
{
input_types_ = _other_entry.input_types_;
output_types_ = _other_entry.output_types_;
checkTypesCompatible(i... | 30.201923 | 100 | 0.589621 |
190f6fb15793fc116a783933ffddd3c33e11ddd0 | 502 | cpp | C++ | beta versions/Processor.cpp | tec-csf/tc2017-pf-primavera-2020-equipo-4-1 | 111f53acb1c7f3e0bebd112ed0bdda9ab0df5174 | [
"MIT"
] | null | null | null | beta versions/Processor.cpp | tec-csf/tc2017-pf-primavera-2020-equipo-4-1 | 111f53acb1c7f3e0bebd112ed0bdda9ab0df5174 | [
"MIT"
] | null | null | null | beta versions/Processor.cpp | tec-csf/tc2017-pf-primavera-2020-equipo-4-1 | 111f53acb1c7f3e0bebd112ed0bdda9ab0df5174 | [
"MIT"
] | null | null | null | #include "Processor.hpp"
using namespace std;
void Processor::setEverything(int anID, int amountOfCores, float alpha,
float beta, float delta, float gamma, float c){
id = anID;
cores = amountOfCores;
failureP = 1 / gamma;
probRc = c;
probRb = 1 - c;
TRc = 1 / beta;
TRb = 1 / alpha;
... | 21.826087 | 72 | 0.605578 |
190fc0414b47b91ff40165dcabf6f578c9737971 | 18,167 | cpp | C++ | admin/cmdline/scheduledtasks/end.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/cmdline/scheduledtasks/end.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/cmdline/scheduledtasks/end.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /******************************************************************************
Copyright(c) Microsoft Corporation
Module Name:
end.cpp
Abstract:
This module terminates the schedule task which is currently running in the system
Author:
Venu Gopal Choudary 12-... | 32.499106 | 158 | 0.565641 |
1914208c93fcd9ad93a53e72ac939974f736e864 | 2,202 | cc | C++ | net/tools/transport_security_state_generator/spki_hash_unittest.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 | net/tools/transport_security_state_generator/spki_hash_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | net/tools/transport_security_state_generator/spki_hash_unittest.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 2017 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 "net/tools/transport_security_state_generator/spki_hash.h"
#include "base/strings/string_number_conversions.h"
#include "testing/gmock/include/gm... | 33.876923 | 79 | 0.701635 |
191a6c446228ac19142afb92a40c92586a351358 | 1,350 | cpp | C++ | src/plugins/blasq/plugins/rappor/rappor.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/blasq/plugins/rappor/rappor.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/blasq/plugins/rappor/rappor.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 19.014085 | 83 | 0.622222 |
191a7076b71459404f6bfe86cc3f97fd5cd82611 | 4,088 | cpp | C++ | src/optimizer/ind_var.cpp | kylinsoft/test | 2af1e8d0a05000119d4d7fdd4c5c9e8839442c52 | [
"MIT"
] | null | null | null | src/optimizer/ind_var.cpp | kylinsoft/test | 2af1e8d0a05000119d4d7fdd4c5c9e8839442c52 | [
"MIT"
] | null | null | null | src/optimizer/ind_var.cpp | kylinsoft/test | 2af1e8d0a05000119d4d7fdd4c5c9e8839442c52 | [
"MIT"
] | null | null | null | #include "pass.hpp"
void ind_var_discovery(NormalFunc *f) {
// TODO: debug
dbg << "## ind var discovery: " << f->name << "\n";
auto S = build_dom_tree(f);
auto defs = build_defs(f);
auto i2bb = build_in2bb(f);
std::unordered_set<Reg> la;
std::unordered_map<Reg, Reg> mp_reg;
dom_tree_dfs(S, [&... | 37.163636 | 80 | 0.429305 |
191cddd5415bab0a4e1557200a8ec1ed88edf626 | 17,000 | cpp | C++ | libpvkernel/src/rush/PVFormatVersion.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/src/rush/PVFormatVersion.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvkernel/src/rush/PVFormatVersion.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | //
// MIT License
//
// © ESI Group, 2015
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, pu... | 31.25 | 97 | 0.644059 |
191f35d1a71135b003818c6fa2e94660e7bac8ad | 2,089 | cpp | C++ | lab4/code/main_mpi.cpp | ankurshaswat/COL380 | 5c54f629d3709214f9e082aa5cd9449d14848e1c | [
"MIT"
] | null | null | null | lab4/code/main_mpi.cpp | ankurshaswat/COL380 | 5c54f629d3709214f9e082aa5cd9449d14848e1c | [
"MIT"
] | null | null | null | lab4/code/main_mpi.cpp | ankurshaswat/COL380 | 5c54f629d3709214f9e082aa5cd9449d14848e1c | [
"MIT"
] | null | null | null | #include "lab4_io.h"
#include "lab4_mpi.h"
#include <stdlib.h>
#include "mpi.h"
/*
Arguments:
arg: input filename (consist text, pattern_set)
*/
int main(int argc, char *argv[])
{
if (argc < 2)
{
printf("\nLess Arguments\n");
return 0;
}
if (argc > 2)
{
printf("\nTOO many Arguments\n");
return 0;
}... | 24.011494 | 99 | 0.594064 |
191fe62fb000c162bdae37ea3e70df3729d30c11 | 9,164 | cpp | C++ | src/essence.game/qpang/room/session/player/weapon/PlayerWeaponManager.cpp | hinnie123/qpang-essence-emulator-1 | 2b99f21bcbcbdcd5ff8104d4845ebc10ec0e6e1b | [
"MIT"
] | 1 | 2021-11-23T00:31:46.000Z | 2021-11-23T00:31:46.000Z | src/essence.game/qpang/room/session/player/weapon/PlayerWeaponManager.cpp | hinnie123/qpang-essence-emulator-1 | 2b99f21bcbcbdcd5ff8104d4845ebc10ec0e6e1b | [
"MIT"
] | null | null | null | src/essence.game/qpang/room/session/player/weapon/PlayerWeaponManager.cpp | hinnie123/qpang-essence-emulator-1 | 2b99f21bcbcbdcd5ff8104d4845ebc10ec0e6e1b | [
"MIT"
] | 1 | 2021-12-18T12:50:46.000Z | 2021-12-18T12:50:46.000Z | #include "PlayerWeaponManager.h"
#include "qpang/Game.h"
#include "qpang/room/session/RoomSession.h"
#include "qpang/room/tnl/net_events/client/cg_weapon.hpp"
#include "qpang/room/tnl/net_events/server/gc_weapon.hpp"
#include "qpang/room/tnl/net_events/server/gc_respawn.hpp"
#include "qpang/room/tnl/net_events/serve... | 25.669468 | 164 | 0.748691 |
19202436500c1a6eb406fc35dc9d3f49f8601c6d | 6,361 | cpp | C++ | TDEngine2/source/graphics/animation/CMeshAnimatorComponent.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-15T01:14:15.000Z | 2019-07-15T01:14:15.000Z | TDEngine2/source/graphics/animation/CMeshAnimatorComponent.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 76 | 2018-10-27T16:59:36.000Z | 2022-03-30T17:40:39.000Z | TDEngine2/source/graphics/animation/CMeshAnimatorComponent.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-29T02:02:08.000Z | 2019-07-29T02:02:08.000Z | #include "../../include/graphics/animation/CMeshAnimatorComponent.h"
#include <tuple>
namespace TDEngine2
{
static const std::string ComponentTypeName = "mesh_animator";
const std::string CMeshAnimatorComponent::mPositionJointChannelPattern = "joint_{0}.position";
const std::string CMeshAnimatorComponent::mRotati... | 23.047101 | 178 | 0.748782 |
1921e6547eacf6dd5f124f74def4dd1d03fa4150 | 1,602 | cpp | C++ | 19A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 19A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 19A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 20.805195 | 87 | 0.615481 |
19246af50a74c6b82cb1838f92e719733b72179a | 2,215 | cpp | C++ | cpp/main.cpp | adtalos/AITM-torch | 9e8d4665ccd302e02ca0eba334419fbf3f5b7ba7 | [
"Apache-2.0"
] | 9 | 2021-08-19T05:44:11.000Z | 2022-03-17T14:31:39.000Z | cpp/main.cpp | adtalos/AITM-torch | 9e8d4665ccd302e02ca0eba334419fbf3f5b7ba7 | [
"Apache-2.0"
] | 2 | 2022-03-18T01:18:16.000Z | 2022-03-25T06:21:03.000Z | cpp/main.cpp | adtalos/AITM-torch | 9e8d4665ccd302e02ca0eba334419fbf3f5b7ba7 | [
"Apache-2.0"
] | 2 | 2021-08-19T04:43:40.000Z | 2022-01-17T08:01:00.000Z | #include "aitm.h"
#include <chrono>
#include <iostream>
#include <torch/script.h>
int main() {
std::unordered_map<std::string, torch::Tensor> inputs;
inputs.insert({"101", torch::tensor({56460, 56460})});
inputs.insert({"121", torch::tensor({15, 15})});
inputs.insert({"122", torch::tensor({4, 4})});
inputs.... | 39.553571 | 78 | 0.579684 |
192792ac79a3b689427d4827807f3490eaf2a12b | 1,443 | cc | C++ | raytracing/geometry.cc | jpanikulam/experiments | be36319a89f8baee54d7fa7618b885edb7025478 | [
"MIT"
] | 1 | 2019-04-14T11:40:28.000Z | 2019-04-14T11:40:28.000Z | raytracing/geometry.cc | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 5 | 2018-04-18T13:54:29.000Z | 2019-08-22T20:04:17.000Z | raytracing/geometry.cc | IJDykeman/experiments-1 | 22badf166b2ea441e953939463f751020b8c251b | [
"MIT"
] | 1 | 2018-12-24T03:45:47.000Z | 2018-12-24T03:45:47.000Z | #include "geometry.hh"
namespace raytrace {
using Vec2 = Eigen::Vector2d;
double cross2d(const Vec2 &a, const Vec2 &b) {
return (a(0) * b(1)) - (a(1) * b(0));
}
bool ray_line_intersection(const Ray &ray, const Line &line, Out<Vec2> intersection) {
Eigen::Matrix2d A;
A.col(0) = ray.direction;
A.col(1) = -lin... | 28.294118 | 104 | 0.668053 |
192db529428201d58d905a62921de0c632fa449b | 1,927 | cc | C++ | cpp/src/arrow/compute/exec/accumulation_queue.cc | AlvinJ15/arrow | 095179f8a38f99e2eb10a59ad7e71252d8491e8f | [
"Apache-2.0"
] | 1 | 2021-11-24T04:43:52.000Z | 2021-11-24T04:43:52.000Z | cpp/src/arrow/compute/exec/accumulation_queue.cc | AlvinJ15/arrow | 095179f8a38f99e2eb10a59ad7e71252d8491e8f | [
"Apache-2.0"
] | null | null | null | cpp/src/arrow/compute/exec/accumulation_queue.cc | AlvinJ15/arrow | 095179f8a38f99e2eb10a59ad7e71252d8491e8f | [
"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... | 32.661017 | 75 | 0.737416 |
192ee663eb16a798a38f768cb86e6c158d838f2a | 88 | cpp | C++ | problemsets/Codeforces/C++/C1360.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/C++/C1360.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codeforces/C++/C1360.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
| 12.571429 | 38 | 0.625 |
192fa1261098731268c3405b3a731b39d25d8a31 | 847 | cpp | C++ | clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.grammar/p2-1z.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,102 | 2015-01-04T02:28:35.000Z | 2022-03-30T12:53:41.000Z | clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.grammar/p2-1z.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.grammar/p2-1z.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 1,868 | 2015-01-03T04:27:11.000Z | 2022-03-25T13:37:35.000Z | // RUN: %clang_cc1 -std=c++1z -verify %s
[[disable_tail_calls, noduplicate]] void f() {} // expected-warning {{unknown attribute 'disable_tail_calls'}} expected-warning {{unknown attribute 'noduplicate'}}
[[using clang: disable_tail_calls, noduplicate]] void g() {} // ok
[[using]] extern int n; // expected-error {{e... | 49.823529 | 163 | 0.707202 |
1930b9cdd5fdfc4442f2e9abf0c26280cc8f2787 | 196 | cpp | C++ | 10.10-span0/main.cpp | andreasfertig/programming-with-cpp20 | 7c70351f3a46aea295e964096be77eb159be6e9f | [
"MIT"
] | 107 | 2021-04-13T12:43:06.000Z | 2022-03-30T05:07:16.000Z | 10.10-span0/main.cpp | jessesimpson/programming-with-cpp20 | 7c70351f3a46aea295e964096be77eb159be6e9f | [
"MIT"
] | 1 | 2021-04-13T12:59:30.000Z | 2021-04-13T13:02:55.000Z | 10.10-span0/main.cpp | jessesimpson/programming-with-cpp20 | 7c70351f3a46aea295e964096be77eb159be6e9f | [
"MIT"
] | 29 | 2021-04-13T18:07:03.000Z | 2022-03-28T13:44:01.000Z | // Copyright (c) Andreas Fertig.
// SPDX-License-Identifier: MIT
#include <cstddef>
template<typename T>
class Span {
T* mData;
size_t mSize;
public:
// constructors
};
int main() {} | 13.066667 | 32 | 0.658163 |
1931129329fd5b84da776098dce6603e6732fe41 | 20,685 | cpp | C++ | vtkdiff.cpp | ufz/vtkdiff | 8b7bfce2f2302263c9fdc0201f765e375c8a8a36 | [
"BSD-4-Clause"
] | 1 | 2021-03-08T00:35:07.000Z | 2021-03-08T00:35:07.000Z | vtkdiff.cpp | ufz/vtkdiff | 8b7bfce2f2302263c9fdc0201f765e375c8a8a36 | [
"BSD-4-Clause"
] | 3 | 2015-06-05T13:09:05.000Z | 2016-09-26T19:50:16.000Z | vtkdiff.cpp | ufz/vtkdiff | 8b7bfce2f2302263c9fdc0201f765e375c8a8a36 | [
"BSD-4-Clause"
] | 5 | 2016-06-01T15:32:56.000Z | 2022-03-20T04:22:30.000Z | /**
* \copyright
* Copyright (c) 2015-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include <algorithm>
#include <cmath>
#include <cstdl... | 33.096 | 80 | 0.562388 |
19312e28c17a1befa02f080f5fd4c09660436f0f | 209 | cpp | C++ | src/algorithm_list.cpp | GoncaloFDS/Lift | e026f585127ba55bdb261cd3ac3ca97545b7cd8f | [
"BSD-3-Clause"
] | 30 | 2019-07-24T09:58:22.000Z | 2021-09-03T08:20:22.000Z | src/algorithm_list.cpp | GoncaloFDS/Lift | e026f585127ba55bdb261cd3ac3ca97545b7cd8f | [
"BSD-3-Clause"
] | 15 | 2020-06-20T13:20:50.000Z | 2021-04-26T16:05:33.000Z | src/algorithm_list.cpp | GoncaloFDS/Lift | e026f585127ba55bdb261cd3ac3ca97545b7cd8f | [
"BSD-3-Clause"
] | 5 | 2020-06-17T08:38:34.000Z | 2021-09-08T22:14:02.000Z | #include "algorithm_list.h"
const std::vector<std::pair<std::string, Algorithm>> AlgorithmList::all_algorithms = {
{"Path Tracing", Algorithm::PT},
{"Bidirectional Path Tracing", Algorithm::BDPT},
};
| 29.857143 | 86 | 0.703349 |
193544cc9f9e2b529c13ba814c29132be07d032b | 2,331 | hpp | C++ | src/cpu/rtweekend.hpp | DveloperY0115/ray-tracing-in-one-weekend-cpp | 4a293f8db7eefd1d62e6be46a53d65ff348eaa52 | [
"MIT"
] | 1 | 2021-02-18T08:38:21.000Z | 2021-02-18T08:38:21.000Z | src/cpu/rtweekend.hpp | DveloperY0115/ray-tracing-in-one-weekend-cpp | 4a293f8db7eefd1d62e6be46a53d65ff348eaa52 | [
"MIT"
] | 1 | 2021-02-13T04:42:01.000Z | 2021-02-13T04:42:01.000Z | src/cpu/rtweekend.hpp | DveloperY0115/ray-tracing-in-one-weekend-cpp | 4a293f8db7eefd1d62e6be46a53d65ff348eaa52 | [
"MIT"
] | null | null | null | //
// Created by 유승우 on 2020/05/15.
//
#ifndef FIRSTRAYTRACER_RTWEEKEND_HPP
#define FIRSTRAYTRACER_RTWEEKEND_HPP
#include <cmath>
#include <cstdlib>
#include <limits>
#include <memory>
#include <random>
#include <time.h>
// using statements to make codes more simple
using std::shared_ptr;
using std::make_shared;
us... | 24.536842 | 86 | 0.703561 |
19362a415c4f270b9dd8242a379cd7cd98c7e858 | 564 | cpp | C++ | main.cpp | mmarszik/01ToBin | 9a1b0a792385b3f051cf462564dfebc2a391ae62 | [
"MIT"
] | null | null | null | main.cpp | mmarszik/01ToBin | 9a1b0a792385b3f051cf462564dfebc2a391ae62 | [
"MIT"
] | null | null | null | main.cpp | mmarszik/01ToBin | 9a1b0a792385b3f051cf462564dfebc2a391ae62 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#define SIZE_OUT (1<<12)
#define SIZE_INP (SIZE_OUT*8)
int main() {
char buff_out[SIZE_OUT];
char buff_inp[SIZE_INP];
while( fread(buff_inp,SIZE_INP,1,stdin) == 1 ) {
for( int i=0 ; i<SIZE_INP ; i++ ) {
if( buff_inp[i] != '0' && buff_inp[i] != '1' ... | 20.888889 | 60 | 0.473404 |
1937294b0fbbd690599e20cd5d73e9c10dce5c45 | 1,839 | tpp | C++ | include/Sirius/Math/Matrix/Matrix2.tpp | xam4lor/Sirius | f05a89538ab2bc79a8d46f482fbb060271adce0a | [
"MIT"
] | 1 | 2021-07-12T11:53:06.000Z | 2021-07-12T11:53:06.000Z | include/Sirius/Math/Matrix/Matrix2.tpp | xam4lor/Sirius | f05a89538ab2bc79a8d46f482fbb060271adce0a | [
"MIT"
] | null | null | null | include/Sirius/Math/Matrix/Matrix2.tpp | xam4lor/Sirius | f05a89538ab2bc79a8d46f482fbb060271adce0a | [
"MIT"
] | 1 | 2021-07-12T11:51:53.000Z | 2021-07-12T11:51:53.000Z |
#include "Matrix2.hpp"
namespace Sirius
{
template<typename T>
constexpr Matrix<2, T> operator+(const Matrix<2, T>& mat1, const Matrix<2, T>& mat2)
{
return Matrix<2, T>(mat1[0] + mat2[0], mat1[1] + mat2[1]);
}
template<typename T>
constexpr Matrix<2, T> operator-(const Matrix<2, T>& ... | 29.66129 | 106 | 0.516041 |
193898f97013de96c717a848897f6a54e2d1b516 | 17,785 | cpp | C++ | co-op/CmdVector.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 67 | 2018-03-02T10:50:02.000Z | 2022-03-23T18:20:29.000Z | co-op/CmdVector.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | null | null | null | co-op/CmdVector.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 9 | 2018-03-01T16:38:28.000Z | 2021-03-02T16:17:09.000Z | //----------------------------------
// (c) Reliable Software 1997 - 2008
//----------------------------------
#include "precompiled.h"
#include "CmdVector.h"
#include "Commander.h"
// Code Co-op Commands
namespace Cmd
{
const Cmd::Item<Commander> Table [] =
{
{ "Program_Update", &Commander::Program_Update, ... | 94.100529 | 207 | 0.721001 |
193b13954156d2292b272b4c13f84bb937a3810a | 1,820 | cpp | C++ | Algorithms/0023.MergeKSortedLists/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0023.MergeKSortedLists/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0023.MergeKSortedLists/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <queue>
#include <vector>
#include "ListNode.h"
#include "ListNodeUtils.h"
#include "gtest/gtest.h"
using CommonLib::ListNode;
namespace
{
class Solution
{
public:
ListNode* mergeKLists(std::vector<ListNode*> const &lists)
{
auto comp = [](ListNode* left, ListNode* right){ return left->val... | 25.633803 | 118 | 0.52967 |
193b65c74c6443443efd2c4733991672729e7e86 | 1,433 | hpp | C++ | minimal_sdk/public/containers/utldict.hpp | vocweb/cso2-launcher | abc144acaa3dfb5b0c9acd61cd75970cac012617 | [
"MIT"
] | 55 | 2018-09-01T17:52:17.000Z | 2019-09-23T10:30:49.000Z | minimal_sdk/public/containers/utldict.hpp | RedheatWei/cso2-launcher | 4cebbb98d51d33bd24c9a86a1d3fc311686d5011 | [
"MIT"
] | 70 | 2018-08-22T05:53:34.000Z | 2019-09-23T15:11:39.000Z | minimal_sdk/public/containers/utldict.hpp | RedheatWei/cso2-launcher | 4cebbb98d51d33bd24c9a86a1d3fc311686d5011 | [
"MIT"
] | 39 | 2018-09-01T21:42:50.000Z | 2019-09-23T18:38:07.000Z | #pragma once
#include <cstring>
#include "containers/utlmap.hpp"
#ifdef _WIN32
#define stricmp _stricmp
#else
#define stricmp strcasecmp
#endif
inline bool CaselessStringLessThan( const char* const& lhs,
const char* const& rhs )
{
if ( !lhs )
return false;
if ( !r... | 22.046154 | 69 | 0.598046 |
193baa28349a290947ae28e4780acc661b713584 | 709 | cpp | C++ | sycl/test/on-device/xocc/disabled/broken/name_collision.cpp | mgehre-xlx/sycl | 2086745509ef4bc298d7bbec402a123dae68f25e | [
"Apache-2.0"
] | 61 | 2019-04-12T18:49:57.000Z | 2022-03-19T22:23:16.000Z | sycl/test/on-device/xocc/disabled/broken/name_collision.cpp | mgehre-xlx/sycl | 2086745509ef4bc298d7bbec402a123dae68f25e | [
"Apache-2.0"
] | 127 | 2019-04-09T00:55:50.000Z | 2022-03-21T15:35:41.000Z | sycl/test/on-device/xocc/disabled/broken/name_collision.cpp | mgehre-xlx/sycl | 2086745509ef4bc298d7bbec402a123dae68f25e | [
"Apache-2.0"
] | 10 | 2019-04-02T18:25:40.000Z | 2022-02-15T07:11:37.000Z | // REQUIRES: xocc
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// TODO should be a Sema test
#include <CL/sycl.hpp>
#include "../utilities/device_selectors.hpp"
using namespace cl::sycl;
class add_2;
int main() {
selector_defines::CompiledForDeviceSelecto... | 16.880952 | 64 | 0.57969 |
193feff6c0408370500518f0e617c3b5ca13178c | 1,929 | cpp | C++ | SDK/BP_WheelInterface_functions.cpp | alxalx14/Sea-Of-Thieves-SDK | f56a0340eb33726c98fc53eb0678fa2d59aa8294 | [
"MIT"
] | 3 | 2021-03-27T08:30:37.000Z | 2021-04-18T19:32:53.000Z | SDK/BP_WheelInterface_functions.cpp | alxalx14/Sea-Of-Thieves-SDK | f56a0340eb33726c98fc53eb0678fa2d59aa8294 | [
"MIT"
] | null | null | null | SDK/BP_WheelInterface_functions.cpp | alxalx14/Sea-Of-Thieves-SDK | f56a0340eb33726c98fc53eb0678fa2d59aa8294 | [
"MIT"
] | 1 | 2021-06-01T03:05:50.000Z | 2021-06-01T03:05:50.000Z | // Name: SeaOfThieves, Version: 2.0.23
#include "../pch.h"
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Functions
//--------------------------------------------... | 29.676923 | 183 | 0.641265 |
1943e504d831c8eac0d1a9ed4fd33283c4ceb1ea | 2,860 | hpp | C++ | bsengine/src/bstorm/logger.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/logger.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/logger.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | #pragma once
#include <bstorm/source_map.hpp>
#include <string>
#include <memory>
#include <vector>
#include <mutex>
namespace bstorm
{
class LogParam
{
public:
enum class Tag
{
TEXT,
TEXTURE,
SOUND,
MESH,
PLAYER_SHOT_DATA,
ENEMY_SHOT_DATA,
ITEM_DATA,
... | 26 | 84 | 0.654196 |
1944823fef65060394f79ec527543ef0dc6f84af | 14,712 | cpp | C++ | examples/hxhim/cli.cpp | hpc/hxhim | 1a2224a200cb5a9fae33da13720e68beb5bee746 | [
"BSD-3-Clause"
] | 2 | 2020-11-25T17:45:58.000Z | 2021-12-21T02:01:16.000Z | examples/hxhim/cli.cpp | hpc/hxhim | 1a2224a200cb5a9fae33da13720e68beb5bee746 | [
"BSD-3-Clause"
] | null | null | null | examples/hxhim/cli.cpp | hpc/hxhim | 1a2224a200cb5a9fae33da13720e68beb5bee746 | [
"BSD-3-Clause"
] | 1 | 2021-10-11T19:54:05.000Z | 2021-10-11T19:54:05.000Z | #include <cstring>
#include <ios>
#include <iostream>
#include <list>
#include <map>
#include <sstream>
#include "hxhim/hxhim.hpp"
#include "print_results.h"
#include "utils/Blob.hpp" // private header
#include "utils/memory.hpp"
enum HXHIM_OP {
PUT,
GET,
GETOP,
DEL,
BPUT,
BGET,
BGETOP,
... | 32.548673 | 178 | 0.494562 |
1946511e9585cbaf319a9816fa1f3de02358c68f | 1,085 | cc | C++ | creational/src/prototype/maze_prototype_factory.cc | rachwal/DesignPatterns | 0645544706c915a69e1ca64addba5cc14453f64c | [
"MIT"
] | 9 | 2016-08-03T16:15:57.000Z | 2021-11-08T13:15:46.000Z | creational/src/prototype/maze_prototype_factory.cc | rachwal/DesignPatterns | 0645544706c915a69e1ca64addba5cc14453f64c | [
"MIT"
] | null | null | null | creational/src/prototype/maze_prototype_factory.cc | rachwal/DesignPatterns | 0645544706c915a69e1ca64addba5cc14453f64c | [
"MIT"
] | 4 | 2016-08-03T16:16:01.000Z | 2017-12-27T05:14:55.000Z | // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
// book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
//
// Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
#include "maze_prototype_factory.h"
namespace creational
... | 24.111111 | 118 | 0.758525 |
19479dd6b3bc0d9adfe49819ccb09e8be6112570 | 1,120 | cpp | C++ | BasicRenderer/src/RenderSystem/RenderObjects/Bindable/IndexBuffer.cpp | LexSheyn/DirectX11_TEST | bcc7d09c5e24cd923decbe8f1852fd05c810a2f6 | [
"Apache-2.0"
] | null | null | null | BasicRenderer/src/RenderSystem/RenderObjects/Bindable/IndexBuffer.cpp | LexSheyn/DirectX11_TEST | bcc7d09c5e24cd923decbe8f1852fd05c810a2f6 | [
"Apache-2.0"
] | null | null | null | BasicRenderer/src/RenderSystem/RenderObjects/Bindable/IndexBuffer.cpp | LexSheyn/DirectX11_TEST | bcc7d09c5e24cd923decbe8f1852fd05c810a2f6 | [
"Apache-2.0"
] | null | null | null | #include "../../../PrecompiledHeaders/stdafx.h"
#include "IndexBuffer.h"
namespace dx11
{
// Constructors and Destructor:
IndexBuffer::IndexBuffer(RenderSystem& renderSystem, const std::vector<uint16>& indices)
: count( UINT( indices.size() ) )
{
D3D11_BUFFER_DESC index_buffer_desc = {};
index_buffer_desc.Bi... | 26.046512 | 116 | 0.755357 |
194edcd60b676d2b702caf68ea5608d0ad8ce143 | 4,462 | cpp | C++ | src/main.cpp | tsaarni/avr-high-voltage-serial-programming | 102426504dea4326896aa598a6a218b900c044fb | [
"BSD-3-Clause"
] | 27 | 2017-08-15T05:45:21.000Z | 2022-03-27T21:32:46.000Z | src/main.cpp | AA6KL/avr-high-voltage-serial-programming | 102426504dea4326896aa598a6a218b900c044fb | [
"BSD-3-Clause"
] | 1 | 2022-01-10T19:43:12.000Z | 2022-01-10T19:43:12.000Z | src/main.cpp | AA6KL/avr-high-voltage-serial-programming | 102426504dea4326896aa598a6a218b900c044fb | [
"BSD-3-Clause"
] | 11 | 2017-08-15T16:28:41.000Z | 2021-04-26T11:52:54.000Z | //
// BSD 3-Clause License
//
// Copyright (c) 2017, Tero Saarni
//
//
// This software re-programs ATtiny85 fuses using the high-voltage
// serial programming method.
//
//
// References
//
// * ATtiny85 datasheet -
// http://www.atmel.com/images/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_da... | 30.353741 | 112 | 0.680861 |
195296a7835c174b6c4a11ca841e1547ca0eb41e | 1,861 | cc | C++ | Dragon/src/operators/activation/tanh_op.cc | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 212 | 2015-07-05T07:57:17.000Z | 2022-02-27T01:55:35.000Z | Dragon/src/operators/activation/tanh_op.cc | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 6 | 2016-07-07T14:31:56.000Z | 2017-12-12T02:21:15.000Z | Dragon/src/operators/activation/tanh_op.cc | neopenx/Dragon | 0e639a7319035ddc81918bd3df059230436ee0a1 | [
"BSD-2-Clause"
] | 71 | 2016-03-24T09:02:41.000Z | 2021-06-03T01:52:41.000Z | #include "operators/activation/tanh_op.h"
#include "utils/math_functions.h"
#include "utils/op_kernel.h"
namespace dragon {
template <class Context> template <typename T>
void TanhOp<Context>::RunWithType() {
auto* Xdata = input(0).template data<T, Context>();
auto* Ydata = output(0)->template mutable_data<T,... | 30.508197 | 79 | 0.686728 |
195329a53a2f3d353f9bee89b37a3cf2abb3426d | 435 | cpp | C++ | circle_area.cpp | KhaledMahm0vd/cppexamples | c1ed91fb08a3924bd2c03dc293759dfdff8e8a55 | [
"MIT"
] | null | null | null | circle_area.cpp | KhaledMahm0vd/cppexamples | c1ed91fb08a3924bd2c03dc293759dfdff8e8a55 | [
"MIT"
] | null | null | null | circle_area.cpp | KhaledMahm0vd/cppexamples | c1ed91fb08a3924bd2c03dc293759dfdff8e8a55 | [
"MIT"
] | null | null | null | //find the area of a circle.
//circlearea.cpp
//Khaled Mahmoud, 2021.
#include <iostream>
using namespace std;
int main()
{
float rad; //float type.
const float pi = 3.14159F; //const float type.
cout<<"Enter the radius of a circle: "; //message display.
cin>>rad; //get radius.
float area ... | 27.1875 | 61 | 0.618391 |
19555fe091d99443665ad7fd7a8d939577780fcb | 4,925 | cpp | C++ | src/image_widget.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/image_widget.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/image_widget.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | /*
Copyright (C) 2003-2014 by David White <davewx7@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
incl... | 25.651042 | 104 | 0.675533 |
1958ce79e96fc3c2e4c92e2e5427e6916560a676 | 8,696 | cpp | C++ | src/engine/drawable/richtext.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/engine/drawable/richtext.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | src/engine/drawable/richtext.cpp | FoFabien/SF2DEngine | 3d10964cbdae439584c10ab427ade394d720713f | [
"Zlib"
] | null | null | null | #include "richtext.hpp"
#include <SFML/Graphics.hpp>
#include <sstream>
static std::map<sf::String, sf::Color> colors;
// same as sf::Text styles
// define them locally to redefine them for a child class for example
#define Regular 0
#define Bold 1
#define Italic 2
#define Underlined 4
// TextChunk ... | 24.426966 | 133 | 0.504715 |
1959a87e2e79912fef60d33de6eec1fc1d807a5b | 17,024 | cc | C++ | L1Trigger/L1TMuonEndCap/src/EMTFTrack2016Tools.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | L1Trigger/L1TMuonEndCap/src/EMTFTrack2016Tools.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | L1Trigger/L1TMuonEndCap/src/EMTFTrack2016Tools.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null |
#include "L1Trigger/L1TMuonEndCap/interface/EMTFTrack2016Tools.h"
namespace l1t {
void EMTFTrack2016::ImportSP( const emtf::SP _SP, int _sector) {
EMTFTrack2016::set_sector ( _sector );
EMTFTrack2016::set_sector_GMT ( calc_sector_GMT(_sector) );
EMTFTrack2016::set_mode ( _SP.Mode() ); ... | 67.288538 | 122 | 0.490954 |
195a845d8e8e2cc67adee07d0846fa4e01e7a053 | 169 | cpp | C++ | test/RegExTest.cpp | simonask/snow-deprecated | 4af5bd33481bd6e9bf516e7fa1a78c38e2ad03a1 | [
"0BSD"
] | 1 | 2015-11-05T06:07:12.000Z | 2015-11-05T06:07:12.000Z | test/RegExTest.cpp | simonask/snow-deprecated | 4af5bd33481bd6e9bf516e7fa1a78c38e2ad03a1 | [
"0BSD"
] | null | null | null | test/RegExTest.cpp | simonask/snow-deprecated | 4af5bd33481bd6e9bf516e7fa1a78c38e2ad03a1 | [
"0BSD"
] | null | null | null | #include "test.h"
#include "runtime/RegEx.h"
using namespace snow;
TEST_SUITE(RegEx);
TEST_CASE(simple_match) {
PENDING();
}
TEST_CASE(simple_search) {
PENDING();
} | 13 | 26 | 0.721893 |
195bf2eed8dbab9b50896977c600a3caebae6cab | 4,047 | hpp | C++ | src/sched/entry/write_entry.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/sched/entry/write_entry.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | src/sched/entry/write_entry.hpp | mshiryaev/oneccl | fb4bd69b0bfa72f0ed16ac2328205e51cf12d4aa | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2016-2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 29.540146 | 100 | 0.547072 |
19603e37219f2defe3844bb292c7f5ef815118a0 | 10,569 | cpp | C++ | src/domain.cpp | egdaub/fdfault | ec066f032ba109843164429aa7d9e7352485d735 | [
"MIT"
] | 12 | 2017-10-05T22:04:40.000Z | 2020-08-31T08:32:17.000Z | src/domain.cpp | jhsa26/fdfault | ec066f032ba109843164429aa7d9e7352485d735 | [
"MIT"
] | 3 | 2020-05-06T16:48:32.000Z | 2020-09-18T11:41:41.000Z | src/domain.cpp | jhsa26/fdfault | ec066f032ba109843164429aa7d9e7352485d735 | [
"MIT"
] | 12 | 2017-03-24T19:15:27.000Z | 2020-08-31T08:32:18.000Z | #include <iostream>
#include <fstream>
#include <cassert>
#include <string>
#include "block.hpp"
#include "cartesian.hpp"
#include "domain.hpp"
#include "fd.hpp"
#include "fields.hpp"
#include "friction.hpp"
#include "interface.hpp"
#include "rk.hpp"
#include "slipweak.hpp"
#include "stz.hpp"
#include <mpi.h>
using na... | 25.40625 | 118 | 0.504589 |
19615eb2b58a87deb7d55a47659c83c59f8acfb8 | 937 | hh | C++ | ImageSampleMap/imagesamplemap.hh | drewnoakes/bold-humanoid | 6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335 | [
"Apache-2.0"
] | null | null | null | ImageSampleMap/imagesamplemap.hh | drewnoakes/bold-humanoid | 6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335 | [
"Apache-2.0"
] | null | null | null | ImageSampleMap/imagesamplemap.hh | drewnoakes/bold-humanoid | 6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <functional>
#include <Eigen/Core>
typedef unsigned short ushort;
typedef unsigned char uchar;
namespace bold
{
/** Produces a map used in sub-sampling image data.
*
* A granularity function allows processing fewer than all pixels
* in the image.
*
* Granularity is calculated b... | 26.027778 | 117 | 0.712914 |
19637585ea01d69d75a6ce0307360b900e55b8fd | 1,431 | cpp | C++ | aws-cpp-sdk-lakeformation/source/model/BatchPermissionsFailureEntry.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-lakeformation/source/model/BatchPermissionsFailureEntry.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-lakeformation/source/model/BatchPermissionsFailureEntry.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/lakeformation/model/BatchPermissionsFailureEntry.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
na... | 19.08 | 90 | 0.742837 |
1963f5b09d876859feb4f7a7147f97955500b5fb | 2,013 | hpp | C++ | queues/simple_locked_queue.hpp | lundgren87/qd_library | f19c412fbe97655601c761f27dd5a16abf7aa7a6 | [
"BSD-2-Clause"
] | 10 | 2016-10-26T13:36:18.000Z | 2020-03-16T02:19:40.000Z | queues/simple_locked_queue.hpp | lundgren87/qd_library | f19c412fbe97655601c761f27dd5a16abf7aa7a6 | [
"BSD-2-Clause"
] | null | null | null | queues/simple_locked_queue.hpp | lundgren87/qd_library | f19c412fbe97655601c761f27dd5a16abf7aa7a6 | [
"BSD-2-Clause"
] | 5 | 2016-10-07T12:28:59.000Z | 2022-03-22T14:16:53.000Z | #ifndef qd_simple_locked_queue_hpp
#define qd_simple_locked_queue_hpp qd_simple_locked_queue_hpp
#include<array>
#include<cassert>
#include<mutex>
#include<queue>
class simple_locked_queue {
std::mutex lock;
std::queue<std::array<char, 128>> queue;
typedef std::lock_guard<std::mutex> scoped_guard;
typedef void(... | 26.142857 | 75 | 0.646299 |
1967025b038338dffdebb29e92ee55902368b726 | 6,878 | cpp | C++ | Tools/NodeParticleSystem2Port/Port.cpp | CarysT/medusa | 8e79f7738534d8cf60577ec42ed86621533ac269 | [
"MIT"
] | 32 | 2016-05-22T23:09:19.000Z | 2022-03-13T03:32:27.000Z | Tools/NodeParticleSystem2Port/Port.cpp | CarysT/medusa | 8e79f7738534d8cf60577ec42ed86621533ac269 | [
"MIT"
] | 2 | 2016-05-30T19:45:58.000Z | 2018-01-24T22:29:51.000Z | Tools/NodeParticleSystem2Port/Port.cpp | CarysT/medusa | 8e79f7738534d8cf60577ec42ed86621533ac269 | [
"MIT"
] | 17 | 2016-05-27T11:01:42.000Z | 2022-03-13T03:32:30.000Z | /*
Port.cpp
(c)2005 Palestar, Richard Lyle
*/
#define NODEPARTICLESYSTEM2PORT_DLL
#include "stdafx.h"
#include "Port.h"
#include "Math/Helpers.h"
#include "Tools/ScenePort/ChildFrame.h"
#include "Tools/ResourcerDoc/Port.h"
//----------------------------------------------------------------------------
IMPLEMENT_FA... | 25.664179 | 108 | 0.658476 |
19675ab5730b5e672335d8c569df4766e88cfe3f | 3,883 | cc | C++ | src/ssl_info_action.cc | jeff-cn/doogie | 1b4ed74adecbae773b51e674d298e3d5b09e4244 | [
"MIT"
] | 291 | 2017-07-19T22:32:25.000Z | 2022-02-16T03:03:21.000Z | charts/doogie-0.7.8/src/ssl_info_action.cc | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | 81 | 2017-09-06T15:46:27.000Z | 2020-11-30T14:12:11.000Z | charts/doogie-0.7.8/src/ssl_info_action.cc | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | 29 | 2017-09-18T19:14:50.000Z | 2022-01-24T06:03:17.000Z | #include "ssl_info_action.h"
namespace doogie {
SslInfoAction::SslInfoAction(const Cef& cef, BrowserWidget* browser_widg)
: QWidgetAction(browser_widg), cef_(cef), browser_widg_(browser_widg) { }
QWidget* SslInfoAction::createWidget(QWidget* parent) {
auto errored_ssl_info = browser_widg_->ErroredSslInfo();
... | 37.699029 | 77 | 0.722637 |
1967fc2cfe2e1f1dc101872396eb1497aa847e97 | 501 | hpp | C++ | comparetorfactory.hpp | cloudicen/TexasPoker | dc2c9debe38dbe811eb64540c702290ee5b0156d | [
"MIT"
] | null | null | null | comparetorfactory.hpp | cloudicen/TexasPoker | dc2c9debe38dbe811eb64540c702290ee5b0156d | [
"MIT"
] | null | null | null | comparetorfactory.hpp | cloudicen/TexasPoker | dc2c9debe38dbe811eb64540c702290ee5b0156d | [
"MIT"
] | null | null | null | #ifndef COMPARETORFACTORY_HPP
#define COMPARETORFACTORY_HPP
#include "comparetor.hpp"
#include "QPointer"
/**
* @brief The deckType enum,定义了各种牌型的枚举
*/
enum deckType{undefined,high_card,one_pair,two_pairs,three_of_a_kind,straight,flush,full_house,four_of_a_kind,straight_flush,royal_flush};
/**
* @brief The comparet... | 23.857143 | 138 | 0.802395 |
196de25f738ff244d1313b7e80e870f003bcbaa7 | 2,804 | cpp | C++ | Nacro/SDK/FN_WorkerTooltipStatsWidget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_WorkerTooltipStatsWidget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_WorkerTooltipStatsWidget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function WorkerTooltipStatsWidget.Wor... | 29.208333 | 155 | 0.731455 |
196edfd0541a5114a81b67144dfa7bcf5ddb8c42 | 1,220 | cpp | C++ | src/_DrawableMatte.cpp | veryhappythings/pgmagick | 5dce5fa4681400b4c059431ad69233e6a3e5799a | [
"MIT"
] | 136 | 2015-07-15T12:49:36.000Z | 2022-03-24T12:30:25.000Z | src/_DrawableMatte.cpp | veryhappythings/pgmagick | 5dce5fa4681400b4c059431ad69233e6a3e5799a | [
"MIT"
] | 59 | 2015-12-28T21:40:37.000Z | 2022-03-31T13:11:50.000Z | src/_DrawableMatte.cpp | veryhappythings/pgmagick | 5dce5fa4681400b4c059431ad69233e6a3e5799a | [
"MIT"
] | 33 | 2015-12-04T08:00:07.000Z | 2022-01-28T23:39:25.000Z | #include <boost/python.hpp>
#include <boost/cstdint.hpp>
#include <Magick++/Drawable.h>
#include <Magick++.h>
using namespace boost::python;
namespace {
struct Magick_DrawableMatte_Wrapper: Magick::DrawableMatte
{
Magick_DrawableMatte_Wrapper(PyObject* py_self_, double p0, double p1, Magick::PaintMethod p2):
... | 34.857143 | 178 | 0.688525 |
196f7e48086742ca2f3d80e64272b0f92a8f4057 | 4,298 | cpp | C++ | test/unittest/compiler/unittest_interpreter.cpp | gichan-jang/nntrainer | 273ca7d6ecb3077d93539b81a9d9340e0c1dc812 | [
"Apache-2.0"
] | null | null | null | test/unittest/compiler/unittest_interpreter.cpp | gichan-jang/nntrainer | 273ca7d6ecb3077d93539b81a9d9340e0c1dc812 | [
"Apache-2.0"
] | 2 | 2021-04-19T11:42:07.000Z | 2021-04-21T10:26:04.000Z | test/unittest/compiler/unittest_interpreter.cpp | gichan-jang/nntrainer | 273ca7d6ecb3077d93539b81a9d9340e0c1dc812 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2021 Jihoon Lee <jhoon.it.lee@samsung.com>
*
* @file unittest_interpreter.cpp
* @date 02 April 2021
* @brief interpreter test
* @see https://github.com/nnstreamer/nntrainer
* @author Jihoon Lee <jhoon.it.lee@samsung.com>
* @bug No known bugs except for ... | 31.837037 | 80 | 0.701489 |
197055abf1559514dd02c0f191b0e2957efbd748 | 2,495 | cpp | C++ | Source/Graphics/Renderer/Renderer.cpp | narendraumate/Sandbox | 7b7cef7a1876bfa3cfe2c79ff5e6daede1d50b13 | [
"MIT"
] | null | null | null | Source/Graphics/Renderer/Renderer.cpp | narendraumate/Sandbox | 7b7cef7a1876bfa3cfe2c79ff5e6daede1d50b13 | [
"MIT"
] | null | null | null | Source/Graphics/Renderer/Renderer.cpp | narendraumate/Sandbox | 7b7cef7a1876bfa3cfe2c79ff5e6daede1d50b13 | [
"MIT"
] | null | null | null | //
// Renderer.cpp
//
//
// Created by Narendra Umate on 9/7/13.
//
//
#include "Renderer.h"
Renderer::Renderer(const int& width, const int& height)
: m_width(width)
, m_height(height)
, m_clearColor(Color4f(0.5f, 0.5f, 0.5f, 1.0f))
, m_clearDepth(1.0f)
, m_clearStencil(1) {
}
Renderer::~Renderer() {
m_width = 0;... | 30.802469 | 287 | 0.755511 |
19739d11d88c922729740fe17fd0519600b431f7 | 2,759 | cpp | C++ | src/mupnp/soap/SOAP.cpp | cybergarage/CyberLink4CC | ccbda234b920ec88a36392102c1d5247c074a734 | [
"BSD-3-Clause"
] | null | null | null | src/mupnp/soap/SOAP.cpp | cybergarage/CyberLink4CC | ccbda234b920ec88a36392102c1d5247c074a734 | [
"BSD-3-Clause"
] | null | null | null | src/mupnp/soap/SOAP.cpp | cybergarage/CyberLink4CC | ccbda234b920ec88a36392102c1d5247c074a734 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************
*
* mUPnP for C++
*
* Copyright (C) Satoshi Konno 2002
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <string>
#include <sstream>
#include <string.... | 29.666667 | 95 | 0.576296 |
1973bcacdaee75bfcb4d0c30016fb6726d29e884 | 4,990 | cpp | C++ | _midynet/tests/test_randomgraph/test_erdosrenyi.cpp | charlesmurphy1/fast-midynet | 22071d49077fce9d5f99a4664f36767b27edea64 | [
"MIT"
] | null | null | null | _midynet/tests/test_randomgraph/test_erdosrenyi.cpp | charlesmurphy1/fast-midynet | 22071d49077fce9d5f99a4664f36767b27edea64 | [
"MIT"
] | null | null | null | _midynet/tests/test_randomgraph/test_erdosrenyi.cpp | charlesmurphy1/fast-midynet | 22071d49077fce9d5f99a4664f36767b27edea64 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <list>
#include <algorithm>
#include <string>
#include "FastMIDyNet/prior/sbm/edge_count.h"
#include "FastMIDyNet/random_graph/erdosrenyi.h"
#include "FastMIDyNet/types.h"
#include "FastMIDyNet/utility/functions.h"
#include "BaseGraph/types.h"
#include "fixtures.hpp"
using namespace ... | 32.402597 | 118 | 0.742285 |
1973c4eb8fbedd8255e7445a74b3b77d35326f97 | 411 | cpp | C++ | inv_pend_walk/test/check_foot_step_planner.cpp | AD58-3104/bipedal_training | f7bca20e12f65ed4be2a9ba93198286682642fca | [
"MIT"
] | null | null | null | inv_pend_walk/test/check_foot_step_planner.cpp | AD58-3104/bipedal_training | f7bca20e12f65ed4be2a9ba93198286682642fca | [
"MIT"
] | null | null | null | inv_pend_walk/test/check_foot_step_planner.cpp | AD58-3104/bipedal_training | f7bca20e12f65ed4be2a9ba93198286682642fca | [
"MIT"
] | null | null | null | #include "foot_step_planner.hpp"
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
#include <Eigen/Dense>
#include <Eigen/Geometry>
using namespace Eigen;
int main(int argc, char const *argv[])
{
footStepPlanner(2.0,2.0,0.30);
planAlongSpline();
system("sleep 0.1");
system("gnupl... | 22.833333 | 46 | 0.688564 |
197bac971e6f7d5e47fce66bdb276fe36a3542d7 | 930 | cpp | C++ | gtfo_testing/runtime/algorithm/count_if.cpp | TMorozovsky/Generic_Tools_for_Frequent_Operations | bbc6804e1259f53a84375316cddeb9b648359c28 | [
"MIT"
] | 1 | 2016-01-09T09:57:55.000Z | 2016-01-09T09:57:55.000Z | gtfo_testing/runtime/algorithm/count_if.cpp | TMorozovsky/Generic_Tools_for_Frequent_Operations | bbc6804e1259f53a84375316cddeb9b648359c28 | [
"MIT"
] | null | null | null | gtfo_testing/runtime/algorithm/count_if.cpp | TMorozovsky/Generic_Tools_for_Frequent_Operations | bbc6804e1259f53a84375316cddeb9b648359c28 | [
"MIT"
] | null | null | null | #include "gtfo/algorithm/count_if.hpp"
#include "gtfo_testing/runtime/runtime_tests.hpp"
using namespace gtfo::runtime_test_helpers;
namespace
{
struct Foo
{
int x;
Foo() : x(42) { }
explicit Foo(int x) : x(x) { }
};
class Bool
{
private:
bool _value;
publi... | 19.375 | 76 | 0.569892 |
197cc9254e92cdc7eba34a5f8fddbec0df721dc9 | 32,594 | cxx | C++ | private/inet/mshtml/src/site/print/headfoot.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/inet/mshtml/src/site/print/headfoot.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/inet/mshtml/src/site/print/headfoot.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Forms
// Copyright (C) Microsoft Corporation, 1992 - 1996.
//
// File: headfoot.cxx
//
// Contents: CHeaderFooterInfo
//
//----------------------------------------------------------------------------
#... | 30.604695 | 117 | 0.437289 |
1987a2b4d96cf43b2be6d2b61e9ee7692691c499 | 9,723 | cpp | C++ | ButiEngine_User/StageSelect.cpp | butibuti/CatchTheMoney | 9f80d13b753b9b62709f36ae5dbd1d5f549c5d2e | [
"MIT"
] | null | null | null | ButiEngine_User/StageSelect.cpp | butibuti/CatchTheMoney | 9f80d13b753b9b62709f36ae5dbd1d5f549c5d2e | [
"MIT"
] | null | null | null | ButiEngine_User/StageSelect.cpp | butibuti/CatchTheMoney | 9f80d13b753b9b62709f36ae5dbd1d5f549c5d2e | [
"MIT"
] | null | null | null | #include "stdafx_u.h"
#include "StageSelect.h"
#include "ParentSelectPanel.h"
#include "InputManager.h"
#include "SelectScreen.h"
#include "ShakeComponent.h"
#include "SelectPlayer.h"
#include "SceneChangeAnimation.h"
#include "GameSettings.h"
#include"PauseManager.h"
#include"Header/GameObjects/DefaultGameComponent/Ou... | 30.28972 | 168 | 0.724673 |
198a5018ac5a706b5c257b0944f7ef607a993788 | 88 | cpp | C++ | src/util/Cancellable.cpp | tacr-iotcloud/base | caa10794b965c578f596d616e9654a6a8ef2c169 | [
"BSD-3-Clause"
] | null | null | null | src/util/Cancellable.cpp | tacr-iotcloud/base | caa10794b965c578f596d616e9654a6a8ef2c169 | [
"BSD-3-Clause"
] | null | null | null | src/util/Cancellable.cpp | tacr-iotcloud/base | caa10794b965c578f596d616e9654a6a8ef2c169 | [
"BSD-3-Clause"
] | 1 | 2019-01-08T14:48:29.000Z | 2019-01-08T14:48:29.000Z | #include "util/Cancellable.h"
using namespace BeeeOn;
Cancellable::~Cancellable()
{
}
| 11 | 29 | 0.738636 |