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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
186710ef81fc201f16645cfa9bdebad01eb90b88 | 3,616 | cpp | C++ | src/main.cpp | dacap/defenderofnothing | 8c18f8f357196e2ff3f92b219a9d24f3d4ff6a7d | [
"MIT"
] | 4 | 2016-05-08T19:51:31.000Z | 2020-05-18T22:34:29.000Z | src/main.cpp | dacap/defenderofnothing | 8c18f8f357196e2ff3f92b219a9d24f3d4ff6a7d | [
"MIT"
] | null | null | null | src/main.cpp | dacap/defenderofnothing | 8c18f8f357196e2ff3f92b219a9d24f3d4ff6a7d | [
"MIT"
] | null | null | null | // Defender Of Nothing
// Copyright (C) 2007 by David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#include <cstdlib>
#include <ctime>
#include <allegro.h>
#include "game.h"
#include "media.h"
#include "input.h"
#include "util.h"
///////////////////... | 21.915152 | 79 | 0.617533 | dacap |
186bf8f0583afd0f8d5806da94670f52a1779b9a | 1,658 | cpp | C++ | fineHedger/pnlTEMP.cpp | FinancialEngineerLab/fineHedger | bd4ad91a981fab7e701c33773de4f41971359b7f | [
"MIT"
] | null | null | null | fineHedger/pnlTEMP.cpp | FinancialEngineerLab/fineHedger | bd4ad91a981fab7e701c33773de4f41971359b7f | [
"MIT"
] | null | null | null | fineHedger/pnlTEMP.cpp | FinancialEngineerLab/fineHedger | bd4ad91a981fab7e701c33773de4f41971359b7f | [
"MIT"
] | null | null | null | /*
void ReplicationError::computePnL(Size nSim)
{
DiscountFactor rDiscount;// = std::exp(-r_*maturity_);
DiscountFactor qDiscount;// = std::exp(-q*maturity_);;
Real optionPayoff;// = PlainVanillaPayoff(type_, strike_)(stock);
Real forward;//= s0_*qDiscount/rDiscount;
Real stdDev;// = std::sqrt... | 30.703704 | 204 | 0.562726 | FinancialEngineerLab |
1871b48d1a849d79c59af1f86a65b462a795834f | 1,618 | cpp | C++ | software/src/utils/power.cpp | langchr86/homesensor | 38b1e7523aa601e4426d2e6f4da5e3bdb35fe3eb | [
"MIT"
] | 1 | 2021-01-30T10:49:31.000Z | 2021-01-30T10:49:31.000Z | software/src/utils/power.cpp | langchr86/homesensor | 38b1e7523aa601e4426d2e6f4da5e3bdb35fe3eb | [
"MIT"
] | null | null | null | software/src/utils/power.cpp | langchr86/homesensor | 38b1e7523aa601e4426d2e6f4da5e3bdb35fe3eb | [
"MIT"
] | null | null | null | #include "power.h"
#include <Esp.h>
#include <esp_sleep.h>
Power::Power() : logger_("Power") {}
void Power::SetOption(esp_sleep_pd_domain_t domain, esp_sleep_pd_option_t option)
{
const auto result = esp_sleep_pd_config(domain, option);
if (result != ESP_OK)
{
logger_.LogError("failed to set powe... | 28.892857 | 96 | 0.688504 | langchr86 |
187235e4c6d07ba8b56397de2a2ab8983884d842 | 3,236 | cpp | C++ | src/client.cpp | whuji/file_transfer_base | 60ec34661e1c34305c18623016cac3d34afecd2b | [
"MIT"
] | null | null | null | src/client.cpp | whuji/file_transfer_base | 60ec34661e1c34305c18623016cac3d34afecd2b | [
"MIT"
] | null | null | null | src/client.cpp | whuji/file_transfer_base | 60ec34661e1c34305c18623016cac3d34afecd2b | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <filesystem>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include "spdlog/spdlog.h"
#include "yaml-cpp/yaml.h"
namespace fs = std::filesyste... | 26.096774 | 82 | 0.644932 | whuji |
1874424d3c5dfe6c5c0ba53ff63afd66c0ac4831 | 376 | cpp | C++ | sources/compiler.cpp | Asuart/HowItWorks-Compiler | caf9976288c18f659ceaa57e1c003ec24ae3954a | [
"MIT"
] | null | null | null | sources/compiler.cpp | Asuart/HowItWorks-Compiler | caf9976288c18f659ceaa57e1c003ec24ae3954a | [
"MIT"
] | null | null | null | sources/compiler.cpp | Asuart/HowItWorks-Compiler | caf9976288c18f659ceaa57e1c003ec24ae3954a | [
"MIT"
] | null | null | null | #include "../headers/compiler.h"
Compiler::Compiler(int argc, char** argv) : _preProc(_sources){
for(s32 i = 1; i < argc; i++){
//Console::Log(std::string(argv[i]));
_sources.push_back(SourceFile(std::string(argv[i])));
}
}
Compiler::~Compiler(){
}
void Compiler::Start(){
Preprocess();
}... | 18.8 | 63 | 0.609043 | Asuart |
18754b9d2c2be49b4ea631a19f13bcd7a51462ac | 2,616 | hpp | C++ | src/wrappers/reg/drone/physics/electricity/Power_0_1.hpp | airgiants/107-Arduino-UAVCAN | 4e86e482d69e6934b50c38e9448855332326f3b5 | [
"MIT"
] | 41 | 2020-08-06T15:54:04.000Z | 2022-03-03T12:59:44.000Z | src/wrappers/reg/drone/physics/electricity/Power_0_1.hpp | airgiants/107-Arduino-UAVCAN | 4e86e482d69e6934b50c38e9448855332326f3b5 | [
"MIT"
] | 88 | 2020-04-27T09:17:13.000Z | 2022-03-24T08:48:37.000Z | src/wrappers/reg/drone/physics/electricity/Power_0_1.hpp | airgiants/107-Arduino-UAVCAN | 4e86e482d69e6934b50c38e9448855332326f3b5 | [
"MIT"
] | 36 | 2020-04-29T05:05:47.000Z | 2022-03-18T09:38:44.000Z | /**
* This software is distributed under the terms of the MIT License.
* Copyright (c) 2020 LXRobotics.
* Author: Alexander Entinger <alexander.entinger@lxrobotics.com>
* Contributors: https://github.com/107-systems/107-Arduino-UAVCAN/graphs/contributors.
*/
#ifndef ARDUINO_UAVCAN_TYPES_REG_DRONE_PHYSICS_ELECTRIC... | 32.7 | 154 | 0.560398 | airgiants |
18756cc70b369104d5b9119e47bdd984735f56d9 | 1,704 | cpp | C++ | Helvetic Coding Contest 2016/tree-of-life/easy.cpp | r1cebank/coding-challenge | cce1510244a48a2128d5932f51a1eaa771449530 | [
"MIT"
] | null | null | null | Helvetic Coding Contest 2016/tree-of-life/easy.cpp | r1cebank/coding-challenge | cce1510244a48a2128d5932f51a1eaa771449530 | [
"MIT"
] | null | null | null | Helvetic Coding Contest 2016/tree-of-life/easy.cpp | r1cebank/coding-challenge | cce1510244a48a2128d5932f51a1eaa771449530 | [
"MIT"
] | null | null | null | /*
* Helvetic Coding Contest 2016, 690F1
* Status: submitted
* F1. Tree of Life (easy)
* time limit per test2 seconds
* memory limit per test256 megabytes
* inputstandard input
* outputstandard output
* Heidi has finally found the mythical Tree of Life – a legendary combinatorial structure which is said to cont... | 44.842105 | 376 | 0.690728 | r1cebank |
18788594468b1b022f49bb3c0b9ed632e71dca38 | 1,013 | cxx | C++ | src/embed.cxx | Meakk/f3d | 40db15ab2a6500ea67bfee5d35714b5c5e2d993c | [
"BSD-3-Clause"
] | 120 | 2020-02-18T03:00:53.000Z | 2021-11-11T07:58:24.000Z | src/embed.cxx | Meakk/f3d | 40db15ab2a6500ea67bfee5d35714b5c5e2d993c | [
"BSD-3-Clause"
] | 1 | 2021-02-20T08:09:31.000Z | 2021-02-20T08:09:31.000Z | src/embed.cxx | Meakk/f3d | 40db15ab2a6500ea67bfee5d35714b5c5e2d993c | [
"BSD-3-Clause"
] | 13 | 2020-03-16T05:24:10.000Z | 2021-09-24T19:27:48.000Z | #include <vtkImageData.h>
#include <vtkNew.h>
#include <vtkPNGReader.h>
#include <vtksys/SystemTools.hxx>
#include <fstream>
int main(int argc, char* argv[])
{
vtkNew<vtkPNGReader> reader;
reader->SetFileName(argv[1]);
reader->Update();
vtkImageData* icon = reader->GetOutput();
if (!icon)
{
return 1... | 23.55814 | 82 | 0.615992 | Meakk |
187e5b0cefa8a57d239bea50a559b97a00190173 | 3,340 | hh | C++ | audio/audiobuffer.hh | djehuti/code | 82f22d3e5e9eff708543a210cd312c6e8ead2d5f | [
"MIT"
] | null | null | null | audio/audiobuffer.hh | djehuti/code | 82f22d3e5e9eff708543a210cd312c6e8ead2d5f | [
"MIT"
] | null | null | null | audio/audiobuffer.hh | djehuti/code | 82f22d3e5e9eff708543a210cd312c6e8ead2d5f | [
"MIT"
] | null | null | null | // Copyright (c) 2019 Ben Cox <cox@djehuti.com>
//
// 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, mer... | 38.390805 | 100 | 0.72006 | djehuti |
187ef2a8d7a7f5567c1e4e5a9fbcc92044f438d7 | 1,027 | cpp | C++ | problem/Array/Partitionnarray.cpp | mechusatveer/coding-questions | a86b41f753ffd70001357ab059ee0cb63c7914ff | [
"MIT"
] | null | null | null | problem/Array/Partitionnarray.cpp | mechusatveer/coding-questions | a86b41f753ffd70001357ab059ee0cb63c7914ff | [
"MIT"
] | null | null | null | problem/Array/Partitionnarray.cpp | mechusatveer/coding-questions | a86b41f753ffd70001357ab059ee0cb63c7914ff | [
"MIT"
] | null | null | null | /*
Given an array with integers, find the index to minimize the difference between
left part sum and right part sum, not including the index number itself, return the position of the integer.
*/
/*
solution: Calculate the sum of array. Scan the array, maintain a left sum and right sum, and record the minimal di... | 20.54 | 123 | 0.555015 | mechusatveer |
188122b1bf6111575f32281454fc10c4e3b3e891 | 1,942 | hpp | C++ | objects/cylinder.hpp | DuJiajun1994/IlluminationModel | 1aa4c2a19f9c0797786f1d687294ca47e063073d | [
"MIT"
] | null | null | null | objects/cylinder.hpp | DuJiajun1994/IlluminationModel | 1aa4c2a19f9c0797786f1d687294ca47e063073d | [
"MIT"
] | null | null | null | objects/cylinder.hpp | DuJiajun1994/IlluminationModel | 1aa4c2a19f9c0797786f1d687294ca47e063073d | [
"MIT"
] | null | null | null | //
// Created by dujiajun on 6/14/18.
//
#ifndef ILLUMINATIONMODEL_CYLINDER_HPP
#define ILLUMINATIONMODEL_CYLINDER_HPP
#include "../object.hpp"
#include <glm/glm.hpp>
using namespace glm;
class Cylinder: public Object {
private:
vec3 center; // center of the top circle
float radius;
bool hit_top(vec3 ray... | 37.346154 | 95 | 0.615345 | DuJiajun1994 |
188ae8cbf943ece82ce0c74e69418ff5bda08e89 | 1,622 | cpp | C++ | MonoNative.Tests/mscorlib/System/Runtime/Serialization/mscorlib_System_Runtime_Serialization_ISerializationSurrogate_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Runtime/Serialization/mscorlib_System_Runtime_Serialization_ISerializationSurrogate_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Runtime/Serialization/mscorlib_System_Runtime_Serialization_ISerializationSurrogate_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Runtime.Serialization
// Name: ISerializationSurrogate
// C++ Typed Name: mscorlib::System::Runtime::Serialization::ISerializationSurrogate
#include <gtest/gtest.h>
#include <mscorlib/S... | 33.791667 | 252 | 0.792232 | brunolauze |
188ef7673464eed38acc20424daccd9ac69e0d34 | 2,677 | hpp | C++ | include/robot/sensors/inertial_class.hpp | 1069B/TBD_Code | 624162c66e8d24d04657934081074e91f856ce57 | [
"MIT"
] | null | null | null | include/robot/sensors/inertial_class.hpp | 1069B/TBD_Code | 624162c66e8d24d04657934081074e91f856ce57 | [
"MIT"
] | null | null | null | include/robot/sensors/inertial_class.hpp | 1069B/TBD_Code | 624162c66e8d24d04657934081074e91f856ce57 | [
"MIT"
] | null | null | null | #include "robot/robot_main.hpp"
#include "robot/devices/data_storage_class.hpp"
#ifndef INERTIAL_CLASS_H
#define INERTIAL_CLASS_H
namespace SENSOR{
class Inertial{
private:
Robot& m_robot;
/*Settings*/
std::string m_name{};
short m_port{};
double m_pitch_offset{};
double m_roll_offset{};... | 30.078652 | 126 | 0.745611 | 1069B |
18977c1ba99717ea1dcea2934a4a84759980204a | 6,517 | hpp | C++ | internal.hpp | cwink87/wlisp | 14ad8f8006d18800408170d785a30b31d341ae0e | [
"MIT"
] | null | null | null | internal.hpp | cwink87/wlisp | 14ad8f8006d18800408170d785a30b31d341ae0e | [
"MIT"
] | null | null | null | internal.hpp | cwink87/wlisp | 14ad8f8006d18800408170d785a30b31d341ae0e | [
"MIT"
] | null | null | null | #ifndef INTERNAL_HPP
#define INTERNAL_HPP
/*!
* \todo Document this file.
*/
#include "wlisp.hpp"
enum class Token_type { nil, number, string, boolean, identifier, left_parenthesis, right_parenthesis };
auto string_from(const Token_type &token_type) -> std::string;
class Token final {
public:
To... | 27.49789 | 105 | 0.68329 | cwink87 |
1899536208ddb787a4d5f6c83bdbb2ee4357c5a9 | 801 | cpp | C++ | Assignment 02/PingDanddank CSIS1081 Assn 02/Program 01.cpp | ping58972/CSCI1081-Cpp-Assignments-all | 83c4551d0aef2d01abd311d1e4248c36fe1b3887 | [
"MIT"
] | null | null | null | Assignment 02/PingDanddank CSIS1081 Assn 02/Program 01.cpp | ping58972/CSCI1081-Cpp-Assignments-all | 83c4551d0aef2d01abd311d1e4248c36fe1b3887 | [
"MIT"
] | null | null | null | Assignment 02/PingDanddank CSIS1081 Assn 02/Program 01.cpp | ping58972/CSCI1081-Cpp-Assignments-all | 83c4551d0aef2d01abd311d1e4248c36fe1b3887 | [
"MIT"
] | null | null | null | /*
Reataurant Bill
Programming the tax and tip on the bill
Display the meal cost, tax amount, tip amount, and total bill.
*/
//#include "stdafx.h" // Comment next line out if using VS 2015 Project
#include <iostream>
using namespace std;
const double taxRate = 0.0675, tipRate = 0.2;
int main()
{
//initialize all vir... | 25.83871 | 71 | 0.676654 | ping58972 |
1899b2f9708af5e447b28cc4086e95d2438f6c14 | 75 | hpp | C++ | DJMonitor/update.hpp | Aerobreaker/DJMonitor-pub | 4f6c3e6ccdd28ec0ed56e679464e2801f9ea433d | [
"Unlicense"
] | null | null | null | DJMonitor/update.hpp | Aerobreaker/DJMonitor-pub | 4f6c3e6ccdd28ec0ed56e679464e2801f9ea433d | [
"Unlicense"
] | null | null | null | DJMonitor/update.hpp | Aerobreaker/DJMonitor-pub | 4f6c3e6ccdd28ec0ed56e679464e2801f9ea433d | [
"Unlicense"
] | null | null | null | #pragma once
#include <string>
bool auto_update(std::string updatepath);
| 12.5 | 41 | 0.76 | Aerobreaker |
189caa5417d44b6c3f113d9d1c7b6e6fcb5d8d2b | 225 | cpp | C++ | src/ublox/UbloxModemSMS.cpp | jmpmscorp/CellularModem | 169eeb6a3116fa4f25b58dc8edf412fdd192dfe9 | [
"0BSD"
] | 3 | 2019-12-19T04:25:36.000Z | 2020-04-12T06:57:28.000Z | src/ublox/UbloxModemSMS.cpp | jmpmscorp/CellularModem | 169eeb6a3116fa4f25b58dc8edf412fdd192dfe9 | [
"0BSD"
] | null | null | null | src/ublox/UbloxModemSMS.cpp | jmpmscorp/CellularModem | 169eeb6a3116fa4f25b58dc8edf412fdd192dfe9 | [
"0BSD"
] | null | null | null | #include "UbloxModemSMS.h"
UbloxModemSMS::UbloxModemSMS(UbloxModem &modem) :
CellModemSMS(modem) {
_modem->addUrcHandler(this);
}
ATResponse UbloxModemSMS::handleUrcs() {
return CellModemSMS::handleUrcs();
} | 22.5 | 49 | 0.724444 | jmpmscorp |
189ce32bd30ed4adb8d869fbe1404569dcdd30dc | 400 | cpp | C++ | Basetor/src/Basetor.cpp | AdrielMarchena/Base | 83fc2feffbda093f729f1eefd5b3d564544af1f2 | [
"MIT"
] | null | null | null | Basetor/src/Basetor.cpp | AdrielMarchena/Base | 83fc2feffbda093f729f1eefd5b3d564544af1f2 | [
"MIT"
] | 1 | 2021-12-23T17:53:19.000Z | 2021-12-23T17:57:14.000Z | Basetor/src/Basetor.cpp | AdrielMarchena/Base | 83fc2feffbda093f729f1eefd5b3d564544af1f2 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Base/Base.h"
#include "Base.h"
#include "application/Entry.h"
#include "Editor.h"
class Basetor :public Base::Application
{
private:
public:
Basetor(int argc, char** argv)
:Base::Application(argc,argv)
{
PushLayer(new Base::Editor());
}
~Basetor()
{
}
};
Base::Application* Base:... | 14.285714 | 65 | 0.68 | AdrielMarchena |
18a4aaaa400a612653ba1fe682d201ef51acde40 | 4,178 | cpp | C++ | Freesia/src/Freesia/Scene/AssimpEntity.cpp | Htrap19/Freesia | df030b1981effd59f7856e6af7178b4a1667f8cd | [
"Apache-2.0"
] | 2 | 2021-12-27T15:07:55.000Z | 2022-01-04T20:10:33.000Z | Freesia/src/Freesia/Scene/AssimpEntity.cpp | Htrap19/Freesia | df030b1981effd59f7856e6af7178b4a1667f8cd | [
"Apache-2.0"
] | null | null | null | Freesia/src/Freesia/Scene/AssimpEntity.cpp | Htrap19/Freesia | df030b1981effd59f7856e6af7178b4a1667f8cd | [
"Apache-2.0"
] | null | null | null | //
// Created by htrap19 on 12/20/21.
//
#include "AssimpEntity.h"
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
namespace Freesia
{
AssimpEntity::AssimpEntity(const std::string& filepath)
{
Assimp::Importer importer;
const aiScene* scene = importer.ReadFile(filepath, aiProce... | 32.897638 | 162 | 0.569651 | Htrap19 |
18a6ab3bd2f92641a3309a07d0a6e6479612cce4 | 41 | hpp | C++ | mod/memlite/binder.hpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 7 | 2019-03-12T03:04:32.000Z | 2021-12-26T04:33:44.000Z | mod/memlite/binder.hpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 25 | 2016-09-23T16:36:19.000Z | 2019-02-12T14:14:32.000Z | mod/memlite/binder.hpp | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | null | null | null | #pragma once
#include "binder/tstr.inl"
| 10.25 | 26 | 0.731707 | kniz |
18a7801da8ec68119410773a7b866aaa911a5bbe | 30,847 | cpp | C++ | src/Graphics/PixelFormat.cpp | thennequin/Texeled | f182186725e6854835e2ef8b49b7e63b5c427094 | [
"MIT"
] | 49 | 2019-10-02T15:46:14.000Z | 2022-03-13T14:28:26.000Z | src/Graphics/PixelFormat.cpp | thennequin/Texeled | f182186725e6854835e2ef8b49b7e63b5c427094 | [
"MIT"
] | 8 | 2019-03-23T16:11:49.000Z | 2021-10-31T14:13:18.000Z | src/Graphics/PixelFormat.cpp | thennequin/Texeled | f182186725e6854835e2ef8b49b7e63b5c427094 | [
"MIT"
] | 4 | 2019-08-19T00:07:02.000Z | 2021-05-07T13:41:44.000Z | #include "Graphics/PixelFormat.h"
#include "Graphics/Texture.h"
#include "Graphics/PixelFormatConverters.h"
#include "Graphics/PixelFormatConvertersCompressed.h"
#include <string.h> // memset
namespace Graphics
{
extern const char* const ComponentFlagString[ComponentFlag::_MAX] = {
"None",
"Red",
"Green",
... | 68.701559 | 318 | 0.487697 | thennequin |
18ac77541c500a5738b478e0248bdf3090e9c0e8 | 2,328 | cpp | C++ | src/vidhrdw/ssi.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-01-25T20:16:33.000Z | 2021-01-25T20:16:33.000Z | src/vidhrdw/ssi.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-05-24T20:28:35.000Z | 2021-05-25T14:44:54.000Z | src/vidhrdw/ssi.cpp | PSP-Archive/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | null | null | null | #include "driver.h"
#include "vidhrdw/generic.h"
#include "m68000/m68000.h"
int ssi_videoram_r(int offset)
{
return READ_WORD(&videoram[offset]);
}
void ssi_videoram_w(int offset,int data)
{
COMBINE_WORD_MEM(&videoram[offset],data);
}
int ssi_vh_start(void)
{
return 0;
}
void ssi_vh_stop (void)
{
}
void ssi_... | 18.624 | 70 | 0.610395 | pierrelouys |
18ac7e12b8daf99ae4ac4b8d40cf46d9b39403ca | 2,117 | hh | C++ | src/patient/address.hh | Apperta-IXN-for-the-NHS/GOSH-FHIRworks2020-datamaskgen | b8c075b01640f99730fcd39ad87c3009a510fa01 | [
"Apache-2.0"
] | 2 | 2020-03-10T04:35:17.000Z | 2020-03-30T12:26:51.000Z | src/patient/address.hh | Apperta-IXN-for-the-NHS/GOSH-FHIRworks2020-datamaskgen | b8c075b01640f99730fcd39ad87c3009a510fa01 | [
"Apache-2.0"
] | 4 | 2020-03-09T01:11:30.000Z | 2020-03-10T03:12:43.000Z | src/patient/address.hh | Apperta-IXN-for-the-NHS/GOSH-FHIRworks2020-datamaskgen | b8c075b01640f99730fcd39ad87c3009a510fa01 | [
"Apache-2.0"
] | 1 | 2020-05-29T14:38:49.000Z | 2020-05-29T14:38:49.000Z | //
// Created by Patrick Wu on 03/03/2020.
//
#ifndef GOSH_FHIRWORKS2020_DATAMASKGEN_ADDRESS_HH
#define GOSH_FHIRWORKS2020_DATAMASKGEN_ADDRESS_HH
#include <string>
#include <optional>
#include <sstream>
#include "geolocation.hh"
using namespace std;
class address {
public:
bool operator == (const address& a1)... | 32.075758 | 178 | 0.528578 | Apperta-IXN-for-the-NHS |
18afe48f7bb2979e9c67b015f7d8cffca28f3faf | 12,354 | cpp | C++ | source/mechcmd2/simplecamera.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/mechcmd2/simplecamera.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/mechcmd2/simplecamera.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | /*************************************************************************************************\
SimpleCamera.cpp : Implementation of the SimpleCamera component.
//---------------------------------------------------------------------------//
// Copyright (C) Microsoft Corporation. All rights reserved. ... | 29.205674 | 111 | 0.69176 | mechasource |
18b914fd594c83b12b44f56a9ff0938bea595b5d | 41,223 | cpp | C++ | compiler/parser/ast/transform_stmt.cpp | glram/seq | 88ba866ffd623376f45fc5dc9a5eca095b494fd7 | [
"Apache-2.0"
] | null | null | null | compiler/parser/ast/transform_stmt.cpp | glram/seq | 88ba866ffd623376f45fc5dc9a5eca095b494fd7 | [
"Apache-2.0"
] | null | null | null | compiler/parser/ast/transform_stmt.cpp | glram/seq | 88ba866ffd623376f45fc5dc9a5eca095b494fd7 | [
"Apache-2.0"
] | 1 | 2020-11-19T16:08:08.000Z | 2020-11-19T16:08:08.000Z | #include "util/fmt/format.h"
#include "util/fmt/ostream.h"
#include <deque>
#include <memory>
#include <ostream>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "parser/ast/ast.h"
#include "parser/ast/transform.h"
#include "parser/ast/tra... | 35.814944 | 87 | 0.591345 | glram |
18ca99ea06c68e13ffeaa0c60f6cf041af4d080a | 3,636 | hh | C++ | inc/Dron.hh | KacperSynator/SymulacjaDrona | 47f053b2f8ee4f6041863641d90997edd4ab5394 | [
"MIT"
] | 1 | 2021-10-08T08:50:12.000Z | 2021-10-08T08:50:12.000Z | inc/Dron.hh | KacperSynator/SymulacjaDrona | 47f053b2f8ee4f6041863641d90997edd4ab5394 | [
"MIT"
] | null | null | null | inc/Dron.hh | KacperSynator/SymulacjaDrona | 47f053b2f8ee4f6041863641d90997edd4ab5394 | [
"MIT"
] | null | null | null | #ifndef SYMULACJADRONA_DRON_HH
#define SYMULACJADRONA_DRON_HH
#include "string"
#include "Prostopadloscian.hh"
#include "Dron_interface.hh"
#include "Przeszkoda_interface.hh"
#define KONIEC 1
/*!
* \brief Implementacja klasy Dron
* Dziedziczy po \file Prostopadloscian.hh oraz po \file DronInterface.hh oraz \file ... | 33.054545 | 160 | 0.668317 | KacperSynator |
18ccd731ffabc76646f46aba9fd4734bc1d66510 | 1,074 | hpp | C++ | include/turtle/detail/formatter.hpp | sejd0n/turtle | ea548668cbff0b2f28594d27afdee3359186e7b0 | [
"BSL-1.0"
] | 46 | 2015-03-25T21:00:57.000Z | 2022-02-09T13:54:37.000Z | include/turtle/detail/formatter.hpp | sejd0n/turtle | ea548668cbff0b2f28594d27afdee3359186e7b0 | [
"BSL-1.0"
] | 83 | 2015-03-25T22:00:43.000Z | 2022-02-10T18:33:26.000Z | include/turtle/detail/formatter.hpp | sejd0n/turtle | ea548668cbff0b2f28594d27afdee3359186e7b0 | [
"BSL-1.0"
] | 22 | 2015-04-28T01:38:22.000Z | 2021-08-16T20:01:08.000Z | // http://turtle.sourceforge.net
//
// Copyright Mathieu Champlon 2012
//
// 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)
#ifndef MOCK_FORMATTER_HPP_INCLUDED
#define MOCK_FORMATTER_HPP_INCLUDED
#include "../con... | 21.058824 | 72 | 0.594041 | sejd0n |
18d536cdfadca31b92013cb3bcc63d62dbbb29db | 6,730 | cpp | C++ | engine/src/resources/sprite.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 162 | 2020-09-18T19:42:43.000Z | 2022-03-30T20:27:42.000Z | engine/src/resources/sprite.cpp | southdy/thunder | 4df2904da3983ac795ee00ca43fd0c6b771a2df5 | [
"Apache-2.0"
] | 162 | 2020-10-10T11:16:52.000Z | 2022-03-30T17:09:11.000Z | engine/src/resources/sprite.cpp | southdy/thunder | 4df2904da3983ac795ee00ca43fd0c6b771a2df5 | [
"Apache-2.0"
] | 12 | 2020-10-18T09:16:35.000Z | 2022-01-08T11:23:17.000Z | #include "sprite.h"
#include "engine.h"
#include "texture.h"
#include "atlas.h"
#include <cstring>
#define HEADER "Header"
#define DATA "Data"
#define MESHES "Meshes"
typedef deque<Texture *> Textures;
typedef unordered_map<int, Mesh *> Meshes;
static Vector3Vector vertEmpty;
static IndexVector trisEmpty;
c... | 24.742647 | 128 | 0.56523 | thunder-engine |
18d7d60e5c34d32008a13ac9c58f1ff17998595e | 1,160 | cpp | C++ | tests/accessor/local_accessor_constructors_core.cpp | AndreyXRomanov/SYCL-CTS | 9e232c7031c80f28ef55366bcfb7f6e843032b67 | [
"Apache-2.0"
] | null | null | null | tests/accessor/local_accessor_constructors_core.cpp | AndreyXRomanov/SYCL-CTS | 9e232c7031c80f28ef55366bcfb7f6e843032b67 | [
"Apache-2.0"
] | null | null | null | tests/accessor/local_accessor_constructors_core.cpp | AndreyXRomanov/SYCL-CTS | 9e232c7031c80f28ef55366bcfb7f6e843032b67 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
//
// SYCL 2020 Conformance Test Suite
//
// Provides sycl::local_accessor constructors test for generic types
//
*******************************************************************************/
#include "../common/common.h"
// FIXME: ... | 34.117647 | 80 | 0.682759 | AndreyXRomanov |
18da4027dfa0a6678a3423d6189bd0a912a35c7a | 5,514 | cpp | C++ | src/contract/contractexecutor.cpp | wisebeer/bitcoinx | 18a9517845078f06673102578a1ef7f300475ad2 | [
"MIT"
] | 159 | 2018-01-09T18:32:27.000Z | 2021-03-16T13:35:59.000Z | src/contract/contractexecutor.cpp | wisebeer/bitcoinx | 18a9517845078f06673102578a1ef7f300475ad2 | [
"MIT"
] | 38 | 2018-01-16T13:28:43.000Z | 2021-11-07T01:40:48.000Z | src/contract/contractexecutor.cpp | wisebeer/bitcoinx | 18a9517845078f06673102578a1ef7f300475ad2 | [
"MIT"
] | 86 | 2018-01-15T12:29:33.000Z | 2021-06-24T09:49:46.000Z | #include "contractexecutor.h"
#include "chainparams.h"
#include "config.h"
#include "pubkey.h"
#include "script/standard.h"
#include "timedata.h"
#include "util.h"
#include "validation.h"
bool ContractExecutor::Execut(dev::eth::Permanence type)
{
for (EthTransaction& tx : mTxs) {
if (tx.GetParams().versio... | 38.559441 | 170 | 0.629307 | wisebeer |
18de59f63a6aafda1a39e25c79739d9ee05963e5 | 309 | cxx | C++ | ants/lib/WRAP_LesionFilling.cxx | xemio/ANTsPy | ef610318e217bb04d3850d480c2e51df695d56c0 | [
"Apache-2.0"
] | 338 | 2017-09-01T06:47:54.000Z | 2022-03-31T12:11:46.000Z | ants/lib/WRAP_LesionFilling.cxx | xemio/ANTsPy | ef610318e217bb04d3850d480c2e51df695d56c0 | [
"Apache-2.0"
] | 306 | 2017-08-30T20:05:07.000Z | 2022-03-31T16:20:44.000Z | ants/lib/WRAP_LesionFilling.cxx | xemio/ANTsPy | ef610318e217bb04d3850d480c2e51df695d56c0 | [
"Apache-2.0"
] | 115 | 2017-09-08T11:53:17.000Z | 2022-03-27T05:53:39.000Z |
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "antscore/LesionFilling.h"
namespace py = pybind11;
int LesionFilling( std::vector<std::string> instring )
{
return ants::LesionFilling(instring, NULL);
}
PYBIND11_MODULE(LesionFilling, m)
{
m.def("LesionFilling", &LesionFilling);
} | 18.176471 | 54 | 0.734628 | xemio |
18de90e219ecda3c97c2310ef4a6e5714cf71f11 | 33 | hpp | C++ | test/nonstd/ring_span.tweak.hpp | martinmoene/ring-span-lite | e0a37704b8c1f402fae3b21b77a9b0d1ab62d176 | [
"BSL-1.0"
] | 121 | 2017-05-05T15:37:53.000Z | 2022-03-23T21:00:55.000Z | test/nonstd/ring_span.tweak.hpp | martinmoene/ring-span-lite | e0a37704b8c1f402fae3b21b77a9b0d1ab62d176 | [
"BSL-1.0"
] | 21 | 2017-05-09T16:12:58.000Z | 2021-07-25T06:55:47.000Z | test/nonstd/ring_span.tweak.hpp | martinmoene/ring-span-lite | e0a37704b8c1f402fae3b21b77a9b0d1ab62d176 | [
"BSL-1.0"
] | 14 | 2017-05-10T09:59:32.000Z | 2022-03-15T03:23:35.000Z | #define RING_SPAN_TWEAK_VALUE 42
| 16.5 | 32 | 0.878788 | martinmoene |
18e4373102036adc2e51c01706dd256b940560c7 | 7,925 | cpp | C++ | S3DR/lib/src/open_gl/object_adapters/text_adapter.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | 1 | 2019-07-10T04:25:45.000Z | 2019-07-10T04:25:45.000Z | S3DR/lib/src/open_gl/object_adapters/text_adapter.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | S3DR/lib/src/open_gl/object_adapters/text_adapter.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | #include "text_adapter.hpp"
#include "utility/custom_operators.hpp"
#include "open_gl/misc/base_texture.hpp"
template <typename T, unsigned size>
inline unsigned ARRAY_SIZE(const T (&array)[size])
{
return size;
}
#define VERTICES_BUF 0
#define COLORS_BUF 1
#define INDICES_BUF 2
TextAdapter::TextAdapter(TextObj... | 33.580508 | 119 | 0.712934 | tdenis8 |
18e522e4119377f76ec5ee57318710ab4dc85870 | 8,820 | cpp | C++ | lib/analyzer/expressions/module.cpp | reaver-project/vapor | 17ddb5c60b483bd17a288319bfd3e8a43656859e | [
"Zlib"
] | 4 | 2017-07-22T23:12:36.000Z | 2022-01-13T23:57:06.000Z | lib/analyzer/expressions/module.cpp | reaver-project/vapor | 17ddb5c60b483bd17a288319bfd3e8a43656859e | [
"Zlib"
] | 36 | 2016-11-26T17:46:16.000Z | 2019-05-21T16:27:13.000Z | lib/analyzer/expressions/module.cpp | reaver-project/vapor | 17ddb5c60b483bd17a288319bfd3e8a43656859e | [
"Zlib"
] | 3 | 2016-10-01T21:04:32.000Z | 2021-03-20T06:57:53.000Z | /**
* Vapor Compiler Licence
*
* Copyright © 2016-2019 Michał "Griwes" Dominiak
*
* 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 ... | 34.319066 | 109 | 0.530499 | reaver-project |
18f703b8ed6f3258591d109c368c5eeb287069c8 | 493,674 | cpp | C++ | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__76__Slow.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__76__Slow.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__76__Slow.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VTestHarness.h for the primary calling header
#include "VTestHarness.h"
#include "VTestHarness__Syms.h"
#include "verilated_dpi.h"
void VTestHarness::_ctor_var_reset_31() {
VL_DEBUG_IF(VL_DBG_MSGF("+ VTestHarness... | 131.541167 | 216 | 0.911249 | vargandhi |
18f861649b9c41a5e8d5755cff217adcc653b2f6 | 2,083 | cpp | C++ | HidTest/widget.cpp | milclo39/QtTools | 41463299799fc74d2691939e85b52c02a30ad9e6 | [
"Apache-2.0"
] | null | null | null | HidTest/widget.cpp | milclo39/QtTools | 41463299799fc74d2691939e85b52c02a30ad9e6 | [
"Apache-2.0"
] | null | null | null | HidTest/widget.cpp | milclo39/QtTools | 41463299799fc74d2691939e85b52c02a30ad9e6 | [
"Apache-2.0"
] | null | null | null | #include "widget.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QDebug>
Widget::Widget(QWidget *parent) : QWidget(parent)
{
m_pclEdtText = new QLineEdit;
m_pclEdtPos = new QLineEdit;
m_pclEdtPrs = new QLineEdit;
m_pclBtnOpen = new QPushButton("Open");
connect(m_pclBtnOpen, SIGNAL(clicked()), this, SL... | 28.148649 | 139 | 0.703313 | milclo39 |
18fe4d60e5a709ff4d0a7d5b8aaa18bcf1fe7e4b | 6,488 | hpp | C++ | breath/cryptography/merkle_damgard_machine.hpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/cryptography/merkle_damgard_machine.hpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/cryptography/merkle_damgard_machine.hpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | // ===========================================================================
// Copyright 2006-2008 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3... | 33.791667 | 81 | 0.529901 | erez-o |
7a0184b2b98b3d7ee238d979f8cb7fb908ce905e | 3,259 | cpp | C++ | DefineJPEG2.cpp | brucewangkorea/swfreplacer | 24f01045fd7686ff8c9f97bf89199afd8d3cc0d6 | [
"Apache-2.0"
] | null | null | null | DefineJPEG2.cpp | brucewangkorea/swfreplacer | 24f01045fd7686ff8c9f97bf89199afd8d3cc0d6 | [
"Apache-2.0"
] | null | null | null | DefineJPEG2.cpp | brucewangkorea/swfreplacer | 24f01045fd7686ff8c9f97bf89199afd8d3cc0d6 | [
"Apache-2.0"
] | null | null | null | /*
* File: JPEG2.cpp
* Author: brucewang
*
* Created on October 27, 2009, 4:07 PM
*/
#include "DefineJPEG2.h"
void DefineJPEG2::_init() {
memset(&mJPEG2Tag, 0, sizeof (mJPEG2Tag));
length = 0;
m_iImgLen = 0;
marker_start[0] = 0xff;
marker_start[1] = 0xd8;
marker_end[0] = 0xff;
ma... | 24.503759 | 82 | 0.57042 | brucewangkorea |
bb3f15857c5adec2cbd8ef0afb7d0640beade3c5 | 1,168 | cpp | C++ | Previous_Year_Tutorials_and_Labs/lab04/postfix.cpp | Frodocz/CS2040C | d2e132a2f3cf56eef3f725990c7ffcf71a6a76d5 | [
"MIT"
] | null | null | null | Previous_Year_Tutorials_and_Labs/lab04/postfix.cpp | Frodocz/CS2040C | d2e132a2f3cf56eef3f725990c7ffcf71a6a76d5 | [
"MIT"
] | null | null | null | Previous_Year_Tutorials_and_Labs/lab04/postfix.cpp | Frodocz/CS2040C | d2e132a2f3cf56eef3f725990c7ffcf71a6a76d5 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <stack>
#include <sstream>
using namespace std;
bool isOperand(char c){ //Verify that c is NOT an operator
return c != '+' && c != '-' && c != '*';
} //Return 1 if not an operator
int getVal(int a, int b, char op){
if (op == '+')
return a+b;
else if (... | 27.162791 | 98 | 0.541952 | Frodocz |
bb430ecd4f62ebca6c1471c7ef910b4c29903bf2 | 828 | hpp | C++ | src/org/apache/poi/util/LittleEndianInput.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/LittleEndianInput.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/LittleEndianInput.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/util/LittleEndianInput.java
#pragma once
#include <fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <java/lang/Object.hpp>
struct poi::util::LittleEndianInput
: public virtual ::java::lang::Object
{
virtual int32_t available() = 0;
virtual int8_t... | 30.666667 | 77 | 0.679952 | pebble2015 |
bb46b26d946e26fc6cafcb57ef73dfc6a7a69b65 | 1,734 | hpp | C++ | SyntaxAnalyzer.hpp | nokurn/shunting-yard | 7897ae92dfcdd5af668c8d5cdad30fd4bbd06a9c | [
"0BSD"
] | 1 | 2021-07-18T12:27:50.000Z | 2021-07-18T12:27:50.000Z | SyntaxAnalyzer.hpp | nokurn/shunting-yard | 7897ae92dfcdd5af668c8d5cdad30fd4bbd06a9c | [
"0BSD"
] | null | null | null | SyntaxAnalyzer.hpp | nokurn/shunting-yard | 7897ae92dfcdd5af668c8d5cdad30fd4bbd06a9c | [
"0BSD"
] | null | null | null | // Copyright (c) Jeremiah Z. Griffin <nokurn@gmail.com>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND... | 32.716981 | 75 | 0.756632 | nokurn |
bb47f7d32b6aaea894d3dc6ca4169e181a696435 | 2,566 | cpp | C++ | examples/c++/led.cpp | nazeer22/mraa | 0a12c5a0177f9fa8e7c4c564e70a65c4a0bb81af | [
"MIT"
] | 2 | 2019-04-17T12:41:28.000Z | 2019-06-03T12:30:12.000Z | examples/c++/led.cpp | nazeer22/mraa | 0a12c5a0177f9fa8e7c4c564e70a65c4a0bb81af | [
"MIT"
] | 1 | 2018-11-01T14:54:06.000Z | 2018-11-01T14:54:06.000Z | examples/c++/led.cpp | nazeer22/mraa | 0a12c5a0177f9fa8e7c4c564e70a65c4a0bb81af | [
"MIT"
] | 2 | 2018-07-12T11:59:47.000Z | 2018-12-14T14:22:14.000Z | /*
* Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
* Copyright (c) 2018, Linaro Ltd.
*
* 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
... | 29.494253 | 85 | 0.671083 | nazeer22 |
bb4e499d96c425956f899965cd35b93a42e9dd54 | 1,643 | cpp | C++ | src/examples/bcm2835/simple_dc_motor.cpp | XB32Z/motor_controllers | 41cb26b828d544b72babbe40d0334cbd7072af5b | [
"Apache-2.0"
] | null | null | null | src/examples/bcm2835/simple_dc_motor.cpp | XB32Z/motor_controllers | 41cb26b828d544b72babbe40d0334cbd7072af5b | [
"Apache-2.0"
] | null | null | null | src/examples/bcm2835/simple_dc_motor.cpp | XB32Z/motor_controllers | 41cb26b828d544b72babbe40d0334cbd7072af5b | [
"Apache-2.0"
] | null | null | null | #include <motor_controllers/communication/bcm2835/bcm2835_interface.h>
#include <signal.h>
#include <chrono>
#include <cmath>
#include <ctime>
#include <iostream>
#include <thread>
#include <vector>
bool isRunning;
void onSignalReceived(int) { isRunning = false; }
int main(int, char*[]) {
using namespace motor_co... | 29.339286 | 88 | 0.75776 | XB32Z |
bb4edde9971617e3231b8a51667b09a78065dd2d | 196 | cpp | C++ | test/application_tb.cpp | dblevins-3dgfx/tictactoe | bfb0e0048dde0fce65255efecab78ee9b1f71253 | [
"MIT"
] | null | null | null | test/application_tb.cpp | dblevins-3dgfx/tictactoe | bfb0e0048dde0fce65255efecab78ee9b1f71253 | [
"MIT"
] | 1 | 2022-01-27T21:37:11.000Z | 2022-01-27T21:37:11.000Z | test/application_tb.cpp | dblevins-3dgfx/tictactoe | bfb0e0048dde0fce65255efecab78ee9b1f71253 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "application.h"
TEST(Application_TB, TestConstruction)
{
TTT::Configuration config;
TTT::Application app(config);
ASSERT_FALSE(app.IsRunning());
}
| 16.333333 | 38 | 0.714286 | dblevins-3dgfx |
bb50a4a7e2d7d0843eedf96e3d0259b26f6d0613 | 1,038 | cpp | C++ | wavesim/tests/src/test_vec3.cpp | TheComet/wavesim | 90125d5273b96633e5f74666ddb707cedfa2fbf1 | [
"Apache-2.0"
] | 7 | 2018-01-25T10:58:39.000Z | 2021-05-08T08:08:37.000Z | wavesim/tests/src/test_vec3.cpp | TheComet/wavesim | 90125d5273b96633e5f74666ddb707cedfa2fbf1 | [
"Apache-2.0"
] | 4 | 2018-03-06T15:47:13.000Z | 2018-03-07T19:07:45.000Z | wavesim/tests/src/test_vec3.cpp | TheComet/wavesim | 90125d5273b96633e5f74666ddb707cedfa2fbf1 | [
"Apache-2.0"
] | 2 | 2018-02-18T02:02:31.000Z | 2020-02-16T09:49:12.000Z | #include "gmock/gmock.h"
#include "wavesim/vec3.h"
#define NAME vec3
using namespace ::testing;
TEST(NAME, cross_product_1)
{
vec3_t a = vec3(0, 0, 2);
vec3_t b = vec3(0, 2, 0);
vec3_cross(a.xyz, b.xyz);
EXPECT_THAT(a.v.x, DoubleEq(-4));
EXPECT_THAT(a.v.y, DoubleEq(0));
EXPECT_THAT(a.v.z, Dou... | 22.085106 | 37 | 0.601156 | TheComet |
bb51df47c64caff27629dac7953e49c948141c88 | 1,475 | hpp | C++ | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/win/winerr.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 10 | 2021-03-29T13:52:06.000Z | 2022-03-10T02:24:25.000Z | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/win/winerr.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 1 | 2019-07-19T02:40:32.000Z | 2019-07-19T02:40:32.000Z | Pods/OpenVPNAdapter/Sources/OpenVPN3/openvpn/win/winerr.hpp | TiagoPedroByterev/openvpnclient-ios | a9dafb2a481cc72a3e408535fb7f0aba9f5cfa76 | [
"MIT"
] | 7 | 2018-07-11T10:37:02.000Z | 2019-08-03T10:34:08.000Z | // OpenVPN -- An application to securely tunnel IP networks
// over a single port, with support for SSL/TLS-based
// session authentication and key exchange,
// packet encryption, packet authentication, and
// packet compression.
//
// Copyright (C) 2012-201... | 28.365385 | 78 | 0.667119 | TiagoPedroByterev |
bb596bdc31df732e7a234a8b6a64db81bc716238 | 1,484 | hpp | C++ | challenges/ichallenge.hpp | cdalvaro/project-euler | 7a09b06a0034ab555706214017ac2e6e3f019806 | [
"MIT"
] | null | null | null | challenges/ichallenge.hpp | cdalvaro/project-euler | 7a09b06a0034ab555706214017ac2e6e3f019806 | [
"MIT"
] | 18 | 2021-02-27T16:42:33.000Z | 2022-02-12T11:40:40.000Z | challenges/ichallenge.hpp | cdalvaro/project-euler | 7a09b06a0034ab555706214017ac2e6e3f019806 | [
"MIT"
] | 1 | 2021-02-22T13:08:13.000Z | 2021-02-22T13:08:13.000Z | //
// ichallenge.hpp
// ichallenges
//
// Created by Carlos David on 24/05/2020.
// Copyright © 2020 cdalvaro. All rights reserved.
//
#ifndef challenges_ichallenge_hpp
#define challenges_ichallenge_hpp
#include <any>
/**
@namespace challenges
@brief Challenges namespace
This namespace contains solutions for... | 24.733333 | 80 | 0.650943 | cdalvaro |
bb67f5b4b31749f456d7f91c1b290415c2b5ce14 | 2,279 | cc | C++ | cvmfs/sanitizer.cc | ssheikki/cvmfs | ba59b637b452045510e79671961dd3b846ce2db4 | [
"BSD-3-Clause"
] | null | null | null | cvmfs/sanitizer.cc | ssheikki/cvmfs | ba59b637b452045510e79671961dd3b846ce2db4 | [
"BSD-3-Clause"
] | null | null | null | cvmfs/sanitizer.cc | ssheikki/cvmfs | ba59b637b452045510e79671961dd3b846ce2db4 | [
"BSD-3-Clause"
] | null | null | null | /**
* This file is part of the CernVM File System.
*
* Provides input data sanitizer in the form of whitelist of character ranges.
*/
#include "cvmfs_config.h"
#include "sanitizer.h"
#include <cassert>
using namespace std; // NOLINT
#ifdef CVMFS_NAMESPACE_GUARD
namespace CVMFS_NAMESPACE_GUARD {
#endif
namespa... | 22.343137 | 80 | 0.617376 | ssheikki |
bb6c09d634c6514da1a999cd5e39236b40430e01 | 1,301 | hpp | C++ | include/ui/framework/canvas.hpp | ThatNerdyPikachu/Tinfoil | abef7e3648f483368301b43611017c7ffa6f6fc2 | [
"MIT"
] | 9 | 2020-12-24T00:12:29.000Z | 2022-02-22T11:37:45.000Z | include/ui/framework/canvas.hpp | skvaznoi/Tinfoil | abef7e3648f483368301b43611017c7ffa6f6fc2 | [
"MIT"
] | null | null | null | include/ui/framework/canvas.hpp | skvaznoi/Tinfoil | abef7e3648f483368301b43611017c7ffa6f6fc2 | [
"MIT"
] | 1 | 2020-07-20T01:30:03.000Z | 2020-07-20T01:30:03.000Z | #pragma once
#include <switch.h>
#include "ui/framework/layout.hpp"
extern u8* g_framebuf;
extern u32 g_framebufWidth;
extern u32 g_framebufHeight;
namespace tin::ui
{
union Colour
{
u32 abgr;
struct
{
u8 r, g, b, a;
};
Colour(u8 r, u8 g, u8 b, u8 a) :
... | 22.824561 | 88 | 0.534204 | ThatNerdyPikachu |
bb6dbd169d61dc501f10c06a47d34e6095150fae | 4,436 | cc | C++ | abel/flags/usage_config.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | abel/flags/usage_config.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | abel/flags/usage_config.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | //
#include <abel/flags/usage_config.h>
#include <iostream>
#include <memory>
#include <abel/base/profile.h>
#include <abel/flags/internal/path_util.h>
#include <abel/flags/internal/program_name.h>
#include <abel/strings/str_cat.h>
#include <abel/strings/strip.h>
#include <abel/synchronization/mutex.h>
extern "C" {... | 31.239437 | 81 | 0.70018 | Conun |
bb71525eb34d1fd77d333671e4f89f5580810bb7 | 368 | cpp | C++ | src/pinmux.cpp | hugoboss00/HeaterMeter | 0aee2e7189753da69e73319b8684af0132f18ed5 | [
"MIT"
] | 2 | 2018-07-19T12:14:57.000Z | 2018-07-19T12:14:59.000Z | src/pinmux.cpp | hugoboss00/HeaterMeter | 0aee2e7189753da69e73319b8684af0132f18ed5 | [
"MIT"
] | null | null | null | src/pinmux.cpp | hugoboss00/HeaterMeter | 0aee2e7189753da69e73319b8684af0132f18ed5 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <BBBiolib.h>
#include "pindef.h"
#include "pwm.h"
#undef PIN_DEFINE
#define PIN_DEFINE(namehm,definehm,definebbbio) \
case definehm: \
return definebbbio; \
break;
int getBBBPin(int hmPin)
{
switch (hmPin)
{
#include "pindef.def"
default:
printf("Unkno... | 13.62963 | 49 | 0.657609 | hugoboss00 |
bb7460f7c816d1d891d7e165059fd16d71ab5186 | 5,410 | cc | C++ | src/view_correction/position_receiver.cc | puzzlepaint/viewcorrection | ab42cab505879fc1235389fae50c23410079c938 | [
"BSD-3-Clause"
] | 8 | 2018-10-24T11:06:55.000Z | 2021-01-25T03:50:24.000Z | src/view_correction/position_receiver.cc | puzzlepaint/viewcorrection | ab42cab505879fc1235389fae50c23410079c938 | [
"BSD-3-Clause"
] | null | null | null | src/view_correction/position_receiver.cc | puzzlepaint/viewcorrection | ab42cab505879fc1235389fae50c23410079c938 | [
"BSD-3-Clause"
] | 3 | 2020-01-14T17:09:16.000Z | 2021-05-02T08:17:24.000Z | // Copyright 2018 ETH Zürich
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.... | 37.054795 | 81 | 0.708872 | puzzlepaint |
bb74cbc1f4d8177736920139c94c44d10e6209e4 | 5,700 | cpp | C++ | zrtp/crypto/openssl/InitializeOpenSSL.cpp | stelabouras/ZRTPCPP | 6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03 | [
"Apache-2.0"
] | 67 | 2015-01-02T18:22:18.000Z | 2022-02-26T21:31:06.000Z | zrtp/crypto/openssl/InitializeOpenSSL.cpp | stelabouras/ZRTPCPP | 6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03 | [
"Apache-2.0"
] | 27 | 2015-01-11T10:33:36.000Z | 2020-05-28T10:52:21.000Z | zrtp/crypto/openssl/InitializeOpenSSL.cpp | stelabouras/ZRTPCPP | 6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03 | [
"Apache-2.0"
] | 44 | 2015-02-27T07:21:53.000Z | 2022-01-04T03:05:08.000Z | /*
* Copyright 2006 - 2018, Werner Dittmann
*
* 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 l... | 24.152542 | 93 | 0.660877 | stelabouras |
bb760f3ac087b19909cc0f76664522660a34620f | 3,743 | cc | C++ | core/driver.cc | clever-lang/clever | 2c03e4d4a4bd48b110226907fd158ba76bbccb97 | [
"MIT"
] | 20 | 2015-03-13T16:03:08.000Z | 2022-02-22T17:47:40.000Z | core/driver.cc | felipensp/clever | f0795e5ad271750795f55386d2aad815a1d7cb82 | [
"MIT"
] | 1 | 2021-05-14T11:50:44.000Z | 2021-05-14T11:50:44.000Z | core/driver.cc | felipensp/clever | f0795e5ad271750795f55386d2aad815a1d7cb82 | [
"MIT"
] | 9 | 2015-01-14T19:21:54.000Z | 2020-10-01T16:42:06.000Z | /**
* Clever programming language
* Copyright (c) Clever Team
*
* This file is distributed under the MIT license. See LICENSE for details.
*/
#include <fstream>
#include <setjmp.h>
#include "core/cstring.h"
#include "core/driver.h"
#include "core/parser.hh"
#include "core/position.hh"
#include "core/vm.h"
#includ... | 21.02809 | 81 | 0.686615 | clever-lang |
bb78f184222994100794c2598c8a96fabfd2ac55 | 639 | hpp | C++ | include/lava/sill/managers/font-manager.hpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 15 | 2018-02-26T08:20:03.000Z | 2022-03-06T03:25:46.000Z | include/lava/sill/managers/font-manager.hpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 32 | 2018-02-26T08:26:38.000Z | 2020-09-12T17:09:38.000Z | include/lava/sill/managers/font-manager.hpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | null | null | null | #pragma once
#include <lava/sill/font.hpp>
namespace lava::sill {
class GameEngine;
}
namespace lava::sill {
class FontManager {
public:
FontManager(GameEngine& engine);
// Save the font
void registerFont(const std::string& hrid, const std::string& path);
// Getters
... | 22.821429 | 95 | 0.615023 | Breush |
bb7aba0cfb5b59b59a697b939441f1b449ab3d77 | 3,922 | cpp | C++ | test/recognition.cpp | gregorgrisza/eir | 654d9377bb6aae004278b03c6482e545791d3e50 | [
"Unlicense"
] | null | null | null | test/recognition.cpp | gregorgrisza/eir | 654d9377bb6aae004278b03c6482e545791d3e50 | [
"Unlicense"
] | null | null | null | test/recognition.cpp | gregorgrisza/eir | 654d9377bb6aae004278b03c6482e545791d3e50 | [
"Unlicense"
] | null | null | null | #include <catch2/catch_all.hpp>
#include "../src/processor/Analyzer.hpp"
#include "../src/model/intents/None.hpp"
#include "../src/model/intents/GetFact.hpp"
#include "../src/model/intents/GetWeather.hpp"
#include "../src/service/IntentRecognitionService.hpp"
TEST_CASE("One learned prediction", "[Analyzer]")
{
auto ... | 30.403101 | 86 | 0.68154 | gregorgrisza |
bb7f4989edc19de18dc82993bcd4d0b69f0b33d7 | 608 | cpp | C++ | src/linad99/fvar_a56.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 79 | 2015-01-16T14:14:22.000Z | 2022-01-24T06:28:15.000Z | src/linad99/fvar_a56.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 172 | 2015-01-21T01:53:57.000Z | 2022-03-29T19:57:31.000Z | src/linad99/fvar_a56.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 22 | 2015-01-15T18:11:54.000Z | 2022-01-11T21:47:51.000Z | /*
* $Id$
*
* Author: David Fournier
* Copyright (c) 2008-2012 Regents of the University of California
*/
/**
* \file
* Description not yet available.
*/
#include "fvar.hpp"
/**
* Description not yet available.
* \param
*/
dvar_vector& dvar_vector::operator*=(const double x)
{
for (int i=indexmin(); i... | 16 | 66 | 0.575658 | johnrsibert |
bb7fbaf005cb96a787bd8af5c0e6d78a1b025f0b | 9,592 | cpp | C++ | ProcGeom/kdTree.cpp | JSandusky/Urho3DProcGeom | 7f9ab7b1db4275d9f47404f0188b51c776c5e677 | [
"MIT"
] | 9 | 2018-09-18T13:04:23.000Z | 2021-09-22T06:03:11.000Z | ProcGeom/kdTree.cpp | JSandusky/Urho3DProcGeom | 7f9ab7b1db4275d9f47404f0188b51c776c5e677 | [
"MIT"
] | null | null | null | ProcGeom/kdTree.cpp | JSandusky/Urho3DProcGeom | 7f9ab7b1db4275d9f47404f0188b51c776c5e677 | [
"MIT"
] | 8 | 2018-09-18T08:41:24.000Z | 2020-03-25T23:11:46.000Z | #include "kdTree.h"
namespace Urho3D
{
bool LineSegment::Intersects(const BoundingBox& bounds) const
{
float hitDist = ToRay().HitDistance(bounds);
if (hitDist == M_INFINITY)
return false;
return hitDist < Length();
}
float LineSegment::Distance(const ... | 33.421603 | 182 | 0.45736 | JSandusky |
bb835c86bda4a72a06cb3f8d46551e262886ef15 | 453 | cpp | C++ | Sec4_STL/two.cpp | dragonfly9113/learn_advanced_cpluplus_programming | ea40457948d4ceafec8e76a800b06ee29df74ad1 | [
"MIT"
] | 1 | 2019-01-04T22:56:35.000Z | 2019-01-04T22:56:35.000Z | Sec4_STL/two.cpp | dragonfly9113/learn_advanced_cpluplus_programming | ea40457948d4ceafec8e76a800b06ee29df74ad1 | [
"MIT"
] | null | null | null | Sec4_STL/two.cpp | dragonfly9113/learn_advanced_cpluplus_programming | ea40457948d4ceafec8e76a800b06ee29df74ad1 | [
"MIT"
] | null | null | null | // Name : two.cpp
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector< vector<int> > grid(3, vector<int>(4, 7)); // this 2D vector contain 3 vector<int>, each of which contains 4 integers (initialized to 7)
grid[1].push_back(8);
for (int row = 0; row < grid.size(); row++) {... | 18.875 | 147 | 0.582781 | dragonfly9113 |
bb83dd62f3103ac684b4f228926107c088bfd7db | 8,012 | cpp | C++ | Esami/Laboratorio20140219/json.cpp | eMDi94/EDM-ingmo | 2b53194d862dea87a1f95305511c70c155dcc42c | [
"MIT"
] | 2 | 2018-08-16T00:34:55.000Z | 2019-02-10T00:59:05.000Z | Esami/Laboratorio20140219/json.cpp | eMDi94/EDM-ingmo | 2b53194d862dea87a1f95305511c70c155dcc42c | [
"MIT"
] | null | null | null | Esami/Laboratorio20140219/json.cpp | eMDi94/EDM-ingmo | 2b53194d862dea87a1f95305511c70c155dcc42c | [
"MIT"
] | null | null | null | #include "json.h"
#include <stdexcept>
using namespace std;
using namespace Json;
/*
* Json Value dummy implementation
*/
int64_t json_value::int_value() {
throw logic_error("Not implemented.");
}
int64_t json_value::int_value() const {
throw logic_error("Not implemented.");
}
string& json_... | 21.195767 | 85 | 0.639291 | eMDi94 |
bb8440b0b3c665ceffbfd67dcf47cf527c32a33e | 2,355 | hpp | C++ | src/GeoMapWidget.hpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/GeoMapWidget.hpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/GeoMapWidget.hpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | #ifndef SEMPR_GUI_GEOMAPWIDGET_HPP_
#define SEMPR_GUI_GEOMAPWIDGET_HPP_
#include <QWidget>
#include <QStandardItemModel>
#include <QAbstractItemModel>
#include <QGeoCoordinate>
#include <QTimer>
#include "RoleNameProxyModel.hpp"
#include "GeometryFilterProxyModel.hpp"
#include "FlattenTreeProxyModel.hpp"
namespace ... | 30.192308 | 92 | 0.739278 | sempr-tk |
bb8492c6d4ffd6409670ef7ea319287e5fb89895 | 43,157 | cpp | C++ | src/QtTAR/qttar.cpp | Vladimir-Lin/QtTAR | 47a6757f5c072d9e0977658fbcc45be0471cb9b2 | [
"MIT"
] | null | null | null | src/QtTAR/qttar.cpp | Vladimir-Lin/QtTAR | 47a6757f5c072d9e0977658fbcc45be0471cb9b2 | [
"MIT"
] | null | null | null | src/QtTAR/qttar.cpp | Vladimir-Lin/QtTAR | 47a6757f5c072d9e0977658fbcc45be0471cb9b2 | [
"MIT"
] | null | null | null | /****************************************************************************
*
* Copyright (C) 2001 ~ 2021
*
* Neutrino International Inc.
* Oriphase Space Travelling Industry
*
* Author : Brian Lin ( Foxman , Vladimir Lin , Vladimir Forest )
* E-mail : lin.foxman@gmail.com
* : lin.vladimir@gm... | 72.777403 | 166 | 0.251153 | Vladimir-Lin |
bb853b24cc1d1751454693b35954fef2f4506ee4 | 391 | hpp | C++ | Source/IDE/src/include/Dialogs/AboutDialog.hpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/IDE/src/include/Dialogs/AboutDialog.hpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | null | null | null | Source/IDE/src/include/Dialogs/AboutDialog.hpp | DatZach/Swift | b0c6f9c87e8c8dfe8a19dedc4dd57081fa5cdef7 | [
"MIT"
] | 1 | 2021-10-30T20:43:01.000Z | 2021-10-30T20:43:01.000Z | /*
* AboutDialog.hpp
* About Dialog
*/
#ifndef __ABOUT_DIALOG_HPP
#define __ABOUT_DIALOG_HPP
#include <QDialog>
namespace Ui
{
class AboutDialog;
}
class AboutDialog : public QDialog
{
Q_OBJECT
private:
Ui::AboutDialog* ui;
protected:
void mousePressEvent(QMouseEvent*);
public:
explicit ... | 12.21875 | 52 | 0.69821 | DatZach |
bb85f971db1f6f2e2ecab783b5f5b3f39a727e33 | 4,909 | cpp | C++ | src/ofxCameraAnaglyph.cpp | NickHardeman/ofxCameraAnaglyph | 9201b534b6a9b39610ce1cf042b9572ec9e5db63 | [
"MIT"
] | 19 | 2015-02-27T02:13:58.000Z | 2021-12-26T23:38:30.000Z | src/ofxCameraAnaglyph.cpp | moebiussurfing/ofxCameraAnaglyph | 5af6a97a948b639e9ddd01367a7a63dc7588ebac | [
"MIT"
] | 3 | 2016-08-18T15:33:16.000Z | 2018-11-01T16:04:01.000Z | src/ofxCameraAnaglyph.cpp | moebiussurfing/ofxCameraAnaglyph | 5af6a97a948b639e9ddd01367a7a63dc7588ebac | [
"MIT"
] | 8 | 2016-02-08T23:50:01.000Z | 2019-07-15T08:26:08.000Z | //
// CameraAnaglyph.cpp
// iTunesVisualizerBullet
//
// Created by Nick Hardeman on 8/21/14.
//
#include "ofxCameraAnaglyph.h"
//--------------------------------------------------------------
ofxCameraAnaglyph::ofxCameraAnaglyph() {
enableStereo();
eyeSeparation = 0.179;
DTOR = 0.017453292... | 26.111702 | 103 | 0.494398 | NickHardeman |
bb8627f4aaf22e19b7fd9802d8d69260658d8688 | 4,021 | cpp | C++ | Source/SystemQOR/MSWindows/WinPosum/WinPosumStream_Close.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinPosum/WinPosumStream_Close.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinPosum/WinPosumStream_Close.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z |
#include "WinPosum/WinPosumStream.h"
#include "WinPosum/WinPosumStreamImpl.h"
#include "WinPosum/WinPosumStdio.h"
#include "WinQL/Application/ErrorSystem/WinQLDOSError.h"
#include <errno.h>
//------------------------------------------------------------------------------
namespace nsWin32
{
//------------------------... | 23.934524 | 239 | 0.496394 | mfaithfull |
bb864955f4b9e8df97b014b348be7c4b75f48357 | 1,919 | hpp | C++ | guts/Stream.hpp | dtecta/motion-toolkit | 4d9d1cee445aa17b1fb4bb50b3f1b9146c2c737d | [
"MIT"
] | 85 | 2015-03-14T11:57:26.000Z | 2022-03-21T22:13:59.000Z | guts/Stream.hpp | dtecta/motion-toolkit | 4d9d1cee445aa17b1fb4bb50b3f1b9146c2c737d | [
"MIT"
] | 3 | 2015-03-14T11:38:48.000Z | 2019-04-23T20:25:29.000Z | guts/Stream.hpp | dtecta/motion-toolkit | 4d9d1cee445aa17b1fb4bb50b3f1b9146c2c737d | [
"MIT"
] | 8 | 2015-03-14T15:11:46.000Z | 2020-08-31T12:30:26.000Z | #pragma once
#include <ostream>
#include <istream>
#include <vector>
#include "RefPtr.hpp"
#include "StaticAssert.hpp"
namespace guts
{
template <typename CharT, typename Traits, typename Type>
bool write(std::basic_ostream<CharT, Traits>& os, const Type& x)
{
STATIC_ASSERT(sizeof(CharT) == 1);
return !... | 24.922078 | 88 | 0.615946 | dtecta |
bb86eafb7b913b7cb2e05d31c9395aa1a05c6e92 | 10,379 | cpp | C++ | core/src/emulator.cpp | jack-karamanian/gbemu | a34d17dd8b372411955e87018aeecf77eb8fcd89 | [
"MIT"
] | null | null | null | core/src/emulator.cpp | jack-karamanian/gbemu | a34d17dd8b372411955e87018aeecf77eb8fcd89 | [
"MIT"
] | null | null | null | core/src/emulator.cpp | jack-karamanian/gbemu | a34d17dd8b372411955e87018aeecf77eb8fcd89 | [
"MIT"
] | null | null | null | #include <SDL2/SDL.h>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iostream>
#include <vector>
#include "cpu.h"
#include "emulator.h"
#include "gpu.h"
#include "input.h"
#include "lcd.h"
#include "memory.h"
#include "registers/cgb.h"
#include "registers/div.h"
#include "registe... | 28.051351 | 80 | 0.599961 | jack-karamanian |
bb87a82b0449a820fcf7cce9aec6205bed5028cc | 466 | cpp | C++ | acmicpc.net/4383.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | 4 | 2016-04-15T07:54:39.000Z | 2021-01-11T09:02:16.000Z | acmicpc.net/4383.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | acmicpc.net/4383.cpp | kbu1564/SimpleAlgorithm | 7e5b0d2fe19461417d88de0addd2235da55787d3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
int N;
while (cin >> N) {
int DP[6001] = { 0, }, ARR[3001] = { 0, };
for (int i = 0; i < N; i++) {
cin >> ARR[i];
if (i > 0) {
DP[abs(ARR[i]-ARR[i-1])]++;
}
}
string result = "Jolly";
for... | 17.923077 | 45 | 0.448498 | kbu1564 |
bb93627f520ea149ba6ce256a0b494e243b93e3b | 1,764 | cpp | C++ | runtime/source/Forge2D.cpp | C-Lex31/ForgeEngine | a4035a32d41394650ddf04ef86503a98c3f8f166 | [
"Apache-2.0"
] | null | null | null | runtime/source/Forge2D.cpp | C-Lex31/ForgeEngine | a4035a32d41394650ddf04ef86503a98c3f8f166 | [
"Apache-2.0"
] | null | null | null | runtime/source/Forge2D.cpp | C-Lex31/ForgeEngine | a4035a32d41394650ddf04ef86503a98c3f8f166 | [
"Apache-2.0"
] | null | null | null | #include "Forge2D.h"
Forge2D::Forge2D()
:Layer("Forge2D"), m_Cam(1366/707,true)
{
}
void Forge2D::OnAttach()
{
// m_CheckerboardTexture = Forge::Texture2D::create("assets/textures/Checkerboard.png");
//m_Logo = Forge::Texture2D::create("assets/textures/AwesomeFace.png",1);
}
void Forge2D::OnDetach()
{
}
vo... | 28 | 166 | 0.540249 | C-Lex31 |
bb972619162b135aa1ea77fa8633d8207bca7749 | 7,128 | cpp | C++ | Map.cpp | banouge/SeniorProject | defc4ffaae4e52b002bbda06701653075b4cc93f | [
"MIT"
] | null | null | null | Map.cpp | banouge/SeniorProject | defc4ffaae4e52b002bbda06701653075b4cc93f | [
"MIT"
] | null | null | null | Map.cpp | banouge/SeniorProject | defc4ffaae4e52b002bbda06701653075b4cc93f | [
"MIT"
] | null | null | null | #include <string>
#include "Map.h"
std::random_device Map::seed;
std::mt19937 Map::rng(seed());
Map::Map(std::string name): NAME(name)
{
rng = std::mt19937(seed());
std::ifstream mapsList("Maps.txt");
std::string line;
//load map if it exists
while (std::getline(mapsList, line))
{
if (line == name)
{
l... | 23.218241 | 120 | 0.659792 | banouge |
bb9bc8dc3868b3ff28934d58e6f6fe248d66e4a1 | 13,217 | hpp | C++ | source/mango/jpeg/jpeg.hpp | galek/mango | 975b438ac9a22ed3a849da6187e1fdf3d547c926 | [
"Zlib"
] | 1 | 2021-08-06T09:27:45.000Z | 2021-08-06T09:27:45.000Z | source/mango/jpeg/jpeg.hpp | galek/mango | 975b438ac9a22ed3a849da6187e1fdf3d547c926 | [
"Zlib"
] | null | null | null | source/mango/jpeg/jpeg.hpp | galek/mango | 975b438ac9a22ed3a849da6187e1fdf3d547c926 | [
"Zlib"
] | 1 | 2021-07-10T11:41:01.000Z | 2021-07-10T11:41:01.000Z | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2016 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <vector>
#include <string>
#include <mango/core/core.hpp>
#include <mango/image/image.hpp>
#include <mango/simd/simd.hpp>
//#define JPEG_ENABLE_PRINT
#define JPEG_ENABLE_T... | 30.175799 | 128 | 0.577665 | galek |
bb9be0b7403c2dcc32cbf383f769a816630ecc57 | 644 | cpp | C++ | test/utility/datastructure/tablefilter_test.cpp | pefoo/MoSer2 | f593126112637c9fa3a7e6a66e34e80f515b796b | [
"MIT"
] | 1 | 2019-06-01T11:39:53.000Z | 2019-06-01T11:39:53.000Z | test/utility/datastructure/tablefilter_test.cpp | pefoo/MoSer2 | f593126112637c9fa3a7e6a66e34e80f515b796b | [
"MIT"
] | null | null | null | test/utility/datastructure/tablefilter_test.cpp | pefoo/MoSer2 | f593126112637c9fa3a7e6a66e34e80f515b796b | [
"MIT"
] | null | null | null | #include "utility/datastructure/tablefilter.hpp"
#include <vector>
#include "catch2/catch.hpp"
TEST_CASE("Column filter", "[Utility]") {
auto multi_column_filter =
utility::datastructure::CreateColumnFilter({"c1", "c2"});
REQUIRE(multi_column_filter("c1"));
REQUIRE(multi_column_filter("c2"));
REQUIRE(!mu... | 30.666667 | 78 | 0.67236 | pefoo |
bb9d53b19e11abe7b6ae6e4a0a21fe77aa030a14 | 1,996 | cpp | C++ | vaca/Point.cpp | picrap/vaca | 377070c2124bb71649313f6a144c6bd40fdee723 | [
"MIT"
] | null | null | null | vaca/Point.cpp | picrap/vaca | 377070c2124bb71649313f6a144c6bd40fdee723 | [
"MIT"
] | null | null | null | vaca/Point.cpp | picrap/vaca | 377070c2124bb71649313f6a144c6bd40fdee723 | [
"MIT"
] | null | null | null | // Vaca - Visual Application Components Abstraction
// Copyright (c) 2005-2010 David Capello
//
// This file is distributed under the terms of the MIT license,
// please read LICENSE.txt for more information.
#include "vaca/Point.h"
#include "vaca/Size.h"
using namespace vaca;
Point::Point()
{
x = 0;
... | 15.472868 | 64 | 0.578657 | picrap |
bba560cc22d94a875b38ab75cbc994af36100164 | 12,840 | cpp | C++ | src/importer/onnx/ops/activations.cpp | ChanSiYuan/nncase | 6f95be62d1686f5ea2a9806ac97e5817bf1eda3c | [
"Apache-2.0"
] | 510 | 2018-12-29T06:49:36.000Z | 2022-03-30T08:36:29.000Z | src/importer/onnx/ops/activations.cpp | ChanSiYuan/nncase | 6f95be62d1686f5ea2a9806ac97e5817bf1eda3c | [
"Apache-2.0"
] | 459 | 2019-02-17T13:31:29.000Z | 2022-03-31T05:55:38.000Z | src/importer/onnx/ops/activations.cpp | ChanSiYuan/nncase | 6f95be62d1686f5ea2a9806ac97e5817bf1eda3c | [
"Apache-2.0"
] | 155 | 2019-04-16T08:43:24.000Z | 2022-03-21T07:27:26.000Z | /* Copyright 2020 Alexey Chernov <4ernov@gmail.com>
*
* 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 applicabl... | 38.791541 | 131 | 0.648287 | ChanSiYuan |
bbab978c8f23dc0ce77a616612add6420cfcac53 | 487 | cpp | C++ | Chapter2/Excercise40.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | 1 | 2019-08-13T17:51:24.000Z | 2019-08-13T17:51:24.000Z | Chapter2/Excercise40.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | null | null | null | Chapter2/Excercise40.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | 1 | 2020-06-05T13:37:56.000Z | 2020-06-05T13:37:56.000Z | #include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
fstream inputStream;
string _name, name, _score, score;
int count;
inputStream.open("scores.txt");
inputStream >> count;
inputStream >> score >> name;
while(count > 1) {
inputStream >> _score >> _name;
... | 15.709677 | 40 | 0.593429 | yapbenzet |
bbb10f7fec421e2df803d56e612a43ab5e544b0f | 459 | cpp | C++ | balloon.cpp | dhata/Cereal_Killer | 4a16abfc8c502d0cea008aa8870daa3debd5096d | [
"Apache-2.0"
] | 1 | 2018-12-11T03:35:28.000Z | 2018-12-11T03:35:28.000Z | balloon.cpp | dhata/Cereal_Killer | 4a16abfc8c502d0cea008aa8870daa3debd5096d | [
"Apache-2.0"
] | null | null | null | balloon.cpp | dhata/Cereal_Killer | 4a16abfc8c502d0cea008aa8870daa3debd5096d | [
"Apache-2.0"
] | null | null | null | #include "balloon.h"
Balloon::Balloon(double nx, double ny, int vx, int vy, QPixmap* pic, int level): Cereal(nx, ny, vx, vy, pic, level){
count =0;
type='B';
}
Balloon::~Balloon(){
}
bool Balloon::move(){
count++;
if(count==15){
x+=velocityX;
y+=velocityY;
if(x<0 || y<0 || (x+50)>700 || (y+50) > 475){
r... | 15.827586 | 116 | 0.579521 | dhata |
bbb4e68ccc527284f2f3cf8c300902a756f8f30f | 5,591 | hpp | C++ | src/tabs.hpp | makuke1234/PdfiumView | 906099f7121a74953486a00a340e57ebe038e9bb | [
"MIT"
] | null | null | null | src/tabs.hpp | makuke1234/PdfiumView | 906099f7121a74953486a00a340e57ebe038e9bb | [
"MIT"
] | 3 | 2022-01-17T09:54:43.000Z | 2022-03-15T13:57:29.000Z | src/tabs.hpp | makuke1234/PdfiumView | 906099f7121a74953486a00a340e57ebe038e9bb | [
"MIT"
] | null | null | null | #pragma once
#include "common.hpp"
#include "lib.hpp"
#include <list>
#include <utility>
#include <set>
namespace pdfv
{
// Declare before use in be-friending
class Tabs;
class MainWindow;
class TabObject
{
public:
std::wstring first;
pdfv::Pdfium second;
float zoom{ 1.0f };
TabObject() noexcept = de... | 26.879808 | 93 | 0.672331 | makuke1234 |
bbb7b695fcae34225665ee0a27ca3301690f3f2a | 2,784 | cpp | C++ | board_firmware/Archive/TeensyTrigger/src/trigger_board.cpp | razanskylab/Cascade_Trigger | e62251b0a62eb938e1395519318413286e521c51 | [
"MIT"
] | null | null | null | board_firmware/Archive/TeensyTrigger/src/trigger_board.cpp | razanskylab/Cascade_Trigger | e62251b0a62eb938e1395519318413286e521c51 | [
"MIT"
] | null | null | null | board_firmware/Archive/TeensyTrigger/src/trigger_board.cpp | razanskylab/Cascade_Trigger | e62251b0a62eb938e1395519318413286e521c51 | [
"MIT"
] | null | null | null | #include <Arduino.h> // always required when using platformio
// #include <digitalWriteFast.h>
//
// const uint8_t INPUT_PIN = 11;
// const uint8_t OUTPUT_PIN = 9;
//
// bool lastInputState;
// bool inputState;
// uint32_t lastTriggerOn = 0; // will store last time LED was updated
//
// /////////////////////////... | 28.408163 | 83 | 0.567888 | razanskylab |
c7d8cbbef97a6c1b75aeb318a0965964b8383a9c | 31,509 | cpp | C++ | ManuvrOS/Transports/BufferPipes/ManuvrGPS/ManuvrGPS.cpp | Manuvr/ManuvrOS | e3a812c9b609ad69670ff2f8050a07bd423ebc78 | [
"Apache-2.0"
] | 5 | 2015-03-26T22:58:58.000Z | 2021-06-15T05:36:57.000Z | ManuvrOS/Transports/BufferPipes/ManuvrGPS/ManuvrGPS.cpp | Manuvr/ManuvrOS | e3a812c9b609ad69670ff2f8050a07bd423ebc78 | [
"Apache-2.0"
] | 2 | 2016-09-26T09:25:58.000Z | 2017-08-03T05:27:24.000Z | ManuvrOS/Transports/BufferPipes/ManuvrGPS/ManuvrGPS.cpp | Manuvr/ManuvrOS | e3a812c9b609ad69670ff2f8050a07bd423ebc78 | [
"Apache-2.0"
] | 2 | 2016-04-29T07:43:32.000Z | 2020-02-07T06:43:01.000Z | /*
File: ManuvrGPS.cpp
Author: J. Ian Lindsay
Date: 2016.06.29
Copyright 2016 Manuvr, 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... | 32.993717 | 122 | 0.497985 | Manuvr |
c7d903735664da0ee8eba580cb469076d44448a9 | 11,299 | cpp | C++ | src/sysDolphin/texture.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | 27 | 2021-09-28T00:33:11.000Z | 2021-11-18T19:38:40.000Z | src/sysDolphin/texture.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | src/sysDolphin/texture.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | #include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F0
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: 80044194
* Size: 000070
*/
Texture::Texture()
{
/*
.loc_0x0... | 19.021886 | 48 | 0.450659 | doldecomp |
c7dde75c7535c0286c57597f4d97b993d782d3b2 | 495 | hxx | C++ | include/point.hxx | atollena/packrect | 173c65a83261f577cd507263e2bdd43179ea7915 | [
"MIT"
] | 2 | 2018-08-23T10:55:30.000Z | 2018-08-23T11:01:20.000Z | include/point.hxx | atollena/packrect | 173c65a83261f577cd507263e2bdd43179ea7915 | [
"MIT"
] | null | null | null | include/point.hxx | atollena/packrect | 173c65a83261f577cd507263e2bdd43179ea7915 | [
"MIT"
] | null | null | null | #ifndef POINT_HXX
#define POINT_HXX
namespace packing {
class Point {
public:
Point(int x, int y)
:x(x), y(y)
{}
bool operator==(const Point& other) const {
return x == other.x && y == other.y;
}
Point operator+(const Point& other) const {
return Point(getX() + other... | 17.678571 | 65 | 0.541414 | atollena |
c7df56eef0da8b29817881b44130ddb22e0a7a58 | 2,371 | hpp | C++ | src/duke/attributes/Attribute.hpp | hradec/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 51 | 2015-01-07T18:36:39.000Z | 2021-11-30T15:24:44.000Z | src/duke/attributes/Attribute.hpp | virneo/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 1 | 2015-01-08T10:48:43.000Z | 2015-02-11T19:32:14.000Z | src/duke/attributes/Attribute.hpp | virneo/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 18 | 2015-05-11T12:43:37.000Z | 2019-11-29T11:15:41.000Z | #pragma once
#include "duke/base/Slice.hpp"
#include "duke/base/SmallBuffer.hpp"
#include "duke/attributes/AttributeType.hpp"
#include "duke/attributes/AttributeTraits.hpp"
namespace attribute {
/**
* A small value that can efficiently transport POD (plain old data) or arrays
* of POD in a type safe manner. If da... | 34.867647 | 105 | 0.677773 | hradec |
c7e59aede1ef944590c5b2a6443f207ef0273cbe | 1,075 | cc | C++ | Syntax/src/ReplayNode.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | 1 | 2019-07-29T04:07:29.000Z | 2019-07-29T04:07:29.000Z | Syntax/src/ReplayNode.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | null | null | null | Syntax/src/ReplayNode.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | 1 | 2020-03-04T17:13:04.000Z | 2020-03-04T17:13:04.000Z | /*
* Copyright (C) 2021 Frank Mertens.
*
* Distribution and use is allowed under the terms of the zlib license
* (see cc/LICENSE-zlib).
*
*/
#include <cc/syntax/ReplayNode>
#include <cc/Token>
namespace cc::syntax {
struct ReplayNode::State: public SyntaxNode::State
{
State(const String &name):
nam... | 20.673077 | 85 | 0.562791 | frankencode |
c7e8913136179cc199242be98d62e7d93c2fae89 | 462 | cpp | C++ | Source/Ocean.Core/Rock.cpp | AndreyTalanin/Ocean | 81de89c501cda56a21fa20816250a930c6c1acfe | [
"MIT"
] | null | null | null | Source/Ocean.Core/Rock.cpp | AndreyTalanin/Ocean | 81de89c501cda56a21fa20816250a930c6c1acfe | [
"MIT"
] | null | null | null | Source/Ocean.Core/Rock.cpp | AndreyTalanin/Ocean | 81de89c501cda56a21fa20816250a930c6c1acfe | [
"MIT"
] | null | null | null | // Ocean - Copyright © Andrey Talanin 2020
// This file is subject to the terms and conditions defined in the
// file 'LICENSE.md', which is a part of this source code package.
#include "Ocean.h"
#include "OceanCell.h"
#include "OceanObject.h"
#include "OceanObjectType.h"
#include "Rock.h"
Rock::Rock(Ocean *ocean, O... | 20.086957 | 66 | 0.703463 | AndreyTalanin |
c7e94ee2b02b6bab580136e264fdc6a02d4f4a8c | 176 | cpp | C++ | src/main.cpp | bdol/osge | 3ccb63600c1148bfcdc996c531152ab58654d245 | [
"MIT"
] | null | null | null | src/main.cpp | bdol/osge | 3ccb63600c1148bfcdc996c531152ab58654d245 | [
"MIT"
] | null | null | null | src/main.cpp | bdol/osge | 3ccb63600c1148bfcdc996c531152ab58654d245 | [
"MIT"
] | null | null | null | //
// Created by Brian Dolhansky on 12/22/17.
//
#include "engine/GameEngine.h"
int main(int argc, char** argv) {
GameEngine engine = GameEngine();
engine.start();
}
| 16 | 42 | 0.647727 | bdol |
2a00f5bd1eca20a9b1338231244c78b100f7b949 | 3,602 | cpp | C++ | main.cpp | santiagohenao/Bounce-Ball-SFML | 227d58cdf400f08b2d771647efb5d0536d6456a7 | [
"MIT"
] | null | null | null | main.cpp | santiagohenao/Bounce-Ball-SFML | 227d58cdf400f08b2d771647efb5d0536d6456a7 | [
"MIT"
] | null | null | null | main.cpp | santiagohenao/Bounce-Ball-SFML | 227d58cdf400f08b2d771647efb5d0536d6456a7 | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <SFML/Keyboard.hpp>
#include <iostream>
#include <fstream>
#include <math.h>
using namespace std;
#define box_x 500.
#define label_space 150.
#define box_y 300.
#define g 9.8
static float dt=0.0008;
//sf::RenderWindow window;
double xspace_i;
double xspace_f;
double yspace_i;
d... | 21.830303 | 115 | 0.536091 | santiagohenao |
2a01257701bf4030a2f73daffd44aedba3eb2985 | 423 | cpp | C++ | 15-assert_exception/01-assert.cpp | stevenokm/cpp_tutorial | 0cbc0917bcee8c503a3b9318e945a6ec662ac402 | [
"MIT"
] | 1 | 2021-09-23T00:35:43.000Z | 2021-09-23T00:35:43.000Z | 15-assert_exception/01-assert.cpp | stevenokm/cpp_tutorial | 0cbc0917bcee8c503a3b9318e945a6ec662ac402 | [
"MIT"
] | null | null | null | 15-assert_exception/01-assert.cpp | stevenokm/cpp_tutorial | 0cbc0917bcee8c503a3b9318e945a6ec662ac402 | [
"MIT"
] | 2 | 2021-08-30T05:34:42.000Z | 2021-09-21T14:11:22.000Z | #include <iostream>
#include <cassert>
/***
* # example1:
* > g++ cpp_tutorial/15-assert_exception/01-assert.cpp
* > ./a.out
* > a.out: cpp_tutorial/15-assert_exception/01-assert.cpp:15: int main(): Assertion `4 == 5' failed.
* > Aborted (core dumped)
* # example2:
* > g++ -DNDEBUG cpp_tutorial/15... | 20.142857 | 103 | 0.600473 | stevenokm |
2a03e3258cf09f1ab3f992735c8360c68c8cdbed | 19,279 | cpp | C++ | Cores/Mednafen/mednafen/src/gb/memory.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 3,459 | 2015-01-07T14:07:09.000Z | 2022-03-25T03:51:10.000Z | Cores/Mednafen/mednafen/src/gb/memory.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 1,046 | 2018-03-24T17:56:16.000Z | 2022-03-23T08:13:09.000Z | Cores/Mednafen/mednafen/src/gb/memory.cpp | ianclawson/Provenance | e9cc8c57f41a4d122a998cf53ffd69b1513d4205 | [
"BSD-3-Clause"
] | 549 | 2015-01-07T14:07:15.000Z | 2022-01-07T16:13:05.000Z | // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
// Copyright (C) 1999-2003 Forgotten
// Copyright (C) 2004 Forgotten and the VBA development team
// 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 F... | 25.367105 | 101 | 0.604129 | ianclawson |
2a06d923f5751cb6124b4901213fe950af3126d8 | 5,159 | cpp | C++ | LearnOpenGL/src/Scene1.cpp | wolfstrasz/Graphics-Engine-OpenGL- | 9f65b826fc533faef8ef122ac82f1d9ac0423e43 | [
"MIT"
] | null | null | null | LearnOpenGL/src/Scene1.cpp | wolfstrasz/Graphics-Engine-OpenGL- | 9f65b826fc533faef8ef122ac82f1d9ac0423e43 | [
"MIT"
] | null | null | null | LearnOpenGL/src/Scene1.cpp | wolfstrasz/Graphics-Engine-OpenGL- | 9f65b826fc533faef8ef122ac82f1d9ac0423e43 | [
"MIT"
] | null | null | null | #include "Scene1.h"
Scene1::Scene1(Window* win)
{
m_Window = win;
// compile shader programs
// -----------------------
shaderLibrary.Load("Model", "LitMaterial");
shaderLibrary.Load("PP", "post_processing");
shaderLibrary.Load("Skybox", "Skybox");
shaderLibrary.Load("Instancing", "Lit_Instancing");
shaderLib... | 29.48 | 90 | 0.692964 | wolfstrasz |
2a0717c9c82e248c549657317ace30d4b46db9bf | 12,488 | cpp | C++ | rm_gimbal_controller/src/rm_gimbal_controller.cpp | chenjunnn/rm_pioneer_control | f466c403c50e7e1232a41211c0673724f0d0ee4c | [
"MIT"
] | 1 | 2022-03-18T12:06:36.000Z | 2022-03-18T12:06:36.000Z | rm_gimbal_controller/src/rm_gimbal_controller.cpp | chenjunnn/rm_pioneer_control | f466c403c50e7e1232a41211c0673724f0d0ee4c | [
"MIT"
] | null | null | null | rm_gimbal_controller/src/rm_gimbal_controller.cpp | chenjunnn/rm_pioneer_control | f466c403c50e7e1232a41211c0673724f0d0ee4c | [
"MIT"
] | null | null | null | // Copyright (c) 2022 ChenJun
// Licensed under the MIT License.
#include "rm_gimbal_controller/rm_gimbal_controller.hpp"
#include <angles/angles.h>
#include <tf2/LinearMath/Matrix3x3.h>
#include <tf2/LinearMath/Quaternion.h>
#include <urdf/model.h>
#include <controller_interface/controller_interface.hpp>
#include <... | 38.306748 | 100 | 0.731182 | chenjunnn |
2a09354207a3aea46fdf06563e69c89c0a27fbec | 1,268 | cc | C++ | nimrod/math/pollard_rho.cc | kyomukyomupurin/nimrod | ac211d6775ed57cb8e3b5019cd9e424b10a15753 | [
"CC0-1.0"
] | null | null | null | nimrod/math/pollard_rho.cc | kyomukyomupurin/nimrod | ac211d6775ed57cb8e3b5019cd9e424b10a15753 | [
"CC0-1.0"
] | 3 | 2021-10-02T01:01:01.000Z | 2022-01-10T11:49:17.000Z | nimrod/math/pollard_rho.cc | kyomukyomupurin/nimrod | ac211d6775ed57cb8e3b5019cd9e424b10a15753 | [
"CC0-1.0"
] | null | null | null | #include <algorithm>
#include "miller_rabin.cc"
// snippet-begin
namespace pollard_rho {
int binary_gcd(int x, int y) {
if (x == 0) return y;
if (y == 0) return x;
int s = __builtin_ctz(x | y);
x >>= __builtin_ctz(x);
do {
y >>= __builtin_ctz(y);
if (x > y) std::swap(x, y);
y -= x;
} while (y)... | 22.642857 | 48 | 0.489748 | kyomukyomupurin |
2a0ff744a4411a197fef74a2be88e59b35dc540c | 3,346 | cpp | C++ | StudentsList/Source.cpp | RedGhost2014/Projects | f87c10ef280dd9412a63907155b4eb3edffcf327 | [
"Apache-2.0"
] | null | null | null | StudentsList/Source.cpp | RedGhost2014/Projects | f87c10ef280dd9412a63907155b4eb3edffcf327 | [
"Apache-2.0"
] | null | null | null | StudentsList/Source.cpp | RedGhost2014/Projects | f87c10ef280dd9412a63907155b4eb3edffcf327 | [
"Apache-2.0"
] | null | null | null | #include <cstdlib>
#include <cstdio>
#include <iostream>
#include <Windows.h>
#include <conio.h>
#include "StudentsList.hpp"
#include "Header.hpp"
using namespace std;
List* mainList = 0;
int main()
{
srand((unsigned int)time(0));
char* str = new char[1];
str[0] = '.';
while (str[0] != '0')
{
delete[] str;
... | 17.610526 | 69 | 0.550209 | RedGhost2014 |
2a1504c92cf04c43565910a4b4be6ca87a9d682c | 3,607 | hpp | C++ | Zombie2D/GameCode/Logics.hpp | TimPhoeniX/SGE_ZombieGame | 18e7bf659cf42aa8f2279d2d5207dd981eeca0ee | [
"MIT"
] | null | null | null | Zombie2D/GameCode/Logics.hpp | TimPhoeniX/SGE_ZombieGame | 18e7bf659cf42aa8f2279d2d5207dd981eeca0ee | [
"MIT"
] | null | null | null | Zombie2D/GameCode/Logics.hpp | TimPhoeniX/SGE_ZombieGame | 18e7bf659cf42aa8f2279d2d5207dd981eeca0ee | [
"MIT"
] | null | null | null | #ifndef ZOMBIEGAME_LOGICS
#define ZOMBIEGAME_LOGICS
#include <Logic/sge_logic.hpp>
#include <IO/Key/sge_key.hpp>
#include <Object/Camera2d/sge_camera2d.hpp>
#include <IO/Mouse/sge_mouse.hpp>
#include <vector>
#include "MovingObject.hpp"
namespace SGE
{
class WorldElement;
}
class MovingObject;
class Player;
class W... | 22.128834 | 182 | 0.727752 | TimPhoeniX |
2a1505077967f40269a120912dc3f52b38e847f3 | 2,614 | cpp | C++ | thirdparty/cpp/frc/ctrlsys/SumNode.cpp | Team3512/Robot-2017 | 1e5f3c1dcd78464d0c967aa17ca0e479775f7ed3 | [
"BSD-3-Clause"
] | null | null | null | thirdparty/cpp/frc/ctrlsys/SumNode.cpp | Team3512/Robot-2017 | 1e5f3c1dcd78464d0c967aa17ca0e479775f7ed3 | [
"BSD-3-Clause"
] | null | null | null | thirdparty/cpp/frc/ctrlsys/SumNode.cpp | Team3512/Robot-2017 | 1e5f3c1dcd78464d0c967aa17ca0e479775f7ed3 | [
"BSD-3-Clause"
] | 2 | 2018-04-07T23:39:43.000Z | 2018-05-08T00:43:07.000Z | // Copyright (c) 2017-2019 FRC Team 3512. All Rights Reserved.
#include "frc/ctrlsys/SumNode.h"
#include <cmath>
using namespace frc;
/**
* Appends input and associated sign to array.
*
* @param input the INode object to add to the array for round robin
* @param positive if true, adds input; otherwise, subtract... | 26.948454 | 78 | 0.669472 | Team3512 |
2a185c4c02f8948a899c11207c3032aeba720e02 | 3,883 | cc | C++ | app/g4hpc/src/MagneticField.cc | celeritas-project/acceleritas | 50c37807fed84855fc32ee0a84f13007cd62c245 | [
"Apache-2.0",
"MIT"
] | null | null | null | app/g4hpc/src/MagneticField.cc | celeritas-project/acceleritas | 50c37807fed84855fc32ee0a84f13007cd62c245 | [
"Apache-2.0",
"MIT"
] | null | null | null | app/g4hpc/src/MagneticField.cc | celeritas-project/acceleritas | 50c37807fed84855fc32ee0a84f13007cd62c245 | [
"Apache-2.0",
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 29.641221 | 79 | 0.527685 | celeritas-project |
2a1879ebe8adff3e482404e44c1b99ab28211d48 | 2,428 | cpp | C++ | BaldLionEngine/src/BaldLion/Rendering/Shapes/CubeMesh.cpp | Efore/BaldLionEngine | ebd915805533a767b67690ca8749d1454a6fd379 | [
"Apache-2.0"
] | null | null | null | BaldLionEngine/src/BaldLion/Rendering/Shapes/CubeMesh.cpp | Efore/BaldLionEngine | ebd915805533a767b67690ca8749d1454a6fd379 | [
"Apache-2.0"
] | null | null | null | BaldLionEngine/src/BaldLion/Rendering/Shapes/CubeMesh.cpp | Efore/BaldLionEngine | ebd915805533a767b67690ca8749d1454a6fd379 | [
"Apache-2.0"
] | null | null | null | #include "blpch.h"
#include "CubeMesh.h"
#include "BaldLion/Utils/MathUtils.h"
namespace BaldLion
{
namespace Rendering
{
CubeMesh::CubeMesh(Material* material, float size) :
Mesh(material), m_size(size)
{
}
void CubeMesh::SetUpCube()
{
const float halfSize = m_size * 0.5f;
const ui32 numFac... | 24.77551 | 101 | 0.643328 | Efore |
2a199fe5f610e9febadf4be63011faf0f344e310 | 3,331 | cpp | C++ | src/use_std/src/AlgorithmsLibrary/Non-modifying_sequence_operations/mismatch.cpp | unihykes/monk | d5ad969fea75912d4aad913adf945f78ec4df60e | [
"Apache-2.0"
] | 2 | 2018-03-27T02:46:03.000Z | 2018-05-24T02:49:17.000Z | src/use_std/src/AlgorithmsLibrary/Non-modifying_sequence_operations/mismatch.cpp | six-th/monk | d5ad969fea75912d4aad913adf945f78ec4df60e | [
"Apache-2.0"
] | null | null | null | src/use_std/src/AlgorithmsLibrary/Non-modifying_sequence_operations/mismatch.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.apach... | 27.528926 | 124 | 0.480937 | unihykes |
2a1ac459b3e3f2a06045783c9e9ab75525acd1df | 2,058 | cpp | C++ | 190.Reverse.Bits.cpp | limingjie/LeetCode | 0a303ed71276fb1f94988a4b360f49a6a94a325a | [
"Unlicense"
] | null | null | null | 190.Reverse.Bits.cpp | limingjie/LeetCode | 0a303ed71276fb1f94988a4b360f49a6a94a325a | [
"Unlicense"
] | null | null | null | 190.Reverse.Bits.cpp | limingjie/LeetCode | 0a303ed71276fb1f94988a4b360f49a6a94a325a | [
"Unlicense"
] | null | null | null | // dict, byte by byte.
class Solution {
private:
int dict[256] =
{0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112,
240, 8, 136, 72, 200, 40, 168, 104, 232, 24, 152, 88, 216, 56, 184,
120, 248, 4, 132, 68, 196, 36, 164, 100, 228, 20, 148, 84, 212, 52,
180, 116, 24... | 37.418182 | 80 | 0.476676 | limingjie |
2a1ce3a2ff26b856196e0efcd28afecd3338b3f3 | 2,027 | cpp | C++ | fallen/Source/burnsetup.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 188 | 2017-05-20T03:26:33.000Z | 2022-03-10T16:58:39.000Z | fallen/Source/burnsetup.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 7 | 2017-05-28T14:28:13.000Z | 2022-01-09T01:47:38.000Z | fallen/GEdit/Source/burnsetup.cpp | inco1/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 43 | 2017-05-20T07:31:32.000Z | 2022-03-09T18:39:35.000Z | // BurnSetup.cpp
// Matthew Rosenfeld 23th November 1998.
#include <MFStdLib.h>
#include <windows.h>
#include <windowsx.h>
#include <ddlib.h>
#include <commctrl.h>
#include "resource.h"
#include "EdStrings.h"
#include "GEdit.h"
#include "ticklist.h"
//---------------------------------------------------------------
... | 21.114583 | 75 | 0.519487 | jordandavidson |
2a1fde35dadd36e47d62fc9a1dc6efc6d9bc23f5 | 776 | cpp | C++ | array_division.cpp | elsantodel90/cses-problemset | 15550a4533ee0476e763c670134f768c85a87a4f | [
"Unlicense"
] | null | null | null | array_division.cpp | elsantodel90/cses-problemset | 15550a4533ee0476e763c670134f768c85a87a4f | [
"Unlicense"
] | null | null | null | array_division.cpp | elsantodel90/cses-problemset | 15550a4533ee0476e763c670134f768c85a87a4f | [
"Unlicense"
] | 1 | 2021-05-14T15:28:31.000Z | 2021-05-14T15:28:31.000Z | #include <iostream>
using namespace std;
#define forn(i,n) for(int i=0;i<int(n);i++)
typedef long long tint;
const int MAXN = 1000000;
int v[MAXN];
int n,k;
bool ok(tint bound)
{
tint current = 0;
tint total = 1;
forn(i,n)
{
current += v[i];
if (current > bound)
{
... | 14.923077 | 43 | 0.449742 | elsantodel90 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.