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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ebdf26c13c5f7b16ce9158d77909dcab6739680e | 2,412 | cpp | C++ | Samples/LuaEditor/luUtils.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | 1 | 2017-01-16T11:53:44.000Z | 2017-01-16T11:53:44.000Z | Samples/LuaEditor/luUtils.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | null | null | null | Samples/LuaEditor/luUtils.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | null | null | null | /*
-------------------------------------------------------------------------------
This file is part of OgreKit.
http://gamekit.googlecode.com/
Copyright (c) 2006-2010 harkon.kr
Contributor(s): none yet.
-------------------------------------------------------------------------------
This software is... | 29.414634 | 97 | 0.650912 | slagusev |
ebe63433fd2e0b718af9f699c3595e4b7394391c | 780 | cpp | C++ | 4.Graph-Theory/4.1.Graph-Traversal/4.1.1.DFS.cpp | VikashTiwari1208/Anthology-of-Algorithms-and-Data-structures | 3924b628278180c3facf76c6ec7c140eb788697e | [
"MIT"
] | 1 | 2020-12-10T19:25:21.000Z | 2020-12-10T19:25:21.000Z | 4.Graph-Theory/4.1.Graph-Traversal/4.1.1.DFS.cpp | VikashTiwari1208/Anthology-of-Algorithms-and-Data-structures | 3924b628278180c3facf76c6ec7c140eb788697e | [
"MIT"
] | null | null | null | 4.Graph-Theory/4.1.Graph-Traversal/4.1.1.DFS.cpp | VikashTiwari1208/Anthology-of-Algorithms-and-Data-structures | 3924b628278180c3facf76c6ec7c140eb788697e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;
const int N = 1e5 + 9, M = 2e5 + 9, oo = 0x3f3f3f3f;
ll INF = 0x3f3f3f3f3f3f3f3f;
int Head[N], Par[N], Next[M], To[M], Cost[M], ne, n, m, u, v, st, tr, tax;
ll dis[N];
bool vis[N];
void addEdge(int from, int to, int cost) {
Next[++ne] = Head[from... | 17.727273 | 74 | 0.492308 | VikashTiwari1208 |
ebe80d65a790da47e4b4be3ec891a6d6faaa9d7c | 52 | hpp | C++ | include/randompp.hpp | TatsuyaShirakawa/randompp | ceb2ca1417a3b469dab62b3d66ae423f90c00c35 | [
"MIT"
] | null | null | null | include/randompp.hpp | TatsuyaShirakawa/randompp | ceb2ca1417a3b469dab62b3d66ae423f90c00c35 | [
"MIT"
] | null | null | null | include/randompp.hpp | TatsuyaShirakawa/randompp | ceb2ca1417a3b469dab62b3d66ae423f90c00c35 | [
"MIT"
] | null | null | null | #pragma once
#include "dirichlet_distribution.hpp"
| 13 | 37 | 0.807692 | TatsuyaShirakawa |
ebeb7dbae9a200f59fb72eeaa4072a4597d892bf | 505 | hpp | C++ | src/Shape.hpp | dairequinlan/bedlam-solver | 71250a4882de2eae2b63c64ed09b31692aa8b492 | [
"Apache-2.0"
] | null | null | null | src/Shape.hpp | dairequinlan/bedlam-solver | 71250a4882de2eae2b63c64ed09b31692aa8b492 | [
"Apache-2.0"
] | null | null | null | src/Shape.hpp | dairequinlan/bedlam-solver | 71250a4882de2eae2b63c64ed09b31692aa8b492 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "json.hpp"
using json = nlohmann::json;
#include <string>
using namespace std;
typedef struct Block {
int x;
int y;
int z;
} Block;
typedef struct Rotation {
int numBlocks;
Block *blocks;
} Rotation;
class Shape{
public:
Shape();
Rotation** rotations;
... | 16.290323 | 54 | 0.611881 | dairequinlan |
ebebbff4fa944cca32648ecb3052e91f51cc7944 | 8,014 | cpp | C++ | src/dyn_prog_solver.cpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | 7 | 2016-11-12T17:55:03.000Z | 2021-04-28T20:23:27.000Z | src/dyn_prog_solver.cpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | null | null | null | src/dyn_prog_solver.cpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | 4 | 2015-05-12T13:51:54.000Z | 2020-06-07T22:01:28.000Z | /*
* This file is part of the Sequoia MSO Solver.
*
* Copyright 2012 Alexander Langer, Theoretical Computer Science,
* RWTH Aachen University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 31.928287 | 108 | 0.655104 | sequoia-mso |
ebee4a772c9491649dd37d7fa5c9701c23634865 | 3,665 | hpp | C++ | include/GlobalNamespace/BeatmapIdentifierNetSerializableHelper.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapIdentifierNetSerializableHelper.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapIdentifierNetSerializableHelper.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin f... | 61.083333 | 245 | 0.779809 | Fernthedev |
ebf810a7a82458123e879b7d4160f8c8092effc2 | 19,270 | cpp | C++ | BotWidget.cpp | jseursing/SMT | 6d1ad9d632a15fc9a4680239d5bd3e8a5ad9edef | [
"MIT"
] | null | null | null | BotWidget.cpp | jseursing/SMT | 6d1ad9d632a15fc9a4680239d5bd3e8a5ad9edef | [
"MIT"
] | null | null | null | BotWidget.cpp | jseursing/SMT | 6d1ad9d632a15fc9a4680239d5bd3e8a5ad9edef | [
"MIT"
] | null | null | null | #include "BotWidget.h"
#include "MSMManager.h"
#include <fstream>
#include <QCheckBox>
#include <QMainWindow>
#include <QMessageBox>
#include <QLayout>
#include <QSplitter>
#include <QtWinExtras\qwinextrasglobal.h>
#include <QtWinExtras\qwinfunctions.h>
//
// Static definitions
//
BotWidget* BotWidget::TheInstance = 0... | 32.386555 | 89 | 0.563622 | jseursing |
ebfc40ec5614a8518bedf12321ec95d668c08266 | 2,268 | cpp | C++ | src/tibb/src/Modules/UI/BlackBerry/ActivityIndicator/TiUIActivityIndicatorProxy.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 3 | 2015-03-07T15:41:18.000Z | 2015-11-05T05:07:45.000Z | src/tibb/src/Modules/UI/BlackBerry/ActivityIndicator/TiUIActivityIndicatorProxy.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 1 | 2015-04-12T11:50:33.000Z | 2015-04-12T21:13:19.000Z | src/tibb/src/Modules/UI/BlackBerry/ActivityIndicator/TiUIActivityIndicatorProxy.cpp | ssaracut/titanium_mobile_blackberry | 952a8100086dcc625584e33abc2dc03340cbb219 | [
"Apache-2.0"
] | 5 | 2015-01-13T17:14:41.000Z | 2015-05-25T16:54:26.000Z | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2014 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#include "TiUIActivityIndicatorProxy.h"
#include "TiUIActivityIndicator.h"
namespace ... | 28 | 96 | 0.818783 | ssaracut |
23055c0b7029cfbf052b0bf50bc992e7e2ec9237 | 517 | cpp | C++ | src/cli/Realtime.cpp | tleb/signal-estimator | 0cc6c4f053c7541975448b186fa35203a0d16af5 | [
"MIT"
] | 40 | 2020-01-05T15:42:26.000Z | 2022-01-21T17:05:42.000Z | src/cli/Realtime.cpp | tleb/signal-estimator | 0cc6c4f053c7541975448b186fa35203a0d16af5 | [
"MIT"
] | 20 | 2020-05-25T08:15:25.000Z | 2021-10-07T10:19:35.000Z | src/cli/Realtime.cpp | tleb/signal-estimator | 0cc6c4f053c7541975448b186fa35203a0d16af5 | [
"MIT"
] | 7 | 2020-06-13T13:59:33.000Z | 2022-03-17T16:57:04.000Z | // Copyright (c) Signal Estimator authors
// Licensed under MIT
#include "Realtime.hpp"
#include "Log.hpp"
#include <sched.h>
namespace signal_estimator {
void set_realtime() {
sched_param param {};
param.sched_priority = sched_get_priority_max(SCHED_RR);
if (sched_setscheduler(0, SCHED_RR, ¶m) == ... | 22.478261 | 72 | 0.698259 | tleb |
230660c72bf2dd1088a828238d729de5e7ac52aa | 1,440 | cpp | C++ | leetcode/problems/easy/997-find-the-town-judge.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/easy/997-find-the-town-judge.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/easy/997-find-the-town-judge.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Find the Town Judge
In a town, there are N people labelled from 1 to N. There is a rumor that one of these people is secretly the town judge.
If the town judge exists, then:
The town judge trusts nobody.
Everybody (except for the town judge) trusts the town judge.
There is exactly one person that satisfies prope... | 23.225806 | 126 | 0.608333 | wingkwong |
230b21ece79a94470ad81e79c261577fe24a362b | 1,957 | cc | C++ | src/MetroCollect/MetricsDiffArray.cc | Maxime999/MetroCollect | 5f6c74ee29a0b489de38bff0674c17adb099a8e1 | [
"Apache-2.0"
] | 1 | 2018-10-16T10:53:39.000Z | 2018-10-16T10:53:39.000Z | src/MetroCollect/MetricsDiffArray.cc | Maxime999/MetroCollect | 5f6c74ee29a0b489de38bff0674c17adb099a8e1 | [
"Apache-2.0"
] | null | null | null | src/MetroCollect/MetricsDiffArray.cc | Maxime999/MetroCollect | 5f6c74ee29a0b489de38bff0674c17adb099a8e1 | [
"Apache-2.0"
] | null | null | null | //
// MetricsDiffArray.cc
//
// Created on July 18th 2018
//
// Copyright 2018 CFM (www.cfm.fr)
//
// 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/LI... | 37.634615 | 138 | 0.748595 | Maxime999 |
230f01898f9fea2777bce9e3710407a51f71c8ca | 3,203 | cc | C++ | src/frame.cc | hamk-automation/SGApp | c56abefe2710fc64cb042ef68a630e419e359d0f | [
"MIT"
] | null | null | null | src/frame.cc | hamk-automation/SGApp | c56abefe2710fc64cb042ef68a630e419e359d0f | [
"MIT"
] | null | null | null | src/frame.cc | hamk-automation/SGApp | c56abefe2710fc64cb042ef68a630e419e359d0f | [
"MIT"
] | null | null | null | #include "libs.h"
#include "gl_canvas.h"
#include "frame.h"
#include "timer.h"
#include "utils.h"
#include "global_var.h"
// Create event table for the frame
wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(ID_FILEOPEN, MyFrame::OnFileOpen)
EVT_MENU(ID_SETVELOCITY, MyFrame::OnSetVelocity)
EVT_MENU(wxID_EXIT, MyFra... | 25.220472 | 101 | 0.636591 | hamk-automation |
2311693e7a8c3883078ce1e683e2a2fd7cc5566f | 484 | cpp | C++ | cpp/ql/test/query-tests/Critical/OverflowStatic/test.cpp | calumgrant/ql | 3c0f04ac96da17456a2085ef11e05aca4632b986 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-07-15T10:29:52.000Z | 2021-07-15T10:29:52.000Z | cpp/ql/test/query-tests/Critical/OverflowStatic/test.cpp | calumgrant/ql | 3c0f04ac96da17456a2085ef11e05aca4632b986 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cpp/ql/test/query-tests/Critical/OverflowStatic/test.cpp | calumgrant/ql | 3c0f04ac96da17456a2085ef11e05aca4632b986 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
typedef unsigned int size_t;
void *memcpy(void *dest, const void *src, size_t count);
void f1(void)
{
char buffer1[3];
char buffer2[] = {'a', 'b', 'c'};
int i;
for (i = 0; i < 3; i++)
{
buffer1[i] = 0; // GOOD
buffer2[i] = 0; // GOOD
}
for (i = 0; i < 4; i++)
{
buffer1[i] = 0; // BAD
buffer2[i] = 0;... | 17.285714 | 56 | 0.555785 | calumgrant |
23179c2bf21f3775c677e63e2e5c6ea76602b69c | 48 | hpp | C++ | src/boost_graph_rmat_graph_generator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_graph_rmat_graph_generator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_graph_rmat_graph_generator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/graph/rmat_graph_generator.hpp>
| 24 | 47 | 0.833333 | miathedev |
231a0db1059d59de738deaddba56ff7e61f5b423 | 1,174 | cpp | C++ | cf/Div2/E/Pashmak and Graph/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/E/Pashmak and Graph/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/E/Pashmak and Graph/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
// Turn off synchronization between cin/cout and scanf/printf
ios_base::sync_with_stdio(false);
// Disable automatic flush of cout when reading from cin cin.tie(0);
cin.tie(0);
int n, m;
cin >> n >> m;
vec... | 23.48 | 72 | 0.487223 | wdjpng |
231c6ef770e652e95e96c65b771addabf534ea42 | 2,316 | hpp | C++ | src/common/motion_model/include/motion_model/stationary_motion_model.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 19 | 2021-05-28T06:14:21.000Z | 2022-03-10T10:03:08.000Z | src/common/motion_model/include/motion_model/stationary_motion_model.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 222 | 2021-10-29T22:00:27.000Z | 2022-03-29T20:56:34.000Z | src/common/motion_model/include/motion_model/stationary_motion_model.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 14 | 2021-05-29T14:59:17.000Z | 2022-03-10T10:03:09.000Z | // Copyright 2021 Apex.AI, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 29.316456 | 100 | 0.722798 | ruvus |
2325aea417ebae41b3ac0bd5131aceaaef07c689 | 18,882 | cpp | C++ | source/solution_zoo/video_box/src/smartplugin_box/vencmodule.cpp | HorizonRobotics-Platform/AI-EXPRESS | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 98 | 2020-09-11T13:52:44.000Z | 2022-03-23T11:52:02.000Z | source/solution_zoo/video_box/src/smartplugin_box/vencmodule.cpp | HorizonRobotics-Platform/ai-express | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 8 | 2020-10-19T14:23:30.000Z | 2022-03-16T01:00:07.000Z | source/solution_zoo/video_box/src/smartplugin_box/vencmodule.cpp | HorizonRobotics-Platform/AI-EXPRESS | 413206d88dae1fbd465ced4d60b2a1769d15c171 | [
"BSD-2-Clause"
] | 28 | 2020-09-17T14:20:35.000Z | 2022-01-10T16:26:00.000Z | /**
* Copyright (c) 2020, Horizon Robotics, Inc.
* All rights reserved.
* @Author:
* @Mail: @horizon.ai
*/
#include "vencmodule.h"
#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <cstring>
#include <fstream>
#include <iostream>
#include "PlotSmartD... | 30.553398 | 80 | 0.659305 | HorizonRobotics-Platform |
232ce867d6b5f392d899d87ee19538dfe8fd3036 | 5,039 | cpp | C++ | vcl/shape/mesh/mesh_structure/mesh.cpp | asilvaigor/opengl_winter | 0081c6ee39d493eb4f9e0ac92222937062866776 | [
"MIT"
] | 1 | 2020-04-24T22:55:51.000Z | 2020-04-24T22:55:51.000Z | vcl/shape/mesh/mesh_structure/mesh.cpp | asilvaigor/opengl_winter | 0081c6ee39d493eb4f9e0ac92222937062866776 | [
"MIT"
] | null | null | null | vcl/shape/mesh/mesh_structure/mesh.cpp | asilvaigor/opengl_winter | 0081c6ee39d493eb4f9e0ac92222937062866776 | [
"MIT"
] | null | null | null | #include "mesh.hpp"
#include "vcl/math/math.hpp"
namespace vcl
{
void mesh::push_back(const mesh& mesh_to_add)
{
fill_empty_fields();
mesh m = mesh_to_add;
m.fill_empty_fields();
const size_t N0 = position.size();
const size_t N = m.position.size();
for(size_t k=0; k<N; ++k )
{
p... | 24.580488 | 111 | 0.564398 | asilvaigor |
232f8abc6c12c1d14dfa266b20ec5e4330e3a8b4 | 2,140 | cpp | C++ | tests/tst_qcsvwritertest.cpp | pinkavaj/QCSVWriter | 8d6a79da614e9f46bbbd1e10d93576770935cc35 | [
"Apache-2.0"
] | null | null | null | tests/tst_qcsvwritertest.cpp | pinkavaj/QCSVWriter | 8d6a79da614e9f46bbbd1e10d93576770935cc35 | [
"Apache-2.0"
] | null | null | null | tests/tst_qcsvwritertest.cpp | pinkavaj/QCSVWriter | 8d6a79da614e9f46bbbd1e10d93576770935cc35 | [
"Apache-2.0"
] | 1 | 2019-12-25T06:06:05.000Z | 2019-12-25T06:06:05.000Z | #include <QtCore/QString>
#include <QtTest/QtTest>
#include <../qcsvwriter.h>
#include <math.h>
class QCSVWriterTest : public QObject
{
Q_OBJECT
private:
static const char filePathWrite[];
static const char filePathRead[];
public:
QCSVWriterTest();
private Q_SLOTS:
void testWriteFile();
void ... | 23.777778 | 78 | 0.642523 | pinkavaj |
2330aefdd9c8f1118c433f46f298c66e74004e24 | 1,808 | hpp | C++ | modules/drivers/robosense/decoder/decoder_factory.hpp | sunzengpeng/diamond-auto | b6e201257e97614a4eb79e67f5c99fb442cc7e14 | [
"MIT"
] | 6 | 2020-09-12T00:03:47.000Z | 2021-06-01T09:29:49.000Z | modules/drivers/robosense/decoder/decoder_factory.hpp | MengTC/diamond-auto | 18c2aa2a4d5b8beae156b6207757ee3adc6a8ba2 | [
"MIT"
] | 10 | 2020-09-03T06:54:05.000Z | 2020-11-21T00:08:45.000Z | modules/drivers/robosense/decoder/decoder_factory.hpp | MengTC/diamond-auto | 18c2aa2a4d5b8beae156b6207757ee3adc6a8ba2 | [
"MIT"
] | 7 | 2020-09-18T10:40:40.000Z | 2022-02-22T07:48:52.000Z | /******************************************************************************
* Copyright 2020 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 36.897959 | 79 | 0.65708 | sunzengpeng |
23321bc54521cd07e1d627163bd66b97600f888f | 2,968 | hpp | C++ | src/framework/AlgorithmInfo.hpp | CloudCV/cloudcv-bootstrap | ae5363938a21fb97b0365f5c469245ff5018b673 | [
"BSD-3-Clause"
] | 89 | 2015-03-20T14:28:17.000Z | 2021-03-12T15:06:45.000Z | src/framework/AlgorithmInfo.hpp | CloudCV/cloudcv-bootstrap | ae5363938a21fb97b0365f5c469245ff5018b673 | [
"BSD-3-Clause"
] | 9 | 2015-05-08T15:11:02.000Z | 2016-10-21T08:16:41.000Z | src/framework/AlgorithmInfo.hpp | CloudCV/cloudcv-bootstrap | ae5363938a21fb97b0365f5c469245ff5018b673 | [
"BSD-3-Clause"
] | 30 | 2015-05-05T12:54:34.000Z | 2020-12-20T09:53:31.000Z | #pragma once
#include <memory>
#include <vector>
#include <opencv2/opencv.hpp>
#include <functional>
#include <map>
#include <node.h>
#include <v8.h>
#include <nan.h>
#include "framework/Argument.hpp"
#include "framework/marshal/marshal.hpp"
namespace cloudcv
{
class Algorithm;
class AlgorithmInfo;
typed... | 27.481481 | 86 | 0.583558 | CloudCV |
2335150a19ed6d060fb86595069fbe6c894d520a | 2,146 | hpp | C++ | src/main/Game/Player/SpecialAttack.hpp | mak1a/SivComponent | 1043cde67a5dc14f2d4e0128aecfee7f54ed7002 | [
"MIT"
] | 1 | 2021-01-24T08:55:59.000Z | 2021-01-24T08:55:59.000Z | src/main/Game/Player/SpecialAttack.hpp | mak1a/SivComponent | 1043cde67a5dc14f2d4e0128aecfee7f54ed7002 | [
"MIT"
] | 2 | 2021-01-24T06:12:12.000Z | 2021-01-24T14:37:10.000Z | src/main/Game/Player/SpecialAttack.hpp | mak1a/SivComponent | 1043cde67a5dc14f2d4e0128aecfee7f54ed7002 | [
"MIT"
] | null | null | null |
#include "../../../ComponentEngine/ComponentEngine.hpp"
#include "../../../PhotonComponent/PhotonComponent.hpp"
#include "Player.hpp"
class PlayerAnimation;
class Player;
class ISpecialAttack : public Photon::AttachableComponentPhotonCallbacks
{
protected:
bool hassp = true;
std::shared_ptr<Player> player;
... | 20.438095 | 114 | 0.688723 | mak1a |
2338ced5743c108d0b9bdabaa5cd0a9de83e2142 | 2,640 | cpp | C++ | test/entt/process/scheduler.cpp | FrancoisSestier/entt | 25ae3c44aa16af7bbadeab4a5d3df3c694c23935 | [
"MIT"
] | 2 | 2020-10-30T08:01:26.000Z | 2021-03-22T09:48:00.000Z | test/entt/process/scheduler.cpp | FrancoisSestier/entt | 25ae3c44aa16af7bbadeab4a5d3df3c694c23935 | [
"MIT"
] | null | null | null | test/entt/process/scheduler.cpp | FrancoisSestier/entt | 25ae3c44aa16af7bbadeab4a5d3df3c694c23935 | [
"MIT"
] | 1 | 2021-03-22T19:23:26.000Z | 2021-03-22T19:23:26.000Z | #include <functional>
#include <gtest/gtest.h>
#include <entt/process/scheduler.hpp>
#include <entt/process/process.hpp>
struct foo_process: entt::process<foo_process, int> {
foo_process(std::function<void()> upd, std::function<void()> abort)
: on_update{upd}, on_aborted{abort}
{}
void update(delt... | 23.571429 | 72 | 0.617045 | FrancoisSestier |
233af0152ac79792cd06f26b7b8fdd6395d7fdde | 331 | cpp | C++ | SPOJ/AtRandom.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | SPOJ/AtRandom.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | SPOJ/AtRandom.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int T, N, i, v[60];
char p[60];
cin >> T;
for(;T--;){
cin >> N;
for(i = 0; i < N; i++){
cin >> v[i] >> p[i];
}
bool ok = true;
for(i = 1; i < N; i++){
if(v[i] == v[i-1] || p[i] == p[i-1]){
ok = false;
}
}
printf("%c\n", (ok)?'B':... | 15.045455 | 40 | 0.398792 | MartinAparicioPons |
233c38c19180c5882cddf5d2c3bb46461c1cd37d | 11,097 | hpp | C++ | generic_ext/comm_tool_allToAll.hpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | generic_ext/comm_tool_allToAll.hpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | generic_ext/comm_tool_allToAll.hpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | /**************************************************************************************************/
/**
* @file comm_tool_allToAll.hpp
* @brief STL container wrapper for PS::Comm::allToAll()
*/
/**************************************************************************************************/
#pragma once
#include ... | 38.134021 | 139 | 0.549698 | Tokumasu-Lab |
233d6b44e9444aefb6e3f6871f12f1c4ffdedc2e | 106 | hxx | C++ | src/Providers/UNIXProviders/Person/UNIX_Person_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/Person/UNIX_Person_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/Person/UNIX_Person_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_ZOS
#ifndef __UNIX_PERSON_PRIVATE_H
#define __UNIX_PERSON_PRIVATE_H
#endif
#endif
| 8.833333 | 31 | 0.820755 | brunolauze |
233d86a458889f1a5ddf41991943343b241796b3 | 17,649 | cpp | C++ | sources/lib_image_rw/image_tif_writer.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 61 | 2016-03-26T03:04:43.000Z | 2021-09-17T02:11:18.000Z | sources/lib_image_rw/image_tif_writer.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 92 | 2016-04-10T23:40:22.000Z | 2022-03-11T21:49:12.000Z | sources/lib_image_rw/image_tif_writer.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 18 | 2016-03-26T11:19:14.000Z | 2021-08-07T00:26:02.000Z | #include <limits> /* std::numeric_limits */
#include <sstream> /* std::ostringstream */
#include <stdexcept> /* std::runtime_error */
#include "image_common.h"
#include "image_tif_common.h"
#include "image_tif_write_handle.h"
#include "image_tif_writer.h"
using image::tif::writer;
writer::writer()
{}
const char *con... | 26.53985 | 237 | 0.675676 | Savraska2 |
054c12b9b0bbc49556b5b0ecedbc751c743c954c | 1,527 | cpp | C++ | src/model/BoundingBoxPoint.cpp | neuronalmotion/blueprint | 712296b744df27b28d6142b794045ff8bce6ee96 | [
"Apache-2.0"
] | 7 | 2015-07-17T12:30:29.000Z | 2022-01-02T21:05:14.000Z | src/model/BoundingBoxPoint.cpp | neuronalmotion/blueprint | 712296b744df27b28d6142b794045ff8bce6ee96 | [
"Apache-2.0"
] | 83 | 2015-06-29T09:05:24.000Z | 2015-11-05T11:41:44.000Z | src/model/BoundingBoxPoint.cpp | neuronalmotion/blueprint | 712296b744df27b28d6142b794045ff8bce6ee96 | [
"Apache-2.0"
] | 3 | 2017-06-16T02:41:58.000Z | 2019-09-17T20:46:21.000Z | #include "BoundingBoxPoint.h"
#include <QBrush>
#include <QDebug>
#include "model/BoundingBox.h"
#include "model/Shape.h"
using namespace blueprint;
BoundingBoxPoint::BoundingBoxPoint(BoundingBox* parent, TranslationDirection direction)
: QGraphicsRectItem(parent),
mParentBoundingBox(parent),
mTrans... | 22.791045 | 87 | 0.691552 | neuronalmotion |
054ca98ace2488b0e1826504ed0aad72de17452a | 456 | cpp | C++ | Plugins/AGSSpriteFont/AGSSpriteFont/VariableWidthFont.cpp | monkey0506/ags | 2f96ddf47e944efea2534386a4004849eb71372b | [
"Artistic-2.0"
] | 2 | 2020-06-26T11:40:27.000Z | 2021-06-14T15:58:09.000Z | Plugins/AGSSpriteFont/AGSSpriteFont/VariableWidthFont.cpp | monkey0506/ags | 2f96ddf47e944efea2534386a4004849eb71372b | [
"Artistic-2.0"
] | null | null | null | Plugins/AGSSpriteFont/AGSSpriteFont/VariableWidthFont.cpp | monkey0506/ags | 2f96ddf47e944efea2534386a4004849eb71372b | [
"Artistic-2.0"
] | 1 | 2019-08-01T20:32:35.000Z | 2019-08-01T20:32:35.000Z | #include "VariableWidthFont.h"
VariableWidthFont::VariableWidthFont(void)
{
Spacing = 0;
FontReplaced = 0;
SpriteNumber = 0;
}
VariableWidthFont::~VariableWidthFont(void)
{
}
void VariableWidthFont::SetGlyph(int character, int x, int y, int width, int height)
{
characters[character].X = x;
characters[characte... | 19 | 84 | 0.745614 | monkey0506 |
0552c2431c1c127ddf01cf97f00478f659867c66 | 3,865 | cpp | C++ | gm/image_shader.cpp | Perspex/skia | e25fe5a294e9cee8f23207eef63fad6cffa9ced4 | [
"Apache-2.0"
] | 27 | 2016-04-27T01:02:03.000Z | 2021-12-13T08:53:19.000Z | gm/image_shader.cpp | AvaloniaUI/skia | e25fe5a294e9cee8f23207eef63fad6cffa9ced4 | [
"Apache-2.0"
] | 2 | 2017-03-09T09:00:50.000Z | 2017-09-21T15:48:20.000Z | gm/image_shader.cpp | AvaloniaUI/skia | e25fe5a294e9cee8f23207eef63fad6cffa9ced4 | [
"Apache-2.0"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkCanvas.h"
#include "SkData.h"
#include "SkImage.h"
#include "SkPictureRecorder.h"
#include "SkSurface.h"
static void draw_something(SkCanvas* canv... | 29.730769 | 96 | 0.658991 | Perspex |
0554495a44c2e08c93775ef4d41ef68033d90525 | 20,189 | cpp | C++ | Project-03/dp3_test.cpp | imthegngrbrdmn/cs-311 | d27a8e5059aebdbef64383933381a6a11b10cc15 | [
"MIT"
] | null | null | null | Project-03/dp3_test.cpp | imthegngrbrdmn/cs-311 | d27a8e5059aebdbef64383933381a6a11b10cc15 | [
"MIT"
] | null | null | null | Project-03/dp3_test.cpp | imthegngrbrdmn/cs-311 | d27a8e5059aebdbef64383933381a6a11b10cc15 | [
"MIT"
] | null | null | null | // dp3_test.cpp
// Glenn G. Chappell
// 2020-09-17
//
// For CS 311 Fall 2020
// Test program for Project 3 functions & templates
// For Project 3, Exercises A, B, C, D
// Uses the "doctest" unit-testing framework, version 2
// Requires doctest.h, dp3.h, dp3.cpp
// Includes for code to be tested
#include "dp3.h" ... | 26.117723 | 76 | 0.486205 | imthegngrbrdmn |
0554aa01721af9860400fa83542732e6767f8aa4 | 300,389 | cpp | C++ | controllers/inverse_kinematics_pyikfast/irb4600_solver/ikfast_robot.cpp | Simon-Steinmann/Webots_pyikfast_tutorial | c056f79318156dc68c9390bdc9f6b2029f20ebe8 | [
"MIT"
] | 1 | 2022-01-11T01:41:14.000Z | 2022-01-11T01:41:14.000Z | controllers/inverse_kinematics_pyikfast/irb4600_solver/ikfast_robot.cpp | Simon-Steinmann/Webots_pyikfast_tutorial | c056f79318156dc68c9390bdc9f6b2029f20ebe8 | [
"MIT"
] | 1 | 2022-01-17T19:20:26.000Z | 2022-01-17T22:36:19.000Z | controllers/inverse_kinematics_pyikfast/irb4600_solver/ikfast_robot.cpp | Simon-Steinmann/Webots_pyikfast_tutorial | c056f79318156dc68c9390bdc9f6b2029f20ebe8 | [
"MIT"
] | 1 | 2022-01-17T17:13:35.000Z | 2022-01-17T17:13:35.000Z | /// autogenerated analytical inverse kinematics code from ikfast program part of OpenRAVE
/// \author Rosen Diankov
///
/// 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.... | 30.159538 | 874 | 0.653176 | Simon-Steinmann |
055507208dd400eeb825e8cd3b5750bf5d49c9f0 | 12,646 | cpp | C++ | src/tinyply.cpp | diegomazala/pca | 86b7688a5ebca97e3e596806038ead5a29d2855c | [
"MIT"
] | 1 | 2021-07-29T12:23:02.000Z | 2021-07-29T12:23:02.000Z | src/tinyply.cpp | diegomazala/pca | 86b7688a5ebca97e3e596806038ead5a29d2855c | [
"MIT"
] | null | null | null | src/tinyply.cpp | diegomazala/pca | 86b7688a5ebca97e3e596806038ead5a29d2855c | [
"MIT"
] | null | null | null | // This software is in the public domain. Where that dedication is not
// recognized, you are granted a perpetual, irrevocable license to copy,
// distribute, and modify this file as you see fit.
// Authored in 2015 by Dimitri Diakopoulos (http://www.dimitridiakopoulos.com)
// https://github.com/ddiakopoulos/tinyply
#... | 35.225627 | 146 | 0.546734 | diegomazala |
055ae85a98e4a0b8f505780573b736617665f51b | 10,392 | cpp | C++ | cpp/oneapi/dal/algo/knn/test/badarg.cpp | mchernov-intel/daal | 3342c0e2812e48d612da7ccfa845bd0168145fb7 | [
"Apache-2.0"
] | null | null | null | cpp/oneapi/dal/algo/knn/test/badarg.cpp | mchernov-intel/daal | 3342c0e2812e48d612da7ccfa845bd0168145fb7 | [
"Apache-2.0"
] | 4 | 2020-08-05T06:29:01.000Z | 2020-08-18T16:28:04.000Z | cpp/oneapi/dal/algo/knn/test/badarg.cpp | mchernov-intel/daal | 3342c0e2812e48d612da7ccfa845bd0168145fb7 | [
"Apache-2.0"
] | 2 | 2020-08-05T05:53:41.000Z | 2020-08-05T06:00:33.000Z | /*******************************************************************************
* Copyright 2021 Intel Corporation
*
* 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... | 44.600858 | 107 | 0.699288 | mchernov-intel |
055d32dcae82d3f87e2e8b69b4f360adcedfcfe5 | 3,788 | cc | C++ | cpp_src/gtests/tests/unit/rpcclient_test.cc | andyoknen/reindexer | ff1b2bcc0a80c4692361c9c184243d74a920ead7 | [
"Apache-2.0"
] | null | null | null | cpp_src/gtests/tests/unit/rpcclient_test.cc | andyoknen/reindexer | ff1b2bcc0a80c4692361c9c184243d74a920ead7 | [
"Apache-2.0"
] | null | null | null | cpp_src/gtests/tests/unit/rpcclient_test.cc | andyoknen/reindexer | ff1b2bcc0a80c4692361c9c184243d74a920ead7 | [
"Apache-2.0"
] | null | null | null | #include <chrono>
#include "rpcclient_api.h"
#include "rpcserver_fake.h"
using std::chrono::seconds;
TEST_F(RPCClientTestApi, ConnectTimeout) {
AddServer();
StartServer();
reindexer::client::ReindexerConfig config;
config.ConnectTimeout = seconds(1);
config.RequestTimeout = seconds(5);
client_.reset(new reindex... | 34.126126 | 106 | 0.722017 | andyoknen |
055db0417045f57bb2c874dac5f4ae6afb850685 | 2,230 | hh | C++ | include/seastar/net/socket_defs.hh | jwnx/seastar | 4207837dfbc969e46c0b581e6c3f801dbc8f3a07 | [
"Apache-2.0"
] | null | null | null | include/seastar/net/socket_defs.hh | jwnx/seastar | 4207837dfbc969e46c0b581e6c3f801dbc8f3a07 | [
"Apache-2.0"
] | null | null | null | include/seastar/net/socket_defs.hh | jwnx/seastar | 4207837dfbc969e46c0b581e6c3f801dbc8f3a07 | [
"Apache-2.0"
] | 1 | 2020-08-10T12:54:33.000Z | 2020-08-10T12:54:33.000Z | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | 26.547619 | 79 | 0.678924 | jwnx |
056099caab87e3e4fb741e4cc0cfd9bdbf2b70b7 | 427 | cpp | C++ | Recursion/RemoveDuplicates.cpp | sanp9/DSA-Questions | f265075b83f66ec696576be3eaa5517ee387d5cf | [
"MIT"
] | null | null | null | Recursion/RemoveDuplicates.cpp | sanp9/DSA-Questions | f265075b83f66ec696576be3eaa5517ee387d5cf | [
"MIT"
] | null | null | null | Recursion/RemoveDuplicates.cpp | sanp9/DSA-Questions | f265075b83f66ec696576be3eaa5517ee387d5cf | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
void removeDuplicate(string str)
{
if (str.length() == 0)
{
return;
}
string restStr = str.substr(1);
if (str[0] == str[1])
{
removeDuplicate(restStr);
}
else
{
cout << str[0];
removeDuplicate... | 14.233333 | 35 | 0.531616 | sanp9 |
0560f6c7392fc0a262bb86bad499dfa75c7df9a0 | 17,476 | cpp | C++ | src/palrt/path.cpp | kouvel/coreclr | e8b17841cb5ce923aec48a1b0c12042d445d508f | [
"MIT"
] | 159 | 2020-06-17T01:01:55.000Z | 2022-03-28T10:33:37.000Z | src/palrt/path.cpp | kouvel/coreclr | e8b17841cb5ce923aec48a1b0c12042d445d508f | [
"MIT"
] | 19 | 2020-06-27T01:16:35.000Z | 2022-02-06T20:33:24.000Z | src/palrt/path.cpp | kouvel/coreclr | e8b17841cb5ce923aec48a1b0c12042d445d508f | [
"MIT"
] | 19 | 2020-05-21T08:18:20.000Z | 2021-06-29T01:13:13.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
//
// ===========================================================================
// File: path.cpp
//
// Path AP... | 26.969136 | 123 | 0.489471 | kouvel |
0562a0e2ec3e7cc0378f7ffad7f17bd9715a9a2f | 3,899 | tcc | C++ | src/util/concurrent_ring_buffer.tcc | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | 5 | 2021-05-21T07:52:50.000Z | 2022-02-09T04:26:31.000Z | src/util/concurrent_ring_buffer.tcc | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | null | null | null | src/util/concurrent_ring_buffer.tcc | uos/hatsdf_slam | f30f69c0f6b9286cd4fa51ca17f0e2d423ca4682 | [
"BSD-3-Clause"
] | 1 | 2022-02-09T04:26:33.000Z | 2022-02-09T04:26:33.000Z | #pragma once
/**
* @file concurrent_ring_buffer.tcc
* @author Marcel Flottmann
*/
namespace fastsense::util
{
template<typename T>
ConcurrentRingBuffer<T>::ConcurrentRingBuffer(size_t capacity)
: buffer_(capacity),
size_(0),
pushIdx_(0),
popIdx_(0),
mutex_({}),
cvEmpty_({}),
... | 18.835749 | 122 | 0.572198 | uos |
05670d76a5c30d67882c4c54cb7eb93eb99ab97a | 7,006 | hpp | C++ | src/base/rmg/keyboard.hpp | khantkyawkhaung/robot-monitor-graphics | 2d365b3f3537e141cd1ec82f840c300abd79082b | [
"MIT"
] | 2 | 2020-06-16T14:47:11.000Z | 2020-07-09T15:34:55.000Z | src/base/rmg/keyboard.hpp | khantkyawkhaung/robot-monitor-graphics | 2d365b3f3537e141cd1ec82f840c300abd79082b | [
"MIT"
] | null | null | null | src/base/rmg/keyboard.hpp | khantkyawkhaung/robot-monitor-graphics | 2d365b3f3537e141cd1ec82f840c300abd79082b | [
"MIT"
] | null | null | null | /**
* @file keyboard.hpp
* @brief Keyboard event and attributes
*
* Stores a keycode and keyboard states.
*
* @copyright Copyright (c) 2020 Khant Kyaw Khaung
*
* @license{This project is released under the MIT License.}
*/
#pragma once
#ifndef __RMG_KEYBOARD_H__
#define __RMG_KEYBOARD_H__ ///< Header guard... | 33.682692 | 75 | 0.585498 | khantkyawkhaung |
0569001e49f57ca8450d22f98163e27e7c3725ef | 3,803 | cc | C++ | src/ast/struct_test.cc | dorba/tint | f81c1081ea7d27ea55f373c0bfaf651e491da7e6 | [
"Apache-2.0"
] | null | null | null | src/ast/struct_test.cc | dorba/tint | f81c1081ea7d27ea55f373c0bfaf651e491da7e6 | [
"Apache-2.0"
] | null | null | null | src/ast/struct_test.cc | dorba/tint | f81c1081ea7d27ea55f373c0bfaf651e491da7e6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Tint Authors.
//
// 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 ... | 25.870748 | 79 | 0.715225 | dorba |
056ae29d2669d1060f4eb287a75b679b6997d52b | 4,139 | cpp | C++ | libkeksbot/unicode.cpp | cookiemon/Keksbot | d7f6adddf5d91e9e49a4a231e74b9a962d8af326 | [
"BSD-2-Clause"
] | 2 | 2015-01-17T00:18:29.000Z | 2015-09-16T17:26:03.000Z | libkeksbot/unicode.cpp | cookiemon/Keksbot | d7f6adddf5d91e9e49a4a231e74b9a962d8af326 | [
"BSD-2-Clause"
] | 11 | 2015-01-30T23:24:49.000Z | 2017-12-10T15:48:23.000Z | libkeksbot/unicode.cpp | cookiemon/Keksbot | d7f6adddf5d91e9e49a4a231e74b9a962d8af326 | [
"BSD-2-Clause"
] | 4 | 2016-02-29T17:45:51.000Z | 2017-12-08T18:03:02.000Z | #include "unicode.h"
#include "configs.h"
#include "server.h"
#include "logging.h"
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <locale>
#include <stdint.h>
#include <cassert>
#include <cstddef>
Unicode::Unicode(const Configs& cfg)
{
cfg.GetValue("dbfile", dbfile);
}
Unicode::~Unicode()
{
}
c... | 23.651429 | 142 | 0.621165 | cookiemon |
056b856882d409784dcd7d209cb575063d37b729 | 491 | cpp | C++ | snippets/cpp/VS_Snippets_Winforms/Classic DataGrid.GridLineColor Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 834 | 2017-06-24T10:40:36.000Z | 2022-03-31T19:48:51.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DataGrid.GridLineColor Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 7,042 | 2017-06-23T22:34:47.000Z | 2022-03-31T23:05:23.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DataGrid.GridLineColor Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 1,640 | 2017-06-23T22:31:39.000Z | 2022-03-31T02:45:37.000Z | #using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.Data.dll>
using namespace System;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Windows::Forms;
public ref class Form1: public Form
{
protected:
DataGrid^ dataGrid1;
// <Sni... | 19.64 | 57 | 0.706721 | BohdanMosiyuk |
056c77c6e68d8cbf67b8fe0cc8d167a6a468358d | 1,754 | cpp | C++ | src/ch5/12504.cpp | luowyang/UVaSolutions | 09a89989d31c15ed66fdbcb5a0f8c3b32fef5ad9 | [
"MIT"
] | null | null | null | src/ch5/12504.cpp | luowyang/UVaSolutions | 09a89989d31c15ed66fdbcb5a0f8c3b32fef5ad9 | [
"MIT"
] | null | null | null | src/ch5/12504.cpp | luowyang/UVaSolutions | 09a89989d31c15ed66fdbcb5a0f8c3b32fef5ad9 | [
"MIT"
] | null | null | null | /**
* Updating a Dictionary, UVa12504
**/
#include <vector>
#include <map>
#include <string>
#include <cstdio>
#include <iostream>
using namespace std;
void buildDict(const char* s, map<string, string>& dict) {
unsigned int i, j, k;
// printf("DEBUG s %s\n", s);
if (!s[2]) return;
for (i = 1; s[i]; i... | 27.40625 | 105 | 0.458951 | luowyang |
056ff43861a68cde2c6cb6373a42e60104615a64 | 479 | cpp | C++ | ObjOrientedProgramming/Car 2nd/Car 2nd/CarDemo.cpp | jhbrian/Learning-Progress | de7b9d037aa0b5e1ec8199b4eabfcd1e24c73bcb | [
"MIT"
] | null | null | null | ObjOrientedProgramming/Car 2nd/Car 2nd/CarDemo.cpp | jhbrian/Learning-Progress | de7b9d037aa0b5e1ec8199b4eabfcd1e24c73bcb | [
"MIT"
] | null | null | null | ObjOrientedProgramming/Car 2nd/Car 2nd/CarDemo.cpp | jhbrian/Learning-Progress | de7b9d037aa0b5e1ec8199b4eabfcd1e24c73bcb | [
"MIT"
] | null | null | null | //CarDemo.cpp
#include "Car.h"
#include <iostream>
using namespace std;
int main() {
Car myCar1("Toyota", 1999);
Car myCar2("Ford", 2019);
Car myCar3("Acura", 2016);
Car myCar4("Honda", 2005);
cout << myCar1.getMake() << " " << myCar1.getYear() << endl;
cout << myCar2.getMake() << " " << myCar2.ge... | 25.210526 | 62 | 0.574113 | jhbrian |
0572256af04afadb9ad07d6dd5872fbe33710206 | 444 | cpp | C++ | chp3-Linked_Lists/exercise/8/main.cpp | moonpatel/Data_Structures_and_Algorithms_in_CPP_by_Adam_Drozdek | 562a4e03090781461b4ab1bc5798e17b6f461241 | [
"MIT"
] | null | null | null | chp3-Linked_Lists/exercise/8/main.cpp | moonpatel/Data_Structures_and_Algorithms_in_CPP_by_Adam_Drozdek | 562a4e03090781461b4ab1bc5798e17b6f461241 | [
"MIT"
] | null | null | null | chp3-Linked_Lists/exercise/8/main.cpp | moonpatel/Data_Structures_and_Algorithms_in_CPP_by_Adam_Drozdek | 562a4e03090781461b4ab1bc5798e17b6f461241 | [
"MIT"
] | null | null | null | #include <iostream>
#include "../../singly_linked_list/SLL.h"
#include "../../singly_linked_list/SLL.cpp"
using namespace std;
int main() {
SLL<int> numbers;
numbers.addToTail(1);
numbers.addToTail(3);
numbers.addToTail(5);
numbers.addToTail(7);
numbers.addToTail(8);
int i=numbers.size(... | 17.076923 | 43 | 0.603604 | moonpatel |
05759eed2a6bf5bdee3a6e527a811de4b6204be2 | 10,481 | hpp | C++ | dsl/mask.hpp | hipacc/hipacc-fpga | 0e1df29556c5b7c77b72c6cbf476243797367b28 | [
"BSD-2-Clause"
] | 20 | 2017-05-18T13:49:05.000Z | 2022-01-10T10:05:26.000Z | dsl/mask.hpp | hipacc/hipacc-fpga | 0e1df29556c5b7c77b72c6cbf476243797367b28 | [
"BSD-2-Clause"
] | null | null | null | dsl/mask.hpp | hipacc/hipacc-fpga | 0e1df29556c5b7c77b72c6cbf476243797367b28 | [
"BSD-2-Clause"
] | 3 | 2017-10-09T14:09:33.000Z | 2022-02-01T22:00:33.000Z | //
// Copyright (c) 2012, University of Erlangen-Nuremberg
// Copyright (c) 2012, Siemens AG
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain... | 34.140065 | 145 | 0.510734 | hipacc |
0577cfbf69690a5828d91e9f58b1f01fbe433a2b | 1,552 | cpp | C++ | JCommon/JRender/JRenderManager.cpp | jimmythepage/JEngine | aec32fd2a3be9910f7f75511ba90f0d92fbd82c6 | [
"MIT"
] | null | null | null | JCommon/JRender/JRenderManager.cpp | jimmythepage/JEngine | aec32fd2a3be9910f7f75511ba90f0d92fbd82c6 | [
"MIT"
] | 5 | 2020-05-08T13:41:03.000Z | 2020-05-10T11:06:23.000Z | JCommon/JRender/JRenderManager.cpp | jimmythepage/JTPE | b86f5bbd4bbe3a5d543f1707c9b49cecc4484b05 | [
"MIT"
] | null | null | null | #include "JCommonPch.h"
using namespace J;
using namespace J::TASK;
using namespace J::RENDER;
JRenderManager::JRenderManager():mJRenderer(NULL)
{
}
JRenderManager::~JRenderManager()
{
}
JRenderManager & JRenderManager::GetSingleton()
{
static JRenderManager _singleton;
return _singleton;
}
void EngineUpdate()//KEE... | 21.260274 | 89 | 0.73067 | jimmythepage |
057814cefec738d9a5f2b4209154eab5c84ac8c2 | 1,867 | cpp | C++ | Olympiad Solutions/DMOJ/coci15c1p5.cpp | p1yush/code-DS-ALGO | f015f766e75cb61ca908e30bb600bdd6d2fb2e82 | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/DMOJ/coci15c1p5.cpp | p1yush/code-DS-ALGO | f015f766e75cb61ca908e30bb600bdd6d2fb2e82 | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/DMOJ/coci15c1p5.cpp | p1yush/code-DS-ALGO | f015f766e75cb61ca908e30bb600bdd6d2fb2e82 | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://dmoj.ca/problem/coci15c1p5
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 10;
const int MOD = 1e4 + 7;
const int MAXC = 20;
const int SZ = 262153;
struct node{
int produtorio,combinacoes[MAXC];
node(){
produtorio = 0;
for(int i = 0;i<MAXC;i++) c... | 20.744444 | 65 | 0.577397 | p1yush |
0582a9da06efbc22b03a3bd98958421c0b843b7e | 18,959 | cpp | C++ | PVSNES/PVSNES/SNES/SNESCore/conffile.cpp | DaddyCal/Provenance | cda9464b4bef6dd48f9977047c4af90aca80c5a7 | [
"BSD-3-Clause"
] | null | null | null | PVSNES/PVSNES/SNES/SNESCore/conffile.cpp | DaddyCal/Provenance | cda9464b4bef6dd48f9977047c4af90aca80c5a7 | [
"BSD-3-Clause"
] | null | null | null | PVSNES/PVSNES/SNES/SNESCore/conffile.cpp | DaddyCal/Provenance | cda9464b4bef6dd48f9977047c4af90aca80c5a7 | [
"BSD-3-Clause"
] | null | null | null | /***********************************************************************************
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
(c) Copyright 1996 - 2002 Gary Henderson (gary.henderson@ntlworld.com),
Jerremy Koot (jkoot@snes9x.com)
(c) Copyright 2002 - 200... | 28.81307 | 118 | 0.576507 | DaddyCal |
0583a25cc916661cfe764f5e4a3abbc1feffa7e9 | 14,214 | hpp | C++ | ImperasLib/source/sifive.ovpworld.org/processor/riscv/1.0/tlm/riscv_X280.igen.hpp | emanuellucas2/OVPsimProject | 6c9f5bfaaa135fa63d63746bacf5759c6d6c0e9e | [
"TCL"
] | null | null | null | ImperasLib/source/sifive.ovpworld.org/processor/riscv/1.0/tlm/riscv_X280.igen.hpp | emanuellucas2/OVPsimProject | 6c9f5bfaaa135fa63d63746bacf5759c6d6c0e9e | [
"TCL"
] | null | null | null | ImperasLib/source/sifive.ovpworld.org/processor/riscv/1.0/tlm/riscv_X280.igen.hpp | emanuellucas2/OVPsimProject | 6c9f5bfaaa135fa63d63746bacf5759c6d6c0e9e | [
"TCL"
] | null | null | null | /*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 49.873684 | 116 | 0.737934 | emanuellucas2 |
0589ebe370b7a23ecae5d4c7d44d415a6c743162 | 4,967 | cpp | C++ | QuickSort_Viz/source/main.cpp | AkashBujju/Practice_Excercises | 850ad69e8f77f5e34428f7264ca94fc54605b351 | [
"MIT"
] | null | null | null | QuickSort_Viz/source/main.cpp | AkashBujju/Practice_Excercises | 850ad69e8f77f5e34428f7264ca94fc54605b351 | [
"MIT"
] | null | null | null | QuickSort_Viz/source/main.cpp | AkashBujju/Practice_Excercises | 850ad69e8f77f5e34428f7264ca94fc54605b351 | [
"MIT"
] | null | null | null | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <iostream>
#include <cmath>
#include <ctime>
#include "shader.h"
#include "rects.h"
void keyboard(GLFWwindow* window, int key, int scancode, int action, int mods);
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
v... | 26.005236 | 93 | 0.698208 | AkashBujju |
058ac40c10421665c6a54ddbb3f8532e83e25dfc | 838 | cpp | C++ | Source/CLNR/DisapearingBoxes.cpp | TheNorwegianBeck/CLNR | 4fe76ad55b315c19b4fa67a9587a2849477c42d8 | [
"Apache-2.0"
] | null | null | null | Source/CLNR/DisapearingBoxes.cpp | TheNorwegianBeck/CLNR | 4fe76ad55b315c19b4fa67a9587a2849477c42d8 | [
"Apache-2.0"
] | null | null | null | Source/CLNR/DisapearingBoxes.cpp | TheNorwegianBeck/CLNR | 4fe76ad55b315c19b4fa67a9587a2849477c42d8 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "CLNR.h"
#include "CLNRGameModeBase.h"
#include "DisapearingBoxes.h"
// Sets default values
ADisapearingBoxes::ADisapearingBoxes()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if... | 28.896552 | 184 | 0.767303 | TheNorwegianBeck |
058b94008c1b920772f16a5790c8557dc8031081 | 637 | hpp | C++ | Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Console/CConsole.hpp | Siv3D/siv6 | 090e82b2f6398640638dfa43da3f829ba977d0e2 | [
"MIT"
] | 2 | 2020-07-26T05:14:33.000Z | 2020-08-11T08:00:54.000Z | Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Console/CConsole.hpp | nokotan/siv6 | 7df183550a6c0160ba918d6ad24c3ae48231e26b | [
"MIT"
] | 6 | 2020-03-03T04:01:10.000Z | 2020-09-27T14:33:19.000Z | Siv3D/src/Siv3D-Platform/WindowsDesktop/Siv3D/Console/CConsole.hpp | nokotan/siv6 | 7df183550a6c0160ba918d6ad24c3ae48231e26b | [
"MIT"
] | 5 | 2020-03-03T03:34:27.000Z | 2020-09-05T18:42:55.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2020 Ryo Suzuki
// Copyright (c) 2016-2020 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <cstdio>
# include <Si... | 15.536585 | 50 | 0.563579 | Siv3D |
058fc7a6f4ac1d3a50890af1f05194789c64788e | 408 | hpp | C++ | test/GameEngine/BulletTest.hpp | DragonJoker/CastorTD | b055df76aff9f42945a0a5e7ed4ddbf03be84381 | [
"MIT"
] | null | null | null | test/GameEngine/BulletTest.hpp | DragonJoker/CastorTD | b055df76aff9f42945a0a5e7ed4ddbf03be84381 | [
"MIT"
] | null | null | null | test/GameEngine/BulletTest.hpp | DragonJoker/CastorTD | b055df76aff9f42945a0a5e7ed4ddbf03be84381 | [
"MIT"
] | null | null | null | /**
See licence file in root folder, MIT.txt
*/
#pragma once
#ifndef ___EOFT_BulletTest_HPP___
#define ___EOFT_BulletTest_HPP___
#include "GameEngineTestPrerequisites.hpp"
namespace orastus
{
namespace test
{
class BulletTest
: public Testing::TestCase
{
public:
BulletTest();
~BulletTest();
privat... | 13.16129 | 42 | 0.710784 | DragonJoker |
05922a884b60c9099d1ebda1230d11500798b18f | 272 | cpp | C++ | twoPointers/pairWithGivenDifference.cpp | archit-1997/InterviewB | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | [
"MIT"
] | 1 | 2021-01-27T16:37:38.000Z | 2021-01-27T16:37:38.000Z | twoPointers/pairWithGivenDifference.cpp | archit-1997/InterviewBit | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | [
"MIT"
] | null | null | null | twoPointers/pairWithGivenDifference.cpp | archit-1997/InterviewBit | 6f5655ce0c9c8dd1b2433588f47da5aa7f5860d7 | [
"MIT"
] | null | null | null | int Solution::solve(vector<int> &A, int B) {
sort(A.begin(), A.end());
int n = A.size();
int i = 0, j = 1;
while (i < n && j < n) {
if (i != j && A[j] - A[i] == B)
return 1;
else if (A[j] - A[i] < B)
j++;
else
i++;
}
return 0;
}
| 17 | 44 | 0.400735 | archit-1997 |
05959155be28647ee1cc7f5c5a28108cf15fd478 | 3,955 | cpp | C++ | Homework_Solutions/Homework 6.1.cpp | ChenpoHU/C-Excercies_OOP | b009b5a8da82fda6b3918f9f77b1d62ad0a1f876 | [
"MIT"
] | null | null | null | Homework_Solutions/Homework 6.1.cpp | ChenpoHU/C-Excercies_OOP | b009b5a8da82fda6b3918f9f77b1d62ad0a1f876 | [
"MIT"
] | null | null | null | Homework_Solutions/Homework 6.1.cpp | ChenpoHU/C-Excercies_OOP | b009b5a8da82fda6b3918f9f77b1d62ad0a1f876 | [
"MIT"
] | null | null | null | /*
1 Theory
1.1. Check the documentation of std::unique_ptr.Is it similar to something discussed in class ? If yes, then what it is.
std::shared_ptr (m pointer - 1 object).
unique_ptr (1 pointer - 1 object) and shared_ptr both belong the smart pointer.
std::unique_ptr is a smart pointer that owns and manages an... | 44.438202 | 208 | 0.754994 | ChenpoHU |
059befc5d300cb1de500904f493fe1c6ecd876ca | 2,291 | cpp | C++ | examples/ws_server_ex.cpp | raine0524/base_platform | 8d2cee59e53660f3da5a60fe35e2254cc05fdee4 | [
"WTFPL"
] | 6 | 2018-05-04T06:31:33.000Z | 2020-04-01T01:36:28.000Z | examples/ws_server_ex.cpp | raine0524/kbase | 8d2cee59e53660f3da5a60fe35e2254cc05fdee4 | [
"WTFPL"
] | null | null | null | examples/ws_server_ex.cpp | raine0524/kbase | 8d2cee59e53660f3da5a60fe35e2254cc05fdee4 | [
"WTFPL"
] | 1 | 2019-11-16T16:03:54.000Z | 2019-11-16T16:03:54.000Z | #include "crx_pch.h"
class ws_server : public crx::console
{
public:
ws_server() = default;
~ws_server() = default;
bool init(int argc, char **argv) override;
void destroy() override {}
void http_callback(int conn, const std::string& method, const std::string& router,
std::map<std::s... | 30.959459 | 105 | 0.601921 | raine0524 |
059df3d8f54905c2cfd555af47b276ba210c60af | 479 | hpp | C++ | src/hardware/input.hpp | geaz/emu-gameboy | da8a3e6898a0075dcb4371eb772e31695300ae54 | [
"MIT"
] | 47 | 2019-10-12T14:23:47.000Z | 2022-03-22T03:31:43.000Z | src/hardware/input.hpp | geaz/emu-gameboy | da8a3e6898a0075dcb4371eb772e31695300ae54 | [
"MIT"
] | null | null | null | src/hardware/input.hpp | geaz/emu-gameboy | da8a3e6898a0075dcb4371eb772e31695300ae54 | [
"MIT"
] | 2 | 2021-09-20T20:47:21.000Z | 2021-10-12T12:10:46.000Z | #pragma once
#ifndef INPUT_H
#define INPUT_H
#include "memory/mmu.hpp"
#include "../ggb_enums.hpp"
namespace GGB
{
namespace Hardware
{
class Input
{
public:
Input(Mmu& mmu);
void cycle();
void toggleButton(const Enum::PadBut... | 17.740741 | 84 | 0.498956 | geaz |
05a23df66a03fdac8cb117f7acbb8b1778be8a6a | 1,084 | hpp | C++ | include/limitless/ms/material_compiler.hpp | Tehsapper/graphics-engine | 5b7cd93c750ccce7b254c6bb4a13948b2b4ec975 | [
"MIT"
] | null | null | null | include/limitless/ms/material_compiler.hpp | Tehsapper/graphics-engine | 5b7cd93c750ccce7b254c6bb4a13948b2b4ec975 | [
"MIT"
] | null | null | null | include/limitless/ms/material_compiler.hpp | Tehsapper/graphics-engine | 5b7cd93c750ccce7b254c6bb4a13948b2b4ec975 | [
"MIT"
] | null | null | null | #pragma once
#include <limitless/core/shader_compiler.hpp>
namespace Limitless {
enum class ShaderPass;
enum class ModelShader;
class Assets;
class RenderSettings;
}
namespace Limitless::ms {
class Material;
class MaterialCompiler : public ShaderCompiler {
protected:
Assets& asse... | 32.848485 | 114 | 0.732472 | Tehsapper |
05a3012327a2030b571dad91e525b980886852df | 784 | cpp | C++ | DSA/NQueenProblem.cpp | amitbanerjee1999/HACKTOBERFEST-2021 | d6b590f4d871b4e36425d114fb67362c781c6369 | [
"MIT"
] | 2 | 2021-10-02T16:48:56.000Z | 2021-10-02T17:14:26.000Z | DSA/NQueenProblem.cpp | amitbanerjee1999/HACKTOBERFEST-2021 | d6b590f4d871b4e36425d114fb67362c781c6369 | [
"MIT"
] | 3 | 2021-10-30T17:35:27.000Z | 2021-10-31T13:43:04.000Z | DSA/NQueenProblem.cpp | amitbanerjee1999/HACKTOBERFEST-2021 | d6b590f4d871b4e36425d114fb67362c781c6369 | [
"MIT"
] | 4 | 2021-10-30T08:55:42.000Z | 2021-11-10T04:37:51.000Z | // 02 N Queen Problem
//You have to place N chess queens on an N×N chessboard so that no two queens attack each other
#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int x[10];
int cnt=0;
bool place(int k,int i){
for(int j=1;j<=k-1;j++){
if(x[j]==i || abs(k-j)==abs(i-x[j])) return fals... | 15.076923 | 96 | 0.520408 | amitbanerjee1999 |
05a52616c4f7b3ab410c123cc7c9bf351c479b69 | 1,701 | cpp | C++ | editor/src/drawers/RigidbodyDrawer.cpp | jsandham/PhysicsEngine | 51115ee9a59f3bc6e0895113c67563cfd4a1ef3c | [
"MIT"
] | 2 | 2018-12-19T01:52:39.000Z | 2022-03-29T16:04:15.000Z | editor/src/drawers/RigidbodyDrawer.cpp | jsandham/PhysicsEngine | 51115ee9a59f3bc6e0895113c67563cfd4a1ef3c | [
"MIT"
] | null | null | null | editor/src/drawers/RigidbodyDrawer.cpp | jsandham/PhysicsEngine | 51115ee9a59f3bc6e0895113c67563cfd4a1ef3c | [
"MIT"
] | null | null | null | #include "../../include/drawers/RigidbodyDrawer.h"
#include "components/Rigidbody.h"
#include "imgui.h"
using namespace PhysicsEditor;
RigidbodyDrawer::RigidbodyDrawer()
{
}
RigidbodyDrawer::~RigidbodyDrawer()
{
}
void RigidbodyDrawer::render(Clipboard &clipboard, Guid id)
{
InspectorDrawer::render(clipboard,... | 24.652174 | 85 | 0.550265 | jsandham |
05a5e2f851425af745cf7b5f76e634da7e9938b1 | 6,544 | cpp | C++ | test/util/range.cpp | sehe/geometry | 14aa0545936dc2ddb7b5c77ccb940e4efdc8d709 | [
"BSL-1.0"
] | null | null | null | test/util/range.cpp | sehe/geometry | 14aa0545936dc2ddb7b5c77ccb940e4efdc8d709 | [
"BSL-1.0"
] | null | null | null | test/util/range.cpp | sehe/geometry | 14aa0545936dc2ddb7b5c77ccb940e4efdc8d709 | [
"BSL-1.0"
] | 1 | 2020-05-27T13:45:19.000Z | 2020-05-27T13:45:19.000Z | // Boost.Geometry
// Unit Test
// Copyright (c) 2014-2021 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://ww... | 27.611814 | 103 | 0.587408 | sehe |
05a8f0f5ac4c30644df79f29ec90bf9c33718fb2 | 513 | cpp | C++ | src/engine/tools/files.cpp | ArnauPrat/tna | ef4b2a69231058533fde4f997878f75154fc1d6e | [
"Apache-2.0"
] | null | null | null | src/engine/tools/files.cpp | ArnauPrat/tna | ef4b2a69231058533fde4f997878f75154fc1d6e | [
"Apache-2.0"
] | null | null | null | src/engine/tools/files.cpp | ArnauPrat/tna | ef4b2a69231058533fde4f997878f75154fc1d6e | [
"Apache-2.0"
] | null | null | null |
#include "../common.h"
#include "files.h"
namespace tna
{
std::vector<char>
read_file(const std::string& filename)
{
std::ifstream file(filename, std::ios::ate | std::ios::binary);
if (!file.is_open())
{
TNA_LOG_ERROR(TNA_ERROR::E_IO_FILE_NOT_FOUND,
"failed to open file %s",filenam... | 16.548387 | 65 | 0.631579 | ArnauPrat |
05ac2850ff75261a3bc19dacea43a29886c5d3b3 | 1,800 | hpp | C++ | lib/heif/Srcs/common/auxiliarytypeproperty.hpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | lib/heif/Srcs/common/auxiliarytypeproperty.hpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | lib/heif/Srcs/common/auxiliarytypeproperty.hpp | anzksdk/tifig-by | 17a306b27e6e2dd2992e1c0896312047541f4be0 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2015, Nokia Technologies Ltd.
* All rights reserved.
*
* Licensed under the Nokia High-Efficiency Image File Format (HEIF) License (the "License").
*
* You may not use the High-Efficiency Image File Format except in compliance with the License.
* The License accompanies the software and can be fo... | 32.727273 | 113 | 0.724444 | anzksdk |
05b144988fe1b31ff5be94abfc990ac0826ea480 | 2,046 | hpp | C++ | include/Nazara/Graphics/PredefinedShaderStructs.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Graphics/PredefinedShaderStructs.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Graphics/PredefinedShaderStructs.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_GRAPHICS_PREDEFINEDSHADERSTRUCTS_HPP
#define NAZARA_GRAPHICS_PREDEFINEDSHADERSTRUCT... | 28.416667 | 118 | 0.795699 | jayrulez |
05b45aa8788e8ef872c3c12f3cbd1348d9051311 | 20,820 | cpp | C++ | src/HSADebugAgent/CommandLoop.cpp | HSAFoundation/HSA-Debugger-Source-AMD | 47d41b74bfb51f1bec02763feb7ab752ce80272a | [
"MIT"
] | 2 | 2017-05-22T17:22:22.000Z | 2019-05-16T01:45:06.000Z | src/HSADebugAgent/CommandLoop.cpp | HSAFoundation/HSA-Debugger-Source-AMD | 47d41b74bfb51f1bec02763feb7ab752ce80272a | [
"MIT"
] | 2 | 2016-01-28T15:22:07.000Z | 2016-01-28T15:43:42.000Z | src/HSADebugAgent/CommandLoop.cpp | HSAFoundation/HSA-Debugger-Source-AMD | 47d41b74bfb51f1bec02763feb7ab752ce80272a | [
"MIT"
] | 2 | 2016-02-07T18:46:52.000Z | 2020-05-03T22:18:06.000Z | //==============================================================================
// Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools
/// \file
/// \brief Debug thread functions
//==============================================================================
#inclu... | 33.634895 | 106 | 0.633814 | HSAFoundation |
05b7e7e358fa020b2c68b1e54f8edee1d98e7550 | 880 | hpp | C++ | src/tree/nodes.hpp | Azer0s/littl | 3d2bfd979bdeee74cded9f31b62640b45b86a155 | [
"MIT"
] | 4 | 2018-12-30T13:15:55.000Z | 2019-05-12T17:39:38.000Z | src/tree/nodes.hpp | Azer0s/littl | 3d2bfd979bdeee74cded9f31b62640b45b86a155 | [
"MIT"
] | null | null | null | src/tree/nodes.hpp | Azer0s/littl | 3d2bfd979bdeee74cded9f31b62640b45b86a155 | [
"MIT"
] | 1 | 2018-12-29T19:12:07.000Z | 2018-12-29T19:12:07.000Z | #include "program.hpp"
#include "syntaxtree.hpp"
#include "tuple.hpp"
#include "base/arguments.hpp"
#include "base/assignment.hpp"
#include "base/bracket.hpp"
#include "base/calculation.hpp"
#include "base/call.hpp"
#include "base/import.hpp"
#include "base/name.hpp"
#include "base/native.hpp"
#include "base/return.hp... | 25.882353 | 37 | 0.761364 | Azer0s |
05b8f9f44a8e698f7be8325232e8066aaa74e5c0 | 6,312 | hh | C++ | src/io_visitor.hh | causalpathlab/mmutilR | 292a70f89336c7563b2fa9f1f62e59d219739e24 | [
"MIT"
] | 1 | 2021-07-23T07:49:10.000Z | 2021-07-23T07:49:10.000Z | src/io_visitor.hh | YPARK/mmutilR | ede9948fe9a0124b9f417d010b7a376dff64ebb9 | [
"MIT"
] | 2 | 2022-01-18T22:07:44.000Z | 2022-03-10T16:58:34.000Z | src/io_visitor.hh | YPARK/mmutilR | ede9948fe9a0124b9f417d010b7a376dff64ebb9 | [
"MIT"
] | null | null | null | #include <string>
#include "gzstream.hh"
#include "bgzstream.hh"
#include "strbuf.hh"
#include "util.hh"
#ifdef __cplusplus
extern "C" {
#endif
#include "bgzf.h"
#ifdef __cplusplus
}
#endif
// #include "bgzf.h"
#ifndef IO_VISITOR_HH_
#define IO_VISITOR_HH_
template <typename FUN>
void visit_matrix_market_file(co... | 25.248 | 80 | 0.480355 | causalpathlab |
05bb651fbb18e7156dabefebecc2a40c48b2fe26 | 6,713 | cpp | C++ | light/src/window.cpp | jaredtao/QtOpenGL | 21f2b14fbf8961b5eb7043660f740ef69a3ac178 | [
"MIT"
] | 51 | 2019-06-11T05:59:41.000Z | 2022-03-16T08:47:35.000Z | light/src/window.cpp | XiaoChang0519/QtOpenGL | 21f2b14fbf8961b5eb7043660f740ef69a3ac178 | [
"MIT"
] | 2 | 2019-08-31T07:59:25.000Z | 2022-01-19T01:41:40.000Z | light/src/window.cpp | XiaoChang0519/QtOpenGL | 21f2b14fbf8961b5eb7043660f740ef69a3ac178 | [
"MIT"
] | 23 | 2019-05-18T06:56:08.000Z | 2022-03-14T03:07:29.000Z | #include "window.h"
#include <QMouseEvent>
#include <QPainter>
#include <QtMath>
Window::Window(QWindow *parent)
: GLWindow(NoPartialUpdate, parent), materialV(nullptr), materialF(nullptr), lightF(nullptr), lightV(nullptr), cube(0), texture(0), angularSpeed(0)
{
}
Window::~Window()
{
makeCurrent();
delete... | 28.444915 | 151 | 0.640697 | jaredtao |
05bc42ec6d24946d6d4baebe1769066cccd097f0 | 2,552 | hpp | C++ | src/nekInterface/nekInterfaceAdapter.hpp | spatel81/nekRS | ea67c182889899fde55b306f4704b1c1c8741cf4 | [
"BSD-3-Clause"
] | null | null | null | src/nekInterface/nekInterfaceAdapter.hpp | spatel81/nekRS | ea67c182889899fde55b306f4704b1c1c8741cf4 | [
"BSD-3-Clause"
] | null | null | null | src/nekInterface/nekInterfaceAdapter.hpp | spatel81/nekRS | ea67c182889899fde55b306f4704b1c1c8741cf4 | [
"BSD-3-Clause"
] | null | null | null | #if !defined(nek_interface_)
#define nek_interface_
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <dlfcn.h>
#include <mpi.h>
#include "setupAide.hpp"
#include "nrs.hpp"
#define DECLARE_USER_FUNC(a) void nek_ ## a(void);
#define DEFINE_USER_FUNC(a) void nek_ ## a(void) { (* a ## _ptr)(); }
type... | 21.627119 | 91 | 0.690831 | spatel81 |
05be24c4868cacbcd773242abb03a69a9fc97a8f | 914 | cpp | C++ | src/vpp/engine/tracker/none.cpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | 1 | 2020-06-18T14:01:50.000Z | 2020-06-18T14:01:50.000Z | src/vpp/engine/tracker/none.cpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | src/vpp/engine/tracker/none.cpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | /**
*
* @file vpp/engine/tracker/none.cpp
*
* @brief This is the no VPP history tracker implementation file
*
* This file is part of the VPP framework (see link).
*
* @author Olivier Stoltz-Douchet <ezdayo@gmail.com>
*
* @copyright (c) 2019-2020 Olivier Stoltz-Douchet
* @license http... | 22.292683 | 68 | 0.645514 | ezdayo |
05c41a77133772830b3d5c26666f24d14ef6669b | 1,930 | inl | C++ | Sources/Engine/Core/Math/Segment.inl | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Engine/Core/Math/Segment.inl | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Engine/Core/Math/Segment.inl | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | /*=============================================================================
Segment.inl
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
SE_INLINE Segment::Segment()
{
}
SE_INLINE Segment::Segment(const Vector3& p0, const Vector3& p1)
... | 20.104167 | 91 | 0.660104 | jdelezenne |
05c80fa012b9322c3fcc32252007b42299d5b9ae | 8,079 | cc | C++ | sstmac/hardware/vtk/vtkTrafficSource.cc | jpkenny/sst-macro | bcc1f43034281885104962586d8b104df84b58bd | [
"BSD-Source-Code"
] | 20 | 2017-01-26T09:28:23.000Z | 2022-01-17T11:31:55.000Z | sstmac/hardware/vtk/vtkTrafficSource.cc | jpkenny/sst-macro | bcc1f43034281885104962586d8b104df84b58bd | [
"BSD-Source-Code"
] | 542 | 2016-03-29T22:50:58.000Z | 2022-03-22T20:14:08.000Z | sstmac/hardware/vtk/vtkTrafficSource.cc | jpkenny/sst-macro | bcc1f43034281885104962586d8b104df84b58bd | [
"BSD-Source-Code"
] | 36 | 2016-03-10T21:33:54.000Z | 2021-12-01T07:44:12.000Z | /**
Copyright 2009-2021 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering ... | 32.841463 | 101 | 0.688328 | jpkenny |
05c96d16b1245aa816f9564d9bcb22ac4348dd4d | 291 | hpp | C++ | src/renderer/ShaderProgram.hpp | u14-team/egin | 136f925150c63cab602090f5ce8ebad57f1e3b3f | [
"Apache-2.0"
] | null | null | null | src/renderer/ShaderProgram.hpp | u14-team/egin | 136f925150c63cab602090f5ce8ebad57f1e3b3f | [
"Apache-2.0"
] | null | null | null | src/renderer/ShaderProgram.hpp | u14-team/egin | 136f925150c63cab602090f5ce8ebad57f1e3b3f | [
"Apache-2.0"
] | 3 | 2019-12-20T10:31:03.000Z | 2021-05-20T18:14:33.000Z | #include <string>
#include <bgfx/bgfx.h>
class ShaderProgram {
private:
std::string name;
bgfx::ProgramHandle programHandle;
bgfx::ShaderHandle vsh;
bgfx::ShaderHandle fsh;
public:
ShaderProgram(std::string name);
void load();
const bgfx::ProgramHandle getProgram() const;
}; | 20.785714 | 48 | 0.728522 | u14-team |
fe5193604d13e6f9bc28c4e2c663104c3fdfa3ad | 96 | cpp | C++ | src/opengl/opengl_version/test/TestClearColor.cpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | null | null | null | src/opengl/opengl_version/test/TestClearColor.cpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | 66 | 2021-09-27T23:58:02.000Z | 2022-01-10T20:41:36.000Z | src/opengl/opengl_version/test/TestClearColor.cpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | null | null | null | //
// Created by pcvii on 11/29/2021.
//
#include "TestClearColor.hpp"
#include "Renderer.hpp"
| 13.714286 | 34 | 0.6875 | Sebanisu |
fe5bb53611e335d04c60f27201c50bf6cc89f2f8 | 1,523 | cpp | C++ | tests/concatenate_byte_data.cpp | tobq/cpp20-internet-client | 6bbaccbba8f0f755594ace7bc8fe8d3be03a8f8a | [
"MIT"
] | 29 | 2020-08-19T22:29:22.000Z | 2022-03-17T20:05:09.000Z | tests/concatenate_byte_data.cpp | avocadoboi/cpp20_http | 74ba9f834178419c68c0fd994c8b4734a7f22542 | [
"MIT"
] | null | null | null | tests/concatenate_byte_data.cpp | avocadoboi/cpp20_http | 74ba9f834178419c68c0fd994c8b4734a7f22542 | [
"MIT"
] | 8 | 2021-05-21T03:55:30.000Z | 2022-03-01T10:47:28.000Z | #include "testing_header.hpp"
TEST_CASE("utils::concatenate_byte_data with different types of byte data.") {
auto const expected_result = utils::string_to_data<std::byte>(
"This is a test of my very own function called \"concatenate_byte_data\". Some numbers: \x5\x9\xA1\xFB."sv
);
auto const result... | 47.59375 | 116 | 0.637557 | tobq |
fe5fd8298a06e57dc3186187f5ea95a72a78d5ab | 454 | cpp | C++ | client/include/game/CRGBA.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 97 | 2019-01-13T20:19:19.000Z | 2022-02-27T18:47:11.000Z | client/include/game/CRGBA.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 92 | 2019-01-23T23:02:31.000Z | 2022-03-23T19:59:40.000Z | client/include/game/CRGBA.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 69 | 2019-01-13T22:01:40.000Z | 2022-03-09T00:55:49.000Z | /*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CRGBA.h"
CRGBA::CRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{
((void (... | 26.705882 | 120 | 0.693833 | MayconFelipeA |
fe61f0efc806b58c569ba492ce5dec98100090bd | 14,912 | cpp | C++ | Source/IPropertiesClient.cpp | ntclark/Graphic | 86acc119d172bb53c1666432538836b461d8a3f2 | [
"BSD-3-Clause"
] | 12 | 2018-03-15T00:20:55.000Z | 2021-08-11T10:02:15.000Z | Source/IPropertiesClient.cpp | ntclark/Graphic | 86acc119d172bb53c1666432538836b461d8a3f2 | [
"BSD-3-Clause"
] | null | null | null | Source/IPropertiesClient.cpp | ntclark/Graphic | 86acc119d172bb53c1666432538836b461d8a3f2 | [
"BSD-3-Clause"
] | 2 | 2019-04-09T17:15:31.000Z | 2020-12-05T19:52:59.000Z | // Copyright 2018 InnoVisioNate Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "Graphic.h"
#include "utils.h"
#include "Graphic_resource.h"
#include "List.cpp"
long __stdcall G::_IGPropertiesClient::QueryInterface(REFIID r... | 33.285714 | 165 | 0.658597 | ntclark |
fe63104fc28cfdebef72a41454b4e2ad76eed783 | 8,053 | cpp | C++ | app/src/main/cpp/LevelManager.cpp | ArnisLielturks/Urho3D-Project-Template | 998d12e2470ec8a43ec552a1c2182eecfed63ca1 | [
"MIT"
] | 48 | 2019-01-06T02:17:44.000Z | 2021-09-28T15:10:30.000Z | app/src/main/cpp/LevelManager.cpp | urnenfeld/Urho3D-Project-Template | efd45e4edcffb232753010a3ee623d6cf9bc1c26 | [
"MIT"
] | 17 | 2019-01-22T17:48:58.000Z | 2021-04-04T17:52:56.000Z | app/src/main/cpp/LevelManager.cpp | ArnisLielturks/Urho3D-Project-Template | 998d12e2470ec8a43ec552a1c2182eecfed63ca1 | [
"MIT"
] | 18 | 2019-02-18T13:55:41.000Z | 2021-04-02T14:28:00.000Z | #include <Urho3D/UI/UI.h>
#include <Urho3D/IO/Log.h>
#include <Urho3D/Core/Context.h>
#include <Urho3D/Core/CoreEvents.h>
#include <Urho3D/Resource/Localization.h>
#include <Urho3D/Engine/DebugHud.h>
#include <Urho3D/Resource/ResourceCache.h>
#include <Urho3D/Graphics/Graphics.h>
#include "LevelManager.h"
#include "Lev... | 30.854406 | 180 | 0.632683 | ArnisLielturks |
fe652d742fbce55d525830827e073bebfe65bd7a | 11,382 | hpp | C++ | ThirdParty/Misc/Inc/imgui_entt_entity_editor.hpp | ydeagames/3DShootingGame | f93e15179452810bd55fbfcedb6c162698296ec4 | [
"MIT"
] | 2 | 2020-03-30T05:11:51.000Z | 2022-01-30T09:04:40.000Z | ThirdParty/Misc/Inc/imgui_entt_entity_editor.hpp | ydeagames/3DShootingGame | f93e15179452810bd55fbfcedb6c162698296ec4 | [
"MIT"
] | null | null | null | ThirdParty/Misc/Inc/imgui_entt_entity_editor.hpp | ydeagames/3DShootingGame | f93e15179452810bd55fbfcedb6c162698296ec4 | [
"MIT"
] | 2 | 2020-03-30T05:11:52.000Z | 2020-10-28T02:06:35.000Z | // for the license, see the end of the file
#pragma once
#include <functional>
//#include <entt/entt.hpp>
//#include <imgui.h>
// if you have font awesome or something comparable you can set this to a wastebin
#ifndef ESS_IMGUI_ENTT_E_E_DELETE_COMP_STR
#define ESS_IMGUI_ENTT_E_E_DELETE_COMP_STR "-"
#endif
namespace... | 31.441989 | 100 | 0.659989 | ydeagames |
fe6749855e97d064b0b3c3f99e84bc70a12c546d | 148 | cpp | C++ | CPP1/outFile.cpp | mrnettek/CPP | 25127ae2dea8c4841787ae94669c56a716ee2bea | [
"MIT"
] | null | null | null | CPP1/outFile.cpp | mrnettek/CPP | 25127ae2dea8c4841787ae94669c56a716ee2bea | [
"MIT"
] | null | null | null | CPP1/outFile.cpp | mrnettek/CPP | 25127ae2dea8c4841787ae94669c56a716ee2bea | [
"MIT"
] | null | null | null | #include <fstream>
using namespace std;
int main() {
ofstream f;
f.open("output.txt");
f << "Hello" << endl;
f.close();
return 0;
}
| 13.454545 | 24 | 0.567568 | mrnettek |
fe6c2a80a34dbd35cf911c7dceb4f9b280846d1b | 2,836 | hpp | C++ | include/ext/memory/tagged_pointer.hpp | extcpp/base | 26b1384cbbd5cb3171e4cd22c8eb5f09ec0c5732 | [
"MIT"
] | null | null | null | include/ext/memory/tagged_pointer.hpp | extcpp/base | 26b1384cbbd5cb3171e4cd22c8eb5f09ec0c5732 | [
"MIT"
] | 22 | 2019-10-15T20:47:02.000Z | 2020-01-26T20:26:19.000Z | include/ext/memory/tagged_pointer.hpp | extcpp/base | 26b1384cbbd5cb3171e4cd22c8eb5f09ec0c5732 | [
"MIT"
] | 1 | 2020-09-24T08:53:15.000Z | 2020-09-24T08:53:15.000Z | // Copyright - 2019 - Jan Christoph Uhde <Jan@UhdeJC.com>
#ifndef EXT_MEMORY_TAGGED_POINTER_HEADER
#define EXT_MEMORY_TAGGED_POINTER_HEADER
#include <cassert>
#include <ext/memory/align.hpp>
#include <memory>
namespace ext { namespace memory {
template<typename T, std::uintptr_t Alignment = std::alignment_of_v<T>>
c... | 28.079208 | 95 | 0.647391 | extcpp |
fe6d87f66c6bd2e963537770379d511499c43283 | 1,591 | cpp | C++ | src/windows/directinput/DirectInputDevice.cpp | noorus/nil | af982787d4cb052ffd7414ed5aed16c4851b1403 | [
"MIT"
] | 9 | 2015-07-20T14:49:49.000Z | 2022-01-17T02:52:54.000Z | src/windows/directinput/DirectInputDevice.cpp | noorus/nil | af982787d4cb052ffd7414ed5aed16c4851b1403 | [
"MIT"
] | 5 | 2015-03-30T02:26:24.000Z | 2021-07-26T21:57:20.000Z | src/windows/directinput/DirectInputDevice.cpp | noorus/nil | af982787d4cb052ffd7414ed5aed16c4851b1403 | [
"MIT"
] | 3 | 2015-06-19T20:29:17.000Z | 2017-09-19T03:36:55.000Z | #include "nilConfig.h"
#include "nil.h"
#include "nilUtil.h"
#include "nilWindows.h"
#ifdef NIL_PLATFORM_WINDOWS
namespace nil {
inline Device::Type resolveDIDeviceType( unsigned long type )
{
type = GET_DIDEVICE_TYPE( type );
switch ( type )
{
case DI8DEVTYPE_MOUSE:
return Device::De... | 23.057971 | 92 | 0.667505 | noorus |
fe6e8298d01be7e76ec4792a6b33f5c8d96ba518 | 9,939 | cpp | C++ | deploy/third_engine/demo_mnn_kpts/keypoint_postprocess.cpp | Amanda-Barbara/PaddleDetection | 65ac13074eaaa2447c644a2df71969d8a3dd1fae | [
"Apache-2.0"
] | 3 | 2022-03-23T08:48:06.000Z | 2022-03-28T01:59:34.000Z | deploy/third_engine/demo_mnn_kpts/keypoint_postprocess.cpp | Amanda-Barbara/PaddleDetection | 65ac13074eaaa2447c644a2df71969d8a3dd1fae | [
"Apache-2.0"
] | null | null | null | deploy/third_engine/demo_mnn_kpts/keypoint_postprocess.cpp | Amanda-Barbara/PaddleDetection | 65ac13074eaaa2447c644a2df71969d8a3dd1fae | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... | 38.374517 | 79 | 0.574001 | Amanda-Barbara |
fe6ffedbb9eee4c15994f8f62e89cb79ba7e7d37 | 224 | cpp | C++ | 2017/APP2/Q.2.cpp | HemensonDavid/Estudando-C | fb5a33b399b369dce789bf77c06834da71fe0a4d | [
"MIT"
] | null | null | null | 2017/APP2/Q.2.cpp | HemensonDavid/Estudando-C | fb5a33b399b369dce789bf77c06834da71fe0a4d | [
"MIT"
] | null | null | null | 2017/APP2/Q.2.cpp | HemensonDavid/Estudando-C | fb5a33b399b369dce789bf77c06834da71fe0a4d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int num;
int r;
cout<<"Digite um numero: ";
cin>>num;
r=num;
for(int i=num-1;i!=0;i--){
r*=i;
}
cout<<"O fatorial de "<<num<<" eh: "<<r<<endl;
return 0;
}
| 12.444444 | 47 | 0.558036 | HemensonDavid |
fe76c1e80ecdf1d48f721afd552ffa5030bbd5d7 | 989 | cpp | C++ | MyCashFlow/EditStartDateDlg.cpp | tdmurtmub/my_cashflow_w32 | 37754f22ba646dd5bf12e69c64b5322148586c08 | [
"MIT"
] | 1 | 2020-12-01T23:25:09.000Z | 2020-12-01T23:25:09.000Z | MyCashFlow/EditStartDateDlg.cpp | tdmurtmub/my_cashflow_w32 | 37754f22ba646dd5bf12e69c64b5322148586c08 | [
"MIT"
] | null | null | null | MyCashFlow/EditStartDateDlg.cpp | tdmurtmub/my_cashflow_w32 | 37754f22ba646dd5bf12e69c64b5322148586c08 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "EditStartDateDlg.h"
#include "MyMoney.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
using namespace app;
CEditStartDateDlg::CEditStartDateDlg(const CDate & aStartDate, CWnd* pParent /*=NULL*/)
: CDialog(CEditStartDat... | 23.547619 | 88 | 0.737108 | tdmurtmub |
fe77d1b7cb7583a963840c83628a2cd0db07372e | 8,536 | cpp | C++ | src/sm/log_carray.cpp | lslersch/zero | ab779235f3c3bf58d6a3aa9d2a0a5296578ee498 | [
"Spencer-94"
] | 27 | 2015-04-21T08:52:37.000Z | 2022-03-18T03:38:58.000Z | src/sm/log_carray.cpp | lslersch/zero | ab779235f3c3bf58d6a3aa9d2a0a5296578ee498 | [
"Spencer-94"
] | 24 | 2015-07-04T10:45:41.000Z | 2018-05-03T08:52:36.000Z | src/sm/log_carray.cpp | lslersch/zero | ab779235f3c3bf58d6a3aa9d2a0a5296578ee498 | [
"Spencer-94"
] | 15 | 2015-03-31T09:57:10.000Z | 2021-06-09T13:44:58.000Z | /*
* (c) Copyright 2014, Hewlett-Packard Development Company, LP
*/
/*
Shore-MT -- Multi-threaded port of the SHORE storage manager
Copyright (c) 2010-2014
Data Intensive Applications and Systems Labaratory (DIAS)
Ecole Polytechnique Federale de Lausanne
... | 39.88785 | 93 | 0.619963 | lslersch |
fe77e716b9e8cb38e71bd3001b8a2cd47241b1ac | 6,605 | inl | C++ | src/core/misc/CmdLine.inl | TheJelmega/engine | 39778e153a3214fb54d7c88295289a5128cd248f | [
"0BSD"
] | 3 | 2021-09-04T20:36:23.000Z | 2022-01-20T14:16:43.000Z | src/core/misc/CmdLine.inl | TheJelmega/engine | 39778e153a3214fb54d7c88295289a5128cd248f | [
"0BSD"
] | 1 | 2021-11-02T23:26:26.000Z | 2021-11-02T23:26:26.000Z | src/core/misc/CmdLine.inl | TheJelmega/engine | 39778e153a3214fb54d7c88295289a5128cd248f | [
"0BSD"
] | null | null | null | #pragma once
#if __RESHARPER__
#include "CmdLine.h"
#endif
#include "core/logging/Logger.h"
namespace Core
{
template <TryParsable T>
CmdLine::Value<T>::Value(T& val)
: pVal(&val)
{
}
template <TryParsable T>
bool CmdLine::Value<T>::Parse(const String& str) noexcept
{
if (Optional<T> res... | 22.016667 | 130 | 0.568509 | TheJelmega |
fe7a3dd3ebaebc015d0981c28b631826a7f0662a | 50 | cpp | C++ | Unreal/CtaCpp/Runtime/Scripts/Core/AttachmentTarget.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | 3 | 2021-06-02T16:44:02.000Z | 2022-01-24T20:20:10.000Z | Unreal/CtaCpp/Runtime/Scripts/Core/AttachmentTarget.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | Unreal/CtaCpp/Runtime/Scripts/Core/AttachmentTarget.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | #include "AttachmentTarget.h"
namespace Cta
{
}
| 8.333333 | 30 | 0.72 | areilly711 |
fe7dd8906d689621572135b8765ccb63f19bcf25 | 15,842 | cpp | C++ | DataStructures/src/singleFileSystem/FreeSpaceManager.cpp | Kay01010101/PredictVersion | adde9de5dd39b2f22e103f3294d1beab4f327d62 | [
"MIT"
] | null | null | null | DataStructures/src/singleFileSystem/FreeSpaceManager.cpp | Kay01010101/PredictVersion | adde9de5dd39b2f22e103f3294d1beab4f327d62 | [
"MIT"
] | null | null | null | DataStructures/src/singleFileSystem/FreeSpaceManager.cpp | Kay01010101/PredictVersion | adde9de5dd39b2f22e103f3294d1beab4f327d62 | [
"MIT"
] | null | null | null | #include "singleFileSystem/FreeSpaceManager.h"
#include "singleFileSystem/PageFileManager.h"
#include "singleFileSystem/SFSArray.h"
#include "streams/DS_Stream.h"
#include "singleFileSystem/SFSUtils.h"
using namespace DataStructures;
void FreeSpaceManager::LoadPFS()
{
mPFSPageMap->SetSize(0);
mPFS = 0;
in... | 33.922912 | 157 | 0.576442 | Kay01010101 |
fe7f1cd95101ddf224f6e210cffcbca434e26468 | 281 | hpp | C++ | hiro/gtk/widget/combo-edit-item.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | hiro/gtk/widget/combo-edit-item.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | hiro/gtk/widget/combo-edit-item.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | #if defined(Hiro_ComboEdit)
namespace hiro {
struct pComboEditItem : pObject {
Declare(ComboEditItem, Object)
auto setIcon(const image& icon) -> void;
auto setText(const string& text) -> void;
auto _parent() -> maybe<pComboEdit&>;
GtkTreeIter gtkIter;
};
}
#endif
| 14.789474 | 43 | 0.701068 | CasualPokePlayer |
fe7fe64bbf6524822b6ac1e21df4df77ef817db0 | 1,112 | cpp | C++ | src/connection.cpp | rikdev/channels | de31cc285b15f8ae1c863b85a019f78027613d17 | [
"MIT"
] | 14 | 2019-06-04T12:50:32.000Z | 2021-03-17T16:46:46.000Z | src/connection.cpp | rikdev/channels | de31cc285b15f8ae1c863b85a019f78027613d17 | [
"MIT"
] | 1 | 2020-07-24T11:12:52.000Z | 2020-07-24T11:17:11.000Z | src/connection.cpp | rikdev/channels | de31cc285b15f8ae1c863b85a019f78027613d17 | [
"MIT"
] | null | null | null | #include "connection.h"
#include "detail/shared_state_base.h"
#include <cassert>
#include <utility>
namespace channels {
// connection
connection::connection(connection&& other) noexcept
: shared_state_{std::move(other.shared_state_)}
, socket_{other.socket_}
{
other.socket_ = nullptr;
}
connection& connection::... | 17.935484 | 95 | 0.735612 | rikdev |
fe853c704d1a78e730194c551ba9fc2c2bae22cc | 51 | hpp | C++ | src/boost_mpl_aux__preprocessed_mwcw_or.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_aux__preprocessed_mwcw_or.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_aux__preprocessed_mwcw_or.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/aux_/preprocessed/mwcw/or.hpp>
| 25.5 | 50 | 0.784314 | miathedev |
fe87bd8d99a311c825678886730952a93d80a0ea | 470 | cpp | C++ | src/0443.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | 38 | 2020-03-05T06:38:32.000Z | 2022-03-11T02:32:14.000Z | src/0443.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | null | null | null | src/0443.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | 16 | 2020-04-02T15:13:20.000Z | 2022-02-25T07:34:35.000Z | class Solution {
public:
int compress(vector<char>& chars) {
int sz = size(chars);
int l = 0;
int r = 0;
int cur = 0;
while (l != sz) {
while (r < sz && chars[l] == chars[r]) {
++r;
}
chars[cur] = chars[l];
if (r - l > 1) {
string cnt = to_string(r - l);
... | 18.8 | 46 | 0.397872 | downdemo |
fe888672f5a399d5b147c1de08e06c2ce63f8bcf | 577 | cpp | C++ | src/ast/boolean.cpp | as3richa/ploy | 531f679aba441d0999c5eaa812e51faa564da5df | [
"Unlicense",
"MIT"
] | null | null | null | src/ast/boolean.cpp | as3richa/ploy | 531f679aba441d0999c5eaa812e51faa564da5df | [
"Unlicense",
"MIT"
] | null | null | null | src/ast/boolean.cpp | as3richa/ploy | 531f679aba441d0999c5eaa812e51faa564da5df | [
"Unlicense",
"MIT"
] | null | null | null | #include <cassert>
#include "boolean.h"
namespace ploy { namespace AST
{
const Boolean Boolean::singletonFalse(false);
const Boolean Boolean::singletonTrue(true);
std::string Boolean::inspect(void) const
{
return (this->value) ? "#t" : "#f";
}
const Boolean* Boolean::fromBool(bool value)
{
return (value) ? &Boo... | 21.37037 | 98 | 0.670711 | as3richa |
fe8b10551e5c0892d3db566c1911dc8ca2af2a8e | 1,406 | cpp | C++ | graphics/gl/program.cpp | loochek/armasa-path-tracer | 307f57f10d54e418b1048b462425133531800e9c | [
"MIT"
] | 1 | 2021-10-06T11:00:58.000Z | 2021-10-06T11:00:58.000Z | graphics/gl/program.cpp | loochek/armasa-path-tracer | 307f57f10d54e418b1048b462425133531800e9c | [
"MIT"
] | 1 | 2021-10-11T10:29:26.000Z | 2021-10-11T10:29:26.000Z | graphics/gl/program.cpp | JakMobius/armasa-path-tracer | b57dda3863b51135fc3de91393ecc42fd756081c | [
"MIT"
] | null | null | null | //
// Created by Артем on 29.09.2021.
//
#include <GL/glew.h>
#include "program.hpp"
#include "vertex_array_object_factory.hpp"
namespace Graphics {
Program::Program(): shaders() {}
Program::~Program() {
for(auto shader : shaders) delete shader;
}
void Program::add_shader(Shader* shader) {
shaders.push_bac... | 22.677419 | 74 | 0.661451 | loochek |
fe8fbcd030901d7d5396eab7a135cba64e7ea877 | 626 | cpp | C++ | problems/acmicpc_1747.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_1747.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_1747.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
using namespace std;
bool palindrome(int n) {
vector<int> v;
while(n) {
v.push_back(n % 10);
n /= 10;
}
for(int i = 0; i < v.size() / 2; i++) {
if(v[i] != v[v.size() - i - 1]) return false;
}
return true;
}
vector<int> prime() {
vector<int> p;
auto b = new bool[1003002... | 18.411765 | 51 | 0.525559 | qawbecrdtey |
fe912c379c7255d64ee215ccd986254a2bbbd6ed | 6,640 | hpp | C++ | libvast/vast/detail/iterator.hpp | lava/vast | 0bc9e3c12eb31ec50dd0270626d55e84b2255899 | [
"BSD-3-Clause"
] | 249 | 2019-08-26T01:44:45.000Z | 2022-03-26T14:12:32.000Z | libvast/vast/detail/iterator.hpp | lava/vast | 0bc9e3c12eb31ec50dd0270626d55e84b2255899 | [
"BSD-3-Clause"
] | 586 | 2019-08-06T13:10:36.000Z | 2022-03-31T08:31:00.000Z | libvast/vast/detail/iterator.hpp | satta/vast | 6c7587effd4265c4a5de23252bc7c7af3ef78bee | [
"BSD-3-Clause"
] | 37 | 2019-08-16T02:01:14.000Z | 2022-02-21T16:13:59.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2016 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "vast/detail/operators.hpp"
#inc... | 22.662116 | 79 | 0.629217 | lava |
fe91390d967e32a513ef3ff7963235d84eed8b24 | 240 | cpp | C++ | android-31/android/renderscript/Script_Builder.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/renderscript/Script_Builder.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/renderscript/Script_Builder.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "./Script_Builder.hpp"
namespace android::renderscript
{
// Fields
// QJniObject forward
Script_Builder::Script_Builder(QJniObject obj) : JObject(obj) {}
// Constructors
// Methods
} // namespace android::renderscript
| 16 | 65 | 0.720833 | YJBeetle |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.