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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af3684c70243779d4f462636a73078db6e072682 | 2,950 | cpp | C++ | Common/zoneview.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Common/zoneview.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | Common/zoneview.cpp | dcliche/studioengine | 1a18d373b26575b040d014ae2650a1aaeb208a89 | [
"Apache-2.0"
] | null | null | null | //
// zoneview.cpp
// MelobaseStation
//
// Created by Daniel Cliche on 2016-02-08.
// Copyright (c) 2016-2021 Daniel Cliche. All rights reserved.
//
#include "zoneview.h"
using namespace MDStudio;
// ----------------------------------------------------------------------------------------------------------------... | 42.142857 | 120 | 0.622034 |
af36e438fb8bc750c09a5beb82ddfcc6c7a64cac | 3,668 | cpp | C++ | 3rdparty/webkit/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | 1 | 2020-05-25T16:06:49.000Z | 2020-05-25T16:06:49.000Z | WebLayoutCore/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | null | null | null | WebLayoutCore/Source/WebCore/platform/graphics/cairo/GradientCairo.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | 1 | 2018-07-10T10:53:18.000Z | 2018-07-10T10:53:18.000Z | /*
* Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2007 Alp Toker <alp@atoker.com>
*
* 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 reta... | 37.428571 | 164 | 0.709378 |
af3c5d944ca4f879ea6d4365e1365e221f69cde7 | 45,136 | cpp | C++ | amd_femfx/src/FindContacts/FEMFXMeshCollision.cpp | UnifiQ/FEMFX | 95cf656731a2465ae1d400138170af2d6575b5bb | [
"MIT"
] | 418 | 2019-12-16T10:36:42.000Z | 2022-03-27T02:46:08.000Z | amd_femfx/src/FindContacts/FEMFXMeshCollision.cpp | UnifiQ/FEMFX | 95cf656731a2465ae1d400138170af2d6575b5bb | [
"MIT"
] | 15 | 2019-12-16T15:39:29.000Z | 2021-12-02T15:45:21.000Z | amd_femfx/src/FindContacts/FEMFXMeshCollision.cpp | UnifiQ/FEMFX | 95cf656731a2465ae1d400138170af2d6575b5bb | [
"MIT"
] | 54 | 2019-12-16T12:33:18.000Z | 2022-02-27T16:33:28.000Z | /*
MIT License
Copyright (c) 2019 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, m... | 44.294406 | 197 | 0.624225 |
af3c85ba4560bd4fbd781a99e2b5af71ae654cf9 | 772 | hpp | C++ | include/clpp/command_queue_flags.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 5 | 2015-09-08T01:59:26.000Z | 2018-11-26T10:19:29.000Z | include/clpp/command_queue_flags.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | 6 | 2015-11-29T03:00:11.000Z | 2015-11-29T03:11:52.000Z | include/clpp/command_queue_flags.hpp | Robbepop/clpp | 7723bb68c55d861ac2135ccf84d3c5b92b2b2b50 | [
"MIT"
] | null | null | null | #ifndef CLPP_COMMAND_QUEUE_FLAGS_HPP
#define CLPP_COMMAND_QUEUE_FLAGS_HPP
#include "clpp/detail/common.hpp"
#include "clpp/detail/mask_wrapper.hpp"
namespace cl {
class CommandQueueFlags final :
public detail::MaskWrapper<cl_command_queue_properties>
{
public:
using detail::MaskWrapper<CommandQueueFlags::cl_ma... | 29.692308 | 74 | 0.759067 |
af3dbec14f268006eab1347a8a1f22de395ea87e | 1,872 | cpp | C++ | software/firmware/libraries/CommandQueue/CommandQueue.cpp | ByLinedu/LogoBot | d92c071bc0b52368fd8ca2b934a06a5b487b34b8 | [
"MIT"
] | null | null | null | software/firmware/libraries/CommandQueue/CommandQueue.cpp | ByLinedu/LogoBot | d92c071bc0b52368fd8ca2b934a06a5b487b34b8 | [
"MIT"
] | null | null | null | software/firmware/libraries/CommandQueue/CommandQueue.cpp | ByLinedu/LogoBot | d92c071bc0b52368fd8ca2b934a06a5b487b34b8 | [
"MIT"
] | 1 | 2018-07-31T08:43:24.000Z | 2018-07-31T08:43:24.000Z | #include "CommandQueue.h"
CommandQueue::CommandQueue(int length)
{
cmdQ = new COMMAND[length];
queueLength = length;
qHead = 0;
qSize = 0;
}
boolean CommandQueue::insert(String s, uint8_t cmdType) {
// inserts s at head of queue
// return true if inserted ok, false if buffer full
if (!isFull()) {
qHead--;
... | 17.660377 | 64 | 0.649038 |
af3df56bb45d05fea22f60c71a7c5f7d498925b9 | 1,114 | cpp | C++ | ast/src/FieldDeclarationNode.cpp | JBamberger/oberon0-compiler | 399d7ea367403809f1bf31aada10e13eb38aac12 | [
"Apache-2.0"
] | 1 | 2020-09-06T15:38:16.000Z | 2020-09-06T15:38:16.000Z | ast/src/FieldDeclarationNode.cpp | JBamberger/oberon0-compiler | 399d7ea367403809f1bf31aada10e13eb38aac12 | [
"Apache-2.0"
] | null | null | null | ast/src/FieldDeclarationNode.cpp | JBamberger/oberon0-compiler | 399d7ea367403809f1bf31aada10e13eb38aac12 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Jannik Bamberger
*
* 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... | 29.315789 | 96 | 0.728905 |
af479203d2cc77aaeb1e75e159093d0557b3792b | 8,788 | cpp | C++ | localgraphclustering/src/lib/include/maxflow.cpp | vishalbelsare/LocalGraphClustering | a6325350997932d548a876deb259c2387fc2c809 | [
"MIT"
] | 106 | 2017-09-06T04:47:02.000Z | 2022-03-30T07:43:27.000Z | localgraphclustering/src/lib/include/maxflow.cpp | pmacg/local-bipartite-clusters | d29e8d37c79e27b48e785b7b2c4bad9ea5d66b6d | [
"MIT"
] | 51 | 2017-09-06T02:22:09.000Z | 2021-12-15T11:39:28.000Z | localgraphclustering/src/lib/include/maxflow.cpp | vishalbelsare/LocalGraphClustering | a6325350997932d548a876deb259c2387fc2c809 | [
"MIT"
] | 38 | 2017-09-04T21:45:13.000Z | 2022-01-19T09:48:25.000Z | #ifndef MAXFLOW_cpp
#define MAXFLOW_cpp
#include "routines.hpp"
#include <list>
#include <climits>
#include <utility>
#include <iostream>
#include <stack>
#include <algorithm>
/*
Based on http://www.geeksforgeeks.org/dinics-algorithm-maximum-flow/
*/
using namespace std;
// Finds if more flow can be sent from s t... | 31.498208 | 162 | 0.505462 |
af4b5024feecf15d017f713595e8a8251eeb9623 | 3,158 | cpp | C++ | RTOS_JOB_SCHEDULING_SIMULATOR/Files/sjfnp.cpp | binodkumar23/IITJ_IDDEDA | 2c2f9ec14bcbb882c23866f1329a5fd0a1a7a993 | [
"MIT"
] | 1 | 2021-12-11T10:23:05.000Z | 2021-12-11T10:23:05.000Z | RTOS_JOB_SCHEDULING_SIMULATOR/Files/sjfnp.cpp | binodkumar23/IITJ_IDDEDA | 2c2f9ec14bcbb882c23866f1329a5fd0a1a7a993 | [
"MIT"
] | null | null | null | RTOS_JOB_SCHEDULING_SIMULATOR/Files/sjfnp.cpp | binodkumar23/IITJ_IDDEDA | 2c2f9ec14bcbb882c23866f1329a5fd0a1a7a993 | [
"MIT"
] | 3 | 2021-12-23T17:19:42.000Z | 2022-01-27T13:53:47.000Z | #include <bits/stdc++.h>
using namespace std;
vector<double> sjfnp(vector<int> &cpu_burst, vector<int> &arrival_times, int mode)
{
int n = cpu_burst.size();
vector<int> wait_time(n, 0), turnaround_time(n, 0), response_time(n), completion_time(n, 0);
vector<vector<int> > table(n, vector<int>(6));
tabl... | 31.58 | 99 | 0.468334 |
af507d136ec0c8e4bb719e673a2005234f73e475 | 756 | hpp | C++ | src/UI/RepeaterBookResultsWidget.hpp | neotericpiguy/QDmrconfig | 5fd0b5fbacd414f5963bcfef153db95e9447bade | [
"MIT"
] | 1 | 2021-01-03T17:49:59.000Z | 2021-01-03T17:49:59.000Z | src/UI/RepeaterBookResultsWidget.hpp | neotericpiguy/QDmrconfig | 5fd0b5fbacd414f5963bcfef153db95e9447bade | [
"MIT"
] | 39 | 2020-12-19T18:19:06.000Z | 2021-12-29T01:25:39.000Z | src/UI/RepeaterBookResultsWidget.hpp | neotericpiguy/QDmrconfig | 5fd0b5fbacd414f5963bcfef153db95e9447bade | [
"MIT"
] | null | null | null | #ifndef REPEATERBOOKRESULTSWIDGET_HPP
#define REPEATERBOOKRESULTSWIDGET_HPP
#pragma GCC diagnostic ignored "-Weffc++"
#include <QtWidgets/QPlainTextEdit>
#include <QtWidgets/QTableWidget>
#include <QtWidgets/QtWidgets>
#include <memory>
#pragma GCC diagnostic pop
#include "BSONDocWidget.hpp"
class RepeaterBookResult... | 28 | 94 | 0.80291 |
af530f8bc0cb8af0aa3e3ec65530a5292b8151a1 | 10,697 | inl | C++ | Phoenix3D/PX2Graphics/PX2Renderer.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 36 | 2016-04-24T01:40:38.000Z | 2022-01-18T07:32:26.000Z | Phoenix3D/PX2Graphics/PX2Renderer.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | null | null | null | Phoenix3D/PX2Graphics/PX2Renderer.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 16 | 2016-06-13T08:43:51.000Z | 2020-09-15T13:25:58.000Z | // PX2Renderer.inl
//----------------------------------------------------------------------------
inline int Renderer::GetWidth () const
{
return mWidth;
}
//----------------------------------------------------------------------------
inline int Renderer::GetHeight () const
{
return mHeight;
}
//--------------------... | 31.83631 | 86 | 0.450126 |
af543eb8e077bf30ca4be63a6821d95449f6d90f | 8,262 | cpp | C++ | src/mainDesc.cpp | KenOverholt/CarND-Path-Planning-Project | 081e2373a2a96e9e666dd9306cb9f693a516dbcb | [
"MIT"
] | null | null | null | src/mainDesc.cpp | KenOverholt/CarND-Path-Planning-Project | 081e2373a2a96e9e666dd9306cb9f693a516dbcb | [
"MIT"
] | null | null | null | src/mainDesc.cpp | KenOverholt/CarND-Path-Planning-Project | 081e2373a2a96e9e666dd9306cb9f693a516dbcb | [
"MIT"
] | null | null | null | // For converting back and forth between radians and degrees.
constexpr double pi() { return M_PI; }
double deg2rad(double x) { return x * pi() / 180; }
double rad2deg(double x) { return x * 180 / pi(); }
// distance between two points
double distance(double x1, double y1, double x2, double y2)
// closest way... | 33.585366 | 131 | 0.643065 |
af567748523f630b8d3278d7f56cc7d0ef2934f2 | 3,653 | cc | C++ | leveldb/util/io_posix.cc | naivewong/timeunion | 8070492d2c6a2d68175e7d026c27b858c2aec8e6 | [
"Apache-2.0"
] | null | null | null | leveldb/util/io_posix.cc | naivewong/timeunion | 8070492d2c6a2d68175e7d026c27b858c2aec8e6 | [
"Apache-2.0"
] | null | null | null | leveldb/util/io_posix.cc | naivewong/timeunion | 8070492d2c6a2d68175e7d026c27b858c2aec8e6 | [
"Apache-2.0"
] | null | null | null | #include "util/io_posix.h"
#include <algorithm>
#include <errno.h>
#include <fcntl.h>
#include <future>
#include <linux/falloc.h>
#include <linux/fs.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/sys... | 22.006024 | 80 | 0.607993 |
af5783770d5c282eca5c5eb8feffe07c4126afe6 | 8,308 | cpp | C++ | src/mongo/s/catalog/catalog_manager.cpp | rzh/mongo | f1c7cef21ac01792eb4934893b970f0303a23bca | [
"Apache-2.0"
] | null | null | null | src/mongo/s/catalog/catalog_manager.cpp | rzh/mongo | f1c7cef21ac01792eb4934893b970f0303a23bca | [
"Apache-2.0"
] | null | null | null | src/mongo/s/catalog/catalog_manager.cpp | rzh/mongo | f1c7cef21ac01792eb4934893b970f0303a23bca | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... | 35.504274 | 99 | 0.649735 |
af5891bdaf4af38f689b58909b68817b2462baa7 | 857 | cpp | C++ | dev/IconSource/PathIconSource.cpp | ZachT1711/microsoft-ui-xaml | b781f9d71051cc41968d2cf22501de227832e74b | [
"MIT"
] | 3,788 | 2019-05-07T02:41:36.000Z | 2022-03-30T12:34:15.000Z | dev/IconSource/PathIconSource.cpp | ZachT1711/microsoft-ui-xaml | b781f9d71051cc41968d2cf22501de227832e74b | [
"MIT"
] | 6,170 | 2019-05-06T21:32:43.000Z | 2022-03-31T23:46:55.000Z | dev/IconSource/PathIconSource.cpp | ZachT1711/microsoft-ui-xaml | b781f9d71051cc41968d2cf22501de227832e74b | [
"MIT"
] | 532 | 2019-05-07T12:15:58.000Z | 2022-03-31T11:36:26.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "pch.h"
#include "common.h"
#include "IconSource.h"
#include "PathIconSource.h"
winrt::IconElement PathIconSource::CreateIconElementCore()
{
... | 25.205882 | 111 | 0.682614 |
af58dd217a39669eeccb09954b94c546564e8b0a | 955 | cpp | C++ | src/Privileges.cpp | vexyl/MCHawk2 | 9c69795181c5a59ff6c57c36e77d71623df4db8b | [
"MIT"
] | 5 | 2020-09-02T06:58:15.000Z | 2021-12-26T02:29:35.000Z | src/Privileges.cpp | vexyl/MCHawk2 | 9c69795181c5a59ff6c57c36e77d71623df4db8b | [
"MIT"
] | 10 | 2021-11-23T16:10:38.000Z | 2021-12-30T16:05:52.000Z | src/Privileges.cpp | vexyl/MCHawk2 | 9c69795181c5a59ff6c57c36e77d71623df4db8b | [
"MIT"
] | 1 | 2021-07-13T16:55:53.000Z | 2021-07-13T16:55:53.000Z | #include "../include/Privileges.hpp"
#include <algorithm>
void PrivilegeHandler::GivePrivilege(std::string name, std::string priv)
{
auto iter = m_privs.find(name);
if (iter == m_privs.end()) {
// TODO: error check
m_privs.insert(std::make_pair(name, std::vector { priv }));
}
else {
// TODO: Check if alread... | 22.738095 | 117 | 0.653403 |
af5c39f793d2afa67502e2cd8d8dfca3c8bb0987 | 4,149 | cpp | C++ | Libraries/RobsJuceModules/rapt/Unfinished/MiscAudio/BandwidthConverter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | null | null | null | Libraries/RobsJuceModules/rapt/Unfinished/MiscAudio/BandwidthConverter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | null | null | null | Libraries/RobsJuceModules/rapt/Unfinished/MiscAudio/BandwidthConverter.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | null | null | null | template<class T>
T rsBandwidthConverter::bandedgesToCenterFrequency(T fl, T fu)
{
return sqrt(fl*fu);
}
template<class T>
T rsBandwidthConverter::bandedgesToAbsoluteBandwidth(T fl, T fu)
{
return fu - fl;
}
template<class T>
T rsBandwidthConverter::relativeBandwidthToBandedgeFactor(T br)
{
return 0.5*br + sqrt... | 35.767241 | 100 | 0.692697 |
af5defc1c825bc5680eab5e811e314bbc2dc0de5 | 404 | cpp | C++ | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/MyTestBenchMonitor.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | #include "MyTestBenchMonitor.h"
void MyTestBenchMonitor::Display_Patterns()
{
cout << "At time : " << sc_time_stamp();
//next_trigger(TBMonitor_a. | TBMonitor_b | TBMonitor_c);
cout << "\ta = " << TBMonitor_a << "\tb = " << TBMonitor_b << "\tc_in = " << TBMonitor_c;
//next_trigger(TBMonitor_sum | TBMonitor_sum);
... | 33.666667 | 90 | 0.648515 |
af5dfb203e9dceb2ef6970ffe47f34b30138073b | 17,261 | cpp | C++ | examples/lowlevel/benchmark_map.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | 3 | 2020-02-13T02:08:06.000Z | 2020-10-06T16:26:30.000Z | examples/lowlevel/benchmark_map.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | null | null | null | examples/lowlevel/benchmark_map.cpp | hrissan/crablib | db86e5f52acddcc233aec755d5fce0e6f19c0e21 | [
"MIT"
] | null | null | null | // Copyright (c) 2007-2020, Grigory Buteyko aka Hrissan
// Licensed under the MIT License. See LICENSE for details.
#include <array>
#include <chrono>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <random>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include... | 33.911591 | 115 | 0.639071 |
af5e21470c196899820ebe9cf8bd7082c1cde99a | 834 | cpp | C++ | Language_Coder/문자열2/형성평가/FormativeString201.cpp | NadanKim/CodingTest_JUNGOL | f1f448eb5a107b59bfa196c2682ba89e89431358 | [
"MIT"
] | null | null | null | Language_Coder/문자열2/형성평가/FormativeString201.cpp | NadanKim/CodingTest_JUNGOL | f1f448eb5a107b59bfa196c2682ba89e89431358 | [
"MIT"
] | null | null | null | Language_Coder/문자열2/형성평가/FormativeString201.cpp | NadanKim/CodingTest_JUNGOL | f1f448eb5a107b59bfa196c2682ba89e89431358 | [
"MIT"
] | null | null | null | #include "FormativeString201.h"
/// <summary>
/// 문제
/// 공백을 포함한 문자열을 입력받아 각 단어로 분리하여 문자열 배열에 저장한 후 입력순서의 반대 순서로 출력하는 프로그램을 작성하시오.
/// 문자열의 길이는 100자 이하이다.
///
/// 입력 예
/// C++ Programing jjang!!
///
/// 출력 예
/// jjang!!
/// Programing
/// C++
///
/// Hint!
/// [문장을 단어로 나누기](http://comkiwer.tistory.com/entry/C-CPP-... | 21.947368 | 182 | 0.609113 |
af60f971a6f1c6055b70c3a18f62b8330d3fd656 | 439 | cpp | C++ | libs/libc/source/string/memccpy.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 16 | 2019-03-14T19:45:02.000Z | 2022-02-06T19:18:08.000Z | libs/libc/source/string/memccpy.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 1 | 2020-05-08T08:40:02.000Z | 2020-05-08T13:27:59.000Z | libs/libc/source/string/memccpy.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 2 | 2021-01-16T20:42:05.000Z | 2021-12-01T23:37:18.000Z | // memccpy.cpp
// Copyright (c) 2014 - 2016, zhiayang
// Licensed under the Apache License Version 2.0.
#include <stddef.h>
extern "C" void* memccpy(void* dest_ptr, const void* src_ptr, int c, size_t n)
{
unsigned char* dest = (unsigned char*) dest_ptr;
const unsigned char* src = (const unsigned char*) src_ptr;
for... | 25.823529 | 78 | 0.649203 |
af661942888ffecea18cb24d30e3d05615c1592e | 3,693 | cpp | C++ | gm/daa.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | gm/daa.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | gm/daa.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkFont.h"
#include "include/core/SkPaint.h"
#include "include/co... | 27.766917 | 94 | 0.541565 |
af6865b70dca6d51f0e12fc6ac104705796886d2 | 1,670 | hpp | C++ | apps/stochastic_lasso/src/prox_grad.hpp | daiwei89/wdai_petuum_public | 4068859897061201d0a63630a3da6011b0d0f75f | [
"BSD-3-Clause"
] | null | null | null | apps/stochastic_lasso/src/prox_grad.hpp | daiwei89/wdai_petuum_public | 4068859897061201d0a63630a3da6011b0d0f75f | [
"BSD-3-Clause"
] | null | null | null | apps/stochastic_lasso/src/prox_grad.hpp | daiwei89/wdai_petuum_public | 4068859897061201d0a63630a3da6011b0d0f75f | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <vector>
#include <ml/include/ml.hpp>
#include <petuum_ps_common/include/petuum_ps.hpp>
#include <random>
namespace lasso {
struct ProxGradConfig {
int worker_rank = -1;
int feature_start = 0;
int feature_end = 0;
int num_samples = 0;
int num_reps = 1;
};
class ProxGrad {
public:
P... | 25.30303 | 68 | 0.691617 |
af69030ff4cfb16d97d5be413074405e5b354d61 | 883 | cxx | C++ | panda/src/gobj/timerQueryContext.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | panda/src/gobj/timerQueryContext.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | panda/src/gobj/timerQueryContext.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file timerQueryContext.cxx
... | 28.483871 | 78 | 0.730464 |
af6c046a383a54748e3ec6ccb3a3a7a5f9d7014b | 18,315 | cpp | C++ | termsrv/newclient/clshell/propperf.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | termsrv/newclient/clshell/propperf.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | termsrv/newclient/clshell/propperf.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //
// propperf.cpp: local resources property sheet dialog proc
//
// Tab E
//
// Copyright Microsoft Corporation 2000
// nadima
#include "stdafx.h"
#define TRC_GROUP TRC_GROUP_UI
#define TRC_FILE "propperf"
#include <atrcapi.h>
#include "sh.h"
#include "commctrl.h"
#include "propperf.h"
CPr... | 27.173591 | 82 | 0.546219 |
af6c3a5fa03dab6a87d9a3abe48f4804956e52cf | 1,287 | hpp | C++ | library/sha256/sha256.hpp | shuyangsun/ssy_blockchain | 846c3758ddeb6717b8e7425a9ad89eda5eceb7ab | [
"MIT"
] | null | null | null | library/sha256/sha256.hpp | shuyangsun/ssy_blockchain | 846c3758ddeb6717b8e7425a9ad89eda5eceb7ab | [
"MIT"
] | null | null | null | library/sha256/sha256.hpp | shuyangsun/ssy_blockchain | 846c3758ddeb6717b8e7425a9ad89eda5eceb7ab | [
"MIT"
] | null | null | null | /*********************************************************************
* Filename: sha256.h
* Author: Brad Conte (brad AT bradconte.com)
* Copyright:
* Disclaimer: This code is presented "as is" without any guarantees.
* Details: Defines the API for the corresponding SHA1 implementation.
**********************... | 36.771429 | 92 | 0.523699 |
af6de3fd4345760aea98549bb776b82adb22984a | 603 | cpp | C++ | VehicleIR.cpp | tcklpl/remotevehicle-vehicle | 49c9a7fd455e9c9246077b20bf192f3805d6c873 | [
"MIT"
] | null | null | null | VehicleIR.cpp | tcklpl/remotevehicle-vehicle | 49c9a7fd455e9c9246077b20bf192f3805d6c873 | [
"MIT"
] | null | null | null | VehicleIR.cpp | tcklpl/remotevehicle-vehicle | 49c9a7fd455e9c9246077b20bf192f3805d6c873 | [
"MIT"
] | null | null | null | /*
RemoteVehicle - library for controlling a remote vehicle using a ESP32CAM board.
Created by Luan Negroni Sibinel, August 24, 2021.
Released under the MIT license.
*/
#include "VehicleIR.h"
VehicleIR::VehicleIR(int8_t panalog, int8_t pdigital) {
_panalog = panalog;
_pdigital = pdigital;
if (_... | 25.125 | 84 | 0.660033 |
af6e73cb9cc01c2facf801835c69d271e7115792 | 7,182 | cpp | C++ | src/wmecore/UiObjectOld.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/wmecore/UiObjectOld.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/wmecore/UiObjectOld.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | // This file is part of Wintermute Engine
// For conditions of distribution and use, see copyright notice in license.txt
#include "Wme.h"
#include "UiObjectOld.h"
#include "UiObjectFactory.h"
#include "ContentManager.h"
#include "ElementCollection.h"
#include "Sprite.h"
#include "XmlUtil.h"
namespace Wme... | 25.468085 | 125 | 0.536062 |
af6e84b677151341d0b68349539afe102963feb1 | 413 | cpp | C++ | cpp/ql/src/jsf/4.17 Types/AV Rule 147.cpp | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | cpp/ql/src/jsf/4.17 Types/AV Rule 147.cpp | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | cpp/ql/src/jsf/4.17 Types/AV Rule 147.cpp | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | // Wrong: floating point bit implementation exposed by union with bit field.
// Endianness and different floating-point implementations across architectures
// as well as different packing methods across compilers could make this behave
// incorrectly.
typedef union {
float float_num;
struct {
unsigned ... | 31.769231 | 79 | 0.711864 |
af73ccd755f8939eaefe068d90b89b9d27790bde | 5,783 | cpp | C++ | XFree86-3.3/xc/lib/pex5/PEX5-def.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | XFree86-3.3/xc/lib/pex5/PEX5-def.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | XFree86-3.3/xc/lib/pex5/PEX5-def.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | LIBRARY PEX5
VERSION LIBRARY_VERSION
EXPORTS
PEXAccumulateState
PEXAddToNameSet
PEXAnnotationText
PEXAnnotationText2D
PEXApplicationData
PEXBeginPickAll
PEXBeginPickOne
PEXBeginRendering
PEXBeginStructure
PEXBuildTransform
PEXBuildTransform2D
PEXCellArray
PEXCellArray2D
PEXChangeNameSet
PEXChangePickDevi... | 20.362676 | 68 | 0.898496 |
af774e896c3c26f1dd8eac933d891f0007b6d59f | 3,048 | cpp | C++ | source/buffer.cpp | gnader/glutils | d80ec61eecfc1ea2555efd5f52317a54a86289cd | [
"MIT"
] | null | null | null | source/buffer.cpp | gnader/glutils | d80ec61eecfc1ea2555efd5f52317a54a86289cd | [
"MIT"
] | null | null | null | source/buffer.cpp | gnader/glutils | d80ec61eecfc1ea2555efd5f52317a54a86289cd | [
"MIT"
] | null | null | null | /**
* This file is part of gltoolbox
*
* MIT License
*
* Copyright (c) 2021 Georges Nader
*
* 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 wi... | 23.8125 | 86 | 0.69521 |
af7b6ea6d128439d18c9fff9b840644ddb98f9d1 | 2,779 | cpp | C++ | 10.1.1.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | 10.1.1.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | 10.1.1.cpp | luckylove/extra | 8d27ec0e62bdc2ab6a261d197b455fea07120a55 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | // program to quick short the linked list
// first of all create the linked list
#include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node* next;
};
void push(struct node **head,int data1)
{
struct node* newnode=NULL;
newnode=(struct node*)malloc(sizeof(struct node));
newnode->data=d... | 21.21374 | 101 | 0.558834 |
af7d7ff58aa66834699fd90068f50fdaa921635a | 4,318 | cpp | C++ | Engine/Source/Runtime/Engine/Private/SpotLight.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Runtime/Engine/Private/SpotLight.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Runtime/Engine/Private/SpotLight.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Engine/SpotLight.h"
#include "Components/ArrowComponent.h"
#include "Components/SpotLightComponent.h"
ASpotLight::ASpotLight(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer.SetDefaultSubobjectClass<USpotLightComponent>(TEXT... | 30.408451 | 138 | 0.787633 |
502d2f4ef3dfaf8e96f415818e968aa727d067f8 | 26,232 | cpp | C++ | vuecepc/client/VueceNativeClientImplWin.cpp | vuece/vuece-hub-win | 9d09ca44ec44b48e4ef422872f27572d06a1b140 | [
"MIT"
] | null | null | null | vuecepc/client/VueceNativeClientImplWin.cpp | vuece/vuece-hub-win | 9d09ca44ec44b48e4ef422872f27572d06a1b140 | [
"MIT"
] | null | null | null | vuecepc/client/VueceNativeClientImplWin.cpp | vuece/vuece-hub-win | 9d09ca44ec44b48e4ef422872f27572d06a1b140 | [
"MIT"
] | null | null | null | #include "VueceNativeClientImplWin.h"
#include <cstdio>
#include <iostream>
#include <time.h>
#include <iomanip>
#include <cstdio>
#include <cstring>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include "talk/xmpp/constants.h"
#include "talk/base/logging.h"
#include "talk/base/flags.h"
#... | 32.06846 | 179 | 0.679437 |
5038382f91b12e996e0a51390909ea21e6dce422 | 4,239 | cpp | C++ | source/primitive/Box.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/primitive/Box.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/primitive/Box.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | #include "raytracing/primitive/Box.h"
#include "raytracing/maths/Ray.h"
#include "raytracing/maths/Normal.h"
#include "raytracing/utilities/ShadeRec.h"
#include "raytracing/utilities/Constants.h"
namespace rt
{
Box::Box(const Point3D& min, const Point3D& max)
{
x0 = min.x;
y0 = min.y;
z0 = min.z;
x1 = max.x;
y1... | 18.592105 | 69 | 0.538099 |
5039bf2a4c5eb2fd363d549f3197c97c53c2b558 | 1,142 | cpp | C++ | viewastrattapubblicazionestampata.cpp | mtodescato/ProgettoPAO | b73e871381e56d6b2917db8a7d227213c514f35b | [
"BSD-3-Clause"
] | null | null | null | viewastrattapubblicazionestampata.cpp | mtodescato/ProgettoPAO | b73e871381e56d6b2917db8a7d227213c514f35b | [
"BSD-3-Clause"
] | null | null | null | viewastrattapubblicazionestampata.cpp | mtodescato/ProgettoPAO | b73e871381e56d6b2917db8a7d227213c514f35b | [
"BSD-3-Clause"
] | null | null | null | #include "viewastrattapubblicazionestampata.h"
viewAstrattaPubblicazioneStampata::viewAstrattaPubblicazioneStampata(astrattaPubblicazione *p , QWidget* parent): viewAstrattaPubblicazione(p,parent){}
void viewAstrattaPubblicazioneStampata::caricaCampiDati() {
viewAstrattaPubblicazione::caricaCampiDati();
astrattaP... | 40.785714 | 151 | 0.801226 |
503c2a584d5c9e29ceb89ad561296769117282b3 | 900 | cpp | C++ | Chapter_4_Mathematical_Logical_Bitwise_and_Shift_Operators/Program3.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | 1 | 2020-12-03T15:26:20.000Z | 2020-12-03T15:26:20.000Z | Chapter_4_Mathematical_Logical_Bitwise_and_Shift_Operators/Program3.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | Chapter_4_Mathematical_Logical_Bitwise_and_Shift_Operators/Program3.cpp | othneildrew/CPP-Programming-Practices | 27a20c00b395446a7d2e0dd4b199f4cd9e35591b | [
"MIT"
] | null | null | null | // Chapter 4: Program 3
/***
Write a C++ program to read diameter of a circle. Find perimeter and area
of the circle.
**/
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main(void)
{
const double PI = 3.141592;
double Diameter, Radius, Perimeter, Area;
cout << "\n\t This... | 25 | 78 | 0.625556 |
50408d093de66e680842e2a1f4f0f26a9a96ebbf | 1,569 | cpp | C++ | oneflow/api/python/framework/py_distribute.cpp | jackalcooper/oneflow-1 | 16d261ea52a56c28db8e79dbbc79032b4804d09e | [
"Apache-2.0"
] | 2 | 2021-09-10T00:19:49.000Z | 2021-11-16T11:27:20.000Z | oneflow/api/python/framework/py_distribute.cpp | jackalcooper/oneflow-1 | 16d261ea52a56c28db8e79dbbc79032b4804d09e | [
"Apache-2.0"
] | null | null | null | oneflow/api/python/framework/py_distribute.cpp | jackalcooper/oneflow-1 | 16d261ea52a56c28db8e79dbbc79032b4804d09e | [
"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... | 37.357143 | 97 | 0.765456 |
504493f429a04b09093b61d7db8abfe5b45161f9 | 4,993 | cpp | C++ | kmean-segmentation.cpp | erikj23/segmentation-context | 72e51cf54092bbbe87a2aa1c85e595fbf927b53f | [
"MIT"
] | null | null | null | kmean-segmentation.cpp | erikj23/segmentation-context | 72e51cf54092bbbe87a2aa1c85e595fbf927b53f | [
"MIT"
] | null | null | null | kmean-segmentation.cpp | erikj23/segmentation-context | 72e51cf54092bbbe87a2aa1c85e595fbf927b53f | [
"MIT"
] | null | null | null |
// 11 2019, Authors:
// Jeremy Deng
// Erik Maldonado
//std
#include <String>
#include <iostream>
#include <direct.h>
//opencv
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
//namespace
using namespace cv;
using namespace std;
//k mean constant
const int ITER = 10;
cons... | 34.673611 | 161 | 0.694773 |
50534627e9e01b4312b826745b1493b5659a67cb | 471 | hpp | C++ | src/Util/ImGui.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | 1 | 2022-02-10T04:41:57.000Z | 2022-02-10T04:41:57.000Z | src/Util/ImGui.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | src/Util/ImGui.hpp | D3r3k23/DrkCraft | 5eaae66f558ce84f18de702b4227ca8d2cfe534f | [
"MIT"
] | null | null | null | #ifndef DRK_UTIL_IMGUI_HPP
#define DRK_UTIL_IMGUI_HPP
#include "Core/Base.hpp"
#include <imgui/imgui.h>
#include <string_view>
namespace DrkCraft::DrkImGui
{
void BeginFullscreen(std::string_view name, ImGuiWindowFlags flags=0);
void BeginCentered(std::string_view name, const ImVec2& size, ImGuiWindowFlags ... | 24.789474 | 92 | 0.766454 |
5053ea1a70f91478eda466acf7088a52a44b6e56 | 1,030 | hpp | C++ | include/deferred/detail/deferred_type_helper.hpp | JohnJocoo/deferred_heap | 700510b62bec42c77b52016ac15091b77d5dc619 | [
"BSL-1.0"
] | null | null | null | include/deferred/detail/deferred_type_helper.hpp | JohnJocoo/deferred_heap | 700510b62bec42c77b52016ac15091b77d5dc619 | [
"BSL-1.0"
] | null | null | null | include/deferred/detail/deferred_type_helper.hpp | JohnJocoo/deferred_heap | 700510b62bec42c77b52016ac15091b77d5dc619 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <typeinfo>
namespace def::detail
{
struct memory_chunk_header;
/// Base for helper for deferred-enabled type.
class type_helper
{
public:
explicit type_helper(const std::type_info& info,
std::size_t bytes_object,
std::size_t bytes_allocator... | 23.953488 | 67 | 0.691262 |
50558d1556bcc275404f44ab2c051caf2b0aac33 | 10,708 | cpp | C++ | SPHINXsys/src/shared/particles/base_particles.cpp | SoftwareImpacts/SIMPAC-2020-34 | eb2d69e61548eaa11b5a9c20e312d135c5d857f5 | [
"Apache-2.0"
] | 2 | 2020-09-24T07:39:22.000Z | 2021-04-24T22:12:49.000Z | SPHINXsys/src/shared/particles/base_particles.cpp | SoftwareImpacts/SIMPAC-2020-34 | eb2d69e61548eaa11b5a9c20e312d135c5d857f5 | [
"Apache-2.0"
] | null | null | null | SPHINXsys/src/shared/particles/base_particles.cpp | SoftwareImpacts/SIMPAC-2020-34 | eb2d69e61548eaa11b5a9c20e312d135c5d857f5 | [
"Apache-2.0"
] | null | null | null | /**
* @file base_particles.cpp
* @brief Definition of funcitons declared in base_particles.h
* @author Xiangyu Hu and Chi Zhang
* @version 0.1
*/
/**
* @file base_particles.cpp
* @author Luhui Han, Chi ZHang and Xiangyu Hu
* @version 0.1
*/
#include "base_particles.h"
#include "base_material.h"
#include... | 43.004016 | 115 | 0.607677 |
5055bedb072381a75762b2d8ba9b253cba5b000f | 4,331 | cpp | C++ | src/test/value_parser_path_test.cpp | RichardCory/svgpp | 801e0142c61c88cf2898da157fb96dc04af1b8b0 | [
"BSL-1.0"
] | 428 | 2015-01-05T17:13:54.000Z | 2022-03-31T08:25:47.000Z | src/test/value_parser_path_test.cpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 61 | 2015-01-08T14:32:27.000Z | 2021-12-06T16:55:11.000Z | src/test/value_parser_path_test.cpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 90 | 2015-05-19T04:56:46.000Z | 2022-03-26T16:42:50.000Z | #include <svgpp/parser/path_data.hpp>
// Only compilation is checked
using namespace svgpp;
namespace
{
struct PathContext1
{
public:
void path_move_to(double x, double y, tag::coordinate::absolute)
{}
void path_line_to(double x, double y, tag::coordinate::absolute)
{}
void path_cubic_bez... | 28.682119 | 87 | 0.471946 |
506105a73ca0d4f36849cca455ce3168ace87b90 | 2,920 | cpp | C++ | src/GUI/GHGUINotchedSliderMonitorXMLLoader.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | src/GUI/GHGUINotchedSliderMonitorXMLLoader.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | src/GUI/GHGUINotchedSliderMonitorXMLLoader.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | // Copyright Golden Hammer Software
#include "GHGUINotchedSliderMonitorXMLLoader.h"
#include "GHGUINotchedSliderMonitor.h"
#include "GHXMLNode.h"
#include "GHPlatform/GHDebugMessage.h"
#include "GHXMLObjFactory.h"
GHGUINotchedSliderMonitorXMLLoader::GHGUINotchedSliderMonitorXMLLoader(GHPropertyContainer& appProps, con... | 31.397849 | 175 | 0.719521 |
50667bb533ec77b5b334e531e0a1994367d5e6f8 | 729 | cpp | C++ | rtx/core/material/lambert.cpp | musyoku/chainer-gqn-playground | 657bb931d2c531ff8f078fcb1686bbf1999afa7f | [
"MIT"
] | 28 | 2018-09-06T18:08:28.000Z | 2021-12-19T13:30:41.000Z | rtx/core/material/lambert.cpp | musyoku/chainer-gqn-playground | 657bb931d2c531ff8f078fcb1686bbf1999afa7f | [
"MIT"
] | 3 | 2019-03-01T02:50:15.000Z | 2019-06-25T08:12:21.000Z | rtx/core/material/lambert.cpp | musyoku/chainer-gqn-playground | 657bb931d2c531ff8f078fcb1686bbf1999afa7f | [
"MIT"
] | 8 | 2018-10-26T12:05:52.000Z | 2019-09-04T05:14:24.000Z | #include "lambert.h"
#include "../header/enum.h"
#include "../header/struct.h"
#include <cstring>
namespace rtx {
LambertMaterial::LambertMaterial(float albedo)
{
_albedo = albedo;
}
float LambertMaterial::albedo() const
{
return _albedo;
}
int LambertMaterial::type() const
{
return RTXMaterialTypeLambert;... | 24.3 | 105 | 0.748971 |
506c250b70618bfcc89ad1ff716504527bdbcba2 | 315 | cpp | C++ | json-parser002/lib/json_null.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | json-parser002/lib/json_null.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | json-parser002/lib/json_null.cpp | syohex/cpp-study | 598c2afbe77c6d4ba88f549d3e99f97b5bf81acb | [
"MIT"
] | null | null | null | #include "json_null.h"
JsonNull::JsonNull() : JsonValue(JsonType::kNull) {
}
bool JsonNull::IsNull() const noexcept {
return true;
}
bool JsonNull::operator==(const JsonValue &value) const noexcept {
return type_ == value.Type();
}
std::nullptr_t JsonNull::Value() const noexcept {
return nullptr;
}
| 19.6875 | 66 | 0.695238 |
506dfecc2144a37e75afd887e1b31649f9366d3d | 407 | cpp | C++ | src/processor.cpp | zenocoz/SystemMonitor | a2a96d6b8061085a6ab19c40cf26cd732bebaf7f | [
"MIT"
] | null | null | null | src/processor.cpp | zenocoz/SystemMonitor | a2a96d6b8061085a6ab19c40cf26cd732bebaf7f | [
"MIT"
] | null | null | null | src/processor.cpp | zenocoz/SystemMonitor | a2a96d6b8061085a6ab19c40cf26cd732bebaf7f | [
"MIT"
] | null | null | null | #include "processor.h"
#include <vector>
#include <string>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
using namespace LinuxParser;
float Processor::Utilization() {
vector<string> cpu = LinuxParser::CpuUtilization();
// utilization = active/t... | 18.5 | 55 | 0.683047 |
506ef4cf2c88601c2d36fd1a64a0e4ca520d25ad | 1,586 | hpp | C++ | rds/src/rds_3.hpp | epfl-lasa/rds | 574b3881dbaf4fdcd785dd96ba4c451928454b40 | [
"MIT"
] | 12 | 2020-08-18T09:01:50.000Z | 2022-03-17T19:53:30.000Z | rds/src/rds_3.hpp | epfl-lasa/rds | 574b3881dbaf4fdcd785dd96ba4c451928454b40 | [
"MIT"
] | null | null | null | rds/src/rds_3.hpp | epfl-lasa/rds | 574b3881dbaf4fdcd785dd96ba4c451928454b40 | [
"MIT"
] | 1 | 2021-08-25T13:12:55.000Z | 2021-08-25T13:12:55.000Z | #ifndef RDS_3_HPP
#define RDS_3_HPP
#include "geometry.hpp"
#include "capsule.hpp"
#include <vector>
namespace Geometry2D
{
struct RDS3
{
RDS3(float tau, float delta, float v_max);
void computeCorrectedVelocity(const Capsule& robot_shape, const Vec2& p_ref, const Vec2& v_nominal_p_ref,
const std::vector<Add... | 36.883721 | 107 | 0.77995 |
507098b06484c39551ae4b05fd71ecee34241a0a | 1,078 | cpp | C++ | core/dawn_player/error.cpp | lxrite/DawnPlayer | ba3c7f1f01d7609213492f4c9ba4a91454fb7365 | [
"MIT"
] | 55 | 2015-03-22T16:19:03.000Z | 2022-03-18T18:11:39.000Z | core/dawn_player/error.cpp | lxrite/DawnPlayer | ba3c7f1f01d7609213492f4c9ba4a91454fb7365 | [
"MIT"
] | 2 | 2015-04-09T07:42:08.000Z | 2015-07-26T02:56:06.000Z | core/dawn_player/error.cpp | lxrite/DawnPlayer | ba3c7f1f01d7609213492f4c9ba4a91454fb7365 | [
"MIT"
] | 11 | 2015-04-29T04:52:19.000Z | 2019-12-31T09:36:53.000Z | /*
* error.cpp:
*
* Copyright (C) 2015-2017 Light Lin <blog.poxiao.me> All Rights Reserved.
*
*/
#include "error.hpp"
namespace dawn_player {
open_error::open_error(const std::string& what_arg, open_error_code ec)
: what_msg(what_arg), error_code(ec)
{}
const char* open_error::what() c... | 20.339623 | 90 | 0.67718 |
507124ab12997218d83444d5919d7225bc69a457 | 996 | cpp | C++ | UVa 10454 - Trexpression/sample/10454 - Trexpression.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 10454 - Trexpression/sample/10454 - Trexpression.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 10454 - Trexpression/sample/10454 - Trexpression.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std;
const int MAXN = 256;
long long dp[MAXN][MAXN];
char s[MAXN];
long long dfs(int l, int r) {
if (l == r) return 1;
if (dp[l][r] != -1) return dp[l][r];
long long &ret = dp[l][r];
ret = 0;
int left = 0, o1 = 0, o2 = 0;
for (int i ... | 17.785714 | 38 | 0.422691 |
5072d895de952d882d7d0940f0497c0c83e79859 | 17,031 | cc | C++ | lib/matrices/wimax_864_0_66B.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | 8 | 2018-10-29T14:56:05.000Z | 2022-02-10T09:42:21.000Z | lib/matrices/wimax_864_0_66B.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | null | null | null | lib/matrices/wimax_864_0_66B.cc | iamviji/wimax_ldpc_lib | e07f102eb9eefb5c906345ec024aa08f7db871e9 | [
"MIT"
] | 4 | 2018-10-16T20:12:56.000Z | 2020-10-19T07:37:05.000Z | #include "matrices.h"
#ifdef Z_36
unsigned int wimax_864_0_66B_D = 35;
unsigned int wimax_864_0_66B_X = 6;
int16_t wimax_864_0_66B[288][11] = {
{0, 79, 161, 234, 301, 390, 449, 509, 611, 612, -1},
{1, 80, 162, 235, 302, 391, 450, 510, 576, 613, -1},
{2, 81, 163, 236, 303, 392, 451, 511, 577, 614, -1},
... | 57.151007 | 59 | 0.509424 |
5074b492e1d6cad9623d045c0e74c142a9cf7662 | 299 | cpp | C++ | c2017/wd/wd186/main.cpp | wmjtxt/c-exercise | d22336460cab825dd7ae98297bbe46febedfcece | [
"MIT"
] | null | null | null | c2017/wd/wd186/main.cpp | wmjtxt/c-exercise | d22336460cab825dd7ae98297bbe46febedfcece | [
"MIT"
] | null | null | null | c2017/wd/wd186/main.cpp | wmjtxt/c-exercise | d22336460cab825dd7ae98297bbe46febedfcece | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
char a[100], b[100];
gets(a);
gets(b);
int lena = -1, i = 0;
while(a[++lena] != '\0');
while(b[i] != '\0'){
a[lena++] = b[i++];
}
a[lena] = '\0';
cout << a << endl;
return 0;
}
| 15.736842 | 29 | 0.441472 |
5077ad214c26a83540c8a9dd7d899a649af72049 | 18,125 | cxx | C++ | main/stoc/source/proxy_factory/proxyfac.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/stoc/source/proxy_factory/proxyfac.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/stoc/source/proxy_factory/proxyfac.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 33.941948 | 80 | 0.613517 |
507cdeacfef76c4f63da9a526dbb2de19e2ae25d | 5,139 | cpp | C++ | src/vulkan/vulkan-upload.cpp | Impulse21/nvrhi | f272a6595dd0768a8e3419f0075f0edf40d00391 | [
"MIT"
] | 2 | 2021-08-28T23:02:30.000Z | 2021-08-28T23:26:21.000Z | src/vulkan/vulkan-upload.cpp | Impulse21/nvrhi | f272a6595dd0768a8e3419f0075f0edf40d00391 | [
"MIT"
] | null | null | null | src/vulkan/vulkan-upload.cpp | Impulse21/nvrhi | f272a6595dd0768a8e3419f0075f0edf40d00391 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use,... | 34.26 | 110 | 0.622884 |
5081c7d33af9647d83b7b6a0905c91a566c1685a | 856 | cpp | C++ | codeforces/587div3/B.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/587div3/B.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/587div3/B.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define vec vector<long long int>
#define ll long long
#define rnd mt19937_64 rng(chrono::high_resolu... | 17.12 | 91 | 0.593458 |
5088bd07be39f03921292ee9a9af76c4f3883ed7 | 1,067 | cpp | C++ | competitive programming/leetcode/905. Sort Array By Parity.cpp | kashyap99saksham/Code | 96658d0920eb79c007701d2a3cc9dbf453d78f96 | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/leetcode/905. Sort Array By Parity.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/leetcode/905. Sort Array By Parity.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.
You may return any answer array that satisfies this condition.
Example 1:
Input: [3,1,2,4]
Output: [2,4,3,1]
The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be acce... | 16.936508 | 139 | 0.492971 |
5089af9edf6629885ea3f89dd4f8105bc13337a7 | 1,585 | hpp | C++ | infra/util/Allocator.hpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 54 | 2019-04-02T14:42:54.000Z | 2022-03-20T23:02:19.000Z | infra/util/Allocator.hpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 32 | 2019-03-26T06:57:29.000Z | 2022-03-25T00:04:44.000Z | infra/util/Allocator.hpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 20 | 2019-03-25T15:49:49.000Z | 2022-03-20T23:02:22.000Z | #ifndef INFRA_ALLOCATOR_HPP
#define INFRA_ALLOCATOR_HPP
#include <memory>
namespace infra
{
class AllocatorBase
{
protected:
AllocatorBase() = default;
AllocatorBase(const AllocatorBase& other) = delete;
AllocatorBase& operator=(const AllocatorBase& other) = delete;
~Alloca... | 22.323944 | 70 | 0.634069 |
50906cdb433c4f11ffd5eb9ae7025dfe569be67a | 5,564 | cxx | C++ | templates/ws/src/clan/lang.cxx | roadnarrows-robotics/rnmake | 6446cda6b36d66f6ee945db128a052caaf9c89ee | [
"MIT"
] | null | null | null | templates/ws/src/clan/lang.cxx | roadnarrows-robotics/rnmake | 6446cda6b36d66f6ee945db128a052caaf9c89ee | [
"MIT"
] | null | null | null | templates/ws/src/clan/lang.cxx | roadnarrows-robotics/rnmake | 6446cda6b36d66f6ee945db128a052caaf9c89ee | [
"MIT"
] | null | null | null | /*! \file
*
* \brief Languages spoken back in the day.
*
* \pkgfile{@FILENAME@}
* \pkgcomponent{Application,clan}
* \author @PKG_AUTHOR@
*
* \LegalBegin
* @PKG_LICENSE@
* \LegalEnd
*/
#include <string>
#include "@PKG_NAME@/stone_tools.h"
#include "@PKG_NAME@/fire.h"
#include "utils.h"
#include "grammar.h"... | 28.387755 | 79 | 0.550324 |
509162b1e05af53522a2ceacc5e9f25212b7add7 | 1,862 | hpp | C++ | Simple++/MemoryAllocation.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/MemoryAllocation.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/MemoryAllocation.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null |
MemoryAllocation::MemoryAllocation( void ) {
}
MemoryAllocation::MemoryAllocation( unsigned long memoryAddress, unsigned long memorySize, const StringASCII & allocationFileName, unsigned int lineNumber ) {
this -> memoryAddress = memoryAddress;
this -> memorySize = memorySize;
this -> allocationFileName = allocati... | 25.861111 | 158 | 0.767991 |
5092b7a93fb0f11d68b4be55fba304143508ec79 | 3,454 | cc | C++ | homeworks/NonConformingCrouzeixRaviartFiniteElements/templates/test/nonconformingcrouzeixraviartfiniteelements_test.cc | padomu/NPDECODES | d2bc5b0d2d5e76e4d5b8ab6948c82f902211182e | [
"MIT"
] | 15 | 2019-04-29T11:28:56.000Z | 2022-03-22T05:10:58.000Z | homeworks/NonConformingCrouzeixRaviartFiniteElements/templates/test/nonconformingcrouzeixraviartfiniteelements_test.cc | padomu/NPDECODES | d2bc5b0d2d5e76e4d5b8ab6948c82f902211182e | [
"MIT"
] | 12 | 2020-02-29T15:05:58.000Z | 2022-02-21T13:51:07.000Z | homeworks/NonConformingCrouzeixRaviartFiniteElements/templates/test/nonconformingcrouzeixraviartfiniteelements_test.cc | padomu/NPDECODES | d2bc5b0d2d5e76e4d5b8ab6948c82f902211182e | [
"MIT"
] | 26 | 2020-01-09T15:59:23.000Z | 2022-03-24T16:27:33.000Z | /**
* @file
* @brief NPDE homework NonConformingCrouzeixRaviartFiniteElements code
* @author Anian Ruoss
* @date 18.03.2019
* @copyright Developed at ETH Zurich
*/
#include <gtest/gtest.h>
#include <lf/base/base.h>
#include <lf/mesh/mesh.h>
#include <lf/mesh/test_utils/test_meshes.h>
#include <Eigen/Core>
#i... | 30.034783 | 80 | 0.718587 |
5092c1c3cc00fc3ec505ba5fe0f40c04f6f003dd | 1,891 | hpp | C++ | lab_4/matrixline_methods.hpp | DrStarland/bmstu_AA_2020 | acbb0c76d5763c06db0230025423e0fbb4382a9f | [
"Apache-2.0"
] | null | null | null | lab_4/matrixline_methods.hpp | DrStarland/bmstu_AA_2020 | acbb0c76d5763c06db0230025423e0fbb4382a9f | [
"Apache-2.0"
] | null | null | null | lab_4/matrixline_methods.hpp | DrStarland/bmstu_AA_2020 | acbb0c76d5763c06db0230025423e0fbb4382a9f | [
"Apache-2.0"
] | null | null | null | #ifndef MATRIXLINE_METHODS_HPP
#define MATRIXLINE_METHODS_HPP
#include "matrix.h"
template <typename T>
Matrix<T>::MatrixLine::MatrixLine(size_t len) : MatrixLine(len, nullptr) {}
template <typename T>
Matrix<T>::MatrixLine::MatrixLine(MatrixLine &©) { this->_move(std::move(copy)); }
template <typename T... | 32.603448 | 93 | 0.649392 |
50a14eb15659a1a668e106113a140777c86b501d | 5,979 | cpp | C++ | test/android/jni.cpp | 10110111/GLFFT | 78176d4480bc3675327bf2bcfd80d5dae1820081 | [
"MIT"
] | 176 | 2015-08-17T20:47:10.000Z | 2022-03-30T09:14:33.000Z | test/android/jni.cpp | 10110111/GLFFT | 78176d4480bc3675327bf2bcfd80d5dae1820081 | [
"MIT"
] | 6 | 2017-09-21T15:55:44.000Z | 2020-11-07T03:15:44.000Z | test/android/jni.cpp | 10110111/GLFFT | 78176d4480bc3675327bf2bcfd80d5dae1820081 | [
"MIT"
] | 28 | 2016-02-28T04:37:50.000Z | 2022-02-27T12:35:55.000Z | /* Copyright (C) 2015 Hans-Kristian Arntzen <maister@archlinux.us>
*
* 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... | 26.811659 | 129 | 0.646596 |
50a3fa8ab19998e82f47f1c1c383e3b87fac989a | 1,752 | hpp | C++ | src/ScreenServer.hpp | RobinSinghNanda/Home-assistant-display | 6f59104012c0956b54d4b55e190aa89941c2c1af | [
"MIT"
] | 2 | 2020-10-23T19:53:56.000Z | 2020-11-06T08:59:48.000Z | src/ScreenServer.hpp | RobinSinghNanda/Home-assistant-display | 6f59104012c0956b54d4b55e190aa89941c2c1af | [
"MIT"
] | null | null | null | src/ScreenServer.hpp | RobinSinghNanda/Home-assistant-display | 6f59104012c0956b54d4b55e190aa89941c2c1af | [
"MIT"
] | null | null | null | #ifndef __SCREENSERVER_H__
#define __SCREENSERVER_H__
#include "Arduino.h"
#include "TFT_eSPI.h"
//====================================================================================
// Definitions
//====================================================================================... | 42.731707 | 86 | 0.639269 |
50a45c4fbd2c43884473a27479cb5a6ba43ee08e | 2,841 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/media/tv/CTvStreamConfigBuilder.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/media/tv/CTvStreamConfigBuilder.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/media/tv/CTvStreamConfigBuilder.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... | 28.128713 | 75 | 0.67969 |
50a62b87724180c6555f2d0fdc10c3b01f22255d | 2,388 | cpp | C++ | dia/ParserEditorUndoCommand.cpp | BKEngine/Creator | 5cc08fb828866cfa970951a14e41c38ecd471a8d | [
"CNRI-Python"
] | 25 | 2016-11-20T15:33:09.000Z | 2022-02-22T09:35:20.000Z | dia/ParserEditorUndoCommand.cpp | BKEngine/Creator | 5cc08fb828866cfa970951a14e41c38ecd471a8d | [
"CNRI-Python"
] | 3 | 2017-05-25T23:19:44.000Z | 2019-07-10T02:18:58.000Z | dia/ParserEditorUndoCommand.cpp | BKEngine/Creator | 5cc08fb828866cfa970951a14e41c38ecd471a8d | [
"CNRI-Python"
] | 8 | 2016-12-23T22:40:04.000Z | 2021-08-09T04:43:11.000Z | #include "ParserEditorUndoCommand.h"
#include "ParserEditorTreeModel.h"
#include "ParserEditorTreeItem.h"
InsertRowsCommand::InsertRowsCommand(ParserEditorTreeModel *model, int row, int count, const QModelIndex &parent)
: model(model)
, row(row)
, count(count)
, parent(parent)
{
}
void InsertRowsCommand::undo()
{... | 19.258065 | 147 | 0.730318 |
50a9bcb4065cd1238e71b3334375115a91c76786 | 32,206 | cpp | C++ | trace_generator/src/gettrace.cpp | hcp922/ramulator | 337132dae4b9a2f99dbb78254b52d34e78122a70 | [
"MIT"
] | null | null | null | trace_generator/src/gettrace.cpp | hcp922/ramulator | 337132dae4b9a2f99dbb78254b52d34e78122a70 | [
"MIT"
] | null | null | null | trace_generator/src/gettrace.cpp | hcp922/ramulator | 337132dae4b9a2f99dbb78254b52d34e78122a70 | [
"MIT"
] | null | null | null | /*
* This file contains an ISA-portable PIN tool for tracing memory accesses.
*/
#include <stdio.h>
#include <iostream>
#include <string>
#include <sstream>
#include <unistd.h>
#include <fstream>
#include "pin.H"
#include "Cache.h"
#include "Cache.cpp"
#include "Config.h"
#include "Config.cpp"
#include "PPFileParse... | 36.227222 | 155 | 0.609824 |
50ad8d9aaf234fe34a638dc709ead023c6ee48dd | 6,631 | cc | C++ | src/image-utils.cc | kyawakyawa/image-utils | af1ab717da7934555f701067f1d69077a69c35b0 | [
"MIT"
] | null | null | null | src/image-utils.cc | kyawakyawa/image-utils | af1ab717da7934555f701067f1d69077a69c35b0 | [
"MIT"
] | null | null | null | src/image-utils.cc | kyawakyawa/image-utils | af1ab717da7934555f701067f1d69077a69c35b0 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2020 kyawakyawa
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, publish, dis... | 32.346341 | 80 | 0.655708 |
27084f8412eae86805d019686bfd70a04db14971 | 6,627 | hpp | C++ | dof-mgr/src/Panzer_IntrepidFieldPattern.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | dof-mgr/src/Panzer_IntrepidFieldPattern.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | dof-mgr/src/Panzer_IntrepidFieldPattern.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... | 43.598684 | 108 | 0.689 |
270aff09f7b49dba066873ece2b73065be1fbf58 | 13,021 | hpp | C++ | include/boost/gil/io/device.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/io/device.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/io/device.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | //
// Copyright 2007-2012 Christian Henning, Andreas Pokorny
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_IO_DEVICE_HPP
#define BOOST_GIL_IO_DEVICE_HPP
#include <boost/gil/detail/mp11.hpp... | 25.531373 | 80 | 0.651179 |
270e8b3df3b7bd8b52e67cb3eea40f08be838f4c | 1,135 | hpp | C++ | e-Paper/src/WiFiHandler.hpp | PDA-UR/Dumb-e-Paper | 99aecce5fbcb64d32b7e47809df393e0e2e7fab4 | [
"MIT"
] | 2 | 2019-01-30T13:48:14.000Z | 2021-10-30T16:11:03.000Z | e-Paper/src/WiFiHandler.hpp | PDA-UR/Dumb-e-Paper | 99aecce5fbcb64d32b7e47809df393e0e2e7fab4 | [
"MIT"
] | null | null | null | e-Paper/src/WiFiHandler.hpp | PDA-UR/Dumb-e-Paper | 99aecce5fbcb64d32b7e47809df393e0e2e7fab4 | [
"MIT"
] | 2 | 2018-02-14T12:45:59.000Z | 2021-12-17T20:57:02.000Z | #ifndef __WIFIHANDLER_H_INCLUDED__
#define __WIFIHANDLER_H_INCLUDED__
/**
* @defgroup WiFi Handler
*/
/** @addtogroup WiFi Handler */
/*@{*/
#include "main.hpp"
#include <WiFi.h>
#include <WiFiMulti.h>
/**
* @brief Could be anything but must also be changed in python script
*/
const int PORT = 1516;
enum class... | 17.461538 | 69 | 0.629956 |
2716f46542abf6879e15307467bf50c0275d7865 | 1,125 | cpp | C++ | t_rex.cpp | alexycruz1/proyecto2 | e4817969d610473d02f2b4c68c69d629ef93bef4 | [
"MIT"
] | null | null | null | t_rex.cpp | alexycruz1/proyecto2 | e4817969d610473d02f2b4c68c69d629ef93bef4 | [
"MIT"
] | null | null | null | t_rex.cpp | alexycruz1/proyecto2 | e4817969d610473d02f2b4c68c69d629ef93bef4 | [
"MIT"
] | null | null | null | #include "dinosaurio.h"
#include "t_rex.h"
#include <string>
#include <sstream>
using std::string;
using std::stringstream;
t_rex::t_rex(string nombre, char genero, int peso, int altura, int esperanza_vida, string era, string territorio, int hambre, int edad):dinosaurio(nombre,genero,peso,altura,esperanza_vida,era,ter... | 18.75 | 219 | 0.587556 |
271977f61e3e2b952a3d340389cb5a28802382f2 | 2,378 | cpp | C++ | src/graphics/backend/depth_pass.cpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 7 | 2020-04-28T11:01:55.000Z | 2022-02-22T09:59:33.000Z | src/graphics/backend/depth_pass.cpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 2 | 2021-09-03T12:58:06.000Z | 2021-09-20T20:07:33.000Z | src/graphics/backend/depth_pass.cpp | NotAPenguin0/Andromeda | 69ac0e448dbc7d5ba8f5915177f333bd8cd1a1b4 | [
"MIT"
] | 1 | 2021-09-03T12:56:25.000Z | 2021-09-03T12:56:25.000Z | #include <andromeda/graphics/backend/depth_pass.hpp>
#include <andromeda/graphics/backend/mesh_draw.hpp>
namespace andromeda::gfx::backend {
void create_depth_only_pipeline(gfx::Context& ctx, VkSampleCountFlagBits samples, float sample_ratio) {
ph::PipelineCreateInfo pci = ph::PipelineBuilder::create(ctx, "depth_... | 48.530612 | 185 | 0.671152 |
271a387131255dd1d036ea05cd4a62a2a4d84380 | 11,061 | cpp | C++ | src/hostif/snmpAdapter/snmpAdapter.cpp | rdkcmf/rdk-tr69hostif | 5d9042b968eca933481e111e352828402732ec26 | [
"Apache-2.0"
] | 3 | 2018-11-23T05:08:54.000Z | 2019-10-18T12:52:38.000Z | src/hostif/snmpAdapter/snmpAdapter.cpp | rdkcmf/rdk-tr69hostif | 5d9042b968eca933481e111e352828402732ec26 | [
"Apache-2.0"
] | null | null | null | src/hostif/snmpAdapter/snmpAdapter.cpp | rdkcmf/rdk-tr69hostif | 5d9042b968eca933481e111e352828402732ec26 | [
"Apache-2.0"
] | 1 | 2018-08-16T19:15:22.000Z | 2018-08-16T19:15:22.000Z | /*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2017 RDK Management
*
* 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 ... | 29.339523 | 163 | 0.574541 |
271a6bb390cdea7444ec97670599d0ec5b539f6f | 344 | cpp | C++ | hilbert_mapper/src/hilbert_mapper_node.cpp | Jaeyoung-Lim/mav_hilbertmap_planning | 96df718a04953df3b39f080a7e33565407ad6be1 | [
"BSD-3-Clause"
] | 4 | 2019-01-16T16:18:16.000Z | 2019-06-06T14:30:56.000Z | hilbert_mapper/src/hilbert_mapper_node.cpp | Wayne-xixi/mav_hilbertmap_planning | 96df718a04953df3b39f080a7e33565407ad6be1 | [
"BSD-3-Clause"
] | 16 | 2019-01-24T12:44:28.000Z | 2021-01-08T01:44:41.000Z | hilbert_mapper/src/hilbert_mapper_node.cpp | Wayne-xixi/mav_hilbertmap_planning | 96df718a04953df3b39f080a7e33565407ad6be1 | [
"BSD-3-Clause"
] | 2 | 2020-01-10T09:31:49.000Z | 2021-01-02T23:25:53.000Z | // July/2018, ETHZ, Jaeyoung Lim, jalim@student.ethz.ch
#include "hilbert_mapper/hilbert_mapper.h"
//using namespace RAI;
int main(int argc, char** argv) {
ros::init(argc,argv,"geometric_controller");
ros::NodeHandle nh("");
ros::NodeHandle nh_private("~");
HilbertMapper Hilbertmapper(nh, nh_private);
ros... | 22.933333 | 56 | 0.700581 |
271cba3e5d38e9e79acafa3f44fabf815445a617 | 422 | hpp | C++ | src/as3/as3_function_call.hpp | sweetkristas/swiftly | 0b5c2badc88637b8bdaa841a45d1babd8f12a703 | [
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | src/as3/as3_function_call.hpp | sweetkristas/swiftly | 0b5c2badc88637b8bdaa841a45d1babd8f12a703 | [
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | src/as3/as3_function_call.hpp | sweetkristas/swiftly | 0b5c2badc88637b8bdaa841a45d1babd8f12a703 | [
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "as3_object.hpp"
#include "as3_value.hpp"
#include "../swf_environment.hpp"
namespace avm2
{
class function_call
{
public:
function_call();
~function_call();
size_t arg_count() const { return arg_count_; }
as3_value_ptr arg(size_t n) const;
private:
as3_object_ptr this_;
as3_valu... | 17.583333 | 49 | 0.727488 |
271f8d927109f5c645a03e80ac2afa4111899984 | 4,779 | cpp | C++ | test/tbmv.cpp | Idein/qmkl6 | ac3e631ca89293c562db24b78576eef66426ab65 | [
"BSD-3-Clause"
] | 38 | 2020-09-24T08:46:33.000Z | 2022-03-23T01:40:03.000Z | test/tbmv.cpp | Idein/qmkl6 | ac3e631ca89293c562db24b78576eef66426ab65 | [
"BSD-3-Clause"
] | 3 | 2021-02-03T08:33:55.000Z | 2021-08-24T00:04:05.000Z | test/tbmv.cpp | Idein/qmkl6 | ac3e631ca89293c562db24b78576eef66426ab65 | [
"BSD-3-Clause"
] | 6 | 2020-09-24T13:40:19.000Z | 2021-06-08T19:35:43.000Z | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <random>
#include <type_traits>
#include "cblasdefs.h"
#include "cxxutils.hpp"
template <typename T>
static void naive_tbmv([[maybe_unused]] const CBLAS_L... | 33.1875 | 80 | 0.596359 |
2721f2a2a3764ae828f43dbe3adff321a7e0c752 | 1,244 | cc | C++ | csrc/inline_histogram_weighted.cc | dwferrer/loom | 8d0261028a4ccc1d1250ceff5f20a435fca0bd60 | [
"MIT"
] | null | null | null | csrc/inline_histogram_weighted.cc | dwferrer/loom | 8d0261028a4ccc1d1250ceff5f20a435fca0bd60 | [
"MIT"
] | null | null | null | csrc/inline_histogram_weighted.cc | dwferrer/loom | 8d0261028a4ccc1d1250ceff5f20a435fca0bd60 | [
"MIT"
] | null | null | null | //fast c based histogram code for generating the 1-d histogram of an array destructively. Requires Intel's tbb to be included and linked seperately, along with std::algorithm
//we assume that data, data_x_weights are already sorted
//{FLOAT} * c_data = data;//({FLOAT} *) PyArray_DATA(PyArray_GETCONTIGUOUS(data));
... | 24.392157 | 174 | 0.639871 |
2726f408337596cb11dd98ed1f186d3fb3fbc84c | 659 | cpp | C++ | pointers_class_memory/class7.cpp | Sinchiguano/Algorithmic-Toolbox | 7e9dda588a72356fc43fa276016fc3486be47556 | [
"BSD-2-Clause"
] | null | null | null | pointers_class_memory/class7.cpp | Sinchiguano/Algorithmic-Toolbox | 7e9dda588a72356fc43fa276016fc3486be47556 | [
"BSD-2-Clause"
] | null | null | null | pointers_class_memory/class7.cpp | Sinchiguano/Algorithmic-Toolbox | 7e9dda588a72356fc43fa276016fc3486be47556 | [
"BSD-2-Clause"
] | null | null | null | /*
* class7.cpp
* Copyright (C) 2018 CESAR SINCHIGUANO <cesarsinchiguano@hotmail.es>
*
* Distributed under terms of the BSD license.
*/
#include <iostream>
#include <string>
//g++ -std=c++14 -o temp sort.cpp
using namespace std;
class Example4
{
string* ptr;
public:
// constructors:
Example4() :... | 15.325581 | 69 | 0.622155 |
272c01ee9f86a8fc7dad48ccdd942e8495d58c09 | 3,773 | cpp | C++ | sim/src/main.cpp | bentobox-dev/bento-box | 3e10c62f586c1251529e059b6af515d4d03c60e9 | [
"MIT"
] | 1 | 2021-01-02T02:50:15.000Z | 2021-01-02T02:50:15.000Z | sim/src/main.cpp | joeltio/bento-box | 3e10c62f586c1251529e059b6af515d4d03c60e9 | [
"MIT"
] | 48 | 2020-10-21T07:42:30.000Z | 2021-02-15T19:34:55.000Z | sim/src/main.cpp | joeltio/bento-box | 3e10c62f586c1251529e059b6af515d4d03c60e9 | [
"MIT"
] | null | null | null | /*
* bentobox-sim
* Main Entrypoint
*/
#include <component/textureComponent.h>
#include <core/graphicsContext.h>
#include <core/systemContext.h>
#include <core/windowContext.h>
#include <ics.h>
#include <system/render.h>
#include <network/grpcServer.h>
#include <service/engineService.h>
using grpc::Service;
using n... | 32.808696 | 79 | 0.702624 |
272cc7f0fb1519b31760bc68b706d7eab0933a6a | 1,128 | cpp | C++ | tag_hierarchy/utils/filters.cpp | equinor/ioc-hierarchy-service | e60ad3eaae3c4b71ec5d8d6d64913c8463b749e9 | [
"MIT"
] | 3 | 2021-12-22T07:36:26.000Z | 2022-03-29T07:24:28.000Z | tag_hierarchy/utils/filters.cpp | equinor/ioc-hierarchy-service | e60ad3eaae3c4b71ec5d8d6d64913c8463b749e9 | [
"MIT"
] | 10 | 2020-08-03T13:00:30.000Z | 2021-12-27T10:08:54.000Z | tag_hierarchy/utils/filters.cpp | equinor/ioc-hierarchy-service | e60ad3eaae3c4b71ec5d8d6d64913c8463b749e9 | [
"MIT"
] | null | null | null | #include "tag_hierarchy/utils/filters.h"
std::tuple<std::vector<std::string>, std::vector<std::string>, std::vector<std::string>>
TagHierarchyUtils::Filters::GetFilterSettings(NodeType& command_map) {
auto l1filter = std::vector<std::string>();
if (command_map.count("l1filter") &&
command_map["l1filter... | 47 | 100 | 0.669326 |
272df97d7c2eeeb96e5bdcd9f8ff41d0e7495246 | 2,719 | cc | C++ | mace/ops/reduce_mean_benchmark.cc | nihui/mace | e13c3f66d3543a46248849294f6606eba769964d | [
"Apache-2.0"
] | 5 | 2018-06-28T02:39:33.000Z | 2021-05-14T08:12:12.000Z | mace/ops/reduce_mean_benchmark.cc | fly-jelly/mace | e13c3f66d3543a46248849294f6606eba769964d | [
"Apache-2.0"
] | null | null | null | mace/ops/reduce_mean_benchmark.cc | fly-jelly/mace | e13c3f66d3543a46248849294f6606eba769964d | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2017 XiaoMi All rights reserved.
//
#include "mace/core/operator.h"
#include "mace/core/runtime/opencl/opencl_runtime.h"
#include "mace/core/testing/test_benchmark.h"
#include "mace/ops/ops_test_util.h"
namespace mace {
namespace ops {
namespace test {
namespace {
template <DeviceType D, typename... | 31.616279 | 79 | 0.552409 |
272ef38e2bdd26b398d8e764eadb4f729ee15768 | 3,715 | cpp | C++ | Src/Vessel/Atlantis/Common.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | Src/Vessel/Atlantis/Common.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | Src/Vessel/Atlantis/Common.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | // ==============================================================
// ORBITER MODULE: Atlantis
// Part of the ORBITER SDK
// Copyright (C) 2001-2003 Martin Schweiger
// All rights reserved
//
// Common.cpp
// Utility functions common to multiple Atlantis-relate... | 40.380435 | 150 | 0.61319 |
27305309e16b21f4b91241bdb63de3e3ea06e5ee | 6,215 | cxx | C++ | EVE/EveDet/AliEveEMCALSModuleData.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | EVE/EveDet/AliEveEMCALSModuleData.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | EVE/EveDet/AliEveEMCALSModuleData.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 27.258772 | 124 | 0.684312 |
27307444b2da9e8959408ee53db2556cc14f1982 | 578 | cpp | C++ | codes/HDU/hdu5510.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5510.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5510.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 505;
const int maxm = 2005;
int N, F[maxn];
char str[maxn][maxm];
int main () {
int cas;
scanf("%d", &cas);
for (int kcas = 1; kcas <= cas; kcas++) {
scanf("%d", &N);
for (int i = 0; i < N; i++) scanf("%s", str[i])... | 18.645161 | 55 | 0.50346 |
27326fc91fe01e24ab157440f0a5b456c35c17f4 | 5,121 | cpp | C++ | EsteganografiaC++/src/codificar.cpp | nen155/Metodolog-a-de-Programaci-n | 587d9a231d1c6ef1fa59f895fdf69d30eb4c598a | [
"MIT"
] | null | null | null | EsteganografiaC++/src/codificar.cpp | nen155/Metodolog-a-de-Programaci-n | 587d9a231d1c6ef1fa59f895fdf69d30eb4c598a | [
"MIT"
] | null | null | null | EsteganografiaC++/src/codificar.cpp | nen155/Metodolog-a-de-Programaci-n | 587d9a231d1c6ef1fa59f895fdf69d30eb4c598a | [
"MIT"
] | null | null | null | /**
* @file codificar.cpp
* @brief Fichero que contiene las funciones para codificar un mensaje en una imagen, tanto para introducirlo como para leerlo.
*
* Permite la E/S de archivos de tipo PGM,PPM
*
*/
#include "imagenES.h"
#include "codificar.h"
#include <iostream>
#include <cstring>
using namespace s... | 34.369128 | 213 | 0.737161 |
27328566237e55700f7895bf93f686526d64ee99 | 3,341 | cpp | C++ | tests/src/QtSettingsUtilsTests.cpp | oclero/qtutils | 477d65211a15bffabe11d9f0b526c917893ae8ee | [
"MIT"
] | null | null | null | tests/src/QtSettingsUtilsTests.cpp | oclero/qtutils | 477d65211a15bffabe11d9f0b526c917893ae8ee | [
"MIT"
] | null | null | null | tests/src/QtSettingsUtilsTests.cpp | oclero/qtutils | 477d65211a15bffabe11d9f0b526c917893ae8ee | [
"MIT"
] | null | null | null | #include "QtSettingsUtilsTests.hpp"
#include <QTest>
#include <oclero/QtSettingsUtils.hpp>
constexpr auto SETTINGS_KEY = "Toto";
using namespace oclero;
void QtSettingsUtilsTests::init() {
{
QSettings qSettings;
qSettings.remove(SETTINGS_KEY);
}
}
void QtSettingsUtilsTests::cleanup() {
{
QSettin... | 29.052174 | 88 | 0.747082 |
2734ad912439e8edf65e2870e1d3906a68a2fbd6 | 13,656 | hpp | C++ | src/Memory/AffixAllocator.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | src/Memory/AffixAllocator.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | 29 | 2016-08-01T14:50:12.000Z | 2017-12-17T20:28:27.000Z | src/Memory/AffixAllocator.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2016 Ronnie Brohn (EpicBrownie)
//
// Distributed under The MIT License (MIT).
// (See accompanying file License.txt or copy at
// https://opensource.org/licens... | 33.80198 | 131 | 0.719098 |
2738cad2ad0f4fd1993a2d3118846cbfdce350c9 | 6,275 | cpp | C++ | src/morda/widgets/label/NinePatch.cpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | 1 | 2018-10-27T05:07:05.000Z | 2018-10-27T05:07:05.000Z | src/morda/widgets/label/NinePatch.cpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | null | null | null | src/morda/widgets/label/NinePatch.cpp | Mactor2018/morda | 7194f973783b4472b8671fbb52e8c96e8c972b90 | [
"MIT"
] | null | null | null | #include <utki/util.hpp>
#include <utki/types.hpp>
#include "../../Morda.hpp"
#include "../../util/util.hpp"
#include "../proxy/ResizeProxy.hpp"
#include "NinePatch.hpp"
using namespace morda;
namespace{
const char* ninePatchLayout_c = R"qwertyuiop(
Row{
layout{dx{fill}}
Image{
name{morda_lt}
}
... | 23.501873 | 135 | 0.631076 |
27398d4050dfe38b74e7be92aaa139b91bd37c3e | 988 | cpp | C++ | src/input/InputConfiguration.cpp | jaspervdj/JVGS | 59be35ed61b355b445b82bf32796c0f229e21b60 | [
"WTFPL"
] | 31 | 2015-02-02T04:51:10.000Z | 2021-02-20T10:04:41.000Z | src/input/InputConfiguration.cpp | jaspervdj/JVGS | 59be35ed61b355b445b82bf32796c0f229e21b60 | [
"WTFPL"
] | 2 | 2016-08-30T09:26:31.000Z | 2016-09-14T20:01:20.000Z | src/input/InputConfiguration.cpp | jaspervdj/JVGS | 59be35ed61b355b445b82bf32796c0f229e21b60 | [
"WTFPL"
] | 7 | 2015-02-02T05:02:09.000Z | 2021-12-24T06:53:01.000Z | #include "InputConfiguration.h"
#include "../core/LogManager.h"
using namespace jvgs::core;
using namespace std;
namespace jvgs
{
namespace input
{
InputConfiguration::InputConfiguration()
{
}
InputConfiguration::~InputConfiguration()
{
}
InputConfigu... | 23.52381 | 77 | 0.554656 |
273cc8c66a8ab4bb13e42655a91d801541d9d465 | 1,609 | hpp | C++ | src/Core/Window.hpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | 1 | 2022-01-24T18:15:56.000Z | 2022-01-24T18:15:56.000Z | src/Core/Window.hpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | src/Core/Window.hpp | llGuy/Ondine | 325c2d3ea5bd5ef5456b0181c53ad227571fada3 | [
"MIT"
] | null | null | null | #pragma once
#include "IO.hpp"
#include <string_view>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include "Event.hpp"
#include "Time.hpp"
#include "Utils.hpp"
namespace Ondine::Core {
enum class WindowMode {
Fullscreen,
Windowed
};
using SurfaceCreationProc = void(*)(
struct VkInstance_T *instance,
stru... | 22.347222 | 70 | 0.747669 |
2744efcee9ee1238eb1db6f9df77044fae3d1a37 | 156 | hpp | C++ | game_server/src/server_ui.hpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | 5 | 2017-07-20T10:36:23.000Z | 2018-01-30T16:18:31.000Z | game_server/src/server_ui.hpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | game_server/src/server_ui.hpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | #ifndef SERVER_UI_H
#define SERVER_UI_H
#include <log.hpp>
extern Game *game;
void signal_interpreter(int s);
void init_server_ui(Logger *log);
#endif
| 12 | 33 | 0.762821 |
2746c88ef909c7345bcb0470a83a4b4fe1616962 | 69,161 | cpp | C++ | cdl/CDL_interface.cpp | disi33/libRetroReversing | 1c825a1971820dbb73fcc96aa444408f6b65803d | [
"MIT"
] | null | null | null | cdl/CDL_interface.cpp | disi33/libRetroReversing | 1c825a1971820dbb73fcc96aa444408f6b65803d | [
"MIT"
] | null | null | null | cdl/CDL_interface.cpp | disi33/libRetroReversing | 1c825a1971820dbb73fcc96aa444408f6b65803d | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#endif
#include <windows.h>
#else
#include <sys/time.h>
#endif
#include <stdio.h>
#include <map>
#include <fstream>
#include <iostream>
#include <sstream>
#include "../cdl/CDL_FileWriting.hpp"
#i... | 40.186519 | 312 | 0.672836 |
274859fcc3c14d6621bb5912b64e71495ce6c751 | 518 | cpp | C++ | C++/402.remove-k-digits.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2018-03-06T05:07:22.000Z | 2018-03-06T05:07:22.000Z | C++/402.remove-k-digits.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2021-12-24T16:41:02.000Z | 2021-12-24T16:41:02.000Z | C++/402.remove-k-digits.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | null | null | null | class Solution {
public:
string removeKdigits(string num, int k) {
int n = num.size();
int leave = n - k;
string res = "";
for (int i = 0; i < num.size(); i++) {
while (k && res.back() > num[i]) {
k--;
res.pop_back();
}
... | 25.9 | 47 | 0.3861 |
27491f61d7399b5fc86b9abe57f70c2615370f62 | 1,688 | cpp | C++ | vs2017/ui/mainwindow/workbench/AppStoreList.cpp | cheechang/cppcc | 0292e9a9b27e0579970c83b4f6a75dcdae1558bf | [
"MIT"
] | null | null | null | vs2017/ui/mainwindow/workbench/AppStoreList.cpp | cheechang/cppcc | 0292e9a9b27e0579970c83b4f6a75dcdae1558bf | [
"MIT"
] | null | null | null | vs2017/ui/mainwindow/workbench/AppStoreList.cpp | cheechang/cppcc | 0292e9a9b27e0579970c83b4f6a75dcdae1558bf | [
"MIT"
] | null | null | null | #include "AppStoreList.h"
#include <QListWidgetItem>
#include "AppStoreListItem.h"
namespace ui{
AppStoreList::AppStoreList(QWidget *parent)
: QListWidget(parent)
{
m_pAppMgr = APPMGRCONTROL;
CONNECT_SERVICE(GetApplication(std::vector<data::AppInfo>));
if (m_pAppMgr != CNull)
{
m_pAppMgr->getAllApplic... | 25.969231 | 75 | 0.716232 |
2749c9f90bf8cb43cd61b4ac13cdec61c38d4d45 | 407 | cpp | C++ | Course 201809/homework/11/C1.cpp | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | Course 201809/homework/11/C1.cpp | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | Course 201809/homework/11/C1.cpp | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
int main()
{
int **a,n ,m;
scanf("%d%d",&n,&m);
a=(int **)malloc(sizeof(int *)*n);
int i=0,j=0;
for(;i<n;i++)
{
a[i]=(int *)malloc(sizeof(int *)*m);
for(int j=0;j<m;j++) scanf("%d",&a[i][j]);
}
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++) printf("%d ",a[i][j] *... | 14.034483 | 53 | 0.46683 |
274b82dafccc64c402de9bd66315b1e8e8c56fd1 | 16,654 | cpp | C++ | regex_to_min_dfa.cpp | avinal/C_ode | f056da37c8c56a4a62a06351c2ea3773d16d1b11 | [
"MIT"
] | 1 | 2020-08-23T20:21:35.000Z | 2020-08-23T20:21:35.000Z | regex_to_min_dfa.cpp | avinal/C_ode | f056da37c8c56a4a62a06351c2ea3773d16d1b11 | [
"MIT"
] | null | null | null | regex_to_min_dfa.cpp | avinal/C_ode | f056da37c8c56a4a62a06351c2ea3773d16d1b11 | [
"MIT"
] | 2 | 2019-03-18T10:22:13.000Z | 2021-01-03T10:12:28.000Z | #include <iostream>
#include <vector>
#include <stack>
#include <set>
#include <queue>
#include <map>
#include<string>
using namespace std;
struct nst
{
vector<int> a[2], e;
bool f = 0;
};
vector<nst> nfa;
struct dst
{
int a[2] = {-1, -1};
bool f = 0;
};
vector<dst> dfa;
stack<int> st;
int nfa_si... | 25.119155 | 110 | 0.402066 |
274cbc7004d0d77513d27a2b76ca6151e5f7e538 | 2,942 | cc | C++ | cc/ipc/render_pass_struct_traits.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | cc/ipc/render_pass_struct_traits.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | cc/ipc/render_pass_struct_traits.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.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 "cc/ipc/render_pass_struct_traits.h"
#include "base/numerics/safe_conversions.h"
#include "cc/ipc/shared_quad_state_struct_traits.h"
namespace ... | 37.717949 | 80 | 0.692386 |
274ce82c885e09cfd9385abc9b22a029ac0417a1 | 1,731 | cc | C++ | netlibcc/base/Socket.cc | kohakus/tiny-netlib | da9998ee06f4e2eb5ebcaf0e383196269dea1f33 | [
"MIT"
] | 1 | 2021-03-05T10:14:27.000Z | 2021-03-05T10:14:27.000Z | netlibcc/base/Socket.cc | kohakus/tiny-netlib | da9998ee06f4e2eb5ebcaf0e383196269dea1f33 | [
"MIT"
] | null | null | null | netlibcc/base/Socket.cc | kohakus/tiny-netlib | da9998ee06f4e2eb5ebcaf0e383196269dea1f33 | [
"MIT"
] | null | null | null | #include "netlibcc/base/Socket.h"
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <cstdio>
#include "netlibcc/base/InetAddr.h"
#include "netlibcc/base/SockOps.h"
#include "netlibcc/core/Logger.h"
namespace netlibcc {
namespace net {
Socket::~Socket() {
sockets::close(sockfd_);
}
void Socket::listen()... | 25.835821 | 79 | 0.638937 |
27525b161306b860b02f28e342178932470bbecf | 21,657 | cpp | C++ | source/add-ons/Quantize/Quantize.cpp | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 2 | 2020-10-05T14:18:09.000Z | 2021-08-05T02:56:43.000Z | source/add-ons/Quantize/Quantize.cpp | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 26 | 2017-01-10T19:54:10.000Z | 2020-12-17T07:28:57.000Z | source/add-ons/Quantize/Quantize.cpp | thaflo/Becasso | 9a1411913ee46f4dfa5116def50ebc41495dad28 | [
"MIT"
] | 5 | 2017-12-14T18:46:08.000Z | 2020-12-13T18:22:34.000Z | // © 2000-2001 Sum Software
#define BUILDING_ADDON
#include "BecassoAddOn.h"
#include "AddOnSupport.h"
#include "Slider.h"
#include <string.h>
#include <CheckBox.h>
#include <RadioButton.h>
#include <Box.h>
#define bzero(p,n) memset (p, 0, n)
int16 *gLut = 0;
#define FOREGROUND 0
#define BACKGROUND 1
#define R_BIT... | 26.540441 | 128 | 0.586323 |
27529bcb836fad9ead65325abb59bf5376582755 | 5,373 | cpp | C++ | 55479c656d65636fdb050000/code/RobotAI.cpp | MechEmpire/Mechempire-meches | aa95b15f061f4179c9061595e73c7127587cc4df | [
"Apache-2.0"
] | 1 | 2020-07-29T05:50:16.000Z | 2020-07-29T05:50:16.000Z | 55479ffa6d65636fdb0d0000/code/RobotAI.cpp | MechEmpire/Mechempire-meches | aa95b15f061f4179c9061595e73c7127587cc4df | [
"Apache-2.0"
] | null | null | null | 55479ffa6d65636fdb0d0000/code/RobotAI.cpp | MechEmpire/Mechempire-meches | aa95b15f061f4179c9061595e73c7127587cc4df | [
"Apache-2.0"
] | null | null | null | #include "RobotAI.h"
#include<math.h>
#include<iostream>
using namespace std;
RobotAI::RobotAI()
{
}
RobotAI::~RobotAI()
{
}
//-----------------------------------------------------
//1.必须完成的战斗核心
//-----------------------------------------------------
struct node
{
double x,y,dis;
};
d... | 17.166134 | 95 | 0.577703 |
27535f079eb414837f11b815cca167a6b7fe7654 | 10,997 | cpp | C++ | webkit/WebCore/dom/Text.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | webkit/WebCore/dom/Text.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | webkit/WebCore/dom/Text.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library Genera... | 29.964578 | 145 | 0.626807 |