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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19af1f39d75c27a6499933e4960cf4dda88d20a8 | 1,117 | hpp | C++ | model/behaviour/Farsighted.hpp | xdanielsb/BeastCollider | a4038c78b183cdb93fcbd4ae1402ca26fe553bbd | [
"Apache-2.0"
] | 2 | 2019-12-23T09:07:11.000Z | 2020-08-10T12:10:23.000Z | model/behaviour/Farsighted.hpp | xdanielsb/BeastCollider | a4038c78b183cdb93fcbd4ae1402ca26fe553bbd | [
"Apache-2.0"
] | null | null | null | model/behaviour/Farsighted.hpp | xdanielsb/BeastCollider | a4038c78b183cdb93fcbd4ae1402ca26fe553bbd | [
"Apache-2.0"
] | null | null | null | #ifndef _CFarsighted
#define _CFarsighted
#include"./IBehaviour.hpp"
using namespace std;
/**
* Implementation of behaviour Farsignted
*
* A Farsighted animal estimates the trajectories of critters
* around it and adjusts its trajectory to avoid possible collisions.
*
*
*/
class FarsightedB:public Behaviour{
... | 24.822222 | 69 | 0.622202 | xdanielsb |
30aadf746e1393372aa1f8fd134e458c914efb3d | 1,507 | cpp | C++ | src/module_run.cpp | sirofen/read-memory-dll | 035b008cdb6ffbf2d00f30234f9ef976c04eee1e | [
"MIT"
] | null | null | null | src/module_run.cpp | sirofen/read-memory-dll | 035b008cdb6ffbf2d00f30234f9ef976c04eee1e | [
"MIT"
] | null | null | null | src/module_run.cpp | sirofen/read-memory-dll | 035b008cdb6ffbf2d00f30234f9ef976c04eee1e | [
"MIT"
] | null | null | null | // module
#include <module/module_run.hpp>
// spdlog
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
// WINAPI
#include "Windows.h"
namespace {
LRESULT CALLBACK KeyboardProc(int n_code, WPARAM w_param, LPARAM l_param)
{
if (n_code < 0 || n_co... | 27.907407 | 107 | 0.686131 | sirofen |
30b562d1a13d5dc9cbabd0d301c0a5e79f9d1aa6 | 1,006 | cpp | C++ | Circles/Circles/Circles.cpp | IgorIgnatiev/Circles | 79ea4dba5e7b8aa1a8aafd1976a0ad0e5881987d | [
"Apache-2.0"
] | null | null | null | Circles/Circles/Circles.cpp | IgorIgnatiev/Circles | 79ea4dba5e7b8aa1a8aafd1976a0ad0e5881987d | [
"Apache-2.0"
] | null | null | null | Circles/Circles/Circles.cpp | IgorIgnatiev/Circles | 79ea4dba5e7b8aa1a8aafd1976a0ad0e5881987d | [
"Apache-2.0"
] | null | null | null | // Circles.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include <iostream>
#include<SFML/Graphics.hpp>
#include<thread>
using namespace sf;
CircleShape create()
{
std::shared_ptr<CircleShape> circle = std::make_shared<CircleShape>(20.0f);
(*circle.get()).setFi... | 20.12 | 107 | 0.634195 | IgorIgnatiev |
30b7613e495a3ba0622183a934e056c17799a602 | 1,127 | cpp | C++ | gueepo2D/engine/utils/ImageUtils.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 1 | 2022-02-03T19:24:47.000Z | 2022-02-03T19:24:47.000Z | gueepo2D/engine/utils/ImageUtils.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 4 | 2021-10-30T19:03:07.000Z | 2022-02-10T01:06:02.000Z | gueepo2D/engine/utils/ImageUtils.cpp | guilhermepo2/gueepo2D | deb03ff39c871710c07d36c366b53b34dbfebf08 | [
"MIT"
] | 1 | 2021-10-01T03:08:21.000Z | 2021-10-01T03:08:21.000Z | #include "gueepo2Dpch.h"
#include "ImageUtils.h"
#include "core/Log.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
namespace gueepo {
unsigned char* g_LoadImage(const char* path, int& outImageWidth, int& outImageHeight, int& outComponen... | 25.044444 | 139 | 0.705413 | guilhermepo2 |
30b871b79bb71b1d92d6785798dc82f0e2213812 | 1,359 | cpp | C++ | src/TableItens/Player.cpp | edubrunaldi/poker-bot | b851aa86c73a5b1b6c586439fbc01ccecac8c0f1 | [
"MIT"
] | null | null | null | src/TableItens/Player.cpp | edubrunaldi/poker-bot | b851aa86c73a5b1b6c586439fbc01ccecac8c0f1 | [
"MIT"
] | null | null | null | src/TableItens/Player.cpp | edubrunaldi/poker-bot | b851aa86c73a5b1b6c586439fbc01ccecac8c0f1 | [
"MIT"
] | 2 | 2019-09-08T10:40:21.000Z | 2021-01-06T16:17:37.000Z | //
// Created by xima on 07/07/19.
//
#include "../../includes/TableItens/Player.hpp"
Player::Player(PlayerPosition position, TableSize tableSize) {
if (position == P0) {
this->card1 = std::make_unique<Card>(Card(HAND_LEFT));
this->card2 = std::make_unique<Card>(Card(HAND_RIGHT));
this->stack = std::mak... | 27.734694 | 91 | 0.667403 | edubrunaldi |
30bee41ba1cbd7e910014b47efdf680937bacbdf | 316 | cpp | C++ | CommandLine.cpp | tgustafsson/myeditor | c2add8e01664cf58301058af017a9249cfd8832a | [
"Apache-2.0"
] | null | null | null | CommandLine.cpp | tgustafsson/myeditor | c2add8e01664cf58301058af017a9249cfd8832a | [
"Apache-2.0"
] | null | null | null | CommandLine.cpp | tgustafsson/myeditor | c2add8e01664cf58301058af017a9249cfd8832a | [
"Apache-2.0"
] | null | null | null | #include "CommandLine.h"
using namespace std;
KeyCord::command_return_t CommandLine::my_command_line_insert(shared_ptr<Model> model, shared_ptr<View> view, shared_ptr<Control> control, shared_ptr<Control> command_line_control, shared_ptr<Model> command_line_model)
{
return make_tuple(&my_empty_undo, false);
}
| 35.111111 | 218 | 0.816456 | tgustafsson |
30c0b32673f3e1ae21fa57a9f715df32ace30cc0 | 310 | cpp | C++ | 08. Test One/20321009/F/F.cpp | dimitarminchev/CS104 | e42144196b346cb394f0118c833fa2b1e4f06ea5 | [
"MIT"
] | 7 | 2021-03-24T16:30:45.000Z | 2022-03-27T09:02:15.000Z | 08. Test One/20321009/F/F.cpp | dimitarminchev/CS104 | e42144196b346cb394f0118c833fa2b1e4f06ea5 | [
"MIT"
] | null | null | null | 08. Test One/20321009/F/F.cpp | dimitarminchev/CS104 | e42144196b346cb394f0118c833fa2b1e4f06ea5 | [
"MIT"
] | 17 | 2021-03-22T09:42:22.000Z | 2022-03-28T03:24:07.000Z | #include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
for (int i = a; i <= b; i++)
{
if (i % 15 == 0)
{
cout << "fizzbuzz ";
}
else if (i % 5 == 0)
{
cout << "buzz ";
}
else if (i % 3 == 0)
{
cout << "fizz ";
}
else cout << i << " ";
}
return 0;
} | 12.4 | 29 | 0.412903 | dimitarminchev |
30c292fa4ff9a9dacb3f83b7984bc59778bc6671 | 3,719 | cc | C++ | source/gpu_perf_api_cl/cl_gpa_pass.cc | AdamJMiles/gpu_performance_api | 7bd0c8b484b2a658610581e2e48b615606130fdc | [
"MIT"
] | 61 | 2020-03-17T12:30:11.000Z | 2022-03-01T18:59:11.000Z | source/gpu_perf_api_cl/cl_gpa_pass.cc | AdamJMiles/gpu_performance_api | 7bd0c8b484b2a658610581e2e48b615606130fdc | [
"MIT"
] | 12 | 2020-03-24T15:46:54.000Z | 2022-01-08T02:03:31.000Z | source/gpu_perf_api_cl/cl_gpa_pass.cc | AdamJMiles/gpu_performance_api | 7bd0c8b484b2a658610581e2e48b615606130fdc | [
"MIT"
] | 19 | 2020-03-16T17:32:09.000Z | 2022-03-29T23:35:31.000Z | //==============================================================================
// Copyright (c) 2018-2020 Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief CL GPA Pass Object Implementation
//===================================================================... | 33.809091 | 129 | 0.708255 | AdamJMiles |
30c3aba06a0cc3b1c91fec618dfa49d3f800fac8 | 6,924 | hpp | C++ | 3DGE/include/tools/ResourceLoader.hpp | nflsilva/C3DGE | 9f1596c8e3842aeb095ad57d01f7d2e5e1587c3c | [
"Apache-2.0"
] | null | null | null | 3DGE/include/tools/ResourceLoader.hpp | nflsilva/C3DGE | 9f1596c8e3842aeb095ad57d01f7d2e5e1587c3c | [
"Apache-2.0"
] | null | null | null | 3DGE/include/tools/ResourceLoader.hpp | nflsilva/C3DGE | 9f1596c8e3842aeb095ad57d01f7d2e5e1587c3c | [
"Apache-2.0"
] | null | null | null | #ifndef RESOURCES_HPP
#define RESOURCES_HPP
#include <set>
#include <list>
#include <map>
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdio.h>
#include <string>
#include <string.h>
#include "tools/Log.hpp"
#include "stb_image/stb_image.h"
#include "tiny_obj_loader/tiny_obj_l... | 32.971429 | 93 | 0.566869 | nflsilva |
30c762bbffb059bf7166ecdef8371179a1c63968 | 2,473 | cpp | C++ | cpp/ip-device/src/main.cpp | PetarZecevic/smart-farm | d118e30cfdaacf75969013c25cd732e31a9345f0 | [
"Apache-2.0"
] | null | null | null | cpp/ip-device/src/main.cpp | PetarZecevic/smart-farm | d118e30cfdaacf75969013c25cd732e31a9345f0 | [
"Apache-2.0"
] | null | null | null | cpp/ip-device/src/main.cpp | PetarZecevic/smart-farm | d118e30cfdaacf75969013c25cd732e31a9345f0 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
//#include <chrono>
#include <unistd.h>
#include "ssdp_client.hpp"
#include "mqtt_client.hpp"
#define WAIT_TIME 1000*1000 // one second in microseconds
using namespace std;
//TODO: 1. Add virtual destructor to ReportFunction
//TODO: 2. Modify parameters and return value so it does not depend on J... | 24.485149 | 91 | 0.66114 | PetarZecevic |
30c97213c9d48459d40df217fe979f0e6374f4d7 | 3,081 | cpp | C++ | contrib/su4/cpp2tex/source/wtf/bsql.cpp | agrishutin/teambook | 7e9ca28cd10241edbf9cd04ebdc1df3fa1c4b107 | [
"MIT"
] | 13 | 2017-07-04T14:58:47.000Z | 2022-03-23T09:04:41.000Z | contrib/su4/cpp2tex/source/wtf/bsql.cpp | agrishutin/teambook | 7e9ca28cd10241edbf9cd04ebdc1df3fa1c4b107 | [
"MIT"
] | null | null | null | contrib/su4/cpp2tex/source/wtf/bsql.cpp | agrishutin/teambook | 7e9ca28cd10241edbf9cd04ebdc1df3fa1c4b107 | [
"MIT"
] | 5 | 2017-10-14T21:48:20.000Z | 2018-06-18T12:12:15.000Z | /*
* wtf/bsql.cpp — some improvements for sql api
*/
#include "../../include/wtf/bsql.h"
using tamias::chartype;
using tamias::sizetype;
using tamias::uinttype32;
using tamias::Pair;
using tamias::String;
using tamias::Vector;
using tamias::sql::Connection;
using tamias::sql::Result;
using tamias::wtf::BSqlConnecti... | 25.04878 | 91 | 0.59234 | agrishutin |
30c9bdca28e17cb40ac0dd49cc9f0fa24cfb3dde | 5,099 | cpp | C++ | test/test_ccl_coloring.cpp | tuan1225/parconnect_sc16 | bcd6f99101685d746cf30e22fa3c3f63ddd950c9 | [
"Apache-2.0"
] | null | null | null | test/test_ccl_coloring.cpp | tuan1225/parconnect_sc16 | bcd6f99101685d746cf30e22fa3c3f63ddd950c9 | [
"Apache-2.0"
] | null | null | null | test/test_ccl_coloring.cpp | tuan1225/parconnect_sc16 | bcd6f99101685d746cf30e22fa3c3f63ddd950c9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Georgia Institute of Technology
*
* 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 applicab... | 24.995098 | 76 | 0.654638 | tuan1225 |
30cb0cb5e8df96ebf9ac2fd4ad2467795c603fa5 | 733 | cpp | C++ | IrrlichtCLR/BillboardW.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | IrrlichtCLR/BillboardW.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | IrrlichtCLR/BillboardW.cpp | twesd/editor | 10ea9f535115dadab5694fecdb0c499d0013ac1b | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "BillboardW.h"
#include "Convertor.h"
BillboardW::BillboardW(ISceneNode* node, SharedParams_t* shareParams):
SceneNodeW(node, shareParams)
{
_billboard = dynamic_cast<Billboard*>(node);
}
void BillboardW::SetDimension(f32 width, f32 height)
{
_billboard->SetDimension(dimension2df(width,... | 19.810811 | 70 | 0.758527 | twesd |
30cb583082e1d532477a628c1003d1f61e615e52 | 753 | cpp | C++ | chewbot_gui/QT_widgets/jogAxisWidget/jogaxiswidget.cpp | drewhamiltonasdf/chewbot | 8fcbc8cf5890db2675e0af2c6b85fcd2825397cd | [
"MIT"
] | null | null | null | chewbot_gui/QT_widgets/jogAxisWidget/jogaxiswidget.cpp | drewhamiltonasdf/chewbot | 8fcbc8cf5890db2675e0af2c6b85fcd2825397cd | [
"MIT"
] | null | null | null | chewbot_gui/QT_widgets/jogAxisWidget/jogaxiswidget.cpp | drewhamiltonasdf/chewbot | 8fcbc8cf5890db2675e0af2c6b85fcd2825397cd | [
"MIT"
] | null | null | null | #include "jogaxiswidget.h"
/*
*
* If you make modifications to the form,
* you have to re-make the project, to
* install the QT designer plugin into the
* appropriate directory.
*
* cd ~/ros_ws/src/chewbot/QT_widgets/jogAxisWidget
* sudo qmake
* sudo make
* sudo make insta... | 22.147059 | 56 | 0.657371 | drewhamiltonasdf |
30cfea63786d16f703813270099aa3c88db77628 | 4,960 | hpp | C++ | tcob/include/tcob/gfx/drawables/ParticleSystem.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | 2 | 2021-08-18T19:14:35.000Z | 2021-12-01T14:14:49.000Z | tcob/include/tcob/gfx/drawables/ParticleSystem.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | tcob/include/tcob/gfx/drawables/ParticleSystem.hpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Tobias Bohnen
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include <tcob/tcob_config.hpp>
#include <functional>
#include <list>
#include <mutex>
#include <optional>
#include <vector>
#include <tcob/core/Random.hpp>
#include <tcob/co... | 28.505747 | 97 | 0.664315 | TobiasBohnen |
30d68a3a7649a66e3bdd328840f4597bcb9be833 | 12,208 | cpp | C++ | kcgistream.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kcgistream.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | null | null | null | kcgistream.cpp | ridgeware/dekaf2 | b914d880d1a5b7f5c8f89dedd36b13b7f4b0ee33 | [
"MIT"
] | 1 | 2021-08-20T16:15:01.000Z | 2021-08-20T16:15:01.000Z |
/*
//
// DEKAF(tm): Lighter, Faster, Smarter (tm)
//
// Copyright (c) 2018, Ridgeware, Inc.
//
// +-------------------------------------------------------------------------+
// | /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\|
// |/+----------------------------------------------------... | 32.468085 | 96 | 0.573231 | ridgeware |
30d7585356ab37aa28950b5d6addd78897d85f7c | 4,301 | cpp | C++ | src/tex_op/to_io.cpp | cewbost/texgen | f572ea5590457f37b72286c50c020eee25bddc78 | [
"MIT"
] | null | null | null | src/tex_op/to_io.cpp | cewbost/texgen | f572ea5590457f37b72286c50c020eee25bddc78 | [
"MIT"
] | null | null | null | src/tex_op/to_io.cpp | cewbost/texgen | f572ea5590457f37b72286c50c020eee25bddc78 | [
"MIT"
] | null | null | null |
#include "../tex_op.h"
#include "to_common.h"
namespace
{
void _copyc2t(Texture* dest, const uint8_t* src, int from, int to)
{
auto dest_p = dest->data() + from;
src += from * 4;
for(int i = from; i < to; ++i)
{
(*dest_p)[0] = (float)src[0] / 255;
(*dest_p)[1] = (float)src[1] / 255;
... | 26.22561 | 78 | 0.54778 | cewbost |
30dc2ac9fad5105724e2208182a2dfe5340ad24b | 898 | cpp | C++ | Questions Level-Wise/Easy/second-minimum-node-in-a-binary-tree.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | 2 | 2021-03-05T22:32:23.000Z | 2021-03-05T22:32:29.000Z | Tree/second-minimum-node-in-a-binary-tree.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | Tree/second-minimum-node-in-a-binary-tree.cpp | PrakharPipersania/LeetCode-Solutions | ea74534bbdcf1ca3ea4d88a1081582e0e15f50c7 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 24.27027 | 93 | 0.483296 | PrakharPipersania |
30e5591beb92bc041843428a9aa754e426be867e | 1,157 | hpp | C++ | reg/stm32/f0/timer.hpp | pavelrevak/io | c071af35fd0a2b5978e604555a170e48ac698f35 | [
"MIT"
] | 20 | 2018-03-14T11:05:00.000Z | 2022-03-13T13:28:26.000Z | reg/stm32/f0/timer.hpp | pavelrevak/io | c071af35fd0a2b5978e604555a170e48ac698f35 | [
"MIT"
] | null | null | null | reg/stm32/f0/timer.hpp | pavelrevak/io | c071af35fd0a2b5978e604555a170e48ac698f35 | [
"MIT"
] | 5 | 2018-07-15T11:44:03.000Z | 2020-11-08T18:06:33.000Z | /**
* Peripheral Definition File
*
* TIMER - Timers
*
* MCUs containing this peripheral:
* - STM32F0xx
*/
#pragma once
#include <cstdint>
#include <cstddef>
#include "io/reg/stm32/_common/timer.hpp"
namespace io {
namespace base {
static const size_t TIM1 = 0x40012c00;
static const size_t TIM2 = 0x40000000;
stat... | 26.295455 | 62 | 0.737252 | pavelrevak |
30e6c0f70a0771445a978297b9216dc992f58398 | 1,269 | cpp | C++ | vsr/private/vsr_framebuffer.cpp | sanglin307/vsr_dev | 21fe9a3cbdc003c51092702bc9445acc49016277 | [
"MIT"
] | null | null | null | vsr/private/vsr_framebuffer.cpp | sanglin307/vsr_dev | 21fe9a3cbdc003c51092702bc9445acc49016277 | [
"MIT"
] | null | null | null | vsr/private/vsr_framebuffer.cpp | sanglin307/vsr_dev | 21fe9a3cbdc003c51092702bc9445acc49016277 | [
"MIT"
] | null | null | null | #include "vsr_common.h"
#include "vsr_framebuffer.h"
#include "vsr_device.h"
VkAllocationCallbacks *MemoryAlloc<VkFramebuffer_T, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT>::_pAllocator = nullptr;
VkFramebuffer_T::VkFramebuffer_T(const VkFramebufferCreateInfo* pCreateInfo)
:_renderPass(pCreateInfo->renderPass),_width(pCreat... | 29.511628 | 123 | 0.687155 | sanglin307 |
30e83e86ed41aa598e132975f1358b910ae76be1 | 2,222 | cc | C++ | src/demo/sky_quad.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | 3 | 2020-06-22T19:37:49.000Z | 2020-11-14T10:45:27.000Z | src/demo/sky_quad.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | 1 | 2020-06-03T13:05:24.000Z | 2020-06-03T13:05:24.000Z | src/demo/sky_quad.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | null | null | null | #include "sky_quad.h"
#include "../base/interpolation.h"
#include "../base/log.h"
#include "../base/random.h"
#include "../engine/engine.h"
#include "../engine/renderer/geometry.h"
#include "../engine/renderer/shader.h"
#include "../engine/shader_source.h"
using namespace base;
using namespace eng;
SkyQuad::SkyQuad(... | 27.097561 | 80 | 0.687219 | auygun |
30edfa2c47c22a98787740b358212b5adce9ea90 | 3,570 | cpp | C++ | Blue-Flame-Engine/Core/BF/Graphics/TerrainGenerator.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | 2 | 2020-10-12T13:40:05.000Z | 2021-09-17T08:37:03.000Z | Blue-Flame-Engine/Core/BF/Graphics/TerrainGenerator.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | null | null | null | Blue-Flame-Engine/Core/BF/Graphics/TerrainGenerator.cpp | FantasyVII/Blue-Flame-Engine | b0e44ccffdd41539fa9075e5d6a2b3c1cc811d96 | [
"MIT"
] | null | null | null | #include "TerrainGenerator.h"
#include "BF/Engine.h"
#include "BF/Graphics/Mesh.h"
#include "BF/Math/Math.h"
#include "BF/IO/ImageLoader.h"
#include "BF/System/Debug.h"
#define TERRAIN_WIDTH 256
#define TERRAIN_HEIGHT 256
#define QUAD_INDICES 6
#define ROW_VERTICES (TERRAIN_WIDTH + 1)
#define COLUMN_VERTICES (T... | 29.02439 | 211 | 0.660784 | FantasyVII |
30f296a8f13e25ddbfadf1510a2947350f646505 | 732 | hpp | C++ | lib/filesystem/include/filesystem/detail.hpp | mbwatson/irods | c242db4cb20155500767d76b62bcbc4d4032b6cf | [
"BSD-3-Clause"
] | null | null | null | lib/filesystem/include/filesystem/detail.hpp | mbwatson/irods | c242db4cb20155500767d76b62bcbc4d4032b6cf | [
"BSD-3-Clause"
] | null | null | null | lib/filesystem/include/filesystem/detail.hpp | mbwatson/irods | c242db4cb20155500767d76b62bcbc4d4032b6cf | [
"BSD-3-Clause"
] | null | null | null | #ifndef IRODS_FILESYSTEM_DETAIL_HPP
#define IRODS_FILESYSTEM_DETAIL_HPP
#include "filesystem/path.hpp"
#include "filesystem/filesystem_error.hpp"
#include "rodsDef.h"
#include <cstring>
namespace irods::experimental::filesystem::detail
{
inline void throw_if_path_length_exceeds_limit(const irods::experimental::... | 27.111111 | 111 | 0.718579 | mbwatson |
30f3bfd1cc119978cf3e18485240268ca99b2c08 | 6,550 | hpp | C++ | HEIG_PRG1_labo32/Sint.hpp | DrC0okie/HEIG_PRG1_Labos | c8433a1bd171946cc68ecb95c1a54dc60e832d9b | [
"MIT"
] | null | null | null | HEIG_PRG1_labo32/Sint.hpp | DrC0okie/HEIG_PRG1_Labos | c8433a1bd171946cc68ecb95c1a54dc60e832d9b | [
"MIT"
] | null | null | null | HEIG_PRG1_labo32/Sint.hpp | DrC0okie/HEIG_PRG1_Labos | c8433a1bd171946cc68ecb95c1a54dc60e832d9b | [
"MIT"
] | null | null | null | // File: Sint.hpp
// Author: Timothee Van Hove
// Date: 15.01.2022
// Description: Header of the Sint class
#ifndef SINT_HPP
#define SINT_HPP
#include "Uint.hpp"
class Sint
{
private:
Uint iValue;
bool isPositive;
/** @brief Compares if the left Sint is <, >, or ==
* @param left ... | 41.455696 | 80 | 0.651756 | DrC0okie |
30f7a34e7ea9b1c8998252d21e081466ed32cd3c | 2,734 | cpp | C++ | examples/inclusivescan/apps/withmess/main.cpp | LouisCharlesC/mess | 4ecae6ff5cfc3313e4d30ca2681f75eb89705d7e | [
"MIT"
] | 22 | 2019-04-08T15:34:13.000Z | 2022-02-13T08:26:07.000Z | examples/inclusivescan/apps/withmess/main.cpp | LouisCharlesC/mess | 4ecae6ff5cfc3313e4d30ca2681f75eb89705d7e | [
"MIT"
] | null | null | null | examples/inclusivescan/apps/withmess/main.cpp | LouisCharlesC/mess | 4ecae6ff5cfc3313e4d30ca2681f75eb89705d7e | [
"MIT"
] | null | null | null | /**
* @file main.cpp
* @author L.-C. C.
* @brief
* @version 0.1
* @date 2020-02-06
*
* @copyright Copyright (c) 2020
*
*/
#include <checker.h>
#include <scanner.h>
#include <source.h>
#include <mess/mess.h>
#include <cassert>
#include <chrono>
#include <cstddef>
#include <iostream>
#include <iterator>
#i... | 27.897959 | 141 | 0.694587 | LouisCharlesC |
30f7f8444719827755239028f97ea1848831bba4 | 2,632 | cpp | C++ | tools/vsimporter/src/PBX/XCConfigurationList.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | 1 | 2016-02-08T02:29:19.000Z | 2016-02-08T02:29:19.000Z | tools/vsimporter/src/PBX/XCConfigurationList.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | null | null | null | tools/vsimporter/src/PBX/XCConfigurationList.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | null | null | null | //******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | 37.6 | 143 | 0.713146 | Art52123103 |
30fcb8b653eedd9869c3fce02ab2ea28bfe5deca | 4,805 | cpp | C++ | trajectory_planner/src/trajectory_planner_nodelet_aux.cpp | ricardolfsilva/trajectory_planner | 0840d74921feb79569de67a765c7d3c011ff8868 | [
"MIT"
] | 1 | 2021-09-25T15:05:04.000Z | 2021-09-25T15:05:04.000Z | trajectory_planner/src/trajectory_planner_nodelet_aux.cpp | ricardolfsilva/trajectory_planner | 0840d74921feb79569de67a765c7d3c011ff8868 | [
"MIT"
] | null | null | null | trajectory_planner/src/trajectory_planner_nodelet_aux.cpp | ricardolfsilva/trajectory_planner | 0840d74921feb79569de67a765c7d3c011ff8868 | [
"MIT"
] | null | null | null | /**************************************************************************************************
Software License Agreement (BSD License)
Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
All rights reserved.
Redistribution and use in source and binary forms, with o... | 35.858209 | 100 | 0.713424 | ricardolfsilva |
30fdfdc570d46c64ac40f7438577bcbdd2f94584 | 612 | cpp | C++ | sources/laba06-5.cpp | aleksandrbezzubenko/Sort_set | 2c57005ae5662f3e1e83a8101dd7740235cabd40 | [
"MIT"
] | null | null | null | sources/laba06-5.cpp | aleksandrbezzubenko/Sort_set | 2c57005ae5662f3e1e83a8101dd7740235cabd40 | [
"MIT"
] | null | null | null | sources/laba06-5.cpp | aleksandrbezzubenko/Sort_set | 2c57005ae5662f3e1e83a8101dd7740235cabd40 | [
"MIT"
] | null | null | null | // Copyright 2018 Your Name <your_email>
#include <iostream>
#include <vector>
#include <string>
#include "header.hpp"
#include "student.hpp"
std::vector<Student> VectorMathExcellent(const std::vector<Student>& studmath)
{
std::vector<Student> math5 = {};
for (int i = 0; i < studmath.size(); ++i) {
int ... | 26.608696 | 78 | 0.535948 | aleksandrbezzubenko |
a509f63d0cc3daeb84d705f9fb7b2e7f6d8d0804 | 11,261 | cpp | C++ | src/kernel.cpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | src/kernel.cpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | src/kernel.cpp | v-dobrev/occa | 58e47f5ccf0d87f5b91e6851b2d74a9456c46b2c | [
"MIT"
] | null | null | null | /* The MIT License (MIT)
*
* Copyright (c) 2014-2018 David Medina and Tim Warburton
*
* 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 t... | 27.266344 | 85 | 0.593375 | v-dobrev |
a50b360c877ccb2bcd385ecdc9dfa0f6a4991d86 | 3,140 | cpp | C++ | src/Soldier.cpp | sunverwerth/olcjamj2020 | cefb7cc4d586cac50653e4073e67d0954071ee46 | [
"MIT"
] | 4 | 2020-09-27T11:46:14.000Z | 2022-01-08T19:08:06.000Z | src/Soldier.cpp | sunverwerth/olcjam2020 | cefb7cc4d586cac50653e4073e67d0954071ee46 | [
"MIT"
] | null | null | null | src/Soldier.cpp | sunverwerth/olcjam2020 | cefb7cc4d586cac50653e4073e67d0954071ee46 | [
"MIT"
] | null | null | null | /*
Copyright(c) 2020 Stephan Unverwerth
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwareand associated documentation files(the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | 30.485437 | 170 | 0.658917 | sunverwerth |
a510507e881367d066522d09f575b6664d99df68 | 1,091 | cpp | C++ | test/assert/optional_error.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/assert/optional_error.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/assert/optional_error.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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)
#include <fcppt/assert/optional_error.hpp>
#include <fcppt/catch/begin.hpp>
#include <fcppt/catch/e... | 27.974359 | 90 | 0.738772 | freundlich |
a51140fffe69b0aa80f263e22aa044e3291bded0 | 1,104 | cpp | C++ | CSCommon/Source/MPacketHShieldCrypter.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | CSCommon/Source/MPacketHShieldCrypter.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | CSCommon/Source/MPacketHShieldCrypter.cpp | WhyWolfie/source2007 | 324257e9c69bbaec872ebb7ae4f96ab2ce98f520 | [
"FSFAP"
] | null | null | null | #include "stdafx.h"
#include "MPacketHShieldCrypter.h"
HSCRYPT_KEYINFO MPacketHShieldCrypter::m_HsKeyInfo;
unsigned char MPacketHShieldCrypter::m_OutputBuf[MAX_PACKET_SIZE];
MPacketHShieldCrypter::MPacketHShieldCrypter(void)
{
}
MPacketHShieldCrypter::~MPacketHShieldCrypter(void)
{
}
DWORD MPacketHShieldCrypter::In... | 26.926829 | 100 | 0.811594 | WhyWolfie |
a5138000b24c1e3673b5dadd61be606caa1c8b1a | 3,229 | cpp | C++ | cobs/file/classic_index_header.cpp | danielf-93/cobs | 56157f93f4564f5ef2c5f62401a2e75a6994687f | [
"MIT"
] | 5 | 2019-02-21T10:42:44.000Z | 2020-01-29T01:56:00.000Z | cobs/file/classic_index_header.cpp | danielf-93/cobs | 56157f93f4564f5ef2c5f62401a2e75a6994687f | [
"MIT"
] | null | null | null | cobs/file/classic_index_header.cpp | danielf-93/cobs | 56157f93f4564f5ef2c5f62401a2e75a6994687f | [
"MIT"
] | 2 | 2019-02-10T21:35:06.000Z | 2019-07-14T01:46:09.000Z | /*******************************************************************************
* cobs/file/classic_index_header.cpp
*
* Copyright (c) 2018 Florian Gauger
*
* All rights reserved. Published under the MIT License in the LICENSE file.
******************************************************************************/
... | 35.877778 | 132 | 0.632704 | danielf-93 |
a51551a1da25a001349d4466de4dc5c6557a12cc | 3,000 | hpp | C++ | include/nmp/concepts.hpp | gnzlbg/nmp | a3c1f286abfabaa043f47ea61ab052c54901be2b | [
"BSL-1.0"
] | 21 | 2015-11-24T16:32:35.000Z | 2020-11-24T13:20:06.000Z | include/nmp/concepts.hpp | gnzlbg/nmp | a3c1f286abfabaa043f47ea61ab052c54901be2b | [
"BSL-1.0"
] | null | null | null | include/nmp/concepts.hpp | gnzlbg/nmp | a3c1f286abfabaa043f47ea61ab052c54901be2b | [
"BSL-1.0"
] | 3 | 2017-08-25T15:42:53.000Z | 2019-10-21T06:36:14.000Z | #pragma once
////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2014 Gonzalo Brito Gadeschi.
//
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE... | 31.25 | 80 | 0.557 | gnzlbg |
a5157e45c8bfe77eb04abbcd9dd4997c3377849e | 2,309 | cpp | C++ | source/direct3d9/EffectDefault.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/direct3d9/EffectDefault.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/direct3d9/EffectDefault.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, ... | 32.069444 | 121 | 0.71243 | HeavenWu |
a51eb91f0a613879611dbdb39f9f0bb382c780ee | 20,182 | cpp | C++ | src/Engine/CameraSystem.cpp | fgagamedev/voID | 37cd56fe2878d036c36dafcf595e48ed85408d02 | [
"MIT"
] | null | null | null | src/Engine/CameraSystem.cpp | fgagamedev/voID | 37cd56fe2878d036c36dafcf595e48ed85408d02 | [
"MIT"
] | null | null | null | src/Engine/CameraSystem.cpp | fgagamedev/voID | 37cd56fe2878d036c36dafcf595e48ed85408d02 | [
"MIT"
] | null | null | null | /*
@file CameraSystem.cpp
@brief Class that manages the game image,
including the scenes the zoom and speed that the screen moves.
@copyright LGPL. MIT License.
*/
#include "Engine/CameraSystem.hpp"
#include "Customs/MapScript.hpp"
CameraSystem *CameraSystem::m_instance = nullptr;
/*
@brief Sets... | 37.304991 | 141 | 0.596125 | fgagamedev |
a522b6e8176227d7ac73230884e6a4d50397e71a | 3,733 | cpp | C++ | Chapter24/BasicOption.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter24/BasicOption.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | Chapter24/BasicOption.cpp | alamlam1982/fincpp | 470469d35d90fc0fde96f119e329aedbc5f68f89 | [
"CECILL-B"
] | null | null | null | // BasicOption.cpp
//
// Author: Daniel Duffy
//
// 2005-10-15 DD new class for C++ book
// 2006-2-1 DD pathological cases U = 0 and T = 0 for C and P
// 2006-2-2 DD implemented the payoff function for call and put
//
// (C) Datasim Component Technology BV 2003-2006
//
#ifndef BasicOption_cpp
#define BasicOption_cpp
... | 15.236735 | 90 | 0.566033 | alamlam1982 |
a525350263d1c9a0e77db32dc0eb9fe7d7e0917b | 1,309 | hpp | C++ | include/codegen/include/UnityEngine/MeshFilter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/MeshFilter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/MeshFilter.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:28 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: UnityEngine.Component
#include "UnityEngine/Component.hpp"
#include "utils/il2cpp-utils.... | 33.564103 | 78 | 0.698243 | Futuremappermydud |
a528e65715c8d631d23bc836ad4c8ebe924ae2f3 | 2,718 | cpp | C++ | source/gui/program_data.cpp | korteelko/asp_therm | 4e6aa6e2551bb36418d83b7b5450b42d6896f461 | [
"MIT"
] | 1 | 2018-12-11T09:06:47.000Z | 2018-12-11T09:06:47.000Z | source/gui/program_data.cpp | korteelko/asp_therm | 4e6aa6e2551bb36418d83b7b5450b42d6896f461 | [
"MIT"
] | 3 | 2019-11-10T21:08:59.000Z | 2020-01-23T03:05:21.000Z | source/gui/program_data.cpp | korteelko/asp_therm | 4e6aa6e2551bb36418d83b7b5450b42d6896f461 | [
"MIT"
] | null | null | null | /**
* asp_therm - implementation of real gas equations of state
*
*
* Copyright (c) 2020-2021 Mishutinski Yurii
*
* This library is distributed under the MIT License.
* See LICENSE file in the project root for full license information.
*/
#include "program_data.h"
#include "target_sys.h"
#include <QDir>
#inc... | 24.053097 | 76 | 0.681015 | korteelko |
a528e68c3fc61ab15a5811780b05f291eccbf43a | 17,042 | cpp | C++ | arangod/Aql/DistributeExecutor.cpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | arangod/Aql/DistributeExecutor.cpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | arangod/Aql/DistributeExecutor.cpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of... | 36.105932 | 106 | 0.67627 | corona3000 |
a52bee6770aa24e0bf125bd1404ccb1532f66628 | 414 | cpp | C++ | Gateway/main/src/graphics/API/OGL/VertexBuffer_GL.cpp | Idogftw/ProjectRev | cf3b78d211f0bc38480801bcc3e91b692a6879f4 | [
"MIT"
] | null | null | null | Gateway/main/src/graphics/API/OGL/VertexBuffer_GL.cpp | Idogftw/ProjectRev | cf3b78d211f0bc38480801bcc3e91b692a6879f4 | [
"MIT"
] | null | null | null | Gateway/main/src/graphics/API/OGL/VertexBuffer_GL.cpp | Idogftw/ProjectRev | cf3b78d211f0bc38480801bcc3e91b692a6879f4 | [
"MIT"
] | null | null | null | #include "graphics/API/OGL/VertexBuffer_GL.hpp"
namespace Gateway
{
VertexBuffer_GL::VertexBuffer_GL(VertexObjectTypes m_object_type, VertexDrawTypes t_draw_type, VertexStorageTypes m_storage_type)
: m_draw_type(t_draw_type), IVertexBuffer(m_object_type, t_draw_type, m_storage_type)
{
}
VertexBuffer_GL::~Vertex... | 21.789474 | 130 | 0.782609 | Idogftw |
a52d3e30f73b7d2ce696d5f7383e357de4e7c68f | 794 | hpp | C++ | src/external.hpp | mdraven/terrafirmacraft_alloys | b96b47fbbfcc30d1be2b346049814fc47131e82b | [
"MIT"
] | null | null | null | src/external.hpp | mdraven/terrafirmacraft_alloys | b96b47fbbfcc30d1be2b346049814fc47131e82b | [
"MIT"
] | null | null | null | src/external.hpp | mdraven/terrafirmacraft_alloys | b96b47fbbfcc30d1be2b346049814fc47131e82b | [
"MIT"
] | null | null | null |
#ifndef _EXTERNAL_H_917E67ED622B_
#define _EXTERNAL_H_917E67ED622B_
#ifdef __GNUC__
#pragma GCC system_header
#endif
// Qt5
#include <QtCore/QFile>
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonObject>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QtDebug>
#include <QtGui/QPixmap>
#includ... | 19.85 | 38 | 0.7733 | mdraven |
a5311f43636a12976478872610ee503b8375ee19 | 126 | hpp | C++ | Core/Game/Enum/GameCommand.hpp | LinkClinton/MinesweeperVersus | fc5d4fa8aa7e2b6d4fd798d52a1614c243f4e308 | [
"MIT"
] | 1 | 2019-11-30T07:12:32.000Z | 2019-11-30T07:12:32.000Z | Core/Game/Enum/GameCommand.hpp | LinkClinton/MinesweeperVersus | fc5d4fa8aa7e2b6d4fd798d52a1614c243f4e308 | [
"MIT"
] | null | null | null | Core/Game/Enum/GameCommand.hpp | LinkClinton/MinesweeperVersus | fc5d4fa8aa7e2b6d4fd798d52a1614c243f4e308 | [
"MIT"
] | null | null | null | #pragma once
namespace Minesweeper {
enum class GameCommand : unsigned {
eCheckAll = 0,
eCheck = 1,
eFlag = 2
};
} | 11.454545 | 36 | 0.642857 | LinkClinton |
a53282620a38d44b270769c19209c87daa7e1f9a | 464 | cpp | C++ | problem_solving/CodeForces/463A/11651884_AC_15ms_4kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 2 | 2020-09-02T12:07:47.000Z | 2020-11-17T11:17:16.000Z | problem_solving/CodeForces/463A/11651884_AC_15ms_4kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | null | null | null | problem_solving/CodeForces/463A/11651884_AC_15ms_4kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
int len, s;
scanf("%d %d", &len, &s);
int max_ve = 0;
int a, b;
bool f = 0;
for(int i = 0; i < len; i++){
scanf("%d %d", &a, &b);
if(a < s && (100 - b) > max_ve && b){
max_ve = max(max_ve, (100 - b));
f = 1;
}
else if(b... | 16.571429 | 41 | 0.43319 | cosmicray001 |
a5383954a101ef638414811375f09c8094cc182a | 2,529 | ipp | C++ | include/benchmarks/implementation/component/BenchmarkParticleSystemSimple.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | null | null | null | include/benchmarks/implementation/component/BenchmarkParticleSystemSimple.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | null | null | null | include/benchmarks/implementation/component/BenchmarkParticleSystemSimple.ipp | thorbenlouw/CUP-CFD | d06f7673a1ed12bef24de4f1b828ef864fa45958 | [
"MIT"
] | null | null | null | /**
* @file
* @author University of Warwick
* @version 1.0
*
* @section LICENSE
*
* @section DESCRIPTION
*
* Header level definitions for the BenchmarkParticleSystem class.
*/
#ifndef CUPCFD_BENCHMARK_BENCHMARK_PARTICLESYSTEM_SIMPLE_IPP_H
#define CUPCFD_BENCHMARK_BENCHMARK_PARTICLESYSTEM_SIMPLE_IPP_H
#inclu... | 29.406977 | 113 | 0.697113 | thorbenlouw |
a53f22692db61fddc8b87bb8977d87ccc0fd8a1a | 3,354 | hpp | C++ | games/saloon/young_gun.hpp | JackLimes/Joueur.cpp | d7dc45b5f95d9b3fc8c9cb846d63d6f44c83a61b | [
"MIT"
] | 9 | 2015-12-09T18:49:55.000Z | 2021-01-08T21:45:54.000Z | games/saloon/young_gun.hpp | JackLimes/Joueur.cpp | d7dc45b5f95d9b3fc8c9cb846d63d6f44c83a61b | [
"MIT"
] | 14 | 2015-11-06T19:26:56.000Z | 2019-10-19T07:45:11.000Z | games/saloon/young_gun.hpp | JackLimes/Joueur.cpp | d7dc45b5f95d9b3fc8c9cb846d63d6f44c83a61b | [
"MIT"
] | 21 | 2015-10-16T03:57:23.000Z | 2020-11-08T16:48:16.000Z | #ifndef GAMES_SALOON_YOUNG_GUN_H
#define GAMES_SALOON_YOUNG_GUN_H
// YoungGun
// An eager young person that wants to join your gang, and will call in the veteran Cowboys you need to win the brawl in the saloon.
// DO NOT MODIFY THIS FILE
// Never try to directly create an instance of this class, or modify its member ... | 32.882353 | 143 | 0.66458 | JackLimes |
a53f97a4fe6b0cb9078bec0ac5db51d578e78b9e | 5,905 | tcc | C++ | libraries/nodes/tcc/MultiplexerNode.tcc | siddu1998/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | 1 | 2018-11-08T06:19:31.000Z | 2018-11-08T06:19:31.000Z | libraries/nodes/tcc/MultiplexerNode.tcc | vishnoitanuj/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | null | null | null | libraries/nodes/tcc/MultiplexerNode.tcc | vishnoitanuj/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | 1 | 2019-12-19T10:02:48.000Z | 2019-12-19T10:02:48.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: MultiplexerNode.tcc (nodes)
// Authors: Ofer Dekel
//
////////////////////////////////////////////////////////////////////////////////////////////////////... | 44.398496 | 194 | 0.657917 | siddu1998 |
a5411101df727829f26e685e806b84c1a319c403 | 395 | hpp | C++ | include/pkg/deb/preinst.hpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | include/pkg/deb/preinst.hpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | include/pkg/deb/preinst.hpp | naughtybikergames/pkg | 9a78380c6cf82c95dec3968a7ed69000b349113d | [
"MIT"
] | null | null | null | #ifndef PKG_DEB_PREINST_HPP
#define PKG_DEB_PREINST_HPP
#include <string>
namespace pkg {
namespace deb {
class preinst {
private:
std::string _preinst;
public:
preinst();
std::string to_string() const;
};
}
}
std::ostre... | 18.809524 | 77 | 0.556962 | naughtybikergames |
a542bf3623e94562e2ad36d7a27ec2c15bc72343 | 4,507 | cpp | C++ | position-receiver-qt/src/positionreceiver.cpp | keithel/helloworld-capnproto-streamer | 946b14465af4ea7ee5bea4d7e521b38abd6f4d1e | [
"Apache-2.0"
] | 1 | 2017-11-03T08:13:04.000Z | 2017-11-03T08:13:04.000Z | position-receiver-qt/src/positionreceiver.cpp | keithel/helloworld-capnproto-streamer | 946b14465af4ea7ee5bea4d7e521b38abd6f4d1e | [
"Apache-2.0"
] | null | null | null | position-receiver-qt/src/positionreceiver.cpp | keithel/helloworld-capnproto-streamer | 946b14465af4ea7ee5bea4d7e521b38abd6f4d1e | [
"Apache-2.0"
] | null | null | null | #include "positionreceiver.h"
#include <QUdpSocket>
#include <capnp/message.h>
#include <capnp/serialize.h>
#include "position.capnp.h"
#include <QtConcurrent/QtConcurrent>
using ::capnp::word;
PositionReceiver::PositionReceiver(QObject* parent, bool enableTesting)
: QObject(parent)
, m_nPerSecCounter(0)
... | 31.298611 | 164 | 0.658753 | keithel |
a543bf12b8bfb56239611159a144ce6c7d0cd549 | 1,941 | cpp | C++ | aws-cpp-sdk-appstream/source/model/SharedImagePermissions.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-appstream/source/model/SharedImagePermissions.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-appstream/source/model/SharedImagePermissions.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 22.835294 | 78 | 0.756826 | curiousjgeorge |
a5470e0033e2faf088392f6744563ef2d0c86f0a | 823 | cpp | C++ | Reverse Engineering/C++/Medium/Abyss/source/index.cpp | Original-Psych0/SweetChallenges | 828cb622a9320abb0676964e595fb2a95525864e | [
"MIT"
] | 2 | 2021-11-27T06:31:22.000Z | 2022-03-25T02:14:41.000Z | Reverse Engineering/C++/Medium/Abyss/source/index.cpp | Original-Psych0/SweetChallenges | 828cb622a9320abb0676964e595fb2a95525864e | [
"MIT"
] | null | null | null | Reverse Engineering/C++/Medium/Abyss/source/index.cpp | Original-Psych0/SweetChallenges | 828cb622a9320abb0676964e595fb2a95525864e | [
"MIT"
] | 1 | 2022-03-25T02:14:42.000Z | 2022-03-25T02:14:42.000Z | //Dependencies
#include <iostream>
//Workspaces
using namespace std;
//Variables
string the_password = "awnrawraw";
//Functions
int adder(){
the_password += "_21n52859112";
return 0;
}
//Main
int main(){
the_password += "a";
the_password += "c";
the_password += "d";
the_password += "f";
... | 18.704545 | 101 | 0.583232 | Original-Psych0 |
a54859cacb068f67bdb9013c387bc1369287231d | 721 | cpp | C++ | example/main.cpp | martin-olivier/dylib | e06af0f3b5c780d35659c54ea3f7aad9ae008494 | [
"MIT"
] | 19 | 2022-01-24T12:42:48.000Z | 2022-03-26T05:37:48.000Z | example/main.cpp | martin-olivier/Dylib | e06af0f3b5c780d35659c54ea3f7aad9ae008494 | [
"MIT"
] | 1 | 2022-03-01T10:09:51.000Z | 2022-03-02T17:16:58.000Z | example/main.cpp | martin-olivier/dylib | e06af0f3b5c780d35659c54ea3f7aad9ae008494 | [
"MIT"
] | 2 | 2022-01-13T02:50:19.000Z | 2022-01-18T04:22:24.000Z | #include <iostream>
#include "dylib.hpp"
int main() {
try {
dylib lib("./dynamic_lib", dylib::extension);
auto adder = lib.get_function<double(double, double)>("adder");
std::cout << adder(5, 10) << std::endl;
auto printer = lib.get_function<void()>("print_hello");
... | 28.84 | 72 | 0.539528 | martin-olivier |
a549391dbcc1e656f320def31201b10150472bbc | 2,580 | hpp | C++ | ueye.cpp/include/trigger.hpp | fallfromgrace/ueye.cpp | 775069bca16a6eeea5bb8e5dcda347328f8f2f49 | [
"MIT"
] | null | null | null | ueye.cpp/include/trigger.hpp | fallfromgrace/ueye.cpp | 775069bca16a6eeea5bb8e5dcda347328f8f2f49 | [
"MIT"
] | null | null | null | ueye.cpp/include/trigger.hpp | fallfromgrace/ueye.cpp | 775069bca16a6eeea5bb8e5dcda347328f8f2f49 | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
#include "uEye.h"
#include "includes.hpp"
#include "error.hpp"
namespace ids
{
//
enum trigger_mode
{
// trigger is generated by the driver
software,
// trigger is generated by the hardware.
freerun,
// trigger is external, from hi to lo.
hi_lo,
};
namespace de... | 18.297872 | 63 | 0.698062 | fallfromgrace |
a54b163236b066236f43f2cc172d628c9bbe95a6 | 9,014 | cpp | C++ | Source/Engine/Resources/tiledMap/tiledSet.cpp | SirRamEsq/LEngine | 24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c | [
"Apache-2.0"
] | 1 | 2020-05-24T14:04:12.000Z | 2020-05-24T14:04:12.000Z | Source/Engine/Resources/tiledMap/tiledSet.cpp | SirRamEsq/LEngine | 24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c | [
"Apache-2.0"
] | 21 | 2017-09-20T13:39:12.000Z | 2018-01-27T22:21:13.000Z | Source/Engine/Resources/tiledMap/tiledSet.cpp | SirRamEsq/LEngine | 24f748a4f9e29cd5d35d012b46e1bc7a2c285f9c | [
"Apache-2.0"
] | null | null | null | #include "tiledSet.h"
#include "../../Kernel.h"
#include "math.h"
TileAnimation::TileAnimation() {
cachedLength = 0;
cachedSize = 0;
}
int TileAnimation::Length() const {
// update cahcedLength if needed
if (frames.size() != cachedSize) {
int totalLength = 0;
for (auto i = frames.begin(); i != frames.... | 28.080997 | 80 | 0.577546 | SirRamEsq |
a54fdaae001d52c4982090fb98c07f1ee0d67862 | 12,524 | cc | C++ | src/mesh/mesh_logical/test/test_mesh_logical.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/mesh/mesh_logical/test/test_mesh_logical.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/mesh/mesh_logical/test/test_mesh_logical.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
#include <UnitTest++.h>
#include <mpi.h>
#include <iostream>
#include "Teuchos_RCP.hpp"
#include "AmanziComm.hh"
#include "RegionEnumerated.hh"
#include "MeshLogical.hh"
#include "MeshLogicalFactory.hh"
#include "Geometry.hh"
#include "MeshL... | 31.706329 | 89 | 0.633424 | fmyuan |
a5501944071accdf8d67cebf61a60eeb19fa0483 | 20,101 | inl | C++ | extensions/winrt/_winrt/include/convert.inl | ms-iot/python | a8f8fba1214289572713520f83409762a4446fea | [
"BSD-3-Clause"
] | 70 | 2015-06-20T17:59:24.000Z | 2021-05-03T02:01:49.000Z | extensions/winrt/_winrt/include/convert.inl | ms-iot/python | a8f8fba1214289572713520f83409762a4446fea | [
"BSD-3-Clause"
] | 16 | 2015-06-11T14:57:43.000Z | 2016-12-03T00:22:13.000Z | extensions/winrt/_winrt/include/convert.inl | ms-iot/python | a8f8fba1214289572713520f83409762a4446fea | [
"BSD-3-Clause"
] | 36 | 2015-05-15T20:30:44.000Z | 2020-11-14T19:31:40.000Z | #pragma once
#include "Python.h"
#include "ExceptionGuard.h"
#include "Windows.Foundation.h"
#include <inspectable.h>
inline PyObjectPtr PyUnicode_FromPlatformString(Platform::String^ str)
{
if (!str)
{
return PyObjectPtr::CreateAttach(PyUnicode_FromUnicode(NULL, 0));
}
return PyObjectPtr::Cre... | 27.200271 | 180 | 0.571215 | ms-iot |
a550d54270f00620cc18cef8367724c4e8ebd5ef | 128 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/examples/Tutorial_BlockOperations_colrow.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/examples/Tutorial_BlockOperations_colrow.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/examples/Tutorial_BlockOperations_colrow.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:6eee36fb9361edc0af6f8605621c45995ebc169735c71ca31c82ac7f243142b3
size 390
| 32 | 75 | 0.882813 | initialz |
a555cb2599585abdee7f98b052c1dfc10a30c904 | 1,871 | cpp | C++ | Sid's Contests/LeetCode contests/Virtual Contests/Weekly Contest 244/Determine Whether Matrix Can Be Obtained By Rotation.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Contests/LeetCode contests/Virtual Contests/Weekly Contest 244/Determine Whether Matrix Can Be Obtained By Rotation.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Contests/LeetCode contests/Virtual Contests/Weekly Contest 244/Determine Whether Matrix Can Be Obtained By Rotation.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | class Solution {
public:
//OM GAN GANAPATHAYE NAMO NAMAH
//JAI SHRI RAM
//JAI BAJRANGBALI
//AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, BHADRE NARAYANA
vector<vector<int>> rotateMatrix(vector<vector<int>> grid)
{
vector<vector<int>> res;
int m = grid.size();
int n ... | 31.183333 | 78 | 0.490647 | Tiger-Team-01 |
a224bc436814edb111471057f2485c01eb7699b6 | 266 | cpp | C++ | Sandbox/Source/Thread/IETThread.cpp | Clymiaru/GDPARCM_Sandbox | 21d6d7ccaef1b03a4d631e757cb824341e84e5d6 | [
"MIT"
] | null | null | null | Sandbox/Source/Thread/IETThread.cpp | Clymiaru/GDPARCM_Sandbox | 21d6d7ccaef1b03a4d631e757cb824341e84e5d6 | [
"MIT"
] | null | null | null | Sandbox/Source/Thread/IETThread.cpp | Clymiaru/GDPARCM_Sandbox | 21d6d7ccaef1b03a4d631e757cb824341e84e5d6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include <thread>
#include "IETThread.h"
namespace Thread
{
void IETThread::Start()
{
std::thread(&IETThread::Run, this).detach();
}
void IETThread::Sleep(const int ms)
{
std::this_thread::sleep_for(std::chrono::milliseconds(ms));
}
}
| 14.777778 | 61 | 0.672932 | Clymiaru |
a224d409d24fbd96a51321d4450ead11c2b21ecc | 2,371 | cpp | C++ | QScreenshot/ScreenshotCreator.cpp | dbautsch/QScreenshot | 80fc3113a342eb4498d8f24aa77230a0d8bbc170 | [
"MIT"
] | 2 | 2018-04-10T06:32:26.000Z | 2021-04-23T14:50:04.000Z | QScreenshot/ScreenshotCreator.cpp | dbautsch/QScreenshot | 80fc3113a342eb4498d8f24aa77230a0d8bbc170 | [
"MIT"
] | 2 | 2016-06-10T12:55:45.000Z | 2016-07-08T14:25:48.000Z | QScreenshot/ScreenshotCreator.cpp | dbautsch/QScreenshot | 80fc3113a342eb4498d8f24aa77230a0d8bbc170 | [
"MIT"
] | 1 | 2018-12-07T06:02:24.000Z | 2018-12-07T06:02:24.000Z | /*!
* Copyright (c) 2016 Dawid Bautsch dawid.bautsch@gmail.com
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HO... | 27.569767 | 101 | 0.707296 | dbautsch |
a22837c986bbed983a482bd1a48ba871980f1fc2 | 10,625 | cc | C++ | spatial_pyramid/validate_cli.cc | sanchom/sjm | e6ed4c9f3abcf04a6b02b97b6f14dd50af47364a | [
"BSD-2-Clause"
] | 9 | 2015-06-01T11:47:30.000Z | 2021-09-06T02:36:28.000Z | spatial_pyramid/validate_cli.cc | sanchom/sjm | e6ed4c9f3abcf04a6b02b97b6f14dd50af47364a | [
"BSD-2-Clause"
] | null | null | null | spatial_pyramid/validate_cli.cc | sanchom/sjm | e6ed4c9f3abcf04a6b02b97b6f14dd50af47364a | [
"BSD-2-Clause"
] | 8 | 2015-05-02T03:57:10.000Z | 2017-10-05T06:38:13.000Z | // Copyright 2011 Sancho McCann
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
// - Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.... | 36.764706 | 79 | 0.681035 | sanchom |
a22a57077ee4c09670e77e4a7886380002097908 | 586 | cpp | C++ | ch11/fill1.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch11/fill1.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | ch11/fill1.cpp | bashell/CppStandardLibrary | 2aae03019288132c911036aeb9ba36edc56e510b | [
"MIT"
] | null | null | null | #include "algostuff.hpp"
using namespace std;
int main()
{
fill_n(ostream_iterator<float>(cout, " "), 10, 7.7);
cout << endl;
list<string> coll;
fill_n(back_inserter(coll), 9, "hello");
PRINT_ELEMENTS(coll, "coll: ");
fill(coll.begin(), coll.end(), "again");
PRINT_ELEMENTS(coll, "col... | 20.928571 | 56 | 0.581911 | bashell |
a23ec7e80ae2448ac6517fb71d055e2e6188a910 | 585 | cpp | C++ | LAB 1 ASSIGNMENTS/Task_10 Lab_01.cpp | ZapeeoSheikh/Cppfactory | 7bdf9c6dd8053a506f17fc4a0aa2093f06d2be70 | [
"MIT"
] | null | null | null | LAB 1 ASSIGNMENTS/Task_10 Lab_01.cpp | ZapeeoSheikh/Cppfactory | 7bdf9c6dd8053a506f17fc4a0aa2093f06d2be70 | [
"MIT"
] | null | null | null | LAB 1 ASSIGNMENTS/Task_10 Lab_01.cpp | ZapeeoSheikh/Cppfactory | 7bdf9c6dd8053a506f17fc4a0aa2093f06d2be70 | [
"MIT"
] | null | null | null | //task_10 (stock commission)
#include <iostream>
using namespace std;
main()
{
float total_share,price_per_share,commission;
total_share = 600;
price_per_share = 21.77;
commission = 0.02;
cout<<"Amount paid for stock: "<<total_share*price_per_share<<endl;
cout<<"Amount of commission:... | 30.789474 | 108 | 0.697436 | ZapeeoSheikh |
a24284e738e84aa9102fc8f70073f3b9b462a802 | 3,172 | cpp | C++ | solved_problems/399A.cpp | archit-1997/codeforces | 6f78a3ed5930531159ae22f7b70dc56e37a9e240 | [
"MIT"
] | 1 | 2021-01-27T16:37:31.000Z | 2021-01-27T16:37:31.000Z | solved_problems/399A.cpp | archit-1997/codeforces | 6f78a3ed5930531159ae22f7b70dc56e37a9e240 | [
"MIT"
] | null | null | null | solved_problems/399A.cpp | archit-1997/codeforces | 6f78a3ed5930531159ae22f7b70dc56e37a9e240 | [
"MIT"
] | null | null | null | /*
User ainta is making a web site. This time he is going to make a navigation of
the pages. In his site, there are n pages numbered by integers from 1 to n.
Assume that somebody is on the p-th page now. The navigation will look like
this:
<< p - k p - k + 1 ... p - 1 (p) p + 1 ... p + k - 1 p + k >>
When someo... | 24.4 | 81 | 0.576293 | archit-1997 |
a24a2f8d8cdfa2c91252ab2cc9d9a16af76a1906 | 3,929 | cpp | C++ | util/screenrect.cpp | degarashi/resonant | f1a8c86c4d2c89d2397b0c1db55c7dfe7a317f6a | [
"MIT"
] | null | null | null | util/screenrect.cpp | degarashi/resonant | f1a8c86c4d2c89d2397b0c1db55c7dfe7a317f6a | [
"MIT"
] | null | null | null | util/screenrect.cpp | degarashi/resonant | f1a8c86c4d2c89d2397b0c1db55c7dfe7a317f6a | [
"MIT"
] | null | null | null | #include "screenrect.hpp"
#include "../glx.hpp"
#include "../drawtag.hpp"
#include "../sys_uniform.hpp"
#include "../systeminfo.hpp"
namespace rs {
namespace util {
namespace {
HLVb MakeVertex_Base(float minv, float maxv) {
HLVb hlVb = mgr_gl.makeVBuffer(GL_STATIC_DRAW);
const vertex::screen c_vertex[] =... | 30.457364 | 76 | 0.577501 | degarashi |
a24f62b61053b959f186237a84efb1c423680eec | 1,053 | hpp | C++ | plugins/ecs_plugin/include/components/TransformComponent.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | 5 | 2018-08-16T00:55:33.000Z | 2020-06-19T14:30:17.000Z | plugins/ecs_plugin/include/components/TransformComponent.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | plugins/ecs_plugin/include/components/TransformComponent.hpp | fuchstraumer/Caelestis | 9c4b76288220681bb245d84e5d7bf8c7f69b2716 | [
"MIT"
] | null | null | null | #pragma once
#ifndef VPSK_TRANSFORM_COMPONENT_HPP
#define VPSK_TRANSFORM_COMPONENT_HPP
#define GLM_SWIZZLE
#include "glm/mat4x4.hpp"
#include "glm/vec4.hpp"
namespace vpsk {
struct WorldTransformComponent {
WorldTransformComponent(glm::vec3 p, glm::vec3 s = glm::vec3(1.0f), glm::vec3 rot = glm::vec3(0.0f... | 27.710526 | 109 | 0.643875 | fuchstraumer |
a254c513960ca0babc7672cd654504805a691408 | 10,216 | cpp | C++ | grim-code/Engine/DXGfx.cpp | ariabonczek/GrimoireEngine | 94952b98232b4baac8caa1189dac7c38672c6ae0 | [
"MIT"
] | null | null | null | grim-code/Engine/DXGfx.cpp | ariabonczek/GrimoireEngine | 94952b98232b4baac8caa1189dac7c38672c6ae0 | [
"MIT"
] | null | null | null | grim-code/Engine/DXGfx.cpp | ariabonczek/GrimoireEngine | 94952b98232b4baac8caa1189dac7c38672c6ae0 | [
"MIT"
] | null | null | null | #include "Precompiled.h"
#include <Engine/Gfx.h>
#include <Engine/DXGfx.h>
#include <Engine/EngineGlobals.h>
#include <Engine/DrawElement.h>
#include <Engine/GraphicsState.h>
#include <Engine/Surface.h>
#include <Engine/grimInput.h>
#include <Engine/d3dx12.h>
#include <string>
#include <d3dcompiler.h>
namespace plat... | 29.022727 | 214 | 0.744323 | ariabonczek |
a2629389f99588607a1f252cee5dd3fd23985d69 | 401 | cpp | C++ | class09/simpleRecursion.cpp | jeremypedersen/cppZero | 69fc8119fdcc8186fee50896ff378a3c55076fa7 | [
"Unlicense"
] | null | null | null | class09/simpleRecursion.cpp | jeremypedersen/cppZero | 69fc8119fdcc8186fee50896ff378a3c55076fa7 | [
"Unlicense"
] | null | null | null | class09/simpleRecursion.cpp | jeremypedersen/cppZero | 69fc8119fdcc8186fee50896ff378a3c55076fa7 | [
"Unlicense"
] | null | null | null | //
// Code by: Jeremy Pedersen
//
// Licensed under the BSD 2-clause license (FreeBSD license)
//
// A simple demonstration of recursion
#include <iostream>
using namespace std;
void countDown(int start) {
if (start > 1) {
cout << start << endl;
countDown(start - 1);
}
else {
... | 14.321429 | 61 | 0.561097 | jeremypedersen |
a2646d9ce725dcb0421ae40cf4d1dd4c74d39183 | 2,833 | cpp | C++ | src/UlltraProto.cpp | rtaudio/ulltra | 3007088c7960e52bf7f5e75c4a10a638b27a3f09 | [
"MIT"
] | null | null | null | src/UlltraProto.cpp | rtaudio/ulltra | 3007088c7960e52bf7f5e75c4a10a638b27a3f09 | [
"MIT"
] | null | null | null | src/UlltraProto.cpp | rtaudio/ulltra | 3007088c7960e52bf7f5e75c4a10a638b27a3f09 | [
"MIT"
] | null | null | null |
#include "UlltraProto.h"
#include<iostream>
#include "net/networking.h"
#ifdef _WIN32
LARGE_INTEGER UlltraProto::timerFreq;
VOID(WINAPI*UlltraProto::myGetSystemTime)(_Out_ LPFILETIME);
static UINT gPeriod = 0;
#endif
std::atomic<uint64_t> UlltraProto::tickSeconds;
bool UlltraProto::init() {
t... | 20.830882 | 108 | 0.652665 | rtaudio |
a269534217e66d594445e2e684fe8747ca249279 | 987 | cpp | C++ | Framework/Util/animation.cpp | TranQuocTuan1711/Crossy-Road-Game-Application-SFML | 0210513f0e0e56814c8be9bfeac3e49780455ccb | [
"Unlicense"
] | 2 | 2022-01-28T16:51:58.000Z | 2022-01-28T16:52:17.000Z | Framework/Util/animation.cpp | TranQuocTuan1711/Crossy-Road-Game-Application-SFML | 0210513f0e0e56814c8be9bfeac3e49780455ccb | [
"Unlicense"
] | null | null | null | Framework/Util/animation.cpp | TranQuocTuan1711/Crossy-Road-Game-Application-SFML | 0210513f0e0e56814c8be9bfeac3e49780455ccb | [
"Unlicense"
] | null | null | null | #include "animation.h"
animation::frame::frame(const sf::Vector2i pos, sf::Time delay)
: pos(pos)
, delay(delay)
{}
animation::frame::frame(int x, int y, sf::Time delay)
: pos(x,y)
, delay(delay)
{}
animation::animation(size_t frame_width, size_t frame_height)
: m_frame_size(frame_width, frame_height)
{}
void ... | 21 | 74 | 0.714286 | TranQuocTuan1711 |
a26d9da1dbb16177cd83d13877af11d26f5c9b47 | 2,003 | cpp | C++ | LightOJ/LightOJ - 1212/Wrong Answer.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | LightOJ/LightOJ - 1212/Wrong Answer.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | LightOJ/LightOJ - 1212/Wrong Answer.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2017-05-18 20:01:29
* solution_verdict: Wrong Answer language: C++
* run... | 30.348485 | 111 | 0.288567 | kzvd4729 |
a26f2c2ba2231465a167a26707e4e8cea5d5a512 | 1,393 | cpp | C++ | structures/enum.cpp | pat-laugh/websson-libraries | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | [
"MIT"
] | null | null | null | structures/enum.cpp | pat-laugh/websson-libraries | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | [
"MIT"
] | 33 | 2017-04-25T21:53:59.000Z | 2017-07-14T13:30:29.000Z | structures/enum.cpp | pat-laugh/websson-libraries | c5c99a98270dee45fcd9ec4e7f03e2e74e3b1ce2 | [
"MIT"
] | null | null | null | //MIT License
//Copyright 2017 Patrick Laughrea
#include "webss.hpp"
using namespace std;
using namespace webss;
Enum::Enum(std::string name) : nspace(std::move(name)) {}
bool Enum::empty() const { return nspace.empty(); }
Enum::size_type Enum::size() const { return nspace.size(); }
void Enum::add(std::string key) ... | 43.53125 | 94 | 0.690596 | pat-laugh |
a2760a1d4d6aced1e23855f32cdd4918931304ed | 830 | cpp | C++ | SimpleEngine/SimpleEngine/Vector2.cpp | Akara4ok/-__- | b6f76ae2d0e180429eb2c64911327056aa1c8357 | [
"MIT"
] | null | null | null | SimpleEngine/SimpleEngine/Vector2.cpp | Akara4ok/-__- | b6f76ae2d0e180429eb2c64911327056aa1c8357 | [
"MIT"
] | null | null | null | SimpleEngine/SimpleEngine/Vector2.cpp | Akara4ok/-__- | b6f76ae2d0e180429eb2c64911327056aa1c8357 | [
"MIT"
] | null | null | null | #include "Vector2.h"
#include <math.h>
Vector2::Vector2()
{
}
Vector2::Vector2(float x, float y) : x(x), y(y)
{
}
Vector2::Vector2(Vector2 startPoint, Vector2 endPoint)
{
Vector2 res = endPoint - startPoint;
x = res.x;
y = res.y;
}
Vector2 Vector2::getOrt()
{
float absVec = this->absValue();
return Vector2(x /... | 15.37037 | 54 | 0.651807 | Akara4ok |
a2807a734b221b8beba7650019595fc63299a992 | 12,683 | cpp | C++ | src/clos/datacenter/main_ndp.cpp | Flasew/opera-sim | 1f64017883689c115b8442acab7ef52846ab2c18 | [
"BSD-3-Clause"
] | null | null | null | src/clos/datacenter/main_ndp.cpp | Flasew/opera-sim | 1f64017883689c115b8442acab7ef52846ab2c18 | [
"BSD-3-Clause"
] | null | null | null | src/clos/datacenter/main_ndp.cpp | Flasew/opera-sim | 1f64017883689c115b8442acab7ef52846ab2c18 | [
"BSD-3-Clause"
] | null | null | null | // -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
#include "config.h"
#include <sstream>
#include <strstream>
#include <iostream>
#include <string.h>
#include <math.h>
#include "network.h"
#include "randomqueue.h"
#include "subflow_control.h"
//#include "shortflows.h"
#include "pipe.h"
#include "e... | 27.042644 | 138 | 0.617046 | Flasew |
a2817ca1576245ab8567164ff9ecb334720a638e | 7,838 | cpp | C++ | src/app/clusters/bindings/BindingManager.cpp | sandcatone/connectedhomeip | 098e45578cc34c687feb4b3ecc92b79be8c72716 | [
"Apache-2.0"
] | 1 | 2022-02-21T08:33:37.000Z | 2022-02-21T08:33:37.000Z | src/app/clusters/bindings/BindingManager.cpp | sandcatone/connectedhomeip | 098e45578cc34c687feb4b3ecc92b79be8c72716 | [
"Apache-2.0"
] | null | null | null | src/app/clusters/bindings/BindingManager.cpp | sandcatone/connectedhomeip | 098e45578cc34c687feb4b3ecc92b79be8c72716 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright (c) 2022 Project CHIP Authors
*
* 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 requir... | 38.610837 | 128 | 0.698648 | sandcatone |
a289b97bc3f4a3bbf96e28e9c84cd6c2cba9fa6c | 1,228 | cpp | C++ | src/coremods/core_maps/cmd_hsearch.cpp | BerilBBJ/beryldb | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 206 | 2021-04-27T21:44:24.000Z | 2022-02-23T12:01:20.000Z | src/coremods/core_maps/cmd_hsearch.cpp | BerilBBJ/beryldb | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 10 | 2021-05-04T19:46:59.000Z | 2021-10-01T23:43:07.000Z | src/coremods/core_maps/cmd_hsearch.cpp | berylcorp/beryl | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 7 | 2021-04-28T16:17:56.000Z | 2021-12-10T01:14:42.000Z | /*
* BerylDB - A lightweight database.
* http://www.beryldb.com
*
* Copyright (C) 2021 - Carlos F. Ferry <cferry@beryldb.com>
*
* This file is part of BerylDB. BerylDB is free software: you can
* redistribute it and/or modify it under the terms of the BSD License
* version 3.
*
* More information about our l... | 29.238095 | 117 | 0.653094 | BerilBBJ |
a28a480d9778d00f5ce0e68a335ae73c36c6160c | 3,092 | cpp | C++ | AdaptiveHistogramEqualization.cpp | javierjuan/ONTs | d27168ceafac70f729df7a9138285e2352a49e99 | [
"Apache-2.0"
] | null | null | null | AdaptiveHistogramEqualization.cpp | javierjuan/ONTs | d27168ceafac70f729df7a9138285e2352a49e99 | [
"Apache-2.0"
] | null | null | null | AdaptiveHistogramEqualization.cpp | javierjuan/ONTs | d27168ceafac70f729df7a9138285e2352a49e99 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
/* Javier Juan Albarracin - jajuaal1@ibime.upv.es */
/* Universidad Politecnica de Valencia, Spain */
/* */
/* Copyr... | 39.641026 | 183 | 0.538486 | javierjuan |
a28aed4c23005743f37594ee9807cecfb6013dd0 | 85,343 | cpp | C++ | src/prod/src/Reliability/Replication/ReplicateCopyOperations.Test.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Reliability/Replication/ReplicateCopyOperations.Test.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Reliability/Replication/ReplicateCopyOperations.Test.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include ... | 39.022862 | 186 | 0.635588 | vishnuk007 |
a28b7993b004b40e3a15ecbe1992cbe30c3fa9f7 | 357 | hpp | C++ | math/camera/3d/orthographic_camera.hpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | math/camera/3d/orthographic_camera.hpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | 292 | 2020-03-19T22:38:52.000Z | 2022-03-05T22:49:34.000Z | math/camera/3d/orthographic_camera.hpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | #pragma once
#include <natus/math/vector/vector3.hpp>
#include <natus/math/vector/vector4.hpp>
#include <natus/math/matrix/matrix3.hpp>
#include <natus/math/matrix/matrix4.hpp>
#include <natus/math/primitive/3d/ray.hpp>
namespace natus
{
namespace math
{
template< typename type_t >
class ort... | 18.789474 | 42 | 0.683473 | aconstlink |
a28c47c8cad7a6c176b2dc88b1753ae98e8a6d71 | 1,329 | hpp | C++ | include/algorithms/MST.hpp | BPsoda/CS2602 | 94388afa6616625d357cfaf9637018d9609aaeb4 | [
"BSD-3-Clause"
] | 3 | 2021-12-16T09:07:07.000Z | 2021-12-31T16:19:51.000Z | include/algorithms/MST.hpp | BPsoda/CS2602 | 94388afa6616625d357cfaf9637018d9609aaeb4 | [
"BSD-3-Clause"
] | null | null | null | include/algorithms/MST.hpp | BPsoda/CS2602 | 94388afa6616625d357cfaf9637018d9609aaeb4 | [
"BSD-3-Clause"
] | 1 | 2022-01-29T07:06:19.000Z | 2022-01-29T07:06:19.000Z | #include "set/DisjointSet.h"
#include "priority/BinaryHeap.h"
#include "graph/SparseGraph.h"
#include <cstdio>
namespace impl {
template <typename T>
struct Edge {
int from;
int to;
T weight;
};
template <typename T>
struct EdgeLess {
bool operator()(const Edge<T>& ... | 27.122449 | 105 | 0.531226 | BPsoda |
a28e45a00bd2ed30489ee6b6e7a137ebe96777c1 | 710 | hpp | C++ | include/llvm-abi/x86/CPUFeatures.hpp | scrossuk/llvm-abi | bad12c7cb1cdd271cd8804d1ace1b5d1799a2908 | [
"MIT"
] | 29 | 2016-11-14T15:58:23.000Z | 2022-01-07T13:05:39.000Z | include/llvm-abi/x86/CPUFeatures.hpp | scrossuk/llvm-abi | bad12c7cb1cdd271cd8804d1ace1b5d1799a2908 | [
"MIT"
] | null | null | null | include/llvm-abi/x86/CPUFeatures.hpp | scrossuk/llvm-abi | bad12c7cb1cdd271cd8804d1ace1b5d1799a2908 | [
"MIT"
] | 4 | 2017-12-03T15:51:24.000Z | 2020-07-31T23:32:27.000Z | #ifndef LLVMABI_X86_CPUFEATURES_HPP
#define LLVMABI_X86_CPUFEATURES_HPP
#include <set>
#include <string>
#include <llvm/ADT/Triple.h>
#include <llvm-abi/x86/CPUKind.hpp>
namespace llvm_abi {
namespace x86 {
enum SSELevel {
NoSSE,
SSE1,
SSE2,
SSE3,
SSSE3,
SSE41,
SSE42,
AVX,
AVX2,
... | 13.921569 | 62 | 0.621127 | scrossuk |
a29d4f48a61a7ca8d749ec06b5c2a8cd13e3e98d | 485 | cpp | C++ | Leetcode/majority-element.cpp | omonimus1/angorithm_AND_dataStructure | 2a6a0cda29cb618a787654b5c66ed6f43fe618e2 | [
"Apache-2.0"
] | 580 | 2020-04-08T16:47:36.000Z | 2022-03-31T15:09:13.000Z | Leetcode/majority-element.cpp | omonimus1/angorithm_AND_dataStructure | 2a6a0cda29cb618a787654b5c66ed6f43fe618e2 | [
"Apache-2.0"
] | 3 | 2020-10-01T08:46:42.000Z | 2020-11-23T17:12:35.000Z | Leetcode/majority-element.cpp | omonimus1/angorithm_AND_dataStructure | 2a6a0cda29cb618a787654b5c66ed6f43fe618e2 | [
"Apache-2.0"
] | 87 | 2020-06-07T16:30:08.000Z | 2022-03-29T19:30:47.000Z | // https://leetcode.com/problems/majority-element/submissions/
class Solution {
public:
int majorityElement(vector<int>& nums) {
int len = nums.size();
int frequency = len/2;
unordered_map<int, int>mp;
for(int i =0; i < len; i++)
{
mp[nums[i]... | 22.045455 | 62 | 0.449485 | omonimus1 |
94789dbfabcf88adf58a403fb608a3cc80d533e1 | 8,345 | cpp | C++ | src/cep/oms/portfolio.cpp | hvsqg/ft | d721ed881a4222ca8790cbfca489ab7012704f0d | [
"MIT"
] | null | null | null | src/cep/oms/portfolio.cpp | hvsqg/ft | d721ed881a4222ca8790cbfca489ab7012704f0d | [
"MIT"
] | null | null | null | src/cep/oms/portfolio.cpp | hvsqg/ft | d721ed881a4222ca8790cbfca489ab7012704f0d | [
"MIT"
] | null | null | null | // Copyright [2020] <Copyright Kevin, kevin.lau.gd@gmail.com>
#include "cep/oms/portfolio.h"
#include <spdlog/spdlog.h>
#include <algorithm>
#include "cep/data/constants.h"
#include "cep/data/contract_table.h"
namespace ft {
Portfolio::Portfolio() {}
void Portfolio::init(uint32_t max_tid, bool sync_to_redis, uin... | 29.803571 | 80 | 0.650929 | hvsqg |
947b274a140ae0578f5804acce5f2e027e8de63d | 1,972 | hpp | C++ | libs/fnd/tuple/include/bksge/fnd/tuple/detail/tuple_concater.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/tuple/include/bksge/fnd/tuple/detail/tuple_concater.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/tuple/include/bksge/fnd/tuple/detail/tuple_concater.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file tuple_concater.hpp
*
* @brief tuple_concater の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_TUPLE_DETAIL_TUPLE_CONCATER_HPP
#define BKSGE_FND_TUPLE_DETAIL_TUPLE_CONCATER_HPP
#include <bksge/fnd/tuple/tuple_size.hpp>
#include <bksge/fnd/tuple/get.hpp>
#include <bksge/fnd/type_traits/remo... | 24.345679 | 89 | 0.684077 | myoukaku |
947b5b8df77745ac1114654c3ae26162ec08f44e | 1,542 | cpp | C++ | ACW Project Framework/Collider.cpp | Lentono/PhysicsSimulationACW | a73d22571a0742fd960740f04689f6ee095c3986 | [
"MIT"
] | 1 | 2021-06-06T10:29:12.000Z | 2021-06-06T10:29:12.000Z | ACW Project Framework/Collider.cpp | Lentono/PhysicsSimulationACW | a73d22571a0742fd960740f04689f6ee095c3986 | [
"MIT"
] | null | null | null | ACW Project Framework/Collider.cpp | Lentono/PhysicsSimulationACW | a73d22571a0742fd960740f04689f6ee095c3986 | [
"MIT"
] | null | null | null | #include "Collider.h"
Collider::Collider() = default;
Collider::~Collider() = default;
SphereCollider::SphereCollider() = default;
SphereCollider::~SphereCollider() = default;
Collider::ColliderType SphereCollider::GetCollider() const
{
return Sphere;
}
AABBCubeCollider::AABBCubeCollider() = default;
AABBCubeCo... | 20.289474 | 105 | 0.770428 | Lentono |
947db6935b38ee1666973e36f88740c50019b61e | 1,017 | cpp | C++ | plugins/wininput/src/cursor/grab.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/wininput/src/cursor/grab.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/wininput/src/cursor/grab.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#include <sge/wininput/cursor/clip.hpp>
#include <sge/wininput/cursor/grab.hpp>
#include <sge/winin... | 29.911765 | 81 | 0.706981 | cpreh |
947e67864b3a21c40f066bb4f4ff5eb330e88e88 | 1,227 | cpp | C++ | ReactQt/runtime/src/componentmanagers/activityindicatormanager.cpp | hlolli/react-native-desktop | 3b7d0fd669d49f29698391f2025860593163fc45 | [
"MIT"
] | 5 | 2020-10-22T19:25:01.000Z | 2020-10-22T19:34:52.000Z | ReactQt/runtime/src/componentmanagers/activityindicatormanager.cpp | hlolli/react-native-desktop | 3b7d0fd669d49f29698391f2025860593163fc45 | [
"MIT"
] | 1 | 2018-11-14T17:45:55.000Z | 2018-11-14T17:45:55.000Z | ReactQt/runtime/src/componentmanagers/activityindicatormanager.cpp | hlolli/react-native-desktop | 3b7d0fd669d49f29698391f2025860593163fc45 | [
"MIT"
] | null | null | null |
/**
* Copyright (c) 2017-present, Status Research and Development GmbH.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same di... | 26.673913 | 89 | 0.780766 | hlolli |
9480d3d9a49d0fc0a9088ba1f873249f0917b472 | 732 | cpp | C++ | uri/1049.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uri/1049.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uri/1049.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
string re(string s1, string s2, string s3)
{
if(s1 == "vertebrado"){
if(s2 == "ave"){
if(s3 == "carnivoro") return "aguia";
else return "pomba";
}
else if(s3 == "onivoro") return "homem";
else return "vaca";
... | 20.333333 | 57 | 0.493169 | cosmicray001 |
94825d344a83cc171c1f234bc1ac25203f206811 | 4,380 | hpp | C++ | sprig/utility/container.hpp | bolero-MURAKAMI/Sprig | 51ce4db4f4d093dee659a136f47249e4fe91fc7a | [
"BSL-1.0"
] | 2 | 2017-10-24T13:56:24.000Z | 2018-09-28T13:21:22.000Z | sprig/utility/container.hpp | bolero-MURAKAMI/Sprig | 51ce4db4f4d093dee659a136f47249e4fe91fc7a | [
"BSL-1.0"
] | null | null | null | sprig/utility/container.hpp | bolero-MURAKAMI/Sprig | 51ce4db4f4d093dee659a136f47249e4fe91fc7a | [
"BSL-1.0"
] | 2 | 2016-04-12T03:26:06.000Z | 2018-09-28T13:21:22.000Z | /*=============================================================================
Copyright (c) 2010-2016 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprig
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)
===... | 34.761905 | 93 | 0.739498 | bolero-MURAKAMI |
948e08d5bde17f769127b63597d833ceb45b5815 | 7,828 | cpp | C++ | xarm_api/src/xarm_driver.cpp | stevewen/xarm_ros | 93770d50faf83be627ad16c268c7477ba72187c5 | [
"BSD-3-Clause"
] | null | null | null | xarm_api/src/xarm_driver.cpp | stevewen/xarm_ros | 93770d50faf83be627ad16c268c7477ba72187c5 | [
"BSD-3-Clause"
] | null | null | null | xarm_api/src/xarm_driver.cpp | stevewen/xarm_ros | 93770d50faf83be627ad16c268c7477ba72187c5 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright 2018 UFACTORY Inc. All Rights Reserved.
*
* Software License Agreement (BSD License)
*
* Author: waylon <weile.wang@ufactory.cc>
============================================================================*/
#include <xarm_driver.h>
#include "xarm/instruction/uxbus_cmd_config.h"
namespace xarm_api
{ ... | 31.821138 | 108 | 0.547011 | stevewen |
94983d1e5f27621a8c5faefa5550beb1e3ed465b | 3,401 | cpp | C++ | Practice/2019.5.22/LOJ2979.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2019.5.22/LOJ2979.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2019.5.22/LOJ2979.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ls (x<<1)
#define rs (ls|1)
const int maxN=310;
const int maxM=11;
const int maxNN=maxN*maxM*9;
const int maxMM=maxNN*8;
const int inf=1000000000;
class Edge
{
public:
int v,flow,w;
};
int n,m;
int ecnt=-1,Hd[maxNN],Nt[maxMM],idcnt=2,S=1,T=2;
Edge E[maxMM];
int I... | 22.97973 | 118 | 0.52955 | SYCstudio |
949af51165013096dae010e9350c3e710ff3a5a9 | 4,859 | hpp | C++ | include/actionspace/GenericActionSpace.hpp | JHLee0513/libcozmo | f3a90a39ec1b1c4ead691328fd43459d67a3a44a | [
"BSD-3-Clause"
] | 8 | 2017-01-11T15:49:34.000Z | 2019-04-24T21:49:05.000Z | include/actionspace/GenericActionSpace.hpp | JHLee0513/libcozmo | f3a90a39ec1b1c4ead691328fd43459d67a3a44a | [
"BSD-3-Clause"
] | 6 | 2019-07-19T01:43:45.000Z | 2020-03-10T07:28:30.000Z | include/actionspace/GenericActionSpace.hpp | JHLee0513/libcozmo | f3a90a39ec1b1c4ead691328fd43459d67a3a44a | [
"BSD-3-Clause"
] | 4 | 2019-07-01T20:04:44.000Z | 2020-02-14T10:12:35.000Z | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2019, Brian Lee, Vinitha Ranganeni
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// ... | 38.259843 | 80 | 0.667627 | JHLee0513 |
949e80287d10edfae7f97ba708cb98c80174dae8 | 3,996 | cpp | C++ | packages/core/src/Message.cpp | aaronchongth/soss_v2 | b531c2046e24684670a4a2ea2fd3c134fcba0591 | [
"Apache-2.0"
] | null | null | null | packages/core/src/Message.cpp | aaronchongth/soss_v2 | b531c2046e24684670a4a2ea2fd3c134fcba0591 | [
"Apache-2.0"
] | null | null | null | packages/core/src/Message.cpp | aaronchongth/soss_v2 | b531c2046e24684670a4a2ea2fd3c134fcba0591 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* 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 appl... | 23.368421 | 80 | 0.50025 | aaronchongth |
94a1db6e4818d6e6a01f0e19421d6f4601cf5dbe | 1,685 | cpp | C++ | sources/libcpp83gts_callback_and_action/ids_path_extensions.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 61 | 2016-03-26T03:04:43.000Z | 2021-09-17T02:11:18.000Z | sources/libcpp83gts_callback_and_action/ids_path_extensions.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 92 | 2016-04-10T23:40:22.000Z | 2022-03-11T21:49:12.000Z | sources/libcpp83gts_callback_and_action/ids_path_extensions.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 18 | 2016-03-26T11:19:14.000Z | 2021-08-07T00:26:02.000Z | #include <algorithm> // std::find(-)
#include "ids_path_extensions.h"
ids::path::extensions::extensions()
{}
const std::string ids::path::extensions::str_from_num( const int num )
{
if (static_cast<int>(this->dotex_.size()) <= num) {
return std::string();
}
return this->dotex_.at(num);
}
const int ids::path::ext... | 23.082192 | 73 | 0.602967 | Savraska2 |
94a8b8a92fcc0e019fa0542a7c72c3d5049cb0ab | 5,761 | hpp | C++ | SDK/ARKSurvivalEvolved_Buff_SpaceWhaleTeleport_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Buff_SpaceWhaleTeleport_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Buff_SpaceWhaleTeleport_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_SpaceWhaleTeleport_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//----------------------------------------------... | 46.088 | 173 | 0.614129 | 2bite |
94b120717a100a66cda7b81fed4a8f978f5480f0 | 7,431 | cpp | C++ | Birdee/Intrinsics.cpp | chaofanli/Birdee2 | 32671ca7c30662599266a578f4dd5169d0677bf4 | [
"Apache-2.0"
] | 1 | 2019-07-23T07:33:09.000Z | 2019-07-23T07:33:09.000Z | Birdee/Intrinsics.cpp | chaofanli/Birdee2 | 32671ca7c30662599266a578f4dd5169d0677bf4 | [
"Apache-2.0"
] | null | null | null | Birdee/Intrinsics.cpp | chaofanli/Birdee2 | 32671ca7c30662599266a578f4dd5169d0677bf4 | [
"Apache-2.0"
] | null | null | null | #include "BdAST.h"
#include "CompileError.h"
#include "llvm/IR/IRBuilder.h"
extern llvm::IRBuilder<> builder;
#define CompileAssert(a, p ,msg)\
do\
{\
if (!(a))\
{\
throw CompileError(p, msg);\
}\
}while(0)\
namespace Birdee
{
extern llvm::Type* GetLLVMTypeFromResolvedType(const ResolvedType& ty);
extern int... | 40.167568 | 162 | 0.729377 | chaofanli |
94b2493044dacddad37da50d78af77e91200b7a9 | 5,936 | cpp | C++ | src/util.cpp | victorvieirar/Empiric-Analysis | 63c7d3a395bbd4d2c0b870a3d291d021c75ed53b | [
"MIT"
] | null | null | null | src/util.cpp | victorvieirar/Empiric-Analysis | 63c7d3a395bbd4d2c0b870a3d291d021c75ed53b | [
"MIT"
] | null | null | null | src/util.cpp | victorvieirar/Empiric-Analysis | 63c7d3a395bbd4d2c0b870a3d291d021c75ed53b | [
"MIT"
] | null | null | null | #include "../include/util.h"
namespace util {
typedef int IterativeFunction(long int vector[], int last, long int value);
typedef int RecursiveFunction(long int vector[], int first, int last, long int value);
void writeHeader() {
std::ofstream records("data/tempos.txt", std::ios::in | std::ios::ou... | 38.545455 | 151 | 0.511119 | victorvieirar |
94b3960eb157d1d65d5c5cf29bb647f6ae9a5c85 | 1,874 | hpp | C++ | h2g_polygon.stratis/Rsc/Titles.hpp | Spayker/b2g-game-connector | f808fa6a67366952a483201507b955ca34b6580c | [
"MIT"
] | null | null | null | h2g_polygon.stratis/Rsc/Titles.hpp | Spayker/b2g-game-connector | f808fa6a67366952a483201507b955ca34b6580c | [
"MIT"
] | 24 | 2021-12-06T17:41:08.000Z | 2021-12-19T15:21:23.000Z | h2g_polygon.stratis/Rsc/Titles.hpp | Spayker/b2g-game-connector | f808fa6a67366952a483201507b955ca34b6580c | [
"MIT"
] | null | null | null | /* Titles */
#define usflag "\ca\ca_e\data\flag_us_co.paa"
#define ruflag "\ca\data\flag_rus_co.paa"
#ifndef usflag
#define usflag "\ca\ca_e\data\flag_us_co.paa"
#define ruflag "\ca\ca_e\data\flag_tkg_co.paa"
#endif
#define height (safeZoneH * 0.05)
#define width (height * 4)
#define startX (safeZoneX + safeZoneW ... | 18.74 | 140 | 0.613661 | Spayker |
94b9247190719d92f3edd4231389f8b20f784fb6 | 44 | cc | C++ | demo.cc | r-lyeh-archived/eval | 6094410ba54c565d01487be88d1bf0da3ba380a9 | [
"MIT"
] | 4 | 2018-02-26T01:29:56.000Z | 2021-09-27T02:47:19.000Z | demo.cc | r-lyeh-archived/eval | 6094410ba54c565d01487be88d1bf0da3ba380a9 | [
"MIT"
] | null | null | null | demo.cc | r-lyeh-archived/eval | 6094410ba54c565d01487be88d1bf0da3ba380a9 | [
"MIT"
] | 1 | 2015-09-30T08:13:37.000Z | 2015-09-30T08:13:37.000Z | #define EVAL_BUILD_DEMO
#include "eval.cpp"
| 14.666667 | 23 | 0.795455 | r-lyeh-archived |
94bccf9761d45abd9b37a37a8287da25a81fb73f | 526 | hpp | C++ | include/bluegrass/cturtle/test.hpp | larryk85/cturtle | 93db59b7352995d11b36d53abc3b7c0180f1ed33 | [
"MIT"
] | 1 | 2020-10-16T19:09:55.000Z | 2020-10-16T19:09:55.000Z | include/bluegrass/cturtle/test.hpp | larryk85/cturtle | 93db59b7352995d11b36d53abc3b7c0180f1ed33 | [
"MIT"
] | null | null | null | include/bluegrass/cturtle/test.hpp | larryk85/cturtle | 93db59b7352995d11b36d53abc3b7c0180f1ed33 | [
"MIT"
] | null | null | null | #pragma once
#include "errors.hpp"
#include "log.hpp"
#include <stdexcept>
namespace bluegrass::cturtle {
template <typename... Ts>
inline void test(bool pred, error err, detail::string_view_wrapper err_msg, Ts&&... ts) {
if (!UNLIKELY(pred)) {
error_log(err_msg.info, err_msg.value, std::forward... | 25.047619 | 92 | 0.63308 | larryk85 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.