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
c4e0f4e8a519ae998848fcd9abfa6bd0abeb5ac9
2,368
cxx
C++
convolution_surface.cxx
sgumhold/implicit
0832fe7984dd3987724553c4dcd52d89f5633231
[ "BSD-3-Clause" ]
null
null
null
convolution_surface.cxx
sgumhold/implicit
0832fe7984dd3987724553c4dcd52d89f5633231
[ "BSD-3-Clause" ]
1
2020-04-23T19:22:46.000Z
2020-04-23T19:22:46.000Z
convolution_surface.cxx
sgumhold/implicit
0832fe7984dd3987724553c4dcd52d89f5633231
[ "BSD-3-Clause" ]
null
null
null
#include "distance_surface.h" template <typename T> class convolution_surface : public distance_surface<T> { private: /// v= shortest distance from line to p T put_line_distance_vector(size_t ei, const pnt_type &p, vec_type& v) const { v=p-points[edges[ei].first]; T alpha=dot(v,edge_vector_inv_length[ei]); v...
24.926316
106
0.656672
sgumhold
c4e5fc233a5bed232a17bfcd00801a281879d413
8,711
cpp
C++
src/securesmtpclientbase.cpp
JamesBremner/mailout
a4c670680caa54d4aafbbad8520072e2bf3487f6
[ "MIT" ]
null
null
null
src/securesmtpclientbase.cpp
JamesBremner/mailout
a4c670680caa54d4aafbbad8520072e2bf3487f6
[ "MIT" ]
null
null
null
src/securesmtpclientbase.cpp
JamesBremner/mailout
a4c670680caa54d4aafbbad8520072e2bf3487f6
[ "MIT" ]
null
null
null
#include "securesmtpclientbase.h" #include "smtpclienterrors.h" #include "socketerrors.h" #include "sslerrors.h" #include <openssl/err.h> #ifdef _WIN32 #include <WinSock2.h> #include <ws2tcpip.h> #include <BaseTsd.h> typedef SSIZE_T ssize_t; #include <windows.h> constexpr auto sleep = Sleep; #else...
29.934708
124
0.658593
JamesBremner
c4e683fc07c0d56bfc806fa07a4ef17a0e34530d
1,074
cpp
C++
Crisp/GUI/Panel.cpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
6
2017-09-14T03:26:49.000Z
2021-09-18T05:40:59.000Z
Crisp/GUI/Panel.cpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
Crisp/GUI/Panel.cpp
FallenShard/Crisp
d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423
[ "MIT" ]
null
null
null
#include "Panel.hpp" #include "Form.hpp" #include <iostream> namespace crisp::gui { Panel::Panel(Form* parentForm) : ControlGroup(parentForm) , m_drawComponent(parentForm->getRenderSystem()) { m_color = glm::vec4(0.125f, 0.125f, 0.125f, 1.0f); } Panel::~Panel() { } ...
23.347826
93
0.581937
FallenShard
c4e8fa2a3c5f2f3675ab952bc1a62767791b0147
3,526
cpp
C++
Core/SchedulingPolicies/Offline.cpp
adinaneda/part2proj
6029defd1ef87e598bb0ee1204cd22885e57d219
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
Core/SchedulingPolicies/Offline.cpp
adinaneda/part2proj
6029defd1ef87e598bb0ee1204cd22885e57d219
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
Core/SchedulingPolicies/Offline.cpp
adinaneda/part2proj
6029defd1ef87e598bb0ee1204cd22885e57d219
[ "Apache-2.0", "CC-BY-4.0" ]
1
2020-05-07T12:18:04.000Z
2020-05-07T12:18:04.000Z
// // Created by Adina Neda on 23/02/2020. // Released under license: Apache-2.0 License // #include "Offline.h" /** * Read and parse all tasks in file "input_file" * @param input_file */ void Offline::read_jobs_file(const string& input_file) { ifstream in(tasks_dir + input_file + ".csv"); string str; ...
37.115789
100
0.625071
adinaneda
c4eb2a2a30773ef2a7fdd0997e5d627b1c211afd
669
cpp
C++
hw2/main.cpp
brkn45/OOP-Courses-HW
35ed393047d4446e0d7cbc35d2ac96fb30874c88
[ "MIT" ]
null
null
null
hw2/main.cpp
brkn45/OOP-Courses-HW
35ed393047d4446e0d7cbc35d2ac96fb30874c88
[ "MIT" ]
null
null
null
hw2/main.cpp
brkn45/OOP-Courses-HW
35ed393047d4446e0d7cbc35d2ac96fb30874c88
[ "MIT" ]
null
null
null
#include "base.h" int main(){ int board[12][12]; int size=0; auto tips=0; auto flag=1; do{ cout<<"Please Enter Size Number Between 6 - 12"<<endl; cin>>size; if(size <= 12 && size >= 6 ) flag=0; else cerr<<"Wrong Number"<<endl; }while(f...
19.676471
88
0.493274
brkn45
c4eea68ab19bf39d29ac5be39fd7380d3d8f29de
1,136
cpp
C++
Chapter13/ImageViewer/mainwindow.cpp
Vaibhav-Kashyap/Hands-on-GUI-Programming-with-CPP-Qt5-pkt
4e964f0f4fc344fb7477c01cb22a04fabb5db965
[ "MIT" ]
87
2018-05-03T08:57:23.000Z
2022-03-25T03:35:56.000Z
Chapter13/ImageViewer/mainwindow.cpp
brutspark/Hands-On-GUI-Programming-with-CPP-and-Qt5
4d488dd54734954b06842ea25a256e5e18c7b01c
[ "MIT" ]
null
null
null
Chapter13/ImageViewer/mainwindow.cpp
brutspark/Hands-On-GUI-Programming-with-CPP-and-Qt5
4d488dd54734954b06842ea25a256e5e18c7b01c
[ "MIT" ]
51
2018-04-28T15:04:52.000Z
2022-03-07T13:20:30.000Z
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); imageBuffer = nullptr; } MainWindow::~MainWindow() { delete ui; } void MainWindow::paintEvent(QPaintEvent *event) { resizeImage(); }...
21.846154
138
0.652289
Vaibhav-Kashyap
c4ef8e1684de601037fa8e001916e885ef9ee174
1,078
cpp
C++
fxjs/cjs_icon.cpp
jamespayor/pdfium
07b4727a34d2f4aff851f0dc420faf617caca220
[ "BSD-3-Clause" ]
1
2019-01-12T07:00:46.000Z
2019-01-12T07:00:46.000Z
fxjs/cjs_icon.cpp
jamespayor/pdfium
07b4727a34d2f4aff851f0dc420faf617caca220
[ "BSD-3-Clause" ]
null
null
null
fxjs/cjs_icon.cpp
jamespayor/pdfium
07b4727a34d2f4aff851f0dc420faf617caca220
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "fxjs/cjs_icon.h" const JSPropertySpec CJS_Icon::PropertySpecs[] = {...
26.95
80
0.713358
jamespayor
c4f046962bc8f2d55bb287683c98971eb06d0369
1,915
cxx
C++
sources/etx/core/options.cxx
sergeyreznik/etx-tracer
e9941102daa5693af2a975e561022920a85826ef
[ "MIT" ]
180
2022-01-18T18:55:06.000Z
2022-03-21T14:24:39.000Z
sources/etx/core/options.cxx
serhii-rieznik/etx-tracer
cde081e8e352b4d7777b2070d4e50b58dcf8c0cb
[ "MIT" ]
1
2022-02-25T14:05:49.000Z
2022-02-25T14:05:49.000Z
sources/etx/core/options.cxx
serhii-rieznik/etx-tracer
cde081e8e352b4d7777b2070d4e50b58dcf8c0cb
[ "MIT" ]
7
2022-02-02T00:57:57.000Z
2022-02-22T15:53:15.000Z
#include <etx/core/options.hxx> #include <jansson.h> namespace etx { void Options::save_to_file(const char* filename) { json_t* js = json_object(); for (const auto& val : values) { switch (val.cls) { case OptionalValue::Class::Boolean: { json_object_set_new(js, val.id.c_str(), json_boolean(va...
24.240506
80
0.563969
sergeyreznik
c4f11ba2e00acce7bc594c097abd17456487e882
16,866
cc
C++
src/mainwindow/mainwindow.cc
SEED264/Qt_Learning
10ebe1c1ca20abeb5e88224f5616135e9140fa1f
[ "MIT" ]
null
null
null
src/mainwindow/mainwindow.cc
SEED264/Qt_Learning
10ebe1c1ca20abeb5e88224f5616135e9140fa1f
[ "MIT" ]
null
null
null
src/mainwindow/mainwindow.cc
SEED264/Qt_Learning
10ebe1c1ca20abeb5e88224f5616135e9140fa1f
[ "MIT" ]
null
null
null
#include <QtGui/QIcon> #include <QtWidgets/QtWidgets> #include "finddialog.h" #include "gotocelldialog.h" #include "mainwindow.h" #include "sortdialog.h" #include "spreadsheet.h" MainWindow::MainWindow() { spreadsheet = new Spreadsheet; setCentralWidget(spreadsheet); createActions(); crea...
36.585683
90
0.615439
SEED264
c4f12a98cb824e645061b3e19f6fd0073d05d91b
397
hpp
C++
tests/graphics_benchmark/spheres_scene.hpp
LaisoEmilio/WispRenderer
8186856a7b3e1f0a19f6f6c8a9b99d8ccff38572
[ "Apache-2.0" ]
203
2019-04-26T10:52:22.000Z
2022-03-15T17:42:44.000Z
tests/graphics_benchmark/spheres_scene.hpp
LaisoEmilio/WispRenderer
8186856a7b3e1f0a19f6f6c8a9b99d8ccff38572
[ "Apache-2.0" ]
90
2018-11-23T09:07:05.000Z
2019-04-13T10:44:03.000Z
tests/graphics_benchmark/spheres_scene.hpp
LaisoEmilio/WispRenderer
8186856a7b3e1f0a19f6f6c8a9b99d8ccff38572
[ "Apache-2.0" ]
14
2019-06-19T00:52:00.000Z
2021-02-19T13:44:01.000Z
#pragma once #include "scene.hpp" class SpheresScene : public Scene { public: SpheresScene(); void Update() final; protected: void LoadResources() final; void BuildScene(unsigned int width, unsigned int height) final; private: float Lerp(float v0, float v1, float t); // Models wr::Model* m_sphere_model; ...
15.88
64
0.732997
LaisoEmilio
c4f155f819a282991275de16e01835e5d28d0b46
1,411
cpp
C++
codeforces/F - Yet Another Substring Reverse/Time limit exceeded on test 13.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
codeforces/F - Yet Another Substring Reverse/Time limit exceeded on test 13.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
codeforces/F - Yet Another Substring Reverse/Time limit exceeded on test 13.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729 created: Oct/07/2019 20:25 * solution_verdict: Time limit exceeded on test 13 language: GNU C++14 * run...
33.595238
111
0.453579
kzvd4729
c4f5864a3d52088d9680e74d06eec354d9025211
5,879
cpp
C++
AvianCore/mempack.cpp
whenbellstoll/AvianEngine
1de81fd151676139ba06b6dfee3dd5b10a5e5dfe
[ "MIT" ]
7
2020-12-12T00:00:52.000Z
2021-03-28T02:04:28.000Z
AvianCore/mempack.cpp
whenbellstoll/AvianEngine
1de81fd151676139ba06b6dfee3dd5b10a5e5dfe
[ "MIT" ]
null
null
null
AvianCore/mempack.cpp
whenbellstoll/AvianEngine
1de81fd151676139ba06b6dfee3dd5b10a5e5dfe
[ "MIT" ]
1
2021-02-20T22:04:42.000Z
2021-02-20T22:04:42.000Z
#include "globals.h" void MEMPACK_Init(Mempack* mp, void* start, int size, const char* name) { // size is the amount of bytes in the mempack mp->name = name; mp->packSize = size; mp->start = (char*)start; mp->firstFreeByte = (char*)start; mp->end = (char*)start + size; mp->lastFreeByte =...
27.471963
114
0.611669
whenbellstoll
c4f5f0fc55a3402a6ba07c1ac9b5662e9911ebdc
8,778
cc
C++
test/unit/picolibrary/i2c/address/main.cc
apcountryman/picolibrary
81349bd1b72874afead7d66004415e517a5da5f1
[ "Apache-2.0" ]
3
2021-02-12T04:05:42.000Z
2022-02-15T19:23:52.000Z
test/unit/picolibrary/i2c/address/main.cc
apcountryman/picolibrary
81349bd1b72874afead7d66004415e517a5da5f1
[ "Apache-2.0" ]
633
2019-08-31T20:58:26.000Z
2022-03-31T22:23:36.000Z
test/unit/picolibrary/i2c/address/main.cc
apcountryman/picolibrary
81349bd1b72874afead7d66004415e517a5da5f1
[ "Apache-2.0" ]
1
2021-02-17T20:40:49.000Z
2021-02-17T20:40:49.000Z
/** * picolibrary * * Copyright 2020-2021, Andrew Countryman <apcountryman@gmail.com> and the picolibrary * contributors * * 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://...
30.692308
123
0.666325
apcountryman
f202217c939b124c7d9211306966f1e6f2134969
292
cc
C++
src/base/base.cc
imos/gbase
25b9b23dca9f7b78e662ae3cd9417e7a93b0d056
[ "MIT" ]
2
2016-08-27T18:43:45.000Z
2017-05-20T11:26:16.000Z
src/base/base.cc
imos/gbase
25b9b23dca9f7b78e662ae3cd9417e7a93b0d056
[ "MIT" ]
null
null
null
src/base/base.cc
imos/gbase
25b9b23dca9f7b78e662ae3cd9417e7a93b0d056
[ "MIT" ]
null
null
null
#include "base/macros.h" #include "third_party/gflags/gflags.h" #include "third_party/glog/logging.h" void ParseCommandLineFlags(int* argc, char*** argv) { google::ParseCommandLineFlags(argc, argv, true); google::InitGoogleLogging((*argv)[0]); google::InstallFailureSignalHandler(); }
29.2
53
0.75
imos
f20471d3c31e30d8b22f2892f67d60099b68d09d
3,537
cpp
C++
gui/widgets/screen.cpp
goossens/ObjectTalk
ca1d4f558b5ad2459b376102744d52c6283ec108
[ "MIT" ]
6
2021-11-12T15:03:53.000Z
2022-01-28T18:30:33.000Z
gui/widgets/screen.cpp
goossens/ObjectTalk
ca1d4f558b5ad2459b376102744d52c6283ec108
[ "MIT" ]
null
null
null
gui/widgets/screen.cpp
goossens/ObjectTalk
ca1d4f558b5ad2459b376102744d52c6283ec108
[ "MIT" ]
null
null
null
// ObjectTalk Scripting Language // Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved. // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. // // Include files // #include "ot/function.h" #include "screen.h" #include "menubar.h" #incl...
20.445087
125
0.670059
goossens
f20483845ae65972c4ee5c3fbded0e6ea714d206
1,147
cpp
C++
HAL/IMU/Drivers/Csv/CsvFactory.cpp
vhanded/HAL
56819df45a1d3edf118282b644449c9d1e395286
[ "Apache-2.0" ]
34
2015-07-19T06:34:09.000Z
2022-03-15T13:34:38.000Z
HAL/IMU/Drivers/Csv/CsvFactory.cpp
vhanded/HAL
56819df45a1d3edf118282b644449c9d1e395286
[ "Apache-2.0" ]
43
2015-02-08T17:06:28.000Z
2020-06-09T15:22:16.000Z
HAL/IMU/Drivers/Csv/CsvFactory.cpp
vhanded/HAL
56819df45a1d3edf118282b644449c9d1e395286
[ "Apache-2.0" ]
36
2015-04-18T15:41:49.000Z
2021-05-28T15:55:28.000Z
#include <HAL/Devices/DeviceFactory.h> #include <HAL/Utils/StringUtils.h> #include "CsvDriver.h" namespace hal { class CsvFactory : public DeviceFactory<IMUDriverInterface> { public: CsvFactory(const std::string& name) : DeviceFactory<IMUDriverInterface>(name) { Params() = { }; } ...
31.861111
110
0.683522
vhanded
f21916083e9bc01414286a2e615df3939d697df2
4,453
hpp
C++
include/decenc/decenc_base16.hpp
serge1/decenc
9c88ccaa690dc245827357804c8ff3f0a898cc18
[ "MIT" ]
null
null
null
include/decenc/decenc_base16.hpp
serge1/decenc
9c88ccaa690dc245827357804c8ff3f0a898cc18
[ "MIT" ]
null
null
null
include/decenc/decenc_base16.hpp
serge1/decenc
9c88ccaa690dc245827357804c8ff3f0a898cc18
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2020 Serge Lamikhov-Center 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...
37.737288
108
0.612621
serge1
35eed46bc0d6e05b5540e5ddd87e9ef569f6ee66
2,353
cpp
C++
src/mod/mvm/friendlyfire.cpp
fugueinheels/sigsegv-mvm
092a69d44a3ed9aacd14886037f4093a27ff816b
[ "BSD-2-Clause" ]
33
2016-02-18T04:27:53.000Z
2022-01-15T18:59:53.000Z
src/mod/mvm/friendlyfire.cpp
fugueinheels/sigsegv-mvm
092a69d44a3ed9aacd14886037f4093a27ff816b
[ "BSD-2-Clause" ]
5
2018-01-10T18:41:38.000Z
2020-10-01T13:34:53.000Z
src/mod/mvm/friendlyfire.cpp
fugueinheels/sigsegv-mvm
092a69d44a3ed9aacd14886037f4093a27ff816b
[ "BSD-2-Clause" ]
14
2017-08-06T23:02:49.000Z
2021-08-24T00:24:16.000Z
#include "mod.h" #include "stub/gamerules.h" #include "stub/tfplayer.h" #include "stub/tf_shareddefs.h" namespace Mod::MvM::FriendlyFire { ConVar cvar_lagcompensate("sig_mvm_friendlyfire_lagcompensate", "1", FCVAR_NOTIFY, "Mod: enable lag compensation for friendly fire mode"); void ConVarEnableCha...
33.614286
164
0.724607
fugueinheels
35f235133db5909885501578e6135a390f6ba143
1,180
hpp
C++
src/Network.hpp
gstonge/spreading_CR
5e0b408555a702dde3396bd25a07f91b901a8709
[ "MIT" ]
8
2018-08-17T17:08:14.000Z
2022-01-20T15:23:20.000Z
src/Network.hpp
gstonge/spreading_CR
5e0b408555a702dde3396bd25a07f91b901a8709
[ "MIT" ]
1
2020-08-10T13:30:31.000Z
2020-08-14T14:34:35.000Z
src/Network.hpp
gstonge/spreading_CR
5e0b408555a702dde3396bd25a07f91b901a8709
[ "MIT" ]
2
2020-08-09T08:00:31.000Z
2020-08-13T11:43:33.000Z
/** * \file Network.hpp * \brief Header file for class Network * \author Guillaume St-Onge * \version 1.0 * \date 27/01/2018 */ #ifndef NETWORK_HPP_ #define NETWORK_HPP_ #include <utility> #include <vector> #include <memory> namespace net {//start of namespace net typedef unsigned int NodeLabel; /** * \class Netw...
22.692308
75
0.698305
gstonge
35f5f737cb4563ab37dbaec34d3d4b550f55599b
1,396
hpp
C++
src/include/oeis_manager.hpp
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
src/include/oeis_manager.hpp
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
src/include/oeis_manager.hpp
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
#pragma once #include "finder.hpp" #include "interpreter.hpp" #include "minimizer.hpp" #include "number.hpp" #include "oeis_sequence.hpp" #include "optimizer.hpp" #include "program.hpp" #include "util.hpp" class Oeis { public: Oeis( const Settings &settings ); virtual ~Oeis() { } void load( volatile sig_...
20.231884
104
0.721347
karttu
c403de8b1e7e63fe800a303e77cf1ba8e55b26ba
582
cpp
C++
Problems/1582. Special Positions in a Binary Matrix.cpp
KrKush23/LeetCode
2a87420a65347a34fba333d46e1aa6224c629b7a
[ "MIT" ]
null
null
null
Problems/1582. Special Positions in a Binary Matrix.cpp
KrKush23/LeetCode
2a87420a65347a34fba333d46e1aa6224c629b7a
[ "MIT" ]
null
null
null
Problems/1582. Special Positions in a Binary Matrix.cpp
KrKush23/LeetCode
2a87420a65347a34fba333d46e1aa6224c629b7a
[ "MIT" ]
null
null
null
class Solution { public: int numSpecial(vector<vector<int>>& mat) { int n = mat.size(); int m = mat[0].size(); vector<int> row(n), col(m); int res{}; for(int i=0; i<n; i++){ for(int j=0; j<m; j++){ if(mat[i][j] == 1) ro...
23.28
62
0.329897
KrKush23
c405615d185dba5e96c826fe9e7fd3e398cb31f4
11,859
cpp
C++
src/Backends/DirectX12/src/buffer.cpp
jayrulez/LiteFX
482480fee96dd80c73356cd6898ea0e0544ac09d
[ "MIT" ]
8
2021-06-23T09:04:10.000Z
2022-02-06T19:01:21.000Z
src/Backends/DirectX12/src/buffer.cpp
jayrulez/LiteFX
482480fee96dd80c73356cd6898ea0e0544ac09d
[ "MIT" ]
29
2021-06-23T13:59:54.000Z
2021-08-03T14:12:59.000Z
src/Backends/DirectX12/src/buffer.cpp
jayrulez/LiteFX
482480fee96dd80c73356cd6898ea0e0544ac09d
[ "MIT" ]
1
2021-10-30T18:44:02.000Z
2021-10-30T18:44:02.000Z
#include "buffer.h" using namespace LiteFX::Rendering::Backends; // ------------------------------------------------------------------------------------------------ // Buffer implementation. // ------------------------------------------------------------------------------------------------ class DirectX12Buffer::Dir...
43.922222
354
0.701493
jayrulez
c407bed2902079a330aad8fab0bc23ab4f2b4fc7
479
cpp
C++
src/candidato.cpp
Gaobaofogo/trabalho1_edb1
e1bbd3a45f0d8b0d1db02a293a961d7760db4eb6
[ "MIT" ]
null
null
null
src/candidato.cpp
Gaobaofogo/trabalho1_edb1
e1bbd3a45f0d8b0d1db02a293a961d7760db4eb6
[ "MIT" ]
null
null
null
src/candidato.cpp
Gaobaofogo/trabalho1_edb1
e1bbd3a45f0d8b0d1db02a293a961d7760db4eb6
[ "MIT" ]
null
null
null
#include "candidato.hpp" #include <sstream> Candidato::Candidato() { this->nome = ""; this->acertos = 0; } Candidato::Candidato(std::string string_candidato, Gabarito gabarito) { this->acertos = 0; std::stringstream sstream(string_candidato); // Insere nome sstream >> this->nome; // Coloca as notas...
17.107143
71
0.60334
Gaobaofogo
c40910e37b5945e86549fbee29716a601a23c7ec
202,799
cpp
C++
unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs31.cpp
leeenglestone/mrtk
e9c81815e5cdfba3315bb72f16400a80383a3b63
[ "MIT" ]
null
null
null
unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs31.cpp
leeenglestone/mrtk
e9c81815e5cdfba3315bb72f16400a80383a3b63
[ "MIT" ]
null
null
null
unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs31.cpp
leeenglestone/mrtk
e9c81815e5cdfba3315bb72f16400a80383a3b63
[ "MIT" ]
null
null
null
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> #include "vm/CachedCCWBase.h" #include "utils/New.h" // System.WeakReference`1<System.Diagnostics.Tracing.EtwSession>[] struct WeakReference_1U5BU5D_t208DFB1D59AEB7CEC27C03B8EF7705...
55.607074
976
0.861326
leeenglestone
c409ef142548ebb3901f540fabd6e859ac0281a1
314
cpp
C++
src/0_time_matrix.cpp
boydpe/nphawkes
ebd31de3e6f0198fe22229e2ea36026ddefba648
[ "MIT" ]
2
2021-06-05T03:09:04.000Z
2021-07-06T07:51:17.000Z
src/0_time_matrix.cpp
boydpe/nphawkes
ebd31de3e6f0198fe22229e2ea36026ddefba648
[ "MIT" ]
null
null
null
src/0_time_matrix.cpp
boydpe/nphawkes
ebd31de3e6f0198fe22229e2ea36026ddefba648
[ "MIT" ]
null
null
null
#include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] NumericMatrix get_time(NumericVector times) { int n_i = times.size(); NumericMatrix time_mat(n_i, n_i); for (int i = 0; i < n_i; i++){ for (int j =0; j < n_i; j++){ time_mat(i,j) = times[j] - times[i]; } } return time_mat; }
18.470588
45
0.582803
boydpe
c40ca4ef95bbd67f8f3b72a2e59dd7b45eed6fa5
20,986
cpp
C++
unittest/src/unittest_mn.cpp
Grobiel/mn
69510ed92fd2d606168edd52fdf00271a80afa48
[ "BSD-3-Clause" ]
null
null
null
unittest/src/unittest_mn.cpp
Grobiel/mn
69510ed92fd2d606168edd52fdf00271a80afa48
[ "BSD-3-Clause" ]
null
null
null
unittest/src/unittest_mn.cpp
Grobiel/mn
69510ed92fd2d606168edd52fdf00271a80afa48
[ "BSD-3-Clause" ]
null
null
null
#include <doctest/doctest.h> #include <mn/Memory.h> #include <mn/Buf.h> #include <mn/Str.h> #include <mn/Map.h> #include <mn/Pool.h> #include <mn/Memory_Stream.h> #include <mn/Virtual_Memory.h> #include <mn/IO.h> #include <mn/Str_Intern.h> #include <mn/Ring.h> #include <mn/OS.h> #include <mn/memory/Leak.h> #include <m...
18.804659
83
0.600257
Grobiel
c40e57a631d066e7e5dc5c0d1abeacf5aaa97ca7
6,544
hpp
C++
include/OggVorbisEncoder/Setup/IStaticCodeBook.hpp
RedBrumbler/virtuoso-codegen
e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3
[ "Unlicense" ]
null
null
null
include/OggVorbisEncoder/Setup/IStaticCodeBook.hpp
RedBrumbler/virtuoso-codegen
e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3
[ "Unlicense" ]
null
null
null
include/OggVorbisEncoder/Setup/IStaticCodeBook.hpp
RedBrumbler/virtuoso-codegen
e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include <stdint.h> #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/typedefs-array.hpp" // Completed includes // B...
52.352
219
0.754126
RedBrumbler
c41245a76ba07da03cd6b19dee985dd14974859a
2,821
cpp
C++
sources/Experiment.cpp
Mihailus2000/lab_02_cache
c2c51b0eca0d77b6b97886eb2ec82204b22fdecc
[ "MIT" ]
null
null
null
sources/Experiment.cpp
Mihailus2000/lab_02_cache
c2c51b0eca0d77b6b97886eb2ec82204b22fdecc
[ "MIT" ]
null
null
null
sources/Experiment.cpp
Mihailus2000/lab_02_cache
c2c51b0eca0d77b6b97886eb2ec82204b22fdecc
[ "MIT" ]
null
null
null
// // Created by mihailus on 22.09.2019. // #define _DEBUG #include <random> #include "Experiment.h" void Experiment::startExperiment() { directPassage(); reversePassage(); randomPassage(); #ifdef _DEBUG std::cout << "amount : " << amountOfElements_ << std::endl; // std::cout << "buffer size = " <<...
35.708861
115
0.599787
Mihailus2000
c42251cd258e51bbd5a01c4b3ff9c8da9185da7d
458
hpp
C++
solver_dsmc-master/gpu_dsmc/CUDACOD/include/cuda_dsmc/declare_host_constants.hpp
Jootiinha/IC-dsmcFoam
f46bb7307e4d3dd7b3eace50603713e153ce72c1
[ "MIT" ]
3
2020-11-25T06:32:42.000Z
2021-12-20T21:35:15.000Z
solver_dsmc-master/gpu_dsmc/CUDACOD/include/cuda_dsmc/declare_host_constants.hpp
Jootiinha/IC-dsmcFoam
f46bb7307e4d3dd7b3eace50603713e153ce72c1
[ "MIT" ]
null
null
null
solver_dsmc-master/gpu_dsmc/CUDACOD/include/cuda_dsmc/declare_host_constants.hpp
Jootiinha/IC-dsmcFoam
f46bb7307e4d3dd7b3eace50603713e153ce72c1
[ "MIT" ]
2
2020-11-25T06:32:52.000Z
2021-12-20T21:35:37.000Z
#ifndef DECLARE_HOST_CONSTANTS_HPP_INCLUDED #define DECLARE_HOST_CONSTANTS_HPP_INCLUDED 1 extern double gs; // Gyromagnetic ratio extern double MF; // Magnetic quantum number extern double muB; // Bohr magneton extern double mass; // 87Rb mass extern double pi; // Pi extern double a; // Constant cross-...
32.714286
54
0.759825
Jootiinha
c4233df4d09649ab6f924b266d9dbc0c42da3b7c
85,694
cpp
C++
source/map/map_generate_addWalls.cpp
Paul-Wortmann/Grume
0ffdd8f98e0b7d7857cc6a3e0f971f9a74651d17
[ "Intel" ]
3
2021-12-19T12:00:34.000Z
2021-12-30T08:36:58.000Z
source/map/map_generate_addWalls.cpp
Paul-Wortmann/Grume
0ffdd8f98e0b7d7857cc6a3e0f971f9a74651d17
[ "Intel" ]
2
2021-11-02T05:30:53.000Z
2021-11-30T00:11:16.000Z
source/map/map_generate_addWalls.cpp
Paul-Wortmann/Grume
0ffdd8f98e0b7d7857cc6a3e0f971f9a74651d17
[ "Intel" ]
null
null
null
/** * Copyright (C) Paul Wortmann * This file is part of "Grume" * * "Grume" 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, version 2 only. * * "Grume" is distributed in the hope that it will be usefu...
49.306099
148
0.383691
Paul-Wortmann
c4250f9490cb15fd085661bd8a38066bf9df8215
3,464
cpp
C++
renderdoc/driver/d3d11/d3d11_device2_wrap.cpp
pkonecki/renderdoc
46b057c505bc03f7add9b19f3b0b4c1c59d71d6f
[ "MIT" ]
20
2020-04-08T18:11:18.000Z
2022-03-29T10:47:30.000Z
renderdoc/driver/d3d11/d3d11_device2_wrap.cpp
Acidburn0zzz/renderdoc
6e8218d0e0c1e37c9b203021291b9d37a612fbfc
[ "MIT" ]
3
2020-12-30T05:16:38.000Z
2021-03-05T09:50:41.000Z
renderdoc/driver/d3d11/d3d11_device2_wrap.cpp
Acidburn0zzz/renderdoc
6e8218d0e0c1e37c9b203021291b9d37a612fbfc
[ "MIT" ]
8
2020-04-08T18:14:48.000Z
2022-01-29T10:47:54.000Z
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2016-2018 Baldur Karlsson * * 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...
38.488889
103
0.683603
pkonecki
c42af4081ad8f3e8138fa28e99cd490545c898bc
438
cpp
C++
src/Test.FunctionalTests.Sarif/ConverterTestData/PREfast/src/RelevantKeyEvents/RelevantKeyEvents2.cpp
rscrivens/sarif-sdk
6d0955af420777edc000c4f59570f8fc79d17149
[ "MIT" ]
78
2019-05-17T00:49:33.000Z
2022-03-21T21:52:19.000Z
src/Test.FunctionalTests.Sarif/ConverterTestData/PREfast/src/RelevantKeyEvents/RelevantKeyEvents2.cpp
rscrivens/sarif-sdk
6d0955af420777edc000c4f59570f8fc79d17149
[ "MIT" ]
932
2015-11-27T23:54:04.000Z
2019-05-06T20:37:39.000Z
src/Test.FunctionalTests.Sarif/ConverterTestData/PREfast/src/RelevantKeyEvents/RelevantKeyEvents2.cpp
rscrivens/sarif-sdk
6d0955af420777edc000c4f59570f8fc79d17149
[ "MIT" ]
48
2019-07-02T20:16:27.000Z
2022-03-02T21:58:48.000Z
typedef struct xlist { struct xlist *pNext; struct xlist *pPrev; } list; list *pNodeFree; list *masterList; int nBlockSize; void fun() { if (pNodeFree == 0) { list *pNode = masterList; for (int i = nBlockSize-1; i >= 0; i--, pNode--) { pNode->pNext = pNodeFr...
15.103448
56
0.513699
rscrivens
c4390c6abb424f966dca23641e712fba170b74fc
12,630
inl
C++
src/insitu/insitu_singlethread_tracer.inl
hyungman/SpRay
96380740dd88e6fbc21c0fdbf232cff357b1235d
[ "Apache-2.0" ]
7
2018-10-22T17:13:36.000Z
2020-04-17T08:28:55.000Z
src/insitu/insitu_singlethread_tracer.inl
hyungman/SpRay
96380740dd88e6fbc21c0fdbf232cff357b1235d
[ "Apache-2.0" ]
null
null
null
src/insitu/insitu_singlethread_tracer.inl
hyungman/SpRay
96380740dd88e6fbc21c0fdbf232cff357b1235d
[ "Apache-2.0" ]
1
2018-11-01T14:53:22.000Z
2018-11-01T14:53:22.000Z
// ========================================================================== // // Copyright (c) 2017-2018 The University of Texas at Austin. // // All rights reserved. // // ...
26.815287
80
0.586382
hyungman
c43ec5e7a721e00ba8a1c7f98d00ed0f1df7a66c
1,148
cpp
C++
cses_1079.cpp
Krshivam/CSES-Problems-solution
556cfc6b1e31f6b29f9f53f9ee7ca74e8b1c063e
[ "MIT" ]
null
null
null
cses_1079.cpp
Krshivam/CSES-Problems-solution
556cfc6b1e31f6b29f9f53f9ee7ca74e8b1c063e
[ "MIT" ]
null
null
null
cses_1079.cpp
Krshivam/CSES-Problems-solution
556cfc6b1e31f6b29f9f53f9ee7ca74e8b1c063e
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; #define f first #define s second #define ll long long #define pb push_back #define mp make_pair #define inp(x) cin>>x #define print(x) cout<<x #define pii pair<int,int> #define pll pair<ll,ll> #define gcd(a,b) __gcd(a,b) #define reset(d,val) memset(d,val,size...
19.793103
58
0.584495
Krshivam
c4402b6c916dfdf9d56ff5fc7a732778bcb80c2c
676
hpp
C++
nd-coursework/books/cpp/C++Templates/basics/varprint1.hpp
crdrisko/nd-grad
f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44
[ "MIT" ]
1
2020-09-26T12:38:55.000Z
2020-09-26T12:38:55.000Z
nd-coursework/books/cpp/C++Templates/basics/varprint1.hpp
crdrisko/nd-research
f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44
[ "MIT" ]
null
null
null
nd-coursework/books/cpp/C++Templates/basics/varprint1.hpp
crdrisko/nd-research
f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44
[ "MIT" ]
null
null
null
// Copyright (c) 2017 by Addison-Wesley, David Vandevoorde, Nicolai M. Josuttis, and Douglas Gregor. All rights reserved. // See the LICENSE file in the project root for more information. // // Name: varprint1.hpp // Author: cdrisko // Date: 07/27/2020-10:21:12 // Description: Printing a variable number of arguments #...
28.166667
121
0.642012
crdrisko
c4440d2e653a693d1372161a6849bcc34d006a9e
28,171
cpp
C++
src/tests/xeumeuleu_test/list_test.cpp
mat007/xeumeuleu
354d32a8250af32fd43f4ff24bf06156c9ee94f9
[ "BSD-3-Clause" ]
1
2017-06-16T08:38:57.000Z
2017-06-16T08:38:57.000Z
src/tests/xeumeuleu_test/list_test.cpp
mat007/xeumeuleu
354d32a8250af32fd43f4ff24bf06156c9ee94f9
[ "BSD-3-Clause" ]
5
2017-08-02T12:11:54.000Z
2019-09-17T12:36:02.000Z
src/tests/xeumeuleu_test/list_test.cpp
mat007/xeumeuleu
354d32a8250af32fd43f4ff24bf06156c9ee94f9
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2006, Mathieu Champlon * 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 cop...
40.12963
139
0.548294
mat007
c448fae3c1be49ad445600e255b0a902cac51385
4,752
cpp
C++
pizjuce/midiChords/JuceLibraryCode/modules/juce_gui_basics/windows/juce_DialogWindow.cpp
nonameentername/pizmidi
a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2
[ "BSD-Source-Code" ]
null
null
null
pizjuce/midiChords/JuceLibraryCode/modules/juce_gui_basics/windows/juce_DialogWindow.cpp
nonameentername/pizmidi
a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2
[ "BSD-Source-Code" ]
null
null
null
pizjuce/midiChords/JuceLibraryCode/modules/juce_gui_basics/windows/juce_DialogWindow.cpp
nonameentername/pizmidi
a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2
[ "BSD-Source-Code" ]
1
2021-01-26T12:25:01.000Z
2021-01-26T12:25:01.000Z
/* ============================================================================== This file is part of the JUCE library - "Jules' Utility Class Extensions" Copyright 2004-11 by Raw Material Software Ltd. ------------------------------------------------------------------------------ JUCE can be redistrib...
40.615385
118
0.557449
nonameentername
c44bbc15081e647637001c9fcb66ed5f420a1288
7,699
hpp
C++
rcff/include/CXKJ/RCF/Config.hpp
DayBreakZhang/CXKJ_Code
c7caab736313f029324f1c95714f5a94b2589076
[ "Apache-2.0" ]
null
null
null
rcff/include/CXKJ/RCF/Config.hpp
DayBreakZhang/CXKJ_Code
c7caab736313f029324f1c95714f5a94b2589076
[ "Apache-2.0" ]
null
null
null
rcff/include/CXKJ/RCF/Config.hpp
DayBreakZhang/CXKJ_Code
c7caab736313f029324f1c95714f5a94b2589076
[ "Apache-2.0" ]
null
null
null
//****************************************************************************** // RCF - Remote Call Framework // // Copyright (c) 2005 - 2019, Delta V Software. All rights reserved. // http://www.deltavsoft.com // // RCF is distributed under dual licenses - closed source or GPL. // Consult your particular license fo...
26.098305
130
0.70061
DayBreakZhang
c44d2a8e4413aac7df08a2f22701a4ce8c019265
161
hpp
C++
vm/nursery_space.hpp
doublec/factor
21ef21588252e2b54030ad6fd2fd1075dceb48f0
[ "BSD-2-Clause" ]
6
2015-02-06T20:12:37.000Z
2019-05-14T01:18:00.000Z
vm/nursery_space.hpp
doublec/factor
21ef21588252e2b54030ad6fd2fd1075dceb48f0
[ "BSD-2-Clause" ]
1
2019-09-03T21:22:51.000Z
2020-03-19T02:15:20.000Z
vm/nursery_space.hpp
doublec/factor
21ef21588252e2b54030ad6fd2fd1075dceb48f0
[ "BSD-2-Clause" ]
null
null
null
namespace factor { struct nursery_space : bump_allocator<object> { explicit nursery_space(cell size, cell start) : bump_allocator<object>(size,start) {} }; }
16.1
86
0.751553
doublec
c44e138363b296df36ea7f08ac308bf8a00c7375
46,423
cpp
C++
lms-suite/lms-suite/src/gui_src/lms6/pnlTxPLL.cpp
bujigr/mmap_fpga
e36ca7edb97091b7e5019a175c06b4fc96367a75
[ "CC-BY-3.0" ]
34
2015-01-26T19:34:21.000Z
2021-11-17T10:45:22.000Z
LMS6002D/lms-suite/src/gui_src/lms6/pnlTxPLL.cpp
serojik91/lms-suite
41c3e7e40a76d2520478e9f57bcd01d904907425
[ "Apache-2.0" ]
22
2015-02-07T01:39:50.000Z
2017-09-09T15:48:41.000Z
LMS6002D/lms-suite/src/gui_src/lms6/pnlTxPLL.cpp
serojik91/lms-suite
41c3e7e40a76d2520478e9f57bcd01d904907425
[ "Apache-2.0" ]
16
2015-01-13T16:44:11.000Z
2022-01-04T22:01:50.000Z
#include "pnlTxPLL.h" #include "dlgFreqVsCap.h" //(*InternalHeaders(pnlTxPLL) #include <wx/intl.h> #include <wx/string.h> //*) using namespace lms6; //(*IdInit(pnlTxPLL) const long pnlTxPLL::ID_DECODE_PLL = wxNewId(); const long pnlTxPLL::ID_OEN_TSTD_SX = wxNewId(); const long pnlTxPLL::ID_PASSEN_TSTOD_SD = wxNewId...
55.729892
192
0.754217
bujigr
c44f520a2cbbb07a2bca8f0d5d10b78b997dd7bc
4,370
cpp
C++
Entity.cpp
mdeff/atcsim
34f14732eb078d083ff0953f3282efeb220d3af0
[ "MIT" ]
6
2017-03-03T11:30:11.000Z
2021-01-15T05:19:45.000Z
Entity.cpp
mdeff/atcsim
34f14732eb078d083ff0953f3282efeb220d3af0
[ "MIT" ]
null
null
null
Entity.cpp
mdeff/atcsim
34f14732eb078d083ff0953f3282efeb220d3af0
[ "MIT" ]
5
2018-06-13T21:10:40.000Z
2022-03-30T10:47:24.000Z
/* * File: Entity.cpp * Author: michael * * Created on 11. avril 2013, 17:50 */ #include <cmath> #include <algorithm> // For std::cos() and std::sin(). #include "Constants.h" #include "Entity.h" #include "Framerate.h" namespace ATCsim { // Project ATCsim namespace. Entity::Entity(float cape, unsign...
25.260116
122
0.710755
mdeff
c452665b1bfd494e420f40078d7029d19980be02
8,402
hpp
C++
include/incompNS/solver.hpp
pratyuksh/NumHypSys
29e03f9cc0572178701525210561b152d89999d4
[ "MIT" ]
null
null
null
include/incompNS/solver.hpp
pratyuksh/NumHypSys
29e03f9cc0572178701525210561b152d89999d4
[ "MIT" ]
null
null
null
include/incompNS/solver.hpp
pratyuksh/NumHypSys
29e03f9cc0572178701525210561b152d89999d4
[ "MIT" ]
null
null
null
#ifndef INCOMPNS_SOLVER_HPP #define INCOMPNS_SOLVER_HPP #include "mfem.hpp" using namespace mfem; #include <Eigen/Core> #include "../core/config.hpp" #include "../mymfem/utilities.hpp" #include "test_cases_factory.hpp" #include "coefficients.hpp" #include "discretisation.hpp" #include "observer.hpp" class IncompN...
25.383686
58
0.624732
pratyuksh
c453626392e3e42aaeb6afcde32db5c9052d235c
59,751
cpp
C++
src/item/item-profile-thin-factory.cpp
tilnewman/heroespath-src
a7784e44d8b5724f305ef8b8671fed54e2e5fd69
[ "BSL-1.0", "Beerware" ]
2
2019-02-28T00:28:08.000Z
2019-10-20T14:39:48.000Z
src/item/item-profile-thin-factory.cpp
tilnewman/heroespath-src
a7784e44d8b5724f305ef8b8671fed54e2e5fd69
[ "BSL-1.0", "Beerware" ]
null
null
null
src/item/item-profile-thin-factory.cpp
tilnewman/heroespath-src
a7784e44d8b5724f305ef8b8671fed54e2e5fd69
[ "BSL-1.0", "Beerware" ]
null
null
null
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com // ---------------------------------------------------------------------------- // "THE BEER-WARE LICENSE" (Revision 42): // <ztn@zurreal.com> wrote this fi...
49.09696
100
0.54384
tilnewman
c453a29196c836c16df84f5f15bed6e28f1dda0e
1,116
hpp
C++
src/IO/H5/SourceArchive.hpp
macedo22/spectre
97b2b7ae356cf86830258cb5f689f1191fdb6ddd
[ "MIT" ]
2
2021-04-11T04:07:42.000Z
2021-04-11T05:07:54.000Z
src/IO/H5/SourceArchive.hpp
macedo22/spectre
97b2b7ae356cf86830258cb5f689f1191fdb6ddd
[ "MIT" ]
4
2018-06-04T20:26:40.000Z
2018-07-27T14:54:55.000Z
src/IO/H5/SourceArchive.hpp
macedo22/spectre
97b2b7ae356cf86830258cb5f689f1191fdb6ddd
[ "MIT" ]
1
2019-01-03T21:47:04.000Z
2019-01-03T21:47:04.000Z
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <hdf5.h> #include <string> #include <vector> #include "IO/H5/Object.hpp" #include "IO/H5/OpenGroup.hpp" namespace h5 { /*! * \ingroup HDF5Group * \brief Writes an archive of the source tree into a dataset. */ class Source...
24.26087
73
0.689068
macedo22
c453aebf7ad3bb7ddb25bd2bf87d273e1151cb7d
2,379
hpp
C++
test/unit/stats.hpp
kanzl/arbor
86b1eb065ac252bf0026de7cf7cbc6748a528254
[ "BSD-3-Clause" ]
53
2018-10-18T12:08:21.000Z
2022-03-26T22:03:51.000Z
test/unit/stats.hpp
kanzl/arbor
86b1eb065ac252bf0026de7cf7cbc6748a528254
[ "BSD-3-Clause" ]
864
2018-10-01T08:06:00.000Z
2022-03-31T08:06:48.000Z
test/unit/stats.hpp
kanzl/arbor
86b1eb065ac252bf0026de7cf7cbc6748a528254
[ "BSD-3-Clause" ]
37
2019-03-03T16:18:49.000Z
2022-03-24T10:39:51.000Z
#pragma once #include <limits> #include <util/meta.hpp> /* For randomness, distribution testing we need some * statistical tests... */ namespace testing { // Simple summary statistics (min, max, mean, variance) // computed with on-line algorithm. // // Note that variance is population variance (i.e. with // denom...
23.323529
76
0.635561
kanzl
c454101ba635a4c82939375c7769a46531d5b274
5,673
cpp
C++
level_editor/leveleditor.cpp
johan1/rocketcar
8cc60e5c9e51db2533b1ae45e9a0b4edb4de7d56
[ "Apache-2.0" ]
null
null
null
level_editor/leveleditor.cpp
johan1/rocketcar
8cc60e5c9e51db2533b1ae45e9a0b4edb4de7d56
[ "Apache-2.0" ]
null
null
null
level_editor/leveleditor.cpp
johan1/rocketcar
8cc60e5c9e51db2533b1ae45e9a0b4edb4de7d56
[ "Apache-2.0" ]
null
null
null
#include "leveleditor.h" #include "config.h" #include <json/json.h> #include <json/writer.h> #include <iostream> #include <fstream> #include <QPen> #include <QGraphicsPixmapItem> constexpr bool LOG_DEBUG = false; static const float scale = 1.0f/64.0f; LevelEditor::LevelEditor(std::string const& name, int width, i...
30.015873
99
0.679182
johan1
c4556552b2920af90f09bbb59d87d2c593df35c6
35,722
cpp
C++
src/mongo/db/audit/audit.cpp
wangke1020/percona-server-mongodb
5008975f1ac220fdb82ea85c85f2794f554ce3d9
[ "Apache-2.0" ]
1
2019-01-16T12:59:12.000Z
2019-01-16T12:59:12.000Z
src/mongo/db/audit/audit.cpp
wangke1020/percona-server-mongodb
5008975f1ac220fdb82ea85c85f2794f554ce3d9
[ "Apache-2.0" ]
4
2019-02-22T10:05:59.000Z
2021-03-26T00:20:23.000Z
src/mongo/db/audit/audit.cpp
wangke1020/percona-server-mongodb
5008975f1ac220fdb82ea85c85f2794f554ce3d9
[ "Apache-2.0" ]
10
2018-11-29T07:17:30.000Z
2022-03-07T01:33:41.000Z
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: /*====== This file is part of Percona Server for MongoDB. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. Percona Server for MongoDB is free software: you can redistri...
34.614341
126
0.533117
wangke1020
c457c29ef06c0f87da88070acc0069dafb272845
340
hpp
C++
pythran/pythonic/__builtin__/assert.hpp
Pikalchemist/Pythran
17d4108b56b3b365e089a4e1b01a09eb7e12942b
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/__builtin__/assert.hpp
Pikalchemist/Pythran
17d4108b56b3b365e089a4e1b01a09eb7e12942b
[ "BSD-3-Clause" ]
null
null
null
pythran/pythonic/__builtin__/assert.hpp
Pikalchemist/Pythran
17d4108b56b3b365e089a4e1b01a09eb7e12942b
[ "BSD-3-Clause" ]
1
2017-03-12T20:32:36.000Z
2017-03-12T20:32:36.000Z
#ifndef PYTHONIC_BUILTIN_ASSERT_HPP #define PYTHONIC_BUILTIN_ASSERT_HPP #include "pythonic/types/str.hpp" #include "pythonic/__builtin__/AssertionError.hpp" namespace pythonic { void pythran_assert(bool cond, types::str const& what="") { #ifdef NDEBUG if(not cond) throw types::AssertionError(what); #endi...
17.894737
63
0.744118
Pikalchemist
c459c13c507e6a2f7d77a796dacc5d62896b9c7c
613
hpp
C++
hlt/entity.hpp
robert-ko/halite2
c3d452a4ac6d0dc5206c51f2eb6b78331e08bf01
[ "MIT" ]
29
2018-01-23T19:40:03.000Z
2019-07-14T00:40:17.000Z
hlt/entity.hpp
robert-ko/halite2
c3d452a4ac6d0dc5206c51f2eb6b78331e08bf01
[ "MIT" ]
null
null
null
hlt/entity.hpp
robert-ko/halite2
c3d452a4ac6d0dc5206c51f2eb6b78331e08bf01
[ "MIT" ]
5
2018-01-25T18:55:06.000Z
2019-11-17T19:31:16.000Z
#pragma once #include <string> #include "location.hpp" #include "types.hpp" #include "move.hpp" namespace hlt { struct Entity { EntityId entity_id; PlayerId owner_id; Location location; Move move = Move::noop(); int health; double radius; bool is_alive() const { ...
20.433333
132
0.574225
robert-ko
c45ae6cdc358334d942d2fb79eebbf1804854cd3
1,699
hpp
C++
include/blocking_queue.hpp
LogicFan/thread-pool
11ec40fa802285197cdb9cf5f1cda5d2cc57a46c
[ "BSD-2-Clause" ]
null
null
null
include/blocking_queue.hpp
LogicFan/thread-pool
11ec40fa802285197cdb9cf5f1cda5d2cc57a46c
[ "BSD-2-Clause" ]
null
null
null
include/blocking_queue.hpp
LogicFan/thread-pool
11ec40fa802285197cdb9cf5f1cda5d2cc57a46c
[ "BSD-2-Clause" ]
null
null
null
#pragma once #include <cassert> #include <condition_variable> #include <iostream> #include <mutex> #include <vector> namespace shu { template <typename T> class blocking_queue final { private: std::mutex m_mutex; std::condition_variable m_empty; std::condition_variable m_full; std::vector<T> m_vector;...
20.719512
83
0.643908
LogicFan
c45be5870a1ea4d13adfdb47fcc3e25a2b0f26c1
2,415
cc
C++
graph/clone_graph.cc
windscope/Cracking
0db01f531ff56428bafff72aaea1d046dbc14112
[ "Apache-2.0" ]
null
null
null
graph/clone_graph.cc
windscope/Cracking
0db01f531ff56428bafff72aaea1d046dbc14112
[ "Apache-2.0" ]
null
null
null
graph/clone_graph.cc
windscope/Cracking
0db01f531ff56428bafff72aaea1d046dbc14112
[ "Apache-2.0" ]
null
null
null
/** * Definition for undirected graph. * struct UndirectedGraphNode { * int label; * vector<UndirectedGraphNode *> neighbors; * UndirectedGraphNode(int x) : label(x) {}; * }; */ #include <iostream> #include <vector> #include <cassert> #include <unordered_map> using namespace std; struct Undirected...
33.541667
98
0.616563
windscope
c45ce5ff6afdd36e9f9ecae4ffbbfb2756bc7dd1
455
cpp
C++
MenuDemo/MainFrameReceiver.cpp
EndofDeath/Duilib_adrival
2fc0a4cc2a6ea2a6d945baf16e41d252c1417be3
[ "BSD-2-Clause", "MIT" ]
null
null
null
MenuDemo/MainFrameReceiver.cpp
EndofDeath/Duilib_adrival
2fc0a4cc2a6ea2a6d945baf16e41d252c1417be3
[ "BSD-2-Clause", "MIT" ]
null
null
null
MenuDemo/MainFrameReceiver.cpp
EndofDeath/Duilib_adrival
2fc0a4cc2a6ea2a6d945baf16e41d252c1417be3
[ "BSD-2-Clause", "MIT" ]
null
null
null
#include "stdafx.h" #include "MainFrameReceiver.h" MainFrameReceiver::MainFrameReceiver() :m_pNotifier(NULL) { } MainFrameReceiver::~MainFrameReceiver() { RemoveNotify(); } void MainFrameReceiver::AddNotify(INotifyUI* pNotifier) { m_pNotifier = pNotifier; } void MainFrameReceiver::RemoveNotify() { m_pNotifier =...
15.689655
55
0.762637
EndofDeath
c461675f7e4c4f705ca0e3f0674d9c206813877e
1,762
cpp
C++
hsp3-debug-empty/hsp3-debug-empty/dllmain.cpp
honobonosun/hsp3-ginger
d2788085d71c8d8fdf31e445a8e262c08e18fba8
[ "CC0-1.0" ]
2
2019-04-20T00:57:54.000Z
2019-11-23T06:02:14.000Z
hsp3-debug-empty/hsp3-debug-empty/dllmain.cpp
honobonosun/hsp3-ginger
d2788085d71c8d8fdf31e445a8e262c08e18fba8
[ "CC0-1.0" ]
7
2020-01-11T12:35:38.000Z
2021-11-01T12:25:11.000Z
hsp3-debug-empty/hsp3-debug-empty/dllmain.cpp
honobonosun/hsp3-ginger
d2788085d71c8d8fdf31e445a8e262c08e18fba8
[ "CC0-1.0" ]
2
2020-06-24T07:51:40.000Z
2022-01-04T03:17:54.000Z
// DLL アプリケーションのエントリポイント #include "pch.h" #define EXPORT extern "C" __declspec (dllexport) // assert, stop やステップ実行の完了により、HSP スクリプトの実行が一時停止したとき。 static auto const HSP3DEBUG_NOTICE_STOP = 0; // logmes 命令が実行されたとき。ログの内容は HSP3CTX::stmp にあります。 static auto const HSP3DEBUG_NOTICE_LOGMES = 1; BOOL APIENTRY DllMain(HMODULE ...
24.816901
89
0.733825
honobonosun
c4642d9effe87f174e1693fe41208738dd10d645
2,644
cc
C++
testing/benchmarks/benchmark_fullmultiplication2.cc
WarpRules/WVLInt
d446687e9fa9bc1118576f9f979e9e37cc5729f0
[ "MIT" ]
1
2020-04-19T22:10:53.000Z
2020-04-19T22:10:53.000Z
testing/benchmarks/benchmark_fullmultiplication2.cc
WarpRules/WVLInt
d446687e9fa9bc1118576f9f979e9e37cc5729f0
[ "MIT" ]
null
null
null
testing/benchmarks/benchmark_fullmultiplication2.cc
WarpRules/WVLInt
d446687e9fa9bc1118576f9f979e9e37cc5729f0
[ "MIT" ]
null
null
null
#include "../WMPInt.hh" #include "benchmark_timer.hh" #include <random> #include <memory> namespace { std::mt19937_64 rngEngine(0); volatile std::uint64_t gValueSink; } template<std::size_t kSize1, std::size_t kSize2> void runMultiplicationBenchmark(std::size_t totalIterations) { WMPUInt<kSize1> value1; ...
27.831579
98
0.676248
WarpRules
c4676ecd6dceab97645c3d6b4bc1c0afa9753fc9
11,043
cpp
C++
rprop_batch.cpp
Shahriar-Sazid/Study-on-Backpropagation-and-Its-Variants
b70db459e47f14aa760e34f59627ff7ce48ba02f
[ "BSD-3-Clause" ]
null
null
null
rprop_batch.cpp
Shahriar-Sazid/Study-on-Backpropagation-and-Its-Variants
b70db459e47f14aa760e34f59627ff7ce48ba02f
[ "BSD-3-Clause" ]
null
null
null
rprop_batch.cpp
Shahriar-Sazid/Study-on-Backpropagation-and-Its-Variants
b70db459e47f14aa760e34f59627ff7ce48ba02f
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2013, Manuel Blum // All rights reserved. // Define this symbol to enable runtime tests for allocations //#define EIGEN_RUNTIME_NO_MALLOC #include <Eigen/Dense> #include <iostream> #include <fstream> #include <cstdio> #include <string> #include <ctime> #include "nn.h" using namespace std; typedef v...
28.832898
164
0.555918
Shahriar-Sazid
c468dc8086e4d7049e4834fd3c26f1db95ea2e3a
847
cpp
C++
Yogesh Gaur/implelement_in_cpp/Linked Lists/delete_at_begining.cpp
sanskriti2023/Hacktoberfest-KIIT-2020
fcb670b3bd7a8351af1b3bbbbef7a1f3e8d037c4
[ "MIT" ]
8
2019-10-05T18:40:46.000Z
2019-10-25T16:26:41.000Z
Yogesh Gaur/implelement_in_cpp/Linked Lists/delete_at_begining.cpp
sanskriti2023/Hacktoberfest-KIIT-2020
fcb670b3bd7a8351af1b3bbbbef7a1f3e8d037c4
[ "MIT" ]
13
2020-09-30T19:27:29.000Z
2021-09-08T02:31:48.000Z
Yogesh Gaur/implelement_in_cpp/Linked Lists/delete_at_begining.cpp
sanskriti2023/Hacktoberfest-KIIT-2020
fcb670b3bd7a8351af1b3bbbbef7a1f3e8d037c4
[ "MIT" ]
84
2020-09-30T19:00:05.000Z
2021-09-30T04:17:34.000Z
#include <iostream> using namespace std; struct yogesh { int value; struct yogesh *next; }; yogesh *deleteBeg(struct yogesh *head) { if (head == NULL) return NULL; yogesh *temp = head; head = head->next; delete temp; return head; } void insert(struct yogesh **head_ref, int new_data) { struct yogesh *new...
14.859649
51
0.650531
sanskriti2023
c46e53e7c3665b02038aa7623451ddfb0acfc1ba
4,025
cpp
C++
MIPS/mipsr3000/pipeunit.cpp
lovisXII/RISC-V-project
8131f8b2cb2d476ebf80c71d727b1b3831fd6811
[ "MIT" ]
3
2022-02-07T02:15:14.000Z
2022-02-14T09:43:28.000Z
MIPS/mipsr3000/pipeunit.cpp
lovisXII/RISC-V-project
8131f8b2cb2d476ebf80c71d727b1b3831fd6811
[ "MIT" ]
null
null
null
MIPS/mipsr3000/pipeunit.cpp
lovisXII/RISC-V-project
8131f8b2cb2d476ebf80c71d727b1b3831fd6811
[ "MIT" ]
null
null
null
#include "pipeunit.h" void pipeunit::processKILL_SI() { KILL_SI.write(EXCRQ_XM.read() | INTRQ_XX.read() | RESET_RX.read() | SLEEP_SD.read() ); } void pipeunit::processSTALL_SI() { STALL_SI.write((!KILL_SI.read()) & (COPY_SD.read() | STALL_SD.read() | I_FRZ.read())); } void pipeunit::processCOPY_SI() { COPY_SI...
19.730392
115
0.677516
lovisXII
c47266e6ef57d4d9f2c8766d977d102d902d48b0
942
cpp
C++
Programming Basics with C++ - September 2018/05. Lesson - (while)/Exercises/04. Vacation/04. Vacation.cpp
Kazalev/SoftUni-ProgrammingBasics-CPlusPlus
115f2618a370443be533b9958121aecca54f4649
[ "MIT" ]
3
2019-07-17T10:11:31.000Z
2020-01-09T18:04:47.000Z
Programming Basics with C++ - September 2018/05. Lesson - (while)/Exercises/04. Vacation/04. Vacation.cpp
Kazalev/SoftUni-ProgrammingBasics-CPlusPlus
115f2618a370443be533b9958121aecca54f4649
[ "MIT" ]
null
null
null
Programming Basics with C++ - September 2018/05. Lesson - (while)/Exercises/04. Vacation/04. Vacation.cpp
Kazalev/SoftUni-ProgrammingBasics-CPlusPlus
115f2618a370443be533b9958121aecca54f4649
[ "MIT" ]
null
null
null
#include <iostream> #include <string> using namespace std; int main (){ double tripMoney, availableMoney, svSpMoney; cin >> tripMoney >> availableMoney; string action; int countDays = 0; int countSpend = 0; while(true){ cin >> action >> svSpMoney; countDays++; if(acti...
21.409091
80
0.493631
Kazalev
c4771f851e03676cd6f3cb56c039d8503960a0b9
8,749
cpp
C++
src/GraphGenerator.cpp
gstonge/horggen
db29b088838f359cca90fac83f35ceb21fd7e4d6
[ "MIT" ]
1
2020-10-12T20:14:12.000Z
2020-10-12T20:14:12.000Z
src/GraphGenerator.cpp
gstonge/horgg
db29b088838f359cca90fac83f35ceb21fd7e4d6
[ "MIT" ]
null
null
null
src/GraphGenerator.cpp
gstonge/horgg
db29b088838f359cca90fac83f35ceb21fd7e4d6
[ "MIT" ]
null
null
null
/* * MIT License * * Copyright (c) 2018 Guillaume St-Onge * * 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...
31.814545
81
0.613899
gstonge
c47834e7af810c9f6a71f12abd47036fdb2bca57
1,141
cpp
C++
ural/1152.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
5
2015-07-14T10:29:25.000Z
2016-10-11T12:45:18.000Z
ural/1152.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
null
null
null
ural/1152.cpp
jffifa/algo-solution
af2400d6071ee8f777f9473d6a34698ceef08355
[ "MIT" ]
3
2016-08-23T01:05:26.000Z
2017-05-28T02:04:20.000Z
#include <cstdio> #include <cstring> using namespace std; const int MAXS = 1<<20; const int INF = 0x3fffffff; inline int min(int a, int b) {return a<b?a:b;} int N; int f[MAXS]; int r, sta; int dmg[22]; int dfs(int s) { if (f[s]>=0) return f[s]; int d = 0; for (int i = 0; i < N; ++i) if (s&(1<<i)) d+= dmg[i]; ...
16.3
48
0.486415
jffifa
c47aed697484fb9b41b28f63af956934cd370ad7
69,809
cpp
C++
html2/tokenizer.cpp
mkiael/hastur
94e4e83e0438bceefa057d8bfe523721ad0d86cb
[ "BSD-2-Clause" ]
null
null
null
html2/tokenizer.cpp
mkiael/hastur
94e4e83e0438bceefa057d8bfe523721ad0d86cb
[ "BSD-2-Clause" ]
null
null
null
html2/tokenizer.cpp
mkiael/hastur
94e4e83e0438bceefa057d8bfe523721ad0d86cb
[ "BSD-2-Clause" ]
null
null
null
// SPDX-FileCopyrightText: 2021-2022 Robin Lindén <dev@robinlinden.eu> // // SPDX-License-Identifier: BSD-2-Clause #include "html2/tokenizer.h" #include "html2/character_reference.h" #include "util/string.h" #include "util/unicode.h" #include <spdlog/spdlog.h> #include <cstdint> #include <cstring> #include <excepti...
36.702944
120
0.410477
mkiael
c47ccb5dc86418178fe850b6fe4e11de32dfb25b
4,157
cpp
C++
src/realm/array_key.cpp
snappymob/realm-core
787e34a354f00e2e38598b5fec95d9a379bfe578
[ "Apache-2.0" ]
null
null
null
src/realm/array_key.cpp
snappymob/realm-core
787e34a354f00e2e38598b5fec95d9a379bfe578
[ "Apache-2.0" ]
null
null
null
src/realm/array_key.cpp
snappymob/realm-core
787e34a354f00e2e38598b5fec95d9a379bfe578
[ "Apache-2.0" ]
null
null
null
/************************************************************************* * * Copyright 2016 Realm 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/lice...
37.116071
102
0.630984
snappymob
c484b79e67fed15b0c63f1730751829b89e1764a
7,705
hxx
C++
include/stdexcept.hxx
K-Wu/libcxx.doc
c3c0421b2a9cc003146e847d0b8dd3a37100f39a
[ "Apache-2.0" ]
null
null
null
include/stdexcept.hxx
K-Wu/libcxx.doc
c3c0421b2a9cc003146e847d0b8dd3a37100f39a
[ "Apache-2.0" ]
null
null
null
include/stdexcept.hxx
K-Wu/libcxx.doc
c3c0421b2a9cc003146e847d0b8dd3a37100f39a
[ "Apache-2.0" ]
null
null
null
// -*- C++ -*- //===--------------------------- stdexcept --------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
24.460317
97
0.756652
K-Wu
c48524ffbce2251b4b8bd289f9c00f486500278f
1,397
cpp
C++
Game/src/Renderables/TileChunkRenderable.cpp
sebwyn/AITestLab
50a4fa3c27c70082385cee723c2c74dd214e6cf3
[ "Unlicense" ]
null
null
null
Game/src/Renderables/TileChunkRenderable.cpp
sebwyn/AITestLab
50a4fa3c27c70082385cee723c2c74dd214e6cf3
[ "Unlicense" ]
null
null
null
Game/src/Renderables/TileChunkRenderable.cpp
sebwyn/AITestLab
50a4fa3c27c70082385cee723c2c74dd214e6cf3
[ "Unlicense" ]
null
null
null
#include "Renderables/TileChunkRenderable.hpp" #include <iostream> #include "Components/Transform.hpp" TileChunkRenderable::TileChunkRenderable() : Renderable() { } TileChunkRenderable::TileChunkRenderable(VAO* _vao) : Renderable() { vao = _vao; shaderProgram = new ShaderProgram("../Shaders/TileCh...
25.4
83
0.662133
sebwyn
c489441bcce9a6891b4fd68835c58d108d1c41b7
5,024
cpp
C++
05-Prefix Sums/MinAvgTwoSlice.cpp
hNrChVz/codility-lessons-solution
b76e802c97ed95feb69a1038736db6d494418777
[ "FSFAP" ]
null
null
null
05-Prefix Sums/MinAvgTwoSlice.cpp
hNrChVz/codility-lessons-solution
b76e802c97ed95feb69a1038736db6d494418777
[ "FSFAP" ]
null
null
null
05-Prefix Sums/MinAvgTwoSlice.cpp
hNrChVz/codility-lessons-solution
b76e802c97ed95feb69a1038736db6d494418777
[ "FSFAP" ]
null
null
null
/* Solution 1: The direct approach, compute the average of every possible combination, then return the start index that has the lowest. int solution(vector<int> &A) { int index = 0; int N = A.size(); vector<int> P = computePrefixSum(A); double curMinAve = P[N] / N; for (int i = 0; i < N-1; i++) { for (int j ...
29.727811
118
0.65008
hNrChVz
c48b247467b38715c9a2d83ad3d0d9644add9070
1,356
cpp
C++
dm-heom/src/heom/filtering_strategy.cpp
noma/dm-heom
85c94f947190064d21bd38544094731113c15412
[ "BSD-3-Clause" ]
7
2019-07-28T01:02:52.000Z
2021-11-09T04:01:36.000Z
dm-heom/src/heom/filtering_strategy.cpp
noma/dm-heom
85c94f947190064d21bd38544094731113c15412
[ "BSD-3-Clause" ]
null
null
null
dm-heom/src/heom/filtering_strategy.cpp
noma/dm-heom
85c94f947190064d21bd38544094731113c15412
[ "BSD-3-Clause" ]
2
2020-04-04T15:20:30.000Z
2021-08-24T15:16:40.000Z
// This file is part of DM-HEOM (https://github.com/noma/dm-heom) // // Copyright (c) 2015-2019 Matthias Noack, Zuse Institute Berlin // Copyright (c) 2017 Lisa Gaedke-Merzhäuser, Zuse Institute Berlin // // Licensed under the 3-clause BSD License, see accompanying LICENSE, // CONTRIBUTORS.md, and README.md for further...
28.25
166
0.719764
noma
c48c0c0a06666fdbdae291e2f152a35e0f044017
1,002
cpp
C++
Angel/Libraries/FTGL/test/TestMain.cpp
Tifox/Grog-Knight
377a661286cda7ee3b2b2d0099641897938c2f8f
[ "Apache-2.0" ]
171
2015-01-08T10:35:56.000Z
2021-07-03T12:35:10.000Z
Angel/Libraries/FTGL/test/TestMain.cpp
Tifox/Grog-Knight
377a661286cda7ee3b2b2d0099641897938c2f8f
[ "Apache-2.0" ]
11
2015-01-30T05:30:54.000Z
2017-04-08T23:34:33.000Z
Angel/Libraries/FTGL/test/TestMain.cpp
Tifox/Grog-Knight
377a661286cda7ee3b2b2d0099641897938c2f8f
[ "Apache-2.0" ]
59
2015-02-01T03:43:00.000Z
2020-12-01T02:08:57.000Z
#include <cppunit/TextTestRunner.h> #include <cppunit/extensions/TestFactoryRegistry.h> #ifdef __APPLE_CC__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif int main(int argc, const char* argv[]) { CppUnit::TextTestRunner runner; runner.addTest(CppUnit::TestFactoryRegistry::getRegistry()...
22.266667
85
0.613772
Tifox
c48d34071277ddd498e9ce6c0c33643c29008d12
6,142
hpp
C++
libs/ledger/tests/executors/test_block.hpp
AronVanAmmers/ledger
5cf8b85e5ee42957d9d38fd76b2b3ead0f061954
[ "Apache-2.0" ]
1
2019-05-15T17:23:08.000Z
2019-05-15T17:23:08.000Z
libs/ledger/tests/executors/test_block.hpp
AronVanAmmers/ledger
5cf8b85e5ee42957d9d38fd76b2b3ead0f061954
[ "Apache-2.0" ]
null
null
null
libs/ledger/tests/executors/test_block.hpp
AronVanAmmers/ledger
5cf8b85e5ee42957d9d38fd76b2b3ead0f061954
[ "Apache-2.0" ]
null
null
null
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018 Fetch.AI Limited // // 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...
31.336735
100
0.610713
AronVanAmmers
c48e7778d00db7b4af938599119ac99947755059
6,071
cc
C++
phtree/benchmark/insert_benchmark.cc
ctbur/phtree-cpp
ace232de68074a88c96a6d60c0f6ca2e101ce0ed
[ "Apache-2.0" ]
17
2020-05-01T21:26:54.000Z
2022-03-03T03:03:03.000Z
phtree/benchmark/insert_benchmark.cc
ctbur/phtree-cpp
ace232de68074a88c96a6d60c0f6ca2e101ce0ed
[ "Apache-2.0" ]
7
2021-05-05T12:15:34.000Z
2022-01-30T14:56:07.000Z
phtree/benchmark/insert_benchmark.cc
tzaeschke/phtree-cpp
e49f40ff4a89685173208ec45cac6f50ef8ffd59
[ "Apache-2.0" ]
5
2020-07-03T13:56:16.000Z
2022-03-20T20:41:18.000Z
/* * Copyright 2020 Improbable Worlds Limited * * 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...
30.97449
100
0.716851
ctbur
c494d4441b29f04f56e65c6543b9cbbc3524f25e
485
cpp
C++
Visual Studio Project Template/Starting files/DayX-PuzzleName.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
Visual Studio Project Template/Starting files/DayX-PuzzleName.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
Visual Studio Project Template/Starting files/DayX-PuzzleName.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
//TODO: Change to the name of the puzzle #include "DayX-PuzzleName.h" #include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h> __BEGIN_LIBRARIES_DISABLE_WARNINGS // Add library includes here __END_LIBRARIES_DISABLE_WARNINGS //TODO: Change namespace to current year/day namespace AdventOfCode { namespace YearXXXX ...
15.645161
60
0.769072
dbartok
7bcd679e1ad75d666916c63fb6fd6b9991f5db0f
8,563
cpp
C++
Hardware/SIAM/NewMux.cpp
gkrish19/SIAM
1e530d4c070054045fc2e8e7fe4ce82a54755132
[ "MIT" ]
4
2021-02-02T06:50:43.000Z
2022-01-29T12:25:32.000Z
Hardware/SIAM/NewMux.cpp
gkrish19/SIAM
1e530d4c070054045fc2e8e7fe4ce82a54755132
[ "MIT" ]
null
null
null
Hardware/SIAM/NewMux.cpp
gkrish19/SIAM
1e530d4c070054045fc2e8e7fe4ce82a54755132
[ "MIT" ]
2
2021-07-07T19:58:40.000Z
2022-01-27T22:51:20.000Z
/******************************************************************************* * Copyright (c) 2017-2020 * School of Electrical, Computer and Energy Engineering, Arizona State University * PI: Prof. Yu Cao * All rights reserved. * * This source code is part of NeuroSim - a device-circuit-algorithm framework to ...
47.049451
312
0.669508
gkrish19
7bce873c7494874704b793c542efb2812cb9a1a3
4,134
hpp
C++
src/sip-0x/utils/IniFile.hpp
zanfire/sip-0x
de38b3ff782d2a63b69d7f785e2bd9ce7674abd5
[ "Apache-2.0" ]
1
2021-06-03T15:56:32.000Z
2021-06-03T15:56:32.000Z
src/sip-0x/utils/IniFile.hpp
zanfire/sip-0x
de38b3ff782d2a63b69d7f785e2bd9ce7674abd5
[ "Apache-2.0" ]
1
2015-08-05T05:51:49.000Z
2015-08-05T05:51:49.000Z
src/sip-0x/utils/IniFile.hpp
zanfire/sip-0x
de38b3ff782d2a63b69d7f785e2bd9ce7674abd5
[ "Apache-2.0" ]
null
null
null
#if !defined(SIP0X_UTILS_INIFILE_HPP__) #define SIP0X_UTILS_INIFILE_HPP__ #include <memory> #include <unordered_map> #include <iostream> #include <fstream> #include <string> #include <cctype> #include <string> #include <algorithm> #include <unordered_map> #include <regex> #include "utils/LoggerFactory.hpp" #include ...
27.744966
156
0.540881
zanfire
7bcfa967cbfb0d241a43b24c6b5c806f5fd9defd
1,504
cpp
C++
Alignment/StructsSize/main.cpp
ilyayunkin/CppSandbox
b03fd84462faa16b6c3ca03c1639fcbe0be361cf
[ "MIT" ]
null
null
null
Alignment/StructsSize/main.cpp
ilyayunkin/CppSandbox
b03fd84462faa16b6c3ca03c1639fcbe0be361cf
[ "MIT" ]
null
null
null
Alignment/StructsSize/main.cpp
ilyayunkin/CppSandbox
b03fd84462faa16b6c3ca03c1639fcbe0be361cf
[ "MIT" ]
null
null
null
#include <QCoreApplication> #include <QDebug> #include <stdint.h> struct A { uint8_t c1; uint16_t ui16; uint8_t c2; uint64_t ui64; uint32_t ui32; }; struct A1 { uint8_t c1; uint8_t c11; uint16_t ui16; uint8_t c2; uint64_t ui64; uint32_t ui32; }; struct B { uint16_t ui1...
13.925926
58
0.540559
ilyayunkin
7bd354098d4eec131a6e7997dc2fdf65c75e9a88
1,363
cpp
C++
aws-cpp-sdk-connect/source/model/UserQuickConnectConfig.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-02-10T08:06:54.000Z
2022-02-10T08:06:54.000Z
aws-cpp-sdk-connect/source/model/UserQuickConnectConfig.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2021-10-14T16:57:00.000Z
2021-10-18T10:47:24.000Z
aws-cpp-sdk-connect/source/model/UserQuickConnectConfig.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T12:02:58.000Z
2021-11-09T12:02:58.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/connect/model/UserQuickConnectConfig.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws ...
18.173333
78
0.734409
perfectrecall
7bd3e5f9475f44deb3337ec8e5786c7cff67deaf
159
cpp
C++
APEX.Net/APEX.Net/Source/ModuleAttribute.cpp
stilldesign/Apex.Net
8ee9a1889cd73a1fa86dde967cf85c407efa43dc
[ "MIT" ]
null
null
null
APEX.Net/APEX.Net/Source/ModuleAttribute.cpp
stilldesign/Apex.Net
8ee9a1889cd73a1fa86dde967cf85c407efa43dc
[ "MIT" ]
null
null
null
APEX.Net/APEX.Net/Source/ModuleAttribute.cpp
stilldesign/Apex.Net
8ee9a1889cd73a1fa86dde967cf85c407efa43dc
[ "MIT" ]
null
null
null
#include "StdAfx.h" #include "ModuleAttribute.h" using namespace PhysX::Apex::Modules; ModuleAttribute::ModuleAttribute(String^ name) { this->Name = name; }
17.666667
46
0.748428
stilldesign
7bde3197267d857b5552c71742655706553f19c7
881
cpp
C++
Codes/1034.cpp
whitesimian/URI-Online-Judge
773b8a663d6eb113a030ea72aad3cefe758eed21
[ "MIT" ]
1
2019-10-13T03:43:59.000Z
2019-10-13T03:43:59.000Z
Codes/1034.cpp
rafflezs/URI-Online-Judge
773b8a663d6eb113a030ea72aad3cefe758eed21
[ "MIT" ]
null
null
null
Codes/1034.cpp
rafflezs/URI-Online-Judge
773b8a663d6eb113a030ea72aad3cefe758eed21
[ "MIT" ]
2
2021-02-16T05:47:06.000Z
2021-02-24T14:11:54.000Z
#include "bits/stdc++.h" #define f(inicio, fim) for(int i = inicio; i < fim; i++) #define ff(inicio, fim) for(int j = inicio; j < fim; j++) #define fff(inicio, fim) for(int k = inicio; k < fim; k++) #define print(vetor) for(auto elem : vetor) cout << elem << " " using namespace std; int main() { ios_base::sync_w...
23.810811
77
0.4563
whitesimian
7be303f55e0494f886b63434494f3f90ecc678df
3,296
cpp
C++
cpp1st/week03/jongsang/MapTest.cpp
th4inquiry/PentaDevs
aa379d24494a485ad5e7fdcc385c6ccfb02cf307
[ "Apache-2.0" ]
2
2022-03-10T10:18:23.000Z
2022-03-16T15:37:22.000Z
cpp1st/week03/jongsang/MapTest.cpp
th4inquiry/PentaDevs
aa379d24494a485ad5e7fdcc385c6ccfb02cf307
[ "Apache-2.0" ]
8
2022-03-09T16:14:47.000Z
2022-03-28T15:35:17.000Z
cpp1st/week03/jongsang/MapTest.cpp
th4inquiry/PentaDevs
aa379d24494a485ad5e7fdcc385c6ccfb02cf307
[ "Apache-2.0" ]
4
2022-03-08T00:22:29.000Z
2022-03-12T13:22:43.000Z
#include "MapTest.h" #include "Person.h" #include <map> #include <iostream> void MapTest::testIndexing() { std::wcout << L"\n====" << __FUNCTIONW__ << L"====" << std::endl; std::map<std::wstring, Person> personMap = { {L"Codename5", {L"Jack", 39}}, {L"Codename3", {L"Sam", 21}}, ...
32.313725
98
0.535194
th4inquiry
7be5318d778d415e1506188b28dc0cab8ff5d436
22,643
cpp
C++
packages/utility/stats/test/tstSampleMoment.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
10
2019-11-14T19:58:30.000Z
2021-04-04T17:44:09.000Z
packages/utility/stats/test/tstSampleMoment.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
43
2020-03-03T19:59:20.000Z
2021-09-08T03:36:08.000Z
packages/utility/stats/test/tstSampleMoment.cpp
bam241/FRENSIE
e1760cd792928699c84f2bdce70ff54228e88094
[ "BSD-3-Clause" ]
6
2020-02-12T17:37:07.000Z
2020-09-08T18:59:51.000Z
//---------------------------------------------------------------------------// //! //! \file tstSampleMoment.cpp //! \author Alex Robinson //! \brief The sample moment unit tests //! //---------------------------------------------------------------------------// // Boost Includes #include <boost/units/quantity.hpp...
36.639159
96
0.6171
bam241
7be5937747933e5f5da609d9f10421553fc92376
449
cpp
C++
graph/traversal/graph representation using adj matrix.cpp
StremCipher/important_source_code_new
536487a58392893b85a9c9e35cf22d4f41647d5f
[ "MIT" ]
null
null
null
graph/traversal/graph representation using adj matrix.cpp
StremCipher/important_source_code_new
536487a58392893b85a9c9e35cf22d4f41647d5f
[ "MIT" ]
null
null
null
graph/traversal/graph representation using adj matrix.cpp
StremCipher/important_source_code_new
536487a58392893b85a9c9e35cf22d4f41647d5f
[ "MIT" ]
null
null
null
/* //representation of graph using adjacency matrix // */ #include<bits/stdc++.h> using namespace std; bool adjacency_mat[100][100]; void initialize() { for(int i=0;i<100;i++) for(int j=0;<100;j++) adjacency_mat[i][j]=false; } int main() { initialize(); int vertex,edge,x,y; cin>>vertex>>edge; for(int i...
14.966667
56
0.616927
StremCipher
7be840bdd911df26f3615d6488cce31f9aeab1c5
23,138
cpp
C++
rpi_gpio.cpp
markondej/rpi_gpio
6a665e7a4eac59648e8bd87fb580c62b614fa11f
[ "BSD-3-Clause" ]
1
2022-02-01T18:17:31.000Z
2022-02-01T18:17:31.000Z
rpi_gpio.cpp
markondej/rpi_gpio
6a665e7a4eac59648e8bd87fb580c62b614fa11f
[ "BSD-3-Clause" ]
null
null
null
rpi_gpio.cpp
markondej/rpi_gpio
6a665e7a4eac59648e8bd87fb580c62b614fa11f
[ "BSD-3-Clause" ]
1
2022-02-01T11:57:39.000Z
2022-02-01T11:57:39.000Z
#include "rpi_gpio.hpp" #include "mailbox.h" #include <bcm_host.h> #include <sys/mman.h> #include <fcntl.h> #include <chrono> #include <algorithm> #define PERIPHERALS_PHYS_BASE 0x7e000000 #define BCM2835_PERIPHERALS_VIRT_BASE 0x20000000 #define BCM2711_PERIPHERALS_VIRT_BASE 0xfe000000 #define BCM2835_MEM_FLAG 0x0c #d...
40.310105
217
0.580776
markondej
7befa2081e0ef367d4d3e7c9cff9f5d83ff5c2a4
8,435
cpp
C++
EcoZipFM/FMDropTarget.cpp
StephanBusch/7-Zip
35c215fbc3efc16951182f6127885d22d11a018e
[ "Apache-2.0" ]
14
2016-08-17T09:45:30.000Z
2021-12-01T23:06:20.000Z
EcoZipFM/FMDropTarget.cpp
StephanBusch/7-Zip
35c215fbc3efc16951182f6127885d22d11a018e
[ "Apache-2.0" ]
2
2018-06-03T07:17:39.000Z
2021-12-14T22:30:10.000Z
EcoZipFM/FMDropTarget.cpp
StephanBusch/7-Zip
35c215fbc3efc16951182f6127885d22d11a018e
[ "Apache-2.0" ]
5
2016-07-21T05:08:55.000Z
2021-11-16T02:18:45.000Z
// FMDrapTarget.cpp : implementation file // #include "stdafx.h" #include "EcoZipFM.h" #include "FMDropTarget.h" //******************************************************************** // If you don't have a recent Platform SDK installed, you'll get linker // errors on CLSID_DragDropHelper and IID_IDropTargetHelper, ...
27.122186
85
0.648014
StephanBusch
7bff2e53bcdc3b3852748488323abc286ed8e466
891
cpp
C++
codes/11-14/C.cpp
hiperwe/Grade1
e987d37cbae73d8ad1cb60007fc1497b08c4fa01
[ "MIT" ]
1
2019-07-21T16:41:22.000Z
2019-07-21T16:41:22.000Z
codes/11-14/C.cpp
hiperwe/Grade1
e987d37cbae73d8ad1cb60007fc1497b08c4fa01
[ "MIT" ]
null
null
null
codes/11-14/C.cpp
hiperwe/Grade1
e987d37cbae73d8ad1cb60007fc1497b08c4fa01
[ "MIT" ]
null
null
null
#include <stdio.h> int a[1000050],b[1000050],c[1000050],min[1000050],max[1000050]; int aleft,aright,bleft,bright,cleft,cright,left1,right1,left2,right2; int n,k; void push(int x){ a[++aright] = x; while(bleft <= bright && b[bright] <= x){ bright--; } b[++bright] = x; while(cleft <= cright && c[cright] >= x){ ...
15.910714
69
0.508418
hiperwe
d00156c7b5dda7a21dab98464b32c64a938e8c74
5,453
cpp
C++
KmsLib_Test/KmsLib_Test.cpp
martindubois/KmsBase
b8138c4b332eaf9aa4110e41114e9939093aed95
[ "Apache-2.0" ]
null
null
null
KmsLib_Test/KmsLib_Test.cpp
martindubois/KmsBase
b8138c4b332eaf9aa4110e41114e9939093aed95
[ "Apache-2.0" ]
null
null
null
KmsLib_Test/KmsLib_Test.cpp
martindubois/KmsBase
b8138c4b332eaf9aa4110e41114e9939093aed95
[ "Apache-2.0" ]
null
null
null
// Auteur KMS - Martin Dubois, ing. // Produit KmsBase // Fichier KmsLib_Test/KmsLib_Test.cpp // Includes ///////////////////////////////////////////////////////////////////////////// #include <KmsBase.h> // ===== Interface ========================================================== #include <KmsTest.h> // Test ///...
45.441667
119
0.653218
martindubois
d00bb69fc2e5880df0176efbb7f2771e439f29d4
1,746
cpp
C++
Leetcode/Binary_Search/search-in-rotated-sorted-array.cpp
susantabiswas/competitive_coding
49163ecdc81b68f5c1bd90988cc0dfac34ad5a31
[ "MIT" ]
2
2021-04-29T14:44:17.000Z
2021-10-01T17:33:22.000Z
Leetcode/Binary_Search/search-in-rotated-sorted-array.cpp
adibyte95/competitive_coding
a6f084d71644606c21840875bad78d99f678a89d
[ "MIT" ]
null
null
null
Leetcode/Binary_Search/search-in-rotated-sorted-array.cpp
adibyte95/competitive_coding
a6f084d71644606c21840875bad78d99f678a89d
[ "MIT" ]
1
2021-10-01T17:33:29.000Z
2021-10-01T17:33:29.000Z
/* https://leetcode.com/problems/search-in-rotated-sorted-array/ TC: O(logN) Idea is to find the position where the first element of rotated subarray is. Then do binary search on whichever side the target lies. */ class Solution { public: // binary search // TC: O(logN) int bSearch(vect...
29.1
80
0.467354
susantabiswas
d015a61b15d31ad572a4312a3504ea8d4bd2d532
13,292
cc
C++
luabind/redis/lredis.cc
lujingwei002/coord
cb5e5723293d8529663ca89e0c1d6b8c348fffff
[ "MIT" ]
null
null
null
luabind/redis/lredis.cc
lujingwei002/coord
cb5e5723293d8529663ca89e0c1d6b8c348fffff
[ "MIT" ]
null
null
null
luabind/redis/lredis.cc
lujingwei002/coord
cb5e5723293d8529663ca89e0c1d6b8c348fffff
[ "MIT" ]
null
null
null
#include "redis/lredis.h" #include "log/log.h" #include <hiredis/hiredis.h> #include <hiredis/async.h> static void getCallback_push_reply(lua_State *L, redisReply *reply) { unsigned int i; lua_newtable(L); lua_pushstring(L, "type"); if(reply->type == REDIS_REPLY_NIL) { lua_pushstring(L, "n...
28.646552
107
0.567484
lujingwei002
d0243639f38bb2d6d43a5bb562889f6e15cf649f
3,470
hpp
C++
include/HonariChannelFeatures.hpp
jmbuena/bobetocalo_pami20
e88a4a14c9661f766a2463173e8a3d0e2d04e305
[ "BSD-2-Clause" ]
1
2021-12-02T20:24:22.000Z
2021-12-02T20:24:22.000Z
include/HonariChannelFeatures.hpp
jmbuena/bobetocalo_pami20
e88a4a14c9661f766a2463173e8a3d0e2d04e305
[ "BSD-2-Clause" ]
null
null
null
include/HonariChannelFeatures.hpp
jmbuena/bobetocalo_pami20
e88a4a14c9661f766a2463173e8a3d0e2d04e305
[ "BSD-2-Clause" ]
1
2021-12-02T20:24:28.000Z
2021-12-02T20:24:28.000Z
/** **************************************************************************** * @file HonariChannelFeatures.hpp * @brief Face detection and recognition framework * @author Roberto Valle Fernandez * @date 2020/10 * @copyright All rights reserved. * Software developed by UPM PCR Group: http://www....
26.090226
135
0.610663
jmbuena
d0249c984fa86e7b5adf40fbed68752c9e8740c0
356
cpp
C++
1101-9999/1165. Single-Row Keyboard.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
1101-9999/1165. Single-Row Keyboard.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
1101-9999/1165. Single-Row Keyboard.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
class Solution { public: int calculateTime(string keyboard, string word) { vector<int> vec(26, 0); for (int i = 0; i < keyboard.size(); i++) { vec[keyboard[i] - 'a'] = i; } int ret = 0; int cur = 0; for (auto &c : word) { ret += abs(vec[c - 'a'] - cur); cur = vec[c ...
17.8
49
0.469101
erichuang1994
d02502719bb9c3c7fa69c3bfcece27c9ded2ea4e
1,328
cc
C++
src/impl@posix/ld_impl@sdlimage.cc
strear/saam
4c0b4dd70d30caf606926825daa75ca2dd5ab0b9
[ "MIT" ]
null
null
null
src/impl@posix/ld_impl@sdlimage.cc
strear/saam
4c0b4dd70d30caf606926825daa75ca2dd5ab0b9
[ "MIT" ]
null
null
null
src/impl@posix/ld_impl@sdlimage.cc
strear/saam
4c0b4dd70d30caf606926825daa75ca2dd5ab0b9
[ "MIT" ]
null
null
null
#include "../imageArray.hpp" #include <SDL_image.h> using namespace Saam; namespace { struct ReadImpl { SDL_Surface* image = nullptr; SDL_PixelFormat* format = SDL_AllocFormat(SDL_PIXELFORMAT_RGBA32); }; void quitWithError(const char* msg, const char* detail = nullptr) { fprintf(stderr, "[X] %s", msg); i...
25.538462
85
0.713855
strear
d02cf2f7aa3ac291d02be82eb8faec05d6794b5e
499
hpp
C++
source/core/util.hpp
linusmossberg/fluid-simulator
629301987fff9e82cf1f1cc99b010b5f8619136b
[ "MIT" ]
24
2021-03-16T13:22:08.000Z
2022-02-20T12:43:35.000Z
source/core/util.hpp
linusmossberg/fluid-simulator
629301987fff9e82cf1f1cc99b010b5f8619136b
[ "MIT" ]
null
null
null
source/core/util.hpp
linusmossberg/fluid-simulator
629301987fff9e82cf1f1cc99b010b5f8619136b
[ "MIT" ]
4
2021-03-16T16:38:54.000Z
2022-01-17T17:31:55.000Z
#pragma once #include <string> #include <sstream> #include <glm/glm.hpp> inline std::ostream& operator<<(std::ostream& out, const glm::dvec3& v) { return out << std::string("( " + std::to_string(v.x) + ", " + std::to_string(v.y) + ", " + std::to_string(v.z) + " )"); } inline glm::vec3 hexToColor(const char* hex...
22.681818
123
0.579158
linusmossberg
d0358713654a214638f5e3fd9e55fac1006d49e1
1,351
cpp
C++
ItemLoot/ItemLootSet.cpp
GitDaroth/ItemSystem
f461a8d61fb524c76614ae01bdd1aaf896bd3aa8
[ "MIT" ]
null
null
null
ItemLoot/ItemLootSet.cpp
GitDaroth/ItemSystem
f461a8d61fb524c76614ae01bdd1aaf896bd3aa8
[ "MIT" ]
null
null
null
ItemLoot/ItemLootSet.cpp
GitDaroth/ItemSystem
f461a8d61fb524c76614ae01bdd1aaf896bd3aa8
[ "MIT" ]
null
null
null
#include "ItemLootSet.h" namespace ItemSystem { ItemLootSet::ItemLootSet(const QJsonArray& lootSetJsonArray) { read(lootSetJsonArray); m_randomGenerator = QRandomGenerator::securelySeeded(); } ItemLootSet::~ItemLootSet() { } QList<std::shared_ptr<Item>> ItemLootSet::create...
29.369565
80
0.630644
GitDaroth
d038fd3a430839e9e8ca88692a10e3b8c853ca39
2,620
cpp
C++
modules/image/src/texture.cpp
lenamueller/glpp
f7d29e5924537fd405a5bb409d67e65efdde8d9e
[ "MIT" ]
16
2019-12-10T19:44:17.000Z
2022-01-04T03:16:19.000Z
modules/image/src/texture.cpp
lenamueller/glpp
f7d29e5924537fd405a5bb409d67e65efdde8d9e
[ "MIT" ]
null
null
null
modules/image/src/texture.cpp
lenamueller/glpp
f7d29e5924537fd405a5bb409d67e65efdde8d9e
[ "MIT" ]
3
2021-06-04T21:56:55.000Z
2022-03-03T06:47:56.000Z
#include "glpp/core/object/image.hpp" #include <stb_image.h> #include <stb_image_write.h> #include <memory> #include <cstring> #include <string_view> namespace glpp::core::object { namespace detail { stbi_image_t::stbi_image_t(const char* filename, int channels) { m_storage = stbi_load( filename, &m_width, &m_...
26.2
93
0.727481
lenamueller
d03f4b43a511107adf38954da4de7ce3dce1efe7
9,541
cpp
C++
src/DataWidgets/Mimes/nMimeSuffix.cpp
Vladimir-Lin/QtDataWidgets
67372e2a807d47082d3130d16857476d7020facc
[ "MIT" ]
null
null
null
src/DataWidgets/Mimes/nMimeSuffix.cpp
Vladimir-Lin/QtDataWidgets
67372e2a807d47082d3130d16857476d7020facc
[ "MIT" ]
null
null
null
src/DataWidgets/Mimes/nMimeSuffix.cpp
Vladimir-Lin/QtDataWidgets
67372e2a807d47082d3130d16857476d7020facc
[ "MIT" ]
null
null
null
#include <datawidgets.h> #pragma message("MimeSuffix requires additional works on editing") N::MimeSuffix:: MimeSuffix (QWidget * parent,Plan * p) : TreeWidget ( parent, p) , MimeManager ( p) { WidgetClass ; Configure ( ) ; } N::MimeSuffix::~M...
39.920502
68
0.351431
Vladimir-Lin
d0409d211631d965700df147a8352567a93c4df4
141
cpp
C++
main.cpp
spacechase0/Game-Base
e68874e1983eb4e06d14b69cffa2065d45fdcf5e
[ "MIT" ]
null
null
null
main.cpp
spacechase0/Game-Base
e68874e1983eb4e06d14b69cffa2065d45fdcf5e
[ "MIT" ]
null
null
null
main.cpp
spacechase0/Game-Base
e68874e1983eb4e06d14b69cffa2065d45fdcf5e
[ "MIT" ]
null
null
null
#include <util/Logger.hpp> #include "Game.hpp" int main() { util::Logger::setName( "Log", "log.txt" ); Game game; game.run(); }
11.75
43
0.58156
spacechase0
d044a9f40bd8442125399031fbaf09e799fc186d
2,939
cc
C++
plugins/vorbis/Encoder.cc
bsdelf/mous
eb59b625d0ba8236f3597ae6015d9215cef922cf
[ "BSD-2-Clause" ]
75
2015-04-26T11:22:07.000Z
2022-02-12T17:18:37.000Z
plugins/vorbis/Encoder.cc
bsdelf/mous
eb59b625d0ba8236f3597ae6015d9215cef922cf
[ "BSD-2-Clause" ]
7
2016-05-31T21:56:01.000Z
2019-09-15T06:25:28.000Z
plugins/vorbis/Encoder.cc
bsdelf/mous
eb59b625d0ba8236f3597ae6015d9215cef922cf
[ "BSD-2-Clause" ]
19
2015-09-23T01:50:15.000Z
2022-02-12T17:18:41.000Z
#include <stdio.h> #include <vorbis/vorbisenc.h> #include <plugin/EncoderProto.h> using namespace mous; namespace { struct Self { RangedFloatOption quality; EnumedIntOption bit_rate; GroupedOption vbr_or_abr; FILE* file = nullptr; int channels = 0; int sample_rate...
24.289256
121
0.649881
bsdelf
d04546571ae405a73b92251c2a01d1c317056a5a
1,868
cpp
C++
POJ/17 - 19/poj1703.cpp
bilibiliShen/CodeBank
49a69b2b2c3603bf105140a9d924946ed3193457
[ "MIT" ]
1
2017-08-19T16:02:15.000Z
2017-08-19T16:02:15.000Z
POJ/17 - 19/poj1703.cpp
bilibiliShen/CodeBank
49a69b2b2c3603bf105140a9d924946ed3193457
[ "MIT" ]
null
null
null
POJ/17 - 19/poj1703.cpp
bilibiliShen/CodeBank
49a69b2b2c3603bf105140a9d924946ed3193457
[ "MIT" ]
1
2018-01-05T23:37:23.000Z
2018-01-05T23:37:23.000Z
// <!--encoding UTF-8 UTF-8编码--!> /***************************************************************************** *----Stay Hungry Stay Foolish---- *@author : Shen *@name : ******************************************************************************/ //#pragma GCC optimize ("O2") //#pragma comment(linker, "...
21.471264
80
0.472698
bilibiliShen
d04f4712e6b0f72305e1f4375fef1b62b04424c9
880
cpp
C++
utility.cpp
msiley/GeneticAlgorithmTSP
e4fda65e12df69f52f0a1f1bd7469857637e5e47
[ "MIT" ]
null
null
null
utility.cpp
msiley/GeneticAlgorithmTSP
e4fda65e12df69f52f0a1f1bd7469857637e5e47
[ "MIT" ]
null
null
null
utility.cpp
msiley/GeneticAlgorithmTSP
e4fda65e12df69f52f0a1f1bd7469857637e5e47
[ "MIT" ]
null
null
null
#include "utility.h" // Utility Functions void print_list(vector<double> &lst) { for (int i=0; i < lst.size(); i++) { cout << "[" << (i+1) << "](" << lst.at(i) << "), "; if ((i+1) % 5 == 0) cout << endl; } cout << endl; } void print_list(vector<int> &lst) { for (int i=0; i < lst.size(); i++) { co...
19.130435
62
0.5125
msiley
d0567043c64790fcafc984725b46038e324872e3
32,537
cpp
C++
55j/CAccount.cpp
Jhobean/Source-Archive
ab24ba44ffd34c329accedb980699e94c196fceb
[ "Apache-2.0" ]
2
2020-12-22T17:03:14.000Z
2021-07-31T23:59:05.000Z
55j/CAccount.cpp
Jhobean/Source-Archive
ab24ba44ffd34c329accedb980699e94c196fceb
[ "Apache-2.0" ]
null
null
null
55j/CAccount.cpp
Jhobean/Source-Archive
ab24ba44ffd34c329accedb980699e94c196fceb
[ "Apache-2.0" ]
4
2021-04-21T19:43:48.000Z
2021-10-07T00:38:23.000Z
// // CAccount.cpp // Copyright Menace Software (www.menasoft.com). // #include "graysvr.h" // predef header. extern "C" { void globalstartsymbol() // put this here as just the starting offset. { } const int globalstartdata = 0xffffffff; } //********************************************************************** // -...
21.633644
149
0.656299
Jhobean
d059102ba00c5598a89398726ad2fb789e24e386
2,903
cpp
C++
NEA/PDTipos.cpp
alinarezrangel/PseudoD
27c0ea1d39e092e72812e486a53bfdec5acbf2d5
[ "Apache-2.0" ]
6
2015-12-01T03:35:22.000Z
2021-01-15T22:33:41.000Z
NEA/PDTipos.cpp
alinarezrangel/PseudoD
27c0ea1d39e092e72812e486a53bfdec5acbf2d5
[ "Apache-2.0" ]
1
2016-10-12T22:43:28.000Z
2017-08-14T23:03:53.000Z
NEA/PDTipos.cpp
alinarezrangel/PseudoD
27c0ea1d39e092e72812e486a53bfdec5acbf2d5
[ "Apache-2.0" ]
null
null
null
/*************************************************************************** **************************************************************************** **************************** PseudoD ********************************** ***** Creado por Alejandro Linarez Rangel El 14 de septiembre de 2014. ***** ***** ...
25.025862
76
0.571822
alinarezrangel
d05d40e5b8f99bda3aaf4c0c08e589a721241e10
594
cpp
C++
test/test_allocator_3.cpp
slavenf/sfl-library
edb34d6a5214b84c3c7075256deac5f52647a940
[ "Zlib" ]
7
2022-02-11T07:35:32.000Z
2022-03-03T15:29:55.000Z
test/test_allocator_3.cpp
slavenf/sfl-library
edb34d6a5214b84c3c7075256deac5f52647a940
[ "Zlib" ]
1
2022-02-11T09:15:30.000Z
2022-02-11T13:27:08.000Z
test/test_allocator_3.cpp
slavenf/sfl-library
edb34d6a5214b84c3c7075256deac5f52647a940
[ "Zlib" ]
null
null
null
// // g++ -Wall -Wextra -Wpedantic -std=c++11 -g -o test.out test_allocator_3.cpp // valgrind --leak-check=full ./test.out // #undef NDEBUG #include <cassert> #include "MyInt.hpp" #include "test_allocator_3.hpp" int main() { sfl::test_allocator_3<MyInt> a; const std::size_t n = 10; auto p = a.allocate(...
16.054054
78
0.518519
slavenf
d06030c1f31a90cab7bbd7e35a0aca8e0fdff87b
815
cpp
C++
src/maths/casting.cpp
guillaume-haerinck/voxel-editor
78c2db3e7f33a1944ef6202c8ae33f4008695153
[ "MIT" ]
7
2019-12-30T21:01:06.000Z
2022-02-24T07:41:52.000Z
src/maths/casting.cpp
guillaume-haerinck/voxel-editor
78c2db3e7f33a1944ef6202c8ae33f4008695153
[ "MIT" ]
null
null
null
src/maths/casting.cpp
guillaume-haerinck/voxel-editor
78c2db3e7f33a1944ef6202c8ae33f4008695153
[ "MIT" ]
1
2020-04-26T22:02:29.000Z
2020-04-26T22:02:29.000Z
#include "casting.h" namespace voxmt { glm::vec3 intToNormColor(int value) { glm::vec3 result; result.r = value & 0xFF; result.g = (value >> 8) & 0xFF; result.b = (value >> 16) & 0xFF; return result / 255.0f; } int colorToInt(unsigned char r, unsigned char g, unsign...
26.290323
101
0.532515
guillaume-haerinck