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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c69a852a23024887d227bc695adfcee29828933e | 2,046 | hh | C++ | repos/ComponentUUVSimulator/smartsoft/src-gen/NavigationVelocityServiceInUpcallManager.hh | skarvtech/uwrosys | c9e82e4496c5d334b53e835ca6a2d8c3c3a82dc4 | [
"Apache-2.0"
] | null | null | null | repos/ComponentUUVSimulator/smartsoft/src-gen/NavigationVelocityServiceInUpcallManager.hh | skarvtech/uwrosys | c9e82e4496c5d334b53e835ca6a2d8c3c3a82dc4 | [
"Apache-2.0"
] | null | null | null | repos/ComponentUUVSimulator/smartsoft/src-gen/NavigationVelocityServiceInUpcallManager.hh | skarvtech/uwrosys | c9e82e4496c5d334b53e835ca6a2d8c3c3a82dc4 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... | 37.2 | 115 | 0.76002 | skarvtech |
c69abb2e5ccfcc20dbbffee17c89e8b114307d9c | 3,121 | cpp | C++ | src/c_update.cpp | DreamHacks/dd3d | 4665cc6e55b415c48385c6b6279bb3fd5f8e4bc9 | [
"MIT"
] | null | null | null | src/c_update.cpp | DreamHacks/dd3d | 4665cc6e55b415c48385c6b6279bb3fd5f8e4bc9 | [
"MIT"
] | null | null | null | src/c_update.cpp | DreamHacks/dd3d | 4665cc6e55b415c48385c6b6279bb3fd5f8e4bc9 | [
"MIT"
] | 5 | 2017-07-09T12:03:19.000Z | 2022-02-09T09:37:36.000Z | #include "dd3d.h"
#include "m_user.h"
#include "m_service.h"
#include "connection.h"
#include "message.h"
#include "c_update.h"
const mysqlpp::sql_text* c_update_get_desc(const ReleaseInfo* info, uint32_t locale_id) {
const mysqlpp::sql_text* rv = NULL;
if (info->desc_map.size()) {
if (locale_id == 0 || !info->de... | 37.154762 | 114 | 0.725088 | DreamHacks |
c69c325fb02c8af2c27d6e2cd9df664962804d86 | 13,863 | cpp | C++ | Coin3D/src/Inventor/Win/widgets/SoWinBitmapButton.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | Coin3D/src/Inventor/Win/widgets/SoWinBitmapButton.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | Coin3D/src/Inventor/Win/widgets/SoWinBitmapButton.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | /**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... | 28.119675 | 93 | 0.611844 | pniaz20 |
c69de44dd7fc42c74f379371de021d15d87f4686 | 807 | cpp | C++ | arith_instructions/slli.cpp | vinodganesan/shaktiISS | fb48e202596989004136b3d44e6fcfa191ba6ea8 | [
"BSD-3-Clause"
] | null | null | null | arith_instructions/slli.cpp | vinodganesan/shaktiISS | fb48e202596989004136b3d44e6fcfa191ba6ea8 | [
"BSD-3-Clause"
] | null | null | null | arith_instructions/slli.cpp | vinodganesan/shaktiISS | fb48e202596989004136b3d44e6fcfa191ba6ea8 | [
"BSD-3-Clause"
] | null | null | null | //Program for SLLI opcode
//SLLI is a logical left shift (zeros are shifted into the lower bits)
#include <stdio.h>
void slli(int rd,int rs1, int *shamt)
{
int shamt64[64], temp[64];
int shift;
int i = 0;
for (i= 0; i < 6; ++i)
{
shamt64[63-i] = shamt[5-i];
}
i = 0;
while(i < 58)
{
shamt6... | 16.8125 | 71 | 0.473358 | vinodganesan |
c69f222fda95a9c7e5792be4e337d685d921ce8b | 780 | cpp | C++ | list-jkc.cpp | superblocks/superblocks | 920dc78c2dfb4b3cbc5f0f316c1db82e76d083cc | [
"Unlicense"
] | 3 | 2018-09-09T10:05:38.000Z | 2020-11-06T02:11:46.000Z | list-jkc.cpp | superblocks/superblocks | 920dc78c2dfb4b3cbc5f0f316c1db82e76d083cc | [
"Unlicense"
] | null | null | null | list-jkc.cpp | superblocks/superblocks | 920dc78c2dfb4b3cbc5f0f316c1db82e76d083cc | [
"Unlicense"
] | null | null | null | // JKC superblocks list
// Superblocks - Version 0.4.3
//
// explorer: http://block.al.tcoin.info/chain/JKCCoin
// explorer: http://jkc.cryptocoinexplorer.com/
#include <iostream>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/uniform_int_distribution.hpp>
using namespace std;
using namespace boos... | 24.375 | 60 | 0.662821 | superblocks |
c6a040f0be24a921afeaf1bf5274a7e5ced30a62 | 4,351 | hpp | C++ | include/spotless_mini_explorer/pathPlanner.hpp | smahajan07/spotless_mini_explorer | 7e7eb1915cbc62f3e0db841eee9a87a99f8cf0e5 | [
"MIT"
] | 2 | 2021-01-29T07:39:39.000Z | 2021-01-30T02:10:04.000Z | include/spotless_mini_explorer/pathPlanner.hpp | smahajan07/spotless_mini_explorer | 7e7eb1915cbc62f3e0db841eee9a87a99f8cf0e5 | [
"MIT"
] | null | null | null | include/spotless_mini_explorer/pathPlanner.hpp | smahajan07/spotless_mini_explorer | 7e7eb1915cbc62f3e0db841eee9a87a99f8cf0e5 | [
"MIT"
] | null | null | null | /** MIT License
Copyright (c) 2018 Sarthak Mahajan
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, p... | 32.470149 | 80 | 0.745116 | smahajan07 |
c6a1cf6a79f8750f792a1817b230be19b22a155d | 2,443 | cpp | C++ | JNI_Demo/rsademo/src/main/cpp/MyBASE64.cpp | 710224800/JNI_Demo | 13f629c6a2472d451191631bf1c9129cc9485fa1 | [
"Apache-2.0"
] | 4 | 2018-05-09T16:26:56.000Z | 2020-05-28T06:03:20.000Z | JNI_Demo/rsademo/src/main/cpp/MyBASE64.cpp | 710224800/JNI_Demo | 13f629c6a2472d451191631bf1c9129cc9485fa1 | [
"Apache-2.0"
] | null | null | null | JNI_Demo/rsademo/src/main/cpp/MyBASE64.cpp | 710224800/JNI_Demo | 13f629c6a2472d451191631bf1c9129cc9485fa1 | [
"Apache-2.0"
] | null | null | null | //
// Created by gzbd on 2016/12/7.
//
#include <evp.h>
#include "MyBASE64.h"
#include <bio.h>
#include <buffer.h>
#include "Log.h"
std::string MyBASE64::base64_encodestring(const std::string &text ){
EVP_ENCODE_CTX ectx;
int size = text.size()*2;
size = size > 64 ? size : 64;
unsigned char* out = (u... | 23.718447 | 93 | 0.635284 | 710224800 |
c6a47bbd3d132f61dc02569358c338938e788e56 | 217 | cpp | C++ | concurrency/02_lambda_thread.cpp | anancds/modern-cpp | 4d656b56e33f437fd586f963ac49f760e6e23238 | [
"MIT"
] | null | null | null | concurrency/02_lambda_thread.cpp | anancds/modern-cpp | 4d656b56e33f437fd586f963ac49f760e6e23238 | [
"MIT"
] | null | null | null | concurrency/02_lambda_thread.cpp | anancds/modern-cpp | 4d656b56e33f437fd586f963ac49f760e6e23238 | [
"MIT"
] | null | null | null | //
// Created by cds on 2020/10/7.
//
#include <iostream>
#include <thread>
using namespace std;
int main() {
thread t([] {
cout << "Hello World from lambda thread." << endl;
});
t.join();
return 0;
} | 12.055556 | 54 | 0.580645 | anancds |
c6a6e62e35813b9c4c76fc6e998c0d57d7412b01 | 12,044 | hpp | C++ | src/LinAlg/hiopMatrixSparseCSR.hpp | fritzgoebel/hiop | 86e4e1b9899a0e21d74a3ad9a8aa973e0e289b98 | [
"BSD-3-Clause"
] | null | null | null | src/LinAlg/hiopMatrixSparseCSR.hpp | fritzgoebel/hiop | 86e4e1b9899a0e21d74a3ad9a8aa973e0e289b98 | [
"BSD-3-Clause"
] | null | null | null | src/LinAlg/hiopMatrixSparseCSR.hpp | fritzgoebel/hiop | 86e4e1b9899a0e21d74a3ad9a8aa973e0e289b98 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2021-2022, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory (LLNL).
// LLNL-CODE-742473. All rights reserved.
//
// This file is part of HiOp. For details, see https://github.com/LLNL/hiop. HiOp
// is released under the BSD 3-clause license (https://o... | 41.965157 | 100 | 0.692876 | fritzgoebel |
c6a82e2f63884345bb9166e4363862402b108fb3 | 286 | cpp | C++ | Source/SystemQOR/Linux/LinQSys/version.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/Linux/LinQSys/version.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/Linux/LinQSys/version.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | #ifdef SHARED
#include "LinQSys/version.h"
namespace nsLinux
{
static const char version[] = VERSION;
//------------------------------------------------------------------------------
const char *__libc_get_version()
{
return version;
}
}//nsLinux
#endif
| 16.823529 | 84 | 0.454545 | mfaithfull |
c6a9bf6bfb008d91a3aa4234d2c5692aa2b6c9b9 | 15,856 | hpp | C++ | PGC_openssl/depends/twisted_elgamal/twisted_elgamal.hpp | yuchen1024/libPGC | 9720b9e750991fee4fe7253b446ea7761665e424 | [
"MIT"
] | 9 | 2019-08-26T05:40:45.000Z | 2021-03-29T03:03:37.000Z | PGC_openssl/depends/twisted_elgamal/twisted_elgamal.hpp | yuchen1024/libPGC | 9720b9e750991fee4fe7253b446ea7761665e424 | [
"MIT"
] | null | null | null | PGC_openssl/depends/twisted_elgamal/twisted_elgamal.hpp | yuchen1024/libPGC | 9720b9e750991fee4fe7253b446ea7761665e424 | [
"MIT"
] | 2 | 2019-11-10T11:25:43.000Z | 2020-06-10T08:09:24.000Z | /****************************************************************************
this hpp implements twisted ElGamal encrypt scheme
*****************************************************************************
* @author This file is part of PGC, developed by Yu Chen
* @paper https://eprint.iacr.org/2019/319
* @co... | 31.585657 | 132 | 0.63528 | yuchen1024 |
c6b321375a31dce3fb29f1543b4fd49167282238 | 2,700 | cpp | C++ | XboxFramework/Texture.cpp | luca1337/D3D11XboxFramework | 92bafecb443d3fabbf4b302da2e55322657acc42 | [
"MIT"
] | null | null | null | XboxFramework/Texture.cpp | luca1337/D3D11XboxFramework | 92bafecb443d3fabbf4b302da2e55322657acc42 | [
"MIT"
] | null | null | null | XboxFramework/Texture.cpp | luca1337/D3D11XboxFramework | 92bafecb443d3fabbf4b302da2e55322657acc42 | [
"MIT"
] | null | null | null | #include "Texture.h"
#include "Engine.h"
#include "Window.h"
#include "ShaderObject.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
Texture::Texture(UINT width, UINT height, DXGI_FORMAT format) : width(width), height(height)
{
// create a new texture
D3D11_TEXTURE2D_DESC tex_desc = {};
tex_desc.ArraySi... | 24.107143 | 111 | 0.728148 | luca1337 |
c6b36520f2174eec4ec06f688ce9f924539d63de | 1,035 | cpp | C++ | ares/md/interface/interface.cpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/md/interface/interface.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/md/interface/interface.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | #include <md/md.hpp>
namespace ares::MegaDrive {
Interface* interface = nullptr;
auto MegaDriveInterface::game() -> string {
if(expansion.node && (!cartridge.node || !cartridge.bootable())) {
if(mcd.disc) return mcd.name();
return expansion.name();
}
if(cartridge.node && cartridge.bootable()) {
re... | 19.166667 | 68 | 0.684058 | moon-chilled |
c6b3cdcd60b407ab0803392db583ed427bb063e4 | 1,161 | cpp | C++ | src/test/TankWarlockTestCase.cpp | MaNGOSBot/Uno | e5c95da966c367f1425d0d1d737bfdfc14362964 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | 1 | 2018-05-06T12:13:04.000Z | 2018-05-06T12:13:04.000Z | src/test/TankWarlockTestCase.cpp | Lidocian/ZeroBots | 297072e07f85fc661e1b0e9a34c09580e3bfef14 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/test/TankWarlockTestCase.cpp | Lidocian/ZeroBots | 297072e07f85fc661e1b0e9a34c09580e3bfef14 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | #include "pch.h"
#include "aitest.h"
#include "../../modules/Bots/playerbot/strategy/warlock/WarlockAiObjectContext.h"
using namespace ai;
class TankWarlockTestCase : public EngineTestBase
{
CPPUNIT_TEST_SUITE( TankWarlockTestCase );
CPPUNIT_TEST( summonPet );
CPPUNIT_TEST( cc );
CPPUNIT_TEST( i... | 20.017241 | 81 | 0.631352 | MaNGOSBot |
c6b9e9fe0b6b125539f3ba144a354208275ce8c7 | 5,039 | cpp | C++ | alzette_box.cpp | 11320808551/rotational_cryptanalysis_dl | 1f36617d27d30d793f68a028ede842b0c2e83bff | [
"MIT"
] | 3 | 2021-02-17T10:21:07.000Z | 2021-03-23T02:28:00.000Z | alzette_box.cpp | 11320808551/rotational_cryptanalysis_dl | 1f36617d27d30d793f68a028ede842b0c2e83bff | [
"MIT"
] | null | null | null | alzette_box.cpp | 11320808551/rotational_cryptanalysis_dl | 1f36617d27d30d793f68a028ede842b0c2e83bff | [
"MIT"
] | 1 | 2021-12-25T07:42:58.000Z | 2021-12-25T07:42:58.000Z | //alzette_dl function == theoretical correlation
//alzette_dl_exper function == experimental correlation
#include<iostream>
#include<cstdlib>
#include<cstdint>
#include<cmath>
#include<random>
#define XOR(p1,p2) (p1+p2-2*p1*p2)
#define AND(p1,p2) ((p1+p2-p1*p2)*0.5)
#define mix(p1,p2,p3) (p1*p2*p3-0.5*(p1*p2... | 34.278912 | 246 | 0.520937 | 11320808551 |
c6bc90fe6b1e908499a620f11296d84357fbb81f | 1,561 | hpp | C++ | include/desola/tg/Exceptions.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | 2 | 2021-12-17T10:46:20.000Z | 2021-12-18T11:53:50.000Z | include/desola/tg/Exceptions.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | null | null | null | include/desola/tg/Exceptions.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************/
/* Copyright 2005-2006, Francis Russell */
/* */
/* Licensed under the Apache License, Version 2.0 (the License); */
/* y... | 40.025641 | 78 | 0.436259 | FrancisRussell |
c6bd90c2a305cb3747f67878100748c809cdafd7 | 3,440 | hpp | C++ | tools/src/map/map.hpp | dasisttao/scan_matching | f3021ca28f86606d183b2f2c5b0cad45f04f6e12 | [
"MIT"
] | null | null | null | tools/src/map/map.hpp | dasisttao/scan_matching | f3021ca28f86606d183b2f2c5b0cad45f04f6e12 | [
"MIT"
] | null | null | null | tools/src/map/map.hpp | dasisttao/scan_matching | f3021ca28f86606d183b2f2c5b0cad45f04f6e12 | [
"MIT"
] | null | null | null | #pragma once
#include <ros/ros.h>
#include <csv/csv.h>
#include <scan_match/var_defs.hpp>
#include <scan_match/transform.hpp>
#include <scan_match/utils.hpp>
class MyMap
{
public:
void readMapCrossroad(sensor_msgs::PointCloud2 &my_map, MyPointCloud2D &map_crossroad);
void rotatePoint(double &x, double &y, doub... | 28.429752 | 108 | 0.6375 | dasisttao |
c6bdc1cf590616904ad2d6e3c056c09e1d791646 | 10,732 | cpp | C++ | src/ASAF8.cpp | CardinalModules/mscHack | cf6b1aa5ae47a9e56a0f2ddb0c1aa54927134fb5 | [
"MIT"
] | null | null | null | src/ASAF8.cpp | CardinalModules/mscHack | cf6b1aa5ae47a9e56a0f2ddb0c1aa54927134fb5 | [
"MIT"
] | 1 | 2022-02-03T20:22:41.000Z | 2022-02-03T20:52:04.000Z | src/ASAF8.cpp | CardinalModules/mscHack | cf6b1aa5ae47a9e56a0f2ddb0c1aa54927134fb5 | [
"MIT"
] | null | null | null | #include "mscHack.hpp"
#define nCHANNELS 8
#define nENVELOPE_SEGS 5
typedef struct
{
float m, b;
}ENV_SEG;
//-----------------------------------------------------
// Module Definition
//
//-----------------------------------------------------
struct ASAF8 : Module
{
enum ParamIds
{
PARAM_S... | 26.048544 | 184 | 0.490868 | CardinalModules |
c6beffdea51a98f3b6b0068ef381173a020c6f2e | 2,111 | hxx | C++ | include/nifty/graph/opt/common/solver_base.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 38 | 2016-06-29T07:42:50.000Z | 2021-12-09T09:25:25.000Z | include/nifty/graph/opt/common/solver_base.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 62 | 2016-07-27T16:07:53.000Z | 2022-03-30T17:24:36.000Z | include/nifty/graph/opt/common/solver_base.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 20 | 2016-01-25T21:21:52.000Z | 2021-12-09T09:25:16.000Z | #pragma once
#include <string>
#include <initializer_list>
#include <sstream>
#include <stdexcept>
#include "nifty/exceptions/exceptions.hxx"
#include "nifty/graph/opt/common/solver_base.hxx"
#include "nifty/graph/opt/common/visitor_base.hxx"
namespace nifty {
namespace graph {
namespace opt{
namespace commo... | 30.157143 | 90 | 0.641402 | konopczynski |
c6c1a1437413e08ac6b3f1ab7e02a899a6ee1cf2 | 2,787 | cpp | C++ | Lab7/F.cpp | satans404/CS203-2020fal-SUSTech | 356e616081962e04477912d2d81d31fd1b85fa23 | [
"MIT"
] | 2 | 2020-11-25T11:10:39.000Z | 2020-11-26T12:22:23.000Z | Lab7/F.cpp | satans404/CS203-2020fall-SUSTech | 356e616081962e04477912d2d81d31fd1b85fa23 | [
"MIT"
] | null | null | null | Lab7/F.cpp | satans404/CS203-2020fall-SUSTech | 356e616081962e04477912d2d81d31fd1b85fa23 | [
"MIT"
] | null | null | null | #pragma GCC optimize(3, "Ofast", "inline")
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <vector>
#include <queue>
#include <algorithm>
#define int long long
using namespace std;
int T, n, q, m, l, x, y, ans, pos;
vector<int> v;
struct Edge
{
int to, Next, val;
void push(i... | 18.335526 | 126 | 0.407607 | satans404 |
c6c1a314543ba51404f774d80af28349fbff579d | 742 | hpp | C++ | include/theconf/configuration.hpp | PeterHajdu/theconf | 1c4609634b76d98b9d02ef490385a098ba28433d | [
"MIT"
] | null | null | null | include/theconf/configuration.hpp | PeterHajdu/theconf | 1c4609634b76d98b9d02ef490385a098ba28433d | [
"MIT"
] | null | null | null | include/theconf/configuration.hpp | PeterHajdu/theconf | 1c4609634b76d98b9d02ef490385a098ba28433d | [
"MIT"
] | null | null | null | #pragma once
#include <istream>
#include <string>
#include <sstream>
#include <vector>
namespace the
{
namespace conf
{
void parse( std::istream& );
void clear();
bool has( const std::string& key );
const std::string& get_value( const std::string& key );
void set_value( const std::string& key, const std::string& va... | 16.863636 | 67 | 0.679245 | PeterHajdu |
c6cca4f7e7411f6214b12723bf83e54c6a31846f | 20,093 | cpp | C++ | FireRender.Max.Plugin/plugin/FireRenderPortalLight.cpp | Vsevolod1983/RadeonProRenderMaxPlugin | d5393fd04e45dd2c77c8b17fac4e10b20df55285 | [
"Apache-2.0"
] | 6 | 2020-05-24T12:00:43.000Z | 2021-07-13T06:22:49.000Z | FireRender.Max.Plugin/plugin/FireRenderPortalLight.cpp | Vsevolod1983/RadeonProRenderMaxPlugin | d5393fd04e45dd2c77c8b17fac4e10b20df55285 | [
"Apache-2.0"
] | 4 | 2020-09-17T17:05:38.000Z | 2021-06-23T14:29:14.000Z | FireRender.Max.Plugin/plugin/FireRenderPortalLight.cpp | Vsevolod1983/RadeonProRenderMaxPlugin | d5393fd04e45dd2c77c8b17fac4e10b20df55285 | [
"Apache-2.0"
] | 8 | 2020-05-15T08:29:17.000Z | 2021-07-14T08:38:07.000Z | /**********************************************************************
Copyright 2020 Advanced Micro Devices, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/L... | 33.156766 | 113 | 0.591549 | Vsevolod1983 |
c6d01399067b48f9dcdd717a8194abcde058edc8 | 246 | cpp | C++ | vim/example_cpp/main.cpp | kemnitzs/hpc | 2d77cf77008408006e1ba62d6466611e2d91b504 | [
"MIT"
] | 2 | 2019-03-11T14:19:40.000Z | 2019-03-12T14:48:47.000Z | vim/example_cpp/main.cpp | kemnitzs/hpc | 2d77cf77008408006e1ba62d6466611e2d91b504 | [
"MIT"
] | null | null | null | vim/example_cpp/main.cpp | kemnitzs/hpc | 2d77cf77008408006e1ba62d6466611e2d91b504 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
struct MyStructure {
int a;
int b;
};
int main(int argc, char** argv){
MyStructure ms;
ms.a;
std::vector<double> v;
for( auto& e : v ){
e = 10;
}
return 0;
}
| 11.181818 | 32 | 0.512195 | kemnitzs |
c6d23f163cd11e873fc159d3575dd192addd6057 | 14,521 | cpp | C++ | src/qt/qtbase/src/gui/kernel/qsessionmanager.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | src/qt/qtbase/src/gui/kernel/qsessionmanager.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/gui/kernel/qsessionmanager.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commerc... | 34.822542 | 114 | 0.726809 | power-electro |
c6d36e1127817c4b2304a6ab971594141ec87e89 | 63,783 | cpp | C++ | src/OpenLoco/Windows/CompanyList.cpp | Margen67/OpenLoco | 29b405007e0e2a1691d1f11ee0899bf586cc6217 | [
"MIT"
] | null | null | null | src/OpenLoco/Windows/CompanyList.cpp | Margen67/OpenLoco | 29b405007e0e2a1691d1f11ee0899bf586cc6217 | [
"MIT"
] | null | null | null | src/OpenLoco/Windows/CompanyList.cpp | Margen67/OpenLoco | 29b405007e0e2a1691d1f11ee0899bf586cc6217 | [
"MIT"
] | null | null | null | #include "../Company.h"
#include "../CompanyManager.h"
#include "../Date.h"
#include "../Graphics/Colour.h"
#include "../Graphics/ImageIds.h"
#include "../Input.h"
#include "../Interop/Interop.hpp"
#include "../Localisation/FormatArguments.hpp"
#include "../Localisation/StringIds.h"
#include "../Objects/CargoObject.h"
... | 36.847487 | 286 | 0.53947 | Margen67 |
c6d996c9382b5c2b3f71eb62c53b2307e25964a0 | 929 | cpp | C++ | Example/thread_09/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/thread_09/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/thread_09/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | #include <boost/thread.hpp>
#include <boost/chrono.hpp>
#include <iostream>
void wait(int seconds)
{
boost::this_thread::sleep_for(boost::chrono::seconds{seconds});
}
boost::timed_mutex mutex;
void thread1()
{
using boost::this_thread::get_id;
for (int i = 0; i < 5; ++i)
{
wait(1);
boost::unique_lock... | 20.195652 | 73 | 0.592034 | KwangjoJeong |
c6dac2b62a04fddcfd3398b92abf86f10a94c974 | 2,930 | hh | C++ | service/capability_manager.hh | jinsukoh/nugu-linux | 4120811126031439b02d50723e17683cbced67a0 | [
"Apache-2.0"
] | 1 | 2019-10-24T03:58:10.000Z | 2019-10-24T03:58:10.000Z | service/capability_manager.hh | jinsukoh/nugu-linux | 4120811126031439b02d50723e17683cbced67a0 | [
"Apache-2.0"
] | null | null | null | service/capability_manager.hh | jinsukoh/nugu-linux | 4120811126031439b02d50723e17683cbced67a0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 34.069767 | 116 | 0.752218 | jinsukoh |
c6dfbaaa9c463afd39d85ff9a09f0cd201eabb8b | 271 | hpp | C++ | FootCommander.hpp | sapirp/task4-warGame-A | f2ba937017c3967f2d4a483b0bdcc604bb75f654 | [
"MIT"
] | null | null | null | FootCommander.hpp | sapirp/task4-warGame-A | f2ba937017c3967f2d4a483b0bdcc604bb75f654 | [
"MIT"
] | null | null | null | FootCommander.hpp | sapirp/task4-warGame-A | f2ba937017c3967f2d4a483b0bdcc604bb75f654 | [
"MIT"
] | null | null | null |
#ifndef _footCommender_H
#define _footCommender_H
#include "FootSoldier.hpp"
class FootCommander : public FootSoldier
{
public:
//constructor
FootCommander(int p) : FootSoldier(p)
{
std::cout << "FootCommander const" << std::endl;
}
};
#endif | 15.055556 | 56 | 0.675277 | sapirp |
c6e06d98089e292162481e230ce2fc0cb0637abb | 4,309 | hpp | C++ | Public/Src/Sandbox/MacOs/Interop/Sandbox/Handlers/AccessHandler.hpp | RobJellinghaus/BuildXL | 78f64d827a105a26b11a7cae1bcb57037c396dde | [
"MIT"
] | null | null | null | Public/Src/Sandbox/MacOs/Interop/Sandbox/Handlers/AccessHandler.hpp | RobJellinghaus/BuildXL | 78f64d827a105a26b11a7cae1bcb57037c396dde | [
"MIT"
] | 3 | 2019-12-05T04:47:42.000Z | 2020-02-07T17:15:35.000Z | Public/Src/Sandbox/MacOs/Interop/Sandbox/Handlers/AccessHandler.hpp | RobJellinghaus/BuildXL | 78f64d827a105a26b11a7cae1bcb57037c396dde | [
"MIT"
] | 1 | 2019-12-05T00:02:03.000Z | 2019-12-05T00:02:03.000Z | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#ifndef AccessHandler_hpp
#define AccessHandler_hpp
#include "Sandbox.hpp"
#include "Checkers.hpp"
#include "IOEvent.hpp"
enum ReportResult
{
kReported,
kSkip... | 35.319672 | 134 | 0.649339 | RobJellinghaus |
c6e10baa45898695fbaf4f77dcfebfa2806d72f0 | 552 | hpp | C++ | lib/tests/mock_server.hpp | mihaibuzgau/facter | 451ee4288c61c6185295b454339801b84b8242ef | [
"Apache-2.0"
] | null | null | null | lib/tests/mock_server.hpp | mihaibuzgau/facter | 451ee4288c61c6185295b454339801b84b8242ef | [
"Apache-2.0"
] | null | null | null | lib/tests/mock_server.hpp | mihaibuzgau/facter | 451ee4288c61c6185295b454339801b84b8242ef | [
"Apache-2.0"
] | null | null | null | #pragma once
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include <boost/asio.hpp>
#include <boost/thread.hpp>
#pragma GCC diagnostic pop
namespace facter {
using boost::asio::ip::tcp;
class mock_server {
public:
... | 21.230769 | 50 | 0.666667 | mihaibuzgau |
c6e455880230ad5a9d5eb18f989eb2912491b0d4 | 675 | cpp | C++ | allMatuCommit/3.8 计算e的x次方_2021010915007_20210920110953.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | allMatuCommit/3.8 计算e的x次方_2021010915007_20210920110953.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | allMatuCommit/3.8 计算e的x次方_2021010915007_20210920110953.cpp | BachWV/matu | d4e3a89385f0a205431dd34c2c7214af40bb8ddb | [
"MIT"
] | null | null | null | #include<stdio.h>
double Factorial(double n);
double Pow(double n,int exp);
int main(void)
{
double dN, dX, dF, dEx = 1;
scanf("%lf %lf", &dX, &dN);
int iN = (int)dN;
if (dX > 0 && dN >= 0)
{
for (;iN>=1;iN--)
{
dEx = dEx + Pow(dX,iN) / Factorial(iN);
}
printf("%lf", dEx);
}
else
... | 15.697674 | 45 | 0.525926 | BachWV |
c6e8455d88b66b5bffb05e3d65c871b9f87eee44 | 9,790 | cpp | C++ | test/BaumWelchAlgorithmTests.cpp | Jamagas/HMM | 7a9fc3446c28be79da36e7b567ad3b18cdf5c185 | [
"MIT"
] | 1 | 2021-03-07T15:51:12.000Z | 2021-03-07T15:51:12.000Z | test/BaumWelchAlgorithmTests.cpp | Jamagas/HMM | 7a9fc3446c28be79da36e7b567ad3b18cdf5c185 | [
"MIT"
] | null | null | null | test/BaumWelchAlgorithmTests.cpp | Jamagas/HMM | 7a9fc3446c28be79da36e7b567ad3b18cdf5c185 | [
"MIT"
] | null | null | null |
#include <gtest/gtest.h>
#include <HMM/BaumWelchAlgorithm.h>
/* http://www.cs.rochester.edu/u/james/CSC248/Lec11.pdf */
TEST (BaumWelchAlgorithmTests, ForwardAlgorithm_1) {
std::array<double, 2> ispDistribution = {{ 0.8, 0.2 }};
InitialStateProbabilityDistribution<2> initialDistribution = InitialStateProbabi... | 45.962441 | 142 | 0.657916 | Jamagas |
c6f325412373c57eac4f2ebc3a5b535291ab971d | 6,222 | hpp | C++ | include/pressiodemoapps/impl/euler_3d_ghost_filler.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 2 | 2021-11-17T18:20:21.000Z | 2022-03-05T09:23:02.000Z | include/pressiodemoapps/impl/euler_3d_ghost_filler.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 70 | 2021-05-13T08:27:05.000Z | 2022-03-30T15:39:29.000Z | include/pressiodemoapps/impl/euler_3d_ghost_filler.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 1 | 2021-12-27T13:39:03.000Z | 2021-12-27T13:39:03.000Z |
#ifndef PRESSIODEMOAPPS_GHOST_FILLER_EE3D_HPP_
#define PRESSIODEMOAPPS_GHOST_FILLER_EE3D_HPP_
namespace pressiodemoapps{ namespace ee{ namespace impl{
template<class state_t, class mesh_t, class ghost_t>
class Ghost3dSedov
{
public:
Ghost3dSedov() = delete;
Ghost3dSedov(const int stencilSize,
const stat... | 29.349057 | 76 | 0.618933 | fnrizzi |
c6f8ef8dda6b16dfe1f9e6d9e673130721eda64c | 2,030 | cpp | C++ | chap7/chap7-1.10.cpp | liangzai90/Amazing-Algorithm-With-C | d1e992517eafd9197075d85591ed5270d945b5e3 | [
"Apache-2.0"
] | null | null | null | chap7/chap7-1.10.cpp | liangzai90/Amazing-Algorithm-With-C | d1e992517eafd9197075d85591ed5270d945b5e3 | [
"Apache-2.0"
] | null | null | null | chap7/chap7-1.10.cpp | liangzai90/Amazing-Algorithm-With-C | d1e992517eafd9197075d85591ed5270d945b5e3 | [
"Apache-2.0"
] | null | null | null | /*
数据结构趣题
判断完全二叉树
完全二叉树的定义是这样的:
深度为k的,有n个结点的二叉树,
当且仅当其每一个结点都与深度为k的满二叉树中的编号为1~n的结点相对应,
则它被称为完全二叉树。
所谓满二叉树就是:深度为k且有(2^k -1)个结点的二叉树。
其中,结点的编号约定为:编号从根结点其从上至下,自左向右地顺序编号。
*/
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <vector>
#include <mall... | 14.710145 | 68 | 0.600985 | liangzai90 |
c6fc72f4091abb28056059ac086597f5fa0875a6 | 40 | hpp | C++ | List_4/L4_Z2/inc/libraries.hpp | Rexluu/PAMSI | 5ac5fa6746e6f572892cfe5c02be321ce33d52fa | [
"Apache-2.0"
] | null | null | null | List_4/L4_Z2/inc/libraries.hpp | Rexluu/PAMSI | 5ac5fa6746e6f572892cfe5c02be321ce33d52fa | [
"Apache-2.0"
] | null | null | null | List_4/L4_Z2/inc/libraries.hpp | Rexluu/PAMSI | 5ac5fa6746e6f572892cfe5c02be321ce33d52fa | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <stdlib.h>
| 13.333333 | 19 | 0.725 | Rexluu |
c6fd0888eca07aac06fcb39ba5df67910fe017e7 | 476 | hpp | C++ | source/toy/canvas/detail/ModelBuffer.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 4 | 2017-07-06T22:18:41.000Z | 2021-05-24T21:28:37.000Z | source/toy/canvas/detail/ModelBuffer.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | null | null | null | source/toy/canvas/detail/ModelBuffer.hpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 1 | 2020-08-02T13:00:38.000Z | 2020-08-02T13:00:38.000Z |
#pragma once
#include "toy/Standard.hpp"
#include "toy/canvas/VertexBuffer.hpp"
namespace toy{
namespace canvas{
namespace _detail{
class ModelBuffer
{
public:
ModelBuffer(){}
virtual ~ModelBuffer(){}
virtual void setShape(const std::vector<toy::canvas::VertexBuffer> &data)=0;
virtual void setIndices(co... | 17 | 78 | 0.72479 | ToyAuthor |
c6fecba892c967c970cc9884a7837c37f13c108c | 962 | cpp | C++ | socketclient/src/main.cpp | BooRar/Blackbird | 7c8a1c9de16a5b6bb5b7142aad21026dbb9646c2 | [
"MIT"
] | null | null | null | socketclient/src/main.cpp | BooRar/Blackbird | 7c8a1c9de16a5b6bb5b7142aad21026dbb9646c2 | [
"MIT"
] | null | null | null | socketclient/src/main.cpp | BooRar/Blackbird | 7c8a1c9de16a5b6bb5b7142aad21026dbb9646c2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
int main()
{
std::cout << "Welcome to the socket client " <<std::endl;
//create socket
int network_socket;
network_socket = socket(AF_INET , SOCK_STREAM , 0 );
//spe... | 20.913043 | 111 | 0.72973 | BooRar |
050303e573a10c80b7ac3336ec47a75c1d896af4 | 19,362 | cpp | C++ | src/IO/mpcdiReaderIntern.cpp | scaredyfish/MPCDI | 1ddbc9abf99d39d4464afa2005934c325443cf28 | [
"BSD-3-Clause"
] | 3 | 2021-03-09T01:57:37.000Z | 2021-05-07T08:40:41.000Z | src/IO/mpcdiReaderIntern.cpp | scaredyfish/MPCDI | 1ddbc9abf99d39d4464afa2005934c325443cf28 | [
"BSD-3-Clause"
] | 1 | 2021-06-01T07:52:36.000Z | 2021-06-03T00:54:49.000Z | src/IO/mpcdiReaderIntern.cpp | scaredyfish/MPCDI | 1ddbc9abf99d39d4464afa2005934c325443cf28 | [
"BSD-3-Clause"
] | 4 | 2020-06-22T14:14:15.000Z | 2021-11-11T14:34:42.000Z | /* =========================================================================
Program: MPCDI Library
Language: C++
Date: $Date: 2012-02-08 11:39:41 -0500 (Wed, 08 Feb 2012) $
Version: $Revision: 18341 $
Copyright (c) 2013 Scalable Display Technologies, Inc.
All Rights Reserved.
The MPCDI Librar... | 36.532075 | 242 | 0.6881 | scaredyfish |
050871d6fbf45194d269bbe517c088e47961f703 | 66 | hpp | C++ | Framework/Interface/Interface.hpp | kiorisyshen/GameEngineFromScratch | c2760084c8f1dd853f489a681ab3280647a8ece2 | [
"MIT"
] | 1 | 2020-05-25T11:34:54.000Z | 2020-05-25T11:34:54.000Z | Framework/Interface/Interface.hpp | freudshow/GameEngineFromScratch | 8a5ddaff58ff26123c06a5c502f5d78891a6f05e | [
"MIT"
] | null | null | null | Framework/Interface/Interface.hpp | freudshow/GameEngineFromScratch | 8a5ddaff58ff26123c06a5c502f5d78891a6f05e | [
"MIT"
] | 1 | 2020-03-06T15:27:24.000Z | 2020-03-06T15:27:24.000Z | #pragma once
#define Interface class
#define implements public
| 9.428571 | 25 | 0.787879 | kiorisyshen |
050c85ae05825c586a9d020ccd7cd7b7d7591156 | 1,917 | cpp | C++ | Applications/DataExplorer/Base/TreeModelIterator.cpp | HaibingShao/ogs6_ufz | d4acfe7132eaa2010157122da67c7a4579b2ebae | [
"BSD-4-Clause"
] | null | null | null | Applications/DataExplorer/Base/TreeModelIterator.cpp | HaibingShao/ogs6_ufz | d4acfe7132eaa2010157122da67c7a4579b2ebae | [
"BSD-4-Clause"
] | null | null | null | Applications/DataExplorer/Base/TreeModelIterator.cpp | HaibingShao/ogs6_ufz | d4acfe7132eaa2010157122da67c7a4579b2ebae | [
"BSD-4-Clause"
] | null | null | null | /**
* \file
* \author Lars Bilke
* \date 2010-06-23
* \brief Implementation of the TreeModelIterator class.
*
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
*... | 24.265823 | 76 | 0.580595 | HaibingShao |
050cd418e1d84bcd60ac736baa2ea940e96670cb | 906 | cpp | C++ | Blue-Flame-Engine/Editor/EditorScene.cpp | 21423236/Blue-Flame-Engine | cf26fbdb94d1338f04e57ba88f0bbfc8b77c969b | [
"MIT"
] | 1 | 2021-07-02T12:40:44.000Z | 2021-07-02T12:40:44.000Z | Blue-Flame-Engine/Editor/EditorScene.cpp | 21423236/Blue-Flame-Engine | cf26fbdb94d1338f04e57ba88f0bbfc8b77c969b | [
"MIT"
] | null | null | null | Blue-Flame-Engine/Editor/EditorScene.cpp | 21423236/Blue-Flame-Engine | cf26fbdb94d1338f04e57ba88f0bbfc8b77c969b | [
"MIT"
] | null | null | null | #include "EditorScene.h"
namespace Editor
{
using namespace BF;
using namespace BF::Math;
using namespace BF::Graphics;
using namespace BF::Graphics::API;
using namespace BF::Graphics::Renderers;
EditorScene::EditorScene() :
tilesheet(*this, scenePanel.GetPaintTile()), scenePanel(*this, tilesheet)
{
}
Edi... | 18.875 | 145 | 0.684327 | 21423236 |
050d8d1705636ae66e565f1d0ebe743197fce798 | 5,160 | cpp | C++ | Plugins/FileDownloader/Source/FileDownloader/Private/FileDownloadManager.cpp | VirtualLilies/FileDownloader | f5fbbb53c04061e2b62c6350cd383716a79ed8cf | [
"CC0-1.0"
] | null | null | null | Plugins/FileDownloader/Source/FileDownloader/Private/FileDownloadManager.cpp | VirtualLilies/FileDownloader | f5fbbb53c04061e2b62c6350cd383716a79ed8cf | [
"CC0-1.0"
] | null | null | null | Plugins/FileDownloader/Source/FileDownloader/Private/FileDownloadManager.cpp | VirtualLilies/FileDownloader | f5fbbb53c04061e2b62c6350cd383716a79ed8cf | [
"CC0-1.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "FileDownloadManager.h"
#include "DownloadTask.h"
#include "Misc/Paths.h"
void UFileDownloadManager::Tick(float DeltaTime)
{
if (bStopAll)
{
return;
}
static float TimeCount = 0.f;
TimeCount += DeltaTime;
if (TimeCount >=... | 19.694656 | 117 | 0.68469 | VirtualLilies |
050fe9e408e3d04ffed05fbfd05435743540fce8 | 14,342 | cc | C++ | src/main.cc | conclusiveeng/devclient | 98e3ab39acaab156ab52705be8b4d9213efe9633 | [
"BSD-2-Clause"
] | null | null | null | src/main.cc | conclusiveeng/devclient | 98e3ab39acaab156ab52705be8b4d9213efe9633 | [
"BSD-2-Clause"
] | null | null | null | src/main.cc | conclusiveeng/devclient | 98e3ab39acaab156ab52705be8b4d9213efe9633 | [
"BSD-2-Clause"
] | 1 | 2020-11-25T11:24:42.000Z | 2020-11-25T11:24:42.000Z | /*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2019 Conclusive Engineering
*
* 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 copyr... | 28.569721 | 135 | 0.672919 | conclusiveeng |
05193de83469452121fd7c0ce37025c35ad6f5da | 422 | hpp | C++ | contracts/includes/vapaee/token/tables/earnings.hpp | vapaee/vapaee.io-source | b2b0c07850a817629055a848b9239a59dc10b545 | [
"MIT"
] | 7 | 2019-06-09T03:52:14.000Z | 2020-03-01T13:27:24.000Z | contracts/includes/vapaee/token/tables/earnings.hpp | vapaee/vapaee.io-source | b2b0c07850a817629055a848b9239a59dc10b545 | [
"MIT"
] | 27 | 2019-12-28T12:29:12.000Z | 2022-03-02T04:08:55.000Z | contracts/includes/vapaee/token/tables/earnings.hpp | vapaee/vapaee.io-source | b2b0c07850a817629055a848b9239a59dc10b545 | [
"MIT"
] | 2 | 2019-11-29T22:32:47.000Z | 2021-02-18T23:47:47.000Z | #include <vapaee/token/tables/_aux.hpp>
// TABLE earnings (singleton table) -----------
// scope: owner (only contract)
TABLE earnings_table {
asset quantity;
uint64_t primary_key() const { return quantity.symbol.code().raw(); }
};
typedef eosio::multi_in... | 38.363636 | 81 | 0.516588 | vapaee |
051f9288241a34c636181de3998435c4e51f50d3 | 4,200 | cc | C++ | src/events/AdhocCliCommParser.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 320 | 2015-06-16T20:32:33.000Z | 2022-03-26T17:03:27.000Z | src/events/AdhocCliCommParser.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2,592 | 2015-05-30T12:12:21.000Z | 2022-03-31T17:16:15.000Z | src/events/AdhocCliCommParser.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 74 | 2015-06-18T19:51:15.000Z | 2022-03-24T15:09:33.000Z | #include "AdhocCliCommParser.hh"
#include "utf8_unchecked.hh"
#include "xrange.hh"
AdhocCliCommParser::AdhocCliCommParser(std::function<void(const std::string&)> callback_)
: callback(std::move(callback_))
, state(O0)
{
}
void AdhocCliCommParser::parse(const char* buf, size_t n)
{
for (auto i : xrange(n)) {
par... | 24.852071 | 89 | 0.501905 | D15C0DE |
052a9edb2304fb1e11af576cc11898f45684d63e | 15,110 | hpp | C++ | Scheduler/CoinOR/include/coin/CbcCutGenerator.hpp | enyquist/Concordia_Scheduling | 5eb96ed585e7f2002983159b8ee0837b791753fa | [
"MIT"
] | null | null | null | Scheduler/CoinOR/include/coin/CbcCutGenerator.hpp | enyquist/Concordia_Scheduling | 5eb96ed585e7f2002983159b8ee0837b791753fa | [
"MIT"
] | null | null | null | Scheduler/CoinOR/include/coin/CbcCutGenerator.hpp | enyquist/Concordia_Scheduling | 5eb96ed585e7f2002983159b8ee0837b791753fa | [
"MIT"
] | null | null | null | /* $Id: CbcCutGenerator.hpp 1675 2011-06-19 17:23:14Z stefan $ */
// Copyright (C) 2003, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef CbcCutGenerator_H
#define CbcCutGenerator_H
#include "OsiSolve... | 33.208791 | 94 | 0.65546 | enyquist |
052ce5ae03d50a8209618afb53dca0fa2758ade1 | 72 | cpp | C++ | main.cpp | Daniel-Ros/cpp-ex1 | 1c634af36a182d17f8e5292f5203aa28bebfe312 | [
"MIT"
] | null | null | null | main.cpp | Daniel-Ros/cpp-ex1 | 1c634af36a182d17f8e5292f5203aa28bebfe312 | [
"MIT"
] | null | null | null | main.cpp | Daniel-Ros/cpp-ex1 | 1c634af36a182d17f8e5292f5203aa28bebfe312 | [
"MIT"
] | null | null | null | #include "app.hpp"
int main(){
App app;
app.showScreen();
} | 12 | 25 | 0.541667 | Daniel-Ros |
0534f9a52141f8a4e38ef6ad92e9df11f3c366ca | 20,715 | hpp | C++ | include/seqan3/argument_parser/detail/format_help.hpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | 1 | 2021-03-01T11:12:56.000Z | 2021-03-01T11:12:56.000Z | include/seqan3/argument_parser/detail/format_help.hpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | 2 | 2017-05-17T07:16:19.000Z | 2020-02-13T16:10:10.000Z | include/seqan3/argument_parser/detail/format_help.hpp | marehr/nomchop | a88bfb6f5d4a291a71b6b3192eeac81fdc450d43 | [
"CC-BY-4.0",
"CC0-1.0"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 37.257194 | 114 | 0.552064 | marehr |
053dc45f6a8d650f2e873eb6270140f0f51789c0 | 2,418 | hh | C++ | 1-Simulation/source/include/GasHit.hh | surfound/CXPD | 788a125048cc3d79244a0562d94263e48ca22a6a | [
"Apache-2.0"
] | 1 | 2019-08-01T03:48:26.000Z | 2019-08-01T03:48:26.000Z | 1-Simulation/source/include/GasHit.hh | surfound/CXPD | 788a125048cc3d79244a0562d94263e48ca22a6a | [
"Apache-2.0"
] | null | null | null | 1-Simulation/source/include/GasHit.hh | surfound/CXPD | 788a125048cc3d79244a0562d94263e48ca22a6a | [
"Apache-2.0"
] | null | null | null | //*********************************************
// This is auto generated by G4gen 0.6
// author:Qian
#ifndef GasHit_h
#define GasHit_h
#include "G4THitsCollection.hh"
#include "G4Allocator.hh"
#include "G4Step.hh"
#include "G4VHit.hh"
//....oooOO0OOooo........oooOO0OOooo........oo... | 29.487805 | 78 | 0.653019 | surfound |
053e22dec86b814335205978eefce1aef01e9dfb | 517 | cpp | C++ | test/vector.cpp | priseborough/Matrix | 6009709986fc681c712ffe7206e68eaa5224db8b | [
"BSD-3-Clause-Clear"
] | 2 | 2021-01-17T04:31:37.000Z | 2021-07-09T17:58:27.000Z | test/vector.cpp | priseborough/Matrix | 6009709986fc681c712ffe7206e68eaa5224db8b | [
"BSD-3-Clause-Clear"
] | null | null | null | test/vector.cpp | priseborough/Matrix | 6009709986fc681c712ffe7206e68eaa5224db8b | [
"BSD-3-Clause-Clear"
] | 2 | 2016-10-24T10:05:08.000Z | 2017-06-04T19:18:35.000Z | #include <assert.h>
#include <stdio.h>
#include <matrix/math.hpp>
using namespace matrix;
template class Vector<float, 5>;
int main()
{
float data1[] = {1,2,3,4,5};
float data2[] = {6,7,8,9,10};
Vector<float, 5> v1(data1);
assert(fabs(v1.norm() - 7.416198487095663f) < 1e-5);
Vector<float, 5> v2(... | 20.68 | 56 | 0.589942 | priseborough |
053f3a1d9c9c2e377f8d2602baa66eba062db528 | 8,631 | cpp | C++ | src/main.cpp | matey-99/MistEngine | 1a60f98da6b9331b3249f995e2b2566449ce0187 | [
"MIT"
] | 2 | 2022-02-08T13:16:01.000Z | 2022-02-28T18:21:35.000Z | src/main.cpp | matey-99/MistEngine | 1a60f98da6b9331b3249f995e2b2566449ce0187 | [
"MIT"
] | null | null | null | src/main.cpp | matey-99/MistEngine | 1a60f98da6b9331b3249f995e2b2566449ce0187 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include "imgui.h"
#include "imgui/imgui_impl_glfw.h"
#include "imgui/imgui_impl_opengl3.h"
#include <stb_image.h>
#include "Editor/ImGuiRenderer.h"
#include <glad/glad.h> // Initialize with gladLoadGL()
#include <GLFW/glfw3.h> // Include glfw3.h after our OpenGL definitions... | 29.558219 | 108 | 0.65705 | matey-99 |
0541f71341bb27b48c2e998b8086ea4ed332a840 | 802 | cpp | C++ | Numba and C++/cppfuncs/test_numba.cpp | ThomasHJorgensen/ConsumptionSavingNotebooks | badbdfb1da226d5494026de2adcfec171c7f40ea | [
"MIT"
] | 1 | 2021-11-07T23:37:25.000Z | 2021-11-07T23:37:25.000Z | Numba and C++/cppfuncs/test_numba.cpp | ThomasHJorgensen/ConsumptionSavingNotebooks | badbdfb1da226d5494026de2adcfec171c7f40ea | [
"MIT"
] | null | null | null | Numba and C++/cppfuncs/test_numba.cpp | ThomasHJorgensen/ConsumptionSavingNotebooks | badbdfb1da226d5494026de2adcfec171c7f40ea | [
"MIT"
] | null | null | null | //////////////////////////
// 1. external includes //
//////////////////////////
// standard C++ libraries
#include <windows.h>
#include <stdio.h>
#include <cmath>
#include <omp.h>
///////////////
// 2. macros //
///////////////
#define EXPORT extern "C" __declspec(dllexport)
/////////////
// 3. main //
///////////... | 18.651163 | 78 | 0.471322 | ThomasHJorgensen |
0547a18c2c91c46a462e339f3065befbbc7c75a6 | 20,922 | cpp | C++ | SOURCES/sim/displays/wpnmfd.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/sim/displays/wpnmfd.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/sim/displays/wpnmfd.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #include "stdhdr.h"
#include "mfd.h"
#include "hud.h"
#include "stdhdr.h"
#include "mfd.h"
#include "hud.h"
#include "sms.h"
#include "simdrive.h"
#include "camp2sim.h"
#include "Graphics\Include\render2d.h"
#include "Graphics\Include\canvas3d.h"
#include "Graphics\Include\tviewpnt.h"
#include "Graphics\Include\renderi... | 25.086331 | 171 | 0.642529 | IsraelyFlightSimulator |
054a8c0a1544705e8618a969a1adabfa5f7db3e9 | 1,709 | cpp | C++ | cpp/src/syscall/stat.cpp | pblaberge/TOT | d2cd110731d8f40fd8ed7652e6a4f1e065538edc | [
"MIT"
] | null | null | null | cpp/src/syscall/stat.cpp | pblaberge/TOT | d2cd110731d8f40fd8ed7652e6a4f1e065538edc | [
"MIT"
] | null | null | null | cpp/src/syscall/stat.cpp | pblaberge/TOT | d2cd110731d8f40fd8ed7652e6a4f1e065538edc | [
"MIT"
] | null | null | null | #include "cpp/syscall.hpp"
#include "cpp/src/syscall/errno_internal.hpp"
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
namespace sys_call {
namespace {
void kernelStruct2StatT(Stat_t* to, struct stat const * from) {
to->Dev = from->st_dev;
to->Ino = from->st_ino;
to... | 21.3625 | 85 | 0.625512 | pblaberge |
d72bdc0ab03429cc0f2e0505ab04b6dc375783b4 | 1,177 | hpp | C++ | src/entity_manager.hpp | Harrand/Asteroids-Topaz | ce549802b0360f2554f4f6189d6ca0a486c4c928 | [
"Apache-2.0"
] | null | null | null | src/entity_manager.hpp | Harrand/Asteroids-Topaz | ce549802b0360f2554f4f6189d6ca0a486c4c928 | [
"Apache-2.0"
] | null | null | null | src/entity_manager.hpp | Harrand/Asteroids-Topaz | ce549802b0360f2554f4f6189d6ca0a486c4c928 | [
"Apache-2.0"
] | null | null | null | #ifndef TOPAZASTEROIDS_ENTITY_MANAGER_HPP
#define TOPAZASTEROIDS_ENTITY_MANAGER_HPP
#include "core/listener.hpp"
#include "core/scene.hpp"
#include "sprite_collection.hpp"
#include "player.hpp"
#include "asteroid.hpp"
#include "bullet.hpp"
class EntityManager : public Scene
{
public:
EntityManager(Window& event_wi... | 32.694444 | 101 | 0.771453 | Harrand |
d73a1c381cd67192014d0bcb120024a49df84fa1 | 6,712 | cp | C++ | Linux/Sources/Application/Preferences_Dialog/CLoggingOptionsDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Linux/Sources/Application/Preferences_Dialog/CLoggingOptionsDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Linux/Sources/Application/Preferences_Dialog/CLoggingOptionsDialog.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. 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 re... | 29.699115 | 81 | 0.641836 | mulberry-mail |
d73e12dfed16c7028b3d00e8fdb7150e8b3d99ae | 19,042 | cc | C++ | src/devices/pci/testing/pci_protocol_fake_tests.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | src/devices/pci/testing/pci_protocol_fake_tests.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | src/devices/pci/testing/pci_protocol_fake_tests.cc | csrpi/fuchsia | 2f015594dcb4c13aa51eee305ad561078f1f9b7f | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2021 The Fuchsia 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 <fuchsia/hardware/pci/cpp/banjo.h>
#include <lib/device-protocol/pci.h>
#include <lib/mmio/mmio.h>
#include <lib/zx/bti.h>
#include <lib/zx/object... | 37.856859 | 96 | 0.725081 | csrpi |
d73e1e75239fd2e0b3ff57026a2c8c679c1b202d | 53,930 | cpp | C++ | vp/src/nvdla_cmod/csb_master/gen/NV_NVDLA_csb_master.cpp | amedoc/riscv-vp | 28caea322a6553caa1bbda99658982bedd29db4c | [
"MIT"
] | null | null | null | vp/src/nvdla_cmod/csb_master/gen/NV_NVDLA_csb_master.cpp | amedoc/riscv-vp | 28caea322a6553caa1bbda99658982bedd29db4c | [
"MIT"
] | null | null | null | vp/src/nvdla_cmod/csb_master/gen/NV_NVDLA_csb_master.cpp | amedoc/riscv-vp | 28caea322a6553caa1bbda99658982bedd29db4c | [
"MIT"
] | null | null | null | // ================================================================
// NVDLA Open Source Project
//
// Copyright(c) 2016 - 2017 NVIDIA Corporation. Licensed under the
// NVDLA Open Hardware License; Check "LICENSE" which comes with
// this distribution for more information.
// =======================================... | 54.751269 | 238 | 0.649676 | amedoc |
d7505a6855f1f40480c143580281c2538eb1416f | 745 | cpp | C++ | Codeforces/1374D.cpp | hyturing/Competitve-Programming | 571da19ae5d17fdcf2b9a9956eaf5a6c5f7d27e8 | [
"MIT"
] | 5 | 2021-01-25T17:08:45.000Z | 2021-09-11T17:33:39.000Z | Codeforces/1374D.cpp | hyturing/Competitve-Programming | 571da19ae5d17fdcf2b9a9956eaf5a6c5f7d27e8 | [
"MIT"
] | null | null | null | Codeforces/1374D.cpp | hyturing/Competitve-Programming | 571da19ae5d17fdcf2b9a9956eaf5a6c5f7d27e8 | [
"MIT"
] | 1 | 2021-03-22T16:53:30.000Z | 2021-03-22T16:53:30.000Z | /* Author: hyturing - Hemant Kumar Yadav */
#include "bits/stdc++.h"
using namespace std;
#define endl "\n"
#define ll long long
const ll MOD = 1e9+7;
void solve(){
// code here
ll n, k;
cin >> n >> k;
vector<ll> a(n);
for(auto &x: a) cin >> x;
map<ll,ll> m;
for(auto x: a){
if(x%k > 0) m[x%k]++;
}
... | 14.056604 | 50 | 0.520805 | hyturing |
d7518cd83fad2897bd1a309175f77bba2f3df5e0 | 4,255 | cpp | C++ | src/mplsh.cpp | girke-lab/eiR-release | 84754b4573b1c1aabc65cbdabcfe7867c6b415a2 | [
"BSL-1.0"
] | null | null | null | src/mplsh.cpp | girke-lab/eiR-release | 84754b4573b1c1aabc65cbdabcfe7867c6b415a2 | [
"BSL-1.0"
] | null | null | null | src/mplsh.cpp | girke-lab/eiR-release | 84754b4573b1c1aabc65cbdabcfe7867c6b415a2 | [
"BSL-1.0"
] | null | null | null | /*
Copyright (C) 2008 Wei Dong <wdong@princeton.edu>. All Rights Reserved.
This file is part of LSHKIT.
LSHKIT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Lic... | 30.177305 | 80 | 0.491657 | girke-lab |
d751eddeff02ae9cf2ed4389358f02a352047270 | 11,597 | cpp | C++ | code/source/util/str8.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/util/str8.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/util/str8.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #include "str8.hpp"
#include "ensure.hpp"
#include "debug/print.hpp"
#include "util/dyn_array.hpp"
#include <cstring>
#include <cstdio>
#include <cstdarg>
#include <cstdlib>
#include <algorithm>
#include <utf8.h>
namespace clover {
namespace util {
namespace {
/// @see http://en.wikipedia.org/wiki/UTF-8#Description... | 21.009058 | 146 | 0.59386 | crafn |
d752799e57a44afeea2320034791d6f3bf904469 | 9,927 | hpp | C++ | windows/include/boost/gil/bit_aligned_pixel_iterator.hpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | external/windows/boost/include/boost/gil/bit_aligned_pixel_iterator.hpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | external/windows/boost/include/boost/gil/bit_aligned_pixel_iterator.hpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | /*
Copyright 2005-2007 Adobe Systems Incorporated
Use, modification and distribution are 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_0.txt).
See http://opensource.adobe.com/gil for most recent versio... | 51.703125 | 170 | 0.697189 | jaredhoberock |
d7573462aae89df4631b6eb27dea3e346afb689e | 2,013 | cpp | C++ | src/core/stream/outputstream.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/core/stream/outputstream.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/core/stream/outputstream.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | /*
Copyright 2009-2021 Nicolas Colombe
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, distribute... | 40.26 | 460 | 0.723299 | eXl-Nic |
d757fadf39f7ea0369cb005e1670ea1001b83215 | 14,173 | cpp | C++ | src/InstrumentationEngine/AssemblyInfo.cpp | csdahlberg/CLRInstrumentationEngine | 8a56752fcdaaafcb0a466c1df9e4f411de59c84c | [
"MIT"
] | null | null | null | src/InstrumentationEngine/AssemblyInfo.cpp | csdahlberg/CLRInstrumentationEngine | 8a56752fcdaaafcb0a466c1df9e4f411de59c84c | [
"MIT"
] | null | null | null | src/InstrumentationEngine/AssemblyInfo.cpp | csdahlberg/CLRInstrumentationEngine | 8a56752fcdaaafcb0a466c1df9e4f411de59c84c | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "stdafx.h"
#include "AssemblyInfo.h"
// These have to go after AssemblyInfo.h because of cyclical dependencies...
#include "ProfilerManager.h"
#include "EnumeratorImpl.h"
#ifndef PLATFORM_UNIX
#include "StrongName.... | 29.343685 | 153 | 0.724899 | csdahlberg |
d7599b3c7e33c164e21793c676b80491dbf9be7a | 890 | hh | C++ | dron/dron/Prostopadloscian.hh | placekziemniaczany/dron2 | 4b3fa3d684feb6becb22e25f2119103d1f8cf923 | [
"MIT"
] | null | null | null | dron/dron/Prostopadloscian.hh | placekziemniaczany/dron2 | 4b3fa3d684feb6becb22e25f2119103d1f8cf923 | [
"MIT"
] | null | null | null | dron/dron/Prostopadloscian.hh | placekziemniaczany/dron2 | 4b3fa3d684feb6becb22e25f2119103d1f8cf923 | [
"MIT"
] | null | null | null | #ifndef PROSTOPADLOSCIAN_HH
#define PROSTOPADLOSCIAN_HH
/*!
* \file
* \brief Definicja klasy Prostopadloscian
*
* Plik zawiera definicjê klasy Prostopadloscian
*/
#include "Bryla.hh"
#include "InterfejsRysowania.hh"
#include "ZbiorWierzcholkow.hh"
/*!
* \brief Modeluje Prostopadloscian, korpus Drona
... | 22.820513 | 74 | 0.725843 | placekziemniaczany |
d75a5ee7d04b367711557b7a8abc762315c527ad | 38,318 | cpp | C++ | core/globals.cpp | efornara/fantocci | 74981d9632736f120d53b2193da027f7fa671d43 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | core/globals.cpp | efornara/fantocci | 74981d9632736f120d53b2193da027f7fa671d43 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | core/globals.cpp | efornara/fantocci | 74981d9632736f120d53b2193da027f7fa671d43 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | /*************************************************************************/
/* globals.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 25.579439 | 213 | 0.625111 | efornara |
d76252cbd49e296c5e5b764fc133dfb902f17032 | 82,785 | cpp | C++ | gui/qml_ValueSource_qml.cpp | kdeoliveira/coen320 | 4c788b3c2544e57e27bac8a59232f06c7a04d67a | [
"MIT"
] | null | null | null | gui/qml_ValueSource_qml.cpp | kdeoliveira/coen320 | 4c788b3c2544e57e27bac8a59232f06c7a04d67a | [
"MIT"
] | null | null | null | gui/qml_ValueSource_qml.cpp | kdeoliveira/coen320 | 4c788b3c2544e57e27bac8a59232f06c7a04d67a | [
"MIT"
] | null | null | null | // /qml/ValueSource.qml
namespace QmlCacheGeneratedCode {
namespace _qml_ValueSource_qml {
extern const unsigned char qmlData alignas(16) [] = {
0x71,0x76,0x34,0x63,0x64,0x61,0x74,0x61,
0x29,0x0,0x0,0x0,0x2,0xf,0x5,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x1c,0x4a,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0... | 34.769005 | 53 | 0.741729 | kdeoliveira |
d76c5e1056032cf26b5dd543c0d220d56e78439e | 450 | cpp | C++ | Plugins/RadiantUI/Source/RadiantUI/Private/RadiantWebViewInputMaskedActionList.cpp | joeriedel/RadiantUI | 64c7d7719dc3c519bacaed8912c6937a549b4f8a | [
"MIT"
] | 104 | 2015-01-01T17:48:03.000Z | 2021-09-23T12:45:21.000Z | Plugins/RadiantUI/Source/RadiantUI/Private/RadiantWebViewInputMaskedActionList.cpp | ChairGraveyard/RadiantUI | 2d395ae509e40fed96afa7dc73d86c7a3d99fa51 | [
"MIT"
] | 7 | 2015-03-22T22:30:00.000Z | 2017-09-22T10:42:04.000Z | Plugins/RadiantUI/Source/RadiantUI/Private/RadiantWebViewInputMaskedActionList.cpp | ChairGraveyard/RadiantUI | 2d395ae509e40fed96afa7dc73d86c7a3d99fa51 | [
"MIT"
] | 60 | 2015-01-05T21:05:16.000Z | 2022-01-14T09:12:09.000Z | // Copyright 2014 Joseph Riedel, All Rights Reserved.
// See LICENSE for licensing terms.
#pragma once
#include "RadiantUIPrivatePCH.h"
URadiantWebViewInputMaskedActionList::URadiantWebViewInputMaskedActionList(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
ActionMappings.Add("Jump");
Ac... | 26.470588 | 119 | 0.8 | joeriedel |
d7716b73035465bd41692317626bad6c81f8b22d | 15,348 | cpp | C++ | tests/unit/basis/lagrange_basis2d.cpp | Andlon/crest | f79bf5a68f3eb86f5e3422881678bc6f9011730a | [
"MIT"
] | null | null | null | tests/unit/basis/lagrange_basis2d.cpp | Andlon/crest | f79bf5a68f3eb86f5e3422881678bc6f9011730a | [
"MIT"
] | 5 | 2017-01-24T10:45:27.000Z | 2017-01-27T16:21:37.000Z | tests/unit/basis/lagrange_basis2d.cpp | Andlon/crest | f79bf5a68f3eb86f5e3422881678bc6f9011730a | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <crest/geometry/indexed_mesh.hpp>
#include <crest/basis/lagrange_basis2d.hpp>
#include <util/eigen_matchers.hpp>
using ::testing::ElementsAreArray;
using ::testing::Pointwise;
using ::testing::Eq;
using ::testing::DoubleEq;
using crest::IndexedMesh;
using c... | 35.859813 | 125 | 0.636435 | Andlon |
d772561827fe4727116b31daee35cd4d38694a71 | 32,127 | cpp | C++ | export/release/windows/obj/src/flixel/input/mouse/FlxMouse.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/flixel/input/mouse/FlxMouse.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/flixel/input/mouse/FlxMouse.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_flixel_FlxG
#include <flixel/FlxG.h>
#endif
#ifndef INCLUDED_flixel_FlxGame
#include <flixel/FlxGame.h>
#endif
#ifndef INCLUDED_flixel_input_FlxInput
#include <flix... | 45.764957 | 231 | 0.726336 | bobisdabbing |
d772dd2e1f45ebc3bc48dd3ff8a74ab0920a80ff | 4,384 | hpp | C++ | include/calc/Pid.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | include/calc/Pid.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | include/calc/Pid.hpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef SAPI_CALC_PID_HPP_
#define SAPI_CALC_PID_HPP_
#include "../api/CalcObject.hpp"
namespace calc {
/*! \brief PID Control Loop Class (float)
* \details This class implements a PID control loop using floating p... | 30.873239 | 108 | 0.69594 | bander9289 |
d776a3f6f3b0b0d752cd1fe0f8742ed5ad62539a | 450 | cpp | C++ | engine/labs/sol-plugins/firstPlugin/firstplugin.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 16 | 2017-01-11T17:28:03.000Z | 2021-09-27T16:12:01.000Z | engine/labs/sol-plugins/firstPlugin/firstplugin.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | null | null | null | engine/labs/sol-plugins/firstPlugin/firstplugin.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 4 | 2017-03-17T02:44:32.000Z | 2021-01-22T07:57:34.000Z | /*************************************************************************
*
* Copyright (c) 2016 The Qt Company
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************/
#include "firstplugin.h"... | 18 | 75 | 0.46 | sfaure-witekio |
d7786a94b7b1091c8c5e5883a20541d592b7ffbc | 5,606 | cpp | C++ | logger.cpp | rlefevre1/Logger | 03c1e59f651ed4da39fb2f9281c0c51627f4b19f | [
"BSD-3-Clause"
] | null | null | null | logger.cpp | rlefevre1/Logger | 03c1e59f651ed4da39fb2f9281c0c51627f4b19f | [
"BSD-3-Clause"
] | null | null | null | logger.cpp | rlefevre1/Logger | 03c1e59f651ed4da39fb2f9281c0c51627f4b19f | [
"BSD-3-Clause"
] | null | null | null | #include "logger.h"
#include <fstream>
namespace logs
{
// Constructors
Logger::Logger() : flags_logs_enabled_ {{INFO, true}, {WARNING, true}, {ERROR, true}, {FATAL, true}},
logs_headers_ {{INFO, "[INFO]"}, {WARNING, "[WARNING]"}, {ERROR, "[ERROR]"}, {... | 34.392638 | 136 | 0.475384 | rlefevre1 |
d779abf5321faf67b25e129fe8d98a1a0ab5970f | 1,768 | cpp | C++ | 00148_sort-list/200213-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 6 | 2019-10-23T01:07:29.000Z | 2021-12-05T01:51:16.000Z | 00148_sort-list/200213-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | null | null | null | 00148_sort-list/200213-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 1 | 2021-12-03T06:54:57.000Z | 2021-12-03T06:54:57.000Z | // https://leetcode-cn.com/problems/sort-list/
#include <cstdio>
#include <initializer_list>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
ListNode* init(initializer_list<int> a) {
ListNode node(0);
ListNode* p = &node;
for (auto e : a) {
p->next = ... | 16.679245 | 75 | 0.52319 | yanlinlin82 |
d77da50adea5844a68a9a956670440a3d138f31e | 20,158 | cpp | C++ | Core-src/Filters.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 6 | 2015-03-04T19:41:12.000Z | 2022-03-27T09:44:25.000Z | Core-src/Filters.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 20 | 2015-03-03T21:02:20.000Z | 2021-08-02T13:26:59.000Z | Core-src/Filters.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 8 | 2015-02-23T19:10:32.000Z | 2020-10-26T08:03:00.000Z | /*
Copyright (c) 2003, Xentronix
Author: Frans van Nispen (frans@xentronix.com)
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 ... | 27.42585 | 131 | 0.665145 | HaikuArchives |
d78847103bb9a1f4678b7a384b16167c1fc1bb4f | 3,258 | cpp | C++ | testsuites/unittest/drivers/hid/smoke/hid_test_001.cpp | qdsxinyee4/PatentsViewh | c0e2da8d88ccb6af89d80e38dfc8f2b70f8627f9 | [
"BSD-3-Clause"
] | 175 | 2020-10-21T15:15:18.000Z | 2022-03-31T04:59:30.000Z | testsuites/unittest/drivers/hid/smoke/hid_test_001.cpp | qdsxinyee4/PatentsViewh | c0e2da8d88ccb6af89d80e38dfc8f2b70f8627f9 | [
"BSD-3-Clause"
] | 1 | 2020-12-20T11:41:53.000Z | 2020-12-21T04:49:33.000Z | testsuites/unittest/drivers/hid/smoke/hid_test_001.cpp | qdsxinyee4/PatentsViewh | c0e2da8d88ccb6af89d80e38dfc8f2b70f8627f9 | [
"BSD-3-Clause"
] | 39 | 2020-10-26T03:23:18.000Z | 2022-03-28T16:23:03.000Z | /*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist... | 35.413043 | 105 | 0.669122 | qdsxinyee4 |
d789ac373409dd4a1364e17a18d361f10f185841 | 64,589 | hpp | C++ | src/tip/db/pg/detail/connection_fsm.hpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 25 | 2016-02-12T14:06:23.000Z | 2021-12-20T02:45:35.000Z | src/tip/db/pg/detail/connection_fsm.hpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 9 | 2016-11-21T08:49:19.000Z | 2019-07-02T10:52:35.000Z | src/tip/db/pg/detail/connection_fsm.hpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 5 | 2018-03-16T11:46:23.000Z | 2022-03-06T06:58:57.000Z | /*
* connection_fsm.hpp
*
* Created on: Jul 30, 2015
* Author: zmij
*/
#ifndef LIB_PG_ASYNC_SRC_TIP_DB_PG_DETAIL_BASIC_CONNECTION_NEW_HPP_
#define LIB_PG_ASYNC_SRC_TIP_DB_PG_DETAIL_BASIC_CONNECTION_NEW_HPP_
#include <boost/noncopyable.hpp>
#include <map>
#include <stack>
#include <set>
#include <memory>
#... | 36.470356 | 133 | 0.46429 | zmij |
d78a332c7792ab3bdcc967f7da56adb0dec68d08 | 1,655 | hpp | C++ | driver/block/ramdisk.hpp | Edgaru089/helos1 | 8dd27c421bdf1d55e3a62b61927d2f0db6f94d01 | [
"Apache-2.0"
] | null | null | null | driver/block/ramdisk.hpp | Edgaru089/helos1 | 8dd27c421bdf1d55e3a62b61927d2f0db6f94d01 | [
"Apache-2.0"
] | null | null | null | driver/block/ramdisk.hpp | Edgaru089/helos1 | 8dd27c421bdf1d55e3a62b61927d2f0db6f94d01 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "blockdevice.hpp"
namespace helos {
namespace block {
// Ramdisk is a block device residing in runtime RAM.
class BlockDeviceRamdisk: public BlockDevice {
public:
BlockDeviceRamdisk(const BlockDeviceRamdisk &) = delete; // Don't copy by value
BlockDeviceRamdisk(BlockDeviceRamdisk &&) = ... | 33.77551 | 102 | 0.739577 | Edgaru089 |
d78bde05575515f03516ef6c9949115f3baca6bd | 514 | cpp | C++ | while2.cpp | Ahtesham1234/whiles.cpp | d4071b986090c1561acf72823e7e70b2a2fae8ce | [
"Apache-2.0"
] | null | null | null | while2.cpp | Ahtesham1234/whiles.cpp | d4071b986090c1561acf72823e7e70b2a2fae8ce | [
"Apache-2.0"
] | null | null | null | while2.cpp | Ahtesham1234/whiles.cpp | d4071b986090c1561acf72823e7e70b2a2fae8ce | [
"Apache-2.0"
] | null | null | null | //while2.cpp
//this program print number to the fourth power
#include <iostream>
#incllude <iomanip> //for stew
using namespace std;
int main()
{
int pow=1; //power initially 1
int numb=1 //numb goes from 1 to ???
while (pow<10000) //loop while power <= 4 digits
{
cout << stew(2)... | 20.56 | 59 | 0.593385 | Ahtesham1234 |
d79245f98f668f3728536eb0415c3bbe29f98c11 | 1,072 | cpp | C++ | SRC/sql/samples/Oracle_returning.cpp | crashangelbr/ChatScript_SQLServer | 4a8b53b2a368863d3aae887186ec911a17711fe5 | [
"MIT"
] | null | null | null | SRC/sql/samples/Oracle_returning.cpp | crashangelbr/ChatScript_SQLServer | 4a8b53b2a368863d3aae887186ec911a17711fe5 | [
"MIT"
] | null | null | null | SRC/sql/samples/Oracle_returning.cpp | crashangelbr/ChatScript_SQLServer | 4a8b53b2a368863d3aae887186ec911a17711fe5 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <SQLAPI.h>
#include <samisc.h>
int main(int argc, char* argv[])
{
SAConnection con; // create connection object
try
{
con.Connect(
"ora111", // database name
"sys", // user name
"java", // password
SA_Oracle_Client);
SACommand cmd(&con, _TSA("de... | 23.304348 | 117 | 0.642724 | crashangelbr |
d792a6651b1b55575ec0ca8a96a4f36bc8aebbff | 1,501 | hpp | C++ | src/img/PolygonHierarchy.hpp | dholzmueller/sfcpp | b929419b13c35fff199c6c65e87ecffae9963cfc | [
"Apache-2.0"
] | 15 | 2017-10-20T07:53:03.000Z | 2021-09-23T15:54:54.000Z | src/img/PolygonHierarchy.hpp | dholzmueller/sfcpp | b929419b13c35fff199c6c65e87ecffae9963cfc | [
"Apache-2.0"
] | null | null | null | src/img/PolygonHierarchy.hpp | dholzmueller/sfcpp | b929419b13c35fff199c6c65e87ecffae9963cfc | [
"Apache-2.0"
] | 3 | 2017-10-20T20:02:29.000Z | 2020-12-02T12:47:53.000Z | /* Copyright 2017 The sfcpp Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | 26.803571 | 143 | 0.706862 | dholzmueller |
d793e408fde2ffa5449e04c891e9970776a143e4 | 32,442 | cpp | C++ | logdevice/server/rebuilding/RebuildingReadStorageTaskV2.cpp | mateuszp4925/LogDevice | 6e79f0e61fff11b0caf15eb0bfd4d16ab5481a83 | [
"BSD-3-Clause"
] | 1 | 2019-12-18T09:07:45.000Z | 2019-12-18T09:07:45.000Z | logdevice/server/rebuilding/RebuildingReadStorageTaskV2.cpp | mateuszp4925/LogDevice | 6e79f0e61fff11b0caf15eb0bfd4d16ab5481a83 | [
"BSD-3-Clause"
] | null | null | null | logdevice/server/rebuilding/RebuildingReadStorageTaskV2.cpp | mateuszp4925/LogDevice | 6e79f0e61fff11b0caf15eb0bfd4d16ab5481a83 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "logdevice/server/rebuilding/RebuildingReadStorageTaskV2.h"
#include "logdevice/common/AdminComma... | 36.740657 | 80 | 0.640219 | mateuszp4925 |
d794055586616506d67f160ec44bc998aa11ba79 | 3,283 | hpp | C++ | libH/DynamicBuffer.hpp | pauljeremyturner/gizmod | 537b8c25360d907b1fde631336ccf723f38d4312 | [
"Apache-2.0"
] | null | null | null | libH/DynamicBuffer.hpp | pauljeremyturner/gizmod | 537b8c25360d907b1fde631336ccf723f38d4312 | [
"Apache-2.0"
] | null | null | null | libH/DynamicBuffer.hpp | pauljeremyturner/gizmod | 537b8c25360d907b1fde631336ccf723f38d4312 | [
"Apache-2.0"
] | null | null | null | /**
*********************************************************************
*************************************************************************
***
*** \file DynamicBuffer.hpp
*** \brief DynamicBuffer class header
***
*****************************************
*****************************************
... | 29.576577 | 169 | 0.531221 | pauljeremyturner |
d794cbf393baa2ab9a80a630412bb6f889659d0e | 794 | cpp | C++ | C++/5328 The K Weakest Rows in a Matrix.cpp | wr786/Key-to-LeetCode | edc1c1ec5ee9c268422cd857e27e5b9fbfae6fee | [
"Apache-2.0"
] | 4 | 2020-01-12T01:20:42.000Z | 2020-10-11T07:24:31.000Z | C++/5328 The K Weakest Rows in a Matrix.cpp | wr786/Key-to-LeetCode | edc1c1ec5ee9c268422cd857e27e5b9fbfae6fee | [
"Apache-2.0"
] | null | null | null | C++/5328 The K Weakest Rows in a Matrix.cpp | wr786/Key-to-LeetCode | edc1c1ec5ee9c268422cd857e27e5b9fbfae6fee | [
"Apache-2.0"
] | 1 | 2021-09-14T14:14:55.000Z | 2021-09-14T14:14:55.000Z | class Solution {
private:
struct row{
int idx;
int cnt;
};
public:
static bool cmp(row A, row B) {
if(A.cnt != B.cnt) return A.cnt < B.cnt;
else return A.idx < B.idx;
}
vector<int> kWeakestRows(vector<vector<int>>& mat, int k) {
vector<row> matIdx;
int... | 27.37931 | 63 | 0.462217 | wr786 |
d79522152a50cc75e855e4561f8aa7bfb0178618 | 5,875 | cpp | C++ | ident.cpp | samee/oalex | cacdd0bf744f3092e721e7e0a48a4ef0d6194fe8 | [
"Apache-2.0"
] | null | null | null | ident.cpp | samee/oalex | cacdd0bf744f3092e721e7e0a48a4ef0d6194fe8 | [
"Apache-2.0"
] | null | null | null | ident.cpp | samee/oalex | cacdd0bf744f3092e721e7e0a48a4ef0d6194fe8 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020-2021 The oalex 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 ... | 28.519417 | 79 | 0.627404 | samee |
d795d6647e1567e716f37186159709709e885437 | 4,102 | cpp | C++ | src/Nature/World.cpp | agruzdev/OgreNature | 3a9b2429255841ac64eb6286bc88b3c49b857b75 | [
"MIT"
] | null | null | null | src/Nature/World.cpp | agruzdev/OgreNature | 3a9b2429255841ac64eb6286bc88b3c49b857b75 | [
"MIT"
] | null | null | null | src/Nature/World.cpp | agruzdev/OgreNature | 3a9b2429255841ac64eb6286bc88b3c49b857b75 | [
"MIT"
] | null | null | null | /**
* @file World.cpp
*
* Copyright (c) 2015 by Gruzdev Alexey
*
* Code covered by the MIT License
* The authors make no representations about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
*/
#include "World.h"
#include <OgreSceneManager.h>
#include <O... | 37.633028 | 171 | 0.678937 | agruzdev |
d796054b8782828e095321bcd41be9a8769c825f | 916 | cpp | C++ | 2nd/036_valid_sudoku.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/036_valid_sudoku.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/036_valid_sudoku.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
typedef vector<char>::size_type sz_t;
bool isValidSudoku(vector<vector<char> >& board) {
const int len = board.size();
vector<bool> tmp(len, false);
vector<vector<bool> > cols(len, tmp);
vector<... | 25.444444 | 66 | 0.437773 | buptlxb |
d7974f9b8bc4ea2a35b5fe46ce61e6768b7e1ef4 | 1,545 | cpp | C++ | RandomDistribution_Viz/source/lines.cpp | AkashBujju/Practice_Excercises | 850ad69e8f77f5e34428f7264ca94fc54605b351 | [
"MIT"
] | null | null | null | RandomDistribution_Viz/source/lines.cpp | AkashBujju/Practice_Excercises | 850ad69e8f77f5e34428f7264ca94fc54605b351 | [
"MIT"
] | null | null | null | RandomDistribution_Viz/source/lines.cpp | AkashBujju/Practice_Excercises | 850ad69e8f77f5e34428f7264ca94fc54605b351 | [
"MIT"
] | null | null | null | #include "lines.h"
#define GLM_FORCE_RADIANS
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
Lines::Lines(GLint program) {
this->program = program;
}
void Lines::add(glm::vec3 position, glm::vec3 color, float length, float angle) {
int current_index = positions.size();
float vertices[] = ... | 29.150943 | 81 | 0.713916 | AkashBujju |
d7995fb778b95744265d062bd09f483c53c1d7b1 | 1,055 | cpp | C++ | 数据结构/AC自动机/acwing_1285_2.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | 3 | 2020-11-16T08:58:30.000Z | 2020-11-16T08:58:33.000Z | 数据结构/AC自动机/acwing_1285_2.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | 数据结构/AC自动机/acwing_1285_2.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
const int N = 1e6 + 10;
int tr[N][26], f[N];
int ne[N];
int q[N];
char str[N];
int id[210];
int n, idx;
void insert(int x) {
int p = 0;
for (int i = 0; str[i]; i++) {
int t = str[i] - 'a';
if (!tr[p][t]) tr[p][t] = ++idx;
p = ... | 18.508772 | 63 | 0.363981 | tempure |
d799cae8443546a563b3de0ca369c06ae2845345 | 109 | cpp | C++ | CREP/logger.cpp | martinschonger/aerdg | d28df9fc9e2e0780f6e492e378320ed004e516ea | [
"MIT"
] | null | null | null | CREP/logger.cpp | martinschonger/aerdg | d28df9fc9e2e0780f6e492e378320ed004e516ea | [
"MIT"
] | null | null | null | CREP/logger.cpp | martinschonger/aerdg | d28df9fc9e2e0780f6e492e378320ed004e516ea | [
"MIT"
] | null | null | null | #include "logger.h"
crep::log::logger crep::log::logger_instance;
// Copyright (c) 2019 Martin Schonger | 21.8 | 46 | 0.706422 | martinschonger |
d7a2ed0f2ad4cf14b853b500b8a966e8f06b2cd8 | 4,515 | cpp | C++ | PercularityEngine/SceneWindow.cpp | DLorenzoLaguno17/provisional-engine | 95ad1eeea7298f5557a9b17479ea31b0cdfd5d49 | [
"MIT"
] | null | null | null | PercularityEngine/SceneWindow.cpp | DLorenzoLaguno17/provisional-engine | 95ad1eeea7298f5557a9b17479ea31b0cdfd5d49 | [
"MIT"
] | null | null | null | PercularityEngine/SceneWindow.cpp | DLorenzoLaguno17/provisional-engine | 95ad1eeea7298f5557a9b17479ea31b0cdfd5d49 | [
"MIT"
] | 1 | 2019-11-11T10:58:19.000Z | 2019-11-11T10:58:19.000Z | #include "Application.h"
#include "ModuleRenderer3D.h"
#include "ModuleScene.h"
#include "ModuleWindow.h"
#include "ModuleInput.h"
#include "ModuleResourceManager.h"
#include "ModuleCamera3D.h"
#include "SceneWindow.h"
#include "ComponentCamera.h"
#include "GameObject.h"
#include "mmgr/mmgr.h"
#include "ComponentTrans... | 32.717391 | 170 | 0.70454 | DLorenzoLaguno17 |
d7a71b95957b8d06395211472a760c49b84b8cc3 | 5,631 | cpp | C++ | src/gpu/vk/GrVkAttachment.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | src/gpu/vk/GrVkAttachment.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | src/gpu/vk/GrVkAttachment.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/vk/GrVkAttachment.h"
#include "src/gpu/vk/GrVkGpu.h"
#include "src/gpu/vk/GrVkImage.h"
#include "src/gpu/vk/GrVkImageView.h"
#include "src/gpu/vk/GrVkUtil.h... | 37.291391 | 99 | 0.736636 | NearTox |
92e1223f3817914e2fb6944af06d56106b34527d | 4,397 | cpp | C++ | Core/Contents/Source/PolyConfig.cpp | cartman300/Polycode | b6fe41c6123281db3caee3c11f655de79df6fbfb | [
"MIT"
] | 839 | 2015-01-01T10:47:04.000Z | 2022-03-29T00:16:15.000Z | Core/Contents/Source/PolyConfig.cpp | cartman300/Polycode | b6fe41c6123281db3caee3c11f655de79df6fbfb | [
"MIT"
] | 124 | 2015-01-03T22:46:04.000Z | 2020-12-23T00:33:56.000Z | Core/Contents/Source/PolyConfig.cpp | cartman300/Polycode | b6fe41c6123281db3caee3c11f655de79df6fbfb | [
"MIT"
] | 192 | 2015-01-04T17:49:07.000Z | 2022-03-13T22:42:38.000Z | /*
Copyright (C) 2011 by Ivan Safrin
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, distri... | 32.330882 | 100 | 0.719127 | cartman300 |
92e35d77999f0d3cba5e741bb2ce049a3c121222 | 1,253 | cpp | C++ | Cashbox/workspacewindow.cpp | NikitaSyromiatnikov/Cashbox | 6e40a33e3dfa1e4e3f0c6e75a00f118a7190184f | [
"MIT"
] | 1 | 2021-12-14T15:31:37.000Z | 2021-12-14T15:31:37.000Z | Cashbox/workspacewindow.cpp | NikitaSyromiatnikov/Cashbox | 6e40a33e3dfa1e4e3f0c6e75a00f118a7190184f | [
"MIT"
] | null | null | null | Cashbox/workspacewindow.cpp | NikitaSyromiatnikov/Cashbox | 6e40a33e3dfa1e4e3f0c6e75a00f118a7190184f | [
"MIT"
] | null | null | null | #include "workspacewindow.hpp"
#include "ui_workspacewindow.h"
#include "order.hpp"
#include <iostream>
WorkspaceWindow::WorkspaceWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::WorkspaceWindow)
{
ui->setupUi(this);
this->Storage = new SQLStorage("./dirname");
this->Storage->open();
... | 25.571429 | 82 | 0.65842 | NikitaSyromiatnikov |
92e49808cd8a062db5e0b90f1cd3533e962668ab | 2,487 | cpp | C++ | print_center_fix/src/amxx_module.cpp | d3m37r4/Print-Center-Fix | f0afaf84b57f68b924c966c461311c4500ede8f8 | [
"MIT"
] | 2 | 2021-01-12T11:53:42.000Z | 2021-01-12T11:53:42.000Z | print_center_fix/src/amxx_module.cpp | d3m37r4/Print-Center-Fix | f0afaf84b57f68b924c966c461311c4500ede8f8 | [
"MIT"
] | null | null | null | print_center_fix/src/amxx_module.cpp | d3m37r4/Print-Center-Fix | f0afaf84b57f68b924c966c461311c4500ede8f8 | [
"MIT"
] | null | null | null | // ***********************************************************************
// Author : the_hunter
// Created : 04-01-2020
//
// Last Modified By : the_hunter
// Last Modified On : 04-01-2020
// ***********************************************************************
#include <print_center_fix/amxx_mo... | 33.608108 | 108 | 0.698834 | d3m37r4 |
92e6d96a9d85fb9705951a282461c2fd5d579a21 | 2,601 | cpp | C++ | source/games/blood/src/controls.cpp | alexey-lysiuk/Raze | 690994ea1e6b105d4fc55d6b81ffda5e26e68c36 | [
"RSA-MD"
] | null | null | null | source/games/blood/src/controls.cpp | alexey-lysiuk/Raze | 690994ea1e6b105d4fc55d6b81ffda5e26e68c36 | [
"RSA-MD"
] | null | null | null | source/games/blood/src/controls.cpp | alexey-lysiuk/Raze | 690994ea1e6b105d4fc55d6b81ffda5e26e68c36 | [
"RSA-MD"
] | null | null | null | #pragma once
//-------------------------------------------------------------------------
/*
Copyright (C) 2020 Christoph Oelckers & Mitchell Richters
This file is part of Raze.
Raze 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 t... | 29.556818 | 104 | 0.622068 | alexey-lysiuk |
92e771760fc9390b56477a0aa7acc817b86b65b3 | 45,199 | cpp | C++ | src/backends/cl/test/ClCreateWorkloadTests.cpp | korabelnikov/armnn | 8c3259fa007d43fcc5ea56fe6928526dbe79f3c0 | [
"MIT"
] | null | null | null | src/backends/cl/test/ClCreateWorkloadTests.cpp | korabelnikov/armnn | 8c3259fa007d43fcc5ea56fe6928526dbe79f3c0 | [
"MIT"
] | null | null | null | src/backends/cl/test/ClCreateWorkloadTests.cpp | korabelnikov/armnn | 8c3259fa007d43fcc5ea56fe6928526dbe79f3c0 | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "ClContextControlFixture.hpp"
#include "ClWorkloadFactoryHelper.hpp"
#include <backendsCommon/MemCopyWorkload.hpp>
#include <aclCommon/test/CreateWorkloadClNeon.hpp>
#include <aclCommon/ArmComputeTensorUtils.hpp>
#inclu... | 42.802083 | 120 | 0.725613 | korabelnikov |
92e95f025b5887936a67bf9913ed6a443e047415 | 6,588 | cpp | C++ | hackerearth/circ_jan_19/x.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | hackerearth/circ_jan_19/x.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | hackerearth/circ_jan_19/x.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <array>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <algorithm>
using namespace std;
int N;
int canAdd, canRemove;
vector<string> G;
vector<array<float, 4>> P;
unordered_set<size_t> sols;
default_random_engine randEng;
uniform_int_distri... | 21.320388 | 64 | 0.442319 | tuket |
92eb192df0aff204185f971a82458852fd7cb357 | 1,022 | cpp | C++ | MainMenu.cpp | matheusvms/pongcpp | b0d1f399e9e7658e78d11ca7d89a5ac1b98c3a16 | [
"MIT"
] | null | null | null | MainMenu.cpp | matheusvms/pongcpp | b0d1f399e9e7658e78d11ca7d89a5ac1b98c3a16 | [
"MIT"
] | null | null | null | MainMenu.cpp | matheusvms/pongcpp | b0d1f399e9e7658e78d11ca7d89a5ac1b98c3a16 | [
"MIT"
] | null | null | null | //
// Created by sofia on 06/12/2020.
//
#include "stdafx.h"
#include "MainMenu.h"
MainMenu::MenuResult MainMenu::Show(sf::RenderWindow& window)
{
//Load menu image from file
sf::Texture texture;
texture.loadFromFile("mainmenu.png");
sf::Sprite sprite(texture);
//Setup clickable regions
//... | 20.857143 | 73 | 0.55773 | matheusvms |
92ebc98550df801b4d4d1d7d600c5c880b8d6560 | 2,865 | cpp | C++ | src/shape_drawer.cpp | THE-FYP/MoonAdditions | 659eb22d2217fd5870e8e1ead797a2175d314337 | [
"MIT"
] | 10 | 2017-08-11T08:51:05.000Z | 2022-03-22T10:21:38.000Z | src/shape_drawer.cpp | THE-FYP/MoonAdditions | 659eb22d2217fd5870e8e1ead797a2175d314337 | [
"MIT"
] | 1 | 2020-06-14T16:08:50.000Z | 2020-06-14T16:08:50.000Z | src/shape_drawer.cpp | THE-FYP/MoonAdditions | 659eb22d2217fd5870e8e1ead797a2175d314337 | [
"MIT"
] | 7 | 2017-09-22T17:20:02.000Z | 2020-07-26T17:47:10.000Z | // MIT License
// Copyright (c) 2012 DK22Pac
// Copyright (c) 2017 FYP
// 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 ... | 39.246575 | 122 | 0.784642 | THE-FYP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.