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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83601c01f2b2ad2f336a61e9a1f658cfbb6aa0b5 | 2,932 | cpp | C++ | src/Widgets/MenuLabelLayer.cpp | huntermalm/Layers | 1f2f6eabe3be8dfbc60d682ca47543f7807a0bbf | [
"MIT"
] | null | null | null | src/Widgets/MenuLabelLayer.cpp | huntermalm/Layers | 1f2f6eabe3be8dfbc60d682ca47543f7807a0bbf | [
"MIT"
] | null | null | null | src/Widgets/MenuLabelLayer.cpp | huntermalm/Layers | 1f2f6eabe3be8dfbc60d682ca47543f7807a0bbf | [
"MIT"
] | null | null | null | #include "../../include/AttributeWidgets.h"
#include "../../include/MenuLabelLayer.h"
using Layers::Button;
using Layers::Label;
using Layers::Menu;
using Layers::MenuLabelLayer;
MenuLabelLayer::MenuLabelLayer(Menu* menu, QWidget* parent) :
m_icon_button{ new Button(new Graphic(*menu->icon), false) },
m_text_label{... | 25.059829 | 83 | 0.778308 | huntermalm |
8361d646c42d5cba23f5149221933b967d7fa604 | 765 | hpp | C++ | swizzle/ast/nodes/DefaultStringValue.hpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | swizzle/ast/nodes/DefaultStringValue.hpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | swizzle/ast/nodes/DefaultStringValue.hpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | #pragma once
#include <swizzle/ast/Node.hpp>
#include <swizzle/lexer/TokenInfo.hpp>
#include <cstddef>
#include <string>
namespace swizzle { namespace ast {
class VisitorInterface;
}}
namespace swizzle { namespace ast { namespace nodes {
class DefaultStringValue : public Node
{
public:
Defa... | 23.90625 | 122 | 0.677124 | SenorAgosto |
836cea669f660d9e2cd9553b4da0e0f5715a5af3 | 638 | cpp | C++ | 347-top-k-frequent-elements/347-top-k-frequent-elements.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | 1 | 2022-02-27T09:01:07.000Z | 2022-02-27T09:01:07.000Z | 347-top-k-frequent-elements/347-top-k-frequent-elements.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | 347-top-k-frequent-elements/347-top-k-frequent-elements.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | class Solution { // TC O(n)
public:
vector<int> topKFrequent(vector<int>& nums, int k) {
unordered_map<int,int> mp;
int n = nums.size();
for(int i=0;i<n;i++){
mp[nums[i]]++;
}
vector<vector<int>> buckets(n);
for(auto it = mp.begin();i... | 31.9 | 76 | 0.484326 | champmaniac |
836ec9798f6f8c8f2658f67f1a524c7a17cf03a0 | 33,287 | cc | C++ | src/rocblas_wrappers.cc | G-Ragghianti/blaspp | 7650db32e9fc4c69bd10388c2dee8865cfcfa36f | [
"BSD-3-Clause"
] | null | null | null | src/rocblas_wrappers.cc | G-Ragghianti/blaspp | 7650db32e9fc4c69bd10388c2dee8865cfcfa36f | [
"BSD-3-Clause"
] | null | null | null | src/rocblas_wrappers.cc | G-Ragghianti/blaspp | 7650db32e9fc4c69bd10388c2dee8865cfcfa36f | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2017-2021, University of Tennessee. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
// This program is free software: you can redistribute it and/or modify it under
// the terms of the BSD 3-Clause license. See the accompanying LICENSE file.
#include "blas/device.hh"
#ifdef BLAS_HAVE_RO... | 32.475122 | 108 | 0.513654 | G-Ragghianti |
83757500261ff583fa5227a73296280c4eb83929 | 2,469 | hpp | C++ | Sources/AGEngine/Render/GeometryManagement/DebugDrawManager.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Render/GeometryManagement/DebugDrawManager.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Render/GeometryManagement/DebugDrawManager.hpp | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #pragma once
#include <vector>
#include <glm/glm.hpp>
#include <Utils/Spinlock.hpp>
#include <Utils/Dependency.hpp>
#include <Utils/Containers/PODVector.hpp>
namespace AGE
{
class PaintingManager;
class Painter;
class DebugDrawManager : public Dependency < DebugDrawManager >
{
public:
struct SimpleVec2
{
... | 35.782609 | 144 | 0.738356 | Another-Game-Engine |
83782b69bfe531b044dd9673434c8eda50bae513 | 717 | cxx | C++ | test/t634.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | test/t634.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | test/t634.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | /* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#include <stdio.h>
class TA {
public... | 23.129032 | 74 | 0.440725 | paulwratt |
837a6e6ec3d184dc4b8aa05c80758d6043750930 | 685 | hpp | C++ | src/Cl/ClTools.hpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Cl/ClTools.hpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Cl/ClTools.hpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | #pragma once
#include <NTL.hpp>
#include <iostream>
#include <Cl/ClContext.hpp>
#include <Cl/ClError.hpp>
namespace ClTools {
template <typename T>
void printIntArrayGpu(cl::Buffer &buffer, size_t length,
std::string const &name, void (*print)(T*)) {
ClError err;
cl::CommandQueue queue(ClContext::Get().contex... | 29.782609 | 86 | 0.642336 | Jino42 |
837a852ea239c42c7f4a655106d388572b67417b | 8,486 | cpp | C++ | src/opengl/renderer.cpp | lahoising/MobRend | c804a0cfebd06818a5cbf1747c2337ea134c11d7 | [
"MIT"
] | null | null | null | src/opengl/renderer.cpp | lahoising/MobRend | c804a0cfebd06818a5cbf1747c2337ea134c11d7 | [
"MIT"
] | null | null | null | src/opengl/renderer.cpp | lahoising/MobRend | c804a0cfebd06818a5cbf1747c2337ea134c11d7 | [
"MIT"
] | null | null | null | #ifdef MOBREND_GL_RENDERING
#include <glad/glad.h>
#include <glm/glm.hpp>
#ifdef MOBREND_GLFW_WINDOW
#include <mobrend/glfw/window.h>
#endif
#include "mr_logger.h"
#include <mobrend/opengl/renderer.h>
#include <mobrend/gui.h>
#include <mobrend/application.h>
#include <mobrend/model.h>
#include <mobrend/mesh.h>
#in... | 25.871951 | 90 | 0.699387 | lahoising |
837ac01c040c638ad3aad26de9c78fdf6b41408d | 8,369 | cpp | C++ | src/TactileSwitch.cpp | IGB-Germany/TactileSwitch | 0b7a2be6841daed6027ee6e640fc39411a11e3a3 | [
"Unlicense"
] | null | null | null | src/TactileSwitch.cpp | IGB-Germany/TactileSwitch | 0b7a2be6841daed6027ee6e640fc39411a11e3a3 | [
"Unlicense"
] | null | null | null | src/TactileSwitch.cpp | IGB-Germany/TactileSwitch | 0b7a2be6841daed6027ee6e640fc39411a11e3a3 | [
"Unlicense"
] | null | null | null | //tactile switch class
#include "TactileSwitch.h"
//Constructor
TactileSwitch::TactileSwitch(uint8_t pin, uint8_t number, uint8_t mode, bool enablePullUp):
_number(number),
_pin(pin),
_mode(mode),
_enablePullUp(enablePullUp),
_event (NO_EVENT),
_message (NO_MESSAGE),
_state (START),
_previousState(STAR... | 21.908377 | 98 | 0.623491 | IGB-Germany |
837b253adc810aeced2b1deff350f0f92a3a50ec | 168 | cpp | C++ | tests/map/map_delete_inside_data.cpp | ye-luo/openmp-target | f042e9d255b521e07ca32fe08799e736d4b1c70c | [
"BSD-3-Clause"
] | 5 | 2020-02-14T03:32:58.000Z | 2021-06-21T18:13:02.000Z | tests/map/map_delete_inside_data.cpp | ye-luo/openmp-target | f042e9d255b521e07ca32fe08799e736d4b1c70c | [
"BSD-3-Clause"
] | 1 | 2020-02-24T01:48:06.000Z | 2020-02-24T01:48:57.000Z | tests/map/map_delete_inside_data.cpp | ye-luo/openmp-target | f042e9d255b521e07ca32fe08799e736d4b1c70c | [
"BSD-3-Clause"
] | 4 | 2020-05-20T16:04:10.000Z | 2021-06-22T20:06:39.000Z | int main()
{
int a[100];
#pragma omp target enter data map(alloc:a)
#pragma omp target data map(alloc:a)
{
#pragma omp target exit data map(delete:a)
}
}
| 16.8 | 46 | 0.642857 | ye-luo |
8388bd49bc0e8b718d88f392bed4a1565d602fba | 853 | hpp | C++ | include/LightBulb/LightBulbPrec.hpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 5 | 2016-02-04T06:14:42.000Z | 2017-02-06T02:21:43.000Z | include/LightBulb/LightBulbPrec.hpp | domin1101/ANNHelper | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | 41 | 2015-04-15T21:05:45.000Z | 2015-07-09T12:59:02.000Z | include/LightBulb/LightBulbPrec.hpp | domin1101/LightBulb | 50acb5746d6dad6777532e4c7da4983a7683efe0 | [
"Zlib"
] | null | null | null |
#include <map>
#include <vector>
#include <mutex>
#include <stdexcept>
#include <random>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
#include <memory>
#include <cmath>
#include <thread>
#include <Eigen/Dense>
#include <viennacl/vector.hpp>
#include <viennacl/scalar.hpp>
#include <vi... | 24.371429 | 46 | 0.770223 | domin1101 |
8393e9f57e79eed22781243ed944b64484ed065b | 4,628 | hpp | C++ | cpp/include/algorithm/string/shunting_yard.hpp | rohithv999/ProAlgos-Cpp | 36dcb1706e464bdbabfb949ac194b4db12aead3d | [
"MIT"
] | 222 | 2020-05-12T23:33:21.000Z | 2022-03-31T16:57:43.000Z | cpp/include/algorithm/string/shunting_yard.hpp | rohithv999/ProAlgos-Cpp | 36dcb1706e464bdbabfb949ac194b4db12aead3d | [
"MIT"
] | 93 | 2020-05-07T21:08:41.000Z | 2022-03-28T00:40:04.000Z | cpp/include/algorithm/string/shunting_yard.hpp | rohithv999/ProAlgos-Cpp | 36dcb1706e464bdbabfb949ac194b4db12aead3d | [
"MIT"
] | 95 | 2020-05-07T22:22:11.000Z | 2022-02-01T08:39:25.000Z | /*
Shunting Yard
----------------------------------------------
Converting an infix arithmetic string to a post-fix one, A.K.A. Reverse Polish Notation.
This implementation does not implement functions and solely focuses on simple arithmetic of consisting of [-,+,*,/,^]
Time complexity
--------... | 43.660377 | 121 | 0.455056 | rohithv999 |
8b505136a95f188eaf7cfa753f70eb4b5647d720 | 1,530 | cpp | C++ | Projects/WebAthl/RulesSet.cpp | darianbridge/WebAthl | daf916b169983375022a39645419f79c7f3cbfed | [
"Apache-2.0"
] | null | null | null | Projects/WebAthl/RulesSet.cpp | darianbridge/WebAthl | daf916b169983375022a39645419f79c7f3cbfed | [
"Apache-2.0"
] | null | null | null | Projects/WebAthl/RulesSet.cpp | darianbridge/WebAthl | daf916b169983375022a39645419f79c7f3cbfed | [
"Apache-2.0"
] | 1 | 2021-07-05T10:10:21.000Z | 2021-07-05T10:10:21.000Z | // RulesSet.cpp : implementation file
//
#include "stdafx.h"
#include "CSV.h"
#include "StringStream.h"
#include "RecordsetEx.h"
#include "RulesSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
////////////////////////////////////////////////////////////////////... | 19.87013 | 77 | 0.642484 | darianbridge |
8b50cc1989ffefa5f1f50117c5d1f727a433be43 | 15,691 | cpp | C++ | source/write.cpp | luciebakels/StarPopMaker | 2556d1531af15360f1f72d8539987aec3d6cc906 | [
"BSD-3-Clause"
] | null | null | null | source/write.cpp | luciebakels/StarPopMaker | 2556d1531af15360f1f72d8539987aec3d6cc906 | [
"BSD-3-Clause"
] | null | null | null | source/write.cpp | luciebakels/StarPopMaker | 2556d1531af15360f1f72d8539987aec3d6cc906 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <fstream>
#include <array>
#include <vector>
#include <algorithm>
#include <cstdint>
#include <cmath>
#include <sstream>
#include <random>
#include "proto.h"
#include "allvars.h"
#include "mpi.h"
void writeVector(std::vector<std::vector<double>> outputvector, std::string fileName, char x){... | 35.024554 | 136 | 0.551463 | luciebakels |
8b514529904372469c8cb3e6428ab6efb43371d5 | 1,470 | cpp | C++ | src/loginserver/server/protocal/msgcpp.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/loginserver/server/protocal/msgcpp.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/loginserver/server/protocal/msgcpp.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z |
#include "servercommon/userprotocal/msgheader.h"
#include "servercommon/userprotocal/loginmsgcode.h"
#include "msglogin.h"
#include "msgregister.h"
namespace Protocol
{
CSLogin::CSLogin():header(MT_NEW_LOGIN_REQ_CS){}
SCRoleList::SCRoleList():header(MT_ROLE_LIST_SC){}
CSRoleReq::CSRoleReq():header(MT_NEW_ROLE_REQ_... | 43.235294 | 80 | 0.817007 | mage-game |
8b58c243dbee99b83a3fc229d6075c3697765a90 | 2,994 | hpp | C++ | libraries/include/TRG.hpp | JoyM1K1/o3-sigma-model-TRG | 2bbb5db3f5ea523e4dfb8a0b469e303abd9e563b | [
"MIT"
] | null | null | null | libraries/include/TRG.hpp | JoyM1K1/o3-sigma-model-TRG | 2bbb5db3f5ea523e4dfb8a0b469e303abd9e563b | [
"MIT"
] | null | null | null | libraries/include/TRG.hpp | JoyM1K1/o3-sigma-model-TRG | 2bbb5db3f5ea523e4dfb8a0b469e303abd9e563b | [
"MIT"
] | null | null | null | #ifndef O3_SIGMA_MODEL_TRG_HPP
#define O3_SIGMA_MODEL_TRG_HPP
#include "tensor.hpp"
#include "impure_tensor.hpp"
#define MAX_IMT_NUM 6
namespace TRG {
class Unitary_S {
public:
double *array{nullptr};
int D_cut{0};
Unitary_S() = default;
explicit Unitary_S(int D_cut);
... | 35.223529 | 200 | 0.663661 | JoyM1K1 |
8b599406e69a9e3ef7e8e5aa1549aa2b976d5efc | 1,292 | cpp | C++ | lyngvi.cpp | TuliMyrskyTaivas/Lyngvi | c96a4c06b743e64cb83045f3fdb4d9271f184dca | [
"MIT"
] | null | null | null | lyngvi.cpp | TuliMyrskyTaivas/Lyngvi | c96a4c06b743e64cb83045f3fdb4d9271f184dca | [
"MIT"
] | null | null | null | lyngvi.cpp | TuliMyrskyTaivas/Lyngvi | c96a4c06b743e64cb83045f3fdb4d9271f184dca | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
/// file: lyngvi.cpp
///
/// summary: Declares the interface of Lyngvi library
//////////////////////////////////////////////////////////////////////////
#include <stdexcept>
#include <memory>
#include "lyngvi.h"
#include "engine.h"
namesp... | 23.925926 | 74 | 0.466718 | TuliMyrskyTaivas |
8b65c0eb676f25db20525f00c9a024266ebbf283 | 328 | inl | C++ | shared/test/unit_test/helpers/test_debug_variables.inl | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 778 | 2017-09-29T20:02:43.000Z | 2022-03-31T15:35:28.000Z | shared/test/unit_test/helpers/test_debug_variables.inl | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 478 | 2018-01-26T16:06:45.000Z | 2022-03-30T10:19:10.000Z | shared/test/unit_test/helpers/test_debug_variables.inl | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 215 | 2018-01-30T08:39:32.000Z | 2022-03-29T11:08:51.000Z | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
DECLARE_DEBUG_VARIABLE(std::string, StringTestKey, "DefaultTestValue", "TestDescription")
DECLARE_DEBUG_VARIABLE(int32_t, IntTestKey, 1234, "TestDescription")
DECLARE_DEBUG_VARIABLE(int32_t, IntTestKeyHex, 0xDEADBEEF, "TestDescri... | 29.818182 | 89 | 0.786585 | troels |
8b69da557790d2e4735301bcc84805eeacc179ca | 343 | hpp | C++ | include/graphics/SkyboxRenderableHandle.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/graphics/SkyboxRenderableHandle.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | include/graphics/SkyboxRenderableHandle.hpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #ifndef SKYBOX_RENDERABLE_HANDLE_H_
#define SKYBOX_RENDERABLE_HANDLE_H_
#include "handles/Handle.hpp"
namespace ice_engine
{
namespace graphics
{
class SkyboxRenderableHandle : public handles::Handle<SkyboxRenderableHandle>
{
public:
using handles::Handle<SkyboxRenderableHandle>::Handle;
};
}
}
#endif /* SKYBOX_R... | 16.333333 | 77 | 0.80758 | icebreakersentertainment |
8b703848037ac226361563e2b14a884961f63faa | 20,078 | hpp | C++ | Source/GRChomboCore/ChomboParameters.hpp | Scientistwang/GRChombo_Zipeng | cd7aeb9ce0d67422e769b9c2072afafb0b9a2659 | [
"BSD-3-Clause"
] | null | null | null | Source/GRChomboCore/ChomboParameters.hpp | Scientistwang/GRChombo_Zipeng | cd7aeb9ce0d67422e769b9c2072afafb0b9a2659 | [
"BSD-3-Clause"
] | null | null | null | Source/GRChomboCore/ChomboParameters.hpp | Scientistwang/GRChombo_Zipeng | cd7aeb9ce0d67422e769b9c2072afafb0b9a2659 | [
"BSD-3-Clause"
] | null | null | null | /* GRChombo
* Copyright 2012 The GRChombo collaboration.
* Please refer to LICENSE in GRChombo's root directory.
*/
#ifndef CHOMBOPARAMETERS_HPP_
#define CHOMBOPARAMETERS_HPP_
// General includes
#include "BoundaryConditions.hpp"
#include "GRParmParse.hpp"
#include "UserVariables.hpp"
#include "VariableType.hpp"
#... | 42.269474 | 80 | 0.519275 | Scientistwang |
8b729a8666035d79368fb48b4f40bdbea30151d9 | 1,218 | hpp | C++ | FileFormats/Bif/Bif_Friendly.hpp | xloss/NWNFileFormats | 0b3fd4fba416bcdb79f4d898a40a4107234ceea0 | [
"WTFPL"
] | 9 | 2018-03-02T17:03:43.000Z | 2021-09-02T13:26:04.000Z | FileFormats/Bif/Bif_Friendly.hpp | xloss/NWNFileFormats | 0b3fd4fba416bcdb79f4d898a40a4107234ceea0 | [
"WTFPL"
] | 8 | 2018-03-04T09:20:46.000Z | 2020-12-06T04:28:33.000Z | FileFormats/Bif/Bif_Friendly.hpp | xloss/NWNFileFormats | 0b3fd4fba416bcdb79f4d898a40a4107234ceea0 | [
"WTFPL"
] | 8 | 2018-03-04T09:18:49.000Z | 2020-12-01T01:15:41.000Z | #pragma once
#include "FileFormats/Bif/Bif_Raw.hpp"
#include <memory>
#include <optional>
#include <unordered_map>
namespace FileFormats::Bif::Friendly {
struct BifResource
{
// The actual ID listed in the BIF.
std::uint32_t m_ResId;
// The resource type.
Resource::ResourceType m_ResType;
// T... | 24.857143 | 94 | 0.707718 | xloss |
8b76c86372c3b9cdedba64fe695ade9dccf143a6 | 8,164 | cpp | C++ | src/imr_cases.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2019-01-23T03:37:18.000Z | 2021-08-24T02:20:29.000Z | src/imr_cases.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 67 | 2019-01-29T15:35:42.000Z | 2021-08-17T20:42:40.000Z | src/imr_cases.cpp | joshia5/ayj-omega_h | 8b65215013df29af066fa076261ba897d64a72c2 | [
"BSD-2-Clause-FreeBSD"
] | 29 | 2019-01-14T21:33:32.000Z | 2021-08-10T11:35:24.000Z | #include "Omega_h_adapt.hpp"
#include "Omega_h_file.hpp"
#include "Omega_h_for.hpp"
#include "Omega_h_laplace.hpp"
#include "Omega_h_map.hpp"
#include "Omega_h_mesh.hpp"
#include "Omega_h_metric.hpp"
#include "Omega_h_timer.hpp"
#include "Omega_h_vector.hpp"
#include <iostream>
#include <set>
using namespace Omega_h;... | 30.462687 | 80 | 0.612567 | joshia5 |
8b774c0add9a33601f14e172337d31db83134d88 | 13,525 | hpp | C++ | src/johnson.hpp | kubohiroya/APSP-in-parallel | c1f94d29f85129b6eaf3cbdf0c376939b7af3282 | [
"MIT"
] | null | null | null | src/johnson.hpp | kubohiroya/APSP-in-parallel | c1f94d29f85129b6eaf3cbdf0c376939b7af3282 | [
"MIT"
] | null | null | null | src/johnson.hpp | kubohiroya/APSP-in-parallel | c1f94d29f85129b6eaf3cbdf0c376939b7af3282 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream> // cerr
#include <random> // mt19937_64, uniform_x_distribution
#include <vector>
#include <boost/config.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <iostream>
#include "inf.hpp"
#include "getInf.hpp"
#include "util.hpp"
using namespace boost;
template<typename Number> u... | 33.395062 | 149 | 0.673124 | kubohiroya |
8b779ac421ec7687e81830da41830e8286f7cd7c | 975 | cpp | C++ | .LHP/.Lop11/.T.Minh/DENDUONG/DENDUONG/DENDUONG.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.T.Minh/DENDUONG/DENDUONG/DENDUONG.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.T.Minh/DENDUONG/DENDUONG/DENDUONG.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <cstdio>
#include <iomanip>
#define maxN 100002
//#define maxA 1000000001
typedef long maxn;
typedef double maxa;
const maxa eps = 1e-9;
maxn n;
maxa L, a[maxN];
void Prepare() {
std::cin >> n >> L;
for (maxn i = 0; i < n; i++) std::cin >> a[i];
std::sort(a, a ... | 17.105263 | 60 | 0.558974 | sxweetlollipop2912 |
8b8077c8d386d1e10fd0b8782c798594e88ba042 | 1,632 | hpp | C++ | include/ctre/actions/asserts.inc.hpp | XRay3D/compile-time-regular-expressions | 57573365db1256de316acb46109674853d967bb4 | [
"Apache-2.0"
] | 2,261 | 2017-10-11T11:30:02.000Z | 2022-03-31T14:19:55.000Z | include/ctre/actions/asserts.inc.hpp | XRay3D/compile-time-regular-expressions | 57573365db1256de316acb46109674853d967bb4 | [
"Apache-2.0"
] | 221 | 2017-10-11T15:42:32.000Z | 2022-03-26T12:18:16.000Z | include/ctre/actions/asserts.inc.hpp | XRay3D/compile-time-regular-expressions | 57573365db1256de316acb46109674853d967bb4 | [
"Apache-2.0"
] | 140 | 2017-10-11T17:25:56.000Z | 2022-03-23T01:06:57.000Z | #ifndef CTRE__ACTIONS__ASSERTS__HPP
#define CTRE__ACTIONS__ASSERTS__HPP
// push_assert_begin
template <auto V, typename... Ts, typename Parameters> static constexpr auto apply(pcre::push_assert_begin, ctll::term<V>, pcre_context<ctll::list<Ts...>, Parameters> subject) {
return pcre_context{ctll::push_front(assert_lin... | 54.4 | 196 | 0.783088 | XRay3D |
8b860c32c5c145df12787bf1b3dde86342e929bc | 23,061 | cpp | C++ | src/DataWidgets/Data/nObjectTypeEditor.cpp | Vladimir-Lin/QtDataWidgets | 67372e2a807d47082d3130d16857476d7020facc | [
"MIT"
] | null | null | null | src/DataWidgets/Data/nObjectTypeEditor.cpp | Vladimir-Lin/QtDataWidgets | 67372e2a807d47082d3130d16857476d7020facc | [
"MIT"
] | null | null | null | src/DataWidgets/Data/nObjectTypeEditor.cpp | Vladimir-Lin/QtDataWidgets | 67372e2a807d47082d3130d16857476d7020facc | [
"MIT"
] | null | null | null | #include <datawidgets.h>
N::ObjectTypeEditor:: ObjectTypeEditor ( QWidget * parent , Plan * p )
: TreeWidget ( parent , p )
{
WidgetClass ;
Configure ( ) ;
}
N::ObjectTypeEditor::~ObjectTypeEditor (void)
{
}
QSize N::ObjectTypeEditor::SuitableSize(void)
{
QSize s =... | 47.646694 | 77 | 0.300854 | Vladimir-Lin |
8b8a6c123be6c6f5d3cee43461199f2e18752218 | 1,413 | cpp | C++ | aws-cpp-sdk-appstream/source/model/DescribeApplicationsRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-appstream/source/model/DescribeApplicationsRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-appstream/source/model/DescribeApplicationsRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/appstream/model/DescribeApplicationsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::AppStream::Model;
using namespace Aws::Utils::Jso... | 22.078125 | 109 | 0.743808 | perfectrecall |
8b92d8d406ffd29b8a7087335782d3cc237b5b36 | 1,844 | cpp | C++ | sdk/engine/source/graphics/resources/PointLightManager.cpp | NcStudios/NcEngine | ce04eca00211b50188d80e59604bfa67bb9c15b6 | [
"MIT"
] | null | null | null | sdk/engine/source/graphics/resources/PointLightManager.cpp | NcStudios/NcEngine | ce04eca00211b50188d80e59604bfa67bb9c15b6 | [
"MIT"
] | 3 | 2022-03-26T15:14:43.000Z | 2022-03-27T16:12:53.000Z | sdk/engine/source/graphics/resources/PointLightManager.cpp | NcStudios/NcEngine | ce04eca00211b50188d80e59604bfa67bb9c15b6 | [
"MIT"
] | null | null | null | #include "PointLightManager.h"
#include "graphics/Initializers.h"
namespace nc::graphics
{
PointLightManager::PointLightManager(uint32_t bindingSlot, GpuAllocator* allocator, ShaderDescriptorSets* descriptors, uint32_t maxPointLights)
: m_pointLightsArrayBuffer{nullptr},
m_descriptors{descriptors... | 28.8125 | 147 | 0.624187 | NcStudios |
8ba1a3a3455e72d71abf445034918dd521622d67 | 1,612 | cpp | C++ | libgramtools/submods/combine_jvcfs.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/submods/combine_jvcfs.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/submods/combine_jvcfs.cpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | /**
* @file Combine JSON genotyped files into one
*/
#include <filesystem>
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
#include "genotype/infer/output_specs/json_prg_spec.hpp"
namespace fs = std::filesystem;
using JSON = nlohmann::json;
using namespace gram::json;
void usage(const char* ar... | 24.424242 | 80 | 0.610422 | bricoletc |
8ba8aad3360054857ba0e077576d68a23b8c8514 | 31,765 | cpp | C++ | SHC/SmartHandController/Catalog.cpp | Zarfab/DobsonGoto | 51b7811e105358465e054f6cfdd5b531cf9b5e24 | [
"MIT"
] | 1 | 2021-12-20T09:40:20.000Z | 2021-12-20T09:40:20.000Z | SHC/SmartHandController/Catalog.cpp | Zarfab/DobsonGoto | 51b7811e105358465e054f6cfdd5b531cf9b5e24 | [
"MIT"
] | 1 | 2021-12-20T09:42:15.000Z | 2021-12-21T08:31:51.000Z | SHC/SmartHandController/Catalog.cpp | Zarfab/DobsonGoto | 51b7811e105358465e054f6cfdd5b531cf9b5e24 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <math.h>
#include "Constants.h"
#include "Locales.h"
#include "Config.h"
#include "Locale.h"
#include "Pinmap.h"
#include "Catalog.h"
#include "CatalogTypes.h"
#include "CatalogConfig.h"
// --------------------------------------------------------------------------------
// Catalog Manager... | 39.905779 | 167 | 0.67672 | Zarfab |
8bae1e41ca23b4a31d54bdef6f8b78adebc70d22 | 9,234 | cpp | C++ | Source/UMod/Game/UModHUD.cpp | StoneLineDevTeam/UMod | e57e41b95d8cdcc4479965453ac86e5116178795 | [
"BSD-4-Clause"
] | 21 | 2015-09-03T13:17:55.000Z | 2022-03-28T15:55:42.000Z | Source/UMod/Game/UModHUD.cpp | StoneLineDevTeam/UMod | e57e41b95d8cdcc4479965453ac86e5116178795 | [
"BSD-4-Clause"
] | 24 | 2015-09-19T18:03:30.000Z | 2018-12-21T10:53:01.000Z | Source/UMod/Game/UModHUD.cpp | StoneLineDevTeam/UMod | e57e41b95d8cdcc4479965453ac86e5116178795 | [
"BSD-4-Clause"
] | 17 | 2015-09-03T13:18:04.000Z | 2021-11-24T02:14:11.000Z | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "UMod.h"
#include "UModHUD.h"
#include "Engine/Canvas.h"
#include "TextureResource.h"
#include "CanvasItem.h"
#include "Renderer/Render2D.h"
#include "Player/UModCharacter.h"
#include "Player/UModController.h"
#include "UModGameInstance.h"
const ... | 32.286713 | 164 | 0.651614 | StoneLineDevTeam |
8baf823a8b4b357d2864b416a55be5c97654bc3d | 3,974 | cpp | C++ | performance/module_perform.cpp | opensource000/cnblogs | 31eaee01e150072f26ac50d43a740143016588ea | [
"Apache-2.0"
] | 3 | 2017-08-30T07:12:28.000Z | 2017-08-30T07:12:33.000Z | performance/module_perform.cpp | opensource000/cnblogs | 31eaee01e150072f26ac50d43a740143016588ea | [
"Apache-2.0"
] | null | null | null | performance/module_perform.cpp | opensource000/cnblogs | 31eaee01e150072f26ac50d43a740143016588ea | [
"Apache-2.0"
] | 1 | 2019-04-18T02:37:20.000Z | 2019-04-18T02:37:20.000Z | #include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/time.h>
#include <string>
#include <vector>
#include <stdint.h>
#define rdtscll_64(val) do {\
unsigned int __a,__d; \
__asm__ __volatile__("rdtsc" : "=a" (__a), "=d" (__d)); \
(v... | 20.806283 | 105 | 0.571213 | opensource000 |
8bb2d7c04293c72e5b7569de8ac67feb2b3820b4 | 3,616 | cc | C++ | src/connector/native/ui_mac.cc | morethanyouknowltd/Lockpick | bfba2b91aabda88951f3ddf7aa564d040d2bb209 | [
"MIT"
] | 1 | 2021-11-25T02:11:13.000Z | 2021-11-25T02:11:13.000Z | src/connector/native/ui_mac.cc | morethanyouknowltd/Lockpick | bfba2b91aabda88951f3ddf7aa564d040d2bb209 | [
"MIT"
] | 4 | 2021-04-24T11:28:38.000Z | 2021-05-26T18:03:34.000Z | src/connector/native/ui_mac.cc | morethanyouknowltd/Lockpick | bfba2b91aabda88951f3ddf7aa564d040d2bb209 | [
"MIT"
] | null | null | null | #include "ui.h"
#include "string.h"
#include "rect.h"
#include <CoreGraphics/CoreGraphics.h>
ImageDeets::ImageDeets(CGImageRef latestImage, WindowInfo frame) {
this->frame = frame;
this->imageRef = latestImage;
CGDataProviderRef provider = CGImageGetDataProvider(latestImage);
imageData = CGDataProvider... | 35.45098 | 138 | 0.643252 | morethanyouknowltd |
8bb838cd162bee3c52b0c45f6c566e51e8ec49db | 968 | cc | C++ | GeeksForGeeks/Easy/SubStringRepetition.cc | ChakreshSinghUC/CPPCodes | d82a3f467303566afbfcc927b660b0f7bf7c0432 | [
"MIT"
] | null | null | null | GeeksForGeeks/Easy/SubStringRepetition.cc | ChakreshSinghUC/CPPCodes | d82a3f467303566afbfcc927b660b0f7bf7c0432 | [
"MIT"
] | null | null | null | GeeksForGeeks/Easy/SubStringRepetition.cc | ChakreshSinghUC/CPPCodes | d82a3f467303566afbfcc927b660b0f7bf7c0432 | [
"MIT"
] | null | null | null | //Check is a string is a concatenation of some of its substring
#include <iostream>
#include <string>
using namespace std;
bool checkSubStr(int len, string s1, int factor)
{
bool r;
string temp;
string s;
string::iterator itr;
int index;
for (index = 0, itr = s1.begin(); index < len; itr++, i... | 17.925926 | 66 | 0.443182 | ChakreshSinghUC |
8bbc07b59f50bafbbfc8e9770234bcc1e6cbf895 | 837 | hpp | C++ | events/gamepad_hat_event.hpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null | events/gamepad_hat_event.hpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null | events/gamepad_hat_event.hpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null |
/**
*
* gamepad_hat_event.hpp
*
**/
#if !defined(AAB_EVENTS_GAMEPAD_HAT_EVENT_CLASS)
#define AAB_EVENTS_GAMEPAD_HAT_EVENT_CLASS
#include"event.hpp"
#include"internal_event.hpp"
#include"imports.hpp"
#include"../input/hat_position.hpp"
namespace aab {
namespace events{
class GamepadHatEvent : public... | 17.081633 | 55 | 0.701314 | MrTAB |
8bc08710c5006b7ff0339538008ae0dac04136dc | 1,952 | cpp | C++ | aws-cpp-sdk-devops-guru/source/model/AnomalyStatus.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-devops-guru/source/model/AnomalyStatus.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-devops-guru/source/model/AnomalyStatus.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/devops-guru/model/AnomalyStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Uti... | 27.492958 | 92 | 0.610143 | perfectrecall |
8bc41b3f3f57ff6f530f5771537685ea2706a38e | 3,905 | hpp | C++ | include/armnnTestUtils/MockBackend.hpp | Srivathsav-max/armnn-clone | af2daa6526623c91ee97f7141be4d1b07de92a48 | [
"MIT"
] | 1 | 2022-03-31T18:21:59.000Z | 2022-03-31T18:21:59.000Z | include/armnnTestUtils/MockBackend.hpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | include/armnnTestUtils/MockBackend.hpp | Elm8116/armnn | e571cde8411803aec545b1070ed677e481f46f3f | [
"MIT"
] | null | null | null | //
// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/backends/IBackendInternal.hpp>
#include <armnn/backends/MemCopyWorkload.hpp>
#include <armnnTestUtils/MockTensorHandle.hpp>
namespace armnn
{
// A bare bones Mock backend to enable un... | 33.663793 | 118 | 0.660435 | Srivathsav-max |
8bd1556b376d79c61e0d75c7397741fb7a5d7c60 | 657 | cpp | C++ | Engine_Source/Source/Insight/Core/Log.cpp | GCourtney27/DirectX11RenderingEngine | ebbe470b697c6e5ab98502c0be4163500d91641a | [
"Apache-2.0"
] | 2 | 2021-01-29T08:03:01.000Z | 2021-04-10T19:18:54.000Z | Engine_Source/Source/Insight/Core/Log.cpp | GCourtney27/DirectX11RenderingEngine | ebbe470b697c6e5ab98502c0be4163500d91641a | [
"Apache-2.0"
] | 3 | 2020-06-04T23:37:07.000Z | 2020-06-04T23:39:04.000Z | Engine_Source/Source/Insight/Core/Log.cpp | GCourtney27/DirectX11RenderingEngine | ebbe470b697c6e5ab98502c0be4163500d91641a | [
"Apache-2.0"
] | 1 | 2020-09-07T07:20:11.000Z | 2020-09-07T07:20:11.000Z | #include <Engine_pch.h>
#include "Log.h"
#include "spdlog/sinks/stdout_color_sinks.h"
namespace Insight {
namespace Debug {
std::shared_ptr<spdlog::logger> Logger::s_CoreLogger;
std::shared_ptr<spdlog::logger> Logger::s_ClientLogger;
#if defined IE_DEBUG && defined (IE_PLATFORM_BUILD_WIN32)
ConsoleWindow Lo... | 20.53125 | 57 | 0.712329 | GCourtney27 |
8bd3c0d4d3ab847a6182ba73a369289a949364e3 | 22,000 | cpp | C++ | src/api/client/Blockchain.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/api/client/Blockchain.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/api/client/Blockchain.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "stdafx.hpp"
#include "Internal.hpp"
#if OT_CRYPTO_... | 28.608583 | 80 | 0.610227 | nopdotcom |
8bd675a9aaf2799e379644e5f34f65e05c62abe8 | 405 | cpp | C++ | URI/2867-digits.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | URI/2867-digits.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | URI/2867-digits.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | /*
problem no: 2867
problem name: Digits
problem link: https://www.urionlinejudge.com.br/judge/en/problems/view/2867
author: Susmoy Sen Gupta
Status: __Solved__
Solved at: 6/22/21, 6:39:09 PM
*/
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int t, x, y;
cin >> t;
while(t--)
... | 13.5 | 76 | 0.604938 | SusmoySenGupta |
8bd7a66b2aa3b8c8842762561616bdcc1f11a644 | 886 | cpp | C++ | examples/text/ascii-table.hybrid.cpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | 3 | 2020-05-24T16:29:42.000Z | 2021-09-10T13:33:15.000Z | examples/text/ascii-table.hybrid.cpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | null | null | null | examples/text/ascii-table.hybrid.cpp | alf-p-steinbach/cppx-core-language | 930351fe0df65e231e8e91998f1c94d345938107 | [
"MIT"
] | null | null | null | #include <cppx-core-language/ascii/all.hpp>
#include <iomanip> // std::setw
#include <iostream>
auto main()
-> int
{
using std::cout, std::endl, std::left, std::setw;
using cppx::hex_digit;
namespace ascii = cppx::ascii;
const auto field = setw( 4 );
// Column headers.
cout <... | 28.580645 | 88 | 0.506772 | alf-p-steinbach |
8bd7b64d646c0c836d6951b653007b1f33e31674 | 1,235 | cc | C++ | src/client/human/human.cc | TheBenPerson/Game | 824b2240e95529b735b4d8055a541c77102bb5dc | [
"MIT"
] | null | null | null | src/client/human/human.cc | TheBenPerson/Game | 824b2240e95529b735b4d8055a541c77102bb5dc | [
"MIT"
] | null | null | null | src/client/human/human.cc | TheBenPerson/Game | 824b2240e95529b735b4d8055a541c77102bb5dc | [
"MIT"
] | null | null | null | #include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "gfx.hh"
#include "human.hh"
#include "world.hh"
GFX::texture tex;
static void create(uint8_t *data);
extern "C" {
bool init() {
Entity::regEnt("human", &create);
tex = GFX::loadTexture("villager_f.png");
return true;
... | 12.474747 | 62 | 0.584615 | TheBenPerson |
8bd7c14e4aad14ff4b3d9fb4002978b6347b0b02 | 87 | cpp | C++ | VulkanEngine/code/cystring.cpp | schecko/VulkanEngine | 88bc893311c18db81beca66a15f51fce52d064f1 | [
"MIT"
] | null | null | null | VulkanEngine/code/cystring.cpp | schecko/VulkanEngine | 88bc893311c18db81beca66a15f51fce52d064f1 | [
"MIT"
] | null | null | null | VulkanEngine/code/cystring.cpp | schecko/VulkanEngine | 88bc893311c18db81beca66a15f51fce52d064f1 | [
"MIT"
] | null | null | null |
#include "cystring.h"
namespace Cy
{
String operator+(String s1, String s2)
{
}
} | 8.7 | 39 | 0.655172 | schecko |
8bd7f6cf7b64e57cf2e1328d6aa92fe575294744 | 847 | cpp | C++ | sensor/temperature.cpp | yan9a/rpi | eef334c8b61b5e32e7cf57e38f47236b8f483bfb | [
"MIT"
] | 2 | 2019-07-02T06:27:25.000Z | 2022-02-24T16:50:42.000Z | sensor/temperature.cpp | yan9a/rpi | eef334c8b61b5e32e7cf57e38f47236b8f483bfb | [
"MIT"
] | null | null | null | sensor/temperature.cpp | yan9a/rpi | eef334c8b61b5e32e7cf57e38f47236b8f483bfb | [
"MIT"
] | 1 | 2021-12-25T11:52:03.000Z | 2021-12-25T11:52:03.000Z | #include <stdio.h>
#include <unistd.h>
#include "ce_spi.h"
using namespace std;
int main()
{
CE_SPI tsensor;
tsensor.Begin();
int n;
float v, t;
for(int i=0;i<10;i++){
tsensor.tx[0]=0x01;//Send start bit - 0000 0001
tsensor.tx[1]=0x80;//read channel 0 - | s/~d | d2 d1 d0 | x x x x |
... | 29.206897 | 86 | 0.548996 | yan9a |
8bd919484fab1e1ecc7095de4b788278555b8a2e | 3,587 | hpp | C++ | src/glfw/vk/soVkGLFWSurface.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | src/glfw/vk/soVkGLFWSurface.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | src/glfw/vk/soVkGLFWSurface.hpp | BenSolus/vulkan-engine | 04a7114b7f9b2617cf6b5133e71190b1f48c0575 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2018 by Bennet Carstensen
*
* 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, ... | 34.825243 | 79 | 0.68581 | BenSolus |
8bdc31d0ef68ae02e16281e4c5a8bf65c6f35f9e | 1,248 | cpp | C++ | engine/Engine.cpp | shenchi/gllab | 5d8fe33cd763d5fe5033da106b715751ae2e87ef | [
"MIT"
] | null | null | null | engine/Engine.cpp | shenchi/gllab | 5d8fe33cd763d5fe5033da106b715751ae2e87ef | [
"MIT"
] | null | null | null | engine/Engine.cpp | shenchi/gllab | 5d8fe33cd763d5fe5033da106b715751ae2e87ef | [
"MIT"
] | null | null | null | #include "Engine.hpp"
EngineBase::~EngineBase() {
}
void EngineBase::run(int w, int h) {
if (!glfwInit())
return;
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_C... | 16.864865 | 63 | 0.684295 | shenchi |
8bdd8b6c0ae5f801651e5825fad97524ec28b936 | 130 | hpp | C++ | 5.FIRMWARE/arch/x86_64/mach/include/mach.hpp | xivisi/MachineLearning | a213e18dfeb7b22ea4ea555696e4d7e7dddd16f1 | [
"Apache-2.0"
] | null | null | null | 5.FIRMWARE/arch/x86_64/mach/include/mach.hpp | xivisi/MachineLearning | a213e18dfeb7b22ea4ea555696e4d7e7dddd16f1 | [
"Apache-2.0"
] | null | null | null | 5.FIRMWARE/arch/x86_64/mach/include/mach.hpp | xivisi/MachineLearning | a213e18dfeb7b22ea4ea555696e4d7e7dddd16f1 | [
"Apache-2.0"
] | null | null | null | /*
文件: mach.hpp
作者: Li Yong
电邮: xivisi@126.com
时间: 2018年9月11日
*/
#ifndef MACH_HPP_
#define MACH_HPP_
#endif /* MACH_HPP_ */
| 8.125 | 22 | 0.669231 | xivisi |
8bddfd0cca46132af90dc57da322de32c3b976e4 | 2,244 | cpp | C++ | LinkList/p1list.cpp | imsanjayK/DataStructure | 89ac5dc625d53653ea477071289c363024725ada | [
"Unlicense"
] | null | null | null | LinkList/p1list.cpp | imsanjayK/DataStructure | 89ac5dc625d53653ea477071289c363024725ada | [
"Unlicense"
] | null | null | null | LinkList/p1list.cpp | imsanjayK/DataStructure | 89ac5dc625d53653ea477071289c363024725ada | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cstdlib>
using namespace std;
typedef struct list
{
int data;
struct list *next;
} linkList;
linkList *start;
void push(int value)
{
linkList *newNode = new linkList;
if (newNode == NULL)
{
cout << "start NUll";
}
else
{
n... | 17.809524 | 41 | 0.414884 | imsanjayK |
8bdfd552b3997f3a34651a386df174551d9e3397 | 445 | cpp | C++ | Exercicios1/matriz.cpp | leandro-araujo-silva/Aprendendo-Cpp | 09c5eb038ca62f46a694c4386b6d9e1e7d2cb8fc | [
"MIT"
] | null | null | null | Exercicios1/matriz.cpp | leandro-araujo-silva/Aprendendo-Cpp | 09c5eb038ca62f46a694c4386b6d9e1e7d2cb8fc | [
"MIT"
] | null | null | null | Exercicios1/matriz.cpp | leandro-araujo-silva/Aprendendo-Cpp | 09c5eb038ca62f46a694c4386b6d9e1e7d2cb8fc | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int matriz[2][3];
cout << "Digite os valores da matriz:\n";
for(int i = 0; i < 2; i++) {
for (int j = 0; j < 3; j++) {
cout << "Matriz[" << i << "][" << j << "] = ";
cin >> matriz[i][j];
}
}
for(int i = 0; i < 2; i++) {
for (i... | 18.541667 | 76 | 0.395506 | leandro-araujo-silva |
8be03b2b7842e06885e63d6b260c38a228788528 | 2,700 | cpp | C++ | doc-src/samples/close-error.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 1 | 2019-04-09T12:48:41.000Z | 2019-04-09T12:48:41.000Z | doc-src/samples/close-error.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 2 | 2020-05-06T16:22:07.000Z | 2020-05-07T04:02:41.000Z | doc-src/samples/close-error.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 1 | 2019-04-10T12:47:11.000Z | 2019-04-10T12:47:11.000Z | /*
* Copyright 2009 Bjorn Fahller <bjorn@fahller.se>
* 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. Redistributions of source code must retain the above copyright
* notice, this ... | 27.272727 | 77 | 0.692963 | lsilvest |
8be2b2a326e5be01b5f5d2fdfad31b9ea867d030 | 1,103 | hpp | C++ | Kernel/Threads/Scheduler.hpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | 1 | 2021-08-24T05:59:32.000Z | 2021-08-24T05:59:32.000Z | Kernel/Threads/Scheduler.hpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | 3 | 2021-03-31T15:36:01.000Z | 2021-04-19T14:17:44.000Z | Kernel/Threads/Scheduler.hpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | null | null | null | #pragma once
#include <Std/Singleton.hpp>
#include <Std/Vector.hpp>
#include <Std/CircularQueue.hpp>
#include <Kernel/Forward.hpp>
#include <Kernel/Threads/Thread.hpp>
#include <Kernel/SystemHandler.hpp>
#include <Kernel/PageAllocator.hpp>
namespace Kernel
{
constexpr bool debug_scheduler = false;
constexpr ... | 20.811321 | 59 | 0.618314 | asynts |
8be9d39fc4b9b10782990946969a98776321be2d | 97 | cpp | C++ | src/entdlr/parser/grammar/generated/flatbuffers/FlatBuffersParserVisitor.cpp | tstraus/entdlr | d38f16c545873cde2d2e9a892cff6bf1f7ce803f | [
"MIT"
] | null | null | null | src/entdlr/parser/grammar/generated/flatbuffers/FlatBuffersParserVisitor.cpp | tstraus/entdlr | d38f16c545873cde2d2e9a892cff6bf1f7ce803f | [
"MIT"
] | null | null | null | src/entdlr/parser/grammar/generated/flatbuffers/FlatBuffersParserVisitor.cpp | tstraus/entdlr | d38f16c545873cde2d2e9a892cff6bf1f7ce803f | [
"MIT"
] | null | null | null |
// Generated from FlatBuffersParser.g4 by ANTLR 4.9.3
#include "FlatBuffersParserVisitor.h"
| 12.125 | 53 | 0.762887 | tstraus |
8bef420924809a920949881929bec91863062bde | 2,809 | cc | C++ | source/src/Objects/Track.cc | rete/Baboon | e5b2cfe6b9e5b5a41c2c68feda84b8df109eb086 | [
"FSFAP"
] | null | null | null | source/src/Objects/Track.cc | rete/Baboon | e5b2cfe6b9e5b5a41c2c68feda84b8df109eb086 | [
"FSFAP"
] | null | null | null | source/src/Objects/Track.cc | rete/Baboon | e5b2cfe6b9e5b5a41c2c68feda84b8df109eb086 | [
"FSFAP"
] | null | null | null | /// \file Track.cc
/*
*
* Track.cc source template generated by fclass
* Creation date : lun. avr. 29 2013
* Copyright (c) CNRS , IPNL
*
* All Right Reserved.
* Use and copying of these libraries and preparation of derivative works
* based upon these libraries are permitted. Any copy of these libraries
* mus... | 21.775194 | 149 | 0.644001 | rete |
8bef6194c19b70ad60f1b2599f56eb0f4cac1469 | 368 | cpp | C++ | src/stationchat/RegistrarNode.cpp | seefo/swg-stationapi | ae46b8a6177ea800b0dde00630051a19876cffae | [
"MIT"
] | null | null | null | src/stationchat/RegistrarNode.cpp | seefo/swg-stationapi | ae46b8a6177ea800b0dde00630051a19876cffae | [
"MIT"
] | null | null | null | src/stationchat/RegistrarNode.cpp | seefo/swg-stationapi | ae46b8a6177ea800b0dde00630051a19876cffae | [
"MIT"
] | 1 | 2022-03-09T23:57:59.000Z | 2022-03-09T23:57:59.000Z |
#include "RegistrarNode.hpp"
#include "StationChatConfig.hpp"
RegistrarNode::RegistrarNode(StationChatConfig& config)
: Node(this, config.registrarAddress, config.registrarPort, config.bindToIp)
, config_{config} {}
RegistrarNode::~RegistrarNode() {}
StationChatConfig& RegistrarNode::GetConfig() {
retu... | 20.444444 | 80 | 0.75 | seefo |
8bf1eae24c25e7ec00c0d87aee060a990b1fc908 | 5,038 | cpp | C++ | include/types/operator.cpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | 1 | 2020-07-11T14:53:38.000Z | 2020-07-11T14:53:38.000Z | include/types/operator.cpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | 1 | 2020-07-04T16:45:49.000Z | 2020-07-04T16:45:49.000Z | include/types/operator.cpp | nathanmullenax83/rhizome | e7410341fdc4d38ab5aaecc55c94d3ac6efd51da | [
"MIT"
] | null | null | null | #include "operator.hpp"
#include <cwctype>
#include <string>
#include <codecvt>
#include <locale>
namespace rhizome {
namespace types {
Thing * unit_dummy() {
throw runtime_error(" is not a unit operator.");
}
Thing * unary_dummy(Thing *a) {
(void)a;
th... | 31.685535 | 106 | 0.467844 | nathanmullenax83 |
8bf2b14218141d2e155dcbc81bf7bb714c6d429c | 1,119 | cpp | C++ | source/msynth/msynth/ui/dialog/MRecordDialog.cpp | MRoc/MSynth | 3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829 | [
"MIT"
] | 1 | 2022-01-30T07:40:31.000Z | 2022-01-30T07:40:31.000Z | source/msynth/msynth/ui/dialog/MRecordDialog.cpp | MRoc/MSynth | 3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829 | [
"MIT"
] | null | null | null | source/msynth/msynth/ui/dialog/MRecordDialog.cpp | MRoc/MSynth | 3eb5c6cf0ad6a3d12f555ebca5fbe84c1b255829 | [
"MIT"
] | null | null | null | #include "MRecordDialog.h"
MRecordDialog::MRecordDialog()
{
MSaxTreeDocument doc;
doc.parseResource( "resource/xml/recorddialog.xml" );
load( doc.getRoot() );
ivMode = RENDER;
}
MRecordDialog::~MRecordDialog()
{
}
MRecordDialog::DlgResult MRecordDialog::onDlgCommand( unsigned int id )
{
switch... | 21.941176 | 93 | 0.670241 | MRoc |
8bf741dd5065ee7451bb49fe66b7956ef21a68b3 | 197 | cpp | C++ | 30-app/viewdll/source/ctrlapp3.cpp | RealCrond/view | 0a5f0b5d6e57d0d91f8b254ec9f3075e5185a34d | [
"MIT"
] | 1 | 2020-03-27T09:37:18.000Z | 2020-03-27T09:37:18.000Z | 30-app/viewdll/source/ctrlapp3.cpp | RealCrond/view | 0a5f0b5d6e57d0d91f8b254ec9f3075e5185a34d | [
"MIT"
] | null | null | null | 30-app/viewdll/source/ctrlapp3.cpp | RealCrond/view | 0a5f0b5d6e57d0d91f8b254ec9f3075e5185a34d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ctrlapp3.h"
CCtrlApp3::CCtrlApp3()
{
}
CCtrlApp3::~CCtrlApp3()
{
}
BEGIN_MSG_MAP(CCtrlApp3)
//REG_MSG(emFistEventId, CCtrlApp1::OnCameraSelectCmd)
END_MSG_MAP() | 11.588235 | 55 | 0.736041 | RealCrond |
8bf9baa09612c9b6ba0e39b5c17e1a12a80dc66e | 740 | cpp | C++ | src/0039.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | src/0039.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | src/0039.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> combinationSum(vector<int>& candidates, int target) {
vector<vector<int>> res;
vector<int> tmp;
dfs(res, tmp, candidates, 0, target);
return res;
}
void dfs(vector<vector<int>>& res, vector<int>& tmp, vector<int>& candidates, int ... | 27.407407 | 100 | 0.486486 | shuihan0555 |
8bfa7858a0e5e4cac2701e40fee0b7790b94f730 | 14,133 | hpp | C++ | src/align_bench_seqan.hpp | rrahn/align_bench | eed206e113f2aa1a2ef7a2441f19e56ecafa23fc | [
"BSD-3-Clause"
] | 2 | 2017-03-08T05:35:46.000Z | 2019-08-21T16:09:18.000Z | src/align_bench_seqan.hpp | rrahn/align_bench | eed206e113f2aa1a2ef7a2441f19e56ecafa23fc | [
"BSD-3-Clause"
] | null | null | null | src/align_bench_seqan.hpp | rrahn/align_bench | eed206e113f2aa1a2ef7a2441f19e56ecafa23fc | [
"BSD-3-Clause"
] | null | null | null | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2018, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and us... | 39.477654 | 152 | 0.574117 | rrahn |
8bfbdf50008464649c64cc0191c62685f48c9948 | 5,334 | cc | C++ | ProbTools/ConsistencySet.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | ProbTools/ConsistencySet.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | ProbTools/ConsistencySet.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: ConsistencySet.cc 704 2010-11-10 15:23:36Z stroili $
//
// Description:
// Class ConsistencySet -- see header
//
// Environment:
// Software developed for the BaBar Detector at the SLAC B-Factory.... | 18.982206 | 78 | 0.587364 | brownd1978 |
8bfe4b52ee3158d0b972817b2cb94736f6c76e16 | 2,238 | cpp | C++ | src/timer.cpp | ekera/qunundrum | deeed6779a5b0e69df9245024225b8a552c2179c | [
"MIT"
] | 4 | 2020-12-09T10:57:05.000Z | 2021-12-27T15:44:47.000Z | src/timer.cpp | ekera/qunundrum | deeed6779a5b0e69df9245024225b8a552c2179c | [
"MIT"
] | null | null | null | src/timer.cpp | ekera/qunundrum | deeed6779a5b0e69df9245024225b8a552c2179c | [
"MIT"
] | null | null | null | /*!
* \file timer.cpp
* \ingroup timer
*
* \brief The definition of functions for manipulating timers and collecting
* timing statistics.
*/
#include "timer.h"
#include <stdint.h>
#include <string.h>
#include <time.h>
void timer_start(
Timer * const timer)
{
clock_gettime(CLOCK_MONOTONIC_RAW,... | 18.806723 | 78 | 0.592493 | ekera |
bdd70b22c8427bd1b6a3dd13583f9f723a739e46 | 282 | cc | C++ | src/mob/friendly/Zeus.cc | kallentu/pathos | 1914edbccc98baef79d98fb065119230072ac40d | [
"MIT"
] | 7 | 2019-05-09T15:38:55.000Z | 2021-12-07T03:13:29.000Z | src/mob/friendly/Zeus.cc | kallentu/pathos | 1914edbccc98baef79d98fb065119230072ac40d | [
"MIT"
] | 1 | 2019-06-20T03:01:18.000Z | 2019-06-20T03:01:18.000Z | src/mob/friendly/Zeus.cc | kallentu/pathos | 1914edbccc98baef79d98fb065119230072ac40d | [
"MIT"
] | null | null | null | #include "mob/friendly/Zeus.h"
#include "request/TalkRequest.h"
#include <memory>
using namespace Pathos;
std::unique_ptr<TalkRequest> Zeus::beTalkedToBy(Player &p) {
(void)p;
return std::make_unique<TalkRequest>(
"When you need me, lightning will be by your side.");
}
| 23.5 | 60 | 0.719858 | kallentu |
bdd7c99e4f0dfd095d69105db7b52ef047def2b6 | 406 | cpp | C++ | directfire_github/trunk/gameui/menuscene.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | 1 | 2015-08-12T04:05:33.000Z | 2015-08-12T04:05:33.000Z | directfire_github/trunk/gameui/menuscene.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | null | null | null | directfire_github/trunk/gameui/menuscene.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | null | null | null | #include "menuscene.h"
#include "mainmenulayer.h"
#include "gamecore/serverinterface.h"
MenuScene::MenuScene()
{
ServerInterface::getInstance();
}
MenuScene::~MenuScene()
{
}
bool MenuScene::init()
{
bool ret = false;
do {
CC_BREAK_IF(!CCScene::init());
this->addChild(Ma... | 16.24 | 49 | 0.583744 | zhwsh00 |
bdd93f5b4e5df56b2800daa79defddf4def0946e | 19,004 | cpp | C++ | Lab-7/CS20B1127_Inheritance.cpp | Hitesh1309/OOPS-Lab-Submissions | d5bc462686e328760ca6091c8fe3dcc514b98dd9 | [
"MIT"
] | null | null | null | Lab-7/CS20B1127_Inheritance.cpp | Hitesh1309/OOPS-Lab-Submissions | d5bc462686e328760ca6091c8fe3dcc514b98dd9 | [
"MIT"
] | null | null | null | Lab-7/CS20B1127_Inheritance.cpp | Hitesh1309/OOPS-Lab-Submissions | d5bc462686e328760ca6091c8fe3dcc514b98dd9 | [
"MIT"
] | null | null | null | //CS20B1127
//Hitesh Gupta
//Program for Inheritance.
// NOTE : The credit and debit in checking account using option 2 and 3 respectively are done without cutting the transaction fee.
#include <iostream>
using namespace std;
// Class for storing linked list of Saving Accounts.
class SavingsLL
{
p... | 34.615665 | 132 | 0.38634 | Hitesh1309 |
bdd9b4727c6c765ecb698174af543ead9964f6d3 | 44,660 | cpp | C++ | bark_editor/src/GUIContext.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 50 | 2015-06-01T19:23:24.000Z | 2021-12-22T02:14:23.000Z | bark_editor/src/GUIContext.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 109 | 2015-07-20T07:43:03.000Z | 2021-01-31T21:52:36.000Z | bark_editor/src/GUIContext.cpp | Daivuk/onut | b02c5969b36897813de9c574a26d9437b67f189e | [
"MIT"
] | 9 | 2015-07-02T21:36:20.000Z | 2019-10-19T04:18:02.000Z | #include <sstream>
#include <iomanip>
#include <onut/ContentManager.h>
#include <onut/Input.h>
#include <onut/Log.h>
#include <onut/Font.h>
#include <onut/Renderer.h>
#include <onut/SpriteBatch.h>
#include <onut/Window.h>
#include <onut/Strings.h>
#include <onut/Texture.h>
#include <onut/TiledMap.h>
#include <onut/Soun... | 30.236967 | 138 | 0.582871 | Daivuk |
bde2cdb1ff29141bd8a61024ac8e32ff7e8cb2b2 | 11,550 | hpp | C++ | lib/player.hpp | SailGame/ExplodingKittens | 0bf2fa3d57accaef1e049122956b57b93a0cc810 | [
"MIT"
] | null | null | null | lib/player.hpp | SailGame/ExplodingKittens | 0bf2fa3d57accaef1e049122956b57b93a0cc810 | [
"MIT"
] | null | null | null | lib/player.hpp | SailGame/ExplodingKittens | 0bf2fa3d57accaef1e049122956b57b93a0cc810 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <boost/mpl/vector.hpp>
#include <boost/msm/back/state_machine.hpp>
#include <boost/msm/front/euml/common.hpp>
#include <boost/msm/front/euml/operator.hpp>
#include <boost/msm/front/functor_row.hpp>
#include <boost/msm/front/state_machine_def.hpp>
#include <iostream>
#include <... | 32.172702 | 109 | 0.542078 | SailGame |
bde89f13ddda00029239c5bba2d511c5130bac31 | 1,229 | cpp | C++ | src/reactor/application.cpp | victor-smirnov/dumbo | 57fe7f765c69490a9bda6619bcab8fcca0e1d2d9 | [
"BSL-1.0",
"Apache-2.0"
] | 6 | 2016-10-22T06:37:17.000Z | 2019-05-09T06:12:48.000Z | src/reactor/application.cpp | victor-smirnov/dumbo | 57fe7f765c69490a9bda6619bcab8fcca0e1d2d9 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/reactor/application.cpp | victor-smirnov/dumbo | 57fe7f765c69490a9bda6619bcab8fcca0e1d2d9 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null |
// Copyright 2017 Victor Smirnov
//
// 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... | 25.081633 | 75 | 0.662327 | victor-smirnov |
bdefba20106bd1f2b3d0dd812cee476ff1d42494 | 329 | cpp | C++ | 11714.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | 1 | 2018-03-19T05:18:49.000Z | 2018-03-19T05:18:49.000Z | 11714.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | null | null | null | 11714.cpp | abraxaslee/ACM-ICPC | d8db31a4a2a36258bfba42a806b02bbf3eceaf2b | [
"MIT"
] | null | null | null | //2012/02/25
//11714.cpp
//Run time: 0.024
#include <stdio.h>
#include <math.h>
int main(){
#ifndef ONLINE_JUDGE
freopen("11714.in", "r", stdin);
freopen("11714.out", "w", stdout);
#endif
unsigned int N;
while(scanf("%u", &N) == 1)
printf("%u\n", (N-1)+(unsigned int)(log(N-1)/log(2)));
retur... | 17.315789 | 57 | 0.56535 | abraxaslee |
bdf275538db438f88107062a42962b67fc870cb9 | 15,671 | cpp | C++ | class/RenderWorkManager.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 272 | 2019-06-27T12:21:49.000Z | 2022-03-23T07:18:33.000Z | class/RenderWorkManager.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 9 | 2019-08-11T13:07:01.000Z | 2022-01-26T12:30:24.000Z | class/RenderWorkManager.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 16 | 2019-09-29T01:41:02.000Z | 2022-03-29T15:51:35.000Z | #include "RenderWorkManager.h"
#include "ComputeMaterialFactory.h"
#include "../vulkan/RenderPass.h"
#include "../vulkan/GlobalDeviceObjects.h"
#include "../vulkan/Framebuffer.h"
#include "../vulkan/SwapChain.h"
#include "../vulkan/Image.h"
#include "../vulkan/GlobalVulkanStates.h"
#include "../common/Util.h"
#include ... | 45.821637 | 246 | 0.793695 | enjiushi |
da0be6cb8a9294384bc5c7743b2624315a53e9cc | 2,269 | hpp | C++ | include/vif/test/unit_test.hpp | lmorabit/vif | 459715c60e0ef6c83c7ebfb8741355d597dbc7aa | [
"Apache-2.0"
] | 6 | 2018-09-04T10:57:00.000Z | 2021-10-05T07:41:50.000Z | include/vif/test/unit_test.hpp | lmorabit/vif | 459715c60e0ef6c83c7ebfb8741355d597dbc7aa | [
"Apache-2.0"
] | 2 | 2019-05-22T02:59:46.000Z | 2019-12-02T19:15:43.000Z | include/vif/test/unit_test.hpp | lmorabit/vif | 459715c60e0ef6c83c7ebfb8741355d597dbc7aa | [
"Apache-2.0"
] | 3 | 2019-05-01T10:20:47.000Z | 2021-09-20T16:35:34.000Z | #ifndef VIF_TEST_UNIT_TEST_HPP
#define VIF_TEST_UNIT_TEST_HPP
#include "vif/core/vec.hpp"
#include "vif/core/print.hpp"
#include "vif/core/string_conversion.hpp"
#include "vif/math/base.hpp"
namespace vif {
uint_t tested = 0u;
uint_t failed = 0u;
bool reduce_and(bool b) {
return b;
}
tem... | 28.012346 | 110 | 0.565888 | lmorabit |
da0c777b0bc29d4d49a90d04a0c52b64972e1373 | 155 | hpp | C++ | src/jk/cog/vm/restart_exception.hpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/jk/cog/vm/restart_exception.hpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/jk/cog/vm/restart_exception.hpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #pragma once
namespace gorc {
namespace cog {
class restart_exception {
public:
restart_exception();
};
}
}
| 11.923077 | 33 | 0.516129 | jdmclark |
da0d78eddc454659ae37a6b292f010a50e03e731 | 28,605 | cpp | C++ | Examples/SDKLibrary/interface/server/platform_specific/server_class/c_api/value_attribute_reader_writer_for_c_api.cpp | beeond/robot-examples | afc6b8b10809988b03663d703203625927e66e8f | [
"MIT"
] | 1 | 2018-03-29T21:03:31.000Z | 2018-03-29T21:03:31.000Z | Examples/SDKLibrary/interface/server/platform_specific/server_class/c_api/value_attribute_reader_writer_for_c_api.cpp | JayeshThamke/robot-examples | afc6b8b10809988b03663d703203625927e66e8f | [
"MIT"
] | null | null | null | Examples/SDKLibrary/interface/server/platform_specific/server_class/c_api/value_attribute_reader_writer_for_c_api.cpp | JayeshThamke/robot-examples | afc6b8b10809988b03663d703203625927e66e8f | [
"MIT"
] | 4 | 2018-04-05T21:16:55.000Z | 2019-10-15T19:01:46.000Z | /* ----------------------------------------------------------------------------------------
COPYRIGHT (c) 2009 - 2017
HONEYWELL INC.,
ALL RIGHTS RESERVED
This software is a copyrighted w... | 25.677738 | 181 | 0.703513 | beeond |
da0de7f78b4a0407e6d09e7e4abac305eb5be01d | 12,199 | cpp | C++ | test/master-keys-test.cpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 15 | 2016-04-12T17:12:19.000Z | 2019-08-14T17:46:17.000Z | test/master-keys-test.cpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 63 | 2016-03-22T14:35:31.000Z | 2018-07-04T22:17:07.000Z | test/master-keys-test.cpp | 1984not-GmbH/molch | c7f1f646c800ef3388f36e8805a3b94d33d85b12 | [
"MIT"
] | 1 | 2017-08-17T09:27:30.000Z | 2017-08-17T09:27:30.000Z | /*
* Molch, an implementation of the axolotl ratchet based on libsodium
*
* ISC License
*
* Copyright (C) 2015-2016 1984not Security GmbH
* Author: Max Bruckner (FSMaxB)
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that t... | 39.866013 | 157 | 0.774818 | 1984not-GmbH |
da0eda4b7318eb4e4776d0e61b558b3db1fe1de2 | 442 | cpp | C++ | 5-10-21/Odd_even_linked_list.cpp | ahanavish/GDSC-DSA-Interview-Preparation | d6cfa402dbbe8ed4f5b96f51e2e0fc0e2eabbdaf | [
"MIT"
] | null | null | null | 5-10-21/Odd_even_linked_list.cpp | ahanavish/GDSC-DSA-Interview-Preparation | d6cfa402dbbe8ed4f5b96f51e2e0fc0e2eabbdaf | [
"MIT"
] | null | null | null | 5-10-21/Odd_even_linked_list.cpp | ahanavish/GDSC-DSA-Interview-Preparation | d6cfa402dbbe8ed4f5b96f51e2e0fc0e2eabbdaf | [
"MIT"
] | 1 | 2021-11-29T06:10:48.000Z | 2021-11-29T06:10:48.000Z | // https://leetcode.com/problems/odd-even-linked-list/
class Solution {
public:
ListNode* oddEvenList(ListNode* head)
{
if(head==NULL)
return head;
ListNode* odd=head, *even=head->next, *even_start=head->next;
while(even && even->next){
odd->next=odd->next->next;
even->ne... | 21.047619 | 65 | 0.588235 | ahanavish |
da11d5ef09f6fd569100633298f01892a9bd1bc1 | 36,037 | cpp | C++ | src/ImageProcessing/RoadSignDetection/RoadSignDetectionAdapter.cpp | FAUtonOHM/AADC_2016 | ed00b45d53fadb58e26a6879a17eaf4c749da4a5 | [
"BSD-4-Clause"
] | null | null | null | src/ImageProcessing/RoadSignDetection/RoadSignDetectionAdapter.cpp | FAUtonOHM/AADC_2016 | ed00b45d53fadb58e26a6879a17eaf4c749da4a5 | [
"BSD-4-Clause"
] | null | null | null | src/ImageProcessing/RoadSignDetection/RoadSignDetectionAdapter.cpp | FAUtonOHM/AADC_2016 | ed00b45d53fadb58e26a6879a17eaf4c749da4a5 | [
"BSD-4-Clause"
] | null | null | null | /**
* Copyright (c)
* Audi Autonomous Driving Cup. TEAM FAUtonOHM. 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. Redistributions of source code must retain the above copyright no... | 41.613164 | 730 | 0.72198 | FAUtonOHM |
da12478710ee429c6e4978d98659d8fd96fba24b | 1,449 | cpp | C++ | src/crosschain/interblockchain.cpp | BlockMechanic/rain | e8818b75240ff9277b0d14d38769378f05d0b525 | [
"MIT"
] | null | null | null | src/crosschain/interblockchain.cpp | BlockMechanic/rain | e8818b75240ff9277b0d14d38769378f05d0b525 | [
"MIT"
] | null | null | null | src/crosschain/interblockchain.cpp | BlockMechanic/rain | e8818b75240ff9277b0d14d38769378f05d0b525 | [
"MIT"
] | null | null | null | // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <crosschain/interblockchain.h>
#include <protocol.h>
#include <chainparams.h>
#include <util/strencodings.h>
#include <boost/foreach.hpp>
void CIbtp::LoadMsgStart()
... | 37.153846 | 108 | 0.68323 | BlockMechanic |
da12a6276249a1e2b1bbe1a6ccf43669ca6bc51e | 568 | hpp | C++ | android-31/android/os/health/PidHealthStats.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/os/health/PidHealthStats.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/os/health/PidHealthStats.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../../JObject.hpp"
namespace android::os::health
{
class PidHealthStats : public JObject
{
public:
// Fields
static jint MEASUREMENT_WAKE_NESTING_COUNT();
static jint MEASUREMENT_WAKE_START_MS();
static jint MEASUREMENT_WAKE_SUM_MS();
// QJniObject forward
template<typename... | 22.72 | 155 | 0.702465 | YJBeetle |
da12a7c5e63ae59962652ebedc1712f7cf326703 | 1,326 | cpp | C++ | Game/Colour.cpp | roooodcastro/gamedev-coursework | a4bfdbd8f68cb641c0025ec70270b0a17e2e237d | [
"MIT"
] | 1 | 2019-10-05T23:31:00.000Z | 2019-10-05T23:31:00.000Z | Game/Colour.cpp | roooodcastro/gamedev-coursework | a4bfdbd8f68cb641c0025ec70270b0a17e2e237d | [
"MIT"
] | null | null | null | Game/Colour.cpp | roooodcastro/gamedev-coursework | a4bfdbd8f68cb641c0025ec70270b0a17e2e237d | [
"MIT"
] | null | null | null | #include "Colour.h"
Colour::Colour(void) {
this->red = 255;
this->green = 255;
this->blue = 255;
this->alpha = 255;
}
Colour::Colour(const Colour ©) {
this->red = copy.red;
this->green = copy.green;
this->blue = copy.blue;
this->alpha = copy.alpha;
}
Colour::Colour(unsigned int colour) {
this->red = 0;
... | 21.047619 | 81 | 0.642534 | roooodcastro |
da1308de95dbfcc002e0fdf2829f885b5a409294 | 3,928 | cpp | C++ | Chapter11/SQL_Model_View/mainwindow.cpp | thacngoc/Qt5-CPP-GUI-Programming-Cookbook-Second-Edition | 0c8ab6efb2c6c18782b2e85c6d8c7bbd22098bd8 | [
"MIT"
] | 94 | 2019-04-05T09:44:13.000Z | 2022-03-29T04:04:37.000Z | Chapter11/SQL_Model_View/mainwindow.cpp | thacngoc/Qt5-CPP-GUI-Programming-Cookbook-Second-Edition | 0c8ab6efb2c6c18782b2e85c6d8c7bbd22098bd8 | [
"MIT"
] | 5 | 2019-10-28T10:21:27.000Z | 2020-08-18T05:42:04.000Z | Chapter11/SQL_Model_View/mainwindow.cpp | thacngoc/Qt5-CPP-GUI-Programming-Cookbook-Second-Edition | 0c8ab6efb2c6c18782b2e85c6d8c7bbd22098bd8 | [
"MIT"
] | 54 | 2019-03-27T11:52:45.000Z | 2022-03-24T09:21:51.000Z | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
hasInit = false;
ui->setupUi(this);
db = QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("127.0.0.1");
db.setUserName("yourusername");
db.setP... | 31.424 | 162 | 0.515784 | thacngoc |
da16f7fac40a68a32c7aa59a6988ef6676c9a4db | 289 | cpp | C++ | MSVC/14.24.28314/crt/src/linkopts/commode.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | MSVC/14.24.28314/crt/src/linkopts/commode.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | MSVC/14.24.28314/crt/src/linkopts/commode.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | //
// commode.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// A link option that defaults the global commit flag to true.
//
#include <vcruntime.h>
#include <fcntl.h>
extern "C" int __CRTDECL _get_startup_commit_mode()
{
return 0x0800; // _IOCOMMIT
}
| 17 | 65 | 0.688581 | 825126369 |
da2a599cbd917908263cf2ea7417f1a3dae0d830 | 3,677 | cpp | C++ | Unrest-iOS/MapMarkerMenu.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 11 | 2020-08-04T08:37:46.000Z | 2022-03-31T22:35:15.000Z | CRAB/MapMarkerMenu.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 1 | 2020-12-16T16:51:52.000Z | 2020-12-18T06:35:38.000Z | Unrest-iOS/MapMarkerMenu.cpp | arvindrajayadav/unrest | d89f20e95fbcdef37a47ab1454b2479522a0e43f | [
"MIT"
] | 7 | 2020-08-04T09:34:20.000Z | 2021-09-11T03:00:16.000Z | #include "stdafx.h"
#include "MapMarkerMenu.h"
using namespace pyrodactyl::ui;
//------------------------------------------------------------------------
// Purpose: Load
//------------------------------------------------------------------------
void MapMarkerMenu::Load(rapidxml::xml_node<char> *node)
{
if (NodeVali... | 32.830357 | 131 | 0.550993 | arvindrajayadav |
da2dddbfcdd1adf6919ed987747f1873ab2d37a0 | 2,387 | cpp | C++ | src/utils/saves/converter/save_converter.cpp | Blackhawk-TA/GateKeeper | 49a260bf7ba2304f1649b5ed487bc1e55028e672 | [
"MIT"
] | 1 | 2021-12-31T23:52:57.000Z | 2021-12-31T23:52:57.000Z | src/utils/saves/converter/save_converter.cpp | Blackhawk-TA/GateKeeper | 49a260bf7ba2304f1649b5ed487bc1e55028e672 | [
"MIT"
] | null | null | null | src/utils/saves/converter/save_converter.cpp | Blackhawk-TA/GateKeeper | 49a260bf7ba2304f1649b5ed487bc1e55028e672 | [
"MIT"
] | null | null | null | //
// Created by daniel on 16.04.22.
//
#include "save_converter.hpp"
#include "../save_types.hpp"
#include "legacy_option_structs.hpp"
#include "legacy_game_structs.hpp"
#include "../options.hpp"
namespace save_converter {
/**
* Updates the options save file by parsing the v0 into the v1 struct.
* If no save is... | 25.945652 | 73 | 0.705069 | Blackhawk-TA |
da388e1615ded3dedb83447e19c3edc16cb26a5a | 1,574 | hpp | C++ | include/PathPlan/PathPlan.hpp | shanghaolong04/ROS-ME3243L2 | 47046804a432638f28689e1d32fd83b15693eeb4 | [
"MIT"
] | null | null | null | include/PathPlan/PathPlan.hpp | shanghaolong04/ROS-ME3243L2 | 47046804a432638f28689e1d32fd83b15693eeb4 | [
"MIT"
] | null | null | null | include/PathPlan/PathPlan.hpp | shanghaolong04/ROS-ME3243L2 | 47046804a432638f28689e1d32fd83b15693eeb4 | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include <std_msgs/Float32MultiArray.h> //input from range_finder
#include <nav_msgs/Odometry.h> //input from odometry
#include <geometry_msgs/Point.h>
#include <armadillo>
#include <math.h>
#include <stdio.h>
using namespace std;
using namespace arma;
class PathPlan{
private:
ros::NodeHan... | 25.387097 | 88 | 0.719822 | shanghaolong04 |
da41858ebc75088435eb30326f25e21ef62df3ed | 1,823 | cpp | C++ | app/src/main/jni/comitton/PdfFlate.cpp | mryp/ComittoNxA | 9b46c267bff22c2090d75ac70b589f9a12d61457 | [
"Unlicense"
] | 14 | 2020-08-05T09:36:01.000Z | 2022-02-23T01:48:18.000Z | app/src/main/jni/comitton/PdfFlate.cpp | yuma2a/ComittoNxA-Continued | 9d85c4f5753e534c3ff0cf83fe53df588872c8ff | [
"Unlicense"
] | 1 | 2020-11-17T12:55:17.000Z | 2020-11-17T12:55:17.000Z | app/src/main/jni/comitton/PdfFlate.cpp | mryp/ComittoNxA | 9b46c267bff22c2090d75ac70b589f9a12d61457 | [
"Unlicense"
] | 4 | 2021-04-21T02:56:50.000Z | 2021-11-08T12:02:32.000Z | #include <android/log.h>
#include "../zlib/zlib.h"
#include "PdfCrypt.h"
int FlateDecompress(BYTE *inbuf, int insize)
{
int result = 0;
int count, status;
BYTE *outbuf = init_buffer();
if (outbuf == NULL) {
return -10;
}
/* すべてのメモリ管理をライブラリに任せる */
z_stream z;
z.zalloc = Z_NULL;
z.zfree = Z_NULL;
z.opaque ... | 20.255556 | 73 | 0.580362 | mryp |
da41f9f761a05bbed96caaf415e5b47a97f80768 | 331 | hpp | C++ | booleannetwork-code-66-trunk/booleannetwork-code-66-trunk/include/BnSimulator/lab/expression_based_distance.hpp | Markfrancisrogers/BooleanNetwork | 62e755d938b70e5907e8561909a0637f0682b9b4 | [
"Apache-2.0"
] | 2 | 2017-07-04T14:57:48.000Z | 2017-08-04T19:03:51.000Z | booleannetwork-code-66-trunk/booleannetwork-code-66-trunk/include/BnSimulator/lab/expression_based_distance.hpp | Markfrancisrogers/BooleanNetwork | 62e755d938b70e5907e8561909a0637f0682b9b4 | [
"Apache-2.0"
] | null | null | null | booleannetwork-code-66-trunk/booleannetwork-code-66-trunk/include/BnSimulator/lab/expression_based_distance.hpp | Markfrancisrogers/BooleanNetwork | 62e755d938b70e5907e8561909a0637f0682b9b4 | [
"Apache-2.0"
] | null | null | null | /*
* expression_based_distance.hpp
*
* Created on: Aug 28, 2009
* Author: stewie
*/
#ifndef EXPRESSION_BASED_DISTANCE_HPP_
#define EXPRESSION_BASED_DISTANCE_HPP_
namespace bn {
class Attractor;
double expression_based_distance(const Attractor& a, const Attractor& b);
}
#endif /* EXPRESSION_BASED_DISTAN... | 16.55 | 73 | 0.758308 | Markfrancisrogers |
da43dc3ef3f70832c233032dde35d8e4c056b28f | 2,223 | cpp | C++ | src/pddl_solver_action.cpp | ysl208/iRoPro | 72a8b023755b6396239c24fabef79458bcdc3215 | [
"MIT"
] | 5 | 2020-11-11T10:51:53.000Z | 2022-01-13T01:32:11.000Z | src/pddl_solver_action.cpp | ysl208/rapid_pbd | 72a8b023755b6396239c24fabef79458bcdc3215 | [
"MIT"
] | 24 | 2018-05-02T17:33:04.000Z | 2018-12-19T13:06:52.000Z | src/pddl_solver_action.cpp | ysl208/rapid_pbd | 72a8b023755b6396239c24fabef79458bcdc3215 | [
"MIT"
] | 2 | 2018-05-03T07:02:09.000Z | 2018-05-03T11:36:53.000Z | #include "rapid_pbd/pddl_solver_action.h"
#include "rapid_pbd/action_names.h"
#include <sstream>
#include <string>
#include "actionlib/client/simple_action_client.h"
#include "actionlib/server/simple_action_server.h"
#include "pddl_msgs/PDDLPlannerAction.h"
#include "ros/ros.h"
using actionlib::SimpleClientGoalState... | 31.309859 | 80 | 0.699955 | ysl208 |
da496ddfe11844326936184872e597a7e8acc6e9 | 106 | cpp | C++ | benignware/1008.cpp | CodmingOut/SecretProjectAI | addc43117eab30a25453c18fa042739c33cc6cfb | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/1000/1008.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/1000/1008.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <cstdio>
int main()
{
long double a, b;
scanf("%Lf %Lf", &a, &b);
printf("%.10Lf", a / b);
} | 11.777778 | 26 | 0.518868 | CodmingOut |
da59addf353d403e89648d55b03105a2b42f6b9f | 17,660 | cpp | C++ | native/svm_bench.cpp | PivovarA/scikit-learn_bench | 52e96f28eda3ca25d0f51594041fd06ee3f8d4c2 | [
"MIT"
] | null | null | null | native/svm_bench.cpp | PivovarA/scikit-learn_bench | 52e96f28eda3ca25d0f51594041fd06ee3f8d4c2 | [
"MIT"
] | null | null | null | native/svm_bench.cpp | PivovarA/scikit-learn_bench | 52e96f28eda3ca25d0f51594041fd06ee3f8d4c2 | [
"MIT"
] | 2 | 2020-08-07T16:19:32.000Z | 2020-08-07T16:22:12.000Z | /*
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*/
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cmath>
#include <fstream>
#include <iostream>
#include <utility>
#include <vector>
#define DAAL_DATA_TYPE double
#include "CLI11.hpp"
#include "common.hpp"
#includ... | 33.320755 | 80 | 0.602661 | PivovarA |
da5e6e7047b2e62066e7b1d6664ca8b9c4503245 | 3,892 | cpp | C++ | sample/tutorial19.1/main.cpp | adi-g15/json_dto | 62ce52bcf43eede144c99f74223ffb2aff4659c7 | [
"BSD-3-Clause"
] | 91 | 2018-05-02T08:31:07.000Z | 2022-03-20T15:14:14.000Z | sample/tutorial19.1/main.cpp | adi-g15/json_dto | 62ce52bcf43eede144c99f74223ffb2aff4659c7 | [
"BSD-3-Clause"
] | 16 | 2018-12-07T11:42:39.000Z | 2022-03-29T13:55:33.000Z | sample/tutorial19.1/main.cpp | adi-g15/json_dto | 62ce52bcf43eede144c99f74223ffb2aff4659c7 | [
"BSD-3-Clause"
] | 16 | 2018-08-11T12:55:44.000Z | 2022-03-15T14:31:51.000Z | /*
A sample using map<uint32_t, int> with several custom reader_writers.
*/
#include <cstdio>
#include <iostream>
#include <map>
#include <json_dto/pub.hpp>
// Basic functionality for (de)serializing of values.
struct basic_reader_writer
{
void read(
int & value,
const rapidjson::Value & from ) const
{
// J... | 23.877301 | 79 | 0.643114 | adi-g15 |
da5efbed9701c6e6a86cf24d139afed676d95a9b | 799 | cpp | C++ | Chapter06/Cpp_Js/mainwindow.cpp | Vaibhav-Kashyap/Hands-on-GUI-Programming-with-CPP-Qt5-pkt | 4e964f0f4fc344fb7477c01cb22a04fabb5db965 | [
"MIT"
] | 87 | 2018-05-03T08:57:23.000Z | 2022-03-25T03:35:56.000Z | Chapter06/Cpp_Js/mainwindow.cpp | brutspark/Hands-On-GUI-Programming-with-CPP-and-Qt5 | 4d488dd54734954b06842ea25a256e5e18c7b01c | [
"MIT"
] | null | null | null | Chapter06/Cpp_Js/mainwindow.cpp | brutspark/Hands-On-GUI-Programming-with-CPP-and-Qt5 | 4d488dd54734954b06842ea25a256e5e18c7b01c | [
"MIT"
] | 51 | 2018-04-28T15:04:52.000Z | 2022-03-07T13:20:30.000Z | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
webview = new QWebEngineView(ui->verticalFrame);
webview->load(QUrl("qrc:///html/test.html"));
QWebChannel* channel = new QWebChannel(this);
... | 20.487179 | 68 | 0.692115 | Vaibhav-Kashyap |
da63b2b8ddbccd81dfe95dc3ed91945146bb60e6 | 4,820 | hpp | C++ | h5cpp/H5Tall.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null | h5cpp/H5Tall.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null | h5cpp/H5Tall.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 vargaconsulting, Toronto,ON Canada
* Author: Varga, Steven <steven@vargaconsulting.ca>
*/
#ifndef H5CPP_TALL_HPP
#define H5CPP_TALL_HPP
namespace h5 {
template<class T> hid_t register_struct(){ return H5I_UNINIT; }
}
/* template specialization from hid_t< .. > type which provides synt... | 46.346154 | 118 | 0.586515 | ChrisDrozdowski |
da69db25860431cdbf826b6ce01d0eb048903918 | 1,287 | cpp | C++ | packrat/lib/x86_64-w64-mingw32/3.6.1/Rcpp/unitTests/cpp/table.cpp | Denia-Vargas-Araya/ApartamentosR | 3e62de9946efb5b6545ce431972f5cc790dae673 | [
"MIT"
] | 113 | 2018-07-12T07:49:33.000Z | 2021-04-16T12:41:53.000Z | packrat/lib/x86_64-w64-mingw32/3.6.1/Rcpp/unitTests/cpp/table.cpp | Denia-Vargas-Araya/ApartamentosR | 3e62de9946efb5b6545ce431972f5cc790dae673 | [
"MIT"
] | 81 | 2018-03-01T18:05:41.000Z | 2020-01-15T18:47:31.000Z | packrat/lib/x86_64-w64-mingw32/3.6.1/Rcpp/unitTests/cpp/table.cpp | Denia-Vargas-Araya/ApartamentosR | 3e62de9946efb5b6545ce431972f5cc790dae673 | [
"MIT"
] | 55 | 2017-05-20T12:42:19.000Z | 2019-03-26T16:38:16.000Z | // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; tab-width: 8 -*-
//
// table.cpp: Rcpp R/C++ interface class library -- table<> unit tests
//
// Copyright (C) 2013 Dirk Eddelbuettel, Romain Francois, and Kevin Ushey
//
// This file is part of Rcpp.
//
// Rcpp is free software: you can redistribute it and/or mod... | 33.868421 | 73 | 0.703186 | Denia-Vargas-Araya |
da6b766145ede47778135c7108608703c2474d4d | 748 | hpp | C++ | include/wtf/policies/has_focus.hpp | ahunter-eyelock/wtf | c232d89cdf9817c28c4c4937300caf117bcb6876 | [
"BSL-1.0"
] | 5 | 2017-05-25T03:41:18.000Z | 2021-06-05T14:04:30.000Z | include/wtf/policies/has_focus.hpp | ahunter-eyelock/wtf | c232d89cdf9817c28c4c4937300caf117bcb6876 | [
"BSL-1.0"
] | null | null | null | include/wtf/policies/has_focus.hpp | ahunter-eyelock/wtf | c232d89cdf9817c28c4c4937300caf117bcb6876 | [
"BSL-1.0"
] | 3 | 2021-03-18T20:40:27.000Z | 2021-04-02T11:46:25.000Z | /** @file
@copyright David Mott (c) 2016. Distributed under the Boost Software License Version 1.0. See LICENSE.md or http://boost.org/LICENSE_1_0.txt for details.
*/
#pragma once
#define DOXY_INHERIT_HAS_FOCUS
namespace wtf{
namespace policy{
/** @class has_focus
@brief Provides set_focus and got_focus
... | 27.703704 | 153 | 0.679144 | ahunter-eyelock |
da6ef791e8c410c1681259e16e2b75dec4b5264c | 10,325 | hpp | C++ | functions.hpp | lorycontixd/PNS | 23f61833ae75a2425d05ca9757ef471aec930654 | [
"MIT"
] | null | null | null | functions.hpp | lorycontixd/PNS | 23f61833ae75a2425d05ca9757ef471aec930654 | [
"MIT"
] | null | null | null | functions.hpp | lorycontixd/PNS | 23f61833ae75a2425d05ca9757ef471aec930654 | [
"MIT"
] | null | null | null | #ifndef __FUNCTIONS_HPP__
#define __FUNCTIONS_HPP__
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <set>
#include <algorithm>
#include <filesystem>
#include <numeric>
#include <cmath>
#include <vector>
#include <sys/stat.h>
#include "ini_reader.hpp"
#if __cplusp... | 32.265625 | 122 | 0.531719 | lorycontixd |
da765bf582556d6392fd70776cbe7fd61cd980b0 | 2,545 | cpp | C++ | src/ui/stores/qplayer_rank.cpp | svendcsvendsen/judoassistant | 453211bff86d940c2b2de6f9eea2aabcdab830fa | [
"MIT"
] | 3 | 2019-04-26T17:48:24.000Z | 2021-11-08T20:21:51.000Z | src/ui/stores/qplayer_rank.cpp | svendcsvendsen/judoassistant | 453211bff86d940c2b2de6f9eea2aabcdab830fa | [
"MIT"
] | 90 | 2019-04-25T17:23:10.000Z | 2022-02-12T19:49:55.000Z | src/ui/stores/qplayer_rank.cpp | judoassistant/judoassistant | 3b200d3e35d9aff16ba224e6071ee9d888a5a03c | [
"MIT"
] | null | null | null | #include "ui/stores/qplayer_rank.hpp"
std::vector<QString> QPlayerRank::strings() const {
switch (mValue) {
case KYU_6: return {tr("6th kyu"), tr("6. kyu"), tr("white"), tr("6 kyu")};
case KYU_5: return {tr("5th kyu"), tr("5. kyu"), tr("yellow"), tr("5 kyu")};
case KYU_4: return {tr("5th ky... | 41.721311 | 84 | 0.532417 | svendcsvendsen |
da784bcc1dd515f021e18bb856749093194c4d30 | 2,675 | cpp | C++ | dbms/src/AggregateFunctions/AggregateFunctionBitwise.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/AggregateFunctions/AggregateFunctionBitwise.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/AggregateFunctions/AggregateFunctionBitwise.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, Ltd.
//
// 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 i... | 43.145161 | 149 | 0.771589 | solotzg |
da7a96d1e41616858a42a6325bcf59325b52bc38 | 129 | hpp | C++ | dependencies/glm/gtx/string_cast.hpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/gtx/string_cast.hpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/glm/gtx/string_cast.hpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:aa5b82c1ae1426ef3e1db052e6372de0205b816a82ca1571604f565df8c4a55c
size 1286
| 32.25 | 75 | 0.883721 | realtehcman |
da7bbb45fd53c4163ebf9ea57ec06f95a34e6713 | 147 | cpp | C++ | Project1/Src/Object.cpp | yokamonian/Onepiece_Shooting_Game | a21605342e1cf79910b7a7d7c43af3fb18fde723 | [
"Unlicense"
] | null | null | null | Project1/Src/Object.cpp | yokamonian/Onepiece_Shooting_Game | a21605342e1cf79910b7a7d7c43af3fb18fde723 | [
"Unlicense"
] | null | null | null | Project1/Src/Object.cpp | yokamonian/Onepiece_Shooting_Game | a21605342e1cf79910b7a7d7c43af3fb18fde723 | [
"Unlicense"
] | null | null | null | #include "Object.h"
HRESULT Object::Init()
{
return S_OK;
}
void Object::Update()
{
}
void Object::Release()
{
}
void Object::Render()
{
}
| 6.681818 | 22 | 0.612245 | yokamonian |
da80f34b45079aa6187fb8433d36568e8b4a0af7 | 6,636 | cpp | C++ | LibSharpPhysX/Generated/PxFiltering.cpp | Alan-FGR/SharpPhysX | 9b6b49d34c94e2fd165ff50795ae36b32149751b | [
"MIT"
] | 23 | 2019-03-17T17:35:06.000Z | 2022-01-12T01:54:43.000Z | LibSharpPhysX/Generated/PxFiltering.cpp | Alan-FGR/SharpPhysX | 9b6b49d34c94e2fd165ff50795ae36b32149751b | [
"MIT"
] | 1 | 2019-05-10T22:14:33.000Z | 2019-05-10T22:48:29.000Z | LibSharpPhysX/Generated/PxFiltering.cpp | Alan-FGR/SharpPhysX | 9b6b49d34c94e2fd165ff50795ae36b32149751b | [
"MIT"
] | 5 | 2019-03-17T17:36:03.000Z | 2021-08-06T06:42:58.000Z | // Generated by minBND 5.1.94.90 - © github.com/Alan-FGR
ES PxPairFlagsPtr PxPairFlagsPtr_operator_Ptr_Pipe_PxPairFlag_PxPairFlag_(physx::PxPairFlag::Enum wrp_a, physx::PxPairFlag::Enum wrp_b){
auto ret = ::physx::operator|(wrp_a, wrp_b);
auto heap = new char[sizeof PxPairFlags];
std::memcpy(heap, &ret, si... | 50.272727 | 501 | 0.795961 | Alan-FGR |
da85f4026964f9d9d947e89e3a3db18e2007d68d | 1,443 | hpp | C++ | Network_Library_Windows/Header_Files/CNetworkLib.hpp | SebastienKeroack/MyEA | 5130056735199595c28c274cf67e7addb280aabc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | Network_Library_Windows/Header_Files/CNetworkLib.hpp | SebastienKeroack/MyEA | 5130056735199595c28c274cf67e7addb280aabc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | Network_Library_Windows/Header_Files/CNetworkLib.hpp | SebastienKeroack/MyEA | 5130056735199595c28c274cf67e7addb280aabc | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* Copyright 2020 Sébastien Kéroack. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | 40.083333 | 100 | 0.593902 | SebastienKeroack |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.