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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2eceec04f05ae7b8c00c5e75b6104fbe063c5a13 | 226 | hpp | C++ | pythran/pythonic/include/operator_/imul.hpp | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,647 | 2015-01-13T01:45:38.000Z | 2022-03-28T01:23:41.000Z | pythran/pythonic/include/operator_/imul.hpp | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,116 | 2015-01-01T09:52:05.000Z | 2022-03-18T21:06:40.000Z | pythran/pythonic/include/operator_/imul.hpp | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 180 | 2015-02-12T02:47:28.000Z | 2022-03-14T10:28:18.000Z | #ifndef PYTHONIC_INCLUDE_OPERATOR_IMUL_HPP
#define PYTHONIC_INCLUDE_OPERATOR_IMUL_HPP
#define OPERATOR_NAME imul
#define OPERATOR_SYMBOL *
#define OPERATOR_ISYMBOL *=
#include "pythonic/include/operator_/icommon.hpp"
#endif
| 22.6 | 49 | 0.849558 | davidbrochart |
2ed0eaef2a0c250f055097d9314285f0f213c6e5 | 3,752 | cpp | C++ | engine/src/Resources.cpp | CutiaGames/CutiaEngine | b81d9e7a01c7ec6f49d2a94df1a1976ac7634151 | [
"MIT"
] | 1 | 2018-05-11T04:11:27.000Z | 2018-05-11T04:11:27.000Z | engine/src/Resources.cpp | CutiaGames/CutiaEngine | b81d9e7a01c7ec6f49d2a94df1a1976ac7634151 | [
"MIT"
] | 8 | 2018-05-11T03:15:30.000Z | 2018-06-06T18:47:58.000Z | engine/src/Resources.cpp | CutiaGames/CutiaEngine | b81d9e7a01c7ec6f49d2a94df1a1976ac7634151 | [
"MIT"
] | 1 | 2018-05-11T16:28:17.000Z | 2018-05-11T16:28:17.000Z | #include "Resources.hpp"
#include "Game.hpp"
std::unordered_map<std::string, std::shared_ptr<SDL_Texture> > Resources::imageTable;
std::unordered_map<std::string, std::shared_ptr<Mix_Music> > Resources::musicTable;
std::unordered_map<std::string, std::shared_ptr<Mix_Chunk> > Resources::soundTable;
std::unordered_map<s... | 25.52381 | 128 | 0.628465 | CutiaGames |
2ed22be74da89a7d6183a85a5f848e5a9a2af088 | 11,425 | cpp | C++ | Cores/Mednafen/mednafen-1.21/src/snes/src/cpu/core/table.cpp | werminghoff/Provenance | de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2 | [
"BSD-3-Clause"
] | 3,459 | 2015-01-07T14:07:09.000Z | 2022-03-25T03:51:10.000Z | Cores/Mednafen/mednafen-1.21/src/snes/src/cpu/core/table.cpp | werminghoff/Provenance | de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2 | [
"BSD-3-Clause"
] | 1,046 | 2018-03-24T17:56:16.000Z | 2022-03-23T08:13:09.000Z | Cores/Mednafen/mednafen-1.21/src/snes/src/cpu/core/table.cpp | werminghoff/Provenance | de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2 | [
"BSD-3-Clause"
] | 549 | 2015-01-07T14:07:15.000Z | 2022-01-07T16:13:05.000Z | #ifdef CPUCORE_CPP
void CPUcore::initialize_opcode_table() {
#define opA( id, name ) op_table[table_EM + id] = op_table[table_MX + id] = op_table[table_Mx + id] = op_table[table_mX + id] = op_table[table_mx + id] = &CPUcore::op_##name;
#define opAII(id, name, x, y ) op_table[table_EM + id] = op_table[table_... | 36.501597 | 264 | 0.647527 | werminghoff |
2ed3d45e23706c1e71762171118a938327cc2c62 | 139,122 | hpp | C++ | external/libc++/type_traits.hpp | greck2908/LudOS | db38455eb33dfc0dfc6d4be102e6bd54d852eee8 | [
"MIT"
] | 44 | 2018-01-28T20:07:48.000Z | 2022-02-11T22:58:49.000Z | external/libc++/type_traits.hpp | greck2908/LudOS | db38455eb33dfc0dfc6d4be102e6bd54d852eee8 | [
"MIT"
] | 2 | 2017-09-12T15:38:16.000Z | 2017-11-05T12:19:01.000Z | external/libc++/type_traits.hpp | greck2908/LudOS | db38455eb33dfc0dfc6d4be102e6bd54d852eee8 | [
"MIT"
] | 8 | 2018-08-17T13:30:57.000Z | 2021-06-25T16:56:12.000Z | // -*- C++ -*-
//===------------------------ type_traits ---------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... | 31.618636 | 132 | 0.715063 | greck2908 |
2ed551319da19b086ece7e40c443b95e5da2d37e | 2,144 | cc | C++ | chrome/installer/util/module_util_win.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | chrome/installer/util/module_util_win.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | chrome/installer/util/module_util_win.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright (c) 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 "chrome/installer/util/module_util_win.h"
#include <memory>
#include "base/base_paths.h"
#include "base/file_version_info.h"
#include "base... | 34.031746 | 78 | 0.756063 | google-ar |
2ed5a119a57866d3d9245c88f8f3627f76a20b66 | 436 | cpp | C++ | src/sound/save_effect.cpp | Damdoshi/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 38 | 2016-07-30T09:35:19.000Z | 2022-03-04T10:13:48.000Z | src/sound/save_effect.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 15 | 2017-02-12T19:20:52.000Z | 2021-06-09T09:30:52.000Z | src/sound/save_effect.cpp | Elania-Marvers/LibLapin | 800e0f17ed8f3c47797c48feea4c280bb0e4bdc9 | [
"BSD-3-Clause"
] | 12 | 2016-10-06T09:06:59.000Z | 2022-03-04T10:14:00.000Z | // Jason Brillante "Damdoshi"
// Hanged Bunny Studio 2014-2018
//
// Bibliotheque Lapin
#include <string.h>
#include "lapin_private.h"
#define PATTERN "%s -> %p"
bool bunny_save_effect(const t_bunny_effect *_eff,
const char *file)
{
struct bunny_effect *eff = (struct bunny_effect*)_eff;
if (bun... | 20.761905 | 59 | 0.68578 | Damdoshi |
2ed73b79bc251975da43140d2079171c5afb7147 | 1,359 | hpp | C++ | include/eepp/graphics/fonthelper.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/graphics/fonthelper.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | include/eepp/graphics/fonthelper.hpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #ifndef EE_GRAPHICSFONTHELPER_HPP
#define EE_GRAPHICSFONTHELPER_HPP
namespace EE { namespace Graphics {
enum EE_FONT_TYPE {
FONT_TYPE_TTF = 1,
FONT_TYPE_TEX = 2
};
enum EE_FONT_HALIGN {
FONT_DRAW_LEFT = (0 << 0),
FONT_DRAW_RIGHT = (1 << 0),
FONT_DRAW_CENTER = (2 << 0),
FONT_DRAW_HALIGN_MASK = (3 << 0)
};
... | 19.414286 | 89 | 0.690213 | dogtwelve |
2ed7c5c100a54b741f94d33c79fe5394607caecb | 4,574 | cpp | C++ | llvm/3.4.2/llvm-3.4.2.src/lib/Support/StreamableMemoryObject.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 36 | 2015-01-13T19:34:04.000Z | 2022-03-07T22:22:15.000Z | llvm/3.4.2/llvm-3.4.2.src/lib/Support/StreamableMemoryObject.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 7 | 2015-10-20T19:05:01.000Z | 2021-11-13T14:55:47.000Z | llvm/3.4.2/llvm-3.4.2.src/lib/Support/StreamableMemoryObject.cpp | tangyibin/goblin-core | 1940db6e95908c81687b2b22ddd9afbc8db9cdfe | [
"BSD-3-Clause"
] | 18 | 2015-04-23T20:59:52.000Z | 2021-11-18T20:06:39.000Z | //===- StreamableMemoryObject.cpp - Streamable data interface -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 32.211268 | 80 | 0.683428 | tangyibin |
2eda6038ee1087d5d26b3849f661f3ff8b17436c | 5,135 | cpp | C++ | test/test_inputmap.cpp | carlcc/gainput | 0d63da54e1c536295e39f360e883f6e5bb6a68d0 | [
"MIT"
] | 3,058 | 2017-10-03T01:33:22.000Z | 2022-03-30T22:04:23.000Z | test/test_inputmap.cpp | marcoesposito1988/gainput | a96e16dc873a62e0996a8ee27c85cad17f783110 | [
"MIT"
] | 157 | 2018-01-26T10:18:33.000Z | 2022-03-06T10:59:23.000Z | test/test_inputmap.cpp | marcoesposito1988/gainput | a96e16dc873a62e0996a8ee27c85cad17f783110 | [
"MIT"
] | 388 | 2017-12-21T10:52:32.000Z | 2022-03-31T18:25:49.000Z |
#include "catch.hpp"
#include <gainput/gainput.h>
using namespace gainput;
enum TestButtons
{
ButtonA,
ButtonStart = ButtonA,
ButtonB,
ButtonC,
ButtonD,
ButtonE,
ButtonF,
ButtonG,
ButtonCount
};
TEST_CASE("InputMap/create", "")
{
InputManager manager;
InputMap map(manager, "testmap");
REQUIRE(&manager... | 28.848315 | 73 | 0.742162 | carlcc |
2eda8e34ca18a9c0f623cd8835059987e8537e5c | 3,318 | hpp | C++ | src/base/PathStatistics.hpp | pkicki/bench-mr | db22f75062aff47cf0800c8a2189db1f674a93cc | [
"Apache-2.0",
"MIT"
] | 41 | 2021-02-10T08:40:34.000Z | 2022-03-20T18:33:20.000Z | src/base/PathStatistics.hpp | pkicki/bench-mr | db22f75062aff47cf0800c8a2189db1f674a93cc | [
"Apache-2.0",
"MIT"
] | 5 | 2021-06-15T14:27:53.000Z | 2022-02-20T08:16:55.000Z | src/base/PathStatistics.hpp | pkicki/bench-mr | db22f75062aff47cf0800c8a2189db1f674a93cc | [
"Apache-2.0",
"MIT"
] | 23 | 2021-04-07T08:09:49.000Z | 2022-03-20T18:33:53.000Z | #pragma once
#include <algorithm>
#include <cmath>
#include <iostream>
#include <nlohmann/json.hpp>
#include <params.hpp>
#include <string>
#include <utility>
#include <vector>
#include "Primitives.h"
using namespace params;
struct PathStatistics : public Group {
Property<double> planning_time{std::numeric_limits... | 36.065217 | 80 | 0.659433 | pkicki |
2edb74012b69c690542f07b751cb6ef226b2532d | 22,472 | cpp | C++ | molecular/gfx/opengl/GlCommandSink.cpp | petrarce/molecular-gfx | fdf95c28a5693a2e1f9abaedda9521f8521b1f84 | [
"MIT"
] | null | null | null | molecular/gfx/opengl/GlCommandSink.cpp | petrarce/molecular-gfx | fdf95c28a5693a2e1f9abaedda9521f8521b1f84 | [
"MIT"
] | 1 | 2019-10-23T14:33:25.000Z | 2019-10-23T14:33:25.000Z | molecular/gfx/opengl/GlCommandSink.cpp | petrarce/molecular-gfx | fdf95c28a5693a2e1f9abaedda9521f8521b1f84 | [
"MIT"
] | 2 | 2020-09-24T13:33:39.000Z | 2022-03-29T13:17:47.000Z | /* GlCommandSink.cpp
MIT License
Copyright (c) 2019-2020 Fabian Herb
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, mo... | 33.894419 | 191 | 0.767132 | petrarce |
2edc8fb22f93cfe732adc670cdfb5d5c495179c8 | 9,521 | cpp | C++ | aligned-types-sycl/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 58 | 2020-08-06T18:53:44.000Z | 2021-10-01T07:59:46.000Z | aligned-types-sycl/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T12:35:02.000Z | 2021-03-04T22:49:25.000Z | aligned-types-sycl/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 13 | 2020-08-19T13:44:18.000Z | 2021-09-08T04:25:34.000Z | /*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... | 28.002941 | 95 | 0.604243 | BeauJoh |
2edebe498538eb35f41ceb8f08790d873710904f | 1,188 | hpp | C++ | simulation/libsimulator/include/simulator/nat.hpp | SylemST-UtilCollection/libtorrent-build | 76c22d0f0aa0e6541983fa793789f3a5774cf0ca | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | simulation/libsimulator/include/simulator/nat.hpp | SylemST-UtilCollection/libtorrent-build | 76c22d0f0aa0e6541983fa793789f3a5774cf0ca | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | simulation/libsimulator/include/simulator/nat.hpp | SylemST-UtilCollection/libtorrent-build | 76c22d0f0aa0e6541983fa793789f3a5774cf0ca | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2018, Arvid Norberg
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | 22.846154 | 73 | 0.728956 | SylemST-UtilCollection |
2edee8eaf2061a5d6dde85dd71f64e4bda271e3b | 919 | cpp | C++ | src/lib/synthetic/PlaneField.cpp | thewtex/Cleaver2 | 8ef0985c451f3bbba8bb580f1737f0ef88c31147 | [
"MIT"
] | 32 | 2015-08-29T12:40:14.000Z | 2022-03-01T21:15:05.000Z | src/lib/synthetic/PlaneField.cpp | thewtex/Cleaver2 | 8ef0985c451f3bbba8bb580f1737f0ef88c31147 | [
"MIT"
] | 98 | 2015-02-04T17:22:56.000Z | 2022-03-22T07:18:10.000Z | src/lib/synthetic/PlaneField.cpp | thewtex/Cleaver2 | 8ef0985c451f3bbba8bb580f1737f0ef88c31147 | [
"MIT"
] | 19 | 2015-02-23T15:21:13.000Z | 2022-01-09T00:57:13.000Z | #include "PlaneField.h"
PlaneField::PlaneField(double a, double b, double c, double d) :
n(cleaver::vec3(a,b,c)), d(d)
{
}
PlaneField::PlaneField(const cleaver::vec3 &n, double d) :
n(normalize(n)), d(d)
{
}
PlaneField::PlaneField(const cleaver::vec3 &n, const cleaver::vec3 &p) :
n(n)
{
d = n.dot(-1*... | 19.553191 | 72 | 0.615887 | thewtex |
2ee072991c17b1497ae153980f6bc9260119375e | 481 | cpp | C++ | 122A-luckyDivision.cpp | utkuozbudak/Codeforces | bf0b58604f9150f83356a8633407f873b1a49164 | [
"MIT"
] | 1 | 2020-02-29T20:01:03.000Z | 2020-02-29T20:01:03.000Z | 122A-luckyDivision.cpp | utkuozbudak/Codeforces | bf0b58604f9150f83356a8633407f873b1a49164 | [
"MIT"
] | null | null | null | 122A-luckyDivision.cpp | utkuozbudak/Codeforces | bf0b58604f9150f83356a8633407f873b1a49164 | [
"MIT"
] | null | null | null | #include <iostream>
#include "string"
using namespace std;
int main(int argc, const char * argv[])
{
int n;
cin>>n;
string s = to_string(n);
bool flag = true;
for(int i=0;i<s.length();i++)
{
if(s.at(i)== '4' || s.at(i) == '7') continue;
else flag = false;
}
if(... | 17.178571 | 71 | 0.455301 | utkuozbudak |
2ee166b5bec0db018dbcb19051fafd2d7fbde64c | 4,555 | cpp | C++ | src/core/DataManager.cpp | Opticalp/instrumentall | f952c1cd54f375dc4cb258fec5af34d14c2b8044 | [
"MIT"
] | 1 | 2020-05-19T02:06:55.000Z | 2020-05-19T02:06:55.000Z | src/core/DataManager.cpp | Opticalp/instrumentall | f952c1cd54f375dc4cb258fec5af34d14c2b8044 | [
"MIT"
] | 16 | 2015-11-18T13:25:30.000Z | 2018-05-17T19:25:46.000Z | src/core/DataManager.cpp | Opticalp/instrumentall | f952c1cd54f375dc4cb258fec5af34d14c2b8044 | [
"MIT"
] | null | null | null | /**
* @file src/core/DataManager.cpp
* @date Feb. 2016
* @author PhRG - opticalp.fr
*/
/*
Copyright (c) 2016 Ph. Renaud-Goud / Opticalp
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 wit... | 33.992537 | 97 | 0.77146 | Opticalp |
2ee539a9362bce01069ddd4df4c3473118a1ac70 | 10,552 | cpp | C++ | src/common/runtime/Types.cpp | t1mm3/weld_tpch | 0e70518de7d510a225b934043879a635b57790d3 | [
"MIT"
] | 4 | 2020-06-23T07:39:33.000Z | 2021-11-16T02:22:11.000Z | src/common/runtime/Types.cpp | t1mm3/weld_tpch | 0e70518de7d510a225b934043879a635b57790d3 | [
"MIT"
] | null | null | null | src/common/runtime/Types.cpp | t1mm3/weld_tpch | 0e70518de7d510a225b934043879a635b57790d3 | [
"MIT"
] | null | null | null | #ifdef __SSE4_2__
#include <nmmintrin.h>
#endif
#include "common/runtime/Types.hpp"
//---------------------------------------------------------------------------
#include <ctime>
//---------------------------------------------------------------------------
// HyPer
// (c) Thomas Neumann 2010
//-------------------------... | 29.80791 | 119 | 0.487017 | t1mm3 |
2ee7ccf009097205e3573651df2770506f364526 | 1,095 | cpp | C++ | Leetcode/L46.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | 8 | 2021-02-14T01:48:09.000Z | 2022-01-29T09:12:55.000Z | Leetcode/L46.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | Leetcode/L46.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | #include <vector>
#include <iostream>
#include <functional>
#define FOR(i, a, b) for (int i = a; i < b; i++)
using namespace std;
class Solution {
public:
vector<vector<int>> permute(vector<int> nums) {
const int N = nums.size();
vector<vector<int>> ans;
vector<bool> used(N, false);
... | 23.297872 | 53 | 0.438356 | yanjinbin |
2ee8af1983d8a6962a8e3cc5652578af7d603173 | 1,793 | cpp | C++ | Source/Urho3D/Graphics/Direct3D11/D3D11ConstantBuffer.cpp | 1vanK/Dviglo | 468a61e6d9a87cf7d998312c1261aaa83b37ff3c | [
"MIT"
] | null | null | null | Source/Urho3D/Graphics/Direct3D11/D3D11ConstantBuffer.cpp | 1vanK/Dviglo | 468a61e6d9a87cf7d998312c1261aaa83b37ff3c | [
"MIT"
] | 1 | 2021-04-17T22:38:25.000Z | 2021-04-18T00:43:15.000Z | Source/Urho3D/Graphics/Direct3D11/D3D11ConstantBuffer.cpp | 1vanK/Dviglo | 468a61e6d9a87cf7d998312c1261aaa83b37ff3c | [
"MIT"
] | null | null | null | // Copyright (c) 2008-2021 the Urho3D project
// Copyright (c) 2021 проект Dviglo
// Лицензия: MIT
#include "../../Precompiled.h"
#include "../../Graphics/Graphics.h"
#include "../../Graphics/GraphicsImpl.h"
#include "../../Graphics/ConstantBuffer.h"
#include "../../IO/Log.h"
#include "../../DebugNew.h"
using names... | 21.60241 | 128 | 0.626882 | 1vanK |
2ef024d12862684091c5cba12dd8f350567e315d | 3,451 | cpp | C++ | src/Value/Value.cpp | DmitrySoshnikov/mmgc | 57dd46374131758f2db5cf744c9fc2e4870f55e0 | [
"MIT"
] | 3 | 2019-10-27T02:35:48.000Z | 2021-07-23T14:06:03.000Z | src/Value/Value.cpp | DmitrySoshnikov/mmgc | 57dd46374131758f2db5cf744c9fc2e4870f55e0 | [
"MIT"
] | null | null | null | src/Value/Value.cpp | DmitrySoshnikov/mmgc | 57dd46374131758f2db5cf744c9fc2e4870f55e0 | [
"MIT"
] | 2 | 2019-10-29T09:54:25.000Z | 2019-11-28T02:19:18.000Z | /**
* The MIT License (MIT)
* Copyright (c) 2018-present Dmitry Soshnikov <dmitry.soshnikov@gmail.com>
*/
#include "Value.h"
#include <stdexcept>
#include <string>
/**
* Returns the type of the value.
*/
Type Value::getType() {
if (_value & 1) {
return Type::Number;
} else if (_value == Value::TRUE || _v... | 19.172222 | 77 | 0.623587 | DmitrySoshnikov |
2ef1e2efa50baec9038aa2b06097c1ccf9ff634b | 13,570 | cpp | C++ | src/core/hw/gfxip/gfx9/gfx9PipelineChunkPs.cpp | ardacoskunses/pal | b2000b19a20b8ea1df06f50733d51e37c803b9c0 | [
"MIT"
] | null | null | null | src/core/hw/gfxip/gfx9/gfx9PipelineChunkPs.cpp | ardacoskunses/pal | b2000b19a20b8ea1df06f50733d51e37c803b9c0 | [
"MIT"
] | null | null | null | src/core/hw/gfxip/gfx9/gfx9PipelineChunkPs.cpp | ardacoskunses/pal | b2000b19a20b8ea1df06f50733d51e37c803b9c0 | [
"MIT"
] | null | null | null | /*
***********************************************************************************************************************
*
* Copyright (c) 2015-2018 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | 47.118056 | 120 | 0.628592 | ardacoskunses |
2ef78ae07de7820a064167e31e229956b76ee6ff | 1,046 | cpp | C++ | src/xray/editor/world/sources/property_integer_limited.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/editor/world/sources/property_integer_limited.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/editor/world/sources/property_integer_limited.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 07.12.2007
// Author : Dmitriy Iassenev
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "property_integer_limited.h"
proper... | 23.244444 | 77 | 0.546845 | ixray-team |
2efb2a2f77634d501b3ad09fcd605e4779856a6c | 3,066 | cpp | C++ | cpgf/test/metagen/tests/test_metagen_method_overload_by_fundamental.cpp | mousepawmedia/libdeps | b004d58d5b395ceaf9fdc993cfb00e91334a5d36 | [
"BSD-3-Clause"
] | 187 | 2015-01-19T06:05:30.000Z | 2022-03-27T14:28:21.000Z | cpgf/test/metagen/tests/test_metagen_method_overload_by_fundamental.cpp | mousepawmedia/libdeps | b004d58d5b395ceaf9fdc993cfb00e91334a5d36 | [
"BSD-3-Clause"
] | 37 | 2015-01-16T04:15:11.000Z | 2020-03-31T23:42:55.000Z | cpgf/test/metagen/tests/test_metagen_method_overload_by_fundamental.cpp | mousepawmedia/libdeps | b004d58d5b395ceaf9fdc993cfb00e91334a5d36 | [
"BSD-3-Clause"
] | 50 | 2015-01-13T13:50:10.000Z | 2022-01-25T17:16:51.000Z | #include "testmetagen.h"
namespace {
void metagenTest_MetagenMethodOverloadByFundamental_overload_Boolean_Int(TestScriptContext * context)
{
QNEWOBJ(a, mtest.MetagenMethodOverloadByFundamental());
if(context->isPython()) {
QDO(t = True);
QDO(f = False);
}
else {
QDO(t = true);
QDO(f = fal... | 29.2 | 109 | 0.721461 | mousepawmedia |
2efc95b839c26f5d7faa4b2cbdab481ba04b3704 | 478 | cpp | C++ | Engine/src/Engine.cpp | listopat/Ray-Tracer | e29c37475b7b575c399cce03b0f4d7fafc942643 | [
"MIT"
] | 2 | 2020-12-27T21:49:38.000Z | 2020-12-28T22:49:11.000Z | Engine/src/Engine.cpp | listopat/Ray-Tracer | e29c37475b7b575c399cce03b0f4d7fafc942643 | [
"MIT"
] | null | null | null | Engine/src/Engine.cpp | listopat/Ray-Tracer | e29c37475b7b575c399cce03b0f4d7fafc942643 | [
"MIT"
] | null | null | null | #include <Engine.h>
#include <SceneParser.h>
#include <ImageIOInterface.h>
#include <fstream>
void Engine::renderToFile(std::string scenePath, std::string outputPath)
{
std::ifstream ifs(scenePath);
nlohmann::json sceneJson = nlohmann::json::parse(ifs);
Camera camera = SceneParser::getCameraFromSceneJSON(sceneJso... | 26.555556 | 72 | 0.771967 | listopat |
2efeea6749b5ef262554b288a4cb0955cb43d43a | 225 | cpp | C++ | bala 3rd chap/vectorSize_3.2.cpp | sekharkaredla/Cpp_Programs | e026d3322da5913e327033cb5d4787665998aef3 | [
"MIT"
] | null | null | null | bala 3rd chap/vectorSize_3.2.cpp | sekharkaredla/Cpp_Programs | e026d3322da5913e327033cb5d4787665998aef3 | [
"MIT"
] | null | null | null | bala 3rd chap/vectorSize_3.2.cpp | sekharkaredla/Cpp_Programs | e026d3322da5913e327033cb5d4787665998aef3 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int m,i;
cout<<"enter the size of vector : ";
cin>>m;
int *p=new int[m];
cout<<"the garbage values are : \n";
for(i=0;i<m;i++)
{
cout<<p[i]<<"\n";
}
return 1;
}
| 14.0625 | 37 | 0.573333 | sekharkaredla |
2c00118a749680486c8f90bc294874782df1187d | 4,346 | cpp | C++ | src/axom/sidre/examples/sidre_external_array.cpp | Parqua/axom | c3a64b372d25e53976b3ba8676a25acc49a9a6cd | [
"BSD-3-Clause"
] | null | null | null | src/axom/sidre/examples/sidre_external_array.cpp | Parqua/axom | c3a64b372d25e53976b3ba8676a25acc49a9a6cd | [
"BSD-3-Clause"
] | null | null | null | src/axom/sidre/examples/sidre_external_array.cpp | Parqua/axom | c3a64b372d25e53976b3ba8676a25acc49a9a6cd | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2017-2020, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
// Axom includes
#include "axom/core/Types.hpp" // for Axom types
#include "axom/core/Macros.hpp" // for Axom macros
... | 26.339394 | 80 | 0.598481 | Parqua |
2c01a95c0be9a3dcccd40093413dff54587a4329 | 2,614 | cpp | C++ | src/simulator/simulator.cpp | happydpc/RobotSimulator | 0c09d09e802c3118a2beabc7999637ce1fa4e7a7 | [
"MIT"
] | 1 | 2021-12-22T18:24:08.000Z | 2021-12-22T18:24:08.000Z | src/simulator/simulator.cpp | happydpc/RobotSimulator | 0c09d09e802c3118a2beabc7999637ce1fa4e7a7 | [
"MIT"
] | null | null | null | src/simulator/simulator.cpp | happydpc/RobotSimulator | 0c09d09e802c3118a2beabc7999637ce1fa4e7a7 | [
"MIT"
] | null | null | null | //--------------------------------------------------
// Robot Simulator
// simulator.cpp
// Date: 2020-06-21
// By Breno Cunha Queiroz
//--------------------------------------------------
#include "simulator.h"
#include "objects/basic/importedObject.h"
#include "objects/basic/plane.h"
#include "objects/basic/box.h"
#i... | 26.673469 | 131 | 0.657995 | happydpc |
2c034099029d2a2dba05dc9b56795525b0a0580a | 1,199 | cxx | C++ | engine/src/resources/image.cxx | Alabuta/VulkanIsland | f33a16fa163527270bc14d03bcfed06dbddbb416 | [
"MIT"
] | null | null | null | engine/src/resources/image.cxx | Alabuta/VulkanIsland | f33a16fa163527270bc14d03bcfed06dbddbb416 | [
"MIT"
] | null | null | null | engine/src/resources/image.cxx | Alabuta/VulkanIsland | f33a16fa163527270bc14d03bcfed06dbddbb416 | [
"MIT"
] | 1 | 2018-10-03T17:05:43.000Z | 2018-10-03T17:05:43.000Z | #define _SCL_SECURE_NO_WARNINGS
#include <ranges>
#include "renderer/command_buffer.hxx"
#include "graphics/graphics_api.hxx"
#include "image.hxx"
[[nodiscard]] std::optional<graphics::FORMAT>
find_supported_image_format(vulkan::device const &device, std::vector<graphics::FORMAT> const &candidates,
... | 36.333333 | 121 | 0.678899 | Alabuta |
2c05b81bb231c3c4338610f4df8a995eeda15619 | 5,576 | cpp | C++ | Development/Source/Engine/Framework/Graphics/DX12/SwapchainDX12.cpp | onovytskyi/Headless-Droid-Engine | 358cd3164bfe5b1d0aaf38c4a1a96dce54ac00c9 | [
"MIT"
] | null | null | null | Development/Source/Engine/Framework/Graphics/DX12/SwapchainDX12.cpp | onovytskyi/Headless-Droid-Engine | 358cd3164bfe5b1d0aaf38c4a1a96dce54ac00c9 | [
"MIT"
] | null | null | null | Development/Source/Engine/Framework/Graphics/DX12/SwapchainDX12.cpp | onovytskyi/Headless-Droid-Engine | 358cd3164bfe5b1d0aaf38c4a1a96dce54ac00c9 | [
"MIT"
] | null | null | null | #include "Engine/Config/Bootstrap.h"
#include "Engine/Framework/Graphics/Swapchain.h"
#if defined(HD_GRAPHICS_API_DX12)
#include "Engine/Debug/Assert.h"
#include "Engine/Debug/Log.h"
#include "Engine/Foundation/Memory/Utils.h"
#include "Engine/Framework/Graphics/Backend.h"
#include "Engine/Framework/Graphics/DX12/Te... | 35.74359 | 173 | 0.630739 | onovytskyi |
2c0784f1e041554242a49f245c9c7d6637c28aa1 | 22,236 | cpp | C++ | Code/src/main.cpp | jlsuarezdiaz/Metaheuristicas | 6f83a950ec4c463a875cdc3b66d6c03428176f99 | [
"MIT"
] | 1 | 2018-12-19T14:38:21.000Z | 2018-12-19T14:38:21.000Z | Code/src/main.cpp | jlsuarezdiaz/Metaheuristicas | 6f83a950ec4c463a875cdc3b66d6c03428176f99 | [
"MIT"
] | null | null | null | Code/src/main.cpp | jlsuarezdiaz/Metaheuristicas | 6f83a950ec4c463a875cdc3b66d6c03428176f99 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <fstream>
#include <random>
#include <utility>
#include <vector>
#include <string>
#include "APCProblem.h"
#include "APCSolution.h"
#include "APCRelief.h"
#include "SRandom.h"
#include "APC5x2Partition.h"
#include "APC5FoldPartition.h"
#include "APCLocalSearch.h"
#include "APCRandom.h"
#i... | 42.435115 | 235 | 0.610047 | jlsuarezdiaz |
2c07ab83a256fc9d21b95c3671fbcfc83004ac5e | 8,728 | cc | C++ | SimG4Core/MagneticField/src/CMSFieldManager.cc | akhter-towsifa/cmssw | c9dad837e419070a532a4951c397bcc68f5bd095 | [
"Apache-2.0"
] | 1 | 2021-01-25T16:39:35.000Z | 2021-01-25T16:39:35.000Z | SimG4Core/MagneticField/src/CMSFieldManager.cc | akhter-towsifa/cmssw | c9dad837e419070a532a4951c397bcc68f5bd095 | [
"Apache-2.0"
] | 2 | 2021-02-17T10:06:46.000Z | 2021-02-22T08:00:41.000Z | SimG4Core/MagneticField/src/CMSFieldManager.cc | akhter-towsifa/cmssw | c9dad837e419070a532a4951c397bcc68f5bd095 | [
"Apache-2.0"
] | null | null | null | #include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimG4Core/MagneticField/interface/CMSFieldManager.h"
#include "SimG4Core/MagneticField/interface/Field.h"
#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "G4ChordFinder.hh"
#include "G4MagIntegratorStepper.hh"
#include "G4PropagatorInField.hh"
#... | 37.947826 | 117 | 0.623854 | akhter-towsifa |
2c09499c65944a7e2454ae72a6072ca1dc77b716 | 2,566 | cpp | C++ | Source/ReadingTracker/Private/SubmixRecorder.cpp | scivi-tools/scivi.ue.board | c41ea99f4016f22f122bc38b45410ee773c2ec1b | [
"MIT"
] | 1 | 2022-02-17T19:48:49.000Z | 2022-02-17T19:48:49.000Z | Source/ReadingTracker/Private/SubmixRecorder.cpp | scivi-tools/scivi.ue.board | c41ea99f4016f22f122bc38b45410ee773c2ec1b | [
"MIT"
] | null | null | null | Source/ReadingTracker/Private/SubmixRecorder.cpp | scivi-tools/scivi.ue.board | c41ea99f4016f22f122bc38b45410ee773c2ec1b | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "SubmixRecorder.h"
#include "AudioDevice.h"
#include "AudioDeviceManager.h"
#include "Sound/SoundSubmix.h"
// Sets default values for this component's properties
USubmixRecorder::USubmixRecorder()
{
// Set this component to be... | 25.156863 | 172 | 0.767732 | scivi-tools |
2c0b6ede48fd40d4904a3ff9ba8cda0941a3ffa0 | 26,130 | cpp | C++ | jobsubmission/src/logmonitor/EventAd.cpp | italiangrid/wms | 5b2adda72ba13cf2a85ec488894c2024e155a4b5 | [
"Apache-2.0"
] | 1 | 2019-01-18T02:19:18.000Z | 2019-01-18T02:19:18.000Z | jobsubmission/src/logmonitor/EventAd.cpp | italiangrid/wms | 5b2adda72ba13cf2a85ec488894c2024e155a4b5 | [
"Apache-2.0"
] | null | null | null | jobsubmission/src/logmonitor/EventAd.cpp | italiangrid/wms | 5b2adda72ba13cf2a85ec488894c2024e155a4b5 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) Members of the EGEE Collaboration. 2004.
See http://www.eu-egee.org/partners/ for details on the copyright
holders.
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.a... | 40.324074 | 137 | 0.711864 | italiangrid |
2c0ca1775a2045a5a922d50f94a7b78f217b262e | 5,132 | cpp | C++ | src/bind/window/snap_win.cpp | e-ntro-py/win-vind | 1ec805420732c82a46e2c79720db728ded792814 | [
"MIT"
] | null | null | null | src/bind/window/snap_win.cpp | e-ntro-py/win-vind | 1ec805420732c82a46e2c79720db728ded792814 | [
"MIT"
] | null | null | null | src/bind/window/snap_win.cpp | e-ntro-py/win-vind | 1ec805420732c82a46e2c79720db728ded792814 | [
"MIT"
] | null | null | null | #include "snap_win.hpp"
#include <functional>
#include "winutil.hpp"
#include "core/ntypelogger.hpp"
#include "util/box2d.hpp"
#include "util/def.hpp"
#include "util/screen_metrics.hpp"
#include "util/winwrap.hpp"
namespace
{
using namespace vind ;
inline void snap_foreground_window(
const std::... | 31.484663 | 93 | 0.543453 | e-ntro-py |
2c0ec26d20ec240c296e5ceff6e6fc481db1046d | 772 | cpp | C++ | cppcode/cpp execise/day07/final.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | cppcode/cpp execise/day07/final.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | cppcode/cpp execise/day07/final.cpp | jiedou/study | 606676ebc3d1fb1a87de26b6609307d71dafec22 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
class Point2D {
public:
Point2D (int x = 0, int y = 0) :
m_x (x), m_y (y) {}
void draw (void) const {
cout << "2D(" << m_x << ',' << m_y
<< ')' << endl;
}
protected:
int m_x;
int m_y;
};
class Point3D : public Point2D {
public:
void draw (void) const {
cout << "3D... | 17.953488 | 43 | 0.537565 | jiedou |
2c10502051eeeed7d90d44e4da7a52c9067e4087 | 10,113 | cc | C++ | lib/xilinx/configuration.cc | lromor/prjxray | 3586df58703a8a9ef1f2dbd4f71311a4074cf172 | [
"ISC"
] | null | null | null | lib/xilinx/configuration.cc | lromor/prjxray | 3586df58703a8a9ef1f2dbd4f71311a4074cf172 | [
"ISC"
] | null | null | null | lib/xilinx/configuration.cc | lromor/prjxray | 3586df58703a8a9ef1f2dbd4f71311a4074cf172 | [
"ISC"
] | null | null | null | #include <fstream>
#include <iostream>
#include <absl/strings/str_cat.h>
#include <absl/strings/str_split.h>
#include <absl/time/clock.h>
#include <absl/time/time.h>
#include <prjxray/xilinx/architectures.h>
#include <prjxray/xilinx/bitstream_writer.h>
#include <prjxray/xilinx/configuration.h>
#include <prjxray/xilin... | 46.389908 | 73 | 0.748838 | lromor |
2c15bcdda00f40b655aa33941d2d37b886fb76b3 | 314 | cpp | C++ | Xtreme Rappers/Xtreme Rappers.cpp | Sleepy105/IEEE-Xtreme-13.0 | c24fe4fff553e338bffc8f042fcbcc2ace4ccf5d | [
"MIT"
] | null | null | null | Xtreme Rappers/Xtreme Rappers.cpp | Sleepy105/IEEE-Xtreme-13.0 | c24fe4fff553e338bffc8f042fcbcc2ace4ccf5d | [
"MIT"
] | null | null | null | Xtreme Rappers/Xtreme Rappers.cpp | Sleepy105/IEEE-Xtreme-13.0 | c24fe4fff553e338bffc8f042fcbcc2ace4ccf5d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
uint64_t a, b, n = 0;
cin >> a >> b;
if (!(a && b))
cout << 0;
else if (a >= b*2) {
cout << b;
}
else if (b >= a*2) {
cout << a;
}
else
cout << a/3+b/3;
return 0;
}
| 14.952381 | 26 | 0.356688 | Sleepy105 |
2c18eec2985f433249a34a289c55aa0fb5f6ad4c | 262 | hpp | C++ | src/vm_error.hpp | cuttle-system/cuttle-vm | ec34cb75e335130c6deb8b46ed47a3545415c8af | [
"MIT"
] | null | null | null | src/vm_error.hpp | cuttle-system/cuttle-vm | ec34cb75e335130c6deb8b46ed47a3545415c8af | [
"MIT"
] | null | null | null | src/vm_error.hpp | cuttle-system/cuttle-vm | ec34cb75e335130c6deb8b46ed47a3545415c8af | [
"MIT"
] | null | null | null | #pragma once
#include <stdexcept>
namespace cuttle {
namespace vm {
class vm_error : public std::runtime_error
{
public:
vm_error() : runtime_error("Unknown vm error") {}
explicit vm_error(std::string msg) : runtime_error(msg.c_str()) {}
};
}
} | 18.714286 | 69 | 0.675573 | cuttle-system |
2c1a8d20538c054fb169ba7447bcd9afd1845b21 | 571 | cpp | C++ | Chapter 10. Generic Algorithms/Codes/10.31 Solution.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 10. Generic Algorithms/Codes/10.31 Solution.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 10. Generic Algorithms/Codes/10.31 Solution.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | 1 | 2021-09-30T14:08:03.000Z | 2021-09-30T14:08:03.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
int main()
{
// Get int sequences from the standard input.
std::istream_iterator<int> istream_iterator(std::cin), istream_endIter;
// Copy int sequences from standard input to the vector and sort all integers.
std::vector<int> vec(... | 27.190476 | 80 | 0.71979 | Yunxiang-Li |
2c1ad73b964a9b6ddeafecb8ba82be45d1345cb2 | 987 | cpp | C++ | samples/cpp/mao/53_pyrDown.cpp | chenghyang2001/opencv-2.4.11 | 020af901059236c702da580048d25e9fe082e8f8 | [
"BSD-3-Clause"
] | null | null | null | samples/cpp/mao/53_pyrDown.cpp | chenghyang2001/opencv-2.4.11 | 020af901059236c702da580048d25e9fe082e8f8 | [
"BSD-3-Clause"
] | null | null | null | samples/cpp/mao/53_pyrDown.cpp | chenghyang2001/opencv-2.4.11 | 020af901059236c702da580048d25e9fe082e8f8 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T07:08:24.000Z | 2020-07-22T07:08:24.000Z | #include <stdio.h>
#include <stdio.h>
//:read /home/peter/mao/53_pyrDown.cpp
//---------------------------------【頭文件、命名空間包含部分】----------------------------
// 描述:包含程序所使用的頭文件和命名空間
//------------------------------------------------------------------------------------------------
#include <opencv2/opencv.hpp>
#include... | 27.416667 | 99 | 0.450861 | chenghyang2001 |
2c1ddc3dfb21d125f5eadb54a1ce0e51645905ff | 1,092 | hpp | C++ | Includes/Core/Grid.hpp | Jeckhys/golPlayground | 7ad5282340ec5badda9322e2aab54c4ea996d983 | [
"MIT"
] | null | null | null | Includes/Core/Grid.hpp | Jeckhys/golPlayground | 7ad5282340ec5badda9322e2aab54c4ea996d983 | [
"MIT"
] | null | null | null | Includes/Core/Grid.hpp | Jeckhys/golPlayground | 7ad5282340ec5badda9322e2aab54c4ea996d983 | [
"MIT"
] | null | null | null | #ifndef HEADER_GRID_HPP
#define HEADER_GRID_HPP
#include <vector>
class Grid
{
public:
Grid(int width, int height);
~Grid() = default;
/**
* Compute the next generation internally.
*/
void nextGeneration();
void setState(int line, int column, bool value)... | 26 | 72 | 0.608059 | Jeckhys |
2c20a7ba3d7e15c4e8f2ba7ceedf6550849f5c7d | 6,331 | cpp | C++ | TomGine/GLDCWindowGetEvent.cpp | OpenNurbsFit/OpenNurbsFit | d1ca01437a6da6bbf921466013ff969def5dfe65 | [
"BSD-3-Clause"
] | 14 | 2015-07-06T13:04:49.000Z | 2022-02-06T10:09:05.000Z | TomGine/GLDCWindowGetEvent.cpp | OpenNurbsFit/OpenNurbsFit | d1ca01437a6da6bbf921466013ff969def5dfe65 | [
"BSD-3-Clause"
] | 1 | 2020-12-07T03:26:39.000Z | 2020-12-07T03:26:39.000Z | TomGine/GLDCWindowGetEvent.cpp | OpenNurbsFit/OpenNurbsFit | d1ca01437a6da6bbf921466013ff969def5dfe65 | [
"BSD-3-Clause"
] | 11 | 2015-07-06T13:04:43.000Z | 2022-03-29T10:57:04.000Z | /*
* Software License Agreement (GNU General Public License)
*
* Copyright (c) 2011, Thomas Mörwald
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, ... | 17.635097 | 73 | 0.632601 | OpenNurbsFit |
2c226c18a7af5811c85011d3925999991035fa73 | 1,571 | hh | C++ | include/libbio/vcf/subfield/utility/vector_value_helper.hh | tsnorri/libbio | 6cd929ac5f7bcccc340be60a6aa0a4ca6c7cb761 | [
"MIT"
] | 2 | 2021-05-21T08:44:53.000Z | 2021-12-24T16:22:56.000Z | include/libbio/vcf/subfield/utility/vector_value_helper.hh | tsnorri/libbio | 6cd929ac5f7bcccc340be60a6aa0a4ca6c7cb761 | [
"MIT"
] | null | null | null | include/libbio/vcf/subfield/utility/vector_value_helper.hh | tsnorri/libbio | 6cd929ac5f7bcccc340be60a6aa0a4ca6c7cb761 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Tuukka Norri
* This code is licensed under MIT license (see LICENSE for details).
*/
#ifndef LIBBIO_VCF_SUBFIELD_VECTOR_VALUE_HELPER_HH
#define LIBBIO_VCF_SUBFIELD_VECTOR_VALUE_HELPER_HH
#include <libbio/types.hh>
#include <libbio/vcf/metadata.hh>
namespace libbio::vcf {
// Helper for ... | 25.754098 | 101 | 0.728835 | tsnorri |
2c295066ece7629cb207ed41049e01a2444a60f1 | 4,515 | cpp | C++ | src/Entity.cpp | darkbitsorg/db-08_green_grappler | f009228edb2eb1a943ab6d5801a78a5d00ac9e43 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2018-06-12T13:35:31.000Z | 2018-06-12T13:35:31.000Z | src/Entity.cpp | darkbitsorg/db-08_green_grappler | f009228edb2eb1a943ab6d5801a78a5d00ac9e43 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | src/Entity.cpp | darkbitsorg/db-08_green_grappler | f009228edb2eb1a943ab6d5801a78a5d00ac9e43 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | #include "Precompiled.hpp"
#include "Entity.hpp"
#include "Time.hpp"
#include "Room.hpp"
Entity::Entity()
: mRemoved(false)
, mFrameCounter(0)
, mRoom(0)
{
}
Entity::~Entity()
{
}
void Entity::setPosition(float2 position) { mPosition = position; }
float2 Entity::getPosition() { return mPosition; }
void Entity::se... | 20.522727 | 93 | 0.636766 | darkbitsorg |
2c29a66dce75cb722d81fe20164c08a60dcd3de1 | 2,353 | cc | C++ | examples/redis_cache/filters/TimeFilter.cc | rizalgowandy/drogon | 7cf0a64ab60029c993b412bd64da6084e6e4da93 | [
"MIT"
] | 1,315 | 2021-07-17T13:26:10.000Z | 2022-03-31T17:53:49.000Z | examples/redis_cache/filters/TimeFilter.cc | rizalgowandy/drogon | 7cf0a64ab60029c993b412bd64da6084e6e4da93 | [
"MIT"
] | 200 | 2021-07-17T09:26:27.000Z | 2022-03-31T20:28:47.000Z | examples/redis_cache/filters/TimeFilter.cc | rizalgowandy/drogon | 7cf0a64ab60029c993b412bd64da6084e6e4da93 | [
"MIT"
] | 188 | 2021-07-22T04:22:53.000Z | 2022-03-29T03:07:10.000Z | //
// Created by antao on 2018/5/22.
//
#include "TimeFilter.h"
#include <drogon/utils/coroutine.h>
#include <drogon/drogon.h>
#include <string>
#include "RedisCache.h"
#include "DateFuncs.h"
#define VDate "visitDate"
void TimeFilter::doFilter(const HttpRequestPtr &req,
FilterCallback &&cb,
... | 32.232877 | 79 | 0.436039 | rizalgowandy |
2c2bf4900046ff5a2ab8bdcb1aa278db6f9b9b66 | 3,833 | cpp | C++ | aobench/main.cpp | Twinklebear/Charm-experiments | 2366d14fa35e24924e3512e26b36fe3d68a03227 | [
"MIT"
] | 5 | 2016-12-15T02:47:48.000Z | 2019-09-06T22:52:34.000Z | aobench/main.cpp | Twinklebear/Charm-experiments | 2366d14fa35e24924e3512e26b36fe3d68a03227 | [
"MIT"
] | null | null | null | aobench/main.cpp | Twinklebear/Charm-experiments | 2366d14fa35e24924e3512e26b36fe3d68a03227 | [
"MIT"
] | null | null | null | #include <ios>
#include <cstring>
#include <cstdio>
#include <fstream>
#include "main.decl.h"
#include "main.h"
// readonly global Charm++ variables
CProxy_Main main_proxy;
// Image dimensions
uint64_t IMAGE_W;
uint64_t IMAGE_H;
// Tile x/y dimensions
uint64_t TILE_W;
uint64_t TILE_H;
Main::Main(CkArgMsg *msg) : done... | 33.920354 | 90 | 0.636577 | Twinklebear |
2c2debbfac9743e245f6788a8ea47863d3a459d9 | 609 | cpp | C++ | C++/cis_project/main.cpp | Misha91908/Portfolio | c10b06462ec45f039778c77aa6c84e871cac34f6 | [
"MIT"
] | null | null | null | C++/cis_project/main.cpp | Misha91908/Portfolio | c10b06462ec45f039778c77aa6c84e871cac34f6 | [
"MIT"
] | null | null | null | C++/cis_project/main.cpp | Misha91908/Portfolio | c10b06462ec45f039778c77aa6c84e871cac34f6 | [
"MIT"
] | null | null | null | #include <QApplication>
#include "src/mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv); // Объект, отвечающий за работу приложения
mainwindow w; // Виджет главного окна приложения
if (w.is_db_connect) // Проверяется подключение к базе данных, в отсутствие под... | 38.0625 | 117 | 0.615764 | Misha91908 |
2c2f08ebc758310c6978fb56a3c15f1b4412181d | 802 | hpp | C++ | source/ui/scene/settingsScene.hpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/ui/scene/settingsScene.hpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | source/ui/scene/settingsScene.hpp | Stephouuu/Epitech-Bomberman | 8650071a6a21ba2e0606e4d8e38794de37bdf39f | [
"Unlicense"
] | null | null | null | /*
** settingsScene.hpp for UI in /home/escoba_j/Downloads/irrlicht-1.8.3/ui/scene
**
** Made by Joffrey Escobar
** Login <escoba_j@epitech.net>
**
** Started on Sun May 29 03:00:07 2016 Joffrey Escobar
*/
#ifndef SETTINGSSCENE_HPP
#define SETTINGSSCENE_HPP
#include <vector>
#include <string>
#include <utility>
#i... | 18.651163 | 79 | 0.720698 | Stephouuu |
2c2f4016621901e8c25420b89f2e1198b1afa2c2 | 5,750 | cpp | C++ | igvc_navigation/src/path_follower/path_follower.cpp | jiajunmao/igvc-software | ea1b11d9bb20e85e5f47aa03f930e9b65877d80c | [
"MIT"
] | 2 | 2020-06-04T01:33:01.000Z | 2021-12-22T03:59:53.000Z | igvc_navigation/src/path_follower/path_follower.cpp | jiajunmao/igvc-software | ea1b11d9bb20e85e5f47aa03f930e9b65877d80c | [
"MIT"
] | null | null | null | igvc_navigation/src/path_follower/path_follower.cpp | jiajunmao/igvc-software | ea1b11d9bb20e85e5f47aa03f930e9b65877d80c | [
"MIT"
] | 2 | 2020-06-04T01:26:43.000Z | 2021-12-22T03:59:54.000Z | #define _USE_MATH_DEFINES
#include <Eigen/Dense>
#include <cmath>
#include <iostream>
#include <geometry_msgs/PointStamped.h>
#include <geometry_msgs/PoseStamped.h>
#include <igvc_msgs/velocity_pair.h>
#include <nav_msgs/Odometry.h>
#include <visualization_msgs/MarkerArray.h>
#include <tf/transform_datatypes.h>
#in... | 33.045977 | 106 | 0.704696 | jiajunmao |
2c350a4f10230dc7e37db48997def31021ae2ccd | 3,744 | cpp | C++ | Cpp14/IPC/remove_from_queue.cpp | ernestyalumni/HrdwCCppCUDA | 17ed937dea06431a4d5ca103f993ea69a6918734 | [
"MIT"
] | 1 | 2018-02-09T19:44:51.000Z | 2018-02-09T19:44:51.000Z | Cpp14/IPC/remove_from_queue.cpp | ernestyalumni/HrdwCCppCUDA | 17ed937dea06431a4d5ca103f993ea69a6918734 | [
"MIT"
] | null | null | null | Cpp14/IPC/remove_from_queue.cpp | ernestyalumni/HrdwCCppCUDA | 17ed937dea06431a4d5ca103f993ea69a6918734 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
/// \file remove_from_queue.cpp
/// \author Ernest Yeung
/// \email ernestyalumni@gmail.com
/// \brief Simply request a message from a queue, and displays queue
/// attributes.
/// \ref
/// \details Simply request a message from... | 37.818182 | 214 | 0.655716 | ernestyalumni |
2c38ebbfc64e62429a68a253b4439c9baef93fb5 | 1,654 | hpp | C++ | generator/regions/locality_point_integrator.hpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | 13 | 2019-09-16T17:45:31.000Z | 2022-01-29T15:51:52.000Z | generator/regions/locality_point_integrator.hpp | mapsme/geocore | 346fceb020cd909b37706ab6ad454aec1a11f52e | [
"Apache-2.0"
] | 37 | 2019-10-04T00:55:46.000Z | 2019-12-27T15:13:19.000Z | generator/regions/locality_point_integrator.hpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | 13 | 2019-10-02T15:03:58.000Z | 2020-12-28T13:06:22.000Z | #pragma once
#include "generator/boost_helpers.hpp"
#include "generator/regions/country_specifier.hpp"
#include "generator/regions/level_region.hpp"
#include "generator/regions/node.hpp"
#include "generator/regions/place_point.hpp"
#include <memory>
namespace generator
{
namespace regions
{
// LocalityPointIntegrato... | 35.956522 | 92 | 0.772672 | vmihaylenko |
2c3a98391f39d5633573cd1496fc275b9db48696 | 4,098 | cpp | C++ | nica/hls/ikernel.cpp | haggaie/nica | b43de25be1549805340c5da37bdc451ff09cd936 | [
"BSD-2-Clause"
] | 22 | 2019-06-20T20:24:03.000Z | 2022-03-10T08:18:45.000Z | nica/hls/ikernel.cpp | lastweek/nica | c3067cf487b7615318a5e057363f42c4888bcebe | [
"BSD-2-Clause"
] | 3 | 2019-08-13T12:11:43.000Z | 2022-03-18T00:52:51.000Z | nica/hls/ikernel.cpp | lastweek/nica | c3067cf487b7615318a5e057363f42c4888bcebe | [
"BSD-2-Clause"
] | 8 | 2019-07-11T18:35:34.000Z | 2021-11-11T04:45:29.000Z | //
// Copyright (c) 2016-2018 Haggai Eran, Gabi Malka, Lior Zeno, Maroun Tork
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copy... | 33.867769 | 124 | 0.630551 | haggaie |
2c3bbcb8e4b81bb847259752ba38eae0c9ad939d | 1,886 | cpp | C++ | src/Lamscript/parsing/TokenType.cpp | C3NZ/lamscript | 4d9e7793caa9fb87752200d445a20d89fa9d9b31 | [
"MIT"
] | 2 | 2020-09-20T23:58:26.000Z | 2020-11-20T22:05:42.000Z | src/Lamscript/parsing/TokenType.cpp | foretwenty/lamscript | f1178cd629be29bc6527e45e5ab4b2bde9817ae9 | [
"MIT"
] | null | null | null | src/Lamscript/parsing/TokenType.cpp | foretwenty/lamscript | f1178cd629be29bc6527e45e5ab4b2bde9817ae9 | [
"MIT"
] | null | null | null | #include <Lamscript/parsing/TokenType.h>
#include <string>
namespace lamscript {
namespace parsing {
/// @brief Convert TokenType enum values into their corresponding string
/// representations.
std::string ConvertTokenTypeToString(TokenType token_type) {
switch (token_type) {
case LEFT_PAREN: return "(";
... | 31.966102 | 72 | 0.528632 | C3NZ |
2c3fac32e54ed2d67f5ede538d89676af3b2e2b6 | 2,517 | cpp | C++ | src/gui-qt4/libs/seiscomp3/gui/core/infotext.cpp | damb/seiscomp3 | 560a8f7ae43737ae7826fb1ffca76a9f601cf9dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 94 | 2015-02-04T13:57:34.000Z | 2021-11-01T15:10:06.000Z | src/gui-qt4/libs/seiscomp3/gui/core/infotext.cpp | damb/seiscomp3 | 560a8f7ae43737ae7826fb1ffca76a9f601cf9dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 233 | 2015-01-28T15:16:46.000Z | 2021-08-23T11:31:37.000Z | src/gui-qt4/libs/seiscomp3/gui/core/infotext.cpp | damb/seiscomp3 | 560a8f7ae43737ae7826fb1ffca76a9f601cf9dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 95 | 2015-02-13T15:53:30.000Z | 2021-11-02T14:54:54.000Z | /***************************************************************************
* Copyright (C) by GFZ Potsdam *
* *
* You can redistribute and/or modify this program under the *
* terms o... | 30.695122 | 77 | 0.273341 | damb |
2c40fb408529f022c3148e790e76fef540fb1e09 | 2,923 | cc | C++ | wobble/term.cc | spanezz/wobble | 482266913b1bf1907555b620d88a29c66f3d1638 | [
"BSD-3-Clause"
] | 1 | 2017-01-10T12:46:54.000Z | 2017-01-10T12:46:54.000Z | wobble/term.cc | spanezz/wobble | 482266913b1bf1907555b620d88a29c66f3d1638 | [
"BSD-3-Clause"
] | 1 | 2015-10-01T15:03:33.000Z | 2015-11-23T15:50:33.000Z | wobble/term.cc | spanezz/wobble | 482266913b1bf1907555b620d88a29c66f3d1638 | [
"BSD-3-Clause"
] | 3 | 2015-09-15T06:35:50.000Z | 2018-04-03T10:59:15.000Z | #include "term.h"
#include <unistd.h>
#include <cerrno>
#include <system_error>
namespace wobble {
namespace term {
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_BLUE "\x1b[34m"
#define ANSI_COLOR_MAGENTA "\x1b[35m"
#define ANS... | 19.357616 | 84 | 0.575094 | spanezz |
2c4435cd742ce64637c3d027dcc8bb8197814463 | 2,186 | cpp | C++ | modules/task_1/romanuyk_algoritm_kennona/algoritm_kennona.cpp | stasyurin/pp_2021_spring_informatics | dd9136c28cca4c538c5ecc82512fd78ad1fa7bd3 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/romanuyk_algoritm_kennona/algoritm_kennona.cpp | stasyurin/pp_2021_spring_informatics | dd9136c28cca4c538c5ecc82512fd78ad1fa7bd3 | [
"BSD-3-Clause"
] | null | null | null | modules/task_1/romanuyk_algoritm_kennona/algoritm_kennona.cpp | stasyurin/pp_2021_spring_informatics | dd9136c28cca4c538c5ecc82512fd78ad1fa7bd3 | [
"BSD-3-Clause"
] | 1 | 2021-12-02T22:38:53.000Z | 2021-12-02T22:38:53.000Z | // Copyright 2020 Romanuyk Sergey
#include <vector>
#include <random>
#include "../../../modules/task_1/romanuyk_algoritm_kennona/algoritm_kennona.h"
std::vector<double> genMatrix(int n) {
int SIZE = n * n;
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_real_distribution<> urd(-50, 50);
... | 28.025641 | 79 | 0.467521 | stasyurin |
2c445efc4e762428c06e95d1ca3ca31ee298c411 | 57,216 | cpp | C++ | AuthServer.cpp | apostoldevel/module-AuthServer | 284b0271eac5bc52a1710d47eb4acbad0f778a82 | [
"MIT"
] | null | null | null | AuthServer.cpp | apostoldevel/module-AuthServer | 284b0271eac5bc52a1710d47eb4acbad0f778a82 | [
"MIT"
] | null | null | null | AuthServer.cpp | apostoldevel/module-AuthServer | 284b0271eac5bc52a1710d47eb4acbad0f778a82 | [
"MIT"
] | null | null | null | /*++
Program name:
Apostol Web Service
Module Name:
AuthServer.cpp
Notices:
Module: OAuth 2 Authorization Server
Author:
Copyright (c) Prepodobny Alen
mailto: alienufo@inbox.ru
mailto: ufocomp@gmail.com
--*/
//---------------------------------------------------------------------------------------... | 44.805012 | 167 | 0.483519 | apostoldevel |
2c44abb54c5fd459022aedda333fb842d8826d66 | 1,751 | hpp | C++ | src/signedzoneimp.hpp | sischkg/nxnsattack | c20896e40187bbcacb5c0255ff8f3cc7d0592126 | [
"MIT"
] | 5 | 2020-05-22T10:01:51.000Z | 2022-01-01T04:45:14.000Z | src/signedzoneimp.hpp | sischkg/dns-fuzz-server | 6f45079014e745537c2f564fdad069974e727da1 | [
"MIT"
] | 1 | 2020-06-07T14:09:44.000Z | 2020-06-07T14:09:44.000Z | src/signedzoneimp.hpp | sischkg/dns-fuzz-server | 6f45079014e745537c2f564fdad069974e727da1 | [
"MIT"
] | 2 | 2020-03-10T03:06:20.000Z | 2021-07-25T15:07:45.000Z | #ifndef SIGNED_ZONE_IMP_HPP
#define SIGNED_ZONE_IMP_HPP
#include "abstractzoneimp.hpp"
#include "nsecdb.hpp"
#include "nsec3db.hpp"
namespace dns
{
class SignedZoneImp : public AbstractZoneImp
{
private:
ZoneSigner mSigner;
NSECDBPtr mNSECDB;
NSECDBPtr mNSEC3DB;
bool mEnableNSEC;
... | 39.795455 | 138 | 0.73044 | sischkg |
2c45ddb59e4267c50323ce35521d2e5e4f0c714e | 760 | cpp | C++ | docs/mfc/reference/codesnippet/CPP/cwnd-class_65.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/mfc/reference/codesnippet/CPP/cwnd-class_65.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/mfc/reference/codesnippet/CPP/cwnd-class_65.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | // In this example a rectangle is drawn in a view.
// The OnChangeRect() function changes the dimensions
// of the rectangle and then calls CWnd::Invalidate() so the
// client area of the view will be redrawn next time the
// window is updated. It then calls CWnd::UpdateWindow
// to force the new rectangle to be paint... | 28.148148 | 60 | 0.710526 | bobbrow |
2c46ee4492448793b16bf05202c35e10261f85fd | 15,687 | cpp | C++ | src/framebufferobject.cpp | AlessandroParrotta/parrlib | d1679ee8a7cff7d14b2d93e898ed58fecff13159 | [
"MIT"
] | 2 | 2020-05-08T20:27:14.000Z | 2021-01-21T10:28:19.000Z | src/framebufferobject.cpp | AlessandroParrotta/parrlib | d1679ee8a7cff7d14b2d93e898ed58fecff13159 | [
"MIT"
] | null | null | null | src/framebufferobject.cpp | AlessandroParrotta/parrlib | d1679ee8a7cff7d14b2d93e898ed58fecff13159 | [
"MIT"
] | 1 | 2020-05-08T20:27:16.000Z | 2020-05-08T20:27:16.000Z | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <parrlib/framebufferobject.h>
#include <parrlib/timer.h>
#include <parrlib/context.h>
#include <iostream>
void FrameBufferObject::addAttachment(GLenum att, FrameBufferObject::ColorAttachment format) {
if (attachments.find(att) != attachments.end()) { std::cout... | 35.979358 | 165 | 0.730159 | AlessandroParrotta |
2c493b1afc411ba07e17453bb470fa3dde154b8e | 4,441 | cpp | C++ | projects/PathosEngine/src/pathos/render/postprocessing/anti_aliasing_fxaa.cpp | codeonwort/pathosengine | ea568afeac9af3ebe3f2e53cc5abeecb40714466 | [
"MIT"
] | 11 | 2016-08-30T12:01:35.000Z | 2021-12-29T15:34:03.000Z | projects/PathosEngine/src/pathos/render/postprocessing/anti_aliasing_fxaa.cpp | codeonwort/pathosengine | ea568afeac9af3ebe3f2e53cc5abeecb40714466 | [
"MIT"
] | 9 | 2016-05-19T03:14:22.000Z | 2021-01-17T05:45:52.000Z | projects/PathosEngine/src/pathos/render/postprocessing/anti_aliasing_fxaa.cpp | codeonwort/pathosengine | ea568afeac9af3ebe3f2e53cc5abeecb40714466 | [
"MIT"
] | null | null | null | #include "anti_aliasing_fxaa.h"
#include "pathos/shader/shader.h"
#include "pathos/render/render_device.h"
#include "pathos/render/scene_render_targets.h"
namespace pathos {
void FXAA::initializeResources(RenderCommandList& cmdList)
{
std::string vshader = R"(
#version 430 core
layout (location = 0) in vec3 posi... | 36.105691 | 113 | 0.747579 | codeonwort |
2c4cf8d77ad78f5b06a6c784a44bd05fdbbad7d8 | 99,774 | cc | C++ | tce/src/applibs/Scheduler/ResourceModel/ExecutionPipelineResource.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 74 | 2015-10-22T15:34:10.000Z | 2022-03-25T07:57:23.000Z | tce/src/applibs/Scheduler/ResourceModel/ExecutionPipelineResource.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 79 | 2015-11-19T09:23:08.000Z | 2022-01-12T14:15:16.000Z | tce/src/applibs/Scheduler/ResourceModel/ExecutionPipelineResource.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 38 | 2015-11-17T10:12:23.000Z | 2022-03-25T07:57:24.000Z | /*
Copyright (c) 2002-2020 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... | 34.369273 | 198 | 0.559043 | kanishkan |
2c4df4e10509d9bc13f215281642d935ff5f472f | 145 | cpp | C++ | Windows-Socket-C++/Projects/TCP-Socket/Thread.cpp | khanh245/Windows-Socket | 443f145aa94125d0ac5d5f8efce56c2a61508906 | [
"MIT"
] | 1 | 2017-04-27T13:45:16.000Z | 2017-04-27T13:45:16.000Z | Windows-Socket-C++/Projects/TCP-Socket/Thread.cpp | khanh245/Windows-Socket | 443f145aa94125d0ac5d5f8efce56c2a61508906 | [
"MIT"
] | 1 | 2017-08-08T14:26:32.000Z | 2017-08-10T09:19:32.000Z | Windows-Socket-C++/Projects/TCP-Socket/Thread.cpp | khanh245/Windows-Socket | 443f145aa94125d0ac5d5f8efce56c2a61508906 | [
"MIT"
] | null | null | null | #include "Thread.h"
Kronos::Thread::Thread()
{
}
Kronos::Thread::Thread(Kronos::IRunnable* runnableObj)
{
}
Kronos::Thread::~Thread()
{
}
| 8.055556 | 54 | 0.648276 | khanh245 |
2c51287740901c6901e09416029cc3b55ea170f9 | 1,413 | cpp | C++ | cpp/atcoder/DPL_1_B.cpp | KeiichiHirobe/algorithms | 8de082dab33054f3e433330a2cf5d06bd770bd04 | [
"Apache-2.0"
] | null | null | null | cpp/atcoder/DPL_1_B.cpp | KeiichiHirobe/algorithms | 8de082dab33054f3e433330a2cf5d06bd770bd04 | [
"Apache-2.0"
] | null | null | null | cpp/atcoder/DPL_1_B.cpp | KeiichiHirobe/algorithms | 8de082dab33054f3e433330a2cf5d06bd770bd04 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
#include <map>
#include <algorithm>
#include <queue>
#include <iomanip>
// clang-format off
#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmi... | 21.738462 | 87 | 0.457183 | KeiichiHirobe |
2c514102de65c7819289656bb38b1836534b0d49 | 22 | cpp | C++ | apathy.cpp | r-lyeh/apathy | b752bbbb6e05c270c78f067d2cca15702f9f298f | [
"Zlib"
] | 22 | 2015-02-06T17:31:33.000Z | 2017-06-28T21:15:57.000Z | apathy.cpp | r-lyeh/apathy | b752bbbb6e05c270c78f067d2cca15702f9f298f | [
"Zlib"
] | 3 | 2015-03-20T11:52:50.000Z | 2016-04-14T08:47:01.000Z | apathy.cpp | r-lyeh/apathy | b752bbbb6e05c270c78f067d2cca15702f9f298f | [
"Zlib"
] | 3 | 2015-09-26T17:12:17.000Z | 2016-12-29T09:04:22.000Z | #include "apathy.hpp"
| 11 | 21 | 0.727273 | r-lyeh |
2c53633d92f670e39a7627f883f029f0312987df | 4,375 | cpp | C++ | third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/platform/exported/WebMediaStreamTrack.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... | 32.894737 | 80 | 0.761143 | metux |
2c5cbc4506d717f3d1f7307983521593c7f1e88c | 308 | cpp | C++ | Poker/Classes/GameState.cpp | zivlhoo/Poker | f0525b7c5119256c70b2e76b7c09d8729dcd5f76 | [
"Apache-2.0"
] | null | null | null | Poker/Classes/GameState.cpp | zivlhoo/Poker | f0525b7c5119256c70b2e76b7c09d8729dcd5f76 | [
"Apache-2.0"
] | null | null | null | Poker/Classes/GameState.cpp | zivlhoo/Poker | f0525b7c5119256c70b2e76b7c09d8729dcd5f76 | [
"Apache-2.0"
] | null | null | null | //
// GameState.cpp
// Poker
//
// Created by ZivHoo on 15/6/27.
//
//
#include "GameState.h"
static GameState* instance = nullptr;
GameState::GameState()
{
}
GameState::~GameState()
{
}
GameState* GameState::getInstance()
{
if( !instance ) instance = new GameState();
return instance;
} | 11.846154 | 47 | 0.633117 | zivlhoo |
2c5df87d48a229dbef6e8a08344c80b0b87671c4 | 2,707 | hpp | C++ | examples/vector-io.hpp | yangxianpku/cuarma | 404f20b5b3fa74e5e27338e89343450f8853024c | [
"X11",
"MIT"
] | null | null | null | examples/vector-io.hpp | yangxianpku/cuarma | 404f20b5b3fa74e5e27338e89343450f8853024c | [
"X11",
"MIT"
] | null | null | null | examples/vector-io.hpp | yangxianpku/cuarma | 404f20b5b3fa74e5e27338e89343450f8853024c | [
"X11",
"MIT"
] | null | null | null | #pragma once
/* =========================================================================
Copyright (c) 2015-2017, COE of Peking University, Shaoqiang Tang.
-----------------
cuarma - COE of Peking University, Shaoqiang Tang.
-----------------
... | 22.188525 | 81 | 0.595863 | yangxianpku |
2c6034f85cfba4de83792b04d8f79b0d932271b0 | 658 | hpp | C++ | tlab/include/tlab/threading_model.hpp | gwonhyeong/tlab | f84963f2636fdb830ab300b92ec1d8395ce2da58 | [
"MIT"
] | null | null | null | tlab/include/tlab/threading_model.hpp | gwonhyeong/tlab | f84963f2636fdb830ab300b92ec1d8395ce2da58 | [
"MIT"
] | null | null | null | tlab/include/tlab/threading_model.hpp | gwonhyeong/tlab | f84963f2636fdb830ab300b92ec1d8395ce2da58 | [
"MIT"
] | null | null | null | /**
* @file threading_mode.hpp
* @author ghtak (gwonhyeong.tak@gmail.com)
* @brief
* @version 0.1
* @date 2019-07-29
*
* @copyright Copyright (c) 2019
*
*/
#ifndef __tlab_threading_model_h__
#define __tlab_threading_model_h__
#include <mutex>
namespace tlab{
namespace internal {
class no_lock{
pub... | 17.315789 | 44 | 0.636778 | gwonhyeong |
2c62937a13d6029c3b93e36f22be2ee19a342aca | 933 | cpp | C++ | BOJ/02000~02999/2200~2299/2252.cpp | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/02000~02999/2200~2299/2252.cpp | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/02000~02999/2200~2299/2252.cpp | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
struct st{
int A,B;
};
struct cmp {
bool operator()(st a, st b){
return a.B > b.B;
}
};
int N,M,a,b;
vector < vector <int> > V(33000);
int cnt[33000];
int check[33000];
priority_queue<st , vector<st>, cmp> Q;
int main()
{... | 16.963636 | 51 | 0.400857 | shinkeonkim |
2c6387b51e3c1d49131c562ce39e46915b0b8d88 | 31,441 | cpp | C++ | Docs/References/Ref_codes/Lidar/lidar/LIDARLite.cpp | crawlerufsc/crawler_hardware | 25d342c91e1e5beb79b695bed83fd860cee55b6b | [
"MIT"
] | null | null | null | Docs/References/Ref_codes/Lidar/lidar/LIDARLite.cpp | crawlerufsc/crawler_hardware | 25d342c91e1e5beb79b695bed83fd860cee55b6b | [
"MIT"
] | null | null | null | Docs/References/Ref_codes/Lidar/lidar/LIDARLite.cpp | crawlerufsc/crawler_hardware | 25d342c91e1e5beb79b695bed83fd860cee55b6b | [
"MIT"
] | null | null | null | /* =============================================================================
LIDARLite Arduino Library:
The purpose of this library is two-fold:
1. Quick access all the basic functions of LIDAR-Lite via Arduino without
worrying about specifics
2. By reading through this library, users of any platfo... | 43.48686 | 158 | 0.598391 | crawlerufsc |
2c64ec6635d67cb39e81767676dc80ed898a03d8 | 929 | cc | C++ | lib/asan/lit_tests/stack-overflow.cc | SaleJumper/android-source-browsing.platform--external--compiler-rt | 1f922a5259510f70a12576e7a61eaa0033a02b16 | [
"MIT"
] | 1 | 2015-02-04T20:57:19.000Z | 2015-02-04T20:57:19.000Z | src/llvm/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | src/llvm/projects/compiler-rt/lib/asan/lit_tests/stack-overflow.cc | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2021-05-26T06:41:58.000Z | 2021-05-26T06:41:58.000Z | // RUN: %clangxx_asan -m64 -O0 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
// RUN: %clangxx_asan -m64 -O1 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
// RUN: %clangxx_asan -m64 -O2 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
// RUN: %clangxx_asan -m64 -O3 %s -o %t && %t 2>&1 | %symbolize | FileCheck %s
// R... | 46.45 | 78 | 0.564047 | SaleJumper |
2c655d8b404ce1a8a699ae4e320b9ae1a58f2661 | 4,757 | hh | C++ | nox/src/include/port-stats-in.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/include/port-stats-in.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/include/port-stats-in.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | /* Copyright 2008 (C) Nicira, Inc.
*
* This file is part of NOX.
*
* NOX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* N... | 27.982353 | 75 | 0.678159 | ayjazz |
2c67cba99306424bfbc2015ff0c3d863ff86f4da | 1,631 | hh | C++ | cc/virus/name.hh | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | cc/virus/name.hh | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | cc/virus/name.hh | skepner/ae | d53336a561df1a46a39debb143c9f9496b222a46 | [
"MIT"
] | null | null | null | #pragma once
#include "ext/fmt.hh"
#include "ext/compare.hh"
#include "utils/string.hh"
// ----------------------------------------------------------------------
namespace ae::virus::inline v2
{
class Name
{
public:
Name() = default;
Name(const Name&) = default;
Name(Name&&) = d... | 33.979167 | 189 | 0.543225 | skepner |
2c69920a4a1a923c7063902112d73590db5567b5 | 5,819 | hpp | C++ | sdk/storage/inc/datalake/directory_client.hpp | CaseyCarter/azure-sdk-for-cpp | b9212922e7184e4b03756f0f6f586aec00997744 | [
"MIT"
] | null | null | null | sdk/storage/inc/datalake/directory_client.hpp | CaseyCarter/azure-sdk-for-cpp | b9212922e7184e4b03756f0f6f586aec00997744 | [
"MIT"
] | 1 | 2021-02-23T00:43:57.000Z | 2021-02-23T00:49:17.000Z | sdk/storage/inc/datalake/directory_client.hpp | CaseyCarter/azure-sdk-for-cpp | b9212922e7184e4b03756f0f6f586aec00997744 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#pragma once
#include "common/storage_credential.hpp"
#include "common/storage_uri_builder.hpp"
#include "credentials/credentials.hpp"
#include "datalake/path_client.hpp"
#include "datalake_options.hpp"
#include "datalake_res... | 40.978873 | 100 | 0.701151 | CaseyCarter |
ef1b35f95afb4e08cd5cd564be8b762e6aadb2f9 | 599 | cpp | C++ | MinecraftSpeedrunHelper/Memory/HookManager.cpp | FFace32/MinecraftSpeedrunHelper | 1ebf57fbb2c1f0e48d9f67fc10bbbae1db9a7b69 | [
"MIT"
] | 1 | 2020-08-10T13:21:54.000Z | 2020-08-10T13:21:54.000Z | MinecraftSpeedrunHelper/Memory/HookManager.cpp | FFace32/MinecraftSpeedrunHelper | 1ebf57fbb2c1f0e48d9f67fc10bbbae1db9a7b69 | [
"MIT"
] | null | null | null | MinecraftSpeedrunHelper/Memory/HookManager.cpp | FFace32/MinecraftSpeedrunHelper | 1ebf57fbb2c1f0e48d9f67fc10bbbae1db9a7b69 | [
"MIT"
] | null | null | null | #include "HookManager.h"
#include "DetourHook.h"
#include <thread>
using namespace Memory;
HookManager::HookManager()
{
InitMinHook();
}
Hook* HookManager::RegisterHook( Hook* Hook )
{
return m_Hooks.emplace_back( Hook );
}
void HookManager::Unhook()
{
if ( m_Hooks.empty() )
return UninitMinHook();
for ( con... | 18.71875 | 143 | 0.702838 | FFace32 |
ef1daf2e4801b4f51b7344e007e9c39ab8101209 | 2,719 | hpp | C++ | include/algorithms/algorithm.hpp | Felix-Droop/static_task_scheduling | 084b7d53caeff9ac3593aa7e3d2c5206afd234d0 | [
"MIT"
] | null | null | null | include/algorithms/algorithm.hpp | Felix-Droop/static_task_scheduling | 084b7d53caeff9ac3593aa7e3d2c5206afd234d0 | [
"MIT"
] | null | null | null | include/algorithms/algorithm.hpp | Felix-Droop/static_task_scheduling | 084b7d53caeff9ac3593aa7e3d2c5206afd234d0 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include <cctype>
#include <functional>
#include <optional>
#include <ranges>
#include <string>
#include <algorithms/cpop.hpp>
#include <algorithms/dbca.hpp>
#include <algorithms/heft.hpp>
#include <algorithms/rbca.hpp>
#include <algorithms/tdca.hpp>
#include <cluster/cluster.hpp>
#inclu... | 25.895238 | 86 | 0.589923 | Felix-Droop |
ef1ebb6e3d5ac696e3cf2bb4bb532f6bbb1555be | 45 | cpp | C++ | Ejercicios/Ejercicio39- Modulacion/calculadora.cpp | FabiolaCastillo8/cpp | b81808e0e90090b4e385540c29089dc53859d086 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio39- Modulacion/calculadora.cpp | FabiolaCastillo8/cpp | b81808e0e90090b4e385540c29089dc53859d086 | [
"MIT"
] | null | null | null | Ejercicios/Ejercicio39- Modulacion/calculadora.cpp | FabiolaCastillo8/cpp | b81808e0e90090b4e385540c29089dc53859d086 | [
"MIT"
] | null | null | null | int sumar(int a, int b)
{
return a +b;
} | 9 | 23 | 0.533333 | FabiolaCastillo8 |
ef237a79fd6740d5bec2ca20494573b6b8eac87a | 3,427 | cpp | C++ | src/input/FileInput.cpp | fgguo/A-heterogeneous-dataflow-system | 421715922ca87b8fd1e680a1a2e5e0c071f1d3ea | [
"BSD-3-Clause"
] | 2 | 2020-05-09T04:17:02.000Z | 2020-05-27T09:05:49.000Z | src/input/FileInput.cpp | fgguo/A-heterogeneous-dataflow-system | 421715922ca87b8fd1e680a1a2e5e0c071f1d3ea | [
"BSD-3-Clause"
] | null | null | null | src/input/FileInput.cpp | fgguo/A-heterogeneous-dataflow-system | 421715922ca87b8fd1e680a1a2e5e0c071f1d3ea | [
"BSD-3-Clause"
] | null | null | null |
#include "../communication/Window.hpp"
#include <unistd.h>
#include <stdlib.h>
#include <ctime>
#include <cstring>
#include "FileInput.hpp"
using namespace std;
FileInput::FileInput(string file, Window* window) :
Input() {
this->fileName = new char[file.length()];
this->window = window;
strcpy(this->fileName,... | 21.41875 | 74 | 0.62562 | fgguo |
ef27d7f48c687baf7358f17e3b6aaf3878adabb8 | 382 | cpp | C++ | hackerrank/practice/mathematics/fundamentals/k_candy_store__bcm.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | 4 | 2018-06-05T14:15:52.000Z | 2022-02-08T05:14:23.000Z | hackerrank/practice/mathematics/fundamentals/k_candy_store__bcm.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | null | null | null | hackerrank/practice/mathematics/fundamentals/k_candy_store__bcm.cpp | Loks-/competitions | 3bb231ba9dd62447048832f45b09141454a51926 | [
"MIT"
] | 1 | 2018-10-21T11:01:35.000Z | 2018-10-21T11:01:35.000Z | // https://www.hackerrank.com/challenges/k-candy-store
#include "common/modular/proxy/binomial_coefficient.h"
#include "common/stl/base.h"
int main_k_candy_store__bcm() {
modular::proxy::BinomialCoefficient bcm(1000000000);
unsigned T, N, K;
cin >> T;
for (unsigned it = 0; it < T; ++it) {
cin >> N >> K;
... | 23.875 | 54 | 0.641361 | Loks- |
ef2e4ffb6e958871ef82b5013eb80768a42d3d07 | 1,472 | cp | C++ | Sources_Common/Tasks/CNewMailTask.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Sources_Common/Tasks/CNewMailTask.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Sources_Common/Tasks/CNewMailTask.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless re... | 29.44 | 100 | 0.754755 | mulberry-mail |
ef30c51b4aadbdd7ba22680356072213b5293804 | 718 | cpp | C++ | BOJ/Uncategorized/P_9251/main.cpp | BeautifulBeer/algorithms | 88b845dd1853ef11a839a7acb36999cf25a46fef | [
"MIT"
] | null | null | null | BOJ/Uncategorized/P_9251/main.cpp | BeautifulBeer/algorithms | 88b845dd1853ef11a839a7acb36999cf25a46fef | [
"MIT"
] | null | null | null | BOJ/Uncategorized/P_9251/main.cpp | BeautifulBeer/algorithms | 88b845dd1853ef11a839a7acb36999cf25a46fef | [
"MIT"
] | null | null | null | #include <cstdio>
#pragma warning(disable: 4996)
using namespace std;
int length_a, length_b;
char buf_a[1001];
char buf_b[1001];
int dp[1001][1001];
int max(int a, int b) {
return (a > b) ? a : b;
}
int main() {
scanf(" %s %s", buf_a, buf_b);
for (int i = 0; i < 1001; i++) {
if (buf_a[i] == '\0') {
length_a... | 18.410256 | 47 | 0.488858 | BeautifulBeer |
ef326a52023dbbcc2b372ee0daaa13b17458c12a | 4,893 | cpp | C++ | src/libclient/result/resultstorage.cpp | MKV21/glimpse_client | 8769815b8faeb345a9698b6fd22bd9f416467a01 | [
"BSD-3-Clause"
] | 11 | 2015-02-11T10:06:51.000Z | 2018-06-24T23:18:27.000Z | src/libclient/result/resultstorage.cpp | MKV21/glimpse_client | 8769815b8faeb345a9698b6fd22bd9f416467a01 | [
"BSD-3-Clause"
] | 72 | 2015-02-05T11:42:13.000Z | 2015-12-09T22:18:41.000Z | src/libclient/result/resultstorage.cpp | MKV21/glimpse_client | 8769815b8faeb345a9698b6fd22bd9f416467a01 | [
"BSD-3-Clause"
] | 8 | 2015-02-05T13:49:51.000Z | 2015-08-21T10:55:03.000Z | #include "resultstorage.h"
#include "../storage/storagepaths.h"
#include "../log/logger.h"
#include "types.h"
#include "../report/report.h"
#include <QPointer>
#include <QDir>
#include <QCoreApplication>
#include <QUuid>
#include <QJsonDocument>
#include <QFile>
#include <QDebug>
LOGGER(ResultStorage);
class ResultS... | 25.888889 | 124 | 0.626814 | MKV21 |
ef33fe889e821a38493209168937e223d3ab1434 | 1,656 | cpp | C++ | drv/hd44780/hd44780.example.cpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | drv/hd44780/hd44780.example.cpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | drv/hd44780/hd44780.example.cpp | yhsb2k/omef | 7425b62dd4b5d0af4e320816293f69d16d39f57a | [
"MIT"
] | null | null | null | // Example for STM32F4DISCOVERY development board
#include "gpio/gpio.hpp"
#include "tim/tim.hpp"
#include "systick/systick.hpp"
#include "drv/hd44780/hd44780.hpp"
#include "drv/di/di.hpp"
#include "FreeRTOS.h"
#include "task.h"
using namespace hal;
using namespace drv;
struct di_poll_task_ctx_t
{
di &button_1;
hd... | 19.714286 | 72 | 0.66244 | yhsb2k |
ef346a60f06e4ccbe3095fc09dd3557bea0b78be | 6,762 | hpp | C++ | src/Expression.hpp | tefu/cpsl | 49b9a2fade84c2ce8e4d5ed3001a4bce65b70026 | [
"MIT"
] | null | null | null | src/Expression.hpp | tefu/cpsl | 49b9a2fade84c2ce8e4d5ed3001a4bce65b70026 | [
"MIT"
] | null | null | null | src/Expression.hpp | tefu/cpsl | 49b9a2fade84c2ce8e4d5ed3001a4bce65b70026 | [
"MIT"
] | null | null | null | #ifndef CPSL_EXPRESSION_H
#define CPSL_EXPRESSION_H
#include <string>
#include <vector>
#include <memory>
#include "ProgramNode.hpp"
#include "Type.hpp"
#include "FormalParameter.hpp"
struct Expression : ProgramNode
{
virtual std::string gen_asm()=0;
virtual bool is_constant() const=0;
virtual Type* data_type() ... | 22.316832 | 91 | 0.684265 | tefu |
ef3b76535518b23423a5999d0ef174c92dd5d56e | 15,984 | cpp | C++ | AkameCore/Source Files/Rendering/Model.cpp | SudharsanZen/Akame | 376efe3929e4426e6dc01440ab9f6aa3e8dcb2bf | [
"Apache-2.0"
] | 2 | 2022-03-30T20:58:58.000Z | 2022-03-31T02:06:17.000Z | AkameCore/Source Files/Rendering/Model.cpp | SudharsanZen/Akame | 376efe3929e4426e6dc01440ab9f6aa3e8dcb2bf | [
"Apache-2.0"
] | null | null | null | AkameCore/Source Files/Rendering/Model.cpp | SudharsanZen/Akame | 376efe3929e4426e6dc01440ab9f6aa3e8dcb2bf | [
"Apache-2.0"
] | null | null | null | #include "Rendering/Model.h"
#include<iostream>
#include"misc/temp.h"
#include"Core/Log/Log.h"
#include"Components/Animation/SkeletalMesh.h"
#include"Animation/AnimationControllerSystem.h"
#include"Core/Scene.h"
#pragma warning(push, 0)
#pragma warning( disable : 26812)
#pragma warning( disable : 26495)
#include<assim... | 27.653979 | 126 | 0.666229 | SudharsanZen |
ef3bc7942e919768065e1fab05d103374b7de34e | 946 | cpp | C++ | Example/interprocess_14/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/interprocess_14/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/interprocess_14/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | #include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/sync/named_mutex.hpp>
#include <boost/interprocess/sync/named_condition.hpp>
#include <boost/interprocess/sync/scoped_lock.hpp>
#include <iostream>
using namespace boost::interprocess;
int main()
{
managed_shared_memory managed_shm... | 26.277778 | 65 | 0.674419 | KwangjoJeong |
ef3e895793e05651b6aace107751c179c5d77cb1 | 37,177 | cpp | C++ | titan-infinite/src/texture.cpp | KyleKaiWang/titan-infinite | d2905e050501fc076589bb8e1578d3285ec5aab0 | [
"Apache-2.0"
] | null | null | null | titan-infinite/src/texture.cpp | KyleKaiWang/titan-infinite | d2905e050501fc076589bb8e1578d3285ec5aab0 | [
"Apache-2.0"
] | null | null | null | titan-infinite/src/texture.cpp | KyleKaiWang/titan-infinite | d2905e050501fc076589bb8e1578d3285ec5aab0 | [
"Apache-2.0"
] | null | null | null | /*
* Vulkan Renderer Program
*
* Copyright (C) 2020 Kyle Wang
*/
#include "pch.h"
#include "texture.h"
#include <filesystem>
#include <gli.hpp>
namespace texture {
TextureObject loadTexture(
const std::string& filename,
VkFormat format,
Device* device,
int num_requested_compon... | 39.932331 | 171 | 0.63585 | KyleKaiWang |
ef4071cc75c614136a68f101bdf4354167a039ca | 2,003 | cpp | C++ | src/calc_velocity.cpp | suwamaro/rpa | fc9d37f03705334ee17b77de6ad2b8feab3cc7b0 | [
"Apache-2.0"
] | null | null | null | src/calc_velocity.cpp | suwamaro/rpa | fc9d37f03705334ee17b77de6ad2b8feab3cc7b0 | [
"Apache-2.0"
] | null | null | null | src/calc_velocity.cpp | suwamaro/rpa | fc9d37f03705334ee17b77de6ad2b8feab3cc7b0 | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
*
* Functions for calculating the velocity
*
* Copyright (C) 2018 by Hidemaro Suwa
* e-mail:suwamaro@phys.s.u-tokyo.ac.jp
*
*****************************************************************************/
#include "calc_velocity.h"
#include "... | 26.706667 | 78 | 0.550175 | suwamaro |
ef44e262106df7fe3bb2e5198c595c83aeecdadb | 5,149 | cxx | C++ | applications/physbam/physbam-lib/External_Libraries/src/fltk/src/Fl_Dial.cxx | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | applications/physbam/physbam-lib/External_Libraries/src/fltk/src/Fl_Dial.cxx | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | applications/physbam/physbam-lib/External_Libraries/src/fltk/src/Fl_Dial.cxx | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | //
// "$Id: Fl_Dial.cxx,v 1.1 2011/12/10 04:53:51 rbsheth Exp $"
//
// Circular dial widget for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2010 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// Lice... | 30.832335 | 77 | 0.62886 | schinmayee |
ef49e2926d8e7509771a3f0d6d9edc03c7bb80f3 | 1,538 | cpp | C++ | DatastructAssignments/20181020/main.cpp | FredericDT/ExploratoryResearchOnC-Cpp | 47a28a41bac0de9a0557c5b7842611bd85c5f98a | [
"MIT"
] | 2 | 2018-10-18T05:34:05.000Z | 2019-10-08T02:15:22.000Z | DatastructAssignments/20181020/main.cpp | FredericDT/ExploratoryResearchOnC-Cpp | 47a28a41bac0de9a0557c5b7842611bd85c5f98a | [
"MIT"
] | null | null | null | DatastructAssignments/20181020/main.cpp | FredericDT/ExploratoryResearchOnC-Cpp | 47a28a41bac0de9a0557c5b7842611bd85c5f98a | [
"MIT"
] | 3 | 2018-04-11T07:42:26.000Z | 2019-10-15T15:58:12.000Z | #include <cstdio>
#include <iostream>
template<typename T>
struct node {
T value;
struct node *next;
};
template<typename T>
int remove(struct node<T> *n, int k1, int k2, void (*f)(T v)) {
if (k1 > k2) {
return 1;
}
if (k1 == k2) {
return 0;
}
int i = 1;
while (n->next ... | 18.53012 | 63 | 0.449935 | FredericDT |
ef4a1a3291c0ae6b2b9c88915e8663566e7e59d2 | 3,137 | cpp | C++ | common/display.cpp | CybJaz/Simulations | bcb99907afaccc06c7b1f294a77122da2819ee5a | [
"MIT"
] | null | null | null | common/display.cpp | CybJaz/Simulations | bcb99907afaccc06c7b1f294a77122da2819ee5a | [
"MIT"
] | 2 | 2018-04-02T14:47:24.000Z | 2018-04-02T14:55:42.000Z | common/display.cpp | CybJaz/Simulations | bcb99907afaccc06c7b1f294a77122da2819ee5a | [
"MIT"
] | null | null | null | #include "display.h"
#include <iostream>
#include <GL/glew.h>
Display::Display(unsigned int width, unsigned int height, const std::string& title)
: _title(title), _fullscreen(false), _width(width), _height(height)
{
SDL_Init(SDL_INIT_EVERYTHING);
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_... | 24.130769 | 93 | 0.756774 | CybJaz |
ef4cf4a05b06bc98102021a2459362b8b9798c89 | 9,781 | cpp | C++ | src/Lib/scheduling/ScreamScheduler.cpp | miseri/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 1 | 2021-07-14T08:15:05.000Z | 2021-07-14T08:15:05.000Z | src/Lib/scheduling/ScreamScheduler.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | null | null | null | src/Lib/scheduling/ScreamScheduler.cpp | 7956968/rtp_plus_plus | 244ddd86f40f15247dd39ae7f9283114c2ef03a2 | [
"BSD-3-Clause"
] | 2 | 2021-07-14T08:15:02.000Z | 2021-07-14T08:56:10.000Z | #include "CorePch.h"
#include <rtp++/scheduling/ScreamScheduler.h>
#include <scream/code/RtpQueue.h>
#include <scream/code/ScreamTx.h>
#include <rtp++/experimental/ExperimentalRtcp.h>
#include <rtp++/experimental/Scream.h>
#define ENABLE_SCREAM_LOG true
namespace rtp_plus_plus
{
#ifdef ENABLE_SCREAM
ScreamScheduler... | 36.909434 | 168 | 0.668541 | miseri |
ef4d636592f368cd1c7e37220031970fa1899ad0 | 3,628 | cpp | C++ | src/main.cpp | alex-spataru/RFID-Manager | 6d7ad667f520466b8a5d3553b6b5b3dc6d2be18f | [
"MIT"
] | 2 | 2020-05-15T09:44:10.000Z | 2022-01-11T11:19:36.000Z | src/main.cpp | alex-spataru/RFID-Manager | 6d7ad667f520466b8a5d3553b6b5b3dc6d2be18f | [
"MIT"
] | null | null | null | src/main.cpp | alex-spataru/RFID-Manager | 6d7ad667f520466b8a5d3553b6b5b3dc6d2be18f | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 Alex Spataru <https://github.com/alex-spataru>
*
* 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... | 42.682353 | 87 | 0.712514 | alex-spataru |
ef54b3dd95b4ca99180b18e52595461ec87ef8f8 | 1,212 | cpp | C++ | src/datatypes.cpp | arjun-menon/vcalc | 899c890b100ce33fb4bf2f94653c57d1a1997bc7 | [
"Apache-2.0"
] | 1 | 2019-07-16T08:25:52.000Z | 2019-07-16T08:25:52.000Z | src/datatypes.cpp | arjun-menon/vcalc | 899c890b100ce33fb4bf2f94653c57d1a1997bc7 | [
"Apache-2.0"
] | null | null | null | src/datatypes.cpp | arjun-menon/vcalc | 899c890b100ce33fb4bf2f94653c57d1a1997bc7 | [
"Apache-2.0"
] | null | null | null | #include "common.hpp"
map<string, weak_ptr<Symbol>> Symbol::existingSymbols;
shared_ptr<Symbol> Symbol::create(const string &name)
{
if(existingSymbols.find(name) != existingSymbols.end())
if(auto symbol = existingSymbols[name].lock())
return symbol;
auto symbol = shared_ptr<Symbol>(new S... | 22.867925 | 59 | 0.55033 | arjun-menon |
ef579fc6e9d9d286c63516118722d7cbf1173d66 | 12,765 | cpp | C++ | Registry/Registry/RegistryProcessor.cpp | AlexX333BY/osasp-windows-registry | 0d95b0fbafe058480db7366be7971521d94c414e | [
"MIT"
] | null | null | null | Registry/Registry/RegistryProcessor.cpp | AlexX333BY/osasp-windows-registry | 0d95b0fbafe058480db7366be7971521d94c414e | [
"MIT"
] | null | null | null | Registry/Registry/RegistryProcessor.cpp | AlexX333BY/osasp-windows-registry | 0d95b0fbafe058480db7366be7971521d94c414e | [
"MIT"
] | null | null | null | #include "RegistryProcessor.h"
#include <Shlwapi.h>
#include <stdio.h>
namespace Registry
{
typedef struct _SEARCHROUTINEDATA
{
HKEY hKey;
LPCSTR lpsSearchQuery;
LPCSTR lpsBasePath;
DWORD dwResultSize;
LPSTR *lpsResult;
} SEARCHROUTINEDATA;
typedef struct _THREADSEARCHDATAPAIR
{
HANDLE hThread;
SEA... | 27.044492 | 163 | 0.709362 | AlexX333BY |
ef57e19d35c66ec5bf8b193fd9e2be0d99dc4bbb | 5,165 | hxx | C++ | projects/Phantom/phantom/lang/MethodPointer.hxx | vlmillet/phantom | e5579ea52dafded64fd2fe88aabfdf8a73534918 | [
"MIT"
] | 12 | 2019-12-26T00:55:39.000Z | 2020-12-03T14:46:56.000Z | projects/Phantom/phantom/lang/MethodPointer.hxx | vlmillet/Phantom | e5579ea52dafded64fd2fe88aabfdf8a73534918 | [
"MIT"
] | null | null | null | projects/Phantom/phantom/lang/MethodPointer.hxx | vlmillet/Phantom | e5579ea52dafded64fd2fe88aabfdf8a73534918 | [
"MIT"
] | 1 | 2020-12-09T11:47:13.000Z | 2020-12-09T11:47:13.000Z | #pragma once
// haunt {
// clang-format off
#include "MethodPointer.h"
#if defined(_MSC_VER)
# pragma warning(push, 0)
#elif defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wall"
# pragma clang diagnostic ignored "-Wextra"
#endif
#include <phantom/namespace>
#include <... | 47.385321 | 178 | 0.654985 | vlmillet |
ef5827aab40050c59a3fa830f0a790c1ec13ebad | 2,133 | cpp | C++ | Plugins/ChromeDevTools/Source/ChromeDevToolsJSI.cpp | EricBeetsOfficial-Opuscope/BabylonNative | fc7b2add9da4ef8e79ad86e087457685bdb2417f | [
"MIT"
] | 474 | 2019-05-29T09:41:22.000Z | 2022-03-31T12:09:35.000Z | Plugins/ChromeDevTools/Source/ChromeDevToolsJSI.cpp | chrisfromwork/BabylonNative | 18455a1ac3363354040030adee39cd666c31df68 | [
"MIT"
] | 593 | 2019-05-31T23:56:36.000Z | 2022-03-31T19:25:09.000Z | Plugins/ChromeDevTools/Source/ChromeDevToolsJSI.cpp | chrisfromwork/BabylonNative | 18455a1ac3363354040030adee39cd666c31df68 | [
"MIT"
] | 114 | 2019-06-10T18:07:19.000Z | 2022-03-11T21:13:27.000Z | #include "ChromeDevTools.h"
#include <V8JsiRuntime.h>
#include <Babylon/JsRuntime.h>
namespace Babylon::Plugins
{
class ChromeDevTools::Impl final : public std::enable_shared_from_this<ChromeDevTools::Impl>
{
public:
explicit Impl(Napi::Env env)
: m_env(env)
{
... | 27.701299 | 151 | 0.551805 | EricBeetsOfficial-Opuscope |
ef5c32770fca1c73c3b38ce3f3cb201c30db47e8 | 4,403 | cpp | C++ | DearPyGui/src/ui/AppItems/colors/mvColorMapScale.cpp | SpikingNeurons/DearPyGui | 5d706edd524fa52140153bd8c9e5a43a6d0c7d87 | [
"MIT"
] | null | null | null | DearPyGui/src/ui/AppItems/colors/mvColorMapScale.cpp | SpikingNeurons/DearPyGui | 5d706edd524fa52140153bd8c9e5a43a6d0c7d87 | [
"MIT"
] | null | null | null | DearPyGui/src/ui/AppItems/colors/mvColorMapScale.cpp | SpikingNeurons/DearPyGui | 5d706edd524fa52140153bd8c9e5a43a6d0c7d87 | [
"MIT"
] | null | null | null | #include "mvColorMapScale.h"
#include <utility>
#include "mvContext.h"
#include "dearpygui.h"
#include <string>
#include "mvItemRegistry.h"
#include <implot.h>
#include "mvPythonExceptions.h"
#include "mvAppItemCommons.h"
#include "mvFontItems.h"
#include "AppItems/mvThemes.h"
#include "AppItems/containers/mvDragPayloa... | 29.353333 | 144 | 0.544629 | SpikingNeurons |
ef5f5cb056e96601973b80f8e642f8e1836a00d5 | 7,455 | cpp | C++ | TimothE/ResourceManager.cpp | Timothy-Needs-to-Die/TimothE | d4f458c166c15f8cb22095ade9c198bd30729f65 | [
"Apache-2.0"
] | null | null | null | TimothE/ResourceManager.cpp | Timothy-Needs-to-Die/TimothE | d4f458c166c15f8cb22095ade9c198bd30729f65 | [
"Apache-2.0"
] | 5 | 2022-01-17T13:05:42.000Z | 2022-01-28T12:40:00.000Z | TimothE/ResourceManager.cpp | Timothy-Needs-to-Die/TimothE | d4f458c166c15f8cb22095ade9c198bd30729f65 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "ResourceManager.h"
#include "Core/Graphics/OpenGLError.h"
#include "FarmScene.h"
#include "MainMenuScene.h"
#include "Dirent.h"
#include "misc/cpp/imgui_stdlib.h"
#include "FarmScene.h"
#include "TownScene.h"
std::map<std::string, Texture2D*> ResourceManager::_textures;
std::map<std::string... | 51.770833 | 158 | 0.779745 | Timothy-Needs-to-Die |