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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac3125dafa9e64c2e8ea6a66b08374a304a43b93 | 2,492 | cpp | C++ | Main.cpp | dushyant-shukla/take-me-home | 4e7793dc253cf7be55fc6456276d8b17f4de3218 | [
"Apache-2.0"
] | null | null | null | Main.cpp | dushyant-shukla/take-me-home | 4e7793dc253cf7be55fc6456276d8b17f4de3218 | [
"Apache-2.0"
] | null | null | null | Main.cpp | dushyant-shukla/take-me-home | 4e7793dc253cf7be55fc6456276d8b17f4de3218 | [
"Apache-2.0"
] | null | null | null | /* Start Header -------------------------------------------------------
Copyright (C) 2017 DigiPen Institute of Technology.
Reproduction or disclosure of this file or its contents without the prior
written consent of DigiPen Institute of Technology is prohibited.
File Name: Main.cpp
Purpose: Main game loop
Language: C/... | 28.976744 | 85 | 0.717496 | dushyant-shukla |
ac31d147c9ca399883791c3aa7cf2ca33c5664c5 | 1,544 | cpp | C++ | 2017.8.17/a.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | 2017.8.17/a.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | 2017.8.17/a.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
#include<string>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<stack>
#define ll long long
#define read(a) scanf("%d",&a);
using namespace std;
const int maxn=1e5+5;
string s[maxn];
int N... | 15.44 | 58 | 0.542098 | 1980744819 |
ac32efebadd4b44baf21acc04ae2cd208dafc741 | 635 | cpp | C++ | solutions/beecrowd/1285/1285.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 18 | 2015-01-22T04:08:51.000Z | 2022-01-08T22:36:47.000Z | solutions/beecrowd/1285/1285.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 4 | 2016-04-25T12:32:46.000Z | 2021-06-15T18:01:30.000Z | solutions/beecrowd/1285/1285.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 25 | 2015-03-02T06:21:51.000Z | 2021-09-12T20:49:21.000Z | #include <cstdint>
#include <iostream>
#include <map>
bool has_repeated(int16_t n) {
int16_t cur;
std::map< int16_t, bool > previous;
while (n) {
cur = n % 10;
if (previous[cur]) {
return true;
}
previous[cur] = true;
n = static_cast< int16_t >(n / 10);
... | 17.638889 | 43 | 0.445669 | deniscostadsc |
ac368927254d73d2cd53384474db706eb604681b | 1,879 | cpp | C++ | sdk/boost_1_30_0/libs/mpl/test/bind.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2020-01-30T12:51:49.000Z | 2020-08-31T08:36:49.000Z | sdk/boost_1_30_0/libs/mpl/test/bind.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/libs/mpl/test/bind.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | //-----------------------------------------------------------------------------
// boost mpl/test/bind.cpp source file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2001-02
// Peter ... | 30.803279 | 92 | 0.61735 | acidicMercury8 |
ac3902e3a4f4960c4ea7542847291ca6dd6e151a | 533 | cpp | C++ | legacy/fpvlaptracker_bt/rssi.cpp | warhog/fpvlaptracker-firmware | f25afb3c88335acb9621f5b6dd7116bcf573c5ad | [
"MIT"
] | null | null | null | legacy/fpvlaptracker_bt/rssi.cpp | warhog/fpvlaptracker-firmware | f25afb3c88335acb9621f5b6dd7116bcf573c5ad | [
"MIT"
] | null | null | null | legacy/fpvlaptracker_bt/rssi.cpp | warhog/fpvlaptracker-firmware | f25afb3c88335acb9621f5b6dd7116bcf573c5ad | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "rssi.h"
Rssi::Rssi() {
pinMode(A0, INPUT);
}
void Rssi::process() {
this->currentRssiRawValue = this->measure();
this->filter();
}
unsigned int Rssi::scan() {
return this->measure();
}
void Rssi::filter() {
this->currentRssiValue = this->currentRssiValue * 0.75 + this->cur... | 16.65625 | 92 | 0.626642 | warhog |
ac3a57e78215357414f45e0fff0f3ca171d38dbc | 1,460 | hpp | C++ | src/single_thread_rlnc_benchmark/benchmark/write_result.hpp | AgileCloudLab/single-threaded-rlnc-benchmark | 914c18cf408d62f7294f796f386e98740d6fc83d | [
"MIT"
] | null | null | null | src/single_thread_rlnc_benchmark/benchmark/write_result.hpp | AgileCloudLab/single-threaded-rlnc-benchmark | 914c18cf408d62f7294f796f386e98740d6fc83d | [
"MIT"
] | null | null | null | src/single_thread_rlnc_benchmark/benchmark/write_result.hpp | AgileCloudLab/single-threaded-rlnc-benchmark | 914c18cf408d62f7294f796f386e98740d6fc83d | [
"MIT"
] | null | null | null | #pragma once
#include "result.hpp"
#include "../readers/config.hpp"
#include <string>
#include <sstream>
#include <ctime>
#include <iostream>
#include <fstream>
namespace standard_encoder
{
namespace benchmark
{
std::string generate_path(std::string result_path, std::string experiment_name, readers::config& co... | 23.934426 | 108 | 0.557534 | AgileCloudLab |
ac3b15e8ee1531880f947fabf73ac11f76d28d6f | 1,204 | cpp | C++ | contests/leetcode-133/b.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 23 | 2020-03-30T05:44:56.000Z | 2021-09-04T16:00:57.000Z | contests/leetcode-133/b.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 1 | 2020-05-10T15:04:05.000Z | 2020-06-14T01:21:44.000Z | contests/leetcode-133/b.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 6 | 2020-03-30T05:45:04.000Z | 2020-08-13T10:01:39.000Z | #include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
class Solution {
public:
v... | 25.617021 | 76 | 0.480897 | Nightwish-cn |
ac3cbec66042da19af26e2c3beb4897c0af24b74 | 34,855 | cpp | C++ | Core/burn/drv/galaxian/gal_gfx.cpp | atship/FinalBurn-X | 3ee18ccd6efc1bbb3a807d2c206106a5a4000e8d | [
"Apache-2.0"
] | 17 | 2018-05-24T05:20:45.000Z | 2021-12-24T07:27:22.000Z | Core/burn/drv/galaxian/gal_gfx.cpp | atship/FinalBurn-X | 3ee18ccd6efc1bbb3a807d2c206106a5a4000e8d | [
"Apache-2.0"
] | 6 | 2019-01-21T10:55:02.000Z | 2021-02-19T18:47:56.000Z | Core/burn/drv/galaxian/gal_gfx.cpp | atship/FinalBurn-X | 3ee18ccd6efc1bbb3a807d2c206106a5a4000e8d | [
"Apache-2.0"
] | 5 | 2019-01-21T00:45:00.000Z | 2021-07-20T08:34:22.000Z | #include "gal.h"
GalRenderBackground GalRenderBackgroundFunction;
GalCalcPalette GalCalcPaletteFunction;
GalDrawBullet GalDrawBulletsFunction;
GalExtendTileInfo GalExtendTileInfoFunction;
GalExtendSpriteInfo GalExtendSpriteInfoFunction;
GalRenderFrame GalRenderFrameFunction;
UINT8 GalFlipScreenX;
UINT8 GalFlipScreenY... | 26.770353 | 352 | 0.634887 | atship |
ac3daf335b0abcbfae8f308c03102d18ca19722a | 8,174 | cpp | C++ | src/componentLib/websocketServer/WebsocketServer.cpp | tangtgithub/common_robotframe | f098d688bde1d2b2d5d6fac430c98b952621b7c1 | [
"MIT"
] | 5 | 2021-07-21T11:38:09.000Z | 2021-11-26T03:16:09.000Z | src/componentLib/websocketServer/WebsocketServer.cpp | tangtgithub/common_robotframe | f098d688bde1d2b2d5d6fac430c98b952621b7c1 | [
"MIT"
] | null | null | null | src/componentLib/websocketServer/WebsocketServer.cpp | tangtgithub/common_robotframe | f098d688bde1d2b2d5d6fac430c98b952621b7c1 | [
"MIT"
] | null | null | null | #include "WebsocketServer.h"
#include <sys/prctl.h>
#include <chrono>
#include "websocketServerCommon.h"
#include "UdpServerWs.h"
#include "UdpClientWs.h"
WebsocketServer::WebsocketServer()
: m_sessionid(0)
{
m_server.set_access_channels(websocketpp::log::alevel::none);
m_server.init_asio();
m_server.... | 25.867089 | 114 | 0.596036 | tangtgithub |
ac3f4f2db1413e6bb9307ec9355a83fe890d468a | 4,665 | cpp | C++ | src/sources/colorschemes.cpp | Amuwa/TeXpen | d0d7ae74463f88980beb8ceb2958182ac2df021e | [
"MIT"
] | 5 | 2019-03-04T08:47:52.000Z | 2022-01-28T12:53:55.000Z | src/sources/colorschemes.cpp | Amuwa/TeXpen | d0d7ae74463f88980beb8ceb2958182ac2df021e | [
"MIT"
] | 3 | 2019-02-22T05:41:49.000Z | 2020-03-16T13:37:23.000Z | src/sources/colorschemes.cpp | Amuwa/TeXpen | d0d7ae74463f88980beb8ceb2958182ac2df021e | [
"MIT"
] | 7 | 2019-02-22T06:04:13.000Z | 2022-01-28T12:54:15.000Z | // Copyright (C) 2013 Alex-97
// This file is part of textpad-editor.
//
// textpad-editor is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later ve... | 33.321429 | 85 | 0.576849 | Amuwa |
ac3f94d6da833e652b1681c6e1dbc0f5049e3f5b | 2,141 | cpp | C++ | src/amos/overlap.cpp | mariokostelac/asqg2afg | c40862046f04241c9091b5c55e53486953d4d67a | [
"MIT"
] | null | null | null | src/amos/overlap.cpp | mariokostelac/asqg2afg | c40862046f04241c9091b5c55e53486953d4d67a | [
"MIT"
] | 3 | 2015-03-25T16:03:14.000Z | 2015-03-28T10:42:17.000Z | src/amos/overlap.cpp | mariokostelac/asqg2afg | c40862046f04241c9091b5c55e53486953d4d67a | [
"MIT"
] | null | null | null | #include "overlap.h"
using std::endl;
namespace AMOS {
Overlap::Overlap(const uint32_t r1, const uint32_t r2, const char adj, const int32_t ahg, const int32_t bhg, const int32_t scr)
:read1(r1), read2(r2), adjacency(adj), a_hang(ahg), b_hang(bhg), score(scr)
{}
// from http://sourceforge.net/p/amos/mailman... | 33.453125 | 129 | 0.543204 | mariokostelac |
ac42f53847260c7eee0dc2492ba4bd3de38128c4 | 1,311 | cpp | C++ | Source/Collections/collectionspritesheetmodel.cpp | erayzesen/turquoise2D | 33bd2e85169bba4c82c388c1619b2de55065eb7b | [
"Zlib"
] | 13 | 2020-05-24T23:52:48.000Z | 2020-12-01T02:43:03.000Z | Source/Collections/collectionspritesheetmodel.cpp | erayzesen/turquoise2D | 33bd2e85169bba4c82c388c1619b2de55065eb7b | [
"Zlib"
] | 3 | 2020-05-26T22:19:49.000Z | 2020-12-01T09:31:25.000Z | Source/Collections/collectionspritesheetmodel.cpp | erayzesen/turquoise2D | 33bd2e85169bba4c82c388c1619b2de55065eb7b | [
"Zlib"
] | 3 | 2020-05-26T01:35:20.000Z | 2020-05-26T13:51:07.000Z | #include "collectionspritesheetmodel.h"
CollectionSpriteSheetModel::CollectionSpriteSheetModel(QObject *parent) : QStandardItemModel(parent)
{
}
void CollectionSpriteSheetModel::setTarget(QString targetPath)
{
this->clear();
SpriteSheet *spriteSheet=new SpriteSheet(targetPath);
QPixmap resourceImage(spri... | 32.775 | 100 | 0.680397 | erayzesen |
ac44114138b8698bbe2b2385d2e2863ee32d543c | 5,391 | hpp | C++ | src/gDeadCodeDeletion.hpp | lyj-514328/T1010 | f6bd5a75b249abb63f5023f205ead28b133b3dbc | [
"Apache-2.0"
] | null | null | null | src/gDeadCodeDeletion.hpp | lyj-514328/T1010 | f6bd5a75b249abb63f5023f205ead28b133b3dbc | [
"Apache-2.0"
] | null | null | null | src/gDeadCodeDeletion.hpp | lyj-514328/T1010 | f6bd5a75b249abb63f5023f205ead28b133b3dbc | [
"Apache-2.0"
] | null | null | null | #ifndef GDEADCODEDELETION_HPP
#define GDEADCODEDELETION_HPP
#include <queue>
#include "globalPolicyExecutor.hpp"
using namespace std;
class GDeadCodeDeletion:
public GlobalPolicyExecutor
{
public:
GDeadCodeDeletion();
~GDeadCodeDeletion();
void runOptimizer(void);
void printInfoOfOptimizer(void);
bo... | 32.089286 | 82 | 0.540716 | lyj-514328 |
ac44e91b8a2bed7692721a99119874dd88c0d31d | 4,360 | cc | C++ | test/testsupport/file_utils_override.cc | shishuo365/webrtc | 96e60852faaa8ab4cf6477fa92c80a434921625d | [
"BSD-3-Clause"
] | 1 | 2016-06-23T01:26:53.000Z | 2016-06-23T01:26:53.000Z | test/testsupport/file_utils_override.cc | shishuo365/webrtc | 96e60852faaa8ab4cf6477fa92c80a434921625d | [
"BSD-3-Clause"
] | null | null | null | test/testsupport/file_utils_override.cc | shishuo365/webrtc | 96e60852faaa8ab4cf6477fa92c80a434921625d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 27.25 | 80 | 0.730734 | shishuo365 |
ac455735baa60702d641a4def41c190e62e89498 | 4,426 | cc | C++ | allegro_utils.cc | trago/alleigen | cfa8262762e7ed002f987bca0bafbad485b2f72f | [
"MIT"
] | null | null | null | allegro_utils.cc | trago/alleigen | cfa8262762e7ed002f987bca0bafbad485b2f72f | [
"MIT"
] | null | null | null | allegro_utils.cc | trago/alleigen | cfa8262762e7ed002f987bca0bafbad485b2f72f | [
"MIT"
] | null | null | null | //
// Created by julio on 1/31/17.
//
#include "allegro_utils.h"
using namespace Eigen;
void create_gbitmap_from_arrayf(const ArrayXXf &im, ALLEGRO_BITMAP **bitmap)
{
ALLEGRO_BITMAP* current_bitmap;
if(*bitmap != NULL)
al_destroy_bitmap(*bitmap);
current_bitmap = al_get_target_bitmap();
int flags = al_g... | 27.320988 | 78 | 0.684139 | trago |
ac473557fd6afa3f80b11a1141f3ea757486d66a | 1,203 | hpp | C++ | source/framework/benchmark/include/lue/framework/benchmark/algorithm_benchmark_result.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 2 | 2021-02-26T22:45:56.000Z | 2021-05-02T10:28:48.000Z | source/framework/benchmark/include/lue/framework/benchmark/algorithm_benchmark_result.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/benchmark/include/lue/framework/benchmark/algorithm_benchmark_result.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #pragma once
#include "lue/framework/core/define.hpp"
#include <array>
#include <vector>
namespace lue {
namespace benchmark {
class AlgorithmBenchmarkResult
{
public:
using Shape = std::vector<Count>;
AlgorithmBenchmarkResult()=default;
explicit AlgorithmBenchmarkResult(
... | 21.872727 | 85 | 0.645054 | computationalgeography |
ac4859011e0e731ce97983050e202023a458652c | 2,056 | cpp | C++ | sp/src/game/client/fmod/fmodmanager.cpp | fuzzzzzz/jurassic-life | 3105fe79977460c57c433cb960e91783d47626ed | [
"Unlicense"
] | 1 | 2016-08-30T07:01:29.000Z | 2016-08-30T07:01:29.000Z | sp/src/game/client/fmod/fmodmanager.cpp | fuzzzzzz/jurassic-life-code | 3105fe79977460c57c433cb960e91783d47626ed | [
"Unlicense"
] | null | null | null | sp/src/game/client/fmod/fmodmanager.cpp | fuzzzzzz/jurassic-life-code | 3105fe79977460c57c433cb960e91783d47626ed | [
"Unlicense"
] | 3 | 2015-03-09T22:40:35.000Z | 2019-02-17T16:15:44.000Z | #include "cbase.h"
#include "FMODManager.h"
#include "fmod_errors.h"
#include <string>
using namespace FMOD;
EventSystem *pEventSystem;
Event *pEvent = NULL;
FMOD_RESULT result;
CFMODManager gFMODMng;
CFMODManager* FMODManager()
{
return &gFMODMng;
}
void ERRCHECK(FMOD_RESULT result)
{
if (result != FMO... | 18.522523 | 88 | 0.700389 | fuzzzzzz |
ac4c19e6c277f4bf925512f8a63455c6e25b08f7 | 9,214 | hpp | C++ | gungi/include/gtypes.hpp | hkpeprah/gungi | adf04d2d3a67204101448605c3acd69204ae8160 | [
"MIT"
] | 1 | 2018-02-14T19:51:21.000Z | 2018-02-14T19:51:21.000Z | gungi/include/gtypes.hpp | hkpeprah/gungi | adf04d2d3a67204101448605c3acd69204ae8160 | [
"MIT"
] | null | null | null | gungi/include/gtypes.hpp | hkpeprah/gungi | adf04d2d3a67204101448605c3acd69204ae8160 | [
"MIT"
] | 2 | 2017-06-14T12:10:25.000Z | 2018-05-24T19:57:57.000Z | // gtypes.hpp -*-C++-*-
#pragma once
//@DESCRIPTION:
// This component provides the base types and identifiers used throughout the
// Gungi game library. Used for identifying pieces, specifying moves, and
// piece effects.
//
//@TYPES:
// 'gungi::colour_t': e... | 35.713178 | 85 | 0.710766 | hkpeprah |
ac4ec0560a82acb465041daa6ed4e3bbf5303817 | 7,854 | cpp | C++ | examples/timelines/mainwindow.cpp | minimoog/QTweetLib | e8c62faccd38c694dcfc7a5d3e55982cf7daaffc | [
"Apache-2.0"
] | 43 | 2015-02-27T07:55:10.000Z | 2022-02-20T13:37:48.000Z | examples/timelines/mainwindow.cpp | minimoog/QTweetLib | e8c62faccd38c694dcfc7a5d3e55982cf7daaffc | [
"Apache-2.0"
] | 3 | 2015-11-25T18:05:37.000Z | 2019-07-24T19:58:32.000Z | examples/timelines/mainwindow.cpp | minimoog/QTweetLib | e8c62faccd38c694dcfc7a5d3e55982cf7daaffc | [
"Apache-2.0"
] | 14 | 2015-01-29T18:50:58.000Z | 2019-12-31T07:35:39.000Z | /* Copyright 2010 Antonie Jovanoski
*
* 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 t... | 35.378378 | 104 | 0.640183 | minimoog |
ac535f91559ae32147aa093d38dd8501dc35413a | 5,346 | cpp | C++ | src/libs/qlib/qradio.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qradio.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qradio.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | 1 | 2021-01-03T16:16:47.000Z | 2021-01-03T16:16:47.000Z | /*
* QRadio - radio buttons
* 18-06-97: Created!
* (C) MarketGraph/RVG
*/
#include <qlib/radio.h>
#include <qlib/canvas.h>
#include <qlib/event.h>
#include <qlib/app.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <time.h>
#include <qlib/debug.h>
DEBUG... | 22.944206 | 77 | 0.628133 | 3dhater |
ac5592d7bf5cd0f5e7f5ce7d7ed157c0a7469e54 | 2,184 | cpp | C++ | apps/network/network-host.cpp | UCLA-VAST/tapa | 2b9a5d3a201875e4a7cb0fcc04d64ef92ab2d66a | [
"MIT"
] | 24 | 2021-01-27T17:37:47.000Z | 2022-03-30T21:42:45.000Z | apps/network/network-host.cpp | UCLA-VAST/tapa | 2b9a5d3a201875e4a7cb0fcc04d64ef92ab2d66a | [
"MIT"
] | 56 | 2020-11-21T02:20:13.000Z | 2022-03-31T23:16:37.000Z | apps/network/network-host.cpp | UCLA-VAST/tapa | 2b9a5d3a201875e4a7cb0fcc04d64ef92ab2d66a | [
"MIT"
] | 7 | 2021-01-27T17:44:58.000Z | 2022-03-30T01:17:45.000Z | #include <cmath>
#include <algorithm>
#include <bitset>
#include <chrono>
#include <iostream>
#include <limits>
#include <random>
#include <vector>
#include <gflags/gflags.h>
#include <tapa.h>
using std::abs;
using std::clog;
using std::endl;
using std::vector;
using std::chrono::duration;
using std::chrono::high_re... | 26.634146 | 78 | 0.599359 | UCLA-VAST |
ac564687f0117cd45a4c9baeb52eb2c3b17b32a0 | 546 | hxx | C++ | base/cluster/resdll/spooler/splsvc/global.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/cluster/resdll/spooler/splsvc/global.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/cluster/resdll/spooler/splsvc/global.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1996 Microsoft Corporation
All rights reserved.
Module Name:
global.hxx
Abstract:
Contains all global definitions. This will be included in precomp.hxx,
so it should be kept to a bare minimum of things that change
infrequently.
Author:
Albert Ting (Albert... | 15.6 | 76 | 0.657509 | npocmaka |
ac577bc5604480c2e4d50d1da27b24dfba807e77 | 1,312 | hpp | C++ | include/nbdl/detail/wrap_promise.hpp | ricejasonf/nbdl | ae63717c96ab2c36107bc17b2b00115f96e9d649 | [
"BSL-1.0"
] | 47 | 2016-06-20T01:41:24.000Z | 2021-11-16T10:53:27.000Z | include/nbdl/detail/wrap_promise.hpp | ricejasonf/nbdl | ae63717c96ab2c36107bc17b2b00115f96e9d649 | [
"BSL-1.0"
] | 21 | 2015-11-12T23:05:47.000Z | 2019-07-17T19:01:40.000Z | include/nbdl/detail/wrap_promise.hpp | ricejasonf/nbdl | ae63717c96ab2c36107bc17b2b00115f96e9d649 | [
"BSL-1.0"
] | 6 | 2015-11-12T21:23:29.000Z | 2019-05-09T17:54:25.000Z | //
// Copyright Jason Rice 2017
// 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 NBDL_DETAIL_WRAP_PROMISE_HPP
#define NBDL_DETAIL_WRAP_PROMISE_HPP
#include <nbdl/fwd/detail/wrap_promise.hpp>
#include ... | 23.854545 | 82 | 0.622713 | ricejasonf |
ac59fc38a54ef7e1029bd7449775eae9b8f8568f | 18,789 | cpp | C++ | src/JsonHandle.cpp | DoomHammer/jsonhandle | bf07059fa400c292ee28f0993a3219c0ece4b0d7 | [
"MIT"
] | null | null | null | src/JsonHandle.cpp | DoomHammer/jsonhandle | bf07059fa400c292ee28f0993a3219c0ece4b0d7 | [
"MIT"
] | null | null | null | src/JsonHandle.cpp | DoomHammer/jsonhandle | bf07059fa400c292ee28f0993a3219c0ece4b0d7 | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2010,2011 Thomas Davis
*
* 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... | 23.753477 | 83 | 0.646549 | DoomHammer |
ac5b1f9fb5de9f951bbdc7bf921622f6c22f41a3 | 2,686 | hpp | C++ | include/Lz/Map.hpp | ExternalRepositories/cpp-lazy | df9295a5a2a7f4c3ef4657f73d5e84b576fc82c3 | [
"MIT"
] | 263 | 2020-06-24T19:46:43.000Z | 2022-03-29T08:47:01.000Z | include/Lz/Map.hpp | ExternalRepositories/cpp-lazy | df9295a5a2a7f4c3ef4657f73d5e84b576fc82c3 | [
"MIT"
] | 11 | 2020-07-15T14:24:42.000Z | 2021-09-11T14:50:00.000Z | include/Lz/Map.hpp | ExternalRepositories/cpp-lazy | df9295a5a2a7f4c3ef4657f73d5e84b576fc82c3 | [
"MIT"
] | 11 | 2020-09-10T02:32:26.000Z | 2022-01-26T04:24:31.000Z | #pragma once
#ifndef LZ_MAP_HPP
#define LZ_MAP_HPP
#include "detail/BasicIteratorView.hpp"
#include "detail/MapIterator.hpp"
namespace lz {
template<LZ_CONCEPT_ITERATOR Iterator, class Function>
class Map final : public internal::BasicIteratorView<internal::MapIterator<Iterator, Function>> {
public:
... | 39.5 | 122 | 0.69248 | ExternalRepositories |
ac61ce543c9bb87ada9d46abdb4d10bacb997906 | 32,116 | cpp | C++ | OS2.1/CPinti/core/core.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | 1 | 2021-05-05T20:42:24.000Z | 2021-05-05T20:42:24.000Z | OS2.1/CPinti/core/core.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | null | null | null | OS2.1/CPinti/core/core.cpp | Cwc-Test/CpcdosOS2.1 | d52c170be7f11cc50de38ef536d4355743d21706 | [
"Apache-2.0"
] | null | null | null | /*
=============================================
== CPinti ---> Gestionnaire de threads ==
=============================================
Developpe entierement par Sebastien FAVIER
Description
Module permettant la commutation des threads en se basant sur le PIT
Creation
17/05/2018
Mise a jour
... | 29.30292 | 299 | 0.649053 | Cwc-Test |
ac6462866b594fb9bbd04cdd0a6ae3d54fb9acaa | 1,235 | hh | C++ | analysis/machine_learning/include/timer.hh | ssrg-vt/aira | 96a830480d1ed8317e0175a10d950d7991fb2bb7 | [
"Unlicense"
] | 3 | 2018-12-17T08:20:40.000Z | 2020-02-24T02:08:23.000Z | analysis/machine_learning/include/timer.hh | ssrg-vt/aira | 96a830480d1ed8317e0175a10d950d7991fb2bb7 | [
"Unlicense"
] | null | null | null | analysis/machine_learning/include/timer.hh | ssrg-vt/aira | 96a830480d1ed8317e0175a10d950d7991fb2bb7 | [
"Unlicense"
] | null | null | null | #ifndef _TIMER_HH
#define _TIMER_HH
#include <iostream>
#include <vector>
#include <ctime>
class Timer {
private:
struct timespec clock_start;
std::vector<uint64_t> times;
public:
void start() {
clock_gettime(CLOCK_REALTIME, &clock_start);
}
void stop() {
struct timespec clock_end;
clock_getti... | 22.454545 | 77 | 0.593522 | ssrg-vt |
ac6530658c67e15a634ead0ae3d492090da6389a | 928 | cpp | C++ | EglCpp/Sources/Reflection/Reflectable.cpp | Egliss/EglCppBase | 94d24b6e5e91da880833237a879138760ae9c669 | [
"MIT"
] | null | null | null | EglCpp/Sources/Reflection/Reflectable.cpp | Egliss/EglCppBase | 94d24b6e5e91da880833237a879138760ae9c669 | [
"MIT"
] | 2 | 2020-08-04T18:14:51.000Z | 2020-08-06T19:19:11.000Z | EglCpp/Sources/Reflection/Reflectable.cpp | Egliss/EglCppBase | 94d24b6e5e91da880833237a879138760ae9c669 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Reflectable.hpp"
#include "DynamicType.hpp"
#include "../Utility/StringUtility.hpp"
using namespace Egliss::Reflection;
void Reflectable::Validate(int typeId)
{
if (this->TryFastValidate(typeId))
return;
if (DynamicTypeManager::Find(typeId) == nullptr)
throw std::exception(StringUtili... | 37.12 | 142 | 0.704741 | Egliss |
ac661674fe1f088ca7613e2efe04fdfb86e9aff5 | 2,632 | hpp | C++ | src/util/position.hpp | BruJu/AdventOfCode | a9161649882429bc1f995424544ce4cdafb69caa | [
"WTFPL",
"MIT"
] | 1 | 2020-12-11T13:37:06.000Z | 2020-12-11T13:37:06.000Z | src/util/position.hpp | BruJu/AdventOfCode2020 | a9161649882429bc1f995424544ce4cdafb69caa | [
"WTFPL",
"MIT"
] | null | null | null | src/util/position.hpp | BruJu/AdventOfCode2020 | a9161649882429bc1f995424544ce4cdafb69caa | [
"WTFPL",
"MIT"
] | null | null | null | #pragma once
#include <optional>
namespace bj {
enum class Direction { Left, Right, Top, Down };
inline std::optional<Direction> to_direction_from_lrtd(const char symbol, const char * symbols) {
if (symbol == symbols[0]) return Direction::Left;
if (symbol == symbols[1]) return Direction::Right... | 30.252874 | 104 | 0.483283 | BruJu |
ac686e97ae6b511f157d50c84dc1f9f1c9a4358e | 2,077 | cpp | C++ | N0023-Merge-k-Sorted-Lists/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0023-Merge-k-Sorted-Lists/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0023-Merge-k-Sorted-Lists/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | //
// main.cpp
// LeetCode-Solution
//
// Created by Loyio Hex on 3/1/22.
//
#include <iostream>
#include <chrono>
#include <vector>
#include <queue>
using namespace std;
using namespace std::chrono;
struct ListNode{
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {};
ListNode(int x) :... | 24.72619 | 74 | 0.512277 | loyio |
ac6b40c405ccda93eb67fc725d373fc6c4d51f63 | 262 | hpp | C++ | examples/trivial/trivial.hpp | dcblack/systemc-complete | b018b76254de95673a4294052317d23a6325918b | [
"RSA-MD"
] | 1 | 2021-06-03T15:19:51.000Z | 2021-06-03T15:19:51.000Z | examples/trivial/trivial.hpp | dcblack/systemc-complete | b018b76254de95673a4294052317d23a6325918b | [
"RSA-MD"
] | null | null | null | examples/trivial/trivial.hpp | dcblack/systemc-complete | b018b76254de95673a4294052317d23a6325918b | [
"RSA-MD"
] | null | null | null | //FILE: trivial.hpp
#ifndef TRIVIAL_HPP
#define TRIVIAL_HPP
#include <systemc>
struct Trivial_module : sc_core::sc_module
{
Trivial_module( sc_core::sc_module_name instance );
~Trivial_module( void ) = default;
private:
void main_thread( void );
};
#endif
| 20.153846 | 53 | 0.751908 | dcblack |
ac720042415480b1a9f4c26d9f4197ffe6e1c59f | 15,344 | cpp | C++ | src/graph/Graph.cpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | src/graph/Graph.cpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | src/graph/Graph.cpp | AvocadoML/Avocado | 9595cc5994d916f0ecb24873a5afa98437977fb5 | [
"Apache-2.0"
] | null | null | null | /*
* Graph.cpp
*
* Created on: Feb 16, 2021
* Author: Maciej Kozarzewski
*/
#include <Avocado/graph/Graph.hpp>
#include <Avocado/graph/GraphNode.hpp>
#include <Avocado/core/Device.hpp>
#include <Avocado/core/Context.hpp>
#include <Avocado/core/Scalar.hpp>
#include <Avocado/layers/Input.hpp>
#include <Avocad... | 28.362292 | 139 | 0.666449 | AvocadoML |
ac7378987845f7a3a7f24f79ea8ccfb093cd3c64 | 1,321 | cpp | C++ | Server/Canasta/server.cpp | vivibau/CanastaCSharpOld | 2aadde306450837244b6ec4364d9156e076322b0 | [
"MIT"
] | null | null | null | Server/Canasta/server.cpp | vivibau/CanastaCSharpOld | 2aadde306450837244b6ec4364d9156e076322b0 | [
"MIT"
] | null | null | null | Server/Canasta/server.cpp | vivibau/CanastaCSharpOld | 2aadde306450837244b6ec4364d9156e076322b0 | [
"MIT"
] | 1 | 2020-06-04T14:13:04.000Z | 2020-06-04T14:13:04.000Z | /*#include <iostream>
using namespace std;
int main()
{
return 0;
}
*/
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <iostream>
#include "TCPAcceptor.h"
#include "Game.h"
#include "Parser.h"
#include "Includes.h"
int main(int argc, char** argv)
{
/*
if (argc < 2 || argc > 4) {
pr... | 22.016667 | 73 | 0.500379 | vivibau |
ac7437c58cc1a6d8071d9aef2e470355a538c8fa | 2,592 | cc | C++ | src/cobalt/bin/system-metrics/memory_stats_fetcher_impl.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | 1 | 2019-04-21T18:02:26.000Z | 2019-04-21T18:02:26.000Z | src/cobalt/bin/system-metrics/memory_stats_fetcher_impl.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | 16 | 2020-09-04T19:01:11.000Z | 2021-05-28T03:23:09.000Z | src/cobalt/bin/system-metrics/memory_stats_fetcher_impl.cc | OpenTrustGroup/fuchsia | 647e593ea661b8bf98dcad2096e20e8950b24a97 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/cobalt/bin/system-metrics/memory_stats_fetcher_impl.h"
#include <fcntl.h>
#include <fuchsia/cobalt/cpp/fidl.h>
#include <fuchsia/boot/c/fid... | 38.117647 | 97 | 0.713349 | OpenTrustGroup |
ac78dedea2fd0f8902243213d929ae4e97fd5063 | 3,019 | cpp | C++ | Sample/ApplicationSample/sample_cpp/Browser/SampleInfoLayer.cpp | GCLemon/Altseed | b525740d64001aaed673552eb4ba3e98a321fcdf | [
"FTL"
] | 37 | 2015-07-12T14:21:03.000Z | 2020-10-17T03:08:17.000Z | Sample/ApplicationSample/sample_cpp/Browser/SampleInfoLayer.cpp | GCLemon/Altseed | b525740d64001aaed673552eb4ba3e98a321fcdf | [
"FTL"
] | 91 | 2015-06-14T10:47:22.000Z | 2020-06-29T18:05:21.000Z | Sample/ApplicationSample/sample_cpp/Browser/SampleInfoLayer.cpp | GCLemon/Altseed | b525740d64001aaed673552eb4ba3e98a321fcdf | [
"FTL"
] | 14 | 2015-07-13T04:15:20.000Z | 2021-09-30T01:34:51.000Z | #include "SampleInfoLayer.h"
#include "SampleBrowser.h"
using namespace std;
SampleInfoLayer::SampleInfoLayer(float scrollBarHeight, float totalHeight)
: totalHeight(totalHeight)
{
scrollBar = make_shared<asd::GeometryObject2D>();
{
auto rect = asd::RectF(0, 0, ScrollBarWidth, scrollBarHeight);
auto shape = ma... | 35.104651 | 129 | 0.725075 | GCLemon |
ac794c9c6de51b32a5e62cafbdec641c9b9d6e1a | 3,725 | cpp | C++ | options/posix/generic/grp-stubs.cpp | CPL-1/mlibc | 0726f99c28629e4fc7730d8897909e0cdb5b2545 | [
"MIT"
] | null | null | null | options/posix/generic/grp-stubs.cpp | CPL-1/mlibc | 0726f99c28629e4fc7730d8897909e0cdb5b2545 | [
"MIT"
] | null | null | null | options/posix/generic/grp-stubs.cpp | CPL-1/mlibc | 0726f99c28629e4fc7730d8897909e0cdb5b2545 | [
"MIT"
] | null | null | null |
#include <grp.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <bits/ensure.h>
#include <mlibc/debug.hpp>
namespace {
thread_local group global_entry;
template<typename F>
void walk_segments(frg::string_view line, char delimiter, F fn) {
size_t s = 0;
while(true) {
... | 21.783626 | 85 | 0.640537 | CPL-1 |
ac7f18198c4b7ebb51428ca0e212c7bff5992afc | 746 | cpp | C++ | Plugins/org.mitk.gui.qt.datamanager/src/berrySingleNodeSelection.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Plugins/org.mitk.gui.qt.datamanager/src/berrySingleNodeSelection.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Plugins/org.mitk.gui.qt.datamanager/src/berrySingleNodeSelection.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 20.722222 | 78 | 0.568365 | zhaomengxiao |
ac806388da5d8e24ed0e5846395902524c11f99a | 783 | cpp | C++ | C_Plus_Plus/Basic/save_image/main.cpp | Asadullah-Dal17/learn-opencv-python | 2892e1b253f1c8977662148a8721d8efb7bd63b6 | [
"MIT"
] | 1 | 2021-12-12T12:17:03.000Z | 2021-12-12T12:17:03.000Z | C_Plus_Plus/Basic/save_image/main.cpp | Asadullah-Dal17/learn-opencv-python | 2892e1b253f1c8977662148a8721d8efb7bd63b6 | [
"MIT"
] | null | null | null | C_Plus_Plus/Basic/save_image/main.cpp | Asadullah-Dal17/learn-opencv-python | 2892e1b253f1c8977662148a8721d8efb7bd63b6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <opencv2/opencv.hpp>
int main(int, char**) {
std::string image_path ="C:/Users/Asadullah/Projects/Opencv/Course/coding_pubic/learn-opencv-python/images/shapes_image.png";
std::string saving_path ="C:/Users/Asadullah/Projects/Opencv/Course/coding_pubic/learn-opencv-python/C_Plus... | 41.210526 | 150 | 0.707535 | Asadullah-Dal17 |
ac813c9b719672b1d58e01b342dc9615d3540e0e | 640 | cpp | C++ | src/random.cpp | navkagleb/Random | adb8ea30178582dc77af0b460f3895ca8e4cb641 | [
"MIT"
] | 1 | 2021-06-02T15:46:00.000Z | 2021-06-02T15:46:00.000Z | src/random.cpp | navkagleb/Random | adb8ea30178582dc77af0b460f3895ca8e4cb641 | [
"MIT"
] | null | null | null | src/random.cpp | navkagleb/Random | adb8ea30178582dc77af0b460f3895ca8e4cb641 | [
"MIT"
] | null | null | null | #include "random.hpp"
namespace ng::random {
bool NextBool(float probability) {
return _detail::BoolDistribution(std::max(0.0f, std::min(1.0f, probability)))(_detail::GetMersenneTwisterEngine());
}
std::string NextString(std::size_t size, char from, char to) {
std::string next(size, '\0');
for (auto& characte... | 21.333333 | 117 | 0.673438 | navkagleb |
ac82131e62f6b39d4c94a6eebe93eeba4ad5e920 | 8,614 | hxx | C++ | include/nifty/distributed/distributed_graph.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | null | null | null | include/nifty/distributed/distributed_graph.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | null | null | null | include/nifty/distributed/distributed_graph.hxx | konopczynski/nifty | dc02ac60febaabfaf9b2ee5a854bb61436ebdc97 | [
"MIT"
] | null | null | null | #pragma once
#include <unordered_map>
#include <boost/functional/hash.hpp>
#include "nifty/distributed/graph_extraction.hxx"
namespace nifty {
namespace distributed {
// A simple directed graph,
// that can be constructed from the distributed region graph outputs
// We use this instead of the nifty gra... | 38.284444 | 110 | 0.519039 | konopczynski |
12bf32e9897b8b75641db3f0ed1b09a6a9005083 | 26,948 | cpp | C++ | src/preferences/filetypes/IconView.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/preferences/filetypes/IconView.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/preferences/filetypes/IconView.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2006-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "IconView.h"
#include <new>
#include <stdlib.h>
#include <strings.h>
#include <Application.h>
#include <AppFileInfo.h>
#include <Attributes.h>
#include <Bitmap.h>
#in... | 19.004231 | 82 | 0.656524 | Kirishikesan |
12bf7201cb974498cd57acd4e1c0b691255d842a | 3,274 | cpp | C++ | Aether Framework/src/Audio/AudioDevice.cpp | WiktorKasjaniuk/Aether-Framework | 75b3e064e6ccee81784636aa7cc45b4cae663d46 | [
"BSD-3-Clause"
] | null | null | null | Aether Framework/src/Audio/AudioDevice.cpp | WiktorKasjaniuk/Aether-Framework | 75b3e064e6ccee81784636aa7cc45b4cae663d46 | [
"BSD-3-Clause"
] | null | null | null | Aether Framework/src/Audio/AudioDevice.cpp | WiktorKasjaniuk/Aether-Framework | 75b3e064e6ccee81784636aa7cc45b4cae663d46 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2021, Wiktor Kasjaniuk
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions... | 38.069767 | 105 | 0.711057 | WiktorKasjaniuk |
12c097c0a363d5ddf94e57a6c758a49a938ee077 | 47 | hpp | C++ | src/boost_date_time_compiler_config.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_date_time_compiler_config.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_date_time_compiler_config.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/date_time/compiler_config.hpp>
| 23.5 | 46 | 0.829787 | miathedev |
12c53ba0bf5726820b495f029a641b18b50d04a5 | 1,638 | cpp | C++ | 12-circle/circle.cpp | skaadin/learning-projects | 977efa1eabab038566d57c455e649da8b440c7e9 | [
"MIT"
] | 143 | 2016-07-28T06:00:43.000Z | 2022-03-30T14:08:50.000Z | 12-circle/circle.cpp | skaadin/learning-projects | 977efa1eabab038566d57c455e649da8b440c7e9 | [
"MIT"
] | 3 | 2017-11-28T10:09:52.000Z | 2021-08-30T09:20:41.000Z | 12-circle/circle.cpp | skaadin/learning-projects | 977efa1eabab038566d57c455e649da8b440c7e9 | [
"MIT"
] | 24 | 2016-10-27T02:02:44.000Z | 2022-02-06T07:37:07.000Z | #include <iostream>
#include <math.h> // M_PI, sqrt
class Circle {
private:
float area;
float radius;
float diameter;
public:
Circle(float area = 0, float radius = 0, float diameter = 0) :
area{area}, radius{radius}, diameter{diameter} {}
static Circle from_radius(float radius) {
return Circle(M_PI... | 20.734177 | 64 | 0.571429 | skaadin |
12c8d739d7b9fd3710b92e087a918918833cba55 | 6,899 | cc | C++ | lullaby/modules/file/asset_loader.cc | dherbst/lullaby | 0b6675c9fc534c606236f40486987540ad098007 | [
"Apache-2.0"
] | 1,198 | 2017-06-09T08:10:52.000Z | 2022-03-21T13:39:50.000Z | lullaby/modules/file/asset_loader.cc | dherbst/lullaby | 0b6675c9fc534c606236f40486987540ad098007 | [
"Apache-2.0"
] | 14 | 2017-06-10T00:47:46.000Z | 2020-12-31T05:19:55.000Z | lullaby/modules/file/asset_loader.cc | dherbst/lullaby | 0b6675c9fc534c606236f40486987540ad098007 | [
"Apache-2.0"
] | 183 | 2017-06-09T22:19:20.000Z | 2022-02-23T03:31:35.000Z | /*
Copyright 2017-2019 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 28.27459 | 78 | 0.680823 | dherbst |
12cafc788130c4f41d61175a4059fc4d9be2a0d0 | 965 | cpp | C++ | code/leetcode/src/0054.Spiral-Matrix.cpp | taseikyo/til | 8f703e69a49cbd9854062b102ba307c775d43a56 | [
"MIT"
] | 1 | 2021-09-01T14:39:12.000Z | 2021-09-01T14:39:12.000Z | code/leetcode/src/0054.Spiral-Matrix.cpp | taseikyo/til | 8f703e69a49cbd9854062b102ba307c775d43a56 | [
"MIT"
] | null | null | null | code/leetcode/src/0054.Spiral-Matrix.cpp | taseikyo/til | 8f703e69a49cbd9854062b102ba307c775d43a56 | [
"MIT"
] | null | null | null | /**
* @date 2020-08-22 19:55:51
* @authors Lewis Tian (taseikyo@gmail.com)
* @link github.com/taseikyo
*/
class Solution {
public:
vector<int> spiralOrder(vector<vector<int>>& matrix) {
if (matrix.size() < 1) {
return {};
} else if (matrix.size() == 1) {
return matrix[0];
}
int m = matrix.size... | 23.536585 | 57 | 0.516062 | taseikyo |
12cc3c124d3bb2e576a518e9528dac0b58b5be31 | 34,568 | cc | C++ | alljoyn_c/unit_test/AboutObjTest.cc | liuxiang88/core-alljoyn | 549c966482d9b89da84aa528117584e7049916cb | [
"Apache-2.0"
] | 33 | 2018-01-12T00:37:43.000Z | 2022-03-24T02:31:36.000Z | alljoyn_c/unit_test/AboutObjTest.cc | liuxiang88/core-alljoyn | 549c966482d9b89da84aa528117584e7049916cb | [
"Apache-2.0"
] | 1 | 2020-01-05T05:51:27.000Z | 2020-01-05T05:51:27.000Z | alljoyn_c/unit_test/AboutObjTest.cc | liuxiang88/core-alljoyn | 549c966482d9b89da84aa528117584e7049916cb | [
"Apache-2.0"
] | 30 | 2017-12-13T23:24:00.000Z | 2022-01-25T02:11:19.000Z | /******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the accompanying material... | 46.587601 | 154 | 0.686357 | liuxiang88 |
12ce3badabe97ef44dd3b4a4dc5cd51317f71e35 | 15,249 | tcc | C++ | libraries/predictors/tcc/ForestPredictor.tcc | Dream-maerD/ELL-master | 9554afa876cc9e8e87529df3f3d99220abc711d6 | [
"MIT"
] | 1 | 2018-11-08T06:19:31.000Z | 2018-11-08T06:19:31.000Z | libraries/predictors/tcc/ForestPredictor.tcc | vishnoitanuj/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | null | null | null | libraries/predictors/tcc/ForestPredictor.tcc | vishnoitanuj/ELL | 993d5370f0f7a274e8dfd8f43220c792be46f314 | [
"MIT"
] | 1 | 2020-12-10T17:49:07.000Z | 2020-12-10T17:49:07.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: ForestPredictor.tcc (predictors)
// Authors: Ofer Dekel
//
///////////////////////////////////////////////////////////////////////////////////////////////... | 37.10219 | 213 | 0.656633 | Dream-maerD |
12d2e88f92eace73422104e3e939ac717e36ad95 | 13,726 | cpp | C++ | TerrainSDK/vtlib/core/PagedLodGrid.cpp | nakijun/vtp | 7bd2b2abd3a3f778a32ba30be099cfba9b892922 | [
"MIT"
] | 4 | 2019-02-08T13:51:26.000Z | 2021-12-07T13:11:06.000Z | TerrainSDK/vtlib/core/PagedLodGrid.cpp | nakijun/vtp | 7bd2b2abd3a3f778a32ba30be099cfba9b892922 | [
"MIT"
] | null | null | null | TerrainSDK/vtlib/core/PagedLodGrid.cpp | nakijun/vtp | 7bd2b2abd3a3f778a32ba30be099cfba9b892922 | [
"MIT"
] | 7 | 2017-12-03T10:13:17.000Z | 2022-03-29T09:51:18.000Z | //
// PagedLodGrid.cpp
//
// Copyright (c) 2007-2011 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "vtlib/vtlib.h"
#include "Structure3d.h"
#include "vtdata/LocalCS.h"
#include "vtdata/HeightField.h"
#include "vtdata/vtLog.h"
#include "PagedLodGrid.h"
#include <algorithm> //... | 24.598566 | 90 | 0.683375 | nakijun |
12d3cf11cb874027db4ecfaead2fb54d13967e27 | 16,970 | cpp | C++ | src/xray/editor/world/sources/sound_object_cook.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/editor/world/sources/sound_object_cook.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/editor/world/sources/sound_object_cook.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | ////////////////////////////////////////////////////////////////////////////
// Created : 21.12.2009
// Author : Evgeniy Obertyukh
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#pragma managed(push)
#pragma unmanaged
#i... | 30.521583 | 154 | 0.652858 | ixray-team |
12d713f4f1018305d22d3ca9d75f1b702414b0b2 | 7,430 | cpp | C++ | game.cpp | block8437/GameEngine | e4b452c33781566e55e9339efee9441ddb924f58 | [
"MIT"
] | null | null | null | game.cpp | block8437/GameEngine | e4b452c33781566e55e9339efee9441ddb924f58 | [
"MIT"
] | 1 | 2017-04-05T00:58:21.000Z | 2017-04-05T00:58:21.000Z | game.cpp | block8437/GameEngine | e4b452c33781566e55e9339efee9441ddb924f58 | [
"MIT"
] | null | null | null | #include <GL/glew.h>
#include "game.h"
namespace GameEngine {
Game gameObject;
GameContactListener myContactListenerInstance;
void _display_redirect() {
gameObject.display();
}
void _reshape_redirect(GLsizei width, GLsizei height) {
gameObject.reshape(width, height);
}
void _exit_redirect() {
gameObje... | 24.045307 | 136 | 0.673351 | block8437 |
12d788c3b34c43755b41891974e020fe89b4e04d | 3,497 | cpp | C++ | lotus/src/scene/SceneManager.cpp | mayant15/lotus | 6b01b6bc204c66f3f22c5d3ad59dc08312f1ad20 | [
"MIT"
] | 6 | 2020-11-13T14:02:02.000Z | 2021-11-30T14:26:50.000Z | lotus/src/scene/SceneManager.cpp | sps1112/lotus | 28c048b04a2f30cc1620f7fd10279038c101bd48 | [
"MIT"
] | 1 | 2020-07-16T10:51:56.000Z | 2020-07-16T10:51:56.000Z | lotus/src/scene/SceneManager.cpp | sps1112/lotus | 28c048b04a2f30cc1620f7fd10279038c101bd48 | [
"MIT"
] | 3 | 2020-07-13T11:36:29.000Z | 2020-10-20T09:13:32.000Z | #include <lotus/scene/SceneManager.h>
#include <lotus/ecs/ComponentRegistry.h>
#include <lotus/debug.h>
#include <lotus/filesystem.h>
#include <stdexcept>
#include <lotus/ecs/EventManager.h>
namespace Lotus::SceneManager
{
SRef<Scene> currentScene;
SRef<Scene> GetCurrentScene()
{
... | 30.408696 | 120 | 0.560766 | mayant15 |
12d87943a99b04bdf0c3a0c6421bb9d224ba0234 | 356 | cpp | C++ | HackerRank/Recursion/reverse_string.cpp | nullpointxr/HackerRankSolutions | 052c9ab66bfd66268b81d8e7888c3d7504ab988f | [
"Apache-2.0"
] | 1 | 2020-10-25T16:12:09.000Z | 2020-10-25T16:12:09.000Z | HackerRank/Recursion/reverse_string.cpp | abhishek-sankar/Competitive-Coding-Solutions | 052c9ab66bfd66268b81d8e7888c3d7504ab988f | [
"Apache-2.0"
] | 3 | 2020-11-12T05:44:24.000Z | 2021-04-05T08:09:01.000Z | HackerRank/Recursion/reverse_string.cpp | nullpointxr/HackerRankSolutions | 052c9ab66bfd66268b81d8e7888c3d7504ab988f | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
string reverse(string name){
// 3 steps
// one step simpler?
// My function CAN
// how will I use the function which can do 1 step simpler to solve present problem?
// Base case:
if(name.length()<=1)
return name;
return reverse(name.substr(1))+name[0];
}
int main(){... | 23.733333 | 85 | 0.685393 | nullpointxr |
12db14f05af5c98a3b912e29cda983f9834fbab6 | 629 | hpp | C++ | public/sketch/application.hpp | vladislavmarkov/sketch | 5afed3edd0245942ed2010df1d092fc7d1ed8610 | [
"MIT"
] | null | null | null | public/sketch/application.hpp | vladislavmarkov/sketch | 5afed3edd0245942ed2010df1d092fc7d1ed8610 | [
"MIT"
] | null | null | null | public/sketch/application.hpp | vladislavmarkov/sketch | 5afed3edd0245942ed2010df1d092fc7d1ed8610 | [
"MIT"
] | null | null | null | #pragma once
#ifndef SK_APPLICATION_HPP
#define SK_APPLICATION_HPP
#include <sketch/window.hpp>
namespace sk {
class application_t final {
std::vector<window_t> _windows;
bool _running = {true};
public:
application_t& operator=(const application_t&) = delete;
application_t& operator... | 20.966667 | 60 | 0.655008 | vladislavmarkov |
12db277ac52faaebad57c93f4dd9d5665a3b7c55 | 2,124 | cpp | C++ | Headers/OGL/GlobalContext.cpp | baku89/RichterStrip | 223c40c54cda0a028f20167a78ea61710e06f480 | [
"MIT",
"Unlicense"
] | 6 | 2020-11-30T05:31:17.000Z | 2020-12-01T12:40:20.000Z | Headers/OGL/GlobalContext.cpp | baku89/RichterStrip | 223c40c54cda0a028f20167a78ea61710e06f480 | [
"MIT",
"Unlicense"
] | null | null | null | Headers/OGL/GlobalContext.cpp | baku89/RichterStrip | 223c40c54cda0a028f20167a78ea61710e06f480 | [
"MIT",
"Unlicense"
] | 1 | 2020-12-02T03:04:52.000Z | 2020-12-02T03:04:52.000Z | #include "GlobalContext.h"
#include "Debug.h"
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
namespace OGL {
GlobalContext::GlobalContext() {
angle::Library *mEntryPointsLib = angle::OpenSharedLibrary("libEGL", angle::SearchType::ApplicationDir);
PFNEGLGETPROCADDRESSPROC getProcAddress;
mEntr... | 23.865169 | 108 | 0.624765 | baku89 |
12e1de9878cc3d4aa88a9cb99bb560e034b69a85 | 1,663 | cpp | C++ | perception_oru-port-kinetic/graph_map/src/template/template_reg_type.cpp | lllray/ndt-loam | 331867941e0764b40e1a980dd85d2174f861e9c8 | [
"BSD-3-Clause"
] | 1 | 2020-11-14T08:21:13.000Z | 2020-11-14T08:21:13.000Z | perception_oru-port-kinetic/graph_map/src/template/template_reg_type.cpp | lllray/ndt-loam | 331867941e0764b40e1a980dd85d2174f861e9c8 | [
"BSD-3-Clause"
] | 1 | 2021-07-28T04:47:56.000Z | 2021-07-28T04:47:56.000Z | perception_oru-port-kinetic/graph_map/src/template/template_reg_type.cpp | lllray/ndt-loam | 331867941e0764b40e1a980dd85d2174f861e9c8 | [
"BSD-3-Clause"
] | 2 | 2020-12-18T11:25:53.000Z | 2022-02-19T12:59:59.000Z | #include "graph_map/template/template_reg_type.h"
namespace perception_oru{
namespace libgraphMap{
TemplateRegType::TemplateRegType(const Affine3d &sensor_pose,RegParamPtr paramptr):registrationType(sensor_pose,paramptr){
TemplateRegTypeParamPtr param = boost::dynamic_pointer_cast< TemplateRegTypeParam >(paramptr)... | 30.236364 | 128 | 0.753458 | lllray |
12e25565aaabdbbac82dba56bd2b87404038bb9a | 7,145 | cpp | C++ | Panorama/Panorama.cpp | AmineKheldouni/3D-Computer-Vision | cb84ec0914137cf03136ad315e7682b065fdbe22 | [
"MIT"
] | null | null | null | Panorama/Panorama.cpp | AmineKheldouni/3D-Computer-Vision | cb84ec0914137cf03136ad315e7682b065fdbe22 | [
"MIT"
] | null | null | null | Panorama/Panorama.cpp | AmineKheldouni/3D-Computer-Vision | cb84ec0914137cf03136ad315e7682b065fdbe22 | [
"MIT"
] | 1 | 2020-11-16T19:46:33.000Z | 2020-11-16T19:46:33.000Z | // Imagine++ project
// Project: Panorama
// Author: Pascal Monasse
// Date: 2018/10/09
#include <Imagine/Graphics.h>
#include <Imagine/Images.h>
#include <Imagine/LinAlg.h>
using namespace Imagine;
using namespace std;
// Record clicks in two images, until right button click
void getClicks(Windo... | 31.337719 | 110 | 0.447306 | AmineKheldouni |
12e6c2e4c800db0f43c8e684214f56283e2a5c1b | 84 | hpp | C++ | tests/wf/operators/shift_equal_continuation.hpp | GuillaumeDua/CppShelf | fc559010a5e38cecfd1967ebbbba21fd4b38e5ee | [
"MIT"
] | 3 | 2021-12-09T20:02:51.000Z | 2022-03-23T09:22:58.000Z | tests/wf/operators/shift_equal_continuation.hpp | GuillaumeDua/CppShelf | fc559010a5e38cecfd1967ebbbba21fd4b38e5ee | [
"MIT"
] | 31 | 2021-08-11T16:14:43.000Z | 2022-03-31T11:45:24.000Z | tests/wf/operators/shift_equal_continuation.hpp | GuillaumeDua/CppShelf | fc559010a5e38cecfd1967ebbbba21fd4b38e5ee | [
"MIT"
] | null | null | null | #pragma once
#include <csl/wf.hpp>
namespace test::wf::operators::shift_equal {
}
| 12 | 44 | 0.714286 | GuillaumeDua |
12e704d2048d8696df6c3977c76a7d017c261b4e | 1,740 | cpp | C++ | graphs/prims.cpp | sumanbanerjee1/Algorithms-and-data-structures | 0bc61036c398bd3cea5f7ddf80535520de3a33fa | [
"Apache-2.0"
] | null | null | null | graphs/prims.cpp | sumanbanerjee1/Algorithms-and-data-structures | 0bc61036c398bd3cea5f7ddf80535520de3a33fa | [
"Apache-2.0"
] | null | null | null | graphs/prims.cpp | sumanbanerjee1/Algorithms-and-data-structures | 0bc61036c398bd3cea5f7ddf80535520de3a33fa | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
# define inf INT_MAX
using namespace std;
typedef pair<int,int> iPair;
class Graph{
int v;
list< pair<int,int> > *adj;
public:
Graph(int vert)
{
v=vert;
adj = new list< pair<int,int> > [vert];
}
void addEdge(int u,int v,int w)
{
adj[u].push_back(make_pair(w... | 16.571429 | 82 | 0.518966 | sumanbanerjee1 |
12ea2d804ede4cec09704ec28598eeb24492f26f | 4,479 | hpp | C++ | dakota-6.3.0.Windows.x86/include/HOPSPACK_utils.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | null | null | null | dakota-6.3.0.Windows.x86/include/HOPSPACK_utils.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | null | null | null | dakota-6.3.0.Windows.x86/include/HOPSPACK_utils.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | 1 | 2022-03-18T14:13:14.000Z | 2022-03-18T14:13:14.000Z | // $Id: HOPSPACK_utils.hpp 203 2012-05-14 22:27:30Z tplante $
// $URL: https://software.sandia.gov/svn/hopspack/tags/dakota-6.3/src/src-shared/HOPSPACK_utils.hpp $
//@HEADER
// ************************************************************************
//
// HOPSPACK: Hybrid Optimization Parallel Search Packag... | 32.693431 | 102 | 0.686314 | seakers |
12ebbe81215360c5ec694657e40dc4aa19622a20 | 9,527 | cpp | C++ | test/OpenDDLExportTest.cpp | lerppana/openddl-parser | a9bc8a5dee880d546136e33a5977d7a0a28eaa20 | [
"MIT"
] | 24 | 2015-02-08T23:16:05.000Z | 2021-07-15T07:31:08.000Z | test/OpenDDLExportTest.cpp | lerppana/openddl-parser | a9bc8a5dee880d546136e33a5977d7a0a28eaa20 | [
"MIT"
] | 64 | 2015-01-28T21:42:06.000Z | 2021-11-01T07:49:24.000Z | test/OpenDDLExportTest.cpp | lerppana/openddl-parser | a9bc8a5dee880d546136e33a5977d7a0a28eaa20 | [
"MIT"
] | 10 | 2015-11-17T09:18:57.000Z | 2021-10-06T18:59:05.000Z | /*-----------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2014-2020 Kim Kulling
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 ... | 30.4377 | 103 | 0.65771 | lerppana |
12eea4cf8d075f0f2846a72b60c340db33b652de | 4,856 | cpp | C++ | files/soko1/qutim_0.1.1/protocol/oscar/icq/multiplesending.cpp | truebsdorg/truebsdorg.github.io | 8663d8f6fae3b1bb1e2fb29614677f2863521951 | [
"BSD-4-Clause-UC"
] | null | null | null | files/soko1/qutim_0.1.1/protocol/oscar/icq/multiplesending.cpp | truebsdorg/truebsdorg.github.io | 8663d8f6fae3b1bb1e2fb29614677f2863521951 | [
"BSD-4-Clause-UC"
] | null | null | null | files/soko1/qutim_0.1.1/protocol/oscar/icq/multiplesending.cpp | truebsdorg/truebsdorg.github.io | 8663d8f6fae3b1bb1e2fb29614677f2863521951 | [
"BSD-4-Clause-UC"
] | null | null | null | /*
multipleSending
Copyright (c) 2008 by Rustam Chakin <qutim.develop@gmail.com>
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify ... | 27.280899 | 154 | 0.644563 | truebsdorg |
12f00818638db4fb4442d04bef80cc851d808e1c | 1,926 | cpp | C++ | Game/ui/documentmenu.cpp | da3m0nsec/OpenGothic | af30c52309cb84ff338d42554610679e0e245f91 | [
"MIT"
] | null | null | null | Game/ui/documentmenu.cpp | da3m0nsec/OpenGothic | af30c52309cb84ff338d42554610679e0e245f91 | [
"MIT"
] | null | null | null | Game/ui/documentmenu.cpp | da3m0nsec/OpenGothic | af30c52309cb84ff338d42554610679e0e245f91 | [
"MIT"
] | null | null | null | #include "documentmenu.h"
#include "utils/gthfont.h"
#include "gothic.h"
using namespace Tempest;
DocumentMenu::DocumentMenu(Gothic& gothic)
:gothic(gothic) {
}
void DocumentMenu::show(const DocumentMenu::Show &doc) {
document = doc;
active = true;
update();
}
void DocumentMenu::close() {
if(!activ... | 21.640449 | 81 | 0.573209 | da3m0nsec |
12f31d7d66104c07eb40b842fac64512ce7d4837 | 1,017 | cpp | C++ | Engine/src/DebugPass.cpp | Swizzman/DV1573_Stort_Spel | 77ed6524988b0b501d9b556c487a36d929a20313 | [
"MIT"
] | 3 | 2022-01-29T12:05:53.000Z | 2022-02-20T16:00:26.000Z | Engine/src/DebugPass.cpp | Swizzman/Homehearth | 77ed6524988b0b501d9b556c487a36d929a20313 | [
"MIT"
] | null | null | null | Engine/src/DebugPass.cpp | Swizzman/Homehearth | 77ed6524988b0b501d9b556c487a36d929a20313 | [
"MIT"
] | null | null | null | #include "EnginePCH.h"
#include "BasePass.h"
void DebugPass::PreRender(Camera* pCam, ID3D11DeviceContext* pDeviceContext)
{
DC->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
DC->IASetInputLayout(PM->m_defaultInputLayout.Get());
DC->VSSetShader(PM->m_defaultVertexShader.Get(), nullptr, 0);... | 31.78125 | 98 | 0.73648 | Swizzman |
12f336ca54ddf12ba3c8afa32ed6fbf1c4610928 | 410 | cpp | C++ | Practise/0-1背包.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | Practise/0-1背包.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | Practise/0-1背包.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int m,n;
cin>>n>>m;
int a[5001],b[5001];
int dp[501][501];
for(int i=1;i<=n;i++)
cin>>b[i];
for(int i=1;i<=n;i++)
cin>>a[i];
for(int i=1;i<=n;i++)
{
for(int j=m;j>0;j--)
{
if(a[i]<=j)
dp[i][j]=max(dp[i-1][j],dp[i-... | 17.083333 | 48 | 0.436585 | windcry1 |
12f9ed1bfd569b99c78754fff91318080f6565de | 1,115 | cc | C++ | day06/main.cc | HappyCerberus/moderncpp-aoc-2021 | 0973201f2e1c2c6c2900162e3829a68477818ced | [
"MIT"
] | 20 | 2021-12-04T04:53:22.000Z | 2022-02-24T23:37:31.000Z | day06/main.cc | HappyCerberus/moderncpp-aoc-2021 | 0973201f2e1c2c6c2900162e3829a68477818ced | [
"MIT"
] | null | null | null | day06/main.cc | HappyCerberus/moderncpp-aoc-2021 | 0973201f2e1c2c6c2900162e3829a68477818ced | [
"MIT"
] | 1 | 2022-01-04T22:12:05.000Z | 2022-01-04T22:12:05.000Z | #include "lanternfish.h"
#include <fstream>
#include <iostream>
#include <string>
int main(int argc, char *argv[]) {
if (argc != 2) {
std::cerr << "This program expects one parameter that is the input file to read.\n";
return 1;
}
std::ifstream input(argv[1]);
if (!input.is_open()) {
std::cerr << ... | 27.875 | 123 | 0.636771 | HappyCerberus |
12fe5a69ec6ca62a21385ca1c1c89d205758bd44 | 7,569 | cpp | C++ | Samples/RnD/DDGI/SVGFPass.cpp | guoxx/DDGI | cc8b6b8194ff4473cdf21f72754a103cd6f8526d | [
"BSD-3-Clause"
] | 15 | 2019-11-12T21:45:58.000Z | 2022-02-08T07:07:06.000Z | Samples/RnD/DDGI/SVGFPass.cpp | guoxx/DDGI | cc8b6b8194ff4473cdf21f72754a103cd6f8526d | [
"BSD-3-Clause"
] | 1 | 2020-01-16T07:21:23.000Z | 2020-02-07T02:39:27.000Z | Samples/RnD/DDGI/SVGFPass.cpp | guoxx/DDGI | cc8b6b8194ff4473cdf21f72754a103cd6f8526d | [
"BSD-3-Clause"
] | 3 | 2020-05-16T12:35:34.000Z | 2022-01-23T07:30:47.000Z | #include "SVGFPass.h"
using namespace Falcor;
SVGFPass::SharedPtr SVGFPass::create(uint32_t width, uint32_t height)
{
return std::make_shared<SVGFPass>(width, height);
}
SVGFPass::SVGFPass(uint32_t width, uint32_t height)
: mAtrousIterations(4),
mFeedbackTap(1),
mAtrousRadius(2),
mAlpha(0.1... | 41.81768 | 172 | 0.742767 | guoxx |
12fec15170acfc423d45b41856c648420d8cd3c6 | 1,900 | cpp | C++ | tests/test_lfringbuffer.cpp | zxjcarrot/iris | ec9dbb0b41895a41fe259c777ec79bfff353f96f | [
"MIT"
] | 3 | 2020-12-28T08:36:17.000Z | 2022-01-03T14:08:37.000Z | tests/test_lfringbuffer.cpp | zxjcarrot/iris | ec9dbb0b41895a41fe259c777ec79bfff353f96f | [
"MIT"
] | null | null | null | tests/test_lfringbuffer.cpp | zxjcarrot/iris | ec9dbb0b41895a41fe259c777ec79bfff353f96f | [
"MIT"
] | 1 | 2018-02-09T03:19:39.000Z | 2018-02-09T03:19:39.000Z | #include <thread>
#include <string>
#include <assert.h>
#include <lfringbuffer.h>
#include <sslfqueue.h>
#include <define.h>
using namespace iris;
#define ITERATIONS (int)1e7
lfringbuffer rbuf(1024);
struct buffer_t {
char * b;
int size;
int alloc_size;
int data;
};
sslfqueue<buffer_t> q;
... | 20 | 68 | 0.540526 | zxjcarrot |
4203d42f2e3627f188b6bdb185210525479f5d7c | 5,986 | cpp | C++ | src/app/main.cpp | balintfodor/Build3D | b735129e380a414d62a1d91556f5f52674f1f6f9 | [
"MIT"
] | null | null | null | src/app/main.cpp | balintfodor/Build3D | b735129e380a414d62a1d91556f5f52674f1f6f9 | [
"MIT"
] | 5 | 2021-03-19T09:28:07.000Z | 2022-03-12T00:09:14.000Z | src/app/main.cpp | balintfodor/Build3D | b735129e380a414d62a1d91556f5f52674f1f6f9 | [
"MIT"
] | 1 | 2019-12-23T16:44:49.000Z | 2019-12-23T16:44:49.000Z | #include <iostream>
#include <string>
#include <vector>
#include <memory>
#include <QApplication>
#include <QtGlobal>
#include <QOpenGLContext>
#include <QQmlApplicationEngine>
#include <QFontDatabase>
#include <QStyleFactory>
#include <QCommandLineParser>
#include <QDir>
// #include "client/crashpad_client.h"
// #in... | 31.671958 | 119 | 0.705647 | balintfodor |
420584dddf7ea9ffe6fa2caa0c549145b39c5be7 | 1,011 | hpp | C++ | Engine/Code/Engine/Renderer/SpriteAnimDefinition.hpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | Engine/Code/Engine/Renderer/SpriteAnimDefinition.hpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | Engine/Code/Engine/Renderer/SpriteAnimDefinition.hpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | #pragma once
#include "SpriteSheet.hpp"
enum class SpriteAnimPlaybackType
{
ONCE, // for 5-frame anim, plays 0,1,2,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4...
LOOP, // for 5-frame anim, plays 0,1,2,3,4,0,1,2,3,4,0,1,2,3,4,0,1,2,3,4,0,1,2,3,4,0...
PINGPONG // for 5-frame anim, plays 0,1,2,3,4,3,2,1,0,1,2,3,4,3,2,1,0,... | 37.444444 | 94 | 0.740851 | sam830917 |
42075bf31ee80b30fb7175f179f7b56b5a476549 | 339 | cpp | C++ | src/xgdial.cpp | msperl/Period | da4b4364e8228852cc2b82639470dab0b3579055 | [
"MIT"
] | 1 | 2019-12-10T20:13:11.000Z | 2019-12-10T20:13:11.000Z | src/xgdial.cpp | msperl/Period | da4b4364e8228852cc2b82639470dab0b3579055 | [
"MIT"
] | null | null | null | src/xgdial.cpp | msperl/Period | da4b4364e8228852cc2b82639470dab0b3579055 | [
"MIT"
] | null | null | null | /*
* Program: Period98
*
* File: xgdial.h
* Purpose: Implementation-file for
* ?
* Author: Martin Sperl
* Created: 1996
* Copyright: (c) 1996-1998, Martin Sperl
*/
#include "xgdial.h"
Bool myDialogBox::OnClose(void)
{
int result=wxDialogBox::OnClose();
Show(FALSE);
... | 16.95 | 43 | 0.587021 | msperl |
420b724ad3961986b054359d68284129eee05771 | 645 | cpp | C++ | test/linux/router/service.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | test/linux/router/service.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | test/linux/router/service.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | #include <service>
#include "async_device.hpp"
static std::unique_ptr<Async_device> dev2;
void Service::start()
{
extern void create_network_device(int N, const char* route, const char* ip);
create_network_device(0, "10.0.0.0/24", "10.0.0.1");
// Get the first IP stack configured from config.json
auto& inet =... | 28.043478 | 78 | 0.683721 | justinc1 |
420c3c03afaad46519b0bd79063348d7c72dbb6a | 10,468 | cpp | C++ | opcodes/dxil/dxil_compute.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | 5 | 2019-11-07T13:14:56.000Z | 2019-12-09T20:01:47.000Z | opcodes/dxil/dxil_compute.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | null | null | null | opcodes/dxil/dxil_compute.cpp | HansKristian-Work/DXIL2SPIRV | ea9ac33ae88c9efb0f864d473eb22c3c04d166a5 | [
"MIT"
] | null | null | null | /* Copyright (c) 2019-2022 Hans-Kristian Arntzen for Valve Corporation
*
* SPDX-License-Identifier: MIT
*
* 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
... | 36.729825 | 116 | 0.734142 | HansKristian-Work |
420e527ead4e3ab10222a979e049da424ac337a7 | 9,252 | cpp | C++ | Sources/Elastos/Frameworks/Droid/DevSamples/bak/DownloadDemo/CActivityOne.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/DevSamples/bak/DownloadDemo/CActivityOne.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/DevSamples/bak/DownloadDemo/CActivityOne.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z |
#include "CActivityOne.h"
#include "R.h"
#include <elastos/utility/logging/Slogger.h>
using Elastos::Core::CStringWrapper;
using Elastos::Core::EIID_IRunnable;
using Elastos::Utility::Logging::Slogger;
using Elastos::Droid::App::CDownloadManagerRequest;
using Elastos::Droid::Content::CIntentFilter;
using Elastos::Dro... | 32.808511 | 158 | 0.647752 | jingcao80 |
4210c2aaf8f2187a480a4b39fb5310b42836d22a | 772 | hpp | C++ | pal/src/include/pal/handleapi.hpp | Taritsyn/ChakraCore | b6042191545a823fcf9d53df2b09d160d5808f51 | [
"MIT"
] | 8,664 | 2016-01-13T17:33:19.000Z | 2019-05-06T19:55:36.000Z | pal/src/include/pal/handleapi.hpp | Taritsyn/ChakraCore | b6042191545a823fcf9d53df2b09d160d5808f51 | [
"MIT"
] | 5,058 | 2016-01-13T17:57:02.000Z | 2019-05-04T15:41:54.000Z | pal/src/include/pal/handleapi.hpp | Taritsyn/ChakraCore | b6042191545a823fcf9d53df2b09d160d5808f51 | [
"MIT"
] | 1,367 | 2016-01-13T17:54:57.000Z | 2019-04-29T18:16:27.000Z | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
/*++
Module Name:
handleapi.hpp
Abstract:
Declaration of the handle management APIs
--*/
#ifndef _HANDLEAPI_HPP
#define _HANDLEAPI_HPP
#includ... | 15.44 | 102 | 0.65544 | Taritsyn |
4210f672c013214c16e1dc820db8b5711539fa04 | 1,288 | hpp | C++ | typed_python/PyPythonObjectOfTypeInstance.hpp | npang1/nativepython | df311a5614a9660c15a8183b2dc606ff3e4600df | [
"Apache-2.0"
] | null | null | null | typed_python/PyPythonObjectOfTypeInstance.hpp | npang1/nativepython | df311a5614a9660c15a8183b2dc606ff3e4600df | [
"Apache-2.0"
] | null | null | null | typed_python/PyPythonObjectOfTypeInstance.hpp | npang1/nativepython | df311a5614a9660c15a8183b2dc606ff3e4600df | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "PyInstance.hpp"
class PyPythonObjectOfTypeInstance : public PyInstance {
public:
typedef PythonObjectOfType modeled_type;
static void copyConstructFromPythonInstanceConcrete(PythonObjectOfType* eltType, instance_ptr tgt, PyObject* pyRepresentation, bool isExplicit) {
int isinst... | 30.666667 | 149 | 0.63587 | npang1 |
4216d37a7ec815a46ba620348eafdf13133dc2ef | 2,103 | cpp | C++ | codes/HDU/hdu5402.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5402.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5402.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 105;
const int dir[2][4][2] = { {{0, -1}, {-1, 0}, {1, 0}, {0, 1}}, {{-1, 0}, {0, 1}, {0, -1}, {1, 0}} };
const char sig[2][5] = {"LUDR", "URLD"};
int N, M, A[maxn][maxn], V[maxn][maxn];
char str[maxn * maxn];
int build ... | 21.03 | 100 | 0.406087 | JeraKrs |
421c63e7851ba31fb469dacf5023e6b3a74f3ca8 | 3,790 | cpp | C++ | RegionGrowingColor/prova.cpp | OttoBismark/DigitalImageProcessing | 83ecbe64efe8acb6ce6aea020125b2eba2569f30 | [
"MIT"
] | null | null | null | RegionGrowingColor/prova.cpp | OttoBismark/DigitalImageProcessing | 83ecbe64efe8acb6ce6aea020125b2eba2569f30 | [
"MIT"
] | null | null | null | RegionGrowingColor/prova.cpp | OttoBismark/DigitalImageProcessing | 83ecbe64efe8acb6ce6aea020125b2eba2569f30 | [
"MIT"
] | null | null | null | /*
Region Growing a colori
*/
#include <cstdlib>
#include <opencv/cv.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/video/video.hpp>
#include <iostream>
#include <stdio.h>
#include <opencv2/core/core.hpp>
#include <math.h>
#include <unistd.h>
#include <vector>
#inclu... | 28.712121 | 109 | 0.466755 | OttoBismark |
421ec7da40ccd4ce7e985263c3617f6c3beafa54 | 1,670 | hpp | C++ | lib/models/customer.hpp | lacriment/Hayyam | 488f274944df61562e19b02145a6fdbcf7dc88b1 | [
"MIT"
] | 2 | 2016-05-03T07:38:34.000Z | 2020-12-13T22:31:32.000Z | lib/models/customer.hpp | lacriment/Hayyam | 488f274944df61562e19b02145a6fdbcf7dc88b1 | [
"MIT"
] | null | null | null | lib/models/customer.hpp | lacriment/Hayyam | 488f274944df61562e19b02145a6fdbcf7dc88b1 | [
"MIT"
] | null | null | null | #ifndef CUSTOMER_HPP
#define CUSTOMER_HPP
#include <QObject>
#include <QString>
#include "city.hpp"
class Customer : public QObject
{
Q_OBJECT
private:
int m_Id;
QString m_tc;
QString m_name;
QString m_surname;
QString m_phone;
City *m_city;
QString m_address;
public:
explicit C... | 27.377049 | 86 | 0.731138 | lacriment |
4220ddf754aceabd1d3f24bd1b872703805eeb7b | 278 | hh | C++ | netcode/detail/visibility.hh | ahamez/netcode | aee7eeca8081831574dfb82edf3450ee03be36a1 | [
"BSD-2-Clause"
] | 7 | 2016-10-11T12:12:42.000Z | 2022-02-16T09:54:05.000Z | netcode/detail/visibility.hh | ahamez/netcode | aee7eeca8081831574dfb82edf3450ee03be36a1 | [
"BSD-2-Clause"
] | 1 | 2021-01-13T17:31:11.000Z | 2021-01-13T17:32:16.000Z | netcode/detail/visibility.hh | ahamez/netcode | aee7eeca8081831574dfb82edf3450ee03be36a1 | [
"BSD-2-Clause"
] | 4 | 2016-04-25T21:26:18.000Z | 2020-11-20T21:31:38.000Z | #pragma once
/*------------------------------------------------------------------------------------------------*/
#define NTC_PUBLIC __attribute__ ((visibility ("default")))
/*------------------------------------------------------------------------------------------------*/
| 34.75 | 100 | 0.201439 | ahamez |
422465eb7bab342d3f42586d18b9683dfdefef45 | 1,706 | cpp | C++ | src/providers/mpi/connection.cpp | PeterJGeorg/pmr | e3022da0027313f947b0778188fad1a863fd7dbf | [
"Apache-2.0"
] | 6 | 2017-01-31T10:39:36.000Z | 2020-08-15T12:40:21.000Z | src/providers/mpi/connection.cpp | pjgeorg/pMR | e3022da0027313f947b0778188fad1a863fd7dbf | [
"Apache-2.0"
] | null | null | null | src/providers/mpi/connection.cpp | pjgeorg/pMR | e3022da0027313f947b0778188fad1a863fd7dbf | [
"Apache-2.0"
] | null | null | null | // Copyright 2016 Peter Georg
//
// 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.433333 | 76 | 0.708675 | PeterJGeorg |
4228967ffd0e8e7f8735a54c212d0a7bffced7e9 | 64 | cpp | C++ | 3DEngine/Physics/OBB.cpp | EricDDK/3DEngineEEE | cf7832e69ba03111d54093b1f797eaabab3455e1 | [
"MIT"
] | 5 | 2019-07-23T03:21:04.000Z | 2020-08-28T09:09:08.000Z | 3DEngine/Physics/OBB.cpp | EricDDK/3DEngineEEE | cf7832e69ba03111d54093b1f797eaabab3455e1 | [
"MIT"
] | null | null | null | 3DEngine/Physics/OBB.cpp | EricDDK/3DEngineEEE | cf7832e69ba03111d54093b1f797eaabab3455e1 | [
"MIT"
] | 3 | 2019-07-25T01:36:02.000Z | 2020-02-15T08:11:19.000Z | #include "OBB.h"
ENGINE_NAMESPACE_START
ENGINE_NAMESPACE_END | 9.142857 | 22 | 0.828125 | EricDDK |
422a01aaedf0b837d43481314c423a82d9598ce4 | 428 | cpp | C++ | test/src/dummy.cpp | WojciechMigda/TCO-Ringbeller | 8447e6ff44bba84b85250bdd3905180fcf1a96aa | [
"MIT"
] | null | null | null | test/src/dummy.cpp | WojciechMigda/TCO-Ringbeller | 8447e6ff44bba84b85250bdd3905180fcf1a96aa | [
"MIT"
] | null | null | null | test/src/dummy.cpp | WojciechMigda/TCO-Ringbeller | 8447e6ff44bba84b85250bdd3905180fcf1a96aa | [
"MIT"
] | null | null | null | /*
* This file exists to satisfy modern CMake practices, as conveniently
* described here: https://github.com/Bagira80/More-Modern-CMake/
*
* I have decided not to go with the most modern CMake versions, as some
* linux distributions are still using rather dated CMake release packages.
*
* Hence, using less-than... | 38.909091 | 75 | 0.754673 | WojciechMigda |
422d7cfc53b6ef303711742d998a759c59689269 | 2,935 | cpp | C++ | src/Canvas/NumberPadCanvas.cpp | RobinSinghNanda/Home-assistant-display | 6f59104012c0956b54d4b55e190aa89941c2c1af | [
"MIT"
] | 2 | 2020-10-23T19:53:56.000Z | 2020-11-06T08:59:48.000Z | src/Canvas/NumberPadCanvas.cpp | RobinSinghNanda/Home-assistant-display | 6f59104012c0956b54d4b55e190aa89941c2c1af | [
"MIT"
] | null | null | null | src/Canvas/NumberPadCanvas.cpp | RobinSinghNanda/Home-assistant-display | 6f59104012c0956b54d4b55e190aa89941c2c1af | [
"MIT"
] | null | null | null | #include "NumberPadCanvas.hpp"
NumberPadCanvas::NumberPadCanvas(Canvas * canvas, uint16_t id) : Canvas(canvas, id) {
for (uint8_t i=0;i<12;i++) {
char text[10];
snprintf(text, sizeof(text), "%d", i+1);
numberButtonsCanvas[i] = new TextCanvas(this, i);
numberButtonsCanvas[i]->setText... | 43.80597 | 106 | 0.479727 | RobinSinghNanda |
422f0cadcc4cba747dcf7969fa31b9c9316afcd1 | 2,286 | cpp | C++ | monad_test.cpp | XzoRit/cpp_monad | 9777f14d38c0df62cdaecfb286ae4d2f52777927 | [
"BSL-1.0"
] | null | null | null | monad_test.cpp | XzoRit/cpp_monad | 9777f14d38c0df62cdaecfb286ae4d2f52777927 | [
"BSL-1.0"
] | null | null | null | monad_test.cpp | XzoRit/cpp_monad | 9777f14d38c0df62cdaecfb286ae4d2f52777927 | [
"BSL-1.0"
] | null | null | null | #include "monad.hpp"
#include <boost/test/unit_test.hpp>
#include <cctype>
#include <iostream>
#include <variant>
namespace std
{
ostream& boost_test_print_type(ostream& ostr, monostate const& right)
{
ostr << "monostate";
return ostr;
}
}
struct init
{
init() { BOOST_TEST_MESSAGE("init"); }
~init() { BOOST... | 23.326531 | 96 | 0.561242 | XzoRit |
4231df6f009026d47fff53a263e67666fce71ee6 | 3,125 | cpp | C++ | lang/codeGen/types/CodeGenArrayComplexType.cpp | zippy1978/stark | 62607d606fc5fe1addea4bd433b4d8dba9d4f3b1 | [
"MIT"
] | null | null | null | lang/codeGen/types/CodeGenArrayComplexType.cpp | zippy1978/stark | 62607d606fc5fe1addea4bd433b4d8dba9d4f3b1 | [
"MIT"
] | null | null | null | lang/codeGen/types/CodeGenArrayComplexType.cpp | zippy1978/stark | 62607d606fc5fe1addea4bd433b4d8dba9d4f3b1 | [
"MIT"
] | null | null | null | #include <vector>
#include <llvm/IR/Constant.h>
#include <llvm/IR/IRBuilder.h>
#include "../CodeGenFileContext.h"
#include "CodeGenComplexType.h"
using namespace llvm;
using namespace std;
namespace stark
{
CodeGenArrayComplexType::CodeGenArrayComplexType(std::string typeName, CodeGenFileContext *context) : Cod... | 40.584416 | 171 | 0.67104 | zippy1978 |
423537413507863635dc62c08b62af1a6dd04a29 | 1,219 | cpp | C++ | test/cpp/misc_tests/url-1.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | test/cpp/misc_tests/url-1.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | test/cpp/misc_tests/url-1.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | //
// Copyright (c) 2008 João Abecasis
//
// 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 <saga/saga.hpp>
#include <iostream>
int main()
{
saga::url u1("http://example.com"), u2 = u1, u3;
s... | 29.731707 | 80 | 0.546349 | saga-project |
4237709d2596784d4f7ba3af9705c389b7d0c391 | 1,375 | cpp | C++ | src/ui/main.cpp | mario-martinez-proyecto1/arbol-b | 832371749cfa192f3b32873b0a55e99936f5ab6a | [
"MIT"
] | null | null | null | src/ui/main.cpp | mario-martinez-proyecto1/arbol-b | 832371749cfa192f3b32873b0a55e99936f5ab6a | [
"MIT"
] | null | null | null | src/ui/main.cpp | mario-martinez-proyecto1/arbol-b | 832371749cfa192f3b32873b0a55e99936f5ab6a | [
"MIT"
] | null | null | null | #include <iostream>
#include "../tl/Gestor.h"
#include "utilitario/Validar.h"
Gestor gestor;
Validar validar;
using namespace std;
void menu();
void procesarMenu(int &, bool &);
int ingresarNum(string);
int main() {
menu();
return 0;
}
void menu() {
bool salir;
string valor;
int opcion = 0;
do... | 22.540984 | 78 | 0.506182 | mario-martinez-proyecto1 |
423b4bfc1e4fa564a57f5197c188b4c0856bd2ce | 947 | cpp | C++ | SmallestGoodBase.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | 3 | 2017-11-27T03:01:50.000Z | 2021-03-13T08:14:00.000Z | SmallestGoodBase.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | SmallestGoodBase.cpp | yplusplus/LeetCode | 122bd31b291af1e97ee4e9349a8e65bba6e04c96 | [
"MIT"
] | null | null | null | // log * log * log
class Solution {
public:
unsigned long long calc(int d, int k) {;
unsigned long long x = 1;
unsigned long long sum = 0;
for (int i = 0; i < d; i++) {
sum += x;
x *= k;
}
return sum;
}
string smallestGoodBase(string n) {
... | 28.69697 | 59 | 0.317846 | yplusplus |
423e08911ac1f9242f73e8f9d47878398b5b69b1 | 7,499 | hh | C++ | src/sound/YM2413Burczynski.hh | lutris/openmsx | 91ed35400c7b4c8c460004710736af9abc4dde29 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 5 | 2015-02-27T21:42:28.000Z | 2021-10-10T23:36:08.000Z | src/sound/YM2413Burczynski.hh | lutris/openmsx | 91ed35400c7b4c8c460004710736af9abc4dde29 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/sound/YM2413Burczynski.hh | lutris/openmsx | 91ed35400c7b4c8c460004710736af9abc4dde29 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2 | 2015-06-15T09:57:56.000Z | 2017-05-14T01:11:48.000Z | #ifndef YM2413BURCZYNSKI_HH
#define YM2413BURCZYNSKI_HH
#include "YM2413Core.hh"
#include "FixedPoint.hh"
#include "serialize_meta.hh"
namespace openmsx {
namespace YM2413Burczynski {
class Channel;
/** 16.16 fixed point type for frequency calculations.
*/
typedef FixedPoint<16> FreqIndex;
class Slot
{
public:
... | 25.593857 | 82 | 0.709428 | lutris |
423e5287e968b03a7a40b8153df367c9f0f61624 | 2,306 | cpp | C++ | tests/hull/hullTest.cpp | Yattabyte/TestProject | 21a1e047dd03f90087e2738c7d90545a067e8375 | [
"BSD-3-Clause"
] | 1 | 2020-03-02T21:56:42.000Z | 2020-03-02T21:56:42.000Z | tests/hull/hullTest.cpp | Yattabyte/TestProject | 21a1e047dd03f90087e2738c7d90545a067e8375 | [
"BSD-3-Clause"
] | null | null | null | tests/hull/hullTest.cpp | Yattabyte/TestProject | 21a1e047dd03f90087e2738c7d90545a067e8375 | [
"BSD-3-Clause"
] | null | null | null | #include "hull.hpp"
#include <cassert>
#include <iostream>
#include <limits>
#include <string>
//////////////////////////////////////////////////////////////////////
/// Use the shared mini namespace
using namespace mini;
// Constant variables for this test
constexpr auto scale(10.0F);
constexpr auto pointCount(16384... | 31.589041 | 80 | 0.573287 | Yattabyte |
4244bf1064c76dbcfe7a5c0983dc66ab07321ab2 | 1,247 | cc | C++ | Codeforces/311 Division 2/Problem A/A.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/311 Division 2/Problem A/A.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/311 Division 2/Problem A/A.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include<cstdio>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<queue>
#include<stack>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define... | 17.082192 | 79 | 0.55413 | VastoLorde95 |
4248f17545d2945270c98c53ced6fcf8158a8c88 | 509 | cxx | C++ | Tracing/MDL/MDLIntroPage.cxx | tostathaina/farsight | 7e9d6d15688735f34f7ca272e4e715acd11473ff | [
"Apache-2.0"
] | 8 | 2016-07-22T11:24:19.000Z | 2021-04-10T04:22:31.000Z | Tracing/MDL/MDLIntroPage.cxx | YanXuHappygela/Farsight | 1711b2a1458c7e035edd21fe0019a1f7d23fcafa | [
"Apache-2.0"
] | null | null | null | Tracing/MDL/MDLIntroPage.cxx | YanXuHappygela/Farsight | 1711b2a1458c7e035edd21fe0019a1f7d23fcafa | [
"Apache-2.0"
] | 7 | 2016-07-21T07:39:17.000Z | 2020-01-29T02:03:27.000Z | #include "MDLIntroPage.h"
#include "MDLWizard.h"
#include <iostream>
using std::cout;
using std::endl;
MDLIntroPage::MDLIntroPage(QWidget *parent)
{
}
bool MDLIntroPage::isComplete() const
{
MDLWizard *wiz = static_cast<MDLWizard*>(this->wizard());
if(wiz->InputImageLabel->text() != "" &&
wiz->BackboneOutpu... | 17.551724 | 59 | 0.658153 | tostathaina |
424a1938b3dfb575afc3d89a653c01ec8e2da0c7 | 748 | cpp | C++ | 2265/9284084_AC_0MS_956K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 2265/9284084_AC_0MS_956K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 2265/9284084_AC_0MS_956K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #define _CRT_SECURE_NO_WARNINGS
#include<cstdio>
const int ID_MAX=100000;
int x[ID_MAX]={0},y[ID_MAX]={0};
int main(){
for(int id=0;id+1<ID_MAX;id++){
if(x[id]>=0 && x[id]+y[id]<0){
x[id+1]=x[id]+1;
y[id+1]=y[id];
}
else if(y[id]<=0 && x[id]+y[id]>=0){
x[id+1]=x[id];
y[id+1]=y[id]+1;
... | 19.684211 | 39 | 0.450535 | vandreas19 |
424b3a4833b296d05cea1a528f1ec30ad7101f12 | 1,241 | cpp | C++ | UVA/11462 - Age Sort.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | UVA/11462 - Age Sort.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | UVA/11462 - Age Sort.cpp | Mhmd-Hisham/Problem-Solving | 7ce0955b697e735c5ccb37347d9bec83e57339b5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
/*
Problem: 11462 - Age Sort
Link : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2457
Solution by: Mohamed Hisham El-Banna
Gmail : Mohamed00Hisham@Gmail.com
Github : www.github.com/Mhmd-Hisham
LinkedIn: www.linkedin.com/in/Mhmd-Hisham
*/... | 17.478873 | 109 | 0.475423 | Mhmd-Hisham |
424c3492be6bec6e38bb392610a3d35089e7011a | 27,536 | cc | C++ | modules/devapi/mod_mysqlx_schema.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 119 | 2016-04-14T14:16:22.000Z | 2022-03-08T20:24:38.000Z | modules/devapi/mod_mysqlx_schema.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 9 | 2017-04-26T20:48:42.000Z | 2021-09-07T01:52:44.000Z | modules/devapi/mod_mysqlx_schema.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 51 | 2016-07-20T05:06:48.000Z | 2022-03-09T01:20:53.000Z | /*
* Copyright (c) 2014, 2020, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This program is also distributed with certain software (in... | 34.079208 | 80 | 0.671485 | mueller |
42521aa4b8951f72b588c6847e0e199be7d2a4bb | 1,169 | cc | C++ | src/rocksdb2/util/concurrent_arena.cc | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 5 | 2019-01-23T04:36:03.000Z | 2020-02-04T07:10:39.000Z | src/rocksdb2/util/concurrent_arena.cc | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | null | null | null | src/rocksdb2/util/concurrent_arena.cc | yinchengtsinghua/RippleCPPChinese | a32a38a374547bdc5eb0fddcd657f45048aaad6a | [
"BSL-1.0"
] | 2 | 2019-05-14T07:26:59.000Z | 2020-06-15T07:25:01.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//版权所有(c)2011至今,Facebook,Inc.保留所有权利。
//此源代码在两个gplv2下都获得了许可(在
//复制根目录中的文件)和Apache2.0许可证
//(在根目录的license.apache文件中找到)。
//
//... | 24.354167 | 74 | 0.753636 | yinchengtsinghua |
4252f86f3a4026b5ede0f41551da91c9d9d87eaf | 19,861 | hpp | C++ | blast/include/objtools/data_loaders/genbank/impl/info_cache.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/include/objtools/data_loaders/genbank/impl/info_cache.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/include/objtools/data_loaders/genbank/impl/info_cache.hpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | #ifndef GENBANK_IMPL_INFO_CACHE
#define GENBANK_IMPL_INFO_CACHE
/* $Id: info_cache.hpp 497447 2016-04-06 18:19:05Z vasilche $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
... | 27.394483 | 84 | 0.632345 | mycolab |
425971bfbfba9c353863dbd86bee053dd268e749 | 7,120 | cc | C++ | zircon/system/ulib/kernel-mexec/kernel-mexec_test.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | 3 | 2020-08-02T04:46:18.000Z | 2020-08-07T10:10:53.000Z | zircon/system/ulib/kernel-mexec/kernel-mexec_test.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | zircon/system/ulib/kernel-mexec/kernel-mexec_test.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | 1 | 2020-08-07T10:11:49.000Z | 2020-08-07T10:11:49.000Z | #include <zxtest/zxtest.h>
#include <vector>
#include <lib/kernel-mexec/kernel-mexec.h>
#include <fuchsia/device/manager/c/fidl.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/async-loop/default.h>
#include <zircon/assert.h>
#include <lib/fidl-async/bind.h>
#include <lib/svc/outgoing.h>
#include <lib/zx/vmar.h>... | 33.42723 | 98 | 0.63427 | opensource-assist |
425ad57f0ec487f910bb9d842de40c70bfe72c4e | 9,890 | cpp | C++ | TRANSmission/Intermediate/Build/Win64/UE4Editor/Inc/TRANSmission/Vibrator.gen.cpp | daff0111/GGJ2018 | 2d14edb4f1ba6a281985c758961939294cdeda9a | [
"MIT"
] | null | null | null | TRANSmission/Intermediate/Build/Win64/UE4Editor/Inc/TRANSmission/Vibrator.gen.cpp | daff0111/GGJ2018 | 2d14edb4f1ba6a281985c758961939294cdeda9a | [
"MIT"
] | null | null | null | TRANSmission/Intermediate/Build/Win64/UE4Editor/Inc/TRANSmission/Vibrator.gen.cpp | daff0111/GGJ2018 | 2d14edb4f1ba6a281985c758961939294cdeda9a | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... | 47.548077 | 456 | 0.768959 | daff0111 |