hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85cc1d3b70ab1457358c4c505c56772a8f8ae098 | 2,749 | cpp | C++ | src/MeshDataBuffer.cpp | jaredmulconry/GLProj | 722fc9804cf6bd2ee0098e6eed9261198f55d0b9 | [
"MIT"
] | 1 | 2016-11-28T07:14:41.000Z | 2016-11-28T07:14:41.000Z | src/MeshDataBuffer.cpp | jaredmulconry/GLProj | 722fc9804cf6bd2ee0098e6eed9261198f55d0b9 | [
"MIT"
] | null | null | null | src/MeshDataBuffer.cpp | jaredmulconry/GLProj | 722fc9804cf6bd2ee0098e6eed9261198f55d0b9 | [
"MIT"
] | null | null | null | #include "MeshDataBuffer.hpp"
#include "GLFW/glfw3.h"
namespace GlProj
{
namespace Graphics
{
MeshDataBuffer::MeshDataBuffer(BufferType bufferType, GLsizeiptr dataSize, const GLvoid* data,
GLenum dataType, GLint elemsPerVert, BufferUsage usage)
: bufferType(GLenum(bufferType))
, dataType(dataType)... | 26.95098 | 107 | 0.719534 | jaredmulconry |
85cd11adad48cfa373d705f644b8c537794fde31 | 7,135 | cc | C++ | test/web/test_parser.cc | protocolocon/nanoWeb | a89b3f9d9c9b7421a5005971565795519728f31b | [
"BSD-2-Clause"
] | null | null | null | test/web/test_parser.cc | protocolocon/nanoWeb | a89b3f9d9c9b7421a5005971565795519728f31b | [
"BSD-2-Clause"
] | null | null | null | test/web/test_parser.cc | protocolocon/nanoWeb | a89b3f9d9c9b7421a5005971565795519728f31b | [
"BSD-2-Clause"
] | null | null | null | /* -*- mode: c++; coding: utf-8; c-file-style: "stroustrup"; -*-
Contributors: Asier Aguirre
All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE.txt file.
*/
#include "catch.hpp"
#include "ml_parser.h"
#define _ "\n"
#define DUMP(x, ...) ... | 30.361702 | 68 | 0.55417 | protocolocon |
85cfdef4c6e0b72a70a5a5674f7cb49381df7379 | 4,605 | cpp | C++ | Sources/RealSense/Microsoft.Psi.RealSense_Interop.Windows.x64/RealSenseDeviceUnmanaged.cpp | pat-sweeney/psi | 273b6d442821cc9942953ea6b51cfcff0edda11f | [
"MIT"
] | 332 | 2019-05-10T20:30:40.000Z | 2022-03-14T08:42:33.000Z | Sources/RealSense/Microsoft.Psi.RealSense_Interop.Windows.x64/RealSenseDeviceUnmanaged.cpp | pat-sweeney/psi | 273b6d442821cc9942953ea6b51cfcff0edda11f | [
"MIT"
] | 117 | 2019-06-12T21:13:03.000Z | 2022-03-19T00:32:20.000Z | Sources/RealSense/Microsoft.Psi.RealSense_Interop.Windows.x64/RealSenseDeviceUnmanaged.cpp | pat-sweeney/psi | 273b6d442821cc9942953ea6b51cfcff0edda11f | [
"MIT"
] | 73 | 2019-05-08T21:39:06.000Z | 2022-03-24T08:34:26.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "RealSenseDeviceUnmanaged.h"
#include "librealsense2\h\rs_sensor.h"
#pragma managed(push, off)
RealSenseDeviceUnmanaged::RealSenseDeviceUnmanaged()
{
refCount = 0;
}
RealSenseDeviceUnmanaged::~RealSenseDeviceUnm... | 24.365079 | 144 | 0.686862 | pat-sweeney |
85d8971a1c6bc4ddede096086254af866af86abd | 4,427 | hpp | C++ | Firmware/communication/can/can_simple.hpp | takijo0116/ODrive | 4c01d0bff2a1c4a67e0f9979c9797b846f5de5d2 | [
"MIT"
] | 1 | 2021-06-08T13:10:27.000Z | 2021-06-08T13:10:27.000Z | Firmware/communication/can/can_simple.hpp | takijo0116/ODrive | 4c01d0bff2a1c4a67e0f9979c9797b846f5de5d2 | [
"MIT"
] | null | null | null | Firmware/communication/can/can_simple.hpp | takijo0116/ODrive | 4c01d0bff2a1c4a67e0f9979c9797b846f5de5d2 | [
"MIT"
] | null | null | null | #ifndef __CAN_SIMPLE_HPP_
#define __CAN_SIMPLE_HPP_
#include <interfaces/canbus.hpp>
#include "axis.hpp"
class CANSimple {
public:
enum {
MSG_CO_NMT_CTRL = 0x000, // CANOpen NMT Message REC
MSG_ODRIVE_HEARTBEAT,
MSG_ODRIVE_ESTOP,
MSG_GET_MOTOR_ERROR, // Errors
MSG_GET_... | 38.833333 | 139 | 0.727355 | takijo0116 |
85e3a224111597a9bf265290809deab4b227b0c2 | 9,112 | cpp | C++ | SVEngine/src/node/SVScene.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 34 | 2018-09-28T08:28:27.000Z | 2022-01-15T10:31:41.000Z | SVEngine/src/node/SVScene.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | null | null | null | SVEngine/src/node/SVScene.cpp | SVEChina/SVEngine | 56174f479a3096e57165448142c1822e7db8c02f | [
"MIT"
] | 8 | 2018-10-11T13:36:35.000Z | 2021-04-01T09:29:34.000Z | //
// SVScene.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVScene.h"
#include "SVCameraNode.h"
#include "SVNode.h"
#include "SVNodeVisit.h"
#include "../app/SVGlobalMgr.h"
#include "../app/SVGlobalParam.h"
#include "../basesys/SVStaticData.h"
#incl... | 26.259366 | 119 | 0.605685 | SVEChina |
85e7b434e4ae6c6d34529f621c507473dfc60304 | 1,067 | hpp | C++ | include/edlib/Hamiltonians/TITFIsing.hpp | chaeyeunpark/ExactDiagonalization | c93754e724486cc68453399c5dda6a2dadf45cb8 | [
"MIT"
] | 1 | 2021-04-24T08:47:05.000Z | 2021-04-24T08:47:05.000Z | include/edlib/Hamiltonians/TITFIsing.hpp | chaeyeunpark/ExactDiagonalization | c93754e724486cc68453399c5dda6a2dadf45cb8 | [
"MIT"
] | 1 | 2021-09-28T19:02:14.000Z | 2021-09-28T19:02:14.000Z | include/edlib/Hamiltonians/TITFIsing.hpp | chaeyeunpark/ExactDiagonalization | c93754e724486cc68453399c5dda6a2dadf45cb8 | [
"MIT"
] | 1 | 2020-03-22T18:59:11.000Z | 2020-03-22T18:59:11.000Z | #ifndef ED_TITFI_HPP
#define ED_TITFI_HPP
#include <cstdint>
#include <cassert>
#include <algorithm>
#include <map>
#include <boost/dynamic_bitset.hpp>
//#include "BitOperations.h"
#include "../Basis/AbstractBasis1D.hpp"
template<typename UINT>
class TITFIsing
{
private:
const edlib::AbstractBasis1D<UINT>& basis_;
d... | 18.084746 | 73 | 0.618557 | chaeyeunpark |
85e909132693dfd1cd383f02695d85108c993a7b | 1,182 | hpp | C++ | src/nxt_ipc.hpp | syldrathecat/nxtlauncher | 9856999bed2531067a44a319a8b37f726d2ffb0a | [
"Unlicense"
] | 13 | 2016-09-15T23:04:48.000Z | 2021-02-27T01:42:31.000Z | src/nxt_ipc.hpp | syldrathecat/nxtlauncher | 9856999bed2531067a44a319a8b37f726d2ffb0a | [
"Unlicense"
] | 13 | 2017-04-22T16:00:07.000Z | 2020-10-13T18:18:29.000Z | src/nxt_ipc.hpp | syldrathecat/nxtlauncher | 9856999bed2531067a44a319a8b37f726d2ffb0a | [
"Unlicense"
] | 2 | 2016-09-15T19:49:24.000Z | 2018-12-28T03:11:50.000Z | #ifndef NXT_IPC_HPP
#define NXT_IPC_HPP
#include "nxt_fifo.hpp"
#include "nxt_message.hpp"
#include <functional>
#include <map>
// Creates and manages a pair of named pipes for communicating with the client
class nxt_ipc
{
public:
using handler_t = std::function<void(nxt_message&)>;
private:
nxt_fifo m_fifo_i... | 23.64 | 78 | 0.733503 | syldrathecat |
85f1f0920a744c4e5ecaada128864ecc85a924ea | 982 | cc | C++ | kraken/resources/home/dnanexus/jellyfish-1.1.11/jellyfish/dna_codes.cc | transcript/DNAnexus_apps | 12c2ba6f57b805a9fcf6e1da4f9d64394ef72256 | [
"MIT"
] | 3 | 2015-11-20T19:40:29.000Z | 2019-07-25T15:34:24.000Z | kraken/resources/home/dnanexus/jellyfish-1.1.11/jellyfish/dna_codes.cc | transcript/DNAnexus_apps | 12c2ba6f57b805a9fcf6e1da4f9d64394ef72256 | [
"MIT"
] | null | null | null | kraken/resources/home/dnanexus/jellyfish-1.1.11/jellyfish/dna_codes.cc | transcript/DNAnexus_apps | 12c2ba6f57b805a9fcf6e1da4f9d64394ef72256 | [
"MIT"
] | 2 | 2018-09-20T08:28:36.000Z | 2019-03-06T06:26:52.000Z | #include <jellyfish/dna_codes.hpp>
#define R -1
#define I -2
#define O -3
#define A 0
#define C 1
#define G 2
#define T 3
const char jellyfish::dna_codes[256] = {
O, O, O, O, O, O, O, O, O, O, I, O, O, O, O, O,
O, O, O, O, O, O, O, O, O, O, O, O, O, O, O, O,
O, O, O, O, O, O, O, O, O, O, O, O, O, R, O, O,
O... | 33.862069 | 50 | 0.376782 | transcript |
85f21279c2ed92b54cf93e1bc15da260fe5fffc6 | 7,756 | hpp | C++ | include/GlobalNamespace/LocalNetworkPlayersViewController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/LocalNetworkPlayersViewController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/LocalNetworkPlayersViewController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: NetworkPlayersViewController
#include "GlobalNamespace/NetworkPlayersV... | 52.405405 | 675 | 0.746648 | darknight1050 |
85fa1b1b64a0a9bf281e92dcf003ea04f2beab63 | 7,853 | cpp | C++ | obliczanie-wieku/AgeCalculator.cpp | MHellFire/random-stuff | f8d05af9019df67fcf7164a3b716e4db17d18e6a | [
"MIT"
] | null | null | null | obliczanie-wieku/AgeCalculator.cpp | MHellFire/random-stuff | f8d05af9019df67fcf7164a3b716e4db17d18e6a | [
"MIT"
] | null | null | null | obliczanie-wieku/AgeCalculator.cpp | MHellFire/random-stuff | f8d05af9019df67fcf7164a3b716e4db17d18e6a | [
"MIT"
] | null | null | null | /*********************************************************************************
* This file is part of Age Calculator. *
* *
* Copyright © 2019 Mariusz Helfajer ... | 41.771277 | 132 | 0.517255 | MHellFire |
85fc290a665174108915a6b4f77f7fc8b8808d7b | 459 | hpp | C++ | src/app.hpp | trazfr/alarm | ea511eb0f16945de2005d828f452c76fce9d77e7 | [
"MIT"
] | null | null | null | src/app.hpp | trazfr/alarm | ea511eb0f16945de2005d828f452c76fce9d77e7 | [
"MIT"
] | null | null | null | src/app.hpp | trazfr/alarm | ea511eb0f16945de2005d828f452c76fce9d77e7 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
/**
* @brief Represents the whole application
*/
class App
{
public:
struct Impl;
/**
* @attention the class keeps a reference to constructor's arguments. Make sure they stay valid
*/
explicit App(const char *configurationFile);
~App();
/**
* Runs ... | 15.827586 | 99 | 0.614379 | trazfr |
85fe846c064c03a415db9da5779bc34a873d8e03 | 436 | cpp | C++ | matrix_using_array.cpp | xeroxzen/C-Crash-Course | d394d6d91f4f0126b3742a9d11abc129f3daaeb4 | [
"MIT"
] | 1 | 2022-02-09T00:47:25.000Z | 2022-02-09T00:47:25.000Z | matrix_using_array.cpp | xeroxzen/C-Crash-Course | d394d6d91f4f0126b3742a9d11abc129f3daaeb4 | [
"MIT"
] | null | null | null | matrix_using_array.cpp | xeroxzen/C-Crash-Course | d394d6d91f4f0126b3742a9d11abc129f3daaeb4 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
//Declare a 2 dimensional array of a 3x3 matrix
//Each matrix element has a value of 1 or 0
int matrix[3][3] = {
{1, 0, 1},
{0, 1, 0},
{1, 0, 1}
};
//print out the matrix
for (int i = 0; i < 3; i++) {
for (int... | 20.761905 | 51 | 0.444954 | xeroxzen |
85ff51c427c7553b4d4520a5dca730d35c5948db | 917 | cpp | C++ | fenwick_tree/coder_rating.cpp | ankit2001/CP_Algos | eadc0f9cd92a5a01791e3171dfe894e6db948b2b | [
"MIT"
] | 1 | 2020-08-11T17:50:01.000Z | 2020-08-11T17:50:01.000Z | fenwick_tree/coder_rating.cpp | ankit2001/CP_Algos | eadc0f9cd92a5a01791e3171dfe894e6db948b2b | [
"MIT"
] | null | null | null | fenwick_tree/coder_rating.cpp | ankit2001/CP_Algos | eadc0f9cd92a5a01791e3171dfe894e6db948b2b | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ll long long int
using namespace std;
#define F first
#define S second
void update(ll index, vector<ll> &BIT){
for(ll i=index;i<=100000;i+=i&(-i)){
BIT[i]++;
}
}
ll query(ll index, vector<ll> &BIT){
ll count=0;
for(ll i=index;i>0;i-=i&(-i)){
count+=BIT[i];
}
return count... | 17.634615 | 68 | 0.485278 | ankit2001 |
65a0b02f10bf6c385424cfdc0344cdf983b4fa58 | 1,352 | hpp | C++ | render_view.hpp | piccolo255/pde-pathtracer | d754583a308975b68675076f68f1194cbaa906ca | [
"Unlicense"
] | null | null | null | render_view.hpp | piccolo255/pde-pathtracer | d754583a308975b68675076f68f1194cbaa906ca | [
"Unlicense"
] | null | null | null | render_view.hpp | piccolo255/pde-pathtracer | d754583a308975b68675076f68f1194cbaa906ca | [
"Unlicense"
] | null | null | null | #ifndef RENDER_VIEW_HPP
#define RENDER_VIEW_HPP
// Qt includes
#include <QWidget>
#include <QPainter>
#include <QList>
#include <QMap>
// C++ includes
// math expression parsing header
#include "muParser.h"
// Local includes
#include "ode_pathtracer.hpp"
class RenderView : public QWidget
{
Q_OBJECT
public:
e... | 21.460317 | 77 | 0.674556 | piccolo255 |
65a34c65c61e56339bec1735c5007ea2009e2588 | 853 | cpp | C++ | dark_roads.cpp | mvgmb/Marathon | 0dcc428a5e6858e2427fb40cefbd7453d1abcdb5 | [
"Xnet",
"X11"
] | null | null | null | dark_roads.cpp | mvgmb/Marathon | 0dcc428a5e6858e2427fb40cefbd7453d1abcdb5 | [
"Xnet",
"X11"
] | null | null | null | dark_roads.cpp | mvgmb/Marathon | 0dcc428a5e6858e2427fb40cefbd7453d1abcdb5 | [
"Xnet",
"X11"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int parent[200005];
int size[200005];
vector<tuple<int,int,int> > lis;
int find(int x) {
if(x != parent[x]) parent[x] = find(parent[x]);
return parent[x];
}
bool same(int a, int b) {
return find(a) == find(b);
}
void unite(int a,int b) {
a = find(a);
b = find(b);
... | 16.403846 | 48 | 0.494725 | mvgmb |
65a4e8c1c6e529c6cdc1a015ccca4a644b955680 | 279 | cpp | C++ | Codeforces Online Judge Solve/all divs/main (9).cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/all divs/main (9).cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | Codeforces Online Judge Solve/all divs/main (9).cpp | Remonhasan/programming-solve | 5a4ac8c738dd361e1c974162e0eaebbaae72fd80 | [
"Apache-2.0"
] | null | null | null | /*last time Tumi ami from uap*/
#include <iostream>
using namespace std;
typedef long long ll;
int main() {
ll a,ami;
cin>>a>>ami;
ll tumi=a;
ll taka=0;
while(tumi<ami){
tumi*=a;
taka++;
}
if(tumi==ami)
cout<<"YES"<<endl<<taka;
else
cout<<"NO";
return 0;
}
| 13.285714 | 31 | 0.598566 | Remonhasan |
65acc90ed1a5c8e334436ca0894d3f2b89478da0 | 23,489 | hpp | C++ | include/ak_toolkit/markable.hpp | akrzemi1/markable | fc435319fb32ed5753e6ae6762f78d98e0d33c73 | [
"BSL-1.0"
] | 82 | 2016-03-12T11:53:55.000Z | 2022-02-17T15:18:02.000Z | include/ak_toolkit/markable.hpp | akrzemi1/markable | fc435319fb32ed5753e6ae6762f78d98e0d33c73 | [
"BSL-1.0"
] | 10 | 2016-03-12T13:53:49.000Z | 2020-12-17T22:20:16.000Z | include/ak_toolkit/markable.hpp | akrzemi1/markable | fc435319fb32ed5753e6ae6762f78d98e0d33c73 | [
"BSL-1.0"
] | 11 | 2016-09-01T15:53:32.000Z | 2021-09-28T15:51:32.000Z | // Copyright (C) 2015-2021 Andrzej Krzemienski.
//
// Use, modification, and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef AK_TOOLBOX_COMPACT_OPTIONAL_HEADER_GUARD_
#define AK_TOOLBOX_COMPACT_OPT... | 33.036568 | 154 | 0.726255 | akrzemi1 |
65afd1192c8f3c63a733e303442998fd22a9fc21 | 1,130 | hpp | C++ | src/game-objects/turret.hpp | Blackhawk-TA/TowerDefense | db852a65cae9579074e435fb0245fd9b69fb720d | [
"MIT"
] | 1 | 2022-01-02T15:02:09.000Z | 2022-01-02T15:02:09.000Z | src/game-objects/turret.hpp | Blackhawk-TA/TowerDefense | db852a65cae9579074e435fb0245fd9b69fb720d | [
"MIT"
] | null | null | null | src/game-objects/turret.hpp | Blackhawk-TA/TowerDefense | db852a65cae9579074e435fb0245fd9b69fb720d | [
"MIT"
] | 1 | 2021-05-02T18:25:51.000Z | 2021-05-02T18:25:51.000Z | //
// Created by Daniel Peters on 08.04.21.
//
#pragma once
#include "../utils/utils.hpp"
using namespace blit;
class Turret {
public:
explicit Turret(Point position, TurretFacingDirection facing_direction);
void draw();
Rect get_rectangle() const;
TurretFacingDirection get_facing_direction();
uint8_t get_damag... | 27.560976 | 87 | 0.761947 | Blackhawk-TA |
65b4ff162151685abad28b68ececdc12f4190c3b | 1,347 | hpp | C++ | stan/math/prim/fun/pow.hpp | bayesmix-dev/math | 3616f7195adc95ef8e719a2af845d61102bc9272 | [
"BSD-3-Clause"
] | 1 | 2020-06-14T14:33:37.000Z | 2020-06-14T14:33:37.000Z | stan/math/prim/fun/pow.hpp | bayesmix-dev/math | 3616f7195adc95ef8e719a2af845d61102bc9272 | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/fun/pow.hpp | bayesmix-dev/math | 3616f7195adc95ef8e719a2af845d61102bc9272 | [
"BSD-3-Clause"
] | 1 | 2020-05-10T12:55:07.000Z | 2020-05-10T12:55:07.000Z | #ifndef STAN_MATH_PRIM_FUN_POW_HPP
#define STAN_MATH_PRIM_FUN_POW_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/functor/apply_scalar_binary.hpp>
#include <cmath>
#include <complex>
namespace stan {
namespace math {
namespace internal {
/**
* Return the ... | 26.411765 | 79 | 0.709725 | bayesmix-dev |
65b6e02cc3a10b30145392598890c316458aa999 | 641 | cpp | C++ | Sunny-Core/01_FRAMEWORK/graphics/ModelManager.cpp | adunStudio/Sunny | 9f71c1816aa62bbc0d02d2f8d6414f4bf9aee7e7 | [
"Apache-2.0"
] | 20 | 2018-01-19T06:28:36.000Z | 2021-08-06T14:06:13.000Z | Sunny-Core/01_FRAMEWORK/graphics/ModelManager.cpp | adunStudio/Sunny | 9f71c1816aa62bbc0d02d2f8d6414f4bf9aee7e7 | [
"Apache-2.0"
] | null | null | null | Sunny-Core/01_FRAMEWORK/graphics/ModelManager.cpp | adunStudio/Sunny | 9f71c1816aa62bbc0d02d2f8d6414f4bf9aee7e7 | [
"Apache-2.0"
] | 3 | 2019-01-29T08:58:04.000Z | 2021-01-02T06:33:20.000Z | #include "ModelManager.h"
namespace sunny
{
namespace graphics
{
std::map<std::string, Model*> ModelManager::s_map;
Model* ModelManager::Add(const::std::string& name, Model* Model)
{
s_map[name] = Model;
return Model;
}
void ModelManager::Clean()
{
for (auto it = s_map.begin(); it != s_map... | 16.435897 | 66 | 0.599064 | adunStudio |
65c87d7b4a07e75b0d89fbd8d6e9c91e2fc6b6b7 | 1,405 | cpp | C++ | CloudDisk_Client/httpresponse.cpp | G-Club/c-cpp | e89f8efae357fc8349d0d66f1aef703a6a287bef | [
"Apache-2.0"
] | null | null | null | CloudDisk_Client/httpresponse.cpp | G-Club/c-cpp | e89f8efae357fc8349d0d66f1aef703a6a287bef | [
"Apache-2.0"
] | 1 | 2017-02-07T00:49:21.000Z | 2017-02-16T00:55:28.000Z | CloudDisk_Client/httpresponse.cpp | G-Club/c-cpp | e89f8efae357fc8349d0d66f1aef703a6a287bef | [
"Apache-2.0"
] | null | null | null | #include "httpresponse.h"
HttpResponse::HttpResponse()
{
}
HttpResponse HttpResponse::FromByteArray(QByteArray &format)
{
/*
HTTP/1.1 200 OK\r\nServer: nginx/1.10.1\r\nDate: Sat, 29 Jul 2017 00:41:44 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\n\r\n27\r\n{\"status\":2... | 19.513889 | 235 | 0.648399 | G-Club |
65ca00f755a60e996fd58344181d3d3ed0424b23 | 5,916 | cpp | C++ | meeting-qt/setup/src/dui/Core/Placeholder.cpp | GrowthEase/- | 5cc7cab95fc309049de8023ff618219dff22d773 | [
"MIT"
] | 48 | 2022-03-02T07:15:08.000Z | 2022-03-31T08:37:33.000Z | meeting-qt/setup/src/dui/Core/Placeholder.cpp | chandarlee/Meeting | 9350fdea97eb2cdda28b8bffd9c4199de15460d9 | [
"MIT"
] | 1 | 2022-02-16T01:54:05.000Z | 2022-02-16T01:54:05.000Z | meeting-qt/setup/src/dui/Core/Placeholder.cpp | chandarlee/Meeting | 9350fdea97eb2cdda28b8bffd9c4199de15460d9 | [
"MIT"
] | 9 | 2022-03-01T13:41:37.000Z | 2022-03-10T06:05:23.000Z | /**
* @copyright Copyright (c) 2021 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be found in the LICENSE file.
*/
#include "StdAfx.h"
namespace ui
{
PlaceHolder::PlaceHolder()
{
}
PlaceHolder::~PlaceHolder()
{
}
std::wstring PlaceHolder::GetNa... | 17.298246 | 111 | 0.686782 | GrowthEase |
65cca26ab81c68c2201bde3223830ec49d11faa7 | 7,042 | cc | C++ | google/cloud/storage/status_or_test.cc | roopak-qlogic/google-cloud-cpp | ed129e4c955e99d4dacb822503d95e374605c438 | [
"Apache-2.0"
] | null | null | null | google/cloud/storage/status_or_test.cc | roopak-qlogic/google-cloud-cpp | ed129e4c955e99d4dacb822503d95e374605c438 | [
"Apache-2.0"
] | null | null | null | google/cloud/storage/status_or_test.cc | roopak-qlogic/google-cloud-cpp | ed129e4c955e99d4dacb822503d95e374605c438 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 31.159292 | 77 | 0.668986 | roopak-qlogic |
65d1b0b9ce08319e680aae4a187667943a9a6bd4 | 811 | hpp | C++ | src/morda/widgets/label/MouseCursor.hpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | 1 | 2018-10-27T05:07:05.000Z | 2018-10-27T05:07:05.000Z | src/morda/widgets/label/MouseCursor.hpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | null | null | null | src/morda/widgets/label/MouseCursor.hpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | null | null | null | #pragma once
#include "../Widget.hpp"
#include "../../res/ResCursor.hpp"
namespace morda{
/**
* @brief Mouse cursor widget.
* This widget displays mouse cursor.
* From GUI script this widget can be instantiated as "MouseCursor".
*
* @param cursor - reference to cursor resource.
*/
class MouseCursor : virtua... | 21.918919 | 72 | 0.731196 | Mactor2018 |
65e402da66d18090a23b95180787d18a0806e7a0 | 1,619 | hpp | C++ | CPP_Module_06/ex01/Serialize.hpp | Victor-Akio/CPP-42 | e6d64e4820ad31ae2cb353a4020d2acb8b5280eb | [
"MIT"
] | null | null | null | CPP_Module_06/ex01/Serialize.hpp | Victor-Akio/CPP-42 | e6d64e4820ad31ae2cb353a4020d2acb8b5280eb | [
"MIT"
] | null | null | null | CPP_Module_06/ex01/Serialize.hpp | Victor-Akio/CPP-42 | e6d64e4820ad31ae2cb353a4020d2acb8b5280eb | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Serialize.hpp :+: :+: :+: ... | 46.257143 | 106 | 0.408894 | Victor-Akio |
65eb378757f196f1b0242237bbf7b0aab25022d1 | 1,112 | cpp | C++ | tugasMonteCarlo/tugasMonteCarlo-20912008-20912009/montePi.cpp | ridlo/kuliah_sains_komputasi | 83cd50857db2446bb41b78698a47a060e0eca5d8 | [
"MIT"
] | null | null | null | tugasMonteCarlo/tugasMonteCarlo-20912008-20912009/montePi.cpp | ridlo/kuliah_sains_komputasi | 83cd50857db2446bb41b78698a47a060e0eca5d8 | [
"MIT"
] | null | null | null | tugasMonteCarlo/tugasMonteCarlo-20912008-20912009/montePi.cpp | ridlo/kuliah_sains_komputasi | 83cd50857db2446bb41b78698a47a060e0eca5d8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <fstream>
#include <stdlib.h>
#include <time.h>
using namespace std;
double unirand()
{
return (double) rand()/ (double) RAND_MAX;
}
int main()
{
double pi, x, y, r;
unsigned int N=0, Ntot;
ofstream outfile;
outfile.open("rnd-pi.txt");
... | 22.24 | 78 | 0.522482 | ridlo |
65ec377cfee6e4d0b9d9cdac2342a92ccfa6aa3b | 14,844 | hpp | C++ | pennylane_lightning_gpu/src/util/cuda_helpers.hpp | PennyLaneAI/pennylane-lightning-gpu | 1b2a361f68c8580457e61cc706d644c4cbfe04ad | [
"Apache-2.0"
] | 9 | 2022-03-14T15:18:08.000Z | 2022-03-30T03:05:36.000Z | pennylane_lightning_gpu/src/util/cuda_helpers.hpp | PennyLaneAI/pennylane-lightning-gpu | 1b2a361f68c8580457e61cc706d644c4cbfe04ad | [
"Apache-2.0"
] | 6 | 2022-03-18T13:44:10.000Z | 2022-03-31T22:07:25.000Z | pennylane_lightning_gpu/src/util/cuda_helpers.hpp | PennyLaneAI/pennylane-lightning-gpu | 1b2a361f68c8580457e61cc706d644c4cbfe04ad | [
"Apache-2.0"
] | null | null | null | // Adapted from JET: https://github.com/XanaduAI/jet.git
// and from Lightning: https://github.com/PennylaneAI/pennylane-lightning.git
#pragma once
#include <algorithm>
#include <numeric>
#include <type_traits>
#include <vector>
#include <cuComplex.h>
#include <cublas_v2.h>
#include <cuda.h>
#include <custatevec.h>
... | 31.119497 | 80 | 0.651846 | PennyLaneAI |
65ed7938ab2812c404caebb3d26a88d4f07e2ff5 | 1,858 | cpp | C++ | examples/CherryPicker/general_example.cpp | allison-group/indigox | 22657cb3ceb888049cc231e73d18fb2eac099604 | [
"MIT"
] | 7 | 2019-11-24T15:51:37.000Z | 2021-10-02T05:18:42.000Z | examples/CherryPicker/general_example.cpp | allison-group/indigox | 22657cb3ceb888049cc231e73d18fb2eac099604 | [
"MIT"
] | 2 | 2018-12-17T00:55:32.000Z | 2019-10-11T01:47:04.000Z | examples/CherryPicker/general_example.cpp | allison-group/indigox | 22657cb3ceb888049cc231e73d18fb2eac099604 | [
"MIT"
] | 2 | 2019-10-21T01:26:56.000Z | 2019-12-02T00:00:42.000Z | //
// C++ example that imports a molecule from an outputted binary (which you can produce from python with indigox.SaveMolecule)
// This example has CalculateElectrons on, so it will calculate formal charges and bond orders.
// Relies on the Python example having been run first so there is an Athenaeum to match the mol... | 41.288889 | 125 | 0.777718 | allison-group |
65eecaa7eecf4b5dfad13c5cc46fe6e749fea72f | 3,007 | hpp | C++ | Include/LibYT/Concepts.hpp | MalteDoemer/YeetOS2 | 82be488ec1ed13e6558af4e248977dad317b3b85 | [
"BSD-2-Clause"
] | null | null | null | Include/LibYT/Concepts.hpp | MalteDoemer/YeetOS2 | 82be488ec1ed13e6558af4e248977dad317b3b85 | [
"BSD-2-Clause"
] | null | null | null | Include/LibYT/Concepts.hpp | MalteDoemer/YeetOS2 | 82be488ec1ed13e6558af4e248977dad317b3b85 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2021 Malte Dömer
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclai... | 29.480392 | 81 | 0.736615 | MalteDoemer |
65f4694160beffb076d12e39d59639ef6df2e43d | 1,073 | cpp | C++ | AzureClient/AzureClient/EventHub.cpp | Ashish-Me2/Arduino-ESP8266-AzureIoTHub-MQTT-CameraMonitoring | 695ca226ca0b9331a516573376323d71afb08f35 | [
"MIT"
] | 3 | 2019-05-22T22:03:50.000Z | 2020-11-25T11:56:38.000Z | AzureClient/AzureClient/EventHub.cpp | Ashish-Me2/Arduino-ESP8266-AzureIoTHub-MQTT-CameraMonitoring | 695ca226ca0b9331a516573376323d71afb08f35 | [
"MIT"
] | null | null | null | AzureClient/AzureClient/EventHub.cpp | Ashish-Me2/Arduino-ESP8266-AzureIoTHub-MQTT-CameraMonitoring | 695ca226ca0b9331a516573376323d71afb08f35 | [
"MIT"
] | null | null | null | #include "EventHub.h"
String Eventhub::createSas(char *key, String url){
// START: Create SAS
// https://azure.microsoft.com/en-us/documentation/articles/service-bus-sas-overview/
// Where to get seconds since the epoch: local service, SNTP, RTC
sasExpiryTime = now() + sasExpiryPeriodInSeconds;
String... | 29.805556 | 100 | 0.698043 | Ashish-Me2 |
65f5030cb99991738a96f16d0715dee55bc429ea | 2,490 | hpp | C++ | src/key/key_wallet.hpp | feitebi/main-chain | d4f2c4bb99b083d6162614a9a6b684c66ddf5d88 | [
"MIT"
] | 1 | 2018-01-17T05:08:32.000Z | 2018-01-17T05:08:32.000Z | src/key/key_wallet.hpp | feitebi/main-chain | d4f2c4bb99b083d6162614a9a6b684c66ddf5d88 | [
"MIT"
] | null | null | null | src/key/key_wallet.hpp | feitebi/main-chain | d4f2c4bb99b083d6162614a9a6b684c66ddf5d88 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2013-2014 John Connor (BM-NC49AxAjcqVcF5jNPu85Rb8MJ2d9JqZt)
*
* This file is part of coinpp.
*
* coinpp is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
... | 24.653465 | 76 | 0.51245 | feitebi |
65f78b8241e1cdf7e3674e5b1cf8e06515e1c5ba | 1,476 | cpp | C++ | test/test_dumpFHESetting.cpp | fionser/MDLHElib | 3c686ab35d7b26a893213a6e9d4249cd46c2969d | [
"MIT"
] | 5 | 2017-01-16T06:20:07.000Z | 2018-05-17T12:36:34.000Z | test/test_dumpFHESetting.cpp | fionser/MDLHElib | 3c686ab35d7b26a893213a6e9d4249cd46c2969d | [
"MIT"
] | null | null | null | test/test_dumpFHESetting.cpp | fionser/MDLHElib | 3c686ab35d7b26a893213a6e9d4249cd46c2969d | [
"MIT"
] | 2 | 2017-08-26T13:16:35.000Z | 2019-03-15T02:08:20.000Z | #include "utils/FHEUtils.hpp"
#include "utils/timer.hpp"
#include "fhe/EncryptedArray.h"
#include <string>
#include "algebra/NDSS.h"
void test_load(long m, long p, long r, long L)
{
MDL::Timer timer;
std::string path("fhe_setting");
timer.start();
FHEcontext context(m, p, r);
timer.end();
prin... | 23.0625 | 66 | 0.573171 | fionser |
65f7ae9a8d8b474c1e1ec8bb2150a22ff8451fb6 | 1,762 | cpp | C++ | moon-src/luabind/lua_http.cpp | leefy4415/moon | 2a2005306e9a685a6af899a0daae9c53603b38e4 | [
"MIT"
] | 1 | 2020-09-22T01:57:54.000Z | 2020-09-22T01:57:54.000Z | moon-src/luabind/lua_http.cpp | leefy4415/moon | 2a2005306e9a685a6af899a0daae9c53603b38e4 | [
"MIT"
] | null | null | null | moon-src/luabind/lua_http.cpp | leefy4415/moon | 2a2005306e9a685a6af899a0daae9c53603b38e4 | [
"MIT"
] | null | null | null | #include "sol/sol.hpp"
#include "common/http_util.hpp"
using namespace moon;
static sol::table bind_http(sol::this_state L)
{
sol::state_view lua(L);
sol::table module = lua.create_table();
module.set_function("parse_request", [](std::string_view data) {
std::string_view method;
std::stri... | 32.036364 | 105 | 0.658343 | leefy4415 |
65fa36eff75fb1297b6d8f4576e3411c7e51c17c | 4,952 | cpp | C++ | modules/attention_segmentation/src/Texture.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | modules/attention_segmentation/src/Texture.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | modules/attention_segmentation/src/Texture.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | /****************************************************************************
**
** Copyright (C) 2017 TU Wien, ACIN, Vision 4 Robotics (V4R) group
** Contact: v4r.acin.tuwien.ac.at
**
** This file is part of V4R
**
** V4R is distributed under dual licenses - GPLv3 or closed source.
**
** GNU General Public License Usa... | 28.45977 | 98 | 0.625606 | v4r-tuwien |
65faebe41985ba4358f801d511d4a70b4b67e77d | 218 | cc | C++ | versus/go/01-lambdas/capture.cc | JohnMurray/cpp-vs | def49c416b5abf161241e7c1d8b41e6b01fb8cac | [
"Apache-2.0"
] | 10 | 2018-05-07T03:00:00.000Z | 2022-03-14T14:26:27.000Z | versus/ruby/01-lambda/capture.cc | JohnMurray/cpp-vs | def49c416b5abf161241e7c1d8b41e6b01fb8cac | [
"Apache-2.0"
] | 35 | 2018-05-26T16:01:58.000Z | 2022-03-30T22:39:33.000Z | versus/ruby/01-lambda/capture.cc | JohnMurray/cpp-vs | def49c416b5abf161241e7c1d8b41e6b01fb8cac | [
"Apache-2.0"
] | 1 | 2018-07-17T12:47:24.000Z | 2018-07-17T12:47:24.000Z | #include <functional>
template<typename T>
std::function<T(T)> addX(T x) {
return [x](T n) -> T {
return n + x;
};
}
int main() {
auto addFive = addX<int>(5);
addFive(10);
// returns 15
} | 14.533333 | 32 | 0.527523 | JohnMurray |
65ffc9b0a240192ee6b9cc3dfd054327cc20d6cc | 2,356 | cpp | C++ | Engine/src/Render/Camera/icMaxCam.cpp | binofet/ice | dee91da76df8b4f46ed4727d901819d8d20aefe3 | [
"MIT"
] | null | null | null | Engine/src/Render/Camera/icMaxCam.cpp | binofet/ice | dee91da76df8b4f46ed4727d901819d8d20aefe3 | [
"MIT"
] | null | null | null | Engine/src/Render/Camera/icMaxCam.cpp | binofet/ice | dee91da76df8b4f46ed4727d901819d8d20aefe3 | [
"MIT"
] | null | null | null |
#include "Render/Camera/icMaxCam.h"
#include "Core/IO/icInput.h"
#include "Math/Matrix/icMatrix44.h"
icMaxCam::icMaxCam( void )
{
m_rZoom = 100.0f;
m_rXrot = 0.0f;
m_rYrot = 0.0f;
m_rZoomMin = 50.0f;
m_rZoomMax = 500.0f;
m_v3Center.Set(0.0f,0.0f,0.0f);
bEnableInput = true;
}
icMaxCam... | 26.47191 | 102 | 0.547114 | binofet |
5a0052e98e648bb4eb323ab2d2191dcca614cd58 | 965 | cpp | C++ | workdir/ScopeAnalysis/LORAnalysis/SDAEstimateTOFCalib.cpp | wictus/oldScopeAnalysis | e8a15f11c504c1a1a880d4a5096cdbfac0edf2de | [
"MIT"
] | null | null | null | workdir/ScopeAnalysis/LORAnalysis/SDAEstimateTOFCalib.cpp | wictus/oldScopeAnalysis | e8a15f11c504c1a1a880d4a5096cdbfac0edf2de | [
"MIT"
] | null | null | null | workdir/ScopeAnalysis/LORAnalysis/SDAEstimateTOFCalib.cpp | wictus/oldScopeAnalysis | e8a15f11c504c1a1a880d4a5096cdbfac0edf2de | [
"MIT"
] | null | null | null | #include "./SDAEstimateTOFCalib.h"
SDAEstimateTOFCalib::SDAEstimateTOFCalib(const char* name, const char* title,
const char* in_file_suffix, const char* out_file_suffix, const double threshold) : JPetCommonAnalysisModule( name, title, in_file_suffix, out_file_suffix )
{
fSelectedThreshold = threshold;
... | 21.444444 | 170 | 0.674611 | wictus |
5a08229b925f117033174e8422230e6102f958af | 1,884 | cpp | C++ | Algorithms/0047.PermutationsII/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0047.PermutationsII/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/0047.PermutationsII/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
#include "gtest/gtest.h"
namespace
{
class Solution
{
public:
std::vector<std::vector<int>> permuteUnique(std::vector<int> const &nums) const
{
std::vector<int> numbers(nums);
std::sort(numbers.begin(), numbers.end());
std::vector<bool> usedNumbe... | 28.545455 | 152 | 0.54034 | stdstring |
5a110d9ca6988282ec336215a807428ea875e35f | 850 | hpp | C++ | pomdog/experimental/gui/debug_navigator.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 163 | 2015-03-16T08:42:32.000Z | 2022-01-11T21:40:22.000Z | pomdog/experimental/gui/debug_navigator.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 17 | 2015-04-12T20:57:50.000Z | 2020-10-10T10:51:45.000Z | pomdog/experimental/gui/debug_navigator.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 21 | 2015-04-12T20:45:11.000Z | 2022-01-14T20:50:16.000Z | // Copyright mogemimi. Distributed under the MIT license.
#pragma once
#include "pomdog/basic/conditional_compilation.hpp"
#include "pomdog/chrono/duration.hpp"
#include "pomdog/chrono/game_clock.hpp"
#include "pomdog/experimental/gui/widget.hpp"
POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_BEGIN
#include <dequ... | 25 | 61 | 0.770588 | mogemimi |
5a1420d1660d2c8ebe5911459718a6172f131fb9 | 3,888 | hpp | C++ | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/common/pthreadcond.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 10 | 2021-03-29T13:52:06.000Z | 2022-03-10T02:24:25.000Z | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/common/pthreadcond.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 1 | 2019-07-19T02:40:32.000Z | 2019-07-19T02:40:32.000Z | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/common/pthreadcond.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 7 | 2018-07-11T10:37:02.000Z | 2019-08-03T10:34:08.000Z | // OpenVPN -- An application to securely tunnel IP networks
// over a single port, with support for SSL/TLS-based
// session authentication and key exchange,
// packet encryption, packet authentication, and
// packet compression.
//
// Copyright (C) 2012-201... | 27 | 89 | 0.637088 | TiagoPedroByterev |
5a1c1bdce9d2b6701ef76bb1d6d295398535a614 | 1,505 | cpp | C++ | tests/algebra/operator/conjugate.cpp | qftphys/Simulate-the-non-equilibrium-dynamics-of-Fermionic-systems | 48d36fecbe4bc12af90f104cdf1f9f68352c508c | [
"MIT"
] | 2 | 2021-01-18T14:35:43.000Z | 2022-03-22T15:12:49.000Z | tests/algebra/operator/conjugate.cpp | f-koehler/ieompp | 48d36fecbe4bc12af90f104cdf1f9f68352c508c | [
"MIT"
] | null | null | null | tests/algebra/operator/conjugate.cpp | f-koehler/ieompp | 48d36fecbe4bc12af90f104cdf1f9f68352c508c | [
"MIT"
] | null | null | null | #include "operator.hpp"
using namespace ieompp::algebra;
TEST_CASE("conjugate_1")
{
const auto a = Operator1::make_creator(0ul), b = Operator1::make_annihilator(0ul);
Operator1 a_conj(a), b_conj(b);
a_conj.conjugate();
b_conj.conjugate();
REQUIRE(a_conj == b);
REQUIRE(b_conj == a);
}
TEST_CAS... | 24.274194 | 98 | 0.64186 | qftphys |
5a205b4c2557930f1cd90d29161e4aa9bb755121 | 12,929 | cpp | C++ | Sources/simdlib/SimdSse2Texture.cpp | aestesis/Csimd | b333a8bb7e7f2707ed6167badb8002cfe3504bbc | [
"Apache-2.0"
] | 6 | 2017-10-13T04:29:38.000Z | 2018-05-10T13:52:20.000Z | Sources/simdlib/SimdSse2Texture.cpp | aestesis/Csimd | b333a8bb7e7f2707ed6167badb8002cfe3504bbc | [
"Apache-2.0"
] | null | null | null | Sources/simdlib/SimdSse2Texture.cpp | aestesis/Csimd | b333a8bb7e7f2707ed6167badb8002cfe3504bbc | [
"Apache-2.0"
] | null | null | null | /*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2017 Yermalayeu Ihar.
*
* 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 with... | 48.605263 | 144 | 0.576997 | aestesis |
5a29a9fb9ebfe976013020cee8c0125af6ab4f40 | 283 | cpp | C++ | Source/Platoon/PlatoonCharacter.cpp | bernhardrieder/Platoon-AI-Simulation-UE4 | f5a3062cea090ddaae35fc97209212c8f8b4bdd9 | [
"Unlicense"
] | 1 | 2018-09-04T19:48:09.000Z | 2018-09-04T19:48:09.000Z | Source/Platoon/PlatoonCharacter.cpp | bernhardrieder/Platoon-AI-Simulation | f5a3062cea090ddaae35fc97209212c8f8b4bdd9 | [
"Unlicense"
] | null | null | null | Source/Platoon/PlatoonCharacter.cpp | bernhardrieder/Platoon-AI-Simulation | f5a3062cea090ddaae35fc97209212c8f8b4bdd9 | [
"Unlicense"
] | null | null | null | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "Platoon.h"
#include "PlatoonCharacter.h"
APlatoonCharacter::APlatoonCharacter()
{
PrimaryActorTick.bCanEverTick = false;
PrimaryActorTick.bStartWithTickEnabled = false;
AActor::SetActorHiddenInGame(true);
} | 23.583333 | 60 | 0.791519 | bernhardrieder |
5a2ae39e781bb0be9e81f6fa5e4c9652c2588bd7 | 721 | cpp | C++ | code archive/GJ/a024.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/GJ/a024.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/GJ/a024.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | /**********************************************************************************/
/* Problem: a024 "所有位數和" from while 迴圈 */
/* Language: C++ */
/* Result: AC (4ms, 184KB) on ZeroJudge ... | 27.730769 | 84 | 0.281553 | brianbbsu |
5a32da1f1584d661f8cb825a427c9278b45bb704 | 222 | cpp | C++ | AudioElement.cpp | OneNot/SFML-PacGuy | d9eb17632e43335282c514027bb93879357bfa74 | [
"Unlicense"
] | null | null | null | AudioElement.cpp | OneNot/SFML-PacGuy | d9eb17632e43335282c514027bb93879357bfa74 | [
"Unlicense"
] | null | null | null | AudioElement.cpp | OneNot/SFML-PacGuy | d9eb17632e43335282c514027bb93879357bfa74 | [
"Unlicense"
] | null | null | null | #include "AudioElement.h"
AudioElement::AudioElement(std::string file)
{
if (!buffer.loadFromFile(file))
{
std::cout << "FAILED TO LOAD: " << file << std::endl;
//todo: error handling
}
sound.setBuffer(buffer);
}
| 18.5 | 55 | 0.666667 | OneNot |
5a35d44b96820ecf83dd807b0a7b21df31f3efca | 2,027 | cc | C++ | Codeforces/339 Division 1/Problem B/B.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/339 Division 1/Problem B/B.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/339 Division 1/Problem B/B.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include <bits/stdc++.h>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb(x) push_back(x)
#define mp(x,y) make_pair(x,y)
#define LET(x, a) __typeof(a) x(a)
#define foreach(it, v) for(LET(it, v.begin()); it != v... | 19.304762 | 100 | 0.519487 | VastoLorde95 |
5a36e0bd1c379ad2d5982af7133e70f963b417cd | 11,042 | cpp | C++ | Milestone 4/Milestone 4/Milestone 4/Main.cpp | Shantanu-Chauhan/RigidBody | 638e7fc248cccdfca21a12c6c80b2d9b7b23e7e1 | [
"Apache-2.0"
] | 1 | 2020-09-26T11:59:55.000Z | 2020-09-26T11:59:55.000Z | Milestone 4/Milestone 4/Milestone 4/Main.cpp | Shantanu-Chauhan/RigidBody | 638e7fc248cccdfca21a12c6c80b2d9b7b23e7e1 | [
"Apache-2.0"
] | null | null | null | Milestone 4/Milestone 4/Milestone 4/Main.cpp | Shantanu-Chauhan/RigidBody | 638e7fc248cccdfca21a12c6c80b2d9b7b23e7e1 | [
"Apache-2.0"
] | null | null | null | /* Start Header -------------------------------------------------------
Copyright (C) 2018 DigiPen Institute of Technology.
Reproduction or disclosure of this file or its contents without the prior
written consent of DigiPen Institute of Technology is prohibited.
File Name: Main.cpp
Purpose: Implementing Game Engine Ar... | 29.134565 | 125 | 0.642003 | Shantanu-Chauhan |
5a3a649a9888e3e73c4dd200603fd798b553f153 | 711 | hpp | C++ | include/mh/network/server.hpp | overworks/MhGameLib | 87973e29633ed09a3fa51eb27ea7fc8af5e9d71b | [
"MIT"
] | null | null | null | include/mh/network/server.hpp | overworks/MhGameLib | 87973e29633ed09a3fa51eb27ea7fc8af5e9d71b | [
"MIT"
] | null | null | null | include/mh/network/server.hpp | overworks/MhGameLib | 87973e29633ed09a3fa51eb27ea7fc8af5e9d71b | [
"MIT"
] | null | null | null | #ifndef _MH_NETWORK_SERVER_HPP_
#define _MH_NETWORK_SERVER_HPP_
/*
* 서버 인터페이스
*/
#include <mh/types.hpp>
#define SERVER_INTERFACE(name)\
name();\
virtual ~name();\
virtual bool initialize( u32 address, u16 port );\
namespace Mh
{
namespace Network
{
class Socket;
// 전송 프로토콜
enum TP // Transfort pr... | 14.8125 | 56 | 0.618847 | overworks |
5a3dba1ad0707e8f2523f50885675d3e4a54b7bb | 1,088 | cpp | C++ | Tutorials/Week 3/Solutions/Office.cpp | JamesMarino/CSCI204 | 17b2c44252d1be40214831c6e7e0c2b71848f500 | [
"MIT"
] | null | null | null | Tutorials/Week 3/Solutions/Office.cpp | JamesMarino/CSCI204 | 17b2c44252d1be40214831c6e7e0c2b71848f500 | [
"MIT"
] | null | null | null | Tutorials/Week 3/Solutions/Office.cpp | JamesMarino/CSCI204 | 17b2c44252d1be40214831c6e7e0c2b71848f500 | [
"MIT"
] | null | null | null | // Office.cpp
// Static field holds rent due date for an office - rents are due on the 1st
#include <iostream>
#include <string>
using namespace std;
class Office
{
private:
int officeNum;
string tenant;
int rent;
static int rentDueDate;
public:
void setOfficeData(int, string, int);
static void showRen... | 21.76 | 101 | 0.654412 | JamesMarino |
5a467f39695c9b5c2b5e7d6e8cf80f1335bd1599 | 3,212 | hpp | C++ | include/opengl/draw_info.hpp | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 2 | 2016-07-22T10:09:21.000Z | 2017-09-16T06:50:01.000Z | include/opengl/draw_info.hpp | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 14 | 2016-08-13T22:45:56.000Z | 2018-12-16T03:56:36.000Z | include/opengl/draw_info.hpp | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | null | null | null | #pragma once
#include <opengl/bind.hpp>
#include <opengl/global.hpp>
#include <opengl/vao.hpp>
#include <opengl/vertex_attribute.hpp>
#include <boomhs/entity.hpp>
#include <common/log.hpp>
#include <common/type_macros.hpp>
#include <optional>
#include <string>
namespace boomhs
{
class ObjStore;
} // namespace boomh... | 22 | 93 | 0.711706 | bjadamson |
53fe5e6aeb1f1c44f8f4face1da69d196f13f417 | 13,467 | cpp | C++ | operators_c.cpp | ntan15/scratch_wadge | 0657069749b9507062c1f7e875c6545076fb85c8 | [
"Unlicense"
] | null | null | null | operators_c.cpp | ntan15/scratch_wadge | 0657069749b9507062c1f7e875c6545076fb85c8 | [
"Unlicense"
] | null | null | null | operators_c.cpp | ntan15/scratch_wadge | 0657069749b9507062c1f7e875c6545076fb85c8 | [
"Unlicense"
] | null | null | null | #include "operators_c.h"
#include "operators.h"
#include <Eigen/Dense>
#include <iostream>
using namespace std;
static dfloat_t *to_c(VectorXd &v)
{
dfloat_t *vdata = (dfloat_t *)asd_malloc_aligned(sizeof(dfloat_t) * v.size());
#if USE_DFLOAT_DOUBLE == 1
Eigen::Map<Eigen::VectorXd>(vdata, v.size()) = v.cast<dfloa... | 31.538642 | 80 | 0.556843 | ntan15 |
99046f7f13fbffeefb6d06369b8ecde9df1dbf40 | 2,337 | cc | C++ | larq_compute_engine/mlir/transforms/fuse_padding.cc | godhj93/compute-engine | 1f812a6722e2ee6a510c883826fd5925f9c34b18 | [
"Apache-2.0"
] | null | null | null | larq_compute_engine/mlir/transforms/fuse_padding.cc | godhj93/compute-engine | 1f812a6722e2ee6a510c883826fd5925f9c34b18 | [
"Apache-2.0"
] | null | null | null | larq_compute_engine/mlir/transforms/fuse_padding.cc | godhj93/compute-engine | 1f812a6722e2ee6a510c883826fd5925f9c34b18 | [
"Apache-2.0"
] | null | null | null | #include "larq_compute_engine/mlir/transforms/padding.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
#include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h"
namespace mlir {
namespace TFL {
namespace {
bool NoBatchAndChannelPadding(Attribute paddings_attr) {
auto paddings = Ge... | 34.880597 | 79 | 0.744544 | godhj93 |
990ce40d611e8ecc977c2e5fe7133c3bcbddaf35 | 9,821 | cpp | C++ | Source/Engine/LightFroxelationTechnique.cpp | glowing-chemist/Bell | 0cf4d0ac925940869077779700c1d3bd45ff841f | [
"MIT"
] | 14 | 2020-02-12T19:13:46.000Z | 2022-03-05T02:26:06.000Z | Source/Engine/LightFroxelationTechnique.cpp | glowing-chemist/Bell | 0cf4d0ac925940869077779700c1d3bd45ff841f | [
"MIT"
] | 5 | 2020-08-06T07:19:47.000Z | 2021-01-05T21:20:51.000Z | Source/Engine/LightFroxelationTechnique.cpp | glowing-chemist/Bell | 0cf4d0ac925940869077779700c1d3bd45ff841f | [
"MIT"
] | 2 | 2021-09-18T13:36:47.000Z | 2021-12-04T15:08:53.000Z | #include "Engine/LightFroxelationTechnique.hpp"
#include "Engine/Engine.hpp"
#include "Engine/DefaultResourceSlots.hpp"
#include "Core/Executor.hpp"
constexpr const char* kFroxelIndirectArgs = "FroxelIndirectArgs";
constexpr const char* kLightIndexCounter = "lightIndexCounter";
constexpr const char* kActiveFroxelsCou... | 53.961538 | 302 | 0.74188 | glowing-chemist |
991079589d5147f94a6171c1143c3dd8af22f512 | 4,157 | cpp | C++ | environment/interpretation/obstacle_detector/src/ObstacleDetector.cpp | krishna95/freezing-batman | 66f1ac7e73c65162f1593cf440c3363a9e4b1efb | [
"BSD-3-Clause"
] | null | null | null | environment/interpretation/obstacle_detector/src/ObstacleDetector.cpp | krishna95/freezing-batman | 66f1ac7e73c65162f1593cf440c3363a9e4b1efb | [
"BSD-3-Clause"
] | null | null | null | environment/interpretation/obstacle_detector/src/ObstacleDetector.cpp | krishna95/freezing-batman | 66f1ac7e73c65162f1593cf440c3363a9e4b1efb | [
"BSD-3-Clause"
] | null | null | null | #include "../include/ObstacleDetector.hpp"
#include <climits>
#include <cassert>
void exit_with_help(){
std::cout<<
"Usage: lane-detector [options]\n"
"options:\n"
"-d : Non-zero for debug\n"
"-s : Subscriber topic name\n"
"-p : Publisher topic name\n"
"-l : Maximum distance we need \n"
"-m : Min... | 26.819355 | 106 | 0.566514 | krishna95 |
9915b7f000edc4973109b7ba5e2117c26dcbd15b | 15,698 | cpp | C++ | world/Room.cpp | sg-p4x347/binding-of-ryesaac | f4b4b3e8f29c5fa2dda184691358605c41f539d5 | [
"MIT"
] | null | null | null | world/Room.cpp | sg-p4x347/binding-of-ryesaac | f4b4b3e8f29c5fa2dda184691358605c41f539d5 | [
"MIT"
] | 6 | 2019-11-29T16:42:12.000Z | 2019-12-08T07:03:23.000Z | world/Room.cpp | sg-p4x347/binding-of-ryesaac | f4b4b3e8f29c5fa2dda184691358605c41f539d5 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Room.h"
#include "geom/ModelRepository.h"
using geom::ModelRepository;
#include "tex/TextureRepository.h"
using tex::TextureRepository;
#include "geom/CollisionUtil.h"
#include "geom/Sphere.h"
#include "game/Game.h"
using game::Game;
#include "game/MultimediaPlayer.h"
using game::Multime... | 31.270916 | 112 | 0.659511 | sg-p4x347 |
9919c30b52c598b849cfdd1c15db09b41bffaef6 | 1,317 | cpp | C++ | src/Misc/PKCS1.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 99 | 2015-01-06T01:53:26.000Z | 2022-01-31T18:18:27.000Z | src/Misc/PKCS1.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 27 | 2015-03-09T05:46:53.000Z | 2020-05-06T02:52:18.000Z | src/Misc/PKCS1.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 42 | 2015-03-18T03:44:43.000Z | 2022-03-31T21:34:06.000Z | #include "Misc/PKCS1.h"
#include "Misc/pgptime.h"
#include "RNG/RNGs.h"
#include "common/includes.h"
namespace OpenPGP {
std::string EME_PKCS1v1_5_ENCODE(const std::string & m, const unsigned int & k) {
if (m.size() > (k - 11)) {
// "Error: EME-PKCS1 Message too long.\n";
return "";
}
st... | 28.021277 | 197 | 0.515566 | httese |
991a1d83e9ae9220fd6908a25dc12d3db0a6c07f | 1,009 | cpp | C++ | Warcraft Heroes Beyond Time/Warcraft Heroes Beyond Time/EnergyItem.cpp | SoftCactusTeam/Warcraft_Adventures | 7b44294d44094ce690abe90348dd87f42cdae07d | [
"MIT"
] | 9 | 2018-03-19T21:36:53.000Z | 2020-02-28T07:05:17.000Z | Warcraft Heroes Beyond Time/Warcraft Heroes Beyond Time/EnergyItem.cpp | SoftCactusTeam/Warcraft-Heroes-Beyond-Time | 7b44294d44094ce690abe90348dd87f42cdae07d | [
"MIT"
] | 87 | 2018-03-04T15:04:57.000Z | 2018-06-07T08:42:55.000Z | Warcraft Heroes Beyond Time/Warcraft Heroes Beyond Time/EnergyItem.cpp | SoftCactusTeam/Warcraft_Adventures | 7b44294d44094ce690abe90348dd87f42cdae07d | [
"MIT"
] | 2 | 2018-02-14T08:13:05.000Z | 2018-02-16T19:17:57.000Z | #include "EnergyItem.h"
#include "Scene.h"
#include "Thrall.h"
#include "Application.h"
#include "ModuleRender.h"
EnergyItem::EnergyItem()
{
}
EnergyItem::~EnergyItem()
{
}
bool EnergyItem::Start()
{
return true;
}
bool EnergyItem::Act(ModuleItems::ItemEvent event, float dt)
{
switch (event)
{
case ModuleIte... | 19.037736 | 118 | 0.683845 | SoftCactusTeam |
991e8d7497ac0af4900c06138616500c5a5df0b2 | 297 | hpp | C++ | lib/systems/simulator/UdpMessageHandlerInterface.hpp | aep/qtsl | 8710cbbf2405ad9147c399d1afea906a80b1fbac | [
"MIT"
] | null | null | null | lib/systems/simulator/UdpMessageHandlerInterface.hpp | aep/qtsl | 8710cbbf2405ad9147c399d1afea906a80b1fbac | [
"MIT"
] | null | null | null | lib/systems/simulator/UdpMessageHandlerInterface.hpp | aep/qtsl | 8710cbbf2405ad9147c399d1afea906a80b1fbac | [
"MIT"
] | null | null | null | #ifndef QTSL_UdpMessageHandlerInterface_H
#define QTSL_UdpMessageHandlerInterface_H
namespace qtsl{
namespace udp{
struct UdpMessage;
};
class UdpMessageHandlerInterface{
public:
virtual void udpMessageHandler(qtsl::udp::UdpMessage * message)=0;
};
};
#endif
| 19.8 | 74 | 0.720539 | aep |
9922a99b0238dfc09a07e514936e3b29593b130c | 28,042 | cpp | C++ | src/hi/hicalendar.cpp | SC-One/HiCalendar | dfda3134dfbde0c7845c4c3e2d41635721511678 | [
"MIT"
] | 30 | 2020-10-30T13:01:10.000Z | 2022-02-04T04:54:11.000Z | src/hi/hicalendar.cpp | Qt-QML/HiCalendar | a9e1f2fcd111f2d5c8eb1af705acef829584b102 | [
"MIT"
] | null | null | null | src/hi/hicalendar.cpp | Qt-QML/HiCalendar | a9e1f2fcd111f2d5c8eb1af705acef829584b102 | [
"MIT"
] | 6 | 2020-10-31T09:38:13.000Z | 2022-02-04T07:20:21.000Z | #include "include/hi/hicalendar.hpp"
////::::::::::::::::::::::::::::::::::::::::::: YearMonthDay
YearMonthDay::YearMonthDay(int _Year, int _Month, int _Day, QObject *parent):
QObject(parent),year(_Year),month(_Month),day(_Day) {}
YearMonthDay::YearMonthDay(const YearMonthDay &other):
QObject(other.parent())... | 37.741588 | 954 | 0.61308 | SC-One |
9927a78165656864eb420193b3dc3673c4a5bd6a | 1,686 | cpp | C++ | source/raytracer/implementation/geometry/object/triangle.cpp | danielil/RayTracer | 16682be15d31e9201acd66b4a12ae78c69fbc671 | [
"MIT"
] | null | null | null | source/raytracer/implementation/geometry/object/triangle.cpp | danielil/RayTracer | 16682be15d31e9201acd66b4a12ae78c69fbc671 | [
"MIT"
] | null | null | null | source/raytracer/implementation/geometry/object/triangle.cpp | danielil/RayTracer | 16682be15d31e9201acd66b4a12ae78c69fbc671 | [
"MIT"
] | null | null | null | /**
* The MIT License (MIT)
* Copyright (c) 2017-2017 Daniel Sebastian Iliescu, http://dansil.net
*
* 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 witho... | 32.423077 | 81 | 0.734282 | danielil |
992d5d130d63c83e1a52fe236d3ece50664a82e1 | 2,009 | hpp | C++ | include/scigl_render/scene/cv_camera.hpp | Tuebel/scigl_render | ec790d54ca4a14546348a5dd2f799d5abcc4bd36 | [
"MIT"
] | null | null | null | include/scigl_render/scene/cv_camera.hpp | Tuebel/scigl_render | ec790d54ca4a14546348a5dd2f799d5abcc4bd36 | [
"MIT"
] | null | null | null | include/scigl_render/scene/cv_camera.hpp | Tuebel/scigl_render | ec790d54ca4a14546348a5dd2f799d5abcc4bd36 | [
"MIT"
] | null | null | null | #pragma once
#include <gl3w/GL/gl3w.h>
#include <scigl_render/shader/shader.hpp>
#include <scigl_render/scene/camera_intrinsics.hpp>
#include <scigl_render/scene/pose.hpp>
#include <vector>
namespace scigl_render
{
/*!
A camera has a position in the world (extrinsics) and projection (intrinsic).
The extrinsics and int... | 28.7 | 79 | 0.752613 | Tuebel |
99322fd9da6141454cccef5308d5e23cc4ae3042 | 1,792 | cpp | C++ | test/query_builder_tests.cpp | Malibushko/yatgbotlib | a5109c36c9387aef0e6d15e303d2f3753eef9aac | [
"MIT"
] | 3 | 2020-04-05T23:51:09.000Z | 2020-08-14T07:24:45.000Z | test/query_builder_tests.cpp | Malibushko/yatgbotlib | a5109c36c9387aef0e6d15e303d2f3753eef9aac | [
"MIT"
] | 1 | 2020-07-24T19:46:28.000Z | 2020-07-31T14:49:28.000Z | test/query_builder_tests.cpp | Malibushko/yatgbotlib | a5109c36c9387aef0e6d15e303d2f3753eef9aac | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "telegram_bot.h"
using namespace telegram;
TEST(QueryBuilder,builder_builtin) {
QueryBuilder builder;
int b = 5;
int c = 6;
bool d = false;
builder << make_named_pair(b) << make_named_pair(c) << make_named_pair(d);
std::string json = builder.getQuery();
std:... | 28.903226 | 87 | 0.650112 | Malibushko |
9937f50614e6ba984a31acd400bde0a8bf8dc7e1 | 8,221 | cpp | C++ | ch06/6.exercise.10.cpp | 0p3r4t4/PPPUCPP2nd | cf1bd23bb22ee00a77172e43678b7eaa91f592e0 | [
"MIT"
] | 51 | 2017-03-24T06:08:11.000Z | 2022-03-18T00:28:14.000Z | ch06/6.exercise.10.cpp | 0p3r4t4/PPPUCPP2nd | cf1bd23bb22ee00a77172e43678b7eaa91f592e0 | [
"MIT"
] | 1 | 2019-06-23T07:33:42.000Z | 2019-12-12T13:14:04.000Z | ch06/6.exercise.10.cpp | 0p3r4t4/PPPUCPP2nd | cf1bd23bb22ee00a77172e43678b7eaa91f592e0 | [
"MIT"
] | 25 | 2017-04-07T13:22:45.000Z | 2022-03-18T00:28:15.000Z | // 6.exercise.10.cpp
//
// A permutation is an ordered subset of a set. For example, say you wanted to
// pick a combination to a vault. There are 60 possible numbers, and you need
// three different numbers for the combination. There are P(60,3) permutations
// for the combination, where P is defined by the formula
/... | 33.971074 | 112 | 0.585452 | 0p3r4t4 |
993c39b4a2928028fd47a4e72fb468df81a7ecff | 2,598 | cpp | C++ | Source/GUI/VintageToggleButton.cpp | grhn/gold-rush-filter | 7b91dc5c44bc1acb46804638c357f8e240becdc3 | [
"MIT"
] | 1 | 2019-09-08T19:57:22.000Z | 2019-09-08T19:57:22.000Z | Source/GUI/VintageToggleButton.cpp | grhn/gold-rush-filter | 7b91dc5c44bc1acb46804638c357f8e240becdc3 | [
"MIT"
] | null | null | null | Source/GUI/VintageToggleButton.cpp | grhn/gold-rush-filter | 7b91dc5c44bc1acb46804638c357f8e240becdc3 | [
"MIT"
] | null | null | null | //
// VintageToggleButton.cpp
// GoldRush
//
// Created by Tommi Gröhn on 26.10.2015.
//
//
#include "VintageToggleButton.h"
VintageToggleButton::VintageToggleButton (Colour baseColour, Colour switchColour) : baseColour (baseColour), switchColour (switchColour)
{
}
void VintageToggleButton::setLabel (String s)
{
... | 32.475 | 136 | 0.469977 | grhn |
9945af9d2f759ea6e140d9addac71d3923741a56 | 1,534 | cpp | C++ | 2011-codeforces-saratov-school-regional/d_three-sons.cpp | galenhwang/acm-problems | 304e11a144c5589c6d9e493b05ad228f20619686 | [
"MIT"
] | null | null | null | 2011-codeforces-saratov-school-regional/d_three-sons.cpp | galenhwang/acm-problems | 304e11a144c5589c6d9e493b05ad228f20619686 | [
"MIT"
] | null | null | null | 2011-codeforces-saratov-school-regional/d_three-sons.cpp | galenhwang/acm-problems | 304e11a144c5589c6d9e493b05ad228f20619686 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <algorithm>
using namespace std;
int get (int accumTotal[], int first, int last) {
int permVal = accumTotal[last];
if (first > 0)
permVal -= accumTotal[first-1];
return permVal;
}
int numWays(int len, int accumTotal[], int sons[]) {
int val = 0;... | 26.912281 | 88 | 0.483703 | galenhwang |
994640bbfd3c68da9bda39bdace3ff969b0a97f9 | 177,106 | cc | C++ | src/bin/dhcp4/dhcp4_lexer.cc | mcr/kea | 7fbbfde2a0742a3d579d51ec94fc9b91687fb901 | [
"Apache-2.0"
] | 1 | 2019-08-10T21:52:58.000Z | 2019-08-10T21:52:58.000Z | src/bin/dhcp4/dhcp4_lexer.cc | jxiaobin/kea | 1987a50a458921f9e5ac84cb612782c07f3b601d | [
"Apache-2.0"
] | null | null | null | src/bin/dhcp4/dhcp4_lexer.cc | jxiaobin/kea | 1987a50a458921f9e5ac84cb612782c07f3b601d | [
"Apache-2.0"
] | null | null | null | #line 1 "dhcp4_lexer.cc"
#line 3 "dhcp4_lexer.cc"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
/* %not-for-header */
/* %if-c-only */
/* %if-not-reentrant */
#define yy_create_buffer parser4__create_buffer
#define yy_delete_buffer parser4__delete_buffer
#define yy_scan_buffer parser4_... | 31.63172 | 102 | 0.591329 | mcr |
99498d75c3ba0878a454dc0cf2205c6eba578045 | 5,362 | cpp | C++ | thirdparty/qtiplot/qtiplot/src/matrix/MatrixSizeDialog.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 6 | 2018-09-05T12:41:59.000Z | 2021-07-01T05:34:23.000Z | thirdparty/qtiplot/qtiplot/src/matrix/MatrixSizeDialog.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-02-07T19:09:21.000Z | 2015-08-14T03:15:42.000Z | thirdparty/qtiplot/qtiplot/src/matrix/MatrixSizeDialog.cpp | hoehnp/SpaceDesignTool | 9abd34048274b2ce9dbbb685124177b02d6a34ca | [
"IJG"
] | 2 | 2015-03-25T15:50:31.000Z | 2017-12-06T12:16:47.000Z | /***************************************************************************
File : MatrixSizeDialog.cpp
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2004-2008 by Ion Vasilief
Email (use @ for *) : ion... | 39.426471 | 111 | 0.560425 | hoehnp |
9949a2dfaf008c365fbe6fbb12b10e581e36e2fb | 4,382 | cpp | C++ | gui/widgets/knob.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | 6 | 2021-11-12T15:03:53.000Z | 2022-01-28T18:30:33.000Z | gui/widgets/knob.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | gui/widgets/knob.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | // ObjectTalk Scripting Language
// Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include "ot/function.h"
#include "ot/vm.h"
#include "knob.h"
//
// O... | 21.586207 | 104 | 0.67298 | goossens |
995085d5b9ee461af1ed4d74528789e6d8bef94e | 7,773 | cpp | C++ | Motor2D/j1Pathfinding.cpp | Gerard346/Game-Dev2019 | 3e927070ff2ba8b07de2dc4d56de63a6ffd4fb84 | [
"MIT"
] | null | null | null | Motor2D/j1Pathfinding.cpp | Gerard346/Game-Dev2019 | 3e927070ff2ba8b07de2dc4d56de63a6ffd4fb84 | [
"MIT"
] | null | null | null | Motor2D/j1Pathfinding.cpp | Gerard346/Game-Dev2019 | 3e927070ff2ba8b07de2dc4d56de63a6ffd4fb84 | [
"MIT"
] | null | null | null | #include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Render.h"
#include "j1Textures.h"
#include "j1Pathfinding.h"
#include "j1Map.h"
#include <math.h>
#include "j1Input.h"
#include "j1Window.h"
j1Pathfinding::j1Pathfinding() : j1Module()
{
name.create("pathfinding");
}
// Destructor
j1Pathfinding::~... | 20.728 | 134 | 0.63206 | Gerard346 |
9952033c3c777f60050880690f73804b8b7e1b0c | 2,516 | hpp | C++ | dLoad.hpp | dyexlzc/CppdynamicLoad | 14303e2929ecc26aa16ef7f0dad7cc2d71cb3077 | [
"MIT"
] | null | null | null | dLoad.hpp | dyexlzc/CppdynamicLoad | 14303e2929ecc26aa16ef7f0dad7cc2d71cb3077 | [
"MIT"
] | null | null | null | dLoad.hpp | dyexlzc/CppdynamicLoad | 14303e2929ecc26aa16ef7f0dad7cc2d71cb3077 | [
"MIT"
] | null | null | null | #ifndef _DLOAD_HPP
#define _DLOAD_HPP
#include <unordered_map>
#include <string>
#include <dlfcn.h> //加载动态库所需要的头文件
#include "interface.h"
class dynamicLoader
{
class SoWrapper //用来包装指针
{
public:
interface *(*getInstanceFunc)(void);
void *soPtr;
SoWrapper(interface *(*fptr)(void), vo... | 32.675325 | 109 | 0.561208 | dyexlzc |
995c2f7a0f20072e7d8039748ef224a5e5949dba | 4,993 | hh | C++ | src/net/REDQueue.hh | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 8 | 2020-12-05T20:30:54.000Z | 2022-01-22T13:32:14.000Z | src/net/REDQueue.hh | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | 3 | 2020-10-28T22:15:27.000Z | 2021-01-27T14:43:41.000Z | src/net/REDQueue.hh | drexelwireless/dragonradio | 885abd68d56af709e7a53737352641908005c45b | [
"MIT"
] | null | null | null | #ifndef REDQUEUE_HH_
#define REDQUEUE_HH_
#include <list>
#include <random>
#include "logging.hh"
#include "Clock.hh"
#include "net/Queue.hh"
#include "net/SizedQueue.hh"
/** @brief An Adaptive RED queue. */
/** See the paper Random Early Detection Gateways for Congestion Avoidance */
template <class T>
class REDQue... | 22.799087 | 105 | 0.530342 | drexelwireless |
995d417fdaf7d5b02113724963860c36fb84b251 | 3,208 | hpp | C++ | test/matrix/blas/matsub.hpp | rigarash/monolish-debian-package | 70b4917370184bcf07378e1907c5239a1ad9579b | [
"Apache-2.0"
] | 172 | 2021-04-05T10:04:40.000Z | 2022-03-28T14:30:38.000Z | test/matrix/blas/matsub.hpp | rigarash/monolish-debian-package | 70b4917370184bcf07378e1907c5239a1ad9579b | [
"Apache-2.0"
] | 96 | 2021-04-06T01:53:44.000Z | 2022-03-09T07:27:09.000Z | test/matrix/blas/matsub.hpp | termoshtt/monolish | 1cba60864002b55bc666da9baa0f8c2273578e01 | [
"Apache-2.0"
] | 8 | 2021-04-05T13:21:07.000Z | 2022-03-09T23:24:06.000Z | #include "../../test_utils.hpp"
template <typename T>
void ans_matsub(const monolish::matrix::Dense<T> &A,
const monolish::matrix::Dense<T> &B,
monolish::matrix::Dense<T> &C) {
if (A.get_row() != B.get_row()) {
std::runtime_error("A.row != B.row");
}
if (A.get_col() != B.get_... | 25.259843 | 78 | 0.595387 | rigarash |
9967ae213a368f4d7eca16535649ff73f8cce3ab | 9,045 | cxx | C++ | HLT/EMCAL/AliHLTEMCALDigitMakerComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | HLT/EMCAL/AliHLTEMCALDigitMakerComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | HLT/EMCAL/AliHLTEMCALDigitMakerComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | // $Id$
/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* All rights reserved. *
* *
* Prim... | 28.443396 | 120 | 0.656385 | AllaMaevskaya |
9978b390491df18d645dde376bb564e507571ed5 | 201 | hpp | C++ | engine/engine.hpp | davidscholberg/opengl-es-test | 9792d6d6f4f01fb91a8ec59ecf0fd02cd019db79 | [
"BSD-2-Clause"
] | null | null | null | engine/engine.hpp | davidscholberg/opengl-es-test | 9792d6d6f4f01fb91a8ec59ecf0fd02cd019db79 | [
"BSD-2-Clause"
] | null | null | null | engine/engine.hpp | davidscholberg/opengl-es-test | 9792d6d6f4f01fb91a8ec59ecf0fd02cd019db79 | [
"BSD-2-Clause"
] | null | null | null | #ifndef ENGINE_HPP_
#define ENGINE_HPP_
class engine {
public:
engine();
engine(engine const &) = delete;
~engine();
void operator=(engine const &) = delete;
};
#endif // ENGINE_HPP_
| 15.461538 | 44 | 0.651741 | davidscholberg |
5f53ae65b626f3f81e712d5ccfec67ede8b34bb3 | 6,275 | cpp | C++ | ECS/Project/Project/Renderers/RendererModules/DPassLightingModule/DPassLightingModule.cpp | AshwinKumarVijay/SceneECS | 2acc115d5e7738ef9bf087c025e5e5a10cac3443 | [
"MIT"
] | 2 | 2017-01-30T23:38:49.000Z | 2017-09-08T09:34:37.000Z | ECS/Project/Project/Renderers/RendererModules/DPassLightingModule/DPassLightingModule.cpp | AshwinKumarVijay/SceneECS | 2acc115d5e7738ef9bf087c025e5e5a10cac3443 | [
"MIT"
] | null | null | null | ECS/Project/Project/Renderers/RendererModules/DPassLightingModule/DPassLightingModule.cpp | AshwinKumarVijay/SceneECS | 2acc115d5e7738ef9bf087c025e5e5a10cac3443 | [
"MIT"
] | null | null | null | #include "DPassLightingModule.h"
#include "../Renderers/ModuleRenderer/ModuleRenderer.h"
#include "../GBufferModule/GBufferModule.h"
#include "../LightsModule/LightsModule.h"
#include "../../../Camera/Camera.h"
#include "../../RendererResourceManagers/RendererShaderManager/RendererShaderData/RendererShaderData.h"
/... | 45.80292 | 471 | 0.821514 | AshwinKumarVijay |
5f5592726c03618955fb5f662a83cf8ca5b042a6 | 343 | cpp | C++ | Source/TextureBaker/Private/TextureBakerCommands.cpp | WhiteWh/UE4TextureBaker | 976decb8a895bb7aa8c4dad17e857b25a7a753ce | [
"MIT"
] | 7 | 2021-05-04T10:33:36.000Z | 2022-02-02T20:06:21.000Z | Source/TextureBaker/Private/TextureBakerCommands.cpp | WhiteWh/UE4TextureBaker | 976decb8a895bb7aa8c4dad17e857b25a7a753ce | [
"MIT"
] | null | null | null | Source/TextureBaker/Private/TextureBakerCommands.cpp | WhiteWh/UE4TextureBaker | 976decb8a895bb7aa8c4dad17e857b25a7a753ce | [
"MIT"
] | null | null | null | // Copyright Epic Games, Inc. All Rights Reserved.
#include "TextureBakerCommands.h"
#define LOCTEXT_NAMESPACE "FTextureBakerModule"
void FTextureBakerCommands::RegisterCommands()
{
UI_COMMAND(OpenPluginWindow, "TextureBaker", "Bring up TextureBaker window", EUserInterfaceActionType::Button, FInputGesture());
}
#u... | 26.384615 | 129 | 0.80758 | WhiteWh |
5f58e8a2a07d36c37ebe2d543e363510648bc238 | 3,934 | cc | C++ | src/imageprocessing/contour.cc | SanczoPL/gt-annotate | b760d0dc3f91ce5748190b95468e2e54bee76b2a | [
"MIT"
] | null | null | null | src/imageprocessing/contour.cc | SanczoPL/gt-annotate | b760d0dc3f91ce5748190b95468e2e54bee76b2a | [
"MIT"
] | null | null | null | src/imageprocessing/contour.cc | SanczoPL/gt-annotate | b760d0dc3f91ce5748190b95468e2e54bee76b2a | [
"MIT"
] | null | null | null | #include "imageprocessing/contour.h"
#include <QJsonObject>
#include <QJsonArray>
#include <QFile>
#include <QJsonDocument>
#include <QDebug>
#include <QRectF>
#include <QString>
//#define DEBUG
constexpr auto NAME{ "Name" };
constexpr auto WIDTH{ "Width" };
constexpr auto HEIGHT{ "Height" };
constexpr auto X{ "X" }... | 26.402685 | 113 | 0.684291 | SanczoPL |
5f68e65393a05b2daa346d882f09e8eb4c063733 | 287 | cpp | C++ | LibreOJ/loj10230.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | 1 | 2020-10-05T02:07:52.000Z | 2020-10-05T02:07:52.000Z | LibreOJ/loj10230.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | null | null | null | LibreOJ/loj10230.cpp | wzl19371/OI-LIfe | f7f54542d1369b5e4047fcbb2e26c1c64d22ee26 | [
"MIT"
] | null | null | null | #include <cstdio>
using namespace std;
typedef long long ll;
const int p=5000011;
const int maxn=1e5+10;
int n,k;
ll f[maxn];
int main(){
scanf("%d%d",&n,&k);
for(int i=0;i<=k;i++) f[i]=(i+1)%p;
for(int i=k+1;i<=n;i++) f[i]=(f[i-1]+f[i-k-1])%p;
printf("%lld\n",f[n]);
}
| 20.5 | 51 | 0.550523 | wzl19371 |
5f71afccb2722ea46e95da751a1150f0d225eec0 | 1,870 | hpp | C++ | Sources/etwprof/OS/Stream/OStreamManipulators.hpp | Donpedro13/etwprof | a9db371ef556d564529c5112c231157d3789292b | [
"MIT"
] | 38 | 2018-06-11T19:09:16.000Z | 2022-03-17T04:15:15.000Z | Sources/etwprof/OS/Stream/OStreamManipulators.hpp | killvxk/etwprof | 37ca044b5dd6be39dbd77ba7653395aa95768692 | [
"MIT"
] | 12 | 2018-06-12T20:24:05.000Z | 2021-07-31T18:28:48.000Z | Sources/etwprof/OS/Stream/OStreamManipulators.hpp | killvxk/etwprof | 37ca044b5dd6be39dbd77ba7653395aa95768692 | [
"MIT"
] | 5 | 2019-02-23T04:11:03.000Z | 2022-03-17T04:15:18.000Z | #ifndef ETWP_OSTREAM_MANIPULATORS_HPP
#define ETWP_OSTREAM_MANIPULATORS_HPP
namespace ETWP {
class ConsoleOStream;
using OStreamManipulator = void (*)(ConsoleOStream*);
void Endl (ConsoleOStream* stream);
void ColorReset (ConsoleOStream* stream);
void FgColorReset (ConsoleOStream* stream);
void FgColorBlack (Cons... | 35.961538 | 53 | 0.818182 | Donpedro13 |
5f769c53c564d2e8ab345db842a6e9f09e0a9cf4 | 115 | cpp | C++ | docs/mfc/reference/codesnippet/CPP/application-information-and-management_1.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/mfc/reference/codesnippet/CPP/application-information-and-management_1.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/mfc/reference/codesnippet/CPP/application-information-and-management_1.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | // Print the application's executable filename.
TRACE(_T("Executable filename = %s\n"), AfxGetApp()->m_pszExeName); | 57.5 | 67 | 0.747826 | bobbrow |
5f7a9c797738783fd2ab6b6edf2c15f5c2023d2b | 588 | hpp | C++ | src/moistureMeasurement.hpp | umiko/MoistureMeter | 89b617e57bf5934ccd4d0fdfa2eda12c4385edf1 | [
"MIT"
] | null | null | null | src/moistureMeasurement.hpp | umiko/MoistureMeter | 89b617e57bf5934ccd4d0fdfa2eda12c4385edf1 | [
"MIT"
] | null | null | null | src/moistureMeasurement.hpp | umiko/MoistureMeter | 89b617e57bf5934ccd4d0fdfa2eda12c4385edf1 | [
"MIT"
] | null | null | null | //AUTHOR:
//umiko(https://github.com/umiko)
//Permission to copy and modify is granted under the MIT license
//
//DESCRIPTION:
//A struct to save the last measurement taken, so it can be supplied at a later time again
#ifndef MOISTUREMEASUREMENT_CPP
#define MOISTUREMEASUREMENT_CPP
#include <Arduino.h>
class moistureMe... | 23.52 | 90 | 0.765306 | umiko |
5f81a2abcc92a1c85e45e4f6f0eef014ce0282ea | 141 | hh | C++ | host/device-reference.hh | free-audio/clap-host | 4602d26b91a526ac80933bdc9f6fcafdf2423bbf | [
"MIT"
] | 24 | 2021-12-01T13:36:25.000Z | 2022-03-17T10:12:29.000Z | host/device-reference.hh | free-audio/clap-host | 4602d26b91a526ac80933bdc9f6fcafdf2423bbf | [
"MIT"
] | 9 | 2021-11-02T14:39:54.000Z | 2022-03-19T11:04:54.000Z | host/device-reference.hh | free-audio/clap-host | 4602d26b91a526ac80933bdc9f6fcafdf2423bbf | [
"MIT"
] | 4 | 2021-11-02T09:01:50.000Z | 2022-02-04T20:00:35.000Z | #pragma once
#include <QString>
struct DeviceReference {
QString _api = "(none)";
QString _name = "(noname)";
int _index = 0;
};
| 14.1 | 30 | 0.624113 | free-audio |
5f81c6c8c4ea9f912d51ed641b32741f6feecb1c | 2,784 | hpp | C++ | accumulate.hpp | dean985/itertools | 842715b5fe7db5c74f65da642aa06ae365bb68c2 | [
"MIT"
] | null | null | null | accumulate.hpp | dean985/itertools | 842715b5fe7db5c74f65da642aa06ae365bb68c2 | [
"MIT"
] | 2 | 2020-06-18T11:35:37.000Z | 2020-06-18T11:35:45.000Z | accumulate.hpp | dean985/itertools | 842715b5fe7db5c74f65da642aa06ae365bb68c2 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
namespace itertools
{
typedef struct
{
template <typename T>
T operator()(T a, T b)
{
return a + b;
}
} add;
template <typename Container,typename Ftor = add>
class accumulate
{
Ftor _fnctor = [](in... | 27.029126 | 91 | 0.431753 | dean985 |
5f83b93ffc743d1c6cb8c993a3e37548387c905c | 5,903 | cpp | C++ | source/octree/linear-octree.cpp | triplu-zero/monte-carlo-ray-tracer | 8b36d5154204fc67e13376ad15b8bac33065c2d1 | [
"MIT"
] | 149 | 2020-03-06T00:39:43.000Z | 2022-03-31T07:28:36.000Z | source/octree/linear-octree.cpp | triplu-zero/monte-carlo-ray-tracer | 8b36d5154204fc67e13376ad15b8bac33065c2d1 | [
"MIT"
] | 4 | 2020-07-27T15:33:09.000Z | 2022-02-24T11:34:40.000Z | source/octree/linear-octree.cpp | triplu-zero/monte-carlo-ray-tracer | 8b36d5154204fc67e13376ad15b8bac33065c2d1 | [
"MIT"
] | 17 | 2020-03-23T16:05:36.000Z | 2022-02-21T02:38:31.000Z | #include "linear-octree.hpp"
#include <glm/gtx/norm.hpp>
#include "../common/constexpr-math.hpp"
#include "../common/util.hpp"
template <class Data>
LinearOctree<Data>::LinearOctree(Octree<Data> &octree_root)
{
size_t octree_size = 0, data_size = 0;
octreeSize(octree_root, octree_size, data_size);
if (o... | 31.566845 | 154 | 0.580891 | triplu-zero |
5f84f5c1e5e2bacec64ab1c2ad6891b75f2c5ec7 | 3,397 | cpp | C++ | source/LinearizedImplicitEuler.cpp | sergeneren/BubbleH | e018e5a008e101221a4f8a3bbb25e7ec03fc9662 | [
"BSD-3-Clause-Clear"
] | 52 | 2019-10-06T17:25:39.000Z | 2022-01-20T23:01:13.000Z | source/LinearizedImplicitEuler.cpp | sergeneren/BubbleH | e018e5a008e101221a4f8a3bbb25e7ec03fc9662 | [
"BSD-3-Clause-Clear"
] | 1 | 2019-10-08T18:44:41.000Z | 2019-10-09T07:48:31.000Z | source/LinearizedImplicitEuler.cpp | sergeneren/BubbleH | e018e5a008e101221a4f8a3bbb25e7ec03fc9662 | [
"BSD-3-Clause-Clear"
] | 10 | 2019-10-07T16:33:24.000Z | 2020-10-21T01:09:47.000Z | #include "LinearizedImplicitEuler.h"
#include "VS3D.h"
// TODO: Save space by creating dx, dv, rhs, A only once.
LinearizedImplicitEuler::LinearizedImplicitEuler()
: SceneStepper()
{}
LinearizedImplicitEuler::~LinearizedImplicitEuler()
{}
bool LinearizedImplicitEuler::stepScene( VS3D& scene, scalar dt )
{
const... | 28.308333 | 149 | 0.600236 | sergeneren |
5f86049f22b9d449118b81ec1a272d8b8a360ade | 1,433 | cpp | C++ | android-30/java/util/logging/ErrorManager.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/util/logging/ErrorManager.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/util/logging/ErrorManager.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../lang/Exception.hpp"
#include "../../../JString.hpp"
#include "./ErrorManager.hpp"
namespace java::util::logging
{
// Fields
jint ErrorManager::CLOSE_FAILURE()
{
return getStaticField<jint>(
"java.util.logging.ErrorManager",
"CLOSE_FAILURE"
);
}
jint ErrorManager::FLUSH_FAILURE()
{
ret... | 19.364865 | 84 | 0.677599 | YJBeetle |
5f9546f9a266b3fce0de657ba183711f056e1543 | 1,336 | cpp | C++ | Contributor Corner/Mercy/print bracket number/bracket.cpp | hitu1304/interview-corner | 97503d1967c646f731275ae3665f142814c6a9d7 | [
"MIT"
] | 39 | 2020-11-01T13:58:48.000Z | 2021-02-12T08:39:37.000Z | Contributor Corner/Mercy/print bracket number/bracket.cpp | hitu1304/interview-corner | 97503d1967c646f731275ae3665f142814c6a9d7 | [
"MIT"
] | 86 | 2020-09-25T07:20:40.000Z | 2021-02-18T20:36:29.000Z | Contributor Corner/Mercy/print bracket number/bracket.cpp | hitu1304/interview-corner | 97503d1967c646f731275ae3665f142814c6a9d7 | [
"MIT"
] | 43 | 2020-12-18T03:32:42.000Z | 2021-02-19T18:08:19.000Z | #include <bits/stdc++.h>
using namespace std;
// function to print the bracket number
void printBracketNumber(string exp, int n)
{
// used to print the bracket number
// for the left bracket
int left_bnum = 1;
// used to obtain the bracket number
// for the right bracket
... | 24.740741 | 60 | 0.480539 | hitu1304 |
5f98d36504125aa4f7d3690db1a51afc184288c4 | 6,406 | cpp | C++ | core/impl/file/file_obj_mesh.cpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/file/file_obj_mesh.cpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/file/file_obj_mesh.cpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | #include <fstream>
#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include <cmath>
#include <tuple>
#include <regex>
#include <cassert>
#include "file_obj_mesh.hpp"
#include "renderable_info.hpp"
renderable_info_tris file_obj_mesh::calc_renderable_info_tris( file_obj_mesh::data_mesh & dm ... | 35.787709 | 135 | 0.559319 | auyunli |
5f9e63dab889a49fe82ceaa575f866b943cf2ae3 | 644 | hpp | C++ | higan/gb/cartridge/mbc3/mbc3.hpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | higan/gb/cartridge/mbc3/mbc3.hpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | higan/gb/cartridge/mbc3/mbc3.hpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | struct MBC3 : Mapper {
auto second() -> void;
auto read(uint16 address) -> uint8;
auto write(uint16 address, uint8 data) -> void;
auto power() -> void;
auto serialize(serializer& s) -> void;
struct IO {
struct ROM {
uint8 bank = 0x01;
} rom;
struct RAM {
uint1 enable;
uint8 ba... | 18.941176 | 49 | 0.569876 | 13824125580 |
5fa14f0d066969b5eed836ed5f70579eebf75663 | 1,612 | cpp | C++ | src/BitmapReader.cpp | antenous/image | 7743a31d87bae1b76efdd4023f21d0f861093057 | [
"BSD-3-Clause"
] | null | null | null | src/BitmapReader.cpp | antenous/image | 7743a31d87bae1b76efdd4023f21d0f861093057 | [
"BSD-3-Clause"
] | null | null | null | src/BitmapReader.cpp | antenous/image | 7743a31d87bae1b76efdd4023f21d0f861093057 | [
"BSD-3-Clause"
] | null | null | null | /*
* BitmapReader.cpp
*
* Created on: Dec 17, 2017
* Author: Antero Nousiainen
*/
#include "BitmapReader.hpp"
using namespace image;
namespace
{
template<typename T>
void read(std::istream & stream, T & t, std::streamsize count = sizeof(T))
{
stream.read(reinterpret_cast<char*>(&t), co... | 22.082192 | 113 | 0.603598 | antenous |
5fa3d390d814fdc6c5f3be91a0f2cb7433526079 | 167,382 | cpp | C++ | src/magic/actmagic.cpp | PegasusEpsilon/Barony | 6311f7e5da4835eaea65a95b5cc258409bb0dfa4 | [
"FTL",
"Zlib",
"MIT"
] | 373 | 2016-06-28T06:56:46.000Z | 2022-03-23T02:32:54.000Z | src/magic/actmagic.cpp | PegasusEpsilon/Barony | 6311f7e5da4835eaea65a95b5cc258409bb0dfa4 | [
"FTL",
"Zlib",
"MIT"
] | 361 | 2016-07-06T19:09:25.000Z | 2022-03-26T14:14:19.000Z | src/magic/actmagic.cpp | PegasusEpsilon/Barony | 6311f7e5da4835eaea65a95b5cc258409bb0dfa4 | [
"FTL",
"Zlib",
"MIT"
] | 129 | 2016-06-29T09:02:49.000Z | 2022-01-23T09:56:06.000Z | /*-------------------------------------------------------------------------------
BARONY
File: actmagic.cpp
Desc: behavior function for magic balls
Copyright 2013-2016 (c) Turning Wheel LLC, all rights reserved.
See LICENSE for details.
---------------------------------------------------------------------------... | 29.783274 | 282 | 0.577248 | PegasusEpsilon |
5fbabb6d06829191d76a03b0657e53f2ef2c679f | 4,178 | cpp | C++ | Common/Parse.cpp | d0liver/realpolitik | 3aa6d7238f3eb77494637861813206295f44f6e0 | [
"Artistic-1.0"
] | null | null | null | Common/Parse.cpp | d0liver/realpolitik | 3aa6d7238f3eb77494637861813206295f44f6e0 | [
"Artistic-1.0"
] | null | null | null | Common/Parse.cpp | d0liver/realpolitik | 3aa6d7238f3eb77494637861813206295f44f6e0 | [
"Artistic-1.0"
] | null | null | null | //---------------------------------------------------------------------------------
// Copyright (C) 2001 James M. Van Verth
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the Clarified Artistic License.
// In addition, to meet copyright restrictions you must ... | 19.895238 | 84 | 0.497367 | d0liver |
5fbd79ada3d0d2bc36c3c2ed324f781e626e4c5e | 2,069 | cpp | C++ | src/ext/transport/FastRTPS/FastRTPSTransport.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | 15 | 2019-01-08T15:34:04.000Z | 2022-03-01T08:36:17.000Z | src/ext/transport/FastRTPS/FastRTPSTransport.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | 448 | 2018-12-27T03:13:56.000Z | 2022-03-24T09:57:03.000Z | src/ext/transport/FastRTPS/FastRTPSTransport.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | 31 | 2018-12-26T04:34:22.000Z | 2021-11-25T04:39:51.000Z | // -*- C++ -*-
/*!
* @file FastRTPSOutPort.cpp
* @brief FastRTPSOutPort class
* @date $Date: 2019-01-31 03:08:03 $
* @author Nobuhiko Miyamoto <n-miyamoto@aist.go.jp>
*
* Copyright (C) 2019
* Nobuhiko Miyamoto
* Robot Innovation Research Center,
* National Institute of
* Advanced Indust... | 21.778947 | 92 | 0.58144 | r-kurose |
5fbffc8f4e6528e19ec06dd7271bb63304fe0285 | 504 | cpp | C++ | EU4toV2/Source/V2World/Output/outLeader.cpp | GregB76/EU4toVic2 | 0a8822101a36a16036fdc315e706d113d9231101 | [
"MIT"
] | 42 | 2018-12-22T03:59:43.000Z | 2022-02-03T10:45:42.000Z | EU4toV2/Source/V2World/Output/outLeader.cpp | IhateTrains/EU4toVic2 | 061f5e1a0bc1a1f3b54bdfe471b501260149b56b | [
"MIT"
] | 336 | 2018-12-22T17:15:27.000Z | 2022-03-02T11:19:32.000Z | EU4toV2/Source/V2World/Output/outLeader.cpp | klorpa/EU4toVic2 | e3068eb2aa459f884c1929f162d0047a4cb5f4d4 | [
"MIT"
] | 56 | 2018-12-22T19:13:23.000Z | 2022-01-01T23:08:53.000Z | #include "output.h"
std::ostream& V2::operator<<(std::ostream& output, const Leader& leader)
{
output << "leader = {\n";
output << "\tname=\"" << leader.name << "\"\n";
output << "\tdate=\"" << leader.activationDate << "\"\n";
if (leader.isLand)
{
output << "\ttype=land\n";
}
else
{
output << "\ttype=sea\n... | 21.913043 | 72 | 0.553571 | GregB76 |
5fc60f95819d5eb5ddbd3d505bc52540009782ec | 10,658 | cpp | C++ | pluginLite/sysutils.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | 3 | 2017-11-29T07:11:24.000Z | 2020-03-03T19:23:33.000Z | pluginLite/sysutils.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | null | null | null | pluginLite/sysutils.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | 1 | 2018-07-12T12:48:52.000Z | 2018-07-12T12:48:52.000Z | #include <windows.h>
#include <stdio.h>
#include <comdef.h> // for using bstr_t class
#include <vector>
#include <tchar.h>
#define SYSTEM_OBJECT_INDEX 2 // 'System' object
#define PROCESS_OBJECT_INDEX 230 // 'Process' object
#define PROCESSOR_OBJECT_INDEX 238 // 'Processor' object
#define TOTAL_PROCESSOR_... | 25.806295 | 122 | 0.693751 | XULPlayer |
5fc7c5022bb2cd702c6add7ffa1a3a2714535c8d | 15,209 | cpp | C++ | Merrymen/WeaponCS.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | Merrymen/WeaponCS.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | Merrymen/WeaponCS.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | /*
------------------------------------------------------------------------------------------
Copyright (c) 2014 Vinyl Games Studio
Author: Mikhail Kutuzov
Date: 5/15/2014 4:14:48 PM
------------------------------------------------------------------------------------------
*/
#include "WeaponC... | 27.062278 | 169 | 0.700243 | Mertank |
5fd39842abda1a0200ca32e1f96fef3c75824d1f | 10,470 | cc | C++ | wrspice/devlib/mos/mossetm.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | wrspice/devlib/mos/mossetm.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | wrspice/devlib/mos/mossetm.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 35.979381 | 77 | 0.533715 | wrcad |
5fd4e83c4342a0a31ee949f1b9e89980fd360f03 | 11,966 | cpp | C++ | src/QtAudio/CiosAudio/CaDebug.cpp | Vladimir-Lin/QtAudio | 5c58e86cda1a88f03c4dde53883a979bec37b504 | [
"MIT"
] | null | null | null | src/QtAudio/CiosAudio/CaDebug.cpp | Vladimir-Lin/QtAudio | 5c58e86cda1a88f03c4dde53883a979bec37b504 | [
"MIT"
] | null | null | null | src/QtAudio/CiosAudio/CaDebug.cpp | Vladimir-Lin/QtAudio | 5c58e86cda1a88f03c4dde53883a979bec37b504 | [
"MIT"
] | null | null | null | /*****************************************************************************
* *
* CIOS Audio Core *
* *
* V... | 60.434343 | 120 | 0.272606 | Vladimir-Lin |
5fde1048e3ba09396e3eb85d31727a63a0b41224 | 5,841 | hh | C++ | cc/record.hh | skepner/dtra2 | 5aeeb66cd8e42217976ae0ad481dcc42549e6bf0 | [
"MIT"
] | null | null | null | cc/record.hh | skepner/dtra2 | 5aeeb66cd8e42217976ae0ad481dcc42549e6bf0 | [
"MIT"
] | null | null | null | cc/record.hh | skepner/dtra2 | 5aeeb66cd8e42217976ae0ad481dcc42549e6bf0 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include "date.hh"
// ----------------------------------------------------------------------
namespace xlnt
{
class cell;
}
namespace dtra
{
inline namespace v2
{
class Directory;
// --------------------------------------------------
class Reco... | 54.588785 | 213 | 0.588255 | skepner |
5fe35e13763aab39c3aa3d34251ef07e01a67fae | 921 | cpp | C++ | HDUOJ/1020.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | 1 | 2019-09-18T23:45:27.000Z | 2019-09-18T23:45:27.000Z | HDUOJ/1020.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | null | null | null | HDUOJ/1020.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | 1 | 2019-09-18T23:45:28.000Z | 2019-09-18T23:45:28.000Z | #include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
using namespace std;
//to_string要求C++11
int main()
{
int N;
cin >> N;
for(int i=1;i <= N;i++){
char target;
string input,output;
int count = 0;
cin >> input;
for(int j = 0;j < input.length(... | 20.931818 | 52 | 0.394137 | Accelerator404 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.