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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
482ec462a8b3bf8ff5418b0b48d3dd743fb2d0af | 4,496 | cpp | C++ | source/lib3d/Vulkan/vk_memory.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 113 | 2015-06-25T06:24:59.000Z | 2021-09-26T02:46:02.000Z | source/lib3d/Vulkan/vk_memory.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 2 | 2015-05-03T07:22:49.000Z | 2017-12-11T09:17:20.000Z | source/lib3d/Vulkan/vk_memory.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 17 | 2015-11-10T15:07:15.000Z | 2021-01-19T15:28:16.000Z | // +----------------------------------------------------------------------
// | Project : ray.
// | All rights reserved.
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2016.
// +----------------------------------------------------------------------
// | * Redistributi... | 30.585034 | 136 | 0.691059 | Lauvak |
4834c97dd192a6a5e6a4b5db252f16af21c13534 | 121 | hpp | C++ | CodeRed/Shared/Enum/ShaderType.hpp | LinkClinton/Code-Red | 491621144aba559f068c7f91d71e3d0d7c87761e | [
"MIT"
] | 34 | 2019-09-11T09:12:16.000Z | 2022-02-13T12:50:25.000Z | CodeRed/Shared/Enum/ShaderType.hpp | LinkClinton/Code-Red | 491621144aba559f068c7f91d71e3d0d7c87761e | [
"MIT"
] | 7 | 2019-09-22T14:21:26.000Z | 2020-03-24T10:36:20.000Z | CodeRed/Shared/Enum/ShaderType.hpp | LinkClinton/Code-Red | 491621144aba559f068c7f91d71e3d0d7c87761e | [
"MIT"
] | 6 | 2019-10-21T18:05:55.000Z | 2021-04-22T05:07:30.000Z | #pragma once
#include "../Utility.hpp"
namespace CodeRed {
enum class ShaderType : UInt32
{
Vertex,
Pixel
};
} | 9.307692 | 31 | 0.652893 | LinkClinton |
48379199f14cf232d746e2a419cf287af207dc17 | 503 | cpp | C++ | LGP1616.cpp | Origami404/OI_Code | 9638ec6fa409dc8e243eaef9aa287c20c332bbe5 | [
"MIT"
] | null | null | null | LGP1616.cpp | Origami404/OI_Code | 9638ec6fa409dc8e243eaef9aa287c20c332bbe5 | [
"MIT"
] | null | null | null | LGP1616.cpp | Origami404/OI_Code | 9638ec6fa409dc8e243eaef9aa287c20c332bbe5 | [
"MIT"
] | null | null | null | #include <cstdio>
using namespace std;
int T, M, w[10010], c[10010], f[10000010], maxf;
inline int max(int a, int b) {
return a > b ? a : b;
}
int main() {
scanf("%d %d", &T, &M);
for (int i = 0; i < M; i++)
scanf("%d %d", &w[i], &c[i]);
for (int i = 0; i < M; i++)
for (int j ... | 25.15 | 50 | 0.387674 | Origami404 |
4839d478f43767e2fa246276ba1d78797a11d31c | 5,030 | cpp | C++ | CxxProfiler/SyntaxHighliter.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | 110 | 2016-05-06T09:17:55.000Z | 2022-03-30T02:34:41.000Z | CxxProfiler/SyntaxHighliter.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | null | null | null | CxxProfiler/SyntaxHighliter.cpp | mmozeiko/CxxProfiler | 5836f2a948cf97ad87bef0e357fd39c95d07189f | [
"Unlicense"
] | 5 | 2017-10-27T10:59:53.000Z | 2022-01-10T02:24:41.000Z | #include "SyntaxHighliter.h"
SyntaxHighlighter::SyntaxHighlighter(QTextDocument* parent)
: QSyntaxHighlighter(parent)
{
HighlightingRule rule;
{
QTextCharFormat quotationFormat;
quotationFormat.setForeground(Qt::darkRed);
rule.pattern = QRegExp("\".*\"");
rule.pattern.setM... | 37.259259 | 150 | 0.598807 | mmozeiko |
c61887678225e3e1577fd0822a431524ea6dbfb9 | 10,427 | hpp | C++ | packages/monte_carlo/event/core/src/MonteCarlo_ObserverPhaseSpaceDimensionTraits.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/event/core/src/MonteCarlo_ObserverPhaseSpaceDimensionTraits.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/event/core/src/MonteCarlo_ObserverPhaseSpaceDimensionTraits.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_ObserverPhaseSpaceDimensionTraits.hpp
//! \author Alex Robinson
//! \brief Observer phase space dimension traits class specializations
//!
//-----------------------------------------------------------------------... | 32.381988 | 107 | 0.71967 | bam241 |
c61d513f84ee4238fcb58fcb74c378bfaba2ac09 | 1,798 | hpp | C++ | Ruken/Source/Include/Meta/Safety.hpp | Renondedju/Ruken | 2b2944b0c7aabf0f921f4daafc45eb01e592d825 | [
"MIT"
] | 6 | 2020-09-12T19:16:49.000Z | 2022-03-17T14:10:16.000Z | Ruken/Source/Include/Meta/Safety.hpp | Renondedju/Ruken | 2b2944b0c7aabf0f921f4daafc45eb01e592d825 | [
"MIT"
] | 1 | 2021-11-15T10:13:17.000Z | 2021-11-15T10:13:17.000Z | Ruken/Source/Include/Meta/Safety.hpp | Renondedju/Ruken | 2b2944b0c7aabf0f921f4daafc45eb01e592d825 | [
"MIT"
] | 3 | 2020-09-03T16:41:35.000Z | 2022-01-24T09:35:55.000Z | /*
* MIT License
*
* Copyright (c) 2019-2020 Basile Combet, Philippe Yi
*
* 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 rig... | 42.809524 | 107 | 0.750834 | Renondedju |
c61e28506775ebf71f5b15c3b25ae08ac196fe47 | 4,841 | cpp | C++ | shared/dither.cpp | industry-advance/nin10kit | dbf81c62c0fa2f544cfd22b1f7d008a885c2b589 | [
"Apache-2.0"
] | 45 | 2015-03-26T17:14:55.000Z | 2022-03-29T20:27:32.000Z | shared/dither.cpp | industry-advance/nin10kit | dbf81c62c0fa2f544cfd22b1f7d008a885c2b589 | [
"Apache-2.0"
] | 35 | 2015-01-06T16:16:37.000Z | 2021-06-19T05:03:13.000Z | shared/dither.cpp | industry-advance/nin10kit | dbf81c62c0fa2f544cfd22b1f7d008a885c2b589 | [
"Apache-2.0"
] | 5 | 2017-03-26T04:48:02.000Z | 2020-07-10T22:55:49.000Z | #include "dither.hpp"
#include <algorithm>
#include <cmath>
#include "logger.hpp"
#ifndef CLAMP
#define CLAMP(x) (((x) < 0.0) ? 0.0 : (((x) > 31) ? 31 : (x)))
#endif
struct DitherImage
{
DitherImage(const Image16Bpp& _inImage, Image8Bpp& _outImage, const Color16& _transparent, int _dither, float _ditherlevel) :... | 28.988024 | 136 | 0.506094 | industry-advance |
c61faf21b4d49c9e4b86838e98db7f247b9d9e17 | 1,968 | cpp | C++ | Framework/TimedEventQueue.cpp | Agent57/PubSub | e7ac1e688e31b3378c9572fbe4b6e36387ba0a6b | [
"MIT"
] | 1 | 2020-11-13T15:52:35.000Z | 2020-11-13T15:52:35.000Z | Framework/TimedEventQueue.cpp | Agent57/PubSub | e7ac1e688e31b3378c9572fbe4b6e36387ba0a6b | [
"MIT"
] | null | null | null | Framework/TimedEventQueue.cpp | Agent57/PubSub | e7ac1e688e31b3378c9572fbe4b6e36387ba0a6b | [
"MIT"
] | null | null | null | #include "TimedEventQueue.h"
TimedEventQueue::TimedEventQueue()
{
m_timerId = 0;
}
TimedEventPtr TimedEventQueue::SetTimer(const int ms, const MessagePtr& msg, bool repeatable)
{
TimedEventPtr timer = std::make_shared<TimedEvent>(ms, m_timerId++, msg, repeatable);
std::lock_guard<std::mutex> lock(m_lock);
In... | 21.866667 | 93 | 0.71748 | Agent57 |
c62493659acc6fd10ea524104bf67934cc9aec83 | 66,236 | cpp | C++ | bulletgba/generator/data/code/otakutwo/otk2-hidden.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/otakutwo/otk2-hidden.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/otakutwo/otk2-hidden.cpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | // XXX uniqID XXX 02caaef8581d25f15eb33c8d9e9bb24b XXX
#include <gba_types.h>
#include "bullet.hpp"
#include "fixed.hpp"
#include "otakutwo/otk2-hidden.hpp"
extern const BulletStepFunc bullet_55a560fc3c9b3f99206778431b4c49d4_02caaef8581d25f15eb33c8d9e9bb24b[] = {
stepfunc_9604d530b79210bcb56507e3e9836fc6_02caaef... | 74.674183 | 414 | 0.958889 | pqrs-org |
c626701eec4a4142ea6901b8009705555173f7ef | 953 | hpp | C++ | src/TableSearcher.hpp | NDelt/Mini-Search-Engine | c7c64a7d365e5112e0a6eb320d3ff3e399bd9e18 | [
"Apache-2.0"
] | null | null | null | src/TableSearcher.hpp | NDelt/Mini-Search-Engine | c7c64a7d365e5112e0a6eb320d3ff3e399bd9e18 | [
"Apache-2.0"
] | null | null | null | src/TableSearcher.hpp | NDelt/Mini-Search-Engine | c7c64a7d365e5112e0a6eb320d3ff3e399bd9e18 | [
"Apache-2.0"
] | 1 | 2019-04-11T03:02:05.000Z | 2019-04-11T03:02:05.000Z | #ifndef SEARCHER_HPP
#define SEARCHER_HPP
#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <ctime>
#include "QueryParser.hpp"
#include "../modules/HashMap.hpp"
class TableSearcher {
public:
TableSearcher() = default;
~TableSearcher() = defau... | 22.690476 | 87 | 0.67681 | NDelt |
c62ac428089aca50fabc20e5e5750377163cc005 | 3,474 | cpp | C++ | src/socketserver.cpp | immateriel/phantomjs | 2ba3ccdeb23de3a48acdad609f0c862501cfbef8 | [
"BSD-3-Clause"
] | null | null | null | src/socketserver.cpp | immateriel/phantomjs | 2ba3ccdeb23de3a48acdad609f0c862501cfbef8 | [
"BSD-3-Clause"
] | null | null | null | src/socketserver.cpp | immateriel/phantomjs | 2ba3ccdeb23de3a48acdad609f0c862501cfbef8 | [
"BSD-3-Clause"
] | null | null | null | #include "socketserver.h"
#include <iostream>
#include <QDir>
#include <QTcpServer>
#include <QTextCodec>
#include <QTcpSocket>
#include <QObject>
#include <QAbstractSocket>
#include <QWebPage>
#include <QThread>
#include <QTimer>
using namespace std;
#include <unistd.h>
#include "socketclient.h"
#include "phantom.h"... | 22.705882 | 169 | 0.687392 | immateriel |
c62e49a4b0823cdf51051b9c6d75eb4fd78f5abb | 1,438 | cpp | C++ | vm/external_libs/llvm/lib/CodeGen/PseudoSourceValue.cpp | marnen/rubinius | 05b3f9789d01bada0604a7f09921c956bc9487e7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T16:58:14.000Z | 2016-05-08T16:58:14.000Z | vm/external_libs/llvm/lib/CodeGen/PseudoSourceValue.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | vm/external_libs/llvm/lib/CodeGen/PseudoSourceValue.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | //===-- llvm/CodeGen/PseudoSourceValue.cpp ----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 30.595745 | 80 | 0.598053 | marnen |
c630886765d321ff491f6367d2fbaaf095f03814 | 5,193 | cpp | C++ | fossilize_external_replayer.cpp | kakra/Fossilize | ae589f3bde14498489ef7bcc339a16803dfbfc3a | [
"MIT"
] | null | null | null | fossilize_external_replayer.cpp | kakra/Fossilize | ae589f3bde14498489ef7bcc339a16803dfbfc3a | [
"MIT"
] | null | null | null | fossilize_external_replayer.cpp | kakra/Fossilize | ae589f3bde14498489ef7bcc339a16803dfbfc3a | [
"MIT"
] | null | null | null | /* Copyright (c) 2019 Hans-Kristian Arntzen
*
* 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, ... | 40.570313 | 165 | 0.778355 | kakra |
c636c50ce4327438b1e44e2fca10d7dcac1d479b | 84,176 | hpp | C++ | scripts/generateTOPinclude/functions2InstantiateCoupleds.hpp | SimulationEverywhere/NEP_DAM | bc8cdf661c4a4e050abae12fb756f41ec6240e6b | [
"BSD-2-Clause"
] | null | null | null | scripts/generateTOPinclude/functions2InstantiateCoupleds.hpp | SimulationEverywhere/NEP_DAM | bc8cdf661c4a4e050abae12fb756f41ec6240e6b | [
"BSD-2-Clause"
] | null | null | null | scripts/generateTOPinclude/functions2InstantiateCoupleds.hpp | SimulationEverywhere/NEP_DAM | bc8cdf661c4a4e050abae12fb756f41ec6240e6b | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (c) 2017, Cristina Ruiz Martin
* Carleton University, Universidad de Valladolid
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code mu... | 88.699684 | 328 | 0.748729 | SimulationEverywhere |
c6380a50ec09c75187e5d57f4c02f3ed0fafcdd8 | 547 | cpp | C++ | ex29_multidimensional_array.cpp | liggettla/cpp | 779e034a058c00ad1e443bcb670af9baed3f6f6d | [
"MIT"
] | null | null | null | ex29_multidimensional_array.cpp | liggettla/cpp | 779e034a058c00ad1e443bcb670af9baed3f6f6d | [
"MIT"
] | null | null | null | ex29_multidimensional_array.cpp | liggettla/cpp | 779e034a058c00ad1e443bcb670af9baed3f6f6d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main ()
{
int array[8][8]; //Declares an array that looks like a chessboard
for (int i=0; i<8; i++)
{
for (int j=0; j<8; j++)
{
//set each element to a value
array[i][j] = i*j;
}
}
cout << "Multiplicatio... | 18.233333 | 69 | 0.382084 | liggettla |
c63d895310e263fb3f681e64b9b8ecf268b188e1 | 541 | hpp | C++ | src/zufall.hpp | chris-nada/bibliya | 714d1ac937a8c1d604a62b052d80df15658f82e2 | [
"BSD-3-Clause"
] | 1 | 2020-12-18T17:55:06.000Z | 2020-12-18T17:55:06.000Z | src/zufall.hpp | chris-nada/bibliya | 714d1ac937a8c1d604a62b052d80df15658f82e2 | [
"BSD-3-Clause"
] | null | null | null | src/zufall.hpp | chris-nada/bibliya | 714d1ac937a8c1d604a62b052d80df15658f82e2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <random>
#include <chrono>
#include <unordered_map>
namespace Zufall {
/**
* Thread-sichere Methode zum Liefern von Zufallszahlen beliebigen Typs.
* @example Folgendes Beispiel liefert die Zahlen von 1 bis 6 wie auf einem Spielwürfel:
* `get<unsigned>(1, 6)`
*/
... | 23.521739 | 92 | 0.626617 | chris-nada |
c63e1236336656ca197bf0bde54d5be09dab54ed | 4,589 | hpp | C++ | SOLVER/src/core/output/element-wise/element/ElementOpFluid.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 8 | 2020-06-05T01:13:20.000Z | 2022-02-24T05:11:50.000Z | SOLVER/src/core/output/element-wise/element/ElementOpFluid.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 24 | 2020-10-21T19:03:38.000Z | 2021-11-17T21:32:02.000Z | SOLVER/src/core/output/element-wise/element/ElementOpFluid.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 5 | 2020-06-21T11:54:22.000Z | 2021-06-23T01:02:39.000Z | //
// ElementOpFluid.hpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 7/27/20.
// Copyright © 2020 Kuangdai Leng. All rights reserved.
//
// element output in fluid
#ifndef ElementOpFluid_hpp
#define ElementOpFluid_hpp
#include "ElementOp.hpp"
#include "FluidElement.hpp"
#include "Point.hpp"
class ElementOpFl... | 28.861635 | 80 | 0.507082 | nicklinyi |
c641239ffcf288942d47d8f3d488adb558dbf891 | 26,119 | cpp | C++ | Source/AllProjects/CIDKernel/Win32/CIDKernel_MediaChanger_Win32.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | 1 | 2019-05-28T06:33:01.000Z | 2019-05-28T06:33:01.000Z | Source/AllProjects/CIDKernel/Win32/CIDKernel_MediaChanger_Win32.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | Source/AllProjects/CIDKernel/Win32/CIDKernel_MediaChanger_Win32.cpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | //
// FILE NAME: CIDKernel_MediaChanger_Win32.Cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 03/06/2007
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// http... | 28.828918 | 91 | 0.618783 | eudora-jia |
c6516e4a911829677d825af01b3a9c2d84365336 | 2,742 | cpp | C++ | TrayIcon.cpp | ambiesoft/lsMisc | c55f87719c4da2c207199a54064d691b49ed32da | [
"BSD-2-Clause"
] | null | null | null | TrayIcon.cpp | ambiesoft/lsMisc | c55f87719c4da2c207199a54064d691b49ed32da | [
"BSD-2-Clause"
] | null | null | null | TrayIcon.cpp | ambiesoft/lsMisc | c55f87719c4da2c207199a54064d691b49ed32da | [
"BSD-2-Clause"
] | 1 | 2019-05-25T08:16:32.000Z | 2019-05-25T08:16:32.000Z | //Copyright (C) 2017 Ambiesoft All rights reserved.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions
//are met:
//1. Redistributions of source code must retain the above copyright
//notice, this list of conditions and the follow... | 31.883721 | 106 | 0.749453 | ambiesoft |
c658ee204d68a8cdf31d31418789ea4856519bff | 200,923 | cpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Game2048/tile_0064.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Game2048/tile_0064.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F769I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/Game2048/tile_0064.cpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _tile_0064[] LOCATION_EXTFLASH_ATTRIBUTE = { // 100x100 ARGB8888 pixels.
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,... | 283.389281 | 320 | 0.797201 | ramkumarkoppu |
c65d87ab2fe229be5c527b012bb848c4ecd2b51f | 53 | hpp | C++ | src/boost_mpl_aux__preprocessed_dmc_set_c.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_aux__preprocessed_dmc_set_c.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_aux__preprocessed_dmc_set_c.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/aux_/preprocessed/dmc/set_c.hpp>
| 26.5 | 52 | 0.792453 | miathedev |
c6614d6c093462bf571e9730eeaf4721fd1f2f5e | 3,440 | cc | C++ | src/Damage/YoungsModulusPolicy.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 1 | 2020-10-21T01:56:55.000Z | 2020-10-21T01:56:55.000Z | src/Damage/YoungsModulusPolicy.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | src/Damage/YoungsModulusPolicy.cc | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | null | null | null | //---------------------------------Spheral++----------------------------------//
// YoungsModulusPolicy -- An implementation of UpdatePolicyBase specialized
// for the updating the dependent bulk modulus state.
//
// Created by JMO, Sun Jan 23 14:14:24 PST 2005
//--------------------------------------------------------... | 36.210526 | 107 | 0.548256 | markguozhiming |
c6647bd6050dcb2f8e9bca7c82fb7720521ddb90 | 6,228 | hh | C++ | src/app-framework/TimeAdapterImpl.hh | morxa/plexil-4 | 890e92aa259881dd944d573d6ec519341782a5f2 | [
"BSD-3-Clause"
] | 1 | 2020-02-27T03:35:50.000Z | 2020-02-27T03:35:50.000Z | src/app-framework/TimeAdapterImpl.hh | morxa/plexil-4 | 890e92aa259881dd944d573d6ec519341782a5f2 | [
"BSD-3-Clause"
] | null | null | null | src/app-framework/TimeAdapterImpl.hh | morxa/plexil-4 | 890e92aa259881dd944d573d6ec519341782a5f2 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2006-2018, Universities Space Research Association (USRA).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
... | 29.377358 | 97 | 0.677906 | morxa |
c6684cf81a5697d8e683366ad606723b1c4c7065 | 2,043 | hpp | C++ | missions/_missions1/AFAR_demo.Stratis/AFAR/UI/dialogs.hpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | null | null | null | missions/_missions1/AFAR_demo.Stratis/AFAR/UI/dialogs.hpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | null | null | null | missions/_missions1/AFAR_demo.Stratis/AFAR/UI/dialogs.hpp | ademirt/Arma3 | f75c28f59deb45e56d021d9d1d3458b145432bd8 | [
"MIT"
] | null | null | null | class AFAR_UI {
idd=-1;
movingEnable=0;
enableSimulation=1;
controlsBackground[]={};
objects[]={SRRadio};
class SRRadio {
idc=90909;
type=82;
model="\A3\Structures_F\Items\Electronics\PortableLongRangeRadio_F.p3d";
scale=(0.7*0.675*(SafeZoneW Min SafeZoneH));
direction[]={0,10,1};
up[]={0,1,0};
inBack=0;
x=0.4... | 20.846939 | 73 | 0.711698 | ademirt |
c6688ae27532786bd3bc014bc2e00c77e70168e5 | 2,202 | cpp | C++ | objloader.cpp | Victer3965/OGL2 | 752ff9519f69cb63c6246268fdbb4c2e25728044 | [
"MIT"
] | null | null | null | objloader.cpp | Victer3965/OGL2 | 752ff9519f69cb63c6246268fdbb4c2e25728044 | [
"MIT"
] | null | null | null | objloader.cpp | Victer3965/OGL2 | 752ff9519f69cb63c6246268fdbb4c2e25728044 | [
"MIT"
] | null | null | null | #include "OBJLoader.h"
#include <QFile>
#include <QMessageBox>
#include <QTextStream>
OBJLoader::OBJLoader()
{
}
RawModel *OBJLoader::Load(QString path)
{
QVector<QVector3D> tempVertices, outVertices;
QVector<QVector2D> tempTextures, outTextures;
QVector<QVector3D> tempNormals, outNormals;
... | 31.457143 | 107 | 0.566757 | Victer3965 |
c66d80a566ce1e6d5c48e0ab2784983957f70360 | 385 | hpp | C++ | Jackal/Source/Canis/Public/Canis/Compiler.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/Canis/Public/Canis/Compiler.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | Jackal/Source/Canis/Public/Canis/Compiler.hpp | CheezBoiger/Jackal | 6c87bf19f6c1cd63f53c815820b32fc71b48bf77 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Jackal Engine, MIT License.
#pragma once
#include "Token.hpp"
namespace Canis {
// The compiler COM object. Must be instantiated and used to compile our
// homebrewed canis language into GLSL, HLSL, or Cg.
class Compiler {
public:
Compiler();
~Compiler();
void SetCompileTo(ShaderFileT... | 16.73913 | 72 | 0.722078 | CheezBoiger |
c671cf81db593f1d5b9c398bd6d1e7b89452114a | 67,784 | cpp | C++ | srcs/writer/writermoovimpl.cpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | srcs/writer/writermoovimpl.cpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | srcs/writer/writermoovimpl.cpp | Reflectioner/heif | bdac2fc9c66d8c1e8994eaf81f1a5db116b863ab | [
"BSD-3-Clause"
] | null | null | null | /* This file is part of Nokia HEIF library
*
* Copyright (c) 2015-2020 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
*
* Contact: heif@nokia.com
*
* This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its
* subsidiaries. All rights are r... | 38.889271 | 120 | 0.546825 | Reflectioner |
c67c52fcfe1b88b06016e5a6166cf81524dbecf5 | 167 | cpp | C++ | test/cpp/test_main.cpp | janezb/qminer | ffd55fbf4202590fb927bb453fc85e3b3bcfd085 | [
"BSD-2-Clause-FreeBSD"
] | 222 | 2015-01-05T21:04:31.000Z | 2021-11-25T08:21:01.000Z | test/cpp/test_main.cpp | janezb/qminer | ffd55fbf4202590fb927bb453fc85e3b3bcfd085 | [
"BSD-2-Clause-FreeBSD"
] | 153 | 2015-01-02T11:51:02.000Z | 2021-12-23T14:07:38.000Z | test/cpp/test_main.cpp | janezb/qminer | ffd55fbf4202590fb927bb453fc85e3b3bcfd085 | [
"BSD-2-Clause-FreeBSD"
] | 50 | 2015-02-06T15:34:44.000Z | 2021-11-25T08:25:35.000Z | //#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
//#include "catch_v2.1.1.hpp"
#include "microtest.h"
TEST_MAIN();
| 27.833333 | 99 | 0.712575 | janezb |
c67fe6a0177386f74edbf8ec67269fd6fa3f181b | 3,019 | cpp | C++ | platforms/qt/tangram/qtangramgeometry.cpp | quitejonny/tangram-es | b457b7fc59e3e0f3c6d7bc26a0b5fe62098376fb | [
"MIT"
] | null | null | null | platforms/qt/tangram/qtangramgeometry.cpp | quitejonny/tangram-es | b457b7fc59e3e0f3c6d7bc26a0b5fe62098376fb | [
"MIT"
] | 1 | 2020-10-09T21:57:12.000Z | 2020-10-09T21:57:12.000Z | platforms/qt/tangram/qtangramgeometry.cpp | quitejonny/tangram-es | b457b7fc59e3e0f3c6d7bc26a0b5fe62098376fb | [
"MIT"
] | null | null | null | #include "qtangramgeometry.h"
#include "qtangrampoint.h"
#include "tangramquick.h"
#include "map.h"
#include <QJsonObject>
#include <QJsonDocument>
#include <QJSValue>
#include <QDebug>
QTangramGeometry::QTangramGeometry(QObject *parent)
: QObject(parent),
m_markerId(-1),
m_clickable(false),
m_ma... | 20.398649 | 79 | 0.689301 | quitejonny |
c6829c01693e1ecc23a1aaa176993b613ce983ef | 715 | cpp | C++ | QtAppPrototype/main.cpp | philmccarthy24/LinearStage | 4908bcdd4ddc5bbdb21de77541f23803640ecd0b | [
"Unlicense"
] | null | null | null | QtAppPrototype/main.cpp | philmccarthy24/LinearStage | 4908bcdd4ddc5bbdb21de77541f23803640ecd0b | [
"Unlicense"
] | null | null | null | QtAppPrototype/main.cpp | philmccarthy24/LinearStage | 4908bcdd4ddc5bbdb21de77541f23803640ecd0b | [
"Unlicense"
] | null | null | null | #include "mainwindow.h"
#include <QApplication>
#include "cstagecontroller.h"
#include "hardwareserialui.h"
using namespace std;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
auto pHardwareSerialUI = make_shared<HardwareSerialUI>();
auto pMainWind = make_shared<MainWindow>(... | 27.5 | 137 | 0.71049 | philmccarthy24 |
c68df259aa15dea43da53270a209c2408e47ca30 | 1,642 | cpp | C++ | discovery/source/ConnectivityInfo.cpp | MichaelGoberling/aws-iot-device-sdk-cpp-v2 | 58ab585c57ccdc2621554bd58f77ab5b7727503e | [
"Apache-2.0"
] | null | null | null | discovery/source/ConnectivityInfo.cpp | MichaelGoberling/aws-iot-device-sdk-cpp-v2 | 58ab585c57ccdc2621554bd58f77ab5b7727503e | [
"Apache-2.0"
] | null | null | null | discovery/source/ConnectivityInfo.cpp | MichaelGoberling/aws-iot-device-sdk-cpp-v2 | 58ab585c57ccdc2621554bd58f77ab5b7727503e | [
"Apache-2.0"
] | null | null | null | /* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license... | 31.576923 | 100 | 0.599269 | MichaelGoberling |
c692e87280fe71cacb9add84628ae8b0d67662b9 | 471 | cpp | C++ | src/CurrModeHandler.cpp | dudad/words | bba0d3bd1c2a5fd395fa3f0166fcf9c4c2063074 | [
"MIT"
] | null | null | null | src/CurrModeHandler.cpp | dudad/words | bba0d3bd1c2a5fd395fa3f0166fcf9c4c2063074 | [
"MIT"
] | null | null | null | src/CurrModeHandler.cpp | dudad/words | bba0d3bd1c2a5fd395fa3f0166fcf9c4c2063074 | [
"MIT"
] | null | null | null | #include "CurrModeHandler.h"
void CurrModeHandler::addMode(Mode * mode, Mode * nextMode)
{
if(m_currMode == nullptr)
{
m_currMode = mode;
m_currMode->init();
}
m_transitions.insert(std::make_pair(mode, nextMode));
}
void CurrModeHandler::checkTransitions()
{
if(m_currMode->isFinished())
{
auto ... | 20.478261 | 59 | 0.651805 | dudad |
c6956c977beca88b968a2c04918bcfb414a1659e | 3,340 | hpp | C++ | common/math_util.hpp | canaryinthemines/ILLIXR | 1e3d9b2a4c56f6bf311cbeda83171359e285b10e | [
"NCSA",
"MIT"
] | null | null | null | common/math_util.hpp | canaryinthemines/ILLIXR | 1e3d9b2a4c56f6bf311cbeda83171359e285b10e | [
"NCSA",
"MIT"
] | null | null | null | common/math_util.hpp | canaryinthemines/ILLIXR | 1e3d9b2a4c56f6bf311cbeda83171359e285b10e | [
"NCSA",
"MIT"
] | null | null | null | #pragma once
namespace ILLIXR {
namespace math_util {
// Calculates a projection matrix with given properties. Implementation
// borrowed from J.M.P. Van Waveren's ksAlgebra library, as found in
// https://github.com/KhronosGroup/Vulkan-Samples-Deprecated/blob/master/samples/apps/atw/atw_opengl.c
void projec... | 35.531915 | 104 | 0.603892 | canaryinthemines |
c695a0e072157c3369ea9b7c4943eea885b3b4c6 | 3,581 | cpp | C++ | CH5/COMPALG/src/compAlg.cpp | acastellanos95/AppCompPhys | 920a7ba707e92f1ef92fba9d97323863994f0b1a | [
"MIT"
] | null | null | null | CH5/COMPALG/src/compAlg.cpp | acastellanos95/AppCompPhys | 920a7ba707e92f1ef92fba9d97323863994f0b1a | [
"MIT"
] | null | null | null | CH5/COMPALG/src/compAlg.cpp | acastellanos95/AppCompPhys | 920a7ba707e92f1ef92fba9d97323863994f0b1a | [
"MIT"
] | null | null | null | #include "QatPlotWidgets/PlotView.h"
#include "QatPlotting/PlotStream.h"
#include "QatPlotting/PlotPoint.h"
#include "QatPlotting/PlotFunction1D.h"
#include "QatGenericFunctions/Variable.h"
#include "QatGenericFunctions/SimpleIntegrator.h"
#include "QatGenericFunctions/RombergIntegrator.h"
#include "QatGenericFunctions... | 28.420635 | 135 | 0.619939 | acastellanos95 |
578df27cdf1d56a2c4aba0e959c0a1bba4606893 | 3,098 | cpp | C++ | test/android/android_test.cpp | xpgdk/aware | 985e4120d93c1e88b26d6a7420de01c146584902 | [
"BSL-1.0"
] | null | null | null | test/android/android_test.cpp | xpgdk/aware | 985e4120d93c1e88b26d6a7420de01c146584902 | [
"BSL-1.0"
] | null | null | null | test/android/android_test.cpp | xpgdk/aware | 985e4120d93c1e88b26d6a7420de01c146584902 | [
"BSL-1.0"
] | null | null | null | #include <iostream>
#include <jni.h>
#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <boost/asio.hpp>
#include <aware/contact.hpp>
#include <aware/android/factory.hpp>
static aware::android::factory *factory;
static boost::shared_ptr<boost::asio::io_service> ios... | 30.07767 | 117 | 0.696256 | xpgdk |
579103b2bb78f19eb0b794bb5ff16b9d20cd1643 | 1,073 | hpp | C++ | ThirdParty/logog/include/timer.hpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 1 | 2021-06-25T13:43:06.000Z | 2021-06-25T13:43:06.000Z | ThirdParty/logog/include/timer.hpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 25 | 2015-02-04T20:34:21.000Z | 2018-12-10T20:19:57.000Z | ThirdParty/logog/include/timer.hpp | OlafKolditz/ogs | e33400e1d9503d33ce80509a3441a873962ad675 | [
"BSD-4-Clause"
] | 2 | 2018-03-01T13:07:12.000Z | 2018-03-01T13:16:22.000Z | /**
* \file timer.hpp Time management.
*/
#ifndef __LOGOG_TIMER_HPP__
#define __LOGOG_TIMER_HPP__
namespace logog
{
/** A value for a high resolution timer on this platform. Time representations are in seconds. */
typedef double LOGOG_TIME;
/** A high-resolution timer. Reports in seconds. */
class Timer : public... | 24.953488 | 101 | 0.699907 | OlafKolditz |
579221965e8f36b63d64946c10a416f10239d8c8 | 167 | cpp | C++ | animal.cpp | twareintor/DTR_opOverlDemo | 1901ddcd0994bda34360cf4d3f3b2723e8d0a38a | [
"MIT"
] | null | null | null | animal.cpp | twareintor/DTR_opOverlDemo | 1901ddcd0994bda34360cf4d3f3b2723e8d0a38a | [
"MIT"
] | null | null | null | animal.cpp | twareintor/DTR_opOverlDemo | 1901ddcd0994bda34360cf4d3f3b2723e8d0a38a | [
"MIT"
] | null | null | null |
#include "animal.h"
std::ostream& operator<<(std::ostream& out, const CAnimal& ani)
{
out<<std::hex<<"animal["<<ani.m_id<<"]"<<std::dec;
return out;
}
| 15.181818 | 64 | 0.580838 | twareintor |
57944ebbdc892d1cded4e6fff6419ed92a262749 | 373 | cpp | C++ | ISAMMGR/Sidxmgr.cpp | yantis/amps-cellular-interceptor | fff85cf5e4ba01a916a20f75a29d7ce8cc4a3df0 | [
"MIT"
] | 4 | 2018-02-12T15:18:43.000Z | 2021-03-08T21:35:31.000Z | ISAMMGR/Sidxmgr.cpp | yantis/amps-cellular-interceptor | fff85cf5e4ba01a916a20f75a29d7ce8cc4a3df0 | [
"MIT"
] | null | null | null | ISAMMGR/Sidxmgr.cpp | yantis/amps-cellular-interceptor | fff85cf5e4ba01a916a20f75a29d7ce8cc4a3df0 | [
"MIT"
] | null | null | null | // Single-user elements of indexmgr
#include "indexmgr.h"
void IndexMgr::read_head_info(void)
{
}
int IndexMgr::check_node_del(void)
{
return 1;
}
int IndexMgr::check_split_del(void)
{
return 1;
}
void IndexMgr::inc_node_del(void)
{
}
void IndexMgr::inc_node_split(void)
{
}
... | 11.65625 | 36 | 0.632708 | yantis |
57949c15d0cdafe17fad5dfbe4658e2d01daded9 | 3,643 | cpp | C++ | blinkstick-userspace-led-daemon/src/LEDBinding.cpp | ktgeek/bluld | 1da0e68501c6a44a0c6776f5b05152ede2d54a2c | [
"MIT"
] | 1 | 2019-10-28T16:20:33.000Z | 2019-10-28T16:20:33.000Z | blinkstick-userspace-led-daemon/src/LEDBinding.cpp | ktgeek/blinkstick-userspace-led-daemon | 1da0e68501c6a44a0c6776f5b05152ede2d54a2c | [
"MIT"
] | 1 | 2021-06-10T19:49:34.000Z | 2021-06-10T19:49:34.000Z | blinkstick-userspace-led-daemon/src/LEDBinding.cpp | ktgeek/bluld | 1da0e68501c6a44a0c6776f5b05152ede2d54a2c | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2019 Keith T. Garner
//
// 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, mod... | 26.208633 | 100 | 0.73703 | ktgeek |
5798f8b4e03a2ff4410a478fd38cd25a66273d81 | 12,325 | cc | C++ | src/ui.cc | fperleta/daska | bb6f5364e4a1d955bf6677e3629f0779c3017cfb | [
"MIT"
] | null | null | null | src/ui.cc | fperleta/daska | bb6f5364e4a1d955bf6677e3629f0779c3017cfb | [
"MIT"
] | null | null | null | src/ui.cc | fperleta/daska | bb6f5364e4a1d955bf6677e3629f0779c3017cfb | [
"MIT"
] | null | null | null |
/*
* daska/ui.cc
* copyright (c) 2015 Frano Perleta
* see the file LICENCE.txt for copyright information.
*/
#include <unistd.h>
#include "common.h"
#include "config.h"
#include "draw.h"
#include "view.h"
#include "ui.h"
using namespace std;
// conn {{{
// constructor {{{
static void
xfd_cb (struct ev_loop* l... | 22.368421 | 93 | 0.511237 | fperleta |
57995df99a5770dffcbe2aac9e0fa231321c4d76 | 1,923 | cpp | C++ | analysis/curve_similarity.cpp | zhitko/sptk-analyzer | d70de9ae4c3c20efe51864a174310ca59d31c11f | [
"MIT"
] | 7 | 2017-12-02T20:47:53.000Z | 2021-06-17T12:22:17.000Z | analysis/curve_similarity.cpp | zhitko/sptk-analyzer | d70de9ae4c3c20efe51864a174310ca59d31c11f | [
"MIT"
] | 1 | 2019-03-27T21:31:30.000Z | 2019-03-27T21:31:30.000Z | analysis/curve_similarity.cpp | zhitko/inton-trainer | d70de9ae4c3c20efe51864a174310ca59d31c11f | [
"MIT"
] | null | null | null | #include "curve_similarity.h"
#include "utils.h"
#include "defines.h"
#include <cmath>
double calculateCurvesSimilarityCorrelation(vector x, vector y)
{
double result = 0;
double my = midv(y);
double mx = midv(x);
double xx = 0.0;
double yy = 0.0;
for(int i=0; i<x.x && i<y.x; i+... | 26.708333 | 76 | 0.574103 | zhitko |
57a168660d7df36e38df57dae9eb2a0bd19fc6ab | 1,065 | cpp | C++ | oj/sp/NY10A.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | oj/sp/NY10A.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | oj/sp/NY10A.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | /*
* Created by
* Shivani Bhardwaj <shivanib134@gmail.com>
*/
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
int P,N;
string s,t;
cin>>P;
while(P--)
{
int B[8];
memset(B,0,sizeof B);
cin>>N;
cin.ignore();
... | 22.1875 | 44 | 0.26385 | shivanib01 |
57a4544f8c41de65efc614c782d921bbbd52b496 | 449 | cpp | C++ | _Algotester/polygon.cpp | DenysGusti/university | d90ddbc3cb023a0d8c8799223457999da4da23b1 | [
"MIT"
] | null | null | null | _Algotester/polygon.cpp | DenysGusti/university | d90ddbc3cb023a0d8c8799223457999da4da23b1 | [
"MIT"
] | null | null | null | _Algotester/polygon.cpp | DenysGusti/university | d90ddbc3cb023a0d8c8799223457999da4da23b1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main() {
short n, i;
cin >> n;
long double eps = 1e-11, R, sum_phi, l = n / 2.0, r = n * n;
for (; r - l > eps; ((sum_phi > 2 * M_PI) ? l : r) = R)
for (R = ((n < l + r) ? l + r : n) / 2, sum_phi = 0, i = 1; i <= ... | 26.411765 | 80 | 0.458797 | DenysGusti |
57a47ea8c5baddba1eca8bffa7e5a052245bc8f2 | 737 | cpp | C++ | C++/52 N-Queens II.cpp | wr786/Key-to-LeetCode | edc1c1ec5ee9c268422cd857e27e5b9fbfae6fee | [
"Apache-2.0"
] | 4 | 2020-01-12T01:20:42.000Z | 2020-10-11T07:24:31.000Z | C++/52 N-Queens II.cpp | wr786/Key-to-LeetCode | edc1c1ec5ee9c268422cd857e27e5b9fbfae6fee | [
"Apache-2.0"
] | null | null | null | C++/52 N-Queens II.cpp | wr786/Key-to-LeetCode | edc1c1ec5ee9c268422cd857e27e5b9fbfae6fee | [
"Apache-2.0"
] | 1 | 2021-09-14T14:14:55.000Z | 2021-09-14T14:14:55.000Z | class Solution {
private:
int viscol[14] = {0};
int visrdl[27] = {0}; // ↘↘
int visldl[27] = {0}; // ↙↙
int nGlobal;
int ans = 0;
void search(int pos) {
if(pos == nGlobal + 1) {
vector<string> thisAns;
ans++;
return;
}
for(int j=1; j<=n... | 26.321429 | 74 | 0.438263 | wr786 |
57a7f59b2f68d4bceba824a1835f30fa0692eed3 | 758 | cpp | C++ | LinearAlgebra/matrices/index_submatrix/index_submatrix.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | LinearAlgebra/matrices/index_submatrix/index_submatrix.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | LinearAlgebra/matrices/index_submatrix/index_submatrix.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | #include "index_submatrix.hpp"
namespace algebra::matrices {
index_submatrix::index_submatrix(const index_matrix_i &source,
const pixel &cross)
: source_(source), cross_(cross) {}
size_t index_submatrix::rows() const { return source_.rows() - 1; }
size_t index_submatrix::columns... | 31.583333 | 73 | 0.705805 | suiyili |
57ab946b009a4478b548dbdb998809ea75805b2b | 1,234 | cc | C++ | sieve2015/src/bit_table_cnte.cc | mhdeleglise/Gh | 21a0b9bd53ae9de17f8b99040cac95cd6e1897e4 | [
"MIT"
] | null | null | null | sieve2015/src/bit_table_cnte.cc | mhdeleglise/Gh | 21a0b9bd53ae9de17f8b99040cac95cd6e1897e4 | [
"MIT"
] | null | null | null | sieve2015/src/bit_table_cnte.cc | mhdeleglise/Gh | 21a0b9bd53ae9de17f8b99040cac95cd6e1897e4 | [
"MIT"
] | null | null | null | #include<mylib.h>
#include<vector>
#include<bit_table_cnte.h>
void
bit_table_cnte::create(long n)
{
bit_table::create(n);
//counter_array = new long[get_word_size()];
counter_array.resize(get_word_size(),0);
}
int
bit_table_cnte::init_counters()
{
//cout << "Bit table_cnte Init counters word_size= " << get_w... | 23.283019 | 90 | 0.614263 | mhdeleglise |
57b13f820f03493f19d223b5da5d83e9b5e8a0ec | 6,360 | cpp | C++ | src/Physics/PhysicsWorldGame.cpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | null | null | null | src/Physics/PhysicsWorldGame.cpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | null | null | null | src/Physics/PhysicsWorldGame.cpp | mtesseracttech/CustomEngine | 1a9ed564408ae29fe49681a810b851403d71f486 | [
"Apache-2.0"
] | null | null | null | #include "PhysicsWorldGame.h"
#include "mge/core/Renderer.hpp"
#include "mge/core/Mesh.hpp"
#include "mge/core/World.hpp"
#include "Physics/RigidBody.h"
#include "mge/core/Camera.hpp"
#include "mge/core/GameObject.hpp"
#include "mge/materials/AbstractMaterial.hpp"
#include "mge/materials/ColorMaterial.hpp"
#include ... | 34.565217 | 130 | 0.71761 | mtesseracttech |
57b3b0cdd5f3b86c1dd4b8ced61915d9f2797231 | 571 | cpp | C++ | lessons/week7/testy/test_horzline.cpp | Wiladams/sr | 4151ddc8303a78e44b0921d9dea0617dd412a7db | [
"MIT"
] | 1 | 2020-03-25T22:02:46.000Z | 2020-03-25T22:02:46.000Z | lessons/week7/testy/test_horzline.cpp | Wiladams/sr | 4151ddc8303a78e44b0921d9dea0617dd412a7db | [
"MIT"
] | null | null | null | lessons/week7/testy/test_horzline.cpp | Wiladams/sr | 4151ddc8303a78e44b0921d9dea0617dd412a7db | [
"MIT"
] | 2 | 2020-02-06T01:59:27.000Z | 2020-02-10T01:22:41.000Z | #include "p5.hpp"
void draw()
{
PixRGBA c1(255,0,0,255);
PixRGBA c2(0,255,0,200);
PixRGBA c3 = color(0,0,255,127);
// baseline red
stroke(c1);
for (int y = 0; y<250; y++) {
line(0,y,width-1,y);
}
// overlapping translucent green
stroke(c2);
for (int y = 150; y<heigh... | 16.794118 | 40 | 0.521891 | Wiladams |
57b3bd131b235d1153a2328d1d69ea93e4da2689 | 1,315 | hpp | C++ | products/BellHybrid/apps/common/include/common/models/AudioModel.hpp | SP2FET/MuditaOS-1 | 2906bb8a2fb3cdd39b167e600f6cc6d9ce1327bd | [
"BSL-1.0"
] | null | null | null | products/BellHybrid/apps/common/include/common/models/AudioModel.hpp | SP2FET/MuditaOS-1 | 2906bb8a2fb3cdd39b167e600f6cc6d9ce1327bd | [
"BSL-1.0"
] | null | null | null | products/BellHybrid/apps/common/include/common/models/AudioModel.hpp | SP2FET/MuditaOS-1 | 2906bb8a2fb3cdd39b167e600f6cc6d9ce1327bd | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "AbstractAudioModel.hpp"
#include <apps-common/AsyncTask.hpp>
namespace app
{
class AudioModel : public AbstractAudioModel, public app::AsyncCallbackReceive... | 39.848485 | 109 | 0.726236 | SP2FET |
57b591f15ee7caa708db12f1dbfc55b6061e2afa | 21,303 | cc | C++ | src/bsp/cbssp.cc | lpzun/bssp | e56e991f048adf77b0ef8b4097e962725cc1ac5f | [
"MIT"
] | null | null | null | src/bsp/cbssp.cc | lpzun/bssp | e56e991f048adf77b0ef8b4097e962725cc1ac5f | [
"MIT"
] | null | null | null | src/bsp/cbssp.cc | lpzun/bssp | e56e991f048adf77b0ef8b4097e962725cc1ac5f | [
"MIT"
] | null | null | null | /**
* @brief bssp.cc
*
* @date : May 21, 2016
* @author: Peizun Liu
*/
#include "bssp.hh"
namespace bssp {
/**
* @brief constructor
* @param s_initl
* @param s_final
* @param filename
*/
CBSSP::CBSSP(const string& s_initl, const string& s_final,
const string& filename) :
initl_TS(), final_... | 29.919944 | 81 | 0.536028 | lpzun |
57b601d172deed739d82c56bd27ff9214e9620d8 | 5,959 | cc | C++ | src/gb/file/memory_file_protocol.cc | jpursey/game-bits | 2daefa2cef5601939dbea50a755b8470e38656ae | [
"MIT"
] | 1 | 2020-07-11T17:03:19.000Z | 2020-07-11T17:03:19.000Z | src/gb/file/memory_file_protocol.cc | jpursey/gbits | 4dfedd1297ca368ad1d80a03308fc4da0241f948 | [
"MIT"
] | 2 | 2021-12-10T13:38:51.000Z | 2022-02-22T16:02:24.000Z | src/gb/file/memory_file_protocol.cc | jpursey/game-bits | 2daefa2cef5601939dbea50a755b8470e38656ae | [
"MIT"
] | null | null | null | // Copyright (c) 2020 John Pursey
//
// Use of this source code is governed by an MIT-style License that can be found
// in the LICENSE file or at https://opensource.org/licenses/MIT.
#include "gb/file/memory_file_protocol.h"
#include <atomic>
#include <vector>
#include "absl/strings/match.h"
#include "absl/strings/... | 27.460829 | 80 | 0.656486 | jpursey |
57bb0d9eb2983c273c5bbec9f3f8849729117953 | 1,119 | cpp | C++ | Vic2ToHoI4Tests/MapperTests/CountryName/CountryNameMapperTests.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 25 | 2018-12-10T03:41:49.000Z | 2021-10-04T10:42:36.000Z | Vic2ToHoI4Tests/MapperTests/CountryName/CountryNameMapperTests.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 739 | 2018-12-13T02:01:20.000Z | 2022-03-28T02:57:13.000Z | Vic2ToHoI4Tests/MapperTests/CountryName/CountryNameMapperTests.cpp | Osariusz/Vic2ToHoI4 | 9738b52c7602b1fe187c3820660c58a8d010d87e | [
"MIT"
] | 43 | 2018-12-10T03:41:58.000Z | 2022-03-22T23:55:41.000Z | #include "Mappers/CountryName/CountryNameMapperFactory.h"
#include "gtest/gtest.h"
#include <sstream>
TEST(Mappers_CountryName_CountryNameMapperTests, NonMatchReturnsNullopt)
{
const auto mapper = Mappers::CountryNameMapper::Factory().importCountryNameMapper();
ASSERT_EQ(std::nullopt, mapper->getVic2Government("n... | 31.083333 | 91 | 0.810545 | gawquon |
57bb5c0e7cd6466b4c5ca3b016b6ef93c5fc8021 | 11,088 | cpp | C++ | render/Renderer.cpp | myirci/3d_circle_estimation | 7161005ab14d510503310e0bb028fea5ad2a1389 | [
"MIT"
] | 5 | 2020-07-16T18:59:05.000Z | 2022-03-04T01:25:54.000Z | render/Renderer.cpp | myirci/3d_circle_estimation | 7161005ab14d510503310e0bb028fea5ad2a1389 | [
"MIT"
] | null | null | null | render/Renderer.cpp | myirci/3d_circle_estimation | 7161005ab14d510503310e0bb028fea5ad2a1389 | [
"MIT"
] | 1 | 2021-04-08T13:49:32.000Z | 2021-04-08T13:49:32.000Z | #include "Renderer.hpp"
#include "../utility/utility.hpp"
#include <iostream>
#include <wx/dcclient.h>
renderer::renderer(int width, int height) : m_screen(width, height), m_projection(Eigen::Matrix4d::Identity()) { }
renderer::renderer() : m_screen(0, 0), m_projection(Eigen::Matrix4d::Identity()), m_pure_projection(... | 35.652733 | 145 | 0.6204 | myirci |
57c228366d9a7f1eb60238166c9d4e3604e31f7b | 102 | cpp | C++ | dev c++/15596.cpp | muguk04-4/first_TEST | 17ba3ea01fb0277a5cd79bde516363f6bbc40d2c | [
"MIT"
] | null | null | null | dev c++/15596.cpp | muguk04-4/first_TEST | 17ba3ea01fb0277a5cd79bde516363f6bbc40d2c | [
"MIT"
] | null | null | null | dev c++/15596.cpp | muguk04-4/first_TEST | 17ba3ea01fb0277a5cd79bde516363f6bbc40d2c | [
"MIT"
] | null | null | null | int sum(int *a, int n){
int a_sum = 0;
for(int i=0 ; i<n ; i++){
a_sum+=a[i];
}
return a_sum;
}
| 12.75 | 26 | 0.509804 | muguk04-4 |
57c37000a50c4ab220d8ab9b2e1660ab9338964b | 20,878 | cpp | C++ | misc/credits.cpp | usadson/WebEngine | 73f436535a70c6c9d7f3a5c565650b6152effd8d | [
"BSD-2-Clause"
] | 3 | 2020-03-28T01:36:44.000Z | 2020-06-19T23:55:08.000Z | misc/credits.cpp | usadson/WebEngine | 73f436535a70c6c9d7f3a5c565650b6152effd8d | [
"BSD-2-Clause"
] | null | null | null | misc/credits.cpp | usadson/WebEngine | 73f436535a70c6c9d7f3a5c565650b6152effd8d | [
"BSD-2-Clause"
] | null | null | null | /**
* WARNING When changing the copyright dates on new years day, make sure to
* update the licenses in this file as well!
*
* Copyright (C) 2020 Tristan. All Rights Reserved.
* This file is licensed under the BSD 2-Clause license.
* See the COPYING file for licensing information.
*/
#include "credits.hpp"
#in... | 47.128668 | 103 | 0.731344 | usadson |
57c4bfd7275d8250852f7e6a70072ec38d0cd0ec | 7,184 | cpp | C++ | engine/runtime/input/input.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 791 | 2016-11-04T14:13:41.000Z | 2022-03-20T20:47:31.000Z | engine/runtime/input/input.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 28 | 2016-12-01T05:59:30.000Z | 2021-03-20T09:49:26.000Z | engine/runtime/input/input.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 151 | 2016-12-21T09:44:43.000Z | 2022-03-31T13:42:18.000Z | #include "input.h"
#include "../system/events.h"
namespace runtime
{
input::input()
{
auto p = mml::mouse::get_position();
current_cursor_position_.x = p[0];
current_cursor_position_.y = p[1];
last_cursor_position_ = current_cursor_position_;
on_platform_events.connect(this, &input::platform_events);
on_frame_e... | 22.520376 | 102 | 0.740674 | ValtoForks |
57cb4fc2c3ff0825f675bbea11e8a0760ae5024f | 387 | hpp | C++ | src/minimap.hpp | martin-favre/destrobustro | 9bb646bd81a351e2642be931014b3ded847ff511 | [
"MIT"
] | null | null | null | src/minimap.hpp | martin-favre/destrobustro | 9bb646bd81a351e2642be931014b3ded847ff511 | [
"MIT"
] | null | null | null | src/minimap.hpp | martin-favre/destrobustro | 9bb646bd81a351e2642be931014b3ded847ff511 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <string>
#include "map.hpp"
#include "ui.hpp"
class Minimap{
public:
Minimap(Ui * ui, Map * map, int, int, int, int);
void paint(int cx, int cy); //Paints minimap around centerpoint
private:
Map * m_map = nullptr;
Ui * m_ui = nullptr;
int m_px = 0;
int m_py = 0;
int m... | 18.428571 | 65 | 0.638243 | martin-favre |
57cf6e7dc32f47ca97513b5a6a93edbd17e87245 | 1,111 | cpp | C++ | heaps/pq_stl_person.cpp | saksham-jain01/data-structures-algorithms | 7ce95dbd2fd31c693a4bc84b434d36fe397064da | [
"MIT"
] | null | null | null | heaps/pq_stl_person.cpp | saksham-jain01/data-structures-algorithms | 7ce95dbd2fd31c693a4bc84b434d36fe397064da | [
"MIT"
] | null | null | null | heaps/pq_stl_person.cpp | saksham-jain01/data-structures-algorithms | 7ce95dbd2fd31c693a4bc84b434d36fe397064da | [
"MIT"
] | null | null | null | #include<iostream>
#include<queue>
#include<cstring>
using namespace std;
class Person{
public:
char name[200];
int money;
int wt;
Person(char *n,int m,int w){
strcpy(name,n);
money = m;
wt = w;
}
void print(){
cout<<name<<endl;
cout<... | 18.213115 | 57 | 0.486949 | saksham-jain01 |
57cf6f8704a7fd844a699a5b4c99e76e5e67c631 | 1,892 | cpp | C++ | src/research/event.cpp | cgzones/ctguard | f06e5f393328e7daa7cef9d47204f6395683ddc6 | [
"MIT"
] | 4 | 2020-01-18T10:42:17.000Z | 2022-01-04T14:17:18.000Z | src/research/event.cpp | cgzones/ctguard | f06e5f393328e7daa7cef9d47204f6395683ddc6 | [
"MIT"
] | 1 | 2018-07-27T14:24:58.000Z | 2018-07-27T14:24:58.000Z | src/research/event.cpp | cgzones/ctguard | f06e5f393328e7daa7cef9d47204f6395683ddc6 | [
"MIT"
] | 1 | 2018-07-27T12:08:32.000Z | 2018-07-27T12:08:32.000Z | #include "event.hpp"
#include "rule.hpp"
#include <chrono>
#include <iomanip>
#include <regex>
namespace ctguard::research {
event::event(const libs::source_event & se) : m_logstr{ se.message }, m_control_message{ se.control_message }
{
m_traits.insert({ "hostname", se.hostname });
m_traits.insert({ "source... | 25.917808 | 109 | 0.563425 | cgzones |
57d1650a9d812b3a17400e1b401524d39190c018 | 6,433 | cpp | C++ | src/graphs/treewidth/TreewidthDP.cpp | swacisko/mc-2020 | d2fa15913c199ef4a0e42d7ba43bf6d7e8688201 | [
"BSD-2-Clause"
] | 1 | 2020-08-20T06:47:33.000Z | 2020-08-20T06:47:33.000Z | src/graphs/treewidth/TreewidthDP.cpp | swacisko/mc-2020 | d2fa15913c199ef4a0e42d7ba43bf6d7e8688201 | [
"BSD-2-Clause"
] | null | null | null | src/graphs/treewidth/TreewidthDP.cpp | swacisko/mc-2020 | d2fa15913c199ef4a0e42d7ba43bf6d7e8688201 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by sylwester on 5/22/20.
//
#include <graphs/treewidth/TreewidthDP.h>
#include <graphs/treewidth/pace.h>
#include <combinatorics/GrayCode.h>
#include "graphs/treewidth/TreewidthDP.h"
TreewidthDP::TreewidthDP(VVI &V) {
this->V = &V;
N = V.size();
cerr << "NOT TESTED YET!" << endl; exit(1);
... | 33.331606 | 155 | 0.493238 | swacisko |
57d6ab55c575413939dec6016db1e3aa91c0f6d6 | 1,764 | cc | C++ | graph/hungarian.cc | mwien/tcr | a0d7db1d360145979c4f24e8ae6f2846ef4b7181 | [
"MIT"
] | null | null | null | graph/hungarian.cc | mwien/tcr | a0d7db1d360145979c4f24e8ae6f2846ef4b7181 | [
"MIT"
] | null | null | null | graph/hungarian.cc | mwien/tcr | a0d7db1d360145979c4f24e8ae6f2846ef4b7181 | [
"MIT"
] | null | null | null | /* Hungarian algorithm
** n^3
* Finds the minimal matching (sum of edge weights should be minimal) in a bipartite graph with weights
*/
//START
const int MAXN = 105;
const int INF = 1000 * 1000 * 1000;
int n;
int a[MAXN][MAXN];
int u[MAXN], v[MAXN], link[MAXN], par[MAXN], used[MAXN], minval[MAXN];
int main() {
... | 28 | 102 | 0.400227 | mwien |
57d7d3e4eb4585c2f2ff3940c8b0087cbf1e86cd | 1,577 | cpp | C++ | dometer/config/parser.cpp | maxenglander/dometer | baf9ed81f9d1e8bb67750ac278af5a9e0c4b89b9 | [
"MIT"
] | null | null | null | dometer/config/parser.cpp | maxenglander/dometer | baf9ed81f9d1e8bb67750ac278af5a9e0c4b89b9 | [
"MIT"
] | null | null | null | dometer/config/parser.cpp | maxenglander/dometer | baf9ed81f9d1e8bb67750ac278af5a9e0c4b89b9 | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <memory>
#include <sstream>
#include "dometer/app/options.hpp"
#include "dometer/config/internal_parser.hpp"
#include "dometer/config/parser.hpp"
#include "dometer/config/schema_validator.hpp"
#include "json/json.h"
#include "dometer/util/error.hpp"
#include "std/x/expec... | 30.921569 | 88 | 0.628408 | maxenglander |
57dfe99257f54d9908ab808ceb85ffe98a65e174 | 262 | cpp | C++ | Arrays/7 Reverse Integer.cpp | ankitapuri/LeetCode-Solutions | 16d9b6a992663a19db373f207b23b95225f56c28 | [
"MIT"
] | 18 | 2021-11-07T06:45:25.000Z | 2022-03-03T10:37:01.000Z | Arrays/7 Reverse Integer.cpp | ankitapuri/LeetCode-Solutions | 16d9b6a992663a19db373f207b23b95225f56c28 | [
"MIT"
] | 1 | 2021-10-12T15:32:27.000Z | 2021-11-06T11:48:11.000Z | Arrays/7 Reverse Integer.cpp | ankitapuri/LeetCode-Solutions | 16d9b6a992663a19db373f207b23b95225f56c28 | [
"MIT"
] | 2 | 2021-11-25T10:25:44.000Z | 2021-12-31T15:16:47.000Z | class Solution {
public:
int reverse(int x) {
long long int ans = 0;
while(x!=0)
{
ans = ans*10 + x%10;
x/=10;
}
if(ans>INT_MAX || ans<INT_MIN) return 0;
return ans;
}
}; | 20.153846 | 49 | 0.408397 | ankitapuri |
57e4ba61c0e921bdaeab9ac0d77b18bbc10feb64 | 4,218 | hh | C++ | GerdaHLT/GerdaPhysic.hh | pmandrik/GerdaEngine | e399514785939e3499cdb7c87193a9272d3a523c | [
"MIT"
] | null | null | null | GerdaHLT/GerdaPhysic.hh | pmandrik/GerdaEngine | e399514785939e3499cdb7c87193a9272d3a523c | [
"MIT"
] | null | null | null | GerdaHLT/GerdaPhysic.hh | pmandrik/GerdaEngine | e399514785939e3499cdb7c87193a9272d3a523c | [
"MIT"
] | null | null | null | // P.~Mandrik, 2021, https://github.com/pmandrik/GerdaEngine
#ifndef GerdaPhysic_H
#define GerdaPhysic_H 1
namespace ge {
// Fields
class Field : public BaseClass {
public:
Field(string name_, int index_ = 0){
name = name_;
SetBitIndex(index_);
}
int bit_index = 0;
string name;
... | 34.57377 | 135 | 0.635609 | pmandrik |
57efb5facf6a3aed228e4812100dccb3e405e0b9 | 1,536 | cpp | C++ | Laundry_sau.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | Laundry_sau.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | Laundry_sau.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null |
// Section 6
// Challenge
/*
Frank's Carpet Cleaning Service
Charges:
$25 per small room
$35 per large room
Sales tax rate is 6%
Estimates are valid for 30 days
Prompt the user for the number of small and large rooms they would like cleaned
and provide an estimate such as:
... | 26.482759 | 94 | 0.626302 | saurabhkakade21 |
57f403bc08d5974d2a3fff77e2e8379941844ebc | 5,368 | hpp | C++ | A3_GW_Existence.Altis/GUI/hpp/displayGarage.hpp | Hootsir/A3RPGFramework | 9eaa1c285751ee00ba460cb692dcc759eaa1f149 | [
"MIT"
] | 36 | 2018-04-22T19:34:58.000Z | 2021-05-27T20:51:58.000Z | A3_GW_Existence.Altis/GUI/hpp/displayGarage.hpp | Hootsir/A3RPGFramework | 9eaa1c285751ee00ba460cb692dcc759eaa1f149 | [
"MIT"
] | 12 | 2018-04-21T14:33:29.000Z | 2020-05-20T18:16:22.000Z | A3_GW_Existence.Altis/GUI/hpp/displayGarage.hpp | Hootsir/A3RPGFramework | 9eaa1c285751ee00ba460cb692dcc759eaa1f149 | [
"MIT"
] | 33 | 2018-04-22T15:15:54.000Z | 2020-04-02T23:30:24.000Z | /**
* Copyright (c) 2017 SimZor, SimZor Studios
* All Rights Reserved
*
* Filename: displayGarage.hpp
*/
#define GARAGE_WINDOW_H 100
#define GARAGE_WINDOW_W 160
#define GARAGE_POS_X (CENTER_X - (GARAGE_WINDOW_W * 0.5) * GRID_W)
#define GARAGE_POS_Y (0.415 - (GARAGE_WINDOW_H * 0.5 - SIZE_M) * GRID_H)
#define G... | 39.762963 | 102 | 0.456595 | Hootsir |
57f4d199aa01061de03f4d511f2d880d9bef6496 | 11,709 | cpp | C++ | src/prefix.cpp | zionlang/zion | 6e5adc7529cbed47b1a1c06b56b8a1764cd44bac | [
"MIT"
] | 63 | 2016-06-04T04:04:00.000Z | 2022-03-17T08:38:49.000Z | src/prefix.cpp | zionlang/zion | 6e5adc7529cbed47b1a1c06b56b8a1764cd44bac | [
"MIT"
] | 29 | 2017-03-02T03:36:34.000Z | 2021-01-27T03:23:09.000Z | src/prefix.cpp | zionlang/zion | 6e5adc7529cbed47b1a1c06b56b8a1764cd44bac | [
"MIT"
] | 3 | 2017-12-26T20:50:38.000Z | 2020-12-23T03:20:06.000Z | #include "prefix.h"
#include "class_predicate.h"
#include "ptr.h"
#include "tld.h"
namespace zion {
using namespace ast;
std::string prefix(const std::set<std::string> &bindings,
std::string pre,
std::string name) {
auto names = tld::split_fqn(name);
if (names.size() > 1) {... | 38.771523 | 80 | 0.601332 | zionlang |
57fed2067dc4852291aea4650d9d4725b16fd74e | 2,467 | cpp | C++ | src/stp/skills/Orbit.cpp | RoboTeamTwente/roboteam_ai | 412c96cec328af9a8efefb3f484abd982acb7000 | [
"MIT"
] | 16 | 2018-10-10T09:55:22.000Z | 2021-04-26T09:58:47.000Z | src/stp/skills/Orbit.cpp | RoboTeamTwente/roboteam_ai | 412c96cec328af9a8efefb3f484abd982acb7000 | [
"MIT"
] | 688 | 2018-09-26T11:42:21.000Z | 2022-03-17T09:32:25.000Z | src/stp/skills/Orbit.cpp | RoboTeamTwente/roboteam_ai | 412c96cec328af9a8efefb3f484abd982acb7000 | [
"MIT"
] | 5 | 2018-12-25T12:45:56.000Z | 2020-09-25T07:51:02.000Z | //
// Created by mamiksik on 22-04-21.
//
#include "stp/skills/Orbit.h"
namespace rtt::ai::stp::skill {
Status Orbit::onUpdate(const StpInfo &info) noexcept {
Vector2 directionVector = (info.getBall()->get()->getPos() - info.getRobot()->get()->getPos());
double normalAngle = directionVector.rotate(M_PI).rota... | 39.15873 | 110 | 0.702067 | RoboTeamTwente |
57ffd78c4a5b575ada6784a38b533eef5bca8b9b | 2,497 | cpp | C++ | cognitics/src/flt/CAT.cpp | mikedig/cdb-productivity-api | e2bedaa550a8afa780c01f864d72e0aebd87dd5a | [
"MIT"
] | null | null | null | cognitics/src/flt/CAT.cpp | mikedig/cdb-productivity-api | e2bedaa550a8afa780c01f864d72e0aebd87dd5a | [
"MIT"
] | null | null | null | cognitics/src/flt/CAT.cpp | mikedig/cdb-productivity-api | e2bedaa550a8afa780c01f864d72e0aebd87dd5a | [
"MIT"
] | null | null | null | /****************************************************************************
Copyright (c) 2019 Cognitics, 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 with... | 33.743243 | 77 | 0.593512 | mikedig |
5200e706722406d635c93ce2f758d61f48b5bcf1 | 2,356 | cc | C++ | tests/libtests/feassemble/obsolete/TestQuadrature1Din2D.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | tests/libtests/feassemble/obsolete/TestQuadrature1Din2D.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | tests/libtests/feassemble/obsolete/TestQuadrature1Din2D.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 27.08046 | 76 | 0.625637 | Grant-Block |
5204f8f897d040b52ccd9fe21f27222130d5155f | 163 | cpp | C++ | tests/Issue258.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 1,853 | 2018-05-13T21:49:17.000Z | 2022-03-30T10:34:45.000Z | tests/Issue258.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 398 | 2018-05-15T14:48:51.000Z | 2022-03-24T12:14:33.000Z | tests/Issue258.cpp | galorojo/cppinsights | 52ecab4ddd8e36fb99893551cf0fb8b5d58589f2 | [
"MIT"
] | 104 | 2018-05-15T04:00:59.000Z | 2022-03-17T02:04:15.000Z | #include <iostream>
#include <memory>
int main()
{
auto x = std::make_unique<int>(42);
auto lambda = [x = std::move(x)]() { std::cout << *x << '\n'; };
}
| 18.111111 | 68 | 0.533742 | galorojo |
5208de5b29cdd90ad9a1da0b95ad2c499d235b8f | 282 | cpp | C++ | Example/Toturial-2/1 - TCP server - select/TCP server - select/main.cpp | orenccl/Winsock-Multi-Client-Server | 143bb3b6c856270249632dc01f5223f65180ca89 | [
"MIT"
] | 2 | 2019-11-11T01:03:02.000Z | 2019-11-11T01:04:54.000Z | Example/Toturial-2/1 - TCP server - select/TCP server - select/main.cpp | orenccl/MintServer | 143bb3b6c856270249632dc01f5223f65180ca89 | [
"MIT"
] | null | null | null | Example/Toturial-2/1 - TCP server - select/TCP server - select/main.cpp | orenccl/MintServer | 143bb3b6c856270249632dc01f5223f65180ca89 | [
"MIT"
] | null | null | null |
#include "GameServer.h"
#include <stdio.h>
//=============================================================================================================================================================
int main()
{
GameServer server;
server.Run();
getc( stdin );
return 0;
} | 21.692308 | 159 | 0.280142 | orenccl |
648a336d86a7e64c67ac5b0284ce89c545628ff7 | 296 | cpp | C++ | Source/TextureManager.cpp | LionArt/cpp-graphic-editor | 756dc5046cdb431f158488ee87dce8d4ff4dcc5c | [
"Apache-2.0"
] | null | null | null | Source/TextureManager.cpp | LionArt/cpp-graphic-editor | 756dc5046cdb431f158488ee87dce8d4ff4dcc5c | [
"Apache-2.0"
] | null | null | null | Source/TextureManager.cpp | LionArt/cpp-graphic-editor | 756dc5046cdb431f158488ee87dce8d4ff4dcc5c | [
"Apache-2.0"
] | null | null | null | #include <TextureManager.h>
bool TextureManager::loadTexture(vector <sf::Texture> &textures, string name, string filename)
{
sf::Texture texture;
if(!texture.loadFromFile(filename))
return 0;
else
{
textures.push_back(texture);
return 1;
}
}
| 21.142857 | 95 | 0.625 | LionArt |
648a817fd260379bc0f00cc20a629bc6b26a0b8d | 4,933 | hpp | C++ | inc/kafka_broker_stub/metadata.hpp | Wramberg/kafkabrokerstub | 4f0c7cf9972429849ace514b4fee9fa82a098394 | [
"MIT"
] | 4 | 2019-01-23T09:56:37.000Z | 2022-02-18T06:33:26.000Z | inc/kafka_broker_stub/metadata.hpp | Wramberg/kafkabrokerstub | 4f0c7cf9972429849ace514b4fee9fa82a098394 | [
"MIT"
] | null | null | null | inc/kafka_broker_stub/metadata.hpp | Wramberg/kafkabrokerstub | 4f0c7cf9972429849ace514b4fee9fa82a098394 | [
"MIT"
] | null | null | null | #ifndef KAFKA_BROKER_STUB_METADATA_HPP_INC_
#define KAFKA_BROKER_STUB_METADATA_HPP_INC_
/*
* Definitions used for handling metadata requests and responses.
*/
#include "primitive.hpp"
#include "headers.hpp"
namespace kafka_broker_stub { namespace metadata {
/**
* Metadata request message
* Layout consists of... | 19.732 | 120 | 0.679505 | Wramberg |
648d410899dfc74e057f33d9cd72dc4ba2a87c07 | 553 | cpp | C++ | SGMath/ray.cpp | mohemam/SGL | 8d2b76bb199b8745b4c58fc39ad48e6b443da5e9 | [
"MIT"
] | null | null | null | SGMath/ray.cpp | mohemam/SGL | 8d2b76bb199b8745b4c58fc39ad48e6b443da5e9 | [
"MIT"
] | null | null | null | SGMath/ray.cpp | mohemam/SGL | 8d2b76bb199b8745b4c58fc39ad48e6b443da5e9 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 Mohamed E. Saleh
* The code is licensed under the MIT License.
* You can check the file LICENSE for the full license.
*/
#include "ray.h"
using namespace sgl;
Ray::Ray() : origin(0.0), direction(0.0, 0.0, 1.0) { }
Ray::Ray(const Point3& o, const Vector3& dir) : origin(o), direction(dir) ... | 18.433333 | 77 | 0.629295 | mohemam |
6493c1deee649d1132f2e29ad3b9831ea6195b66 | 103 | cpp | C++ | src/test/level.t.cpp | bkentel/boken-old | 8967856be5f283989d0c10843bcb739728423152 | [
"MIT"
] | null | null | null | src/test/level.t.cpp | bkentel/boken-old | 8967856be5f283989d0c10843bcb739728423152 | [
"MIT"
] | null | null | null | src/test/level.t.cpp | bkentel/boken-old | 8967856be5f283989d0c10843bcb739728423152 | [
"MIT"
] | 1 | 2020-04-11T12:20:00.000Z | 2020-04-11T12:20:00.000Z | #if !defined(BK_NO_TESTS)
#include "catch.hpp"
#include "level.hpp"
#endif // !defined(BK_NO_TESTS)
| 12.875 | 31 | 0.708738 | bkentel |
6495eb4a380199019c6835e5e9ebd1d66eff8cba | 438 | cpp | C++ | cpu_src/cpu.cpp | MassiveBattlebotsFan/team-lightning-cpu | 513b92aec5b3fe185f4e9220340a23bb09561059 | [
"Unlicense"
] | 1 | 2021-09-30T19:39:55.000Z | 2021-09-30T19:39:55.000Z | cpu_src/cpu.cpp | MassiveBattlebotsFan/team-lightning-cpu | 513b92aec5b3fe185f4e9220340a23bb09561059 | [
"Unlicense"
] | null | null | null | cpu_src/cpu.cpp | MassiveBattlebotsFan/team-lightning-cpu | 513b92aec5b3fe185f4e9220340a23bb09561059 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include "headers/cpu.hpp"
void CPU::io_out(){
std::cout << (uint8_t)this->datReg;
}
void CPU::io_in(){
char* temp = new char[2];
uint16_t i = 0;
while(std::cin.getline(temp, 1, '\n')){
this->datMem[this->datAddr+i] = (uint8_t)temp[0];
i++;
}
}
CPU::CPU() : RomCPU() {
this->opC... | 21.9 | 63 | 0.60274 | MassiveBattlebotsFan |
6499440feeeee966645070781342708d6f007667 | 1,614 | cpp | C++ | src/keyboard.cpp | timcogames/sway.module_ois-x11 | b211279fc978f3addcdbe73d278d590c1bf42914 | [
"MIT"
] | null | null | null | src/keyboard.cpp | timcogames/sway.module_ois-x11 | b211279fc978f3addcdbe73d278d590c1bf42914 | [
"MIT"
] | null | null | null | src/keyboard.cpp | timcogames/sway.module_ois-x11 | b211279fc978f3addcdbe73d278d590c1bf42914 | [
"MIT"
] | null | null | null | #include <sway/ois/keyboard.h>
#include <sway/ois/inputmanager.h>
#include <sway/ois/keymappinglist.h>
#include <iostream>
NAMESPACE_BEGIN(sway)
NAMESPACE_BEGIN(ois)
Keyboard::Keyboard(InputManager * manager) : core::foundation::Object(manager) {
_initialize();
}
Keyboard::~Keyboard() {
XUngrabKeyboard(_manager->... | 24.454545 | 127 | 0.723048 | timcogames |
649cdf13984c37dc4872fd66bbece05548f67d52 | 1,896 | cpp | C++ | high_pricision/high_pricision_Fibonacci.cpp | jianxianghong/algorithm-researches | 70966b6f7a2822a0dd04dc8ce1379b235923b5cf | [
"MIT"
] | null | null | null | high_pricision/high_pricision_Fibonacci.cpp | jianxianghong/algorithm-researches | 70966b6f7a2822a0dd04dc8ce1379b235923b5cf | [
"MIT"
] | null | null | null | high_pricision/high_pricision_Fibonacci.cpp | jianxianghong/algorithm-researches | 70966b6f7a2822a0dd04dc8ce1379b235923b5cf | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
using namespace std;
int high_pricision_Fibonacci(){
const int null=3;
const int figure=1000000000;
const int maxdigit=50000;
const int change[4]={27,46368,75025,100000000};
int number[4][maxdigit]={0};
cout<<"Begain with 0,1,1\n";
cout<<"serial:";
int ser... | 37.92 | 150 | 0.64557 | jianxianghong |
64a1811175e031e9599daf4024b43a0505067989 | 4,711 | cpp | C++ | src/server/frame/log.cpp | jvirkki/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | 13 | 2015-10-09T05:59:20.000Z | 2021-11-12T10:38:51.000Z | src/server/frame/log.cpp | JamesLinus/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | null | null | null | src/server/frame/log.cpp | JamesLinus/heliod | efdf2d105e342317bd092bab2d727713da546174 | [
"BSD-3-Clause"
] | 6 | 2016-05-23T10:53:29.000Z | 2019-12-13T17:57:32.000Z | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... | 33.411348 | 85 | 0.626194 | jvirkki |
64ad964921f9d290edd3bc1290135dcde174b6cf | 728 | hpp | C++ | src/Menu.hpp | cristianglezm/Maze | aa7bb3f81e475ae4220999fbe8dd25e66ad53f72 | [
"Apache-2.0"
] | null | null | null | src/Menu.hpp | cristianglezm/Maze | aa7bb3f81e475ae4220999fbe8dd25e66ad53f72 | [
"Apache-2.0"
] | null | null | null | src/Menu.hpp | cristianglezm/Maze | aa7bb3f81e475ae4220999fbe8dd25e66ad53f72 | [
"Apache-2.0"
] | null | null | null | #ifndef MENU_HPP
#define MENU_HPP
#include <SFML/Graphics.hpp>
class Menu final{
public:
explicit Menu(sf::RenderWindow& win);
void handleInput();
void render();
inline bool isIsometric() const noexcept{
return isometric;
}
inline bool isReady() const no... | 22.060606 | 52 | 0.557692 | cristianglezm |
64b61b85f4be8543563c680c1790ad9f3c8d689c | 1,334 | cpp | C++ | Codeforces/Round #689 (div2)/B.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | Codeforces/Round #689 (div2)/B.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | Codeforces/Round #689 (div2)/B.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 2e18;
const long long ... | 23.821429 | 65 | 0.524738 | python-programmer1512 |
64b621587841e8a1a62e7c9237b920ad03d270e4 | 3,081 | cpp | C++ | Source/UI/Components/Settings/MappingSettingsPanel.cpp | vsicurella/SuperVirtualKeyboard | b59549281ea16b70f94b3136fe0b9a1f9fc355e2 | [
"Unlicense"
] | 22 | 2019-06-26T12:41:49.000Z | 2022-02-11T14:48:18.000Z | Source/UI/Components/Settings/MappingSettingsPanel.cpp | vsicurella/SuperVirtualKeyboard | b59549281ea16b70f94b3136fe0b9a1f9fc355e2 | [
"Unlicense"
] | 18 | 2019-06-22T21:49:21.000Z | 2021-05-15T01:33:57.000Z | Source/UI/Components/Settings/MappingSettingsPanel.cpp | vsicurella/SuperVirtualKeyboard | b59549281ea16b70f94b3136fe0b9a1f9fc355e2 | [
"Unlicense"
] | null | null | null | /*
==============================================================================
MappingSettingsPanel.cpp
Created: 7 Oct 2020 10:00:18pm
Author: Vincenzo
==============================================================================
*/
#include "MappingSettingsPanel.h"
MappingSettingsPanel::Mappin... | 30.81 | 123 | 0.655956 | vsicurella |
64bb28cfec5be1e074754eb51cf82da72d66fcf5 | 6,583 | cpp | C++ | test/src/imaging/ossim-kmeans-filter-test.cpp | vladislav-horbatiuk/ossim | 82417ad868fac022672335e1684bdd91d662c18c | [
"MIT"
] | 251 | 2015-10-20T09:08:11.000Z | 2022-03-22T18:16:38.000Z | test/src/imaging/ossim-kmeans-filter-test.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 73 | 2015-11-02T17:12:36.000Z | 2021-11-15T17:41:47.000Z | test/src/imaging/ossim-kmeans-filter-test.cpp | IvanLJF/ossim | 2e0143f682b9884a09ff2598ef8737f29e44fbdf | [
"MIT"
] | 146 | 2015-10-15T16:00:15.000Z | 2022-03-22T12:37:14.000Z | #include <ossim/base/ossimArgumentParser.h>
#include <ossim/base/ossimDpt.h>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimRefPtr.h>
#include <ossim/imaging/ossimImageHandlerRegistry.h>
#include <ossim/imaging/ossimImageDataFactory.h>
#include <ossim/imaging/ossimTiffWriter.h>
#include <ossim/imaging/... | 33.586735 | 104 | 0.683731 | vladislav-horbatiuk |
64bb85561a17f9bcf51be5603751558ed0b0827a | 7,304 | cpp | C++ | GameCode/MainPlayer/Player.cpp | norrischiu/DEngine | acea553f110b8d10fc7386ff0941b84f6d7ebce7 | [
"MIT",
"Unlicense"
] | 8 | 2016-05-23T03:08:08.000Z | 2020-03-02T06:15:16.000Z | GameCode/MainPlayer/Player.cpp | norrischiu/DEngine | acea553f110b8d10fc7386ff0941b84f6d7ebce7 | [
"MIT",
"Unlicense"
] | 8 | 2016-06-01T17:00:58.000Z | 2021-07-21T13:53:41.000Z | GameCode/MainPlayer/Player.cpp | norrischiu/DEngine | acea553f110b8d10fc7386ff0941b84f6d7ebce7 | [
"MIT",
"Unlicense"
] | 1 | 2017-09-25T03:39:34.000Z | 2017-09-25T03:39:34.000Z | #include "Player.h"
// Game include
#include "PlayerASM.h"
#include "PlayerMC.h"
#include "..\Boss\Boss.h"
// Engine include
#include "DEngine\Memory\Handle.h"
#include "DEngine\Graphics\Animation\AnimationController.h"
#include "DEngine\Graphics\MeshComponent.h"
#include "DEngine\Graphics\MeshComponent.h"
#include "... | 48.052632 | 189 | 0.734666 | norrischiu |
64bffcba8731077f2333ea37eb6d29f138ae9978 | 516 | cpp | C++ | COSC1076/week5/question03.cpp | davidkevork/RMIT | 41c17de726f28c06ee1321fd2e7ee699acfdd611 | [
"MIT"
] | null | null | null | COSC1076/week5/question03.cpp | davidkevork/RMIT | 41c17de726f28c06ee1321fd2e7ee699acfdd611 | [
"MIT"
] | null | null | null | COSC1076/week5/question03.cpp | davidkevork/RMIT | 41c17de726f28c06ee1321fd2e7ee699acfdd611 | [
"MIT"
] | null | null | null | #include <iostream>
void copyString(char* src, char* dest) {
int length = 0;
char lastChar = src[0];
dest[0] = src[0];
while (lastChar != '\0') {
length += 1;
lastChar = src[length];
dest[length] = src[length];
}
}
int main() {
char src[20] = "hello world";
char dest[20] = "";
std::cout <... | 19.846154 | 45 | 0.52907 | davidkevork |
64c02391830258d07f6eded554e93a2823925ab9 | 20,392 | cpp | C++ | src/Platform/OpenGL/ss6player_texture.cpp | hsdk123/SS6PlayerForCPP-1 | 31498e3580e7f527241586760e5f53cdb2536c8b | [
"BSD-3-Clause"
] | 3 | 2021-05-01T11:31:21.000Z | 2021-06-20T03:27:04.000Z | src/Platform/OpenGL/ss6player_texture.cpp | hsdk123/SS6PlayerForCPP-1 | 31498e3580e7f527241586760e5f53cdb2536c8b | [
"BSD-3-Clause"
] | 9 | 2021-04-02T18:44:43.000Z | 2022-01-04T06:18:59.000Z | src/Platform/OpenGL/ss6player_texture.cpp | hsdk123/SS6PlayerForCPP-1 | 31498e3580e7f527241586760e5f53cdb2536c8b | [
"BSD-3-Clause"
] | 2 | 2021-04-02T18:08:21.000Z | 2021-08-24T14:36:25.000Z | /**
SS6Player for CPP(C++/ssbp2)
Platform: OpenGL(GLFW+GLEW)
Copyright(C) Web Technology Corp.
All rights reserved.
*/
/* -------------------------------------------------------------------------- */
/* Includes / Compile-Options */
/* ------------------------------... | 29.9442 | 148 | 0.517801 | hsdk123 |
64c642e93202fc90f6e9a2141389c9a8e6929ed9 | 1,385 | cpp | C++ | ccc/2009/ccc09s5.cpp | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | null | null | null | ccc/2009/ccc09s5.cpp | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | null | null | null | ccc/2009/ccc09s5.cpp | pi-guy-in-the-sky/competitive-programming | e079f6caf07b5de061ea4f56218f9b577e49a965 | [
"MIT"
] | 1 | 2020-10-25T05:46:57.000Z | 2020-10-25T05:46:57.000Z | // Problem ID: ccc09s5
// By Alexander Cai
#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
int diff[1005][30005];
int main() {
cin.sync_with_stdio(0);
cin.tie(0);
int M, N, K, x, y, r, b, t1, t2;
double k;
cin >> M >> N >> K;
for (int i = 0; i < K; i++)
{
cin >> x >... | 21.307692 | 82 | 0.381227 | pi-guy-in-the-sky |
64c8befb547f5fb793ccedcf0504796824df6210 | 1,209 | cc | C++ | src/net/http/tests/HttpResponse_test.cc | GGGGITFKBJG/wethands | 169b2c4e8758657de10fa5850d1749014338a31d | [
"MIT"
] | 3 | 2020-12-03T13:18:17.000Z | 2021-11-12T12:15:36.000Z | src/net/http/tests/HttpResponse_test.cc | GGGGITFKBJG/wethands | 169b2c4e8758657de10fa5850d1749014338a31d | [
"MIT"
] | null | null | null | src/net/http/tests/HttpResponse_test.cc | GGGGITFKBJG/wethands | 169b2c4e8758657de10fa5850d1749014338a31d | [
"MIT"
] | null | null | null | #include "src/net/http/HttpResponse.h"
#include <cstdio>
#include "gtest/gtest.h"
namespace wethands {
namespace {
class HttpResponseTest : public ::testing::Test {
protected:
void SetUp() override {
response.SetStatusCode(HttpResponse::k200Ok);
response.SetStatusMessage("ok");
response.SetCloseConnect... | 25.1875 | 52 | 0.650951 | GGGGITFKBJG |
64d16ae2596feca7dd051111b920ddbcfe37faed | 1,570 | cpp | C++ | problems/cses/finding-a-centroid/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/cses/finding-a-centroid/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/cses/finding-a-centroid/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
static_assert(sizeof(int) == 4 && sizeof(long) == 8);
template <typename Fun>
class y_combinator_result {
Fun fun_;
public:
template <typename T>
explicit y_combinator_result(T&& fun) : fun_(std::forward<T>(fun)) {}
template <typename... Args>
declt... | 25.322581 | 75 | 0.53758 | brunodccarvalho |
64dc66ac84c22becf95251a848903c38e8416211 | 667 | cpp | C++ | src/erhe/graphics/fragment_output.cpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 36 | 2021-05-03T10:47:49.000Z | 2022-03-19T12:54:03.000Z | src/erhe/graphics/fragment_output.cpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 29 | 2020-05-17T08:26:31.000Z | 2022-03-27T08:52:47.000Z | src/erhe/graphics/fragment_output.cpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 2 | 2022-01-24T09:24:37.000Z | 2022-01-31T20:45:36.000Z | #include "erhe/graphics/fragment_output.hpp"
#include <utility> // for move
namespace erhe::graphics
{
Fragment_output::Fragment_output(
std::string name,
const gl::Fragment_shader_output_type type,
const unsigned int location
)
: m_name {std::move(nam... | 17.552632 | 50 | 0.647676 | tksuoran |
64dcb6b06b1097bb08fe09ce75b81304baddd505 | 729 | cpp | C++ | Codeforces/19B.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | Codeforces/19B.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | Codeforces/19B.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll inf = 1e15;
const int MAXN=2000+50;
ll dp[MAXN][MAXN*2],t[MAXN],c[MAXN];
int main(){
int n; cin >> n;
for(int i = 0; i < n; i++)
cin >> t[i] >> c[i];
for(int i = 0;i < MAXN;i++)
for(int j = 0 ;j < MAXN * 2; j++)
... | 24.3 | 65 | 0.426612 | Alipashaimani |
64df8f67404dd9b33dd1863ae71eaa76464020d6 | 13,204 | cpp | C++ | src/System/String.cpp | kmc7468/CppNet2 | 29b7279b6f4bf10a88e513b97acef02e2159cae9 | [
"MIT"
] | 8 | 2017-04-05T13:07:47.000Z | 2021-09-05T20:22:20.000Z | src/System/String.cpp | kmc7468/CppNet2 | 29b7279b6f4bf10a88e513b97acef02e2159cae9 | [
"MIT"
] | 1 | 2019-02-25T16:01:13.000Z | 2019-02-25T16:01:13.000Z | src/System/String.cpp | kmc7468/CppNet2 | 29b7279b6f4bf10a88e513b97acef02e2159cae9 | [
"MIT"
] | null | null | null | #include <CppNet2/System/String.hpp>
#include <CppNet2/Details/Endian.hpp>
#include <CppNet2/Details/Hash32.hpp>
#include <CppNet2/Details/Sign.hpp>
#include <CppNet2/System/ArgumentException.hpp>
#include <CppNet2/System/Boolean.hpp>
#include <algorithm>
#include <codecvt>
#include <cstdint>
#include <cstring>
#incl... | 28.95614 | 154 | 0.722584 | kmc7468 |
64dff05a2d76f69a25a766f8b40af18aa341fc5d | 2,441 | cpp | C++ | tests/test_joins.cpp | packetzero/vsqlite | 5ac54389f1d1dfc91e34adf229eb20b6e6527d26 | [
"MIT"
] | null | null | null | tests/test_joins.cpp | packetzero/vsqlite | 5ac54389f1d1dfc91e34adf229eb20b6e6527d26 | [
"MIT"
] | null | null | null | tests/test_joins.cpp | packetzero/vsqlite | 5ac54389f1d1dfc91e34adf229eb20b6e6527d26 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <string>
#include "table_processes.h"
#include "table_signature.h"
static uint32_t gCount = 0;
static std::shared_ptr<TProcessTable> spProcessTable;
static std::shared_ptr<TSignatureTable> spSigTable;
class JoinTest : public ::testing::Test {
protected:
virtual void SetUp() overri... | 28.383721 | 260 | 0.712823 | packetzero |
64e16d0c8e3ee375305bee6750e469c994b8a846 | 6,063 | cpp | C++ | lib/antlr/evaluator.cpp | HuiYuLong/Social-Gaming | 28b12eabce2e8ce1f6c5f2befca990b513aa6c24 | [
"MIT"
] | null | null | null | lib/antlr/evaluator.cpp | HuiYuLong/Social-Gaming | 28b12eabce2e8ce1f6c5f2befca990b513aa6c24 | [
"MIT"
] | null | null | null | lib/antlr/evaluator.cpp | HuiYuLong/Social-Gaming | 28b12eabce2e8ce1f6c5f2befca990b513aa6c24 | [
"MIT"
] | null | null | null | /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
//
// main.cpp
// antlr4-cpp-demo
//
// Created by Mike Lischke on 13.03.16.
//
#include <iostream>
#include <exceptio... | 29.57561 | 105 | 0.662048 | HuiYuLong |
64e33f6501f92df8df8eb7376d31854ea6b6c641 | 1,140 | cpp | C++ | DarkSpace/VerbMoveUnit.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | 1 | 2016-05-22T21:28:29.000Z | 2016-05-22T21:28:29.000Z | DarkSpace/VerbMoveUnit.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | DarkSpace/VerbMoveUnit.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | /*
VerbMoveUnit.cpp
(c)2000 Palestar Inc, Richard Lyle
*/
#include "Debug/Assert.h"
#include "NounPlanet.h"
#include "NounUnit.h"
#include "VerbMoveUnit.h"
#include "GameContext.h"
//----------------------------------------------------------------------------
IMPLEMENT_FACTORY( VerbMoveUnit, Verb );
BEGIN_PROPER... | 19 | 78 | 0.564912 | SnipeDragon |
64e48374ae8ffdbe4654dbff3eee6eba0a2a3747 | 2,379 | cpp | C++ | Modules/PlanarFigure/src/Algorithms/mitkImageToPlanarFigureFilter.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/PlanarFigure/src/Algorithms/mitkImageToPlanarFigureFilter.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/PlanarFigure/src/Algorithms/mitkImageToPlanarFigureFilter.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.
=================... | 29.7375 | 114 | 0.681799 | zhaomengxiao |
64e697a6e430684438e0be29d332687151b3c9e5 | 2,622 | cpp | C++ | past2014-2015/0607/JAG_Domesctic_2009_D.cpp | kazunetakahashi/icpc-challenge | 6c3aa2bfd03b88d3ffa439e5c364e3086e31d640 | [
"MIT"
] | null | null | null | past2014-2015/0607/JAG_Domesctic_2009_D.cpp | kazunetakahashi/icpc-challenge | 6c3aa2bfd03b88d3ffa439e5c364e3086e31d640 | [
"MIT"
] | null | null | null | past2014-2015/0607/JAG_Domesctic_2009_D.cpp | kazunetakahashi/icpc-challenge | 6c3aa2bfd03b88d3ffa439e5c364e3086e31d640 | [
"MIT"
] | null | null | null | /*
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2152
記憶装置はmap<kukan, int>で管理、空き区間はpriprity_queueで管理。
めも:
Dは、eraseが使える。
大体のコンテナ… 引数:イテレータ、挙動:そこを削除、返り値:次の要素を指すイテレータ。
setの場合… 引数:値、挙動:それを削除、返り値:削除した要素数。
mapの場合… 引数:key、挙動:そのkeyを持つ物を削除、返り値:削除した要素数。
Rは、lower_boundを用いて実装。引数以上の最小値を返す。これをデクリメントする。
返... | 24.277778 | 63 | 0.45881 | kazunetakahashi |
64e7220f8269f375a60c2341ddd6554891d08d95 | 2,746 | hpp | C++ | libraries/plugins/chain/include/steem/plugins/chain/chain_plugin.hpp | Oskii/Ezira | e8e8f0648940298850ff33136fcd5cd2030539d3 | [
"MIT"
] | 3 | 2018-03-07T05:10:34.000Z | 2018-07-06T01:05:15.000Z | libraries/plugins/chain/include/steem/plugins/chain/chain_plugin.hpp | Oskii/Ezira | e8e8f0648940298850ff33136fcd5cd2030539d3 | [
"MIT"
] | null | null | null | libraries/plugins/chain/include/steem/plugins/chain/chain_plugin.hpp | Oskii/Ezira | e8e8f0648940298850ff33136fcd5cd2030539d3 | [
"MIT"
] | 2 | 2018-04-10T05:40:18.000Z | 2019-03-26T03:49:30.000Z | #pragma once
#include <appbase/application.hpp>
#include <steem/chain/database.hpp>
#include <boost/signals2.hpp>
#define STEEM_CHAIN_PLUGIN_NAME "chain"
namespace steem { namespace plugins { namespace chain {
namespace detail { class chain_plugin_impl; }
using std::unique_ptr;
using namespace appbase;
using names... | 31.204545 | 107 | 0.72032 | Oskii |
64eb4e08aee60c1c35e9c171bfc0f306192b49a4 | 99 | cpp | C++ | TestGame/Source/Entities/SpotLightEntity/SpotLightEntity.cpp | Solidstatewater/Anubis-Engine | d2720167c0d5306d4d12a027dc31686b5cbb0f18 | [
"BSD-2-Clause"
] | 2 | 2017-10-29T06:43:05.000Z | 2020-03-27T10:27:07.000Z | TestGame/Source/Entities/SpotLightEntity/SpotLightEntity.cpp | Solidstatewater/Anubis-Engine | d2720167c0d5306d4d12a027dc31686b5cbb0f18 | [
"BSD-2-Clause"
] | null | null | null | TestGame/Source/Entities/SpotLightEntity/SpotLightEntity.cpp | Solidstatewater/Anubis-Engine | d2720167c0d5306d4d12a027dc31686b5cbb0f18 | [
"BSD-2-Clause"
] | 5 | 2016-02-06T11:01:51.000Z | 2019-03-18T13:56:00.000Z | #include "TestGame_pch.h"
#include "SpotLightEntity.h"
#include "SpotLightEntityRepresentation.h"
| 19.8 | 42 | 0.808081 | Solidstatewater |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.