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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11a57fafbdb38844f8d8e26d28cfe82dca09aabd | 1,795 | cpp | C++ | Documents/RacimoAire/Libreria/LogsSystem/adminlogssystem.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/Libreria/LogsSystem/adminlogssystem.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | Documents/RacimoAire/Libreria/LogsSystem/adminlogssystem.cpp | JoseSalamancaCoy/RACIMO_AIRE | 628d6ff184a30af0efd25bff675b0006500d4ba2 | [
"MIT"
] | null | null | null | #include "adminlogssystem.h"
AdminLogsSystem::AdminLogsSystem(QObject *parent): QObject(parent) {
logsSystem = new LogsSystem;
logsSystem->moveToThread(&logsSystemThread);
connect(&logsSystemThread, &QThread::finished, logsSystem, &QObject::deleteLater);
connect(this, &AdminLogsSystem::operate, logs... | 26.397059 | 99 | 0.764345 | JoseSalamancaCoy |
11a96bea30f234550c1e85ed2eecb7fd4303fe4b | 11,613 | cpp | C++ | src/base/event/Brent.cpp | ddj116/gmat | 39673be967d856f14616462fb6473b27b21b149f | [
"NASA-1.3"
] | 1 | 2020-05-16T16:58:21.000Z | 2020-05-16T16:58:21.000Z | src/base/event/Brent.cpp | ddj116/gmat | 39673be967d856f14616462fb6473b27b21b149f | [
"NASA-1.3"
] | null | null | null | src/base/event/Brent.cpp | ddj116/gmat | 39673be967d856f14616462fb6473b27b21b149f | [
"NASA-1.3"
] | null | null | null | //$Id: Brent.cpp 10052 2011-12-06 22:56:03Z djcinsb $
//------------------------------------------------------------------------------
// Brent
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002-2011... | 31.557065 | 83 | 0.473607 | ddj116 |
11a97bc5e1c85f39e68e8dc81a1208fca151da56 | 2,913 | hpp | C++ | src/include/ulib/stream/ITextStream.hpp | vividos/UlibCpp | d96348844348a00523b7742b3e7a5c9764613877 | [
"BSD-2-Clause"
] | null | null | null | src/include/ulib/stream/ITextStream.hpp | vividos/UlibCpp | d96348844348a00523b7742b3e7a5c9764613877 | [
"BSD-2-Clause"
] | null | null | null | src/include/ulib/stream/ITextStream.hpp | vividos/UlibCpp | d96348844348a00523b7742b3e7a5c9764613877 | [
"BSD-2-Clause"
] | null | null | null | //
// ulib - a collection of useful classes
// Copyright (C) 2007,2008,2012,2014,2017,2020 Michael Fink
//
/// \file ITextStream.hpp text stream interface
//
#pragma once
namespace Stream
{
/// text stream interface
class ITextStream
{
public:
/// text encoding that is possible for text files
e... | 28.558824 | 115 | 0.626502 | vividos |
11acb9ab7d7b558cb8d1d57f2fd725893e1f16e0 | 2,236 | cpp | C++ | examples/particleSim/Particle.cpp | nitro44x/mirror | 545e609cd260579ec132f91788921ef4f9fa2049 | [
"BSD-3-Clause"
] | null | null | null | examples/particleSim/Particle.cpp | nitro44x/mirror | 545e609cd260579ec132f91788921ef4f9fa2049 | [
"BSD-3-Clause"
] | null | null | null | examples/particleSim/Particle.cpp | nitro44x/mirror | 545e609cd260579ec132f91788921ef4f9fa2049 | [
"BSD-3-Clause"
] | null | null | null | #include "Particle.hpp"
#include <device_launch_parameters.h>
#include <mirror/simt_macros.hpp>
#include <mirror/simt_allocator.hpp>
#include <mirror/simt_vector.hpp>
#include <mirror/simt_serialization.hpp>
#include <mirror/simt_utilities.hpp>
ParticleSquare::ParticleSquare(double L) : m_L(L) {}
ParticleSquare::~P... | 30.216216 | 110 | 0.753131 | nitro44x |
11adc36baae639ef2d1a38bdb34760937cd7c580 | 1,959 | cpp | C++ | ECS/ECS/ECS.cpp | oWASDo/ECS | 4131269889e13be7990e250b8b9376b9a16229a3 | [
"MIT"
] | null | null | null | ECS/ECS/ECS.cpp | oWASDo/ECS | 4131269889e13be7990e250b8b9376b9a16229a3 | [
"MIT"
] | null | null | null | ECS/ECS/ECS.cpp | oWASDo/ECS | 4131269889e13be7990e250b8b9376b9a16229a3 | [
"MIT"
] | null | null | null | // ECS.cpp : Questo file contiene la funzione 'main', in cui inizia e termina l'esecuzione del programma.
//
#include <iostream>
#include <vector>
#include <time.h>
#include "Heder/ECS_Context.h"
#include "Heder/Component.h"
class ClassTest
{
public:
ClassTest();
~ClassTest();
void Adding() {
inttt += 5;
}
p... | 18.481132 | 105 | 0.654416 | oWASDo |
11aea2549bf0a5d545908508a65fe7247dcfbdcb | 11,430 | cpp | C++ | src/platform/DBlmdb.cpp | mygirl8893/evo | c90f69ad6132c426042749ff3fe4174d22aa63b2 | [
"MIT"
] | 1 | 2019-05-20T01:00:40.000Z | 2019-05-20T01:00:40.000Z | src/platform/DBlmdb.cpp | mygirl8893/evo | c90f69ad6132c426042749ff3fe4174d22aa63b2 | [
"MIT"
] | 4 | 2018-05-07T07:15:53.000Z | 2018-06-01T19:35:46.000Z | src/platform/DBlmdb.cpp | mygirl8893/evo | c90f69ad6132c426042749ff3fe4174d22aa63b2 | [
"MIT"
] | 10 | 2018-05-09T10:45:07.000Z | 2020-01-11T17:21:28.000Z | #include "DBlmdb.hpp"
#include <boost/lexical_cast.hpp>
#include <iostream>
#include "PathTools.hpp"
using namespace platform;
#ifdef _WIN32
#pragma comment(lib, "ntdll.lib") // dependency of lmdb, here to avoid linker arguments
#endif
static void lmdb_check(int rc, const char *msg) {
if (rc != MDB_SUC... | 35.830721 | 117 | 0.626859 | mygirl8893 |
11afd35840a70a13c2cda758bb4e90d370e3391a | 1,578 | cpp | C++ | src/AdcNode.cpp | elbowz/yahnc | 5ffe8adcad19f25b31a252f330fe8e29d1891b4f | [
"MIT"
] | null | null | null | src/AdcNode.cpp | elbowz/yahnc | 5ffe8adcad19f25b31a252f330fe8e29d1891b4f | [
"MIT"
] | null | null | null | src/AdcNode.cpp | elbowz/yahnc | 5ffe8adcad19f25b31a252f330fe8e29d1891b4f | [
"MIT"
] | null | null | null | #include "AdcNode.hpp"
extern int __get_adc_mode();
/**
* TODO:
* * manage status topic: isnan(ESP.getVcc()) => setProperty(cStatusTopic).send("error")
* note: check what happen when no wire is connected to ADC pin
*/
AdcNode::AdcNode(const char *id,
const char *name,
uint32_t... | 27.684211 | 116 | 0.63815 | elbowz |
11b034306b11b95efa9bcd9811c5145ad39314a5 | 5,049 | cpp | C++ | 3rdparty/stout/tests/lambda_tests.cpp | sagar8192/mesos | a018cf33d5f06f5a9f9099a4c74b2daea00bd0f7 | [
"Apache-2.0"
] | null | null | null | 3rdparty/stout/tests/lambda_tests.cpp | sagar8192/mesos | a018cf33d5f06f5a9f9099a4c74b2daea00bd0f7 | [
"Apache-2.0"
] | null | null | null | 3rdparty/stout/tests/lambda_tests.cpp | sagar8192/mesos | a018cf33d5f06f5a9f9099a4c74b2daea00bd0f7 | [
"Apache-2.0"
] | null | null | null | // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed ... | 22.44 | 76 | 0.614379 | sagar8192 |
11b81cd2f6dc35ce782342449966f5893f99bdb2 | 1,330 | cpp | C++ | tests/network_common.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | tests/network_common.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | tests/network_common.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | #include "network_common.h"
#include <server_lib/platform_config.h>
#if defined(SERVER_LIB_PLATFORM_LINUX)
#include <sys/socket.h>
#include <netinet/ip.h>
#include <sys/types.h>
#endif
namespace server_lib {
namespace tests {
uint16_t basic_network_fixture::get_free_port()
{
int result = 0;
#if defi... | 27.142857 | 90 | 0.566917 | Andrei-Masilevich |
11b84455382fe2f87c88031e8a87b9b3cd4897ac | 549 | cpp | C++ | etc/cpsco2019-s1/e/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | 3 | 2019-06-25T06:17:38.000Z | 2019-07-13T15:18:51.000Z | etc/cpsco2019-s1/e/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | etc/cpsco2019-s1/e/main.cpp | wotsushi/competitive-programming | 17ec8fd5e1c23aee626aee70b1c0da8d7f8b8c86 | [
"MIT"
] | null | null | null | #include "template.hpp"
int main() {
ll(N, Q);
vll(A, N);
vll(L, R, X, Q);
set<ll> S;
each(a, A) {
if (S.count(a)) {
S.erase(a);
} else {
S.insert(a);
}
}
rep(i, Q) {
ll ans = 0;
ll c = 0;
vi D;
for (auto j = S.lower_bound(L[i]); j != S.end() and *j <= R[i]; ++j) {... | 15.685714 | 74 | 0.369763 | wotsushi |
11b9d47dd38ffb40e49306220e5122fc23a174a0 | 1,016 | hpp | C++ | src/View/HeatMapView.hpp | dlasalle/matrixinspector | 7fc1b0065c2ea2cd01de58a96c2ffa99a9c2659e | [
"MIT"
] | 2 | 2018-02-04T21:10:14.000Z | 2018-02-13T15:24:28.000Z | src/View/HeatMapView.hpp | dlasalle/matrixinspector | 7fc1b0065c2ea2cd01de58a96c2ffa99a9c2659e | [
"MIT"
] | 15 | 2017-09-05T20:55:04.000Z | 2018-12-21T09:12:21.000Z | src/View/HeatMapView.hpp | dlasalle/matrixinspector | 7fc1b0065c2ea2cd01de58a96c2ffa99a9c2659e | [
"MIT"
] | null | null | null | /**
* @file HeatMapView.hpp
* @brief The HeatMapView class.
* @author Dominique LaSalle <dominique@solidlake.com>
* Copyright 2017
* @version 1
*/
#ifndef MATRIXINSPECTOR_VIEW_HEATMAPVIEW_HPP
#define MATRIXINSPECTOR_VIEW_HEATMAPVIEW_HPP
#include "View.hpp"
#include "HeatMap.hpp"
namespace MatrixInspe... | 10.924731 | 54 | 0.642717 | dlasalle |
11c856e5b8f6ef982b1e821a187aca4b82ca19d3 | 3,677 | cpp | C++ | Plugins/Mipf_Plugin_ASM/GenerateTrainingSetView.cpp | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-04-13T06:01:49.000Z | 2019-12-04T07:23:53.000Z | Plugins/Mipf_Plugin_ASM/GenerateTrainingSetView.cpp | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-10-27T02:00:44.000Z | 2017-10-27T02:00:44.000Z | Plugins/Mipf_Plugin_ASM/GenerateTrainingSetView.cpp | linson7017/MIPF | adf982ae5de69fca9d6599fbbbd4ca30f4ae9767 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-09-06T01:59:07.000Z | 2019-12-04T07:23:54.000Z | #include "GenerateTrainingSetView.h"
//qt
#include <QFileDialog>
//qf
#include "iqf_main.h"
//mipf
#include "MitkMain/IQF_MitkIO.h"
#include "MitkMain/IQF_MitkDataManager.h"
#include "ITKImageTypeDef.h"
//itk
#include <itkImage.h>
#include <itkChangeInformationImageFilter.h>
//mitk
#include "mitkImage.h"
#include ... | 30.139344 | 125 | 0.689693 | linson7017 |
11c990bba3548437b8697512c79b1e1ee915992f | 310 | cpp | C++ | imposc-service/imposc-cpp/charts/src/charts.cpp | FelixDux/imposccpp | c8c612df87a53ddaca6260816c913ade44adbe6d | [
"MIT"
] | null | null | null | imposc-service/imposc-cpp/charts/src/charts.cpp | FelixDux/imposccpp | c8c612df87a53ddaca6260816c913ade44adbe6d | [
"MIT"
] | 1 | 2021-03-22T17:27:17.000Z | 2021-07-02T07:31:39.000Z | imposc-service/imposc-cpp/charts/src/charts.cpp | FelixDux/imposccpp | c8c612df87a53ddaca6260816c913ade44adbe6d | [
"MIT"
] | null | null | null | #include "charts.hpp"
#include "forcing_phase.hpp"
#include "gnuplot_if.hpp"
using namespace dynamics;
namespace charts
{
void plot_impacts(const std::vector<Impact> &impacts, const std::string &outfile, const Parameters ¶ms)
{
do_plot( {prepare_plot(impacts, "", "dots")}, outfile, params);
}
}
| 20.666667 | 108 | 0.722581 | FelixDux |
11c9f91d07c85dee71b7c0636643cac4ca80b346 | 14,275 | cpp | C++ | src/kits/midi2/MidiRosterLooper.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | 3 | 2018-05-21T15:32:32.000Z | 2019-03-21T13:34:55.000Z | src/kits/midi2/MidiRosterLooper.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/kits/midi2/MidiRosterLooper.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | /*
* Copyright 2006, Haiku.
*
* Copyright (c) 2002-2004 Matthijs Hollemans
* Distributed under the terms of the MIT License.
*
* Authors:
* Matthijs Hollemans
*/
#include <kits/debug/Debug.h>
#include <MidiConsumer.h>
#include <MidiProducer.h>
#include <MidiRoster.h>
#include <MidiRosterLooper.h>
#include <pr... | 22.987118 | 76 | 0.654431 | stasinek |
11cd6fce1f1f0eeca2ec14e83242e44739043a7e | 5,574 | cpp | C++ | src/ace/ACE_wrappers/ACEXML/examples/SAXPrint/SAXPrint_Handler.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 8 | 2017-06-05T08:56:27.000Z | 2020-04-08T16:50:11.000Z | src/ace/ACE_wrappers/ACEXML/examples/SAXPrint/SAXPrint_Handler.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | null | null | null | src/ace/ACE_wrappers/ACEXML/examples/SAXPrint/SAXPrint_Handler.cpp | wfnex/OpenBRAS | b8c2cd836ae85d5307f7f5ca87573b964342bb49 | [
"BSD-3-Clause"
] | 17 | 2017-06-05T08:54:27.000Z | 2021-08-29T14:19:12.000Z | // -*- C++ -*-
#include "SAXPrint_Handler.h"
#include "ace/ACE.h"
#include "ace/Log_Msg.h"
#if !defined (__ACEXML_INLINE__)
# include "SAXPrint_Handler.inl"
#endif /* __ACEXML_INLINE__ */
ACEXML_SAXPrint_Handler::ACEXML_SAXPrint_Handler (const ACEXML_Char* filename)
: indent_ (0), fileName_(ACE::strnew (filename)... | 25.568807 | 101 | 0.544492 | wfnex |
11cdb8d22ff907a9adfd4cb8c16720795a585bfb | 2,463 | cpp | C++ | src/libs/wavm_common/WavmUtils.cpp | burntjam/keto | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | [
"MIT"
] | 1 | 2020-03-04T10:38:00.000Z | 2020-03-04T10:38:00.000Z | src/libs/wavm_common/WavmUtils.cpp | burntjam/keto | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | [
"MIT"
] | null | null | null | src/libs/wavm_common/WavmUtils.cpp | burntjam/keto | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | [
"MIT"
] | 1 | 2020-03-04T10:38:01.000Z | 2020-03-04T10:38:01.000Z | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: WavmUtils.cpp
* Author: ubuntu
*
* Created on April 22, 2018, 5:42 PM
*/
#include <string>
#include <iostream>
#... | 26.202128 | 96 | 0.598051 | burntjam |
11d338cac985ed167a065d6e891f82926344834b | 2,591 | cpp | C++ | src/Explosion/Box.cpp | crazytuzi/CyclonePhysics | 4dd47779d425d9de45a125e948b690f0e8bd1f12 | [
"MIT"
] | null | null | null | src/Explosion/Box.cpp | crazytuzi/CyclonePhysics | 4dd47779d425d9de45a125e948b690f0e8bd1f12 | [
"MIT"
] | null | null | null | src/Explosion/Box.cpp | crazytuzi/CyclonePhysics | 4dd47779d425d9de45a125e948b690f0e8bd1f12 | [
"MIT"
] | null | null | null | #include "Box.h"
#include "gl/glut.h"
Box::Box(): bIsOverlapping(false)
{
body = new cyclone::RigidBody();
}
Box::~Box()
{
delete body;
}
void Box::Render() const
{
// Get the OpenGL transformation
GLfloat mat[16];
body->GetGLTransform(mat);
if (bIsOverlapping)
{
glColor3f(0.7f,... | 19.778626 | 92 | 0.599768 | crazytuzi |
11d4eec341bbb7075bece8c5ac3e4a2a5e54b0cb | 659 | hpp | C++ | credits.hpp | jasonhutchens/kranzky_ice | 8b1cf40f7948ac8811cdf49729d1df0acb7fc611 | [
"Unlicense"
] | 4 | 2016-06-05T04:36:12.000Z | 2016-08-21T20:11:49.000Z | credits.hpp | kranzky/kranzky_ice | 8b1cf40f7948ac8811cdf49729d1df0acb7fc611 | [
"Unlicense"
] | null | null | null | credits.hpp | kranzky/kranzky_ice | 8b1cf40f7948ac8811cdf49729d1df0acb7fc611 | [
"Unlicense"
] | null | null | null | //==============================================================================
#ifndef ArseAbout
#define ArseAbout
#pragma once
#include <context.hpp>
//------------------------------------------------------------------------------
class Credits : public Context
{
public:
Credits();
virtual ~Credits();
... | 19.382353 | 80 | 0.402124 | jasonhutchens |
11dc5332d8f92aba3955636f5a6cc962047739e4 | 8,370 | cpp | C++ | src/AbstractTab.cpp | shtroizel/completable | f98372fc655aa8a8fcffaf9ef5e0fa8fab73a048 | [
"BSD-3-Clause"
] | null | null | null | src/AbstractTab.cpp | shtroizel/completable | f98372fc655aa8a8fcffaf9ef5e0fa8fab73a048 | [
"BSD-3-Clause"
] | null | null | null | src/AbstractTab.cpp | shtroizel/completable | f98372fc655aa8a8fcffaf9ef5e0fa8fab73a048 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2020, Eric Hyer
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following di... | 27 | 87 | 0.61362 | shtroizel |
11dd4cc7eea31c758a7d5706cb80cb0892be57b8 | 1,216 | cpp | C++ | libgpos/src/task/CAutoTraceFlag.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 28 | 2016-01-29T08:27:42.000Z | 2021-03-11T01:42:33.000Z | libgpos/src/task/CAutoTraceFlag.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 22 | 2016-02-01T16:31:50.000Z | 2017-07-13T13:25:53.000Z | libgpos/src/task/CAutoTraceFlag.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 23 | 2016-01-28T03:19:24.000Z | 2021-05-28T07:32:51.000Z | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CAutoTraceFlag.cpp
//
// @doc:
// Auto object to toggle TF in scope
//---------------------------------------------------------------------------
#include "gpos/base... | 20.965517 | 77 | 0.409539 | khannaekta |
11e56d15b8518951eaa1e705fe1b4e6149fc0615 | 2,005 | cpp | C++ | mkra/src/module.cpp | unihykes/monk | d5ad969fea75912d4aad913adf945f78ec4df60e | [
"Apache-2.0"
] | 2 | 2018-03-27T02:46:03.000Z | 2018-05-24T02:49:17.000Z | mkra/src/module.cpp | six-th/monk | d5ad969fea75912d4aad913adf945f78ec4df60e | [
"Apache-2.0"
] | null | null | null | mkra/src/module.cpp | six-th/monk | d5ad969fea75912d4aad913adf945f78ec4df60e | [
"Apache-2.0"
] | null | null | null | /***************************************************************************************************
LICENSE:
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/l... | 27.465753 | 100 | 0.618953 | unihykes |
11e5f9bd49da4e120dce1a093ce869f80b8b0ece | 24,133 | cpp | C++ | src/game/server/entities/triggers/CChangeLevel.cpp | GEEKiDoS/source-sdk-2013-mp | 9c4d61d342a23d7da1a2b35e28423e205c11d7fa | [
"Unlicense"
] | 1 | 2021-03-20T14:27:22.000Z | 2021-03-20T14:27:22.000Z | src/game/server/entities/triggers/CChangeLevel.cpp | GEEKiDoS/source-sdk-2013-mp | 9c4d61d342a23d7da1a2b35e28423e205c11d7fa | [
"Unlicense"
] | null | null | null | src/game/server/entities/triggers/CChangeLevel.cpp | GEEKiDoS/source-sdk-2013-mp | 9c4d61d342a23d7da1a2b35e28423e205c11d7fa | [
"Unlicense"
] | null | null | null | //========= Copyright Valve Corporation, All rights reserved. ============//
#include "cbase.h"
#include "ai_basenpc.h"
#include "ai_behavior_lead.h"
#include "entityapi.h"
#include "saverestore.h"
#include "saverestoretypes.h"
#include "triggers.h"
#include "entities/triggers/CChangeLevel.h"
// memdbgon must be th... | 29.394641 | 239 | 0.667716 | GEEKiDoS |
eb1ce47710b2db11e95553ba08515d320e18ad0a | 453 | cpp | C++ | array/989_add_to_array_form_interger.cpp | rspezialetti/leetcode | 4614ffe2a4923aae02f93096b6200239e6f201c1 | [
"MIT"
] | 1 | 2019-08-21T21:25:34.000Z | 2019-08-21T21:25:34.000Z | array/989_add_to_array_form_interger.cpp | rspezialetti/leetcode | 4614ffe2a4923aae02f93096b6200239e6f201c1 | [
"MIT"
] | null | null | null | array/989_add_to_array_form_interger.cpp | rspezialetti/leetcode | 4614ffe2a4923aae02f93096b6200239e6f201c1 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> addToArrayForm(vector<int>& A, int K)
{
vector<int> result;
int i = A.size();
int carry = K;
while(--i >= 0 || carry > 0)
{
if(i >= 0)
carry += A[i];
result.push_back(car... | 20.590909 | 54 | 0.399558 | rspezialetti |
eb1d8b56429200d4dab81c8a1cc8b6625a3a9458 | 20,074 | cpp | C++ | src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp | FrenchCORE/OLD_FrenchCORE | edf1a2859246493c0667b44497c4bbb0fe718cbd | [
"OpenSSL"
] | 1 | 2019-12-03T18:41:39.000Z | 2019-12-03T18:41:39.000Z | src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp | FrenchCORE/OLD_FrenchCORE | edf1a2859246493c0667b44497c4bbb0fe718cbd | [
"OpenSSL"
] | null | null | null | src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp | FrenchCORE/OLD_FrenchCORE | edf1a2859246493c0667b44497c4bbb0fe718cbd | [
"OpenSSL"
] | null | null | null | /*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2012 - 2012 FrenchCORE <http://www.frcore.com/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General... | 34.550775 | 192 | 0.506825 | FrenchCORE |
eb1e0ebbe1b88faf7c231da8b4c74218249a8e80 | 3,941 | cpp | C++ | src/core/technology.cpp | awlck/stellaris-stat-viewer | 454d0286b07bcdf2b1b519d6a62ca9c569abc468 | [
"Apache-2.0"
] | 2 | 2019-05-28T13:43:33.000Z | 2019-06-06T22:08:55.000Z | src/core/technology.cpp | awlck/stellaris-stat-viewer | 454d0286b07bcdf2b1b519d6a62ca9c569abc468 | [
"Apache-2.0"
] | 8 | 2019-03-19T11:44:46.000Z | 2019-06-03T11:43:07.000Z | src/core/technology.cpp | awlck/stellaris-stat-viewer | 454d0286b07bcdf2b1b519d6a62ca9c569abc468 | [
"Apache-2.0"
] | 1 | 2020-03-08T21:02:35.000Z | 2020-03-08T21:02:35.000Z | /* core/technology.cpp: Extracting technology information from an AST.
*
* Copyright 2019 Adrian "ArdiMaster" Welcker
*
* 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://ww... | 32.04065 | 105 | 0.710226 | awlck |
eb2a24dc18716cab6697c6fa3608c3806d954948 | 5,322 | cc | C++ | crosdns/hosts_modifier_test.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | crosdns/hosts_modifier_test.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | crosdns/hosts_modifier_test.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Chromium OS 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 "crosdns/hosts_modifier.h"
#include <string>
#include <base/files/scoped_temp_dir.h>
#include <base/files/file_path.h>
#include <base/files/... | 37.744681 | 78 | 0.708568 | dgreid |
eb3217a3380b7b765ddf7ba8a8ee22cf96fa262b | 2,662 | cpp | C++ | algorithms/binary_search_tree.cpp | sylveryte/algorithms-data-structure-cpp | 3fc4690972fa061851f7a46a06797bf441043eda | [
"MIT"
] | null | null | null | algorithms/binary_search_tree.cpp | sylveryte/algorithms-data-structure-cpp | 3fc4690972fa061851f7a46a06797bf441043eda | [
"MIT"
] | null | null | null | algorithms/binary_search_tree.cpp | sylveryte/algorithms-data-structure-cpp | 3fc4690972fa061851f7a46a06797bf441043eda | [
"MIT"
] | null | null | null | /*
* binary_search_tree.cpp
* Copyright (C) 2020 sylveryte <sylveryte@archred>
*
* Distributed under terms of the MIT license.
*/
#include "binary_search_tree.h"
#include "../sylvtools.cpp"
int main(){
binary_search_tree b(21);
b.insert(21);
b.insert(1);
b.insert(23);
b.insert(233);
b.insert(4);
b.print_... | 25.84466 | 89 | 0.635988 | sylveryte |
eb33b183ed90e4998b9537607d6f85c34383b990 | 10,369 | cpp | C++ | Asteroid.cpp | timaeudg/3DAsteroids | d6d3047ee4375ce2ac54081ed0311bd73023b458 | [
"BSD-2-Clause"
] | 1 | 2015-05-04T07:04:04.000Z | 2015-05-04T07:04:04.000Z | Asteroid.cpp | timaeudg/3DAsteroids | d6d3047ee4375ce2ac54081ed0311bd73023b458 | [
"BSD-2-Clause"
] | null | null | null | Asteroid.cpp | timaeudg/3DAsteroids | d6d3047ee4375ce2ac54081ed0311bd73023b458 | [
"BSD-2-Clause"
] | null | null | null | #include "Asteroid.h"
#define REFINEMENT_LEVEL 2
#define BASE_RADIUS 1.9021f
#define MAX_VELOCITY 0.05
#define MAX_ROTATION 5.0
float Asteroid::nextID = 1.0;
Asteroid::Asteroid(){
Asteroid(glm::vec3(0), 0, 1.9021);
}
Asteroid::Asteroid(glm::vec3 startingPosition, int elementOffset, GLfloat radius)
{
this->radius =... | 34.448505 | 153 | 0.710001 | timaeudg |
eb35b6ab1b405a6864b888ba7b72b6525eadf4f9 | 1,411 | cpp | C++ | Assigment 13/a13_p7.cpp | UrfanAlvany/Programming-in-C-and-Cpp | e23a485d5ce302cbbc14bd67a0f656797c3f6af1 | [
"MIT"
] | 1 | 2022-01-02T16:02:09.000Z | 2022-01-02T16:02:09.000Z | Assigment 13/a13_p7.cpp | UrfanAlvany/Programming-in-C-and-Cpp | e23a485d5ce302cbbc14bd67a0f656797c3f6af1 | [
"MIT"
] | null | null | null | Assigment 13/a13_p7.cpp | UrfanAlvany/Programming-in-C-and-Cpp | e23a485d5ce302cbbc14bd67a0f656797c3f6af1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdexcept>
#include <string>
using namespace std;
class OwnException: public exception{ //class derived from exception
private:
string a; //declaring string
public:
OwnException(){
a = "Default case exception"; //when default thsi is printed
}
OwnException(const... | 20.75 | 68 | 0.554926 | UrfanAlvany |
eb36232e45bd0e485e485524f1039cc48db55613 | 6,137 | cpp | C++ | samples/tools/save_pose_into_pcd.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 17 | 2015-11-16T14:21:10.000Z | 2020-11-09T02:57:33.000Z | samples/tools/save_pose_into_pcd.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 35 | 2015-07-27T15:04:43.000Z | 2019-08-22T10:52:35.000Z | samples/tools/save_pose_into_pcd.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 18 | 2015-08-06T09:26:27.000Z | 2020-09-03T01:31:00.000Z | /*
* adds pose information given by pose_000x.txt into cloud_000x.pcd files (old dataset structure)
* now we can use pcl_viewer *.pcd to show all point clouds in common coordinate system
*
* Created on: Dec 04, 2014
* Author: Thomas Faeulhammer
*
*/
#include <v4r/io/filesystem.h>
#include <v4r/io/eigen.h>... | 42.618056 | 174 | 0.575363 | ToMadoRe |
eb3657cc9e281efeb7c55ddaac0e7294e6f34004 | 1,704 | cpp | C++ | src/PostProcessing/PostProcessing.cpp | ArjenSimons/RayTracing | 3f2e8084fa61c7d2372b5a87d3f95901e8518524 | [
"CC0-1.0"
] | 2 | 2022-02-08T13:48:02.000Z | 2022-02-08T13:48:05.000Z | src/PostProcessing/PostProcessing.cpp | ArjenSimons/RayTracing | 3f2e8084fa61c7d2372b5a87d3f95901e8518524 | [
"CC0-1.0"
] | null | null | null | src/PostProcessing/PostProcessing.cpp | ArjenSimons/RayTracing | 3f2e8084fa61c7d2372b5a87d3f95901e8518524 | [
"CC0-1.0"
] | 1 | 2021-12-08T15:01:17.000Z | 2021-12-08T15:01:17.000Z | #include "precomp.h"
//TODO: Compute post processing effects on GPU
void PostProcessing::Vignette(Color renderBuffer[SCRWIDTH][SCRHEIGHT], float2 uv[SCRWIDTH][SCRHEIGHT], float outerRadius, float smoothness, float intensity)
{
outerRadius = clamp(outerRadius, 0.0f, 1.0f);
intensity = clamp(intensity, 0.0f, 1.0f);
s... | 32.150943 | 156 | 0.670775 | ArjenSimons |
eb3e3b028285fd8cf10cacbe7b65ee374e3951b2 | 2,605 | cpp | C++ | test/module/irohad/main/server_runner_test.cpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | test/module/irohad/main/server_runner_test.cpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | test/module/irohad/main/server_runner_test.cpp | coderintherye/iroha | 68509282851130c9818f21acef1ef28e53622315 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. 2018 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... | 37.214286 | 78 | 0.727063 | coderintherye |
eb445c2d12a3a6ef046a8123286c6f628b50caa7 | 2,402 | cpp | C++ | src/atlas/hlr/load_library.cpp | marovira/atlas | ccc9ec2449a9392e41a25a6c638302b940f5e5da | [
"MIT"
] | 10 | 2016-11-30T08:44:55.000Z | 2022-02-05T16:47:05.000Z | src/atlas/hlr/load_library.cpp | marovira/atlas | ccc9ec2449a9392e41a25a6c638302b940f5e5da | [
"MIT"
] | 12 | 2016-01-13T20:31:11.000Z | 2020-03-27T19:14:03.000Z | src/atlas/hlr/load_library.cpp | marovira/atlas | ccc9ec2449a9392e41a25a6c638302b940f5e5da | [
"MIT"
] | 10 | 2016-01-07T16:22:36.000Z | 2020-01-16T05:58:48.000Z | #include "load_library.hpp"
#include <fmt/printf.h>
#include <zeus/platform.hpp>
#if defined(ZEUS_PLATFORM_WINDOWS)
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
#else
# include <dlfcn.h>
#endif
namespace atlas::hlr
{
#if defined(ZEUS_PLATFORM_WINDOWS)
void* load_library_handle(std::string const& l... | 25.827957 | 79 | 0.567027 | marovira |
eb53ef71a732559eb4276b24987d810708931040 | 30 | cpp | C++ | Refureku/Library/Tests/AB.cpp | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 143 | 2020-04-07T21:38:21.000Z | 2022-03-30T01:06:33.000Z | Refureku/Library/Tests/AB.cpp | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 7 | 2021-03-30T07:26:21.000Z | 2022-03-28T16:31:02.000Z | Refureku/Library/Tests/AB.cpp | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 11 | 2020-06-06T09:45:12.000Z | 2022-01-25T17:17:55.000Z | #include "Generated/AB.rfks.h" | 30 | 30 | 0.766667 | jsoysouvanh |
eb55db2d10860204a0d7d4edebae5c61db156dd7 | 3,252 | hpp | C++ | distribution_survival/boost/statistics/detail/distribution/survival/models/common/importance_sampling/proposals_manager.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | distribution_survival/boost/statistics/detail/distribution/survival/models/common/importance_sampling/proposals_manager.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | distribution_survival/boost/statistics/detail/distribution/survival/models/common/importance_sampling/proposals_manager.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////
// distribution::survival::models::common::importance_sampling::proposals_manager.hpp //
// //
// Copyright 2009 Erwann Rogard. Distributed under the... | 35.347826 | 110 | 0.621464 | rogard |
eb55e082fd5281ba7b6dd6b8807f138828dd1685 | 8,236 | cpp | C++ | main.cpp | MinghuaShen/HLS | f53220ef475f15c2d11902d6f392b9cb783fd5b0 | [
"MIT"
] | 4 | 2020-03-14T05:11:57.000Z | 2021-03-23T15:02:37.000Z | main.cpp | MinghuaShen/HLS | f53220ef475f15c2d11902d6f392b9cb783fd5b0 | [
"MIT"
] | null | null | null | main.cpp | MinghuaShen/HLS | f53220ef475f15c2d11902d6f392b9cb783fd5b0 | [
"MIT"
] | 2 | 2018-07-26T15:52:39.000Z | 2021-02-21T10:42:47.000Z | // Copyright (c) 2018 Hongzheng Chen
// E-mail: chenhzh37@mail2.sysu.edu.cn
// This is the implementation of Entropy-directed scheduling (EDS) algorithm for FPGA high-level synthesis.
// This file is the main function of EDS.
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <chron... | 28.013605 | 107 | 0.535697 | MinghuaShen |
eb56133760a6445cd88612e1a1f6e2143fa054ad | 2,073 | cc | C++ | rdc_libs/bootstrap/src/RdcLibraryLoader.cc | RadeonOpenCompute/rdc | bb11a0abf5bea0ca8ad3d17bd687379c45149ed9 | [
"MIT"
] | 2 | 2020-09-10T02:04:00.000Z | 2020-12-03T10:55:38.000Z | rdc_libs/bootstrap/src/RdcLibraryLoader.cc | RadeonOpenCompute/rdc | bb11a0abf5bea0ca8ad3d17bd687379c45149ed9 | [
"MIT"
] | 2 | 2022-03-29T00:32:43.000Z | 2022-03-31T18:09:36.000Z | rdc_libs/bootstrap/src/RdcLibraryLoader.cc | RadeonOpenCompute/rdc | bb11a0abf5bea0ca8ad3d17bd687379c45149ed9 | [
"MIT"
] | 2 | 2020-09-15T08:05:43.000Z | 2021-09-02T03:06:41.000Z | /*
Copyright (c) 2020 - present Advanced Micro Devices, Inc. All rights reserved.
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 us... | 31.892308 | 78 | 0.71973 | RadeonOpenCompute |
eb5aea67a93b7475845e8cbfad9baac236ded1f1 | 1,562 | cpp | C++ | codeforces/gym/2018 ICPC Asia Jakarta Regional Contest/g.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/gym/2018 ICPC Asia Jakarta Regional Contest/g.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/gym/2018 ICPC Asia Jakarta Regional Contest/g.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
bool check(int n, int m, vector<list<int> > iadj, vvb mat, vi dg, int k){
queue<ii> q;
set<int> inq;
for(int u=0; u<n; ++u){
for(int v=0; v<n; ++v){
}
}
while(!q.empty()){
int u = q.front();
q.pop();
inq.erase(u);
for(... | 19.525 | 73 | 0.330346 | tysm |
eb5d1fc687dd9ef164a10ff6717e6a05624e6fbb | 115 | cpp | C++ | src/main/cpp/MathHelper.cpp | frcteam4458/2022-Command | 131634be15ab6da2eed68c5b41dd87b3ee2ffe0a | [
"BSD-3-Clause"
] | 1 | 2022-03-17T02:46:36.000Z | 2022-03-17T02:46:36.000Z | src/main/cpp/MathHelper.cpp | frcteam4458/2022-Command | 131634be15ab6da2eed68c5b41dd87b3ee2ffe0a | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/MathHelper.cpp | frcteam4458/2022-Command | 131634be15ab6da2eed68c5b41dd87b3ee2ffe0a | [
"BSD-3-Clause"
] | null | null | null | #include <math.h>
#include "MathHelper.h"
double pythagorean(float a, float b)
{
return sqrt(a * a + b * b);
} | 16.428571 | 36 | 0.634783 | frcteam4458 |
eb64843a7a0245f6a31e67e1ec16bfee4c59d291 | 3,287 | cpp | C++ | firmware/examples/FreeRTOS_Blinker/source/main.cpp | 2721Aperez/SJSU-Dev2 | 87052080d2754803dbd1dae2864bd9024d123086 | [
"Apache-2.0"
] | 1 | 2018-07-07T01:41:34.000Z | 2018-07-07T01:41:34.000Z | firmware/examples/FreeRTOS_Blinker/source/main.cpp | 2721Aperez/SJSU-Dev2 | 87052080d2754803dbd1dae2864bd9024d123086 | [
"Apache-2.0"
] | null | null | null | firmware/examples/FreeRTOS_Blinker/source/main.cpp | 2721Aperez/SJSU-Dev2 | 87052080d2754803dbd1dae2864bd9024d123086 | [
"Apache-2.0"
] | 1 | 2018-09-19T01:58:48.000Z | 2018-09-19T01:58:48.000Z | #include <cstdint>
#include <cstdio>
#include "FreeRTOS.h"
#include "task.h"
#include "config.hpp"
#include "L0_LowLevel/LPC40xx.h"
#include "L2_Utilities/debug_print.hpp"
#include "L2_Utilities/macros.hpp"
#include "L2_Utilities/rtos.hpp"
namespace
{
void LedToggle(void * parameters)
{
DEBUG_PRINT("Setting up ... | 30.719626 | 79 | 0.604807 | 2721Aperez |
eb69835c7702dde170dbc1a2588237ffc0688b75 | 10,953 | cc | C++ | core/src/CommonClient.cc | zzboy/aliyun-kms-cpp-sdk | 95ff35e92212e9bc1331fc6760606aa08c93cb94 | [
"Apache-2.0"
] | null | null | null | core/src/CommonClient.cc | zzboy/aliyun-kms-cpp-sdk | 95ff35e92212e9bc1331fc6760606aa08c93cb94 | [
"Apache-2.0"
] | null | null | null | core/src/CommonClient.cc | zzboy/aliyun-kms-cpp-sdk | 95ff35e92212e9bc1331fc6760606aa08c93cb94 | [
"Apache-2.0"
] | 1 | 2019-10-14T10:37:47.000Z | 2019-10-14T10:37:47.000Z | /*
* Copyright 1999-2019 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 32.598214 | 154 | 0.626221 | zzboy |
eb6ab78ef53d83c85753654fdcc9cb12b388a22b | 1,844 | hpp | C++ | source/NanairoCore/Data/ray-inl.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 30 | 2015-09-06T03:14:29.000Z | 2021-06-18T11:00:19.000Z | source/NanairoCore/Data/ray-inl.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 31 | 2016-01-14T14:50:34.000Z | 2018-06-25T13:21:48.000Z | source/NanairoCore/Data/ray-inl.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 6 | 2017-04-09T13:07:47.000Z | 2021-05-29T21:17:34.000Z | /*!
\file ray-inl.hpp
\author Sho Ikeda
Copyright (c) 2015-2018 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef NANAIRO_RAY_INL_HPP
#define NANAIRO_RAY_INL_HPP
#include "ray.hpp"
// Standard C++ library
#include <array>
#include <limits... | 14.076336 | 73 | 0.68167 | byzin |
eb6bd3304473cf8f613568de2e21de57eb3ddedd | 8,122 | cpp | C++ | src/platform/osx/main_carbon_old.cpp | guitarpukpui/OpenLara | 4b73fad5664eadfe8c27f4d32e656f55aeddd177 | [
"BSD-2-Clause"
] | 3,999 | 2016-09-07T15:36:25.000Z | 2022-03-31T14:54:44.000Z | src/platform/osx/main_carbon_old.cpp | guitarpukpui/OpenLara | 4b73fad5664eadfe8c27f4d32e656f55aeddd177 | [
"BSD-2-Clause"
] | 333 | 2016-08-23T10:03:40.000Z | 2022-03-31T13:25:19.000Z | src/platform/osx/main_carbon_old.cpp | guitarpukpui/OpenLara | 4b73fad5664eadfe8c27f4d32e656f55aeddd177 | [
"BSD-2-Clause"
] | 403 | 2016-10-31T15:11:02.000Z | 2022-03-31T15:03:52.000Z | #include "game.h"
bool isQuit = false;
WindowRef window;
AGLContext context;
#define SND_SIZE 8192
static AudioQueueRef audioQueue;
void soundFill(void* inUserData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer) {
void* frames = inBuffer->mAudioData;
UInt32 count = inBuffer->mAudioDataBytesCapacity / 4;
... | 34.270042 | 203 | 0.575967 | guitarpukpui |
eb71541b97afe7d8bded1d4c273baa49503822ee | 22,796 | cpp | C++ | mllib/LogisticRegression.cpp | Christina-hshi/Boosting-with-Husky | 1744f0c90567a969d3e50d19f27f358f5865d2f6 | [
"Apache-2.0"
] | 1 | 2019-01-23T02:10:10.000Z | 2019-01-23T02:10:10.000Z | mllib/LogisticRegression.cpp | Christina-hshi/Boosting-with-Husky | 1744f0c90567a969d3e50d19f27f358f5865d2f6 | [
"Apache-2.0"
] | null | null | null | mllib/LogisticRegression.cpp | Christina-hshi/Boosting-with-Husky | 1744f0c90567a969d3e50d19f27f358f5865d2f6 | [
"Apache-2.0"
] | null | null | null | /*
Edit by Christina
*/
#include "LogisticRegression.hpp"
namespace husky{
namespace mllib{
/*
train a logistic regression model with even weighted instances.
*/
void LogisticRegression::fit(const Instances& instances){
if(this->mode == MODE::GLOBAL){
... | 41.372051 | 217 | 0.469995 | Christina-hshi |
eb71b86555363e03ff019f9cb0f704a08eee1358 | 993 | cpp | C++ | binarysearch.io/easy/Pattern-to-Word-Bijection.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | binarysearch.io/easy/Pattern-to-Word-Bijection.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | binarysearch.io/easy/Pattern-to-Word-Bijection.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Pattern to Word Bijection
https://binarysearch.com/problems/Pattern-to-Word-Bijection
Given two strings s and p, return whether s follows the pattern in p. That is, return whether each character in p can map to a non-empty word such that it maps to s.
Constraints
n ≤ 100,000 where n is the length of s
Example 1
I... | 21.586957 | 165 | 0.548842 | wingkwong |
eb765ec6e408bf6b2d058d5fc59b6849a5233b36 | 4,254 | hpp | C++ | hostsvc/Connection.hpp | lishunan246/b | 82023dee34b023dfbc3dd2f0381fdbd7e266604e | [
"BSD-2-Clause"
] | null | null | null | hostsvc/Connection.hpp | lishunan246/b | 82023dee34b023dfbc3dd2f0381fdbd7e266604e | [
"BSD-2-Clause"
] | null | null | null | hostsvc/Connection.hpp | lishunan246/b | 82023dee34b023dfbc3dd2f0381fdbd7e266604e | [
"BSD-2-Clause"
] | null | null | null | //
// Created by lishunan on 4/19/16.
//
#ifndef HOSTSVC_RPCCHANNEL_H
#define HOSTSVC_RPCCHANNEL_H
#include "HostSvcCommon.hpp"
#include <unordered_map>
using namespace google::protobuf;
namespace GkcHostSvc {
using messageHandler = function<void(RPCResponse)>;
class Connection : public protobuf::RpcChannel {
... | 24.448276 | 106 | 0.621533 | lishunan246 |
eb781c081e36e72e1b02bb2962d3472c404f4ecd | 20,939 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimController_ZoneControlTemperature_ThermostatThermalComfort.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimController_ZoneControlTemperature_ThermostatThermalComfort.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimController_ZoneControlTemperature_ThermostatThermalComfort.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 42.046185 | 195 | 0.723865 | EnEff-BIM |
eb781e552af0f6852b5b20040b828cf0b784c6d1 | 565 | cpp | C++ | Reverse a Linked List in groups of given size.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 2 | 2021-10-01T04:20:04.000Z | 2021-10-01T04:20:06.000Z | Reverse a Linked List in groups of given size.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 1 | 2021-10-01T18:00:09.000Z | 2021-10-01T18:00:09.000Z | Reverse a Linked List in groups of given size.cpp | Subhash3/Algorithms-For-Software-Developers | 2e0ac4f51d379a2b10a40fca7fa82a8501d3db94 | [
"BSD-2-Clause"
] | 8 | 2021-10-01T04:20:38.000Z | 2022-03-19T17:05:05.000Z | class Solution
{
public:
int l(struct node* h){
int c;
while(h){
h=h->next;
++c;
}
return c;
}
struct node *reverse (struct node *head, int k)
{
if(l(head)<k)
return head;
struct node *prev=0;
struct node *next=... | 19.482759 | 51 | 0.424779 | Subhash3 |
eb79e846435d4de4af5e754ac5f49b0460911081 | 2,122 | cpp | C++ | querier/BaseChunkSeriesSet.cpp | Jimx-/tsdb-fork | f92cfa0a998c03b3a2cb4c8e46990de8b47aae15 | [
"Apache-2.0"
] | 1 | 2020-06-04T06:56:40.000Z | 2020-06-04T06:56:40.000Z | querier/BaseChunkSeriesSet.cpp | Jimx-/tsdb-fork | f92cfa0a998c03b3a2cb4c8e46990de8b47aae15 | [
"Apache-2.0"
] | null | null | null | querier/BaseChunkSeriesSet.cpp | Jimx-/tsdb-fork | f92cfa0a998c03b3a2cb4c8e46990de8b47aae15 | [
"Apache-2.0"
] | 1 | 2020-06-04T03:35:58.000Z | 2020-06-04T03:35:58.000Z | #include "querier/BaseChunkSeriesSet.hpp"
#include "base/Logging.hpp"
#include "index/PostingSet.hpp"
#include <unordered_set>
namespace tsdb {
namespace querier {
// BaseChunkSeriesSet loads the label set and chunk references for a postings
// list from an index. It filters out series that have labels set that shou... | 27.921053 | 80 | 0.582941 | Jimx- |
eb7a0116bdd5d901141b9585dff6b9973b0049f5 | 2,046 | cc | C++ | absl/base/internal/scoped_set_env.cc | abaskin/abseil-cpp | 9e598094c380d79119c752d4a472c0765728ec81 | [
"Apache-2.0"
] | null | null | null | absl/base/internal/scoped_set_env.cc | abaskin/abseil-cpp | 9e598094c380d79119c752d4a472c0765728ec81 | [
"Apache-2.0"
] | 1 | 2020-02-17T08:25:41.000Z | 2020-02-18T08:08:59.000Z | absl/base/internal/scoped_set_env.cc | abaskin/abseil-cpp | 9e598094c380d79119c752d4a472c0765728ec81 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 The Abseil 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 agr... | 24.95122 | 78 | 0.716031 | abaskin |
eb7d731262e2c5b0ac6a7e3f1d3fd9ff7f408dc8 | 11,378 | cpp | C++ | ftaction.cpp | sphinxlogic/shell32 | ef38d3338afd575a2d456d737c7bd6a105392d88 | [
"MIT"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | shell/shell32/ftaction.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | shell/shell32/ftaction.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "shellprv.h"
#include "ids.h"
#include "ftadv.h"
#include "ftcmmn.h"
#include "ftaction.h"
#include "ftassoc.h"
const static DWORD cs_rgdwHelpIDsArray[] =
{ // Context Help IDs
IDC_FT_CMD_ACTION, IDH_FCAB_FT_CMD_ACTION,
IDC_FT_CMD_EXETEXT, IDH_FCAB_FT_CMD_EXE,
IDC_FT_C... | 32.323864 | 122 | 0.604939 | sphinxlogic |
eb7d97242833f1043f9e24cfe06fc026b99bf264 | 2,975 | cpp | C++ | source/Worker.cpp | jacobmcleman/JobBot | 1ef82a2f2fbf3321ba3ef4f2a006128bed1388c0 | [
"MIT"
] | null | null | null | source/Worker.cpp | jacobmcleman/JobBot | 1ef82a2f2fbf3321ba3ef4f2a006128bed1388c0 | [
"MIT"
] | null | null | null | source/Worker.cpp | jacobmcleman/JobBot | 1ef82a2f2fbf3321ba3ef4f2a006128bed1388c0 | [
"MIT"
] | null | null | null | /**************************************************************************
Contains implementation for Worker class and its JobQueue subclass, which
handle job queues and stealing.
Author:
Jake McLeman
**************************************************************************/
#include <algorithm>
#i... | 21.557971 | 78 | 0.640672 | jacobmcleman |
eb84c978c897afc0f16982b1ed521bdb0a014a3a | 6,080 | cpp | C++ | sobol-dpct/sobol.dp.cpp | jchlanda/oneAPI-DirectProgramming | 82a1be635f89b4b2a83e36965a60b19fd71e46b2 | [
"BSD-3-Clause"
] | null | null | null | sobol-dpct/sobol.dp.cpp | jchlanda/oneAPI-DirectProgramming | 82a1be635f89b4b2a83e36965a60b19fd71e46b2 | [
"BSD-3-Clause"
] | null | null | null | sobol-dpct/sobol.dp.cpp | jchlanda/oneAPI-DirectProgramming | 82a1be635f89b4b2a83e36965a60b19fd71e46b2 | [
"BSD-3-Clause"
] | null | null | null | /*
* Portions Copyright (c) 1993-2015 NVIDIA Corporation. All rights reserved.
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and re... | 32 | 126 | 0.611184 | jchlanda |
eb88d9cdfe66817f340c9c4668261a9e17b791bb | 1,152 | cpp | C++ | Platinum/2015-16/Open 2016/landscape.cpp | WilliamYue37/USACO | f18b222ff505e2640018288a608dbed6d24ae64a | [
"MIT"
] | null | null | null | Platinum/2015-16/Open 2016/landscape.cpp | WilliamYue37/USACO | f18b222ff505e2640018288a608dbed6d24ae64a | [
"MIT"
] | null | null | null | Platinum/2015-16/Open 2016/landscape.cpp | WilliamYue37/USACO | f18b222ff505e2640018288a608dbed6d24ae64a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pi;
typedef pair<long long, long long> pl;
const int MOD = 1e9 + 7;
const ll INF = 1e18;
const double EPS = 1e-6;
int N;
ll X, Y, Z;
priority_queue... | 20.571429 | 77 | 0.497396 | WilliamYue37 |
eb8bcd0a2f8df7ca38e42fd06ac2acd945613e79 | 984 | cpp | C++ | examples/code-samples/cpp/23_AddTags.cpp | MarkusRannare/modio-sdk | 70220009ac6c375bebd4b807de1e7f8a19680a41 | [
"MIT"
] | 42 | 2017-11-14T19:45:20.000Z | 2019-02-03T02:43:24.000Z | examples/code-samples/cpp/23_AddTags.cpp | MarkusRannare/modio-sdk | 70220009ac6c375bebd4b807de1e7f8a19680a41 | [
"MIT"
] | 16 | 2019-05-09T02:14:02.000Z | 2020-09-03T05:35:49.000Z | examples/code-samples/cpp/23_AddTags.cpp | MarkusRannare/modio-sdk | 70220009ac6c375bebd4b807de1e7f8a19680a41 | [
"MIT"
] | 15 | 2019-07-15T04:26:01.000Z | 2020-09-12T03:58:19.000Z | #include "modio.h"
#include <iostream>
int main(void)
{
modio::Instance modio_instance(MODIO_ENVIRONMENT_TEST, 7, "e91c01b8882f4affeddd56c96111977b");
volatile static bool finished = false;
auto wait = [&]() {
while (!finished)
{
modio_instance.sleep(10);
modio_instance.process();
}
}... | 21.866667 | 115 | 0.619919 | MarkusRannare |
eb9172f1e3acb18c6c71dec13b45b7688e73e744 | 4,904 | cpp | C++ | test/core/FilesystemDeviceCacheTest.cpp | jozhalaj/gateway | 49168dcbcf833da690048880bb33542ffbc90ce3 | [
"BSD-3-Clause"
] | 7 | 2018-06-09T05:55:59.000Z | 2021-01-05T05:19:02.000Z | test/core/FilesystemDeviceCacheTest.cpp | jozhalaj/gateway | 49168dcbcf833da690048880bb33542ffbc90ce3 | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:39:06.000Z | 2020-01-03T08:35:29.000Z | test/core/FilesystemDeviceCacheTest.cpp | jozhalaj/gateway | 49168dcbcf833da690048880bb33542ffbc90ce3 | [
"BSD-3-Clause"
] | 11 | 2018-05-10T08:29:05.000Z | 2020-01-22T20:49:32.000Z | #include <cppunit/extensions/HelperMacros.h>
#include <Poco/File.h>
#include "cppunit/BetterAssert.h"
#include "cppunit/FileTestFixture.h"
#include "core/FilesystemDeviceCache.h"
#include "model/DevicePrefix.h"
using namespace Poco;
namespace BeeeOn {
class FilesystemDeviceCacheTest : public FileTestFixture {
CP... | 29.365269 | 77 | 0.791191 | jozhalaj |
eb94497f121080b88cab98d76dd3da6be810c9ef | 1,059 | cpp | C++ | TrainingGround/src/assignment-3/main.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | 15 | 2015-11-04T12:53:23.000Z | 2021-08-10T09:53:12.000Z | TrainingGround/src/assignment-3/main.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | null | null | null | TrainingGround/src/assignment-3/main.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | 6 | 2015-11-13T10:17:01.000Z | 2020-05-14T07:25:48.000Z | #include "common.h"
#include "LoadVehicle.h"
#include "PassengerVehicle.h"
#include "EmergencyEquipment.h"
#include "EmergecyVehicle.h"
#include "Decision.h"
#include <list>
using namespace std;
// temparorily commented.
/*
int main() {
// the vehicle list.
Decision::VehicleList vehicleList;
// create Vehicles. ... | 17.949153 | 84 | 0.68272 | elloop |
eb95266a0948bc9eeb811342cf7b0c16d3cba086 | 2,965 | cpp | C++ | src/blitzide2/FileView.cpp | blitz3d-ng/blitz3d-ng | adc829fb76e2c63612b50c725c0944b2b6b0ddaf | [
"Zlib"
] | 53 | 2017-08-10T10:52:34.000Z | 2021-12-09T18:03:30.000Z | src/blitzide2/FileView.cpp | kfprimm/blitz3d | adc829fb76e2c63612b50c725c0944b2b6b0ddaf | [
"Zlib"
] | 21 | 2017-05-03T20:28:28.000Z | 2022-03-25T12:11:00.000Z | src/blitzide2/FileView.cpp | kfprimm/blitz3d | adc829fb76e2c63612b50c725c0944b2b6b0ddaf | [
"Zlib"
] | 8 | 2017-04-23T02:09:24.000Z | 2022-02-01T21:17:27.000Z |
#include "FileView.h"
#include <wx/stc/stc.h>
#include <wx/textfile.h>
enum {
MARGIN_LINE_NUMBERS
};
static wxString keywordsList;
static bool keywordsLoaded=false;
// rgb_bkgrnd=RGB( 0x22,0x55,0x88 );
// rgb_string=RGB( 0x00,0xff,0x66 );
// rgb_ident=RGB( 0xff,0xff,0xff );
// rgb_keyword=RGB( 0xaa,0xff,0xff );
/... | 25.782609 | 100 | 0.696796 | blitz3d-ng |
eb978dad3af8589d102fe466e1899304c74afb4e | 2,754 | hpp | C++ | pythran/pythonic/numpy/transpose.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/transpose.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/transpose.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | 1 | 2017-03-12T20:32:36.000Z | 2017-03-12T20:32:36.000Z | #ifndef PYTHONIC_NUMPY_TRANSPOSE_HPP
#define PYTHONIC_NUMPY_TRANSPOSE_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/utils/numpy_conversion.hpp"
#include "pythonic/utils/nested_container.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/types/numpy_type.hpp"
#include "pythonic/__builtin__/Value... | 34.860759 | 143 | 0.520334 | Pikalchemist |
eba233191f70e61054b58edd9042d737ac537d7c | 9,636 | hpp | C++ | lib/include/efyj/matrix.hpp | quesnel/efyj | 5f214449e26000fb30f3a037cac52269704fe703 | [
"MIT"
] | 1 | 2021-05-04T16:06:55.000Z | 2021-05-04T16:06:55.000Z | lib/include/efyj/matrix.hpp | quesnel/efyj | 5f214449e26000fb30f3a037cac52269704fe703 | [
"MIT"
] | null | null | null | lib/include/efyj/matrix.hpp | quesnel/efyj | 5f214449e26000fb30f3a037cac52269704fe703 | [
"MIT"
] | null | null | null | /* Copyright (C) 2016-2017 INRA
*
* 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, publish, dis... | 26.766667 | 79 | 0.709734 | quesnel |
eba3edf7b9de7a2dad2aa25bddbc1f57d1ebfca3 | 10,787 | cpp | C++ | lonestar/gmetis/GMetis.cpp | bowu/Galois | 81f619a2bb1bdc95899729f2d96a7da38dd0c0a3 | [
"BSD-3-Clause"
] | null | null | null | lonestar/gmetis/GMetis.cpp | bowu/Galois | 81f619a2bb1bdc95899729f2d96a7da38dd0c0a3 | [
"BSD-3-Clause"
] | null | null | null | lonestar/gmetis/GMetis.cpp | bowu/Galois | 81f619a2bb1bdc95899729f2d96a7da38dd0c0a3 | [
"BSD-3-Clause"
] | null | null | null | /*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... | 33.5 | 85 | 0.605266 | bowu |
eba72406c8bd972322ff51424249df7f49ea68b4 | 388 | hpp | C++ | parpm/grid.hpp | shigh/parpm | 45d09bfa3103244fd8559dc32bc7c3ad5f83f614 | [
"MIT"
] | null | null | null | parpm/grid.hpp | shigh/parpm | 45d09bfa3103244fd8559dc32bc7c3ad5f83f614 | [
"MIT"
] | null | null | null | parpm/grid.hpp | shigh/parpm | 45d09bfa3103244fd8559dc32bc7c3ad5f83f614 | [
"MIT"
] | null | null | null |
#pragma once
#include "types.hpp"
struct Grid {
// Number of grid points
int Nx;
int Ny;
int Nz;
// Starting grid points
int Nx0;
int Ny0;
int Nz0;
// Length of domain in this grid
// Domain in this grid is [L0,L0+L]
FLOAT Lx;
FLOAT Ly;
FLOAT Lz;
FLOAT Lx0;
FLOAT Ly0;
FLOAT Lz0;
... | 11.411765 | 37 | 0.597938 | shigh |
eba7f09abce753624cea5622578aac1653fa435a | 28,858 | cpp | C++ | es/src/v20180416/EsClient.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | es/src/v20180416/EsClient.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | es/src/v20180416/EsClient.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 33.555814 | 215 | 0.682306 | suluner |
ebacd0352d7062bcc1367156311b30e3282f5317 | 864 | hpp | C++ | irohad/ametsuchi/wsv_restorer.hpp | IvanTyulyandin/iroha | 442a08325c7b808236569600653370e28ec5eff6 | [
"Apache-2.0"
] | 24 | 2016-09-26T17:11:46.000Z | 2020-03-03T13:42:58.000Z | irohad/ametsuchi/wsv_restorer.hpp | ecsantana76/iroha | 9cc430bb2c8eb885393e2a636fa92d1e605443ae | [
"Apache-2.0"
] | 11 | 2016-10-13T10:09:55.000Z | 2019-06-13T08:49:11.000Z | irohad/ametsuchi/wsv_restorer.hpp | ecsantana76/iroha | 9cc430bb2c8eb885393e2a636fa92d1e605443ae | [
"Apache-2.0"
] | 4 | 2016-09-27T13:18:28.000Z | 2019-08-05T20:47:15.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_WSVRESTORER_HPP
#define IROHA_WSVRESTORER_HPP
#include "common/result.hpp"
namespace iroha {
namespace ametsuchi {
class Storage;
/**
* Interface for World State View restoring from the ... | 23.351351 | 76 | 0.649306 | IvanTyulyandin |
ebae48b12ed38473e0991443ea1b7902cb844a6c | 19,369 | cpp | C++ | src/maze.cpp | TimQuelch/mazes | 486291e0c84264664953b1bebfa77593854d9e77 | [
"MIT"
] | 1 | 2018-05-15T02:27:12.000Z | 2018-05-15T02:27:12.000Z | src/maze.cpp | TimQuelch/mazes | 486291e0c84264664953b1bebfa77593854d9e77 | [
"MIT"
] | null | null | null | src/maze.cpp | TimQuelch/mazes | 486291e0c84264664953b1bebfa77593854d9e77 | [
"MIT"
] | null | null | null | /// \author Tim Quelch
#include <algorithm>
#include <chrono>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <png++/png.hpp>
#include <random>
#include <tuple>
#include "maze.h"
namespace mazes {
namespace detail {
/// Holds the x y coordinates of a point in the maze
... | 40.268191 | 100 | 0.466209 | TimQuelch |
ebb83be9b4f4f129f5275956a96bcaa9e416ebc4 | 2,720 | hpp | C++ | include/libtorrent/aux_/deferred_handler.hpp | projectxorg/libtorrent | 449b39318796addaafc6e655c9affc88706b8aa7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 50 | 2016-01-26T15:42:58.000Z | 2022-02-27T11:32:58.000Z | include/libtorrent/aux_/deferred_handler.hpp | projectxorg/libtorrent | 449b39318796addaafc6e655c9affc88706b8aa7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2016-04-05T02:38:33.000Z | 2017-06-01T20:16:29.000Z | include/libtorrent/aux_/deferred_handler.hpp | projectxorg/libtorrent | 449b39318796addaafc6e655c9affc88706b8aa7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 53 | 2016-01-25T01:14:54.000Z | 2022-03-13T10:20:36.000Z | /*
Copyright (c) 2017, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | 30.909091 | 78 | 0.766176 | projectxorg |
ebb8b68a37b50af44db4f0b268185c3f9781b188 | 842 | cpp | C++ | pix/Color.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 3 | 2019-04-20T10:16:36.000Z | 2021-03-21T19:51:38.000Z | pix/Color.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | null | null | null | pix/Color.cpp | Andrewich/deadjustice | 48bea56598e79a1a10866ad41aa3517bf7d7c724 | [
"BSD-3-Clause"
] | 2 | 2020-04-18T20:04:24.000Z | 2021-09-19T05:07:41.000Z | #include "Color.h"
#include "Colorf.h"
#include <assert.h>
#include "config.h"
//-----------------------------------------------------------------------------
namespace pix
{
inline static uint8_t convertColorFloatToByte( float src )
{
float f = src;
if ( f < 0.f )
f = 0.f;
else if ( f > 1.f )
... | 20.047619 | 80 | 0.472684 | Andrewich |
ebb9c905af47c4e3fd9c1e69f364d2108a856508 | 4,311 | hpp | C++ | modules/boost/simd/base/include/boost/simd/arithmetic/functions/generic/remquo.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/include/boost/simd/arithmetic/functions/generic/remquo.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/include/boost/simd/arithmetic/functions/generic/remquo.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2014 MetaScale SAS
//
// Distributed under the Boost Softw... | 40.28972 | 81 | 0.474136 | psiha |
ebbfad0796ffae5b6ca5cfef50b3b69190d2175d | 474 | cpp | C++ | tests/src/simple_modifications_json/src/simple_modifications_json_test.cpp | egelwan/Karabiner-Elements | 896439dd2130904275553282063dd7fe4852e1a8 | [
"Unlicense"
] | 2 | 2021-03-24T17:34:09.000Z | 2021-07-01T12:16:54.000Z | tests/src/simple_modifications_json/src/simple_modifications_json_test.cpp | XXXalice/Karabiner-Elements | 52f579cbf60251cf18915bd938eb4431360b763b | [
"Unlicense"
] | null | null | null | tests/src/simple_modifications_json/src/simple_modifications_json_test.cpp | XXXalice/Karabiner-Elements | 52f579cbf60251cf18915bd938eb4431360b763b | [
"Unlicense"
] | null | null | null | #include <catch2/catch.hpp>
#include "../../share/json_helper.hpp"
#include "manipulator/types.hpp"
#include <pqrs/json.hpp>
TEST_CASE("simple_modifications.json") {
auto json = krbn::unit_testing::json_helper::load_jsonc("../../../src/apps/PreferencesWindow/Resources/simple_modifications.json");
for (const auto&... | 31.6 | 133 | 0.694093 | egelwan |
ebc66fbe4477496f88babdff871bf18700c7e690 | 539 | cc | C++ | src/openvslam/data/bow_vocabulary.cc | soallak/openvslam | 23d155918a89eb791cf98bc25e1758b6e44f4f85 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | src/openvslam/data/bow_vocabulary.cc | soallak/openvslam | 23d155918a89eb791cf98bc25e1758b6e44f4f85 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | src/openvslam/data/bow_vocabulary.cc | soallak/openvslam | 23d155918a89eb791cf98bc25e1758b6e44f4f85 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | #include "openvslam/data/bow_vocabulary.h"
namespace openvslam {
namespace data {
namespace bow_vocabulary_util {
void compute_bow(data::bow_vocabulary* bow_vocab, const cv::Mat& descriptors, data::bow_vector& bow_vec, data::bow_feature_vector& bow_feat_vec) {
#ifdef USE_DBOW2
bow_vocab->transform(util::converter... | 29.944444 | 146 | 0.7718 | soallak |
ebc78addb8dbf2038ce1d61b33f5b6652537fd82 | 14,499 | cpp | C++ | ZooidEngine/ResourceManagers/MeshManager.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | 4 | 2019-05-31T22:55:49.000Z | 2020-11-26T11:55:34.000Z | ZooidEngine/ResourceManagers/MeshManager.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | null | null | null | ZooidEngine/ResourceManagers/MeshManager.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | 1 | 2018-04-11T02:50:47.000Z | 2018-04-11T02:50:47.000Z | #include "MeshManager.h"
#include "BufferManager.h"
#include "MaterialManager.h"
#include "SkeletonManager.h"
#include "Resources/Mesh.h"
#include "Resources/Material.h"
#include "FileSystem/FileReader.h"
#include "FileSystem/DirectoryHelper.h"
#include "Renderer/IRenderer.h"
#include "Physics/Physics.h"
#include... | 26.313975 | 110 | 0.682254 | azon04 |
ebc7ebe677453a33460d0d33c349895dbe0871ca | 5,036 | hpp | C++ | components/scream/src/share/util/scream_std_meta.hpp | AaronDonahue/scream | a1e1cc67ac6db87ce6525315a5548d0e7b0f5e97 | [
"zlib-acknowledgement",
"FTL",
"RSA-MD"
] | null | null | null | components/scream/src/share/util/scream_std_meta.hpp | AaronDonahue/scream | a1e1cc67ac6db87ce6525315a5548d0e7b0f5e97 | [
"zlib-acknowledgement",
"FTL",
"RSA-MD"
] | 3 | 2019-04-25T18:18:33.000Z | 2019-05-07T16:43:36.000Z | components/scream/src/share/util/scream_std_meta.hpp | AaronDonahue/scream | a1e1cc67ac6db87ce6525315a5548d0e7b0f5e97 | [
"zlib-acknowledgement",
"FTL",
"RSA-MD"
] | null | null | null | #ifndef SCREAM_STD_META_HPP
#define SCREAM_STD_META_HPP
/*
* Emulating c++1z features
*
* This file contains some features that belongs to the std namespace,
* and that are likely (if not already scheduled) to be in future standards.
* However, we have limited access to c++1z standard on target platforms,
* ... | 29.109827 | 157 | 0.691422 | AaronDonahue |
1b0ecd9d9b84ecee10157c72e9177550b3170fc2 | 1,200 | hpp | C++ | WinFelix/EncodingRenderer.hpp | 42Bastian/Felix | 3c0b31a245a7c73bae97ad39a378edcdde1e386d | [
"MIT"
] | 19 | 2021-10-31T20:57:14.000Z | 2022-03-22T11:48:56.000Z | WinFelix/EncodingRenderer.hpp | 42Bastian/Felix | 3c0b31a245a7c73bae97ad39a378edcdde1e386d | [
"MIT"
] | 99 | 2021-10-29T20:31:09.000Z | 2022-02-09T12:24:03.000Z | WinFelix/EncodingRenderer.hpp | 42Bastian/Felix | 3c0b31a245a7c73bae97ad39a378edcdde1e386d | [
"MIT"
] | 3 | 2021-11-05T15:14:41.000Z | 2021-12-11T14:16:11.000Z | #pragma once
class IEncoder;
class EncodingRenderer
{
public:
EncodingRenderer( std::shared_ptr<IEncoder> encoder, ComPtr<ID3D11Device> pD3DDevice, ComPtr<ID3D11DeviceContext> pImmediateContext, boost::rational<int32_t> refreshRate );
void renderEncoding( ID3D11ShaderResourceView* srv );
private:
... | 30.769231 | 175 | 0.706667 | 42Bastian |
1b17a79dbcbd4f9185be1bf7554e09d938888aea | 6,191 | cpp | C++ | Compiler/AST/ASTExpr.cpp | rozaxe/emojicode | de62ef1871859429e569e4275c38c18bd43c5271 | [
"Artistic-2.0"
] | 1 | 2018-12-31T03:57:28.000Z | 2018-12-31T03:57:28.000Z | Compiler/AST/ASTExpr.cpp | rozaxe/emojicode | de62ef1871859429e569e4275c38c18bd43c5271 | [
"Artistic-2.0"
] | null | null | null | Compiler/AST/ASTExpr.cpp | rozaxe/emojicode | de62ef1871859429e569e4275c38c18bd43c5271 | [
"Artistic-2.0"
] | 1 | 2019-01-01T13:34:14.000Z | 2019-01-01T13:34:14.000Z | //
// ASTExpr.cpp
// Emojicode
//
// Created by Theo Weidmann on 03/08/2017.
// Copyright © 2017 Theo Weidmann. All rights reserved.
//
#include "ASTExpr.hpp"
#include "Analysis/FunctionAnalyser.hpp"
#include "Compiler.hpp"
#include "Functions/Initializer.hpp"
#include "MemoryFlowAnalysis/MFFunctionAnalyser.hpp"
#... | 42.696552 | 120 | 0.689065 | rozaxe |
1b19c1da753967c960e5297f2bd9a409517e6f77 | 31,795 | cpp | C++ | libs/vision/src/tracking.cpp | mrliujie/mrpt-learning-code | 7b41a9501fc35c36580c93bc1499f5a36d26c216 | [
"BSD-3-Clause"
] | 2 | 2020-04-21T08:51:21.000Z | 2022-03-21T10:47:52.000Z | libs/vision/src/tracking.cpp | qifengl/mrpt | 979a458792273a86ec5ab105e0cd6c963c65ea73 | [
"BSD-3-Clause"
] | null | null | null | libs/vision/src/tracking.cpp | qifengl/mrpt | 979a458792273a86ec5ab105e0cd6c963c65ea73 | [
"BSD-3-Clause"
] | null | null | null | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | 34.005348 | 88 | 0.692436 | mrliujie |
1b1c2b6586c3a6de8fc761325bb22f65b1775fd5 | 14,936 | cpp | C++ | Runtime/Resource/Import/ImageImporter.cpp | slimlime/SpartanEngine | 9f1b14dc158eda0e951ee05824c5a4a1084dde14 | [
"MIT"
] | null | null | null | Runtime/Resource/Import/ImageImporter.cpp | slimlime/SpartanEngine | 9f1b14dc158eda0e951ee05824c5a4a1084dde14 | [
"MIT"
] | null | null | null | Runtime/Resource/Import/ImageImporter.cpp | slimlime/SpartanEngine | 9f1b14dc158eda0e951ee05824c5a4a1084dde14 | [
"MIT"
] | null | null | null | /*
Copyright(c) 2016-2021 Panos Karabelas
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, publish, distrib... | 36.518337 | 189 | 0.601834 | slimlime |
1b1f432683175f3753b72f8c9853fec747556e13 | 2,028 | hpp | C++ | include/nanorange/algorithm/min_element.hpp | paulbendixen/NanoRange | 993dc03ebb2d3de5395648f3c0d112d230127c65 | [
"BSL-1.0"
] | null | null | null | include/nanorange/algorithm/min_element.hpp | paulbendixen/NanoRange | 993dc03ebb2d3de5395648f3c0d112d230127c65 | [
"BSL-1.0"
] | null | null | null | include/nanorange/algorithm/min_element.hpp | paulbendixen/NanoRange | 993dc03ebb2d3de5395648f3c0d112d230127c65 | [
"BSL-1.0"
] | null | null | null | // nanorange/algorithm/min_element.hpp
//
// Copyright (c) 2018 Tristan Brindle (tcbrindle at gmail dot com)
// 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 NANORANGE_ALGORITHM_MIN_ELEMENT_HPP_INCLUDED
#def... | 28.971429 | 83 | 0.611933 | paulbendixen |
1b2102649b8327917e9f3305a46ab5cea968329c | 632 | cpp | C++ | Kattis_Problems/MosiquitoMultiplication.cpp | MAXI0008/Kattis-Problems | ff6ec752b741a56fc37a993c528fc925ca302cc8 | [
"MIT"
] | 3 | 2019-04-01T05:38:09.000Z | 2021-11-17T11:43:20.000Z | Kattis_Problems/MosiquitoMultiplication.cpp | MAXI0008/Algorithms-Practices | ff6ec752b741a56fc37a993c528fc925ca302cc8 | [
"MIT"
] | null | null | null | Kattis_Problems/MosiquitoMultiplication.cpp | MAXI0008/Algorithms-Practices | ff6ec752b741a56fc37a993c528fc925ca302cc8 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#define FOR(i, a, b) for(int (i) = (a); (i) <= (b); (i)++)
int main() {
int M, P, L, E, R, S, N;
int pre_M;
int pre_L;
int pre_P;
while (cin >> M && cin >> P && cin >> L && cin >> E && cin >> R && cin >> S && cin >> N) {
FOR(i, 0, N - 1) {
... | 20.387097 | 94 | 0.351266 | MAXI0008 |
1b22d3d8058cbc13b2f313ae6a9a9071f0727ba4 | 268 | cpp | C++ | (1)Beginner/1174/c++/1174.cpp | G4DavidAlmeida/mySolutionsUriOnline | 47e427e3205124da00a8a44fb9900086d85c30ec | [
"MIT"
] | null | null | null | (1)Beginner/1174/c++/1174.cpp | G4DavidAlmeida/mySolutionsUriOnline | 47e427e3205124da00a8a44fb9900086d85c30ec | [
"MIT"
] | null | null | null | (1)Beginner/1174/c++/1174.cpp | G4DavidAlmeida/mySolutionsUriOnline | 47e427e3205124da00a8a44fb9900086d85c30ec | [
"MIT"
] | null | null | null | #include<iostream>
#include<iomanip>
using namespace std;
int main(){
double x[100];
int i;
for(i=0;i<100;i++)cin >> x[i];
for(i=0;i<100;i++){
if(x[i]<=10){
cout << "A[" << i << "] = " << fixed << setprecision(1) << x[i] << endl;
}
}
return 0;
}
| 14.105263 | 76 | 0.503731 | G4DavidAlmeida |
1b2688575d9fca5eb44b23be640d94591e0bbacd | 336 | cpp | C++ | src/common/file_util.cpp | cugdc/Jumpy-Thieves | fc5a68ed6854dd9a057d433910ccfb1f6031256e | [
"Apache-2.0"
] | 2 | 2020-03-21T09:49:27.000Z | 2020-03-31T16:59:59.000Z | src/common/file_util.cpp | cugdc/Jumpy-Thieves | fc5a68ed6854dd9a057d433910ccfb1f6031256e | [
"Apache-2.0"
] | null | null | null | src/common/file_util.cpp | cugdc/Jumpy-Thieves | fc5a68ed6854dd9a057d433910ccfb1f6031256e | [
"Apache-2.0"
] | null | null | null | #include "file_util.hpp"
auto read_file(std::string_view path) -> std::string
{
std::ifstream file{path.data()};
if (!file.is_open()) {
spdlog::error("Cannot open file {}\n", path);
std::fflush(stdout);
}
std::stringstream ss;
// read file's buffer contents into streams
ss << file.rdbuf();
ret... | 18.666667 | 52 | 0.633929 | cugdc |
1b2b98101105315bf3d6eaae77eb3c1ef04e2077 | 1,782 | hpp | C++ | src/Rect.hpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | 1 | 2017-04-20T06:27:36.000Z | 2017-04-20T06:27:36.000Z | src/Rect.hpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | null | null | null | src/Rect.hpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | null | null | null | #ifndef Rect_hpp
#define Rect_hpp
#include "SDL.hpp"
#include <vector>
#include <utility>
namespace SDL
{
using namespace std::rel_ops;
struct Size
{
int w, h;
};
using Point = SDL_Point;
using Rect = SDL_Rect;
using Points = std::vector<Point>;
using Rects = std::vector<Rect... | 21.46988 | 95 | 0.540404 | JesseMaurais |
1b2f38e0e299b0cfe98825544ad980435b2968e8 | 1,313 | cpp | C++ | 4.3A.cpp | SushmaNagaraj/Coding | 9ec85c117fceb6b77512b0af513671bb8adce815 | [
"Apache-2.0"
] | 1 | 2019-05-19T19:59:55.000Z | 2019-05-19T19:59:55.000Z | 4.3A.cpp | SushmaNagaraj/Coding | 9ec85c117fceb6b77512b0af513671bb8adce815 | [
"Apache-2.0"
] | null | null | null | 4.3A.cpp | SushmaNagaraj/Coding | 9ec85c117fceb6b77512b0af513671bb8adce815 | [
"Apache-2.0"
] | null | null | null |
/**
Given pointers start and end that point to the
first and past the last element of a segment inside
an array, reverse all elements in the segment.
*/
void reverse(int* start, int* end)
{
int * tempEnd = end-1;
while(start < tempEnd)
{
int temp = *start;
*start = *te... | 20.84127 | 61 | 0.450114 | SushmaNagaraj |
1b2f85a1efd4185d3a0a3898bc24641c1d85851f | 1,773 | cpp | C++ | src/omwmm/extractor.cpp | luluco250/omwmm | ee9cd11e4876515c84ad4f2c97372ba23616ac2b | [
"MIT"
] | null | null | null | src/omwmm/extractor.cpp | luluco250/omwmm | ee9cd11e4876515c84ad4f2c97372ba23616ac2b | [
"MIT"
] | null | null | null | src/omwmm/extractor.cpp | luluco250/omwmm | ee9cd11e4876515c84ad4f2c97372ba23616ac2b | [
"MIT"
] | null | null | null | #include <omwmm/extractor.hpp>
#include <filesystem>
#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include <algorithm>
#include <cctype>
#include <7zpp/7zpp.h>
#include <omwmm/exceptions.hpp>
using SevenZip::SevenZipLibrary;
using SevenZip::SevenZipExtractor;
using SevenZipStr... | 25.328571 | 72 | 0.72758 | luluco250 |
1b2fba2d04eb922606dcd40ed10f58c7689e3ec8 | 665 | cpp | C++ | src/vswhere.lib/Exceptions.cpp | www22111/vswhere | ded0fdd04473772af1dd001d82b6e3c871731788 | [
"MIT"
] | 335 | 2019-05-08T04:02:50.000Z | 2022-03-30T20:41:31.000Z | src/vswhere.lib/Exceptions.cpp | www22111/vswhere | ded0fdd04473772af1dd001d82b6e3c871731788 | [
"MIT"
] | 79 | 2019-05-07T18:48:27.000Z | 2022-03-16T22:27:59.000Z | src/vswhere.lib/Exceptions.cpp | www22111/vswhere | ded0fdd04473772af1dd001d82b6e3c871731788 | [
"MIT"
] | 39 | 2019-06-26T22:04:30.000Z | 2022-01-07T15:09:44.000Z | // <copyright file="Exceptions.cpp" company="Microsoft Corporation">
// Copyright (C) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt in the project root for license information.
// </copyright>
#include "stdafx.h"
using namespace std;
wstring win32_error::format_messag... | 28.913043 | 161 | 0.703759 | www22111 |
1b323dc164b2b53e4f2f7e516b224d02093d42ff | 61,762 | cxx | C++ | src/ramsesio.cxx | bwvdnbro/VELOCIraptor-STF | 9c4a07eee20309152bcde40602029315c8bd50ca | [
"MIT"
] | 4 | 2020-08-28T11:29:09.000Z | 2021-10-16T20:17:54.000Z | src/ramsesio.cxx | bwvdnbro/VELOCIraptor-STF | 9c4a07eee20309152bcde40602029315c8bd50ca | [
"MIT"
] | 118 | 2019-05-06T11:46:28.000Z | 2022-03-14T17:14:37.000Z | src/ramsesio.cxx | bwvdnbro/VELOCIraptor-STF | 9c4a07eee20309152bcde40602029315c8bd50ca | [
"MIT"
] | 4 | 2020-10-01T05:22:31.000Z | 2021-07-26T13:07:42.000Z | /*! \file ramsesio.cxx
* \brief this file contains routines for ramses snapshot file io
*
* \todo need to check if amr file quantity ngrid_current is actually the number of cells in the file as
* an example fortran code I have been given seems to also use the ngridlevel array, which stores the number of cells
* a... | 45.114682 | 221 | 0.595884 | bwvdnbro |
1b33777a2a36ad950befdfe2fc1206700de58728 | 4,432 | cpp | C++ | tools/nx_probe.cpp | tienex/apfs | afc6041c6078d3bc96c2ffec8ea6a8e572b79678 | [
"MIT"
] | 42 | 2017-12-01T15:23:20.000Z | 2022-02-25T07:08:28.000Z | tools/nx_probe.cpp | tienex/apfs | afc6041c6078d3bc96c2ffec8ea6a8e572b79678 | [
"MIT"
] | 3 | 2017-12-04T19:31:53.000Z | 2018-07-27T22:47:41.000Z | tools/nx_probe.cpp | tienex/apfs | afc6041c6078d3bc96c2ffec8ea6a8e572b79678 | [
"MIT"
] | 5 | 2017-12-02T22:10:53.000Z | 2019-11-15T05:06:46.000Z | /*
* Copyright (c) 2017-present Orlando Bassotto
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 26.538922 | 81 | 0.580325 | tienex |
1b33bc669f78412647362d828eaa5216b33aa488 | 632 | cpp | C++ | 3425/6859847_AC_16MS_236K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 3425/6859847_AC_16MS_236K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 3425/6859847_AC_16MS_236K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #include<iostream>
#include<map>
using namespace std;
int main(){
int answerNum;
cin>>answerNum;
map<int,int> correctAnswerNum;
int payment=0;
while(answerNum--){
int questionID;
bool correct,withExplanaion;
cin>>questionID>>correct>>withExplanaion;
if(correct){
if(withExplanaion)
pa... | 20.387097 | 65 | 0.664557 | vandreas19 |
1b35b13dfbc9ac339d9e12246414b4aa61a1a6c6 | 624 | cpp | C++ | LeetCode/Problems/Algorithms/#1695_MaximumErasureValue_sol2_sliding_window_O(N+MAX_ELEM)_time_O(MAX_ELEM)_extra_space_156ms_89.1MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#1695_MaximumErasureValue_sol2_sliding_window_O(N+MAX_ELEM)_time_O(MAX_ELEM)_extra_space_156ms_89.1MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#1695_MaximumErasureValue_sol2_sliding_window_O(N+MAX_ELEM)_time_O(MAX_ELEM)_extra_space_156ms_89.1MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
public:
int maximumUniqueSubarray(vector<int>& nums) {
const int N = nums.size();
const int MAX_ELEM = *max_element(nums.begin(), nums.end());
int answer = 0;
vector<bool> vis(MAX_ELEM + 1, false);
for(int i = 0, j = 0, sum = 0; j < N; ++j){
... | 28.363636 | 69 | 0.410256 | Tudor67 |
1b3a262e959eca2cba52e2f2f5e971429ce17db9 | 568 | cpp | C++ | Engine/SQ/Renderer/Renderer.cpp | chry003/SqEngine | bb98881a29da48c8c92b33c3534da1fcdd46b92a | [
"MIT"
] | null | null | null | Engine/SQ/Renderer/Renderer.cpp | chry003/SqEngine | bb98881a29da48c8c92b33c3534da1fcdd46b92a | [
"MIT"
] | null | null | null | Engine/SQ/Renderer/Renderer.cpp | chry003/SqEngine | bb98881a29da48c8c92b33c3534da1fcdd46b92a | [
"MIT"
] | null | null | null | #include "pch.hpp"
#include "Renderer.hpp"
namespace Sq {
Renderer::OrthographicCameraMatrix* Renderer::m_RendererElements = new Renderer::OrthographicCameraMatrix;
void Renderer::Begin(OrthographicCamera& camera)
{
m_RendererElements->ViewProjectionMatrix = camera.GetViewProjectionMatrix();
}
void Renderer... | 25.818182 | 107 | 0.772887 | chry003 |
1b3a7e04b3e2384f8f7c4fec8d5927b598e19444 | 4,804 | cpp | C++ | apps/ossim-cli/ossim-cli.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 1 | 2018-03-04T10:45:56.000Z | 2018-03-04T10:45:56.000Z | apps/ossim-cli/ossim-cli.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | null | null | null | apps/ossim-cli/ossim-cli.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | null | null | null | //**************************************************************************************************
//
// OSSIM Open Source Geospatial Data Processing Library
// See top level LICENSE.txt file for license information
//
//*****************************************************************************************... | 28.093567 | 100 | 0.541216 | IvanLJF |
1b3d730d31d8ba59d01928ed4ffef1d92a825262 | 1,065 | hpp | C++ | libs/cg/include/sge/cg/parameter/detail/check_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/cg/include/sge/cg/parameter/detail/check_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/cg/include/sge/cg/parameter/detail/check_type.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_CG_PARAMETER_DETAIL_CHECK_TYPE_HPP_INCLUDED
#define SGE_CG_PARAMETER_DETAIL_CHECK_TYPE_... | 33.28125 | 96 | 0.781221 | cpreh |
1b44f1786a0e9ff5bb3663ab4bfc25af064cea78 | 8,420 | hpp | C++ | include/codegen/include/Zenject/PlaceholderFactory_11.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/PlaceholderFactory_11.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/PlaceholderFactory_11.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:44 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: Zenject.PlaceholderFactoryBase`1
#include "Zenject/PlaceholderFactoryBase_1.hpp"
// Incl... | 65.78125 | 428 | 0.740855 | Futuremappermydud |
1b46e1fbcd5e96681945dca1dce78d1d4eed6306 | 524 | cpp | C++ | src/utils.cpp | armagidon-exception/watch-os | 83c9adf814313f88101d8a57da1e50c45e98bb49 | [
"MIT"
] | null | null | null | src/utils.cpp | armagidon-exception/watch-os | 83c9adf814313f88101d8a57da1e50c45e98bb49 | [
"MIT"
] | null | null | null | src/utils.cpp | armagidon-exception/watch-os | 83c9adf814313f88101d8a57da1e50c45e98bb49 | [
"MIT"
] | null | null | null | #include "utils.h"
void setBit(uint8_t* data, uint8_t bit, bool flag) {
if (flag) {
*data = *data | (1 << bit);
} else {
*data = *data & ~(1 << bit);
}
}
Dimension createDimension(unit w, unit h) {
return {w, h};
}
Vec2D createVec2D(unit x, unit y) {
return {x, y};
}
sunit getVec... | 16.375 | 52 | 0.5 | armagidon-exception |
1b4738d727dd738d156ea45e7f725d74c208cc7c | 10,090 | cpp | C++ | modules/serialflash/spiflash.cpp | nvitya/nvcm | 80b5fb2736b400a10edeecdaf24eb998dfab9759 | [
"Zlib"
] | 13 | 2018-02-26T14:56:02.000Z | 2022-03-31T06:01:56.000Z | modules/serialflash/spiflash.cpp | nvitya/nvcm | 80b5fb2736b400a10edeecdaf24eb998dfab9759 | [
"Zlib"
] | null | null | null | modules/serialflash/spiflash.cpp | nvitya/nvcm | 80b5fb2736b400a10edeecdaf24eb998dfab9759 | [
"Zlib"
] | 3 | 2020-11-04T09:15:01.000Z | 2021-07-06T09:42:00.000Z | /* -----------------------------------------------------------------------------
* This file is a part of the NVCM project: https://github.com/nvitya/nvcm
* Copyright (c) 2018 Viktor Nagy, nvitya
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held ... | 20.50813 | 81 | 0.56888 | nvitya |
1b48e13003361890ece0a6ccd6af14a81d94865b | 48 | hpp | C++ | examples/shared-sources/Source/Hello.hpp | chaos0x8/rake-builder | 6320739bc1f4e9a9ec31af5cb12bf813b30eed66 | [
"MIT"
] | 2 | 2020-10-27T11:32:42.000Z | 2020-10-28T21:12:20.000Z | examples/shared-sources/Source/Hello.hpp | chaos0x8/rake-builder | 6320739bc1f4e9a9ec31af5cb12bf813b30eed66 | [
"MIT"
] | null | null | null | examples/shared-sources/Source/Hello.hpp | chaos0x8/rake-builder | 6320739bc1f4e9a9ec31af5cb12bf813b30eed66 | [
"MIT"
] | null | null | null | #pragma once
namespace lib {
void hello();
}
| 8 | 15 | 0.645833 | chaos0x8 |
1b4dc36550029270b7674cb5c6607127fc4f5938 | 556 | hpp | C++ | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/system/audio.hpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 1,414 | 2015-06-28T09:57:51.000Z | 2021-10-14T03:51:10.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/system/audio.hpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 2,369 | 2015-06-25T01:45:44.000Z | 2021-10-16T08:44:18.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/system/audio.hpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 430 | 2015-06-29T04:28:58.000Z | 2021-10-05T18:24:17.000Z | struct Audio {
void coprocessor_enable(bool state);
void coprocessor_frequency(double frequency);
void sample(int16 lsample, int16 rsample);
void coprocessor_sample(int16 lsample, int16 rsample);
void init();
private:
nall::DSP dspaudio;
bool coprocessor;
enum : unsigned { buffer_size = 256, buffer_mas... | 26.47619 | 71 | 0.757194 | redscientistlabs |
1b51f0f5083947eacae4626a9abc0faf9a1f657b | 7,706 | cpp | C++ | artifact/storm/src/storm/modelchecker/prctl/helper/BaierUpperRewardBoundsComputer.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/modelchecker/prctl/helper/BaierUpperRewardBoundsComputer.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/modelchecker/prctl/helper/BaierUpperRewardBoundsComputer.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include "storm/modelchecker/prctl/helper/BaierUpperRewardBoundsComputer.h"
#include "storm/adapters/RationalNumberAdapter.h"
#include "storm/storage/SparseMatrix.h"
#include "storm/storage/BitVector.h"
#include "storm/storage/StronglyConnectedComponentDecomposition.h"
#include "storm/utility/macros.h"
namespace st... | 53.513889 | 363 | 0.511549 | glatteis |
1b53a37578a685ec07c72fc040ef7929d3048973 | 1,378 | cpp | C++ | Deitel/Chapter06/exercises/6.17/ex_617.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | Deitel/Chapter06/exercises/6.17/ex_617.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | Deitel/Chapter06/exercises/6.17/ex_617.cpp | eirichan/CppLearingArchive | 07a4baf63f0765d41eb0cc6d32a4c9d2ae1d5bac | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | /*
* =====================================================================================
*
* Filename:
*
* Description:
*
* Version: 1.0
* Created: Thanks to github you know it
* Revision: none
* Compiler: g++
*
* Author: Mahmut Erdem ÖZGEN m.erdemozgen... | 28.708333 | 94 | 0.498549 | SebastianTirado |
1b5e0ce8d017488337862f7e9b41acfffb6ff73d | 1,936 | cpp | C++ | src/trace/buffer.cpp | ArnauBigas/chopstix | 37831cdbddf8ad3b11e9cc8fd2dd2999907e44ed | [
"Apache-2.0"
] | 3 | 2019-06-06T12:57:24.000Z | 2020-03-21T15:25:48.000Z | src/trace/buffer.cpp | ArnauBigas/chopstix | 37831cdbddf8ad3b11e9cc8fd2dd2999907e44ed | [
"Apache-2.0"
] | 32 | 2019-06-17T20:31:33.000Z | 2022-03-02T16:43:41.000Z | src/trace/buffer.cpp | ArnauBigas/chopstix | 37831cdbddf8ad3b11e9cc8fd2dd2999907e44ed | [
"Apache-2.0"
] | 5 | 2019-06-06T12:57:41.000Z | 2020-06-29T14:42:02.000Z | /*
#
# ----------------------------------------------------------------------------
#
# Copyright 2019 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.or... | 27.657143 | 111 | 0.63843 | ArnauBigas |
1b62def7ce8e586f33b3d5b271743adf094d9136 | 2,987 | cpp | C++ | aws-cpp-sdk-imagebuilder/source/model/PipelineExecutionStartCondition.cpp | grujicbr/aws-sdk-cpp | bdd43c178042f09c6739645e3f6cd17822a7c35c | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-imagebuilder/source/model/PipelineExecutionStartCondition.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-imagebuilder/source/model/PipelineExecutionStartCondition.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"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... | 36.876543 | 160 | 0.709742 | grujicbr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.