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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d3fb9f44e48f765dc88e2a3e2570c64df80e3ceb | 740 | cpp | C++ | 015#3sum/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 015#3sum/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 015#3sum/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> threeSum(vector<int>& nums) {
sort(nums.begin(), nums.end());
int len = nums.size(), i, j;
vector<vector<int>> ans;
for (i = 0; i < len - 2;) {
for (j = i + 1; j < len - 1;) {
if(binary_search(nums.begin... | 33.636364 | 90 | 0.366216 | llwwns |
310032e1a90c704b89c9ad9f09b1c361fb35a9db | 442 | cpp | C++ | beginners/easy/025.calculate-bill/034.rishankhan.calculate-bill.cpp | Md-Maruf-Sarker/strangers | 6f9eae6c15f1e1c5b6ef2965eb2422a01203f1ad | [
"MIT"
] | 3 | 2022-03-26T17:15:24.000Z | 2022-03-28T14:38:13.000Z | beginners/easy/025.calculate-bill/034.rishankhan.calculate-bill.cpp | Md-Maruf-Sarker/strangers | 6f9eae6c15f1e1c5b6ef2965eb2422a01203f1ad | [
"MIT"
] | null | null | null | beginners/easy/025.calculate-bill/034.rishankhan.calculate-bill.cpp | Md-Maruf-Sarker/strangers | 6f9eae6c15f1e1c5b6ef2965eb2422a01203f1ad | [
"MIT"
] | 2 | 2022-03-26T17:01:47.000Z | 2022-03-26T17:03:54.000Z | #include <iostream>
using namespace std;
int main(){
int unit;
float bill;
cin>>unit;
if(unit>=0 && unit<=50){
bill = unit*0.50;
}
else if(unit>50 && unit<=150){
bill = (50*0.50) + ((unit-50)*0.75);
}
else if(unit>150 && unit<=250){
bill = (50*0.50) + (100*0.75) + ((unit-150)*1.20);
}
else if (unit<250){... | 10.52381 | 50 | 0.547511 | Md-Maruf-Sarker |
31004143ac4e73ae1307a90b60876ce2f1162fd7 | 270 | cpp | C++ | src/examples/10_module/07_arrays_dyn_ch/main.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-artgonzalezacc | 77952aeec288b82cf1a5a4880b8756ee0ca11432 | [
"MIT"
] | null | null | null | src/examples/10_module/07_arrays_dyn_ch/main.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-artgonzalezacc | 77952aeec288b82cf1a5a4880b8756ee0ca11432 | [
"MIT"
] | null | null | null | src/examples/10_module/07_arrays_dyn_ch/main.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-artgonzalezacc | 77952aeec288b82cf1a5a4880b8756ee0ca11432 | [
"MIT"
] | 1 | 2021-05-25T20:20:15.000Z | 2021-05-25T20:20:15.000Z |
//dynamic array allocation and deallocation
#include "arrays_dyn_ch.h"
int main()
{
//use_dynamic_char_array(10);
//limit_dynamic_char_array_scope(15);
std::cout<<"Before function\n";
limit_dynamic_char_mem_scope(10);
std::cout<<"After function\n";
return 0;
} | 19.285714 | 43 | 0.744444 | acc-cosc-1337-spring-2021 |
3100e73a6858f6c5b8fb44c5a0c900360940760a | 1,344 | cpp | C++ | src/Records/WRLD.cpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 1 | 2022-03-01T19:17:33.000Z | 2022-03-01T19:17:33.000Z | src/Records/WRLD.cpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 8 | 2015-04-17T12:04:15.000Z | 2015-07-02T14:40:28.000Z | src/Records/WRLD.cpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 1 | 2022-03-01T19:17:36.000Z | 2022-03-01T19:17:36.000Z | /*
* File: WRLD.cpp
* Author: Koncord <koncord at rwa.su>
*
* Created on 2 Июль 2015 г., 14:44
*/
#include "WRLD.hpp"
using namespace std;
bool RecordWRLD::DoParse()
{
const string subType = GetLabel();
if(subType == "EDID")
data.edid = GetString();
else if(subType == "FULL")
dat... | 34.461538 | 138 | 0.567708 | Koncord |
310133172c91fc7fadff749f56502967794fbab2 | 4,667 | hpp | C++ | source/housys/include/hou/sys/file_handle.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/housys/include/hou/sys/file_handle.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/housys/include/hou/sys/file_handle.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_SYS_FILE_HANDLE_HPP
#define HOU_SYS_FILE_HANDLE_HPP
#include "hou/cor/non_copyable.hpp"
#include "hou/sys/file_open_mode.hpp"
#include "hou/sys/file_type.hpp"
#include "hou/sys/sys_config.hpp"
#include <string>... | 22.22381 | 79 | 0.693808 | DavideCorradiDev |
3106951f4c1c1dba65b2d274e64e52ca5ce4439c | 1,341 | cpp | C++ | src/client/camera.cpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | 1 | 2020-06-10T07:44:43.000Z | 2020-06-10T07:44:43.000Z | src/client/camera.cpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | null | null | null | src/client/camera.cpp | sathwikmatsa/ndn-agar.io | a758414d0bb221a6183f20d332f101f3850505cf | [
"MIT"
] | null | null | null | #include "camera.hpp"
#include "./../shared/game_settings.hpp"
#include <SDL2/SDL.h>
#include <cmath>
Camera::Camera() {
current_scale = 1;
camera = {0, 0, SCREEN_WIDTH, SCREEN_HEIGHT};
}
bool Camera::at_boundary() { return camera_at_boundary; }
int Camera::width() { return camera.w; }
int Camera::height() { re... | 24.833333 | 64 | 0.670395 | sathwikmatsa |
31069f9fffefbbf4437f6214051d004a8b1ba150 | 6,798 | hpp | C++ | src/terark/entropy/rans_encoding.hpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 44 | 2020-12-21T05:14:38.000Z | 2022-03-15T11:27:32.000Z | src/terark/entropy/rans_encoding.hpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 2 | 2020-12-28T10:42:03.000Z | 2021-05-21T07:22:47.000Z | src/terark/entropy/rans_encoding.hpp | rockeet/terark-zip | 3235373d04b7cf5d584259111b3a057c45cc1708 | [
"BSD-3-Clause"
] | 21 | 2020-12-22T09:40:16.000Z | 2021-12-07T18:16:00.000Z | #pragma once
#include <terark/fstring.hpp>
#include <terark/valvec.hpp>
#include "entropy_base.hpp"
namespace terark { namespace rANS_static_64 {
// 10 and 11 can be quite a bit faster, but 1-2% larger
static constexpr size_t TF_SHIFT = 12;
static constexpr size_t TOTFREQ = 1ull << TF_SHIFT;
static c... | 37.558011 | 105 | 0.68579 | rockeet |
31105b49442b4632a8e9e591f9d56d81660bcbdc | 1,938 | hpp | C++ | modules/network/httpperiodquery.hpp | Kamule42/RSD | dce9ee6572ea21602620f2f5fdf963774b3d4499 | [
"Zlib"
] | null | null | null | modules/network/httpperiodquery.hpp | Kamule42/RSD | dce9ee6572ea21602620f2f5fdf963774b3d4499 | [
"Zlib"
] | null | null | null | modules/network/httpperiodquery.hpp | Kamule42/RSD | dce9ee6572ea21602620f2f5fdf963774b3d4499 | [
"Zlib"
] | null | null | null | ////////////////////////////////////////////////////////////
//
// RSD
// Copyright (C) 23/06/2011 Benjamin Herbomez (benjamin.herbomez@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... | 28.925373 | 101 | 0.634159 | Kamule42 |
3111002106d11c9d7e6dce3c47b3a62a1e999307 | 315 | cpp | C++ | Chapter4/Practice/1061.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | 1 | 2022-02-13T02:22:39.000Z | 2022-02-13T02:22:39.000Z | Chapter4/Practice/1061.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | Chapter4/Practice/1061.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
using namespace std;
int main() {
int n, a, sum = 0;
double so;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a;
sum += a;
}
so = (double) sum / n;
cout << sum << " " << fixed << setprecision(5) << so << endl;
return 0;
}
| 15.75 | 65 | 0.453968 | flics04 |
311164861ce7feb75119aad8e24561e8e48560ec | 3,407 | cpp | C++ | gme/src/v20180711/model/UpdateScanUsersRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | gme/src/v20180711/model/UpdateScanUsersRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | gme/src/v20180711/model/UpdateScanUsersRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 27.256 | 104 | 0.720869 | suluner |
3111e03ba5eb6acde01b4245d49e4704702c5931 | 1,948 | cpp | C++ | modules/blockchain/src/block.cpp | arunabhcode/modern-cpp-blockchain | 826bf32b7bce18a08f2d2fb5ed3389a989f09240 | [
"MIT"
] | null | null | null | modules/blockchain/src/block.cpp | arunabhcode/modern-cpp-blockchain | 826bf32b7bce18a08f2d2fb5ed3389a989f09240 | [
"MIT"
] | null | null | null | modules/blockchain/src/block.cpp | arunabhcode/modern-cpp-blockchain | 826bf32b7bce18a08f2d2fb5ed3389a989f09240 | [
"MIT"
] | null | null | null | // Copyright 2021 Arunabh Sharma
#include "mcb/block.h"
#include <string>
#include <vector>
#include "mcb/logger.h"
#include "hash/picosha2.h"
namespace mcb
{
Block::Block(const std::string& block_msg,
const std::string& prev_hash,
const uint64_t nonce)
: block_data_(block_msg.begin()... | 20.082474 | 75 | 0.660164 | arunabhcode |
311f21d6f8f8962b151d984316ca51655e0a967c | 5,289 | cpp | C++ | src/Base64/Base64.cpp | sherry0319/YTSvrLib | 5dda75aba927c4bf5c6a727592660bfc2619a063 | [
"MIT"
] | 61 | 2016-10-13T09:24:31.000Z | 2022-03-26T09:59:34.000Z | src/Base64/Base64.cpp | sherry0319/YTSvrLib | 5dda75aba927c4bf5c6a727592660bfc2619a063 | [
"MIT"
] | 3 | 2018-05-15T10:42:22.000Z | 2021-07-02T01:38:08.000Z | src/Base64/Base64.cpp | sherry0319/YTSvrLib | 5dda75aba927c4bf5c6a727592660bfc2619a063 | [
"MIT"
] | 36 | 2016-12-28T04:54:41.000Z | 2021-12-15T06:02:56.000Z | /*MIT License
Copyright (c) 2016 Archer Xu
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | 24.948113 | 102 | 0.640008 | sherry0319 |
3120e12027327b2f02d7741464933e031778d2ba | 4,681 | cpp | C++ | python/_nimblephysics/neural/NeuralUtils.cpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 2 | 2021-09-30T06:23:29.000Z | 2022-03-09T09:59:09.000Z | python/_nimblephysics/neural/NeuralUtils.cpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | null | null | null | python/_nimblephysics/neural/NeuralUtils.cpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 1 | 2021-08-20T13:56:14.000Z | 2021-08-20T13:56:14.000Z | /*
* Copyright (c) 2011-2019, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... | 39.669492 | 80 | 0.682546 | jyf588 |
3123d97df80951dc0a9a7c20e77a24d28f9c260f | 601 | cpp | C++ | src/Antispy/SpyHunter/SpyHunter/KbdClass.cpp | CrazyHarb/antispy | d1c75b6331fa40ba344d76c3c7bc67ac60ffcf15 | [
"MulanPSL-1.0"
] | 990 | 2019-11-09T15:41:02.000Z | 2022-03-24T12:58:35.000Z | src/Antispy/SpyHunter/SpyHunter/KbdClass.cpp | CrazyHarb/antispy | d1c75b6331fa40ba344d76c3c7bc67ac60ffcf15 | [
"MulanPSL-1.0"
] | 3 | 2019-11-13T07:31:16.000Z | 2020-03-19T15:28:41.000Z | src/Antispy/SpyHunter/SpyHunter/KbdClass.cpp | CrazyHarb/antispy | d1c75b6331fa40ba344d76c3c7bc67ac60ffcf15 | [
"MulanPSL-1.0"
] | 411 | 2019-11-09T15:41:05.000Z | 2022-03-27T10:48:08.000Z | /*
* Copyright (c) [2010-2019] zhenfei.mzf@gmail.com rights reserved.
*
* AntiSpy is licensed under the Mulan PSL v1.
* You can use this software according to the terms and conditions of the Mulan PSL v1.
* You may obtain a copy of Mulan PSL v1 at:
*
* http://license.coscl.org.cn/MulanPSL
*
* TH... | 35.352941 | 89 | 0.702163 | CrazyHarb |
312b14c52132dc7f7ce8b2ed4d9f0a00e0c9b74a | 177 | cpp | C++ | 1837_7.cpp | thiagoolvr/Code_Challenge | e56c78b13483062e539359534618dbf48272cfcb | [
"MIT"
] | null | null | null | 1837_7.cpp | thiagoolvr/Code_Challenge | e56c78b13483062e539359534618dbf48272cfcb | [
"MIT"
] | null | null | null | 1837_7.cpp | thiagoolvr/Code_Challenge | e56c78b13483062e539359534618dbf48272cfcb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int a, b;
cin >> a >> b;
int q, r;
q = a/b;
r = a - b * q;
cout << q << " " << r << endl;
} | 11.8 | 34 | 0.40113 | thiagoolvr |
3142a6f1511bb2a886864dda7ac5046b09cafe02 | 4,428 | cpp | C++ | EmbeddedStAX/src/XmlReader/ParsingBuffer.cpp | djurodrljaca/MiniSaxCpp | 26c3e1d89981447553fe16999e7e4c61da297634 | [
"Unlicense"
] | null | null | null | EmbeddedStAX/src/XmlReader/ParsingBuffer.cpp | djurodrljaca/MiniSaxCpp | 26c3e1d89981447553fe16999e7e4c61da297634 | [
"Unlicense"
] | null | null | null | EmbeddedStAX/src/XmlReader/ParsingBuffer.cpp | djurodrljaca/MiniSaxCpp | 26c3e1d89981447553fe16999e7e4c61da297634 | [
"Unlicense"
] | 1 | 2020-05-19T08:06:16.000Z | 2020-05-19T08:06:16.000Z | #include <EmbeddedStAX/XmlReader/ParsingBuffer.h>
using namespace EmbeddedStAX::XmlReader;
/**
* Constructor
*/
ParsingBuffer::ParsingBuffer()
: m_utf8(),
m_buffer(),
m_position(0U)
{
}
/**
* Get the size of the parsing buffer
*
* \return Size of the parsing buffer
*/
size_t ParsingBuffer::size... | 18.762712 | 85 | 0.62421 | djurodrljaca |
31433464174e4ff08f050f78cb44f0e79be3e7a4 | 13,169 | cpp | C++ | source/renderer/GL1Renderer.cpp | fanick1/duel6r | 3edf04f24ad3854e082854576c2bb96510debb84 | [
"BSD-3-Clause"
] | 2 | 2017-05-01T11:35:26.000Z | 2021-12-17T21:55:14.000Z | source/renderer/GL1Renderer.cpp | fanick1/duel6r | 3edf04f24ad3854e082854576c2bb96510debb84 | [
"BSD-3-Clause"
] | null | null | null | source/renderer/GL1Renderer.cpp | fanick1/duel6r | 3edf04f24ad3854e082854576c2bb96510debb84 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.net)
* All rights reserved.
* 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, ... | 38.732353 | 119 | 0.627003 | fanick1 |
3149a076295022c4c88d81206f4164c7f2aa34d5 | 7,094 | cc | C++ | http_client_inst.cc | kikairoya/black_circle | f3d8b90c9ddc76561d6ddc5e29e5e8fc8d3318c6 | [
"BSL-1.0"
] | 1 | 2016-06-20T21:16:36.000Z | 2016-06-20T21:16:36.000Z | http_client_inst.cc | kikairoya/black_circle | f3d8b90c9ddc76561d6ddc5e29e5e8fc8d3318c6 | [
"BSL-1.0"
] | null | null | null | http_client_inst.cc | kikairoya/black_circle | f3d8b90c9ddc76561d6ddc5e29e5e8fc8d3318c6 | [
"BSL-1.0"
] | null | null | null | #include "common.hpp"
#include <boost/spirit/include/phoenix.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/karma.hpp>
#include <boost/fusion/include/std_pair.hpp>
#include <boost/range.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include "http_connection.hpp"
#include "a... | 50.312057 | 139 | 0.665069 | kikairoya |
3153ebf4f7e2d3f82b8a349ce06edae4b94f464e | 9,005 | cpp | C++ | src/denoiser/denoiser_optix.cpp | GoncaloFDS/Lift | e026f585127ba55bdb261cd3ac3ca97545b7cd8f | [
"BSD-3-Clause"
] | 30 | 2019-07-24T09:58:22.000Z | 2021-09-03T08:20:22.000Z | src/denoiser/denoiser_optix.cpp | GoncaloFDS/Lift | e026f585127ba55bdb261cd3ac3ca97545b7cd8f | [
"BSD-3-Clause"
] | 15 | 2020-06-20T13:20:50.000Z | 2021-04-26T16:05:33.000Z | src/denoiser/denoiser_optix.cpp | GoncaloFDS/Lift | e026f585127ba55bdb261cd3ac3ca97545b7cd8f | [
"BSD-3-Clause"
] | 5 | 2020-06-17T08:38:34.000Z | 2021-09-08T22:14:02.000Z | #include "denoiser_optix.h"
#include "cuda.h"
#include "optix.h"
#include "optix_function_table_definition.h"
#include "optix_stubs.h"
#include <core/log.h>
#include <platform/vulkan/single_time_commands.h>
OptixDeviceContext optix_device_context_;
static void contextLogCb(unsigned int level, const char* tag, const ... | 41.307339 | 120 | 0.648973 | GoncaloFDS |
3158e331be4f7deabb2f2aa9c2a8fd3fe8587972 | 14,091 | cpp | C++ | flare/Engine.cpp | freakMeduza/flare | 32003c1be20e8876948a4c97d9715059f1d32e5c | [
"MIT"
] | 2 | 2022-01-02T15:45:36.000Z | 2022-01-12T15:31:24.000Z | flare/Engine.cpp | freakMeduza/flare | 32003c1be20e8876948a4c97d9715059f1d32e5c | [
"MIT"
] | null | null | null | flare/Engine.cpp | freakMeduza/flare | 32003c1be20e8876948a4c97d9715059f1d32e5c | [
"MIT"
] | null | null | null | #include "Engine.hpp"
#include "Device.hpp"
#include "Shader.hpp"
#include "Swapchain.hpp"
#include "Pipeline.hpp"
#include "Mesh.hpp"
#include "Log.hpp"
#include <chrono>
#include <fstream>
#include <filesystem>
#include <stdexcept>
#include <flare_config.h>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#def... | 30.368534 | 177 | 0.696402 | freakMeduza |
315d9b7d8b4fa59c3b2447f703609a93e0f2c17c | 363 | cpp | C++ | src/filip.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | src/filip.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | 1 | 2017-05-16T15:57:29.000Z | 2017-05-17T19:43:56.000Z | src/filip.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
int m(int a) {
int p = 100, ma = 0;
while (a > 0) {
ma += p * (a % 10);
p /= 10;
a /= 10;
}
return ma;
}
int main() {
int A, B;
cin >> A >> B;
int mA = m(A), mB = m(B);
cout <<... | 13.444444 | 37 | 0.520661 | JulianNeeleman |
3161eaa376352d017d9cb22f19c05a6d5a63511e | 15,372 | cpp | C++ | Source/WebCore/dom/EventPath.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | Source/WebCore/dom/EventPath.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebCore/dom/EventPath.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2013 Google Inc. All rights reserved.
* Copyright (C) 2013-2016 Apple Inc. All rights reserved.
*
* 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
* versi... | 37.769042 | 145 | 0.686963 | ijsf |
316c6794b64ea9f07a477054d515f901a6e256c7 | 1,096 | hxx | C++ | src/geom/CoordinateTransformation.hxx | luketpickering/NuFluxTools | 359379d984f9c046b652333916eeb3c520b2fad9 | [
"MIT"
] | null | null | null | src/geom/CoordinateTransformation.hxx | luketpickering/NuFluxTools | 359379d984f9c046b652333916eeb3c520b2fad9 | [
"MIT"
] | null | null | null | src/geom/CoordinateTransformation.hxx | luketpickering/NuFluxTools | 359379d984f9c046b652333916eeb3c520b2fad9 | [
"MIT"
] | 2 | 2019-11-24T03:51:45.000Z | 2021-08-30T19:38:46.000Z | #pragma once
#include "Math/RotationZYX.h"
#include "Math/Transform3D.h"
#include "fhiclcpp/ParameterSet.h"
namespace nft {
namespace geom {
inline ROOT::Math::Transform3D
BuildTransformation(fhicl::ParameterSet const &ps) {
std::vector<fhicl::ParameterSet> Rotations =
ps.get<std::vector<fhicl::ParameterSe... | 27.4 | 78 | 0.62865 | luketpickering |
316e16250b39d353014ad8499db7432687b4a3ae | 3,012 | cpp | C++ | Projects/Tests/TestEnrightFlow/TestEnrightFlow.cpp | rgoldade/3dFluidSimulation | 680d84429e73e26671a52e1a725b1b76ec4ef0db | [
"Unlicense"
] | 4 | 2020-05-04T16:47:25.000Z | 2020-12-30T01:31:09.000Z | Projects/Tests/TestEnrightFlow/TestEnrightFlow.cpp | rgoldade/3dFluidSimulation | 680d84429e73e26671a52e1a725b1b76ec4ef0db | [
"Unlicense"
] | null | null | null | Projects/Tests/TestEnrightFlow/TestEnrightFlow.cpp | rgoldade/3dFluidSimulation | 680d84429e73e26671a52e1a725b1b76ec4ef0db | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <memory>
#include "Camera3D.h"
#include "InitialGeometry.h"
#include "Integrator.h"
#include "LevelSet.h"
#include "Renderer.h"
#include "TestVelocityFields.h"
#include "Transform.h"
#include "TriMesh.h"
#include "Utilities.h"
using namespace FluidSim3D;
static std::unique_ptr<Renderer> ... | 29.529412 | 140 | 0.660359 | rgoldade |
316f8d2b4319ef94eb5fce309d4214c3c15f1ef5 | 677 | hpp | C++ | Include/SA/Render/Vulkan/Device/VkQueueMgr.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | 1 | 2022-01-20T23:17:18.000Z | 2022-01-20T23:17:18.000Z | Include/SA/Render/Vulkan/Device/VkQueueMgr.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | Include/SA/Render/Vulkan/Device/VkQueueMgr.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | // Copyright 2021 Sapphire development team. All Rights Reserved.
#pragma once
#ifndef SAPPHIRE_RENDER_VK_QUEUE_MGR_GUARD
#define SAPPHIRE_RENDER_VK_QUEUE_MGR_GUARD
#include <SA/Render/Vulkan/Device/VkQueueFamilyMgr.hpp>
#include <SA/Render/Vulkan/Device/VkGraphicDeviceInfos.hpp>
#if SA_VULKAN
namespace Sa::Vk
{
... | 20.515152 | 77 | 0.791728 | SapphireSuite |
31700fb23aaf6e3cd175c4fa04b8122ed5b0dcae | 320 | hpp | C++ | hw3/tmpl/src-cpp/include/AST/print.hpp | idoleat/P-Language-Compiler-CourseProject | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | 7 | 2020-09-10T16:54:49.000Z | 2022-03-15T12:39:23.000Z | hw3/tmpl/src-cpp/include/AST/print.hpp | idoleat/simple-P-compiler | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | null | null | null | hw3/tmpl/src-cpp/include/AST/print.hpp | idoleat/simple-P-compiler | 57db735b349a0a3a30d78b927953e2d44b7c7d53 | [
"MIT"
] | null | null | null | #ifndef __AST_PRINT_NODE_H
#define __AST_PRINT_NODE_H
#include "AST/ast.hpp"
class PrintNode : public AstNode {
public:
PrintNode(const uint32_t line, const uint32_t col
/* TODO: expression */);
~PrintNode() = default;
void print() override;
private:
// TODO: expression
};
#endif
| 16.842105 | 53 | 0.6625 | idoleat |
3176704fe3739c2ee1c63ccb6900f0704df09382 | 2,526 | cpp | C++ | source/glesbinding/source/Binding_objects_r.cpp | cginternals/glesbinding-poc | d21292421982f807c9a217f777550fc596b40b4d | [
"MIT"
] | 3 | 2019-08-20T00:00:12.000Z | 2020-03-24T19:12:19.000Z | source/glesbinding/source/Binding_objects_r.cpp | cginternals/glesbinding | f42d5a14999097667c48df937f7cf831676e2ac7 | [
"MIT"
] | null | null | null | source/glesbinding/source/Binding_objects_r.cpp | cginternals/glesbinding | f42d5a14999097667c48df937f7cf831676e2ac7 | [
"MIT"
] | null | null | null |
#include "Binding_pch.h"
using namespace gles;
namespace glesbinding
{
Function<void, GLuint, GLboolean> Binding::RasterSamplesEXT("glRasterSamplesEXT");
Function<void, GLenum> Binding::ReadBuffer("glReadBuffer");
Function<void, GLenum, GLint> Binding::ReadBufferIndexedEXT("glReadBufferIndexedEXT");
Function<voi... | 70.166667 | 165 | 0.825416 | cginternals |
318223678c7ca7e36fcd399efb004c7dbff1adb8 | 7,596 | cpp | C++ | src/cube/src/dimensions/metric/data/rows/CubeRow.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/cube/src/dimensions/metric/data/rows/CubeRow.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/cube/src/dimensions/metric/data/rows/CubeRow.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | 2 | 2016-09-19T00:16:05.000Z | 2021-03-29T22:06:45.000Z | /****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2016 **
** Fors... | 24.503226 | 145 | 0.505003 | OpenCMISS-Dependencies |
31856126edf2d79ee87b13b7999d34aa2f0173c0 | 3,097 | cpp | C++ | Tools/CreatorIDE/EngineAPI/API/Levels.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 15 | 2019-05-07T11:26:13.000Z | 2022-01-12T18:26:45.000Z | Tools/CreatorIDE/EngineAPI/API/Levels.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 16 | 2021-10-04T17:15:31.000Z | 2022-03-20T09:34:29.000Z | Tools/CreatorIDE/EngineAPI/API/Levels.cpp | niello/deusexmachina | 2f698054fe82d8b40a0a0e58b86d64ffed0de06c | [
"MIT"
] | 2 | 2019-04-28T23:27:48.000Z | 2019-05-07T11:26:18.000Z | #include <DB/StdAttrs.h>
#include <Loading/LoaderServer.h>
#include <App/CIDEApp.h>
#include <Game/Mgr/EntityManager.h>
#include <Game/Mgr/FocusManager.h>
#include <Game/Mgr/EnvQueryManager.h>
#include <AI/AIServer.h>
#include <DetourNavMeshQuery.h>
namespace Attr
{
DeclareAttr(Name);
DeclareAttr(Center);
DeclareAt... | 30.97 | 120 | 0.58702 | niello |
31860759cd95ee64eb2aad834db7390192cc042c | 950 | cpp | C++ | OfferReview/OfferReview/01_38/08_NextNodeInBinaryTrees/NextNodeInBinaryTrees_2.cpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | 2 | 2021-06-26T08:07:04.000Z | 2021-08-03T06:05:40.000Z | OfferReview/OfferReview/01_38/08_NextNodeInBinaryTrees/NextNodeInBinaryTrees_2.cpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | null | null | null | OfferReview/OfferReview/01_38/08_NextNodeInBinaryTrees/NextNodeInBinaryTrees_2.cpp | chm994483868/HMDailyLearningRecord | 95ff0a5347927ce4527bcdd70374e5be22bfc60d | [
"MIT"
] | null | null | null | //
// NextNodeInBinaryTrees_2.cpp
// OfferReview
//
// Created by CHM on 2021/2/21.
// Copyright © 2021 CHM. All rights reserved.
//
#include "NextNodeInBinaryTrees_2.hpp"
NextNodeInBinaryTrees_2::BinaryTreeNode* NextNodeInBinaryTrees_2::getNext(BinaryTreeNode* pNode) {
if (pNode == nullptr) {
return ... | 25.675676 | 98 | 0.594737 | chm994483868 |
3188a480669cfbd0ff207eede19907ca7224844c | 3,491 | cpp | C++ | Modules/Core/test/mitkPropertyAliasesTest.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/Core/test/mitkPropertyAliasesTest.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/Core/test/mitkPropertyAliasesTest.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 32.626168 | 142 | 0.69894 | zhaomengxiao |
3188e4feae7874d558a4a40a9b74ccbf9b47fc83 | 25,065 | hpp | C++ | include/mh/math/types.hpp | overworks/MhGameLib | 87973e29633ed09a3fa51eb27ea7fc8af5e9d71b | [
"MIT"
] | null | null | null | include/mh/math/types.hpp | overworks/MhGameLib | 87973e29633ed09a3fa51eb27ea7fc8af5e9d71b | [
"MIT"
] | null | null | null | include/mh/math/types.hpp | overworks/MhGameLib | 87973e29633ed09a3fa51eb27ea7fc8af5e9d71b | [
"MIT"
] | null | null | null | #ifndef _MH_MATH_TYPES_H_
#define _MH_MATH_TYPES_H_
#include <cassert>
#include <cmath>
#include <mh/types.hpp>
#ifndef MH_ASSERT
#define MH_ASSERT assert
#endif // MH_ASSERT
namespace Mh
{
struct Float2
{
f32 x, y;
Float2() {}
Float2( f32 _x, f32 _y )
: x(_x), y(_y) {}
};
struct Float3
{
f32 ... | 24.816832 | 94 | 0.601077 | overworks |
31890db3b677f972cbbe57850cc621fcd12cc075 | 419 | cpp | C++ | src/main.cpp | mimo31/cyrill6 | 81782c18211d47fdca7f6bbb590be61485a92bd7 | [
"MIT"
] | null | null | null | src/main.cpp | mimo31/cyrill6 | 81782c18211d47fdca7f6bbb590be61485a92bd7 | [
"MIT"
] | null | null | null | src/main.cpp | mimo31/cyrill6 | 81782c18211d47fdca7f6bbb590be61485a92bd7 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include "solver.hpp"
using std::cout;
using std::endl;
namespace cyrill6
{
void run()
{
constexpr uint32_t n = 256;
constexpr double lam = -1;
constexpr double g = 400;
Solver s(n, .1, 1, lam, 1, g, 1);
s.solve();
for (uint32_t i = 0; i < n; i++)
{
cout << i / doub... | 12.323529 | 53 | 0.582339 | mimo31 |
318e189fec5a05cd597bc70305ffe6b8e96e8db4 | 2,560 | cpp | C++ | sycl/test/esimd/gather4_scatter4.cpp | jessicadavies-intel/llvm | 4236bbba4c562a1355e75fa6d237b7c6b15a3193 | [
"Apache-2.0"
] | 1 | 2022-01-06T15:44:48.000Z | 2022-01-06T15:44:48.000Z | sycl/test/esimd/gather4_scatter4.cpp | jessicadavies-intel/llvm | 4236bbba4c562a1355e75fa6d237b7c6b15a3193 | [
"Apache-2.0"
] | 2 | 2019-06-27T00:36:28.000Z | 2021-06-29T20:05:03.000Z | sycl/test/esimd/gather4_scatter4.cpp | kbobrovs/llvm | b57c6bf3b16e6d3f6c052ba9ba3616a24e0beae5 | [
"Apache-2.0"
] | null | null | null | // RUN: %clangxx -fsycl -fsyntax-only %s 2>&1 | FileCheck %s --implicit-check-not="warning:" --implicit-check-not="error:"
// This test checks compilation of ESIMD slm gather4/scatter4 APIs. Those which
// are deprecated must produce deprecation messages.
#include <CL/sycl.hpp>
#include <sycl/ext/intel/experimental/e... | 51.2 | 122 | 0.688672 | jessicadavies-intel |
31992cf4da3b39bdbcea7e66b78aee4e751c3cd4 | 1,128 | cpp | C++ | source/Button.cpp | Dorfen/LifePod | ddb8803017b0cff337f970562ed687af374bcb5b | [
"Apache-2.0"
] | null | null | null | source/Button.cpp | Dorfen/LifePod | ddb8803017b0cff337f970562ed687af374bcb5b | [
"Apache-2.0"
] | null | null | null | source/Button.cpp | Dorfen/LifePod | ddb8803017b0cff337f970562ed687af374bcb5b | [
"Apache-2.0"
] | null | null | null | #include "Button.hpp"
#include <iostream>
#include <vector>
Button::Button(short system, int dmg, int mult, std::string &msg)
: system_(system), dmg_(dmg), mult_(mult), msg_(msg)
{
if (system_ > 8 || system_ < 0) throw ButtonErr("Invalid System");
}
Button::Button(std::string str): system_(0), dmg_(0), mult_(... | 28.2 | 70 | 0.623227 | Dorfen |
319b3c07c2bf577a7fab08778d422b861480a9e1 | 535 | cpp | C++ | render/RenderTest/TestRenderMesh.cpp | don-reba/colors-visualization | fe3937087be79715307127591a06f38b4647254f | [
"BSD-3-Clause"
] | null | null | null | render/RenderTest/TestRenderMesh.cpp | don-reba/colors-visualization | fe3937087be79715307127591a06f38b4647254f | [
"BSD-3-Clause"
] | null | null | null | render/RenderTest/TestRenderMesh.cpp | don-reba/colors-visualization | fe3937087be79715307127591a06f38b4647254f | [
"BSD-3-Clause"
] | null | null | null | #include "RenderMesh.h"
#include <boost/test/unit_test.hpp>
#include <Eigen/Geometry>
using namespace Eigen;
using namespace std;
BOOST_AUTO_TEST_CASE(RenderMesh_Transform_Identity)
{
BOOST_CHECK_EQUAL
( ::Transform(Matrix4f::Identity(), Vector3f(1.0f, 2.0f, 3.0f))
, Vector3f(1.0f, 2.0f, 3.0f)
);... | 23.26087 | 96 | 0.68785 | don-reba |
31a038445803e57b1067b5a0991a97a9243b54d4 | 2,205 | cpp | C++ | GCMArduino/Joystick.cpp | GarrettCMiller/GCMArduino | 01906bfbb8751e048b9cdd470ee05a35965f276e | [
"MIT"
] | null | null | null | GCMArduino/Joystick.cpp | GarrettCMiller/GCMArduino | 01906bfbb8751e048b9cdd470ee05a35965f276e | [
"MIT"
] | null | null | null | GCMArduino/Joystick.cpp | GarrettCMiller/GCMArduino | 01906bfbb8751e048b9cdd470ee05a35965f276e | [
"MIT"
] | null | null | null | /*
This file is to run the game operating lever
September-December 2016
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later versio... | 31.5 | 81 | 0.632653 | GarrettCMiller |
31a03c2205865cd50606ea378ed3183cba720937 | 633 | cpp | C++ | Code/Core/application/application.cpp | wkigen/WingEngine | 5f0da3b26e11977d0205ecbd6e093c5846f26210 | [
"MIT"
] | 2 | 2018-01-17T08:03:02.000Z | 2018-02-22T14:23:38.000Z | Code/Core/application/application.cpp | wkigen/WingEngine | 5f0da3b26e11977d0205ecbd6e093c5846f26210 | [
"MIT"
] | null | null | null | Code/Core/application/application.cpp | wkigen/WingEngine | 5f0da3b26e11977d0205ecbd6e093c5846f26210 | [
"MIT"
] | null | null | null | #include "application.h"
#include "allocator\allocator.h"
#ifdef WING_PLATFORM_WIN32
#include "window\windowWindows.h"
#endif
#include "console\console.h"
namespace WingCore
{
Application::Application()
:mWindow(nullptr)
, mExit(false)
{
}
Application::~Application()
{
}
void Application::create()
{
... | 12.66 | 37 | 0.688784 | wkigen |
31a85e7af1694b55b73b9eee9a7fc27cbe7003f5 | 9,488 | cpp | C++ | vipster/step.cpp | hein09/vipster | b92302bf2bb8b8941e239ce8cbc7209e1e615b0b | [
"BSD-2-Clause"
] | 6 | 2015-12-02T15:33:27.000Z | 2017-07-28T17:46:51.000Z | vipster/step.cpp | hein09/vipster | b92302bf2bb8b8941e239ce8cbc7209e1e615b0b | [
"BSD-2-Clause"
] | 3 | 2018-02-04T16:11:19.000Z | 2018-03-16T16:23:29.000Z | vipster/step.cpp | hein09/vipster | b92302bf2bb8b8941e239ce8cbc7209e1e615b0b | [
"BSD-2-Clause"
] | 1 | 2017-07-05T11:44:55.000Z | 2017-07-05T11:44:55.000Z | #include "step.h"
using namespace Vipster;
Step::Step(AtomFmt fmt, const std::string &c)
: StepMutable{std::make_shared<atom_source>(fmt),
std::make_shared<BondList>(),
std::make_shared<std::string>(c)}
{}
Step::Step(const Step& s)
: StepMutable{std::make_shared<atom_sourc... | 31.313531 | 100 | 0.530038 | hein09 |
b3b7a4c71697b59999467e07d57bcc0db2ffe071 | 2,201 | cpp | C++ | src/singlethreadedpopulationfitnesscalculation.cpp | j0r1/EATk | 4ce34a030e21925532d2725cbb9460b19442424c | [
"MIT"
] | null | null | null | src/singlethreadedpopulationfitnesscalculation.cpp | j0r1/EATk | 4ce34a030e21925532d2725cbb9460b19442424c | [
"MIT"
] | null | null | null | src/singlethreadedpopulationfitnesscalculation.cpp | j0r1/EATk | 4ce34a030e21925532d2725cbb9460b19442424c | [
"MIT"
] | null | null | null | #include "singlethreadedpopulationfitnesscalculation.h"
using namespace std;
using namespace errut;
namespace eatk
{
SingleThreadedPopulationFitnessCalculation::SingleThreadedPopulationFitnessCalculation(const shared_ptr<GenomeFitnessCalculation> &genomeFitCalc)
: m_genomeFitnessCalculation(genomeFitCalc)
{
}
Sin... | 27.5125 | 145 | 0.749205 | j0r1 |
b3bf44d36b3b4fe6a9fc9914fa88113ab7139f8b | 1,041 | cpp | C++ | include/CrpLib/Matrix.cpp | AmrikSadhra/FCE-To-Obj | a3c928077add2bd5d5f3463daee6008f150a0a54 | [
"MIT"
] | 212 | 2019-08-10T16:57:57.000Z | 2022-03-30T02:21:05.000Z | include/CrpLib/Matrix.cpp | AmrikSadhra/FCE-To-Obj | a3c928077add2bd5d5f3463daee6008f150a0a54 | [
"MIT"
] | 11 | 2018-07-10T18:01:09.000Z | 2019-06-26T13:41:24.000Z | include/CrpLib/Matrix.cpp | AmrikSadhra/FCE-to-OBJ | a3c928077add2bd5d5f3463daee6008f150a0a54 | [
"MIT"
] | 20 | 2020-02-09T02:38:35.000Z | 2022-03-23T20:26:28.000Z | #include "Matrix.h"
namespace CrpLib {
CMatrix::CMatrix(void) {
for (int i = 0; i < 16; i++)
m_Items[i] = (i % 5 == 0) ? 1.0f : 0.0f;
}
CMatrix::CMatrix(float *values) {
memcpy(m_Items, values, 16 * 4);
}
CMatrix::~CMatrix(void) {
}
void CMatrix::Read(std::... | 19.641509 | 62 | 0.533141 | AmrikSadhra |
b3c2e2a903783804c74987bbecab9c40fc76a2f8 | 2,884 | hpp | C++ | sources/Modules/Serial/SerialEndpointAddress.hpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | sources/Modules/Serial/SerialEndpointAddress.hpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | sources/Modules/Serial/SerialEndpointAddress.hpp | palchukovsky/TunnelEx | ec645271ab8b79225e378345ff108795110c57de | [
"Apache-2.0"
] | null | null | null | /**************************************************************************
* Created: 2009/09/17 16:15
* Author: Eugene V. Palchukovsky
* E-mail: eugene@palchukovsky.com
* -------------------------------------------------------------------
* Project: TunnelEx
* URL: http://tunnelex.net
* Copyrig... | 23.447154 | 84 | 0.68724 | palchukovsky |
b3c3a6d8eef723969d8a649cc99ac72f9ebf79b6 | 22,941 | hpp | C++ | src/include/OSL/OFile.hpp | RosettaHS/OKit | 05ee37e164a9a0987f7837223a50875eee60b471 | [
"MIT"
] | 20 | 2020-12-05T04:25:23.000Z | 2021-02-13T05:38:24.000Z | src/include/OSL/OFile.hpp | RosettaHS/OrionAPI | 05ee37e164a9a0987f7837223a50875eee60b471 | [
"MIT"
] | 4 | 2021-01-11T16:57:43.000Z | 2021-01-13T22:06:25.000Z | src/include/OSL/OFile.hpp | RosettaHS/OrionAPI | 05ee37e164a9a0987f7837223a50875eee60b471 | [
"MIT"
] | 6 | 2021-01-11T15:45:58.000Z | 2021-01-13T20:37:17.000Z |
/**********************************************************************************/
/* */
/* Copyright (c) 2021 */
/* Rosetta H&S International ... | 50.642384 | 185 | 0.681139 | RosettaHS |
b3cc2ba9b6f915509985cc0af6b507dc24307b7d | 1,756 | cpp | C++ | 201510_201609/0827_tenka1-2016-qualB/B.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 7 | 2019-03-24T14:06:29.000Z | 2020-09-17T21:16:36.000Z | 201510_201609/0827_tenka1-2016-qualB/B.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | null | null | null | 201510_201609/0827_tenka1-2016-qualB/B.cpp | kazunetakahashi/atcoder | 16ce65829ccc180260b19316e276c2fcf6606c53 | [
"MIT"
] | 1 | 2020-07-22T17:27:09.000Z | 2020-07-22T17:27:09.000Z | #include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
using namespace std;
typedef long long ll;
string rep(string S) {
reverse(S.begin(), S.end());
for (auto it = S.begin(); it != S.end(); it++) {
if (*it == '(') {
*it = ')';
} else {
*it = '(';
}
}
return S;
}
... | 18.88172 | 53 | 0.357631 | kazunetakahashi |
b3d352fcf002428de33ec17ffd51353cc0e1e99c | 365 | hpp | C++ | src/TextureLoaderFrontend/load_dds.hpp | WubiCookie/VkRenderer | 87cc5d858591fc976c197ab2834e1ac9a418becd | [
"MIT"
] | 2 | 2020-05-31T19:54:19.000Z | 2021-09-14T12:00:12.000Z | src/TextureLoaderFrontend/load_dds.hpp | WubiCookie/VkRenderer | 87cc5d858591fc976c197ab2834e1ac9a418becd | [
"MIT"
] | null | null | null | src/TextureLoaderFrontend/load_dds.hpp | WubiCookie/VkRenderer | 87cc5d858591fc976c197ab2834e1ac9a418becd | [
"MIT"
] | null | null | null | #ifndef LOAD_DDS_HPP
#define LOAD_DDS_HPP
#include "CommandBufferPool.hpp"
#include "Texture2D.hpp"
#include "TextureFactory.hpp"
cdm::Texture2D texture_loadDDS(
const char* path, cdm::TextureFactory& factory,
cdm::CommandBufferPool& pool,
VkImageLayout outputLayout = VK_IMAGE_LAYOUT_SHADER_READ... | 26.071429 | 76 | 0.756164 | WubiCookie |
b3d4be0b478dadb25523dedd7c80f5f0950b3a56 | 23,924 | cxx | C++ | EVE/EveDet/AliEveTRDData.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | EVE/EveDet/AliEveTRDData.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | EVE/EveDet/AliEveTRDData.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | // $Id$
// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notic... | 29.97995 | 165 | 0.626358 | AllaMaevskaya |
b3d5663ab7d25d2962b3c6d7527f1e783f2243b5 | 336 | hpp | C++ | src/Text.hpp | graypilgrim/pattern-matching | 443bcd303a4660e3b959dce4e49ecd9153e3bbc6 | [
"MIT"
] | null | null | null | src/Text.hpp | graypilgrim/pattern-matching | 443bcd303a4660e3b959dce4e49ecd9153e3bbc6 | [
"MIT"
] | null | null | null | src/Text.hpp | graypilgrim/pattern-matching | 443bcd303a4660e3b959dce4e49ecd9153e3bbc6 | [
"MIT"
] | null | null | null | #ifndef TEXT_HPP
#define TEXT_HPP
#include <fstream>
#include <string>
class Text
{
public:
Text(std::istream& content, bool removeNewline);
std::string getNormalizedContent() const;
private:
unsigned char myTolower(unsigned char ch);
std::string normalizedContent_;
};
#endif /* end of include gua... | 16 | 52 | 0.717262 | graypilgrim |
b3da5874873ada7a17537e3c012f86c3520c245f | 8,995 | cpp | C++ | cs/cli/vw_base.cpp | martinpopel/vowpal_wabbit | b57bccad86e09ad48b8d70c675003bc886bea8f6 | [
"BSD-3-Clause"
] | 4 | 2015-12-18T20:55:50.000Z | 2019-03-17T20:16:55.000Z | cs/cli/vw_base.cpp | martinpopel/vowpal_wabbit | b57bccad86e09ad48b8d70c675003bc886bea8f6 | [
"BSD-3-Clause"
] | null | null | null | cs/cli/vw_base.cpp | martinpopel/vowpal_wabbit | b57bccad86e09ad48b8d70c675003bc886bea8f6 | [
"BSD-3-Clause"
] | 4 | 2017-10-18T10:39:59.000Z | 2018-11-24T12:38:10.000Z | /*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
#include "vw_clr.h"
#include "vw_base.h"
#include "vw_model.h"
#include "vw_prediction.h"
#include "vw_example.h"
#include "... | 27.507645 | 155 | 0.51851 | martinpopel |
b3dc9f520ba0284d6ac8b8f12766c0059a4b6423 | 192 | hpp | C++ | Ev/now.hpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 108 | 2020-10-01T17:12:40.000Z | 2022-03-30T09:18:03.000Z | Ev/now.hpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 94 | 2020-10-03T13:40:30.000Z | 2022-03-30T09:18:00.000Z | Ev/now.hpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 17 | 2020-10-29T13:27:59.000Z | 2022-03-18T13:05:03.000Z | #ifndef EV_NOW_HPP
#define EV_NOW_HPP
namespace Ev {
/** Ev::now
*
* @brief returns the current time, in seconds
* from the epoch.
*/
double now();
}
#endif /* !defined(EV_NOW_HPP) */
| 12 | 46 | 0.65625 | 3nprob |
b3dcb23e89d9d38b0a8e91a11a1410d90cceaafb | 1,851 | hpp | C++ | IniFile.hpp | malciin/minesweeper | 2cff055be8eedc6979c794fa2b6b220f7deb6a69 | [
"MIT"
] | null | null | null | IniFile.hpp | malciin/minesweeper | 2cff055be8eedc6979c794fa2b6b220f7deb6a69 | [
"MIT"
] | null | null | null | IniFile.hpp | malciin/minesweeper | 2cff055be8eedc6979c794fa2b6b220f7deb6a69 | [
"MIT"
] | null | null | null | #pragma once
#include <unordered_map>
#include <string>
#include <fstream>
#include <exception>
#include <regex>
class IniFile
{
std::string filePath;
std::unordered_map<std::string, std::string> container;
std::ifstream iFile;
public:
IniFile(const char * _filePath) : filePath(_filePath)
{
// ^([A-Z|a-z][^\s]... | 24.038961 | 97 | 0.611561 | malciin |
b3df668a5839226043bdfcfac109eab196362bd2 | 3,343 | cpp | C++ | core/primitives/Sphere.cpp | blroot/superboy | f14f490c25e4f3effd7a6a8ae60656e30a67f1c4 | [
"MIT"
] | null | null | null | core/primitives/Sphere.cpp | blroot/superboy | f14f490c25e4f3effd7a6a8ae60656e30a67f1c4 | [
"MIT"
] | 13 | 2017-07-19T20:55:20.000Z | 2017-11-09T17:28:10.000Z | core/primitives/Sphere.cpp | blroot/superboy | f14f490c25e4f3effd7a6a8ae60656e30a67f1c4 | [
"MIT"
] | null | null | null | /*
* sphere.cpp
*
* Created on: Jul 19, 2017
* Author: blroot
*/
#include "Sphere.h"
#include <math.h>
#include "../../utils/math/mat4.h"
#include "../../utils/math/vec4.h"
#include <iostream>
namespace superboy {
Sphere::Sphere(vec3 center, float radius) {
this->center = center;
this->radius = radi... | 26.322835 | 101 | 0.658391 | blroot |
b3e88de25152104e97a4ff64aff3f4a72e7cd20f | 3,672 | cpp | C++ | libpvparallelview/tests/zone_tree_create.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvparallelview/tests/zone_tree_create.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | libpvparallelview/tests/zone_tree_create.cpp | inendi-inspector/inspector | 9b9a00222d8a73cb0817ca56790ee9155db61cc4 | [
"MIT"
] | null | null | null | //
// MIT License
//
// © ESI Group, 2015
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, pu... | 33.688073 | 94 | 0.701797 | inendi-inspector |
b3eda89e559194ca096c5528119d29cd429e4b85 | 4,450 | hpp | C++ | include/eepp/graphics/framebuffer.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | include/eepp/graphics/framebuffer.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | null | null | null | include/eepp/graphics/framebuffer.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #ifndef EE_GRAPHICSCFRAMEBUFFER_HPP
#define EE_GRAPHICSCFRAMEBUFFER_HPP
#include <eepp/graphics/base.hpp>
#include <eepp/graphics/texture.hpp>
#include <eepp/graphics/view.hpp>
namespace EE { namespace Window {
class Window;
}} // namespace EE::Window
using namespace EE::Window;
namespace EE { namespace Graphics {
... | 32.481752 | 95 | 0.715955 | jayrulez |
b3f54bcdac690a0dce46d65b94c0eaa0653aa755 | 83,354 | hpp | C++ | firmware/common/STM32G473/syscfg.hpp | richardclli/SynapseOS | da053155baf9ebf84db41ac24af101af1c9871f6 | [
"MIT"
] | null | null | null | firmware/common/STM32G473/syscfg.hpp | richardclli/SynapseOS | da053155baf9ebf84db41ac24af101af1c9871f6 | [
"MIT"
] | null | null | null | firmware/common/STM32G473/syscfg.hpp | richardclli/SynapseOS | da053155baf9ebf84db41ac24af101af1c9871f6 | [
"MIT"
] | 1 | 2020-08-18T04:35:45.000Z | 2020-08-18T04:35:45.000Z | #pragma once
#include "Memory.hpp"
namespace STM32G473XX
{
/**
* System configuration controller
*/
class syscfg_p {
public:
/**
* Remap Memory register
*/
class memrmp_r {
public:
/**
* Memory mapping selection
*/
class mem_mode_f {
public:
static constexpr std::size_t Offset = 0;
static constexpr std::siz... | 45.824079 | 167 | 0.725196 | richardclli |
b3f969800af380f119c72e9d5114604cb5d8a5c8 | 4,001 | cpp | C++ | src/rllib/bundle/Bundle.cpp | loriswit/rllib | a09a73f8ac353db76454007b2ec95bf438c0fc1a | [
"MIT"
] | 1 | 2022-02-15T17:49:44.000Z | 2022-02-15T17:49:44.000Z | src/rllib/bundle/Bundle.cpp | loriswit/rllib | a09a73f8ac353db76454007b2ec95bf438c0fc1a | [
"MIT"
] | null | null | null | src/rllib/bundle/Bundle.cpp | loriswit/rllib | a09a73f8ac353db76454007b2ec95bf438c0fc1a | [
"MIT"
] | null | null | null | #include <rllib/bundle/Bundle.hpp>
#include <rllib/stream/FileReader.hpp>
#include <rllib/stream/FileWriter.hpp>
#include "../util/Compress.hpp"
namespace rl
{
Bundle::Bundle(FilePath path)
{
load(std::move(path));
}
void Bundle::load(FilePath path)
{
m_path = std::move(path);
FileReader file(m_path);
... | 27.593103 | 102 | 0.609848 | loriswit |
b3fb3acdf7b486047d360ba363948ac95c7bac7f | 2,332 | cpp | C++ | libs/metamonad/test/catch_just.cpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 70 | 2015-01-15T09:05:15.000Z | 2021-12-08T15:49:31.000Z | libs/metamonad/test/catch_just.cpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 4 | 2015-06-18T19:25:34.000Z | 2016-05-13T19:49:51.000Z | libs/metamonad/test/catch_just.cpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 5 | 2015-07-10T08:18:09.000Z | 2021-12-01T07:17:57.000Z | // Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
// 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 <mpllibs/metamonad/catch_just.hpp>
#include <mpllibs/metamonad/exception.hpp>
#include <... | 21.009009 | 77 | 0.636792 | sabel83 |
b3fca47cd9be8c97febbb9ef1487c47ed3876e42 | 241 | cc | C++ | below1.5/heartrate.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below1.5/heartrate.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below1.5/heartrate.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int n;
double x;
double p;
cin>>n;
for (int i =0; i < n; i++){
cin>>x>>p;
cout<<(x-1)*60/p<<' '<<(x)*60/p<<' '<<(x+1)*60/p<<"\n";
}
return 0;
} | 17.214286 | 63 | 0.427386 | danzel-py |
b3fe8dc278247f77b746a75eb80bfa01ec384c6e | 2,007 | cpp | C++ | source/commands.cpp | HiddenNode/SOWI | 1cfec855e3441d283db839c2acfec7e2a960e2c3 | [
"MIT"
] | null | null | null | source/commands.cpp | HiddenNode/SOWI | 1cfec855e3441d283db839c2acfec7e2a960e2c3 | [
"MIT"
] | null | null | null | source/commands.cpp | HiddenNode/SOWI | 1cfec855e3441d283db839c2acfec7e2a960e2c3 | [
"MIT"
] | null | null | null | #include <string>
#include <regex>
#include <iostream>
#include "commands.hpp"
#include "errors.hpp"
namespace sw // isValid checks if the syntax of the arguments is correct, further checks are required to make sure the arguments are within their boundries.
{
bool IntegerArgument::isValid(std::string& s)... | 26.76 | 157 | 0.488291 | HiddenNode |
b6025e05da6ead252504ae83882c4fa550cb4cde | 524 | cpp | C++ | src/rng_service.cpp | cpirc/Megumax | 06e23bf32d85097eea8ae5b97bd5ed4beb49fc35 | [
"MIT"
] | 3 | 2020-04-30T16:23:02.000Z | 2020-05-03T14:15:05.000Z | src/rng_service.cpp | cpirc/Megumax | 06e23bf32d85097eea8ae5b97bd5ed4beb49fc35 | [
"MIT"
] | null | null | null | src/rng_service.cpp | cpirc/Megumax | 06e23bf32d85097eea8ae5b97bd5ed4beb49fc35 | [
"MIT"
] | null | null | null | #include "rng_service.h"
namespace megumax {
std::unique_ptr<RNGService> RNGService::instance_ = nullptr;
RNGService::RNGService() : rng_(std::random_device{}()) {
}
RNGService* RNGService::singleton() {
if (instance_ == nullptr) {
instance_ = std::make_unique<RNGService>();
}
return instance_.g... | 22.782609 | 78 | 0.69084 | cpirc |
b606bf1981995c89a06d806a9b80353f6ea878a2 | 5,617 | cpp | C++ | Visual Mercutio/zBaseLib/PSS_FieldColumn.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zBaseLib/PSS_FieldColumn.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zBaseLib/PSS_FieldColumn.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_FieldColumn -----------------------------------------------------*
****************************************************************************
* Description : Provides a field column *
* Devel... | 31.379888 | 89 | 0.401104 | Jeanmilost |
b60bb500db921e3101955a1085c396a0ad5675b7 | 3,089 | cpp | C++ | Lab5/G.cpp | satans404/CS203-2020fal-SUSTech | 356e616081962e04477912d2d81d31fd1b85fa23 | [
"MIT"
] | 2 | 2020-11-25T11:10:39.000Z | 2020-11-26T12:22:23.000Z | Lab5/G.cpp | satans404/CS203-2020fall-SUSTech | 356e616081962e04477912d2d81d31fd1b85fa23 | [
"MIT"
] | null | null | null | Lab5/G.cpp | satans404/CS203-2020fall-SUSTech | 356e616081962e04477912d2d81d31fd1b85fa23 | [
"MIT"
] | null | null | null | #pragma GCC optimize(2)
#include <iostream>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <algorithm>
using namespace std;
#define int long long
int n, q, ans, L, R,b[310000], c[310000];
class node
{
public:
int val, index;
node(int v=0, int i=0)
{
... | 19.30625 | 75 | 0.388799 | satans404 |
b60c11f7543e6b05d4a0199f6c3ebb08b8db0027 | 1,508 | cpp | C++ | src/world_interface/noop_world.cpp | huskyroboticsteam/Resurgence | 649f78103b6d76709fdf55bb38d08c0ff50da140 | [
"Apache-2.0"
] | 3 | 2021-12-23T23:31:42.000Z | 2022-02-16T07:17:41.000Z | src/world_interface/noop_world.cpp | huskyroboticsteam/Resurgence | 649f78103b6d76709fdf55bb38d08c0ff50da140 | [
"Apache-2.0"
] | 2 | 2021-11-22T05:33:43.000Z | 2022-01-23T07:01:47.000Z | src/world_interface/noop_world.cpp | huskyroboticsteam/Resurgence | 649f78103b6d76709fdf55bb38d08c0ff50da140 | [
"Apache-2.0"
] | null | null | null | #include "../navtypes.h"
#include "world_interface.h"
#include <unistd.h>
using namespace navtypes;
using namespace robot::types;
namespace robot {
extern const WorldInterface WORLD_INTERFACE = WorldInterface::noop;
namespace{
DiffDriveKinematics drive_kinematics(1); //doesn't really matter what we set this to
... | 19.584416 | 86 | 0.746021 | huskyroboticsteam |
b60cea32a658593d970ab7a3096f934958438758 | 2,094 | cpp | C++ | src/posNode.cpp | tyuezhan/snavquad_interface | 13103c1e2ed073f1f5e07c2523782dfe6066cbb7 | [
"BSD-3-Clause"
] | null | null | null | src/posNode.cpp | tyuezhan/snavquad_interface | 13103c1e2ed073f1f5e07c2523782dfe6066cbb7 | [
"BSD-3-Clause"
] | 3 | 2019-07-18T21:26:38.000Z | 2020-09-01T20:27:03.000Z | src/posNode.cpp | tyuezhan/snavquad_interface | 13103c1e2ed073f1f5e07c2523782dfe6066cbb7 | [
"BSD-3-Clause"
] | 5 | 2019-07-04T18:29:33.000Z | 2022-02-09T20:22:16.000Z | #include <ros/ros.h>
#include "snav/snapdragon_navigator.h"
#include <quadrotor_msgs/PositionCommand.h>
void pos_callback(const quadrotor_msgs::PositionCommand::ConstPtr &pos)
{
float yaw = static_cast<float>(pos->yaw);
float yaw_rate = static_cast<float>(pos->yaw_dot);
float x,y,z;
x = static_cast<float>(pos->po... | 30.794118 | 142 | 0.727794 | tyuezhan |
b60f9de9bd05f50a7dd234ca1c823274b919da9d | 125 | cpp | C++ | utiltestlib/qsigwatcher/impl/internalstructures.cpp | patrickroocks/lsystem | 43e56d6fc069f1b11fd485c58be9ee573180f1da | [
"MIT"
] | 1 | 2021-09-19T21:51:04.000Z | 2021-09-19T21:51:04.000Z | utiltestlib/qsigwatcher/impl/internalstructures.cpp | patrickroocks/lsystem | 43e56d6fc069f1b11fd485c58be9ee573180f1da | [
"MIT"
] | null | null | null | utiltestlib/qsigwatcher/impl/internalstructures.cpp | patrickroocks/lsystem | 43e56d6fc069f1b11fd485c58be9ee573180f1da | [
"MIT"
] | null | null | null | #include "internalstructures.h"
namespace sigwatcher::impl {
bool ExpectOutput::showExtendedExpectation = false;
}
| 15.625 | 52 | 0.744 | patrickroocks |
b6159e128b9c6856b00aafde6743af02e12eb9c2 | 16,054 | cpp | C++ | src/modeler/ca_modeler_gui.cpp | rff255/Genesis | d87ff57e2c36f39bf62b4953f5f99190e82588f8 | [
"MIT"
] | 7 | 2017-08-08T17:10:58.000Z | 2020-10-02T04:33:03.000Z | src/modeler/ca_modeler_gui.cpp | rff255/Genesis | d87ff57e2c36f39bf62b4953f5f99190e82588f8 | [
"MIT"
] | 1 | 2017-05-02T01:50:22.000Z | 2017-05-02T01:50:22.000Z | src/modeler/ca_modeler_gui.cpp | rff255/Genesis | d87ff57e2c36f39bf62b4953f5f99190e82588f8 | [
"MIT"
] | 3 | 2017-09-01T08:04:44.000Z | 2020-08-21T01:38:24.000Z | #include "ui_ca_modeler_gui.h"
#include "ca_modeler_gui.h"
#include "AttributeHandler/attribute_handler_widget.h"
#include "VicinityHandler/vicinity_handler_widget.h"
#include "JSON_nlohmann/json.hpp"
#include <QTemporaryDir>
#include <QMessageBox>
#include <QFileDialog>
#include <QCloseEvent>
#include <QDebug>
#inc... | 40.336683 | 187 | 0.702691 | rff255 |
b61d29d6625f157818bea3957a3841137bf76910 | 11,294 | cpp | C++ | src/tnl/t_array_api.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/tnl/t_array_api.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/tnl/t_array_api.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | /* $Id: t_array_api.c,v 1.28 2002/10/24 23:57:25 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Version: 4.1
*
* Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (t... | 28.024814 | 81 | 0.642642 | OS2World |
b621274614451a06ddaff376d81ec32016667727 | 748 | cpp | C++ | Ejercicios/Ejercicio_57 Inicializar valores para arreglos bidimencionales/main.cpp | Olioliver98/C- | f47db3c3aab37387b9e4f227c910e9cc8359729e | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio_57 Inicializar valores para arreglos bidimencionales/main.cpp | Olioliver98/C- | f47db3c3aab37387b9e4f227c910e9cc8359729e | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio_57 Inicializar valores para arreglos bidimencionales/main.cpp | Olioliver98/C- | f47db3c3aab37387b9e4f227c910e9cc8359729e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{/*
// Primero fila y luego Columna
string nombres[3][2];
nombres[0][0] = "Juan";
nombres[0][1] = "Perez";
nombres[1][0] = "Maria";
nombres[1][1] = "Martinez";
nombres[2][0] = "Pero";
nombres[2][1] =... | 17 | 42 | 0.479947 | Olioliver98 |
b62979a24840159cb2eda0eb4eb560b4a48e1cea | 34,657 | cc | C++ | src/QlScanner.re2c.cc | mnowotnik/fovris | 82f692743fa6c96fef05041e686d716b03c22f07 | [
"BSD-3-Clause"
] | 4 | 2017-01-04T17:22:55.000Z | 2018-12-08T02:10:18.000Z | src/QlScanner.re2c.cc | Mike-Now/fovris | 82f692743fa6c96fef05041e686d716b03c22f07 | [
"BSD-3-Clause"
] | null | null | null | src/QlScanner.re2c.cc | Mike-Now/fovris | 82f692743fa6c96fef05041e686d716b03c22f07 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T05:26:13.000Z | 2022-03-24T05:26:13.000Z | /* Generated by re2c 0.15.3 on Mon Dec 26 19:56:28 2016 */
#include "QlScanner.h"
#include "QlParse.h"
namespace fovris{
int QlScanner::scan(LexerState &state){
state.quoteEscapes.clear();
state.quotedString = false;
#define YYMAXFILL 19
//re2c:indent:top = 1;
//re2c:indent:string = " ";
... | 13.422541 | 59 | 0.543325 | mnowotnik |
b62a108f9a292c566c4ee5ce9556add6031c5043 | 1,593 | hpp | C++ | src/Versions/1.1/window.hpp | 737464/mtex | a7f5d92dc0877f74e5e77be721fba47944e0dbe6 | [
"MIT"
] | null | null | null | src/Versions/1.1/window.hpp | 737464/mtex | a7f5d92dc0877f74e5e77be721fba47944e0dbe6 | [
"MIT"
] | null | null | null | src/Versions/1.1/window.hpp | 737464/mtex | a7f5d92dc0877f74e5e77be721fba47944e0dbe6 | [
"MIT"
] | null | null | null | #ifndef window_hpp
#define window_hpp
#include <ncurses.h>
#include <vector>
#include <string>
#include "text.hpp"
class _window_{
public:
MEVENT mouse;
int mxpos; //x-position of mouse
int mypos; //y-position of mouse
int width;
int heigh... | 17.898876 | 66 | 0.467043 | 737464 |
b62f70b699662e84d6a151aab788e22876baaedd | 18,964 | cpp | C++ | src/UIContext.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 50 | 2015-06-01T19:23:24.000Z | 2021-12-22T02:14:23.000Z | src/UIContext.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 109 | 2015-07-20T07:43:03.000Z | 2021-01-31T21:52:36.000Z | src/UIContext.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 9 | 2015-07-02T21:36:20.000Z | 2019-10-19T04:18:02.000Z | // Onut
#include <onut/ContentManager.h>
#include <onut/Font.h>
#include <onut/Log.h>
#include <onut/Renderer.h>
#include <onut/SpriteBatch.h>
#include <onut/Texture.h>
#include <onut/UIComponents.h>
#include <onut/UIContext.h>
#include <onut/UIControl.h>
#include <onut/UITextBox.h>
// Third parties
#if defined(WIN32)... | 35.916667 | 134 | 0.474056 | Daivuk |
ac09f253c2258875b6c824dc81ef14ca561628b4 | 8,813 | cpp | C++ | main.cpp | BlinfoldKing/Final-Task-Data-Structure | ba649d8dc714d02b36fec6532565bec03afaf44b | [
"MIT"
] | null | null | null | main.cpp | BlinfoldKing/Final-Task-Data-Structure | ba649d8dc714d02b36fec6532565bec03afaf44b | [
"MIT"
] | null | null | null | main.cpp | BlinfoldKing/Final-Task-Data-Structure | ba649d8dc714d02b36fec6532565bec03afaf44b | [
"MIT"
] | 2 | 2018-03-20T08:07:41.000Z | 2018-04-14T08:14:53.000Z | #include "header.h"
#include "userInterface.h"
#include "clrscr.h"
#include <stdio.h>
using namespace std;
listCelebs L_C;
listFollowers L_F;
addressCeleb currCeleb;
addressFollower currFollower;
int state = 0;
void init () {
CreateListCeleb(L_C);
CreateListFollower(L_F);
}
void Follow (string Celeb, str... | 33.131579 | 112 | 0.411892 | BlinfoldKing |
ac0bd3e654e5f84010d13d313b44053bf98cf67c | 7,988 | hpp | C++ | libcaf_core/caf/flow/op/mcast.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/flow/op/mcast.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/caf/flow/op/mcast.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include "caf/flow/coordinator.hpp"
#include "caf/flow/observer.hpp"
#includ... | 24.428135 | 80 | 0.598773 | seewpx |
ac1358b08b856fec0659304b8460664d71b812e4 | 7,550 | cpp | C++ | Injetor_Manual_Map/injecao.cpp | jslucas22/INJETOR_MM | 97c54aafab347444f3130912281f637daa7a8dd9 | [
"MIT"
] | 1 | 2020-09-26T16:52:03.000Z | 2020-09-26T16:52:03.000Z | Injetor_Manual_Map/injecao.cpp | jslucas22/INJETOR_MM | 97c54aafab347444f3130912281f637daa7a8dd9 | [
"MIT"
] | null | null | null | Injetor_Manual_Map/injecao.cpp | jslucas22/INJETOR_MM | 97c54aafab347444f3130912281f637daa7a8dd9 | [
"MIT"
] | null | null | null | #include "injecao.h"
using namespace std;
void __stdcall shellcode(MAPEAMENTO_MANUAL* pDados);
bool MapeamentoManual(HANDLE hProcesso, const char* qtdDll) {
BYTE* pBuscarDados = nullptr;
BYTE* alvo = nullptr;
IMAGE_NT_HEADERS* pBakNTCabecalho = nullptr;
IMAGE_OPTIONAL_HEADER* pBakOpCabecalho = nullptr;
IMAGE_F... | 34.792627 | 171 | 0.73947 | jslucas22 |
ac227b4fc6f0ebc0cd91e9401728873e8e83a9d0 | 5,800 | cpp | C++ | src/logi/program/shader_module.cpp | PrimozLavric/VulkanRenderer | 6d95b8ec4b0133ce46b4b4e550d20ef17f77b2c4 | [
"BSD-2-Clause"
] | 6 | 2021-04-06T02:37:55.000Z | 2021-11-24T06:14:04.000Z | src/logi/program/shader_module.cpp | PrimozLavric/Logi | 6d95b8ec4b0133ce46b4b4e550d20ef17f77b2c4 | [
"BSD-2-Clause"
] | null | null | null | src/logi/program/shader_module.cpp | PrimozLavric/Logi | 6d95b8ec4b0133ce46b4b4e550d20ef17f77b2c4 | [
"BSD-2-Clause"
] | null | null | null | /**
* Project Logi source code
* Copyright (C) 2019 Primoz Lavric
*
* 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 3 of the License, or
* (at your option) any later versio... | 36.942675 | 118 | 0.727586 | PrimozLavric |
ac238f5f176ba015d9060c1d278cb867ea1202d0 | 3,565 | cpp | C++ | LudensVR_Project_01/Intermediate/Build/Win64/UE4Editor/Inc/LudensVR_Project_01/TP_VRGameModeBaseCPP.gen.cpp | kruore/VRGame_LudensVR | 93c236a01dc767228f1ded59922d4ea3d53cc6ee | [
"BSD-3-Clause"
] | null | null | null | LudensVR_Project_01/Intermediate/Build/Win64/UE4Editor/Inc/LudensVR_Project_01/TP_VRGameModeBaseCPP.gen.cpp | kruore/VRGame_LudensVR | 93c236a01dc767228f1ded59922d4ea3d53cc6ee | [
"BSD-3-Clause"
] | null | null | null | LudensVR_Project_01/Intermediate/Build/Win64/UE4Editor/Inc/LudensVR_Project_01/TP_VRGameModeBaseCPP.gen.cpp | kruore/VRGame_LudensVR | 93c236a01dc767228f1ded59922d4ea3d53cc6ee | [
"BSD-3-Clause"
] | null | null | null | // Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... | 45.126582 | 253 | 0.795792 | kruore |
ac25ca9fe22861150031fc0b78e46a26399fbd80 | 9,108 | cc | C++ | src/windows/kernel/nt/syscall/types/OBJECT_ATTRIBUTES_IMPL.cc | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 23 | 2021-02-17T16:58:52.000Z | 2022-02-12T17:01:06.000Z | src/windows/kernel/nt/syscall/types/OBJECT_ATTRIBUTES_IMPL.cc | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 1 | 2021-04-01T22:41:32.000Z | 2021-09-24T14:14:17.000Z | src/windows/kernel/nt/syscall/types/OBJECT_ATTRIBUTES_IMPL.cc | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 4 | 2021-02-17T16:53:18.000Z | 2021-04-13T16:51:10.000Z | /*
* Copyright 2021 Assured Information Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 31.846154 | 100 | 0.699385 | IntroVirt |
ac28c75cc19d60b9cdd86e433f2ad76044f396fa | 1,540 | cpp | C++ | src/framework/game.cpp | tevoran/y-fight | e83d52b8b265094ebd7e295555e89aa4ecd2bfbd | [
"BSD-2-Clause"
] | null | null | null | src/framework/game.cpp | tevoran/y-fight | e83d52b8b265094ebd7e295555e89aa4ecd2bfbd | [
"BSD-2-Clause"
] | null | null | null | src/framework/game.cpp | tevoran/y-fight | e83d52b8b265094ebd7e295555e89aa4ecd2bfbd | [
"BSD-2-Clause"
] | null | null | null | #include "y-fight.hpp"
yf::game::game(const char* game_name)
{
std::cout << "initializing game...";
SDL_Init(SDL_INIT_EVERYTHING);
TTF_Init();
SDL_DisplayMode mode_info;
if(SDL_GetDesktopDisplayMode(0, &mode_info)!=0)
{
std::cout << std::endl << "[WARNING]: Couldn't get desktop resolution" << std::endl;
... | 25.666667 | 128 | 0.702597 | tevoran |
ac2fba69fa5f71e2cc0501808a811c29a721b1b6 | 702 | cpp | C++ | src/top.chenqwwq/leetcode/daily/_20220117/count-vowels-permutation.cpp | chenqwwq/_leetcode | a8055c53c9a68cedb1b57a56f98e83709448e4cb | [
"Apache-2.0"
] | null | null | null | src/top.chenqwwq/leetcode/daily/_20220117/count-vowels-permutation.cpp | chenqwwq/_leetcode | a8055c53c9a68cedb1b57a56f98e83709448e4cb | [
"Apache-2.0"
] | null | null | null | src/top.chenqwwq/leetcode/daily/_20220117/count-vowels-permutation.cpp | chenqwwq/_leetcode | a8055c53c9a68cedb1b57a56f98e83709448e4cb | [
"Apache-2.0"
] | null | null | null | //
// Created by chenqwwq on 2022/1/17.
//
#include "stdc++.h"
#include "common.h"
using namespace std;
typedef long long LL;
class Solution {
private:
long long MOD = 1e9 + 7;
public:
int countVowelPermutation(int n) {
if (n == 1) {
return 5;
}
// 分别保存 a e i o u
... | 21.272727 | 64 | 0.434473 | chenqwwq |
ac320a7b010796b4b0d04ece7eb9440a7922a771 | 570 | cpp | C++ | codeforces/easy_100/1374C.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | 2 | 2018-06-26T09:52:14.000Z | 2018-07-12T15:02:01.000Z | codeforces/easy_100/1374C.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | null | null | null | codeforces/easy_100/1374C.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
stack<char> st;
string s;
cin>>s;
int count = 0;
for(int i = 0; i<n; i++){
if(s[i] == '(')
st.push(s[i]);
... | 14.615385 | 33 | 0.314035 | sidgairo18 |
ac421f4ead9f147f8139d7ab22ae7abd4d6c38f6 | 4,004 | cpp | C++ | Source/BattleRoyale/core/Abilities/AbilityJump.cpp | homeguatlla/BattleRoyale | 9d68a4a902c9b0052788769ae6b963d65ef060a4 | [
"Unlicense"
] | 2 | 2022-02-11T07:25:49.000Z | 2022-03-14T23:00:28.000Z | Source/BattleRoyale/core/Abilities/AbilityJump.cpp | homeguatlla/BattleRoyale | 9d68a4a902c9b0052788769ae6b963d65ef060a4 | [
"Unlicense"
] | null | null | null | Source/BattleRoyale/core/Abilities/AbilityJump.cpp | homeguatlla/BattleRoyale | 9d68a4a902c9b0052788769ae6b963d65ef060a4 | [
"Unlicense"
] | null | null | null |
#include "BattleRoyale/core/Abilities/AbilityJump.h"
#include "AbilitiesInput.h"
#include "AbilitySystemGlobals.h"
#include "GameplayCueManager.h"
#include "BattleRoyale/core/Character/ICharacter.h"
UAbilityJump::UAbilityJump()
{
AbilityInputID = EAbilityInputID::Jump;
InstancingPolicy = EGameplayAbilityInstancingP... | 39.643564 | 130 | 0.708541 | homeguatlla |
ac4c521c123331d37f0a63141c3200a2130a8b0e | 2,384 | cpp | C++ | 7.cpp | jonathanxqs/lintcode | 148435aff0a83ac5d77a7ccbd5d0caaea3140a62 | [
"MIT"
] | 1 | 2016-06-21T16:29:37.000Z | 2016-06-21T16:29:37.000Z | 7.cpp | jonathanxqs/lintcode | 148435aff0a83ac5d77a7ccbd5d0caaea3140a62 | [
"MIT"
] | null | null | null | 7.cpp | jonathanxqs/lintcode | 148435aff0a83ac5d77a7ccbd5d0caaea3140a62 | [
"MIT"
] | null | null | null | /**
* Definition of TreeNode:
* class TreeNode {
* public:
* int val;
* TreeNode *left, *right;
* TreeNode(int val) {
* this->val = val;
* this->left = this->right = NULL;
* }
* }
*/
class Solution {
public:
string serialize(TreeNode *root) {
vector<TreeNode *> Q;... | 25.094737 | 79 | 0.415268 | jonathanxqs |
ac4efd6a097d1e67534d37a5c9d2241ec3f74b36 | 535 | cpp | C++ | Source/Models/Github/GithubCommit.cpp | Konrad77/Issues | 1d79ee0b04879ab07cae3c55fb7b650f4ce32e5a | [
"MIT"
] | 5 | 2018-09-23T18:40:24.000Z | 2018-11-16T17:21:11.000Z | Source/Models/Github/GithubCommit.cpp | Konrad77/Issues | 1d79ee0b04879ab07cae3c55fb7b650f4ce32e5a | [
"MIT"
] | 11 | 2018-08-20T18:27:15.000Z | 2019-09-08T12:40:45.000Z | Source/Models/Github/GithubCommit.cpp | Konrad77/Issues | 1d79ee0b04879ab07cae3c55fb7b650f4ce32e5a | [
"MIT"
] | 1 | 2018-09-23T18:43:12.000Z | 2018-09-23T18:43:12.000Z | /*
* Copyright 2015 Your Name <your@email.address>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "GithubCommit.h"
GithubCommit::GithubCommit(BMessage message)
{
message.FindString("messageHeadline", &title);
message.FindString("message", &body);
message.FindString("url", &ur... | 21.4 | 71 | 0.721495 | Konrad77 |
ac54ca2a8d964eb1136cfaafd68a0a240308f2fd | 866 | cpp | C++ | Buildr/Source/Game/GameComponents/CameraFocusComponent.cpp | Hack-the-North-2021/Builder-V2 | b812370919e422e54107b6e991c12b7494915fa1 | [
"MIT"
] | null | null | null | Buildr/Source/Game/GameComponents/CameraFocusComponent.cpp | Hack-the-North-2021/Builder-V2 | b812370919e422e54107b6e991c12b7494915fa1 | [
"MIT"
] | 1 | 2021-09-19T09:46:11.000Z | 2021-09-19T09:46:11.000Z | Buildr/Source/Game/GameComponents/CameraFocusComponent.cpp | Hack-the-North-2021/Builder-V2 | b812370919e422e54107b6e991c12b7494915fa1 | [
"MIT"
] | null | null | null | #include "CameraFocusComponent.h"
#include <iostream>
#include "GameEngine/GameEngineMain.h"
#include "GameEngine/Util/CameraManager.h"
#include <cmath>
using namespace Game;
CameraFocusComponent::CameraFocusComponent()
{
}
CameraFocusComponent::~CameraFocusComponent()
{
}
void CameraFocusComponent::OnAddToWorld... | 21.65 | 93 | 0.743649 | Hack-the-North-2021 |
ac550c18108e8ecb36a7ec4ce0565e0f0ebd3dba | 4,614 | hpp | C++ | src/stdlib/tuple.hpp | LiquidHelium/Xigua | bd7d1153d483f9c07607ffd7c6b292c264793f2f | [
"MIT"
] | 2 | 2015-06-26T04:32:19.000Z | 2016-02-02T11:36:41.000Z | src/stdlib/tuple.hpp | LiquidHelium/Xigua | bd7d1153d483f9c07607ffd7c6b292c264793f2f | [
"MIT"
] | null | null | null | src/stdlib/tuple.hpp | LiquidHelium/Xigua | bd7d1153d483f9c07607ffd7c6b292c264793f2f | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <algorithm>
#include "xigua/data.hpp"
#include "xigua/enviroment.hpp"
#include "xigua/error.hpp"
#include "stdlib/utils.hpp"
namespace xig {
namespace stdlib {
class join : public method {
int amount_of_arguments() const { return 2; }
bool has_repeating_arguments() const... | 30.156863 | 79 | 0.641959 | LiquidHelium |
ac5bd518a694d2780bc2e2962a0936bf0b239d6d | 1,190 | cpp | C++ | lb2.cpp | darksidergod/CompetitiveProgramming | ea0ee53bddd87e41b4586dd30c1d4a6b8ae3a93a | [
"MIT"
] | null | null | null | lb2.cpp | darksidergod/CompetitiveProgramming | ea0ee53bddd87e41b4586dd30c1d4a6b8ae3a93a | [
"MIT"
] | null | null | null | lb2.cpp | darksidergod/CompetitiveProgramming | ea0ee53bddd87e41b4586dd30c1d4a6b8ae3a93a | [
"MIT"
] | 1 | 2020-10-03T19:48:05.000Z | 2020-10-03T19:48:05.000Z | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define int long long int
#define pb push_back
#define mk make_pair
#define flp(i, k, n) for(int i=k; i<n; i++)
#define F first
#define S second
#define SIZE 1005
int dx[4] = {-1,1,0,0};
int dy[4] = {0,0,-1,1};
int n, m;
char grid[SIZE][SIZE];
bool v... | 15.454545 | 50 | 0.511765 | darksidergod |
ac5db6cf18bdb772d47f840127eff528311d83f9 | 844 | cpp | C++ | hsp3-vartype-int64/hspsdk/hsp3plugin.cpp | honobonosun/hsp3-ginger | d2788085d71c8d8fdf31e445a8e262c08e18fba8 | [
"CC0-1.0"
] | 7 | 2019-05-17T02:38:34.000Z | 2022-02-19T07:44:01.000Z | hsp3-vartype-int64/hspsdk/hsp3plugin.cpp | honobonosun/hsp3-ginger | d2788085d71c8d8fdf31e445a8e262c08e18fba8 | [
"CC0-1.0"
] | 92 | 2018-11-10T06:00:17.000Z | 2021-12-01T15:18:20.000Z | hsp3-vartype-int64/hspsdk/hsp3plugin.cpp | honobonosun/hsp3-ginger | d2788085d71c8d8fdf31e445a8e262c08e18fba8 | [
"CC0-1.0"
] | 3 | 2019-05-17T02:38:41.000Z | 2021-08-01T01:31:13.000Z | //
// HSP3.0 Plugin SDK main (windows)
// onion software/onitama 2004/9
//
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include "hsp3plugin.h"
/*------------------------------------------------------------*/
/*
system ... | 17.22449 | 78 | 0.567536 | honobonosun |
ac6395d0dc4ec0ea4e962de4a397217cdf8e0bda | 6,581 | cpp | C++ | src/drivers/barometer/bmp280/bmp280_main.cpp | StrangeChen/Firmware | 1bef35d843cf423746347ac77fd4636410b9b7b7 | [
"BSD-3-Clause"
] | 4 | 2020-01-09T07:57:35.000Z | 2020-12-05T07:52:14.000Z | src/drivers/barometer/bmp280/bmp280_main.cpp | StrangeChen/Firmware | 1bef35d843cf423746347ac77fd4636410b9b7b7 | [
"BSD-3-Clause"
] | null | null | null | src/drivers/barometer/bmp280/bmp280_main.cpp | StrangeChen/Firmware | 1bef35d843cf423746347ac77fd4636410b9b7b7 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
*
* Copyright (c) 2012-2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... | 25.214559 | 132 | 0.688345 | StrangeChen |
ac649eac850e6fa2355babe026cf2c263c7ccc41 | 1,156 | cpp | C++ | Cpp/ConsoleApplication1/ConsoleApplication1.cpp | VontineDev/repos | 0e98250a00d3deb0da4907898c3972222f14a5c8 | [
"MIT"
] | null | null | null | Cpp/ConsoleApplication1/ConsoleApplication1.cpp | VontineDev/repos | 0e98250a00d3deb0da4907898c3972222f14a5c8 | [
"MIT"
] | null | null | null | Cpp/ConsoleApplication1/ConsoleApplication1.cpp | VontineDev/repos | 0e98250a00d3deb0da4907898c3972222f14a5c8 | [
"MIT"
] | null | null | null | #include <stdio.h>
int MostVal(int num1, int num2, int num3)
{
if (num1 > num2)
return (num1 >num3) ? num1 : num3;
else
return (num2> num3) ? num2 : num3;
}
int LeastVal(int num1, int num2, int num3)
{
if (num1 < num2)
return (num1 < num3) ? num1 : num3;
else
return (num2 < num3) ? num2 : num3;
}
in... | 5.207207 | 45 | 0.49308 | VontineDev |
ac6e28fa5e84396ecdbd90f83ab6ea691ec1cb56 | 1,280 | hpp | C++ | framework/graphics_ext/graphics_ext/material/material_outline.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | 1 | 2018-03-01T01:05:25.000Z | 2018-03-01T01:05:25.000Z | framework/graphics_ext/graphics_ext/material/material_outline.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | framework/graphics_ext/graphics_ext/material/material_outline.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | #ifndef VGE_MATERIAL_OUTLINE_HPP
#define VGE_MATERIAL_OUTLINE_HPP
#include "graphics_ext/global.hpp"
namespace vge
{
class MaterialOutline : public vg::Material
{
public:
struct CreateInfo
{
vg::Color outlineColor;
CreateInfo(vg::Color outlineColor = vg::Color(1.0f... | 22.857143 | 89 | 0.613281 | YiJiangFengYun |
ac712f1d0a6b6ab36ad4048b0c81df1826ace293 | 14,318 | hpp | C++ | src/data.hpp | zengyuxing007/pipy | c60e08560b08728fa181940a4b9d67807a0ee625 | [
"BSL-1.0"
] | null | null | null | src/data.hpp | zengyuxing007/pipy | c60e08560b08728fa181940a4b9d67807a0ee625 | [
"BSL-1.0"
] | null | null | null | src/data.hpp | zengyuxing007/pipy | c60e08560b08728fa181940a4b9d67807a0ee625 | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019 by flomesh.io
*
* Unless prior written consent has been obtained from the copyright
* owner, the following shall not be allowed.
*
* 1. The distribution of any source codes, header files, make files,
* or libraries of the software.
*
* 2. Disclosure of any source codes pertaini... | 23.019293 | 88 | 0.530521 | zengyuxing007 |
ac7a72b8198902e06d36a21a3d0a0d2127d0ce8d | 6,648 | cpp | C++ | WhereTheFireComesFrom/MCActorComponent.cpp | TailonR/cs480GameDev | e47da20d76bd137bb2c0f44627e7fa0dcb968658 | [
"MIT"
] | null | null | null | WhereTheFireComesFrom/MCActorComponent.cpp | TailonR/cs480GameDev | e47da20d76bd137bb2c0f44627e7fa0dcb968658 | [
"MIT"
] | null | null | null | WhereTheFireComesFrom/MCActorComponent.cpp | TailonR/cs480GameDev | e47da20d76bd137bb2c0f44627e7fa0dcb968658 | [
"MIT"
] | null | null | null | #include "MCActorComponent.h"
#include <gamelib_locator.hpp>
#include <gamelib_random.hpp>
#include <limits>
namespace GameLib {
extern void debugDraw(Actor& a);
extern void debugDrawSweptAABB(Actor& a);
extern float SweptAABB(Actor& a, Actor& b, glm::vec3& normal);
void MainCharacterComponent::update(Actor& acto... | 25.667954 | 89 | 0.621691 | TailonR |
ac7abb6dead3b4fb38dafc4a4281ee1913675088 | 309 | cpp | C++ | sdk/engine/source/assets/AssetUtilities.cpp | NcStudios/NcEngine | ce04eca00211b50188d80e59604bfa67bb9c15b6 | [
"MIT"
] | null | null | null | sdk/engine/source/assets/AssetUtilities.cpp | NcStudios/NcEngine | ce04eca00211b50188d80e59604bfa67bb9c15b6 | [
"MIT"
] | 3 | 2022-03-26T15:14:43.000Z | 2022-03-27T16:12:53.000Z | sdk/engine/source/assets/AssetUtilities.cpp | NcStudios/NcEngine | ce04eca00211b50188d80e59604bfa67bb9c15b6 | [
"MIT"
] | null | null | null | #include "AssetUtilities.h"
namespace nc
{
auto HasValidAssetExtension(const std::string& path) -> bool
{
const std::size_t periodPosition = path.rfind('.');
const std::string fileExtension = path.substr(periodPosition+1);
return fileExtension == "nca" ? true : false;
}
} | 28.090909 | 72 | 0.650485 | NcStudios |
ac7c3060d61ad69c3a16c4b3c82c5cc6d2614079 | 6,115 | cpp | C++ | tools/ngrestcg/templates/service/Wrapper.cpp | Tazura/ngrest | b5ab161b5b96641e3eeb2e00e15e8c7d38e43e97 | [
"Apache-2.0"
] | 458 | 2016-02-05T15:07:48.000Z | 2022-03-26T09:48:08.000Z | tools/ngrestcg/templates/service/Wrapper.cpp | DaniilOkrug/REST-Server | 853ebaca28b1a7344677165e0c8abf2a8a1193c5 | [
"Apache-2.0"
] | 81 | 2016-03-16T14:43:46.000Z | 2022-02-28T05:50:12.000Z | tools/ngrestcg/templates/service/Wrapper.cpp | DaniilOkrug/REST-Server | 853ebaca28b1a7344677165e0c8abf2a8a1193c5 | [
"Apache-2.0"
] | 100 | 2016-04-18T06:14:08.000Z | 2022-03-25T07:01:35.000Z | // This file generated by ngrestcg
// For more information, please visit: https://github.com/loentar/ngrest
// DO NOT EDIT. ANY CHANGES WILL BE LOST
#include <ngrest/utils/Log.h>
#include <ngrest/utils/fromcstring.h>
#include <ngrest/utils/tostring.h>
#include <ngrest/utils/Exception.h>
#include <ngrest/common/ObjectM... | 23.886719 | 119 | 0.605724 | Tazura |
ac7d12440277f71dd0f07a6a258be11ac94c012b | 1,862 | cpp | C++ | exercises/C01-Beginner_Exercises/S07-Storing_Data/Solutions/010_Arrays1SOLN.cpp | rdholder/FeetWetCoding | c0106009eae0ff0fadd7e96b8adfe3a815d5dcfb | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2016-04-28T19:31:51.000Z | 2016-05-22T06:57:47.000Z | exercises/C01-Beginner_Exercises/S07-Storing_Data/Solutions/010_Arrays1SOLN.cpp | rdholder/FeetWetCoding | c0106009eae0ff0fadd7e96b8adfe3a815d5dcfb | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | exercises/C01-Beginner_Exercises/S07-Storing_Data/Solutions/010_Arrays1SOLN.cpp | rdholder/FeetWetCoding | c0106009eae0ff0fadd7e96b8adfe3a815d5dcfb | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | // copyright (c) 2011 Robert Holder, Janice Dugger.
// See HELP.html included in this distribution.
#include <exercises/C01_S07.h>
// ==========================================
// = THIS IS THE SOLUTION CODE =
// = THIS IS *NOT* THE EXERCISE CODE =
// = (If you meant to look at the exercise =
// ... | 29.09375 | 105 | 0.550483 | rdholder |
ac7d49774ef3bb4f724c8e647159063ab95abc16 | 4,557 | cpp | C++ | src/ChrysalisCore/Animation/ProceduralContext/ProceduralContextAim.cpp | ivanhawkes/Chrysalis | fa46a1b8fdf8f076c125083dd772a608b60d982b | [
"BSD-2-Clause"
] | 59 | 2016-07-31T14:54:11.000Z | 2022-03-05T16:42:29.000Z | src/ChrysalisCore/Animation/ProceduralContext/ProceduralContextAim.cpp | davchezt/Chrysalis | fa46a1b8fdf8f076c125083dd772a608b60d982b | [
"BSD-2-Clause"
] | 2 | 2018-01-23T05:25:26.000Z | 2020-03-04T21:31:19.000Z | src/ChrysalisCore/Animation/ProceduralContext/ProceduralContextAim.cpp | davchezt/Chrysalis | fa46a1b8fdf8f076c125083dd772a608b60d982b | [
"BSD-2-Clause"
] | 18 | 2017-03-28T09:45:59.000Z | 2021-04-13T20:46:28.000Z | #include "StdAfx.h"
#include "ProceduralContextAim.h"
#include <Components/Actor/ActorComponent.h>
namespace Chrysalis
{
CRYREGISTER_CLASS(CProceduralContextAim);
void CProceduralContextAim::Initialise(IEntity& entity, IActionController& actionController)
{
IProceduralContext::Initialise(entity, actionController)... | 33.507353 | 165 | 0.827299 | ivanhawkes |
12c1b5364dc59a59fcd2756739d7ad306bab1db8 | 937 | cpp | C++ | code/strings/suffix-array.cpp | TissueRoll/admu-progvar-notebook | efd1c48872d40aeabe2b03af7b986bb831c062b1 | [
"MIT"
] | null | null | null | code/strings/suffix-array.cpp | TissueRoll/admu-progvar-notebook | efd1c48872d40aeabe2b03af7b986bb831c062b1 | [
"MIT"
] | null | null | null | code/strings/suffix-array.cpp | TissueRoll/admu-progvar-notebook | efd1c48872d40aeabe2b03af7b986bb831c062b1 | [
"MIT"
] | null | null | null | // sa[i]: ith smallest substring at s[sa[i]:]
// pos[i]: position of s[i:] in suffix array
int sa[N], pos[N], va[N], c[N], gap, n;
bool cmp(int i, int j) // reverse stable sort
{return pos[i]!=pos[j] ? pos[i] < pos[j] : j < i;}
bool equal(int i, int j)
{return pos[i] == pos[j] && i + gap < n &&
pos[... | 39.041667 | 56 | 0.411953 | TissueRoll |
12d08c053ebb231be16d83194dfec202e2d6ec4d | 2,885 | hpp | C++ | lib/Array/transform_reduce.hpp | LiquidFun/WiredLedCube | dc2aac8bccf02d325b31081d6dc52f8ca79bd62a | [
"MIT"
] | 1 | 2021-04-06T09:48:39.000Z | 2021-04-06T09:48:39.000Z | lib/Array/transform_reduce.hpp | LiquidFun/WiredLedCube | dc2aac8bccf02d325b31081d6dc52f8ca79bd62a | [
"MIT"
] | null | null | null | lib/Array/transform_reduce.hpp | LiquidFun/WiredLedCube | dc2aac8bccf02d325b31081d6dc52f8ca79bd62a | [
"MIT"
] | null | null | null | #pragma once
#include <stddef.h>
#include "Array.hpp"
namespace T27
{
namespace intern
{
template <class T, size_t length, size_t remaining>
struct TransformReduce_
{
static_assert(remaining >= 1, "see specialization");
static constexpr size_t idx = length - re... | 29.141414 | 72 | 0.516118 | LiquidFun |
12db9bef2f330553adccaecd2e83b0316d803266 | 1,727 | cpp | C++ | userspace/falco/app_actions/print_ignored_events.cpp | FedeDP/falco | 75712caa9a7d1079aa3357b4bfd8430d0b33dfcc | [
"Apache-2.0"
] | 966 | 2016-05-17T22:09:20.000Z | 2018-10-04T23:11:02.000Z | userspace/falco/app_actions/print_ignored_events.cpp | FedeDP/falco | 75712caa9a7d1079aa3357b4bfd8430d0b33dfcc | [
"Apache-2.0"
] | 185 | 2016-05-17T22:59:54.000Z | 2018-10-03T16:05:04.000Z | userspace/falco/app_actions/print_ignored_events.cpp | FedeDP/falco | 75712caa9a7d1079aa3357b4bfd8430d0b33dfcc | [
"Apache-2.0"
] | 118 | 2016-05-18T14:13:22.000Z | 2018-10-04T18:38:29.000Z | /*
Copyright (C) 2022 The Falco 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 required by applicable law or agreed to in writing, s... | 24.323944 | 72 | 0.714534 | FedeDP |
12e06780d37c27d1b2aaf73c7efbacc39afa9fbc | 689 | cpp | C++ | media_kit/FilmStrip/BitmapView.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-09-09T21:01:57.000Z | 2022-03-27T10:01:27.000Z | media_kit/FilmStrip/BitmapView.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | null | null | null | media_kit/FilmStrip/BitmapView.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-04-03T01:45:23.000Z | 2021-05-14T08:23:01.000Z | #include "BitmapView.h"
BitmapView::BitmapView(BRect bounds,BBitmap* image)
: BView(bounds,"BitmapView",B_FOLLOW_ALL,B_WILL_DRAW),
mImage(image)
{
SetViewColor(0,0,0);
}
BitmapView::~BitmapView(void)
{
}
void BitmapView::SetImage(BBitmap* image)
{
mImage = image;
if (LockLooper()) {
// LockLooper() is only ... | 18.621622 | 55 | 0.67344 | return |
12e2841692bfb7514055650d6c93fb7edf99a913 | 148 | cpp | C++ | contest/AtCoder/abc062/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc062/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc062/A.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "vector.hpp"
int main() {
Vector<int> a{0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x(in), y(in);
cout << (a[x] == a[y]) << endl;
}
| 18.5 | 55 | 0.452703 | not522 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.