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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8539a542b4f972caf0b9765bddbe847f0955de38 | 4,405 | cpp | C++ | Data-Mining/decision-tree/main.cpp | lijiansong/Postgraduate-Course | 2c7a32a02757725b5a50bc754c9cd9dba199940a | [
"WTFPL"
] | 7 | 2018-07-31T07:17:31.000Z | 2022-03-18T16:21:57.000Z | Data-Mining/decision-tree/main.cpp | lijiansong/Postgraduate-Course | 2c7a32a02757725b5a50bc754c9cd9dba199940a | [
"WTFPL"
] | null | null | null | Data-Mining/decision-tree/main.cpp | lijiansong/Postgraduate-Course | 2c7a32a02757725b5a50bc754c9cd9dba199940a | [
"WTFPL"
] | 5 | 2016-12-30T14:57:14.000Z | 2022-03-16T03:16:33.000Z | #include "utils.h"
/*
Reference:
CSDN blog 决策树实现例子:
http://blog.csdn.net/zhoubl668/article/details/40828573
连续特征离散化和归一化(卡方检验和信息增益):
http://www.cnblogs.com/zhizhan/p/5042935.html
卡方检验
http://www.cnblogs.com/emanlee/archive/2008/10/25/1319569.html
数据离散化的常用方法
http://wenku.baidu.com/view/d38264791711cc7931b71691.html
c... | 31.021127 | 106 | 0.639047 | lijiansong |
853cb0c82c9d3eb4a1b694ad305b755b203c3619 | 12,324 | cpp | C++ | source/main.cpp | HaikuArchives/WheresMyMouse | 4baac8a8fe313f4251ec40f7235ca033a8be0b19 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T17:47:16.000Z | 2017-09-09T17:47:16.000Z | source/main.cpp | HaikuArchives/WheresMyMouse | 4baac8a8fe313f4251ec40f7235ca033a8be0b19 | [
"BSD-3-Clause"
] | 10 | 2016-06-26T12:42:25.000Z | 2017-02-19T10:02:58.000Z | source/main.cpp | HaikuArchives/WheresMyMouse | 4baac8a8fe313f4251ec40f7235ca033a8be0b19 | [
"BSD-3-Clause"
] | 6 | 2016-06-26T08:11:12.000Z | 2020-10-26T06:17:56.000Z | /*
Copyright (c) 2002, Marcin 'Shard' Konicki
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the... | 31.6 | 754 | 0.596478 | HaikuArchives |
8546f8a70b3370d86f6d6896d01853eefa2e521a | 9,280 | cpp | C++ | redemption/src/mod/metrics.cpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/mod/metrics.cpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/mod/metrics.cpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be... | 36.535433 | 134 | 0.644504 | DianaAssistant |
854a24c264a8e630eca0b9f65a435c5930cda8e5 | 634 | hpp | C++ | module/Library/DPP/Integration.hpp | theKAKAN/SqMod | 0c4c78da6e5f2741b0f65215fe08b84232a02fec | [
"MIT"
] | null | null | null | module/Library/DPP/Integration.hpp | theKAKAN/SqMod | 0c4c78da6e5f2741b0f65215fe08b84232a02fec | [
"MIT"
] | null | null | null | module/Library/DPP/Integration.hpp | theKAKAN/SqMod | 0c4c78da6e5f2741b0f65215fe08b84232a02fec | [
"MIT"
] | null | null | null | #pragma once
// ------------------------------------------------------------------------------------------------
#include "Core/Utility.hpp"
// ------------------------------------------------------------------------------------------------
#include <chrono>
// -------------------------------------------------------... | 31.7 | 99 | 0.135647 | theKAKAN |
854b09ac5bed5f34650b0dd75e7f4bcd399b89c3 | 2,790 | hpp | C++ | measurer/hotspot-measurer/hotspot/src/share/vm/gc_implementation/parallelScavenge/generationSizer.hpp | armoredsoftware/protocol | e3b0c1df8bc1027865caec6d117e5925f71f26d2 | [
"BSD-3-Clause"
] | 184 | 2015-01-04T03:38:20.000Z | 2022-03-30T05:47:21.000Z | measurer/hotspot-measurer/hotspot/src/share/vm/gc_implementation/parallelScavenge/generationSizer.hpp | armoredsoftware/protocol | e3b0c1df8bc1027865caec6d117e5925f71f26d2 | [
"BSD-3-Clause"
] | 1 | 2016-01-17T09:18:17.000Z | 2016-01-17T09:18:17.000Z | measurer/hotspot-measurer/hotspot/src/share/vm/gc_implementation/parallelScavenge/generationSizer.hpp | armoredsoftware/protocol | e3b0c1df8bc1027865caec6d117e5925f71f26d2 | [
"BSD-3-Clause"
] | 101 | 2015-01-16T23:46:31.000Z | 2022-03-30T05:47:06.000Z | /*
* Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 36.233766 | 79 | 0.731541 | armoredsoftware |
854d372ba261499e8dfb45ef9e3435b2e89056a9 | 529 | hpp | C++ | src/checkbox_delegate.hpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | src/checkbox_delegate.hpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | src/checkbox_delegate.hpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | #pragma once
#include <QStyledItemDelegate>
namespace dg {
class ColumnTarget;
class CheckBoxDelegate :
public QStyledItemDelegate
{
Q_OBJECT
private:
const ColumnTarget* _column;
public:
CheckBoxDelegate(const ColumnTarget* column, QObject* parent=nullptr);
void paint(QPainter *painter, const QSt... | 29.388889 | 133 | 0.778828 | degarashi |
85504cb2689ac2c38a99ac1d4797e591e1966394 | 353 | cpp | C++ | Uni/c++/programamzione-1/Esempi/Tutorato/Lezione2/Esercizio17.cpp | VenomBigBozz/Esercizi | 44bcf62df162cfb5b924b291f9839fbe1b04dcba | [
"Unlicense"
] | null | null | null | Uni/c++/programamzione-1/Esempi/Tutorato/Lezione2/Esercizio17.cpp | VenomBigBozz/Esercizi | 44bcf62df162cfb5b924b291f9839fbe1b04dcba | [
"Unlicense"
] | null | null | null | Uni/c++/programamzione-1/Esempi/Tutorato/Lezione2/Esercizio17.cpp | VenomBigBozz/Esercizi | 44bcf62df162cfb5b924b291f9839fbe1b04dcba | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
bool esercizio17(int **A, int n, int m, double w, double v) {
for(int j = 0; j < m; j++) {
double somma = 0;
for(int i = 0; i < n; i++) {
somma += A[i][j];
}
somma /= n;
if(somma >= w && somma <= v) return true;
}
... | 18.578947 | 61 | 0.461756 | VenomBigBozz |
85505596d6838934b2f3760746179725a92a5abc | 2,680 | cpp | C++ | SnapshotPrim.cpp | ScottyPotty1/Dolphin-7-VM-Releases | 696039e4192d662ed81af034ab47fe4324422477 | [
"MIT"
] | null | null | null | SnapshotPrim.cpp | ScottyPotty1/Dolphin-7-VM-Releases | 696039e4192d662ed81af034ab47fe4324422477 | [
"MIT"
] | null | null | null | SnapshotPrim.cpp | ScottyPotty1/Dolphin-7-VM-Releases | 696039e4192d662ed81af034ab47fe4324422477 | [
"MIT"
] | null | null | null | /******************************************************************************
File: SnapshotPrim.cpp
Description:
Implementation of the Interpreter class' snapshot/quit primitive methods
******************************************************************************/
#include "Ist.h"
#ifndef _DEBUG
#pragma opt... | 25.283019 | 125 | 0.693284 | ScottyPotty1 |
85524e366e2b6852c1794420b8a4e27c97cb2f9c | 1,135 | cc | C++ | chrome/browser/ui/webui/chromeos/machine_learning/machine_learning_internals_page_handler.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/browser/ui/webui/chromeos/machine_learning/machine_learning_internals_page_handler.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/browser/ui/webui/chromeos/machine_learning/machine_learning_internals_page_handler.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2019 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 "chrome/browser/ui/webui/chromeos/machine_learning/machine_learning_internals_page_handler.h"
#include <string>
#include <utility>
#include "ch... | 33.382353 | 102 | 0.770044 | Ron423c |
855a687422bf20eb254af6af8229182fd8e67566 | 803 | cpp | C++ | zhangjunyan2580-c++/day2/P2.cpp | joelfak/advent_of_code_2019 | d5031078c53c181835b4bf86458b360542f0122e | [
"Apache-2.0"
] | 9 | 2019-12-01T14:52:40.000Z | 2020-12-16T14:24:19.000Z | zhangjunyan2580-c++/day2/P2.cpp | joelfak/advent_of_code_2019 | d5031078c53c181835b4bf86458b360542f0122e | [
"Apache-2.0"
] | null | null | null | zhangjunyan2580-c++/day2/P2.cpp | joelfak/advent_of_code_2019 | d5031078c53c181835b4bf86458b360542f0122e | [
"Apache-2.0"
] | 51 | 2019-11-26T14:49:05.000Z | 2021-12-01T20:53:41.000Z | #include <stdio.h>
int read(){
int n=0;
static char ch;
while(ch!=EOF&&(ch<'0'||ch>'9'))ch=getchar();
if(ch==EOF)return -1;
while(ch>='0'&&ch<='9')n=n*10+ch-'0',ch=getchar();
return n;
}
int values[10005],real[10005];
int main(){
freopen("Input.txt","r",stdin);
int i=0;
while((real[i++]=read())!=-... | 22.942857 | 86 | 0.533001 | joelfak |
855a79605de8eba1cec296ee974f23e1c03859e5 | 1,135 | cpp | C++ | test/tprocess.cpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | 5 | 2019-12-27T07:30:03.000Z | 2020-10-13T01:08:55.000Z | test/tprocess.cpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | null | null | null | test/tprocess.cpp | drypot/san-2.x | 44e626793b1dc50826ba0f276d5cc69b7c9ca923 | [
"MIT"
] | 1 | 2020-07-27T22:36:40.000Z | 2020-07-27T22:36:40.000Z | /*
1994.05.05 12.17
1995.08.23 10.07
*/
#include <pub\config.hpp>
#include <pub\init.hpp>
#include <pub\process.hpp>
#include <stdio.h>
void TestExit()
{
Exit();
}
void TestAbort()
{
Abort();
}
void TestLogMessageOverflow()
{
forever LogMessage ("Hello!\n");
}
void IniterC... | 15.337838 | 69 | 0.548018 | drypot |
855c50ff92e60dc79cab3ac4530912887a0a552d | 416 | cpp | C++ | src/assets/image_asset.cpp | e-bondarev/AstrumEngine | cd4ceb702a4148d765d729267d695940a9d8c0bc | [
"MIT"
] | 1 | 2021-04-27T10:34:46.000Z | 2021-04-27T10:34:46.000Z | src/assets/image_asset.cpp | e-bondarev/AstrumEngine | cd4ceb702a4148d765d729267d695940a9d8c0bc | [
"MIT"
] | null | null | null | src/assets/image_asset.cpp | e-bondarev/AstrumEngine | cd4ceb702a4148d765d729267d695940a9d8c0bc | [
"MIT"
] | null | null | null | #include "pch.h"
#include "image_asset.h"
#include "stb_image/stb_image.h"
void ImageAsset::Load(const std::string& path)
{
int width, height;
Data = stbi_load((ASTRUM_ROOT + path).c_str(), &width, &height, &Channels, 0);
Size = { static_cast<float>(width), static_cast<float>(height) };
}
ImageAsset::ImageAsset(... | 18.909091 | 79 | 0.699519 | e-bondarev |
855c5c03d3d917f21dc99398999f4fda61fd0ced | 3,367 | cc | C++ | src/math/test_a_star.cc | mnvl/scratch | 7717772e0b9a85c8feb73fdc3562425f48b4a727 | [
"BSD-3-Clause"
] | 1 | 2016-08-15T11:55:32.000Z | 2016-08-15T11:55:32.000Z | src/math/test_a_star.cc | mnvl/scratch | 7717772e0b9a85c8feb73fdc3562425f48b4a727 | [
"BSD-3-Clause"
] | null | null | null | src/math/test_a_star.cc | mnvl/scratch | 7717772e0b9a85c8feb73fdc3562425f48b4a727 | [
"BSD-3-Clause"
] | null | null | null |
#include <boost/test/unit_test.hpp>
#include "a_star.h"
BOOST_AUTO_TEST_SUITE(a_star)
BOOST_AUTO_TEST_CASE(simple_path_1)
{
typedef math::a_star::point point;
struct dummy {
static math::scalar score(point const &p) {
return (p - point(1, 0)).length_sq() + (p.x == 0 && (p.y == 0 || p.y == -1) ? 1000.0f : 0.0... | 26.722222 | 97 | 0.638551 | mnvl |
855d83ab8513eb407b95cec32180b635a1f26000 | 695 | cpp | C++ | src/Main.cpp | Mikescher/Serpilicum | a4bbda42cf65b1635c9972e9759611882c0003f6 | [
"Unlicense"
] | null | null | null | src/Main.cpp | Mikescher/Serpilicum | a4bbda42cf65b1635c9972e9759611882c0003f6 | [
"Unlicense"
] | null | null | null | src/Main.cpp | Mikescher/Serpilicum | a4bbda42cf65b1635c9972e9759611882c0003f6 | [
"Unlicense"
] | null | null | null | #include "Main.h"
#include "Gamerules.h"
int main() {
Main *main = new Main();
main->start();
delete main;
}
//#############################################
void Main::start() {
switch(DISPLAYMETHOD) {
case WINDOWS_CONSOLE:
dbc = new WindowsConsole();
break;
case OGL_CONSOLE:
dbc = new OGLConsole();
(... | 15.795455 | 47 | 0.611511 | Mikescher |
855e144d778de93b2833bf7688d2224b1e46b7fe | 1,789 | cpp | C++ | Sem IV Design And Analysis of Algorithms Lab/Q2_MergerSort.cpp | prithvihv/VTU_CSE_LABS | 8e20f438e3e541cce60d136af58fd28b74c3e01b | [
"MIT"
] | 1 | 2017-10-03T15:55:20.000Z | 2017-10-03T15:55:20.000Z | Sem IV Design And Analysis of Algorithms Lab/Q2_MergerSort.cpp | vintageplayer/VTU_CSE_LABS | 907cdc804c145ce511c81bad1e99a9d5f099033e | [
"MIT"
] | null | null | null | Sem IV Design And Analysis of Algorithms Lab/Q2_MergerSort.cpp | vintageplayer/VTU_CSE_LABS | 907cdc804c145ce511c81bad1e99a9d5f099033e | [
"MIT"
] | null | null | null | #include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<sys/time.h>
#include<omp.h>
using namespace std;
void merge(int a[],int b[],int c[],int m,int n) // Function to merge 2 arrays into 1
{
int i=0,j=0,k=0;
#pragma omp parallel
#pragma omp while
{
while(i<m && j<n) // While elements of both array... | 20.563218 | 84 | 0.569592 | prithvihv |
855e5da4e85972b06f419622c5f282afc05b80b7 | 2,738 | cpp | C++ | src/system/core/libcutils/socket_local_server_unix.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 5 | 2020-12-19T06:56:06.000Z | 2022-01-09T01:28:42.000Z | src/system/core/libcutils/socket_local_server_unix.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 1 | 2021-09-27T06:00:40.000Z | 2021-09-27T06:00:40.000Z | src/system/core/libcutils/socket_local_server_unix.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 3 | 2020-12-19T06:56:27.000Z | 2021-09-26T18:50:44.000Z | /* libs/cutils/socket_local_server.c
**
** Copyright 2006, 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/LICE... | 21.559055 | 79 | 0.641344 | dAck2cC2 |
855fbf0008119e14180c8828f5067996a63853d5 | 2,654 | cpp | C++ | engine-base/GameManager.cpp | geoffwhitehead/snooker-game | 54c607bbfc31cfe2f6adbec488f408a6d49f1d8d | [
"MIT"
] | null | null | null | engine-base/GameManager.cpp | geoffwhitehead/snooker-game | 54c607bbfc31cfe2f6adbec488f408a6d49f1d8d | [
"MIT"
] | null | null | null | engine-base/GameManager.cpp | geoffwhitehead/snooker-game | 54c607bbfc31cfe2f6adbec488f408a6d49f1d8d | [
"MIT"
] | null | null | null | #include "GameManager.h"
GameManager::GameManager(float w_x, float w_y)
: window(Window(w_x, w_y)), renderer(Renderer(window)){
}
GameManager::~GameManager(){
}
//for (vector<GLuint>::iterator tex = textures.begin(); tex != textures.end(); ++tex)
//delete (*tex);
void GameManager::addEntity(Entity* e){
entiti... | 25.519231 | 116 | 0.678975 | geoffwhitehead |
856421218101f7d55e47584157c22ca25265f2b2 | 4,166 | cpp | C++ | conversation/UserInput.cpp | luminosuslight/luminosus-core | b823c57524aea382b0734eb1a6343a1c95bb84f3 | [
"MIT"
] | 1 | 2021-09-25T19:09:56.000Z | 2021-09-25T19:09:56.000Z | conversation/UserInput.cpp | luminosuslight/luminosus-core | b823c57524aea382b0734eb1a6343a1c95bb84f3 | [
"MIT"
] | null | null | null | conversation/UserInput.cpp | luminosuslight/luminosus-core | b823c57524aea382b0734eb1a6343a1c95bb84f3 | [
"MIT"
] | null | null | null | #include "UserInput.h"
#include "core/helpers/utils.h"
#include "core/helpers/qstring_literal.h"
#include <QCborArray>
#include <QDebug>
#include <QDateTime>
UserInput::UserInput()
: m_timestamp(QDateTime::currentMSecsSinceEpoch())
{
}
void UserInput::setNlpResult(const QCborMap& googleNlpResult) {
m_goog... | 34.147541 | 113 | 0.611858 | luminosuslight |
8564b9423df92e244a2dfc57a5da94e76024fcae | 638 | cpp | C++ | TrackerGrupo02/src/Events/LogoutZone.cpp | Sounagix/UsabilidadTelemetria | 7f88ac2ed9912bb69fa3bda27620e6c2271c61fd | [
"MIT"
] | null | null | null | TrackerGrupo02/src/Events/LogoutZone.cpp | Sounagix/UsabilidadTelemetria | 7f88ac2ed9912bb69fa3bda27620e6c2271c61fd | [
"MIT"
] | null | null | null | TrackerGrupo02/src/Events/LogoutZone.cpp | Sounagix/UsabilidadTelemetria | 7f88ac2ed9912bb69fa3bda27620e6c2271c61fd | [
"MIT"
] | null | null | null | #include "LogoutZone.h"
#include "jute.h"
std::string LogoutZone::toJson()
{
TrackerEvent::commonJson();
jute::jValue num(jute::jType::JNUMBER);
num.set_string(std::to_string((int)_zone));
mainJson.add_property("zone", num);
jute::jValue aux(jute::jType::JNUMBER);
aux.set_string(std::to_string((int)_next));
m... | 15.190476 | 44 | 0.69906 | Sounagix |
856a1c46e9a02b1a23d1be6b6c3dd23ae9c76782 | 3,990 | cxx | C++ | Interaction/Widgets/Testing/Cxx/vtkResliceCursorRepresentationTest1.cxx | cclauss/VTK | f62a52cce9044159efb4adb7cc0cfd7ec0bc8b6d | [
"BSD-3-Clause"
] | 1,755 | 2015-01-03T06:55:00.000Z | 2022-03-29T05:23:26.000Z | Interaction/Widgets/Testing/Cxx/vtkResliceCursorRepresentationTest1.cxx | cclauss/VTK | f62a52cce9044159efb4adb7cc0cfd7ec0bc8b6d | [
"BSD-3-Clause"
] | 29 | 2015-04-23T20:58:30.000Z | 2022-03-02T16:16:42.000Z | Interaction/Widgets/Testing/Cxx/vtkResliceCursorRepresentationTest1.cxx | cclauss/VTK | f62a52cce9044159efb4adb7cc0cfd7ec0bc8b6d | [
"BSD-3-Clause"
] | 1,044 | 2015-01-05T22:48:27.000Z | 2022-03-31T02:38:26.000Z | #include "vtkResliceCursorRepresentation.h"
#include "vtkMathUtilities.h"
#include <array>
bool areEquals(double p1[3], double p2[3])
{
return vtkMathUtilities::FuzzyCompare<double>(p1[0], p2[0]) &&
vtkMathUtilities::FuzzyCompare(p1[1], p2[1]) && vtkMathUtilities::FuzzyCompare(p1[2], p2[2]);
}
bool areEquals(... | 36.605505 | 97 | 0.629574 | cclauss |
85727d3f738acd1ea5fe1d3cfe515e0ef4fd1898 | 977 | cpp | C++ | Algorithms_Badge/Birthday Cake Candles/BirthdayCakeCandles/BirthdayCakeCandles/main.cpp | Muhand/HackerRank | c93dc19f4339440f0f23d8d6a0e3fafd15e34a8f | [
"MIT"
] | null | null | null | Algorithms_Badge/Birthday Cake Candles/BirthdayCakeCandles/BirthdayCakeCandles/main.cpp | Muhand/HackerRank | c93dc19f4339440f0f23d8d6a0e3fafd15e34a8f | [
"MIT"
] | null | null | null | Algorithms_Badge/Birthday Cake Candles/BirthdayCakeCandles/BirthdayCakeCandles/main.cpp | Muhand/HackerRank | c93dc19f4339440f0f23d8d6a0e3fafd15e34a8f | [
"MIT"
] | null | null | null | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#inc... | 16.283333 | 74 | 0.609007 | Muhand |
85738b621da825b6ae9ffd9eb6782780a7447534 | 698 | cpp | C++ | dev/overcutted_2.0/Source.cpp | DrAntoine/over-cutted | d14ed1aea3ca6cd3a36ecc6e2dc96e44afccab25 | [
"MIT"
] | 1 | 2021-05-18T09:26:35.000Z | 2021-05-18T09:26:35.000Z | dev/overcutted_2.0/Source.cpp | DrAntoine/over-cutted | d14ed1aea3ca6cd3a36ecc6e2dc96e44afccab25 | [
"MIT"
] | 16 | 2021-04-16T12:20:04.000Z | 2021-05-17T18:35:00.000Z | dev/overcutted_2.0/Source.cpp | DrAntoine/over-cutted | d14ed1aea3ca6cd3a36ecc6e2dc96e44afccab25 | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include"Perso.h"
#include"Map.h"
#include "Event.h"
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 800), "SFML works!");
Perso player("textures/sprite_player_1.png");
Map carte;
Event test;
window.setFramerateLimit(60);
while (window.isOpen())
{
... | 20.529412 | 68 | 0.557307 | DrAntoine |
8575627ed864059afb3ca0fd417661acd7c01564 | 2,597 | hpp | C++ | ThirdParty-mod/java2cpp/java/net/ConnectException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/java/net/ConnectException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/java/net/ConnectException.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.net.ConnectException
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLEM... | 24.5 | 89 | 0.692337 | kakashidinho |
8576be24f3b23e3513fbf7c4b872d337956605d5 | 919 | hpp | C++ | src/libs/level0/guishell/cppinclude/guishell/guishell.hpp | DeanoC/wyrd | 50508dbe2427f1bd72a0ed03d7c7963cb74b37a7 | [
"MIT"
] | null | null | null | src/libs/level0/guishell/cppinclude/guishell/guishell.hpp | DeanoC/wyrd | 50508dbe2427f1bd72a0ed03d7c7963cb74b37a7 | [
"MIT"
] | null | null | null | src/libs/level0/guishell/cppinclude/guishell/guishell.hpp | DeanoC/wyrd | 50508dbe2427f1bd72a0ed03d7c7963cb74b37a7 | [
"MIT"
] | null | null | null | #pragma once
#ifndef WYRD_GUISHELL_GUISHELL_HPP
#define WYRD_GUISHELL_GUISHELL_HPP
#include "core/core.h"
#include "guishell/guishell.h"
#include "guishell/window.hpp"
// Init, Load, Unload, Update, Draw and Exit and InitialWindow must be defined
// as static function in the users app class
#define DECLARE_APP(type) ... | 28.71875 | 103 | 0.756257 | DeanoC |
857ce3e0e533e1eaeee220888edf7450d4a2fa27 | 4,198 | cpp | C++ | practica4/menu.cpp | MrcRjs/OpenGl101 | 52dc2fdb28a3551bd4a789d63eaad31be99ae2c2 | [
"MIT"
] | 1 | 2021-11-17T07:26:30.000Z | 2021-11-17T07:26:30.000Z | practica4/menu.cpp | MrcRjs/OpenGl101 | 52dc2fdb28a3551bd4a789d63eaad31be99ae2c2 | [
"MIT"
] | null | null | null | practica4/menu.cpp | MrcRjs/OpenGl101 | 52dc2fdb28a3551bd4a789d63eaad31be99ae2c2 | [
"MIT"
] | null | null | null | // Marco Antonio Rojas Arriaga
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
int sky = 0;
int fig1 = 2;
int fig2 = 4;
int fig3 = 6;
typedef enum {
FONDO0,
FONDO1,
COLOR2,
COLOR3,
COLOR4,
COLOR5... | 23.717514 | 74 | 0.54526 | MrcRjs |
3ff294ac10314e9e94a5d8282c8c765b307b9f78 | 42,327 | cp | C++ | gpcp/CPascalErrors.cp | imt-ag/gpcp | 1c3de23993e0979d672f1c8fe7f193d0de22991a | [
"BSD-3-Clause"
] | 32 | 2017-08-15T11:49:34.000Z | 2021-12-24T13:10:29.000Z | gpcp/CPascalErrors.cp | imt-ag/gpcp | 1c3de23993e0979d672f1c8fe7f193d0de22991a | [
"BSD-3-Clause"
] | 14 | 2017-10-14T16:44:02.000Z | 2022-03-09T08:17:56.000Z | gpcp/CPascalErrors.cp | imt-ag/gpcp | 1c3de23993e0979d672f1c8fe7f193d0de22991a | [
"BSD-3-Clause"
] | 7 | 2017-11-10T14:55:30.000Z | 2022-02-07T01:23:22.000Z | (* ==================================================================== *)
(* *)
(* Error Module for the Gardens Point Component Pascal Compiler. *)
(* Copyright (c) John Gough 1999, 2000. *)
(* *)
(* ==================================================================== *)
MODULE CPascalError... | 41.825099 | 87 | 0.546483 | imt-ag |
3ff301844814536c79081067323f3296411d078a | 3,241 | cpp | C++ | src/StateMove.cpp | Pnaop/interface_opdracht | 891d619ee00610241eba44bfef51b11d3235c687 | [
"MIT"
] | null | null | null | src/StateMove.cpp | Pnaop/interface_opdracht | 891d619ee00610241eba44bfef51b11d3235c687 | [
"MIT"
] | null | null | null | src/StateMove.cpp | Pnaop/interface_opdracht | 891d619ee00610241eba44bfef51b11d3235c687 | [
"MIT"
] | null | null | null | #include "../include/StateMove.h"
#include "../include/StateEmergency.h"
#include "../include/StateIdle.h"
#include <interface_opdracht/moveAction.h>
StateMove::StateMove(HighLevelDriver& context):context(context)
{
}
StateMove::~StateMove()
{
}
void StateMove::handleEvent(Event& event)
{
switch (event.getEventT... | 28.9375 | 179 | 0.636532 | Pnaop |
3ff65485b02000023e180d497d85c53716f4a0c9 | 651 | hpp | C++ | options.hpp | a12n/rematrix | e539a5573a99665ba7b21e1c2114508060dcd163 | [
"MIT"
] | 2 | 2022-01-15T16:27:05.000Z | 2022-01-15T16:48:03.000Z | options.hpp | a12n/rematrix | e539a5573a99665ba7b21e1c2114508060dcd163 | [
"MIT"
] | null | null | null | options.hpp | a12n/rematrix | e539a5573a99665ba7b21e1c2114508060dcd163 | [
"MIT"
] | null | null | null | #ifndef REMATRIX_OPTIONS_HPP
#define REMATRIX_OPTIONS_HPP
#include "matrix.hpp"
namespace rematrix {
struct options
{
enum mode {
binary,
decimal,
dna,
hexadecimal,
matrix,
};
bool enable_fog{false};
bool enable_waves{true};
mode mode{matrix};
unsigned... | 19.727273 | 67 | 0.642089 | a12n |
3ffaa47c222e2ca2fe2cd27781cec3a0db01d013 | 792 | cpp | C++ | _cf1185c1.cpp | kaushalvivek/programming-practice | 23cb71b7c9a5144926ce472294d8f4113bcc5086 | [
"MIT"
] | null | null | null | _cf1185c1.cpp | kaushalvivek/programming-practice | 23cb71b7c9a5144926ce472294d8f4113bcc5086 | [
"MIT"
] | null | null | null | _cf1185c1.cpp | kaushalvivek/programming-practice | 23cb71b7c9a5144926ce472294d8f4113bcc5086 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int hold_cum = 0, i, j, n, m, val;
cin >> n >> m;
int arr[n];
int temp[n];
int cum[n];
for (i = 0; i < n; i++)
{
cin >> arr[i];
cum[i] = arr[i] + hold_cum;
hold_cum += arr[i];
}
for (i = 0; i < n; i++)
{
val = cum[i];
i... | 15.529412 | 43 | 0.354798 | kaushalvivek |
3ffeb94e53ae830e4e101654ea0c7ae3c93820a9 | 2,307 | hpp | C++ | particle_render.vs.hpp | demotomohiro/The-Job-changing-knight-Ganglion | 40382990b58f6e643b39ea108aa45e7c7173ce1c | [
"MIT"
] | 1 | 2015-03-21T23:00:01.000Z | 2015-03-21T23:00:01.000Z | particle_render.vs.hpp | demotomohiro/The-Job-changing-knight-Ganglion | 40382990b58f6e643b39ea108aa45e7c7173ce1c | [
"MIT"
] | null | null | null | particle_render.vs.hpp | demotomohiro/The-Job-changing-knight-Ganglion | 40382990b58f6e643b39ea108aa45e7c7173ce1c | [
"MIT"
] | null | null | null | /* File generated with Shader Minifier 1.1.4
* http://www.ctrl-alt-test.fr
*/
#ifndef PARTICLE_RENDER_VS_HPP_
# define PARTICLE_RENDER_VS_HPP_
const char *particle_render_vs =
"#version 420\n"
"float s(float f,float v)"
"{"
"float s=v/4.*60.,D=15.,g=.8;"
"return smoothstep(-D/2.,-D*(1.-g)/2.,-abs(f-s-D*.5))... | 27.464286 | 252 | 0.596879 | demotomohiro |
3fffd9a26506d10ae847c34dbd83c9ce8ce83cd0 | 1,347 | cc | C++ | chrome/browser/sharing/web_push/web_push_common.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/browser/sharing/web_push/web_push_common.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/browser/sharing/web_push/web_push_common.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2019 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 "chrome/browser/sharing/web_push/web_push_common.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/strin... | 36.405405 | 76 | 0.753526 | Ron423c |
b2022f24c3ae20d1a646b3d1753468f204b0eb6b | 1,825 | cpp | C++ | memory/MemoryPool/c++/MemoryChunk.cpp | nonkr/cat | 754372d0f1a20de5d88aa54f489034478ab61444 | [
"MIT"
] | null | null | null | memory/MemoryPool/c++/MemoryChunk.cpp | nonkr/cat | 754372d0f1a20de5d88aa54f489034478ab61444 | [
"MIT"
] | null | null | null | memory/MemoryPool/c++/MemoryChunk.cpp | nonkr/cat | 754372d0f1a20de5d88aa54f489034478ab61444 | [
"MIT"
] | null | null | null | #include "MemoryChunk.h"
CMemoryChunk::CMemoryChunk(size_t nSize, int iBlockNum)
{
m_pFreeBlock = nullptr;
m_nSize = nSize;
m_iBlockCount = 0;
MemBlock_t *pBlock;
while (iBlockNum--)
{
pBlock = CreateBlock();
if (!pBlock)
{
break;
}
pB... | 19.210526 | 80 | 0.590137 | nonkr |
b203c159f1a83d4b0d53df12b2d2deaa2f8827a3 | 2,582 | hpp | C++ | lib/drivers/include/drivers/BasicDout.hpp | amsobr/iotool | 233ec320ee25c96d34332fe847663682c4aa0a91 | [
"MIT"
] | null | null | null | lib/drivers/include/drivers/BasicDout.hpp | amsobr/iotool | 233ec320ee25c96d34332fe847663682c4aa0a91 | [
"MIT"
] | 4 | 2022-03-13T23:07:12.000Z | 2022-03-13T23:10:09.000Z | lib/drivers/include/drivers/BasicDout.hpp | amsobr/iotool | 233ec320ee25c96d34332fe847663682c4aa0a91 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <list>
#include <vector>
#include <memory>
#include <tuple>
#include <gpiod.hpp>
#include <common/Peripheral.hpp>
#include <common/PeripheralType.hpp>
#include <common/DigitalOut.hpp>
class BasicDout : public DigitalOut
{
public:
/**
* @brief Digital Output configura... | 31.876543 | 102 | 0.606507 | amsobr |
b204cbd87f2025ddaad07a2bfd4fcc98fd04e43a | 9,264 | hpp | C++ | pennylane_lightning/src/tests/TestHelpers.hpp | AmintorDusko/pennylane-lightning | 9554a95842de9d7759ce96bfa75857e0c9ca756b | [
"Apache-2.0"
] | null | null | null | pennylane_lightning/src/tests/TestHelpers.hpp | AmintorDusko/pennylane-lightning | 9554a95842de9d7759ce96bfa75857e0c9ca756b | [
"Apache-2.0"
] | null | null | null | pennylane_lightning/src/tests/TestHelpers.hpp | AmintorDusko/pennylane-lightning | 9554a95842de9d7759ce96bfa75857e0c9ca756b | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <complex>
#include <memory>
#include <random>
#include <string>
#include <type_traits>
#include <vector>
#include "Constant.hpp"
#include "ConstantUtil.hpp"
#include "Error.hpp"
#include "GateOperation.hpp"
#include "LinearAlgebra.hpp"
#include "Util.hpp"
#include <catch2/catch.hpp>
nam... | 30.88 | 79 | 0.571891 | AmintorDusko |
b20c3cc46f2c6e8c7de2a0cd723dce901e1c39db | 18,045 | cpp | C++ | src/common.cpp | iamyoukou/sdf3d | 3a7353156e800bccd58adeddcd110efe24b11f88 | [
"Unlicense",
"MIT"
] | 18 | 2020-05-21T16:05:40.000Z | 2022-02-26T00:41:39.000Z | src/common.cpp | iamyoukou/sdf3d | 3a7353156e800bccd58adeddcd110efe24b11f88 | [
"Unlicense",
"MIT"
] | null | null | null | src/common.cpp | iamyoukou/sdf3d | 3a7353156e800bccd58adeddcd110efe24b11f88 | [
"Unlicense",
"MIT"
] | 8 | 2019-11-26T09:18:14.000Z | 2022-03-01T20:10:47.000Z | #include "common.h"
std::string readFile(const std::string filename) {
std::ifstream in;
in.open(filename.c_str());
std::stringstream ss;
ss << in.rdbuf();
std::string sOut = ss.str();
in.close();
return sOut;
}
Mesh loadObj(std::string filename) {
Mesh outMesh;
std::ifstream fin;
fin.open(filen... | 26.575847 | 80 | 0.593295 | iamyoukou |
b20d90cdfb15815c85b5e07851adebf0889f1cd8 | 3,601 | cc | C++ | control/src/sl_sb03md.cc | SamThomas/Face_and_Voice_Recognition | ec405803c8ec9bc82370926d0b6ba97fa70fa31c | [
"MIT"
] | 2 | 2016-08-25T19:09:41.000Z | 2021-09-07T04:04:52.000Z | control/src/sl_sb03md.cc | SamThomas/Face_and_Voice_Recognition | ec405803c8ec9bc82370926d0b6ba97fa70fa31c | [
"MIT"
] | null | null | null | control/src/sl_sb03md.cc | SamThomas/Face_and_Voice_Recognition | ec405803c8ec9bc82370926d0b6ba97fa70fa31c | [
"MIT"
] | 1 | 2022-03-05T16:17:16.000Z | 2022-03-05T16:17:16.000Z | /*
Copyright (C) 2009-2014 Lukas F. Reichlin
This file is part of LTI Syncope.
LTI Syncope is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later versio... | 26.674074 | 81 | 0.526243 | SamThomas |
b213fa398b1f3e4bbbac24b630fd39bac9a8435f | 1,741 | cpp | C++ | example/example2_opt.cpp | carlcc/JsonMapper | 23adfe75482181d1f5b7eec052eb0626d441a2bf | [
"MIT"
] | 3 | 2020-08-15T03:47:20.000Z | 2021-06-29T10:49:38.000Z | example/example2_opt.cpp | carlcc/JsonMapper | 23adfe75482181d1f5b7eec052eb0626d441a2bf | [
"MIT"
] | null | null | null | example/example2_opt.cpp | carlcc/JsonMapper | 23adfe75482181d1f5b7eec052eb0626d441a2bf | [
"MIT"
] | 1 | 2021-06-29T10:49:45.000Z | 2021-06-29T10:49:45.000Z | #include <cstdint>
#include <iostream>
#include <jsonmapper/JsonMapper.h>
#include <jsonmapper/types/deserialize/shared_ptr.h>
#include <jsonmapper/types/deserialize/string.h>
#include <jsonmapper/types/deserialize/unordered_map.h>
#include <jsonmapper/types/deserialize/vector.h>
#include <sstream>
#include <string>
#i... | 28.080645 | 100 | 0.659391 | carlcc |
b2151ff7da996110d20f2cb42e5fa64456c87e0e | 4,383 | cpp | C++ | QuickGUI/src/QuickGUILabel.cpp | VisualEntertainmentAndTechnologies/VENT-QuickGUI | 7c687193001bcf914bd4a9947644915091ea8723 | [
"Unlicense"
] | 3 | 2017-01-12T19:22:01.000Z | 2017-05-06T09:55:39.000Z | QuickGUI/src/QuickGUILabel.cpp | VisualEntertainmentAndTechnologies/VENT-QuickGUI | 7c687193001bcf914bd4a9947644915091ea8723 | [
"Unlicense"
] | null | null | null | QuickGUI/src/QuickGUILabel.cpp | VisualEntertainmentAndTechnologies/VENT-QuickGUI | 7c687193001bcf914bd4a9947644915091ea8723 | [
"Unlicense"
] | null | null | null | #include "QuickGUILabel.h"
#include "QuickGUISkinDefinitionManager.h"
#include "QuickGUISkinDefinition.h"
namespace QuickGUI
{
const Ogre::String Label::BACKGROUND = "background";
void Label::registerSkinDefinition()
{
SkinDefinition* d = OGRE_NEW_T(SkinDefinition,Ogre::MEMCATEGORY_GENERAL)("Label");
... | 26.72561 | 173 | 0.71937 | VisualEntertainmentAndTechnologies |
b2160e725a2c271f3b1639a4c68c3d3c7a03e9c7 | 129 | cpp | C++ | dependencies/physx-4.1/source/lowlevel/common/src/pipeline/PxcMaterialMesh.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/lowlevel/common/src/pipeline/PxcMaterialMesh.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/lowlevel/common/src/pipeline/PxcMaterialMesh.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:cec3dd4f00e26ea2aebec0b1e380637c61b78ff4a46e1690b39b52adb5f0b3fb
size 4431
| 32.25 | 75 | 0.883721 | realtehcman |
b21a444cb7f8bc13be4bba8bfd44d3e80de669cf | 501 | hpp | C++ | include/mgcpp/type_traits/shape_type.hpp | MGfoundation/mgcpp | 66c072191e58871637bcb3b76701a79a4ae89779 | [
"BSL-1.0"
] | 48 | 2018-01-02T03:47:18.000Z | 2021-09-09T05:55:45.000Z | include/mgcpp/type_traits/shape_type.hpp | MGfoundation/mgcpp | 66c072191e58871637bcb3b76701a79a4ae89779 | [
"BSL-1.0"
] | 24 | 2017-12-27T18:03:13.000Z | 2018-07-02T09:00:30.000Z | include/mgcpp/type_traits/shape_type.hpp | MGfoundation/mgcpp | 66c072191e58871637bcb3b76701a79a4ae89779 | [
"BSL-1.0"
] | 6 | 2018-01-14T14:06:10.000Z | 2018-10-16T08:43:01.000Z | #ifndef SHAPE_TYPE_HPP
#define SHAPE_TYPE_HPP
#include <mgcpp/global/shape.hpp>
#include <tuple>
#include <type_traits>
namespace mgcpp {
template <typename T>
struct has_shape {
private:
typedef char one;
typedef struct {
char array[2];
} two;
template <typename C>
static one test(typename C::shape_... | 17.275862 | 62 | 0.694611 | MGfoundation |
b220f6bdb7a564b32df4d09a4d864b9cde5a25a5 | 1,975 | cpp | C++ | src/commandparameters.cpp | tapir-dream/berserkJS | 6c2820ead3a3319b910b8bad9f1c0d9cb02f450d | [
"BSD-3-Clause"
] | 409 | 2015-01-10T15:20:39.000Z | 2022-03-17T04:44:22.000Z | src/commandparameters.cpp | mba811/berserkJS | 7effebd3aa9b8918fcbe41f7a073075bc531b726 | [
"BSD-3-Clause"
] | 7 | 2015-01-16T03:43:03.000Z | 2018-07-12T13:06:27.000Z | src/commandparameters.cpp | mba811/berserkJS | 7effebd3aa9b8918fcbe41f7a073075bc531b726 | [
"BSD-3-Clause"
] | 82 | 2015-01-04T15:49:37.000Z | 2022-03-17T04:44:24.000Z | #include "commandparameters.h"
CommandParameters::CommandParameters()
{
params = getParams();
}
QMap<QString, QString> CommandParameters::getParams()
{
int argc = qApp->argc();
char **argv = qApp->argv();
QMap<QString, QString> params;
// Parse command line parameters
for (int ax = 1; ax < a... | 21.944444 | 65 | 0.521013 | tapir-dream |
b221cb8585edd6d49d99efb122d853221d748675 | 426 | cpp | C++ | Examples/Example3/main.cpp | naddu77/CubbyMenu | 8889873d377e62589e10e89ebe01ec739cf86752 | [
"MIT"
] | 16 | 2020-12-20T18:24:06.000Z | 2021-04-04T12:07:31.000Z | Examples/Example3/main.cpp | naddu77/CubbyMenu | 8889873d377e62589e10e89ebe01ec739cf86752 | [
"MIT"
] | 2 | 2020-12-23T04:15:42.000Z | 2020-12-23T14:46:47.000Z | Examples/Example3/main.cpp | naddu77/CubbyMenu | 8889873d377e62589e10e89ebe01ec739cf86752 | [
"MIT"
] | 4 | 2020-12-22T14:40:18.000Z | 2020-12-26T00:19:50.000Z | #include <CubbyMenu/CubbyMenu.hpp>
#include <iostream>
void option0()
{
std::cout << "Option 0 is called!\n";
}
void option1()
{
std::cout << "Option 1 is called!\n";
}
void option2()
{
std::cout << "Option 2 is called!\n";
}
int main()
{
CubbyMenu::Menu menu;
menu.add_item("Option 0", &option... | 14.689655 | 41 | 0.600939 | naddu77 |
b223d6629ab0b4063c57f2ef792f69dd445b9f74 | 20,221 | cpp | C++ | src/calc_wave_func_bilayer.cpp | suwamaro/rpa | fc9d37f03705334ee17b77de6ad2b8feab3cc7b0 | [
"Apache-2.0"
] | null | null | null | src/calc_wave_func_bilayer.cpp | suwamaro/rpa | fc9d37f03705334ee17b77de6ad2b8feab3cc7b0 | [
"Apache-2.0"
] | null | null | null | src/calc_wave_func_bilayer.cpp | suwamaro/rpa | fc9d37f03705334ee17b77de6ad2b8feab3cc7b0 | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
*
* Functions for calculating the wave function
*
* Copyright (C) 2018 by Hidemaro Suwa
* e-mail:suwamaro@phys.s.u-tokyo.ac.jp
*
*****************************************************************************/
#include <complex>
#ifdef WITH_O... | 34.565812 | 218 | 0.604916 | suwamaro |
b2257d98dd0c5114f0a653847b2d5c0e449038b8 | 1,285 | cpp | C++ | tapSynth-main/Source/Data/MeterData.cpp | 34Audiovisual/Progetti_JUCE | d22d91d342939a8463823d7a7ec528bd2228e5f7 | [
"MIT"
] | null | null | null | tapSynth-main/Source/Data/MeterData.cpp | 34Audiovisual/Progetti_JUCE | d22d91d342939a8463823d7a7ec528bd2228e5f7 | [
"MIT"
] | null | null | null | tapSynth-main/Source/Data/MeterData.cpp | 34Audiovisual/Progetti_JUCE | d22d91d342939a8463823d7a7ec528bd2228e5f7 | [
"MIT"
] | null | null | null | /*
==============================================================================
MeterData.cpp
Created: 27 Feb 2021 9:37:46pm
Author: Joshua Hodge
==============================================================================
*/
#include "MeterData.h"
void MeterData::processRMS (juce::... | 22.946429 | 81 | 0.429572 | 34Audiovisual |
b22933af4b43eb0e41f2621433e4363e8a3d800f | 755 | cpp | C++ | src/prod/src/Transport/ClientAuthHeader.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Transport/ClientAuthHeader.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Transport/ClientAuthHeader.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"
namespace... | 26.034483 | 98 | 0.569536 | vishnuk007 |
b2303b455e9f37ec9b8841efa63595b1d7a242a3 | 1,141 | cpp | C++ | Timer.cpp | migueleps/complenet17-graph-generator | 7f51cb55697e710316246a32f14b3d8298edfeb7 | [
"MIT"
] | 1 | 2018-06-25T14:31:35.000Z | 2018-06-25T14:31:35.000Z | Timer.cpp | migueleps/complenet17-graph-generator | 7f51cb55697e710316246a32f14b3d8298edfeb7 | [
"MIT"
] | null | null | null | Timer.cpp | migueleps/complenet17-graph-generator | 7f51cb55697e710316246a32f14b3d8298edfeb7 | [
"MIT"
] | 1 | 2021-03-22T18:44:18.000Z | 2021-03-22T18:44:18.000Z |
/* -------------------------------------------------
//
// 88888888888 ad88888ba 88888888888
// 88 d8" "8b 88
// 88 Y8, 88
// 88aaaaa ,adPPYYba, `Y8aaaaa, 88aaaaa
// 8... | 25.931818 | 91 | 0.400526 | migueleps |
b230c55292dabf3db6e64ff2593c66aadc8aefe2 | 533 | cpp | C++ | Trem/src/trem/renderer/vertex_buffer.cpp | Tremah/TremEngine | 29e04e69da84e4c60709854010376edc1b96dc0a | [
"MIT"
] | 10 | 2021-01-17T01:48:31.000Z | 2021-12-31T19:31:22.000Z | Trem/src/trem/renderer/vertex_buffer.cpp | Tremah/TremEngine | 29e04e69da84e4c60709854010376edc1b96dc0a | [
"MIT"
] | null | null | null | Trem/src/trem/renderer/vertex_buffer.cpp | Tremah/TremEngine | 29e04e69da84e4c60709854010376edc1b96dc0a | [
"MIT"
] | null | null | null | #include <trpch.h>
#include "vertex_buffer.h"
namespace Trem
{
VertexBuffer::VertexBuffer(uint32_t size)
{
glCreateBuffers(1, &vertexBufferID_);
glBindBuffer(GL_ARRAY_BUFFER, vertexBufferID_);
glBufferData(GL_ARRAY_BUFFER, size, nullptr, GL_STATIC_DRAW);
}
VertexBuffer::~VertexBuffer()
{
glD... | 19.035714 | 65 | 0.712946 | Tremah |
b2321bb5b54ffcfeeb22eb903ca6d3c511611cfc | 2,281 | cpp | C++ | Sources/Elastos/LibCore/src/elastos/text/CCollationElementIterator.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/LibCore/src/elastos/text/CCollationElementIterator.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/LibCore/src/elastos/text/CCollationElementIterator.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... | 27.154762 | 80 | 0.686979 | jingcao80 |
b233a79cbe979750371161c79e6a22fc44803493 | 601 | cpp | C++ | leetcode.com/0925 Long Pressed Name/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0925 Long Pressed Name/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0925 Long Pressed Name/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
bool isLongPressedName(string name, string typed) {
int n1 = name.size(), n2 = typed.size();
if (n1 > n2)
return false;
else if (n1 == n2)
return name == typed;
int i = 0, j = 0;
while (i < n1 && j <... | 22.259259 | 53 | 0.499168 | sky-bro |
b236391cbf751ee6fc16e2d01a8233c4498be9db | 10,477 | cc | C++ | CarLife-Vehicle-Lib/LibSource/protobuf/cc/src/CarlifeMediaProgressBarProto.pb.cc | zhiqiang-hu/apollo-DuerOS | 678fd7480f41a91a363752e07d710f2a397024e9 | [
"Apache-2.0"
] | 591 | 2017-12-30T01:46:52.000Z | 2022-03-31T06:26:01.000Z | CarLife-Vehicle-Lib/LibSource/protobuf/cc/src/CarlifeMediaProgressBarProto.pb.cc | zhiqiang-hu/apollo-DuerOS | 678fd7480f41a91a363752e07d710f2a397024e9 | [
"Apache-2.0"
] | 26 | 2018-01-03T07:57:42.000Z | 2022-02-22T09:44:19.000Z | CarLife-Vehicle-Lib/LibSource/protobuf/cc/src/CarlifeMediaProgressBarProto.pb.cc | zhiqiang-hu/apollo-DuerOS | 678fd7480f41a91a363752e07d710f2a397024e9 | [
"Apache-2.0"
] | 354 | 2018-01-02T09:40:47.000Z | 2022-03-20T14:03:50.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: CarlifeMediaProgressBarProto.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "CarlifeMediaProgressBarProto.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <... | 32.946541 | 109 | 0.738379 | zhiqiang-hu |
b239fc5220a9fb1a8b01248897a020b48fcfc0a1 | 1,008 | cpp | C++ | ShenShengYi/UT/UT/School_Test.cpp | shenshengyi/ShenShengYi | 0b16b555d498c0bd17dd16f830343a5f2a1fd4e1 | [
"MIT"
] | null | null | null | ShenShengYi/UT/UT/School_Test.cpp | shenshengyi/ShenShengYi | 0b16b555d498c0bd17dd16f830343a5f2a1fd4e1 | [
"MIT"
] | null | null | null | ShenShengYi/UT/UT/School_Test.cpp | shenshengyi/ShenShengYi | 0b16b555d498c0bd17dd16f830343a5f2a1fd4e1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "School_Test.h"
#include <Student.h>
#include <iostream>
using namespace std;
void School_Test::SetUpTestCase(void) {
}
void School_Test::TearDownTestCase(void) {
}
void School_Test::SetUp() {
_shool = STU::School::GetInstance();
}
void School_Test::TearDown() {
STU::School::Release();... | 22.909091 | 138 | 0.672619 | shenshengyi |
b23d21ff0e6c60ac3babf7c2f6db4a76994a5e44 | 4,148 | cpp | C++ | src/owl/visitor.cpp | idemura/owl_llvm | 7eea81ba27f5d5f49e6a7595ae08da130c750b28 | [
"Apache-2.0"
] | 2 | 2021-01-30T10:29:17.000Z | 2021-01-30T12:32:30.000Z | src/owl/visitor.cpp | idemura/owl_llvm | 7eea81ba27f5d5f49e6a7595ae08da130c750b28 | [
"Apache-2.0"
] | null | null | null | src/owl/visitor.cpp | idemura/owl_llvm | 7eea81ba27f5d5f49e6a7595ae08da130c750b28 | [
"Apache-2.0"
] | null | null | null | #include "owl/visitor.hpp"
namespace owl {
static void children_of_null(const visitor *v, void *bind, mod_node *node)
{
}
static void children_of_function(const visitor *v, void *bind, mod_function *node)
{
if (node->data_type) {
auto *r = visit(v, bind, node->data_type);
if (r) {
nod... | 25.925 | 88 | 0.579797 | idemura |
b23d5b4e608e93ee656576cafa566eb16ae229cb | 14,264 | cpp | C++ | SofaKernel/modules/SofaBaseMechanics/BarycentricMapping.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | SofaKernel/modules/SofaBaseMechanics/BarycentricMapping.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | SofaKernel/modules/SofaBaseMechanics/BarycentricMapping.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | 66.967136 | 140 | 0.786806 | sofa-framework |
b23ff7dc761bb3b2b5ab2ca89aee6433032b3db2 | 8,770 | cc | C++ | libs/http-router/src/path_compiler.cc | mbits-os/http-router | c02b6a9cf8dd9daadff64d99ae775d9833a5e8de | [
"MIT"
] | null | null | null | libs/http-router/src/path_compiler.cc | mbits-os/http-router | c02b6a9cf8dd9daadff64d99ae775d9833a5e8de | [
"MIT"
] | null | null | null | libs/http-router/src/path_compiler.cc | mbits-os/http-router | c02b6a9cf8dd9daadff64d99ae775d9833a5e8de | [
"MIT"
] | null | null | null | // Copyright (c) 2016 midnightBITS
// This code is licensed under MIT license (see LICENSE for details)
#include <fmt/format.h>
#include <http-router/path_compiler.hh>
using namespace std::literals;
namespace std {
inline std::sregex_iterator begin(std::sregex_iterator const& it) {
return it;
}
inline std::sreg... | 28.290323 | 110 | 0.571836 | mbits-os |
b2416506761955c4477873bcffbedd00a12d8506 | 4,798 | cc | C++ | pigasus/software/src/network_inspectors/appid/service_plugins/service_bit.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/network_inspectors/appid/service_plugins/service_bit.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | pigasus/software/src/network_inspectors/appid/service_plugins/service_bit.cc | zhipengzhaocmu/fpga2022_artifact | 0ac088a5b04c5c75ae6aef25202b66b0f674acd3 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | //--------------------------------------------------------------------------
// Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved.
// Copyright (C) 2005-2013 Sourcefire, Inc.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public... | 26.655556 | 90 | 0.57524 | zhipengzhaocmu |
b24710c2e9df42d01256f3184b3eb3f987734dbf | 3,975 | cpp | C++ | src/MultiLayerOptics/src/AbsorptancesMultiPane.cpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/MultiLayerOptics/src/AbsorptancesMultiPane.cpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/MultiLayerOptics/src/AbsorptancesMultiPane.cpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "AbsorptancesMultiPane.hpp"
#include "WCECommon.hpp"
using namespace FenestrationCommon;
namespace MultiLayerOptics {
CAbsorptancesMultiPane::CAbsorptancesMultiPane( const std::shared_ptr< const CSeries >& t_T,
const std::shared_ptr< const CSeries >& t_Rf,
... | 30.576923 | 126 | 0.598491 | bakonyidani |
b24b45c453a0f8325feff47a9040a4a8d6e53588 | 1,029 | hpp | C++ | DemoProject/FarmGame/BaseFarmState.hpp | spywhere/Legacy-ParticlePlay | 0c1ec6e4706f72b64e0408cc79cdeffce535b484 | [
"BSD-3-Clause"
] | null | null | null | DemoProject/FarmGame/BaseFarmState.hpp | spywhere/Legacy-ParticlePlay | 0c1ec6e4706f72b64e0408cc79cdeffce535b484 | [
"BSD-3-Clause"
] | null | null | null | DemoProject/FarmGame/BaseFarmState.hpp | spywhere/Legacy-ParticlePlay | 0c1ec6e4706f72b64e0408cc79cdeffce535b484 | [
"BSD-3-Clause"
] | null | null | null | #ifndef BASEFARMSTATE_HEADER
#define BASEFARMSTATE_HEADER
#include <string>
#include <ParticlePlay/ParticlePlay.hpp>
#include "Spritesheet.hpp"
#include "Tile.hpp"
#include "Entity.hpp"
class BaseFarmState : public ppState {
protected:
ppGUI* gui;
ppIMS* ims;
Spritesheet* spritesheet;
Tile* grassTile, *dirtTile, ... | 29.4 | 71 | 0.759961 | spywhere |
b24dae266c1704cf575597ba7625ab5c08cb0da0 | 22,520 | cpp | C++ | SimSpark/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/soccerbase/soccerbase.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Fri May 9 2003
Copyright (C) 2002,2003 Koblenz University
Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
$Id$
This program is free software; you can redistribute it and/or modify
it und... | 27.29697 | 107 | 0.573579 | IllyasvielEin |
b250ab74bd9d153b278ebd9197777e806c29f043 | 1,198 | cpp | C++ | crack-data-structures-and-algorithms/leetcode/permutations_q46.cpp | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 20 | 2016-05-16T11:09:04.000Z | 2021-12-08T09:30:33.000Z | crack-data-structures-and-algorithms/leetcode/permutations_q46.cpp | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 1 | 2018-12-30T09:55:31.000Z | 2018-12-30T14:08:30.000Z | crack-data-structures-and-algorithms/leetcode/permutations_q46.cpp | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 11 | 2016-05-02T09:17:12.000Z | 2021-12-08T09:30:35.000Z | #include <algorithm>
#include <vector>
using namespace std;
// 核心思路
// 首先 sort 后保证元素按非递减序,这是我们第一个排列
// 然后不断调用 next_permu 来生成下一个排列
// next_permu 核心思路
// 1) 找到**最大**的一个 i 满足 arr[i] < arr[i+1],注意这里 i 范围为 [0, lens-2]
// 如果找不到这样的 i 说明当前已经是最后一个排列!
// 2) 假设第一步能找到,这一步找到**最大**的一个 j 使得 arr[i] < arr[j];这里 j 范围为 [0, len-1]
// 3)... | 23.490196 | 70 | 0.479132 | Watch-Later |
b2514262d5bdd97030d6b23b95b266bf0ff1c1ed | 149 | cpp | C++ | abc176/a.cpp | magurotuna/atcoder-submissions-cpp | afbf5df2f22bcd17d8ad580d3c143602d9af7398 | [
"CC0-1.0"
] | null | null | null | abc176/a.cpp | magurotuna/atcoder-submissions-cpp | afbf5df2f22bcd17d8ad580d3c143602d9af7398 | [
"CC0-1.0"
] | null | null | null | abc176/a.cpp | magurotuna/atcoder-submissions-cpp | afbf5df2f22bcd17d8ad580d3c143602d9af7398 | [
"CC0-1.0"
] | null | null | null | #include <bits/stdc++.h>
int main() {
int n, x, t;
std::cin >> n >> x >> t;
int cnt = (n + x - 1) / x;
std::cout << t * cnt << std::endl;
}
| 16.555556 | 36 | 0.442953 | magurotuna |
b255cfd2e71168d3bac1075a744ccf1b7540b7ea | 199 | cpp | C++ | src/pocketdb/services/WsNotifier.cpp | pocketnetapp/pocketnet.core | 2bdcd58bd8a4210d1117c06d52295c0b62c4061d | [
"Apache-2.0"
] | 1 | 2022-02-07T14:19:54.000Z | 2022-02-07T14:19:54.000Z | src/pocketdb/services/WsNotifier.cpp | pocketnetapp/pocketnet.core | 2bdcd58bd8a4210d1117c06d52295c0b62c4061d | [
"Apache-2.0"
] | null | null | null | src/pocketdb/services/WsNotifier.cpp | pocketnetapp/pocketnet.core | 2bdcd58bd8a4210d1117c06d52295c0b62c4061d | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2018-2022 The Pocketnet developers
// Distributed under the Apache 2.0 software license, see the accompanying
// https://www.apache.org/licenses/LICENSE-2.0
#include "WsNotifier.h"
| 33.166667 | 74 | 0.763819 | pocketnetapp |
b2567ca76bc420f301bf8e35e0fe0ac0dd80a264 | 15,308 | cc | C++ | cpp/Deform/deform_psroi_pooling_op.cc | HiKapok/DAN | fb726fad86b3f53d12c7bc5b833a705d7d885563 | [
"Apache-2.0"
] | 15 | 2019-01-28T01:56:15.000Z | 2021-04-27T19:33:46.000Z | cpp/Deform/deform_psroi_pooling_op.cc | HiKapok/DAN | fb726fad86b3f53d12c7bc5b833a705d7d885563 | [
"Apache-2.0"
] | 3 | 2019-05-14T07:25:17.000Z | 2021-08-11T01:50:59.000Z | cpp/Deform/deform_psroi_pooling_op.cc | HiKapok/DAN | fb726fad86b3f53d12c7bc5b833a705d7d885563 | [
"Apache-2.0"
] | 7 | 2019-04-11T09:25:11.000Z | 2020-12-18T06:04:10.000Z | /* Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 40.821333 | 161 | 0.665208 | HiKapok |
b25b56b2e42ec0e8935f537feeebfdc154f1324b | 30 | cpp | C++ | Engine/Helper/valuedatavariant.cpp | hefsoftware/Stem | 0903032db9ba6f843c01d06aea5a31f2b519ec56 | [
"BSD-3-Clause"
] | null | null | null | Engine/Helper/valuedatavariant.cpp | hefsoftware/Stem | 0903032db9ba6f843c01d06aea5a31f2b519ec56 | [
"BSD-3-Clause"
] | null | null | null | Engine/Helper/valuedatavariant.cpp | hefsoftware/Stem | 0903032db9ba6f843c01d06aea5a31f2b519ec56 | [
"BSD-3-Clause"
] | null | null | null | #include "valuedatavariant.h"
| 15 | 29 | 0.8 | hefsoftware |
b267864e88d6a620439efa9d5166c494ef677871 | 3,312 | hpp | C++ | hash_table.hpp | wheatman/ConcurrentHashMap | 7af9030e084d8c2c5eec2ca3e4a51e3a8bb80dda | [
"MIT"
] | null | null | null | hash_table.hpp | wheatman/ConcurrentHashMap | 7af9030e084d8c2c5eec2ca3e4a51e3a8bb80dda | [
"MIT"
] | null | null | null | hash_table.hpp | wheatman/ConcurrentHashMap | 7af9030e084d8c2c5eec2ca3e4a51e3a8bb80dda | [
"MIT"
] | null | null | null | #pragma once
#include "parallel.h"
#include "reducer.h"
#include <algorithm>
#include <functional>
#include <memory>
#include <mutex>
#include <unordered_map>
#include <unordered_set>
#include <vector>
template <class Key, class T, class Hash = std::hash<Key>>
class ConcurrentHashMap {
private:
using Map = std::pa... | 26.285714 | 75 | 0.610507 | wheatman |
b26875abce8e9890cbb8cfb1b03663110905b511 | 12,391 | cpp | C++ | data/954.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/954.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/954.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int b9MhF//6oKqb
, th6sZ,
pQ
,
wzc ,
sJ0u ,
J
, B5 , qet,
Y, M
, JIk, dRbLB , JI ,
HVm
,V6i ,
ApWJ, QLr, kr,
yaXv ,
LrB ,vms, ZpPk/**/, qrW
,/*n*/
QBDYi,
jH , E ,Qp,qlMm
,i,/*KnSK*/
ZW,K1E , AXo ,
N4
, gI4I,/*X*/PhCO
,awv , zP7C , NJ ,
C
,G
,
rKp3S9, DCW ,xNvW,c6,
im
,
OXaT,ll9V,JSBw;
v... | 10.343072 | 61 | 0.450488 | TianyiChen |
b26af8c0fa87c0a6ce64a4b200a5a1d80aefdff5 | 53,298 | cpp | C++ | surfgradDemo/main.cpp | mmikk/surfgrad-bump-standalone-demo | 82f5f9979cf1f295ee73747db0bcdd906c99c752 | [
"MIT"
] | 55 | 2020-10-21T19:03:55.000Z | 2022-03-24T19:33:16.000Z | surfgradDemo/main.cpp | mmikk/surfgrad-bump-standalone-demo | 82f5f9979cf1f295ee73747db0bcdd906c99c752 | [
"MIT"
] | null | null | null | surfgradDemo/main.cpp | mmikk/surfgrad-bump-standalone-demo | 82f5f9979cf1f295ee73747db0bcdd906c99c752 | [
"MIT"
] | 3 | 2020-10-22T06:20:06.000Z | 2020-11-23T07:18:32.000Z | // This sample was made by Morten S. Mikkelsen
// It illustrates how to do compositing of bump maps in complex scenarios using the surface gradient based framework.
#define SHOW_DEMO_SCENE
#include "DXUT.h"
#include "DXUTcamera.h"
#include "DXUTgui.h"
//#include "DXUTsettingsDlg.h"
#include "SDKmisc.h"
//#include "S... | 33.478643 | 216 | 0.707569 | mmikk |
05ce31177cbbb4f58641e137495e47aa4315bee6 | 1,465 | cpp | C++ | math/Conjugate Gradient/cpp/conjugate_gradient.cpp | CarbonDDR/al-go-rithms | 8e65affbe812931b7dde0e2933eb06c0f44b4130 | [
"CC0-1.0"
] | 1,253 | 2017-06-06T07:19:25.000Z | 2022-03-30T17:07:58.000Z | math/Conjugate Gradient/cpp/conjugate_gradient.cpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 554 | 2017-09-29T18:56:01.000Z | 2022-02-21T15:48:13.000Z | math/Conjugate Gradient/cpp/conjugate_gradient.cpp | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 2,226 | 2017-09-29T19:59:59.000Z | 2022-03-25T08:59:55.000Z | #include <iostream>
#include <vector>
using namespace std;
//Naive matrix multiplications!! Anyways, to compile g++ -std=c++14 -o main conjugate_gradient.cpp
//gionuno
vector<double> conjugate_gradient(const vector<vector<double> > & A, const vector<double> & b,int T)
{
int N = b.size();
vector<double> r(N,0.0);
vec... | 23.253968 | 100 | 0.529693 | CarbonDDR |
05cf6f58b90b4b7ed4ec36a1aaed0cac03615d00 | 9,164 | cpp | C++ | src/vision_opencv/opencv_apps/src/nodelet/segment_objects_nodelet.cpp | mwimble/kaimiPi | 92ea97f7d761ed38fb490dab10bfdf09c2ba352f | [
"FSFAP"
] | 1 | 2022-03-29T07:26:29.000Z | 2022-03-29T07:26:29.000Z | src/vision_opencv/opencv_apps/src/nodelet/segment_objects_nodelet.cpp | mwimble/kaimiPi | 92ea97f7d761ed38fb490dab10bfdf09c2ba352f | [
"FSFAP"
] | null | null | null | src/vision_opencv/opencv_apps/src/nodelet/segment_objects_nodelet.cpp | mwimble/kaimiPi | 92ea97f7d761ed38fb490dab10bfdf09c2ba352f | [
"FSFAP"
] | null | null | null | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Kei Okada.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... | 33.083032 | 123 | 0.678306 | mwimble |
05cfb4bd97f3fd9c5ecb2872bec0bba2c525ef7b | 2,517 | cpp | C++ | problemsets/UVA/377.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/UVA/377.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/UVA/377.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <algorithm>
#include <cctype>
#include <map>
#include <iostream>
using namespace std;
typedef pair<char,char> PCC;
map<PCC,PCC> A;
string add(str... | 24.436893 | 53 | 0.415177 | juarezpaulino |
05d09fa85f4ff909e6ed03acc4552dc3c95ad691 | 8,559 | cpp | C++ | SpelJongEmu/src/AluFunctions.cpp | fallahn/speljongen | 57cb5e09eec7db8c21ee7b3e7943fa0a76738c51 | [
"Unlicense"
] | 17 | 2018-06-23T14:40:56.000Z | 2019-07-02T11:58:55.000Z | SpelJongEmu/src/AluFunctions.cpp | fallahn/speljongen | 57cb5e09eec7db8c21ee7b3e7943fa0a76738c51 | [
"Unlicense"
] | 3 | 2018-06-23T12:35:12.000Z | 2018-06-23T12:38:54.000Z | SpelJongEmu/src/AluFunctions.cpp | fallahn/speljongen | 57cb5e09eec7db8c21ee7b3e7943fa0a76738c51 | [
"Unlicense"
] | null | null | null | #include "AluFunctions.hpp"
#include "CpuRegisters.hpp"
#include <cassert>
std::uint8_t AluFunction::inc(Flags& flags, std::uint8_t arg)
{
std::uint8_t result = arg + 1;
flags.set(Flags::Z, result == 0);
flags.set(Flags::N, false);
flags.set(Flags::H, ((arg & 0x0f) == 0x0f));
return result;
}
st... | 26.663551 | 85 | 0.586984 | fallahn |
05d27ef62eb5a58839ad4a04691af8355f3911b0 | 3,783 | cpp | C++ | source/math/regression.cpp | ramenhut/final-stage-path-tracer-2-0 | 77c3a706f6521d88245b95b6310344b202be0e37 | [
"BSD-2-Clause"
] | 5 | 2019-07-26T06:24:16.000Z | 2019-11-10T09:41:20.000Z | source/jmath/regression.cpp | ramenhut/global-illumination-lightmaps | e2099e1dca2ba181b18c248958b6f3cec96f14f2 | [
"BSD-2-Clause"
] | null | null | null | source/jmath/regression.cpp | ramenhut/global-illumination-lightmaps | e2099e1dca2ba181b18c248958b6f3cec96f14f2 | [
"BSD-2-Clause"
] | 2 | 2019-09-18T13:01:45.000Z | 2021-10-17T00:04:04.000Z |
#include "statistics.h"
namespace base {
void compute_linear_squares(vector2* point_list, uint32 count,
vector2* out_start, vector2* out_end) {
if (BASE_PARAM_CHECK) {
if (!point_list || !out_start || !out_end) {
return;
}
}
float32 m = 0;
float32 b = 0;
float32 x... | 25.560811 | 76 | 0.629923 | ramenhut |
05d90accfa21cef2baafb427ed0783a65c87c035 | 974 | cpp | C++ | IO/src/v4l2/src/export.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | IO/src/v4l2/src/export.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | IO/src/v4l2/src/export.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "v4l2.hpp"
#include "export.hpp"
extern "C" VS_PLUGINS_EXPORT VideoStitch::Potential<VideoStitch::Input::Reader>* createReaderFn(
const VideoStitch::Ptv::Value* config, VideoStitch::Plugin::VSReaderPlugin::Config runtime) {
Video... | 40.583333 | 105 | 0.7577 | tlalexander |
05d91c22665eeb990044f7d7d45da481140a2924 | 3,577 | hh | C++ | dune/gdt/spaces/mapper/finite-volume.hh | pymor/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 4 | 2018-10-12T21:46:08.000Z | 2020-08-01T18:54:02.000Z | dune/gdt/spaces/mapper/finite-volume.hh | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 154 | 2016-02-16T13:50:54.000Z | 2021-12-13T11:04:29.000Z | dune/gdt/spaces/mapper/finite-volume.hh | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 5 | 2016-03-02T10:11:20.000Z | 2020-02-08T03:56:24.000Z | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt 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://opensource.org/lice... | 28.388889 | 119 | 0.728823 | pymor |
05dcffcae4da3aa57b64116b37688eba011f35ec | 484 | cpp | C++ | C/202009011649.cpp | zawa-ch/code-fragments | 4cc4fab495e633f48cadfdaa753f2fb604093caf | [
"Unlicense"
] | null | null | null | C/202009011649.cpp | zawa-ch/code-fragments | 4cc4fab495e633f48cadfdaa753f2fb604093caf | [
"Unlicense"
] | null | null | null | C/202009011649.cpp | zawa-ch/code-fragments | 4cc4fab495e633f48cadfdaa753f2fb604093caf | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <limits>
int main(int argc, char const *argv[])
{
// 明らかにオーバーフローを起こす値キャストの確認
// 3E113をint型(max:2147483647)に変換
const double value1 = 3.0e+113;
int castvalue1 = int(value1);
std::cout << value1 << " --int cast-> " << castvalue1 << std::endl;
// Quiet NaN (無効な値)をint型に変換
const double ... | 25.473684 | 68 | 0.663223 | zawa-ch |
05e40631f92f1ae84df484863908744364615275 | 1,545 | cpp | C++ | test/route_test.cpp | LeonineKing1199/foxy-old | bc2d127dc3be48aea7007e4a7262d0a2bf0931d0 | [
"BSL-1.0"
] | 1 | 2020-09-30T08:58:35.000Z | 2020-09-30T08:58:35.000Z | test/route_test.cpp | LeonineKing1199/foxy-old | bc2d127dc3be48aea7007e4a7262d0a2bf0931d0 | [
"BSL-1.0"
] | null | null | null | test/route_test.cpp | LeonineKing1199/foxy-old | bc2d127dc3be48aea7007e4a7262d0a2bf0931d0 | [
"BSL-1.0"
] | null | null | null | #include "foxy/route.hpp"
#include "foxy/match_route.hpp"
#include <boost/asio/executor.hpp>
#include <boost/spirit/include/qi_int.hpp>
#include <boost/spirit/include/qi_lit.hpp>
#include <boost/spirit/include/qi_rule.hpp>
#include <boost/spirit/include/qi_sequence.hpp>
#include <catch.hpp>
namespace qi = boost::... | 24.140625 | 74 | 0.653722 | LeonineKing1199 |
05e4ea8c83712ab12abe3ea97ed01f4dc38a7163 | 1,204 | cpp | C++ | source/xyo-pixel32-process-wrapbox.cpp | g-stefan/xyo-pixel32 | 2f0e7500473f38ccffdff19e864f262b9f36056d | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo-pixel32-process-wrapbox.cpp | g-stefan/xyo-pixel32 | 2f0e7500473f38ccffdff19e864f262b9f36056d | [
"MIT",
"Unlicense"
] | null | null | null | source/xyo-pixel32-process-wrapbox.cpp | g-stefan/xyo-pixel32 | 2f0e7500473f38ccffdff19e864f262b9f36056d | [
"MIT",
"Unlicense"
] | null | null | null | //
// XYO Pixel32
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#include "xyo-pixel32-process.hpp"
namespace XYO {
namespace Pixel32 {
namespace Process {
using n... | 24.08 | 73 | 0.535714 | g-stefan |
05e8b91c6da8173c0d75ef85ebf78627958ff339 | 388 | cpp | C++ | Codeforces/ProblemSet/144A.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | Codeforces/ProblemSet/144A.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | Codeforces/ProblemSet/144A.cpp | Binary-bug/CP | f9f356d36bd252c71ee3ed2d0585cc372f2baf5e | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int n,x,max_i,min_i,max,min;
scanf("%d",&n);
scanf("%d",&x);
max = min = x;
max_i = min_i = 0;
for(int i=1; i < n; ++i){
scanf("%d",&x);
if(x > max) max = x, max_i = i;
if(x <= min) min = x, min_i = i;
}
(max_i > min_i)?(cout << (n + max_i - min_i - 2)... | 18.47619 | 85 | 0.512887 | Binary-bug |
05e9370c686fafe079834bdcc34f3a492a7fb13a | 4,079 | cpp | C++ | common/utils.cpp | olafurw/server2 | 28cfc7c07ef5e87951af8f5326b54e3434391765 | [
"MIT"
] | null | null | null | common/utils.cpp | olafurw/server2 | 28cfc7c07ef5e87951af8f5326b54e3434391765 | [
"MIT"
] | null | null | null | common/utils.cpp | olafurw/server2 | 28cfc7c07ef5e87951af8f5326b54e3434391765 | [
"MIT"
] | null | null | null | #include "utils.hpp"
#include "sha256.hpp"
#include <dlfcn.h>
#include <execinfo.h>
#include <cxxabi.h>
namespace utils
{
std::string sha256(const std::string& data)
{
static char const hex[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
unsigned char result[32];
... | 25.179012 | 183 | 0.579063 | olafurw |
05e94c4ac2a7c68f01d18d3c017ce05a3aa2a02e | 28,002 | cpp | C++ | src/XPTools/DDSTool.cpp | den-rain/xptools | 4c39da8d44a4a92e9efb2538844d433496b38f07 | [
"X11",
"MIT"
] | null | null | null | src/XPTools/DDSTool.cpp | den-rain/xptools | 4c39da8d44a4a92e9efb2538844d433496b38f07 | [
"X11",
"MIT"
] | null | null | null | src/XPTools/DDSTool.cpp | den-rain/xptools | 4c39da8d44a4a92e9efb2538844d433496b38f07 | [
"X11",
"MIT"
] | null | null | null | /*
* Copyright (c) 2007, Laminar Research.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, ... | 27.426053 | 156 | 0.628669 | den-rain |
05ed9734e51037b611928eb5062b06937f2345e3 | 2,251 | cpp | C++ | couch/cplus/read/couch_read.cpp | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | 3 | 2015-05-12T16:44:27.000Z | 2021-02-09T00:39:24.000Z | couch/cplus/read/couch_read.cpp | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | couch/cplus/read/couch_read.cpp | ekzemplaro/data_base_language | e77030367ffc595f1fac8583f03f9a3ce5eb1611 | [
"MIT",
"Unlicense"
] | null | null | null | // --------------------------------------------------------------------
/*
couch_read.cpp
Jun/19/2015
*/
// --------------------------------------------------------------------
#include <string>
#include <iostream>
#include <map>
#include "/var/www/data_base/common/cplus_common/include/picojson.h"
using names... | 21.854369 | 80 | 0.523767 | ekzemplaro |
05fc2ce0994eaa85e79762f4941bd7224eb15a66 | 346 | cpp | C++ | graphics/shaders/FloatConstNode.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | graphics/shaders/FloatConstNode.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | graphics/shaders/FloatConstNode.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #include "FloatConstNode.hpp"
BEGIN_INANITY_SHADERS
FloatConstNode::FloatConstNode(float value)
: value(value) {}
Node::Type FloatConstNode::GetType() const
{
return typeFloatConst;
}
DataType FloatConstNode::GetValueType() const
{
return DataTypes::_float;
}
float FloatConstNode::GetValue() const
{
return valu... | 14.416667 | 45 | 0.777457 | quyse |
05fd53695fbb508aeb21ccca80501fb1f880819e | 623 | cpp | C++ | unit_tests/test_multinomial.cpp | Munfred/kallisto | 01419499882cc17f8c77e82e7ff0e9eec6abb91f | [
"BSD-2-Clause"
] | 505 | 2015-05-06T05:39:27.000Z | 2022-03-29T21:46:36.000Z | unit_tests/test_multinomial.cpp | Munfred/kallisto | 01419499882cc17f8c77e82e7ff0e9eec6abb91f | [
"BSD-2-Clause"
] | 278 | 2015-05-06T05:03:46.000Z | 2022-03-31T21:19:46.000Z | unit_tests/test_multinomial.cpp | Munfred/kallisto | 01419499882cc17f8c77e82e7ff0e9eec6abb91f | [
"BSD-2-Clause"
] | 185 | 2015-05-06T05:02:31.000Z | 2022-01-31T12:27:22.000Z | #include "catch.hpp"
#include <iostream>
#include <vector>
#include "Multinomial.hpp"
TEST_CASE("multinomial", "[multinomial]")
{
std::default_random_engine generator(42);
std::vector<int> x {5, 5, 10, 0};
std::discrete_distribution<int> dd(x.begin(), x.end());
for (auto p : dd.probabilities()) {
... | 20.766667 | 59 | 0.5313 | Munfred |
af00a0eeb24fbf4aecfd507708a2fcbd01680a40 | 682 | hpp | C++ | src/gametransition.hpp | cpusam/dangerous_tux | e5f099f3e3665d62f1c484458125f003c1d5eece | [
"Zlib"
] | 1 | 2020-09-18T07:43:07.000Z | 2020-09-18T07:43:07.000Z | src/gametransition.hpp | cpusam/dangerous_tux | e5f099f3e3665d62f1c484458125f003c1d5eece | [
"Zlib"
] | null | null | null | src/gametransition.hpp | cpusam/dangerous_tux | e5f099f3e3665d62f1c484458125f003c1d5eece | [
"Zlib"
] | null | null | null | #ifndef GAMETRANSITION_HPP
#define GAMETRANSITION_HPP
#include "player.hpp"
#include "background.hpp"
#include "camera.hpp"
#include "platform/tilemap.hpp"
#include "gui/label.hpp"
class CGameTransition: public StateMachine
{
protected:
Background bg;
Camera * cam;
TileMapView * map;
CPlayer * player;
Gui... | 16.634146 | 55 | 0.681818 | cpusam |
af05ec2b0ab770eb898c56a7214eb607d39e067a | 365 | cpp | C++ | day5/Line.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | 1 | 2021-12-02T14:11:37.000Z | 2021-12-02T14:11:37.000Z | day5/Line.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | null | null | null | day5/Line.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | null | null | null | #include "Line.hpp"
Line::Line(const Point &p1, const Point &p2)
: _points({p1, p2})
{
}
bool Line::IsHorizontal() const
{
return _points[0].second == _points[1].second;
}
bool Line::IsVertical() const
{
return _points[0].first == _points[1].first;
}
const std::array<std::pair<std::uint16_t, std::uint16_t>, 2> &... | 16.590909 | 85 | 0.671233 | fardragon |
af06f41b2069f25d29a4aa86c04ec4919c50d8c0 | 1,986 | cpp | C++ | tests/atexit/host/host.cpp | jbdelcuv/openenclave | c2e9cfabd788597f283c8dd39edda5837b1b1339 | [
"MIT"
] | 617 | 2019-06-19T22:08:04.000Z | 2022-03-25T09:21:03.000Z | tests/atexit/host/host.cpp | jbdelcuv/openenclave | c2e9cfabd788597f283c8dd39edda5837b1b1339 | [
"MIT"
] | 2,545 | 2019-06-18T21:46:10.000Z | 2022-03-31T23:26:51.000Z | tests/atexit/host/host.cpp | jbdelcuv/openenclave | c2e9cfabd788597f283c8dd39edda5837b1b1339 | [
"MIT"
] | 292 | 2019-07-02T15:40:35.000Z | 2022-03-27T13:27:10.000Z | // Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <openenclave/host.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/error.h>
#include <openenclave/internal/tests.h>
#include <cstdio>
#include <cstdlib>
#include <thread>
#include "atexit_u.h"
#define... | 24.219512 | 73 | 0.651561 | jbdelcuv |
af0a67c64339e2f7d426d813043cf5fede83d3d6 | 5,569 | cpp | C++ | QmlVlcVideoOutput.cpp | xsmart/QmlVlc | 284a3731924690ef3b1a2291857f69ce2d271a20 | [
"BSD-2-Clause"
] | 1 | 2019-05-13T09:27:29.000Z | 2019-05-13T09:27:29.000Z | QmlVlcVideoOutput.cpp | xsmart/QmlVlc | 284a3731924690ef3b1a2291857f69ce2d271a20 | [
"BSD-2-Clause"
] | 1 | 2021-11-02T17:20:00.000Z | 2021-11-02T17:20:00.000Z | deps/QmlVlc/QmlVlcVideoOutput.cpp | litovko/giko_rig | fbc9d336a149f5e072a66245eb94260696a81e1d | [
"Apache-2.0"
] | 1 | 2021-05-25T04:31:11.000Z | 2021-05-25T04:31:11.000Z | /*******************************************************************************
* Copyright © 2014-2015, Sergey Radionov <rsatom_gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. ... | 33.14881 | 108 | 0.672652 | xsmart |
af0b7b989e4709dbe9eed9fb2ca2f9e8b1a079c6 | 3,906 | hh | C++ | src/lisp/symbol.hh | kuriboshi/lips | f9f4838a95ff574fb7a627a3eb966b38b6f430f7 | [
"Apache-2.0"
] | 1 | 2020-11-10T11:02:21.000Z | 2020-11-10T11:02:21.000Z | src/lisp/symbol.hh | kuriboshi/lips | f9f4838a95ff574fb7a627a3eb966b38b6f430f7 | [
"Apache-2.0"
] | null | null | null | src/lisp/symbol.hh | kuriboshi/lips | f9f4838a95ff574fb7a627a3eb966b38b6f430f7 | [
"Apache-2.0"
] | null | null | null | //
// Lips, lisp shell.
// Copyright 2021 Krister Joas
//
#ifndef LISP_SYMBOL_HH
#define LISP_SYMBOL_HH
#include <cstdint>
#include <string>
#include <unordered_map>
#include <vector>
#include "lisp.hh"
namespace lisp
{
class lisp_t;
using LISPT = std::shared_ptr<lisp_t>;
extern LISPT C_UNBOUND;
namespace symbol
{... | 23.96319 | 82 | 0.678187 | kuriboshi |
af0ca9d1a06932b25d39ef87acd36f59c0b2db6b | 404 | cpp | C++ | src/wire/core/ssl_certificate.cpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 5 | 2016-04-07T19:49:39.000Z | 2021-08-03T05:24:11.000Z | src/wire/core/ssl_certificate.cpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | null | null | null | src/wire/core/ssl_certificate.cpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 1 | 2020-12-27T11:47:31.000Z | 2020-12-27T11:47:31.000Z | /*
* ssl_certificate.cpp
*
* Created on: May 24, 2017
* Author: zmij
*/
#include <wire/core/ssl_certificate.hpp>
#include <openssl/x509.h>
namespace wire {
namespace core {
::std::string
ssl_certificate::subject_name() const
{
char sn[256];
X509_NAME_oneline(X509_get_subject_name(native_), sn, 256... | 15.538462 | 63 | 0.660891 | zmij |
af0d8d4c3ea38246bb2aba7d7c7e2bf2dfd18905 | 1,998 | cpp | C++ | Engine/Src/Common/GfInput/GfMouse.cpp | alapontgr/Engine | 6be363d79b9fdaee813b196db12ae296a6ca8089 | [
"MIT"
] | null | null | null | Engine/Src/Common/GfInput/GfMouse.cpp | alapontgr/Engine | 6be363d79b9fdaee813b196db12ae296a6ca8089 | [
"MIT"
] | null | null | null | Engine/Src/Common/GfInput/GfMouse.cpp | alapontgr/Engine | 6be363d79b9fdaee813b196db12ae296a6ca8089 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// Author: Sergio Alapont Granero (seralgrainf@gmail.com)
// Date: 2019/04/16
// File: GfMouse.cpp
//
// Copyright (c) 2018 (See README.md)
//
////////////////////////////////////////////////////////////////////////////////
// Include... | 25.615385 | 98 | 0.391892 | alapontgr |
af0e1fe2eabf992658b72ca9358b8017b715aab4 | 406 | cpp | C++ | C++/homeworksC++/countString.cpp | faber222/Aulas-Prog | 989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb | [
"MIT"
] | null | null | null | C++/homeworksC++/countString.cpp | faber222/Aulas-Prog | 989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb | [
"MIT"
] | null | null | null | C++/homeworksC++/countString.cpp | faber222/Aulas-Prog | 989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
cout << "\x1b[2J";
cout << "\x1b[H";
string frase;
getline(cin, frase);
int x = 0;
int y = 0;
while (x != string::npos) {
int z = frase.find_first_not_of(" \n\t.?:!;,", x);
if (z == string::npos) break;
y++;
x = fr... | 18.454545 | 54 | 0.514778 | faber222 |
af14c0cad65fa9d88a02c897029d0641e8882ec0 | 18,226 | cpp | C++ | external/openglcts/modules/glesext/texture_border_clamp/esextcTextureBorderClampTexParameterIErrors.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 354 | 2017-01-24T17:12:38.000Z | 2022-03-30T07:40:19.000Z | external/openglcts/modules/glesext/texture_border_clamp/esextcTextureBorderClampTexParameterIErrors.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 275 | 2017-01-24T20:10:36.000Z | 2022-03-24T16:24:50.000Z | external/openglcts/modules/glesext/texture_border_clamp/esextcTextureBorderClampTexParameterIErrors.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 190 | 2017-01-24T18:02:04.000Z | 2022-03-27T13:11:23.000Z | /*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2014-2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | 43.707434 | 117 | 0.76133 | iabernikhin |
af239c5ad9557a5e132c1eb0bffd0d0ea19a32e8 | 10,984 | cpp | C++ | fast_dc.cpp | Borges3D/fast_dual_contouring | 2dbe5c22900bf69e4ae3f4dcfb54e126e8a0f22f | [
"Unlicense"
] | 136 | 2017-05-30T21:48:39.000Z | 2022-03-11T20:47:54.000Z | fast_dc.cpp | Borges3D/fast_dual_contouring | 2dbe5c22900bf69e4ae3f4dcfb54e126e8a0f22f | [
"Unlicense"
] | 1 | 2019-09-17T09:12:32.000Z | 2019-09-19T23:47:11.000Z | fast_dc.cpp | Borges3D/fast_dual_contouring | 2dbe5c22900bf69e4ae3f4dcfb54e126e8a0f22f | [
"Unlicense"
] | 19 | 2017-06-01T00:59:59.000Z | 2021-01-25T22:45:53.000Z | //
// Written by Nick Gildea (2017)
// Public Domain
//
#include "fast_dc.h"
#include "ng_mesh_simplify.h"
#include "qef_simd.h"
#include <glm/glm.hpp>
#include <stdint.h>
// ----------------------------------------------------------------------------
// TODO the winding field could be packed into the normal vec a... | 24.794582 | 99 | 0.569829 | Borges3D |
af283ae8fc3c0f5cfddc9d0fb1d718c19fdaaa2a | 6,628 | hh | C++ | sqlite-kvstore/sqlite-pst.hh | couchbaselabs/ep-engine | 22f16e840dc17c79d5ffbfa7e15fe07509d0236c | [
"Apache-2.0"
] | null | null | null | sqlite-kvstore/sqlite-pst.hh | couchbaselabs/ep-engine | 22f16e840dc17c79d5ffbfa7e15fe07509d0236c | [
"Apache-2.0"
] | null | null | null | sqlite-kvstore/sqlite-pst.hh | couchbaselabs/ep-engine | 22f16e840dc17c79d5ffbfa7e15fe07509d0236c | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef SQLITE_PST_H
#define SQLITE_PST_H 1
#include <string>
#include <stdio.h>
#include <inttypes.h>
#ifdef USE_SYSTEM_LIBSQLITE3
#include <sqlite3.h>
#else
#include "embedded/sqlite3.h"
#endif
#include "common.hh"
#include "kvstore.hh"... | 23.756272 | 82 | 0.58615 | couchbaselabs |
af29ba66394d64d4fb9ea375ddf614e858a1b410 | 5,573 | cpp | C++ | src/gurra/restconsumer.cpp | SammyEnigma/Gurra | 1f6d6fd9e5b034c2cef90e832d7845dc6ba5e2a7 | [
"MIT"
] | 19 | 2017-03-14T02:31:39.000Z | 2022-03-01T13:41:04.000Z | src/gurra/restconsumer.cpp | SammyEnigma/Gurra | 1f6d6fd9e5b034c2cef90e832d7845dc6ba5e2a7 | [
"MIT"
] | 1 | 2017-02-26T12:17:52.000Z | 2017-03-01T12:59:51.000Z | src/gurra/restconsumer.cpp | yasser-sobhy-net/Gurra | 1f6d6fd9e5b034c2cef90e832d7845dc6ba5e2a7 | [
"MIT"
] | 5 | 2017-05-11T08:19:14.000Z | 2019-11-02T07:43:58.000Z | #include "restconsumer.h"
using namespace Gurra;
RestConsumer::RestConsumer()
{
connect(&networkAccessManager, &QNetworkAccessManager::finished,
this, &RestConsumer::parseNetworkResponse);
}
RestConsumer::~RestConsumer()
{
}
QByteArray RestConsumer::host(){
return m_host;
}
void RestConsumer::... | 25.682028 | 153 | 0.654943 | SammyEnigma |
af2ab6fd45d426f4a39cbcd17dd10fe5baecc967 | 4,985 | cpp | C++ | 12/passage_pathing.t.cpp | ComicSansMS/AdventOfCode2021 | 60902d14c356c3375266703e85aca991241afc84 | [
"Unlicense"
] | null | null | null | 12/passage_pathing.t.cpp | ComicSansMS/AdventOfCode2021 | 60902d14c356c3375266703e85aca991241afc84 | [
"Unlicense"
] | null | null | null | 12/passage_pathing.t.cpp | ComicSansMS/AdventOfCode2021 | 60902d14c356c3375266703e85aca991241afc84 | [
"Unlicense"
] | null | null | null | #include <passage_pathing.hpp>
#include <catch.hpp>
#include <sstream>
TEST_CASE("Passage Pathing")
{
char const sample_input1[] = "start-A" "\n"
"start-b" "\n"
"A-c" "\n"
"A-b" "\n"
... | 44.115044 | 99 | 0.408225 | ComicSansMS |
af2dc67146c64893b7be6d8915e88dfc89dda2eb | 12,931 | cpp | C++ | PlayFabServerSDK/PlayFabProfilesAPI.cpp | PlayFab/Cocos2d-xSDK | b0ba5c90ff0731b9ffb6fb56fcdaaafaa6dca6b9 | [
"Zlib",
"Apache-2.0",
"MIT",
"OpenSSL",
"OLDAP-2.8",
"BSD-3-Clause"
] | 5 | 2016-01-08T19:33:53.000Z | 2021-02-01T15:20:45.000Z | PlayFabSDK/PlayFabProfilesAPI.cpp | PlayFab/Cocos2d-xSDK | b0ba5c90ff0731b9ffb6fb56fcdaaafaa6dca6b9 | [
"Zlib",
"Apache-2.0",
"MIT",
"OpenSSL",
"OLDAP-2.8",
"BSD-3-Clause"
] | 24 | 2015-08-07T18:32:47.000Z | 2018-04-06T16:58:36.000Z | PlayFabSDK/PlayFabProfilesAPI.cpp | PlayFab/Cocos2d-xSDK | b0ba5c90ff0731b9ffb6fb56fcdaaafaa6dca6b9 | [
"Zlib",
"Apache-2.0",
"MIT",
"OpenSSL",
"OLDAP-2.8",
"BSD-3-Clause"
] | 6 | 2015-07-27T19:28:53.000Z | 2019-02-20T14:32:44.000Z | #include "HttpRequest.h"
#include "HttpRequesterCURL.h"
#include "PlayFabResultHandler.h"
#include "PlayFabSettings.h"
#include "PlayFabProfilesAPI.h"
#include <string>
using namespace PlayFab;
using namespace PlayFab::ProfilesModels;
PlayFabProfilesAPI::PlayFabProfilesAPI() {}
void PlayFabProfilesAPI::GetGlobalPoli... | 38.485119 | 171 | 0.737917 | PlayFab |
af2ed4b1e1c502fe3ec94638e47e5a5fb24c372b | 975 | cpp | C++ | Framework/PathUtils.cpp | jerryrox/RenkoSDLFramework | 0db6948c067b101a3702128e61d601dfe879aba1 | [
"MIT"
] | null | null | null | Framework/PathUtils.cpp | jerryrox/RenkoSDLFramework | 0db6948c067b101a3702128e61d601dfe879aba1 | [
"MIT"
] | null | null | null | Framework/PathUtils.cpp | jerryrox/RenkoSDLFramework | 0db6948c067b101a3702128e61d601dfe879aba1 | [
"MIT"
] | null | null | null | #include "PathUtils.h"
std::string PathUtils::Combine(std::string* x, std::string* y)
{
if (x == 0 || y == 0)
return "";
if (x->size() == 0)
return std::string(*y);
if (y->size() == 0)
return std::string(*x);
for (int i = (int)x->size() - 1; i >= 0; i--)
{
if (x->at(i) != '\\')
break;
x->erase(x->beg... | 20.744681 | 65 | 0.471795 | jerryrox |
af2f1ff3777e823efa7240711d1032d064055d49 | 48,883 | cpp | C++ | src/QtTasks/Items/VcfScheduler.cpp | Vladimir-Lin/QtTasks | 2150f149509678f012afa05cd7fb7d4acbfdbc9d | [
"MIT"
] | null | null | null | src/QtTasks/Items/VcfScheduler.cpp | Vladimir-Lin/QtTasks | 2150f149509678f012afa05cd7fb7d4acbfdbc9d | [
"MIT"
] | null | null | null | src/QtTasks/Items/VcfScheduler.cpp | Vladimir-Lin/QtTasks | 2150f149509678f012afa05cd7fb7d4acbfdbc9d | [
"MIT"
] | null | null | null | #include <qttasks.h>
N::VcfScheduler:: VcfScheduler ( VcfHeadParaments )
: VcfCanvas ( parent , item , p )
, Thread ( )
, TimeBar ( NULL )
, Section ( NULL )
, TimeBlock ( ... | 45.856473 | 85 | 0.336804 | Vladimir-Lin |
af3205d8234bb8d1c1942d568ddc6fec96386bc9 | 1,431 | cpp | C++ | 400-500/432.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 400-500/432.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 400-500/432.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <ctime>
typedef long long LL;
const LL M = 100000000000LL;
const int K = 510510;
const int MOD = 1000000000;
const int N = 50000000;
int p[7]={2,3,5,7,11,13,17};
int a[N];
int phi[N];
int sphi[N];
int f[M/N+1];
// returns F(M/k)
int F(LL k)
{
if(k<=M/N... | 18.584416 | 58 | 0.453529 | Thomaw |
af443f51991c44be47cd78d86d492fb86c26470a | 1,698 | cpp | C++ | test/posix/start.cpp | malachi-iot/ATCommander | a261ca2f62e3ae2a224b43127cb846413555a01b | [
"MIT"
] | 6 | 2017-07-08T07:50:16.000Z | 2021-01-24T00:08:57.000Z | test/posix/start.cpp | malachi-iot/ATCommander | a261ca2f62e3ae2a224b43127cb846413555a01b | [
"MIT"
] | null | null | null | test/posix/start.cpp | malachi-iot/ATCommander | a261ca2f62e3ae2a224b43127cb846413555a01b | [
"MIT"
] | 5 | 2017-04-05T06:15:14.000Z | 2021-01-24T22:45:26.000Z | #include "catch.hpp"
#include <atcommander.h>
//int fakeStream = 0;
//ATCommander<int> atc(fakeStream, fakeStream);
/*
template <class ...TRef>
ATCommander::command_helper2(TRef...dummy) ->
ATCommander::command_helper2<dummy...>;
*/
struct FakeCommand
{
static constexpr char CMD = 'V';
};
static void fa... | 26.952381 | 101 | 0.690224 | malachi-iot |