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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34c100713ae8964de2399b354af749dbc1f6ae78 | 4,315 | cpp | C++ | core/src/UniFlagStorage.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | core/src/UniFlagStorage.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | core/src/UniFlagStorage.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | #include "stdafx.h"
#include "mmcore/UniFlagStorage.h"
#include "mmcore/UniFlagCalls.h"
using namespace megamol;
using namespace megamol::core;
UniFlagStorage::UniFlagStorage(void)
: readFlagsSlot("readFlags", "Provides flag data to clients.")
, writeFlagsSlot("writeFlags", "Accepts updated flag data... | 36.260504 | 117 | 0.716802 | azuki-monster |
34ccec0fbddb7bead1fba1b27d84b6ca1a3f46ea | 1,160 | hpp | C++ | ufora/core/math/Smallest.hpp | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | ufora/core/math/Smallest.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | ufora/core/math/Smallest.hpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | /***************************************************************************
Copyright 2015 Ufora 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/licen... | 24.680851 | 77 | 0.614655 | ufora |
34d12c5e7cdb2f53819bc022e22d53513e3f7e28 | 8,725 | cc | C++ | modules/external_packages/src/alien/kernels/petsc/linear_solver/field_split/PETScPrecConfigFieldSplitService.cc | cedricga91/alien_legacy_plugins | 459701026d76dbe1e8a6b20454f6b50ec9722f7f | [
"Apache-2.0"
] | 4 | 2021-12-02T09:06:38.000Z | 2022-01-10T14:22:35.000Z | modules/external_packages/src/alien/kernels/petsc/linear_solver/field_split/PETScPrecConfigFieldSplitService.cc | cedricga91/alien_legacy_plugins | 459701026d76dbe1e8a6b20454f6b50ec9722f7f | [
"Apache-2.0"
] | null | null | null | modules/external_packages/src/alien/kernels/petsc/linear_solver/field_split/PETScPrecConfigFieldSplitService.cc | cedricga91/alien_legacy_plugins | 459701026d76dbe1e8a6b20454f6b50ec9722f7f | [
"Apache-2.0"
] | 7 | 2021-11-23T14:50:58.000Z | 2022-03-17T13:23:07.000Z | /* Author : gratienj
* Preconditioner created by combining separate preconditioners for individual
* fields or groups of fields. See the users manual section "Solving Block Matrices"
* for more details in PETSc 3.3 documentation :
* http://www.mcs.anl.gov/petsc/petsc-current/docs/manual.pdf
*/
#include <alien/ker... | 37.12766 | 91 | 0.626934 | cedricga91 |
34d578e992a3519707dd652438e22bb310f749ff | 409 | hpp | C++ | submodules/msgpack-c/include/msgpack/adaptor/complex.hpp | zhengwang/gaia-zbar-demo | 8410dc3f12ffb4b1b1e79f66f376dd207b79e7b5 | [
"MIT"
] | 199 | 2017-12-29T13:36:53.000Z | 2022-03-31T19:38:01.000Z | submodules/msgpack-c/include/msgpack/adaptor/complex.hpp | zhengwang/gaia-zbar-demo | 8410dc3f12ffb4b1b1e79f66f376dd207b79e7b5 | [
"MIT"
] | 188 | 2017-11-03T18:22:46.000Z | 2022-03-03T17:43:55.000Z | submodules/msgpack-c/include/msgpack/adaptor/complex.hpp | zhengwang/gaia-zbar-demo | 8410dc3f12ffb4b1b1e79f66f376dd207b79e7b5 | [
"MIT"
] | 35 | 2017-11-02T19:18:34.000Z | 2021-10-05T09:37:22.000Z | //
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2020 KONDO Takatoshi
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef MSGPACK_TYPE_COMPLEX_HPP
#define MSGPACK_TYPE_CO... | 25.5625 | 64 | 0.748166 | zhengwang |
34d5b46bf2d84f751764db1a2bd7ab092f9b9853 | 399 | cc | C++ | beautiful_matrix.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | null | null | null | beautiful_matrix.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | 3 | 2021-01-04T18:33:39.000Z | 2021-01-04T19:37:21.000Z | beautiful_matrix.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
//#include <utility>
int main() {
int x, y, v, x_c, y_c, ans = 0;
for (y = 0; y < 5; ++y) {
for (x = 0; x < 5; ++x) {
std::cin >> v;
if(v == 1) {
x_c = x;
y_c = y;
}
}
}
ans += abs... | 17.347826 | 35 | 0.340852 | maximilianbrine |
34d8d80e31c05a000c472c646582c4cb390c24ef | 24,464 | hpp | C++ | integer.hpp | arbitrary-precision/ap | fc6dffabba8edcf09255c429ec81eed0b3fd63a8 | [
"MIT"
] | 11 | 2021-12-14T14:05:14.000Z | 2022-01-09T20:24:56.000Z | integer.hpp | arbitrary-precision/ap | fc6dffabba8edcf09255c429ec81eed0b3fd63a8 | [
"MIT"
] | null | null | null | integer.hpp | arbitrary-precision/ap | fc6dffabba8edcf09255c429ec81eed0b3fd63a8 | [
"MIT"
] | 1 | 2022-01-30T03:20:40.000Z | 2022-01-30T03:20:40.000Z | #ifndef DEOHAYER_AP_INT_HPP
#define DEOHAYER_AP_INT_HPP
#include "integer_api.hpp"
#include "integer_handle.hpp"
#include <iostream>
namespace ap
{
namespace library
{
#define AP_DEFAULT_STR_BASE 10
#define AP_DEFAULT_STR "0123456789ABCDEF"
////////////////////////////////////////////////////////////////////////////... | 33.604396 | 146 | 0.485039 | arbitrary-precision |
34dd7abf37e1b8c2f160ba3f0f1f5a6dbb9d7da3 | 1,219 | hpp | C++ | include/lol/op/GetRsoAuthV1AuthorizationIdToken.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/op/GetRsoAuthV1AuthorizationIdToken.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/op/GetRsoAuthV1AuthorizationIdToken.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_op.hpp"
#include <functional>
#include "../def/RsoAuthIdToken.hpp"
namespace lol {
template<typename T>
inline Result<RsoAuthIdToken> GetRsoAuthV1AuthorizationIdToken(T& _client)
{
try {
return ToResult<RsoAuthIdToken>(_client.https.request("get", "/rso-auth/v1/authorizat... | 36.939394 | 141 | 0.635767 | Maufeat |
34df8aed70c93ced2056c7ae0483152508c930ff | 56 | hpp | C++ | src/boost_compute_iterator_constant_iterator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_compute_iterator_constant_iterator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_compute_iterator_constant_iterator.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/compute/iterator/constant_iterator.hpp>
| 28 | 55 | 0.839286 | miathedev |
34e08cbd509422605d89e432daa71260e3448977 | 752 | hpp | C++ | src/tracer/camera.hpp | marovira/ctrt | 86c59f398dd5c1ba800ab5e5b2909c990f3fd9c6 | [
"BSD-3-Clause"
] | 2 | 2021-03-15T19:29:23.000Z | 2021-11-16T03:35:40.000Z | src/tracer/camera.hpp | marovira/ctrt | 86c59f398dd5c1ba800ab5e5b2909c990f3fd9c6 | [
"BSD-3-Clause"
] | null | null | null | src/tracer/camera.hpp | marovira/ctrt | 86c59f398dd5c1ba800ab5e5b2909c990f3fd9c6 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "ray.hpp"
class Camera
{
public:
constexpr Camera() : m_distance{0.0f}
{}
constexpr Camera(Point const& eye,
Vector const& look_at,
Vector const& up,
float distance) :
m_eye{eye}, m_distance{distance}
{
... | 19.789474 | 64 | 0.537234 | marovira |
34e2b373272df2b8e92e33d97c71e1f1f52dc379 | 203 | cpp | C++ | Chapter01/in_out.cpp | Vaibhav-Kashyap/CPPDataStructures-Algorithmspackt | 8fa5ecbcdc836321e63a8361fd8be4b7df392961 | [
"MIT"
] | 207 | 2018-04-24T22:39:37.000Z | 2022-03-28T12:16:16.000Z | Chapter01/in_out.cpp | Vaibhav-Kashyap/CPPDataStructures-Algorithmspackt | 8fa5ecbcdc836321e63a8361fd8be4b7df392961 | [
"MIT"
] | 1 | 2020-06-24T23:47:28.000Z | 2020-07-17T12:56:41.000Z | Chapter01/in_out.cpp | Vaibhav-Kashyap/CPPDataStructures-Algorithmspackt | 8fa5ecbcdc836321e63a8361fd8be4b7df392961 | [
"MIT"
] | 98 | 2018-04-28T15:03:48.000Z | 2022-01-03T12:16:07.000Z | // in_out.cpp
#include <iostream>
int main ()
{
int i;
std::cout << "Please enter an integer value: ";
std::cin >> i;
std::cout << "The value you entered is " << i;
std::cout << "\n";
return 0;
}
| 15.615385 | 48 | 0.576355 | Vaibhav-Kashyap |
34e4f806db8a642ebe01b1ce6aa1a24d17b8fa4e | 1,412 | cc | C++ | algorithm_dbosch.cc | jkloe/pageDistanceBasedContourGenerator | 92e8768b596c98ffc09f4b5eeb7db8aafccda01a | [
"MIT"
] | 6 | 2019-03-06T23:54:01.000Z | 2020-08-24T09:18:33.000Z | algorithm_dbosch.cc | jkloe/pageDistanceBasedContourGenerator | 92e8768b596c98ffc09f4b5eeb7db8aafccda01a | [
"MIT"
] | 6 | 2019-03-07T00:31:48.000Z | 2021-01-10T13:28:41.000Z | algorithm_dbosch.cc | jkloe/pageDistanceBasedContourGenerator | 92e8768b596c98ffc09f4b5eeb7db8aafccda01a | [
"MIT"
] | 8 | 2019-03-07T00:08:43.000Z | 2021-05-13T12:14:08.000Z | #include "algorithm_dbosch.hpp"
namespace prhlt {
using namespace log4cxx;using namespace log4cxx::helpers;
using namespace boost;
using namespace Eigen;
Algorithm_DBOSCH::Algorithm_DBOSCH(cv::Mat &ex_image):Algorithm_Distance_Map(ex_image){
}
void Algorithm_DBOSCH::run(int ex_curvat... | 38.162162 | 137 | 0.711756 | jkloe |
34e73a26f3faaba69bd211507e911461a5b8c1e6 | 360 | cpp | C++ | origin_code/factorial.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | origin_code/factorial.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | origin_code/factorial.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null |
// compute n!
#include <iostream>
using namespace std;
int factorial(int n)
{// Compute n!
if (n <= 1) return 1;
else return n * factorial(n - 1);
}
int main()
{// test the function
cout << "0! = " << factorial(0) << endl;
cout << "1! = " << factorial(1) << endl;
cout << "5! = " << ... | 17.142857 | 44 | 0.508333 | vectordb-io |
34e75b64636ca2e276112e5b6eb7bdedbcf8a0f1 | 175 | cpp | C++ | transitin-sqlite/validation.cpp | alairon/transitin-sqlite | 6533b45ed2bc5da976ff86680e3a4aa9e40d874b | [
"MIT"
] | null | null | null | transitin-sqlite/validation.cpp | alairon/transitin-sqlite | 6533b45ed2bc5da976ff86680e3a4aa9e40d874b | [
"MIT"
] | null | null | null | transitin-sqlite/validation.cpp | alairon/transitin-sqlite | 6533b45ed2bc5da976ff86680e3a4aa9e40d874b | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "system.hpp"
using namespace std;
/*Checks if a file exists*/
bool fileExists(string file) {
ifstream inFile(file);
return (inFile.good());
} | 15.909091 | 30 | 0.708571 | alairon |
34eb33e6701356fea57a57dbb655d34ab8559d7e | 1,086 | cpp | C++ | oop_class_car.cpp | rostislav-nikitin/edu.cpp | 3cbb87b32042cc24ebfc9937927ba86ca24a92aa | [
"MIT"
] | null | null | null | oop_class_car.cpp | rostislav-nikitin/edu.cpp | 3cbb87b32042cc24ebfc9937927ba86ca24a92aa | [
"MIT"
] | null | null | null | oop_class_car.cpp | rostislav-nikitin/edu.cpp | 3cbb87b32042cc24ebfc9937927ba86ca24a92aa | [
"MIT"
] | null | null | null | // Single-line comment
/*
* Multiple line comment
*/
#include <iostream>
#include "oop_class_car.h"
using namespace std;
int Car::total_count {0};
Car::Car():Car(0)
{
cout << "Car()" << endl;
}
Car::Car(float amount):Car(amount, 0)
{
cout << "Car(float)" << endl;
}
Car::Car(float fuel, int passengers)
{
cou... | 13.575 | 48 | 0.594843 | rostislav-nikitin |
34ed87a9d1efa199b206d61ed3f7d92013b33158 | 19,064 | cpp | C++ | src/main.cpp | 7h3730B/SuperDuperLedAppESP | f73512bacba9ddb71b2ab23bfe4f82ddce3e9b2b | [
"MIT"
] | null | null | null | src/main.cpp | 7h3730B/SuperDuperLedAppESP | f73512bacba9ddb71b2ab23bfe4f82ddce3e9b2b | [
"MIT"
] | null | null | null | src/main.cpp | 7h3730B/SuperDuperLedAppESP | f73512bacba9ddb71b2ab23bfe4f82ddce3e9b2b | [
"MIT"
] | 1 | 2019-11-16T16:31:35.000Z | 2019-11-16T16:31:35.000Z | #include "Arduino.h"
#include "Debug.h"
#include "ESP8266WiFi.h"
#include "ESP8266WebServer.h"
#include "ArduinoJson.h"
#include "FS.h"
#include "FastLED.h"
#include "WiFiUdp.h"
#include <ESP8266HTTPUpdateServer.h>
#include "effect.h"
#include "effects/comet.cpp"
#include "effects/rainbow.cpp"
#include "effects/rippl... | 25.972752 | 117 | 0.570027 | 7h3730B |
34f585b51562fd7b18ca96b9ac20b6bba8799f2c | 1,570 | hh | C++ | mcg/src/external/BSR/include/concurrent/threads/synchronization/locks/auto_read_lock.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 392 | 2015-01-14T13:19:40.000Z | 2022-02-12T08:47:33.000Z | mcg/src/external/BSR/include/concurrent/threads/synchronization/locks/auto_read_lock.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 45 | 2015-02-03T12:16:10.000Z | 2022-03-07T00:25:09.000Z | mcg/src/external/BSR/include/concurrent/threads/synchronization/locks/auto_read_lock.hh | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 168 | 2015-01-05T02:29:53.000Z | 2022-02-22T04:32:04.000Z | /*
* Auto read lock.
*
* An auto_read_lock takes a read lock on a synchronizable object when
* constructed and releases the read lock when destructed.
*/
#ifndef CONCURRENT__THREADS__SYNCHRONIZATION__LOCKS__AUTO_READ_LOCK_HH
#define CONCURRENT__THREADS__SYNCHRONIZATION__LOCKS__AUTO_READ_LOCK_HH
namespace concurre... | 19.625 | 72 | 0.699363 | mouthwater |
34f7d6ad3c594eb56a275d607fd7e21b5481a92f | 45 | cpp | C++ | 6.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | 6.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | 6.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | //
// Created by sunguoyan on 2017/2/27.
//
| 9 | 37 | 0.6 | Sherryhaha |
5a5568b8b9972a0e9d452be5e4276b692ba7d335 | 2,660 | cpp | C++ | render/Mesh.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | 6 | 2019-01-25T08:41:14.000Z | 2021-08-22T07:06:11.000Z | render/Mesh.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | null | null | null | render/Mesh.cpp | kunka/SoftRender | 8089844e9ab00ab71ef1a820641ec07ae8df248d | [
"MIT"
] | 3 | 2019-01-25T08:41:16.000Z | 2020-09-04T06:04:29.000Z | //
// Created by huangkun on 04/04/2018.
//
#include "Mesh.h"
using namespace std;
Mesh::Mesh(const std::vector<Vertex> &vertices, const std::vector<unsigned int> &indices,
const std::vector<Texture> &textures) {
_vertices = vertices;
_indices = indices;
_textures = textures;
}
Mesh::Mesh(con... | 30.930233 | 112 | 0.659023 | kunka |
5a57ec1f0537267968c18b7300a5bb8d5f64792b | 6,944 | cpp | C++ | examples/get-started/Vegg_BLE_DW/components/arduino/libraries/Painless_Mesh/src/painlessMeshAP.cpp | Techtesh/dwranging | 3233947d7b91a8bf1b9d17417d0ae4e22689a865 | [
"Apache-2.0"
] | null | null | null | examples/get-started/Vegg_BLE_DW/components/arduino/libraries/Painless_Mesh/src/painlessMeshAP.cpp | Techtesh/dwranging | 3233947d7b91a8bf1b9d17417d0ae4e22689a865 | [
"Apache-2.0"
] | null | null | null | examples/get-started/Vegg_BLE_DW/components/arduino/libraries/Painless_Mesh/src/painlessMeshAP.cpp | Techtesh/dwranging | 3233947d7b91a8bf1b9d17417d0ae4e22689a865 | [
"Apache-2.0"
] | null | null | null | //
// painlessMeshAP.cpp
//
//
// Created by Bill Gray on 7/26/16.
//
//
#include <Arduino.h>
#include "painlessMesh.h"
extern "C" {
#include <esp_wifi.h>
}
extern painlessMesh* staticThis;
extern HardwareSerial Serial_log;
extern HardwareSerial Serial_com;
extern HardwareSerial BLE_log;
// AP functions
//****... | 44.8 | 397 | 0.539747 | Techtesh |
5a586c0f37641816648c3e0a7e70ad8fdb728715 | 9,123 | cpp | C++ | msqlquery-demo/msqlquery/msqldatabase.cpp | Opostol/MSqlQuery | 67cdfde4b1d94f1c5aff7fc6017e967d492fc3a2 | [
"Unlicense"
] | 6 | 2017-04-22T14:10:54.000Z | 2021-11-02T20:24:02.000Z | msqlquery-demo/msqlquery/msqldatabase.cpp | Opostol/MSqlQuery | 67cdfde4b1d94f1c5aff7fc6017e967d492fc3a2 | [
"Unlicense"
] | 1 | 2018-07-11T17:52:50.000Z | 2018-08-22T18:44:35.000Z | msqlquery-demo/msqlquery/msqldatabase.cpp | Opostol/MSqlQuery | 67cdfde4b1d94f1c5aff7fc6017e967d492fc3a2 | [
"Unlicense"
] | 1 | 2018-07-11T11:16:32.000Z | 2018-07-11T11:16:32.000Z | #include "msqldatabase.h"
#include "qthreadutils.h"
#include "msqlthread.h"
#include <QSqlDatabase>
#include <QStringList>
#include <QSqlDriver>
#include <QDebug>
#include <QReadWriteLock>
#include <QWriteLocker>
#include <QReadLocker>
#include <QGlobalStatic>
#include <QCoreApplication>
const QString MSqlDatabase::de... | 33.914498 | 113 | 0.726515 | Opostol |
5a5af17e4a33fe660465020bd1be228aa45d11b6 | 1,916 | c++ | C++ | LeetCode/Add Two Numbers - Medium.c++ | ammar-sayed-taha/problem-solving | 9677a738c0cc30078f6450f40fcc26ba2a379a8b | [
"MIT"
] | 1 | 2020-02-20T00:04:54.000Z | 2020-02-20T00:04:54.000Z | LeetCode/Add Two Numbers - Medium.c++ | ammar-sayed-taha/Problem-Solving | c3ef98b8b0ebfbcc31d45990822b81a9dc549fe8 | [
"MIT"
] | null | null | null | LeetCode/Add Two Numbers - Medium.c++ | ammar-sayed-taha/Problem-Solving | c3ef98b8b0ebfbcc31d45990822b81a9dc549fe8 | [
"MIT"
] | null | null | null | /**
* assume N: length of list1 and M: length of list 2
* Time Complex :O(N) where N >= M
* Space Complexity: O(N) where N >= M
*/
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) {
ListNode * zeroNode = new ListNode(0);
string num1 = getNums(l1);
string num2... | 29.030303 | 120 | 0.516701 | ammar-sayed-taha |
5a67a2b24c1e32c44c4b8219c6cd3c247060afe4 | 6,465 | hpp | C++ | simulation/libsimulator/include/simulator/function.hpp | SylemST-UtilCollection/libtorrent-build | 76c22d0f0aa0e6541983fa793789f3a5774cf0ca | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | simulation/libsimulator/include/simulator/function.hpp | SylemST-UtilCollection/libtorrent-build | 76c22d0f0aa0e6541983fa793789f3a5774cf0ca | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | simulation/libsimulator/include/simulator/function.hpp | SylemST-UtilCollection/libtorrent-build | 76c22d0f0aa0e6541983fa793789f3a5774cf0ca | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2017, Arvid Norberg
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | 29.253394 | 108 | 0.682289 | SylemST-UtilCollection |
5a6ace6c23e91d6a1108a30f4a3c1b0b09114333 | 3,351 | cpp | C++ | android-29/android/media/ThumbnailUtils.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/media/ThumbnailUtils.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/media/ThumbnailUtils.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../graphics/Bitmap.hpp"
#include "../os/CancellationSignal.hpp"
#include "../util/Size.hpp"
#include "../../java/io/File.hpp"
#include "../../JString.hpp"
#include "./ThumbnailUtils.hpp"
namespace android::media
{
// Fields
jint ThumbnailUtils::OPTIONS_RECYCLE_INPUT()
{
return getStaticField<jint>(
"... | 28.398305 | 148 | 0.723963 | YJBeetle |
5a7d6fa149f270feb0ba867fbaa92235678f9430 | 534 | cpp | C++ | Youtube/Not_using_namespace_std.cpp | lance-lh/learning-c-plusplus | 90342cc5d26a5adb87aa3e97795d4bbfca7bef52 | [
"MIT"
] | 1 | 2019-03-27T13:00:02.000Z | 2019-03-27T13:00:02.000Z | Youtube/Not_using_namespace_std.cpp | lance-lh/learning-c-plusplus | 90342cc5d26a5adb87aa3e97795d4bbfca7bef52 | [
"MIT"
] | null | null | null | Youtube/Not_using_namespace_std.cpp | lance-lh/learning-c-plusplus | 90342cc5d26a5adb87aa3e97795d4bbfca7bef52 | [
"MIT"
] | 1 | 2021-01-12T22:01:28.000Z | 2021-01-12T22:01:28.000Z | #include<iostream>
#include<string>
namespace apple // it needs implicit conversion
{
void print(const std::string& text)
{
std::cout << text << std::endl;
}
}
namespace orrange // if both exist, this one is a better choice
{
void print(const char* text)
{
std::string temp = text;
std::reverse(temp.be... | 17.8 | 72 | 0.653558 | lance-lh |
5a83c0f2ac4d959c3a272ce53ae258398212f0ab | 8,003 | cpp | C++ | src/utils/vmpi_private/mysql_wrapper/mysql_wrapper.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/utils/vmpi_private/mysql_wrapper/mysql_wrapper.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/utils/vmpi_private/mysql_wrapper/mysql_wrapper.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
// mysql_wrapper.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
extern "C"
{
#include "mys... | 22.292479 | 117 | 0.580782 | cstom4994 |
5a89fff9491c8a42e38cac9520558565357a282b | 349 | cpp | C++ | codeforces/1618A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1618A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1618A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // A. Polycarp and Sums of Subsequences
#include <iostream>
#include <vector>
int main() {
int t;
std::cin >> t;
while (t--) {
std::vector<int> b(7);
for (auto &el: b) {
std::cin >> el;
}
std::cout << b[0] << ' ' << b[1] << ' ' << b[6] - b[0] - b[1] << std::... | 15.173913 | 83 | 0.415473 | sgrade |
5a8fe2cb455366de690d7e6aadf8c5030866e7e1 | 2,107 | cpp | C++ | Nettitude/Injection/SeDebugPrivilege.cpp | nettitude/DLLInjection | 633ce4cc88ef6edb685204e9f3683f8a42962c63 | [
"Unlicense"
] | 71 | 2016-09-01T08:52:19.000Z | 2022-02-07T11:31:45.000Z | Nettitude/Injection/SeDebugPrivilege.cpp | nettitude/DLLInjection | 633ce4cc88ef6edb685204e9f3683f8a42962c63 | [
"Unlicense"
] | null | null | null | Nettitude/Injection/SeDebugPrivilege.cpp | nettitude/DLLInjection | 633ce4cc88ef6edb685204e9f3683f8a42962c63 | [
"Unlicense"
] | 31 | 2016-09-20T10:22:57.000Z | 2022-03-30T01:10:32.000Z | /*
Copyright (c) 2015, Nettitude
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclai... | 39.018519 | 106 | 0.755577 | nettitude |
5a96431c0947c30573b929acaee65c1270686cd4 | 44,752 | cpp | C++ | src/ui/mapeditor/map_editor.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/ui/mapeditor/map_editor.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/ui/mapeditor/map_editor.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.9.0 Dec 31 2020)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "ui/mapeditor/glob... | 48.328294 | 119 | 0.56288 | anuranbaka |
5aa374e7856fe47fe00278225a9acc46e548a392 | 3,942 | cpp | C++ | Tests/algorithm.cpp | klassen-software-solutions/kssutil | 985a80e96d648c448f2ac81d7dcbc48054e0c7aa | [
"MIT"
] | 1 | 2019-05-08T16:45:02.000Z | 2019-05-08T16:45:02.000Z | Tests/algorithm.cpp | klassen-software-solutions/kssutil | 985a80e96d648c448f2ac81d7dcbc48054e0c7aa | [
"MIT"
] | 14 | 2019-01-23T15:22:55.000Z | 2021-08-27T23:23:42.000Z | Tests/algorithm.cpp | klassen-software-solutions/kssutil | 985a80e96d648c448f2ac81d7dcbc48054e0c7aa | [
"MIT"
] | 1 | 2022-02-05T09:04:53.000Z | 2022-02-05T09:04:53.000Z | //
// algorithm.cpp
// KSSCore
//
// Created by Steven W. Klassen on 2014-12-27.
// Copyright (c) 2014 Klassen Software Solutions. All rights reserved.
// Licensing follows the MIT License.
//
#include <cstdlib>
#include <vector>
#include <kss/test/all.h>
#include <kss/util/algorithm.hpp>
using namespace std;
u... | 34.884956 | 78 | 0.5 | klassen-software-solutions |
5aa380b57e4a4f18197f6f785c6fe1861d9faa2d | 2,342 | cpp | C++ | src/math_floating_point.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 7 | 2017-07-12T11:15:54.000Z | 2021-10-29T18:33:33.000Z | src/math_floating_point.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 18 | 2017-05-16T03:48:45.000Z | 2022-03-16T19:51:26.000Z | src/math_floating_point.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 1 | 2018-08-02T09:05:08.000Z | 2018-08-02T09:05:08.000Z | // The current file is licensed under the license terms found in the main header file "calculator.h".
// For additional information refer to the file "calculator.h".
#include "math_general.h"
#include <math.h>
double FloatingPoint::sqrtFloating(double argument) {
return ::sqrt(argument);
}
double FloatingPoint::si... | 24.652632 | 114 | 0.704526 | tmilev |
5aa843a1a498535b7a7d9f7206a065c0519764e9 | 15,622 | cpp | C++ | sources/kv-storage.cpp | dimakirol/lab-10-kv-storage | 00096f700ab304894b954ac55b3eee0b75109045 | [
"MIT"
] | 1 | 2020-05-12T09:00:02.000Z | 2020-05-12T09:00:02.000Z | sources/kv-storage.cpp | dimakirol/lab-10-kv-storage | 00096f700ab304894b954ac55b3eee0b75109045 | [
"MIT"
] | null | null | null | sources/kv-storage.cpp | dimakirol/lab-10-kv-storage | 00096f700ab304894b954ac55b3eee0b75109045 | [
"MIT"
] | null | null | null | // Copyright 2019 dimakirol <your_email>
#include <kv-storage.hpp>
class RandomString {
public:
RandomString() {
alpha =
"abcdefghijklmnopqrstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"1234567890";
auto now = static_cast<unsigned int>(time(nullptr));
randomizer = static... | 32.27686 | 78 | 0.537639 | dimakirol |
5aabcff4c5f609eadb6d9c1551193b52a7cb7b3c | 2,011 | hpp | C++ | include/source.hpp | Neverlord/stream-simulator | d0dd4537bd83ec219cad44c7b68e9baab539d099 | [
"BSD-3-Clause"
] | null | null | null | include/source.hpp | Neverlord/stream-simulator | d0dd4537bd83ec219cad44c7b68e9baab539d099 | [
"BSD-3-Clause"
] | null | null | null | include/source.hpp | Neverlord/stream-simulator | d0dd4537bd83ec219cad44c7b68e9baab539d099 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 41.895833 | 80 | 0.406763 | Neverlord |
5ab11f03536a1304aa5424c68a6028f627f6c339 | 2,291 | cpp | C++ | Tga3D/Source/tga2dcore/tga2d/imguiinterface/ImGuiInterface.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | 1 | 2022-03-10T11:43:24.000Z | 2022-03-10T11:43:24.000Z | Tga3D/Source/tga2dcore/tga2d/imguiinterface/ImGuiInterface.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | Tga3D/Source/tga2dcore/tga2d/imguiinterface/ImGuiInterface.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ImGuiInterface.h"
#include <string>
#include <tga2d/engine.h>
#include <tga2d/graphics/DX11.h>
//#pragma comment(lib, "..\\Libs\\imgui.lib")
//#pragma comment(lib, "..\\Libs\\imgui_canvas.lib")
using namespace Tga2D;
namespace Tga2D
{
class ImGuiInterfaceImpl
{
publi... | 22.460784 | 124 | 0.694457 | sarisman84 |
5ab2c93d1ca032b3ca83f5a53b44ca5e67a897a0 | 426 | cpp | C++ | Ass_2/C files/diff.cpp | pratik8696/Assignment | 6fa02f4f7ec135b13dbebea9920eeb2a57bd1489 | [
"MIT"
] | null | null | null | Ass_2/C files/diff.cpp | pratik8696/Assignment | 6fa02f4f7ec135b13dbebea9920eeb2a57bd1489 | [
"MIT"
] | null | null | null | Ass_2/C files/diff.cpp | pratik8696/Assignment | 6fa02f4f7ec135b13dbebea9920eeb2a57bd1489 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main(){
int a,b,c,d,e,f;
printf("enter first number \n");
scanf("%d",&a);
printf("enter second number \n");
scanf("%d",&b);
c=a+b;
d=a-b;
e=a*b;
f=a/b;
printf("Addition of a and b is : %d\n",c);
printf("Subtraction of a and b is : %d\n",d);
printf(... | 21.3 | 52 | 0.521127 | pratik8696 |
5ab51771fe0383c47e0511fc6dd17dc448044783 | 1,857 | hpp | C++ | Encoder/SpectralNoiseShaping.hpp | Casper-Bonde-Bose/liblc3codec | 6e8ad0bd28108201e86507cd8a0f4eb130a12c5c | [
"Apache-2.0"
] | 30 | 2021-04-13T12:00:06.000Z | 2022-03-22T06:13:13.000Z | Encoder/SpectralNoiseShaping.hpp | Casper-Bonde-Bose/liblc3codec | 6e8ad0bd28108201e86507cd8a0f4eb130a12c5c | [
"Apache-2.0"
] | 6 | 2021-04-06T09:29:10.000Z | 2022-03-28T10:58:55.000Z | Encoder/SpectralNoiseShaping.hpp | Casper-Bonde-Bose/liblc3codec | 6e8ad0bd28108201e86507cd8a0f4eb130a12c5c | [
"Apache-2.0"
] | 20 | 2021-03-23T06:48:30.000Z | 2022-03-20T13:03:49.000Z | /*
* SpectralNoiseShaping.hpp
*
* Copyright 2019 HIMSA II K/S - www.himsa.com. Represented by EHIMA - www.ehima.com
*
* 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... | 27.716418 | 84 | 0.693592 | Casper-Bonde-Bose |
5ab6d31bddf6b45abb349ad04bb031ea01790950 | 690 | cpp | C++ | src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/street/StraightDetection.cpp | AppliedAutonomyOffenburg/AADC_2015_A2O | 19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac | [
"BSD-4-Clause"
] | 1 | 2018-09-09T21:39:29.000Z | 2018-09-09T21:39:29.000Z | src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/street/StraightDetection.cpp | TeamAutonomousCarOffenburg/A2O_2015 | 19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac | [
"BSD-4-Clause"
] | null | null | null | src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/street/StraightDetection.cpp | TeamAutonomousCarOffenburg/A2O_2015 | 19a2ac67d743ad23e5a259ca70aed6b3d1f2e3ac | [
"BSD-4-Clause"
] | 1 | 2016-04-05T06:34:08.000Z | 2016-04-05T06:34:08.000Z | #include "StraightDetection.h"
using namespace A2O;
StraightDetection::StraightDetection(const Pose2D& pose)
: SegmentDetection(1), _pose(pose)
{
}
StraightDetection::~StraightDetection()
{
}
const Pose2D& StraightDetection::getPose() const
{
return _pose;
}
void StraightDetection::add(const Pose2D& pose)... | 19.714286 | 79 | 0.76087 | AppliedAutonomyOffenburg |
5ac2871d9c8aca50d6c0e3bfd37b0943267623b2 | 551 | hxx | C++ | ROOTXMLPlot/PlottingSelections.hxx | luketpickering/ROOTXMLPlot | e2e05d14e930925cd740025fd042b1cc3f0bd91c | [
"MIT"
] | null | null | null | ROOTXMLPlot/PlottingSelections.hxx | luketpickering/ROOTXMLPlot | e2e05d14e930925cd740025fd042b1cc3f0bd91c | [
"MIT"
] | null | null | null | ROOTXMLPlot/PlottingSelections.hxx | luketpickering/ROOTXMLPlot | e2e05d14e930925cd740025fd042b1cc3f0bd91c | [
"MIT"
] | null | null | null | #ifndef __PLOTTTINGSELECTIONS_HXX_SEEN__
#define __PLOTTTINGSELECTIONS_HXX_SEEN__
#include <map>
#include <string>
#include "PlottingTypes.hxx"
#include "PlottingUtils.hxx"
namespace PlottingSelections {
extern std::map<std::string, PlottingTypes::Selection1D> Selections1D;
extern std::map<std::string, PlottingT... | 27.55 | 72 | 0.791289 | luketpickering |
5ac98b0d9cf945b682fd78fa44a765804efeaf1b | 8,169 | cpp | C++ | source/datastorage.cpp | SirDifferential/proceduralis | a614c9809ab0766ade78c1732668c05b30a7f263 | [
"MIT"
] | 9 | 2016-01-05T12:35:44.000Z | 2021-04-20T23:30:59.000Z | source/datastorage.cpp | SirDifferential/proceduralis | a614c9809ab0766ade78c1732668c05b30a7f263 | [
"MIT"
] | null | null | null | source/datastorage.cpp | SirDifferential/proceduralis | a614c9809ab0766ade78c1732668c05b30a7f263 | [
"MIT"
] | null | null | null | #include "datastorage.hpp"
#include "application.hpp"
#include "toolbox.hpp"
DataStorage::DataStorage()
{
}
/**
* Loads the data that is required by the game for
* displaying the game before it officially starts
* This includes loading screens, loading music
* and similar
* Returns 0 if successful
*/
int DataStorage:... | 28.663158 | 135 | 0.669849 | SirDifferential |
5acb38e153040ffdd31aaf5382c14ac9f81905f8 | 1,380 | cpp | C++ | src/common/errorsystem.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | 1 | 2019-07-01T02:02:40.000Z | 2019-07-01T02:02:40.000Z | src/common/errorsystem.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | null | null | null | src/common/errorsystem.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | null | null | null | #include "errorsystem.hpp"
#include "logger.hpp"
void Noctis::ErrorSystem::Error(StdStringView text)
{
g_Logger.SetForeColor(LoggerColor::ForeRed);
g_Logger.Log("[%s] error:", m_CurFile.c_str());
g_Logger.Log(text);
g_Logger.SetForeColor(LoggerColor::ForeGray);
}
void Noctis::ErrorSystem::Warning(StdStringView te... | 28.75 | 107 | 0.747101 | noct-lang |
5ad04f44b6f307afebc8e3d7dc5ad38eb60d5d95 | 563 | hpp | C++ | cheats/features/backtrack/backtrack.hpp | DemonLoverHvH/csgo | f7ff0211fd843bbf00cac5aa62422e5588552b23 | [
"MIT"
] | null | null | null | cheats/features/backtrack/backtrack.hpp | DemonLoverHvH/csgo | f7ff0211fd843bbf00cac5aa62422e5588552b23 | [
"MIT"
] | null | null | null | cheats/features/backtrack/backtrack.hpp | DemonLoverHvH/csgo | f7ff0211fd843bbf00cac5aa62422e5588552b23 | [
"MIT"
] | null | null | null | #pragma once
#include "../../game.hpp"
#include "../../../SDK/interfaces/interfaces.hpp"
#include <deque>
#include <array>
// TODO: fix setupbones for better results
namespace backtrack
{
struct StoredRecord
{
float simTime = 0.0f;
Vector head = { 0, 0, 0 };
// use origin to set abs or for whatever need
Vect... | 22.52 | 57 | 0.669627 | DemonLoverHvH |
62c4adf69d79740da7434ad50e62455657120e56 | 67,115 | cpp | C++ | opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/command_queue/blit_enqueue_1_tests.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2019-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/local_memory_access_modes.h"
#include "shared/source/helpers/pause_on_gpu_properties.h"
#include "shared/source/helpers/vec.h"
#include "shared/source/memory_manager/unified_memory_manager.h"
#incl... | 44.241925 | 182 | 0.753453 | mattcarter2017 |
62c546c1cbef1d98d36b2dca1330d78398364851 | 860 | cpp | C++ | p728e/self_dividing_numbers.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | 1 | 2020-02-20T12:04:46.000Z | 2020-02-20T12:04:46.000Z | p728e/self_dividing_numbers.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | p728e/self_dividing_numbers.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | // g++ -std=c++11 *.cpp -o test && ./test && rm -f test
#include <vector>
#include <iostream>
using namespace std;
class Solution {
public:
vector<int> selfDividingNumbers(int left, int right) {
auto isSelfDividingNumber = [](int x) -> bool {
int n = x;
while (n) {
... | 25.294118 | 67 | 0.489535 | l33tdaima |
62d37f1ac5e0834d7c92802fc4c0bc486ed7b155 | 52,826 | cpp | C++ | java/lib/NetworkTablesJNI.cpp | FRC-Team-5522/ntcore | 64f2033972515d5bdd668fd83d59a14fdc45dc95 | [
"BSD-3-Clause"
] | null | null | null | java/lib/NetworkTablesJNI.cpp | FRC-Team-5522/ntcore | 64f2033972515d5bdd668fd83d59a14fdc45dc95 | [
"BSD-3-Clause"
] | null | null | null | java/lib/NetworkTablesJNI.cpp | FRC-Team-5522/ntcore | 64f2033972515d5bdd668fd83d59a14fdc45dc95 | [
"BSD-3-Clause"
] | null | null | null | #include <jni.h>
#include <atomic>
#include <cassert>
#include <condition_variable>
#include <mutex>
#include <sstream>
#include <queue>
#include <thread>
#include "edu_wpi_first_wpilibj_networktables_NetworkTablesJNI.h"
#include "ntcore.h"
#include "support/atomic_static.h"
#include "support/jni_util.h"
#include "sup... | 30.377228 | 145 | 0.70878 | FRC-Team-5522 |
62d50d0f201b54532f63c389d87c22c86c18ac06 | 2,043 | hh | C++ | Editor/src/EditorLayer.hh | Stolkerve/RoraymaEngine | e8dcddcb6679bb7417b22eaec1d5beb9c0c82cc2 | [
"Apache-2.0"
] | null | null | null | Editor/src/EditorLayer.hh | Stolkerve/RoraymaEngine | e8dcddcb6679bb7417b22eaec1d5beb9c0c82cc2 | [
"Apache-2.0"
] | null | null | null | Editor/src/EditorLayer.hh | Stolkerve/RoraymaEngine | e8dcddcb6679bb7417b22eaec1d5beb9c0c82cc2 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <RoraymaEngine/RoraymaEngine.hh>
#include <RoraymaEngine/Renderer/DynamicGrid.hh>
#include <Portable_File_Dialogs/portable-file-dialogs.h>
#include <pybind11/embed.h>
#include "Panels/RenderingInfoPanel.hh"
#include "Panels/EntitysPanel.hh"
#include "Panels/ConsolePanel.hh"
#include "Panels/Fol... | 28.375 | 60 | 0.771415 | Stolkerve |
62db8bf1ffbeb25058226e4c340685c3149a1755 | 5,882 | cpp | C++ | store/transaction_test.cpp | racktopsystems/kyua | 1929dccc5cda71cddda71485094822d3c3862902 | [
"BSD-3-Clause"
] | 106 | 2015-01-20T14:49:12.000Z | 2022-03-09T01:31:51.000Z | store/transaction_test.cpp | racktopsystems/kyua | 1929dccc5cda71cddda71485094822d3c3862902 | [
"BSD-3-Clause"
] | 81 | 2015-02-23T23:23:41.000Z | 2021-07-21T13:51:56.000Z | store/transaction_test.cpp | racktopsystems/kyua | 1929dccc5cda71cddda71485094822d3c3862902 | [
"BSD-3-Clause"
] | 27 | 2015-09-30T20:33:34.000Z | 2022-02-14T04:00:08.000Z | // Copyright 2011 The Kyua Authors.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditio... | 34.397661 | 78 | 0.701292 | racktopsystems |
62dbb54076da1e7dc89c683c8f68d6e0dd05517f | 8,630 | hpp | C++ | library/include/darcel/syntax/syntax_parser_expressions.hpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/include/darcel/syntax/syntax_parser_expressions.hpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | null | null | null | library/include/darcel/syntax/syntax_parser_expressions.hpp | spiretrading/darcel | a9c32989ad9c1571edaa41c7c3a86b276b782c0d | [
"MIT"
] | 1 | 2020-04-17T13:25:25.000Z | 2020-04-17T13:25:25.000Z | #ifndef DARCEL_SYNTAX_PARSER_EXPRESSIONS_HPP
#define DARCEL_SYNTAX_PARSER_EXPRESSIONS_HPP
#include <cassert>
#include <deque>
#include <stack>
#include "darcel/lexicon/token.hpp"
#include "darcel/syntax/arity_syntax_error.hpp"
#include "darcel/syntax/call_expression.hpp"
#include "darcel/syntax/enum_expression.hpp"
#in... | 32.689394 | 77 | 0.597914 | spiretrading |
62e49aeefadb410fb1f6c956b11fef6b0488c1f4 | 39,667 | cc | C++ | libgav1/src/dsp/arm/loop_restoration_neon.cc | bootleg-q/external_libgav1 | 4ac298d5dc61c607a03eba5ba66def735b918a86 | [
"Apache-2.0"
] | null | null | null | libgav1/src/dsp/arm/loop_restoration_neon.cc | bootleg-q/external_libgav1 | 4ac298d5dc61c607a03eba5ba66def735b918a86 | [
"Apache-2.0"
] | null | null | null | libgav1/src/dsp/arm/loop_restoration_neon.cc | bootleg-q/external_libgav1 | 4ac298d5dc61c607a03eba5ba66def735b918a86 | [
"Apache-2.0"
] | null | null | null | #include "src/dsp/dsp.h"
#include "src/dsp/loop_restoration.h"
#if LIBGAV1_ENABLE_NEON
#include <arm_neon.h>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include "src/dsp/arm/common_neon.h"
#include "src/utils/constants.h"
namespace libgav1 {
namespace dsp {
namespace low_bitdepth {
namespace {
// Wi... | 37.634725 | 80 | 0.626112 | bootleg-q |
62e5bd5ca39ef948c79d742c1541c39dfa50bdcf | 358 | hpp | C++ | src/properties/Manager.hpp | mechanicsfoundry/raytracinginoneweekend-glsl | 515905135456fe263be9bc13b708222c28827a4d | [
"MIT"
] | 4 | 2021-03-01T13:33:30.000Z | 2021-03-14T20:05:00.000Z | src/properties/Manager.hpp | mechanicsfoundry/raytracinginoneweekend-glsl | 515905135456fe263be9bc13b708222c28827a4d | [
"MIT"
] | null | null | null | src/properties/Manager.hpp | mechanicsfoundry/raytracinginoneweekend-glsl | 515905135456fe263be9bc13b708222c28827a4d | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <vector>
#include "IProperty.hpp"
namespace Properties
{
class Manager
{
private:
std::vector<IProperty*> properties;
public:
Manager() = default;
Manager(const Manager&) = delete;
void Add(IProperty* property);
void Up... | 15.565217 | 43 | 0.611732 | mechanicsfoundry |
62e8100c09be0bf0e04e5166329ffcd5e777a3a7 | 1,438 | cpp | C++ | codeforces/G - Water Testing/Wrong answer on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/G - Water Testing/Wrong answer on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/G - Water Testing/Wrong answer on test 3.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729# created: Feb/05/2020 17:11
* solution_verdict: Wrong answer on test 3 language: GNU C++14
* run... | 35.95 | 111 | 0.467316 | kzvd4729 |
62eabd5002a716d594338913741a44380b9dfffa | 1,745 | cpp | C++ | Source/Tools/ParticleEditor2D/ParticleEffectEditor.cpp | aster2013/ParticleEditor2D | 2c0e5605c6df1e9fb796b728b05671ac2b609032 | [
"MIT"
] | 27 | 2015-01-21T07:39:32.000Z | 2021-04-26T22:21:09.000Z | Source/Tools/ParticleEditor2D/ParticleEffectEditor.cpp | seem-sky/ParticleEditor2D | 2c0e5605c6df1e9fb796b728b05671ac2b609032 | [
"MIT"
] | 1 | 2015-05-05T17:04:51.000Z | 2015-05-07T17:42:06.000Z | Source/Tools/ParticleEditor2D/ParticleEffectEditor.cpp | seem-sky/ParticleEditor2D | 2c0e5605c6df1e9fb796b728b05671ac2b609032 | [
"MIT"
] | 15 | 2015-06-04T10:22:05.000Z | 2021-02-11T01:00:32.000Z | //
// Copyright (c) 2014 the ParticleEditor2D project.
//
// 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, modi... | 28.145161 | 80 | 0.755301 | aster2013 |
62f01052b08b5ca16cc5f6edce33a0f772c89d3b | 1,094 | cpp | C++ | main/lucid/managed/Orbit/StarCatalog.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/lucid/managed/Orbit/StarCatalog.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | main/lucid/managed/Orbit/StarCatalog.cpp | irumsey/ijrumsey.com | 3dcf909eada5a09d39e6bf89a1f0bf1fa7328789 | [
"MIT"
] | null | null | null | #include "StarCatalog.h"
#include <lucid/orbit/Ephemeris.h>
#include <msclr/marshal_cppstd.h>
namespace /* anonymous */ {
namespace MI = msclr::interop;
namespace orbit = ::lucid::orbit;
}
#define theCatalog (orbit::StarCatalog::instance())
namespace Lucid {
namespace Orbit {
///
///
///
StarCatalogE... | 16.328358 | 75 | 0.681901 | irumsey |
62f1639e2530aae54c41d9b2b049a17af58471f2 | 6,375 | cc | C++ | src/TransformationUtils.cc | usi-verification-and-security/golem | 4ea1a531a59575a9c0c0254201d90d52547152ff | [
"MIT"
] | 6 | 2021-08-16T09:57:38.000Z | 2021-12-02T11:06:23.000Z | src/TransformationUtils.cc | usi-verification-and-security/golem | 4ea1a531a59575a9c0c0254201d90d52547152ff | [
"MIT"
] | null | null | null | src/TransformationUtils.cc | usi-verification-and-security/golem | 4ea1a531a59575a9c0c0254201d90d52547152ff | [
"MIT"
] | null | null | null | //
// Created by Martin Blicha on 01.06.21.
//
#include "TransformationUtils.h"
#include "QuantifierElimination.h"
bool isTransitionSystem(ChcDirectedGraph const & graph) {
auto graphRepresentation = AdjacencyListsGraphRepresentation::from(graph);
auto reversePostorder = graphRepresentation.reversePostOrder()... | 56.415929 | 160 | 0.643922 | usi-verification-and-security |
62f4b90ade6d7eb27553a3d8531e3a916f834084 | 3,515 | cpp | C++ | src/tools/bench_perft.cpp | sgriffin53/swizzles | 61b2c81cee2a994adb623a5185c55823b194eb32 | [
"MIT"
] | null | null | null | src/tools/bench_perft.cpp | sgriffin53/swizzles | 61b2c81cee2a994adb623a5185c55823b194eb32 | [
"MIT"
] | null | null | null | src/tools/bench_perft.cpp | sgriffin53/swizzles | 61b2c81cee2a994adb623a5185c55823b194eb32 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <array>
#include <chess/position.hpp>
#include <chrono>
#include <cstdint>
#include <iomanip>
#include <iostream>
[[nodiscard]] auto perft(chess::Position &pos, const int depth) noexcept -> std::uint64_t {
if (depth == 0) {
return 1ULL;
}
std::uint64_t nodes = 0ULL;
... | 33.798077 | 91 | 0.576671 | sgriffin53 |
62f607229fe64c3cc64ee48ad9393741eef15b7e | 2,675 | cpp | C++ | main.cpp | JacobLCarter/Doodlebugs | 3dba972079cf2e09314b61dd2182d66450300368 | [
"MIT"
] | null | null | null | main.cpp | JacobLCarter/Doodlebugs | 3dba972079cf2e09314b61dd2182d66450300368 | [
"MIT"
] | null | null | null | main.cpp | JacobLCarter/Doodlebugs | 3dba972079cf2e09314b61dd2182d66450300368 | [
"MIT"
] | null | null | null | /*******************************************************************************
* Program Name: main.cpp
* Author: Matt Dienhart
* Date: 2/10/2018
* Description: (Group Project) This is the main client code for the predator
* and prey simulation.
*****************************************************************... | 32.228916 | 83 | 0.496822 | JacobLCarter |
62f6dcde97fb0d69f669b7f9460488884cfe1855 | 305 | hpp | C++ | cpp-terminal/private/inputOutputModeFlags.hpp | jupyter-xeus/terminal | 932ca39faaa9a7adbef4a04c5286313553638eb3 | [
"Unlicense"
] | 2 | 2020-10-21T15:16:20.000Z | 2020-10-21T15:27:30.000Z | cpp-terminal/private/inputOutputModeFlags.hpp | jupyter-xeus/terminal | 932ca39faaa9a7adbef4a04c5286313553638eb3 | [
"Unlicense"
] | 1 | 2020-10-21T15:18:09.000Z | 2020-10-21T15:18:09.000Z | cpp-terminal/private/inputOutputModeFlags.hpp | jupyter-xeus/terminal | 932ca39faaa9a7adbef4a04c5286313553638eb3 | [
"Unlicense"
] | 1 | 2020-10-21T15:18:11.000Z | 2020-10-21T15:18:11.000Z | #pragma once
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif
#ifndef DISABLE_NEWLINE_AUTO_RETURN
#define DISABLE_NEWLINE_AUTO_RETURN 0x0008
#endif
#ifndef ENABLE_VIRTUAL_TERMINAL_INPUT
#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200
#endif
| 21.785714 | 50 | 0.84918 | jupyter-xeus |
62f7f183e0593529f8414d22e2cd8e6f5489c4d4 | 43,505 | cpp | C++ | main.cpp | alechh/test-opencv | ab82723e4f9dda88a63add60d5f28dda5a22bc73 | [
"Apache-2.0"
] | 1 | 2022-03-24T08:05:22.000Z | 2022-03-24T08:05:22.000Z | main.cpp | alechh/test-opencv | ab82723e4f9dda88a63add60d5f28dda5a22bc73 | [
"Apache-2.0"
] | null | null | null | main.cpp | alechh/test-opencv | ab82723e4f9dda88a63add60d5f28dda5a22bc73 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
#include <set>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/opencv.hpp>
#include <cmath>
#include "SpaceKB.h"
#include "IntervalsList.h"
#include "I... | 30.465686 | 165 | 0.574026 | alechh |
62fe1ff258c2dc4f541843a34f65206639a3e010 | 45 | hpp | C++ | src/boost_log_expressions_message.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_log_expressions_message.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_log_expressions_message.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/log/expressions/message.hpp>
| 22.5 | 44 | 0.8 | miathedev |
62fe3593c590a7255760529e008fe587a59f957a | 695 | cpp | C++ | src/regiondump.cpp | saadbruno/MinedMap | fbef307c90a96b39dde1f36f2ebe1f764c18bdd2 | [
"BSD-2-Clause"
] | null | null | null | src/regiondump.cpp | saadbruno/MinedMap | fbef307c90a96b39dde1f36f2ebe1f764c18bdd2 | [
"BSD-2-Clause"
] | null | null | null | src/regiondump.cpp | saadbruno/MinedMap | fbef307c90a96b39dde1f36f2ebe1f764c18bdd2 | [
"BSD-2-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-2-Clause
/*
Copyright (c) 2018-2021, Matthias Schiffer <mschiffer@universe-factory.net>
All rights reserved.
*/
#include "Buffer.hpp"
#include "GZip.hpp"
#include "Util.hpp"
#include "NBT/Tag.hpp"
#include "World/Region.hpp"
#include <cstdio>
#include <iostream>
int main(int arg... | 21.060606 | 104 | 0.640288 | saadbruno |
1a056e69763217dfae0dfd7bcb476993907d25fb | 2,982 | cpp | C++ | src/game/src/states/chooseMap/ChooseMapState.cpp | walter-strazak/chimarrao | b4c9f9d726eb5e46d61b33e10b7579cc5512cd09 | [
"MIT"
] | 6 | 2021-04-20T10:32:29.000Z | 2021-06-05T11:48:56.000Z | src/game/src/states/chooseMap/ChooseMapState.cpp | walter-strazak/chimarrao | b4c9f9d726eb5e46d61b33e10b7579cc5512cd09 | [
"MIT"
] | 1 | 2021-05-18T21:00:12.000Z | 2021-06-02T07:59:03.000Z | src/game/src/states/chooseMap/ChooseMapState.cpp | walter-strazak/chimarrao | b4c9f9d726eb5e46d61b33e10b7579cc5512cd09 | [
"MIT"
] | 3 | 2020-09-12T08:54:04.000Z | 2021-04-17T11:16:36.000Z | #include "ChooseMapState.h"
#include <utility>
#include "ChooseMapStateUIConfigBuilder.h"
#include "TimerFactory.h"
namespace game
{
namespace
{
const auto buttonColor = graphics::Color(251, 190, 102);
const auto buttonHoverColor = graphics::Color(205, 128, 66);
}
ChooseMapState::ChooseMapState(const std::shared_pt... | 31.723404 | 108 | 0.64051 | walter-strazak |
1a07307aaf3a85edf9913efbd7ac10648c89dae5 | 544 | cpp | C++ | Components/Tower/Tower.cpp | Nayaco/OpenGLBoilerplate | a53d58c1c413b20ab17e73017fc65133949b7fff | [
"MIT"
] | null | null | null | Components/Tower/Tower.cpp | Nayaco/OpenGLBoilerplate | a53d58c1c413b20ab17e73017fc65133949b7fff | [
"MIT"
] | null | null | null | Components/Tower/Tower.cpp | Nayaco/OpenGLBoilerplate | a53d58c1c413b20ab17e73017fc65133949b7fff | [
"MIT"
] | null | null | null | #include "Tower.hpp"
Tower::Tower()
:aabbbox(glm::vec3(2.0f, 12.0f, 2.0f))
, model("Resources/Models/LightHouse/lightHouse.obj") {
position = glm::vec3(9.5, 1.0, 9.5);
center = glm::vec3(10.0, 1.0, 10.0);
aabbbox.update(position);
}
void Tower::draw(Shader const &shader) {
glm::mat4 model_matr... | 32 | 71 | 0.637868 | Nayaco |
1a26c5fb866a507b8696c3d428fd6bb9f5129513 | 22,214 | cc | C++ | flecsi-sp/burton/test/portage_tangram.cc | losalamos/flecsi-specializations | 69c2f964e154d576a142c5c8ee707d050a5fb71d | [
"Unlicense"
] | 1 | 2020-09-01T17:33:38.000Z | 2020-09-01T17:33:38.000Z | flecsi-sp/burton/test/portage_tangram.cc | losalamos/flecsi-specializations | 69c2f964e154d576a142c5c8ee707d050a5fb71d | [
"Unlicense"
] | 31 | 2017-03-21T01:58:03.000Z | 2020-01-23T00:43:32.000Z | flecsi-sp/burton/test/portage_tangram.cc | losalamos/flecsi-specializations | 69c2f964e154d576a142c5c8ee707d050a5fb71d | [
"Unlicense"
] | 12 | 2017-01-10T23:41:10.000Z | 2022-03-23T20:33:17.000Z | /*~-------------------------------------------------------------------------~~*
* Copyright (c) 2016 Los Alamos National Laboratory, LLC
* All rights reserved
*~-------------------------------------------------------------------------~~*/
//////////////////////////////////////////////////////////////////////////////... | 32.008646 | 119 | 0.591159 | losalamos |
1a291ad4eb8c9e22e9f3840466bf734d83d9679b | 1,188 | cpp | C++ | YASS/Particle.cpp | Marrow16180/YASS | 8a27bc7f07f0b65b847b0be0a2683e650895a33a | [
"MIT"
] | null | null | null | YASS/Particle.cpp | Marrow16180/YASS | 8a27bc7f07f0b65b847b0be0a2683e650895a33a | [
"MIT"
] | null | null | null | YASS/Particle.cpp | Marrow16180/YASS | 8a27bc7f07f0b65b847b0be0a2683e650895a33a | [
"MIT"
] | null | null | null | #include "Particle.hpp"
Particle::Particle()
{
// TODO: check whether this can be empty...
}
Particle::Particle
(
const sf::Texture * texture,
float rotation,
sf::Vector2f position,
sf::Vector2f scale,
sf::Time lifetime,
sf::Color color
)
: sprite{*texture}
, initialLifetime{lifetime}
, lifetime{lifeti... | 21.214286 | 150 | 0.728956 | Marrow16180 |
1a330adf76189bc21b7a9d5c2600209399904530 | 1,434 | cpp | C++ | test-namedecl.cpp | erdavila/typedecl | e3aaf4b6f0a44d0791d96a86049fd517e88ad428 | [
"MIT"
] | 1 | 2016-09-07T01:44:51.000Z | 2016-09-07T01:44:51.000Z | test-namedecl.cpp | erdavila/typedecl | e3aaf4b6f0a44d0791d96a86049fd517e88ad428 | [
"MIT"
] | null | null | null | test-namedecl.cpp | erdavila/typedecl | e3aaf4b6f0a44d0791d96a86049fd517e88ad428 | [
"MIT"
] | null | null | null | #include <cassert>
#include "typedecl.hpp"
struct C {};
DEFINE_TYPEDECL(C);
void testNameDecl() {
assert(namedecl<int>("name") == "int name");
assert(namedecl<const int>("name") == "const int name");
assert(namedecl<int&>("name") == "int& name");
assert(namedecl<int[3]>("name") == "int name[3]");
assert(namedecl... | 47.8 | 85 | 0.569735 | erdavila |
1a3d23bd2bdc663ba141191f2d9d746c2f24f625 | 365 | cpp | C++ | JsonBoolean.cpp | JCodeARM/JSON | 1447fb92e75b3cceeb90f46e3ba90e2ff1ed4a1c | [
"Unlicense"
] | null | null | null | JsonBoolean.cpp | JCodeARM/JSON | 1447fb92e75b3cceeb90f46e3ba90e2ff1ed4a1c | [
"Unlicense"
] | null | null | null | JsonBoolean.cpp | JCodeARM/JSON | 1447fb92e75b3cceeb90f46e3ba90e2ff1ed4a1c | [
"Unlicense"
] | null | null | null | //
// JsonBoolean.cpp
// JSON
//
// Created by Iulian on 13.03.2013.
//
#include "JsonBoolean.hpp"
JsonBoolean::JsonBoolean(bool vBool):JsonBase(),lBool(vBool){
lType=JsonType::Boolean;
}
JsonBoolean::~JsonBoolean(){
}
JsonStream & operator <<(JsonStream & lout, const JsonBoolean &lin){
lout<<(lin.l... | 17.380952 | 68 | 0.649315 | JCodeARM |
1a444d8bc7c68d50ac46033c3c526dcd36e33976 | 18,882 | hpp | C++ | include/codegen/include/System/NumberFormatter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/NumberFormatter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/NumberFormatter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Completed includes
// Begin forward declares
// Forward declaring names... | 50.218085 | 236 | 0.738004 | Futuremappermydud |
1a550c081d7f1d05ab4680274e01ebdd688f4f3d | 7,734 | hpp | C++ | include/QvPlugin/PluginInterface.hpp | Shadowsocks-NET/QvPlugin-Interface | b767b4ceb48b29c739ba6b09db7c46dc2b9c2dff | [
"MIT"
] | null | null | null | include/QvPlugin/PluginInterface.hpp | Shadowsocks-NET/QvPlugin-Interface | b767b4ceb48b29c739ba6b09db7c46dc2b9c2dff | [
"MIT"
] | null | null | null | include/QvPlugin/PluginInterface.hpp | Shadowsocks-NET/QvPlugin-Interface | b767b4ceb48b29c739ba6b09db7c46dc2b9c2dff | [
"MIT"
] | 2 | 2021-11-23T03:16:22.000Z | 2021-11-23T03:17:47.000Z | #pragma once
#include "QvPlugin/Common/QvPluginBase.hpp"
#include "QvPlugin/Connections/ConnectionsBase.hpp"
#include "QvPlugin/Handlers/EventHandler.hpp"
#include "QvPlugin/Handlers/IProfilePreprocessor.hpp"
#include "QvPlugin/Handlers/KernelHandler.hpp"
#include "QvPlugin/Handlers/LatencyTestHandler.hpp"
#include "Q... | 40.492147 | 170 | 0.584044 | Shadowsocks-NET |
1a59a077c05de1e316d92f779f1d8cd52b81b87c | 346 | cpp | C++ | core/src/main/jni/scale_argb.cpp | vfishv/libyuv-android | f4e048aef31325717025269dc25e012305207dec | [
"Apache-2.0",
"BSD-3-Clause"
] | 17 | 2020-09-19T21:19:07.000Z | 2022-03-10T08:21:47.000Z | core/src/main/jni/scale_argb.cpp | vfishv/libyuv-android | f4e048aef31325717025269dc25e012305207dec | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-05-29T12:36:29.000Z | 2021-09-04T02:09:48.000Z | core/src/main/jni/scale_argb.cpp | vfishv/libyuv-android | f4e048aef31325717025269dc25e012305207dec | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2020-03-26T12:12:37.000Z | 2022-03-10T09:37:53.000Z | #include <libyuv.h>
#include "scale.h"
using namespace libyuv;
using namespace libyuv::jniutil;
extern "C" {
PLANES_1_TO_1(ARGBScale, argb, argb)
// Clipped scale takes destination rectangle coordinates for clip values.
PLANES_1_TO_1_CLIP(ARGBScaleClip, argb, argb)
// Scale with YUV conversion to ARGB and clipping... | 20.352941 | 73 | 0.774566 | vfishv |
1a5d8960bc15cfa1a9a3f24ed70b97bafdede915 | 808 | cpp | C++ | src/engine/ui/src/ui/widgets/ui_animation.cpp | Healthire/halley | aa58e1abe22cda9e80637922721c03574779cd81 | [
"Apache-2.0"
] | null | null | null | src/engine/ui/src/ui/widgets/ui_animation.cpp | Healthire/halley | aa58e1abe22cda9e80637922721c03574779cd81 | [
"Apache-2.0"
] | null | null | null | src/engine/ui/src/ui/widgets/ui_animation.cpp | Healthire/halley | aa58e1abe22cda9e80637922721c03574779cd81 | [
"Apache-2.0"
] | null | null | null | #include "widgets/ui_animation.h"
using namespace Halley;
UIAnimation::UIAnimation(const String& id, Vector2f size, Vector2f animationOffset, AnimationPlayer animation)
: UIWidget(id, size)
, offset(animationOffset)
, animation(animation)
{}
AnimationPlayer& UIAnimation::getPlayer()
{
return animation;
}
const A... | 17.955556 | 110 | 0.742574 | Healthire |
1a6121f2e6565752b4bd2d3674294fa9cf366fc4 | 655 | hpp | C++ | RandomColorProvider.hpp | Chlorek/clkb | 902254c157700f3466fdda196f4f0f4e85d740cc | [
"MIT"
] | 1 | 2017-11-17T23:16:37.000Z | 2017-11-17T23:16:37.000Z | RandomColorProvider.hpp | Chlorek/clkb | 902254c157700f3466fdda196f4f0f4e85d740cc | [
"MIT"
] | null | null | null | RandomColorProvider.hpp | Chlorek/clkb | 902254c157700f3466fdda196f4f0f4e85d740cc | [
"MIT"
] | null | null | null | /*
* File: RandomColorProvider.hpp
* Author: chlorek
*
* Created on November 19, 2017, 12:37 AM
*/
#ifndef RANDOMCOLORPROVIDER_HPP
#define RANDOMCOLORPROVIDER_HPP
#include <random>
#include "ColorProvider.hpp"
#include "Effect.hpp"
namespace clkb {
class RandomColorProvider : public ColorProvider {
... | 22.586207 | 72 | 0.654962 | Chlorek |
1a6acaeac71ad735d2dea8ae4df20974ce80c0fa | 8,491 | cpp | C++ | Samples/Win7Samples/Touch/MTManipulationInertia/cpp/ManipulationEventsink.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/Touch/MTManipulationInertia/cpp/ManipulationEventsink.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/Touch/MTManipulationInertia/cpp/ManipulationEventsink.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
#include "Manipulati... | 27.65798 | 108 | 0.625604 | windows-development |
1a6d9ceb084e48078c2549991af7b253972790c6 | 52,624 | cpp | C++ | src/tkn/color.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 23 | 2019-07-11T14:47:39.000Z | 2021-12-24T09:56:24.000Z | src/tkn/color.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | null | null | null | src/tkn/color.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 4 | 2021-04-06T18:20:43.000Z | 2022-01-15T09:20:45.000Z | // Implementation contains code from the great pbrt-v3, licensed under BSD-2.
// See Chapter 5 of http://www.pbr-book.org/3ed-2018/contents.html for
// a detailed documentation.
// Also: https://github.com/mmp/pbrt-v3/blob/master/src/spectrum.cpp.
// We use their tables and general implementation ideas, but the
// code... | 37.642346 | 88 | 0.648943 | nyorain |
2b3ccbfb6d06f4ec20e667d932da3957b8bf3b63 | 3,050 | cpp | C++ | main.cpp | dczang53/NES_Emulator | 741dce5e3587811ef08c9064916a26baced45c19 | [
"MIT"
] | null | null | null | main.cpp | dczang53/NES_Emulator | 741dce5e3587811ef08c9064916a26baced45c19 | [
"MIT"
] | null | null | null | main.cpp | dczang53/NES_Emulator | 741dce5e3587811ef08c9064916a26baced45c19 | [
"MIT"
] | null | null | null | #include <cstdint>
#include <iostream>
#include <string>
#include "include/Mapper.hpp"
#include "include/Memory.hpp"
#include "include/Ricoh2A03.hpp"
#include "include/IO.hpp"
#include "include/Ricoh2C02.hpp"
#ifdef GTEST
#include "testModules/gtestModules.hpp"
#else
#include "SDL2/SDL.h"
#endif
#define FPS 6... | 29.047619 | 105 | 0.444918 | dczang53 |
2b3f1f01eb71b5ded9477f9416a4ea0a425380cb | 579 | hpp | C++ | include/TClosedBox.hpp | oldpocket/LoudSpeakerSystem | 451447d00d00259405f2dd33ab0aa8425cc4ab89 | [
"MIT"
] | null | null | null | include/TClosedBox.hpp | oldpocket/LoudSpeakerSystem | 451447d00d00259405f2dd33ab0aa8425cc4ab89 | [
"MIT"
] | null | null | null | include/TClosedBox.hpp | oldpocket/LoudSpeakerSystem | 451447d00d00259405f2dd33ab0aa8425cc4ab89 | [
"MIT"
] | null | null | null | /*
This Unit contains class types, declarations and definitions related with the
Closed Box Design calculations.
*/
#pragma once
#include <cmath>
#include "TBox.hpp"
class TClosedBox: public TBox {
public:
TClosedBox(TDriver driver_);
~TClosedBox();
virtual TBoxResponse<float, 20, 200> getBoxResp... | 20.678571 | 81 | 0.666667 | oldpocket |
2b403645925453f3a89220dd9fe93c4f08b38fb9 | 262 | cpp | C++ | CodeForces/Magnets.cpp | mysterio0801/CP | 68983c423a42f98d6e9bf5375bc3f936e980d631 | [
"MIT"
] | null | null | null | CodeForces/Magnets.cpp | mysterio0801/CP | 68983c423a42f98d6e9bf5375bc3f936e980d631 | [
"MIT"
] | null | null | null | CodeForces/Magnets.cpp | mysterio0801/CP | 68983c423a42f98d6e9bf5375bc3f936e980d631 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
vector<string> vec;
int count = 0;
vec.push_back("00");
for(int i = 1; i <= n; i++){
string s;
cin>>s;
if(s != vec[i-1])
count++;
vec.push_back(s);
}
cout<<count<<endl;
} | 14.555556 | 29 | 0.561069 | mysterio0801 |
2b471fb2e17827b938f5a521702b8d532b001da6 | 4,614 | cpp | C++ | NesSimulator/nessimulator.cpp | Embedfire/ebf_debian_qt_demo | 91cd3e9328d7df1e481d2fc12bd83165ad025a80 | [
"MIT"
] | 1 | 2020-06-19T00:58:32.000Z | 2020-06-19T00:58:32.000Z | NesSimulator/nessimulator.cpp | Embedfire/ebf_debian_qt_demo | 91cd3e9328d7df1e481d2fc12bd83165ad025a80 | [
"MIT"
] | null | null | null | NesSimulator/nessimulator.cpp | Embedfire/ebf_debian_qt_demo | 91cd3e9328d7df1e481d2fc12bd83165ad025a80 | [
"MIT"
] | null | null | null | /******************************************************************
Copyright (C) 2019 - All Rights Reserved by
文 件 名 : nessimulator.cpp ---
作 者 : Niyh(lynnhua)
论 坛 : http://www.firebbs.cn
编写日期 : 2019
说 明 :
历史纪录 :
<作者> <日期> <版本> <内容>
Niyh 2019 1.0.0 1 文件创建
******... | 25.776536 | 94 | 0.57629 | Embedfire |
2b4bd6bfd2f771bc9ff04accc47d40f286abae66 | 10,194 | cpp | C++ | soap/cmac-conversion/cmac_converter.cpp | OS-WASABI/CADG | b214edff82d4238e51569a42a6bdfab6806d768f | [
"BSD-3-Clause"
] | null | null | null | soap/cmac-conversion/cmac_converter.cpp | OS-WASABI/CADG | b214edff82d4238e51569a42a6bdfab6806d768f | [
"BSD-3-Clause"
] | 22 | 2018-10-26T17:30:24.000Z | 2019-04-15T23:38:18.000Z | soap/cmac-conversion/cmac_converter.cpp | OS-WASABI/CADG | b214edff82d4238e51569a42a6bdfab6806d768f | [
"BSD-3-Clause"
] | 1 | 2019-03-23T16:02:17.000Z | 2019-03-23T16:02:17.000Z | /// Converts any syntactically correct SOAP CAP document into a CMAC XML document.
/**
*
* Copyright 2018 Vaniya Agrawal, Ross Arcemont, Kristofer Hoadley,
* Shawn Hulce, Michael McCulley
*
* @file cmac_converter.cpp
* @authors Ross Arcemont
* @date January, 2019
*/
#include <iostream>
... | 50.97 | 115 | 0.716794 | OS-WASABI |
2b4c5f8bb872a9f732066a9dad757a5ae01b240a | 496 | cpp | C++ | problems/firstDuplicate.cpp | jaydulera/data-structure-and-algorithms | abc2d67871add6f314888a72215ff3a2da2dc6e1 | [
"Apache-2.0"
] | 53 | 2020-09-26T19:44:33.000Z | 2021-09-30T20:38:52.000Z | problems/firstDuplicate.cpp | jaydulera/data-structure-and-algorithms | abc2d67871add6f314888a72215ff3a2da2dc6e1 | [
"Apache-2.0"
] | 197 | 2020-08-25T18:13:56.000Z | 2021-06-19T07:26:19.000Z | problems/firstDuplicate.cpp | jaydulera/data-structure-and-algorithms | abc2d67871add6f314888a72215ff3a2da2dc6e1 | [
"Apache-2.0"
] | 204 | 2020-08-24T09:21:02.000Z | 2022-02-13T06:13:42.000Z | #include<bits/stdc++.h>
using namespace std;
int findFirstDuplicate(int arr[])
{
int sizeOfArray=sizeof(arr)/sizeof(arr[0]);
unordered_set<int> store;
for(int i=0;i<sizeOfArray;i++)
{
if(store.find(arr[i])!= store.end())
{
return arr[i];
}
store.insert(arr[i]);
}
... | 16.533333 | 47 | 0.528226 | jaydulera |
2b5237c255a5de724fc470e2350d94314a4dba8d | 7,907 | hh | C++ | unisim/component/cxx/processor/arm/extregbank.hh | binsec/unisim_archisec | 6556a45c180b6769dc1850ff3f695707d8835e90 | [
"BSD-3-Clause"
] | null | null | null | unisim/component/cxx/processor/arm/extregbank.hh | binsec/unisim_archisec | 6556a45c180b6769dc1850ff3f695707d8835e90 | [
"BSD-3-Clause"
] | null | null | null | unisim/component/cxx/processor/arm/extregbank.hh | binsec/unisim_archisec | 6556a45c180b6769dc1850ff3f695707d8835e90 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2007-2016,
* Commissariat a l'Energie Atomique (CEA)
* 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 co... | 36.606481 | 143 | 0.626786 | binsec |
2b59007c7794c7efdec9811e67c216d3573fed42 | 24,468 | cpp | C++ | magic3d/src/script/script_magic3d.cpp | magic-tech/Magic3D | a626a2302c8be9349cf0371077fb9f67821dfae3 | [
"Zlib"
] | 4 | 2016-03-25T23:35:08.000Z | 2019-05-15T18:56:07.000Z | magic3d/src/script/script_magic3d.cpp | magic-tech/Magic3D | a626a2302c8be9349cf0371077fb9f67821dfae3 | [
"Zlib"
] | null | null | null | magic3d/src/script/script_magic3d.cpp | magic-tech/Magic3D | a626a2302c8be9349cf0371077fb9f67821dfae3 | [
"Zlib"
] | 2 | 2016-03-17T09:01:12.000Z | 2020-01-18T13:04:05.000Z | /******************************************************************************
@Copyright Copyright (C) 2008 - 2016 by MagicTech.
@Platform ANSI compatible
******************************************************************************/
/*
Magic3D Engine
Copyright (c) 2008-2016
Thiago C. Moraes
http:... | 34.755682 | 201 | 0.681257 | magic-tech |
2b59be3d91eaccae8af04d68df0de189c30c8365 | 378 | hpp | C++ | nbv_planner/include/nbv_planner/octomap_reset_node.hpp | cbw36/yak | 8d7c7048f366afcf1c4d9e55db187c6c66410a47 | [
"MIT"
] | 26 | 2017-11-01T20:25:54.000Z | 2020-10-19T17:39:18.000Z | nbv_planner/include/nbv_planner/octomap_reset_node.hpp | cbw36/yak | 8d7c7048f366afcf1c4d9e55db187c6c66410a47 | [
"MIT"
] | 16 | 2017-07-05T20:28:20.000Z | 2019-06-07T22:21:01.000Z | nbv_planner/include/nbv_planner/octomap_reset_node.hpp | cbw36/yak | 8d7c7048f366afcf1c4d9e55db187c6c66410a47 | [
"MIT"
] | 10 | 2017-06-27T16:05:35.000Z | 2021-04-06T07:55:49.000Z | #include <ros/ros.h>
#include <visualization_msgs/InteractiveMarkerFeedback.h>
#include <std_srvs/Empty.h>
class OctomapResetter {
public:
OctomapResetter(ros::NodeHandle& nh);
void UpdateCallback(const visualization_msgs::InteractiveMarkerFeedbackConstPtr& feedback);
ros::Subscriber volume_update_subscriber_;... | 22.235294 | 93 | 0.806878 | cbw36 |
2b615bb170e49a765bcb1aadccf75d3315e01fee | 1,206 | hpp | C++ | libraries/protocol/include/deip/protocol/operations/create_research_operation.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 1 | 2021-08-16T12:44:43.000Z | 2021-08-16T12:44:43.000Z | libraries/protocol/include/deip/protocol/operations/create_research_operation.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | null | null | null | libraries/protocol/include/deip/protocol/operations/create_research_operation.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 2 | 2021-08-16T12:44:46.000Z | 2021-12-31T17:09:45.000Z | #pragma once
#include <deip/protocol/base.hpp>
#include <deip/protocol/block_header.hpp>
#include <deip/protocol/version.hpp>
#include <fc/optional.hpp>
namespace deip {
namespace protocol {
using deip::protocol::percent;
using deip::protocol::external_id_type;
struct create_research_operation : public entity_operat... | 24.12 | 78 | 0.737977 | DEIPworld |
2b68e4718afc13a2fbd75b28d710b0585614149c | 4,541 | cpp | C++ | shared/test/unit_test/gen8/test_device_caps_gen8.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/test/unit_test/gen8/test_device_caps_gen8.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | shared/test/unit_test/gen8/test_device_caps_gen8.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/hw_helper.h"
#include "shared/test/common/fixtures/device_fixture.h"
#include "shared/test/common/test_macros/test.h"
using namespace NEO;
using Gen8DeviceCaps = Test<DeviceFixture>;
GEN8TEST_F(... | 46.814433 | 133 | 0.834398 | mattcarter2017 |
2b72c99827866390bf6838cbc4e52529c4efbe6d | 3,667 | cpp | C++ | src/av6/oop_av63.cpp | finki-mk/OOP | 6b75df2dfe7911763b67788c0b4063807743866a | [
"MIT"
] | 4 | 2017-09-15T09:40:30.000Z | 2022-02-26T07:38:31.000Z | src/av6/oop_av63.cpp | finki-mk/OOP | 6b75df2dfe7911763b67788c0b4063807743866a | [
"MIT"
] | 2 | 2017-03-01T20:53:50.000Z | 2017-04-15T20:27:15.000Z | src/av6/oop_av63.cpp | finki-mk/OOP | 6b75df2dfe7911763b67788c0b4063807743866a | [
"MIT"
] | 6 | 2017-02-17T23:49:07.000Z | 2021-02-23T12:43:38.000Z | #include <iostream>
#include <string.h>
#define MAX 100
using namespace std;
class Ucenik
{
private:
char *ime;
float prosek;
int godina;
public:
Ucenik (const char* ii = "", float pp = 0, int gg = 0)
{
ime = new char[strlen(ii) + 1];
strcpy (ime, ii);
prosek = pp;
go... | 21.958084 | 97 | 0.481865 | finki-mk |
2b7a4527cd98274048b08f095580ece6860722d1 | 960 | cpp | C++ | old_content/Templates/Flows/Stoer-Wagner.cpp | codelegend/Algorithms | 7e1e3de99702ad3d5fa62d65d0afdb1d9de77394 | [
"MIT"
] | 5 | 2020-06-04T19:16:36.000Z | 2021-11-18T16:34:30.000Z | old_content/Templates/Flows/Stoer-Wagner.cpp | codelegend/Algorithms | 7e1e3de99702ad3d5fa62d65d0afdb1d9de77394 | [
"MIT"
] | 1 | 2020-09-29T09:10:40.000Z | 2020-09-29T09:10:40.000Z | old_content/Templates/Flows/Stoer-Wagner.cpp | codelegend/Algorithms | 7e1e3de99702ad3d5fa62d65d0afdb1d9de77394 | [
"MIT"
] | 1 | 2020-10-18T20:16:41.000Z | 2020-10-18T20:16:41.000Z | LL adj[N][N]; // input, ONLY SET THIS
LL wt[N]; bool pres[N], A[N]; // temp-vars(dont-touch)
pair<LL, VI> mincut(int n) { // no.of.verts
pair<LL, VI> res(INF, VI()); vector<VI> comp(n);
for (int i = 0; i < n; i++) comp[i].push_back(i);
fill(pres, pres + N, true);
for (int ph = 0; ph < n - 1; ph++) {
memset(... | 36.923077 | 66 | 0.465625 | codelegend |
2b85104075d65c007ed73097fe83a14b16bedeca | 3,727 | cpp | C++ | src/components/mmu/mmu.cpp | elmerucr/E64 | 1f7d57fadc6804948aa832d0f5f6800a8631f622 | [
"MIT"
] | null | null | null | src/components/mmu/mmu.cpp | elmerucr/E64 | 1f7d57fadc6804948aa832d0f5f6800a8631f622 | [
"MIT"
] | null | null | null | src/components/mmu/mmu.cpp | elmerucr/E64 | 1f7d57fadc6804948aa832d0f5f6800a8631f622 | [
"MIT"
] | null | null | null | /*
* mmu.cpp
* E64
*
* Copyright © 2019-2022 elmerucr. All rights reserved.
*/
#include "mmu.hpp"
#include "common.hpp"
#include "rom.hpp"
E64::mmu_ic::mmu_ic()
{
ram = new uint8_t[RAM_SIZE * sizeof(uint8_t)];
reset();
}
E64::mmu_ic::~mmu_ic()
{
delete ram;
ram = nullptr;
}
void E64::mmu_ic::reset()
{
// ... | 24.846667 | 74 | 0.636437 | elmerucr |
2b9579a99136705b757c53192829aa804c9f59b9 | 66,056 | cpp | C++ | devel/miniC/minic/src/ccodebase.cpp | svenschmidt75/compiler | df3185312db939a04876d652e809f7c23f71a188 | [
"MIT"
] | null | null | null | devel/miniC/minic/src/ccodebase.cpp | svenschmidt75/compiler | df3185312db939a04876d652e809f7c23f71a188 | [
"MIT"
] | null | null | null | devel/miniC/minic/src/ccodebase.cpp | svenschmidt75/compiler | df3185312db939a04876d652e809f7c23f71a188 | [
"MIT"
] | null | null | null | /***************************************************************************
* Copyright (C) 2005 by Sven Schmidt *
* s.schmidt@lboro.ac.uk *
* *
* This program is free software; you can redistribute it and/or modify *
* it under ... | 23.532597 | 100 | 0.627528 | svenschmidt75 |
2ba42ed851b19c360c6bef54a5af00fb4bc9788a | 8,804 | cpp | C++ | test/math/math_test.cpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 163 | 2015-03-16T08:42:32.000Z | 2022-01-11T21:40:22.000Z | test/math/math_test.cpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 17 | 2015-04-12T20:57:50.000Z | 2020-10-10T10:51:45.000Z | test/math/math_test.cpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 21 | 2015-04-12T20:45:11.000Z | 2022-01-14T20:50:16.000Z | // Copyright mogemimi. Distributed under the MIT license.
#include "pomdog/math/degree.hpp"
#include "pomdog/math/math.hpp"
#include "pomdog/math/radian.hpp"
#include <catch_amalgamated.hpp>
namespace math = pomdog::math;
using pomdog::Degree;
using pomdog::Radian;
TEST_CASE("MathHelper", "[MathHelper]")
{
SECTI... | 53.357576 | 98 | 0.582235 | mogemimi |
2badcec43f0678aaf67e823200155df19f01511f | 2,935 | hpp | C++ | rconthread.hpp | patrickjane/arkclusterchat | f05ac88188e48e611dec8d731db728175e0d4201 | [
"MIT"
] | 4 | 2017-08-11T09:06:31.000Z | 2020-08-25T16:53:21.000Z | rconthread.hpp | patrickjane/arkclusterchat | f05ac88188e48e611dec8d731db728175e0d4201 | [
"MIT"
] | 2 | 2018-01-26T22:13:23.000Z | 2018-01-28T17:11:01.000Z | rconthread.hpp | patrickjane/arkclusterchat | f05ac88188e48e611dec8d731db728175e0d4201 | [
"MIT"
] | 1 | 2019-11-26T20:02:40.000Z | 2019-11-26T20:02:40.000Z | //***************************************************************************
// File rconthread.hpp
// Date 23.07.17 - #1
// Copyright (c) 2017-2017 s710 (s710 (at) posteo (dot) de). All rights reserved.
// --------------------------------------------------------------------------
// Ark ClusterChat / RCON thread
//**... | 22.234848 | 108 | 0.425894 | patrickjane |
ad9327b96a26520ac33b7ec5c7890d2430908100 | 2,549 | cpp | C++ | code/aoce_vulkan_extra/layer/VkLowPassLayer.cpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 71 | 2020-10-15T03:13:50.000Z | 2022-03-30T02:04:28.000Z | code/aoce_vulkan_extra/layer/VkLowPassLayer.cpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 9 | 2021-02-20T10:30:10.000Z | 2022-03-04T07:59:58.000Z | code/aoce_vulkan_extra/layer/VkLowPassLayer.cpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 19 | 2021-01-01T12:03:02.000Z | 2022-03-21T07:59:59.000Z | #include "VkLowPassLayer.hpp"
#include "aoce_vulkan/layer/VkPipeGraph.hpp"
#include "aoce_vulkan/vulkan/VulkanManager.hpp"
namespace aoce {
namespace vulkan {
namespace layer {
VkSaveFrameLayer::VkSaveFrameLayer(/* args */) {
// 是否自己使用ComputeShader复制
bUserPipe = true;
// 告诉外面,不需要自动连接别层输入
bInput = tru... | 28.322222 | 80 | 0.666928 | msqljj |
ad9e454749b63ebb0939c58da3f8fc7866f7b236 | 1,216 | hpp | C++ | include/threepp/objects/Points.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | include/threepp/objects/Points.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | include/threepp/objects/Points.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | // https://github.com/mrdoob/three.js/blob/r129/src/objects/Points.js
#ifndef THREEPP_POINTS_HPP
#define THREEPP_POINTS_HPP
#include "threepp/core/BufferGeometry.hpp"
#include "threepp/core/Object3D.hpp"
#include "threepp/materials/PointsMaterial.hpp"
namespace threepp {
class Points : public Object3D {
pu... | 27.022222 | 97 | 0.657895 | maidamai0 |
ada2aa5ff834075ae22b491f1394209a9afeb361 | 4,576 | cpp | C++ | moos-ivp-local/src/lib_anrp_util/NMEAMessage.cpp | ucsb-coast-lab/rcProto-MOOS-master1 | e886b11cae14bc6cff860621b1c2c6480033e077 | [
"MIT"
] | 9 | 2016-02-25T03:25:53.000Z | 2022-03-27T09:47:50.000Z | moos-ivp-local/src/lib_anrp_util/NMEAMessage.cpp | ucsb-coast-lab/rcProto-MOOS-master1 | e886b11cae14bc6cff860621b1c2c6480033e077 | [
"MIT"
] | null | null | null | moos-ivp-local/src/lib_anrp_util/NMEAMessage.cpp | ucsb-coast-lab/rcProto-MOOS-master1 | e886b11cae14bc6cff860621b1c2c6480033e077 | [
"MIT"
] | 4 | 2016-06-02T17:42:42.000Z | 2021-12-15T09:37:55.000Z | /*************************************************************************
* NMEAMessage.cpp -
*************************************************************************
* (c) 2004 Andrew Patrikalakis <anrp@cml3.mit.edu> *
* *
* ... | 19.226891 | 74 | 0.52229 | ucsb-coast-lab |
ada50f60a87313240d2748040514cd6b22f31ee0 | 1,007 | cpp | C++ | src/render/Drawable/UidDrawableModificator.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | src/render/Drawable/UidDrawableModificator.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | src/render/Drawable/UidDrawableModificator.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | #include <mtt/render/Drawable/UidDrawableModificator.h>
#include <mtt/render/DrawPlan/DrawPlanBuildInfo.h>
using namespace mtt;
void UidDrawableModificator::setUid(UID newValue) noexcept
{
_uid = newValue;
}
void UidDrawableModificator::draw(DrawPlanBuildInfo& buildInfo,
DrawableM... | 28.771429 | 79 | 0.616683 | AluminiumRat |
ada58fce04c811acd874e121149921c954de5608 | 2,990 | cpp | C++ | EXAMPLES/MFC/UTILITY/Guidegen/guidgen.cpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | 1 | 2022-01-13T01:03:55.000Z | 2022-01-13T01:03:55.000Z | EXAMPLES/MFC/UTILITY/Guidegen/guidgen.cpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | EXAMPLES/MFC/UTILITY/Guidegen/guidgen.cpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | // guidgen.cpp : Defines the class behaviors for the application.
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1995 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference... | 27.181818 | 78 | 0.61505 | earthsiege2 |
adb10b8531bea767b9cdb8873759a2500db7243c | 2,932 | cpp | C++ | EU4toV2/Source/EU4World/EU4Version.cpp | beerhall/paradoxGameConverters | 96b6f91ebc413795afd63f40f6ecf4ca83fa9460 | [
"MIT"
] | 114 | 2015-06-07T20:27:45.000Z | 2020-08-16T05:05:56.000Z | EU4toV2/Source/EU4World/EU4Version.cpp | iamdafu/paradoxGameConverters | 674364a22917155642ade923e5dfbe38a5fa9610 | [
"MIT"
] | 553 | 2015-07-20T23:58:26.000Z | 2019-06-13T21:45:56.000Z | EU4toV2/Source/EU4World/EU4Version.cpp | iamdafu/paradoxGameConverters | 674364a22917155642ade923e5dfbe38a5fa9610 | [
"MIT"
] | 106 | 2015-07-27T00:21:16.000Z | 2020-06-10T10:13:13.000Z | /*Copyright (c) 2017 The Paradox Game Converters Project
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... | 26.899083 | 107 | 0.687244 | beerhall |
adb14aeb2e4f5ebb2287d7f219e64a8e9c4db383 | 3,651 | hpp | C++ | include/MOE/MahiOpenExo/JointHardware.hpp | mahilab/MOE | e35e855a8b36fe8a619eada276d95739dfb30ca8 | [
"MIT"
] | null | null | null | include/MOE/MahiOpenExo/JointHardware.hpp | mahilab/MOE | e35e855a8b36fe8a619eada276d95739dfb30ca8 | [
"MIT"
] | null | null | null | include/MOE/MahiOpenExo/JointHardware.hpp | mahilab/MOE | e35e855a8b36fe8a619eada276d95739dfb30ca8 | [
"MIT"
] | null | null | null | #pragma once
#include <MOE/MahiOpenExo/Joint.hpp>
#include <MOE/MahiOpenExo/MoeConfigurationHardware.hpp>
#include <Mahi/Daq/Handle.hpp>
#include <Mahi/Util/Math/Butterworth.hpp>
namespace moe {
//==============================================================================
// CLASS DECLARATION
//===================... | 46.21519 | 161 | 0.645303 | mahilab |
adb71fcdcd91caa885e3e9d2e3fe28c34053d608 | 880 | hpp | C++ | src/ui/widgets/graphics_items/unallocated_block_graphics_item.hpp | svendcsvendsen/judoassistant | 453211bff86d940c2b2de6f9eea2aabcdab830fa | [
"MIT"
] | 3 | 2019-04-26T17:48:24.000Z | 2021-11-08T20:21:51.000Z | src/ui/widgets/graphics_items/unallocated_block_graphics_item.hpp | svendcsvendsen/judoassistant | 453211bff86d940c2b2de6f9eea2aabcdab830fa | [
"MIT"
] | 90 | 2019-04-25T17:23:10.000Z | 2022-02-12T19:49:55.000Z | src/ui/widgets/graphics_items/unallocated_block_graphics_item.hpp | judoassistant/judoassistant | 3b200d3e35d9aff16ba224e6071ee9d888a5a03c | [
"MIT"
] | null | null | null | #pragma once
#include <QGraphicsItem>
#include "core/stores/match_store.hpp"
#include "core/rulesets/ruleset.hpp"
#include "core/draw_systems/draw_system.hpp"
class CategoryStore;
class UnallocatedBlockGraphicsItem : public QGraphicsItem {
public:
static constexpr int WIDTH = 200;
static constexpr int HEIGH... | 27.5 | 100 | 0.778409 | svendcsvendsen |
adc5efdeb5dc5502affd2d3f539711cd3abf2e8a | 2,966 | hpp | C++ | include/wf700tk/detail/message_base.hpp | VJSchneid/wf-700tk | d94b18437a90b0b081c71dc3c7eac3c0aed494a5 | [
"BSL-1.0"
] | null | null | null | include/wf700tk/detail/message_base.hpp | VJSchneid/wf-700tk | d94b18437a90b0b081c71dc3c7eac3c0aed494a5 | [
"BSL-1.0"
] | null | null | null | include/wf700tk/detail/message_base.hpp | VJSchneid/wf-700tk | d94b18437a90b0b081c71dc3c7eac3c0aed494a5 | [
"BSL-1.0"
] | null | null | null | #ifndef WF700TK_DETAIL_MESSAGE_BASE_HPP
#define WF700TK_DETAIL_MESSAGE_BASE_HPP
#include <array>
namespace wf700tk::detail {
struct message_base {
message_base(unsigned char length, bool is_request);
constexpr const static unsigned char start_byte_ = 0x02;
constexpr const static unsigned char end_byte_ ... | 26.017544 | 77 | 0.667903 | VJSchneid |
adcafd7fc9fbfe74c79079c638e60482ac060482 | 2,007 | cpp | C++ | Utility/Context/ActivationFunctionContext.cpp | devmichalek/Autonomous-Vehicles-Simulator | 7edc16e5b03392f407b800cbc10922f158ebfb59 | [
"MIT"
] | null | null | null | Utility/Context/ActivationFunctionContext.cpp | devmichalek/Autonomous-Vehicles-Simulator | 7edc16e5b03392f407b800cbc10922f158ebfb59 | [
"MIT"
] | null | null | null | Utility/Context/ActivationFunctionContext.cpp | devmichalek/Autonomous-Vehicles-Simulator | 7edc16e5b03392f407b800cbc10922f158ebfb59 | [
"MIT"
] | null | null | null | #include "ActivationFunctionContext.hpp"
#include "CoreLogger.hpp"
ActivationFunction ActivationFunctionContext::m_activationFunctionTable[ACTIVATION_FUNCTIONS_COUNT];
const bool ActivationFunctionContext::m_initialized = false;
void ActivationFunctionContext::Initialize()
{
if (!m_initialized)
{
m_activationFunc... | 38.596154 | 130 | 0.788241 | devmichalek |
add59680e33fcec8675fe6895e0c7f91da55b7cb | 1,839 | hpp | C++ | src/algorithms/data_structures/hashmap/group_shifted_strings.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/algorithms/data_structures/hashmap/group_shifted_strings.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/algorithms/data_structures/hashmap/group_shifted_strings.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef CPPNOTESMAIN_GROUP_SHIFTED_STRINGS_HPP
#define CPPNOTESMAIN_GROUP_SHIFTED_STRINGS_HPP
/*
https://leetcode.com/problems/group-shifted-strings/
Given a string, we can "shift" each of its letter to its successive letter, for example:
"abc" -> "bcd". We can keep "shifting" which forms the sequence:
"abc" -> "bcd"... | 27.044118 | 94 | 0.540511 | iamantony |
add74ec39cf147f3afbcfaecb3b1fcc0dddf1cb2 | 658 | hpp | C++ | src/comppackdb.hpp | BurAndBY/pkgj | ba4ecba588b2204c150b7780ceeda123545c408f | [
"BSD-2-Clause"
] | 904 | 2018-03-09T05:20:11.000Z | 2022-03-26T02:37:33.000Z | src/comppackdb.hpp | BurAndBY/pkgj | ba4ecba588b2204c150b7780ceeda123545c408f | [
"BSD-2-Clause"
] | 383 | 2018-03-11T02:47:37.000Z | 2022-03-17T11:51:32.000Z | src/comppackdb.hpp | BurAndBY/pkgj | ba4ecba588b2204c150b7780ceeda123545c408f | [
"BSD-2-Clause"
] | 132 | 2018-03-12T22:35:16.000Z | 2022-03-03T17:06:55.000Z | #pragma once
#include "http.hpp"
#include "sqlite.hpp"
#include <array>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include <cstdint>
class CompPackDatabase
{
public:
struct Item
{
std::string path;
std::string app_version;
};
CompPackDatabase(const st... | 16.45 | 59 | 0.664134 | BurAndBY |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.