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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e60e77b8f67928b0abb7fa41df04a7ff6272e1b7 | 387 | cpp | C++ | 11677 Alarm Clock.cpp | zihadboss/UVA-Solutions | 020fdcb09da79dc0a0411b04026ce3617c09cd27 | [
"Apache-2.0"
] | 86 | 2016-01-20T11:36:50.000Z | 2022-03-06T19:43:14.000Z | 11677 Alarm Clock.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | null | null | null | 11677 Alarm Clock.cpp | Mehedishihab/UVA-Solutions | 474fe3d9d9ba574b97fd40ca5abb22ada95654a1 | [
"Apache-2.0"
] | 113 | 2015-12-04T06:40:57.000Z | 2022-02-11T02:14:28.000Z | #include <cstdio>
using namespace std;
// All times are in minutes
const int FULL_DAY = 60 * 24;
int main()
{
int h1, m1, h2, m2;
while (scanf("%d%d%d%d", &h1, &m1, &h2, &m2), h1 + m1 + h2 + m2)
{
int t1 = h1 * 60 + m1;
int t2 = h2 * 60 + m2;
if (t1 > t2)
... | 16.826087 | 68 | 0.434109 | zihadboss |
e60f259dccccb59752d84e21671494f954254757 | 22,953 | cpp | C++ | irk.cpp | LucasPayne/rehuel | 431f7eb7dd3b9f1381cd2b266383eda529ff53fe | [
"Apache-2.0"
] | 7 | 2019-07-20T07:41:28.000Z | 2021-06-04T02:29:27.000Z | irk.cpp | LucasPayne/rehuel | 431f7eb7dd3b9f1381cd2b266383eda529ff53fe | [
"Apache-2.0"
] | null | null | null | irk.cpp | LucasPayne/rehuel | 431f7eb7dd3b9f1381cd2b266383eda529ff53fe | [
"Apache-2.0"
] | 3 | 2019-08-27T10:20:51.000Z | 2021-11-02T06:43:13.000Z | #include <iostream>
#include <string>
#include "irk.hpp"
namespace irk {
/**
\brief expands the coefficient lists.
This is needed to automatically calculate the interpolating coefficients.
This is like operator expansion of operator( c1, c2 )
if c1 = { a1 + a2 } and c2 = { b1 + b2 }
and we encode... | 28.619701 | 82 | 0.572605 | LucasPayne |
e6117b0f91c3d0138e54f0fafa1802ae26a29ab9 | 1,067 | cpp | C++ | share/ProRotoQml/Utils/plugin.cpp | protoblock/protoblock | 410a4ceb53f997c5970addc13c2bedc7b901ec23 | [
"Apache-2.0"
] | 12 | 2018-04-30T20:41:44.000Z | 2021-11-22T10:48:26.000Z | share/ProRotoQml/Utils/plugin.cpp | jaybny/protoblock | 5edc83436b9e2dcec79d66d1d6fb9ace08f27339 | [
"Apache-2.0"
] | 14 | 2018-07-30T17:56:27.000Z | 2021-09-02T06:03:13.000Z | share/ProRotoQml/Utils/plugin.cpp | jaybny/protoblock | 5edc83436b9e2dcec79d66d1d6fb9ace08f27339 | [
"Apache-2.0"
] | 3 | 2019-03-25T06:05:22.000Z | 2021-11-22T10:49:27.000Z | #include "plugin.h"
#include "utils.h"
#include "plugininisetter.h"
//#include "qqmlprocess.h"
#include "passwordstrength.h"
#include "device.h"
#include "units.h"
#include "qqmlwebsockets.h"
#include <qqml.h>
void ProRotoQmlUtilsPlugin::registerTypes(const char *uri)
{
// @uri Protoblock.Utils
// We need to ... | 28.837838 | 127 | 0.722587 | protoblock |
e61d49473a681afd9e8d74d4be90031426237332 | 6,302 | hpp | C++ | carbon/lambda/actor.hpp | keveman/carbon | 47eff835fe4592dcef6b8506baf6651d2a81bd0b | [
"Apache-2.0"
] | 2 | 2015-12-26T11:26:58.000Z | 2016-09-16T23:49:01.000Z | carbon/lambda/actor.hpp | keveman/carbon | 47eff835fe4592dcef6b8506baf6651d2a81bd0b | [
"Apache-2.0"
] | null | null | null | carbon/lambda/actor.hpp | keveman/carbon | 47eff835fe4592dcef6b8506baf6651d2a81bd0b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2012 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 35.404494 | 139 | 0.629324 | keveman |
e62a458b18adf0aecff95f62bd9ee5b5ed6fade1 | 7,710 | cc | C++ | sandboxed_api/sandbox2/unwind/unwind.cc | oshogbo/sandboxed-api | 8e82b900f4d873219b3abfa2fd06ecbd416edefd | [
"Apache-2.0"
] | null | null | null | sandboxed_api/sandbox2/unwind/unwind.cc | oshogbo/sandboxed-api | 8e82b900f4d873219b3abfa2fd06ecbd416edefd | [
"Apache-2.0"
] | null | null | null | sandboxed_api/sandbox2/unwind/unwind.cc | oshogbo/sandboxed-api | 8e82b900f4d873219b3abfa2fd06ecbd416edefd | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 32.948718 | 80 | 0.663165 | oshogbo |
e62d839a819411d40caea32af3f3e9beabb637ef | 2,838 | hpp | C++ | Lab1/src/Matrix/matrix.hpp | ChernichenkoStephan/ProductionPractices | c3bd544d0cac56a801923e705a685fd2f9fcf247 | [
"MIT"
] | null | null | null | Lab1/src/Matrix/matrix.hpp | ChernichenkoStephan/ProductionPractices | c3bd544d0cac56a801923e705a685fd2f9fcf247 | [
"MIT"
] | null | null | null | Lab1/src/Matrix/matrix.hpp | ChernichenkoStephan/ProductionPractices | c3bd544d0cac56a801923e705a685fd2f9fcf247 | [
"MIT"
] | null | null | null | #pragma once
struct Matrix {
int** value;
int n_row;
int n_col;
};
/**
* Matrix multiplecation function
*
* Matrix multiplecation using Stroossen method
*
* @param l_mtx is first matrix with free size
* @param r_mtx is second matrix with free size
*/
Matrix* Matrix_multiply(Matrix l_mtx, Matrix r_mtx);
... | 24.050847 | 100 | 0.731149 | ChernichenkoStephan |
e631cffa2b82cbdfc141e2ee1617d9cd6b436bc5 | 778 | cpp | C++ | problems/problem002/main.cpp | Davi-Argemiro/Algorithms-and-Data-Structures | 4cbf083fbe00da793c1147c4b9e3493d96ac50a1 | [
"MIT"
] | 1 | 2022-03-01T15:47:08.000Z | 2022-03-01T15:47:08.000Z | problems/problem002/main.cpp | Davi-Argemiro/Algorithms-and-Data-Structures | 4cbf083fbe00da793c1147c4b9e3493d96ac50a1 | [
"MIT"
] | 1 | 2022-03-21T20:01:08.000Z | 2022-03-21T20:01:08.000Z | problems/problem002/main.cpp | Davi-Argemiro/Algorithms-and-Data-Structures | 4cbf083fbe00da793c1147c4b9e3493d96ac50a1 | [
"MIT"
] | 1 | 2022-03-21T17:53:34.000Z | 2022-03-21T17:53:34.000Z | #include <iostream>
using namespace std;
int main() {
float l1, l2, l3;
cout << "Digite a medida do primeiro segmento (em cm): ";
cin >> l1;
cout << "Digite a medida do segundo segmento (em cm): ";
cin >> l2;
cout << "Digite a medida do terceito segmento (em cm): ";
cin >> l3;
if (l1 < l2+l3 && l2 <... | 24.3125 | 82 | 0.578406 | Davi-Argemiro |
e63567033d88eb7ef255ff3ea9afe8c6f0a5f96a | 20,708 | cpp | C++ | testing/batch_triangular/test_Xgemm_batch.cpp | ecrc/kblas-gpu | fc8ad5ad471161d80746b462ecdf0d440923b46f | [
"BSD-3-Clause"
] | 41 | 2016-08-28T08:32:31.000Z | 2022-01-24T12:33:28.000Z | testing/batch_triangular/test_Xgemm_batch.cpp | ecrc/kblas-gpu | fc8ad5ad471161d80746b462ecdf0d440923b46f | [
"BSD-3-Clause"
] | 13 | 2016-10-04T09:46:43.000Z | 2021-05-18T21:43:51.000Z | testing/batch_triangular/test_Xgemm_batch.cpp | ecrc/kblas-gpu | fc8ad5ad471161d80746b462ecdf0d440923b46f | [
"BSD-3-Clause"
] | 10 | 2016-09-06T09:06:01.000Z | 2021-09-03T08:33:39.000Z | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file testing/batch_triangular/test_Xgemm_batch.cpp
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* K... | 35.765112 | 178 | 0.492805 | ecrc |
e641fe38445b68659a7ea96fcf6987da5a5593c2 | 585 | cpp | C++ | solved/f-h/harmonic-number-ii/harmonic.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/f-h/harmonic-number-ii/harmonic.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/f-h/harmonic-number-ii/harmonic.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <algorithm>
#include <cstdio>
using namespace std;
typedef long long i64;
i64 n;
i64 solve()
{
i64 ans = 0;
i64 pre = n;
i64 hi = n;
i64 lo = 1;
while (lo <= hi) {
i64 q = n / lo;
hi = q;
i64 range = pre - hi;
ans += range * (lo - 1);
if (l... | 11.470588 | 52 | 0.418803 | abuasifkhan |
e64f742dda172c5a7783e96c49191460addfe508 | 12,938 | cpp | C++ | src/bump/Log.cpp | sourada/bump | a4ca3f3073e3f203fe0e6c9688726cd746513662 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/bump/Log.cpp | sourada/bump | a4ca3f3073e3f203fe0e6c9688726cd746513662 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2015-05-04T01:09:18.000Z | 2021-06-02T18:27:12.000Z | src/bump/Log.cpp | sourada/bump | a4ca3f3073e3f203fe0e6c9688726cd746513662 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | //
// Log.cpp
// Bump
//
// Created by Christian Noon on 12/3/12.
// Copyright (c) 2012 Christian Noon. All rights reserved.
//
// C++ headers
#include <fstream>
// Boost headers
#include <boost/date_time/posix_time/posix_time.hpp>
// Bump headers
#include <bump/Environment.h>
#include <bump/Log.h>
namespace bump {... | 27.12369 | 100 | 0.698717 | sourada |
e652c3e374a533b4248d376cab08c7caed792ea9 | 417 | cpp | C++ | Homeworks/7_SimulationTaichi/myproject/src/App/poly.cpp | SqrtiZhang/CG | 462415eea0af981797172281a023066ff557a33a | [
"MIT"
] | 5 | 2021-06-02T02:41:48.000Z | 2022-02-09T09:56:10.000Z | Homeworks/7_SimulationTaichi/myproject/src/App/poly.cpp | SqrtiZhang/CG | 462415eea0af981797172281a023066ff557a33a | [
"MIT"
] | null | null | null | Homeworks/7_SimulationTaichi/myproject/src/App/poly.cpp | SqrtiZhang/CG | 462415eea0af981797172281a023066ff557a33a | [
"MIT"
] | 1 | 2022-01-06T11:22:14.000Z | 2022-01-06T11:22:14.000Z | #include "Poly.h"
Poly::Poly()
{
}
Poly::~Poly()
{
}
void Poly::Draw(QPainter& painter)
{
QPolygon polygon(points_.size());
for(int i = 0; i < points_.size(); ++i)
{
polygon.setPoint(i, *points_[i]);
}
painter.setPen(QPen(color,width));
painter.drawPolygon(polygon);
}
void Poly::Pu... | 12.264706 | 43 | 0.585132 | SqrtiZhang |
e65b7dbfcd9e4fdccaf7ed385755a92ecf8ed5fb | 10,627 | cxx | C++ | src/main/algorithms/coupledcluster/CcsdReference.cxx | cc4s/cc4s | bff205f8fc98f29d4b9ff8f8b6faffbda50a8555 | [
"Apache-2.0"
] | null | null | null | src/main/algorithms/coupledcluster/CcsdReference.cxx | cc4s/cc4s | bff205f8fc98f29d4b9ff8f8b6faffbda50a8555 | [
"Apache-2.0"
] | null | null | null | src/main/algorithms/coupledcluster/CcsdReference.cxx | cc4s/cc4s | bff205f8fc98f29d4b9ff8f8b6faffbda50a8555 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2021 cc4s.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 42.850806 | 86 | 0.492895 | cc4s |
e668001450aad6e9e745d610df8ec79611192f57 | 6,858 | cpp | C++ | src/objects/Mesh.cpp | MrtnNmck/Pokemon-3D | 50451f91999fe9168e8f520748e39b7e9099624a | [
"Apache-2.0"
] | 4 | 2017-08-25T10:55:44.000Z | 2018-05-30T06:39:23.000Z | src/objects/Mesh.cpp | MrtnNmck/Pokemon-3D | 50451f91999fe9168e8f520748e39b7e9099624a | [
"Apache-2.0"
] | 1 | 2021-09-14T10:52:03.000Z | 2021-09-14T10:52:03.000Z | src/objects/Mesh.cpp | MrtnNmck/Pokemon-3D | 50451f91999fe9168e8f520748e39b7e9099624a | [
"Apache-2.0"
] | null | null | null | #include <src/loaders/tiny_obj_loader.h>
#include <loaders/tiny_obj_loader.h>
#include "src/objects/Mesh.h"
#include "Scene.hpp"
Mesh::Mesh(const std::string &image_file) {
this->texturedModel = TexturedModelPtr(new TexturedModel());
this->texturedModel->rawModel = RawModelPtr(new RawModel());
this->initT... | 33.291262 | 145 | 0.673957 | MrtnNmck |
e6734d0cad2c17942bdec2b8893b2cf61ff717b5 | 1,665 | cpp | C++ | mechanics/src/gui/Groupbox.cpp | robindittmar/mechanics | ea62f750d3cd448cbd708dee972d5a5b9a1464a0 | [
"MIT"
] | null | null | null | mechanics/src/gui/Groupbox.cpp | robindittmar/mechanics | ea62f750d3cd448cbd708dee972d5a5b9a1464a0 | [
"MIT"
] | null | null | null | mechanics/src/gui/Groupbox.cpp | robindittmar/mechanics | ea62f750d3cd448cbd708dee972d5a5b9a1464a0 | [
"MIT"
] | null | null | null | #include "Groupbox.h"
CGroupbox::CGroupbox(int x, int y, int w, int h, const char* pTitle)
: IControl(x, y, w, h), m_bAlreadySetSize(false)
{
m_pCanvas = new CCanvas(GROUPBOX_PADDING, GROUPBOX_PADDING);
m_pLabel = new CLabel(0, 0, w, 0, pTitle, RM_FONT_NORMAL, LABEL_ORIENTATION_CENTER);
// Using IControl:: becaus... | 29.210526 | 137 | 0.714715 | robindittmar |
e675f5379a9c0a06d8877f0ac35fe6b03fb91830 | 3,756 | cpp | C++ | 3DEngine/src/Shader/ShaderManager.cpp | tobbep1997/Bitfrost_2.0 | a092db19d4658062554b7df759f28439fc1ad4f8 | [
"Apache-2.0"
] | null | null | null | 3DEngine/src/Shader/ShaderManager.cpp | tobbep1997/Bitfrost_2.0 | a092db19d4658062554b7df759f28439fc1ad4f8 | [
"Apache-2.0"
] | null | null | null | 3DEngine/src/Shader/ShaderManager.cpp | tobbep1997/Bitfrost_2.0 | a092db19d4658062554b7df759f28439fc1ad4f8 | [
"Apache-2.0"
] | null | null | null | #include "3DEngine/EnginePCH.h"
#include "ShaderManager.h"
namespace Shaders
{
ShaderManager::ShaderManager()
{
nrOfShaders = 0;
}
ShaderManager::~ShaderManager()
{
}
ID3D11VertexShader * ShaderManager::VertexInputLayout(const std::wstring path, const std::string entryPoint, D3D11_INPUT_ELEMENT_DESC inputDesc... | 26.450704 | 166 | 0.623269 | tobbep1997 |
e6769ad66906ed2f6c79d1b96e75b0b13613614b | 2,983 | cpp | C++ | src/myview.cpp | nfette/sorpsim-opt | d85df8c6a99fa181bd1fdc6f7fbea5f7f8be2c77 | [
"RSA-MD"
] | null | null | null | src/myview.cpp | nfette/sorpsim-opt | d85df8c6a99fa181bd1fdc6f7fbea5f7f8be2c77 | [
"RSA-MD"
] | 1 | 2018-01-26T21:15:43.000Z | 2018-01-31T19:42:21.000Z | src/myview.cpp | nfette/sorpsim-opt | d85df8c6a99fa181bd1fdc6f7fbea5f7f8be2c77 | [
"RSA-MD"
] | null | null | null | /*! \file myview.cpp
\brief Provides the class myView.
This file is part of SorpSim and is distributed under terms in the file LICENSE.
Developed by Zhiyao Yang and Dr. Ming Qu for ORNL.
\author Zhiyao Yang (zhiyaoYang)
\author Dr. Ming Qu
\copyright 2015, UT-Battelle, LLC
*/
#include "my... | 22.770992 | 106 | 0.586322 | nfette |
e67d29c26af42e8fb24274877c06d125cc45c076 | 4,188 | cpp | C++ | src/net/mqtt.cpp | ORelio/yokis-hack | d084f30e78a45191f5b2f325c925cb2ef85489a9 | [
"Apache-2.0"
] | 12 | 2020-01-21T13:43:16.000Z | 2022-01-11T12:11:15.000Z | src/net/mqtt.cpp | lecocotier/yokis-hack | a271a54ea50e20db381e7ff187702bc7b6ff0c55 | [
"Apache-2.0"
] | 12 | 2020-03-11T16:25:11.000Z | 2022-03-20T17:54:16.000Z | src/net/mqtt.cpp | lecocotier/yokis-hack | a271a54ea50e20db381e7ff187702bc7b6ff0c55 | [
"Apache-2.0"
] | 5 | 2020-01-22T22:32:12.000Z | 2021-11-16T18:51:41.000Z | #ifdef ESP8266
#include "net/mqtt.h"
#include <Arduino.h>
#include "globals.h"
Mqtt::Mqtt(WiFiClient& wifiClient) : PubSubClient(wifiClient), MqttConfig() {
// Init subscriptions to NULL
subscribedTopicIdx = 0;
for (uint8_t i = 0; i < MQTT_MAX_NUM_OF_YOKIS_DEVICES; i++) {
subscribedTopics[i] = NULL... | 28.107383 | 136 | 0.641117 | ORelio |
e683827fac6f3fbaf1558f8075b0adad60076463 | 7,457 | hpp | C++ | tools/map_maker/map_data/include/ad/map/maker/map_data/Road.hpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | 61 | 2019-12-19T20:57:24.000Z | 2022-03-29T15:20:51.000Z | tools/map_maker/map_data/include/ad/map/maker/map_data/Road.hpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | 54 | 2020-04-05T05:32:47.000Z | 2022-03-15T18:42:33.000Z | tools/map_maker/map_data/include/ad/map/maker/map_data/Road.hpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | 31 | 2019-12-20T07:37:39.000Z | 2022-03-16T13:06:16.000Z | // ----------------- BEGIN LICENSE BLOCK ---------------------------------
//
// Copyright (C) 2018-2019 Intel Corporation
//
// SPDX-License-Identifier: MIT
//
// ----------------- END LICENSE BLOCK -----------------------------------
#pragma once
#include <ad/map/maker/geometry/Direction2d.hpp>
#include <vector>
#i... | 35.341232 | 118 | 0.709266 | seowwj |
e69275a0397b72fd5def5ddeaa8ea80e2bbe07ef | 2,724 | cpp | C++ | src/object.cpp | faod/ld39 | 58306802fdd5bc7d0f4020e41c68afa245bf3fde | [
"Apache-2.0"
] | 2 | 2017-08-03T13:02:32.000Z | 2019-11-18T05:30:24.000Z | src/object.cpp | faod/ld39 | 58306802fdd5bc7d0f4020e41c68afa245bf3fde | [
"Apache-2.0"
] | null | null | null | src/object.cpp | faod/ld39 | 58306802fdd5bc7d0f4020e41c68afa245bf3fde | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2016 Jonathan Bayle, Thomas Medioni
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | 16.023529 | 86 | 0.66116 | faod |
e6943a24b6dfe52b696a9318b1662ff1f0f30c62 | 1,095 | cpp | C++ | vijos/1987.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | vijos/1987.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | vijos/1987.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 75020
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
bitset<N> f[300];
int arr[N], fst[N], cnt;
int ma... | 24.333333 | 61 | 0.428311 | swwind |
e699d1eb5c630fb42d24ce5776eece822889831b | 210 | cpp | C++ | src/backends/sdl/system/object.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/sdl/system/object.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/sdl/system/object.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #include <awl/backends/sdl/system/object.hpp>
#include <awl/system/object.hpp>
awl::backends::sdl::system::object::object() : awl::system::object{} {}
awl::backends::sdl::system::object::~object() = default;
| 30 | 71 | 0.7 | freundlich |
e69d34c74109eebfed5f53165ff1189d0ad26d26 | 435 | hpp | C++ | include/GLPK_SOLVER.hpp | Hakiwen/dist-milp | 9d876ef5c0c160b0b6057c24bb13b97f8edd7ea4 | [
"MIT"
] | null | null | null | include/GLPK_SOLVER.hpp | Hakiwen/dist-milp | 9d876ef5c0c160b0b6057c24bb13b97f8edd7ea4 | [
"MIT"
] | null | null | null | include/GLPK_SOLVER.hpp | Hakiwen/dist-milp | 9d876ef5c0c160b0b6057c24bb13b97f8edd7ea4 | [
"MIT"
] | null | null | null | //
// Created by tkhamvilai on 4/12/19.
//
#ifndef DIST_MILP_GLPK_SOLVER_HPP
#define DIST_MILP_GLPK_SOLVER_HPP
#include <iostream>
#include "MY_MACROS.hpp"
#include <glpk.h>
#include "NOC_GLPK.hpp"
class GLPK_SOLVER{
const char* LP_file;
const char* Sol_file;
public:
GLPK_SOLVER(const char* LP_file, c... | 15.535714 | 59 | 0.71954 | Hakiwen |
e69f4c99aebbc28738c8d1e3e552b654c8197def | 11,250 | cpp | C++ | src/Pathfinding-Visualizer/Texture.cpp | joshuainovero/Pathfinding-Visualizer | da94f026d2a1c26cb5241500e8013d1e9d906543 | [
"MIT"
] | 4 | 2021-10-15T03:40:48.000Z | 2022-01-19T18:48:01.000Z | src/Pathfinding-Visualizer/Texture.cpp | joshuainovero/Pathfinding-Visualizer | da94f026d2a1c26cb5241500e8013d1e9d906543 | [
"MIT"
] | null | null | null | src/Pathfinding-Visualizer/Texture.cpp | joshuainovero/Pathfinding-Visualizer | da94f026d2a1c26cb5241500e8013d1e9d906543 | [
"MIT"
] | 2 | 2021-10-15T03:40:52.000Z | 2022-01-05T10:07:42.000Z | #include "Texture.hpp"
#include <iostream>
void Texture_::load_image(sf::Texture &texture, sf::Sprite &sprite, const char *file, float scale_n, float pos_y, bool center){
texture.loadFromFile(file);
texture.setSmooth(true);
sprite.setTexture(texture);
if (center){
sprite.setOrigin(sf::Vector2f... | 53.066038 | 227 | 0.691289 | joshuainovero |
e6a66f84f4bc6dba06bf49d6744b0f7a88db1796 | 2,147 | hpp | C++ | include/ouchilib/units/si.hpp | ouchiminh/ouchilib | de1bab0aa75c9e567ce06d76c95bc330dffbf52e | [
"MIT"
] | 1 | 2019-06-11T05:22:54.000Z | 2019-06-11T05:22:54.000Z | include/ouchilib/units/si.hpp | ouchiminh/ouchilib | de1bab0aa75c9e567ce06d76c95bc330dffbf52e | [
"MIT"
] | 1 | 2019-10-30T14:33:37.000Z | 2019-10-31T15:01:09.000Z | include/ouchilib/units/si.hpp | ouchiminh/ouchilib | de1bab0aa75c9e567ce06d76c95bc330dffbf52e | [
"MIT"
] | null | null | null | #pragma once
#include "units.hpp"
namespace ouchi::units::si {
struct length {};
struct mass {};
struct time {};
struct intensity {};
struct thermodynamic_temperature {};
struct amount {};
struct luminous_intensity {};
using si = system_of_units<length, mass, time, intensity, thermodynamic_temperature, amount, lumi... | 37.017241 | 113 | 0.77224 | ouchiminh |
e6a7468ef373bebbf8416906ad963b201d422d51 | 1,031 | cpp | C++ | Unique Number - III.cpp | Apoorv0001/HackerBlogs-Practice-Questions | 52c95f9d0ade3f38596821c979604c0aa23c78cb | [
"MIT"
] | null | null | null | Unique Number - III.cpp | Apoorv0001/HackerBlogs-Practice-Questions | 52c95f9d0ade3f38596821c979604c0aa23c78cb | [
"MIT"
] | null | null | null | Unique Number - III.cpp | Apoorv0001/HackerBlogs-Practice-Questions | 52c95f9d0ade3f38596821c979604c0aa23c78cb | [
"MIT"
] | null | null | null | /*
We are given an array containg n numbers. All the numbers are present thrice except for one number which is only present once. Find the unique number. Only use - bitwise operators, and no extra space.
Input Format
First line contains the number n. Second line contains n space separated number.
Constraints
N < 10^5... | 19.826923 | 200 | 0.644035 | Apoorv0001 |
e6aad6e73947eb0ac25970051b2301c087dcd141 | 4,243 | cpp | C++ | lib/secret_manager.cpp | mheily/fs123 | b92a3108defcdad623abc08fb2e837d74d6210da | [
"BSD-3-Clause"
] | null | null | null | lib/secret_manager.cpp | mheily/fs123 | b92a3108defcdad623abc08fb2e837d74d6210da | [
"BSD-3-Clause"
] | null | null | null | lib/secret_manager.cpp | mheily/fs123 | b92a3108defcdad623abc08fb2e837d74d6210da | [
"BSD-3-Clause"
] | 1 | 2019-09-06T02:07:22.000Z | 2019-09-06T02:07:22.000Z | #include "fs123/secret_manager.hpp"
#include <sodium.h>
#include <string>
#include <cstring>
#include <cctype>
#include <algorithm>
/*static*/const std::string
secret_manager::DO_NOT_ENCODE_SID = ".NONE";
bool
secret_manager::legal_sid(const std::string& sv){
// A sid is "legal" if it's '
// non-empty
/... | 31.664179 | 114 | 0.5819 | mheily |
e6ae3bffbf9cc564afe26c97d22012cd1df51231 | 163 | cpp | C++ | AcceleratedOOBB/src/glmext.cpp | BetaRavener/AcceleratedOOBB | bcf285b151c7598c52c1c37de6b86a1fca3a73d2 | [
"MIT"
] | null | null | null | AcceleratedOOBB/src/glmext.cpp | BetaRavener/AcceleratedOOBB | bcf285b151c7598c52c1c37de6b86a1fca3a73d2 | [
"MIT"
] | null | null | null | AcceleratedOOBB/src/glmext.cpp | BetaRavener/AcceleratedOOBB | bcf285b151c7598c52c1c37de6b86a1fca3a73d2 | [
"MIT"
] | 1 | 2021-09-16T11:04:43.000Z | 2021-09-16T11:04:43.000Z | #include "glmext.h"
std::string formatVec3(const glm::vec3& vec)
{
std::ostringstream oss;
oss << vec.x << ", " << vec.y << ", " << vec.z;
return oss.str();
}
| 18.111111 | 48 | 0.576687 | BetaRavener |
e6bbc6e1640371cbb3104ba09415057d4ae7ab45 | 15,079 | cpp | C++ | Runtime/World/CIceImpact.cpp | RetroView/RetroCommon | a413a010b50a53ebc6b0c726203181fc179d3370 | [
"MIT"
] | 106 | 2021-04-09T19:42:56.000Z | 2022-03-30T09:13:28.000Z | Runtime/World/CIceImpact.cpp | Austint30/metaforce | a491e2e9f229c8db92544b275cd1baa80bacfd17 | [
"MIT"
] | 58 | 2021-04-09T12:48:58.000Z | 2022-03-22T00:11:42.000Z | Runtime/World/CIceImpact.cpp | Austint30/metaforce | a491e2e9f229c8db92544b275cd1baa80bacfd17 | [
"MIT"
] | 13 | 2021-04-06T23:23:20.000Z | 2022-03-16T02:09:48.000Z | #include "Runtime/World/CIceImpact.hpp"
#include "Runtime/CStateManager.hpp"
#include "Runtime/Collision/CCollidableOBBTreeGroup.hpp"
#include "Runtime/Collision/CGameCollision.hpp"
#include "Runtime/Collision/CollisionUtil.hpp"
#include "Runtime/GameGlobalObjects.hpp"
#include "Runtime/Graphics/CBooRenderer.hpp"
#inc... | 39.577428 | 120 | 0.647258 | RetroView |
e6c34a83c2290f640f948972dafd0b77c36ee89a | 2,404 | cpp | C++ | libs/assign/v2/test/option/row_major.cpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | libs/assign/v2/test/option/row_major.cpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | libs/assign/v2/test/option/row_major.cpp | rogard/assign_v2 | 8735f57177dbee57514b4e80c498dd4b89f845e5 | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// Boost.Assign v2 //
// //
// Copyright (C) 2003-2004 Thorsten Ottosen //
// ... | 36.424242 | 79 | 0.505824 | rogard |
e6c3a96f50929cb8abdd38f53ec8cecf3c9dc1a0 | 50 | hpp | C++ | src/boost_preprocessor_variadic_to_seq.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_preprocessor_variadic_to_seq.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_preprocessor_variadic_to_seq.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/preprocessor/variadic/to_seq.hpp>
| 25 | 49 | 0.82 | miathedev |
e6c3ec7a91c34724ec4da6627f23865902ffdacd | 461 | cpp | C++ | vr/src/perspective_camera.cpp | vladimir-voinea/vr | 0af18898ee512a0f94be7609e19753b92da03775 | [
"MIT"
] | null | null | null | vr/src/perspective_camera.cpp | vladimir-voinea/vr | 0af18898ee512a0f94be7609e19753b92da03775 | [
"MIT"
] | null | null | null | vr/src/perspective_camera.cpp | vladimir-voinea/vr | 0af18898ee512a0f94be7609e19753b92da03775 | [
"MIT"
] | null | null | null | #include "perspective_camera.hpp"
#include <glm/gtc/matrix_transform.hpp>
namespace vr
{
perspective_camera::perspective_camera(const perspective_camera::settings& settings)
: camera(settings.position, settings.direction, settings.fov)
, m_settings(settings)
{
}
glm::mat4 perspective_camera::get_projection_m... | 21.952381 | 85 | 0.759219 | vladimir-voinea |
e6c44f1cb544bdddeaf8d1f0fc395b380b4d8cfa | 9,878 | cpp | C++ | Game/Source/SceneCastle.cpp | mrmile/VideogameDevelopment | a69ddf91fcb9401078084e77f9377e8a59769b92 | [
"MIT"
] | null | null | null | Game/Source/SceneCastle.cpp | mrmile/VideogameDevelopment | a69ddf91fcb9401078084e77f9377e8a59769b92 | [
"MIT"
] | null | null | null | Game/Source/SceneCastle.cpp | mrmile/VideogameDevelopment | a69ddf91fcb9401078084e77f9377e8a59769b92 | [
"MIT"
] | null | null | null | #include "App.h"
#include "Input.h"
#include "Textures.h"
#include "Audio.h"
#include "Render.h"
#include "Window.h"
#include "SceneForest.h"
#include "SceneCastle.h"
#include "Map.h"
#include "ModulePhysics.h"
#include "ModulePlayer.h"
#include "ModuleCollisions.h"
#include "TitleScreen.h"
#include "Enemies.h"
#includ... | 35.153025 | 250 | 0.681211 | mrmile |
e6c72835550d38aa3d39fc5e284c57eb98a26073 | 4,523 | cpp | C++ | hw5/1/main.cpp | Lupin2019/rm2022_homework | f1e4820a5fa03c4ff1342ea82bad14706c64d1b0 | [
"MIT"
] | null | null | null | hw5/1/main.cpp | Lupin2019/rm2022_homework | f1e4820a5fa03c4ff1342ea82bad14706c64d1b0 | [
"MIT"
] | null | null | null | hw5/1/main.cpp | Lupin2019/rm2022_homework | f1e4820a5fa03c4ff1342ea82bad14706c64d1b0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
string PATH_DATA = "/home/data/";
int main(){
FileStorage camera(PATH_DATA + "stereo.yaml",FileStorage::READ);
Mat K_0 = camera["K_0"].mat();
Mat C_0 = camera["C_0"].mat();
... | 28.093168 | 101 | 0.557373 | Lupin2019 |
e6c84e11f6f6eb5766f04436be2baa21e6a6203f | 646 | cpp | C++ | chap01_flow_control/practice04/05.cpp | kdzlvaids/problem_solving-pknu | 6a9e64f31f0d17c949e2b640fbd0a7628d1e5ece | [
"MIT"
] | null | null | null | chap01_flow_control/practice04/05.cpp | kdzlvaids/problem_solving-pknu | 6a9e64f31f0d17c949e2b640fbd0a7628d1e5ece | [
"MIT"
] | null | null | null | chap01_flow_control/practice04/05.cpp | kdzlvaids/problem_solving-pknu | 6a9e64f31f0d17c949e2b640fbd0a7628d1e5ece | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h> /* rand(), srand() */
#include <time.h> /* time() */
int count_one_came_out_when_throwing_dice(const int count)
{
int rc = 0;
for(int i = 0; i < count; ++i)
if(rand() % 6 + 1 == 1) ++rc;
return rc;
}
int main(void)
{
srand(time(NULL));
const int ma... | 20.1875 | 89 | 0.544892 | kdzlvaids |
e6caa586886db004189bc6b24065e4d0c3f9c5d2 | 2,446 | cpp | C++ | src/dx/setup/GIFactory.cpp | Ohjurot/DX12-YT | b71683843716efcfd9ff4c9c8b4d0a9fa14b1af6 | [
"BSD-2-Clause",
"Unlicense"
] | 16 | 2021-03-07T09:18:38.000Z | 2022-03-31T18:40:29.000Z | src/dx/setup/GIFactory.cpp | Ohjurot/DX12-YT | b71683843716efcfd9ff4c9c8b4d0a9fa14b1af6 | [
"BSD-2-Clause",
"Unlicense"
] | 1 | 2021-09-18T10:18:01.000Z | 2021-09-23T04:12:38.000Z | src/dx/setup/GIFactory.cpp | Ohjurot/DX12-YT | b71683843716efcfd9ff4c9c8b4d0a9fa14b1af6 | [
"BSD-2-Clause",
"Unlicense"
] | 5 | 2021-08-12T04:33:40.000Z | 2022-03-31T08:55:07.000Z | #include "DefHeader.h"
#include "GIFactory.h"
DX::GIFactory::GIFactory() :
ScopedComPointer<IDXGIFactory1>()
{
// Create DXGI Factory
EVALUATE_HRESULT(CreateDXGIFactory1(IID_PPV_ARGS(&m_comPointer)), "CreateDXGIFactory1(...)");
}
DX::GIAdapter DX::GIFactory::getAdapter(LUID preferedAdapterLuid){
// Output adapter... | 28.44186 | 164 | 0.730989 | Ohjurot |
e6d35dd1621be23ed8acd3ba414458ed0b13b170 | 898 | cpp | C++ | 295/a.cpp | bound1ess/codeforces-problemset-2 | 3c3abc99e7396a7103a641da66295a52f1d57e52 | [
"MIT"
] | 1 | 2016-02-16T10:13:35.000Z | 2016-02-16T10:13:35.000Z | 295/a.cpp | bound1ess/codeforces-problemset-2 | 3c3abc99e7396a7103a641da66295a52f1d57e52 | [
"MIT"
] | null | null | null | 295/a.cpp | bound1ess/codeforces-problemset-2 | 3c3abc99e7396a7103a641da66295a52f1d57e52 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
const int N = 123456;
long long a[N], add[N], l[N], r[N], d[N], ops[N];
int main() {
freopen("input", "rt", stdin);
freopen("output", "wt", stdout);
ios_base::sync_with_stdio(false);
int n, m, k, x, y;
cin >> n >> m >> k;
for (int i = 0; i < n; +... | 19.521739 | 49 | 0.398664 | bound1ess |
e6d808b494b245b16c162cd003030fe4292ab567 | 14,028 | hh | C++ | dune/xt/grid/structuredgridfactory.hh | dune-community/dune-xt-grid | 3453f6619fabc016beaf32409627fec8712f3ef9 | [
"BSD-2-Clause"
] | 2 | 2016-04-04T08:06:07.000Z | 2020-02-08T04:10:38.000Z | dune/xt/grid/structuredgridfactory.hh | dune-community/dune-xt-grid | 3453f6619fabc016beaf32409627fec8712f3ef9 | [
"BSD-2-Clause"
] | 77 | 2016-01-24T22:11:21.000Z | 2020-03-25T08:30:31.000Z | dune/xt/grid/structuredgridfactory.hh | dune-community/dune-xt-grid | 3453f6619fabc016beaf32409627fec8712f3ef9 | [
"BSD-2-Clause"
] | 4 | 2016-11-08T10:12:44.000Z | 2020-02-08T04:10:41.000Z | // This file is part of the dune-xt-grid project:
// https://github.com/dune-community/dune-xt-grid
// Copyright 2009-2018 dune-xt-grid developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensou... | 41.017544 | 120 | 0.693114 | dune-community |
e6dafd60c236f50353bd25941e355b77d7cd534a | 950 | cpp | C++ | src/app/mqtt/internal/logactionlistener.cpp | DavidHamburg/mqtt-to-influxdb | 5a306f1186433c7ee426959a53ea575c03d9a4a1 | [
"MIT"
] | null | null | null | src/app/mqtt/internal/logactionlistener.cpp | DavidHamburg/mqtt-to-influxdb | 5a306f1186433c7ee426959a53ea575c03d9a4a1 | [
"MIT"
] | null | null | null | src/app/mqtt/internal/logactionlistener.cpp | DavidHamburg/mqtt-to-influxdb | 5a306f1186433c7ee426959a53ea575c03d9a4a1 | [
"MIT"
] | null | null | null | #include "logactionlistener.hpp"
#include <mqtt/delivery_token.h>
#include <iostream>
#include <spdlog/spdlog.h>
logactionlistener::logactionlistener(const std::string &name) : m_name(name) {}
void logactionlistener::on_failure(const mqtt::token &tok) {
std::stringstream ss;
ss << m_name << " failure";
... | 30.645161 | 80 | 0.582105 | DavidHamburg |
5c7876799c12c9f65c0e1369386cf18c1e021fb9 | 5,743 | cpp | C++ | tests/parsers.cpp | de-passage/parsers.cpp | e8d1525152deb0a8b118bd5fa814fc84d816ce33 | [
"MIT"
] | null | null | null | tests/parsers.cpp | de-passage/parsers.cpp | e8d1525152deb0a8b118bd5fa814fc84d816ce33 | [
"MIT"
] | null | null | null | tests/parsers.cpp | de-passage/parsers.cpp | e8d1525152deb0a8b118bd5fa814fc84d816ce33 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <optional>
#include <parsers/parsers.hpp>
#include <functional>
#include <string>
#include <type_traits>
#include <utility>
#include "parsers/description.hpp"
using namespace parsers::description;
template <class T, class = void>
struct custom_parser;
template <class I>
using parse... | 30.226316 | 80 | 0.627024 | de-passage |
5c7fbeee2545ef78fb5752090d5323bd919f3ce8 | 1,172 | cpp | C++ | tests/SignExtend.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | tests/SignExtend.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | tests/SignExtend.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | /*
* This file is part of the DUDS project. It is subject to the BSD-style
* license terms in the LICENSE file found in the top-level directory of this
* distribution and at http://www.somewhere.org/somepath/license.html.
* No part of DUDS, including this file, may be copied, modified, propagated,
* or distributed... | 29.3 | 78 | 0.733788 | jjackowski |
5c823cb012358b271aca8f9fc047e5953b0924cb | 11,870 | cpp | C++ | src/vclasses.cpp | cjungmann/SchemaServer | 2a15250b8d128ac3815ac3327889e0545422f73b | [
"MIT"
] | null | null | null | src/vclasses.cpp | cjungmann/SchemaServer | 2a15250b8d128ac3815ac3327889e0545422f73b | [
"MIT"
] | null | null | null | src/vclasses.cpp | cjungmann/SchemaServer | 2a15250b8d128ac3815ac3327889e0545422f73b | [
"MIT"
] | null | null | null | // -*- compile-command: "g++ -DINCLUDE_VCLASSES_MAIN -std=c++11 -Wall -Werror -Weffc++ -pedantic -ggdb -o vclasses vclasses.cpp" -*-
#include <math.h> // for pow()
#include <stdexcept>
#include "vclasses.hpp"
extern "C" void __cxa_pure_virtual(void)
{
throw Pure_Virtual_Exception();
}
void throw_unmatchable(co... | 24.832636 | 133 | 0.584836 | cjungmann |
5c835156ae4dad547558c64617939a89c330158e | 3,643 | hpp | C++ | gv_framework/task/gv_task_manager.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | 2 | 2018-12-03T13:17:31.000Z | 2020-04-08T07:00:02.000Z | gv_framework/task/gv_task_manager.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | gv_framework/task/gv_task_manager.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | //#pragma GV_DISABLE_OPTIMIZATION
namespace gv
{
void gv_do_one_task()
{
}
class gv_worker_runable : public gv_runnable
{
public:
gv_worker_runable():m_start_event(true)
{
m_quit = false;
}
void run()
{
while (!m_quit)
{
//m_start_event.reset();
m_start_event.wait();
do_work();
}
}
void... | 19.073298 | 117 | 0.700247 | dragonsn |
5c83fbe0636849bc26ca67b149b98961c18a74b9 | 6,589 | cpp | C++ | Deprecated/F1_Detection [Version Anterior]/main.cpp | Wauro21/elo328 | de5c4f3a87cbbf05ba8888066063a2fd040d9bc4 | [
"MIT"
] | null | null | null | Deprecated/F1_Detection [Version Anterior]/main.cpp | Wauro21/elo328 | de5c4f3a87cbbf05ba8888066063a2fd040d9bc4 | [
"MIT"
] | 7 | 2020-12-10T15:34:54.000Z | 2021-01-08T04:20:48.000Z | Deprecated/F1_Detection [Version Anterior]/main.cpp | Wauro21/elo328 | de5c4f3a87cbbf05ba8888066063a2fd040d9bc4 | [
"MIT"
] | 1 | 2020-09-11T19:26:45.000Z | 2020-09-11T19:26:45.000Z | #include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include <iostream>
#include <cmath>
#include <chrono>
// Variables relacionadas a la tom... | 32.29902 | 116 | 0.560024 | Wauro21 |
5c8708fc64a4c18b6259aef57fc45d08279a52b6 | 1,666 | cpp | C++ | GaeaEngine/TransformComponent.cpp | ruochenhua/GaeaEngine | bef7dd8ca178333fe0fa1da316444f5cdea25ef5 | [
"MIT"
] | null | null | null | GaeaEngine/TransformComponent.cpp | ruochenhua/GaeaEngine | bef7dd8ca178333fe0fa1da316444f5cdea25ef5 | [
"MIT"
] | 1 | 2018-07-13T03:30:03.000Z | 2018-07-13T03:30:11.000Z | GaeaEngine/TransformComponent.cpp | ruochenhua/GaeaEngine | bef7dd8ca178333fe0fa1da316444f5cdea25ef5 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "TransformComponent.h"
#include "Script.h"
void CTransformComponent::SetScale(float x, float y, float z)
{
m_Scale = D3DXVECTOR3(x, y, z);
}
void CTransformComponent::SetRotation(float x, float y, float z, float w)
{
m_Rotation = D3DXQUATERNION(x, y, z, w);
}
void CTransformComponent::... | 33.32 | 73 | 0.718487 | ruochenhua |
5c93cf06a40ded5d0ff20dee173f985655fc3272 | 1,642 | cpp | C++ | Source/UnrealExtendedSettings/UnrealExtendedSettings.cpp | ElderDeveloper/UnrealExtendedFramework | 9eda70583773159f80e8bc4406a85c476d0c80e5 | [
"MIT"
] | 1 | 2022-01-13T07:21:19.000Z | 2022-01-13T07:21:19.000Z | Source/UnrealExtendedSettings/UnrealExtendedSettings.cpp | ElderDeveloper/UnrealExtendedFramework | 9eda70583773159f80e8bc4406a85c476d0c80e5 | [
"MIT"
] | null | null | null | Source/UnrealExtendedSettings/UnrealExtendedSettings.cpp | ElderDeveloper/UnrealExtendedFramework | 9eda70583773159f80e8bc4406a85c476d0c80e5 | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
#include "UnrealExtendedSettings.h"
#include "ISettingsModule.h"
#include "Subtitles/Subsystem/ESSubtitleSubsystem.h"
#include "UnrealExtendedSettings/Subsystems/ESQualitySubsystem.h"
#define LOCTEXT_NAMESPACE "FUnrealExtendedSettingsModule"
void FUnrealExtendedS... | 25.65625 | 129 | 0.771011 | ElderDeveloper |
5c93eac0b7489aa0d3b3019c46c028ea2a0a4a79 | 7,866 | cpp | C++ | build/cpp_test/src/massive/munit/UnhandledException.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | build/cpp_test/src/massive/munit/UnhandledException.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | build/cpp_test/src/massive/munit/UnhandledException.cpp | TomBebb/hxecs | 80620512df7b32d70f1b59facdf8f6349192a166 | [
"BSD-3-Clause"
] | null | null | null | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_haxe_CallStack
#include <haxe/CallStack.h>
#endif
#ifndef INCLUDED_haxe_StackItem
#include <haxe/StackItem.h>
#endif
#ifndef INCLUDED_massive_haxe_Exception
#includ... | 39.33 | 279 | 0.719807 | TomBebb |
5c947331b6016656345e875c3b4927b75b259926 | 6,413 | hpp | C++ | src/util/random.hpp | devinamatthews/tensor | 7d979b6624071879383377611cb2fa483b6a3104 | [
"BSD-3-Clause"
] | 86 | 2016-05-30T16:08:24.000Z | 2022-03-30T22:57:35.000Z | src/util/random.hpp | devinamatthews/tensor | 7d979b6624071879383377611cb2fa483b6a3104 | [
"BSD-3-Clause"
] | 41 | 2017-02-02T22:28:17.000Z | 2022-02-22T16:51:14.000Z | src/util/random.hpp | devinamatthews/tensor | 7d979b6624071879383377611cb2fa483b6a3104 | [
"BSD-3-Clause"
] | 26 | 2016-05-30T16:08:33.000Z | 2021-12-29T03:02:30.000Z | #ifndef _TBLIS_RANDOM_HPP_
#define _TBLIS_RANDOM_HPP_
#include <random>
#include "basic_types.h"
namespace tblis
{
extern std::mt19937 rand_engine;
/*
* Returns a pseudo-random number uniformly distributed in the range [mn,mx).
*/
template <typename T>
enable_if_floating_point_t<real_type_t<T>,T> random_number(T... | 23.577206 | 90 | 0.622018 | devinamatthews |
5c947ad3a28104d27737f8904ba46d4532ddecc8 | 5,082 | hpp | C++ | include/codegen/include/HMUI/RangeValuesTextSlider.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/HMUI/RangeValuesTextSlider.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/HMUI/RangeValuesTextSlider.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:21 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: HMUI.TextSlider
#include "HMUI/TextSlider.hpp"
#include "uti... | 40.333333 | 117 | 0.714876 | Futuremappermydud |
5c953c68df07f49cc3a3cb885042f14aa10407e7 | 3,371 | cpp | C++ | src/obproxy/iocore/eventsystem/ob_lock.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 74 | 2021-05-31T15:23:49.000Z | 2022-03-12T04:46:39.000Z | src/obproxy/iocore/eventsystem/ob_lock.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 16 | 2021-05-31T15:26:38.000Z | 2022-03-30T06:02:43.000Z | src/obproxy/iocore/eventsystem/ob_lock.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 64 | 2021-05-31T15:25:36.000Z | 2022-02-23T08:43:58.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ... | 36.247312 | 96 | 0.673094 | stutiredboy |
5ca108d9362de01b49d81eab24842bd612bf1f40 | 6,114 | cc | C++ | src/whetstone/test/whetstone_polynomials.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/whetstone/test/whetstone_polynomials.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/whetstone/test/whetstone_polynomials.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
WhetStone
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: Konstantin Lipnikov (lipnikov@lanl.gov)
*/
#include <cstdlib... | 25.58159 | 77 | 0.564115 | fmyuan |
5ca39de137d703ff5a27da18adf756b9c5ec6e36 | 1,266 | cpp | C++ | bindings/qml/src/QmlDescriptor.cpp | emef/sprk | eeaa9035d895de48e0380323526347c50770c8ff | [
"MIT"
] | null | null | null | bindings/qml/src/QmlDescriptor.cpp | emef/sprk | eeaa9035d895de48e0380323526347c50770c8ff | [
"MIT"
] | null | null | null | bindings/qml/src/QmlDescriptor.cpp | emef/sprk | eeaa9035d895de48e0380323526347c50770c8ff | [
"MIT"
] | null | null | null | /*
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Please refer to the README for information about making permanent changes. #
##########################################################################... | 29.44186 | 80 | 0.537125 | emef |
5ca5612b26adc17a9ad4a8623c88cbba33746b52 | 922 | cpp | C++ | CSC/CSC114/GaddisExamples/Chapter12/Pr12-2.cpp | HNSS-US/DelTech | a424da4e10ec0a33caaa6ed1c1d78837bdc6b0a2 | [
"MIT"
] | 3 | 2019-10-28T01:12:46.000Z | 2021-10-16T09:16:31.000Z | SourceCode/Chapter 12/Pr12-2.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | null | null | null | SourceCode/Chapter 12/Pr12-2.cpp | jesushilariohernandez/DelMarCSi.cpp | 6dd7905daea510452691fd25b0e3b0d2da0b06aa | [
"MIT"
] | 4 | 2020-04-10T17:22:17.000Z | 2021-11-04T14:34:00.000Z | // This program writes data to a file, closes the file,
// then reopens the file and appends more data.
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
ofstream dataFile;
cout << "Opening file...\n";
// Open the file in output mode.
dataFile.open("demofile.txt", ios::out);
cou... | 29.741935 | 56 | 0.607375 | HNSS-US |
5cab918a51f743556beb49fc42c4cfc8ef6f9bed | 2,047 | hpp | C++ | mc/triangle_consumer.hpp | ShamylZakariya/MarchingCubes | 27f375d5d25df2246095d65c11127aac82a24211 | [
"MIT"
] | 2 | 2019-12-03T05:52:57.000Z | 2021-05-21T18:17:52.000Z | mc/triangle_consumer.hpp | ShamylZakariya/MarchingCubes | 27f375d5d25df2246095d65c11127aac82a24211 | [
"MIT"
] | null | null | null | mc/triangle_consumer.hpp | ShamylZakariya/MarchingCubes | 27f375d5d25df2246095d65c11127aac82a24211 | [
"MIT"
] | null | null | null | //
// triangle_soup.hpp
// MarchingCubes
//
// Created by Shamyl Zakariya on 11/23/19.
// Copyright © 2019 Shamyl Zakariya. All rights reserved.
//
#ifndef triangle_consumer_hpp
#define triangle_consumer_hpp
#include "util/util.hpp"
namespace mc {
template <class VertexType>
struct Triangle {
VertexType a, ... | 18.441441 | 75 | 0.587201 | ShamylZakariya |
5cabd5bea5f0733b8a0c02b91f20064ef6ecb95f | 143 | cpp | C++ | native/appirater.ios.cpp | JochenHeizmann/Horizon-for-Monkey | 4a9077bf17db011cb4fca9b7120d2825c16c5fee | [
"Unlicense"
] | 2 | 2015-02-11T02:31:44.000Z | 2015-06-04T13:48:44.000Z | native/appirater.ios.cpp | JochenHeizmann/Horizon-for-Monkey | 4a9077bf17db011cb4fca9b7120d2825c16c5fee | [
"Unlicense"
] | null | null | null | native/appirater.ios.cpp | JochenHeizmann/Horizon-for-Monkey | 4a9077bf17db011cb4fca9b7120d2825c16c5fee | [
"Unlicense"
] | null | null | null |
#import "appirater/Appirater.h"
class AppiraterMonk
{
public:
static void Launched()
{
[Appirater appLaunched:YES];
}
};
| 11.916667 | 36 | 0.629371 | JochenHeizmann |
5cad40d20adfb8c610016b94a01b5a6d6706112f | 1,477 | cpp | C++ | test/utilities/utility/pairs/pairs.spec/make_pair.pass.cpp | puorc/ddstl | b7e7d7286114f2dc30c0b2e0e84cc7662d329e8f | [
"MIT"
] | null | null | null | test/utilities/utility/pairs/pairs.spec/make_pair.pass.cpp | puorc/ddstl | b7e7d7286114f2dc30c0b2e0e84cc7662d329e8f | [
"MIT"
] | null | null | null | test/utilities/utility/pairs/pairs.spec/make_pair.pass.cpp | puorc/ddstl | b7e7d7286114f2dc30c0b2e0e84cc7662d329e8f | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 28.403846 | 90 | 0.525389 | puorc |
5cb63aa28cb709a827343a2edcca5908db1cf79d | 5,166 | cpp | C++ | src/Engine/Scene/LightManager.cpp | Yasoo31/Radium-Engine | e22754d0abe192207fd946509cbd63c4f9e52dd4 | [
"Apache-2.0"
] | 78 | 2017-12-01T12:23:22.000Z | 2022-03-31T05:08:09.000Z | src/Engine/Scene/LightManager.cpp | Yasoo31/Radium-Engine | e22754d0abe192207fd946509cbd63c4f9e52dd4 | [
"Apache-2.0"
] | 527 | 2017-09-25T13:05:32.000Z | 2022-03-31T18:47:44.000Z | src/Engine/Scene/LightManager.cpp | Yasoo31/Radium-Engine | e22754d0abe192207fd946509cbd63c4f9e52dd4 | [
"Apache-2.0"
] | 48 | 2018-01-04T22:08:08.000Z | 2022-03-03T08:13:41.000Z | #include <Core/Asset/FileData.hpp>
#include <Core/Tasks/Task.hpp>
#include <Core/Tasks/TaskQueue.hpp>
#include <Engine/FrameInfo.hpp>
#include <Engine/RadiumEngine.hpp>
#include <Engine/Scene/ComponentMessenger.hpp>
#include <Engine/Scene/DirLight.hpp>
#include <Engine/Scene/Entity.hpp>
#include <Engine/Scene/LightMana... | 36.380282 | 98 | 0.608982 | Yasoo31 |
5cb8a206f22ab046c662e3c069320d3876244c65 | 3,197 | hpp | C++ | include/kuro/gather.hpp | X-Neon/kuro | 001944f1e7bf035830732ba11e361ba9ba345c8a | [
"MIT"
] | 8 | 2021-05-11T02:41:53.000Z | 2021-11-16T06:36:26.000Z | include/kuro/gather.hpp | X-Neon/kuro | 001944f1e7bf035830732ba11e361ba9ba345c8a | [
"MIT"
] | null | null | null | include/kuro/gather.hpp | X-Neon/kuro | 001944f1e7bf035830732ba11e361ba9ba345c8a | [
"MIT"
] | null | null | null | #pragma once
#include <coroutine>
#include <tuple>
#include "util.hpp"
namespace kuro
{
namespace detail
{
template <typename... T>
class gather_impl
{
public:
gather_impl(T... args) : m_await(detail::awaitable_container<T>(std::forward<T>(args))...) {}
bool await_ready() noexcept
{
std::size_... | 29.063636 | 110 | 0.575852 | X-Neon |
5cbb963fced05c0f5a4d747a12d97d4c799197f4 | 10,966 | cxx | C++ | pkgs/tools/cmake/src/Source/cmFindLibraryCommand.cxx | relokin/parsec | 75d63d9bd2368913343be9037e301947ecf78f7f | [
"BSD-3-Clause"
] | 2 | 2017-04-24T22:37:28.000Z | 2020-05-26T01:57:37.000Z | pkgs/tools/cmake/src/Source/cmFindLibraryCommand.cxx | cota/parsec2-aarch64 | cdf7da348afd231dbe067266f24dc14d22f5cebf | [
"BSD-3-Clause"
] | null | null | null | pkgs/tools/cmake/src/Source/cmFindLibraryCommand.cxx | cota/parsec2-aarch64 | cdf7da348afd231dbe067266f24dc14d22f5cebf | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile: cmFindLibraryCommand.cxx,v $
Language: C++
Date: $Date: 2008-06-13 12:55:17 $
Version: $Revision: 1.58.2.1 $
Copyright (c) 2002 Kitware, Inc., Insig... | 33.535168 | 78 | 0.571403 | relokin |
5cbc8da3964169db84c5d2b505421f98ae0cdffb | 2,535 | cpp | C++ | sources/TestSuite/N44MatrixTests.cpp | CERIT-SC/echo2-tester | 7548e326d2de74a349f4eaba56e933f5dbb5a8a2 | [
"CC-BY-4.0"
] | null | null | null | sources/TestSuite/N44MatrixTests.cpp | CERIT-SC/echo2-tester | 7548e326d2de74a349f4eaba56e933f5dbb5a8a2 | [
"CC-BY-4.0"
] | null | null | null | sources/TestSuite/N44MatrixTests.cpp | CERIT-SC/echo2-tester | 7548e326d2de74a349f4eaba56e933f5dbb5a8a2 | [
"CC-BY-4.0"
] | null | null | null | //
// N44MatrixTests.cpp
// testing system
//
// Created by Miloš Šimek on 17.04.15.
// Copyright (c) 2015 Miloš Šimek. All rights reserved.
//
#include "N44MatrixTests.hpp"
CPPUNIT_TEST_SUITE_REGISTRATION(N44MatrixTests);
void N44MatrixTests::setUp() {
matrix = new N44Matrix(10);
}
void N44MatrixTests::tea... | 25.867347 | 73 | 0.561736 | CERIT-SC |
5cc3204a489d462abdace8f26e215336ae0e035c | 10,832 | cpp | C++ | renderers/MultiStageMetropolisRenderer.cpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | renderers/MultiStageMetropolisRenderer.cpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | renderers/MultiStageMetropolisRenderer.cpp | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | /*! \file MultiStageMetropolisRenderer.cpp
* \author Jared Hoberock
* \brief Implementation of MultiStageMetropolisRenderer class.
*/
#include "MultiStageMetropolisRenderer.h"
#include "../importance/LuminanceImportance.h"
#include "../importance/EstimateImportance.h"
#include "../mutators/KelemenMutator.h"
Mult... | 32.238095 | 118 | 0.658327 | jaredhoberock |
5cc5e3b25cb0c6fa05d6d8b2e5a9e443c6a1ff9e | 710 | cpp | C++ | number-of-islands.cpp | cleamoon/Leetcode_solutions | e7f4a700d7130abd7257435779a4ae193c08080a | [
"MIT"
] | null | null | null | number-of-islands.cpp | cleamoon/Leetcode_solutions | e7f4a700d7130abd7257435779a4ae193c08080a | [
"MIT"
] | null | null | null | number-of-islands.cpp | cleamoon/Leetcode_solutions | e7f4a700d7130abd7257435779a4ae193c08080a | [
"MIT"
] | null | null | null | class Solution {
public:
void dfs(vector<vector<char>>& grid, int x, int y) {
if (x < 0 || x >= grid.size() || y < 0 || y >= grid[0].size() || grid[x][y] == '0') {
return;
}
grid[x][y] = '0';
dfs(grid, x - 1, y);
dfs(grid, x + 1, y);
dfs(grid, x, y - 1);
... | 26.296296 | 93 | 0.347887 | cleamoon |
5cc94fa581eb2841c1c177d443049f8f1aab2ef9 | 2,228 | cpp | C++ | labs_14502.cpp | goongg/SamSung | d07f8ca06fa21c2c26f63f89978b79a204373262 | [
"CECILL-B"
] | null | null | null | labs_14502.cpp | goongg/SamSung | d07f8ca06fa21c2c26f63f89978b79a204373262 | [
"CECILL-B"
] | null | null | null | labs_14502.cpp | goongg/SamSung | d07f8ca06fa21c2c26f63f89978b79a204373262 | [
"CECILL-B"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
#define debug 0
int dx[4] ={1, 0, -1, 0};
int dy[4] ={0, -1, 0, 1};
typedef pair<int, int> p;
class lab{
int n, m;
queue<p> v;
vector<int> t;
public:
void input()
{
cin>>n>>m;
t= vector<int>(n*m);... | 22.059406 | 93 | 0.33079 | goongg |
5ccee915eb00096655f441feca601450219eaf6e | 1,516 | cpp | C++ | SpaceshIT!/SpaceshIT!/Menu[OLD].cpp | ColdSpotYZ/SpaceshIT | 8fe2dcdd202536b5127e14a140c5f833720b1eeb | [
"MIT"
] | null | null | null | SpaceshIT!/SpaceshIT!/Menu[OLD].cpp | ColdSpotYZ/SpaceshIT | 8fe2dcdd202536b5127e14a140c5f833720b1eeb | [
"MIT"
] | null | null | null | SpaceshIT!/SpaceshIT!/Menu[OLD].cpp | ColdSpotYZ/SpaceshIT | 8fe2dcdd202536b5127e14a140c5f833720b1eeb | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Menu[OLD].h"
void Menu::initFont()
{
if (!this->font.loadFromFile("Fonts/game.ttf"))
std::cout << "Failed to load menu font." << std::endl;
}
void Menu::initShapes(sf::Vector2f position, sf::Vector2f size, char* text)
{
// Button
this->button.setPosition(sf::Vector2f(position));
t... | 18.487805 | 87 | 0.668865 | ColdSpotYZ |
5cd1001af5d3156a4768514598c482b64333df4f | 2,523 | cpp | C++ | src/unit_test/test_stats.cpp | pavanbadugu/cachelot | a504c288e1f1cc3852fc33f8d298b7cf6bc9ad9e | [
"BSD-2-Clause"
] | 323 | 2015-04-01T23:05:49.000Z | 2022-03-11T09:50:13.000Z | src/unit_test/test_stats.cpp | pavanbadugu/cachelot | a504c288e1f1cc3852fc33f8d298b7cf6bc9ad9e | [
"BSD-2-Clause"
] | 24 | 2016-06-16T18:48:24.000Z | 2021-12-03T01:55:09.000Z | src/unit_test/test_stats.cpp | pavanbadugu/cachelot | a504c288e1f1cc3852fc33f8d298b7cf6bc9ad9e | [
"BSD-2-Clause"
] | 39 | 2016-05-04T16:05:00.000Z | 2022-03-21T14:39:14.000Z | #include "unit_test.h"
#include <cachelot/stats.h>
namespace {
using namespace cachelot;
BOOST_AUTO_TEST_SUITE(test_stats)
BOOST_AUTO_TEST_CASE(test_no_overflow_arith) {
return;
// unsigned
static constexpr auto size_t_max = std::numeric_limits<size_t>::max();
static constexpr auto uint32_max = std:... | 46.722222 | 95 | 0.762584 | pavanbadugu |
5cd9ee66820e8becb33bc152392d24d7feac4456 | 7,843 | cc | C++ | tests/expr.cc | pabble-lang/libsesstype | ca10bc19c0477538c9cb265746f971a00f6dd445 | [
"MIT"
] | null | null | null | tests/expr.cc | pabble-lang/libsesstype | ca10bc19c0477538c9cb265746f971a00f6dd445 | [
"MIT"
] | null | null | null | tests/expr.cc | pabble-lang/libsesstype | ca10bc19c0477538c9cb265746f971a00f6dd445 | [
"MIT"
] | null | null | null | /**
* \file test/expr.cc
* \brief Tests for Expr.
*/
#include "gtest/gtest.h"
#include <iostream>
#include <string>
#include "sesstype/parameterised/expr.h"
#include "sesstype/parameterised/expr/var.h"
#include "sesstype/parameterised/expr/val.h"
#include "sesstype/parameterised/expr/add.h"
#include "sesstype/par... | 23.623494 | 70 | 0.601046 | pabble-lang |
5cdeef6f72e3ce642fa54bc5b01808cf142ee0dd | 17,914 | hpp | C++ | include/tudocomp/compressors/lfs/LFS2BSTCompressor.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-22T11:29:02.000Z | 2020-09-22T11:29:02.000Z | include/tudocomp/compressors/lfs/LFS2BSTCompressor.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/tudocomp/compressors/lfs/LFS2BSTCompressor.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-29T08:57:13.000Z | 2020-09-29T08:57:13.000Z | #pragma once
//std includes:
#include <vector>
#include <tuple>
#include <unordered_map>
//general includes:
#include <tudocomp/util.hpp>
#include <tudocomp/ds/IntVector.hpp>
#include <tudocomp/Compressor.hpp>
#include <tudocomp/Error.hpp>
#include <tudocomp/Tags.hpp>
#include <tudocomp_stat/StatPhase.hpp>
#include... | 37.713684 | 134 | 0.478676 | 421408 |
5ce0c34b586d9734e1305d3b4e17309303ddc6de | 2,826 | cpp | C++ | Source/StateMachineExample/AI/BTService_CheckPlayerVisible.cpp | McOmghall/fg-ue4cpp-course-aux | 810f1633a607834b41cfdfbc63e9987ad9776709 | [
"Apache-2.0"
] | null | null | null | Source/StateMachineExample/AI/BTService_CheckPlayerVisible.cpp | McOmghall/fg-ue4cpp-course-aux | 810f1633a607834b41cfdfbc63e9987ad9776709 | [
"Apache-2.0"
] | null | null | null | Source/StateMachineExample/AI/BTService_CheckPlayerVisible.cpp | McOmghall/fg-ue4cpp-course-aux | 810f1633a607834b41cfdfbc63e9987ad9776709 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "BTService_CheckPlayerVisible.h"
#include "../StateMachineExampleCharacter.h"
#include "DrawDebugHelpers.h"
#include "AIController.h"
#include "BehaviorTree/BlackboardComponent.h"
#include "BehaviorTree/Blackboard/BlackboardKeyAl... | 42.179104 | 204 | 0.779901 | McOmghall |
5ce0c8aae886423bd4dc8d8a7b6948f6555778cb | 181 | cpp | C++ | source/funzioni33.cpp | MACKHITH/C- | 50e976cb322966f8658304c27a040dec1cbd9468 | [
"Unlicense"
] | null | null | null | source/funzioni33.cpp | MACKHITH/C- | 50e976cb322966f8658304c27a040dec1cbd9468 | [
"Unlicense"
] | null | null | null | source/funzioni33.cpp | MACKHITH/C- | 50e976cb322966f8658304c27a040dec1cbd9468 | [
"Unlicense"
] | null | null | null | /*scrivere una funzione che scambia il contenuto di due variabili intere*/
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
return 0;
}
| 20.111111 | 75 | 0.696133 | MACKHITH |
5ce36b14a3bce0ee2b4f2555900be1d77976f729 | 2,330 | cpp | C++ | src/collectors/validator.cpp | RichardAH/valmond | 66965947fb5c7835af687ee2aa1fc00fc7f32eac | [
"MIT"
] | 4 | 2020-01-15T22:36:01.000Z | 2020-01-20T02:38:57.000Z | src/collectors/validator.cpp | RichardAH/valmond | 66965947fb5c7835af687ee2aa1fc00fc7f32eac | [
"MIT"
] | 1 | 2021-01-04T19:24:42.000Z | 2021-07-01T20:31:01.000Z | src/collectors/validator.cpp | RichardAH/valmond | 66965947fb5c7835af687ee2aa1fc00fc7f32eac | [
"MIT"
] | 3 | 2020-02-10T16:52:00.000Z | 2021-07-01T13:52:35.000Z | #include "validator.hpp"
#include <algorithm>
#include "common/http.hpp"
#include "common/config.hpp"
namespace collectors {
namespace validator {
// rpc method
// this may fail so should be another method as well
Json::Value
getFromRPC()
{
Config* config = Config::getInstance();
// rpc url
const std:... | 20.619469 | 91 | 0.553648 | RichardAH |
5ce871c21cce0a374b1afd6d188ca5517769243d | 103 | cpp | C++ | vision/src/main/cpp/BallProcessing.cpp | lachlan194924/2019-DeepSpace | 2da84af2e690839ef14b7e9c399b18e957409afd | [
"MIT"
] | null | null | null | vision/src/main/cpp/BallProcessing.cpp | lachlan194924/2019-DeepSpace | 2da84af2e690839ef14b7e9c399b18e957409afd | [
"MIT"
] | null | null | null | vision/src/main/cpp/BallProcessing.cpp | lachlan194924/2019-DeepSpace | 2da84af2e690839ef14b7e9c399b18e957409afd | [
"MIT"
] | null | null | null | #include <BallProcessing.h>
void BallProcessing::Init() {
}
void BallProcessing::Periodic() {
} | 11.444444 | 33 | 0.679612 | lachlan194924 |
5cf2f6238fc7e05fea580b41d4aaf157502d431f | 871 | cpp | C++ | Jubin/week8/boj-9465-topdown.cpp | lee20h/ALPS_2020_Summer_Study | 3656d5c6ab44f7f43c1f8c691e75352495c76adc | [
"Apache-2.0"
] | 1 | 2020-08-02T14:30:03.000Z | 2020-08-02T14:30:03.000Z | Jubin/week8/boj-9465-topdown.cpp | alps-jbnu/ALPS_2020_Summer_Study | 3656d5c6ab44f7f43c1f8c691e75352495c76adc | [
"Apache-2.0"
] | null | null | null | Jubin/week8/boj-9465-topdown.cpp | alps-jbnu/ALPS_2020_Summer_Study | 3656d5c6ab44f7f43c1f8c691e75352495c76adc | [
"Apache-2.0"
] | 2 | 2020-07-09T14:53:29.000Z | 2020-07-17T10:39:00.000Z | #include <cstdio>
#include <algorithm>
using namespace std;
enum
{
MAX = 100000
};
int N;
char scores[2][MAX];
int dp[MAX][3];
int sticker(int col, int status)
{
if (col == N)
{
return 0;
}
if (dp[col][status] != -1)
{
return dp[col][status];
}
int result = sticker(col + 1, 0);
if (status != 1)
{
... | 12.623188 | 61 | 0.484501 | lee20h |
5cf733809654939d67dad29942e619f9f22856cb | 460 | hpp | C++ | include/boost/parameter/config.hpp | dstrigl/mcotf | 92a9caf6173b1241a2f9ed45cd379469762b7178 | [
"BSL-1.0"
] | 460 | 2016-01-13T12:49:34.000Z | 2022-02-20T04:10:40.000Z | include/boost/parameter/config.hpp | dstrigl/mcotf | 92a9caf6173b1241a2f9ed45cd379469762b7178 | [
"BSL-1.0"
] | 24 | 2016-11-07T04:59:49.000Z | 2022-03-14T06:34:12.000Z | include/boost/parameter/config.hpp | dstrigl/mcotf | 92a9caf6173b1241a2f9ed45cd379469762b7178 | [
"BSL-1.0"
] | 148 | 2016-01-17T03:16:43.000Z | 2022-03-17T12:20:36.000Z | // Copyright Daniel Wallin, David Abrahams 2005. Use, modification and
// distribution is subject to the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PARAMETER_CONFIG_050403_HPP
#define BOOST_PARAMETER_CONFIG_0504... | 30.666667 | 76 | 0.793478 | dstrigl |
9dc7b3766e5b1e4644785176b7bb6f09c2ad5af5 | 1,278 | hpp | C++ | libs/core/include/fcppt/variant/output.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/variant/output.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/variant/output.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_VARIANT_OUTPUT_HPP_INCLUDED
#define FCPPT_VARIANT_OUTPUT_HPP_INCLUDED
#include <fcp... | 15.585366 | 78 | 0.690141 | pmiddend |
9dcfa0b1d872f81c749455de14024218e02b8c1a | 311 | cpp | C++ | Chapter_04/Source/Chapter_04/MyGameStateBase.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | 1 | 2020-10-26T10:11:26.000Z | 2020-10-26T10:11:26.000Z | Chapter_04/Source/Chapter_04/MyGameStateBase.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | null | null | null | Chapter_04/Source/Chapter_04/MyGameStateBase.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | 1 | 2020-10-26T10:11:36.000Z | 2020-10-26T10:11:36.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "MyGameStateBase.h"
AMyGameStateBase::AMyGameStateBase()
{
CurrentScore = 0;
}
int32 AMyGameStateBase::GetScore()
{
return CurrentScore;
}
void AMyGameStateBase::SetScore(int32 NewScore)
{
CurrentScore = NewScore;
}
| 16.368421 | 78 | 0.768489 | CoolHandNick80 |
9dd16809cf7383b7fc62f99a49ab243f4aecc055 | 2,871 | cpp | C++ | src/Vulkan/VkImageView.cpp | opersys/bbb-platform_external_swiftshader | 54561baf5b7bd68e572326bf99a0c7ae1ecd76a2 | [
"Apache-2.0"
] | null | null | null | src/Vulkan/VkImageView.cpp | opersys/bbb-platform_external_swiftshader | 54561baf5b7bd68e572326bf99a0c7ae1ecd76a2 | [
"Apache-2.0"
] | null | null | null | src/Vulkan/VkImageView.cpp | opersys/bbb-platform_external_swiftshader | 54561baf5b7bd68e572326bf99a0c7ae1ecd76a2 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 The SwiftShader Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required b... | 24.330508 | 121 | 0.760014 | opersys |
9dd32ba4fd0a5788fa0a3915a8a046f8c6017a8e | 1,863 | cpp | C++ | src/render/common/imageCache.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | 11 | 2021-11-29T10:32:29.000Z | 2022-02-13T12:11:26.000Z | src/render/common/imageCache.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | null | null | null | src/render/common/imageCache.cpp | ilidemi/visa-viz | 2f7eb55b9f2b2dedf0b7dbe224cfda59f1958926 | [
"MIT"
] | null | null | null | #pragma once
#include "glUtil.cpp"
#include "texture.cpp"
#include <string.h>
#include <webgl/webgl2.h>
#define _MAX_TEXTURES 256
struct ImageCache
{
Texture textures[_MAX_TEXTURES] = {};
unsigned int lastUsed[_MAX_TEXTURES] = {};
unsigned int epoch = 0;
bool isWebGl2;
void init(bool isWebGl2)
... | 29.571429 | 106 | 0.572195 | ilidemi |
9dd5e979a7b5efc0f0b83c93cebafad0817b7a2f | 182 | hpp | C++ | src/vulkan_device_score.hpp | AbitTheGray/VulkanHppTest | 9bf0aca072bb43989d8e79bc4215ab76866349a5 | [
"MIT"
] | null | null | null | src/vulkan_device_score.hpp | AbitTheGray/VulkanHppTest | 9bf0aca072bb43989d8e79bc4215ab76866349a5 | [
"MIT"
] | null | null | null | src/vulkan_device_score.hpp | AbitTheGray/VulkanHppTest | 9bf0aca072bb43989d8e79bc4215ab76866349a5 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <vulkan/vulkan.hpp>
uint32_t vulkan_default_score(vk::Instance& instance, const vk::PhysicalDevice& physicalDevice, int* queueScore_ptr);
| 22.75 | 117 | 0.791209 | AbitTheGray |
9dddafdf77aa16888fabeb8300f1d363c3e642f4 | 1,065 | cpp | C++ | src/prod/src/Federation/FederationEventSource.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Federation/FederationEventSource.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Federation/FederationEventSource.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
Common::G... | 81.923077 | 154 | 0.723944 | vishnuk007 |
9ddf10150583f9228fb7f9b52ffe9e01355e9b3b | 525 | cpp | C++ | atcoder/others/nomura/2020/a.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/others/nomura/2020/a.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/others/nomura/2020/a.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
int dx4[4] = {1,0,-1,0}, dy4[4] = {0,1... | 17.5 | 58 | 0.525714 | yu3mars |
9de11d179d0d2c84275e1730ed21470b389f100f | 5,020 | cpp | C++ | LTSD.cpp | StevenLOL/vad_for_voip | e928c7abdeb1a13641ed2dde6bada8bc63e7128e | [
"WTFPL"
] | 16 | 2016-12-30T04:14:18.000Z | 2021-06-15T02:03:10.000Z | LTSD.cpp | StevenLOL/vad_for_voip | e928c7abdeb1a13641ed2dde6bada8bc63e7128e | [
"WTFPL"
] | null | null | null | LTSD.cpp | StevenLOL/vad_for_voip | e928c7abdeb1a13641ed2dde6bada8bc63e7128e | [
"WTFPL"
] | 6 | 2017-04-23T01:34:50.000Z | 2021-05-02T01:56:07.000Z | /*
* LTSD.cpp
*
* Created on: 2015/11/18
* Author: Shunsuke Aihara (aihara@argmax.jp)
*/
#include "LTSD.h"
//#include <android/log.h>
//#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_VERBOSE, "vaddsp-jni", __VA_ARGS__))
LTSD::LTSD(int winsize, int samprate, int order, double e0, double e1, doub... | 22.410714 | 103 | 0.596614 | StevenLOL |
9de355b37784460c23087c60499c75f1821dde21 | 116 | cpp | C++ | sdl1/rockbot/file/fio_common.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/rockbot/file/fio_common.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/rockbot/file/fio_common.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | #include "file/fio_common.h"
#include "defines.h"
#include "file/v4/file_save_v4.h"
fio_common::fio_common()
{
}
| 11.6 | 33 | 0.715517 | pdpdds |
9de3c6036ed02f74a0937ec69673cb0bee7366c7 | 2,953 | inl | C++ | Pulsip/include/Pulsip/Segment.inl | Aifryz/Pulsip | 8406653c30a2aecf110c843beaf3f3b796d6a2a9 | [
"Zlib"
] | null | null | null | Pulsip/include/Pulsip/Segment.inl | Aifryz/Pulsip | 8406653c30a2aecf110c843beaf3f3b796d6a2a9 | [
"Zlib"
] | null | null | null | Pulsip/include/Pulsip/Segment.inl | Aifryz/Pulsip | 8406653c30a2aecf110c843beaf3f3b796d6a2a9 | [
"Zlib"
] | null | null | null | #ifndef PULSIP_SEGMENT_INL
#define PULSIP_SEGMENT_INL
template<class TileType>
Segment<TileType>::Segment()
{
//Empty constructor, all data members properly initialised
}
template<class TileType>
void Segment<TileType>::create(TileMapConfig config, sf::Vector2u position)
{
m_config = config;
m_vertices.resize(... | 46.873016 | 157 | 0.7064 | Aifryz |
9de7882a2b8902dfd078e0368bb91931b1047034 | 1,641 | hpp | C++ | pulsar/util/IterTools.hpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/util/IterTools.hpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/util/IterTools.hpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/** \file IterTools.hpp
* \brief Helper classes for iterating
* \author Ryan M. Richard
* \version 1.0
* \date May 23, 2016
*... | 25.640625 | 79 | 0.645948 | pulsar-chem |
9de8e37c3e2b0d8858f0f72866d10efa0a07631f | 3,420 | cc | C++ | test/dasa/ds/graph/test_adj_table_graph.cc | suluner/dasa | ae327ea5f998c258b8d4a8c7b8ad4dcc12c1bf7d | [
"Apache-2.0"
] | null | null | null | test/dasa/ds/graph/test_adj_table_graph.cc | suluner/dasa | ae327ea5f998c258b8d4a8c7b8ad4dcc12c1bf7d | [
"Apache-2.0"
] | null | null | null | test/dasa/ds/graph/test_adj_table_graph.cc | suluner/dasa | ae327ea5f998c258b8d4a8c7b8ad4dcc12c1bf7d | [
"Apache-2.0"
] | null | null | null | /* Copyright 2022 Hu Ting. All Rights Reserved.
==============================================*/
#include <gtest/gtest.h>
#include <iostream>
#include <fstream>
#include <memory>
#include "dasa/ds/graph/adj_table_graph.h"
using dasa::ds::AdjTableGraph;
using dasa::ds::Edge;
std::unique_ptr<AdjTableGraph> BuildGrap... | 24.963504 | 72 | 0.61462 | suluner |
9dea03e767bbd825b94e56f38505d1ff0a961a37 | 909 | hpp | C++ | lib/inquisitive/zip.hpp | fcharlie/FileViewer | 56861b3d3a62ea16becea965bc3bc0198f28e26a | [
"MIT"
] | 3 | 2019-03-19T09:24:09.000Z | 2021-05-17T11:21:24.000Z | lib/inquisitive/zip.hpp | fcharlie/FileViewer | 56861b3d3a62ea16becea965bc3bc0198f28e26a | [
"MIT"
] | null | null | null | lib/inquisitive/zip.hpp | fcharlie/FileViewer | 56861b3d3a62ea16becea965bc3bc0198f28e26a | [
"MIT"
] | 1 | 2019-11-20T05:11:30.000Z | 2019-11-20T05:11:30.000Z | //// ZIP
#ifndef INQUISITIVE_ZIP_HPP
#define INQUISITIVE_ZIP_HPP
#include <cstdint>
// https://en.wikipedia.org/wiki/Zip_(file_format)
namespace inquisitive {
// LE
#pragma pack(2)
struct zip_file_header_t {
uint8_t magic[4]; //{'P','K','',''} // 0x04034b50 LE
uint16_t version;
uint16_t bitflag;
uint16_t metho... | 20.2 | 54 | 0.746975 | fcharlie |
9dede72688ad2c3b9e92550cf52f30946b19c1bc | 2,795 | hpp | C++ | include/JetBrains/Annotations/AspTypePropertyAttribute.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/JetBrains/Annotations/AspTypePropertyAttribute.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/JetBrains/Annotations/AspTypePropertyAttribute.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Attribute
#include "System/Attribute.hpp"
#include "extern/bea... | 51.759259 | 141 | 0.745259 | darknight1050 |
9def4c8fac48439613e962ef16ab865d5b3a3aa4 | 4,502 | cpp | C++ | auto_switches_vars/auto_switches_vars.cpp | rewrking/DynRPG-plugin-archive | bcfbb0e070da4724dc2dd6c893d07d3aa4179420 | [
"MIT"
] | null | null | null | auto_switches_vars/auto_switches_vars.cpp | rewrking/DynRPG-plugin-archive | bcfbb0e070da4724dc2dd6c893d07d3aa4179420 | [
"MIT"
] | null | null | null | auto_switches_vars/auto_switches_vars.cpp | rewrking/DynRPG-plugin-archive | bcfbb0e070da4724dc2dd6c893d07d3aa4179420 | [
"MIT"
] | null | null | null | // Auto Switches
// by PepsiOtaku
// Version 2.0
#include <DynRPG/DynRPG.h>
//#include <sstream> // For std::stringstream
#include <vector>
std::map<std::string, std::string> configuration;
unsigned short int confMasterSwitch; // 4041
// structure to hold event heirarchy
struct aswitch {
int mapId; // map
in... | 33.348148 | 109 | 0.544647 | rewrking |
9df03a1b119283063cfd55a4dddb8cf57fc88480 | 1,289 | hpp | C++ | include/dish2/config/setup.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | 1 | 2021-02-12T23:53:55.000Z | 2021-02-12T23:53:55.000Z | include/dish2/config/setup.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | include/dish2/config/setup.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | #pragma once
#ifndef DISH2_CONFIG_SETUP_HPP_INCLUDE
#define DISH2_CONFIG_SETUP_HPP_INCLUDE
#include <limits>
#include <string>
#include "../../../third-party/conduit/include/uitsl/mpi/comm_utils.hpp"
#include "../../../third-party/conduit/include/uitsl/mpi/mpi_flex_guard.hpp"
#include "../../../third-party/Empirical/... | 25.78 | 79 | 0.720714 | schregardusc |
9dffa933540e550d06a01ad49689362a7acf721d | 18,250 | cc | C++ | atmosphere/model/nishita/nishita96.cc | IanMaquignaz/clear-sky-models | a8168f6b17b817c0fd76eb819f01a75be728f3b8 | [
"BSD-3-Clause"
] | 78 | 2016-12-28T05:05:03.000Z | 2022-03-21T21:54:44.000Z | atmosphere/model/nishita/nishita96.cc | IanMaquignaz/clear-sky-models | a8168f6b17b817c0fd76eb819f01a75be728f3b8 | [
"BSD-3-Clause"
] | 4 | 2017-11-25T00:34:19.000Z | 2020-09-30T13:02:27.000Z | atmosphere/model/nishita/nishita96.cc | IanMaquignaz/clear-sky-models | a8168f6b17b817c0fd76eb819f01a75be728f3b8 | [
"BSD-3-Clause"
] | 22 | 2017-04-25T14:36:06.000Z | 2022-03-21T21:54:58.000Z | /**
Copyright (c) 2015 Eric Bruneton
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the follo... | 40.465632 | 80 | 0.685918 | IanMaquignaz |
3b06b1e426e2adc25967a3eb59d1e940b543e912 | 8,270 | cpp | C++ | NumberWithUnits.cpp | Asif-Rot/cpp_number-with-units-b | cc76871e4bb06ed0bc0e67680f8b2c790994121a | [
"MIT"
] | null | null | null | NumberWithUnits.cpp | Asif-Rot/cpp_number-with-units-b | cc76871e4bb06ed0bc0e67680f8b2c790994121a | [
"MIT"
] | null | null | null | NumberWithUnits.cpp | Asif-Rot/cpp_number-with-units-b | cc76871e4bb06ed0bc0e67680f8b2c790994121a | [
"MIT"
] | null | null | null | #include <iostream>
#include "NumberWithUnits.hpp"
#include <unordered_map>
using namespace std;
namespace ariel {
const double EPS = 0.0001;
static unordered_map<string, unordered_map<string, double>> units;
static double converted;
void NumberWithUnits::read_units(std::ifstream& file) {
dou... | 32.687747 | 110 | 0.515236 | Asif-Rot |
3b0ebc7190c8b0c9e8a6b841b6decfe08d2b8f18 | 143 | cpp | C++ | remove-duplicates-from-sorted-array/remove-duplicates-from-sorted-array.cpp | siddharthshenoy/LEET | 130a7c526417ea9d1896553c8f048e248d4bba35 | [
"MIT"
] | null | null | null | remove-duplicates-from-sorted-array/remove-duplicates-from-sorted-array.cpp | siddharthshenoy/LEET | 130a7c526417ea9d1896553c8f048e248d4bba35 | [
"MIT"
] | null | null | null | remove-duplicates-from-sorted-array/remove-duplicates-from-sorted-array.cpp | siddharthshenoy/LEET | 130a7c526417ea9d1896553c8f048e248d4bba35 | [
"MIT"
] | null | null | null | class Solution {
public:
int removeDuplicates(vector<int>& v) {
v.erase(std::unique(v.begin(), v.end()), v.end());
return v.size();
}
}; | 11.916667 | 51 | 0.615385 | siddharthshenoy |
3b2122669b1c8647df07acea57d298097b3d6d2c | 6,971 | cpp | C++ | src/ModelManagerT.cpp | XiaoyongBai/MPM | 24279ac90b39fc1c1bbdded7b7be6741ffc14f78 | [
"MIT"
] | 2 | 2019-06-25T18:42:42.000Z | 2019-06-25T18:42:47.000Z | src/ModelManagerT.cpp | XiaoyongBai/MPM | 24279ac90b39fc1c1bbdded7b7be6741ffc14f78 | [
"MIT"
] | null | null | null | src/ModelManagerT.cpp | XiaoyongBai/MPM | 24279ac90b39fc1c1bbdded7b7be6741ffc14f78 | [
"MIT"
] | 3 | 2020-03-26T15:19:42.000Z | 2022-03-09T13:39:42.000Z | /* created by Xiaoyong Bai at CU Boulder, 07/17/2018 */
#include <iostream>
#include "ModelManagerT.h"
#include "ShapeBaseT.h"
#include "ElementBaseT.h"
using namespace std;
using namespace MPM;
ModelManagerT::ModelManagerT(){
}
ModelManagerT::~ModelManagerT(){
}
void ModelManagerT::readInput(const char* name... | 26.405303 | 107 | 0.541242 | XiaoyongBai |
3b2184dea8e17be1252658bc1ae8558c4520e37d | 4,697 | cpp | C++ | source/frontend/views/custom_widgets/rmv_carousel_allocation_sizes.cpp | GPUOpen-Tools/radeon_memory_visualizer | 309ac5b04b870aef408603eaac4bd727d5d3e698 | [
"MIT"
] | 86 | 2020-05-14T17:20:22.000Z | 2022-01-21T22:53:24.000Z | source/frontend/views/custom_widgets/rmv_carousel_allocation_sizes.cpp | GPUOpen-Tools/radeon_memory_visualizer | 309ac5b04b870aef408603eaac4bd727d5d3e698 | [
"MIT"
] | 6 | 2020-05-16T18:50:00.000Z | 2022-01-21T15:30:16.000Z | source/frontend/views/custom_widgets/rmv_carousel_allocation_sizes.cpp | GPUOpen-Tools/radeon_memory_visualizer | 309ac5b04b870aef408603eaac4bd727d5d3e698 | [
"MIT"
] | 11 | 2020-10-15T15:55:56.000Z | 2022-03-16T20:38:29.000Z | //=============================================================================
// Copyright (c) 2018-2021 Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief Implementation of the carousel allocation sizes widget.
//==============================================... | 35.052239 | 141 | 0.647222 | GPUOpen-Tools |
3b2541d23dc98f79e6b0f3c679767f8fb866b218 | 10,398 | cpp | C++ | raygame/Graph.cpp | jeremyjflowers/AIClassExample | 36aeb0f05b3db3c81b65cb727e659ae8eaa202d2 | [
"MIT"
] | null | null | null | raygame/Graph.cpp | jeremyjflowers/AIClassExample | 36aeb0f05b3db3c81b65cb727e659ae8eaa202d2 | [
"MIT"
] | null | null | null | raygame/Graph.cpp | jeremyjflowers/AIClassExample | 36aeb0f05b3db3c81b65cb727e659ae8eaa202d2 | [
"MIT"
] | null | null | null | #include "Graph.h"
#include "Node.h"
#include "Edge.h"
#include <raylib.h>
#include <deque>
Graph::Graph(int width, int height, int nodeSize, int nodeSpacing)
{
m_width = width;
m_height = height;
createGraph(nodeSize, nodeSpacing);
}
void Graph::draw()
{
for (int i = 0; i < m_nodes.size(); i++)
{
m_nodes[i]-... | 25.995 | 100 | 0.676861 | jeremyjflowers |
3b29944ed3fd5fa5da83cb504a6ec740f62ae8fb | 3,459 | cc | C++ | server/fs_driver.cc | yux20000304/indexfs | e0b9a742e2fe9b231f06803a5af2e0c596e0d7c6 | [
"BSD-3-Clause"
] | 2 | 2021-05-29T07:27:23.000Z | 2022-02-26T18:16:07.000Z | server/fs_driver.cc | yux20000304/indexfs | e0b9a742e2fe9b231f06803a5af2e0c596e0d7c6 | [
"BSD-3-Clause"
] | null | null | null | server/fs_driver.cc | yux20000304/indexfs | e0b9a742e2fe9b231f06803a5af2e0c596e0d7c6 | [
"BSD-3-Clause"
] | 3 | 2021-01-18T03:42:53.000Z | 2022-01-02T14:50:03.000Z | // Copyright (c) 2014 The IndexFS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <vector>
#include "ipc/rpc.h"
#include "server/fs_driver.h"
#include "server/index_server.h"
... | 24.531915 | 85 | 0.679387 | yux20000304 |
3b2ddf1f2b7e096d8daa6b2a48f65494ddce0f34 | 175 | hpp | C++ | PwnAdventure3/CProcessOneTime.hpp | vm-enter/PwnAdventure3 | 579956d935bb8adc802281dd6df2050c3b4afb28 | [
"MIT"
] | 1 | 2021-02-24T03:52:56.000Z | 2021-02-24T03:52:56.000Z | PwnAdventure3/CProcessOneTime.hpp | vm-enter/PwnAdventure3 | 579956d935bb8adc802281dd6df2050c3b4afb28 | [
"MIT"
] | null | null | null | PwnAdventure3/CProcessOneTime.hpp | vm-enter/PwnAdventure3 | 579956d935bb8adc802281dd6df2050c3b4afb28 | [
"MIT"
] | null | null | null | #pragma once
class CProcessOneTime
{
public:
CProcessOneTime(DWORD tTimeout);
~CProcessOneTime();
public:
BOOL Try();
private:
DWORD m_tStartTime;
DWORD m_tTimeout;
}; | 11.666667 | 33 | 0.748571 | vm-enter |
3b318ae2e852814ec288b25f3494e3298179dc22 | 5,419 | cpp | C++ | Actor/Characters/Enemy/GBoxEnemy_Close/State/States/State_GBEC_DashAttack.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/GBoxEnemy_Close/State/States/State_GBEC_DashAttack.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/GBoxEnemy_Close/State/States/State_GBEC_DashAttack.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "State_GBEC_DashAttack.h"
#include "Libraries/Components/AnimationMng/Cpt_AnimationMng.h"
#include "Kismet/KismetMathLibrary.h"
#include "Libraries/Components/ParticleMng/Cpt_ParticleMng.h"
#include "Libraries/Components/CamShake/C... | 31.690058 | 177 | 0.732054 | Bornsoul |
3b39dbafc7b2a3787954f9e6c2bc1abcaade866b | 8,067 | cpp | C++ | PineEngine/Source/Pine/Components/RendererComponent.cpp | BradleyMarden/PineEngine | 089cb6853a59ab37b484bb7442932da3f1ab079b | [
"Apache-2.0"
] | null | null | null | PineEngine/Source/Pine/Components/RendererComponent.cpp | BradleyMarden/PineEngine | 089cb6853a59ab37b484bb7442932da3f1ab079b | [
"Apache-2.0"
] | null | null | null | PineEngine/Source/Pine/Components/RendererComponent.cpp | BradleyMarden/PineEngine | 089cb6853a59ab37b484bb7442932da3f1ab079b | [
"Apache-2.0"
] | null | null | null | #include "RendererComponent.h"
namespace Pine
{
void RendererComponent::DrawQuad(const glm::vec2& p_Pos, const glm::vec2& p_Size, const glm::vec4& p_Color, LayerLevel p_Level)
{
std::shared_ptr<Quad> _Quad = std::make_shared<Quad>();
_Quad->s_Pos = p_Pos;
_Quad->s_Size= p_Size;
_Quad->s_Color = p_Color;
... | 30.441509 | 182 | 0.671129 | BradleyMarden |
3b3cdbffba8de7c75a83c7888c42d03420bc65f3 | 963 | hpp | C++ | test/test_suite/test_suite_events.hpp | fargies/rapidyaml | 6fd373c860b1eef3b190a521acabebc2fd2dcb04 | [
"MIT"
] | null | null | null | test/test_suite/test_suite_events.hpp | fargies/rapidyaml | 6fd373c860b1eef3b190a521acabebc2fd2dcb04 | [
"MIT"
] | null | null | null | test/test_suite/test_suite_events.hpp | fargies/rapidyaml | 6fd373c860b1eef3b190a521acabebc2fd2dcb04 | [
"MIT"
] | null | null | null | #ifndef C4_YML_TEST_SUITE_EVENTS_HPP_
#define C4_YML_TEST_SUITE_EVENTS_HPP_
#ifdef RYML_SINGLE_HEADER
#include <ryml_all.hpp>
#else
#include <c4/yml/tree.hpp>
#endif
namespace c4 {
namespace yml {
struct EventsParser
{
void parse(csubstr src, Tree *C4_RESTRICT tree);
};
size_t emit_events(substr buf, Tree const... | 20.934783 | 72 | 0.720665 | fargies |
3b41f1b6e572a72c06dfee29038849518d7e4a0e | 9,301 | hpp | C++ | code/common/include/common/data/instances/orlibrary/orlibrary.hpp | pinam45/USCP | a1a41e33c4fd1c760ff642356b242e4ebf901936 | [
"MIT"
] | 1 | 2020-03-02T23:22:42.000Z | 2020-03-02T23:22:42.000Z | code/common/include/common/data/instances/orlibrary/orlibrary.hpp | pinam45/USCP | a1a41e33c4fd1c760ff642356b242e4ebf901936 | [
"MIT"
] | null | null | null | code/common/include/common/data/instances/orlibrary/orlibrary.hpp | pinam45/USCP | a1a41e33c4fd1c760ff642356b242e4ebf901936 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2019 Maxime Pinard
//
// Distributed under the MIT license
// See accompanying file LICENSE or copy at
// https://opensource.org/licenses/MIT
//
#ifndef USCP_ORLIBRARY_HPP
#define USCP_ORLIBRARY_HPP
#include "common/data/instance.hpp"
#include <filesystem>
#define ORLIBRARY_ORLIBRARY_INSTANCES_FO... | 75.617886 | 96 | 0.598968 | pinam45 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.