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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85e81958bc8b94020364f88526924ae55a5866d5 | 2,836 | cpp | C++ | ExtraLifeEngine/Obsolete/RemovedVoxel/Voxel/Neutral/Terrain/TerrainGeneration.cpp | paulburgess1357/ExtraLifeEngine | e0d1f95fa57ea9e5016d1e3800815cdb24b1eb0f | [
"MIT"
] | 1 | 2020-11-13T05:39:46.000Z | 2020-11-13T05:39:46.000Z | ExtraLifeEngine/Obsolete/RemovedVoxel/Voxel/Neutral/Terrain/TerrainGeneration.cpp | paulburgess1357/ExtraLifeEngine | e0d1f95fa57ea9e5016d1e3800815cdb24b1eb0f | [
"MIT"
] | null | null | null | ExtraLifeEngine/Obsolete/RemovedVoxel/Voxel/Neutral/Terrain/TerrainGeneration.cpp | paulburgess1357/ExtraLifeEngine | e0d1f95fa57ea9e5016d1e3800815cdb24b1eb0f | [
"MIT"
] | null | null | null | #include "TerrainGeneration.h"
#include <cmath>
namespace ExtraLife {
noise::module::Perlin TerrainGeneration::m_perlin_noise;
int TerrainGeneration::generate_top_layer(const WorldPosition& starting_world_position, const int x_local, const int z_local, const int x_block_qty, const int y_block_qty, const int z_block_... | 32.976744 | 197 | 0.692877 | paulburgess1357 |
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 |
65a4129133678830b35540e7196ade3735b0d039 | 6,191 | cpp | C++ | flume/util/hadoop_conf_test.cpp | advancedxy/bigflow_python | 8a244b483404fde7afc42eee98bc964da8ae03e2 | [
"Apache-2.0"
] | 1 | 2021-02-18T20:13:34.000Z | 2021-02-18T20:13:34.000Z | flume/util/hadoop_conf_test.cpp | advancedxy/bigflow_python | 8a244b483404fde7afc42eee98bc964da8ae03e2 | [
"Apache-2.0"
] | null | null | null | flume/util/hadoop_conf_test.cpp | advancedxy/bigflow_python | 8a244b483404fde7afc42eee98bc964da8ae03e2 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
*
* Copyright (c) 2013 Baidu, 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
*
... | 31.586735 | 76 | 0.666613 | advancedxy |
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 |
65a835ddf980515a6d34e3cce94fb15b7fd256e1 | 2,935 | hpp | C++ | componentLibraries/defaultLibrary/Signal/Sources&Sinks/SignalPulseWave.hpp | mjfwest/hopsan | 77a0a1e69fd9588335b7e932f348972186cbdf6f | [
"Apache-2.0"
] | null | null | null | componentLibraries/defaultLibrary/Signal/Sources&Sinks/SignalPulseWave.hpp | mjfwest/hopsan | 77a0a1e69fd9588335b7e932f348972186cbdf6f | [
"Apache-2.0"
] | null | null | null | componentLibraries/defaultLibrary/Signal/Sources&Sinks/SignalPulseWave.hpp | mjfwest/hopsan | 77a0a1e69fd9588335b7e932f348972186cbdf6f | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------------
Copyright 2017 Hopsan Group
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.o... | 29.059406 | 97 | 0.563203 | mjfwest |
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 |
65b3d0ef272427bbf9499c284f7b66a4af56504a | 17,757 | cc | C++ | informal_code/cfsqp/local_fan.cc | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 125 | 2016-03-22T22:29:23.000Z | 2022-02-15T05:43:43.000Z | informal_code/cfsqp/local_fan.cc | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 4 | 2015-10-13T17:38:34.000Z | 2020-11-26T19:54:19.000Z | informal_code/cfsqp/local_fan.cc | fbrausse/flyspeck | 66f4ef0f9252c382333586fc07787e64d8a4bbfb | [
"MIT"
] | 9 | 2017-06-21T08:48:56.000Z | 2021-05-13T02:07:27.000Z | /* ========================================================================== */
/* FLYSPECK - CFSQP */
/* */
/* Nonlinear Inequalities, C++ Nonrigorous Numerical Optimization */
/* Chapter: Local F... | 32.403285 | 199 | 0.545982 | fbrausse |
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 |
65c8012df9eabd09c01fa12e47b597f1c3679be8 | 3,453 | hxx | C++ | src/istream/Handler.hxx | CM4all/beng-proxy | ce5a81f7969bc5cb6c5985cdc98f61ef8b5c6159 | [
"BSD-2-Clause"
] | 35 | 2017-08-16T06:52:26.000Z | 2022-03-27T21:49:01.000Z | src/istream/Handler.hxx | nn6n/beng-proxy | 2cf351da656de6fbace3048ee90a8a6a72f6165c | [
"BSD-2-Clause"
] | 2 | 2017-12-22T15:34:23.000Z | 2022-03-08T04:15:23.000Z | src/istream/Handler.hxx | nn6n/beng-proxy | 2cf351da656de6fbace3048ee90a8a6a72f6165c | [
"BSD-2-Clause"
] | 8 | 2017-12-22T15:11:47.000Z | 2022-03-15T22:54:04.000Z | /*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 abo... | 32.885714 | 77 | 0.726615 | CM4all |
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 |
65c917836d9576fc136a7db14443d06dd5eb9319 | 478 | cpp | C++ | Backdoor.Win32.C.a/ifmirc.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 2 | 2021-02-04T06:47:45.000Z | 2021-07-28T10:02:10.000Z | Backdoor.Win32.C.a/ifmirc.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Backdoor.Win32.C.a/ifmirc.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | #include "Include.h"
#include "Hell.h"
BOOL mirccmd(char *cmd)
{
HWND mwnd = FindWindow("mIRC",NULL);
if (mwnd) {
HANDLE hFileMap = CreateFileMapping(INVALID_HANDLE_VALUE,0,PAGE_READWRITE,0,4096,"mIRC");
LPSTR mData = (LPSTR)MapViewOfFile(hFileMap,FILE_MAP_ALL_ACCESS,0,0,0);
sprintf(mData, cmd);
SendMessage(... | 25.157895 | 91 | 0.717573 | 010001111 |
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 |
65cac9339ad22493786ffac70178bd54c71a106a | 5,177 | cpp | C++ | test/test_symbol_normalizer.cpp | atlimited/resembla | 82293cecfccfca6e2a95688b21f0659ba75e8cae | [
"Apache-2.0"
] | 65 | 2017-07-24T12:59:05.000Z | 2021-09-29T03:08:57.000Z | test/test_symbol_normalizer.cpp | atlimited/resembla | 82293cecfccfca6e2a95688b21f0659ba75e8cae | [
"Apache-2.0"
] | 3 | 2017-07-26T03:25:28.000Z | 2019-01-26T15:08:53.000Z | test/test_symbol_normalizer.cpp | tuem/resembla | ff39ac1b6904fc018bb691d77ca468772600f731 | [
"Apache-2.0"
] | 6 | 2017-09-25T10:39:17.000Z | 2019-12-24T09:45:24.000Z | /*
Resembla
https://github.com/tuem/resembla
Copyright 2017 Takashi Uemura
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 applic... | 42.089431 | 198 | 0.696156 | atlimited |
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 |
65fac98ea13e3d3d783063a53fa92368dc96f3fe | 2,879 | cpp | C++ | Gems/Atom/RHI/Code/Source/RHI/BufferScopeAttachment.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 11 | 2021-07-08T09:58:26.000Z | 2022-03-17T17:59:26.000Z | Gems/Atom/RHI/Code/Source/RHI/BufferScopeAttachment.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 29 | 2021-07-06T19:33:52.000Z | 2022-03-22T10:27:49.000Z | Gems/Atom/RHI/Code/Source/RHI/BufferScopeAttachment.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 4 | 2021-07-06T19:24:43.000Z | 2022-03-31T12:42:27.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Atom/RHI/BufferScopeAttachment.h>
#include <Atom/RHI/BufferFrameAttachment.h>
#include <... | 34.686747 | 142 | 0.657173 | cypherdotXd |
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 |
65ff56baa07cf766ac826e1603c5b3da5df944a6 | 327 | cpp | C++ | examples/nested_cpp/test/main.cpp | trflynn89/flymake | 9dcfbfd43f7d7987e903940bfed3cc416c39c9cb | [
"MIT"
] | null | null | null | examples/nested_cpp/test/main.cpp | trflynn89/flymake | 9dcfbfd43f7d7987e903940bfed3cc416c39c9cb | [
"MIT"
] | 1 | 2021-02-09T02:53:26.000Z | 2021-02-09T02:53:26.000Z | examples/nested_cpp/test/main.cpp | trflynn89/flymake | 9dcfbfd43f7d7987e903940bfed3cc416c39c9cb | [
"MIT"
] | null | null | null | #include "nested_cpp/outer_lib/inner_lib/inner_lib.hpp"
#include "nested_cpp/outer_lib/outer_lib.hpp"
#include <cassert>
#include <iostream>
int main()
{
assert(outer::outer_value() == 123);
assert(inner::outer_value() == 123);
assert(inner::inner_value() == 1989);
std::cout << "Passed!\n";
retur... | 20.4375 | 55 | 0.666667 | trflynn89 |
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 |
5a0041876ba8347ac3bbbac0ac4158cb21da0ab3 | 804 | cpp | C++ | LeetCode/Daily-Challenge/Evaluate Reverse Polish Notation.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | 5 | 2021-02-14T17:48:21.000Z | 2022-01-24T14:29:44.000Z | LeetCode/Daily-Challenge/Evaluate Reverse Polish Notation.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | LeetCode/Daily-Challenge/Evaluate Reverse Polish Notation.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | class Solution {
public:
int evalRPN(vector<string>& tokens) {
stack<int> stk;
int a, b, res;
for(string i: tokens){
if(isOperator(i)){
a = stk.top();
stk.pop();
b = stk.top();
stk.pop();
... | 23.647059 | 65 | 0.334577 | Sowmik23 |
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 |
5a0780f127bedfcf86ba645ff619e9b50688403d | 3,445 | cpp | C++ | activemq-cpp/src/main/decaf/internal/util/concurrent/windows/Atomics.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 87 | 2015-03-02T17:58:20.000Z | 2022-02-11T02:52:52.000Z | activemq-cpp/src/main/decaf/internal/util/concurrent/windows/Atomics.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 3 | 2017-05-10T13:16:08.000Z | 2019-01-23T20:21:53.000Z | activemq-cpp/src/main/decaf/internal/util/concurrent/windows/Atomics.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 71 | 2015-04-28T06:04:04.000Z | 2022-03-15T13:34:06.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 42.012195 | 120 | 0.53701 | novomatic-tech |
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 |
5a0bcd08a291c33b3102bcf3b66a712a36d9e8d3 | 7,830 | cc | C++ | drivers/bluetooth/lib/sm/util.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | drivers/bluetooth/lib/sm/util.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | drivers/bluetooth/lib/sm/util.cc | PowerOlive/garnet | 16b5b38b765195699f41ccb6684cc58dd3512793 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia 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 "util.h"
#include <openssl/aes.h>
#include <zircon/assert.h>
#include "garnet/drivers/bluetooth/lib/hci/util.h"
namespace btlib {
using common... | 33.319149 | 80 | 0.667816 | PowerOlive |
5a0c05852f5fee16463d763adeb77c37cc9d6582 | 1,579 | cc | C++ | chrome/browser/notifications/notification_ui_manager_android.cc | Fusion-Rom/android_external_chromium_org | d8b126911c6ea9753e9f526bee5654419e1d0ebd | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-01-25T10:18:18.000Z | 2021-01-23T15:29:56.000Z | chrome/browser/notifications/notification_ui_manager_android.cc | Fusion-Rom/android_external_chromium_org | d8b126911c6ea9753e9f526bee5654419e1d0ebd | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | chrome/browser/notifications/notification_ui_manager_android.cc | Fusion-Rom/android_external_chromium_org | d8b126911c6ea9753e9f526bee5654419e1d0ebd | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T06:34:36.000Z | 2020-11-04T06:34:36.000Z | // Copyright 2014 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/notifications/notification_ui_manager_android.h"
#include "base/logging.h"
// static
NotificationUIManager* NotificationUIManag... | 26.762712 | 80 | 0.746042 | Fusion-Rom |
5a0d965c55380224342d8d28d30040184eb17c93 | 13,154 | cpp | C++ | src/learning/learning.cpp | raphaelsulzer/mesh-tools | 73150bec58813e2b9b750205807002a1c3f18884 | [
"MIT"
] | 1 | 2022-02-24T03:39:05.000Z | 2022-02-24T03:39:05.000Z | src/learning/learning.cpp | raphaelsulzer/mesh-tools | 73150bec58813e2b9b750205807002a1c3f18884 | [
"MIT"
] | 1 | 2022-02-24T06:59:59.000Z | 2022-03-04T01:25:09.000Z | src/learning/learning.cpp | raphaelsulzer/mesh-tools | 73150bec58813e2b9b750205807002a1c3f18884 | [
"MIT"
] | null | null | null | #include <base/cgal_typedefs.h>
#include <IO/fileIO.h>
#include <util/helper.h>
#include <util/geometricOperations.h>
#include <processing/tetIntersection.h>
#include <processing/rayTracingTet.h>
#include <processing/meshProcessing.h>
#include <processing/graphCut.h>
#include <processing/edgeManifoldness.h>
#include <... | 34.344648 | 128 | 0.592443 | raphaelsulzer |
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 |
5a12ddf110bcc68350b8090456384324420b49ae | 50,337 | cpp | C++ | data/cpp/7fa0c21b51343873f0140b810c2823ea_CraftingSessionHelper.cpp | maxim5/code-inspector | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | [
"Apache-2.0"
] | 5 | 2018-01-03T06:43:07.000Z | 2020-07-30T13:15:29.000Z | data/cpp/7fa0c21b51343873f0140b810c2823ea_CraftingSessionHelper.cpp | maxim5/code-inspector | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | [
"Apache-2.0"
] | null | null | null | data/cpp/7fa0c21b51343873f0140b810c2823ea_CraftingSessionHelper.cpp | maxim5/code-inspector | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | [
"Apache-2.0"
] | 2 | 2019-11-04T02:54:49.000Z | 2020-04-24T17:50:46.000Z | /*
---------------------------------------------------------------------------------------
This source file is part of SWG:ANH (Star Wars Galaxies - A New Hope - Server Emulator)
For more information, visit http://www.swganh.com
Copyright (c) 2006 - 2010 The SWG:ANH Team
----------------------------------------------... | 32.164217 | 288 | 0.618909 | maxim5 |
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 |
5a19681fccf6da574551c4be56c4be8ac59960b0 | 4,833 | cpp | C++ | blast/src/algo/blast/api/local_search.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/algo/blast/api/local_search.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/algo/blast/api/local_search.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | /* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyright Act. ... | 26.85 | 99 | 0.699979 | mycolab |
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 |
5a1fe7ab79a62c09730683bfcb46fcec655160fd | 3,322 | cpp | C++ | src/debug_message.cpp | anima-libera/qwy2 | 4875caf8035c5fb60e12eaba787d29017ffa0ed8 | [
"Apache-2.0"
] | null | null | null | src/debug_message.cpp | anima-libera/qwy2 | 4875caf8035c5fb60e12eaba787d29017ffa0ed8 | [
"Apache-2.0"
] | null | null | null | src/debug_message.cpp | anima-libera/qwy2 | 4875caf8035c5fb60e12eaba787d29017ffa0ed8 | [
"Apache-2.0"
] | null | null | null |
#include "debug_message.hpp"
#include "opengl.hpp"
#include <SDL2/SDL.h>
#include <iostream>
namespace qwy2
{
using namespace std::literals::string_view_literals;
static std::string_view opengl_debug_message_source_name(GLenum source)
{
switch (source)
{
case GL_DEBUG_SOURCE_API:
return "API"sv;
case GL_DE... | 27.00813 | 92 | 0.735099 | anima-libera |
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 |
5a2491b62de6d3e5599c47df6c0db8cbf3952adf | 2,073 | cpp | C++ | main_twoflavor.cpp | Sam91/vmc_general | cb2b0cb103a66307a3d78dbf137582a3ad224f8d | [
"MIT"
] | null | null | null | main_twoflavor.cpp | Sam91/vmc_general | cb2b0cb103a66307a3d78dbf137582a3ad224f8d | [
"MIT"
] | null | null | null | main_twoflavor.cpp | Sam91/vmc_general | cb2b0cb103a66307a3d78dbf137582a3ad224f8d | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include "lwave2.h"
//#include "amperean.h"
int main(int argc, char *argv[])
{
int req_args = 6;
for(int i=0; i<argc; i++) cout << argv[i] << " ";
cout << endl;
if(argc-1<req_args) {
cout << "Error: incorrect number of arguments\n";
exit(-1);
}
int L = ato... | 25.592593 | 86 | 0.598649 | Sam91 |
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 |
5a2dac2d68c6ed1ae3f4fa685a3aaa591922f468 | 466 | cpp | C++ | LeetCode/InterviewSchool/125. Valid Palindrome.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | 5 | 2021-02-14T17:48:21.000Z | 2022-01-24T14:29:44.000Z | LeetCode/InterviewSchool/125. Valid Palindrome.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | LeetCode/InterviewSchool/125. Valid Palindrome.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isPalindrome(string s) {
string str = "";
for(int i=0;i<s.size();i++){
if((s[i]>='A' and s[i]<='Z') or (s[i]>='a' and s[i]<='z') or (s[i]>='0' and s[i]<='9')){
str+=tolower(s[i]);
}
}
// cout<<str<<endl;
... | 24.526316 | 100 | 0.38412 | Sowmik23 |
5a3140d44c0243e438b833f769575bea720da7e6 | 8,090 | cpp | C++ | packages/cat/tso2Impact/scenarioAggr.cpp | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | 3 | 2019-06-10T18:04:14.000Z | 2020-12-05T18:11:40.000Z | packages/cat/tso2Impact/scenarioAggr.cpp | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | null | null | null | packages/cat/tso2Impact/scenarioAggr.cpp | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | 2 | 2020-09-24T19:04:14.000Z | 2020-12-05T18:11:43.000Z | /* _________________________________________________________________________
*
* TEVA-SPOT Toolkit: Tools for Designing Contaminant Warning Systems
* Copyright (c) 2008 Sandia Corporation.
* This software is distributed under the BSD License.
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corpora... | 33.292181 | 95 | 0.603461 | USEPA |
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 |
5a335c34ab3440d624cdf45ee4ead7a9672a0dfb | 571 | cpp | C++ | garbage/class_imple.cpp | wolfdale/Spaghetti-code | 9e395345e1420b9db021b21131601191a869db1d | [
"MIT"
] | 1 | 2018-05-18T16:07:11.000Z | 2018-05-18T16:07:11.000Z | garbage/class_imple.cpp | wolfdale/Spaghetti-code | 9e395345e1420b9db021b21131601191a869db1d | [
"MIT"
] | 5 | 2015-12-03T16:12:38.000Z | 2020-05-05T14:07:00.000Z | garbage/class_imple.cpp | wolfdale/Spaghetti-code | 9e395345e1420b9db021b21131601191a869db1d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class item
{
int number;
float cost;
public:
void getdata(int a,float b); //Prototype decleration
void putdata(void)
{
cout<<"Number:"<<number<<"\n";
cout<<"Cost :"<<cost<<"\n";
}
};
//*************Member Function Definition***********... | 15.026316 | 61 | 0.537653 | wolfdale |
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 |
5a3c7f000ab12b0e63964ccd7e36f5e481fcae1a | 1,246 | cc | C++ | libs/fel/src/fel/file.cc | madeso/fel | 2ec89ce0195545385125d0a02c90aaa65492c1a9 | [
"MIT"
] | 3 | 2019-12-15T10:29:15.000Z | 2021-07-24T19:39:29.000Z | libs/fel/src/fel/file.cc | madeso/fel | 2ec89ce0195545385125d0a02c90aaa65492c1a9 | [
"MIT"
] | null | null | null | libs/fel/src/fel/file.cc | madeso/fel | 2ec89ce0195545385125d0a02c90aaa65492c1a9 | [
"MIT"
] | null | null | null | #include "fel/file.h"
#include <sstream>
#include <iostream>
#include <fstream>
#include <cassert>
namespace fel
{
File::File(const std::string& a_filename, const std::string& a_content)
: filename(a_filename)
, data(a_content)
{
}
FilePointer::FilePointer(const File& a_file)
... | 17.549296 | 75 | 0.457464 | madeso |
5a3d24d871e1bc144f1d6cafb6f1a155356dffbe | 4,910 | cpp | C++ | src/Structs.Core.cpu/Collections/BitArray.cpp | Grimace1975/gpustructs | 549f32c96d4df6aafcb38cc063a8cd516512883b | [
"MIT"
] | null | null | null | src/Structs.Core.cpu/Collections/BitArray.cpp | Grimace1975/gpustructs | 549f32c96d4df6aafcb38cc063a8cd516512883b | [
"MIT"
] | null | null | null | src/Structs.Core.cpu/Collections/BitArray.cpp | Grimace1975/gpustructs | 549f32c96d4df6aafcb38cc063a8cd516512883b | [
"MIT"
] | null | null | null | #ifndef CORE_H
# include "..\..\..\inc\System\Core.h"
#endif
#include "BitArray.hpp"
#include <string.h>
using namespace Structs;
namespace Structs { namespace Collections {
BitArray::BitArray(uint size)
{
_size = size;
}
void BitArray::Destroy(BitArray &p)
{
if (&p =... | 36.102941 | 160 | 0.405906 | Grimace1975 |
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 |
5a3e900a0a703723b1b7bd32ddda0acae6b32857 | 2,637 | hpp | C++ | indexer/covered_object.hpp | mapsme/geocore | 346fceb020cd909b37706ab6ad454aec1a11f52e | [
"Apache-2.0"
] | 13 | 2019-09-16T17:45:31.000Z | 2022-01-29T15:51:52.000Z | indexer/covered_object.hpp | mapsme/geocore | 346fceb020cd909b37706ab6ad454aec1a11f52e | [
"Apache-2.0"
] | 37 | 2019-10-04T00:55:46.000Z | 2019-12-27T15:13:19.000Z | indexer/covered_object.hpp | mapsme/geocore | 346fceb020cd909b37706ab6ad454aec1a11f52e | [
"Apache-2.0"
] | 13 | 2019-10-02T15:03:58.000Z | 2020-12-28T13:06:22.000Z | #pragma once
#include "geometry/point2d.hpp"
#include "geometry/polygon.hpp"
#include "geometry/rect2d.hpp"
#include "coding/geometry_coding.hpp"
#include "base/buffer_vector.hpp"
#include "base/geo_object_id.hpp"
#include <cstdint>
#include <vector>
namespace indexer
{
// Class for intermediate objects used to bu... | 26.908163 | 102 | 0.668563 | mapsme |
5a41d85552d1170f10241f9d4566dad233198f36 | 2,275 | cpp | C++ | cctbx/adp_restraints/fixed_u_eq_adp_bpl.cpp | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | cctbx/adp_restraints/fixed_u_eq_adp_bpl.cpp | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | cctbx/adp_restraints/fixed_u_eq_adp_bpl.cpp | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | #include <cctbx/boost_python/flex_fwd.h>
#include <boost/python/def.hpp>
#include <boost/python/class.hpp>
#include <boost/python/args.hpp>
#include <boost/python/return_value_policy.hpp>
#include <boost/python/copy_const_reference.hpp>
#include <boost/python/return_internal_reference.hpp>
#include <boost/python/retur... | 25.852273 | 60 | 0.607033 | rimmartin |
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 |
990895bc2b59a8a47daa6835471237eac9152d89 | 8,857 | cpp | C++ | XMLWriter.cpp | malord/prime | f0e8be99b7dcd482708b9c928322bc07a3128506 | [
"MIT"
] | null | null | null | XMLWriter.cpp | malord/prime | f0e8be99b7dcd482708b9c928322bc07a3128506 | [
"MIT"
] | null | null | null | XMLWriter.cpp | malord/prime | f0e8be99b7dcd482708b9c928322bc07a3128506 | [
"MIT"
] | null | null | null | // Copyright 2000-2021 Mark H. P. Lord
#include "XMLWriter.h"
#include <string.h>
namespace {
// TODO: might be worth finding a common place for this? Or making them static methods so other modules can use them?
inline bool IsXMLWhitespace(char ch)
{
return ch == 0x09 || ch == 0x0a || ch == 0x0d || ch == 0x0c |... | 24.265753 | 136 | 0.584058 | malord |
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 |
990e91dfcbacdb744afa79e9d0ea86c0449d3536 | 17,620 | cc | C++ | third-party/webscalesqlclient/mysql-5.6/sql/item_jsonfunc.cc | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | third-party/webscalesqlclient/mysql-5.6/sql/item_jsonfunc.cc | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | third-party/webscalesqlclient/mysql-5.6/sql/item_jsonfunc.cc | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
Copyright (c) 2014, Facebook. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be... | 26.616314 | 80 | 0.62798 | hkirsman |
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 |
9916b25ce105f4344fc80f98d780b27c0deb21f3 | 621 | cpp | C++ | packages/orchestrator/third_party/slt_setting/examples/00_hello_setting.cpp | cogment/cogment | 55df705fce16942d396324dd733b4c60af729738 | [
"Apache-2.0"
] | 4 | 2020-08-03T20:07:41.000Z | 2020-08-03T20:11:29.000Z | packages/orchestrator/third_party/slt_setting/examples/00_hello_setting.cpp | cogment/cogment | 55df705fce16942d396324dd733b4c60af729738 | [
"Apache-2.0"
] | null | null | null | packages/orchestrator/third_party/slt_setting/examples/00_hello_setting.cpp | cogment/cogment | 55df705fce16942d396324dd733b4c60af729738 | [
"Apache-2.0"
] | 2 | 2021-02-20T02:42:10.000Z | 2022-03-23T23:47:21.000Z | #include "slt/settings.h"
#include "slt/settings_context.h"
#include <string>
slt::Setting ip_address = slt::Setting_builder<std::string>()
.with_default("localhost")
.with_description("The IP address to operate on")
.with_arg("... | 28.227273 | 79 | 0.550725 | cogment |
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 |
9933976a01123be433ebac6aa2221ede3a33c9bd | 25,960 | cc | C++ | dist/cpp/proto/services/request/topicSubscription.pb.cc | ate362/ubii-msg-formats | f96058dc1091886c47761fbba1a3033bcf180b4c | [
"BSD-3-Clause"
] | 2 | 2021-01-29T12:49:01.000Z | 2021-03-06T13:35:49.000Z | dist/cpp/proto/services/request/topicSubscription.pb.cc | ate362/ubii-msg-formats | f96058dc1091886c47761fbba1a3033bcf180b4c | [
"BSD-3-Clause"
] | null | null | null | dist/cpp/proto/services/request/topicSubscription.pb.cc | ate362/ubii-msg-formats | f96058dc1091886c47761fbba1a3033bcf180b4c | [
"BSD-3-Clause"
] | 2 | 2021-05-14T14:06:33.000Z | 2022-02-21T21:25:35.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/services/request/topicSubscription.proto
#include "proto/services/request/topicSubscription.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stre... | 44.913495 | 181 | 0.729507 | ate362 |
9934e3629c522f13fd76e73643c00baf3df398be | 29,949 | cpp | C++ | cpp/apps/AeroCombat/temp/AeroSurf.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 26 | 2016-12-04T04:45:12.000Z | 2022-03-24T09:39:28.000Z | cpp/apps/AeroCombat/temp/AeroSurf.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | null | null | null | cpp/apps/AeroCombat/temp/AeroSurf.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 2 | 2019-02-09T12:31:06.000Z | 2019-04-28T02:24:50.000Z |
//#include "rString.hpp"
#include <math.h>
#include "AeroSurf.hpp"
#if _DEBUG_AEROSURF
void drawWing(Vector3 pos, Matrix3 rot, float a, float AspectRatio )
{
Matrix4 pose;
pose.SetPosition(Vector3D(pos.X(), pos.Y(), pos.Z()));
pose.SetOrientation(rot);
renderer.DrawBox(Vector3D(0, 0, 0), Vector3(... | 41.945378 | 232 | 0.593208 | ProkopHapala |
9937511dd96eb5f5b44d8fdf60832706774ce001 | 7,997 | cc | C++ | src/jumandic/shared/lattice_format.cc | HarukaMa/jumanpp | 9e7ca75ecf79c596c86731f63e1e07a8b45076de | [
"Apache-2.0"
] | 300 | 2016-10-19T02:20:39.000Z | 2022-02-23T19:58:04.000Z | src/jumandic/shared/lattice_format.cc | HarukaMa/jumanpp | 9e7ca75ecf79c596c86731f63e1e07a8b45076de | [
"Apache-2.0"
] | 130 | 2016-10-17T07:57:14.000Z | 2022-03-20T17:37:13.000Z | src/jumandic/shared/lattice_format.cc | HarukaMa/jumanpp | 9e7ca75ecf79c596c86731f63e1e07a8b45076de | [
"Apache-2.0"
] | 36 | 2016-10-19T11:47:05.000Z | 2022-01-25T09:36:12.000Z | //
// Created by Arseny Tolmachev on 2017/07/21.
//
#include "lattice_format.h"
#include "core/analysis/analyzer_impl.h"
#include "util/logging.hpp"
namespace jumanpp {
namespace jumandic {
namespace output {
Status LatticeFormatInfo::fillInfo(const core::analysis::Analyzer& an,
i3... | 28.663082 | 80 | 0.549706 | HarukaMa |
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 |
994e733f0a3ca96b7a7c1ed762019b524d211c9f | 1,206 | cpp | C++ | hardway/ex2.cpp | mgalushka/cpp-start | a7af1668291ffd1c1b606310714880dcbefb3ea5 | [
"MIT"
] | null | null | null | hardway/ex2.cpp | mgalushka/cpp-start | a7af1668291ffd1c1b606310714880dcbefb3ea5 | [
"MIT"
] | null | null | null | hardway/ex2.cpp | mgalushka/cpp-start | a7af1668291ffd1c1b606310714880dcbefb3ea5 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <stdint.h>
#include <stdlib.h>
uint32_t* reverse_array(uint32_t length, uint32_t* input);
void print_array(uint32_t length, uint32_t* input);
int main(int argc, char* argv[]){
std::string str = "This is string";
std::cout << "Length(" << str << ") = " << str.len... | 24.12 | 69 | 0.554726 | mgalushka |
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 |
995a2f2e82a3c4a6b2fb3ff3d69dd6af5d4cc8c4 | 4,865 | cpp | C++ | saber/lite/funcs/saber_deconv_act.cpp | Shixiaowei02/Anakin | f1ea086c5dfa1009ba15a64bc3e30cde07356360 | [
"Apache-2.0"
] | 1 | 2018-08-03T05:14:27.000Z | 2018-08-03T05:14:27.000Z | saber/lite/funcs/saber_deconv_act.cpp | Shixiaowei02/Anakin | f1ea086c5dfa1009ba15a64bc3e30cde07356360 | [
"Apache-2.0"
] | 3 | 2018-06-22T09:08:44.000Z | 2018-07-04T08:38:30.000Z | saber/lite/funcs/saber_deconv_act.cpp | Shixiaowei02/Anakin | f1ea086c5dfa1009ba15a64bc3e30cde07356360 | [
"Apache-2.0"
] | 1 | 2021-01-27T07:44:55.000Z | 2021-01-27T07:44:55.000Z | #include "saber/lite/funcs/saber_deconv_act.h"
#include "saber/lite/net/saber_factory_lite.h"
namespace anakin{
namespace saber{
namespace lite{
SaberDeconvAct2D::SaberDeconvAct2D() {
_conv_func = new SaberDeconv2D;
}
SaberDeconvAct2D::SaberDeconvAct2D(const ParamBase *param) {
_conv_func = new SaberDeconv2D... | 30.030864 | 107 | 0.619322 | Shixiaowei02 |
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 |
996460e59d36a608dfaff28a701efe1942d69542 | 2,024 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/Viewport.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/Viewport.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/ive/Viewport.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z | /**********************************************************************
*
* FILE: Viewport.cpp
*
* DESCRIPTION: Read/Write osg::Viewport in binary format to disk.
*
* CREATED BY: Auto generated by iveGenerated
* and later modified by Rune Schmidt Jensen.
*
* ... | 31.625 | 102 | 0.552372 | UM-ARM-Lab |