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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72c1e2a0e1b07c400d95eb0841381aae9b6d107c | 4,264 | hpp | C++ | librt/include/material.hpp | julitopower/RayTracingWeekend | 0b9035f596fe33b39eb8a476a729a01dfecd2a1e | [
"MIT"
] | 1 | 2018-12-22T00:12:10.000Z | 2018-12-22T00:12:10.000Z | librt/include/material.hpp | julitopower/RayTracingWeekend | 0b9035f596fe33b39eb8a476a729a01dfecd2a1e | [
"MIT"
] | null | null | null | librt/include/material.hpp | julitopower/RayTracingWeekend | 0b9035f596fe33b39eb8a476a729a01dfecd2a1e | [
"MIT"
] | 1 | 2019-04-09T12:51:49.000Z | 2019-04-09T12:51:49.000Z | #ifndef MATERIAL_HPP
#define MATERIAL_HPP
#include <map>
#include <memory>
#include <string>
#include <vector.hpp>
#include <texture.hpp>
namespace rt {
class Hit;
class Ray;
/*!
* \brief Abstract representation of a material that can be associated with
* a object. Material is also used to decorate a Hit.... | 25.842424 | 94 | 0.681989 | julitopower |
72c2f39b0ea0c6fdb9d72585fcaf9b3bc39297e7 | 1,171 | cpp | C++ | Interceptor/FunctionDepth.cpp | 19317362/Interceptor | a64e8283454cd70b6e16161c322dc4d85663caa9 | [
"MIT"
] | 20 | 2016-04-14T18:29:46.000Z | 2022-02-17T18:00:29.000Z | Interceptor/FunctionDepth.cpp | 19317362/Interceptor | a64e8283454cd70b6e16161c322dc4d85663caa9 | [
"MIT"
] | null | null | null | Interceptor/FunctionDepth.cpp | 19317362/Interceptor | a64e8283454cd70b6e16161c322dc4d85663caa9 | [
"MIT"
] | 1 | 2018-11-01T01:43:49.000Z | 2018-11-01T01:43:49.000Z | #include "FunctionDepth.h"
#include <thread>
using namespace Interceptor;
std::size_t FuntionDepth::operator++() {
auto id = std::this_thread::get_id();
UniqueGuard guard(m_mutex);
auto iter = m_function_depth.find(id);
if (iter != m_function_depth.end()) {
(++iter->second);
return iter->second... | 20.54386 | 66 | 0.653288 | 19317362 |
72c5793c91c9598f1df5c9fe7dd46f1ddd55ed61 | 2,339 | cc | C++ | src/cc/libclient/utils.cc | chanwit/qfs | dc6ba65f42ba55ed7d47e8a0cbf025096304f5d1 | [
"Apache-2.0"
] | null | null | null | src/cc/libclient/utils.cc | chanwit/qfs | dc6ba65f42ba55ed7d47e8a0cbf025096304f5d1 | [
"Apache-2.0"
] | null | null | null | src/cc/libclient/utils.cc | chanwit/qfs | dc6ba65f42ba55ed7d47e8a0cbf025096304f5d1 | [
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------- -*- Mode: C++ -*-
// $Id$
//
// Created 2006/08/31
// Author: Sriram Rao
// Mike Ovsiannikov
//
// Copyright 2008-2012 Quantcast Corp.
// Copyright 2006-2008 Kosmix Corp.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Ap... | 25.988889 | 78 | 0.54254 | chanwit |
72c8b0e1c3c67a575cea76d95ca253c44ac1feeb | 392 | hpp | C++ | include/cgl/map.hpp | sdragonx/cgl | d8d45d3a3930bc8f3d0851371760742fda4733b8 | [
"MIT"
] | 1 | 2020-12-30T06:35:47.000Z | 2020-12-30T06:35:47.000Z | include/cgl/map.hpp | sdragonx/cgl | d8d45d3a3930bc8f3d0851371760742fda4733b8 | [
"MIT"
] | null | null | null | include/cgl/map.hpp | sdragonx/cgl | d8d45d3a3930bc8f3d0851371760742fda4733b8 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2005-2020 sdragonx (mail:sdragonx@foxmail.com)
map.hpp
2018-10-20 08:57:26
*/
#ifndef MAP_HPP_20181020085726
#define MAP_HPP_20181020085726
#include <cgl/std/map/cmap.hpp>
#include <cgl/std/map/dual_map.hpp>
#include <cgl/std/map/idmap.hpp>
#include <cgl/std/map/hashmap.hpp>
nam... | 17.818182 | 62 | 0.709184 | sdragonx |
72d034f5d0523280715e05e1f3aeedad78e97678 | 1,972 | cpp | C++ | src/catamorph/interpreters/variable_ordering.cpp | geisserf/lemon-dd | e7518886ce7dc5960f16d799c8ff6450ea67e7ae | [
"BSL-1.0"
] | 2 | 2018-10-26T11:21:13.000Z | 2020-06-04T11:31:03.000Z | src/catamorph/interpreters/variable_ordering.cpp | geisserf/lemon-dd | e7518886ce7dc5960f16d799c8ff6450ea67e7ae | [
"BSL-1.0"
] | 10 | 2018-11-28T08:55:51.000Z | 2018-12-04T09:15:17.000Z | src/catamorph/interpreters/variable_ordering.cpp | geisserf/lemon-dd | e7518886ce7dc5960f16d799c8ff6450ea67e7ae | [
"BSL-1.0"
] | null | null | null | #include "variable_ordering.h"
#include "../../parser.h"
#include "dependencies.h"
#include <iomanip>
#include <iostream>
#include <stack>
ASTNode::ASTNode() : value("{}"), topo_order(-1), variable(false) {}
ASTNode::ASTNode(double value)
: value(std::to_string(value)), topo_order(0), variable(false) {}
ASTNode... | 29.432836 | 80 | 0.60497 | geisserf |
72db594e5f5b029db43a3c22f46144f096f92012 | 2,749 | cxx | C++ | Readers/DXFReader/vtkDXFBlock.cxx | ObjectivitySRC/PVGPlugins | 5e24150262af751159d719cc810620d1770f2872 | [
"BSD-2-Clause"
] | 4 | 2016-01-21T21:45:43.000Z | 2021-07-31T19:24:09.000Z | Readers/DXFReader/vtkDXFBlock.cxx | ObjectivitySRC/PVGPlugins | 5e24150262af751159d719cc810620d1770f2872 | [
"BSD-2-Clause"
] | null | null | null | Readers/DXFReader/vtkDXFBlock.cxx | ObjectivitySRC/PVGPlugins | 5e24150262af751159d719cc810620d1770f2872 | [
"BSD-2-Clause"
] | 6 | 2015-08-31T06:21:03.000Z | 2021-07-31T19:24:10.000Z | // By: Eric Daoust && Matthew Livingstone
#include "vtkDXFBlock.h"
#include <vtksys/ios/sstream>
#include "vtkObjectFactory.h"
#include "vtkPolyData.h"
#include "vtkCollection.h"
#include "vtkTransform.h"
#include "vtkTransformFilter.h"
vtkCxxRevisionMacro(vtkDXFBlock, "$Revision: 1 $");
vtkStandardNewMacro(vtkDXFBloc... | 31.965116 | 105 | 0.734085 | ObjectivitySRC |
72e0f706f4400101306f7b0a889f95cec8db7696 | 4,905 | hpp | C++ | libraries/ThreadAPI/include/thread/Thread.hpp | StratifyLabs/API | ca0bf670653b78da43ad416cd1c5e977c8549eeb | [
"MIT"
] | 7 | 2020-12-15T14:27:02.000Z | 2022-03-23T12:00:13.000Z | libraries/ThreadAPI/include/thread/Thread.hpp | StratifyLabs/API | ca0bf670653b78da43ad416cd1c5e977c8549eeb | [
"MIT"
] | null | null | null | libraries/ThreadAPI/include/thread/Thread.hpp | StratifyLabs/API | ca0bf670653b78da43ad416cd1c5e977c8549eeb | [
"MIT"
] | 1 | 2021-01-06T14:51:51.000Z | 2021-01-06T14:51:51.000Z | // Copyright 2011-2021 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md
#ifndef THREADAPI_THREAD_THREAD_HPP
#define THREADAPI_THREAD_THREAD_HPP
#include <pthread.h>
#include <csignal>
#include "Sched.hpp"
#include "chrono/ClockTime.hpp"
namespace thread {
class Thread : public api::ExecutionContext {
public:
... | 27.711864 | 94 | 0.723547 | StratifyLabs |
72e25f61669c4b09244d38b5f4db1c64e5481d38 | 6,226 | cc | C++ | chrome/updater/win/setup/uninstall.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/updater/win/setup/uninstall.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/updater/win/setup/uninstall.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/updater/win/setup/uninstall.h"
#include <shlobj.h>
#include <windows.h>
#include <memory>
#include <string>
#include <vector>
#include ... | 35.175141 | 80 | 0.697719 | zealoussnow |
72e4297f16e57a0fae35a24e615b439cc5da2a63 | 98,512 | cpp | C++ | src/gausskernel/cbb/workload/dywlm_client.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2020-06-30T15:00:50.000Z | 2020-06-30T15:00:50.000Z | src/gausskernel/cbb/workload/dywlm_client.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | src/gausskernel/cbb/workload/dywlm_client.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | /*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... | 33.113277 | 126 | 0.617671 | wotchin |
72e664d59e9416fe65c76d37c3f3c0acf8e3d9c9 | 925 | cpp | C++ | arc058_b/Main.cpp | s-shirayama/AtCoder | 8bb777af516a6a24ce88a5b9f2c22bf4fc7cd3c8 | [
"MIT"
] | null | null | null | arc058_b/Main.cpp | s-shirayama/AtCoder | 8bb777af516a6a24ce88a5b9f2c22bf4fc7cd3c8 | [
"MIT"
] | null | null | null | arc058_b/Main.cpp | s-shirayama/AtCoder | 8bb777af516a6a24ce88a5b9f2c22bf4fc7cd3c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define REP(i, n, s) for (int i = (s); i < (n); i++)
using namespace std;
typedef long long int LL;
typedef long double LD;
const int MOD = 1e9 + 7;
const int MAXN = 1e5 * 2;
int nPn[MAXN];
int _pow(int a, int k) {
int res = 1;
while (k) {
// k%1 == 1
if (k & 1) res = LL(res) * a % MOD;... | 18.877551 | 70 | 0.473514 | s-shirayama |
72e6ac7c3343ed61d78d3d0aed0ebeb440d1e052 | 475 | cpp | C++ | object oriented programming/modifystring.cpp | ayaankhan98/C-Progamming_basics | 0aba46dfe91986e30151bed54eaa7f66d0486c5e | [
"MIT"
] | null | null | null | object oriented programming/modifystring.cpp | ayaankhan98/C-Progamming_basics | 0aba46dfe91986e30151bed54eaa7f66d0486c5e | [
"MIT"
] | null | null | null | object oriented programming/modifystring.cpp | ayaankhan98/C-Progamming_basics | 0aba46dfe91986e30151bed54eaa7f66d0486c5e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main()
{
string s1("Quick! Send for count Graystone");
string s2("Lord");
string s3("Don't ");
s1.erase(0,7);
s1.replace(9,5,s2);
s1.replace(0,1,"S");
s1.insert(0,s3);
s1.erase(s1.size()-1,1);
s1.append(3,'!');
in... | 16.964286 | 49 | 0.501053 | ayaankhan98 |
72e90d8b8b5de0630ade54589234bb59d05d640e | 1,335 | cc | C++ | src/web_server/capabilities/contest_entry_token.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 12 | 2017-11-05T21:02:58.000Z | 2022-03-28T23:11:51.000Z | src/web_server/capabilities/contest_entry_token.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 11 | 2017-01-05T18:11:41.000Z | 2019-11-01T12:40:55.000Z | src/web_server/capabilities/contest_entry_token.cc | krzyk240/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 6 | 2016-12-25T11:22:34.000Z | 2020-10-20T16:03:51.000Z | #include "src/web_server/capabilities/contest_entry_token.hh"
#include "sim/contest_users/contest_user.hh"
#include "sim/users/user.hh"
#include "src/web_server/capabilities/contest.hh"
#include "src/web_server/web_worker/context.hh"
#include <cstdlib>
using sim::contest_users::ContestUser;
using sim::users::User;
n... | 34.230769 | 95 | 0.708614 | varqox |
6391c59ab61ba16f17bc4320343b19c4cb044181 | 1,084 | cpp | C++ | Sources/Particles/Particles.cpp | 0xflotus/Acid | cf680a13c3894822920737dcf1b7d17aef74a474 | [
"MIT"
] | 1 | 2021-08-11T14:50:00.000Z | 2021-08-11T14:50:00.000Z | Sources/Particles/Particles.cpp | sum01/Acid | d921472e062fc26b87c0163918aab553ac20739a | [
"MIT"
] | null | null | null | Sources/Particles/Particles.cpp | sum01/Acid | d921472e062fc26b87c0163918aab553ac20739a | [
"MIT"
] | null | null | null | #include "Particles.hpp"
#include "Scenes/Scenes.hpp"
namespace acid
{
const float Particles::MAX_ELAPSED_TIME = 5.0f;
Particles::Particles() :
m_particles(std::map<std::shared_ptr<ParticleType>, std::vector<Particle>>())
{
}
void Particles::Update()
{
if (Scenes::Get()->IsPaused())
{
return;
}
... | 18.372881 | 79 | 0.611624 | 0xflotus |
6393debf02672a7ecfceb92fc78d0d84d766458d | 3,388 | hpp | C++ | includes/nt/directories/dir_relocs.hpp | archercreat/linux-pe | 902f744424b70979d401a9274afd579bceea104a | [
"BSD-3-Clause"
] | 140 | 2020-01-16T19:04:33.000Z | 2022-03-10T02:54:01.000Z | includes/nt/directories/dir_relocs.hpp | archercreat/linux-pe | 902f744424b70979d401a9274afd579bceea104a | [
"BSD-3-Clause"
] | 4 | 2021-02-28T12:02:46.000Z | 2022-02-14T01:41:57.000Z | includes/nt/directories/dir_relocs.hpp | archercreat/linux-pe | 902f744424b70979d401a9274afd579bceea104a | [
"BSD-3-Clause"
] | 38 | 2020-01-16T01:48:08.000Z | 2022-03-12T16:52:20.000Z | // Copyright (c) 2020 Can Boluk
// 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 the above copyright notice,
// this lis... | 44.578947 | 133 | 0.64876 | archercreat |
63945dfd7cbd7ec71bf405d89c81af3192f1e088 | 9,273 | cpp | C++ | src/RTCCertificate.cpp | paullouisageneau/librtcdcpp | 62695f7fc11b3401e2f8266abeaa556c05536373 | [
"BSD-3-Clause"
] | 5 | 2018-01-16T17:02:20.000Z | 2020-05-14T11:33:47.000Z | src/RTCCertificate.cpp | paullouisageneau/librtcdcpp | 62695f7fc11b3401e2f8266abeaa556c05536373 | [
"BSD-3-Clause"
] | null | null | null | src/RTCCertificate.cpp | paullouisageneau/librtcdcpp | 62695f7fc11b3401e2f8266abeaa556c05536373 | [
"BSD-3-Clause"
] | 2 | 2019-08-14T12:04:05.000Z | 2020-03-23T07:11:04.000Z | /**
* Copyright (c) 2017, Andrew Gault, Nick Chadwick and Guillaume Egles.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyrig... | 33.476534 | 144 | 0.725116 | paullouisageneau |
639854d7b48cc15d2b9d44282e84ec6ac63bbf07 | 3,923 | cpp | C++ | project2D/Asteroid.cpp | CEbbinghaus/Asteroids | 8bcac70c25602ef3fcf5edd699a0b630b2f8d40a | [
"MIT"
] | null | null | null | project2D/Asteroid.cpp | CEbbinghaus/Asteroids | 8bcac70c25602ef3fcf5edd699a0b630b2f8d40a | [
"MIT"
] | null | null | null | project2D/Asteroid.cpp | CEbbinghaus/Asteroids | 8bcac70c25602ef3fcf5edd699a0b630b2f8d40a | [
"MIT"
] | null | null | null | #include "Asteroid.h"
#include "Asteroids.h"
void Asteroid::update(float deltaTime){
//transform.Position += velocity * (speed * deltaTime);
if (transform.Position.x < 0)transform.Position.x = Master::application->GetWindowWidth();
if (transform.Position.x > Master::application->GetWindowWidth())transform.Positio... | 37.361905 | 151 | 0.691053 | CEbbinghaus |
639f6b0646b7ec1e43748ed81bf38ff250644cf8 | 30,697 | cpp | C++ | src/mascgl-3/draw_basics.cpp | jmlien/lightbender | 510f1971614930e2d75911d23a97b1ba77426074 | [
"MIT"
] | null | null | null | src/mascgl-3/draw_basics.cpp | jmlien/lightbender | 510f1971614930e2d75911d23a97b1ba77426074 | [
"MIT"
] | null | null | null | src/mascgl-3/draw_basics.cpp | jmlien/lightbender | 510f1971614930e2d75911d23a97b1ba77426074 | [
"MIT"
] | 1 | 2021-04-18T20:58:52.000Z | 2021-04-18T20:58:52.000Z | #include "draw_basics.h"
#define DEBUG 0
Camera camera;
Shader shader;
//-----------------------------------------------------------------------------
//
// GL/GUI initialization and setup
//
//-----------------------------------------------------------------------------
GLFWwindow* initGLcontext(mascg... | 32.177149 | 182 | 0.624621 | jmlien |
63a2a4517d80c7765a41af3fe48edacb34392515 | 1,187 | hpp | C++ | University - Team Projects/Robotic Football/third-party & webots installer/webots 6.2.1 controllers/nao_soccer_player_blue/InfoMessage.hpp | mpuheim/Various | b96caabde036530329f0ebbe2e3f176dfe691d1c | [
"RSA-MD"
] | null | null | null | University - Team Projects/Robotic Football/third-party & webots installer/webots 6.2.1 controllers/nao_soccer_player_blue/InfoMessage.hpp | mpuheim/Various | b96caabde036530329f0ebbe2e3f176dfe691d1c | [
"RSA-MD"
] | null | null | null | University - Team Projects/Robotic Football/third-party & webots installer/webots 6.2.1 controllers/nao_soccer_player_blue/InfoMessage.hpp | mpuheim/Various | b96caabde036530329f0ebbe2e3f176dfe691d1c | [
"RSA-MD"
] | null | null | null | #ifndef INFO_MESSAGE_HPP
#define INFO_MESSAGE_HPP
//-----------------------------------------------------------------------------
// File: InfoMessage class (to be used in a C++ Webots controllers)
// Description: Example of data packet that can be sent between robots
// to support e.g. ball ... | 37.09375 | 82 | 0.594777 | mpuheim |
63a2e5ed6733881055afc287426dc15e9cf4cdbf | 6,842 | cxx | C++ | Modules/ThirdParty/VNL/src/vxl/core/vnl/tests/test_hungarian_algorithm.cxx | eile/ITK | 2f09e6e2f9e0a4a7269ac83c597f97b04f915dc1 | [
"Apache-2.0"
] | 4 | 2015-05-22T03:47:43.000Z | 2016-06-16T20:57:21.000Z | Modules/ThirdParty/VNL/src/vxl/core/vnl/tests/test_hungarian_algorithm.cxx | GEHC-Surgery/ITK | f5df62749e56c9036e5888cfed904032ba5fdfb7 | [
"Apache-2.0"
] | null | null | null | Modules/ThirdParty/VNL/src/vxl/core/vnl/tests/test_hungarian_algorithm.cxx | GEHC-Surgery/ITK | f5df62749e56c9036e5888cfed904032ba5fdfb7 | [
"Apache-2.0"
] | 9 | 2016-06-23T16:03:12.000Z | 2022-03-31T09:25:08.000Z | #include <vnl/vnl_hungarian_algorithm.h>
#include <testlib/testlib_test.h>
#include <vcl_iostream.h>
#include <vcl_limits.h>
#include <vcl_algorithm.h>
#include <vnl/vnl_matrix.h>
#include <vnl/vnl_random.h>
static vnl_random randgen;
static
void check_solution( vcl_vector<unsigned> const& assign,
... | 30.140969 | 78 | 0.489769 | eile |
63a33cdfce5815ae624ad6c75e3e6fcfd6355de9 | 5,549 | cc | C++ | src/cxx/testbed/testbed.cc | emily33901/Argon | 3c06ee562027540702114d0efacb6b12c767a921 | [
"MIT"
] | 19 | 2018-11-22T23:02:22.000Z | 2022-02-13T22:26:19.000Z | src/cxx/testbed/testbed.cc | josh33901/Argon | 3c06ee562027540702114d0efacb6b12c767a921 | [
"MIT"
] | 2 | 2019-03-20T11:42:27.000Z | 2020-07-16T12:43:04.000Z | src/cxx/testbed/testbed.cc | josh33901/Argon | 3c06ee562027540702114d0efacb6b12c767a921 | [
"MIT"
] | 1 | 2019-09-09T10:48:12.000Z | 2019-09-09T10:48:12.000Z | #include "testbed.hh"
#ifdef _MSC_VER
const char *steam_path = "steamclient.dll";
#else
const char *steam_path = "./libsteamclient.so";
#endif
#define check_null(var) \
if (!var) { \
printf(#var " is null!\n"); \
return false; \
}
bool load_steam_... | 27.470297 | 108 | 0.633628 | emily33901 |
63a5586719e42571233ea047d1fd02428db1a4b7 | 314 | cpp | C++ | DSAA2/TestStackAr.cpp | crosslife/DSAA | 03472db6e61582187192073b6ea4649b6195222b | [
"MIT"
] | 5 | 2017-03-30T23:23:08.000Z | 2020-11-08T00:34:46.000Z | DSAA2/TestStackAr.cpp | crosslife/DSAA | 03472db6e61582187192073b6ea4649b6195222b | [
"MIT"
] | null | null | null | DSAA2/TestStackAr.cpp | crosslife/DSAA | 03472db6e61582187192073b6ea4649b6195222b | [
"MIT"
] | 1 | 2019-04-12T13:17:31.000Z | 2019-04-12T13:17:31.000Z | #include <iostream.h>
#include "StackAr.h"
int main( )
{
Stack<int> s;
for( int i = 0; i < 10; i++ )
s.push( i );
while( !s.isEmpty( ) )
cout << s.topAndPop( ) << endl;
return 0;
}
| 19.625 | 47 | 0.328025 | crosslife |
63a8693bdd8f506c846a79bdf7dcbe1c097fe50b | 8,914 | cpp | C++ | planb_hw/src/hardware_node.cpp | liunx/planb_ros2 | a9417a9699626f007752a3706d2b26c364075a92 | [
"Apache-2.0"
] | null | null | null | planb_hw/src/hardware_node.cpp | liunx/planb_ros2 | a9417a9699626f007752a3706d2b26c364075a92 | [
"Apache-2.0"
] | null | null | null | planb_hw/src/hardware_node.cpp | liunx/planb_ros2 | a9417a9699626f007752a3706d2b26c364075a92 | [
"Apache-2.0"
] | null | null | null | #include <thread>
#include <mraa.hpp>
#include "planb_hw/hardware_node.hpp"
#include "planb_common/common.hpp"
using namespace std::chrono_literals;
using std::placeholders::_1;
HardwareNode::HardwareNode(const rclcpp::NodeOptions &options)
: Node("hardware", options), status_("OFF")
{
std::string dev_path = ... | 26.688623 | 111 | 0.549697 | liunx |
63aa566999727b89505e2fb7aa8885bb737cb75f | 581 | cc | C++ | tests/application/test_bitmap_application.cc | wujiazheng2020/simple_stl | f04ccd049a92e463bde4c34fed67679fb5822eb9 | [
"MIT"
] | 6 | 2021-08-31T04:44:50.000Z | 2022-03-10T15:15:29.000Z | tests/application/test_bitmap_application.cc | wujiazheng2020/simple_stl | f04ccd049a92e463bde4c34fed67679fb5822eb9 | [
"MIT"
] | null | null | null | tests/application/test_bitmap_application.cc | wujiazheng2020/simple_stl | f04ccd049a92e463bde4c34fed67679fb5822eb9 | [
"MIT"
] | null | null | null | /*
* Copyright 2021 Jiazheng Wu
*
* FileName: test_bitmap_algorithm.cc
*
* Author: Jiazheng Wu
* Email: wujiazheng2020@gmail.com
* Licensed under the MIT License
*/
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <vector>
#include "simple_stl/application/bitmap_application/calculate_prime.h"
sta... | 20.034483 | 70 | 0.652324 | wujiazheng2020 |
63af9a26133a8a77a2a5f5b3af040bd8c56ba66f | 621 | cpp | C++ | src/common/factorial.cpp | ull-esit-sistemas-operativos/ssoo-ejemplos | f59d606f45fd3cc05b605472db0dd90d3f209b71 | [
"CC0-1.0"
] | 1 | 2021-12-29T12:44:43.000Z | 2021-12-29T12:44:43.000Z | src/common/factorial.cpp | ull-esit-sistemas-operativos/ssoo-ejemplos | f59d606f45fd3cc05b605472db0dd90d3f209b71 | [
"CC0-1.0"
] | null | null | null | src/common/factorial.cpp | ull-esit-sistemas-operativos/ssoo-ejemplos | f59d606f45fd3cc05b605472db0dd90d3f209b71 | [
"CC0-1.0"
] | null | null | null | // factorial.cpp - Funciones comunes a los ejemplos del factorial.
//
#include <iostream>
#include "factorial.hpp"
int get_user_input()
{
std::cout << "[PADRE] Introduzca un número: ";
std::cout.flush();
int number;
std::cin >> number;
return number;
}
int calculate_factorial(int number)
{
... | 16.783784 | 66 | 0.553945 | ull-esit-sistemas-operativos |
63afc7a75dea3a330af51fc7926b3a22e2060645 | 15,712 | cc | C++ | mysql_sys/my_error.cc | realnickel/mysql-connector-odbc | cd3aad7a64a2c6bf58c6b04e0a63026bbacc8189 | [
"Artistic-1.0-Perl"
] | null | null | null | mysql_sys/my_error.cc | realnickel/mysql-connector-odbc | cd3aad7a64a2c6bf58c6b04e0a63026bbacc8189 | [
"Artistic-1.0-Perl"
] | null | null | null | mysql_sys/my_error.cc | realnickel/mysql-connector-odbc | cd3aad7a64a2c6bf58c6b04e0a63026bbacc8189 | [
"Artistic-1.0-Perl"
] | null | null | null | /* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... | 32.196721 | 80 | 0.683745 | realnickel |
63b2ddb8a74191cec522650e83d3e3d027aaed9d | 6,463 | cpp | C++ | Web/src/HttpHandler/HttpHeader.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Web/src/HttpHandler/HttpHeader.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Web/src/HttpHandler/HttpHeader.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 28.1 | 96 | 0.674455 | achilex |
63b37238c7561064e42e89fb02b622a4a442839d | 344 | cpp | C++ | Array Ques Missing Value.cpp | priyamittal15/Leetcode_Solutions | 21cb9c09e053425dba66acd62240399b1a35fba0 | [
"Apache-2.0"
] | 1 | 2022-01-28T08:07:32.000Z | 2022-01-28T08:07:32.000Z | Array Ques Missing Value.cpp | priyamittal15/Leetcode_Solutions | 21cb9c09e053425dba66acd62240399b1a35fba0 | [
"Apache-2.0"
] | null | null | null | Array Ques Missing Value.cpp | priyamittal15/Leetcode_Solutions | 21cb9c09e053425dba66acd62240399b1a35fba0 | [
"Apache-2.0"
] | 1 | 2022-03-16T14:46:09.000Z | 2022-03-16T14:46:09.000Z | #include<iostream>
using namespace std;
int main(void){
int arr[]={0,-9,1,3,-4,5};
int n=6;
int res[n];
for(int i=0;i<n;i++){
if(arr[i]>=0){
res[i]=arr[i];
}
else{
}
}
for(int i=0;i<n;i++){
cout<<res[i];
}
for(int i=0;i<n;i++){
if(res[i+1]-res[i]==2){
... | 11.096774 | 28 | 0.418605 | priyamittal15 |
63b3c2a04fa9aeed198000f8618eff88bc84b5d6 | 3,974 | cxx | C++ | tests/mlio-test/test_recordio_protobuf_reader.cxx | rizwangilani/ml-io | d9572227281168139c4e99d79a6d2ebc83323a61 | [
"Apache-2.0"
] | null | null | null | tests/mlio-test/test_recordio_protobuf_reader.cxx | rizwangilani/ml-io | d9572227281168139c4e99d79a6d2ebc83323a61 | [
"Apache-2.0"
] | 2 | 2020-04-08T01:37:44.000Z | 2020-04-14T20:14:07.000Z | tests/mlio-test/test_recordio_protobuf_reader.cxx | rizwangilani/ml-io | d9572227281168139c4e99d79a6d2ebc83323a61 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <mlio.h>
namespace mlio {
class test_recordio_protobuf_reader : public ::testing::Test {
protected:
test_recordio_protobuf_reader() = default;
~test_recordio_protobuf_reader() override;
protected:
std::string const resources_path_ = "../resources/recordio/";
std::st... | 31.539683 | 77 | 0.648968 | rizwangilani |
63b55ef9ccd3d06015dda8bc64ec37466375fc61 | 10,669 | cpp | C++ | src/device_info_win32.cpp | semenovf/pfs-multimedia | 78e2ea9dfe89d2f84d583f768ca35f183773d859 | [
"MIT"
] | null | null | null | src/device_info_win32.cpp | semenovf/pfs-multimedia | 78e2ea9dfe89d2f84d583f768ca35f183773d859 | [
"MIT"
] | null | null | null | src/device_info_win32.cpp | semenovf/pfs-multimedia | 78e2ea9dfe89d2f84d583f768ca35f183773d859 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2021 Vladislav Trifochkin
//
// This file is part of [multimedia-lib](https://github.com/semenovf/multimedia-lib) library.
//
// Changelog:
// 2021.08.07 Initial version.
///////////////////////////////////////... | 32.330303 | 133 | 0.532571 | semenovf |
63bdedb8292f7432bfe611622e112d983f72d16b | 107 | hpp | C++ | non-stiff/problem-3-conservation-vs-dissipation/include/macro/sides.hpp | ooreilly/sbp | 47bf92f3ba3a6146250331a8c657948475f72e7c | [
"MIT"
] | 3 | 2021-09-03T08:55:53.000Z | 2021-11-11T02:51:03.000Z | non-stiff/problem-3-conservation-vs-dissipation/include/macro/sides.hpp | ooreilly/sbp | 47bf92f3ba3a6146250331a8c657948475f72e7c | [
"MIT"
] | null | null | null | non-stiff/problem-3-conservation-vs-dissipation/include/macro/sides.hpp | ooreilly/sbp | 47bf92f3ba3a6146250331a8c657948475f72e7c | [
"MIT"
] | 4 | 2017-05-13T08:27:21.000Z | 2021-10-05T08:22:55.000Z | #pragma once
#define LEFT 0
#define RIGHT 1
#define BOTTOM 2
#define TOP 3
#define FRONT 4
#define BACK 5
| 11.888889 | 16 | 0.738318 | ooreilly |
63be27dd8421f94288ac74948f854c7984304875 | 2,048 | cpp | C++ | src/Particle/ParticleModule/ModuleSizeOverLifetime.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Particle/ParticleModule/ModuleSizeOverLifetime.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Particle/ParticleModule/ModuleSizeOverLifetime.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | #include "ModuleSizeOverLifetime.hpp"
#include <iostream>
#include "Cl/ClProgram.hpp"
#include "OpenCGL_Tools.hpp"
#include "Cl/ClKernel.hpp"
#include "Particle/PaticleEmitter/AParticleEmitter.hpp"
ModuleSizeOverLifetime::ModuleSizeOverLifetime(AParticleEmitter &emitter) :
AParticleModule(emitter),
gpu... | 34.133333 | 151 | 0.773926 | Jino42 |
63bf359fb22d9e50326c8fc5e0c033aa560ea18d | 6,368 | cpp | C++ | src/getting_started/07_transforms.cpp | clsrfish/learnogl | 3e1cc42a595dd12779268ba587ef68fa4991e1f5 | [
"Apache-2.0"
] | null | null | null | src/getting_started/07_transforms.cpp | clsrfish/learnogl | 3e1cc42a595dd12779268ba587ef68fa4991e1f5 | [
"Apache-2.0"
] | null | null | null | src/getting_started/07_transforms.cpp | clsrfish/learnogl | 3e1cc42a595dd12779268ba587ef68fa4991e1f5 | [
"Apache-2.0"
] | null | null | null | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <stb_image.h>
#include "../gl/shader.h"
#include "../utils/log.h"
#include "../gl/gl_utils.h"
namespace getting_started
{
namespace transforms
{
float v... | 39.308642 | 117 | 0.555905 | clsrfish |
63c3614f5ef54ef59eaf1be343dc61c0cee399b4 | 4,443 | cpp | C++ | openMP/Kruskal.cpp | tec-csf/tc2017-pf-primavera-2020-equipo-2-1 | a7ce190e778d7173399b4719a1d1d53d718004ac | [
"MIT"
] | null | null | null | openMP/Kruskal.cpp | tec-csf/tc2017-pf-primavera-2020-equipo-2-1 | a7ce190e778d7173399b4719a1d1d53d718004ac | [
"MIT"
] | null | null | null | openMP/Kruskal.cpp | tec-csf/tc2017-pf-primavera-2020-equipo-2-1 | a7ce190e778d7173399b4719a1d1d53d718004ac | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
#include <set>
#include <chrono>
#include <queue>
#include <omp.h>
#include <algorithm>
using namespace std;
typedef pair<int, int> parN;
#define INF 1000
int node_number, edge_number = 0;
class DisjSet {
int *rank, *parent, n;
public:
/* Constructor
* @param n: tamaño del... | 22.784615 | 124 | 0.582489 | tec-csf |
63c3e66e04f59a207876ca145eb9e52ca7e2cd66 | 5,725 | cpp | C++ | ddraw/IDirectDrawClipper.cpp | SamSoneyC/dxwrapper | 12bad2da2d453239119039c4ebb76665e09cffcd | [
"Zlib"
] | null | null | null | ddraw/IDirectDrawClipper.cpp | SamSoneyC/dxwrapper | 12bad2da2d453239119039c4ebb76665e09cffcd | [
"Zlib"
] | null | null | null | ddraw/IDirectDrawClipper.cpp | SamSoneyC/dxwrapper | 12bad2da2d453239119039c4ebb76665e09cffcd | [
"Zlib"
] | null | null | null | /**
* Copyright (C) 2020 Elisha Riedlinger
*
* This software is provided 'as-is', without any express or implied warranty. In no event will the
* authors be held liable for any damages arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose, including co... | 21.934866 | 141 | 0.676856 | SamSoneyC |
63cefda5d102285b3898bed6274add241a813239 | 7,775 | cpp | C++ | tests/TestCircularBuffer.cpp | sarahkw/swgetf0 | b3cae9290ed90063c98a9e770482de2c5944ec0e | [
"Apache-2.0"
] | 5 | 2017-01-01T19:36:10.000Z | 2019-11-07T03:40:32.000Z | tests/TestCircularBuffer.cpp | hobakurafuto/swgetf0 | b3cae9290ed90063c98a9e770482de2c5944ec0e | [
"Apache-2.0"
] | null | null | null | tests/TestCircularBuffer.cpp | hobakurafuto/swgetf0 | b3cae9290ed90063c98a9e770482de2c5944ec0e | [
"Apache-2.0"
] | 1 | 2018-06-04T02:27:14.000Z | 2018-06-04T02:27:14.000Z | /*
Copyright 2014 Sarah Wong
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, s... | 20.900538 | 74 | 0.696206 | sarahkw |
63cff69a8ca44a68d1fbd5e7db83195bf6335ee8 | 128,979 | hpp | C++ | test/TestChemicalChaste.hpp | OSS-Lab/ChemChaste | d32c36afa1cd870512fee3cba0753d5c6faf8109 | [
"BSD-3-Clause"
] | null | null | null | test/TestChemicalChaste.hpp | OSS-Lab/ChemChaste | d32c36afa1cd870512fee3cba0753d5c6faf8109 | [
"BSD-3-Clause"
] | null | null | null | test/TestChemicalChaste.hpp | OSS-Lab/ChemChaste | d32c36afa1cd870512fee3cba0753d5c6faf8109 | [
"BSD-3-Clause"
] | null | null | null | #ifndef TESTCHEMICALCHASTE_HPP_
#define TESTCHEMICALCHASTE_HPP_
// chaste includes
#include <cxxtest/TestSuite.h>
#include "UblasIncludes.hpp"
#include "AbstractCellBasedTestSuite.hpp"
#include "CheckpointArchiveTypes.hpp"
#include "PetscSetupAndFinalize.hpp"
#include "SmartPointers.hpp"
// general includes
#include... | 48.37922 | 212 | 0.656184 | OSS-Lab |
63d2dbb37e19b9e98ee0d5ce0dc7cc453047432c | 432 | cpp | C++ | src/3rdPartyLib/EASTL.cpp | SapphireEngine/Engine | bf5a621ac45d76a2635b804c0d8b023f1114d8f5 | [
"MIT"
] | 2 | 2020-02-03T04:58:17.000Z | 2021-03-13T06:03:52.000Z | src/3rdPartyLib/EASTL.cpp | SapphireEngine/Engine | bf5a621ac45d76a2635b804c0d8b023f1114d8f5 | [
"MIT"
] | null | null | null | src/3rdPartyLib/EASTL.cpp | SapphireEngine/Engine | bf5a621ac45d76a2635b804c0d8b023f1114d8f5 | [
"MIT"
] | null | null | null | #include "define.h"
#include <EASTL/EAStdC/EAMemory.cpp>
#include <EASTL/EAStdC/EASprintf.cpp>
#include <EASTL/MemoryTracking.cpp>
#include <EASTL/allocator_forge.cpp>
#include <EASTL/assert.cpp>
#include <EASTL/fixed_pool.cpp>
#include <EASTL/hashtable.cpp>
#include <EASTL/intrusive_list.cpp>
#include <EASTL/numeric... | 28.8 | 37 | 0.784722 | SapphireEngine |
63d4d437895d91607a767b9af49b58f1abe98e8a | 15,529 | cpp | C++ | src/FeatureMatcher.cpp | charlie-lee/slam_demo | 0bb6cc6d20c6a728eea502a61456f83881144e59 | [
"MIT"
] | null | null | null | src/FeatureMatcher.cpp | charlie-lee/slam_demo | 0bb6cc6d20c6a728eea502a61456f83881144e59 | [
"MIT"
] | null | null | null | src/FeatureMatcher.cpp | charlie-lee/slam_demo | 0bb6cc6d20c6a728eea502a61456f83881144e59 | [
"MIT"
] | null | null | null | /**
* @file FeatureMatcher.cpp
* @brief Implementation of feature matcher class in SLAM system.
* @author Charlie Li
* @date 2019.10.22
*/
#include "FeatureMatcher.hpp"
#include <map>
#include <memory>
#include <vector>
#include <opencv2/core.hpp>
#include <opencv2/features2d.hpp>
#include "Config.hpp"
#in... | 36.198135 | 79 | 0.58072 | charlie-lee |
63d9e63f08e9c4646f09ee657912820fa850eec5 | 2,542 | hpp | C++ | Project/Folie/Ball.hpp | mikymaione/Folie | a5e2ea35f792036da7f2988adeace7f4b361c0f7 | [
"MIT"
] | 1 | 2019-08-29T09:00:16.000Z | 2019-08-29T09:00:16.000Z | Project/Folie/Ball.hpp | mikymaione/Folie | a5e2ea35f792036da7f2988adeace7f4b361c0f7 | [
"MIT"
] | null | null | null | Project/Folie/Ball.hpp | mikymaione/Folie | a5e2ea35f792036da7f2988adeace7f4b361c0f7 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2019 Michele Maione
Permission is hereby granted, free of charge, toE any person obtaining a copy of this software and associated documentation files (the "Software"), toE deal in the Software without restriction, including without limitation the rights toE use, copy, modify, merge, publi... | 34.821918 | 566 | 0.773013 | mikymaione |
63ded9f813358a38390085d3bf10a969e57df1e6 | 10,700 | cpp | C++ | code_reading/oceanbase-master/src/sql/resolver/ob_stmt.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/sql/resolver/ob_stmt.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/sql/resolver/ob_stmt.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 28.918919 | 115 | 0.701682 | wangcy6 |
63e18aab313c11a3524d142c4f0b1cbba7d1e49e | 3,390 | cpp | C++ | CppP4rhSln/10/querymain.cpp | blacop/CppPR | a76574ee83000d898d989aab96eac4ac746244fa | [
"MIT"
] | 1 | 2017-04-01T06:57:30.000Z | 2017-04-01T06:57:30.000Z | gnu_files/10/querymain.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | null | null | null | gnu_files/10/querymain.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | 1 | 2022-01-25T15:51:34.000Z | 2022-01-25T15:51:34.000Z | /*
* This file contains code from "C++ Primer, Fourth Edition", by Stanley B.
* Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the
* copyright and warranty notices given in that book:
*
* "Copyright (c) 2005 by Objectwrite, Inc., Jose Lajoie, and Barbara E. Moo."
*
*
* "The authors and publis... | 32.596154 | 79 | 0.657227 | blacop |
63e683b557c248cfb2e27d91b3cd4c6d3dfa8157 | 179 | cxx | C++ | ports/x11-wm/bbpager/dragonfly/patch-src_main.cxx | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 31 | 2015-02-06T17:06:37.000Z | 2022-03-08T19:53:28.000Z | ports/x11-wm/bbpager/dragonfly/patch-src_main.cxx | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 236 | 2015-06-29T19:51:17.000Z | 2021-12-16T22:46:38.000Z | ports/x11-wm/bbpager/dragonfly/patch-src_main.cxx | liweitianux/DeltaPorts | b907de0ceb9c0e46ae8961896e97b361aa7c62c0 | [
"BSD-2-Clause-FreeBSD"
] | 52 | 2015-02-06T17:05:36.000Z | 2021-10-21T12:13:06.000Z | --- src/main.cxx.orig 2005-10-30 12:58:37.000000000 +0200
+++ src/main.cxx
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <string>
+#include <cstring>
#include <iostream>
| 16.272727 | 57 | 0.625698 | liweitianux |
63eb04c50b7f543a79bdb64d952e565b78c27ac7 | 3,032 | cpp | C++ | Gems/LyShine/Code/Editor/HierarchyHeader.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Gems/LyShine/Code/Editor/HierarchyHeader.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/LyShine/Code/Editor/HierarchyHeader.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "UiCanvasEditor_precompiled.h"
#include "EditorCommon.h"
#define UICANVASEDITOR_HIERARCHY_... | 31.257732 | 158 | 0.62533 | aaarsene |
63eb7f8c7b92d5f5920e96694250197b72c0a9c1 | 4,333 | cpp | C++ | remodet_repository_wdh_part/src/caffe/pose/pose_image_loader.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/src/caffe/pose/pose_image_loader.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/src/caffe/pose/pose_image_loader.cpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | #include "caffe/tracker/bounding_box.hpp"
#include "caffe/pose/pose_image_loader.hpp"
namespace caffe {
using std::vector;
using std::string;
template <typename Dtype>
void PoseImageLoader<Dtype>::LoadImage(const int image_num,
cv::Mat* image) {
const MetaData<Dtype>& annotation =... | 31.172662 | 110 | 0.654512 | UrwLee |
63ef71aa6b436663e44687075426f3f3804724b4 | 3,567 | cc | C++ | Ohm/Netvars.cc | ramadan8/Ohm | fe9dbbdc40dc4c85a2cb2d033627673cd72ade39 | [
"MIT"
] | 1 | 2021-07-28T11:30:14.000Z | 2021-07-28T11:30:14.000Z | Ohm/Netvars.cc | ramadan8/Ohm | fe9dbbdc40dc4c85a2cb2d033627673cd72ade39 | [
"MIT"
] | 1 | 2021-07-26T01:36:58.000Z | 2021-07-27T14:45:21.000Z | Ohm/Netvars.cc | ramadan8/Ohm | fe9dbbdc40dc4c85a2cb2d033627673cd72ade39 | [
"MIT"
] | 1 | 2021-09-11T07:43:53.000Z | 2021-09-11T07:43:53.000Z | #include <Windows.h>
#include "./Netvars.h"
#include "./Interfaces/Interfaces.h"
#include "./SDK/Interfaces/IBaseClientDLL.h"
intptr_t GetOffset(RecvTable* table, const char* tableName, const char* netvarName) {
for (int i = 0; i < table->m_nProps; i++) {
RecvProp prop = table->m_pProps[i];
if (!_stricmp(prop... | 36.030303 | 102 | 0.769835 | ramadan8 |
63f48dea33919d387ab94bf672a7cde06421b297 | 848 | cxx | C++ | PWG/HMTF/AliEventClassifierMPI.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWG/HMTF/AliEventClassifierMPI.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWG/HMTF/AliEventClassifierMPI.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | #include <vector>
#include <iostream>
#include "AliLog.h"
#include "AliMCEvent.h"
#include "AliStack.h"
#include "AliGenPythiaEventHeader.h"
#include "AliEventClassifierMPI.h"
#include "AliIsPi0PhysicalPrimary.h"
using namespace std;
ClassImp(AliEventClassifierMPI)
AliEventClassifierMPI::AliEventClassifierMPI(cons... | 25.69697 | 100 | 0.760613 | maroozm |
63f6fa2c9f29c616e55147f84b272e01aedd2d6c | 607 | cpp | C++ | DemoLib2/net/netmessages/NetSetPauseMessage.cpp | PazerOP/DemoLib2 | 7377f87654ce9bf6487d6b7ce7050cec8e76894e | [
"MIT"
] | 14 | 2018-07-02T19:09:18.000Z | 2022-01-12T12:35:43.000Z | DemoLib2/net/netmessages/NetSetPauseMessage.cpp | PazerOP/DemoLib2 | 7377f87654ce9bf6487d6b7ce7050cec8e76894e | [
"MIT"
] | 1 | 2018-12-27T20:22:06.000Z | 2020-01-04T03:27:31.000Z | DemoLib2/net/netmessages/NetSetPauseMessage.cpp | PazerOP/DemoLib2 | 7377f87654ce9bf6487d6b7ce7050cec8e76894e | [
"MIT"
] | 1 | 2021-05-17T01:03:38.000Z | 2021-05-17T01:03:38.000Z | #include "NetSetPauseMessage.hpp"
#include "BitIO/BitIOReader.hpp"
#include "BitIO/BitIOWriter.hpp"
#include "net/worldstate/WorldState.hpp"
void NetSetPauseMessage::GetDescription(std::ostream& description) const
{
description << "svc_SetPause: " << (m_Paused ? "paused" : "unpaused");
}
void NetSetPauseMessage::Ap... | 23.346154 | 72 | 0.771005 | PazerOP |
63fdac942da04b00c862c9de13d84239334be3d7 | 1,446 | cpp | C++ | avs_dx/DxVisuals/Threads/RenderThreadImpl.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 33 | 2019-01-28T03:32:17.000Z | 2022-02-12T18:17:26.000Z | avs_dx/DxVisuals/Threads/RenderThreadImpl.cpp | visbot/vis_avs_dx | 03e55f8932a97ad845ff223d3602ff2300c3d1d4 | [
"MIT"
] | 2 | 2019-11-18T17:54:58.000Z | 2020-07-21T18:11:21.000Z | avs_dx/DxVisuals/Threads/RenderThreadImpl.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 5 | 2019-02-16T23:00:11.000Z | 2022-03-27T15:22:10.000Z | #include "stdafx.h"
#include "RenderThreadImpl.h"
#include "AvsThreads.h"
#include "effects.h"
#include "Resources/staticResources.h"
#include "Effects/Video/MF/mfStatic.h"
#include "Render/Profiler.h"
#include <Interop/deviceCreation.h>
#include "Transition.h"
RenderThreadImpl::RenderThreadImpl( winampVisModule * pM... | 27.807692 | 150 | 0.750346 | Const-me |
63ff97d65ed29764176ac3d1376b2812f72af305 | 8,453 | cpp | C++ | Source/Lutefisk3D/Scene/ObjectAnimation.cpp | Lutefisk3D/lutefisk3d | d2132b82003427511df0167f613905191b006eb5 | [
"Apache-2.0"
] | 2 | 2018-04-14T19:05:23.000Z | 2020-05-10T22:42:12.000Z | Source/Lutefisk3D/Scene/ObjectAnimation.cpp | Lutefisk3D/lutefisk3d | d2132b82003427511df0167f613905191b006eb5 | [
"Apache-2.0"
] | 4 | 2015-06-19T22:32:07.000Z | 2017-04-05T06:01:50.000Z | Source/Lutefisk3D/Scene/ObjectAnimation.cpp | nemerle/lutefisk3d | d2132b82003427511df0167f613905191b006eb5 | [
"Apache-2.0"
] | 1 | 2015-12-27T15:36:10.000Z | 2015-12-27T15:36:10.000Z | //
// Copyright (c) 2008-2017 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, m... | 33.543651 | 139 | 0.694428 | Lutefisk3D |
1201d06b481652931f5eaf2080b47e5a67662579 | 1,121 | cpp | C++ | codeforces/CF681/B_Saving_the_City.cpp | anandj123/gcpdemo | 96ef4c64047b16f397369c71ace74daa7d43acec | [
"MIT"
] | null | null | null | codeforces/CF681/B_Saving_the_City.cpp | anandj123/gcpdemo | 96ef4c64047b16f397369c71ace74daa7d43acec | [
"MIT"
] | null | null | null | codeforces/CF681/B_Saving_the_City.cpp | anandj123/gcpdemo | 96ef4c64047b16f397369c71ace74daa7d43acec | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>
#include<numeric>
using namespace std;
#define debug(x) cerr << #x << " : " << x << "\n"
#define REP(i,a,b) for(int i=a; i<b;++i)
#define endl "\n"
typedef vector<int> vi;
typedef vector< vector<int> > vvi;
int INF = 1e9;
void ... | 20.381818 | 90 | 0.447814 | anandj123 |
120399d65cfd059b7bfc2de6649deb58867c33f7 | 822 | cpp | C++ | src/libs/qlib/qdmbuffer.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qdmbuffer.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qdmbuffer.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | 1 | 2021-01-03T16:16:47.000Z | 2021-01-03T16:16:47.000Z | /*
* QDMBuffer - definition/implementation
* NOTES:
* - Tiny wrapper around DMbuffer concept
* (C) 28-02-99 MarketGraph/RVG
*/
#include <qlib/dmbuffer.h>
//#include <dmedia/dm_buffer.h>
#include <dmedia/dm_params.h>
#include <qlib/debug.h>
DEBUG_ENABLE
#define DMCHK(s,e)\
if((e)!=DM_SUCCESS)QShowDMErrors(s)
... | 14.678571 | 47 | 0.694647 | 3dhater |
120569b970efd97f4310316d282266bc0dda77d1 | 22,816 | cpp | C++ | mp/src/game/server/coven_apc.cpp | rendenba/source-sdk-2013 | 4a0314391b01a2450788e0d4ee0926a05f3af8b0 | [
"Unlicense"
] | null | null | null | mp/src/game/server/coven_apc.cpp | rendenba/source-sdk-2013 | 4a0314391b01a2450788e0d4ee0926a05f3af8b0 | [
"Unlicense"
] | null | null | null | mp/src/game/server/coven_apc.cpp | rendenba/source-sdk-2013 | 4a0314391b01a2450788e0d4ee0926a05f3af8b0 | [
"Unlicense"
] | null | null | null | #include "cbase.h"
#include "vphysics/constraints.h"
#include "coven_apc.h"
#include "hl2mp_gamerules.h"
#include "covenlib.h"
extern ConVar coven_debug_visual;
extern ConVar sv_coven_refuel_distance;
Vector CCoven_APC::wheelOffset[] = { Vector(80, -50, -32), Vector(-72, -50, -32), Vector(80, 50, -32), Vector(-72, 5... | 28.627353 | 215 | 0.720678 | rendenba |
1205ece7c57ad787c5c14ffb91a7cecf8190cb6f | 2,612 | hpp | C++ | include/Nazara/Graphics/UberShader.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Graphics/UberShader.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Graphics/UberShader.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_UBERSHADER_HPP
#define NAZARA_GRAPHICS_UBERSHADER_HPP
#include <Nazara/Pr... | 31.46988 | 134 | 0.769525 | jayrulez |
1209463f60ad0473a1d6a2ec3e539fa200001bd5 | 876 | cpp | C++ | dos/dos_memmgr_test.cpp | wwiv/door86c | bfdc6408bf632da74a1e58d97da3257d715f3f6e | [
"Apache-2.0"
] | 1 | 2021-11-04T03:13:25.000Z | 2021-11-04T03:13:25.000Z | dos/dos_memmgr_test.cpp | wwiv/door86c | bfdc6408bf632da74a1e58d97da3257d715f3f6e | [
"Apache-2.0"
] | null | null | null | dos/dos_memmgr_test.cpp | wwiv/door86c | bfdc6408bf632da74a1e58d97da3257d715f3f6e | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include "cpu/memory.h"
#include "dos/dos.h"
#include <cstdlib>
#include <cstdint>
#include <iostream>
using namespace door86::cpu;
using namespace door86::dos;
class DosMemMgrTest : public testing::Test {
public:
DosMemMgrTest() : mm(&m, 0x1000, 0x7000) {}
Memory m{1 << 20};
DosMemo... | 21.365854 | 54 | 0.691781 | wwiv |
120eda04e422f7779e3386c663df16e8326e5f43 | 5,843 | cpp | C++ | third_party/SimpleBluez/examples/pair/pair.cpp | Andrey1994/brainflow | 6b776859fba6a629b1acd471ae5d1320bffe9ca5 | [
"MIT"
] | 53 | 2018-12-11T13:35:47.000Z | 2020-04-21T00:08:13.000Z | third_party/SimpleBluez/examples/pair/pair.cpp | Andrey1994/brainflow | 6b776859fba6a629b1acd471ae5d1320bffe9ca5 | [
"MIT"
] | 14 | 2019-06-12T05:22:27.000Z | 2020-04-20T19:14:44.000Z | examples/pair/pair.cpp | OpenBluetoothToolbox/SimpleBluez | aece6ec75732b216f0f68144f4fe42c6190d0a65 | [
"MIT"
] | 9 | 2019-04-13T19:03:16.000Z | 2020-04-07T16:42:20.000Z | #include <simplebluez/Bluez.h>
#include <simplebluez/Exceptions.h>
#include <atomic>
#include <chrono>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <thread>
SimpleBluez::Bluez bluez;
std::atomic_bool async_thread_active = true;
void async_thread_function() {
while (async_thread_active) {
... | 33.011299 | 110 | 0.556906 | Andrey1994 |
1211f6335d41fc83efb6404e4b78a6d0da338d77 | 6,636 | hpp | C++ | c++17_features.hpp | ralphtandetzky/cpp_utils | 3adfed125db6fccd7478385544b96ceecdf435e7 | [
"MIT"
] | 3 | 2018-01-04T18:07:32.000Z | 2021-09-01T14:19:43.000Z | c++17_features.hpp | ralphtandetzky/cpp_utils | 3adfed125db6fccd7478385544b96ceecdf435e7 | [
"MIT"
] | null | null | null | c++17_features.hpp | ralphtandetzky/cpp_utils | 3adfed125db6fccd7478385544b96ceecdf435e7 | [
"MIT"
] | null | null | null | /** @file This file defines features available from C++17 onwards.
*
* The features are defined in the cu namespace instead of the std namespace.
* When moving to C++17 just remove this header from the project,
* in order to keep you project clean. This should require only a bit of
* refactoring by replacing the r... | 35.111111 | 97 | 0.639693 | ralphtandetzky |
12127b43dcec8286e422ffa955176069b384e3b2 | 6,439 | cpp | C++ | Code/EnginePlugins/UltralightPlugin/Resources/Implementation/UltralightHTMLResource.cpp | asheraryam/ezEngine | bfe6d109b72d8fd6f13d043b11980796625c648e | [
"MIT"
] | null | null | null | Code/EnginePlugins/UltralightPlugin/Resources/Implementation/UltralightHTMLResource.cpp | asheraryam/ezEngine | bfe6d109b72d8fd6f13d043b11980796625c648e | [
"MIT"
] | null | null | null | Code/EnginePlugins/UltralightPlugin/Resources/Implementation/UltralightHTMLResource.cpp | asheraryam/ezEngine | bfe6d109b72d8fd6f13d043b11980796625c648e | [
"MIT"
] | null | null | null | #include <PCH.h>
#include <Core/Assets/AssetFileHeader.h>
#include <RendererFoundation/Device/Device.h>
#include <RendererFoundation/Resources/Texture.h>
#include <RendererCore/Textures/TextureUtils.h>
#include <UltralightPlugin/Integration/GPUDriverEz.h>
#include <UltralightPlugin/Integration/UltralightResourceMan... | 28.617778 | 142 | 0.78537 | asheraryam |
1213c97231770ea12c77544d88451128874db7a0 | 2,274 | hpp | C++ | src/Include/process_result_facedetect.hpp | Xilinx/nlp-smartvision | e028b93b5fa964510dce1ddb9ae3dc28a15628d4 | [
"Apache-2.0"
] | 3 | 2021-05-20T13:49:07.000Z | 2021-05-21T02:44:36.000Z | src/Include/process_result_facedetect.hpp | Xilinx/nlp-smartvision | e028b93b5fa964510dce1ddb9ae3dc28a15628d4 | [
"Apache-2.0"
] | null | null | null | src/Include/process_result_facedetect.hpp | Xilinx/nlp-smartvision | e028b93b5fa964510dce1ddb9ae3dc28a15628d4 | [
"Apache-2.0"
] | 2 | 2021-05-21T10:59:13.000Z | 2021-08-24T10:48:54.000Z | /*
* Copyright 2021 Xilinx 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 a... | 39.206897 | 122 | 0.493404 | Xilinx |
1213e79b24fde59bab9ba2136fa2cd41bb928072 | 1,599 | cpp | C++ | sscanf/src/tests/test_group_specifiers.cpp | dzoj/ultra_balkan_alpha-master.github.io | f2c1835f2ad2a97436197956de62ef3a43ef7dff | [
"MIT"
] | null | null | null | sscanf/src/tests/test_group_specifiers.cpp | dzoj/ultra_balkan_alpha-master.github.io | f2c1835f2ad2a97436197956de62ef3a43ef7dff | [
"MIT"
] | null | null | null | sscanf/src/tests/test_group_specifiers.cpp | dzoj/ultra_balkan_alpha-master.github.io | f2c1835f2ad2a97436197956de62ef3a43ef7dff | [
"MIT"
] | null | null | null | #include "../specifiers/group_specifiers.h"
TEST(AltGroup1, { AltGroup gg; return gg.ReadToken(S"(ii|dd)") == OK && *CUR == '\0'; })
TEST(AltGroup2, { AltGroup gg; gg.ReadToken(S"(ii|xh)");ss s; return dynamic_cast<ss &>(s << gg).str() == "(ii|xh)"; })
TEST(AltGroup4, { AltGroup gg; if (gg.ReadToken(S"(ii|dd|cc|xx)... | 79.95 | 164 | 0.600375 | dzoj |
12144c8bab5bae8239524d585bc9c5cc617608ab | 639 | cpp | C++ | day26/day26.cpp | offonrynk/30_days_of_code | 6b6e4ce05e07a3065fc9db2fff7dc62ac81a7289 | [
"MIT"
] | null | null | null | day26/day26.cpp | offonrynk/30_days_of_code | 6b6e4ce05e07a3065fc9db2fff7dc62ac81a7289 | [
"MIT"
] | null | null | null | day26/day26.cpp | offonrynk/30_days_of_code | 6b6e4ce05e07a3065fc9db2fff7dc62ac81a7289 | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
int day, month, year;
std::cin >> day >> month >> year;
int dayExpected, monthExpected, yearExpected;
std::cin >> dayExpected >> monthExpected >> yearExpected;
int fine = 0;
if (year > yearExpected) {
fine = 10000;
}
else if (year == yearExpected) {
if (month ... | 20.612903 | 64 | 0.56964 | offonrynk |
12151e08bf4ed73e3b693e21e4ca4b2a2d2fbce6 | 487 | hpp | C++ | src/constants.hpp | yhamdoud/engine | 0e1e589be4eb3b50ac21f0d166a2c76f576fdeb7 | [
"MIT"
] | 4 | 2021-08-29T09:34:22.000Z | 2022-01-27T00:24:52.000Z | src/constants.hpp | yhamdoud/engine | 0e1e589be4eb3b50ac21f0d166a2c76f576fdeb7 | [
"MIT"
] | null | null | null | src/constants.hpp | yhamdoud/engine | 0e1e589be4eb3b50ac21f0d166a2c76f576fdeb7 | [
"MIT"
] | null | null | null | #pragma once
#include <filesystem>
namespace engine
{
using uint = unsigned int;
const uint invalid_texture_id = 0;
const uint invalid_shader_id = 0;
const uint default_frame_buffer_id = 0;
const std::filesystem::path resources_path{"../resources"};
const std::filesystem::path textures_path{resources_path / "textur... | 25.631579 | 71 | 0.770021 | yhamdoud |
1217063959e302507e8e8889380d1a42b69592ab | 1,845 | cpp | C++ | Codeforces/932F.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | UESTC/2394.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | UESTC/2394.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <bits/stdc++.h>
#define MAXN 100005
using namespace std;
const int Z=1e5;
struct Line
{
long long k,b;int x;
Line(){}
Line(long long _,long long __,int ___):
k(_),b(__),x(___){}
long long getY(int x) {
return k*x+b;
}
}tr[MAXN<<2];
int ls[MAXN<<2],rs[MAXN<<2],rt[MAXN],tot;
int n,u,v,a[MAXN],b[MAXN]... | 19.421053 | 65 | 0.547425 | HeRaNO |
121b7e8b1b6fcbfc5a8b1f76d56796ba6082586e | 5,295 | cpp | C++ | test/geometry/polygon.cpp | teyrana/quadtree | 4172ad2f2e36414caebf80013a3d32e6df200945 | [
"MIT"
] | null | null | null | test/geometry/polygon.cpp | teyrana/quadtree | 4172ad2f2e36414caebf80013a3d32e6df200945 | [
"MIT"
] | 1 | 2019-08-24T17:31:50.000Z | 2019-08-24T17:31:50.000Z | test/geometry/polygon.cpp | teyrana/quadtree | 4172ad2f2e36414caebf80013a3d32e6df200945 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <vector>
#include "gtest/gtest.h"
#include "geometry/polygon.hpp"
#include "geometry/layout.hpp"
using std::vector;
using Eigen::Vector2d;
using terrain::geometry::Polygon;
using terrain::geometry::Layout;
namespace terrain::geometry {
TEST(PolygonTest, DefaultConfi... | 33.942308 | 123 | 0.560151 | teyrana |
121cbbb6e03bb86fed80ba5a41b54a54985621eb | 377 | cpp | C++ | 1. Alokasi dan Representasi/14 Program Alokasi Dinamis/PTR4.cpp | zharmedia386/Data-Structures-and-Algorithms | 316a7f4836cf77a4c150d4ee6a48b8d94db6518e | [
"MIT"
] | 2 | 2021-06-21T16:33:26.000Z | 2022-03-13T04:59:43.000Z | 1. Alokasi dan Representasi/14 Program Alokasi Dinamis/PTR4.cpp | zharmedia386/Data-Structures-and-Algorithms | 316a7f4836cf77a4c150d4ee6a48b8d94db6518e | [
"MIT"
] | null | null | null | 1. Alokasi dan Representasi/14 Program Alokasi Dinamis/PTR4.cpp | zharmedia386/Data-Structures-and-Algorithms | 316a7f4836cf77a4c150d4ee6a48b8d94db6518e | [
"MIT"
] | 2 | 2021-06-21T16:33:34.000Z | 2022-03-13T04:58:20.000Z | /*---------------------------
File Program : PTR4.cpp
Contoh operasi pemakaian pointer
Tujuan : Melakukan operasi pada nilai yang ditunjuk pada pointer
----------------------------*/
#include <stdio.h>
int main()
{
int z, s, *pz, *ps;
z = 20;
s = 30;
pz = &z;
ps = &s;
int result = *pz + *ps;
printf("z =... | 18.85 | 64 | 0.488064 | zharmedia386 |
121f75494aa80c0d1d59020bec36381801c4f013 | 1,724 | hpp | C++ | src/reference_counted_object.hpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 12 | 2015-03-04T15:07:00.000Z | 2019-09-13T16:31:06.000Z | src/reference_counted_object.hpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | null | null | null | src/reference_counted_object.hpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 5 | 2017-04-22T08:16:48.000Z | 2020-07-12T03:35:16.000Z | /* $Id: reference_counted_object.hpp 48153 2011-01-01 15:57:50Z mordante $ */
/*
Copyright (C) 2008 - 2011 by David White <dave@whitevine.net>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the ... | 31.925926 | 100 | 0.739559 | blackberry |
121fa1ada6dee2ae4c3e5240a755cf55391194b2 | 27,969 | cpp | C++ | src/q3bsp/Q3BspMap.cpp | suijingfeng/bsp_vulkan | 8f96b164b30d6860e2a2861e1809bf693f0c8de0 | [
"MIT"
] | 2 | 2021-07-29T19:56:03.000Z | 2021-09-13T12:06:06.000Z | src/q3bsp/Q3BspMap.cpp | suijingfeng/bsp_vulkan | 8f96b164b30d6860e2a2861e1809bf693f0c8de0 | [
"MIT"
] | null | null | null | src/q3bsp/Q3BspMap.cpp | suijingfeng/bsp_vulkan | 8f96b164b30d6860e2a2861e1809bf693f0c8de0 | [
"MIT"
] | null | null | null | #include "Q3BspMap.hpp"
#include "Q3BspPatch.hpp"
#include "../renderer/TextureManager.hpp"
#include "../renderer/vulkan/CmdBuffer.hpp"
#include "../renderer/vulkan/Pipeline.hpp"
#include "../Math.hpp"
#include "../Utils.hpp"
#include <algorithm>
#include <sstream>
extern RenderContext g_renderContext;
... | 41.252212 | 156 | 0.653152 | suijingfeng |
1220881c38060cb1b2a19c4c26f39604e2d1edab | 2,854 | cpp | C++ | tests/serialization_ext_std_chrono.cpp | victorstewart/bitsery | db884a0656a3aabb87da1ae6edf12629507f76a7 | [
"MIT"
] | 722 | 2017-08-22T06:07:02.000Z | 2022-03-30T03:29:20.000Z | tests/serialization_ext_std_chrono.cpp | victorstewart/bitsery | db884a0656a3aabb87da1ae6edf12629507f76a7 | [
"MIT"
] | 85 | 2017-10-19T07:23:29.000Z | 2022-03-02T06:54:10.000Z | tests/serialization_ext_std_chrono.cpp | victorstewart/bitsery | db884a0656a3aabb87da1ae6edf12629507f76a7 | [
"MIT"
] | 69 | 2017-08-28T06:38:07.000Z | 2022-03-13T03:12:02.000Z | //MIT License
//
//Copyright (c) 2019 Mindaugas Vinkelis
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify... | 34.804878 | 80 | 0.734408 | victorstewart |
1220e5dc0ecb154d3c197288354a7640ae647746 | 4,554 | cpp | C++ | projects/InjectDLL/system/textures.cpp | LoadCake/OriWotwRandomizerClient | 99812148b60aad77895bf4aa560128d0ff9b73eb | [
"MIT"
] | null | null | null | projects/InjectDLL/system/textures.cpp | LoadCake/OriWotwRandomizerClient | 99812148b60aad77895bf4aa560128d0ff9b73eb | [
"MIT"
] | null | null | null | projects/InjectDLL/system/textures.cpp | LoadCake/OriWotwRandomizerClient | 99812148b60aad77895bf4aa560128d0ff9b73eb | [
"MIT"
] | null | null | null | #include <system/textures.h>
#include <Common/ext.h>
#include <Il2CppModLoader/common.h>
#include <Il2CppModLoader/il2cpp_helpers.h>
#include <Il2CppModLoader/interception_macros.h>
#include <utils\stb_image.h>
#include <fstream>
#include <string>
#include <unordered_map>
using namespace modloader;
namespace text... | 43.371429 | 140 | 0.577514 | LoadCake |
12238f77a4457449517ef9c7dd13e7fa927f8434 | 47,151 | hxx | C++ | Modules/Registration/Common/include/itkMattesMutualInformationImageToImageMetric.hxx | CapeDrew/DCMTK-ITK | 440bf8ed100445396912cfd0aa72f36d4cdefe0c | [
"Apache-2.0"
] | 2 | 2015-06-19T07:18:36.000Z | 2019-04-18T07:28:23.000Z | Modules/Registration/Common/include/itkMattesMutualInformationImageToImageMetric.hxx | CapeDrew/DCMTK-ITK | 440bf8ed100445396912cfd0aa72f36d4cdefe0c | [
"Apache-2.0"
] | null | null | null | Modules/Registration/Common/include/itkMattesMutualInformationImageToImageMetric.hxx | CapeDrew/DCMTK-ITK | 440bf8ed100445396912cfd0aa72f36d4cdefe0c | [
"Apache-2.0"
] | 2 | 2017-05-02T07:18:49.000Z | 2020-04-30T01:37:35.000Z | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | 34.216981 | 121 | 0.672775 | CapeDrew |
12247c340acb0ba8f2462878f262227e9a4abad3 | 5,427 | cpp | C++ | libraries/C6502Cpu/CVanguardGame.cpp | porchio/arduino-mega-ict | dcc4b37cdbae2966d5736589bea776bf286df9ee | [
"BSD-2-Clause"
] | 19 | 2016-01-14T10:54:07.000Z | 2021-06-29T17:47:54.000Z | libraries/C6502Cpu/CVanguardGame.cpp | LabRat3K/arduino-mega-ict | b5f46ee41fc088c4ef80e3dcfb045685e6b89e94 | [
"BSD-2-Clause"
] | 11 | 2016-01-20T23:30:34.000Z | 2021-05-22T18:06:55.000Z | libraries/C6502Cpu/CVanguardGame.cpp | LabRat3K/arduino-mega-ict | b5f46ee41fc088c4ef80e3dcfb045685e6b89e94 | [
"BSD-2-Clause"
] | 16 | 2016-01-03T18:29:09.000Z | 2021-08-18T14:09:36.000Z | //
// Copyright (c) 2020, Paul R. Swan
// 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 the above copyright notice,
// this list of condit... | 60.3 | 141 | 0.563663 | porchio |
1224e1747e7a6831bef92ba65de97dbd347696c1 | 14,568 | hpp | C++ | include/cps/Socket.hpp | clusterpoint/cpp-client-api | 605825f0d46678c1ebdabb006bc0c138e4b0b7f3 | [
"MIT"
] | 1 | 2015-09-22T10:32:36.000Z | 2015-09-22T10:32:36.000Z | include/cps/Socket.hpp | clusterpoint/cpp-client-api | 605825f0d46678c1ebdabb006bc0c138e4b0b7f3 | [
"MIT"
] | null | null | null | include/cps/Socket.hpp | clusterpoint/cpp-client-api | 605825f0d46678c1ebdabb006bc0c138e4b0b7f3 | [
"MIT"
] | null | null | null | #ifndef CPS_SOCKET_HPP_
#define CPS_SOCKET_HPP_
#include <string>
#include <vector>
#include "Exception.hpp"
#include "Utils.hpp"
#include "boost/bind.hpp"
#include "boost/lambda/lambda.hpp"
namespace CPS
{
#ifndef USE_HEADER_ONLY_ASIO
#include "boost/asio.hpp"
using namespace boost;
#else
#define ASIO_DISABLE_THRE... | 34.521327 | 112 | 0.705656 | clusterpoint |
1225fb25b18b3ca12ea5812dbd8dc4b07db48775 | 4,923 | cpp | C++ | unittests/core/test_sstring_view_archive.cpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | unittests/core/test_sstring_view_archive.cpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | unittests/core/test_sstring_view_archive.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- unittests/core/test_sstring_view_archive.cpp -----------------------===//
//* _ _ _ *
//* ___ ___| |_ _ __(_)_ __ __ _ __ _(_) _____ __ *
//* / __/ __| __| '__| | '_ \ / _` | \ \ / / |/ _ \ \ /\ / / *
//* \__ \__ \ |_| | | | | | | (_| | \ V /| | __... | 41.369748 | 97 | 0.566118 | paulhuggett |
1226c5c4d2478de9e19e9e3aaa71303d0ea0d6ed | 917 | cpp | C++ | src/FalconEngine/Core/GameEngineProfiler.cpp | Lywx/FalconEngine | c4d1fed789218d1994908b8dbbcd6c01961f9ef2 | [
"MIT"
] | 6 | 2017-04-17T12:34:57.000Z | 2019-10-19T23:29:59.000Z | src/FalconEngine/Core/GameEngineProfiler.cpp | Lywx/FalconEngine | c4d1fed789218d1994908b8dbbcd6c01961f9ef2 | [
"MIT"
] | null | null | null | src/FalconEngine/Core/GameEngineProfiler.cpp | Lywx/FalconEngine | c4d1fed789218d1994908b8dbbcd6c01961f9ef2 | [
"MIT"
] | 2 | 2019-12-30T08:28:04.000Z | 2020-08-05T09:58:53.000Z | #include <FalconEngine/Core/GameEngineProfiler.h>
namespace FalconEngine
{
/************************************************************************/
/* Public Members */
/************************************************************************/
void
GameEnginePro... | 18.34 | 74 | 0.623773 | Lywx |
1229c7a143db8848bfec305d4389b32e1349b437 | 6,075 | cpp | C++ | firmware/ventilator-controller-stm32/Core/Src/Pufferfish/Driver/BreathingCircuit/Simulator.cpp | raavilagoo/Test | e2de25cc4b6fcbffe3f98f4a7ce1644fa8b6bb16 | [
"Apache-2.0"
] | null | null | null | firmware/ventilator-controller-stm32/Core/Src/Pufferfish/Driver/BreathingCircuit/Simulator.cpp | raavilagoo/Test | e2de25cc4b6fcbffe3f98f4a7ce1644fa8b6bb16 | [
"Apache-2.0"
] | null | null | null | firmware/ventilator-controller-stm32/Core/Src/Pufferfish/Driver/BreathingCircuit/Simulator.cpp | raavilagoo/Test | e2de25cc4b6fcbffe3f98f4a7ce1644fa8b6bb16 | [
"Apache-2.0"
] | null | null | null | /*
* BreathingCircuit.tpp
*
* Created on: June 6, 2020
* Author: Ethan Li
*/
#include "Pufferfish/Driver/BreathingCircuit/Simulator.h"
#include "Pufferfish/Util/Timeouts.h"
namespace Pufferfish::Driver::BreathingCircuit {
// Simulator
void Simulator::input_clock(uint32_t current_time) {
if (initial_ti... | 31.314433 | 99 | 0.744856 | raavilagoo |
122ae8a4dbb851bd8b0686cc72850a236e1f754e | 8,475 | cpp | C++ | common/events/src/events/zsysd.cpp | naazgull/zapata | e5734ff88a17b261a2f4547fa47f01dbb1a69d84 | [
"Unlicense"
] | 9 | 2016-08-10T16:51:23.000Z | 2020-04-08T22:07:47.000Z | common/events/src/events/zsysd.cpp | naazgull/zapata | e5734ff88a17b261a2f4547fa47f01dbb1a69d84 | [
"Unlicense"
] | 78 | 2015-02-25T15:16:02.000Z | 2021-10-31T15:58:15.000Z | common/events/src/events/zsysd.cpp | naazgull/zapata | e5734ff88a17b261a2f4547fa47f01dbb1a69d84 | [
"Unlicense"
] | 7 | 2015-01-13T14:39:21.000Z | 2018-11-24T06:48:09.000Z | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
this software, either in source code form or as a compiled binary, for any
purpose, commercial or non-commercial, and by any means.
In jurisdictions that reco... | 38.004484 | 100 | 0.487198 | naazgull |
122b1f5dd7e100112c1df1920bb2392b584c44bc | 8,793 | cpp | C++ | parameter_generator.cpp | alexrow/LEDAtools | f847707833650706519cc57f5956b8e1a17a157c | [
"Unlicense"
] | null | null | null | parameter_generator.cpp | alexrow/LEDAtools | f847707833650706519cc57f5956b8e1a17a157c | [
"Unlicense"
] | null | null | null | parameter_generator.cpp | alexrow/LEDAtools | f847707833650706519cc57f5956b8e1a17a157c | [
"Unlicense"
] | 1 | 2021-03-12T09:12:30.000Z | 2021-03-12T09:12:30.000Z | #include <NTL/ZZ.h>
#include <cstdint>
#include <cmath>
#define NUM_BITS_REAL_MANTISSA 128
#define IGNORE_DECODING_COST 0
#define SKIP_BJMM 0
#define LOG_COST_CRITERION 1
#include "proper_primes.hpp"
#include "binomials.hpp"
#include "bit_error_probabilities.hpp"
#include "partitions_permanents.hpp"
#include "i... | 35.455645 | 116 | 0.589446 | alexrow |
122e5086319ce6bf859f46f5a1bc19bb9cdc8c8a | 923 | cpp | C++ | src/terminal/render/Translate.cpp | KeinR/Etermal | 9bf66f6be6ae8585b763dd902701e72013a5abcc | [
"MIT"
] | null | null | null | src/terminal/render/Translate.cpp | KeinR/Etermal | 9bf66f6be6ae8585b763dd902701e72013a5abcc | [
"MIT"
] | null | null | null | src/terminal/render/Translate.cpp | KeinR/Etermal | 9bf66f6be6ae8585b763dd902701e72013a5abcc | [
"MIT"
] | null | null | null | #include "Translate.h"
#include <glm/gtx/rotate_vector.hpp>
#include "../Resources.h"
#include "Model.h"
#include "RModel.h"
glm::mat4 etm::tsl::model(Resources *res, Model &m) {
glm::mat4 model(1.0f);
// Translate so that the x/y coords are in the middle
// of the object, then convert to quads (OpenGL ... | 34.185185 | 119 | 0.641387 | KeinR |
122ed0e34c0bb22804e4541fc998efbf1fd47cd7 | 112 | cpp | C++ | language.cpp | MasterQ32/CodersNotepad | 8248ce25bda3b9fb82d84ec682bc9c82ac4e868a | [
"MIT"
] | null | null | null | language.cpp | MasterQ32/CodersNotepad | 8248ce25bda3b9fb82d84ec682bc9c82ac4e868a | [
"MIT"
] | null | null | null | language.cpp | MasterQ32/CodersNotepad | 8248ce25bda3b9fb82d84ec682bc9c82ac4e868a | [
"MIT"
] | null | null | null | #include "language.h"
Language::Language(QString id, QObject *parent) :
QObject(parent),
mId(id)
{
}
| 11.2 | 49 | 0.642857 | MasterQ32 |
12321dfd81c2143f28ab45a2e45581e2ee362dd0 | 9,804 | cpp | C++ | unittest/benchmark/benchmark_knowhere_binary.cpp | ChunelFeng/knowhere | 4c6ff55b5a23a9a38b12db40cbb5cd847cae1408 | [
"Apache-2.0"
] | null | null | null | unittest/benchmark/benchmark_knowhere_binary.cpp | ChunelFeng/knowhere | 4c6ff55b5a23a9a38b12db40cbb5cd847cae1408 | [
"Apache-2.0"
] | null | null | null | unittest/benchmark/benchmark_knowhere_binary.cpp | ChunelFeng/knowhere | 4c6ff55b5a23a9a38b12db40cbb5cd847cae1408 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2019-2020 Zilliz. 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 required by applicable l... | 37.853282 | 116 | 0.586597 | ChunelFeng |
123358de8146823dfc763ad8df7083420de0c640 | 8,638 | hpp | C++ | OBJ_IO.hpp | James-Wickenden/computer-graphics | 03a2661e4c9368773b21ea9e7b459f0bde7a649c | [
"MIT"
] | 1 | 2020-07-15T13:14:57.000Z | 2020-07-15T13:14:57.000Z | OBJ_IO.hpp | James-Wickenden/computer-graphics | 03a2661e4c9368773b21ea9e7b459f0bde7a649c | [
"MIT"
] | null | null | null | OBJ_IO.hpp | James-Wickenden/computer-graphics | 03a2661e4c9368773b21ea9e7b459f0bde7a649c | [
"MIT"
] | null | null | null | #include <string>
#include <fstream>
#include <sstream>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <cmath>
#include <tuple>
#include <optional>
#include "OBJ_Structure.hpp"
#include "Texture.hpp"
using namespace std;
using namespace glm;
class OBJ_IO {
public:
OBJ_IO () {}
// ... | 33.48062 | 106 | 0.56263 | James-Wickenden |
1233d6e75cbe55afab5f5e68a38abc200ef11be0 | 2,291 | cpp | C++ | tests/test_framework.cpp | sagniknitr/EDGEMW | 54638a6532f2593a0775740fcbfcf297291cbe70 | [
"MIT"
] | 1 | 2020-08-26T20:22:24.000Z | 2020-08-26T20:22:24.000Z | tests/test_framework.cpp | sagniknitr/EDGEMW | 54638a6532f2593a0775740fcbfcf297291cbe70 | [
"MIT"
] | 4 | 2021-09-20T00:33:33.000Z | 2021-09-20T00:35:46.000Z | tests/test_framework.cpp | sagniknitr/EDGEMW | 54638a6532f2593a0775740fcbfcf297291cbe70 | [
"MIT"
] | 1 | 2022-03-24T13:41:46.000Z | 2022-03-24T13:41:46.000Z | #include <iostream>
#include <string>
#include <stdint.h>
extern "C" {
int prng_test(int argc, char **argv);
int list_test(int argc, char **argv);
int sysioctl_test(int argc, char **argv);
int pthread_test(int argc, char **argv);
//int crypto_test(int argc, char **argv);
int sched_test(int argc, char **argv);
int dlis... | 29.371795 | 80 | 0.633348 | sagniknitr |
72eb7c7fa4280678d2284acfe37f340c3ea6ec8d | 9,522 | cpp | C++ | TAO/orbsvcs/examples/Notify/MC/monitor/monitor.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/orbsvcs/examples/Notify/MC/monitor/monitor.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/orbsvcs/examples/Notify/MC/monitor/monitor.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // $Id: monitor.cpp 90164 2010-05-18 21:47:55Z mitza $
#include "ace/Get_Opt.h"
#include "ace/OS_NS_ctype.h"
#include "orbsvcs/Notify/MonitorControl/NotificationServiceMCC.h"
static const ACE_TCHAR* monitor_ior = 0;
static const char* shutdown_cmd = "shutdown";
static const char* rm_consumer = "remove_consumer";
sta... | 30.132911 | 81 | 0.413989 | cflowe |
72eb8e94d6b6de0cd52e42525121b40d4ab81ed0 | 7,197 | cc | C++ | tools/gn/setup.cc | MIPS/external-chromium_org | e31b3128a419654fd14003d6117caa8da32697e7 | [
"BSD-3-Clause"
] | 2 | 2017-03-21T23:19:25.000Z | 2019-02-03T05:32:47.000Z | tools/gn/setup.cc | carlosavignano/android_external_chromium_org | 2b5652f7889ccad0fbdb1d52b04bad4c23769547 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/gn/setup.cc | carlosavignano/android_external_chromium_org | 2b5652f7889ccad0fbdb1d52b04bad4c23769547 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2017-07-31T19:09:52.000Z | 2019-01-04T18:48:50.000Z | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/gn/setup.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
#include "tools/gn/filesyste... | 30.888412 | 80 | 0.680006 | MIPS |
72ef6173b28a1535cc00fc18f6393683ab11f2f5 | 10,181 | cpp | C++ | Components/Components/Logic/KalmanFilter6DOF.cpp | muellerlab/agri-fly | 6851f2f207e73300b4ed9be7ec1c72c2f23eeef5 | [
"BSD-2-Clause"
] | 1 | 2022-03-09T21:31:49.000Z | 2022-03-09T21:31:49.000Z | Components/Components/Logic/KalmanFilter6DOF.cpp | muellerlab/agri-fly | 6851f2f207e73300b4ed9be7ec1c72c2f23eeef5 | [
"BSD-2-Clause"
] | 4 | 2022-02-11T18:24:49.000Z | 2022-03-28T01:16:51.000Z | Components/Components/Logic/KalmanFilter6DOF.cpp | muellerlab/agri-fly | 6851f2f207e73300b4ed9be7ec1c72c2f23eeef5 | [
"BSD-2-Clause"
] | null | null | null | #include "KalmanFilter6DOF.hpp"
#include <cerrno>
using namespace Onboard;
float const TIME_CONST_ATT_CORR = 4.0f; //[s]
KalmanFilter6DOF::KalmanFilter6DOF(BaseTimer* const masterTimer)
: _estimateTimer(masterTimer),
_timerLastGoodMeasUpdate(masterTimer),
_IMUInitialized(false),
_UWBInitializ... | 32.841935 | 126 | 0.615264 | muellerlab |
72f0219ecd22fe90ce62aaa8eee1e4dc6d0118a4 | 2,595 | cc | C++ | zircon/kernel/lib/code-patching/code-patching.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | zircon/kernel/lib/code-patching/code-patching.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | zircon/kernel/lib/code-patching/code-patching.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2021 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <lib/arch/nop.h>
#include <lib/code-patching/code-patching.h>
#include <lib/fitx/result.h>
#include <lib/zbitl/error-stdi... | 30.174419 | 99 | 0.66474 | fabio-d |
72f02ed9254a861eb20cee1c4e4735344a970481 | 7,164 | cpp | C++ | Code/Framework/AzCore/AzCore/Android/Utils.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Code/Framework/AzCore/AzCore/Android/Utils.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzCore/AzCore/Android/Utils.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Android/Utils.h>
#include <AzCore/Android/AndroidEnv.h>
#include <AzCore/Android/APK... | 36.365482 | 158 | 0.400195 | aaarsene |
72f505ad7263cbbb422071cf83d1160c3602ebe7 | 5,074 | cpp | C++ | Game/keyconfiglabel.cpp | sethballantyne/Plexis | 49b98918d9184321ba0dd449aded46b68eedb752 | [
"MIT"
] | 1 | 2021-04-14T15:06:55.000Z | 2021-04-14T15:06:55.000Z | Game/keyconfiglabel.cpp | sethballantyne/Plexis | 49b98918d9184321ba0dd449aded46b68eedb752 | [
"MIT"
] | 7 | 2020-05-14T02:14:26.000Z | 2020-05-22T04:57:47.000Z | Game/keyconfiglabel.cpp | sethballantyne/Plexis | 49b98918d9184321ba0dd449aded46b68eedb752 | [
"MIT"
] | null | null | null | // Copyright(c) 2018 Seth Ballantyne <seth.ballantyne@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files(the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy... | 30.566265 | 133 | 0.645644 | sethballantyne |
72f5f37c1905bf7f237fd45aa63ef18e7bc77b41 | 11,687 | cpp | C++ | src/services/events/system.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 26 | 2018-03-19T15:59:46.000Z | 2021-08-06T16:13:16.000Z | src/services/events/system.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 34 | 2018-01-21T17:43:29.000Z | 2020-06-27T02:00:53.000Z | src/services/events/system.cpp | patrick-lafferty/saturn | 6dc36adb42ad9b647704dd19247423a522eeb551 | [
"BSD-3-Clause"
] | 3 | 2019-12-08T22:26:35.000Z | 2021-06-25T17:05:57.000Z | /*
Copyright (c) 2017, Patrick Lafferty
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the... | 36.867508 | 129 | 0.57534 | patrick-lafferty |
72fabfadf143f37ccb37fb1957981107315c2112 | 3,480 | cpp | C++ | src/plugins/azoth/plugins/vader/vader.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/azoth/plugins/vader/vader.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/azoth/plugins/vader/vader.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 24 | 88 | 0.670977 | Maledictus |
72fd44ad283abd8d85d93a4d070f7e9932fdb001 | 922 | hpp | C++ | Libraries/Libui/LayoutParams.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | 21 | 2021-08-22T19:06:54.000Z | 2022-03-31T12:44:30.000Z | Libraries/Libui/LayoutParams.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | 1 | 2021-09-01T22:55:59.000Z | 2021-09-08T20:52:09.000Z | Libraries/Libui/LayoutParams.hpp | Plunkerusr/podsOS | b68e2ebdaa4eb99366dea6cc5509ba0c92c3601a | [
"MIT"
] | null | null | null | #pragma once
namespace UI {
enum class LayoutParamsType {
Default,
MarginLayoutParams,
LinearLayoutParams,
};
struct LayoutParams {
LayoutParams() = default;
LayoutParams(LayoutParamsType type)
: type(type)
{
}
enum Size {
WRAP_CONTENT = -2,
MATCH_PARENT = -1,
... | 18.816327 | 66 | 0.64859 | Plunkerusr |
72fe365c0ac25e513416ba572994d39c7a0c54bf | 545 | cpp | C++ | ICPC/Repechaje2021/base.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | ICPC/Repechaje2021/base.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | ICPC/Repechaje2021/base.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string>
#include <vector>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <stack>
#include <utility>
#include <queue>
#include <set>
#include <iomanip>
using namespace std;
typedef int64_t ll;
typedef pair<int,int> pii... | 17.580645 | 65 | 0.658716 | CaDe27 |
72fe5603bd613549421b714a7f45b5f916b921bd | 132 | cpp | C++ | Numbers/Fibonacci_Recursive.cpp | PhilRybka/Algorithms | 86a11777aa7fc19abee845f0c18893afbd491130 | [
"MIT"
] | null | null | null | Numbers/Fibonacci_Recursive.cpp | PhilRybka/Algorithms | 86a11777aa7fc19abee845f0c18893afbd491130 | [
"MIT"
] | null | null | null | Numbers/Fibonacci_Recursive.cpp | PhilRybka/Algorithms | 86a11777aa7fc19abee845f0c18893afbd491130 | [
"MIT"
] | null | null | null | //Returns the n-th element of the Fibonacci sequence
int fib(int n){
if(n==1||n==2) return 1;
return fib(n-2)+fib(n-1);
}
| 16.5 | 52 | 0.613636 | PhilRybka |
72ffb2d48de7d5b06f9e60c525b2c3c216c1aabf | 3,828 | cpp | C++ | aligndiff/algorithms/lcslength_ondgreedy.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 14 | 2017-06-16T22:52:38.000Z | 2022-02-14T04:11:06.000Z | aligndiff/algorithms/lcslength_ondgreedy.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 2 | 2016-03-13T14:50:04.000Z | 2019-04-01T09:53:17.000Z | aligndiff/algorithms/lcslength_ondgreedy.cpp | mogemimi/daily-snippets | d9da3db8c62538e4a37f0f6b69c5d46d55c4225f | [
"MIT"
] | 2 | 2016-03-13T14:05:17.000Z | 2018-09-18T01:28:42.000Z | // Copyright (c) 2017 mogemimi. Distributed under the MIT license.
#include "aligndiff.h"
#include <cassert>
#include <cstdlib>
namespace aligndiff {
int computeLCSLength_ONDGreedyAlgorithm(
const std::string& text1,
const std::string& text2)
{
// NOTE:
// This algorithm is based on Myers's An O((M+N... | 32.440678 | 77 | 0.449582 | mogemimi |
f4031124c33c5e509c18ccefb7d3aadddd44d520 | 237 | hpp | C++ | learnBoost/learnBoost/c++/bootregister.hpp | zhenyiyi/LearnDiary | 7e88ced2c4294b5cfb7dd60c046fbc9510aab489 | [
"MIT"
] | 1 | 2019-03-18T06:58:36.000Z | 2019-03-18T06:58:36.000Z | learnBoost/learnBoost/c++/bootregister.hpp | zhenyiyi/LearnDiary | 7e88ced2c4294b5cfb7dd60c046fbc9510aab489 | [
"MIT"
] | null | null | null | learnBoost/learnBoost/c++/bootregister.hpp | zhenyiyi/LearnDiary | 7e88ced2c4294b5cfb7dd60c046fbc9510aab489 | [
"MIT"
] | null | null | null | //
// bootregister.hpp
// learnBoost
//
// Created by fenglin on 2017/11/20.
// Copyright © 2017年 fenglin. All rights reserved.
//
#ifndef bootregister_hpp
#define bootregister_hpp
#include <stdio.h>
#endif /* bootregister_hpp */
| 15.8 | 51 | 0.704641 | zhenyiyi |
f40ad5b256b350cf7df9faaf45d8e5a0b7b3d58f | 2,953 | cpp | C++ | src/sound/snth5.cpp | DavidLudwig/executor | eddb527850af639b3ffe314e05d92a083ba47af6 | [
"MIT"
] | null | null | null | src/sound/snth5.cpp | DavidLudwig/executor | eddb527850af639b3ffe314e05d92a083ba47af6 | [
"MIT"
] | null | null | null | src/sound/snth5.cpp | DavidLudwig/executor | eddb527850af639b3ffe314e05d92a083ba47af6 | [
"MIT"
] | null | null | null | /* Copyright 1992 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#include <base/common.h>
#include <SoundMgr.h>
#include <sound/soundopts.h>
using namespace Executor;
/*
* It's not really clear how an actual synthesizer is expected to work
* with the Sound Manager's queues. In this implemen... | 26.603604 | 75 | 0.532001 | DavidLudwig |
f40b63805681fc9df4ce28af6a437004b1ad064b | 954 | hpp | C++ | include/sparsex/internals/CsxSpmv.hpp | Baltoli/sparsex | 36145d9c47e40dbd7da71ba5a75b7644e2eda5d8 | [
"BSD-3-Clause"
] | 28 | 2015-02-03T13:19:01.000Z | 2022-03-25T15:46:11.000Z | include/sparsex/internals/CsxSpmv.hpp | Baltoli/sparsex | 36145d9c47e40dbd7da71ba5a75b7644e2eda5d8 | [
"BSD-3-Clause"
] | 2 | 2018-06-19T06:41:47.000Z | 2019-05-10T09:51:17.000Z | include/sparsex/internals/CsxSpmv.hpp | Baltoli/sparsex | 36145d9c47e40dbd7da71ba5a75b7644e2eda5d8 | [
"BSD-3-Clause"
] | 7 | 2015-01-15T16:06:59.000Z | 2019-03-01T12:30:04.000Z | /*
* Copyright (C) 2012-2014, Computing Systems Laboratory (CSLab), NTUA.
* Copyright (C) 2012-2014, Athena Elafrou
* All rights reserved.
*
* This file is distributed under the BSD License. See LICENSE.txt for details.
*/
/**
* \file CsxSpmv.hpp
* \brief Thread-level SpMV routines
*
* \author Computing Syst... | 25.783784 | 79 | 0.75891 | Baltoli |
f410b8e813c94eed8a9a7c69426cadf6663b0f22 | 2,760 | cpp | C++ | src/mbgl/util/tile_cover.cpp | donpark/mapbox-gl-native | efa7dad89c61fe0fcc01a492e8db8e36b8f27f53 | [
"BSD-2-Clause"
] | 1 | 2015-07-01T21:59:13.000Z | 2015-07-01T21:59:13.000Z | src/mbgl/util/tile_cover.cpp | donpark/mapbox-gl-native | efa7dad89c61fe0fcc01a492e8db8e36b8f27f53 | [
"BSD-2-Clause"
] | null | null | null | src/mbgl/util/tile_cover.cpp | donpark/mapbox-gl-native | efa7dad89c61fe0fcc01a492e8db8e36b8f27f53 | [
"BSD-2-Clause"
] | null | null | null | #include <mbgl/util/tile_cover.hpp>
#include <mbgl/util/vec.hpp>
#include <mbgl/util/box.hpp>
namespace mbgl {
// Taken from polymaps src/Layer.js
// https://github.com/simplegeo/polymaps/blob/master/src/Layer.js#L333-L383
struct edge {
double x0 = 0, y0 = 0;
double x1 = 0, y1 = 0;
double dx = 0, dy = 0;... | 29.361702 | 158 | 0.546739 | donpark |
f411a425aa78cc87e1a5004a9440c1c257518beb | 267 | cpp | C++ | Tools/CRCompilerAudio/SoundsHandler.cpp | duhone/HeadstoneHarry | 961a314a0e69d67275253da802e41429cff80097 | [
"MIT"
] | 1 | 2020-02-06T16:11:02.000Z | 2020-02-06T16:11:02.000Z | Tools/CRCompilerAudio/SoundsHandler.cpp | duhone/HeadstoneHarry | 961a314a0e69d67275253da802e41429cff80097 | [
"MIT"
] | null | null | null | Tools/CRCompilerAudio/SoundsHandler.cpp | duhone/HeadstoneHarry | 961a314a0e69d67275253da802e41429cff80097 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "SoundsHandler.h"
#include "SoundsCompiler.h"
using namespace CR::Compiler;
SoundsHandler::SoundsHandler(void)
{
}
SoundsHandler::~SoundsHandler(void)
{
}
INodeCompiler* SoundsHandler::StartElement()
{
return new SoundsCompiler();
}
| 14.052632 | 44 | 0.756554 | duhone |
f4121a8096dd1546344ae9e51201b37b92148ef1 | 5,841 | cxx | C++ | nn.cxx | pgomoluch/simple-nn | 8075338939f1293824de67ce2c6a21b295d65e7e | [
"MIT"
] | null | null | null | nn.cxx | pgomoluch/simple-nn | 8075338939f1293824de67ce2c6a21b295d65e7e | [
"MIT"
] | null | null | null | nn.cxx | pgomoluch/simple-nn | 8075338939f1293824de67ce2c6a21b295d65e7e | [
"MIT"
] | null | null | null | #include "config.h"
#include "network.h"
#include "utils.h"
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
using namespace std;
using namespace std::chrono;
const char *learning_log_file = "learning_log.txt";
const char *features_train_file = "features_train.txt";
cons... | 33.1875 | 104 | 0.624551 | pgomoluch |
f41333fb4106c1084a7f323eeef63c8c53d549be | 1,378 | cpp | C++ | share/fs/file.cpp | ShZh-Playground/tiny-FTP | 89965f74a94cc05e956ad9115bc0ef7be70a57eb | [
"MIT"
] | null | null | null | share/fs/file.cpp | ShZh-Playground/tiny-FTP | 89965f74a94cc05e956ad9115bc0ef7be70a57eb | [
"MIT"
] | null | null | null | share/fs/file.cpp | ShZh-Playground/tiny-FTP | 89965f74a94cc05e956ad9115bc0ef7be70a57eb | [
"MIT"
] | null | null | null | #include <Windows.h>
#include <iostream>
#include <io.h>
#include "file.h"
using namespace FileSystem;
bool File::IsDirectory(const string& path) {
WIN32_FIND_DATAA find_file_data;
FindFirstFileA(path.c_str(), &find_file_data);
return find_file_data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
}
bool File::IsFile... | 27.019608 | 69 | 0.679245 | ShZh-Playground |