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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abc0e4c7822144d62731879aadfd05722dc26df4 | 1,522 | cc | C++ | chrome/updater/app/app.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/updater/app/app.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/updater/app/app.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/updater/app/app.h"
#include <utility>
#include "base/bind.h"
#include "base/callback.h"
#include "base/message_loop/message_pump_type.h... | 26.701754 | 79 | 0.721419 | sarang-apps |
abc22ac2eb9ffd59dcfe49ab824e9b5c86288107 | 2,386 | cpp | C++ | tests/ImageViewIterator_test.cpp | alexanderbelous/imageview | 817e92ac1dcbffc7fb0ebb11afe4ee9836f37df0 | [
"MIT"
] | null | null | null | tests/ImageViewIterator_test.cpp | alexanderbelous/imageview | 817e92ac1dcbffc7fb0ebb11afe4ee9836f37df0 | [
"MIT"
] | null | null | null | tests/ImageViewIterator_test.cpp | alexanderbelous/imageview | 817e92ac1dcbffc7fb0ebb11afe4ee9836f37df0 | [
"MIT"
] | null | null | null | #include <imageview/internal/ImageViewIterator.h>
#include <imageview/pixel_formats/PixelFormatRGB24.h>
#include <gtest/gtest.h>
namespace imageview {
namespace {
// Sample flat image used in several tests.
constexpr std::size_t kSampleNumPixels = 6;
constexpr std::array<std::byte, kSampleNumPixels * PixelFormatRGB2... | 37.873016 | 106 | 0.723806 | alexanderbelous |
abc295e794bf9c5aa4bb1221c5380463a68eda1a | 608 | cpp | C++ | src/massive8/main.cpp | Danila18/unit-homework | 64e864f991abcf2c8ef566bdc493b59522dfea11 | [
"BSD-3-Clause"
] | null | null | null | src/massive8/main.cpp | Danila18/unit-homework | 64e864f991abcf2c8ef566bdc493b59522dfea11 | [
"BSD-3-Clause"
] | null | null | null | src/massive8/main.cpp | Danila18/unit-homework | 64e864f991abcf2c8ef566bdc493b59522dfea11 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <iomanip>
using namespace std;
int main() {
int i, n, a; // Шеренга
cout << "количество учеников = ";
cin >> n;
cout << "рост Пети = ";
cin >> a;
int *arr = new int [n];
for (i = 0; i < n; i++)
{
cout << "рост ученика[" << i << "]= ";
... | 25.333333 | 111 | 0.391447 | Danila18 |
abc5441b74f514ebcb7730bde1d668759db582ec | 634 | hpp | C++ | include/euclidean2/object/projectile.hpp | Euclidean-Entertainment/Assignment_2 | 04a855f3cec41c9046340b3248d32e5acb94c221 | [
"BSD-3-Clause"
] | 1 | 2018-05-03T03:57:29.000Z | 2018-05-03T03:57:29.000Z | include/euclidean2/object/projectile.hpp | Euclidean-Entertainment/Assignment_2 | 04a855f3cec41c9046340b3248d32e5acb94c221 | [
"BSD-3-Clause"
] | 1 | 2018-05-04T14:17:53.000Z | 2018-05-04T14:17:53.000Z | include/euclidean2/object/projectile.hpp | Euclidean-Entertainment/Assignment_2 | 04a855f3cec41c9046340b3248d32e5acb94c221 | [
"BSD-3-Clause"
] | 2 | 2018-05-03T03:57:32.000Z | 2018-05-20T12:01:55.000Z | /**
* Projectiles
*/
#ifndef _PROJECTILE_HPP_INCLUDED_
#define _PROJECTILE_HPP_INCLUDED_
#include "euclidean2/math/vec3.hpp"
//extern
static constexpr float GRAVITY = -9.8f;
struct projectile_t
{
vec3_t position;
vec3_t velocity;
material_t mat;
};
/**
* Create a projectile
*/
void projectile_... | 11.527273 | 96 | 0.689274 | Euclidean-Entertainment |
abc547430175b3e41f19d0b63a5d6bb45e08fe91 | 328,380 | cpp | C++ | src/blas/blas_loader.cpp | cdgarland/oneMKL | b1b8dc1072224afc254836d7b6150e3ef4b9eba5 | [
"Apache-2.0"
] | 1 | 2020-10-13T22:29:38.000Z | 2020-10-13T22:29:38.000Z | src/blas/blas_loader.cpp | cdgarland/oneMKL | b1b8dc1072224afc254836d7b6150e3ef4b9eba5 | [
"Apache-2.0"
] | null | null | null | src/blas/blas_loader.cpp | cdgarland/oneMKL | b1b8dc1072224afc254836d7b6150e3ef4b9eba5 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2020 Intel Corporation
*
* 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/l... | 62.346687 | 100 | 0.587061 | cdgarland |
abca03d3c0b2981e896b543279a34d92352a6a33 | 243 | hpp | C++ | futurehead/futurehead_node/daemon.hpp | futureheadgroup/futurehead-node | 9995fb99462c77b07a880763cbb162a41279a5da | [
"BSD-3-Clause"
] | 2 | 2021-04-15T03:09:48.000Z | 2021-05-09T13:44:48.000Z | futurehead/futurehead_node/daemon.hpp | FutureHeadCoin/futurehead-node | 3871da56c478144b79cb12d43813f49ad280f6d4 | [
"BSD-3-Clause"
] | null | null | null | futurehead/futurehead_node/daemon.hpp | FutureHeadCoin/futurehead-node | 3871da56c478144b79cb12d43813f49ad280f6d4 | [
"BSD-3-Clause"
] | null | null | null | namespace boost
{
namespace filesystem
{
class path;
}
}
namespace futurehead
{
class node_flags;
}
namespace futurehead_daemon
{
class daemon
{
public:
void run (boost::filesystem::path const &, futurehead::node_flags const & flags);
};
}
| 11.571429 | 82 | 0.740741 | futureheadgroup |
abca30c7ebde7214225f6204ba11aab5512f6649 | 1,009 | cpp | C++ | CCF/CCSP/2018/5-malloc/utils.cpp | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | 1 | 2019-05-04T10:28:32.000Z | 2019-05-04T10:28:32.000Z | CCF/CCSP/2018/5-malloc/utils.cpp | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | null | null | null | CCF/CCSP/2018/5-malloc/utils.cpp | cnsteven/online-judge | 60ee841a97e2bc0dc9c7b23fe5daa186898ab8b7 | [
"MIT"
] | 3 | 2020-12-31T04:36:38.000Z | 2021-07-25T07:39:31.000Z | #include "utils.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
static char* mem_start_brk;
static char* mem_brk;
static char* mem_max_addr;
void mem_init() {
if ((mem_start_brk = (char*)malloc(MAX_HEAP)) == NULL) {
fprintf(stderr, "mem_init error\n");... | 19.784314 | 74 | 0.624381 | cnsteven |
abca50600a5a77cb7d8a78505189dbed98ee493f | 457 | cpp | C++ | Train/Sheet/Sheet-A/base/Sheet-A 0-20/11-20/17-Nearly Lucky Number.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Train/Sheet/Sheet-A/base/Sheet-A 0-20/11-20/17-Nearly Lucky Number.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Train/Sheet/Sheet-A/base/Sheet-A 0-20/11-20/17-Nearly Lucky Number.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#include <vector>
#include <algorithm>
#include <string.h>
#include <array>
#include <iterator>
#define pb push_back
#define up upper_bound
#define lp lower_bound
using namespace std;
int main() {
int cnt = 0;
string inp;
cin>>inp;
for (int i = 0 , s = inp.size() ; i < s; ++i... | 16.925926 | 46 | 0.599562 | mohamedGamalAbuGalala |
abcd8c69fe75f35c086ed74df3916557179a05dd | 4,827 | cpp | C++ | Sandbox/src/Sandbox2D.cpp | davidliljefors/Hazel | 1467f1c20ba46bdfe943d72a75b6d86bca1c2a66 | [
"Apache-2.0"
] | 1 | 2020-09-27T09:22:33.000Z | 2020-09-27T09:22:33.000Z | Sandbox/src/Sandbox2D.cpp | davidliljefors/Hazel | 1467f1c20ba46bdfe943d72a75b6d86bca1c2a66 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/Sandbox2D.cpp | davidliljefors/Hazel | 1467f1c20ba46bdfe943d72a75b6d86bca1c2a66 | [
"Apache-2.0"
] | null | null | null | #include "Sandbox2D.h"
#include "imgui/imgui.h"
#include <glm/gtc/type_ptr.hpp>
#include<sstream>
Hazel::Ref<Hazel::Texture2D> logo;
float frametime = 1.f;
Sandbox2D::Sandbox2D()
: Layer("Sandbox2D"), m_CameraController(1280.f / 720.f)
{
}
void Sandbox2D::OnAttach()
{
HZ_PROFILE_FUNCTION();
m_CheckerTexture =... | 31.141935 | 170 | 0.719495 | davidliljefors |
abce15ee2eb1be128394fb486457f5250b5a8993 | 579 | cpp | C++ | C++/0406-Queue-Reconstruction-By-Height/soln.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/0406-Queue-Reconstruction-By-Height/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/0406-Queue-Reconstruction-By-Height/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | auto desyncio = []()
{
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
return nullptr;
}();
// ALG: sort
//
bool mySort(pair<int,int> a, pair<int,int> b){
if(a.first != b.first) return a.first > b.first;
return a.second < b.second;
}
class Solution {
public:
vector<pair<int, int>> r... | 20.678571 | 77 | 0.561313 | wyaadarsh |
abce765833e3622126dd06720bc68f7121d15d5d | 3,344 | cpp | C++ | src/synth/SubstractiveSynthParams.cpp | MacFurax/ofxPDSPTools | a2c7af9035d771287abc9414cfadd299e9a8dd41 | [
"MIT"
] | 12 | 2019-09-17T15:43:50.000Z | 2021-07-20T09:46:44.000Z | src/synth/SubstractiveSynthParams.cpp | MacFurax/ofxPDSPTools | a2c7af9035d771287abc9414cfadd299e9a8dd41 | [
"MIT"
] | null | null | null | src/synth/SubstractiveSynthParams.cpp | MacFurax/ofxPDSPTools | a2c7af9035d771287abc9414cfadd299e9a8dd41 | [
"MIT"
] | null | null | null | #include "SubstractiveSynthParams.h"
SubstractiveSynthParams::SubstractiveSynthParams() : PatchParams()
{
//AddParam("SYNTH.Filter Type", 0, {"LowPass", "BandPass", "HighPass", "Notch"});
//AddParam("SYNTH.Filter Cutoff", 180.0f, 0.0f, 180.0f, 100.f); // because filter type is default to LowPass, set cutoff on ... | 41.8 | 151 | 0.627392 | MacFurax |
abce85024e6c439f2c060e161dd6eba26f25424c | 921 | hpp | C++ | include/muse_smc/sampling/normal.hpp | wuyou33/muse_smc | 1dd2c2f2657f7440dfd071f2fb974f429fea5de3 | [
"BSD-3-Clause"
] | 1 | 2019-11-07T02:02:08.000Z | 2019-11-07T02:02:08.000Z | include/muse_smc/sampling/normal.hpp | wuyou33/muse_smc | 1dd2c2f2657f7440dfd071f2fb974f429fea5de3 | [
"BSD-3-Clause"
] | null | null | null | include/muse_smc/sampling/normal.hpp | wuyou33/muse_smc | 1dd2c2f2657f7440dfd071f2fb974f429fea5de3 | [
"BSD-3-Clause"
] | null | null | null | #ifndef NORMAL_HPP
#define NORMAL_HPP
#include <memory>
#include <vector>
#include <map>
#include <muse_smc/samples/sample_set.hpp>
namespace muse_smc {
template<typename state_space_description_t>
class NormalSampling
{
public:
using Ptr = std::shared_ptr<NormalSampling>;
using sample_t = typen... | 26.314286 | 74 | 0.676439 | wuyou33 |
abd07f05e6c77b74fce9a618542642fa503989d8 | 1,817 | cpp | C++ | LightOJ/RealLifeTraffic.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | LightOJ/RealLifeTraffic.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | LightOJ/RealLifeTraffic.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<vector>
#include<iostream>
#include<algorithm>
#include<map>
#define getMin(a,b) ((a<b)?(a):(b))
#define getMax(a,b) ((a>b)?(a):(b))
#define MAX 100009
using namespace std;
typedef pair<int,int> pn;
vector<int>edge[MAX];
int dc,n,m;
int disTime[MAX+7],level[MAX+7],degree[MAX... | 18.353535 | 61 | 0.4612 | sourav025 |
abd37b2861264413aab60f209147cc454baf62d1 | 4,202 | cpp | C++ | DT3LevelEditor/Scripting/EdLevelGroup.cpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2018-10-05T15:03:27.000Z | 2019-03-19T11:01:56.000Z | DT3LevelEditor/Scripting/EdLevelGroup.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3LevelEditor/Scripting/EdLevelGroup.cpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | //==============================================================================
///
/// File: EdLevelGroup.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part of t... | 33.616 | 131 | 0.485721 | 9heart |
abd640ea279444956abe1c9c3fd24355d870c751 | 1,365 | hpp | C++ | third_party/boost/simd/function/if_else.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/if_else.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/if_else.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | //==================================================================================================
/*!
@file
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//============================... | 25.277778 | 100 | 0.607326 | xmar |
abd7ba14696f07a75a41a63d4bf210569f958323 | 44,017 | cpp | C++ | jni/application/Game_State.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Game_State.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | jni/application/Game_State.cpp | clarkdonald/eecs494game4 | c5101b4bbf7f620c3490dcfb88f5e72260ef8fa2 | [
"BSD-2-Clause"
] | null | null | null | //
// Game_State.cpp
// game
//
// Created by Donald Clark on 11/9/13.
//
//
#include "Game_State.h"
#include "Utility.h"
#include "Atmosphere.h"
#include "Atmosphere_Factory.h"
#include "Environment.h"
#include "Environment_Factory.h"
#include "Terrain.h"
#include "Terrain_Factory.h"
#include "Npc.h"
#include "Npc... | 33.320969 | 193 | 0.61399 | clarkdonald |
abdd686f7d8d35957fde23c4da041614817b9fec | 12,187 | cc | C++ | tools/android/forwarder2/host_controllers_manager.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/android/forwarder2/host_controllers_manager.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/android/forwarder2/host_controllers_manager.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "tools/android/forwarder2/host_controllers_manager.h"
#include "base/bind.h"
#include "base/process/launch.h"
#include "base/strings/string_spli... | 38.323899 | 79 | 0.661278 | sarang-apps |
abddbf88cbc45e029b00c0f6619d31e09e8e16fc | 1,953 | cpp | C++ | classes/misc/binary.cpp | Patriccollu/smooth | 8673d4702c55b1008bbcabddf7907da0e50505e4 | [
"Artistic-2.0"
] | 24 | 2017-08-22T15:55:34.000Z | 2022-03-06T11:41:31.000Z | classes/misc/binary.cpp | Patriccollu/smooth | 8673d4702c55b1008bbcabddf7907da0e50505e4 | [
"Artistic-2.0"
] | 6 | 2018-07-21T12:17:55.000Z | 2021-08-12T11:27:27.000Z | classes/misc/binary.cpp | Patriccollu/smooth | 8673d4702c55b1008bbcabddf7907da0e50505e4 | [
"Artistic-2.0"
] | 9 | 2017-09-13T02:32:18.000Z | 2022-03-06T11:41:32.000Z | /* The smooth Class Library
* Copyright (C) 1998-2014 Robert Kausch <robert.kausch@gmx.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of "The Artistic License, Version 2.0".
*
* THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRA... | 19.928571 | 98 | 0.623144 | Patriccollu |
abe04c7b26e26e2e590f181e44cffbf5863336e9 | 4,815 | cpp | C++ | src/globals/tests/dbio_test.cpp | zakimjz/GPU_graph_mining | 22ba73bea97533ed6b2af613bd263ef4d869e71a | [
"Apache-2.0"
] | 2 | 2020-05-13T09:09:50.000Z | 2021-07-16T12:51:53.000Z | src/globals/tests/dbio_test.cpp | zakimjz/GPU_graph_mining | 22ba73bea97533ed6b2af613bd263ef4d869e71a | [
"Apache-2.0"
] | null | null | null | src/globals/tests/dbio_test.cpp | zakimjz/GPU_graph_mining | 22ba73bea97533ed6b2af613bd263ef4d869e71a | [
"Apache-2.0"
] | 1 | 2022-03-22T01:15:33.000Z | 2022-03-22T01:15:33.000Z | #include <dfs_code.hpp>
#include <string>
#include <gtest/gtest.h>
#include <stdexcept>
#include <dbio.hpp>
#include <logger.hpp>
#include <cuda_graph_types.hpp>
using std::string;
using std::runtime_error;
using types::DFS;
using namespace dbio;
types::graph_database_t get_test_database()
{
std::string pbec_prefi... | 33.908451 | 125 | 0.591277 | zakimjz |
abe1f724699e3f979362f2000179d30fc9aaece0 | 5,420 | cpp | C++ | examples/xtd.forms.examples/components/radio_button_renderer/src/radio_button_renderer.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | examples/xtd.forms.examples/components/radio_button_renderer/src/radio_button_renderer.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | examples/xtd.forms.examples/components/radio_button_renderer/src/radio_button_renderer.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #include <xtd/xtd>
using namespace std;
using namespace xtd;
using namespace xtd::drawing;
using namespace xtd::forms;
namespace examples {
class form1 : public form {
public:
form1() {
text("Radio button renderer example");
client_size({500, 300});
set_color(color::blue);
set_color(nu... | 56.458333 | 319 | 0.701292 | BaderEddineOuaich |
abe3557ffb78bd28ddbae9e36407852abb78f347 | 1,070 | cc | C++ | chrome/browser/ui/webui/settings/settings_page_ui_handler.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 1 | 2020-09-15T08:43:34.000Z | 2020-09-15T08:43:34.000Z | chrome/browser/ui/webui/settings/settings_page_ui_handler.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/webui/settings/settings_page_ui_handler.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
#include "content/public/browser/web_ui.h"
namespace settings {
SettingsPageUIHa... | 33.4375 | 73 | 0.737383 | maidiHaitai |
abe547e44fd5f90e8a596ba42546dc5ab6683458 | 689 | cpp | C++ | cerberus/GeneratedFiles/qrc_cerberus.cpp | gA4ss/cerberus | 0023dba54a27e6f87acb9dfec9b5fcda0e611bbf | [
"MIT"
] | 7 | 2020-08-17T09:09:53.000Z | 2022-02-02T07:23:57.000Z | cerberus/GeneratedFiles/qrc_cerberus.cpp | gA4ss/cerberus | 0023dba54a27e6f87acb9dfec9b5fcda0e611bbf | [
"MIT"
] | null | null | null | cerberus/GeneratedFiles/qrc_cerberus.cpp | gA4ss/cerberus | 0023dba54a27e6f87acb9dfec9b5fcda0e611bbf | [
"MIT"
] | 7 | 2020-08-17T09:09:55.000Z | 2021-09-24T03:49:36.000Z | /****************************************************************************
** Resource object code
**
** Created: Mon Feb 13 11:53:47 2012
** by: The Resource Compiler for Qt version 4.7.0
**
** WARNING! All changes made in this file will be lost!
****************************************************************... | 22.225806 | 78 | 0.597968 | gA4ss |
abe5e6e76216b8146499aacefd06df6cda681624 | 18,274 | hpp | C++ | include/feature_brex.hpp | dsbrown1331/brex_gridworld_cpp | 15c36c703cf8b874d9bd7f87e426338af23781cd | [
"MIT"
] | 1 | 2020-05-22T14:04:50.000Z | 2020-05-22T14:04:50.000Z | include/feature_brex.hpp | dsbrown1331/safe-imitation-learning | dc4f40a7f51f4ff98994371d6aa026ec8181557a | [
"MIT"
] | null | null | null | include/feature_brex.hpp | dsbrown1331/safe-imitation-learning | dc4f40a7f51f4ff98994371d6aa026ec8181557a | [
"MIT"
] | null | null | null |
#ifndef feature_brex_h
#define feature_brex_h
#include <cmath>
#include <stdlib.h>
#include <vector>
#include <numeric>
#include <math.h>
#include "mdp.hpp"
#include "../include/unit_norm_sampling.hpp"
using namespace std;
class FeatureBREX { // B-REX with known features
protected:
double r_m... | 36.114625 | 346 | 0.611306 | dsbrown1331 |
abe7f3ad7b2d8aa10aa5dac919ed75796d215c6b | 649 | hpp | C++ | include/armadillo_bits/glue_conv_bones.hpp | ArashMassoudieh/GIFMod_ | 1fa9eda21fab870fc3baf56462f79eb800d5154f | [
"MIT"
] | 5 | 2017-11-20T19:32:27.000Z | 2018-08-28T06:08:45.000Z | include/armadillo_bits/glue_conv_bones.hpp | ArashMassoudieh/GIFMod_ | 1fa9eda21fab870fc3baf56462f79eb800d5154f | [
"MIT"
] | 1 | 2017-07-04T05:40:30.000Z | 2017-07-04T05:43:37.000Z | include/armadillo_bits/glue_conv_bones.hpp | ArashMassoudieh/GIFMod_ | 1fa9eda21fab870fc3baf56462f79eb800d5154f | [
"MIT"
] | 2 | 2017-11-09T22:00:45.000Z | 2018-08-30T10:56:08.000Z | // Copyright (C) 2010-2015 Conrad Sanderson
// Copyright (C) 2010-2015 NICTA (www.nicta.com.au)
//
// 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/.
//! \addtogroup... | 23.178571 | 128 | 0.684129 | ArashMassoudieh |
abe8932ed04afd54599641d77234d3e3c36ae565 | 148 | cpp | C++ | src/blockchain/Chain.cpp | perriera/blockchain | 2c89ecc110dcc9c042bdb919c7cf3017a43d4ce8 | [
"MIT"
] | null | null | null | src/blockchain/Chain.cpp | perriera/blockchain | 2c89ecc110dcc9c042bdb919c7cf3017a43d4ce8 | [
"MIT"
] | null | null | null | src/blockchain/Chain.cpp | perriera/blockchain | 2c89ecc110dcc9c042bdb919c7cf3017a43d4ce8 | [
"MIT"
] | null | null | null | #include "../../include/blockchain/Chain.hpp"
#include <iostream>
using namespace std;
string Chain::say_hello() const { return "Hello, world"; }
| 21.142857 | 58 | 0.709459 | perriera |
abea15dbeb4a2eca53e18bb902262f62ecbde7c1 | 2,785 | cpp | C++ | src/CText.cpp | Fabio3rs/COFF-to-GTAScript-Helper | dc606372c48dd4f50ac822b77b71d5c0ea765544 | [
"MIT"
] | null | null | null | src/CText.cpp | Fabio3rs/COFF-to-GTAScript-Helper | dc606372c48dd4f50ac822b77b71d5c0ea765544 | [
"MIT"
] | null | null | null | src/CText.cpp | Fabio3rs/COFF-to-GTAScript-Helper | dc606372c48dd4f50ac822b77b71d5c0ea765544 | [
"MIT"
] | null | null | null | /*
Config parser originally write to Guitar++ https://github.com/Fabio3rs/Guitar-PlusPlus
Write by Fabio3rs - https://github.com/Fabio3rs
*/
#include "CText.h"
#include <cctype>
#include <iostream>
void CText::Parse(){
if(fileName.length() == 0){
return;
}
if(is_open()){
file.close();
}
... | 20.328467 | 87 | 0.578456 | Fabio3rs |
abecd1613f885db5ef555b4c4ef175aa571c8427 | 3,195 | cpp | C++ | isode++/code/iso/itu/osi/fsmc/cpp/FactoryForCpp.cpp | Kampbell/ISODE | 37f161e65f11348ef6fca2925d399d611df9f31b | [
"Apache-2.0"
] | 3 | 2016-01-18T17:00:00.000Z | 2021-06-25T03:18:13.000Z | isode++/code/iso/itu/osi/fsmc/cpp/FactoryForCpp.cpp | Kampbell/ISODE | 37f161e65f11348ef6fca2925d399d611df9f31b | [
"Apache-2.0"
] | null | null | null | isode++/code/iso/itu/osi/fsmc/cpp/FactoryForCpp.cpp | Kampbell/ISODE | 37f161e65f11348ef6fca2925d399d611df9f31b | [
"Apache-2.0"
] | null | null | null | /*
* FactoryForCpp.cpp
*
* Created on: 20 janv. 2016
* Author: FrancisANDRE
*/
#include "fsmc/cpp/FactoryForCpp.h"
#include "fsmc/cpp/ActionForCpp.h"
#include "fsmc/cpp/FSMForCpp.h"
#include "fsmc/cpp/GuardForCpp.h"
#include "fsmc/cpp/MapForCpp.h"
#include "fsmc/cpp/ParameterForCpp.h"
#include "fsmc/cpp/Sta... | 35.898876 | 93 | 0.723005 | Kampbell |
abedd777ba804ca48cd854ad5697bada7a81b89b | 1,458 | cxx | C++ | Libraries/VspData/vtkVsTrackInfo.cxx | PinkDiamond1/vivia | 70f7fbed4b33b14d34de35c69b2b14df3514d720 | [
"BSD-3-Clause"
] | 14 | 2016-09-16T12:33:05.000Z | 2021-02-14T02:16:33.000Z | Libraries/VspData/vtkVsTrackInfo.cxx | PinkDiamond1/vivia | 70f7fbed4b33b14d34de35c69b2b14df3514d720 | [
"BSD-3-Clause"
] | 44 | 2016-10-06T22:12:57.000Z | 2021-01-07T19:39:07.000Z | Libraries/VspData/vtkVsTrackInfo.cxx | PinkDiamond1/vivia | 70f7fbed4b33b14d34de35c69b2b14df3514d720 | [
"BSD-3-Clause"
] | 17 | 2015-06-30T13:41:47.000Z | 2021-11-22T17:38:48.000Z | // This file is part of ViViA, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/vivia/blob/master/LICENSE for details.
#include "vtkVsTrackInfo.h"
vtkImplementMetaObject(vtkVsTrackInfo, vtkVgEventTrackInfoBase);
//-------------------------... | 30.375 | 79 | 0.542524 | PinkDiamond1 |
743970192dbe7ca1635dd25fdfaed1663a92f945 | 750 | cpp | C++ | mpi/cxx/other/type_matching.cpp | dmitrygx/HPCInfo | a41f701cc5a8f8b48b71967bd5b7b4b688856a6e | [
"MIT"
] | 210 | 2015-03-17T21:49:39.000Z | 2022-03-26T14:18:19.000Z | mpi/cxx/other/type_matching.cpp | dmitrygx/HPCInfo | a41f701cc5a8f8b48b71967bd5b7b4b688856a6e | [
"MIT"
] | 7 | 2015-12-13T05:06:47.000Z | 2020-11-11T02:16:00.000Z | mpi/cxx/other/type_matching.cpp | dmitrygx/HPCInfo | a41f701cc5a8f8b48b71967bd5b7b4b688856a6e | [
"MIT"
] | 55 | 2015-03-24T05:19:30.000Z | 2022-03-19T23:44:28.000Z | #include <iostream>
#include <climits>
#include <cstdint>
class Foo
{
public:
//Foo(int i) { std::cout << "Foo(I=" << i << ")" << std::endl; }
Foo(long i) { std::cout << "Foo(L=" << i << ")" << std::endl; }
//Foo(long long i) { std::cout << "Foo(LL=" << i << ")" << std::endl; }
Foo(... | 26.785714 | 89 | 0.445333 | dmitrygx |
743a8842b3091b531819bf40c8a6e9a0a86fd7a7 | 44 | cpp | C++ | engine/src/wolf.system/wolf.cpp | SiminBadri/Wolf.Engine | 3da04471ec26e162e1cbb7cc88c7ce37ee32c954 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | 1 | 2020-07-15T13:14:26.000Z | 2020-07-15T13:14:26.000Z | engine/src/wolf.system/wolf.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | engine/src/wolf.system/wolf.cpp | foroughmajidi/Wolf.Engine | f08a8cbd519ca2c70b1c8325250dc9af7ac4c498 | [
"BSL-1.0",
"Apache-2.0",
"libpng-2.0"
] | null | null | null | #include "w_system_pch.h"
#include "wolf.h"
| 14.666667 | 25 | 0.727273 | SiminBadri |
743b4c50eaed31f885e75d5392de88ffc68400d3 | 25,971 | cpp | C++ | test/src/json/json_serialize_test.cpp | emseers/eelbot-framework | f5fec8357df2edcbd0bd2f8acfc86983970adbba | [
"MIT"
] | 2 | 2020-06-14T03:39:45.000Z | 2020-08-30T00:24:47.000Z | test/src/json/json_serialize_test.cpp | Emseers/eelbot-framework | f5fec8357df2edcbd0bd2f8acfc86983970adbba | [
"MIT"
] | 1 | 2021-04-30T03:18:54.000Z | 2021-05-10T01:56:53.000Z | test/src/json/json_serialize_test.cpp | emseers/eelbot-framework | f5fec8357df2edcbd0bd2f8acfc86983970adbba | [
"MIT"
] | null | null | null | // Part of the Eelbot Framework project, under the MIT License.
// Copyright (c) 2020 The Emseers.
#include "catch2/catch_test_macros.hpp"
#include "eelbot_framework/discord_bot/structs.hpp"
#include "eelbot_framework/json.hpp"
TEST_CASE("discord_bot::session_start_limit can be serialized to JSON", "[unit-test][json]... | 42.092382 | 117 | 0.675754 | emseers |
743b9ca0eac07bbe1eaf42155ed18fdd7bf5f912 | 15,507 | cxx | C++ | panda/src/glstuff/glmisc_src.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | panda/src/glstuff/glmisc_src.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | panda/src/glstuff/glmisc_src.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: glmisc_src.cxx
// Created by: drose (09Feb04)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should... | 47.567485 | 103 | 0.681499 | kestred |
743be13f0a0a46ceade8ddaae28417c5ca8de768 | 1,777 | cpp | C++ | src/elona/lua_env/api/classes/class_LuaInventory.cpp | nanbansenji/ElonaFoobar | ddbd6639db8698e89f09b2512526e855d8016e46 | [
"MIT"
] | 84 | 2018-03-03T02:44:32.000Z | 2019-07-14T16:16:24.000Z | src/elona/lua_env/api/classes/class_LuaInventory.cpp | ki-foobar/ElonaFoobar | d251cf5bd8c21789db3b56b1c9b1302ce69b2c2e | [
"MIT"
] | 685 | 2018-02-27T04:31:17.000Z | 2019-07-12T13:43:00.000Z | src/elona/lua_env/api/classes/class_LuaInventory.cpp | nanbansenji/ElonaFoobar | ddbd6639db8698e89f09b2512526e855d8016e46 | [
"MIT"
] | 23 | 2019-07-26T08:52:38.000Z | 2021-11-09T09:21:58.000Z | #include <sstream>
#include "../../../inventory.hpp"
#include "../../../position.hpp"
#include "../common.hpp"
LUA_API_OPTOUT_SOL_AUTOMAGIC(elona::Inventory)
/**
* @luadoc
*
* Represents an item inventory, a list of items.
*/
namespace elona::lua::api::classes::class_LuaInventory
{
/**
* @luadoc has_free_s... | 19.527473 | 78 | 0.668542 | nanbansenji |
743bf2d3a89892ad01ec24607e9876f54d1ad44e | 4,482 | cpp | C++ | src/rendering/nodes/GIComposeNode.cpp | Shimmen/ArkoseRenderer | d39e1b3d5f5b669370b8aeed5cd1cfada5216763 | [
"MIT"
] | 7 | 2020-11-02T22:27:27.000Z | 2022-01-11T04:25:48.000Z | src/rendering/nodes/GIComposeNode.cpp | Shimmen/ArkoseRenderer | d39e1b3d5f5b669370b8aeed5cd1cfada5216763 | [
"MIT"
] | null | null | null | src/rendering/nodes/GIComposeNode.cpp | Shimmen/ArkoseRenderer | d39e1b3d5f5b669370b8aeed5cd1cfada5216763 | [
"MIT"
] | 2 | 2020-12-09T03:40:05.000Z | 2021-09-14T03:12:40.000Z | #include "GIComposeNode.h"
#include "SceneNode.h"
#include "geometry/Frustum.h"
#include "utility/Logging.h"
#include "utility/Profiling.h"
#include <imgui.h>
GIComposeNode::GIComposeNode(Scene& scene)
: m_scene(scene)
{
}
RenderPipelineNode::ExecuteCallback GIComposeNode::constructFrame(Registry& reg) const
{
... | 44.82 | 145 | 0.651272 | Shimmen |
743cde608a05bbb3a0bd2a91f9db0abec55c34c4 | 992 | cc | C++ | src/q_251_300/q0258.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 2 | 2021-09-28T18:41:03.000Z | 2021-09-28T18:42:57.000Z | src/q_251_300/q0258.cc | vNaonLu/Daily_LeetCode | 30024b561611d390931cef1b22afd6a5060cf586 | [
"MIT"
] | 16 | 2021-09-26T11:44:20.000Z | 2021-11-28T06:44:02.000Z | src/q_251_300/q0258.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 1 | 2021-11-22T09:11:36.000Z | 2021-11-22T09:11:36.000Z | #include <gtest/gtest.h>
#include <iostream>
using namespace std;
/**
* This file is generated by leetcode_add.py v1.0
*
* 258.
* Add Digits
*
* ––––––––––––––––––––––––––––– Description –––––––––––––––––––––––––––––
*
* Given an integer ‘num’ , repeatedly add all its digits until the
* result has o... | 20.244898 | 74 | 0.543347 | vNaonLu |
743e6fe2ac450c77ff5de332c10e70cb73bd686a | 6,244 | cpp | C++ | projects/Application/source/scenes/PlaygroundScene.cpp | antjowie/Empires | 15023e3b3d3f51dca6af7d477dca0c0a17c6f7cf | [
"MIT"
] | null | null | null | projects/Application/source/scenes/PlaygroundScene.cpp | antjowie/Empires | 15023e3b3d3f51dca6af7d477dca0c0a17c6f7cf | [
"MIT"
] | null | null | null | projects/Application/source/scenes/PlaygroundScene.cpp | antjowie/Empires | 15023e3b3d3f51dca6af7d477dca0c0a17c6f7cf | [
"MIT"
] | null | null | null | #include "scenes/PlaygroundScene.h"
#include "cameras/FreelookCamera.h"
#include "GalaxyGenerator.h"
#include "prngs/xorshf96.h"
#include <algorithm>
void PlaygroundScene::onCreate(const DrawableFactory & drawableFactory)
{
Timer timer;
m_fullscreen = false;
m_fullscreenCooldown = 0.f;
m_lineRenderer.init(400,1.... | 29.314554 | 138 | 0.695067 | antjowie |
743f292987b1a62732867617cc225471d696d782 | 8,738 | cpp | C++ | src/databasetool.cpp | AlvaroIT/qbrew-master | 2f6a98ee99779863d585839d3f254a957ea9fbf6 | [
"BSD-2-Clause"
] | null | null | null | src/databasetool.cpp | AlvaroIT/qbrew-master | 2f6a98ee99779863d585839d3f254a957ea9fbf6 | [
"BSD-2-Clause"
] | null | null | null | src/databasetool.cpp | AlvaroIT/qbrew-master | 2f6a98ee99779863d585839d3f254a957ea9fbf6 | [
"BSD-2-Clause"
] | null | null | null | /***************************************************************************
databasetool.cpp
-------------------
Database editor for QBrew
-------------------
Copyright 2005-2008, David Johnson
Please see the header file for copyright and license information
***********************************************... | 36.869198 | 78 | 0.623369 | AlvaroIT |
7442a187f4ae6f8ca5172a8630cad7c5c8527a1d | 1,321 | cpp | C++ | OrcLevel.cpp | JTuthill01/Nightmare | e4b712e28c228c66a33664418cc176cf527c28c9 | [
"MIT"
] | null | null | null | OrcLevel.cpp | JTuthill01/Nightmare | e4b712e28c228c66a33664418cc176cf527c28c9 | [
"MIT"
] | null | null | null | OrcLevel.cpp | JTuthill01/Nightmare | e4b712e28c228c66a33664418cc176cf527c28c9 | [
"MIT"
] | null | null | null | #include "stdafx.hpp"
#include "OrcLevel.hpp"
OrcLevel::OrcLevel(sf::RenderWindow * window, std::stack<Level*>* level) : Level(window, level)
{
this->initLevel();
this->spawnOrcs();
}
OrcLevel::~OrcLevel()
{
}
void OrcLevel::update(const float & deltaTime)
{
this->pPlayer.update(deltaTime);
t... | 21.306452 | 109 | 0.656321 | JTuthill01 |
7443e2e05eb37e6b4ebc9b39f8855bc08eb65dd1 | 4,644 | cpp | C++ | opticalFlow.cpp | axessta/city3115-contrib | 89859979c9e90133a1037a0c8fffc27bb9cf66e0 | [
"Apache-2.0"
] | null | null | null | opticalFlow.cpp | axessta/city3115-contrib | 89859979c9e90133a1037a0c8fffc27bb9cf66e0 | [
"Apache-2.0"
] | null | null | null | opticalFlow.cpp | axessta/city3115-contrib | 89859979c9e90133a1037a0c8fffc27bb9cf66e0 | [
"Apache-2.0"
] | null | null | null | // opticalFlow.cpp, jake deery, 2020
#include "opticalFlow.h"
opticalFlow::opticalFlow(VideoCapture inputVideo) {
// init - load vars into object
capSource = inputVideo;
// Check for failure
if(capSource.isOpened() == false) {
cout << "[E] Could not open or find the webcam . . . " << "\n";
delete this;
}
... | 23.22 | 94 | 0.626184 | axessta |
7445f5925c64a4bd05bed89c4ad74b42b43f08b2 | 2,993 | cxx | C++ | src/main.cxx | C0MPU73R/tlopo-stats | 7a7c2bfb5c2a1b9888e94ac611ad76da193f9405 | [
"MIT"
] | 1 | 2021-11-08T03:44:13.000Z | 2021-11-08T03:44:13.000Z | src/main.cxx | C0MPU73R/tlopo-stats | 7a7c2bfb5c2a1b9888e94ac611ad76da193f9405 | [
"MIT"
] | null | null | null | src/main.cxx | C0MPU73R/tlopo-stats | 7a7c2bfb5c2a1b9888e94ac611ad76da193f9405 | [
"MIT"
] | null | null | null | #include "collector/eventCollector.h"
#include "avatar/avatarManager.h"
#include "database/database.h"
#include "collector/statCollectorManager.h"
#include "net/rpcServer.h"
#include <iostream>
void usage(const std::string& error = "")
{
std::cerr << "tlopostats [options]" << std::endl;
std::cerr << "options... | 29.058252 | 116 | 0.531908 | C0MPU73R |
744787492330da29e14b648d0d2c2c356dc3f44f | 760 | cpp | C++ | 999_Practice/Day_19/0091_smallest_poitive_missing_number.cpp | Gandham-Srinithya/Data-Structure-and-Algorithms | 177d03105188c83a157947ca9870bf8037e92528 | [
"MIT"
] | 126 | 2019-12-22T17:49:08.000Z | 2021-12-14T18:45:51.000Z | 999_Practice/Day_19/0091_smallest_poitive_missing_number.cpp | Gandham-Srinithya/Data-Structure-and-Algorithms | 177d03105188c83a157947ca9870bf8037e92528 | [
"MIT"
] | 7 | 2019-12-25T18:03:41.000Z | 2021-02-20T06:25:27.000Z | 999_Practice/Day_19/0091_smallest_poitive_missing_number.cpp | Gandham-Srinithya/Data-Structure-and-Algorithms | 177d03105188c83a157947ca9870bf8037e92528 | [
"MIT"
] | 54 | 2019-12-26T06:28:39.000Z | 2022-02-01T05:04:43.000Z | // You are given an array arr[] of N integers including 0. The task is to find the smallest
// positive number missing from the array.
// CONSTRAINS
// 1 <= N <= 10^6
// -10^6 <= Ai <= 10^6
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int arr[n];
for(int i=0; i<n; i++)
... | 14.615385 | 91 | 0.428947 | Gandham-Srinithya |
744819f31e99ee12b580f8c8372d781fa5b2073f | 457 | hpp | C++ | Phoenix3D/Projects/Client/GameX/X_Event.hpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 36 | 2016-04-24T01:40:38.000Z | 2022-01-18T07:32:26.000Z | Phoenix3D/Projects/Client/GameX/X_Event.hpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | null | null | null | Phoenix3D/Projects/Client/GameX/X_Event.hpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 16 | 2016-06-13T08:43:51.000Z | 2020-09-15T13:25:58.000Z | // X_Event.hpp
#ifndef X_EVENT_HPP
#define X_EVENT_HPP
#include "PX2EventSystem.hpp"
#include "PX2EventSpace.hpp"
#include "PX2Event.hpp"
namespace PX2
{
PX2_DECLARE_EVENT_BEGIN(X_EventSpace)
PX2_EVENT(Show_SplashOver)
PX2_EVENT(EnterMap)
PX2_DECLARE_EVENT_END(X_EventSpace)
struct MoveDistData
{
MoveDist... | 11.717949 | 38 | 0.693654 | PheonixFoundation |
744d28368237f5df345626301e874d44808526b8 | 3,174 | cpp | C++ | src/runtime/eval/ast/new_object_expression.cpp | canerdogan/hiphop-php | c1dab3c1e33f03c352de7bd8031d924b6a361ddd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | src/runtime/eval/ast/new_object_expression.cpp | canerdogan/hiphop-php | c1dab3c1e33f03c352de7bd8031d924b6a361ddd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | src/runtime/eval/ast/new_object_expression.cpp | canerdogan/hiphop-php | c1dab3c1e33f03c352de7bd8031d924b6a361ddd | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... | 35.662921 | 79 | 0.523314 | canerdogan |
74506816c242e2cbfa50508d85e196ba8641ff28 | 7,850 | hxx | C++ | Modules/Nonunit/Review/include/itkStochasticFractalDimensionImageFilter.hxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | 3 | 2018-10-01T20:46:17.000Z | 2019-12-17T19:39:50.000Z | Modules/Nonunit/Review/include/itkStochasticFractalDimensionImageFilter.hxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | null | null | null | Modules/Nonunit/Review/include/itkStochasticFractalDimensionImageFilter.hxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | 4 | 2018-05-17T16:34:54.000Z | 2020-09-24T02:12:40.000Z | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* ... | 33.836207 | 111 | 0.623949 | nalinimsingh |
7450919578d9b6172f30fb96c3b6b3fdd3470830 | 1,192 | cpp | C++ | src/test/AuxDataSchemaRegistration.test.cpp | clayne/gtirb | df9bf69537c36136d40fbff98588df37b8c5875f | [
"MIT"
] | 230 | 2018-10-14T11:07:14.000Z | 2022-03-31T21:25:43.000Z | src/test/AuxDataSchemaRegistration.test.cpp | clayne/gtirb | df9bf69537c36136d40fbff98588df37b8c5875f | [
"MIT"
] | 33 | 2018-10-25T15:48:48.000Z | 2022-03-25T03:10:13.000Z | src/test/AuxDataSchemaRegistration.test.cpp | clayne/gtirb | df9bf69537c36136d40fbff98588df37b8c5875f | [
"MIT"
] | 33 | 2018-10-14T11:07:17.000Z | 2022-03-31T16:12:00.000Z | // Note: this file tests schema registration for AuxData. It is
// purposely built as a separate test program so that we can keep the
// type map unlocked. This means, one can write tests that register
// schema, but one should *not* write tests that actually involve
// constructing GTIRB IR.
// Note also: Because sch... | 34.057143 | 76 | 0.762584 | clayne |
7452a8885c674b23ea68fe2bfe00861ef8c9af43 | 2,916 | cpp | C++ | third-party/qthread/qthread-src/test/benchmarks/mantevo/hpccg/mytimer.cpp | jhh67/chapel | f041470e9b88b5fc4914c75aa5a37efcb46aa08f | [
"ECL-2.0",
"Apache-2.0"
] | 1,602 | 2015-01-06T11:26:31.000Z | 2022-03-30T06:17:21.000Z | third-party/qthread/qthread-src/test/benchmarks/mantevo/hpccg/mytimer.cpp | jhh67/chapel | f041470e9b88b5fc4914c75aa5a37efcb46aa08f | [
"ECL-2.0",
"Apache-2.0"
] | 11,789 | 2015-01-05T04:50:15.000Z | 2022-03-31T23:39:19.000Z | third-party/qthread/qthread-src/test/benchmarks/mantevo/hpccg/mytimer.cpp | jhh67/chapel | f041470e9b88b5fc4914c75aa5a37efcb46aa08f | [
"ECL-2.0",
"Apache-2.0"
] | 498 | 2015-01-08T18:58:18.000Z | 2022-03-20T15:37:45.000Z |
//@HEADER
// ************************************************************************
//
// HPCCG: Simple Conjugate Gradient Benchmark Code
// Copyright (2006) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by... | 26.509091 | 78 | 0.608368 | jhh67 |
7452dbf34f38250e6c28d9cf4e057d30ce33af19 | 12,829 | cpp | C++ | tests/src/runtimeApi/synchronization/copy_coherency.cpp | parmance/HIP | 96ee9d1397f02ac4b4badd9243994728f6a89fe5 | [
"MIT"
] | 1,935 | 2017-05-28T04:52:18.000Z | 2022-03-30T23:50:43.000Z | tests/src/runtimeApi/synchronization/copy_coherency.cpp | JCLYHY23/HIP | 6a09344dba91a1a9816cb6bcdcc6d8bc6ea564c3 | [
"MIT"
] | 1,310 | 2017-05-30T22:16:09.000Z | 2022-03-31T08:25:58.000Z | tests/src/runtimeApi/synchronization/copy_coherency.cpp | JCLYHY23/HIP | 6a09344dba91a1a9816cb6bcdcc6d8bc6ea564c3 | [
"MIT"
] | 495 | 2017-06-01T01:26:27.000Z | 2022-03-28T16:36:51.000Z | /*
Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved.
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, ... | 34.579515 | 113 | 0.628342 | parmance |
74532d6ffd32bd2419c23ebb30fa60d76516517c | 16,683 | cpp | C++ | src/CharacterMgr.cpp | CoderRaka/Game-Server | 3b3c5a5492653be682f0bb841aab047c62981237 | [
"MIT"
] | 85 | 2015-02-05T18:28:15.000Z | 2022-02-16T18:29:21.000Z | src/CharacterMgr.cpp | CoderRaka/Game-Server | 3b3c5a5492653be682f0bb841aab047c62981237 | [
"MIT"
] | 8 | 2015-03-10T01:28:22.000Z | 2018-01-19T16:26:57.000Z | src/CharacterMgr.cpp | CoderRaka/Game-Server | 3b3c5a5492653be682f0bb841aab047c62981237 | [
"MIT"
] | 70 | 2015-01-08T16:25:11.000Z | 2021-11-11T19:10:00.000Z | #include"Global.h"
void charMgr_beginCharacterSelection(clientGamemain_t *cgm)
{
pyMarshalString_t pms;
pym_init(&pms);
pym_tuple_begin(&pms);
pym_addUnicode(&pms, (sint8*)"Name"); // familyName // this should be null if hasCharacters is 0
pym_addInt(&pms, 0); // hasCharacters
pym_addInt(&pms, cgm->userID); // u... | 33.70303 | 132 | 0.735599 | CoderRaka |
7455ae178539249381cc24a9a7f492a583791938 | 646 | cpp | C++ | 10.12.2020/Task_2.cpp | andzh1/Advent_of_Code_2020 | a953e0977a6ee44bfcc0df66d50335be62c60cfb | [
"MIT"
] | null | null | null | 10.12.2020/Task_2.cpp | andzh1/Advent_of_Code_2020 | a953e0977a6ee44bfcc0df66d50335be62c60cfb | [
"MIT"
] | null | null | null | 10.12.2020/Task_2.cpp | andzh1/Advent_of_Code_2020 | a953e0977a6ee44bfcc0df66d50335be62c60cfb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
freopen("Puzzle_Input.txt", "r", stdin);
string s;
vector <int> input;
input.push_back(0);
while(cin >> s) input.push_back(stoi(s));
long long answer = 1;
sort(input.begin(), input.end());
for(int i = 0; i < input.size(); i++){
... | 25.84 | 63 | 0.482972 | andzh1 |
745696ff98dbba1745faca706c9d6069f010bb8a | 7,403 | cpp | C++ | src/cascadia/TerminalCore/TerminalApi.cpp | Kapperchino/Terminal | 4c47631bf4aa907aad4f7088bc7edc7e5cde11b9 | [
"MIT"
] | 3 | 2019-05-31T13:51:53.000Z | 2020-05-11T15:01:08.000Z | src/cascadia/TerminalCore/TerminalApi.cpp | Kapperchino/Terminal | 4c47631bf4aa907aad4f7088bc7edc7e5cde11b9 | [
"MIT"
] | 1 | 2019-06-03T20:03:55.000Z | 2019-06-03T20:03:55.000Z | src/cascadia/TerminalCore/TerminalApi.cpp | vstoms/Terminal | 53f5ba294c5f84191dad517593cf6b330ee083c0 | [
"MIT"
] | 1 | 2019-09-15T10:27:17.000Z | 2019-09-15T10:27:17.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "Terminal.hpp"
using namespace Microsoft::Terminal::Core;
using namespace Microsoft::Console::Types;
using namespace Microsoft::Console::VirtualTerminal;
// Print puts the text in the buffer and moves the c... | 29.26087 | 91 | 0.685533 | Kapperchino |
745804fd65413743e46223c1e6d4cd30cbd24b9d | 16,989 | cpp | C++ | src/codegen/compiler/site.cpp | lostdj/avian | 394c5cacce092967d38fccee2f8a9c3b9160cccb | [
"0BSD"
] | null | null | null | src/codegen/compiler/site.cpp | lostdj/avian | 394c5cacce092967d38fccee2f8a9c3b9160cccb | [
"0BSD"
] | null | null | null | src/codegen/compiler/site.cpp | lostdj/avian | 394c5cacce092967d38fccee2f8a9c3b9160cccb | [
"0BSD"
] | null | null | null | /* Copyright (c) 2008-2014, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software. See l... | 24.029703 | 81 | 0.608747 | lostdj |
745b39a581c9e05e896d866408e9fa27a77a7fd3 | 1,832 | cpp | C++ | source/circle.cpp | momenarahmati/programmiersprachen-aufgabenblatt-2 | b1e3725cfb61dcd58e1e22bbe0ed25646f7d068e | [
"MIT"
] | null | null | null | source/circle.cpp | momenarahmati/programmiersprachen-aufgabenblatt-2 | b1e3725cfb61dcd58e1e22bbe0ed25646f7d068e | [
"MIT"
] | null | null | null | source/circle.cpp | momenarahmati/programmiersprachen-aufgabenblatt-2 | b1e3725cfb61dcd58e1e22bbe0ed25646f7d068e | [
"MIT"
] | null | null | null | #include "circle.hpp"
#include <cmath>
#include "color.hpp"
#include "mat2.hpp"
#include "vec2.hpp"
#include "window.hpp"
#define Pi 3.1415926
Circle::Circle() :
center_{ 0.0,0.0 },
radius_{ 1.0 },
color_{ 0,0,0 }
{}
Circle::Circle(Vec2 const& center, float const& radius) :
center_{ center },
radius_{ radius }
{}... | 24.756757 | 94 | 0.644105 | momenarahmati |
746108a2246c09087ec538a341c4a6cb9ff7eea5 | 370 | cpp | C++ | LydiaLabExpPlugins/modeDebug/ModeDebugPluginWidget.cpp | mcoder2014/LydiaLabExpPlugins | b3d33ad8acdbb8bea2d6fe81ca2552cb9e6d0a08 | [
"MIT"
] | 1 | 2020-10-26T09:24:29.000Z | 2020-10-26T09:24:29.000Z | LydiaLabExpPlugins/modeDebug/ModeDebugPluginWidget.cpp | mcoder2014/LydiaLabExpPlugins | b3d33ad8acdbb8bea2d6fe81ca2552cb9e6d0a08 | [
"MIT"
] | null | null | null | LydiaLabExpPlugins/modeDebug/ModeDebugPluginWidget.cpp | mcoder2014/LydiaLabExpPlugins | b3d33ad8acdbb8bea2d6fe81ca2552cb9e6d0a08 | [
"MIT"
] | 1 | 2022-03-06T18:52:28.000Z | 2022-03-06T18:52:28.000Z | #include "ModeDebugPluginWidget.h"
#include "ui_ModeDebugPluginWidget.h"
ModeDebugPluginWidget::ModeDebugPluginWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::ModeDebugPluginWidget)
{
ui->setupUi(this);
}
ModeDebugPluginWidget::~ModeDebugPluginWidget()
{
delete ui;
}
Ui::ModeDebugPluginWidget *... | 18.5 | 63 | 0.748649 | mcoder2014 |
746113cc75ef14c42f8707fe6bf5c04e63d4b149 | 679 | cpp | C++ | qrecthf.cpp | koalakoker/resParser | 263eee6f4660628161ee5e47e9e6bf8f6709b638 | [
"Unlicense"
] | null | null | null | qrecthf.cpp | koalakoker/resParser | 263eee6f4660628161ee5e47e9e6bf8f6709b638 | [
"Unlicense"
] | null | null | null | qrecthf.cpp | koalakoker/resParser | 263eee6f4660628161ee5e47e9e6bf8f6709b638 | [
"Unlicense"
] | null | null | null | #include "qrecthf.h"
QRectHF::QRectHF()
{
}
QRectHF::QRectHF(QPoint topleft, QPoint bottomright) : QRect(topleft,bottomright)
{
m_topHF = hfloat(topleft.y());
m_leftHF = hfloat(topleft.x());
m_bottomHF = hfloat(bottomright.y());
m_rightHF = hfloat(bottomright.x());
}
QRectHF::QRectHF(QRectHF& val) : ... | 16.166667 | 81 | 0.662739 | koalakoker |
746277a9d0db4bb2ade9d2f1defa1e886de10f36 | 4,929 | cpp | C++ | framework/application/xlib_context.cpp | jbmcgee/gfxreconstruct | 54d822176aa0fd3269b7273283b1376cd1bd85b6 | [
"BSD-2-Clause",
"MIT"
] | 175 | 2019-02-22T23:13:03.000Z | 2022-03-15T15:20:25.000Z | framework/application/xlib_context.cpp | jbmcgee/gfxreconstruct | 54d822176aa0fd3269b7273283b1376cd1bd85b6 | [
"BSD-2-Clause",
"MIT"
] | 271 | 2019-02-22T21:04:41.000Z | 2022-03-31T05:22:36.000Z | framework/application/xlib_context.cpp | jbmcgee/gfxreconstruct | 54d822176aa0fd3269b7273283b1376cd1bd85b6 | [
"BSD-2-Clause",
"MIT"
] | 44 | 2019-03-29T22:54:46.000Z | 2022-03-22T21:01:20.000Z | /*
** Copyright (c) 2018 Valve Corporation
** Copyright (c) 2018-2021 LunarG, Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a
** copy of this software and associated documentation files (the "Software"),
** to deal in the Software without restriction, including without limitation
** t... | 31 | 89 | 0.636437 | jbmcgee |
7463b5d92f96ee60aaea7a30bbb667b12e1632b1 | 897 | cpp | C++ | Scr/lab_huffman/src/print_as_ascii.cpp | bo-rc/data_structures | d568b240aff9ceaf5c220684358e32643b8b1864 | [
"MIT"
] | null | null | null | Scr/lab_huffman/src/print_as_ascii.cpp | bo-rc/data_structures | d568b240aff9ceaf5c220684358e32643b8b1864 | [
"MIT"
] | null | null | null | Scr/lab_huffman/src/print_as_ascii.cpp | bo-rc/data_structures | d568b240aff9ceaf5c220684358e32643b8b1864 | [
"MIT"
] | null | null | null | /**
* @file print_as_ascii.cpp
* A simple command line program that prints a binary file (as created from
* a BinaryFileWriter) as a sequence of ascii 0s and 1s.
*/
#include <iostream>
#include <string>
#include <vector>
#include "binary_file_reader.h"
void print_usage(const std::string& name)
{
std::cout
... | 22.425 | 78 | 0.617614 | bo-rc |
7464fe00bf0fe24c13b400af9da5d954590f232c | 4,747 | cpp | C++ | src/sequence/hmm/tools/hmm_train.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 615 | 2015-01-31T17:14:03.000Z | 2022-03-27T03:03:02.000Z | src/sequence/hmm/tools/hmm_train.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 167 | 2015-01-20T17:48:16.000Z | 2021-12-20T00:15:29.000Z | src/sequence/hmm/tools/hmm_train.cpp | Lolik111/meta | c7019401185cdfa15e1193aad821894c35a83e3f | [
"MIT"
] | 264 | 2015-01-30T00:08:01.000Z | 2022-03-02T17:19:11.000Z | /**
* @file hmm_train.cpp
* @author Chase Geigle
*/
#include <iostream>
#include "cpptoml.h"
#include "meta/hashing/probe_map.h"
#include "meta/io/filesystem.h"
#include "meta/io/gzstream.h"
#include "meta/logging/logger.h"
#include "meta/sequence/hmm/discrete_observations.h"
#include "meta/sequence/hmm/hmm.h"
#in... | 28.42515 | 78 | 0.547925 | Lolik111 |
7468f4823bb7c06688068ccd69e9bfb46fa2c940 | 7,307 | cpp | C++ | src/impl.util.windows.cpp | stlsoft/recls | 8ffe32ce0fcf9cf9aeb6fa00c0a6e0bc3be78367 | [
"BSD-3-Clause"
] | 2 | 2015-10-08T09:46:51.000Z | 2019-10-11T20:32:24.000Z | src/impl.util.windows.cpp | stlsoft/recls | 8ffe32ce0fcf9cf9aeb6fa00c0a6e0bc3be78367 | [
"BSD-3-Clause"
] | null | null | null | src/impl.util.windows.cpp | stlsoft/recls | 8ffe32ce0fcf9cf9aeb6fa00c0a6e0bc3be78367 | [
"BSD-3-Clause"
] | 1 | 2021-02-15T23:42:24.000Z | 2021-02-15T23:42:24.000Z | /* /////////////////////////////////////////////////////////////////////////
* File: impl.util.windows.cpp
*
* Purpose: Windows utility functions for the recls API.
*
* Created: 17th August 2003
* Updated: 10th January 2017
*
* Home: http://recls.org/
*
* Copyright (c) 2003-2017, Mat... | 29.946721 | 112 | 0.553989 | stlsoft |
7469a566c41889448e7d6f34552233b07eacefaf | 7,185 | cpp | C++ | src/Algorithm/DataStructure/GridCluster.cpp | intellistream/Sesame | efbd40084c591059af851f71bdafd96ab021f524 | [
"MIT"
] | null | null | null | src/Algorithm/DataStructure/GridCluster.cpp | intellistream/Sesame | efbd40084c591059af851f71bdafd96ab021f524 | [
"MIT"
] | 48 | 2022-03-14T09:33:09.000Z | 2022-03-31T08:41:46.000Z | src/Algorithm/DataStructure/GridCluster.cpp | intellistream/Sesame | efbd40084c591059af851f71bdafd96ab021f524 | [
"MIT"
] | null | null | null | //
// Created by 1124a on 2021/10/27.
//
#include <Algorithm/DataStructure/GridCluster.hpp>
#include <Utils/Logger.hpp>
SESAME::GridCluster::GridCluster()
{
}
SESAME::GridCluster::GridCluster( int label)
{
this->clusterLabel = label;
}
//TODO: if Using this function, be careful when grids are not NULL
SESAME::Grid... | 30.062762 | 117 | 0.652192 | intellistream |
746c1ffc08fbe7812a9c30bd08f3bb6127ae702b | 235 | cpp | C++ | SeriesSum/series1/main.cpp | narendrajethi220/DSA | 26888fa0d529d6ee866f37e5305af50b1e9923e5 | [
"MIT"
] | null | null | null | SeriesSum/series1/main.cpp | narendrajethi220/DSA | 26888fa0d529d6ee866f37e5305af50b1e9923e5 | [
"MIT"
] | null | null | null | SeriesSum/series1/main.cpp | narendrajethi220/DSA | 26888fa0d529d6ee866f37e5305af50b1e9923e5 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int N;
cout<<"Enter the range";
cin>>N;
double sum=0.0;
for(int i=1;i<=N;i++)
{
sum+=((double)1/(i*i));
}
cout<<sum;
return 0;
}
| 13.823529 | 29 | 0.476596 | narendrajethi220 |
746d470a3c2dcaad8d38bc0b1671d75daddc0e62 | 3,192 | cpp | C++ | platform_tools/android/launcher/skia_launcher.cpp | quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_skia | 90b3f9b82dbad266f960601d2120082bb841fb97 | [
"BSD-3-Clause"
] | 111 | 2015-01-13T22:01:50.000Z | 2021-06-10T15:32:48.000Z | platform_tools/android/launcher/skia_launcher.cpp | quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_skia | 90b3f9b82dbad266f960601d2120082bb841fb97 | [
"BSD-3-Clause"
] | 129 | 2015-01-14T16:07:02.000Z | 2020-03-11T19:44:42.000Z | platform_tools/android/launcher/skia_launcher.cpp | quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_skia | 90b3f9b82dbad266f960601d2120082bb841fb97 | [
"BSD-3-Clause"
] | 64 | 2015-01-14T16:45:39.000Z | 2021-09-08T11:16:05.000Z | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <dlfcn.h>
#include <stdio.h>
void usage() {
printf("[USAGE] skia_launcher program_name [options]\n");
printf(" program_name: the skia program you want to la... | 27.756522 | 89 | 0.62782 | quanganh2627 |
746ee98d246e1a64be2101c3a2c0923e28611ef3 | 1,361 | cpp | C++ | Sesion-1-Ambiente/Sesion-1-Ambiente/SH_BulletController.cpp | UPC-DESARROLLO-JUEGOS-1/2017-II-Shooter2D- | e8c17abe3023272f807cad38a11991d21b9242b8 | [
"MIT"
] | 1 | 2020-04-24T21:50:50.000Z | 2020-04-24T21:50:50.000Z | Sesion-1-Ambiente/Sesion-1-Ambiente/SH_BulletController.cpp | UPC-DESARROLLO-JUEGOS-1/2017-II-Shooter2D- | e8c17abe3023272f807cad38a11991d21b9242b8 | [
"MIT"
] | null | null | null | Sesion-1-Ambiente/Sesion-1-Ambiente/SH_BulletController.cpp | UPC-DESARROLLO-JUEGOS-1/2017-II-Shooter2D- | e8c17abe3023272f807cad38a11991d21b9242b8 | [
"MIT"
] | null | null | null | #include "SH_BulletController.h"
#include "SH_World.h"
#include "SH_BaseBullet.h"
#include "SH_PlayerBullet.h"
#include "SH_EnemyBullet.h"
#include "SH_EnumBullet.h"
SH_BulletController::SH_BulletController()
{
}
void SH_BulletController::Initialize(SH_World* world)
{
mWorld = world;
}
SH_BaseBullet* SH_BulletCont... | 18.902778 | 94 | 0.679647 | UPC-DESARROLLO-JUEGOS-1 |
746fca6bb3b63bd0d221a92b30a709046a15ba6f | 2,247 | cpp | C++ | src/test/cpp/skizzay/fsm/guarded_action_transition.t.cpp | skizzay/finite-state-machine | f7eef45c2a9a4508e035ed11f7ee75b69e3ad7ac | [
"MIT"
] | null | null | null | src/test/cpp/skizzay/fsm/guarded_action_transition.t.cpp | skizzay/finite-state-machine | f7eef45c2a9a4508e035ed11f7ee75b69e3ad7ac | [
"MIT"
] | null | null | null | src/test/cpp/skizzay/fsm/guarded_action_transition.t.cpp | skizzay/finite-state-machine | f7eef45c2a9a4508e035ed11f7ee75b69e3ad7ac | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include <skizzay/fsm/ancestors.h>
#include <skizzay/fsm/guarded_action_transition.h>
using namespace skizzay::fsm;
namespace {
struct timer_expired {};
struct green {};
struct red {
bool should_transition_result = true;
bool should_transition(timer_expired const &) const noexcept {
ret... | 33.537313 | 76 | 0.635069 | skizzay |
7472b4b21fbdc5ea9a3368a16f08a2d36cfd01b1 | 5,181 | cpp | C++ | src/AMD/amd_dump.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 451 | 2016-11-25T09:40:28.000Z | 2022-03-30T04:20:42.000Z | src/AMD/amd_dump.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 143 | 2016-11-25T20:35:57.000Z | 2022-03-01T11:58:02.000Z | src/AMD/amd_dump.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 139 | 2016-12-02T10:26:21.000Z | 2022-03-10T19:40:29.000Z | /* ========================================================================= */
/* === AMD_dump ============================================================ */
/* ========================================================================= */
/* ------------------------------------------------------------------------- */... | 28.467033 | 81 | 0.394132 | kikislater |
7478359e44d5f7d65fd52c8f994cc956a1720ee0 | 560 | cpp | C++ | Mutex/src/mutex1.cpp | tcandzq/CPPExperiment | db25532648d12fd5a2c86213d92f29f2cfe3f628 | [
"MIT"
] | null | null | null | Mutex/src/mutex1.cpp | tcandzq/CPPExperiment | db25532648d12fd5a2c86213d92f29f2cfe3f628 | [
"MIT"
] | null | null | null | Mutex/src/mutex1.cpp | tcandzq/CPPExperiment | db25532648d12fd5a2c86213d92f29f2cfe3f628 | [
"MIT"
] | null | null | null | #include<iostream>
#include<mutex>
#include<thread>
#include<vector>
using namespace std;
mutex g_mutex;
int g_count = 0;
void Counter()
{
g_mutex.lock();
int i = ++g_count;
cout << "cout: " << i << endl;
g_mutex.unlock();
}
int main()
{
const size_t SIZE = 4;
// Create a group of counter... | 14.358974 | 41 | 0.564286 | tcandzq |
747d94b3ffd29bc75ade9032437c7a9cf291539d | 660 | cpp | C++ | codes/moderncpp/overload/overload02/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 3 | 2022-01-25T07:33:43.000Z | 2022-03-30T10:25:09.000Z | codes/moderncpp/overload/overload02/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | null | null | null | codes/moderncpp/overload/overload02/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 2 | 2022-01-17T13:39:12.000Z | 2022-03-30T10:25:12.000Z | #include <iostream>
#include <variant>
template <class F1, class F2>
struct overload : F1, F2
{
overload(F1 const& f1, F2 const& f2) : F1{f1}, F2{f2}
{
std::cout << "overload::overload\n";
}
~overload()
{
std::cout << "overload::~overload\n";
}
using F1::operator();
... | 18.333333 | 61 | 0.466667 | eric2003 |
747fbe79f4683c8648f39f794afa2085102ad952 | 793 | cpp | C++ | src/gfx/starfield_handler.cpp | janok15/TERE | aa73c7f13beff0c49914332f0b7fb585951c659b | [
"MIT"
] | null | null | null | src/gfx/starfield_handler.cpp | janok15/TERE | aa73c7f13beff0c49914332f0b7fb585951c659b | [
"MIT"
] | null | null | null | src/gfx/starfield_handler.cpp | janok15/TERE | aa73c7f13beff0c49914332f0b7fb585951c659b | [
"MIT"
] | null | null | null | #include <SFML/Graphics/RenderWindow.hpp>
#include "starfield_handler.h"
StarfieldHandler::StarfieldHandler(int xResolution, int yResolution)
{
srand(time(NULL));
nType = rand() % 6;
//nType = 0;
if(nType < 2)
starfield_a = new StarfieldA(xResolution, yResolution);
else
starfie... | 18.880952 | 74 | 0.629256 | janok15 |
7486ebef9cbd8bbedbd028aeea3df44aee3ff04c | 6,267 | cpp | C++ | com/netfx/src/clr/tools/sos/get-table-info.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/netfx/src/clr/tools/sos/get-table-info.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/netfx/src/clr/tools/sos/get-table-info.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*
* Read from the class/offset table that resides within a debugged process.
*/
#include "strike.h"
#include "util.h"
#include "get-table-info.h"
#include <dump-tables.h>
#include "process-info.h"
#ifdef _DEB... | 28.103139 | 97 | 0.590394 | npocmaka |
7489844774ef8f830116f71d17e326f7529cea2f | 7,148 | cpp | C++ | test/unit/ut_action.cpp | MikeCharikov/vsm-cpp-sdk | 966dfe7cd3a436f8452e16c97328e720f882c484 | [
"BSD-3-Clause"
] | 1 | 2020-04-24T17:50:56.000Z | 2020-04-24T17:50:56.000Z | test/unit/ut_action.cpp | AlexandreBorowczyk/vsm-cpp-sdk | 234be1fc05697b79b88398b2c425a5b35d6e3ffb | [
"BSD-3-Clause"
] | null | null | null | test/unit/ut_action.cpp | AlexandreBorowczyk/vsm-cpp-sdk | 234be1fc05697b79b88398b2c425a5b35d6e3ffb | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2018, Smart Projects Holdings Ltd
// All rights reserved.
// See LICENSE file for license details.
#include <UnitTest++.h>
#include <ugcs/vsm/actions.h>
using namespace ugcs::vsm;
Geodetic_tuple geo_pos(1,2,3);
Wgs84_position position(geo_pos);
TEST(convertions_from_base_class_wait)
{
Action::... | 34.038095 | 91 | 0.686766 | MikeCharikov |
748dd6b440dfd6e72a455bf9becd9994ccd93198 | 19,961 | cpp | C++ | printscan/wia/common/jpeglib/jmemdos.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | printscan/wia/common/jpeglib/jmemdos.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | printscan/wia/common/jpeglib/jmemdos.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*
* jmemdos.c
*
* Copyright (C) 1992-1994, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file provides an MS-DOS-compatible implementation of the system-
* dependent portion of the JPEG memory m... | 30.899381 | 82 | 0.673764 | npocmaka |
7494a4b8764fa0efce8450cf37095c9de37fb60c | 388 | hpp | C++ | include/di/systems/vr/camera_frame_type.hpp | acdemiralp/nano_engine | 64069cf300af574efb0c979dbc97eb0a03cdc7a3 | [
"MIT"
] | 4 | 2021-02-24T14:13:47.000Z | 2022-02-06T12:02:24.000Z | include/di/systems/vr/camera_frame_type.hpp | acdemiralp/nano_engine | 64069cf300af574efb0c979dbc97eb0a03cdc7a3 | [
"MIT"
] | 1 | 2018-01-06T11:52:16.000Z | 2018-01-06T11:52:16.000Z | include/di/systems/vr/camera_frame_type.hpp | acdemiralp/nano_engine | 64069cf300af574efb0c979dbc97eb0a03cdc7a3 | [
"MIT"
] | 2 | 2018-02-11T14:51:17.000Z | 2021-02-24T14:13:49.000Z | #ifndef DI_SYSTEMS_VR_CAMERA_FRAME_TYPE_HPP_
#define DI_SYSTEMS_VR_CAMERA_FRAME_TYPE_HPP_
#include <openvr.h>
namespace di
{
enum class camera_frame_type
{
distorted = vr::VRTrackedCameraFrameType_Distorted ,
undistorted = vr::VRTrackedCameraFrameType_Undistorted ,
maximum_undist... | 24.25 | 72 | 0.768041 | acdemiralp |
749839e336e5cb55b4a3992005f5a9f39cc954a2 | 266,481 | cpp | C++ | src/main_4900.cpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | src/main_4900.cpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | src/main_4900.cpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
// Including type: OVR.OpenVR.IVRSystem/OVR.OpenVR._ResetSeatedZeroPose
#include "OVR/OpenVR/IVRSystem__ResetSeatedZ... | 81.968933 | 416 | 0.782799 | v0idp |
749bcf92b37ac0ba601e16971c55377063f38aba | 2,854 | cpp | C++ | exportNF/release/windows/obj/src/flixel/input/actions/ResetPolicy.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/flixel/input/actions/ResetPolicy.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | exportNF/release/windows/obj/src/flixel/input/actions/ResetPolicy.cpp | theblobscp/NekoFreakMod-FridayNightFunkin | 232bcb08234cfe881fd6d52b13e6ae443e105fd1 | [
"BSD-3-Clause"
] | null | null | null | // Generated by Haxe 4.2.1+bf9ff69
#include <hxcpp.h>
#ifndef INCLUDED_flixel_input_actions_ResetPolicy
#include <flixel/input/actions/ResetPolicy.h>
#endif
namespace flixel{
namespace input{
namespace actions{
::flixel::input::actions::ResetPolicy ResetPolicy_obj::ALL_SETS;
::flixel::input::actions::ResetPolicy Res... | 32.067416 | 168 | 0.736861 | theblobscp |
749cc5378df5ed5d1784f0ce941407ced7d5e34d | 1,127 | cpp | C++ | C++/findSubstring.cpp | colorfulberry/LeetCode | a4103a63d2969e8819447685f42423cd22fed2ff | [
"MIT"
] | 2 | 2020-04-08T17:57:43.000Z | 2021-11-07T09:11:51.000Z | C++/findSubstring.cpp | colorfulberry/LeetCode | a4103a63d2969e8819447685f42423cd22fed2ff | [
"MIT"
] | null | null | null | C++/findSubstring.cpp | colorfulberry/LeetCode | a4103a63d2969e8819447685f42423cd22fed2ff | [
"MIT"
] | 8 | 2018-03-13T18:20:26.000Z | 2022-03-09T19:48:11.000Z | // Time Complexity: O((m - n * k) * n * k) ~ O(m * n * k), where m is string length, n is dict size, k is word length
// Space Complexity: O( n * k)
class Solution {
public:
vector<int> findSubstring(string s, vector<string> &dict) {
const size_t wordLength = dict.front().length();
c... | 34.151515 | 117 | 0.511979 | colorfulberry |
749e46b8f34a6252e282499cffa6a56a92e50d63 | 7,867 | cpp | C++ | CFD/src/mesh_generation/hexcore.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | CFD/src/mesh_generation/hexcore.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | CFD/src/mesh_generation/hexcore.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | #include "mesh_generation/hexcore.h"
#include "core/math/aabb.h"
#include "core/container/tvector.h"
#include "mesh_generation/point_octotree.h"
#include <set>
struct HexcoreCell {
u64 morton;
uint depth; //todo could compute this implicitly, but probably more error prone
bool front;
union {
H... | 29.245353 | 101 | 0.519385 | CompilerLuke |
749f1ba4af152e8b7663affcef85ac7877b823e5 | 8,384 | cc | C++ | services/device/public/cpp/hid/fake_hid_manager.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | services/device/public/cpp/hid/fake_hid_manager.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | services/device/public/cpp/hid/fake_hid_manager.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/device/public/cpp/hid/fake_hid_manager.h"
#include <memory>
#include <utility>
#include "base/guid.h"
#include "mojo/public/cpp/bindi... | 33.94332 | 80 | 0.69251 | iridium-browser |
749f389de3bac739587fcfed16103233f8ba35a2 | 1,413 | hpp | C++ | src/lib/interface/AffichageReseau.hpp | EXsky51/in608-tcp_ip_simulation | 98376c152a062ce2a23cfab775c89d31a156e2e6 | [
"MIT"
] | 2 | 2021-05-25T22:44:15.000Z | 2021-05-31T00:19:30.000Z | src/lib/interface/AffichageReseau.hpp | EXsky51/in608-tcp_ip_simulation | 98376c152a062ce2a23cfab775c89d31a156e2e6 | [
"MIT"
] | 3 | 2021-05-17T12:46:46.000Z | 2021-05-24T10:18:11.000Z | src/lib/interface/AffichageReseau.hpp | EXsky51/in608-tcp_ip_simulation | 98376c152a062ce2a23cfab775c89d31a156e2e6 | [
"MIT"
] | 32 | 2021-05-03T12:05:42.000Z | 2021-05-25T16:15:45.000Z | /**
* @file AffichageReseau.hpp
* @brief Déclaration de la classe AffichageReseau.
*
* @author Johann RAMANANDRAISIORY
* @date 2021
**/
#ifndef AFFICHAGERESEAU_H
#define AFFICHAGERESEAU_H
#include "Contexte.hpp"
#include <QApplication>
#include <QWidget>
#include <QPushButton>
#inclu... | 20.779412 | 58 | 0.624204 | EXsky51 |
74a0397c2de6a0ae2ee5f6e8e31197fa2c3c4469 | 56,085 | cc | C++ | chrome/browser/extensions/api/certificate_provider/certificate_provider_apitest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/api/certificate_provider/certificate_provider_apitest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/api/certificate_provider/certificate_provider_apitest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-03-07T14:20:02.000Z | 2021-03-07T14:20:02.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <memory>
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/... | 42.845684 | 89 | 0.735919 | Ron423c |
74a0c9cb0b22f67aece7aeab5fb29da1cbec515b | 6,780 | cc | C++ | chrome/browser/ui/webui/settings/chromeos/search/settings_user_action_tracker_unittest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/webui/settings/chromeos/search/settings_user_action_tracker_unittest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/webui/settings/chromeos/search/settings_user_action_tracker_unittest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/settings/chromeos/search/settings_user_action_tracker.h"
#include "base/test/metrics/histogram_tester.h"
#include "base... | 38.305085 | 90 | 0.743215 | mghgroup |
74a1f318626066b24f7134aa1ac433fdc0b2a719 | 441 | cpp | C++ | Advance Recursion/knapsack.cpp | Mythical-stack/C-Crash-Course | 323b7f5b1e0b270138e54a1a18fb1e81015a1763 | [
"Apache-2.0"
] | 1 | 2021-08-10T11:45:13.000Z | 2021-08-10T11:45:13.000Z | Advance Recursion/knapsack.cpp | jkbells/C-Crash-Course | 323b7f5b1e0b270138e54a1a18fb1e81015a1763 | [
"Apache-2.0"
] | null | null | null | Advance Recursion/knapsack.cpp | jkbells/C-Crash-Course | 323b7f5b1e0b270138e54a1a18fb1e81015a1763 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int knapsack(int value[], int wt[], int n,int w){
if(n==0 || w == 0){
return 0;
}
if(wt[n-1] > w){
return knapsack(value,wt,n-1,w);
}
return max(knapsack(value,wt,n-1, w-wt[n-1])+value[n-1],knapsack(value,wt,n-1,w));
}
int main()
{
int w... | 19.173913 | 86 | 0.535147 | Mythical-stack |
74a61de67f99b88a582eb9e12d85cf90891acbb9 | 663 | cpp | C++ | examples/ex_filesys_watcher.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 25 | 2015-03-30T02:02:43.000Z | 2019-03-04T22:29:12.000Z | examples/ex_filesys_watcher.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 122 | 2015-04-01T08:15:26.000Z | 2019-10-16T20:31:22.000Z | examples/ex_filesys_watcher.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 4 | 2016-09-02T12:14:09.000Z | 2018-11-23T20:38:49.000Z |
#include <allegro_flare/allegro_flare.h>
using namespace allegro_flare;
class MyProject : public Screen
{
public:
MyProject(Display *display)
: Screen(display)
{
// watch the executable directory
FileSysWatcher::watch_directory__in_thread(".");
}
void user_event_func() override... | 13.26 | 56 | 0.616893 | MarkOates |
74a9429e1936eda614d132df517d810145c51996 | 1,616 | cc | C++ | clean_megablast.cc | CharlesTaylor/pamir | ebbe225561aa566e681b4fafe762b7ae4c40e783 | [
"BSD-3-Clause"
] | null | null | null | clean_megablast.cc | CharlesTaylor/pamir | ebbe225561aa566e681b4fafe762b7ae4c40e783 | [
"BSD-3-Clause"
] | null | null | null | clean_megablast.cc | CharlesTaylor/pamir | ebbe225561aa566e681b4fafe762b7ae4c40e783 | [
"BSD-3-Clause"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <math.h>
using namespace std;
int main(int argc, char* argv[])
{
if(argc!=3)
{
printf("Usage: ./clean megablastFile cleanFile\n");
exit(0);
}
FILE *fin;
FILE *fout;
FILE *fout2;
FILE *fout3;
char *line =... | 24.119403 | 132 | 0.519183 | CharlesTaylor |
74abe413be908a5a95d1a36757e8e6aecedd7c09 | 1,702 | cpp | C++ | codechef/PLUS/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codechef/PLUS/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codechef/PLUS/Partially Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 26-05-2018 20:55:53
* solution_verdict: Partially Accepted language: C++14
* run... | 27.451613 | 111 | 0.363102 | kzvd4729 |
74af1ce4aa917359acc3c826d3982f183fcd498a | 17,617 | cpp | C++ | src/python/bindings/bindings_selection.cpp | mdimura/pteros | 1692394075482987638c40236312ebaac49d5780 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-12-01T10:28:52.000Z | 2020-12-01T10:28:52.000Z | src/python/bindings/bindings_selection.cpp | mdimura/pteros | 1692394075482987638c40236312ebaac49d5780 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/python/bindings/bindings_selection.cpp | mdimura/pteros | 1692394075482987638c40236312ebaac49d5780 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*
* This file is a part of
*
* ============================================
* ### Pteros molecular modeling library ###
* ============================================
*
* https://github.com/yesint/pteros
*
* (C) 2009-2020, Semen Yesylevskyy
*
* All works, which use Pteros, should cite the following paper... | 47.485175 | 174 | 0.604586 | mdimura |
74b2e71be885b294e25bbe33cbb1b2c19c230b88 | 714 | cpp | C++ | Company: Adobe/1.Subarray_with_given_sum.cpp | vaibhavkrishanyadav/6Companies30Days | a6f72ffce08a67df8b2ebada6008d01a90291d49 | [
"MIT"
] | null | null | null | Company: Adobe/1.Subarray_with_given_sum.cpp | vaibhavkrishanyadav/6Companies30Days | a6f72ffce08a67df8b2ebada6008d01a90291d49 | [
"MIT"
] | null | null | null | Company: Adobe/1.Subarray_with_given_sum.cpp | vaibhavkrishanyadav/6Companies30Days | a6f72ffce08a67df8b2ebada6008d01a90291d49 | [
"MIT"
] | null | null | null | //1.Subarray with given sum
//https://practice.geeksforgeeks.org/problems/subarray-with-given-sum-1587115621/1
class Solution
{
public:
//Function to find a continuous sub-array which adds up to a given number.
vector<int> subarraySum(int arr[], int n, long long s)
{
// Your code here
i... | 24.62069 | 82 | 0.478992 | vaibhavkrishanyadav |
74b6c11192bde72c50b56d9b4a681899a8b5e1da | 4,665 | cpp | C++ | Code/PluginCustomizer/EditorDoubleValue.cpp | cy15196/FastCAE | 0870752ec2e590f3ea6479e909ebf6c345ac2523 | [
"BSD-3-Clause"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | Code/PluginCustomizer/EditorDoubleValue.cpp | cy15196/FastCAE | 0870752ec2e590f3ea6479e909ebf6c345ac2523 | [
"BSD-3-Clause"
] | 4 | 2020-03-12T15:36:57.000Z | 2022-02-08T02:19:17.000Z | Code/PluginCustomizer/EditorDoubleValue.cpp | cy15196/FastCAE | 0870752ec2e590f3ea6479e909ebf6c345ac2523 | [
"BSD-3-Clause"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | #include "EditorDoubleValue.h"
#include "ui_EditorDoubleValue.h"
#include "DataProperty/ParameterDouble.h"
#include <QDoubleValidator>
#include <QTimer>
#include <QDebug>
#include "InputValidator.h"
namespace FastCAEDesigner
{
EditorDoubleValue::EditorDoubleValue(DataProperty::ParameterDouble* model, QWidget *parent... | 24.68254 | 106 | 0.699893 | cy15196 |
74b8e2e40bd35a2f76965d519300372cb9de76ff | 1,142 | hpp | C++ | PolyEngine/RenderingDevice/OpenGL/Src/GLTextureDeviceProxy.hpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 1 | 2017-04-30T13:55:54.000Z | 2017-04-30T13:55:54.000Z | PolyEngine/RenderingDevice/OpenGL/Src/GLTextureDeviceProxy.hpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | null | null | null | PolyEngine/RenderingDevice/OpenGL/Src/GLTextureDeviceProxy.hpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 3 | 2017-11-22T16:37:26.000Z | 2019-04-24T17:47:58.000Z | #pragma once
#include <IRenderingDevice.hpp>
#include "GLUtils.hpp"
namespace Poly
{
struct ScreenSize;
enum class eInternalTextureUsageType
{
NONE,
COLOR_ATTACHEMENT,
DEPTH_ATTACHEMENT,
_COUNT
};
class GLTextureDeviceProxy : public ITextureDeviceProxy
{
public:
GLTextureDeviceProxy(size_t width, s... | 26.55814 | 145 | 0.784588 | MuniuDev |
74b9b9272efdb271a02fa3e4f6073d344b26b98f | 1,028 | cpp | C++ | benchmarks/halide/fusiongpu_ref.cpp | akmaru/tiramisu | 8ca4173547b6d12cff10575ef0dc48cf93f7f414 | [
"MIT"
] | 23 | 2017-05-03T13:06:34.000Z | 2018-06-07T07:12:43.000Z | benchmarks/halide/fusiongpu_ref.cpp | akmaru/tiramisu | 8ca4173547b6d12cff10575ef0dc48cf93f7f414 | [
"MIT"
] | 2 | 2017-04-25T08:59:09.000Z | 2017-05-11T16:41:55.000Z | benchmarks/halide/fusiongpu_ref.cpp | akmaru/tiramisu | 8ca4173547b6d12cff10575ef0dc48cf93f7f414 | [
"MIT"
] | 5 | 2017-02-16T14:26:40.000Z | 2018-05-30T16:49:27.000Z | #include "Halide.h"
using namespace Halide;
int main(int argc, char **argv) {
ImageParam in(UInt(8), 3, "input");
Var x("x"), y("y"), c("c"), x1, y1;
Func f("f"), g("g"), h("h"), k("k");
f(x, y, c) = cast<uint8_t>(255 - in(x, y, c));
g(x, y, c) = cast<uint8_t>(2*in(x, y, c));
h(x, y, c) = f(... | 27.783784 | 120 | 0.54572 | akmaru |
74bd1e36f103407b376a0a3ad380c153c8414258 | 6,286 | hh | C++ | src/laserdisc/LaserdiscPlayer.hh | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 7 | 2019-10-11T21:47:05.000Z | 2021-10-05T19:58:18.000Z | src/laserdisc/LaserdiscPlayer.hh | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2019-05-25T21:08:47.000Z | 2019-05-25T21:10:35.000Z | src/laserdisc/LaserdiscPlayer.hh | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #ifndef LASERDISCPLAYER_HH
#define LASERDISCPLAYER_HH
#include "ResampledSoundDevice.hh"
#include "BooleanSetting.hh"
#include "RecordedCommand.hh"
#include "EmuTime.hh"
#include "Schedulable.hh"
#include "DynamicClock.hh"
#include "Filename.hh"
#include "VideoSystemChangeListener.hh"
#include "EventListener.hh"
#incl... | 26.411765 | 89 | 0.742921 | D15C0DE |
74bd36cecac3a9ad05697054786227de758aded2 | 1,683 | cpp | C++ | Concurrency/1116_PrintZeroEvenOdd/ZeroEvenOdd_lockfree.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | 1 | 2020-03-08T23:23:38.000Z | 2020-03-08T23:23:38.000Z | Concurrency/1116_PrintZeroEvenOdd/ZeroEvenOdd_lockfree.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | 1 | 2020-01-27T14:01:43.000Z | 2020-01-27T14:01:43.000Z | Concurrency/1116_PrintZeroEvenOdd/ZeroEvenOdd_lockfree.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | null | null | null | // Runtime: 60 ms, faster than 35.63% of C++ online submissions for Print Zero Even Odd.
// Memory Usage: 9.2 MB, less than 100.00% of C++ online submissions for Print Zero Even Odd.
#include <atomic>
#include <thread>
class ZeroEvenOdd
{
private:
int n;
std::atomic<bool> isZero{true};
std::atomic<bool> i... | 23.704225 | 93 | 0.465835 | liweiyap |
74bd78491bad1e8e46bd345f1d313f152484e7d8 | 11,775 | cpp | C++ | src/main.cpp | sei-kiu/Wio-Terminal-Grove-infrared-receiver | 5d68096826bcf9dbee7470a14bf94147af951200 | [
"MIT"
] | 2 | 2022-01-05T10:15:12.000Z | 2022-01-05T10:15:28.000Z | src/main.cpp | sei-kiu/Wio-Terminal-detecting-IR-remote-button-presses | 5d68096826bcf9dbee7470a14bf94147af951200 | [
"MIT"
] | null | null | null | src/main.cpp | sei-kiu/Wio-Terminal-detecting-IR-remote-button-presses | 5d68096826bcf9dbee7470a14bf94147af951200 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "../include/Free_Fonts.h" //include free fonts library from https://github.com/Seeed-Studio/Seeed_Arduino_LCD/blob/master/examples/320x240/Free_Font_Demo/Free_Fonts.h
#include "TFT_eSPI.h"
#include "IRremote.h"
TFT_eSPI tft;
int IR_RECEIVE_PIN = 0;
IRrecv irrecv(IR_RECEIVE_PIN);
Stri... | 56.610577 | 363 | 0.656985 | sei-kiu |
74bdb0c2510e82446d230bc839e34f0e10b9bec7 | 1,413 | cpp | C++ | CodeForces/1178 A.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | CodeForces/1178 A.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | CodeForces/1178 A.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | /*************************************************************************
>>> Author: WindCry1
>>> Mail: lanceyu120@gmail.com
>>> Website: https://windcry1.com
>>> Date: 7/20/2019 11:36:22 PM
*************************************************************************/
#include<cstring>
#include<cmath>
#include<cstdio>
#... | 19.901408 | 74 | 0.586695 | windcry1 |
74be1efb0c36c92b9ed0bddfd73d002c907871ab | 7,354 | cpp | C++ | ubc/Object.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | 1 | 2021-09-14T06:12:58.000Z | 2021-09-14T06:12:58.000Z | ubc/Object.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | null | null | null | ubc/Object.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | 2 | 2019-05-13T23:04:31.000Z | 2021-09-14T06:12:59.000Z | #include <libutl/libutl.h>
#include <libutl/AutoPtr.h>
#include <libutl/Bool.h>
#include <libutl/MaxObject.h>
#include <libutl/String.h>
#include <libutl/Uint.h>
////////////////////////////////////////////////////////////////////////////////////////////////////
UTL_CLASS_IMPL_ABC(utl::Object);
/////////////////////... | 25.098976 | 100 | 0.406174 | Brillist |
74c06ac787da3e48daae5c552de04094979f7f4a | 2,298 | cpp | C++ | _cmake/sketch/lab_temperature_sensor_c.ino.cpp | SSG-DRD-IOT/lab-temperature-sensor-c | b40febff18f29659bfa9369a194384b62f277e79 | [
"MIT"
] | null | null | null | _cmake/sketch/lab_temperature_sensor_c.ino.cpp | SSG-DRD-IOT/lab-temperature-sensor-c | b40febff18f29659bfa9369a194384b62f277e79 | [
"MIT"
] | null | null | null | _cmake/sketch/lab_temperature_sensor_c.ino.cpp | SSG-DRD-IOT/lab-temperature-sensor-c | b40febff18f29659bfa9369a194384b62f277e79 | [
"MIT"
] | 2 | 2018-02-05T04:51:54.000Z | 2018-02-23T08:24:42.000Z | #include <Arduino.h>
#include "th02.hpp"
#include "upm_utilities.h"
#include "jhd1313m1.h"
int main();
int
main() {
// Set the subplatform for the shield
mraa_add_subplatform(MRAA_GROVEPI, "0");
// Create the temperature & humidity sensor object
upm::TH02 sensor;
// initialize the LCD and check for ini... | 31.479452 | 98 | 0.621845 | SSG-DRD-IOT |
74c0aa9678992c800d012a24bc809ab3e61160e6 | 4,454 | cpp | C++ | linux/device/src/NetworkInitializer.cpp | RedCarrottt/selective-connection | 6103a21ffc5deea45ae3f913cd2d732c5364cf5d | [
"Apache-2.0"
] | 11 | 2019-09-04T06:27:04.000Z | 2020-08-25T08:36:11.000Z | linux/device/src/NetworkInitializer.cpp | RedCarrottt/Virtual-Connection | 6103a21ffc5deea45ae3f913cd2d732c5364cf5d | [
"Apache-2.0"
] | 15 | 2019-09-04T10:29:28.000Z | 2019-12-24T13:05:46.000Z | linux/device/src/NetworkInitializer.cpp | RedCarrottt/Virtual-Connection | 6103a21ffc5deea45ae3f913cd2d732c5364cf5d | [
"Apache-2.0"
] | 6 | 2021-07-26T01:40:37.000Z | 2021-10-12T06:33:28.000Z |
/* Copyright 2017-2018 All Rights Reserved.
* Gyeonghwan Hong (redcarrottt@gmail.com)
*
* [Contact]
* Gyeonghwan Hong (redcarrottt@gmail.com)
*
* Licensed under the Apache License, Version 2.0(the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Li... | 27.664596 | 80 | 0.665694 | RedCarrottt |
74c0e973c0c8c7624c39b0b80cf7a44c5b00baf9 | 5,727 | cpp | C++ | src/ir/types.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | src/ir/types.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | src/ir/types.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | #include "coreir/ir/types.h"
#include "coreir/ir/globalvalue.h"
#include "coreir/ir/casting/casting.h"
#include "coreir/ir/context.h"
#include "coreir/ir/namespace.h"
#include "coreir/ir/common.h"
#include "coreir/ir/error.h"
#include "coreir/ir/typegen.h"
#include "coreir/ir/value.h"
using namespace std;
namespace C... | 27.401914 | 199 | 0.629824 | joyliu37 |
74c872dcd7df58bd9779db7ea531f87397df71b9 | 633 | cpp | C++ | generation/scraper/Partitions/MsTv/main.cpp | tannergooding/win32metadata | 08577b93c4fa5ed8514f4d7290432773dbc4750a | [
"MIT"
] | 1 | 2021-07-06T16:33:39.000Z | 2021-07-06T16:33:39.000Z | generation/scraper/Partitions/MsTv/main.cpp | SkyN9ne/win32metadata | 94b3481b575055dfba358d92bba60a26cf682e80 | [
"MIT"
] | null | null | null | generation/scraper/Partitions/MsTv/main.cpp | SkyN9ne/win32metadata | 94b3481b575055dfba358d92bba60a26cf682e80 | [
"MIT"
] | null | null | null | #define SECURITY_WIN32 // For sspi.h
#define QCC_OS_GROUP_WINDOWS
#include "intrinfix.h"
#include "windows.fixed.h"
#include <sdkddkver.h>
#include <ks.h>
#include <ksmedia.h>
#include <tuner.h>
#include <segment.h>
#include <msvidctl.h>
#include <regbag.h>
#include <bdatypes.h>
#include <sbe.h>
#include <encdec.h>... | 19.78125 | 36 | 0.733017 | tannergooding |
74c89be99acd24eb28bc3a8516b7230e044c3a78 | 3,075 | cpp | C++ | roguelike/src/Grid.cpp | irishpatrick/sdl-game | 23ff8330fe2aaa765119df40d62e50570f606f07 | [
"MIT-0",
"MIT"
] | null | null | null | roguelike/src/Grid.cpp | irishpatrick/sdl-game | 23ff8330fe2aaa765119df40d62e50570f606f07 | [
"MIT-0",
"MIT"
] | null | null | null | roguelike/src/Grid.cpp | irishpatrick/sdl-game | 23ff8330fe2aaa765119df40d62e50570f606f07 | [
"MIT-0",
"MIT"
] | null | null | null | #include "Grid.hpp"
#include "Tile.hpp"
#include "GridSprite.hpp"
#include "Stuff.hpp"
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
Grid::Grid() :
Sprite(),
atlas(nullptr)
{
}
Grid::~Grid()
{
}
void Grid::load(Context& ctx, const std::string& fn)
{
std::ifstrea... | 18.75 | 76 | 0.457561 | irishpatrick |
74caf89198d5b02f3d3cfc4ba0583460d4c94a2e | 1,418 | cpp | C++ | test/sequencer/SeqTest4.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 10 | 2015-02-17T15:27:50.000Z | 2021-12-10T08:34:13.000Z | test/sequencer/SeqTest4.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 6 | 2016-05-10T17:11:09.000Z | 2022-03-31T07:52:11.000Z | test/sequencer/SeqTest4.cpp | ClaudiaVisentin/eeros-framework | 63739a2e33b0c5e9e573748fef675131c35181a6 | [
"Apache-2.0"
] | 13 | 2016-05-01T09:56:51.000Z | 2022-03-28T09:27:49.000Z | #include <eeros/logger/StreamLogWriter.hpp>
#include <eeros/sequencer/Sequencer.hpp>
#include <eeros/sequencer/Sequence.hpp>
#include <eeros/sequencer/Wait.hpp>
#include <eeros/core/Fault.hpp>
#include <signal.h>
#include <chrono>
#include <gtest/gtest.h>
namespace seqTest4 {
using namespace eeros::sequencer;
int cou... | 22.15625 | 136 | 0.673484 | ClaudiaVisentin |
74ccb968f62328c55d50c98104839a25b37eade1 | 3,689 | cpp | C++ | src/camera.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | 1 | 2020-09-23T11:17:35.000Z | 2020-09-23T11:17:35.000Z | src/camera.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | src/camera.cpp | astrellon/simple-space | 20e98d4f562a78b1efeaedb0a0012f3c9306ac7e | [
"MIT"
] | null | null | null | #include "camera.hpp"
#include "engine.hpp"
#include "game_session.hpp"
namespace space
{
CameraProps::CameraProps() : scale(1.0f), following(false), followingRotation(false)
{
}
Camera::Camera(Engine &engine, std::string debugName) : debugName(debugName), _engine(engine), _zoomScale(1.0f)
{
... | 24.111111 | 115 | 0.548116 | astrellon |