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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06dd7d2a677392f81843b6b1412f05dd15a2bfc3 | 6,053 | cpp | C++ | bse/bsePhysics/Source/bseIsland.cpp | crisbia/bse | d549deda2761d301a67aa838743ec731c82e3c07 | [
"MIT"
] | null | null | null | bse/bsePhysics/Source/bseIsland.cpp | crisbia/bse | d549deda2761d301a67aa838743ec731c82e3c07 | [
"MIT"
] | 3 | 2021-12-02T12:52:35.000Z | 2021-12-19T20:37:35.000Z | bse/bsePhysics/Source/bseIsland.cpp | crisbia/bse | d549deda2761d301a67aa838743ec731c82e3c07 | [
"MIT"
] | null | null | null | #include "bseIsland.h"
#include "bseBody.h"
/*
Islands generation scheme:
for each body do
// skip non dynamic bodies
if !body.isDynamic continue
connectionFound = false
if body.islandID == -1 then
for each connection in body.connections do
// skip connection to non dynamic bodies
... | 29.241546 | 122 | 0.489014 | crisbia |
06dfc0582f793f5f27279eb9d1d563a42e50c592 | 8,670 | hpp | C++ | Code/Tenshi/Compiler/Project.hpp | NotKyon/Tenshi | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | [
"Zlib"
] | null | null | null | Code/Tenshi/Compiler/Project.hpp | NotKyon/Tenshi | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | [
"Zlib"
] | 8 | 2016-11-17T00:39:03.000Z | 2016-11-29T14:46:27.000Z | Code/Tenshi/Compiler/Project.hpp | NotKyon/Tenshi | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | [
"Zlib"
] | null | null | null | #pragma once
#include <Collections/List.hpp>
#include <Core/String.hpp>
#include <Core/Manager.hpp>
#include "Platform.hpp"
#include "Module.hpp"
namespace Tenshi { namespace Compiler {
class MCodeGen;
// Linking target type (executable, dynamic library, static library)
enum class ELinkTarget
{
// No linking... | 24.700855 | 228 | 0.677393 | NotKyon |
06ebf7ec5f14bcaef99d055302d23ecd80862c2d | 643 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/game/ui/TutorialArea.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 1 | 2022-03-18T17:22:09.000Z | 2022-03-18T17:22:09.000Z | include/RED4ext/Scripting/Natives/Generated/game/ui/TutorialArea.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/game/ui/TutorialArea.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 1 | 2022-02-13T01:44:55.000Z | 2022-02-13T01:44:55.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/Scripting/Natives/Generated/ink/WidgetLogicController.hpp>
namespace RED4ext
{
namespace game::ui {
struct TutorialArea : ink::WidgetLogicController
... | 25.72 | 76 | 0.744946 | jackhumbert |
06ec114313a6aa630fbfd8bba17b4652f84bf784 | 623 | cpp | C++ | BAC/exercises/ch10/UVa11121.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch10/UVa11121.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch10/UVa11121.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa11121 Base -2
// Rujia Liu
// 题意:已知正整数和负整数都有惟一的-2进制表示,而且不带符号位。输入整数n,输出它的-2进制表示
// 算法:按照b0, b1, ... 这样的顺序求解,每次对-2取余,然后把余数调整成0和1。
#include<cstdio>
void div_negative(int n, int m, int& q, int& r) {
q = n / m;
r = n - q * m;
while(r < 0) { r -= m; q++; }
}
int b[10];
void solve(int n) {
int k = 0, q, r;
d... | 17.8 | 51 | 0.489567 | Anyrainel |
06f2f84d8bf40c097c7a64c438db1e020f4aa5a3 | 8,357 | cpp | C++ | Modules/PhotoacousticsLib/src/IO/mitkPAIOUtil.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | 1 | 2021-11-20T08:19:27.000Z | 2021-11-20T08:19:27.000Z | Modules/PhotoacousticsLib/src/IO/mitkPAIOUtil.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | Modules/PhotoacousticsLib/src/IO/mitkPAIOUtil.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | #include "mitkPAIOUtil.h"
#include "mitkIOUtil.h"
#include "mitkImageReadAccessor.h"
#include <string>
#include <sstream>
#include <vector>
#include "mitkPAComposedVolume.h"
#include "mitkPASlicedVolumeGenerator.h"
#include "mitkPANoiseGenerator.h"
#include "mitkPAVolumeManipulator.h"
#include <mitkProperties.h>
#in... | 34.676349 | 120 | 0.703123 | wyyrepo |
06f2fdf42fc342f4fabfa0933e662c8482f1adfb | 4,425 | cpp | C++ | src/IME/common/Preference.cpp | KwenaMashamaite/IME | c31a5cdacdc6cb30d3a4e1f4b317e0addd2e6107 | [
"MIT"
] | 9 | 2021-01-11T10:43:58.000Z | 2022-02-17T10:09:10.000Z | src/IME/common/Preference.cpp | KwenaMashamaite/IME | c31a5cdacdc6cb30d3a4e1f4b317e0addd2e6107 | [
"MIT"
] | null | null | null | src/IME/common/Preference.cpp | KwenaMashamaite/IME | c31a5cdacdc6cb30d3a4e1f4b317e0addd2e6107 | [
"MIT"
] | 5 | 2021-03-07T00:32:08.000Z | 2022-02-17T10:15:16.000Z | ////////////////////////////////////////////////////////////////////////////////
// IME - Infinite Motion Engine
//
// Copyright (c) 2020-2021 Kwena Mashamaite (kwena.mashamaite1@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentatio... | 43.382353 | 119 | 0.602938 | KwenaMashamaite |
06f304c1aee397cbff5bbe9e1d0e961873b9eae0 | 443 | cpp | C++ | September LeetCode Challenge/Day_24.cpp | mishrraG/100DaysOfCode | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 13 | 2020-08-10T14:06:37.000Z | 2020-09-24T14:21:33.000Z | September LeetCode Challenge/Day_24.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | null | null | null | September LeetCode Challenge/Day_24.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 1 | 2020-05-31T21:09:14.000Z | 2020-05-31T21:09:14.000Z | class Solution {
public:
char findTheDifference(string s, string t) {
unordered_map<char, int>mp;
for (int i = 0; i < s.length(); i++)
{
mp[s[i]]++;
}
char x;
for (int i = 0; i < t.length(); i++)
{
if (!mp[t[i]]) {
x = t... | 21.095238 | 48 | 0.334086 | mishrraG |
06f36dcb18f781b9264b1e5d2a730ba728f28ac4 | 453 | hpp | C++ | src/block.hpp | marchelzo/motherload | 6e16797d198171c1039105f3af9a4df54bd6c218 | [
"MIT"
] | 1 | 2016-12-09T08:00:01.000Z | 2016-12-09T08:00:01.000Z | src/block.hpp | marchelzo/motherload | 6e16797d198171c1039105f3af9a4df54bd6c218 | [
"MIT"
] | 1 | 2016-12-09T08:03:43.000Z | 2018-11-15T15:04:35.000Z | src/block.hpp | marchelzo/motherload | 6e16797d198171c1039105f3af9a4df54bd6c218 | [
"MIT"
] | null | null | null | #include <cstdlib>
#pragma once
enum class Ore {
COPPER,
TIN,
IRON,
SILVER,
GOLD,
RUBY,
DIAMOND,
ROCK,
NUM_ORE_TYPES,
NONE
};
class Block {
Ore ore;
bool _drilled;
bool _drillable;
public:
Block(bool);
size_t texture();
bool drillable();
bool drille... | 12.243243 | 23 | 0.565121 | marchelzo |
06f52b78d0d958cbf5abc481772fc1658500a3a5 | 194 | cpp | C++ | 2019Homeworks/20191209_2017EndTerm/6.MaxProduct.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | 8 | 2019-10-09T14:33:42.000Z | 2020-12-03T00:49:29.000Z | 2019Homeworks/20191209_2017EndTerm/6.MaxProduct.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | 2019Homeworks/20191209_2017EndTerm/6.MaxProduct.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | #include<iostream> // Same as P4-1/9
using namespace std;
int main(){
int s=0,n,i=2,q,j=2;
for(cin>>n;s+i<=n;s+=i++);
for(i--;j++<=i;cout<<j+((q=i-n+s)?-(j<=-~q):j>i)<<" \n"[j>i]);
} | 27.714286 | 66 | 0.484536 | Guyutongxue |
06f877892408d012f4926c6eb73b5e69a9b85c60 | 3,147 | cpp | C++ | src/RotateDialog.cpp | Helios-vmg/Borderless | 8473a667cedadd08dc5d11967aff60b66773b801 | [
"BSD-2-Clause"
] | 2 | 2016-04-28T10:01:02.000Z | 2016-06-13T20:27:16.000Z | src/RotateDialog.cpp | Helios-vmg/Borderless | 8473a667cedadd08dc5d11967aff60b66773b801 | [
"BSD-2-Clause"
] | 1 | 2016-06-13T20:52:23.000Z | 2016-06-14T00:09:19.000Z | src/RotateDialog.cpp | Helios-vmg/Borderless | 8473a667cedadd08dc5d11967aff60b66773b801 | [
"BSD-2-Clause"
] | 2 | 2017-07-26T13:13:48.000Z | 2017-10-18T13:04:41.000Z | /*
Copyright (c), Helios
All rights reserved.
Distributed under a permissive license. See COPYING.txt for details.
*/
#include "RotateDialog.h"
#include "Misc.h"
#include <cmath>
#include <QMessageBox>
const double log_125 = log(1.25);
RotateDialog::RotateDialog(MainWindow &parent) :
QDialog(parent... | 31.158416 | 106 | 0.698443 | Helios-vmg |
06fb25a25110444df4a5f2b1ec74b8e9ac82351f | 799 | cpp | C++ | Flongo/src/Platform/OpenGL/OpenGLContext.cpp | Hans-Jeiger/Flongo | 2dc99e64cd24ab4190e220f27d1ad4ba45ffd9af | [
"Apache-2.0"
] | null | null | null | Flongo/src/Platform/OpenGL/OpenGLContext.cpp | Hans-Jeiger/Flongo | 2dc99e64cd24ab4190e220f27d1ad4ba45ffd9af | [
"Apache-2.0"
] | null | null | null | Flongo/src/Platform/OpenGL/OpenGLContext.cpp | Hans-Jeiger/Flongo | 2dc99e64cd24ab4190e220f27d1ad4ba45ffd9af | [
"Apache-2.0"
] | null | null | null | #include "flopch.h"
#include "OpenGLContext.h"
#include "Flongo/Core.h"
#include "Flongo/Log.h"
#include <GLFW/glfw3.h>
#include <glad/glad.h>
namespace Flongo
{
OpenGLContext::OpenGLContext(GLFWwindow* windowHandle)
: windowHandle(windowHandle)
{
FLO_CORE_ASSERT(windowHandle, "windowHandle is null!");
}
voi... | 23.5 | 66 | 0.740926 | Hans-Jeiger |
06fc94d0f452cd8af8f9ab9fdfea9384bc463e90 | 9,264 | hh | C++ | vm/vm/main/cached/DictionaryLike-interf.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 379 | 2015-01-02T20:27:33.000Z | 2022-03-26T23:18:17.000Z | vm/vm/main/cached/DictionaryLike-interf.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 81 | 2015-01-08T13:18:52.000Z | 2021-12-21T14:02:21.000Z | vm/vm/main/cached/DictionaryLike-interf.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 75 | 2015-01-06T09:08:20.000Z | 2021-12-17T09:40:18.000Z | class DictionaryLike {
public:
DictionaryLike(RichNode self) : _self(self) {}
DictionaryLike(UnstableNode& self) : _self(self) {}
DictionaryLike(StableNode& self) : _self(self) {}
bool isDictionary(VM vm) {
if (_self.is<Dictionary>()) {
return _self.as<Dictionary>().isDictionary(vm);
} else if (_... | 40.103896 | 201 | 0.635255 | Ahzed11 |
06fe339a1f9eac884c9ca0977b03760bc7013dda | 1,638 | cpp | C++ | windz/net/test/tcpclient_test1.cpp | Crystalwindz/windz | f13ea10187eb1706d1c7b31b34ce1bf458d721bd | [
"MIT"
] | null | null | null | windz/net/test/tcpclient_test1.cpp | Crystalwindz/windz | f13ea10187eb1706d1c7b31b34ce1bf458d721bd | [
"MIT"
] | null | null | null | windz/net/test/tcpclient_test1.cpp | Crystalwindz/windz | f13ea10187eb1706d1c7b31b34ce1bf458d721bd | [
"MIT"
] | null | null | null | #include "windz/base/Thread.h"
#include "windz/base/Util.h"
#include "windz/net/Channel.h"
#include "windz/net/EventLoop.h"
#include "windz/net/TcpClient.h"
#include <iostream>
#include <memory>
#include <vector>
using namespace windz;
int main(int argc, char **argv) {
EventLoop loop;
InetAddr addr("127.0.0.... | 32.76 | 100 | 0.551893 | Crystalwindz |
06ff64fed4b79226cbc69a7c9129b5ce117d3a04 | 4,492 | cpp | C++ | src/implementation/engine/components/RigidDynamicComponent.cpp | LarsHagemann/OrbitEngine | 33e01efaac617c53a701f01729581932fc81e8bf | [
"MIT"
] | null | null | null | src/implementation/engine/components/RigidDynamicComponent.cpp | LarsHagemann/OrbitEngine | 33e01efaac617c53a701f01729581932fc81e8bf | [
"MIT"
] | 2 | 2022-01-18T21:31:01.000Z | 2022-01-20T21:02:09.000Z | src/implementation/engine/components/RigidDynamicComponent.cpp | LarsHagemann/OrbitEngine | 33e01efaac617c53a701f01729581932fc81e8bf | [
"MIT"
] | null | null | null | #include "implementation/engine/components/RigidDynamicComponent.hpp"
#include "implementation/misc/Logger.hpp"
#include <extensions/PxDefaultStreams.h>
#include <extensions/PxRigidActorExt.h>
#include <PxMaterial.h>
#define PX_RELEASE(x) if(x) { x->release(); x = nullptr; }
namespace orbit
{
RigidDynamicCo... | 37.433333 | 120 | 0.633793 | LarsHagemann |
660acd622b4db8af5a7e6b68eb959bc6070d760e | 266 | cpp | C++ | src/gameworld/gameworld/global/activity/impl/activityxingzuoyiji.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/global/activity/impl/activityxingzuoyiji.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/global/activity/impl/activityxingzuoyiji.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #include "activityxingzuoyiji.hpp"
#include "config/logicconfigmanager.hpp"
ActivityXingzuoYiji::ActivityXingzuoYiji(ActivityManager *activity_manager)
: Activity(activity_manager, ACTIVITY_TYPE_XINGZUOYIJI)
{
}
ActivityXingzuoYiji::~ActivityXingzuoYiji()
{
}
| 16.625 | 75 | 0.823308 | mage-game |
6615746073f17a2f1e720c04a6e30c0dd63d1e22 | 239 | cpp | C++ | Atomic/AtUtf8Lit.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 4 | 2019-11-10T21:56:40.000Z | 2021-12-11T20:10:55.000Z | Atomic/AtUtf8Lit.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | null | null | null | Atomic/AtUtf8Lit.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 1 | 2019-11-11T08:38:59.000Z | 2019-11-11T08:38:59.000Z | #include "AtIncludes.h"
#include "AtUtf8Lit.h"
namespace At
{
namespace Utf8
{
namespace Lit
{
Seq const BOM { "\xEF\xBB\xBF", 3 }; // U+FEFF
Seq const Ellipsis { "\xE2\x80\xA6", 3 }; // U+2026
}
}
}
| 14.058824 | 55 | 0.535565 | denisbider |
66166a6b354ad4503185ffc58c129fa07cc8a896 | 219 | cpp | C++ | March Cook-Off 2022/Janmansh and Games.cpp | tarunbisht-24/Codechef-Contests | 8e7dcf69b839d586f4e73bc8183b8963a8cf1d50 | [
"Apache-2.0"
] | 1 | 2022-03-06T18:27:58.000Z | 2022-03-06T18:27:58.000Z | March Cook-Off 2022/Janmansh and Games.cpp | tarunbisht-24/Codechef-Contests | 8e7dcf69b839d586f4e73bc8183b8963a8cf1d50 | [
"Apache-2.0"
] | null | null | null | March Cook-Off 2022/Janmansh and Games.cpp | tarunbisht-24/Codechef-Contests | 8e7dcf69b839d586f4e73bc8183b8963a8cf1d50 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
while(t--)
{
int x,y;
cin>>x>>y;
if((x+y)&1)
cout<<"Jay"<<endl;
else
cout<<"Janmansh"<<endl;
}
return 0;
}
| 11.526316 | 28 | 0.484018 | tarunbisht-24 |
66200635a948bc973c086e585dfc52faaba9fa4f | 333 | cpp | C++ | Luogu/P3811.cpp | XenonWZH/involution | 189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6 | [
"MIT"
] | null | null | null | Luogu/P3811.cpp | XenonWZH/involution | 189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6 | [
"MIT"
] | null | null | null | Luogu/P3811.cpp | XenonWZH/involution | 189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
const int MAXN = 3000000;
int main() {
int n, p;
std::cin >> n >> p;
static long long inv[MAXN + 1];
inv[1] = 1;
puts("1");
for(int i = 2; i <= n; i++) {
inv[i] = ((long long)p - p / i) * inv[p % i] % p;
printf("%lld\n", inv[i]);
}
... | 17.526316 | 57 | 0.456456 | XenonWZH |
66214b60e0a23807b04b06fb548a9118d68dda53 | 6,086 | cpp | C++ | Source/D3D12/DescriptorPoolD3D12.cpp | jayrulez/NRIOOP | 375dd2e4e5a33863a84e6c8166488f1139fb2f74 | [
"MIT"
] | null | null | null | Source/D3D12/DescriptorPoolD3D12.cpp | jayrulez/NRIOOP | 375dd2e4e5a33863a84e6c8166488f1139fb2f74 | [
"MIT"
] | null | null | null | Source/D3D12/DescriptorPoolD3D12.cpp | jayrulez/NRIOOP | 375dd2e4e5a33863a84e6c8166488f1139fb2f74 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 43.784173 | 235 | 0.781794 | jayrulez |
662382512402483c434b97928f9c85ad59240c61 | 5,374 | cpp | C++ | src/common/utils/LegacySupport.cpp | MaximMilashchenko/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 2,313 | 2017-03-24T16:25:28.000Z | 2022-03-31T03:00:30.000Z | src/common/utils/LegacySupport.cpp | MaximMilashchenko/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 952 | 2017-03-28T07:05:58.000Z | 2022-03-30T09:54:02.000Z | src/common/utils/LegacySupport.cpp | MaximMilashchenko/ComputeLibrary | 91ee4d0a9ef128b16936921470a0e3ffef347536 | [
"MIT"
] | 714 | 2017-03-24T22:21:51.000Z | 2022-03-18T19:49:57.000Z | /*
* Copyright (c) 2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 ... | 32.373494 | 121 | 0.673986 | MaximMilashchenko |
662c49c56d4c908d0daabaae80c328f22ebe1bc6 | 1,399 | cpp | C++ | solutions/different-ways-to-add-parentheses/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | solutions/different-ways-to-add-parentheses/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | solutions/different-ways-to-add-parentheses/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-08-30T06:53:23.000Z | 2019-08-30T06:53:23.000Z | #include <iostream>
#include <string>
#include <vector>
using namespace std;
template<typename T>
ostream& operator<<(ostream& out, const vector<T>& v)
{
out << '[';
for (auto it = v.begin(); it != v.end(); ++it) {
if (it != v.begin())
out << ',';
out << *it;
}
out << ']';
return out;
}
class Solution {
... | 18.653333 | 62 | 0.531094 | locker |
662e664e38befd8ae3bd7f798b1092712bb7c15e | 2,035 | hpp | C++ | data_structure.hpp | Pumpkrin/surfer_girl | 98af7692fd81b8fc4e11c85af43adc5d0b951874 | [
"MIT"
] | null | null | null | data_structure.hpp | Pumpkrin/surfer_girl | 98af7692fd81b8fc4e11c85af43adc5d0b951874 | [
"MIT"
] | null | null | null | data_structure.hpp | Pumpkrin/surfer_girl | 98af7692fd81b8fc4e11c85af43adc5d0b951874 | [
"MIT"
] | null | null | null | #ifndef DATA_STRUCTURE_HPP
#define DATA_STRUCTURE_HPP
#include <array>
#include <iostream>
#include "TH1.h"
namespace sf_g {
template<class ... Ts> struct composite : Ts... {
void value() {
int expander[] = {0, ( static_cast<Ts&>(*this).value(), void(), 0)...};
}
};
// -----------------------------... | 25.123457 | 99 | 0.56855 | Pumpkrin |
662ff6c224fc697a3d838e19865d2a3c9ca65c36 | 4,921 | cpp | C++ | Backend/Networking/service.cpp | Gattic/ShmeaDB | ed698dfebde465c9e63a54ab11aac2d6ef311eed | [
"MIT"
] | 3 | 2021-07-31T15:16:39.000Z | 2022-02-07T21:12:36.000Z | Backend/Networking/service.cpp | MeeseeksLookAtMe/ShmeaDB | ed698dfebde465c9e63a54ab11aac2d6ef311eed | [
"MIT"
] | null | null | null | Backend/Networking/service.cpp | MeeseeksLookAtMe/ShmeaDB | ed698dfebde465c9e63a54ab11aac2d6ef311eed | [
"MIT"
] | 1 | 2020-05-28T02:46:43.000Z | 2020-05-28T02:46:43.000Z | // Copyright 2020 Robert Carneiro, Derek Meer, Matthew Tabak, Eric Lujan
//
// 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 ... | 28.947059 | 119 | 0.704328 | Gattic |
663225b9fb2dff4edf74c89bb3e1d5eaefac2d99 | 1,740 | cc | C++ | gui/goods_stats_t.cc | soukouki/simutrans | 758283664349afb5527db470780767abb4db8114 | [
"Artistic-1.0"
] | null | null | null | gui/goods_stats_t.cc | soukouki/simutrans | 758283664349afb5527db470780767abb4db8114 | [
"Artistic-1.0"
] | 1 | 2017-12-05T18:00:56.000Z | 2017-12-05T18:00:56.000Z | gui/goods_stats_t.cc | soukouki/simutrans | 758283664349afb5527db470780767abb4db8114 | [
"Artistic-1.0"
] | null | null | null | /*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
#include "goods_stats_t.h"
#include "../simcolor.h"
#include "../simworld.h"
#include "../bauer/goods_manager.h"
#include "../descriptor/goods_desc.h"
#include "../dataobj/translator.h"
#include "components/gui_bu... | 32.222222 | 146 | 0.737931 | soukouki |
66341ff1311714c78d412efe93749a26ce9f5d89 | 17,134 | cpp | C++ | src/sdk/hl2_csgo/game/missionchooser/layout_system/tilegen_layout_system.cpp | newcommerdontblame/ionlib | 47ca829009e1529f62b2134aa6c0df8673864cf3 | [
"MIT"
] | 51 | 2016-03-18T01:48:07.000Z | 2022-03-21T20:02:02.000Z | src/game/missionchooser/layout_system/tilegen_layout_system.cpp | senny970/AlienSwarm | c5a2d3fa853c726d040032ff2c7b90c8ed8d5d84 | [
"Unlicense"
] | null | null | null | src/game/missionchooser/layout_system/tilegen_layout_system.cpp | senny970/AlienSwarm | c5a2d3fa853c726d040032ff2c7b90c8ed8d5d84 | [
"Unlicense"
] | 26 | 2016-03-17T21:20:37.000Z | 2022-03-24T10:21:30.000Z | //============ Copyright (c) Valve Corporation, All rights reserved. ============
//
// Definitions for the rule- and state-based level generation system.
//
//===============================================================================
#include "MapLayout.h"
#include "Room.h"
#include "tilegen_class_factories.h"
#... | 29.288889 | 195 | 0.701938 | newcommerdontblame |
663d734fe72edfd509c99a8869846b79f2103a59 | 737 | hxx | C++ | Packages/java/nio/file/Watchable.hxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/nio/file/Watchable.hxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | Packages/java/nio/file/Watchable.hxx | Brandon-T/Aries | 4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca | [
"MIT"
] | null | null | null | //
// Watchable.hxx
// Aries
//
// Created by Brandon on 2018-02-25.
// Copyright © 2018 Brandon. All rights reserved.
//
#ifndef Watchable_hxx
#define Watchable_hxx
#include "Array.hxx"
#include "Object.hxx"
namespace java::nio::file
{
using java::lang::Object;
using java::nio::file::WatchEvent;
us... | 21.057143 | 111 | 0.654003 | Brandon-T |
663ec8c79d479b0973d36908c7f196590b3f19d6 | 574 | cpp | C++ | src/Program.cpp | bgorzsony/Kalk | 6d86027cef7d61d589e806d3017c4c4bac0701cd | [
"MIT"
] | null | null | null | src/Program.cpp | bgorzsony/Kalk | 6d86027cef7d61d589e806d3017c4c4bac0701cd | [
"MIT"
] | null | null | null | src/Program.cpp | bgorzsony/Kalk | 6d86027cef7d61d589e806d3017c4c4bac0701cd | [
"MIT"
] | null | null | null | #include "Program.h"
#include "memtrace.h"
size_t Program::cmdPtr = 0;
void Program::addNewCommand(Command * cmd) {
this->commands.push_back(cmd);
}
void Program::setCmdPtr(int v) {
v = v - 2;
if (v < -1) {
throw std::out_of_range("Wrong tag at Goto");
}
cmdPtr = v;
}
void Program::Run() {... | 13.666667 | 49 | 0.559233 | bgorzsony |
66475d3b68ca2c22cbb0824b4ffece85ce5542ff | 189 | hpp | C++ | GameBird.hpp | Xnork/Flappy-Bird---Cpp | f64eada7bd27a6302abf16162795c95afb9c4323 | [
"MIT"
] | 3 | 2020-11-10T16:54:58.000Z | 2021-06-05T13:14:15.000Z | GameBird.hpp | Xnork/Flappy-Bird---Cpp | f64eada7bd27a6302abf16162795c95afb9c4323 | [
"MIT"
] | null | null | null | GameBird.hpp | Xnork/Flappy-Bird---Cpp | f64eada7bd27a6302abf16162795c95afb9c4323 | [
"MIT"
] | null | null | null | #ifndef GAMEBIRD
#define GAMEBIRD
#include <iostream>
#include <SFML/Graphics.hpp>
class GameBird
{
public:
sf::Vector2f acc = sf::Vector2f(0.f,0.f);
float angle = 0.f;
};
#endif | 13.5 | 45 | 0.677249 | Xnork |
66478fc0a7ff8787021f5f64ea1bb45407bb6154 | 182 | hh | C++ | include/device/stm32l1xx/hal/spi_d.hh | no111u3/stm32cclib | 172087dab568f1452755df6e9f8624930fc10396 | [
"Apache-2.0"
] | 24 | 2018-04-26T20:06:31.000Z | 2022-03-19T18:45:57.000Z | include/device/stm32l1xx/hal/spi_d.hh | no111u3/stm32cclib | 172087dab568f1452755df6e9f8624930fc10396 | [
"Apache-2.0"
] | null | null | null | include/device/stm32l1xx/hal/spi_d.hh | no111u3/stm32cclib | 172087dab568f1452755df6e9f8624930fc10396 | [
"Apache-2.0"
] | 9 | 2018-01-22T11:40:53.000Z | 2022-03-23T20:03:19.000Z | #ifndef SPI_D_HH
#define SPI_D_HH
namespace hal {
using spi1 = spi_d<0x40013000>;
using spi2 = spi_d<0x40003800>;
using spi3 = spi_d<0x40003c00>;
}
#endif // SPI_D_HH
| 15.166667 | 35 | 0.686813 | no111u3 |
6648a203f9f473a246049bcdee9a861e93bf0f74 | 129 | cpp | C++ | platforms/posix/src/px4/generic/generic/tone_alarm/ToneAlarmInterface.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | platforms/posix/src/px4/generic/generic/tone_alarm/ToneAlarmInterface.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | platforms/posix/src/px4/generic/generic/tone_alarm/ToneAlarmInterface.cpp | Diksha-agg/Firmware_val | 1efc1ba06997d19df3ed9bd927cfb24401b0fe03 | [
"BSD-3-Clause"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:8b3f8015d6166788ea5c3ad03dfb8f09b860a264c927e806ea111d551fe3ed21
size 2121
| 32.25 | 75 | 0.883721 | Diksha-agg |
664990c2959f6a9675929a52bb9ad8993eee0361 | 586 | hpp | C++ | libs/core/include/fcppt/range/end.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/range/end.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/range/end.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_RANGE_END_HPP_INCLUDED
#define FCPPT_RANGE_END_HPP_INCLUDED
#include <fcppt/config/e... | 18.903226 | 61 | 0.725256 | freundlich |
664c7e1f325db23e84fb2456f456563f2b62094e | 3,169 | cxx | C++ | SRep/MRML/vtkSRepExportPolyDataProperties.cxx | Connor-Bowley/SlicerSkeletalRepresentation | 025eaba50173781c48040e01ccc9a10d8fdb2d56 | [
"Apache-2.0"
] | 2 | 2018-06-29T18:11:22.000Z | 2018-08-14T15:45:05.000Z | SRep/MRML/vtkSRepExportPolyDataProperties.cxx | Connor-Bowley/SlicerSkeletalRepresentation | 025eaba50173781c48040e01ccc9a10d8fdb2d56 | [
"Apache-2.0"
] | 8 | 2018-07-04T00:22:53.000Z | 2018-09-07T03:31:14.000Z | SRep/MRML/vtkSRepExportPolyDataProperties.cxx | Connor-Bowley/SlicerSkeletalRepresentation | 025eaba50173781c48040e01ccc9a10d8fdb2d56 | [
"Apache-2.0"
] | 3 | 2018-06-29T18:11:37.000Z | 2018-09-05T22:57:27.000Z | #include "vtkSRepExportPolyDataProperties.h"
#include <vtkObjectFactory.h>
//----------------------------------------------------------------------
vtkStandardNewMacro(vtkSRepExportPolyDataProperties);
//----------------------------------------------------------------------
void vtkSRepExportPolyDataProperties::Print... | 40.628205 | 105 | 0.592616 | Connor-Bowley |
664e0dc1e65be67a2076ac4bc7b5ed508d3dcacb | 5,593 | cpp | C++ | compiler/llvm/c_src/raw_win32_handle_ostream.cpp | mlwilkerson/lumen | 048df6c0840c11496e2d15aa9af2e4a8d07a6e0f | [
"Apache-2.0"
] | 2,939 | 2019-08-29T16:52:20.000Z | 2022-03-31T05:42:30.000Z | compiler/llvm/c_src/raw_win32_handle_ostream.cpp | mlwilkerson/lumen | 048df6c0840c11496e2d15aa9af2e4a8d07a6e0f | [
"Apache-2.0"
] | 235 | 2019-08-29T23:44:13.000Z | 2022-03-17T11:43:25.000Z | compiler/llvm/c_src/raw_win32_handle_ostream.cpp | mlwilkerson/lumen | 048df6c0840c11496e2d15aa9af2e4a8d07a6e0f | [
"Apache-2.0"
] | 95 | 2019-08-29T19:11:28.000Z | 2022-01-03T05:14:16.000Z | #if defined(_WIN32)
#include "lumen/llvm/raw_win32_handle_ostream.h"
#include "Windows/WindowsSupport.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/ConvertUTF.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Process.h"
raw_win32_handle_ostream::raw_win32_handle_ostream(HANDLE h, bool i... | 27.825871 | 78 | 0.640086 | mlwilkerson |
59438814c22f8f8d7d5566c8df865978069e5cab | 2,768 | hpp | C++ | src/net/MultiplayerPeerNative.hpp | Faless/GDNativeNet | b4760d01ceef09a2ab15d7cab46489323f9d7239 | [
"MIT"
] | 3 | 2019-03-07T21:31:32.000Z | 2020-03-10T21:14:50.000Z | src/net/MultiplayerPeerNative.hpp | Faless/GDNativeNet | b4760d01ceef09a2ab15d7cab46489323f9d7239 | [
"MIT"
] | null | null | null | src/net/MultiplayerPeerNative.hpp | Faless/GDNativeNet | b4760d01ceef09a2ab15d7cab46489323f9d7239 | [
"MIT"
] | 1 | 2020-03-10T21:14:56.000Z | 2020-03-10T21:14:56.000Z | #ifndef MULTIPLAYER_PEER_NATIVE
#define MULTIPLAYER_PEER_NATIVE
#include <Godot.hpp>
#include <Reference.hpp>
#include <MultiplayerPeerGDNative.hpp>
#include <net/godot_net.h>
namespace godot {
namespace net {
/* Forward declare interface functions (PacketPeer) */
godot_error get_packet_bind_mp(void *, const uint8_... | 33.349398 | 102 | 0.781792 | Faless |
5946fdc94e10dbfd0a5c58d24cd4f04eea0be14f | 3,190 | cpp | C++ | sci/libsci/filterproc.cpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 69 | 2019-04-17T04:03:31.000Z | 2021-11-08T10:29:54.000Z | sci/libsci/filterproc.cpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 113 | 2019-04-13T06:46:32.000Z | 2021-11-02T01:45:06.000Z | sci/libsci/filterproc.cpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 46 | 2019-04-17T04:03:36.000Z | 2021-09-26T13:11:37.000Z | #ifndef _PRAGMA_COPYRIGHT_
#define _PRAGMA_COPYRIGHT_
#pragma comment(copyright, "%Z% %I% %W% %D% %T%\0")
#endif /* _PRAGMA_COPYRIGHT_ */
/****************************************************************************
* Copyright (c) 2008, 2010 IBM Corporation.
* All rights reserved. This program and the accompanying ma... | 19.813665 | 87 | 0.619749 | hongsenliu |
594b18824959e5ef5ba9bc20d987098e72a21400 | 1,768 | cpp | C++ | Projects/AsteroidGame/Engine.cpp | TywyllSoftware/TywRenderer | 2da2ea2076d4311488b8ddb39c2fec896c98378a | [
"Unlicense"
] | 11 | 2016-11-15T20:06:19.000Z | 2021-03-31T01:04:01.000Z | Projects/AsteroidGame/Engine.cpp | TywyllSoftware/TywRenderer | 2da2ea2076d4311488b8ddb39c2fec896c98378a | [
"Unlicense"
] | 1 | 2016-11-06T23:53:05.000Z | 2016-11-07T08:06:07.000Z | Projects/AsteroidGame/Engine.cpp | TywyllSoftware/TywRenderer | 2da2ea2076d4311488b8ddb39c2fec896c98378a | [
"Unlicense"
] | 2 | 2017-09-03T11:18:46.000Z | 2019-03-10T06:27:49.000Z | #include "Engine.h"
//Renderer Includes
#include "Renderer.h"
//Event Manager
#include "EventManager.h"
//SceneManager
#include "SceneManager.h"
//Other includes
#include <string>
Engine::Engine() :m_bInitialized(false)
{
m_strApplicationName = "Set name for application";
}
Engine::~Engine()
{
Shutdown();
}
... | 18.040816 | 139 | 0.738688 | TywyllSoftware |
59511cd65b3f9e5c8f5c180ae9ea2048f7cc073c | 33,675 | cxx | C++ | src/DataLoaderDTU.cxx | Eruvae/data_loaders | a3a74f313be6b6fcf0c142c104ee19fd88b37e38 | [
"MIT"
] | 7 | 2020-03-17T13:18:49.000Z | 2022-03-03T17:34:16.000Z | src/DataLoaderDTU.cxx | Eruvae/data_loaders | a3a74f313be6b6fcf0c142c104ee19fd88b37e38 | [
"MIT"
] | null | null | null | src/DataLoaderDTU.cxx | Eruvae/data_loaders | a3a74f313be6b6fcf0c142c104ee19fd88b37e38 | [
"MIT"
] | 1 | 2021-09-22T12:10:06.000Z | 2021-09-22T12:10:06.000Z | #include "data_loaders/DataLoaderDTU.h"
//loguru
#define LOGURU_REPLACE_GLOG 1
#include <loguru.hpp>
//configuru
#define CONFIGURU_WITH_EIGEN 1
#define CONFIGURU_IMPLICIT_CONVERSIONS 1
#include <configuru.hpp>
using namespace configuru;
//cnpy
#include "cnpy.h"
#include <opencv2/core/eigen.hpp>
//my stuff
#includ... | 35.559662 | 190 | 0.586607 | Eruvae |
595508697faace165fb9f47e9acd6df3f26d71c5 | 13,262 | cpp | C++ | src/types.cpp | AmkG/hl | 8695e75389254fe881a6067ecebc70219d7dc7ff | [
"MIT"
] | 2 | 2015-11-05T01:16:28.000Z | 2021-12-20T04:30:08.000Z | src/types.cpp | AmkG/hl | 8695e75389254fe881a6067ecebc70219d7dc7ff | [
"MIT"
] | null | null | null | src/types.cpp | AmkG/hl | 8695e75389254fe881a6067ecebc70219d7dc7ff | [
"MIT"
] | null | null | null | #include "all_defines.hpp"
#include "types.hpp"
#include "processes.hpp"
#include "executors.hpp"
#include "history.hpp"
#include <iostream>
/*-----------------------------------------------------------------------------
Cons
-----------------------------------------------------------------------------*/
Object::ref... | 25.552987 | 95 | 0.583622 | AmkG |
5956bdc5c76cb1fc482645443a7209f133144427 | 693 | cpp | C++ | EngineAlpha/EngineAlpha/EngineAlpha/Core/Scene.cpp | JFrap/Engine-Alpha | 9aac8ed609881ee62f0ec22f72331e8d23b632e7 | [
"MIT"
] | 1 | 2018-10-06T15:33:06.000Z | 2018-10-06T15:33:06.000Z | EngineAlpha/EngineAlpha/EngineAlpha/Core/Scene.cpp | JFrap/Engine-Alpha | 9aac8ed609881ee62f0ec22f72331e8d23b632e7 | [
"MIT"
] | 7 | 2019-02-24T08:50:30.000Z | 2019-03-02T15:41:01.000Z | EngineAlpha/EngineAlpha/EngineAlpha/Core/Scene.cpp | JFrap/Engine-Alpha | 9aac8ed609881ee62f0ec22f72331e8d23b632e7 | [
"MIT"
] | 2 | 2019-02-22T21:10:00.000Z | 2019-02-24T08:01:33.000Z | #include "Scene.h"
namespace alpha {
Scene::Scene() {
}
void Scene::AddGameObject(GameObject &object) {
m_gameObjects.push_back(&object);
}
void Scene::UpdateGameObjects(float dt) {
for (size_t i = 0; i < m_gameObjects.size(); i++) {
if (m_gameObjects[i])
m_gameObjects[i]->Update(dt);
else
m_... | 21 | 107 | 0.689755 | JFrap |
595f49945b7c47530cfa7d8dd3069ca79db217e6 | 988 | cpp | C++ | leetcodes/RotateImage.cpp | DaechurJeong/Private_Proj | 66eec4d22372166af7f7643a9b1307ca7e5ce21a | [
"MIT"
] | null | null | null | leetcodes/RotateImage.cpp | DaechurJeong/Private_Proj | 66eec4d22372166af7f7643a9b1307ca7e5ce21a | [
"MIT"
] | null | null | null | leetcodes/RotateImage.cpp | DaechurJeong/Private_Proj | 66eec4d22372166af7f7643a9b1307ca7e5ce21a | [
"MIT"
] | 2 | 2020-04-21T23:52:31.000Z | 2020-04-24T13:37:28.000Z | #include <iostream>
#include <vector>
void rotate(std::vector<std::vector<int>>& matrix) {
int size = (int)matrix.size();
for (int i = 0; i < size / 2; ++i)
{
for (int j = i; j < size - 1 - i; ++j)
{
int tmp = matrix[i][j];
matrix[i][j] = matrix[size - 1 - j][i];
matrix[size - 1 - j][i] = matrix[size... | 20.583333 | 64 | 0.538462 | DaechurJeong |
596221e05ebadf598879c2268a826139fb3ed001 | 942 | hpp | C++ | engine/include/components/component.hpp | Eduardolimr/JogoIndividual | 8671dcf2622e31df91802b7390ed0e2be84ca574 | [
"MIT"
] | 2 | 2017-03-31T17:18:45.000Z | 2017-05-15T19:19:12.000Z | engine/include/components/component.hpp | Eduardolimr/JogoIndividual | 8671dcf2622e31df91802b7390ed0e2be84ca574 | [
"MIT"
] | 4 | 2018-06-24T00:39:05.000Z | 2018-07-03T21:55:02.000Z | engine/include/components/component.hpp | Eduardolimr/JogoIndividual | 8671dcf2622e31df91802b7390ed0e2be84ca574 | [
"MIT"
] | 6 | 2017-04-03T00:12:32.000Z | 2019-01-05T14:36:22.000Z | #ifndef __ENGINE_COMPONENTS_COMPONENT__
#define __ENGINE_COMPONENTS_COMPONENT__
#include "gameobject.hpp"
namespace engine {
class Component {
friend bool GameObject::add_component(Component & component);
public:
enum class State {
enabled,
disabled,
invalid
};
Component() :... | 22.428571 | 69 | 0.63482 | Eduardolimr |
5965a4d927773765a1a0b7bd5b6a726665ed4914 | 815 | cpp | C++ | Top 20 DP gfg/egg-dropping.cpp | Pradyuman7/AwesomeDataStructuresAndAlgorithms | 6d995c7a3ce2a227733b12b1749de647c5172e8e | [
"MIT"
] | 7 | 2018-11-15T07:51:21.000Z | 2020-03-20T04:31:33.000Z | Top 20 DP gfg/egg-dropping.cpp | Pradyuman7/AwesomeDataStructuresAndAlgorithms | 6d995c7a3ce2a227733b12b1749de647c5172e8e | [
"MIT"
] | null | null | null | Top 20 DP gfg/egg-dropping.cpp | Pradyuman7/AwesomeDataStructuresAndAlgorithms | 6d995c7a3ce2a227733b12b1749de647c5172e8e | [
"MIT"
] | 3 | 2018-11-15T06:39:53.000Z | 2021-07-20T02:09:18.000Z | #include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
int e[100][100];
int E(int o,int n,int k)
{
//usleep(500000);
// cout<<"Checking for : n = "<<n<<" and k = "<<k<<endl;
int min=INT_MAX;
if(e[n][k]!=-1)
return e[n][k];
if(n==0||k==0)
{
return 0;
}
// if(n==1)
// return 1;
if(k==1)
retur... | 10.584416 | 102 | 0.442945 | Pradyuman7 |
596bfcad01e09452c583978a1d27a05ccbbf5426 | 6,098 | cpp | C++ | src/cge/cge/ws_server.cpp | UMU618/liuguang | 3a5e9db8dad759c30b307223c85e0a01f09a88bd | [
"Apache-2.0"
] | 2 | 2021-08-07T10:49:17.000Z | 2022-03-30T06:40:12.000Z | src/cge/cge/ws_server.cpp | sdgdsffdsfff/liuguang | 3ec7d3c9f9fd75fa614009a99c4ecdd08ff321bc | [
"Apache-2.0"
] | null | null | null | src/cge/cge/ws_server.cpp | sdgdsffdsfff/liuguang | 3ec7d3c9f9fd75fa614009a99c4ecdd08ff321bc | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020-present Ksyun
*
* 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... | 26.171674 | 80 | 0.631519 | UMU618 |
596fd110d5a9c88cd5826fa13c024440585ffc5c | 4,050 | cc | C++ | vowpalwabbit/config/options.cc | hex-plex/AutoMLScreenExercise | 93a58e496f584bcc4cb35b8d6280d11605a695d6 | [
"BSD-3-Clause"
] | 1 | 2015-11-12T06:11:44.000Z | 2015-11-12T06:11:44.000Z | vowpalwabbit/config/options.cc | chrinide/vowpal_wabbit | 40e1fef676ca6a461d71cf0631ab5c63d1af5d8a | [
"BSD-3-Clause"
] | null | null | null | vowpalwabbit/config/options.cc | chrinide/vowpal_wabbit | 40e1fef676ca6a461d71cf0631ab5c63d1af5d8a | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#include "config/options.h"
#include "config/option_group_definition.h"
#include "config/option.h"
#include <algorithm>
#... | 34.913793 | 119 | 0.747407 | hex-plex |
5972d8993df633d4bca13453a18a81bfe662bc06 | 2,569 | hpp | C++ | C++/include/MNRLUpCounter.hpp | tjt7a/mnrl | 0e0bcefe67b51a6084c072501a2f4495c0cedb32 | [
"BSD-3-Clause"
] | 8 | 2017-06-06T19:55:20.000Z | 2021-11-14T16:55:43.000Z | C++/include/MNRLUpCounter.hpp | tjt7a/mnrl | 0e0bcefe67b51a6084c072501a2f4495c0cedb32 | [
"BSD-3-Clause"
] | null | null | null | C++/include/MNRLUpCounter.hpp | tjt7a/mnrl | 0e0bcefe67b51a6084c072501a2f4495c0cedb32 | [
"BSD-3-Clause"
] | 4 | 2017-08-03T18:06:18.000Z | 2021-06-23T18:22:23.000Z | // Kevin Angstadt
// angstadt {at} umich.edu
//
// MNRLUpCounter Object
#ifndef MNRLUPCOUNTER_HPP
#define MNRLUPCOUNTER_HPP
#include <string>
#include <utility>
#include <vector>
#include <map>
#include "MNRLDefs.hpp"
#include "MNRLNode.hpp"
#include "MNRLReportId.hpp"
namespace MNRL {
class MNRLUpCounter : public... | 20.070313 | 84 | 0.668743 | tjt7a |
597309c27f9b3bfb03eb3e308f90e84dbc6841cb | 5,704 | cpp | C++ | oshgui/Drawing/OpenGL/OpenGLTextureTarget.cpp | sdkabuser/DEADCELL-CSGO | dfcd31394c5348529b3c098640466db136b89e0c | [
"MIT"
] | 506 | 2019-03-16T08:34:47.000Z | 2022-03-29T14:08:59.000Z | OSHGui/Drawing/OpenGL/OpenGLTextureTarget.cpp | EternityX/oshgui-deadcell | 7c565ba7e941ec00cf9f4a2d7639eb8a363a3e9e | [
"MIT"
] | 124 | 2019-03-17T02:54:57.000Z | 2021-03-29T01:51:05.000Z | OSHGui/Drawing/OpenGL/OpenGLTextureTarget.cpp | EternityX/oshgui-deadcell | 7c565ba7e941ec00cf9f4a2d7639eb8a363a3e9e | [
"MIT"
] | 219 | 2019-03-16T21:39:01.000Z | 2022-03-30T08:59:24.000Z | #include <GL/glew.h>
#include "OpenGLTextureTarget.hpp"
#include "OpenGLRenderer.hpp"
#include "OpenGLTexture.hpp"
namespace OSHGui
{
namespace Drawing
{
const float OpenGLTextureTarget::DefaultSize = 128.0f;
//---------------------------------------------------------------------------
//Constructor
//------... | 31.340659 | 147 | 0.545757 | sdkabuser |
597813da472a1863f0d0b6aec8459c7d41afd534 | 635 | hpp | C++ | SOLVER/src/preloop/nr_field/LocalizedNrFieldPointwise.hpp | chaindl/AxiSEM-3D | 0251f301c79c676fb37792209d6e24f107773b3d | [
"MIT"
] | null | null | null | SOLVER/src/preloop/nr_field/LocalizedNrFieldPointwise.hpp | chaindl/AxiSEM-3D | 0251f301c79c676fb37792209d6e24f107773b3d | [
"MIT"
] | null | null | null | SOLVER/src/preloop/nr_field/LocalizedNrFieldPointwise.hpp | chaindl/AxiSEM-3D | 0251f301c79c676fb37792209d6e24f107773b3d | [
"MIT"
] | null | null | null | //
// LocalizedNrField.hpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 3/14/20.
// Copyright © 2020 Kuangdai Leng. All rights reserved.
//
// base class of Nr(s,z)
#ifndef LocalizedNrFieldPointwise_hpp
#define LocalizedNrFieldPointwise_hpp
#include "LocalizedNrField.hpp"
class LocalizedNr;
class LocalizedNr... | 21.166667 | 72 | 0.724409 | chaindl |
597c6b9aef5891ec0d6aa64ea1d757e469d937b7 | 471 | cxx | C++ | src/scenes/scene.cxx | taworn/tankman | c2662fcbc966c5897733ade524c3a3ee8f8100bf | [
"MIT"
] | null | null | null | src/scenes/scene.cxx | taworn/tankman | c2662fcbc966c5897733ade524c3a3ee8f8100bf | [
"MIT"
] | null | null | null | src/scenes/scene.cxx | taworn/tankman | c2662fcbc966c5897733ade524c3a3ee8f8100bf | [
"MIT"
] | null | null | null | /**
* @file scene.cxx
* @desc Base game scene module.
*/
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <SDL_mixer.h>
#include "../game.hxx"
#include "scene.hxx"
Scene::~Scene()
{
SDL_Log("Scene::~Scene()");
}
Scene::Scene()
{
SDL_Log("Scene::Scene()");
}
bool Scene::... | 14.71875 | 50 | 0.609342 | taworn |
59884bc98e70f934e01505b0567b684f1bd99435 | 1,027 | cpp | C++ | src/fifo.cpp | mdclyburn/rfm69hcw | e8f268a07666567037c9f30309c0a9a0d392b61e | [
"BSD-3-Clause"
] | null | null | null | src/fifo.cpp | mdclyburn/rfm69hcw | e8f268a07666567037c9f30309c0a9a0d392b61e | [
"BSD-3-Clause"
] | null | null | null | src/fifo.cpp | mdclyburn/rfm69hcw | e8f268a07666567037c9f30309c0a9a0d392b61e | [
"BSD-3-Clause"
] | null | null | null | #include "fifo.h"
namespace mardev::rfm69
{
void read_fifo(uint8_t* const buffer)
{
uint8_t i = 0;
while(!fifo_is_empty())
{
buffer[i++] = read(registers::FIFO);
}
return;
}
uint8_t read_fifo(uint8_t* const buffer,
const uint8_... | 21.851064 | 67 | 0.493671 | mdclyburn |
598a89796869177762430ea15e462818ece7f367 | 2,315 | cc | C++ | src/ui/SDL2/movies/fm2/record.cc | MrKOSMOS/ANESE | 8ae814d615479b1496c98033a1f5bc4da5921c6f | [
"MIT"
] | 349 | 2017-11-15T22:51:00.000Z | 2022-03-21T13:43:57.000Z | src/ui/SDL2/movies/fm2/record.cc | MrKOSMOS/ANESE | 8ae814d615479b1496c98033a1f5bc4da5921c6f | [
"MIT"
] | 12 | 2018-08-28T21:38:29.000Z | 2021-12-11T16:24:36.000Z | src/ui/SDL2/movies/fm2/record.cc | MrKOSMOS/ANESE | 8ae814d615479b1496c98033a1f5bc4da5921c6f | [
"MIT"
] | 28 | 2018-06-10T07:31:13.000Z | 2022-03-21T10:54:26.000Z | #include "record.h"
#include "nes/joy/controllers/standard.h"
#include <cassert>
#include <cstdio>
#include <cstring>
FM2_Record::~FM2_Record() {
if (this->own_file) fclose(this->file);
}
FM2_Record::FM2_Record() {
memset(&this->joy, 0, sizeof this->joy);
this->own_file = false;
this->file = nullptr;
th... | 21.635514 | 77 | 0.587473 | MrKOSMOS |
5991715fffaf08c76cdd149c62840668c4833544 | 415 | cpp | C++ | oadrtest/oadrtest/tests/scheduler/JobSlow.cpp | beroset/OpenADR-VEN-Library | 16546464fe1dc714a126474aaadf75483ec9cbc6 | [
"Apache-2.0"
] | 12 | 2016-09-21T19:07:13.000Z | 2021-12-13T06:17:36.000Z | oadrtest/oadrtest/tests/scheduler/JobSlow.cpp | beroset/OpenADR-VEN-Library | 16546464fe1dc714a126474aaadf75483ec9cbc6 | [
"Apache-2.0"
] | 3 | 2020-11-09T08:25:40.000Z | 2021-04-12T10:49:39.000Z | oadrtest/oadrtest/tests/scheduler/JobSlow.cpp | beroset/OpenADR-VEN-Library | 16546464fe1dc714a126474aaadf75483ec9cbc6 | [
"Apache-2.0"
] | 12 | 2018-06-10T10:52:56.000Z | 2020-12-08T15:47:13.000Z | //
// Created by dupes on 12/9/15.
//
#include "JobSlow.h"
JobSlow::JobSlow(MockGlobalTime *globalTime) :
m_globalTime(globalTime)
{
}
/********************************************************************************/
JobSlow::~JobSlow()
{
}
/***************************************************************... | 16.6 | 82 | 0.387952 | beroset |
599f874a59e2936cc96c2b27582498ddff6eaaa0 | 2,713 | hpp | C++ | src/sglib/mappers/PairedReadMapper.hpp | BenJWard/sg | 397924c8346981a6d4726c9cac7bc9c1b623c6fb | [
"MIT"
] | null | null | null | src/sglib/mappers/PairedReadMapper.hpp | BenJWard/sg | 397924c8346981a6d4726c9cac7bc9c1b623c6fb | [
"MIT"
] | null | null | null | src/sglib/mappers/PairedReadMapper.hpp | BenJWard/sg | 397924c8346981a6d4726c9cac7bc9c1b623c6fb | [
"MIT"
] | null | null | null | //
// Created by Bernardo Clavijo (EI) on 12/05/2018.
//
#ifndef BSG_PAIREDREADMAPPER_HPP
#define BSG_PAIREDREADMAPPER_HPP
#include <map>
#include <fstream>
#include "sglib/types/MappingTypes.hpp"
#include "sglib/factories/KMerIDXFactory.h"
#include "sglib/readers/SequenceGraphReader.h"
#include "sglib/SMR.h"
#inclu... | 35.697368 | 201 | 0.736454 | BenJWard |
59a3ed513c38ffda9a70045f8f21852ffc1c77b1 | 2,494 | cpp | C++ | libraries/cor_cocos2dx_mruby_interface/sources/mruby_script_engine.cpp | rmake/cor-engine | d8920325db490d19dc8c116ab8e9620fe55e9975 | [
"MIT"
] | 4 | 2015-01-13T09:55:02.000Z | 2016-09-10T03:42:23.000Z | libraries/cor_cocos2dx_mruby_interface/sources/mruby_script_engine.cpp | rmake/cor-engine | d8920325db490d19dc8c116ab8e9620fe55e9975 | [
"MIT"
] | null | null | null | libraries/cor_cocos2dx_mruby_interface/sources/mruby_script_engine.cpp | rmake/cor-engine | d8920325db490d19dc8c116ab8e9620fe55e9975 | [
"MIT"
] | 2 | 2015-01-22T02:30:29.000Z | 2021-05-10T06:56:49.000Z | #include "mruby_script_engine.h"
namespace cor
{
namespace cocos2dx_mruby_interface
{
struct MrubyScriptEngineItnl
{
CocosRefTable object_table;
mruby_interface::MrubyState mrb;
};
MrubyScriptEngine::MrubyScriptEngine() : itnl(new MrubyScriptEng... | 23.528302 | 84 | 0.526063 | rmake |
59a615de4ac81e6f0bd3c62c23e17755753754cd | 3,119 | cpp | C++ | src/system.cpp | yunik1004/vcpmp | 6a17e44d2d140334215faa692db6655adacce2c8 | [
"MIT"
] | null | null | null | src/system.cpp | yunik1004/vcpmp | 6a17e44d2d140334215faa692db6655adacce2c8 | [
"MIT"
] | null | null | null | src/system.cpp | yunik1004/vcpmp | 6a17e44d2d140334215faa692db6655adacce2c8 | [
"MIT"
] | null | null | null | #include "system.hpp"
#include <iostream>
#define ARCH_X86 "x86"
#define ARCH_X64 "x64"
#define ARCH_ARM "arm"
#define ARCH_ARM64 "arm64"
#define ARCH_CURRENT "current"
#define OS_WINDOWS "windows"
#define OS_LINUX "linux"
#define OS_DARWIN "osx"
#define OS_UWP "uwp"
#define LINK_DYNAMIC "dynamic"
#define LINK_STATI... | 27.121739 | 127 | 0.612376 | yunik1004 |
59b031457ba8dcbacb65a4611d193ff41677c658 | 168 | hpp | C++ | libvmod/include/vmod/sf/fs/fs_FileSystem.hpp | MarioPossamato/vax | c40f0f9740643003e02fa9da6e0e986695b87ff2 | [
"MIT"
] | 6 | 2022-03-23T23:26:04.000Z | 2022-03-27T06:33:22.000Z | libvmod/include/vmod/sf/fs/fs_FileSystem.hpp | MarioPossamato/vax | c40f0f9740643003e02fa9da6e0e986695b87ff2 | [
"MIT"
] | null | null | null | libvmod/include/vmod/sf/fs/fs_FileSystem.hpp | MarioPossamato/vax | c40f0f9740643003e02fa9da6e0e986695b87ff2 | [
"MIT"
] | 6 | 2022-03-25T22:56:04.000Z | 2022-03-26T09:32:08.000Z |
#pragma once
#include <switch.h>
namespace vmod::sf::fs {
Result Initialize();
void Finalize();
Result OpenSdCardFileSystem(FsFileSystem &out_sd_fs);
} | 14 | 57 | 0.690476 | MarioPossamato |
59bb2db2c476de6bde860e3910bc3bea5bed64fa | 3,818 | cpp | C++ | ChipsEninge/02_Script/ChipsSystem/BasicFrame/GameObject.cpp | jerrypoiu/DX11_ChipsEngine2021 | a558fb0013259a380d68b66142fc48b575208980 | [
"MIT"
] | 1 | 2021-01-25T11:38:21.000Z | 2021-01-25T11:38:21.000Z | ChipsEninge/02_Script/ChipsSystem/BasicFrame/GameObject.cpp | jerrypoiu/ChipsEngine | a558fb0013259a380d68b66142fc48b575208980 | [
"MIT"
] | null | null | null | ChipsEninge/02_Script/ChipsSystem/BasicFrame/GameObject.cpp | jerrypoiu/ChipsEngine | a558fb0013259a380d68b66142fc48b575208980 | [
"MIT"
] | null | null | null | #include "ChipsSystem/BasicFrame/Scene.h"
#include "ChipsSystem/BasicFrame/AComponent.h"
#include "ChipsSystem/BasicFrame/GameObject.h"
#include "ChipsSystem/BasicFrame/Application.h"
#include "ChipsSystem/Components/BaiscComponents/Transform.h"
#include "ChipsSystem/Components/BaiscComponents/Rigidbody.h"
#include "C... | 21.942529 | 114 | 0.673389 | jerrypoiu |
59bcd6ce5d8597e533a44861452fb7fe45b18cbc | 381 | cpp | C++ | solutions/683.k-empty-slots.285439527.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/683.k-empty-slots.285439527.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/683.k-empty-slots.285439527.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
int kEmptySlots(vector<int> &bulbs, int k) {
set<int> s;
for (int i = 0; i < bulbs.size(); i++) {
int x = bulbs[i];
auto it = s.upper_bound(x);
if (it != s.end() && *it - x == k + 1)
return i + 1;
if (it != s.begin() && x - *prev(it) == k + 1)
... | 21.166667 | 52 | 0.44357 | satu0king |
59c0d81cfdc6dd66f38ad87d10c0b02d6146d707 | 1,514 | cpp | C++ | src/lang/expr/throwNode.cpp | dmcdougall/occa | 4cc784e86459c01c8821da0a02eea3ad4fb36ef5 | [
"MIT"
] | null | null | null | src/lang/expr/throwNode.cpp | dmcdougall/occa | 4cc784e86459c01c8821da0a02eea3ad4fb36ef5 | [
"MIT"
] | null | null | null | src/lang/expr/throwNode.cpp | dmcdougall/occa | 4cc784e86459c01c8821da0a02eea3ad4fb36ef5 | [
"MIT"
] | null | null | null | #include <occa/lang/expr/throwNode.hpp>
namespace occa {
namespace lang {
throwNode::throwNode(token_t *token_,
const exprNode &value_) :
exprNode(token_),
value(value_.clone()) {}
throwNode::throwNode(const throwNode &node) :
exprNode(node.token),
value(node... | 23.292308 | 83 | 0.559445 | dmcdougall |
59c4e91fd07c9db6cc4bfaa43d48f05fefc663da | 3,323 | cpp | C++ | Lab2-1/Lab2-1/main.cpp | AlexPC2/Public | 9f42f1873c72355511242680f8ebd54d03dec895 | [
"MIT"
] | null | null | null | Lab2-1/Lab2-1/main.cpp | AlexPC2/Public | 9f42f1873c72355511242680f8ebd54d03dec895 | [
"MIT"
] | null | null | null | Lab2-1/Lab2-1/main.cpp | AlexPC2/Public | 9f42f1873c72355511242680f8ebd54d03dec895 | [
"MIT"
] | null | null | null | //
// main.cpp
// Lab2-1
//
// Created by Alex Noyanov on 12.02.19.
// Copyright © 2019 Popoff Developer Studio. All rights reserved.
//
// Лабораторная 2 Задача #1
/*
Задача №1
Выполнить преобразование Фурье для функции
Период функции равен T = 2*pi
a0 = 1,
am = 0,
m
(-1) + 1
... | 19.898204 | 177 | 0.466446 | AlexPC2 |
59c923713c29ef240b8fb860b4f83b5ca865de35 | 844 | hpp | C++ | framework/graphics/graphics/base.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | 1 | 2018-03-01T01:05:25.000Z | 2018-03-01T01:05:25.000Z | framework/graphics/graphics/base.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | framework/graphics/graphics/base.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | #ifndef VG_BASE_H
#define VG_BASE_H
#include <unordered_map>
namespace vg
{
enum class BaseType
{
UNDEFINED,
VERTEX_DATA,
INDEX_DATA,
UNIFORM_BUFFER_DATA,
TEXTURE,
SHADER,
PASS,
PRE_DEPTH_PASS,
MATERIAL,
MESH,
TRANSFO... | 15.924528 | 68 | 0.554502 | YiJiangFengYun |
59cd84a2f095c7786a1ecab691c3516a4bf334a6 | 10,075 | cc | C++ | build/x86/python/m5/internal/param_DMASequencer.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/param_DMASequencer.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/param_DMASequencer.py.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_DMASequencer[] = {
120,156,197,89,253,114,219,198,17,223,3,64,74,164,36,75,
178,190,252,33,91,180,93,59,172,167,18,19,39,142,211,137,
235,214,205,199,76,51,99,37,5,211,177,195,100,138,66,192,
137,4,69,2,44,112,180,205,140,52,211,1... | 58.236994 | 105 | 0.666005 | billionshang |
59d09dc56d120e65fe8acb1a2902fcd714d6d1f0 | 1,742 | cpp | C++ | SAMP-EDGEngine/src/SAMP-EDGEngine/Server/GameMode.cpp | Desantowski/SAMP-EDGEngine | 949811bf801b1a1a76cc7cc510be749cdfdba540 | [
"MIT"
] | null | null | null | SAMP-EDGEngine/src/SAMP-EDGEngine/Server/GameMode.cpp | Desantowski/SAMP-EDGEngine | 949811bf801b1a1a76cc7cc510be749cdfdba540 | [
"MIT"
] | null | null | null | SAMP-EDGEngine/src/SAMP-EDGEngine/Server/GameMode.cpp | Desantowski/SAMP-EDGEngine | 949811bf801b1a1a76cc7cc510be749cdfdba540 | [
"MIT"
] | null | null | null | #include "SAMP-EDGEnginePCH.hpp" // PCH
// Custom includes:
#include <SAMP-EDGEngine/Server/GameMode.hpp>
#include <SAMP-EDGEngine/World/Streamer/Streamer.hpp>
namespace agdk
{
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
IGameMode::IGameMod... | 35.55102 | 145 | 0.434558 | Desantowski |
59d50d601f627a0bf9f4ce0814160d77c9f4f94d | 18,753 | cxx | C++ | PWG/EMCAL/EMCALbase/AliEmcalESDTrackCutsGenerator.cxx | AudreyFrancisco/AliPhysics | cb36cfa7d1edcd969780e90fe6bfab5107f0f099 | [
"BSD-3-Clause"
] | null | null | null | PWG/EMCAL/EMCALbase/AliEmcalESDTrackCutsGenerator.cxx | AudreyFrancisco/AliPhysics | cb36cfa7d1edcd969780e90fe6bfab5107f0f099 | [
"BSD-3-Clause"
] | null | null | null | PWG/EMCAL/EMCALbase/AliEmcalESDTrackCutsGenerator.cxx | AudreyFrancisco/AliPhysics | cb36cfa7d1edcd969780e90fe6bfab5107f0f099 | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 30.492683 | 124 | 0.702181 | AudreyFrancisco |
59dbbd987f751c17d80fca7a13dd90ee65078e84 | 312 | cpp | C++ | src/filament_tester.cpp | Betterton-Lab/CyLaKS | 17d01e8742b8172b477dd99d254c2d0771f774d0 | [
"BSD-3-Clause"
] | null | null | null | src/filament_tester.cpp | Betterton-Lab/CyLaKS | 17d01e8742b8172b477dd99d254c2d0771f774d0 | [
"BSD-3-Clause"
] | null | null | null | src/filament_tester.cpp | Betterton-Lab/CyLaKS | 17d01e8742b8172b477dd99d254c2d0771f774d0 | [
"BSD-3-Clause"
] | null | null | null | #include "cylaks/filament_tester.hpp"
#include "cylaks/protein_tester.hpp"
void FilamentTester::Initialize(ProteinTester *proteins) {
proteins_ = proteins;
FilamentManager::proteins_ = dynamic_cast<ProteinManager *>(proteins_);
FilamentManager::SetParameters();
FilamentManager::GenerateFilaments();
}
| 28.363636 | 73 | 0.788462 | Betterton-Lab |
59de3fa528965e2c40956339db5fb3f5056a5b10 | 2,079 | cpp | C++ | Fractal/FractalPhysics/src/PhysicsBody.cpp | talislincoln/fractals | a9ed52e99b9737ce0a6bba715f61e4d122e37dd5 | [
"MIT"
] | 2 | 2016-09-22T16:11:17.000Z | 2016-09-22T16:11:55.000Z | Fractal/FractalPhysics/src/PhysicsBody.cpp | talislincoln/FractalGameEngine | a9ed52e99b9737ce0a6bba715f61e4d122e37dd5 | [
"MIT"
] | null | null | null | Fractal/FractalPhysics/src/PhysicsBody.cpp | talislincoln/FractalGameEngine | a9ed52e99b9737ce0a6bba715f61e4d122e37dd5 | [
"MIT"
] | null | null | null | #include "PhysicsBody.h"
namespace fractal {
namespace fphysics {
PhysicsBody::PhysicsBody() {
m_aabb;
m_mass = float(1.0);
m_worldCenter.load();
m_localCenter.load();
m_linearVelocity.load();
m_angularVelocity.load();
m_gravityScale = float(1.0);
//m_linearDamping = float(0.0);
//m_angu... | 22.117021 | 112 | 0.632516 | talislincoln |
59e3772f5bd2eed985a614106983ac96c6880df1 | 3,637 | cpp | C++ | src/PixelFlutSource.cpp | subject721/floodfill | f1328ac8de2f3c7988256e7cb9948f671f91a2d7 | [
"MIT"
] | null | null | null | src/PixelFlutSource.cpp | subject721/floodfill | f1328ac8de2f3c7988256e7cb9948f671f91a2d7 | [
"MIT"
] | null | null | null | src/PixelFlutSource.cpp | subject721/floodfill | f1328ac8de2f3c7988256e7cb9948f671f91a2d7 | [
"MIT"
] | null | null | null | #include "PixelFlutSource.h"
#include "DrawIF.h"
#include "DrawOperations.h"
#include <cstring>
#include <cstdlib>
PixelFlutSource::PixelFlutSource()
{
}
PixelFlutSource::~PixelFlutSource()
{
}
void PixelFlutSource::start(IDrawInterface* drawInterface)
{
_drawInterface = drawInterface;
}
void PixelFlutSource::... | 20.432584 | 117 | 0.654111 | subject721 |
59e44037e24e1c4f559fc44ea4592bc81c6810d1 | 1,084 | cpp | C++ | codes/ZOJ/zoj3810.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/ZOJ/zoj3810.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/ZOJ/zoj3810.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 105;
const char s[10][10] = {"BBBBBB", "GGRGRR", "GRRGRB", "GRGGRB", "GRGRRB", "GRGBBB"};
const char c[5] = "BGRY";
int g[maxn][maxn];
void solve (int n) {
memset(g, 0, sizeof(g));
for (int i = 0; i < n; i++)
g[0][i]... | 18.066667 | 84 | 0.447417 | JeraKrs |
59ee4c0a309f914f2733f58643d87bd17c856dd1 | 2,978 | cpp | C++ | sample.cpp | chihirokondo/wl_mpi | 33cb42e6a2649df767d1284c44d3fb11525b423e | [
"MIT"
] | 1 | 2021-03-22T04:19:17.000Z | 2021-03-22T04:19:17.000Z | sample.cpp | chihirokondo/wl_mpi | 33cb42e6a2649df767d1284c44d3fb11525b423e | [
"MIT"
] | null | null | null | sample.cpp | chihirokondo/wl_mpi | 33cb42e6a2649df767d1284c44d3fb11525b423e | [
"MIT"
] | 2 | 2020-11-27T07:40:42.000Z | 2021-03-22T04:58:18.000Z | #include <cmath>
#include <mpi.h>
#include <random>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include "include/wl_mpi.hpp"
// Sample model (classical ferro magnetic ising model)
#include "model_sample/lattice/graph.hpp"
#include "model_sample/ferro_ising.hpp"
int main(int argc, char... | 35.035294 | 79 | 0.622565 | chihirokondo |
59f1e062f5f292ac68b53ad179fbb1cc65347422 | 2,858 | cpp | C++ | test/TreeJobContainerTest.cpp | ywx217/elapse | d27e851b8f5744ed9bf488a421094c5653aae46e | [
"Unlicense"
] | null | null | null | test/TreeJobContainerTest.cpp | ywx217/elapse | d27e851b8f5744ed9bf488a421094c5653aae46e | [
"Unlicense"
] | null | null | null | test/TreeJobContainerTest.cpp | ywx217/elapse | d27e851b8f5744ed9bf488a421094c5653aae46e | [
"Unlicense"
] | null | null | null | #include "gtest/gtest.h"
#include <list>
#include "TreeJobContainer.hpp"
#ifdef BENCHMARK_ASIO_JOB_CONTAINER
#include "AsioJobContainer.hpp"
#endif
using namespace elapse;
#define TIME_BEGIN 1525436318156L
TEST(TreeContainer, InsertAndExpire) {
TreeJobContainer ctn;
TimeUnit now = TIME_BEGIN;
std::list<JobId> jobS... | 24.016807 | 77 | 0.662701 | ywx217 |
59f31757a685dff137d4958a9d55680823e9831d | 9,779 | cpp | C++ | Device/Source/Unit/Datapath/Specific/MPEG/DVDPESStreamUnpacker.cpp | rerunner/STCM_driver | 8fef3dd7327812fd317fdb0e6fab8d36e345a505 | [
"BSD-3-Clause"
] | null | null | null | Device/Source/Unit/Datapath/Specific/MPEG/DVDPESStreamUnpacker.cpp | rerunner/STCM_driver | 8fef3dd7327812fd317fdb0e6fab8d36e345a505 | [
"BSD-3-Clause"
] | null | null | null | Device/Source/Unit/Datapath/Specific/MPEG/DVDPESStreamUnpacker.cpp | rerunner/STCM_driver | 8fef3dd7327812fd317fdb0e6fab8d36e345a505 | [
"BSD-3-Clause"
] | null | null | null | ///
/// @brief Extracts elementary streams from DVD PES streams
///
#include "DVDPESStreamUnpacker.h"
#include "VDR/Source/Construction/IUnitConstruction.h"
#include "Device/Interface/Unit/Video/IMPEGVideoTypes.h"
UNIT_CREATION_FUNCTION(CreateDVDPESStreamUnpackerUnit, DVDPESStreamUnpackerUnit)
STFResult DVDPE... | 23.063679 | 131 | 0.698026 | rerunner |
59f3ff47a06e15d1581749eae11fe190c52bfd6a | 2,236 | cpp | C++ | main.cpp | azriel91/sl_ax_main | fd34e4b27da35fdf18afcad1dfc11e36d2504545 | [
"Apache-2.0"
] | null | null | null | main.cpp | azriel91/sl_ax_main | fd34e4b27da35fdf18afcad1dfc11e36d2504545 | [
"Apache-2.0"
] | null | null | null | main.cpp | azriel91/sl_ax_main | fd34e4b27da35fdf18afcad1dfc11e36d2504545 | [
"Apache-2.0"
] | null | null | null | /*=============================================================================
Library: Silver
Copyright (c) Azriel Hoh
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.o... | 33.878788 | 109 | 0.68381 | azriel91 |
59f7427b059068377b3be5224e852a778e88a537 | 14,750 | cpp | C++ | demo/Whole-App-Acceleration/SORT/src/main.cpp | luyufan498/Vitis-AI-ZH | 262fd6e29f25ec3b7583cbde5405f5ddeb29f2d5 | [
"Apache-2.0"
] | 848 | 2019-12-03T00:16:17.000Z | 2022-03-31T22:53:17.000Z | demo/Whole-App-Acceleration/SORT/src/main.cpp | wangyifan778/Vitis-AI | f61061eef7550d98bf02a171604c9a9f283a7c47 | [
"Apache-2.0"
] | 656 | 2019-12-03T00:48:46.000Z | 2022-03-31T18:41:54.000Z | demo/Whole-App-Acceleration/SORT/src/main.cpp | wangyifan778/Vitis-AI | f61061eef7550d98bf02a171604c9a9f283a7c47 | [
"Apache-2.0"
] | 506 | 2019-12-03T00:46:26.000Z | 2022-03-30T10:34:56.000Z | ///////////////////////////////////////////////////////////////////////////////
// SORT: A Simple, Online and Realtime Tracker
//
// This is a C++ reimplementation of the open source tracker in
// https://github.com/abewley/sort
// Based on the work of Alex Bewley, alex@dynamicdetection.com, 2016
//
// Cong Ma, mc... | 28.640777 | 156 | 0.647051 | luyufan498 |
59f7a965e8cc6205cfba71b5f7957c7c290d94ea | 3,224 | cpp | C++ | RayEngine/Source/Vulkan/VulkRootLayout.cpp | Mumsfilibaba/RayEngine | 68496966c1d7b91bc8fbdd305226ece9b9f596b2 | [
"Apache-2.0"
] | null | null | null | RayEngine/Source/Vulkan/VulkRootLayout.cpp | Mumsfilibaba/RayEngine | 68496966c1d7b91bc8fbdd305226ece9b9f596b2 | [
"Apache-2.0"
] | null | null | null | RayEngine/Source/Vulkan/VulkRootLayout.cpp | Mumsfilibaba/RayEngine | 68496966c1d7b91bc8fbdd305226ece9b9f596b2 | [
"Apache-2.0"
] | null | null | null | /*////////////////////////////////////////////////////////////
Copyright 2018 Alexander Dahlin
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
THIS SOF... | 29.577982 | 124 | 0.531638 | Mumsfilibaba |
59fe4ef528bb118d9b1ea046656b122e246b842b | 1,852 | hpp | C++ | src/BayesDecider.hpp | Nolnocn/Bayesian-Inference | 76ee29171c6e3a4a69b752c1f68ae3fef2526f92 | [
"MIT"
] | 1 | 2021-07-07T02:45:55.000Z | 2021-07-07T02:45:55.000Z | src/BayesDecider.hpp | Nolnocn/Bayes-Classifier | 76ee29171c6e3a4a69b752c1f68ae3fef2526f92 | [
"MIT"
] | null | null | null | src/BayesDecider.hpp | Nolnocn/Bayes-Classifier | 76ee29171c6e3a4a69b752c1f68ae3fef2526f92 | [
"MIT"
] | null | null | null |
#ifndef BayesDecider_hpp
#define BayesDecider_hpp
#include <string>
#include "BayesOutcomeDefs.h"
namespace Bayes
{
// Forward dec
struct BayesObservation;
/*
* Class used to store conditions and decide on observations
*
* Only this class and BayesObservation should be used
* outside the Bayes namespac... | 28.9375 | 88 | 0.74568 | Nolnocn |
94017194841b6d01072880d0bc250e49e5d54fab | 7,314 | cpp | C++ | ManagedScripts/MPhysClassMultiListClass.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | ManagedScripts/MPhysClassMultiListClass.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | ManagedScripts/MPhysClassMultiListClass.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /*
Copyright 2020 Neijwiert
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 writing, software
distr... | 27.704545 | 119 | 0.760459 | mpforums |
9404cada7abb85c24fb038250bb09f642ac913b9 | 2,207 | cpp | C++ | EZOJ/Contests/1465/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1465/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1465/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool neg=c=='-';
neg?c=getchar():0;
whi... | 22.292929 | 78 | 0.562302 | sshockwave |
9405b8c6256c4bf5cb3e9496bb27913661fc01f3 | 1,663 | cpp | C++ | benchmark/1_1/main.cpp | philong6297/modern-cpp-challenges | c3f9786aff9dd097ee1e4ec7ac65560e447c28b5 | [
"MIT"
] | null | null | null | benchmark/1_1/main.cpp | philong6297/modern-cpp-challenges | c3f9786aff9dd097ee1e4ec7ac65560e447c28b5 | [
"MIT"
] | null | null | null | benchmark/1_1/main.cpp | philong6297/modern-cpp-challenges | c3f9786aff9dd097ee1e4ec7ac65560e447c28b5 | [
"MIT"
] | null | null | null | // Copyright 2021 Long Le Phi. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.
#include <cassert>
#include <cstdint>
#include <limits>
#include <numeric>
#include "benchmark/benchmark.h"
#include "problems/1_1/solution.hpp"
namespace {
using lon... | 27.716667 | 74 | 0.662057 | philong6297 |
940f9ad896fc34423013c03ef7f975751065fbbd | 7,537 | cpp | C++ | src/Server.cpp | mark-grimes/Communique | 969a2a8851ac2eb9dfc0d5c4fdd8669073ad882a | [
"Apache-2.0"
] | null | null | null | src/Server.cpp | mark-grimes/Communique | 969a2a8851ac2eb9dfc0d5c4fdd8669073ad882a | [
"Apache-2.0"
] | 1 | 2015-11-25T09:48:34.000Z | 2015-11-25T09:48:34.000Z | src/Server.cpp | mark-grimes/Communique | 969a2a8851ac2eb9dfc0d5c4fdd8669073ad882a | [
"Apache-2.0"
] | null | null | null | #include "communique/Server.h"
#define _WEBSOCKETPP_CPP11_STL_ // Make sure websocketpp uses c++11 features in preference to boost ones
#include <websocketpp/server.hpp>
#include <websocketpp/config/asio.hpp>
#include <list>
#include "communique/impl/Connection.h"
#include "communique/impl/TLSHandler.h"
//
// Declar... | 36.587379 | 213 | 0.761311 | mark-grimes |
9413d89aba0649c57c1517326033bcfa67239be6 | 6,706 | cpp | C++ | src/lib/meshes/Terrain.cpp | fluffels/vulkan-experiments | 77fc2a3510a22df277d49a6e9b86e52505768b91 | [
"MIT"
] | null | null | null | src/lib/meshes/Terrain.cpp | fluffels/vulkan-experiments | 77fc2a3510a22df277d49a6e9b86e52505768b91 | [
"MIT"
] | null | null | null | src/lib/meshes/Terrain.cpp | fluffels/vulkan-experiments | 77fc2a3510a22df277d49a6e9b86e52505768b91 | [
"MIT"
] | null | null | null | #include "Terrain.h"
Terrain::
Terrain(string path) :
IndexedMesh(),
COMPONENTS(3),
SMOOTH_PAS_COUNT(5),
_vertices(nullptr),
_normals(nullptr),
_indices(nullptr),
_width(0),
_depth(0),
_maxHeight(0),
_terrainWidth(0),
_terrainDepth... | 24.654412 | 73 | 0.525798 | fluffels |
9418d5e12fd6ddd41053ccde892c997c9b1b6445 | 1,009 | cpp | C++ | blackbox/net/ResponseQueue.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 11 | 2017-06-19T14:21:15.000Z | 2020-03-04T06:43:16.000Z | blackbox/net/ResponseQueue.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | null | null | null | blackbox/net/ResponseQueue.cpp | mojmir-svoboda/BlackBoxTT | 0c87b989827107695538e1bf1266c08b083dda44 | [
"MIT"
] | 3 | 2017-07-23T18:08:55.000Z | 2019-09-16T16:28:18.000Z | #include "Session.h"
#include "Server.h"
#include <blackbox/common.h>
#include <utility>
#include <memory>
#include <asio.hpp>
#include <asio/ts/buffer.hpp>
#include <asio/ts/internet.hpp>
#include <bbproto/decoder.h>
#include "commands.h"
#include <boost/lockfree/spsc_queue.hpp>
namespace bb {
ResponseQueue::Respo... | 21.934783 | 110 | 0.682854 | mojmir-svoboda |
941e403224b15896608d39846bf5ab23aff0345e | 5,749 | cpp | C++ | CmnMath/sample/sample_pointcloud_pointcloud.cpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | CmnMath/sample/sample_pointcloud_pointcloud.cpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | CmnMath/sample/sample_pointcloud_pointcloud.cpp | Khoronus/CmnUniverse | 9cf9b4297f2fcb49330126aa1047b422144045e1 | [
"MIT"
] | null | null | null | /* @file sample_math_trigonometry.hpp
* @brief Perform a sample trigonometric operations.
*
* @section LICENSE
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS F... | 39.108844 | 154 | 0.678901 | Khoronus |
941f9574a275a4e910e05e0542e5010e18b71ca9 | 12,633 | hpp | C++ | ryoanji/src/ryoanji/cpu/multipole.hpp | nknk567/SPH-EXA | 1d51f444eeb8662192465b40f5893fd92045729e | [
"MIT"
] | null | null | null | ryoanji/src/ryoanji/cpu/multipole.hpp | nknk567/SPH-EXA | 1d51f444eeb8662192465b40f5893fd92045729e | [
"MIT"
] | null | null | null | ryoanji/src/ryoanji/cpu/multipole.hpp | nknk567/SPH-EXA | 1d51f444eeb8662192465b40f5893fd92045729e | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2021 CSCS, ETH Zurich
* 2021 University of Basel
*
* 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 with... | 34.99446 | 118 | 0.5583 | nknk567 |
9420ea738bac4733be3fcbc985c4c52e585e2a93 | 37,587 | hpp | C++ | 2 - MaxPooled Net/3 - SCAMP5 implementation/fc_weights.hpp | brouwa/CNNs-on-FPSPs | 71bcc2335e6d71ad21ba66e04a651d4db218356d | [
"MIT"
] | 1 | 2021-02-23T21:53:30.000Z | 2021-02-23T21:53:30.000Z | 2 - MaxPooled Net/3 - SCAMP5 implementation/fc_weights.hpp | brouwa/CNNs-on-FPSPs | 71bcc2335e6d71ad21ba66e04a651d4db218356d | [
"MIT"
] | 1 | 2020-11-13T19:08:27.000Z | 2020-11-13T19:08:27.000Z | 2 - MaxPooled Net/3 - SCAMP5 implementation/fc_weights.hpp | brouwa/CNNs-on-FPSPs | 71bcc2335e6d71ad21ba66e04a651d4db218356d | [
"MIT"
] | 1 | 2021-03-04T10:17:01.000Z | 2021-03-04T10:17:01.000Z | /*
* fc_weights.hpp
*
* Created on: Jul 4, 2019
* Author: Benoît GUILLARD
*/
#ifndef FC_WEIGHTS_HPP_
#define FC_WEIGHTS_HPP_
// Re-trained fully connected weight values
inline void fc_1(int in[32], int out[50]){
out[0] =
in[0]*(-76) +
in[1]*(14) +
in[2]*(125) +
in[3]*(-20) +
in[... | 16.779911 | 44 | 0.329156 | brouwa |
942129a8633c59263f489a8e2a0a503085954125 | 636 | hpp | C++ | include/sp/algo/nn/config.hpp | thorigin/sp | a837b4fcb5b7184591585082012942bbdb8f11f9 | [
"FSFAP"
] | null | null | null | include/sp/algo/nn/config.hpp | thorigin/sp | a837b4fcb5b7184591585082012942bbdb8f11f9 | [
"FSFAP"
] | null | null | null | include/sp/algo/nn/config.hpp | thorigin/sp | a837b4fcb5b7184591585082012942bbdb8f11f9 | [
"FSFAP"
] | null | null | null | /**
* Copyright (C) Omar Thor <omarthoro@gmail.com> - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
*
* Written by Omar Thor <omarthoro@gmail.com>, 2017
*/
#ifndef SP_ALGO_NN_CONFIG_HPP
#define SP_ALGO_NN_CONFIG_HPP
#include <cmath>... | 19.875 | 75 | 0.779874 | thorigin |
942b7a2a4945141ddc9dac7b8aa3403257e91cb9 | 525 | cpp | C++ | http/src/EHttpMethod.cpp | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 7 | 2016-08-25T14:22:36.000Z | 2020-05-25T17:27:51.000Z | http/src/EHttpMethod.cpp | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 1 | 2018-07-11T12:37:55.000Z | 2018-07-12T00:05:33.000Z | http/src/EHttpMethod.cpp | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 2 | 2017-06-09T01:22:36.000Z | 2021-09-29T16:27:58.000Z | /*
* EHttpMethod.cpp
*
* Created on: 2017-1-4
* Author: cxxjava@163.com
*/
#include "../inc/EHttpMethod.hh"
namespace efc {
namespace eio {
EHttpMethod EHttpMethod::GET("GET");
EHttpMethod EHttpMethod::HEAD("HEAD");
EHttpMethod EHttpMethod::POST("POST");
EHttpMethod EHttpMethod::PUT("PUT");
EHttpMethod EH... | 21.875 | 44 | 0.710476 | developkits |
942cfb9e5f2cb3eb58bc2f8300704fb1b333e30c | 1,571 | cc | C++ | sdios/src/ram_dsm/main.cc | NeoLeMarc/sdios | 24630c16dfabab008891a354e2f49088d0d0a369 | [
"BSD-2-Clause"
] | null | null | null | sdios/src/ram_dsm/main.cc | NeoLeMarc/sdios | 24630c16dfabab008891a354e2f49088d0d0a369 | [
"BSD-2-Clause"
] | null | null | null | sdios/src/ram_dsm/main.cc | NeoLeMarc/sdios | 24630c16dfabab008891a354e2f49088d0d0a369 | [
"BSD-2-Clause"
] | null | null | null | //
// File: src/ram_dsm/main.cc
//
// Description: RAM-DataspaceManager
//
#include <l4/thread.h>
#include <l4/sigma0.h>
#include <l4io.h>
#include <sdi/types.h>
#include <sdi/sdi.h>
#include <idl4glue.h>
#include <if/iflocator.h>
#include <if/iflogging.h>
#include "ram_dsm.h"
L4_ThreadId_t sigma0_id = L4_nilthrea... | 25.33871 | 90 | 0.644812 | NeoLeMarc |
942dcee35ec86a7347eb0d231e13e9479d5012f1 | 495 | cpp | C++ | src/storm/color.cpp | vanderlokken/storm | 462a783fb780b290149acf0d75c4b3b837a97325 | [
"MIT"
] | 2 | 2016-11-17T20:48:08.000Z | 2018-04-28T22:41:12.000Z | src/storm/color.cpp | vanderlokken/storm | 462a783fb780b290149acf0d75c4b3b837a97325 | [
"MIT"
] | null | null | null | src/storm/color.cpp | vanderlokken/storm | 462a783fb780b290149acf0d75c4b3b837a97325 | [
"MIT"
] | 1 | 2016-10-19T03:07:58.000Z | 2016-10-19T03:07:58.000Z | #include <storm/color.h>
namespace storm {
const Color Color::Black( 0, 0, 0, 1 );
const Color Color::White( 1, 1, 1, 1 );
const Color Color::BlackTransparent( 0, 0, 0, 0 );
const Color Color::WhiteTransparent( 1, 1, 1, 0 );
const CompressedColor CompressedColor::Black( 0xFF000000 );
const CompressedColor Compresse... | 27.5 | 70 | 0.751515 | vanderlokken |
942e3878f2d7cebe5475cec7a58bcb83566ca817 | 1,662 | cpp | C++ | cEpiabm/test/sweeps/test_household_sweep.cpp | Saketkr21/epiabm | 3ec0dcbc78d3fd4114ed3c6bdd78ef39f0013d2f | [
"BSD-3-Clause"
] | 11 | 2021-12-02T15:24:02.000Z | 2022-03-10T14:02:13.000Z | cEpiabm/test/sweeps/test_household_sweep.cpp | Saketkr21/epiabm | 3ec0dcbc78d3fd4114ed3c6bdd78ef39f0013d2f | [
"BSD-3-Clause"
] | 119 | 2021-11-24T13:56:48.000Z | 2022-03-30T11:52:07.000Z | cEpiabm/test/sweeps/test_household_sweep.cpp | SABS-R3-Epidemiology/epiabm | 8eb83fd2de84104f6f77929e3771095f7b033ddc | [
"BSD-3-Clause"
] | 3 | 2022-01-13T03:05:19.000Z | 2022-03-11T22:00:17.000Z |
#include "sweeps/household_sweep.hpp"
#include "population_factory.hpp"
#include "../catch/catch.hpp"
#include "helpers.hpp"
#include <random>
using namespace epiabm;
TEST_CASE("sweeps/household_sweep: test initialize household_sweep", "[HouseholdSweep]")
{
HouseholdSweepPtr subject = std::make_shared<Househo... | 29.678571 | 93 | 0.699759 | Saketkr21 |
943e2ed2ddc9cfa963d6f34b837c34775cec3719 | 123 | cpp | C++ | lab2.2/errorProcess.cpp | mengguanya/Elementary-Computer-Architecture-Lab | 38167d54f9af8af0fade1ff38dd8adb795db476f | [
"MIT"
] | null | null | null | lab2.2/errorProcess.cpp | mengguanya/Elementary-Computer-Architecture-Lab | 38167d54f9af8af0fade1ff38dd8adb795db476f | [
"MIT"
] | null | null | null | lab2.2/errorProcess.cpp | mengguanya/Elementary-Computer-Architecture-Lab | 38167d54f9af8af0fade1ff38dd8adb795db476f | [
"MIT"
] | null | null | null | #include"errorProcess.h"
#include"Inst.h"
void openElfError(FILE* elfFile) {
}
void instAddrError(ADDR addr) {
} | 13.666667 | 35 | 0.682927 | mengguanya |
9446fd5576f98b99736acbf0ca162971723d07d3 | 755 | hpp | C++ | src/mlt/models/transformers/zero_components_analysis.hpp | fedeallocati/MachineLearningToolkit | 8614ee2c8c5211a3eefceb10a50576e0485cefd9 | [
"MIT"
] | 6 | 2015-08-31T11:43:19.000Z | 2018-07-22T11:03:47.000Z | src/mlt/models/transformers/zero_components_analysis.hpp | fedeallocati/MachineLearningToolkit | 8614ee2c8c5211a3eefceb10a50576e0485cefd9 | [
"MIT"
] | null | null | null | src/mlt/models/transformers/zero_components_analysis.hpp | fedeallocati/MachineLearningToolkit | 8614ee2c8c5211a3eefceb10a50576e0485cefd9 | [
"MIT"
] | null | null | null | #ifndef MLT_MODELS_TRANSFORMERS_ZERO_COMPONENTS_ANALYSIS_HPP
#define MLT_MODELS_TRANSFORMERS_ZERO_COMPONENTS_ANALYSIS_HPP
#include "principal_components_analysis_impl.hpp"
namespace mlt {
namespace models {
namespace transformers {
class ZeroComponentsAnalysis : public PrincipalComponentsAnalysisImpl<ZeroComponentsA... | 29.038462 | 96 | 0.81457 | fedeallocati |
944c92e249ad5fa1251777c70bb60692378a8bbe | 2,673 | cpp | C++ | tools/editor/source/command/standard/modifyDepth.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | 6 | 2015-04-21T11:30:52.000Z | 2020-04-29T00:10:04.000Z | tools/editor/source/command/standard/modifyDepth.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | tools/editor/source/command/standard/modifyDepth.cpp | pixelballoon/pixelboost | 085873310050ce62493df61142b7d4393795bdc2 | [
"MIT"
] | null | null | null | #include <string>
#include "pixelboost/maths/boundingBox.h"
#include "command/standard/modifyDepth.h"
#include "core/uidHelpers.h"
#include "project/entity.h"
#include "project/project.h"
#include "project/record.h"
#include "project/schema.h"
#include "view/entity/entity.h"
#include "view/level.h"
#include "core.h"
... | 25.216981 | 99 | 0.632997 | pixelballoon |
944fbb889b970c185bf1c36d8ce933caa50fb773 | 822 | hpp | C++ | src/aspell-60/common/error.hpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 31 | 2016-11-08T05:13:02.000Z | 2022-02-23T19:13:01.000Z | src/aspell-60/common/error.hpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 6 | 2017-01-17T20:21:55.000Z | 2021-09-02T07:36:18.000Z | src/aspell-60/common/error.hpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 5 | 2017-07-11T11:10:55.000Z | 2022-02-14T01:55:16.000Z | /* This file is part of The New Aspell
* Copyright (C) 2001-2002 by Kevin Atkinson under the GNU LGPL
* license version 2.0 or 2.1. You should have received a copy of the
* LGPL license along with this library if you did not you can find it
* at http://www.gnu.org/. */
... | 21.631579 | 74 | 0.647202 | reydajp |
944fd654a145a501e39a490b0cbe8956d80ae612 | 2,743 | cpp | C++ | src/dfm/nodestore/impl/DatabaseRotatingImp.cpp | dfm-official/dfm | 97f133aa87b17c760b90f2358d6ba10bc7ad9d1f | [
"ISC"
] | null | null | null | src/dfm/nodestore/impl/DatabaseRotatingImp.cpp | dfm-official/dfm | 97f133aa87b17c760b90f2358d6ba10bc7ad9d1f | [
"ISC"
] | null | null | null | src/dfm/nodestore/impl/DatabaseRotatingImp.cpp | dfm-official/dfm | 97f133aa87b17c760b90f2358d6ba10bc7ad9d1f | [
"ISC"
] | null | null | null |
#include <ripple/nodestore/impl/DatabaseRotatingImp.h>
#include <ripple/app/ledger/Ledger.h>
#include <ripple/protocol/HashPrefix.h>
namespace ripple {
namespace NodeStore {
DatabaseRotatingImp::DatabaseRotatingImp(
std::string const& name,
Scheduler& scheduler,
int readThreads,
Stoppable& parent,
... | 25.165138 | 71 | 0.689391 | dfm-official |
94524131c04cd329a7467cb20148df5e865a809b | 5,707 | hpp | C++ | Math/Geometry.hpp | GlynnJKW/Stratum | ddc55796f3207fe3df23c455c6304cb72aebcb02 | [
"MIT"
] | 2 | 2019-10-01T22:55:47.000Z | 2019-10-04T20:25:29.000Z | Math/Geometry.hpp | Shmaug/vkCAVE | e502aedaf172047557f0454acb170a46b9d350f8 | [
"MIT"
] | null | null | null | Math/Geometry.hpp | Shmaug/vkCAVE | e502aedaf172047557f0454acb170a46b9d350f8 | [
"MIT"
] | null | null | null | #pragma once
#include <Math/Math.hpp>
struct Sphere {
float3 mCenter;
float mRadius;
inline Sphere() : mCenter(float3()), mRadius(0) {}
inline Sphere(const float3& center, float radius) : mCenter(center), mRadius(radius) {}
};
struct AABB {
float3 mMin;
float3 mMax;
AABB() : mMin(float3()), mMax(float3()) {... | 29.569948 | 92 | 0.574382 | GlynnJKW |
94550e3ee33e359fa7324f280541daf2b1d3a1e7 | 2,967 | hpp | C++ | src/Backend.hpp | VetoProjects/ShaderSandbox | 5ee34badb690cff611f105fbe9bc56e7ca219515 | [
"MIT"
] | 2 | 2015-01-26T17:17:14.000Z | 2015-02-07T18:07:51.000Z | src/Backend.hpp | VetoProjects/ShaderSandbox | 5ee34badb690cff611f105fbe9bc56e7ca219515 | [
"MIT"
] | null | null | null | src/Backend.hpp | VetoProjects/ShaderSandbox | 5ee34badb690cff611f105fbe9bc56e7ca219515 | [
"MIT"
] | 1 | 2019-12-19T15:06:45.000Z | 2019-12-19T15:06:45.000Z | #ifndef BACKEND_HPP
#define BACKEND_HPP
#include <QDesktopServices>
#include <QUrl>
#include "SettingsBackend.hpp"
#include "SettingsWindow.hpp"
#include "LiveThread.hpp"
#include "Instances/IInstance.hpp"
using namespace Instances;
/**
* @brief The Backend class
*
* The heart and soul of the eidtors functional... | 35.746988 | 122 | 0.738456 | VetoProjects |
9458b9e8951239ec7dae718a1eb5b1b4c3c2560c | 551 | cpp | C++ | src/components/player.cpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/components/player.cpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | src/components/player.cpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | #include "gamecomponents.hpp"
#include "player.hpp"
namespace Sys
{
Player::Player(entityid_t myEntity, const char * name) : Component(myEntity), character(nullptr), name(name), myself(false)
{
spawntimer = -1;
Players.add(this);
puts("MAKING A PLAYER");
}
Player::~Player()
... | 22.958333 | 127 | 0.593466 | wareya |
94618d4bccdcb327d8e6bea600a3a3d5b95fe3f8 | 902 | cpp | C++ | Engine/resourcemodelselect.cpp | vadkasevas/BAS | 657f62794451c564c77d6f92b2afa9f5daf2f517 | [
"MIT"
] | 302 | 2016-05-20T12:55:23.000Z | 2022-03-29T02:26:14.000Z | Engine/resourcemodelselect.cpp | chulakshana/BAS | 955f5a41bd004bcdd7d19725df6ab229b911c09f | [
"MIT"
] | 9 | 2016-07-21T09:04:50.000Z | 2021-05-16T07:34:42.000Z | Engine/resourcemodelselect.cpp | chulakshana/BAS | 955f5a41bd004bcdd7d19725df6ab229b911c09f | [
"MIT"
] | 113 | 2016-05-18T07:48:37.000Z | 2022-02-26T12:59:39.000Z | #include "resourcemodelselect.h"
#include "every_cpp.h"
namespace BrowserAutomationStudioFramework
{
ResourceModelSelect::ResourceModelSelect(QObject *parent) :
ResourceModelAbstract(parent)
{
Type = Combo;
}
QStringList ResourceModelSelect::GetValues()
{
return Values;
... | 20.976744 | 72 | 0.63969 | vadkasevas |
946276e2f18418d699aca9429a5b2ba553f9896d | 7,477 | cpp | C++ | language-extensions/R/src/RParamContainer.cpp | rabryst/sql-server-language-extensions | a6a25890d1c3e449537eaaafab706c6c1e8b51cb | [
"MIT"
] | 82 | 2019-05-24T00:36:57.000Z | 2022-02-21T23:51:46.000Z | language-extensions/R/src/RParamContainer.cpp | rabryst/sql-server-language-extensions | a6a25890d1c3e449537eaaafab706c6c1e8b51cb | [
"MIT"
] | 20 | 2019-07-05T06:12:28.000Z | 2022-03-31T20:48:30.000Z | language-extensions/R/src/RParamContainer.cpp | rabryst/sql-server-language-extensions | a6a25890d1c3e449537eaaafab706c6c1e8b51cb | [
"MIT"
] | 35 | 2019-05-24T01:44:07.000Z | 2022-02-28T13:29:44.000Z | //**************************************************************************************************
// RExtension : A language extension implementing the SQL Server
// external language communication protocol for R.
// Copyright (C) 2020 Microsoft Corporation.
//
// This file is part of RExtension.
//
// RExtension is... | 35.947115 | 100 | 0.6956 | rabryst |
9462f806e416cf8bea8ec122a7810f8366adfcdf | 5,006 | cpp | C++ | test/rules/constrictor_ruleset_test.cpp | TheApX/battlesnake-engine-cpp | 05053f06ecc631f037417bd0d897b28f48dfe07d | [
"MIT"
] | 3 | 2021-07-05T22:42:26.000Z | 2021-07-29T12:14:43.000Z | test/rules/constrictor_ruleset_test.cpp | TheApX/battlesnake-engine-cpp | 05053f06ecc631f037417bd0d897b28f48dfe07d | [
"MIT"
] | 2 | 2021-07-12T00:11:57.000Z | 2021-09-04T19:11:38.000Z | test/rules/constrictor_ruleset_test.cpp | TheApX/battlesnake-engine-cpp | 05053f06ecc631f037417bd0d897b28f48dfe07d | [
"MIT"
] | null | null | null | #include "battlesnake/rules/constrictor_ruleset.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace battlesnake {
namespace rules {
namespace {
using ::testing::ElementsAre;
using ::testing::ElementsAreArray;
using ::testing::Eq;
using ::testing::Field;
using ::testing::IsFalse;
using ::testing::IsTrue;
... | 28.936416 | 79 | 0.571314 | TheApX |
9463985d3a5965cf52c7570db3c4457fba14df66 | 379 | cpp | C++ | libmuscle/cpp/src/libmuscle/logger.cpp | DongweiYe/muscle3 | 0c2fcf5f62995b8639fc84ce1b983c8a8e6248d0 | [
"Apache-2.0"
] | 11 | 2018-03-12T10:43:46.000Z | 2020-06-01T10:58:56.000Z | libmuscle/cpp/src/libmuscle/logger.cpp | DongweiYe/muscle3 | 0c2fcf5f62995b8639fc84ce1b983c8a8e6248d0 | [
"Apache-2.0"
] | 85 | 2018-03-03T15:10:56.000Z | 2022-03-18T14:05:14.000Z | libmuscle/cpp/src/libmuscle/logger.cpp | DongweiYe/muscle3 | 0c2fcf5f62995b8639fc84ce1b983c8a8e6248d0 | [
"Apache-2.0"
] | 6 | 2018-03-12T10:47:11.000Z | 2022-02-03T13:44:07.000Z | #include <libmuscle/logger.hpp>
namespace libmuscle { namespace impl {
Logger::Logger(std::string const & instance_id, MMPClient & manager)
: instance_id_(instance_id)
, manager_(manager)
, remote_level_(LogLevel::WARNING)
{}
void Logger::set_remote_level(LogLevel level) {
remote_level_ = level;
}
... | 18.95 | 68 | 0.71504 | DongweiYe |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.