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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54a35c9edb4161389804c450a775aac3e2d47cc9 | 7,762 | cpp | C++ | esp32/libraries/TouchLib-master/src/TLSampleMethodResistive.cpp | zvikapika/HanukiyaIOT | 6f54e3d2d945962e9c1ff65d282269ae60898246 | [
"MIT"
] | null | null | null | esp32/libraries/TouchLib-master/src/TLSampleMethodResistive.cpp | zvikapika/HanukiyaIOT | 6f54e3d2d945962e9c1ff65d282269ae60898246 | [
"MIT"
] | null | null | null | esp32/libraries/TouchLib-master/src/TLSampleMethodResistive.cpp | zvikapika/HanukiyaIOT | 6f54e3d2d945962e9c1ff65d282269ae60898246 | [
"MIT"
] | null | null | null | /*
* TLSampleMethodResistive.cpp - Resistive sensing implementation for
* TouchLibrary for Arduino Teensy 3.x
*
* https://github.com/AdmarSchoonen/TLSensor
* Copyright (c) 2016 - 2017 Admar Schoonen
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... | 30.439216 | 98 | 0.725457 | zvikapika |
54a443e2c8ec66c132e17f3cf36b936fba077140 | 2,224 | cc | C++ | src/LockManagerTest.cc | mkaguilera/mvtx | 9e5e099a11131351b79aadea77ee5920100c352a | [
"BSD-2-Clause"
] | null | null | null | src/LockManagerTest.cc | mkaguilera/mvtx | 9e5e099a11131351b79aadea77ee5920100c352a | [
"BSD-2-Clause"
] | null | null | null | src/LockManagerTest.cc | mkaguilera/mvtx | 9e5e099a11131351b79aadea77ee5920100c352a | [
"BSD-2-Clause"
] | null | null | null | /*
* LockManagerTest.cc
*
* Created on: Dec 8, 2016
* Author: theo
*/
#include <cassert>
#include <iostream>
#include "AVLTreeLockManager.h"
#include "LockManager.h"
#include "LockManagerTest.h"
#include "TestEvent.h"
LockManagerTest::LockManagerTest(LockManager *lock_manager) {
_lock_manager = lock_man... | 32.231884 | 83 | 0.680306 | mkaguilera |
54ac1b1efbf79f072467343fcf1c14cad3983c15 | 1,803 | cpp | C++ | code/cheonsa/cheonsa_platform_icon.cpp | Olaedaria/cheonsa | cf366a5869a4bf0872a0d8dc6a01a68118cfc92e | [
"Unlicense"
] | null | null | null | code/cheonsa/cheonsa_platform_icon.cpp | Olaedaria/cheonsa | cf366a5869a4bf0872a0d8dc6a01a68118cfc92e | [
"Unlicense"
] | null | null | null | code/cheonsa/cheonsa_platform_icon.cpp | Olaedaria/cheonsa | cf366a5869a4bf0872a0d8dc6a01a68118cfc92e | [
"Unlicense"
] | null | null | null | #include "cheonsa_platform_icon.h"
#include "cheonsa_engine.h"
#if defined( cheonsa_platform_windows )
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#undef LoadIcon
#endif
namespace cheonsa
{
platform_icon_c::platform_icon_c()
: icon_handle( nullptr )
{
}
platform_icon_c::~platform_icon_c()
{
unload();
... | 28.171875 | 154 | 0.747643 | Olaedaria |
2a6150c024f6de94d3415ca38faf869bf06cf2ba | 2,776 | cpp | C++ | source/sprites/AnchorSprite.cpp | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | source/sprites/AnchorSprite.cpp | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | source/sprites/AnchorSprite.cpp | xzrunner/sprite2 | 2d5d8c6b79a63871bdd6cfdcd4805946fde95921 | [
"MIT"
] | null | null | null | #include "sprite2/AnchorSprite.h"
#include "sprite2/AnchorActor.h"
#include "sprite2/SprVisitorParams.h"
#include "sprite2/ActorFactory.h"
#include "sprite2/UpdateParams.h"
#include "sprite2/SpriteVisitor.h"
namespace s2
{
void AnchorSprite::OnMessage(const UpdateParams& up, Message msg)
{
auto actor = up.GetActor()... | 24.785714 | 107 | 0.729107 | xzrunner |
2a654d6baafef17060e8aabe64bc0de8e7fa9c7e | 2,831 | hpp | C++ | include/trainer/GradientDescent.hpp | YSZhuoyang/CudaNeuralNetwork | 1c7d5d6ae8e8bb622e7fcbbac2e3db487a202157 | [
"MIT"
] | null | null | null | include/trainer/GradientDescent.hpp | YSZhuoyang/CudaNeuralNetwork | 1c7d5d6ae8e8bb622e7fcbbac2e3db487a202157 | [
"MIT"
] | null | null | null | include/trainer/GradientDescent.hpp | YSZhuoyang/CudaNeuralNetwork | 1c7d5d6ae8e8bb622e7fcbbac2e3db487a202157 | [
"MIT"
] | null | null | null |
#include "model/MiniNeuralNets.hpp"
#ifndef GRADIENT_DESCENT_HPP
#define GRADIENT_DESCENT_HPP
namespace MiniNeuralNetwork
{
using namespace MyHelper;
class Trainer
{
public:
Trainer(
std::shared_ptr<MiniNeuralNets> neuralNets,
cublasHandle_t cublasHan... | 34.52439 | 70 | 0.553161 | YSZhuoyang |
2a6942c1f475a9950905d0b87a438fcefc38bc2e | 415 | hpp | C++ | player/include/api/oauth.hpp | Globidev/twitch-player | 062306685e182c422980d57fe7ba9fbdee141c37 | [
"MIT"
] | 36 | 2018-03-09T08:05:32.000Z | 2021-09-09T19:06:39.000Z | player/include/api/oauth.hpp | Globidev/twitch-player | 062306685e182c422980d57fe7ba9fbdee141c37 | [
"MIT"
] | 35 | 2018-03-15T06:43:49.000Z | 2021-04-14T00:07:00.000Z | player/include/api/oauth.hpp | Globidev/twitch-player | 062306685e182c422980d57fe7ba9fbdee141c37 | [
"MIT"
] | 3 | 2018-05-18T21:17:05.000Z | 2021-09-09T19:06:42.000Z | #pragma once
#include <QObject>
#include <QtPromise>
class QTcpServer;
class QNetworkRequest;
using QtPromise::QPromise;
class OAuth: public QObject {
Q_OBJECT
public:
OAuth(QObject * = nullptr);
QPromise<QString> query_token();
signals:
void token_ready(QString);
private:
QTcpServer *_local... | 14.821429 | 45 | 0.713253 | Globidev |
2a6d4c7bbd84e16ea24743ee7c718f2fb44bb50f | 26,375 | cpp | C++ | test/Account_Test.cpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | 1 | 2021-04-24T06:01:57.000Z | 2021-04-24T06:01:57.000Z | test/Account_Test.cpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | test/Account_Test.cpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | /*************************************************************************
* Author: Keith Adkins
* Date Created: 2/12/2017
* Last Modified: 2/14/2017
* Course: CS467, Winter 2017
* Filename: Account_Test.cpp
*
* Overview:
* Unit test for the Account class.
********************... | 45.317869 | 105 | 0.619905 | rigertd |
2a6e71a05d077b451507fa23f69677e01d76050b | 5,351 | cxx | C++ | BidirectionalQueue.cxx | jackytck/topcoder | 5a83ce478d4f05aeb97062f8a30aa1d6fbc969d3 | [
"MIT"
] | null | null | null | BidirectionalQueue.cxx | jackytck/topcoder | 5a83ce478d4f05aeb97062f8a30aa1d6fbc969d3 | [
"MIT"
] | null | null | null | BidirectionalQueue.cxx | jackytck/topcoder | 5a83ce478d4f05aeb97062f8a30aa1d6fbc969d3 | [
"MIT"
] | null | null | null | // BEGIN CUT HERE
/*
// PROBLEM STATEMENT
// You are given a bidirectional cyclical queue which contains N elements. You need to extract several elements from this queue.
You can do 3 kinds of operations with this queue:
Extract first element. After applying this operation, queue a1, ..., aK becomes a2, ..., aK.
Shi... | 32.041916 | 312 | 0.615025 | jackytck |
2a70b687eb4b63c4533ccc654dccafd36d769adb | 800 | cpp | C++ | example/DetectPortsUDP/detectports.cpp | jef42/pcapwrapper | 6e5356fabfe2e49f96fdbd8bfbb0f8555e497969 | [
"MIT"
] | 6 | 2017-08-07T09:22:34.000Z | 2019-05-11T09:11:45.000Z | example/DetectPortsUDP/detectports.cpp | jef42/pcapwrapper | 6e5356fabfe2e49f96fdbd8bfbb0f8555e497969 | [
"MIT"
] | null | null | null | example/DetectPortsUDP/detectports.cpp | jef42/pcapwrapper | 6e5356fabfe2e49f96fdbd8bfbb0f8555e497969 | [
"MIT"
] | 2 | 2018-05-15T23:28:43.000Z | 2021-11-13T09:53:40.000Z | #include "detectports.h"
#include <iostream>
#include <pcapwrapper/helpers/common.h>
#include <string.h>
#include <string>
using namespace PCAP;
DetectPorts::DetectPorts(PCAP::IpAddress desiredIp) : m_expectedip{desiredIp} {
reset();
}
void DetectPorts::receive_package(PCAP::ICMPPackage package) {
if (packa... | 24.242424 | 79 | 0.6325 | jef42 |
2a76a31ba0ab047a5f2ea5ec719e10c36b35931b | 4,220 | cpp | C++ | DSP/extensions/WindowFunctionLib/tests/TTTukeyWindow.test.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | 31 | 2015-02-28T23:51:10.000Z | 2021-12-25T04:16:01.000Z | DSP/extensions/WindowFunctionLib/tests/TTTukeyWindow.test.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | 126 | 2015-01-01T13:42:05.000Z | 2021-07-13T14:11:42.000Z | DSP/extensions/WindowFunctionLib/tests/TTTukeyWindow.test.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | 14 | 2015-02-10T15:08:32.000Z | 2019-09-17T01:21:25.000Z | /** @file
*
* @ingroup dspWindowFunctionLib
*
* @brief Unit tests for the Tukey Window Function Unit
*
* @details
*
* @authors Nathan Wolek, Tim Place, Trond Lossius
*
* @copyright Copyright © 2011 by Nathan Wolek @n
* This code is licensed under the terms of the "New BSD License" @n
* http://creativecommon... | 37.017544 | 161 | 0.714455 | avilleret |
2a78d8daff5be631583e25777900db0800f3ef00 | 5,293 | hpp | C++ | src/evaluate.hpp | CristianCin/randMathFunction | 9394d039b2c42df70f96479ba95bada3b6257b4e | [
"MIT"
] | null | null | null | src/evaluate.hpp | CristianCin/randMathFunction | 9394d039b2c42df70f96479ba95bada3b6257b4e | [
"MIT"
] | null | null | null | src/evaluate.hpp | CristianCin/randMathFunction | 9394d039b2c42df70f96479ba95bada3b6257b4e | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define PI 3.14159265
bool dbg = false;
bool isF(string op){
if(op == "sin") return true;
if(op == "cos") return true;
if(op == "tan") return true;
if(op == "cotan") return true;
if(op == "arcsin") return true;
if(op == "arccos") return true;
... | 23.317181 | 132 | 0.472889 | CristianCin |
2a7cb726963da0dd2ae1d8cda7ffb780bc1302f7 | 3,763 | cpp | C++ | PrismAPI/PrismCore/Enum.cpp | DigitalQR/Prism | e67965040ec9f7375a73a6924051e4962228eecd | [
"MIT"
] | 1 | 2021-06-30T07:13:20.000Z | 2021-06-30T07:13:20.000Z | PrismAPI/PrismCore/Enum.cpp | DigitalQR/Prism | e67965040ec9f7375a73a6924051e4962228eecd | [
"MIT"
] | null | null | null | PrismAPI/PrismCore/Enum.cpp | DigitalQR/Prism | e67965040ec9f7375a73a6924051e4962228eecd | [
"MIT"
] | null | null | null | #include "Include\Prism\Enum.h"
namespace Prism
{
Enum::Value::Value()
: Name()
, NumberValue()
{
}
Enum::Value::Value(const String& name, size_t value)
: Name(name)
, NumberValue(value)
{
}
Enum::Enum(long uniqueId, const String& space, const String& name, const String& documentation, size_t size, co... | 17.834123 | 227 | 0.599787 | DigitalQR |
2a7d73c1cbd1eb116a8ae9b4af582b990052501a | 15,611 | hpp | C++ | src/iterators/row.hpp | oraqlle/cortex-iterators | 425f71efdc654103458795440752f6804722fc12 | [
"MIT"
] | null | null | null | src/iterators/row.hpp | oraqlle/cortex-iterators | 425f71efdc654103458795440752f6804722fc12 | [
"MIT"
] | null | null | null | src/iterators/row.hpp | oraqlle/cortex-iterators | 425f71efdc654103458795440752f6804722fc12 | [
"MIT"
] | null | null | null | /// -*- C++ -*- Header compatibility <row.hpp>
/// @file row.hpp
/// @author Tyler Swann (oraqlle@github.com)
/// @brief Row Iterator
/// @version 1.0.1
/// @date 2022-05-20
///
/// @ingroup %iterators
///
/// @copyright Copyright (c) 2022
///
#ifndef CORTEX_ROW_ITERATOR_HPP
# define CORTEX_ROW_ITERATOR_HPP 1
... | 32.796218 | 156 | 0.556403 | oraqlle |
2a7efb999e50a381c8c93e69cc93ae13bc444898 | 1,205 | cpp | C++ | Sorting Algorithms/Merge_Sorting.cpp | forkkr/Data-Structure-Lab-CSE---2111- | 6d1d3e1853083311971d0191630fc9a2afff7b38 | [
"MIT"
] | null | null | null | Sorting Algorithms/Merge_Sorting.cpp | forkkr/Data-Structure-Lab-CSE---2111- | 6d1d3e1853083311971d0191630fc9a2afff7b38 | [
"MIT"
] | null | null | null | Sorting Algorithms/Merge_Sorting.cpp | forkkr/Data-Structure-Lab-CSE---2111- | 6d1d3e1853083311971d0191630fc9a2afff7b38 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int Merging(int ar[] , int start , int last , int mid)
{
int p = mid;
int q = last ;
int i = start ;
int j = mid + 1 ;
int tmp[last - start +5];
int k = 0;
while(i<=p||j<=q)
{
if(i>p)
tmp[k++] = ar[j++];
... | 18.538462 | 55 | 0.372614 | forkkr |
2a8135c21c7c6950f36a3fb3b828ee6664543f03 | 14,037 | cpp | C++ | test/storage/log_test.cpp | advanced-database-group/terrier | 60c86afd9c9f2a2d030dd9852903e91b0e4db48d | [
"MIT"
] | null | null | null | test/storage/log_test.cpp | advanced-database-group/terrier | 60c86afd9c9f2a2d030dd9852903e91b0e4db48d | [
"MIT"
] | null | null | null | test/storage/log_test.cpp | advanced-database-group/terrier | 60c86afd9c9f2a2d030dd9852903e91b0e4db48d | [
"MIT"
] | null | null | null | #include <unordered_map>
#include <vector>
#include "gtest/gtest.h"
#include "storage/checkpoint_manager.h"
#include "storage/data_table.h"
#include "storage/garbage_collector.h"
#include "storage/write_ahead_log/log_manager.h"
#include "transaction/transaction_manager.h"
#include "util/sql_transaction_test_util.h"
#i... | 46.946488 | 120 | 0.647218 | advanced-database-group |
2a8527bd81e57dbb2bad07046fdb6138dc58b2ce | 2,340 | cpp | C++ | Immortal/Framework/Vector.cpp | QSXW/Immortal | 32adcc8609b318752dd97f1c14dc7368b47d47d1 | [
"Apache-2.0"
] | 6 | 2021-09-15T08:56:28.000Z | 2022-03-29T15:55:02.000Z | Immortal/Framework/Vector.cpp | DaShi-Git/Immortal | e3345b4ff2a2b9d215c682db2b4530e24cc3b203 | [
"Apache-2.0"
] | null | null | null | Immortal/Framework/Vector.cpp | DaShi-Git/Immortal | e3345b4ff2a2b9d215c682db2b4530e24cc3b203 | [
"Apache-2.0"
] | 4 | 2021-12-05T17:28:57.000Z | 2022-03-29T15:55:05.000Z |
#include "impch.h"
#include "Vector.h"
namespace Immortal
{
namespace Vector
{
bool DecomposeTransform(const mat4& transform, Vector3& position, Vector3& rotation, Vector3& scale)
{
using T = float;
mat4 localMatrix(transform);
// Normalize the matrix.
if (EpsilonEqual(localMatrix[3][3], static_cast<... | 27.529412 | 100 | 0.55812 | QSXW |
2a8bc871386aa8324ed470aad365372e19b28bca | 2,575 | cpp | C++ | src/use_mmap/mmapUT.cpp | unihykes/monk | d5ad969fea75912d4aad913adf945f78ec4df60e | [
"Apache-2.0"
] | 2 | 2018-03-27T02:46:03.000Z | 2018-05-24T02:49:17.000Z | src/use_mmap/mmapUT.cpp | six-th/monk | d5ad969fea75912d4aad913adf945f78ec4df60e | [
"Apache-2.0"
] | null | null | null | src/use_mmap/mmapUT.cpp | six-th/monk | d5ad969fea75912d4aad913adf945f78ec4df60e | [
"Apache-2.0"
] | null | null | null | /***************************************************************************************************
LICENSE:
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/... | 22.991071 | 101 | 0.611262 | unihykes |
2a8bd543dd5a49d4f19b179e519805f196d02405 | 1,021 | cc | C++ | src/motif/main.cc | chenxuhao/GraphMiner | 493a16990238648ed4f8af263b2bf06aabb0758a | [
"MIT"
] | 25 | 2021-07-31T15:29:30.000Z | 2022-03-30T02:50:33.000Z | src/motif/main.cc | chenxuhao/GraphMiner | 493a16990238648ed4f8af263b2bf06aabb0758a | [
"MIT"
] | 1 | 2022-03-27T20:43:23.000Z | 2022-03-27T20:43:23.000Z | src/motif/main.cc | chenxuhao/GraphMiner | 493a16990238648ed4f8af263b2bf06aabb0758a | [
"MIT"
] | 2 | 2021-12-06T17:59:48.000Z | 2022-01-26T22:58:16.000Z | // Copyright 2020 Massachusetts Institute of Technology
// Contact: Xuhao Chen <cxh@mit.edu>
#include "motif.h"
int main(int argc, char *argv[]) {
if (argc < 3) {
std::cout << "Usage: " << argv[0] << "<graph> <k> [ngpu(0)] [chunk_size(1024)]\n";
std::cout << "Example: " << argv[0] << " /graph_inputs/mico/gr... | 31.90625 | 86 | 0.574927 | chenxuhao |
2a8d54132f8e4e2e9b1b61d5b03a3d9d061f9142 | 790 | cpp | C++ | Module 1/Lecture 3/3d_distance.cpp | bhattigurjot/cpp-exercises | 9ae770fec1b2bcdc9811b2901e62f883d3e6ed2c | [
"MIT"
] | null | null | null | Module 1/Lecture 3/3d_distance.cpp | bhattigurjot/cpp-exercises | 9ae770fec1b2bcdc9811b2901e62f883d3e6ed2c | [
"MIT"
] | null | null | null | Module 1/Lecture 3/3d_distance.cpp | bhattigurjot/cpp-exercises | 9ae770fec1b2bcdc9811b2901e62f883d3e6ed2c | [
"MIT"
] | null | null | null | #include<iostream>
#include<cmath>
using namespace std;
void print(float ux, float uy, float uz, float vx, float vy, float vz);
float dist3(float ux, float uy, float uz, float vx, float vy, float vz);
int main()
{
print(1,2,3,0,0,0);
print(1,2,3,1,2,3);
print(1,2,3,7,-4,5);
}
float dist3(float ux, float uy, ... | 19.75 | 78 | 0.572152 | bhattigurjot |
2a8dfafc28d1d865f90be0619e75dbedba4e4be4 | 11,631 | cpp | C++ | core/common/str.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 28 | 2017-04-30T13:56:13.000Z | 2022-03-20T06:54:37.000Z | core/common/str.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 72 | 2017-04-25T03:42:58.000Z | 2021-12-04T06:35:28.000Z | core/common/str.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 12 | 2017-04-16T06:25:24.000Z | 2021-07-07T13:28:27.000Z | #include "str.h"
#include <string>
#include <algorithm>
#include <cstring>
#include <vector>
#include <cctype>
#include <stdexcept>
namespace str
{
using namespace std;
std::string hexdump(const std::string& in)
{
std::string res;
for (size_t i = 0; i < in.size(); i++) {
if (i != 0)
res ... | 22.716797 | 107 | 0.481472 | plonk |
2a96b2476316dd4bcbd57d3969ec3742e17882be | 2,738 | cpp | C++ | samples/03_advances/05_convert_to_wscene/src/main.cpp | SiminBadri/Wolf.Engine | 3da04471ec26e162e1cbb7cc88c7ce37ee32c954 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | 1 | 2020-07-15T13:14:26.000Z | 2020-07-15T13:14:26.000Z | samples/03_advances/05_convert_to_wscene/src/main.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | samples/03_advances/05_convert_to_wscene/src/main.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | /*
Project : Wolf Engine. Copyright(c) Pooya Eimandar (http://PooyaEimandar.com) . All rights reserved.
Source : Please direct any bug to https://github.com/PooyaEimandar/Wolf.Engine/issues
Website : http://WolfSource.io
Name : main.cpp
Description : This sample shows how to convert collada file to W... | 32.595238 | 104 | 0.647918 | SiminBadri |
2a9743b2207d0b7a8f2eed317a8d3ff32b895839 | 3,479 | cpp | C++ | windz/log/LogStream.cpp | Crystalwindz/windz | f13ea10187eb1706d1c7b31b34ce1bf458d721bd | [
"MIT"
] | null | null | null | windz/log/LogStream.cpp | Crystalwindz/windz | f13ea10187eb1706d1c7b31b34ce1bf458d721bd | [
"MIT"
] | null | null | null | windz/log/LogStream.cpp | Crystalwindz/windz | f13ea10187eb1706d1c7b31b34ce1bf458d721bd | [
"MIT"
] | null | null | null | #include "windz/log/LogStream.h"
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <strings.h>
#include <algorithm>
#include <limits>
namespace windz {
namespace {
const char digits[] = "9876543210123456789";
const char *zero = digits + 9;
const char digitsHex[] = "0123456789abcdef";
// From mu... | 20.345029 | 72 | 0.590112 | Crystalwindz |
2a9c0caa50e3d3f36694ac5b2c1ea0bd37257366 | 7,680 | cpp | C++ | DESIRE-Modules/UI-HorusUI/Externals/horus_ui/src/textinput_widget.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2020-10-04T18:50:01.000Z | 2020-10-04T18:50:01.000Z | DESIRE-Modules/UI-HorusUI/Externals/horus_ui/src/textinput_widget.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | null | null | null | DESIRE-Modules/UI-HorusUI/Externals/horus_ui/src/textinput_widget.cpp | nyaki-HUN/DESIRE | dd579bffa77bc6999266c8011bc389bb96dee01d | [
"BSD-2-Clause"
] | 1 | 2018-09-18T08:03:33.000Z | 2018-09-18T08:03:33.000Z | #include "horus.h"
#include "types.h"
#include "ui_theme.h"
#include "renderer.h"
#include "unicode_text_cache.h"
#include "ui_font.h"
#include "ui_context.h"
#include "util.h"
#include <math.h>
#include <string.h>
#include <algorithm>
namespace hui
{
bool textInput(
char* text,
u32 maxLength,
TextInputValueMode va... | 26.947368 | 124 | 0.721875 | nyaki-HUN |
2aa0326817c91a36bb82f5bcc874487e3f3939ea | 1,036 | cpp | C++ | src/old/class/http.class.cpp | lucabertoni/Telegram-SocialNetworkBot | 9f65ae5f80a24caea182acd8ab25712dbee68f79 | [
"MIT"
] | null | null | null | src/old/class/http.class.cpp | lucabertoni/Telegram-SocialNetworkBot | 9f65ae5f80a24caea182acd8ab25712dbee68f79 | [
"MIT"
] | null | null | null | src/old/class/http.class.cpp | lucabertoni/Telegram-SocialNetworkBot | 9f65ae5f80a24caea182acd8ab25712dbee68f79 | [
"MIT"
] | null | null | null | #include <curl/curl.h>
#include "http.class.h"
size_t Http::WriteCallback(void *contents, size_t size, size_t nmemb, void *userp)
{
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}
// Cosa fa : Esegue una richiesta di tipo get ad una pagina web ed estrapola il risultat... | 29.6 | 122 | 0.724903 | lucabertoni |
2aa83d470fab739e88fab56e773028da8bfa15ba | 2,743 | cpp | C++ | bacs/problem/src/single/test/matcher.cpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | null | null | null | bacs/problem/src/single/test/matcher.cpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | 10 | 2018-02-06T14:46:36.000Z | 2018-03-20T13:37:20.000Z | bacs/problem/src/single/test/matcher.cpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | 1 | 2021-11-26T10:59:09.000Z | 2021-11-26T10:59:09.000Z | #include <bacs/problem/single/test/matcher.hpp>
#include <bunsan/fnmatch.hpp>
#include <boost/regex.hpp>
namespace bacs::problem::single::test {
class matcher::impl {
public:
virtual ~impl() {}
virtual bool match(const std::string &test_id) const = 0;
};
class matcher::id : public matcher::impl {
public:
e... | 25.877358 | 71 | 0.674079 | bacsorg |
2aa9d383dc18661fc0511cb6e579547e3671f107 | 2,072 | cpp | C++ | test/Matuna.OCLLayerKernelTest/OCLLayerKernelTest.cpp | mihed/ATML | 242fb951eea7a55846b8a18dd6abcabb26e2a1cc | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | test/Matuna.OCLLayerKernelTest/OCLLayerKernelTest.cpp | mihed/ATML | 242fb951eea7a55846b8a18dd6abcabb26e2a1cc | [
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2015-06-08T19:51:53.000Z | 2015-07-01T10:15:06.000Z | test/Matuna.OCLLayerKernelTest/OCLLayerKernelTest.cpp | mihed/ATML | 242fb951eea7a55846b8a18dd6abcabb26e2a1cc | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null |
#define CATCH_CONFIG_MAIN
#include "catch/catch.hpp"
#include "Matuna.OCLHelper/OCLHelper.h"
#include "Matuna.OCLHelper/OCLProgram.h"
#include "Matuna.OCLConvNet/LayerKernel.h"
#include <memory>
using namespace Matuna::Helper;
using namespace Matuna::MachineLearning;
SCENARIO("Testing and executing a layer kernel")
... | 33.419355 | 89 | 0.757722 | mihed |
2aaaee190366f7e846efc88b533958e8dbb41b87 | 419 | cpp | C++ | source/aufgabe-1-12.cpp | GottaGoGitHub/programmiersprachen-abgabe-1 | f1707ef3fecd84105f754c206497a4fb350b1c86 | [
"MIT"
] | null | null | null | source/aufgabe-1-12.cpp | GottaGoGitHub/programmiersprachen-abgabe-1 | f1707ef3fecd84105f754c206497a4fb350b1c86 | [
"MIT"
] | null | null | null | source/aufgabe-1-12.cpp | GottaGoGitHub/programmiersprachen-abgabe-1 | f1707ef3fecd84105f754c206497a4fb350b1c86 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
float volumen(float radius, float hoehe){
float vol = M_PI * radius * radius * hoehe;
return vol;
}
float oberflaeche(float radius, float hoehe){
float of = 2 * M_PI * radius * (radius + hoehe);
return of;
}
int main(){
int r = 4;
int h = 5;
std::cout... | 19.952381 | 108 | 0.577566 | GottaGoGitHub |
2aac0fe3b3cd7a84b3fdeaa5168daa3e924ae1f7 | 12,898 | cc | C++ | src/base/WCSimDataCleaner.cc | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | src/base/WCSimDataCleaner.cc | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | src/base/WCSimDataCleaner.cc | chipsneutrino/chips-reco | 0d9e7e8a1dd749a2b0b0d64eabf0b32d895f19ba | [
"MIT"
] | null | null | null | #include "WCSimDataCleaner.hh"
#include "WCSimRecoDigit.hh"
#include "WCSimRecoCluster.hh"
#include "WCSimRecoClusterDigit.hh"
#include <cmath>
#include <iostream>
#include <cassert>
ClassImp(WCSimDataCleaner)
static WCSimDataCleaner *fgDataCleaner = 0;
WCSimDataCleaner *WCSimDataCleaner::Instance()
{
if (!fgDat... | 28.347253 | 119 | 0.65956 | chipsneutrino |
2ab139ec223782022e5b03681888693d49ab0918 | 39,723 | cc | C++ | supersonic/cursor/core/hybrid_aggregate_test.cc | IssamElbaytam/supersonic | 062a48ddcb501844b25a8ae51bd777fcf7ac1721 | [
"Apache-2.0"
] | 201 | 2015-03-18T21:55:00.000Z | 2022-03-03T01:48:26.000Z | supersonic/cursor/core/hybrid_aggregate_test.cc | edisona/supersonic | 062a48ddcb501844b25a8ae51bd777fcf7ac1721 | [
"Apache-2.0"
] | 6 | 2015-03-19T16:47:19.000Z | 2020-10-05T09:38:26.000Z | supersonic/cursor/core/hybrid_aggregate_test.cc | edisona/supersonic | 062a48ddcb501844b25a8ae51bd777fcf7ac1721 | [
"Apache-2.0"
] | 54 | 2015-03-19T16:31:57.000Z | 2021-12-31T10:14:57.000Z | // Copyright 2011 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 40.533673 | 80 | 0.65914 | IssamElbaytam |
2ab509d027a430f7d149af45caa410bed541eb1d | 3,644 | cpp | C++ | src/Shared.cpp | IWantedToBeATranslator/2D-Strip-Packing | 4ee9a220f2e9debf775b020d961f0ba547f32636 | [
"MIT"
] | 1 | 2017-12-12T19:23:44.000Z | 2017-12-12T19:23:44.000Z | src/Shared.cpp | IWantedToBeATranslator/2D-Strip-Packing | 4ee9a220f2e9debf775b020d961f0ba547f32636 | [
"MIT"
] | 1 | 2016-04-20T18:47:05.000Z | 2016-05-04T08:05:45.000Z | src/Shared.cpp | IWantedToBeATranslator/2D-Strip-Packing | 4ee9a220f2e9debf775b020d961f0ba547f32636 | [
"MIT"
] | 1 | 2019-07-14T15:39:27.000Z | 2019-07-14T15:39:27.000Z | #include "Shared.h"
Resources algosResources;
int eCount = 120;
spColorRectSprite* _bloxArray = new spColorRectSprite[eCount];
spClipRectActor _blockClip;
spTextField _mainInfo;
int* bloxHeights = new int[eCount];
int* bloxWidths = new int[eCount];
int algosHeights = 0;
int algosSpaces... | 26.028571 | 131 | 0.649012 | IWantedToBeATranslator |
2ab8fbf2535cfcac80e64bd88f1c8ffc46090fac | 3,005 | cc | C++ | src/QGenderSelector.cc | png85/QGenderSelector | e4df122b582c9c9861416c4dad11d2a24daf44c0 | [
"BSD-3-Clause"
] | null | null | null | src/QGenderSelector.cc | png85/QGenderSelector | e4df122b582c9c9861416c4dad11d2a24daf44c0 | [
"BSD-3-Clause"
] | null | null | null | src/QGenderSelector.cc | png85/QGenderSelector | e4df122b582c9c9861416c4dad11d2a24daf44c0 | [
"BSD-3-Clause"
] | null | null | null | #include <QDebug>
#ifndef HAS_CXX11_NULLPTR
#define nullptr 0
#endif
#include "QGenderSelector.h"
QGenderSelector::QGenderSelector(QWidget* parent)
: QFrame(parent)
, m_layout(nullptr)
, m_radioMale(nullptr)
, m_radioFemale(nullptr)
, m_radioOther(nullptr)
, m_selectedGender(Other)
{
qReg... | 27.318182 | 113 | 0.658236 | png85 |
2abcb0a402576a40db36efcd62d48c7ae939fbac | 2,198 | cpp | C++ | src/Game/Tile.cpp | warzes/RPGInBox | 3d8ccbb38711cf6a1b2542113fa4d9a9e53c9e31 | [
"MIT"
] | 3 | 2021-07-12T14:54:01.000Z | 2021-09-06T07:45:40.000Z | src/Game/Tile.cpp | warzes/RPGInBox | 3d8ccbb38711cf6a1b2542113fa4d9a9e53c9e31 | [
"MIT"
] | null | null | null | src/Game/Tile.cpp | warzes/RPGInBox | 3d8ccbb38711cf6a1b2542113fa4d9a9e53c9e31 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Tile.h"
#include "IGameCamera.h"
#include "ResourceManager.h"
#include "DebugNew.h"
//-----------------------------------------------------------------------------
const std::map<TileType, std::string> textureFloorName =
{
{TileType::Grass, "../data/temp/textures/map/outdoor/plains-ground... | 42.269231 | 99 | 0.572338 | warzes |
2abe9aca53375ac18c7ffd4c74d19f614c434b00 | 440 | cpp | C++ | contest/AtCoder/abc054/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc054/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc054/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "string.hpp"
#include "vector.hpp"
int main() {
int n(in), m(in);
Vector<String> a(n, in), b(m, in);
for (int i = 0; i <= n - m; ++i) {
for (int j = 0; j <= n - m; ++j) {
bool f = true;
for (int y = 0; y < m; ++y) {
if (a[i + y].substr(j, m) != b[y]) {
f = false;
... | 19.130435 | 44 | 0.381818 | not522 |
2ac161fe17f70736e67259973c29806aaf9d8dbb | 5,200 | cpp | C++ | Lighting/readFiles.cpp | arturnista/glfwstudy | fa24539c88149d388aebada68e6e10b862e19829 | [
"MIT"
] | null | null | null | Lighting/readFiles.cpp | arturnista/glfwstudy | fa24539c88149d388aebada68e6e10b862e19829 | [
"MIT"
] | null | null | null | Lighting/readFiles.cpp | arturnista/glfwstudy | fa24539c88149d388aebada68e6e10b862e19829 | [
"MIT"
] | null | null | null | #define _SCL_SECURE_NO_WARNINGS
#pragma warning(disable:4996)
#include "readFiles.h"
const char* readFile(string filename) {
string fullFileData;
ifstream openedFile(filename.c_str());
if (openedFile.is_open()) {
string line;
while (getline(openedFile, line)) {
fullFileData += line + '\n';
}
openedFile... | 29.050279 | 107 | 0.660577 | arturnista |
2ac6b4e01d4de1730cfa471c02c28130113840c8 | 8,498 | hpp | C++ | foedus_code/foedus-core/include/foedus/storage/hash/hash_reserve_impl.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/storage/hash/hash_reserve_impl.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/storage/hash/hash_reserve_impl.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 40.660287 | 99 | 0.730525 | sam1016yu |
2acd9c96f14697bc28ea6bbcba21a2d4fb13b485 | 288 | cc | C++ | test/foo_test.cc | jingleman/cmake-gtest-gbench-starter | 19bb4e3c17a2dea4c372d9cdbfab1eb557d1a5f0 | [
"MIT"
] | 27 | 2017-01-14T19:48:26.000Z | 2022-01-30T01:09:16.000Z | test/foo_test.cc | jingleman/cmake-gtest-gbench-starter | 19bb4e3c17a2dea4c372d9cdbfab1eb557d1a5f0 | [
"MIT"
] | 1 | 2018-11-12T19:53:37.000Z | 2018-11-30T18:23:10.000Z | test/foo_test.cc | jingleman/cmake-gtest-gbench-starter | 19bb4e3c17a2dea4c372d9cdbfab1eb557d1a5f0 | [
"MIT"
] | 13 | 2017-02-12T00:53:53.000Z | 2021-10-02T01:59:00.000Z | #include <iostream>
#include "gtest/gtest.h"
#include "nemo/foo.hh"
TEST(NemoFoo, Positives) {
EXPECT_EQ(38, nemo::foo(-4));
EXPECT_EQ(42, nemo::foo(0));
}
TEST(NemoFoo, Negatives) {
EXPECT_NE(-1, nemo::foo(99));
EXPECT_NE(0, nemo::foo(-41));
EXPECT_NE(42, nemo::foo(42));
}
| 18 | 31 | 0.642361 | jingleman |
2acfa040b8768fabb1f707f57acffb09db8ad8e8 | 10,266 | cpp | C++ | src/player.cpp | mokoi/luxengine | 965532784c4e6112141313997d040beda4b56d07 | [
"MIT"
] | 11 | 2015-03-02T07:43:00.000Z | 2021-12-04T04:53:02.000Z | src/player.cpp | mokoi/luxengine | 965532784c4e6112141313997d040beda4b56d07 | [
"MIT"
] | 1 | 2015-03-28T17:17:13.000Z | 2016-10-10T05:49:07.000Z | src/player.cpp | mokoi/luxengine | 965532784c4e6112141313997d040beda4b56d07 | [
"MIT"
] | 3 | 2016-11-04T01:14:31.000Z | 2020-05-07T23:42:27.000Z | /****************************
Copyright © 2006-2015 Luke Salisbury
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, includi... | 27.449198 | 243 | 0.667933 | mokoi |
2ade04cfa5f59cb6558411487dafbfd39a12c9b5 | 2,515 | cpp | C++ | pop/src/commands/PopCommand.cpp | webOS-ports/mojomail | 49358ac2878e010f5c6e3bd962f047c476c11fc3 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:20:27.000Z | 2021-01-02T08:14:23.000Z | mojomail/pop/src/commands/PopCommand.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 3 | 2019-05-11T19:17:56.000Z | 2021-11-24T16:04:36.000Z | mojomail/pop/src/commands/PopCommand.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:21:13.000Z | 2021-01-02T02:37:10.000Z | // @@@LICENSE
//
// Copyright (c) 2009-2013 LG Electronics, Inc.
//
// 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 require... | 19.496124 | 76 | 0.706958 | webOS-ports |
2adfa4f053b54d03783143ef2975b341585ef9de | 429 | cpp | C++ | 1-Iniciante/10/2754.cpp | pedrospaulo/01-C- | d513a2fd87a82d90780aa69782d1a1b73b53d6c1 | [
"MIT"
] | null | null | null | 1-Iniciante/10/2754.cpp | pedrospaulo/01-C- | d513a2fd87a82d90780aa69782d1a1b73b53d6c1 | [
"MIT"
] | null | null | null | 1-Iniciante/10/2754.cpp | pedrospaulo/01-C- | d513a2fd87a82d90780aa69782d1a1b73b53d6c1 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main(){
double a, b;
a = 234.345;
b = 45.698;
printf("%.6lf - %.6lf\n", a, b);
printf("%.0lf - %.0lf\n", a, b);
printf("%.1lf - %.1lf\n", a, b);
printf("%.2lf - %.2lf\n", a, b);
printf("%.3lf - %.3lf\n", a, b);
printf("%.6e - %.6e\n", a, b);
printf("%.6E ... | 21.45 | 36 | 0.417249 | pedrospaulo |
2ae191ffc744a8211ebbf6e56ec0bc93226e076a | 1,447 | cpp | C++ | Source/UnrealCPP/OnComponentHit/OnComponentHit.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | 6 | 2018-04-22T15:27:39.000Z | 2021-11-02T17:33:58.000Z | Source/UnrealCPP/OnComponentHit/OnComponentHit.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | null | null | null | Source/UnrealCPP/OnComponentHit/OnComponentHit.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | 4 | 2018-07-26T15:39:46.000Z | 2020-12-28T08:10:35.000Z | // Harrison McGuire
// UE4 Version 4.18.2
// https://github.com/Harrison1/unrealcpp
// https://severallevels.io
// https://harrisonmcguire.com
#include "OnComponentHit.h"
#include "Components/BoxComponent.h"
#include "Components/StaticMeshComponent.h"
// Sets default values
AOnComponentHit::AOnComponentHit()
{
// ... | 27.826923 | 159 | 0.750518 | Harrison1 |
2ae78bbf1a3a33bd97dabb65c87239644c78f816 | 4,449 | cpp | C++ | Drivers/src/MPU6050.cpp | John-Carr/SolarGatorsBSP_STM | df68ccd2add244c90a573a5d4e1de5400361a2b5 | [
"MIT"
] | null | null | null | Drivers/src/MPU6050.cpp | John-Carr/SolarGatorsBSP_STM | df68ccd2add244c90a573a5d4e1de5400361a2b5 | [
"MIT"
] | null | null | null | Drivers/src/MPU6050.cpp | John-Carr/SolarGatorsBSP_STM | df68ccd2add244c90a573a5d4e1de5400361a2b5 | [
"MIT"
] | null | null | null | /*
* MPU6050.cpp
*
* Created on: Jan 24, 2022
* Author: John Carr
*/
#include "MPU6050.hpp"
namespace SolarGators {
namespace Drivers {
MPU6050::MPU6050(I2C_HandleTypeDef *hi2c, uint8_t addr):hi2c_(hi2c),addr_(addr)
{ }
MPU6050::~MPU6050()
{ }
uint8_t MPU6050::Init()
{
uint8_t check;
uint8_t Data;
... | 27.128049 | 85 | 0.665093 | John-Carr |
2af075aae50298928cf55c5df1dbf088ddc2a313 | 57,048 | cc | C++ | local/CrystalSystem.cc | dch0ph/libcmatrix | 1f5fae7a398fe2c643252f93371b407dbfb70855 | [
"MIT"
] | null | null | null | local/CrystalSystem.cc | dch0ph/libcmatrix | 1f5fae7a398fe2c643252f93371b407dbfb70855 | [
"MIT"
] | null | null | null | local/CrystalSystem.cc | dch0ph/libcmatrix | 1f5fae7a398fe2c643252f93371b407dbfb70855 | [
"MIT"
] | null | null | null | #undef LCM_SUPPRESS_VIEWS
#include <cstdlib>
#include "CrystalSystem.h"
#include "lcm_MetaPropagation.h"
#include "cmatrix.h"
#include "rmatrix.h"
#include "space_T.h"
#include "ScratchList.h"
#include "matlabio.h"
#include "ListList.h"
#include "NMR.h"
namespace libcmatrix {
using ::std::sqrt;
const size_t inva... | 28.958376 | 200 | 0.661005 | dch0ph |
2af49f6548a23e9d8075e31edfcdcec88ff0e80b | 2,167 | cpp | C++ | nd-coursework/books/cpp/BeginningC++17/Chapter07/Exercises/Exercise7_02/Exercise7_02.cpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/BeginningC++17/Chapter07/Exercises/Exercise7_02/Exercise7_02.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/BeginningC++17/Chapter07/Exercises/Exercise7_02/Exercise7_02.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2021 Cody R. Drisko. All rights reserved.
// Licensed under the MIT License. See the LICENSE file in the project root for more information.
//
// Name: Exercise7_02.cpp
// Author: cdrisko
// Date: 08/02/2020-13:27:53
// Description: Determining all unique words from a user's input over an arbitrar... | 28.142857 | 98 | 0.551915 | crdrisko |
2af4b636d42086a487f00c81ef1659e958235d8d | 801 | hpp | C++ | rt/rtweekend.hpp | rrobio/zr_ren | 4ffc61320100e1917c42a8155b45ad2d50f7040a | [
"MIT"
] | null | null | null | rt/rtweekend.hpp | rrobio/zr_ren | 4ffc61320100e1917c42a8155b45ad2d50f7040a | [
"MIT"
] | null | null | null | rt/rtweekend.hpp | rrobio/zr_ren | 4ffc61320100e1917c42a8155b45ad2d50f7040a | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
#include <cstdlib>
#include <limits>
#include <memory>
#include <random>
using std::shared_ptr;
using std::make_shared;
using std::sqrt;
double const infinity = std::numeric_limits<double>::infinity();
double const pi = 3.1415926535897932385;
inline double degrees_to_radians(double de... | 18.627907 | 73 | 0.722846 | rrobio |
2afa200b89ca95727a85619a6b17c74eda94a1c6 | 240 | cpp | C++ | libboost-container-hash/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | 4 | 2021-02-23T11:24:33.000Z | 2021-09-11T20:10:46.000Z | libboost-container-hash/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | null | null | null | libboost-container-hash/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | null | null | null | #include <boost/container_hash/extensions.hpp>
#include <boost/container_hash/hash_fwd.hpp>
#include <boost/container_hash/hash.hpp>
#include <boost/functional/hash_fwd.hpp>
#include <boost/functional/hash.hpp>
int
main ()
{
return 0;
}
| 20 | 46 | 0.770833 | build2-packaging |
2afacb9a31068fdb0add18d2d1c43d8190accb51 | 149 | cpp | C++ | explicit/toposort.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | explicit/toposort.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | explicit/toposort.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | 1 | 2020-04-24T02:28:32.000Z | 2020-04-24T02:28:32.000Z | //
// toposort.cpp
// explicit
//
// Created by Li Li on 25/8/13.
// Copyright (c) 2013 Lilissun. All rights reserved.
//
#include "toposort.h"
| 14.9 | 53 | 0.630872 | lilissun |
63085f41f985a57944532103b7134c8b94bc6fe1 | 4,456 | cc | C++ | number-of-islands.cc | sonald/leetcode | 3c34e2779a736acc880876f4244f1becd7b199ed | [
"MIT"
] | null | null | null | number-of-islands.cc | sonald/leetcode | 3c34e2779a736acc880876f4244f1becd7b199ed | [
"MIT"
] | null | null | null | number-of-islands.cc | sonald/leetcode | 3c34e2779a736acc880876f4244f1becd7b199ed | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
#include <random>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <iomanip>
#include <algorithm>
using namespace std;
template<class T, class S>
ostream& operator<<(ostream& os, const unordered_map<T, S>& ... | 23.956989 | 92 | 0.360862 | sonald |
debabfa9624630c30a6bad131bbd73fc8a1d91e2 | 1,196 | cpp | C++ | data-structure/A1028/main.cpp | pipo-chen/play-ptat | d97d0bafcb6ef0a32f4969e0adffd400c673bf77 | [
"MIT"
] | 1 | 2021-05-26T23:14:01.000Z | 2021-05-26T23:14:01.000Z | data-structure/A1028/main.cpp | pipo-chen/play-pat | 4968f7f1db3fdb48925f5c29574cdc72339c7233 | [
"MIT"
] | null | null | null | data-structure/A1028/main.cpp | pipo-chen/play-pat | 4968f7f1db3fdb48925f5c29574cdc72339c7233 | [
"MIT"
] | null | null | null | //
// main.cpp
// A1028
//
// Created by mark on 2021/5/27.
// Copyright © 2021 xihe. All rights reserved.
//
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace :: std;
struct Student {
char name[10];
long id;
int grade;
}stu[100010];
bool cmp_id(Student a, Student b) {
/... | 21.357143 | 69 | 0.529264 | pipo-chen |
debee1f4abf1a11091e5d92b0ed344428474a607 | 1,765 | cpp | C++ | Solutions/bitmap.cpp | sjnonweb/spoj | 72cf2afcf4466f1356a8646b5e4f925144cb9172 | [
"MIT"
] | 1 | 2016-10-05T20:07:03.000Z | 2016-10-05T20:07:03.000Z | Solutions/bitmap.cpp | sjnonweb/spoj | 72cf2afcf4466f1356a8646b5e4f925144cb9172 | [
"MIT"
] | null | null | null | Solutions/bitmap.cpp | sjnonweb/spoj | 72cf2afcf4466f1356a8646b5e4f925144cb9172 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
using namespace std;
int mat[200][200];
void bfs(int,int);
int main()
{
int test;
cin>>test;
while(test--)
{
vector < pair <int,int> > vc;
int m,n;
cin>>m>>n;
int i,j;
char ch;
f... | 19.184783 | 49 | 0.338244 | sjnonweb |
dec3f5e72bbf5cc0e80336eeda77f3e074ca65e7 | 16,314 | cc | C++ | examples/chat/node_modules/php-embed/src/node_php_embed.cc | jehovahsays/MMOSOCKETHTML5JSCHAT | 3ae5956184ee1a1b63b1a8083fd3a43edd30dffd | [
"MIT"
] | 34 | 2015-10-28T06:08:50.000Z | 2021-12-22T06:34:28.000Z | examples/chat/node_modules/php-embed/src/node_php_embed.cc | jehovahsays/MMOSOCKETHTML5JSCHAT | 3ae5956184ee1a1b63b1a8083fd3a43edd30dffd | [
"MIT"
] | 3 | 2016-02-15T22:09:42.000Z | 2019-10-06T23:19:01.000Z | examples/chat/node_modules/php-embed/src/node_php_embed.cc | jehovahsays/MMOSOCKETHTML5JSCHAT | 3ae5956184ee1a1b63b1a8083fd3a43edd30dffd | [
"MIT"
] | 6 | 2015-11-19T14:27:34.000Z | 2019-10-09T23:36:51.000Z | // Main entry point: this is the node module declaration, contains
// the PhpRequestWorker which shuttles messages between node and PHP,
// and contains the SAPI hooks to configure PHP to talk to node.
// Copyright (c) 2015 C. Scott Ananian <cscott@cscott.net>
#include "src/node_php_embed.h"
#include <dlfcn.h> // fo... | 36.660674 | 80 | 0.716072 | jehovahsays |
dec5f3eff0c32ae0ad9d69d3ca362fc866dd4dfe | 10,479 | hpp | C++ | include/codegen/arithmetic_ops.hpp | tetzank/codegen | 790aeccd6f2651dff053118593606fe8e560071c | [
"MIT"
] | 389 | 2019-05-19T16:51:28.000Z | 2022-02-27T12:29:38.000Z | include/codegen/arithmetic_ops.hpp | tetzank/codegen | 790aeccd6f2651dff053118593606fe8e560071c | [
"MIT"
] | 3 | 2019-05-20T05:42:57.000Z | 2019-07-17T18:50:17.000Z | include/codegen/arithmetic_ops.hpp | tetzank/codegen | 790aeccd6f2651dff053118593606fe8e560071c | [
"MIT"
] | 20 | 2019-05-19T17:00:02.000Z | 2021-12-29T01:47:50.000Z | /*
* Copyright © 2019 Paweł Dziepak
*
* 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... | 44.974249 | 120 | 0.662945 | tetzank |
decb5f3e24416b5c57dff14134c7bd4af36dfda0 | 1,593 | cpp | C++ | OOD/Mediator.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | 1 | 2020-04-14T05:44:50.000Z | 2020-04-14T05:44:50.000Z | OOD/Mediator.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | null | null | null | OOD/Mediator.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | 2 | 2020-09-02T08:56:31.000Z | 2021-06-22T11:20:58.000Z | #include <iostream>
#include <string>
using namespace std;
class BaseComponent;
class Mediator {
public:
virtual void Notify(BaseComponent* sender, string event) const = 0;
};
class BaseComponent {
public:
BaseComponent(Mediator* mediator_ = NULL) : mediator(mediator_) {}
void set_mediator(Mediator* mediator_) { t... | 18.964286 | 92 | 0.654739 | FrancsXiang |
ded17ec2fa9669d5627c4a5f44d09827ea652fed | 502 | hpp | C++ | include/RunStatisticsPrinter.hpp | pixie-net/pixie-net-api | 743e473845fc6c6d674d454b3a419d55372d99d4 | [
"Unlicense"
] | null | null | null | include/RunStatisticsPrinter.hpp | pixie-net/pixie-net-api | 743e473845fc6c6d674d454b3a419d55372d99d4 | [
"Unlicense"
] | 3 | 2019-04-07T17:18:47.000Z | 2019-11-10T22:08:18.000Z | include/RunStatisticsPrinter.hpp | spaulaus/pixie-net | 743e473845fc6c6d674d454b3a419d55372d99d4 | [
"Unlicense"
] | null | null | null | /// @file RunStatisticsPrinter.hpp
/// @brief
/// @author S. V. Paulauskas
/// @date March 07, 2020
#ifndef PIXIE_NET_RUNSTATISTICSPRINTER_HPP
#define PIXIE_NET_RUNSTATISTICSPRINTER_HPP
#include <string>
#include "RunStatistics.hpp"
class RunStatisticsPrinter {
public:
std::string format_stats_as_json(const Run... | 23.904762 | 103 | 0.782869 | pixie-net |
deddaa5f897b59953aab13c08c8174c32390374e | 1,096 | cpp | C++ | 05.Purity-avoding-mutable-state/5.6-calculating-the-coordinates-of-the-neighboring-cell.cpp | Haceau-Zoac/Functional-Programming-in-C- | f3130d9faaaed2e3d5358f74341e4349f337d592 | [
"MIT"
] | null | null | null | 05.Purity-avoding-mutable-state/5.6-calculating-the-coordinates-of-the-neighboring-cell.cpp | Haceau-Zoac/Functional-Programming-in-C- | f3130d9faaaed2e3d5358f74341e4349f337d592 | [
"MIT"
] | null | null | null | 05.Purity-avoding-mutable-state/5.6-calculating-the-coordinates-of-the-neighboring-cell.cpp | Haceau-Zoac/Functional-Programming-in-C- | f3130d9faaaed2e3d5358f74341e4349f337d592 | [
"MIT"
] | null | null | null | enum direction_t {
Left,
Right,
Up,
Down
};
class position_t {
public:
position_t(position_t const& original, direction_t direction);
int x;
int y;
};
class maze_t {
public:
auto is_wall(position_t) const -> bool;
};
auto next_position(direction_t direction, position_t const& previous_position, maze... | 28.102564 | 98 | 0.642336 | Haceau-Zoac |
dedf7c03d1c65efbcaa565d8e992e67eb126a424 | 3,491 | cpp | C++ | src/bindings/bnd_arccurve.cpp | lukegehron/rhino3dm | 0e124084f7397f72aa82e499124a9232497573f0 | [
"MIT"
] | 343 | 2018-10-17T07:36:55.000Z | 2022-03-31T08:18:36.000Z | src/bindings/bnd_arccurve.cpp | iintrigued/rhino3dm | aa3cffaf66a22883de64b4bc096d554341c1ce39 | [
"MIT"
] | 187 | 2018-10-18T23:07:44.000Z | 2022-03-24T02:05:00.000Z | src/bindings/bnd_arccurve.cpp | iintrigued/rhino3dm | aa3cffaf66a22883de64b4bc096d554341c1ce39 | [
"MIT"
] | 115 | 2018-10-18T01:17:20.000Z | 2022-03-31T16:43:58.000Z | #include "bindings.h"
BND_ArcCurve::BND_ArcCurve()
{
SetTrackedPointer(new ON_ArcCurve(), nullptr);
}
BND_ArcCurve::BND_ArcCurve(ON_ArcCurve* arccurve, const ON_ModelComponentReference* compref)
{
SetTrackedPointer(arccurve, compref);
}
BND_ArcCurve::BND_ArcCurve(const BND_ArcCurve& other)
{
ON_ArcCurve* ac = ... | 35.989691 | 126 | 0.741335 | lukegehron |
dee2cd3b6100c754c56c40c94f9d272e4beb7bf7 | 2,305 | hpp | C++ | MuleUtilities/asset/include/mule/asset/FileReader.hpp | Godlike/Mule | 3601d3e063aa2a0a1bbf7289e97bdeb5e5899589 | [
"MIT"
] | null | null | null | MuleUtilities/asset/include/mule/asset/FileReader.hpp | Godlike/Mule | 3601d3e063aa2a0a1bbf7289e97bdeb5e5899589 | [
"MIT"
] | 9 | 2018-02-01T03:59:06.000Z | 2018-12-17T04:07:16.000Z | MuleUtilities/asset/include/mule/asset/FileReader.hpp | Godlike/Mule | 3601d3e063aa2a0a1bbf7289e97bdeb5e5899589 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018 by Godlike
* This code is licensed under the MIT license (MIT)
* (http://opensource.org/licenses/MIT)
*/
#ifndef MULE_ASSET_FILE_READER_HPP
#define MULE_ASSET_FILE_READER_HPP
#include <cstdint>
#include <string>
#include <vector>
namespace mule
{
namespace asset
{
/** @brief Provides lazy a... | 22.821782 | 64 | 0.631236 | Godlike |
dee63d1b372e3665741e501e2311d8809a5ddbef | 1,318 | hpp | C++ | src/PhysicsSystem.hpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | 2 | 2018-05-13T05:27:29.000Z | 2018-05-29T06:35:57.000Z | src/PhysicsSystem.hpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | src/PhysicsSystem.hpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | #ifndef PHYSICSSYSTEM__HPP
#define PHYSICSSYSTEM__HPP
//DESCRIPTION
/*
System used to deal with physics components and handle the per frame
changes of entities. Interactions between entities is handled by the
collision system.
*/
//INCLUDES
#include <vector>
#include <algorithm>
#include <SDL2/SDL.h>
#include ... | 22.724138 | 77 | 0.764795 | benzap |
deec7f28da5171ff13a977de2bc27671736bbeaa | 571 | cpp | C++ | aoc2015/aoc151001.cpp | jiayuehua/adventOfCode | fd47ddefd286fe94db204a9850110f8d1d74d15b | [
"Unlicense"
] | null | null | null | aoc2015/aoc151001.cpp | jiayuehua/adventOfCode | fd47ddefd286fe94db204a9850110f8d1d74d15b | [
"Unlicense"
] | null | null | null | aoc2015/aoc151001.cpp | jiayuehua/adventOfCode | fd47ddefd286fe94db204a9850110f8d1d74d15b | [
"Unlicense"
] | null | null | null | #include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <fmt/format.h>
#include <string>
#include <iomanip>
int main(int argc, char **argv)
{
std::string sa("1113222113");
std::string sr;
std::string sb;
for (int i = 0; i < 50; ++i) {
for (auto it = sa.begin(), end = sa.begin... | 22.84 | 76 | 0.539405 | jiayuehua |
def38bf45be159dec1481769db71fda69e44eff8 | 3,056 | cpp | C++ | RLSimion/CNTKWrapper/cntk-wrapper.cpp | utercero/SimionZoo | 1fa570ae88f5d7e88e13a67ec27cda2de820ffee | [
"Zlib"
] | 30 | 2019-02-20T19:33:15.000Z | 2020-03-26T13:46:51.000Z | RLSimion/CNTKWrapper/cntk-wrapper.cpp | utercero/SimionZoo | 1fa570ae88f5d7e88e13a67ec27cda2de820ffee | [
"Zlib"
] | 52 | 2018-02-28T17:16:37.000Z | 2019-02-15T18:26:21.000Z | RLSimion/CNTKWrapper/cntk-wrapper.cpp | borjafdezgauna/SimionZoo | 42dd3106d60077bea7e6b64b9f25c3268adc3be8 | [
"Zlib"
] | 25 | 2019-02-20T19:30:52.000Z | 2022-01-01T03:15:21.000Z | /*
SimionZoo: A framework for online model-free Reinforcement Learning on continuous
control problems
Copyright (c) 2016 SimionSoft. https://github.com/simionsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to ... | 47.75 | 226 | 0.829843 | utercero |
def7f729a001893eeecfe957d3b8dd36f6f156a3 | 94 | hpp | C++ | aa/aa_tools.hpp | salleaffaire/lmolly | 62012a7219035bee90b9ad3f2b49625e09b0c206 | [
"MIT"
] | null | null | null | aa/aa_tools.hpp | salleaffaire/lmolly | 62012a7219035bee90b9ad3f2b49625e09b0c206 | [
"MIT"
] | null | null | null | aa/aa_tools.hpp | salleaffaire/lmolly | 62012a7219035bee90b9ad3f2b49625e09b0c206 | [
"MIT"
] | null | null | null | #ifndef AA_TOOLS_HPP___
#define AA_TOOLS_HPP___
#include <iostream>
#include <mutex>
#endif
| 11.75 | 23 | 0.787234 | salleaffaire |
7206b81f6cf3a4c5f69f020f3bf4b01747102377 | 1,173 | cpp | C++ | Array/easy/414_Third_Maximum_Number/ThirdMaxNumber.cpp | quq99/Leetcode_notes | eb3bee5ed161a0feb4ce1d48b682c000c95b4be3 | [
"MIT"
] | 1 | 2019-05-16T23:18:17.000Z | 2019-05-16T23:18:17.000Z | Array/easy/414_Third_Maximum_Number/ThirdMaxNumber.cpp | quq99/Leetcode_notes | eb3bee5ed161a0feb4ce1d48b682c000c95b4be3 | [
"MIT"
] | null | null | null | Array/easy/414_Third_Maximum_Number/ThirdMaxNumber.cpp | quq99/Leetcode_notes | eb3bee5ed161a0feb4ce1d48b682c000c95b4be3 | [
"MIT"
] | null | null | null | // ThirdMaxNumber.cpp
#include<vector>
using std::vector;
class ThirdMaxNumber {
public:
int thirdMax(vector<int>& nums) {
int first = INT_MIN;
int second = first;
int third = second;
int count = 0;
bool once = true;
for (int i = 0; i... | 27.27907 | 64 | 0.351236 | quq99 |
720bc63f6db2bc66bc41ab14f5f82b0035a24eca | 1,711 | cpp | C++ | Assignment 3/Assignment 3/StudentEmployee.cpp | justin-harper/cs122 | 83949bc097cf052ffe6b8bd82002377af4d9cede | [
"MIT"
] | null | null | null | Assignment 3/Assignment 3/StudentEmployee.cpp | justin-harper/cs122 | 83949bc097cf052ffe6b8bd82002377af4d9cede | [
"MIT"
] | null | null | null | Assignment 3/Assignment 3/StudentEmployee.cpp | justin-harper/cs122 | 83949bc097cf052ffe6b8bd82002377af4d9cede | [
"MIT"
] | null | null | null | /*
Assignment: 3
Description: Paycheck Calculator
Author: Justin Harper
WSU ID: 10696738 Completion Time: 8hrs
In completing this program, I received help from the following people:
myself
version 1.0 I am happy with this version!
*/
#include "StudentEmployee.h"
#include "Employee.h"
#include <iostream>
using na... | 18.397849 | 122 | 0.755114 | justin-harper |
720f18e0d69129ebaa192dbb61719c210937df35 | 9,610 | hpp | C++ | core/utils/bitpack.hpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | core/utils/bitpack.hpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | core/utils/bitpack.hpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2021 ArangoDB GmbH, Cologne, Germany
///
/// 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... | 27.936047 | 82 | 0.661394 | geenen124 |
721255ad57354655e55fb97d74dae1a9ec15c863 | 8,168 | hpp | C++ | include/codegen/include/Polyglot/Localization.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Polyglot/Localization.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Polyglot/Localization.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:10 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: UnityEngine.ScriptableObject
#include "UnityEngine/Scriptabl... | 44.879121 | 95 | 0.74192 | Futuremappermydud |
7218cd9b1bb2200cc5bc6da3bd7e94a6b954870a | 17,880 | cpp | C++ | src/engines/Examples/Basic/05b-ObsGroupAppend.cpp | Gibies/ioda | 5bd372e548eb61d5f7b56a0b3d4cf0ca05e49e75 | [
"Apache-2.0"
] | 1 | 2021-06-09T16:11:50.000Z | 2021-06-09T16:11:50.000Z | src/engines/Examples/Basic/05b-ObsGroupAppend.cpp | Gibies/ioda | 5bd372e548eb61d5f7b56a0b3d4cf0ca05e49e75 | [
"Apache-2.0"
] | null | null | null | src/engines/Examples/Basic/05b-ObsGroupAppend.cpp | Gibies/ioda | 5bd372e548eb61d5f7b56a0b3d4cf0ca05e49e75 | [
"Apache-2.0"
] | 3 | 2021-06-09T16:12:02.000Z | 2021-11-14T09:19:25.000Z | /*
* (C) Copyright 2020-2021 UCAR
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
/*! \addtogroup ioda_cxx_ex
*
* @{
*
* \defgroup ioda_cxx_ex_5b Ex 5b: Appending to ObsGroups
* \brief Appending to ObsGro... | 48.455285 | 100 | 0.654698 | Gibies |
721ba8ca705716f1448757db5bf34109112c4d89 | 981 | cpp | C++ | Online Assignment 01/Version C/Version C - Thushara.cpp | GIHAA/Cpp-programming | 0b094868652fd83f8dc4eb02c5abe3c3501bcdf1 | [
"MIT"
] | 19 | 2021-04-28T13:32:15.000Z | 2022-03-08T11:52:59.000Z | Online Assignment 01/Version C/Version C - Thushara.cpp | GIHAA/Cpp-programming | 0b094868652fd83f8dc4eb02c5abe3c3501bcdf1 | [
"MIT"
] | 5 | 2021-03-03T08:06:15.000Z | 2021-12-26T18:14:45.000Z | Online Assignment 01/Version C/Version C - Thushara.cpp | GIHAA/Cpp-programming | 0b094868652fd83f8dc4eb02c5abe3c3501bcdf1 | [
"MIT"
] | 27 | 2021-01-18T22:35:01.000Z | 2022-02-22T19:52:19.000Z | // Paper Version : C
#include<iostream>
using namespace std;
// Class declarration
class Lab {
private:
int labID;
int capacity;
public:
void setLabDetails(int lID, int c);
int getCapacity();
};
int main() {
// Create an Objects
Lab l1, l2, l3;
// Set values to... | 16.913793 | 43 | 0.552497 | GIHAA |
721def850ee1995eaafab2a11d042e460b26374e | 761 | cpp | C++ | Source/Dynamics/RigidBody/SphericalJoint.cpp | weikm/sandcarSimulation2 | fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a | [
"Apache-2.0"
] | null | null | null | Source/Dynamics/RigidBody/SphericalJoint.cpp | weikm/sandcarSimulation2 | fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a | [
"Apache-2.0"
] | null | null | null | Source/Dynamics/RigidBody/SphericalJoint.cpp | weikm/sandcarSimulation2 | fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a | [
"Apache-2.0"
] | null | null | null | #include "SphericalJoint.h"
//#include "Dynamics/RigidBody/RigidUtil.h"
namespace PhysIKA {
SphericalJoint::SphericalJoint(std::string name)
: Joint(name)
{
}
SphericalJoint::SphericalJoint(Node* predecessor, Node* successor)
: Joint(predecessor, successor)
{
}
void SphericalJoint::setJointInfo(const Vector... | 21.138889 | 66 | 0.579501 | weikm |
721fc0dd32783489fb6b161f3d1cde85534f2d79 | 4,049 | cc | C++ | squid/squid3-3.3.8.spaceify/src/acl/DestinationIp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/src/acl/DestinationIp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/src/acl/DestinationIp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null | /*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from
* the Internet community; see the CONTRIBUTORS file for f... | 34.905172 | 129 | 0.694492 | spaceify |
7220b26be69e6aee31ac9da80d0d52fbbfac3d00 | 672 | hpp | C++ | src/ProjectForecast/Views/HumanView.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2019-04-09T13:03:11.000Z | 2021-01-27T04:58:29.000Z | src/ProjectForecast/Views/HumanView.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 2 | 2017-02-06T03:48:45.000Z | 2020-08-31T01:30:10.000Z | src/ProjectForecast/Views/HumanView.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2020-06-28T08:19:53.000Z | 2020-06-28T16:30:19.000Z | #pragma once
#include "../InputControllers/InputControllers.hpp"
#include "KEngine/Interfaces/IEvent.hpp"
#include "KEngine/Views/HumanView.hpp"
namespace sf
{
class Event;
}
namespace pf
{
class HumanView : public ke::HumanView
{
public:
HumanView();
virtual ~HumanView();
... | 19.2 | 66 | 0.678571 | yxbh |
7224c60576efa277fb91c372b8811437eb8fbbbc | 2,450 | cpp | C++ | 11_CPP/08_CPP08/ex01/span.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | 11_CPP/08_CPP08/ex01/span.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | 11_CPP/08_CPP08/ex01/span.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* span.cpp :+: :+: :+: ... | 28.488372 | 97 | 0.388571 | tderwedu |
7227476512d2e151478de9c3458c12f99b947667 | 4,319 | cpp | C++ | src/main.cpp | tbukic/CubicSpline | f851ffeca38c89ef124bd4cadecf189a6373596c | [
"MIT"
] | 2 | 2020-04-13T20:15:48.000Z | 2021-03-18T08:44:50.000Z | src/main.cpp | tbukic/CubicSpline | f851ffeca38c89ef124bd4cadecf189a6373596c | [
"MIT"
] | null | null | null | src/main.cpp | tbukic/CubicSpline | f851ffeca38c89ef124bd4cadecf189a6373596c | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Created on: Nov, 2015
* Author: Tomislav
*/
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <memory>
#include <utility>
#include <string>
#include <stdexcept>
#include <sstream>
#include "CubicSpline/CubicSpline.h"
using node = CubicSpline::node;
using function = Cubi... | 24.821839 | 72 | 0.611253 | tbukic |
722ddf61e7b1087a84fcfaaa46ec96d86a796161 | 949 | cpp | C++ | src/lib/base/Fitness.cpp | cantordust/cortex | 0afe4b8c8c3e1b103541188301c3f445ee5d165d | [
"MIT"
] | 2 | 2017-07-04T03:17:15.000Z | 2017-07-04T22:38:59.000Z | src/lib/base/Fitness.cpp | cantordust/cortex | 0afe4b8c8c3e1b103541188301c3f445ee5d165d | [
"MIT"
] | 1 | 2017-07-04T03:31:54.000Z | 2017-07-04T22:38:48.000Z | src/lib/base/Fitness.cpp | cantordust/cortex | 0afe4b8c8c3e1b103541188301c3f445ee5d165d | [
"MIT"
] | null | null | null | #include "Param.hpp"
#include "Fitness.hpp"
namespace Cortex
{
Fitness::Fitness(Config& _cfg)
:
cfg(_cfg),
eff(Eff::Undef)
{
stat.ema_coeff = cfg.fit.ema.coeff;
stat.window_size = std::floor(2.0 / stat.ema_coeff) - 1;
}
void Fitness::set_abs(const real _abs_fit)
{
if (_abs_fit > stat.abs)
{
... | 14.164179 | 58 | 0.56902 | cantordust |
722e9b544c4e21eba7406114aaf8cc67e51f89b9 | 1,238 | cpp | C++ | src/cgi-calculatepi.cpp | fdiblen/cpp2wasm | 1f4424ee586225ddee6680adaf8274031b4bd559 | [
"Apache-2.0"
] | null | null | null | src/cgi-calculatepi.cpp | fdiblen/cpp2wasm | 1f4424ee586225ddee6680adaf8274031b4bd559 | [
"Apache-2.0"
] | null | null | null | src/cgi-calculatepi.cpp | fdiblen/cpp2wasm | 1f4424ee586225ddee6680adaf8274031b4bd559 | [
"Apache-2.0"
] | null | null | null | // this C++ snippet is stored as src/cgi-calculatepi.hpp
#include <string>
#include <iostream>
#include <nlohmann/json.hpp>
// this C++ code snippet is later referred to as <<algorithm>>
#include <iostream>
#include <math.h>
#include "calculatepi.hpp"
#define SEED 35791246
namespace pirng
{
PiCalculate::PiCalculate(... | 21.344828 | 74 | 0.64378 | fdiblen |
722fc6fdde7ffe26c6b78f9b759ae10974128a59 | 2,968 | cpp | C++ | Trimming/ImageInfo.cpp | AinoMegumi/TokidolRankingOCREngine | 225bf6fe328aa4dcd653bf095aff88632c9bac96 | [
"MIT"
] | null | null | null | Trimming/ImageInfo.cpp | AinoMegumi/TokidolRankingOCREngine | 225bf6fe328aa4dcd653bf095aff88632c9bac96 | [
"MIT"
] | null | null | null | Trimming/ImageInfo.cpp | AinoMegumi/TokidolRankingOCREngine | 225bf6fe328aa4dcd653bf095aff88632c9bac96 | [
"MIT"
] | null | null | null | #include "ImageInfo.hpp"
#include "HttpException.hpp"
#include <filesystem>
ImageInfo::ImageInfo(const std::string& FilePath) {
try {
if (!std::filesystem::exists(FilePath)) throw HttpException(404);
this->image = cv::imread(FilePath, 1);
if (this->image.empty()) throw HttpException();
}
catch (const HttpExc... | 34.511628 | 171 | 0.685984 | AinoMegumi |
7232718585b49ce58577ade9572f732a47f3b927 | 1,657 | cpp | C++ | P009-PalindromeNumber/P009-PalindromeNumber/main.cpp | rlan/LeetCode | 0521e27097a01a0a2ba2af30f3185d8bb5e3e227 | [
"MIT"
] | null | null | null | P009-PalindromeNumber/P009-PalindromeNumber/main.cpp | rlan/LeetCode | 0521e27097a01a0a2ba2af30f3185d8bb5e3e227 | [
"MIT"
] | null | null | null | P009-PalindromeNumber/P009-PalindromeNumber/main.cpp | rlan/LeetCode | 0521e27097a01a0a2ba2af30f3185d8bb5e3e227 | [
"MIT"
] | null | null | null | //
// LeetCode
// Algorithm 9 Palindrome Number
//
// Created by Rick Lan on 3/30/17.
// See LICENSE
//
#include <iostream>
using namespace std;
class Solution {
public:
bool isPalindrome(int x) {
if (x >= 0) {
long long save = x;
long long mag2 = 0;
while... | 26.301587 | 75 | 0.494267 | rlan |
72353b7b4849861f1ec9f35c08f48f96e2c7a150 | 282 | cpp | C++ | Pbinfo/Puteri3.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/Puteri3.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/Puteri3.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
#include <iostream>
using namespace std;
int f(int n, int p){
if(n){
if(n%2==1) cout<<p<<" ";
f(n/2, p*2);
}
}
int main()
{
int n, p;
cin>>n;
f(n, 1);
return 0;
}
int main(){
return 0;
} | 9.096774 | 32 | 0.475177 | Al3x76 |
7236aee6f6ec5ed4b01cdfdbae4afa800c4f3f66 | 3,280 | hpp | C++ | src/menu/livechat/livechat_cmd.hpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 6 | 2019-06-11T20:09:01.000Z | 2021-05-28T01:18:27.000Z | src/menu/livechat/livechat_cmd.hpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 7 | 2019-06-14T20:28:31.000Z | 2020-08-11T14:51:03.000Z | src/menu/livechat/livechat_cmd.hpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 1 | 2020-11-07T05:28:23.000Z | 2020-11-07T05:28:23.000Z | // Copyright © 2020 Niventill
// This file is licensed under ISC License. See "LICENSE" in the top level directory for more info.
#ifndef LCCMD_HPP_INCLUDED
#define LCCMD_HPP_INCLUDED
//standard libraries
#include <string>
#include <string_view>
namespace LCCommand
{
void CheckCommandInput(const std::string &line... | 40 | 99 | 0.767988 | DarXe |
7237a84aa0f26f11fa821252ca68ca07e6386805 | 2,078 | cc | C++ | bindings/builtin/symbolizer.cc | SolovyovAlexander/reindexer | 2c6fcd957c1743b57a4ce9a7963b52dffc13a519 | [
"Apache-2.0"
] | null | null | null | bindings/builtin/symbolizer.cc | SolovyovAlexander/reindexer | 2c6fcd957c1743b57a4ce9a7963b52dffc13a519 | [
"Apache-2.0"
] | null | null | null | bindings/builtin/symbolizer.cc | SolovyovAlexander/reindexer | 2c6fcd957c1743b57a4ce9a7963b52dffc13a519 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#ifndef _WIN32
#include <signal.h>
#endif // _WIN32
#include <sstream>
#include "debug/backtrace.h"
#include "debug/resolver.h"
#include "estl/string_view.h"
static std::unique_ptr<reindexer::debug::TraceResolver> resolver{nullptr};
struct cgoTracebackArg {
uintptr_t context;
uintptr_t sigConte... | 25.036145 | 107 | 0.674687 | SolovyovAlexander |
72392a72adb54165350e4aa1c868b60090ffcdb7 | 2,521 | cpp | C++ | Chapter_3_Problem_Solving_Paradigms/Greedy/kattis_andrewant.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_3_Problem_Solving_Paradigms/Greedy/kattis_andrewant.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_3_Problem_Solving_Paradigms/Greedy/kattis_andrewant.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - andrewant
* If we imagine the line as being infinitely long, eventually we reach a point where we have 2
* groups of ants: a left walking group on the left on a right walking group. Now observe that
* since 2 ants never cross, it means that the order of the ants at this stage is the same as the
* order ... | 41.327869 | 100 | 0.575169 | BrandonTang89 |
5cf9af244805d5fd3ca60471488613bc152ea208 | 1,847 | hpp | C++ | include/tribalscript/libraries/libraries.hpp | Ragora/TribalScript | b7f7cc6b311cee1422f1c7dffd58c85c4f29cc1d | [
"MIT"
] | null | null | null | include/tribalscript/libraries/libraries.hpp | Ragora/TribalScript | b7f7cc6b311cee1422f1c7dffd58c85c4f29cc1d | [
"MIT"
] | 1 | 2021-07-24T16:29:11.000Z | 2021-07-26T20:00:17.000Z | include/tribalscript/libraries/libraries.hpp | Ragora/TribalScript | b7f7cc6b311cee1422f1c7dffd58c85c4f29cc1d | [
"MIT"
] | null | null | null | /**
* Copyright 2021 Robert MacGregor
*
* 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,... | 48.605263 | 207 | 0.777477 | Ragora |
cf01771bccdb23495a3cad033a0212f0a9195a90 | 6,146 | cpp | C++ | lib/data_base.cpp | titouanlacombe/DCLP-Projet | 80fe4b8468ee8a9ab5cc8ab5a7dabf759973afd0 | [
"MIT"
] | null | null | null | lib/data_base.cpp | titouanlacombe/DCLP-Projet | 80fe4b8468ee8a9ab5cc8ab5a7dabf759973afd0 | [
"MIT"
] | null | null | null | lib/data_base.cpp | titouanlacombe/DCLP-Projet | 80fe4b8468ee8a9ab5cc8ab5a7dabf759973afd0 | [
"MIT"
] | 1 | 2021-04-15T16:45:21.000Z | 2021-04-15T16:45:21.000Z | #include "data_base.h"
#include "mylog.h"
#define CMP_FILE_NAME "/Companies.csv"
#define JOB_FILE_NAME "/Jobs.csv"
#define WRK_FILE_NAME "/Workers.csv"
#define CMP_FIRST_LINE "Name,Zip code,email"
#define JOB_FIRST_LINE "Title,Skills,Company"
#define WRK_FIRST_LINE "First name,Last name,email,Zip code,Skills,Co-work... | 22.932836 | 114 | 0.5685 | titouanlacombe |
cf0341f3c79b5a19a8495c5319ce729e08218e98 | 415 | hpp | C++ | include/svgpp/policy/xml/fwd.hpp | RichardCory/svgpp | 801e0142c61c88cf2898da157fb96dc04af1b8b0 | [
"BSL-1.0"
] | 428 | 2015-01-05T17:13:54.000Z | 2022-03-31T08:25:47.000Z | include/svgpp/policy/xml/fwd.hpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 61 | 2015-01-08T14:32:27.000Z | 2021-12-06T16:55:11.000Z | include/svgpp/policy/xml/fwd.hpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 90 | 2015-05-19T04:56:46.000Z | 2022-03-26T16:42:50.000Z | // Copyright Oleg Maximenko 2014.
// Distributed under 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)
//
// See http://github.com/svgpp/svgpp for library home page.
#pragma once
namespace svgpp { namespace policy { namespace xml
{... | 21.842105 | 61 | 0.754217 | RichardCory |
cf054f5fed552a130c636bc86f2ac9fa777d4eed | 7,541 | cpp | C++ | xfile/XFileReader.cpp | ryutorion/DirectX11ShaderProgrammingBook | 2407dafec283bac2f195bcdf48ffae024f819d80 | [
"MIT"
] | 2 | 2021-01-12T13:40:45.000Z | 2021-01-12T23:55:22.000Z | xfile/XFileReader.cpp | ryutorion/DirectX11ShaderProgrammingBook | 2407dafec283bac2f195bcdf48ffae024f819d80 | [
"MIT"
] | null | null | null | xfile/XFileReader.cpp | ryutorion/DirectX11ShaderProgrammingBook | 2407dafec283bac2f195bcdf48ffae024f819d80 | [
"MIT"
] | null | null | null | #include "XFileReader.h"
#include <utility>
#include "XFileMesh.h"
namespace
{
constexpr uint32_t XFileMagic = 'x' | ('o' << 8) | ('f' << 16) | (' ' << 24);
constexpr uint32_t XFileFormatBinary = 'b' | ('i' << 8) | ('n' << 16) | (' ' << 24);
constexpr uint32_t XFileFormatText = 't' | ('x' << 8) | ('t' << 16) | (' ... | 19.536269 | 90 | 0.645936 | ryutorion |
cf06c8504f2a049772631c08e8411b6afc6deb4a | 2,691 | cpp | C++ | device/src/startup/initialise-interrupts-stack.cpp | micro-os-plus/architecture-cortexm-xpack | 3d0aa622dbaea7571f5e1858a5ac2b05d71ca132 | [
"MIT"
] | null | null | null | device/src/startup/initialise-interrupts-stack.cpp | micro-os-plus/architecture-cortexm-xpack | 3d0aa622dbaea7571f5e1858a5ac2b05d71ca132 | [
"MIT"
] | 1 | 2021-02-04T17:24:27.000Z | 2021-02-05T11:06:10.000Z | device/src/startup/initialise-interrupts-stack.cpp | micro-os-plus/architecture-cortexm-xpack | 3d0aa622dbaea7571f5e1858a5ac2b05d71ca132 | [
"MIT"
] | 1 | 2021-02-15T09:28:46.000Z | 2021-02-15T09:28:46.000Z | /*
* This file is part of the µOS++ distribution.
* (https://github.com/micro-os-plus)
* Copyright (c) 2021 Liviu Ionescu.
*
* 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
... | 36.863014 | 79 | 0.550725 | micro-os-plus |
cf0a164c35b7feaf4045eff4eacae23095ce71db | 9,338 | cpp | C++ | libkeksbot/mensa.cpp | cookiemon/Keksbot | d7f6adddf5d91e9e49a4a231e74b9a962d8af326 | [
"BSD-2-Clause"
] | 2 | 2015-01-17T00:18:29.000Z | 2015-09-16T17:26:03.000Z | libkeksbot/mensa.cpp | cookiemon/Keksbot | d7f6adddf5d91e9e49a4a231e74b9a962d8af326 | [
"BSD-2-Clause"
] | 11 | 2015-01-30T23:24:49.000Z | 2017-12-10T15:48:23.000Z | libkeksbot/mensa.cpp | cookiemon/Keksbot | d7f6adddf5d91e9e49a4a231e74b9a962d8af326 | [
"BSD-2-Clause"
] | 4 | 2016-02-29T17:45:51.000Z | 2017-12-08T18:03:02.000Z | #include "mensa.h"
#include "logging.h"
#include "server.h"
#include <curl/curl.h>
#include <rapidjson/document.h>
#include <chrono>
using namespace std::literals::chrono_literals;
void RoundToDay(struct tm* time)
{
assert(time != NULL);
time->tm_sec = 0;
time->tm_min = 0;
time->tm_hour = 0;
}
static const char... | 26.083799 | 100 | 0.674663 | cookiemon |
cf101bd843476de0e311d28ff09d3ef9cca483f0 | 254 | cpp | C++ | TouchGFX/gui/src/mainscreen_screen/mainScreenView.cpp | xlord13/vescUserInterface | ff26bc1245ec35cb545042fe01ce3111c92ef80f | [
"MIT"
] | null | null | null | TouchGFX/gui/src/mainscreen_screen/mainScreenView.cpp | xlord13/vescUserInterface | ff26bc1245ec35cb545042fe01ce3111c92ef80f | [
"MIT"
] | null | null | null | TouchGFX/gui/src/mainscreen_screen/mainScreenView.cpp | xlord13/vescUserInterface | ff26bc1245ec35cb545042fe01ce3111c92ef80f | [
"MIT"
] | null | null | null | #include <gui/mainscreen_screen/mainScreenView.hpp>
mainScreenView::mainScreenView()
{
}
void mainScreenView::setupScreen()
{
mainScreenViewBase::setupScreen();
}
void mainScreenView::tearDownScreen()
{
mainScreenViewBase::tearDownScreen();
}
| 15.875 | 51 | 0.76378 | xlord13 |
cf10ef64377dbdf3d4f1bf31fdd15e807684e71a | 9,555 | hpp | C++ | grammar/src/noun.hpp | Agapanthus/grammar | 41f14c761174d8518e206b4c78fc4ddffd429d74 | [
"MIT"
] | null | null | null | grammar/src/noun.hpp | Agapanthus/grammar | 41f14c761174d8518e206b4c78fc4ddffd429d74 | [
"MIT"
] | null | null | null | grammar/src/noun.hpp | Agapanthus/grammar | 41f14c761174d8518e206b4c78fc4ddffd429d74 | [
"MIT"
] | null | null | null |
#pragma once
#include "grammar.hpp"
enum class NounType {
Name,
Noun,
Numeral,
Toponym,
Incomplete,
};
const static thread_local vector<string> nDeclSuffix = {
"and", "ant", "at", "end", "et", "ent", "graph", "ist",
"ik", "it", "loge", "nom", "ot", "soph", "urg"};
class Noun
: p... | 30.04717 | 80 | 0.480167 | Agapanthus |
cf15f637599c1af1537245c942f98a31735e493a | 8,582 | cc | C++ | code/render/coregraphics/vk/vkshaderserver.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/render/coregraphics/vk/vkshaderserver.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/render/coregraphics/vk/vkshaderserver.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | //------------------------------------------------------------------------------
// vkshaderserver.cc
// (C) 2016-2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "render/stdneb.h"
#include "vkshaderserver.h"
#include "effectfactory... | 33.787402 | 181 | 0.677231 | Nechrito |
cf1c6c7306e07fb8241178d2c27e97f9aa7d7ffe | 285 | hpp | C++ | examples/wifi/GUI/aboutwindow.hpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | examples/wifi/GUI/aboutwindow.hpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | examples/wifi/GUI/aboutwindow.hpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #ifndef ABOUTWINDOW_H
#define ABOUTWINDOW_H
#include <QWidget>
namespace Ui {
class AboutWindow;
}
class AboutWindow : public QWidget
{
Q_OBJECT
public:
explicit AboutWindow(QWidget *parent = 0);
~AboutWindow();
private:
Ui::AboutWindow *ui;
};
#endif // ABOUTWINDOW_H
| 12.391304 | 44 | 0.722807 | balsini |
cf1cd214b161e28649c4865764e7856ce5965c86 | 2,468 | cpp | C++ | share/crts/plugins/Filters/fileOut.cpp | xywzwd/VT-Wireless | ec42e742e2be26310df4b25cef9cea873896890b | [
"MIT"
] | 6 | 2019-01-05T08:30:32.000Z | 2022-03-10T08:19:57.000Z | share/crts/plugins/Filters/fileOut.cpp | xywzwd/VT-Wireless | ec42e742e2be26310df4b25cef9cea873896890b | [
"MIT"
] | 4 | 2019-10-18T14:31:04.000Z | 2020-10-16T16:52:30.000Z | share/crts/plugins/Filters/fileOut.cpp | xywzwd/VT-Wireless | ec42e742e2be26310df4b25cef9cea873896890b | [
"MIT"
] | 5 | 2017-05-12T21:24:18.000Z | 2022-03-10T08:20:02.000Z | #include <stdio.h>
#include <string.h>
#include <string>
#include "crts/debug.h"
#include "crts/Filter.hpp"
#include "crts/crts.hpp" // for: FILE *crtsOut
class FileOut : public CRTSFilter
{
public:
FileOut(int argc, const char **argv);
~FileOut(void);
ssize_t write(void *buffer, size_... | 21.275862 | 75 | 0.552269 | xywzwd |
cf2141384bbe6594f49112aa14701485cb584e07 | 490 | cpp | C++ | 44_StackInheritance/src/Stack.cpp | jonixis/CPP18 | 0dfe165f22a3cbef9e8cda102196d53d3e120e57 | [
"MIT"
] | null | null | null | 44_StackInheritance/src/Stack.cpp | jonixis/CPP18 | 0dfe165f22a3cbef9e8cda102196d53d3e120e57 | [
"MIT"
] | null | null | null | 44_StackInheritance/src/Stack.cpp | jonixis/CPP18 | 0dfe165f22a3cbef9e8cda102196d53d3e120e57 | [
"MIT"
] | null | null | null | #include "Stack.h"
#include <iostream>
Stack::Stack() : sp(256) { }
Stack::~Stack() { }
void Stack::push(int i) {
if (full()) {
std::cout << "Element '" << i << "' could not be pushed. Stack full!" << std::endl;
return;
}
s[--sp] = i;
}
int Stack::pop() {
if (empty()) {
std::cout << "Stack Emp... | 16.333333 | 86 | 0.528571 | jonixis |
cf295c30acc4633c02fafae8a08e9d396738b3dc | 2,129 | cpp | C++ | FireWok/main.cpp | davidkron/AECE | 83b0f288b84b16755df2e5a0d5d401f0e9a7dceb | [
"MIT"
] | null | null | null | FireWok/main.cpp | davidkron/AECE | 83b0f288b84b16755df2e5a0d5d401f0e9a7dceb | [
"MIT"
] | null | null | null | FireWok/main.cpp | davidkron/AECE | 83b0f288b84b16755df2e5a0d5d401f0e9a7dceb | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <Engine.hpp>
using namespace sf;
class AECEWrapper {
std::map<std::string, std::unique_ptr<sf::Music>> _songs;
std::unique_ptr<AECE::Engine> _engine;
public:
AECEWrapper() {
std::unique_ptr<sf::Music> music = std::... | 28.386667 | 132 | 0.554251 | davidkron |
cf3595135ad0cb907b7de4544f4d0ae1780bd08f | 5,298 | cpp | C++ | libcornet/poller.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T06:39:24.000Z | 2020-07-25T06:39:24.000Z | libcornet/poller.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T05:32:10.000Z | 2020-07-25T05:32:10.000Z | libcornet/poller.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T05:28:54.000Z | 2020-07-25T05:28:54.000Z | /*
* Copyright 2020 Alex Syrnikov <pioneer19@post.cz>
* SPDX-License-Identifier: Apache-2.0
*
* This file is part of libcornet (https://github.com/pioneer19/libcornet).
*/
#include <libcornet/poller.hpp>
#include <unistd.h>
#include <cstdio>
#include <string>
#include <array>
#include <algorithm>
#include <syste... | 29.764045 | 89 | 0.579464 | pioneer19 |
cf4020ea3144e9c12d48e9a6a38ccb966d4b29b4 | 1,187 | cpp | C++ | OpenCLFilterPipeline/Camera.cpp | SebGrenier/OpenCLFilterPipeline | dbdf08142f211cc4ba6d08fbf07c22ecd6bb872b | [
"MIT"
] | null | null | null | OpenCLFilterPipeline/Camera.cpp | SebGrenier/OpenCLFilterPipeline | dbdf08142f211cc4ba6d08fbf07c22ecd6bb872b | [
"MIT"
] | null | null | null | OpenCLFilterPipeline/Camera.cpp | SebGrenier/OpenCLFilterPipeline | dbdf08142f211cc4ba6d08fbf07c22ecd6bb872b | [
"MIT"
] | null | null | null | #include "Camera.h"
Camera::Camera()
: _center_x(0)
, _center_y(0)
, _width(1)
, _height(1)
, _zoom_level(1)
{ }
Camera::~Camera()
{ }
void Camera::Translate(double x, double y)
{
_center_x += x;
_center_y += y;
}
void Camera::Zoom(const double factor)
{
_width = _width * factor;
_height = _height * facto... | 15.826667 | 98 | 0.679023 | SebGrenier |
cf41fb617b797f032de6c6762a62b0931599fef8 | 513 | hpp | C++ | bsengine/src/bstorm/math_util.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/math_util.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/math_util.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
namespace bstorm
{
template <typename T>
T constrain(const T& v, const T& min, const T& max)
{
return std::min(std::max<T>(v, min), max);
}
inline int NextPow2(int x)
{
if (x < 0) return 0;
--x;
x |= x >> 1;
x |= x >> 2;
x |= x >> 4;
x |= x >> 8;
x |=... | 16.548387 | 63 | 0.528265 | At-sushi |
cf4a71baaf7976e390f64e029a2d37d997c783ea | 1,240 | cpp | C++ | src/dx12/render/details/CommandQueue.cpp | log0div0/just_for_fun | 737fc18c61e2c6a698de34cb7ea80f9eeee32362 | [
"MIT"
] | null | null | null | src/dx12/render/details/CommandQueue.cpp | log0div0/just_for_fun | 737fc18c61e2c6a698de34cb7ea80f9eeee32362 | [
"MIT"
] | null | null | null | src/dx12/render/details/CommandQueue.cpp | log0div0/just_for_fun | 737fc18c61e2c6a698de34cb7ea80f9eeee32362 | [
"MIT"
] | null | null | null | #include "CommandQueue.hpp"
#include "Exceptions.hpp"
#include "../Context.hpp"
using namespace winapi;
namespace render {
CommandQueue::CommandQueue(D3D12_COMMAND_LIST_TYPE type) {
D3D12_COMMAND_QUEUE_DESC desc = {
.Type = type,
.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE,
.NodeMask = 1,
};
ThrowIfFailed(g_cont... | 24.8 | 95 | 0.766129 | log0div0 |
cf4b260e9a191301a714383ab17f9a1ca0499c56 | 12,355 | hpp | C++ | tests/python_to_cpp/python_to_11l/tokenizer.hpp | 11l-lang/_11l_to_cpp | 60306c270d51f2876bff868d7f897ff4c395d39f | [
"MIT"
] | 9 | 2019-11-03T23:38:55.000Z | 2022-01-08T07:49:26.000Z | tests/python_to_cpp/python_to_11l/tokenizer.hpp | 11l-lang/_11l_to_cpp | 60306c270d51f2876bff868d7f897ff4c395d39f | [
"MIT"
] | null | null | null | tests/python_to_cpp/python_to_11l/tokenizer.hpp | 11l-lang/_11l_to_cpp | 60306c270d51f2876bff868d7f897ff4c395d39f | [
"MIT"
] | 2 | 2019-11-16T14:16:01.000Z | 2020-11-16T14:34:48.000Z | auto keywords = create_array({u"False"_S, u"await"_S, u"else"_S, u"import"_S, u"pass"_S, u"None"_S, u"break"_S, u"except"_S, u"in"_S, u"raise"_S, u"True"_S, u"class"_S, u"finally"_S, u"is"_S, u"return"_S, u"and"_S, u"continue"_S, u"for"_S, u"lambda"_S, u"try"_S, u"as"_S, u"def"_S, u"from"_S, u"nonlocal"_S, u"while"_S,... | 41.459732 | 432 | 0.456091 | 11l-lang |
cf4c74936fb769e9fc0476356a63f2f46774d048 | 18,687 | hpp | C++ | core/src/cogs/gui/scroll_pane.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 5 | 2019-02-08T15:59:14.000Z | 2022-01-22T19:12:33.000Z | core/src/cogs/gui/scroll_pane.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 1 | 2019-12-03T03:11:34.000Z | 2019-12-03T03:11:34.000Z | core/src/cogs/gui/scroll_pane.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC
//
// Status: Good, MayNeedCleanup
#ifndef COGS_HEADER_GUI_SCROLL_PANE
#define COGS_HEADER_GUI_SCROLL_PANE
#include "cogs/gui/pane.hpp"
#include "cogs/gui/label.hpp"
#include "cogs/gui/grid.hpp"
#include "cogs/gui/scroll_... | 33.015901 | 148 | 0.716059 | cogmine |
cf4e821f115e3cfd6d94bfd773d302b790d4f29f | 417 | cpp | C++ | C++/octalToDecimal.cpp | neontuts/code-snippets | cdc5d9e482a716015f3a43a4843d02521e1231f1 | [
"MIT"
] | null | null | null | C++/octalToDecimal.cpp | neontuts/code-snippets | cdc5d9e482a716015f3a43a4843d02521e1231f1 | [
"MIT"
] | null | null | null | C++/octalToDecimal.cpp | neontuts/code-snippets | cdc5d9e482a716015f3a43a4843d02521e1231f1 | [
"MIT"
] | null | null | null | /*
Write a program to convert octal to decimal.
For Example : (100)₈ ---> (64)₁₀
*/
#include <iostream>
using namespace std;
int octalToDecimal(int n) {
int ans = 0;
int x = 1;
while (n > 0) {
int y = n % 10;
ans += x *y;
x *= 8;
n /= 10;
}
return ans;
}
int main() {
int octal;
... | 12.264706 | 46 | 0.541966 | neontuts |
cf531c57b1fa79a7d73b5badbf1fed15e2fd4904 | 486 | cpp | C++ | src/commandHistory.cpp | rainstormstudio/AsciiEditor | ea6a089cd1edf087cb086295ad6268af0ed37c65 | [
"MIT"
] | 1 | 2020-08-06T02:43:50.000Z | 2020-08-06T02:43:50.000Z | src/commandHistory.cpp | rainstormstudio/AsciiEditor | ea6a089cd1edf087cb086295ad6268af0ed37c65 | [
"MIT"
] | null | null | null | src/commandHistory.cpp | rainstormstudio/AsciiEditor | ea6a089cd1edf087cb086295ad6268af0ed37c65 | [
"MIT"
] | null | null | null | #include "commandHistory.hpp"
CommandHistory::CommandHistory() {
commands = std::stack<std::shared_ptr<Command>>();
}
void CommandHistory::push(std::shared_ptr<Command> command) {
commands.emplace(command);
}
std::shared_ptr<Command> CommandHistory::pop() {
if (commands.empty()) {
return nullptr;... | 23.142857 | 61 | 0.679012 | rainstormstudio |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.