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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
720001165d217993ba5efeb051224c27a0ede6be | 51,567 | cc | C++ | root_macros/NeutronSimulationMacro.cc | alexwenym/NEWS-G-SNOLAB-Simulation | 4f936d5dd5ed4c43e0b470ae7b0d52e29385f3d4 | [
"MIT"
] | null | null | null | root_macros/NeutronSimulationMacro.cc | alexwenym/NEWS-G-SNOLAB-Simulation | 4f936d5dd5ed4c43e0b470ae7b0d52e29385f3d4 | [
"MIT"
] | null | null | null | root_macros/NeutronSimulationMacro.cc | alexwenym/NEWS-G-SNOLAB-Simulation | 4f936d5dd5ed4c43e0b470ae7b0d52e29385f3d4 | [
"MIT"
] | null | null | null | #include "TROOT.h"
#include <TMath.h>
#include <TH1.h>
#include <TH1F.h>
#include <TH3.h>
#include <TH3F.h>
#include <TH3D.h>
#include <TH1D.h>
#include <TH2D.h>
#include <TTree.h>
#include <TFile.h>
#include <TF1.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TLatex.h>
#include <TLegend.h>
#include <TPaveLabel.... | 36.44311 | 189 | 0.604476 | alexwenym |
7201ca2ff6bc19c7c258b0a09e289f77d0cae09c | 6,965 | cpp | C++ | modules/decklink/Decklink.cpp | crocdialer/KinskiGL | 2f800c5aac04ad91e5046cb31b9dd93eaa52a67c | [
"BSL-1.0"
] | 11 | 2016-11-17T21:32:51.000Z | 2021-03-30T20:31:41.000Z | modules/decklink/Decklink.cpp | crocdialer/KinskiGL | 2f800c5aac04ad91e5046cb31b9dd93eaa52a67c | [
"BSL-1.0"
] | 1 | 2015-04-28T13:10:14.000Z | 2015-04-28T13:10:14.000Z | modules/decklink/Decklink.cpp | crocdialer/KinskiGL | 2f800c5aac04ad91e5046cb31b9dd93eaa52a67c | [
"BSL-1.0"
] | 2 | 2015-04-28T12:26:46.000Z | 2021-11-12T08:03:00.000Z | #include "Decklink.h"
#include "DeckLinkAPI.h"
#include <mutex>
namespace kinski{ namespace decklink{
class Input::Impl : public IDeckLinkInputCallback
{
public:
Impl():
m_init_complete(false),
m_dl(nullptr),
m_input(nullptr)
{
// m_ref_count = 1... | 30.021552 | 110 | 0.484853 | crocdialer |
7202b0dea2104ad5ee0d47515e98aa26081e0d8b | 665 | hpp | C++ | include/kit2d/core/Window.hpp | deianvn/kit2d | a8fd6d75cf1f8d14baabaa04903ab3fdee3b4ef5 | [
"Apache-2.0"
] | null | null | null | include/kit2d/core/Window.hpp | deianvn/kit2d | a8fd6d75cf1f8d14baabaa04903ab3fdee3b4ef5 | [
"Apache-2.0"
] | null | null | null | include/kit2d/core/Window.hpp | deianvn/kit2d | a8fd6d75cf1f8d14baabaa04903ab3fdee3b4ef5 | [
"Apache-2.0"
] | null | null | null | #ifndef KIT2D_CORE_WINDOW_HPP
#define KIT2D_CORE_WINDOW_HPP
#include <cstdint>
#include <functional>
#include "SDL2.hpp"
#include "types.hpp"
#include "Renderer.hpp"
#include "Texture.hpp"
#include "Flags.hpp"
namespace kit2d {
class Window {
public:
Window(const char* title,
int x, int y,
int w... | 18.472222 | 53 | 0.711278 | deianvn |
720436441e358c35867e206eb7e54ae5962bc4f6 | 4,784 | cpp | C++ | src/OpenLoco/Ui/TextInput.cpp | FannoFlow/OpenLoco | faa582292003d55b0cd62125420792cd5486b875 | [
"MIT"
] | 1 | 2020-05-23T20:17:13.000Z | 2020-05-23T20:17:13.000Z | src/OpenLoco/Ui/TextInput.cpp | FannoFlow/OpenLoco | faa582292003d55b0cd62125420792cd5486b875 | [
"MIT"
] | null | null | null | src/OpenLoco/Ui/TextInput.cpp | FannoFlow/OpenLoco | faa582292003d55b0cd62125420792cd5486b875 | [
"MIT"
] | null | null | null | #include "../Ui/TextInput.h"
#include "../Interop/Interop.hpp"
#include "../Localisation/StringManager.h"
#include "../Win32.h"
#ifdef _WIN32
#ifndef NOMINMAX
#define NOMINMAX
#endif
#define WIN32_LEAN_AND_MEAN
#include <shlobj.h>
#include <windows.h>
// `interface` is defined as a macro for `struct` in `windows.h`
#... | 26.142077 | 96 | 0.482232 | FannoFlow |
72087e36b9add6470ed2af0afea8f621d39e6ee9 | 2,105 | cc | C++ | src/actions/transformations/cmd_line.cc | playplaying/ModSecurity | 76ce6739bfcc5af4585cdfce063260bdccb7e68a | [
"Apache-2.0"
] | 5,094 | 2015-01-01T00:22:04.000Z | 2022-03-31T02:55:18.000Z | src/actions/transformations/cmd_line.cc | abhijitch/ModSecurity | 52958fa73c04ad6bb924497fd3d767f6e5e59411 | [
"Apache-2.0"
] | 2,041 | 2015-01-01T06:42:50.000Z | 2022-03-30T19:26:00.000Z | src/actions/transformations/cmd_line.cc | abhijitch/ModSecurity | 52958fa73c04ad6bb924497fd3d767f6e5e59411 | [
"Apache-2.0"
] | 1,364 | 2015-01-06T14:42:56.000Z | 2022-03-31T10:35:14.000Z | /*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the fil... | 23.920455 | 81 | 0.512589 | playplaying |
720a63223b376261d8c240172a8cae3d94c2f036 | 2,876 | cpp | C++ | dmengine/network/http/dmhttprequest.cpp | damao1222/dmengine | 09ab62c043a520f8f6b15eb8790c7ee56c006931 | [
"Apache-2.0"
] | null | null | null | dmengine/network/http/dmhttprequest.cpp | damao1222/dmengine | 09ab62c043a520f8f6b15eb8790c7ee56c006931 | [
"Apache-2.0"
] | null | null | null | dmengine/network/http/dmhttprequest.cpp | damao1222/dmengine | 09ab62c043a520f8f6b15eb8790c7ee56c006931 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2012-2014 Xiongfa Li, <damao1222@live.com>
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... | 21.62406 | 75 | 0.721488 | damao1222 |
720ebba799a9769306a01f22cd2ff100de75416f | 752 | hpp | C++ | addons/media/CfgUnitInsignia.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/media/CfgUnitInsignia.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/media/CfgUnitInsignia.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | class CfgUnitInsignia {
class HQ {
displayName = "Task Force Dagger Logo";
author = QAUTHOR;
texture = "z\tfd\addons\Media\images\tfd.paa";
textureVehicle = "";
};
class USASOC {
displayName = "USASOC";
author = QAUTHOR;
texture = "z\tfd\addons\Media\... | 25.066667 | 60 | 0.558511 | Task-Force-Dagger |
720ed34825c6755af0f7f80aa66d04120e297641 | 2,415 | cpp | C++ | c/photogrammetry/PhotoTri.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | 3 | 2021-06-28T21:07:58.000Z | 2021-07-02T11:21:49.000Z | c/photogrammetry/PhotoTri.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | c/photogrammetry/PhotoTri.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | /*Copyright 2002-2014 e-foto team (UERJ)
This file is part of e-foto.
e-foto 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 3 of the License, or
(at your option) any later versio... | 29.096386 | 82 | 0.672878 | e-foto |
720f79f98c6e54a8f525cd62dd5abda4e4f93c26 | 499 | cpp | C++ | WPFTencentQQ/CCodecWarpper/RequestBindMobile.cpp | alex2ching/QQConnector | e688274e466b91acdbc724a1458b3aeedb04079d | [
"MIT"
] | 10 | 2020-09-07T14:18:33.000Z | 2022-01-15T16:39:25.000Z | WPFTencentQQ/CCodecWarpper/RequestBindMobile.cpp | alex2ching/QQConnector | e688274e466b91acdbc724a1458b3aeedb04079d | [
"MIT"
] | null | null | null | WPFTencentQQ/CCodecWarpper/RequestBindMobile.cpp | alex2ching/QQConnector | e688274e466b91acdbc724a1458b3aeedb04079d | [
"MIT"
] | 5 | 2021-04-19T02:15:58.000Z | 2022-02-05T14:55:57.000Z | #include "StdAfx.h"
#include "RequestBindMobile.h"
CRequestBindMobile::CRequestBindMobile(void)
{
}
CRequestBindMobile::~CRequestBindMobile(void)
{
}
void CRequestBindMobile::readFrom(CJceInputStream& paramd)
{
}
void CRequestBindMobile::writeTo(CJceOutputStream& paramJceOutputStream)
{
paramJce... | 21.695652 | 73 | 0.747495 | alex2ching |
72158b8e41bb847f3309abba45d80b17cbf60254 | 3,346 | cpp | C++ | source/objects/decoder/types/modplugdecoder.cpp | henlo-birb/lovepotion | 3b7128f0683252915cd0178a3e028a553b01fdc1 | [
"0BSD"
] | 303 | 2016-06-20T01:07:44.000Z | 2021-04-02T09:54:51.000Z | source/objects/decoder/types/modplugdecoder.cpp | henlo-birb/lovepotion | 3b7128f0683252915cd0178a3e028a553b01fdc1 | [
"0BSD"
] | 95 | 2017-09-26T19:17:58.000Z | 2021-04-06T00:53:02.000Z | source/objects/decoder/types/modplugdecoder.cpp | henlo-birb/lovepotion | 3b7128f0683252915cd0178a3e028a553b01fdc1 | [
"0BSD"
] | 50 | 2017-07-14T06:06:46.000Z | 2020-12-25T18:19:11.000Z | #include "modplugdecoder.h"
using namespace love;
ModPlugDecoder::ModPlugDecoder(Data* data, int bufferSize) :
Decoder(data, bufferSize),
plug(0),
duration(-2.0)
{
/* set some ModPlug settings. */
this->settings.mFlags = MODPLUG_ENABLE_OVERSAMPLING | MODPLUG_ENABLE_NOISE_REDUCTION;
th... | 24.423358 | 98 | 0.595039 | henlo-birb |
7229c6c0afc73fd5def771357f5b1a8479c487e6 | 4,924 | cpp | C++ | Source/WinSandbox/PlayerControllerSystem.cpp | wradley/Freight | 91eda2ca0af64036202309f6adbf2d80c406e031 | [
"MIT"
] | null | null | null | Source/WinSandbox/PlayerControllerSystem.cpp | wradley/Freight | 91eda2ca0af64036202309f6adbf2d80c406e031 | [
"MIT"
] | null | null | null | Source/WinSandbox/PlayerControllerSystem.cpp | wradley/Freight | 91eda2ca0af64036202309f6adbf2d80c406e031 | [
"MIT"
] | null | null | null | #include "PlayerControllerSystem.hpp"
#include "Freight.hpp"
#include <glfw3.h>
PlayerControllerSystem::PlayerControllerSystem() :
mPlayerID(0), mHasPlayer(false), mInitLastXY(false),
mXPixelsMoved(0.0), mYPixelsMoved(0.0),
mPitch(0.0), mYaw(0.0)
{
}
PlayerControllerSystem::~PlayerControllerSystem()
{
}... | 37.587786 | 105 | 0.617587 | wradley |
722a2d4dcbd20a5a567508b9716d3f1da174fa53 | 4,206 | cpp | C++ | src/trace/D3DDriver/D3DInterface/IBaseTextureImp_9.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 23 | 2016-01-14T04:47:13.000Z | 2022-01-13T14:02:08.000Z | src/trace/D3DDriver/D3DInterface/IBaseTextureImp_9.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 2 | 2018-03-25T14:39:20.000Z | 2022-03-18T05:11:21.000Z | src/trace/D3DDriver/D3DInterface/IBaseTextureImp_9.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 17 | 2016-02-13T05:35:35.000Z | 2022-03-24T16:05:40.000Z | #include "Common.h"
#include "IDeviceImp_9.h"
#include "IBaseTextureImp_9.h"
IBaseTextureImp9 :: IBaseTextureImp9() {}
IBaseTextureImp9 & IBaseTextureImp9 :: getInstance() {
static IBaseTextureImp9 instance;
return instance;
}
HRESULT D3D_CALL IBaseTextureImp9 :: QueryInterface ( REFIID riid , void** ppvObj... | 37.553571 | 127 | 0.701379 | attila-sim |
723801e1f8d3dd975161df4e19834ac107416dad | 2,115 | cpp | C++ | Data Structures/Stacks/Stacks_LLImplementation.cpp | sejalsingh417/Open-DSA | dd2228abd3022f0899ded08ff3f710e51b74649f | [
"MIT"
] | 1 | 2021-10-05T15:45:42.000Z | 2021-10-05T15:45:42.000Z | Data Structures/Stacks/Stacks_LLImplementation.cpp | sejalsingh417/Open-DSA | dd2228abd3022f0899ded08ff3f710e51b74649f | [
"MIT"
] | 17 | 2021-10-05T13:47:01.000Z | 2021-11-06T13:15:42.000Z | Data Structures/Stacks/Stacks_LLImplementation.cpp | sejalsingh417/Open-DSA | dd2228abd3022f0899ded08ff3f710e51b74649f | [
"MIT"
] | 9 | 2021-10-05T07:21:09.000Z | 2021-10-20T08:31:03.000Z | #include <iostream>
#include <cstdlib>
using namespace std;
struct Node{ // Structure of the node
int val;
struct Node* next;
};
struct Node* top;
int ssize = 0; // Number of nodes in stack
bool isEmpty(){
return top == NULL;
}
... | 18.552632 | 79 | 0.373522 | sejalsingh417 |
5cfc8b1f699a080e916b5850ca7d881d3be0dc71 | 482 | hpp | C++ | src/core/application.hpp | fslobanov/arrival-udp | dba81d06e3fd7efc1acd4c380ed3abfe6a1b1add | [
"MIT"
] | null | null | null | src/core/application.hpp | fslobanov/arrival-udp | dba81d06e3fd7efc1acd4c380ed3abfe6a1b1add | [
"MIT"
] | null | null | null | src/core/application.hpp | fslobanov/arrival-udp | dba81d06e3fd7efc1acd4c380ed3abfe6a1b1add | [
"MIT"
] | null | null | null | #pragma once
#include <cassert>
#include <mutex>
#include <condition_variable>
namespace core {
class application_t final
{
public:
application_t( std::string name, signed argument_count, char ** arguments ) noexcept;
public:
void await() noexcept;
void shutdown() noexcept;
private:
enum class stat... | 14.606061 | 89 | 0.676349 | fslobanov |
5cfceb14eb4200107c8ca9d3f100b260d418af83 | 25,399 | hpp | C++ | include/llfio/v2.0/io_handle.hpp | gix/llfio | e1868e3359bc05f512f3aa6165a2f8f94ae15d74 | [
"Apache-2.0"
] | null | null | null | include/llfio/v2.0/io_handle.hpp | gix/llfio | e1868e3359bc05f512f3aa6165a2f8f94ae15d74 | [
"Apache-2.0"
] | null | null | null | include/llfio/v2.0/io_handle.hpp | gix/llfio | e1868e3359bc05f512f3aa6165a2f8f94ae15d74 | [
"Apache-2.0"
] | null | null | null | /* A handle to something
(C) 2015-2017 Niall Douglas <http://www.nedproductions.biz/> (20 commits)
File Created: Dec 2015
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 in the accompanying file
Licen... | 51.207661 | 230 | 0.749911 | gix |
cf08296ae0e90cc08d7a39639972c245536b9c85 | 1,507 | cpp | C++ | leetcode/677.map-sum-pairs.cpp | geemaple/algorithm | 68bc5032e1ee52c22ef2f2e608053484c487af54 | [
"MIT"
] | 177 | 2017-08-21T08:57:43.000Z | 2020-06-22T03:44:22.000Z | leetcode/677.map-sum-pairs.cpp | geemaple/algorithm | 68bc5032e1ee52c22ef2f2e608053484c487af54 | [
"MIT"
] | 2 | 2018-09-06T13:39:12.000Z | 2019-06-03T02:54:45.000Z | leetcode/677.map-sum-pairs.cpp | geemaple/algorithm | 68bc5032e1ee52c22ef2f2e608053484c487af54 | [
"MIT"
] | 23 | 2017-08-23T06:01:28.000Z | 2020-04-20T03:17:36.000Z | class TrieNode {
public:
unordered_map<char, TrieNode *> children;
bool isWord = false;
int sum = 0;
~TrieNode(){
for(auto it: children)
{
delete it.second;
}
}
};
class MapSum {
TrieNode *root;
public:
/** Initialize your data structure here. */
~M... | 19.320513 | 62 | 0.446583 | geemaple |
cf0f8d11c88befcf0db3b3da87ba4dae2699326a | 6,539 | cpp | C++ | src/ImageOperation/GlslBuilder.cpp | Lut1n/QuasarBell | c5b5052ac1db94d0a97fd07e512883a9fd244fd5 | [
"MIT"
] | 2 | 2021-01-31T10:06:33.000Z | 2021-03-10T13:20:15.000Z | src/ImageOperation/GlslBuilder.cpp | Lut1n/QuasarBell | c5b5052ac1db94d0a97fd07e512883a9fd244fd5 | [
"MIT"
] | null | null | null | src/ImageOperation/GlslBuilder.cpp | Lut1n/QuasarBell | c5b5052ac1db94d0a97fd07e512883a9fd244fd5 | [
"MIT"
] | null | null | null | #include "ImageOperation/GlslBuilder.hpp"
//--------------------------------------------------------------
std::string qb::uv(size_t i)
{
return std::string("uv") + std::to_string(i);
}
//--------------------------------------------------------------
std::string qb::va(size_t i)
{
return std::strin... | 30.413953 | 100 | 0.43187 | Lut1n |
cf0f8d6aea0bed79b3853a6a47ef8770ef47869d | 2,737 | hpp | C++ | include/native/async.hpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 16 | 2016-03-16T22:16:18.000Z | 2021-04-05T04:46:38.000Z | include/native/async.hpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 11 | 2016-03-16T22:02:26.000Z | 2021-04-04T02:20:51.000Z | include/native/async.hpp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 5 | 2016-03-22T14:03:34.000Z | 2021-01-06T18:08:46.000Z | #ifndef __NATIVE_ASYNC_HPP__
#define __NATIVE_ASYNC_HPP__
#include "async/ActionCallback.hpp"
#include "async/ActionCallbackBase.hpp"
#include "async/ActionCallbackError.hpp"
#include "async/ActionCallbackFinally.hpp"
#include "async/Future.hpp"
#include "async/FutureError.hpp"
#include "async/FutureShared.hpp"
#inclu... | 40.850746 | 120 | 0.706248 | nodenative |
cf10ed8e73ddbd0be3cd218fd36bf1992484c908 | 4,206 | cpp | C++ | Pseudo-Drifter/Engine.cpp | WerenskjoldH/Pseudo-Drifter | e9b09baa540372276608270dbfa14d5dd7e72639 | [
"Unlicense"
] | 1 | 2019-11-22T15:56:56.000Z | 2019-11-22T15:56:56.000Z | Pseudo-Drifter/Engine.cpp | WerenskjoldH/Pseudo-Drifter | e9b09baa540372276608270dbfa14d5dd7e72639 | [
"Unlicense"
] | null | null | null | Pseudo-Drifter/Engine.cpp | WerenskjoldH/Pseudo-Drifter | e9b09baa540372276608270dbfa14d5dd7e72639 | [
"Unlicense"
] | null | null | null | #include "Engine.h"
#include "ConsoleColorer.h"
#include "GfxHelper.h"
#include "Definitions.h"
#include "InputManager.h"
#include "Road.h"
#include "Player.h"
#include "Camera.h"
#include "DrawableSystem.h"
#include "PhysicsSystem.h"
#include "EntityFactory.h"
// Global variable(s)
InputManager* G_INPUT = nullptr;... | 22.983607 | 160 | 0.720637 | WerenskjoldH |
cf168073f707a515ebacc178b3e3486bacd956bb | 461 | cpp | C++ | db/common/split.cpp | liuyuan185442111/misc | 26920202198658c21784d25ab33e1b245d28ca12 | [
"Apache-2.0"
] | 1 | 2021-01-23T09:24:35.000Z | 2021-01-23T09:24:35.000Z | db/common/split.cpp | liuyuan185442111/misc | 26920202198658c21784d25ab33e1b245d28ca12 | [
"Apache-2.0"
] | null | null | null | db/common/split.cpp | liuyuan185442111/misc | 26920202198658c21784d25ab33e1b245d28ca12 | [
"Apache-2.0"
] | null | null | null | /**
* <string.h>中的strtok会修改传入的字符串, 线程不安全, 无法同时解析两个不同的字符串.
* 这里以strtok为蓝本写一个新的函数SplitString.
*/
#include <cstring>
#include <string>
#include <vector>
namespace lcore {
void SplitString(std::vector<std::string> &strs, const char *str, const char *token)
{
strs.clear();
for(const char *send = str;;)
{
str += s... | 20.954545 | 84 | 0.661605 | liuyuan185442111 |
cf1b1e98278ffea5ea7b762fceaebd4893528a09 | 3,120 | hpp | C++ | include/sgfx/Point.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | include/sgfx/Point.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | include/sgfx/Point.hpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef SAPI_SGFX_POINT_HPP_
#define SAPI_SGFX_POINT_HPP_
#include <sapi/sg.h>
#include "../api/SgfxObject.hpp"
#include "Area.hpp"
namespace sgfx {
/*! \brief Point Class
* \details The Point class holds a point o... | 29.714286 | 100 | 0.682051 | bander9289 |
cf203cedef023ed6219d409f99653dc4b0a16671 | 5,002 | cpp | C++ | 3dtiles/tools/3dtiles-metadata.cpp | melowntech/lib3dtiles | a40b69ebf2b7a9a8032f24007404831366b14b38 | [
"BSD-2-Clause"
] | 12 | 2019-09-03T21:52:15.000Z | 2021-11-16T11:39:40.000Z | 3dtiles/tools/3dtiles-metadata.cpp | melowntech/lib3dtiles | a40b69ebf2b7a9a8032f24007404831366b14b38 | [
"BSD-2-Clause"
] | null | null | null | 3dtiles/tools/3dtiles-metadata.cpp | melowntech/lib3dtiles | a40b69ebf2b7a9a8032f24007404831366b14b38 | [
"BSD-2-Clause"
] | 5 | 2019-09-26T06:53:09.000Z | 2021-01-15T06:06:31.000Z | /**
* Copyright (c) 2021 Melown Technologies SE
*
* 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 copyright notice,
* this list of conditions and the f... | 28.420455 | 78 | 0.619552 | melowntech |
cf2321813ce5bd686aa473b2e50487c267860a08 | 6,874 | cpp | C++ | projects/fruitymesh_andres/src/utility/Terminal.cpp | Bardo91/fruitymesh_grvc | 872d3cb5e92a7fa6d4823b7295d20f459058fb19 | [
"OLDAP-2.4"
] | null | null | null | projects/fruitymesh_andres/src/utility/Terminal.cpp | Bardo91/fruitymesh_grvc | 872d3cb5e92a7fa6d4823b7295d20f459058fb19 | [
"OLDAP-2.4"
] | 2 | 2017-09-19T11:46:02.000Z | 2017-09-19T11:49:14.000Z | projects/fruitymesh_andres/src/utility/Terminal.cpp | Bardo91/fruitymesh_grvc | 872d3cb5e92a7fa6d4823b7295d20f459058fb19 | [
"OLDAP-2.4"
] | null | null | null | /**
Copyright (c) 2014-2015 "M-Way Solutions GmbH"
FruityMesh - Bluetooth Low Energy mesh protocol [http://mwaysolutions.com/]
This file is part of FruityMesh
FruityMesh 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 Foun... | 26.236641 | 127 | 0.698138 | Bardo91 |
cf2463d3acc78b050034e0233c55c78e4f4a77cb | 7,235 | hpp | C++ | include/betabugs/networking/thrift_asio_transport.hpp | beschulz/thrift_asio | aa918db7f34f020d9c871f5eee48badae85ee683 | [
"BSL-1.0"
] | 14 | 2016-04-14T18:50:56.000Z | 2021-02-15T10:24:23.000Z | include/betabugs/networking/thrift_asio_transport.hpp | beschulz/thrift_asio | aa918db7f34f020d9c871f5eee48badae85ee683 | [
"BSL-1.0"
] | 1 | 2016-09-22T21:15:25.000Z | 2016-11-09T18:38:08.000Z | include/betabugs/networking/thrift_asio_transport.hpp | beschulz/thrift_asio | aa918db7f34f020d9c871f5eee48badae85ee683 | [
"BSL-1.0"
] | 6 | 2015-09-05T10:13:08.000Z | 2019-02-03T14:12:23.000Z | //
// Created by Benjamin Schulz on 15/03/15.
//
#ifndef _THRIFT_ASIO_TRANSPORT_HPP_
#define _THRIFT_ASIO_TRANSPORT_HPP_
#pragma once
#include <thrift/transport/TVirtualTransport.h>
//#include <boost/asio.hpp>
#include <boost/smart_ptr/enable_shared_from_this.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asi... | 25.209059 | 116 | 0.67519 | beschulz |
cf273722fb1d17f65d3b4f96fb66c4144bcb7fca | 2,270 | cpp | C++ | Sandbox/src/Sandbox/Windows/DynamicAssetBrowserPanel.cpp | SGS-Ivar/Lamp | e81195bbfb73b6b4bd2c6d4604e2e3aa532aecb2 | [
"MIT"
] | null | null | null | Sandbox/src/Sandbox/Windows/DynamicAssetBrowserPanel.cpp | SGS-Ivar/Lamp | e81195bbfb73b6b4bd2c6d4604e2e3aa532aecb2 | [
"MIT"
] | null | null | null | Sandbox/src/Sandbox/Windows/DynamicAssetBrowserPanel.cpp | SGS-Ivar/Lamp | e81195bbfb73b6b4bd2c6d4604e2e3aa532aecb2 | [
"MIT"
] | null | null | null | #include "lppch.h"
#include "DynamicAssetBrowserPanel.h"
#include <Lamp/Rendering/Textures/Texture2D.h>
#include <Lamp/Utility/UIUtility.h>
#include <imgui/imgui.h>
using namespace Lamp;
namespace Sandbox
{
DynamicAssetBrowserPanel::DynamicAssetBrowserPanel(Lamp::AssetType type)
: EditorWindow("Asset Browser")
... | 23.163265 | 139 | 0.703524 | SGS-Ivar |
cf2776b1b0215ba22f3575147a2791d5c20cb85f | 3,547 | cpp | C++ | classifier/decision-tree.cpp | avtomaton/anfisa | ed4f0ce7a746649af36eb952ba47442e0a64360b | [
"MIT"
] | null | null | null | classifier/decision-tree.cpp | avtomaton/anfisa | ed4f0ce7a746649af36eb952ba47442e0a64360b | [
"MIT"
] | null | null | null | classifier/decision-tree.cpp | avtomaton/anfisa | ed4f0ce7a746649af36eb952ba47442e0a64360b | [
"MIT"
] | null | null | null | #include "decision-tree.hpp"
#include <opencv2/imgproc/imgproc.hpp>
#include <cstdio>
namespace anfisa {
DTreeICF::DTreeICF()
: pass(0), reject_threshold(-3.0f), approve_threshold(1000.0f)
{
}
void DTreeICF::create_scaled(float scale, const ResizeParamsICF *coeffs)
{
features[0].create_scaled(scale, coeffs);
if... | 20.622093 | 85 | 0.589794 | avtomaton |
cf27e245337c6bf1dfee43d5243e3b2a753c7144 | 323 | cpp | C++ | project/3D_Scenegraph/Component.cpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | 47 | 2017-07-27T11:12:05.000Z | 2021-07-02T19:45:23.000Z | project/3D_Scenegraph/Component.cpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | 7 | 2018-06-07T13:59:46.000Z | 2020-10-08T12:14:58.000Z | project/3D_Scenegraph/Component.cpp | mhooITU/GameProgramming2021 | 96225cfdb9282b5b36b8815d3d166142b9e9fc10 | [
"MIT"
] | 19 | 2017-09-04T10:54:24.000Z | 2020-11-03T17:55:10.000Z | //
// Created by Morten Nobel Jørgensen on 2018-11-06.
//
#include "Component.hpp"
Component::Component(GameObject* gameObject)
:gameObject(gameObject)
{
}
GameObject *Component::getGameObject() {
return gameObject;
}
void Component::debugGUI() {
}
void Component::onStart() {
}
void Component::onDestroy(){
... | 11.962963 | 51 | 0.702786 | mhooITU |
cf28584a1707c0cc95e9dd4535034b7e4617b267 | 27,508 | cpp | C++ | Source/RendererTest1/main.cpp | piaoasd123/VulkanTest | de9c6f2f50fb9aaa2185d1fde0b739ec64e451ae | [
"BSD-3-Clause"
] | null | null | null | Source/RendererTest1/main.cpp | piaoasd123/VulkanTest | de9c6f2f50fb9aaa2185d1fde0b739ec64e451ae | [
"BSD-3-Clause"
] | null | null | null | Source/RendererTest1/main.cpp | piaoasd123/VulkanTest | de9c6f2f50fb9aaa2185d1fde0b739ec64e451ae | [
"BSD-3-Clause"
] | null | null | null | //*
#include <iostream>
#include <string>
#include <thread>
#include <mutex>
#include <fstream>
#include <future>
#include <regex>
#include <vector>
#include <assert.h>
//*/
#if defined(_WIN32)
#define VK_USE_PLATFORM_WIN32_KHR
#endif
#include "vulkan/vulkan.h"
struct SwapChainBuffer
{
VkImage image;
VkImageView vie... | 33.669523 | 123 | 0.77552 | piaoasd123 |
cf2c20e5b22e553977f23c00c034e9e83442ba74 | 2,142 | cpp | C++ | src/net/cbanentry.cpp | 2a5A1Ghu1/DigitalNote-2 | f129cdab4b19dcd98945cfe199c49e5f72f91b8c | [
"MIT"
] | 10 | 2019-06-06T04:08:38.000Z | 2022-01-07T13:02:17.000Z | src/net/cbanentry.cpp | 2a5A1Ghu1/DigitalNote-2 | f129cdab4b19dcd98945cfe199c49e5f72f91b8c | [
"MIT"
] | 21 | 2019-07-19T18:36:34.000Z | 2022-03-06T09:59:51.000Z | src/net/cbanentry.cpp | 2a5A1Ghu1/DigitalNote-2 | f129cdab4b19dcd98945cfe199c49e5f72f91b8c | [
"MIT"
] | 24 | 2019-04-19T12:24:16.000Z | 2022-01-07T13:02:20.000Z | #include "net/banreason.h"
#include "serialize.h"
#include "cdatastream.h"
#include "net/cbanentry.h"
CBanEntry::CBanEntry()
{
SetNull();
}
CBanEntry::CBanEntry(int64_t nCreateTimeIn)
{
SetNull();
nCreateTime = nCreateTimeIn;
}
unsigned int CBanEntry::GetSerializeSize(int nType, int nVersion) const
{
CSerAction... | 22.3125 | 95 | 0.747899 | 2a5A1Ghu1 |
cf2d4993f5747ae3f092580c447914307a35e697 | 45 | cpp | C++ | Blazing dragon/lib/RFID/src/RFID_Sensor.cpp | Charma95/Pri-US | 951a08ce357f4408243b2b2429127c8f615eee32 | [
"MIT"
] | null | null | null | Blazing dragon/lib/RFID/src/RFID_Sensor.cpp | Charma95/Pri-US | 951a08ce357f4408243b2b2429127c8f615eee32 | [
"MIT"
] | null | null | null | Blazing dragon/lib/RFID/src/RFID_Sensor.cpp | Charma95/Pri-US | 951a08ce357f4408243b2b2429127c8f615eee32 | [
"MIT"
] | null | null | null | #include "rfid.h"
#include "RFID_Sensor.h"
| 9 | 24 | 0.688889 | Charma95 |
cf2d4d635ecde830e53dc24938eb780ebd350bb1 | 356 | hpp | C++ | nacl/misc/random.hpp | HNO234/NaCl | e7d7b9fb521b86eb12592e0ff65992d4eb313022 | [
"MIT"
] | 3 | 2021-08-31T17:51:01.000Z | 2021-11-13T16:22:25.000Z | nacl/misc/random.hpp | HNO234/NaCl | e7d7b9fb521b86eb12592e0ff65992d4eb313022 | [
"MIT"
] | null | null | null | nacl/misc/random.hpp | HNO234/NaCl | e7d7b9fb521b86eb12592e0ff65992d4eb313022 | [
"MIT"
] | null | null | null | #ifdef __unix__
random_device rd;
mt19937_64 RNG(rd());
#else
const auto SEED = chrono::high_resolution_clock::now()
.time_since_epoch()
.count();
mt19937_64 RNG(SEED);
#endif
// random uint_fast64_t: RNG();
// uniform random of type T (int, double, ...) in [l, r]:
// uniform_int_dis... | 27.384615 | 57 | 0.634831 | HNO234 |
cf2e79e1e483babd6cd382193504d77583a92c80 | 2,241 | hpp | C++ | src/components/Waynet.hpp | Szmyk/REGoth-bs | f953739f96a6441457287417d23812853675fb6e | [
"MIT"
] | 4 | 2021-04-05T18:54:14.000Z | 2021-04-30T15:49:50.000Z | src/components/Waynet.hpp | Szmyk/REGoth-bs | f953739f96a6441457287417d23812853675fb6e | [
"MIT"
] | null | null | null | src/components/Waynet.hpp | Szmyk/REGoth-bs | f953739f96a6441457287417d23812853675fb6e | [
"MIT"
] | null | null | null | #pragma once
#include <BsPrerequisites.h>
#include <Scene/BsComponent.h>
#include <RTTI/RTTIUtil.hpp>
namespace REGoth
{
class Waynet;
using HWaynet = bs::GameObjectHandle<Waynet>;
class Waypoint;
using HWaypoint = bs::GameObjectHandle<Waypoint>;
class AnchoredTextLabels;
using HAnchoredTextLabels = bs::... | 26.678571 | 87 | 0.675145 | Szmyk |
cf3065b45a9e61fc14314c47a3564ede99a63160 | 19,159 | cpp | C++ | sabre/src/sabre/Type_Interner.cpp | WaleedSymbyo/sabre | 651b91cc4422539fbcf4c7782deb47965d8a4691 | [
"BSD-3-Clause"
] | 6 | 2021-08-04T08:23:39.000Z | 2021-09-08T11:10:35.000Z | sabre/src/sabre/Type_Interner.cpp | WaleedSymbyo/sabre | 651b91cc4422539fbcf4c7782deb47965d8a4691 | [
"BSD-3-Clause"
] | 20 | 2021-08-04T08:24:55.000Z | 2022-03-30T10:58:05.000Z | sabre/src/sabre/Type_Interner.cpp | WaleedSymbyo/sabre | 651b91cc4422539fbcf4c7782deb47965d8a4691 | [
"BSD-3-Clause"
] | 2 | 2021-09-23T10:38:28.000Z | 2022-03-20T08:40:18.000Z | #include "sabre/Type_Interner.h"
#include <mn/Assert.h>
namespace sabre
{
inline static Type
_vec_builtin(Type* base, size_t width, size_t size, size_t alignment)
{
Type self{};
self.kind = Type::KIND_VEC;
self.unaligned_size = size;
self.alignment = alignment;
self.vec.base = base;
self.... | 34.583032 | 172 | 0.689441 | WaleedSymbyo |
cf3104c87611e79e55d8e03bc97450abb7f68db5 | 3,789 | hh | C++ | src/geometry/Mesh3D.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/geometry/Mesh3D.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/geometry/Mesh3D.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/**
* @file Mesh3D.hh
* @author Jeremy Roberts
* @date Mar 23, 2012
*/
//---------------------------------------------------------------------------//
#ifndef detran_geometry_MESH3D_HH_
#define detran_geometry_MESH3D_HH_
#inclu... | 28.923664 | 79 | 0.551333 | RLReed |
cf31490352359fecda409ed75710baad1d375a12 | 1,932 | inl | C++ | D2/Line.inl | Kyle-Larson/KMath | 7801d7a8ffb43708f896c2f87502a48e8e444efa | [
"MIT"
] | 1 | 2016-09-09T19:02:56.000Z | 2016-09-09T19:02:56.000Z | D2/Line.inl | KManrules1331/KMath | 7801d7a8ffb43708f896c2f87502a48e8e444efa | [
"MIT"
] | null | null | null | D2/Line.inl | KManrules1331/KMath | 7801d7a8ffb43708f896c2f87502a48e8e444efa | [
"MIT"
] | null | null | null | #pragma once
#include "Line.h"
namespace KEngine
{
namespace Math
{
namespace D2
{
inline Line::Line() : m_points()
{
m_points[1] = Coordinate::Vector<2>(1.0f, 0.0f);
}
inline Line::Line(const Coordinate::Vector<2>& p_pointA,
const Coordinate::Vector<2>& p_pointB)
: m_points{ p_pointA, p... | 29.723077 | 132 | 0.668219 | Kyle-Larson |
cf3212865f343decca196ee105dbe7346f82db3f | 53 | hpp | C++ | src/boost_hana_functional_reverse_partial.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_hana_functional_reverse_partial.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_hana_functional_reverse_partial.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/hana/functional/reverse_partial.hpp>
| 26.5 | 52 | 0.830189 | miathedev |
cf34cc0428e8760339a44a50cf9566207b2685ff | 1,061 | hpp | C++ | includes/D3D/TextureStorage.hpp | razerx100/GaiaX | 6bf8fb1da9e2a60b43736742fb6f4c56b1f5f315 | [
"MIT"
] | null | null | null | includes/D3D/TextureStorage.hpp | razerx100/GaiaX | 6bf8fb1da9e2a60b43736742fb6f4c56b1f5f315 | [
"MIT"
] | null | null | null | includes/D3D/TextureStorage.hpp | razerx100/GaiaX | 6bf8fb1da9e2a60b43736742fb6f4c56b1f5f315 | [
"MIT"
] | null | null | null | #ifndef TEXTURE_STORAGE_HPP_
#define TEXTURE_STORAGE_HPP_
#include <D3DHeaders.hpp>
#include <DescriptorTableManager.hpp>
#include <D3DBuffer.hpp>
#include <vector>
#include <UploadBuffer.hpp>
class TextureStorage {
public:
size_t AddTexture(
ID3D12Device* device,
std::unique_ptr<std::uint8_t> texture... | 26.525 | 73 | 0.765316 | razerx100 |
cf37beedd1ec245da1f40d71f2a42aa910e7e0eb | 438 | cpp | C++ | sources/gui/platformwidget.cpp | Dingodino/ArcadeRoom | c8af06b19296a23469bbecb10f856e13cf4702b8 | [
"MIT"
] | 1 | 2018-12-17T18:10:03.000Z | 2018-12-17T18:10:03.000Z | sources/gui/platformwidget.cpp | Dingodino/ArcadeRoom | c8af06b19296a23469bbecb10f856e13cf4702b8 | [
"MIT"
] | null | null | null | sources/gui/platformwidget.cpp | Dingodino/ArcadeRoom | c8af06b19296a23469bbecb10f856e13cf4702b8 | [
"MIT"
] | null | null | null | #include "platformwidget.h"
#include "ui_platformwidget.h"
//====================================================================================
// Constructors
//====================================================================================
PlatformWidget::PlatformWidget(QWidget *parent)
: QWidget(parent),
... | 21.9 | 86 | 0.438356 | Dingodino |
cf3aac1b1da958778b7c7758a3974ad29a7409d8 | 2,096 | hh | C++ | ARM/NXP/CCMs/Analogs/Misc0.hh | JohnAdriaan/RTX2C3 | 833cfa45ece56a1516cb743c6bafa7c916451e55 | [
"BSD-3-Clause"
] | null | null | null | ARM/NXP/CCMs/Analogs/Misc0.hh | JohnAdriaan/RTX2C3 | 833cfa45ece56a1516cb743c6bafa7c916451e55 | [
"BSD-3-Clause"
] | null | null | null | ARM/NXP/CCMs/Analogs/Misc0.hh | JohnAdriaan/RTX2C3 | 833cfa45ece56a1516cb743c6bafa7c916451e55 | [
"BSD-3-Clause"
] | null | null | null | // © 2019 John Adriaan. Licensed under the "3-clause BSD License"
///
/// \file ARM/NXP/CCMs/Analogs/Misc0.hh
///
#ifndef ARM_NXP_CCMs_Analogs_Misc0_hh
#define ARM_NXP_CCMs_Analogs_Misc0_hh
#include <General/Field.hh>
#include "Analogs.hh"
namespace ARM::NXP::CCMs::Analogs {
/// \brief Stop Modes used by `STOP_MO... | 38.814815 | 111 | 0.725668 | JohnAdriaan |
cf3c6b22a6f072b74f546206081ac94f4b1fb4d3 | 8,116 | cpp | C++ | stdex-test/array_view_test.cpp | rioki/stdex | e6b8a3f52782c76437f00532ab560ae862fed6ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | stdex-test/array_view_test.cpp | rioki/stdex | e6b8a3f52782c76437f00532ab560ae862fed6ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | stdex-test/array_view_test.cpp | rioki/stdex | e6b8a3f52782c76437f00532ab560ae862fed6ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | // Rioki's Standard Extentions
// Copyright 2020-2021 Sean Farrell <sean.farrell@rioki.org>
//
// This program is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do What The Fuck You Want
// To Public License,... | 23.321839 | 68 | 0.56518 | rioki |
cf3d2813539e88a10d1f756e1779084600d4e101 | 3,985 | cpp | C++ | Source/Plugins/Shared/MacOS/BsMacOSVideoModeInfo.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 1,745 | 2018-03-16T02:10:28.000Z | 2022-03-26T17:34:21.000Z | Source/Plugins/Shared/MacOS/BsMacOSVideoModeInfo.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 395 | 2018-03-16T10:18:20.000Z | 2021-08-04T16:52:08.000Z | Source/Plugins/Shared/MacOS/BsMacOSVideoModeInfo.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 267 | 2018-03-17T19:32:54.000Z | 2022-02-17T16:55:50.000Z | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "MacOS/BsMacOSVideoModeInfo.h"
#include <IOKit/graphics/IOGra... | 31.132813 | 124 | 0.723714 | bsf2dev |
cf3eafd00dc60bb0c69fd2be0d5b69b2f83ffd54 | 1,943 | hpp | C++ | src/DirectDispatcher.hpp | chris-stones/EventDispatcher | 50bb542ad3d945436fc0064ffe8ff4cfb8273251 | [
"BSD-2-Clause"
] | null | null | null | src/DirectDispatcher.hpp | chris-stones/EventDispatcher | 50bb542ad3d945436fc0064ffe8ff4cfb8273251 | [
"BSD-2-Clause"
] | null | null | null | src/DirectDispatcher.hpp | chris-stones/EventDispatcher | 50bb542ad3d945436fc0064ffe8ff4cfb8273251 | [
"BSD-2-Clause"
] | 1 | 2018-09-03T08:14:41.000Z | 2018-09-03T08:14:41.000Z |
#pragma once
#include "TypeManager.hpp"
#include<map>
#include<typeindex>
#include<typeinfo>
#include<memory>
namespace EventDispatcher { namespace detail {
/*
* Route events to handlers.
* Handler is called immediately.
*/
class DirectDispatcher {
typedef std::unique_ptr<TypeManagerBase> BasePt... | 28.15942 | 142 | 0.676274 | chris-stones |
cf419694b8df5ed36b0bdc8d328849cb25956769 | 11,353 | cc | C++ | cwidgets.cc | msharov/cwiclui | 2b663091808cb1dd529a2c8f8c08cd288112f75d | [
"0BSD"
] | null | null | null | cwidgets.cc | msharov/cwiclui | 2b663091808cb1dd529a2c8f8c08cd288112f75d | [
"0BSD"
] | null | null | null | cwidgets.cc | msharov/cwiclui | 2b663091808cb1dd529a2c8f8c08cd288112f75d | [
"0BSD"
] | null | null | null | // This file is part of the cwiclui project
//
// Copyright (c) 2019 by Mike Sharov <msharov@users.sourceforge.net>
// This file is free software, distributed under the ISC License.
#include "cwidgets.h"
#include <ctype.h>
namespace cwiclui {
//{{{ Label ------------------------------------------------------------
... | 25.802273 | 102 | 0.544438 | msharov |
cf49a17c54610fb882b6c76bfc1518188d354a59 | 1,133 | hpp | C++ | examples/language/ast_builder.hpp | JPenuchot/ctpg | da011f38965898e3af8b59442f7ff4254cf62c7d | [
"MIT"
] | 354 | 2021-11-19T09:43:41.000Z | 2022-03-21T07:45:51.000Z | examples/language/ast_builder.hpp | JPenuchot/ctpg | da011f38965898e3af8b59442f7ff4254cf62c7d | [
"MIT"
] | 16 | 2021-12-01T16:05:19.000Z | 2022-03-31T07:43:31.000Z | examples/language/ast_builder.hpp | JPenuchot/ctpg | da011f38965898e3af8b59442f7ff4254cf62c7d | [
"MIT"
] | 15 | 2021-11-22T15:08:59.000Z | 2022-01-23T15:15:14.000Z | #ifndef AST_BUILDER_H
#define AST_BUILDER_H
#include <vector>
#include "abstracts.hpp"
namespace ab = abstracts;
class ast_builder
{
public:
auto source_point(int line, int column) const
{
// abstracts provide their own source point data,
// just so the abstract classes don't have the depend... | 22.66 | 124 | 0.600177 | JPenuchot |
cf4ee742eff152bf87150af7b1849e9d4333ad0c | 8,315 | hpp | C++ | src/detail/range_node.hpp | mariokonrad/semver | 4ac6253abf7bab80fff7e834c2c3f550fa0c2da5 | [
"BSD-3-Clause"
] | 1 | 2021-01-29T10:56:38.000Z | 2021-01-29T10:56:38.000Z | src/detail/range_node.hpp | mariokonrad/semver | 4ac6253abf7bab80fff7e834c2c3f550fa0c2da5 | [
"BSD-3-Clause"
] | null | null | null | src/detail/range_node.hpp | mariokonrad/semver | 4ac6253abf7bab80fff7e834c2c3f550fa0c2da5 | [
"BSD-3-Clause"
] | 1 | 2021-10-31T10:12:43.000Z | 2021-10-31T10:12:43.000Z | #ifndef SEMVER_DETAIL_RANGE_NODE_HPP
#define SEMVER_DETAIL_RANGE_NODE_HPP
#include <semver/semver.hpp>
#include <algorithm>
#include <limits>
#include <optional>
#include <ostream>
#include <memory>
#include <vector>
#include <cassert>
namespace semver
{
inline namespace v1
{
namespace detail
{
inline semver successo... | 22.843407 | 89 | 0.63175 | mariokonrad |
cf50d6ce6000931496f6d52017fa861407d924ca | 500 | cpp | C++ | src/hardware/HexDisplay.cpp | teknoman117/ts-3100-kvm-emulator | 782c9440e9d40e536b8fc4c9b017ddd1ddea727f | [
"BSD-3-Clause"
] | 1 | 2020-05-07T19:28:47.000Z | 2020-05-07T19:28:47.000Z | src/hardware/HexDisplay.cpp | teknoman117/ts-3100-kvm-emulator | 782c9440e9d40e536b8fc4c9b017ddd1ddea727f | [
"BSD-3-Clause"
] | null | null | null | src/hardware/HexDisplay.cpp | teknoman117/ts-3100-kvm-emulator | 782c9440e9d40e536b8fc4c9b017ddd1ddea727f | [
"BSD-3-Clause"
] | null | null | null | #include "HexDisplay.hpp"
#include <cstdio>
void HexDisplay::iowrite8(uint16_t address, uint8_t value)
{
printf("HEX CODE (1 byte): %02x\n", value);
}
void HexDisplay::iowrite16(uint16_t address, uint16_t value)
{
printf("HEX CODE (2 byte): %04x\n", value);
}
void HexDisplay::iowrite32(uint16_t address, uin... | 21.73913 | 60 | 0.69 | teknoman117 |
cf5334fa72369115dda0ea68ebc43ae759ef201b | 4,405 | cpp | C++ | dsp++/src/arch/x86/cpu_x86.cpp | andrzejc/dsp- | fd39d2395a37ade36e3b551d261de0177b78296b | [
"MIT"
] | null | null | null | dsp++/src/arch/x86/cpu_x86.cpp | andrzejc/dsp- | fd39d2395a37ade36e3b551d261de0177b78296b | [
"MIT"
] | null | null | null | dsp++/src/arch/x86/cpu_x86.cpp | andrzejc/dsp- | fd39d2395a37ade36e3b551d261de0177b78296b | [
"MIT"
] | null | null | null | #include <dsp++/platform.h>
#ifdef DSP_ARCH_FAMILY_X86
#include <dsp++/simd.h>
#include "../../simd.h"
#include "sse.h"
#ifdef _MSC_VER
# include <malloc.h> // for _aligned_malloc()/_aligned_free()
# include <intrin.h> // for __cpuid() && Intel or ARM intrinsics
#endif // _MSC_VER
#ifdef __GNUC__
# if (defined(__pi... | 25.760234 | 102 | 0.650624 | andrzejc |
cf540c59512f9ceca110a7f186e764b2ed78cfcc | 1,138 | cpp | C++ | engine/components/AI/Algorithms/Steering/SteeringOutput.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/components/AI/Algorithms/Steering/SteeringOutput.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/components/AI/Algorithms/Steering/SteeringOutput.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | #include "SteeringOutput.h"
#include "components/GameObject.h" //Transform.h is included in GameObject
#include "components/AI/AIComponent.h"
#include "VMath.h"
SteeringOutput::SteeringOutput() {
}
double findMod(double a, double b)
{
double mod;
// Handling negative values
if (a < 0)
mod = -a;
else
mod = a... | 20.690909 | 105 | 0.704745 | TristanFish |
cf5a3a2ba60e939157aec2764de722ed168f7634 | 79,705 | hpp | C++ | include/parsetreevisitor.hpp | Aerll/rpp | 2f24b47e4d0b4436d77338274030c1fde55ef347 | [
"MIT"
] | null | null | null | include/parsetreevisitor.hpp | Aerll/rpp | 2f24b47e4d0b4436d77338274030c1fde55ef347 | [
"MIT"
] | null | null | null | include/parsetreevisitor.hpp | Aerll/rpp | 2f24b47e4d0b4436d77338274030c1fde55ef347 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2020 Aerll - aerlldev@gmail.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwareand associated documentation files(the "Software"), to deal
// in the Software with... | 33.616617 | 120 | 0.637564 | Aerll |
cf5a453f051d01de3c2b640b1511e23d62fc0c70 | 362 | cpp | C++ | star-triangle.cpp | LakinduOshadha/star-triangle | 4eef67f204859d3a10366de1061cf31bed256cc0 | [
"MIT"
] | null | null | null | star-triangle.cpp | LakinduOshadha/star-triangle | 4eef67f204859d3a10366de1061cf31bed256cc0 | [
"MIT"
] | null | null | null | star-triangle.cpp | LakinduOshadha/star-triangle | 4eef67f204859d3a10366de1061cf31bed256cc0 | [
"MIT"
] | null | null | null | // @author Lakindu Oshadha (lakinduoshadha98@gmail.com)
#include <iostream>
using namespace std;
int main() {
for(int i = 1, k = 0; i <= 5; ++i, k = 0) {
for(int j = 1; j <= 5-i; ++j) {
cout <<" ";
}
for(k;k != 2*i-1;k++) {
cout << "* ";
}
... | 21.294118 | 56 | 0.392265 | LakinduOshadha |
cf60f381a6ca7a5b4f142c3f7a50476117c81691 | 402 | hpp | C++ | Include/Qgfx/Common/PoolAllocator.hpp | quantumgfx/quantumgfx | dabfda65241d488bb2231f1b83641c1f4db43139 | [
"MIT"
] | null | null | null | Include/Qgfx/Common/PoolAllocator.hpp | quantumgfx/quantumgfx | dabfda65241d488bb2231f1b83641c1f4db43139 | [
"MIT"
] | null | null | null | Include/Qgfx/Common/PoolAllocator.hpp | quantumgfx/quantumgfx | dabfda65241d488bb2231f1b83641c1f4db43139 | [
"MIT"
] | null | null | null | #pragma once
#include "MemoryAllocator.hpp"
#include <cstdint>
namespace Qgfx
{
class PoolAllocator final : public IMemoryAllocator
{
public:
PoolAllocator()
{
}
~PoolAllocator()
{
}
void* Allocate(size_t Size) override
{
return new uint8_t[Size];
}
void Deallocate(void* Ptr, size_t Siz... | 11.823529 | 52 | 0.664179 | quantumgfx |
cf63d89058778e81a33e6b9338f4278911d46337 | 3,502 | cpp | C++ | text3d.cpp | ismail-berrada/breakoutse | 5c2e5af7d1e38a37c04a63328a533d46c9cd0c79 | [
"Apache-2.0"
] | 1 | 2019-09-29T11:36:57.000Z | 2019-09-29T11:36:57.000Z | text3d.cpp | ismail-berrada/breakoutse | 5c2e5af7d1e38a37c04a63328a533d46c9cd0c79 | [
"Apache-2.0"
] | null | null | null | text3d.cpp | ismail-berrada/breakoutse | 5c2e5af7d1e38a37c04a63328a533d46c9cd0c79 | [
"Apache-2.0"
] | null | null | null | #include <QFont>
#include <QList>
#include <QPainter>
#include <QOpenGLFunctions>
#include <QChar>
#include <gl/GLU.h>
#include "text3d.h"
#include <iostream>
typedef void (__stdcall *TessFuncPtr)();
Text3D::Text3D()
: glyphthickness(1.0f), base(0) {
}
void Text3D::initFont(QFont& f, float thickness) {
font... | 30.99115 | 80 | 0.563678 | ismail-berrada |
cf6643e3472c4e1d87b8d3e22d4546aebfc9a7ec | 137 | cpp | C++ | src/TernaryOperator/ternary-operator.cpp | learning-lab-cpp/cpp-notes-introduction | 17f34f0e74b967e39226ac038e2c90bb2964c9de | [
"CC0-1.0"
] | null | null | null | src/TernaryOperator/ternary-operator.cpp | learning-lab-cpp/cpp-notes-introduction | 17f34f0e74b967e39226ac038e2c90bb2964c9de | [
"CC0-1.0"
] | null | null | null | src/TernaryOperator/ternary-operator.cpp | learning-lab-cpp/cpp-notes-introduction | 17f34f0e74b967e39226ac038e2c90bb2964c9de | [
"CC0-1.0"
] | null | null | null | #include <iostream>
int main()
{
int i = 1, j = 2;
std::cout << (i > j ? i : j) <<" is greater."<< std::endl; // 2 is greater.
} | 19.571429 | 79 | 0.481752 | learning-lab-cpp |
cf68f4b8654fba8d3f66bb311bd2d1689b082adf | 1,443 | cpp | C++ | src/game/client/swarm/c_asw_boomer.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | src/game/client/swarm/c_asw_boomer.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | src/game/client/swarm/c_asw_boomer.cpp | BlueNovember/alienswarm-reactivedrop | ffaca58157f9fdd36e5c48e8d7d34d8ca958017e | [
"CC0-1.0"
] | null | null | null | #include "cbase.h"
#include "c_asw_boomer.h"
#include "c_asw_clientragdoll.h"
#include "asw_fx_shared.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
IMPLEMENT_CLIENTCLASS_DT(C_ASW_Boomer, DT_ASW_Boomer, CASW_Boomer)
RecvPropBool( RECVINFO( m_bInflated ) ),
RecvP... | 27.75 | 81 | 0.722107 | BlueNovember |
cf69f88fd03e33641926f9c001ec6e32ca882df7 | 2,317 | hxx | C++ | src/utility/PlotProcessor.hxx | TWLord/DUNEPrismTools | bde52eb1331ac10ba81cdf1bf63488707bfe5496 | [
"MIT"
] | null | null | null | src/utility/PlotProcessor.hxx | TWLord/DUNEPrismTools | bde52eb1331ac10ba81cdf1bf63488707bfe5496 | [
"MIT"
] | null | null | null | src/utility/PlotProcessor.hxx | TWLord/DUNEPrismTools | bde52eb1331ac10ba81cdf1bf63488707bfe5496 | [
"MIT"
] | 3 | 2018-01-09T20:57:33.000Z | 2019-11-24T03:48:28.000Z | #pragma once
#include "TDirectory.h"
#include "TH1D.h"
#include "TH2D.h"
#include <array>
#include <functional>
#include <memory>
template <size_t dim> struct HistRank {};
template <> struct HistRank<1> {
static constexpr size_t size = 1;
using THType = TH1D;
using THPtrType = THType *;
using FillType = std:... | 28.256098 | 79 | 0.663358 | TWLord |
cf6c6fbd6f6bda0539ef48e257b5dd18aa2f7933 | 423 | cpp | C++ | lib-seeded/sodium-initializer.cpp | agricocb/seeded-crypto | 271a4d40f5fccaa65126dde7f818bfb8518eeb1a | [
"MIT"
] | 3 | 2020-09-25T16:08:39.000Z | 2022-02-25T04:39:26.000Z | lib-seeded/sodium-initializer.cpp | agricocb/seeded-crypto | 271a4d40f5fccaa65126dde7f818bfb8518eeb1a | [
"MIT"
] | 3 | 2020-10-03T11:45:05.000Z | 2021-09-21T00:28:53.000Z | lib-seeded/sodium-initializer.cpp | agricocb/seeded-crypto | 271a4d40f5fccaa65126dde7f818bfb8518eeb1a | [
"MIT"
] | 3 | 2020-09-10T15:31:46.000Z | 2021-03-14T07:01:17.000Z | #include <sodium.h>
#include <exception>
#include <stdexcept>
#include "sodium-initializer.hpp"
void ensureSodiumInitialized() {
static bool hasInitializedSodium = false;
if (!hasInitializedSodium) {
if (sodium_init() < 0) {
throw std::invalid_argument("Could not initialize sodium");
/* panic! the ... | 26.4375 | 77 | 0.695035 | agricocb |
cf6d77a60852dd5b893caca2ba5a37299a8e4829 | 14,714 | cpp | C++ | src/protocols/mqtt5/Mqtt5Client.cpp | mnaveedb/finalmq | 3c3b2b213fa07bb5427a1364796b19d732890ed2 | [
"MIT"
] | 11 | 2020-10-13T11:50:29.000Z | 2022-02-27T11:47:34.000Z | src/protocols/mqtt5/Mqtt5Client.cpp | mnaveedb/finalmq | 3c3b2b213fa07bb5427a1364796b19d732890ed2 | [
"MIT"
] | 15 | 2020-10-07T18:01:27.000Z | 2021-07-08T09:09:13.000Z | src/protocols/mqtt5/Mqtt5Client.cpp | mnaveedb/finalmq | 3c3b2b213fa07bb5427a1364796b19d732890ed2 | [
"MIT"
] | 2 | 2020-10-07T21:29:06.000Z | 2020-10-14T18:02:17.000Z | //MIT License
//Copyright (c) 2020 bexoft GmbH (mail@bexoft.de)
//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, ... | 30.782427 | 119 | 0.675547 | mnaveedb |
cf738c963932273d10d56ac4b74407b7d8d083be | 6,432 | cpp | C++ | src/scene.cpp | Teragion/Piz | 250ca1e8c39d5a7689817d771d0272d1faac726c | [
"MIT"
] | null | null | null | src/scene.cpp | Teragion/Piz | 250ca1e8c39d5a7689817d771d0272d1faac726c | [
"MIT"
] | null | null | null | src/scene.cpp | Teragion/Piz | 250ca1e8c39d5a7689817d771d0272d1faac726c | [
"MIT"
] | null | null | null | #include "material.h"
#include "scene.h"
static vec4 cornell_offset(vec4 v) {
static const int cam_offset_x = -278;
static const int cam_offset_y = -273;
static const int cam_offset_z = 800;
v.x += cam_offset_x;
v.y += cam_offset_y;
v.z += cam_offset_z;
v.w = 1;
return v;
}
sta... | 32.649746 | 98 | 0.581934 | Teragion |
cf78a840ccaca30953b84daba0c6b565368f0062 | 338 | cpp | C++ | Codeforces/224A.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | Codeforces/224A.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | Codeforces/224A.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,r1,r2,r3,sum;long long m=1e9+10; cin>>a>>b>>c;
r1=c*b/a;
r2=b*a/c;
r3=a*c/b;
for (int i=1 ; i*i <=m ; i++) {
if (i*i == r1){r1=i;}
if (i*i == r2){r2=i;}
if (i*i == r3){r3=i;}
}
sum=((r1+r2+r3)*4);
... | 18.777778 | 61 | 0.431953 | Alipashaimani |
cf7b91fdea559f95b91ec4c8f5e8f7ec07634ddc | 6,461 | hpp | C++ | mct/impl/serialization.hpp | seiriosPlus/libmct | 41437a42a92937962dd87142bfbe7cfd4746e274 | [
"MIT"
] | 1 | 2017-11-30T08:35:36.000Z | 2017-11-30T08:35:36.000Z | mct/impl/serialization.hpp | isanych/testset | c3ff3313a83843a65c1da7e012e0dc61d19a71e7 | [
"MIT"
] | null | null | null | mct/impl/serialization.hpp | isanych/testset | c3ff3313a83843a65c1da7e012e0dc61d19a71e7 | [
"MIT"
] | null | null | null | // This file is part of Miscellaneous Container Templates.
//
// https://launchpad.net/libmct/
//
// Copyright (c) 2012, 2013 Paul Pogonyshev.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
/... | 37.346821 | 99 | 0.677914 | seiriosPlus |
cf7fe5f9d2d0f5b245110657cf8325fa9e809522 | 79 | hpp | C++ | examples/example2/user2.hpp | ldrozdz93/cpp-visitor-pattern | 542dd041178be665c94b9364a3595ff7cb60e40a | [
"MIT"
] | 1 | 2022-01-13T07:04:41.000Z | 2022-01-13T07:04:41.000Z | examples/example2/user2.hpp | ldrozdz93/cpp-visitor-pattern | 542dd041178be665c94b9364a3595ff7cb60e40a | [
"MIT"
] | null | null | null | examples/example2/user2.hpp | ldrozdz93/cpp-visitor-pattern | 542dd041178be665c94b9364a3595ff7cb60e40a | [
"MIT"
] | null | null | null | #pragma once
#include "base.hpp"
int user2_value_by_virtual_calls(Base& base); | 19.75 | 45 | 0.797468 | ldrozdz93 |
cf8b63ad71ae85e4598ee4df450bc0b4fbb06d99 | 18,900 | inl | C++ | src/fonts/stb_font_consolas_bold_15_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_consolas_bold_15_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_consolas_bold_15_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_consolas_bold_15_us... | 59.433962 | 133 | 0.742646 | stetre |
cf8da34f7720061e66b06da204e596f0c7fa4b9e | 6,926 | cpp | C++ | hphp/runtime/vm/jit/irgen-exit.cpp | lucynuri22/hhvm | 86e557f7922f8fafb06c2de1d0b0fc2f9592720d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/vm/jit/irgen-exit.cpp | lucynuri22/hhvm | 86e557f7922f8fafb06c2de1d0b0fc2f9592720d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/vm/jit/irgen-exit.cpp | lucynuri22/hhvm | 86e557f7922f8fafb06c2de1d0b0fc2f9592720d | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... | 32.064815 | 78 | 0.587785 | lucynuri22 |
cf8e1a097af35f6185f05fd9f92ba213309cfcfd | 6,964 | cpp | C++ | tests/sad/markup.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 58 | 2015-08-09T14:56:35.000Z | 2022-01-15T22:06:58.000Z | tests/sad/markup.cpp | mamontov-cpp/saddy-graphics-engine-2d | e25a6637fcc49cb26614bf03b70e5d03a3a436c7 | [
"BSD-2-Clause"
] | 245 | 2015-08-08T08:44:22.000Z | 2022-01-04T09:18:08.000Z | tests/sad/markup.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 23 | 2015-12-06T03:57:49.000Z | 2020-10-12T14:15:50.000Z | #pragma warning(push)
#pragma warning(disable: 4273)
#pragma warning(disable: 4351)
#include <cstdio>
#include "matrix2x2.h"
#include "fuzzyequal.h"
#include "util/markup.h"
#define _INC_STDIO
#include "3rdparty/tpunit++/tpunit++.hpp"
#pragma warning(pop)
static void dumpDocument(const sad::util::Markup::Document& doc... | 52.360902 | 268 | 0.616025 | mamontov-cpp |
cf8e9900bf6b6f1a89efced5c851ecefdfab265c | 353 | hpp | C++ | src/solver/range.hpp | owenmylotte/ablate | 92b190a2d422eb89748338c04fd7b29976be54b1 | [
"BSD-3-Clause"
] | null | null | null | src/solver/range.hpp | owenmylotte/ablate | 92b190a2d422eb89748338c04fd7b29976be54b1 | [
"BSD-3-Clause"
] | null | null | null | src/solver/range.hpp | owenmylotte/ablate | 92b190a2d422eb89748338c04fd7b29976be54b1 | [
"BSD-3-Clause"
] | null | null | null | #ifndef ABLATELIBRARY_RANGE_HPP
#define ABLATELIBRARY_RANGE_HPP
#include "petsc.h"
namespace ablate::solver {
/**
* Simple struct used to describe a range in the dm
*/
struct Range {
IS is = nullptr;
PetscInt start;
PetscInt end;
const PetscInt* points = nullptr;
};
} // namespace ablate::solver
#e... | 19.611111 | 51 | 0.713881 | owenmylotte |
cf95d09586833b22c957e23e1bab7361342ab7e4 | 1,035 | cpp | C++ | mingw-w64-gurobi/check/example.cpp | ys-nuem/msys2-devtools | f124a7444e21dcce4f27994504dbee69bf7501b6 | [
"MIT"
] | null | null | null | mingw-w64-gurobi/check/example.cpp | ys-nuem/msys2-devtools | f124a7444e21dcce4f27994504dbee69bf7501b6 | [
"MIT"
] | null | null | null | mingw-w64-gurobi/check/example.cpp | ys-nuem/msys2-devtools | f124a7444e21dcce4f27994504dbee69bf7501b6 | [
"MIT"
] | null | null | null | #include <gurobi_c++.h>
#include <iostream>
#include <cassert>
#include <boost/filesystem.hpp>
using namespace std;
namespace fs = boost::filesystem;
int main() {
fs::remove(fs::path("example.log"));
try {
GRBEnv env("example.log");
GRBModel model(env);
model.set(GRB_StringAttr_ModelName, "model1");
... | 25.243902 | 58 | 0.609662 | ys-nuem |
cf96699e813585f815a81d81a2b8f13abf4ec60f | 1,392 | cpp | C++ | code/MikoEngine/Math/Frustum.cpp | warzes/MikoEngine | 1199f59a71ab3dfcbea5d02238639db55eded0d4 | [
"MIT"
] | 5 | 2020-08-04T17:57:01.000Z | 2021-02-07T12:19:02.000Z | code/MikoEngine/Math/Frustum.cpp | warzes/MikoEngine | 1199f59a71ab3dfcbea5d02238639db55eded0d4 | [
"MIT"
] | null | null | null | code/MikoEngine/Math/Frustum.cpp | warzes/MikoEngine | 1199f59a71ab3dfcbea5d02238639db55eded0d4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Frustum.h"
Frustum::Frustum(const glm::mat4& matrix) :
planes
{
// Create non-normalized clipping planes
// -> Basing on "Fast Extraction of Viewing Frustum Planes from the World-View-Projection Matrix" by Gil Gribb and Klaus Hartmann ( http://gamedevs.org/uploads/fast-extraction-viewi... | 63.272727 | 277 | 0.634339 | warzes |
cf973096580c325b88e88d7e0fef405e98a85032 | 443 | cpp | C++ | Algorithms/Implementation/Halloween_Sale/main.cpp | ugurcan-sonmez-95/HackerRank_Problems | 187d83422128228c241f279096386df5493d539d | [
"MIT"
] | null | null | null | Algorithms/Implementation/Halloween_Sale/main.cpp | ugurcan-sonmez-95/HackerRank_Problems | 187d83422128228c241f279096386df5493d539d | [
"MIT"
] | null | null | null | Algorithms/Implementation/Halloween_Sale/main.cpp | ugurcan-sonmez-95/HackerRank_Problems | 187d83422128228c241f279096386df5493d539d | [
"MIT"
] | null | null | null | // Halloween Sale - Solution
#include <iostream>
int howManyGames(int p, const int d, const int m, int s) {
int count{};
while (s-p >= 0) {
s -= p;
if (p-d > m)
p -= d;
else
p = m;
count++;
}
return count;
}
int main() {
int p, d, m, s;
... | 17.72 | 58 | 0.446953 | ugurcan-sonmez-95 |
cf9c0ff61f7cdb95865b799c73e8ea25648d79dc | 714 | hpp | C++ | QueuePP/include/Queues++/types.hpp | AntonPoturaev/QueuePP | 25ea571abdd62ab6409da6dbad5bfcd20898ffb1 | [
"Unlicense"
] | null | null | null | QueuePP/include/Queues++/types.hpp | AntonPoturaev/QueuePP | 25ea571abdd62ab6409da6dbad5bfcd20898ffb1 | [
"Unlicense"
] | null | null | null | QueuePP/include/Queues++/types.hpp | AntonPoturaev/QueuePP | 25ea571abdd62ab6409da6dbad5bfcd20898ffb1 | [
"Unlicense"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
///
/// Project Queue++
/// Copyright (c) 2016
///
////////////////////////////////////////////////////////////////////////////////
/// @file types.hpp
/// @authors Poturaev Anton
/// @date ... | 26.444444 | 81 | 0.37535 | AntonPoturaev |
cf9c0ff9c1bb0da30255f9e44903761e55f5be2b | 360 | hpp | C++ | source/worker/task/operations/interface/operation_function.hpp | RomainAmuat/cluster | eb25c20a94259f98ac7d46c19b8958a827d5502b | [
"MIT"
] | null | null | null | source/worker/task/operations/interface/operation_function.hpp | RomainAmuat/cluster | eb25c20a94259f98ac7d46c19b8958a827d5502b | [
"MIT"
] | null | null | null | source/worker/task/operations/interface/operation_function.hpp | RomainAmuat/cluster | eb25c20a94259f98ac7d46c19b8958a827d5502b | [
"MIT"
] | null | null | null | #ifndef OPERATION_FUNCTOR_INTERFACE_HPP
#define OPERATION_FUNCTOR_INTERFACE_HPP
namespace Operation {
class operation_functor {
public:
virtual void operator() (Resource::resource_cursor_type input, Resource::resource_cursor_type output,
Resource::ResourceManager * rm, Network::Networker * communications, Operation... | 32.727273 | 107 | 0.816667 | RomainAmuat |
cf9cc7077f1e44242de72e1f2faa83339eda643f | 8,119 | cpp | C++ | Userland/DevTools/HackStudio/ProjectBuilder.cpp | qeeg/serenity | 587048dea7465f387b0ef8bbe439060c448bd996 | [
"BSD-2-Clause"
] | 6 | 2021-07-05T15:01:19.000Z | 2022-03-24T04:42:43.000Z | Userland/DevTools/HackStudio/ProjectBuilder.cpp | qeeg/serenity | 587048dea7465f387b0ef8bbe439060c448bd996 | [
"BSD-2-Clause"
] | null | null | null | Userland/DevTools/HackStudio/ProjectBuilder.cpp | qeeg/serenity | 587048dea7465f387b0ef8bbe439060c448bd996 | [
"BSD-2-Clause"
] | 1 | 2020-03-16T21:37:46.000Z | 2020-03-16T21:37:46.000Z | /*
* Copyright (c) 2022, Itamar S. <itamar8910@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "ProjectBuilder.h"
#include <AK/LexicalPath.h>
#include <LibCore/Command.h>
#include <LibCore/File.h>
#include <LibRegex/Regex.h>
#include <fcntl.h>
#include <sys/stat.h>
namespace HackStudio {
Project... | 37.243119 | 186 | 0.683582 | qeeg |
cf9d6ec9affdd72dde3dc0643823311429e31860 | 2,697 | hpp | C++ | sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/key_curve_name.hpp | kyle-patterson/azure-sdk-for-cpp | 0c24db5a10eeea46840c3e8ee7089fd9857cd7b4 | [
"MIT"
] | null | null | null | sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/key_curve_name.hpp | kyle-patterson/azure-sdk-for-cpp | 0c24db5a10eeea46840c3e8ee7089fd9857cd7b4 | [
"MIT"
] | null | null | null | sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/key_curve_name.hpp | kyle-patterson/azure-sdk-for-cpp | 0c24db5a10eeea46840c3e8ee7089fd9857cd7b4 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
/**
* @file
* @brief Defines the Elliptic Curve Cryptography (ECC) curve names.
*
*/
#pragma once
#include "azure/keyvault/keys/dll_import_export.hpp"
#include <stdexcept>
#include <string>
namespace Azure { namespace ... | 26.184466 | 98 | 0.63515 | kyle-patterson |
cfa13f6f8241518e9ebc3d392d64fcd0581615cd | 1,732 | hxx | C++ | src/http/include/ivy/win32/httpsys/service.hxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | src/http/include/ivy/win32/httpsys/service.hxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | src/http/include/ivy/win32/httpsys/service.hxx | sikol/ivy | 6365b8783353cf0c79c633bbc7110be95a55225c | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019, 2020, 2021 SiKol Ltd.
* Distributed under the Boost Software License, Version 1.0.
*/
#ifndef IVY_WIN32_HTTPSYS_SERVICE_HXX_INCLUDED
#define IVY_WIN32_HTTPSYS_SERVICE_HXX_INCLUDED
#include <memory>
#include <optional>
#include <vector>
#include <ivy/http/service.hxx>
#include... | 31.490909 | 78 | 0.661663 | sikol |
cfa4c3b4ea519400c840c61fa54280554b8640a4 | 2,467 | cpp | C++ | chapter_1/page_35/exercise_5/ObFastDereferenceObject.cpp | assaflevy/practical_reverse_engineering | 1fd9b1b95238b9de5bc52017047b676d02b8dabd | [
"MIT"
] | null | null | null | chapter_1/page_35/exercise_5/ObFastDereferenceObject.cpp | assaflevy/practical_reverse_engineering | 1fd9b1b95238b9de5bc52017047b676d02b8dabd | [
"MIT"
] | null | null | null | chapter_1/page_35/exercise_5/ObFastDereferenceObject.cpp | assaflevy/practical_reverse_engineering | 1fd9b1b95238b9de5bc52017047b676d02b8dabd | [
"MIT"
] | null | null | null | #include "kstruct.h"
//nt!ObFastDereferenceObject:
//fffff802`8049de50 4883ec28 sub rsp, 28h
//fffff802`8049de54 4c8bca mov r9, rdx
//fffff802`8049de57 0f0d09 prefetchw[rcx]
//fffff802`8049de5a 488b01 mov rax, qword ptr[rcx]
//fffff802`8049de5d 4c8bc0 mov r8, ... | 41.116667 | 138 | 0.668829 | assaflevy |
bbc0e71cba5479e23634975376bf4fc4e2efbef5 | 327 | cpp | C++ | 3/389. Find the Difference.cpp | eagleoflqj/LeetCode | ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9 | [
"MIT"
] | null | null | null | 3/389. Find the Difference.cpp | eagleoflqj/LeetCode | ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9 | [
"MIT"
] | 1 | 2021-12-25T10:33:23.000Z | 2022-02-16T00:34:05.000Z | 3/389. Find the Difference.cpp | eagleoflqj/LeetCode | ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9 | [
"MIT"
] | null | null | null | class Solution {
public:
char findTheDifference(string s, string t) {
int count[26]{};
for(char c : t)
++count[c - 'a'];
for(char c : s)
--count[c - 'a'];
for(int i = 0; i < 26; ++i)
if(count[i])
return 'a' + i;
return 0;
... | 21.8 | 48 | 0.400612 | eagleoflqj |
bbc1f871a8585e32d838a271314173d34c23e922 | 2,025 | hpp | C++ | libadb/include/libadb/resource/image-resolver.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 1 | 2022-03-10T15:14:13.000Z | 2022-03-10T15:14:13.000Z | libadb/include/libadb/resource/image-resolver.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 9 | 2022-03-07T21:00:08.000Z | 2022-03-15T23:14:52.000Z | libadb/include/libadb/resource/image-resolver.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | null | null | null | #pragma once
#include <libadb/libadb.hpp>
#include <string>
#include <libadb/types/snowflake.hpp>
#include <libadb/resource/image.hpp>
namespace adb::resource
{
/**
* @brief Image resolver will create Image object by provided params
* @details https://discord.com/developers/docs/reference#image-formatti... | 56.25 | 143 | 0.718025 | faserg1 |
bbc2e2ccf45f5556f781d6dd27d4419986d3c501 | 158 | cc | C++ | thinker/testdate.cc | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | null | null | null | thinker/testdate.cc | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | null | null | null | thinker/testdate.cc | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | 1 | 2020-02-21T17:16:50.000Z | 2020-02-21T17:16:50.000Z | #include "Date.h"
#include <iostream>
using namespace std;
int main()
{
Date d(2015,5,8);
cout << d << endl;
cin >> d;
cout << d << endl;
}
| 12.153846 | 22 | 0.531646 | zyfjeff |
bbc48d6ca4d55eacd25bb2049cd2979c555c88fd | 955 | hh | C++ | examples/ScatteringExample/include/QTNMPhysicsList.hh | QTNM/Electron-Tracking | b9dff0232af5a99fd795fd504dbddde71f4dd31c | [
"MIT"
] | 2 | 2022-03-16T22:30:19.000Z | 2022-03-16T22:30:26.000Z | examples/ElectronGun/include/QTNMPhysicsList.hh | QTNM/Electron-Tracking | b9dff0232af5a99fd795fd504dbddde71f4dd31c | [
"MIT"
] | 18 | 2021-03-02T15:14:11.000Z | 2022-02-14T08:12:20.000Z | examples/ScatteringExample/include/QTNMPhysicsList.hh | QTNM/Electron-Tracking | b9dff0232af5a99fd795fd504dbddde71f4dd31c | [
"MIT"
] | null | null | null | // QTNMPysicsList
//
//----------------------------------------------------------------------------
//
// This class provides construction of EM physics for the QTNM project
// following closely the G4EmStandardPhysics_option4 list
// of standard and low-energy packages and set of
// the most adavced options allowing... | 23.875 | 78 | 0.679581 | QTNM |
bbc86cd6735a6b5293ab8f2a5ae2e61a7cd9c5a7 | 1,005 | hpp | C++ | data_model/include/triangle3d.hpp | Abergard/rtc | e0cdbbb4a005b7d9f3b10d1a519fcb6be876e65f | [
"MIT"
] | 3 | 2019-05-25T01:03:38.000Z | 2019-06-29T07:43:49.000Z | data_model/include/triangle3d.hpp | Abergard/rtc | e0cdbbb4a005b7d9f3b10d1a519fcb6be876e65f | [
"MIT"
] | 1 | 2019-05-24T22:16:30.000Z | 2019-05-24T22:16:30.000Z | data_model/include/triangle3d.hpp | Abergard/rtc | e0cdbbb4a005b7d9f3b10d1a519fcb6be876e65f | [
"MIT"
] | 1 | 2019-05-24T19:12:44.000Z | 2019-05-24T19:12:44.000Z | #pragma once
#include <array>
#include <cstdint>
namespace rtc
{
struct triangle3d
{
using value_type = std::uint32_t;
constexpr triangle3d(value_type t1, value_type t2, value_type t3) noexcept : i{t1, t2, t3} {}
[[nodiscard]] constexpr auto vertex_a() const noexcept { return i[0]; }
[[nodiscard]] constexpr a... | 30.454545 | 114 | 0.650746 | Abergard |
bbcac5b852a416e7312fa2ab0c1af19bccb1dab2 | 599 | cpp | C++ | xgame/lockstep/FrameSequence.cpp | xgm-skywave/xeve | 0f18a7e85e4851aed68748c2e621c26e39dcb3f6 | [
"MIT"
] | null | null | null | xgame/lockstep/FrameSequence.cpp | xgm-skywave/xeve | 0f18a7e85e4851aed68748c2e621c26e39dcb3f6 | [
"MIT"
] | null | null | null | xgame/lockstep/FrameSequence.cpp | xgm-skywave/xeve | 0f18a7e85e4851aed68748c2e621c26e39dcb3f6 | [
"MIT"
] | 1 | 2020-11-10T05:34:42.000Z | 2020-11-10T05:34:42.000Z |
#include "FrameSequence.h"
#include "Frame.h"
#include <assert.h>
FrameSequence::~FrameSequence()
{
for (auto it : m_Frames)
{
delete it.second;
}
m_Frames.clear();
}
bool FrameSequence::AddFrame(Frame* pFrame)
{
auto it = m_Frames.insert(std::make_pair(pFrame->GetFrameID(), pFrame));
assert(it.second && "... | 16.189189 | 73 | 0.69616 | xgm-skywave |
bbcb18a0ff8ff0eb48461b03b6889ad50e4cce9d | 436 | cpp | C++ | c++/Rectangle Area/Rectangle Area.cpp | tonardo2015/leetcode | 02e659f0415158b02f1e9cdb3f63ac0870b109af | [
"MIT"
] | null | null | null | c++/Rectangle Area/Rectangle Area.cpp | tonardo2015/leetcode | 02e659f0415158b02f1e9cdb3f63ac0870b109af | [
"MIT"
] | null | null | null | c++/Rectangle Area/Rectangle Area.cpp | tonardo2015/leetcode | 02e659f0415158b02f1e9cdb3f63ac0870b109af | [
"MIT"
] | null | null | null | class Solution {
public:
int computeArea(int A, int B, int C, int D, int E, int F, int G, int H) {
int height = 0,wide = 0;
if(D > F && H > B){
height = min(D,H) - max(F,B);
}
if(C > E && G > A){
wide = min(C,G) - max(E,A);
}
int s1 = (C - A) *... | 25.647059 | 77 | 0.383028 | tonardo2015 |
bbd50e3ad5643888035c661c4cec439d7d1b1ca0 | 29,540 | cpp | C++ | Armor.cpp | knoxgon/fallen-knights | dfbe100f661181579e21a46cc708a7c22c92e288 | [
"MIT"
] | 1 | 2019-05-03T14:07:13.000Z | 2019-05-03T14:07:13.000Z | Armor.cpp | knoxgon/fallen-knights | dfbe100f661181579e21a46cc708a7c22c92e288 | [
"MIT"
] | null | null | null | Armor.cpp | knoxgon/fallen-knights | dfbe100f661181579e21a46cc708a7c22c92e288 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Armor.h"
Armor::Armor(){}
Armor::~Armor() {}
Armor::Armor(NS_ArmorNames::Armor_Name g_armorName, NS_GearAttributes::ArmorType g_armorType,
NS_GearAttributes::Rarity g_rarity, int def,
int currdur, int maxdur, int reqstr, int reqint, int reqend, BonusStats* bonStat, int itemLvl)
: Gear... | 40.744828 | 134 | 0.671259 | knoxgon |
bbd586333e60c2474057dae6328b2a5aff1f3bdc | 31,444 | hxx | C++ | include/decision-trees.hxx | hadjichristslave/SMC | 415dd5156dd2d7272b5e846940fce79e8407bf8c | [
"MIT"
] | null | null | null | include/decision-trees.hxx | hadjichristslave/SMC | 415dd5156dd2d7272b5e846940fce79e8407bf8c | [
"MIT"
] | 1 | 2015-05-27T12:34:03.000Z | 2015-07-13T13:12:04.000Z | include/decision-trees.hxx | hadjichristslave/SMC | 415dd5156dd2d7272b5e846940fce79e8407bf8c | [
"MIT"
] | null | null | null | /// \mainpage
/// andres::ml::DecisionTrees: A Fast C++ Implementation of Random Forests
///
/// \section section_abstract Short Description
/// The header file implements random forests as described in the article:
///
/// Leo Breiman. Random Forests. Machine Learning 45(1):5-32, 2001.
/// http://dx.doi.org/10.1023%2F... | 34.744751 | 154 | 0.649059 | hadjichristslave |
bbd752a5c5cfa48dc372a945a983ef8e20e8192a | 37,446 | cpp | C++ | Alien Engine/Alien Engine/ModuleResources.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 7 | 2020-02-20T15:11:11.000Z | 2020-05-19T00:29:04.000Z | Alien Engine/Alien Engine/ModuleResources.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 125 | 2020-02-29T17:17:31.000Z | 2020-05-06T19:50:01.000Z | Alien Engine/Alien Engine/ModuleResources.cpp | OverPowered-Team/Alien-GameEngine | 713a8846a95fdf253d0869bdcad4ecd006b2e166 | [
"MIT"
] | 1 | 2020-05-19T00:29:06.000Z | 2020-05-19T00:29:06.000Z | #include "ModuleResources.h"
#include "ModuleRenderer3D.h"
#include "SDL/include/SDL_assert.h"
#include "Resource_.h"
#include "ResourceMesh.h"
#include "ResourceModel.h"
#include "ResourceFont.h"
#include "ModuleImporter.h"
#include "Application.h"
#include "ResourceTexture.h"
#include "ResourceShader.h"
#include "Mod... | 30.296117 | 215 | 0.707499 | OverPowered-Team |
bbdd0cbce548ad8634d59980077e19ecce5ae96e | 1,151 | cpp | C++ | Disposal.cpp | Dmcdominic/15-466-f20-game6 | a8f9eb3033e3e6a06b8c66f8fff84500defe72f6 | [
"CC-BY-4.0"
] | null | null | null | Disposal.cpp | Dmcdominic/15-466-f20-game6 | a8f9eb3033e3e6a06b8c66f8fff84500defe72f6 | [
"CC-BY-4.0"
] | 56 | 2020-10-29T15:08:34.000Z | 2020-12-05T02:53:04.000Z | Disposal.cpp | Dmcdominic/15-466-f20-game6 | a8f9eb3033e3e6a06b8c66f8fff84500defe72f6 | [
"CC-BY-4.0"
] | null | null | null | #include "Disposal.hpp"
#include "Barrel.hpp"
// Constructor
Disposal::Disposal(Scene *scene) : BgTile(scene) {}
// Load any drawables
void Disposal::load_models(Scene* scene) {
scene->drawables.push_back(model_loader->create_model("Disposal"));
this->drawable = &(scene->drawables.back());
scene->drawables.p... | 28.073171 | 87 | 0.724587 | Dmcdominic |
bbdf40c4d728a600d80e2c53d674133ce9175ccd | 449 | cc | C++ | leet_code/Sum_of_Square_Numbers/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | leet_code/Sum_of_Square_Numbers/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | leet_code/Sum_of_Square_Numbers/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
bool judgeSquareSum(int c) {
unordered_set<long long> hash;
const int maxSize = 1 << 16;
auto size = (c < maxSize) ? c : maxSize;
for (auto i = 0; i <= size; ++i) {
long long sqr = (long long)i * (long long)i;
hash.insert(sqr);
... | 26.411765 | 56 | 0.461024 | ldy121 |
bbe2f382b3a28fed4a9bae6229381df29717a434 | 3,002 | cpp | C++ | test_package/tests/unit/algorithm/CGAlgorithms/computeOrientationTest.cpp | insaneFactory/conan-geos | 2d682cf59eafe8567e8e5c87897f051355dbb1ca | [
"MIT"
] | null | null | null | test_package/tests/unit/algorithm/CGAlgorithms/computeOrientationTest.cpp | insaneFactory/conan-geos | 2d682cf59eafe8567e8e5c87897f051355dbb1ca | [
"MIT"
] | null | null | null | test_package/tests/unit/algorithm/CGAlgorithms/computeOrientationTest.cpp | insaneFactory/conan-geos | 2d682cf59eafe8567e8e5c87897f051355dbb1ca | [
"MIT"
] | null | null | null | //
// Test Suite for Oriengation::index() function
// Ported from JTS junit/algorithm/ComputeOrientationTest.java
#include <tut/tut.hpp>
// geos
#include <geos/algorithm/CGAlgorithmsDD.h>
#include <geos/algorithm/Orientation.h>
#include <geos/geom/Coordinate.h>
#include <geos/geom/CoordinateSequence.h>
#include <geos/... | 26.104348 | 89 | 0.693538 | insaneFactory |
bbe3fee0e7cdbcf6ffbb6f7eba0db69a3b5486c6 | 746 | cpp | C++ | test/cast/to_uint_ptr.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/cast/to_uint_ptr.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/cast/to_uint_ptr.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/cast/to_uint_ptr.hpp>
#include <fcppt/catch/begin.hpp>
#include <fcppt/catch/end.hp... | 24.064516 | 63 | 0.706434 | freundlich |
bbe764a5e339e2d6fc249ade440747ad4437d394 | 1,069 | cpp | C++ | Chess_Engine/main.cpp | JimViebke/Chess_Engine | 039b5b428f8485b377bdb31bb32051e966be9a60 | [
"MIT"
] | null | null | null | Chess_Engine/main.cpp | JimViebke/Chess_Engine | 039b5b428f8485b377bdb31bb32051e966be9a60 | [
"MIT"
] | null | null | null | Chess_Engine/main.cpp | JimViebke/Chess_Engine | 039b5b428f8485b377bdb31bb32051e966be9a60 | [
"MIT"
] | null | null | null | /*
Jim Viebke
June 15 2014
*/
#include "game.hpp"
#include "node.h"
void print_commands()
{
std::cout << "\n\n\tEnter a command:\n"
<< "\n\tload new game\t\tengine white"
<< "\n\tload FEN \t\tengine black"
<< "\n\tload PGN \t\tevaluate"
<< "\n\n> ";
}
void menu()
{
// set up variables for input
st... | 18.118644 | 81 | 0.591207 | JimViebke |
bbef53d658ea44f18e05a7e899190fa5948c7767 | 1,382 | cpp | C++ | husky-sql/relnode/husky_logical_sort.cpp | Alice3150/husky-sql | 40dc95b5543c079bb4ab070fca2ac2a287514333 | [
"Apache-2.0"
] | null | null | null | husky-sql/relnode/husky_logical_sort.cpp | Alice3150/husky-sql | 40dc95b5543c079bb4ab070fca2ac2a287514333 | [
"Apache-2.0"
] | null | null | null | husky-sql/relnode/husky_logical_sort.cpp | Alice3150/husky-sql | 40dc95b5543c079bb4ab070fca2ac2a287514333 | [
"Apache-2.0"
] | null | null | null | #include "husky-sql/relnode/husky_logical_sort.hpp"
#include "husky-sql/rexnode/dummy_combiner.hpp"
#include "glog/logging.h"
#include "glog/stl_logging.h"
#include "core/engine.hpp"
namespace husky {
namespace sql {
ObjList<RowKV>& HuskyLogicalSort::get_output() const {
auto& input_rel_nodes = this-... | 29.404255 | 135 | 0.690304 | Alice3150 |
bbf036d3fcc6007d8fe65cb576b173fa79093d43 | 9,344 | cpp | C++ | src/wmecore/NavNode.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/wmecore/NavNode.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/wmecore/NavNode.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | // This file is part of Wintermute Engine
// For conditions of distribution and use, see copyright notice in license.txt
#include "Wme.h"
#include "NavNode.h"
#include "NavEdge.h"
#include "MathUtil.h"
namespace Wme
{
//////////////////////////////////////////////////////////////////////////
NavNode:... | 27.084058 | 150 | 0.545056 | retrowork |
bbf0bf767b195bb9ffb4a91f761139caf196e30d | 168 | cpp | C++ | AdvancedC++/stringClass/aligner.cpp | afatom/core-program | 7886acf67f6b81bd06edef41f6ddab83cc993927 | [
"MIT"
] | null | null | null | AdvancedC++/stringClass/aligner.cpp | afatom/core-program | 7886acf67f6b81bd06edef41f6ddab83cc993927 | [
"MIT"
] | null | null | null | AdvancedC++/stringClass/aligner.cpp | afatom/core-program | 7886acf67f6b81bd06edef41f6ddab83cc993927 | [
"MIT"
] | null | null | null |
#include <iostream>
using namespace std;
typedef void(*fp)(void);
int main()
{
aligner X;
size_t m = sizeof(X) - sizeof(X.d);
cout<<m<<endl;
return 0;
}
| 8.4 | 36 | 0.607143 | afatom |
bbf64d0ef764ef0d79b0cc8a5312bdbf084088df | 338 | hpp | C++ | bindings/Python/src/NumPyDemo.hpp | haveneer/libKriging | 05178c0b464037ec0144442c5a9e8a749c7ca43e | [
"Apache-2.0"
] | null | null | null | bindings/Python/src/NumPyDemo.hpp | haveneer/libKriging | 05178c0b464037ec0144442c5a9e8a749c7ca43e | [
"Apache-2.0"
] | null | null | null | bindings/Python/src/NumPyDemo.hpp | haveneer/libKriging | 05178c0b464037ec0144442c5a9e8a749c7ca43e | [
"Apache-2.0"
] | null | null | null | #ifndef LIBKRIGING_BINDINGS_PYTHON_SRC_NUMPYDEMO_HPP
#define LIBKRIGING_BINDINGS_PYTHON_SRC_NUMPYDEMO_HPP
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
namespace py = pybind11;
py::array_t<double> add_arrays(py::array_t<double> input1, py::array_t<double> input2);
#endif // LIBKRIGING_BINDINGS_PYTHON_... | 28.166667 | 87 | 0.828402 | haveneer |
bbf94380ee455e5ee1bcd04b8ce63a158c386468 | 7,169 | cc | C++ | dumper/src/main.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | dumper/src/main.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | dumper/src/main.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2013,2015 Centreon
**
** 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 t... | 33.976303 | 77 | 0.555308 | sdelafond |
bbfae2eb79f019b214dc063596af16f00e9047c8 | 609 | cpp | C++ | leetcode/402. Remove K Digits/s1.cpp | joycse06/LeetCode-1 | ad105bd8c5de4a659c2bbe6b19f400b926c82d93 | [
"Fair"
] | 1 | 2021-02-03T10:41:04.000Z | 2021-02-03T10:41:04.000Z | leetcode/402. Remove K Digits/s1.cpp | AnupSadhukhan/LeetCode | 725c22ec2f11f5232fd7ab6d63ab4fcd800f201b | [
"Fair"
] | null | null | null | leetcode/402. Remove K Digits/s1.cpp | AnupSadhukhan/LeetCode | 725c22ec2f11f5232fd7ab6d63ab4fcd800f201b | [
"Fair"
] | 1 | 2021-03-25T17:11:14.000Z | 2021-03-25T17:11:14.000Z | class Solution {
public:
string removeKdigits(string num, int k) {
if (num.size() == k) return "0";
string ans;
int len = num.size() - k;
for (int i = 0; i < num.size(); ++i) {
if (ans.empty() || !k) ans.push_back(num[i]);
else if (ans.back() <= num[i]) {
if (ans.size() == len) --k... | 30.45 | 79 | 0.504105 | joycse06 |
bbfb40b005ee1cc2223af34b8bc1995dbbebb939 | 76 | cpp | C++ | bin-int/Debug-windows-x86_64/CFD/unity_WRB1ZPRDPGGBLND0.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | bin-int/Debug-windows-x86_64/CFD/unity_WRB1ZPRDPGGBLND0.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | bin-int/Debug-windows-x86_64/CFD/unity_WRB1ZPRDPGGBLND0.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z |
#include "C:\Users\User\source\repos\NextEngine\CFD\src\geo\predicates.c"
| 19 | 73 | 0.763158 | CompilerLuke |
bbfc3ae5eaa066bb55617776424a5877a4940a04 | 1,590 | cpp | C++ | src/managers/window_manager.cpp | zedrex/algosketch | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 16 | 2021-03-27T06:20:42.000Z | 2022-03-31T16:30:37.000Z | src/managers/window_manager.cpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 1 | 2021-07-13T07:57:41.000Z | 2021-07-13T07:57:41.000Z | src/managers/window_manager.cpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 3 | 2021-04-03T02:58:56.000Z | 2021-06-04T18:23:49.000Z | #include <managers/window_manager.hpp>
WindowManager::WindowManager()
{
this->setupWindow("Window", 1200, 800);
}
WindowManager::WindowManager(const std::string &windowTitle, unsigned int windowWidth, unsigned int windowHeight)
{
this->setupWindow(windowTitle, windowWidth, windowHeight);
}
WindowManager::~Wi... | 21.2 | 116 | 0.696855 | zedrex |
0108706bfad0e96308ed582ead5d1f931fdc724d | 628 | cpp | C++ | src/ShaderManager.cpp | Spooky309/Minecrap | bf30839bf4a80bf71340e7cf1af1f952599329de | [
"MIT"
] | 1 | 2020-01-02T23:45:00.000Z | 2020-01-02T23:45:00.000Z | src/ShaderManager.cpp | Spooky309/Minecrap | bf30839bf4a80bf71340e7cf1af1f952599329de | [
"MIT"
] | null | null | null | src/ShaderManager.cpp | Spooky309/Minecrap | bf30839bf4a80bf71340e7cf1af1f952599329de | [
"MIT"
] | null | null | null | #include "Engine.h"
#include "ShaderManager.h"
ShaderProgram* ShaderManager::LoadShaderProgram(const std::string& name)
{
for (ShaderProgram* sp : m_loadedProgs)
{
if (sp->GetName() == name)
{
return sp;
}
}
std::string fullPath = Engine::Instance().GetFileSystem().GetAbsPathTo(name);
std::s... | 28.545455 | 79 | 0.681529 | Spooky309 |
0119615fd26275b115f60cb838c4432910855370 | 348 | cpp | C++ | aula-02/funcao-pt01-ex01-asteriscos.cpp | adolfobcruz/estacio-estrutura-de-dados-1 | 8f5214f62b0e5a9c9d6cdc680cbd83e8a8ab6e14 | [
"MIT"
] | 1 | 2022-03-15T13:42:50.000Z | 2022-03-15T13:42:50.000Z | aula-02/funcao-pt01-ex01-asteriscos.cpp | adolfobcruz/estacio-estrutura-de-dados-1 | 8f5214f62b0e5a9c9d6cdc680cbd83e8a8ab6e14 | [
"MIT"
] | null | null | null | aula-02/funcao-pt01-ex01-asteriscos.cpp | adolfobcruz/estacio-estrutura-de-dados-1 | 8f5214f62b0e5a9c9d6cdc680cbd83e8a8ab6e14 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void asteriscos() {
for(int x = 1; x <= 22; x++)
std::cout << "*";
}
int main() {
std::cout << "\nEstudo de Funcoes\n";
asteriscos();
std::cout << "\nConhecendo o tipo void\n";
asteriscos();
std::cout << "\nSem parametros\n";
asteriscos();
std::cout << "\n\n";
sys... | 15.818182 | 43 | 0.583333 | adolfobcruz |
01263d2205b150edf64e0f3f799d326a9c19d780 | 3,097 | cpp | C++ | Convert/FilterGraph.cpp | Techpro-Compsoft/Audio_Test | 6ee0102bcd1188ef68277e3d837cc0203b485f26 | [
"MIT"
] | null | null | null | Convert/FilterGraph.cpp | Techpro-Compsoft/Audio_Test | 6ee0102bcd1188ef68277e3d837cc0203b485f26 | [
"MIT"
] | null | null | null | Convert/FilterGraph.cpp | Techpro-Compsoft/Audio_Test | 6ee0102bcd1188ef68277e3d837cc0203b485f26 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "FilterGraph.h"
using namespace Avf;
FilterGraph::FilterGraph()
{
}
FilterGraph::~FilterGraph()
{
}
void FilterGraph::Close(void) {
for each(Source^ source in this->sources) {
source->Close();
}
this->sources->Clear();
for each(Sink^ sink in this->sinks) {
sink->Close();
}
thi... | 22.442029 | 100 | 0.672586 | Techpro-Compsoft |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.