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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5e00e943ee09893e9899159a58f9ce4aad05c0d7 | 300 | cpp | C++ | projects/tests/main.cpp | AnselmoGPP/SQL_tests | 9ecfc9f386e4516c0f11948bfba796fb3821fa01 | [
"MIT"
] | null | null | null | projects/tests/main.cpp | AnselmoGPP/SQL_tests | 9ecfc9f386e4516c0f11948bfba796fb3821fa01 | [
"MIT"
] | null | null | null | projects/tests/main.cpp | AnselmoGPP/SQL_tests | 9ecfc9f386e4516c0f11948bfba796fb3821fa01 | [
"MIT"
] | null | null | null | /*
* https://www.geeksforgeeks.org/sql-using-c-c-and-sqlite/
* You can install SQLite library with "sudo apt-get install libsqlite3-dev"
*/
#include "auxiliar.hpp"
int main(int argc, char** argv)
{
open_DB();
create_DB();
//show_table(DB);
insert_and_delete();
select();
}
| 18.75 | 77 | 0.646667 | AnselmoGPP |
5e02cb452648e1cdacbba96b17d2a3c185f64586 | 723 | cpp | C++ | export.cpp | gonzavesc/convection_final | 39732bd55b2412bddd65844a8fb1b1dd92acfc1f | [
"MIT"
] | null | null | null | export.cpp | gonzavesc/convection_final | 39732bd55b2412bddd65844a8fb1b1dd92acfc1f | [
"MIT"
] | null | null | null | export.cpp | gonzavesc/convection_final | 39732bd55b2412bddd65844a8fb1b1dd92acfc1f | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cmath> //std::pow abs
#include <new>
#include <algorithm> //std::max
#include "read.hpp"
#include "initialize.hpp"
#include "export.hpp"
void exportarMatriu(const std::vector<std::vector<double>>& phi)
{
... | 20.083333 | 65 | 0.510373 | gonzavesc |
5e066777dfc60f0da529e4ab25352c5453c351a7 | 3,053 | cpp | C++ | lib/P2p/P2pNodeConfig.cpp | exploshot/qwc-test | 5d5cad4c73e0a61eb76c5d6ceddc635a1b062325 | [
"MIT"
] | null | null | null | lib/P2p/P2pNodeConfig.cpp | exploshot/qwc-test | 5d5cad4c73e0a61eb76c5d6ceddc635a1b062325 | [
"MIT"
] | 2 | 2019-11-01T16:08:44.000Z | 2019-11-27T23:41:19.000Z | lib/P2p/P2pNodeConfig.cpp | exploshot/qwc-test | 5d5cad4c73e0a61eb76c5d6ceddc635a1b062325 | [
"MIT"
] | null | null | null | // Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018-2019, The TurtleCoin Developers
// Copyright (c) 2018-2020, The Qwertycoin Project
//
// This file is part of Qwertycoin.
//
// Qwertycoin is free software: you can redistribute it and/or modify
// it under the terms of... | 31.153061 | 95 | 0.715689 | exploshot |
5e06eb0afee9526ee4e51da536046355a08a1468 | 1,138 | cc | C++ | classes/employee_class.cc | fsande/IB-class-code-examples | b883cc66c4d5f945b170ff61725dcf38f444bea8 | [
"MIT"
] | 4 | 2020-11-25T12:48:04.000Z | 2021-01-07T01:52:40.000Z | classes/employee_class.cc | fsande/IB-class-code-examples | b883cc66c4d5f945b170ff61725dcf38f444bea8 | [
"MIT"
] | null | null | null | classes/employee_class.cc | fsande/IB-class-code-examples | b883cc66c4d5f945b170ff61725dcf38f444bea8 | [
"MIT"
] | 17 | 2020-10-05T15:03:06.000Z | 2021-10-04T09:26:09.000Z | /**
* Universidad de La Laguna
* Escuela Superior de Ingeniería y Tecnología
* Grado en Ingeniería Informática
* Informática Básica
*
* @author F. de Sande
* @date 25 Jun 2020
* @brief Employee class Example
* In addition to holding data, classes can also contain functions!
* Functions defined ... | 25.863636 | 98 | 0.636204 | fsande |
5e08004176cabb67070e0c82bb50e852daf299f0 | 393 | cpp | C++ | Machine_learning/Neuron.cpp | mdragojevic/machine-learning-algorithms | 7c1917c137324e61eabfc3f936dc19b315d1aa7a | [
"Apache-2.0"
] | 1 | 2021-04-20T13:48:06.000Z | 2021-04-20T13:48:06.000Z | Machine_learning/Neuron.cpp | mdragojevic/machine-learning-algorithms | 7c1917c137324e61eabfc3f936dc19b315d1aa7a | [
"Apache-2.0"
] | null | null | null | Machine_learning/Neuron.cpp | mdragojevic/machine-learning-algorithms | 7c1917c137324e61eabfc3f936dc19b315d1aa7a | [
"Apache-2.0"
] | null | null | null | /*
* Neuron.cpp
*
* Created on: May 12, 2016
* Author: marija
*/
#include "Neuron.h"
using namespace std;
vector<Edge_key> Neuron::in_edges_keys(){
vector<Edge_key> v;
for (auto elem: edges_in) {
v.push_back(elem.first);
}
return v;
}
vector<Edge_key> Neuron::out_edges_keys(){
vector<Edge_key> v;
... | 14.555556 | 42 | 0.656489 | mdragojevic |
5e090349872eeb5ebfbacaa35cf9a186f6fea29c | 11,401 | cpp | C++ | src/navier_stokes/SpongeLayerForceFunction.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | 2 | 2017-12-06T06:16:36.000Z | 2021-03-13T12:28:08.000Z | src/navier_stokes/SpongeLayerForceFunction.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | src/navier_stokes/SpongeLayerForceFunction.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | // Filename: SpongeLayerForceFunction.cpp
// Created on 28 Oct 2011 by Boyce Griffith
//
// Copyright (c) 2002-2013, Boyce Griffith
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * R... | 40.429078 | 143 | 0.620998 | MSV-Project |
5e0a42aad38a7a811b6ba4a5e302da48833f8c39 | 410 | cpp | C++ | qtorch/quant/quant_cpu/sim_helper.cpp | drcut/QPyTorch | 63c293178e8ce9e6e5b218dee96536e9c4ad1e5c | [
"MIT"
] | null | null | null | qtorch/quant/quant_cpu/sim_helper.cpp | drcut/QPyTorch | 63c293178e8ce9e6e5b218dee96536e9c4ad1e5c | [
"MIT"
] | null | null | null | qtorch/quant/quant_cpu/sim_helper.cpp | drcut/QPyTorch | 63c293178e8ce9e6e5b218dee96536e9c4ad1e5c | [
"MIT"
] | null | null | null | #include "quant_cpu.h"
#include <math.h>
#include <stdint.h>
void fixed_min_max(int wl, int fl, bool symmetric, float* t_min, float* t_max) {
int sigma = -fl;
*t_min = -ldexp(1.0, wl-fl-1);
*t_max = -*t_min-ldexp(1.0, sigma);
if (symmetric) *t_min = *t_min+ldexp(1.0, sigma);
}
float round(float a, float r, in... | 22.777778 | 80 | 0.619512 | drcut |
5e0c5360fe650ce6853900162562497ca5f773a8 | 350 | cpp | C++ | Protected_Stack/hash.cpp | Great1ng/Huawei_Tasks | 21f855f30df9806f81d5cedf8cd314a633174be1 | [
"CC0-1.0"
] | null | null | null | Protected_Stack/hash.cpp | Great1ng/Huawei_Tasks | 21f855f30df9806f81d5cedf8cd314a633174be1 | [
"CC0-1.0"
] | null | null | null | Protected_Stack/hash.cpp | Great1ng/Huawei_Tasks | 21f855f30df9806f81d5cedf8cd314a633174be1 | [
"CC0-1.0"
] | null | null | null | #include "hash.h"
uint32_t OAT_Hash(const void* key, size_t len)
{
uint32_t hash = 0;
const byte* bytes = (const byte*)key;
for (size_t i = 0; i < len; i++) {
hash += bytes[i];
hash += hash << 10;
hash ^= hash >> 6;
}
hash += hash << 3;
hash ^= hash >> 11;
hash += h... | 19.444444 | 46 | 0.491429 | Great1ng |
5e106dd16214046776b1153f29af623dfcc8448d | 692 | cpp | C++ | YorozuyaGSLib/source/_ANIMUSKEY.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_ANIMUSKEY.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_ANIMUSKEY.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_ANIMUSKEY.hpp>
START_ATF_NAMESPACE
char _ANIMUSKEY::CovDBKey()
{
using org_ptr = char (WINAPIV*)(struct _ANIMUSKEY*);
return (org_ptr(0x1401bf2e0L))(this);
};
bool _ANIMUSKEY::IsFilled()
{
using org_ptr = bool (WINAPIV*)(struct _ANIMUSKEY*);
return (org_p... | 26.615385 | 66 | 0.622832 | lemkova |
5e179293ff7e7fcda4ad64c770f75334b2610b00 | 9,325 | cpp | C++ | src/lib/PVRTexture.cpp | keestux/tuxcap | 6298d14ad4dc57fd142d4c5f0ee2fa42cdd42bee | [
"MIT-0"
] | 2 | 2017-10-10T20:44:49.000Z | 2022-02-09T09:08:04.000Z | src/lib/PVRTexture.cpp | keestux/tuxcap | 6298d14ad4dc57fd142d4c5f0ee2fa42cdd42bee | [
"MIT-0"
] | null | null | null | src/lib/PVRTexture.cpp | keestux/tuxcap | 6298d14ad4dc57fd142d4c5f0ee2fa42cdd42bee | [
"MIT-0"
] | 2 | 2017-11-23T13:23:30.000Z | 2019-12-12T21:41:02.000Z | #include <assert.h>
#include "PVRTexture.h"
#include "Common.h"
#include "SexyAppBase.h"
#include "PakInterface.h"
#include "GLState.h"
#ifdef USE_OPENGLES
#include <SDL_opengles.h>
#else
#include <SDL_opengl.h>
#endif
enum
{
kPVRTextureFlagType565 = 2,
kPVRTextureFlagTypeOGL4444 = 16, // OGL_RGBA_4444
... | 30.374593 | 100 | 0.621233 | keestux |
5e187d26864debd62bd8356a62b99f85b337be61 | 7,199 | hpp | C++ | src/Array.hpp | sk409/HPC2018 | d189e7ff20f78e186b05079e5b4108fdbeccd890 | [
"FSFAP"
] | null | null | null | src/Array.hpp | sk409/HPC2018 | d189e7ff20f78e186b05079e5b4108fdbeccd890 | [
"FSFAP"
] | null | null | null | src/Array.hpp | sk409/HPC2018 | d189e7ff20f78e186b05079e5b4108fdbeccd890 | [
"FSFAP"
] | null | null | null | //------------------------------------------------------------------------------
/// @file
/// @author ハル研究所プログラミングコンテスト実行委員会
///
/// @copyright Copyright (c) 2018 HAL Laboratory, Inc.
/// @attention このファイルの利用は、同梱のREADMEにある
/// 利用条件に従ってください。
//-----------------------------------------------------------... | 29.028226 | 93 | 0.51396 | sk409 |
5e21e2988b51b400a27334c32236f4bb542a70db | 3,012 | cxx | C++ | Porter5/scripts/Predict_BRNN/NNt.cxx | LifeWorks/SIEVE | 8ba16402f0a15a0ae040d54cf2674e7d00ef4be0 | [
"BSD-2-Clause"
] | null | null | null | Porter5/scripts/Predict_BRNN/NNt.cxx | LifeWorks/SIEVE | 8ba16402f0a15a0ae040d54cf2674e7d00ef4be0 | [
"BSD-2-Clause"
] | null | null | null | Porter5/scripts/Predict_BRNN/NNt.cxx | LifeWorks/SIEVE | 8ba16402f0a15a0ae040d54cf2674e7d00ef4be0 | [
"BSD-2-Clause"
] | null | null | null |
// NNt ver. 3.02 (27/11/2003)
//
// Copyright (C) Gianluca Pollastri 2003
#include "NNt.h"
NNt::NNt(istream& is)
{
is >> NO >> NH >> NI >> NIr >> which >> outp >> inp;
upper= new Layer_tanh(is);
if (outp)
upper->set_output(1);
upper->set_ninput(2);
lower=new Layer_tanh(is);
lower... | 17.016949 | 56 | 0.570385 | LifeWorks |
5e22c0a9c4ebce38ccee3a665c2cce89646b12c1 | 920 | hpp | C++ | components/respawnWaves/ui/respawnTitle.hpp | Bubbus/CAyZ | d2e306243e0574c30326fcea2a342ed5b8feefdb | [
"Unlicense"
] | null | null | null | components/respawnWaves/ui/respawnTitle.hpp | Bubbus/CAyZ | d2e306243e0574c30326fcea2a342ed5b8feefdb | [
"Unlicense"
] | 18 | 2020-08-11T20:26:00.000Z | 2020-11-18T01:43:15.000Z | components/respawnWaves/ui/respawnTitle.hpp | Bubbus/CAyZ | d2e306243e0574c30326fcea2a342ed5b8feefdb | [
"Unlicense"
] | null | null | null | #include "../ui_macros.hpp"
class CA2_RespawnTitle
{
idd = 13176;
movingEnable = false;
enableSimulation = true;
fadein = 1;
duration = 7;
fadeout = 3;
onLoad = "_this call f_fnc_respawnTitle_onLoad;";
class ControlsBackground
{
class WelcomeBack: CA2_DefaultText
{
... | 20.909091 | 53 | 0.526087 | Bubbus |
5e22c6279cb882bd1bda4e5dd0fd48b87894b4e0 | 444 | cpp | C++ | baekjoon/9020/9020.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | 1 | 2019-07-15T00:27:37.000Z | 2019-07-15T00:27:37.000Z | baekjoon/9020/9020.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | baekjoon/9020/9020.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <math.h>
int isPrime(int m){
if (m == 1){
return 0;
}
if (m==2){
return 1;
}
int t = (int)(pow(m,0.5));
for (int i=2;i<=t+1;i++){
if (!(m % i)){
return 0;
}
}
return 1;
}
int main(){
int T,n,i;
scanf("%d",&T);
while(T--){
scanf("%d",&n);
... | 13.454545 | 38 | 0.40991 | 3-24 |
5e2779612420145b3146155819ab41d66199d001 | 2,274 | hpp | C++ | src/tests/test_subscriber.hpp | aaronchongth/ros2_tensorrt | e1947bc68d830168da833eac92dee402dad76908 | [
"MIT"
] | 3 | 2019-02-22T17:21:01.000Z | 2020-06-01T05:06:48.000Z | src/tests/test_subscriber.hpp | aaronchongth/ros2_tensorrt | e1947bc68d830168da833eac92dee402dad76908 | [
"MIT"
] | null | null | null | src/tests/test_subscriber.hpp | aaronchongth/ros2_tensorrt | e1947bc68d830168da833eac92dee402dad76908 | [
"MIT"
] | 1 | 2020-06-01T04:23:00.000Z | 2020-06-01T04:23:00.000Z | #pragma once
// STL
#include <chrono>
#include <iomanip>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
// ROS2
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/float32_multi_array.hpp"
using std::placeholders::_1;
using namespace std::chrono_literals;
// TensorRT
#include "tensorrt_bas... | 27.731707 | 80 | 0.658311 | aaronchongth |
5e28737df98468e85700f7e10073213004d1bb1d | 13,393 | cpp | C++ | emerald/sph2d_box/iisph_pseudo_ap_ops.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | 3 | 2020-08-16T17:56:25.000Z | 2021-02-25T21:55:39.000Z | emerald/sph2d_box/iisph_pseudo_ap_ops.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | null | null | null | emerald/sph2d_box/iisph_pseudo_ap_ops.cpp | blackencino/emerald | 3c4823dbdeff7c63007ff359d262608227f5433f | [
"Apache-2.0"
] | null | null | null | #include <emerald/sph2d_box/iisph_ap_ops.h>
#include <emerald/sph_common/common.h>
#include <emerald/sph_common/kernels.h>
#include <emerald/util/format.h>
#include <fmt/format.h>
#include <algorithm>
#include <atomic>
#include <utility>
namespace emerald::sph2d_box {
using namespace emerald::sph_common;
using nam... | 38.82029 | 80 | 0.632121 | blackencino |
5e2a071b6c455f913520888845636eb180451cd2 | 1,815 | hpp | C++ | include/Lys/GUIModule/GUI_Manager_Loader.hpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | include/Lys/GUIModule/GUI_Manager_Loader.hpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | include/Lys/GUIModule/GUI_Manager_Loader.hpp | Tigole/Lys-Framework | c7a51261b78c69fbfd823c1d20617ef13ca83a39 | [
"MIT"
] | null | null | null | #ifndef _GUI_MANAGER_LOADER_HPP
#define _GUI_MANAGER_LOADER_HPP 1
#include <string>
#include <vector>
#include "GUI_Element.hpp"
/*
class GUI_Element;
class XMLFileLoader;
class GUI_Manager;
class XML_Element;
class GUI_Interface;
class GUI_Layout;
class GUI_Button;
class GUI_Manager_Interface_Loader
{
public:
~GUI... | 26.691176 | 91 | 0.80551 | Tigole |
5e2a49f2f5550ddf2f7e2988c65aadd5f9e5e175 | 3,815 | cpp | C++ | tc 160+/TheSoccerDivOne.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/TheSoccerDivOne.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/TheSoccerDivOne.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <utility>
using namespace std;
int final;
int dp[50][201][201];
vector<int> A;
const int INF = 123456789;
int go(int p, int w, int d) {
... | 31.791667 | 309 | 0.448493 | ibudiselic |
5e33d169e46deaea1c4d0ad923b3c696fbc5db26 | 448 | hpp | C++ | pythran/pythonic/include/numpy/tri.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/tri.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/tri.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_NUMPY_TRI_HPP
#define PYTHONIC_INCLUDE_NUMPY_TRI_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/types/numpy_type.hpp"
#include "pythonic/types/ndarray.hpp"
namespace pythonic
{
namespace numpy
{
template <class dtype = double>
types::ndarray<typename types::numpy_type... | 20.363636 | 62 | 0.71875 | artas360 |
5e3478a846f15ef07ed7c0713a61970053d2d62e | 2,614 | cpp | C++ | Shaders/source/Camera.cpp | Cubes58/RenderEngine2.0 | 6585a105a8d849d5387a49d1d52db3f059a4128d | [
"MIT"
] | null | null | null | Shaders/source/Camera.cpp | Cubes58/RenderEngine2.0 | 6585a105a8d849d5387a49d1d52db3f059a4128d | [
"MIT"
] | null | null | null | Shaders/source/Camera.cpp | Cubes58/RenderEngine2.0 | 6585a105a8d849d5387a49d1d52db3f059a4128d | [
"MIT"
] | null | null | null | #include "Camera.h"
Camera::Camera(const glm::vec3 &p_Position, const glm::vec3 &p_Up, const float &p_Yaw, const float &p_Pitch) :
m_Front(glm::vec3(0.0f, 0.0f, -1.0f)), m_MovementSpeed(s_Speed), m_MouseSensitivity(s_Sensitivity), m_Zoom(s_Zoom) {
m_Position = p_Position;
m_WorldUp = p_Up;
m_Yaw = p_Yaw;
m_Pitch ... | 31.878049 | 196 | 0.721882 | Cubes58 |
5e3d00b336cfaa7e53cb2dfd052121ea67eaa88e | 5,195 | hxx | C++ | include/nifty/graph/undirected_graph_base.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | 38 | 2016-06-29T07:42:50.000Z | 2021-12-09T09:25:25.000Z | include/nifty/graph/undirected_graph_base.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 62 | 2016-07-27T16:07:53.000Z | 2022-03-30T17:24:36.000Z | include/nifty/graph/undirected_graph_base.hxx | tbullmann/nifty | 00119fd4753817b931272d6d3120b6ebd334882a | [
"MIT"
] | 20 | 2016-01-25T21:21:52.000Z | 2021-12-09T09:25:16.000Z | #pragma once
#include <boost/iterator/transform_iterator.hpp>
#include "nifty/graph/graph_tags.hxx"
#include "nifty/graph/graph_maps.hxx"
#include "nifty/tools/const_iterator_range.hxx"
namespace nifty{
namespace graph{
// \cond SUPPRESS_DOXYGEN
namespace detail_undirected_graph_base{
template<class GRAPH, cla... | 28.543956 | 105 | 0.686044 | konopczynski |
5e3f0cfeb91442460e22332281013266bf622ddd | 1,298 | cpp | C++ | Classes/Paddle.cpp | hrdk-dubal/arkanoid | c6edbe19a214a1ad9220e001f96c4f7b4e0e596b | [
"CC0-1.0"
] | null | null | null | Classes/Paddle.cpp | hrdk-dubal/arkanoid | c6edbe19a214a1ad9220e001f96c4f7b4e0e596b | [
"CC0-1.0"
] | null | null | null | Classes/Paddle.cpp | hrdk-dubal/arkanoid | c6edbe19a214a1ad9220e001f96c4f7b4e0e596b | [
"CC0-1.0"
] | null | null | null | #include "Paddle.h"
USING_NS_CC;
Paddle::Paddle(const Vec2& init_position, const Size& size,
const float left_bound, const float right_bound) :
GameEntity(init_position, size),
m_left_bound(left_bound),
m_right_bound(right_bound),
m_horizontal_velocity(800.0f),
m_movement_direction(PaddleMovement::move_no... | 24.961538 | 84 | 0.763482 | hrdk-dubal |
5e3f2e91b499db7033fa7ec1cf5c4a911da8578c | 426 | cc | C++ | Math/1492.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Math/1492.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | Math/1492.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | class Solution {
public:
int kthFactor(int n, int k) {
set<int> d;
for (int i=1; i<=sqrt(n); ++i){
if (n%i==0){
d.insert(i);
if (i<sqrt(n)){
d.insert(n/i);
}
}
}
if (d.size()<k) return -1;
... | 20.285714 | 39 | 0.316901 | guohaoqiang |
1e142af5d9f2de88ead5318a48a262942d6a4595 | 1,137 | hpp | C++ | cpp04/ex00/Cat.hpp | pgomez-a/42_CPP_Piscine | c350f5f3c2e4d332b13bfa632b36f9a4b7bc6ce1 | [
"MIT"
] | null | null | null | cpp04/ex00/Cat.hpp | pgomez-a/42_CPP_Piscine | c350f5f3c2e4d332b13bfa632b36f9a4b7bc6ce1 | [
"MIT"
] | null | null | null | cpp04/ex00/Cat.hpp | pgomez-a/42_CPP_Piscine | c350f5f3c2e4d332b13bfa632b36f9a4b7bc6ce1 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Cat.hpp :+: :+: :+: ... | 35.53125 | 80 | 0.217238 | pgomez-a |
1e186e57effdf33a459d094e2b3211fa4b231bd1 | 1,191 | cpp | C++ | src/RxAnimatedWidget.cpp | Reverier-Xu/RxWidgets | 080a795a69ca14e1c202fc6c26547787f56ee88c | [
"MIT"
] | null | null | null | src/RxAnimatedWidget.cpp | Reverier-Xu/RxWidgets | 080a795a69ca14e1c202fc6c26547787f56ee88c | [
"MIT"
] | null | null | null | src/RxAnimatedWidget.cpp | Reverier-Xu/RxWidgets | 080a795a69ca14e1c202fc6c26547787f56ee88c | [
"MIT"
] | null | null | null | //
// Created by reverier on 2020/7/20.
//
#include "RxAnimatedWidget.h"
void RxAnimatedWidget::doFold() {
if (isFolded() && this->m_animation.state() == QPropertyAnimation::Stopped) {
this->m_animation.setStartValue(foldValue());
this->m_animation.setEndValue(unfoldValue());
this->m_anima... | 33.083333 | 81 | 0.691856 | Reverier-Xu |
1e1dca32bf3aa1bbad3c34d359c367d49247f85e | 1,764 | cpp | C++ | src/ThirdParty/yaml/util/sandbox.cpp | xiaomingfun/TmingEngine | b81b822a4771c07908e1a72f5118a34552579d9e | [
"Apache-2.0"
] | 27 | 2018-05-21T14:28:10.000Z | 2021-12-31T03:12:35.000Z | src/ThirdParty/yaml/util/sandbox.cpp | xiaomingfun/TmingEngine | b81b822a4771c07908e1a72f5118a34552579d9e | [
"Apache-2.0"
] | 1 | 2019-05-28T15:27:52.000Z | 2019-05-28T15:27:52.000Z | src/ThirdParty/yaml/util/sandbox.cpp | xiaomingfun/TmingEngine | b81b822a4771c07908e1a72f5118a34552579d9e | [
"Apache-2.0"
] | 13 | 2019-11-08T12:48:44.000Z | 2022-01-04T04:13:33.000Z | #include <iostream>
#include "yaml-cpp/emitterstyle.h"
#include "yaml-cpp/eventhandler.h"
#include "yaml-cpp/yaml.h" // IWYU pragma: keep
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
// our data types //这个例子好像是取自开源游戏引擎ogre,随便说的
struct Vec3 { //位置坐标
float x, y, z;
};
... | 24.164384 | 108 | 0.588435 | xiaomingfun |
1e22954003a9ea493d892599a25536aa070308cf | 974 | cpp | C++ | Problems/geeksforgeeks/move-all-zeroes-to-end-of-array/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | Problems/geeksforgeeks/move-all-zeroes-to-end-of-array/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | 1 | 2019-05-09T19:17:00.000Z | 2019-05-09T19:17:00.000Z | Problems/geeksforgeeks/move-all-zeroes-to-end-of-array/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
void readArray(int* data, int size) {
for (int i = 0; i < size; i++)
cin >> data[i];
}
void printArray(int* data, int size) {
for (int i = 0; i < size; i++)
cout << data[i] << " ";
cout << endl;
}
void solution(int* src, int* dst, int size) {
/... | 19.098039 | 45 | 0.454825 | grand87 |
1e26155ac79d0b16a995ff7e1ffd5843c488c934 | 1,004 | cpp | C++ | src/strings.cpp | yasserhcn/cpp-building | 6f5e61270b47f2750a1abdd94977ef2d6205b430 | [
"MIT"
] | 1 | 2021-06-28T06:33:28.000Z | 2021-06-28T06:33:28.000Z | src/strings.cpp | yasserhcn/cpp-building | 6f5e61270b47f2750a1abdd94977ef2d6205b430 | [
"MIT"
] | 2 | 2021-05-26T19:32:38.000Z | 2021-11-14T12:15:17.000Z | src/strings.cpp | yasserhcn/cpp-building | 6f5e61270b47f2750a1abdd94977ef2d6205b430 | [
"MIT"
] | 1 | 2021-05-30T16:03:47.000Z | 2021-05-30T16:03:47.000Z | #include <strings.hpp>
int getCharIndex(std::string text, char character, uint16_t occurence)
{
uint16_t stringLength = text.length();
bool found = false;
uint16_t timesFound = 0;
for (uint16_t i = 0; i < text.length(); i++)
{
if(text[i] == character){
if(timesFound == occu... | 20.08 | 70 | 0.50996 | yasserhcn |
1e289e63a6a9d45cfcba9589eb02aba18f3b35b6 | 2,998 | hpp | C++ | include/ensmallen_bits/problems/schaffer_function_n2_impl.hpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-04-07T18:50:10.000Z | 2020-04-07T18:50:10.000Z | include/ensmallen_bits/problems/schaffer_function_n2_impl.hpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/ensmallen_bits/problems/schaffer_function_n2_impl.hpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2019-01-16T16:21:59.000Z | 2019-01-16T16:21:59.000Z | /**
* @file schaffer_function_n2_impl.hpp
* @author Suryoday Basak
*
* Implementation of Schaffer function N.2.
*
* ensmallen is free software; you may redistribute it and/or modify it under
* the terms of the 3-clause BSD license. You should have received a copy of
* the 3-clause BSD license along with ensmal... | 32.586957 | 77 | 0.679787 | ElianeBriand |
1e30266497955f21d0d8a83583caa1bbfa7e56e3 | 2,057 | hpp | C++ | include/codegen/include/GlobalNamespace/FileBrowserModel_--c__DisplayClass0_0.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/FileBrowserModel_--c__DisplayClass0_0.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/FileBrowserModel_--c__DisplayClass0_0.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: FileBrowserModel
#include "GlobalNamespace/FileBrowserM... | 36.087719 | 126 | 0.706855 | Futuremappermydud |
1e392e1487de0e1ad9226a8ebed14593102c2795 | 2,532 | cpp | C++ | app/src/main/cpp/BluetoothBarcodeScannerHandler.cpp | alexkmbk/AndroidTinyToolsFor1C | dfb5f6e99a4150d36ac93fc56255057be7f1f5ac | [
"MIT"
] | 13 | 2020-04-30T12:09:55.000Z | 2021-12-01T12:29:29.000Z | app/src/main/cpp/BluetoothBarcodeScannerHandler.cpp | alexkmbk/AndroidTinyToolsFor1C | dfb5f6e99a4150d36ac93fc56255057be7f1f5ac | [
"MIT"
] | 1 | 2021-11-15T03:22:20.000Z | 2021-11-15T03:22:20.000Z | app/src/main/cpp/BluetoothBarcodeScannerHandler.cpp | alexkmbk/AndroidTinyToolsFor1C | dfb5f6e99a4150d36ac93fc56255057be7f1f5ac | [
"MIT"
] | 3 | 2020-11-14T20:00:35.000Z | 2021-12-20T09:49:31.000Z | //
// Created by Alexey on 04.04.2021.
//
#include "BluetoothBarcodeScannerHandler.h"
#include <IAndroidComponentHelper.h>
#include "AddInDefBase.h"
#include "jnienv.h"
BluetoothBarcodeScannerHandler::~BluetoothBarcodeScannerHandler()
{
if (obj)
{
Stop(); // call to unregister broadcast receiver
... | 30.142857 | 124 | 0.622828 | alexkmbk |
1e39b4c62f3dc3ebcdb8cf536d896ea1e09edf14 | 9,540 | cc | C++ | util/coding/pb_writer.cc | romange/beeri | 60718d0f3133fffdf1500f8844852a79c91d8351 | [
"BSD-2-Clause"
] | 2 | 2015-01-07T06:34:25.000Z | 2019-01-25T10:11:24.000Z | util/coding/pb_writer.cc | romange/beeri | 60718d0f3133fffdf1500f8844852a79c91d8351 | [
"BSD-2-Clause"
] | null | null | null | util/coding/pb_writer.cc | romange/beeri | 60718d0f3133fffdf1500f8844852a79c91d8351 | [
"BSD-2-Clause"
] | 1 | 2019-01-25T10:11:28.000Z | 2019-01-25T10:11:28.000Z | // Copyright 2013, Beeri 15. All rights reserved.
// Author: Roman Gershman (romange@gmail.com)
//
#include "util/coding/pb_writer.h"
#include "strings/strcat.h"
#include "strings/stringprintf.h"
#include "util/coding/varint.h"
#include "util/sinksource.h"
namespace util {
namespace coding {
namespace {
inline uint... | 29.444444 | 92 | 0.647065 | romange |
1e405de2fe3425f0ca8bb3a565a7c34b177f89da | 493 | cpp | C++ | [179] Largest Number/179.largest-number.cpp | Coolzyh/Leetcode | 4abf685501427be0ce36b83016c4fa774cdf1a1a | [
"MIT"
] | null | null | null | [179] Largest Number/179.largest-number.cpp | Coolzyh/Leetcode | 4abf685501427be0ce36b83016c4fa774cdf1a1a | [
"MIT"
] | null | null | null | [179] Largest Number/179.largest-number.cpp | Coolzyh/Leetcode | 4abf685501427be0ce36b83016c4fa774cdf1a1a | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=179 lang=cpp
*
* [179] Largest Number
*/
// @lc code=start
class Solution {
public:
string largestNumber(vector<int>& nums) {
vector<string> arr;
for(auto i: nums)
arr.push_back(to_string(i));
sort(begin(arr), end(arr), [](string &s1, string &s2){ re... | 20.541667 | 86 | 0.51927 | Coolzyh |
1e43ed73ea0649f6ccc6e0dc4cc9b77ee50bc051 | 916 | hpp | C++ | Core/SDLCommon.hpp | dvijayak/pen31ope | dc07e5f1405d668c8ab0b1514035d97b78744519 | [
"MIT"
] | null | null | null | Core/SDLCommon.hpp | dvijayak/pen31ope | dc07e5f1405d668c8ab0b1514035d97b78744519 | [
"MIT"
] | null | null | null | Core/SDLCommon.hpp | dvijayak/pen31ope | dc07e5f1405d668c8ab0b1514035d97b78744519 | [
"MIT"
] | null | null | null | #ifndef SDLCommon_hpp
#define SDLCommon_hpp
#include <cassert>
#include "SDL.h"
/// Smart lifetime containers of various structs
struct SDLSurface
{
SDLSurface(SDL_Surface* p) : m_resource(p)
{
assert(p != nullptr);
}
~SDLSurface()
{
SDL_FreeSurface(m_resource);
}
SDL_Surface* get... | 14.539683 | 51 | 0.616812 | dvijayak |
1e448c96dbfc0ae1403e6e4c04d4adc6ec7fd364 | 1,139 | cpp | C++ | client/src/core/webgl/GLUniform.cpp | jsonxr/blockworld | aa005b254e6796ca3c03bc6da4a15764ac4da2d5 | [
"MIT"
] | null | null | null | client/src/core/webgl/GLUniform.cpp | jsonxr/blockworld | aa005b254e6796ca3c03bc6da4a15764ac4da2d5 | [
"MIT"
] | null | null | null | client/src/core/webgl/GLUniform.cpp | jsonxr/blockworld | aa005b254e6796ca3c03bc6da4a15764ac4da2d5 | [
"MIT"
] | null | null | null | //
// Created by Jason Rowland on 2/11/22.
//
#include "GLUniform.h"
namespace app {
void GLUniform::apply() {
// Don't apply the uniform if it is what it is
if (current_value_ == value_) {
return;
}
// Uniform types
// https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glGetActiveUniform.xhtml... | 22.333333 | 87 | 0.599649 | jsonxr |
1e48ae2bbb7040d91a56918f030eedabb005fc33 | 13,585 | cpp | C++ | source/emptyexample/PhysicallyBasedRenderingExample.cpp | Daniel-Amadeus/PBR | 653441f70331de571f92cb15e9baf9bacfee951f | [
"MIT"
] | 1 | 2015-11-20T11:41:24.000Z | 2015-11-20T11:41:24.000Z | source/emptyexample/PhysicallyBasedRenderingExample.cpp | Daniel-Amadeus/PBR | 653441f70331de571f92cb15e9baf9bacfee951f | [
"MIT"
] | null | null | null | source/emptyexample/PhysicallyBasedRenderingExample.cpp | Daniel-Amadeus/PBR | 653441f70331de571f92cb15e9baf9bacfee951f | [
"MIT"
] | null | null | null | #include "PhysicallyBasedRenderingExample.h"
#include <glm/gtc/constants.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glbinding/gl/enum.h>
#include <glbinding/gl/bitfield.h>
#include <globjects/globjects.h>
#include <globjects/logging.h>
#include <globjects/DebugMessage.h>
#include <globjects/Program.h>
#i... | 29.027778 | 137 | 0.746264 | Daniel-Amadeus |
1e5295683ca853d509b5a4bd4557dfbefedf5bc5 | 1,610 | cpp | C++ | ReplaceSpaces.cpp | vibiu/SwordOfOffer | 6daa7d108a4f043353d372e835a1f8923c933dcc | [
"BSD-3-Clause"
] | 1 | 2020-05-14T13:59:11.000Z | 2020-05-14T13:59:11.000Z | ReplaceSpaces.cpp | vibiu/SwordOfOffer | 6daa7d108a4f043353d372e835a1f8923c933dcc | [
"BSD-3-Clause"
] | null | null | null | ReplaceSpaces.cpp | vibiu/SwordOfOffer | 6daa7d108a4f043353d372e835a1f8923c933dcc | [
"BSD-3-Clause"
] | null | null | null | #include <cstdio>
#include <cstring>
#include "ReplaceSpaces.h"
void ReplaceBlank(char str[], int length)
{
if (str == nullptr && length <= 0)
return;
/*originalLength 为字符串str的实际长度*/
int originalLength = 0;
int numberOfBlank = 0;
int i = 0;
while (str[i] != '\0')
{
++origi... | 22.361111 | 91 | 0.549689 | vibiu |
1e52e890ed966f619cab3c2b912d4c6bb0728065 | 37,325 | cpp | C++ | TiCore/parser/Lexer.cpp | vishalduggal/tijscore | 0b20b5731766628109bdd2c657558de9d5a976ec | [
"MS-PL",
"Naumen",
"Condor-1.1",
"Apache-1.1"
] | null | null | null | TiCore/parser/Lexer.cpp | vishalduggal/tijscore | 0b20b5731766628109bdd2c657558de9d5a976ec | [
"MS-PL",
"Naumen",
"Condor-1.1",
"Apache-1.1"
] | null | null | null | TiCore/parser/Lexer.cpp | vishalduggal/tijscore | 0b20b5731766628109bdd2c657558de9d5a976ec | [
"MS-PL",
"Naumen",
"Condor-1.1",
"Apache-1.1"
] | null | null | null | /**
* Appcelerator Titanium License
* This source code and all modifications done by Appcelerator
* are licensed under the Apache Public License (version 2) and
* are Copyright (c) 2009-2012 by Appcelerator, Inc.
*/
/*
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
* Copyright (C) 2006, 2007, 2008, 2... | 29.482622 | 129 | 0.538915 | vishalduggal |
1e63204323970519a2b4a87c02c96b6886b5ed48 | 8,654 | cpp | C++ | Interface/ViewModerate.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | 1 | 2016-05-22T21:28:29.000Z | 2016-05-22T21:28:29.000Z | Interface/ViewModerate.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | Interface/ViewModerate.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | /*
ViewModerate.cpp
(c)2000 Palestar, Richard Lyle
*/
#include "Debug/Assert.h"
#include "Standard/Time.h"
#include "Interface/ViewModerate.h"
//----------------------------------------------------------------------------
IMPLEMENT_FACTORY( ViewModerate, WindowView::View );
REGISTER_FACTORY_KEY( ViewModerate, 4420... | 26.709877 | 142 | 0.670326 | SnipeDragon |
1e68c428f94ce7b69d6403b09fc237903bb8e571 | 858 | cpp | C++ | StudentResult.cpp | codesAliecc/hacktoberfest2021 | 2f3e5e318ab5834131c6aab75185a1b67e748b79 | [
"Unlicense"
] | null | null | null | StudentResult.cpp | codesAliecc/hacktoberfest2021 | 2f3e5e318ab5834131c6aab75185a1b67e748b79 | [
"Unlicense"
] | null | null | null | StudentResult.cpp | codesAliecc/hacktoberfest2021 | 2f3e5e318ab5834131c6aab75185a1b67e748b79 | [
"Unlicense"
] | null | null | null | #include<iostream>
using namespace std;
class Student
{
protected :
float id,m1,m2,m3;
char name[50];
public :
void getData()
{
cout<<"Enter Student Id : ";
cin>>id;
cout<<"Enter Student Name : ";
cin.ignore();
cin.getline(name,50);
//cin>>name;
cout<<"Enter Math... | 13.619048 | 36 | 0.508159 | codesAliecc |
1e739cc70564a80af79c11371f40a0924150c994 | 4,127 | cpp | C++ | Plugins/org.mitk.gui.qt.common/src/QmitkNodeSelectionPreferenceHelper.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | 1 | 2021-11-20T08:19:27.000Z | 2021-11-20T08:19:27.000Z | Plugins/org.mitk.gui.qt.common/src/QmitkNodeSelectionPreferenceHelper.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | Plugins/org.mitk.gui.qt.common/src/QmitkNodeSelectionPreferenceHelper.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 33.282258 | 112 | 0.714078 | wyyrepo |
1e8103c29ba5679084051da068cd3736d6c2aab5 | 2,948 | cpp | C++ | number/test/sieve.stress.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 20 | 2021-06-21T00:18:54.000Z | 2022-03-17T17:45:44.000Z | number/test/sieve.stress.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 56 | 2021-06-03T14:42:13.000Z | 2022-03-26T14:15:30.000Z | number/test/sieve.stress.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 3 | 2019-12-11T06:45:45.000Z | 2020-09-07T13:45:32.000Z | #define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_A" // DUMMY
#include "../sieve.hpp"
#include "../modint_runtime.hpp"
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
struct Case {
int SIEVE_SIZE;
int MAX;
};
... | 29.188119 | 93 | 0.536296 | ankit6776 |
1e85316186abffe4885ac981844cf0a0423a2049 | 21,448 | cpp | C++ | src/serialloader.cpp | totalspectrum/PropLoader | 23a037255f857dd45f3a2cb50ff68e83d8a7d483 | [
"MIT"
] | null | null | null | src/serialloader.cpp | totalspectrum/PropLoader | 23a037255f857dd45f3a2cb50ff68e83d8a7d483 | [
"MIT"
] | null | null | null | src/serialloader.cpp | totalspectrum/PropLoader | 23a037255f857dd45f3a2cb50ff68e83d8a7d483 | [
"MIT"
] | 1 | 2018-12-01T04:43:09.000Z | 2018-12-01T04:43:09.000Z | /* Propeller WiFi loader
Based on Jeff Martin's Pascal loader and Mike Westerfield's iOS loader.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include "serialprop2connection.h"
#include "loader.h"
#include "proploader.h"
#define MAX_BUFFER_SIZE 32768 ... | 45.440678 | 131 | 0.57721 | totalspectrum |
1e86973f99cc3cc511e4ce33d08b3fd47e6191a5 | 1,857 | cc | C++ | compiler/emit/cast.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | compiler/emit/cast.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | compiler/emit/cast.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | null | null | null | #include "ast/ast.h"
#include "compiler/compiler.h"
#include "compiler/emit/compiler_common.h"
#include "compiler/emit/copy_move_assignment.h"
#include "compiler/emit/initialize.h"
#include "ir/value/char.h"
namespace compiler {
void Compiler::EmitCopyInit(
ast::Cast const *node,
absl::Span<type::Typed<ir::Re... | 30.442623 | 63 | 0.679052 | asoffer |
1e8b6488500802ad52922060845e8b86c8165431 | 1,761 | cpp | C++ | ImgReconstruction/Core/Structures/CImagePatch.cpp | SanCHEESE/ImgBlurRemoval | 0d92eee97ed26a503ead9f4802025a2d73498fdd | [
"MIT"
] | 1 | 2016-01-06T16:03:52.000Z | 2016-01-06T16:03:52.000Z | ImgReconstruction/Core/Structures/CImagePatch.cpp | SanCHEESE/ImgReconstruction | 0d92eee97ed26a503ead9f4802025a2d73498fdd | [
"MIT"
] | null | null | null | ImgReconstruction/Core/Structures/CImagePatch.cpp | SanCHEESE/ImgReconstruction | 0d92eee97ed26a503ead9f4802025a2d73498fdd | [
"MIT"
] | null | null | null | //
// CImagePatch.cpp
// ImgReconstruction
//
// Created by Alexander Bochkarev on 24.10.15.
// Copyright © 2015 Alexander Bochkarev. All rights reserved.
//
#include "CImagePatch.h"
#pragma mark - Public
double CImagePatch::BlurValue(const IBlurMeasurer *const measurer)
{
if (_blurValue < 0) {
_blur... | 21.740741 | 82 | 0.670642 | SanCHEESE |
1e9054977208d2bcdab09a20d83ca43e05b79c79 | 739 | cpp | C++ | 2nd/108_convert_sorted_array_to_binary_search_tree.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/108_convert_sorted_array_to_binary_search_tree.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | 2nd/108_convert_sorted_array_to_binary_search_tree.cpp | buptlxb/leetcode | b641419de040801c4f54618d7ee26edcf10ee53c | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
typedef vector<int>::iterator Iter;
TreeNode* sortedArrayToBST(vector<int>& nums) {
r... | 21.735294 | 58 | 0.604871 | buptlxb |
1e91bae48ef799116cb21b267e3d405e7f84f398 | 1,007 | hh | C++ | elements/ctx/ipout.hh | regufo/fastclick | d56d31c722266ea5d0cfd31435e81ca10dda5e69 | [
"BSD-3-Clause-Clear"
] | null | null | null | elements/ctx/ipout.hh | regufo/fastclick | d56d31c722266ea5d0cfd31435e81ca10dda5e69 | [
"BSD-3-Clause-Clear"
] | null | null | null | elements/ctx/ipout.hh | regufo/fastclick | d56d31c722266ea5d0cfd31435e81ca10dda5e69 | [
"BSD-3-Clause-Clear"
] | null | null | null | #ifndef MIDDLEBOX_IPOUT_HH
#define MIDDLEBOX_IPOUT_HH
#include <click/element.hh>
#include <click/ipelement.hh>
#include "ctxelement.hh"
CLICK_DECLS
/*
=c
IPOut()
=s middlebox
exit point of an IP path in the stack of the middlebox
=d
This element is the exit point of an IP path in the stack of the middlebox by w... | 21.425532 | 98 | 0.713009 | regufo |
1e993b6b27929f5f5f1f68041b10073d488789cc | 2,601 | cc | C++ | 4/4.04-threading-misc-histogram/solutions/instruction-05/main.cc | reble/HOW-Series-Labs | 9e487be19ea8f16c8534825cb4cf9a31d8f0e93c | [
"MIT"
] | 29 | 2017-01-16T17:23:40.000Z | 2022-01-21T13:56:24.000Z | 4/4.04-threading-misc-histogram/solutions/instruction-05/main.cc | reble/HOW-Series-Labs | 9e487be19ea8f16c8534825cb4cf9a31d8f0e93c | [
"MIT"
] | null | null | null | 4/4.04-threading-misc-histogram/solutions/instruction-05/main.cc | reble/HOW-Series-Labs | 9e487be19ea8f16c8534825cb4cf9a31d8f0e93c | [
"MIT"
] | 20 | 2017-01-13T01:12:02.000Z | 2021-04-13T15:54:37.000Z | #include <cstdio>
#include <omp.h>
#include <cmath>
#include "rngutil.h"
void HistogramReference(const float* age, int* const group, const int n,
const float group_width){
// Plain (scalar, sequentual) algorithm for computing the reference histogram
for (long i = 0; i < n; i++){
const int j = (int)... | 31.719512 | 88 | 0.549404 | reble |
1e9ea077dae0f241513b7317596ba996c6db61dc | 6,323 | hpp | C++ | include/cglass/object.hpp | Betterton-Lab/C-GLASS | 56f7b93cd7383e4487b4c6ba5a1d8c556d9937cc | [
"BSD-3-Clause"
] | 4 | 2020-05-23T18:56:31.000Z | 2022-01-13T04:06:50.000Z | include/cglass/object.hpp | Betterton-Lab/C-GLASS | 56f7b93cd7383e4487b4c6ba5a1d8c556d9937cc | [
"BSD-3-Clause"
] | 5 | 2020-06-30T17:32:03.000Z | 2021-04-02T20:18:33.000Z | include/cglass/object.hpp | Betterton-Lab/C-GLASS | 56f7b93cd7383e4487b4c6ba5a1d8c556d9937cc | [
"BSD-3-Clause"
] | 2 | 2020-11-11T19:57:11.000Z | 2021-03-18T01:55:37.000Z | #ifndef _CGLASS_OBJECT_H_
#define _CGLASS_OBJECT_H_
#include "auxiliary.hpp"
#include "interaction.hpp"
#include "rng.hpp"
#include <mutex>
class Object {
private:
int comp_id_;
static int _next_oid_;
static std::mutex _obj_mtx_;
void InitOID();
Object *comp_ptr_; // If part of a composite
protected:
int... | 32.761658 | 76 | 0.748853 | Betterton-Lab |
1ea1c3553cd2970df72c64157aa028f9ea0ed04e | 1,672 | cpp | C++ | typekits/rtt_ros2_primitives_typekit/src/typekit/ros2_wstring_type.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 14 | 2020-06-12T14:48:40.000Z | 2022-03-22T08:57:41.000Z | typekits/rtt_ros2_primitives_typekit/src/typekit/ros2_wstring_type.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 15 | 2020-06-12T15:57:09.000Z | 2021-09-08T18:26:19.000Z | typekits/rtt_ros2_primitives_typekit/src/typekit/ros2_wstring_type.cpp | gborghesan/rtt_ros2_integration | 6c03adc69e1bac3c8ad07d19e1814054f30f6936 | [
"Apache-2.0"
] | 3 | 2020-12-02T09:11:23.000Z | 2021-11-29T11:06:27.000Z | // Copyright 2020 Intermodalics BVBA
//
// 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... | 42.871795 | 82 | 0.782297 | gborghesan |
1eb4122d810eb2f11aadd5686917f35715ea49ee | 443 | hpp | C++ | etcd/v3/AsyncRangeResponse.hpp | siyuan0322/etcd-cpp-apiv3 | 1575c5b43a64f85f77897e9b5aad24e6523ea453 | [
"BSD-3-Clause"
] | 139 | 2016-09-20T00:28:04.000Z | 2020-09-27T15:05:11.000Z | etcd/v3/AsyncRangeResponse.hpp | siyuan0322/etcd-cpp-apiv3 | 1575c5b43a64f85f77897e9b5aad24e6523ea453 | [
"BSD-3-Clause"
] | 85 | 2020-09-29T16:33:00.000Z | 2022-03-30T01:23:23.000Z | etcd/v3/AsyncRangeResponse.hpp | siyuan0322/etcd-cpp-apiv3 | 1575c5b43a64f85f77897e9b5aad24e6523ea453 | [
"BSD-3-Clause"
] | 63 | 2016-12-06T11:42:29.000Z | 2020-09-24T06:15:49.000Z | #ifndef __ASYNC_RANGERESPONSE_HPP__
#define __ASYNC_RANGERESPONSE_HPP__
#include <grpc++/grpc++.h>
#include "proto/rpc.grpc.pb.h"
#include "etcd/v3/V3Response.hpp"
using grpc::ClientAsyncResponseReader;
using etcdserverpb::RangeResponse;
namespace etcdv3
{
class AsyncRangeResponse : public etcdv3::V3Response
{
... | 19.26087 | 65 | 0.749436 | siyuan0322 |
1ebd164712e7bf28bfc697ba4f4c7d352c39b043 | 407 | cpp | C++ | Wonderland/Wonderland/Editor/Support/Container/Array/BinaryArray.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 3 | 2018-04-09T13:01:07.000Z | 2021-03-18T12:28:48.000Z | Wonderland/Wonderland/Editor/Support/Container/Array/BinaryArray.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | null | null | null | Wonderland/Wonderland/Editor/Support/Container/Array/BinaryArray.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 1 | 2021-03-18T12:28:50.000Z | 2021-03-18T12:28:50.000Z | ///////////////////////////////////////////////////////////////////////////////
// Filename: BinaryArray.cpp
///////////////////////////////////////////////////////////////////////////////
#include "BinaryArray.h"
/*
BinaryArray::BinaryArray()
{
}
BinaryArray::BinaryArray(const BinaryArray& other)
{
}
BinaryArray::... | 15.074074 | 79 | 0.425061 | RodrigoHolztrattner |
362ff630213f881d7daeb0020ec649211c637eac | 392 | hpp | C++ | src/Scenes/CutScenes/controlsGuide.hpp | PierrickLP/PopHead | 0c2ddd6d737f556b3f74b91b937b023c8e8010f0 | [
"MIT"
] | null | null | null | src/Scenes/CutScenes/controlsGuide.hpp | PierrickLP/PopHead | 0c2ddd6d737f556b3f74b91b937b023c8e8010f0 | [
"MIT"
] | null | null | null | src/Scenes/CutScenes/controlsGuide.hpp | PierrickLP/PopHead | 0c2ddd6d737f556b3f74b91b937b023c8e8010f0 | [
"MIT"
] | null | null | null | #pragma once
#include "Scenes/cutScene.hpp"
namespace ph {
class GUI;
class SceneManager;
class ContolsGuide : public CutScene
{
public:
ContolsGuide(GameObject& root, GUI&, SceneManager&);
void update(const sf::Time delta);
private:
void closeCutscene();
private:
sf::Clock mTimeSinceLastSkipPress;
GUI& mGu... | 14 | 53 | 0.752551 | PierrickLP |
3636d19a3b258599c7b1cfec0f9cfbe41cc6078d | 2,105 | cpp | C++ | src/guide/brush.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2017-06-16T19:27:55.000Z | 2020-04-05T02:18:07.000Z | src/guide/brush.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | null | null | null | src/guide/brush.cpp | rzvdaniel/GUI- | 1501b54a038f7e3f66d683f125fa53d3ab73672c | [
"MIT"
] | 2 | 2019-09-03T19:23:20.000Z | 2020-08-29T21:46:17.000Z | #define N_IMPLEMENTS TBrush
//-------------------------------------------------------------------
// brush.cpp
// (C) 2002 R.Predescu
//-------------------------------------------------------------------
#include "guide/brush.h"
#include "guide/debug.h"
//-------------------------------------------------------------... | 27.697368 | 69 | 0.300238 | rzvdaniel |
363ee7b238945488b8c3af4f6004b8933e4c13eb | 2,249 | hpp | C++ | pdatastructures/stacks/TMLinkedListFatStackByRef.hpp | pramalhe/durabletx | 9ae79090e5cb20068c995f27c558414f78abc256 | [
"MIT"
] | 9 | 2021-03-15T01:54:48.000Z | 2022-03-05T03:00:44.000Z | pdatastructures/stacks/TMLinkedListFatStackByRef.hpp | pramalhe/durabletx | 9ae79090e5cb20068c995f27c558414f78abc256 | [
"MIT"
] | null | null | null | pdatastructures/stacks/TMLinkedListFatStackByRef.hpp | pramalhe/durabletx | 9ae79090e5cb20068c995f27c558414f78abc256 | [
"MIT"
] | null | null | null | /*
* Copyright 2017-2020
* Andreia Correia <andreia.veiga@unine.ch>
* Pedro Ramalhete <pramalhe@gmail.com>
* Pascal Felber <pascal.felber@unine.ch>
*
* This work is published under the MIT license. See LICENSE.txt
*/
#ifndef _TM_LINKED_LIST_FAT_STACK_BY_REF_H_
#define _TM_LINKED_LIST_FAT_STACK_BY_REF_H_
#... | 25.556818 | 96 | 0.538017 | pramalhe |
3642339adb15a3202c26163a12028b362eee29e5 | 1,041 | cpp | C++ | codeforces/A - Boredom/Wrong answer on test 5 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Boredom/Wrong answer on test 5 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Boredom/Wrong answer on test 5 (2).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Sep/26/2017 23:05
* solution_verdict: Wrong answer on test 5 language: GNU C++14
* run... | 35.896552 | 111 | 0.365994 | kzvd4729 |
364631312b328f1f2a996e08edd1097f95ac6942 | 2,034 | hpp | C++ | include/runner.hpp | pmqtt/purge | 910d4b85e27235c66a6a3ca11059f27ce4d8f56a | [
"Apache-2.0"
] | null | null | null | include/runner.hpp | pmqtt/purge | 910d4b85e27235c66a6a3ca11059f27ce4d8f56a | [
"Apache-2.0"
] | null | null | null | include/runner.hpp | pmqtt/purge | 910d4b85e27235c66a6a3ca11059f27ce4d8f56a | [
"Apache-2.0"
] | null | null | null | //
// Created by Michael Burzan on 03.07.20.
//
#ifndef PURGE_RUNNER_HPP
#define PURGE_RUNNER_HPP
#include "test_registry.hpp"
#include "fuzzer.hpp"
#include <unistd.h>
#include <signal.h>
#include "log_book.hpp"
namespace purge{
class runner{
public:
runner(int argc,char **argv){
}
vo... | 31.78125 | 133 | 0.534907 | pmqtt |
36465069302a582c03b0c2a31274b34c71029d31 | 183 | cpp | C++ | f area.cpp | taareek/c-plus-plus | b9d04f710e9b2e65786618f8bbced4a56c149444 | [
"Unlicense"
] | null | null | null | f area.cpp | taareek/c-plus-plus | b9d04f710e9b2e65786618f8bbced4a56c149444 | [
"Unlicense"
] | null | null | null | f area.cpp | taareek/c-plus-plus | b9d04f710e9b2e65786618f8bbced4a56c149444 | [
"Unlicense"
] | null | null | null | #include<iostream>
using namespace std;
float areaOfcircle(float r){
float a=3.1416*r*r;
return a;
}
int main(){
float x,y;
cin>>x;
y=areaOfcircle(x);
cout<<"Area="<<y;
}
| 14.076923 | 29 | 0.63388 | taareek |
3646e5bd967401289d82609c5b89df583e24e4c9 | 5,122 | hpp | C++ | include/GuiCode/ui/components/text/TextDisplayer.hpp | KaixoCode/GuiCode | a332f74ac4007c0b381a05e45a27c61425827b83 | [
"MIT"
] | 1 | 2022-03-31T20:25:44.000Z | 2022-03-31T20:25:44.000Z | include/GuiCode/ui/components/text/TextDisplayer.hpp | KaixoCode/GuiCode | a332f74ac4007c0b381a05e45a27c61425827b83 | [
"MIT"
] | null | null | null | include/GuiCode/ui/components/text/TextDisplayer.hpp | KaixoCode/GuiCode | a332f74ac4007c0b381a05e45a27c61425827b83 | [
"MIT"
] | null | null | null | #pragma once
#include "GuiCode/pch.hpp"
#include "GuiCode/ui/components/panels/Panel.hpp"
#include "GuiCode/ui/components/text/TextContainer.hpp"
#include "GuiCode/ui/graphics/Graphics.hpp"
#include "GuiCode/ui/Clipboard.hpp"
// --------------------------------------------------------------------------
// ------------... | 21.165289 | 92 | 0.624756 | KaixoCode |
364997d340490443d43951bc6a6f595e9b534c9b | 942 | cpp | C++ | cpp/segment_trees/combtree.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 8 | 2016-06-05T19:19:27.000Z | 2019-05-14T10:33:37.000Z | cpp/segment_trees/combtree.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 2 | 2017-02-21T12:38:27.000Z | 2018-01-28T20:05:00.000Z | cpp/segment_trees/combtree.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 6 | 2015-12-26T21:12:17.000Z | 2022-03-26T21:40:17.000Z | class segtree{
struct e {
int a, b;
};
public:
int n; // array size
vector<e> t;
const e null_e = {-1000000000, -1000000000};
e combine(e l, e r) {
return (l.a > r.a) ? l : r;
}
void build(vector<e> &v) { // build the tree
for (int i = n; i < 2 * n; i++) t[i] = v[i - n]... | 24.153846 | 78 | 0.430998 | petuhovskiy |
364c577baf700d8e7df5bd26b977225b7b10ee35 | 2,216 | hpp | C++ | Phasor/Common/tuple-iterate.hpp | ChadSki/Phasor | 4a7f1d95cc8552714a550404b8e1b82347ceb3da | [
"MIT"
] | 7 | 2015-02-12T10:36:35.000Z | 2021-11-23T18:22:14.000Z | Phasor/Common/tuple-iterate.hpp | th3w1zard1/Phasor | bd2594e8398fefcafe105eea4996a7f37516de68 | [
"MIT"
] | 9 | 2015-01-09T02:15:02.000Z | 2017-03-27T01:00:03.000Z | Phasor/Common/tuple-iterate.hpp | th3w1zard1/Phasor | bd2594e8398fefcafe105eea4996a7f37516de68 | [
"MIT"
] | 8 | 2015-01-04T04:49:11.000Z | 2021-01-15T10:04:07.000Z | #include <tuple>
namespace TupleHelpers {
template<std::size_t I, typename... Tp>
struct forward_comparator
{
static const bool value = (I < sizeof...(Tp));
static const std::size_t start = 0;
static const std::size_t next = I + 1;
};
template<std::size_t I, typename... Tp>
struct reverse_comparator
{
... | 24.351648 | 68 | 0.625 | ChadSki |
364f15373315403bf861111cd69f5b2ab2044c36 | 159 | cpp | C++ | QTreplacer/TemplateWindow.cpp | alohaeee/QTreplacer | 70eb2b67bfb36579020707eb053b82b7adaebcab | [
"MIT"
] | null | null | null | QTreplacer/TemplateWindow.cpp | alohaeee/QTreplacer | 70eb2b67bfb36579020707eb053b82b7adaebcab | [
"MIT"
] | null | null | null | QTreplacer/TemplateWindow.cpp | alohaeee/QTreplacer | 70eb2b67bfb36579020707eb053b82b7adaebcab | [
"MIT"
] | null | null | null | #include "TemplateWindow.h"
TemplateWindow::TemplateWindow(QWidget *parent)
: QDialog(parent)
{
ui.setupUi(this);
}
TemplateWindow::~TemplateWindow()
{
}
| 12.230769 | 47 | 0.735849 | alohaeee |
3656c08e57539901d28206c55451cd28118110cf | 8,359 | cc | C++ | Source/Plugins/SubsystemPlugins/BladeGraphics/source/Material.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Source/Plugins/SubsystemPlugins/BladeGraphics/source/Material.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Source/Plugins/SubsystemPlugins/BladeGraphics/source/Material.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2010/05/05
filename: Material.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include <Material.h>
#include <Technique.h>
#include <Pass.h>
namespace Blade
{
t... | 28.923875 | 134 | 0.552937 | OscarGame |
366b46b6fb069a24348123a8308e41dfba2380be | 1,280 | hpp | C++ | src/interface/pid_controller/include/pid_controller/PidControllerNode.hpp | Nova-UTD/navigator | 1db2c614f9c53fb012842b8653ae1bed58a7ffdf | [
"Apache-2.0"
] | 11 | 2021-11-26T14:06:51.000Z | 2022-03-18T16:49:33.000Z | src/interface/pid_controller/include/pid_controller/PidControllerNode.hpp | Nova-UTD/navigator | 1db2c614f9c53fb012842b8653ae1bed58a7ffdf | [
"Apache-2.0"
] | 222 | 2021-10-29T22:00:27.000Z | 2022-03-29T20:56:34.000Z | src/interface/pid_controller/include/pid_controller/PidControllerNode.hpp | Voltron-UTD/vde | 57e3c7e0363b82ccb875dbce34a8496c2ff1218a | [
"MIT"
] | 1 | 2021-08-13T08:30:25.000Z | 2021-08-13T08:30:25.000Z | /*
* Package: pid_controller
* Filename: PidControllerNode.hpp
* Author: Joshua Williams
* Email: joshmackwilliams@protonmail.com
* Copyright: 2021, Voltron UTD
* License: MIT License
*/
#pragma once
#include <chrono>
#include <memory>
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/float32.hp... | 25.6 | 94 | 0.774219 | Nova-UTD |
366ef9fcc09a0efdda9ce10ffd956d70e25f4ab7 | 1,652 | hpp | C++ | bt-maxsat/staticset.hpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | 1 | 2019-06-28T23:24:57.000Z | 2019-06-28T23:24:57.000Z | bt-maxsat/staticset.hpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | bt-maxsat/staticset.hpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "utils.hpp"
namespace triangulator {
// Interface
template<typename T>
class StaticSet {
public:
StaticSet();
explicit StaticSet(const std::vector<T>& values);
explicit StaticSet(const std::vector<std::pair<T, T> >& values);
void Init(const std::vector<T>& values);
v... | 21.736842 | 83 | 0.685835 | Laakeri |
3671ea6fcfdda31058152b12367e6e59d7e292bf | 2,459 | cpp | C++ | test/biquad_lp.cpp | ebai101/Q | 92c3dc11714a56eb2c799f168875803109c95549 | [
"MIT"
] | 2 | 2020-03-31T11:36:54.000Z | 2021-05-27T04:30:00.000Z | test/biquad_lp.cpp | ebai101/Q | 92c3dc11714a56eb2c799f168875803109c95549 | [
"MIT"
] | null | null | null | test/biquad_lp.cpp | ebai101/Q | 92c3dc11714a56eb2c799f168875803109c95549 | [
"MIT"
] | 1 | 2020-03-31T11:37:01.000Z | 2020-03-31T11:37:01.000Z | /*=============================================================================
Copyright (c) 2014-2019 Joel de Guzman. All rights reserved.
Distributed under the MIT License [ https://opensource.org/licenses/MIT ]
=============================================================================*/
#include <q/suppor... | 25.091837 | 79 | 0.502237 | ebai101 |
367bde2a543c36d892b932544bac13895b2f5243 | 369 | hpp | C++ | include/ng/engine/rendering/texture.hpp | mfurquim/csc486a | 9af7ad3c6dac47bf3c73e890b4494d3b6263b05c | [
"MIT"
] | 1 | 2018-06-26T08:04:00.000Z | 2018-06-26T08:04:00.000Z | include/ng/engine/rendering/texture.hpp | mfurquim/csc486a | 9af7ad3c6dac47bf3c73e890b4494d3b6263b05c | [
"MIT"
] | null | null | null | include/ng/engine/rendering/texture.hpp | mfurquim/csc486a | 9af7ad3c6dac47bf3c73e890b4494d3b6263b05c | [
"MIT"
] | null | null | null | #ifndef NG_TEXTURE_HPP
#define NG_TEXTURE_HPP
#include "ng/engine/rendering/textureformat.hpp"
#include <cstddef>
namespace ng
{
class ITexture
{
public:
virtual ~ITexture() = default;
virtual TextureFormat GetTextureFormat() const = 0;
virtual std::size_t WriteTextureData(void* buffer) const = 0;
};
... | 15.375 | 65 | 0.728997 | mfurquim |
367c880bc62714e14a74816c43e4fd394b70b36a | 18,186 | cpp | C++ | blaise-lang-parser/src/blaise_parser_statement.cpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | blaise-lang-parser/src/blaise_parser_statement.cpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | blaise-lang-parser/src/blaise_parser_statement.cpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | #include <memory>
#include <vector>
#include <string>
#include <sanelli/sanelli.hpp>
#include <gasp/blaise/parser/parser.hpp>
#include <gasp/blaise/ast.hpp>
using namespace std;
using namespace gasp::blaise;
std::shared_ptr<ast::blaise_ast_statement> blaise_parser::parse_statement(blaise_parser_context &context,
... | 50.657382 | 190 | 0.722479 | sanelli |
367db5ada7d5c0a638f7d080fabc7de490406c80 | 609 | cpp | C++ | ass3/SortContext.cpp | m-fahim/SortPatte | ec926507bd356d3bfb0045ae40470ea07a5924d2 | [
"MS-PL"
] | null | null | null | ass3/SortContext.cpp | m-fahim/SortPatte | ec926507bd356d3bfb0045ae40470ea07a5924d2 | [
"MS-PL"
] | null | null | null | ass3/SortContext.cpp | m-fahim/SortPatte | ec926507bd356d3bfb0045ae40470ea07a5924d2 | [
"MS-PL"
] | null | null | null | #include "StdAfx.h"
#include "SortContext.h"
#include "ConStratBubbleSort.h"
#include "ConStratInsertionSort.h"
SortContext::SortContext(void)
{
imp_strat = new ConStratBubbleSort();
}
int* SortContext::readVector( int v[], int n ) {
v = imp_strat->sort( v, n );
return v;
}
void SortContext::reqBS() {
... | 16.459459 | 48 | 0.681445 | m-fahim |
368117f9e6ffa935129390e05556435400fb2a64 | 981 | cpp | C++ | test/test_algs.cpp | bamceil/CLRS | d6dc1f73db5b1689b28f1d89dd3d6f514c23dcf5 | [
"Apache-2.0"
] | null | null | null | test/test_algs.cpp | bamceil/CLRS | d6dc1f73db5b1689b28f1d89dd3d6f514c23dcf5 | [
"Apache-2.0"
] | null | null | null | test/test_algs.cpp | bamceil/CLRS | d6dc1f73db5b1689b28f1d89dd3d6f514c23dcf5 | [
"Apache-2.0"
] | null | null | null | #include "algs.hpp"
#include <gtest/gtest.h>
#include <vector>
using namespace std;
using namespace CLRS;
TEST(HornerMulti, NonInput) {
vector<int> v;
EXPECT_EQ(0, horner_multiplication(v, 1));
}
TEST(HornerMulti, Xis0) {
vector<int> v{ 1, 2, 3 };
EXPECT_EQ(1, horner_multiplication(v, 0));
}
TEST(H... | 20.020408 | 48 | 0.623853 | bamceil |
3687da1a16d7ef3bca5d2f25043e736dc0f8f061 | 2,668 | cpp | C++ | editor/source/widget/project_manager/widget_project_manager.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | editor/source/widget/project_manager/widget_project_manager.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | editor/source/widget/project_manager/widget_project_manager.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | #include "widget/project_manager/widget_project_manager.h"
#include "widget/project_manager/widget_project_general.h"
#include "widget/project_manager/widget_project_plugins.h"
#include "widget/project_manager/deploy/widget_deploy_package.h"
#include "widget/project_manager/deploy/widget_deploy_desktop.h"
namespace co... | 35.573333 | 114 | 0.547976 | skarab |
3693e1d8a928f85c4d8adb01e22b58f8fbbc342a | 346 | cpp | C++ | Chapter3/Excercise14.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | 1 | 2019-08-13T17:51:24.000Z | 2019-08-13T17:51:24.000Z | Chapter3/Excercise14.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | null | null | null | Chapter3/Excercise14.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | 1 | 2020-06-05T13:37:56.000Z | 2020-06-05T13:37:56.000Z | #include <iostream>
using namespace std;
bool isAlphabet(char ch);
int main() {
cout << isAlphabet('1') << endl;
cout << isAlphabet('a') << endl;
cout << isAlphabet('A') << endl;
return 0;
}
bool isAlphabet(char ch) {
if (('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z')) {
return true;
}
else ... | 15.727273 | 61 | 0.526012 | yapbenzet |
3697037b42d51e785f3812dc2bc5829c8335786f | 2,590 | hpp | C++ | libraries/protocol/include/amalgam/protocol/operations.hpp | amalgam-blockchain/amalgam | eca6faf82fe906e85cc227a3182eb9bb0520bc52 | [
"MIT"
] | null | null | null | libraries/protocol/include/amalgam/protocol/operations.hpp | amalgam-blockchain/amalgam | eca6faf82fe906e85cc227a3182eb9bb0520bc52 | [
"MIT"
] | null | null | null | libraries/protocol/include/amalgam/protocol/operations.hpp | amalgam-blockchain/amalgam | eca6faf82fe906e85cc227a3182eb9bb0520bc52 | [
"MIT"
] | null | null | null | #pragma once
#include <amalgam/protocol/operation_util.hpp>
#include <amalgam/protocol/amalgam_operations.hpp>
#include <amalgam/protocol/amalgam_virtual_operations.hpp>
namespace amalgam { namespace protocol {
/** NOTE: do not change the order of any operations prior to the virtual operations
* or it will tr... | 32.375 | 86 | 0.66332 | amalgam-blockchain |
36a135c89bfec01566da62b48b3cf74791ff9706 | 37,093 | cpp | C++ | src/ripple/app/main/Application.cpp | ChainSQL/chainsqld | 6af7eb0624c67776098250a39eae9f195d8a473a | [
"BSL-1.0"
] | 211 | 2017-12-11T03:11:37.000Z | 2022-03-15T12:38:19.000Z | src/ripple/app/main/Application.cpp | ChainSQL/chainsqld | 6af7eb0624c67776098250a39eae9f195d8a473a | [
"BSL-1.0"
] | 17 | 2017-12-18T07:22:06.000Z | 2022-02-15T10:24:29.000Z | src/ripple/app/main/Application.cpp | ChainSQL/chainsqld | 6af7eb0624c67776098250a39eae9f195d8a473a | [
"BSL-1.0"
] | 81 | 2017-12-11T03:09:21.000Z | 2022-03-20T09:42:42.000Z | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... | 28.754264 | 91 | 0.59464 | ChainSQL |
36a15c237fbef6a5896e962ab466e8ed33450e38 | 808 | cpp | C++ | ONI/qualification/17D/resolver.cpp | hacdias/cp | 5a8ffbb0a8819189fc4308917db2c59548af76c9 | [
"MIT"
] | 1 | 2017-02-12T20:58:39.000Z | 2017-02-12T20:58:39.000Z | ONI/qualification/17D/resolver.cpp | hacdias/cp | 5a8ffbb0a8819189fc4308917db2c59548af76c9 | [
"MIT"
] | null | null | null | ONI/qualification/17D/resolver.cpp | hacdias/cp | 5a8ffbb0a8819189fc4308917db2c59548af76c9 | [
"MIT"
] | null | null | null | #include "avaliador.h"
#include "stdio.h"
#include "vector"
void luis(int N) {
string tentativa(N, '0');
int i = 0, wrong = adivinhar(tentativa);
for (i = 0; i < N; i++) {
if (wrong == 0) break;
tentativa[i] = '1';
if (adivinhar(tentativa) > wrong) {
tentativa[i] = '0';
} else {
... | 15.245283 | 48 | 0.517327 | hacdias |
36a1963eccbaead70f29f8c9507497df0877636e | 40,142 | cpp | C++ | mesh/Mesh.cpp | hsiaoairplane/3d-watermark-lsd | 168df211b579fafc77a9bccba6ed54ae30a0ee23 | [
"MIT"
] | 1 | 2018-07-20T02:44:11.000Z | 2018-07-20T02:44:11.000Z | mesh/Mesh.cpp | hsiaoairplane/3d-watermark-lsd | 168df211b579fafc77a9bccba6ed54ae30a0ee23 | [
"MIT"
] | null | null | null | mesh/Mesh.cpp | hsiaoairplane/3d-watermark-lsd | 168df211b579fafc77a9bccba6ed54ae30a0ee23 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Mesh.h"
//#include "curvature_estimator.h"
#include <list>
#include <QFile>
#include <QString>
#include <q3cstring.h>
#include <QTextStream>
#include <QBuffer>
#include <omp.h>
const float Mesh::cm_colorWhite[3] = {0.95,0.95,0.95};
const float Mesh::cm_colorGray[3] = {... | 24.71798 | 150 | 0.625629 | hsiaoairplane |
36a8152cf10babe762c438e4d20942439155efe4 | 742 | cpp | C++ | unistats/main.cpp | goldim/unistats | e8dd54e46f84422d868c942367f0103949791ede | [
"MIT"
] | null | null | null | unistats/main.cpp | goldim/unistats | e8dd54e46f84422d868c942367f0103949791ede | [
"MIT"
] | null | null | null | unistats/main.cpp | goldim/unistats | e8dd54e46f84422d868c942367f0103949791ede | [
"MIT"
] | null | null | null | #include <QtQml>
#include <QGuiApplication>
#include <QApplication>
#include <QQmlApplicationEngine>
#include <QIcon>
#include <QQuickView>
#include <QQuickItem>
#include <QVariantMap>
#include <unistatscore/Config.h>
#include "controller.h"
int main(int argc, char *argv[])
{
std::string cfgPath = "/home/goldim/c... | 22.484848 | 65 | 0.667116 | goldim |
36a8a9fc887b558c589bcbbe2501aa07f642ac82 | 5,220 | hpp | C++ | test/src/Common.hpp | rhymu8354/Discord | 432cba20b202fc1f70862e463755117ce82ee745 | [
"MIT"
] | null | null | null | test/src/Common.hpp | rhymu8354/Discord | 432cba20b202fc1f70862e463755117ce82ee745 | [
"MIT"
] | null | null | null | test/src/Common.hpp | rhymu8354/Discord | 432cba20b202fc1f70862e463755117ce82ee745 | [
"MIT"
] | null | null | null | #pragma once
/**
* @file Common.hpp
*
* This module declares the common base class for test fixtures
* and mocks used to test the Discord library.
*
* © 2020 by Richard Walters
*/
#include <gtest/gtest.h>
#include <Discord/Gateway.hpp>
#include <future>
#include <Json/Value.hpp>
#include <memory>
#include <mut... | 27.329843 | 103 | 0.685824 | rhymu8354 |
36ab17849795475208de99810078b75fe616bd64 | 6,862 | cpp | C++ | src/ocv_test/ocv_test/src/OCV_main.cpp | mac-novice-pg2/tool_dev | c988b72f803f24a130e08ef8515ec282119e377f | [
"BSD-3-Clause"
] | null | null | null | src/ocv_test/ocv_test/src/OCV_main.cpp | mac-novice-pg2/tool_dev | c988b72f803f24a130e08ef8515ec282119e377f | [
"BSD-3-Clause"
] | 1 | 2018-09-28T13:33:18.000Z | 2018-09-28T13:33:18.000Z | src/ocv_test/ocv_test/src/OCV_main.cpp | mac-novice-pg2/tool_dev | c988b72f803f24a130e08ef8515ec282119e377f | [
"BSD-3-Clause"
] | null | null | null | #include "pch.h"
#include "UI_input_result.h"
using namespace cv;
const int wait_time_def = 1000;
/**
ファイル操作
*/
void
OCV_file_open( OCV_Param_T *ocv_param, eMENU_INPUT_RESULT_FILE_OPEN *menu_input )
{
IplImage *my_img = cvLoadImage( menu_input->filename, CV_LOAD_IMAGE_COLOR );
if( my_img == NULL )
... | 29.965066 | 110 | 0.688866 | mac-novice-pg2 |
36ab2c668394ffec8d0d68e6640e43fd55cfd7e4 | 52,656 | cpp | C++ | EZOJ/Contests/1460/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1460/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1460/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool neg=c=='-';
neg?c=getchar():0;
whi... | 209.784861 | 502 | 0.875532 | sshockwave |
36ac8a548ef00ad9baec1e05e99343b41ddb2431 | 4,987 | cpp | C++ | pico_dsp-esp-idf/esp-idf_pico_dsp_setup/src/main.cpp | ohmic-net/pico_dsp | e3a66666fbcfd8d8ed30dfd6ac2c01b7fa23c3b2 | [
"MIT"
] | 23 | 2021-08-06T22:44:27.000Z | 2022-03-24T06:20:44.000Z | pico_dsp-esp-idf/esp-idf_pico_dsp_setup/src/main.cpp | ohmic-net/pico_dsp | e3a66666fbcfd8d8ed30dfd6ac2c01b7fa23c3b2 | [
"MIT"
] | null | null | null | pico_dsp-esp-idf/esp-idf_pico_dsp_setup/src/main.cpp | ohmic-net/pico_dsp | e3a66666fbcfd8d8ed30dfd6ac2c01b7fa23c3b2 | [
"MIT"
] | 1 | 2021-08-19T10:37:36.000Z | 2021-08-19T10:37:36.000Z | // Generates a 16bit sine wave for testing audio output over I2S with WM8978 codec,
// for PICO_DSP development board Originl Edition with 4MB Flash
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <stdio.h>
#include "driver/i2s.h"
#include "driver/gpio.h"
#include "esp_system.h"
#include "esp_sleep... | 40.877049 | 137 | 0.65751 | ohmic-net |
36afe3298f5f5307ee89dd9ccbf7c956cf701b32 | 1,182 | cpp | C++ | src/I2C/I2C_Ramps.cpp | David21NP/Ramps-1.4 | b147e02ffe923455c2185bbec06e94092dc96c34 | [
"MIT"
] | null | null | null | src/I2C/I2C_Ramps.cpp | David21NP/Ramps-1.4 | b147e02ffe923455c2185bbec06e94092dc96c34 | [
"MIT"
] | null | null | null | src/I2C/I2C_Ramps.cpp | David21NP/Ramps-1.4 | b147e02ffe923455c2185bbec06e94092dc96c34 | [
"MIT"
] | null | null | null | #include "I2C_Ramps.h"
namespace Ramps_1_4
{
I2C_Ramps::I2C_Ramps(/* args */)
{
}
I2C_Ramps::~I2C_Ramps()
{
}
int8_t I2C_Ramps::readBit(uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data)
{
return I2Cdev::readBit(devAddr, regAddr, bitNum, data);
}
int8_t ... | 28.142857 | 113 | 0.670897 | David21NP |
a5e0c99eb59c9cebcba087cfac26f18e7c2c5d8b | 2,810 | cpp | C++ | android/app/src/cpp/src/backend/cpu/CpuLaunchData.cpp | FlameSalamander/react-native-xmrig | 6a6e3b301bd78b88459989f334d759f65e434082 | [
"MIT"
] | 28 | 2021-05-11T03:28:57.000Z | 2022-03-09T14:34:57.000Z | android/app/src/cpp/src/backend/cpu/CpuLaunchData.cpp | FlameSalamander/react-native-xmrig | 6a6e3b301bd78b88459989f334d759f65e434082 | [
"MIT"
] | 10 | 2021-05-16T19:50:31.000Z | 2022-01-30T03:56:45.000Z | android/app/src/cpp/src/backend/cpu/CpuLaunchData.cpp | FlameSalamander/react-native-xmrig | 6a6e3b301bd78b88459989f334d759f65e434082 | [
"MIT"
] | 12 | 2021-07-19T22:14:58.000Z | 2022-02-08T02:24:05.000Z | /* XMRig
* Copyright 2010 Jeff Garzik <jgarzik@pobox.com>
* Copyright 2012-2014 pooler <pooler@litecoinpool.org>
* Copyright 2014 Lucas Jones <https://github.com/lucasjones>
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
* C... | 35.56962 | 151 | 0.66726 | FlameSalamander |
a5e4954925c8f03dbfa0105b4a2b009ec5cd79b6 | 1,612 | cpp | C++ | VNOJ/Data_Structures/IT_and_BIT/segtree_itds1.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | 4 | 2021-08-25T10:53:32.000Z | 2021-09-30T03:25:50.000Z | VNOJ/Data_Structures/IT_and_BIT/segtree_itds1.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | null | null | null | VNOJ/Data_Structures/IT_and_BIT/segtree_itds1.cpp | hoanghai1803/CP_Training | 03495a21509fb3ab7fc64674b9a1b0c7d4327ecb | [
"MIT"
] | null | null | null | // Author: __BruteForce__
#include <bits/stdc++.h>
using namespace std;
#define MAX_N 100005
#define oo INT_MAX
int n, q;
int arr[MAX_N];
multiset<int> ST[4 * MAX_N];
void build(int id, int L, int R) {
if (L == R) {
ST[id].insert(arr[L]);
return;
}
int M = (L + R) >> 1;
build(id * 2... | 22.388889 | 85 | 0.419975 | hoanghai1803 |
a5e76676a5ed7850e20b7f312784702e161b6a53 | 2,605 | cpp | C++ | C++/maximum-number-of-occurrences-of-a-substring.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/maximum-number-of-occurrences-of-a-substring.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/maximum-number-of-occurrences-of-a-substring.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(n)
// rolling hash (Rabin-Karp Algorithm)
class Solution {
public:
int maxFreq(string s, int maxLetters, int minSize, int maxSize) {
static const uint64_t M = 1000000007;
static const uint64_t p = 113;
uint64_t power = pow(p, minSize - 1, M), rolling_hash = 0;
... | 31.011905 | 78 | 0.442994 | jaiskid |
a5e9f815995d942477cc232d90cdaa43e026103e | 8,171 | cpp | C++ | oldies/bofsocketpoller.cpp | onbings/bofstd | 366ff7f7d8871d5fa5785d5690d90506a7714ecc | [
"MIT"
] | null | null | null | oldies/bofsocketpoller.cpp | onbings/bofstd | 366ff7f7d8871d5fa5785d5690d90506a7714ecc | [
"MIT"
] | 1 | 2021-03-20T14:46:54.000Z | 2021-03-20T14:47:10.000Z | oldies/bofsocketpoller.cpp | onbings/bofstd | 366ff7f7d8871d5fa5785d5690d90506a7714ecc | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015-2025, Onbings. All rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
* PURPOSE.
*
* This module implements the Bo... | 34.476793 | 201 | 0.70175 | onbings |
a5ea5a6963e0dbc28fa17d5afeacb4686d4231fb | 3,640 | cc | C++ | src/SteppingAction.cc | ZiliasTheSaint/Interface | 40b81b85be106a24796097c98de08baf515bd749 | [
"BSD-3-Clause"
] | null | null | null | src/SteppingAction.cc | ZiliasTheSaint/Interface | 40b81b85be106a24796097c98de08baf515bd749 | [
"BSD-3-Clause"
] | null | null | null | src/SteppingAction.cc | ZiliasTheSaint/Interface | 40b81b85be106a24796097c98de08baf515bd749 | [
"BSD-3-Clause"
] | null | null | null | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 43.855422 | 96 | 0.583242 | ZiliasTheSaint |
a5ebb02fcc679dda17722bd931bbc7f2d4a1139c | 19,764 | cpp | C++ | apps/emotion/Sample.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 5 | 2020-08-03T09:43:26.000Z | 2022-01-11T08:28:30.000Z | apps/emotion/Sample.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | null | null | null | apps/emotion/Sample.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 7 | 2017-07-31T13:01:28.000Z | 2021-05-16T10:15:49.000Z | /*
* $Id: sample.cpp,v 1.23 2006/11/01 23:33:56 nathanst Exp $
*
* sample.cpp
* hog
*
* Created by Nathan Sturtevant on 5/31/05.
* Copyright 2005 Nathan Sturtevant, University of Alberta. All rights reserved.
*
* This file is part of HOG.
*
* HOG is free software; you can redistribute it and/or modify
*... | 30.73717 | 155 | 0.63302 | AaronTrip |
a5ee2069ca51a7a1a0cde7a8c051d7881e7a0e81 | 524 | hpp | C++ | gv_framework/component/gv_com_static_mesh.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | 2 | 2018-12-03T13:17:31.000Z | 2020-04-08T07:00:02.000Z | gv_framework/component/gv_com_static_mesh.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | gv_framework/component/gv_com_static_mesh.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | namespace gv
{
gv_com_static_mesh::gv_com_static_mesh()
{
link_class(gv_com_static_mesh::static_class());
};
gv_com_static_mesh::~gv_com_static_mesh(){
};
bool gv_com_static_mesh::set_resource(gv_resource* resource)
{
gv_static_mesh* s_mesh = gvt_cast< gv_static_mesh >(resource);
if (!s_mesh)
return false;
gv... | 20.153846 | 63 | 0.788168 | dragonsn |
a5f2d4b4e3997f1a16e26a300803612ca4d8fe83 | 327 | cpp | C++ | Linked List/07_move_last_to_first.cpp | ritikrajdev/450DSA | a9efa8c8be781fd7b101407ac807a83b8a0929f4 | [
"MIT"
] | null | null | null | Linked List/07_move_last_to_first.cpp | ritikrajdev/450DSA | a9efa8c8be781fd7b101407ac807a83b8a0929f4 | [
"MIT"
] | null | null | null | Linked List/07_move_last_to_first.cpp | ritikrajdev/450DSA | a9efa8c8be781fd7b101407ac807a83b8a0929f4 | [
"MIT"
] | null | null | null | typedef LinkedListNode<int> Node;
LinkedListNode<int>* moveToFront(LinkedListNode<int> *head) {
if (!head->next)
return head;
Node* prev = 0;
Node* itr = head;
while (itr->next) {
prev = itr;
itr = itr->next;
}
prev->next = 0;
itr->next = head;
return ... | 17.210526 | 61 | 0.535168 | ritikrajdev |
a5f5f3104802acfce47beb45bd8c4a995b5056cb | 18,952 | cpp | C++ | src/edit.cpp | sidtheprince/dokun | 9aec583eac05e5e6db18a7df11b20df40a9dcf5d | [
"MIT"
] | 2 | 2018-10-01T18:13:51.000Z | 2019-12-20T06:22:32.000Z | src/edit.cpp | sidtheprince/dokun | 9aec583eac05e5e6db18a7df11b20df40a9dcf5d | [
"MIT"
] | null | null | null | src/edit.cpp | sidtheprince/dokun | 9aec583eac05e5e6db18a7df11b20df40a9dcf5d | [
"MIT"
] | null | null | null | #include "../include/edit.h"
Edit::Edit() : color(160, 160, 160, 255), character_limit(20),
cursor(true), cursor_x(0), cursor_y(0), cursor_height(20), zoom_factor(0), multilined(false), num_newlines(0), label(nullptr),
// outline
outline(false),
outline_width(1.0),
outline_color(0, 0, 0, 255),
outline_antia... | 26.920455 | 297 | 0.610859 | sidtheprince |
a5fb229827c6a545b2a04c5907e9edfe400b6458 | 462 | cpp | C++ | Creational/AbstractFactory/TestHelloWorld.cpp | dodaydream/hello_world_in_design_patterns | 525de263bf7b75cdaf2450a760ccc118ca0cddfd | [
"MIT"
] | null | null | null | Creational/AbstractFactory/TestHelloWorld.cpp | dodaydream/hello_world_in_design_patterns | 525de263bf7b75cdaf2450a760ccc118ca0cddfd | [
"MIT"
] | null | null | null | Creational/AbstractFactory/TestHelloWorld.cpp | dodaydream/hello_world_in_design_patterns | 525de263bf7b75cdaf2450a760ccc118ca0cddfd | [
"MIT"
] | null | null | null | #include "HelloWorld.h"
int main()
{
AbstractHelloWorldFactory* factoryCJK = new ConcreteHelloWorldCJKFactory();
AbstractHelloWorldFactory* factoryLatin = new ConcreteHelloWorldLatinFactory();
HelloWorldLatin* helloEn = factoryLatin->createHelloWorldEn();
helloEn->sayHello();
HelloWorldCJK* helloJp = factoryCJK... | 25.666667 | 80 | 0.781385 | dodaydream |
a5fca8bdc81d155e353b8d2657b983f9aa820a0f | 3,125 | hpp | C++ | include/Datastructures.hpp | yuphin/Vortigen | 155bc9e364560bf651d04e5b562f596ea4217796 | [
"MIT"
] | 2 | 2021-07-15T15:45:40.000Z | 2021-08-14T19:59:49.000Z | include/Datastructures.hpp | yuphin/Vortigen | 155bc9e364560bf651d04e5b562f596ea4217796 | [
"MIT"
] | null | null | null | include/Datastructures.hpp | yuphin/Vortigen | 155bc9e364560bf651d04e5b562f596ea4217796 | [
"MIT"
] | null | null | null | #pragma once
#include "Utilities.hpp"
#include <vector>
/**
* @brief General 2D data structure around std::vector, in column
* major format.
*
*/
template <typename T> class Matrix {
public:
Matrix<T>() = default;
/**
* @brief Constructor with initial value
*
* @param[in] number of eleme... | 27.173913 | 102 | 0.56864 | yuphin |
a5fd3c208f99c5c3b596e032178c03dde55a504b | 3,213 | cpp | C++ | products/BellHybrid/apps/common/src/widgets/BellBattery.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | null | null | null | products/BellHybrid/apps/common/src/widgets/BellBattery.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | null | null | null | products/BellHybrid/apps/common/src/widgets/BellBattery.cpp | buk7456/MuditaOS | 06ef1e131b27b0f397cc615c96d51bede7050423 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <common/data/BatteryUtils.hpp>
#include <common/widgets/BellBattery.hpp>
#include <Image.hpp>
namespace
{
constexpr auto entries = std::array<battery_utils::BatteryLevelE... | 41.192308 | 117 | 0.572362 | buk7456 |
a5fd9b659d33db977877753430beda1611ae5c26 | 7,078 | cpp | C++ | lib/AL_USDMaya/AL/usdmaya/fileio/translators/MeshTranslator.cpp | AlexSchwank/AL_USDMaya | 99413e2c5d1c93e4c58a63ebc8b07e23cf072e86 | [
"Apache-2.0"
] | null | null | null | lib/AL_USDMaya/AL/usdmaya/fileio/translators/MeshTranslator.cpp | AlexSchwank/AL_USDMaya | 99413e2c5d1c93e4c58a63ebc8b07e23cf072e86 | [
"Apache-2.0"
] | null | null | null | lib/AL_USDMaya/AL/usdmaya/fileio/translators/MeshTranslator.cpp | AlexSchwank/AL_USDMaya | 99413e2c5d1c93e4c58a63ebc8b07e23cf072e86 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2017 Animal Logic
//
// 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 ... | 33.230047 | 168 | 0.574032 | AlexSchwank |
570522b8202df3150b6378f538b8e0347f187b9f | 3,673 | cpp | C++ | src/chain.cpp | jbaldwin/libchain | fcceaa141c4aa12abd588f1b9032c4a8c48fd0b4 | [
"MIT"
] | 3 | 2020-09-03T20:05:24.000Z | 2022-02-03T20:49:33.000Z | src/chain.cpp | jbaldwin/libchain | fcceaa141c4aa12abd588f1b9032c4a8c48fd0b4 | [
"MIT"
] | 8 | 2020-11-12T18:13:19.000Z | 2021-12-05T18:58:28.000Z | src/chain.cpp | jbaldwin/libchain | fcceaa141c4aa12abd588f1b9032c4a8c48fd0b4 | [
"MIT"
] | null | null | null | #include "chain/chain.hpp"
#include <cstring>
namespace chain::str
{
const std::stringstream g_ss_default_fmt{};
auto to_lower(std::string& data) -> void
{
std::transform(data.begin(), data.end(), data.begin(), ::tolower);
}
auto to_lower_copy(std::string_view data) -> std::string
{
std::string copy{data};
... | 22.126506 | 116 | 0.557582 | jbaldwin |
570551cfcef6fd9d71606302f379151674076a8d | 28,211 | cpp | C++ | Source/FXT/Private/SFXTParent.cpp | Ocelot0/FXT | 20cfd76f1900b6d4117690a0c1025f40be1f6a28 | [
"MIT"
] | 1 | 2018-06-10T06:04:02.000Z | 2018-06-10T06:04:02.000Z | Source/FXT/Private/SFXTParent.cpp | Ocelot0/FXT | 20cfd76f1900b6d4117690a0c1025f40be1f6a28 | [
"MIT"
] | 3 | 2018-06-09T12:59:28.000Z | 2018-06-29T15:12:34.000Z | Source/FXT/Private/SFXTParent.cpp | Ocelot0/FXT | 20cfd76f1900b6d4117690a0c1025f40be1f6a28 | [
"MIT"
] | null | null | null | //=================================================
// Written by Lee Gil Su
// Copyright 2018. Lee Gil Su. all rights reserved.
//=================================================
#include "SFXTParent.h"
#include "SlateOptMacros.h"
#include "FXTCore.h"
BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION
SFXTParent::~SFXTParent(... | 32.613873 | 148 | 0.702988 | Ocelot0 |
5705b4d778658ac0cd66fce65a230dd7b54e5768 | 1,243 | cpp | C++ | Source/NekoRun/Neko.cpp | SaiBalaji22/Neko-Runner | 1dba4313b5d4f27e3c57e0d9a4da4c2344031f6e | [
"MIT"
] | null | null | null | Source/NekoRun/Neko.cpp | SaiBalaji22/Neko-Runner | 1dba4313b5d4f27e3c57e0d9a4da4c2344031f6e | [
"MIT"
] | null | null | null | Source/NekoRun/Neko.cpp | SaiBalaji22/Neko-Runner | 1dba4313b5d4f27e3c57e0d9a4da4c2344031f6e | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Neko.h"
#include "Kismet/GameplayStatics.h"
ANeko::ANeko()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = ... | 17.263889 | 119 | 0.693484 | SaiBalaji22 |
5706549bfd13416cbfcfdc3cfff6a336da43f969 | 4,714 | hpp | C++ | DifferentialEvolution.hpp | ianran/CUDADifferentialEvolution | ccde059ae52dd0a098752fcfa79602a195153060 | [
"MIT"
] | 7 | 2017-07-31T06:34:20.000Z | 2021-11-11T15:28:03.000Z | DifferentialEvolution.hpp | ianran/CUDADifferentialEvolution | ccde059ae52dd0a098752fcfa79602a195153060 | [
"MIT"
] | null | null | null | DifferentialEvolution.hpp | ianran/CUDADifferentialEvolution | ccde059ae52dd0a098752fcfa79602a195153060 | [
"MIT"
] | null | null | null | /* Copyright 2017 Ian Rankin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify, merge,
* publish, distri... | 35.712121 | 101 | 0.67692 | ianran |
5712095f71d6da5d32d03a1af772e7d2d39e7549 | 2,780 | cpp | C++ | Problems/leetcode/valid-sudoku/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | Problems/leetcode/valid-sudoku/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | 1 | 2019-05-09T19:17:00.000Z | 2019-05-09T19:17:00.000Z | Problems/leetcode/valid-sudoku/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <assert.h>
#include <utils.h>
using namespace std;
class Solution {
const char EMPTY_CELL = '.';
const int subs[9][2] = {
//Y X
{ 0, 0 },
{ 3, 0 },
{ 6, 0 },
{... | 23.166667 | 80 | 0.411511 | grand87 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.