hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11b269e83e403f11b79659bd7b27c4a7e6fbac1e | 835 | cpp | C++ | src/Engine/ModelEngine/ActorModel.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Engine/ModelEngine/ActorModel.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Engine/ModelEngine/ActorModel.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | #include "ActorModel.hpp"
ActorModel::ActorModel() :
Transform(),
flag_(0),
model_(nullptr) {}
ActorModel::ActorModel(Model const *model) :
Transform(),
flag_(0),
model_(model) {
setCenter(model->getPositionCenterRelativeToOrigin());
setInterScaling(model->getInterScaling());
}
ActorModel::ActorModel(A... | 22.567568 | 60 | 0.730539 | Jino42 |
11b8bbe7b10ff2debdb60fa20930d6570b325252 | 261 | hpp | C++ | include/EventQueue.hpp | NotThatJonSmith/CASK | f7d23d174d88e03d253e9b076e3a926345411aaf | [
"MIT"
] | 1 | 2022-02-08T02:28:29.000Z | 2022-02-08T02:28:29.000Z | include/EventQueue.hpp | NotThatJonSmith/CASK | f7d23d174d88e03d253e9b076e3a926345411aaf | [
"MIT"
] | null | null | null | include/EventQueue.hpp | NotThatJonSmith/CASK | f7d23d174d88e03d253e9b076e3a926345411aaf | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <queue>
namespace CASK {
class EventQueue {
private:
std::queue<__uint32_t> events;
public:
void EnqueueEvent(__uint32_t event);
__uint32_t DequeueEvent();
bool IsEmpty();
};
} // namespace CASK
| 11.347826 | 40 | 0.681992 | NotThatJonSmith |
11ba2099fa7a466f2889428624499854d86ca52e | 7,163 | cpp | C++ | src/utils/SVGLoader.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 228 | 2015-08-19T06:33:13.000Z | 2022-03-21T13:38:47.000Z | src/utils/SVGLoader.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 19 | 2018-06-29T17:22:39.000Z | 2022-03-11T17:48:42.000Z | src/utils/SVGLoader.cpp | suaretjorge/laser_ofx | 42d733489947c95cc83505f5708e89309f7d856f | [
"MIT"
] | 27 | 2015-11-21T02:31:51.000Z | 2022-03-20T02:25:55.000Z | //
// SVGLoader.cpp
// ofxLaser
//
// Created by Seb Lee-Delisle on 22/02/2018.
//
#include "SVGLoader.h"
bool SVGLoader::isLoading = false;
deque<SVGLoader*> SVGLoader::loadQueue;
SVGLoader::~SVGLoader() {
//stopThread();
if(isThreadRunning()) waitForThread();
};
int SVGLoader:: startLoad(string pa... | 24.281356 | 121 | 0.593327 | suaretjorge |
11be509889db0eb3b57357fb2205dfb7d453981a | 3,771 | cpp | C++ | Examples/Basics/Offscreen/Offscreen/OffscreenOffscreen.cpp | SuperflyJon/VulkanPlayground | 891b88227b66fc1e933ff77c1603e5d685d89047 | [
"MIT"
] | 2 | 2021-01-25T16:59:56.000Z | 2021-02-14T21:11:05.000Z | Examples/Basics/Offscreen/Offscreen/OffscreenOffscreen.cpp | SuperflyJon/VulkanPlayground | 891b88227b66fc1e933ff77c1603e5d685d89047 | [
"MIT"
] | null | null | null | Examples/Basics/Offscreen/Offscreen/OffscreenOffscreen.cpp | SuperflyJon/VulkanPlayground | 891b88227b66fc1e933ff77c1603e5d685d89047 | [
"MIT"
] | 1 | 2021-04-23T10:20:53.000Z | 2021-04-23T10:20:53.000Z | #include <VulkanPlayground\Includes.h>
class OffscreenOffscreenApp : public VulkanApplication3DLight
{
const float floorOffset = (10.0f / 2.0f) * .95f;
VkExtent2D offscreenExtent{ 512, 512 };
void ResetScene() override
{
CalcPositionMatrix({ 0.0f, 180.0f, 0.0f }, { -1.5f, 0, 0 }, 0, 0, model.GetModelSize());
... | 38.876289 | 214 | 0.757359 | SuperflyJon |
11c240bd9bb43565c518054b7e99012ae5fd9c3a | 54,686 | cpp | C++ | src/Gumps/Gump.cpp | Patuti/crossuo | 489f69aba501fee0408c042ef6a45ea1b5cc6c34 | [
"MIT"
] | null | null | null | src/Gumps/Gump.cpp | Patuti/crossuo | 489f69aba501fee0408c042ef6a45ea1b5cc6c34 | [
"MIT"
] | null | null | null | src/Gumps/Gump.cpp | Patuti/crossuo | 489f69aba501fee0408c042ef6a45ea1b5cc6c34 | [
"MIT"
] | null | null | null | // MIT License
// Copyright (C) August 2016 Hotride
#include "Gump.h"
#include "../CrossUO.h"
#include "../Point.h"
#include "../PressedObject.h"
#include "../SelectedObject.h"
#include "../ClickObject.h"
#include "../GameWindow.h"
#include "../Managers/FontsManager.h"
#include "../Managers/MouseManager.h"
#include ".... | 30.602126 | 100 | 0.444099 | Patuti |
11c8bd7b4f9a7daf818b6c9fe2a942b4601c26b1 | 1,185 | cpp | C++ | LTTng/QuickStart/UserSpaceTrace/hello.cpp | MiserableLife/Playground-Linux | 82c0437d3367705aa7da3eb46736bb8fb460394a | [
"MIT"
] | null | null | null | LTTng/QuickStart/UserSpaceTrace/hello.cpp | MiserableLife/Playground-Linux | 82c0437d3367705aa7da3eb46736bb8fb460394a | [
"MIT"
] | null | null | null | LTTng/QuickStart/UserSpaceTrace/hello.cpp | MiserableLife/Playground-Linux | 82c0437d3367705aa7da3eb46736bb8fb460394a | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "hello-tp.h"
int main(int argc, char *argv[])
{
int x;
puts("Hello, World!\nPress Enter to continue...");
/*
* The following getchar() call is only placed here for the purpose
* of this demonstration, to pause the application in order for
* you to have time to l... | 27.55814 | 71 | 0.604219 | MiserableLife |
11cb4f7a41aa95bed63d84c83981910e2382fc34 | 5,417 | hpp | C++ | include/codegen/include/Zenject/ZenjectBinding.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/ZenjectBinding.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/ZenjectBinding.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:45 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBehaviou... | 44.401639 | 102 | 0.720879 | Futuremappermydud |
11cc74fc1aeda0fade02a593ae23a8ec61f8f808 | 4,591 | hpp | C++ | src/Evolution/Systems/GrMhd/ValenciaDivClean/Subcell/TciOptions.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/Evolution/Systems/GrMhd/ValenciaDivClean/Subcell/TciOptions.hpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/Evolution/Systems/GrMhd/ValenciaDivClean/Subcell/TciOptions.hpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <limits>
#include <optional>
#include "DataStructures/DataBox/Tag.hpp"
#include "NumericalAlgorithms/DiscontinuousGalerkin/Tags/OptionsGroup.hpp"
#include "Options/Auto.hpp"
#include "Options/Options.hpp"
#... | 36.436508 | 80 | 0.713788 | nilsvu |
11cd28c845edbfee2d2f2d689164da6ce98fc3bb | 1,758 | hpp | C++ | OptFrame/Experimental/NSIterators/IteratorNSSeqkRoute.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 2 | 2018-05-24T11:04:12.000Z | 2020-03-03T13:37:07.000Z | OptFrame/Experimental/NSIterators/IteratorNSSeqkRoute.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | null | null | null | OptFrame/Experimental/NSIterators/IteratorNSSeqkRoute.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 1 | 2019-06-06T16:57:49.000Z | 2019-06-06T16:57:49.000Z | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 23.131579 | 88 | 0.727531 | 216k155 |
11ce986f3af140d44fda7a43eed4f2e676b7e633 | 2,360 | cpp | C++ | modules/camera_calibration/event/src/EventStream.cpp | MobilePerceptionLab/EventCameraCalibration | debd774ac989674b500caf27641b7ad4e94681e9 | [
"Apache-2.0"
] | 22 | 2021-08-06T03:21:03.000Z | 2022-02-25T03:40:54.000Z | modules/camera_calibration/event/src/EventStream.cpp | MobilePerceptionLab/EventCameraCalibration | debd774ac989674b500caf27641b7ad4e94681e9 | [
"Apache-2.0"
] | 1 | 2022-02-25T02:55:13.000Z | 2022-02-25T15:18:45.000Z | modules/camera_calibration/event/src/EventStream.cpp | MobilePerceptionLab/EventCameraCalibration | debd774ac989674b500caf27641b7ad4e94681e9 | [
"Apache-2.0"
] | 7 | 2021-08-11T12:29:35.000Z | 2022-02-25T03:41:01.000Z | //
// Created by huangkun on 2020/9/15.
//
#include <exception>
#include <iostream>
#include <opengv2/event/EventStream.hpp>
opengv2::EventStream::EventStream(const std::string &binFilePath) {
is_.open(binFilePath, std::ifstream::binary | std::ifstream::in);
if (is_.is_open()) {
istreamIterator_ = st... | 35.223881 | 107 | 0.547881 | MobilePerceptionLab |
11dcacba81e8b887d5f906a18e94d5ab8baf07ee | 688 | hpp | C++ | src/Resource/UserResource.hpp | maciejjaskiewicz/FacelinkStudio | 4bcb4ed06932546e58af4a01ee2b17e3dc45f366 | [
"MIT"
] | 1 | 2020-08-11T02:40:32.000Z | 2020-08-11T02:40:32.000Z | src/Resource/UserResource.hpp | maciejjaskiewicz/FacelinkStudio | 4bcb4ed06932546e58af4a01ee2b17e3dc45f366 | [
"MIT"
] | null | null | null | src/Resource/UserResource.hpp | maciejjaskiewicz/FacelinkStudio | 4bcb4ed06932546e58af4a01ee2b17e3dc45f366 | [
"MIT"
] | null | null | null | #pragma once
#include <Xenon/Graphics/API/Texture2D.hpp>
#include <opencv2/core/mat.hpp>
#include <opencv2/cudaimgproc.hpp>
namespace Fls
{
struct UserResource
{
int64 id;
std::string name;
std::string path;
cv::Mat pixels;
cv::cuda::GpuMat gpuPixels;
std::sha... | 20.848485 | 57 | 0.609012 | maciejjaskiewicz |
11e104ce61f79910cba5b723b7c837583211656d | 7,819 | cpp | C++ | Library_Administrator_System/bookmanagement.cpp | renzibei/TGLibrary | 5c23dafa15cc8d2eec5bf06a90cd80dedf36bf4e | [
"Apache-2.0"
] | 1 | 2018-09-11T04:58:39.000Z | 2018-09-11T04:58:39.000Z | Library_Administrator_System/bookmanagement.cpp | renzibei/TGLibrary | 5c23dafa15cc8d2eec5bf06a90cd80dedf36bf4e | [
"Apache-2.0"
] | null | null | null | Library_Administrator_System/bookmanagement.cpp | renzibei/TGLibrary | 5c23dafa15cc8d2eec5bf06a90cd80dedf36bf4e | [
"Apache-2.0"
] | null | null | null | #include "bookmanagement.h"
#include "ui_bookmanagement.h"
#include "bookoperation.h"
#include "webio.h"
#include <QMessageBox>
#include <QString>
BookManagement::BookManagement(QWidget *parent) :
QDialog(parent),
ui(new Ui::BookManagement)
{
ui->setupUi(this);
this->setAttribute(Qt::WA_DeleteOnClos... | 28.32971 | 108 | 0.646246 | renzibei |
11e3fd6a71cfc475f971fbe32f0e110923f7d719 | 1,236 | cpp | C++ | Source/CastroBld.cpp | AMReX-Astro/mini-Castro | c9ae36a944b735673ab62ff8b6ded4504e4d6278 | [
"MIT"
] | 4 | 2019-01-15T16:05:49.000Z | 2021-05-10T08:47:41.000Z | Source/CastroBld.cpp | AMReX-Astro/StarLord | c9ae36a944b735673ab62ff8b6ded4504e4d6278 | [
"MIT"
] | 14 | 2017-07-22T19:16:29.000Z | 2018-12-19T20:12:56.000Z | Source/CastroBld.cpp | AMReX-Astro/mini-Castro | c9ae36a944b735673ab62ff8b6ded4504e4d6278 | [
"MIT"
] | 4 | 2017-06-05T14:46:01.000Z | 2018-12-25T01:00:58.000Z |
#include <AMReX_LevelBld.H>
#include <Castro.H>
using namespace amrex;
class CastroBld
:
public LevelBld
{
virtual void variableSetUp () override;
virtual void variableCleanUp () override;
virtual AmrLevel *operator() () override;
virtual AmrLevel *operator() (Amr& papa,
... | 21.310345 | 65 | 0.512945 | AMReX-Astro |
eb237fb99a357813b1fccb8b7313253d3288b2c5 | 4,671 | cpp | C++ | DearPyGui/src/ui/AppItems/drawing/mvDrawImage.cpp | BadSugar/DearPyGui | 95f3f86e2efb7fbe31d76c52a1a7965d96ee9151 | [
"MIT"
] | 7,471 | 2020-08-12T13:36:38.000Z | 2022-03-31T14:50:37.000Z | DearPyGui/src/ui/AppItems/drawing/mvDrawImage.cpp | BadSugar/DearPyGui | 95f3f86e2efb7fbe31d76c52a1a7965d96ee9151 | [
"MIT"
] | 922 | 2020-08-12T21:03:42.000Z | 2022-03-31T01:19:10.000Z | DearPyGui/src/ui/AppItems/drawing/mvDrawImage.cpp | BadSugar/DearPyGui | 95f3f86e2efb7fbe31d76c52a1a7965d96ee9151 | [
"MIT"
] | 550 | 2020-08-12T21:58:55.000Z | 2022-03-30T09:09:58.000Z | #include "mvDrawImage.h"
#include "mvLog.h"
#include "mvItemRegistry.h"
#include "mvContext.h"
#include "mvPythonExceptions.h"
namespace Marvel {
mvDrawImage::mvDrawImage(mvUUID uuid)
:
mvAppItem(uuid)
{
}
void mvDrawImage::applySpecificTemplate(mvAppItem* item)
{
auto titem = static_cast<mvDrawImage*>(it... | 27.476471 | 119 | 0.655748 | BadSugar |
eb23afb8e7a58380a5e421d7a89795e3fb7713e7 | 2,221 | hpp | C++ | streamableobject.hpp | VladX/StreamlabsAssignment | 5135270ee5ce77be869a9606ae07b0db771853f1 | [
"MIT"
] | null | null | null | streamableobject.hpp | VladX/StreamlabsAssignment | 5135270ee5ce77be869a9606ae07b0db771853f1 | [
"MIT"
] | null | null | null | streamableobject.hpp | VladX/StreamlabsAssignment | 5135270ee5ce77be869a9606ae07b0db771853f1 | [
"MIT"
] | null | null | null | #pragma once
#include "streamable.hpp"
#include <memory>
#include <string>
#include <map>
#include <vector>
namespace Streamlabs {
enum StreamableObjectType {
INTEGER = 0,
FLOAT,
STRING,
VECTOR,
};
extern const std::vector<std::string> kObjectNames; // Object type names as strings
class StreamableO... | 28.113924 | 99 | 0.707339 | VladX |
eb2676654c8e4dd7040c5721f7da4725f0fae85f | 1,879 | cpp | C++ | ch-02-Container/ch-02-11.cpp | Writtic/gameProgramming | a909670f83ddb12bcff17881f080628d223bea54 | [
"MIT"
] | 2 | 2016-09-20T08:33:24.000Z | 2020-03-04T09:34:31.000Z | ch-02-Container/ch-02-11.cpp | Writtic/gameProgramming | a909670f83ddb12bcff17881f080628d223bea54 | [
"MIT"
] | null | null | null | ch-02-Container/ch-02-11.cpp | Writtic/gameProgramming | a909670f83ddb12bcff17881f080628d223bea54 | [
"MIT"
] | 1 | 2020-03-04T15:09:11.000Z | 2020-03-04T15:09:11.000Z | #include <iostream>
#include <vector>
using namespace std;
// 벡터에 숫자가 들어있을 경우
// 중간에 숫자를 추가하거나
// 벡터를 추가하거나
// 벡터를 통째로 드러내거나
int main( )
{
vector<int> v;
v.push_back(10);
v.push_back(20);
v.push_back(30);
v.push_back(40);
v.push_back(50);
vector<int>::iterator iter;
vec... | 26.842857 | 86 | 0.465141 | Writtic |
eb28f158b6ce96a1e19b48c3a5306e5dee4e1d88 | 55,866 | cpp | C++ | fallen/Source/hm.cpp | inco1/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 188 | 2017-05-20T03:26:33.000Z | 2022-03-10T16:58:39.000Z | fallen/Source/hm.cpp | dizzy2003/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 7 | 2017-05-28T14:28:13.000Z | 2022-01-09T01:47:38.000Z | fallen/Source/hm.cpp | inco1/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 43 | 2017-05-20T07:31:32.000Z | 2022-03-09T18:39:35.000Z | //
// Hypermatter!
//
#ifndef TARGET_DC
#include "game.h"
#include <MFStdLib.h>
#include <stdlib.h>
#include <hm.h>
#include <math.h>
#include "c:\fallen\ddengine\headers\message.h"
#include "c:\fallen\ddengine\headers\matrix.h"
#include "maths.h"
#include "pap.h"
#include "memory.h"
//
// How to draw a line in the... | 18.161899 | 135 | 0.559858 | inco1 |
eb2aba4d10ebc7da175320b8465097189bd773b9 | 3,122 | cc | C++ | src/whetstone/MFD3D_Electromagnetics_Surface.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/whetstone/MFD3D_Electromagnetics_Surface.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/whetstone/MFD3D_Electromagnetics_Surface.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
WhetStone, Version 2.2
Release name: naka-to.
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: Konstantin Lipnikov (li... | 24.976 | 86 | 0.566944 | fmyuan |
eb2d8fb96904ac2eff415b41e70bc36982e21c5b | 2,589 | cpp | C++ | src/main.cpp | stop-pattern/cab-v202 | 4ed4334128dfbd9c0529691a968bc776a9b4d494 | [
"MIT"
] | null | null | null | src/main.cpp | stop-pattern/cab-v202 | 4ed4334128dfbd9c0529691a968bc776a9b4d494 | [
"MIT"
] | null | null | null | src/main.cpp | stop-pattern/cab-v202 | 4ed4334128dfbd9c0529691a968bc776a9b4d494 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <vector>
#include "TR.BIDS.libs.h"
#include "data.h"
#include "define.h"
uint bidsVer = VERSION;
bool outputStatus = false;
std::vector<byte> latest = {};
BIDS bids = BIDS(&Serial);
cData storedData = cData();
void setup() {
Serial.begin(19200);
while (!Serial) delay(1);
#ifdef _D... | 21.756303 | 52 | 0.614137 | stop-pattern |
eb32428b01e1bfaad8a254c0e6227adf2fd426b9 | 3,650 | cpp | C++ | cnf_dump/main.cpp | appu226/FactorGraph | 26e4de8518874abf2696a167eaf3dbaede5930f8 | [
"MIT"
] | null | null | null | cnf_dump/main.cpp | appu226/FactorGraph | 26e4de8518874abf2696a167eaf3dbaede5930f8 | [
"MIT"
] | null | null | null | cnf_dump/main.cpp | appu226/FactorGraph | 26e4de8518874abf2696a167eaf3dbaede5930f8 | [
"MIT"
] | null | null | null | /*
Copyright 2019 Parakram Majumdar
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, ... | 28.968254 | 116 | 0.669863 | appu226 |
eb3b128ff15e84412969a96453b947e3bd7849a4 | 2,661 | cpp | C++ | hyperUI/source/3D/Object3DManager.cpp | sadcatsoft/hyperui | f26242a9034ad1e0abf54bd7691fe48809262f5b | [
"MIT"
] | 2 | 2019-05-17T16:16:21.000Z | 2019-08-21T20:18:22.000Z | hyperUI/source/3D/Object3DManager.cpp | sadcatsoft/hyperui | f26242a9034ad1e0abf54bd7691fe48809262f5b | [
"MIT"
] | 1 | 2018-10-18T22:05:12.000Z | 2018-10-18T22:05:12.000Z | hyperUI/source/3D/Object3DManager.cpp | sadcatsoft/hyperui | f26242a9034ad1e0abf54bd7691fe48809262f5b | [
"MIT"
] | null | null | null | #include "stdafx.h"
namespace HyperUI
{
/********************************************************************************************/
Object3DManager::Object3DManager()
{
}
/********************************************************************************************/
Object3DManager::~Object3DManager()
{
... | 26.61 | 105 | 0.505825 | sadcatsoft |
eb3cf456ff9e3ad2fcf4a6d7562a04584d7b6901 | 6,512 | cpp | C++ | SOURCES/ui95/cfonts.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/ui95/cfonts.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/ui95/cfonts.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #include <windows.h>
#include "chandler.h"
#ifdef _UI95_PARSER_ // List of Keywords & functions to handle them
enum
{
CFNT_NOTHING=0,
CFNT_ID,
CFNT_lfHeight,
CFNT_lfWidth,
CFNT_lfEscapement,
CFNT_lfOrientation,
CFNT_lfWeight,
CFNT_lfItalic,
CFNT_lfUnderline,
CFNT_lfStrikeOut,
CFNT_lfCharSet,
CFNT_lfOutPre... | 15.394799 | 97 | 0.658784 | IsraelyFlightSimulator |
eb3ea0b38355eaf36bb24a52ce48d1ed47b3ce4b | 2,333 | cpp | C++ | core/src/storage/disk/DiskOperation.cpp | godchen0212/milvus | 31306f660ec2eb4f459eadee856f2c1020240a53 | [
"Apache-2.0"
] | 1 | 2020-08-10T18:28:59.000Z | 2020-08-10T18:28:59.000Z | core/src/storage/disk/DiskOperation.cpp | godchen0212/milvus | 31306f660ec2eb4f459eadee856f2c1020240a53 | [
"Apache-2.0"
] | null | null | null | core/src/storage/disk/DiskOperation.cpp | godchen0212/milvus | 31306f660ec2eb4f459eadee856f2c1020240a53 | [
"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... | 31.958904 | 81 | 0.707673 | godchen0212 |
eb5118e3a93cae0fddab9094be206b7b97246662 | 11,005 | cpp | C++ | android-29/android/media/MediaCodec.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-29/android/media/MediaCodec.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/media/MediaCodec.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JArray.hpp"
#include "./AudioPresentation.hpp"
#include "./Image.hpp"
#include "./MediaCodec_BufferInfo.hpp"
#include "./MediaCodec_Callback.hpp"
#include "./MediaCodec_CryptoInfo.hpp"
#include "./MediaCodecInfo.hpp"
#include "./MediaCrypto.hpp"
#include "./MediaDescrambler.hpp"
#include "./MediaFormat.... | 21.835317 | 146 | 0.70159 | YJBeetle |
eb551b93cb9bc7f79861a5da0272e6991347cc91 | 697 | cc | C++ | src/analyzer/protocol/ftp/Plugin.cc | yaplej/bro | 1e60264548fd3bde5222c027de21c482b009ccb1 | [
"Apache-2.0"
] | 2,181 | 2015-01-01T15:31:58.000Z | 2022-03-08T22:15:19.000Z | src/analyzer/protocol/ftp/Plugin.cc | yaplej/bro | 1e60264548fd3bde5222c027de21c482b009ccb1 | [
"Apache-2.0"
] | 1,277 | 2018-12-07T17:12:15.000Z | 2022-03-31T22:56:35.000Z | src/analyzer/protocol/ftp/Plugin.cc | yaplej/bro | 1e60264548fd3bde5222c027de21c482b009ccb1 | [
"Apache-2.0"
] | 696 | 2015-01-01T20:29:40.000Z | 2022-02-06T17:39:01.000Z | // See the file in the main distribution directory for copyright.
#include "zeek/plugin/Plugin.h"
#include "zeek/analyzer/Component.h"
#include "zeek/analyzer/protocol/ftp/FTP.h"
namespace zeek::plugin::detail::Zeek_FTP
{
class Plugin : public zeek::plugin::Plugin
{
public:
zeek::plugin::Configuration Configure... | 24.892857 | 89 | 0.723099 | yaplej |
eb56f2ebf8ab8c43007882bfe5e9f59b43c3b38d | 11,005 | cpp | C++ | cpp/src/VideoOverlayDemo.cpp | npahucki/RealTimePoseEsitmationDancingGame | 45fa716d9c156187ceedff458efa2fa4c3e3c9de | [
"MIT"
] | 4 | 2019-05-08T03:53:14.000Z | 2021-10-10T13:15:44.000Z | cpp/src/VideoOverlayDemo.cpp | chunyang-zhang/RealTimePoseEsitmationDancingGame | 45fa716d9c156187ceedff458efa2fa4c3e3c9de | [
"MIT"
] | 1 | 2019-05-10T13:41:23.000Z | 2019-05-15T10:19:14.000Z | cpp/src/VideoOverlayDemo.cpp | chunyang-zhang/RealTimePoseEsitmationDancingGame | 45fa716d9c156187ceedff458efa2fa4c3e3c9de | [
"MIT"
] | 1 | 2019-05-08T03:32:54.000Z | 2019-05-08T03:32:54.000Z | //
// Created by Nathan Pahucki on 10/11/18.
//
#include <iostream>
#include "VideoOverlayDemo.h"
#include "UpperBodyRaisedHandPredictor.h"
#include "extract_utils.h"
#include <openpose/tracking/headers.hpp>
#include <VideoOverlayDemo.h>
VideoOverlayDemo::VideoOverlayDemo(const string &windowName_) : VideoPoseCaptu... | 42.821012 | 120 | 0.636165 | npahucki |
eb5705a8161d1088d6901950521f685c6dd2823b | 336 | cpp | C++ | 1d/sim_error_floord/openacc/main.reference.cpp | realincubus/clang_plugin_tests | 018e22f37baaa7c072de8d455ad16057c953fd96 | [
"MIT"
] | null | null | null | 1d/sim_error_floord/openacc/main.reference.cpp | realincubus/clang_plugin_tests | 018e22f37baaa7c072de8d455ad16057c953fd96 | [
"MIT"
] | null | null | null | 1d/sim_error_floord/openacc/main.reference.cpp | realincubus/clang_plugin_tests | 018e22f37baaa7c072de8d455ad16057c953fd96 | [
"MIT"
] | null | null | null | #include <cmath>
int main(int argc, char** argv){
int dp = 10;
int other = 10;
int x[10];
if (dp >= 2){
for (auto t1=0;t1<=std::floor( (double)(dp-2) /2);++t1) {
int sum = 0;
#pragma acc kernels
for (auto t3=0;t3<=other-1;++t3) {
sum += t3*3;
}
x[t1] = sum;
}
... | 16 | 59 | 0.464286 | realincubus |
eb612af1ea7fe2800994258a408496099c81b5a7 | 23,862 | cc | C++ | src/upr-consumer.cc | mikewied/ep-engine | c8302b874a6d5b705ff2888e9f84dd922dc0dd8a | [
"Apache-2.0"
] | null | null | null | src/upr-consumer.cc | mikewied/ep-engine | c8302b874a6d5b705ff2888e9f84dd922dc0dd8a | [
"Apache-2.0"
] | null | null | null | src/upr-consumer.cc | mikewied/ep-engine | c8302b874a6d5b705ff2888e9f84dd922dc0dd8a | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2013 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
*
* h... | 35.882707 | 81 | 0.584192 | mikewied |
eb63e91dac3558b570ba51a381dd792c4a00b1c1 | 59,799 | cpp | C++ | plugins/network/NetClass.cpp | sergey-rybalkin/FarManager | 26f8df87ee2461ed3c1da4c12b4761d958766608 | [
"BSD-3-Clause"
] | null | null | null | plugins/network/NetClass.cpp | sergey-rybalkin/FarManager | 26f8df87ee2461ed3c1da4c12b4761d958766608 | [
"BSD-3-Clause"
] | null | null | null | plugins/network/NetClass.cpp | sergey-rybalkin/FarManager | 26f8df87ee2461ed3c1da4c12b4761d958766608 | [
"BSD-3-Clause"
] | null | null | null | #include "NetCommon.hpp"
#include "NetCfg.hpp"
#include "NetFavorites.hpp"
#include "NetClass.hpp"
#include "guid.hpp"
#include <PluginSettings.hpp>
#include <DlgBuilder.hpp>
#include <SimpleString.hpp>
NetResourceList *CommonRootResources;
BOOL SavedCommonRootResources = FALSE;
static __int64 GetSetting(FARSETTINGS... | 24.161212 | 166 | 0.68446 | sergey-rybalkin |
eb685b31fd956d02cfffb90953d0aed7332dca02 | 7,299 | cpp | C++ | apps/yscnproc.cpp | cyanpencil/yocto-gl | ee0ff506e762bed1ae580e6413c2ea395ef40ac1 | [
"MIT"
] | 1 | 2018-03-14T22:43:25.000Z | 2018-03-14T22:43:25.000Z | apps/yscnproc.cpp | cyanpencil/yocto-gl | ee0ff506e762bed1ae580e6413c2ea395ef40ac1 | [
"MIT"
] | null | null | null | apps/yscnproc.cpp | cyanpencil/yocto-gl | ee0ff506e762bed1ae580e6413c2ea395ef40ac1 | [
"MIT"
] | null | null | null | //
// LICENSE:
//
// Copyright (c) 2016 -- 2017 Fabio Pellacini
//
// 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 conditio... | 34.757143 | 80 | 0.591999 | cyanpencil |
eb68870ac37f9ac64b30535c9e56b7b474d0be97 | 2,710 | cpp | C++ | turtleProgram.cpp | TabithaRoemish/CSS343_Assignment1 | 238741f2b676b657cb71ec8545b1b6b0f7932cdf | [
"Unlicense"
] | null | null | null | turtleProgram.cpp | TabithaRoemish/CSS343_Assignment1 | 238741f2b676b657cb71ec8545b1b6b0f7932cdf | [
"Unlicense"
] | null | null | null | turtleProgram.cpp | TabithaRoemish/CSS343_Assignment1 | 238741f2b676b657cb71ec8545b1b6b0f7932cdf | [
"Unlicense"
] | null | null | null | // File Name: TurtleProgram.cpp
// Programmer: Tabitha Roemish
// File contains: TurtleProgram class definitions
#include "TurtleProgram.h"
#include <iostream>
using namespace std;
//constructor
TurtleProgram::TurtleProgram(string direction, string angleOrLength)
{
turtleArray = new string[2]; //beginning length... | 21.507937 | 83 | 0.694465 | TabithaRoemish |
eb6c8507eddcb466173b93bc844e3e01a176d735 | 9,114 | cpp | C++ | riscv/llvm/3.5/cfe-3.5.0.src/test/SemaCXX/decl-microsoft-call-conv.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | null | null | null | riscv/llvm/3.5/cfe-3.5.0.src/test/SemaCXX/decl-microsoft-call-conv.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | null | null | null | riscv/llvm/3.5/cfe-3.5.0.src/test/SemaCXX/decl-microsoft-call-conv.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 1 | 2021-03-24T06:40:32.000Z | 2021-03-24T06:40:32.000Z | // RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -verify %s
// RUN: %clang_cc1 -triple i686-pc-mingw32 -verify %s
// RUN: %clang_cc1 -triple i686-pc-mingw32 -fms-extensions -verify %s
typedef void void_fun_t();
typedef void __cdecl cdecl_fun_t();
// Pointers to free functions
void free_func_default... | 38.948718 | 152 | 0.709129 | tangyibin |
eb6ef146561771bc2168224e093c45b1914351a4 | 862 | hpp | C++ | include/msqlite/detail/onerror.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | 19 | 2020-08-18T21:25:05.000Z | 2022-01-14T03:45:41.000Z | include/msqlite/detail/onerror.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | null | null | null | include/msqlite/detail/onerror.hpp | ricardocosme/msqlite | 95af5b04831c7af449f87346301b6e26bf749e9f | [
"MIT"
] | null | null | null | #pragma once
#include "msqlite/error.hpp"
#include <type_traits>
namespace msqlite::detail {
template<typename Expected,
typename F,
typename Ret =
std::invoke_result_t<F, typename std::remove_reference_t<Expected>::error_type>
>
void onerror(Expected&& exp,
F&& f,
... | 23.297297 | 88 | 0.607889 | ricardocosme |
eb706a9a5e5f79a208868260e7c9b0d6d633540d | 1,331 | hpp | C++ | components/document/support/platform_compat.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 7 | 2019-06-02T12:04:22.000Z | 2019-10-15T18:01:21.000Z | components/document/support/platform_compat.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 26 | 2019-10-27T12:58:42.000Z | 2020-05-30T16:43:48.000Z | components/document/support/platform_compat.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 1 | 2020-05-25T09:28:46.000Z | 2020-05-25T09:28:46.000Z | #pragma once
#include <components/document/core/base.hpp>
#ifdef _MSC_VER
#define NOINLINE __declspec(noinline)
#define ALWAYS_INLINE inline
#define ASSUME(cond) __assume(cond)
#define LITECORE_UNUSED
#define __typeof ... | 27.163265 | 107 | 0.602554 | jinntechio |
eb71610feddf6fa21386c0d51d519425a099abdc | 29 | cpp | C++ | projects/Vk_11/src/renderer.cpp | AnselmoGPP/Vulkan_samples | 9aaefcff024962b41539be70a9179e78856ff6a7 | [
"MIT"
] | null | null | null | projects/Vk_11/src/renderer.cpp | AnselmoGPP/Vulkan_samples | 9aaefcff024962b41539be70a9179e78856ff6a7 | [
"MIT"
] | null | null | null | projects/Vk_11/src/renderer.cpp | AnselmoGPP/Vulkan_samples | 9aaefcff024962b41539be70a9179e78856ff6a7 | [
"MIT"
] | null | null | null |
#include "renderer.hpp"
| 7.25 | 24 | 0.62069 | AnselmoGPP |
eb72277e8f1d53772dec414047f2080ff97ec505 | 262 | cpp | C++ | digitCount.cpp | terminatorx0x0/C-LanguageCode | 0a03106eb26f16ef82c4ca29791f244561ffb336 | [
"Apache-2.0"
] | null | null | null | digitCount.cpp | terminatorx0x0/C-LanguageCode | 0a03106eb26f16ef82c4ca29791f244561ffb336 | [
"Apache-2.0"
] | null | null | null | digitCount.cpp | terminatorx0x0/C-LanguageCode | 0a03106eb26f16ef82c4ca29791f244561ffb336 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<string.h>
using namespace std;
int main()
{
char c[100];
int x,i,count=0;
cout<<"Enter the number";
cin>>c;
x=strlen(c);
for ( i = 0; i < x; i++)
{
count++;
}
cout<<count;
}
| 15.411765 | 30 | 0.473282 | terminatorx0x0 |
eb86da84cfdc1aa0fd2d0c33335fdac3badc9924 | 1,187 | cpp | C++ | kdrive/src/knx/telegrams/cemi/RfAdditionalInfo.cpp | weinzierl-engineering/baos | 306acc8e86da774fdeecec042dcf99734677fdc0 | [
"MIT"
] | 34 | 2015-09-16T10:10:14.000Z | 2022-02-19T16:11:04.000Z | kdrive/src/knx/telegrams/cemi/RfAdditionalInfo.cpp | weinzierl-engineering/baos | 306acc8e86da774fdeecec042dcf99734677fdc0 | [
"MIT"
] | 17 | 2017-01-02T15:26:19.000Z | 2022-01-20T01:27:24.000Z | kdrive/src/knx/telegrams/cemi/RfAdditionalInfo.cpp | weinzierl-engineering/baos | 306acc8e86da774fdeecec042dcf99734677fdc0 | [
"MIT"
] | 20 | 2016-12-12T22:18:08.000Z | 2022-03-15T16:20:20.000Z |
#include "pch/kdrive_pch.h"
#include "kdrive/knx/telegrams/cemi/RfAdditionalInfo.h"
using namespace kdrive::knx;using namespace kdrive::knx::cemi;z7a67187a0a::
z7a67187a0a(){addFormatter(&zff3b419262);addFormatter(&z4bd60052e2);addFormatter
(&z24086b7caf);addFormatter(&z8a729e8447);addFormatter(&z1261f544f8);}
z7a6718... | 62.473684 | 80 | 0.804549 | weinzierl-engineering |
eb88cbe7a2b979ced34789b3d7f886041af0d7cd | 80 | hpp | C++ | test/hncrypt_test_providers.hpp | vladp72/hcrypt | 6f265e38d27a5c92e882a06c629aa8a2b6ad6c45 | [
"MIT"
] | 3 | 2019-09-09T04:58:51.000Z | 2022-02-02T02:24:31.000Z | test/hncrypt_test_providers.hpp | vladp72/hcrypt | 6f265e38d27a5c92e882a06c629aa8a2b6ad6c45 | [
"MIT"
] | null | null | null | test/hncrypt_test_providers.hpp | vladp72/hcrypt | 6f265e38d27a5c92e882a06c629aa8a2b6ad6c45 | [
"MIT"
] | 2 | 2021-10-19T10:28:08.000Z | 2022-02-02T05:22:44.000Z | #pragma once
#include "hcrypt_test_helpers.hpp"
void test_ncrypt_providers();
| 13.333333 | 34 | 0.8 | vladp72 |
eb8f621378f1fa43c75512d7ca17c4268992996c | 1,359 | cpp | C++ | 2dSpriteGame/Monkey/classes/mage.cpp | ScottRMcleod/CPLUSPLUS | 94352ddf374b048fab960c1e7d5b2000d08ab399 | [
"Unlicense"
] | null | null | null | 2dSpriteGame/Monkey/classes/mage.cpp | ScottRMcleod/CPLUSPLUS | 94352ddf374b048fab960c1e7d5b2000d08ab399 | [
"Unlicense"
] | null | null | null | 2dSpriteGame/Monkey/classes/mage.cpp | ScottRMcleod/CPLUSPLUS | 94352ddf374b048fab960c1e7d5b2000d08ab399 | [
"Unlicense"
] | null | null | null | #include "stdwx.h"
#include "mage.h"
#include "fireball.h"
#include "iceBall.h"
#include "level.h"
Mage::Mage(Level *l,DrawEngine *de, int s_index, float x, float y,
int lives, int mana, char spell_key, char up_key, char down_key,
char left_key, char right_key)
: Character(l,de,s_index,x,y,lives,up_ke... | 20.283582 | 74 | 0.640912 | ScottRMcleod |
eb923b30465e5a9b4b5d1cf19500b6b35f300399 | 262 | hpp | C++ | headers/Fields.hpp | BasiqueEvangelist/Purpuri | ad028d9527b7485afe0510f90b32c2dcc2689b1a | [
"MIT"
] | 7 | 2021-04-25T22:26:00.000Z | 2021-12-30T21:37:31.000Z | headers/Fields.hpp | BasiqueEvangelist/Purpuri | ad028d9527b7485afe0510f90b32c2dcc2689b1a | [
"MIT"
] | 1 | 2021-06-11T22:48:45.000Z | 2021-06-11T22:48:45.000Z | headers/Fields.hpp | BasiqueEvangelist/Purpuri | ad028d9527b7485afe0510f90b32c2dcc2689b1a | [
"MIT"
] | 4 | 2021-02-25T23:52:13.000Z | 2021-11-21T02:36:36.000Z | /**************
* GEMWIRE *
* PURPURI *
**************/
#include <stdint.h>
#include "Common.hpp"
struct FieldData {
uint16_t Access;
uint16_t Name;
uint16_t Descriptor;
uint16_t AttributeCount;
struct AttributeData* Attributes;
}; | 17.466667 | 37 | 0.587786 | BasiqueEvangelist |
eb93e0b875b1fb73293ac1a60315ddc5eacf9b99 | 929 | cpp | C++ | 0024-swap-nodes-in-pairs.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 106 | 2019-06-08T15:23:45.000Z | 2020-04-04T17:56:54.000Z | 0024-swap-nodes-in-pairs.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | null | null | null | 0024-swap-nodes-in-pairs.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 3 | 2019-07-13T05:51:29.000Z | 2020-04-04T17:56:57.000Z | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* swapPairs(ListNode* head) {
ListNode* p1 = head;
if (head == NULL) return NULL;
if (head->next == ... | 22.658537 | 46 | 0.38859 | Jamesweng |
eb96e89b5f25fd84b6d01aac27938486a3ca354e | 6,060 | cpp | C++ | src/common/InQueue.cpp | Maximus5/git-bug-1 | a52853b683dde57cbd29e943299ab46451c542f4 | [
"BSD-3-Clause"
] | 1 | 2015-05-08T22:47:13.000Z | 2015-05-08T22:47:13.000Z | src/common/InQueue.cpp | Maximus5/git-bug-1 | a52853b683dde57cbd29e943299ab46451c542f4 | [
"BSD-3-Clause"
] | null | null | null | src/common/InQueue.cpp | Maximus5/git-bug-1 | a52853b683dde57cbd29e943299ab46451c542f4 | [
"BSD-3-Clause"
] | null | null | null |
/*
Copyright (c) 2009-2012 Maximus5
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 conditions and the followin... | 29.560976 | 157 | 0.712706 | Maximus5 |
eb972e40904f382ce16f02cd927648a972ed8d9c | 2,997 | cc | C++ | src/vcash/GwMakerVcash.cc | duguyifang/btcpool | 0127a750b3b26a515e66261cbd9ad7f95c54de01 | [
"MIT"
] | 585 | 2016-08-20T22:25:49.000Z | 2021-03-11T15:13:54.000Z | src/vcash/GwMakerVcash.cc | immense055/btcpool | 0127a750b3b26a515e66261cbd9ad7f95c54de01 | [
"MIT"
] | 335 | 2016-09-22T02:58:02.000Z | 2021-03-08T07:19:13.000Z | src/vcash/GwMakerVcash.cc | immense055/btcpool | 0127a750b3b26a515e66261cbd9ad7f95c54de01 | [
"MIT"
] | 443 | 2016-08-20T17:56:54.000Z | 2021-03-11T04:10:42.000Z | /*
The MIT License (MIT)
Copyright (C) 2017 vcash Labs Ltd.
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... | 37 | 86 | 0.612279 | duguyifang |
eba0669d8be57cba5d4aa999689636595c656465 | 5,722 | cpp | C++ | tsMuxer/dvbSubStreamReader.cpp | alexls74/tsMuxer | 451ec61a50a4f6e1859e7ae3dd4b3b99729af1a6 | [
"Apache-2.0"
] | null | null | null | tsMuxer/dvbSubStreamReader.cpp | alexls74/tsMuxer | 451ec61a50a4f6e1859e7ae3dd4b3b99729af1a6 | [
"Apache-2.0"
] | null | null | null | tsMuxer/dvbSubStreamReader.cpp | alexls74/tsMuxer | 451ec61a50a4f6e1859e7ae3dd4b3b99729af1a6 | [
"Apache-2.0"
] | 1 | 2021-02-13T00:23:15.000Z | 2021-02-13T00:23:15.000Z | #include "dvbSubStreamReader.h"
#if 1
const static uint64_t TS_FREQ_TO_INT_FREQ_COEFF = INTERNAL_PTS_FREQ / PCR_FREQUENCY;
static const int BAD_FRAME = -1;
int DVBSubStreamReader::getTSDescriptor(uint8_t* dstBuff) { return 0; }
uint8_t* DVBSubStreamReader::findFrame(uint8_t* buff, uint8_t* end)
{
if (m_firstFra... | 29.647668 | 102 | 0.477106 | alexls74 |
eba120fac8036230a9f0c0175c2129f33014e4c8 | 922 | cpp | C++ | cmdstan/stan/lib/stan_math/test/unit/math/prim/arr/fun/array_builder_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/prim/arr/fun/array_builder_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/prim/arr/fun/array_builder_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/prim/arr.hpp>
#include <gtest/gtest.h>
using std::vector;
using stan::math::array_builder;
TEST(MathArray,arrayBuilder) {
EXPECT_EQ(0U, array_builder<double>().array().size());
vector<double> v3
= array_builder<double>()
.add(1)
.add(3)
.add(2)
.array();
EXPECT_EQ(3U,v3.... | 23.641026 | 56 | 0.612798 | yizhang-cae |
eba17cf674189dd15f02d921f6cafbd92f39ee0c | 8,752 | cpp | C++ | plugins/cinema4dsdk/source/other/command_test.cpp | urender-vt/cinema4d_cpp_sdk_extended | 77235d2e382d1536e0e694609929dbb74883072a | [
"Apache-2.0"
] | 23 | 2018-09-05T21:11:07.000Z | 2022-01-12T10:43:17.000Z | plugins/cinema4dsdk/source/other/command_test.cpp | urender-vt/cinema4d_cpp_sdk_extended | 77235d2e382d1536e0e694609929dbb74883072a | [
"Apache-2.0"
] | null | null | null | plugins/cinema4dsdk/source/other/command_test.cpp | urender-vt/cinema4d_cpp_sdk_extended | 77235d2e382d1536e0e694609929dbb74883072a | [
"Apache-2.0"
] | 4 | 2019-07-12T16:57:20.000Z | 2021-06-23T15:33:09.000Z | #include "c4d_basetag.h"
#include "c4d_baseobject.h"
#include "c4d_objectdata.h"
#include "c4d_basedocument.h"
#include "c4d_basedraw.h"
#include "c4d.h"
#include "main.h"
#include "command_test.h"
namespace maxon
{
class PaintObject : public ObjectData
{
INSTANCEOF(PaintObject, ObjectData)
public:
PaintObject() ... | 28.051282 | 123 | 0.715722 | urender-vt |
eba4f7072010baee076959d464199718a5dc80fd | 1,149 | cpp | C++ | SharpMedia.Graphics.Driver.Direct3D10/ServiceProcess.cpp | zigaosolin/SharpMedia | b7b594a4c9c64a03d94862877ba642b0460d1067 | [
"Apache-2.0"
] | null | null | null | SharpMedia.Graphics.Driver.Direct3D10/ServiceProcess.cpp | zigaosolin/SharpMedia | b7b594a4c9c64a03d94862877ba642b0460d1067 | [
"Apache-2.0"
] | null | null | null | SharpMedia.Graphics.Driver.Direct3D10/ServiceProcess.cpp | zigaosolin/SharpMedia | b7b594a4c9c64a03d94862877ba642b0460d1067 | [
"Apache-2.0"
] | null | null | null |
#include "GraphicsService.h"
#include "GraphicsServiceView.h"
#include "ServiceProcess.h"
namespace SharpMedia {
namespace Graphics {
namespace Driver {
namespace Direct3D10 {
D3D10ServiceProcess::D3D10ServiceProcess()
{
serviceRegistry = nullptr;
}
Services::IServiceRegistry^ D3D10ServiceProcess::ServiceReg... | 23.9375 | 147 | 0.774587 | zigaosolin |
ebaa9e021ae8464c6184a0297f29199f16483ec1 | 17,977 | cpp | C++ | src/Crash/CrashHandler.cpp | Moroque/Buffout4 | 5e15a71d1879ad481076b234621609d63ea1dae4 | [
"MIT"
] | 31 | 2020-09-12T13:17:22.000Z | 2022-03-04T20:26:13.000Z | src/Crash/CrashHandler.cpp | Nukem9/Buffout4 | b7961236e332e7991edb8b85596a64166b1bf926 | [
"MIT"
] | 3 | 2020-09-30T08:15:18.000Z | 2021-06-22T18:41:59.000Z | src/Crash/CrashHandler.cpp | Nukem9/Buffout4 | b7961236e332e7991edb8b85596a64166b1bf926 | [
"MIT"
] | 9 | 2020-09-26T01:49:00.000Z | 2022-02-10T02:59:46.000Z | #include "CrashHandler.h"
#include "Crash/Introspection/Introspection.h"
#include "Crash/Modules/ModuleHandler.h"
#define WIN32_LEAN_AND_MEAN
#define NOGDICAPMASKS
#define NOVIRTUALKEYCODES
#define NOWINMESSAGES
#define NOWINSTYLES
#define NOSYSMETRICS
#define NOMENUS
#define NOICONS
#define NOKEYSTATES
#define NOSY... | 26.87145 | 98 | 0.607387 | Moroque |
ebae31c1919b5f51254ca92da5ee65c22baaeeea | 776 | cpp | C++ | src/nfa.cpp | SuprDewd/states | 68f89c8e60767819b0b9d0218bb14f6e8b4fac89 | [
"MIT"
] | 4 | 2015-01-09T16:54:26.000Z | 2018-10-29T13:07:59.000Z | src/nfa.cpp | SuprDewd/states | 68f89c8e60767819b0b9d0218bb14f6e8b4fac89 | [
"MIT"
] | null | null | null | src/nfa.cpp | SuprDewd/states | 68f89c8e60767819b0b9d0218bb14f6e8b4fac89 | [
"MIT"
] | 2 | 2016-07-27T02:54:49.000Z | 2018-04-11T17:04:07.000Z | #include "nfa.h"
nfa* nfa_from_ast(ast_nfa *m) {
nfa *res = new nfa();
res->set_start(m->start);
for (ast_statelist::const_iterator it = m->states.begin(); it != m->states.end(); ++it) {
ast_state *state = *it;
if (state->accept) {
res->add_final(state->name);
}
... | 23.515152 | 98 | 0.451031 | SuprDewd |
ebaf5be445f916eb9125873f62d21533087da357 | 4,505 | cpp | C++ | Lucy/LucyText/Town.cpp | Tuz1e/Lucy | 284f3308e494a4544750c82f21b4a976a9938257 | [
"Apache-2.0"
] | null | null | null | Lucy/LucyText/Town.cpp | Tuz1e/Lucy | 284f3308e494a4544750c82f21b4a976a9938257 | [
"Apache-2.0"
] | null | null | null | Lucy/LucyText/Town.cpp | Tuz1e/Lucy | 284f3308e494a4544750c82f21b4a976a9938257 | [
"Apache-2.0"
] | null | null | null | #include "Town.h"
#include "ItemManager.h"
Town::Town()
{
myFirstT = true;
mySpecialDimensionCost = 25;
}
Town::~Town()
{
}
void Town::Run(const Player aPlayer)
{
myPlayer = aPlayer;
while (1)
{
Empty();
if (myFirstT)
{
Introduction();
}
else
{
myPlayer.Update();
Print("Location: " TOWNNA... | 20.201794 | 122 | 0.595339 | Tuz1e |
ebb2c9ab0d1d6feed09fa74e682880d6b650427a | 269 | cpp | C++ | system/CoreMemento.cpp | arulagrawal/cos214_project | 1ea65ac7e46b97107c0ec2a75359514bc6c98c15 | [
"BSD-2-Clause"
] | null | null | null | system/CoreMemento.cpp | arulagrawal/cos214_project | 1ea65ac7e46b97107c0ec2a75359514bc6c98c15 | [
"BSD-2-Clause"
] | null | null | null | system/CoreMemento.cpp | arulagrawal/cos214_project | 1ea65ac7e46b97107c0ec2a75359514bc6c98c15 | [
"BSD-2-Clause"
] | null | null | null | #include "CoreMemento.h"
CoreMemento::CoreMemento(int fuelWeight, bool isOn)
{
this->coreState = new CoreState(fuelWeight, isOn);
//cout << "FUEL WEIGHT: " << fuelWeight << endl;
}
CoreMemento::~CoreMemento()
{
delete this->coreState;
coreState = 0;
} | 20.692308 | 54 | 0.669145 | arulagrawal |
ebb30094a14919cdd4cf98563a194e47a2da0b11 | 1,455 | cpp | C++ | renderString.cpp | moelatt/3D_TransFormation_OpenGL | facee07358afadd338e7c99a3bb54f32eb80e91e | [
"MIT"
] | null | null | null | renderString.cpp | moelatt/3D_TransFormation_OpenGL | facee07358afadd338e7c99a3bb54f32eb80e91e | [
"MIT"
] | null | null | null | renderString.cpp | moelatt/3D_TransFormation_OpenGL | facee07358afadd338e7c99a3bb54f32eb80e91e | [
"MIT"
] | null | null | null | #include "main.h"
// Display Text
void renderString(const char* text, int length, int x, int y, int id){
glMatrixMode(GL_PROJECTION);
double *array = new double[16];
glGetDoublev(GL_PROJECTION_MATRIX,array);
glLoadIdentity();
glOrtho(0,293, 0, 294, -1,3);
glMatrixMode(GL_MODELVIEW);
glLoadI... | 30.3125 | 81 | 0.613058 | moelatt |
ebb31597082a1fe9dc20e2e477ec72e89daba4bf | 5,291 | cpp | C++ | src/subcommand/kmers_main.cpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 740 | 2016-02-23T02:31:10.000Z | 2022-03-31T20:51:36.000Z | src/subcommand/kmers_main.cpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 2,455 | 2016-02-24T08:17:45.000Z | 2022-03-31T20:19:41.000Z | src/subcommand/kmers_main.cpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 169 | 2016-03-03T15:41:33.000Z | 2022-03-31T04:01:53.000Z | /** \file kmers_main.cpp
*
* Defines the "vg kmers" subcommand, which generates the kmers in a graph.
*/
#include <omp.h>
#include <unistd.h>
#include <getopt.h>
#include <iostream>
#include <set>
#include "subcommand.hpp"
#include "../vg.hpp"
#include "../vg_set.hpp"
#include "../kmer.hpp"
using namespace std... | 29.724719 | 124 | 0.502741 | ruolin |
ebb9f9250152e37412bfc37c4d8d4dbed1399365 | 197 | cpp | C++ | src/L/L12D1.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L12D1.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L12D1.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
double arr[10];
int main(){
for(int i=0;i<6;i++) cin>>arr[i];
sort(arr,arr+6);
cout<<(arr[1]+arr[2]+arr[3]+arr[4])/4<<endl;
return 0;
}
| 19.7 | 48 | 0.568528 | wlhcode |
ebbcd7f9dc0e4be56099e08eb99ea1a3cb051e7c | 19,907 | cpp | C++ | src/libclipper/test/input_test.cpp | yujialuo/Clipper | 7269521f003b542b60d13f3a69276b62f610ef33 | [
"Apache-2.0"
] | null | null | null | src/libclipper/test/input_test.cpp | yujialuo/Clipper | 7269521f003b542b60d13f3a69276b62f610ef33 | [
"Apache-2.0"
] | null | null | null | src/libclipper/test/input_test.cpp | yujialuo/Clipper | 7269521f003b542b60d13f3a69276b62f610ef33 | [
"Apache-2.0"
] | null | null | null | #include <stdexcept>
#include <type_traits>
#include <gtest/gtest.h>
#include <clipper/datatypes.hpp>
using namespace clipper;
using std::vector;
namespace {
const unsigned long SERIALIZED_REQUEST_SIZE = 3;
const int NUM_PRIMITIVE_INPUTS = 500;
const int NUM_STRING_INPUTS = 300;
const uint8_t PRIMITIVE_INPU... | 52.525066 | 116 | 0.723665 | yujialuo |
ebbec5cf685a26b7183ce5989defac7d3d1abe40 | 12,530 | cpp | C++ | .build/egal-d-win32/src/OIS/src/win32/Win32JoyStick.old.cpp | Pength-TH/egal-D-engine | f16a8def566f678cb324bd901768d32f4412396f | [
"Apache-2.0"
] | null | null | null | .build/egal-d-win32/src/OIS/src/win32/Win32JoyStick.old.cpp | Pength-TH/egal-D-engine | f16a8def566f678cb324bd901768d32f4412396f | [
"Apache-2.0"
] | null | null | null | .build/egal-d-win32/src/OIS/src/win32/Win32JoyStick.old.cpp | Pength-TH/egal-D-engine | f16a8def566f678cb324bd901768d32f4412396f | [
"Apache-2.0"
] | null | null | null | /*
The zlib/libpng License
Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.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 t... | 31.561713 | 119 | 0.636153 | Pength-TH |
ebc4a938378d298d83d334badc82e81252ff0f63 | 2,614 | cpp | C++ | VSProject/LeetCodeSol/UnitTest/RangeSumQueryTestSuite.cpp | wangxiaotao1980/leetCodeCPP | 1806c00cd89eacddbdd20a7c33875f54400a20a8 | [
"MIT"
] | null | null | null | VSProject/LeetCodeSol/UnitTest/RangeSumQueryTestSuite.cpp | wangxiaotao1980/leetCodeCPP | 1806c00cd89eacddbdd20a7c33875f54400a20a8 | [
"MIT"
] | null | null | null | VSProject/LeetCodeSol/UnitTest/RangeSumQueryTestSuite.cpp | wangxiaotao1980/leetCodeCPP | 1806c00cd89eacddbdd20a7c33875f54400a20a8 | [
"MIT"
] | null | null | null | /*******************************************************************************************
* @file RangeSumQueryTestSuite.cpp 2015\12\10 19:10:01 $
* @author Wang Xiaotao<wangxiaotao1980@gmail.com> (中文编码测试)
* @note LeetCode No.307 Range Sum Query
***************************************************... | 31.493976 | 94 | 0.573451 | wangxiaotao1980 |
ebc4c8e1a5f7e0f84bc4da374081d185dbb157ef | 1,882 | cpp | C++ | 1030/main.cpp | Heliovic/PAT_Solutions | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | 2 | 2019-03-18T12:55:38.000Z | 2019-09-07T10:11:26.000Z | 1030/main.cpp | Heliovic/My_PAT_Answer | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | null | null | null | 1030/main.cpp | Heliovic/My_PAT_Answer | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <climits>
#include <algorithm>
#include <stack>
#define MAX_N 512
using namespace std;
int dis[MAX_N], cost[MAX_N], path[MAX_N], visit[MAX_N];
int N, M, S, D;
int graph[MAX_N][MAX_N][2];
void dijkstra(int v)
{
cost[v] = 0;
dis[v] = 0;
for (int i = 0; i < N - 1; i++)
{
... | 21.883721 | 134 | 0.392136 | Heliovic |
1b0eb356a537279bd2bb8cc73891c4d3afa32b77 | 2,536 | cpp | C++ | apps/POLite/pagerank-sync/Run.cpp | POETSII/jordmorr-tinsel | 39249538d532e4945d9916748346c261dc5ea75d | [
"BSD-2-Clause"
] | 31 | 2019-09-18T10:55:47.000Z | 2021-12-01T20:39:46.000Z | apps/POLite/pagerank-sync/Run.cpp | POETSII/jordmorr-tinsel | 39249538d532e4945d9916748346c261dc5ea75d | [
"BSD-2-Clause"
] | 26 | 2019-10-13T13:33:04.000Z | 2021-11-10T11:09:48.000Z | apps/POLite/pagerank-sync/Run.cpp | POETSII/jordmorr-tinsel | 39249538d532e4945d9916748346c261dc5ea75d | [
"BSD-2-Clause"
] | 1 | 2020-09-11T17:32:43.000Z | 2020-09-11T17:32:43.000Z | // SPDX-License-Identifier: BSD-2-Clause
#include "PageRank.h"
#include <HostLink.h>
#include <POLite.h>
#include <EdgeList.h>
#include <assert.h>
#include <iostream>
#include <sys/time.h>
int main(int argc, char **argv)
{
// Read in the example edge list and create data structure
if (argc != 2) {
printf("Spe... | 25.108911 | 77 | 0.639984 | POETSII |
1b17cd25e789caad4f5ab9957aed15e8217bbb8f | 182 | hpp | C++ | src/game/physics.hpp | carstene1ns/pekka-kana-2 | 89e9eccf267ad40773af3717b8d93b3acf783a97 | [
"MIT"
] | 55 | 2017-05-28T11:40:57.000Z | 2022-02-22T17:15:46.000Z | src/game/physics.hpp | carstene1ns/pekka-kana-2 | 89e9eccf267ad40773af3717b8d93b3acf783a97 | [
"MIT"
] | 11 | 2017-09-25T22:46:42.000Z | 2022-01-21T12:43:27.000Z | src/game/physics.hpp | carstene1ns/pekka-kana-2 | 89e9eccf267ad40773af3717b8d93b3acf783a97 | [
"MIT"
] | 21 | 2017-06-14T02:22:27.000Z | 2022-03-23T08:44:13.000Z | //#########################
//Pekka Kana 2
//Copyright (c) 2003 Janne Kivilahti
//#########################
#pragma once
int Sprite_Movement(int i);
int BonusSprite_Movement(int i); | 22.75 | 36 | 0.532967 | carstene1ns |
1b1825436230e1869a2fa2067ddf33b3c4404784 | 2,052 | cpp | C++ | timemachine/cpp/src/rmsd_align.cpp | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 91 | 2019-01-05T17:03:04.000Z | 2022-03-11T09:08:46.000Z | timemachine/cpp/src/rmsd_align.cpp | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 474 | 2019-01-07T14:33:15.000Z | 2022-03-31T19:15:12.000Z | timemachine/cpp/src/rmsd_align.cpp | proteneer/timemachine | feee9f24adcb533ab9e1c15a3f4fa4dcc9d9a701 | [
"Apache-2.0"
] | 12 | 2019-01-13T00:40:36.000Z | 2022-01-14T10:23:54.000Z | #include "rmsd_align.hpp"
#include <Eigen/Dense>
#include <iostream> // delete me
namespace timemachine {
/*
Optimally align x2 onto x1. In particular, x2 is shifted so that its centroid is placed
at the same position as the of x1's centroid. x2 is also rotated so that the RMSD
is minimized.
*/
void rmsd_align_cpu(c... | 31.090909 | 104 | 0.604776 | proteneer |
1b1bf794c85195093606d2ea98fae3a97727015a | 543 | cpp | C++ | reflection.cpp | vsoftco/snippets | 467520e285f9c83024416f050a5357bf659f4860 | [
"MIT"
] | 13 | 2015-04-21T09:09:59.000Z | 2021-11-27T11:00:40.000Z | reflection.cpp | vsoftco/snippets | 467520e285f9c83024416f050a5357bf659f4860 | [
"MIT"
] | null | null | null | reflection.cpp | vsoftco/snippets | 467520e285f9c83024416f050a5357bf659f4860 | [
"MIT"
] | 3 | 2019-08-09T09:29:59.000Z | 2021-01-09T08:52:11.000Z | // Basic compile-time reflection in C++11
#include <cstddef>
#include <iostream>
#include <typeinfo>
template <typename T>
struct Inspect;
template <typename R, typename... Args>
struct Inspect<R(Args... args)> {
using ReturnT = R; // return type
const static std::size_t Param... | 24.681818 | 78 | 0.622468 | vsoftco |
1b1c39aa93694500238e15cec1f80a04d93635d1 | 10,679 | cpp | C++ | code/engine/xrGame/alife_monster_detail_path_manager.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | code/engine/xrGame/alife_monster_detail_path_manager.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | code/engine/xrGame/alife_monster_detail_path_manager.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : alife_monster_detail_path_manager.cpp
// Created : 01.11.2005
// Modified : 22.11.2005
// Author : Dmitriy Iassenev
// Description : ALife monster detail path manager class
////////////////////////////////////////////////////... | 38.832727 | 115 | 0.631707 | InNoHurryToCode |
1b1de2d4614a40c2fef4b9cf34877ee86b1ce964 | 7,010 | cpp | C++ | Stardust/src/input/Input.cpp | LucidSigma/stardust | 7012b46b0e75fa272e0bd39f3a1cc483c29fc10c | [
"MIT"
] | 7 | 2020-10-08T11:40:53.000Z | 2022-03-30T10:40:06.000Z | Stardust/src/input/Input.cpp | LucidSigma/stardust | 7012b46b0e75fa272e0bd39f3a1cc483c29fc10c | [
"MIT"
] | 1 | 2020-10-08T11:44:27.000Z | 2020-12-01T08:43:19.000Z | Stardust/src/input/Input.cpp | LucidSigma/stardust | 7012b46b0e75fa272e0bd39f3a1cc483c29fc10c | [
"MIT"
] | null | null | null | #include "stardust/input/Input.h"
#include <algorithm>
#include <utility>
#include "stardust/debug/logging/Log.h"
#include "stardust/debug/message_box/MessageBox.h"
#include "stardust/math/Math.h"
#include "stardust/filesystem/vfs/VFS.h"
namespace stardust
{
[[nodiscard]] Status Input::InitialiseGameControllerDa... | 28.847737 | 152 | 0.646505 | LucidSigma |
1b2523928b7900f0ebd8ee852e33f3ebea9a6eb4 | 641 | cpp | C++ | Castenstein/Sky.cpp | bytecode77/castenstein | e2ebfe7f6dfec68bb09b751bf95a04d9ea2ca4a7 | [
"BSD-2-Clause"
] | 16 | 2018-07-31T19:53:37.000Z | 2022-01-23T15:44:58.000Z | Castenstein/Sky.cpp | bytecode77/castenstein | e2ebfe7f6dfec68bb09b751bf95a04d9ea2ca4a7 | [
"BSD-2-Clause"
] | null | null | null | Castenstein/Sky.cpp | bytecode77/castenstein | e2ebfe7f6dfec68bb09b751bf95a04d9ea2ca4a7 | [
"BSD-2-Clause"
] | 4 | 2020-01-24T18:35:04.000Z | 2021-09-05T16:18:02.000Z | #include "Castenstein.h"
Sky::Sky()
{
}
Sky::Sky(string path)
{
SDL_Surface *surface = Engine::LoadSDLSurface(path);
if ((surface->w & (surface->w - 1)) || (surface->h & (surface->h - 1))) throw;
Width = surface->w;
Height = surface->h;
WidthExponent = int(log2(Width));
Buffer = new int[Width * Heigh... | 20.677419 | 80 | 0.603744 | bytecode77 |
1b258dddc033ccc90851fdf2a03fe8bee54ee952 | 3,324 | hpp | C++ | Engine/Networking/NetworkSystem.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/Networking/NetworkSystem.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/Networking/NetworkSystem.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | //==============================================================================================================
//NetworkSystem.hpp
//by Albert Chen Jan-14-2016.
//==============================================================================================================
#pragma once
#ifndef _included_NetworkSyst... | 27.02439 | 112 | 0.452768 | achen889 |
1b27a771ce978644a8cf231d595181418cce6e1e | 3,036 | hpp | C++ | sprout/math/exp.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 691 | 2015-01-15T18:52:23.000Z | 2022-03-15T23:39:39.000Z | sprout/math/exp.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 22 | 2015-03-11T01:22:56.000Z | 2021-03-29T01:51:45.000Z | sprout/math/exp.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 57 | 2015-03-11T07:52:29.000Z | 2021-12-16T09:15:33.000Z | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx... | 33.362637 | 140 | 0.637022 | kevcadieux |
1b28a239c889c3ee0ad32481e5ee61c766ec193d | 6,674 | cpp | C++ | GEO/ProjectData.cpp | ThieJan/ogs5 | a05837cac4de890db18845b5bc0cb002d1ca5829 | [
"BSD-4-Clause"
] | null | null | null | GEO/ProjectData.cpp | ThieJan/ogs5 | a05837cac4de890db18845b5bc0cb002d1ca5829 | [
"BSD-4-Clause"
] | null | null | null | GEO/ProjectData.cpp | ThieJan/ogs5 | a05837cac4de890db18845b5bc0cb002d1ca5829 | [
"BSD-4-Clause"
] | null | null | null | /**
* \file ProjectData.cpp
* 25/08/2010 KR Initial implementation
* \copyright
* Copyright (c) 2018, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/licens... | 30.75576 | 114 | 0.633503 | ThieJan |
1b2b351ddd0e756bd1fe644d906cfbcda41fa396 | 14,177 | cpp | C++ | AIFS_ROS/hiperlab_rostools/src/QuadMocapRatesControl/ExampleVehicleStateMachine.cpp | muellerlab/agri-fly | 6851f2f207e73300b4ed9be7ec1c72c2f23eeef5 | [
"BSD-2-Clause"
] | 1 | 2022-03-09T21:31:49.000Z | 2022-03-09T21:31:49.000Z | AIFS_ROS/hiperlab_rostools/src/QuadMocapRatesControl/ExampleVehicleStateMachine.cpp | muellerlab/agri-fly | 6851f2f207e73300b4ed9be7ec1c72c2f23eeef5 | [
"BSD-2-Clause"
] | 4 | 2022-02-11T18:24:49.000Z | 2022-03-28T01:16:51.000Z | AIFS_ROS/hiperlab_rostools/src/QuadMocapRatesControl/ExampleVehicleStateMachine.cpp | muellerlab/agri-fly | 6851f2f207e73300b4ed9be7ec1c72c2f23eeef5 | [
"BSD-2-Clause"
] | null | null | null | #include "ExampleVehicleStateMachine.hpp"
using namespace std;
using namespace Offboard;
ExampleVehicleStateMachine::ExampleVehicleStateMachine() {
_name = "INVALID";
_id = 0;
_flightStage = StageWaitForStart;
_lastFlightStage = StageComplete;
_systemLatencyTime = 0;
_vehicleIsReadyForProgramToExit = fa... | 32.741339 | 96 | 0.579178 | muellerlab |
1b2bb45071d6890b39189d0301ce6deb8fdf96c1 | 287 | cpp | C++ | naive_simulation_works/systemc_for_dummies/half_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/half_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/half_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | #include <systemc.h>
#include "MyTestBenchMonitor.h"
void MyTestBenchMonitor::Display_Patterns()
{
cout << "At time : " << sc_time_stamp();
cout << "\ta = " << TBMonitor_a << "\tb = " << TBMonitor_b;
cout << "\tCarry = " << TBMonitor_carry << "\tSum = " << TBMonitor_sum << endl;
}
| 26.090909 | 80 | 0.620209 | VSPhaneendraPaluri |
1b2ec6d330971fcc560985d7bbd22e36761359c8 | 15,773 | cpp | C++ | usb-device.cpp | KeyboxWallet/keyboxd | 67c9103aaf48d5e83c922311acf5a4deab8c0755 | [
"MIT"
] | 2 | 2018-11-26T10:40:46.000Z | 2019-05-30T05:30:01.000Z | usb-device.cpp | KeyboxWallet/keyboxd | 67c9103aaf48d5e83c922311acf5a4deab8c0755 | [
"MIT"
] | null | null | null | usb-device.cpp | KeyboxWallet/keyboxd | 67c9103aaf48d5e83c922311acf5a4deab8c0755 | [
"MIT"
] | 1 | 2018-10-16T10:17:23.000Z | 2018-10-16T10:17:23.000Z | #include "usb-device.hpp"
#include "keybox-proto-types.h"
#include "keybox-errcodes.h"
#include "messages.pb.h"
#include "base64.h"
#include "buffer-utils.hpp"
#include <sstream>
#include "device-manager.hpp"
#include <streambuf>
struct membuf : std::streambuf
{
membuf(char *begin, char *end)
{
this->... | 28.471119 | 126 | 0.548596 | KeyboxWallet |
1b395593b2764ebfed69f0214e767ed26b8d2cf2 | 1,285 | cpp | C++ | src/Modeling/BaseMesh.cpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | src/Modeling/BaseMesh.cpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | src/Modeling/BaseMesh.cpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | #include "BaseMesh.hpp"
namespace Sarah
{
namespace Modeling
{
BaseMesh::BaseMesh(std::string p_meshName):
m_name(p_meshName),
m_vertices(),
m_faces(),
m_colors(),
m_glMesh()
{
m_vertices.push_back(geo::Vertex(-50, -50, -50));
m_colors.push_back(geo::Vertex(1, 0, 0));
m_vertices.push_back(geo::Ve... | 21.416667 | 69 | 0.642023 | fcaillaud |
1b3b67e9dc8ef2a1bbd0bc4953a39acc6c7be881 | 1,637 | cpp | C++ | seed/DSP/decimator/decimator.cpp | KrisTiasMusic/DaisyExamples | 340cca01798ada16287c2328d5a46259f40141bf | [
"MIT"
] | 1 | 2022-03-18T01:24:33.000Z | 2022-03-18T01:24:33.000Z | seed/DSP/decimator/decimator.cpp | KrisTiasMusic/DaisyExamples | 340cca01798ada16287c2328d5a46259f40141bf | [
"MIT"
] | null | null | null | seed/DSP/decimator/decimator.cpp | KrisTiasMusic/DaisyExamples | 340cca01798ada16287c2328d5a46259f40141bf | [
"MIT"
] | null | null | null | #include "daisysp.h"
#include "daisy_seed.h"
// Shortening long macro for sample rate
#ifndef sample_rate
#endif
// Interleaved audio definitions
#define LEFT (i)
#define RIGHT (i + 1)
using namespace daisysp;
using namespace daisy;
static DaisySeed seed;
static Oscillator osc;
static Decimator decim;
static Pha... | 23.724638 | 69 | 0.638363 | KrisTiasMusic |
1b3c1b899506d8e7c41f3a8a87a1bd81ca4f16ec | 21,836 | cpp | C++ | thirdparty/packaged/vmem/VirtualMem.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 5 | 2019-12-02T12:28:57.000Z | 2021-04-07T21:21:13.000Z | thirdparty/packaged/vmem/VirtualMem.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | null | null | null | thirdparty/packaged/vmem/VirtualMem.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 1 | 2020-01-09T14:25:42.000Z | 2020-01-09T14:25:42.000Z | /*
Copyright 2010 - 2017 PureDev Software Ltd. All Rights Reserved.
This file is part of VMem.
VMem is dual licensed. For use in open source software VMem can
be used under the GNU license. For use in commercial applications a
license can be purchased from PureDev Software.
If used under the GNU licen... | 32.445765 | 171 | 0.647005 | BoneCrasher |
1b4128c4a3b7ce9d758c5f003dbbf83aa7226269 | 6,890 | cpp | C++ | tests/bitmex_gateway.cpp | yyun/gamma-ray | f06971caac75c1669981b3ebb7166413ab0921fc | [
"ISC"
] | 150 | 2020-12-28T23:56:42.000Z | 2022-03-21T13:22:40.000Z | tests/bitmex_gateway.cpp | yyun/gamma-ray | f06971caac75c1669981b3ebb7166413ab0921fc | [
"ISC"
] | 6 | 2020-12-29T13:08:10.000Z | 2022-02-06T20:25:25.000Z | tests/bitmex_gateway.cpp | yyun/gamma-ray | f06971caac75c1669981b3ebb7166413ab0921fc | [
"ISC"
] | 49 | 2020-12-29T11:49:34.000Z | 2022-03-22T08:35:54.000Z | #include <iostream>
#include <unistd.h>
#include <future>
#include "doctest.h"
#include "json.hpp"
#include "bitmexws.h"
#include "bitmex_gateway.h"
#include "bitmexhttp.h"
#include "models.h"
#include "delta_parser.h"
#include "Poco/Delegate.h"
#include "Poco/DateTime.h"
#define LOG(x) (std::cout << x << std::endl)
... | 30.087336 | 170 | 0.691872 | yyun |
1b41c304cb57fb3bfd5c7d9eed84dad47a720908 | 6,630 | cpp | C++ | ql/pricingengines/vanilla/fdcirvanillaengine.cpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 3,358 | 2015-12-18T02:56:17.000Z | 2022-03-31T02:42:47.000Z | ql/pricingengines/vanilla/fdcirvanillaengine.cpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 965 | 2015-12-21T10:35:28.000Z | 2022-03-30T02:47:00.000Z | ql/pricingengines/vanilla/fdcirvanillaengine.cpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 1,663 | 2015-12-17T17:45:38.000Z | 2022-03-31T07:58:29.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2020 Lew Wei Hao
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or ... | 39.230769 | 100 | 0.667421 | jiangjiali |
1b48dde8d82f4b5b3cbfbb8c6499b8da7a5b5d11 | 7,545 | cc | C++ | src/fileio.cc | etola/kortex | 172877fde712dce2e5ecf9bc9b5ec3b86d8e085f | [
"MIT"
] | null | null | null | src/fileio.cc | etola/kortex | 172877fde712dce2e5ecf9bc9b5ec3b86d8e085f | [
"MIT"
] | null | null | null | src/fileio.cc | etola/kortex | 172877fde712dce2e5ecf9bc9b5ec3b86d8e085f | [
"MIT"
] | 4 | 2016-11-29T12:50:25.000Z | 2017-09-13T21:29:01.000Z | // ---------------------------------------------------------------------------
//
// This file is part of the <kortex> library suite
//
// Copyright (C) 2013 Engin Tola
//
// See LICENSE file for license information.
//
// author: Engin Tola
// e-mail: engintola@gmail.com
// web : http://www.engintola.com
//
// -----... | 30.795918 | 102 | 0.57389 | etola |
1b4d16251d7ea36601b902479d56e44a7edabc23 | 714 | hh | C++ | include/rootStorageManagerMessenger.hh | jvavrek/NIMB2018 | 0aaf4143db2194b9f95002c681e4f860c8c76f7a | [
"MIT"
] | 4 | 2020-06-28T02:18:53.000Z | 2022-01-17T07:54:31.000Z | include/rootStorageManagerMessenger.hh | jvavrek/NIMB2018 | 0aaf4143db2194b9f95002c681e4f860c8c76f7a | [
"MIT"
] | 3 | 2018-08-16T18:49:53.000Z | 2020-10-19T18:04:25.000Z | include/rootStorageManagerMessenger.hh | jvavrek/NIMB2018 | 0aaf4143db2194b9f95002c681e4f860c8c76f7a | [
"MIT"
] | null | null | null | #ifndef rootStorageMessenger_hh
#define rootStorageMessenger_hh 1
#include "G4UImessenger.hh"
class rootStorageManager;
class G4UIdirectory;
class G4UIcmdWithAString;
class G4UIcmdWithoutParameter;
class G4UIcmdWithADoubleAndUnit;
class G4UIcmdWithAnInteger;
class G4UIcmdWithABool;
class rootStorageManagerMessenger... | 21.636364 | 58 | 0.830532 | jvavrek |
1b4dad6417fbbcde9c859d79e779a4f3daffd404 | 8,771 | cpp | C++ | test/Matuna.OCLConvNetBackMaxPoolingTest/OCLConvNetBackMaxPoolingTest.cpp | mihed/ATML | 242fb951eea7a55846b8a18dd6abcabb26e2a1cc | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | test/Matuna.OCLConvNetBackMaxPoolingTest/OCLConvNetBackMaxPoolingTest.cpp | mihed/ATML | 242fb951eea7a55846b8a18dd6abcabb26e2a1cc | [
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2015-06-08T19:51:53.000Z | 2015-07-01T10:15:06.000Z | test/Matuna.OCLConvNetBackMaxPoolingTest/OCLConvNetBackMaxPoolingTest.cpp | mihed/ATML | 242fb951eea7a55846b8a18dd6abcabb26e2a1cc | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*
* OCLConvNetBackMaxPoolingTest.cpp
*
* Created on: Jun 23, 2015
* Author: Mikael
*/
#define CATCH_CONFIG_MAIN
#include "catch/catch.hpp"
#include "Matuna.OCLHelper/OCLHelper.h"
#include "Matuna.OCLConvNet/OCLConvNet.h"
#include "Matuna.OCLConvNet/ConvolutionLayer.h"
#include "Matuna.ConvNet/ConvolutionLayerCo... | 38.134783 | 168 | 0.718162 | mihed |
1b4f9ba62223ab6e1e075be1419ee5f4cfb4ef9a | 821 | cpp | C++ | Src/Middle/69_Sqrt.cpp | HATTER-LONG/https---github.com-HATTER-LONG-AlgorithmTraining | bd2773c066352bab46ac019cef9fbbff8761c147 | [
"Apache-2.0"
] | 2 | 2021-02-07T07:03:43.000Z | 2021-02-08T16:04:42.000Z | Src/Middle/69_Sqrt.cpp | HATTER-LONG/https---github.com-HATTER-LONG-AlgorithmTraining | bd2773c066352bab46ac019cef9fbbff8761c147 | [
"Apache-2.0"
] | null | null | null | Src/Middle/69_Sqrt.cpp | HATTER-LONG/https---github.com-HATTER-LONG-AlgorithmTraining | bd2773c066352bab46ac019cef9fbbff8761c147 | [
"Apache-2.0"
] | 1 | 2021-02-24T09:48:26.000Z | 2021-02-24T09:48:26.000Z | #include "Tools/Tools.hpp"
#include <tuple>
/*
* 题目描述
* 给定一个非负整数,求它的开方,向下取整。
*
* 输入输出样例
* 输入一个整数,输出一个整数。
*
* Input: 8
* Output: 2
* 8 的开方结果是 2.82842...,向下取整即是 2。
*/
int mySqrt2(int a)
{
long x = a;
while (x * x > a)
{
x = (x + a / x) / 2;
}
return x;
}
int mySqrt(int a)
{
... | 14.927273 | 73 | 0.45067 | HATTER-LONG |
1b508e4311b6c313811ba29a514db800ebb7c6c4 | 8,061 | cpp | C++ | libs/process/test/environment.cpp | lijgame/boost | ec2214a19cdddd1048058321a8105dd0231dac47 | [
"BSL-1.0"
] | null | null | null | libs/process/test/environment.cpp | lijgame/boost | ec2214a19cdddd1048058321a8105dd0231dac47 | [
"BSL-1.0"
] | 2 | 2021-03-20T05:38:48.000Z | 2021-03-31T20:14:11.000Z | libs/process/test/environment.cpp | lijgame/boost | ec2214a19cdddd1048058321a8105dd0231dac47 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2006, 2007 Julio M. Merino Vidal
// Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
// Copyright (c) 2009 Boris Schaeling
// Copyright (c) 2010 Felipe Tanus, Boris Schaeling
// Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
//
// Distributed under the Boost Software License, Version 1.0. (... | 32.768293 | 102 | 0.629078 | lijgame |
1b52594ff3fa86fa05c5b98986fa9770c21e3304 | 1,419 | hpp | C++ | PPmatrix/transform_view.hpp | Petkr/PPmatrix | af0d6bece21a39f837e14d9dbee3e72bbfda14b4 | [
"MIT"
] | null | null | null | PPmatrix/transform_view.hpp | Petkr/PPmatrix | af0d6bece21a39f837e14d9dbee3e72bbfda14b4 | [
"MIT"
] | null | null | null | PPmatrix/transform_view.hpp | Petkr/PPmatrix | af0d6bece21a39f837e14d9dbee3e72bbfda14b4 | [
"MIT"
] | null | null | null | #pragma once
#include "simple_view.hpp"
namespace PPmatrix
{
template <iterator BaseIterator, typename Transform>
class transform_iterator
{
compressed_pair<BaseIterator, Transform> pair;
public:
constexpr transform_iterator(BaseIterator base_iterator, Transform t)
: pair{ base_iterator, t }
{}
constexp... | 19.985915 | 73 | 0.688513 | Petkr |
1b56f7613400d53a28d750559476530c1f30af0c | 4,279 | cpp | C++ | dev/ext/noice.io/dev/src/TextReader.cpp | gnilk/yapt | 1f1d7bad26fb477b545927774f323c367c0e1dad | [
"BSD-3-Clause"
] | null | null | null | dev/ext/noice.io/dev/src/TextReader.cpp | gnilk/yapt | 1f1d7bad26fb477b545927774f323c367c0e1dad | [
"BSD-3-Clause"
] | null | null | null | dev/ext/noice.io/dev/src/TextReader.cpp | gnilk/yapt | 1f1d7bad26fb477b545927774f323c367c0e1dad | [
"BSD-3-Clause"
] | null | null | null | /*-------------------------------------------------------------------------
File : $Archive: TextReader.cpp $
Author : $Author: Fkling $
Version : $Revision: 1 $
Orginal : 2009-11-02, 15:50
Descr : Implements a class that reads text lines from a stream
Modified: $Date: $ by $Author: Fkling $
--------------------... | 20.572115 | 80 | 0.600608 | gnilk |
1b574ddcd935d9595e0fa4567a2109992f4d822a | 6,894 | cc | C++ | gui/sound_frame.cc | BradenButler/simutrans | 86f29844625119182896e0e08d7b775bc847758d | [
"Artistic-1.0"
] | null | null | null | gui/sound_frame.cc | BradenButler/simutrans | 86f29844625119182896e0e08d7b775bc847758d | [
"Artistic-1.0"
] | null | null | null | gui/sound_frame.cc | BradenButler/simutrans | 86f29844625119182896e0e08d7b775bc847758d | [
"Artistic-1.0"
] | null | null | null | /*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
/*
* Dialog for sound settings
*/
#include "sound_frame.h"
#include "../simsound.h"
#include "../dataobj/translator.h"
#include "../dataobj/environment.h"
#include "components/gui_divider.h"
#ifdef USE_FLUIDSYNTH_MI... | 28.966387 | 113 | 0.745866 | BradenButler |
1b57b5eb551716c0dbd189da443526c1cebfce8e | 8,748 | cpp | C++ | tools/src/Productizer.cpp | jmakovicka/OsmAnd-core | d18f57bb123b6c6ad0adbed0c2f4419d0e6a6610 | [
"MIT"
] | null | null | null | tools/src/Productizer.cpp | jmakovicka/OsmAnd-core | d18f57bb123b6c6ad0adbed0c2f4419d0e6a6610 | [
"MIT"
] | null | null | null | tools/src/Productizer.cpp | jmakovicka/OsmAnd-core | d18f57bb123b6c6ad0adbed0c2f4419d0e6a6610 | [
"MIT"
] | null | null | null | #include "Productizer.h"
#include <OsmAndCore/stdlib_common.h>
#include <OsmAndCore/ignore_warnings_on_external_includes.h>
#include <iomanip>
#include <OsmAndCore/restore_internal_warnings.h>
#include <OsmAndCore/QtExtensions.h>
#include <OsmAndCore/ignore_warnings_on_external_includes.h>
#include <QSet>
#include <Q... | 34.440945 | 149 | 0.633059 | jmakovicka |
1b5d35a67cfbdcaa1ea9824b36ee9d542e33591a | 1,563 | hpp | C++ | include/p12218319/ann/NeuronI.hpp | p12218319/-DEPRECIATED-neural_network | 95a4909efa6e2bbc5d6ae8f1fac5f3285a9a6cee | [
"Apache-2.0"
] | null | null | null | include/p12218319/ann/NeuronI.hpp | p12218319/-DEPRECIATED-neural_network | 95a4909efa6e2bbc5d6ae8f1fac5f3285a9a6cee | [
"Apache-2.0"
] | null | null | null | include/p12218319/ann/NeuronI.hpp | p12218319/-DEPRECIATED-neural_network | 95a4909efa6e2bbc5d6ae8f1fac5f3285a9a6cee | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2016 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 in writin... | 39.075 | 161 | 0.746641 | p12218319 |
1b6076eb4d935831523ba35736be2961bf7a0fb3 | 1,820 | cpp | C++ | src/net/ip.cpp | Vieraw/auth | 5ed546a9b65289abc91c42813f66e59e363dd2d3 | [
"MIT"
] | 2 | 2021-12-04T11:19:45.000Z | 2021-12-30T11:56:14.000Z | src/net/ip.cpp | Vieraw/auth | 5ed546a9b65289abc91c42813f66e59e363dd2d3 | [
"MIT"
] | null | null | null | src/net/ip.cpp | Vieraw/auth | 5ed546a9b65289abc91c42813f66e59e363dd2d3 | [
"MIT"
] | 1 | 2021-12-04T11:19:53.000Z | 2021-12-04T11:19:53.000Z | //
// Created by php on 28-Aug-19.
//
#include <sstream>
#include <vector>
#include "ip.h"
namespace net {
std::vector<std::string> split(const std::string &data, char separator) {
std::vector<std::string> temp{};
std::stringstream ss(data);
std::string str;
while (std::getline(s... | 21.927711 | 120 | 0.484066 | Vieraw |
1b60b039f117037614fe68c4f1170cd0a08b6ade | 8,093 | cpp | C++ | source/ParticleShader.cpp | Tomash667/carpglib | c8701b170e4e2cbdb4d52fe3b7c8529afb3e97ed | [
"MIT"
] | 4 | 2019-08-18T19:33:04.000Z | 2021-08-07T02:12:54.000Z | source/ParticleShader.cpp | Tomash667/carpglib | c8701b170e4e2cbdb4d52fe3b7c8529afb3e97ed | [
"MIT"
] | 5 | 2019-08-14T05:45:56.000Z | 2021-03-15T07:47:24.000Z | source/ParticleShader.cpp | Tomash667/carpglib | c8701b170e4e2cbdb4d52fe3b7c8529afb3e97ed | [
"MIT"
] | 2 | 2019-10-05T02:36:35.000Z | 2021-02-15T20:20:09.000Z | #include "Pch.h"
#include "ParticleShader.h"
#include "Camera.h"
#include "DirectX.h"
#include "ParticleSystem.h"
#include "Render.h"
#include "Texture.h"
struct VsGlobals
{
Matrix matCombined;
};
//=================================================================================================
ParticleShader::Par... | 28.100694 | 144 | 0.581367 | Tomash667 |
1b61edf279ba4a00f86e14591ab629c554c40e1a | 3,040 | hpp | C++ | Inception/ChaosCV/include/core/io.hpp | zjysnow/ChaosLab | 2d3a0ee36ab1ac7bd90cd3fc95e9f2e4bc5a622c | [
"BSD-3-Clause"
] | 20 | 2018-02-20T03:42:16.000Z | 2021-05-25T01:03:23.000Z | Inception/ChaosCV/include/core/io.hpp | zjysnow/ChaosLab | 2d3a0ee36ab1ac7bd90cd3fc95e9f2e4bc5a622c | [
"BSD-3-Clause"
] | 2 | 2020-11-09T14:12:44.000Z | 2021-10-31T15:11:12.000Z | Inception/ChaosCV/include/core/io.hpp | zjysnow/ChaosLab | 2d3a0ee36ab1ac7bd90cd3fc95e9f2e4bc5a622c | [
"BSD-3-Clause"
] | 6 | 2019-04-03T03:05:26.000Z | 2020-11-09T06:08:41.000Z | #pragma once
#include "core/types.hpp"
#include "core/array.hpp"
#include "core/tensor.hpp"
#ifdef _WIN32
#include <iostream>
#include <format>
namespace chaos
{
template<class Type = float>
void PrintTensor(std::ostream& stream, const Tensor& tensor)
{
const Shape& shape = tensor.shape;
const Steps& steps = ... | 26.902655 | 121 | 0.566447 | zjysnow |
1b6317ca486e9f7eb5d14999052e0256f216d4a7 | 5,559 | cpp | C++ | src/tree/lpm_cpu_tree.cpp | pbosler/lpmKokkos | c8b4a8478c08957ce70a6fbd7da00481c53414b9 | [
"BSD-3-Clause"
] | null | null | null | src/tree/lpm_cpu_tree.cpp | pbosler/lpmKokkos | c8b4a8478c08957ce70a6fbd7da00481c53414b9 | [
"BSD-3-Clause"
] | 18 | 2021-06-27T17:59:03.000Z | 2022-02-22T03:41:27.000Z | src/tree/lpm_cpu_tree.cpp | pbosler/lpmKokkos | c8b4a8478c08957ce70a6fbd7da00481c53414b9 | [
"BSD-3-Clause"
] | null | null | null | #include "tree/lpm_cpu_tree.hpp"
#include "lpm_assert.hpp"
#ifdef LPM_USE_VTK
#include "vtkPolyData.h"
#include "vtkVoxel.h"
#include "vtkCellData.h"
#include "vtkXMLPolyDataWriter.h"
#endif
#include <numeric>
#include <limits>
namespace Lpm {
namespace tree {
template <typename Geo>
CpuTree<Geo>::CpuTree(const std... | 28.953125 | 86 | 0.653355 | pbosler |
1b66705dbae3fe08c47f698a767b62cb6863442f | 349 | cpp | C++ | LeetCode/Array/remove-element.cpp | vasanth9/coding-universe | 69ffcb58af0c163689ab9893e6d1e0581e0247e0 | [
"MIT"
] | null | null | null | LeetCode/Array/remove-element.cpp | vasanth9/coding-universe | 69ffcb58af0c163689ab9893e6d1e0581e0247e0 | [
"MIT"
] | null | null | null | LeetCode/Array/remove-element.cpp | vasanth9/coding-universe | 69ffcb58af0c163689ab9893e6d1e0581e0247e0 | [
"MIT"
] | null | null | null | //leetcode.com/problems/remove-element
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
int removeElement(vector<int>& nums, int val) {
int k=0,n=nums.size();
for(int i=0;i<n;i++){
if(nums[i]!=val){
nums[k]=nums[i];
k++;
}
}
... | 20.529412 | 51 | 0.492837 | vasanth9 |
1b6683bd18dd2d67f5014993369d098972711774 | 18,237 | hpp | C++ | include/RootMotion/FinalIK/AimController.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/AimController.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/RootMotion/FinalIK/AimController.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Mo... | 47.368831 | 1,758 | 0.706531 | Fernthedev |
1b672c46a17422d9df3d1eb4f0879f8ca381ce36 | 9,111 | cpp | C++ | src/AudioEffectDelay_f32.cpp | UTSAAH/Dhwani-HA_Library | f182d8b6571d48b1e506637684844eb12e0a791c | [
"MIT"
] | null | null | null | src/AudioEffectDelay_f32.cpp | UTSAAH/Dhwani-HA_Library | f182d8b6571d48b1e506637684844eb12e0a791c | [
"MIT"
] | null | null | null | src/AudioEffectDelay_f32.cpp | UTSAAH/Dhwani-HA_Library | f182d8b6571d48b1e506637684844eb12e0a791c | [
"MIT"
] | null | null | null | /* Audio Library for Teensy 3.X
* Copyright (c) 2014, Paul Stoffregen, paul@pjrc.com
* Extended by Chip Audette, Open Audio, April 2018
*
* Development of this audio library was funded by PJRC.COM, LLC by sales of
* Teensy and Audio Adaptor boards. Please support PJRC's efforts to develop
* open source software ... | 37.804979 | 138 | 0.699155 | UTSAAH |
1b68bd9ab2aa2e53724f1c88e9600b48360b1d62 | 2,581 | cpp | C++ | InjectorTemplate/Main.cpp | JuniorDjjr/InjectorTemplate | 3f9f50a297750a299c4ef374c07cf0fa13d6b60f | [
"MIT"
] | 3 | 2020-01-25T18:53:15.000Z | 2022-03-23T09:24:43.000Z | InjectorTemplate/Main.cpp | JuniorDjjr/InjectorTemplate | 3f9f50a297750a299c4ef374c07cf0fa13d6b60f | [
"MIT"
] | null | null | null | InjectorTemplate/Main.cpp | JuniorDjjr/InjectorTemplate | 3f9f50a297750a299c4ef374c07cf0fa13d6b60f | [
"MIT"
] | 1 | 2021-11-18T16:48:26.000Z | 2021-11-18T16:48:26.000Z | /*
The base of this code is from InjectorTemplate by Junior_Djjr - MixMods.com.br
*/
#include "stdafx.h"
#include "IniReader/IniReader.h"
#include "ReadIniCustom.h"
#include "injector/injector.hpp"
#include "injector/assembly.hpp"
#include "PatchStuff.h"
#include "GameStuff.h"
#include <iostream>
#include <f... | 23.044643 | 100 | 0.573034 | JuniorDjjr |
1b6993a4c77f7287c7bb89337fbb3c8b497de676 | 1,453 | hpp | C++ | Include/Firefly/ImportSourceFiles.hpp | Intro-Ventors/Firefly | fa817785758c72f135492e9cc36daf1250169490 | [
"MIT"
] | null | null | null | Include/Firefly/ImportSourceFiles.hpp | Intro-Ventors/Firefly | fa817785758c72f135492e9cc36daf1250169490 | [
"MIT"
] | null | null | null | Include/Firefly/ImportSourceFiles.hpp | Intro-Ventors/Firefly | fa817785758c72f135492e9cc36daf1250169490 | [
"MIT"
] | null | null | null | #pragma once
/**
* This file imports all the source files from this library.
* Make sure that this file is included in ONE SOURCE FILE to compile the whole library. No additional dependencies needed.
*/
#include "Source/AssetLoaders/ImageLoader.cpp"
#include "Source/AssetLoaders/ObjLoader.cpp"
#include "Source/Ass... | 26.907407 | 123 | 0.793531 | Intro-Ventors |
1b6a7c519c8226cef9857b33fbce1e98983d7edb | 1,196 | cpp | C++ | cpp/cpp/697. Degree of an Array.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | 3 | 2021-08-07T07:01:34.000Z | 2021-08-07T07:03:02.000Z | cpp/cpp/697. Degree of an Array.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | cpp/cpp/697. Degree of an Array.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/degree-of-an-array/
// Given a non-empty array of non-negative integers nums, the degree of this array
// is defined as the maximum frequency of any one of its elements.
// Your task is to find the smallest possible length of a (contiguous) subarray of
// nums, that has the same degre... | 34.171429 | 82 | 0.506689 | longwangjhu |
1b6aa0efc77f93e38214b0a1ff25ddbdf7d7ce70 | 16,272 | hpp | C++ | rajson/conversions.hpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 19 | 2019-07-21T15:38:12.000Z | 2022-01-06T05:24:48.000Z | rajson/conversions.hpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 6 | 2019-12-07T22:12:37.000Z | 2022-01-10T22:31:48.000Z | rajson/conversions.hpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 1 | 2019-08-15T14:49:00.000Z | 2019-08-15T14:49:00.000Z | // -*- C++ -*-
// Copyright (C) 2021 Dmitry Igrishin
//
// 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,
// i... | 33.619835 | 103 | 0.705875 | dmitigr |
1b6bfd7e63c49464684dfde6cb5fba27ba3c4a94 | 1,718 | cpp | C++ | vnoj/277.5C-div2.cpp | tiozo/Training | 02cc8c4fcf68e07c16520fd05fcbfa524c171b6b | [
"MIT"
] | 1 | 2021-08-28T04:16:34.000Z | 2021-08-28T04:16:34.000Z | vnoj/277.5C-div2.cpp | tiozo/Training | 02cc8c4fcf68e07c16520fd05fcbfa524c171b6b | [
"MIT"
] | null | null | null | vnoj/277.5C-div2.cpp | tiozo/Training | 02cc8c4fcf68e07c16520fd05fcbfa524c171b6b | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <fstream>
#include <string.h>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <set>
#include <deque>
#include <utility>
#include <sstream>
#include <queue>
#include <stack>
#include <bitset>
#include <math.h>
#include <iomanip>... | 21.475 | 66 | 0.536671 | tiozo |
1b6ca293c3326f9298b57f053cce14e711878bd5 | 143 | cpp | C++ | devel/main.cpp | tonypilz/CompileTimeCStringConcatenation | beda905ae0169adc66d03716f22e37de4035e2a9 | [
"BSD-3-Clause"
] | 1 | 2019-06-02T20:08:42.000Z | 2019-06-02T20:08:42.000Z | devel/main.cpp | tonypilz/CompileTimeCStringConcatenation | beda905ae0169adc66d03716f22e37de4035e2a9 | [
"BSD-3-Clause"
] | 1 | 2019-02-03T11:36:18.000Z | 2019-02-03T11:36:18.000Z | devel/main.cpp | tonypilz/ConstexprString | beda905ae0169adc66d03716f22e37de4035e2a9 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include "ConstexprString.h"
#include "main_example.cpp"
#include "tests.h"
int main()
{
main_();
return 0;
}
| 9.533333 | 28 | 0.643357 | tonypilz |
1b79589bfa8caed14c57f9c155b1b7d5c82e7a06 | 3,768 | cpp | C++ | source/tools/Tests/prefix.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | 1 | 2017-06-06T16:02:31.000Z | 2017-06-06T16:02:31.000Z | source/tools/Tests/prefix.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | null | null | null | source/tools/Tests/prefix.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | null | null | null | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2016 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyr... | 37.68 | 81 | 0.692675 | ganboing |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.