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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b827f393bca7a9f7e5e33585c856549637422e2 | 412 | hpp | C++ | include/awl/backends/windows/cursor/convert_predefined.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/windows/cursor/convert_predefined.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/windows/cursor/convert_predefined.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #ifndef AWL_BACKENDS_WINDOWS_CURSOR_CONVERT_PREDEFINED_HPP_INCLUDED
#define AWL_BACKENDS_WINDOWS_CURSOR_CONVERT_PREDEFINED_HPP_INCLUDED
#include <awl/cursor/type_fwd.hpp>
#include <awl/detail/symbol.hpp>
#include <fcppt/char_type.hpp>
namespace awl
{
namespace backends
{
namespace windows
{
namespace cursor
{
AWL_DE... | 15.846154 | 67 | 0.820388 | freundlich |
9b83448eea570ed631b34ed9b411808a959f512e | 890 | cc | C++ | CPPQEDelements/interactions/ParsParticleCavity.cc | bartoszek/cppqed | 712b601e377642885f40cbf8a65eb1525360f654 | [
"BSL-1.0"
] | 5 | 2021-02-21T14:00:54.000Z | 2021-07-29T15:12:11.000Z | CPPQEDelements/interactions/ParsParticleCavity.cc | bartoszek/cppqed | 712b601e377642885f40cbf8a65eb1525360f654 | [
"BSL-1.0"
] | 10 | 2020-04-14T11:18:02.000Z | 2021-07-04T20:11:23.000Z | CPPQEDelements/interactions/ParsParticleCavity.cc | bartoszek/cppqed | 712b601e377642885f40cbf8a65eb1525360f654 | [
"BSL-1.0"
] | 2 | 2021-01-25T10:16:35.000Z | 2021-01-28T18:29:01.000Z | // Copyright András Vukics 2006–2020. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt)
#include "ParsParticleCavity.h"
#include "Pars.h"
particlecavity::ParsGenericPump::ParsGenericPump(parameters::Table& p, const std::string& mod)
: etaeff(p.add("etaeff",mod,"Particle... | 44.5 | 132 | 0.740449 | bartoszek |
9b83abce38a7c902363aee0feeeced26135c4ff9 | 156 | cpp | C++ | kfr/cmake/detect_cpu.cpp | yekm/gate_recorder | e76fda4a6d67672c0c2d7802417116ac3c1a1896 | [
"MIT"
] | null | null | null | kfr/cmake/detect_cpu.cpp | yekm/gate_recorder | e76fda4a6d67672c0c2d7802417116ac3c1a1896 | [
"MIT"
] | 1 | 2021-02-25T14:20:19.000Z | 2021-02-25T14:24:03.000Z | kfr/cmake/detect_cpu.cpp | For-The-Birds/gate_recorder | e76fda4a6d67672c0c2d7802417116ac3c1a1896 | [
"MIT"
] | null | null | null | #include <kfr/runtime/cpuid.hpp>
using namespace kfr;
int main()
{
cpu_t cpu = kfr::internal_generic::detect_cpu();
printf("%s", cpu_name(cpu));
} | 17.333333 | 52 | 0.666667 | yekm |
9b86206ad70bb122a452b61b6e40c23067127a31 | 231 | cpp | C++ | 30_days_of_code/scope.cpp | williamfdevine/hackerrank | 80045f708d84feafd9af9094c02ce5b08ba43797 | [
"MIT"
] | null | null | null | 30_days_of_code/scope.cpp | williamfdevine/hackerrank | 80045f708d84feafd9af9094c02ce5b08ba43797 | [
"MIT"
] | null | null | null | 30_days_of_code/scope.cpp | williamfdevine/hackerrank | 80045f708d84feafd9af9094c02ce5b08ba43797 | [
"MIT"
] | null | null | null | /**
@file scope.cpp
*/
Difference(std::vector<int> element_list): elements(element_list) {;}
void computeDifference(void)
{
std::sort(elements.begin(), elements.end());
maximumDifference = elements.back() - elements.front();
} | 21 | 69 | 0.709957 | williamfdevine |
9b88ff40df4e0712115961d7447c79717dce908e | 944 | cpp | C++ | cmygraphicsview.cpp | njfever/njCsSprite | c1aa6c148f837c8e46fe9bc69977fe9b220ede54 | [
"Zlib"
] | null | null | null | cmygraphicsview.cpp | njfever/njCsSprite | c1aa6c148f837c8e46fe9bc69977fe9b220ede54 | [
"Zlib"
] | null | null | null | cmygraphicsview.cpp | njfever/njCsSprite | c1aa6c148f837c8e46fe9bc69977fe9b220ede54 | [
"Zlib"
] | null | null | null | /*
Copyright (C) 2013-2014 njfever@163.com
For conditions of distribution and use, see copyright notice in dataDefine.h
*/
#include "cmygraphicsview.h"
#include "csprite.h"
#include <QScrollBar>
CMyGraphicsView::CMyGraphicsView(QWidget * parent) :
QGraphicsView(parent)
{
setViewportUpdateMode(... | 26.222222 | 106 | 0.71822 | njfever |
9b8ade16965c1ec11c912e5e1f84680598130462 | 736 | cc | C++ | L9/1 - P28318 - Files i columnes/ex1.cc | angelgomezsa/Cplusplus | 9fd1ed5b1beffcf253019e8376b2bd41dac6e449 | [
"MIT"
] | null | null | null | L9/1 - P28318 - Files i columnes/ex1.cc | angelgomezsa/Cplusplus | 9fd1ed5b1beffcf253019e8376b2bd41dac6e449 | [
"MIT"
] | null | null | null | L9/1 - P28318 - Files i columnes/ex1.cc | angelgomezsa/Cplusplus | 9fd1ed5b1beffcf253019e8376b2bd41dac6e449 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
typedef vector<int> row;
typedef vector<row> matrix;
int main() {
int n,m;
cin >> n >> m;
matrix matrix(n,row(m));
for (int i=0;i<n;i++) {
for(int j=0;j<m;j++) {
cin >> matrix[i][j];
}
}
string p;
int x,y;
while (cin >> p) {
if (p == "f... | 16.727273 | 44 | 0.425272 | angelgomezsa |
9b8bbe3a0bed388e00a6f26b7f5f54c9d6327c6c | 1,836 | cpp | C++ | src/Tests/OutlineTest.cpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 15 | 2022-01-21T10:48:04.000Z | 2022-03-27T17:55:11.000Z | src/Tests/OutlineTest.cpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | null | null | null | src/Tests/OutlineTest.cpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 4 | 2022-01-21T10:48:05.000Z | 2022-01-22T15:42:34.000Z | #include "ssGUI/HeaderGroups/StandardGroup.hpp"
#include "ssGUI/Extensions/Outline.hpp"
#include "ssGUI/Extensions/RoundedCorners.hpp"
#include "ssGUI/Extensions/Shape.hpp"
//Outline test
int main()
{
//Create the main window
ssGUI::MainWindow mainWindow;
mainWindow.SetSize(glm::ivec2(800, 800));
main... | 36 | 103 | 0.697712 | Neko-Box-Coder |
9b8ced1c8026ce715aa55a8fe95196ff9ecbb9a4 | 1,487 | cpp | C++ | client/src/ui/explosion.cpp | gabyrobles93/worms-game-remake | b97781f39369f807ae8c8316f7f313353d7a2df7 | [
"MIT"
] | 2 | 2019-04-24T18:27:29.000Z | 2020-04-06T17:15:34.000Z | client/src/ui/explosion.cpp | gabyrobles93/tp-final-taller | b97781f39369f807ae8c8316f7f313353d7a2df7 | [
"MIT"
] | null | null | null | client/src/ui/explosion.cpp | gabyrobles93/tp-final-taller | b97781f39369f807ae8c8316f7f313353d7a2df7 | [
"MIT"
] | null | null | null | #include "explosion.h"
View::Explosion::Explosion(SDL_Renderer * r, int ratio, std::string weapon) :
sprite(EXPLOSION_FPC, ONLY_GOING) {
this->texture.loadFromFile(gPath.PATH_EXPLOSION_EFFECT, r);
this->width = ratio * 2;
this->height = ratio * 2;
this->x = 0;
this->y = 0;
this->sprite.setSpriteSheet(&t... | 23.603175 | 92 | 0.661735 | gabyrobles93 |
9b8ddf5f15d6f0254c70327f753295ca3d9c2608 | 1,576 | cpp | C++ | Lutece/28.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Lutece/28.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Lutece/28.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <map>
#include <cstdio>
#include <cstring>
#include <iostream>
#define MAXN 8
using namespace std;
inline void min(int &a, int b)
{
if (a > b) a = b;
return ;
}
inline void max(int &a, int b)
{
if (a < b) a = b;
return ;
}
const int dice[24][6] =
{
{1, 2, 3, 4, 5, 6}, {1, 4, 2, 5, 3, 6},
{1, 5, 4, 3, 2... | 18.761905 | 62 | 0.430203 | HeRaNO |
9b8e56ad441dd00df92e688a1d36bd8665da47d0 | 2,213 | cc | C++ | 33-print-table-of-processes/print-table-of-processes.cc | yans0ng/coding-is-life | 1a6842e60adee914e49c3d8dc88d1000566d9561 | [
"MIT"
] | null | null | null | 33-print-table-of-processes/print-table-of-processes.cc | yans0ng/coding-is-life | 1a6842e60adee914e49c3d8dc88d1000566d9561 | [
"MIT"
] | null | null | null | 33-print-table-of-processes/print-table-of-processes.cc | yans0ng/coding-is-life | 1a6842e60adee914e49c3d8dc88d1000566d9561 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
enum class ProcessStatus { SUSPENDED, RUNNING };
std::ostream &operator<<(std::ostream &os, const ProcessStatus &status) {
if (status == ProcessStatus::SUSPENDED) {
os << "suspended";
} else if (status == ProcessS... | 33.530303 | 103 | 0.60732 | yans0ng |
9b8f91417d1bf4c9c52ab10a9bfa204053f916e6 | 4,748 | cpp | C++ | ds/security/csps/cryptoflex/slbcsp/uuid.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/csps/cryptoflex/slbcsp/uuid.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/csps/cryptoflex/slbcsp/uuid.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // Uuid.h -- Universally Unique IDentifier functor wrapper implementation to
// create and manage UUIDs
// (c) Copyright Schlumberger Technology Corp., unpublished work, created
// 1999. This computer program includes Confidential, Proprietary
// Information and is a Trade Secret of Schlumberger Technology Corp. ... | 28.094675 | 80 | 0.48294 | npocmaka |
9b9158e9200f5ff92a602a46da0146e45ae81f13 | 645 | cc | C++ | matlab/gbvs/algsrc/mexColumnNormalize.cc | hertzmann/vislab | fcded208637fb51edfeaef1bde0bf766f9af1941 | [
"BSD-2-Clause"
] | 113 | 2015-01-20T18:13:21.000Z | 2021-08-08T05:17:57.000Z | matlab/gbvs/algsrc/mexColumnNormalize.cc | Jai-Chaudhary/vislab | 9bb0e2b332797d7a6deb2b8d6b6e98d3c692cee6 | [
"BSD-2-Clause"
] | 2 | 2015-06-08T18:10:22.000Z | 2017-10-10T02:45:53.000Z | GBVS/algsrc/mexColumnNormalize.cc | Sissuire/RR-IQA-AVCD | 0e806df382204e2f4e75926d0221549c26992ada | [
"FSFAP"
] | 70 | 2015-01-07T03:08:05.000Z | 2022-02-13T13:04:04.000Z | #include <stdio.h>
#include <stdlib.h>
#include <mex.h>
#include <math.h>
#include <matrix.h>
#include <string.h>
// Normalizes so that each column sums to one
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {
//Declarations
mxArray *Aar;
double *A;
double s;
int i,j,numR,numC,... | 18.428571 | 78 | 0.568992 | hertzmann |
9b91ffcdc766074ad64803a2c277634348734c52 | 8,454 | cpp | C++ | raven/graphics/VulkanSwapChain.cpp | nielsuiterwijk/vulkan | b2d5c7d23f7a16d9fdb9ba2796051da4d9e66e05 | [
"MIT"
] | 2 | 2019-11-28T12:42:44.000Z | 2021-07-02T12:50:20.000Z | raven/graphics/VulkanSwapChain.cpp | nielsuiterwijk/vulkan | b2d5c7d23f7a16d9fdb9ba2796051da4d9e66e05 | [
"MIT"
] | null | null | null | raven/graphics/VulkanSwapChain.cpp | nielsuiterwijk/vulkan | b2d5c7d23f7a16d9fdb9ba2796051da4d9e66e05 | [
"MIT"
] | null | null | null | #include "VulkanSwapChain.h"
#include "GraphicsDevice.h"
#include "VulkanInstance.h"
#include "graphics\GraphicsContext.h"
#include "helpers\VulkanHelpers.h"
#include "vec2.hpp"
#include <algorithm>
VulkanSwapChain::VulkanSwapChain() :
surface( GraphicsContext::VulkanInstance->GetNative(), vkDestroySurfaceKHR, Grap... | 30.085409 | 199 | 0.763071 | nielsuiterwijk |
9b9fa50de1c25a3022e43e54baadf28e6d5128bd | 595 | hpp | C++ | FaceLandmarking/math/point.hpp | TomaszRewak/FaceLandmarking | 74bc5cbcdb61cd9835e5bfc61e978fad256940f4 | [
"MIT"
] | 78 | 2018-02-09T14:30:06.000Z | 2020-10-01T08:43:32.000Z | FaceLandmarking/math/point.hpp | YoungerGao/Face-Landmarking | 74bc5cbcdb61cd9835e5bfc61e978fad256940f4 | [
"MIT"
] | 1 | 2019-03-20T00:16:47.000Z | 2019-03-24T09:12:25.000Z | FaceLandmarking/math/point.hpp | YoungerGao/Face-Landmarking | 74bc5cbcdb61cd9835e5bfc61e978fad256940f4 | [
"MIT"
] | 8 | 2019-03-03T11:57:43.000Z | 2021-07-01T09:27:20.000Z | #pragma once
#include "vector.hpp"
namespace FaceLandmarking::Math {
template<typename T>
struct Point {
T x;
T y;
Point()
{ }
Point(T x, T y):
x(x),
y(y)
{ }
Point<T> operator+(const Vector<T>& vector) const
{
return Point<T>(x + vector.x, y + vector.y);
}
void operator+=(const Ve... | 14.875 | 51 | 0.566387 | TomaszRewak |
9ba16e2b3b2e7967375bb965138ec895aebf545a | 1,970 | hpp | C++ | include/core/Acceleration.hpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 11 | 2018-11-22T03:07:10.000Z | 2022-03-31T15:51:29.000Z | include/core/Acceleration.hpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 2 | 2019-02-14T15:05:42.000Z | 2019-07-26T06:07:13.000Z | include/core/Acceleration.hpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 4 | 2018-12-18T12:40:07.000Z | 2022-03-31T15:51:31.000Z | #pragma once
#include <core\Common.hpp>
#include <core\Object.hpp>
#include <core\Mesh.hpp>
#include <core\MemoryArena.hpp>
NAMESPACE_BEGIN
/**
* \brief Acceleration data structure for ray intersection queries
*
* The current implementation falls back to a brute force loop
* through the geometry.
*/
class Accelerati... | 26.621622 | 91 | 0.732487 | BlauHimmel |
9bab83e12fb087a554f31d4e874efb503700a6c7 | 11,772 | cpp | C++ | wmis/lib/mis/ml/ml_features.cpp | josephholten/KaMIS-ml | 9b17d8764a72b75b04519aaaa5858f69d2ae4c54 | [
"MIT"
] | null | null | null | wmis/lib/mis/ml/ml_features.cpp | josephholten/KaMIS-ml | 9b17d8764a72b75b04519aaaa5858f69d2ae4c54 | [
"MIT"
] | null | null | null | wmis/lib/mis/ml/ml_features.cpp | josephholten/KaMIS-ml | 9b17d8764a72b75b04519aaaa5858f69d2ae4c54 | [
"MIT"
] | null | null | null | //
// Created by joseph on 10/27/21.
//
#include "ml_features.h"
#include <random>
#include <unordered_set>
#include "mis_config.h"
#include "configuration_mis.h"
#include "timer.h"
#include "graph_io.h"
#include "weighted_ls.h"
#include "stat.h"
// constructors
// for training (many graphs with labels)
ml_features... | 34.931751 | 159 | 0.619011 | josephholten |
9bab9f4bc1555af31e6a446e06bdb8c625ceec2b | 1,027 | cpp | C++ | Main.cpp | EmuraDaisuke/Windows.HighPrecision-IntervalWait | 0734c55383f193df7b6efb53a0459f69c01e75aa | [
"MIT"
] | 1 | 2020-07-05T19:28:11.000Z | 2020-07-05T19:28:11.000Z | Main.cpp | EmuraDaisuke/Windows.HighPrecision-IntervalWait | 0734c55383f193df7b6efb53a0459f69c01e75aa | [
"MIT"
] | null | null | null | Main.cpp | EmuraDaisuke/Windows.HighPrecision-IntervalWait | 0734c55383f193df7b6efb53a0459f69c01e75aa | [
"MIT"
] | null | null | null |
#include <chrono>
#include <iostream>
#include <iomanip>
#include <windows.h>
#include <winuser.h>
#include <conio.h>
#include "./IntervalWait.h"
#pragma comment(lib, "user32.lib")
double Now()
{
using namespace std::chrono;
return duration_cast<nanoseconds>(steady_clock::now().time_since_epoch()).coun... | 19.377358 | 110 | 0.573515 | EmuraDaisuke |
9baf17eb3693ff23049973d50beeab4de80109c2 | 3,171 | cpp | C++ | hackerStockPrediction/StockPrediction.cpp | evilmucedin/project-euler | 08ed51a5ff0d05f60271d99d35b3e601bcddf85d | [
"MIT"
] | 3 | 2020-03-23T04:31:14.000Z | 2021-01-17T09:03:09.000Z | hackerStockPrediction/StockPrediction.cpp | evilmucedin/project-euler | 08ed51a5ff0d05f60271d99d35b3e601bcddf85d | [
"MIT"
] | null | null | null | hackerStockPrediction/StockPrediction.cpp | evilmucedin/project-euler | 08ed51a5ff0d05f60271d99d35b3e601bcddf85d | [
"MIT"
] | 3 | 2018-03-28T20:53:27.000Z | 2020-04-27T07:03:02.000Z | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <vector>
#include <cstdlib>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <fstream>
using namespace std;
void printTransactions(double m, int k, int d, vector<string> name, vector<int> ow... | 25.166667 | 120 | 0.463261 | evilmucedin |
9baff019871dadba996bc448782e6371a4505b73 | 361 | cpp | C++ | lib/djvUIPy/UIPy.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | 456 | 2018-10-06T00:07:14.000Z | 2022-03-31T06:14:22.000Z | lib/djvUIPy/UIPy.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | 438 | 2018-10-31T15:05:51.000Z | 2022-03-31T09:01:24.000Z | lib/djvUIPy/UIPy.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | 54 | 2018-10-29T10:18:36.000Z | 2022-03-23T06:56:11.000Z | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2019-2020 Darby Johnston
// All rights reserved.
#include <djvUIPy/UIPy.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
PYBIND11_MODULE(djvUIPy, m)
{
//! \todo Base classes need to be wrapped first?
wrapWidget(m);... | 18.05 | 52 | 0.692521 | pafri |
9bb03c8cdf6291d11f0897ef6576c5b57ab07a3f | 2,415 | cxx | C++ | main/sc/source/ui/miscdlgs/namecrea.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sc/source/ui/miscdlgs/namecrea.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sc/source/ui/miscdlgs/namecrea.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 32.2 | 71 | 0.614493 | Grosskopf |
9bb120ba4e3b18e37d2619355c457544fcebe8a9 | 797 | hpp | C++ | stan/math/fwd/fun/tanh.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-06-14T14:33:37.000Z | 2020-06-14T14:33:37.000Z | stan/math/fwd/fun/tanh.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 2 | 2019-07-23T12:45:30.000Z | 2020-05-01T20:43:03.000Z | stan/math/fwd/fun/tanh.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-05-10T12:55:07.000Z | 2020-05-10T12:55:07.000Z | #ifndef STAN_MATH_FWD_FUN_TANH_HPP
#define STAN_MATH_FWD_FUN_TANH_HPP
#include <stan/math/fwd/meta.hpp>
#include <stan/math/fwd/core.hpp>
#include <stan/math/fwd/fun/exp.hpp>
#include <stan/math/prim/fun/tanh.hpp>
#include <cmath>
#include <complex>
namespace stan {
namespace math {
template <typename T>
inline fvar... | 22.138889 | 67 | 0.698871 | LaudateCorpus1 |
9bb1da14b77ac8949214478663c1c4f92fa7c00f | 425 | cpp | C++ | sources/Vertex.cpp | jbalestr42/GraphicsEngine | f317bddf750577602b231824c7f880142f5a8ce6 | [
"WTFPL"
] | 2 | 2017-05-26T14:37:23.000Z | 2021-06-07T09:39:18.000Z | sources/Vertex.cpp | jbalestr42/GraphicsEngine | f317bddf750577602b231824c7f880142f5a8ce6 | [
"WTFPL"
] | 1 | 2016-11-26T15:18:26.000Z | 2017-05-24T18:01:25.000Z | sources/Vertex.cpp | jbalestr42/GraphicsEngine | f317bddf750577602b231824c7f880142f5a8ce6 | [
"WTFPL"
] | 3 | 2017-06-07T16:41:58.000Z | 2022-03-18T05:12:37.000Z | #include "Vertex.hpp"
Vertex::Vertex(void) { }
Vertex::Vertex(Vector3 const & pos, Vector2 const & u, Vector3 const & n, Color const & col)
{
position = pos;
uv = u;
normal = n;
color = col;
}
Vertex::Vertex(Vertex const & vertex)
{
*this = vertex;
}
Vertex & Vertex::operator=(Vertex const & vertex)
{
positio... | 16.346154 | 92 | 0.656471 | jbalestr42 |
9bb41f272fced0589dd77b2afd0283030f252ac9 | 767 | cpp | C++ | tutorial/Image02a/main.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | tutorial/Image02a/main.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | tutorial/Image02a/main.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define IMAGECLASS MyImages
#define IMAGEFILE <Image02a/images.iml>
#include <Draw/iml.h>
class MyApp : public TopWindow {
public:
virtual void Paint(Draw& draw);
};
void MyApp::Paint(Draw& w)
{
w.DrawRect(GetSize(), SColorPaper());
for(int i = 0; i < MyImages::... | 23.242424 | 63 | 0.671447 | dreamsxin |
9bb5e782a604379aea0b4df7a8df7d81af1c3062 | 4,003 | cpp | C++ | chapter24/ch24_drill.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 124 | 2018-06-23T10:16:56.000Z | 2022-03-19T15:16:12.000Z | chapter24/ch24_drill.cpp | therootfolder/stroustrup-ppp | b1e936c9a67b9205fdc9712c42496b45200514e2 | [
"MIT"
] | 23 | 2018-02-08T20:57:46.000Z | 2021-10-08T13:58:29.000Z | chapter24/ch24_drill.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 65 | 2019-05-27T03:05:56.000Z | 2022-03-26T03:43:05.000Z | //
// Stroustrup - Programming Principles & Practice
//
// Chapter 24 Drill
//
// Some fun and odd stuff here, including a sqrt exercise from chapter 5.
//
#include <iostream>
#include <stdexcept>
#include <iomanip>
#include <complex>
#include <numeric>
#include "../text_lib/Matrix.h"
#include "../text_lib/MatrixIO.h"... | 30.792308 | 78 | 0.481139 | ClassAteam |
9bb8c63d6b6477f3679bd8acafb8318c7de265fc | 9,324 | cpp | C++ | pxr/usdImaging/usdImagingGL/testenv/testUsdImagingGLPopOut.cpp | yurivict/USD | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | [
"Apache-2.0"
] | 1 | 2022-03-16T01:40:10.000Z | 2022-03-16T01:40:10.000Z | pxr/usdImaging/usdImagingGL/testenv/testUsdImagingGLPopOut.cpp | yurivict/USD | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | [
"Apache-2.0"
] | null | null | null | pxr/usdImaging/usdImagingGL/testenv/testUsdImagingGLPopOut.cpp | yurivict/USD | 3b097e3ba8fabf1777a1256e241ea15df83f3065 | [
"Apache-2.0"
] | 1 | 2018-10-03T19:08:33.000Z | 2018-10-03T19:08:33.000Z | //
// Copyright 2021 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 31.288591 | 83 | 0.641999 | yurivict |
9bc32cff6bd178fb7f9757ed33635c622f424982 | 784 | cpp | C++ | Codeforces/1562A-the-miracle-and-the-sleeper.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | Codeforces/1562A-the-miracle-and-the-sleeper.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | Codeforces/1562A-the-miracle-and-the-sleeper.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | /*
author: Susmoy Sen Gupta
email: susmoy.cse@gmail.com
github: github.com/SusmoySenGupta
Judge: Codeforces
problem no: 1562A
problem name: The Miracle and the Sleeper
problem link: https://codeforces.com/problemset/problem/1562/A
Status: __Solved__
Solved at: Sep/03/2021 11:37
*/
#include <iostream>
#defi... | 15.68 | 63 | 0.618622 | SusmoySenGupta |
9bc8a62ca82accee9ad861984e54ccec21d7f854 | 1,835 | cpp | C++ | RedisPublishCommand.cpp | MutesK/Replication | 8b77c7257e8265daebdc4b74a279e292906c6740 | [
"MIT"
] | null | null | null | RedisPublishCommand.cpp | MutesK/Replication | 8b77c7257e8265daebdc4b74a279e292906c6740 | [
"MIT"
] | null | null | null | RedisPublishCommand.cpp | MutesK/Replication | 8b77c7257e8265daebdc4b74a279e292906c6740 | [
"MIT"
] | null | null | null | //
// Created by JunMin Kim on 2020/11/01.
//
#include "RedisCommon.h"
#include "RedisConnection.hpp"
#include "RedisPublishCommand.hpp"
#ifdef REPLICATION_REDIS
namespace Replication
{
namespace Redis
{
RedisPublishCommand::RedisPublishCommand(const ConnectionPtr& Ptr)
: Command(Ptr)... | 26.214286 | 117 | 0.575477 | MutesK |
9bc8c3fd80f849e76daae272e351538c8f0c4b2f | 1,126 | cpp | C++ | engine/Fury/BufferManager.cpp | sindney/fury3d | a5880af615c3225e279eb63a9193c7ca8b5fcf49 | [
"MIT"
] | 95 | 2016-01-29T08:58:02.000Z | 2022-02-07T02:42:20.000Z | engine/Fury/BufferManager.cpp | sindney/fury3d | a5880af615c3225e279eb63a9193c7ca8b5fcf49 | [
"MIT"
] | 3 | 2017-07-30T02:21:50.000Z | 2018-10-12T13:55:32.000Z | engine/Fury/BufferManager.cpp | sindney/fury3d | a5880af615c3225e279eb63a9193c7ca8b5fcf49 | [
"MIT"
] | 30 | 2016-01-29T09:48:34.000Z | 2021-11-09T13:15:36.000Z | #include "Fury/BufferManager.h"
namespace fury
{
void BufferManager::Remove(size_t id)
{
auto it = m_Buffers.find(id);
if (it != m_Buffers.end())
m_Buffers.erase(it);
}
void BufferManager::Release(size_t id)
{
auto it = m_Buffers.find(id);
if (it != m_Buffers.end())
{
if (!it->sec... | 17.59375 | 65 | 0.619005 | sindney |
9bcf042f20f6db6d3b65e55bf9555452197051ab | 690 | cpp | C++ | sources/src/Sx/Signals/Observer.cpp | vsemyonoff/observer | e006286e102efc4d5c372bd742ff843579c1b5a7 | [
"BSD-2-Clause"
] | 1 | 2020-02-13T19:42:11.000Z | 2020-02-13T19:42:11.000Z | sources/src/Sx/Signals/Observer.cpp | vsemyonoff/observer | e006286e102efc4d5c372bd742ff843579c1b5a7 | [
"BSD-2-Clause"
] | null | null | null | sources/src/Sx/Signals/Observer.cpp | vsemyonoff/observer | e006286e102efc4d5c372bd742ff843579c1b5a7 | [
"BSD-2-Clause"
] | null | null | null | #include <Sx/Signals/Connection.hpp>
#include <Sx/Signals/Observer.hpp>
using namespace Sx::Signals;
Observer::~Observer() noexcept
{
for (const auto& c : connections)
c->detached = true;
connections.clear();
}
Observer::Observer(const Observer&) noexcept {}
Observer& Observer::operator=(const Obser... | 18.157895 | 66 | 0.678261 | vsemyonoff |
9bcfef469d052cec0fd780068f38ba19bea02d35 | 103 | hpp | C++ | code/include/common/graphics/drawables/menu/menu.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/include/common/graphics/drawables/menu/menu.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/include/common/graphics/drawables/menu/menu.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | #include "TextBox.hpp"
#include "textboxes/textboxes.hpp"
#include "circle_selects/circle_selects.hpp"
| 25.75 | 44 | 0.805825 | StuntHacks |
9bd397d9ef994fc8127f2389cb87a346b94b4997 | 3,318 | cpp | C++ | 01_Develop/libXMCocos2D/Source/extensions/CCArtPig/device/APSDevice.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2017-08-03T07:15:00.000Z | 2018-06-18T10:32:53.000Z | 01_Develop/libXMCocos2D/Source/extensions/CCArtPig/device/APSDevice.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | null | null | null | 01_Develop/libXMCocos2D/Source/extensions/CCArtPig/device/APSDevice.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2019-03-04T22:57:42.000Z | 2020-03-06T01:32:26.000Z | /* --------------------------------------------------------------------------
*
* File APSDevice.cpp
* Author Y.H Mun
*
* --------------------------------------------------------------------------
*
* Copyright (c) 2012 ArtPig Software LLC
*
* http://www.artpigsof... | 28.358974 | 96 | 0.57384 | mcodegeeks |
9bd80b08b5d3248db06b924845890cd9b9fa9d6f | 7,249 | hpp | C++ | sdl/Hypergraph/OpenFstDraw.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Hypergraph/OpenFstDraw.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Hypergraph/OpenFstDraw.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 33.873832 | 114 | 0.667816 | sdl-research |
9be1c4458b75455036fa5199e45d238c309b037f | 4,567 | hpp | C++ | io/converter/math/string_to_value_converter.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | io/converter/math/string_to_value_converter.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | io/converter/math/string_to_value_converter.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#ifndef _SNAKEOIL_IO_MATH_STRING_TO_VALUE_CONVERTER_H_
#define _SNAKEOIL_IO_MATH_STRING_TO_VALUE_CONVERTER_H_
#includ... | 36.830645 | 134 | 0.563608 | aconstlink |
9be267694d3a309d1abd2b258b3a90781669eb9a | 5,739 | cpp | C++ | BlackVision/LibBlackVision/Source/Engine/Graphics/Resources/VertexDescriptor.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | 1 | 2022-01-28T11:43:47.000Z | 2022-01-28T11:43:47.000Z | BlackVision/LibBlackVision/Source/Engine/Graphics/Resources/VertexDescriptor.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | null | null | null | BlackVision/LibBlackVision/Source/Engine/Graphics/Resources/VertexDescriptor.cpp | black-vision-engine/bv-engine | 85089d41bb22afeaa9de070646e12aa1777ecedf | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "VertexDescriptor.h"
#include <cassert>
#include <cstdarg>
#include "Engine/Types/Enums.h"
#include "Memory/MemoryLeaks.h"
namespace bv {
//FIXME: move closer to the definition
unsigned int VertexDescriptor::m_sComponentSize[ (int) AttributeType::AT_TOTAL ] =
... | 23.9125 | 171 | 0.546088 | black-vision-engine |
9be54c7b539b03b226492163f8640902a8b3a34f | 10,742 | cpp | C++ | platform_bionic-android-vts-12.0_r2/benchmarks/string_benchmark.cpp | webos21/xbionic | ffb3965e86ae4a921d0cffbfdc44cbdfe6acf67a | [
"Apache-2.0"
] | 1 | 2019-05-04T02:30:08.000Z | 2019-05-04T02:30:08.000Z | platform_bionic-android-vts-12.0_r2/benchmarks/string_benchmark.cpp | webos21/xbionic | ffb3965e86ae4a921d0cffbfdc44cbdfe6acf67a | [
"Apache-2.0"
] | null | null | null | platform_bionic-android-vts-12.0_r2/benchmarks/string_benchmark.cpp | webos21/xbionic | ffb3965e86ae4a921d0cffbfdc44cbdfe6acf67a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012 The Android Open Source Project
*
* 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 app... | 34.429487 | 92 | 0.720257 | webos21 |
9be9bf0b529c7b7ad58fd54d05154becc1240e77 | 83 | cpp | C++ | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Text/KeyValueStringPair.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Text/KeyValueStringPair.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Text/KeyValueStringPair.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | using namespace RSLib;
/*
rsKeyValueStringPair::~rsKeyValueStringPair()
{
}
*/
| 9.222222 | 46 | 0.710843 | RobinSchmidt |
9bf69f554bcf843f358fa3a214d37b0a371f8ddf | 962 | cpp | C++ | Programming-Contest/Strings/Automation.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Strings/Automation.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Strings/Automation.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null |
#define MAX_SIZE 1000010
int f[MAX_SIZE][26];
void Compute_Transition_Fnc(string P)
{
int m = P.size();
forab(q,0,m){
string Pq = P.substr(0,q);
forab(c,'a','z'){
int K = min( m , q+1 );
string aux = Pq + c;
while(1){
bool check = true;
... | 24.666667 | 81 | 0.461538 | ar-pavel |
9bf946c493624f7160d5af830eb40502639eed13 | 6,208 | cpp | C++ | SATsolver.cpp | erikkvam/SATsolver | 958bf94dd2748b8f6a16bac813b03bb409f097ad | [
"MIT"
] | null | null | null | SATsolver.cpp | erikkvam/SATsolver | 958bf94dd2748b8f6a16bac813b03bb409f097ad | [
"MIT"
] | null | null | null | SATsolver.cpp | erikkvam/SATsolver | 958bf94dd2748b8f6a16bac813b03bb409f097ad | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <algorithm>
#include <vector>
using namespace std;
#define UNDEF -1
#define TRUE 1
#define FALSE 0
uint numVars;
uint numClauses;
vector<vector<int> > clauses;
vector<int> model;
vector<int> modelStack;
uint indexOfNextLitToPropagate;
uint decisionLevel;
vector<vector... | 34.681564 | 143 | 0.536082 | erikkvam |
50000dfb3397b837cde449d5ec3cf38fcb308ea3 | 13,922 | cpp | C++ | mbed-client/source/m2mdiscover.cpp | marcuschangarm/mbed-cloud-client | d7edc529ed3722c811ff401440ef58ea980bf543 | [
"Apache-2.0"
] | 27 | 2018-04-04T12:06:23.000Z | 2020-10-16T08:58:38.000Z | mbed-client/source/m2mdiscover.cpp | marcuschangarm/mbed-cloud-client | d7edc529ed3722c811ff401440ef58ea980bf543 | [
"Apache-2.0"
] | 41 | 2018-07-12T08:09:39.000Z | 2020-11-06T13:47:43.000Z | mbed-client/source/m2mdiscover.cpp | marcuschangarm/mbed-cloud-client | d7edc529ed3722c811ff401440ef58ea980bf543 | [
"Apache-2.0"
] | 53 | 2018-04-16T08:36:25.000Z | 2020-11-02T15:50:43.000Z | /*
* Copyright (c) 2021 Pelion. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* 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
*... | 40.353623 | 194 | 0.661112 | marcuschangarm |
50003d1e15aa18742761ea42629719b528ff38a9 | 781 | cpp | C++ | Paver.cpp | naderabdalghani/castle-battle-simulator | 4dc1960c9acc9952c2106e3c26e86a7d77b4c5d0 | [
"Apache-2.0"
] | 4 | 2019-12-15T14:08:46.000Z | 2021-06-08T03:40:40.000Z | Paver.cpp | naderabdalghani/castle-battle-simulator | 4dc1960c9acc9952c2106e3c26e86a7d77b4c5d0 | [
"Apache-2.0"
] | null | null | null | Paver.cpp | naderabdalghani/castle-battle-simulator | 4dc1960c9acc9952c2106e3c26e86a7d77b4c5d0 | [
"Apache-2.0"
] | null | null | null | #include "Paver.h"
Paver:: Paver (int id,int arrival, int EnemyHealth, int fire, int reload,int s,REGION r_region):
Enemy(id,arrival, EnemyHealth, fire, reload,s, r_region,DARKBLUE,0)
{}
void Paver::DamageToEnemy(int TowerfirePow )
{
Health= Health- ((1.0/ Distance)* TowerfirePow* (1.0));
}
Paver::... | 22.314286 | 98 | 0.65557 | naderabdalghani |
50008c58948d9648ef2f57636c2eb6c20eaa682b | 886 | cpp | C++ | BashuOJ-Code/1165.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | BashuOJ-Code/1165.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | BashuOJ-Code/1165.cpp | magicgh/algorithm-contest-code | c21a90b11f73535c61e6363a4305b74cff24a85b | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<vector>
#define ri register int
#define ll long long
using namespace std;
const int MAXN=100005;
vector<int>a[MAXN];
int Deg[MAXN],cnt,n;
bool vst[MAXN];
inline int getin... | 16.109091 | 57 | 0.597065 | magicgh |
50055b78e2f5144dcbd0d4c4353d0018b8456238 | 1,680 | hh | C++ | LFSR/src/LFSR.hh | mvy/Cryptographic-C---Toolkit | 74f46d4ccca4f8af3e1af9580d95be9d84ced152 | [
"MIT"
] | null | null | null | LFSR/src/LFSR.hh | mvy/Cryptographic-C---Toolkit | 74f46d4ccca4f8af3e1af9580d95be9d84ced152 | [
"MIT"
] | null | null | null | LFSR/src/LFSR.hh | mvy/Cryptographic-C---Toolkit | 74f46d4ccca4f8af3e1af9580d95be9d84ced152 | [
"MIT"
] | 1 | 2019-06-22T20:25:43.000Z | 2019-06-22T20:25:43.000Z | /*
* Cryptographic C++ Toolkit (CCTk)
* Martial Lienert, Yves Stadler
*/
#ifndef __LFSR_HH__
#define __LFSR_HH__
#include "CCTkConfig.hh"
#include<vector>
/**
* Linear Feedback Shift Register
*
* More information on :
* http://en.wikipedia.org/wiki/Linear_feedback_shift_register
*/
/* Ha... | 21 | 115 | 0.62381 | mvy |
500e80e7c5580d995ef762523f48b356735ccdb2 | 1,236 | cpp | C++ | src/memory/xstr.cpp | Colinwang531/av_converged_communication_system_architecture | d8d8a2ff72b5342fd0c3426978884c0e9c43dde8 | [
"MIT"
] | 2 | 2021-12-10T07:45:30.000Z | 2021-12-17T01:42:36.000Z | src/memory/xstr.cpp | Colinwang531/av_converged_communication_system_architecture | d8d8a2ff72b5342fd0c3426978884c0e9c43dde8 | [
"MIT"
] | null | null | null | src/memory/xstr.cpp | Colinwang531/av_converged_communication_system_architecture | d8d8a2ff72b5342fd0c3426978884c0e9c43dde8 | [
"MIT"
] | null | null | null | #ifdef _WINDOWS
#include <string.h>
#else
#include <cstring>
#endif//WINDOWS
#include <new>
#include "error_code.h"
#include "memory/xstr.h"
using namespace framework::utils::memory;
XStr::XStr()
{}
XStr::~XStr()
{}
int XStr::copy(
const char* src/* = nullptr*/,
const uint64_t src_bytes/* = 0*/,
char* ... | 17.913043 | 108 | 0.572816 | Colinwang531 |
5019f50e041edd4dd3dd83e2568da473280fd281 | 11,926 | cpp | C++ | RelevanceAnnotator.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | 4 | 2018-05-17T11:17:26.000Z | 2021-12-01T00:48:43.000Z | RelevanceAnnotator.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | null | null | null | RelevanceAnnotator.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | 1 | 2021-05-31T19:08:00.000Z | 2021-05-31T19:08:00.000Z | // RelevanceAnnotator.cpp
#include "RelevanceAnnotator.h"
#include "TextStyleRegistry.h"
#include "TextDocument.h"
#include "TextDocumentReader.h"
#include "TextRange.h"
#include <algorithm>
RelevanceAnnotator::RelevanceAnnotator( const TextDocument& doc, TextStyleRegistry& styleRegistry )
: m_doc( doc )
... | 27.353211 | 125 | 0.668372 | briangreenery |
501ac698ad9439e27bac3263edc9c84cd9d66f66 | 63,046 | cxx | C++ | Peridigm/Code/Anisotropic_Material/io/mesh_input/quick_grid/QuickGrid.cxx | oldninja/PeriDoX | f31bccc7b8ea60cd814d00732aebdbbe876a2ac7 | [
"BSD-3-Clause"
] | null | null | null | Peridigm/Code/Anisotropic_Material/io/mesh_input/quick_grid/QuickGrid.cxx | oldninja/PeriDoX | f31bccc7b8ea60cd814d00732aebdbbe876a2ac7 | [
"BSD-3-Clause"
] | null | null | null | Peridigm/Code/Anisotropic_Material/io/mesh_input/quick_grid/QuickGrid.cxx | oldninja/PeriDoX | f31bccc7b8ea60cd814d00732aebdbbe876a2ac7 | [
"BSD-3-Clause"
] | null | null | null | /*! \file QuickGrid.cxx */
//@HEADER
// ************************************************************************
//
// Peridigm
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains ... | 32.019299 | 181 | 0.657869 | oldninja |
501ca51dd504e9bef5fcf967531c7db28e5e39fd | 2,057 | cpp | C++ | src-ux/nosync/os/ux/subprocesses-reaper.cpp | zbigniew-chyla/libnosync | 28d024047bcb38a90310b81f1e35d7b5c465a83a | [
"BSD-3-Clause"
] | 1 | 2018-05-07T09:09:11.000Z | 2018-05-07T09:09:11.000Z | src-ux/nosync/os/ux/subprocesses-reaper.cpp | zbigniew-chyla/libnosync | 28d024047bcb38a90310b81f1e35d7b5c465a83a | [
"BSD-3-Clause"
] | null | null | null | src-ux/nosync/os/ux/subprocesses-reaper.cpp | zbigniew-chyla/libnosync | 28d024047bcb38a90310b81f1e35d7b5c465a83a | [
"BSD-3-Clause"
] | null | null | null | // This file is part of libnosync library. See LICENSE file for license details.
#include <csignal>
#include <nosync/func-request-handler.h>
#include <nosync/raw-error-result.h>
#include <nosync/requests-queue.h>
#include <nosync/type-utils.h>
#include <nosync/os/ux/signal-watcher.h>
#include <nosync/os/ux/subprocesses... | 28.971831 | 152 | 0.647059 | zbigniew-chyla |
501f5c8d526c8ad541d0e3388d5379bf84b0c33c | 13,785 | cpp | C++ | Nacro/SDK/FN_Feedback_RateExperience_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_Feedback_RateExperience_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_Feedback_RateExperience_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function Feedback_RateExperience.Feed... | 35.620155 | 200 | 0.796518 | Milxnor |
501f78693886e3566d73631c3d2808ff2e600e80 | 1,431 | cpp | C++ | src/test/run.cpp | BenjaminIsaac0111/neworder | 354849b37f1594c252cfa0c79aa33f5af5bb05f7 | [
"MIT"
] | 2 | 2019-10-21T14:36:55.000Z | 2020-02-17T09:44:29.000Z | src/test/run.cpp | BenjaminIsaac0111/neworder | 354849b37f1594c252cfa0c79aa33f5af5bb05f7 | [
"MIT"
] | null | null | null | src/test/run.cpp | BenjaminIsaac0111/neworder | 354849b37f1594c252cfa0c79aa33f5af5bb05f7 | [
"MIT"
] | null | null | null | #include "run.h"
#include "test.h"
#include "Environment.h"
#include "MPIResource.h"
#include "NewOrder.h"
#include <vector>
#include <string>
#include <iostream>
void test1(const std::string& modulename, const std::string& functionname, const std::vector<std::string>& args, const py::object& expected);
void test_no... | 22.015385 | 141 | 0.603774 | BenjaminIsaac0111 |
5023fef1b19ae04de7e5c6074238da5f964c3e25 | 3,589 | cpp | C++ | Graphs/bipartite_ques.cpp | hinduBale/30DayDSAlgoChallenge | 86296763a6fbbff84de04e9da4128dae89466ce3 | [
"MIT"
] | 1 | 2021-04-04T13:22:37.000Z | 2021-04-04T13:22:37.000Z | Graphs/bipartite_ques.cpp | hinduBale/30DayDSAlgoChallenge | 86296763a6fbbff84de04e9da4128dae89466ce3 | [
"MIT"
] | null | null | null | Graphs/bipartite_ques.cpp | hinduBale/30DayDSAlgoChallenge | 86296763a6fbbff84de04e9da4128dae89466ce3 | [
"MIT"
] | null | null | null | /*
Link to question:
https://www.spoj.com/problems/BUGLIFE/
Question:
Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gender. In his experiment, individual bugs and their interactions... | 26.984962 | 399 | 0.696573 | hinduBale |
502785fcbdf26c731c54ed2840555ef1d3910b87 | 1,225 | hpp | C++ | src/game/sys/sound/sound_comp.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/game/sys/sound/sound_comp.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/game/sys/sound/sound_comp.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | /** Entities that can play sound effects *************************************
* *
* Copyright (c) 2016 Florian Oetke *
* This file is distributed under the MIT License *
* ... | 27.222222 | 79 | 0.528163 | lowkey42 |
5029b126e8fa901b23dd5432a0392c4aecddda76 | 1,156 | cpp | C++ | src/Services/StringizeService/ConstStringHolderMemory.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Services/StringizeService/ConstStringHolderMemory.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Services/StringizeService/ConstStringHolderMemory.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "ConstStringHolderMemory.h"
#include "Kernel/MemoryAllocator.h"
#include "stdex/memorycopy.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
ConstStringHolderMemory::ConstStringHolderMemory()
{
}
////////////////////////////////... | 38.533333 | 144 | 0.482699 | Terryhata6 |
df24b20b1e7b4e2edb6c344f2b05f59b5bcaccc6 | 5,505 | cpp | C++ | SDL_Guide XX Move A Box/main.cpp | xeek-pro/SDL_Guide | 16c9fbff4dd246b73e984ab4149e94ef418e532a | [
"MIT"
] | 3 | 2020-07-13T04:49:27.000Z | 2020-07-24T21:27:43.000Z | SDL_Guide XX Move A Box/main.cpp | xeek-pro/sdl_guide | 16c9fbff4dd246b73e984ab4149e94ef418e532a | [
"MIT"
] | null | null | null | SDL_Guide XX Move A Box/main.cpp | xeek-pro/sdl_guide | 16c9fbff4dd246b73e984ab4149e94ef418e532a | [
"MIT"
] | 1 | 2021-07-13T13:48:18.000Z | 2021-07-13T13:48:18.000Z | #include <SDL.h>
#include <iostream>
#include <sstream>
#include <string>
#include <stdlib.h>
#include <algorithm>
#include "SDL_RectEx.h"
int main(int argc, char* argv[])
{
std::string app_title = "SDL Box Movement Example";
int screen_width = 1024, screen_height = 768;
SDL_Window* main_window = NULL;
SDL_Rendere... | 40.182482 | 138 | 0.608174 | xeek-pro |
df2605f500607ef0a605342dc52c081358b2a97c | 722 | cpp | C++ | jni/application/Item.cpp | clarkdonald/eecs494explore3d | fd4086d2c5482a289d51ef71c5f1ae20347db80a | [
"BSD-2-Clause"
] | null | null | null | jni/application/Item.cpp | clarkdonald/eecs494explore3d | fd4086d2c5482a289d51ef71c5f1ae20347db80a | [
"BSD-2-Clause"
] | null | null | null | jni/application/Item.cpp | clarkdonald/eecs494explore3d | fd4086d2c5482a289d51ef71c5f1ae20347db80a | [
"BSD-2-Clause"
] | null | null | null | //
// Item.cpp
// game
//
// Created by Donald Clark on 10/30/13.
//
//
#include "Item.h"
#include "Utility.h"
using namespace Zeni;
using namespace Zeni::Collision;
Item::Item(const Point3f &corner_,
const Vector3f &scale_,
const Quaternion &rotation_)
: Game_Object(corner_, scale_, rotatio... | 16.409091 | 75 | 0.621884 | clarkdonald |
df263697f664190ec6cd11844239d5b2799142bb | 1,201 | hpp | C++ | desktop_simple/ebuilds/v1.12.0-noetic/libqicore-1.12.0-noetic/libqicore/qicore/logmanager.hpp | Maelic/ros_overlay_on_gentoo_prefix_32b | a2c9b217d66f4d29b087741e7e7da22ce6f58492 | [
"BSD-2-Clause"
] | null | null | null | desktop_simple/ebuilds/v1.12.0-noetic/libqicore-1.12.0-noetic/libqicore/qicore/logmanager.hpp | Maelic/ros_overlay_on_gentoo_prefix_32b | a2c9b217d66f4d29b087741e7e7da22ce6f58492 | [
"BSD-2-Clause"
] | null | null | null | desktop_simple/ebuilds/v1.12.0-noetic/libqicore-1.12.0-noetic/libqicore/qicore/logmanager.hpp | Maelic/ros_overlay_on_gentoo_prefix_32b | a2c9b217d66f4d29b087741e7e7da22ce6f58492 | [
"BSD-2-Clause"
] | null | null | null | /*
** Author(s):
** - Herve Cuche <hcuche@aldebaran-robotics.com>
** - Matthieu Nottale <mnottale@aldebaran-robotics.com>
**
** Copyright (C) 2013 Aldebaran Robotics
*/
#ifndef LOGMANAGER_HPP_
#define LOGMANAGER_HPP_
#include <qi/macro.hpp>
#include <qicore/api.hpp>
#include <qicore/logmessage.hpp>
#include <qi/an... | 20.706897 | 95 | 0.72856 | Maelic |
df38aa89a1a189c0d63087a7f1e8595dad318562 | 385 | cpp | C++ | src/main/cpp/commands/shooter/SetShooterToVelocity.cpp | team2053tigertronics/Robot2020 | 021fae6f8cfc412bb645a4c50c7b4cd9e65e6524 | [
"MIT"
] | 5 | 2019-12-20T16:37:22.000Z | 2021-06-16T05:47:40.000Z | src/main/cpp/commands/shooter/SetShooterToVelocity.cpp | team2053tigertronics/Robot2020 | 021fae6f8cfc412bb645a4c50c7b4cd9e65e6524 | [
"MIT"
] | null | null | null | src/main/cpp/commands/shooter/SetShooterToVelocity.cpp | team2053tigertronics/Robot2020 | 021fae6f8cfc412bb645a4c50c7b4cd9e65e6524 | [
"MIT"
] | null | null | null | #include "commands/shooter/SetShooterToVelocity.h"
SetShooterToVelocity::SetShooterToVelocity(ShooterSubsystem* subsystem, std::function<units::revolutions_per_minute_t()> speed) : m_subsystem(subsystem), m_speed(speed) {
SetName("SetShooterToVelocity");
AddRequirements({subsystem});
}
void SetShooterToVelocity::... | 35 | 170 | 0.8 | team2053tigertronics |
df3fced4eed56d1894f6700e127f3812b16d31ed | 1,716 | cpp | C++ | tbb/base_parallel_reduce.cpp | cjmcv/cuda | 04fcf80bd32a2909a232cfe532e24bbe6932ac10 | [
"Apache-2.0"
] | 34 | 2018-01-06T13:32:00.000Z | 2021-12-22T03:16:01.000Z | tbb/base_parallel_reduce.cpp | cjmcv/cuda | 04fcf80bd32a2909a232cfe532e24bbe6932ac10 | [
"Apache-2.0"
] | null | null | null | tbb/base_parallel_reduce.cpp | cjmcv/cuda | 04fcf80bd32a2909a232cfe532e24bbe6932ac10 | [
"Apache-2.0"
] | 4 | 2019-03-11T14:55:13.000Z | 2021-12-22T03:16:03.000Z | /*!
* \brief The basic use of parallel_reduce.
* \features 1, The operator in it is not const
* which is different from parallel_for.
* 2, Contains a constructor with tbb::split.
* 3, Have a join() function to merge result.
*/
#include <iostream>
#include <tbb/tbb.h>
#include <time.h>... | 26.8125 | 99 | 0.603147 | cjmcv |
df42f8b75547fb1d96ab2c34d03d96810acff222 | 173 | cpp | C++ | maximumvolume.cpp | tanner00/ICPC-Season-2 | 0be745706e6551005f45343dfda6a0e658dfbbfb | [
"MIT"
] | null | null | null | maximumvolume.cpp | tanner00/ICPC-Season-2 | 0be745706e6551005f45343dfda6a0e658dfbbfb | [
"MIT"
] | null | null | null | maximumvolume.cpp | tanner00/ICPC-Season-2 | 0be745706e6551005f45343dfda6a0e658dfbbfb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
cout << fixed << setprecision(12);
double l;
cin >> l;
cout << (l / 3) * (l / 3) * (l / 3);
return 0;
}
| 11.533333 | 37 | 0.526012 | tanner00 |
df4320c83b61d31a65568f4652fdbc8235486c69 | 651 | cc | C++ | third_party/blink/renderer/core/loader/modulescript/module_script_creation_params.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/renderer/core/loader/modulescript/module_script_creation_params.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | third_party/blink/renderer/core/loader/modulescript/module_script_creation_params.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/loader/modulescript/module_script_creation_params.h"
namespace blink {
String ModuleScriptCreationParams::Modu... | 26.04 | 94 | 0.71275 | zealoussnow |
df457db197366e1ba70d1bedc8a08d918f82b5c0 | 2,609 | cc | C++ | gpu/command_buffer/client/id_allocator_test.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | gpu/command_buffer/client/id_allocator_test.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | gpu/command_buffer/client/id_allocator_test.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has the unit tests for the IdAllocator class.
#include "gpu/command_buffer/client/id_allocator.h"
#include "testing/gtest/include/gtest/... | 31.433735 | 79 | 0.7133 | rwatson |
df4722d87f8b200482b4cbae485d8d4df605e8ed | 443 | cpp | C++ | CodeForces/Complete/900-999/911A-NearestMinimums.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/900-999/911A-NearestMinimums.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/900-999/911A-NearestMinimums.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <cstdio>
#include <vector>
int main(){
long n; scanf("%ld", &n);
std::vector<long> a(n);
long min(2e9);
for(long p = 0; p < n; p++){scanf("%ld", &a[p]); min = (min < a[p]) ? min : a[p];}
long prev(-n - 1), dist(n + 1);
for(long p = 0; p < n; p++){
if(a[p] > min){continue;}
... | 21.095238 | 86 | 0.440181 | Ashwanigupta9125 |
df49707945f829f12b0906a12dc63a5114e14558 | 739 | cpp | C++ | src/Touch.cpp | sfranzyshen/OttoIFL | 47dbbecf4ebb60ac7d717a433fed21f4c0d028c4 | [
"MIT"
] | 5 | 2018-04-10T17:12:15.000Z | 2020-12-13T13:15:29.000Z | src/Touch.cpp | sfranzyshen/OttoIFL | 47dbbecf4ebb60ac7d717a433fed21f4c0d028c4 | [
"MIT"
] | 4 | 2018-03-26T06:18:43.000Z | 2018-04-11T00:55:06.000Z | src/Touch.cpp | sfranzyshen/OttoIFL | 47dbbecf4ebb60ac7d717a433fed21f4c0d028c4 | [
"MIT"
] | 3 | 2018-03-19T22:20:33.000Z | 2019-11-01T05:04:29.000Z | #include "Arduino.h"
#include "Touch.h"
int TouchClass::read(byte ADCChannel, int samples)
{
long _value = 0;
for(int _counter = 0; _counter < samples; _counter ++)
{
// set the analog pin as an input pin with a pullup resistor
// this will start charging the capacitive element attached to that pin
p... | 30.791667 | 97 | 0.68065 | sfranzyshen |
df49771f03ecc4b54003974a4397f9641afafb63 | 604 | cpp | C++ | tests/reconnect_on_signal.cpp | Yrds/observable | 20182bcd721e51d056a7419f4e06f3d2502c68c4 | [
"MIT"
] | 45 | 2016-07-07T12:11:18.000Z | 2022-02-11T08:24:22.000Z | tests/reconnect_on_signal.cpp | aseprite/observable | 8e03c3cb060120b25517503e6c1d9072686d1cd3 | [
"MIT"
] | 1 | 2018-08-14T00:35:11.000Z | 2018-08-14T23:13:27.000Z | tests/reconnect_on_signal.cpp | aseprite/observable | 8e03c3cb060120b25517503e6c1d9072686d1cd3 | [
"MIT"
] | 13 | 2016-11-01T16:02:51.000Z | 2021-07-14T22:48:57.000Z | // Observable Library
// Copyright (c) 2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#include "obs/signal.h"
#include "test.h"
obs::signal<void()> sig;
obs::scoped_connection conn;
void func() {
conn = sig.connect(func);
// This seco... | 22.37037 | 70 | 0.690397 | Yrds |
df4b42ae02246cb9a776decedf4652836712485d | 3,449 | cpp | C++ | solutions/LeetCode/C++/542.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | solutions/LeetCode/C++/542.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | solutions/LeetCode/C++/542.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 164 ms submission
static const auto _____ = []()
{
ios::sync_with_stdio(false);
cin.tie(0);
return 0;
}();
class Solution {
public:
vector<vector<int>> updateMatrix(vector<vector<int>>& matrix) {
... | 34.49 | 98 | 0.360104 | timxor |
df51b92829664124a7ba513a939f4e7d6effebb6 | 295 | cpp | C++ | Codeforces/1~999/985/A.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | 6 | 2018-12-30T06:16:54.000Z | 2022-03-23T08:03:33.000Z | Codeforces/1~999/985/A.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | Codeforces/1~999/985/A.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
int n, a[111], a1, a2;
int main() {
scanf("%d", &n), n /= 2;
for (int i = 0; i < n; i++) scanf("%d", a + i);
std::sort(a, a + n);
for (int i = 0; i < n; i++) a1 += abs(2 * i + 1 - a[i]), a2 += abs(2 * i + 2 - a[i]);
printf("%d", a1 < a2 ? a1 : a2);
} | 26.818182 | 86 | 0.447458 | tiger0132 |
df54e43dd7f5ecf925e004ba0ab6a8bd565c7acf | 9,141 | cpp | C++ | UCTests/ucCoefficientDiving.cpp | jalving/PIPS | 62f664237447c7ce05a62552952c86003d90e68f | [
"BSD-3-Clause-LBNL"
] | 65 | 2016-02-04T18:03:39.000Z | 2022-03-24T08:59:38.000Z | UCTests/ucCoefficientDiving.cpp | jalving/PIPS | 62f664237447c7ce05a62552952c86003d90e68f | [
"BSD-3-Clause-LBNL"
] | 34 | 2015-11-17T04:26:51.000Z | 2020-09-24T16:00:22.000Z | UCTests/ucCoefficientDiving.cpp | jalving/PIPS | 62f664237447c7ce05a62552952c86003d90e68f | [
"BSD-3-Clause-LBNL"
] | 26 | 2015-10-15T20:27:52.000Z | 2021-07-14T08:13:34.000Z | #include "stochasticInput.hpp"
#include <boost/scoped_ptr.hpp>
#include <cmath>
#include "ClpBALPInterface.hpp"
#include "ClpRecourseSolver.hpp"
#include "rawInput.hpp"
using namespace std;
using boost::scoped_ptr;
template <typename BALPSolver> void ucCoefficientDiving(stochasticInput &input, const std::string &LPB... | 28.30031 | 797 | 0.681873 | jalving |
df552f60e2c9d8a8be9d1a0a9bb191c427ea5ab3 | 61 | hpp | C++ | src/boost_fusion_container_generation_make_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_container_generation_make_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_container_generation_make_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/container/generation/make_vector.hpp>
| 30.5 | 60 | 0.836066 | miathedev |
df58d9e989d4c1ff39ff5ca925a18e3f7768a188 | 3,000 | hpp | C++ | include/arcade/types.hpp | MisterPeModder/Arcade-Interface | 316e0ec874a98763cd1bad021814d476360d7ead | [
"MIT"
] | 1 | 2022-03-11T16:04:30.000Z | 2022-03-11T16:04:30.000Z | include/arcade/types.hpp | MisterPeModder/Arcade-Interface | 316e0ec874a98763cd1bad021814d476360d7ead | [
"MIT"
] | 3 | 2022-03-15T16:34:46.000Z | 2022-03-31T19:41:18.000Z | include/arcade/types.hpp | MisterPeModder/Arcade-Interface | 316e0ec874a98763cd1bad021814d476360d7ead | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2022
** Arcade: Interface
** File description:
** Misc types
*/
/// @file
///
/// Misc types.
#ifndef ARCADE_TYPES_HPP_
#define ARCADE_TYPES_HPP_
namespace arcade
{
/// A 2D vector.
template <typename T> struct vec2 {
/// x coordinate.
T x;
/// y coordinate.
... | 20.979021 | 73 | 0.437667 | MisterPeModder |
df5ca39377f7c3bb55986bc99647a03214a182bb | 839 | cc | C++ | src/cmd_sparkle.cc | jmscslgroup/sparkle | cbd4e10a41586399e72c62b01c0cdaa837858b44 | [
"MIT"
] | null | null | null | src/cmd_sparkle.cc | jmscslgroup/sparkle | cbd4e10a41586399e72c62b01c0cdaa837858b44 | [
"MIT"
] | null | null | null | src/cmd_sparkle.cc | jmscslgroup/sparkle | cbd4e10a41586399e72c62b01c0cdaa837858b44 | [
"MIT"
] | null | null | null | #include<ros/ros.h>
#include<geometry_msgs/Twist.h>
#include<cstdio>
#include<cstdlib>
#include<ctime>
#include<iostream>
int main(int argc, char **argv)
{
ros::init(argc, argv, "SparkleSetVel");
ros::NodeHandle nodeHandle("");
double velx = 0.0; //Linear X velocity
double angularz = 0.0; //Angu... | 21.512821 | 86 | 0.609058 | jmscslgroup |
df5ccc5e9abe1cb7496503ac519b7b8eae2858b4 | 7,026 | cpp | C++ | ace/ace/RMCast/RMCast_Partial_Message.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/ace/RMCast/RMCast_Partial_Message.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/ace/RMCast/RMCast_Partial_Message.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | // RMCast_Partial_Message.cpp,v 1.3 2000/08/10 01:35:38 coryan Exp
#include "RMCast_Partial_Message.h"
#if !defined (__ACE_INLINE__)
#include "RMCast_Partial_Message.i"
#endif /* __ACE_INLINE__ */
ACE_RCSID(ace, RMCast_Partial_Message, "RMCast_Partial_Message.cpp,v 1.3 2000/08/10 01:35:38 coryan Exp")
ACE... | 32.527778 | 106 | 0.501281 | tharindusathis |
df5d34c38359b1f660eb1efcce8a835d88584a70 | 5,889 | cpp | C++ | src/widget/menu.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | src/widget/menu.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | src/widget/menu.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | #include <cppurses/widget/widgets/menu.hpp>
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <string>
#include <utility>
#include <signals/signals.hpp>
#include <cppurses/painter/attribute.hpp>
#include <cppurses/painter/glyph_string.hpp>
#include <cppurses/painter/painter.hpp>
#include <cppurses/s... | 29.009852 | 80 | 0.661572 | RyanDraves |
df5dee458b51c7ff08cf776eb7bb94b7ad453eb8 | 693,923 | cpp | C++ | cores/8051/sim_oc8051/subfun_cppUpdateFun_IRAM.cpp | tinochinamora/iw_imdb | 89964024bee7f8eaaa25530a8d40155251345be0 | [
"MIT"
] | 3 | 2021-09-10T08:14:45.000Z | 2022-02-25T04:53:12.000Z | cores/8051/sim_oc8051/subfun_cppUpdateFun_IRAM.cpp | PrincetonUniversity/ILA-Modeling-Verification | 88964aad8c465c9da82f1ec66425da9f16fc8d29 | [
"MIT"
] | 1 | 2018-06-25T08:49:22.000Z | 2018-06-25T08:49:22.000Z | cores/8051/sim_oc8051/subfun_cppUpdateFun_IRAM.cpp | PrincetonUniversity/ILA-Modeling-Verification | 88964aad8c465c9da82f1ec66425da9f16fc8d29 | [
"MIT"
] | 3 | 2018-06-26T11:31:40.000Z | 2021-12-01T20:16:21.000Z | #include "common.hpp"
#include "model_oc8051_class.hpp"
type_mem model_oc8051::cppUpdateFun_IRAM()
{
bool cppVar_93437;
BIT_VEC cppVar_93438;
BIT_VEC cppVar_93439;
BIT_VEC cppVar_93440;
BIT_VEC cppVar_93442;
BIT_VEC cppVar_93443;
BIT_VEC cppVar_93444;
BIT_VEC cppVar_93445;
BIT_VEC cppVar_93446;
bool cppVar_9... | 27.832625 | 76 | 0.740883 | tinochinamora |
df5df3daab4989624d4b62d0c164d5c7b3c57da8 | 1,485 | cpp | C++ | gazebo_test_tools/src/spawn_cubes_unity.cpp | karthikm-0/gazebo-pkgs | 14f5966cddac35b59501ff3ee378e0cba650d3fb | [
"BSD-3-Clause"
] | null | null | null | gazebo_test_tools/src/spawn_cubes_unity.cpp | karthikm-0/gazebo-pkgs | 14f5966cddac35b59501ff3ee378e0cba650d3fb | [
"BSD-3-Clause"
] | null | null | null | gazebo_test_tools/src/spawn_cubes_unity.cpp | karthikm-0/gazebo-pkgs | 14f5966cddac35b59501ff3ee378e0cba650d3fb | [
"BSD-3-Clause"
] | null | null | null | #include <gazebo_test_tools/gazebo_cube_spawner.h>
#include <gazebo_test_tools/FakeObjectRecognizer.h>
#include <gazebo_test_tools/SpawnCubesUnity.h>
float dim = 0.05;
float mass = 0.05;
std::string frame_id = "world";
// Used to request cubes to be spawned through a cube_spawner service provided by Jennifer Buehl... | 27.5 | 128 | 0.686869 | karthikm-0 |
df608a16c05eec2080c7b18342b20acbaeeab262 | 849 | cpp | C++ | src/Exceptions.cpp | marcosivni/dicomlib | dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7 | [
"BSD-3-Clause"
] | null | null | null | src/Exceptions.cpp | marcosivni/dicomlib | dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7 | [
"BSD-3-Clause"
] | null | null | null | src/Exceptions.cpp | marcosivni/dicomlib | dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7 | [
"BSD-3-Clause"
] | null | null | null | /************************************************************************
* DICOMLIB
* Copyright 2003 Sunnybrook and Women's College Health Science Center
* Implemented by Trevor Morgan (morgan@sten.sunnybrook.utoronto.ca)
*
* See LICENSE.txt for copyright and licensing info.
******************************************... | 22.342105 | 86 | 0.600707 | marcosivni |
df64c1f607117f4807f9415b5cf860e92ade30c6 | 686 | cpp | C++ | review_gg/day6/thisPointer.cpp | alchemz/interview-algorithm-questions | 34039fc0db2766cf7531668a9947779a3835ebf5 | [
"MIT"
] | null | null | null | review_gg/day6/thisPointer.cpp | alchemz/interview-algorithm-questions | 34039fc0db2766cf7531668a9947779a3835ebf5 | [
"MIT"
] | null | null | null | review_gg/day6/thisPointer.cpp | alchemz/interview-algorithm-questions | 34039fc0db2766cf7531668a9947779a3835ebf5 | [
"MIT"
] | null | null | null | //thisPointer.cpp
#include<iostream>
using namespace std;
class Shape{
public:
Shape(int l=2, int w=2)
{
length = l;
width = w;
}
double Area()
{
return length*width;
}
//user 'this' to compare areas
int compareWithThis(Shape shape)
{
//return the area of the calling shape
return this->Area() > sha... | 15.590909 | 59 | 0.66035 | alchemz |
df64eca128a21b76db80a47157a3c8144567bd50 | 971 | hxx | C++ | include/kinggame/Player.hxx | Zaechus/thekinggame | 2a2dd1749f7c770a1c1c7f150fe6d8f1e69c6946 | [
"MIT"
] | 2 | 2018-04-15T23:13:18.000Z | 2018-04-19T11:02:21.000Z | include/kinggame/Player.hxx | LuckyChucky/kinggame | 6a5c89d70901645975af7f9fa5ee0c466a64b41b | [
"MIT"
] | null | null | null | include/kinggame/Player.hxx | LuckyChucky/kinggame | 6a5c89d70901645975af7f9fa5ee0c466a64b41b | [
"MIT"
] | 2 | 2018-04-23T00:05:28.000Z | 2018-09-02T21:51:30.000Z | // include/kinggame/Player.hxx
//
// Maxwell Anderson 2018
#ifndef THEKINGGAME_INCLUDE_KINGGAME_PLAYER_HXX_
#define THEKINGGAME_INCLUDE_KINGGAME_PLAYER_HXX_
#include <map>
#include <string>
#include "Obj.hxx"
#include "Room.hxx"
#include "World.hxx"
namespace kinggame {
class World;
class Player {
public:
Player... | 19.039216 | 66 | 0.710608 | Zaechus |
df689544c12a535686b9c9f51cdc368e57d92253 | 1,298 | hpp | C++ | libraries/plugins/apis/block_api/include/morphene/plugins/block_api/block_api_objects.hpp | morphene/morphene | 5620f9a8473690ff63e67b7b242a202d05f7ee86 | [
"MIT"
] | 4 | 2019-05-16T20:10:54.000Z | 2019-05-27T22:41:14.000Z | libraries/plugins/apis/block_api/include/morphene/plugins/block_api/block_api_objects.hpp | morphene/morphene | 5620f9a8473690ff63e67b7b242a202d05f7ee86 | [
"MIT"
] | null | null | null | libraries/plugins/apis/block_api/include/morphene/plugins/block_api/block_api_objects.hpp | morphene/morphene | 5620f9a8473690ff63e67b7b242a202d05f7ee86 | [
"MIT"
] | null | null | null | #pragma once
#include <morphene/chain/account_object.hpp>
#include <morphene/chain/block_summary_object.hpp>
#include <morphene/chain/global_property_object.hpp>
#include <morphene/chain/history_object.hpp>
#include <morphene/chain/morphene_objects.hpp>
#include <morphene/chain/transaction_object.hpp>
#include <morphen... | 33.282051 | 110 | 0.697227 | morphene |
df6949b2d7d952b5d9d0932a66ecd9693815f292 | 952 | cpp | C++ | aten/src/ATen/native/Memory.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 60,067 | 2017-01-18T17:21:31.000Z | 2022-03-31T21:37:45.000Z | aten/src/ATen/native/Memory.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 66,955 | 2017-01-18T17:21:38.000Z | 2022-03-31T23:56:11.000Z | aten/src/ATen/native/Memory.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 19,210 | 2017-01-18T17:45:04.000Z | 2022-03-31T23:51:56.000Z | #include <ATen/ATen.h>
#include <ATen/MemoryOverlap.h>
namespace at {
namespace native {
// Exposes at::has_internal_overlap as an operator for testing purposes
int64_t _debug_has_internal_overlap(const Tensor& self) {
return static_cast<int64_t>(at::has_internal_overlap(self));
}
// Technically, we could force ba... | 30.709677 | 80 | 0.741597 | Hacky-DH |
df6c1484e866f38f78c718766f6ffc7938f05a1f | 37 | cpp | C++ | Defines.cpp | dlsocool/dcx | 3d209d27cbd719f1d6c6d125b6f935ecaa79094c | [
"BSD-3-Clause"
] | 18 | 2015-02-21T05:41:19.000Z | 2022-02-26T00:48:31.000Z | Defines.cpp | dlsocool/dcx | 3d209d27cbd719f1d6c6d125b6f935ecaa79094c | [
"BSD-3-Clause"
] | 68 | 2015-04-06T16:23:35.000Z | 2022-03-09T17:33:50.000Z | Defines.cpp | dlsocool/dcx | 3d209d27cbd719f1d6c6d125b6f935ecaa79094c | [
"BSD-3-Clause"
] | 2 | 2018-04-01T09:39:33.000Z | 2018-08-04T23:53:29.000Z | #include "defines.h"
/* EOF */
| 7.4 | 21 | 0.486486 | dlsocool |
df70f97669c7466d7d775e9db2da4dd901e4d306 | 27,829 | cpp | C++ | hackathon/XuanZhao/JudgeBranch/randomforest.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/XuanZhao/JudgeBranch/randomforest.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | hackathon/XuanZhao/JudgeBranch/randomforest.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | #include "randomforest.h"
int getRandomNum(){
int n = rand();
return n;
}
TreeNode* TreeNode::clone(){
TreeNode* treeCopy = new TreeNode();
treeCopy->data = QVector<QVector<float> >();
treeCopy->isLeaf = this->isLeaf;
if(this->left){
treeCopy->left = this->left->clone();
}
if(... | 29.232143 | 139 | 0.531208 | zzhmark |
df71f82e1b480dbda71965ff96401214791386b2 | 14,850 | cpp | C++ | src/games/hexon/HexBlocks_Hexon_Utils.cpp | Press-Play-On-Tape/TheHex | ad2876e1de0d09dbe8123201ecc88bcd4a0d7c5c | [
"BSD-3-Clause"
] | 1 | 2021-07-05T15:55:59.000Z | 2021-07-05T15:55:59.000Z | src/games/hexon/HexBlocks_Hexon_Utils.cpp | Press-Play-On-Tape/TheHex | ad2876e1de0d09dbe8123201ecc88bcd4a0d7c5c | [
"BSD-3-Clause"
] | null | null | null | src/games/hexon/HexBlocks_Hexon_Utils.cpp | Press-Play-On-Tape/TheHex | ad2876e1de0d09dbe8123201ecc88bcd4a0d7c5c | [
"BSD-3-Clause"
] | null | null | null | #include "../../HexBlocks.h"
using PC = Pokitto::Core;
using PD = Pokitto::Display;
#include "../../utils/Constants.h"
#include "../../sounds/Sounds.h"
bool Game::isValidMovement_Hexon(SelectedShape &selectedShape) {
return isValidMovement_Hexon(selectedShape, this->gamePlayVariables.x, this->gamePlayVariab... | 24.50495 | 158 | 0.46303 | Press-Play-On-Tape |
df7e7b4824394733be5bed1bbf27832bb315434a | 698 | cpp | C++ | example-midi.cpp | gsliepen/modsynth | 38ef0cbdf7d5a61b682df8ce73ae5edb8adc40de | [
"MIT"
] | 1 | 2021-01-11T02:02:19.000Z | 2021-01-11T02:02:19.000Z | example-midi.cpp | gsliepen/modsynth | 38ef0cbdf7d5a61b682df8ce73ae5edb8adc40de | [
"MIT"
] | null | null | null | example-midi.cpp | gsliepen/modsynth | 38ef0cbdf7d5a61b682df8ce73ae5edb8adc40de | [
"MIT"
] | null | null | null | /* SPDX-License-Identifier: MIT */
#include <iostream>
#include "modsynth.hpp"
#include "midi.hpp"
using namespace ModSynth;
int main()
{
// Components
MIDI midi;
VCO vco;
VCF vcf{0, 3};
VCA vca{2000};
Envelope envelope{0.1, 1, 0.1};
Speaker speaker;
// Routing
Wire wires[] {
{midi.channels[0].gate, ... | 20.529412 | 49 | 0.620344 | gsliepen |
df7f817be3946af6097fbb92bcf18326b471680d | 1,586 | cpp | C++ | test/core/testCoordinator.cpp | luyi0619/coco | 486baa4341be58c26be8c964d0550ae84604cdac | [
"MIT"
] | 2 | 2021-08-12T12:23:26.000Z | 2021-09-12T04:12:41.000Z | test/core/testCoordinator.cpp | luyi0619/coco | 486baa4341be58c26be8c964d0550ae84604cdac | [
"MIT"
] | null | null | null | test/core/testCoordinator.cpp | luyi0619/coco | 486baa4341be58c26be8c964d0550ae84604cdac | [
"MIT"
] | null | null | null | //
// Created by Yi Lu on 8/28/18.
//
#include "benchmark/tpcc/Database.h"
#include "core/Coordinator.h"
#include <gtest/gtest.h>
DEFINE_int32(threads, 1, "the number of threads.");
DEFINE_string(servers, "127.0.0.1:10010;127.0.0.1:10011;127.0.0.1:10012",
"semicolon-separated list of servers");
TEST(Te... | 22.027778 | 73 | 0.653846 | luyi0619 |
df7fe383943d3aef908aec409cab14e27574f932 | 1,287 | cpp | C++ | src/States/IntroState.cpp | ananace/LD43 | 5b52767d09b9fceb60200ef000e83e2a308adb81 | [
"MIT"
] | null | null | null | src/States/IntroState.cpp | ananace/LD43 | 5b52767d09b9fceb60200ef000e83e2a308adb81 | [
"MIT"
] | null | null | null | src/States/IntroState.cpp | ananace/LD43 | 5b52767d09b9fceb60200ef000e83e2a308adb81 | [
"MIT"
] | null | null | null | #include "../Application.hpp"
#include "IntroState.hpp"
#include "MenuState.hpp"
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/Window/Event.hpp>
using States::IntroState;
IntroState::IntroState()
: m_introTimer(0)
{
}
void IntroState::init()
{
auto& resman = getApp().getResourceManager();
// TODO:... | 24.75 | 76 | 0.671329 | ananace |
df822ff4291860fce4b901602cf1b2ccaf92cc5d | 80 | cpp | C++ | framework/GUI/Sources/all.cpp | Daniel-Mietchen/kigs | 92ab6deaf3e947465781a400c5a791ee171876c8 | [
"MIT"
] | 38 | 2020-05-08T13:39:57.000Z | 2022-03-28T05:58:41.000Z | framework/GUI/Sources/all.cpp | Daniel-Mietchen/kigs | 92ab6deaf3e947465781a400c5a791ee171876c8 | [
"MIT"
] | 3 | 2020-06-01T14:12:36.000Z | 2020-06-24T13:05:21.000Z | framework/GUI/Sources/all.cpp | Daniel-Mietchen/kigs | 92ab6deaf3e947465781a400c5a791ee171876c8 | [
"MIT"
] | 16 | 2020-05-04T19:20:35.000Z | 2022-01-25T08:31:29.000Z | #include "DisplayDeviceCaps.cpp"
#include "ModuleGUI.cpp"
#include "Window.cpp"
| 20 | 32 | 0.775 | Daniel-Mietchen |
df87260b95fbabd5b001f031baa83d6a4d95778d | 661 | cpp | C++ | leetcode/number-of-good-pairs.cpp | erhant/programming-challenges | 1ffcd514657ad04206a1de1c5469cb3f5f901e27 | [
"MIT"
] | 1 | 2022-01-15T22:42:02.000Z | 2022-01-15T22:42:02.000Z | leetcode/number-of-good-pairs.cpp | erhant/programming-challenges | 1ffcd514657ad04206a1de1c5469cb3f5f901e27 | [
"MIT"
] | null | null | null | leetcode/number-of-good-pairs.cpp | erhant/programming-challenges | 1ffcd514657ad04206a1de1c5469cb3f5f901e27 | [
"MIT"
] | null | null | null | /*
topics:
- array
- hash table
- math
- counting
difficulty: easy
*/
// Use Histogram
class Solution {
public:
int numIdenticalPairs(vector<int>& nums) {
int pairs = 0;
int H[101] = {0};
for (int& n : nums) {
pairs += H[n]++;
}
return pairs;
}
};
// Use hash table
class Solutio... | 16.525 | 45 | 0.515885 | erhant |
df89214f90391b7cb0712ab7fa3d96fe8164eab3 | 2,747 | cc | C++ | lib/kahypar/tests/partition/evolutionary/edge_frequency_test.cc | sjkelly/LSOracle | 21688c5d542740dfc8577349fa615ee655acd92c | [
"MIT"
] | null | null | null | lib/kahypar/tests/partition/evolutionary/edge_frequency_test.cc | sjkelly/LSOracle | 21688c5d542740dfc8577349fa615ee655acd92c | [
"MIT"
] | 1 | 2021-07-26T22:09:49.000Z | 2021-07-26T22:09:49.000Z | lib/kahypar/tests/partition/evolutionary/edge_frequency_test.cc | sjkelly/LSOracle | 21688c5d542740dfc8577349fa615ee655acd92c | [
"MIT"
] | 2 | 2021-07-26T14:46:51.000Z | 2021-11-09T11:32:09.000Z | /*******************************************************************************
* This file is part of KaHyPar.
*
* Copyright (C) 2018 Sebastian Schlag <sebastian.schlag@kit.edu>
* Copyright (C) 2018 Robin Andre <robinandre1995@web.de>
*
* KaHyPar is free software: you can redistribute it and/or modify
* it und... | 36.144737 | 106 | 0.683655 | sjkelly |
df8df2e8cf51da9dd2c06863f9e192f2a38d6134 | 537 | cpp | C++ | CrossWars2/RotationComponent.cpp | GigaNova/CrossWars-2 | 390bda94a9a446ad35fb1ea0399332f668325875 | [
"MIT"
] | null | null | null | CrossWars2/RotationComponent.cpp | GigaNova/CrossWars-2 | 390bda94a9a446ad35fb1ea0399332f668325875 | [
"MIT"
] | null | null | null | CrossWars2/RotationComponent.cpp | GigaNova/CrossWars-2 | 390bda94a9a446ad35fb1ea0399332f668325875 | [
"MIT"
] | null | null | null | #include "RotationComponent.h"
RotationComponent::RotationComponent(float t_x, float t_y, float t_z) : m_rotation(glm::vec3(t_x, t_y, t_z))
{
}
RotationComponent::RotationComponent(glm::vec3 t_rotation) : m_rotation(t_rotation)
{
}
RotationComponent::~RotationComponent()
{
}
void RotationComponent::increaseRotation... | 18.517241 | 108 | 0.769088 | GigaNova |
df8e2b842bd0864d39a8995a20cfeca468852bc6 | 460 | cpp | C++ | Intra NSU Programming Contest/Welcome to INPC/Welcome to INPC/main.cpp | anirudha-ani/Toph | e7781731e8b1d6a107df3eb88f3976b8f4b0f955 | [
"Apache-2.0"
] | null | null | null | Intra NSU Programming Contest/Welcome to INPC/Welcome to INPC/main.cpp | anirudha-ani/Toph | e7781731e8b1d6a107df3eb88f3976b8f4b0f955 | [
"Apache-2.0"
] | null | null | null | Intra NSU Programming Contest/Welcome to INPC/Welcome to INPC/main.cpp | anirudha-ani/Toph | e7781731e8b1d6a107df3eb88f3976b8f4b0f955 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// Welcome to INPC
//
// Created by Anirudha Paul on 2/16/16.
// Copyright © 2016 Anirudha Paul. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
int names;
string input;
cin >> names;
for (int i = 0 ; i < names; i... | 16.428571 | 56 | 0.521739 | anirudha-ani |
df8f258c9bafbfb58daf0be19e5fabe16509bd31 | 2,253 | cc | C++ | src/Logger.cc | fdalvi/CTranslate | 26cc91912ec05bf62f4f52e3318b601c9603aed5 | [
"MIT"
] | 86 | 2017-01-10T00:35:40.000Z | 2022-01-12T18:55:35.000Z | src/Logger.cc | fdalvi/CTranslate | 26cc91912ec05bf62f4f52e3318b601c9603aed5 | [
"MIT"
] | 41 | 2017-01-10T16:37:37.000Z | 2020-04-07T09:10:45.000Z | src/Logger.cc | fdalvi/CTranslate | 26cc91912ec05bf62f4f52e3318b601c9603aed5 | [
"MIT"
] | 60 | 2017-01-06T17:03:41.000Z | 2021-06-04T02:09:48.000Z | #include "onmt/Logger.h"
#include <boost/log/core.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/log/sources/severity_logger.hpp>
#include <boost/log/sources/global_logger_storage.hpp>
#include <boost/log/so... | 31.732394 | 127 | 0.608522 | fdalvi |
df94952b85b8b13181119bf01e6ba2da3c799941 | 3,631 | cpp | C++ | bs_bos_core_data_storage/src/hdm_serialize.cpp | bs-eagle/bs-eagle | b1017a4f6ac2dcafba2deafec84052ddde792671 | [
"BSD-3-Clause"
] | 7 | 2015-07-16T22:30:36.000Z | 2020-02-06T10:16:42.000Z | bs_bos_core_data_storage/src/hdm_serialize.cpp | bs-eagle/bs-eagle | b1017a4f6ac2dcafba2deafec84052ddde792671 | [
"BSD-3-Clause"
] | null | null | null | bs_bos_core_data_storage/src/hdm_serialize.cpp | bs-eagle/bs-eagle | b1017a4f6ac2dcafba2deafec84052ddde792671 | [
"BSD-3-Clause"
] | 3 | 2017-01-05T20:06:28.000Z | 2021-12-20T16:19:10.000Z | /// @file hdm_serialize.cpp
/// @brief Serialization implementation for hdm
/// @author uentity
/// @version
/// @date 20.01.2012
/// @copyright This source code is released under the terms of
/// the BSD License. See LICENSE for more details.
#include "hdm_serialize.h"
#include "locale_keeper_serialize.h"... | 25.751773 | 112 | 0.626549 | bs-eagle |
df9628d266dbf4fa292df90283e031b439116d32 | 1,649 | cpp | C++ | polish-spoj/KWACIK/solution.cpp | kpagacz/spoj | 8bff809c6c5227a6e85e9b12f808dd921f24e587 | [
"MIT"
] | 1 | 2021-12-06T16:01:55.000Z | 2021-12-06T16:01:55.000Z | polish-spoj/KWACIK/solution.cpp | kpagacz/comp-programming | 15482d762ede4d3b7f8ff45a193f6e6bcd85672a | [
"MIT"
] | null | null | null | polish-spoj/KWACIK/solution.cpp | kpagacz/comp-programming | 15482d762ede4d3b7f8ff45a193f6e6bcd85672a | [
"MIT"
] | null | null | null | // link to the problem https://pl.spoj.com/problems/KWACIK/
#include<iostream>
#include<array>
#include<algorithm>
bool is_broken(const std::array<int, 9>& digits, const int& threshold) {
if (std::any_of(digits.begin(), digits.end(), [](int value) {return value > 9; })) return true;
if (digits[0] + digits[1] + digit... | 28.929825 | 110 | 0.64524 | kpagacz |
df988e6431d9ac472e246f9dddb2bb6193bccdf1 | 9,099 | cpp | C++ | modules/actors/tests/test_actors.cpp | agruzdev/Yato | 9b5a49f6ec4169b67b9e5ffd11fdae9c238b0a3d | [
"Apache-2.0"
] | 9 | 2020-04-16T10:43:09.000Z | 2022-03-07T04:31:52.000Z | modules/actors/tests/test_actors.cpp | agruzdev/Yato | 9b5a49f6ec4169b67b9e5ffd11fdae9c238b0a3d | [
"Apache-2.0"
] | 3 | 2020-04-16T10:51:31.000Z | 2021-09-02T19:37:26.000Z | modules/actors/tests/test_actors.cpp | agruzdev/Yato | 9b5a49f6ec4169b67b9e5ffd11fdae9c238b0a3d | [
"Apache-2.0"
] | null | null | null | /**
* YATO library
*
* Apache License, Version 2.0
* Copyright (c) 2016-2020 Alexey Gruzdev
*/
#include "gtest/gtest.h"
#include <thread>
#include <yato/actors/actor_system.h>
#include <yato/actors/logger.h>
#include <yato/any_match.h>
#include <yato/stl_utility.h>
#include "test_actors_common.h"
namespace
{
... | 24.658537 | 109 | 0.528849 | agruzdev |
df99784fb78019f698efeff0f2b432ac6828bdc8 | 1,063 | cpp | C++ | Source/Utilities/Image.cpp | Hopson97/ASCIImonClassic | a20d0e7272c512434f767d128642a057b5b20ca5 | [
"MIT"
] | 1 | 2018-05-27T18:18:08.000Z | 2018-05-27T18:18:08.000Z | Source/Utilities/Image.cpp | Hopson97/ASCIImonClassic | a20d0e7272c512434f767d128642a057b5b20ca5 | [
"MIT"
] | null | null | null | Source/Utilities/Image.cpp | Hopson97/ASCIImonClassic | a20d0e7272c512434f767d128642a057b5b20ca5 | [
"MIT"
] | null | null | null | #include "Image.h"
#include <stdexcept>
#include <iostream>
Image :: Image ( const std::string& fileName )
{
loadFromFile( fileName );
}
Image :: Image ( std::ifstream& inFile )
{
loadFromStream( inFile );
}
void Image :: loadFromFile ( const std::string& fileName )
{
std::ifstream inFile;
inFile.op... | 19.685185 | 79 | 0.588899 | Hopson97 |
df9a2730da7758c99d42df41f6259098ae425b4c | 471 | cpp | C++ | vjudge/209985-UIU - 1/E.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 6 | 2018-10-15T18:45:05.000Z | 2022-03-29T04:30:10.000Z | vjudge/209985-UIU - 1/E.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | null | null | null | vjudge/209985-UIU - 1/E.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 4 | 2018-01-07T06:20:07.000Z | 2019-08-21T15:45:59.000Z | const int MAXN = 20;
int a[MAXN], m;
int gcd(int a, int b)
{
return b ? gcd(b, a % b) : a;
}
long long cnt = 0;
void gao(int cur, int g)
{
if (cur > m)
{
if (g == 1)
++cnt;
return;
}
for (int i = 1; i <= a[cur]; ++i)
gao(cur + 1, g < 0 ? i : gcd(g, i));
}
i... | 15.193548 | 44 | 0.390658 | dipta007 |
df9e85f84f7dbaee446ea027d9071295f8197d5e | 1,734 | cpp | C++ | uva/437.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/437.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | uva/437.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | #include<stdio.h>
long x[901],y[901],z[901],t;
void sort1(int s,int e){
if(s>=e)return;
int p1=s+1,p2=e;
while(1){
for(;p1<=e && y[s]>=y[p1];p1++);
for(;p2>s && y[s]<=y[p2];p2--);
if(p1>=p2)break;
t=x[p1];x[p1]=x[p2];x[p2]=t;
t=y[p1];y[p1]=y[p2];y[p2]=t;
t=z[p... | 23.753425 | 60 | 0.371972 | dk00 |
dfa0a48080a3ca6c21631cc133727f4db4a6076c | 2,211 | cpp | C++ | Mathematics/Fundamentals/Easy/Sherlock-and-Moving-Tiles.cpp | Justin-Teng/HackerRank | bb501715d4fb0322ccffa70b75c4d6df1463a334 | [
"MIT"
] | null | null | null | Mathematics/Fundamentals/Easy/Sherlock-and-Moving-Tiles.cpp | Justin-Teng/HackerRank | bb501715d4fb0322ccffa70b75c4d6df1463a334 | [
"MIT"
] | null | null | null | Mathematics/Fundamentals/Easy/Sherlock-and-Moving-Tiles.cpp | Justin-Teng/HackerRank | bb501715d4fb0322ccffa70b75c4d6df1463a334 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
/*
* Complete the movingTiles function below.
*/
vector<double> movingTiles(long l, long s1, long s2, vector<long> queries) {
vector<double> answer(queries.size(), -1);
for (int i = 0; i < queries.size(); i++) {
doub... | 23.774194 | 115 | 0.599276 | Justin-Teng |
dfa253a08b9190811a200df0db5021681ddfef32 | 371 | cpp | C++ | lib/src/dexode/eventbus/perk/TagPerk.cpp | nicolasnoble/EventBus | de1852c6394640c76ab58429245408dabcf6cc79 | [
"Apache-2.0"
] | 231 | 2017-08-17T16:08:44.000Z | 2022-03-31T16:35:32.000Z | lib/src/dexode/eventbus/perk/TagPerk.cpp | qilinlee/EventBus | 182fea93590524578fe90226e7e1b3eb42357e34 | [
"Apache-2.0"
] | 37 | 2018-07-31T08:00:01.000Z | 2021-08-03T14:32:33.000Z | lib/src/dexode/eventbus/perk/TagPerk.cpp | qilinlee/EventBus | 182fea93590524578fe90226e7e1b3eb42357e34 | [
"Apache-2.0"
] | 73 | 2017-07-25T14:45:14.000Z | 2022-03-29T02:10:48.000Z | //
// Created by gelldur on 24.12.2019.
//
#include "TagPerk.hpp"
namespace dexode::eventbus::perk
{
Flag TagPerk::onPrePostponeEvent(PostponeHelper& postponeCall)
{
if(auto found = _eventsToWrap.find(postponeCall.eventID); found != _eventsToWrap.end())
{
found->second(postponeCall.event);
return Flag::postpone... | 17.666667 | 88 | 0.735849 | nicolasnoble |
dfa5e242c7196ce434e93bbe4c0041385f982ec1 | 1,112 | cpp | C++ | src_tests/arm_neon/test_vrev64.cpp | AlexYaruki/prism | ba4b20f570d03bf896ad3634e5fbf4a6bf5b02f5 | [
"Apache-2.0"
] | 8 | 2019-06-14T09:25:46.000Z | 2021-11-11T10:34:28.000Z | src_tests/arm_neon/test_vrev64.cpp | AlexYaruki/prism | ba4b20f570d03bf896ad3634e5fbf4a6bf5b02f5 | [
"Apache-2.0"
] | 1 | 2019-10-06T02:11:17.000Z | 2021-11-11T11:17:16.000Z | src_tests/arm_neon/test_vrev64.cpp | AlexYaruki/prism | ba4b20f570d03bf896ad3634e5fbf4a6bf5b02f5 | [
"Apache-2.0"
] | 2 | 2017-06-10T01:01:00.000Z | 2021-07-13T00:48:30.000Z | #include <iris/iris.h>
#include <cassert>
using namespace iris;
template <typename T>
void test_vrev64(T(*func)(T)) {
T v;
for(size_t i = 0; i < T::length; i++) {
v.template at<typename T::elementType>(i) = i;
}
T result = func(v);
const size_t packs = (T::length * sizeof(typename T::eleme... | 25.860465 | 146 | 0.633094 | AlexYaruki |
dfab8f6dc29a9a099af4abeabb71f19a343b73e2 | 1,807 | cpp | C++ | python/pytscaling.cpp | jolibrain/libtscaling | 171c6e205913a99354a9516c16d1fb73b0c97970 | [
"Apache-2.0"
] | 4 | 2018-04-12T10:28:55.000Z | 2020-02-06T06:14:02.000Z | python/pytscaling.cpp | jolibrain/libtscaling | 171c6e205913a99354a9516c16d1fb73b0c97970 | [
"Apache-2.0"
] | null | null | null | python/pytscaling.cpp | jolibrain/libtscaling | 171c6e205913a99354a9516c16d1fb73b0c97970 | [
"Apache-2.0"
] | null | null | null | #include "tscaling.h"
#include <boost/python.hpp>
void setDataPy(TempScaler& ts, boost::python::list& llogits, boost::python::list& llabels)
{
std::vector<std::vector<double>> vlogits;
for (int i=0; i< len(llogits); ++i)
{
std::vector<double> logits;
boost::python::list l = boost::python::extract<b... | 26.573529 | 115 | 0.659657 | jolibrain |
dfabd2193041a39c93bed6a8ec5b37ad705e6303 | 15,858 | cpp | C++ | code_reading/oceanbase-master/unittest/storage/transaction/test_ob_trans_submit_log_cb.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/unittest/storage/transaction/test_ob_trans_submit_log_cb.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/unittest/storage/transaction/test_ob_trans_submit_log_cb.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE 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 ON AN "AS IS" BAS... | 35.79684 | 118 | 0.756968 | wangcy6 |