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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e5d7e0819ba54ac813ffee97c00328c93c74c35 | 3,953 | hpp | C++ | modules/gui/src/MetaObject/params/ui/Qt/Containers.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/gui/src/MetaObject/params/ui/Qt/Containers.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/gui/src/MetaObject/params/ui/Qt/Containers.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #pragma once
#include "IHandler.hpp"
#include "POD.hpp"
#include <MetaObject/thread/fiber_include.hpp>
namespace mo
{
namespace UI
{
namespace qt
{
struct UiUpdateListener;
template <class T, typename Enable>
class THandler;
// *******************... | 36.943925 | 118 | 0.362762 | dtmoodie |
1e5e5f604ac9cf7c701e5f595e85395deb0983bb | 1,044 | hpp | C++ | headers/Core/VertexBuffer.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | headers/Core/VertexBuffer.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | headers/Core/VertexBuffer.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | #ifndef VERTEXBUFFER_HPP
# define VERTEXBUFFER_HPP
# include "pch.hpp"
namespace NAMESPACE
{
class VertexBuffer
{
GLuint GL_ID;
public:
VertexBuffer();
/*
* Static version
* Cannot be modified
*/
VertexBuffer(const void *data, GLuint size);
/*
* Dynamic version
* Initial... | 19.698113 | 64 | 0.636015 | Gilqamesh |
1e604e910458d9be0caa061f2cb698ed395f3af4 | 1,198 | hpp | C++ | src/Utilities/TypeTraits/ArraySize.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/Utilities/TypeTraits/ArraySize.hpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/Utilities/TypeTraits/ArraySize.hpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <array>
#include <cstddef>
#include <type_traits>
namespace tt {
namespace TypeTraits_detail {
template <typename T, std::size_t N>
std::integral_constant<std::size_t, N> array_size_impl(
const std::array<T, N>& /*array*/... | 24.44898 | 80 | 0.676962 | nilsvu |
1e608cfaf014f68ea89b95293dc04a361045792e | 7,535 | cpp | C++ | mitsuba-af602c6fd98a/src/libbidir/mut_mchain.cpp | NTForked-ML/pbrs | 0b405d92c12d257e2581366542762c9f0c3facce | [
"MIT"
] | 139 | 2017-04-21T00:22:34.000Z | 2022-02-16T20:33:10.000Z | mitsuba-af602c6fd98a/src/libbidir/mut_mchain.cpp | NTForked-ML/pbrs | 0b405d92c12d257e2581366542762c9f0c3facce | [
"MIT"
] | 11 | 2017-08-15T18:22:59.000Z | 2019-07-01T05:44:41.000Z | mitsuba-af602c6fd98a/src/libbidir/mut_mchain.cpp | NTForked-ML/pbrs | 0b405d92c12d257e2581366542762c9f0c3facce | [
"MIT"
] | 30 | 2017-07-21T03:56:45.000Z | 2022-03-11T06:55:34.000Z | /*
This file is part of Mitsuba, a physically based rendering system.
Copyright (c) 2007-2014 by Wenzel Jakob and others.
Mitsuba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
... | 32.339056 | 96 | 0.700464 | NTForked-ML |
1e61d8c2c5e2e4fb2d876dc729f8371efa3e8b9c | 4,548 | hh | C++ | include/sdf/Mesh.hh | scpeters-test/sdformat | 4668d7857e1d18d8d9b68b40537f77d540353448 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/sdf/Mesh.hh | scpeters-test/sdformat | 4668d7857e1d18d8d9b68b40537f77d540353448 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-10-30T19:22:51.000Z | 2020-12-03T20:57:20.000Z | include/sdf/Mesh.hh | scpeters-test/sdformat | 4668d7857e1d18d8d9b68b40537f77d540353448 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 Open Source Robotics 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 applicab... | 35.255814 | 80 | 0.679639 | scpeters-test |
1e623ef13e1deeb8e6529b0e43f8400820d9ad21 | 218 | cpp | C++ | atcoder.jp/abc079/abc079_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc079/abc079_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc079/abc079_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int N;
long long L[87];
int main()
{
cin >> N;
L[0] = 2, L[1] = 1;
for (int i = 2; i <= N; i++)
L[i] = L[i - 2] + L[i - 1];
cout << L[N] << endl;
}
| 16.769231 | 35 | 0.431193 | shikij1 |
1e6242b4f49b61efab81244b75026d88cdee6135 | 14,107 | cpp | C++ | src/app/qranker-barista/SpecFeatures.cpp | johnhalloran321/crux-toolkit | 329390c63a4ec8ab4add22d847732dfa2e7f74ca | [
"Apache-2.0"
] | 8 | 2018-02-26T00:56:14.000Z | 2021-10-31T03:45:53.000Z | src/app/qranker-barista/SpecFeatures.cpp | johnhalloran321/crux-toolkit | 329390c63a4ec8ab4add22d847732dfa2e7f74ca | [
"Apache-2.0"
] | null | null | null | src/app/qranker-barista/SpecFeatures.cpp | johnhalloran321/crux-toolkit | 329390c63a4ec8ab4add22d847732dfa2e7f74ca | [
"Apache-2.0"
] | null | null | null | #include "SpecFeatures.h"
const double SpecFeaturesGenerator::mass_h2o_mono = 18.01056;
const double SpecFeaturesGenerator::mass_nh3_mono = 17.02655;
const double SpecFeaturesGenerator::mass_co_mono = 27.9949;
const double SpecFeaturesGenerator::proton_mass = 1.00727646688;
const double SpecFeaturesGenerator::bin_widt... | 28.214 | 164 | 0.623591 | johnhalloran321 |
1e6272cc6b091f11b2b8ec7df3139e3c63b3c2d6 | 3,234 | cpp | C++ | Code en C++ de Mage War Online/VikingHammer.cpp | Drakandes/Portfolio_NicolasPaulBonneau | c8115d5ecd6c284113766d64d0f907c074315cff | [
"MIT"
] | null | null | null | Code en C++ de Mage War Online/VikingHammer.cpp | Drakandes/Portfolio_NicolasPaulBonneau | c8115d5ecd6c284113766d64d0f907c074315cff | [
"MIT"
] | null | null | null | Code en C++ de Mage War Online/VikingHammer.cpp | Drakandes/Portfolio_NicolasPaulBonneau | c8115d5ecd6c284113766d64d0f907c074315cff | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "VikingHammer.h"
VikingHammer::VikingHammer()
{
texture_projectile.loadFromFile("VikingHammer.png");
shadow_texture.loadFromFile("VikingHammerShadow.png");
}
VikingHammer::~VikingHammer()
{
}
void VikingHammer::Init(sf::Vector2f &position_initial, float damage_received, fl... | 28.368421 | 193 | 0.730674 | Drakandes |
1e63de01753dfa49c82abb6098bd3c4d80ef9ec7 | 2,034 | hpp | C++ | Oem/dbxml/xqilla/include/xqilla/xerces/XercesConfiguration.hpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Oem/dbxml/xqilla/include/xqilla/xerces/XercesConfiguration.hpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Oem/dbxml/xqilla/include/xqilla/xerces/XercesConfiguration.hpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | /*
* Copyright (c) 2001-2008
* DecisionSoft Limited. All rights reserved.
* Copyright (c) 2004-2008
* Oracle. 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... | 33.344262 | 120 | 0.759095 | achilex |
1e663f6fc641ee122299408e6b4a32059a899e9c | 380 | hpp | C++ | BrainfuckCompiler/Assert.hpp | addrianyy/BrainfuckCompiler | 4e47cb9fc926aeae567556e5c75e095c304ae7f5 | [
"MIT"
] | 3 | 2020-05-28T21:05:44.000Z | 2020-06-23T10:03:19.000Z | BrainfuckCompiler/Assert.hpp | addrianyy/BrainfuckCompiler | 4e47cb9fc926aeae567556e5c75e095c304ae7f5 | [
"MIT"
] | null | null | null | BrainfuckCompiler/Assert.hpp | addrianyy/BrainfuckCompiler | 4e47cb9fc926aeae567556e5c75e095c304ae7f5 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
// Assert working on release builds.
void AssertInternal(bool condition,
const char* conditionText,
const char* filename,
uint32_t lineNumer);
#define MAKE_STRING(s) MAKE_STRING_1(s)
#define MAKE_STRING_1(s) #s
#define Asser... | 27.142857 | 73 | 0.652632 | addrianyy |
1e6aa11097025c50662746292dd67ea5d487998c | 2,419 | cpp | C++ | Engine/code/IA_Controller_Task.cpp | miguelangelgil/FirstEngine | 3177cffa3663c9f75bc37fe67ac52d6780acfeec | [
"MIT"
] | null | null | null | Engine/code/IA_Controller_Task.cpp | miguelangelgil/FirstEngine | 3177cffa3663c9f75bc37fe67ac52d6780acfeec | [
"MIT"
] | null | null | null | Engine/code/IA_Controller_Task.cpp | miguelangelgil/FirstEngine | 3177cffa3663c9f75bc37fe67ac52d6780acfeec | [
"MIT"
] | null | null | null | #include "headers\IA_Controller_Task.hpp"
#include <Scene.hpp>
#include <IA_Component.hpp>
#include <Transform_Component.hpp>
namespace engine
{
engine::IA_Controller_Task::IA_Controller_Task(Scene* scene, int priority) : Task(scene, priority)
{
}
bool engine::IA_Controller_Task::initialize()
{
... | 31.415584 | 125 | 0.567177 | miguelangelgil |
1e6efa3b812a95d652142334d9d0b69311c8034a | 861 | cpp | C++ | src/expression/operation/optime.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | src/expression/operation/optime.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | src/expression/operation/optime.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | #include "optime.h"
std::vector<std::vector<densematrix>> optime::interpolate(elementselector& elemselect, std::vector<double>& evaluationcoordinates, expression* meshdeform)
{
densematrix output(elemselect.countinselection(), evaluationcoordinates.size()/3, universe::currenttimestep);
// This can only b... | 28.7 | 159 | 0.704994 | ellery85 |
1e71268db677c5a6f060d7d1d76b3b61767d5886 | 1,049 | hpp | C++ | game/code/common/engine/gui/guiradiobutton.hpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | null | null | null | game/code/common/engine/gui/guiradiobutton.hpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | null | null | null | game/code/common/engine/gui/guiradiobutton.hpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | 2 | 2019-03-08T03:02:45.000Z | 2019-05-14T08:41:26.000Z | #ifndef GUI_RADIOBUTTON_HPP
#define GUI_RADIOBUTTON_HPP
//////////////////////////////////////////////////////
// INCLUDES
//////////////////////////////////////////////////////
#include "common/engine/gui/guicheckbox.hpp"
//////////////////////////////////////////////////////
// FORWARD DECLARATIONS
///////////////... | 20.568627 | 54 | 0.35081 | justinctlam |
1e723aadb187589d5b96e1fb6f6a9d4160106403 | 8,148 | hpp | C++ | src/main/cpp/Balau/Concurrent/Fork.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 6 | 2018-12-30T15:09:26.000Z | 2020-04-20T09:27:59.000Z | src/main/cpp/Balau/Concurrent/Fork.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/Balau/Concurrent/Fork.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 2 | 2019-11-12T08:07:16.000Z | 2019-11-29T11:19:47.000Z | // @formatter:off
//
// Balau core C++ library
//
// Copyright (C) 2008 Bora Software (contact@borasoftware.com)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apach... | 26.627451 | 117 | 0.681885 | borasoftware |
1e7d954c72bdb3633c53792b451915d4115927b6 | 1,073 | cpp | C++ | src/Passes/Decomposition/bridge_decomp.cpp | paniash/tweedledum | fe997bea3413a02033d76b20034e3a24b840bffb | [
"MIT"
] | 76 | 2018-07-21T08:12:17.000Z | 2022-01-25T06:22:25.000Z | src/Passes/Decomposition/bridge_decomp.cpp | paniash/tweedledum | fe997bea3413a02033d76b20034e3a24b840bffb | [
"MIT"
] | 44 | 2018-10-26T10:44:39.000Z | 2022-02-07T01:07:38.000Z | src/Passes/Decomposition/bridge_decomp.cpp | paniash/tweedledum | fe997bea3413a02033d76b20034e3a24b840bffb | [
"MIT"
] | 23 | 2018-09-27T15:28:48.000Z | 2022-03-07T12:21:37.000Z | /*------------------------------------------------------------------------------
| Part of Tweedledum Project. This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*-----------------------------------------------------------------------------*/
#include "tweedledum/Passes/Decom... | 35.766667 | 80 | 0.621622 | paniash |
1e829c69509ef5b207e2b075eb86f152db5795eb | 692 | cpp | C++ | HSAHRBNUOJ/P32xx/P3244.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | HSAHRBNUOJ/P32xx/P3244.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | HSAHRBNUOJ/P32xx/P3244.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <cmath>
#include <cstdio>
using namespace std;
const double PI = acos(-1.0);
const double eps = 1e-20;
double l, c, n, nl;
double newl;
double left, right, middle;
int main()
{
while (~scanf("%lf %lf %lf", &l, &c, &n))
{
if (l == -1 && c == -1 && n == -1) break;
newl = (1.0 + n * c) * l;
right = PI ... | 18.702703 | 57 | 0.507225 | HeRaNO |
1e8466e16680d09d1ce501eb40fa074d6f1217cf | 28,888 | cpp | C++ | test/json/json_test.cpp | sekiguchi-nagisa/ydsh | 19b94962e076d4dffacb6b0236147d84dbe0fd53 | [
"Apache-2.0"
] | 16 | 2017-04-30T18:12:59.000Z | 2022-01-10T10:04:02.000Z | test/json/json_test.cpp | sekiguchi-nagisa/ydsh | 19b94962e076d4dffacb6b0236147d84dbe0fd53 | [
"Apache-2.0"
] | 564 | 2015-01-30T19:14:26.000Z | 2022-03-31T15:16:36.000Z | test/json/json_test.cpp | sekiguchi-nagisa/ydsh | 19b94962e076d4dffacb6b0236147d84dbe0fd53 | [
"Apache-2.0"
] | 2 | 2020-05-12T11:04:20.000Z | 2021-04-05T19:20:25.000Z | #include "gtest/gtest.h"
#include "jsonrpc.h"
using namespace ydsh;
using namespace json;
TEST(JSON, type) {
JSON json;
ASSERT_TRUE(json.isInvalid());
json = nullptr;
ASSERT_TRUE(json.isNull());
ASSERT_TRUE(ydsh::get<std::nullptr_t>(json) == nullptr);
json = true;
ASSERT_TRUE(json.isBool());
ASSERT... | 27.356061 | 99 | 0.629119 | sekiguchi-nagisa |
1e84a9fb8a076b8210e8cb9a5712d21d6f77b173 | 1,198 | cpp | C++ | example/concepts.cpp | boost-ext/te | f18e0a3462575b5159c43d5a54023ea72461f4bc | [
"BSL-1.0"
] | 72 | 2020-07-01T17:01:35.000Z | 2022-03-22T10:37:18.000Z | example/concepts.cpp | boost-ext/te | f18e0a3462575b5159c43d5a54023ea72461f4bc | [
"BSL-1.0"
] | 4 | 2021-05-08T13:36:27.000Z | 2022-02-07T18:46:57.000Z | example/concepts.cpp | boost-ext/te | f18e0a3462575b5159c43d5a54023ea72461f4bc | [
"BSL-1.0"
] | 8 | 2020-07-10T08:04:38.000Z | 2022-03-22T11:40:01.000Z | //
// Copyright (c) 2018-2019 Kris Jusiak (kris at jusiak dot net)
//
// 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)
//
#if defined(__cpp_concepts)
#include <iostream>
#include "boost/te.hpp"
namespace te = bo... | 19.966667 | 75 | 0.6202 | boost-ext |
1e8537ac60c9fa2ce327a86213842d3101e3c95c | 8,241 | cpp | C++ | Ray.cpp | selinnilesy/Ray-Tracing | 4b1ac770902ed35560f0bc774ac42cb118f3789a | [
"MIT"
] | null | null | null | Ray.cpp | selinnilesy/Ray-Tracing | 4b1ac770902ed35560f0bc774ac42cb118f3789a | [
"MIT"
] | null | null | null | Ray.cpp | selinnilesy/Ray-Tracing | 4b1ac770902ed35560f0bc774ac42cb118f3789a | [
"MIT"
] | null | null | null | #include "Ray.h"
#include "Algebra.h"
#include "math.h"
#include <limits>
using namespace std;
using namespace parser;
Ray::Ray()
{
}
Ray::Ray(const Vec3f& e_, const Vec3f& d_):e(e_),d(d_),recursion(parser::scene.max_recursion_depth)
{
//selincikkk:D
normalize(d);
}
inline Vec3f Ray::positionT(float t)
{
return... | 28.915789 | 103 | 0.649193 | selinnilesy |
1e86c52f38707156cbb2a7ed3a8cb9a5aeafac0b | 2,892 | cpp | C++ | McQuickBoot/src/Controller/McResult.cpp | mrcao20/McQuickBoot | 187a16ea9459fa5e2b3477b5280302a9090e8ccf | [
"MIT"
] | 3 | 2020-03-29T18:41:42.000Z | 2020-09-23T01:46:25.000Z | McQuickBoot/src/Controller/McResult.cpp | mrcao20/McQuickBoot | 187a16ea9459fa5e2b3477b5280302a9090e8ccf | [
"MIT"
] | 3 | 2020-11-26T03:37:31.000Z | 2020-12-21T02:17:17.000Z | McQuickBoot/src/Controller/McResult.cpp | mrcao20/McQuickBoot | 187a16ea9459fa5e2b3477b5280302a9090e8ccf | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2021 mrcao20
*
* 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, ... | 25.821429 | 81 | 0.727178 | mrcao20 |
1e8accbfe398a414ec0bfc3ac465c9e775172b70 | 1,144 | cpp | C++ | src/core/dfs_memory.cpp | gogobody/ngx_epoll_sample | d44c195f608da52aacf6e140690afe82f4afb6ac | [
"MIT"
] | null | null | null | src/core/dfs_memory.cpp | gogobody/ngx_epoll_sample | d44c195f608da52aacf6e140690afe82f4afb6ac | [
"MIT"
] | null | null | null | src/core/dfs_memory.cpp | gogobody/ngx_epoll_sample | d44c195f608da52aacf6e140690afe82f4afb6ac | [
"MIT"
] | null | null | null | #include "dfs_memory.h"
/*
*
<1>alloca是向栈申请内存,因此无需释放.
<2>malloc分配的内存是位于堆中的,并且没有初始化内存的内容,因此基本上malloc之后,调用函数memset来初始化这部分的内存空间.
<3>calloc则将初始化这部分的内存,设置为0.
* */
void * memory_alloc(size_t size)
{
void *p = nullptr;
if (size == 0)
{
return nullptr;
}
p = malloc(size);
return p... | 13.783133 | 72 | 0.530594 | gogobody |
1e948963b99808defb6948eed9bbe07f81adf80b | 9,171 | cpp | C++ | core/Instances.cpp | sudarsun/c48 | 4ffd0825380eacd0b120b42cfd0b24182bf9fb8e | [
"Unlicense"
] | null | null | null | core/Instances.cpp | sudarsun/c48 | 4ffd0825380eacd0b120b42cfd0b24182bf9fb8e | [
"Unlicense"
] | null | null | null | core/Instances.cpp | sudarsun/c48 | 4ffd0825380eacd0b120b42cfd0b24182bf9fb8e | [
"Unlicense"
] | null | null | null | #include "Instances.h"
#include "Instance.h"
#include "Consts.h"
#include "Utils.h"
#include <iostream>
#include <unordered_set>
#include <exception>
#include <stdexcept>
Instances::Instances(const string &name, std::vector<Attribute*> &attInfo, const int capacity)
{
// check whether the attribute nam... | 25.264463 | 119 | 0.591975 | sudarsun |
1e96c8415812536d618641cf19b018660ba0b7a6 | 2,494 | cpp | C++ | atcoder/arc011/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | atcoder/arc011/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | atcoder/arc011/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | // atcoder/arc011/B/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << ... | 34.164384 | 150 | 0.480754 | Johniel |
1e9904710a041b6f25f4adc797faec875a3e87ad | 14,976 | cpp | C++ | reconstruction/gadgetron/CS_LAB_Gadget/src/ELASTIX_GADGET/ElastixRegistrationGadget.cpp | alwaysbefun123/CS_MoCo_LAB | a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b | [
"BSD-2-Clause"
] | 83 | 2017-08-11T09:18:17.000Z | 2022-01-23T03:08:00.000Z | reconstruction/gadgetron/CS_LAB_Gadget/src/ELASTIX_GADGET/ElastixRegistrationGadget.cpp | MrYuwan/CS_MoCo_LAB | a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b | [
"BSD-2-Clause"
] | 4 | 2017-09-19T23:02:12.000Z | 2020-11-23T11:25:18.000Z | reconstruction/gadgetron/CS_LAB_Gadget/src/ELASTIX_GADGET/ElastixRegistrationGadget.cpp | MrYuwan/CS_MoCo_LAB | a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b | [
"BSD-2-Clause"
] | 49 | 2017-03-19T18:41:55.000Z | 2021-11-25T08:25:44.000Z | /*
file name : ElastixRegistrationGadget.cpp
author : Martin Schwartz (martin.schwartz@med.uni-tuebingen.de)
Thomas Kuestner (thomas.kuestner@med.uni-tuebingen.de)
version : 1.2
date : 13.10.2015
23.03.2017 - update for Gadgetron v3.8
23.01.2018 - renaming
description : implementation of the cl... | 36.705882 | 235 | 0.71047 | alwaysbefun123 |
1e9d1a5e295b188d51bacd4402496b77901359f7 | 13,508 | cpp | C++ | Source/modules/serviceworkers/Request.cpp | Fusion-Rom/android_external_chromium_org_third_party_WebKit | 8865f83aaf400ef5f7c234a70da404d3fc5e1272 | [
"BSD-3-Clause"
] | 2 | 2016-05-19T10:37:25.000Z | 2019-09-18T04:37:14.000Z | Source/modules/serviceworkers/Request.cpp | Fusion-Rom/android_external_chromium_org_third_party_WebKit | 8865f83aaf400ef5f7c234a70da404d3fc5e1272 | [
"BSD-3-Clause"
] | null | null | null | Source/modules/serviceworkers/Request.cpp | Fusion-Rom/android_external_chromium_org_third_party_WebKit | 8865f83aaf400ef5f7c234a70da404d3fc5e1272 | [
"BSD-3-Clause"
] | 7 | 2015-09-23T09:56:29.000Z | 2022-01-20T10:36:06.000Z | // Copyright 2014 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 "config.h"
#include "Request.h"
#include "bindings/core/v8/Dictionary.h"
#include "core/dom/ExecutionContext.h"
#include "core/fetch/FetchUtils.... | 37.522222 | 229 | 0.679301 | Fusion-Rom |
1e9e457e811076929716813d2d8c2004010b2fe0 | 7,081 | cxx | C++ | test/rtkadjointoperatorstest.cxx | cyrilmory/CyrilsRTK | bb829a9d6aff45181d1642b4b050dde999169ff8 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | test/rtkadjointoperatorstest.cxx | cyrilmory/CyrilsRTK | bb829a9d6aff45181d1642b4b050dde999169ff8 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | test/rtkadjointoperatorstest.cxx | cyrilmory/CyrilsRTK | bb829a9d6aff45181d1642b4b050dde999169ff8 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | #include "rtkMacro.h"
#include "rtkTest.h"
#include "itkRandomImageSource.h"
#include "rtkConstantImageSource.h"
#include "rtkJosephBackProjectionImageFilter.h"
#include "rtkJosephForwardProjectionImageFilter.h"
#ifdef RTK_USE_CUDA
#include "rtkCudaForwardProjectionImageFilter.h"
#include "rtkCudaRayCastBackProject... | 36.880208 | 167 | 0.71473 | cyrilmory |
1ea6dfec202cda0320e555a1851f1e84df6b819f | 1,041 | cpp | C++ | userland/libraries/libc/stdio/sprintf.cpp | pro-hacker64/pranaOS | 01e5f0ba7fc7b561a08ba60ea6b3890202ac97c7 | [
"BSD-2-Clause"
] | null | null | null | userland/libraries/libc/stdio/sprintf.cpp | pro-hacker64/pranaOS | 01e5f0ba7fc7b561a08ba60ea6b3890202ac97c7 | [
"BSD-2-Clause"
] | null | null | null | userland/libraries/libc/stdio/sprintf.cpp | pro-hacker64/pranaOS | 01e5f0ba7fc7b561a08ba60ea6b3890202ac97c7 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, krishpranav
*
* SPDX-License-Identifier: BSD-2-Clause
*/
// includes
#include <pranaos/Printf.h>
#include <stdio.h>
#include <string.h>
void string_printf_append(printf_info_t *info, char c)
{
if (info->allocated == -1)
{
strapd((char *)info->output, c);
}
else
... | 16.265625 | 61 | 0.574448 | pro-hacker64 |
1ea8c1d5a25a411dbb41f9daa147ff59cefd8613 | 39,480 | cpp | C++ | SOLVER/src/preloop/physics/material/Material.cpp | kuangdai/AxiSEM3D | fd9da14e9107783e3b07b936c67af2412146e099 | [
"MIT"
] | 17 | 2016-12-16T03:13:57.000Z | 2021-12-15T01:56:45.000Z | SOLVER/src/preloop/physics/material/Material.cpp | syzeng-duduxi/AxiSEM3D | fd9da14e9107783e3b07b936c67af2412146e099 | [
"MIT"
] | 6 | 2018-01-15T17:17:20.000Z | 2020-03-18T09:53:58.000Z | SOLVER/src/preloop/physics/material/Material.cpp | syzeng-duduxi/AxiSEM3D | fd9da14e9107783e3b07b936c67af2412146e099 | [
"MIT"
] | 19 | 2016-12-28T16:55:00.000Z | 2021-06-23T01:02:16.000Z | // Material.cpp
// created by Kuangdai on 17-May-2016
// 3D seismic material properties
#include "Material.h"
#include "Quad.h"
#include "ExodusModel.h"
#include "SpectralConstants.h"
#include "Volumetric3D.h"
#include "XMath.h"
#include "Relabelling.h"
#include "Acoustic1D.h"
#include "Acoustic3D.h"
#include "Att... | 42.044728 | 226 | 0.521733 | kuangdai |
1eabf91a314f9702cb7772c950fd43ef7adf4377 | 796 | cc | C++ | content/browser/renderer_host/input/web_input_event_util_posix.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/renderer_host/input/web_input_event_util_posix.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/renderer_host/input/web_input_event_util_posix.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-04-04T13:34:56.000Z | 2020-11-04T07:17:52.000Z | // Copyright 2013 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 "content/browser/renderer_host/input/web_input_event_util_posix.h"
namespace content {
blink::WebInputEvent::Modifiers GetLocationModifiersFrom... | 28.428571 | 75 | 0.724874 | hefen1 |
1eb00784a5ef046d2a1e0be6f40b651ff008ce48 | 2,348 | cc | C++ | mindspore/lite/src/ops/populate/v0/full_connection_populate_v0.cc | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | 3,200 | 2020-02-17T12:45:41.000Z | 2022-03-31T20:21:16.000Z | mindspore/lite/src/ops/populate/v0/full_connection_populate_v0.cc | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 176 | 2020-02-12T02:52:11.000Z | 2022-03-28T22:15:55.000Z | mindspore/lite/src/ops/populate/v0/full_connection_populate_v0.cc | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 621 | 2020-03-09T01:31:41.000Z | 2022-03-30T03:43:19.000Z | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 39.133333 | 119 | 0.741482 | PowerOlive |
1eb07fafc0052579ec61cad976befdf1579188f3 | 7,406 | cpp | C++ | samples/suzanne.cpp | N500/filament | 3073b03d56e43643a04956780359f651a85f618b | [
"Apache-2.0"
] | 13,885 | 2018-08-03T17:46:24.000Z | 2022-03-31T14:26:19.000Z | samples/suzanne.cpp | N500/filament | 3073b03d56e43643a04956780359f651a85f618b | [
"Apache-2.0"
] | 2,298 | 2018-08-04T04:12:01.000Z | 2022-03-31T20:06:25.000Z | samples/suzanne.cpp | N500/filament | 3073b03d56e43643a04956780359f651a85f618b | [
"Apache-2.0"
] | 1,500 | 2018-08-03T23:34:27.000Z | 2022-03-30T13:43:10.000Z | /*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... | 37.03 | 97 | 0.635431 | N500 |
1eb33682f3eb3cfd3ff55740a2c528520dbc0b1f | 331 | cpp | C++ | C语言程序设计基础/meiju.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 63 | 2021-01-10T02:32:17.000Z | 2022-03-30T04:08:38.000Z | C语言程序设计基础/meiju.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 2 | 2021-06-09T05:38:58.000Z | 2021-12-14T13:53:54.000Z | C语言程序设计基础/meiju.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 20 | 2021-01-12T11:49:36.000Z | 2022-03-26T11:04:58.000Z | #include<stdio.h>
#include<math.h>
double a,b,c,d;
double f(double x)
{
return a*sin(x)*sin(x) + b*cos(x)*cos(x) +
c*sin(x) + d*cos(x);
}
int main()
{
double L,R,i;
scanf("%d%d%d%d%lf%lf",&a,&b,&c,&d,&L,&R);
double ans=f(1);
for(i=L; i<=R; i+=0.1)
ans= f(i)>ans ? f(i) : ans;
printf("%.1lf\n",ans);
ret... | 15.761905 | 44 | 0.519637 | xiabee |
1eb52945757c16dcf9574a6a9ddc466f0a3c729b | 4,135 | cpp | C++ | opencl/test/unit_test/aub_tests/command_stream/copy_engine_aub_tests_xehp_and_later.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/aub_tests/command_stream/copy_engine_aub_tests_xehp_and_later.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/aub_tests/command_stream/copy_engine_aub_tests_xehp_and_later.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/test/unit_test/aub_tests/command_stream/copy_engine_aub_tests_xehp_and_later.h"
#include "shared/test/common/test_macros/test.h"
using namespace NEO;
using SingleTileCopyEngineTests = CopyEngineXeHPAndLater<1>;
HW... | 53.701299 | 158 | 0.903507 | mattcarter2017 |
1eb55fa4ae0191760f4615afb116c1efd0d25563 | 670 | cpp | C++ | snippets/stl-6.cpp | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 7 | 2018-08-04T09:28:19.000Z | 2020-10-19T17:46:34.000Z | snippets/stl-6.cpp | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | null | null | null | snippets/stl-6.cpp | district10/snippet-manager | bebe45a601368947168e3ee6e6ab8c1fc2ee2055 | [
"MIT"
] | 2 | 2018-07-31T04:14:55.000Z | 2020-04-02T01:22:39.000Z | /// ptc ,partition_copy
std::partition_copy(std::begin(%\m C%), std::end(%\m C%), std::begin(%\c), std::end(%\c));
/// pst ,partial_sort
std::partial_sort(std::begin(%\m C%), std::end(%\m C%), std::end(%\m C%));
/// fnd ,find
auto pos = std::find(std::begin(%\m C%), std::end(%\m C%), %\c);
if (pos != std::end(%\m C%)) ... | 31.904762 | 100 | 0.526866 | district10 |
1eb76061f8a582692e239a691630e62fec3b3923 | 2,433 | hxx | C++ | opencascade/BRepBuilderAPI_VertexInspector.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/BRepBuilderAPI_VertexInspector.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/BRepBuilderAPI_VertexInspector.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 2011-11-24
// Created by: ANNA MASALSKAYA
// Copyright (c) 2011-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 ... | 31.192308 | 92 | 0.722154 | mgreminger |
1eb7985d0bcc137b07de3907f540ee9b9bf8fba6 | 2,635 | cpp | C++ | src/libraries/edgeMesh/edgeFormats/vtk/VTKedgeFormat.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/edgeMesh/edgeFormats/vtk/VTKedgeFormat.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/edgeMesh/edgeFormats/vtk/VTKedgeFormat.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under... | 27.164948 | 79 | 0.499431 | MrAwesomeRocks |
1eb8edac94392d03ea02d20df8a1f446909bb3ed | 8,297 | cpp | C++ | src/uniform_spacetime_be_identity.cpp | zap150/besthea | b7a9bb80a936f380af2d2c2e7ee3cc713d3792ca | [
"BSD-3-Clause"
] | null | null | null | src/uniform_spacetime_be_identity.cpp | zap150/besthea | b7a9bb80a936f380af2d2c2e7ee3cc713d3792ca | [
"BSD-3-Clause"
] | null | null | null | src/uniform_spacetime_be_identity.cpp | zap150/besthea | b7a9bb80a936f380af2d2c2e7ee3cc713d3792ca | [
"BSD-3-Clause"
] | 1 | 2021-09-15T01:59:34.000Z | 2021-09-15T01:59:34.000Z | /*
Copyright (c) 2020, VSB - Technical University of Ostrava and Graz University of
Technology
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 copyr... | 44.368984 | 80 | 0.731951 | zap150 |
1eb9d76983e39fb2b97243f0bf26b4d703fe6360 | 1,689 | cpp | C++ | src/RNG.cpp | komatura/Voltage-noise-generator | 31332f9ae4a0ce5a2a259ad136b75d67831da637 | [
"MIT"
] | null | null | null | src/RNG.cpp | komatura/Voltage-noise-generator | 31332f9ae4a0ce5a2a259ad136b75d67831da637 | [
"MIT"
] | null | null | null | src/RNG.cpp | komatura/Voltage-noise-generator | 31332f9ae4a0ce5a2a259ad136b75d67831da637 | [
"MIT"
] | 1 | 2018-07-27T22:38:43.000Z | 2018-07-27T22:38:43.000Z | #include "RNG.h"
#include <chrono>
unsigned int RNG::_seed = chrono::system_clock::now().time_since_epoch().count();
mt19937 RNG::_RNGBase;
Real_RNG RNG::_floatGen = nullptr;
Int_RNG RNG::_intGen = nullptr;
Real_Normal_RNG RNG::_normalFloatGen = nullptr;
void RNG::Initialize() {
_RNGBase.seed(_seed);
_floatGen.... | 20.349398 | 81 | 0.703375 | komatura |
1ebd5ccb4500d7b1441fc1c721a0782502940cfe | 876 | cpp | C++ | plugins/qnx/_hook_ui_color.cpp | mmuman/skinobe | c3aa05a650161d59749f9e468a5ee895fd8d6498 | [
"MIT"
] | 1 | 2019-03-01T05:32:17.000Z | 2019-03-01T05:32:17.000Z | plugins/sequel/_hook_ui_color.cpp | mmuman/skinobe | c3aa05a650161d59749f9e468a5ee895fd8d6498 | [
"MIT"
] | null | null | null | plugins/sequel/_hook_ui_color.cpp | mmuman/skinobe | c3aa05a650161d59749f9e468a5ee895fd8d6498 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <OS.h>
#include <InterfaceDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
static const rgb_color gonxColors[10] =
{
{0, 0, 0, 255}, // null color
{239, 235, 231, 255}, // B_PANEL_BACKGROUND_COLOR
{239, 235, 231, 255}, // B_MENU_BACKGROUND_COLOR
{255, 203, 0, 255}, // B_WINDOW_TAB_COLOR
//{... | 23.675676 | 60 | 0.689498 | mmuman |
3630afa4a87715974b8ec5b25ca81e148e323c96 | 994 | cpp | C++ | gym/102784/F.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | 1 | 2021-07-16T19:59:39.000Z | 2021-07-16T19:59:39.000Z | gym/102784/F.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | gym/102784/F.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <random>
#include <chrono>
using namespace std;
using namespace __gnu_pbds;
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
// typedef tree<int, null_type,less<int>, rb_tree_tag, tre... | 19.490196 | 102 | 0.603622 | albexl |
363177a43a385f5312278583ef45f023df1bc59c | 22,100 | cpp | C++ | imdexp/src/ImdExp.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | 2 | 2022-01-02T08:12:29.000Z | 2022-02-12T22:15:11.000Z | imdexp/src/ImdExp.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | null | null | null | imdexp/src/ImdExp.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | 1 | 2022-01-02T08:09:51.000Z | 2022-01-02T08:09:51.000Z |
/********************************************************************
created: 2003/02/03
created: 4:2:2003 20:17
filename: e:\_dev\tmp\imdexp\src\imdexp.cpp
file path: e:\_dev\tmp\imdexp\src
file base: imdexp
file ext: cpp
author: Chatry Olivier alias gruiiik
purpose: Main exporter function.
********************... | 33.283133 | 132 | 0.643891 | olivierchatry |
363321ef4049d2b92a142206c5fb7b5af503c479 | 3,571 | hpp | C++ | src/proteus/observation/tracing.hpp | Xilinx/inference-server | 7477b7dc420ce4cd0d7e1d9914b71898e97d6814 | [
"Apache-2.0"
] | 4 | 2021-11-03T21:32:55.000Z | 2022-02-17T17:13:16.000Z | src/proteus/observation/tracing.hpp | Xilinx/inference-server | 7477b7dc420ce4cd0d7e1d9914b71898e97d6814 | [
"Apache-2.0"
] | null | null | null | src/proteus/observation/tracing.hpp | Xilinx/inference-server | 7477b7dc420ce4cd0d7e1d9914b71898e97d6814 | [
"Apache-2.0"
] | 2 | 2022-03-05T20:01:33.000Z | 2022-03-25T06:00:35.000Z | // Copyright 2021 Xilinx 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 in... | 32.171171 | 80 | 0.724447 | Xilinx |
3635153692425bbee319815b8082362e37273878 | 380 | cpp | C++ | docs/mfc/codesnippet/CPP/cobarray-class_12.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/codesnippet/CPP/cobarray-class_12.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/codesnippet/CPP/cobarray-class_12.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | CObArray arr;
CAge* pa1;
CAge* pa2;
arr.Add(pa1 = new CAge(21)); // Element 0
arr.Add(pa2 = new CAge(40)); // Element 1
ASSERT(arr.GetSize() == 2);
arr.RemoveAll(); // Pointers removed but objects not deleted.
ASSERT(arr.GetSize() == 0);
... | 34.545455 | 70 | 0.5 | jmittert |
3639fe15dc674230ac5cc6730cbb3b449380b4ff | 20,853 | cpp | C++ | DK/DKFoundation/DKStringW.cpp | Hongtae/DKGL | 0dee0f0e211ad151db3943792ea29979cc8420f6 | [
"BSD-3-Clause"
] | 14 | 2015-09-12T01:32:05.000Z | 2021-10-13T02:52:53.000Z | DK/DKFoundation/DKStringW.cpp | Hongtae/DKGL | 0dee0f0e211ad151db3943792ea29979cc8420f6 | [
"BSD-3-Clause"
] | null | null | null | DK/DKFoundation/DKStringW.cpp | Hongtae/DKGL | 0dee0f0e211ad151db3943792ea29979cc8420f6 | [
"BSD-3-Clause"
] | 3 | 2015-11-10T03:12:49.000Z | 2018-10-15T15:38:31.000Z | //
// File: DKStringW.cpp
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2004-2014 Hongtae Kim. All rights reserved.
//
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <wctype.h>
#include <wchar.h>
#include "DKArray.h"
#include "DKSet.h"
#include "DKStringW.h"
#include "DKStrin... | 19.525281 | 123 | 0.659617 | Hongtae |
363a201147aa5ae98710b3a407578705b3b99b50 | 1,709 | cpp | C++ | src/Background.cpp | valvy/BlockSnake | c4f0f99617d4976a37ca4e93cefe7ccdbca05a1c | [
"BSD-2-Clause"
] | 2 | 2021-06-28T12:00:57.000Z | 2021-06-28T23:46:31.000Z | src/Background.cpp | valvy/BlockSnake | c4f0f99617d4976a37ca4e93cefe7ccdbca05a1c | [
"BSD-2-Clause"
] | null | null | null | src/Background.cpp | valvy/BlockSnake | c4f0f99617d4976a37ca4e93cefe7ccdbca05a1c | [
"BSD-2-Clause"
] | null | null | null | #include "Background.hpp"
#include "Math/Matrix4x4.hpp"
#include "Math/Utilities.hpp"
Background::Background(AssetManager* assetManager,std::string texture){
this->assetManager = assetManager;
this->texture = assetManager->loadTexture("./Assets/Textures/" + texture);
this->doesCollide = false;
this->pr... | 30.517857 | 136 | 0.693973 | valvy |
363b6761c2d571e3c8242874aae14ffecb346baa | 6,677 | cpp | C++ | Lambgine/lua/LambLua.cpp | lambage/Lambgine | e59836015469db797ef4706e42f65bebecfd86df | [
"MIT"
] | null | null | null | Lambgine/lua/LambLua.cpp | lambage/Lambgine | e59836015469db797ef4706e42f65bebecfd86df | [
"MIT"
] | null | null | null | Lambgine/lua/LambLua.cpp | lambage/Lambgine | e59836015469db797ef4706e42f65bebecfd86df | [
"MIT"
] | null | null | null | #include <stdafx.h>
#include "LambLua.h"
#include <Lambgine.h>
extern "C" {
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "LuaTest.h"
#include <luacppinterface.h>
#define EXIT_CONDITION -2
#if !defined(LUA_PROMPT... | 25.779923 | 116 | 0.62603 | lambage |
364297fd6ce094d48185ede26f277e964433fe8c | 163 | hpp | C++ | src/components/tower_preview.hpp | Green-Sky/miniTD | b710c0e312dcd44ed3ac797c9b7931ab54972c3a | [
"MIT"
] | 7 | 2022-01-27T17:11:23.000Z | 2022-03-29T12:09:26.000Z | src/components/tower_preview.hpp | Green-Sky/miniTD | b710c0e312dcd44ed3ac797c9b7931ab54972c3a | [
"MIT"
] | null | null | null | src/components/tower_preview.hpp | Green-Sky/miniTD | b710c0e312dcd44ed3ac797c9b7931ab54972c3a | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
namespace mini_td::Components {
struct TowerPreview {
float time_accu {0.f};
uint16_t art {0};
};
} // mini_td::Components
| 10.866667 | 31 | 0.693252 | Green-Sky |
364335c36bf3950bbae30ecb3de2a02fc08fe70b | 14,954 | cpp | C++ | cpp_project/problem-set/TradeMachingGithub.cpp | sinomiko/project | 00fadb0033645f103692f5b06c861939a9d4aa0e | [
"BSD-3-Clause"
] | 1 | 2018-12-30T14:07:42.000Z | 2018-12-30T14:07:42.000Z | cpp_project/problem-set/TradeMachingGithub.cpp | sinomiko/project | 00fadb0033645f103692f5b06c861939a9d4aa0e | [
"BSD-3-Clause"
] | null | null | null | cpp_project/problem-set/TradeMachingGithub.cpp | sinomiko/project | 00fadb0033645f103692f5b06c861939a9d4aa0e | [
"BSD-3-Clause"
] | null | null | null | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#inc... | 29.848303 | 166 | 0.635415 | sinomiko |
364a380c82e0b3bcd721ef5f9dbe562cc00723b6 | 2,761 | hpp | C++ | include/eve/function/fdim.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | include/eve/function/fdim.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | include/eve/function/fdim.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 32.869048 | 116 | 0.410721 | leha-bot |
36506db240e2bb5b7778bf27e3b97cb1da5ac004 | 1,632 | cpp | C++ | cf/contest/1504/e/e.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | cf/contest/1504/e/e.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | cf/contest/1504/e/e.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | // Woshiluo<woshiluo@woshiluo.site>
// 2021/04/03 22:59:31
// Blog: https://blog.woshiluo.com
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <queue>
#include <iostream>
#include <algorithm>
typedef long long ll;
typedef unsigned long long ull;
template <class T>
T Max( T a, T b ) { return a > b?... | 19.2 | 63 | 0.554534 | woshiluo |
3650c0c2a411ab3b0d42845129a929bbbb19f189 | 2,752 | cpp | C++ | oneflow/api/python/functional/common.cpp | MaoXianXin/oneflow | 6caa52f3c5ba11a1d67f183bac4c1559b2a58ef5 | [
"Apache-2.0"
] | null | null | null | oneflow/api/python/functional/common.cpp | MaoXianXin/oneflow | 6caa52f3c5ba11a1d67f183bac4c1559b2a58ef5 | [
"Apache-2.0"
] | null | null | null | oneflow/api/python/functional/common.cpp | MaoXianXin/oneflow | 6caa52f3c5ba11a1d67f183bac4c1559b2a58ef5 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 35.282051 | 100 | 0.704942 | MaoXianXin |
365131668b894866ab5264ef428ecff74a49cf92 | 2,260 | cpp | C++ | Polynomial/polylist.cpp | eouedraogo4/Polynomial | 2a7adba3119acb162525bf71a813e96e105627b0 | [
"MIT"
] | null | null | null | Polynomial/polylist.cpp | eouedraogo4/Polynomial | 2a7adba3119acb162525bf71a813e96e105627b0 | [
"MIT"
] | null | null | null | Polynomial/polylist.cpp | eouedraogo4/Polynomial | 2a7adba3119acb162525bf71a813e96e105627b0 | [
"MIT"
] | null | null | null | #include "polylist.h"
// Constructors
PolyList::PolyList(PolyList const& other) {
head = new PNode(*other.head);
tail = head->next;
len = other.len;
}
// Destructor
PolyList::~PolyList() {
while (head) {
tail = head;
head = head->next;
delete tail;
}
}
Status PolyList::Pus... | 24.565217 | 93 | 0.582743 | eouedraogo4 |
3653cc0b5e6fea3c18e6fd4a1e824a64bd097e8f | 8,703 | cpp | C++ | stratum/job.cpp | now2more/yiimp | 3506d3b0b8304e020d4ae01d11149ff6e49836c3 | [
"MIT"
] | 15 | 2018-01-12T16:21:45.000Z | 2021-04-28T19:20:51.000Z | stratum/job.cpp | now2more/yiimp | 3506d3b0b8304e020d4ae01d11149ff6e49836c3 | [
"MIT"
] | 7 | 2021-04-29T23:11:30.000Z | 2022-01-17T09:33:13.000Z | stratum/job.cpp | now2more/yiimp | 3506d3b0b8304e020d4ae01d11149ff6e49836c3 | [
"MIT"
] | 28 | 2020-11-07T02:28:52.000Z | 2022-03-13T01:56:13.000Z |
#include "stratum.h"
//client->difficulty_remote = 0;
//debuglog(" returning %x, %s, %s\n", job->id, client->sock->ip, #condition); \
#define RETURN_ON_CONDITION(condition, ret) \
if(condition) \
{ \
return ret; \
}
static bool job_assign_client(YAAMP_JOB *job, YAAMP_CLIENT *client, double maxhash)
{
RETURN_O... | 24.794872 | 131 | 0.652304 | now2more |
3653f7cf95aab81a640bd4b30645356edf8b8b74 | 1,270 | cpp | C++ | ForYou.CodingInterviews/CPlus/ReadBook/ForYou.CodingInterviews.CPlusPlus.PrimerPlus007/002.cpp | Gun-Killer/CodingInterviews | 0f06d9f7a79898fbce8a12726bd42077cf7ee071 | [
"MIT"
] | null | null | null | ForYou.CodingInterviews/CPlus/ReadBook/ForYou.CodingInterviews.CPlusPlus.PrimerPlus007/002.cpp | Gun-Killer/CodingInterviews | 0f06d9f7a79898fbce8a12726bd42077cf7ee071 | [
"MIT"
] | null | null | null | ForYou.CodingInterviews/CPlus/ReadBook/ForYou.CodingInterviews.CPlusPlus.PrimerPlus007/002.cpp | Gun-Killer/CodingInterviews | 0f06d9f7a79898fbce8a12726bd42077cf7ee071 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void towDArray(int num[][4], int rows);
void towDArray2(int num[][4], int rows);
void towDArray3(int (*num)[4], int rows);
int main002()
{
int num = 10;
const int* num_p = #
//*num_p = 11; error
const int num2 = 20;
const int* num2_p = &num2;
... | 17.162162 | 41 | 0.434646 | Gun-Killer |
3654c1245e4e8d8b4cc2ce6b2a2efe6cadf69f14 | 1,364 | hpp | C++ | shared/disparity_luts.hpp | ConnorChristie/depthai-api | cb09505f04b16734af99b58cbe763f7afcf86faf | [
"MIT"
] | null | null | null | shared/disparity_luts.hpp | ConnorChristie/depthai-api | cb09505f04b16734af99b58cbe763f7afcf86faf | [
"MIT"
] | null | null | null | shared/disparity_luts.hpp | ConnorChristie/depthai-api | cb09505f04b16734af99b58cbe763f7afcf86faf | [
"MIT"
] | null | null | null | #pragma once
static const int DISPARITY_SIZE = 96;
static unsigned char c_disp_to_color[DISPARITY_SIZE][3] =
{
{0, 0, 0},
{128, 0, 0},
{144, 0, 0},
{160, 0, 0},
{176, 0, 0},
{192, 0, 0},
{208, 0, 0},
{224, 0, 0},
{240, 0, 0},
{255, 0, 0},
{255, 16, 0},
{255, 3... | 18.684932 | 57 | 0.370968 | ConnorChristie |
365743d075eb2b09941ac7f90a18a62fece9c5bb | 2,301 | hpp | C++ | include/net/distribute/Connection.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 31 | 2015-03-03T19:13:42.000Z | 2020-09-03T08:11:56.000Z | include/net/distribute/Connection.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 1 | 2016-12-24T00:12:11.000Z | 2016-12-24T00:12:11.000Z | include/net/distribute/Connection.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 8 | 2015-09-06T01:55:21.000Z | 2021-12-20T02:16:13.000Z | /*
* File: Connection.hpp
* Author: Paolo D'Apice
*
* Created on May 24, 2012, 3:43 PM
*/
#ifndef IZENELIB_NET_DISTRIBUTE_CONNECTION_HPP
#define IZENELIB_NET_DISTRIBUTE_CONNECTION_HPP
#include "common.hpp"
#include "Message.hpp"
#include <boost/asio.hpp>
#include <boost/enable_shared_from_this.hpp>
#include ... | 24.221053 | 76 | 0.66319 | izenecloud |
365810dfca733750fe46365f9e2182539eaf17b2 | 4,183 | cpp | C++ | .src/type.cpp | robertu94/jluna | aa37f3d63126713afd92f83939ee2fc4f16039a9 | [
"MIT"
] | null | null | null | .src/type.cpp | robertu94/jluna | aa37f3d63126713afd92f83939ee2fc4f16039a9 | [
"MIT"
] | null | null | null | .src/type.cpp | robertu94/jluna | aa37f3d63126713afd92f83939ee2fc4f16039a9 | [
"MIT"
] | null | null | null | //
// Copyright 2022 Clemens Cords
// Created on 07.02.22 by clem (mail@clemens-cords.com)
//
#include "type.hpp"
#include "symbol.hpp"
namespace jluna
{
Type::Type() = default;
Type::Type(jl_datatype_t* value)
: Proxy((jl_value_t*) value, (value->name == NULL ? jl_symbol("Union{}") : value->name->n... | 25.820988 | 137 | 0.61726 | robertu94 |
365ee9a4ddfd2bda3664291ef34011aa024670cc | 4,155 | cpp | C++ | CardReaderLibrary/RectangleHelper.cpp | klanderfri/CardReaderLibrary | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 4 | 2019-03-18T14:06:59.000Z | 2021-07-17T18:36:12.000Z | CardReaderLibrary/RectangleHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 17 | 2018-04-12T18:03:16.000Z | 2018-05-09T18:33:07.000Z | CardReaderLibrary/RectangleHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 1 | 2019-03-25T18:31:17.000Z | 2019-03-25T18:31:17.000Z | #include "stdafx.h"
#include "RectangleHelper.h"
#include <opencv2\imgproc.hpp>
using namespace cv;
using namespace std;
RectangleHelper::RectangleHelper()
{
}
RectangleHelper::~RectangleHelper()
{
}
RotatedRect RectangleHelper::GetRotatedRectangle(vector<TrendLine> verticalBorders, vector<TrendLine> horizontalBord... | 34.915966 | 146 | 0.776895 | klanderfri |
365f3b95d8f835a411e48511222a3793c6fa1c13 | 384 | cpp | C++ | src/depricated_code/barcodecounter.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 22 | 2016-08-11T06:16:25.000Z | 2022-02-22T00:06:59.000Z | src/depricated_code/barcodecounter.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 9 | 2016-12-08T12:42:38.000Z | 2021-12-28T20:12:15.000Z | src/depricated_code/barcodecounter.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 8 | 2017-06-26T13:15:06.000Z | 2021-11-12T18:39:54.000Z | //
// barcodecounter.cpp
// barcode_project
//
// Created by luzhao on 12/25/15.
// Copyright © 2015 luzhao. All rights reserved.
//
#include "barcodecounter.h"
#include <string>
#include "kmers_bitwisetransform.h"
using std::string;
namespace barcodeSpace{
BarcodeCounter::BarcodeCounter(size_t klen):_klen(klen)... | 18.285714 | 56 | 0.729167 | LaoZZZZZ |
3662f3f56c75335ef33ca1d2c06f8acf7dc8ec91 | 1,221 | cpp | C++ | leetcode-cpp/232_implementing_queue_using_stacks/main.cpp | clpsz/algorithms | c537c65eea5176f64cb37af674c3f07bc7d47821 | [
"Apache-2.0"
] | 2 | 2019-08-14T09:32:07.000Z | 2019-12-22T10:54:35.000Z | leetcode-cpp/232_implementing_queue_using_stacks/main.cpp | clpsz/algorithms | c537c65eea5176f64cb37af674c3f07bc7d47821 | [
"Apache-2.0"
] | null | null | null | leetcode-cpp/232_implementing_queue_using_stacks/main.cpp | clpsz/algorithms | c537c65eea5176f64cb37af674c3f07bc7d47821 | [
"Apache-2.0"
] | null | null | null | #include "../common.h"
#include <stack>
using std::stack;
// 0ms
class Queue {
public:
// Push element x to the back of queue.
void push(int x) {
s.push(x);
}
// Removes the element from in front of queue.
void pop(void) {
while (!s.empty())
{
int v = s.top();
... | 15.653846 | 50 | 0.398034 | clpsz |
3664d9e6927b068565836706f33999d41d13bb1b | 32,131 | cpp | C++ | multimedia/directx/dplay/dplay8/sp/serial/modemui.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/directx/dplay/dplay8/sp/serial/modemui.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/directx/dplay/dplay8/sp/serial/modemui.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*==========================================================================
*
* Copyright (C) 1998-2000 Microsoft Corporation. All Rights Reserved.
*
* File: ModemUI.cpp
* Content: Modem service provider UI functions
*
*
* History:
* Date By Reason
* ==== == ======
* 03/24/99 j... | 26.686877 | 135 | 0.558993 | npocmaka |
366648ed3fc20f187f8c57438ae9d1534a9cfe53 | 2,139 | cpp | C++ | OOP_Video_Games_Data_Structures/NIM/nim.cpp | estradjm/Class_Work | dc32f5d15ea53b3cace0a3bd873eab385bfb680d | [
"Apache-2.0"
] | 7 | 2018-10-31T08:22:17.000Z | 2021-11-19T00:41:35.000Z | OOP_Video_Games_Data_Structures/NIM/nim.cpp | estradjm/Class_Work | dc32f5d15ea53b3cace0a3bd873eab385bfb680d | [
"Apache-2.0"
] | null | null | null | OOP_Video_Games_Data_Structures/NIM/nim.cpp | estradjm/Class_Work | dc32f5d15ea53b3cace0a3bd873eab385bfb680d | [
"Apache-2.0"
] | 1 | 2020-03-23T01:19:59.000Z | 2020-03-23T01:19:59.000Z | #include "nim.h"
#include <iostream>
#include <cstdlib>
#include <time.h>
#include <assert.h> /* assert */
using namespace std;
nim::nim()
{
players_turn=1;
srand(time(NULL));
piles[0] = rand() % 6 + 5; // 5 - 11 stones in each pile
piles[1] = rand() % 6 + 5;
piles[2] = rand() % 6 + 5;
}
nim:... | 27.779221 | 116 | 0.533894 | estradjm |
36664c4fc4dc35784f2daa9f4f349b025cb89a1b | 837 | cc | C++ | peridot/bin/suggestion_engine/filters/ranked_passive_filter.cc | yanyushr/fuchsia | 98e70672a81a206d235503e398f37b7b65581f79 | [
"BSD-3-Clause"
] | 1 | 2019-10-09T10:50:57.000Z | 2019-10-09T10:50:57.000Z | peridot/bin/suggestion_engine/filters/ranked_passive_filter.cc | bootingman/fuchsia2 | 04012f0aa1edd1d4108a2ac647a65e59730fc4c2 | [
"BSD-3-Clause"
] | null | null | null | peridot/bin/suggestion_engine/filters/ranked_passive_filter.cc | bootingman/fuchsia2 | 04012f0aa1edd1d4108a2ac647a65e59730fc4c2 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia 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 "peridot/bin/suggestion_engine/filters/ranked_passive_filter.h"
#include <list>
namespace modular {
RankedPassiveFilter::RankedPassiveFilter(
... | 31 | 75 | 0.770609 | yanyushr |
3666c7c081142a8678529552425d85854df760f2 | 9,331 | cpp | C++ | NOLF/ClientShellDLL/ParticleSystemFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 65 | 2015-02-28T03:35:14.000Z | 2021-09-23T05:43:33.000Z | NOLF/ClientShellDLL/ParticleSystemFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | null | null | null | NOLF/ClientShellDLL/ParticleSystemFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 27 | 2015-02-28T07:42:01.000Z | 2022-02-11T01:35:20.000Z | // ----------------------------------------------------------------------- //
//
// MODULE : ParticleSystemFX.cpp
//
// PURPOSE : ParticleSystem special FX - Implementation
//
// CREATED : 10/24/97
//
// ----------------------------------------------------------------------- //
#include "stdafx.h"
#include... | 27.125 | 112 | 0.600686 | rastrup |
36678073975dc73c6804ed2c9a56ebf006b42802 | 840 | cpp | C++ | copyconst2.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | copyconst2.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | copyconst2.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<conio.h>
using namespace std;
class inte
{
public:
int m;
public:
inte(inte &i);
inte(int x)
{
m=x;
}
void show()
{
... | 23.333333 | 36 | 0.204762 | maansisrivastava |
36678d7a333b83786aa4e73c4edf29f8f048cbf1 | 541 | cpp | C++ | C++/ascending array.cpp | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 21 | 2021-10-02T14:14:33.000Z | 2022-01-12T16:27:49.000Z | C++/ascending array.cpp | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 10 | 2021-10-02T15:52:56.000Z | 2021-10-31T14:13:23.000Z | C++/ascending array.cpp | mrjayantk237/Hacktober_Fest_2021 | 6dcd022a7116b81310534dcd0da8d66c185ac410 | [
"MIT"
] | 64 | 2021-10-02T09:20:19.000Z | 2021-10-31T20:21:01.000Z | #include<iostream>
using namespace std;
int main(){
int i, j, size, a[20],temp;
cout<<"enter the size of array: ";
cin>>size;
for(i=0;i<size;i++){
cout<<"\nenter the array elements: ";
cin>>a[i];
}
cout<<"the unsorted array is: ";
for(i=0;i<size;i++){
cout<<" "<<a[i]<<" ";
}
for(i=0;i<size;i++){
... | 16.393939 | 39 | 0.491682 | mrjayantk237 |
3667da790b0729903f6897de14053076ab5d0bb7 | 2,015 | cpp | C++ | arch/platform/platform-x86_64.cpp | IGR2014/kernale | a8b43cf7d89c3d92b14ffdb88683023048f4bf78 | [
"MIT"
] | 4 | 2019-08-09T09:20:40.000Z | 2021-09-10T00:59:30.000Z | arch/platform/platform-x86_64.cpp | IGR2014/kernale | a8b43cf7d89c3d92b14ffdb88683023048f4bf78 | [
"MIT"
] | 12 | 2017-10-24T14:22:46.000Z | 2020-07-17T16:20:39.000Z | arch/platform/platform-x86_64.cpp | IGR2014/kernale | a8b43cf7d89c3d92b14ffdb88683023048f4bf78 | [
"MIT"
] | 1 | 2019-08-01T07:49:36.000Z | 2019-08-01T07:49:36.000Z | ////////////////////////////////////////////////////////////////
//
// Platform description for x86_64
//
// File: platform-x86_64.cpp
// Date: 24 Sep 2021
//
// Copyright (c) 2017 - 2021, Igor Baklykov
// All rights reserved.
//
//
#include <platform.hpp>
#include <arch/x86_64/types.hpp>
#include <a... | 20.353535 | 74 | 0.636228 | IGR2014 |
3668ec1f0cb31671ceff2e5548469adb2d4c1dd6 | 1,612 | hh | C++ | src/motor/meta/api/motor/meta/engine/helper/staticarray.hh | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/motor/meta/api/motor/meta/engine/helper/staticarray.hh | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/motor/meta/api/motor/meta/engine/helper/staticarray.hh | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | /* Motor <motor.devel@gmail.com>
see LICENSE for detail */
#ifndef MOTOR_META_ENGINE_HELPER_STATICARRAY_HH_
#define MOTOR_META_ENGINE_HELPER_STATICARRAY_HH_
/**************************************************************************************************/
#include <motor/meta/stdafx.h>
namespace Motor { nam... | 23.705882 | 101 | 0.533499 | motor-dev |
366a37348e1dbb58457f0de6f4f7720c83d6fb7a | 642 | hh | C++ | game/Registry.hh | trenete97/Joc-EDA-Dominator | 94d6036df52a524249fe7b1d4a3932b113c49425 | [
"Apache-2.0"
] | null | null | null | game/Registry.hh | trenete97/Joc-EDA-Dominator | 94d6036df52a524249fe7b1d4a3932b113c49425 | [
"Apache-2.0"
] | null | null | null | game/Registry.hh | trenete97/Joc-EDA-Dominator | 94d6036df52a524249fe7b1d4a3932b113c49425 | [
"Apache-2.0"
] | null | null | null | #ifndef Registry_hh
#define Registry_hh
#include "Utils.hh"
/** \file
* Magic to register players.
*/
class Player;
/**
* Since the main program does not know how many players will be inherited
* from the Player class, we use a registration and factory pattern.
*/
class Registry {
public:
typedef Playe... | 15.658537 | 74 | 0.705607 | trenete97 |
366b7c8e205c89332ae99e76b0b21345896461b8 | 3,366 | cpp | C++ | src/kernel.cpp | Codesmith512/Apex | c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b | [
"MIT"
] | 1 | 2021-04-01T09:34:26.000Z | 2021-04-01T09:34:26.000Z | src/kernel.cpp | Codesmith512/Apex | c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b | [
"MIT"
] | null | null | null | src/kernel.cpp | Codesmith512/Apex | c230c53ab8f32a5371dcf7b40d25fa9fbb85ac6b | [
"MIT"
] | null | null | null | /* Kernel */
#include "mem_manager"
#include "multiboot2"
#include "page_manager"
#include "pic"
#include "ports"
#include "interrupts"
/* IO */
#include <keyboard>
#include <vga_screen>
/* STL */
#include <array>
#include <std_external>
#include <tuple>
#include <vector>
/* APEX */
#include <helpers>
#include <stac... | 24.391304 | 106 | 0.656269 | Codesmith512 |
366d7b54d1a71360800f88cfa490efbe0562f66d | 976 | cpp | C++ | module-services/service-desktop/endpoints/developerMode/event/ATRequest.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-services/service-desktop/endpoints/developerMode/event/ATRequest.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-services/service-desktop/endpoints/developerMode/event/ATRequest.cpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <endpoints/developerMode/event/ATRequest.hpp>
#include <endpoints/developerMode/DeveloperModeHelper.hpp>
#include <endpoints/JsonKeyNames.hpp>
namespace sdesktop::developerMo... | 40.666667 | 110 | 0.732582 | bitigchi |
367309c73333243729e5b1f56db2d79aef9d1e92 | 26,456 | cc | C++ | hookflash-core/webRTC/webRTC_ios/third_party/libyuv/source/planar_functions.cc | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | 1 | 2020-02-19T09:55:55.000Z | 2020-02-19T09:55:55.000Z | hookflash-core/webRTC/webRTC_ios/third_party/libyuv/source/planar_functions.cc | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | null | null | null | hookflash-core/webRTC/webRTC_ios/third_party/libyuv/source/planar_functions.cc | ilin-in/OP | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | [
"Unlicense"
] | null | null | null | /*
* Copyright (c) 2011 The LibYuv project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 29.330377 | 79 | 0.611393 | ilin-in |
36752084da4967101bdfdc135f6aea986d786708 | 1,683 | cpp | C++ | email/src/gid.cpp | christophebedard/rmw_email | c0110b6fc6a61f389ec58f54496c39f6026a4a13 | [
"Apache-2.0"
] | 14 | 2021-09-19T02:04:37.000Z | 2022-02-24T08:15:50.000Z | email/src/gid.cpp | christophebedard/rmw_email | c0110b6fc6a61f389ec58f54496c39f6026a4a13 | [
"Apache-2.0"
] | 5 | 2021-09-18T23:50:02.000Z | 2022-02-21T14:44:49.000Z | email/src/gid.cpp | christophebedard/rmw_email | c0110b6fc6a61f389ec58f54496c39f6026a4a13 | [
"Apache-2.0"
] | 2 | 2021-09-20T13:56:38.000Z | 2021-12-10T09:00:24.000Z | // Copyright 2021 Christophe Bedard
//
// 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 ... | 21.0375 | 80 | 0.714201 | christophebedard |
36798da0eed40dec3b67eeba5e362fc599252a49 | 4,105 | cpp | C++ | src/engine/render/Material.cpp | wsmind/leaf | 2a421515ef667a77c36fd852e59aedb677ab734c | [
"MIT"
] | 18 | 2017-01-11T22:09:07.000Z | 2022-02-02T03:20:23.000Z | src/engine/render/Material.cpp | wsmind/leaf | 2a421515ef667a77c36fd852e59aedb677ab734c | [
"MIT"
] | 13 | 2016-08-04T18:29:14.000Z | 2018-11-21T19:08:11.000Z | src/engine/render/Material.cpp | wsmind/leaf | 2a421515ef667a77c36fd852e59aedb677ab734c | [
"MIT"
] | 1 | 2018-11-20T15:24:53.000Z | 2018-11-20T15:24:53.000Z | #include <engine/render/Material.h>
#include <algorithm>
#include <iterator>
#include <engine/animation/AnimationData.h>
#include <engine/animation/AnimationPlayer.h>
#include <engine/animation/PropertyMapping.h>
#include <engine/render/Image.h>
#include <engine/render/RenderSettings.h>
#include <engine/render/Textur... | 33.647541 | 151 | 0.642875 | wsmind |
3679b029f1751825abfbe164b306c33b1f00a4be | 11,895 | hpp | C++ | private/inc/rtprocessingfwx/IasAudioChannelBundle.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 5 | 2018-11-05T07:37:58.000Z | 2022-03-04T06:40:09.000Z | private/inc/rtprocessingfwx/IasAudioChannelBundle.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | null | null | null | private/inc/rtprocessingfwx/IasAudioChannelBundle.hpp | juimonen/SmartXbar | 033f521a5dba5bce5e097df9c98af5b2cc2636dd | [
"BSD-3-Clause"
] | 7 | 2018-12-04T07:32:19.000Z | 2021-02-17T11:28:28.000Z | /*
* Copyright (C) 2018 Intel Corporation.All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file IasAudioChannelBundle.hpp
* @date 2012
* @brief The definition of the IasAudioChannelBundle class.
*/
#ifndef IASAUDIOCHANNELBUNDLE_HPP_
#define IASAUDIOCHANNELBUNDLE_HPP_
#include "aud... | 47.390438 | 144 | 0.707524 | juimonen |
3679f439012e51728095825be0d272517e71bc36 | 2,896 | cpp | C++ | Chapter06-game-object/player_ship.cpp | focusright/Hands-On-Game-Development-with-WebAssembly | 8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a | [
"MIT"
] | 71 | 2019-05-13T23:30:39.000Z | 2022-03-08T15:28:20.000Z | Chapter06-game-object/player_ship.cpp | focusright/Hands-On-Game-Development-with-WebAssembly | 8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a | [
"MIT"
] | 4 | 2019-10-20T19:18:04.000Z | 2021-01-15T15:41:53.000Z | Chapter06-game-object/player_ship.cpp | focusright/Hands-On-Game-Development-with-WebAssembly | 8b5d5f58e91b3477109caf8dd923ab9f1c8bac4a | [
"MIT"
] | 23 | 2019-05-10T14:25:59.000Z | 2021-10-03T07:19:28.000Z | #include "game.hpp"
PlayerShip::PlayerShip() {
m_X = 160.0;
m_Y = 100.0;
m_Rotation = PI;
m_DX = 0.0;
m_DY = 1.0;
m_VX = 0.0;
m_VY = 0.0;
m_LastLaunchTime = current_time;
SDL_Surface *temp_surface = IMG_Load( c_SpriteFile );
if( !temp_surface ) {
printf("failed... | 20.539007 | 77 | 0.541091 | focusright |
367c5ff01773ddd2658478b32871cdb49b71c119 | 651 | cpp | C++ | oop_ex33.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | oop_ex33.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | oop_ex33.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | /*
cpp_ex33.cpp
Using call by reference to return multiple values
*/
#include <iostream>
using namespace std;
void fourop(const double& x, const double& y, double& a, double& s, double& m, double& d)
{
a = x + y;
s = x - y;
m = x * y;
d = x / y;
//x = y;
}
void main()
{
cout << "Please enter two numbers:" ... | 15.878049 | 89 | 0.483871 | 85105 |
367cded62f280bb284ced6066b4da0056f2f9e67 | 25,321 | cpp | C++ | inc/control.cpp | HiSER/LCD-SSD1963-TOUCH | a2e4f51789710f5dbed00495b7306de376e0b5dc | [
"MIT"
] | null | null | null | inc/control.cpp | HiSER/LCD-SSD1963-TOUCH | a2e4f51789710f5dbed00495b7306de376e0b5dc | [
"MIT"
] | null | null | null | inc/control.cpp | HiSER/LCD-SSD1963-TOUCH | a2e4f51789710f5dbed00495b7306de376e0b5dc | [
"MIT"
] | null | null | null | /**
* HiSER (c)2018 Litvin Artem Vasilyevich
* Date 31.08.2019
* hiser@mail.ru, +79130258565
* License MIT
*/
#include <control.hpp>
#include <lcd.hpp>
CONTROL::CONTROL(tArea* area, bool visible, bool group, bool background, bool events)
{
child = NULL;
childCount = 0;
me.x = 0;
me.y = 0;
me.width = 100;
m... | 19.552896 | 158 | 0.606888 | HiSER |
367d0c71430acdcf2a9f99dead7c1d56b3622f31 | 1,062 | hpp | C++ | include/natalie/managed_vector.hpp | philberty/natalie | 8c10132a07fa2cdd23dc718dbc8020079a8df130 | [
"MIT"
] | null | null | null | include/natalie/managed_vector.hpp | philberty/natalie | 8c10132a07fa2cdd23dc718dbc8020079a8df130 | [
"MIT"
] | null | null | null | include/natalie/managed_vector.hpp | philberty/natalie | 8c10132a07fa2cdd23dc718dbc8020079a8df130 | [
"MIT"
] | null | null | null | #pragma once
#include "natalie/gc.hpp"
#include "tm/vector.hpp"
namespace Natalie {
template <typename T>
class ManagedVector : public Cell, public TM::Vector<T> {
public:
using TM::Vector<T>::Vector;
ManagedVector(const Vector<T> &other)
: ManagedVector {} {
for (auto item : other)
... | 24.697674 | 82 | 0.531073 | philberty |
367e44585a3669facc0846fa77da60b0a651ea88 | 5,687 | cpp | C++ | cap05/cap05-03-01-class_students.cpp | ggaaaff/think_like_a_programmer--test_code | fb081d24d70db6dd503608562625b84607c7a3ab | [
"MIT"
] | 1 | 2020-12-08T10:54:39.000Z | 2020-12-08T10:54:39.000Z | cap05/cap05-03-01-class_students.cpp | ggaaaff/think_like_a_programmer--test_code | fb081d24d70db6dd503608562625b84607c7a3ab | [
"MIT"
] | null | null | null | cap05/cap05-03-01-class_students.cpp | ggaaaff/think_like_a_programmer--test_code | fb081d24d70db6dd503608562625b84607c7a3ab | [
"MIT"
] | null | null | null | //2014.07.20 - 2014.07.21 - 2014.07.22 Gustaf-37 - CTG.
/* PROBLEM :
T R A C K I N G A N U N K N O W N Q U A N T I T Y O F S TU D E N T R E C O R D S
In this problem, you will write a class with methods to store and manipulate a collection
of student records. A student record contains a student number... | 18.227564 | 94 | 0.662388 | ggaaaff |
368876e5c495ecb67be9e4a6d6d80a7d2bb17f00 | 12,250 | cpp | C++ | deep500/frameworks/reference/custom_operators/cpp/operators/batchnormalization_op_training.cpp | khoaideptrai/deep500 | 0953038f64bc73c8d41d01796e07d3a23ca97822 | [
"BSD-3-Clause"
] | 90 | 2019-01-02T22:49:08.000Z | 2022-02-17T21:11:38.000Z | deep500/frameworks/reference/custom_operators/cpp/operators/batchnormalization_op_training.cpp | khoaideptrai/deep500 | 0953038f64bc73c8d41d01796e07d3a23ca97822 | [
"BSD-3-Clause"
] | 4 | 2019-02-14T16:19:06.000Z | 2022-01-11T17:54:42.000Z | deep500/frameworks/reference/custom_operators/cpp/operators/batchnormalization_op_training.cpp | khoaideptrai/deep500 | 0953038f64bc73c8d41d01796e07d3a23ca97822 | [
"BSD-3-Clause"
] | 24 | 2019-01-09T18:09:44.000Z | 2022-01-10T13:04:42.000Z | #include <deque>
#include "deep500/deep500.h"
#include "../utility/tensor/copy_data.hpp"
#include "../utility/tensor/set_all.hpp"
#include "../utility/math/mean.hpp"
#include "../utility/math/variance.hpp"
#include <iostream>
//batchnormalization - training mode
template<typename T>
class BatchNormalizationLayerTrain... | 35.100287 | 151 | 0.535592 | khoaideptrai |
368a9c681bb6654cad78e79a3a798703c643e134 | 4,598 | cpp | C++ | jlp_wxplot/jlp_wxplot_plot/jlp_wxlogbook.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_wxplot/jlp_wxplot_plot/jlp_wxlogbook.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_wxplot/jlp_wxplot_plot/jlp_wxlogbook.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | 1 | 2020-07-09T00:20:49.000Z | 2020-07-09T00:20:49.000Z | /******************************************************************************
* Name: jlp_wxlogbook.cpp (GpdLogbook class)
* Purpose: Logbook utilities
* Author: JLP
* Version: 03/01/2015
******************************************************************************/
#include "jlp_wxlogbook.h"
... | 32.380282 | 96 | 0.514572 | jlprieur |
368f49394200baccc9da366ae59691bd796f553c | 72 | hpp | C++ | Addons/e12_tools/script_component.hpp | Echo12/e12_tools_ace3 | 41ae1e76a6c0177b73f9f0eef65f19a911f09099 | [
"MIT"
] | 1 | 2015-06-04T17:53:30.000Z | 2015-06-04T17:53:30.000Z | Addons/e12_tools/script_component.hpp | Echo12/e12_tools_ace3 | 41ae1e76a6c0177b73f9f0eef65f19a911f09099 | [
"MIT"
] | 17 | 2015-06-04T19:27:03.000Z | 2020-04-17T19:47:35.000Z | Addons/e12_tools/script_component.hpp | Echo12/e12_tools_ace3 | 41ae1e76a6c0177b73f9f0eef65f19a911f09099 | [
"MIT"
] | 2 | 2015-06-08T14:18:36.000Z | 2016-07-12T18:14:54.000Z | #define COMPONENT tools
#define PREFIX e12
#include "script_macros.hpp" | 18 | 28 | 0.805556 | Echo12 |
369160dcf51f1fa8ba74af241f4a355c3b15a8f2 | 2,362 | cpp | C++ | mozilla/gfx/thebes/gfxQuartzNativeDrawing.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | 5 | 2016-12-20T15:48:05.000Z | 2020-05-01T20:12:09.000Z | mozilla/gfx/thebes/gfxQuartzNativeDrawing.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | null | null | null | mozilla/gfx/thebes/gfxQuartzNativeDrawing.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | 2 | 2016-12-20T15:48:13.000Z | 2019-12-10T15:15:05.000Z | /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "gfxQuartzNativeDrawing.h"
... | 31.493333 | 90 | 0.681202 | naver |
3691f3e0762f55a980cef62b2af0d06ad85933cb | 5,474 | cpp | C++ | rocAL/rocAL/source/meta_node_rotate.cpp | Indumathi31/MIVisionX | e58c8b63d51e3f857d5f1c8750433d1ec887d7f0 | [
"MIT"
] | null | null | null | rocAL/rocAL/source/meta_node_rotate.cpp | Indumathi31/MIVisionX | e58c8b63d51e3f857d5f1c8750433d1ec887d7f0 | [
"MIT"
] | 8 | 2021-12-10T14:07:28.000Z | 2022-03-04T02:53:11.000Z | rocAL/rocAL/source/meta_node_rotate.cpp | Indumathi31/MIVisionX | e58c8b63d51e3f857d5f1c8750433d1ec887d7f0 | [
"MIT"
] | 2 | 2021-06-01T09:42:51.000Z | 2021-11-09T14:35:36.000Z | /*
Copyright (c) 2019 - 2022 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, ... | 49.315315 | 151 | 0.620935 | Indumathi31 |
369947a42f5980121c03baf7cb2e4bab1ecad920 | 2,918 | hpp | C++ | plugin/com.blackberry.push/src/blackberry10/native/push_ndk.hpp | timwindsor/cordova-blackberry-plugins | a3e9e7d22f54d464647e60ef3ec574b324a5972e | [
"Apache-2.0"
] | 5 | 2015-03-04T00:17:54.000Z | 2019-06-27T13:36:05.000Z | plugin/com.blackberry.push/src/blackberry10/native/push_ndk.hpp | timwindsor/cordova-blackberry-plugins | a3e9e7d22f54d464647e60ef3ec574b324a5972e | [
"Apache-2.0"
] | 6 | 2015-02-09T21:33:52.000Z | 2017-06-02T16:19:26.000Z | plugin/com.blackberry.push/src/blackberry10/native/push_ndk.hpp | timwindsor/cordova-blackberry-plugins | a3e9e7d22f54d464647e60ef3ec574b324a5972e | [
"Apache-2.0"
] | 10 | 2015-01-27T22:58:19.000Z | 2019-02-15T19:07:01.000Z | /*
* Copyright 2012 Research In Motion Limited.
*
* 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 o... | 32.422222 | 110 | 0.746059 | timwindsor |
369b399ba774a134189ef45d65f93dcdc50cd32f | 468 | cpp | C++ | simulation_code/src/matplotlib-cpp/examples/scatter.cpp | lottegr/project_simulation | b95d88114a3d2611073d1977393884062f63bdab | [
"Apache-2.0"
] | 58 | 2019-12-30T19:39:52.000Z | 2022-03-27T15:55:10.000Z | simulation_code/src/matplotlib-cpp/examples/scatter.cpp | lottegr/project_simulation | b95d88114a3d2611073d1977393884062f63bdab | [
"Apache-2.0"
] | 3 | 2021-08-25T13:22:52.000Z | 2022-03-20T18:26:01.000Z | simulation_code/src/matplotlib-cpp/examples/scatter.cpp | lottegr/project_simulation | b95d88114a3d2611073d1977393884062f63bdab | [
"Apache-2.0"
] | 39 | 2020-02-26T11:37:14.000Z | 2022-03-22T09:50:24.000Z | #define _USE_MATH_DEFINES
#include <cmath>
#include <vector>
#include "../matplotlibcpp.h"
namespace plt = matplotlibcpp;
void plot() {
const unsigned n = 100;
std::vector<double> x(n), y(n);
#include <iostream>
for (unsigned i = 0; i < n; ++i) {
x[i] = sin(2 * M_PI * i / n);
y[i] = cos(2 * M_PI * i /... | 18 | 65 | 0.553419 | lottegr |
36a094dbc76b7b0a88755d149665033df62acfd8 | 1,465 | cpp | C++ | lib/Target/Sophon/BM188x/Compute/AveragePool.cpp | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 450 | 2018-08-03T08:17:03.000Z | 2022-03-17T17:21:06.000Z | lib/Target/Sophon/BM188x/Compute/AveragePool.cpp | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | 104 | 2018-08-13T07:31:50.000Z | 2021-08-24T11:24:40.000Z | lib/Target/Sophon/BM188x/Compute/AveragePool.cpp | ffk0716/onnc | 91e4955ade64b479db17aaeccacf4b7339fe44d2 | [
"BSD-3-Clause"
] | 100 | 2018-08-12T04:27:39.000Z | 2022-03-11T04:17:42.000Z | //===- AveragePool.cpp ----------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#define DEBUG_TYPE "tg_averagepool"
#include "AveragePool.h"
#include... | 27.12963 | 80 | 0.536519 | LiuLeif |
36a18d97f6a25b52bd2e3685ba32a5e61a821e22 | 750 | cpp | C++ | some homeworks/hunterhw10/main.cpp | jamalakhaligova/ELTE-OOP- | 65a549801f74ad04c813f58bcc7cad3affe0e135 | [
"Apache-2.0"
] | null | null | null | some homeworks/hunterhw10/main.cpp | jamalakhaligova/ELTE-OOP- | 65a549801f74ad04c813f58bcc7cad3affe0e135 | [
"Apache-2.0"
] | null | null | null | some homeworks/hunterhw10/main.cpp | jamalakhaligova/ELTE-OOP- | 65a549801f74ad04c813f58bcc7cad3affe0e135 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "hunter.h"
#include "Trophy.h"
using namespace std;
int countOfLions(vector <Trophy> &trophies);
int main()
{
Hunter Person("Jack",32);
Lion first("lion","forest","2007.08.18",54,"male");
Elephant second("elephant","forest","2014.06.20",108,27);
Lion third("lion","forest",... | 20.27027 | 63 | 0.605333 | jamalakhaligova |
36a2f395a7966b144f786d9d006fbdbf6938b656 | 693,984 | cpp | C++ | unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs74.cpp | leeenglestone/mrtk | e9c81815e5cdfba3315bb72f16400a80383a3b63 | [
"MIT"
] | null | null | null | unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs74.cpp | leeenglestone/mrtk | e9c81815e5cdfba3315bb72f16400a80383a3b63 | [
"MIT"
] | null | null | null | unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs74.cpp | leeenglestone/mrtk | e9c81815e5cdfba3315bb72f16400a80383a3b63 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
template <typename R>
struct VirtFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2Cp... | 46.551113 | 354 | 0.83411 | leeenglestone |
36a9710bcd0a857bc3709f4ca4c09e8e4c86a0d2 | 4,818 | cpp | C++ | benchmarks/mmd_permutation_benchmark.cpp | lambday/derby | 83ba9b36f7fe29498339872f4dbafb1f4053ed19 | [
"MIT"
] | null | null | null | benchmarks/mmd_permutation_benchmark.cpp | lambday/derby | 83ba9b36f7fe29498339872f4dbafb1f4053ed19 | [
"MIT"
] | null | null | null | benchmarks/mmd_permutation_benchmark.cpp | lambday/derby | 83ba9b36f7fe29498339872f4dbafb1f4053ed19 | [
"MIT"
] | null | null | null | /*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2016 Soumyajit De
* 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... | 31.907285 | 121 | 0.740349 | lambday |
36aae615a02a1288343679bb17b4df9ab35c4f4f | 5,417 | cc | C++ | src/http/incoming/Message.cc | jdavidberger/rikitiki | 95877037eb0b9d7f090042ddec49b3b85c5ed680 | [
"MIT"
] | null | null | null | src/http/incoming/Message.cc | jdavidberger/rikitiki | 95877037eb0b9d7f090042ddec49b3b85c5ed680 | [
"MIT"
] | null | null | null | src/http/incoming/Message.cc | jdavidberger/rikitiki | 95877037eb0b9d7f090042ddec49b3b85c5ed680 | [
"MIT"
] | null | null | null | #include <rikitiki/exception.h>
#include <rikitiki/http/parsing/Utils.h>
#include <rikitiki/http/Header.h>
#include <rikitiki/http/incoming/Message.h>
#include <mxcomp/log.h>
#include <mxcomp/utf.h>
namespace rikitiki {
void IMessage::OnStartLine(const rikitiki::string& startline) {
this->Set... | 43.685484 | 140 | 0.485509 | jdavidberger |
36ab3ce6b6635a07575063144c69512dca4eb212 | 382 | cpp | C++ | doc/examples/std_swap.cpp | cosmoscout/json | e4643d1f1b03fc7a1d7b65f17e012ca93680cad8 | [
"MIT"
] | 2 | 2021-10-10T08:29:39.000Z | 2021-11-09T10:46:52.000Z | doc/examples/std_swap.cpp | IXIIAI/json | ef556019be51ba3db32854e2a491b4ccb540a2c8 | [
"MIT"
] | 2 | 2021-10-10T08:29:31.000Z | 2021-11-18T10:59:26.000Z | doc/examples/std_swap.cpp | IXIIAI/json | ef556019be51ba3db32854e2a491b4ccb540a2c8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create JSON values
json j1 = {{"one", 1}, {"two", 2}};
json j2 = {1, 2, 4, 8, 16};
std::cout << "j1 = " << j1 << " | j2 = " << j2 << '\n';
// swap values
std::swap(j1, j2);
s... | 19.1 | 64 | 0.471204 | cosmoscout |
36ac0603d1c14b7bcc0d9f1b75f57eb9dfbfb1aa | 558 | cpp | C++ | examples/path/ex1.cpp | friko9/PathPool | 4db85f4eb0088d6b673471df31b99b03ba26ecaf | [
"MIT"
] | null | null | null | examples/path/ex1.cpp | friko9/PathPool | 4db85f4eb0088d6b673471df31b99b03ba26ecaf | [
"MIT"
] | null | null | null | examples/path/ex1.cpp | friko9/PathPool | 4db85f4eb0088d6b673471df31b99b03ba26ecaf | [
"MIT"
] | null | null | null | #include "path.h"
#include "path_pool.h"
#include <iostream>
int main()
{
using Path = Path<ListPathPool<std::string>>;
Path root;
Path p1 { root, "path1" };
Path p2 { root, "path2" };
Path p3 { root, "path1" };
Path p4 { p2, "path1" };
std::cout<< (p1 == p2) << std::endl; // false
std::cout<< (p1 == ... | 26.571429 | 62 | 0.555556 | friko9 |
36afbe1b73014fd8bd7d868fee3fe035dece0c57 | 4,123 | cpp | C++ | aoc2018_day13.cpp | bluespeck/aoc_2018 | d847613516bd1e0a6c1a7a0c32cc093a3f558dd4 | [
"MIT"
] | null | null | null | aoc2018_day13.cpp | bluespeck/aoc_2018 | d847613516bd1e0a6c1a7a0c32cc093a3f558dd4 | [
"MIT"
] | null | null | null | aoc2018_day13.cpp | bluespeck/aoc_2018 | d847613516bd1e0a6c1a7a0c32cc093a3f558dd4 | [
"MIT"
] | 1 | 2018-12-15T11:50:33.000Z | 2018-12-15T11:50:33.000Z | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
struct Cart
{
int x, y;
int nextIntersectionDir = 0; // 0, 1, 2; increment % 3
int currentDir = 'v'; // v, <, >, ^
};
using Grid = std::vector<std::string>;
using CartVec = std::vector<Cart>;
std::vector<Cart> carts;
Grid ReadInput()
{
... | 25.450617 | 140 | 0.41984 | bluespeck |
36afec8649610aeb3e4512caec96cdf379a90cb2 | 9,250 | cpp | C++ | datastore/common/objects/InterfaceNetwork.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 27 | 2017-11-04T23:58:54.000Z | 2022-03-28T14:21:50.000Z | datastore/common/objects/InterfaceNetwork.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 64 | 2020-03-16T19:59:43.000Z | 2022-03-18T14:49:18.000Z | datastore/common/objects/InterfaceNetwork.test.cpp | cmwill/netmeld | bf72a2b2954609b9767575fd2a25bf2ac81338e3 | [
"MIT"
] | 13 | 2019-12-01T21:32:33.000Z | 2022-03-28T15:40:02.000Z | // =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... | 30.427632 | 87 | 0.717946 | cmwill |
a5e2be485ae34f75b86b7fdc6954071c9ec79997 | 1,523 | cpp | C++ | graph/createadjlist.cpp | huweihuang/data-structure-code | dacb3a036d0a4df391ce5fca9ce65f7dc2ab1b69 | [
"Apache-2.0"
] | 3 | 2019-05-17T09:09:16.000Z | 2020-11-18T08:13:00.000Z | graph/createadjlist.cpp | huweihuang/data-structure-code | dacb3a036d0a4df391ce5fca9ce65f7dc2ab1b69 | [
"Apache-2.0"
] | null | null | null | graph/createadjlist.cpp | huweihuang/data-structure-code | dacb3a036d0a4df391ce5fca9ce65f7dc2ab1b69 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <malloc.h>
#define MAXVEX 100
typedef char VertexType[3];
typedef struct edgenode
{
int adjvex; /*邻接点序号*/
int value; /*边的权值*/
struct edgenode *next; /*下一条边的顶点*/
} ArcNode; /*每个顶点建立的单链表中结点的类型*/
typedef struct vexnode
{
VertexType data; /*结点信息*/
ArcNode *fir... | 18.130952 | 61 | 0.560079 | huweihuang |
a5e4920d524a32dd9fa31d7088f7b66c198a2545 | 421 | cpp | C++ | src/utils/log.cpp | Metaphysical1/gamesneeze | 59d31ee232bbcc80d29329e0f64ebdde599c37df | [
"MIT"
] | 1,056 | 2020-11-17T11:49:12.000Z | 2022-03-23T12:32:42.000Z | src/utils/log.cpp | dweee/gamesneeze | 99f574db2617263470280125ec78afa813f27099 | [
"MIT"
] | 102 | 2021-01-15T12:05:18.000Z | 2022-02-26T00:19:58.000Z | src/utils/log.cpp | dweee/gamesneeze | 99f574db2617263470280125ec78afa813f27099 | [
"MIT"
] | 121 | 2020-11-18T12:08:21.000Z | 2022-03-31T07:14:32.000Z | #include "../includes.hpp"
/* print Logs in green */
void Log::log(logLevel level, const char* fmt, ...) {
va_list args;
va_start(args, fmt);
switch (level) {
case LOG: fputs("\e[32m[LOG] ", stdout); break;
case WARN: fputs("\e[33m[WARN] ", stdout); break;
case ERR: fputs("\e[31m[ER... | 28.066667 | 57 | 0.562945 | Metaphysical1 |
a5ec960d008bd79eb10845b27d8f9ea6bb1b9e4f | 4,095 | cc | C++ | src/agent/map_type_evaluator.cc | KaihangXing/my-agent-demo | 764a38b93e7487305f12ac15a76e220ebda9db39 | [
"Apache-2.0"
] | 86 | 2015-11-21T12:48:04.000Z | 2022-02-03T17:22:44.000Z | src/agent/map_type_evaluator.cc | KaihangXing/my-agent-demo | 764a38b93e7487305f12ac15a76e220ebda9db39 | [
"Apache-2.0"
] | 16 | 2016-07-15T11:23:24.000Z | 2021-12-26T15:24:10.000Z | src/agent/map_type_evaluator.cc | KaihangXing/my-agent-demo | 764a38b93e7487305f12ac15a76e220ebda9db39 | [
"Apache-2.0"
] | 45 | 2016-02-02T19:58:13.000Z | 2021-10-09T02:47:29.000Z | /**
* Copyright 2015 Google 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 26.940789 | 80 | 0.682295 | KaihangXing |
a5ecad6d253b56d0832c6c424f5f3678757aed0e | 898 | cpp | C++ | src/UnitTests/src/test.cpp | Indomerun/pyHiChi | fdceb238dfed6433ee350d5c593ca5e2cd4fbd2b | [
"MIT"
] | 11 | 2019-08-22T12:47:40.000Z | 2022-01-28T16:07:29.000Z | src/UnitTests/src/test.cpp | Indomerun/pyHiChi | fdceb238dfed6433ee350d5c593ca5e2cd4fbd2b | [
"MIT"
] | 14 | 2019-09-02T08:24:55.000Z | 2022-02-14T11:40:43.000Z | src/UnitTests/src/test.cpp | Indomerun/pyHiChi | fdceb238dfed6433ee350d5c593ca5e2cd4fbd2b | [
"MIT"
] | 9 | 2019-07-31T13:25:20.000Z | 2022-01-28T16:07:45.000Z | #include "TestingUtility.h"
#include "Pml.h"
#include "Pstd.h"
#include "Fdtd.h"
#include <memory>
TEST(TEST_, test) {
Int3 gridSize(32, 1, 1);
Int3 minCoords = FP3(-1.0, 0.0, 0.0);
Int3 maxCoords = FP3(1.0, 1.0, 1.0);
FP3 steps((maxCoords.x - minCoords.x) / gridSize.x,
(maxCoords.y - minCoords... | 35.92 | 125 | 0.640312 | Indomerun |