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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47de0bae8799ee97f013e5856084fc22d7601d31 | 2,113 | cc | C++ | src/crypt/aes_serpent_twofish_algorithm.cc | slwilliams/stegasis | 8f7c466231588d51f0af01b46092218324f5e6b1 | [
"MIT",
"Unlicense"
] | 2 | 2015-12-18T01:14:53.000Z | 2016-01-26T15:33:03.000Z | src/crypt/aes_serpent_twofish_algorithm.cc | slwilliams/stegasis | 8f7c466231588d51f0af01b46092218324f5e6b1 | [
"MIT",
"Unlicense"
] | null | null | null | src/crypt/aes_serpent_twofish_algorithm.cc | slwilliams/stegasis | 8f7c466231588d51f0af01b46092218324f5e6b1 | [
"MIT",
"Unlicense"
] | null | null | null | #include <stdio.h>
#include <string>
#include <crypto/aes.h>
#include <crypto/serpent.h>
#include <crypto/twofish.h>
#include <crypto/modes.h>
#include "crypt/cryptographic_algorithm.h"
using namespace std;
class AESSerpentTwofishAlgorithm : public CryptographicAlgorithm {
public:
AESSerpentTwofishAlgorithm(s... | 48.022727 | 109 | 0.71557 | slwilliams |
47df1e0b20cc1229167be32aa783555c8fbb9aea | 8,583 | cpp | C++ | grim-code/Engine/main.cpp | ariabonczek/GrimoireEngine | 94952b98232b4baac8caa1189dac7c38672c6ae0 | [
"MIT"
] | null | null | null | grim-code/Engine/main.cpp | ariabonczek/GrimoireEngine | 94952b98232b4baac8caa1189dac7c38672c6ae0 | [
"MIT"
] | null | null | null | grim-code/Engine/main.cpp | ariabonczek/GrimoireEngine | 94952b98232b4baac8caa1189dac7c38672c6ae0 | [
"MIT"
] | null | null | null | #include "Precompiled.h"
#include <string.h>
#include <stdio.h>
#include <Engine/CommandContext.h>
#include <Engine/EngineGlobals.h>
#include <Engine/Filesystem.h>
#include <Engine/Gfx.h>
#include <Engine/GfxDebug.h>
#include <Engine/GrimInput.h>
#include <Engine/Memory.h>
#include <Engine/View.h>
#include <Shared/C... | 27.866883 | 197 | 0.685774 | ariabonczek |
47e52b32af0a9f7d0b4688374f9ba705d857f6e6 | 726 | cpp | C++ | cpp/1001-10000/1751-1760/Minimum Limit of Balls in a Bag.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/1001-10000/1751-1760/Minimum Limit of Balls in a Bag.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/1001-10000/1751-1760/Minimum Limit of Balls in a Bag.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
bool check(const vector<int>& nums, int maxOperations, int penalty) {
int ops = 0;
for (int num : nums) {
ops += (num-1) / penalty;
}
return ops <= maxOperations;
}
public:
int minimumSize(vector<int>& nums, int maxOperations) {
... | 24.2 | 73 | 0.440771 | KaiyuWei |
47eb3359d208291d1f453ee04de4d6def4ef9554 | 1,537 | cc | C++ | src/HesaiLidar_General_SDK/test/test.cc | sustech-isus/HesaiLidar_General_ROS | f604478e3bd316a20eb886850bef16a9903a8bc6 | [
"Apache-2.0"
] | null | null | null | src/HesaiLidar_General_SDK/test/test.cc | sustech-isus/HesaiLidar_General_ROS | f604478e3bd316a20eb886850bef16a9903a8bc6 | [
"Apache-2.0"
] | null | null | null | src/HesaiLidar_General_SDK/test/test.cc | sustech-isus/HesaiLidar_General_ROS | f604478e3bd316a20eb886850bef16a9903a8bc6 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright 2019 The Hesai Technology Authors. 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 L... | 34.155556 | 127 | 0.641509 | sustech-isus |
47eb39ecd4a3a462dc39981462c3466ec76d5a18 | 3,106 | hpp | C++ | libvfs/include/vfs_bundle.hpp | mbenniston/vfs | 24aa9fa15ff8aab9a4235dd16a7a889aa1868b7c | [
"MIT"
] | 1 | 2021-09-18T06:59:29.000Z | 2021-09-18T06:59:29.000Z | libvfs/include/vfs_bundle.hpp | mbenniston/vfs | 24aa9fa15ff8aab9a4235dd16a7a889aa1868b7c | [
"MIT"
] | null | null | null | libvfs/include/vfs_bundle.hpp | mbenniston/vfs | 24aa9fa15ff8aab9a4235dd16a7a889aa1868b7c | [
"MIT"
] | null | null | null | /**
* @file vfs_bundle.hpp
* @brief Contains the manager class responsible for handling the mounting and access of bundles
*/
#pragma once
#include "vfs_bundle_def.hpp"
#include "vfs_file.hpp"
namespace vfs
{
// responsible for handling the mounting and access of bundles
/**
* @brief Handles mounting ... | 36.116279 | 123 | 0.63812 | mbenniston |
47ee55cbc8b51b3ed413ad61ecf68166bae30b5b | 2,035 | cpp | C++ | aff3ct-server/src/aff3ct-errc.cpp | simonrus/aff3ct-bfe | c84ddc11ec75140632471e13f3f55dae3ce7950e | [
"MIT"
] | null | null | null | aff3ct-server/src/aff3ct-errc.cpp | simonrus/aff3ct-bfe | c84ddc11ec75140632471e13f3f55dae3ce7950e | [
"MIT"
] | null | null | null | aff3ct-server/src/aff3ct-errc.cpp | simonrus/aff3ct-bfe | c84ddc11ec75140632471e13f3f55dae3ce7950e | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2017 aff3ct
* Copyright (c) 2019 Sergei Semenov
*
* 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 limitatio... | 31.307692 | 81 | 0.728747 | simonrus |
47f56a64d5b4b5c3c124a4300f8e82ef90a9d947 | 1,854 | cpp | C++ | src/CommonControls/GenericStaticBitmap/GenericStaticBitmap.cpp | ericfont/Examples_wxWidgets | 5cd123eff9a5f9971413ec2f8effc15b76622987 | [
"MIT"
] | 70 | 2019-11-18T15:04:23.000Z | 2022-03-28T22:42:16.000Z | src/CommonControls/GenericStaticBitmap/GenericStaticBitmap.cpp | gammasoft71/Examples.wxWidgets | c710f31c29d502fee699f044014a5eae4ce6ef22 | [
"MIT"
] | 10 | 2020-11-18T02:37:11.000Z | 2021-09-16T17:05:29.000Z | src/CommonControls/GenericStaticBitmap/GenericStaticBitmap.cpp | gammasoft71/Examples.wxWidgets | c710f31c29d502fee699f044014a5eae4ce6ef22 | [
"MIT"
] | 10 | 2021-05-14T11:41:42.000Z | 2022-03-20T00:38:17.000Z | #include <wx/app.h>
#include <wx/combobox.h>
#include <wx/frame.h>
#include <wx/generic/statbmpg.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include "Logo.xpm"
namespace Examples {
class Frame : public wxFrame {
public:
Frame() : wxFrame(nullptr, wxID_ANY, "GenericStaticBitmap example") {
SetClientSi... | 38.625 | 154 | 0.707659 | ericfont |
47f5777fbf743a2b1f16159e5715786f538c8f52 | 1,579 | cc | C++ | tests/decode_matrix_den_delay_individualg_dense/test.cc | 9inpachi/genn-opencl | 33231225a72611c7b629ef1d13f325f35d4ae2f7 | [
"MIT"
] | 1 | 2020-06-28T19:48:48.000Z | 2020-06-28T19:48:48.000Z | tests/decode_matrix_den_delay_individualg_dense/test.cc | 9inpachi/genn-opencl | 33231225a72611c7b629ef1d13f325f35d4ae2f7 | [
"MIT"
] | 1 | 2020-02-10T15:26:29.000Z | 2020-02-10T15:26:29.000Z | tests/decode_matrix_den_delay_individualg_dense/test.cc | 9inpachi/genn-opencl | 33231225a72611c7b629ef1d13f325f35d4ae2f7 | [
"MIT"
] | 1 | 2020-02-10T10:47:12.000Z | 2020-02-10T10:47:12.000Z | //--------------------------------------------------------------------------
/*! \file decode_matrix_den_delay_individualg_dense/test.cc
\brief Main test code that is part of the feature testing
suite of minimal models with known analytic outcomes that are used for continuous integration testing.
*/
//----------------... | 35.088889 | 102 | 0.498417 | 9inpachi |
47f5d0768a7860af7e6d61effb807078e526a19e | 1,057 | cpp | C++ | src/GFX_Base/GFX_BaseController.cpp | ldornbusch/All2D_Base | c790293b3030de97f65d62f6617222c42d18fa6a | [
"Apache-2.0"
] | null | null | null | src/GFX_Base/GFX_BaseController.cpp | ldornbusch/All2D_Base | c790293b3030de97f65d62f6617222c42d18fa6a | [
"Apache-2.0"
] | null | null | null | src/GFX_Base/GFX_BaseController.cpp | ldornbusch/All2D_Base | c790293b3030de97f65d62f6617222c42d18fa6a | [
"Apache-2.0"
] | null | null | null | // GFX_BaseController.cpp: Implementierung der Klasse GFX_BaseController.
//
//////////////////////////////////////////////////////////////////////
#include "GFX_BaseController.hpp"
#include "../All2DEngine/All2D/All2D_System.h"
//////////////////////////////////////////////////////////////////////
// Konstruktion/Dest... | 36.448276 | 82 | 0.573321 | ldornbusch |
47fc5c9b28e5ff4511ebb4a9dd2f2d2eabf1eee1 | 151 | cpp | C++ | somaate10.cpp | gilsonaureliano/Introducao_a_programacao_estrutura_em_c | d186d72de6fd6002cad511d6d7d8545d61090a9f | [
"MIT"
] | null | null | null | somaate10.cpp | gilsonaureliano/Introducao_a_programacao_estrutura_em_c | d186d72de6fd6002cad511d6d7d8545d61090a9f | [
"MIT"
] | null | null | null | somaate10.cpp | gilsonaureliano/Introducao_a_programacao_estrutura_em_c | d186d72de6fd6002cad511d6d7d8545d61090a9f | [
"MIT"
] | null | null | null | #include <stdio.h>
int main(){
int soma = 0;
for(int cont=1;cont<=10;cont=cont+1){
soma +=cont;
printf(" %d", cont);
}
printf(" = %d\n", soma);
}
| 12.583333 | 37 | 0.562914 | gilsonaureliano |
47fe1c112dae37ec3e655236bbda825d5964b8ff | 7,356 | cpp | C++ | Insipid3D/EntityPhysicsProp.cpp | thehugh100/Insipid3D | 429a9e6022c1a0bca842209310f949647f4c441e | [
"MIT"
] | 90 | 2017-04-10T20:08:53.000Z | 2022-03-28T19:16:04.000Z | Insipid3D/EntityPhysicsProp.cpp | CristianRodrigoGuarachiIbanez/Insipid3D | 429a9e6022c1a0bca842209310f949647f4c441e | [
"MIT"
] | 2 | 2019-11-29T04:00:26.000Z | 2021-05-29T10:39:24.000Z | Insipid3D/EntityPhysicsProp.cpp | CristianRodrigoGuarachiIbanez/Insipid3D | 429a9e6022c1a0bca842209310f949647f4c441e | [
"MIT"
] | 15 | 2017-10-02T03:15:03.000Z | 2022-03-28T20:46:34.000Z | #include "EntityPhysicsProp.h"
#include "engine.h"
#include "EntityManager.h"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <algorithm>
#include "Raytrace.h"
#include "BulletCol... | 30.02449 | 155 | 0.733279 | thehugh100 |
9a069fd3ed57fe5b68398f8b7acc176c222ab318 | 988 | cpp | C++ | Input/MouseKeyboardInput.cpp | cryptobuks1/Stratum | 3ecf56c0ce9010e6e95248c0d63edc41eeb13910 | [
"MIT"
] | 2 | 2019-10-01T22:55:47.000Z | 2019-10-04T20:25:29.000Z | Input/MouseKeyboardInput.cpp | cryptobuks1/Stratum | 3ecf56c0ce9010e6e95248c0d63edc41eeb13910 | [
"MIT"
] | null | null | null | Input/MouseKeyboardInput.cpp | cryptobuks1/Stratum | 3ecf56c0ce9010e6e95248c0d63edc41eeb13910 | [
"MIT"
] | null | null | null | #include <Input/MouseKeyboardInput.hpp>
#include <Core/Window.hpp>
MouseKeyboardInput::MouseKeyboardInput(){
mMousePointer.mDevice = this;
mMousePointer.mAxis.emplace(0, 0.f);
mMousePointer.mAxis.emplace(1, 0.f);
mMousePointer.mAxis.emplace(2, 0.f);
mLockMouse = false;
mCurrent.mCursorPos = mLast.mCursorPos = 0;... | 26 | 55 | 0.744939 | cryptobuks1 |
9a090e2466b778645520f27a7e7642900a8148de | 7,016 | cpp | C++ | src/server/Network/ServerBase.cpp | NoUITeam/TinyAndPretty-plus | 37f5b7367d7f41d1142ebc357223f0cccbb66d27 | [
"Apache-2.0"
] | null | null | null | src/server/Network/ServerBase.cpp | NoUITeam/TinyAndPretty-plus | 37f5b7367d7f41d1142ebc357223f0cccbb66d27 | [
"Apache-2.0"
] | null | null | null | src/server/Network/ServerBase.cpp | NoUITeam/TinyAndPretty-plus | 37f5b7367d7f41d1142ebc357223f0cccbb66d27 | [
"Apache-2.0"
] | null | null | null | #include <connect/Network/ServerBase.h>
#include <sys/sendfile.h>
#include <netinet/tcp.h>
#include <sys/signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
Socket::Socket()
{
// Initialize socket port
sockfd = socket(PROTO_FAMILT, SOCK_TYPE, 0);
NETERROR(sockfd < 0, "init ... | 23.783051 | 106 | 0.624002 | NoUITeam |
9a0a78315a407228e6eb7321c80ece4359fcd841 | 558 | cpp | C++ | src/GameObjects/HealthPickup.cpp | marcogillies/ShooterInheritanceExample | 7ee315a98e8e96d3086a354f585fa205c0608e9e | [
"MIT"
] | null | null | null | src/GameObjects/HealthPickup.cpp | marcogillies/ShooterInheritanceExample | 7ee315a98e8e96d3086a354f585fa205c0608e9e | [
"MIT"
] | null | null | null | src/GameObjects/HealthPickup.cpp | marcogillies/ShooterInheritanceExample | 7ee315a98e8e96d3086a354f585fa205c0608e9e | [
"MIT"
] | null | null | null | //
// HealthPickup.cpp
// ShooterInhertiance
//
// Created by Marco Gillies on 05/03/2016.
//
//
#include "HealthPickup.hpp"
#include "Player.hpp"
HealthPickup::HealthPickup(float x, float y, float _health)
:Pickup(x,y), health(_health)
{
}
HealthPickup::~HealthPickup()
{
}
// adds health to the pl... | 15.5 | 59 | 0.655914 | marcogillies |
9a14a0435af65ba7d19f75c3073e987c7c1b28d3 | 1,753 | cpp | C++ | Mathematics/NumberTheory/extended_euclidean_algorithm.cpp | Electron1997/Algorithms | 6bdbb518833db36f6ba38966ab0a063edec040ab | [
"MIT"
] | 1 | 2021-06-11T15:28:09.000Z | 2021-06-11T15:28:09.000Z | Mathematics/NumberTheory/extended_euclidean_algorithm.cpp | Electron1997/Algorithms | 6bdbb518833db36f6ba38966ab0a063edec040ab | [
"MIT"
] | null | null | null | Mathematics/NumberTheory/extended_euclidean_algorithm.cpp | Electron1997/Algorithms | 6bdbb518833db36f6ba38966ab0a063edec040ab | [
"MIT"
] | null | null | null | // Solution to https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=364
#include <bits/stdc++.h>
#define f first
#define s second
#define loop(i, n) for (int i = 0; i < n; ++i)
#define read(a, n) loop($, n) cin >> a[$];
#define show(a, n) \
loop($, n) cout <... | 25.042857 | 110 | 0.527667 | Electron1997 |
9a15df3bacffefc4acdc57a85b516dfd4a90b427 | 420 | cpp | C++ | src/server/implementation/generated-cpp/SerializerExpanderSampleplugin_js_mv.cpp | mvolosin/kurento-module-sampleplugin-js-MV | 5caf3931e1c0d11676ec580e3db374185444aff7 | [
"MIT"
] | null | null | null | src/server/implementation/generated-cpp/SerializerExpanderSampleplugin_js_mv.cpp | mvolosin/kurento-module-sampleplugin-js-MV | 5caf3931e1c0d11676ec580e3db374185444aff7 | [
"MIT"
] | null | null | null | src/server/implementation/generated-cpp/SerializerExpanderSampleplugin_js_mv.cpp | mvolosin/kurento-module-sampleplugin-js-MV | 5caf3931e1c0d11676ec580e3db374185444aff7 | [
"MIT"
] | null | null | null | /* Autogenerated with kurento-module-creator */
#include "SamplePluginFilter_js_mvImpl.hpp"
#include <jsonrpc/JsonSerializer.hpp>
namespace kurento
{
namespace module
{
namespace sampleplugin_js_mv
{
void dummySampleplugin_js_mv ()
{
{
JsonSerializer s (true);
std::shared_ptr<SamplePluginFilter_js_mv> obj... | 15.555556 | 53 | 0.721429 | mvolosin |
9a20f59053841f7be21d1abe46fe2bcd0e3ddeea | 791 | cpp | C++ | testingIMUthread.cpp | dungletran/research-vibrotactitle | bebf8fb97532b37c2c89ba63e3f30a3e46393ec6 | [
"MIT"
] | null | null | null | testingIMUthread.cpp | dungletran/research-vibrotactitle | bebf8fb97532b37c2c89ba63e3f30a3e46393ec6 | [
"MIT"
] | null | null | null | testingIMUthread.cpp | dungletran/research-vibrotactitle | bebf8fb97532b37c2c89ba63e3f30a3e46393ec6 | [
"MIT"
] | null | null | null | #include "testingIMUthread.h"
#include "USBConnector.h"
#include "QDebug" //test
#include "pthread.h" //test
testingIMUthread::testingIMUthread() : QThread()
{
}
void testingIMUthread::terminate()
{
chkTerminate = true;
}
void testingIMUthread::run()
{
chkTerminate = false;
//open US... | 18.395349 | 49 | 0.604298 | dungletran |
9a2396b5ed3f08c009f40fbb8a4875141fa6605f | 28,870 | cpp | C++ | cmdline.cpp | jiangyuhang17/memcached_slo_benchmark | 53f791e0dddfec167218f27df3361411f1b13ea4 | [
"BSD-3-Clause"
] | null | null | null | cmdline.cpp | jiangyuhang17/memcached_slo_benchmark | 53f791e0dddfec167218f27df3361411f1b13ea4 | [
"BSD-3-Clause"
] | null | null | null | cmdline.cpp | jiangyuhang17/memcached_slo_benchmark | 53f791e0dddfec167218f27df3361411f1b13ea4 | [
"BSD-3-Clause"
] | null | null | null | /*
File autogenerated by gengetopt version 2.22.6
generated with the following command:
gengetopt -c cpp --show-required --default-optional -l
The developers of gengetopt consider the fixed text that goes in all
gengetopt output files to be in the public domain:
we make no copyright claims on it.
*/
/* If... | 27.813102 | 231 | 0.61098 | jiangyuhang17 |
9a30f6058ced0c8cf94fcf6103e98a2db1559815 | 1,469 | hpp | C++ | src/Helper/Buffer.hpp | Maetveis/GameTest3D | cfb6fa27ebc656c0d8cf41d18049966191b6cf6e | [
"MIT"
] | null | null | null | src/Helper/Buffer.hpp | Maetveis/GameTest3D | cfb6fa27ebc656c0d8cf41d18049966191b6cf6e | [
"MIT"
] | null | null | null | src/Helper/Buffer.hpp | Maetveis/GameTest3D | cfb6fa27ebc656c0d8cf41d18049966191b6cf6e | [
"MIT"
] | null | null | null | #ifndef BUFFER_HPP
#define BUFFER_HPP
#include <GL/glew.h>
#include <vector>
#include "../Log/Logger.h"
namespace GL {
class Buffer
{
private:
GLuint id;
public:
Buffer()
{
glCreateBuffers(1, &id);
Logger::Debug << "Created glBuffer with id: " << id << '\n';
}
GLint GetId() const
{
return id;
}
void... | 18.135802 | 98 | 0.686862 | Maetveis |
9a3736f3a128d5dd2a40524552c08fc6040c1560 | 3,028 | ipp | C++ | implement/oglplus/enums/framebuffer_parameter_def.ipp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 364 | 2015-01-01T09:38:23.000Z | 2022-03-22T05:32:00.000Z | implement/oglplus/enums/framebuffer_parameter_def.ipp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 55 | 2015-01-06T16:42:55.000Z | 2020-07-09T04:21:41.000Z | implement/oglplus/enums/framebuffer_parameter_def.ipp | matus-chochlik/oglplus | 76dd964e590967ff13ddff8945e9dcf355e0c952 | [
"BSL-1.0"
] | 57 | 2015-01-07T18:35:49.000Z | 2022-03-22T05:32:04.000Z | // File implement/oglplus/enums/framebuffer_parameter_def.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/framebuffer_parameter.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
// Distributed under the Boo... | 30.28 | 96 | 0.824967 | matus-chochlik |
9a38592eaca22b74cc09627b683d4a2ae5864ee6 | 1,719 | hpp | C++ | experimental/Pomdog.Experimental/UI/DrawingContext.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/UI/DrawingContext.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/UI/DrawingContext.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog.Experimental/Rendering/Renderer.hpp"
#include "Pomdog.Experimental/UI/FontSize.hpp"
#include "Pomdog.Experimental/UI/FontWeight.hpp"
#include "Pomdog/Experimental/Graphics/SpriteBatch.hpp"
#include "Pomdog/Experiment... | 25.656716 | 82 | 0.752182 | ValtoForks |
9a38decbb3987205e3495774a55ead1fd3db5d0d | 13,181 | cpp | C++ | Engine/src/resource/MaterialSerializer.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | 2 | 2015-04-21T05:36:12.000Z | 2017-04-16T19:31:26.000Z | Engine/src/resource/MaterialSerializer.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | null | null | null | Engine/src/resource/MaterialSerializer.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | null | null | null | /*
-----------------------------------------------------------------------------
KG game engine (http://katoun.github.com/kg_engine) is made available under the MIT License.
Copyright (c) 2006-2013 Catalin Alexandru Nastase
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software ... | 34.325521 | 183 | 0.731128 | katoun |
9a39084be0c47af8c8c21a2185d152fd88854493 | 866 | cpp | C++ | Part1/Chapter5/P2615.cpp | flics04/SSQCbook-Base-Luogu | c7ddbcfec58d6cc8f6396309daa8b511b6c8673d | [
"MIT"
] | null | null | null | Part1/Chapter5/P2615.cpp | flics04/SSQCbook-Base-Luogu | c7ddbcfec58d6cc8f6396309daa8b511b6c8673d | [
"MIT"
] | null | null | null | Part1/Chapter5/P2615.cpp | flics04/SSQCbook-Base-Luogu | c7ddbcfec58d6cc8f6396309daa8b511b6c8673d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int n, g[40][40], x, y;
int main() {
cin >> n;
g[1][n / 2 + 1] = 1;
x = 1;
y = n / 2 + 1;
for (int i = 2; i <= n * n; i++) {
if (x == 1 && y != n) // 第一行但不是最后一列
g[n][y + 1] = i, x = n, y++;
else if (y == n && x != 1) // 最后一列但不... | 25.470588 | 60 | 0.300231 | flics04 |
9a3bf7d911eb7c53567fe1dfb889748e70338e66 | 401 | hpp | C++ | src/CL_SetupNetwork_stub.hpp | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | 1 | 2020-10-24T14:48:04.000Z | 2020-10-24T14:48:04.000Z | src/CL_SetupNetwork_stub.hpp | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | null | null | null | src/CL_SetupNetwork_stub.hpp | fccm/ocaml-clanlib | 1929f1c11d4cc9fc19e7da22826238b4cce7a07d | [
"Zlib",
"OLDAP-2.2.1"
] | null | null | null | #ifndef _CL_SETUPNETWORK_INC
#define _CL_SETUPNETWORK_INC
#include <ClanLib/Network/setupnetwork.h>
#ifdef CL_WRAP_POINTERS
#define Val_CL_SetupNetwork(v) (Val_ptr<CL_SetupNetwork>(v))
#define CL_SetupNetwork_val(v) (Ptr_val<CL_SetupNetwork>(v))
#else
#define Val_CL_SetupNetwork(sn) ((value)(sn))
#define CL_SetupN... | 21.105263 | 60 | 0.790524 | fccm |
9a3cf6c38f3658bd62dcdf33c85b250fa52dbed9 | 2,789 | hpp | C++ | aifm/DataFrame/AIFM/include/simple_time.hpp | asarthas/AIFM | aaf7113cb3ba58381174e8b86bdd7a0f1fd1acc4 | [
"MIT"
] | 49 | 2020-11-01T00:14:40.000Z | 2022-03-26T07:28:12.000Z | aifm/DataFrame/AIFM/include/simple_time.hpp | asarthas/AIFM | aaf7113cb3ba58381174e8b86bdd7a0f1fd1acc4 | [
"MIT"
] | 12 | 2020-12-15T08:30:19.000Z | 2022-03-13T03:54:24.000Z | aifm/DataFrame/AIFM/include/simple_time.hpp | asarthas/AIFM | aaf7113cb3ba58381174e8b86bdd7a0f1fd1acc4 | [
"MIT"
] | 19 | 2020-12-24T22:32:22.000Z | 2022-03-30T01:33:43.000Z | #pragma once
#include <cstdint>
#include <iostream>
struct SimpleTime {
short year_;
char month_;
char day_;
char hour_;
char min_;
char second_;
SimpleTime() {}
SimpleTime(short year, char month, char day, char hour, char min, char second)
: year_(year), month_(month), day_(... | 28.459184 | 100 | 0.538544 | asarthas |
9a3f2c83774d6a46e9f1db232163c1aae187c6e2 | 561 | hpp | C++ | include/intercom-party/LocationManager-inl.hpp | Wicker25/intercom-party | 5b1610aa79f6242be0cd846533ba97bf6a97f304 | [
"MIT"
] | 1 | 2017-04-03T19:52:30.000Z | 2017-04-03T19:52:30.000Z | include/intercom-party/LocationManager-inl.hpp | Wicker25/intercom-party | 5b1610aa79f6242be0cd846533ba97bf6a97f304 | [
"MIT"
] | null | null | null | include/intercom-party/LocationManager-inl.hpp | Wicker25/intercom-party | 5b1610aa79f6242be0cd846533ba97bf6a97f304 | [
"MIT"
] | null | null | null | /*!
* Title ---- intercom-party/LocationManager-inl.hpp
* Author --- Giacomo Trudu aka `Wicker25` - wicker25[at]gmail[dot]com
*
* Copyright (C) 2017 by Giacomo Trudu.
* All rights reserved.
*/
#ifndef __INTERCOM_PARTY_LOCATION_MANAGER_INL_HPP__
#define __INTERCOM_PARTY_LOCATION_MANAGER_INL_HPP__
namespace inter... | 25.5 | 70 | 0.750446 | Wicker25 |
9a441c59c4b62767eb64a9f1cb26cdf347ed8b9d | 418 | cpp | C++ | Exercicio 60.cpp | dariooliveirajr/programming_logic | e1a61edb39f82b59da885b0469f747d3e27b02c6 | [
"MIT"
] | null | null | null | Exercicio 60.cpp | dariooliveirajr/programming_logic | e1a61edb39f82b59da885b0469f747d3e27b02c6 | [
"MIT"
] | null | null | null | Exercicio 60.cpp | dariooliveirajr/programming_logic | e1a61edb39f82b59da885b0469f747d3e27b02c6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int A[10],cont,C;
int B[10];
int vlr(int A[10]);
int main(){
for(cont=0;cont<=9;cont++){
cout<<"Digite um valor "<<" ("<<cont<<")"<<": ";
cin>>A[cont];
}
vlr(A);
for(cont=0;cont<=9;cont++){
cout<<"Quadrado de A["<<cont<<"]: "<<B[cont]<<endl;
}
system("pause");
r... | 12.294118 | 52 | 0.533493 | dariooliveirajr |
9a45a0004768e22a19305ff372696fdc941d561f | 1,544 | hpp | C++ | C64/src/d64view/source/mainframe.hpp | vividos/OldStuff | dbfcce086d1101b576d99d25ef051efbd8dd117c | [
"BSD-2-Clause"
] | 1 | 2015-03-26T02:35:13.000Z | 2015-03-26T02:35:13.000Z | C64/src/d64view/source/mainframe.hpp | vividos/OldStuff | dbfcce086d1101b576d99d25ef051efbd8dd117c | [
"BSD-2-Clause"
] | null | null | null | C64/src/d64view/source/mainframe.hpp | vividos/OldStuff | dbfcce086d1101b576d99d25ef051efbd8dd117c | [
"BSD-2-Clause"
] | null | null | null | /*
d64view - a d64 disk image viewer
Copyright (c) 2002,2003,2016 Michael Fink
*/
/*! \file mainframe.hpp
\brief main frame for d64view application
MDI (multiple document interface) frame for all view subframes that show
the contents of d64 images.
*/
// import guard
#ifndef d64view_mainframe_hpp_
#d... | 17.953488 | 82 | 0.703368 | vividos |
9a465b7bd534ce87c440a1b6818435df8b0b4fd5 | 2,929 | cpp | C++ | code/Thistle/source/thistle_buffer.cpp | pospeselr/SiCKL | e6b3b022df168cb7b853e233967407ff28dd8d1b | [
"MIT"
] | null | null | null | code/Thistle/source/thistle_buffer.cpp | pospeselr/SiCKL | e6b3b022df168cb7b853e233967407ff28dd8d1b | [
"MIT"
] | null | null | null | code/Thistle/source/thistle_buffer.cpp | pospeselr/SiCKL | e6b3b022df168cb7b853e233967407ff28dd8d1b | [
"MIT"
] | null | null | null | #include "thistle.hpp"
#include "thistle_error.hpp"
#include "thistle_buffer.hpp"
using ruff::translate_exceptions;
RUFF_EXPORT size_t thistle_get_buffer_element_count(thistle_buffer_t* buffer, thistle_error_t** error)
{
return translate_exceptions(error, [&]()
{
RUFF_THROW_IF_NULL(buffer);
r... | 27.632075 | 166 | 0.700239 | pospeselr |
9a4e64044710ad8603f59ee4c42c820d3b754945 | 1,070 | hpp | C++ | Runtime/GuiSys/CFontRenderState.hpp | Jcw87/urde | fb9ea9092ad00facfe957ece282a86c194e9cbda | [
"MIT"
] | 267 | 2016-03-10T21:59:16.000Z | 2021-03-28T18:21:03.000Z | Runtime/GuiSys/CFontRenderState.hpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 129 | 2016-03-12T10:17:32.000Z | 2021-04-05T20:45:19.000Z | Runtime/GuiSys/CFontRenderState.hpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 31 | 2016-03-20T00:20:11.000Z | 2021-03-10T21:14:11.000Z | #pragma once
#include <list>
#include <vector>
#include "Runtime/GuiSys/CDrawStringOptions.hpp"
#include "Runtime/GuiSys/CGuiTextSupport.hpp"
#include "Runtime/GuiSys/CSaveableState.hpp"
namespace metaforce {
class CBlockInstruction;
class CLineInstruction;
class CFontRenderState : public CSaveableState {
friend ... | 25.47619 | 66 | 0.775701 | Jcw87 |
9a544a009e0b01d8da3e13f0669d7c4e7af335dd | 653 | hpp | C++ | patterns/builder/include/Builder.hpp | bencsikandrei/cpp-dp | 8afc91956c2f35f9d1bb0a108c4a6266c47bc008 | [
"MIT"
] | null | null | null | patterns/builder/include/Builder.hpp | bencsikandrei/cpp-dp | 8afc91956c2f35f9d1bb0a108c4a6266c47bc008 | [
"MIT"
] | null | null | null | patterns/builder/include/Builder.hpp | bencsikandrei/cpp-dp | 8afc91956c2f35f9d1bb0a108c4a6266c47bc008 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <vector>
class HtmlBuilder;
class HtmlElement {
public:
friend class HtmlBuilder;
static HtmlBuilder create(std::string rootName);
std::string str(int indent = 0) const;
private:
HtmlElement(std::string root, std::string text);
HtmlElement() = defaul... | 19.205882 | 62 | 0.678407 | bencsikandrei |
9a55b1576b01242b62e75b34eafb5512f3b81199 | 1,129 | hpp | C++ | include/pattern/maybe.hpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | 1 | 2020-07-11T14:53:38.000Z | 2020-07-11T14:53:38.000Z | include/pattern/maybe.hpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | 1 | 2020-07-04T16:45:49.000Z | 2020-07-04T16:45:49.000Z | include/pattern/maybe.hpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | null | null | null | #ifndef RHIZOME_PATTERN_MAYBE_HPP
#define RHIZOME_PATTERN_MAYBE_HPP
#include <cassert>
#include "pattern.hpp"
#include "types/string.hpp"
using rhizome::types::String;
namespace rhizome {
namespace pattern {
class Maybe: public Pattern {
private:
IPattern *inner;
public:
... | 28.225 | 96 | 0.615589 | nathanmullenax83 |
9a55fbba94b4b6ac52e33d306e20cf7cef3289c4 | 18,069 | cpp | C++ | calculator/mainwindow.cpp | xueqili02/Data-Structure-Practice | 8eee219d1912d40b116c2e808ef8e9e1d2a390a8 | [
"MIT"
] | null | null | null | calculator/mainwindow.cpp | xueqili02/Data-Structure-Practice | 8eee219d1912d40b116c2e808ef8e9e1d2a390a8 | [
"MIT"
] | null | null | null | calculator/mainwindow.cpp | xueqili02/Data-Structure-Practice | 8eee219d1912d40b116c2e808ef8e9e1d2a390a8 | [
"MIT"
] | null | null | null | /*
Name: Li Xueqi
Number: 20301110
*/
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "myStack.h"
#include "history.h"
#include <cstring>
#include <cmath>
#include <QFile>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);... | 27.294562 | 105 | 0.41336 | xueqili02 |
9a5727ccef4bba0e4e54dafc414e9d185c050b7f | 3,787 | cpp | C++ | SarkLibrary/PNGResource.cpp | alleysark/SarkEngine_forExperiment | 9e27ddc37242cf739d67ee7efc2ff2b24d3c4811 | [
"Apache-2.0"
] | 2 | 2015-07-20T08:57:02.000Z | 2018-11-02T13:42:49.000Z | SarkLibrary/PNGResource.cpp | alleysark/SarkEngine_forExperiment | 9e27ddc37242cf739d67ee7efc2ff2b24d3c4811 | [
"Apache-2.0"
] | null | null | null | SarkLibrary/PNGResource.cpp | alleysark/SarkEngine_forExperiment | 9e27ddc37242cf739d67ee7efc2ff2b24d3c4811 | [
"Apache-2.0"
] | null | null | null | #include "PNGResource.h"
#include "Debug.h"
#include <png.h>
#include <fcntl.h>
namespace sark {
PNGResource::PNGResource()
: mWidth(0), mHeight(0), mPixels(NULL)
{}
PNGResource::~PNGResource() {
if (mPixels != NULL) {
delete[] mPixels;
}
}
const integer PNGResource::GetWidth() const {
return mWidth... | 23.233129 | 94 | 0.686823 | alleysark |
9a57e3fb13019cc5ea24ae414f3db8798e28fc74 | 828 | cpp | C++ | RAS/Dialog_EcodeToMark.cpp | simonyhong/Blip | 49b280b061470037edb672d4d2a7d434909dc039 | [
"Unlicense"
] | null | null | null | RAS/Dialog_EcodeToMark.cpp | simonyhong/Blip | 49b280b061470037edb672d4d2a7d434909dc039 | [
"Unlicense"
] | null | null | null | RAS/Dialog_EcodeToMark.cpp | simonyhong/Blip | 49b280b061470037edb672d4d2a7d434909dc039 | [
"Unlicense"
] | null | null | null | // EcodeToMark.cpp : implementation file
//
#include "stdafx.h"
#include "RAS.h"
#include "Dialog_EcodeToMark.h"
#include "afxdialogex.h"
// CEcodeToMark dialog
IMPLEMENT_DYNAMIC(CEcodeToMark, CDialogEx)
CEcodeToMark::CEcodeToMark(CWnd* pParent /*=NULL*/)
: CDialogEx(CEcodeToMark::IDD, pParent)
, ... | 21.230769 | 165 | 0.733092 | simonyhong |
9a5944d3a631ccd235bfeeb8019b67963f91a393 | 477 | cpp | C++ | gym/102297/G.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | 1 | 2021-07-16T19:59:39.000Z | 2021-07-16T19:59:39.000Z | gym/102297/G.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | gym/102297/G.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define endl '\n'
typedef long long ll;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
int t;
cin >> t;
for(int cases = 1; cases <= t; cases++){
cout << "Grid #" << cases << ": ";
ll k, n;
cin >> k >> n;
ll mx = (n - 1) * (n - 1) + 1;
if(k >... | 15.387097 | 43 | 0.492662 | albexl |
9a61b3bceaf35766755781d1afca0465bd7d6c5a | 3,022 | cpp | C++ | UVA Solved Problem/11080 - Place the Guards/11080 - Place the Guards .cpp | ahmed-dinar/UVA | 5cb43864744475ed7ac94e6cb6cae50ad80603c7 | [
"MIT"
] | null | null | null | UVA Solved Problem/11080 - Place the Guards/11080 - Place the Guards .cpp | ahmed-dinar/UVA | 5cb43864744475ed7ac94e6cb6cae50ad80603c7 | [
"MIT"
] | null | null | null | UVA Solved Problem/11080 - Place the Guards/11080 - Place the Guards .cpp | ahmed-dinar/UVA | 5cb43864744475ed7ac94e6cb6cae50ad80603c7 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<sstream>
#include<cstdlib>
#include<cctype>
#include<cmath>
#include<algorithm>
#include<set>
#include<queue>
#include<deque>
#include<stack>
#include<list>
#include<iostream>
#include<fstream>
#include<numeric>
#include<string>
#include<vector>
#include<cstring>
#include<map>... | 24.176 | 103 | 0.498015 | ahmed-dinar |
9a6aa38e106910d501b2cc6178ab84d84b4fa3f7 | 5,573 | cpp | C++ | Programs/QuickEd/Classes/Modules/IssueNavigatorModule/IssueNavigatorModule.cpp | BlitzModder/dava.engine | 0c7a16e627fc0d12309250d6e5e207333b35361e | [
"BSD-3-Clause"
] | 4 | 2019-11-15T11:30:00.000Z | 2021-12-27T21:16:31.000Z | Programs/QuickEd/Classes/Modules/IssueNavigatorModule/IssueNavigatorModule.cpp | TTopox/dava.engine | 0c7a16e627fc0d12309250d6e5e207333b35361e | [
"BSD-3-Clause"
] | null | null | null | Programs/QuickEd/Classes/Modules/IssueNavigatorModule/IssueNavigatorModule.cpp | TTopox/dava.engine | 0c7a16e627fc0d12309250d6e5e207333b35361e | [
"BSD-3-Clause"
] | 4 | 2017-04-07T04:32:41.000Z | 2021-12-27T21:55:49.000Z | #include "Classes/Modules/IssueNavigatorModule/IssueNavigatorModule.h"
#include "Classes/Modules/IssueNavigatorModule/IssueData.h"
#include "Classes/Modules/IssueNavigatorModule/IssueNavigatorData.h"
#include "Classes/Modules/IssueNavigatorModule/LayoutIssueHandler.h"
#include "Classes/Modules/IssueNavigatorModule/Nam... | 36.907285 | 125 | 0.724027 | BlitzModder |
9a6c24dd6b7371d57d7d088df8a5a45c953cfaed | 680 | hpp | C++ | Modules/Vulkan/Public/Toon/Vulkan/VulkanMesh.hpp | benjinx/Toon | f21032b2f9ad5fbc9a3618a7719c33159257d954 | [
"MIT"
] | 2 | 2021-01-28T03:08:08.000Z | 2021-01-28T03:08:21.000Z | Modules/Vulkan/Public/Toon/Vulkan/VulkanMesh.hpp | benjinx/Toon | f21032b2f9ad5fbc9a3618a7719c33159257d954 | [
"MIT"
] | null | null | null | Modules/Vulkan/Public/Toon/Vulkan/VulkanMesh.hpp | benjinx/Toon | f21032b2f9ad5fbc9a3618a7719c33159257d954 | [
"MIT"
] | null | null | null | #ifndef TOON_VULKAN_MESH_HPP
#define TOON_VULKAN_MESH_HPP
#include <Toon/Vulkan/VulkanConfig.hpp>
#include <Toon/Mesh.hpp>
namespace Toon::Vulkan {
#define TOON_VULKAN_MESH(x) (dynamic_cast<Toon::Vulkan::VulkanMesh *>(x))
class TOON_VULKAN_API VulkanMesh : public Mesh
{
public:
DISALLOW_COPY_AND_ASSIGN(Vulkan... | 17 | 73 | 0.725 | benjinx |
9a7052e3d4ad7450e54cdecfb00f8865590747eb | 4,105 | cpp | C++ | src/IOChannels/IO_Channel_Hw_PiFace.cpp | dajuly20/ControlPi | e03ed36eb062007051ac9d35cde01f441d82bde7 | [
"MIT"
] | null | null | null | src/IOChannels/IO_Channel_Hw_PiFace.cpp | dajuly20/ControlPi | e03ed36eb062007051ac9d35cde01f441d82bde7 | [
"MIT"
] | null | null | null | src/IOChannels/IO_Channel_Hw_PiFace.cpp | dajuly20/ControlPi | e03ed36eb062007051ac9d35cde01f441d82bde7 | [
"MIT"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: IO_Channel_Hw_PiFace.cpp
* Author: julian
*
* Created on December 19, 2018, 11:39 PM
*/
#include "IO_Channel_Hw_P... | 35.387931 | 183 | 0.640682 | dajuly20 |
9a890161b577010bd90bce57b8381ce8761f64fe | 55,603 | cpp | C++ | test/fast_recompression_test.cpp | christopherosthues/recompression | 1932cc5aa77a533d9994dbe0c80dbb889a4d25ec | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2019-07-18T12:48:14.000Z | 2022-01-04T13:54:13.000Z | test/fast_recompression_test.cpp | christopherosthues/recompression | 1932cc5aa77a533d9994dbe0c80dbb889a4d25ec | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | test/fast_recompression_test.cpp | christopherosthues/recompression | 1932cc5aa77a533d9994dbe0c80dbb889a4d25ec | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#define private public
#include "recompression/fast_recompression.hpp"
#include "recompression/util.hpp"
using namespace recomp;
typedef recompression_fast<var_t>::text_t text_t;
typedef recompression_fast<var_t>::adj_list_t adj_list_t;
typedef recompression_fast<var_t>::partition_t partiti... | 39.212271 | 161 | 0.670881 | christopherosthues |
893f4502ca312cfb3040a32bcf9002d7eba00e3d | 1,138 | cpp | C++ | Classes/SoundGame.cpp | PhamDinhTri/Bomberman | 66d73167c42a05efb5829f4db244d1ffad0bb083 | [
"MIT"
] | null | null | null | Classes/SoundGame.cpp | PhamDinhTri/Bomberman | 66d73167c42a05efb5829f4db244d1ffad0bb083 | [
"MIT"
] | null | null | null | Classes/SoundGame.cpp | PhamDinhTri/Bomberman | 66d73167c42a05efb5829f4db244d1ffad0bb083 | [
"MIT"
] | 1 | 2021-10-20T14:22:57.000Z | 2021-10-20T14:22:57.000Z | #include "SoundGame.h"
#include "cocos2d.h"
#include "SimpleAudioEngine.h"
#include "common.h"
USING_NS_CC;
using namespace CocosDenshion;
static SoundGame *instance = nullptr;
void SoundGame::playMusic(const char* file, bool loop) {
if(UserDefault::getInstance()->getBoolForKey(KEY_SOUND, true)) {
SimpleA... | 23.708333 | 69 | 0.711775 | PhamDinhTri |
893fc2e7ff00c844850ca791c612a17bc34dec27 | 4,528 | hxx | C++ | Modules/Components/itkImageRegistrationMethodv4/include/selxItkANTSNeighborhoodCorrelationImageToImageMetricv4Component.hxx | FBerendsen/SuperElastix-1 | 69d97589e34f6f2109621e917792ce18e32442fe | [
"Apache-2.0"
] | null | null | null | Modules/Components/itkImageRegistrationMethodv4/include/selxItkANTSNeighborhoodCorrelationImageToImageMetricv4Component.hxx | FBerendsen/SuperElastix-1 | 69d97589e34f6f2109621e917792ce18e32442fe | [
"Apache-2.0"
] | null | null | null | Modules/Components/itkImageRegistrationMethodv4/include/selxItkANTSNeighborhoodCorrelationImageToImageMetricv4Component.hxx | FBerendsen/SuperElastix-1 | 69d97589e34f6f2109621e917792ce18e32442fe | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright Leiden University Medical Center, Erasmus University Medical
* Center and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License... | 38.372881 | 209 | 0.737853 | FBerendsen |
8940b7ebeb3610dccec898952aa471c6575ba9f0 | 179 | cpp | C++ | third-party/Empirical/tests/datastructs/StringMap.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/tests/datastructs/StringMap.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/tests/datastructs/StringMap.cpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "third-party/Catch/single_include/catch2/catch.hpp"
#include "emp/datastructs/StringMap.hpp"
TEST_CASE("Test StringMap", "[datastructs]")
{
} | 19.888889 | 60 | 0.776536 | koellingh |
894409e84fde8d291b0395da0ff264c66c36d45f | 1,242 | hpp | C++ | Libraries/Engine/ArchetypeRebuilder.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Engine/ArchetypeRebuilder.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Engine/ArchetypeRebuilder.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
#include "DataSource.hpp"
namespace Zero
{
// Forward Declarations.
class MetaSelection;
class CogRestoreState;
// Cog Replace Event
namespace Events
{
// Sent on the space when an Archetype object is rebuilt
DeclareEvent(CogReplaced);
} // namespace Events
/// Sent on... | 27 | 82 | 0.718196 | RyanTylerRae |
894f53a62887855cf495edabd45687a05cd3200e | 1,327 | hpp | C++ | AlertQueue.hpp | vikchopde/AlertDispatcher | f9ed546511ea193a8db31feac774d441cf5b0140 | [
"MIT"
] | null | null | null | AlertQueue.hpp | vikchopde/AlertDispatcher | f9ed546511ea193a8db31feac774d441cf5b0140 | [
"MIT"
] | null | null | null | AlertQueue.hpp | vikchopde/AlertDispatcher | f9ed546511ea193a8db31feac774d441cf5b0140 | [
"MIT"
] | null | null | null | #ifndef ZEROTOHERO_ALERTQUEUE_HPP
#define ZEROTOHERO_ALERTQUEUE_HPP
#include <queue>
#include <mutex>
#include <condition_variable>
#include <memory>
template<typename T>
class threadsafe_queue
{
private:
mutable std::mutex mut;
std::queue<T> data_queue;
std::condition_variable data_cond;
public:
thr... | 21.063492 | 63 | 0.605124 | vikchopde |
895430d327ef886f7ff487f654e3fa6c305fbeba | 4,979 | cpp | C++ | soundlib/UMXTools.cpp | extrowerk/openmpt | 99cb32168f6500dfbb238f305fef6b5e58fbac1d | [
"BSD-3-Clause"
] | 6 | 2017-04-19T19:06:03.000Z | 2022-01-11T14:44:14.000Z | soundlib/UMXTools.cpp | glowcoil/microplug | 5c2708b89837dbc38a1f0e7cd793e5e53838e4a4 | [
"BSD-3-Clause"
] | 4 | 2018-04-04T20:27:32.000Z | 2020-04-25T10:46:21.000Z | soundlib/UMXTools.cpp | glowcoil/microplug | 5c2708b89837dbc38a1f0e7cd793e5e53838e4a4 | [
"BSD-3-Clause"
] | 2 | 2018-06-08T15:20:48.000Z | 2020-08-19T14:24:21.000Z | /*
* UMXTools.h
* ------------
* Purpose: UMX/UAX (Unreal) helper functions
* Notes : None.
* Authors: Johannes Schultz (inspired by code from http://wiki.beyondunreal.com/Legacy:Package_File_Format)
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#i... | 22.427928 | 137 | 0.675437 | extrowerk |
8955c9bd06cc521286e017bef3232d5137193391 | 15,046 | cpp | C++ | gtkmm/MainWindow.cpp | tsabelmann/canviewer | 332b722460a3ec544442b0703cca5bbe1ac34e8f | [
"MIT"
] | null | null | null | gtkmm/MainWindow.cpp | tsabelmann/canviewer | 332b722460a3ec544442b0703cca5bbe1ac34e8f | [
"MIT"
] | 1 | 2021-10-10T20:43:43.000Z | 2022-02-23T10:50:14.000Z | gtkmm/MainWindow.cpp | tsabelmann/canviewer | 332b722460a3ec544442b0703cca5bbe1ac34e8f | [
"MIT"
] | 1 | 2022-03-29T12:43:47.000Z | 2022-03-29T12:43:47.000Z | #include "MainWindow.hpp"
namespace gtkmm
{
MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& builder)
: Gtk::Window(cobject)
{
//treeview
Gtk::TreeView *tree;
builder->get_widget("treeview", tree);
this->treeview = std::unique_ptr<Gtk::TreeView>{tree};
this->treemodel = ... | 31.609244 | 174 | 0.639373 | tsabelmann |
8955d2183cd2efe1d704d38e6dd7c9a3e52d22ef | 7,410 | cpp | C++ | src/DiMP/Graph/Avoid.cpp | ytazz/DiMP | 71e680a18ed82a3a3cdacd7fcc5c165bd21f167d | [
"MIT"
] | null | null | null | src/DiMP/Graph/Avoid.cpp | ytazz/DiMP | 71e680a18ed82a3a3cdacd7fcc5c165bd21f167d | [
"MIT"
] | null | null | null | src/DiMP/Graph/Avoid.cpp | ytazz/DiMP | 71e680a18ed82a3a3cdacd7fcc5c165bd21f167d | [
"MIT"
] | null | null | null | #include <DiMP/Graph/Avoid.h>
#include <DiMP/Graph/Geometry.h>
#include <DiMP/Graph/Object.h>
#include <DiMP/Graph/Graph.h>
#include <DiMP/Render/Config.h>
#include <sbtimer.h>
static Timer timer;
#include <omp.h>
namespace DiMP{;
const real_t inf = numeric_limits<real_t>::max();
//-------------------------------... | 25.290102 | 163 | 0.57031 | ytazz |
8957b5bf25d342414128634cba97d8fee63e7006 | 921 | cpp | C++ | SprintEverywhere/SprintEverywhere/SprintEverywhere.cpp | XMDS/SprintEverywhere | f029da407d71035633291a0961d3e40bef73dc8e | [
"MIT"
] | null | null | null | SprintEverywhere/SprintEverywhere/SprintEverywhere.cpp | XMDS/SprintEverywhere | f029da407d71035633291a0961d3e40bef73dc8e | [
"MIT"
] | null | null | null | SprintEverywhere/SprintEverywhere/SprintEverywhere.cpp | XMDS/SprintEverywhere | f029da407d71035633291a0961d3e40bef73dc8e | [
"MIT"
] | null | null | null | #include <unistd.h>
#ifdef AML //use AML
#include "AML/amlmod.h"
#include "AML/logger.h"
MYMOD(net.xmds.SprintEverywhere, SprintEverywhere, 1.0, XMDS)
#else
#include "CLEO_SDK/cleo.h" //use CLEO sdk
#endif
#include "ARMHook/ARMHook.h"
uintptr_t LibAddr;
int ret()
{
return 0;
}
#ifdef AML
//AML plugin entrance
ex... | 24.891892 | 84 | 0.723127 | XMDS |
895e3754d3688516e5cc021d5b7dad27d0295d34 | 2,635 | cpp | C++ | snippets/cpp/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/CPP/getcultures.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-02-22T09:30:21.000Z | 2021-08-02T23:44:31.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/CPP/getcultures.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Globalization.CultureInfo.GetCultures/CPP/getcultures.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
// The following code example displays several properties of the neutral cultures.
// <snippet1>
using namespace System;
using namespace System::Globalization;
int main()
{
// Displays several properties of the neutral cultures.
Console::WriteLine( "CULTURE ISO ISO WIN DISPLAYNAME ... | 57.282609 | 120 | 0.450474 | BohdanMosiyuk |
895fbcf610a6b6a12a96f697759753749dd1e30c | 6,205 | cc | C++ | aegir-brewd/src/Message.cc | gczuczy/aegir | 1275ca41bfe4a56347eb2531211df4c70933fb96 | [
"BSD-3-Clause"
] | null | null | null | aegir-brewd/src/Message.cc | gczuczy/aegir | 1275ca41bfe4a56347eb2531211df4c70933fb96 | [
"BSD-3-Clause"
] | 11 | 2020-06-04T20:31:02.000Z | 2022-02-26T01:39:26.000Z | aegir-brewd/src/Message.cc | gczuczy/aegir | 1275ca41bfe4a56347eb2531211df4c70933fb96 | [
"BSD-3-Clause"
] | 1 | 2020-12-10T19:19:41.000Z | 2020-12-10T19:19:41.000Z |
#include "Message.hh"
#include <string.h>
#include <algorithm>
#include "Exception.hh"
namespace aegir {
const std::string hexdump(const msgstring &_msg) {
return hexdump(_msg.data(), _msg.length());
}
const std::string hexdump(const uint8_t *_msg, int _size) {
std::string hex;
for (int i=0; i... | 27.09607 | 123 | 0.653989 | gczuczy |
8967621485c55c4b155038dbee2d572208e7732b | 258 | hh | C++ | day10/solver.hh | ovove/aoc20 | 6cb819e35d64fe704c918275f50f76652133b5a4 | [
"Unlicense"
] | null | null | null | day10/solver.hh | ovove/aoc20 | 6cb819e35d64fe704c918275f50f76652133b5a4 | [
"Unlicense"
] | null | null | null | day10/solver.hh | ovove/aoc20 | 6cb819e35d64fe704c918275f50f76652133b5a4 | [
"Unlicense"
] | null | null | null |
#pragma once
#include <istream>
#include <vector>
#include <tuple>
using JoltData = std::vector<unsigned>;
using JoltRatings = std::tuple<unsigned, unsigned, unsigned>;
JoltData read_adapters(std::istream&);
JoltRatings rate_adapters(const JoltData&);
| 17.2 | 61 | 0.755814 | ovove |
896837b2f45c0d0265a565c26787b1ae747db743 | 1,946 | cpp | C++ | SpatialGDK/Source/SpatialGDKFunctionalTests/SpatialGDK/SpatialTestCharacterMovement/TestMovementCharacter.cpp | Bowbee/GDKPrebuilt | 420b3fa19fdc36755a43e655c057b5624264407a | [
"MIT"
] | 363 | 2018-07-30T12:57:42.000Z | 2022-03-25T14:30:28.000Z | SpatialGDK/Source/SpatialGDKFunctionalTests/SpatialGDK/SpatialTestCharacterMovement/TestMovementCharacter.cpp | Bowbee/GDKPrebuilt | 420b3fa19fdc36755a43e655c057b5624264407a | [
"MIT"
] | 1,634 | 2018-07-30T14:30:25.000Z | 2022-03-03T01:55:15.000Z | SpatialGDK/Source/SpatialGDKFunctionalTests/SpatialGDK/SpatialTestCharacterMovement/TestMovementCharacter.cpp | Bowbee/GDKPrebuilt | 420b3fa19fdc36755a43e655c057b5624264407a | [
"MIT"
] | 153 | 2018-07-31T13:45:02.000Z | 2022-03-03T05:20:24.000Z | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "TestMovementCharacter.h"
#include "Engine/Classes/Camera/CameraComponent.h"
#include "Components/StaticMeshComponent.h"
#include "Materials/Material.h"
#include "Net/UnrealNetwork.h"
#include "Components/CapsuleComponent.h"
ATestMovementCharacter:... | 38.156863 | 142 | 0.820144 | Bowbee |
896c4de46ee3e6cfb144e6cbda628ff333c613fe | 7,268 | cpp | C++ | src/ZGStdinSession.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | 4 | 2018-03-08T17:59:15.000Z | 2021-12-16T18:36:36.000Z | src/ZGStdinSession.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | null | null | null | src/ZGStdinSession.cpp | ruurdadema/zg_choir | 6de0e8be497974c0e56bb87139b18f0d6f5b4ee3 | [
"BSD-3-Clause"
] | 4 | 2018-05-01T22:39:03.000Z | 2021-09-04T18:06:55.000Z | #include "dataio/StdinDataIO.h"
#include "iogateway/PlainTextMessageIOGateway.h"
#include "system/SystemInfo.h" // for PrintBuildFlags()
#include "util/NetworkUtilityFunctions.h"
#include "util/StringTokenizer.h"
#include "zg/ZGStdinSession.h"
namespace zg {
ZGStdinSession :: ZGStdinSession(ITextCommandReceiver & ta... | 37.854167 | 204 | 0.63126 | ruurdadema |
896c8a9c52fd105ca3e9bedb6ba6d4d91bf8fd79 | 3,629 | cpp | C++ | src/persistent_json_storage.cpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | 4 | 2019-11-14T10:41:34.000Z | 2021-12-09T23:54:52.000Z | src/persistent_json_storage.cpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | 2 | 2021-10-04T20:12:53.000Z | 2021-12-14T18:13:03.000Z | src/persistent_json_storage.cpp | aahmed-2/telemetry | 7e098e93ef0974739459d296f99ddfab54722c23 | [
"Apache-2.0"
] | 2 | 2021-09-28T06:45:53.000Z | 2021-12-13T15:30:33.000Z | #include "persistent_json_storage.hpp"
#include <phosphor-logging/log.hpp>
#include <fstream>
#include <stdexcept>
PersistentJsonStorage::PersistentJsonStorage(const DirectoryPath& directory) :
directory(directory)
{}
void PersistentJsonStorage::store(const FilePath& filePath,
... | 26.489051 | 80 | 0.603472 | aahmed-2 |
896fd44db6b257ce9fbf86c1c25786090d3cbbad | 298 | cpp | C++ | Disruptor.Tests/SleepingWaitStrategyTests.cpp | GregGodin/Disruptor-cpp | aa06c37b94dfae3b9859bfbeaf1cd66ea27fac6b | [
"Apache-2.0"
] | 4 | 2019-07-22T04:04:00.000Z | 2022-01-18T11:25:48.000Z | Disruptor.Tests/SleepingWaitStrategyTests.cpp | GregGodin/Disruptor-cpp | aa06c37b94dfae3b9859bfbeaf1cd66ea27fac6b | [
"Apache-2.0"
] | null | null | null | Disruptor.Tests/SleepingWaitStrategyTests.cpp | GregGodin/Disruptor-cpp | aa06c37b94dfae3b9859bfbeaf1cd66ea27fac6b | [
"Apache-2.0"
] | 2 | 2019-07-25T13:03:16.000Z | 2019-10-25T06:23:15.000Z | #include "stdafx.h"
#include "Disruptor/SleepingWaitStrategy.h"
#include "WaitStrategyTestUtil.h"
using namespace Disruptor;
using namespace Disruptor::Tests;
TEST(ShouldWaitForValue, SleepingWaitStrategyTests)
{
assertWaitForWithDelayOf(50, std::make_shared< SleepingWaitStrategy >());
}
| 19.866667 | 77 | 0.795302 | GregGodin |
8970f34deb48f288806cc3abca4be81f6e3b68fb | 1,144 | hpp | C++ | libraries/plugins/rc/include/bears/plugins/rc/resource_count.hpp | nnnarvaez/bears | f446e2aa2865baf6623cb90d39efb760c224a404 | [
"MIT"
] | null | null | null | libraries/plugins/rc/include/bears/plugins/rc/resource_count.hpp | nnnarvaez/bears | f446e2aa2865baf6623cb90d39efb760c224a404 | [
"MIT"
] | null | null | null | libraries/plugins/rc/include/bears/plugins/rc/resource_count.hpp | nnnarvaez/bears | f446e2aa2865baf6623cb90d39efb760c224a404 | [
"MIT"
] | 2 | 2020-08-16T05:32:03.000Z | 2022-01-11T00:18:11.000Z | #pragma once
#include <bears/protocol/types.hpp>
#include <fc/int_array.hpp>
#include <fc/reflect/reflect.hpp>
#include <vector>
#define BEARS_NUM_RESOURCE_TYPES 5
namespace bears { namespace protocol {
struct signed_transaction;
} } // bears::protocol
namespace bears { namespace plugins { namespace rc {
enum... | 22 | 79 | 0.750874 | nnnarvaez |
8971fdd08184492b846eb1cd9abcfc423d6eda06 | 995 | hpp | C++ | include/netlib/ssl_context.hpp | axilmar/netlib | ab1ad27bd8adaffbcb4c481b7972324202c8882e | [
"Apache-2.0"
] | null | null | null | include/netlib/ssl_context.hpp | axilmar/netlib | ab1ad27bd8adaffbcb4c481b7972324202c8882e | [
"Apache-2.0"
] | null | null | null | include/netlib/ssl_context.hpp | axilmar/netlib | ab1ad27bd8adaffbcb4c481b7972324202c8882e | [
"Apache-2.0"
] | null | null | null | #ifndef NETLIB_SSL_CONTEXT_HPP
#define NETLIB_SSL_CONTEXT_HPP
#include <memory>
struct ssl_ctx_st;
namespace netlib::ssl {
/**
* Base class for SSL contexts.
*/
class context {
public:
/**
* The destructor.
* Virtual due to inheritance.
*/
virtual... | 19.134615 | 108 | 0.567839 | axilmar |
8974deb354205fb9beb5f1e9c092280b1802e545 | 3,240 | hpp | C++ | include/Application.hpp | jimmiebergmann/Space | ab65113a5fd026128efbd94eaba8ab9940d5668d | [
"Zlib"
] | null | null | null | include/Application.hpp | jimmiebergmann/Space | ab65113a5fd026128efbd94eaba8ab9940d5668d | [
"Zlib"
] | null | null | null | include/Application.hpp | jimmiebergmann/Space | ab65113a5fd026128efbd94eaba8ab9940d5668d | [
"Zlib"
] | null | null | null | // Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// 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 p... | 32.079208 | 78 | 0.454321 | jimmiebergmann |
8978eae69d112724a260a249ff6322045bdcf17a | 518 | hpp | C++ | include/raptor/file_size.hpp | kiron1/raptor | 578c08a1ad475ee1210fedd74af12ce88d7d5c69 | [
"BSL-1.0"
] | null | null | null | include/raptor/file_size.hpp | kiron1/raptor | 578c08a1ad475ee1210fedd74af12ce88d7d5c69 | [
"BSL-1.0"
] | null | null | null | include/raptor/file_size.hpp | kiron1/raptor | 578c08a1ad475ee1210fedd74af12ce88d7d5c69 | [
"BSL-1.0"
] | null | null | null | //=============================================================================
// 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
//=============================================================================
#ifnd... | 25.9 | 79 | 0.53861 | kiron1 |
897a0c50f850d561242800b7874ab090af06b58d | 352 | cc | C++ | kattis/falling.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | kattis/falling.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | kattis/falling.cc | Ashindustry007/competitive-programming | 2eabd3975c029d235abb7854569593d334acae2f | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://open.kattis.com/problems/falling
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
ll d;
cin>>d;
for(ll i=0;(i+1)*(i+1)-i*i<=d;i++){
ll n2=d+i*i;
ll n=sqrt(n2);
if(n*n==n2){
cout<<i<<" "<<n<<"\n";
return 0;
... | 17.6 | 43 | 0.53125 | Ashindustry007 |
897b04a434c890d2e0ed6b57e17d0229fdc8bcb8 | 1,779 | hpp | C++ | include/jsgrep/functional/filter.hpp | amireh/jsq | 270273e6a57615a53671fac97b22c321b167d74b | [
"MIT"
] | 2 | 2019-07-29T01:31:35.000Z | 2020-06-18T07:23:03.000Z | include/jsgrep/functional/filter.hpp | amireh/jsgrep | 270273e6a57615a53671fac97b22c321b167d74b | [
"MIT"
] | 1 | 2017-08-06T09:44:14.000Z | 2017-08-06T09:44:14.000Z | include/jsgrep/functional/filter.hpp | amireh/jsgrep | 270273e6a57615a53671fac97b22c321b167d74b | [
"MIT"
] | null | null | null | #ifndef H_JSGREP_FUNCTIONAL_FILTER_H
#define H_JSGREP_FUNCTIONAL_FILTER_H
#include "jsgrep/types.hpp"
#include <algorithm>
#include <vector>
#include <math.h>
#include <fnmatch.h>
namespace jsgrep {
namespace functional {
using std::vector;
typedef vector<string_t> patterns_t;
static bool matches(cons... | 26.552239 | 81 | 0.634064 | amireh |
897d673f9029b41b21688fa47a7af2dd45a7800e | 274 | cpp | C++ | Part1/Examples/First.cpp | praseedpai/CPPForClubHouse | 20e721081a4c370fd1136ae811d9ee0c231ad49c | [
"MIT"
] | 6 | 2021-08-01T07:00:35.000Z | 2021-09-09T15:32:51.000Z | Part1/Examples/First.cpp | praseedpai/CPPForClubHouse | 20e721081a4c370fd1136ae811d9ee0c231ad49c | [
"MIT"
] | null | null | null | Part1/Examples/First.cpp | praseedpai/CPPForClubHouse | 20e721081a4c370fd1136ae811d9ee0c231ad49c | [
"MIT"
] | null | null | null | #include <stdio.h>
//---- argc => argument count
//---- argv => argument vector
// int main( int argc , char **argv )
// int main ( int argc, char *argv[] )
// int main ( int argc, char argv[][] )
int main( int argc, char **argv )
{
printf("Hello World....\n");
} | 21.076923 | 41 | 0.558394 | praseedpai |
897e25aa6451cced54651b4bc3b41741516f8f35 | 764 | cpp | C++ | Letter Combinations of a Phone Number.cpp | dishanp/Coding-In-C-and-C- | 889985ac136826cf9be88d6c5455f79fd805a069 | [
"BSD-2-Clause"
] | 2 | 2021-10-01T04:20:04.000Z | 2021-10-01T04:20:06.000Z | Letter Combinations of a Phone Number.cpp | dishanp/Coding-In-C-and-C- | 889985ac136826cf9be88d6c5455f79fd805a069 | [
"BSD-2-Clause"
] | null | null | null | Letter Combinations of a Phone Number.cpp | dishanp/Coding-In-C-and-C- | 889985ac136826cf9be88d6c5455f79fd805a069 | [
"BSD-2-Clause"
] | 8 | 2021-10-01T04:20:38.000Z | 2022-03-19T17:05:05.000Z | class Solution {
public:
void util(vector<string>&res,vector<string>dic,string digits,int ind,string output){
if(ind==digits.size())
{
res.push_back(output);
return;
}
int no=digits[ind]-'0';
string temp=dic[no];
for(int i=0;i<temp.size();i++){... | 28.296296 | 88 | 0.509162 | dishanp |
8980722dfdff57ad03a343ab0609c9a17f4ce2dc | 1,027 | cpp | C++ | SPOJ/OFFSIDE(Simple math).cpp | abusomani/DS-Algo | b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba | [
"Unlicense"
] | null | null | null | SPOJ/OFFSIDE(Simple math).cpp | abusomani/DS-Algo | b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba | [
"Unlicense"
] | null | null | null | SPOJ/OFFSIDE(Simple math).cpp | abusomani/DS-Algo | b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba | [
"Unlicense"
] | null | null | null | //Sometimes I feel like giving up, then I remember I have a lot of motherfuckers to prove wrong!
//@BEGIN OF SOURCE CODE ( By Abhishek Somani)
#include <bits/stdc++.h>
using namespace std;
#define fastio \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
typed... | 24.452381 | 96 | 0.463486 | abusomani |
89832f49b59bc0b3f7303f5759009df3708cfffa | 1,072 | hpp | C++ | src/ctti/attr/base.hpp | PiotrMoscicki/s4_rtti | 8d22f42f84eb0a831b2472349d2d97b4cb351e07 | [
"MIT"
] | null | null | null | src/ctti/attr/base.hpp | PiotrMoscicki/s4_rtti | 8d22f42f84eb0a831b2472349d2d97b4cb351e07 | [
"MIT"
] | 3 | 2021-12-18T16:50:24.000Z | 2021-12-18T16:53:54.000Z | src/ctti/attr/base.hpp | PiotrMoscicki/s4_rtti | 8d22f42f84eb0a831b2472349d2d97b4cb351e07 | [
"MIT"
] | null | null | null | #pragma once
#include "ctti.hpp"
namespace ctti::attr {
//*********************************************************************************************
//*********************************************************************************************
//*******************************************************... | 30.628571 | 99 | 0.399254 | PiotrMoscicki |
89860072375b7ceb0805c08295930cbbea3aee7d | 391 | cpp | C++ | question_solution/first_time/1036.cpp | xiaoland/CaiojSolution | a12c505235d70b414071ea894fa72cddbcfabc6d | [
"Apache-2.0"
] | 1 | 2020-09-24T13:35:45.000Z | 2020-09-24T13:35:45.000Z | question_solution/first_time/1036.cpp | xiaoland/CaiojSolution | a12c505235d70b414071ea894fa72cddbcfabc6d | [
"Apache-2.0"
] | null | null | null | question_solution/first_time/1036.cpp | xiaoland/CaiojSolution | a12c505235d70b414071ea894fa72cddbcfabc6d | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
int n, s;
void dg(int a, int b, int c) {
if(c >= n) {
s++;
return ;
} // ATTENTION: use if! not else if!
if (a > 0 && b < n) {
dg(a-1, b+1, c);
}
if (b > 0 && c < n) {
dg(a, b-1, c+1);
}
}
int main() {
scanf("%d", ... | 13.482759 | 61 | 0.337596 | xiaoland |
898d1f2365821689c0ec9c60d958e3e96d98c21c | 392 | cpp | C++ | cse419/LightOJ/1045/22419752_AC_0ms_0kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 2 | 2020-09-02T12:07:47.000Z | 2020-11-17T11:17:16.000Z | cse419/LightOJ/1045/22419752_AC_0ms_0kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | null | null | null | cse419/LightOJ/1045/22419752_AC_0ms_0kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
#define le 1000006
using namespace std;
double n[le];
void fnc(){
n[0] = 0.0;
for(int i = 1; i < le; i++){
n[i] = n[i - 1] + log10(i * 1.0);
}
}
int main(){
fnc();
int t, co = 0, a, b;
for(scanf("%d", &t); t--; ){
scanf("%d %d", &a, &b);
double ans = n[a] / log10(b * 1.0... | 18.666667 | 50 | 0.464286 | cosmicray001 |
89907c78d897e9941164f7d276c05d0f491e3d65 | 8,205 | cpp | C++ | ewsclient/ewsid.cpp | KrissN/akonadi-ews | 05ce7e24547fbdb559de55dabda86d337716cfba | [
"RSA-MD"
] | 122 | 2016-03-01T12:53:43.000Z | 2021-11-06T21:14:21.000Z | ewsclient/ewsid.cpp | KrissN/akonadi-ews | 05ce7e24547fbdb559de55dabda86d337716cfba | [
"RSA-MD"
] | 54 | 2016-05-02T10:05:47.000Z | 2022-02-01T18:10:38.000Z | ewsclient/ewsid.cpp | KrissN/akonadi-ews | 05ce7e24547fbdb559de55dabda86d337716cfba | [
"RSA-MD"
] | 17 | 2016-05-18T21:02:08.000Z | 2022-01-27T20:33:26.000Z | /* This file is part of Akonadi EWS Resource
Copyright (C) 2015-2017 Krzysztof Nowicki <krissn@op.pl>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of ... | 29.945255 | 96 | 0.66362 | KrissN |
8990d6e45644bf48b8217099b86f8e58795e99d2 | 395 | cpp | C++ | C++/20-kth-root.cpp | ni30kp/sorting-algorithms | 5d7a87bb377aad387980b71f97c2c80035a37152 | [
"MIT"
] | null | null | null | C++/20-kth-root.cpp | ni30kp/sorting-algorithms | 5d7a87bb377aad387980b71f97c2c80035a37152 | [
"MIT"
] | null | null | null | C++/20-kth-root.cpp | ni30kp/sorting-algorithms | 5d7a87bb377aad387980b71f97c2c80035a37152 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
void binary_search_root(ll n, ll k){
// mid^k = n
ll s = 0, e = n, mid, ans;
while(s<=e){
mid = (s+e)/2;
if(pow(mid,k)<=n){
ans = mid;
s = mid + 1;
}else
e = mid - 1;
}
cout<<ans<<endl;
}
int main(){
ll t, a, b;
cin>>t;
whi... | 11.285714 | 36 | 0.518987 | ni30kp |
89a3ff6cc4407c6d27a5f041c30f407aa319adb9 | 1,719 | cpp | C++ | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch10/Exercise10.32.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch10/Exercise10.32.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch10/Exercise10.32.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | // Exercise10.32.cpp
// Ad
// Rewrite the bookstore program from p.24 using a vector to hold the transactions and various algorithms to do the processing.
// Use sort with your compareIsbn function to arrange the transactions in order, and then use find and accumulate to do the sum.
#include <iostream>
#include <vecto... | 28.65 | 128 | 0.542176 | alaxion |
89a4db47365eebe3db864a7b8c50ce47208a8f33 | 870 | hpp | C++ | src/include/Snake.hpp | iluvpy/Minigames | f04dc78a24368f9a6021f02584c1989204ba10b6 | [
"MIT"
] | null | null | null | src/include/Snake.hpp | iluvpy/Minigames | f04dc78a24368f9a6021f02584c1989204ba10b6 | [
"MIT"
] | null | null | null | src/include/Snake.hpp | iluvpy/Minigames | f04dc78a24368f9a6021f02584c1989204ba10b6 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <utility>
#include "Renderer.hpp"
#include "Types.hpp"
#include "Structs.hpp"
#include "InputHandler.hpp"
#define SNAKE_COLOR Color(0, 180, 40)
#define SNAKE_MOVEMENT_INTERVAL 0.25f // snake moves 1 tile each INTERVAL seconds
#define SNAKE_HEAD_COLOR Color(0, 250, 40)
// forw... | 23.513514 | 96 | 0.709195 | iluvpy |
89abdc24be80eeaca63169b24912f9cf3bce8325 | 230 | cpp | C++ | ares/sfc/coprocessor/dip/dip.cpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/sfc/coprocessor/dip/dip.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/sfc/coprocessor/dip/dip.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | //DIP switch
//used for Nintendo Super System emulation
DIP dip;
#include "serialization.cpp"
auto DIP::power() -> void {
}
auto DIP::read(uint24, uint8) -> uint8 {
return value;
}
auto DIP::write(uint24, uint8) -> void {
}
| 14.375 | 42 | 0.669565 | moon-chilled |
89b24335a16ebc58f011abb418389508f322c614 | 8,116 | cc | C++ | tensorflow/lite/kernels/gradient/bcast_grad_args_test.cc | massimobernava/tensorflow | 0a68ff9a205e14dd80fa0c51a0f6954d965f825e | [
"Apache-2.0"
] | 1 | 2022-03-29T11:36:50.000Z | 2022-03-29T11:36:50.000Z | tensorflow/lite/kernels/gradient/bcast_grad_args_test.cc | massimobernava/tensorflow | 0a68ff9a205e14dd80fa0c51a0f6954d965f825e | [
"Apache-2.0"
] | 1 | 2020-08-01T05:40:12.000Z | 2020-08-01T05:40:12.000Z | tensorflow/lite/kernels/gradient/bcast_grad_args_test.cc | massimobernava/tensorflow | 0a68ff9a205e14dd80fa0c51a0f6954d965f825e | [
"Apache-2.0"
] | null | null | null | /* Copyright 2021 The TensorFlow Authors. 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 law or a... | 33.676349 | 80 | 0.679276 | massimobernava |
89b24a1bbc3e38d0edbf9f39423e9c61bbecdfb1 | 5,661 | cpp | C++ | src/Core/Bindings/obe/System/Exceptions/Exceptions.cpp | BestEggplant/ObEngine | 4543ff027cc05de0eddede8f55b28f0cf1138189 | [
"MIT"
] | 1 | 2020-07-23T14:23:59.000Z | 2020-07-23T14:23:59.000Z | src/Core/Bindings/obe/System/Exceptions/Exceptions.cpp | BestEggplant/ObEngine | 4543ff027cc05de0eddede8f55b28f0cf1138189 | [
"MIT"
] | null | null | null | src/Core/Bindings/obe/System/Exceptions/Exceptions.cpp | BestEggplant/ObEngine | 4543ff027cc05de0eddede8f55b28f0cf1138189 | [
"MIT"
] | null | null | null | #include <Bindings/obe/System/Exceptions/Exceptions.hpp>
#include <System/Exceptions.hpp>
#include <Bindings/Config.hpp>
namespace obe::System::Exceptions::Bindings
{
void LoadClassInvalidMouseButtonEnumValue(sol::state_view state)
{
sol::table ExceptionsNamespace
= state["obe"... | 54.432692 | 91 | 0.615262 | BestEggplant |
89b43f11f561dfcbd669008fdd556a9a850a25b4 | 1,552 | cpp | C++ | src/chapter_06_algorithms_and_data_structures/problem_053_average_rating_of_movies.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_06_algorithms_and_data_structures/problem_053_average_rating_of_movies.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | src/chapter_06_algorithms_and_data_structures/problem_053_average_rating_of_movies.cpp | rturrado/TheModernCppChallenge | 648284fb417b6aaa43c21ea2b12a5a21c8cb9269 | [
"MIT"
] | null | null | null | #include "chapter_06_algorithms_and_data_structures/problem_053_average_rating_of_movies.h"
#include <algorithm> // sort
#include <fmt/ostream.h>
#include <iostream> // cout
#include <numeric> // accumulate
double average_rating(ratings rs) {
if (rs.empty()) {
return double{ 0.0 };
}
std::sor... | 32.333333 | 119 | 0.632732 | rturrado |
89b71d41119dd061bc200f3655c7d22d8acee956 | 3,928 | cpp | C++ | lib/malloy/controller.cpp | madmongo1/malloy | 69e383d319d4d090888cab21b0c33e3c1499d8ab | [
"MIT"
] | null | null | null | lib/malloy/controller.cpp | madmongo1/malloy | 69e383d319d4d090888cab21b0c33e3c1499d8ab | [
"MIT"
] | null | null | null | lib/malloy/controller.cpp | madmongo1/malloy | 69e383d319d4d090888cab21b0c33e3c1499d8ab | [
"MIT"
] | null | null | null | #include "controller.hpp"
#include "listener.hpp"
#include "http/routing/router.hpp"
#if MALLOY_FEATURE_TLS
#include "tls/manager.hpp"
#endif
#include <boost/asio/io_context.hpp>
#include <spdlog/logger.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <memory>
using namespace malloy::server;
controller:... | 25.506494 | 122 | 0.611507 | madmongo1 |
89d01d3a6aa8427dc534557bfa3afd70cb9a15a6 | 9,004 | cpp | C++ | src/student/archimedes/simulation.cpp | Tagglink/archimedes-principle | 93a2ce101bc8f3ac2653da667887c8d36a6e86a7 | [
"MIT"
] | null | null | null | src/student/archimedes/simulation.cpp | Tagglink/archimedes-principle | 93a2ce101bc8f3ac2653da667887c8d36a6e86a7 | [
"MIT"
] | null | null | null | src/student/archimedes/simulation.cpp | Tagglink/archimedes-principle | 93a2ce101bc8f3ac2653da667887c8d36a6e86a7 | [
"MIT"
] | null | null | null | #include "simulation.h"
#include <iostream>
#include <memory>
#include <string>
#include "SF_src/DemoHandler.h"
#include "student/archimedes/pointmass.h"
#include "student/archimedes/slicer.h"
#include "student/geometry.h"
#include "student/plane.h"
#include "student/vector.h"
namespace {
template <typename T>
auto... | 30.418919 | 78 | 0.618725 | Tagglink |
89da23d68c86eb8b7585cf1c1c2948a0552388b9 | 380 | cpp | C++ | DeckBuildCardGame/Model/Cards/Card/Duchy.cpp | eagle-shop/DeckBuildCardGame | 77cc0b9a4feae34b2f2e36053449a2e2ec66b877 | [
"MIT"
] | 1 | 2017-11-19T09:22:10.000Z | 2017-11-19T09:22:10.000Z | DeckBuildCardGame/Model/Cards/Card/Duchy.cpp | eagle-shop/DeckBuildCardGame | 77cc0b9a4feae34b2f2e36053449a2e2ec66b877 | [
"MIT"
] | null | null | null | DeckBuildCardGame/Model/Cards/Card/Duchy.cpp | eagle-shop/DeckBuildCardGame | 77cc0b9a4feae34b2f2e36053449a2e2ec66b877 | [
"MIT"
] | null | null | null | #include <iostream>
#include "General.hpp"
#include "Duchy.hpp"
using namespace std;
Duchy::Duchy(){
cout << "create " << DUCHY << endl;
}
Duchy::~Duchy(){
cout << "delete " << DUCHY << endl;
}
ActionDone Duchy::action(PLAYERCARD_CONCRETECARD_IO *p){
cout << "action " << DUCHY << endl;
return ACTION... | 16.521739 | 56 | 0.623684 | eagle-shop |
89df030912c113b3161e4f76e9d4c744279355a5 | 3,095 | cpp | C++ | src/algorithm/grin/AlgoCuckatoo31Cl.cpp | oldas1/Riner | 492804079eb223e6d4ffd5f5f44283162eaf421b | [
"MIT"
] | null | null | null | src/algorithm/grin/AlgoCuckatoo31Cl.cpp | oldas1/Riner | 492804079eb223e6d4ffd5f5f44283162eaf421b | [
"MIT"
] | null | null | null | src/algorithm/grin/AlgoCuckatoo31Cl.cpp | oldas1/Riner | 492804079eb223e6d4ffd5f5f44283162eaf421b | [
"MIT"
] | null | null | null | #include "AlgoCuckatoo31Cl.h"
#include <src/common/Endian.h>
#include <src/common/OpenCL.h>
#include <src/crypto/blake2.h>
#include <src/pool/WorkCuckoo.h>
namespace miner {
AlgoCuckatoo31Cl::AlgoCuckatoo31Cl(AlgoConstructionArgs args) :
terminate_(false), args_(std::move(args)) {
for (auto &assignedDev... | 34.775281 | 89 | 0.575121 | oldas1 |
89e22dc4f41d5328002b5b1c645e6bdef784430e | 3,981 | cpp | C++ | spine-cocos2dx/MBSpineFramework/cocos2d-x-3.17.2/cocos/scripting/js-bindings/manual/localstorage/js_bindings_system_functions.cpp | BowenCoder/spine-cocos2dx | cfac5100b78782b2d4ce84b472a435f46aff4da9 | [
"MIT"
] | 1 | 2022-02-14T01:34:02.000Z | 2022-02-14T01:34:02.000Z | spine-cocos2dx/MBSpineFramework/cocos2d-x-3.17.2/cocos/scripting/js-bindings/manual/localstorage/js_bindings_system_functions.cpp | BowenCoder/spine-cocos2dx | cfac5100b78782b2d4ce84b472a435f46aff4da9 | [
"MIT"
] | null | null | null | spine-cocos2dx/MBSpineFramework/cocos2d-x-3.17.2/cocos/scripting/js-bindings/manual/localstorage/js_bindings_system_functions.cpp | BowenCoder/spine-cocos2dx | cfac5100b78782b2d4ce84b472a435f46aff4da9 | [
"MIT"
] | 2 | 2019-07-02T05:35:25.000Z | 2021-02-08T06:19:33.000Z | /****************************************************************************
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal... | 35.544643 | 83 | 0.682994 | BowenCoder |
89e7e1516a88ba308ff941138cefae6fc8efaca0 | 12,330 | hpp | C++ | include/GlobalNamespace/BeatmapObjectCallbackController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapObjectCallbackController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapObjectCallbackController.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBehaviour.hpp"
//... | 57.083333 | 1,505 | 0.760341 | darknight1050 |
89ec26f902c440f9e734c1e01b9daedad008941c | 365 | cpp | C++ | C++/uva11799.cpp | MrinmoiHossain/Uva-Solution | 85602085b7c8e1d4711e679b8f5636678459b2c5 | [
"MIT"
] | 1 | 2017-04-17T21:51:54.000Z | 2017-04-17T21:51:54.000Z | C++/uva11799.cpp | MrinmoiHossain/Uva-Solution | 85602085b7c8e1d4711e679b8f5636678459b2c5 | [
"MIT"
] | 1 | 2020-06-24T23:43:11.000Z | 2020-06-24T23:43:11.000Z | C++/uva11799.cpp | MrinmoiHossain/Uva-Solution | 85602085b7c8e1d4711e679b8f5636678459b2c5 | [
"MIT"
] | 2 | 2018-12-14T12:57:51.000Z | 2020-01-03T09:00:07.000Z | //Accepted
#include <iostream>
#include <algorithm>
using namespace std;
int main(void)
{
int T, N;
cin >> T;
for(int i = 1; i <= T; i++){
cin >> N;
int arr[N];
for(int j = 0; j < N; j++)
cin >> arr[j];
sort(arr, arr + N);
cout << "Case " << i << ": " <... | 15.869565 | 59 | 0.416438 | MrinmoiHossain |
8857e23c99edad4d1300b38f7ecf7c0a7d24c45e | 31 | cpp | C++ | RenderSystemDX12/RenderDeviceDX12.cpp | dmhud/asteroids_d3d12 | 3ecbb78d40408ac9e60a38ed59fc53f30fe86640 | [
"Apache-2.0"
] | null | null | null | RenderSystemDX12/RenderDeviceDX12.cpp | dmhud/asteroids_d3d12 | 3ecbb78d40408ac9e60a38ed59fc53f30fe86640 | [
"Apache-2.0"
] | null | null | null | RenderSystemDX12/RenderDeviceDX12.cpp | dmhud/asteroids_d3d12 | 3ecbb78d40408ac9e60a38ed59fc53f30fe86640 | [
"Apache-2.0"
] | null | null | null | #include "RenderDeviceDX12.h"
| 15.5 | 30 | 0.774194 | dmhud |
8859996be0134cd0138ae0a69d4713bd0fb147f8 | 2,054 | cc | C++ | code/render/coregraphics/d3d9/d3d9memorytextureloader.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/render/coregraphics/d3d9/d3d9memorytextureloader.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/render/coregraphics/d3d9/d3d9memorytextureloader.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | #include "stdneb.h"
#include "coregraphics/pixelformat.h"
#include "coregraphics/streamtextureloader.h"
#include "coregraphics/texture.h"
#include "coregraphics/renderdevice.h"
#include "MemoryTextureLoader.h"
#include "win360/d3d9types.h"
using namespace Win360;
using namespace Resources;
namespace Direct3D9
{
__Imp... | 28.929577 | 157 | 0.703505 | gscept |
885f839d8c306b52a4b4704a0374234a9b1fed1b | 1,365 | cpp | C++ | modules/cuda/src/MetaObject/cuda/MemoryBlock.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/cuda/src/MetaObject/cuda/MemoryBlock.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/cuda/src/MetaObject/cuda/MemoryBlock.cpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #include "MemoryBlock.hpp"
#include "common.hpp"
#include <MetaObject/logging/logging.hpp>
#include <cuda_runtime_api.h>
namespace mo
{
namespace cuda
{
uint8_t* CUDA::allocate(const uint64_t size, const int32_t)
{
void* ptr = nullptr;
cudaError_t err = cudaMalloc(&ptr... | 31.022727 | 102 | 0.594139 | dtmoodie |
8864e9c87b6fef03e5eb2da97637472364ac2133 | 992 | cpp | C++ | game/friend/friend.cpp | ooeyusea/game | 2ebac104e0e0c4281b025b4ad32f8c3b06bc54bd | [
"MIT"
] | null | null | null | game/friend/friend.cpp | ooeyusea/game | 2ebac104e0e0c4281b025b4ad32f8c3b06bc54bd | [
"MIT"
] | null | null | null | game/friend/friend.cpp | ooeyusea/game | 2ebac104e0e0c4281b025b4ad32f8c3b06bc54bd | [
"MIT"
] | 1 | 2019-07-04T03:24:22.000Z | 2019-07-04T03:24:22.000Z | #include "friend.h"
#include "initializor.h"
#include "XmlReader.h"
#include "servernode.h"
#include <thread>
#include "mysqlmgr.h"
#include "object_holder.h"
#include "dbdefine.h"
#define DEFAULT_POOL_SIZE (1024 * 1024)
#define DEFAULT_BATCH (8 * 1024)
Friend g_friend;
Friend::Friend() {
InitializorMgr::Instance()... | 19.45098 | 89 | 0.663306 | ooeyusea |
88741b18c04ba9fc6944452527db1ca0f14dc15c | 2,521 | cpp | C++ | napi/algorithms/onedirection.cpp | graeme-hill/snakebot | 21059e4b5e3153ada5e74ba2e1331c10b5142b2f | [
"MIT",
"Unlicense"
] | 8 | 2018-06-26T05:42:17.000Z | 2021-10-20T23:19:20.000Z | napi/algorithms/onedirection.cpp | graeme-hill/snakebot | 21059e4b5e3153ada5e74ba2e1331c10b5142b2f | [
"MIT",
"Unlicense"
] | null | null | null | napi/algorithms/onedirection.cpp | graeme-hill/snakebot | 21059e4b5e3153ada5e74ba2e1331c10b5142b2f | [
"MIT",
"Unlicense"
] | 5 | 2019-06-01T15:34:07.000Z | 2022-02-12T06:10:16.000Z | #include "onedirection.hpp"
#include "cautious.hpp"
#include "../movement.hpp"
#include "../astar.hpp"
#include <functional>
#include <unordered_map>
#include <sstream>
std::unordered_map<std::string, bool> OneDirection::_finishMap;
OneDirection::OneDirection(Direction direction) : _direction(direction)
{ }
Metadat... | 28.977011 | 125 | 0.666799 | graeme-hill |
887c5da5873c1fd70248f9eab83fb32d18e17203 | 1,572 | cpp | C++ | src/cfile.cpp | joeferner/node-shark | 88309cad7369781096b552eb36e1cdca2471bb42 | [
"MIT"
] | 44 | 2015-03-19T14:19:12.000Z | 2022-02-19T17:34:08.000Z | src/cfile.cpp | joeferner/node-shark | 88309cad7369781096b552eb36e1cdca2471bb42 | [
"MIT"
] | null | null | null | src/cfile.cpp | joeferner/node-shark | 88309cad7369781096b552eb36e1cdca2471bb42 | [
"MIT"
] | 9 | 2015-07-19T20:40:40.000Z | 2021-02-06T18:21:49.000Z | /* cfile.c
* capture_file GUI-independent manipulation
* Vassilii Khachaturov <vassilii@tarunz.org>
*
* $Id: cfile.c 36881 2011-04-27 02:54:44Z guy $
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redis... | 28.581818 | 78 | 0.679389 | joeferner |
887e7dc339c4fed9e2120b142ab3d28ad05d879b | 6,981 | cpp | C++ | src/gfx/opengl/mg_buffer_texture.cpp | Magnutic/mg-engine | 09862497bf99198281acc8227b135777491c58d3 | [
"BSD-3-Clause"
] | null | null | null | src/gfx/opengl/mg_buffer_texture.cpp | Magnutic/mg-engine | 09862497bf99198281acc8227b135777491c58d3 | [
"BSD-3-Clause"
] | null | null | null | src/gfx/opengl/mg_buffer_texture.cpp | Magnutic/mg-engine | 09862497bf99198281acc8227b135777491c58d3 | [
"BSD-3-Clause"
] | null | null | null | //**************************************************************************************************
// This file is part of Mg Engine. Copyright (c) 2020, Magnus Bergsten.
// Mg Engine is made available under the terms of the 3-Clause BSD License.
// See LICENSE.txt in the project's root directory.
//*****************... | 30.220779 | 100 | 0.529724 | Magnutic |
8880abbc556ddb6f7baa500a24ea40ae938650d3 | 426,038 | cpp | C++ | src/ints/bios.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | 3 | 2022-02-20T11:06:29.000Z | 2022-03-11T08:16:55.000Z | src/ints/bios.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | src/ints/bios.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2002-2021 The DOSBox 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 Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This p... | 41.079742 | 448 | 0.532506 | mediaexplorer74 |
8885496f45395f9f445d05ab7a5c9ece4c225142 | 869 | cpp | C++ | 3-1_aritmatika_nilai.cpp | ahfa92/cpp | bddd80ea5c6aca23c91bd6693bb32da06e67cbd2 | [
"MIT"
] | null | null | null | 3-1_aritmatika_nilai.cpp | ahfa92/cpp | bddd80ea5c6aca23c91bd6693bb32da06e67cbd2 | [
"MIT"
] | null | null | null | 3-1_aritmatika_nilai.cpp | ahfa92/cpp | bddd80ea5c6aca23c91bd6693bb32da06e67cbd2 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <conio.h>
#include <iostream.h>
main()
{
int a,b,c,d;
float hsl1,hsl2,hsl3,hsl4,total;
cout <<" Masukkan Nilai Absen :";cin>>a;
cout <<" Masukkan Nilai Tugas :";cin>>b;
cout <<" Masukkan Nilai UTS :";cin>>c;
cout <<" Masukkan Nilai UAS :";cin>>d;
hsl1 = a * 20 / 100;
hsl2 =... | 28.966667 | 55 | 0.469505 | ahfa92 |
888fb1d76408eae26b970cbbbc21976252d06c8a | 6,908 | cc | C++ | src/web_server/old/jobs.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 12 | 2017-11-05T21:02:58.000Z | 2022-03-28T23:11:51.000Z | src/web_server/old/jobs.cc | varqox/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 11 | 2017-01-05T18:11:41.000Z | 2019-11-01T12:40:55.000Z | src/web_server/old/jobs.cc | krzyk240/sim | b115a4e858dda1288917243e511751b835c28482 | [
"MIT"
] | 6 | 2016-12-25T11:22:34.000Z | 2020-10-20T16:03:51.000Z | #include "sim/contests/contest.hh"
#include "sim/jobs/utils.hh"
#include "sim/problems/permissions.hh"
#include "src/web_server/old/sim.hh"
using sim::jobs::Job;
using sim::problems::Problem;
using sim::submissions::Submission;
using sim::users::User;
using std::optional;
using std::string;
namespace web_server::old ... | 33.697561 | 95 | 0.624204 | varqox |
889006ef3f26eaf8d41bc9814206a2a2cc9e7338 | 3,394 | cc | C++ | src/repl/executionengine.cc | k3v/dfx-and-more | df435f624e78ad3b9c86f8b689b76b726f7883b2 | [
"MIT"
] | 2 | 2017-06-08T18:20:03.000Z | 2017-06-10T19:21:36.000Z | src/repl/executionengine.cc | furryfaust/dfx-and-more | df435f624e78ad3b9c86f8b689b76b726f7883b2 | [
"MIT"
] | null | null | null | src/repl/executionengine.cc | furryfaust/dfx-and-more | df435f624e78ad3b9c86f8b689b76b726f7883b2 | [
"MIT"
] | null | null | null | #include "dfxam.h"
using namespace dfxam;
repl::Function::Function(std::string name, ast::Expression* expr)
: name(name), expr(expr) {}
repl::Function::Function(ast::Assignment* a) {
ast::Expression* ident = a->getDeclaration()->getExpression();
if (ast::Function* func = dynamic_cast<ast::Function*>(ide... | 24.594203 | 82 | 0.605775 | k3v |
889ae23c9eaf7124a0cbc221bcbcc785a915a651 | 723 | cpp | C++ | cl_dll/in_camera.cpp | edgarbarney/halflife-planckepoch | 630e7066d8bf260783eaea7341f3c84fb87d69dd | [
"Unlicense"
] | 3 | 2021-08-08T14:22:11.000Z | 2022-02-02T03:08:17.000Z | cl_dll/in_camera.cpp | edgarbarney/halflife-planckepoch | 630e7066d8bf260783eaea7341f3c84fb87d69dd | [
"Unlicense"
] | 7 | 2021-02-27T01:55:27.000Z | 2021-09-06T17:32:43.000Z | cl_dll/in_camera.cpp | edgarbarney/halflife-planckepoch | 630e7066d8bf260783eaea7341f3c84fb87d69dd | [
"Unlicense"
] | 6 | 2021-03-14T15:35:17.000Z | 2022-01-10T22:53:15.000Z | //========= Copyright (c) 1996-2002, Valve LLC, All rights reserved. ============
// New clipping style camera - original idea by Xwider
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#include "hud.h"
#include "cl_util.h"
#include "camera.h"
#include "... | 18.075 | 81 | 0.591978 | edgarbarney |
88a468221244b97b14a732ac7772f388952e285a | 182 | cpp | C++ | Codeforces/A_AB_Balance.cpp | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/A_AB_Balance.cpp | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | Codeforces/A_AB_Balance.cpp | anubhab-code/Competitive-Programming | de28cb7d44044b9e7d8bdb475da61e37c018ac35 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
for(int i=0;i<t;i++) {
string a;
cin>>a;
a[a.length() - 1] = a[0];
cout<<a<<endl;
}
return 0;
}
| 12.133333 | 27 | 0.527473 | anubhab-code |
88a765367d9f6123c8a4a6f28abc47623683b10a | 2,145 | cpp | C++ | src/caffe/layers/moving_normalize_layer.cpp | Rashomon5487/caffe-windows | a136724edbd0f86bd66a5b0eb7043af33dbf1c8b | [
"BSD-2-Clause"
] | 1,617 | 2015-04-25T14:02:45.000Z | 2022-03-20T09:54:40.000Z | src/caffe/layers/moving_normalize_layer.cpp | he2016012996/caffe-windows | 967eedf25009e334b7f6f933bb5e17aaaff5bef6 | [
"BSD-2-Clause"
] | 319 | 2015-02-25T08:40:47.000Z | 2022-03-21T04:36:06.000Z | src/caffe/layers/moving_normalize_layer.cpp | he2016012996/caffe-windows | 967eedf25009e334b7f6f933bb5e17aaaff5bef6 | [
"BSD-2-Clause"
] | 834 | 2015-04-25T14:02:23.000Z | 2022-03-16T17:56:55.000Z | #include <algorithm>
#include <vector>
#include <cmath>
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/layers/moving_normalize_layer.hpp"
namespace caffe {
#define sign(x) (Dtype(0) < (x)) - ((x) < Dtype(0))
template <typename Dtype>
void MovingNormalizeLayer<Dtype>::LayerSetUp(... | 30.642857 | 83 | 0.654545 | Rashomon5487 |
88a85427d3aa1b26cb4b83be6141092807cb7d4a | 375 | cpp | C++ | ITP1/q34.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | ITP1/q34.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | ITP1/q34.cpp | felixny/AizuOnline | 8ff399d60077e08961845502d4a99244da580cd2 | [
"MIT"
] | null | null | null | // ITP1_10_B
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main(){
double a,b,th;
double PI=3.1415926535;
cin >> a >> b >> th;
th *= PI/180;
cout << fixed << setprecision(10);
cout << 0.5*a*b*sin(th) << endl;
cout << a +b +sqrt(a*a +b*b -2*a*b*cos(th)) ... | 18.75 | 56 | 0.544 | felixny |
88a8a1811d83bba97c635fc492dfc91a167ecc92 | 13,736 | cpp | C++ | src/mia_tests/Maths/Matrix.tests.cpp | alexlukeneumann/mia | d6288eede3cded6913600ac8c6451b2345835028 | [
"MIT"
] | null | null | null | src/mia_tests/Maths/Matrix.tests.cpp | alexlukeneumann/mia | d6288eede3cded6913600ac8c6451b2345835028 | [
"MIT"
] | null | null | null | src/mia_tests/Maths/Matrix.tests.cpp | alexlukeneumann/mia | d6288eede3cded6913600ac8c6451b2345835028 | [
"MIT"
] | null | null | null | #include <CppUnitTest.h>
#include <Maths/Matrix.h>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace mia
{
namespace tests
{
TEST_CLASS(MatrixTests)
{
static f32 constexpr c_Precision = 1e-3f;
public:
TEST_METHOD(CanConstruct_AZeroFilled... | 31.218182 | 127 | 0.386357 | alexlukeneumann |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.