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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1f15f6d28bf1e139232cf003c1ea937e305a5c5a | 3,539 | cpp | C++ | Codility/NumberOfDiscIntersections.cpp | dfm066/Programming | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | [
"MIT"
] | null | null | null | Codility/NumberOfDiscIntersections.cpp | dfm066/Programming | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | [
"MIT"
] | null | null | null | Codility/NumberOfDiscIntersections.cpp | dfm066/Programming | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define MAX 1e7
bool first_comp(const pair<long long,long long> a, const pair<long long,long long> b) {
if (a.first > b.first) return false;
else if(a.first == b.first && a.second > b.second) return false;
else return true;
}
bool second_comp(... | 28.540323 | 124 | 0.565131 | dfm066 |
1f15f8db8541780972f18bac14cdfb549498b72d | 2,983 | cpp | C++ | components/raisedbutton.cpp | ashraf-kx/qt-material-widgets | 851d3fb7b56695a9181e3ea373f3d9e4015c15df | [
"BSD-3-Clause"
] | 5 | 2018-09-13T16:18:03.000Z | 2022-03-16T07:34:21.000Z | components/raisedbutton.cpp | ashraf-kx/qt-material-widgets | 851d3fb7b56695a9181e3ea373f3d9e4015c15df | [
"BSD-3-Clause"
] | null | null | null | components/raisedbutton.cpp | ashraf-kx/qt-material-widgets | 851d3fb7b56695a9181e3ea373f3d9e4015c15df | [
"BSD-3-Clause"
] | 2 | 2022-02-22T04:08:50.000Z | 2022-03-12T10:05:15.000Z | #include "raisedbutton_p.h"
namespace md
{
/*!
* \class QtMaterialRaisedButtonPrivate
* \internal
*/
/*!
* \internal
*/
RaisedButtonPrivate::RaisedButtonPrivate(RaisedButton *q)
: FlatButtonPrivate(q)
{
}
/*!
* \internal
*/
RaisedButtonPrivate::~RaisedButtonPrivate()
{
}
/*!
* \internal
*/
void R... | 23.304688 | 70 | 0.684211 | ashraf-kx |
1f1773bc564d12a50ad025a5af7f5fd6ac3bf253 | 204 | ipp | C++ | dev/test/router/express/usings.ipp | faizol/restinio | 8a7da3e2e3a54d0ca6ac80e6c7952d9905a084bb | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 881 | 2017-12-26T23:45:13.000Z | 2022-03-26T08:12:54.000Z | dev/test/router/express/usings.ipp | faizol/restinio | 8a7da3e2e3a54d0ca6ac80e6c7952d9905a084bb | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 142 | 2018-01-07T01:45:43.000Z | 2022-03-17T04:53:41.000Z | dev/test/router/express/usings.ipp | faizol/restinio | 8a7da3e2e3a54d0ca6ac80e6c7952d9905a084bb | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 97 | 2017-12-28T13:06:45.000Z | 2022-03-03T04:43:44.000Z | using namespace restinio;
using namespace restinio::router;
using regex_engine_t = restinio::router::std_regex_engine_t;
using route_matcher_t = restinio::router::impl::route_matcher_t< regex_engine_t >;
| 40.8 | 82 | 0.823529 | faizol |
1f17a00fc05e94477d5bb3428d939891fdb66ae5 | 1,259 | hpp | C++ | code/src/engine/physics/helper_physx.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 3 | 2020-04-29T14:55:58.000Z | 2020-08-20T08:43:24.000Z | code/src/engine/physics/helper_physx.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 1 | 2022-03-12T11:37:46.000Z | 2022-03-12T20:17:38.000Z | code/src/engine/physics/helper_physx.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | null | null | null |
#ifndef ENGINE_PHYSICS_HELPER_PHYSX_HPP
#define ENGINE_PHYSICS_HELPER_PHYSX_HPP
#include <PxPhysicsAPI.h>
#include <core/maths/Vector.hpp>
/**
* \note Should be used by physics implementation only.
*/
namespace engine
{
namespace physics
{
template<class T>
inline T convert(const core::maths::Vector3f val)
{
... | 23.314815 | 77 | 0.709293 | shossjer |
1f1a52d230d41f4071da52d70426260c3af197cc | 1,377 | hpp | C++ | lib/graph/chromatic_number.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | null | null | null | lib/graph/chromatic_number.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | 4 | 2022-01-05T14:40:40.000Z | 2022-03-05T08:03:19.000Z | lib/graph/chromatic_number.hpp | kuhaku-space/atcoder-lib | 7fe1365e1be69d3eff11e122b2c7dff997a6c541 | [
"Apache-2.0"
] | null | null | null | #include "graph/matrix_graph.hpp"
#include "template/template.hpp"
// 彩色数を求める
// O(2^N)
int chromatic_number(const matrix_graph<bool> &G) {
constexpr int64_t _MOD = (1LL << 31) - 1;
int n = G.size();
vector<int> neighbor(n, 0);
for (int i = 0; i < n; ++i) {
int s = 1 << i;
fo... | 27 | 93 | 0.394336 | kuhaku-space |
1f1afe595b2b65558b55df0399ddf865908340fc | 4,416 | cpp | C++ | test/unit/module/math/cosd.cpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | test/unit/module/math/cosd.cpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | test/unit/module/math/cosd.cpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 49.066667 | 125 | 0.52808 | clayne |
1f1e93e0df42d30a99c04fc4bf35157a42a2abe7 | 2,428 | cpp | C++ | registerwidget/borrowerregister.cpp | winthegame9/cpp-libsystem | 4346dbb1aa22464e1ce26d8f3f53311411eac9f3 | [
"Apache-2.0"
] | null | null | null | registerwidget/borrowerregister.cpp | winthegame9/cpp-libsystem | 4346dbb1aa22464e1ce26d8f3f53311411eac9f3 | [
"Apache-2.0"
] | null | null | null | registerwidget/borrowerregister.cpp | winthegame9/cpp-libsystem | 4346dbb1aa22464e1ce26d8f3f53311411eac9f3 | [
"Apache-2.0"
] | null | null | null | #include "borrowerregister.h"
#include "ui_borrowerregister.h"
#include "dialogs/persondialog.h"
#include <QMessageBox>
#include <QDebug>
BorrowerRegister::BorrowerRegister(QWidget *parent) :
QWidget(parent),
ui(new Ui::BorrowerRegister)
{
ui->setupUi(this);
listModel = new PersonListModel(lib::Borrow... | 25.557895 | 70 | 0.679572 | winthegame9 |
1f1eb1e9a3340a4d227c687af9f77386d1cf9853 | 6,726 | cpp | C++ | brlycmbd/CrdBrlyUsg/PnlBrlyUsgRec.cpp | mpsitech/brly-BeamRelay | 481ccb3e83ea6151fb78eba293b44ade62a0ec78 | [
"MIT"
] | null | null | null | brlycmbd/CrdBrlyUsg/PnlBrlyUsgRec.cpp | mpsitech/brly-BeamRelay | 481ccb3e83ea6151fb78eba293b44ade62a0ec78 | [
"MIT"
] | null | null | null | brlycmbd/CrdBrlyUsg/PnlBrlyUsgRec.cpp | mpsitech/brly-BeamRelay | 481ccb3e83ea6151fb78eba293b44ade62a0ec78 | [
"MIT"
] | null | null | null | /**
* \file PnlBrlyUsgRec.cpp
* job handler for job PnlBrlyUsgRec (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 11 Jan 2021
*/
// IP header --- ABOVE
#ifdef BRLYCMBD
#include <Brlycmbd.h>
#else
#include <Brlyd.h>
#endif
#... | 25.574144 | 116 | 0.684954 | mpsitech |
1f23c11bab6091dd70ae53585057c8dc71bbfb14 | 855 | cpp | C++ | scripting/lua/ScutControls/Win32/myWin32WebView.cpp | ScutGame/Client-source | 7dd886bf128c857a957f5360fcc28bcd511bf654 | [
"MIT"
] | 23 | 2015-01-28T12:41:43.000Z | 2021-07-14T05:35:56.000Z | scripting/lua/ScutControls/Win32/myWin32WebView.cpp | HongXiao/Client-source | 7dd886bf128c857a957f5360fcc28bcd511bf654 | [
"MIT"
] | null | null | null | scripting/lua/ScutControls/Win32/myWin32WebView.cpp | HongXiao/Client-source | 7dd886bf128c857a957f5360fcc28bcd511bf654 | [
"MIT"
] | 35 | 2015-02-04T10:01:00.000Z | 2021-03-05T15:27:14.000Z | #include "Win32WebView.h"
#include "cocos2d.h"
#include "myWin32WebView.h"
namespace NdCxControl
{
void *Win32WebView(const char *pszUrl, cocos2d::CCRect rcScreenFrame, const char *pszTitle, const char *pszNormal, const char *pszPushDown)
{
CWin32WebView *pWebView = new CWin32WebView();
if(pWebView &... | 20.357143 | 141 | 0.654971 | ScutGame |
1f263b9edbcfca1a85f53837cb55d2c013497e61 | 1,607 | cpp | C++ | Nacro/SDK/FN_SpeechBubbleWidget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_SpeechBubbleWidget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_SpeechBubbleWidget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function SpeechBubbleWidget.SpeechBub... | 26.783333 | 137 | 0.679527 | Milxnor |
1f2a00d5500b776e4c4e83265b682523580237c6 | 1,258 | cpp | C++ | EZOJ/Contests/1276/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1276/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1276/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cmath>
#include <vector>
using namespace std;
typedef long long lint;
inline bool is_num(char c){
return c>='0'&&c<='9';
}
inline int ni(){
int i=0;char c;
while(!is_num(c=getchar()));
while(i=i*10-'0'+c,is_num(c=getchar()));
ret... | 17.971429 | 46 | 0.566773 | sshockwave |
1f2d106268014876fff0e7d309e9a757540c0297 | 8,055 | cpp | C++ | src/software/world/world_test.cpp | jonl112/Software | 61a028a98d5c0dd5e79bf055b231633290ddbf9f | [
"MIT"
] | null | null | null | src/software/world/world_test.cpp | jonl112/Software | 61a028a98d5c0dd5e79bf055b231633290ddbf9f | [
"MIT"
] | null | null | null | src/software/world/world_test.cpp | jonl112/Software | 61a028a98d5c0dd5e79bf055b231633290ddbf9f | [
"MIT"
] | null | null | null | #include "software/world/world.h"
#include <gtest/gtest.h>
#include <include/gmock/gmock-matchers.h>
#include "proto/message_translation/tbots_protobuf.h"
#include "shared/parameter/cpp_dynamic_parameters.h"
#include "software/test_util/test_util.h"
class WorldTest : public ::testing::Test
{
protected:
WorldT... | 37.119816 | 90 | 0.681688 | jonl112 |
1f2fa872325ae64e4492f854c686f00b07153594 | 2,734 | cpp | C++ | Nagi/Source/Input/Keyboard.cpp | nfginola/VkPlayground | b512117f47497d2c8f24b501e9fd3d8861504187 | [
"MIT"
] | 1 | 2022-01-09T05:30:29.000Z | 2022-01-09T05:30:29.000Z | Nagi/Source/Input/Keyboard.cpp | nfginola/VkPlayground | b512117f47497d2c8f24b501e9fd3d8861504187 | [
"MIT"
] | null | null | null | Nagi/Source/Input/Keyboard.cpp | nfginola/VkPlayground | b512117f47497d2c8f24b501e9fd3d8861504187 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Input/Keyboard.h"
#include <GLFW/glfw3.h>
namespace Nagi
{
Keyboard::Keyboard()
{
}
void Keyboard::handleKeyEvent(GLFWwindow* win, int key, int scancode, int action, int mods)
{
// Perhaps we can add an intermediary between GLFW and Keyboard.
// This way, only the intermediary kn... | 38.507042 | 115 | 0.70117 | nfginola |
1f31d6fd566d687bc8afbb8baca1657844ef5628 | 8,665 | hpp | C++ | src/area776.hpp | r6eve/area776 | c39b9d2393a7cdaaa056933fa452ec9adfc8fdce | [
"BSL-1.0"
] | null | null | null | src/area776.hpp | r6eve/area776 | c39b9d2393a7cdaaa056933fa452ec9adfc8fdce | [
"BSL-1.0"
] | 1 | 2018-06-02T05:38:40.000Z | 2018-06-02T07:47:41.000Z | src/area776.hpp | r6eve/area776 | c39b9d2393a7cdaaa056933fa452ec9adfc8fdce | [
"BSL-1.0"
] | null | null | null | //
// Copyright r6eve 2019 -
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <iomanip>
#include <memory>
#include <sstream>
#include "boss.hpp"
#include "def_g... | 30.403509 | 79 | 0.63416 | r6eve |
1f327aadd4b254c47bdf5dd03c2390ad82891df2 | 3,788 | cpp | C++ | src/common/EnumStringMapper.cpp | cgodkin/fesapi | d25c5e30ccec537c471adc3bb036c48f2c51f2c9 | [
"Apache-2.0"
] | 1 | 2021-01-04T16:19:33.000Z | 2021-01-04T16:19:33.000Z | src/common/EnumStringMapper.cpp | philippeVerney/fesapi | 5aff682d8e707d4682a0d8674b5f6353be24ed55 | [
"Apache-2.0"
] | null | null | null | src/common/EnumStringMapper.cpp | philippeVerney/fesapi | 5aff682d8e707d4682a0d8674b5f6353be24ed55 | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... | 44.046512 | 225 | 0.802798 | cgodkin |
1f38f894c5c4f23f8b23ee8e6d6ca7870503bc6e | 2,543 | cpp | C++ | openbr/plugins/imgproc/gradient.cpp | gaatyin/openbr | a55fa7bd0038b323ade2340c69f109146f084218 | [
"Apache-2.0"
] | 1 | 2021-04-26T12:53:42.000Z | 2021-04-26T12:53:42.000Z | openbr/plugins/imgproc/gradient.cpp | William-New/openbr | 326f9bbb84de35586e57b1b0449c220726571c6c | [
"Apache-2.0"
] | null | null | null | openbr/plugins/imgproc/gradient.cpp | William-New/openbr | 326f9bbb84de35586e57b1b0449c220726571c6c | [
"Apache-2.0"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright 2012 The MITRE Corporation *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* y... | 37.955224 | 99 | 0.527723 | gaatyin |
1f3a12449f40616e430b3e7bb6eb9998fdc8fcfc | 1,384 | cc | C++ | DataFormats/L1Trigger/src/L1PFTau.cc | thesps/cmssw | ad5315934948ce96699b29cc1d5b03a59f99634f | [
"Apache-2.0"
] | null | null | null | DataFormats/L1Trigger/src/L1PFTau.cc | thesps/cmssw | ad5315934948ce96699b29cc1d5b03a59f99634f | [
"Apache-2.0"
] | null | null | null | DataFormats/L1Trigger/src/L1PFTau.cc | thesps/cmssw | ad5315934948ce96699b29cc1d5b03a59f99634f | [
"Apache-2.0"
] | null | null | null |
#include "DataFormats/L1Trigger/interface/L1PFTau.h"
using std::ostream;
using std::endl;
using std::hex;
using std::dec;
typedef std::vector<l1t::L1PFTau> L1PFTauCollection;
// default constructor
l1t::L1PFTau::L1PFTau() : m_data(0), m_tauType(12), m_tauIsoQual(0), m_tauRelIsoQual(0), m_relativeIsolation(100), m_... | 27.68 | 326 | 0.596821 | thesps |
1f3c3aaebd967b19bd4b6bc76baf6de9c5647988 | 6,846 | cpp | C++ | sim/config.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | 7 | 2016-03-01T13:16:59.000Z | 2021-08-20T07:41:43.000Z | sim/config.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | null | null | null | sim/config.cpp | svp-dev/mgsim | 0abd708f3c48723fc233f6c53f3e638129d070fa | [
"MIT"
] | 5 | 2015-04-20T14:29:38.000Z | 2018-12-29T11:09:17.000Z | #include "sim/config.h"
#include "programs/mgsim.h"
#include <set>
#include <map>
#include <vector>
using namespace std;
void Config::collectPropertiesByType(Config::types_t& types,
Config::typeattrs_t& typeattrs)
{
map<Symbol, set<Symbol> > collect;
for (auto& i : m_obje... | 27.384 | 106 | 0.551417 | svp-dev |
1f3f71f2c7fb4c372c14046673ea851a9d6fb79f | 355 | hpp | C++ | include/rect.hpp | teamprova/ProvaEngine-CPP | 0ba9b4b0d73a5a261194d5333e5a572c40c0c21f | [
"Unlicense"
] | null | null | null | include/rect.hpp | teamprova/ProvaEngine-CPP | 0ba9b4b0d73a5a261194d5333e5a572c40c0c21f | [
"Unlicense"
] | null | null | null | include/rect.hpp | teamprova/ProvaEngine-CPP | 0ba9b4b0d73a5a261194d5333e5a572c40c0c21f | [
"Unlicense"
] | null | null | null | #pragma once
namespace Prova
{
class Vector2;
class Rect
{
public:
Rect();
Rect(float left, float top, float width, float height);
float left;
float top;
float width;
float height;
Vector2 GetTopLeft();
Vector2 GetTopRight();
Vector2 GetBottomLeft();
... | 16.904762 | 61 | 0.594366 | teamprova |
1f40b744c830dbb7b3165bde25fdc7f0091c7e02 | 1,221 | cpp | C++ | workshop5-6/Sum.cpp | PavanKamra96/BTP200 | 516f5ed60452da53d47206caef22423825a3145e | [
"MIT"
] | null | null | null | workshop5-6/Sum.cpp | PavanKamra96/BTP200 | 516f5ed60452da53d47206caef22423825a3145e | [
"MIT"
] | null | null | null | workshop5-6/Sum.cpp | PavanKamra96/BTP200 | 516f5ed60452da53d47206caef22423825a3145e | [
"MIT"
] | null | null | null | /**
Name: Pavan Kumar Kamra
Course: BTP200
**/
#include <iostream>
#include <cstring>
#include "Sum.h"
using namespace std;
// constructor with defaults
Sum::Sum() {
array = nullptr;
size = 0;
counter = 0;
sum = 0;
}
// recieves the size of the array
Sum::Sum(int s) {
if (s > 0)
size = s;
else
... | 18.223881 | 81 | 0.530713 | PavanKamra96 |
1f4236929b5440ffed877c85b19e07125f382c81 | 4,329 | cpp | C++ | Ouroboros/Source/oString/codify_data.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oString/codify_data.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oString/codify_data.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | // Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use.
#include <oString/string.h>
#include <iterator>
int snprintf(char* dst, size_t dst_size, const char* fmt, ...);
using namespace std;
namespace ouro {
errno_t replace(char* oRESTRICT result, size_t result_size, const char* oRESTRICT sr... | 35.195122 | 232 | 0.68353 | jiangzhu1212 |
1f436e92f7674bd40f703105967be8cc1a00b10e | 3,438 | cpp | C++ | Engine/WindowManager.cpp | tairoman/CraftClone | b50e40f5fb4a10febe8a17a37a439aa238d8deb3 | [
"MIT"
] | 5 | 2018-11-17T18:15:44.000Z | 2020-04-26T11:27:16.000Z | Engine/WindowManager.cpp | tairoman/CraftClone | b50e40f5fb4a10febe8a17a37a439aa238d8deb3 | [
"MIT"
] | 1 | 2020-04-22T13:03:52.000Z | 2020-04-23T12:57:40.000Z | Engine/WindowManager.cpp | tairoman/CraftClone | b50e40f5fb4a10febe8a17a37a439aa238d8deb3 | [
"MIT"
] | null | null | null | #include <SDL2/SDL_video.h>
#include <cstdint>
#include <iostream>
#include "WindowManager.h"
#include <GL/glew.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <GL/glu.h>
namespace
{
using namespace Engine;
std::uint32_t windowModeToSDL(WindowMode mode)
{
switch (mode) {
case WindowMode::Win... | 23.547945 | 84 | 0.656486 | tairoman |
1f4567327732139e8ac9da14afab1935c571db55 | 1,242 | cc | C++ | src/posix-pid.cc | afett/clingeling | e6f6810dde5a1076e70f261ef738ae8f4dbd4e54 | [
"BSD-2-Clause"
] | null | null | null | src/posix-pid.cc | afett/clingeling | e6f6810dde5a1076e70f261ef738ae8f4dbd4e54 | [
"BSD-2-Clause"
] | null | null | null | src/posix-pid.cc | afett/clingeling | e6f6810dde5a1076e70f261ef738ae8f4dbd4e54 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2021 Andreas Fett. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
*/
#include "posix/pid.h"
#include "posix/signal.h"
#include "posix/system-error.h"
#include "posix/wait.h"
#include <signal.h>
#include <sys/wait.h>
na... | 18.537313 | 94 | 0.673913 | afett |
1f4b21f86baa27718b6ea5a3cbf0c166bf2fdbc5 | 7,634 | cpp | C++ | src/configuration/RunConfig.cpp | Childcity/copyright_notice | 3f343d42bc47a1d48a945ceb214ca9aa5da7ed69 | [
"MIT"
] | null | null | null | src/configuration/RunConfig.cpp | Childcity/copyright_notice | 3f343d42bc47a1d48a945ceb214ca9aa5da7ed69 | [
"MIT"
] | null | null | null | src/configuration/RunConfig.cpp | Childcity/copyright_notice | 3f343d42bc47a1d48a945ceb214ca9aa5da7ed69 | [
"MIT"
] | null | null | null | #include "RunConfig.h"
#include <mutex>
#include <QCommandLineParser>
#include <QDir>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include "src/file_utils/file_utils.h"
#include "src/logger/log.h"
#include "StaticConfig.h"
namespace environment {
void init()
{
qputenv("QT_ENABLE_REGEXP_JI... | 31.415638 | 113 | 0.716269 | Childcity |
1f4dc3123b91d623e648da04e7f74492d58ee1aa | 1,092 | cpp | C++ | Engine/Base/GameTime.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | null | null | null | Engine/Base/GameTime.cpp | Antd23rus/S2DE_DirectX11 | 4f729278e6c795f7d606afc70a292c6501b0cafd | [
"MIT"
] | 4 | 2021-10-21T12:42:04.000Z | 2022-02-03T08:41:31.000Z | Engine/Base/GameTime.cpp | Antd23rus/S2DE | 47cc7151c2934cd8f0399a9856c1e54894571553 | [
"MIT"
] | 1 | 2021-09-06T08:30:20.000Z | 2021-09-06T08:30:20.000Z | #include "GameTime.h"
#include "Base/Utils/Logger.h"
namespace S2DE::Core
{
GameTime::GameTime() :
m_time(std::chrono::high_resolution_clock::now()),
m_time_begin(std::chrono::high_resolution_clock::now()),
m_fps(0),
m_frame_count(0),
m_deltaTime(0.0f),
m_timer(0.0f)
{
}
GameTime::~GameTime()
{
}... | 18.2 | 119 | 0.685897 | Antd23rus |
1f524ece0c720ba2b1f74b40b87a0ac8f7a9a08a | 4,768 | cpp | C++ | drivers/adagfx/lvdrv-adagfx-ssd1306.cpp | yhfudev/lv_platformio | 45c9c2b1cdb14dac07fe59dc2993d6e33f07bc1d | [
"MIT"
] | null | null | null | drivers/adagfx/lvdrv-adagfx-ssd1306.cpp | yhfudev/lv_platformio | 45c9c2b1cdb14dac07fe59dc2993d6e33f07bc1d | [
"MIT"
] | null | null | null | drivers/adagfx/lvdrv-adagfx-ssd1306.cpp | yhfudev/lv_platformio | 45c9c2b1cdb14dac07fe59dc2993d6e33f07bc1d | [
"MIT"
] | null | null | null | /**
* \file lvdrv-adagfx-ssd1306.cpp
* \brief SSD1306 driver for LittlevGL
* \author Yunhui Fu (yhfudev@gmail.com)
* \version 1.0
* \date 2020-02-03
* \copyright GPL/BSD
*/
#include "lvgl.h"
#include "lvdrv-adagfx-ssd1306.h"
#include "setuprotary.h"
#include "lvdrv-rotarygrp.h"
////////////////////////... | 29.614907 | 145 | 0.630663 | yhfudev |
1f595b1d26cbca32ab1722cc106f0f695510ce3f | 3,105 | cpp | C++ | source/Debug/debug.cpp | Vadru93/LevelMod | 85738a89f6df2dbd50deacdbc895b30c77e016b9 | [
"BSD-2-Clause"
] | 13 | 2020-08-24T10:46:26.000Z | 2022-02-08T23:59:11.000Z | source/Debug/debug.cpp | Vadru93/LevelMod | 85738a89f6df2dbd50deacdbc895b30c77e016b9 | [
"BSD-2-Clause"
] | 112 | 2020-08-25T11:42:53.000Z | 2022-01-04T14:25:26.000Z | source/Debug/debug.cpp | Vadru93/LevelMod | 85738a89f6df2dbd50deacdbc895b30c77e016b9 | [
"BSD-2-Clause"
] | 1 | 2021-02-17T18:11:52.000Z | 2021-02-17T18:11:52.000Z | #define _CRT_SECURE_NO_WARNINGS
#include "pch.h"
#include "debug.h"
void Tracer(LPCSTR format, ...)
{
if (format)
{
va_list vl;
char str[4096];
va_start(vl, format);
_vsnprintf(str, (sizeof(str) - 1), format, vl);
str[(sizeof(str) - 1)] = 0;
va_end(vl);
... | 31.683673 | 245 | 0.612238 | Vadru93 |
1f59c7b1a279e2ea91dec75bcbd966f4f23c1e62 | 1,512 | cpp | C++ | source-code/Numerics/limits.cpp | gjbex/Scientific-C- | d7aeb88743ffa2a43b1df1569a9200b2447f401c | [
"CC-BY-4.0"
] | 115 | 2015-03-23T13:34:42.000Z | 2022-03-21T00:27:21.000Z | source-code/Numerics/limits.cpp | gjbex/Scientific-C- | d7aeb88743ffa2a43b1df1569a9200b2447f401c | [
"CC-BY-4.0"
] | 56 | 2015-02-25T15:04:26.000Z | 2022-01-03T07:42:48.000Z | source-code/Numerics/limits.cpp | gjbex/Scientific-C- | d7aeb88743ffa2a43b1df1569a9200b2447f401c | [
"CC-BY-4.0"
] | 59 | 2015-11-26T11:44:51.000Z | 2022-03-21T00:27:22.000Z | #include <cmath>
#include <iostream>
#include <limits>
using namespace std;
int main() {
cout << numeric_limits<short>::min() << " < int < "
<< numeric_limits<short>::max() << endl;
cout << numeric_limits<int>::min() << " < int < "
<< numeric_limits<int>::max() << endl;
cout << numeric_l... | 43.2 | 84 | 0.539683 | gjbex |
1f5a9c503a6f3e954afa28cc780371de281c749f | 907 | cc | C++ | epoch/ayla/src/ayla/serialization/triangle_mesh_serializer.cc | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 47 | 2020-03-30T14:36:46.000Z | 2022-03-06T07:44:54.000Z | epoch/ayla/src/ayla/serialization/triangle_mesh_serializer.cc | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | null | null | null | epoch/ayla/src/ayla/serialization/triangle_mesh_serializer.cc | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 8 | 2020-04-01T01:22:45.000Z | 2022-01-02T13:06:09.000Z | #include "ayla/serialization/triangle_mesh_serializer.hpp"
#include "ayla/geometry/triangle_mesh.hpp"
#include "ayla/serialization/boost/explicit_instantiation_macros.hpp"
#include <boost/serialization/vector.hpp>
namespace boost {
namespace serialization {
template <class Archive>
void serialize(Archive& ar, ayla::... | 27.484848 | 93 | 0.788313 | oprogramadorreal |
1f5aa6bd8d4afdad744fe799c239f71a9fb1893c | 5,586 | cpp | C++ | src/ui/c_load_builder_dialog.cpp | Mankio/Wakfu-Builder | d2ce635dde2da21eee3639cf3facebd07750ab78 | [
"MIT"
] | null | null | null | src/ui/c_load_builder_dialog.cpp | Mankio/Wakfu-Builder | d2ce635dde2da21eee3639cf3facebd07750ab78 | [
"MIT"
] | null | null | null | src/ui/c_load_builder_dialog.cpp | Mankio/Wakfu-Builder | d2ce635dde2da21eee3639cf3facebd07750ab78 | [
"MIT"
] | null | null | null | #include "c_load_builder_dialog.h"
#include "ui_c_load_builder_dialog.h"
c_save_builder_model *c_load_builder_dialog::model = nullptr;
c_load_builder_dialog::c_load_builder_dialog(c_dbmanager *manager, QWidget *parent) :
QDialog(parent),
ui(new Ui::c_load_builder_dialog)
{
ui->setupUi(this);
ui->widge... | 44.333333 | 135 | 0.591837 | Mankio |
48f2c40de243e4ad583a87975cfab95a08567263 | 2,467 | cpp | C++ | snippets/0x05/b_pointer_05_swap.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | snippets/0x05/b_pointer_05_swap.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | snippets/0x05/b_pointer_05_swap.cpp | pblan/fha-cpp | 5008f54133cf4913f0ca558a3817b01b10d04494 | [
"CECILL-B"
] | null | null | null | // author: a.voss@fh-aachen.de
#include <iostream>
using std::cout;
using std::endl;
// #pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
void init1(int n); // (A)
void init2(int& n);
void init3(int* n);
void swap1(int n, int m);
void swap2(int& n, int& m);
void swa... | 25.43299 | 81 | 0.535063 | pblan |
48f339e44b91598999d4ecc386d476f568dacefd | 96 | cpp | C++ | test/cpp_prj/src/file_set_test/house/included_file_in_partition2.cpp | JaniHonkanen/RabbitCall | 2652e201ebcd6697cd25ec7e18163afa002c1016 | [
"MIT"
] | null | null | null | test/cpp_prj/src/file_set_test/house/included_file_in_partition2.cpp | JaniHonkanen/RabbitCall | 2652e201ebcd6697cd25ec7e18163afa002c1016 | [
"MIT"
] | null | null | null | test/cpp_prj/src/file_set_test/house/included_file_in_partition2.cpp | JaniHonkanen/RabbitCall | 2652e201ebcd6697cd25ec7e18163afa002c1016 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "included_file_in_partition2.h"
int partition2Test() {
return 22;
}
| 13.714286 | 40 | 0.739583 | JaniHonkanen |
48f5eef9a4716bd5ccc2d46650eb59ee06b9deaf | 1,551 | cpp | C++ | python/popart._internal.ir/bindings/op/ipucopy.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | python/popart._internal.ir/bindings/op/ipucopy.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | python/popart._internal.ir/bindings/op/ipucopy.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#include "bindings/op/ipucopy.hpp"
#include "bindings/op.hpp"
#include "bindings/op/optional.hpp"
#include "bindings/basicoptionals.hpp"
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#inclu... | 30.411765 | 80 | 0.632495 | gglin001 |
48faacf0e2f20b3c180d5df92460100f13054828 | 37,790 | cpp | C++ | inetcore/setup/iexpress/advpext/patchdownload.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/setup/iexpress/advpext/patchdownload.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/setup/iexpress/advpext/patchdownload.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include <windows.h>
#include <urlmon.h>
#include <wininet.h>
#include "resource.h"
#include "advpext.h"
#include "download.h"
#include "patchdownload.h"
#include "util.h"
extern "C"
{
#include "patchapi.h"
#include "redblack.h"
#include "crc32.h"
}
extern HINF g_hInf;
extern HINSTANCE g_hInstance;... | 33.178227 | 124 | 0.542154 | npocmaka |
48fb908b5742af84c3a526c8030fea32af382ba7 | 3,726 | cpp | C++ | src/meshInfo/geometry.cpp | guhanfeng/HSF | d2f091e990bb5a18473db0443872e37de6b6a83f | [
"Apache-2.0"
] | null | null | null | src/meshInfo/geometry.cpp | guhanfeng/HSF | d2f091e990bb5a18473db0443872e37de6b6a83f | [
"Apache-2.0"
] | null | null | null | src/meshInfo/geometry.cpp | guhanfeng/HSF | d2f091e990bb5a18473db0443872e37de6b6a83f | [
"Apache-2.0"
] | null | null | null | /**
* @file: geometry.cpp
* @author: Liu Hongbin
* @brief:
* @date: 2019-11-28 10:57:45
* @last Modified by: lenovo
* @last Modified time: 2019-11-28 16:14:40
*/
#include "geometry.hpp"
namespace HSF
{
scalar calculateQUADArea(const Array<scalar>& x, const Array<scalar>& y,
const Array<scalar>& z)
{
scalar v1... | 23 | 75 | 0.553945 | guhanfeng |
48fcaffb5e2c08a64895be09ec2083923ec00ff5 | 1,690 | cpp | C++ | tests/runtime_test.cpp | ElDesalmado/endian_converter | 6cdaae26e01d3f5b77b053fce7a0b494e69b1605 | [
"MIT"
] | null | null | null | tests/runtime_test.cpp | ElDesalmado/endian_converter | 6cdaae26e01d3f5b77b053fce7a0b494e69b1605 | [
"MIT"
] | null | null | null | tests/runtime_test.cpp | ElDesalmado/endian_converter | 6cdaae26e01d3f5b77b053fce7a0b494e69b1605 | [
"MIT"
] | null | null | null |
#include <gtest/gtest.h>
#include <endian_converter/endian_converter.h>
#include <array>
#include <numeric>
#include <algorithm>
using namespace eld;
template<typename T>
bool test_endian_conversion()
{
std::array<uint8_t, sizeof(T)> input{},
expected{},
output{};
std::iota(input.b... | 19.882353 | 80 | 0.672189 | ElDesalmado |
48fe27e5cab98f6389e1795176c3f4da009c043b | 713 | cpp | C++ | CSC201/in-class/Wk8/Wk-8b.cpp | ochudi/ochudi-CSC201 | 3a792beef4780960c725ef9bf6c4af96110c373d | [
"MIT"
] | null | null | null | CSC201/in-class/Wk8/Wk-8b.cpp | ochudi/ochudi-CSC201 | 3a792beef4780960c725ef9bf6c4af96110c373d | [
"MIT"
] | null | null | null | CSC201/in-class/Wk8/Wk-8b.cpp | ochudi/ochudi-CSC201 | 3a792beef4780960c725ef9bf6c4af96110c373d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class csc201
{
public: // access specifier
int score; // attribute score
string name; // attribute name
char grade; // attribute grade
};
int main()
{
csc201 student1;
csc201 student2;
student1.score = 20;
student1.grade = 'F... | 28.52 | 124 | 0.58906 | ochudi |
48fe4f78ca022862ef87f873388f1dacd0873158 | 6,259 | cpp | C++ | libconsensus/ConsensusEngineBase.cpp | michealbrownm/phantom | a1a41a6f9317c26e621952637c7e331c8dacf79d | [
"Apache-2.0"
] | 27 | 2020-09-24T03:14:13.000Z | 2021-11-29T14:00:36.000Z | libconsensus/ConsensusEngineBase.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | null | null | null | libconsensus/ConsensusEngineBase.cpp | david2011dzha/phantom | eff76713e03966eb44e20a07806b8d47ec73ad09 | [
"Apache-2.0"
] | 10 | 2020-09-24T14:34:30.000Z | 2021-02-22T06:50:31.000Z | /*
* @CopyRight:
* FISCO-BCOS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FISCO-BCOS is distributed in the hope that it ... | 36.389535 | 99 | 0.634926 | michealbrownm |
48fff39706b19c8bd6ffbfef4cf9ceff56e06f2e | 779 | hpp | C++ | Nacro/SDK/FN_EnemyPawn_Interface_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_EnemyPawn_Interface_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_EnemyPawn_Interface_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function EnemyPawn_Int... | 26.862069 | 161 | 0.441592 | Milxnor |
5b00dbaed900c014c0f55a03f2d3b29e0ef65f38 | 14,063 | cpp | C++ | jni/paint/PaintPlugin.cpp | mogoweb/video-plugin | c48407e1d524aa6c33ed25c63060c4bd2c089972 | [
"Apache-2.0"
] | null | null | null | jni/paint/PaintPlugin.cpp | mogoweb/video-plugin | c48407e1d524aa6c33ed25c63060c4bd2c089972 | [
"Apache-2.0"
] | null | null | null | jni/paint/PaintPlugin.cpp | mogoweb/video-plugin | c48407e1d524aa6c33ed25c63060c4bd2c089972 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009, The Android Open Source Project
*
* 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 ... | 36.151671 | 127 | 0.663728 | mogoweb |
5b015572de1e4d59c0e08d3d36f482ac8d6d8a6e | 2,517 | hpp | C++ | particle_filter/include/ParticleFilterFileOutput.hpp | giordano/stationsimcpp | e8b7a5c5d7b7aa8f80bd983a170e6afc59f548d4 | [
"MIT"
] | null | null | null | particle_filter/include/ParticleFilterFileOutput.hpp | giordano/stationsimcpp | e8b7a5c5d7b7aa8f80bd983a170e6afc59f548d4 | [
"MIT"
] | 1 | 2020-11-05T13:21:52.000Z | 2020-11-05T13:21:52.000Z | particle_filter/include/ParticleFilterFileOutput.hpp | giordano/stationsimcpp | e8b7a5c5d7b7aa8f80bd983a170e6afc59f548d4 | [
"MIT"
] | 1 | 2020-06-18T17:52:06.000Z | 2020-06-18T17:52:06.000Z | //---------------------------------------------------------------------------//
// Copyright (c) 2020 Eleftherios Avramidis <ea461@cam.ac.uk>
// Research Computing Services, University of Cambridge, UK
//
// Distributed under The MIT License (MIT)
// See accompanying file LICENSE
//-------------------------------------... | 40.596774 | 118 | 0.60151 | giordano |
5b03732d4054b2f2c65bbce4f3fb77cdb6d1794d | 3,665 | cpp | C++ | Source/Windows.Test/HresultTest.cpp | andrei-datcu/arcana.cpp | 3c4757cbee49b3272130bf8b72094c2c62fd36c5 | [
"MIT"
] | 65 | 2019-05-08T01:53:22.000Z | 2022-03-25T15:05:38.000Z | Source/Windows.Test/HresultTest.cpp | andrei-datcu/arcana.cpp | 3c4757cbee49b3272130bf8b72094c2c62fd36c5 | [
"MIT"
] | 12 | 2019-08-13T03:18:30.000Z | 2022-01-03T20:12:24.000Z | Source/Windows.Test/HresultTest.cpp | andrei-datcu/arcana.cpp | 3c4757cbee49b3272130bf8b72094c2c62fd36c5 | [
"MIT"
] | 18 | 2019-05-09T23:07:44.000Z | 2021-12-26T14:24:29.000Z | //
// Copyright (C) Microsoft Corporation. All rights reserved.
//
#include <arcana/hresult.h>
#include <arcana/type_traits.h>
#include <future>
#include <CppUnitTest.h>
#include <bitset>
using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert;
namespace UnitTests
{
namespace
{
constexpr... | 36.287129 | 115 | 0.65075 | andrei-datcu |
5b041a9797da2b0aa8d3df1d5c7efbab983a5262 | 977 | hpp | C++ | src/cpu/interrupts/idt.hpp | Tunacan427/FishOS | 86a173e8c423e96e70dfc624b5738e1313b0b130 | [
"MIT"
] | null | null | null | src/cpu/interrupts/idt.hpp | Tunacan427/FishOS | 86a173e8c423e96e70dfc624b5738e1313b0b130 | [
"MIT"
] | null | null | null | src/cpu/interrupts/idt.hpp | Tunacan427/FishOS | 86a173e8c423e96e70dfc624b5738e1313b0b130 | [
"MIT"
] | null | null | null | #pragma once
#include <kstd/types.hpp>
namespace cpu::interrupts {
struct [[gnu::packed]] IDTR {
u16 limit;
u64 base;
};
enum class IDTType {
INTERRUPT = 0b1110,
TRAP = 0b1111
};
struct [[gnu::packed]] IDTEntry {
u16 offset1;
u16 selector;
... | 24.425 | 78 | 0.579324 | Tunacan427 |
5b069e9f650eaf38aeb32e77882ce8db6e1141bb | 3,174 | cpp | C++ | src/yars/configuration/data/DataOrbitCam.cpp | kzahedi/YARS | 48d9fe4178d699fba38114d3b299a228da41293d | [
"MIT"
] | 4 | 2017-08-05T03:33:21.000Z | 2021-11-08T09:15:42.000Z | src/yars/configuration/data/DataOrbitCam.cpp | kzahedi/YARS | 48d9fe4178d699fba38114d3b299a228da41293d | [
"MIT"
] | null | null | null | src/yars/configuration/data/DataOrbitCam.cpp | kzahedi/YARS | 48d9fe4178d699fba38114d3b299a228da41293d | [
"MIT"
] | 1 | 2019-03-24T08:35:25.000Z | 2019-03-24T08:35:25.000Z | #include "DataOrbitCam.h"
#include "DataPIDFactory.h"
#include "yars/util/macros.h"
# define YARS_STRING_ORBIT_CAM_LOOK_AT_X (char*)"lookAtX"
# define YARS_STRING_ORBIT_CAM_LOOK_AT_Y (char*)"lookAtY"
# define YARS_STRING_ORBIT_CAM_LOOK_AT_Z (char*)"lookAtZ"
# define YARS_STRING_ORBIT_CAM_FROM_X (char*)"fromX"
# d... | 23.167883 | 94 | 0.726843 | kzahedi |
5b0708656d2aa4b593490d5a3d8f7c449aa258b0 | 615 | cpp | C++ | 41.first_missing_positive.cpp | willyii/LeetcodeRecord | e2ce7ed140409b00ada0cc17854f6a537bf2fc51 | [
"MIT"
] | null | null | null | 41.first_missing_positive.cpp | willyii/LeetcodeRecord | e2ce7ed140409b00ada0cc17854f6a537bf2fc51 | [
"MIT"
] | null | null | null | 41.first_missing_positive.cpp | willyii/LeetcodeRecord | e2ce7ed140409b00ada0cc17854f6a537bf2fc51 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
class Solution {
public:
int firstMissingPositive(vector<int> &nums) {
bool find_one = false;
for (int i = 0; i < nums.size(); i++) {
if (nums[i] == 1)
find_one = true;
if (nums[i] <= 0 || nums[i] > nums.size()) {
nums[i] = 1;
}
... | 18.088235 | 64 | 0.456911 | willyii |
5b09eb4ade558a19104caf77f9d10022b07d0990 | 1,668 | cpp | C++ | 06_breadth-first_search/c++/01_graph_bfs.cpp | filchyboy/grokking_algorithms_work | 16dace97610e2cb0938704e2b8cfd6e92d6b024d | [
"MIT"
] | 13 | 2021-03-11T00:25:22.000Z | 2022-03-19T00:19:23.000Z | book04grokkingAlgo/06_breadth-first_search/c++/01_graph_bfs.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 160 | 2021-04-26T19:04:15.000Z | 2022-03-26T20:18:37.000Z | book04grokkingAlgo/06_breadth-first_search/c++/01_graph_bfs.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 12 | 2021-04-26T19:43:01.000Z | 2022-01-31T08:36:29.000Z | #include <iostream>
#include <map>
#include <list>
#include <queue>
using namespace std;
template <typename T>
class Graph {
map <T , list<T>> adjList ;
public :
Graph()
{}
void addEdge(T u , T v , bool bidir = true)
{
adjList[u].push_back(v);
if... | 20.341463 | 55 | 0.398082 | filchyboy |
5b0fe82587c2b51fcf41f9bc58048d190df3d79e | 495 | cpp | C++ | codes/UVA/01001-01999/uva1160.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/01001-01999/uva1160.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/01001-01999/uva1160.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 1e5;
int f[maxn+5];
int getfar(int x) {
return x == f[x] ? x : f[x] = getfar(f[x]);
}
int main () {
int x, y;
while (scanf("%d", &x) == 1) {
int ret = 0;
for (int i = 0; i <= maxn; i++)
f[i] = i;
while (x !=... | 13.75 | 44 | 0.474747 | JeraKrs |
5b13a6af75f9405f72f173d6f00935fb84678ed5 | 4,191 | cc | C++ | pw_rpc/responder.cc | ffzwadd/pigweed | 75e038f0d852b310d135b93061bc769cb8bf90c4 | [
"Apache-2.0"
] | null | null | null | pw_rpc/responder.cc | ffzwadd/pigweed | 75e038f0d852b310d135b93061bc769cb8bf90c4 | [
"Apache-2.0"
] | null | null | null | pw_rpc/responder.cc | ffzwadd/pigweed | 75e038f0d852b310d135b93061bc769cb8bf90c4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Pigweed 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | 29.935714 | 80 | 0.675257 | ffzwadd |
5b14f4a95cd297d9e5951f64d28481a2b9a7f468 | 4,077 | cpp | C++ | APEX_1.4/common/src/ApexAssetAuthoring.cpp | gongyiling/PhysX-3.4 | 99bc1c62880cf626f9926781e76a528b5276c68b | [
"Unlicense"
] | 1,863 | 2018-12-03T13:06:03.000Z | 2022-03-29T07:12:37.000Z | APEX_1.4/common/src/ApexAssetAuthoring.cpp | cctxx/PhysX-3.4-1 | 5e42a5f112351a223c19c17bb331e6c55037b8eb | [
"Unlicense"
] | 71 | 2018-12-03T19:48:39.000Z | 2022-01-11T09:30:52.000Z | APEX_1.4/common/src/ApexAssetAuthoring.cpp | cctxx/PhysX-3.4-1 | 5e42a5f112351a223c19c17bb331e6c55037b8eb | [
"Unlicense"
] | 265 | 2018-12-03T14:30:03.000Z | 2022-03-25T20:57:01.000Z | //
// 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 following disclaimer.
// * Redistributions in bin... | 29.330935 | 155 | 0.723817 | gongyiling |
5b19f41a81d83e641e3cffd4ca78d0fc1bbf8c99 | 3,359 | cpp | C++ | Algospot/Algospot boardcover dynamicPrg/main2.cpp | PuppyRush/Algorithms | 1bfb7622ffdc2c7d4b9e408b67a81f31395d9513 | [
"MIT"
] | 1 | 2019-02-23T01:17:05.000Z | 2019-02-23T01:17:05.000Z | Algospot/Algospot boardcover dynamicPrg/main2.cpp | PuppyRush/Algorithms | 1bfb7622ffdc2c7d4b9e408b67a81f31395d9513 | [
"MIT"
] | null | null | null | Algospot/Algospot boardcover dynamicPrg/main2.cpp | PuppyRush/Algorithms | 1bfb7622ffdc2c7d4b9e408b67a81f31395d9513 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <memory>
#include <set>
#include <vector>
#include <array>
#include <cassert>
using namespace std;
typedef struct COORD {
public:
int x;
int y;
COORD(){}
COORD(const int x, const int y)
:x(x),y(y)
{}
friend bool operator<(const COORD &lhs, const COORD& rhs)
{
... | 18.870787 | 118 | 0.435546 | PuppyRush |
5b1ca84deb08818f9c4d3e36db9805a75fbe8ef9 | 1,811 | hh | C++ | src/Utilities/coarsenBinnedValues.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Utilities/coarsenBinnedValues.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Utilities/coarsenBinnedValues.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// coarsenBinnedValues
//
// Given a lattice of Values, return the multi-level result of progressively
// coarsening the distribution a requeted number of levels. The passed
// in vector<vector<Value> > should have the finest values as t... | 36.22 | 80 | 0.44561 | jmikeowen |
5b21267a0977d054ae7cc9600c195fb64bb07e81 | 10,854 | cpp | C++ | SnakePredictor/Entity/SnakeEntity.cpp | DanielMcAssey/SnakePredictor | 2e0c24b51df3089e8fa3bb1a354beec5f8ebfcb2 | [
"MIT"
] | null | null | null | SnakePredictor/Entity/SnakeEntity.cpp | DanielMcAssey/SnakePredictor | 2e0c24b51df3089e8fa3bb1a354beec5f8ebfcb2 | [
"MIT"
] | null | null | null | SnakePredictor/Entity/SnakeEntity.cpp | DanielMcAssey/SnakePredictor | 2e0c24b51df3089e8fa3bb1a354beec5f8ebfcb2 | [
"MIT"
] | null | null | null | /*
// This file is part of SnakePredictor
//
// (c) Daniel McAssey <hello@glokon.me>
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
*/
#include "stdafx.h"
#include "../stdafx.h"
#include "SnakeEntity.h"
// Determine priority for path n... | 28.790451 | 203 | 0.718261 | DanielMcAssey |
5b2247bfe72322a1bbce35b4c9d07ef0ca4eb38e | 4,255 | cpp | C++ | Cellular/Cellular/src/Window.cpp | Hukunaa/SandGame | ec33e942d2a377404b09849d09d6997cc13cf879 | [
"MIT"
] | null | null | null | Cellular/Cellular/src/Window.cpp | Hukunaa/SandGame | ec33e942d2a377404b09849d09d6997cc13cf879 | [
"MIT"
] | null | null | null | Cellular/Cellular/src/Window.cpp | Hukunaa/SandGame | ec33e942d2a377404b09849d09d6997cc13cf879 | [
"MIT"
] | null | null | null | #include <Window.h>
#include <iostream>
std::mutex Window::mtx;
Window::Window()
{
}
Window::Window(int x, int y, std::string name)
{
window = new sf::RenderWindow(sf::VideoMode(x, y), name);
collisionCheck = new ArrData[40000];
for (int i = 0; i < 40000; ++i)
collisionCheck[i].part = nullptr;
... | 30.177305 | 161 | 0.587544 | Hukunaa |
5b22f4a342fc7c18b9516f246bc8caedd52438af | 636 | cpp | C++ | src/card/base/command/SetEidPinCommand.cpp | Governikus/AusweisApp2-Omapi | 0d563e61cb385492cef96c2542d50a467e003259 | [
"Apache-2.0"
] | 1 | 2019-06-06T11:58:51.000Z | 2019-06-06T11:58:51.000Z | src/card/base/command/SetEidPinCommand.cpp | ckahlo/AusweisApp2-Omapi | 5141b82599f9f11ae32ff7221b6de3b885e6e5f9 | [
"Apache-2.0"
] | 1 | 2022-01-28T11:08:59.000Z | 2022-01-28T12:05:33.000Z | src/card/base/command/SetEidPinCommand.cpp | ckahlo/AusweisApp2-Omapi | 5141b82599f9f11ae32ff7221b6de3b885e6e5f9 | [
"Apache-2.0"
] | 3 | 2019-06-06T11:58:14.000Z | 2021-11-15T23:32:04.000Z | /*!
* \copyright Copyright (c) 2015-2019 Governikus GmbH & Co. KG, Germany
*/
#include "SetEidPinCommand.h"
using namespace governikus;
SetEidPinCommand::SetEidPinCommand(QSharedPointer<CardConnectionWorker> pCardConnectionWorker,
const QString& pNewPin, quint8 pTimeoutSeconds)
: BaseCardCommand(pCardConnectio... | 21.2 | 94 | 0.790881 | Governikus |
5b24150a2c107975ad4e4cd2b461958ba619c8ae | 15,843 | cc | C++ | content/renderer/service_worker/web_service_worker_installed_scripts_manager_impl_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | content/renderer/service_worker/web_service_worker_installed_scripts_manager_impl_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | content/renderer/service_worker/web_service_worker_installed_scripts_manager_impl_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 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 "content/renderer/service_worker/web_service_worker_installed_scripts_manager_impl.h"
#include "base/bind.h"
#include "base/message_loop/message... | 37.901914 | 94 | 0.708452 | zipated |
5b350088139791ab79c3469873954b19e485c0d7 | 1,482 | hpp | C++ | pybind/handler.hpp | mnaza/Pangolin | 2ed3f08f9ccb82255d23c6db1dce426166ceb3bf | [
"MIT"
] | 1 | 2018-01-14T08:44:02.000Z | 2018-01-14T08:44:02.000Z | pybind/handler.hpp | mnaza/Pangolin | 2ed3f08f9ccb82255d23c6db1dce426166ceb3bf | [
"MIT"
] | null | null | null | pybind/handler.hpp | mnaza/Pangolin | 2ed3f08f9ccb82255d23c6db1dce426166ceb3bf | [
"MIT"
] | null | null | null | //
// Copyright (c) Andrey Mnatsakanov
//
#ifndef PY_PANGOLIN_HANDLER_HPP
#define PY_PANGOLIN_HANDLER_HPP
#include <pybind11/pybind11.h>
#include <pangolin/handler/handler.h>
#include <pangolin/display/view.h>
namespace py_pangolin {
class PyHandler : public pangolin::Handler {
public:
using pangolin::Han... | 35.285714 | 152 | 0.706478 | mnaza |
5b364408a2f9976b8c221d2c8ce279c22c537ca5 | 36,000 | cc | C++ | chrome/browser/ash/login/lock/screen_locker.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ash/login/lock/screen_locker.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ash/login/lock/screen_locker.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-03-07T14:20:02.000Z | 2021-03-07T14:20:02.000Z | // Copyright 2014 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/browser/ash/login/lock/screen_locker.h"
#include <algorithm>
#include "ash/components/audio/sounds.h"
#include "ash/public/cpp/ash_swit... | 38.668099 | 89 | 0.718528 | Ron423c |
5b3c34d57c02a7795a68aa4ace858f6ea5921b25 | 697 | cpp | C++ | GeeksForGeeks/number_of_unique_paths.cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | GeeksForGeeks/number_of_unique_paths.cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | GeeksForGeeks/number_of_unique_paths.cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <locale>
#include <algorithm>
#include <cmath>
#include <unordered_map>
#include <iomanip>
using namespace std;
// dynamic programming
int main(){
int t, m, n;
cin >> t;
while(t--){
cin >> m >> n;
vector<vector<int>> ve(m, vec... | 22.483871 | 55 | 0.426112 | tanishq1g |
5b3dc38e0fd3189a12e0dd0761c6f19f6df170e9 | 320 | hpp | C++ | domain/params/inc/i_hit_params.hpp | PKizin/game_design | 6223466ea46c091616f8d832659306fe7140b316 | [
"MIT"
] | null | null | null | domain/params/inc/i_hit_params.hpp | PKizin/game_design | 6223466ea46c091616f8d832659306fe7140b316 | [
"MIT"
] | null | null | null | domain/params/inc/i_hit_params.hpp | PKizin/game_design | 6223466ea46c091616f8d832659306fe7140b316 | [
"MIT"
] | null | null | null | #ifndef I_HIT_PARAMS_HPP
#define I_HIT_PARAMS_HPP
#include "e_params_categories.hpp"
class IHitParams {
public:
virtual float get_hit_param(EHitParams) const = 0;
virtual void set_hit_param(EHitParams, float) = 0;
protected:
IHitParams() { }
virtual ~IHitParams() { }
};
#endif // I_HIT_PARAMS_HPP
| 16.842105 | 54 | 0.725 | PKizin |
5b3f2bc436fcaf9a49307a565a1bbe07f5440df3 | 2,740 | cpp | C++ | numeric.cpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 6 | 2015-05-19T06:30:06.000Z | 2018-07-24T08:15:45.000Z | numeric.cpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 1 | 2015-05-19T06:42:38.000Z | 2015-05-19T14:45:49.000Z | numeric.cpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 3 | 2015-10-09T05:54:58.000Z | 2018-07-25T13:52:32.000Z | //Sample provided by Thiago Massari Guedes
//December 2015
//http://www.simplycpp.com/
#include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
namespace concrete {
//C++98 version ----------------------------
struct numerical_appender {
numerical_appender(std::string &buf) : _buf(buf) { }
... | 24.464286 | 81 | 0.599635 | SimplyCpp |
5b44ad8774a4a352a2fcbc42422aa966a945acd3 | 967 | hpp | C++ | SDK/ARKSurvivalEvolved_LeftClimbing_ImpactEffect_Metal_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_LeftClimbing_ImpactEffect_Metal_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_LeftClimbing_ImpactEffect_Metal_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_LeftClimbing_ImpactEffect_Metal_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//--------------------------------------... | 29.30303 | 152 | 0.638056 | 2bite |
5b460f288b981de7fde05ad02c8dee3c9f2ec179 | 1,090 | cpp | C++ | examples/toml_to_json_transcoder.cpp | GiulioRomualdi/tomlplusplus | 3f04e12b53f6fca1c12f230d285da167a656c899 | [
"MIT"
] | null | null | null | examples/toml_to_json_transcoder.cpp | GiulioRomualdi/tomlplusplus | 3f04e12b53f6fca1c12f230d285da167a656c899 | [
"MIT"
] | null | null | null | examples/toml_to_json_transcoder.cpp | GiulioRomualdi/tomlplusplus | 3f04e12b53f6fca1c12f230d285da167a656c899 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <toml++/toml.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#endif
using namespace std::string_view_literals;
int main(int argc, char** argv)
{
#ifdef _WIN32
SetConsoleOutputCP(65001); //UTF-8 console output
#endif
//read from a file
if (argc > 1... | 18.793103 | 94 | 0.615596 | GiulioRomualdi |
5b4778588cf91e7a561ea17e1f690d1383179466 | 19,994 | cpp | C++ | time_util.cpp | r3dl3g/util | 385fd89d2d453d8827e3b92187b4087744b3d8c4 | [
"MIT"
] | null | null | null | time_util.cpp | r3dl3g/util | 385fd89d2d453d8827e3b92187b4087744b3d8c4 | [
"MIT"
] | null | null | null | time_util.cpp | r3dl3g/util | 385fd89d2d453d8827e3b92187b4087744b3d8c4 | [
"MIT"
] | null | null | null | /**
* @copyright (c) 2015-2021 Ing. Buero Rothfuss
* Riedlinger Str. 8
* 70327 Stuttgart
* Germany
* http://www.rothfuss-web.de
*
* @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a>
*
* Projec... | 36.025225 | 134 | 0.449485 | r3dl3g |
5b4981befd71c99fe04ba5e3c15d7dbce7632867 | 813 | cpp | C++ | tutorial/classes/Person.cpp | epg-apg/cpptutorial | 028e5039314ccd98146d6f394981f137c5b85b19 | [
"Unlicense"
] | null | null | null | tutorial/classes/Person.cpp | epg-apg/cpptutorial | 028e5039314ccd98146d6f394981f137c5b85b19 | [
"Unlicense"
] | null | null | null | tutorial/classes/Person.cpp | epg-apg/cpptutorial | 028e5039314ccd98146d6f394981f137c5b85b19 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <sstream>
#include "Person.h"
Person::Person()
{
std::cout << "Person created..." << std::endl;
name = "George";
age = 0;
}
Person::Person(std::string newName)
{
name = newName;
age = 0;
}
Person::Person(std::string newName, int newAge)
{
name = newName;
ag... | 14.517857 | 54 | 0.579336 | epg-apg |
5b49b5a5e1d7e5ce8c957f6cf2440b3acbdbd91d | 6,924 | cpp | C++ | leetcode/30_days_challenge/2021_3_March/20.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/30_days_challenge/2021_3_March/20.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/30_days_challenge/2021_3_March/20.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /****************************************************
Date: March 20th
link: https://leetcode.com/explore/challenge/card/march-leetcoding-challenge-2021/590/week-3-march-15th-march-21st/3673/
****************************************************/
#include <iostream>
#include <vector>
#include <list>
#include <algorith... | 38.043956 | 297 | 0.659301 | bvbasavaraju |
5b4b25e02378196ea5acb2abc84e6090787d1267 | 389 | cpp | C++ | 4th semester/lab_6/src/Sofa.cpp | kmalski/cpp_labs | 52b0fc84319d6cc57ff7bfdb787aa5eb09edf592 | [
"MIT"
] | 1 | 2020-05-19T17:14:55.000Z | 2020-05-19T17:14:55.000Z | 4th semester/lab_6/src/Sofa.cpp | kmalski/CPP_Laboratories | 52b0fc84319d6cc57ff7bfdb787aa5eb09edf592 | [
"MIT"
] | null | null | null | 4th semester/lab_6/src/Sofa.cpp | kmalski/CPP_Laboratories | 52b0fc84319d6cc57ff7bfdb787aa5eb09edf592 | [
"MIT"
] | null | null | null | #include "Sofa.h"
#include <iostream>
Sofa::Sofa(const int width, const int height, const int length, const int seat) : Mebel(width, height, length), _seat(seat) {}
Sofa::Sofa(const int seat) : _seat(seat) {}
Sofa::~Sofa() {
std::cout << "~Sofa" << std::endl;
}
void Sofa::print() const {
std::cout << "Sofa:... | 22.882353 | 126 | 0.601542 | kmalski |
5b5600292d5f0d3a1d12f48353f0a1ffa28a0baa | 14,199 | cpp | C++ | lib/SmartSign/Display.cpp | in-tech/SmartSign | 476a07ea2606ca80d2193f2957e7b62fb114d05e | [
"MIT"
] | 4 | 2022-01-07T12:38:08.000Z | 2022-01-07T14:58:25.000Z | lib/SmartSign/Display.cpp | in-tech/SmartSign | 476a07ea2606ca80d2193f2957e7b62fb114d05e | [
"MIT"
] | null | null | null | lib/SmartSign/Display.cpp | in-tech/SmartSign | 476a07ea2606ca80d2193f2957e7b62fb114d05e | [
"MIT"
] | 2 | 2022-01-07T12:39:29.000Z | 2022-01-07T12:42:25.000Z | #include "Display.h"
#include "IAppContext.h"
#include <images.h>
#include <fonts.h>
#include "TimeUtils.h"
#include "CryptoUtils.h"
#include <qrcode.h>
#include "Log.h"
extern sIMAGE IMG_background;
extern sIMAGE IMG_booked;
extern sIMAGE IMG_free;
extern sIMAGE IMG_cwa;
// Hash of the last content that was presente... | 32.051919 | 156 | 0.595605 | in-tech |
5b56fa3d1c9cafa19beb9caa57145323de9df6fc | 5,979 | cpp | C++ | Plugin~/Src/MeshSync/Utils/msMaterialExt.cpp | Mu-L/MeshSync | 6290618f6cc60802394bda8e2aa177648fcf5cfd | [
"Apache-2.0"
] | 1,047 | 2017-02-01T01:56:55.000Z | 2022-03-30T10:27:07.000Z | Plugin~/Src/MeshSync/Utils/msMaterialExt.cpp | Mu-L/MeshSync | 6290618f6cc60802394bda8e2aa177648fcf5cfd | [
"Apache-2.0"
] | 112 | 2017-03-03T09:10:01.000Z | 2022-03-24T16:25:20.000Z | Plugin~/Src/MeshSync/Utils/msMaterialExt.cpp | Mu-L/MeshSync | 6290618f6cc60802394bda8e2aa177648fcf5cfd | [
"Apache-2.0"
] | 120 | 2017-07-26T22:25:59.000Z | 2022-02-22T06:15:42.000Z | #include "pch.h"
#include "MeshSync/Utility/msMaterialExt.h"
namespace ms {
// shader keywords
static const char _Color[] = "_Color";
static const char _EmissionColor[] = "_EmissionColor";
static const char _Metallic[] = "_Metallic";
static const char _Glossiness[] = "_Glossiness";
static const char _MainTex[] = "_Ma... | 31.803191 | 120 | 0.673189 | Mu-L |
5b5f1ecb136405854385b4aa313db509d54ff208 | 17,787 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Bold_otf_27_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Bold_otf_27_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/fonts/src/Font_Asap_Bold_otf_27_4bpp.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | #include <touchgfx/hal/Types.hpp>
FONT_LOCATION_FLASH_PRAGMA
KEEP extern const uint8_t unicodes_Asap_Bold_otf_27_4bpp[] FONT_LOCATION_FLASH_ATTRIBUTE = {
// Unicode: [0x0020, space]
// (Has no glyph data)
// Unicode: [0x0030, zero]
0x00,0x00,0xB4,0xFE,0x8D,0x00,0x00,0x00,0x90,0xFF,0xFF,0xFF,0x2D,0x00,0x00,0xF7,
0xFF,0... | 68.675676 | 92 | 0.782088 | ramkumarkoppu |
5b67aa36666531f43d801b94529ba4a600971cd2 | 11,136 | cpp | C++ | DriverOptions.cpp | ARM-software/android-nn-driver | 249c1253c6019a380ee2e283b7d3f412d5ecbfd1 | [
"MIT"
] | 130 | 2018-03-09T20:44:20.000Z | 2022-03-06T16:34:51.000Z | DriverOptions.cpp | ARM-software/android-nn-driver | 249c1253c6019a380ee2e283b7d3f412d5ecbfd1 | [
"MIT"
] | 18 | 2018-05-02T09:43:59.000Z | 2021-11-08T10:41:55.000Z | DriverOptions.cpp | ARM-software/android-nn-driver | 249c1253c6019a380ee2e283b7d3f412d5ecbfd1 | [
"MIT"
] | 53 | 2018-03-12T18:25:48.000Z | 2022-02-01T13:52:52.000Z | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#define LOG_TAG "ArmnnDriver"
#include "DriverOptions.hpp"
#include "Utils.hpp"
#include <armnn/Version.hpp>
#include <log/log.h>
#include "SystemPropertiesUtils.hpp"
#include <OperationsUtils.h>
#include <cxxopts/cxxopts.hpp>
... | 38.268041 | 120 | 0.639368 | ARM-software |
5b6eb1a8f650508647ebb1d09defc4bcc8314938 | 451 | cpp | C++ | src/robotics/genetico.cpp | pcamarillor/Exploratory3D | 10705d201376b98bdf8f19fca398a3bf341807c9 | [
"MIT"
] | null | null | null | src/robotics/genetico.cpp | pcamarillor/Exploratory3D | 10705d201376b98bdf8f19fca398a3bf341807c9 | [
"MIT"
] | null | null | null | src/robotics/genetico.cpp | pcamarillor/Exploratory3D | 10705d201376b98bdf8f19fca398a3bf341807c9 | [
"MIT"
] | null | null | null | #include "genetico.h"
genetico::genetico()
{
this->numGeneraciones = 100;
this->tamPoblacion = 20;
this->pCruza = 0.8;
this->pMutacion = 0.2;
}
genetico::genetico(int _nGeneraciones, int _tPoblacion, float _pCruza, float _pMutacion)
{
this->numGeneraciones = _nGeneraciones;
this... | 18.791667 | 89 | 0.640798 | pcamarillor |
5b71eb28bb592ba6fa72287450ece721c3d1a2f1 | 943 | cpp | C++ | Easy/345 - Reverse Vowels of a String.cpp | WangZixuan/Leetcode | 4593e8b48c4ce810567473a825735ffde3f7a0f0 | [
"WTFPL"
] | 11 | 2015-08-06T15:43:48.000Z | 2022-02-16T01:30:24.000Z | Easy/345 - Reverse Vowels of a String.cpp | WangZixuan/Leetcode | 4593e8b48c4ce810567473a825735ffde3f7a0f0 | [
"WTFPL"
] | 1 | 2015-08-17T13:33:55.000Z | 2015-08-27T03:43:47.000Z | Easy/345 - Reverse Vowels of a String.cpp | WangZixuan/Leetcode | 4593e8b48c4ce810567473a825735ffde3f7a0f0 | [
"WTFPL"
] | 2 | 2021-09-30T14:39:05.000Z | 2021-10-02T11:02:20.000Z | /*
Reverse Vowels of a String
Write a function that takes a string as input and reverse only the vowels of a string.
Example 1:
Given s = "hello", return "holle".
Example 2:
Given s = "leetcode", return "leotcede".
@author Zixuan
@date 2016/6/7
*/
#include <set>
using namespace std;
class Solution
{
public:
st... | 17.792453 | 96 | 0.592789 | WangZixuan |
ac8ce1d1670b820a80857ab9a38727074296607d | 11,760 | hpp | C++ | openjdk11/src/hotspot/share/gc/g1/ptrQueue.hpp | iootclab/openjdk | b01fc962705eadfa96def6ecff46c44d522e0055 | [
"Apache-2.0"
] | 2 | 2018-06-19T05:43:32.000Z | 2018-06-23T10:04:56.000Z | openjdk11/src/hotspot/share/gc/g1/ptrQueue.hpp | iootclab/openjdk | b01fc962705eadfa96def6ecff46c44d522e0055 | [
"Apache-2.0"
] | null | null | null | openjdk11/src/hotspot/share/gc/g1/ptrQueue.hpp | iootclab/openjdk | b01fc962705eadfa96def6ecff46c44d522e0055 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 31.52815 | 90 | 0.714966 | iootclab |
ac8e0fdaba7552f4373146f3be78ecf133f34d4b | 10,011 | cc | C++ | build/X86_MESI_Two_Level/python/m5/internal/param_TaggedPrefetcher.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | build/X86_MESI_Two_Level/python/m5/internal/param_TaggedPrefetcher.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/param_TaggedPrefetcher.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_TaggedPrefetcher[] = {
120,156,197,88,123,111,219,200,17,159,165,94,150,108,217,114,
252,202,195,62,51,137,221,168,143,216,109,15,110,175,189,52,
104,146,166,197,1,141,47,165,3,36,81,11,16,52,185,146,
105,75,164,74,174,226,40,144,... | 58.54386 | 97 | 0.668365 | hoho20000000 |
ac9720657a55c816255d46b6862b74fb60c8ae1a | 19,109 | cpp | C++ | project/c++/mri/src/PI-slim-napa/recdopt/packet/tunnelset.cpp | jia57196/code41 | df611f84592afd453ccb2d22a7ad999ddb68d028 | [
"Apache-2.0"
] | null | null | null | project/c++/mri/src/PI-slim-napa/recdopt/packet/tunnelset.cpp | jia57196/code41 | df611f84592afd453ccb2d22a7ad999ddb68d028 | [
"Apache-2.0"
] | null | null | null | project/c++/mri/src/PI-slim-napa/recdopt/packet/tunnelset.cpp | jia57196/code41 | df611f84592afd453ccb2d22a7ad999ddb68d028 | [
"Apache-2.0"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
//
// File: tunnelset.cpp
//
// Description: see .h file
//
// Copyright (c) 2012 Agilent Technologies. All rights reserved.
// $Log: tunnelset.cpp $
// Revision 12 2012/10/05 03:28:07 +0800 hen55467 /MassTransit/MT1.10.100_Tip_SP1/Integra... | 41.631808 | 240 | 0.661364 | jia57196 |
ac98cb3849583db62e6c84d96b3bbb447b64167f | 882 | cpp | C++ | common/lib/Vector/Vector.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | common/lib/Vector/Vector.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | common/lib/Vector/Vector.cpp | mc18g13/teensy-drone | 21a396c44a32b85d6455de2743e52ba2c95bb07d | [
"MIT"
] | null | null | null | #include "Vector.h"
#include "Quaternion.h"
Vector::Vector() : v0(0), v1(0), v2(0) {}
Vector::Vector(float32_t _v0, float32_t _v1, float32_t _v2) {
v0 = _v0;
v1 = _v1;
v2 = _v2;
}
Vector Vector::minus(Vector v) {
return Vector(v0 - v.v0, v1 - v.v1, v2 - v.v2);
}
Vector Vector::add(Vector v) {
return Vecto... | 21.512195 | 88 | 0.633787 | mc18g13 |
ac9bbc6bf15e5d7b3d39e29918a0d63392279e2b | 601 | hpp | C++ | libs/renderer/include/sge/renderer/texture/capabilities_field_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/include/sge/renderer/texture/capabilities_field_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/include/sge/renderer/texture/capabilities_field_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_RENDERER_TEXTURE_CAPABILITIES_FIELD_FWD_HPP_INCLUDED
#define SGE_RENDERER_TEXTURE_CAPAB... | 30.05 | 100 | 0.778702 | cpreh |
aca67d2392ee147493e0c311330e400de6ff9b5d | 637 | cpp | C++ | patbasic/test1051.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1051.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | patbasic/test1051.cpp | neild47/PATBasic | 6215232750aa62cf406eb2a9f9c9a6d7c3850339 | [
"MIT"
] | null | null | null | //
// Created by neild47 on 18-4-28.
//
#include <iostream>
#include <cmath>
using namespace std;
int test1051() {
double r1, p1, r2, p2;
cin >> r1 >> p1 >> r2 >> p2;
double n1, n2, n3, n4;
n1 = r1 * cos(p1);
n2 = r1 * sin(p1);
n3 = r2 * cos(p2);
n4 = r2 * sin(p2);
double a, b;
a ... | 18.735294 | 38 | 0.414443 | neild47 |
aca72d628281ab6382c8fc2b5c247bd99b0ba05f | 1,393 | cpp | C++ | Chapter5/12_image_thresholding.cpp | robotchaoX/Hands-On-GPU-Accelerated-Computer-Vision-with-OpenCV-and-CUDA | fa0c6c80e70d4dbbea8662b6f17d18927ca6d3fa | [
"MIT"
] | null | null | null | Chapter5/12_image_thresholding.cpp | robotchaoX/Hands-On-GPU-Accelerated-Computer-Vision-with-OpenCV-and-CUDA | fa0c6c80e70d4dbbea8662b6f17d18927ca6d3fa | [
"MIT"
] | null | null | null | Chapter5/12_image_thresholding.cpp | robotchaoX/Hands-On-GPU-Accelerated-Computer-Vision-with-OpenCV-and-CUDA | fa0c6c80e70d4dbbea8662b6f17d18927ca6d3fa | [
"MIT"
] | null | null | null | #include <iostream>
#include "opencv2/opencv.hpp"
int main(int argc, char* argv[])
{
//Read Image
cv::Mat h_img1 = cv::imread("images/cameraman.tif", 0);
//Define device variables
cv::cuda::GpuMat d_result1, d_result2, d_result3, d_result4, d_result5, d_img1;
//Upload image on device
d_img1.upload(h_im... | 40.970588 | 81 | 0.72649 | robotchaoX |
aca7fb019c97d1ff67c829f5263eaa8a1ef3ac6d | 2,491 | hpp | C++ | Program Interface/src/interfaceDecl.hpp | Milosz08/Matrix_Calculator | 0534b3bb59962312e83273a744356dc598b08a43 | [
"MIT"
] | null | null | null | Program Interface/src/interfaceDecl.hpp | Milosz08/Matrix_Calculator | 0534b3bb59962312e83273a744356dc598b08a43 | [
"MIT"
] | null | null | null | Program Interface/src/interfaceDecl.hpp | Milosz08/Matrix_Calculator | 0534b3bb59962312e83273a744356dc598b08a43 | [
"MIT"
] | null | null | null | #ifndef PK_MATRIX_CALCULATOR_INTERFACEDECL_HPP
#define PK_MATRIX_CALCULATOR_INTERFACEDECL_HPP
#include "../../Matrix Classes/src/packages/abstractMatrixPackage/MatrixAbstract.hpp"
#include "../../Matrix Classes/src/packages/generalMatrixPackage/GeneralMatrix.hpp"
#include "../../Matrix Classes/src/packages/diagonalMat... | 37.742424 | 109 | 0.76114 | Milosz08 |
aca9d77f06dc4bad08f9b5b0c6414387d62ff019 | 332 | cpp | C++ | test/ofp/unittest_unittest.cpp | byllyfish/libofp | 5368b65d17d57286412478adcea84371ef5e4fc4 | [
"MIT"
] | 3 | 2015-07-04T18:12:09.000Z | 2016-09-09T07:12:43.000Z | test/ofp/unittest_unittest.cpp | byllyfish/oftr | ac1e4ef09388376ea6fa7b460b6abe2ab3471624 | [
"MIT"
] | 20 | 2017-02-20T04:49:10.000Z | 2019-07-09T05:32:54.000Z | test/ofp/unittest_unittest.cpp | byllyfish/libofp | 5368b65d17d57286412478adcea84371ef5e4fc4 | [
"MIT"
] | 1 | 2019-07-16T00:21:42.000Z | 2019-07-16T00:21:42.000Z | // Copyright (c) 2015-2018 William W. Fisher (at gmail dot com)
// This file is distributed under the MIT License.
#include "ofp/unittest.h"
using namespace std;
TEST(unittest, test) {
string a = hexclean("00 01 \n - 02 z$ 03");
EXPECT_EQ("00010203", a);
char d[] = {1, 2, 3, 4};
EXPECT_HEX("01020304", d, si... | 22.133333 | 63 | 0.644578 | byllyfish |
acaa8f2854ab19c4cb21c961c649058f418e4978 | 973 | hpp | C++ | include/experimental/fundamental/v3/contract/constexpr_assert.hpp | jwakely/std-make | f09d052983ace70cf371bb8ddf78d4f00330bccd | [
"BSL-1.0"
] | 105 | 2015-01-24T13:26:41.000Z | 2022-02-18T15:36:53.000Z | include/experimental/fundamental/v3/contract/constexpr_assert.hpp | jwakely/std-make | f09d052983ace70cf371bb8ddf78d4f00330bccd | [
"BSL-1.0"
] | 37 | 2015-09-04T06:57:10.000Z | 2021-09-09T18:01:44.000Z | include/experimental/fundamental/v3/contract/constexpr_assert.hpp | jwakely/std-make | f09d052983ace70cf371bb8ddf78d4f00330bccd | [
"BSL-1.0"
] | 23 | 2015-01-27T11:09:18.000Z | 2021-10-04T02:23:30.000Z | // Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// (C) Copyright 2013,2014,2017 Vicente J. Botet Escriba
#ifndef JASEL_EXPERIMENTAL_V3_CONTRACT_CONSTEXPR_ASSERT_HPP
#define JASEL_EXPERIMENTAL_V3_CONTRACT_CONSTEX... | 25.605263 | 116 | 0.756423 | jwakely |
acb07b4c7f9f601d1e9dafbc93988ae6504cb612 | 247 | cpp | C++ | Leetcode1963.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | 1 | 2020-06-28T06:29:05.000Z | 2020-06-28T06:29:05.000Z | Leetcode1963.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | Leetcode1963.cpp | dezhonger/LeetCode | 70de054be5af3a0749dce0625fefd75e176e59f4 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int minSwaps(string s) {
int res = 0, mv = 0;
for (char c : s) {
if (c == '[') res++;
else res--;
mv = min(mv, res);
}
return (-mv + 1) / 2;
}
};
| 19 | 32 | 0.360324 | dezhonger |
acb3902469c3feac429193a97240974670541bd2 | 785 | cpp | C++ | B2G/gecko/content/base/src/nsAtomListUtils.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/content/base/src/nsAtomListUtils.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/content/base/src/nsAtomListUtils.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* Static helper class for impl... | 30.192308 | 79 | 0.608917 | wilebeast |
acbef3993a0af0776b250ae8871bd672afe5b2e4 | 259 | cpp | C++ | tournaments/longestString/longestString.cpp | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 5 | 2020-02-06T09:51:22.000Z | 2021-03-19T00:18:44.000Z | tournaments/longestString/longestString.cpp | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | null | null | null | tournaments/longestString/longestString.cpp | gurfinkel/codeSignal | 114817947ac6311bd53a48f0f0e17c0614bf7911 | [
"MIT"
] | 3 | 2019-09-27T13:06:21.000Z | 2021-04-20T23:13:17.000Z | std::string longestString(std::vector<std::string> inputArray) {
std::string answer = inputArray[0];
for (int i = 1; i < inputArray.size(); i++) {
if (inputArray[i].size() > answer.size()) {
answer = inputArray[i];
}
}
return answer;
}
| 23.545455 | 64 | 0.602317 | gurfinkel |
acbf9d5811f274b7e3faf017cf7135a8ad794ada | 6,554 | hpp | C++ | cpp2c/test_data/bitblock128.hpp | mendlin/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | 1 | 2021-01-07T03:18:27.000Z | 2021-01-07T03:18:27.000Z | cpp2c/test_data/bitblock128.hpp | Logicalmars/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | null | null | null | cpp2c/test_data/bitblock128.hpp | Logicalmars/SIMD-libgen | 0f386bb639c829275a00f46c4b31d59c5ed84a28 | [
"AFL-1.1"
] | 1 | 2021-11-29T07:28:13.000Z | 2021-11-29T07:28:13.000Z | #ifndef BITBLOCK128_HPP_
#define BITBLOCK128_HPP_
/*=============================================================================
bitblock128 - Specific 128 bit IDISA implementations.
Copyright (C) 2011, Robert D. Cameron, Kenneth S. Herdy, Hua Huang and Nigel Medforth.
Licensed to the public under the Ope... | 46.15493 | 157 | 0.753891 | mendlin |
acc01bb97f2f24bf15130535be776cafc72c18ad | 2,236 | cpp | C++ | Classes/Application.cpp | InversePalindrome/Apophis | c2bb39e87d63cb51bc67f8e3682d84b3b4f970c8 | [
"MIT"
] | 7 | 2018-08-20T17:28:29.000Z | 2020-09-05T15:19:31.000Z | Classes/Application.cpp | InversePalindrome/JATR66 | c2bb39e87d63cb51bc67f8e3682d84b3b4f970c8 | [
"MIT"
] | null | null | null | Classes/Application.cpp | InversePalindrome/JATR66 | c2bb39e87d63cb51bc67f8e3682d84b3b4f970c8 | [
"MIT"
] | 1 | 2019-12-25T12:02:03.000Z | 2019-12-25T12:02:03.000Z | /*
Copyright (c) 2018 Inverse Palindrome
Apophis - Application.cpp
InversePalindrome.com
*/
#include "Application.hpp"
#include "AppSettings.hpp"
#include "SplashScene.hpp"
#include "LevelManager.hpp"
#include "ResourceParser.hpp"
#include "CCIMGUIGLViewImpl.h"
#include <imgui.h>
#include <cocos/base/CCDirector.h>... | 29.421053 | 107 | 0.718247 | InversePalindrome |
accabed9773495b37cc003cdcb3ede1ddc826818 | 1,903 | cpp | C++ | server/Server.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | server/Server.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | server/Server.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | #include "Server.h"
#include <cmath>
#include <iostream>
Server::Server(std::string &port_number, unsigned short backlog, unsigned long max_workers) {
this->port_number = port_number;
this->backlog = backlog;
this->max_workers = max_workers;
server_socket = new ServerSocket(port_number, backlog);
}
Se... | 25.373333 | 101 | 0.576458 | MohamedAshrafTolba |
accc435d7cfda937b5795bb73b4dd0a4303d522c | 1,627 | cpp | C++ | xpcom_chimera/ChimeraRiderModule.cpp | ShoufuLuo/csaw | 0d030d5ab93e61b62dff10b27a15c83fcfce3ff3 | [
"Apache-2.0"
] | null | null | null | xpcom_chimera/ChimeraRiderModule.cpp | ShoufuLuo/csaw | 0d030d5ab93e61b62dff10b27a15c83fcfce3ff3 | [
"Apache-2.0"
] | null | null | null | xpcom_chimera/ChimeraRiderModule.cpp | ShoufuLuo/csaw | 0d030d5ab93e61b62dff10b27a15c83fcfce3ff3 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2012 Stevens Institute of Technology.
*
* 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/LIC... | 27.116667 | 76 | 0.749232 | ShoufuLuo |
acccf113c3833c66f7da346f52b79524050ee4b4 | 5,045 | cpp | C++ | src/trident/utils/tridentutils.cpp | jrbn/trident | e56a4977054eea01cb3f716db92bde5d6a49bfb7 | [
"Apache-2.0"
] | null | null | null | src/trident/utils/tridentutils.cpp | jrbn/trident | e56a4977054eea01cb3f716db92bde5d6a49bfb7 | [
"Apache-2.0"
] | null | null | null | src/trident/utils/tridentutils.cpp | jrbn/trident | e56a4977054eea01cb3f716db92bde5d6a49bfb7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017 Jacopo Urbani
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, V... | 28.027778 | 127 | 0.596432 | jrbn |
accfbbce45432c9ac4235b5c5cbb6a3ed224148d | 9,908 | cpp | C++ | src/sc.cpp | josephnoir/indexing | 99f6a02c22451d0db204731a6c53ed56ad751365 | [
"BSD-3-Clause"
] | 5 | 2017-01-30T17:02:24.000Z | 2017-04-22T04:20:41.000Z | src/sc.cpp | josephnoir/indexing | 99f6a02c22451d0db204731a6c53ed56ad751365 | [
"BSD-3-Clause"
] | null | null | null | src/sc.cpp | josephnoir/indexing | 99f6a02c22451d0db204731a6c53ed56ad751365 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* Copyright (C) 2017 *
* Raphael Hiesgen <raphael.hiesgen (at) haw-hamburg.de> *
* *
... | 34.643357 | 98 | 0.552382 | josephnoir |
acd046ee059426ae791159e5ed3a53fd19cfc83e | 3,632 | cpp | C++ | dp/sg/ui/manipulator/src/FlightCameraManipulatorHIDSync.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 217 | 2015-01-06T09:26:53.000Z | 2022-03-23T14:03:18.000Z | dp/sg/ui/manipulator/src/FlightCameraManipulatorHIDSync.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 10 | 2015-01-25T12:42:05.000Z | 2017-11-28T16:10:16.000Z | dp/sg/ui/manipulator/src/FlightCameraManipulatorHIDSync.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 44 | 2015-01-13T01:19:41.000Z | 2022-02-21T21:35:08.000Z | // Copyright NVIDIA Corporation 2010
// 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 following d... | 35.960396 | 110 | 0.627753 | asuessenbach |
acd1919f833609fcc07594346191cfa8d2f00d16 | 2,156 | cpp | C++ | examples/gestures/Canvas.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | examples/gestures/Canvas.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | examples/gestures/Canvas.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /**
* A Gesture Recognition system in C++
* This library is based on the following paper:
*
* Wobbrock, J, Wilson, A, Li, Y 2007
* Gestures without Libraries, Toolkits or Training:
* A $1 Recognizer for User Interface Prototypes
* UIST 2007
*
* @author Michael Marner (marnermr@cs.unisa.edu.au)
*/
#include "C... | 19.779817 | 69 | 0.684601 | WearableComputerLab |
acd40d0d2213ae5664925e8dbc79e1e387a18863 | 1,396 | cpp | C++ | Plugins/GStreamer/Source/GStreamer/Private/GStreamerModule.cpp | kevinrev26/UnrealGAMS | 74b53f5d0e52bd8826e5991192a62cc04547d93e | [
"BSD-3-Clause"
] | 7 | 2019-02-19T23:28:25.000Z | 2021-09-06T16:23:49.000Z | Plugins/GStreamer/Source/GStreamer/Private/GStreamerModule.cpp | kevinrev26/UnrealGAMS | 74b53f5d0e52bd8826e5991192a62cc04547d93e | [
"BSD-3-Clause"
] | 1 | 2019-02-19T21:46:07.000Z | 2019-02-19T21:46:07.000Z | Plugins/GStreamer/Source/GStreamer/Private/GStreamerModule.cpp | racsoraul/UnrealGAMS | 3931d6d45ddc7aed7acf941740bd60250e9db196 | [
"BSD-3-Clause"
] | 8 | 2019-02-18T18:00:25.000Z | 2019-07-12T19:33:36.000Z | #include "GStreamerModule.h"
#include "GstCoreImpl.h"
#include "SharedUnreal.h"
#include "Runtime/Core/Public/Misc/Paths.h"
class FGStreamerModule : public IGStreamerModule
{
public:
virtual void StartupModule() override;
virtual void ShutdownModule() override;
};
DEFINE_LOG_CATEGORY(LogGStreamer);
... | 22.885246 | 90 | 0.7149 | kevinrev26 |
acd7897e769aab58bcc5ae81e2e9dd3515cf1ad6 | 2,207 | cpp | C++ | software/zynq/Synthesizer/src/TGFReader.cpp | EPiCS/soundgates | a6014d6a68fa209703d749ffe21a1e58b9279d30 | [
"MIT"
] | null | null | null | software/zynq/Synthesizer/src/TGFReader.cpp | EPiCS/soundgates | a6014d6a68fa209703d749ffe21a1e58b9279d30 | [
"MIT"
] | 1 | 2017-04-10T10:57:53.000Z | 2017-04-10T10:57:53.000Z | software/zynq/Synthesizer/src/TGFReader.cpp | EPiCS/soundgates | a6014d6a68fa209703d749ffe21a1e58b9279d30 | [
"MIT"
] | 3 | 2016-09-12T14:08:20.000Z | 2021-03-22T20:07:34.000Z | /*
* TGFReader.cpp
*
* Created on: Nov 29, 2013
* Author: lukas
*/
#include "TGFReader.h"
TGFReader::TGFReader(){ }
TGFReader::~TGFReader(){ }
void TGFReader::normalize(vector<string>& params){
for(vector<string>::iterator iter = params.begin(); iter != params.end(); ++iter ){
boost::algorithm::er... | 21.851485 | 134 | 0.624377 | EPiCS |
acdc41f45d220f0e49dc58fbee296d41adf55335 | 363 | hpp | C++ | dialogs/loadMenu/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | null | null | null | dialogs/loadMenu/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | 26 | 2020-05-15T14:38:08.000Z | 2021-06-28T18:26:53.000Z | dialogs/loadMenu/dialogs.hpp | Kortonki/antistasi_remastered | 11c005467d8efb7c709621c00d9b16ae1a5f3be2 | [
"BSD-3-Clause"
] | null | null | null | class AS_loadMenu
{
idd=1601;
movingenable=false;
class controls
{
AS_DIALOG(5,"Load game", "[] spawn AS_fnc_UI_loadMenu_close;");
LIST_L(0,1,0,4,"");
BTN_L(5,-1,"Delete selected", "Delete the selected saved game", "[] spawn AS_fnc_UI_loadMenu_delete;");
BTN_R(5,-1,"Load game", "Load the selected saved game", "[... | 22.6875 | 103 | 0.699725 | Kortonki |
acdc6e0c949c8ae6caf265e2497c4d6c7e1d24c9 | 3,033 | cpp | C++ | collection/cp/bcw_codebook-master/Contest/XVIOpenCupJapan/pH.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/bcw_codebook-master/Contest/XVIOpenCupJapan/pH.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/bcw_codebook-master/Contest/XVIOpenCupJapan/pH.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ... | 20.917241 | 85 | 0.536433 | daemonslayer |
acdcb8043ea1a66f833c1f5574ff78cf610e7fe3 | 1,335 | cpp | C++ | old/old_vinput.cpp | ron2015schmitt/COOLL | 5516714e5fea6d73e0b2eaa8c04876e5e54ef355 | [
"MIT"
] | 1 | 2019-08-17T00:30:22.000Z | 2019-08-17T00:30:22.000Z | old/old_vinput.cpp | ron2015schmitt/COOLL | 5516714e5fea6d73e0b2eaa8c04876e5e54ef355 | [
"MIT"
] | null | null | null | old/old_vinput.cpp | ron2015schmitt/COOLL | 5516714e5fea6d73e0b2eaa8c04876e5e54ef355 | [
"MIT"
] | null | null | null |
// flag for run-time bounds and size checking
#define MATHQ_DEBUG 1
#include "mathq.h"
using namespace mathq;
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
const int N = 4;
Vector<double> v1(N,"vec1");
Vector<double> v2(N,"vec2");
Vector<double> v3(N,"vec3");
DISP(v1);... | 16.280488 | 80 | 0.606742 | ron2015schmitt |
acdf0c5876147daab059a3e5bcb48643137dc070 | 958 | cpp | C++ | Userland/Demos/ModelGallery/main.cpp | TheCrott/serenity | 925f21353efaa5304c5d486e6802c4e75e0c4d15 | [
"BSD-2-Clause"
] | 650 | 2019-03-01T13:33:03.000Z | 2022-03-15T09:26:44.000Z | Userland/Demos/ModelGallery/main.cpp | TheCrott/serenity | 925f21353efaa5304c5d486e6802c4e75e0c4d15 | [
"BSD-2-Clause"
] | 51 | 2019-04-03T08:32:38.000Z | 2019-05-19T13:44:28.000Z | Userland/Demos/ModelGallery/main.cpp | TheCrott/serenity | 925f21353efaa5304c5d486e6802c4e75e0c4d15 | [
"BSD-2-Clause"
] | 33 | 2019-03-26T05:47:59.000Z | 2021-11-22T18:18:45.000Z | /*
* Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "GalleryWidget.h"
#include <LibGUI/Application.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h>
#include <LibGUI/Frame.h>
#include <LibGUI/MessageBox.h>
#include <unistd.h>
int main(int argc,... | 23.95 | 76 | 0.646138 | TheCrott |
acdfb7986a63e425ad08820c50aa0b34dbb63dac | 28,026 | cpp | C++ | docs/simple.cpp | ief015/libfada | 97dc34a96fd3a6fb454680303229b6295ef3d28a | [
"Zlib"
] | null | null | null | docs/simple.cpp | ief015/libfada | 97dc34a96fd3a6fb454680303229b6295ef3d28a | [
"Zlib"
] | null | null | null | docs/simple.cpp | ief015/libfada | 97dc34a96fd3a6fb454680303229b6295ef3d28a | [
"Zlib"
] | null | null | null | /***********************************************************
** libfada Full Example Visualizer
** Written by Nathan Cousins - December 2013
**
** Usage: full_visualizer <audio_filepath>
** `audio_filepath' may be any filetype supported by SFML/libsndfile.
**********************************************... | 24.139535 | 178 | 0.603261 | ief015 |