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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83ee4051afd68649f2d087bc4bae354b802773f0 | 696 | cpp | C++ | gtsam/discrete/AlgebraicDecisionTree.cpp | h-rover/gtsam | a0206e210d8f47b6ee295a1fbf95af84d98c5cf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-04T07:01:48.000Z | 2022-03-04T07:01:48.000Z | gtsam/discrete/AlgebraicDecisionTree.cpp | h-rover/gtsam | a0206e210d8f47b6ee295a1fbf95af84d98c5cf0 | [
"BSD-3-Clause"
] | null | null | null | gtsam/discrete/AlgebraicDecisionTree.cpp | h-rover/gtsam | a0206e210d8f47b6ee295a1fbf95af84d98c5cf0 | [
"BSD-3-Clause"
] | 1 | 2022-03-21T06:58:34.000Z | 2022-03-21T06:58:34.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 24 | 80 | 0.554598 | h-rover |
83f3f8a87d7df2fb79e11988e0fab1b152b09aa3 | 1,958 | cpp | C++ | tests/containers/btree/test_btree_insert_find.cpp | hthetran/stxxl | 7f0223e52e9f10f28ed7d368cffecbbeeaa60ca7 | [
"BSL-1.0"
] | null | null | null | tests/containers/btree/test_btree_insert_find.cpp | hthetran/stxxl | 7f0223e52e9f10f28ed7d368cffecbbeeaa60ca7 | [
"BSL-1.0"
] | null | null | null | tests/containers/btree/test_btree_insert_find.cpp | hthetran/stxxl | 7f0223e52e9f10f28ed7d368cffecbbeeaa60ca7 | [
"BSL-1.0"
] | null | null | null | /***************************************************************************
* tests/containers/btree/test_btree_insert_find.cpp
*
* Part of the STXXL. See http://stxxl.org
*
* Copyright (C) 2006 Roman Dementiev <dementiev@ira.uka.de>
* Copyright (C) 2018 Manuel Penschuck <stxxl@manuel.jetzt>
*
* Distribut... | 34.350877 | 121 | 0.536261 | hthetran |
83f43a4b2d0b4d87c5f1eda0034a95df316aa789 | 495 | cpp | C++ | src/utility/general/timer.cpp | heiseish/DawnCpp | 6bcde05109bce67cc6d44c23d57e0c4348439196 | [
"Apache-2.0"
] | 3 | 2020-08-11T07:55:16.000Z | 2022-01-14T16:05:39.000Z | src/utility/general/timer.cpp | heiseish/DawnCpp | 6bcde05109bce67cc6d44c23d57e0c4348439196 | [
"Apache-2.0"
] | null | null | null | src/utility/general/timer.cpp | heiseish/DawnCpp | 6bcde05109bce67cc6d44c23d57e0c4348439196 | [
"Apache-2.0"
] | null | null | null | #include "timer.hpp"
#include <chrono>
namespace Dawn::Utility {
//---------------------------------
time_t GetCurrentEpoch()
{
struct timeval tv;
gettimeofday(&tv, nullptr);
return tv.tv_sec;
}
//---------------------------------
unsigned long GetCurrentEpochMs()
{
struct timeval tv;
gettimeofda... | 20.625 | 75 | 0.581818 | heiseish |
83f73dac265e4cad27c1d8a0259b17b031cb89f3 | 576 | hpp | C++ | simsync/include/simsync/reports/criticality_stack.hpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | simsync/include/simsync/reports/criticality_stack.hpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | simsync/include/simsync/reports/criticality_stack.hpp | mariobadr/simsync-pmam | c541d2bf3a52eec8579e254a0300442bc3d6f1d4 | [
"Apache-2.0"
] | null | null | null | #ifndef SIMSYNC_CRITICALITY_STACK_HPP
#define SIMSYNC_CRITICALITY_STACK_HPP
#include <simsync/reports/report.hpp>
#include <map>
namespace simsync {
class system;
class criticality_stack : public report {
public:
explicit criticality_stack(std::string const &output_file, const system &system);
~criticality_sta... | 19.862069 | 83 | 0.779514 | mariobadr |
83f975c550da54f756f9bb2e3551ea8bd57af189 | 1,206 | cpp | C++ | code_snippets/Chapter09/chapter.9.7.1-problematic.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 170 | 2015-05-02T18:08:38.000Z | 2018-07-31T11:35:17.000Z | code_snippets/Chapter09/chapter.9.7.1-problematic.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 7 | 2018-08-29T15:43:14.000Z | 2021-09-23T21:56:49.000Z | code_snippets/Chapter09/chapter.9.7.1-problematic.cpp | TingeOGinge/stroustrup_ppp | bb69533fff8a8f1890c8c866bae2030eaca1cf8b | [
"MIT"
] | 105 | 2015-05-28T11:52:19.000Z | 2018-07-17T14:11:25.000Z |
//
// This is example code from Chapter 9.7.1 "Argument types" of
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
//
//------------------------------------------------------------------------------
// simple Date (use Month type):
class Date {
public:
enum Month {
jan=1, feb, ... | 28.046512 | 95 | 0.43864 | TingeOGinge |
83fe5204f2d645e0fe5fdfb0789fd23392ddeec6 | 1,931 | hpp | C++ | applications/CoSimulationApplication/custom_external_libraries/CoSimIO/co_sim_io/includes/stream_serializer.hpp | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 15 | 2020-04-17T17:25:47.000Z | 2022-02-02T09:28:56.000Z | applications/CoSimulationApplication/custom_external_libraries/CoSimIO/co_sim_io/includes/stream_serializer.hpp | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 84 | 2020-04-29T17:22:04.000Z | 2022-02-14T12:24:59.000Z | applications/CoSimulationApplication/custom_external_libraries/CoSimIO/co_sim_io/includes/stream_serializer.hpp | clazaro/Kratos | b947b82c90dfcbf13d60511427f85990d36b90be | [
"BSD-4-Clause"
] | 2 | 2021-03-02T04:15:05.000Z | 2022-01-15T11:59:22.000Z | // ______ _____ _ ________
// / ____/___ / ___/(_)___ ___ / _/ __ |
// / / / __ \\__ \/ / __ `__ \ / // / / /
// / /___/ /_/ /__/ / / / / / / // // /_/ /
// \____/\____/____/_/_/ /_/ /_/___/\____/
// Kratos CoSimulationApplication
//
// License: BSD License, see license.txt
//
// ... | 35.109091 | 109 | 0.696012 | clazaro |
8601d4aac050cb6d518bfb67ce260d473325a2c8 | 8,592 | cpp | C++ | navigator/main.cpp | felipemanga/Loader | e8621c8e2d90f6dd6a231657ff8024ea2075bc45 | [
"MIT"
] | 1 | 2019-03-24T19:09:07.000Z | 2019-03-24T19:09:07.000Z | navigator/main.cpp | felipemanga/Loader | e8621c8e2d90f6dd6a231657ff8024ea2075bc45 | [
"MIT"
] | null | null | null | navigator/main.cpp | felipemanga/Loader | e8621c8e2d90f6dd6a231657ff8024ea2075bc45 | [
"MIT"
] | 1 | 2019-12-27T13:34:17.000Z | 2019-12-27T13:34:17.000Z | #include <stdio.h>
#include <functional>
#include "kernel.h"
#include "tagtype.h"
#include "api.h"
#include "mode2_direct.h"
#include "drawCharSetPixel.h"
#include "miniprint_impl.h"
#include "backlight.h"
#include "fontTIC80.h"
#include "loader.h"
#include "strutil.h"
using namespace NAVIGATOR;
Kernel *kapi;
int32_... | 17.392713 | 83 | 0.549814 | felipemanga |
86049ec1359af6d5974e5f2a52f9c36b65c8410a | 2,917 | cpp | C++ | testsrc/clause_tests.cpp | sat-clique/cnfkit | 280605ef29c95df3d5b349d54b2410451a2f5564 | [
"X11"
] | null | null | null | testsrc/clause_tests.cpp | sat-clique/cnfkit | 280605ef29c95df3d5b349d54b2410451a2f5564 | [
"X11"
] | null | null | null | testsrc/clause_tests.cpp | sat-clique/cnfkit | 280605ef29c95df3d5b349d54b2410451a2f5564 | [
"X11"
] | null | null | null | #include <cnfkit/clause.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <array>
#include <cstdint>
using ::testing::Eq;
namespace cnfkit {
template <typename T>
class add_member {
private:
T dummy;
};
template <typename SizeType, typename... AdditionalBases>
class alignas(8) configurable_test_clau... | 29.765306 | 91 | 0.756256 | sat-clique |
8604f115f3b93a73fea55c2b3c785b4d0cbd6d85 | 9,763 | cpp | C++ | src/Main.cpp | TobiOnline/VHDTool | f0d5af252d3fe4df69cccd4ee33c14dca31e7082 | [
"Unlicense"
] | 5 | 2019-07-10T23:14:22.000Z | 2022-03-04T09:33:07.000Z | src/Main.cpp | TobiOnline/VHDTool | f0d5af252d3fe4df69cccd4ee33c14dca31e7082 | [
"Unlicense"
] | 10 | 2020-04-25T01:03:19.000Z | 2020-08-18T15:42:51.000Z | src/Main.cpp | TobiOnline/VHDTool | f0d5af252d3fe4df69cccd4ee33c14dca31e7082 | [
"Unlicense"
] | 5 | 2018-10-08T12:53:10.000Z | 2019-07-14T14:05:07.000Z | #include "stdafx.h"
#include "Util.h"
#include "VHDTool.h"
using namespace std;
namespace VHDTool {
int Run(vector<string> arguments);
void PrintUsage(const string path);
string StripLeadingDashes(const string argument);
void DoActionOnSingleFile(const string path, Operation operation, FileOptions arguments);
... | 29.584848 | 118 | 0.667315 | TobiOnline |
8605112d9c5f9bf78d3e1656a8e9847225ef665f | 637 | hpp | C++ | nd-coursework/books/cpp/C++Templates/tuples/pushfront.hpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/C++Templates/tuples/pushfront.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/C++Templates/tuples/pushfront.hpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 by Addison-Wesley, David Vandevoorde, Nicolai M. Josuttis, and Douglas Gregor. All rights reserved.
// See the LICENSE file in the project root for more information.
//
// Name: pushfront.hpp
// Author: crdrisko
// Date: 11/07/2020-08:04:37
// Description: A metafunction for inserting a new elemen... | 28.954545 | 121 | 0.729984 | crdrisko |
860579df77a8ddeba188ba4f6e1f3f682a9fb011 | 309 | cpp | C++ | Week5/RedBlackBST/main.cpp | andrewlavaia/Algorithms-Sedgewick-Princeton- | 856ac0deac6c3c8cec8eb99022692442397f77f9 | [
"MIT"
] | 1 | 2021-09-18T08:21:10.000Z | 2021-09-18T08:21:10.000Z | Week5/RedBlackBST/main.cpp | andrewlavaia/Algorithms-Sedgewick-Princeton | 856ac0deac6c3c8cec8eb99022692442397f77f9 | [
"MIT"
] | null | null | null | Week5/RedBlackBST/main.cpp | andrewlavaia/Algorithms-Sedgewick-Princeton | 856ac0deac6c3c8cec8eb99022692442397f77f9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
#include "node.h"
#include "redblackbst.h"
int main() {
RedBlackBST bst;
bst.put("f", 4);
assert(bst.get("f") == 4);
bst.put("d", 2);
bst.put("z", 5);
bst.put("r", 6);
assert(bst.get("d") == 2);
int n = 1;
while (n != 0) {
std::cin >> n;
}
return 0;
} | 12.875 | 27 | 0.540453 | andrewlavaia |
860754f2a0285a3740195c1a3356b69a98973e17 | 3,353 | cpp | C++ | src/stalk_response.cpp | pykel/stalk | a51a0f4b9c005c058bcc4bce237aeb6c105b2c78 | [
"BSL-1.0"
] | null | null | null | src/stalk_response.cpp | pykel/stalk | a51a0f4b9c005c058bcc4bce237aeb6c105b2c78 | [
"BSL-1.0"
] | null | null | null | src/stalk_response.cpp | pykel/stalk | a51a0f4b9c005c058bcc4bce237aeb6c105b2c78 | [
"BSL-1.0"
] | null | null | null | #include "stalk/stalk_response.h"
#include "stalk/stalk_request.h"
#include "stalk_request_impl.h"
#include "stalk_response_impl.h"
#include "stalk_field_convert.h"
namespace Stalk
{
Response::Response() :
impl(std::make_unique<ResponseImpl>())
{
}
Response::Response(const Request& request) :
impl(std::make_... | 21.49359 | 116 | 0.670743 | pykel |
860cb17f14690d05dacf4cb536bb48b002f6a0c2 | 1,642 | cpp | C++ | examples/breakout_ioexpander/servo/servo.cpp | sstobbe/pimoroni-pico | c7ec56d278ee4f3679cd367dad225d44808e24cf | [
"MIT"
] | 425 | 2021-01-21T10:20:27.000Z | 2022-03-30T13:07:35.000Z | examples/breakout_ioexpander/servo/servo.cpp | sstobbe/pimoroni-pico | c7ec56d278ee4f3679cd367dad225d44808e24cf | [
"MIT"
] | 220 | 2021-01-22T11:27:57.000Z | 2022-03-31T23:07:58.000Z | examples/breakout_ioexpander/servo/servo.cpp | sstobbe/pimoroni-pico | c7ec56d278ee4f3679cd367dad225d44808e24cf | [
"MIT"
] | 174 | 2021-01-22T22:41:00.000Z | 2022-03-28T13:09:32.000Z | #include "pico/stdlib.h"
#include <stdio.h>
#include <math.h>
#include "breakout_ioexpander.hpp"
using namespace pimoroni;
static const uint8_t IOE_SERVO_PIN = 1;
// Settings to produce a 50Hz output from the 24MHz clock.
// 24,000,000 Hz / 8 = 3,000,000 Hz
// 3,000,000 Hz / 60,000 Period = 50 Hz
static const uint8... | 26.918033 | 110 | 0.678441 | sstobbe |
8615c18788c5a73c020e7170a20acdce2eccdc89 | 13,633 | cpp | C++ | Source/AllProjects/CIDKernel/Win32/CIDKernel_USB_Win32.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/CIDKernel/Win32/CIDKernel_USB_Win32.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/CIDKernel/Win32/CIDKernel_USB_Win32.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDKernel_USB_Win32.Cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/08/2004
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opens... | 29.508658 | 88 | 0.561579 | MarkStega |
861860e17b8af61d1b88fe742ed7868aa8915591 | 3,079 | hpp | C++ | include/audio/mapping/AudioToneSweepMapping.hpp | Tyulis/ToyGB | 841507fa19c320caa98b16eae2a6df0bc996ba51 | [
"MIT"
] | null | null | null | include/audio/mapping/AudioToneSweepMapping.hpp | Tyulis/ToyGB | 841507fa19c320caa98b16eae2a6df0bc996ba51 | [
"MIT"
] | null | null | null | include/audio/mapping/AudioToneSweepMapping.hpp | Tyulis/ToyGB | 841507fa19c320caa98b16eae2a6df0bc996ba51 | [
"MIT"
] | null | null | null | #ifndef _AUDIO_MAPPING_AUDIOTONESWEEPMAPPING_HPP
#define _AUDIO_MAPPING_AUDIOTONESWEEPMAPPING_HPP
#include "audio/timing.hpp"
#include "audio/mapping/AudioChannelMapping.hpp"
#include "audio/mapping/AudioControlMapping.hpp"
#include "core/hardware.hpp"
#include "memory/Constants.hpp"
#include "util/error.hpp"
namesp... | 45.955224 | 164 | 0.733355 | Tyulis |
861dd403d17dffa7ec09edea3f099cda24d0bee7 | 3,293 | hpp | C++ | include/paal/utils/read_rows.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/utils/read_rows.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | null | null | null | include/paal/utils/read_rows.hpp | Kommeren/AA | e537b58d50e93d4a72709821b9ea413008970c6b | [
"BSL-1.0"
] | 1 | 2021-02-24T06:23:56.000Z | 2021-02-24T06:23:56.000Z | //=======================================================================
// Copyright (c) 2015
//
// 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)
//===============================================================... | 29.401786 | 139 | 0.648952 | Kommeren |
861dead9180f36f69ddbb2201a2a5cb260e705d8 | 80 | cpp | C++ | Sources/LibRT/source/RTMaths.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibRT/source/RTMaths.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | Sources/LibRT/source/RTMaths.cpp | Rominitch/MouCaLab | d8c24de479b1bc11509df8456e0071d394fbeab9 | [
"Unlicense"
] | null | null | null | #include "Dependencies.h"
#include "LibRT/include/RTMaths.h"
namespace RT
{
} | 10 | 34 | 0.725 | Rominitch |
8621059e24b17731459f2b5b41869e328172d83c | 264 | cpp | C++ | Schweizer-Messer/numpy_eigen/src/autogen_test_module/test_2_3_uchar.cpp | chengfzy/kalibr | fe9705b380b160dc939607135f7d30efa64ea2e9 | [
"BSD-4-Clause"
] | null | null | null | Schweizer-Messer/numpy_eigen/src/autogen_test_module/test_2_3_uchar.cpp | chengfzy/kalibr | fe9705b380b160dc939607135f7d30efa64ea2e9 | [
"BSD-4-Clause"
] | null | null | null | Schweizer-Messer/numpy_eigen/src/autogen_test_module/test_2_3_uchar.cpp | chengfzy/kalibr | fe9705b380b160dc939607135f7d30efa64ea2e9 | [
"BSD-4-Clause"
] | null | null | null | #include <Eigen/Core>
#include <numpy_eigen/boost_python_headers.hpp>
Eigen::Matrix<boost::uint8_t, 2, 3> test_uchar_2_3(const Eigen::Matrix<boost::uint8_t, 2, 3>& M) { return M; }
void export_uchar_2_3() { boost::python::def("test_uchar_2_3", test_uchar_2_3); }
| 44 | 110 | 0.742424 | chengfzy |
8621b0db7d2de6ad6421e1f6a860765f27e2fc13 | 10,582 | cpp | C++ | src/diffusion/DiffusionEquation.cpp | WeiqunZhang/incflo | d72eb6e3c387704d06ceee686596337e5e9711d3 | [
"BSD-3-Clause"
] | null | null | null | src/diffusion/DiffusionEquation.cpp | WeiqunZhang/incflo | d72eb6e3c387704d06ceee686596337e5e9711d3 | [
"BSD-3-Clause"
] | null | null | null | src/diffusion/DiffusionEquation.cpp | WeiqunZhang/incflo | d72eb6e3c387704d06ceee686596337e5e9711d3 | [
"BSD-3-Clause"
] | null | null | null | #include <AMReX_EBFArrayBox.H>
#include <AMReX_EBMultiFabUtil.H>
#include <AMReX_MultiFabUtil.H>
#include <AMReX_ParmParse.H>
#include <AMReX_Vector.H>
#include <DiffusionEquation.H>
#include <diffusion_F.H>
#include <constants.H>
using namespace amrex;
//
// Constructor:
// We set up everything which doesn't change... | 35.871186 | 101 | 0.570214 | WeiqunZhang |
8623a3ff5ba52ff9debcee4a9db96c83d7db1876 | 9,490 | cpp | C++ | src/tree_gui.cpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/tree_gui.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/tree_gui.cpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 38.421053 | 185 | 0.73235 | trademarks |
86258eebb3c99580f3881ffb17ef995da777b01d | 515 | cc | C++ | snapgear_linux/lib/libccmalloc/test/test_C++_01.cc | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | null | null | null | snapgear_linux/lib/libccmalloc/test/test_C++_01.cc | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | null | null | null | snapgear_linux/lib/libccmalloc/test/test_C++_01.cc | impedimentToProgress/UCI-BlueChip | 53e5d48b79079eaf60d42f7cb65bb795743d19fc | [
"MIT"
] | 3 | 2016-06-13T13:20:56.000Z | 2019-12-05T02:31:23.000Z | extern "C" {
#include <string.h>
#include <stdlib.h>
#include <strings.h>
};
class Wrong
{
protected:
char * str;
public:
Wrong(const char * s)
{
strcpy(str = new char [ strlen(s) + 1 ], s);
}
};
class Right
:
public Wrong
{
public:
Right(const char * s) : Wrong(s) { }
~Right() { delete [] str... | 11.704545 | 48 | 0.578641 | impedimentToProgress |
8628075e4c6e8a0c045e8e24d135bb3e29866d3a | 15,184 | cpp | C++ | example-pix2pix/src/example-pix2pix.cpp | marcel303/ofxMSATensorFlow | 512a6e9a929e397c0bddf8bf86ea7521a22dd593 | [
"Apache-2.0"
] | 481 | 2016-01-28T22:05:07.000Z | 2022-03-07T23:29:10.000Z | example-pix2pix/src/example-pix2pix.cpp | marcel303/ofxMSATensorFlow | 512a6e9a929e397c0bddf8bf86ea7521a22dd593 | [
"Apache-2.0"
] | 37 | 2016-01-29T02:18:33.000Z | 2020-03-24T17:36:05.000Z | example-pix2pix/src/example-pix2pix.cpp | marcel303/ofxMSATensorFlow | 512a6e9a929e397c0bddf8bf86ea7521a22dd593 | [
"Apache-2.0"
] | 110 | 2016-01-29T14:00:39.000Z | 2020-11-22T14:20:56.000Z | /*
pix2pix (Image-to-Image Translation with Conditional Adversarial Nets).
An accessible explanation can be found [here](https://phillipi.github.io/pix2pix/) and [here](https://affinelayer.com/pix2pix/).
The network basically learns to map from one image to another.
E.g. in the example you draw in the left viewport,... | 33.892857 | 153 | 0.532205 | marcel303 |
862cc233b4dd498bdace193c9ae8429601c0efc4 | 3,425 | cpp | C++ | src/driver/denoiser/cublas.cpp | Skel0t/rodent | adb7df7d80e4b9c6f2fa3867b2e3eb2539f2ca12 | [
"MIT"
] | 1 | 2021-08-19T15:21:32.000Z | 2021-08-19T15:21:32.000Z | src/driver/denoiser/cublas.cpp | Skel0t/rodent | adb7df7d80e4b9c6f2fa3867b2e3eb2539f2ca12 | [
"MIT"
] | null | null | null | src/driver/denoiser/cublas.cpp | Skel0t/rodent | adb7df7d80e4b9c6f2fa3867b2e3eb2539f2ca12 | [
"MIT"
] | null | null | null | #include <cublas_v2.h>
#include <cublasLt.h>
#include <cuda_runtime.h>
extern "C" {
/* cublaslt supports row-major matrix multiplication. */
void cublaslt_S_gemm(const float* d_A, const float* d_B, float* d_C, int a_width, int a_height, int b_width, int device) {
cudaSetDevice(device);
cublasHa... | 42.283951 | 126 | 0.531095 | Skel0t |
862e02da65b63560136d7e691285e103424e7879 | 441 | cpp | C++ | Cpp-Snippets-09-sharedptr/main.cpp | LU-JIANGZHOU/Cpp-Snippets | 0b2e1ca26a0ffd79e25922c9d92104882cd415bd | [
"MIT"
] | null | null | null | Cpp-Snippets-09-sharedptr/main.cpp | LU-JIANGZHOU/Cpp-Snippets | 0b2e1ca26a0ffd79e25922c9d92104882cd415bd | [
"MIT"
] | null | null | null | Cpp-Snippets-09-sharedptr/main.cpp | LU-JIANGZHOU/Cpp-Snippets | 0b2e1ca26a0ffd79e25922c9d92104882cd415bd | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
using namespace std;
struct myBase
{
myBase() { cout << " myBase::myBase()\n"; }
~myBase() { cout << " myBase::~myBase()\n"; }
};
struct myDerived: public myBase
{
myDerived() { cout << " myDerived::myDerived()\n"; }
~myDerived() { cout << " myDerived::~... | 20.045455 | 60 | 0.598639 | LU-JIANGZHOU |
862e67cce956bdbf53de351457dbaa96d8846abb | 6,005 | cpp | C++ | src/homework_3.cpp | frankplus/Computer-Vision | f04c2bf2320fe8173f56dca2e92f810f68e6333e | [
"MIT"
] | 2 | 2020-07-10T10:37:06.000Z | 2020-07-10T11:14:22.000Z | src/homework_3.cpp | frankplus/Computer-Vision | f04c2bf2320fe8173f56dca2e92f810f68e6333e | [
"MIT"
] | null | null | null | src/homework_3.cpp | frankplus/Computer-Vision | f04c2bf2320fe8173f56dca2e92f810f68e6333e | [
"MIT"
] | null | null | null | #include "homework_3.h"
#include "utils.h"
#include "filter.h"
#include <iostream>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/core.hpp>
#include <opencv2/calib3d.hpp>
#include <string>
#include <vector>
using namespace std;
using namespace cv;
/**
* Generate histograms for the t... | 34.511494 | 132 | 0.702914 | frankplus |
8630b6c29bba3b682a3e450b591bdbe302c909be | 5,230 | hpp | C++ | include/mckl/algorithm/pmcmc.hpp | zhouyan/MCKL | 1d03eb5a879e47e268efc73b1d433611e64307b3 | [
"BSD-2-Clause"
] | 12 | 2016-08-02T17:01:13.000Z | 2021-03-04T12:11:33.000Z | include/mckl/algorithm/pmcmc.hpp | zhouyan/MCKL | 1d03eb5a879e47e268efc73b1d433611e64307b3 | [
"BSD-2-Clause"
] | 5 | 2017-05-09T12:05:06.000Z | 2021-03-16T10:39:23.000Z | include/mckl/algorithm/pmcmc.hpp | zhouyan/MCKL | 1d03eb5a879e47e268efc73b1d433611e64307b3 | [
"BSD-2-Clause"
] | 2 | 2016-08-25T13:10:29.000Z | 2019-05-01T01:54:29.000Z | //============================================================================
// MCKL/include/mckl/algorithm/pmcmc.hpp
//----------------------------------------------------------------------------
// MCKL: Monte Carlo Kernel Library
//----------------------------------------------------------------------------
// Cop... | 30.406977 | 79 | 0.609751 | zhouyan |
8632fce14439b4ec0bc65b9e066f77f71f17bd95 | 8,012 | cpp | C++ | sugus/detail/Conversion.cpp | tiropp/sugus | 21b25bd74abdae0b421613ad5ecae57d8c5869a1 | [
"MIT"
] | 1 | 2018-03-23T08:51:11.000Z | 2018-03-23T08:51:11.000Z | sugus/detail/Conversion.cpp | tiropp/sugus | 21b25bd74abdae0b421613ad5ecae57d8c5869a1 | [
"MIT"
] | null | null | null | sugus/detail/Conversion.cpp | tiropp/sugus | 21b25bd74abdae0b421613ad5ecae57d8c5869a1 | [
"MIT"
] | null | null | null | #include "Conversion.h"
// BOOST includes
#include <boost/foreach.hpp>
// OpcUa includes
#include <opcua_guid.h>
// Sugus includes
#include <sugus/Exceptions.h>
#include <sugus/EndpointContainer.h>
#include <sugus/Value.h>
#include <sugus/detail/EndpointContainer.h>
namespace Sugus {
namespace detail {
String
T... | 28.310954 | 94 | 0.68647 | tiropp |
8636bb9734559286a9631f649a9eef8dbbc07f16 | 262 | cpp | C++ | 17/if_switch_init/if_init.cpp | odiubankov/cpp_examples | 4107315778aebfc9c397fea0524a1ab6565abfde | [
"MIT"
] | null | null | null | 17/if_switch_init/if_init.cpp | odiubankov/cpp_examples | 4107315778aebfc9c397fea0524a1ab6565abfde | [
"MIT"
] | null | null | null | 17/if_switch_init/if_init.cpp | odiubankov/cpp_examples | 4107315778aebfc9c397fea0524a1ab6565abfde | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
bool true_case() { return true; }
TEST(if_init, test) {
bool bar = true;
if (const auto foo = true_case(); foo) {
bar = false;
} else {
bar = foo;
}
const auto foo = false;
ASSERT_FALSE(bar);
ASSERT_FALSE(foo);
}
| 16.375 | 42 | 0.603053 | odiubankov |
863979125d319560e2587911ed9ba15e982c97d7 | 2,308 | cpp | C++ | HookDll/Hook/HookLog.cpp | 211847750/iagd | 051635e3bf1b26d27315f19ae3a63e33a6f67f37 | [
"MIT"
] | null | null | null | HookDll/Hook/HookLog.cpp | 211847750/iagd | 051635e3bf1b26d27315f19ae3a63e33a6f67f37 | [
"MIT"
] | null | null | null | HookDll/Hook/HookLog.cpp | 211847750/iagd | 051635e3bf1b26d27315f19ae3a63e33a6f67f37 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "HookLog.h"
#include <filesystem>
#include <iostream>
#include <windows.h>
#include <shlobj.h>
std::wstring GetIagdFolder() {
PWSTR path_tmp;
auto get_folder_path_ret = SHGetKnownFolderPath(FOLDERID_RoamingAppData, 0, nullptr, &path_tmp);
if (get_folder_path_ret != S_OK) {
... | 25.086957 | 100 | 0.506066 | 211847750 |
863c7f7ac5b0322ab484ad68b6af27dc9a3286c2 | 171 | cc | C++ | CondFormats/DataRecord/src/CSCGainsRcd.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | CondFormats/DataRecord/src/CSCGainsRcd.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | CondFormats/DataRecord/src/CSCGainsRcd.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "CondFormats/DataRecord/interface/CSCGainsRcd.h"
#include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h"
EVENTSETUP_RECORD_REG(CSCGainsRcd);
| 34.2 | 75 | 0.865497 | ckamtsikis |
864386c9c52d25ed7e9ea5295551c429957210f0 | 1,817 | cpp | C++ | src/lib/problem.cpp | bunsanorg/bacs_archive | 2909b82e84259cc1441c5bc7f4bf87c2ec31548b | [
"Apache-2.0"
] | null | null | null | src/lib/problem.cpp | bunsanorg/bacs_archive | 2909b82e84259cc1441c5bc7f4bf87c2ec31548b | [
"Apache-2.0"
] | null | null | null | src/lib/problem.cpp | bunsanorg/bacs_archive | 2909b82e84259cc1441c5bc7f4bf87c2ec31548b | [
"Apache-2.0"
] | null | null | null | #include <bacs/archive/problem.hpp>
#include <bacs/archive/error.hpp>
#include <bunsan/pm/entry.hpp>
namespace bacs {
namespace archive {
namespace problem {
const std::string &flag_cast(const problem::Flag &flag) {
switch (flag.flag_case()) {
case Flag::kReserved:
return flag_cast(flag.reserved());
... | 23 | 75 | 0.698404 | bunsanorg |
8643f1dc9391398c5cb0d61cc5726fa78ef3c89c | 386 | hpp | C++ | FootSoldier.hpp | Dolev/WarGame | 0c51c62432e059483275ec916c16c411f40e9116 | [
"MIT"
] | null | null | null | FootSoldier.hpp | Dolev/WarGame | 0c51c62432e059483275ec916c16c411f40e9116 | [
"MIT"
] | null | null | null | FootSoldier.hpp | Dolev/WarGame | 0c51c62432e059483275ec916c16c411f40e9116 | [
"MIT"
] | null | null | null | #include "Soldier.hpp"
class FootSoldier: public Soldier{
protected:
//char letter=FS;
/* Direction Options:
Up, Down, Right, Left
FootSoldier Up();
FootSoldier Down();
FootSoldier Left();
FootSoldier Right();
*/
public:
FootSoldier();
... | 19.3 | 41 | 0.551813 | Dolev |
8645c70f3190470a98aaefd07c76e2a1070df7db | 2,946 | cpp | C++ | lib/src/tinytmxUtil.cpp | KaseyJenkins/tinytmx | b7ab2927dfe2e70459c55af991b3c1013d335fd5 | [
"BSD-2-Clause"
] | 2 | 2022-01-10T07:53:48.000Z | 2022-03-22T11:25:50.000Z | lib/src/tinytmxUtil.cpp | KaseyJenkins/tinytmx | b7ab2927dfe2e70459c55af991b3c1013d335fd5 | [
"BSD-2-Clause"
] | null | null | null | lib/src/tinytmxUtil.cpp | KaseyJenkins/tinytmx | b7ab2927dfe2e70459c55af991b3c1013d335fd5 | [
"BSD-2-Clause"
] | null | null | null | #include <cstdlib>
#include <algorithm>
#include <cctype>
#ifdef USE_MINIZ
#include "miniz.h"
#else
#include "zlib.h"
#endif
#include "tinytmxUtil.hpp"
#include "base64.h"
namespace tinytmx {
// trim from start (in place)
static inline void ltrim(std::string &s) {
s.erase(s.begin(), std::find_if(s... | 22.837209 | 92 | 0.491174 | KaseyJenkins |
86467b46799ce180ecaf4aeb72290b54e5e1e952 | 912 | cpp | C++ | source/jz19.cpp | loganautomata/leetcode | 5a626c91f271bae231328c92a3be23eba227f66e | [
"MIT"
] | null | null | null | source/jz19.cpp | loganautomata/leetcode | 5a626c91f271bae231328c92a3be23eba227f66e | [
"MIT"
] | null | null | null | source/jz19.cpp | loganautomata/leetcode | 5a626c91f271bae231328c92a3be23eba227f66e | [
"MIT"
] | null | null | null | #include "jz19.h"
using namespace std;
bool Jz19::isMatch(string s, string p)
{
vector<vector<bool>> dp(s.size() + 1, vector<bool>(p.size() + 1, false)); // 二维动态规划数组
// 初始状态
dp[0][0] = true;
for (int i = 2; i < dp[0].size(); i += 2)
{
dp[0][i] = dp[0][i - 2] && p[i - 1] == '*';
}
... | 22.8 | 96 | 0.294956 | loganautomata |
8646b4006ece47b569d999da6f3239cadf24a9aa | 163 | cc | C++ | build/x86/python/m5/internal/param_L1Cache_Controller.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/param_L1Cache_Controller.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/param_L1Cache_Controller.i_init.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_L1Cache_Controller();
}
EmbeddedSwig embed_swig_param_L1Cache_Controller(init_param_L1Cache_Controller);
| 20.375 | 80 | 0.809816 | billionshang |
8647b795aa5fc6660147adea333b404ef6542304 | 3,759 | cpp | C++ | mod08/ex01/main.cpp | paozer/piscine_cpp | 449d4a60b3c50c7ba6d94e38a7b632b5f447a438 | [
"Unlicense"
] | null | null | null | mod08/ex01/main.cpp | paozer/piscine_cpp | 449d4a60b3c50c7ba6d94e38a7b632b5f447a438 | [
"Unlicense"
] | null | null | null | mod08/ex01/main.cpp | paozer/piscine_cpp | 449d4a60b3c50c7ba6d94e38a7b632b5f447a438 | [
"Unlicense"
] | 2 | 2021-01-31T13:52:11.000Z | 2021-05-19T18:36:17.000Z | #include "Span.hpp"
template <typename Iterator>
void print_iterator(Iterator it, Iterator et)
{
for (; it != et; ++it)
std::cout << *it << ",";
std::cout << std::endl;
}
int main()
{
{
std::cout << "SUBJECTS MAIN" << std::endl;
Span sp = Span(5);
sp.addNumber(5);
s... | 31.855932 | 89 | 0.459963 | paozer |
864a2ef456d7ca1e000c03d5e76b1b619e38aa88 | 688 | cpp | C++ | data_structure_problems/my_solutions/04/04.cpp | luispozas/PROGRAMAS_RESOLUCION_DE_PROBLEMAS_CON_SOLUCIONES | 7bf6a3a361910e041d72f454b6037026ea019b90 | [
"MIT"
] | 1 | 2019-06-19T17:21:46.000Z | 2019-06-19T17:21:46.000Z | data_structure_problems/my_solutions/04/04.cpp | luispozas/PROGRAMAS_RESOLUCION_DE_PROBLEMAS_CON_SOLUCIONES | 7bf6a3a361910e041d72f454b6037026ea019b90 | [
"MIT"
] | null | null | null | data_structure_problems/my_solutions/04/04.cpp | luispozas/PROGRAMAS_RESOLUCION_DE_PROBLEMAS_CON_SOLUCIONES | 7bf6a3a361910e041d72f454b6037026ea019b90 | [
"MIT"
] | 1 | 2020-06-03T14:56:52.000Z | 2020-06-03T14:56:52.000Z | //LUIS POZAS PALOMO - EDA - 04
#include <iostream>
#include <vector>
#include <fstream>
using namespace std;
#include "polinomio.h"
#include "monomio.h"
bool resuelveCaso() {
int c, e, numVal;
polinomio pol;
vector <int> V;
if(!(cin >> c >> e)) return false;
while (c != 0 || e != 0) {
monomio m(c, e);
pol.... | 16.780488 | 72 | 0.579942 | luispozas |
864a3d443cf0689dbcbaefe0576b602c539826ae | 15,993 | cpp | C++ | qt-4.8.4/src/opengl/qgl_egl.cpp | easion/qt_for_gix | f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8 | [
"Apache-2.0"
] | null | null | null | qt-4.8.4/src/opengl/qgl_egl.cpp | easion/qt_for_gix | f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8 | [
"Apache-2.0"
] | null | null | null | qt-4.8.4/src/opengl/qgl_egl.cpp | easion/qt_for_gix | f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtOpenGL module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** License... | 39.9825 | 100 | 0.650847 | easion |
864aab9a148d99136df45d7af2b4b6ff26854266 | 5,001 | cpp | C++ | src/ripple_data/protocol/FieldNames.cpp | Ziftr/stellard | 626514cbbb2c6c2b6844315ca98a2bfcbca0b43d | [
"BSL-1.0"
] | 58 | 2015-01-07T09:10:59.000Z | 2019-07-15T14:34:01.000Z | src/ripple_data/protocol/FieldNames.cpp | Ziftr/stellard | 626514cbbb2c6c2b6844315ca98a2bfcbca0b43d | [
"BSL-1.0"
] | 12 | 2015-01-02T00:01:45.000Z | 2018-04-25T12:35:02.000Z | src/ripple_data/protocol/FieldNames.cpp | Ziftr/stellard | 626514cbbb2c6c2b6844315ca98a2bfcbca0b43d | [
"BSL-1.0"
] | 23 | 2015-01-04T00:13:27.000Z | 2019-02-15T18:01:17.000Z | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... | 30.493902 | 115 | 0.647471 | Ziftr |
864d6aa4f31ca97ea85e61123781207a80fbb786 | 1,903 | hpp | C++ | caffe/include/caffe/layers/point_transformer_layer.hpp | shaoxiaohu/Face-Alignment-with-Two-Stage-Re-initialization- | ccd26fee4dd0b6cd0d11de4d5b4d2d746e8cc66b | [
"MIT"
] | 92 | 2017-07-19T05:12:05.000Z | 2021-11-09T07:59:07.000Z | caffe/include/caffe/layers/point_transformer_layer.hpp | mornydew/Face_Alignment_Two_Stage_Re-initialization | ccd26fee4dd0b6cd0d11de4d5b4d2d746e8cc66b | [
"MIT"
] | 11 | 2017-10-18T05:11:20.000Z | 2020-04-03T21:28:20.000Z | caffe/include/caffe/layers/point_transformer_layer.hpp | mornydew/Face_Alignment_Two_Stage_Re-initialization | ccd26fee4dd0b6cd0d11de4d5b4d2d746e8cc66b | [
"MIT"
] | 31 | 2017-07-20T11:37:39.000Z | 2021-03-08T09:01:26.000Z | #ifndef CAFFE_POINT_TRANSFORMER_LAYERHPP_
#define CAFFE_POINT_TRANSFORMER_LAYERHPP_
#include <string>
#include <utility>
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/data_transformer.hpp"
#include "caffe/internal_thread.hpp"
#include "caffe/layer.hpp"
#include "caffe/layers/base_data_layer.hpp"
#includ... | 32.810345 | 102 | 0.728849 | shaoxiaohu |
8657fc4b6b5ad2d30f1e0c36e84b42383131cc4e | 7,077 | cc | C++ | services/data_decoder/public/cpp/decode_image.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | services/data_decoder/public/cpp/decode_image.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | services/data_decoder/public/cpp/decode_image.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/data_decoder/public/cpp/decode_image.h"
#include <utility>
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/d... | 43.417178 | 80 | 0.661438 | zealoussnow |
865a37e14172e95004d5af18c4348c90bea0b192 | 3,703 | cpp | C++ | Source/Projects/GoddamnGraphics/GoddamnGraphicsVulkan/Source/GoddamnEngine/GraphicsVulkan/GraphicsVulkanWindows.cpp | GoddamnIndustries/GoddamnEngine | 018c6582f6a2ebcba2c59693c677744434d66b20 | [
"MIT"
] | 4 | 2015-07-05T16:46:12.000Z | 2021-02-04T09:32:47.000Z | Source/Projects/GoddamnGraphics/GoddamnGraphicsVulkan/Source/GoddamnEngine/GraphicsVulkan/GraphicsVulkanWindows.cpp | GoddamnIndustries/GoddamnEngine | 018c6582f6a2ebcba2c59693c677744434d66b20 | [
"MIT"
] | null | null | null | Source/Projects/GoddamnGraphics/GoddamnGraphicsVulkan/Source/GoddamnEngine/GraphicsVulkan/GraphicsVulkanWindows.cpp | GoddamnIndustries/GoddamnEngine | 018c6582f6a2ebcba2c59693c677744434d66b20 | [
"MIT"
] | 1 | 2017-01-27T22:49:12.000Z | 2017-01-27T22:49:12.000Z | // ==========================================================================================
// Copyright (C) Goddamn Industries 2015. All Rights Reserved.
//
// This software or any its part is distributed under terms of Goddamn Industries End User
// License Agreement. By downloading or using this software or any i... | 39.817204 | 158 | 0.649743 | GoddamnIndustries |
865ba5b4c35a1e94594e02ff53e029cf581772dd | 11,597 | cc | C++ | chrome/browser/chromeos/input_method/input_method_engine.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | chrome/browser/chromeos/input_method/input_method_engine.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/input_method/input_method_engine.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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 "chrome/browser/chromeos/input_method/input_method_engine.h"
#include <memory>
#include <utility>
#undef FocusIn
#undef FocusOut
#undef RootWin... | 33.909357 | 79 | 0.717427 | xzhan96 |
865ced23c38df56f37d80cd8673372031c1aaaad | 916 | cpp | C++ | pellets/harold/harold_server_request_api.cpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | pellets/harold/harold_server_request_api.cpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 1 | 2015-05-26T07:40:19.000Z | 2015-05-26T07:40:19.000Z | pellets/harold/harold_server_request_api.cpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | #include "harold_server_request_api.h"
int HaroldServerRequestApi::OnRequest(struct mg_connection *conn)
{
if (conn->uri)
{
std::string sUri(conn->uri);
std::map<std::string, HaroldServerRequestApiFunc>::iterator it = m_mapApiList.find(sUri);
if (it != m_mapApiList.end())
{
... | 22.9 | 97 | 0.612445 | wohaaitinciu |
8661628444d42bad716d097bf25835e95407d4d9 | 3,167 | cpp | C++ | utils.cpp | superblocks/superblocks | 920dc78c2dfb4b3cbc5f0f316c1db82e76d083cc | [
"Unlicense"
] | 3 | 2018-09-09T10:05:38.000Z | 2020-11-06T02:11:46.000Z | utils.cpp | superblocks/superblocks | 920dc78c2dfb4b3cbc5f0f316c1db82e76d083cc | [
"Unlicense"
] | null | null | null | utils.cpp | superblocks/superblocks | 920dc78c2dfb4b3cbc5f0f316c1db82e76d083cc | [
"Unlicense"
] | null | null | null | // utils.cpp
// Superblocks - Version 0.4.3
#include "superblocks.hpp"
void Superblocks::timer_start()
{
cstart = clock();
}
float Superblocks::timer_end()
{
cend = clock() - cstart;
return (double)cend / ((double)CLOCKS_PER_SEC);
}
long Superblocks::gethashcutout( int step, const char* hash )
{
if( debug ) ... | 33.336842 | 92 | 0.499526 | superblocks |
86622f15051a83730441d97c719ffce266b272c3 | 4,568 | cpp | C++ | src/type3_AndroidCloud/anbox-master/external/android-emugl/shared/emugl/common/shared_library.cpp | akraino-edge-stack/iec | b01bce6165ef8368a607e17e1f3d4697b79db31b | [
"Apache-2.0"
] | null | null | null | src/type3_AndroidCloud/anbox-master/external/android-emugl/shared/emugl/common/shared_library.cpp | akraino-edge-stack/iec | b01bce6165ef8368a607e17e1f3d4697b79db31b | [
"Apache-2.0"
] | null | null | null | src/type3_AndroidCloud/anbox-master/external/android-emugl/shared/emugl/common/shared_library.cpp | akraino-edge-stack/iec | b01bce6165ef8368a607e17e1f3d4697b79db31b | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2014 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 applicable ... | 26.870588 | 75 | 0.611208 | akraino-edge-stack |
8664ce1e29abacadb672d9a3ff9abee20664f8a2 | 4,194 | cc | C++ | authpolicy/stub_klist_main.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | authpolicy/stub_klist_main.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | authpolicy/stub_klist_main.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Stub implementation of klist. Simply returns fixed responses to predefined
// input.
#include <string>
#include <base/check.h>
#include <base/file... | 33.822581 | 80 | 0.696471 | Toromino |
866951790007f866e2b473c353770ca3229cd397 | 11,156 | cpp | C++ | tree_classifier.cpp | zakimjz/TreeGen | b32ecf81bcb94eb65dcbe4ebb5f2e92f8df4489b | [
"Apache-2.0"
] | 2 | 2020-08-05T02:06:06.000Z | 2021-09-06T20:04:18.000Z | tree_classifier.cpp | zakimjz/TreeGen | b32ecf81bcb94eb65dcbe4ebb5f2e92f8df4489b | [
"Apache-2.0"
] | null | null | null | tree_classifier.cpp | zakimjz/TreeGen | b32ecf81bcb94eb65dcbe4ebb5f2e92f8df4489b | [
"Apache-2.0"
] | null | null | null | //USAGE: a.out <pattern_file> <data_file>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <strstream>
#include <iterator>
#include <vector>
#include <stack>
#include <algorithm>
//#include <algo.h>
//#include <cstdlib>
#include <ext/numeric>
#include <unistd.h>
#include "dist.h"
... | 25.297052 | 82 | 0.544909 | zakimjz |
866de3a8c64dc4d79bdfe21bc61a547ba9b7638f | 4,820 | cpp | C++ | src/util/Segmentation.cpp | je310/Card1 | 736671104e46aaf89ddf41cd825d6be24297a464 | [
"BSD-3-Clause"
] | 141 | 2015-02-20T18:44:53.000Z | 2022-01-06T09:33:05.000Z | src/util/Segmentation.cpp | je310/Card1 | 736671104e46aaf89ddf41cd825d6be24297a464 | [
"BSD-3-Clause"
] | 29 | 2015-02-23T10:05:10.000Z | 2019-04-25T03:55:09.000Z | src/util/Segmentation.cpp | je310/Card1 | 736671104e46aaf89ddf41cd825d6be24297a464 | [
"BSD-3-Clause"
] | 54 | 2015-02-23T00:22:53.000Z | 2022-01-06T09:33:07.000Z | /*
* This file is part of the CN24 semantic segmentation software,
* copyright (C) 2015 Clemens-Alexander Brust (ikosa dot de at gmail dot com).
*
* For licensing information, see the LICENSE file included with this project.
*/
#include <cstring>
#include <cmath>
#include "Segmentation.h"
#include <cstdlib>
n... | 32.348993 | 89 | 0.553734 | je310 |
866e51c742ac5e876ff5cc82e46a96e2445086e8 | 11,764 | cpp | C++ | src/trans.cpp | Elaina-Alex/kepub | 306ecfacf01680d0baaed7505d74baa7cc8c41d3 | [
"MIT"
] | null | null | null | src/trans.cpp | Elaina-Alex/kepub | 306ecfacf01680d0baaed7505d74baa7cc8c41d3 | [
"MIT"
] | null | null | null | src/trans.cpp | Elaina-Alex/kepub | 306ecfacf01680d0baaed7505d74baa7cc8c41d3 | [
"MIT"
] | null | null | null | #include "trans.h"
#include <klib/unicode.h>
#include <klib/util.h>
#include <opencc.h>
#include <parallel_hashmap/phmap.h>
#include <boost/algorithm/string.hpp>
extern char tw2s[];
extern int tw2s_size;
extern char TSPhrases[];
extern int TSPhrases_size;
extern char TWVariantsRevPhrases[];
extern int TWVariantsRev... | 27.294664 | 88 | 0.378018 | Elaina-Alex |
866f9328f465d7491bea0d176dfd120ff44f12c5 | 1,508 | cpp | C++ | clove/source/Rendering/Camera.cpp | AGarlicMonkey/Garlic | 4f439b789b7db9fc7b2c104705f259c318be62fd | [
"MIT"
] | 33 | 2020-01-09T04:57:29.000Z | 2021-08-14T08:02:43.000Z | clove/source/Rendering/Camera.cpp | AGarlicMonkey/Garlic | 4f439b789b7db9fc7b2c104705f259c318be62fd | [
"MIT"
] | 234 | 2019-10-25T06:04:35.000Z | 2021-08-18T05:47:41.000Z | clove/source/Rendering/Camera.cpp | AGarlicMonkey/Garlic | 4f439b789b7db9fc7b2c104705f259c318be62fd | [
"MIT"
] | 4 | 2020-02-11T15:28:42.000Z | 2020-09-07T16:22:58.000Z | #include "Clove/Rendering/Camera.hpp"
#include "Clove/Rendering/RenderingLog.hpp"
#include <Clove/Maths/MathsHelpers.hpp>
namespace clove {
Camera::Camera(Viewport viewport, ProjectionMode const projection)
: viewport{ viewport }
, currentProjectionMode{ projection } {
setProjectionMode(p... | 38.666667 | 129 | 0.653183 | AGarlicMonkey |
86709fecc85b33aec022a9d2e635e3bc93618c6c | 867 | cpp | C++ | SYCL/Config/config.cpp | gmlueck/llvm-test-suite | 7ff842b8fec970561fed78c9347e496538cf74f5 | [
"Apache-2.0"
] | 10 | 2020-08-04T04:29:03.000Z | 2022-02-23T21:43:56.000Z | SYCL/Config/config.cpp | gmlueck/llvm-test-suite | 7ff842b8fec970561fed78c9347e496538cf74f5 | [
"Apache-2.0"
] | 519 | 2020-09-15T07:40:51.000Z | 2022-03-31T20:51:15.000Z | SYCL/Config/config.cpp | gmlueck/llvm-test-suite | 7ff842b8fec970561fed78c9347e496538cf74f5 | [
"Apache-2.0"
] | 117 | 2020-06-24T13:11:04.000Z | 2022-03-23T15:44:23.000Z | //==---- config.cpp --------------------------------------------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 32.111111 | 80 | 0.5594 | gmlueck |
86717848f86fed9f788afce3d1cf199e02dad018 | 1,965 | cxx | C++ | src/tamgufraction.cxx | naver/tamgu | 9532edc82aa90f7610dbd98dc379e0631de4b252 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 192 | 2019-07-10T15:47:11.000Z | 2022-03-10T09:26:31.000Z | src/tamgufraction.cxx | naver/tamgu | 9532edc82aa90f7610dbd98dc379e0631de4b252 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 5 | 2019-10-01T13:17:28.000Z | 2021-01-05T15:31:39.000Z | src/tamgufraction.cxx | naver/tamgu | 9532edc82aa90f7610dbd98dc379e0631de4b252 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 14 | 2019-09-23T03:39:59.000Z | 2021-09-02T12:20:14.000Z | /*
* Tamgu (탐구)
*
* Copyright 2019-present NAVER Corp.
* under BSD 3-clause
*/
/* --- CONTENTS ---
Project : Tamgu (탐구)
Version : See tamgu.cxx for the version number
filename : tamgufraction.cxx
Date : 2017/09/01
Purpose :
Programmer : Claude ROUX (claude.roux@naverlabs.com)
Reviewer :... | 32.213115 | 135 | 0.717048 | naver |
8671f5b698a2ed5a315728d966df1a15bb486d40 | 35,579 | cpp | C++ | src/ListViewDelegate.cpp | BlueDragon28/GameSorting | aef3604038b3084c26c0d4430f81c05a83c0f5de | [
"MIT"
] | null | null | null | src/ListViewDelegate.cpp | BlueDragon28/GameSorting | aef3604038b3084c26c0d4430f81c05a83c0f5de | [
"MIT"
] | null | null | null | src/ListViewDelegate.cpp | BlueDragon28/GameSorting | aef3604038b3084c26c0d4430f81c05a83c0f5de | [
"MIT"
] | null | null | null | /*
* MIT Licence
*
* This file is part of the GameSorting
*
* Copyright © 2022 Erwan Saclier de la Bâtie (BlueDragon28)
*
* 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, in... | 27.644911 | 159 | 0.6632 | BlueDragon28 |
8672fb62615b4a3e3f2502d37e8c9d25348d19ca | 561 | cpp | C++ | Shape Class/rectangle.cpp | tj-dunham/CS1C_Project | 2c8f329a67a142c2ee2f7426047f0c3f51656169 | [
"MIT"
] | 1 | 2021-09-22T20:38:14.000Z | 2021-09-22T20:38:14.000Z | Shape Class/rectangle.cpp | korieliaz/2D-Graphics-Modeler | 2c8f329a67a142c2ee2f7426047f0c3f51656169 | [
"MIT"
] | null | null | null | Shape Class/rectangle.cpp | korieliaz/2D-Graphics-Modeler | 2c8f329a67a142c2ee2f7426047f0c3f51656169 | [
"MIT"
] | null | null | null | #include "rectangle.h"
void Rectangle::draw()
{
painter.setPen(pen);
painter.setBrush(brush);
painter.drawRect(position.x(), position.y(), shapeDimensions[int(Specifications::W)], shapeDimensions[int(Specifications::H)]);
painter.drawText(position.x(), position.y(), 20, 20, Qt::AlignLeft, QStrin... | 28.05 | 132 | 0.682709 | tj-dunham |
8672fbac0fe52cf8e77e1f91b680578eed55d849 | 7,544 | cpp | C++ | lista2.cpp | EDAII/Lista2_LucasM_TiagoM | 34e05af5e413822b618e3106b4b17569bd3552cb | [
"MIT"
] | null | null | null | lista2.cpp | EDAII/Lista2_LucasM_TiagoM | 34e05af5e413822b618e3106b4b17569bd3552cb | [
"MIT"
] | null | null | null | lista2.cpp | EDAII/Lista2_LucasM_TiagoM | 34e05af5e413822b618e3106b4b17569bd3552cb | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
class Pessoa{
public:
int Idade;
string Nome;
string CPF;
double Peso;
double Altura;
string Estado_Civil;
string Endereco;
string Nacionalidade;
string Escolaridade;
double Renda;
... | 22.722892 | 83 | 0.503446 | EDAII |
86738ebc0b81dd3072f5753cd79f650e556d3b2a | 4,259 | cpp | C++ | code/scripting/api/objs/event.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 307 | 2015-04-10T13:27:32.000Z | 2022-03-21T03:30:38.000Z | code/scripting/api/objs/event.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 2,231 | 2015-04-27T10:47:35.000Z | 2022-03-31T19:22:37.000Z | code/scripting/api/objs/event.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 282 | 2015-01-05T12:16:57.000Z | 2022-03-28T04:45:11.000Z |
#include "event.h"
#include "scripting/ade_args.h"
#include "scripting/ade.h"
#include "mission/missiongoals.h"
namespace scripting {
namespace api {
//**********HANDLE: event
ADE_OBJ(l_Event, int, "event", "Mission event handle");
ADE_VIRTVAR(Name, l_Event, "string", "Mission event name", "string", NULL)
{
int id... | 24.337143 | 158 | 0.663066 | trgswe |
8674954e5e0660fe3628659d0f7adf8ebac6c008 | 7,110 | cpp | C++ | ROF_Engine/ModuleResourceManager.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | ROF_Engine/ModuleResourceManager.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | ROF_Engine/ModuleResourceManager.cpp | RogerOlasz/ROF_Engine | 5c379ab51da85148a135863c8e01c4aa9f06701b | [
"MIT"
] | null | null | null | #include "ModuleResourceManager.h"
#include "Application.h"
#include "ModuleFileSystem.h"
#include "ModuleSceneImporter.h"
#include "Globals.h"
#include "XMLUtilities.h"
#include "ResourceMesh.h"
#include "ResourceTexture.h"
#include "ResourceMaterial.h"
#include "MeshLoader.h"
#include "TextureLoader.h"
#include "Ma... | 24.773519 | 150 | 0.697468 | RogerOlasz |
86751774ee16587ad9db173108fa1bb19ec90bde | 2,653 | hpp | C++ | integration/vertex/VertexBuffer.hpp | DomRe/3DRenderer | a43230704889e03206638f6bb74509541a610677 | [
"MIT"
] | 19 | 2020-02-02T16:36:46.000Z | 2021-12-25T07:02:28.000Z | integration/vertex/VertexBuffer.hpp | DomRe/3DRenderer | a43230704889e03206638f6bb74509541a610677 | [
"MIT"
] | 103 | 2020-10-13T09:03:42.000Z | 2022-03-26T03:41:50.000Z | integration/vertex/VertexBuffer.hpp | DomRe/3DRenderer | a43230704889e03206638f6bb74509541a610677 | [
"MIT"
] | 5 | 2020-03-13T06:14:37.000Z | 2021-12-12T02:13:46.000Z | ///
/// VertexBuffer.hpp
/// galaxy
///
/// Refer to LICENSE.txt for more details.
///
#ifndef GALAXY_GRAPHICS_VERTEX_VERTEXBUFFER_HPP_
#define GALAXY_GRAPHICS_VERTEX_VERTEXBUFFER_HPP_
#include <vector>
#include "galaxy/graphics/vertex/Layout.hpp"
namespace galaxy
{
namespace graphics
{
///
/// Abstraction fo... | 20.098485 | 97 | 0.641915 | DomRe |
867fbf8e30dc2ac9b25fae3022edd56315525db1 | 528 | cpp | C++ | src/Delta.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 4 | 2017-04-13T02:11:15.000Z | 2021-11-29T18:04:16.000Z | src/Delta.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 27 | 2018-01-15T08:37:38.000Z | 2018-04-26T13:01:58.000Z | src/Delta.cpp | mironec/yoshiko | 5fe02c9f0be3462959b334e1197ca9e6ea27345d | [
"MIT"
] | 3 | 2017-07-24T13:13:28.000Z | 2019-04-10T19:09:56.000Z | #include "Delta.h"
using namespace std;
namespace ysk {
double Delta::getValue(const WorkingCopyGraph::Node &node) {
if(node == _u)
return _deltaU;
else if(node == _v)
return _deltaV;
else {
cerr << "Fatal error: class Delta: trying to get value of non-end-node!"<<endl;
exit(-1);
}
}
void De... | 18.206897 | 83 | 0.657197 | mironec |
8680a24b748fb40ccdceb5e5421d7e62170e6a98 | 12,823 | cc | C++ | gui/factory_edit.cc | makkrnic/simutrans-extended | 8afbbce5b88c79bfea1760cf6c7662d020757b6a | [
"Artistic-1.0"
] | null | null | null | gui/factory_edit.cc | makkrnic/simutrans-extended | 8afbbce5b88c79bfea1760cf6c7662d020757b6a | [
"Artistic-1.0"
] | null | null | null | gui/factory_edit.cc | makkrnic/simutrans-extended | 8afbbce5b88c79bfea1760cf6c7662d020757b6a | [
"Artistic-1.0"
] | null | null | null | /*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include <stdio.h>
#include "../simworld.h"
#include "../simtool.h"
#include "../bauer/fabrikbauer.h"
#include "../descriptor/ground_desc.h"
#include "../descriptor/intro_dates.h"
#include "../descriptor/f... | 34.194667 | 147 | 0.697575 | makkrnic |
8683f710f55766b44e37fff71e3d0d8089765303 | 283 | cpp | C++ | Libs/Core/CMake/TestBFD/TestBFD.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Libs/Core/CMake/TestBFD/TestBFD.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Libs/Core/CMake/TestBFD/TestBFD.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z |
#include <bfd.h>
// STD includes
#include <cstdlib>
int main(int /*argc*/, char * /*argv*/[])
{
bfd *abfd = 0;
asymbol *symbol = 0;
asection *p = 0;
bfd_init();
abfd = bfd_openr("/path/to/library", 0);
if (!abfd)
{
return false;
}
return EXIT_SUCCESS;
}
| 14.15 | 42 | 0.565371 | kraehlit |
8684b76d0a860b39501166e9f945562b6dd8a0bf | 434 | cpp | C++ | ctci/1.1.cpp | liddiard/interview-practice | ec98a68b57114cb7c05c1a6ffb7eb641a39bb00f | [
"MIT"
] | null | null | null | ctci/1.1.cpp | liddiard/interview-practice | ec98a68b57114cb7c05c1a6ffb7eb641a39bb00f | [
"MIT"
] | null | null | null | ctci/1.1.cpp | liddiard/interview-practice | ec98a68b57114cb7c05c1a6ffb7eb641a39bb00f | [
"MIT"
] | null | null | null | #include <iostream>
#include <unordered_map>
#include <string>
using namespace std;
bool uniqueChars(string str) {
unordered_map <char, bool> chars;
for (int i = 0; i < str.size(); i++) {
if (chars[str[i]]) return false;
else chars[str[i]] = true;
}
return true;
}
int main() {
cout << uniqueChars("a... | 19.727273 | 40 | 0.619816 | liddiard |
8686f16b3037c6e5c0c5aafef671e253d3daad02 | 1,428 | cpp | C++ | src/Shared/Core/Maths/FCRandom.cpp | mslinklater/FC | d00e2e56a982cd7c85c7de18ac0449bf43d8025e | [
"MIT"
] | null | null | null | src/Shared/Core/Maths/FCRandom.cpp | mslinklater/FC | d00e2e56a982cd7c85c7de18ac0449bf43d8025e | [
"MIT"
] | null | null | null | src/Shared/Core/Maths/FCRandom.cpp | mslinklater/FC | d00e2e56a982cd7c85c7de18ac0449bf43d8025e | [
"MIT"
] | 2 | 2015-04-13T10:07:14.000Z | 2019-05-16T11:14:18.000Z | /*
Copyright (C) 2011-2012 by Martin Linklater
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, merge, publi... | 31.733333 | 78 | 0.740896 | mslinklater |
868a14748cabc408c580a91d5a788f54d35110a0 | 2,716 | cc | C++ | onnxruntime/core/codegen/mti/nn/pool_ops.cc | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 6,036 | 2019-05-07T06:03:57.000Z | 2022-03-31T17:59:54.000Z | onnxruntime/core/codegen/mti/nn/pool_ops.cc | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 5,730 | 2019-05-06T23:04:55.000Z | 2022-03-31T23:55:56.000Z | onnxruntime/core/codegen/mti/nn/pool_ops.cc | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 1,566 | 2019-05-07T01:30:07.000Z | 2022-03-31T17:06:50.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/codegen/mti/nn/pool_ops.h"
#include "core/codegen/mti/mti_tvm_utils.h"
#include "core/mlas/inc/mlas.h"
#include "core/providers/cpu/nn/pool_attributes.h"
#include <topi/nn/pooling.h>
namespace onnxruntime {... | 42.4375 | 95 | 0.527982 | dennyac |
868cf8dece34d72c91d5abad82e25e2c85e97183 | 1,041 | cc | C++ | examples/master/packages/popc/model/probobj.cc | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | null | null | null | examples/master/packages/popc/model/probobj.cc | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | 1 | 2021-03-22T17:12:51.000Z | 2021-03-22T17:12:51.000Z | examples/master/packages/popc/model/probobj.cc | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <assert.h>
#include "probobj.ph"
ProbObj::ProbObj()
{
count=0;
savedcounter=0;
}
ProbObj::~ProbObj()
{
POSITION pos=nexts.GetHeadPosition();
while (pos!=NULL)
{
ProbObj *tmp=nexts.GetNext(pos);
delete tmp;
}
}
void ProbObj::Exec()
{
bool cansolve;
mutex {
if (count<savedcou... | 13.519481 | 49 | 0.668588 | GaretJax |
8690218b1a87e8a4e216a53884359447a83a545a | 2,917 | cpp | C++ | src/libs/cosinesimilarity.cpp | ronaldpereira/collaborative-filtering-movie-recommendation | 0ecdd5f531a677540c0047c09d300d81c85dc821 | [
"MIT"
] | null | null | null | src/libs/cosinesimilarity.cpp | ronaldpereira/collaborative-filtering-movie-recommendation | 0ecdd5f531a677540c0047c09d300d81c85dc821 | [
"MIT"
] | null | null | null | src/libs/cosinesimilarity.cpp | ronaldpereira/collaborative-filtering-movie-recommendation | 0ecdd5f531a677540c0047c09d300d81c85dc821 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <map>
#include <unordered_map>
#include "cosinesimilarity.hpp"
#include "itemuser.hpp"
std::unordered_map<int, double> CosineSimilarity::getKNearestNeighbors(std::unordered_map<int, double> *similarities, int kNearestNeighbors)
{
std::vector<std::... | 37.397436 | 207 | 0.633528 | ronaldpereira |
8693a644202e6204a6e92a04701c79aa92c3e70f | 4,256 | hpp | C++ | src/trie.hpp | AjReme/1C-screening-task | 8b44545328dfe45d5e35e2c83a5722db41593cd4 | [
"CC0-1.0"
] | null | null | null | src/trie.hpp | AjReme/1C-screening-task | 8b44545328dfe45d5e35e2c83a5722db41593cd4 | [
"CC0-1.0"
] | null | null | null | src/trie.hpp | AjReme/1C-screening-task | 8b44545328dfe45d5e35e2c83a5722db41593cd4 | [
"CC0-1.0"
] | null | null | null | #include <vector>
#include <iterator>
#include <algorithm>
namespace data_structure {
template <size_t min_key, size_t max_key, class value>
class trie {
private:
static const size_t _block_size = max_key - min_key + 1;
struct node_t {
value val;
bool is_leaf;
size_t in_route = 0;
std::vector<no... | 22.638298 | 76 | 0.603383 | AjReme |
8694d733b93aa352a8a836b80008497ff13ef2a4 | 1,363 | cpp | C++ | src/133.clone_graph/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2016-07-02T17:44:10.000Z | 2016-07-02T17:44:10.000Z | src/133.clone_graph/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | null | null | null | src/133.clone_graph/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2019-12-21T04:57:15.000Z | 2019-12-21T04:57:15.000Z | /**
* Definition for undirected graph.
* struct UndirectedGraphNode {
* int label;
* vector<UndirectedGraphNode *> neighbors;
* UndirectedGraphNode(int x) : label(x) {};
* };
*/
class Solution {
public:
UndirectedGraphNode *cloneGraph(UndirectedGraphNode *node) {
if (node == NULL) return ... | 36.837838 | 96 | 0.569332 | cloudzfy |
8698075905e16ce9032f346143058775d0abbc5a | 82 | hpp | C++ | include/dg/platform/window_events.hpp | epicodic/diligent-graph | 64325a17498fa6b913bffadfc1a43108c81dd7b0 | [
"Apache-2.0"
] | 3 | 2020-08-25T07:54:43.000Z | 2021-01-14T20:05:06.000Z | include/dg/platform/window_events.hpp | epicodic/diligent-graph | 64325a17498fa6b913bffadfc1a43108c81dd7b0 | [
"Apache-2.0"
] | null | null | null | include/dg/platform/window_events.hpp | epicodic/diligent-graph | 64325a17498fa6b913bffadfc1a43108c81dd7b0 | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace dg {
struct ResizeEvent
{
int width, height;
};
}
| 6.307692 | 22 | 0.634146 | epicodic |
869930b9054607fde2483fb0972e79cd6c46567e | 6,179 | hpp | C++ | lib/serialize/include/pajlada/serialize/deserialize.hpp | Functioneel/chatterino7 | 81a52498b6850626223f96fa81c3e847c23ee25d | [
"MIT"
] | 1 | 2022-01-08T17:59:48.000Z | 2022-01-08T17:59:48.000Z | include/pajlada/serialize/deserialize.hpp | brucelevis/serialize | 7d37cbfd5ac3bfbe046118e1cec3d32ba4696469 | [
"MIT"
] | 4 | 2022-03-07T14:40:30.000Z | 2022-03-31T10:26:28.000Z | lib/serialize/include/pajlada/serialize/deserialize.hpp | Functioneel/chatterino7 | 81a52498b6850626223f96fa81c3e847c23ee25d | [
"MIT"
] | 2 | 2020-06-04T09:52:24.000Z | 2021-12-25T13:58:30.000Z | #pragma once
#include <rapidjson/document.h>
#include <pajlada/serialize/common.hpp>
#ifdef PAJLADA_BOOST_ANY_SUPPORT
#include <boost/any.hpp>
#endif
#include <cassert>
#include <cmath>
#include <map>
#include <stdexcept>
#include <string>
#include <typeinfo>
#include <vector>
namespace pajlada {
// Deserialize i... | 25.533058 | 80 | 0.571128 | Functioneel |
869961fc338987f7240f1d3cd05a792122c1a918 | 8,067 | cpp | C++ | src/internal.cpp | chenlijun99/FuzzGen | 0f6ad947b3d573407b573cc54833263e03a6af73 | [
"Apache-2.0"
] | 233 | 2019-11-01T19:05:17.000Z | 2022-03-19T07:00:11.000Z | src/internal.cpp | chenlijun99/FuzzGen | 0f6ad947b3d573407b573cc54833263e03a6af73 | [
"Apache-2.0"
] | 21 | 2020-03-21T16:26:55.000Z | 2022-03-07T11:14:27.000Z | src/internal.cpp | chenlijun99/FuzzGen | 0f6ad947b3d573407b573cc54833263e03a6af73 | [
"Apache-2.0"
] | 54 | 2020-05-28T00:12:38.000Z | 2022-03-19T07:00:13.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 ... | 34.622318 | 99 | 0.418247 | chenlijun99 |
86a159ca4d06f77ee3c07be51eab4c865a4f7e5c | 2,890 | cpp | C++ | src/Geometry.cpp | eestrada/raytracer | f1a80db1c2ec05e5b39a9dce9af6a56604755a0b | [
"MIT"
] | 1 | 2018-04-25T08:43:36.000Z | 2018-04-25T08:43:36.000Z | src/Geometry.cpp | eestrada/raytracer | f1a80db1c2ec05e5b39a9dce9af6a56604755a0b | [
"MIT"
] | null | null | null | src/Geometry.cpp | eestrada/raytracer | f1a80db1c2ec05e5b39a9dce9af6a56604755a0b | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <cmath>
#include "cg/Geometry.hpp"
#include "utils/exceptions.hpp"
namespace cg
{
rt::RayHit_ptr Sphere::intersect(const rt::Ray &ray, const Mat4 &xform) const
{
Vec3 new_center = xform * Vec4(this->center, 1.0);
Vec3 L = new_center - ray.pos;
double tca = L... | 28.333333 | 94 | 0.616609 | eestrada |
86a16c0a543193840e53468d39746d700a5d187e | 3,072 | cpp | C++ | Fuji/Source/Drivers/PS2/MFSystem_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 35 | 2015-01-19T22:07:48.000Z | 2022-02-21T22:17:53.000Z | Fuji/Source/Drivers/PS2/MFSystem_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 1 | 2022-02-23T09:34:15.000Z | 2022-02-23T09:34:15.000Z | Fuji/Source/Drivers/PS2/MFSystem_PS2.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 4 | 2015-05-11T03:31:35.000Z | 2018-09-27T04:55:57.000Z | #include "Fuji_Internal.h"
#if MF_SYSTEM == MF_DRIVER_PS2
#include "MFSystem_Internal.h"
#include <kernel.h>
// Timer Registers
#define T1_COUNT ((volatile unsigned long*)0x10000800)
#define T1_MODE ((volatile unsigned long*)0x10000810)
#define T1_COMP ((volatile unsigned long*)0x10000820)
#define T1_... | 22.755556 | 69 | 0.642253 | TurkeyMan |
86a1ca8b0c4141e9c9ea4d31ef6af3344fb82f52 | 4,875 | cpp | C++ | Snake/C++/Snake.cpp | Charptr0/Personal-Projects-CPP | bdb5b52a687762990fdbcfc9331279f70634ea1e | [
"MIT"
] | null | null | null | Snake/C++/Snake.cpp | Charptr0/Personal-Projects-CPP | bdb5b52a687762990fdbcfc9331279f70634ea1e | [
"MIT"
] | null | null | null | Snake/C++/Snake.cpp | Charptr0/Personal-Projects-CPP | bdb5b52a687762990fdbcfc9331279f70634ea1e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <conio.h>
#include "GameManager.h"
using std::cout;
using std::endl;
void Display() //To display the border, the player, and the fruit
{
system("CLS");
for (int i = 1; i <= Row; i++)
{
if (i > 1 && i < Row) { cout << "*"; } //If i does ... | 31.655844 | 180 | 0.501128 | Charptr0 |
86a2bb9524a136785bfefcef74e9bbd4aa6092eb | 1,191 | cpp | C++ | Object Oriented Algo Design in C++/practice/quicksort.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/practice/quicksort.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | Object Oriented Algo Design in C++/practice/quicksort.cpp | aishwaryamallampati/BTech-IIITDM | 4cfc25a4e6e066b848361cb92770cad3260c7d48 | [
"MIT"
] | null | null | null | /*sorting the given elements using quick sort*/
#include<iostream>
using namespace std;
class array
{
public:
array();
int a[1000];
int size;
};
array::array()
{
int index1;
cout<<"\nenter the size of the array:";
cin>>size;
cout<<"\nenter the elements of the array: ";
for(index1=1;index1<=size;index1++)
c... | 14.178571 | 52 | 0.603694 | aishwaryamallampati |
86a80fe832d5b2bed2ed0aafa4455e14985a34c0 | 1,216 | cpp | C++ | leetcode-cpp/RotatedDigits_788.cpp | emacslisp/cpp | 8230f81117d6f64adaa1696b0943cdb47505335a | [
"Apache-2.0"
] | null | null | null | leetcode-cpp/RotatedDigits_788.cpp | emacslisp/cpp | 8230f81117d6f64adaa1696b0943cdb47505335a | [
"Apache-2.0"
] | null | null | null | leetcode-cpp/RotatedDigits_788.cpp | emacslisp/cpp | 8230f81117d6f64adaa1696b0943cdb47505335a | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <iostream>
#include <climits>
#include <algorithm>
#include <queue>
#include <stack>
#include <map>
#include <math.h>
using namespace std;
#define ll long long
class Solution {
public:
int rotated(int N, map<int, int> m) {
int p = N;
int result = 0;
int offset = ... | 19 | 41 | 0.417763 | emacslisp |
86a8d478527de8169fd08b97d30112281eeb3c16 | 4,146 | hpp | C++ | SpriteExtractorLib/Types.hpp | jowie94/SpriteExtractor | 96934f241e33229638beb8914ac68e866696433b | [
"MIT"
] | 1 | 2019-01-15T15:14:47.000Z | 2019-01-15T15:14:47.000Z | SpriteExtractorLib/Types.hpp | jowie94/SpriteExtractor | 96934f241e33229638beb8914ac68e866696433b | [
"MIT"
] | null | null | null | SpriteExtractorLib/Types.hpp | jowie94/SpriteExtractor | 96934f241e33229638beb8914ac68e866696433b | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <utility>
#include <cassert>
#include <vector>
template<class T>
struct Vec2
{
Vec2()
{}
Vec2(T x_, T y_)
: X(x_)
, Y(y_)
{
}
T X = 0;
T Y = 0;
};
struct Color final
{
using channel_t = unsigned char;
Color()
{}
Co... | 21.59375 | 86 | 0.548722 | jowie94 |
86aa25e8edbf2c875064fc71c27b9ffc3cdf6447 | 3,742 | hpp | C++ | include/vdds/sub.hpp | maxk-org/vdds | 015473498661cb8f06868cce2dc4519a6452b861 | [
"BSD-3-Clause"
] | null | null | null | include/vdds/sub.hpp | maxk-org/vdds | 015473498661cb8f06868cce2dc4519a6452b861 | [
"BSD-3-Clause"
] | null | null | null | include/vdds/sub.hpp | maxk-org/vdds | 015473498661cb8f06868cce2dc4519a6452b861 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2021, Qualcomm Innovation Center, 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,
// ... | 32.258621 | 81 | 0.711919 | maxk-org |
86afe33ce82c15b3d8632fac1d60c0ab3eab302a | 344 | cc | C++ | solutions/csacademy/adjacent-vowels.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/csacademy/adjacent-vowels.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/csacademy/adjacent-vowels.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | #include <iostream>
#include <unordered_set>
using namespace std;
int main() {
char prev = 0;
int n;
cin >> n;
int ans = 0;
unordered_set<char> vowels = {'a', 'e', 'i', 'o', 'u'};
while (n--) {
char cur;
cin >> cur;
if (vowels.count(cur) && vowels.count(prev)) {
++ans;
}
prev = c... | 16.380952 | 57 | 0.517442 | zwliew |
86b02c3b1a0c490e1b95f3829daf0b2048449625 | 1,934 | cpp | C++ | Common/util/l4util.cpp | sunzhuoshi/SteamVRDemoHelper | 536280f1e5df5e4bdb85fca3460353e0f19cf43d | [
"MIT"
] | null | null | null | Common/util/l4util.cpp | sunzhuoshi/SteamVRDemoHelper | 536280f1e5df5e4bdb85fca3460353e0f19cf43d | [
"MIT"
] | null | null | null | Common/util/l4util.cpp | sunzhuoshi/SteamVRDemoHelper | 536280f1e5df5e4bdb85fca3460353e0f19cf43d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "l4util.h"
#include <sstream>
#include <minwindef.h>
#include <Windows.h>
#include <Psapi.h>
namespace l4util {
std::string getCurrentExePath()
{
char buf[MAX_PATH] = "", *tmp;
if (GetModuleFileNameA(NULL, buf, MAX_PATH))
{
tmp = strrchr(buf, '\\');
if (tmp) {
*tmp = '\... | 20.145833 | 88 | 0.56515 | sunzhuoshi |
86b23086dbf47aa4c690d23d4a6be5ca5e40d20a | 4,064 | cpp | C++ | GTEngine/Source/Graphics/DX11/GteHLSLResource.cpp | pmjoniak/GeometricTools | ae6e933f9ab3a5474d830700ea8d9445cc78ef4b | [
"BSL-1.0"
] | 4 | 2019-03-03T18:13:30.000Z | 2020-08-25T18:15:30.000Z | GTEngine/Source/Graphics/DX11/GteHLSLResource.cpp | pmjoniak/GeometricTools | ae6e933f9ab3a5474d830700ea8d9445cc78ef4b | [
"BSL-1.0"
] | null | null | null | GTEngine/Source/Graphics/DX11/GteHLSLResource.cpp | pmjoniak/GeometricTools | ae6e933f9ab3a5474d830700ea8d9445cc78ef4b | [
"BSL-1.0"
] | 6 | 2016-07-15T11:04:52.000Z | 2021-12-07T03:11:42.000Z | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2018
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.2 (2017/09/05)
#include <GTEnginePCH.h>
#include <Graph... | 25.88535 | 78 | 0.697835 | pmjoniak |
86b6c31525dac0f661a90f9c8635444d2b501cbf | 22,309 | cpp | C++ | SpatialFilter/GaussianFilterAM.cpp | norishigefukushima/OpenCP | 63090131ec975e834f85b04e84ec29b2893845b2 | [
"BSD-3-Clause"
] | 137 | 2015-03-27T07:11:19.000Z | 2022-03-30T05:58:22.000Z | SpatialFilter/GaussianFilterAM.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 2 | 2016-05-18T06:33:16.000Z | 2016-07-11T17:39:17.000Z | SpatialFilter/GaussianFilterAM.cpp | Pandinosaurus/OpenCP | a5234ed531c610d7944fa14d42f7320442ea34a1 | [
"BSD-3-Clause"
] | 43 | 2015-02-20T15:34:25.000Z | 2022-01-27T14:59:37.000Z | #include "stdafx.h"
using namespace std;
using namespace cv;
namespace cp
{
#pragma region GaussianFilterAM_Naive
template<typename Type>
GaussianFilterAM_Naive<Type>::GaussianFilterAM_Naive(cv::Size imgSize, Type sigma, int order)
: SpatialFilterBase(imgSize, cp::typeToCVDepth<Type>()), order(order), sigma(sigm... | 28.785806 | 226 | 0.621588 | norishigefukushima |
86b6f1e9c62023530b927f9a0faf6ebca5b1a589 | 7,149 | cpp | C++ | dex/dex2dex/d2d_dexlib.cpp | tetsuo-cpp/xoc | ff27765f953ce0d51ee71ad3496fd4cdd7fcbcf2 | [
"BSD-3-Clause"
] | 111 | 2015-08-21T01:53:55.000Z | 2022-03-07T12:24:30.000Z | dex/dex2dex/d2d_dexlib.cpp | tetsuo-cpp/xoc | ff27765f953ce0d51ee71ad3496fd4cdd7fcbcf2 | [
"BSD-3-Clause"
] | 3 | 2016-02-19T03:22:49.000Z | 2020-11-25T07:26:48.000Z | dex/dex2dex/d2d_dexlib.cpp | tetsuo-cpp/xoc | ff27765f953ce0d51ee71ad3496fd4cdd7fcbcf2 | [
"BSD-3-Clause"
] | 17 | 2015-08-06T03:10:28.000Z | 2021-03-28T11:17:51.000Z | /*@
XOC Release License
Copyright (c) 2013-2014, Alibaba Group, All rights reserved.
compiler@aliexpress.com
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 c... | 29.179592 | 75 | 0.577004 | tetsuo-cpp |
86b9534a6cf5d221da4cdde69c6d9062b584a4a7 | 4,704 | hpp | C++ | gpu/kinfu_large_scale/src/cuda/device.hpp | yxlao/StanfordPCL | 98a8663f896c1ba880d14efa2338b7cfbd01b6ef | [
"MIT"
] | null | null | null | gpu/kinfu_large_scale/src/cuda/device.hpp | yxlao/StanfordPCL | 98a8663f896c1ba880d14efa2338b7cfbd01b6ef | [
"MIT"
] | null | null | null | gpu/kinfu_large_scale/src/cuda/device.hpp | yxlao/StanfordPCL | 98a8663f896c1ba880d14efa2338b7cfbd01b6ef | [
"MIT"
] | null | null | null | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... | 37.632 | 88 | 0.66369 | yxlao |
86b98be3e4213c1664fcf3eeae72e9a77b84759a | 35,519 | cpp | C++ | AdsLedMatrixCMS/v3.0.1/soft_v3/MatrixSimulator.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | AdsLedMatrixCMS/v3.0.1/soft_v3/MatrixSimulator.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | null | null | null | AdsLedMatrixCMS/v3.0.1/soft_v3/MatrixSimulator.cpp | cuongquay/led-matrix-display | 6dd0e3be9ee23862610dab7b0d40970c6900e5e4 | [
"Apache-2.0"
] | 1 | 2020-06-13T08:34:26.000Z | 2020-06-13T08:34:26.000Z | // MatrixSimulator.cpp : implementation file
//
#include "stdafx.h"
#include "MATRIX.h"
#include "FontDisp.h"
#include "MatrixSimulator.h"
#include "resource.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define TIMER_ID 1001
#define CLOCK_ID ... | 26.040323 | 146 | 0.61598 | cuongquay |
86baf412b42932124acf064931e68fa6638e9078 | 1,202 | cpp | C++ | Week13/701.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 101 | 2021-02-26T14:32:37.000Z | 2022-03-16T18:46:37.000Z | Week13/701.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | null | null | null | Week13/701.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 30 | 2021-03-09T05:16:48.000Z | 2022-03-16T21:16:33.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 30.05 | 93 | 0.563228 | bobsingh149 |
86bdf01183e05b00bb2f0561b71eb902f4cbbd20 | 709 | cpp | C++ | C/C1433.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | C/C1433.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | C/C1433.cpp | Darknez07/Codeforces-sol | afd926c197f43784c12220430bb3c06011bb185e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(){
int max = -1,t,n,indx;
cin>>t;
while(t--){
cin>>n;
vector<int> v(n);
max = -1;
indx = -1;
for(int i=0;i<n;i++){
cin>>v[i];
if(max < v[i]){
max = v[i];
... | 22.870968 | 54 | 0.294781 | Darknez07 |
86c12c8abab5a921e7fc00b8151a64ee1103a5ec | 2,491 | hpp | C++ | include/scapin/fft_helper.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | null | null | null | include/scapin/fft_helper.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | 4 | 2020-09-24T07:32:21.000Z | 2020-12-01T08:06:00.000Z | include/scapin/fft_helper.hpp | sbrisard/gollum | 25d5b9aea63a8f2812c4b41850450fcbead64da7 | [
"BSD-3-Clause"
] | 1 | 2020-02-02T18:05:15.000Z | 2020-02-02T18:05:15.000Z | /**
* @file fft_utils.h
*
* @brief Helper functions to work with discrete Fourier transforms.
*
* This module is heavily inspired by the `numpy.fft.helper` module, see
*
* <https://docs.scipy.org/doc/numpy/reference/routines.fft.html#helper-routines>
*
*/
#pragma once
#include <cmath>
#include <numbers>
#inc... | 29.305882 | 81 | 0.59173 | sbrisard |
86c15fbcaa76966acfcaf38e56429152a80c7d74 | 1,992 | cpp | C++ | gym/102829/J.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | 1 | 2021-07-16T19:59:39.000Z | 2021-07-16T19:59:39.000Z | gym/102829/J.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | gym/102829/J.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.339806 | 102 | 0.545683 | albexl |
86c5d9d3d1ad64e8712ebf855e09f9a306e62bdc | 1,169 | cpp | C++ | examples/mplapack/04_NonsymmetricEigenproblems/generic/Rgees_Grcar_generic.cpp | Ndersam/mplapack | f2ef54d7ce95e4028d3f101a901c75d18d3f1327 | [
"BSD-3-Clause-Open-MPI"
] | 26 | 2019-03-20T04:06:03.000Z | 2022-03-02T10:21:01.000Z | examples/mplapack/04_NonsymmetricEigenproblems/generic/Rgees_Grcar_generic.cpp | Ndersam/mplapack | f2ef54d7ce95e4028d3f101a901c75d18d3f1327 | [
"BSD-3-Clause-Open-MPI"
] | 5 | 2019-03-04T03:32:41.000Z | 2021-12-01T07:47:25.000Z | examples/mplapack/04_NonsymmetricEigenproblems/generic/Rgees_Grcar_generic.cpp | Ndersam/mplapack | f2ef54d7ce95e4028d3f101a901c75d18d3f1327 | [
"BSD-3-Clause-Open-MPI"
] | 5 | 2019-03-09T17:50:26.000Z | 2022-03-10T19:46:20.000Z | bool rselect(REAL ar, REAL ai) {
// sorting rule for eigenvalues.
return false;
}
int main() {
INTEGER n = 100;
REAL *a = new REAL[n * n];
REAL *vs = new REAL[n * n];
INTEGER sdim = 0;
INTEGER lwork = 3 * n;
REAL *wr = new REAL[n];
REAL *wi = new REAL[n];
REAL *work = new REAL[... | 28.512195 | 104 | 0.443114 | Ndersam |
86c6358de207c280f6ae8a2a54a644c2d290fefa | 381 | cpp | C++ | C++/Combination Test/writing.cpp | EJEmmett/RocksatX19 | 27139f72915ae7dd376daeb47a8721c09dd1f717 | [
"BSL-1.0"
] | null | null | null | C++/Combination Test/writing.cpp | EJEmmett/RocksatX19 | 27139f72915ae7dd376daeb47a8721c09dd1f717 | [
"BSL-1.0"
] | null | null | null | C++/Combination Test/writing.cpp | EJEmmett/RocksatX19 | 27139f72915ae7dd376daeb47a8721c09dd1f717 | [
"BSL-1.0"
] | null | null | null | //file io testing
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <vector>
#include "writing.h"
#include "hash1.h"
using namespace std;
Writing::Writing()
{
}
void Writing::mainWrite()
{
string hash;
Hash h;
hash = h.getValue();
ofstream ws;
ws.open("ou... | 12.7 | 33 | 0.656168 | EJEmmett |
f866460fca927b85ec123ae17b5c05a26209003a | 4,784 | cpp | C++ | Win32.Ago.c/synflood.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 2 | 2021-02-04T06:47:45.000Z | 2021-07-28T10:02:10.000Z | Win32.Ago.c/synflood.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Win32.Ago.c/synflood.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | /* Agobot3 - a modular IRC bot for Win32 / Linux
Copyright (C) 2003 Ago
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 2
of the License, or (at your option) any later version.
... | 41.6 | 193 | 0.75 | 010001111 |
f866d8ef182572b70dd423abdfcad0fbb73e0d0d | 2,077 | cc | C++ | mod/test/case/wrd/syntax/commentTest.cc | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | 1 | 2019-02-02T07:07:32.000Z | 2019-02-02T07:07:32.000Z | mod/test/case/wrd/syntax/commentTest.cc | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | 25 | 2016-09-23T16:36:19.000Z | 2019-02-12T14:14:32.000Z | mod/test/case/wrd/syntax/commentTest.cc | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | null | null | null | #include "../../../wrdSyntaxTest.hpp"
using namespace wrd;
using namespace std;
namespace {
struct commentTest : public wrdSyntaxTest {};
}
TEST_F(commentTest, singleLineComment) {
// control group.
make().parse(R"SRC(
age int // age is age
main() int // main is also a main
re... | 28.452055 | 88 | 0.584015 | kniz |
f86b78dd5854f0da41a656d457189bd8a83d0826 | 3,318 | hpp | C++ | mlir/include/mlir-extensions/analysis/memory_ssa.hpp | nbpatel/mlir-extensions | 1270a2550694a53a0c70fd5b17d518eef133802b | [
"Apache-2.0"
] | 28 | 2021-08-10T12:07:31.000Z | 2022-03-13T10:54:40.000Z | mlir/include/mlir-extensions/analysis/memory_ssa.hpp | nbpatel/mlir-extensions | 1270a2550694a53a0c70fd5b17d518eef133802b | [
"Apache-2.0"
] | 21 | 2021-09-28T12:58:22.000Z | 2022-03-25T21:08:56.000Z | mlir/include/mlir-extensions/analysis/memory_ssa.hpp | nbpatel/mlir-extensions | 1270a2550694a53a0c70fd5b17d518eef133802b | [
"Apache-2.0"
] | 6 | 2021-08-23T16:54:40.000Z | 2022-03-11T23:43:56.000Z | // Copyright 2021 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | 28.603448 | 79 | 0.705244 | nbpatel |
f86d807b20f98c24e55669e9d5a5c3d4c7c36e68 | 9,671 | cc | C++ | Projects/CSM/SceneCSM.cc | mnrn/ReGL | 922b36716ff29fa5ed8f18c078d2369ef9fba6a9 | [
"MIT"
] | null | null | null | Projects/CSM/SceneCSM.cc | mnrn/ReGL | 922b36716ff29fa5ed8f18c078d2369ef9fba6a9 | [
"MIT"
] | null | null | null | Projects/CSM/SceneCSM.cc | mnrn/ReGL | 922b36716ff29fa5ed8f18c078d2369ef9fba6a9 | [
"MIT"
] | null | null | null | /**
* @brief Cascaded shadow mapping のテストシーン
*/
#include "SceneCSM.h"
#include <boost/assert.hpp>
#include <cmath>
#include <glm/gtc/constants.hpp>
#include <iostream>
#include <spdlog/spdlog.h>
#include "CSM.h"
#include "GUI/GUI.h"
#include "HID/KeyInput.h"
#ifdef WIN32
#ifdef far
#undef far
#endif
#ifdef near
#... | 32.023179 | 83 | 0.602626 | mnrn |
f873e81edc799f9a9101767be4c0c89189e11c1e | 4,759 | cpp | C++ | core/src/GarbageCollector.cpp | Devronium/ConceptApplicationServer | c1fcb8de8d752f352485840aab13511dd1aa6a15 | [
"BSD-2-Clause"
] | 11 | 2016-01-24T18:53:36.000Z | 2021-01-21T08:59:01.000Z | core/src/GarbageCollector.cpp | Devronium/ConceptApplicationServer | c1fcb8de8d752f352485840aab13511dd1aa6a15 | [
"BSD-2-Clause"
] | 1 | 2016-01-22T21:38:38.000Z | 2016-01-30T17:25:01.000Z | core/src/GarbageCollector.cpp | Devronium/ConceptApplicationServer | c1fcb8de8d752f352485840aab13511dd1aa6a15 | [
"BSD-2-Clause"
] | null | null | null | #include "GarbageCollector.h"
#include "CompiledClass.h"
#include "ClassCode.h"
#include "Array.h"
#include "PIFAlizator.h"
POOLED_IMPLEMENTATION(_GarbageElement)
POOLED_IMPLEMENTATION(GarbageCollector)
GarbageCollector::GarbageCollector() {
BASE = 0;
}
void GarbageCollector::Call_All_Destructors(vo... | 27.350575 | 90 | 0.499895 | Devronium |
f875187c4caccdffd3fe1f218c5f5e72d6a48cb8 | 1,091 | cpp | C++ | c3dEngine/c3dEngine/core/c3dModel.cpp | wantnon2/superSingleCell-c3dEngine | 512f99c649f1809bf63ef0e3e02342648372e2ce | [
"MIT"
] | 12 | 2015-02-12T10:54:20.000Z | 2019-02-18T22:15:53.000Z | c3dEngine/c3dEngine/core/c3dModel.cpp | wantnon2/superSingleCell-c3dEngine | 512f99c649f1809bf63ef0e3e02342648372e2ce | [
"MIT"
] | null | null | null | c3dEngine/c3dEngine/core/c3dModel.cpp | wantnon2/superSingleCell-c3dEngine | 512f99c649f1809bf63ef0e3e02342648372e2ce | [
"MIT"
] | 11 | 2015-02-10T04:02:14.000Z | 2021-12-08T09:12:10.000Z | //
// c3dActor.cpp
// HelloOpenGL
//
// Created by wantnon (yang chao) on 12-12-20.
//
//
#include "c3dModel.h"
void Cc3dModel::addMesh(Cc3dMesh*mesh){
assert(mesh);
m_meshList.push_back(mesh);
// mesh->setName("?");
this->addChild(mesh);
}
void Cc3dModel::submitVertex(GLenum usage){
int nM... | 25.372093 | 95 | 0.612282 | wantnon2 |
f8769575f228c445245a6a0385378c2333da12ac | 658 | cpp | C++ | test/math/log2.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | test/math/log2.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | test/math/log2.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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)
#include <fcppt/catch/begin.hpp>
#include <fcppt/catch/end.hpp>
#include <fcppt/math/log2.hpp>
#inc... | 24.37037 | 61 | 0.683891 | freundlich |
f87957f19395e609ed92b48c9be7c78abcb23f73 | 1,560 | cpp | C++ | source/code/scratch/old_repos/Jstd/Jstd/project/src/jstd-tool/jstd-tool/warn_fix_prompter.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/code/scratch/old_repos/Jstd/Jstd/project/src/jstd-tool/jstd-tool/warn_fix_prompter.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/code/scratch/old_repos/Jstd/Jstd/project/src/jstd-tool/jstd-tool/warn_fix_prompter.cpp | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | #include "warn_fix_prompter.hpp"
bool Warn_Fix_Prompter::Prompt_To_Add_File(std::string const& file){
std::cout << "add file " << file << "?";
return Prompt();
}
bool Warn_Fix_Prompter::Prompt_To_Delete_File(std::string const& file){
std::cout << "delete file " << file << "?";
return Prompt();
}
bool Warn_Fix_... | 31.836735 | 105 | 0.642949 | luxe |