hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79481fcc7b6a3e4960b44ddd63c1d524ecaa1ea9 | 4,631 | cpp | C++ | Vijos/1983.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | Vijos/1983.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | Vijos/1983.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>
#define N 300100
using namespace std;
inline int apmax(int &a,int b){
if(b>a){
a=b;
// cout<<"\t\tMax applied."<<endl;
}
}
inline void swap(int &a,int &b){
int t=a;
a=b;
b=t;
}
int e[N][3],n,m,topl=0;
struct route{
int u,v,l;
}plan[N];
bool plancmp(con... | 20.400881 | 132 | 0.486936 | sshockwave |
7951164b539448d14900d124a513a642deef3312 | 58 | cpp | C++ | GameEngine/QuatAnimKey.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | GameEngine/QuatAnimKey.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | GameEngine/QuatAnimKey.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | #include "QuatAnimKey.h"
QuatAnimKey::~QuatAnimKey()
{
} | 9.666667 | 27 | 0.706897 | BenMarshall98 |
795ba2af14602414214d4758ffb261ddf04a3d20 | 5,991 | cpp | C++ | onviflibs/gsoap/gsoap-2.8/gsoap/Symbian/interop2Ctest.cpp | KobeBryand/onvif-qt-server-client | ccc3193b3cbc1f45b1fd9ce7928ae99864d07708 | [
"Apache-2.0"
] | 157 | 2016-08-03T11:49:59.000Z | 2022-03-01T03:00:29.000Z | onviflibs/gsoap/gsoap-2.8/gsoap/Symbian/interop2Ctest.cpp | ouzance/onvif-qt-server-client | ccc3193b3cbc1f45b1fd9ce7928ae99864d07708 | [
"Apache-2.0"
] | 9 | 2017-02-03T15:00:27.000Z | 2020-12-04T23:31:43.000Z | onviflibs/gsoap/gsoap-2.8/gsoap/Symbian/interop2Ctest.cpp | ouzance/onvif-qt-server-client | ccc3193b3cbc1f45b1fd9ce7928ae99864d07708 | [
"Apache-2.0"
] | 88 | 2016-08-29T10:54:39.000Z | 2022-03-10T17:42:40.000Z | //===================================================================================
//
// (C) COPYRIGHT International Business Machines Corp., 2002 All Rights Reserved
// Licensed Materials - Property of IBM
// US Government Users Restricted Rights - Use, duplication or
// disclosure restricted by GS... | 33.283333 | 100 | 0.64213 | KobeBryand |
795dfa2945eafd35c141ea7e52e136b06ed236ba | 59,076 | inl | C++ | source/mclib/mlr/mlrtriangleclipping.inl | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/mclib/mlr/mlrtriangleclipping.inl | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/mclib/mlr/mlrtriangleclipping.inl | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | //===========================================================================//
// Copyright (C) Microsoft Corporation. All rights reserved. //
//===========================================================================//
//#pragma once
//#ifndef MLRTRIANGLECLIPPING_HPP
//#define MLRTRIANGLECLIPPING... | 32.638674 | 113 | 0.593659 | mechasource |
7960a12c1a8c7806cd4a6e4f19b3fba0dcae913f | 6,920 | cpp | C++ | trace_server/widgets/logs/logwidget_filtering.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | trace_server/widgets/logs/logwidget_filtering.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | trace_server/widgets/logs/logwidget_filtering.cpp | mojmir-svoboda/DbgToolkit | 590887987d0856032be906068a3103b6ce31d21c | [
"MIT"
] | null | null | null | #include "logwidget.h"
#include <QListView>
#include <QFile>
#include <QRegularExpression>
#include <utils/utils.h>
#include <utils/utils_qstandarditem.h>
#include "logfilterproxymodel.h"
#include <models/treeproxy.h>
#include "logtablemodel.h"
#include <3rd/qtsln/qtcolorpicker/qtcolorpicker.h>
namespace logs {
void ... | 27.351779 | 126 | 0.637861 | mojmir-svoboda |
7963f77d00e9dfa005591e5762606e425e4bb3a0 | 7,775 | cpp | C++ | base/src/FramesMuxer.cpp | yashrajsapra/ApraPipes | 5e5b6a254b9d372ac4ac6e07c5e712fbab943967 | [
"MIT"
] | 14 | 2021-12-14T05:45:29.000Z | 2022-01-31T13:15:13.000Z | base/src/FramesMuxer.cpp | yashrajsapra/ApraPipes | 5e5b6a254b9d372ac4ac6e07c5e712fbab943967 | [
"MIT"
] | 58 | 2021-12-09T09:25:48.000Z | 2022-03-26T01:25:21.000Z | base/src/FramesMuxer.cpp | yashrajsapra/ApraPipes | 5e5b6a254b9d372ac4ac6e07c5e712fbab943967 | [
"MIT"
] | 14 | 2020-11-26T14:01:32.000Z | 2021-09-26T14:17:06.000Z | #include <boost/foreach.hpp>
#include "FramesMuxer.h"
#include "Frame.h"
#include "FrameMetadata.h"
#include "Logger.h"
#include "AIPExceptions.h"
class FramesMuxerStrategy
{
public:
FramesMuxerStrategy(FramesMuxerProps& _props) {}
virtual ~FramesMuxerStrategy()
{
}
virtual std::string addInputPin(std::strin... | 18.917275 | 131 | 0.646302 | yashrajsapra |
7964087e5da30d1430d57e0f36673f0805fdcc93 | 28,563 | cpp | C++ | source/ARFFWriter.cpp | scanavan/GestureRecognition | f0761978b8f1a85544151adb1f1e30f3a9070984 | [
"MIT"
] | 2 | 2016-11-06T15:11:23.000Z | 2017-03-09T01:00:01.000Z | source/ARFFWriter.cpp | SRI2016/GestureRecognition | f0761978b8f1a85544151adb1f1e30f3a9070984 | [
"MIT"
] | null | null | null | source/ARFFWriter.cpp | SRI2016/GestureRecognition | f0761978b8f1a85544151adb1f1e30f3a9070984 | [
"MIT"
] | 3 | 2016-10-26T00:41:15.000Z | 2019-05-13T13:30:16.000Z | #include "ARFFWriter.h"
// constructor
// formats the output file to ARFF file format
// @ATTRIBUTE are all the numeric values from the leapData
// the for loop goes through the data vector
ARFFWriter::ARFFWriter(std::string path, std::vector<LeapData> data) {
std::ofstream file;
file.open(path);
file << "% 1. Titl... | 40.572443 | 289 | 0.705248 | scanavan |
796534d0407773cdbcce6caee4168e3bb526c069 | 1,801 | cpp | C++ | aws-cpp-sdk-apigatewayv2/source/model/AccessLogSettings.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-apigatewayv2/source/model/AccessLogSettings.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-apigatewayv2/source/model/AccessLogSettings.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 21.188235 | 78 | 0.739589 | curiousjgeorge |
7967615ae43ab5c786c55dddafe242464a7ef3f0 | 2,151 | cpp | C++ | src/mge/core/properties.cpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | src/mge/core/properties.cpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | 91 | 2019-03-09T11:31:29.000Z | 2022-02-27T13:06:06.000Z | src/mge/core/properties.cpp | mge-engine/mge | e7a6253f99dd640a655d9a80b94118d35c7d8139 | [
"MIT"
] | null | null | null | // mge - Modern Game Engine
// Copyright (c) 2021 by Alexander Schroeder
// All rights reserved.
#include "mge/core/properties.hpp"
#include "mge/config.hpp"
namespace mge {
properties::properties() {}
properties::properties(const properties& p)
: m_data(p.m_data)
{}
properties::properties(pr... | 26.555556 | 75 | 0.518364 | mge-engine |
796a6898f0f2101da2416fc541c7ebcec4ea7f06 | 3,373 | cc | C++ | src/Magnetometer.cc | FirefoxMetzger/sdformat | b25ecbc75f6d54b0f35ceafb0222c8dd544fdbbc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/Magnetometer.cc | FirefoxMetzger/sdformat | b25ecbc75f6d54b0f35ceafb0222c8dd544fdbbc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/Magnetometer.cc | FirefoxMetzger/sdformat | b25ecbc75f6d54b0f35ceafb0222c8dd544fdbbc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 25.360902 | 77 | 0.565669 | FirefoxMetzger |
796c0ab61b79d41f4119a2cff1a0aab3ff063d69 | 991 | hpp | C++ | external/boost_1_60_0/qsboost/iostreams/detail/template_params.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/iostreams/detail/template_params.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/iostreams/detail/template_params.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
// (C) Copyright 2003-2007 Jonathan Turkanis
// 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.)
// See http://www.boost.org/libs/iostreams for docume... | 36.703704 | 79 | 0.766902 | wouterboomsma |
7976f2e0e585d227098e154f7cb2d26d219f57c9 | 2,962 | cpp | C++ | src/algorithm/component/Solution.cpp | allenbronshtein/Searcher-Server | 86f1208468a96ac12489e0b92e07fae91caa423c | [
"Unicode-DFS-2016",
"Unicode-DFS-2015"
] | null | null | null | src/algorithm/component/Solution.cpp | allenbronshtein/Searcher-Server | 86f1208468a96ac12489e0b92e07fae91caa423c | [
"Unicode-DFS-2016",
"Unicode-DFS-2015"
] | null | null | null | src/algorithm/component/Solution.cpp | allenbronshtein/Searcher-Server | 86f1208468a96ac12489e0b92e07fae91caa423c | [
"Unicode-DFS-2016",
"Unicode-DFS-2015"
] | null | null | null | #include "Solution.h"
namespace component
{
int Solution::getCost() const
{
return cost;
}
void Solution::setCost(int c)
{
cost = c;
}
list<MatrixNode> Solution::getRoute()
{
return route;
}
void Solution::addStep(const MatrixNode &node)
{
route.push_front(node);
}
void Solution::removeStep(const Matr... | 25.534483 | 146 | 0.482782 | allenbronshtein |
79810a7ccab8817fce55f100f48f9cc8b9c4ccf7 | 1,747 | cpp | C++ | Tools/SkinEditor/SkinListControl.cpp | kochol/mygui | 298f56c2b4b07d7b1ce355fecf3b9047ab8c664d | [
"MIT"
] | 1 | 2021-12-06T15:32:12.000Z | 2021-12-06T15:32:12.000Z | Tools/SkinEditor/SkinListControl.cpp | kochol/mygui | 298f56c2b4b07d7b1ce355fecf3b9047ab8c664d | [
"MIT"
] | null | null | null | Tools/SkinEditor/SkinListControl.cpp | kochol/mygui | 298f56c2b4b07d7b1ce355fecf3b9047ab8c664d | [
"MIT"
] | 1 | 2019-11-07T02:27:10.000Z | 2019-11-07T02:27:10.000Z | /*!
@file
@author Albert Semenov
@date 07/2012
*/
#include "Precompiled.h"
#include "SkinListControl.h"
#include "FactoryManager.h"
#include "CommandManager.h"
#include "CreateSkinDataAction.h"
#include "ActionManager.h"
#include "DataUtility.h"
namespace tools
{
FACTORY_ITEM_ATTRIBUTE(SkinListControl)
SkinL... | 29.116667 | 160 | 0.767602 | kochol |
79885366f48e71b8fff2257ca21cab974bac4c58 | 1,188 | cpp | C++ | 2019Homeworks/20191221_Mock_EndTerm/2.EnsureBase.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | 8 | 2019-10-09T14:33:42.000Z | 2020-12-03T00:49:29.000Z | 2019Homeworks/20191221_Mock_EndTerm/2.EnsureBase.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | 2019Homeworks/20191221_Mock_EndTerm/2.EnsureBase.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | #include<iostream>
#include<iomanip>
#include<algorithm>
#include<cmath>
#include<string>
#include<cstring>
#include<vector>
using namespace std;
int getMax(int p,int q,int r){
int res=-1;
do{
res=max(res,p%10);
}
while(p/=10);
do{
res=max(res,q%10);
}
while(q/=10);
do{... | 16.732394 | 48 | 0.45202 | Guyutongxue |
798ab1b80bc3d8e058db82c78796c0d0766c670a | 9,711 | cpp | C++ | src/util/Journal.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 7 | 2018-06-09T05:55:59.000Z | 2021-01-05T05:19:02.000Z | src/util/Journal.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:39:06.000Z | 2020-01-03T08:35:29.000Z | src/util/Journal.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 11 | 2018-05-10T08:29:05.000Z | 2020-01-22T20:49:32.000Z | #include <cerrno>
#include <functional>
#include <map>
#include <Poco/Checksum.h>
#include <Poco/Error.h>
#include <Poco/Exception.h>
#include <Poco/FileStream.h>
#include <Poco/Logger.h>
#include <Poco/NumberFormatter.h>
#include <Poco/NumberParser.h>
#include <Poco/String.h>
#include "io/SafeWriter.h"
#include "uti... | 20.358491 | 80 | 0.675626 | jalowiczor |
798e72176afa1e31f26600993e8b7b4fcdf9e1ae | 1,440 | hpp | C++ | include/zincwriter.hpp | kushaldalsania/haystack-cpp | 95997ae2bca9ea096dc7e61c000291f3ac08d9d7 | [
"AFL-3.0"
] | null | null | null | include/zincwriter.hpp | kushaldalsania/haystack-cpp | 95997ae2bca9ea096dc7e61c000291f3ac08d9d7 | [
"AFL-3.0"
] | null | null | null | include/zincwriter.hpp | kushaldalsania/haystack-cpp | 95997ae2bca9ea096dc7e61c000291f3ac08d9d7 | [
"AFL-3.0"
] | null | null | null | #pragma once
//
// Copyright (c) 2015, J2 Innovations
// Copyright (c) 2012 Brian Frank
// Licensed under the Academic Free License version 3.0
// History:
// 01 Sep 2014 Radu Racariu<radur@2inn.com> Ported to C++
// 06 Jun 2011 Brian Frank Creation
//
#include "gridwriter.hpp"
#include <ostream>
#include <stdi... | 26.181818 | 90 | 0.463889 | kushaldalsania |
7991bf5b885da5fbd0aed2b27966a567832023e2 | 1,265 | cpp | C++ | OOP/TestPreparation/Product.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | OOP/TestPreparation/Product.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | OOP/TestPreparation/Product.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | /*
* File: Product.cpp
* Author: mitko
*
* Created on May 14, 2015, 1:13 PM
*/
#include "Product.h"
#include <iostream>
#include <cstring>
#include <iomanip>
using namespace std;
Product::Product(char name[], unsigned int id, double kg,
unsigned h, unsigned w, unsigned l) : id(id), kg(kg), h(h... | 22.589286 | 84 | 0.546245 | Rossoner40 |
799492babaa4319abcefdc6d6411ddb7b96ae125 | 27,675 | cpp | C++ | src/session.cpp | lyssdod/node-test | 41ed9060cfe25f85abd66f755a0c88a26e129570 | [
"MIT"
] | 5 | 2016-09-22T20:00:31.000Z | 2021-01-10T04:29:22.000Z | src/session.cpp | lyssdod/node-test | 41ed9060cfe25f85abd66f755a0c88a26e129570 | [
"MIT"
] | 13 | 2016-09-03T14:13:08.000Z | 2019-02-13T16:45:04.000Z | src/session.cpp | lyssdod/node-test | 41ed9060cfe25f85abd66f755a0c88a26e129570 | [
"MIT"
] | 8 | 2016-09-18T16:10:24.000Z | 2017-06-23T20:50:15.000Z | #include <v8.h>
#include <nan.h>
#include <node.h>
#include <libtorrent/add_torrent_params.hpp>
#include <libtorrent/disk_io_thread.hpp>
#include <libtorrent/error_code.hpp>
#include <libtorrent/extensions.hpp>
#include <libtorrent/fingerprint.hpp>
#include <libtorrent/ip_filter.hpp>
#include <libtorrent/lazy_entry.hp... | 35.299745 | 150 | 0.638555 | lyssdod |
799a821914583e1909258367017a07047f9cfe9d | 1,192 | hpp | C++ | lib/graph/bellman_ford.hpp | hareku/cpp-algorithm | 455339645d5797f0e6b211694345e1a221fc131c | [
"Apache-2.0"
] | null | null | null | lib/graph/bellman_ford.hpp | hareku/cpp-algorithm | 455339645d5797f0e6b211694345e1a221fc131c | [
"Apache-2.0"
] | null | null | null | lib/graph/bellman_ford.hpp | hareku/cpp-algorithm | 455339645d5797f0e6b211694345e1a221fc131c | [
"Apache-2.0"
] | null | null | null | #ifndef LIB_GRAPH_BELLMAN_FORD_HPP
#define LIB_GRAPH_BELLMAN_FORD_HPP 1
#include <bits/stdc++.h>
namespace lib::graph {
template <class Cost> struct bellman_ford_graph {
public:
bellman_ford_graph(int n) : _n(n) {}
void add_edge(int from, int to, Cost cost) {
assert(0 <= from && from < _n);
... | 24.326531 | 79 | 0.501678 | hareku |
79a1dff1ad36bfe373fab550ec1c31a31d71f198 | 4,014 | hpp | C++ | modules/core/linalg/bench/flops/qr.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/linalg/bench/flops/qr.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/linalg/bench/flops/qr.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 MetaScale SAS
//
// Distributed under the Boost Softw... | 54.986301 | 80 | 0.193323 | psiha |
79a5637e2a1e9a6c4a5088ca04f24f8bab918986 | 557 | hpp | C++ | src/BSL/SFMLAudioManager.hpp | yacklebeam/bluescreen-engine | c05a5b9320ca519147e9466ddbbb0d62fcad7b9a | [
"MIT"
] | null | null | null | src/BSL/SFMLAudioManager.hpp | yacklebeam/bluescreen-engine | c05a5b9320ca519147e9466ddbbb0d62fcad7b9a | [
"MIT"
] | null | null | null | src/BSL/SFMLAudioManager.hpp | yacklebeam/bluescreen-engine | c05a5b9320ca519147e9466ddbbb0d62fcad7b9a | [
"MIT"
] | null | null | null | #ifndef BLUESCREEN_AUDIO_H
#define BLUESCREEN_AUDIO_H
#include <SFML/Audio.hpp>
#include <vector>
#include <SFML/Window.hpp>
class SFMLAudioManager
{
public:
SFMLAudioManager();
~SFMLAudioManager();
void addSound(char* tag, sf::SoundBuffer* buffer, float volumeScaling, int type);
void playSound(char* tag);
void ... | 18.566667 | 82 | 0.741472 | yacklebeam |
79b07b586b202298ba7151aa5db8efee365d858d | 1,464 | cpp | C++ | ConversationalGame/Cap19/Adventure/Adventure/location.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | ConversationalGame/Cap19/Adventure/Adventure/location.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | ConversationalGame/Cap19/Adventure/Adventure/location.cpp | Gabroide/Learning-C | 63a89b9b6b84e410756e70e346173d475a1802a6 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include "object.h"
#include "misc.h"
#include "match.h"
#include "noun.h"
bool executeLookAround(void)
{
if (isLit(player->location))
{
printf("You are in %s.\n", player->location->description);
}
else
{
printf("It is very dark in here.\n");
}
listObjectsAtLocation(player->location);
re... | 19.783784 | 65 | 0.68306 | Gabroide |
79b0b1606b1c973c55e439ecc0b461f142b7dfbc | 647 | hpp | C++ | libs/core/include/fcppt/preprocessor/todo.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/preprocessor/todo.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/preprocessor/todo.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_PREPROCESSOR_TODO_HPP_INCLUDED
#define FCPPT_PREPROCESSOR_TODO_HPP_INCLUDED
#include... | 25.88 | 65 | 0.760433 | freundlich |
79b33a2ac3297632370ab1a7a05bdfc897d32839 | 40,046 | cpp | C++ | source/options.cpp | jet2jet/stream-connector | 1604dcf29bee69866a266deaa56fa4fd0e3ff1d6 | [
"BSD-3-Clause"
] | 1 | 2021-06-14T12:46:05.000Z | 2021-06-14T12:46:05.000Z | source/options.cpp | jet2jet/stream-connector | 1604dcf29bee69866a266deaa56fa4fd0e3ff1d6 | [
"BSD-3-Clause"
] | null | null | null | source/options.cpp | jet2jet/stream-connector | 1604dcf29bee69866a266deaa56fa4fd0e3ff1d6 | [
"BSD-3-Clause"
] | null | null | null | #include "framework.h"
#include "options.h"
#include "app/simple_dialog.h"
#include "util/functions.h"
#include <stdarg.h>
static void ShowHelp(_In_opt_z_ PCWSTR errorReason = nullptr)
{
constexpr auto helpMessage =
L"Usage: stream-connector.exe <options>\n"
L"\n"
L"<options>... | 34.701906 | 145 | 0.433027 | jet2jet |
79b3e0984123118ca24dc9274e0e2e7965170bb9 | 15,662 | cpp | C++ | src/physfs/love_physfs.cpp | truthwzl/lov8 | 579163941593bae481212148041e0db78270c21d | [
"Zlib"
] | 1 | 2016-08-13T03:13:59.000Z | 2016-08-13T03:13:59.000Z | src/physfs/love_physfs.cpp | truthwzl/lov8 | 579163941593bae481212148041e0db78270c21d | [
"Zlib"
] | null | null | null | src/physfs/love_physfs.cpp | truthwzl/lov8 | 579163941593bae481212148041e0db78270c21d | [
"Zlib"
] | 1 | 2022-01-10T04:25:46.000Z | 2022-01-10T04:25:46.000Z |
#include "love_physfs.h"
#include "mod_physfs.h"
// LOVE
#include <love/Core.h>
// STD
#include <set>
#include <string>
// PhysFS
#include <physfs.h>
#include <v8.h>
extern v8::Handle<v8::ObjectTemplate> JSlove_physfsCreateClass();
// For great CWD. (Current Working Directory)
// Using this inst... | 20.105263 | 105 | 0.593028 | truthwzl |
79b6b8a9638e1026d64741a83aafa8a0253706e3 | 2,219 | cpp | C++ | esp/services/ws_codesign/ws_codesignPlugin.cpp | jeclrsg/HPCC-Platform | c1daafb6060f0c47c95bce98e5431fedc33c592d | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | esp/services/ws_codesign/ws_codesignPlugin.cpp | jeclrsg/HPCC-Platform | c1daafb6060f0c47c95bce98e5431fedc33c592d | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | esp/services/ws_codesign/ws_codesignPlugin.cpp | jakesmith/HPCC-Platform | c3b9268c492e473176ea36e3e916c4a544f47561 | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2019 HPCC Systems.
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... | 32.632353 | 137 | 0.677332 | jeclrsg |
79b91cf6ebe6bcdf9bfbd53cbe4f5df7390e0b94 | 1,131 | hpp | C++ | src/board.hpp | 2083008/team11_RTEP5 | 7a23807ef23743adbb86f6416d0331a3b9d6e83c | [
"Apache-2.0"
] | 15 | 2018-04-20T02:47:09.000Z | 2022-03-18T19:02:43.000Z | src/board.hpp | 2083008/team11_RTEP5 | 7a23807ef23743adbb86f6416d0331a3b9d6e83c | [
"Apache-2.0"
] | 9 | 2018-03-14T15:11:08.000Z | 2018-03-26T13:30:46.000Z | src/board.hpp | 2083008/team11_RTEP5 | 7a23807ef23743adbb86f6416d0331a3b9d6e83c | [
"Apache-2.0"
] | 4 | 2019-04-09T14:20:20.000Z | 2021-04-10T06:39:09.000Z | #ifndef Board_H
#define Board_H
#include <string>
#include "chess_piece.hpp"
//constants
class Board {
//0 0 is white rook
char board[8][8] = {
{'r', 'n', 'b', 'q', 'k', 'b', 'n', 'r'},
{'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p'},
{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '},
{' ', ... | 23.5625 | 56 | 0.418214 | 2083008 |
79b95a2392a85bc29b31b269de2a5bd86735b15c | 2,408 | cpp | C++ | tggdkjxv/State.Start.cpp | playdeezgames/tggdkjxv | bdb1a31ffff2dd3b3524de4639846fa902b893b9 | [
"MIT"
] | null | null | null | tggdkjxv/State.Start.cpp | playdeezgames/tggdkjxv | bdb1a31ffff2dd3b3524de4639846fa902b893b9 | [
"MIT"
] | null | null | null | tggdkjxv/State.Start.cpp | playdeezgames/tggdkjxv | bdb1a31ffff2dd3b3524de4639846fa902b893b9 | [
"MIT"
] | null | null | null | #include "Application.Renderer.h"
#include "Application.Command.h"
#include "Visuals.Menus.h"
#include "Game.h"
#include "Common.Audio.h"
#include "Common.Utility.h"
#include "Application.MouseButtonUp.h"
#include "Application.MouseMotion.h"
#include "Visuals.Areas.h"
#include "Application.OnEnter.h"
#include "Game.Aud... | 35.411765 | 134 | 0.725498 | playdeezgames |
79cc1ae3b79ed99cc5ade67baf7cd90f1e84251a | 984 | cpp | C++ | OS/AmigaOS/spawn.cpp | SamuraiCrow/AmosKittens | e89477b94a28916e4320fa946c18c0d769c710b2 | [
"MIT"
] | 7 | 2018-04-24T22:11:58.000Z | 2021-09-10T22:12:35.000Z | OS/AmigaOS/spawn.cpp | SamuraiCrow/AmosKittens | e89477b94a28916e4320fa946c18c0d769c710b2 | [
"MIT"
] | 36 | 2018-02-24T18:34:18.000Z | 2021-08-08T10:33:29.000Z | OS/AmigaOS/spawn.cpp | SamuraiCrow/AmosKittens | e89477b94a28916e4320fa946c18c0d769c710b2 | [
"MIT"
] | 2 | 2018-10-22T18:47:30.000Z | 2020-09-16T06:10:52.000Z |
#include <proto/exec.h>
#include <proto/dos.h>
#include <stdlib.h>
#include <stdio.h>
#include "spawn.h"
int spawn_count = 0;
extern struct Task *main_task;
void spawn_died(int32 ret,int32 x)
{
spawn_count--;
Signal( main_task ,SIGF_CHILD);
}
struct Process *spawn( void (*fn) (), const char *name, BPTR output ... | 16.677966 | 69 | 0.635163 | SamuraiCrow |
79ceef9cf8aa60b07bd20d405a4368c4643264a5 | 922 | cpp | C++ | test/variant/partition.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/variant/partition.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/variant/partition.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/catch/begin.hpp>
#include <fcppt/catch/end.hpp>
#include <fcppt/catch/tuple.hpp>
#i... | 30.733333 | 97 | 0.71692 | freundlich |
79d2d1349f6e7db5957f12446d4487d4555127e9 | 8,921 | cpp | C++ | test-suite/fittedbonddiscountcurve.cpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 3,358 | 2015-12-18T02:56:17.000Z | 2022-03-31T02:42:47.000Z | test-suite/fittedbonddiscountcurve.cpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 965 | 2015-12-21T10:35:28.000Z | 2022-03-30T02:47:00.000Z | test-suite/fittedbonddiscountcurve.cpp | jiangjiali/QuantLib | 37c98eccfa18a95acb1e98b276831641be92b38e | [
"BSD-3-Clause"
] | 1,663 | 2015-12-17T17:45:38.000Z | 2022-03-31T07:58:29.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2019 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it ... | 43.305825 | 106 | 0.677615 | jiangjiali |
79d3aad58180350dc235fd6abdba8f430dc59516 | 2,071 | cpp | C++ | tests/Test.cpp | glennw/skia | 79aa9354837bc195b83fa041b9632ea628e6f7d0 | [
"BSD-3-Clause"
] | null | null | null | tests/Test.cpp | glennw/skia | 79aa9354837bc195b83fa041b9632ea628e6f7d0 | [
"BSD-3-Clause"
] | null | null | null | tests/Test.cpp | glennw/skia | 79aa9354837bc195b83fa041b9632ea628e6f7d0 | [
"BSD-3-Clause"
] | null | null | null |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#include "SkTLazy.h"
#if SK_SUPPORT_GPU
#include "GrContext.h"
#include "gl/SkNativeGLContext.h"
#else
class GrContext;
#endif
SK_DEFINE_INST_COUNT(skiate... | 19.72381 | 79 | 0.614679 | glennw |
79d798ac696cef0e9d603c533d47e5a379cb286a | 1,240 | cpp | C++ | Problems/0004. Median of Two Sorted Arrays.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0004. Median of Two Sorted Arrays.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0004. Median of Two Sorted Arrays.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | class Solution {
public:
double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) {
int n1 = nums1.size(), n2 = nums2.size();
if (n1 > n2)
return findMedianSortedArrays(nums2, nums1);
int lo{0}, hi{n1}, cut1{}, cut2{};
//BINARY SEARCH for correct partition ======================... | 33.513514 | 73 | 0.529032 | KrKush23 |
79d8348549002766e054b203d5aa384bf4a2ce49 | 134 | cpp | C++ | src/entity/Component.cpp | ASxa86/azule | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | 1 | 2018-10-19T18:00:19.000Z | 2018-10-19T18:00:19.000Z | src/entity/Component.cpp | ASxa86/azule | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | 7 | 2019-06-13T00:48:55.000Z | 2020-05-05T00:18:42.000Z | src/entity/Component.cpp | ASxa86/AGE | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | null | null | null | #include <azule/entity/Component.h>
using namespace azule;
Component::Component()
{
this->addProperty("Enabled", this->Enabled);
}
| 14.888889 | 45 | 0.731343 | ASxa86 |
79de2ca58f95d8d3fb47544fdab4b88cdddedc36 | 9,837 | cpp | C++ | src/utilityTools/main.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/utilityTools/main.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/utilityTools/main.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | 1 | 2019-03-12T21:47:32.000Z | 2019-03-12T21:47:32.000Z | #include "LMS7002M.h"
#include "IConnection.h"
#include "ConnectionRegistry.h"
#include <iostream>
#include <iomanip>
#include "ErrorReporting.h"
#include "pllTest.h"
#include <getopt.h>
#include <string>
#include <algorithm>
#include <cctype>
#include <fstream>
#include <chrono>
//#define DRAW_GNUPLOT
#ifdef DRAW_GN... | 34.275261 | 173 | 0.549659 | bastille-attic |
79de3d44f37724b90c96a2a375f1d4d50cf00664 | 750 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/fusion/adapted/std_pair.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | ios/Pods/boost-for-react-native/boost/fusion/adapted/std_pair.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | ios/Pods/boost-for-react-native/boost/fusion/adapted/std_pair.hpp | c7yrus/alyson-v3 | 5ad95a8f782f5f5d2fd543d44ca6a8b093395965 | [
"Apache-2.0"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2005-2006 Dan Marsden
Copyright (c) 2009-2010 Christopher Schmidt
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or... | 35.714286 | 80 | 0.597333 | Harshitha91 |
0764ea2ba73591de71a79a774dcfe1c76f72ac0c | 3,856 | hpp | C++ | Spiel/src/engine/io/Input.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/engine/io/Input.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/engine/io/Input.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | #pragma once
#include "../types/ShortNames.hpp"
#include <optional>
#include "GL/glew.h"
#include "GLFW/glfw3.h"
enum class MouseButton {
MB_LEFT = 0,
MB_RIGHT = 1,
MB_MIDDLE = 2,
MB_4 = 3,
MB_5 = 4
};
static inline constexpr unsigned int MIN_MOUSE_BUTTON_INDEX{ 0 };
static inline constexpr unsigned int MAX_M... | 23.369697 | 65 | 0.355031 | Ipotrick |
076551b6bc8a06fdeb1b6453f34497010c219506 | 1,985 | cpp | C++ | GameEngine/GameEngine/TTFont.cpp | omkar-developer/OmkEngine | 89a8f95356ac2b84bf5b6a5b9d7c35e9e320e378 | [
"CC-BY-3.0"
] | 5 | 2017-07-25T05:50:32.000Z | 2022-03-24T14:18:30.000Z | GameEngine/GameEngine/TTFont.cpp | omkar-developer/OmkEngine | 89a8f95356ac2b84bf5b6a5b9d7c35e9e320e378 | [
"CC-BY-3.0"
] | null | null | null | GameEngine/GameEngine/TTFont.cpp | omkar-developer/OmkEngine | 89a8f95356ac2b84bf5b6a5b9d7c35e9e320e378 | [
"CC-BY-3.0"
] | 2 | 2015-03-07T09:00:06.000Z | 2020-05-22T09:23:05.000Z | /*
* Copyright (c) 2013 Omkar Kanase
*
* 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 commerci... | 21.344086 | 77 | 0.70529 | omkar-developer |
076cbd7f7f7be6d00de733b71b9e7d3b0a003d84 | 194 | cpp | C++ | jni/logic/StateMachine.cpp | zagayevskiy/Pacman | dd0e0ec389a861a28d5e5b319189adcf0dc71338 | [
"MIT"
] | 55 | 2015-03-15T15:51:52.000Z | 2022-02-22T02:24:52.000Z | jni/logic/StateMachine.cpp | zagayevskiy/Pacman | dd0e0ec389a861a28d5e5b319189adcf0dc71338 | [
"MIT"
] | null | null | null | jni/logic/StateMachine.cpp | zagayevskiy/Pacman | dd0e0ec389a861a28d5e5b319189adcf0dc71338 | [
"MIT"
] | 24 | 2015-06-20T22:53:37.000Z | 2021-06-24T13:16:45.000Z | /*
* StateMachine.cpp
*
* Created on: 10.11.2012
* Author: Denis Zagayevskiy
*/
#include "StateMachine.h"
StateMachine::~StateMachine() {
// TODO Auto-generated destructor stub
}
| 13.857143 | 39 | 0.664948 | zagayevskiy |
076dea609223a5c2ab62ce61765268e3c1da65e0 | 1,224 | cpp | C++ | ZeroEngine/Include/ZeroFxRadialBlur.cpp | bamtoll09/GROWN | 0f2098bce97a739f9b786d487136aa44f1b6a227 | [
"MIT"
] | null | null | null | ZeroEngine/Include/ZeroFxRadialBlur.cpp | bamtoll09/GROWN | 0f2098bce97a739f9b786d487136aa44f1b6a227 | [
"MIT"
] | null | null | null | ZeroEngine/Include/ZeroFxRadialBlur.cpp | bamtoll09/GROWN | 0f2098bce97a739f9b786d487136aa44f1b6a227 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ZeroFxRadialBlur.h"
#include "ZeroMathManager.h"
#pragma warning(disable: 4996)
ZeroFxRadialBlur::ZeroFxRadialBlur(float _time, float _power_0_1, char* _renderPage)
: ZeroIShader(_renderPage), time(_time), beginTime(_time), center(0.5f, 0.5f, 0.f, 0.f), blurStart(1.0f), blurWidth(0.0f)... | 25.5 | 143 | 0.699346 | bamtoll09 |
07711eac57d7799ff3c99af133c61f741e283832 | 367 | cpp | C++ | src/poco_impl/JXXON/Accessor/SetProperty_bool.cpp | jxx-project/JXXON | 313bb4e5ab42385741a41fb4032585159c8721c6 | [
"BSL-1.0"
] | null | null | null | src/poco_impl/JXXON/Accessor/SetProperty_bool.cpp | jxx-project/JXXON | 313bb4e5ab42385741a41fb4032585159c8721c6 | [
"BSL-1.0"
] | null | null | null | src/poco_impl/JXXON/Accessor/SetProperty_bool.cpp | jxx-project/JXXON | 313bb4e5ab42385741a41fb4032585159c8721c6 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (C) 2018 Dr. Michael Steffens
//
// SPDX-License-Identifier: BSL-1.0
//
#include "JXXON/Accessor/SetProperty.tcc"
#include <cstdint>
namespace JXXON { namespace Accessor {
template SetProperty<bool>::SetProperty(Json& json, const std::string& name);
template void SetProperty<bool>::operator()(const ... | 21.588235 | 77 | 0.72752 | jxx-project |
0779fb74fe243f13cd427c46a985fb97e438d635 | 312 | cpp | C++ | Problem/helpfulMaths.cpp | Shahin-Sheikh/Competitive-Programming | f66d9e1bb9013cc36bdb41faef699494fd73b952 | [
"MIT"
] | 1 | 2021-05-03T07:00:50.000Z | 2021-05-03T07:00:50.000Z | Problem/helpfulMaths.cpp | Shahin-Sheikh/Codeforces | 578e1eed1c8a77e55f217ab6036fee1206af1d3a | [
"MIT"
] | null | null | null | Problem/helpfulMaths.cpp | Shahin-Sheikh/Codeforces | 578e1eed1c8a77e55f217ab6036fee1206af1d3a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int l,i,j;
char s[100];
scanf("%s",s);
l=strlen(s);
for(i=0;i<l;i+=2){
for(j=0;j<l-i-2;j+=2){
if(s[j]>s[j+2]){
swap(s[j],s[j+2]);
}
}
}
printf("%s",s);
return 0;
} | 15.6 | 34 | 0.384615 | Shahin-Sheikh |
077b96cdcd47b4f3787844d7a3cc1807a6c5cb7d | 5,190 | cpp | C++ | test/MaterialManagerTest.cpp | GoogleBot42/Tracer | 5aea41ffc7c6583a8ca5d3672a648a87f759f19c | [
"MIT"
] | 14 | 2019-03-11T18:01:48.000Z | 2021-02-09T01:27:13.000Z | test/MaterialManagerTest.cpp | GoogleBot42/Tracer | 5aea41ffc7c6583a8ca5d3672a648a87f759f19c | [
"MIT"
] | null | null | null | test/MaterialManagerTest.cpp | GoogleBot42/Tracer | 5aea41ffc7c6583a8ca5d3672a648a87f759f19c | [
"MIT"
] | null | null | null | #include "Material.h"
#include <cstdio>
#include <string>
#include <fstream>
#include <vector>
#include <gtest/gtest.h>
#include "Common.h"
using Tracer::MaterialManager;
using Tracer::Material;
using Tracer::Vector3f;
using Tracer::uint;
static std::string testMaterialFileContents =
R""(
newmtl DiffuseMaterial
Ns... | 34.832215 | 105 | 0.654913 | GoogleBot42 |
077c26554b2f1f61ac63178adb86dcf9a0d2fe8a | 3,885 | cc | C++ | src/headers/16/crypto/crypto_scrypt.cc | baptistejamin/cWS | 74d3ef58da257603ab0e56bab6f768854147bb37 | [
"MIT"
] | null | null | null | src/headers/16/crypto/crypto_scrypt.cc | baptistejamin/cWS | 74d3ef58da257603ab0e56bab6f768854147bb37 | [
"MIT"
] | null | null | null | src/headers/16/crypto/crypto_scrypt.cc | baptistejamin/cWS | 74d3ef58da257603ab0e56bab6f768854147bb37 | [
"MIT"
] | null | null | null | #include "crypto/crypto_scrypt.h"
#include "crypto/crypto_util.h"
#include "allocated_buffer-inl.h"
#include "async_wrap-inl.h"
#include "env-inl.h"
#include "memory_tracker-inl.h"
#include "node_buffer.h"
#include "threadpoolwork-inl.h"
#include "v8.h"
namespace node {
using v8::FunctionCallbackInfo;
using v8::Int32... | 25.559211 | 78 | 0.63758 | baptistejamin |
077c77dd301b10f210a306d86587707b0ba86756 | 1,715 | cpp | C++ | src/cegis/cegis-util/cbmc_runner.cpp | pkesseli-archive/cbmc-legacy | 81f06d59850db7fc2603f06d54a8736d8c596194 | [
"BSD-4-Clause"
] | null | null | null | src/cegis/cegis-util/cbmc_runner.cpp | pkesseli-archive/cbmc-legacy | 81f06d59850db7fc2603f06d54a8736d8c596194 | [
"BSD-4-Clause"
] | null | null | null | src/cegis/cegis-util/cbmc_runner.cpp | pkesseli-archive/cbmc-legacy | 81f06d59850db7fc2603f06d54a8736d8c596194 | [
"BSD-4-Clause"
] | null | null | null | #include <cbmc/cbmc_parse_options.h>
#include <cbmc/bmc.h>
#include <goto-programs/goto_trace.h>
#include <cegis/cegis-util/temporary_output_block.h>
#define MOCK_ARGC 1u
namespace
{
const char * ARGV[]={ "cbmc" };
class cbmc_runnert: public cbmc_parse_optionst
{
const symbol_tablet &st;
const goto_functionst &g... | 24.15493 | 85 | 0.718367 | pkesseli-archive |
0785a2bec26b9ad20b235115a47c08d44147ac81 | 2,998 | hh | C++ | src/phantasm-hardware-interface/common/container/stable_map.hh | project-arcana/phantasm-hardware-interface | d75e23b0ac46efb304246930d680851bbe7f6561 | [
"MIT"
] | 6 | 2020-12-09T13:53:26.000Z | 2021-12-24T14:13:17.000Z | src/phantasm-hardware-interface/common/container/stable_map.hh | project-arcana/phantasm-hardware-interface | d75e23b0ac46efb304246930d680851bbe7f6561 | [
"MIT"
] | 5 | 2020-01-29T09:46:36.000Z | 2020-09-04T16:15:53.000Z | src/phantasm-hardware-interface/common/container/stable_map.hh | project-arcana/phantasm-hardware-interface | d75e23b0ac46efb304246930d680851bbe7f6561 | [
"MIT"
] | null | null | null | #pragma once
#include <cstring>
#include <clean-core/alloc_array.hh>
#include <clean-core/hash.hh>
#include <clean-core/utility.hh>
namespace phi::detail
{
template <class KeyT, class ValueT, class HashT = cc::hash<KeyT>>
struct stable_map
{
public:
stable_map() = default;
stable_map(stable_map const&) = del... | 23.793651 | 87 | 0.510674 | project-arcana |
0787862bfa6faae7a4212f9691585fa409407d7f | 5,148 | cpp | C++ | Examples/FtpGUI/main.cpp | xsjames/upp-components | 8c8116a63652c58bff3c86ecb1a4c38653faed13 | [
"BSD-3-Clause"
] | 38 | 2018-01-28T15:17:51.000Z | 2022-02-08T23:09:51.000Z | Examples/FtpGUI/main.cpp | xsjames/upp-components | 8c8116a63652c58bff3c86ecb1a4c38653faed13 | [
"BSD-3-Clause"
] | 14 | 2019-11-04T17:17:13.000Z | 2022-01-01T22:07:41.000Z | Examples/FtpGUI/main.cpp | ismail-yilmaz/upp-components | 20f81651480dfc7acfa95817513331094a76ba9e | [
"BSD-3-Clause"
] | 2 | 2020-06-21T07:33:04.000Z | 2020-09-08T02:47:15.000Z | #include "FtpGUI.h"
#define TFILE <FtpGUI/FtpGui.t>
#include <Core/t.h>
void FtpGUI::Error()
{
ErrorOK(DeQtf(browser.GetErrorDesc()));
}
void FtpGUI::Sync()
{
connect.Enable(!IsNull(url));
connect.SetLabel(connected ? t_("Disconnect") : t_("Connect"));
dirup.Enable(workdir != basedir);
upload.Enabl... | 20.347826 | 105 | 0.602176 | xsjames |
078bdb79de4d7c3390d6f1288d84faf5cf94817b | 7,106 | hpp | C++ | reaction_diffusion.hpp | ddiakopoulos/sandbox | fd4aa4d0e1cd6e45459cdee44aa18d0087adb708 | [
"Unlicense"
] | 177 | 2015-09-19T19:51:57.000Z | 2021-11-08T11:25:55.000Z | reaction_diffusion.hpp | ddiakopoulos/gfx_dev | fd4aa4d0e1cd6e45459cdee44aa18d0087adb708 | [
"Unlicense"
] | 1 | 2016-03-16T23:27:11.000Z | 2016-03-17T08:12:54.000Z | reaction_diffusion.hpp | ddiakopoulos/gfx_dev | fd4aa4d0e1cd6e45459cdee44aa18d0087adb708 | [
"Unlicense"
] | 16 | 2016-03-16T13:06:55.000Z | 2020-06-20T04:57:04.000Z | #ifndef reaction_diffusion_h
#define reaction_diffusion_h
#include "util.hpp"
#if defined(ANVIL_PLATFORM_WINDOWS)
#pragma warning(push)
#pragma warning(disable : 4244)
#endif
#include "math-core.hpp"
// http://mrob.com/pub/comp/xmorphia/
// http://n-e-r-v-o-u-s.com/education/simulation/ethworkshop.php
// "The react... | 33.205607 | 153 | 0.431607 | ddiakopoulos |
078ca3f21c086a72efe1f38ebb33b9912be6d3e2 | 11,725 | cpp | C++ | libs/geometry/test/algorithms/buffer/linestring_buffer.cpp | cdaniels/boost_1_57_0 | 94d381dbcc731b9c69aababcfe89adc6a4ba20f0 | [
"BSL-1.0"
] | 3 | 2018-11-02T07:15:32.000Z | 2018-12-15T19:56:59.000Z | libs/geometry/test/algorithms/buffer/linestring_buffer.cpp | cdaniels/boost_1_57_0 | 94d381dbcc731b9c69aababcfe89adc6a4ba20f0 | [
"BSL-1.0"
] | 2 | 2017-11-18T21:24:03.000Z | 2020-03-11T12:39:57.000Z | libs/geometry/test/algorithms/buffer/linestring_buffer.cpp | cdaniels/boost_1_57_0 | 94d381dbcc731b9c69aababcfe89adc6a4ba20f0 | [
"BSL-1.0"
] | 3 | 2017-01-02T14:11:37.000Z | 2019-12-20T13:42:13.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2012-2014 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_... | 63.037634 | 270 | 0.729723 | cdaniels |
0790cd3cc6d3d8e540b5c6edfab3d040991bbb5d | 3,585 | hpp | C++ | src/includes/Maths/ForceCausal.hpp | dslogget/CircuitSimulator_MAI_JUK1 | 2da9ffe34d95d6896df6599b187e061df2032711 | [
"MIT"
] | null | null | null | src/includes/Maths/ForceCausal.hpp | dslogget/CircuitSimulator_MAI_JUK1 | 2da9ffe34d95d6896df6599b187e061df2032711 | [
"MIT"
] | null | null | null | src/includes/Maths/ForceCausal.hpp | dslogget/CircuitSimulator_MAI_JUK1 | 2da9ffe34d95d6896df6599b187e061df2032711 | [
"MIT"
] | null | null | null | #ifndef _FORCECAUSAL_HPP_INC_
#define _FORCECAUSAL_HPP_INC_
#include "Maths/dft.hpp"
namespace ForceCausal {
// TODO: Maybe this could be made more efficient by worrying about vectorisation
// of the calculations. I.E storing precomputed F values etc
template<typename T>
std::complex<T>
F(const std::vector<T> & freq... | 28.68 | 85 | 0.560669 | dslogget |
079672670896adf653447a626bec1b765819a017 | 5,386 | hpp | C++ | Testbed/Tests/TimeOfImpact.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | Testbed/Tests/TimeOfImpact.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | Testbed/Tests/TimeOfImpact.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Original work Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* 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 ... | 39.028986 | 129 | 0.609915 | louis-langholtz |
0797c63377af4e5807bd31842e0fdd4c7752da56 | 1,959 | cpp | C++ | bqen.cpp | HaniAmmar/BQen | 3a2aca512008fe39e2d27c948b42056968002f5c | [
"MIT"
] | 1 | 2020-02-19T12:44:34.000Z | 2020-02-19T12:44:34.000Z | bqen.cpp | HaniAmmar/BQen | 3a2aca512008fe39e2d27c948b42056968002f5c | [
"MIT"
] | null | null | null | bqen.cpp | HaniAmmar/BQen | 3a2aca512008fe39e2d27c948b42056968002f5c | [
"MIT"
] | 1 | 2020-02-20T06:22:11.000Z | 2020-02-20T06:22:11.000Z | #include "php_bqen.h"
static const zend_function_entry bqen_functions[] = {
PHP_FE(BQen_Render, arginfo_BQen_Render) PHP_FE_END};
zend_module_entry bqen_module_entry = {STANDARD_MODULE_HEADER,
PHP_BQEN_EXTNAME,
bqen_functions,
... | 35.618182 | 79 | 0.520674 | HaniAmmar |
07a2d4ecaa1c0803fb5ae7bbe78fb00c4e5349fc | 914 | hpp | C++ | asyncnet/post.hpp | Chingyat/asyncnet | e012b64fcf38c9fba15dee52e467d98772926b81 | [
"MIT"
] | null | null | null | asyncnet/post.hpp | Chingyat/asyncnet | e012b64fcf38c9fba15dee52e467d98772926b81 | [
"MIT"
] | null | null | null | asyncnet/post.hpp | Chingyat/asyncnet | e012b64fcf38c9fba15dee52e467d98772926b81 | [
"MIT"
] | 1 | 2020-11-10T05:33:25.000Z | 2020-11-10T05:33:25.000Z | //
// Created by lince on 11/6/20.
//
#ifndef ASYNCNET_POST_HPP
#define ASYNCNET_POST_HPP
#include <asyncnet/async_result.hpp>
#include <asyncnet/executor.hpp>
#include <asyncnet/execution_context.hpp>
namespace asyncnet {
template <typename CompletionToken>
typename async_result<CompletionToken, void()>::result_ty... | 29.483871 | 150 | 0.795405 | Chingyat |
07a751dfc8ff500df9b6e71bc2d612af831f12bc | 1,949 | cpp | C++ | sorting/count-possible-triangles.cpp | Strider-7/code | e096c0d0633b53a07bf3f295cb3bd685b694d4ce | [
"MIT"
] | null | null | null | sorting/count-possible-triangles.cpp | Strider-7/code | e096c0d0633b53a07bf3f295cb3bd685b694d4ce | [
"MIT"
] | null | null | null | sorting/count-possible-triangles.cpp | Strider-7/code | e096c0d0633b53a07bf3f295cb3bd685b694d4ce | [
"MIT"
] | null | null | null |
// C++ implementation of the above approach
#include <bits/stdc++.h>
using namespace std;
void CountTriangles(vector<int> A)
{
int n = A.size();
sort(A.begin(), A.end());
int count = 0;
for (int i = n - 1; i >= 1; i--)
{
int l = 0, r = i - 1;
while (l < r)
... | 21.417582 | 64 | 0.364289 | Strider-7 |
07ab2854e0364627cdc6388b0faf49410706362c | 105 | cpp | C++ | Crash.cpp | Nukecode/C- | 5331bcb651ad34fad7e0150f46a5c6c4250f4691 | [
"MIT"
] | null | null | null | Crash.cpp | Nukecode/C- | 5331bcb651ad34fad7e0150f46a5c6c4250f4691 | [
"MIT"
] | null | null | null | Crash.cpp | Nukecode/C- | 5331bcb651ad34fad7e0150f46a5c6c4250f4691 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int x;
while(x != -1){
x ++;
cout << x;
}
}
| 9.545455 | 20 | 0.533333 | Nukecode |
07b1f8cbde087a5bca97c0f6cd3df21a5ffc660d | 1,493 | cpp | C++ | ermia/dbcore/test-epoch.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | ermia/dbcore/test-epoch.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | ermia/dbcore/test-epoch.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | #include "epoch.h"
#include <pthread.h>
#include <tuple>
#include <utility>
#define LOG(msg, ...) fprintf(stderr, msg "\n", ##__VA_ARGS__)
size_t x = 1;
void
global_init(void* arg)
{
LOG("Initializing");
}
epoch_mgr::tls_storage *
get_tls(void*)
{
static __thread epoch_mgr::tls_storage s;
return &s;
}
v... | 18.207317 | 73 | 0.649029 | sam1016yu |
07b205920ad0d1fab89747cb1eb65b5b1294649e | 2,086 | cpp | C++ | Oblig3Del1/Oblig3Del1/main.cpp | AnetteRana/QtTesting | 9e9c29f8f497a78f2c4587426eba15d8673b3aca | [
"MIT"
] | null | null | null | Oblig3Del1/Oblig3Del1/main.cpp | AnetteRana/QtTesting | 9e9c29f8f497a78f2c4587426eba15d8673b3aca | [
"MIT"
] | null | null | null | Oblig3Del1/Oblig3Del1/main.cpp | AnetteRana/QtTesting | 9e9c29f8f497a78f2c4587426eba15d8673b3aca | [
"MIT"
] | null | null | null | #include <hash_map>
#include <unordered_set>
#include <iostream>
using namespace std;
//hash<int> h;
class MyClass {
public:
int key;
string s;
size_t operator() (const MyClass& t)
{
return t.key % 11;
}
bool operator == (const MyClass& t2) const { return key == t2.key; }
};
// define... | 24.833333 | 76 | 0.621764 | AnetteRana |
07b2cb9a5bb31b8423dc595550a3534e0fd28ba6 | 399 | cpp | C++ | source/World/AAudioComponent.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 19 | 2015-12-19T11:15:57.000Z | 2022-03-09T11:22:11.000Z | source/World/AAudioComponent.cpp | DevilWithin/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 1 | 2017-05-17T09:31:10.000Z | 2017-05-19T17:01:31.000Z | source/World/AAudioComponent.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 3 | 2015-12-14T17:40:26.000Z | 2021-02-25T00:42:42.000Z | #include <Nephilim/World/AAudioComponent.h>
#include <Nephilim/World/World.h>
#include <Nephilim/World/Systems/AudioSystem.h>
#include <Nephilim/Foundation/Logging.h>
NEPHILIM_NS_BEGIN
/// Attempt to play a sound (can fail)
void AAudioComponent::play(const String& filename)
{
if (_audioSystem)
{
_audioSystem->pla... | 22.166667 | 50 | 0.75188 | GrimshawA |
07b823a749b66756e3ac3253c3fc6ca3bda43e98 | 5,601 | cpp | C++ | tests/tests/allow_referrals_tests.cpp | edinar-dev/edinarcoin | d3f11ab57acd745fd407f87999f2ab72378f5194 | [
"MIT"
] | 1 | 2019-08-05T08:09:37.000Z | 2019-08-05T08:09:37.000Z | tests/tests/allow_referrals_tests.cpp | reactivespace/Dex | d5716eab035f993dad3e5b4df664f9ebd32ab3a0 | [
"MIT"
] | null | null | null | tests/tests/allow_referrals_tests.cpp | reactivespace/Dex | d5716eab035f993dad3e5b4df664f9ebd32ab3a0 | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include <graphene/chain/database.hpp>
#include <graphene/chain/exceptions.hpp>
#include <graphene/chain/hardfork.hpp>
#include <graphene/chain/account_object.hpp>
#include <graphene/chain/asset_object.hpp>
#include <graphene/chain/committee_member_object.hpp>
#include <graphene/ch... | 29.171875 | 130 | 0.705588 | edinar-dev |
07bca16c7d29d5185b187539791f48bb5cd81d92 | 1,315 | hpp | C++ | tinysdl/Game/Tetris/Singleton.hpp | silent1603/silent1603-TinySDL | 7b3470b2e343bcec8d4788de2d817b41bec1141d | [
"MIT"
] | null | null | null | tinysdl/Game/Tetris/Singleton.hpp | silent1603/silent1603-TinySDL | 7b3470b2e343bcec8d4788de2d817b41bec1141d | [
"MIT"
] | null | null | null | tinysdl/Game/Tetris/Singleton.hpp | silent1603/silent1603-TinySDL | 7b3470b2e343bcec8d4788de2d817b41bec1141d | [
"MIT"
] | null | null | null | #ifndef SINGLETON_HPP
#define SINGLETON_HPP
#include <iostream>
#include <mutex>
namespace Tetris
{
template <class T>
class Singleton
{
protected:
static T* m_pInstance;
static std::mutex m_mutex;
Singleton();
~Singleton();
public:
Singleton(Singleton &signe... | 20.230769 | 62 | 0.576426 | silent1603 |
07be6b4dcb5412d0b09147219890ba5721df4ca1 | 1,044 | cpp | C++ | CPP/sorting_algos.cpp | shujanpannag/Random_Programs | 77b7a8197e154926411d9939ef1e4effbc6eabfe | [
"MIT"
] | null | null | null | CPP/sorting_algos.cpp | shujanpannag/Random_Programs | 77b7a8197e154926411d9939ef1e4effbc6eabfe | [
"MIT"
] | null | null | null | CPP/sorting_algos.cpp | shujanpannag/Random_Programs | 77b7a8197e154926411d9939ef1e4effbc6eabfe | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
void bs(int ar[], int n){
for(int i=0;i<n-1;i++){
for(int j=0;j<n-1-i;j++){
if(ar[j]>ar[j+1]){
swap(ar[j], ar[j+1]);
}
}
}
}
void ss(int ar[], int n){
int l;
for(int i=0;i<n;i++){
l = i;
for(int j=i;j<n;j++){
if(ar[l]>ar[j]){
l = ... | 15.58209 | 38 | 0.41092 | shujanpannag |
07c13440e26dd0f4bb057b3bfef0a040a05e7d6a | 819 | cpp | C++ | code/c++/10.6.cpp | franklinted/work | e6c44bb1566d6482f26cb5cd6ce907557af8c790 | [
"Apache-2.0"
] | null | null | null | code/c++/10.6.cpp | franklinted/work | e6c44bb1566d6482f26cb5cd6ce907557af8c790 | [
"Apache-2.0"
] | null | null | null | code/c++/10.6.cpp | franklinted/work | e6c44bb1566d6482f26cb5cd6ce907557af8c790 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* File Name: 10.6.cpp
* Author: Franklin
* Mail: stranger_2000@163.com
* Created Time: 2017-09-05
************************************************************************/
#include<iostream>
using namespace std;
class Fish
{
p... | 17.0625 | 87 | 0.499389 | franklinted |
07c55d07af8e7ce920bb87049ab80288197f0e8f | 311 | hpp | C++ | ProcessRGB_AVX2.hpp | w0wtiger/etcpak | df96c334be3d9b71a26a6b7aed3a0425d5c6ecd7 | [
"BSD-3-Clause"
] | 3 | 2017-02-23T09:20:39.000Z | 2017-03-07T04:15:09.000Z | ProcessRGB_AVX2.hpp | w0wtiger/etcpak | df96c334be3d9b71a26a6b7aed3a0425d5c6ecd7 | [
"BSD-3-Clause"
] | 1 | 2018-04-03T05:15:05.000Z | 2018-04-03T05:45:04.000Z | ProcessRGB_AVX2.hpp | metora/etcpak | df96c334be3d9b71a26a6b7aed3a0425d5c6ecd7 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __PROCESSRGB_AVX2_HPP__
#define __PROCESSRGB_AVX2_HPP__
#ifdef __SSE4_1__
#include "Types.hpp"
uint64 ProcessRGB_AVX2( const uint8* src );
uint64 ProcessRGB_4x2_AVX2( const uint8* src );
uint64 ProcessRGB_2x4_AVX2( const uint8* src );
uint64 ProcessRGB_ETC2_AVX2( const uint8* src );
#endif
#endif
| 19.4375 | 48 | 0.794212 | w0wtiger |
07c9cf1dfb49584ef7033919388a5b764658d850 | 2,195 | cpp | C++ | PrimeTimeUpdater/SysTrayIconDlg.cpp | TaylorClark/PrimeTime | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | [
"MIT"
] | null | null | null | PrimeTimeUpdater/SysTrayIconDlg.cpp | TaylorClark/PrimeTime | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | [
"MIT"
] | null | null | null | PrimeTimeUpdater/SysTrayIconDlg.cpp | TaylorClark/PrimeTime | 3c62f6c53e0494146a95be1412273de3cf05bcd2 | [
"MIT"
] | null | null | null | // SysTrayIconDlg.cpp : implementation file
//
#include "stdafx.h"
#include "PrimeTimeUpdater.h"
#include "SysTrayIconDlg.h"
const UINT WM_NOTIFYICON_EVT = WM_USER + 5;
// CSysTrayIconDlg dialog
IMPLEMENT_DYNAMIC(CSysTrayIconDlg, CDialog)
CSysTrayIconDlg::CSysTrayIconDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSysTr... | 24.388889 | 99 | 0.688838 | TaylorClark |
07caf10adb4579a4b89b6bd7d335efa8005c3e6c | 2,490 | cpp | C++ | YorozuyaGSLib/source/GUILD_BATTLE__CReservedGuildSchedulePage.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/GUILD_BATTLE__CReservedGuildSchedulePage.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/GUILD_BATTLE__CReservedGuildSchedulePage.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <GUILD_BATTLE__CReservedGuildSchedulePage.hpp>
START_ATF_NAMESPACE
GUILD_BATTLE::CReservedGuildSchedulePage::CReservedGuildSchedulePage()
{
using org_ptr = void (WINAPIV*)(struct GUILD_BATTLE::CReservedGuildSchedulePage*);
(org_ptr(0x1403cbc30L))(this);
};
void GUILD_BATTLE::C... | 44.464286 | 159 | 0.717671 | lemkova |
07d72b44f7c884d01a8a5c3961b18de8ff753e7b | 11,765 | cpp | C++ | Plutonium/source/pu/ui/ui_Dialog.cpp | zdm65477730/Plutonium | daf73964aabcb140b313d8161d423315d5be8b63 | [
"MIT"
] | null | null | null | Plutonium/source/pu/ui/ui_Dialog.cpp | zdm65477730/Plutonium | daf73964aabcb140b313d8161d423315d5be8b63 | [
"MIT"
] | null | null | null | Plutonium/source/pu/ui/ui_Dialog.cpp | zdm65477730/Plutonium | daf73964aabcb140b313d8161d423315d5be8b63 | [
"MIT"
] | null | null | null | #include <pu/ui/ui_Dialog.hpp>
#include <pu/ui/ui_Application.hpp>
namespace pu::ui {
Dialog::Dialog(const std::string &title, const std::string &content) {
this->title_font_name = GetDefaultFont(DefaultFontSize::Large);
this->cnt_font_name = GetDefaultFont(DefaultFontSize::Medium);
... | 47.06 | 172 | 0.534042 | zdm65477730 |
07d8716d63e09105ea54815cedcb329877619520 | 6,854 | hpp | C++ | include/System/Security/Cryptography/X509Certificates/X509ContentType.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/X509Certificates/X509ContentType.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/X509Certificates/X509ContentType.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "System/Enum.h... | 68.54 | 160 | 0.782463 | RedBrumbler |
07dae4284aaab340f59a1c169e1c6c5970548a1c | 3,783 | cpp | C++ | MultilayerNetwork/DeltaLearning.cpp | uzunb/Artificial-Neural-Network-GUI | 4c7d3898dd24ddef9bff411995700bc167280538 | [
"MIT"
] | null | null | null | MultilayerNetwork/DeltaLearning.cpp | uzunb/Artificial-Neural-Network-GUI | 4c7d3898dd24ddef9bff411995700bc167280538 | [
"MIT"
] | null | null | null | MultilayerNetwork/DeltaLearning.cpp | uzunb/Artificial-Neural-Network-GUI | 4c7d3898dd24ddef9bff411995700bc167280538 | [
"MIT"
] | 1 | 2021-02-08T19:47:40.000Z | 2021-02-08T19:47:40.000Z | #pragma once
#include "DeltaLearning.h"
#include <string> //for memset
DeltaLearning::DeltaLearning()
{
this->setLayerCount(1);
this->setNeuronCount(1);
this->setC(0.1);
delta = 1;
}
DeltaLearning::~DeltaLearning()
{
}
void DeltaLearning::setEta(double muValue)
{
this->eta = muValue;
}
void DeltaLearning::s... | 24.564935 | 122 | 0.61142 | uzunb |
07e0ef0a55b57b35e8efd3b61711e2bfb4b179e3 | 18,598 | cpp | C++ | d3d8/Direct3DDevice8Wrapper.cpp | SuiMachine/The-Thing-Wrapper | 0bf30a25f502683694439b0c8cc6e58aaf1295b1 | [
"MIT"
] | 3 | 2019-03-27T00:37:41.000Z | 2021-08-25T09:03:01.000Z | d3d8/Direct3DDevice8Wrapper.cpp | SuiMachine/The-Thing-Wrapper | 0bf30a25f502683694439b0c8cc6e58aaf1295b1 | [
"MIT"
] | 1 | 2019-03-26T23:38:00.000Z | 2019-03-28T21:33:55.000Z | d3d8/Direct3DDevice8Wrapper.cpp | SuiMachine/The-Thing-Wrapper | 0bf30a25f502683694439b0c8cc6e58aaf1295b1 | [
"MIT"
] | 2 | 2021-04-01T15:38:20.000Z | 2021-04-03T09:37:20.000Z | #include <windows.h>
#include <d3d8.h>
#include "Direct3DDevice8Wrapper.h"
Direct3DDevice8Wrapper::Direct3DDevice8Wrapper(IDirect3DDevice8* *pDirect3DDevice8, D3DPRESENT_PARAMETERS* pPresentationParameters) {
Direct3DDevice8 = *pDirect3DDevice8;
PresentationParameters = new D3DPRESENT_PARAMETERS();
*Pr... | 40.964758 | 257 | 0.812614 | SuiMachine |
07e4282fb04e3f6bdd523338812d6a8c3eea0a1a | 4,495 | hpp | C++ | src/metaSMT/backend/Aiger.hpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 33 | 2015-04-09T14:14:25.000Z | 2022-03-27T08:55:58.000Z | src/metaSMT/backend/Aiger.hpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 28 | 2015-03-13T14:21:33.000Z | 2019-04-02T07:59:34.000Z | src/metaSMT/backend/Aiger.hpp | finnhaedicke/metaSMT | 949245da0bf0f3c042cb589aaea5d015e2ed9e9a | [
"MIT"
] | 9 | 2015-04-22T18:10:51.000Z | 2021-08-06T12:44:12.000Z |
#pragma once
#include "../tags/Logic.hpp"
#include <boost/any.hpp>
extern "C" {
#include <aiger.h>
}
namespace metaSMT
{
class Aiger
{
public:
typedef unsigned result_type;
aiger *aig;
public:
Aiger () : aig (aiger_init()) {}
~Aiger ()
{
aiger_reset ... | 26.28655 | 102 | 0.557953 | finnhaedicke |
07e496fa125288b3a3b1e0594f02859393899d13 | 2,778 | cpp | C++ | src/audio/Channel.cpp | Robograde/Robograde | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | [
"Zlib"
] | 5 | 2015-10-11T10:22:39.000Z | 2019-07-24T10:09:13.000Z | src/audio/Channel.cpp | Robograde/Robograde | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | [
"Zlib"
] | null | null | null | src/audio/Channel.cpp | Robograde/Robograde | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | [
"Zlib"
] | null | null | null | /**************************************************
Zlib Copyright 2015 Jens Stjernkvist
***************************************************/
#include "Channel.h"
namespace Audio
{
//+----------------------------------------------------------------------------+
//|Constructor Default
//\-------------------------------... | 31.213483 | 80 | 0.310295 | Robograde |
2e38c7d3f4ee8b481de325d912175a78881c5623 | 32,238 | cpp | C++ | library/Java/Util/Date/DateTest.cpp | foodtiny/native | 9025d337c50951b2d31eb243d0b5414496171ea5 | [
"Zlib"
] | 19 | 2017-06-10T11:32:06.000Z | 2018-07-07T13:38:50.000Z | library/Java/Util/Date/DateTest.cpp | tinylife-io/native | 9025d337c50951b2d31eb243d0b5414496171ea5 | [
"Zlib"
] | 188 | 2017-06-10T19:45:18.000Z | 2018-07-27T16:52:21.000Z | library/Java/Util/Date/DateTest.cpp | foodtiny/native | 9025d337c50951b2d31eb243d0b5414496171ea5 | [
"Zlib"
] | 8 | 2017-06-23T06:59:16.000Z | 2018-07-19T11:38:24.000Z | /**
* Copyright 2017-2020 Tiny Express Project. 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 condi... | 35.079434 | 99 | 0.65519 | foodtiny |
2e3ca9fdf2e89b8a20e17052daa265f097bb0d65 | 4,964 | cpp | C++ | firmware/src/PowerOutputs.cpp | komakallio/komahub | 29f7b39ea655115aeb65b2613fe636019172c7f5 | [
"MIT"
] | 2 | 2018-09-04T13:26:43.000Z | 2020-11-21T04:04:35.000Z | firmware/src/PowerOutputs.cpp | komakallio/komahub | 29f7b39ea655115aeb65b2613fe636019172c7f5 | [
"MIT"
] | 3 | 2020-02-25T14:32:48.000Z | 2021-09-27T21:43:02.000Z | firmware/src/PowerOutputs.cpp | komakallio/komahub | 29f7b39ea655115aeb65b2613fe636019172c7f5 | [
"MIT"
] | 1 | 2019-05-14T19:28:11.000Z | 2019-05-14T19:28:11.000Z | /*
* Copyright (c) 2016 Jari Saukkonen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publ... | 36.233577 | 110 | 0.682917 | komakallio |
2e4226600bb826a38b2df16b51594ac2a2386de7 | 4,718 | cpp | C++ | src/plugins/blasq/accountsmanager.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/plugins/blasq/accountsmanager.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/blasq/accountsmanager.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 30.836601 | 78 | 0.682493 | MellonQ |
2e4409247a0f767246e5d0f9de9a72bf85480f2e | 1,112 | cpp | C++ | source/Ch17/2.cpp | BenedekNandor/UDProg-Introduction | aa718826490faa4d106d28219755e134b396353d | [
"CC0-1.0"
] | null | null | null | source/Ch17/2.cpp | BenedekNandor/UDProg-Introduction | aa718826490faa4d106d28219755e134b396353d | [
"CC0-1.0"
] | null | null | null | source/Ch17/2.cpp | BenedekNandor/UDProg-Introduction | aa718826490faa4d106d28219755e134b396353d | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(){
int num{7};
int *p1 = #
cout << "value of p1 (address of num): "<< p1 << endl;
cout << "points to (value of num): " << *p1 << endl;
int *p2 = new int[7]{1,2,4,8,16,32,64};
cout << "value of p2 (address of array[0... | 23.166667 | 72 | 0.43705 | BenedekNandor |
2e46663f8bfa18eb3571eaaa1313451be1f79621 | 1,509 | cpp | C++ | 12/advent12.cpp | ComicSansMS/AdventOfCode2018 | 936ebf5dad7a0317ed3db0f58a16d88c4a00eabb | [
"Unlicense"
] | null | null | null | 12/advent12.cpp | ComicSansMS/AdventOfCode2018 | 936ebf5dad7a0317ed3db0f58a16d88c4a00eabb | [
"Unlicense"
] | null | null | null | 12/advent12.cpp | ComicSansMS/AdventOfCode2018 | 936ebf5dad7a0317ed3db0f58a16d88c4a00eabb | [
"Unlicense"
] | null | null | null | #include <plant_spreading.hpp>
#include <fstream>
#include <iostream>
#include <optional>
#include <sstream>
#include <string>
std::optional<std::string> readInput(char const* filename)
{
std::ifstream fin(filename);
if(!fin) {
std::cerr << "Unable to open input file '" << filename << "' for reading."... | 26.473684 | 117 | 0.599072 | ComicSansMS |
2e47ddf08215e567ea074ca2aaebbc74e6c9063c | 4,335 | cpp | C++ | Cylinder.cpp | Enet4/giselle | 6a1f217930afd9002b91678bbd2bdcf7add913c5 | [
"MIT"
] | 2 | 2016-01-22T04:10:02.000Z | 2019-03-14T02:50:26.000Z | Cylinder.cpp | Enet4/giselle | 6a1f217930afd9002b91678bbd2bdcf7add913c5 | [
"MIT"
] | null | null | null | Cylinder.cpp | Enet4/giselle | 6a1f217930afd9002b91678bbd2bdcf7add913c5 | [
"MIT"
] | 3 | 2015-05-29T16:12:55.000Z | 2021-02-02T02:17:02.000Z | /*
* Copyright (C) 2014 Eduardo Pinho (enet4mikeenet AT 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... | 30.314685 | 80 | 0.675433 | Enet4 |
2e4abb9382b4cc91c7989bab8e3967f9913b160f | 751 | hpp | C++ | framework/source/platforms/javascript_v8/field.hpp | xrEngine512/interop | c80711fbbe08f350ad5d8058163770f57ed20b0c | [
"MIT"
] | null | null | null | framework/source/platforms/javascript_v8/field.hpp | xrEngine512/interop | c80711fbbe08f350ad5d8058163770f57ed20b0c | [
"MIT"
] | 4 | 2017-05-31T12:34:10.000Z | 2018-10-13T18:53:03.000Z | framework/source/platforms/javascript_v8/field.hpp | xrEngine512/MosaicFramework | c80711fbbe08f350ad5d8058163770f57ed20b0c | [
"MIT"
] | 1 | 2020-04-23T14:09:11.000Z | 2020-04-23T14:09:11.000Z | #pragma once
#include "declarations.hpp"
#include "property.hpp"
#include <platform.h>
#include <v8.h>
namespace interop::platform_v8 {
class field_t final: public platform_field_t, public property_t {
v8::UniquePersistent<v8::Value> handle;
const module_t & module;
const object_t * object = nullptr;
... | 23.46875 | 70 | 0.697736 | xrEngine512 |
2e4b7be7064ab2fc08d77c3a1ea646c56153e50c | 239 | hpp | C++ | codegen/OpFuse.hpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 6,958 | 2019-05-06T02:38:02.000Z | 2022-03-31T18:08:48.000Z | codegen/OpFuse.hpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 1,775 | 2019-05-06T04:40:19.000Z | 2022-03-30T15:39:24.000Z | codegen/OpFuse.hpp | JujuDel/MNN | 8a82f5c5a7ae37192784c2dbd6dfc8ca8833565a | [
"Apache-2.0"
] | 1,511 | 2019-05-06T02:38:05.000Z | 2022-03-31T16:59:39.000Z | //
// OpFused.hpp
// MNN
//
// Created by MNN on 2020/9/10.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "geometry/GeometryComputerUtils.hpp"
namespace MNN {
bool opFuse(CommandBuffer& cmd);
} // namespace MNN
| 15.933333 | 51 | 0.677824 | JujuDel |
2e4edb5e347b0e9c4e867bd138f9b455adc112b3 | 7,026 | cc | C++ | src/exceptions.cc | graphistry/node-webcl | c9331eeb1f1d53358f5cc6ebd9f0de29300cb42f | [
"BSD-3-Clause"
] | null | null | null | src/exceptions.cc | graphistry/node-webcl | c9331eeb1f1d53358f5cc6ebd9f0de29300cb42f | [
"BSD-3-Clause"
] | null | null | null | src/exceptions.cc | graphistry/node-webcl | c9331eeb1f1d53358f5cc6ebd9f0de29300cb42f | [
"BSD-3-Clause"
] | null | null | null | #include "exceptions.h"
using namespace v8;
namespace webcl {
const char* ErrorDesc(cl_int err)
{
switch (err) {
case CL_SUCCESS: return "Success!";
case CL_DEVICE_NOT_FOUND: return "Device not found.";
case CL_DEVICE_NOT_AVAILABLE: return "Dev... | 46.223684 | 111 | 0.673641 | graphistry |
2e51eeba09215a4fa14359248bf937dfbf89596b | 1,148 | cpp | C++ | src/testSerial.cpp | robzan8/prefixsum | 5be9ae17473a3dd06406f614e6515c31ac68a219 | [
"MIT"
] | 2 | 2017-11-09T11:32:14.000Z | 2021-09-12T20:26:36.000Z | src/testSerial.cpp | robzan8/prefixsum | 5be9ae17473a3dd06406f614e6515c31ac68a219 | [
"MIT"
] | null | null | null | src/testSerial.cpp | robzan8/prefixsum | 5be9ae17473a3dd06406f614e6515c31ac68a219 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
using namespace std;
#include "testUtils.hpp"
#include "prefixSum.hpp"
#include <ff/farm.hpp>
#include <pthread.h>
int threads, len, wait;
Double *in, *out;
// prints the array to stdout, if it's short enough
template<typename Item>
static void printArray(Item a[], i... | 20.872727 | 54 | 0.610627 | robzan8 |
2e54aab2fff29d3d68686b13feae9ccb17a5133a | 117 | hpp | C++ | test/data/error_eof_in_section.hpp | linux-fan-dave/mstch | 8a0ac9aa627b0bda5eec568b4e7382eace98feb6 | [
"MIT"
] | 523 | 2015-04-24T19:45:54.000Z | 2022-03-29T21:19:38.000Z | test/data/error_eof_in_section.hpp | linux-fan-dave/mstch | 8a0ac9aa627b0bda5eec568b4e7382eace98feb6 | [
"MIT"
] | 162 | 2017-03-11T04:32:32.000Z | 2020-12-20T06:45:56.000Z | test/data/error_eof_in_section.hpp | linux-fan-dave/mstch | 8a0ac9aa627b0bda5eec568b4e7382eace98feb6 | [
"MIT"
] | 103 | 2015-09-03T11:38:20.000Z | 2022-03-14T13:13:44.000Z | const auto error_eof_in_section_data = mstch::map{
{"hello", mstch::array{std::string{"a"}, std::string{"b"}}}
}; | 39 | 63 | 0.65812 | linux-fan-dave |
2e59b50f2a4903d3a19529532eb530ec416ab60f | 11,996 | hpp | C++ | src/Utils/tvector.hpp | bab2min/g-dmr | 4b8a36e9ef3f4d33da1fe31c785d38ec3bbca6c1 | [
"MIT"
] | 2 | 2020-05-07T01:57:10.000Z | 2020-09-21T06:42:02.000Z | src/Utils/tvector.hpp | adbmd/tomotopy | 0ef8c6f3afecf9b610d39defe39e6c50e293682a | [
"MIT"
] | null | null | null | src/Utils/tvector.hpp | adbmd/tomotopy | 0ef8c6f3afecf9b610d39defe39e6c50e293682a | [
"MIT"
] | 1 | 2020-09-27T08:07:49.000Z | 2020-09-27T08:07:49.000Z | #pragma once
#include <algorithm>
#include <cstring>
namespace tomoto
{
/**
tvector : std::vector-like container which can handle non-owning std::array as well as traditional std::vector function
*/
template <typename T, class _Alloc = std::allocator<T>>
class tvector
{
public:
typedef T ... | 22.092081 | 132 | 0.578193 | bab2min |
2e5c3183be9949ceb6717f00815ac1ebe9beb62b | 949 | cpp | C++ | HackerRank/Stacks and Queues/queueWithTwoStacks.cpp | nullpointxr/HackerRankSolutions | 052c9ab66bfd66268b81d8e7888c3d7504ab988f | [
"Apache-2.0"
] | 1 | 2020-10-25T16:12:09.000Z | 2020-10-25T16:12:09.000Z | HackerRank/Stacks and Queues/queueWithTwoStacks.cpp | abhishek-sankar/Competitive-Coding-Solutions | 052c9ab66bfd66268b81d8e7888c3d7504ab988f | [
"Apache-2.0"
] | 3 | 2020-11-12T05:44:24.000Z | 2021-04-05T08:09:01.000Z | HackerRank/Stacks and Queues/queueWithTwoStacks.cpp | nullpointxr/HackerRankSolutions | 052c9ab66bfd66268b81d8e7888c3d7504ab988f | [
"Apache-2.0"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include "stack"
using namespace std;
struct Queue{
stack<int> s1, s2;
int front = -1;
void enQueue(int data){
s1.push(data);
}
void deQueue(){
if(s1.empty() && s2.empty()){
fron... | 19.770833 | 79 | 0.44784 | nullpointxr |
2e5c5b5a3a6e05b8917c127933bf021b8e346e69 | 493 | cpp | C++ | USACO Bronze/December 2018 Contest/list.cpp | Alecs-Li/Competitive-Programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | 1 | 2021-07-06T02:14:03.000Z | 2021-07-06T02:14:03.000Z | USACO Bronze/December 2018 Contest/list.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | USACO Bronze/December 2018 Contest/list.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
int main() {
ifstream fin ("blist.in");
ofstream fout ("blist.out");
int n, ans = 0, curr; fin >> n;
int start[n], end[n], buck[n];
for(int i=0; i<n; i++){
fin >> start[i] >> end[i] >> buck[i];
}
for(int clock=0; clock<=1000; clock++){
... | 19.72 | 47 | 0.501014 | Alecs-Li |
2e5d2c7713817179cc5f354cc3f8d00505e0cc4c | 25 | cpp | C++ | Source/Engine/Graphics/BayerDither.cpp | flygod1159/Kaguya | 47dbb3940110ed490d0b70eed31383cfc82bc8df | [
"MIT"
] | 1 | 2022-01-13T16:32:40.000Z | 2022-01-13T16:32:40.000Z | Source/Engine/Graphics/BayerDither.cpp | flygod1159/Kaguya | 47dbb3940110ed490d0b70eed31383cfc82bc8df | [
"MIT"
] | null | null | null | Source/Engine/Graphics/BayerDither.cpp | flygod1159/Kaguya | 47dbb3940110ed490d0b70eed31383cfc82bc8df | [
"MIT"
] | null | null | null | #include "BayerDither.h"
| 12.5 | 24 | 0.76 | flygod1159 |
2e5d7baffe63c2c0e1d76da5105872aefe83aaa4 | 555 | cpp | C++ | OVFP426/Plugins/OVFPPlugin/Intermediate/Build/Win64/UE4Editor/Development/OVFPPlugin/Module.OVFPPlugin.gen.cpp | ACaesuraIsStillMusic/Open-Virtual-Film-Project | f4cfb901da32d8101b7635aa5caed3fc075d6dd7 | [
"Unlicense",
"MIT"
] | 15 | 2020-12-11T17:00:02.000Z | 2022-03-08T04:43:56.000Z | OVFP426/Plugins/OVFPPlugin/Intermediate/Build/Win64/UE4Editor/Development/OVFPPlugin/Module.OVFPPlugin.gen.cpp | ACaesuraIsStillMusic/Open-Virtual-Film-Project | f4cfb901da32d8101b7635aa5caed3fc075d6dd7 | [
"Unlicense",
"MIT"
] | null | null | null | OVFP426/Plugins/OVFPPlugin/Intermediate/Build/Win64/UE4Editor/Development/OVFPPlugin/Module.OVFPPlugin.gen.cpp | ACaesuraIsStillMusic/Open-Virtual-Film-Project | f4cfb901da32d8101b7635aa5caed3fc075d6dd7 | [
"Unlicense",
"MIT"
] | 2 | 2020-12-10T22:54:05.000Z | 2021-07-22T10:25:22.000Z | // This file is automatically generated at compile-time to include some subset of the user-created cpp files.
#include "D:/Github/Open-Virtual-Film-Project/OVFP426/Plugins/OVFPPlugin/Intermediate/Build/Win64/UE4Editor/Inc/OVFPPlugin/OVFPPlugin.init.gen.cpp"
#include "D:/Github/Open-Virtual-Film-Project/OVFP426/Plugins/... | 111 | 151 | 0.834234 | ACaesuraIsStillMusic |
2e619425cbabc63dcc168b8f1afbb5a3c4a814f8 | 2,339 | hpp | C++ | src/Json/JsonNode.hpp | boudra/darkmatter | 807ef3dc0d10e3ddff75fb4cf965acfa86423624 | [
"MIT"
] | 7 | 2015-07-29T15:04:56.000Z | 2021-07-23T13:59:30.000Z | src/Json/JsonNode.hpp | boudra/darkmatter | 807ef3dc0d10e3ddff75fb4cf965acfa86423624 | [
"MIT"
] | null | null | null | src/Json/JsonNode.hpp | boudra/darkmatter | 807ef3dc0d10e3ddff75fb4cf965acfa86423624 | [
"MIT"
] | 1 | 2015-08-27T14:31:22.000Z | 2015-08-27T14:31:22.000Z | #ifndef JSON_NODE_HPP
#define JSON_NODE_HPP
#include "../TypeId/Any.hpp"
#include <map>
#include <iostream>
namespace dm {
class JsonNode {
public:
typedef std::map<std::string, JsonNode> JsonNodes;
enum Type { Object, Array, Value };
// Constructors
JsonNode() : m_type(Type:... | 23.867347 | 81 | 0.591278 | boudra |
2e63ff6b2ab35048cb34a973783d5005f8166229 | 6,542 | cpp | C++ | src/client/render/HexaMap.cpp | towzeur/PLT_2021 | c2598b387929f76ec8766e4e4741efc1a0c0379d | [
"MIT"
] | 4 | 2020-10-06T12:48:22.000Z | 2020-12-09T16:08:47.000Z | src/client/render/HexaMap.cpp | towzeur/PLT_2021 | c2598b387929f76ec8766e4e4741efc1a0c0379d | [
"MIT"
] | 1 | 2020-11-24T15:41:11.000Z | 2020-11-24T15:41:11.000Z | src/client/render/HexaMap.cpp | towzeur/PLT_2021 | c2598b387929f76ec8766e4e4741efc1a0c0379d | [
"MIT"
] | 2 | 2020-11-19T20:29:14.000Z | 2020-12-02T12:55:58.000Z | #include "HexaMap.h"
#include <iostream>
#include <math.h> // sqrt
using namespace render;
HexaMap::HexaMap() {}
HexaMap::HexaMap(RenderConfig *conf) : conf(conf) {
// Set-up
// 8 : double quad 2*4
m_vertices.setPrimitiveType(sf::Quads);
m_vertices.resize(8 * conf->hexamap_n_row * conf->hexamap_n_col);
... | 28.819383 | 80 | 0.571843 | towzeur |
2e6b028db2a6e599b9773e6c7f20ccdd905b96df | 327 | cpp | C++ | libs/core/src/Stream.cpp | amaiorano/vectrexy | b68337f6451c840353bc4571c14ee3b3b63d3029 | [
"MIT"
] | 45 | 2016-04-10T04:10:50.000Z | 2021-10-14T21:28:13.000Z | libs/core/src/Stream.cpp | amaiorano/vectrexy | b68337f6451c840353bc4571c14ee3b3b63d3029 | [
"MIT"
] | 4 | 2017-11-24T01:58:32.000Z | 2021-02-15T02:07:26.000Z | libs/core/src/Stream.cpp | amaiorano/vectrexy | b68337f6451c840353bc4571c14ee3b3b63d3029 | [
"MIT"
] | 10 | 2016-04-10T04:10:53.000Z | 2021-11-14T08:41:23.000Z | #include "core/Stream.h"
void IStream::Printf(const char* format, ...) {
static char buffer[2048];
va_list args;
va_start(args, format);
int bytesWritten = vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
assert(bytesWritten < sizeof(buffer));
WriteImpl(buffer, bytesWritten,... | 23.357143 | 71 | 0.669725 | amaiorano |
2e6cbc910f4cf15ae48d2513725b184b5164d8ac | 86,163 | cc | C++ | tests/test_cat_socket.cc | dixyes/libcat | e4abe74b77ecbc1e036e44a092f7c8a8f8bcd7d0 | [
"Apache-2.0"
] | 53 | 2020-10-14T04:32:07.000Z | 2022-03-29T07:48:16.000Z | tests/test_cat_socket.cc | dixyes/libcat | e4abe74b77ecbc1e036e44a092f7c8a8f8bcd7d0 | [
"Apache-2.0"
] | 10 | 2020-10-26T07:33:34.000Z | 2022-03-15T06:23:34.000Z | tests/test_cat_socket.cc | dixyes/libcat | e4abe74b77ecbc1e036e44a092f7c8a8f8bcd7d0 | [
"Apache-2.0"
] | 14 | 2019-09-16T09:44:45.000Z | 2022-03-29T07:48:19.000Z | /*
+--------------------------------------------------------------------------+
| libcat |
+--------------------------------------------------------------------------+
| Licensed under the Apache License, Version 2.0 (the "License"); |
... | 38.448461 | 204 | 0.698989 | dixyes |
2e7031b413c0536f5651370bb2b9673579452a45 | 1,698 | cpp | C++ | Homework3/BehaviorSimFramework/src/BehaviorDoc.cpp | Zenologos/IDS6938-SimulationTechniques | b3630852b2edb3ec4e176b26f0de56b77b460a2a | [
"Apache-2.0"
] | null | null | null | Homework3/BehaviorSimFramework/src/BehaviorDoc.cpp | Zenologos/IDS6938-SimulationTechniques | b3630852b2edb3ec4e176b26f0de56b77b460a2a | [
"Apache-2.0"
] | null | null | null | Homework3/BehaviorSimFramework/src/BehaviorDoc.cpp | Zenologos/IDS6938-SimulationTechniques | b3630852b2edb3ec4e176b26f0de56b77b460a2a | [
"Apache-2.0"
] | null | null | null | // BehaviorDoc.cpp : implementation of the CBehaviorDoc class
//
#include "stdafx.h"
#include "Behavior.h"
#include "BehaviorDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBehavi... | 19.976471 | 77 | 0.564193 | Zenologos |
2e78cc834dcd68f954bfcc141adfbf9dff33abf8 | 593 | cpp | C++ | SimpleCalculator/ArcsinExpression.cpp | KeNorizon/SimpleCalculator | 3e0cdc9b96d9474f4ff0279612fbd7bbb933306a | [
"BSD-2-Clause"
] | 1 | 2019-10-30T16:16:50.000Z | 2019-10-30T16:16:50.000Z | SimpleCalculator/ArcsinExpression.cpp | KeNorizon/SimpleCalculator | 3e0cdc9b96d9474f4ff0279612fbd7bbb933306a | [
"BSD-2-Clause"
] | null | null | null | SimpleCalculator/ArcsinExpression.cpp | KeNorizon/SimpleCalculator | 3e0cdc9b96d9474f4ff0279612fbd7bbb933306a | [
"BSD-2-Clause"
] | null | null | null | #include "ArcsinExpression.h"
#include "Util.h"
const char *ArcsinExpression::FuncName = "arcsin";
ArcsinExpression::ArcsinExpression(ExpressionBase * parent) : SimpleFuncExpression(parent)
{
}
ComputeResult ArcsinExpression::computeValue()
{
ComputeResult left = getChild(0)->computeValue();
if (!left.good())
re... | 23.72 | 90 | 0.747049 | KeNorizon |
2e7a628de536c66ec9b5ccd4a5f853d5c99ed565 | 879 | cpp | C++ | jixun/hitwh1meiju/C.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | jixun/hitwh1meiju/C.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | jixun/hitwh1meiju/C.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 200020
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
int transform(int x) {
int ans = 0;
while (... | 18.3125 | 61 | 0.476678 | swwind |
2e7f4b937bfb9ca5bb04305b1e30a52aa543b9e5 | 120 | cpp | C++ | C++/count-of-matches-in-tournament.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/count-of-matches-in-tournament.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/count-of-matches-in-tournament.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(1)
// Space: O(1)
class Solution {
public:
int numberOfMatches(int n) {
return n - 1;
}
};
| 12 | 32 | 0.516667 | Priyansh2 |
2e7fb208c2bdcb8d9306fbc6e7bfdda228870b28 | 11,043 | hpp | C++ | src/mlpack/methods/ann/layer/not_adapted/gru_impl.hpp | shubham1206agra/mlpack | 2c656fcba850134f3f5d1dd1a6a1a15743aa7661 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/ann/layer/not_adapted/gru_impl.hpp | shubham1206agra/mlpack | 2c656fcba850134f3f5d1dd1a6a1a15743aa7661 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/ann/layer/not_adapted/gru_impl.hpp | shubham1206agra/mlpack | 2c656fcba850134f3f5d1dd1a6a1a15743aa7661 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | /**
* @file methods/ann/layer/gru_impl.hpp
* @author Sumedh Ghaisas
*
* Implementation of the GRU class, which implements a gru network
* layer.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-claus... | 29.845946 | 80 | 0.690664 | shubham1206agra |
2e7fed8c5edcdcfcfe6c83d230905baa31d42fe3 | 6,112 | cc | C++ | source/onitama/Agent.cc | nuttykomu/onitama | 35f0768b6b58ff9677b71961165a2df5cb032d07 | [
"MIT"
] | null | null | null | source/onitama/Agent.cc | nuttykomu/onitama | 35f0768b6b58ff9677b71961165a2df5cb032d07 | [
"MIT"
] | null | null | null | source/onitama/Agent.cc | nuttykomu/onitama | 35f0768b6b58ff9677b71961165a2df5cb032d07 | [
"MIT"
] | 1 | 2018-06-22T16:54:48.000Z | 2018-06-22T16:54:48.000Z | #include <cmath>
#include <ctime>
#include <iostream>
#include <limits>
#include <thread>
#include "Agent.h"
#include "Random.h"
Agent::Agent(State state, Color color)
: root_state(state), color(color) {
for (int i = 0; i < NUMBER_OF_THREADS; i++) {
// initialize root
this->root_node[i] = new ... | 33.955556 | 86 | 0.537958 | nuttykomu |
2e8276b385da4aeff079ecbab0663ba5d760d65e | 2,627 | cpp | C++ | src/liblanelet/Attribute.cpp | brand666/liblanelet | 252e436ae9f705f8004d86b504be6a5f0c8bcc19 | [
"BSD-3-Clause"
] | 24 | 2017-11-29T12:44:44.000Z | 2022-03-06T12:45:52.000Z | src/liblanelet/Attribute.cpp | brand666/liblanelet | 252e436ae9f705f8004d86b504be6a5f0c8bcc19 | [
"BSD-3-Clause"
] | 3 | 2018-11-02T09:21:27.000Z | 2020-03-16T20:03:17.000Z | src/liblanelet/Attribute.cpp | brand666/liblanelet | 252e436ae9f705f8004d86b504be6a5f0c8bcc19 | [
"BSD-3-Clause"
] | 12 | 2017-10-26T08:42:06.000Z | 2022-03-06T12:45:52.000Z | // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
// -- BEGIN LICENSE BLOCK ----------------------------------------------
// Copyright (c) 2018, FZI Forschungszentrum Informatik
//
// Redistribution and use in source and binary forms, with or without modification, are permitted
// provided t... | 39.80303 | 100 | 0.682528 | brand666 |
2e84a56ae602391160384f687e83e437b5054e31 | 4,684 | hpp | C++ | src/skylines_engine/error/error_handler.hpp | gggprojects/skylines | 1b0d204f1fbb8e24af026723ba9887988798c974 | [
"MIT"
] | null | null | null | src/skylines_engine/error/error_handler.hpp | gggprojects/skylines | 1b0d204f1fbb8e24af026723ba9887988798c974 | [
"MIT"
] | null | null | null | src/skylines_engine/error/error_handler.hpp | gggprojects/skylines | 1b0d204f1fbb8e24af026723ba9887988798c974 | [
"MIT"
] | 1 | 2018-08-31T15:53:36.000Z | 2018-08-31T15:53:36.000Z | #ifndef SKYLINES_ERROR_HANDLER_HPP
#define SKYLINES_ERROR_HANDLER_HPP
#include <string>
#include <memory>
#include <unordered_map>
#include <string.h>
#pragma warning(push, 0)
#include <cuda_runtime.h>
#pragma warning(pop)
#include "export_import.hpp"
#include "error/error_descriptor.hpp"
#include "error/thread_erro... | 36.59375 | 142 | 0.611443 | gggprojects |
2e85613d3b52faabe5815d2596e1b1ee9db09f0d | 313 | hh | C++ | src/Zynga/Framework/Testing/TestCase/V2/Test/Mock/RiggedGetStatus.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/Testing/TestCase/V2/Test/Mock/RiggedGetStatus.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/Testing/TestCase/V2/Test/Mock/RiggedGetStatus.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\Testing\TestCase\V2\Test\Mock;
use Zynga\Framework\Testing\TestCase\V2\Base;
use \ReflectionClass;
class RiggedGetStatus extends Base {
public function hideLogs(): bool {
return false;
}
public function testOk(): void {
$this->assertTrue(true);
}
}
| 15.65 | 56 | 0.709265 | ssintzz |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.