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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
564a45ef303df1ccfa1e521503e33f0d2ea5f20c | 2,321 | hpp | C++ | c++/h5/stl/map.hpp | chuffa/h5 | 1d166ff59e7b616cb0756e1637b3324e69a1d80a | [
"Apache-2.0"
] | null | null | null | c++/h5/stl/map.hpp | chuffa/h5 | 1d166ff59e7b616cb0756e1637b3324e69a1d80a | [
"Apache-2.0"
] | null | null | null | c++/h5/stl/map.hpp | chuffa/h5 | 1d166ff59e7b616cb0756e1637b3324e69a1d80a | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019-2020 Simons Foundation
//
// 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.txt
//
// Unless required by applicable l... | 30.539474 | 84 | 0.628178 | chuffa |
8727be770fdc0f05d0a72a353a705bcf88706083 | 522 | cc | C++ | 0342_Power_of_Four/0342.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0342_Power_of_Four/0342.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0342_Power_of_Four/0342.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null |
#include<assert.h>
constexpr int negative_mask = ~3;
class Solution {
public:
bool isPowerOfFour(int num) {
while (num) {
if (num == 1) return true;
if ((negative_mask | num) != negative_mask) return false;
num = num >> 2;
}
return false;
}
};
int main(int argc, char const *argv[])... | 20.076923 | 63 | 0.637931 | LuciusKyle |
872a17e2cf913335d027d37215862d5794887fef | 316 | cpp | C++ | contest/yukicoder/126.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/yukicoder/126.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/yukicoder/126.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
int main() {
int a(in), b(in), s(in);
if (abs(s - a) > abs(s - b) && s != 1) {
if (a == 0) {
cout << abs(s - b) + abs(s - a) + a + 1 << endl;
} else {
cout << abs(s - b) + min(abs(s - a), s - 1) + a << endl;
}
} else {
cout << abs(s - a) + s << endl;
}
}
| 21.066667 | 62 | 0.382911 | not522 |
872bb4acdcde9d1b57b2ff9ed8afd8315980842c | 13,595 | cpp | C++ | src/ScreenSelectCharacter.cpp | fpmuniz/stepmania | 984dc8668f1fedacf553f279a828acdebffc5625 | [
"MIT"
] | 1,514 | 2015-01-02T17:00:28.000Z | 2022-03-30T14:11:21.000Z | src/ScreenSelectCharacter.cpp | fpmuniz/stepmania | 984dc8668f1fedacf553f279a828acdebffc5625 | [
"MIT"
] | 1,462 | 2015-01-01T10:53:29.000Z | 2022-03-27T04:35:53.000Z | src/ScreenSelectCharacter.cpp | fpmuniz/stepmania | 984dc8668f1fedacf553f279a828acdebffc5625 | [
"MIT"
] | 552 | 2015-01-02T05:34:41.000Z | 2022-03-26T05:19:19.000Z | #include "global.h"
#include "ScreenSelectCharacter.h"
#include "ScreenManager.h"
#include "GameSoundManager.h"
#include "RageUtil.h"
#include "RageLog.h"
#include "ThemeManager.h"
#include "AnnouncerManager.h"
#include "GameState.h"
#include "Character.h"
#include "PrefsManager.h"
#include "RageTextureManager.h"
#incl... | 32.21564 | 146 | 0.744024 | fpmuniz |
8734f616b2237d8a6f51110919df7f680d008dab | 763 | hpp | C++ | Main/SettingsScreen.hpp | IHASASUSHI/unnamed-sdvx-clone | 8204890cab6080f71ad9a7a921c30a4b137e35a8 | [
"MIT"
] | 2 | 2018-03-21T14:48:54.000Z | 2018-05-28T19:28:21.000Z | Main/SettingsScreen.hpp | ApolloFortyNine/unnamed-sdvx-clone | 625ffbe129a7e5ff42c78740593ec73a418ef1c0 | [
"MIT"
] | 6 | 2018-05-28T16:57:25.000Z | 2019-10-04T05:52:54.000Z | Main/SettingsScreen.hpp | ApolloFortyNine/unnamed-sdvx-clone | 625ffbe129a7e5ff42c78740593ec73a418ef1c0 | [
"MIT"
] | 1 | 2019-05-10T11:19:50.000Z | 2019-05-10T11:19:50.000Z | #pragma once
#include "ApplicationTickable.hpp"
#include "GameConfig.hpp"
class SettingsScreen : public IApplicationTickable
{
protected:
SettingsScreen() = default;
public:
virtual ~SettingsScreen() = default;
static SettingsScreen* Create();
};
class ButtonBindingScreen : public IApplicationTickable
{
protected:... | 24.612903 | 103 | 0.791612 | IHASASUSHI |
873630fc0895f60bbf0fa61858407bab1fdd5dcc | 806 | cpp | C++ | test/executor/testing_executor_constrain_util.cpp | vittvolt/15721-peloton | 3394c745ce5f3d71d1d71a09c700d5e367345e2e | [
"Apache-2.0"
] | 7 | 2017-03-12T01:57:48.000Z | 2022-03-16T12:44:07.000Z | test/executor/testing_executor_constrain_util.cpp | vittvolt/15721-peloton | 3394c745ce5f3d71d1d71a09c700d5e367345e2e | [
"Apache-2.0"
] | null | null | null | test/executor/testing_executor_constrain_util.cpp | vittvolt/15721-peloton | 3394c745ce5f3d71d1d71a09c700d5e367345e2e | [
"Apache-2.0"
] | 2 | 2017-03-30T00:43:50.000Z | 2021-07-21T06:27:44.000Z | #include "executor/testing_executor_constrain_util.h"
#include <cstdlib>
#include <ctime>
#include <memory>
#include <vector>
#include "catalog/catalog.h"
#include "catalog/schema.h"
#include "common/exception.h"
#include "common/harness.h"
#include "concurrency/transaction.h"
#include "concurrency/transaction_manage... | 26.866667 | 53 | 0.780397 | vittvolt |
873ab3fdcb43c51e17687c6386c4cc33c107c4ca | 16,657 | cpp | C++ | jaw/libs/network/src/jaw_socket_impl.cpp | avribacki/neato-pi | dd415f0f6ab82492468fedcafc85f18277fc7c06 | [
"MIT"
] | null | null | null | jaw/libs/network/src/jaw_socket_impl.cpp | avribacki/neato-pi | dd415f0f6ab82492468fedcafc85f18277fc7c06 | [
"MIT"
] | null | null | null | jaw/libs/network/src/jaw_socket_impl.cpp | avribacki/neato-pi | dd415f0f6ab82492468fedcafc85f18277fc7c06 | [
"MIT"
] | null | null | null | #include "jaw_socket_impl.hpp"
#include <stdexcept>
#include <sstream>
#include <iostream>
#include <mutex>
#include <thread>
#include <condition_variable>
#include "jaw_guid.hpp"
#include "jaw_protected_call.hpp"
namespace Jaw {
/***********************************************************************... | 33.181275 | 106 | 0.498529 | avribacki |
873c3fade743033e53818acc8fd0212d38f316de | 4,239 | cc | C++ | Consolidation 2/P98343.cc | miquelt9/Problemes-PRO1 | 1bd5214ce75129e9a027728b93ad8354ec993e41 | [
"Apache-2.0"
] | 2 | 2021-09-01T10:52:32.000Z | 2021-11-09T09:19:57.000Z | Consolidation 2/P98343.cc | miquelt9/Problemes-PRO1 | 1bd5214ce75129e9a027728b93ad8354ec993e41 | [
"Apache-2.0"
] | null | null | null | Consolidation 2/P98343.cc | miquelt9/Problemes-PRO1 | 1bd5214ce75129e9a027728b93ad8354ec993e41 | [
"Apache-2.0"
] | 1 | 2021-09-24T20:00:41.000Z | 2021-09-24T20:00:41.000Z | #include <iostream>
#include <vector>
using namespace std;
void fins_999 (int n) {
int x = n;
if(n>=900){
cout << " nou-cents" ;
n=n-900;
}
else if(n>=800){
cout << " vuit-cents" ;
n=n-800;
}
else if(n>=700){
cout << " set-cents" ;
n=n-700;
}
else if(n>=60... | 18.674009 | 256 | 0.365416 | miquelt9 |
8741e955ee24a81dc9d667c6647e4426a2ebe4de | 473 | cpp | C++ | HybridRenderer/src/Materials/MaterialManager.cpp | DatTestBench/HybridRenderer | e591e6e5595b5d378d42aacad7c212202fba1751 | [
"MIT"
] | null | null | null | HybridRenderer/src/Materials/MaterialManager.cpp | DatTestBench/HybridRenderer | e591e6e5595b5d378d42aacad7c212202fba1751 | [
"MIT"
] | null | null | null | HybridRenderer/src/Materials/MaterialManager.cpp | DatTestBench/HybridRenderer | e591e6e5595b5d378d42aacad7c212202fba1751 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Materials/MaterialManager.hpp"
#include "Scene/SceneGraph.hpp"
#include "Geometry/Mesh.hpp"
MaterialManager::~MaterialManager()
{
for (auto [id, pMat] : m_Materials)
{
SafeDelete(pMat);
}
}
#pragma region ExternalItemManipulation
void MaterialManager::AddMaterial(Materia... | 19.708333 | 73 | 0.733615 | DatTestBench |
874241acda2cc872d580d87d7b43a7174b776d6e | 3,026 | cpp | C++ | examples/example8/example8.cpp | gracicot/DICL | 47c89c18a599382bd39cfb80ad6e2496e4c9ce42 | [
"MIT"
] | 362 | 2015-10-07T09:24:46.000Z | 2022-03-16T07:31:05.000Z | examples/example8/example8.cpp | gracicot/DICL | 47c89c18a599382bd39cfb80ad6e2496e4c9ce42 | [
"MIT"
] | 91 | 2015-04-13T19:19:25.000Z | 2022-03-07T13:23:26.000Z | examples/example8/example8.cpp | gracicot/DICL | 47c89c18a599382bd39cfb80ad6e2496e4c9ce42 | [
"MIT"
] | 40 | 2015-04-13T11:46:33.000Z | 2022-02-13T18:43:27.000Z | #include <iostream>
#include <string>
#include <kangaru/kangaru.hpp>
/**
* This example refect snippets of code found in the documentation section 8: Operator Services
* It explains how to use services bundled with kangaru that helps making specific operation on the container.
*/
// User classes
struct Window {};... | 26.778761 | 110 | 0.674818 | gracicot |
8744c1b4e69776ab6a5c9e3fa4e591d0a977c474 | 1,024 | cpp | C++ | request.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | 1 | 2020-02-06T07:10:19.000Z | 2020-02-06T07:10:19.000Z | request.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | null | null | null | request.cpp | danncy/authz | 489e37ed2b270272bca3ed8ca915d271af3d1886 | [
"Apache-2.0"
] | null | null | null | #include "request.h"
#include "mainframe.h"
namespace Twf {
Request::Request() {}
Request::~Request() {
mainframe_.reset();
}
void Request::assign(const std::string& key, const std::string& value) {
params_[key] = value;
}
bool Request::hasKey(const std::string& key) {
return params_.find(key) != params_.end... | 18.962963 | 81 | 0.671875 | danncy |
874a652167ee5dfb781f4c88ade3f816f06db576 | 4,472 | cpp | C++ | src/input/VRFakeHandTrackerDevice.cpp | dtorban/MinVR_Old | 8b09ba1a61f6dcef051c5dd8d3f3e607ee55955d | [
"BSD-3-Clause"
] | 18 | 2016-08-04T16:09:52.000Z | 2022-01-17T15:43:37.000Z | src/input/VRFakeHandTrackerDevice.cpp | OpenSpace/MinVR | 17b4f3bd57cefd07f99159288069f01713053054 | [
"BSD-3-Clause"
] | 123 | 2015-01-08T17:32:39.000Z | 2021-12-22T00:55:00.000Z | src/input/VRFakeHandTrackerDevice.cpp | OpenSpace/MinVR | 17b4f3bd57cefd07f99159288069f01713053054 | [
"BSD-3-Clause"
] | 21 | 2016-11-04T18:36:29.000Z | 2022-03-01T19:44:11.000Z |
#include "VRFakeHandTrackerDevice.h"
#include <api/VRTrackerEvent.h>
#include <math/VRMath.h>
namespace MinVR {
VRFakeHandTrackerDevice::VRFakeHandTrackerDevice(const std::string &trackerName,
const std::string &toggleOnOffEventName,
... | 32.882353 | 130 | 0.603309 | dtorban |
874f97815195442e020989eb4c2376e70f4044d4 | 12,756 | hpp | C++ | include/tudocomp/compressors/LongCommonStringCompressor.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-22T11:29:02.000Z | 2020-09-22T11:29:02.000Z | include/tudocomp/compressors/LongCommonStringCompressor.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/tudocomp/compressors/LongCommonStringCompressor.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-29T08:57:13.000Z | 2020-09-29T08:57:13.000Z | #pragma once
#include <unordered_set>
#include <tudocomp/util/rollinghash/rabinkarphash.hpp>
#include <tudocomp/Compressor.hpp>
#include <tudocomp/decompressors/WrapDecompressor.hpp>
namespace tdc {
class EscapingSparseFactorCoder : public Algorithm {
public:
inline static Meta meta() {
Meta m(TypeDesc(... | 36.867052 | 110 | 0.518501 | 421408 |
87525234582ed9b7240e2b08dd67bfc2faed6e0d | 4,996 | cpp | C++ | missions_editor/src/editor/Route.cpp | marek-cel/fightersfs-tools | e692a8af7e44cfae6e35ecfa916d3ffdc46a9eb3 | [
"CC0-1.0"
] | null | null | null | missions_editor/src/editor/Route.cpp | marek-cel/fightersfs-tools | e692a8af7e44cfae6e35ecfa916d3ffdc46a9eb3 | [
"CC0-1.0"
] | null | null | null | missions_editor/src/editor/Route.cpp | marek-cel/fightersfs-tools | e692a8af7e44cfae6e35ecfa916d3ffdc46a9eb3 | [
"CC0-1.0"
] | 1 | 2021-02-22T21:22:33.000Z | 2021-02-22T21:22:33.000Z | /****************************************************************************//*
* Copyright (C) 2020 Marek M. Cel
*
* 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, ... | 32.441558 | 107 | 0.481185 | marek-cel |
87626350413d296e6c142357894eb7cd5300d791 | 866 | cpp | C++ | Counting pairs.cpp | Ru311/100-days-of-code | 6f38df20ec87ad943a727d6fa150e81a2a9529c9 | [
"MIT"
] | 7 | 2020-09-15T06:02:14.000Z | 2021-10-11T12:04:20.000Z | Counting pairs.cpp | ankitkeshavdbg/100-days-of-code | 6f38df20ec87ad943a727d6fa150e81a2a9529c9 | [
"MIT"
] | null | null | null | Counting pairs.cpp | ankitkeshavdbg/100-days-of-code | 6f38df20ec87ad943a727d6fa150e81a2a9529c9 | [
"MIT"
] | 4 | 2020-09-21T03:26:26.000Z | 2020-09-25T11:13:29.000Z | /* Given a array a[] of non-negative integers.
Count the number of pairs (i, j) in the array such that a[i] + a[j] < a[i]*a[j]. */
// { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
int CountPairs (int a[], int n)
{
... | 17.32 | 84 | 0.454965 | Ru311 |
876a3e1ba45e988cbc16ec7e078096c9f7be3735 | 911 | cpp | C++ | 142-linked-list-cycle-ii.cpp | zhiwei1988/leetcode_20211220 | d158c5ec567381610f4d442d427df7fa035dcd84 | [
"MIT"
] | null | null | null | 142-linked-list-cycle-ii.cpp | zhiwei1988/leetcode_20211220 | d158c5ec567381610f4d442d427df7fa035dcd84 | [
"MIT"
] | null | null | null | 142-linked-list-cycle-ii.cpp | zhiwei1988/leetcode_20211220 | d158c5ec567381610f4d442d427df7fa035dcd84 | [
"MIT"
] | null | null | null | //
// Created by ZhiWei Tan on 1/1/22.
//
#include "playground.h"
class Solution {
public:
ListNode *detectCycle(ListNode *head) {
if (head == nullptr || head->next == nullptr) return nullptr;
auto fast = head;
auto slow = head;
while (fast != nullptr && fast->next != nullptr) {
... | 20.244444 | 69 | 0.484083 | zhiwei1988 |
87745a8c9e1e114986dcf6a0ac24da37b30e25a4 | 1,208 | hpp | C++ | library/ATF/_TOWER_PARAMInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_TOWER_PARAMInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_TOWER_PARAMInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_TOWER_PARAM.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _TOWER_PARAMInit2_ptr = void (WINAPIV*)(struct _TOWER_PARAM*);
using _TOW... | 57.52381 | 161 | 0.766556 | lemkova |
87763251a7cd7466c4ba5e8992a48ceec9d19c82 | 540 | cpp | C++ | luogu/T115732.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:07:08.000Z | 2020-07-24T03:07:08.000Z | luogu/T115732.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | luogu/T115732.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | //
// Created by yangtao on 20-10-27.
//
#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;
const int N = 5005;
struct Edge{
int u, v, w;
};
vector<Edge> a[N];
int main( ) {
int n, m;
cin >> n >> m;
for(int i = 1; i <= m; i++) {
... | 16.875 | 37 | 0.477778 | delphi122 |
87795d9692209d19c266c7d003485b4e88b72a48 | 636 | hpp | C++ | metrics/metrics_tests_support/eye_for_testing.hpp | EVi1b7wO/omim | 1aafdb102a200149f7ad0cd3173aa7ca2cc32300 | [
"Apache-2.0"
] | 1 | 2021-07-02T08:45:02.000Z | 2021-07-02T08:45:02.000Z | metrics/metrics_tests_support/eye_for_testing.hpp | EVi1b7wO/omim | 1aafdb102a200149f7ad0cd3173aa7ca2cc32300 | [
"Apache-2.0"
] | 1 | 2020-06-15T15:16:23.000Z | 2020-06-15T15:59:19.000Z | metrics/metrics_tests_support/eye_for_testing.hpp | maksimandrianov/omim | cbc5a80d09d585afbda01e471887f63b9d3ab0c2 | [
"Apache-2.0"
] | 1 | 2018-10-01T10:27:21.000Z | 2018-10-01T10:27:21.000Z | #pragma once
#include "metrics/eye_info.hpp"
namespace eye
{
class EyeForTesting
{
public:
static void ResetEye();
static void SetInfo(Info const & info);
static void AppendTip(Tip::Type type, Tip::Event event);
static void UpdateBookingFilterUsedTime();
static void UpdateBoomarksCatalogShownTime();
stati... | 23.555556 | 61 | 0.754717 | EVi1b7wO |
8783059bd7c1d0d0ae0c9711de133235f1d4538c | 3,418 | cpp | C++ | func.cpp | songtianyi/motionLib | e40260109e84cbd5a779ba222b938c685414831e | [
"MIT"
] | 25 | 2015-04-24T07:05:47.000Z | 2021-09-09T13:16:42.000Z | func.cpp | songtianyi/motionLib | e40260109e84cbd5a779ba222b938c685414831e | [
"MIT"
] | 1 | 2019-08-19T14:03:11.000Z | 2020-07-03T07:30:59.000Z | func.cpp | songtianyi/motionLib | e40260109e84cbd5a779ba222b938c685414831e | [
"MIT"
] | 12 | 2015-11-04T11:11:57.000Z | 2022-01-05T05:01:44.000Z | #include "func.h"
void __matrixMultiXYZ(FLOAT *rs,const FLOAT *a,const FLOAT *b,const int X,const int Y,const int Z)
{
FLOAT *tmp = new FLOAT[X*Z];
for(int i = 0;i < X*Z;i++)
{
tmp[i] = 0.0f;
}
for(int i = 0;i < X;i++)
{
for(int j = 0;j < Z;j++)
{
for(int k = 0;k < Y;k++)
... | 22.194805 | 98 | 0.606202 | songtianyi |
87837816c7679467567a544362db9746d8225119 | 3,448 | cpp | C++ | vikaCode/vikaQuery.cpp | ipr/vikaEngine | 58d5d21eb1930f3091a61d46d8742942418f621f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | vikaCode/vikaQuery.cpp | ipr/vikaEngine | 58d5d21eb1930f3091a61d46d8742942418f621f | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2016-11-02T13:42:51.000Z | 2016-11-11T13:31:07.000Z | vikaCode/vikaQuery.cpp | ipr/vikaEngine | 58d5d21eb1930f3091a61d46d8742942418f621f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | // vikaQuery :
//
// Ilkka Prusi 2016 <ilkka.prusi@gmail.com>
#include "stdafx.h"
#include "vikaQuery.h"
#include "vikaDevice.h"
#include "vikaPhysDevice.h"
#include "vikaCommandBuffer.h"
#include "vikaBuffer.h"
#include <vulkan/vulkan.h>
vikaQuery::vikaQuery(vikaDevice *logDevice, vikaPhysDevice *physDevice, vikaC... | 23.14094 | 126 | 0.715197 | ipr |
8787ebd780bb0b3e7f66a0b9493f2275553fecc1 | 8,862 | cpp | C++ | apps/ncv_tester.cpp | 0x0all/nanocv | dc58dea6b4eb7be2089b168d39c2b02aa2730741 | [
"MIT"
] | null | null | null | apps/ncv_tester.cpp | 0x0all/nanocv | dc58dea6b4eb7be2089b168d39c2b02aa2730741 | [
"MIT"
] | null | null | null | apps/ncv_tester.cpp | 0x0all/nanocv | dc58dea6b4eb7be2089b168d39c2b02aa2730741 | [
"MIT"
] | 1 | 2018-08-02T02:41:37.000Z | 2018-08-02T02:41:37.000Z | #include "nanocv/nanocv.h"
#include "nanocv/tester.h"
#include "nanocv/sampler.h"
#include "nanocv/measure.hpp"
#include <boost/program_options.hpp>
#include <algorithm>
int main(int argc, char *argv[])
{
ncv::init();
using namespace ncv;
// prepare object string-based selection
const... | 44.984772 | 120 | 0.506319 | 0x0all |
8796081c5b0c3cdd52270a129beaf268f8eed41d | 13,198 | cpp | C++ | platform/gucefCOMCORE/src/CIPAddress.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 5 | 2016-04-18T23:12:51.000Z | 2022-03-06T05:12:07.000Z | platform/gucefCOMCORE/src/CIPAddress.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 2 | 2015-10-09T19:13:25.000Z | 2018-12-25T17:16:54.000Z | platform/gucefCOMCORE/src/CIPAddress.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 15 | 2015-02-23T16:35:28.000Z | 2022-03-25T13:40:33.000Z | /*
* gucefCOMCORE: GUCEF module providing basic communication facilities
*
* Copyright (C) 1998 - 2020. Dinand Vanvelzen
*
* 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
*
* ... | 28.816594 | 160 | 0.443401 | amvb |
879f1ee447d4a526e696ffca133ffaedd099b535 | 610 | hpp | C++ | cpp/include/eos/mathematical_constants.hpp | hantar97404/Ecuaciones-cubicas-de-estado- | 439090d9e3fa9b90cd0b36a45a7f8973a020b57c | [
"MIT"
] | 7 | 2020-03-30T15:43:18.000Z | 2022-01-02T07:15:32.000Z | cpp/include/eos/mathematical_constants.hpp | hantar97404/Ecuaciones-cubicas-de-estado- | 439090d9e3fa9b90cd0b36a45a7f8973a020b57c | [
"MIT"
] | null | null | null | cpp/include/eos/mathematical_constants.hpp | hantar97404/Ecuaciones-cubicas-de-estado- | 439090d9e3fa9b90cd0b36a45a7f8973a020b57c | [
"MIT"
] | 3 | 2021-05-10T22:41:53.000Z | 2021-11-10T13:43:06.000Z | #ifndef EOS_MATHEMATICAL_CONSTANTS_HPP
#define EOS_MATHEMATICAL_CONSTANTS_HPP
#include <cmath>
#include <type_traits>
namespace eos {
template <typename T>
inline constexpr auto sqrt_two() noexcept
-> std::enable_if_t<std::is_floating_point_v<T>, T> {
#ifndef M_SQRT2
#error M_SQRT2 is not defined!
#endif
retur... | 21.034483 | 57 | 0.754098 | hantar97404 |
87a0a196ed48bf2c4855d5559d9475a62eb9cbd0 | 5,383 | cpp | C++ | test/DummyClasses/RandomGeneratorFunctional.cpp | SABCEMM/SABCEMM | a87ea83b57a8a7d16591abe30e56db459e710a0e | [
"BSD-3-Clause"
] | 17 | 2018-01-08T13:38:28.000Z | 2022-01-21T05:39:26.000Z | test/DummyClasses/RandomGeneratorFunctional.cpp | SABCEMM/SABCEMM | a87ea83b57a8a7d16591abe30e56db459e710a0e | [
"BSD-3-Clause"
] | null | null | null | test/DummyClasses/RandomGeneratorFunctional.cpp | SABCEMM/SABCEMM | a87ea83b57a8a7d16591abe30e56db459e710a0e | [
"BSD-3-Clause"
] | 1 | 2018-01-08T13:39:00.000Z | 2018-01-08T13:39:00.000Z | /* Copyright 2017 - BSD-3-Clause
*
* Copyright Holder (alphabetical):
*
* Beikirch, Maximilian
* Cramer, Simon
* Frank, Martin
* Otte, Philipp
* Pabich, Emma
* Trimborn, Torsten
*
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* followin... | 32.624242 | 146 | 0.728033 | SABCEMM |
87a466dd1e52963d46a8c05e0523e0477a859df4 | 1,096 | cc | C++ | codegen/cpp/fletchgen/src/fletchgen/kernel.cc | ye-blue/fletcher | 5c194a864a87d5fc73041fa29eebc7183ce1bf1e | [
"Apache-2.0"
] | 1 | 2019-10-10T02:50:00.000Z | 2019-10-10T02:50:00.000Z | codegen/cpp/fletchgen/src/fletchgen/kernel.cc | ye-blue/fletcher | 5c194a864a87d5fc73041fa29eebc7183ce1bf1e | [
"Apache-2.0"
] | null | null | null | codegen/cpp/fletchgen/src/fletchgen/kernel.cc | ye-blue/fletcher | 5c194a864a87d5fc73041fa29eebc7183ce1bf1e | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 Delft University of Technology
//
// 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 l... | 29.621622 | 83 | 0.725365 | ye-blue |
87a69de5a5173ae99c57512408d35bdaeff81677 | 11,834 | cpp | C++ | NaiveTrading/output/trading.strategy.Main/BuildConfig/src/operator/PrintHello.cpp | Zealot-311/StreamsNet | 1d3b62be7405a0c162b481434e9a6a89e7061352 | [
"Apache-2.0"
] | null | null | null | NaiveTrading/output/trading.strategy.Main/BuildConfig/src/operator/PrintHello.cpp | Zealot-311/StreamsNet | 1d3b62be7405a0c162b481434e9a6a89e7061352 | [
"Apache-2.0"
] | null | null | null | NaiveTrading/output/trading.strategy.Main/BuildConfig/src/operator/PrintHello.cpp | Zealot-311/StreamsNet | 1d3b62be7405a0c162b481434e9a6a89e7061352 | [
"Apache-2.0"
] | null | null | null | // eJyVkEFPg0AQhTN_1pfHMQms04UhbD5YSzdJojxuZwijsbmanIP31Iokaj80c5jB533tvgm8jUxkvyGn6QC1qsh_0QQDxNAosoUjJ6VBk_0Drx_1PV5y_1b4rt_1eFrOvz7uCCPiz7arPvNSX5RUuRPa9fhoGzqFnMhJbkJgb9lKcpB2GyNQCoxnUYVGPHRB2NjUoyVmlhNF3YYI_0t8x1aUYWhHks21SRTlRED1ln8xp6mpNP6x_10x2356xhDI2bkHece_1Ga7uAQQ8PwNgBZ7pDeHUOiN3tzDZGsF6BLKyWgJPwe357xx_1AeQ... | 29.219753 | 324 | 0.649569 | Zealot-311 |
87ad4442f9223fca09076bd7013a4dee1a110a62 | 2,435 | cpp | C++ | test/hash/Md5Test.cpp | proxict/cpplibcrypto | 8fa2644147ad79a1eab25d9a608e318d41c6ba8b | [
"BSD-3-Clause"
] | null | null | null | test/hash/Md5Test.cpp | proxict/cpplibcrypto | 8fa2644147ad79a1eab25d9a608e318d41c6ba8b | [
"BSD-3-Clause"
] | null | null | null | test/hash/Md5Test.cpp | proxict/cpplibcrypto | 8fa2644147ad79a1eab25d9a608e318d41c6ba8b | [
"BSD-3-Clause"
] | 2 | 2018-04-17T19:44:37.000Z | 2019-09-26T10:34:47.000Z | #include "gtest/gtest.h"
#include "cpplibcrypto/buffer/StaticBuffer.h"
#include "cpplibcrypto/buffer/String.h"
#include "cpplibcrypto/buffer/utils/bufferUtils.h"
#include "cpplibcrypto/common/Hex.h"
#include "cpplibcrypto/hash/Md5.h"
namespace crypto {
TEST(Md5Test, empty) {
Md5 md5;
md5.update(String(""));
... | 25.103093 | 93 | 0.696099 | proxict |
87afa5febe2ab291a3825769417d40a3413550eb | 3,002 | cpp | C++ | lessons/05-functions/src/passbyref_03.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/05-functions/src/passbyref_03.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | lessons/05-functions/src/passbyref_03.cpp | chemphys/LearnCPP | 025a6e043c6eadb61324c261168bbd0478d9690b | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <vector>
#include <chrono> // for timing, need c++11
/* double GetVectorSum(std::vector<double> v)
* Adds all the elements of a vector
* Return: sum of all the elements of a vector
* Inputs:
* - v: double vector which elements will be added
*/
// Copy 1 of the function where v ... | 28.590476 | 80 | 0.578281 | chemphys |
87b0340153624cf47705984182abf57d6f41957e | 147,563 | cpp | C++ | PDFWriterTestPlayground/TextUsageBugs.cpp | thmclellan/PDF-Writer | 9d31d12ce12e586b4f7f748e17029a10ccc2c176 | [
"Apache-2.0"
] | 620 | 2015-02-10T16:38:47.000Z | 2022-03-30T11:06:17.000Z | PDFWriterTestPlayground/TextUsageBugs.cpp | thmclellan/PDF-Writer | 9d31d12ce12e586b4f7f748e17029a10ccc2c176 | [
"Apache-2.0"
] | 124 | 2015-01-14T20:50:29.000Z | 2021-12-08T09:51:01.000Z | PDFWriterTestPlayground/TextUsageBugs.cpp | thmclellan/PDF-Writer | 9d31d12ce12e586b4f7f748e17029a10ccc2c176 | [
"Apache-2.0"
] | 185 | 2015-04-16T11:09:39.000Z | 2022-03-07T03:25:15.000Z | /*
Source File : TextUsageBugs.cpp
Copyright 2011 Gal Kahana PDFWriter
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 ... | 37.634022 | 207 | 0.75628 | thmclellan |
87b49ef29e2d196c719b8ebd844fb6923a89dd6e | 503 | cpp | C++ | MeshAdaptation/Lights/DirectionalLight.cpp | WildFire212/MeshAdaptation | e0b98de08f39b354f7eca0c56e8fb2216d0dbe1e | [
"Apache-2.0"
] | 2 | 2020-05-11T19:25:56.000Z | 2020-08-18T05:55:20.000Z | MeshAdaptation/Lights/DirectionalLight.cpp | WildFire212/MeshAdaptation | e0b98de08f39b354f7eca0c56e8fb2216d0dbe1e | [
"Apache-2.0"
] | 1 | 2021-05-13T05:56:02.000Z | 2021-05-13T05:56:02.000Z | MeshAdaptation/Lights/DirectionalLight.cpp | WildFire212/MeshAdaptation | e0b98de08f39b354f7eca0c56e8fb2216d0dbe1e | [
"Apache-2.0"
] | null | null | null | #include "DirectionalLight.h"
DirectionalLight::DirectionalLight(){
}
DirectionalLight::DirectionalLight(glm::vec3 color , float aIntensity, float dIntensity, glm::vec3 dir)
{
//m_DirectionalLight.color = color;
m_DirectionalLight.ambientIntensity= aIntensity;
m_DirectionalLight.diffuseIntensity= dIntensity;... | 21.869565 | 104 | 0.797217 | WildFire212 |
87bbacc1637940adf9ddc13361573f46c7612c62 | 151,224 | cpp | C++ | tests/rho/crypt/tHasherTest.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | 1 | 2016-09-22T03:27:33.000Z | 2016-09-22T03:27:33.000Z | tests/rho/crypt/tHasherTest.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | tests/rho/crypt/tHasherTest.cpp | Rhobota/librho | d540cba6227e15ac6ef3dcb6549ed9557f6fee04 | [
"BSD-3-Clause"
] | null | null | null | #include <rho/crypt/hash_utils.h>
#include <rho/crypt/tMD5.h>
#include <rho/crypt/tSHA1.h>
#include <rho/crypt/tSHA224.h>
#include <rho/crypt/tSHA256.h>
#include <rho/crypt/tSHA384.h>
#include <rho/crypt/tSHA512.h>
#include <rho/crypt/tWhirlpool.h>
#include <rho/tCrashReporter.h>
#include <rho/tTest.h>
#include <iostr... | 57.653069 | 1,050 | 0.70715 | Rhobota |
87be37aff50548eea618e30142d98f1e5e0576ab | 2,231 | cpp | C++ | 2017/Piesinys/main.cpp | agneknie/IT-VBE-Programavimo-Uzduotys | 49a14eb0336fa7cdd6a64ffba82c2a99a31e2f98 | [
"MIT"
] | null | null | null | 2017/Piesinys/main.cpp | agneknie/IT-VBE-Programavimo-Uzduotys | 49a14eb0336fa7cdd6a64ffba82c2a99a31e2f98 | [
"MIT"
] | null | null | null | 2017/Piesinys/main.cpp | agneknie/IT-VBE-Programavimo-Uzduotys | 49a14eb0336fa7cdd6a64ffba82c2a99a31e2f98 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
const char D[] = "U2.txt";
const char R[] = "U2rez.txt";
// Struktura duomenims apie staciakampius saugoti
struct Staciakampiai{
int x;
int y;
int dx;
int dy;
string spalva;
};
// Pagrindine funkcija
int main(){
Staciakampiai S[100]... | 25.067416 | 73 | 0.369341 | agneknie |
87be95addf7f4743137e58281c60f85f0fe577d6 | 680 | cpp | C++ | vox.render/shaderlib/functors/wgsl_begin_viewdir_frag.cpp | ArcheGraphics/Arche-cpp | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | 8 | 2022-02-15T12:54:57.000Z | 2022-03-30T16:35:58.000Z | vox.render/shaderlib/functors/wgsl_begin_viewdir_frag.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | vox.render/shaderlib/functors/wgsl_begin_viewdir_frag.cpp | yangfengzzz/DigitalArche | da6770edd4556a920b3f7298f38176107caf7e3a | [
"MIT"
] | null | null | null | // Copyright (c) 2022 Feng Yang
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "wgsl_begin_viewdir_frag.h"
#include <fmt/core.h>
namespace vox {
WGSLBeginViewDirFrag::WG... | 29.565217 | 99 | 0.729412 | ArcheGraphics |
87c3f260666c6f4fa8c8cea5c4353a4cd2961fc7 | 14,594 | cpp | C++ | data/562.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/562.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/562.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int
nS74
,
LJa
,
jD9H, e1 , VP,FK,
E
,S21/*BhJ*/
//3
,
Y9vh , YjV
,L4,
CG
, qzN , P, MQ4yu/*9*/ ,ZH , CAd, Uj ,JE , cH, nyGG , TRV,MF , n, BwNG4,//kRT
jG ,
EyC
,
Lr,E3h
,j5Z,
fmbp
,
vrx4R, SR1 ,bM,
//PBr
tOi
, b5c
, yQ , VPs
,A6, mf
,
McF ,hxXc1g
,//Cg
Yc
, Ajb ,//b6
xd7,//D
F
,
e5p,... | 10.948237 | 82 | 0.453885 | TianyiChen |
87c680cdd6bf62e3394366f61b041f4a6e619457 | 3,704 | cpp | C++ | oshgui/Drawing/ColorRectangle.cpp | zhuhuibeishadiao/osh_sdk | 087df8876443c36254b6de127b732e74ddf77167 | [
"MIT"
] | 6 | 2018-10-31T12:53:37.000Z | 2019-01-12T23:12:43.000Z | OSHGui/Drawing/ColorRectangle.cpp | EternityX/oshgui-deadcell | 7c565ba7e941ec00cf9f4a2d7639eb8a363a3e9e | [
"MIT"
] | 4 | 2018-10-31T16:39:43.000Z | 2019-01-14T07:30:24.000Z | OSHGui/Drawing/ColorRectangle.cpp | EternityX/oshgui-deadcell | 7c565ba7e941ec00cf9f4a2d7639eb8a363a3e9e | [
"MIT"
] | 2 | 2021-01-20T21:17:35.000Z | 2022-03-12T08:18:43.000Z | #include "ColorRectangle.hpp"
#include <utility>
namespace OSHGui
{
namespace Drawing
{
//---------------------------------------------------------------------------
//Constructor
//---------------------------------------------------------------------------
ColorRectangle::ColorRectangle(Color color)
: To... | 31.65812 | 104 | 0.440875 | zhuhuibeishadiao |
87cb27ad6c2e3c47d3575ed0300b5d2587db65da | 415 | cpp | C++ | TimothE/WeaponObject.cpp | Timothy-Needs-to-Die/TimothE | d4f458c166c15f8cb22095ade9c198bd30729f65 | [
"Apache-2.0"
] | null | null | null | TimothE/WeaponObject.cpp | Timothy-Needs-to-Die/TimothE | d4f458c166c15f8cb22095ade9c198bd30729f65 | [
"Apache-2.0"
] | 5 | 2022-01-17T13:05:42.000Z | 2022-01-28T12:40:00.000Z | TimothE/WeaponObject.cpp | Timothy-Needs-to-Die/TimothE | d4f458c166c15f8cb22095ade9c198bd30729f65 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "WeaponObject.h"
#include "WeaponComponent.h"
WeaponObject::WeaponObject(std::string name /*= "Weapon"*/, std::string tag /*= "WEAPON"*/) : GameObject(name, tag)
{
_pWeaponComp = AddComponent(new WeaponComponent(this));
}
void WeaponObject::UniqueLogic()
{
if(_pTransform != nullptr && _pPa... | 27.666667 | 115 | 0.713253 | Timothy-Needs-to-Die |
87cb34ad04dcd046e523b7a31c233b1f4fadc1a0 | 15,735 | cpp | C++ | lib/jet-diagnostics.cpp | The-NextGen-Project/jet | b967af4a914b72858fa66a42c6e5abec65f1f015 | [
"MIT"
] | 27 | 2021-05-03T18:05:18.000Z | 2022-01-26T23:17:42.000Z | lib/jet-diagnostics.cpp | The-NextGen-Project/jet | b967af4a914b72858fa66a42c6e5abec65f1f015 | [
"MIT"
] | 3 | 2021-06-13T22:46:24.000Z | 2021-11-03T15:22:24.000Z | lib/jet-diagnostics.cpp | The-NextGen-Project/jet | b967af4a914b72858fa66a42c6e5abec65f1f015 | [
"MIT"
] | 2 | 2021-07-01T19:24:17.000Z | 2021-12-03T01:23:15.000Z | #include <nextgen/jet/jet-diagnostics.h>
#include <nextgen/jet/jet-parser.h>
using nextgen::Console;
using nextgen::jet::Diagnostic;
using nextgen::str;
using nextgen::Range;
// Color namespacing
#ifdef NG_OS_WINDOWS
using nextgen::Colors;
#else
using namespace nextgen::Colors;
#endif
static Range<const char *>
... | 31.282306 | 89 | 0.556149 | The-NextGen-Project |
d7ad59a482679b62f9e08671d9d4e27ac847f1d6 | 2,600 | hpp | C++ | src/hash_map.hpp | abcdlsj/clsm | a7424ecbd590f035207c3b1df8b39d1dd764b60b | [
"MIT"
] | null | null | null | src/hash_map.hpp | abcdlsj/clsm | a7424ecbd590f035207c3b1df8b39d1dd764b60b | [
"MIT"
] | null | null | null | src/hash_map.hpp | abcdlsj/clsm | a7424ecbd590f035207c3b1df8b39d1dd764b60b | [
"MIT"
] | null | null | null | #ifndef LSMTREE_HASH_MAP_HPP
#define LSMTREE_HASH_MAP_HPP
#include <algorithm>
#include <array>
#include <climits>
#include "murmur3.hpp"
#include "run.hpp"
template <typename K, typename V>
class HashTable {
private:
kvPair<K, V> *Table;
public:
long _size;
long _elts;
kvPair<K, V> DEFAULT = {INT_MIN, I... | 23.853211 | 62 | 0.540769 | abcdlsj |
d7b1a51d61d0816d812319a2f8b1c01d306842d6 | 195 | hpp | C++ | NaN/include/NaN/Parser/AST.hpp | YousifKako/NaN | 9c458ac8b81e6e3a2c980cbd09243117d9c1da81 | [
"MIT"
] | null | null | null | NaN/include/NaN/Parser/AST.hpp | YousifKako/NaN | 9c458ac8b81e6e3a2c980cbd09243117d9c1da81 | [
"MIT"
] | null | null | null | NaN/include/NaN/Parser/AST.hpp | YousifKako/NaN | 9c458ac8b81e6e3a2c980cbd09243117d9c1da81 | [
"MIT"
] | null | null | null | #pragma once
#include <NaN/Lexer/Token.hpp>
class AST
{
public:
const std::string data = EMPTY_STRING;
std::vector<AST> ast = { };
AST(const std::string data) : data(data) { }
}; | 16.25 | 48 | 0.620513 | YousifKako |
d7b1e1a14dce620e349592393922eea104ebd1c7 | 706 | cpp | C++ | AEngine/src/Exception/InitializationException.cpp | alife1029/aengine | 6d5bf28604f32610a1a60fb6f2bc297bd972d3c7 | [
"MIT"
] | 1 | 2022-01-17T19:01:14.000Z | 2022-01-17T19:01:14.000Z | AEngine/src/Exception/InitializationException.cpp | alife1029/AEngine | ecf181948fc90690c7fe2fba7792f29441b445d7 | [
"MIT"
] | null | null | null | AEngine/src/Exception/InitializationException.cpp | alife1029/AEngine | ecf181948fc90690c7fe2fba7792f29441b445d7 | [
"MIT"
] | null | null | null | #include "AEngine/Exception/InitializationException.hpp"
#include <sstream>
namespace aengine
{
InitializationException::InitializationException(int line, const char* file, const std::string& errDescription) noexcept
: AEexception(line, file), errDescription(errDescription) { }
const char* Ini... | 32.090909 | 125 | 0.671388 | alife1029 |
d7b3bde06db3c8031fedf6478d03db9387a746f1 | 5,665 | cpp | C++ | CIMitar/usercredentials.cpp | ejsiron/CIMitar | e21131cf965042ec0f43bc33c3aad55406cd06bc | [
"MIT"
] | null | null | null | CIMitar/usercredentials.cpp | ejsiron/CIMitar | e21131cf965042ec0f43bc33c3aad55406cd06bc | [
"MIT"
] | null | null | null | CIMitar/usercredentials.cpp | ejsiron/CIMitar | e21131cf965042ec0f43bc33c3aad55406cd06bc | [
"MIT"
] | null | null | null | #include "CIMitar.hpp"
#include <algorithm>
#include <cstring>
#include <string>
#include <vector>
using namespace std;
using namespace CIMitar;
const map<AuthenticationTypes, wstring> AuthTypeMap = {
{AuthenticationTypes::DEFAULT, MI_AUTH_TYPE_DEFAULT},
{AuthenticationTypes::NONE, MI_AUTH_TYPE_NONE},
{Authenticat... | 31.825843 | 136 | 0.795057 | ejsiron |
d7bffd69c2860ff813110bb3abedd3bc782403ce | 9,059 | cpp | C++ | test/MatrixTest.cpp | dmlux/UZLMathLib | 7055c798dca6e6dc1ce0233b9ca539994feb4ade | [
"BSD-3-Clause"
] | null | null | null | test/MatrixTest.cpp | dmlux/UZLMathLib | 7055c798dca6e6dc1ce0233b9ca539994feb4ade | [
"BSD-3-Clause"
] | null | null | null | test/MatrixTest.cpp | dmlux/UZLMathLib | 7055c798dca6e6dc1ce0233b9ca539994feb4ade | [
"BSD-3-Clause"
] | null | null | null | #include "gtest/gtest.h"
#include <uzlmath>
using namespace uzlmath;
// Tests if the default constructor of matrix works correctly
TEST(MatrixTest, DefConstructor)
{
// create matrix by use of default constructor
matrix< double > A;
// check if ivars are initialized correct
ASSERT_EQ(A.cols, 0);
... | 23.050891 | 76 | 0.539905 | dmlux |
d7c13e623ba11b6670bb1c548b7af7361cd8c0dc | 10,934 | cpp | C++ | Source/Driver/API/SQLSetStmtAttr.cpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | Source/Driver/API/SQLSetStmtAttr.cpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | Source/Driver/API/SQLSetStmtAttr.cpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | /*
* ----------------------------------------------------------------------------
* Copyright (c) 2014-2015 BigObject Inc.
* All Rights Reserved.
*
* Use of, copying, modifications to, and distribution of this software
* and its documentation without BigObject's written permission can
* result in the violation o... | 30.974504 | 80 | 0.711999 | yichenghuang |
d7c5b1fa17a49154dc3d840988f804ec00bc6cb2 | 69 | hpp | C++ | shmbus/version.hpp | jonathanherbst/shmbus | b777cefbbccaa35b1980622929548ad78bc7a21c | [
"MIT"
] | 1 | 2017-11-02T05:16:06.000Z | 2017-11-02T05:16:06.000Z | shmbus/version.hpp | jonathanherbst/shmbus | b777cefbbccaa35b1980622929548ad78bc7a21c | [
"MIT"
] | null | null | null | shmbus/version.hpp | jonathanherbst/shmbus | b777cefbbccaa35b1980622929548ad78bc7a21c | [
"MIT"
] | 2 | 2018-02-25T11:18:23.000Z | 2022-01-01T10:17:29.000Z | #define SHMBUS_MAJOR 1
#define SHMBUS_MINOR 1
#define SHMBUS_PATCH 0
| 17.25 | 22 | 0.826087 | jonathanherbst |
d7cd0da1c059755234a4e3de84e464eebbcaa096 | 4,053 | cpp | C++ | source/device/PlasmaFractal.cpp | xzrunner/terr | f3c03776d7a415c73c8f985132c60526e830a96a | [
"MIT"
] | null | null | null | source/device/PlasmaFractal.cpp | xzrunner/terr | f3c03776d7a415c73c8f985132c60526e830a96a | [
"MIT"
] | null | null | null | source/device/PlasmaFractal.cpp | xzrunner/terr | f3c03776d7a415c73c8f985132c60526e830a96a | [
"MIT"
] | null | null | null | #include "terraingraph/device/PlasmaFractal.h"
#include "terraingraph/Utility.h"
#include <heightfield/HeightField.h>
#include <heightfield/Utility.h>
namespace terraingraph
{
namespace device
{
void PlasmaFractal::Execute(const std::shared_ptr<dag::Context>& ctx)
{
m_hf = std::make_shared<hf::HeightField>(m_wid... | 26.318182 | 220 | 0.577103 | xzrunner |
d7cd400119ef2c5e4566c96ed6fcfe103ea020c1 | 3,889 | hh | C++ | src/Test.hh | nkoenig/ign-test | 2d03afb2beadef51f104b672e6c156d8fe43a2a7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/Test.hh | nkoenig/ign-test | 2d03afb2beadef51f104b672e6c156d8fe43a2a7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/Test.hh | nkoenig/ign-test | 2d03afb2beadef51f104b672e6c156d8fe43a2a7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2022 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 32.140496 | 77 | 0.650553 | nkoenig |
d7cd43553bf3b81d43719cd83bafdaf0ccd1561f | 129 | cpp | C++ | dependencies/physx-4.1/source/geomutils/src/convex/GuConvexUtilsInternal.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/convex/GuConvexUtilsInternal.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/convex/GuConvexUtilsInternal.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:47a9af0194616ffda54dfdab73edf48a3f96d486076a7cac12c4da65058dd2a9
size 3423
| 32.25 | 75 | 0.883721 | realtehcman |
d7cd5de14014f834b7ac4032ca17bb16d67bd6a0 | 10,308 | cpp | C++ | source/Graphics/Camera.cpp | hadryansalles/Luz | a262b809cb7e2e9e6ca033afcab300cbafc689f4 | [
"MIT"
] | 43 | 2021-07-27T19:22:35.000Z | 2022-03-19T19:11:06.000Z | source/Graphics/Camera.cpp | hadryansalles/Luz | a262b809cb7e2e9e6ca033afcab300cbafc689f4 | [
"MIT"
] | null | null | null | source/Graphics/Camera.cpp | hadryansalles/Luz | a262b809cb7e2e9e6ca033afcab300cbafc689f4 | [
"MIT"
] | 3 | 2021-09-26T13:32:10.000Z | 2021-12-08T10:18:15.000Z | #include "Luzpch.hpp"
#include "Camera.hpp"
#include "Window.hpp"
#include "Transform.hpp"
Camera::Camera() {
UpdateView();
}
void Camera::UpdateView() {
rotation.x = std::max(-179.9f, std::min(179.9f, rotation.x));
glm::vec3 rads;
switch (mode) {
case Control::Orbit:
rads = glm::radians(... | 35.42268 | 110 | 0.499806 | hadryansalles |
d7cd7642540f6e5ca46e3004e1071fb68624a778 | 233 | cpp | C++ | test-project/src/main.cpp | ExaBerries/spruce | 85845244f7d6cd5a662f0dbc9b4079a1230d9a4b | [
"MIT"
] | null | null | null | test-project/src/main.cpp | ExaBerries/spruce | 85845244f7d6cd5a662f0dbc9b4079a1230d9a4b | [
"MIT"
] | null | null | null | test-project/src/main.cpp | ExaBerries/spruce | 85845244f7d6cd5a662f0dbc9b4079a1230d9a4b | [
"MIT"
] | null | null | null | #include <spruce.h>
#include <SpruceTest.h>
int main() {
spruce::SpruceEngine engine([](spruce::SpruceEngine& engine) -> owner<Application> {
return new sprucetest::SpruceTest(engine);
});
engine.run();
return EXIT_SUCCESS;
}
| 21.181818 | 85 | 0.708155 | ExaBerries |
d7d80f7158407202abdac7e5877975d4d47e2cfa | 313 | cpp | C++ | heavygodot/commands/base_module/register_types.cpp | lane-s/heavy-godot-cli | 38b9676123a7fb5b5a32694edfeb9b8b8197e9ff | [
"MIT"
] | 1 | 2019-05-16T15:39:16.000Z | 2019-05-16T15:39:16.000Z | heavygodot/commands/base_module/register_types.cpp | lane-s/heavy-godot-cli | 38b9676123a7fb5b5a32694edfeb9b8b8197e9ff | [
"MIT"
] | null | null | null | heavygodot/commands/base_module/register_types.cpp | lane-s/heavy-godot-cli | 38b9676123a7fb5b5a32694edfeb9b8b8197e9ff | [
"MIT"
] | null | null | null | #include "register_types.h"
#include "class_db.h"
#include "$(module_name).h"
void register_$(module_name)_types() {
ClassDB::register_class<$(audio_playback_classname)>();
ClassDB::register_class<$(audio_stream_classname)>();
}
void unregister_$(module_name)_types() {
//nothing to do here
} | 26.083333 | 63 | 0.709265 | lane-s |
d7da1c4fdae1ff16d2f9b032b16119e68944be86 | 201 | cpp | C++ | codeshef/HOOPS.cpp | sonuKumar03/data-structure-and-algorithm | d1fd3cad494cbcc91ce7ff37ec611752369b50b6 | [
"MIT"
] | null | null | null | codeshef/HOOPS.cpp | sonuKumar03/data-structure-and-algorithm | d1fd3cad494cbcc91ce7ff37ec611752369b50b6 | [
"MIT"
] | null | null | null | codeshef/HOOPS.cpp | sonuKumar03/data-structure-and-algorithm | d1fd3cad494cbcc91ce7ff37ec611752369b50b6 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve(){
ll n;
cin>>n;
cout<<(n/2)+1<<endl;
}
int main() {
int t;
cin>>t;
while(t--){
solve();
}
return 0;
}
| 10.05 | 24 | 0.547264 | sonuKumar03 |
d7de32e6ee634d3aeb5cdfd3a5fb3949a82d1a08 | 1,283 | cpp | C++ | HDOJ/diy37845/3.cpp | ljcbaby/ACM-Codes | 20217b87f383dbdd59c71f877490e15f33854d9a | [
"Unlicense"
] | null | null | null | HDOJ/diy37845/3.cpp | ljcbaby/ACM-Codes | 20217b87f383dbdd59c71f877490e15f33854d9a | [
"Unlicense"
] | null | null | null | HDOJ/diy37845/3.cpp | ljcbaby/ACM-Codes | 20217b87f383dbdd59c71f877490e15f33854d9a | [
"Unlicense"
] | null | null | null | // 未完成
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ll;
int n, x, y, top, down, res;
bool m[505][505], l[505];
int main() {
#ifndef ONLINE_JUDGE
freopen("1.in", "r", stdin);
freopen("1.out", "w", stdout);
freopen("1.err", "w", stderr);
#endif
cin >> n;
char ch;
for ... | 24.207547 | 70 | 0.329696 | ljcbaby |
d7ef68647f034cbe489a7536c577a6a1a3b90c4a | 2,891 | cpp | C++ | src/CommonTools.cpp | grey277/j-pet-event-display | d83cea9f3ee33411ccd6c97342fe4c6c1eaa7b6d | [
"Apache-2.0"
] | 3 | 2018-01-26T17:48:54.000Z | 2020-12-09T08:22:03.000Z | src/CommonTools.cpp | grey277/j-pet-event-display | d83cea9f3ee33411ccd6c97342fe4c6c1eaa7b6d | [
"Apache-2.0"
] | 6 | 2017-04-29T16:36:21.000Z | 2020-09-30T15:05:56.000Z | src/CommonTools.cpp | grey277/j-pet-event-display | d83cea9f3ee33411ccd6c97342fe4c6c1eaa7b6d | [
"Apache-2.0"
] | 1 | 2017-04-10T12:08:38.000Z | 2017-04-10T12:08:38.000Z | /**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required by applicable la... | 34.011765 | 79 | 0.721896 | grey277 |
d7f516917667ffa01bb4a1a41ca242380a775e80 | 2,935 | hpp | C++ | INCLUDE/Vcl/idsmtp.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | 1 | 2022-01-13T01:03:55.000Z | 2022-01-13T01:03:55.000Z | INCLUDE/Vcl/idsmtp.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | INCLUDE/Vcl/idsmtp.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | // Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'IdSMTP.pas' rev: 6.00
#ifndef IdSMTPHPP
#define IdSMTPHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <IdComponent.... | 36.6875 | 200 | 0.693356 | earthsiege2 |
d7fa7f39faf5aa3df0526f2b80bdcd111dcc5406 | 27,092 | cpp | C++ | tengine/game/gameserver.cpp | dfk789/CodenameInfinite | aeb88b954b65f6beca3fb221fe49459b75e7c15f | [
"BSD-4-Clause"
] | 2 | 2015-01-02T13:11:04.000Z | 2015-01-20T02:46:15.000Z | tengine/game/gameserver.cpp | dfk789/CodenameInfinite | aeb88b954b65f6beca3fb221fe49459b75e7c15f | [
"BSD-4-Clause"
] | null | null | null | tengine/game/gameserver.cpp | dfk789/CodenameInfinite | aeb88b954b65f6beca3fb221fe49459b75e7c15f | [
"BSD-4-Clause"
] | null | null | null | #include "game.h"
#include <iostream>
#include <fstream>
#include <mtrand.h>
#include <platform.h>
#include <configfile.h>
#include <strutils.h>
#include <tinker/application.h>
#include <tinker/profiler.h>
#include <renderer/renderer.h>
#include <renderer/particles.h>
#include <renderer/dissolver.h>
#... | 26.226525 | 245 | 0.683412 | dfk789 |
d7fb15eacb280cbfc0f7e96aecf4ccc55a46e830 | 31,919 | cpp | C++ | src/main.cpp | DieMaking/SDLGame | 6cdab5814e57fd9f0c082e8eb4e0a829249f5304 | [
"0BSD"
] | null | null | null | src/main.cpp | DieMaking/SDLGame | 6cdab5814e57fd9f0c082e8eb4e0a829249f5304 | [
"0BSD"
] | null | null | null | src/main.cpp | DieMaking/SDLGame | 6cdab5814e57fd9f0c082e8eb4e0a829249f5304 | [
"0BSD"
] | null | null | null | #define SDL_MAIN_HANDLED
#include <ctime>
#include <cstdio>
#include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_image.h>
#ifndef __EMSCRIPTEN__
#include <SDL2/SDL_mixer.h>
#include "../include/easysock/tcp.hpp"
#include "../include/simpleini/SimpleIni.h"
#ifndef NDISC... | 28.023705 | 221 | 0.580313 | DieMaking |
d7fece558723244f5d9fb6358af5e184b9fa6ca1 | 3,705 | hpp | C++ | Axis.SystemBase/services/management/ProcessTime.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.SystemBase/services/management/ProcessTime.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.SystemBase/services/management/ProcessTime.hpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #pragma once
#include "foundation/Axis.SystemBase.hpp"
#include "foundation/date_time/Timestamp.hpp"
#include "foundation/date_time/Timespan.hpp"
namespace axis
{
namespace services
{
namespace management
{
/**********************************************************************************************//**
... | 39.414894 | 104 | 0.397571 | renato-yuzup |
d7ffeecbe128cd74c50e1f18276e4ce33f3dda42 | 6,054 | cpp | C++ | main.cpp | gtalis/drac | 28585fdcf0652f6a4d79221e767e939832ab296f | [
"MIT"
] | 9 | 2015-01-31T17:18:21.000Z | 2021-09-30T21:41:06.000Z | main.cpp | gtalis/drac | 28585fdcf0652f6a4d79221e767e939832ab296f | [
"MIT"
] | null | null | null | main.cpp | gtalis/drac | 28585fdcf0652f6a4d79221e767e939832ab296f | [
"MIT"
] | 6 | 2015-01-10T07:48:54.000Z | 2020-02-26T13:02:47.000Z | #include <stdio.h>
#include <stdlib.h>
#include "Engine/Includes/CGame.h"
#include "Font/font.h"
#define CRD_PILE 0
#define CRD_FOUNDATION 1
#define CRD_RESERVE 2
#define CRD_WASTE 3
SDL_Surface *screen;
SDLFont *font1; // 2 fonts
SDLFont *font2;
CGame Klondike;
void Initializ... | 26.787611 | 217 | 0.644533 | gtalis |
cc006708580fcd674368756253ef1d63829ec43f | 767 | cpp | C++ | src/string.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | 1 | 2020-07-04T01:11:38.000Z | 2020-07-04T01:11:38.000Z | src/string.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | null | null | null | src/string.cpp | ricky26/netlib | f4d86475220ae32f0ab25e83fb8dc004f5f1af60 | [
"BSD-2-Clause"
] | null | null | null | #include "netlib/string.h"
#include <string.h>
#include <cctype>
#ifdef _WIN32
#define strncasecmp strnicmp
#endif
namespace netlib
{
NETLIB_API std::string lowercase(std::string const& _str)
{
std::string ret;
ret.reserve(_str.length());
for(size_t i = 0; i < _str.length(); i++)
ret.push_back(std::tolowe... | 18.707317 | 87 | 0.661017 | ricky26 |
cc03c2435952a35e2ed1dead8bd405c060885212 | 1,858 | cpp | C++ | source/SimpleIniParser/IniHelper.cpp | HamletDuFromage/Simple-INI-Parser | ca427f98dc25620432430c563d9a73534b942c37 | [
"0BSD"
] | null | null | null | source/SimpleIniParser/IniHelper.cpp | HamletDuFromage/Simple-INI-Parser | ca427f98dc25620432430c563d9a73534b942c37 | [
"0BSD"
] | null | null | null | source/SimpleIniParser/IniHelper.cpp | HamletDuFromage/Simple-INI-Parser | ca427f98dc25620432430c563d9a73534b942c37 | [
"0BSD"
] | null | null | null | /*
* SimpleIniParser
* Copyright (c) 2020 Nichole Mattera
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 38.708333 | 141 | 0.681378 | HamletDuFromage |
cc068666861cbcba386a4cac340023af48954261 | 2,253 | hpp | C++ | Krakoa/Source/Platform/OpenGL/OpenGLShader.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | 1 | 2020-04-05T13:37:48.000Z | 2020-04-05T13:37:48.000Z | Krakoa/Source/Platform/OpenGL/OpenGLShader.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | Krakoa/Source/Platform/OpenGL/OpenGLShader.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../../Graphics/Resources/iShader.hpp"
#include <string>
#include <unordered_map>
namespace krakoa::gfx
{
class OpenGLShader : public iShader
{
public:
OpenGLShader(const std::string_view& name, const std::filesystem::path& shaderFilePath);
~OpenGLShader();
void Bind() const override... | 41.722222 | 114 | 0.762539 | KingKiller100 |
cc0904c05c561ad0fa4915eab23237823e684791 | 11,152 | cc | C++ | tensorflow/contrib/persona/kernels/sort/agd_ceph_merge_op.cc | epfl-vlsc/persona-system | 2aad40d908ae63239f5d546a56264922a55b99fc | [
"Apache-2.0"
] | 6 | 2017-08-07T14:05:41.000Z | 2020-02-28T03:57:56.000Z | tensorflow/contrib/persona/kernels/sort/agd_ceph_merge_op.cc | epfl-vlsc/persona-system | 2aad40d908ae63239f5d546a56264922a55b99fc | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/persona/kernels/sort/agd_ceph_merge_op.cc | epfl-vlsc/persona-system | 2aad40d908ae63239f5d546a56264922a55b99fc | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <memory>
#include <utility>
#include <queue>
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/lib/core/threadpool.h"
#include "tensorflow/core/platform/logging.h"
#include "tensor... | 35.858521 | 148 | 0.647597 | epfl-vlsc |
cc0af98ae132bf2b8f6d87d7557df37ca614b5e9 | 1,132 | hpp | C++ | Server/Source/Utils.hpp | deaf80/audiogridder | c688ec21f6d4141308885f725cb05a456b493ec9 | [
"MIT"
] | 1 | 2020-05-06T12:52:45.000Z | 2020-05-06T12:52:45.000Z | Server/Source/Utils.hpp | b00leant/audiogridder | 719ba3b83befa7cb371028c592f4246757dcd31e | [
"MIT"
] | null | null | null | Server/Source/Utils.hpp | b00leant/audiogridder | 719ba3b83befa7cb371028c592f4246757dcd31e | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Andreas Pohl
*/
#ifndef Utils_hpp
#define Utils_hpp
#include "../JuceLibraryCode/JuceHeader.h"
#include "App.hpp"
#if (JUCE_DEBUG && !JUCE_DISABLE_ASSERTIONS)
#define dbgln(M) ... | 32.342857 | 105 | 0.550353 | deaf80 |
cc0e449f7d9ff5e55602fed07d4f90a095c3bf1d | 1,187 | cc | C++ | corev_apu/tb/dpi/msim_helper.cc | alexandremoriceau/cva6 | 5c0dc1971f713c030ea3c9db4d183005e7048598 | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 784 | 2018-02-10T06:07:27.000Z | 2020-06-14T15:43:18.000Z | corev_apu/tb/dpi/msim_helper.cc | alexandremoriceau/cva6 | 5c0dc1971f713c030ea3c9db4d183005e7048598 | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 414 | 2021-06-11T07:22:01.000Z | 2022-03-31T22:06:14.000Z | corev_apu/tb/dpi/msim_helper.cc | alexandremoriceau/cva6 | 5c0dc1971f713c030ea3c9db4d183005e7048598 | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | 239 | 2020-06-17T07:38:08.000Z | 2022-03-30T00:29:11.000Z | // Author: Florian Zaruba
// Description: ModelSim Helper Functions
#include <vpi_user.h>
#include <vector>
#include <string>
#include <string.h>
#include <stdio.h>
// sanitize htif arguments
std::vector<std::string> sanitize_args() {
bool permissive_on = false;
s_vpi_vlog_info info;
if (!vpi_get_vlog_i... | 25.255319 | 89 | 0.563606 | alexandremoriceau |
cc0e7bbff737b596d88db4196c606078f1db2b3f | 3,795 | cpp | C++ | ptgl/GUI/SVGWidget.cpp | tsumehashi/ptgl | 00434830fa6fbc7987513d6bdd9c967ca66a70c5 | [
"Apache-2.0"
] | 1 | 2019-04-06T11:46:02.000Z | 2019-04-06T11:46:02.000Z | ptgl/GUI/SVGWidget.cpp | tsumehashi/ptgl | 00434830fa6fbc7987513d6bdd9c967ca66a70c5 | [
"Apache-2.0"
] | null | null | null | ptgl/GUI/SVGWidget.cpp | tsumehashi/ptgl | 00434830fa6fbc7987513d6bdd9c967ca66a70c5 | [
"Apache-2.0"
] | null | null | null | #include "ptgl/Core/Renderer2D.h"
#include "SVGWidget.h"
#include "thirdparty/Core/nanovg/src/nanovg.h"
namespace ptgl {
namespace gui {
SVGWidget::SVGWidget()
{
svgGraphics2DItem_ = std::make_shared<ptgl::svg::SVGGraphics2DItem>();
ptgl::svg::SVGSubGraphics2DItemFactoryPtr factory = std::make_shared<ptgl::s... | 24.018987 | 154 | 0.652174 | tsumehashi |
cc0ec113f2309ddf371ab992b0b9cc94c6c08396 | 498 | hpp | C++ | images/imagedb/include/cmd/op_sizeup.hpp | jeoygin/gadget | de703b53576eac7d11d625316a46a47e57596dcb | [
"MIT"
] | null | null | null | images/imagedb/include/cmd/op_sizeup.hpp | jeoygin/gadget | de703b53576eac7d11d625316a46a47e57596dcb | [
"MIT"
] | null | null | null | images/imagedb/include/cmd/op_sizeup.hpp | jeoygin/gadget | de703b53576eac7d11d625316a46a47e57596dcb | [
"MIT"
] | null | null | null | #ifndef OP_SIZEUP
#define OP_SIZEUP
#include "operation.hpp"
namespace op {
class SizeupOP : public Operation {
public:
bool init(const std::map<string, string>& config);
bool is_init();
string name() {
return "SizeupOP";
}
private:
int size_fno_ = 3;
... | 19.92 | 72 | 0.544177 | jeoygin |
cc0f23c1b56c71f1f4755b928fe11928ec563b07 | 2,012 | cpp | C++ | Graph/BFS.cpp | linyos/GreekForGeeks-Practice | eaabce3ac9e45a86dfb28f2296129c2016e570bf | [
"MIT"
] | null | null | null | Graph/BFS.cpp | linyos/GreekForGeeks-Practice | eaabce3ac9e45a86dfb28f2296129c2016e570bf | [
"MIT"
] | null | null | null | Graph/BFS.cpp | linyos/GreekForGeeks-Practice | eaabce3ac9e45a86dfb28f2296129c2016e570bf | [
"MIT"
] | null | null | null | #include <string>
#include <map>
#include <stack>
#include<vector>
#include <math.h>
#include <list>
#include <unordered_map>
#include <algorithm>
#include <iostream>
using namespace std;
class Graph
{
int V;
list <int > * adj;
public:
Graph(int V);
void addEdge(int v, int w);
void BFS(int s);
};
Graph::Graph... | 18.62963 | 87 | 0.575547 | linyos |
cc1073f0416b1f13b4487bc814e460ff66eadbb5 | 13,283 | hpp | C++ | DXLib.Net/include/Enums.hpp | Norgerman/Fxxk | a502f0b3ca494fe97190a64d61eec30838879107 | [
"MIT"
] | null | null | null | DXLib.Net/include/Enums.hpp | Norgerman/Fxxk | a502f0b3ca494fe97190a64d61eec30838879107 | [
"MIT"
] | null | null | null | DXLib.Net/include/Enums.hpp | Norgerman/Fxxk | a502f0b3ca494fe97190a64d61eec30838879107 | [
"MIT"
] | null | null | null | #pragma once
// D3D enums for clr
namespace DX
{
namespace Sharp
{
namespace Direct3D
{
public enum class FeatureLevel
{
Level_1_0_Core = 0x1000,
Level_9_1 = 0x9100,
Level_9_2 = 0x9200,
Level_9_3 = 0x9300,
... | 33.374372 | 88 | 0.437702 | Norgerman |
cc1a0484d93abc5d2e80281ab8b116fa6a9614ac | 2,720 | hpp | C++ | src/algorithms/search/interpolation_search.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/algorithms/search/interpolation_search.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/algorithms/search/interpolation_search.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef INTERPOLATION_SEARCH_HPP
#define INTERPOLATION_SEARCH_HPP
// http://www.geeksforgeeks.org/interpolation-search/
// https://en.wikipedia.org/wiki/Interpolation_search
// Given a sorted array of n uniformly distributed values arr[], write a
// function to search for a particular element x in the array.
// Line... | 32.771084 | 79 | 0.610662 | iamantony |
cc1e3a0932ea4e37e23603435c335929a5f51619 | 6,191 | cpp | C++ | XEngine_DownLoad/BTorrent_APPClient/BTorrent_APPClient.cpp | libxengine/xengine_apps | 789057b9919d99a68fc0942194cf6a57635e52a2 | [
"MulanPSL-1.0"
] | null | null | null | XEngine_DownLoad/BTorrent_APPClient/BTorrent_APPClient.cpp | libxengine/xengine_apps | 789057b9919d99a68fc0942194cf6a57635e52a2 | [
"MulanPSL-1.0"
] | null | null | null | XEngine_DownLoad/BTorrent_APPClient/BTorrent_APPClient.cpp | libxengine/xengine_apps | 789057b9919d99a68fc0942194cf6a57635e52a2 | [
"MulanPSL-1.0"
] | null | null | null | #ifdef _WINDOWS
#include <Windows.h>
#include <tchar.h>
#pragma comment(lib,"../../../XEngine/XEngine_SourceCode/Debug/XEngine_BaseLib.lib")
#pragma comment(lib,"../../../XEngine/XEngine_SourceCode/Debug/XEngine_BTorrent.lib")
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <thread>
#include... | 31.586735 | 430 | 0.731223 | libxengine |
cc2ad5d634dc9e56bd9447d7c20480f1b500b1f4 | 235 | cpp | C++ | CodingTest/CodingTest/Tile01_1904.cpp | CorgiMuzi/CodingTest | 45c7050962152decd5ea1b69a0f20c07bf9ab93e | [
"MIT"
] | null | null | null | CodingTest/CodingTest/Tile01_1904.cpp | CorgiMuzi/CodingTest | 45c7050962152decd5ea1b69a0f20c07bf9ab93e | [
"MIT"
] | null | null | null | CodingTest/CodingTest/Tile01_1904.cpp | CorgiMuzi/CodingTest | 45c7050962152decd5ea1b69a0f20c07bf9ab93e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int v[1000000];
int main() {
int N;
cin >> N;
v[0] = 1;
v[1] = 2;
for (int i = 2; i < N; i++) {
v[i] = (v[i - 1] + v[i - 2])%15746;
}
cout << v[N-1];
return 0;
} | 11.75 | 37 | 0.489362 | CorgiMuzi |
cc2c1e69aa46050df23ec96172d696563366e144 | 51 | hpp | C++ | src/boost_spirit_include_classic_typeof.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_spirit_include_classic_typeof.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_spirit_include_classic_typeof.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/spirit/include/classic_typeof.hpp>
| 25.5 | 50 | 0.823529 | miathedev |
cc304e88573581a807106f6014ae21bfd97fcb7e | 329 | cpp | C++ | main.cpp | FortuneCat/cpp-exercise | 4097b12561375564b329e8fdb92935accdb87432 | [
"MIT"
] | null | null | null | main.cpp | FortuneCat/cpp-exercise | 4097b12561375564b329e8fdb92935accdb87432 | [
"MIT"
] | null | null | null | main.cpp | FortuneCat/cpp-exercise | 4097b12561375564b329e8fdb92935accdb87432 | [
"MIT"
] | null | null | null | #include <iostream>
#include "quiz/knight.h"
#include "template/complex.hpp"
#include "datastructure/tree.hpp"
using namespace std;
int main() {
Tree<int> tree;
// cout<<c<<endl;
// Knight knight;
// knight.RunTestFromAllInitPositions();
// Step init = Step(7, 2);
// knight.Traverse(init);
re... | 18.277778 | 43 | 0.647416 | FortuneCat |
cc383025cbce9c1d617073bbb73bc39af60f691e | 29,722 | cpp | C++ | VoxelEngine/Classes/ParticleSystem.cpp | bsy6766/VoxelEngine | d822d8bcc3bf5609bdce2fdc2ef5154994bc23f1 | [
"FTL",
"BSL-1.0",
"Zlib"
] | null | null | null | VoxelEngine/Classes/ParticleSystem.cpp | bsy6766/VoxelEngine | d822d8bcc3bf5609bdce2fdc2ef5154994bc23f1 | [
"FTL",
"BSL-1.0",
"Zlib"
] | null | null | null | VoxelEngine/Classes/ParticleSystem.cpp | bsy6766/VoxelEngine | d822d8bcc3bf5609bdce2fdc2ef5154994bc23f1 | [
"FTL",
"BSL-1.0",
"Zlib"
] | null | null | null | // pch
#include "PreCompiled.h"
#include "ParticleSystem.h"
// voxel
#include "Particle.h"
#include "DataTree.h"
#include "FileSystem.h"
#include "SpriteSheet.h"
#include "Program.h"
#include "ProgramManager.h"
#include "Logger.h"
#include "Config.h"
#include "Quad.h"
#include "Utility.h"
#include "Random.h"
Voxel::... | 26.09482 | 297 | 0.695478 | bsy6766 |
cc3a1ac074d5df69e70ee87580c463f60effcd5c | 3,684 | cpp | C++ | src/test/client_test/main.cpp | caodhuan/CHServer | 823c4a006528a3aa1c88575c499eecda45d9022d | [
"Apache-2.0"
] | 6 | 2017-11-16T06:12:20.000Z | 2021-02-06T06:58:20.000Z | src/test/client_test/main.cpp | caodhuan/CHServer | 823c4a006528a3aa1c88575c499eecda45d9022d | [
"Apache-2.0"
] | null | null | null | src/test/client_test/main.cpp | caodhuan/CHServer | 823c4a006528a3aa1c88575c499eecda45d9022d | [
"Apache-2.0"
] | null | null | null | #ifdef WIN32
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#endif
#include "socket_tcp.h"
#include "event_dispatcher.h"
#include "uv.h"
#include "mysql.h"
#include "log.h"
#include <iostream>
#include <string.h>
#include "session.h"
#include "common.pb.h"
using namespace std;
using namespace CH... | 22.05988 | 76 | 0.600434 | caodhuan |
cc3f929dd4d2da37dae1f74e1b76b06196876139 | 635 | hpp | C++ | ersatz/ClangFormatter.hpp | helkebir/ersatz | e73f74da59e9f228b25c68bc0f9e5f1aa7c63a46 | [
"MIT"
] | null | null | null | ersatz/ClangFormatter.hpp | helkebir/ersatz | e73f74da59e9f228b25c68bc0f9e5f1aa7c63a46 | [
"MIT"
] | null | null | null | ersatz/ClangFormatter.hpp | helkebir/ersatz | e73f74da59e9f228b25c68bc0f9e5f1aa7c63a46 | [
"MIT"
] | null | null | null | //
// Created by Hamza El-Kebir on 1/4/22.
//
#ifndef ERSATZ_CLANGFORMATTER_HPP
#define ERSATZ_CLANGFORMATTER_HPP
#include "Codegen.hpp"
#include <cstdlib>
namespace ers {
class ClangFormatter {
public:
ClangFormatter &dumpFormat(const ::std::string &filePath=".clang-format");
ClangFormatter... | 22.678571 | 96 | 0.683465 | helkebir |
cc411b9797137c774053b712570af730175a610f | 25,640 | cpp | C++ | abserv/abserv/GameObject.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abserv/abserv/GameObject.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | abserv/abserv/GameObject.cpp | pablokawan/ABx | 064d6df265c48c667ce81b0a83f84e5e22a7ff53 | [
"MIT"
] | null | null | null | /**
* Copyright 2017-2020 Stefan Ascher
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... | 31.654321 | 124 | 0.629524 | pablokawan |
cc42f067b519aecf19a6a0727f7e29011bad376c | 11,852 | cpp | C++ | src/Inputs.cpp | neo-bolea/procedurally | 449d583dc09f3779617490b26d4af469b31ec414 | [
"MIT"
] | 4 | 2019-11-19T17:05:44.000Z | 2020-03-30T20:09:53.000Z | src/Inputs.cpp | neo-bolea/procedurally | 449d583dc09f3779617490b26d4af469b31ec414 | [
"MIT"
] | 5 | 2019-12-07T18:07:30.000Z | 2020-03-23T10:47:41.000Z | src/Inputs.cpp | neo-bolea/procedurally | 449d583dc09f3779617490b26d4af469b31ec414 | [
"MIT"
] | null | null | null | #include "Common/Systems/Inputs.h"
#include "Common/Debug.h"
#include "Math/MathExt.h"
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/serialization/vector.hpp>
#include <boo... | 25.543103 | 102 | 0.697013 | neo-bolea |
cc58648e6fe51477c5c5c8efd27e1ab45e963372 | 16,778 | cpp | C++ | src/base/cef/zephyros_cef_linux.cpp | devcxx/zephyros | 3ba2c63c5d11bfab66b896e8e09287e222f645a2 | [
"Unlicense",
"MIT"
] | 11 | 2015-01-02T14:11:58.000Z | 2021-01-29T02:45:17.000Z | src/base/cef/zephyros_cef_linux.cpp | devcxx/zephyros | 3ba2c63c5d11bfab66b896e8e09287e222f645a2 | [
"Unlicense",
"MIT"
] | null | null | null | src/base/cef/zephyros_cef_linux.cpp | devcxx/zephyros | 3ba2c63c5d11bfab66b896e8e09287e222f645a2 | [
"Unlicense",
"MIT"
] | 1 | 2021-03-08T08:07:00.000Z | 2021-03-08T08:07:00.000Z | /*******************************************************************************
* Copyright (c) 2015-2017 Vanamco AG, http://www.vanamco.com
*
* The MIT License (MIT)
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... | 31.776515 | 165 | 0.636905 | devcxx |
cc5bee4e6d1c68627dbcaf2fdbc36beeb44cb65a | 7,173 | cpp | C++ | tests/src/graphs/hl_decomposition_test.cpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | tests/src/graphs/hl_decomposition_test.cpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | tests/src/graphs/hl_decomposition_test.cpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | #include "../../../src/graphs/hl_decomposition.hpp"
#include <gtest/gtest.h>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <random>
#include "../../../src/examples/graph_examples.hpp"
#include "../../../src/graph_generation/random_graph_generation.hpp"
#include "../../../src/range_search/segment... | 37.752632 | 99 | 0.62791 | LukaszSelwa |
7fe21c614bc8f01a171fda245ef1bceb1b878aac | 909 | hh | C++ | src/proto/core/util/String.hh | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | src/proto/core/util/String.hh | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | src/proto/core/util/String.hh | kcpikkt/proto | 2d7458c2ce2f571303de040f660137dc0a1d33de | [
"MIT"
] | null | null | null | #pragma once
#include "proto/core/common.hh"
#include "proto/core/util/StringView.hh"
#include "proto/core/StateCRTP.hh"
#include "proto/core/debug/assert.hh"
#include "proto/core/containers/Array.hh"
#include "proto/core/string.hh"
namespace proto {
struct String : Array<char> {
void ini... | 25.25 | 68 | 0.546755 | kcpikkt |
7fea5e7c64e2906f7a753c170768f2ff792bb1ac | 10,398 | cpp | C++ | libs/Texturize.Sampling/src/CoherentIndex.cpp | Aschratt/Texturize | bba688d1afd60363f03e02d28e642a63845591d6 | [
"MIT"
] | 11 | 2019-05-17T12:23:12.000Z | 2020-11-12T14:03:23.000Z | libs/Texturize.Sampling/src/CoherentIndex.cpp | crud89/Texturize | bba688d1afd60363f03e02d28e642a63845591d6 | [
"MIT"
] | 2 | 2019-04-01T08:37:36.000Z | 2019-04-01T08:49:15.000Z | libs/Texturize.Sampling/src/CoherentIndex.cpp | crud89/Texturize | bba688d1afd60363f03e02d28e642a63845591d6 | [
"MIT"
] | 1 | 2019-06-25T01:04:35.000Z | 2019-06-25T01:04:35.000Z | #include "stdafx.h"
#include <sampling.hpp>
#include <algorithm>
#include <tbb/parallel_for.h>
#include <tbb/blocked_range2d.h>
#include "log2.h"
using namespace Texturize;
///////////////////////////////////////////////////////////////////////////////////////////////////
///// SearchIndex implementation based on... | 39.536122 | 190 | 0.688209 | Aschratt |
7feb2643bdb2933b79b7c49d88350cad9e7103ea | 9,275 | cpp | C++ | src/slam.cpp | AndrewMurtagh/BotmarkV1 | 2965e6072f252ee2338f610857a20a1e66e2b5a7 | [
"CC-BY-4.0"
] | null | null | null | src/slam.cpp | AndrewMurtagh/BotmarkV1 | 2965e6072f252ee2338f610857a20a1e66e2b5a7 | [
"CC-BY-4.0"
] | null | null | null | src/slam.cpp | AndrewMurtagh/BotmarkV1 | 2965e6072f252ee2338f610857a20a1e66e2b5a7 | [
"CC-BY-4.0"
] | null | null | null | /*****************************************************************
*
* This file is part of the Botmark benchmark.
*
* Copyright (c) 2019 Andrew Murtagh, Patrick Lynch,
* and Conor McGinn.
*
* This work is licensed under the "Creative Commons
* (Attribution-NonCommercial-ShareAlike 4.0 International)
* License... | 29.075235 | 127 | 0.643342 | AndrewMurtagh |
7fedbc70b5afc05a2c6763371c208687b84af537 | 1,444 | hxx | C++ | src/rectangle.hxx | tfryett/silhouette | 7d849facccf718adfd063450ae98e9a114585bf0 | [
"Apache-2.0"
] | 1 | 2018-03-26T02:44:14.000Z | 2018-03-26T02:44:14.000Z | src/rectangle.hxx | tfryett/silhouette | 7d849facccf718adfd063450ae98e9a114585bf0 | [
"Apache-2.0"
] | null | null | null | src/rectangle.hxx | tfryett/silhouette | 7d849facccf718adfd063450ae98e9a114585bf0 | [
"Apache-2.0"
] | null | null | null | // This file is a part of silhouette (2D Geometry suite)
//
// Copyright 2015 Taylor Fryett
//
// 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-... | 26.740741 | 75 | 0.703601 | tfryett |
7fefa3c3f442ae6074d47ba00013e49600fcd306 | 16,877 | cc | C++ | rti/topas/rtion/TsRTIonComponents.cc | topasmc/dicom-interface | 48e3d6ca7454644fec184b004090fa58ded0fe87 | [
"MIT"
] | 13 | 2019-08-14T19:36:59.000Z | 2021-09-17T12:58:09.000Z | rti/topas/rtion/TsRTIonComponents.cc | topasmc/dicom-interface | 48e3d6ca7454644fec184b004090fa58ded0fe87 | [
"MIT"
] | 10 | 2019-12-02T23:48:11.000Z | 2021-01-20T15:40:12.000Z | rti/topas/rtion/TsRTIonComponents.cc | topasmc/dicom-interface | 48e3d6ca7454644fec184b004090fa58ded0fe87 | [
"MIT"
] | 7 | 2019-09-30T22:06:58.000Z | 2021-11-09T11:52:41.000Z | // Component for TsRTIonComponents
// This code implementation is the intellectual property of the MGH.
// by Jungwook Shin jshin13@mgh.harvard.edu
/// \file
///
/// This is an user extension for RT-Ion plan (RTIP) and beam treatment record (RTIBTR)
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#... | 30.24552 | 125 | 0.694318 | topasmc |
7ff2ed93fd436e5504f4392fabac62a30ad94dab | 1,244 | hpp | C++ | Code/Engine/Renderer/Sprites/Spritesheet.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | 2 | 2017-10-02T03:18:55.000Z | 2018-11-21T16:30:36.000Z | Code/Engine/Renderer/Sprites/Spritesheet.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | Code/Engine/Renderer/Sprites/Spritesheet.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <string>
#include "Engine/General/Core/EngineCommon.hpp"
#include "Engine/General/Core/Memory/UntrackedAllocator.hpp"
#include "Engine/Renderer/General/Texture.hpp"
#include "Engine/Math/Vector2.hpp"
#include "Engine/Math/IntVector2.hpp"
#include "Engine/Math/AABB2.hpp"
typedef AA... | 32.736842 | 118 | 0.782154 | ntaylorbishop |
7ff681842f1717860b1cf728213fdaf53e2effee | 8,166 | cpp | C++ | Gemastik/FotograferWisuda/spec.cpp | ajisubarkah/Programming-Event | 6cb645ec24cb5c826b41c11334270fd3d0ece474 | [
"MIT"
] | 1 | 2018-09-18T06:28:45.000Z | 2018-09-18T06:28:45.000Z | Gemastik/FotograferWisuda/spec.cpp | ajisubarkah/Programming-Event | 6cb645ec24cb5c826b41c11334270fd3d0ece474 | [
"MIT"
] | null | null | null | Gemastik/FotograferWisuda/spec.cpp | ajisubarkah/Programming-Event | 6cb645ec24cb5c826b41c11334270fd3d0ece474 | [
"MIT"
] | 1 | 2018-09-05T06:34:04.000Z | 2018-09-05T06:34:04.000Z | #include <tcframe/spec.hpp>
#include <bits/stdc++.h>
using namespace tcframe;
using namespace std;
const int MAX_MALE = 1000;
const int MAX_FEMALE = 1000;
class ProblemSpec : public BaseProblemSpec {
protected:
int T;
int A, B, K;
string res;
void InputFormat() {
LINE(A, B, K);
}
v... | 29.912088 | 90 | 0.398482 | ajisubarkah |
7ff702e3d05809ee5dd05bad877b34e3953e1bb5 | 1,582 | hpp | C++ | header/util/log.hpp | LazyKeru/SmellsFishy | 428df9c40bf1e56e1674c97ed3779a17173b5c0a | [
"MIT"
] | 2 | 2022-03-11T16:53:19.000Z | 2022-03-17T13:59:20.000Z | header/util/log.hpp | LazyKeru/SmellsFishy | 428df9c40bf1e56e1674c97ed3779a17173b5c0a | [
"MIT"
] | 5 | 2022-03-12T18:48:06.000Z | 2022-03-22T10:07:49.000Z | header/util/log.hpp | LazyKeru/SmellsFishy | 428df9c40bf1e56e1674c97ed3779a17173b5c0a | [
"MIT"
] | null | null | null | #pragma once
/************************/
/** Includes **/
/************************/
#include <iostream>
#include <filesystem>
namespace Log
{
class CustomLog
{
public:
/**
* @brief Construct a new Custom Log object
*
* @param out The messages that will be outpu... | 31.64 | 111 | 0.475348 | LazyKeru |
7ff777c2f5d20fb3ee5ff42898f9a85a8af9d144 | 1,323 | cpp | C++ | AtCoder/AtCoder Beginner Contest 175/D.cpp | coderanant/Competitive-Programming | 45076af7894251080ac616c9581fbf2dc49604af | [
"MIT"
] | 4 | 2019-06-04T11:03:38.000Z | 2020-06-19T23:37:32.000Z | AtCoder/AtCoder Beginner Contest 175/D.cpp | coderanant/Competitive-Programming | 45076af7894251080ac616c9581fbf2dc49604af | [
"MIT"
] | null | null | null | AtCoder/AtCoder Beginner Contest 175/D.cpp | coderanant/Competitive-Programming | 45076af7894251080ac616c9581fbf2dc49604af | [
"MIT"
] | null | null | null | /*coderanant*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define f1(i, a, b) for (int i = a; i < b; i++)
#define f2(i, a, b) for (int i = a; i >= b; i--)
#define endl '\n'
#define pb push_back
#define gp " "
#define ff first
#define ss second
#define mp make_pair
#define ... | 21 | 48 | 0.474679 | coderanant |
7ff86a686f36b8a693d581692879f5ab21fe6c52 | 2,520 | cpp | C++ | sample/MatrixStack.cpp | simeks/OpenGL-Framework | aea3c5516a6b05e238f8fe3021b4548f1512abfe | [
"MIT"
] | 1 | 2015-05-28T21:56:15.000Z | 2015-05-28T21:56:15.000Z | sample/MatrixStack.cpp | simeks/OpenGL-Framework | aea3c5516a6b05e238f8fe3021b4548f1512abfe | [
"MIT"
] | null | null | null | sample/MatrixStack.cpp | simeks/OpenGL-Framework | aea3c5516a6b05e238f8fe3021b4548f1512abfe | [
"MIT"
] | null | null | null | #include <framework/Common.h>
#include "MatrixStack.h"
#include <framework/RenderDevice.h>
MatrixStack::MatrixStack()
{
// Push our initial state, the stack must always have at least one state.
_states.push(State());
_states.top().model_matrix = matrix::CreateIdentity();
_states.top().view_matrix = matrix::Crea... | 27.692308 | 95 | 0.767857 | simeks |
7ff9f44f9d6d74ee60ff7e047afaec870984a4e8 | 3,012 | cpp | C++ | src/main.cpp | tcbrindle/sudoku | 31d6e96376790634d192f9987de463437767ce96 | [
"MIT"
] | 1 | 2018-06-18T21:00:50.000Z | 2018-06-18T21:00:50.000Z | src/main.cpp | tcbrindle/sudoku | 31d6e96376790634d192f9987de463437767ce96 | [
"MIT"
] | null | null | null | src/main.cpp | tcbrindle/sudoku | 31d6e96376790634d192f9987de463437767ce96 | [
"MIT"
] | 1 | 2020-08-25T05:42:58.000Z | 2020-08-25T05:42:58.000Z | /*
Copyright (c) 2017 Tristan Brindle <tcbrindle@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 use, copy, modify, merge... | 30.734694 | 101 | 0.668991 | tcbrindle |
7ffe07bce40e5e9874531d1d16ffab8900c87b7b | 11,409 | hpp | C++ | src/core/reference/include/ngraph/runtime/reference/grid_sample.hpp | opencv/dldt | c0a2c98a457a08e8853abc18f5bd462169d0b354 | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | src/core/reference/include/ngraph/runtime/reference/grid_sample.hpp | opencv/dldt | c0a2c98a457a08e8853abc18f5bd462169d0b354 | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | src/core/reference/include/ngraph/runtime/reference/grid_sample.hpp | opencv/dldt | c0a2c98a457a08e8853abc18f5bd462169d0b354 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | // Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <algorithm>
#include <array>
#include <cassert>
#include <cfenv>
#include <cmath>
#include "ngraph/shape.hpp"
#include "openvino/op/grid_sample.hpp"
namespace ngraph {
namespace runtime {
namespace reference {
na... | 38.938567 | 125 | 0.575686 | opencv |
7fffbdd18e15c45129a51268331cffb3bce4c071 | 16,879 | cpp | C++ | parser/css/tokenizer.cpp | usadson/WebEngine | 73f436535a70c6c9d7f3a5c565650b6152effd8d | [
"BSD-2-Clause"
] | 3 | 2020-03-28T01:36:44.000Z | 2020-06-19T23:55:08.000Z | parser/css/tokenizer.cpp | usadson/WebEngine | 73f436535a70c6c9d7f3a5c565650b6152effd8d | [
"BSD-2-Clause"
] | null | null | null | parser/css/tokenizer.cpp | usadson/WebEngine | 73f436535a70c6c9d7f3a5c565650b6152effd8d | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (C) 2020 Tristan. All Rights Reserved.
* This file is licensed under the BSD 2-Clause license.
* See the COPYING file for licensing information.
*/
#include "tokenizer.hpp"
#include <array>
#include <iostream>
#include <iterator>
#include <vector>
#include <cmath>
#include "logger.hpp"
#include ... | 26.497645 | 106 | 0.65934 | usadson |
3d057ed5559d0c298577d596f36accf9a3442c34 | 19,081 | cpp | C++ | test/homework_test/tic_tac_toe_test/tic_tac_toe_test.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-leritwo | ea26b6220536c1c7a4de809d2721b2f95529c59d | [
"MIT"
] | null | null | null | test/homework_test/tic_tac_toe_test/tic_tac_toe_test.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-leritwo | ea26b6220536c1c7a4de809d2721b2f95529c59d | [
"MIT"
] | null | null | null | test/homework_test/tic_tac_toe_test/tic_tac_toe_test.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-leritwo | ea26b6220536c1c7a4de809d2721b2f95529c59d | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include"tic_tac_toe.h"
#include"tic_tac_toe_manager.h"
#include"tic_tac_toe_3.h"
#include"tic_tac_toe_4.h"
#include<string>
#include<memory>
TEST_CASE("Verify Test Configuration", "verification") {
... | 26.799157 | 104 | 0.676851 | acc-cosc-1337-spring-2021 |
3d0919e08971cc3c93fe237db8641616bd525c07 | 2,116 | hpp | C++ | tau/TauEngine/include/gl/GLFrameBuffer.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | tau/TauEngine/include/gl/GLFrameBuffer.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | tau/TauEngine/include/gl/GLFrameBuffer.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #pragma once
#pragma warning(push, 0)
#include <GL/glew.h>
#pragma warning(pop)
#include "texture/FrameBuffer.hpp"
class TAU_DLL GLFrameBuffer final : public IFrameBuffer
{
DELETE_COPY(GLFrameBuffer);
private:
GLuint _buffer;
GLenum _modeCache;
public:
GLFrameBuffer(GLuint buffer, const RefDynArray<C... | 45.021277 | 206 | 0.76465 | hyfloac |
3d0d0e9d25835274f9212532a31953129270c2c7 | 4,816 | cpp | C++ | compilingContext.cpp | mar1ljo/AECforWebAssembly | e6aa5ac08eca19a6d269865cd4924b61b972eb06 | [
"MIT"
] | 13 | 2020-09-26T10:09:08.000Z | 2022-02-25T16:54:36.000Z | compilingContext.cpp | FlatAssembler/AECforWebAssembly | b90b7159bef35b6905b00993b3f262785748fa88 | [
"MIT"
] | 12 | 2020-12-20T18:15:58.000Z | 2022-02-16T11:50:02.000Z | compilingContext.cpp | mar1ljo/AECforWebAssembly | e6aa5ac08eca19a6d269865cd4924b61b972eb06 | [
"MIT"
] | 3 | 2021-01-17T13:19:16.000Z | 2021-09-25T16:21:01.000Z | /*
* Some data-classes used by the compiler. There doesn't appear to be
* an easy way to make them follow object-oriented principles, and I
* doubt that would be make the code significantly better.
* I will, before anything else, aim at making the code easy to debug.
* Outputting JSON-es seems, in my experience, t... | 42.245614 | 80 | 0.626869 | mar1ljo |
3d0e8227a2b63317c7405c8a6e8b42dff852a611 | 1,082 | cpp | C++ | snoutlib/settings.cpp | snoutmate/Sea-Defender | d628051d540da953bbc0bbf1f02b9b850b62acc2 | [
"MIT"
] | 1 | 2016-08-18T13:27:50.000Z | 2016-08-18T13:27:50.000Z | snoutlib/settings.cpp | snoutmate/Sea-Defender | d628051d540da953bbc0bbf1f02b9b850b62acc2 | [
"MIT"
] | 1 | 2016-08-18T13:49:21.000Z | 2016-08-18T13:52:21.000Z | snoutlib/settings.cpp | snoutmate/Sea-Defender | d628051d540da953bbc0bbf1f02b9b850b62acc2 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <assert.h>
#include "settings.h"
Settings::Settings(void) :
m_res_x(1024), m_res_y(768),
m_fullscreen(false),
m_fsaa(0), m_vsync(false),
m_mouse_sensitivity(6),
m_fname("")
{
}
Settings::~Settings() // save on exit
{
if (!m_fname.empty())
save_to_file();
}
void Settings::r... | 20.037037 | 59 | 0.627542 | snoutmate |
3d11a95e99b76449394cf3b8436fe84aeb076928 | 370 | cpp | C++ | source/CompScript.cpp | xzrunner/node2 | 457858732d539709551bdb7d53b25635184276b2 | [
"MIT"
] | 1 | 2019-03-20T18:12:06.000Z | 2019-03-20T18:12:06.000Z | source/CompScript.cpp | xzrunner/node2 | 457858732d539709551bdb7d53b25635184276b2 | [
"MIT"
] | null | null | null | source/CompScript.cpp | xzrunner/node2 | 457858732d539709551bdb7d53b25635184276b2 | [
"MIT"
] | null | null | null | #include "node2/CompScript.h"
#include <guard/check.h>
namespace n2
{
const char* const CompScript::TYPE_NAME = "n2_script";
std::unique_ptr<n0::NodeComp> CompScript::Clone(const n0::SceneNode& node) const
{
auto comp = std::make_unique<CompScript>();
return comp;
}
void CompScript::Reload(const n0::SceneNodePtr... | 17.619048 | 80 | 0.72973 | xzrunner |
3d143f6da47acdca45e831f57a423c52f6fac608 | 2,556 | hpp | C++ | include/slightlisp/parser.hpp | ClintLiddick/slight-lisp | 678784579b8b73abef3e47da513faae6f44d17af | [
"MIT"
] | null | null | null | include/slightlisp/parser.hpp | ClintLiddick/slight-lisp | 678784579b8b73abef3e47da513faae6f44d17af | [
"MIT"
] | null | null | null | include/slightlisp/parser.hpp | ClintLiddick/slight-lisp | 678784579b8b73abef3e47da513faae6f44d17af | [
"MIT"
] | null | null | null | #ifndef SLIGHTLISP_PARSER_HPP
#define SLIGHTLISP_PARSER_HPP
#include <algorithm>
#include <cstdlib>
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
#include <slightlisp/syntax_exception.hpp>
#include <slightlisp/value.hpp>
namespace slightlisp
{
using string = std::string;
string replace_... | 22.821429 | 77 | 0.625196 | ClintLiddick |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.