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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d324cc28afd9df66043c6afaeb549d176758f8d4 | 749 | cpp | C++ | source/aufgabe_12.cpp | SVincent/programmiersprachen-aufgabenblatt-3. | 4eeeec3973999e0bf57c81e7ae681930e259aa6b | [
"MIT"
] | null | null | null | source/aufgabe_12.cpp | SVincent/programmiersprachen-aufgabenblatt-3. | 4eeeec3973999e0bf57c81e7ae681930e259aa6b | [
"MIT"
] | null | null | null | source/aufgabe_12.cpp | SVincent/programmiersprachen-aufgabenblatt-3. | 4eeeec3973999e0bf57c81e7ae681930e259aa6b | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include <cmath>
#include <vector>
#include <iostream>
#include <algorithm> //std::all_of
std::vector<int> v_1 {1,2,3,4,5,6,7,8,9};
std::vector<int> v_2 {9,8,7,6,5,4,3,2,1};
std::vector<int> v_3(9);
bool equals_10 (int i) {
return i == 10 ;
}
TEST_CASE ("equals ... | 25.827586 | 80 | 0.634179 | SVincent |
d325d86cd9e250577d210401b46c9d40d31cbe3f | 11,994 | hpp | C++ | Source/AllProjects/GraphicUtils/CIDGraphDev/CIDGraphDev_Pen.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/GraphicUtils/CIDGraphDev/CIDGraphDev_Pen.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/GraphicUtils/CIDGraphDev/CIDGraphDev_Pen.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDGraphDev_Pen.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 05/24/2002
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensourc... | 34.073864 | 89 | 0.348007 | MarkStega |
d33848efb19800a4efabce491b8f0fbfae0714d6 | 1,696 | cpp | C++ | src/exercises/binary-watch/main.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | src/exercises/binary-watch/main.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | src/exercises/binary-watch/main.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | #include <cctype>
#include <iostream>
#include <sstream>
#include <string>
#include <unordered_set>
#include <vector>
std::size_t to_time(const std::unordered_set<std::size_t>& times) {
std::size_t t = 0;
for (const auto x : times) t += (1 << x);
return t;
}
std::string construct_time(const std::size_t hour, co... | 30.285714 | 78 | 0.607311 | j-haj |
d34f7f52b6c1b693dfc524ac3bd62468c2b03483 | 1,506 | cpp | C++ | gwen/UnitTest/CollapsibleList.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/UnitTest/CollapsibleList.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | gwen/UnitTest/CollapsibleList.cpp | Oipo/GWork | 3dd70c090bf8708dd3e7b9cfbcb67163bb7166db | [
"MIT"
] | null | null | null | #include "Gwen/UnitTest/UnitTest.h"
#include "Gwen/Controls/CollapsibleList.h"
using namespace Gwen;
class CollapsibleList : public GUnit
{
public:
GWEN_CONTROL_INLINE(CollapsibleList, GUnit)
{
Gwen::Controls::CollapsibleList* pControl = new Gwen::Controls::CollapsibleList(this);
pControl->S... | 28.961538 | 94 | 0.505976 | Oipo |
d35043f8eeccf4d7510ddc2e72560e3ea156e92d | 782 | cpp | C++ | simple/simple.cpp | zyxeeker/detours-cmake | 1a20ef565d48e695e191a18f2e53111fbb6f32fc | [
"MIT"
] | 11 | 2019-05-23T02:16:40.000Z | 2021-07-07T06:26:05.000Z | simple/simple.cpp | zyxeeker/detours-cmake | 1a20ef565d48e695e191a18f2e53111fbb6f32fc | [
"MIT"
] | null | null | null | simple/simple.cpp | zyxeeker/detours-cmake | 1a20ef565d48e695e191a18f2e53111fbb6f32fc | [
"MIT"
] | 6 | 2019-05-25T11:37:17.000Z | 2021-11-22T09:53:42.000Z | #include <stdio.h>
#include <Windows.h>
#include <detours.h>
static auto real_Beep = ::Beep;
//-------------------------------------------------------------------------
static BOOL WINAPI my_Beep(DWORD dwFreq, DWORD dwDuration)
{
printf("Beep(%u, %u)\n", dwFreq, dwDuration);
return real_Beep(dwFreq, dwDuratio... | 26.066667 | 75 | 0.560102 | zyxeeker |
d3559f9b694414dbe02d9dcc1f1f7d33d314d150 | 706 | cpp | C++ | ConsoleEngine/SceneManager.cpp | jsutas999/ConsoleGameEngine | e2a911ece15cac67b7b7070ead5965b2f194f19f | [
"MIT"
] | null | null | null | ConsoleEngine/SceneManager.cpp | jsutas999/ConsoleGameEngine | e2a911ece15cac67b7b7070ead5965b2f194f19f | [
"MIT"
] | null | null | null | ConsoleEngine/SceneManager.cpp | jsutas999/ConsoleGameEngine | e2a911ece15cac67b7b7070ead5965b2f194f19f | [
"MIT"
] | null | null | null | #include "SceneManager.h"
#include "Logger.h"
SceneManager* SceneManager::singelton;
SceneManager * SceneManager::getInstance()
{
return singelton;
}
void SceneManager::LoadNextScene(Scene * scene)
{
levels.push_back(scene);
scene->Initialize();
}
void SceneManager::LoadPreviesScene()
{
Scene* t = levels.back();... | 14.708333 | 53 | 0.694051 | jsutas999 |
d35790d3f9ed6661a504f79739710963a74127d1 | 4,429 | cpp | C++ | OpenGeo3D/DlgNewGridLOD.cpp | rocky-iheg-china/OpenGeo3D | fd6a5a523ef40f6d81637fd64a18405aa8a4f164 | [
"MIT"
] | 1 | 2020-11-12T06:35:24.000Z | 2020-11-12T06:35:24.000Z | OpenGeo3D/DlgNewGridLOD.cpp | rocky-iheg-china/OpenGeo3D | fd6a5a523ef40f6d81637fd64a18405aa8a4f164 | [
"MIT"
] | null | null | null | OpenGeo3D/DlgNewGridLOD.cpp | rocky-iheg-china/OpenGeo3D | fd6a5a523ef40f6d81637fd64a18405aa8a4f164 | [
"MIT"
] | null | null | null | #include "DlgNewGridLOD.h"
#include "Strings.h"
DlgNewGridLOD::DlgNewGridLOD(wxWindow* parent, int level) : wxDialog(parent, wxID_ANY, wxEmptyString) {
level_ = level;
parentSizeX_ = parentSizeY_ = parentSizeZ_ = 1;
wxString title = wxString::Format(wxS("%s - %d"), Strings::TitleOfMenuItemAppendGridLOD(), level_);
... | 39.19469 | 152 | 0.743057 | rocky-iheg-china |
d357d54a83f217e4984eda1b13e0abdf0a63778e | 856 | cpp | C++ | code-forces/632 Div 2/B.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | 1 | 2020-04-23T00:35:38.000Z | 2020-04-23T00:35:38.000Z | code-forces/632 Div 2/B.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | null | null | null | code-forces/632 Div 2/B.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ENDL '\n'
#define pb push_back
#define F first
#define S second
#define deb(u) cout << #u ": " << (u) << endl;
#define lli long long
#define pii pair<int, int>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int t, n;
cin >> t;
w... | 18.608696 | 46 | 0.454439 | ErickJoestar |
d357e3ce33bc4da1450d9d601de07ae7b1cd9776 | 2,962 | cpp | C++ | examples/danmaku/entities/healthbar.cpp | hirusora/abcg | 69ffb7a2981c868e08a5df76c502069b1f12d329 | [
"MIT"
] | null | null | null | examples/danmaku/entities/healthbar.cpp | hirusora/abcg | 69ffb7a2981c868e08a5df76c502069b1f12d329 | [
"MIT"
] | null | null | null | examples/danmaku/entities/healthbar.cpp | hirusora/abcg | 69ffb7a2981c868e08a5df76c502069b1f12d329 | [
"MIT"
] | null | null | null | #include "healthbar.hpp"
#include <cppitertools/itertools.hpp>
#include <glm/gtx/rotate_vector.hpp>
void HealthBar::initializeGL(GLuint program) {
terminateGL();
m_program = program;
m_rotationLoc = abcg::glGetUniformLocation(m_program, "rotation");
m_scaleLoc = abcg::glGetUniformLocation(m_program, "scale")... | 32.549451 | 78 | 0.714382 | hirusora |
d35b84519e9343fd8b14072fbea0f30ad4a7f237 | 1,853 | cpp | C++ | MergedSortedArray.cpp | sachanakshat/Competitive_Practice | 63170d87398bf5bd163febecdcfef8db21c632c7 | [
"MIT"
] | null | null | null | MergedSortedArray.cpp | sachanakshat/Competitive_Practice | 63170d87398bf5bd163febecdcfef8db21c632c7 | [
"MIT"
] | null | null | null | MergedSortedArray.cpp | sachanakshat/Competitive_Practice | 63170d87398bf5bd163febecdcfef8db21c632c7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <chrono>
#include<bits/stdc++.h>
using namespace std;
using namespace std::chrono;
class Solution {
public:
void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) {
int * merged = (int*)malloc(sizeof(int)*(m+n));
... | 23.455696 | 83 | 0.444145 | sachanakshat |
d35b9b3d4fcf7e87e05f76f62f83413c0da88874 | 2,735 | cpp | C++ | src/ThreadPool.cpp | NivenT/jubilant-funicular | a8f11df59afb4668601ad3359ff28530a59ce5d0 | [
"MIT"
] | 3 | 2018-03-19T19:27:05.000Z | 2019-09-27T06:41:56.000Z | src/ThreadPool.cpp | NivenT/jubilant-funicular | a8f11df59afb4668601ad3359ff28530a59ce5d0 | [
"MIT"
] | null | null | null | src/ThreadPool.cpp | NivenT/jubilant-funicular | a8f11df59afb4668601ad3359ff28530a59ce5d0 | [
"MIT"
] | 1 | 2021-02-05T10:29:08.000Z | 2021-02-05T10:29:08.000Z | #include "nta/ThreadPool.h"
namespace nta {
namespace utils {
ThreadPool::ThreadPool(size_t num_threads) : m_workers(num_threads), m_kill(false),
m_available(num_threads) {
m_dispatch_thread = std::thread([this]{ dispatcher(); });
for (size_t id = 0; id < num_threads; id... | 31.436782 | 91 | 0.453382 | NivenT |
d35c14337a803b2cf5a42b8919db93371a132bbe | 7,874 | cpp | C++ | BelaWarpDetect/Library/MatchSyllables.cpp | nathanntg/bela-warp-detect | 5d82eeedaab855ab3f31d3b9da3f946043d70b91 | [
"MIT"
] | null | null | null | BelaWarpDetect/Library/MatchSyllables.cpp | nathanntg/bela-warp-detect | 5d82eeedaab855ab3f31d3b9da3f946043d70b91 | [
"MIT"
] | null | null | null | BelaWarpDetect/Library/MatchSyllables.cpp | nathanntg/bela-warp-detect | 5d82eeedaab855ab3f31d3b9da3f946043d70b91 | [
"MIT"
] | null | null | null | //
// MatchSyllables.cpp
// BelaWarpDetect
//
// Created by Nathan Perkins on 1/20/18.
// Copyright © 2018 Nathan Perkins. All rights reserved.
//
#include "MatchSyllables.hpp"
#include "LoadAudio.hpp"
#include "ManagedMemory.hpp"
#include <cmath>
MatchSyllables::MatchSyllables(float sample_rate) :
_sample_rate(... | 26.246667 | 153 | 0.595631 | nathanntg |
d35c2f82b8a2b3190b518095af162b8d5b2ce259 | 1,341 | cpp | C++ | net/tests/testUri.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | 3 | 2016-02-10T04:58:32.000Z | 2020-09-15T06:39:43.000Z | net/tests/testUri.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | null | null | null | net/tests/testUri.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007-2015 Frank Mertens.
*
* Use of this source is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#include <flux/testing/TestSuite>
#include <flux/stdio>
#include <flux/net/Uri>
using namespace flux;
using namespace flux::testing;
using namespace flux::net;
cla... | 30.477273 | 99 | 0.555556 | frankencode |
c9655d31784f81f45226d9347f7b0bd63bad7271 | 1,346 | cpp | C++ | 236.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 236.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 236.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ull = uint64_t;
using ll = int64_t;
using ld = long double;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
}... | 29.26087 | 83 | 0.590639 | Alex-Amber |
c96575a1dd12f0deebc138859705bcf032489318 | 16,916 | cpp | C++ | qtdomterm/backend.cpp | lws-team/DomTerm | b5410508e1531ef0ef43bc389cb90132cf87f1ba | [
"BSD-3-Clause"
] | 1 | 2022-02-16T21:33:42.000Z | 2022-02-16T21:33:42.000Z | qtdomterm/backend.cpp | lws-team/DomTerm | b5410508e1531ef0ef43bc389cb90132cf87f1ba | [
"BSD-3-Clause"
] | null | null | null | qtdomterm/backend.cpp | lws-team/DomTerm | b5410508e1531ef0ef43bc389cb90132cf87f1ba | [
"BSD-3-Clause"
] | 3 | 2017-10-25T05:45:43.000Z | 2022-02-16T21:33:43.000Z | /*
This file is part of QtDomTerm.
It is derived from Session.cpp, which is part of Konsole.
Copyright (C) 2016 by Per Bothner <per@bothner.com>
Copyright (C) 2006-2007 by Robert Knight <robertknight@gmail.com>
Copyright (C) 1997,1998 by Lars Doelle <lars.doelle@on-line.de>
Rewritten for QT4 ... | 30.756364 | 170 | 0.569106 | lws-team |
c965cc0e17a7575f5e481174b1d7c35cbbabfa47 | 6,945 | hpp | C++ | test/gaussian_filter/gaussian_filter_test_suite.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 17 | 2015-07-03T06:53:05.000Z | 2021-05-15T20:55:12.000Z | test/gaussian_filter/gaussian_filter_test_suite.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 3 | 2015-02-20T12:48:17.000Z | 2019-12-18T08:45:13.000Z | test/gaussian_filter/gaussian_filter_test_suite.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 15 | 2015-02-20T11:34:14.000Z | 2021-05-15T20:55:13.000Z | /*
* This is part of the fl library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2015 Max Planck Society,
* Autonomous Motion Department,
* Institute for Intelligent Systems
*
* This Source Code Form is subject to the terms of the MIT License (MIT).
... | 26.207547 | 79 | 0.600144 | aeolusbot-tommyliu |
c966fa1aaf20bbd198cf9580ac433d7e613ddb30 | 2,330 | cpp | C++ | src/main.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | null | null | null | src/main.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | 75 | 2017-05-28T23:39:33.000Z | 2019-05-09T06:18:44.000Z | src/main.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | null | null | null | #include "ledpoi.h"
#include "ledpoi_utils.h"
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
#include "dispatch/dispatchTask.h"
#include "display/displayTask.h"
#include "player/playerTask.h"
#include "uart/uartTask.h"
#include "ui/button.h"
// #include "selftest/selftestTask.h"
// unless defined differently bel... | 32.361111 | 74 | 0.718455 | gmoehler |
c96a0c35aa9c48b3dd71e1ee452a550c06f988bc | 8,426 | hpp | C++ | include/nodes/internal/Export.hpp | clouddon/nodeeditor | fda93f9b75012d420e087a6b1aae50061ba47947 | [
"BSD-3-Clause"
] | null | null | null | include/nodes/internal/Export.hpp | clouddon/nodeeditor | fda93f9b75012d420e087a6b1aae50061ba47947 | [
"BSD-3-Clause"
] | null | null | null | include/nodes/internal/Export.hpp | clouddon/nodeeditor | fda93f9b75012d420e087a6b1aae50061ba47947 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#if \
defined (__CYGWIN__) || \
defined (__CYGWIN32__)
# define NODE_EDITOR_PLATFORM "Cygwin"
# define NODE_EDITOR_PLATFORM_CYGWIN
# define NODE_EDITOR_PLATFORM_UNIX
# de... | 36.008547 | 87 | 0.545099 | clouddon |
c9771ac657028531efbc20c9b837eebb10ef5c52 | 26,073 | cpp | C++ | YorozuyaGSLib/source/CMonsterSkillDetail.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/CMonsterSkillDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/CMonsterSkillDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <CMonsterSkillDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::CMonsterSkillctor_CMonsterSkill2_ptr CMonsterSkillctor_CMonsterSkill2_next(nullptr);
Info::CMonsterSkillctor_CMonsterSkill2_clbk CMonsterSkillctor_CMonsterSkill2_user(nullptr)... | 55.950644 | 318 | 0.68615 | lemkova |
c97a10c7980e29f436ccf6c1cea11fe5c29318fb | 7,167 | cpp | C++ | code/editors/xrECoreLite/EditObject.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/editors/xrECoreLite/EditObject.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/editors/xrECoreLite/EditObject.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 3 | 2020-06-26T11:41:44.000Z | 2021-09-29T19:35:04.000Z | //----------------------------------------------------
// file: EditObject.cpp
//----------------------------------------------------
#include "files_list.hpp"
#pragma hdrstop
#if defined (_MAX_EXPORT)
#include "..\..\..\xrEngine\fmesh.h"
#else
#include "..\..\xrEngine\fmesh.h"
#endif
#include "EditObject.h"
#includ... | 21.267062 | 106 | 0.625785 | Rikoshet-234 |
c97aab1a63d144d7077a8d5dba1951be32af82e4 | 1,465 | cpp | C++ | lucida/imagematching/template/IMSClient.cpp | bnsblue/lucida | b3810caf5d8ab1d3494c56fd0c01eca38185002b | [
"BSD-3-Clause"
] | 3,483 | 2015-01-09T03:23:46.000Z | 2015-12-13T03:00:51.000Z | lucida/imagematching/template/IMSClient.cpp | bnsblue/lucida | b3810caf5d8ab1d3494c56fd0c01eca38185002b | [
"BSD-3-Clause"
] | 50 | 2015-03-07T00:03:13.000Z | 2015-06-30T06:07:45.000Z | lucida/imagematching/template/IMSClient.cpp | bnsblue/lucida | b3810caf5d8ab1d3494c56fd0c01eca38185002b | [
"BSD-3-Clause"
] | 495 | 2015-03-11T17:39:54.000Z | 2015-12-20T16:26:43.000Z | /*
*
*
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransportUtils.h>
#include "gen-cpp/ImageMatchingService.h"
using namespace std;
using namespace apache::thrift;
u... | 22.538462 | 73 | 0.682594 | bnsblue |
c97d8854211c8f4d5dd6bbbf18f79f0e49674088 | 1,979 | hpp | C++ | include/trial/online/interim/comoment.hpp | breese/trial.online | d28f8025082682ce10d9eb97c63ed0d4e62c7511 | [
"BSL-1.0"
] | 6 | 2017-11-19T15:12:33.000Z | 2021-12-18T08:21:45.000Z | include/trial/online/interim/comoment.hpp | breese/trial.online | d28f8025082682ce10d9eb97c63ed0d4e62c7511 | [
"BSL-1.0"
] | 1 | 2019-02-20T11:28:49.000Z | 2019-02-20T11:28:49.000Z | include/trial/online/interim/comoment.hpp | breese/trial.online | d28f8025082682ce10d9eb97c63ed0d4e62c7511 | [
"BSL-1.0"
] | 2 | 2019-02-19T16:00:03.000Z | 2020-10-29T08:26:44.000Z | #ifndef TRIAL_ONLINE_INTERIM_COMOMENT_HPP
#define TRIAL_ONLINE_INTERIM_COMOMENT_HPP
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2019 Bjorn Reese <breese@users.sourceforge.net>
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanyin... | 26.386667 | 88 | 0.664982 | breese |
c98b38ae62cf86d46a78ecd36c5e844aff855886 | 2,999 | hpp | C++ | libformula/Headers/formula/Term.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 78 | 2015-07-31T14:46:38.000Z | 2022-03-28T09:28:28.000Z | libformula/Headers/formula/Term.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 81 | 2015-08-03T07:58:19.000Z | 2022-02-28T16:21:19.000Z | libformula/Headers/formula/Term.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 49 | 2015-08-03T12:53:10.000Z | 2022-03-17T17:25:49.000Z | /*
Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com).
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)
*/
#ifndef __LIBFORMULA_TERM_HPP
#define __LIBFORMULA_TERM_HPP
#include "CodeEmitter.hpp"
#include "... | 35.282353 | 98 | 0.591531 | purefunsolutions |
c98c55131a7aa847d5e003069bac8848e151e740 | 3,187 | inl | C++ | include/equal/factory/dat.inl | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | 7 | 2019-08-07T21:27:27.000Z | 2020-11-27T16:33:16.000Z | include/equal/factory/dat.inl | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | include/equal/factory/dat.inl | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Equal Games
* 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 ... | 23.433824 | 80 | 0.698149 | equal-games |
c99a62b4a49898f32e0998ac3464ceb35711b7ff | 3,094 | cpp | C++ | constraintsolver/src/types/Clause.cpp | hendrik-skubch/alica-supplementary | de6d48cc6b8144bdc7bf03373ae04212b1f545bc | [
"MIT"
] | 1 | 2018-12-28T12:06:45.000Z | 2018-12-28T12:06:45.000Z | constraintsolver/src/types/Clause.cpp | hendrik-skubch/alica-supplementary | de6d48cc6b8144bdc7bf03373ae04212b1f545bc | [
"MIT"
] | 12 | 2018-05-28T05:27:04.000Z | 2021-11-23T07:52:35.000Z | constraintsolver/src/types/Clause.cpp | hendrik-skubch/alica-supplementary | de6d48cc6b8144bdc7bf03373ae04212b1f545bc | [
"MIT"
] | 3 | 2019-03-27T01:05:10.000Z | 2020-07-23T19:11:09.000Z | /*
* Clause.cpp
*
* Created on: Dec 4, 2014
* Author: Philipp
*/
#include "types/Clause.h"
#include "types/Lit.h"
#include "types/Var.h"
#include "types/Watcher.h"
#include <iostream>
namespace alica
{
namespace reasoner
{
namespace cnsat
{
Clause::Clause()
{
activity = 0;
satisfied = false;
... | 22.42029 | 107 | 0.519716 | hendrik-skubch |
c99e31234951a1cd8a5128cee47273d49aa3c9ef | 5,574 | cc | C++ | lib/asan/asan_malloc_win.cc | Inventor1938/compiler_rt | 71f55845f157d285d27bbc5e5c53ff145847d9b4 | [
"MIT"
] | 8,865 | 2017-03-13T03:27:32.000Z | 2022-03-31T12:57:44.000Z | atlas-aapt/external/compiler-rt/lib/asan/asan_malloc_win.cc | gdongxie/atlas | 602b3295716ef405574033759ab0238c7ee34527 | [
"Apache-2.0"
] | 359 | 2017-03-13T06:37:22.000Z | 2022-01-27T14:31:43.000Z | atlas-aapt/external/compiler-rt/lib/asan/asan_malloc_win.cc | gdongxie/atlas | 602b3295716ef405574033759ab0238c7ee34527 | [
"Apache-2.0"
] | 1,709 | 2017-03-13T02:29:13.000Z | 2022-03-31T12:57:48.000Z | //===-- asan_malloc_win.cc ------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 31.139665 | 80 | 0.712235 | Inventor1938 |
c9a03be1325335a9eb5790139baf33c9e2663315 | 5,207 | hpp | C++ | thirdparty/taocppjson/include/tao/json/sax/from_value.hpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/taocppjson/include/tao/json/sax/from_value.hpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/taocppjson/include/tao/json/sax/from_value.hpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | // Copyright (c) 2016-2017 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAOCPP_JSON_INCLUDE_SAX_FROM_VALUE_HPP
#define TAOCPP_JSON_INCLUDE_SAX_FROM_VALUE_HPP
#include <stdexcept>
#include "../value.hpp"
namespace tao
{
namespace json
{
... | 38.007299 | 97 | 0.467256 | liftchampion |
c9a880b97b52efd83273551e225ade48ffe9e286 | 1,871 | hpp | C++ | io/private/tty_color_t.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 41 | 2019-09-24T02:17:34.000Z | 2022-01-18T03:14:46.000Z | io/private/tty_color_t.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 2 | 2019-11-04T09:01:40.000Z | 2020-06-23T03:03:38.000Z | io/private/tty_color_t.hpp | Better-Idea/Mix-C | 71f34a5fc8c17a516cf99bc397289d046364a82e | [
"Apache-2.0"
] | 8 | 2019-09-24T02:17:35.000Z | 2021-09-11T00:21:03.000Z | #ifndef xpack_io_private_tty_color_t
#define xpack_io_private_tty_color_t
#pragma push_macro("xuser")
#undef xuser
#define xuser mixc::io_private_tty_color_t::inc
#include"define/base_type.hpp"
#include"macro/xexport.hpp"
#pragma pop_macro("xuser")
namespace mixc::io_private_tty_color_t::origin{
enum class tty_co... | 35.980769 | 77 | 0.634955 | Better-Idea |
c9a8ced0f3090311fb3399a3d77bb40804d6f7f1 | 615 | cpp | C++ | docs/atl/codesnippet/CPP/catllist-class_13.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/atl/codesnippet/CPP/catllist-class_13.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/atl/codesnippet/CPP/catllist-class_13.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | // Define the integer list
CAtlList<int> myList;
// Populate the list
myList.AddTail(1);
myList.AddTail(2);
myList.AddTail(3);
myList.AddTail(4);
// Confirm not empty
ATLASSERT(myList.IsEmpty() == false);
// Remove the tail element
myList.RemoveTailNoReturn();
// Confirm not empt... | 21.206897 | 42 | 0.652033 | bobbrow |
c9acad7ea1d0289d4da1fe0af97b10b2885003f7 | 4,376 | cpp | C++ | src/update.cpp | fatorius/Capizero | 2aace7c314df37a7a1c437eb2e66571ed1a89aa5 | [
"MIT"
] | null | null | null | src/update.cpp | fatorius/Capizero | 2aace7c314df37a7a1c437eb2e66571ed1a89aa5 | [
"MIT"
] | null | null | null | src/update.cpp | fatorius/Capizero | 2aace7c314df37a7a1c437eb2e66571ed1a89aa5 | [
"MIT"
] | null | null | null | #include "include.h"
#include "update.h"
#include "bitboard.h"
#include "hash.h"
#include "attacks.h"
#include "init.h"
int reverse_square[2] = {-8,8};
game* g;
void update_piece(const int s,const int p,const int start,const int dest){
bit_units[s] &= not_mask[start];
bit_units[s] |= mask[dest];
bit_all ... | 24.311111 | 96 | 0.527422 | fatorius |
c9ad1b44df2191a3fbbff1177b7183a434aa2abc | 5,473 | cpp | C++ | catboost/private/libs/algo/approx_calcer/eval_additive_metric_with_leaves.cpp | SaiAyachit/catboost | 876d831d1a6c9fb7caa6f24e70058580f09b5c6c | [
"Apache-2.0"
] | 4 | 2020-06-24T06:07:52.000Z | 2021-04-16T22:58:09.000Z | catboost/private/libs/algo/approx_calcer/eval_additive_metric_with_leaves.cpp | TakeOver/stochasticrank | 45f9c701785bb952c59c704a2bfe878d5cbb01e4 | [
"Apache-2.0"
] | null | null | null | catboost/private/libs/algo/approx_calcer/eval_additive_metric_with_leaves.cpp | TakeOver/stochasticrank | 45f9c701785bb952c59c704a2bfe878d5cbb01e4 | [
"Apache-2.0"
] | 1 | 2020-10-17T09:28:08.000Z | 2020-10-17T09:28:08.000Z | #include "eval_additive_metric_with_leaves.h"
#include <catboost/libs/helpers/exception.h>
#include <catboost/libs/helpers/vector_helpers.h>
#include <library/cpp/fast_exp/fast_exp.h>
#include <util/generic/algorithm.h>
#include <util/generic/utility.h>
#include <util/generic/vector.h>
#include <util/generic/xrange.... | 37.744828 | 133 | 0.636762 | SaiAyachit |
c9ade46a2116d05e7760a7b522ba7358ecae51f3 | 4,261 | cpp | C++ | assignments/a6-transform/unique.cpp | habmc/animation-toolkit | 7abce87dbe7c5dfe392a168e47f22596b7a9a7b0 | [
"MIT"
] | null | null | null | assignments/a6-transform/unique.cpp | habmc/animation-toolkit | 7abce87dbe7c5dfe392a168e47f22596b7a9a7b0 | [
"MIT"
] | null | null | null | assignments/a6-transform/unique.cpp | habmc/animation-toolkit | 7abce87dbe7c5dfe392a168e47f22596b7a9a7b0 | [
"MIT"
] | null | null | null | #include "atkui/framework.h"
#include "atk/toolkit.h"
using namespace atk;
using glm::quat;
using glm::vec3;
class Unique : public atkui::Framework
{
public:
Unique() : atkui::Framework(atkui::Perspective) {}
virtual ~Unique() {}
virtual void setup()
{
lookAt(vec3(-20, 50, -700), vec3(0));
... | 34.362903 | 116 | 0.526402 | habmc |
c9b7441dcbfdd37824f3fffd8d001badf441802c | 843 | cpp | C++ | base/static_resource_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 264 | 2015-01-03T11:50:17.000Z | 2022-03-17T02:38:34.000Z | base/static_resource_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 12 | 2015-04-27T15:17:34.000Z | 2021-05-01T04:31:18.000Z | base/static_resource_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 128 | 2015-02-07T18:13:10.000Z | 2022-02-21T14:24:14.000Z | // Copyright (c) 2011, The Toft Authors.
// All rights reserved.
//
// Author: CHEN Feng <chen3feng@gmail.com>
// Created: 09/30/11
// Description: static resource test
#include "toft/base/static_resource.h"
#include "toft/base/static_resource_test_data.h"
#include "thirdparty/gtest/gtest.h"
namespace toft {
static ... | 25.545455 | 74 | 0.733096 | hjinlin |
c9ba7748536a88bdcd54e2c575160c31d8cd2144 | 145 | cc | C++ | build/x86/python/m5/internal/BasicRouter_vector.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/BasicRouter_vector.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/BasicRouter_vector.i_init.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_BasicRouter_vector();
}
EmbeddedSwig embed_swig_BasicRouter_vector(init_BasicRouter_vector);
| 18.125 | 68 | 0.786207 | billionshang |
c9bc14cb506ec90cd7b3348b232da1de4d188142 | 3,216 | cpp | C++ | noisy_circles/src/ofApp.cpp | c-c-c/gold-creative-coding | d7ccb5d5f706caafed27050a4c3a514c56a8230e | [
"MIT"
] | 1 | 2020-04-25T06:34:59.000Z | 2020-04-25T06:34:59.000Z | noisy_circles/src/ofApp.cpp | c-c-c/gold-creative-coding-1 | d7ccb5d5f706caafed27050a4c3a514c56a8230e | [
"MIT"
] | null | null | null | noisy_circles/src/ofApp.cpp | c-c-c/gold-creative-coding-1 | d7ccb5d5f706caafed27050a4c3a514c56a8230e | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(255);
ofSetBackgroundAuto(false);
totalRays = 20;
stepSize = 200;
radius = 300;
angleStep = TWO_PI/totalRays;
sunLocX = ofGetWidth()/2;
sunLocY = ofGetHeight()... | 25.125 | 79 | 0.439366 | c-c-c |
c9c28ee01b835ed81984137a1913dbfd8ee0849f | 4,736 | hh | C++ | core/transformation/TransformationFunctionArgs.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | 5 | 2019-10-14T01:06:57.000Z | 2021-02-02T16:33:06.000Z | core/transformation/TransformationFunctionArgs.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | core/transformation/TransformationFunctionArgs.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include "Args.hh"
#include "Rets.hh"
#include "Ints.hh"
#include "Atypes.hh"
#include "Rtypes.hh"
#include "Itypes.hh"
namespace ParametrizedTypes{
class ParametrizedBase;
}
namespace TransformationTypes
{
template<typename FloatType,typename SizeType> class GPUFunctionArgsT;
te... | 39.798319 | 137 | 0.697846 | gnafit |
c9c52249096143bb02479851000731440129fcb4 | 7,430 | cpp | C++ | src/test/lang/ast/sigs/function_signatures_test.cpp | ludkinm/stan | c318114f875266f22c98cf0bebfff928653727cb | [
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | src/test/lang/ast/sigs/function_signatures_test.cpp | ludkinm/stan | c318114f875266f22c98cf0bebfff928653727cb | [
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | src/test/lang/ast/sigs/function_signatures_test.cpp | ludkinm/stan | c318114f875266f22c98cf0bebfff928653727cb | [
"CC-BY-3.0",
"BSD-3-Clause"
] | null | null | null | #include <stan/lang/ast_def.cpp>
#include <gtest/gtest.h>
#include <cmath>
#include <sstream>
#include <string>
#include <set>
#include <vector>
using stan::lang::bare_array_type;
using stan::lang::bare_expr_type;
using stan::lang::double_type;
using stan::lang::expression;
using stan::lang::function_signatures;
using... | 36.243902 | 80 | 0.646433 | ludkinm |
c9c5b730197b4f6f9e7e5653359ad7a3d30b83ec | 1,756 | cpp | C++ | ui/src/gtk3/application.cpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | 27 | 2020-01-02T07:40:57.000Z | 2022-03-09T14:43:56.000Z | ui/src/gtk3/application.cpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | null | null | null | ui/src/gtk3/application.cpp | Berrysoft/XamlCpp | cc7da0cf83892ceb88926292b7c90b9f8da6128d | [
"MIT"
] | 3 | 2020-05-21T07:02:08.000Z | 2021-07-01T00:56:38.000Z | #include <gtk/gtk.h>
#include <nowide/cstdlib.hpp>
#include <shared/application.hpp>
#include <xaml/ui/application.h>
using namespace std;
xaml_result xaml_application_impl::init(int argc, char** argv) noexcept
{
m_native_impl.m_outer = this;
XAML_RETURN_IF_FAILED(xaml_event_new(&m_activate));
m_native_ap... | 33.769231 | 113 | 0.753986 | Berrysoft |
c9c67a756ef95067ee069b6015d0a7eec895d146 | 3,247 | cpp | C++ | common/ffsutils.cpp | ISpillMyDrink/UEFITool | a4430e24e05154c1e9c9023f4ab487acd7310ca4 | [
"BSD-2-Clause"
] | null | null | null | common/ffsutils.cpp | ISpillMyDrink/UEFITool | a4430e24e05154c1e9c9023f4ab487acd7310ca4 | [
"BSD-2-Clause"
] | null | null | null | common/ffsutils.cpp | ISpillMyDrink/UEFITool | a4430e24e05154c1e9c9023f4ab487acd7310ca4 | [
"BSD-2-Clause"
] | null | null | null | /* ffsutils.cpp
Copyright (c) 2019, LongSoft. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.... | 34.542553 | 170 | 0.642747 | ISpillMyDrink |
c9c7dc4290dab1e13270eb07feecd6dd4f90f5f8 | 1,022 | cpp | C++ | Advanced-Concepts/lambdas/properties/properties.cpp | Zayk01/Cplusplus-Concepts | cbe81abcd0776d7b331ab5e7dd8993926551cf87 | [
"MIT"
] | null | null | null | Advanced-Concepts/lambdas/properties/properties.cpp | Zayk01/Cplusplus-Concepts | cbe81abcd0776d7b331ab5e7dd8993926551cf87 | [
"MIT"
] | null | null | null | Advanced-Concepts/lambdas/properties/properties.cpp | Zayk01/Cplusplus-Concepts | cbe81abcd0776d7b331ab5e7dd8993926551cf87 | [
"MIT"
] | null | null | null | #include <iostream>
#include <list>
#include <cassert>
#include "propierties.hpp"
using namespace std;
int main() {
/*Initializing variables in capture*/
auto mylambda = [c=list<int>{4,2}](){ //lambda
for(auto v : c) cout << v ;
};
mylambda(); // Output: 42
auto obj = variables_in_c... | 18.925926 | 61 | 0.453033 | Zayk01 |
c9c875b0dadba5adabd3b22688881c7105aef4bb | 531 | hpp | C++ | commonFunctions.hpp | noah1510/modwo_leaves | a99c46268b89fda5c8b764aacdd3ad38dcfb19fe | [
"MIT"
] | null | null | null | commonFunctions.hpp | noah1510/modwo_leaves | a99c46268b89fda5c8b764aacdd3ad38dcfb19fe | [
"MIT"
] | null | null | null | commonFunctions.hpp | noah1510/modwo_leaves | a99c46268b89fda5c8b764aacdd3ad38dcfb19fe | [
"MIT"
] | null | null | null | //
// commonFunctions.hpp
// modwo_leaves
//
// Created by Tobias Höpp on 10.10.18.
// Copyright © 2018 Tobias Höpp. All rights reserved.
//
#ifndef commonFunctions_hpp
#define commonFunctions_hpp
#include <stdio.h>
#endif /* commonFunctions_hpp */
using namespace std;
float durchschnitt(float* arr, int* laenge);... | 27.947368 | 114 | 0.753296 | noah1510 |
c9d3b7e1fc79309ec11e2620ad2182f0fd8079c4 | 1,493 | cpp | C++ | bindings/ATL/pgelib2015/PGEFile/PGEFile/PGELevelData.cpp | ds-sloth/PGE-File-Library-STL | ed6dcae410bad6376e21fd5213d6952bdf7ae7cd | [
"MIT"
] | 1 | 2018-09-02T09:51:31.000Z | 2018-09-02T09:51:31.000Z | bindings/ATL/pgelib2015/PGEFile/PGEFile/PGELevelData.cpp | ds-sloth/PGE-File-Library-STL | ed6dcae410bad6376e21fd5213d6952bdf7ae7cd | [
"MIT"
] | 4 | 2017-08-06T13:52:15.000Z | 2021-07-21T04:32:15.000Z | bindings/ATL/pgelib2015/PGEFile/PGEFile/PGELevelData.cpp | ds-sloth/PGE-File-Library-STL | ed6dcae410bad6376e21fd5213d6952bdf7ae7cd | [
"MIT"
] | 6 | 2017-03-23T15:26:06.000Z | 2021-07-21T04:26:27.000Z | // PGELevelData.cpp: Implementierung von CPGELevelData
#include "stdafx.h"
#include "PGELevelData.h"
// CPGELevelData
STDMETHODIMP CPGELevelData::get_Stars(LONG* pVal)
{
*pVal = m_stars;
return S_OK;
}
STDMETHODIMP CPGELevelData::put_Stars(LONG newVal)
{
m_stars = newVal;
return S_OK;
}
STDMET... | 16.775281 | 90 | 0.758205 | ds-sloth |
c9d62922280e5c7e5df95c116ae667ac432052bb | 3,894 | hpp | C++ | include/glw/Mesh.hpp | jarrettchisholm/glr | 79a57b12e26fe84595e833cace3528cb9c82bc20 | [
"WTFPL"
] | 11 | 2015-08-19T23:15:41.000Z | 2018-05-15T21:53:28.000Z | include/glw/Mesh.hpp | jarrettchisholm/glr | 79a57b12e26fe84595e833cace3528cb9c82bc20 | [
"WTFPL"
] | 2 | 2015-05-21T06:37:24.000Z | 2015-05-23T05:37:16.000Z | include/glw/Mesh.hpp | jarrettchisholm/glr | 79a57b12e26fe84595e833cace3528cb9c82bc20 | [
"WTFPL"
] | 5 | 2016-10-31T08:02:15.000Z | 2018-08-24T07:40:23.000Z | #ifndef MESH_H_
#define MESH_H_
#include <vector>
#include <atomic>
#include <GL/glew.h>
#include <assimp/cimport.h>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include "IMesh.hpp"
#include "shaders/IShaderProgram.hpp"
namespace glr
{
namespace glw
{
class IOpenGlDevice;
/**
* A class that cont... | 26.489796 | 111 | 0.724448 | jarrettchisholm |
c9df8e869ae2ae7d357ee40f634e6e3e72d70df5 | 1,985 | cpp | C++ | src/viewer.cpp | cfsd/cfsd18-visualization | e43d20d4b5312ef5e39b92184e0bb2b9476bda42 | [
"BSD-3-Clause"
] | null | null | null | src/viewer.cpp | cfsd/cfsd18-visualization | e43d20d4b5312ef5e39b92184e0bb2b9476bda42 | [
"BSD-3-Clause"
] | 1 | 2018-10-20T12:08:52.000Z | 2018-10-20T12:08:52.000Z | src/viewer.cpp | cfsd/cfsd18-visualization | e43d20d4b5312ef5e39b92184e0bb2b9476bda42 | [
"BSD-3-Clause"
] | null | null | null |
#include "viewer.hpp"
#include <pangolin/pangolin.h>
Viewer::Viewer(std::map<std::string,std::string> commandlineArgs, Drawer &drawer)
: m_drawer(drawer){
std::cout << commandlineArgs.count("cid") << std::endl;
}
void Viewer::Run(){
pangolin::CreateWindowAndBind("Path Viewer",1024,768);
// 3D M... | 32.540984 | 84 | 0.648866 | cfsd |
c9dfd52eb5bdae300acc4d132908d29af3244d68 | 385 | hxx | C++ | incl/Handler.hxx | TumbleOwlee/win-rearrange-cxx | b72b15c3c555b6b1afea4478c973c151107cd67a | [
"MIT"
] | 1 | 2021-11-13T00:05:19.000Z | 2021-11-13T00:05:19.000Z | incl/Handler.hxx | TumbleOwlee/win-rearrange-cxx | b72b15c3c555b6b1afea4478c973c151107cd67a | [
"MIT"
] | null | null | null | incl/Handler.hxx | TumbleOwlee/win-rearrange-cxx | b72b15c3c555b6b1afea4478c973c151107cd67a | [
"MIT"
] | null | null | null | #ifndef HXX_HANDLER
#define HXX_HANDLER
#include "Config.hxx"
#include "Command.hxx"
#include <atomic>
#include <thread>
class Handler
{
public:
Handler(Config& config);
void start();
void stop();
private:
std::atomic_bool m_stop;
Config& m_config;
std::unique_ptr<std::thread> m_thread;
... | 13.275862 | 42 | 0.664935 | TumbleOwlee |
5187140d94d0aa3938739fec2d7897157e236a0b | 9,857 | cpp | C++ | src/ImGui/imgui_impl_gateware.cpp | dgramirez/vkPortfolio | a26fea81a640477437ec74ca0ce28e1848d3ecf0 | [
"MIT"
] | null | null | null | src/ImGui/imgui_impl_gateware.cpp | dgramirez/vkPortfolio | a26fea81a640477437ec74ca0ce28e1848d3ecf0 | [
"MIT"
] | null | null | null | src/ImGui/imgui_impl_gateware.cpp | dgramirez/vkPortfolio | a26fea81a640477437ec74ca0ce28e1848d3ecf0 | [
"MIT"
] | null | null | null | // dear imgui: Platform Binding for Gateware (64 bit applications only)
// This needs to be used along with a Renderer (e.g. DirectX11, OpenGL3, Vulkan..)
// Implemented features:
// [X] Just the Base Stuff
// [ ] Works just as well with Linux
// [ ] Works just as well with Mac
#include "imgui.h"
#include "imgui_impl... | 25.470284 | 189 | 0.703967 | dgramirez |
518d7cbea2bd353743e8337d63f38c3ef6a7c1e8 | 181 | hh | C++ | parser/parser.hh | jez/ragel-bison-parser-sandbox | 6663d1887472eda9569d507356e26c30d2c25d8a | [
"BlueOak-1.0.0"
] | 2 | 2020-09-12T15:45:26.000Z | 2021-11-01T19:21:23.000Z | parser/parser.hh | jez/ragel-bison-parser-sandbox | 6663d1887472eda9569d507356e26c30d2c25d8a | [
"BlueOak-1.0.0"
] | null | null | null | parser/parser.hh | jez/ragel-bison-parser-sandbox | 6663d1887472eda9569d507356e26c30d2c25d8a | [
"BlueOak-1.0.0"
] | 1 | 2021-07-18T22:52:05.000Z | 2021-07-18T22:52:05.000Z | #pragma once
#include "parser/driver.hh"
#include "parser/parser_impl.h"
namespace sandbox::parser {
std::unique_ptr<Node> parse(std::string_view source, bool trace = false);
}
| 16.454545 | 73 | 0.740331 | jez |
51903a1fa5d660f3f9a470bcba3008aa9ce4dcd0 | 1,374 | cpp | C++ | src/services/robot_config.cpp | simwijs/naoqi_driver | 89b00459dc517f8564b1d7092eb36a3fc68a7096 | [
"Apache-2.0"
] | null | null | null | src/services/robot_config.cpp | simwijs/naoqi_driver | 89b00459dc517f8564b1d7092eb36a3fc68a7096 | [
"Apache-2.0"
] | null | null | null | src/services/robot_config.cpp | simwijs/naoqi_driver | 89b00459dc517f8564b1d7092eb36a3fc68a7096 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Aldebaran
*
* 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... | 29.234043 | 179 | 0.740175 | simwijs |
51951edf6e30ed37fee4dc85551a612e15b2eee8 | 1,475 | cpp | C++ | 0898-Leftmost One/0898-Leftmost One.cpp | akekho/LintCode | 2d31f1ec092d89e70d5059c7fb2df2ee03da5981 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0801-0900/0898-Leftmost One/0898-Leftmost One.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0801-0900/0898-Leftmost One/0898-Leftmost One.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/**
* @param arr: The 2-dimension array
* @return: Return the column the leftmost one is located
*/
int getColumn(vector<vector<int>> &arr) {
// Write your code here
int m = arr.size();
int n = arr[0].size();
int left = n;
for (int ... | 24.583333 | 61 | 0.372203 | akekho |
5199e8dc83a51e34d03d96bbc4471ee82918843d | 1,891 | cpp | C++ | src/chapter2_windowCreation.cpp | dokipen3d/OpenGLTutorial | 31d7a67dc01079a2fb395b3c236f3e8d97b53c19 | [
"BSL-1.0"
] | null | null | null | src/chapter2_windowCreation.cpp | dokipen3d/OpenGLTutorial | 31d7a67dc01079a2fb395b3c236f3e8d97b53c19 | [
"BSL-1.0"
] | null | null | null | src/chapter2_windowCreation.cpp | dokipen3d/OpenGLTutorial | 31d7a67dc01079a2fb395b3c236f3e8d97b53c19 | [
"BSL-1.0"
] | null | null | null | #include <array>
#include <chrono> // current time
#include <cmath> // sin & cos
#include <cstdlib> // for std::exit()
#include <fmt/core.h> // for fmt::print(). implements c++20 std::format
// this is really important to make sure that glbindings does not clash with
// glfw's opengl includes. otherwise we get amb... | 28.223881 | 76 | 0.626653 | dokipen3d |
519d6f863ce4ecaf9653f25466d6e310c8f6ee6c | 6,808 | cpp | C++ | src/ppu.cpp | hyprd/ouri | 701b3c0f536d999fb88695ac8a1631bc595fd402 | [
"MIT"
] | null | null | null | src/ppu.cpp | hyprd/ouri | 701b3c0f536d999fb88695ac8a1631bc595fd402 | [
"MIT"
] | null | null | null | src/ppu.cpp | hyprd/ouri | 701b3c0f536d999fb88695ac8a1631bc595fd402 | [
"MIT"
] | null | null | null | #include "ppu.h"
#include "helpers.h"
PPU::PPU(MMU* mmu) {
_mmu = mmu;
LCDControl = _mmu->ReadMemory(0xFF40);
LCDStatus = _mmu->ReadMemory(0xFF41);
// SDL
window = SDL_CreateWindow("ouri", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 160, 144, 0);
renderer = SDL_CreateRenderer(window, -1... | 38.247191 | 116 | 0.584313 | hyprd |
519f5289a31077c5a9427b556642dc995416a9c4 | 9,244 | cpp | C++ | src/read_buffer.cpp | skovaka/nanopore_aligner | 0ebd606d941db0bb82f14c17b453f27269a38716 | [
"MIT"
] | null | null | null | src/read_buffer.cpp | skovaka/nanopore_aligner | 0ebd606d941db0bb82f14c17b453f27269a38716 | [
"MIT"
] | null | null | null | src/read_buffer.cpp | skovaka/nanopore_aligner | 0ebd606d941db0bb82f14c17b453f27269a38716 | [
"MIT"
] | null | null | null | /* MIT License
*
* Copyright (c) 2018 Sam Kovaka <skovaka@gmail.com>
*
* 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... | 26.563218 | 100 | 0.582432 | skovaka |
51a602bf0f8a0e7de444810c4bf3e6bccf2ffd3d | 1,590 | cpp | C++ | inkcpp/string_table.cpp | 2shady4u/inkcpp | 3b1a90336ba56ed7dcac8c51f9860c93be358fe0 | [
"MIT"
] | null | null | null | inkcpp/string_table.cpp | 2shady4u/inkcpp | 3b1a90336ba56ed7dcac8c51f9860c93be358fe0 | [
"MIT"
] | null | null | null | inkcpp/string_table.cpp | 2shady4u/inkcpp | 3b1a90336ba56ed7dcac8c51f9860c93be358fe0 | [
"MIT"
] | null | null | null | #include "string_table.h"
namespace ink::runtime::internal
{
string_table::~string_table()
{
// Delete all allocated strings
for (auto iter = _table.begin(); iter != _table.end(); ++iter)
delete[] iter.key();
_table.clear();
}
char* string_table::create(size_t length)
{
// allocate the string
char* ... | 19.156627 | 89 | 0.61195 | 2shady4u |
51a971772986f04f1c8657f45616104fedcb58a9 | 36,042 | hpp | C++ | lib/sept/Data.hpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | lib/sept/Data.hpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | lib/sept/Data.hpp | vdods/sept | 08ee1faf1af4feb0dc440a3002eb8cc52681f946 | [
"Apache-2.0"
] | null | null | null | // 2020.03.13 - Victor Dods
#pragma once
#include <any>
#include <cassert>
#include <exception>
#include <functional>
#include <iostream>
#include <lvd/hash.hpp>
#include <lvd/OstreamDelegate.hpp>
#include <lvd/StaticAssociation_t.hpp>
#include "sept/core.hpp"
#include "sept/DataPrintCtx.hpp"
#include "sept/RefTerm.h... | 43.060932 | 137 | 0.698518 | vdods |
51aa22d8c28a360f3287d63dd61d0bf7575a9208 | 4,506 | cpp | C++ | Samples/Win7Samples/winbase/storage/EhStorEnumerator/EhStorEnumerator2/LocalCertStoreImp.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/winbase/storage/EhStorEnumerator/EhStorEnumerator2/LocalCertStoreImp.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/winbase/storage/EhStorEnumerator/EhStorEnumerator2/LocalCertStoreImp.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
#include "StdAfx.h"
... | 28.339623 | 128 | 0.648247 | windows-development |
51b398064863748ee5808273d91e4f83d884fcc2 | 3,406 | cpp | C++ | tests/HttpURL.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 10 | 2019-02-21T06:21:48.000Z | 2022-02-22T08:01:24.000Z | tests/HttpURL.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 2 | 2018-02-04T20:16:46.000Z | 2018-02-04T20:19:00.000Z | tests/HttpURL.cpp | Good-Pudge/OkHttpFork | b179350d6262f281c1c27d69d944c62f536fe1ba | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | 10 | 2018-10-15T10:17:00.000Z | 2022-02-17T02:28:51.000Z | #include <catch.hpp>
#include "util/ExceptionCatch.hpp"
#include <ohf/HttpURL.hpp>
using namespace ohf;
TEST_CASE("HttpURL") {
REQUIRE(HttpURL::defaultPort("http") == 80);
REQUIRE(HttpURL::defaultPort("https") == 443);
REQUIRE(HttpURL::decode("Hello%2C%20world%21") == "Hello, world!");
REQUIRE_THROWS... | 40.070588 | 114 | 0.627422 | Good-Pudge |
51b3a6d2ebf4456f7f27f5e333e72cf2bf2de5a0 | 3,916 | cpp | C++ | libcaf_core/test/actor_factory.cpp | v2nero/actor-framework | c2f811809143d32c598471a20363238b0882a761 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-03-06T19:51:07.000Z | 2021-03-06T19:51:07.000Z | libcaf_core/test/actor_factory.cpp | Boubou818/actor-framework | da90ef78b26da5d225f039072e616da415c48494 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/test/actor_factory.cpp | Boubou818/actor-framework | da90ef78b26da5d225f039072e616da415c48494 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-02-19T11:25:15.000Z | 2021-02-19T11:25:15.000Z | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 31.328 | 80 | 0.569969 | v2nero |
51b7752ec44b728ca36f0e7c54e6ee04b018660b | 8,216 | cpp | C++ | src/opbox/common/OpRegistry.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/opbox/common/OpRegistry.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/opbox/common/OpRegistry.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <iostream>
#include <chrono>
#include <thread>
#include <sstream>
#include <map>
#include "faodel-commo... | 30.887218 | 133 | 0.67186 | faodel |
51bc4bce65562e10f228ba9b2adc9415fc24eff5 | 609 | cpp | C++ | URI/1012.cpp | JovemPedr0/LP1 | d1e1a6df95812cab1dca3b981273c9557557572e | [
"MIT"
] | null | null | null | URI/1012.cpp | JovemPedr0/LP1 | d1e1a6df95812cab1dca3b981273c9557557572e | [
"MIT"
] | null | null | null | URI/1012.cpp | JovemPedr0/LP1 | d1e1a6df95812cab1dca3b981273c9557557572e | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#define PI 3.14159
using namespace std;
int main() {
double ladoA, ladoB, ladoC;
cin >> ladoA >> ladoB >> ladoC;
cout << "TRIANGULO: " << fixed << setprecision(3) << (ladoA*ladoC) / 2 << endl;
cout << "CIRCULO: " << fixed << setprecision(3) << PI * (ladoC *... | 25.375 | 93 | 0.563218 | JovemPedr0 |
51cf74e598561b6c220a361e65bc84f3dad1b27f | 20,185 | hpp | C++ | toolkits/graphical_models/factors/factor_graph.hpp | coreyp1/graphlab | 637be90021c5f83ab7833ca15c48e76039057969 | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2017-11-19T11:46:55.000Z | 2021-07-08T22:45:55.000Z | toolkits/graphical_models/factors/factor_graph.hpp | coreyp1/graphlab | 637be90021c5f83ab7833ca15c48e76039057969 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | toolkits/graphical_models/factors/factor_graph.hpp | coreyp1/graphlab | 637be90021c5f83ab7833ca15c48e76039057969 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2015-12-15T12:12:23.000Z | 2019-10-16T16:48:40.000Z | /**
* Software submitted by
* Systems & Technology Research / Vision Systems Inc., 2013
*
* Approved for public release; distribution is unlimited. [DISTAR Case #21428]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | 35.226876 | 103 | 0.650879 | coreyp1 |
51d1d70790c93f46bfa0fc6a1130c74d67f5695a | 8,105 | hpp | C++ | hipcub/include/hipcub/backend/rocprim/grid/grid_queue.hpp | ROCmMathLibrariesBot/hipCUB | 003a5b2b791dc01e88d0c0caaaf1de9ae53ad638 | [
"BSD-3-Clause"
] | 36 | 2019-05-14T09:27:57.000Z | 2022-03-03T09:19:11.000Z | hipcub/include/hipcub/backend/rocprim/grid/grid_queue.hpp | ROCmMathLibrariesBot/hipCUB | 003a5b2b791dc01e88d0c0caaaf1de9ae53ad638 | [
"BSD-3-Clause"
] | 70 | 2019-05-06T23:07:53.000Z | 2022-03-17T08:24:22.000Z | hipcub/include/hipcub/backend/rocprim/grid/grid_queue.hpp | ROCmMathLibrariesBot/hipCUB | 003a5b2b791dc01e88d0c0caaaf1de9ae53ad638 | [
"BSD-3-Clause"
] | 25 | 2019-05-03T19:45:13.000Z | 2022-03-31T08:14:38.000Z | /******************************************************************************
* Copyright (c) 2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
* Modifications Copyright (c) 2021, Advanced Micro Devices, Inc. All rights reserved.
*
* Redistribution a... | 34.34322 | 216 | 0.68723 | ROCmMathLibrariesBot |
51d23d123984af1afa6c2678ee5cbe8c25b0f6bf | 1,225 | cpp | C++ | codeforces/977D - Divide by three, multiply by two.cpp | Dijkstraido-2/online-judge | 31844cd8fbd5038cc5ebc6337d68229cef133a30 | [
"MIT"
] | 1 | 2018-12-25T23:55:19.000Z | 2018-12-25T23:55:19.000Z | codeforces/977D - Divide by three, multiply by two.cpp | Dijkstraido-2/online-judge | 31844cd8fbd5038cc5ebc6337d68229cef133a30 | [
"MIT"
] | null | null | null | codeforces/977D - Divide by three, multiply by two.cpp | Dijkstraido-2/online-judge | 31844cd8fbd5038cc5ebc6337d68229cef133a30 | [
"MIT"
] | null | null | null | //============================================================================
// Problem : 977D - Divide by three, multiply by two
// Category : Topsort
//============================================================================
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll... | 22.685185 | 81 | 0.395102 | Dijkstraido-2 |
51d5556f4c4bf4e9cdcd4ef4a4df5a3d933c111a | 3,029 | cpp | C++ | XJ Contests/2020/10.31/independent/independent.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/10.31/independent/independent.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/10.31/independent/independent.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | /*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=998244353;
int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;}
int sub(int x... | 28.308411 | 98 | 0.493232 | jinzhengyu1212 |
51d77d223f36b8d56658c52a25c8d7a260728653 | 5,949 | cpp | C++ | src/examples/meshviewer/util/frustumhelpers.cpp | bfierz/vcl | 6ef8d446b6a2f46543a5b3f9f76cad0d8f691969 | [
"MIT"
] | 15 | 2015-05-15T09:14:42.000Z | 2022-02-20T13:00:17.000Z | src/examples/meshviewer/util/frustumhelpers.cpp | bfierz/vcl | 6ef8d446b6a2f46543a5b3f9f76cad0d8f691969 | [
"MIT"
] | 54 | 2015-05-14T09:21:51.000Z | 2021-05-28T06:09:06.000Z | src/examples/meshviewer/util/frustumhelpers.cpp | bfierz/vcl | 6ef8d446b6a2f46543a5b3f9f76cad0d8f691969 | [
"MIT"
] | 4 | 2017-04-18T06:16:42.000Z | 2021-07-16T08:00:12.000Z | /*
* This file is part of the Visual Computing Library (VCL) release under the
* MIT license.
*
* Copyright (c) 2015 Basil Fierz
*
* 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 with... | 39.397351 | 168 | 0.673727 | bfierz |
51da91a4d2a4c7189a93f2a223108ff034bea36b | 2,083 | cpp | C++ | problem1.cpp | NIKU-SINGH/Project-Euler | 8398878a7ee5182cdd6e57ce2be8310ef2efdbef | [
"MIT"
] | null | null | null | problem1.cpp | NIKU-SINGH/Project-Euler | 8398878a7ee5182cdd6e57ce2be8310ef2efdbef | [
"MIT"
] | null | null | null | problem1.cpp | NIKU-SINGH/Project-Euler | 8398878a7ee5182cdd6e57ce2be8310ef2efdbef | [
"MIT"
] | null | null | null | /* *************************************QUESTION 1 *********************************************
If we list all the natural numbers below 10 that are multiples of 3 or 5,
we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
**********************************... | 31.560606 | 140 | 0.576572 | NIKU-SINGH |
51e645b79043292d9853c5709bb7c91881da6daf | 948 | cpp | C++ | .LHP/.Lop11/.T.Hung/GG_3/1197/1197/1197.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.T.Hung/GG_3/1197/1197/1197.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.T.Hung/GG_3/1197/1197/1197.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | // AC UVa
#include <iostream>
#include <algorithm>
#include <cstdio>
#pragma warning(disable:4996)
#define maxN 30001
typedef int maxn;
maxn n, m, par[maxN], size[maxN];
maxn Root(maxn x) {
while (x != par[x]) x = par[x];
return x;
}
void Union(maxn x, maxn y) {
x = Root(x), y = Root(y);
if (x == y) return;
... | 15.290323 | 55 | 0.533755 | sxweetlollipop2912 |
51ea02da102966e792a40a67debb6c6e7cb5ea29 | 14,531 | hpp | C++ | libs/storage/include/storage/new_versioned_random_access_stack.hpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | libs/storage/include/storage/new_versioned_random_access_stack.hpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | libs/storage/include/storage/new_versioned_random_access_stack.hpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | 2 | 2019-11-13T10:55:24.000Z | 2019-11-13T11:37:09.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 23.743464 | 100 | 0.607391 | jinmannwong |
51eb7bfaeb0ddf9336b9baae2b09ba4fdff19670 | 1,840 | hpp | C++ | source/mapManager/IconManager.hpp | mvxxx/MarsCombat | c4d10da7cf9bf8a71e00f64e5e364a358b477b15 | [
"MIT"
] | 1 | 2019-08-25T10:36:16.000Z | 2019-08-25T10:36:16.000Z | source/mapManager/IconManager.hpp | mvxxx/MarsCombat | c4d10da7cf9bf8a71e00f64e5e364a358b477b15 | [
"MIT"
] | null | null | null | source/mapManager/IconManager.hpp | mvxxx/MarsCombat | c4d10da7cf9bf8a71e00f64e5e364a358b477b15 | [
"MIT"
] | null | null | null | /*
mvxxx 2019
https://github.com/mvxxx
*/
#pragma once
#include "../../external/SFML/include/SFML/System/Vector2.hpp"
#include "../../external/SFML/include/SFML/System/Clock.hpp"
#include "../entities/icon/Icon.hpp"
#include "../Utilities.hpp"
#include <map>
#include <queue>
#include <memory>
class IconManager
{
... | 22.716049 | 93 | 0.638043 | mvxxx |
51ed57c484971273d03d5922c5500ecb9a8b7939 | 577 | cpp | C++ | 2019/NyariDuitTerooz/H.cpp | comtran/ideafuse | c0b057aea23e0b2205cc4bfe0726c47802cf47b9 | [
"MIT"
] | 5 | 2018-05-06T07:51:08.000Z | 2018-05-22T00:18:08.000Z | 2019/NyariDuitTerooz/H.cpp | comtran/ideafuse | c0b057aea23e0b2205cc4bfe0726c47802cf47b9 | [
"MIT"
] | 1 | 2018-05-16T11:19:58.000Z | 2018-05-16T11:19:58.000Z | 2019/NyariDuitTerooz/H.cpp | comtran/ideafuse | c0b057aea23e0b2205cc4bfe0726c47802cf47b9 | [
"MIT"
] | 2 | 2018-05-06T11:32:26.000Z | 2018-05-07T10:10:01.000Z | #include<bits/stdc++.h>
using namespace std;
#define ll long long
struct point{
int x,y;
};
ll sqr(int a){
return a*a;
}
ll countDist(point A, point B){
return ceil(hypot(A.x-B.x, A.y-B.y));
}
int main (){
int t; cin>>t;
for (int xx=1;xx<=t;xx++){
point pusat;
int R;
cin>>pusat.x>>pusat.y>>R;
int n;c... | 14.794872 | 47 | 0.563258 | comtran |
51f3156ac9044ea6a7f2cdd9159a6f4ff479b858 | 447 | cpp | C++ | Problems/0067. Add Binary.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0067. Add Binary.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0067. Add Binary.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | class Solution {
public:
string addBinary(string a, string b) {
string ans{};
int i = a.length()-1, j = b.length()-1, carry{};
while(i>=0 or j>=0 or carry){
int sum = carry;
if(i>=0) sum += a[i--] - '0';
if(j>=0) sum += b[j--] - '0';
ans ... | 26.294118 | 56 | 0.409396 | KrKush23 |
51f3b338064a90e7b7fd411f964d08ce72f4441e | 15,148 | cc | C++ | deploy/lite/src/main.cc | Amanda-Barbara/PaddleDetection | 65ac13074eaaa2447c644a2df71969d8a3dd1fae | [
"Apache-2.0"
] | 1 | 2022-03-30T02:39:57.000Z | 2022-03-30T02:39:57.000Z | deploy/lite/src/main.cc | Amanda-Barbara/PaddleDetection | 65ac13074eaaa2447c644a2df71969d8a3dd1fae | [
"Apache-2.0"
] | null | null | null | deploy/lite/src/main.cc | Amanda-Barbara/PaddleDetection | 65ac13074eaaa2447c644a2df71969d8a3dd1fae | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... | 38.940874 | 80 | 0.561526 | Amanda-Barbara |
51f4cc0526fbcb205b07a4b94fc3b6456e5d265b | 677 | cpp | C++ | SW/src/encoder_implementation/encoder_implementation.cpp | chris3069/BLDC_Project | 69f6b7ed810d091dd430d93554056e34af130d2d | [
"BSL-1.0"
] | null | null | null | SW/src/encoder_implementation/encoder_implementation.cpp | chris3069/BLDC_Project | 69f6b7ed810d091dd430d93554056e34af130d2d | [
"BSL-1.0"
] | null | null | null | SW/src/encoder_implementation/encoder_implementation.cpp | chris3069/BLDC_Project | 69f6b7ed810d091dd430d93554056e34af130d2d | [
"BSL-1.0"
] | null | null | null | #include "encoder_implementation.hpp"
#include "Encoder.h"
Encoder Speed_encoder(12, 13);
#define SPEED_DECREASE 0.1
float getTargetSpeed(void)
{
static int32_t old_target_speed = INT32_MIN;
static int32_t new_target_speed = INT32_MAX;
new_target_speed = Speed_encoder.read();
if (new_target_speed != o... | 20.515152 | 64 | 0.753323 | chris3069 |
51f58251753c81f2410de48c0ccda831b6db8174 | 3,431 | cpp | C++ | data/appGPU/vec_add.cpp | leios/thesis | 0fdbfdc9b42a967a9b3492be4ab788bdf76d4ce5 | [
"MIT"
] | 9 | 2019-02-12T02:41:25.000Z | 2021-03-03T09:46:28.000Z | data/appGPU/vec_add.cpp | leios/thesis | 0fdbfdc9b42a967a9b3492be4ab788bdf76d4ce5 | [
"MIT"
] | 1 | 2019-02-07T08:22:21.000Z | 2019-02-07T08:22:21.000Z | data/appGPU/vec_add.cpp | leios/thesis | 0fdbfdc9b42a967a9b3492be4ab788bdf76d4ce5 | [
"MIT"
] | 1 | 2019-02-07T08:07:50.000Z | 2019-02-07T08:07:50.000Z | #define __CL_ENABLE_EXCEPTIONS
#include <CL/cl.hpp>
#include <iostream>
#include <vector>
#include <math.h>
// OpenCL kernel
const char *kernelSource = "\n" \
"#pragma OPENCL EXTENSION cl_khr_fp64 : enable \n" \
"__kernel void vecAdd( __global double *a, \n" \
" ... | 30.633929 | 80 | 0.473623 | leios |
51f74b000cd428bd613964fd6bb8d0ef38e21e3b | 5,227 | cpp | C++ | firmware/src/Tool.cpp | galacticstudios/Logic-Meter | 17009d23a09ba12975af055a031fe84b317a8cc7 | [
"MIT"
] | 41 | 2021-01-23T00:40:56.000Z | 2022-01-14T12:34:33.000Z | firmware/src/Tool.cpp | galacticstudios/Logic-Meter | 17009d23a09ba12975af055a031fe84b317a8cc7 | [
"MIT"
] | 3 | 2021-01-28T17:07:40.000Z | 2021-07-01T11:41:19.000Z | firmware/src/Tool.cpp | galacticstudios/Logic-Meter | 17009d23a09ba12975af055a031fe84b317a8cc7 | [
"MIT"
] | 3 | 2021-01-28T17:16:45.000Z | 2021-01-29T01:59:49.000Z | /*
* File: Tool.cpp
* Author: Bob
*
* Created on April 24, 2020, 11:26 AM
*/
#include <string>
#include "Tool.h"
#include "Display.h"
#include "Menu.h"
#include "Utility.h"
#include "Pane.h"
static const MenuItem helpMenuItems[5] = {
MenuItem(),
MenuItem(),
MenuItem(),
MenuItem(),
Me... | 24.890476 | 79 | 0.577004 | galacticstudios |
51fd0f7ed401e2716bc0176983cf6e8639df6233 | 773 | cpp | C++ | src/strategy/triggers/ChatCommandTrigger.cpp | htc16/mod-playerbots | 2307e3f980035a244bfb4fedefda5bc55903d470 | [
"MIT"
] | 12 | 2022-03-23T05:14:53.000Z | 2022-03-30T12:12:58.000Z | src/strategy/triggers/ChatCommandTrigger.cpp | htc16/mod-playerbots | 2307e3f980035a244bfb4fedefda5bc55903d470 | [
"MIT"
] | 24 | 2022-03-23T13:56:37.000Z | 2022-03-31T18:23:32.000Z | src/strategy/triggers/ChatCommandTrigger.cpp | htc16/mod-playerbots | 2307e3f980035a244bfb4fedefda5bc55903d470 | [
"MIT"
] | 3 | 2022-03-24T21:47:10.000Z | 2022-03-31T06:21:46.000Z | /*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
*/
#include "ChatCommandTrigger.h"
#include "Playerbots.h"
ChatCommandTrigger::ChatCommandTrigger(PlayerbotA... | 24.935484 | 205 | 0.719276 | htc16 |
a404aac37dea850bc05b125aa2f4f6286d35f679 | 4,991 | hpp | C++ | include/r3d/vec.hpp | AlexandruIca/R3D | d0088f7fcc8756f529e07ca99e26f880e9210f40 | [
"Unlicense"
] | null | null | null | include/r3d/vec.hpp | AlexandruIca/R3D | d0088f7fcc8756f529e07ca99e26f880e9210f40 | [
"Unlicense"
] | null | null | null | include/r3d/vec.hpp | AlexandruIca/R3D | d0088f7fcc8756f529e07ca99e26f880e9210f40 | [
"Unlicense"
] | null | null | null | #ifndef R3D_VEC_HPP
#define R3D_VEC_HPP
#pragma once
#include <algorithm>
#include <array>
#include <cmath>
#include <cstddef>
#include <functional>
#include <iostream>
#include <numeric>
#include <type_traits>
#include "r3d/impl/assert.hpp"
#include "r3d/matrix.hpp"
namespace r3d {
namespace impl {
template<typen... | 22.894495 | 114 | 0.549389 | AlexandruIca |
a4088ed8e162da1f4e883f5419e30707e1cb4ef5 | 2,950 | cpp | C++ | src/unix/unix_address.cpp | PeterStoytchev/sockpp | c4507c2c49176c08a489750082a4bfed9ddff878 | [
"BSD-3-Clause"
] | 447 | 2018-02-22T21:38:51.000Z | 2022-03-25T02:35:20.000Z | src/unix/unix_address.cpp | PeterStoytchev/sockpp | c4507c2c49176c08a489750082a4bfed9ddff878 | [
"BSD-3-Clause"
] | 60 | 2017-05-03T20:22:55.000Z | 2022-02-19T23:56:57.000Z | src/unix/unix_address.cpp | PeterStoytchev/sockpp | c4507c2c49176c08a489750082a4bfed9ddff878 | [
"BSD-3-Clause"
] | 95 | 2018-10-04T10:17:20.000Z | 2022-03-22T08:04:40.000Z | // unix_address.cpp
//
// --------------------------------------------------------------------------
// This file is part of the "sockpp" C++ socket library.
//
// Copyright (c) 2014-2017 Frank Pagliughi
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, ar... | 36.875 | 77 | 0.631525 | PeterStoytchev |
a408a7da5c26ff6276fc84264245d030b9fb760b | 5,195 | hpp | C++ | test/unit/memory/compress_store/compress_store_test.hpp | the-moisrex/eve | 80b52663eefee11460abb0aedf4158a5067cf7dc | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | test/unit/memory/compress_store/compress_store_test.hpp | the-moisrex/eve | 80b52663eefee11460abb0aedf4158a5067cf7dc | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | test/unit/memory/compress_store/compress_store_test.hpp | the-moisrex/eve | 80b52663eefee11460abb0aedf4158a5067cf7dc | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 23.830275 | 115 | 0.553224 | the-moisrex |
a40b0b55b871bd1a19d2c6d06b91debcf207a5da | 1,735 | cpp | C++ | src/framework/core/consoleapplication.cpp | Sposito/otclient | d3e12b5d44a3f801b0b24fcf25dfd811929e6ba4 | [
"MIT"
] | 518 | 2015-01-10T18:09:26.000Z | 2022-03-27T11:41:33.000Z | src/framework/core/consoleapplication.cpp | Sposito/otclient | d3e12b5d44a3f801b0b24fcf25dfd811929e6ba4 | [
"MIT"
] | 504 | 2015-01-01T17:34:59.000Z | 2022-03-25T18:27:37.000Z | src/framework/core/consoleapplication.cpp | Sposito/otclient | d3e12b5d44a3f801b0b24fcf25dfd811929e6ba4 | [
"MIT"
] | 545 | 2015-01-08T09:37:10.000Z | 2022-03-05T00:57:50.000Z | /*
* Copyright (c) 2010-2013 OTClient <https://github.com/edubart/otclient>
*
* 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... | 30.982143 | 80 | 0.722767 | Sposito |
a40ea043937a71c3496977854ea34d34215ec0c0 | 85 | cpp | C++ | src/GUI/Crxtterm.cpp | ArashMassoudieh/GIFMod_ | 1fa9eda21fab870fc3baf56462f79eb800d5154f | [
"MIT"
] | 5 | 2017-11-20T19:32:27.000Z | 2018-08-28T06:08:45.000Z | src/GUI/Crxtterm.cpp | ArashMassoudieh/GIFMod_ | 1fa9eda21fab870fc3baf56462f79eb800d5154f | [
"MIT"
] | 1 | 2017-07-04T05:40:30.000Z | 2017-07-04T05:43:37.000Z | src/GUI/Crxtterm.cpp | ArashMassoudieh/GIFMod_ | 1fa9eda21fab870fc3baf56462f79eb800d5154f | [
"MIT"
] | 2 | 2017-11-09T22:00:45.000Z | 2018-08-30T10:56:08.000Z | #include "Crxtterm.h"
Crxtterm::Crxtterm(void)
{
}
Crxtterm::~Crxtterm(void)
{
}
| 7.083333 | 25 | 0.658824 | ArashMassoudieh |
a411e3309af0d56a0b9aa08a3bf7a3c6130b7ba1 | 3,207 | cpp | C++ | demo/opengl/ex/fog/fog_opengl.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | 4 | 2016-09-07T07:02:52.000Z | 2019-06-22T08:55:53.000Z | demo/opengl/ex/fog/fog_opengl.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | null | null | null | demo/opengl/ex/fog/fog_opengl.cpp | fox000002/ulib-win | 628c4a0b8193d1ad771aa85598776ff42a45f913 | [
"Apache-2.0"
] | 3 | 2019-06-22T16:00:39.000Z | 2022-03-09T13:46:27.000Z | #include "resource.h"
#include <windows.h>
#include <tchar.h>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <GL/gl.h>
#include <GL/glu.h>
#include "ugldialog.h"
#include "udlgapp.h"
#include "uglut.h"
GLint fogMode;
void renderSphere (GLfloat x, GLfloat y, GLfloat z)
{
glPushMatrix();
g... | 25.862903 | 69 | 0.553165 | fox000002 |
a412e29bbb4ae08fa09446111ab81014177fb322 | 2,551 | hpp | C++ | openstudiocore/src/model/ComponentWatcher_Impl.hpp | zhouchong90/OpenStudio | f8570cb8297547b5e9cc80fde539240d8f7b9c24 | [
"BSL-1.0",
"blessing"
] | null | null | null | openstudiocore/src/model/ComponentWatcher_Impl.hpp | zhouchong90/OpenStudio | f8570cb8297547b5e9cc80fde539240d8f7b9c24 | [
"BSL-1.0",
"blessing"
] | null | null | null | openstudiocore/src/model/ComponentWatcher_Impl.hpp | zhouchong90/OpenStudio | f8570cb8297547b5e9cc80fde539240d8f7b9c24 | [
"BSL-1.0",
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... | 27.138298 | 119 | 0.668757 | zhouchong90 |
a417542621bb6fe4bda712805ceaa87da3ddeea7 | 5,891 | cpp | C++ | test/test_arch_bsf.cpp | OscarAC/cpp-utils | b15e2ab6aebd149fb9d9a774f0a912adfd462126 | [
"MIT"
] | 1 | 2019-11-07T09:31:03.000Z | 2019-11-07T09:31:03.000Z | test/test_arch_bsf.cpp | OscarAC/cpp-utils | b15e2ab6aebd149fb9d9a774f0a912adfd462126 | [
"MIT"
] | null | null | null | test/test_arch_bsf.cpp | OscarAC/cpp-utils | b15e2ab6aebd149fb9d9a774f0a912adfd462126 | [
"MIT"
] | null | null | null | // <util/test/test_arch_bsf.hpp>
// 5/24/2015 - File Creation
// Copyright(c) 2015-present, Oscar A. Carrera.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <util/test.hpp>
#include <util/arch.hpp>
using namespace util;
void test_bsf_32()
{
ASSERT_EQUAL(arch::bsf(0b00000000000... | 64.032609 | 100 | 0.82312 | OscarAC |
a41ad44b3145566b8078947684223d430f7f5a34 | 1,913 | cpp | C++ | libs/libc/source/locale/setlocale.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 16 | 2019-03-14T19:45:02.000Z | 2022-02-06T19:18:08.000Z | libs/libc/source/locale/setlocale.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 1 | 2020-05-08T08:40:02.000Z | 2020-05-08T13:27:59.000Z | libs/libc/source/locale/setlocale.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 2 | 2021-01-16T20:42:05.000Z | 2021-12-01T23:37:18.000Z | /*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2012, 2014.
This file is part of the Sortix C Library.
The Sortix C Library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Publi... | 30.365079 | 80 | 0.62781 | zhiayang |
a41dc4075f077257657668f3c287c231522dfcf2 | 2,123 | hpp | C++ | libraries/io_manager/public/IOManager.hpp | jcelerier/scop_vulkan | 9b91c0ccd5027c9641ccacfb5043bb1bc2f51ad0 | [
"MIT"
] | 132 | 2021-04-04T21:19:46.000Z | 2022-03-13T13:47:00.000Z | libraries/io_manager/public/IOManager.hpp | jcelerier/scop_vulkan | 9b91c0ccd5027c9641ccacfb5043bb1bc2f51ad0 | [
"MIT"
] | null | null | null | libraries/io_manager/public/IOManager.hpp | jcelerier/scop_vulkan | 9b91c0ccd5027c9641ccacfb5043bb1bc2f51ad0 | [
"MIT"
] | 7 | 2021-04-04T21:19:48.000Z | 2021-04-09T09:16:34.000Z | #ifndef SCOP_VULKAN_IOMANAGER_HPP
#define SCOP_VULKAN_IOMANAGER_HPP
#include <array>
#include <vector>
#include <string>
#include <cstdint>
#define GLFW_INCLUDE_VULKAN
#include "GLFW/glfw3.h"
#include "glm/glm.hpp"
#include "IOManagerWindowCreationOption.hpp"
#include "IOEvents.hpp"
class IOManager final
{
public... | 26.873418 | 62 | 0.701366 | jcelerier |
a4221cc112f1165aaa847f09da68d362a2efa77b | 812 | hpp | C++ | Tetris/OpenGL/src/Logger/Logger.hpp | mhalittokluoglu/Games | bffc51ad04630eaff29c8c03508c9431ebb24c9b | [
"MIT"
] | null | null | null | Tetris/OpenGL/src/Logger/Logger.hpp | mhalittokluoglu/Games | bffc51ad04630eaff29c8c03508c9431ebb24c9b | [
"MIT"
] | null | null | null | Tetris/OpenGL/src/Logger/Logger.hpp | mhalittokluoglu/Games | bffc51ad04630eaff29c8c03508c9431ebb24c9b | [
"MIT"
] | null | null | null | #ifndef _LOGGER_HPP_
#define _LOGGER_HPP_
#define LOG_DEBUG(...) Logger::LogDebug(__VA_ARGS__)
#define LOG_WARNING(...) Logger::LogWarning(__VA_ARGS__)
#define LOG_ERROR(...) Logger::LogError(__VA_ARGS__)
#define LOG_FATAL(...) Logger::LogFatal(__VA_ARGS__)
#ifdef LINUX_SYSTEM
#include "Linux/UDPCli... | 26.193548 | 70 | 0.720443 | mhalittokluoglu |
a42562bd78b433b548aec42351e561e15fff87b3 | 3,654 | cpp | C++ | snippets/data_types/data_types.cpp | unnamedk/moderncpp | cdaf4c05ec5330df2a2fb45829a6f87e735a8744 | [
"MIT"
] | null | null | null | snippets/data_types/data_types.cpp | unnamedk/moderncpp | cdaf4c05ec5330df2a2fb45829a6f87e735a8744 | [
"MIT"
] | null | null | null | snippets/data_types/data_types.cpp | unnamedk/moderncpp | cdaf4c05ec5330df2a2fb45829a6f87e735a8744 | [
"MIT"
] | null | null | null | #include <bitset>
#include <iostream>
#include <cstdint>
auto get_bits(auto v) {
return std::bitset<sizeof(v)*8>(*reinterpret_cast<unsigned long long*>(&v));
}
int main() {
// Basic types
bool a = true;
std::cout << "bool a: " << a << std::endl;
std::cout << "sizeof(a): " << sizeof(a) << " bytes" ... | 33.833333 | 80 | 0.510126 | unnamedk |
a43514ee39a11fcd95e7a9c3c6c7f136c655e752 | 6,350 | cpp | C++ | src/StringConverters.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/StringConverters.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null | src/StringConverters.cpp | ComicSansMS/GhulbusVulkan | b24ffb892a7573c957aed443a3fbd7ec281556e7 | [
"MIT"
] | null | null | null |
#include <gbVk/StringConverters.hpp>
#include <ostream>
namespace GHULBUS_VULKAN_NAMESPACE
{
char const* to_string(VkResult r)
{
#define GHULBUS_VULKAN_VKRESULT_PRINT_CASE(ec) case ec: return #ec
switch(r) {
default: return "Unknown";
GHULBUS_VULKAN_VKRESULT_PRINT_CASE(VK_SUCCESS);
GHULBUS_V... | 34.324324 | 90 | 0.662205 | ComicSansMS |
bf9cf97872940a999f4d17b943e5e8b65a731b6d | 1,819 | cpp | C++ | src/test/p0554.cpp | RodrigoHolztrattner/fixed_point | 7fe8b459f63760a747cbcca244c002d62bf896a5 | [
"BSL-1.0"
] | 239 | 2016-03-01T12:01:21.000Z | 2022-03-16T22:57:15.000Z | src/test/p0554.cpp | RodrigoHolztrattner/fixed_point | 7fe8b459f63760a747cbcca244c002d62bf896a5 | [
"BSL-1.0"
] | 117 | 2015-09-12T05:35:23.000Z | 2018-07-06T23:28:32.000Z | src/test/p0554.cpp | RodrigoHolztrattner/fixed_point | 7fe8b459f63760a747cbcca244c002d62bf896a5 | [
"BSL-1.0"
] | 38 | 2016-03-02T17:59:24.000Z | 2021-02-05T14:56:50.000Z |
// Copyright John McFarlane 2015 - 2016.
// 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 <sg14/auxiliary/elastic_fixed_point.h>
namespace {
using sg14::fixed_point;
us... | 47.868421 | 122 | 0.625618 | RodrigoHolztrattner |
bf9ed77a5181f53bb1a1209e59aa53b812798fa9 | 3,007 | cpp | C++ | src/AssetLoading/fontasset.cpp | egomeh/floaty-boaty-go-go | a011db6f1f8712bf3caa85becc1fd83ac5bf1996 | [
"MIT"
] | 2 | 2018-01-12T10:26:07.000Z | 2018-02-02T19:03:00.000Z | src/AssetLoading/fontasset.cpp | egomeh/floaty-boaty-go-go | a011db6f1f8712bf3caa85becc1fd83ac5bf1996 | [
"MIT"
] | null | null | null | src/AssetLoading/fontasset.cpp | egomeh/floaty-boaty-go-go | a011db6f1f8712bf3caa85becc1fd83ac5bf1996 | [
"MIT"
] | null | null | null | #include "fontasset.hpp"
#include "serialization/jsonserializer.hpp"
#include "graphics/font.hpp"
#include "graphics/graphicsutils.hpp"
#include <algorithm>
#include <vector>
#include "util.hpp"
Font *FontAssetFactory::GetAsset(const std::string &name)
{
if (m_LoadedAssets.count(name))
{
return m_L... | 22.954198 | 92 | 0.669105 | egomeh |
bfacaf2e70f02d341600e34476e4f0ee2f01def3 | 7,055 | cpp | C++ | Luci-Engine/src/Platform/OpenGL/OpenGLFramebuffer.cpp | JordyAaldering/Game-Engine | b1a77e85073f98360931f7a94cdf05d93cb38339 | [
"MIT"
] | null | null | null | Luci-Engine/src/Platform/OpenGL/OpenGLFramebuffer.cpp | JordyAaldering/Game-Engine | b1a77e85073f98360931f7a94cdf05d93cb38339 | [
"MIT"
] | null | null | null | Luci-Engine/src/Platform/OpenGL/OpenGLFramebuffer.cpp | JordyAaldering/Game-Engine | b1a77e85073f98360931f7a94cdf05d93cb38339 | [
"MIT"
] | null | null | null | #include "lucipch.h"
#include "Platform/OpenGL/OpenGLFramebuffer.h"
#include <glad/glad.h>
namespace Luci {
namespace Utils {
static bool IsDepthFormat(FramebufferTextureFormat format) {
switch (format) {
case FramebufferTextureFormat::DEPTH24STENCIL8:
return true;
}
return false;
}
static... | 35.452261 | 171 | 0.765556 | JordyAaldering |
bfadc078da8c5f30a2949d64dd67471270914b62 | 1,140 | hpp | C++ | Sandbox/VirtualCallTest.hpp | delahee/enjmin | 5d982da486ad0565fcda38939212e6745bdf3e3f | [
"MIT"
] | null | null | null | Sandbox/VirtualCallTest.hpp | delahee/enjmin | 5d982da486ad0565fcda38939212e6745bdf3e3f | [
"MIT"
] | null | null | null | Sandbox/VirtualCallTest.hpp | delahee/enjmin | 5d982da486ad0565fcda38939212e6745bdf3e3f | [
"MIT"
] | null | null | null | #pragma once
#include <cctype>
#include <cstdlib>
class VirtualCallTest {
public:
static volatile double accum;
static void flushCache();
};
class A {
public:
virtual void doSomething();
};
class B : public A {
public:
virtual void doSomething() override;
};
class CC : public B {
public:
virtual void doSometh... | 16.285714 | 42 | 0.685965 | delahee |
bfb6a789000e7dfac6acea58ecd0f15df4dd937f | 7,067 | hpp | C++ | tests/include/testing_sycsrmv.hpp | amd/aocl-sparse | 7eab271fee498af0cae9e336a74ef479dac6e781 | [
"MIT"
] | 11 | 2020-07-11T16:27:05.000Z | 2022-01-11T11:50:59.000Z | tests/include/testing_sycsrmv.hpp | amd/aocl-sparse | 7eab271fee498af0cae9e336a74ef479dac6e781 | [
"MIT"
] | 1 | 2020-11-12T17:45:29.000Z | 2020-11-12T17:45:29.000Z | tests/include/testing_sycsrmv.hpp | amd/aocl-sparse | 7eab271fee498af0cae9e336a74ef479dac6e781 | [
"MIT"
] | 8 | 2020-07-07T10:00:52.000Z | 2022-01-12T15:35:17.000Z | /* ************************************************************************
* Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved.
*
* 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 t... | 35.512563 | 92 | 0.568558 | amd |
bfb86331d9750a2ff4d05c305913fa9eaa453e91 | 2,685 | cpp | C++ | cpp/1339.maximum-product-of-splitted-binary-tree.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | cpp/1339.maximum-product-of-splitted-binary-tree.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | cpp/1339.maximum-product-of-splitted-binary-tree.cpp | vermouth1992/Leetcode | 0d7dda52b12f9e01d88fc279243742cd8b4bcfd1 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=1339 lang=cpp
*
* [1339] Maximum Product of Splitted Binary Tree
*
* https://leetcode.com/problems/maximum-product-of-splitted-binary-tree/description/
*
* algorithms
* Medium (38.64%)
* Total Accepted: 44.8K
* Total Submissions: 106.2K
* Testcase Example: '[1,2,3,4,5,6]'
*
* G... | 25.817308 | 93 | 0.614898 | vermouth1992 |
bfb9e2b3194b153c9a2a2a9ee23fee18e5442c9d | 2,634 | hpp | C++ | ThemeSelector.hpp | Nukem9/IDASkins | 989690fffe8a7df78dc08f927cf8120f58bbfd58 | [
"MIT"
] | 37 | 2015-05-25T19:14:01.000Z | 2021-11-18T14:05:11.000Z | ThemeSelector.hpp | nihilus/ida-skins | ee881f39798e8cfc2908246ccd150cb5b6702f5f | [
"MIT"
] | 5 | 2015-08-27T15:10:25.000Z | 2017-06-02T01:28:13.000Z | ThemeSelector.hpp | nihilus/ida-skins | ee881f39798e8cfc2908246ccd150cb5b6702f5f | [
"MIT"
] | 7 | 2015-06-02T16:50:01.000Z | 2020-09-04T20:36:40.000Z | /**
* The MIT License (MIT)
*
* Copyright (c) 2014 athre0z
*
* 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, co... | 33.341772 | 83 | 0.623766 | Nukem9 |
bfbe6120946be0de6c788ed6f40c00001d0405ac | 2,016 | hpp | C++ | src/CreateSearchFile.hpp | zhongguotu/ecs289c-precimonious | 2c33f99eef616de9ffa5edc4c6e37ff09760ce6b | [
"BSD-3-Clause"
] | null | null | null | src/CreateSearchFile.hpp | zhongguotu/ecs289c-precimonious | 2c33f99eef616de9ffa5edc4c6e37ff09760ce6b | [
"BSD-3-Clause"
] | null | null | null | src/CreateSearchFile.hpp | zhongguotu/ecs289c-precimonious | 2c33f99eef616de9ffa5edc4c6e37ff09760ce6b | [
"BSD-3-Clause"
] | null | null | null | #ifndef CREATE_SEARCH_FILE_GUARD
#define CREATE_SEARCH_FILE_GUARD 1
#include <llvm/Pass.h>
#include <llvm/Instructions.h>
#include <llvm/Support/CommandLine.h>
#include <map>
#include <set>
#include <vector>
namespace llvm {
class GlobalVariable;
class raw_fd_ostream;
class Type;
class Value;
}
using namesp... | 23.717647 | 109 | 0.771329 | zhongguotu |
bfc47c96ced3da4c85b6b2954c81c84e6377537d | 866 | hpp | C++ | iRODS/server/core/include/resource.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/server/core/include/resource.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/server/core/include/resource.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* resource.h - header file for resource.c
*/
#ifndef RESOURCE_HPP
#define RESOURCE_HPP
#include "rods.hpp"
#include "initServer.hpp"
#include "objInfo.hp... | 23.405405 | 79 | 0.711316 | PlantandFoodResearch |
bfc4abaa31eee5eac5cc38472e04f16dd7071ceb | 10,837 | cpp | C++ | seeksv/process_bwasw.cpp | qiukunlong/seeksv | d73d5fb329857d78bc76d6380f5d74318a24039a | [
"Apache-2.0"
] | 16 | 2017-04-30T11:54:23.000Z | 2022-02-23T07:57:31.000Z | seeksv/process_bwasw.cpp | qkl871118/seeksv | d73d5fb329857d78bc76d6380f5d74318a24039a | [
"Apache-2.0"
] | 4 | 2017-09-11T02:03:33.000Z | 2020-10-12T11:53:15.000Z | seeksv/process_bwasw.cpp | qkl871118/seeksv | d73d5fb329857d78bc76d6380f5d74318a24039a | [
"Apache-2.0"
] | 3 | 2016-10-08T01:35:25.000Z | 2016-11-07T09:34:54.000Z | #include "process_bwasw.h"
#include "clip_reads.h"
#include "getsv.h"
void FindJunction(string file, int min_mapQ, multimap<Junction, OtherInfo> &junction2other)
//void FindJunction(string file, int min_mapQ)
{
samfile_t *samfin;
bam1_t *b;
char in_mode[5], *fn_list = 0;
in_mode[0] = 'r';
if (file.rfind(".bam") =... | 43.003968 | 208 | 0.666236 | qiukunlong |
bfc6ac5bd91640e7f7369d81db078a5c4c657648 | 2,349 | cpp | C++ | DailySummary/二叉搜索树的操作集.cpp | hao14293/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 950 | 2020-02-21T02:39:18.000Z | 2022-03-31T07:27:36.000Z | DailySummary/二叉搜索树的操作集.cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 6 | 2020-04-03T13:08:47.000Z | 2022-03-07T08:54:56.000Z | DailySummary/二叉搜索树的操作集.cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 131 | 2020-02-22T15:35:59.000Z | 2022-03-21T04:23:57.000Z | #include <stdio.h>
#include <stdlib.h>
typedef int ElementType;
typedef struct TNode *Position;
typedef Position BinTree;
struct TNode{
ElementType Data;
BinTree Left;
BinTree Right;
};
BinTree Insert(BinTree BST, ElementType X);
BinTree Delete(BinTree BST, ElementType X);
Position Find(BinTree BST, ElementType X)... | 17.661654 | 66 | 0.601533 | hao14293 |
bfc8d1f99a41d8500720652835d1e7e0a98d51d0 | 780 | hh | C++ | PyInputReader/JoyPoller.hh | BeTeK/PyXinputReader | 734e5647efedb87435a71af94cb5ba1e5bd44d4b | [
"BSD-3-Clause"
] | null | null | null | PyInputReader/JoyPoller.hh | BeTeK/PyXinputReader | 734e5647efedb87435a71af94cb5ba1e5bd44d4b | [
"BSD-3-Clause"
] | null | null | null | PyInputReader/JoyPoller.hh | BeTeK/PyXinputReader | 734e5647efedb87435a71af94cb5ba1e5bd44d4b | [
"BSD-3-Clause"
] | null | null | null | #ifndef JOY_POLLER_HH
#define JOY_POLLER_HH
#include "WindowsHandler.hh"
#include "Joystick.hh"
#include "JoyState.hh"
#include <dinput.h>
#include <vector>
class JoyPoller
{
public:
virtual ~JoyPoller();
JoyPoller() = delete;
JoyPoller(WindowsHandler& pWinHanler);
JoyPoller& operator=(const JoyP... | 21.666667 | 99 | 0.723077 | BeTeK |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.