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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
984743eb1d9401ed2994b7146a29fcb0f743dbfc | 464 | cpp | C++ | Bots/DiversifyBot/DiversifyBot.cpp | Skibisky/InvestorBadness | 44f3a7477e83d5c53be10bc5a8ad537b06a78c81 | [
"MIT"
] | null | null | null | Bots/DiversifyBot/DiversifyBot.cpp | Skibisky/InvestorBadness | 44f3a7477e83d5c53be10bc5a8ad537b06a78c81 | [
"MIT"
] | null | null | null | Bots/DiversifyBot/DiversifyBot.cpp | Skibisky/InvestorBadness | 44f3a7477e83d5c53be10bc5a8ad537b06a78c81 | [
"MIT"
] | null | null | null | #include "DiversifyBot.h"
void DiversifyBot::Turn(std::vector<Contribution*> avail, int pts)
{
// point a point in every project
for each(auto inv in avail)
{
if (pts <= 0)
break;
if (inv->oldContrib == 0)
{
inv->myContrib++;
pts--;
}
}
// dump remaining points in projects we aren't even 5th in... | 16.571429 | 66 | 0.601293 | Skibisky |
9847b620b70486452d2670c88c88ef6015eda648 | 681 | hpp | C++ | school/TimeOfDay.hpp | Biyorne/learningcpp | bcf963990800ed939fa4cc1b30fadccaf098155b | [
"MIT"
] | null | null | null | school/TimeOfDay.hpp | Biyorne/learningcpp | bcf963990800ed939fa4cc1b30fadccaf098155b | [
"MIT"
] | null | null | null | school/TimeOfDay.hpp | Biyorne/learningcpp | bcf963990800ed939fa4cc1b30fadccaf098155b | [
"MIT"
] | null | null | null | #ifndef SCHOOL_TIMEOFDAY_HPP_INCLUDED
#define SCHOOL_TIMEOFDAY_HPP_INCLUDED
#include <string>
namespace school
{
class TimeOfDay
{
public:
TimeOfDay(const int HOUR, const int MINUTE, const int SECOND);
int hour() const { return m_hour; }
int minute() const { return m_minute; }
... | 21.28125 | 70 | 0.646109 | Biyorne |
984efefea7490c13b4069012e9cc4a8de4e67e0e | 1,611 | cpp | C++ | CPP_US/src/Engine/Camera.cpp | Basher207/Unity-style-Cpp-engine | 812b0be2c61aea828cfd8c6d6f06f2cf6e889661 | [
"MIT"
] | null | null | null | CPP_US/src/Engine/Camera.cpp | Basher207/Unity-style-Cpp-engine | 812b0be2c61aea828cfd8c6d6f06f2cf6e889661 | [
"MIT"
] | null | null | null | CPP_US/src/Engine/Camera.cpp | Basher207/Unity-style-Cpp-engine | 812b0be2c61aea828cfd8c6d6f06f2cf6e889661 | [
"MIT"
] | null | null | null | #include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include <glm/gtx/vector_angle.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <stdio.h>
#include "GameObject.hpp"
#include "Transform.hp... | 33.5625 | 122 | 0.740534 | Basher207 |
9852d984a8e6a1d79f9c535944a64b9567edef84 | 4,887 | hpp | C++ | include/tudocomp/compressors/lz_pointer_jumping/PointerJumping.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-22T11:29:02.000Z | 2020-09-22T11:29:02.000Z | include/tudocomp/compressors/lz_pointer_jumping/PointerJumping.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/tudocomp/compressors/lz_pointer_jumping/PointerJumping.hpp | 421408/tudocomp | 9634742393995acdde148b0412f083bfdd0fbe9f | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-09-29T08:57:13.000Z | 2020-09-29T08:57:13.000Z | #pragma once
#include <unordered_map>
#include <array>
#include <tudocomp/compressors/lz_common/factorid_t.hpp>
namespace tdc {namespace lz_pointer_jumping {
static constexpr bool PRINT_DEBUG_TRANSITIONS = false;
template<typename pj_trie_t>
class PointerJumping: public pj_trie_t {
using jump_buffer_handle = t... | 31.326923 | 108 | 0.638428 | 421408 |
9857071301b5ba8687099d6d851100b9c308db46 | 1,670 | cpp | C++ | src/test/main_tests.cpp | coinkeeper/2015-06-22_19-00_ziftrcoin | 7c37ed9518bf822c51fa4de1c74d8e741e3263f6 | [
"MIT"
] | 10 | 2015-03-01T07:06:10.000Z | 2021-03-18T13:19:35.000Z | src/test/main_tests.cpp | coinkeeper/2015-06-22_19-00_ziftrcoin | 7c37ed9518bf822c51fa4de1c74d8e741e3263f6 | [
"MIT"
] | 11 | 2015-03-01T12:10:13.000Z | 2021-02-25T15:48:44.000Z | src/test/main_tests.cpp | coinkeeper/2015-06-22_19-00_ziftrcoin | 7c37ed9518bf822c51fa4de1c74d8e741e3263f6 | [
"MIT"
] | 14 | 2015-03-02T16:44:39.000Z | 2018-04-20T16:27:22.000Z | // Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2015 The ziftrCOIN developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "core.h"
#include "main.h"
#include "chainparams.h"
#include <boost/t... | 30.363636 | 83 | 0.656287 | coinkeeper |
98576a4bae953234331282ed52e8eabcd5564470 | 2,182 | cpp | C++ | N. Phone Numbers.cpp | Mahboub99/CodeForces_UVA | c5cfad64d573ef21b67d97e17bd4f14fb01de9fa | [
"MIT"
] | 3 | 2020-01-03T11:38:43.000Z | 2021-03-13T13:34:49.000Z | N. Phone Numbers.cpp | Mahboub99/CodeForces_UVA | c5cfad64d573ef21b67d97e17bd4f14fb01de9fa | [
"MIT"
] | null | null | null | N. Phone Numbers.cpp | Mahboub99/CodeForces_UVA | c5cfad64d573ef21b67d97e17bd4f14fb01de9fa | [
"MIT"
] | 2 | 2019-10-16T19:52:15.000Z | 2019-10-28T08:52:38.000Z | #include <iostream>
#include <cmath>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <algorithm>
#include <iomanip>
#include <assert.h>
#include <vector>
#include <cstring>
#include <map>
#include <deque>
#include <queue>
#include <stack>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#inclu... | 18.973913 | 76 | 0.482126 | Mahboub99 |
985b8f3ef7e88804f57fd6c3beeec9d92ead404f | 1,287 | cpp | C++ | k-diff_pairs_in_an_array.cpp | shafitek/ArXives | 67170d6bde2093703d9cd3e8efa55b61e7b5ea75 | [
"MIT"
] | null | null | null | k-diff_pairs_in_an_array.cpp | shafitek/ArXives | 67170d6bde2093703d9cd3e8efa55b61e7b5ea75 | [
"MIT"
] | null | null | null | k-diff_pairs_in_an_array.cpp | shafitek/ArXives | 67170d6bde2093703d9cd3e8efa55b61e7b5ea75 | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/k-diff-pairs-in-an-array/
class Solution {
public:
int findPairs(vector<int>& nums, int k) {
int soln = 0;
int len = nums.size();
int nummk = 0;
std::unordered_map<int, int> h_map;
std::unordered_map<int, int> soln_vec;
if (k... | 26.265306 | 68 | 0.37296 | shafitek |
98661705d7d57f09be60d53e414ca8dd8293dc06 | 1,069 | cpp | C++ | backup/2/leetcode/c++/find-the-distance-value-between-two-arrays.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/leetcode/c++/find-the-distance-value-between-two-arrays.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/leetcode/c++/find-the-distance-value-between-two-arrays.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 42.76 | 345 | 0.595884 | yangyanzhan |
9869b535f8a1de758b0c35612dbd4ac2a1701ad9 | 368 | hpp | C++ | mmcv/ops/csrc/pytorch_cuda_helper.hpp | jinliwei1997/mmcv | f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79 | [
"Apache-2.0"
] | 3,748 | 2018-10-12T08:39:46.000Z | 2022-03-31T17:22:55.000Z | mmcv/ops/csrc/pytorch_cuda_helper.hpp | jinliwei1997/mmcv | f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79 | [
"Apache-2.0"
] | 1,637 | 2018-10-12T06:06:18.000Z | 2022-03-31T02:20:53.000Z | mmcv/ops/csrc/pytorch_cuda_helper.hpp | jinliwei1997/mmcv | f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79 | [
"Apache-2.0"
] | 1,234 | 2018-10-12T09:28:20.000Z | 2022-03-31T15:56:24.000Z | #ifndef PYTORCH_CUDA_HELPER
#define PYTORCH_CUDA_HELPER
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <c10/cuda/CUDAGuard.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <THC/THCAtomics.cuh>
#include "common_cuda_helper.hpp"
using at::Half;
using at::Tensor;
using phalf = at::Half;
#define... | 18.4 | 39 | 0.758152 | jinliwei1997 |
9870a9dcd83852a27f22154f595b9a89bafed8dc | 935 | cpp | C++ | source/377.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | 2 | 2017-02-28T11:39:13.000Z | 2019-12-07T17:23:20.000Z | source/377.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | source/377.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | //
// 377.cpp
// LeetCode
//
// Created by Narikbi on 01.03.17.
// Copyright © 2017 app.leetcode.kz. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <cma... | 17.980769 | 58 | 0.512299 | narikbi |
987129dde97a7838c3dacb13432153fc32d46972 | 1,261 | hpp | C++ | include/magic.hpp | zborffs/Prometheus | 1ab4f88620dcf45872ec1c9d0e7945ecc651636d | [
"MIT"
] | 1 | 2018-12-29T10:39:56.000Z | 2018-12-29T10:39:56.000Z | include/magic.hpp | zborffs/Prometheus | 1ab4f88620dcf45872ec1c9d0e7945ecc651636d | [
"MIT"
] | 3 | 2021-11-12T06:44:46.000Z | 2021-11-12T06:47:56.000Z | include/magic.hpp | zborffs/Prometheus | 1ab4f88620dcf45872ec1c9d0e7945ecc651636d | [
"MIT"
] | null | null | null | #ifndef PROMETHEUS_MAGIC_HPP
#define PROMETHEUS_MAGIC_HPP
#include "defines.hpp"
#include "extern.hpp"
#include "bitmask.hpp"
#include <x86intrin.h>
#ifdef USE_SSE
#if defined (__GNUC__)
#if defined (__BMI2__)
extern uint16_t* rook_attacks[64];
extern uint16_t* bishop_attacks[64];
extern uint64_t rook_masks[64];
ext... | 28.022222 | 111 | 0.792228 | zborffs |
9872636f65ca6f797c0c60664af71b95daca9040 | 7,271 | hpp | C++ | src/mbgl/programs/collision_box_program.hpp | dataliz9r/mapbox-gl-native | 7cdc39bee90dbf7658cb280b4fba9e63de18bc31 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/mbgl/programs/collision_box_program.hpp | dataliz9r/mapbox-gl-native | 7cdc39bee90dbf7658cb280b4fba9e63de18bc31 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/mbgl/programs/collision_box_program.hpp | dataliz9r/mapbox-gl-native | 7cdc39bee90dbf7658cb280b4fba9e63de18bc31 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | #pragma once
#include <mbgl/programs/program.hpp>
#include <mbgl/programs/attributes.hpp>
#include <mbgl/programs/uniforms.hpp>
#include <mbgl/shaders/collision_box.hpp>
#include <mbgl/shaders/collision_circle.hpp>
#include <mbgl/style/properties.hpp>
#include <mbgl/util/geometry.hpp>
#include <cmath>
namespace mbgl... | 36.722222 | 135 | 0.602256 | dataliz9r |
9876f4e5980aff5a0bebcc1f60e67739ee3c06d5 | 4,308 | cpp | C++ | src/upcore/src/filesystem/posix/operations/absolute_path.cpp | upcaste/upcaste | 8174a2f40e7fde022806f8d1565bb4a415ecb210 | [
"MIT"
] | 1 | 2018-09-17T20:50:14.000Z | 2018-09-17T20:50:14.000Z | src/upcore/src/filesystem/posix/operations/absolute_path.cpp | jwtowner/upcaste | 8174a2f40e7fde022806f8d1565bb4a415ecb210 | [
"MIT"
] | null | null | null | src/upcore/src/filesystem/posix/operations/absolute_path.cpp | jwtowner/upcaste | 8174a2f40e7fde022806f8d1565bb4a415ecb210 | [
"MIT"
] | null | null | null | //
// Upcaste Performance Libraries
// Copyright (C) 2012-2013 Jesse W. Towner
//
// 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 lim... | 33.65625 | 91 | 0.56337 | upcaste |
9879d1ceabdae9df2980d94faf0ea7b7c8de3627 | 16,892 | hpp | C++ | src/ui/managers/WindowManager.hpp | inexorgame/entity-system | 230a6f116fb02caeace79bc9b32f17fe08687c36 | [
"MIT"
] | 19 | 2018-10-11T09:19:48.000Z | 2020-04-19T16:36:58.000Z | src/ui/managers/WindowManager.hpp | inexorgame-obsolete/entity-system-inactive | 230a6f116fb02caeace79bc9b32f17fe08687c36 | [
"MIT"
] | 132 | 2018-07-28T12:30:54.000Z | 2020-04-25T23:05:33.000Z | src/ui/managers/WindowManager.hpp | inexorgame-obsolete/entity-system-inactive | 230a6f116fb02caeace79bc9b32f17fe08687c36 | [
"MIT"
] | 3 | 2019-03-02T16:19:23.000Z | 2020-02-18T05:15:29.000Z | #pragma once
#include "base/LifeCycleComponent.hpp"
#include "MonitorManager.hpp"
#include "client/ClientLifecycle.hpp"
#include "entity-system/managers/entities/entity-instance-manager/EntityInstanceManager.hpp"
#include "entity-system/model/data/DataTypes.hpp"
#include "input/managers/KeyboardInputManager.hpp"
#incl... | 46.534435 | 225 | 0.738278 | inexorgame |
987d56fd802a7cf2ca78ad87a3d2a866543abc28 | 3,581 | hpp | C++ | src/v2/internal_aparse_grammar.hpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 2 | 2021-04-15T20:02:37.000Z | 2021-04-17T18:18:50.000Z | src/v2/internal_aparse_grammar.hpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 1 | 2019-10-07T10:41:52.000Z | 2019-10-07T10:41:52.000Z | src/v2/internal_aparse_grammar.hpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 1 | 2020-05-05T16:52:20.000Z | 2020-05-05T16:52:20.000Z | // Copyright: 2015 Mohit Saini
// Author: Mohit Saini (mohitsaini1196@gmail.com)
#ifndef APARSE_SRC_V2_INTERNAL_APARSE_GRAMMAR_HPP_
#define APARSE_SRC_V2_INTERNAL_APARSE_GRAMMAR_HPP_
#include <utility>
#include <list>
#include <string>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <set>... | 36.540816 | 80 | 0.724099 | mohitmv |
987dfb4f2323f5c3ee5b7dd51aa36020d7af0c57 | 6,008 | cpp | C++ | mp/src/game/client/fortress/resourcezoneoverlay.cpp | MaartenS11/Team-Fortress-Invasion | f36b96d27f834d94e0db2d2a9470b05b42e9b460 | [
"Unlicense"
] | 1 | 2021-03-20T14:27:45.000Z | 2021-03-20T14:27:45.000Z | mp/src/game/client/fortress/resourcezoneoverlay.cpp | MaartenS11/Team-Fortress-Invasion | f36b96d27f834d94e0db2d2a9470b05b42e9b460 | [
"Unlicense"
] | null | null | null | mp/src/game/client/fortress/resourcezoneoverlay.cpp | MaartenS11/Team-Fortress-Invasion | f36b96d27f834d94e0db2d2a9470b05b42e9b460 | [
"Unlicense"
] | null | null | null | #include "cbase.h"
#include <VGUI_EntityPanel.h>
#include <KeyValues.h>
#include "commanderoverlay.h"
#include "clientmode_tfnormal.h"
#include "tf_shareddefs.h"
#include "shareddefs.h"
#include "c_func_resource.h"
#include "techtree.h"
#include "c_basetfplayer.h"
#include "vgui_HealthBar.h"
#include "vgui_BitmapImage.... | 25.896552 | 132 | 0.565413 | MaartenS11 |
987e170d90dfc44b620e47d7fb76537248ef1ea0 | 14,697 | cpp | C++ | src/idatentest/main.cpp | nakdai/aten | f6de0840c1631bafbec3162da6a9af5767300e4d | [
"MIT"
] | 2 | 2017-09-29T02:36:45.000Z | 2017-11-16T03:25:25.000Z | src/idatentest/main.cpp | nakdai/aten | f6de0840c1631bafbec3162da6a9af5767300e4d | [
"MIT"
] | null | null | null | src/idatentest/main.cpp | nakdai/aten | f6de0840c1631bafbec3162da6a9af5767300e4d | [
"MIT"
] | null | null | null | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <imgui.h>
#include "aten.h"
#include "atenscene.h"
#include "idaten.h"
#include "../common/scenedefs.h"
#define ENABLE_ENVMAP
static int WIDTH = 1280;
static int HEIG... | 25.209262 | 133 | 0.564673 | nakdai |
9880985614eeca61f38b16c9ffc4f1f14995c3f3 | 29,850 | cpp | C++ | sparta/src/ConfigParserYAML.cpp | knute-sifive/map | fb25626830a56ad68ab896bcd01929023ff31c48 | [
"MIT"
] | null | null | null | sparta/src/ConfigParserYAML.cpp | knute-sifive/map | fb25626830a56ad68ab896bcd01929023ff31c48 | [
"MIT"
] | null | null | null | sparta/src/ConfigParserYAML.cpp | knute-sifive/map | fb25626830a56ad68ab896bcd01929023ff31c48 | [
"MIT"
] | null | null | null | // <ConfigParserYAML> -*- C++ -*-
#include <cassert>
#include <yaml-cpp/node/impl.h>
#include <yaml-cpp/node/node.h>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <cstddef>
#include <yaml-cpp/anchor.h>
#include <yaml-cpp/emitterstyle.h>
#include <yaml-cpp/mark.h>
#include <ya... | 48.22294 | 192 | 0.479799 | knute-sifive |
98815a520bf31d25aeac0f04e309df6294cfa41f | 19,577 | cpp | C++ | tc 160+/FoxSearchingRuins.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/FoxSearchingRuins.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/FoxSearchingRuins.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int bestval[1001][1001];
int bestval2[1001][1001];
struct jewel {
int x, y, v;
jewel(int x_, int y_, i... | 47.982843 | 447 | 0.427543 | ibudiselic |
9882f664ec54e7d3e5a94a7eff8ed960a2dcf1f8 | 6,215 | cpp | C++ | unit_tests/test_classes/const_functions.cpp | SoapyMan/oolua | 9d25a865b05bbb6aaff56726b46e5b746572e490 | [
"MIT"
] | 4 | 2018-12-19T09:30:24.000Z | 2021-06-26T05:38:11.000Z | unit_tests/test_classes/const_functions.cpp | SoapyMan/oolua | 9d25a865b05bbb6aaff56726b46e5b746572e490 | [
"MIT"
] | null | null | null | unit_tests/test_classes/const_functions.cpp | SoapyMan/oolua | 9d25a865b05bbb6aaff56726b46e5b746572e490 | [
"MIT"
] | 2 | 2017-03-28T18:38:30.000Z | 2018-10-17T19:01:05.000Z |
# include "oolua_tests_pch.h"
# include "oolua.h"
# include "common_cppunit_headers.h"
# include "gmock/gmock.h"
# include "expose_const_func.h"
namespace
{
struct ConstantMockHelper
{
ConstantMockHelper()
: mock()
, ptr_to_const(&mock)
, ptr_to(&mock)
{}
ConstantMock mock;
Constant const* ptr_to_c... | 34.72067 | 108 | 0.799678 | SoapyMan |
98854f72a0dae86d558a5c2a641d0428297072bb | 2,715 | cpp | C++ | tests/test_for_Status.cpp | PGZXB/PGBigNumber | a0f128a0b415bd1a63929c55c2f952205c1a59df | [
"MIT"
] | 2 | 2021-10-25T23:56:54.000Z | 2022-01-02T06:35:49.000Z | tests/test_for_Status.cpp | PGZXB/PGBigNumber | a0f128a0b415bd1a63929c55c2f952205c1a59df | [
"MIT"
] | 1 | 2021-11-12T09:03:39.000Z | 2021-12-27T02:03:41.000Z | tests/test_for_Status.cpp | PGZXB/PGBigNumber | a0f128a0b415bd1a63929c55c2f952205c1a59df | [
"MIT"
] | null | null | null | #include "Status.h"
#include <iostream>
#define STATUS (*pgbn::Status::getInstance())
std::int8_t a = 0, b = 0;
std::int8_t c = 0;
enum class CALCU_STATUS : pgbn::Enum {
SUCCESS,
DIV_ZERO_ERR,
ADD_OVERFLOW_ERR,
SUB_OVERFLOW_ERR,
ADD_GLOB_A_AND_B_ERROR,
};
#define TO_ENUM(val) static_cast<pgbn::... | 24.241071 | 141 | 0.580479 | PGZXB |
98877f9748bf6d391328816228d16d81cad82645 | 741 | hpp | C++ | libraries/CMakeServerConnector/include/Messages/HandshakeRequest.hpp | Megaxela/HGEngineReloadedEditor | be79b6089985da1bf811be8a6d06ce25f71236b1 | [
"MIT"
] | null | null | null | libraries/CMakeServerConnector/include/Messages/HandshakeRequest.hpp | Megaxela/HGEngineReloadedEditor | be79b6089985da1bf811be8a6d06ce25f71236b1 | [
"MIT"
] | null | null | null | libraries/CMakeServerConnector/include/Messages/HandshakeRequest.hpp | Megaxela/HGEngineReloadedEditor | be79b6089985da1bf811be8a6d06ce25f71236b1 | [
"MIT"
] | 1 | 2020-03-12T04:39:14.000Z | 2020-03-12T04:39:14.000Z | #pragma once
#include <Messages/BasicMessage.hpp>
#include <Version.hpp>
#include <Messages/Register.hpp>
struct HandshakeRequest : public BasicMessage
{
HandshakeRequest() :
sourceDirectory(),
buildDirectory(),
generator(),
protocolVersion()
{
type = Messages::Type::Ha... | 21.794118 | 72 | 0.672065 | Megaxela |
988fb19474526c03629437f7759cd979b03d7665 | 10,133 | cpp | C++ | code/src/engine/application/window_user32.cpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 3 | 2020-04-29T14:55:58.000Z | 2020-08-20T08:43:24.000Z | code/src/engine/application/window_user32.cpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 1 | 2022-03-12T11:37:46.000Z | 2022-03-12T20:17:38.000Z | code/src/engine/application/window_user32.cpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | null | null | null | #include "config.h"
#if WINDOW_USE_USER32
#include "window.hpp"
#include "engine/application/config.hpp"
#include "engine/debug.hpp"
#if TEXT_USE_USER32
# include "utility/unicode/string_view.hpp"
#endif
#include <windowsx.h>
#include <windows.h>
#if HAVE_VERSIONHELPERS_H
# include <versionhelpers.h>
#endif
names... | 28.147222 | 123 | 0.571992 | shossjer |
989213e950580ce23b78398ef53a8e6a90dce76e | 15,564 | cpp | C++ | src/planner.cpp | zgh551/ros_rrt_bias | fd0596603d11acd19dc05d263f6eb3e3354297ae | [
"Apache-2.0"
] | 1 | 2021-12-06T07:39:22.000Z | 2021-12-06T07:39:22.000Z | src/planner.cpp | zgh551/ros_rrt_bias | fd0596603d11acd19dc05d263f6eb3e3354297ae | [
"Apache-2.0"
] | null | null | null | src/planner.cpp | zgh551/ros_rrt_bias | fd0596603d11acd19dc05d263f6eb3e3354297ae | [
"Apache-2.0"
] | 1 | 2021-12-28T02:10:08.000Z | 2021-12-28T02:10:08.000Z | /*
* @brief The planner
*/
#include "../include/planner.h"
#include "../include/rrt_bias.h"
#include "../include/obstacle_checker.h"
#include "../include/convolution.h"
// the tf
#include <algorithm>
#include <fftw3.h>
#include <geometry_msgs/PoseArray.h>
#include <geometry_msgs/PoseStamped.h>
#include <nav_msgs/Oc... | 33.982533 | 121 | 0.663133 | zgh551 |
9892ef902a25ceaccf9a96230a579e8f3533dd08 | 620 | hpp | C++ | src/main/cpp/pdf_tin/DocumentCreationError.hpp | tomault/pdf_tin | 5d33d87a622327fd5cb50e895435b454c02ecf06 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/pdf_tin/DocumentCreationError.hpp | tomault/pdf_tin | 5d33d87a622327fd5cb50e895435b454c02ecf06 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/pdf_tin/DocumentCreationError.hpp | tomault/pdf_tin | 5d33d87a622327fd5cb50e895435b454c02ecf06 | [
"Apache-2.0"
] | null | null | null | #ifndef __PDF_TIN__DOCUMENTCREATIONERROR_HPP__
#define __PDF_TIN__DOCUMENTCREATIONERROR_HPP__
#include <exception>
#include <string>
namespace pdf_tin {
class DocumentCreationError : public std::exception {
public:
DocumentCreationError(const std::string& source,
const std::string& details);
Document... | 23.846154 | 70 | 0.730645 | tomault |
98934539dc932761deef2fe8b71535036ff89ed6 | 500 | cpp | C++ | Common/BackupFileName.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 67 | 2018-03-02T10:50:02.000Z | 2022-03-23T18:20:29.000Z | Common/BackupFileName.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | null | null | null | Common/BackupFileName.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 9 | 2018-03-01T16:38:28.000Z | 2021-03-02T16:17:09.000Z | //----------------------------------
// (c) Reliable Software, 2008
//----------------------------------
#include "precompiled.h"
#include "BackupFileName.h"
#include "RegFunc.h"
#include <TimeStamp.h>
#include <File/File.h>
BackupFileName::BackupFileName ()
{
_fileName = "Code Co-op Backup for ";
_fileName += R... | 22.727273 | 43 | 0.592 | BartoszMilewski |
9894888fd6231d04f5f4963037c49d634dc9c50c | 609 | cpp | C++ | Ex2/Ex2.cpp | SAE-Geneve/debug-exam-past-Okyriio | c5687df1522b800006d8e6414b18d96af1f1c46a | [
"MIT"
] | null | null | null | Ex2/Ex2.cpp | SAE-Geneve/debug-exam-past-Okyriio | c5687df1522b800006d8e6414b18d96af1f1c46a | [
"MIT"
] | null | null | null | Ex2/Ex2.cpp | SAE-Geneve/debug-exam-past-Okyriio | c5687df1522b800006d8e6414b18d96af1f1c46a | [
"MIT"
] | null | null | null | #include <iostream>
void swaps(int* a, int* b)
{
//This function swaps the values contained in the two pointers
int c = *a ;
a = b;
b = &c;
}
void print_values(int* a, int* b)
{
//This function shows the values and their pointer
std::cout << "The value of a is: "<< *a << " and is contained in a... | 17.4 | 89 | 0.558292 | SAE-Geneve |
989523041e2f023d91c8dd15cd89d3ff33cd2af9 | 2,012 | cpp | C++ | ww-example/Example.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | 8 | 2021-07-08T18:06:33.000Z | 2022-01-17T18:29:57.000Z | ww-example/Example.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | null | null | null | ww-example/Example.cpp | koalefant/yasli | 2096ed8a59ae9c7da467d8de8f1eb811a989dc39 | [
"MIT"
] | 1 | 2021-12-31T15:52:56.000Z | 2021-12-31T15:52:56.000Z | #include "ww/Win32/Types.h"
#include "ww/Application.h"
#include "ww/Window.h"
#include "ww/VBox.h"
#include "ww/HBox.h"
#include "ww/VSplitter.h"
#include "ww/HSplitter.h"
#include "ww/ScrolledWindow.h"
#include "ww/Tabs.h"
#include "ww/PropertyTree.h"
#include "ww/Frame.h"
#include "ww/Serialization.... | 21.634409 | 98 | 0.686382 | koalefant |
989e38a565b2462e4f35217dbda08e6be37e6825 | 11,774 | cpp | C++ | NOLF/ClientShellDLL/PolyDebrisFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 65 | 2015-02-28T03:35:14.000Z | 2021-09-23T05:43:33.000Z | NOLF/ClientShellDLL/PolyDebrisFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | null | null | null | NOLF/ClientShellDLL/PolyDebrisFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 27 | 2015-02-28T07:42:01.000Z | 2022-02-11T01:35:20.000Z | // ----------------------------------------------------------------------- //
//
// MODULE : PolyDebrisFX.cpp
//
// PURPOSE : Polygon Debris - Implementation
//
// CREATED : 7/16/99
//
// (c) 1999 Monolith Productions, Inc. All Rights Reserved
//
// ----------------------------------------------------------... | 30.423773 | 137 | 0.585612 | rastrup |
98a0574de5a4f3f68a4dfff7fd588030514b7b20 | 1,480 | cpp | C++ | LookupVerb/src/main/LookupVerb.cpp | 3bananas4/Spanish | af8ca51a746ef4f14773200ddd7edee7f64253b3 | [
"MIT"
] | null | null | null | LookupVerb/src/main/LookupVerb.cpp | 3bananas4/Spanish | af8ca51a746ef4f14773200ddd7edee7f64253b3 | [
"MIT"
] | null | null | null | LookupVerb/src/main/LookupVerb.cpp | 3bananas4/Spanish | af8ca51a746ef4f14773200ddd7edee7f64253b3 | [
"MIT"
] | null | null | null | //============================================================================
// Name : LookupVerb.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Reads in a file, supplied on command line
// builds a dictionary of english-> spanish verb infinitives
// rece... | 25.964912 | 79 | 0.595946 | 3bananas4 |
98a07395436b7ba2cd3f06bd7e8afe71db663603 | 1,325 | hpp | C++ | include/paal/utils/less_pointees.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/utils/less_pointees.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/utils/less_pointees.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | 1 | 2021-02-24T06:23:56.000Z | 2021-02-24T06:23:56.000Z | //=======================================================================
// Copyright (c) 2013 Piotr Wygocki
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================================... | 24.537037 | 79 | 0.623396 | Kommeren |
98a19b4c0b10faa4440a3adf641b0a98e0da9710 | 663 | cpp | C++ | mainProject/SrcUI/AboutGui.cpp | WelinLee/qt_cmake_project | b69621a82c5a68ca23c5a216d74ddfea5051bae7 | [
"MIT"
] | 1 | 2019-02-27T07:31:24.000Z | 2019-02-27T07:31:24.000Z | mainProject/SrcUI/AboutGui.cpp | WelinLee/qt_cmake_project | b69621a82c5a68ca23c5a216d74ddfea5051bae7 | [
"MIT"
] | null | null | null | mainProject/SrcUI/AboutGui.cpp | WelinLee/qt_cmake_project | b69621a82c5a68ca23c5a216d74ddfea5051bae7 | [
"MIT"
] | null | null | null | #include "AboutGui.h"
#include "ui_AboutGui.h"
#include <QPushButton>
#define qAppDir QCoreApplication::applicationDirPath()
AboutGUI::AboutGUI(QWidget *parent)
: QWidget(parent),
ui(new Ui::AboutGUI)
{
ui->setupUi(this);
this->setWindowTitle(QStringLiteral("About Us"));
this->setWindowModality(... | 20.71875 | 80 | 0.699849 | WelinLee |
98a200027baf0798e03d961d389bae66abdafacb | 43,087 | hh | C++ | dune/ax1/acme2_cyl/common/acme2_cyl_simulation.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | dune/ax1/acme2_cyl/common/acme2_cyl_simulation.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | dune/ax1/acme2_cyl/common/acme2_cyl_simulation.hh | pederpansen/dune-ax1 | 152153824d95755a55bdd4fba80686863e928196 | [
"BSD-3-Clause"
] | null | null | null | /*
* acme2_cyl_fully_coupled.hh
*
* Created on: Dec 15, 2011
* Author: jpods
*/
#ifndef DUNE_AX1_ACME2CYL_SIMULATION_HH
#define DUNE_AX1_ACME2CYL_SIMULATION_HH
#include <dune/ax1/common/tools.hh>
#include <dune/ax1/common/ax1_boundaryfunction_membranefunction_adapter.hh>
template<typename Traits,typename ... | 45.886049 | 130 | 0.575905 | pederpansen |
98a22b41d985c8ab13bb12fed4efe0b406a71953 | 524 | hpp | C++ | PlanetLab/src/engine/Skybox.hpp | Thomas-Zorroche/Procedural-Planets | 44f8a9fa3120d11d137e4f499142333e81ed68ce | [
"MIT"
] | null | null | null | PlanetLab/src/engine/Skybox.hpp | Thomas-Zorroche/Procedural-Planets | 44f8a9fa3120d11d137e4f499142333e81ed68ce | [
"MIT"
] | null | null | null | PlanetLab/src/engine/Skybox.hpp | Thomas-Zorroche/Procedural-Planets | 44f8a9fa3120d11d137e4f499142333e81ed68ce | [
"MIT"
] | null | null | null | #pragma once
#include "engine/ResourceManager.hpp"
#include "opengl/Mesh.hpp"
#include "common.hpp"
#include "engine/Material.hpp"
#include "opengl/Shader.h"
#include "engine/Renderer.hpp"
namespace PlanetLab
{
class Skybox
{
public:
Skybox(const std::vector<std::string>& faces);
void GenerateMesh();
void Dra... | 14.162162 | 47 | 0.721374 | Thomas-Zorroche |
98a4b254ef4011043ec5f3eb6c2eca314ac5bd4a | 26,063 | cpp | C++ | src/xml_parse.cpp | incoder1/libio | fbfd83fe31ca59a69670e5269f5847b2b4c6c553 | [
"BSL-1.0"
] | 14 | 2018-06-12T15:42:43.000Z | 2022-02-28T16:19:20.000Z | src/xml_parse.cpp | incoder1/libio | fbfd83fe31ca59a69670e5269f5847b2b4c6c553 | [
"BSL-1.0"
] | null | null | null | src/xml_parse.cpp | incoder1/libio | fbfd83fe31ca59a69670e5269f5847b2b4c6c553 | [
"BSL-1.0"
] | null | null | null | /*
*
* Copyright (c) 2016-2019
* Viktor Gubin
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/
#include "stdafx.hpp"
#include "xml_parse.hpp"
#include "stri... | 26.352882 | 133 | 0.654146 | incoder1 |
f0fa72f58c4b7b8ccb451322ec10619757e48b47 | 1,529 | hpp | C++ | src/core/sinuscontroller.hpp | Yorokobii/SpLiCE | 4e016b04c04a14154be5c60ca3843300b69d22fa | [
"Apache-2.0"
] | null | null | null | src/core/sinuscontroller.hpp | Yorokobii/SpLiCE | 4e016b04c04a14154be5c60ca3843300b69d22fa | [
"Apache-2.0"
] | null | null | null | src/core/sinuscontroller.hpp | Yorokobii/SpLiCE | 4e016b04c04a14154be5c60ca3843300b69d22fa | [
"Apache-2.0"
] | null | null | null | #ifndef SINCELL_CONTROLLER_HPP
#define SINCELL_CONTROLLER_HPP
#include <mecacell/mecacell.h>
#include <random>
#include <string>
struct SinController {
public:
SinController() {}
static SinController random() {
return SinController();
}
double getInput(const std::string &input, const int& verb = 1) cons... | 23.166667 | 95 | 0.621321 | Yorokobii |
f0ff98642109064c50dc6c93381de368e9918ce3 | 4,648 | cc | C++ | libspindle/adt/Forest/EliminationForest.cc | Kumfert/Spindle | d5f2cab92c86c547efbf09fb30be9d478da04332 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | libspindle/adt/Forest/EliminationForest.cc | Kumfert/Spindle | d5f2cab92c86c547efbf09fb30be9d478da04332 | [
"BSD-4-Clause",
"FSFAP"
] | null | null | null | libspindle/adt/Forest/EliminationForest.cc | Kumfert/Spindle | d5f2cab92c86c547efbf09fb30be9d478da04332 | [
"BSD-4-Clause",
"FSFAP"
] | 1 | 2021-01-19T16:36:28.000Z | 2021-01-19T16:36:28.000Z | //
// EliminationForest.cc
//
// $Id: EliminationForest.cc,v 1.2 2000/02/18 01:31:44 kumfert Exp $
//
// Gary Kumfert, Old Dominion University
// Copyright(c) 1997, Old Dominion University. All rights reserved.
//
// Permission to use, copy, modify, distribute and sell this software and
// its documentation for ... | 28.869565 | 99 | 0.648021 | Kumfert |
0b00c5049488bb7b165b54a0384c4986b522aab0 | 18,651 | cpp | C++ | ndn-cxx/net/impl/netlink-socket.cpp | KITE-2018/kite-ndn-cxx | 2a674e2bab42a39d0731b0a30c4d49369b084c1c | [
"OpenSSL"
] | 4 | 2021-04-21T02:48:49.000Z | 2021-06-25T06:08:58.000Z | ndn-cxx/net/impl/netlink-socket.cpp | KITE-2018/kite-ndn-cxx | 2a674e2bab42a39d0731b0a30c4d49369b084c1c | [
"OpenSSL"
] | 11 | 2020-12-27T23:02:56.000Z | 2021-10-18T08:00:50.000Z | ndn-cxx/net/impl/netlink-socket.cpp | KITE-2018/kite-ndn-cxx | 2a674e2bab42a39d0731b0a30c4d49369b084c1c | [
"OpenSSL"
] | 3 | 2021-02-28T10:04:09.000Z | 2021-09-23T05:01:00.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2019 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... | 30.376221 | 107 | 0.660501 | KITE-2018 |
0b0272c6b9579238df9db13a04f5fcb677c92529 | 690 | cpp | C++ | src/fw/CrtThumbprint.cpp | jnmeurisse/FortiRDP | 53f48413c8a292304de27468b271847534353c61 | [
"Apache-2.0"
] | null | null | null | src/fw/CrtThumbprint.cpp | jnmeurisse/FortiRDP | 53f48413c8a292304de27468b271847534353c61 | [
"Apache-2.0"
] | null | null | null | src/fw/CrtThumbprint.cpp | jnmeurisse/FortiRDP | 53f48413c8a292304de27468b271847534353c61 | [
"Apache-2.0"
] | 1 | 2022-02-19T19:47:43.000Z | 2022-02-19T19:47:43.000Z | /*!
* This file is part of FortiRDP
*
* Copyright (C) 2022 Jean-Noel Meurisse
* SPDX-License-Identifier: Apache-2.0
*
*/
#include <string>
#include "CrtThumbprint.h"
#include "mbedtls\sha256.h"
namespace fw {
CrtThumbprint::CrtThumbprint()
{
std::memset(_thumbprint, 0, sizeof(_thumbprint));
}
CrtThumbprint::... | 18.648649 | 79 | 0.710145 | jnmeurisse |
0b02ac2b81b5ad8bafbfbfa91c437882338184c7 | 11,669 | cpp | C++ | bt_editor/models/BehaviorTreeNodeModel.cpp | ipa-foj/Groot | 133b67c6f0a1fa677b25a4d5c19b7623512be9c1 | [
"Unlicense"
] | null | null | null | bt_editor/models/BehaviorTreeNodeModel.cpp | ipa-foj/Groot | 133b67c6f0a1fa677b25a4d5c19b7623512be9c1 | [
"Unlicense"
] | null | null | null | bt_editor/models/BehaviorTreeNodeModel.cpp | ipa-foj/Groot | 133b67c6f0a1fa677b25a4d5c19b7623512be9c1 | [
"Unlicense"
] | null | null | null | #include "BehaviorTreeNodeModel.hpp"
#include <QBoxLayout>
#include <QFormLayout>
#include <QSizePolicy>
#include <QLineEdit>
#include <QComboBox>
#include <QDebug>
#include <QFile>
#include <QFont>
#include <QApplication>
const int MARGIN = 10;
const int DEFAULT_LINE_WIDTH = 100;
const int DEFAULT_FIELD_WIDTH = 50;
... | 31.117333 | 98 | 0.63673 | ipa-foj |
0b0344b09fe7c831f999838b421ef9a6952e0ddf | 352 | hpp | C++ | include/GOL/cell.hpp | jonathanabrahams/cpp-game-of-life | 046b985e6e12c68005b0c4788e5a8db828d17474 | [
"MIT"
] | null | null | null | include/GOL/cell.hpp | jonathanabrahams/cpp-game-of-life | 046b985e6e12c68005b0c4788e5a8db828d17474 | [
"MIT"
] | null | null | null | include/GOL/cell.hpp | jonathanabrahams/cpp-game-of-life | 046b985e6e12c68005b0c4788e5a8db828d17474 | [
"MIT"
] | null | null | null | #ifndef __GOL_CELL_HPP__
#define __GOL_CELL_HPP__
namespace GOL
{
enum CellState
{
Alive,
Dead,
Unknown
};
class Cell
{
public:
explicit Cell(CellState);
bool alive() const;
bool dead() const;
bool unknown() const;
private:
Cel... | 14.666667 | 33 | 0.542614 | jonathanabrahams |
0b08667a3134cf4b3e082f23927e298facbc9223 | 3,621 | hpp | C++ | src/Renderer.hpp | sakhnik/neovim-sdl2 | eb4e8375a5d756fee3fe619cc273b68362f8989e | [
"MIT"
] | 21 | 2021-05-02T00:03:14.000Z | 2022-03-28T23:25:40.000Z | src/Renderer.hpp | sakhnik/nvim-ui | 3c51f22d875de1f9127294ef8e0f838e766f66ea | [
"MIT"
] | 18 | 2021-04-22T04:03:34.000Z | 2022-02-05T21:17:25.000Z | src/Renderer.hpp | sakhnik/neovim-sdl2 | eb4e8375a5d756fee3fe619cc273b68362f8989e | [
"MIT"
] | null | null | null | #pragma once
#include "HlAttr.hpp"
#include "GridLine.hpp"
#include "AsyncExec.hpp"
#include "Timer.hpp"
#include <vector>
#include <unordered_map>
#include <string_view>
#include <string>
#include <mutex>
#include <chrono>
class MsgPackRpc;
struct IWindow;
class Renderer
{
public:
Renderer(uv_loop_t *, MsgPack... | 30.948718 | 97 | 0.685998 | sakhnik |
0b13e070b7705329fb1d3d2a32a8209d0d4b1165 | 2,110 | cpp | C++ | Eudora71/MAPI/filedesc.cpp | dusong7/eudora-win | 850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2 | [
"BSD-3-Clause-Clear"
] | 10 | 2018-05-23T10:43:48.000Z | 2021-12-02T17:59:48.000Z | Eudora71/MAPI/filedesc.cpp | ivanagui2/hermesmail-code | 34387722d5364163c71b577fc508b567de56c5f6 | [
"BSD-3-Clause-Clear"
] | 1 | 2019-03-19T03:56:36.000Z | 2021-05-26T18:36:03.000Z | Eudora71/MAPI/filedesc.cpp | ivanagui2/hermesmail-code | 34387722d5364163c71b577fc508b567de56c5f6 | [
"BSD-3-Clause-Clear"
] | 11 | 2018-05-23T10:43:53.000Z | 2021-12-27T15:42:58.000Z | ////////////////////////////////////////////////////////////////////////
//
// CMapiFileDesc
//
// Intelligent C++ object wrapper for dumb C-based MapiFileDesc structure.
//
////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
//#include <afxwin.h> // FORNOW, should probably b... | 26.375 | 74 | 0.447867 | dusong7 |
0b13f66f9e949667995774aec6f15b3c1356f4d4 | 501 | cpp | C++ | VehicleManagement/VehicleManage/inputtaxdialog.cpp | maanjun/IVM | fe7f58c0e45b2471357fafcc63328d903f08ea76 | [
"Apache-2.0"
] | null | null | null | VehicleManagement/VehicleManage/inputtaxdialog.cpp | maanjun/IVM | fe7f58c0e45b2471357fafcc63328d903f08ea76 | [
"Apache-2.0"
] | null | null | null | VehicleManagement/VehicleManage/inputtaxdialog.cpp | maanjun/IVM | fe7f58c0e45b2471357fafcc63328d903f08ea76 | [
"Apache-2.0"
] | null | null | null | #include "inputtaxdialog.h"
#include "ui_inputtaxdialog.h"
InputTaxDialog::InputTaxDialog(QWidget *parent) :
BaseDialog(parent),
ui(new Ui::InputTaxDialog)
{
ui->setupUi(this);
}
InputTaxDialog::~InputTaxDialog()
{
delete ui;
}
void InputTaxDialog::on_pBtnHomepage_clicked()
{
m_pCountdownTimer->stop()... | 17.275862 | 49 | 0.736527 | maanjun |
0b16196aec35de9d41319b5e9ee6bf4d07f7c08a | 3,436 | hpp | C++ | Libs/GuiSys/CompListBox.hpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/GuiSys/CompListBox.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/GuiSys/CompListBox.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#ifndef CAFU_GUISYS_COMPONENT_LISTBOX_HPP_INCLUDED
#define CAFU_GUISYS_COMPONENT_LISTBOX_HPP_INCLUDED
#include "CompBase.hpp"
namespace cf
{
namespace GuiSys
... | 42.95 | 202 | 0.621071 | dns |
0b1b5057431c8106ee0c3c1e1bfa32be4f54044a | 2,437 | cpp | C++ | src/BudgetManager.cpp | MichalWilczek/your-budget | fb0ace51a1e4ea9013398fef945798d2695659cf | [
"MIT"
] | null | null | null | src/BudgetManager.cpp | MichalWilczek/your-budget | fb0ace51a1e4ea9013398fef945798d2695659cf | [
"MIT"
] | null | null | null | src/BudgetManager.cpp | MichalWilczek/your-budget | fb0ace51a1e4ea9013398fef945798d2695659cf | [
"MIT"
] | null | null | null | #include "BudgetManager.h"
void BudgetManager::showBalance(string startDate, string endDate) {
double totalIncome = 0;
double totalExpenses = 0;
system("cls");
if (incomeManager.areTransactionsAvailable()) {
cout << " >>> INCOME <<<" << endl << endl;
incomeManager.showTransactions(sta... | 32.065789 | 102 | 0.675831 | MichalWilczek |
0b1c30f2b142a6ed009b852174d40113e91ba96c | 5,231 | cpp | C++ | src/Interpreters/ExternalUserDefinedExecutableFunctionsLoader.cpp | ivoleg/ClickHouse | 16e173f0c024e36cd253388abac2ecc513686d87 | [
"Apache-2.0"
] | 1 | 2021-12-12T10:33:27.000Z | 2021-12-12T10:33:27.000Z | src/Interpreters/ExternalUserDefinedExecutableFunctionsLoader.cpp | ivoleg/ClickHouse | 16e173f0c024e36cd253388abac2ecc513686d87 | [
"Apache-2.0"
] | null | null | null | src/Interpreters/ExternalUserDefinedExecutableFunctionsLoader.cpp | ivoleg/ClickHouse | 16e173f0c024e36cd253388abac2ecc513686d87 | [
"Apache-2.0"
] | null | null | null | #include "ExternalUserDefinedExecutableFunctionsLoader.h"
#include <DataTypes/DataTypeFactory.h>
#include <Interpreters/UserDefinedExecutableFunction.h>
#include <Interpreters/UserDefinedExecutableFunctionFactory.h>
#include <Functions/FunctionFactory.h>
#include <AggregateFunctions/AggregateFunctionFactory.h>
name... | 42.185484 | 204 | 0.758555 | ivoleg |
0b1d1aaa7547010c73d8162e55c32904dd4efb0d | 2,522 | cpp | C++ | third_party/subzero/crosstest/test_icmp.cpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/subzero/crosstest/test_icmp.cpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/subzero/crosstest/test_icmp.cpp | sunnycase/swiftshader | 592bce0dc7daaa8d2c7ee4b94bec98e0e7beeacc | [
"Apache-2.0"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | //===- subzero/crosstest/test_icmp.cpp - Implementation for tests ---------===//
//
// The Subzero Code Generator
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------... | 51.469388 | 80 | 0.450833 | sunnycase |
0b1ffcf08c9a1ffbc7b56d18c8745c75793bfc3e | 422 | cpp | C++ | Minigin/ThreadComponent.cpp | Zakatos/Component-Game-Engine | c52f49ada5c23cdee502f4d3a8ce09392d6bcae9 | [
"MIT"
] | null | null | null | Minigin/ThreadComponent.cpp | Zakatos/Component-Game-Engine | c52f49ada5c23cdee502f4d3a8ce09392d6bcae9 | [
"MIT"
] | null | null | null | Minigin/ThreadComponent.cpp | Zakatos/Component-Game-Engine | c52f49ada5c23cdee502f4d3a8ce09392d6bcae9 | [
"MIT"
] | null | null | null | #include "MiniginPCH.h"
#include "ThreadComponent.h"
#include "ThreadManager.h"
ThreadComponent::ThreadComponent()
{
}
ThreadComponent::~ThreadComponent()
{
}
void ThreadComponent::init()
{
std::shared_ptr<std::thread> threadObj = std::make_shared<std::thread>(&ThreadComponent::update, this);
ThreadManager::GetI... | 16.88 | 104 | 0.746445 | Zakatos |
0b231e24d58e032f02073f7d28166bf58ae015b7 | 3,163 | cc | C++ | sparselets/tile_sparselet_resps.cc | rksltnl/sparselet-release1 | bf7977c2b886961c35506184796b04021206b62b | [
"BSD-2-Clause"
] | 4 | 2015-03-23T05:55:23.000Z | 2019-03-05T02:18:39.000Z | sparselets/tile_sparselet_resps.cc | rksltnl/sparselet-release1 | bf7977c2b886961c35506184796b04021206b62b | [
"BSD-2-Clause"
] | null | null | null | sparselets/tile_sparselet_resps.cc | rksltnl/sparselet-release1 | bf7977c2b886961c35506184796b04021206b62b | [
"BSD-2-Clause"
] | 10 | 2015-03-23T05:55:24.000Z | 2019-03-05T02:18:51.000Z | #include <sys/types.h>
#include "mex.h"
const int S = 3;
const int NUM_SUB_FILTERS = 4;
/*
* Hyun Oh Song (song@eecs.berkeley.edu)
* Part filter tiling
*/
void tile_sparselets(double* Q_ptr, double* P_ptr, int s_dimy, int s_dimx, int out_dimy, int out_dimx, int i){
// Q_ptr points to head of ith filter respo... | 29.018349 | 110 | 0.566235 | rksltnl |
0b23d3eda0f184c0181cd96ba03744d32b50cc60 | 342 | cpp | C++ | OpenKattis/dicecup.cpp | MFathirIrhas/ProgrammingChallenges | 8c67bd71212a1941e5bcc0463095285859afa04d | [
"MIT"
] | 3 | 2020-10-19T10:03:20.000Z | 2021-12-18T20:39:31.000Z | OpenKattis/dicecup.cpp | MFathirIrhas/ProgrammingChallenges | 8c67bd71212a1941e5bcc0463095285859afa04d | [
"MIT"
] | null | null | null | OpenKattis/dicecup.cpp | MFathirIrhas/ProgrammingChallenges | 8c67bd71212a1941e5bcc0463095285859afa04d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void PrintResult(int *n, int *m){
if(*n == *m){
cout<< *n + 1;
}else if(*n < *m){
for(int i=*n + 1; i<= *m+1; i++){
cout<<i<<endl;
}
}else{
for(int i=*m + 1; i<= *n+1; i++){
cout<<i<<endl;
}
}
}
int main(){
int n,m;
cin>>n>>m;
PrintResult(&n,&m);
co... | 13.153846 | 35 | 0.48538 | MFathirIrhas |
0b2e451f57935f73601fedadf1b8c26e03989a86 | 343 | cpp | C++ | usaco/madscientist.cpp | datpq/competitive-programming | ed5733cc55fa4167c4a2e828894b044ea600dcac | [
"MIT"
] | 1 | 2022-02-24T21:35:18.000Z | 2022-02-24T21:35:18.000Z | usaco/madscientist.cpp | datpq/competitive-programming | ed5733cc55fa4167c4a2e828894b044ea600dcac | [
"MIT"
] | null | null | null | usaco/madscientist.cpp | datpq/competitive-programming | ed5733cc55fa4167c4a2e828894b044ea600dcac | [
"MIT"
] | 1 | 2022-02-12T14:40:21.000Z | 2022-02-12T14:40:21.000Z | #include <fstream>
#include <string>
using namespace std;
int main() {
ifstream ifs("breedflip.in");
ofstream ofs("breedflip.out");
int n; string a, b; ifs >> n >> a >> b;
int ans = 0;
for (int i = 0; i < n; i++) {
if (a[i] != b[i]) {
ans++;
while (i < n-1 && a[i + 1] != b[i + 1]) i++;
}
}
ofs << ans... | 17.15 | 47 | 0.504373 | datpq |
0b31e9c46850c30e6cbe2dc6d22a360fef03ddb2 | 1,326 | cc | C++ | critic/test/art/Throwing_service.cc | art-framework-suite/critic | bf9289facca1adc110e1bfa5d788f9f2354b2d40 | [
"BSD-3-Clause"
] | null | null | null | critic/test/art/Throwing_service.cc | art-framework-suite/critic | bf9289facca1adc110e1bfa5d788f9f2354b2d40 | [
"BSD-3-Clause"
] | null | null | null | critic/test/art/Throwing_service.cc | art-framework-suite/critic | bf9289facca1adc110e1bfa5d788f9f2354b2d40 | [
"BSD-3-Clause"
] | null | null | null | // ======================================================================
// Throwing is a service that throws an exception when the
// postProcessEvent signal is emitted.
// ======================================================================
#include "art/Framework/Principal/fwd.h"
#include "art/Framework/Services... | 31.571429 | 73 | 0.680241 | art-framework-suite |
0b3474bcc6ff1d547ae668a3e2e8e620687081e0 | 1,723 | hpp | C++ | src/common/optimization/include/optimization/line_search/fixed_line_search.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 19 | 2021-05-28T06:14:21.000Z | 2022-03-10T10:03:08.000Z | src/common/optimization/include/optimization/line_search/fixed_line_search.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 222 | 2021-10-29T22:00:27.000Z | 2022-03-29T20:56:34.000Z | src/common/optimization/include/optimization/line_search/fixed_line_search.hpp | ruvus/auto | 25ae62d6e575cae40212356eed43ec3e76e9a13e | [
"Apache-2.0"
] | 14 | 2021-05-29T14:59:17.000Z | 2022-03-10T10:03:09.000Z | // Copyright 2020 the Autoware Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | 31.327273 | 80 | 0.761463 | ruvus |
0b351c095f964ef97052abe98ea9233127b51ad8 | 2,227 | cpp | C++ | kthlis.cpp | qbbd/Algorithm_List | b3c9d97e20c7a10eaa908f8d98654319ac95f302 | [
"MIT"
] | null | null | null | kthlis.cpp | qbbd/Algorithm_List | b3c9d97e20c7a10eaa908f8d98654319ac95f302 | [
"MIT"
] | 7 | 2018-04-08T01:47:01.000Z | 2018-06-07T23:33:15.000Z | kthlis.cpp | qbbd/Algorithm_List | b3c9d97e20c7a10eaa908f8d98654319ac95f302 | [
"MIT"
] | null | null | null | #include<algorithm>
#include<cstring>
#include<iostream>
#include<string>
#include<vector>
using namespace std;
const int MAX = 2000000000+10;
int n;
int cacheLen[501], cacheCnt[501], S[500];
// S[start] 에서 시작하는 증가 부분 수열 중 최대 길이를 반환한다
int lis(int start) {
// 메모이제이션
int& ret = cacheLen[start+1];
if(ret != -1) retur... | 23.946237 | 59 | 0.557701 | qbbd |
0b3d11b78909203dbb470210f29ba998ace59b5b | 1,237 | cpp | C++ | test/bwe/FakeCrossTraffic.cpp | danielgronberg/SymphonyMediaBridge | 2cdd2ecd45c534545c9d3f3c36d8e86771330057 | [
"Apache-2.0"
] | null | null | null | test/bwe/FakeCrossTraffic.cpp | danielgronberg/SymphonyMediaBridge | 2cdd2ecd45c534545c9d3f3c36d8e86771330057 | [
"Apache-2.0"
] | null | null | null | test/bwe/FakeCrossTraffic.cpp | danielgronberg/SymphonyMediaBridge | 2cdd2ecd45c534545c9d3f3c36d8e86771330057 | [
"Apache-2.0"
] | null | null | null | #include "FakeCrossTraffic.h"
#include "FakeMedia.h"
#include "utils/Time.h"
namespace fakenet
{
FakeCrossTraffic::FakeCrossTraffic(memory::PacketPoolAllocator& allocator, uint32_t mtu, uint32_t bandwidthKbps)
: _allocator(allocator),
_releaseTime(0),
_bandwidthKbps(bandwidthKbps),
_mtu(mtu)
{
}
... | 23.788462 | 112 | 0.675829 | danielgronberg |
0b447c70f4ca25e193eee7917343ec7348cb5b92 | 962 | hpp | C++ | rest_rpc/iguana/third_party/msgpack/include/msgpack/version.hpp | emogua/CGAssistant | f3ded85a8336bcc03fd1a3d370880cdeedaa570f | [
"MIT"
] | 1,316 | 2016-07-03T10:01:37.000Z | 2022-03-31T18:40:35.000Z | rest_rpc/iguana/third_party/msgpack/include/msgpack/version.hpp | emogua/CGAssistant | f3ded85a8336bcc03fd1a3d370880cdeedaa570f | [
"MIT"
] | 3,393 | 2019-05-07T08:33:32.000Z | 2022-03-31T14:57:14.000Z | rest_rpc/iguana/third_party/msgpack/include/msgpack/version.hpp | emogua/CGAssistant | f3ded85a8336bcc03fd1a3d370880cdeedaa570f | [
"MIT"
] | 315 | 2016-08-24T13:08:20.000Z | 2022-03-29T10:59:08.000Z | /*
* MessagePack for C++ version information
*
* Copyright (C) 2008-2013 FURUHASHI Sadayuki and Takatoshi Kondo
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef MSGPACK_VERSION_HPP
#defi... | 26 | 113 | 0.767152 | emogua |
0b46bd09868904b1e05132cfeeb040492c040c5f | 513 | cpp | C++ | Gpx_2/Gpx/Implementation/TextureViewer.cpp | DexterDreeeam/DxtSdk2021 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | 1 | 2021-11-18T03:57:54.000Z | 2021-11-18T03:57:54.000Z | Gpx_2/Gpx/Implementation/TextureViewer.cpp | DexterDreeeam/P9 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | null | null | null | Gpx_2/Gpx/Implementation/TextureViewer.cpp | DexterDreeeam/P9 | 2dd8807b4ebe1d65221095191eaa7938bc5e9e78 | [
"MIT"
] | null | null | null |
#include "../_Interface.hpp"
namespace gpx
{
texture_viewer::texture_viewer() :
_state((s64)texture_viewer_state::Offline)
{
}
texture_viewer_state texture_viewer::state() const
{
return (texture_viewer_state)_state.get();
}
boole texture_viewer::transfer_state(texture_viewer_state from, texture_viewer_sta... | 15.545455 | 88 | 0.654971 | DexterDreeeam |
0b46f4981f3a745130e02b4dae0f7ebad67a7063 | 342,762 | cpp | C++ | tsc/tsc-new-parser/parser.cpp | SamuraiCrow/TypeScriptCompiler | 11a5379f3ffe145e61611c463e43d39ec7ea8522 | [
"MIT"
] | null | null | null | tsc/tsc-new-parser/parser.cpp | SamuraiCrow/TypeScriptCompiler | 11a5379f3ffe145e61611c463e43d39ec7ea8522 | [
"MIT"
] | null | null | null | tsc/tsc-new-parser/parser.cpp | SamuraiCrow/TypeScriptCompiler | 11a5379f3ffe145e61611c463e43d39ec7ea8522 | [
"MIT"
] | null | null | null | #include "parser.h"
#include "node_factory.h"
#include "node_test.h"
#include "utilities.h"
namespace ts
{
namespace Impl
{
// Implement the parser.as<a>() singleton module. We do this for perf reasons because creating
// parser instances can actually be expensive enough to impact us on projects with many source
// f... | 41.577147 | 187 | 0.606009 | SamuraiCrow |
0b499650ac92dc07d4078796ed0a30601cc66c19 | 424,220 | cpp | C++ | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__151.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__151.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__151.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VTestHarness.h for the primary calling header
#include "VTestHarness.h"
#include "VTestHarness__Syms.h"
#include "verilated_dpi.h"
VL_INLINE_OPT void VTestHarness::_sequent__TOP__8712(VTestHarness__Syms* __restrict vlSy... | 110.90719 | 201 | 0.680517 | vargandhi |
0b506bcf56930496a297f5c4f2bac104da1c5553 | 602 | hpp | C++ | include/mtree.hpp | Aritzherrero4/fsCheckDaemon | 3cad10938ce0d14ff70490ca4bc3df742eb974c9 | [
"MIT"
] | null | null | null | include/mtree.hpp | Aritzherrero4/fsCheckDaemon | 3cad10938ce0d14ff70490ca4bc3df742eb974c9 | [
"MIT"
] | null | null | null | include/mtree.hpp | Aritzherrero4/fsCheckDaemon | 3cad10938ce0d14ff70490ca4bc3df742eb974c9 | [
"MIT"
] | null | null | null | #ifndef MTREE_HPP
#define MTREE_HPP
#include <iostream>
#include <vector>
#include <string>
#include <filesystem>
#include "../include/mnode.hpp"
class Mtree{
public:
int n_nodes; //Total number of files and dirs
Mnode *root_node; // Pointer of the top node
std::string root_hash;
... | 22.296296 | 59 | 0.621262 | Aritzherrero4 |
0b50f37553a1efbe3de59bcef9fd06ab73222598 | 2,713 | cpp | C++ | src/_leetcode/leet_84.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_84.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_84.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_84.cpp ==========================
* -- tpr --
* CREATE -- 2020.06.05
* MODIFY --
* ----------------------------------------------------------
* 84. 柱状图中最大的矩形
*/
#include "innLe... | 26.598039 | 64 | 0.402875 | turesnake |
0b56da83c0a8e058caa80169bb67015150bea1e5 | 2,131 | cpp | C++ | NfdcAppCore/AppView.cpp | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | 1 | 2021-10-03T16:47:04.000Z | 2021-10-03T16:47:04.000Z | NfdcAppCore/AppView.cpp | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | null | null | null | NfdcAppCore/AppView.cpp | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | null | null | null |
#include "stdafx.h"
#include "AppView.h"
#include "mainwindow.h"
#include "Application.h"
#include "ViewEvents.h"
#include "Document.h"
using namespace SIM;
AppView::AppView(Application& app,MainWindow& window) :
MVCItem<Application>(app),
_ribbon( window ),
_browser( window ),
_QATView(window),
_ICView(win... | 24.215909 | 130 | 0.713749 | Mason-Wmx |
0b5bd642d3e9d17515e308d9075ed867a5c9c8b0 | 1,720 | cxx | C++ | vtkm/exec/internal/testing/UnitTestErrorMessageBuffer.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | 14 | 2019-10-25T03:25:47.000Z | 2022-01-19T02:14:53.000Z | vtkm/exec/internal/testing/UnitTestErrorMessageBuffer.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | 2 | 2020-11-18T16:50:34.000Z | 2022-01-21T13:31:47.000Z | vtkm/exec/internal/testing/UnitTestErrorMessageBuffer.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | 5 | 2020-10-02T10:14:35.000Z | 2022-03-10T07:50:22.000Z | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... | 35.833333 | 95 | 0.672093 | yisyuanliou |
0b5f57c9aff3169ea11734ca33d254b1f456085d | 891 | cpp | C++ | 907-sum-of-subarray-minimums/907-sum-of-subarray-minimums.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | 907-sum-of-subarray-minimums/907-sum-of-subarray-minimums.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | 907-sum-of-subarray-minimums/907-sum-of-subarray-minimums.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | class Solution {
public:
int sumSubarrayMins(vector<int>& arr) {
vector<int>dp(arr.size());
dp[0]=arr[0];
stack<int>st;
st.push(0);
long long ans=arr[0];
int cv=1e9+7;
for(int i=1;i<arr.size();i++)
{
while(!st.empty() && arr[st.top()]>a... | 24.75 | 58 | 0.317621 | Ananyaas |
0b603922f73ff23a91f04bd356aa4d8f2885cbd3 | 843 | cpp | C++ | subtitans/disabledrawstackingpatch.cpp | UnknownException/SubTitans | 1502cb511ba3abfcec3d23f4345b309e300c8105 | [
"MIT"
] | 24 | 2020-05-18T09:17:46.000Z | 2022-03-12T12:02:02.000Z | subtitans/disabledrawstackingpatch.cpp | UnknownException/SubTitans | 1502cb511ba3abfcec3d23f4345b309e300c8105 | [
"MIT"
] | 4 | 2020-06-03T19:07:35.000Z | 2022-03-12T13:06:42.000Z | subtitans/disabledrawstackingpatch.cpp | UnknownException/SubTitans | 1502cb511ba3abfcec3d23f4345b309e300c8105 | [
"MIT"
] | null | null | null | #include "subtitans.h"
#include "disabledrawstackingpatch.h"
DisableDrawStackingPatch::DisableDrawStackingPatch()
{
GetLogger()->Informational("Constructing %s\n", __func__);
Address = 0;
}
DisableDrawStackingPatch::~DisableDrawStackingPatch()
{
GetLogger()->Informational("Destructing %s\n", __func__);
}
bool Di... | 22.184211 | 90 | 0.746145 | UnknownException |
0b65d1829d8da8698adb7f238f1fee52037fe456 | 15,178 | cpp | C++ | src/tvs/utils/variant.cpp | TastiiVegas/TestWP | 567c62117324b6649a54f23e1e332f6eb73e066a | [
"Apache-2.0"
] | 1 | 2017-09-14T09:59:56.000Z | 2017-09-14T09:59:56.000Z | src/tvs/utils/variant.cpp | TastiiVegas/TestWP | 567c62117324b6649a54f23e1e332f6eb73e066a | [
"Apache-2.0"
] | null | null | null | src/tvs/utils/variant.cpp | TastiiVegas/TestWP | 567c62117324b6649a54f23e1e332f6eb73e066a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017 OFFIS Institute for Information Technology
* Oldenburg, Germany
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | 23.495356 | 80 | 0.558506 | TastiiVegas |
0b6b9455a8b5db56bed824b45b0c6fd651458f4d | 129 | cpp | C++ | Registration and Users/Source.cpp | Limitless-Rasul-Power/Registration-and-Users | 6b69942537a82dd66df7be645ec2132dbf618e38 | [
"MIT"
] | null | null | null | Registration and Users/Source.cpp | Limitless-Rasul-Power/Registration-and-Users | 6b69942537a82dd66df7be645ec2132dbf618e38 | [
"MIT"
] | null | null | null | Registration and Users/Source.cpp | Limitless-Rasul-Power/Registration-and-Users | 6b69942537a82dd66df7be645ec2132dbf618e38 | [
"MIT"
] | null | null | null | #include "System.h"
unsigned short User::id{ 0 };
int main()
{
System::Control();
system("pause");
return 0;
} | 10.75 | 30 | 0.55814 | Limitless-Rasul-Power |
0b6c790460eb54900b859e839f73275a0ead41ee | 3,298 | cpp | C++ | experimental/SkiaExamples/HelloSkiaExample.cpp | rgraebert/skia | 33a4b46e9f24be6268855478b5c895f883fb4ac5 | [
"BSD-3-Clause"
] | 1 | 2021-06-11T01:10:08.000Z | 2021-06-11T01:10:08.000Z | experimental/SkiaExamples/HelloSkiaExample.cpp | rgraebert/skia | 33a4b46e9f24be6268855478b5c895f883fb4ac5 | [
"BSD-3-Clause"
] | null | null | null | experimental/SkiaExamples/HelloSkiaExample.cpp | rgraebert/skia | 33a4b46e9f24be6268855478b5c895f883fb4ac5 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2013 Google Inc.
*
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#include "SkExample.h"
#include "SkApplication.h"
#include "SkDraw.h"
#include "SkGradientShader.h"
#include "SkGraphics.h"
#include "SkUnitMappers.h"
class HelloSkia ... | 29.711712 | 94 | 0.614918 | rgraebert |
0b6d99ecba9287576888924794904cd1e6c84291 | 24,990 | cpp | C++ | tests/Widgets/ToggleButton.cpp | dmg103/TGUI | ed2ac830c399b8b579dc67493823551dbf966d63 | [
"Zlib"
] | null | null | null | tests/Widgets/ToggleButton.cpp | dmg103/TGUI | ed2ac830c399b8b579dc67493823551dbf966d63 | [
"Zlib"
] | null | null | null | tests/Widgets/ToggleButton.cpp | dmg103/TGUI | ed2ac830c399b8b579dc67493823551dbf966d63 | [
"Zlib"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TGUI - Texus' Graphical User Interface
// Copyright (C) 2012-2022 Bruno Van de Velde (vdv_b@tgui.eu)
//
// This software is provided 'as-is', without any express or implied warranty.
/... | 68.092643 | 153 | 0.634654 | dmg103 |
0b6eb4cbbf42195b869375dac3586e6cc8046bde | 5,197 | hpp | C++ | Cons/tacka.hpp | matfija/GeoPaint | e4607221fb1c413619312cd0e7eebb679842e20f | [
"MIT"
] | null | null | null | Cons/tacka.hpp | matfija/GeoPaint | e4607221fb1c413619312cd0e7eebb679842e20f | [
"MIT"
] | null | null | null | Cons/tacka.hpp | matfija/GeoPaint | e4607221fb1c413619312cd0e7eebb679842e20f | [
"MIT"
] | 1 | 2020-01-27T23:00:31.000Z | 2020-01-27T23:00:31.000Z | #ifndef TACKA_HPP
#define TACKA_HPP
#include "geom.hpp"
// Imenski prostor za geometriju
namespace geom {
// Tacka afine ravni; dekorisana u smislu
// da implementira potpuno uredjenje
class tacka : public util::total_order<tacka>
{
public:
// Konstruktor bez argumenata
tacka();
// Destr... | 26.380711 | 60 | 0.650183 | matfija |
0b6f6ef579c4be171e6a69c243a896cb1c743d19 | 4,702 | cpp | C++ | coding_exercise/btree_inorder_traversal.cpp | devastating/misc | f9922e14a9305808e668d8412b7a2443a7f45a0d | [
"MIT"
] | null | null | null | coding_exercise/btree_inorder_traversal.cpp | devastating/misc | f9922e14a9305808e668d8412b7a2443a7f45a0d | [
"MIT"
] | null | null | null | coding_exercise/btree_inorder_traversal.cpp | devastating/misc | f9922e14a9305808e668d8412b7a2443a7f45a0d | [
"MIT"
] | null | null | null | #include "basic_includes.hpp"
using namespace std;
/**
* Definition for a binary tree node.
*/
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class binary_tree
{
public:
binary_tree(string serialized_str)
{
... | 27.179191 | 78 | 0.429817 | devastating |
0b73ef4c0b58ef231128dea109d7ede39bb9ffbb | 4,943 | cc | C++ | src/core/fsnotify.cc | liubangchen/seastar | 5bf108406ae79a5f30383bf8e498dd9d4b51d1a5 | [
"Apache-2.0"
] | 6,526 | 2015-09-22T16:47:59.000Z | 2022-03-31T07:31:07.000Z | src/core/fsnotify.cc | liubangchen/seastar | 5bf108406ae79a5f30383bf8e498dd9d4b51d1a5 | [
"Apache-2.0"
] | 925 | 2015-09-23T13:52:53.000Z | 2022-03-31T21:33:25.000Z | src/core/fsnotify.cc | liubangchen/seastar | 5bf108406ae79a5f30383bf8e498dd9d4b51d1a5 | [
"Apache-2.0"
] | 1,473 | 2015-09-22T23:19:04.000Z | 2022-03-31T21:09:00.000Z | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | 32.519737 | 126 | 0.648594 | liubangchen |
0b74dd292c4a698a2353155ce514f1e5fbc6d6a7 | 3,715 | cpp | C++ | EfEfNet/Code/efefGeneral.cpp | Paideieitor/EfEfNet-Library | ad1d9c20c5d06d74785dcf9d93947d00c19f44f7 | [
"MIT"
] | null | null | null | EfEfNet/Code/efefGeneral.cpp | Paideieitor/EfEfNet-Library | ad1d9c20c5d06d74785dcf9d93947d00c19f44f7 | [
"MIT"
] | null | null | null | EfEfNet/Code/efefGeneral.cpp | Paideieitor/EfEfNet-Library | ad1d9c20c5d06d74785dcf9d93947d00c19f44f7 | [
"MIT"
] | null | null | null | #include "efefGeneral.h"
#include "efefPrivateGlobals.h"
#include "efefManager.h"
int efef::Init()
{
WORD version = MAKEWORD(2, 2);
WSADATA data;
if (WSAStartup(version, &data) == SOCKET_ERROR)
return efef::DebugError("Start Up Error");
if (data.wVersion != version)
{
if (WSAClea... | 21.725146 | 99 | 0.635262 | Paideieitor |
0b8a34a3df4e179bfb6f7d524b16e1e2e6bd11c3 | 810 | cpp | C++ | Leetcode/Arrays/replace-elements-with-greatest-element-on-right-side.cpp | susantabiswas/competitive_coding | 49163ecdc81b68f5c1bd90988cc0dfac34ad5a31 | [
"MIT"
] | 2 | 2021-04-29T14:44:17.000Z | 2021-10-01T17:33:22.000Z | Leetcode/Arrays/replace-elements-with-greatest-element-on-right-side.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | null | null | null | Leetcode/Arrays/replace-elements-with-greatest-element-on-right-side.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | 1 | 2021-10-01T17:33:29.000Z | 2021-10-01T17:33:29.000Z | /*
https://leetcode.com/problems/replace-elements-with-greatest-element-on-right-side/submissions/
Start traversing from 2nd last element, write the max element seen so far there and check if the current
element is greater than max seen so far, if yes update that for next (i-1)th index
TC: O(N... | 30 | 108 | 0.576543 | susantabiswas |
0b8ba7ce05280c0b2caf323dda81dd6a8df384ed | 51,937 | cpp | C++ | unit_tests/source/XDateTupleTest.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null | unit_tests/source/XDateTupleTest.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null | unit_tests/source/XDateTupleTest.cpp | MultiSight/multisight-xsdk | 02268e1aeb1313cfb2f9515d08d131a4389e49f2 | [
"BSL-1.0"
] | null | null | null |
#include "XDateTupleTest.h"
#include <vector>
using namespace std;
using namespace XSDK;
REGISTER_TEST_FIXTURE(XDateTupleTest);
REGISTER_TEST_FIXTURE(XTimeTupleTest);
void XDateTupleTest::TestConstructor()
{
UT_ASSERT(XDateTuple(1) == XDateTuple(1, 1, 1));
UT_ASSERT(XDateTuple(2) == XDateTuple(1, 1, 2));
... | 44.889369 | 191 | 0.630591 | MultiSight |
0b8d9fdad0ba1b34ec89e8bec996c31247d96ece | 5,027 | cpp | C++ | tests/testsType.cpp | markuspf/velocypack | 0cf8f21764f0336c32925ccd48f488cb8068a097 | [
"BSD-2-Clause",
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | tests/testsType.cpp | markuspf/velocypack | 0cf8f21764f0336c32925ccd48f488cb8068a097 | [
"BSD-2-Clause",
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | tests/testsType.cpp | markuspf/velocypack | 0cf8f21764f0336c32925ccd48f488cb8068a097 | [
"BSD-2-Clause",
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | ////////////////////////////////////////////////////////////////////////////////
/// @brief Library to build up VPack documents.
///
/// DISCLAIMER
///
/// Copyright 2015 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compl... | 39.582677 | 80 | 0.702208 | markuspf |
0b91c0ba01dd189d8fe58298364f21c8cfe4ab82 | 737 | cpp | C++ | Source/Graphics/GteSamplerState.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | Source/Graphics/GteSamplerState.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | Source/Graphics/GteSamplerState.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2016
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.0 (2016/06/19)
#include <GTEnginePCH.h>
#include <Graph... | 24.566667 | 62 | 0.675712 | vehsakul |
0b97328fb46ad8f79b0555132af8e5b1f6625b9e | 215 | cc | C++ | cores/pico/picorv32/demo/src/decode_riscv_JALR.cc | yuex1994/iw_imdb | 946ce12d1b28075bfc513b2baf0f30601d36558c | [
"MIT"
] | 1 | 2020-05-30T17:34:03.000Z | 2020-05-30T17:34:03.000Z | cores/pico/picorv32/demo/src/decode_riscv_JALR.cc | yuex1994/iw_imdb | 946ce12d1b28075bfc513b2baf0f30601d36558c | [
"MIT"
] | null | null | null | cores/pico/picorv32/demo/src/decode_riscv_JALR.cc | yuex1994/iw_imdb | 946ce12d1b28075bfc513b2baf0f30601d36558c | [
"MIT"
] | 1 | 2020-02-26T03:35:51.000Z | 2020-02-26T03:35:51.000Z | #include "riscv.h"
bool riscv::decode_riscv_JALR() {
if (!1) {
return false;
}
uint7_t tmp_15 = 0 - 1;
c_15 = static_cast<uint7_t> ((riscv_inst >> 0) & tmp_15);
c_768 = c_15 == 103;
return c_768;
};
| 19.545455 | 59 | 0.604651 | yuex1994 |
0b9a50a4f6724669a76fe08028073b17c20054fb | 4,059 | cpp | C++ | api/autoware_iv_internal_api_adaptor/src/initial_pose.cpp | KevinXie86/AutowareArchitectureProposal.iv | 28c8c367652bcc5c2548abdab732e0fea7302653 | [
"Apache-2.0"
] | 88 | 2021-01-16T20:05:40.000Z | 2022-03-21T05:40:35.000Z | api/autoware_iv_internal_api_adaptor/src/initial_pose.cpp | KevinXie86/AutowareArchitectureProposal.iv | 28c8c367652bcc5c2548abdab732e0fea7302653 | [
"Apache-2.0"
] | 271 | 2021-01-13T16:54:09.000Z | 2022-02-25T16:26:07.000Z | api/autoware_iv_internal_api_adaptor/src/initial_pose.cpp | KevinXie86/AutowareArchitectureProposal.iv | 28c8c367652bcc5c2548abdab732e0fea7302653 | [
"Apache-2.0"
] | 68 | 2021-01-14T09:16:40.000Z | 2022-03-29T02:15:36.000Z | // Copyright 2021 Tier IV, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 36.9 | 90 | 0.752648 | KevinXie86 |
0b9ab9fcbbdd6e8d1c97ce245b01e71b34a27318 | 7,190 | cpp | C++ | src/FileUtils.cpp | omi-lab/tp_utils | cb4fa24f418b7a9cc95f7f574ed724d9ed378528 | [
"MIT"
] | null | null | null | src/FileUtils.cpp | omi-lab/tp_utils | cb4fa24f418b7a9cc95f7f574ed724d9ed378528 | [
"MIT"
] | null | null | null | src/FileUtils.cpp | omi-lab/tp_utils | cb4fa24f418b7a9cc95f7f574ed724d9ed378528 | [
"MIT"
] | null | null | null | #include "tp_utils/FileUtils.h"
#include <fstream>
#include <streambuf>
namespace tp_utils
{
//##################################################################################################
std::string TP_UTILS_SHARED_EXPORT readTextFile(const std::string& fileName)
{
try
{
std::ifstream in(fileName);
... | 29.588477 | 130 | 0.484423 | omi-lab |
0b9eefd450416d7fbd226a21f513e742c6e6cf8a | 4,466 | cpp | C++ | tc 160+/CubeRoll.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/CubeRoll.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/CubeRoll.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <set>
#include <queue>
using namespace std;
bool done[100001];
int solve(int a, int b, int x, int y) {
memset(done, 0,... | 34.890625 | 309 | 0.478728 | ibudiselic |
0ba43aeceb5658d59f6183f177c35b23db44dd80 | 2,455 | cpp | C++ | tests/AllegroFlare/RandomTest.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 25 | 2015-03-30T02:02:43.000Z | 2019-03-04T22:29:12.000Z | tests/AllegroFlare/RandomTest.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 122 | 2015-04-01T08:15:26.000Z | 2019-10-16T20:31:22.000Z | tests/AllegroFlare/RandomTest.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 4 | 2016-09-02T12:14:09.000Z | 2018-11-23T20:38:49.000Z |
#include <gtest/gtest.h>
#include <AllegroFlare/Random.hpp>
TEST(AllegroFlare_RandomTest, gets_the_current_seed)
{
AllegroFlare::Random number_generator = AllegroFlare::Random(123);
ASSERT_EQ(123, number_generator.get_seed());
}
TEST(AllegroFlare_RandomTest, sets_the_current_seed)
{
AllegroFlare::Rando... | 26.684783 | 86 | 0.731568 | MarkOates |
24392ec5778dc52e78bd8d93517094c6e0a92d22 | 18,609 | cc | C++ | wrappers/7.0.0/vtkCylinderSourceWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/7.0.0/vtkCylinderSourceWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/7.0.0/vtkCylinderSourceWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkPolyDataAlgorithmWrap.h"
#include "vtkCylinderSourceWrap.h"
#include "vtkObjectWrap.h"
#include "../../plus/plus.h"
using namespace v8;
ex... | 30.506557 | 102 | 0.723037 | axkibe |
243a4125ec0e4aff0607b782bb2619c443a15db1 | 993 | cpp | C++ | class/app/juego/rompible.cpp | TheMarlboroMan/winter-fgj5 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | [
"Beerware"
] | null | null | null | class/app/juego/rompible.cpp | TheMarlboroMan/winter-fgj5 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | [
"Beerware"
] | null | null | null | class/app/juego/rompible.cpp | TheMarlboroMan/winter-fgj5 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | [
"Beerware"
] | null | null | null | #include "rompible.h"
using namespace App_Juego;
Rompible::Rompible(float x, float y)
:Actor(x, y, W, H)
{
}
unsigned int Rompible::obtener_ciclos_representable()const
{
return 1;
}
unsigned short int Rompible::obtener_profundidad_ordenacion() const
{
return 30;
}
void Rompible::transformar_bloque(App_Graficos... | 26.131579 | 124 | 0.784491 | TheMarlboroMan |
243adbb232eafea79221ffa8f9fd869b0a1c9014 | 16,115 | cpp | C++ | PhantomEngine/PhantomFont.cpp | DexianZhao/PhantomGameEngine | cf8e341d21e3973856d9f23ad0b1af9db831bac7 | [
"MIT"
] | 4 | 2019-11-08T00:15:13.000Z | 2021-03-26T13:34:50.000Z | PhantomEngine/PhantomFont.cpp | DexianZhao/PhantomGameEngine | cf8e341d21e3973856d9f23ad0b1af9db831bac7 | [
"MIT"
] | 4 | 2021-03-13T10:26:09.000Z | 2021-03-13T10:45:35.000Z | PhantomEngine/PhantomFont.cpp | DexianZhao/PhantomGameEngine | cf8e341d21e3973856d9f23ad0b1af9db831bac7 | [
"MIT"
] | 3 | 2020-06-01T01:53:05.000Z | 2021-03-21T03:51:33.000Z | //////////////////////////////////////////////////////////////////////////////////////////////////////
/*
幻影游戏引擎, 2009-2016, Phantom Game Engine, http://www.aixspace.com
Design Writer : 赵德贤 Dexian Zhao
Email: yuzhou_995@hotmail.com
*/
////////////////////////////////////////////////////////////////////////////////... | 30.348399 | 173 | 0.634998 | DexianZhao |
243c884e7bac4f400e8f268fe9e546622882ffe6 | 944 | cpp | C++ | test/tests/memcached/regression/lp_000-583-031.cpp | topilski/libmemcached | 7a10166fbc4e718a3392ff744eb5bc499defd952 | [
"BSD-3-Clause"
] | 18 | 2021-06-23T15:20:25.000Z | 2022-03-25T22:51:09.000Z | test/tests/memcached/regression/lp_000-583-031.cpp | topilski/libmemcached | 7a10166fbc4e718a3392ff744eb5bc499defd952 | [
"BSD-3-Clause"
] | 108 | 2020-01-20T09:25:47.000Z | 2021-05-18T06:45:30.000Z | test/tests/memcached/regression/lp_000-583-031.cpp | topilski/libmemcached | 7a10166fbc4e718a3392ff744eb5bc499defd952 | [
"BSD-3-Clause"
] | 4 | 2021-06-25T07:49:31.000Z | 2022-02-07T21:30:45.000Z | #include "test/lib/common.hpp"
#include "test/lib/ReturnMatcher.hpp"
TEST_CASE("memcached_regression_lp583031") {
MemcachedPtr memc;
LoneReturnMatcher test{*memc};
REQUIRE_SUCCESS(memcached_server_add(*memc, "192.0.2.1", 11211));
REQUIRE_SUCCESS(memcached_behavior_set(*memc, MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT... | 44.952381 | 93 | 0.808263 | topilski |
2441f77a6976761118737787ae981b45238b81e3 | 3,260 | cpp | C++ | tests/integral.cpp | steven-varga/h5cpp11 | 9b322fe381608cb277817a993999d03753d356be | [
"MIT"
] | 6 | 2019-03-07T23:40:16.000Z | 2021-09-22T17:31:32.000Z | tests/integral.cpp | steven-varga/h5cpp11 | 9b322fe381608cb277817a993999d03753d356be | [
"MIT"
] | null | null | null | tests/integral.cpp | steven-varga/h5cpp11 | 9b322fe381608cb277817a993999d03753d356be | [
"MIT"
] | 1 | 2021-03-18T04:34:47.000Z | 2021-03-18T04:34:47.000Z | /*
* Copyright (c) 2017 vargaconsulting, Toronto,ON Canada
* Author: Varga, Steven <steven@vargaconsulting.ca>
*
* 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... | 44.657534 | 111 | 0.675767 | steven-varga |
24457fd301b53435389d8c4e4ca692145557a1f1 | 416 | cpp | C++ | source/pso/function/Easom.cpp | Nothrax/pso_visualisation | 96f9453643c49f0b94b5d9f0462274f74a29388f | [
"MIT"
] | null | null | null | source/pso/function/Easom.cpp | Nothrax/pso_visualisation | 96f9453643c49f0b94b5d9f0462274f74a29388f | [
"MIT"
] | null | null | null | source/pso/function/Easom.cpp | Nothrax/pso_visualisation | 96f9453643c49f0b94b5d9f0462274f74a29388f | [
"MIT"
] | null | null | null | #include <pso/function/Easom.h>
double Easom::calculateFitness(Point point) {
return -cos(point.x) * cos(point.y) *
exp(-(point.x - _pi) * (point.x - _pi) - (point.y - _pi) * (point.y - _pi));
}
double Easom::getMinFitness() {
return -1.0;
}
Point Easom::getBoundary() {
Point point = {80.0, 80... | 21.894737 | 87 | 0.596154 | Nothrax |
244761738fccc8a11616eb2eccb6938685186722 | 7,679 | cpp | C++ | test/test_complex.cpp | pruthvistony/rocThrust | c986b97395d4a6cbacc7a4600d11bdf389de639a | [
"Apache-2.0"
] | null | null | null | test/test_complex.cpp | pruthvistony/rocThrust | c986b97395d4a6cbacc7a4600d11bdf389de639a | [
"Apache-2.0"
] | null | null | null | test/test_complex.cpp | pruthvistony/rocThrust | c986b97395d4a6cbacc7a4600d11bdf389de639a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2008-2013 NVIDIA Corporation
* Modifications Copyright© 2019 Advanced Micro Devices, Inc. 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
*
* ... | 29.648649 | 94 | 0.643313 | pruthvistony |
244d67f3a543162ec8841d0659c81427b0abcf37 | 10,823 | cc | C++ | runtime/vm/resolver.cc | annagrin/sdk | dfce72bbf9bf359ecd810964259978e24c55e237 | [
"BSD-3-Clause"
] | 2 | 2020-03-09T11:45:05.000Z | 2021-06-08T12:06:05.000Z | runtime/vm/resolver.cc | annagrin/sdk | dfce72bbf9bf359ecd810964259978e24c55e237 | [
"BSD-3-Clause"
] | null | null | null | runtime/vm/resolver.cc | annagrin/sdk | dfce72bbf9bf359ecd810964259978e24c55e237 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/resolver.h"
#include "vm/dart_entry.h"
#include "vm/flags.h"
#include "vm/isolate.h"
#inc... | 42.443137 | 80 | 0.61397 | annagrin |
244da09164ff9cfabb3cb29e67832566c39f0107 | 1,039 | cpp | C++ | src/3D/Face3D.cpp | FloydATC/Deep | 856914d7e99778df094541361e8d98b9f3ce8a06 | [
"CC0-1.0"
] | null | null | null | src/3D/Face3D.cpp | FloydATC/Deep | 856914d7e99778df094541361e8d98b9f3ce8a06 | [
"CC0-1.0"
] | null | null | null | src/3D/Face3D.cpp | FloydATC/Deep | 856914d7e99778df094541361e8d98b9f3ce8a06 | [
"CC0-1.0"
] | null | null | null |
#include "Face3D.h"
Face3D::Face3D(Vertex3D* v1, Vertex3D* v2, Vertex3D* v3)
{
//ctor
vertices.push_back(v1);
vertices.push_back(v2);
vertices.push_back(v3);
calc_normal();
calc_center();
adjacent = { -1, -1, -1 };
}
Face3D::~Face3D()
{
//dtor
}
Vector3 Face3D::calc_normal()
{
// Compute vertex ... | 18.553571 | 78 | 0.637151 | FloydATC |
245322917e3c4ac189437cfcc7ebda7edc618771 | 2,165 | cpp | C++ | logdevice/common/SlowStorageTasksTracer.cpp | SimonKinds/LogDevice | fc9ac2fccb6faa3292b2b0a610a9eb77fd445824 | [
"BSD-3-Clause"
] | 1 | 2018-10-17T06:49:04.000Z | 2018-10-17T06:49:04.000Z | logdevice/common/SlowStorageTasksTracer.cpp | msdgwzhy6/LogDevice | bc2491b7dfcd129e25490c7d5321d3d701f53ac4 | [
"BSD-3-Clause"
] | null | null | null | logdevice/common/SlowStorageTasksTracer.cpp | msdgwzhy6/LogDevice | bc2491b7dfcd129e25490c7d5321d3d701f53ac4 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "logdevice/common/SlowStorageTasksTracer.h"
#include "logdevice/common/config... | 32.313433 | 78 | 0.68545 | SimonKinds |
245a974abe43b18a78fbf27cbd469476071daf5f | 304 | hpp | C++ | include/mod/sequences.hpp | rationalis-petra/modulus | 194e4029b3085e89b7e35bb925fcba079905ef80 | [
"MIT"
] | 1 | 2021-09-24T19:45:18.000Z | 2021-09-24T19:45:18.000Z | include/mod/sequences.hpp | rationalis-petra/modulus | 194e4029b3085e89b7e35bb925fcba079905ef80 | [
"MIT"
] | null | null | null | include/mod/sequences.hpp | rationalis-petra/modulus | 194e4029b3085e89b7e35bb925fcba079905ef80 | [
"MIT"
] | null | null | null | #ifndef __MODULUS_MOD_OPTIONAL_HPP
#define __MODULUS_MOD_OPTIONAL_HPP
#include <functional>
namespace mod {
template <typename Seq, typename B>
B fold(Seq s, std::function<B(B, B)> func, B val) {
for (auto it = s.begin(); it < s.end(); it++) {
val = func(*it, val);
}
return val;
}
}
#endif
| 17.882353 | 51 | 0.661184 | rationalis-petra |
246011e5d6908b4bbd4919d5f4b5a558ad96daa5 | 31,996 | cpp | C++ | unit-tests/hdr/test-hdr.cpp | rocket-kaya/librealsense | 4663fe85b5177b5ac19834f115400fb1d5368e14 | [
"Apache-2.0"
] | 1 | 2021-05-05T17:46:11.000Z | 2021-05-05T17:46:11.000Z | unit-tests/hdr/test-hdr.cpp | rocket-kaya/librealsense | 4663fe85b5177b5ac19834f115400fb1d5368e14 | [
"Apache-2.0"
] | null | null | null | unit-tests/hdr/test-hdr.cpp | rocket-kaya/librealsense | 4663fe85b5177b5ac19834f115400fb1d5368e14 | [
"Apache-2.0"
] | 2 | 2021-01-25T01:18:47.000Z | 2021-03-18T06:44:07.000Z | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2021 Intel Corporation. All Rights Reserved.
/////////////////////////////////////////////////////////////////////////////
// This set of tests is valid for any device that supports the HDR feature //
//////////////////////////////////////////... | 42.322751 | 122 | 0.561039 | rocket-kaya |
2463b1d1f84cb6068161203df82beb4d4fd58407 | 3,272 | cc | C++ | test/static_test/test_strings.cc | vvchernov/onnxruntime-extensions | cc858e831b719d31e4f34ee9adb391105b4ce26b | [
"MIT"
] | 59 | 2021-04-29T07:39:42.000Z | 2022-03-29T21:12:05.000Z | test/static_test/test_strings.cc | vvchernov/onnxruntime-extensions | cc858e831b719d31e4f34ee9adb391105b4ce26b | [
"MIT"
] | 45 | 2021-05-12T08:32:58.000Z | 2022-03-29T21:11:59.000Z | test/static_test/test_strings.cc | vvchernov/onnxruntime-extensions | cc858e831b719d31e4f34ee9adb391105b4ce26b | [
"MIT"
] | 18 | 2021-05-10T10:15:46.000Z | 2022-03-22T10:46:36.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "gtest/gtest.h"
#include "string_utils.h"
#include "text/re2_strings/string_regex_split_re.hpp"
#include "text/string_ecmaregex_split.hpp"
TEST(strings, std_regex_test) {
std::regex regex("[\u2700-\u27bf\U0001f... | 38.494118 | 90 | 0.718826 | vvchernov |
2463d4d986c95bf2155c21f51c379c6e05df10ea | 2,512 | cpp | C++ | src/modules/m_setagent.cpp | BerilBBJ/beryldb | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 206 | 2021-04-27T21:44:24.000Z | 2022-02-23T12:01:20.000Z | src/modules/m_setagent.cpp | BerilBBJ/beryldb | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 10 | 2021-05-04T19:46:59.000Z | 2021-10-01T23:43:07.000Z | src/modules/m_setagent.cpp | berylcorp/beryl | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 7 | 2021-04-28T16:17:56.000Z | 2021-12-10T01:14:42.000Z | /*
* BerylDB - A lightweight database.
* http://www.beryldb.com
*
* Copyright (C) 2021 - Carlos F. Ferry <cferry@beryldb.com>
*
* This file is part of BerylDB. BerylDB is free software: you can
* redistribute it and/or modify it under the terms of the BSD License
* version 3.
*
* More information about our l... | 27.911111 | 84 | 0.492834 | BerilBBJ |
246d1122b2586189924fae88f550ba68460df271 | 4,061 | hpp | C++ | include/common_robotics_utilities/simple_dtw.hpp | EricCousineau-TRI/common_robotics_utilities | df2f0c68d92d93c919bb7401abe5e12bd5ca2345 | [
"BSD-3-Clause"
] | null | null | null | include/common_robotics_utilities/simple_dtw.hpp | EricCousineau-TRI/common_robotics_utilities | df2f0c68d92d93c919bb7401abe5e12bd5ca2345 | [
"BSD-3-Clause"
] | null | null | null | include/common_robotics_utilities/simple_dtw.hpp | EricCousineau-TRI/common_robotics_utilities | df2f0c68d92d93c919bb7401abe5e12bd5ca2345 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cstdint>
#include <functional>
#include <limits>
#include <stdexcept>
#include <vector>
#include <Eigen/Geometry>
namespace common_robotics_utilities
{
namespace simple_dtw
{
template<typename FirstDatatype, typename SecondDatatype,
typename FirstContainer=std::vector<FirstDatatype>,
... | 30.765152 | 80 | 0.645654 | EricCousineau-TRI |
246d5610bfb128a44e51d3a4ff61c77c00376058 | 199 | cpp | C++ | ModelChecker/unitary_tests/Model_checker/unused_var.cpp | jxw1102/projet_merou | 886c6774c5d2dbd91556ec5592a2296703da0132 | [
"Apache-2.0"
] | 3 | 2015-02-11T20:10:38.000Z | 2015-12-26T07:30:37.000Z | ModelChecker/unitary_tests/Model_checker/unused_var.cpp | jxw1102/projet_merou | 886c6774c5d2dbd91556ec5592a2296703da0132 | [
"Apache-2.0"
] | 7 | 2015-02-06T23:34:58.000Z | 2015-02-26T21:53:20.000Z | ModelChecker/unitary_tests/Model_checker/unused_var.cpp | jxw1102/projet_merou | 886c6774c5d2dbd91556ec5592a2296703da0132 | [
"Apache-2.0"
] | 1 | 2015-04-24T07:54:22.000Z | 2015-04-24T07:54:22.000Z | int f() {
return 2;
}
int main(int argc, char** argv) {
int x;
int y;
int z;
x + y + 2 + f();
if (x > 2) {
int r = 3;
} else {
int r = 2;
r++;
}
return 0;
} | 9.47619 | 34 | 0.376884 | jxw1102 |
246e7c5a830df24ef92625e448e2d17a770c243a | 7,270 | hpp | C++ | Engine/Core/Headers/Molten/Gui/CanvasRenderer.hpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 2 | 2019-11-11T21:17:14.000Z | 2019-11-11T22:07:26.000Z | Engine/Core/Headers/Molten/Gui/CanvasRenderer.hpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | null | null | null | Engine/Core/Headers/Molten/Gui/CanvasRenderer.hpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 1 | 2020-04-05T03:50:57.000Z | 2020-04-05T03:50:57.000Z | /*
* MIT License
*
* Copyright (c) 2022 Jimmie Bergmann
*
* 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, m... | 33.657407 | 132 | 0.708391 | jimmiebergmann |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.