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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0917f3eadd5ec51630c65b8da746d9d063c79f7a | 22,393 | cpp | C++ | mainwindow.cpp | mastercad/DBManager | aed1c515a6b3a3ad6d4ecbf42c2e8b44c9a41498 | [
"Libpng",
"Zlib"
] | null | null | null | mainwindow.cpp | mastercad/DBManager | aed1c515a6b3a3ad6d4ecbf42c2e8b44c9a41498 | [
"Libpng",
"Zlib"
] | null | null | null | mainwindow.cpp | mastercad/DBManager | aed1c515a6b3a3ad6d4ecbf42c2e8b44c9a41498 | [
"Libpng",
"Zlib"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "textedit.h"
#include "newconnectionwizard.h"
#include "connectionmanager.h"
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QSqlQueryModel>
#include <QSqlRecord>
#include <QSqlField>
#include <QToolBar>
#include <QAction>
#includ... | 36.17609 | 268 | 0.663556 | mastercad |
091b507b80ac9b8007e71b48db5493edfad67ce8 | 88 | cpp | C++ | esl/economics/markets/ticker.cpp | rht/ESL | f883155a167d3c48e5ecdca91c8302fefc901c22 | [
"Apache-2.0"
] | 37 | 2019-10-13T12:23:32.000Z | 2022-03-19T10:40:29.000Z | esl/economics/markets/ticker.cpp | rht/ESL | f883155a167d3c48e5ecdca91c8302fefc901c22 | [
"Apache-2.0"
] | 3 | 2020-03-20T04:44:06.000Z | 2021-01-12T06:18:33.000Z | esl/economics/markets/ticker.cpp | vishalbelsare/ESL | cea6feda1e588d5f441742dbb1e4c5479b47d357 | [
"Apache-2.0"
] | 10 | 2019-11-06T15:59:06.000Z | 2021-08-09T17:28:24.000Z | //
// Created by Maarten on 23/06/2020.
//
#include <esl/economics/markets/ticker.hpp>
| 14.666667 | 43 | 0.693182 | rht |
091c3aa3ffe44824646d95909d3fa62068d0ab2e | 1,320 | hxx | C++ | client/default_colors.hxx | Drako/MPSnake | a22bd7156f79f9824ce689c54ac4a7ef085efd08 | [
"MIT"
] | null | null | null | client/default_colors.hxx | Drako/MPSnake | a22bd7156f79f9824ce689c54ac4a7ef085efd08 | [
"MIT"
] | null | null | null | client/default_colors.hxx | Drako/MPSnake | a22bd7156f79f9824ce689c54ac4a7ef085efd08 | [
"MIT"
] | null | null | null | #pragma once
#ifndef SNAKE_DEFAULT_COLORS_HXX
#define SNAKE_DEFAULT_COLORS_HXX
#include "sdl.hxx"
namespace snake::client::colors {
static SDL_Color const BLACK{0, 0, 0, 0xFF};
static SDL_Color const WHITE{0xFF, 0xFF, 0xFF, 0xFF};
enum class Channel : std::uint8_t
{
Red = 0,
Green = 8,
Blue = 16... | 25.882353 | 83 | 0.689394 | Drako |
091f03ef4d78a125f2f72b6667e57c4fd3142e05 | 13,486 | cpp | C++ | FEM_CPP/main.cpp | ld-archer/E_FEM | 7db846a17f3c57e98b619d7a9c5860d3a71ccc1c | [
"MIT"
] | 2 | 2019-11-22T10:59:33.000Z | 2019-12-10T10:32:02.000Z | FEM_CPP/main.cpp | ld-archer/E_FEM | 7db846a17f3c57e98b619d7a9c5860d3a71ccc1c | [
"MIT"
] | 39 | 2019-11-22T10:39:07.000Z | 2022-03-21T15:32:18.000Z | FEM_CPP/main.cpp | ld-archer/E_FEM | 7db846a17f3c57e98b619d7a9c5860d3a71ccc1c | [
"MIT"
] | null | null | null |
#include "Person.h"
#include <iostream>
#include <sstream>
#include <vector>
#include "utility.h"
#include "PersonVector.h"
#include "FEM.h"
#include "FEM_MPIMaster.h"
#include "FEM_MPISlave.h"
#include "TimeSeries.h"
#include "Table.h"
#include "EquationParser.h"
#include "EquationNode.h"
#include "Logger.h"
#include... | 30.442438 | 149 | 0.651787 | ld-archer |
092003d9cf0ba3280ca15da351c51ef13a4248ff | 6,742 | cpp | C++ | pomdog/experimental/gui/stack_panel.cpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 163 | 2015-03-16T08:42:32.000Z | 2022-01-11T21:40:22.000Z | pomdog/experimental/gui/stack_panel.cpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 17 | 2015-04-12T20:57:50.000Z | 2020-10-10T10:51:45.000Z | pomdog/experimental/gui/stack_panel.cpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 21 | 2015-04-12T20:45:11.000Z | 2022-01-14T20:50:16.000Z | // Copyright mogemimi. Distributed under the MIT license.
#include "pomdog/experimental/gui/stack_panel.hpp"
#include "pomdog/experimental/gui/drawing_context.hpp"
#include "pomdog/experimental/gui/pointer_point.hpp"
#include "pomdog/experimental/gui/ui_event_dispatcher.hpp"
#include "pomdog/experimental/gui/ui_helper... | 29.060345 | 124 | 0.700979 | mogemimi |
09202c2533a6fc7dd34f1494ff33881ef3d60fa0 | 177,837 | cpp | C++ | External/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp | Sonicadvance1/FEX | d84b536c4a2f785870a714bd5ed9f914dff735a3 | [
"MIT"
] | 1 | 2020-05-24T22:00:46.000Z | 2020-05-24T22:00:46.000Z | External/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp | Sonicadvance1/FEX | d84b536c4a2f785870a714bd5ed9f914dff735a3 | [
"MIT"
] | null | null | null | External/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp | Sonicadvance1/FEX | d84b536c4a2f785870a714bd5ed9f914dff735a3 | [
"MIT"
] | null | null | null | #include "Interface/Core/OpcodeDispatcher.h"
#include <FEXCore/Core/CoreState.h>
#include <climits>
#include <cstddef>
#include <cstdint>
#include <FEXCore/Core/X86Enums.h>
namespace FEXCore::IR {
auto OpToIndex = [](uint8_t Op) constexpr -> uint8_t {
switch (Op) {
// Group 1
case 0x80: return 0;
case 0x81: ... | 35.868697 | 262 | 0.668764 | Sonicadvance1 |
09270f9b813223c4241a18d16d62e89f40aa4004 | 225 | cpp | C++ | Lists/ArrayList/main.cpp | coolzoa/Data-Structures | 623d0390ad4f5545f1456c3c4b441e37953b95c5 | [
"MIT"
] | null | null | null | Lists/ArrayList/main.cpp | coolzoa/Data-Structures | 623d0390ad4f5545f1456c3c4b441e37953b95c5 | [
"MIT"
] | null | null | null | Lists/ArrayList/main.cpp | coolzoa/Data-Structures | 623d0390ad4f5545f1456c3c4b441e37953b95c5 | [
"MIT"
] | null | null | null | #include "array.h"
int main() {
ArrayList<int> list1(10);
list1.append(5);
list1.insert(7);
list1.goToStart();
list1.insert(8);
list1.next();
int a = list1.remove();
cout << a;
return 0;
} | 17.307692 | 29 | 0.555556 | coolzoa |
09277a46ea76f561b20269c505d93cdcdc85a7a7 | 6,443 | cc | C++ | src/openclx/program.cc | igankevich/openclx | 5063635392619eef84e536f24f8252ea41a5ffe6 | [
"Unlicense"
] | null | null | null | src/openclx/program.cc | igankevich/openclx | 5063635392619eef84e536f24f8252ea41a5ffe6 | [
"Unlicense"
] | null | null | null | src/openclx/program.cc | igankevich/openclx | 5063635392619eef84e536f24f8252ea41a5ffe6 | [
"Unlicense"
] | null | null | null | #include <memory>
#include <openclx/array_view>
#include <openclx/binary>
#include <openclx/bits/macros>
#include <openclx/build_status>
#include <openclx/context>
#include <openclx/device>
#include <openclx/downcast>
#include <openclx/kernel>
#include <openclx/program>
void
clx::program::build(const std::string& opt... | 27.185654 | 114 | 0.630141 | igankevich |
092902ce69874dd1af5f469fe42105021bd2cee6 | 104 | hpp | C++ | src/io/json.hpp | dbeurle/neon | 63cd2929a6eaaa0e1654c729cd35a9a52a706962 | [
"MIT"
] | 9 | 2018-07-12T17:06:33.000Z | 2021-11-20T23:13:26.000Z | src/io/json.hpp | dbeurle/neon | 63cd2929a6eaaa0e1654c729cd35a9a52a706962 | [
"MIT"
] | 119 | 2016-06-22T07:36:04.000Z | 2019-03-10T19:38:12.000Z | src/io/json.hpp | dbeurle/neon | 63cd2929a6eaaa0e1654c729cd35a9a52a706962 | [
"MIT"
] | 9 | 2017-10-08T16:51:38.000Z | 2021-03-15T08:08:04.000Z |
#pragma once
/// @file
#include "nlohmann/json.hpp"
namespace neon
{
using json = nlohmann::json;
}
| 8.666667 | 28 | 0.673077 | dbeurle |
092955dfd86ac62bd508fac2ae6bf3ffa3a3403f | 16,091 | cpp | C++ | QuantumGateLib/Network/Ping.cpp | kareldonk/QuantumGate | c6563b156c628ca0d32534680aa001d4eb820b73 | [
"MIT"
] | 87 | 2018-09-01T05:29:22.000Z | 2022-03-13T17:44:00.000Z | QuantumGateLib/Network/Ping.cpp | kareldonk/QuantumGate | c6563b156c628ca0d32534680aa001d4eb820b73 | [
"MIT"
] | 6 | 2019-01-30T14:48:17.000Z | 2022-03-14T21:10:56.000Z | QuantumGateLib/Network/Ping.cpp | kareldonk/QuantumGate | c6563b156c628ca0d32534680aa001d4eb820b73 | [
"MIT"
] | 16 | 2018-11-25T23:09:47.000Z | 2022-02-01T22:14:11.000Z | // This file is part of the QuantumGate project. For copyright and
// licensing information refer to the license file(s) in the project root.
#include "pch.h"
#include "Ping.h"
#include "..\Common\Random.h"
#include "..\Common\ScopeGuard.h"
#include <Iphlpapi.h>
#include <Ipexport.h>
#include <icmpapi.h>
#include <wi... | 30.76673 | 119 | 0.651544 | kareldonk |
093679c0163ca70b4454aa3d90b2c27d2225a990 | 7,384 | cpp | C++ | FuegoUniversalComponent/fuego/smartgame/SgBoardConst.cpp | GSMgeeth/gameofgo | 51563fea15fbdca797afb7cf9a29773a313e5697 | [
"Apache-2.0"
] | 13 | 2016-09-09T13:45:42.000Z | 2021-12-17T08:42:28.000Z | FuegoUniversalComponent/fuego/smartgame/SgBoardConst.cpp | GSMgeeth/gameofgo | 51563fea15fbdca797afb7cf9a29773a313e5697 | [
"Apache-2.0"
] | 1 | 2016-06-18T05:19:58.000Z | 2016-09-15T18:21:54.000Z | FuegoUniversalComponent/fuego/smartgame/SgBoardConst.cpp | cbordeman/gameofgo | 51563fea15fbdca797afb7cf9a29773a313e5697 | [
"Apache-2.0"
] | 5 | 2016-11-19T03:05:12.000Z | 2022-01-31T12:20:40.000Z | //----------------------------------------------------------------------------
/** @file SgBoardConst.cpp
See SgBoardConst.h */
//----------------------------------------------------------------------------
#include "SgSystem.h"
#include "SgBoardConst.h"
#include <algorithm>
#include "SgInit.h"
#include "SgStack.... | 34.666667 | 78 | 0.49052 | GSMgeeth |
093814bc4494041809d6e82965519e38a8997f49 | 5,551 | cc | C++ | tensorflow/contrib/lite/kernels/transpose.cc | tsesarrizqi/tflite2 | f48c1868e5f64f5fcdd1939a54cfad28a84be2b0 | [
"Apache-2.0"
] | 24 | 2018-02-01T15:49:22.000Z | 2021-01-11T16:31:18.000Z | tensorflow/contrib/lite/kernels/transpose.cc | tsesarrizqi/tflite2 | f48c1868e5f64f5fcdd1939a54cfad28a84be2b0 | [
"Apache-2.0"
] | 2 | 2018-09-09T07:29:07.000Z | 2019-03-11T07:14:45.000Z | tensorflow/contrib/lite/kernels/transpose.cc | tsesarrizqi/tflite2 | f48c1868e5f64f5fcdd1939a54cfad28a84be2b0 | [
"Apache-2.0"
] | 4 | 2018-10-29T18:43:22.000Z | 2020-09-28T07:19:52.000Z | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 34.478261 | 80 | 0.693749 | tsesarrizqi |
09381fe49e8391ac4e2f21d6f2f73d9cbc0bde89 | 624 | hpp | C++ | src/musicpage.hpp | ToppleKek/pemdas | 713a8c3d1d3c634abf9624bd5456c80bdae47dd8 | [
"MIT"
] | null | null | null | src/musicpage.hpp | ToppleKek/pemdas | 713a8c3d1d3c634abf9624bd5456c80bdae47dd8 | [
"MIT"
] | null | null | null | src/musicpage.hpp | ToppleKek/pemdas | 713a8c3d1d3c634abf9624bd5456c80bdae47dd8 | [
"MIT"
] | null | null | null | #ifndef PEMDAS_MUSICPAGE_HPP
#define PEMDAS_MUSICPAGE_HPP
#include <QObject>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QMenu>
#include <QAction>
#include <vector>
#include "utils.hpp"
#include "player.hpp"
#include "ui_pemdas.h"
class musicpage : public QObject {
Q_OBJECT
public:
musicpage... | 18.352941 | 69 | 0.725962 | ToppleKek |
093a8113eada610132a5d1abe25441eaac183cf0 | 891 | cpp | C++ | Codeforces/1093B - Letters Rearranging.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/1093B - Letters Rearranging.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/1093B - Letters Rearranging.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
bool is_palindrome(string s) {
string temp = s;
reverse(s.begin(), s.end());
if (temp == s) return true;
else return false;
}
int main() {
int t;
cin >> t;
while(t--) {
string s;
cin >> s;
... | 21.731707 | 58 | 0.367003 | naimulcsx |
093c540701ca29415d0edf36b480f5f1b6e5952f | 1,764 | cpp | C++ | src/system.cpp | SusannaMaria/CppND-System-Monitor-Project-Updated | a07c51465107c38c51fb7ee12122b87068d9c7e0 | [
"MIT"
] | null | null | null | src/system.cpp | SusannaMaria/CppND-System-Monitor-Project-Updated | a07c51465107c38c51fb7ee12122b87068d9c7e0 | [
"MIT"
] | null | null | null | src/system.cpp | SusannaMaria/CppND-System-Monitor-Project-Updated | a07c51465107c38c51fb7ee12122b87068d9c7e0 | [
"MIT"
] | null | null | null | /**
* @file system.cpp
* @author Susanna Maria, David Silver
* @brief system handling impletionments
* @version 1.0
* @date 2020-06-21
*
* @copyright MIT License
*
*/
#include "system.h"
#include <unistd.h>
#include <cstddef>
#include <iostream>
#include <set>
#include <string>
#include <vector>
#include "l... | 19.384615 | 80 | 0.693311 | SusannaMaria |
093e9ad8fcb60d97b9eca2301ed0150467597ca7 | 6,579 | hpp | C++ | lib/stub/s2sFunction.hpp | youelebr/assist | 9ccf862bf3350009fe9e42fbe45eecc7858a49dc | [
"BSD-2-Clause"
] | 1 | 2019-05-23T08:57:09.000Z | 2019-05-23T08:57:09.000Z | lib/stub/s2sFunction.hpp | youelebr/assist | 9ccf862bf3350009fe9e42fbe45eecc7858a49dc | [
"BSD-2-Clause"
] | null | null | null | lib/stub/s2sFunction.hpp | youelebr/assist | 9ccf862bf3350009fe9e42fbe45eecc7858a49dc | [
"BSD-2-Clause"
] | null | null | null | #ifndef S2SFUNC
#define S2SFUNC
#include "rose.h"
#include "s2sDefines.hpp"
#include "api.hpp"
#include <sstream>
#include <string>
#include <iostream>
#include <vector>
//int MAQAO_DEBUG_LEVEL=0;
static int identifierFunctions=0;
class ASTFunction;
class Function;
struct variable_spe;
/**
* ASTFunction class :
... | 32.25 | 164 | 0.680955 | youelebr |
0942279b2369324817dfc157913b91abbe964e33 | 288 | cxx | C++ | cacreader/swig-4.0.2/Examples/php/sync/example.cxx | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 1,031 | 2015-01-02T14:08:47.000Z | 2022-03-29T02:25:27.000Z | cacreader/swig-4.0.2/Examples/php/sync/example.cxx | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 240 | 2015-01-11T04:27:19.000Z | 2022-03-30T00:35:57.000Z | cacreader/swig-4.0.2/Examples/php/sync/example.cxx | kyletanyag/LL-Smartcard | 02abea9de5a13f8bae4d7832ab34cb7f0d9514c9 | [
"BSD-3-Clause"
] | 224 | 2015-01-05T06:13:54.000Z | 2022-02-25T14:39:51.000Z | #include "example.h"
#include <stdio.h>
int x = 42;
char *s = (char *)"Test";
void Sync::printer(void) {
printf("The value of global s is %s\n", s);
printf("The value of global x is %d\n", x);
printf("The value of class s is %s\n", s);
printf("The value of class x is %d\n", x);
}
| 20.571429 | 44 | 0.611111 | kyletanyag |
094299a1658096d8d4eeadf6e0d6f625f7853124 | 392 | cpp | C++ | ColorTribe/ColorLib_cpp/src/exception/CannotFindLutException.cpp | mikrosimage/OpenDisplayCalib | a8cc37aa72d378faedc4a44171bcb29a20394432 | [
"BSD-3-Clause"
] | 16 | 2015-02-25T22:35:54.000Z | 2021-12-14T19:59:30.000Z | ColorTribe/ColorLib_cpp/src/exception/CannotFindLutException.cpp | mikrosimage/OpenDisplayCalib | a8cc37aa72d378faedc4a44171bcb29a20394432 | [
"BSD-3-Clause"
] | 2 | 2015-04-02T13:43:01.000Z | 2015-06-01T13:42:00.000Z | ColorTribe/ColorLib_cpp/src/exception/CannotFindLutException.cpp | mikrosimage/OpenDisplayCalib | a8cc37aa72d378faedc4a44171bcb29a20394432 | [
"BSD-3-Clause"
] | 5 | 2016-03-02T16:08:49.000Z | 2019-11-29T11:16:54.000Z | #include "CannotFindLutException.h"
#include <iostream>
using namespace std;
CannotFindLutException::CannotFindLutException(const string path)
{
_message.append("LUT file error : cannot find ");
_message.append(path);
}
CannotFindLutException::~CannotFindLutException() throw ()
{
}
const string ... | 18.666667 | 66 | 0.727041 | mikrosimage |
094341790a57445e146f7391e0e5b89a1af55780 | 498 | cpp | C++ | src/Render/GHParticleTransition.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | src/Render/GHParticleTransition.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | src/Render/GHParticleTransition.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | // Copyright Golden Hammer Software
#include "GHParticleTransition.h"
#include "GHParticleSystem.h"
GHParticleTransition::GHParticleTransition(GHParticleSystem& particle)
: mParticle(particle)
{
mParticle.getSpawner().setSpawningAllowed(false);
}
void GHParticleTransition::activate(void)
{
if (mParticle.isDead()) {... | 21.652174 | 70 | 0.789157 | GoldenHammerSoftware |
0945337581c6729e64868ef5d73dd8b33d843ad3 | 10,869 | cpp | C++ | flume/planner/pass_manager.cpp | advancedxy/bigflow_python | 8a244b483404fde7afc42eee98bc964da8ae03e2 | [
"Apache-2.0"
] | 1 | 2021-02-18T20:13:34.000Z | 2021-02-18T20:13:34.000Z | flume/planner/pass_manager.cpp | advancedxy/bigflow_python | 8a244b483404fde7afc42eee98bc964da8ae03e2 | [
"Apache-2.0"
] | null | null | null | flume/planner/pass_manager.cpp | advancedxy/bigflow_python | 8a244b483404fde7afc42eee98bc964da8ae03e2 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
*
* Copyright (c) 2013 Baidu, 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
*
... | 31.780702 | 100 | 0.624528 | advancedxy |
0945bb1a48c0fdb819800dd3801d9e3b8a1453c8 | 1,159 | cc | C++ | complejo/src/complejo.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Marcant97 | d1dbcfb1ea8e478b869c10ae718cada45155a8ae | [
"MIT"
] | null | null | null | complejo/src/complejo.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Marcant97 | d1dbcfb1ea8e478b869c10ae718cada45155a8ae | [
"MIT"
] | null | null | null | complejo/src/complejo.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Marcant97 | d1dbcfb1ea8e478b869c10ae718cada45155a8ae | [
"MIT"
] | null | null | null | #include <iostream>
#include "complejo.h"
complejo::complejo(double real, double imaginario){ //Constructor por defecto
parte_real = real;
parte_imaginaria = imaginario;
}
void complejo::print(){ //Función print complejo
std::cout<<"Su número complejo es: "<<parte_real<<"+"<<parte_imaginaria<<"i"<<... | 42.925926 | 122 | 0.679034 | ULL-ESIT-IB-2020-2021 |
0947fee693f8df3d85dcb154135b7b84edd64435 | 28,786 | cpp | C++ | lammps-master/src/KOKKOS/fix_langevin_kokkos.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/src/KOKKOS/fix_langevin_kokkos.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/src/KOKKOS/fix_langevin_kokkos.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | /* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... | 36.810742 | 91 | 0.603175 | rajkubp020 |
094974e1b7d804aa5eddef344cbe678d854ef481 | 890 | hpp | C++ | include/tex/dds_reader.hpp | magicmoremagic/bengine-texi | e7a6f476ccb85262db8958e39674bc9570956bbe | [
"MIT"
] | null | null | null | include/tex/dds_reader.hpp | magicmoremagic/bengine-texi | e7a6f476ccb85262db8958e39674bc9570956bbe | [
"MIT"
] | null | null | null | include/tex/dds_reader.hpp | magicmoremagic/bengine-texi | e7a6f476ccb85262db8958e39674bc9570956bbe | [
"MIT"
] | 1 | 2022-02-19T08:08:21.000Z | 2022-02-19T08:08:21.000Z | #pragma once
#ifndef BE_GFX_TEX_DDS_READER_HPP_
#define BE_GFX_TEX_DDS_READER_HPP_
#include "default_texture_reader.hpp"
#include "betx_payload_compression_mode.hpp"
#include <be/core/logging.hpp>
namespace be::gfx::tex {
///////////////////////////////////////////////////////////////////////////////
bool is_dds(con... | 30.689655 | 108 | 0.625843 | magicmoremagic |
094b339ddf9ab1ed589f5f6a731f557c9f64f6c9 | 2,834 | cpp | C++ | projects/lab3/code/lab3.cpp | MTBorg/D7045E | f4db7e066335facffbdc70efa9a47461792354b9 | [
"MIT"
] | null | null | null | projects/lab3/code/lab3.cpp | MTBorg/D7045E | f4db7e066335facffbdc70efa9a47461792354b9 | [
"MIT"
] | null | null | null | projects/lab3/code/lab3.cpp | MTBorg/D7045E | f4db7e066335facffbdc70efa9a47461792354b9 | [
"MIT"
] | null | null | null | #include "lab3.h"
#include "config.h"
#include "cube.h"
#include "graphics_node.h"
#include "mesh.h"
#include "monochrome_material.h"
#include "types.h"
#include <glm/glm.hpp>
#include <glm/vec3.hpp>
#include <iostream>
using namespace Display;
Lab3::Lab3() {}
Lab3::~Lab3() {}
const float32 movingDistance = 0.05f;
... | 27.25 | 79 | 0.628088 | MTBorg |
094bb1a34a8c78c867686a7674324aef4ffe0caa | 13,564 | cpp | C++ | test/MainWindow.cpp | benjamin-fukdawurld/FDQUI | 95ecc0ebd1ca2ba38865974035bbe7fd1486e16f | [
"Apache-2.0"
] | null | null | null | test/MainWindow.cpp | benjamin-fukdawurld/FDQUI | 95ecc0ebd1ca2ba38865974035bbe7fd1486e16f | [
"Apache-2.0"
] | null | null | null | test/MainWindow.cpp | benjamin-fukdawurld/FDQUI | 95ecc0ebd1ca2ba38865974035bbe7fd1486e16f | [
"Apache-2.0"
] | null | null | null | #include <MainWindow.h>
#include <FDCore/FileUtils.h>
#include <FDQUI/GUI/OpenGLApplication.h>
#include <FDQUI/GUI/View/TransformDelegate.h>
#include <FDQUI/GUI/Widget/VectorWidget.h>
#include <FDQUI/Model/TransformModel.h>
#include <QOpenGLTexture>
#include <QDockWidget>
#include <QTimer>
#include <QTreeView>
#inc... | 30.897494 | 108 | 0.610071 | benjamin-fukdawurld |
094e6be65204707d09284e06d7369d77de998293 | 2,198 | hpp | C++ | src/application/tools/deepsort.hpp | hito0512/tensorRT_Pro | d577fbab615a3d84cb50824d2418655659fd61af | [
"MIT"
] | 537 | 2021-10-03T10:51:49.000Z | 2022-03-31T10:07:05.000Z | src/application/tools/deepsort.hpp | hito0512/tensorRT_Pro | d577fbab615a3d84cb50824d2418655659fd61af | [
"MIT"
] | 52 | 2021-10-04T09:05:35.000Z | 2022-03-31T07:35:22.000Z | src/application/tools/deepsort.hpp | hito0512/tensorRT_Pro | d577fbab615a3d84cb50824d2418655659fd61af | [
"MIT"
] | 146 | 2021-10-11T00:46:19.000Z | 2022-03-31T02:19:37.000Z |
#ifndef DEEPSORT_HPP
#define DEEPSORT_HPP
#include <memory>
#include <vector>
#include <opencv2/opencv.hpp>
namespace DeepSORT {
struct Box{
float left, top, right, bottom;
cv::Mat feature;
Box() = default;
Box(float left, float top, float right, float bottom):left(left), top(top), right(right), bo... | 24.153846 | 110 | 0.66515 | hito0512 |
09502ca06e3792157dc7eea4aa784a6a649b07fd | 3,619 | cpp | C++ | exmathlib/exmathlib/exmath.cpp | IWeidl/ExMath-Library | ff809f4040c37003170f94bdb15f4edbf5bed1dd | [
"MIT"
] | 1 | 2016-04-07T18:20:42.000Z | 2016-04-07T18:20:42.000Z | exmathlib/exmathlib/exmath.cpp | Dasttann777/ExMath-Library | ff809f4040c37003170f94bdb15f4edbf5bed1dd | [
"MIT"
] | 4 | 2016-04-07T07:47:56.000Z | 2016-04-10T11:19:22.000Z | exmathlib/exmathlib/exmath.cpp | IWeidl/ExMath-Library | ff809f4040c37003170f94bdb15f4edbf5bed1dd | [
"MIT"
] | null | null | null | #pragma once
#include "exmath.h"
#include "exfrac.h"
int RoundToINT(double e) { return (int)(e + 0.5); }
double Math::Multiply(std::initializer_list<double> e)
{
double a = 1;
std::initializer_list<double>::iterator it;
for (it = e.begin(); it != e.end(); ++it) {
a *= *it;
}
return a;
}
double Math:... | 20.919075 | 74 | 0.567284 | IWeidl |
095144bb72b0e7cbb18a532f52a9f0f5af4597a6 | 12,688 | cpp | C++ | src/cpu.cpp | aimktech/chip8 | 40f278e2638eb95abb2f7b979a4d8bfa69d2400b | [
"Apache-2.0"
] | 3 | 2021-01-20T21:26:30.000Z | 2021-12-17T10:09:54.000Z | src/cpu.cpp | aimktech/chip8 | 40f278e2638eb95abb2f7b979a4d8bfa69d2400b | [
"Apache-2.0"
] | null | null | null | src/cpu.cpp | aimktech/chip8 | 40f278e2638eb95abb2f7b979a4d8bfa69d2400b | [
"Apache-2.0"
] | null | null | null | /*
* cpu.cpp
* CPU Management Unit implementation
*/
// includes
#include <cstring>
#include <cstdlib>
#include <ctime>
#include "constants.h"
#include "except.h"
#include "cpu.h"
// constants
constexpr int NUM_REGISTERS = 16;
enum Register {
V0 = 0x00,
VF = 0x0F
};
// class structure
struct CPU::OpaqueDa... | 31.562189 | 97 | 0.415747 | aimktech |
0953e163adba8e1dcc2205bcad313d08cf2c0b47 | 8,106 | cpp | C++ | src/command/FbxWriter.cpp | chadmv/dem-bones | bb4ea9f391c4be9abe4f85a407c2c47979bad959 | [
"BSD-3-Clause"
] | 584 | 2019-10-08T20:21:01.000Z | 2022-03-31T14:29:50.000Z | src/command/FbxWriter.cpp | chadmv/dem-bones | bb4ea9f391c4be9abe4f85a407c2c47979bad959 | [
"BSD-3-Clause"
] | 18 | 2019-12-13T22:19:08.000Z | 2021-09-18T07:09:50.000Z | src/command/FbxWriter.cpp | chadmv/dem-bones | bb4ea9f391c4be9abe4f85a407c2c47979bad959 | [
"BSD-3-Clause"
] | 112 | 2019-10-08T20:41:20.000Z | 2022-03-29T04:12:18.000Z | ///////////////////////////////////////////////////////////////////////////////
// Dem Bones - Skinning Decomposition Library //
// Copyright (c) 2019, Electronic Arts. All rights reserved. //
///////////////////////////////////////////////////////////////////////////////
... | 38.417062 | 167 | 0.690846 | chadmv |
09544c622b32cf76b285717159c09e19842fc3d6 | 24,345 | cc | C++ | tests/unit/kernel/GaussianARDKernel_unittest.cc | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 1 | 2020-09-18T04:30:46.000Z | 2020-09-18T04:30:46.000Z | tests/unit/kernel/GaussianARDKernel_unittest.cc | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | null | null | null | tests/unit/kernel/GaussianARDKernel_unittest.cc | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2015 Wu Lin
* 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... | 33.258197 | 89 | 0.766852 | ShankarNara |
0956e2a4bab6585323216d41ada3347d3581f846 | 3,895 | cc | C++ | omaha/base/thread_pool.cc | Gunanekza/omaha | e73cb9edffaba24bb3b7515f5b48376f922b697e | [
"Apache-2.0"
] | 34 | 2019-11-01T04:26:40.000Z | 2022-03-29T03:00:40.000Z | omaha/base/thread_pool.cc | Wicked2303/omaha | 1b18ab3989b8cf503d5e46a351c44c9d2754caed | [
"Apache-2.0"
] | 1 | 2020-11-19T18:11:20.000Z | 2020-11-19T18:11:20.000Z | omaha/base/thread_pool.cc | Wicked2303/omaha | 1b18ab3989b8cf503d5e46a351c44c9d2754caed | [
"Apache-2.0"
] | 8 | 2019-11-01T04:27:53.000Z | 2022-03-16T22:17:12.000Z | // Copyright 2004-2009 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | 28.639706 | 76 | 0.671374 | Gunanekza |
095740e3a488d46f7e5ec3601cd10175f17185cc | 843 | cpp | C++ | huffman_decode/main.cpp | 8alery/algorithms | 67cf12724f61cdae7eff1788062c1b7c26f98ca4 | [
"Apache-2.0"
] | null | null | null | huffman_decode/main.cpp | 8alery/algorithms | 67cf12724f61cdae7eff1788062c1b7c26f98ca4 | [
"Apache-2.0"
] | null | null | null | huffman_decode/main.cpp | 8alery/algorithms | 67cf12724f61cdae7eff1788062c1b7c26f98ca4 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <unordered_map>
#include <stdio.h>
int main() {
int letters_count, code_length;
std::cin >> letters_count >> code_length;
std::unordered_map<std::string,char> letters_map;
std::string character;
std::string code;
for (int i = 0; i < letters_count; i++){
std:... | 26.34375 | 53 | 0.572954 | 8alery |
09584380c68e4133ad79fe64e938763475562bcb | 456 | cpp | C++ | rrQt/Widgets/main.cpp | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | 2 | 2019-03-20T01:14:10.000Z | 2021-12-08T15:39:32.000Z | rrQt/Widgets/main.cpp | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | null | null | null | rrQt/Widgets/main.cpp | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | null | null | null | //===-- Qt Widgets ----------------------------------------------*- C++ -*-===//
//!
//! \version 2021-10-18
//! \since 2021-09-15
//! \authors zhengrr
//! \copyright Unlicense
//!
//===----------------------------------------------------------------------===//
#include <QtWidgets/QApplication>
#include "MainWindow.h... | 19.826087 | 80 | 0.425439 | afoolsbag |
095bf50d18ec9f3d72f735d509f483569ef4336a | 4,456 | hpp | C++ | include/latte_core_hook.hpp | iwatakeshi/latte | ec0c31092af3d9b42e757a6bb375d817ff522376 | [
"MIT"
] | 1 | 2019-03-05T02:24:32.000Z | 2019-03-05T02:24:32.000Z | include/latte_core_hook.hpp | iwatakeshi/latte | ec0c31092af3d9b42e757a6bb375d817ff522376 | [
"MIT"
] | null | null | null | include/latte_core_hook.hpp | iwatakeshi/latte | ec0c31092af3d9b42e757a6bb375d817ff522376 | [
"MIT"
] | null | null | null | #ifndef LATTE_CORE_HOOK_H
#define LATTE_CORE_HOOK_H
#include "latte_core_state.hpp"
#include "latte_type.hpp"
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
namespace latte {
namespace core {
// Base class for before(), after(), before_each(), and after_each()
struct latte_test_hook ... | 26.52381 | 93 | 0.665171 | iwatakeshi |
095ff73f993b2b888af47be86f5d2ecca7a1dab1 | 1,097 | cpp | C++ | Dev/SourcesEditor/Gugu/Editor/Modal/OpenProjectDialog.cpp | Legulysse/guguEngine | 889ba87f219d476169fab1072f3af1428df62d49 | [
"Zlib"
] | null | null | null | Dev/SourcesEditor/Gugu/Editor/Modal/OpenProjectDialog.cpp | Legulysse/guguEngine | 889ba87f219d476169fab1072f3af1428df62d49 | [
"Zlib"
] | null | null | null | Dev/SourcesEditor/Gugu/Editor/Modal/OpenProjectDialog.cpp | Legulysse/guguEngine | 889ba87f219d476169fab1072f3af1428df62d49 | [
"Zlib"
] | null | null | null | ////////////////////////////////////////////////////////////////
// Header
#include "Gugu/Common.h"
#include "Gugu/Editor/Modal/OpenProjectDialog.h"
////////////////////////////////////////////////////////////////
// Includes
#include "Gugu/Editor/Editor.h"
#include <imgui.h>
#include <imgui_stdlib.h>
... | 21.096154 | 101 | 0.523245 | Legulysse |
0960047ad988edff18eb60efaacccc5ed8242493 | 1,278 | cpp | C++ | SPOJ/FOXLINGS.cpp | ggml1/Competitive-Programming | 1f5aa8f8d2f8addffd5a22c9ccd998f05b6faf79 | [
"MIT"
] | null | null | null | SPOJ/FOXLINGS.cpp | ggml1/Competitive-Programming | 1f5aa8f8d2f8addffd5a22c9ccd998f05b6faf79 | [
"MIT"
] | null | null | null | SPOJ/FOXLINGS.cpp | ggml1/Competitive-Programming | 1f5aa8f8d2f8addffd5a22c9ccd998f05b6faf79 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fi first
#define se second
#define LIMIT 1000000007
#define dbg(x) cout << "variable '" << #x << << "' -> " << x << '\n';
#define oi() cout << "oi" << endl;
#define fr(a, b, c) for(int a = b, _ = c; a < _; ++a)
typedef unsigned long long ull;
using namespace std;
map<int, bool> ... | 18 | 81 | 0.535994 | ggml1 |
8233058ea508b6fd482d8bf8d92c3430bde28c21 | 59,480 | cpp | C++ | modules/space/rendering/renderablestars.cpp | agarwalutkarsh554/OpenSpace | 5b3f2f10d33121ed40bb9833d79197897f13a857 | [
"MIT"
] | null | null | null | modules/space/rendering/renderablestars.cpp | agarwalutkarsh554/OpenSpace | 5b3f2f10d33121ed40bb9833d79197897f13a857 | [
"MIT"
] | null | null | null | modules/space/rendering/renderablestars.cpp | agarwalutkarsh554/OpenSpace | 5b3f2f10d33121ed40bb9833d79197897f13a857 | [
"MIT"
] | null | null | null | /*****************************************************************************************
* *
* OpenSpace *
* ... | 34.865182 | 90 | 0.598016 | agarwalutkarsh554 |
82333857610bd2e88ed0e5fe28cfb310cafb7f85 | 2,245 | cpp | C++ | unittests/tPerf.cpp | hungptit/graph | 8f39e8af1ea3bd3ad36190559553da5c55648aae | [
"MIT"
] | null | null | null | unittests/tPerf.cpp | hungptit/graph | 8f39e8af1ea3bd3ad36190559553da5c55648aae | [
"MIT"
] | null | null | null | unittests/tPerf.cpp | hungptit/graph | 8f39e8af1ea3bd3ad36190559553da5c55648aae | [
"MIT"
] | null | null | null | #include <iostream>
#include <tuple>
#include <vector>
#include <sstream>
#include "fmt/format.h"
#include "graph/graph.hpp"
#include "Data.hpp"
#include "celero/Celero.h"
constexpr int NumberOfSamples = 200000;
constexpr int NumberOfIterations = 10;
const auto graph_int = simpleDirectedGraph<int>();
const auto gra... | 32.536232 | 95 | 0.716704 | hungptit |
823454aee78a322877f0fb27b8c1b900beb18445 | 527 | cpp | C++ | src/OrbitAccessibility/AccessibleInterface.cpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,847 | 2020-03-24T19:01:42.000Z | 2022-03-31T13:18:57.000Z | src/OrbitAccessibility/AccessibleInterface.cpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 1,100 | 2020-03-24T19:41:13.000Z | 2022-03-31T14:27:09.000Z | src/OrbitAccessibility/AccessibleInterface.cpp | tufeigunchu/orbit | 407354cf7c9159ff7e3177c603a6850b95509e3a | [
"BSD-2-Clause"
] | 228 | 2020-03-25T05:32:08.000Z | 2022-03-31T11:27:39.000Z | // Copyright (c) 2020 The Orbit 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 "OrbitAccessibility/AccessibleInterface.h"
#include "OrbitAccessibility/AccessibleInterfaceRegistry.h"
orbit_accessibility::AccessibleInterfac... | 32.9375 | 73 | 0.798861 | tufeigunchu |
82368801a5da131d0f1f214fc9506ea345c34e48 | 1,224 | cpp | C++ | lib/Util/Printing.cpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 7 | 2018-06-25T12:06:13.000Z | 2022-01-18T09:20:13.000Z | lib/Util/Printing.cpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 20 | 2016-12-01T23:46:12.000Z | 2019-08-11T02:41:04.000Z | lib/Util/Printing.cpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 1 | 2020-10-19T03:20:05.000Z | 2020-10-19T03:20:05.000Z | //===- lib/Util/Printing.cpp ----------------------------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... | 23.09434 | 80 | 0.41585 | seec-team |
823827870e220b665ee8fe8fd891e70eab0bfb00 | 20,441 | cc | C++ | hoomd/md/test/test_fenebond_force.cc | kmoskovtsev/HOOMD-Blue-fork | 99560563a5ba9e082b513764bae51a84f48fdc70 | [
"BSD-3-Clause"
] | null | null | null | hoomd/md/test/test_fenebond_force.cc | kmoskovtsev/HOOMD-Blue-fork | 99560563a5ba9e082b513764bae51a84f48fdc70 | [
"BSD-3-Clause"
] | null | null | null | hoomd/md/test/test_fenebond_force.cc | kmoskovtsev/HOOMD-Blue-fork | 99560563a5ba9e082b513764bae51a84f48fdc70 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009-2016 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// this include is necessary to get MPI included before anything else to support intel MPI
#include "hoomd/ExecutionConfiguration.h"
#include <iostream>
#incl... | 47.871194 | 158 | 0.659116 | kmoskovtsev |
8239639e48f02e5fc500243b82d78fdfaefe5453 | 23,567 | cpp | C++ | Source/src/ezcard/util/list_multi_map.cpp | ProtonMail/cpp-openpgp | b47316c51357b8d15eb3bcc376ea5e59a6a9a108 | [
"MIT"
] | 5 | 2019-10-30T06:10:10.000Z | 2020-04-25T16:52:06.000Z | Source/src/ezcard/util/list_multi_map.cpp | ProtonMail/cpp-openpgp | b47316c51357b8d15eb3bcc376ea5e59a6a9a108 | [
"MIT"
] | null | null | null | Source/src/ezcard/util/list_multi_map.cpp | ProtonMail/cpp-openpgp | b47316c51357b8d15eb3bcc376ea5e59a6a9a108 | [
"MIT"
] | 2 | 2019-11-27T23:47:54.000Z | 2020-01-13T16:36:03.000Z | //
// list_multi_map.cpp
// OpenPGP
//
// Created by Yanfeng Zhang on 1/19/17.
//
// The MIT License
//
// Copyright (c) 2019 Proton Technologies AG
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to dea... | 32.868898 | 138 | 0.494378 | ProtonMail |
823ac36b895eca5dbaf950d4f69cd100618e568b | 4,593 | cpp | C++ | src/irrlicht/game-scene/irr-entity/IrrEntity.cpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | null | null | null | src/irrlicht/game-scene/irr-entity/IrrEntity.cpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 12 | 2019-05-22T12:22:44.000Z | 2019-06-15T17:31:04.000Z | src/irrlicht/game-scene/irr-entity/IrrEntity.cpp | Gegel85/IndieStudio | 63e58c61416b3c16885d35d75d126e3db5ed3cc8 | [
"MIT"
] | 1 | 2019-06-18T15:53:48.000Z | 2019-06-18T15:53:48.000Z | //
// Created by Eben on 05/06/2019.
//
#include <utility>
#include "IrrEntity.hpp"
#include <sys/stat.h>
#include <string>
#include <fstream>
inline bool check_file_exists (const std::string& name) {
struct stat buffer;
return (stat (name.c_str(), &buffer) == 0);
}
Irrlicht::IrrEntity::IrrEntity(
co... | 31.675862 | 129 | 0.576747 | Gegel85 |
823cffedb5057a24e643e4a0a82e42bb63b1c49c | 23,104 | cpp | C++ | SevenZip/CPP/7zip/Compress/LzfseDecoder.cpp | SammyEnigma/NanaZip | dd20989c0b5cdd0175346bed252c142587a10d95 | [
"BSD-3-Clause"
] | 1,855 | 2021-09-08T02:53:41.000Z | 2022-03-31T15:31:23.000Z | SevenZip/CPP/7zip/Compress/LzfseDecoder.cpp | SammyEnigma/NanaZip | dd20989c0b5cdd0175346bed252c142587a10d95 | [
"BSD-3-Clause"
] | 106 | 2021-09-26T07:00:57.000Z | 2022-03-29T19:10:16.000Z | SevenZip/CPP/7zip/Compress/LzfseDecoder.cpp | SammyEnigma/NanaZip | dd20989c0b5cdd0175346bed252c142587a10d95 | [
"BSD-3-Clause"
] | 80 | 2021-09-23T00:54:33.000Z | 2022-03-28T07:53:16.000Z | // LzfseDecoder.cpp
/*
This code implements LZFSE data decompressing.
The code from "LZFSE compression library" was used.
2018 : Igor Pavlov : BSD 3-clause License : the code in this file
2015-2017 : Apple Inc : BSD 3-clause License : original "LZFSE compression library" code
The code in the "LZFSE compressi... | 24.950324 | 142 | 0.58254 | SammyEnigma |
823daeb71466bb7e38cdcb396fa91e5491d4cd73 | 13,685 | cpp | C++ | src/upcore/test/random.cpp | upcaste/upcaste | 8174a2f40e7fde022806f8d1565bb4a415ecb210 | [
"MIT"
] | 1 | 2018-09-17T20:50:14.000Z | 2018-09-17T20:50:14.000Z | src/upcore/test/random.cpp | jwtowner/upcaste | 8174a2f40e7fde022806f8d1565bb4a415ecb210 | [
"MIT"
] | null | null | null | src/upcore/test/random.cpp | jwtowner/upcaste | 8174a2f40e7fde022806f8d1565bb4a415ecb210 | [
"MIT"
] | null | null | null | //
// Upcaste Performance Libraries
// Copyright (C) 2012-2013 Jesse W. Towner
//
// 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 lim... | 35.179949 | 122 | 0.51129 | upcaste |
823ec2c4c7a57c4d5b51e558af1530eb875b1c97 | 390 | cpp | C++ | assets/docs/samples/events.cpp | mariusvn/turbo-engine | 63cc2b76bc1aff7de9655916553a03bd768f5879 | [
"MIT"
] | 2 | 2021-02-12T13:05:02.000Z | 2021-02-22T14:25:00.000Z | assets/docs/samples/events.cpp | mariusvn/turbo-engine | 63cc2b76bc1aff7de9655916553a03bd768f5879 | [
"MIT"
] | null | null | null | assets/docs/samples/events.cpp | mariusvn/turbo-engine | 63cc2b76bc1aff7de9655916553a03bd768f5879 | [
"MIT"
] | null | null | null | #include <iostream>
#include <turbo/Engine.hpp>
int main() {
turbo::EventHandler<unsigned int, float> event_handler([](unsigned int i, float j) {
std::cout << "i: " << i << ", j: " << j << std::endl;
});
turbo::Event<unsigned int, float> testEvent;
testEvent += event_handler;
testEvent(4, -... | 27.857143 | 88 | 0.584615 | mariusvn |
824489ea9f7b731c51e7e6e4a7fa2031863d45eb | 406 | hpp | C++ | include/Regiment.hpp | a276me/MilSim | b3ba8ef8cc46b6ae9cc7befece6cd00b016038ea | [
"MIT"
] | null | null | null | include/Regiment.hpp | a276me/MilSim | b3ba8ef8cc46b6ae9cc7befece6cd00b016038ea | [
"MIT"
] | null | null | null | include/Regiment.hpp | a276me/MilSim | b3ba8ef8cc46b6ae9cc7befece6cd00b016038ea | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <vector>
#define MECH_INF 0
#define ARMOR 1
#define ARTILLARY 2
#define SF 3
#define INF 4
class Regiment{
public:
int type;
int battalions;
double BBV;
double BDV;
double BS;
double BBD;
double BSP;
void addBattalion();
int getStrength();
double getBV(... | 11.6 | 24 | 0.679803 | a276me |
82453b175b65a5b303fe610c2be21f920d323376 | 889 | cpp | C++ | test.cpp | ReflectMun/DataStructureQuizArchive | 6805179e17391e854d7495ef8f3db2d3acb84dfb | [
"MIT"
] | null | null | null | test.cpp | ReflectMun/DataStructureQuizArchive | 6805179e17391e854d7495ef8f3db2d3acb84dfb | [
"MIT"
] | null | null | null | test.cpp | ReflectMun/DataStructureQuizArchive | 6805179e17391e854d7495ef8f3db2d3acb84dfb | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
typedef struct node{
int n;
struct node * left;
struct node * right;
}node;
node * make_tree(){
node * n5 = new node; n5->n = 5; n5->left = nullptr; n5->right = nullptr;
node * n4 = new node; n4->n = 4; n4->left = nullptr; n4->right = nul... | 25.4 | 77 | 0.537683 | ReflectMun |
8247af56903b9186975fc4777fea860b0d95e097 | 1,075 | cpp | C++ | skia/docs/examples/Picture_MakePlaceholder.cpp | jiangkang/renderer-dog | 8081732e2b4dbdb97c8d1f5e23f9e52c6362ff85 | [
"MIT"
] | 1 | 2019-03-25T15:37:48.000Z | 2019-03-25T15:37:48.000Z | docs/examples/Picture_MakePlaceholder.cpp | bryphe/esy-skia | 9810a02f28270535de10b584bffc536182224c83 | [
"BSD-3-Clause"
] | 1 | 2020-09-13T11:08:17.000Z | 2020-09-13T11:08:17.000Z | skia/docs/examples/Picture_MakePlaceholder.cpp | jiangkang/renderer-dog | 8081732e2b4dbdb97c8d1f5e23f9e52c6362ff85 | [
"MIT"
] | null | null | null | // Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "fiddle/examples.h"
// HASH=0d2cbf82f490ffb180e0b4531afa232c
REG_FIDDLE(Picture_MakePlaceholder, 256, 256, false, 0) {
class MyCanvas : public SkCanvas {
public:
MyCanvas(SkCan... | 37.068966 | 100 | 0.691163 | jiangkang |
8247bd45df73446b58eb106cfaa242b4c80e48d0 | 20,802 | cxx | C++ | core/sqf/monitor/test/procCreate.cxx | CoderSong2015/Apache-Trafodion | 889631aae9cdcd38fca92418d633f2dedc0be619 | [
"Apache-2.0"
] | 1 | 2021-02-05T08:44:55.000Z | 2021-02-05T08:44:55.000Z | core/sqf/monitor/test/procCreate.cxx | CoderSong2015/Apache-Trafodion | 889631aae9cdcd38fca92418d633f2dedc0be619 | [
"Apache-2.0"
] | null | null | null | core/sqf/monitor/test/procCreate.cxx | CoderSong2015/Apache-Trafodion | 889631aae9cdcd38fca92418d633f2dedc0be619 | [
"Apache-2.0"
] | 1 | 2021-09-01T08:45:30.000Z | 2021-09-01T08:45:30.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// @@@ START COPYRIGHT @@@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright o... | 37.548736 | 105 | 0.448563 | CoderSong2015 |
8247c8c14ae3c4f5ee0836814f2b1425f5cbc19f | 844 | hpp | C++ | messungen/SNR_opencl_multi/SNR_opencl_multi/CPUModelResults.hpp | tihmstar/gido_public | dcc523603b9a27b37752211715a10e30b51ce812 | [
"Unlicense"
] | 16 | 2021-04-10T16:28:00.000Z | 2021-12-12T10:15:23.000Z | messungen/SNR_opencl_multi_17/SNR_opencl_multi/CPUModelResults.hpp | tihmstar/gido_public | dcc523603b9a27b37752211715a10e30b51ce812 | [
"Unlicense"
] | null | null | null | messungen/SNR_opencl_multi_17/SNR_opencl_multi/CPUModelResults.hpp | tihmstar/gido_public | dcc523603b9a27b37752211715a10e30b51ce812 | [
"Unlicense"
] | 2 | 2021-04-10T16:32:36.000Z | 2021-04-11T14:13:45.000Z | //
// CPUModelResults.hpp
// SNR_opencl_multi
//
// Created by tihmstar on 27.11.19.
// Copyright © 2019 tihmstar. All rights reserved.
//
#ifndef CPUModelResults_hpp
#define CPUModelResults_hpp
#include <vector>
#include "numerics.hpp"
class CPUModelResults {
std::string _modelName;
cl_uint _modelSize;
... | 24.823529 | 103 | 0.731043 | tihmstar |
82488d96edb3a732a7fe4c1390ad312e45b8882a | 8,884 | cpp | C++ | src/libraries/dynamicMesh/topoChangerFvMesh/mixerFvMesh/mixerFvMesh.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/dynamicMesh/topoChangerFvMesh/mixerFvMesh/mixerFvMesh.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/dynamicMesh/topoChangerFvMesh/mixerFvMesh/mixerFvMesh.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under... | 23.62766 | 80 | 0.537371 | MrAwesomeRocks |
8248f2257ae4f9df7c7d04ff6892071437d5d512 | 7,612 | cpp | C++ | lammps-master/src/USER-INTEL/npair_halffull_newton_intel.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/src/USER-INTEL/npair_halffull_newton_intel.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/src/USER-INTEL/npair_halffull_newton_intel.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | /* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04... | 32.529915 | 78 | 0.572254 | rajkubp020 |
8249ca08605691ed6332c02640b45b30eb87b79c | 1,584 | hpp | C++ | VSDataReduction/VSSimCoordTransform.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | 1 | 2018-04-17T14:03:36.000Z | 2018-04-17T14:03:36.000Z | VSDataReduction/VSSimCoordTransform.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | VSDataReduction/VSSimCoordTransform.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | //-*-mode:c++; mode:font-lock;-*-
/*! \file VSSimCoordTransform.hpp
Perform coordinate transforms on simulation events.
\author Matthew Wood \n
UCLA \n
mdwood@astro.ucla.edu \n
\version 1.0
\date 09/11/2008
$Id: VSSimCoo... | 25.548387 | 79 | 0.640152 | sfegan |
824e717c4a58d13ad2d91ed111fac33a3307c6de | 5,526 | hpp | C++ | source/NanairoCore/Material/SurfaceModel/Surface/microfacet-inl.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 30 | 2015-09-06T03:14:29.000Z | 2021-06-18T11:00:19.000Z | source/NanairoCore/Material/SurfaceModel/Surface/microfacet-inl.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 31 | 2016-01-14T14:50:34.000Z | 2018-06-25T13:21:48.000Z | source/NanairoCore/Material/SurfaceModel/Surface/microfacet-inl.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 6 | 2017-04-09T13:07:47.000Z | 2021-05-29T21:17:34.000Z | /*!
\file microfacet-inl.hpp
\author Sho Ikeda
Copyright (c) 2015-2018 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef NANAIRO_MICROFACET_INL_HPP
#define NANAIRO_MICROFACET_INL_HPP
#include "microfacet.hpp"
// Standard C++ library
#incl... | 30.196721 | 83 | 0.647666 | byzin |
824f2874943ec9626a9f9dfba120884bc862effc | 6,104 | cpp | C++ | external/OpenGP/apps/glfwviewer_raw/main.cpp | MessCoder/CSC-305 | 71d64472dcac1eac6402a2650ec37e15b5643312 | [
"MIT"
] | null | null | null | external/OpenGP/apps/glfwviewer_raw/main.cpp | MessCoder/CSC-305 | 71d64472dcac1eac6402a2650ec37e15b5643312 | [
"MIT"
] | null | null | null | external/OpenGP/apps/glfwviewer_raw/main.cpp | MessCoder/CSC-305 | 71d64472dcac1eac6402a2650ec37e15b5643312 | [
"MIT"
] | null | null | null | #include <OpenGP/SurfaceMesh/SurfaceMesh.h>
#include <OpenGP/SurfaceMesh/bounding_box.h>
#include <OpenGP/GL/glfw_helpers.h>
#include <OpenGP/GL/glfw_trackball.h>
#include <OpenGP/GL/Eigen.h>
#include <OpenGP/MLogger.h>
using namespace OpenGP;
using namespace std;
/// Viewer global status
SurfaceMesh mesh;
std::vecto... | 36.118343 | 118 | 0.615826 | MessCoder |
825111ac05fe2fe1f38ced0580c139aed27cd0c2 | 2,224 | cpp | C++ | aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatusReason.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatusReason.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-chime-sdk-identity/source/model/EndpointStatusReason.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime-sdk-identity/model/EndpointStatusReason.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using name... | 31.323944 | 102 | 0.657374 | perfectrecall |
825151d898939313b549de0a5529a6c7a79cb96c | 4,016 | cc | C++ | mf/matrix/io/ioProjected_impl.cc | Hui-Li/DSGDPP | 0ce5b115bfbed81cee1c39fbfa4a8f67a5e1b72e | [
"Apache-2.0"
] | 14 | 2017-01-10T11:39:39.000Z | 2021-11-02T23:03:55.000Z | mf/matrix/io/ioProjected_impl.cc | Hui-Li/DSGDPP | 0ce5b115bfbed81cee1c39fbfa4a8f67a5e1b72e | [
"Apache-2.0"
] | null | null | null | mf/matrix/io/ioProjected_impl.cc | Hui-Li/DSGDPP | 0ce5b115bfbed81cee1c39fbfa4a8f67a5e1b72e | [
"Apache-2.0"
] | 6 | 2017-10-27T18:40:47.000Z | 2021-10-05T15:10:56.000Z | // Copyright 2017 Rainer Gemulla
//
// 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 applica... | 33.466667 | 117 | 0.731823 | Hui-Li |
8253a14e6837b10f7fa743f21a28f328d071080e | 11,233 | cpp | C++ | crashfix_service/libdumper/PdbCompilandStream.cpp | jsonzilla/crashfix | 278a0dfb94f815709067bef61e64f1b290f17fa0 | [
"BSD-3-Clause"
] | 3 | 2019-01-07T20:55:30.000Z | 2019-04-10T10:04:16.000Z | crashfix_service/libdumper/PdbCompilandStream.cpp | 0um/crashfix | f283498b92efbaf150f6f09251d4bd69d8335a6b | [
"BSD-3-Clause"
] | 9 | 2020-04-04T13:33:00.000Z | 2020-04-04T13:33:18.000Z | crashfix_service/libdumper/PdbCompilandStream.cpp | jsonzilla/crashfix | 278a0dfb94f815709067bef61e64f1b290f17fa0 | [
"BSD-3-Clause"
] | 1 | 2021-04-25T14:26:27.000Z | 2021-04-25T14:26:27.000Z | //! \file PdbCompilandStream.cpp
//! \brief PDB compiland stream.
//! \author Oleg Krivtsov
//! \date 2011
#include "stdafx.h"
#include "PdbCompilandStream.h"
#include "PdbDebugInfoStream.h"
#include "Buffer.h"
#include "strconv.h"
#include "PdbStreamStruct.h"
#include "PdbReader.h"
CPdbCompilandStream::CPdbCompiland... | 32.002849 | 166 | 0.589958 | jsonzilla |
825414d4a8546f6b41026f70e7245be1b1a06c11 | 10,277 | cpp | C++ | ContextUI/src/cu_cellnaming.cpp | crutchwalkfactory/jaikuengine-mobile-client | c47100ec009d47a4045b3d98addc9b8ad887b132 | [
"MIT"
] | null | null | null | ContextUI/src/cu_cellnaming.cpp | crutchwalkfactory/jaikuengine-mobile-client | c47100ec009d47a4045b3d98addc9b8ad887b132 | [
"MIT"
] | null | null | null | ContextUI/src/cu_cellnaming.cpp | crutchwalkfactory/jaikuengine-mobile-client | c47100ec009d47a4045b3d98addc9b8ad887b132 | [
"MIT"
] | null | null | null | // Copyright (c) 2007-2009 Google Inc.
// Copyright (c) 2006-2007 Jaiku Ltd.
// Copyright (c) 2002-2006 Mika Raento and Renaud Petit
//
// This software is licensed at your choice under either 1 or 2 below.
//
// 1. MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of thi... | 31.332317 | 108 | 0.730661 | crutchwalkfactory |
825420cd67a1680f842f1d598407a22f6bdcc590 | 2,055 | cpp | C++ | compiler/mir/src/Shape.cpp | periannath/ONE | 61e0bdf2bcd0bc146faef42b85d469440e162886 | [
"Apache-2.0"
] | 1 | 2020-05-22T13:53:40.000Z | 2020-05-22T13:53:40.000Z | compiler/mir/src/Shape.cpp | periannath/ONE | 61e0bdf2bcd0bc146faef42b85d469440e162886 | [
"Apache-2.0"
] | 1 | 2020-09-23T23:12:23.000Z | 2020-09-23T23:20:34.000Z | compiler/mir/src/Shape.cpp | periannath/ONE | 61e0bdf2bcd0bc146faef42b85d469440e162886 | [
"Apache-2.0"
] | 1 | 2021-07-22T11:02:43.000Z | 2021-07-22T11:02:43.000Z | /*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. 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... | 23.352273 | 98 | 0.63455 | periannath |
8254fd24e943bbb2aa0ae99803b2fe1807b2215c | 71 | cpp | C++ | src/playground.cpp | salonmor/blog | 1c51d1c6143d3688c30dda907df55dd6ba955a55 | [
"0BSD"
] | null | null | null | src/playground.cpp | salonmor/blog | 1c51d1c6143d3688c30dda907df55dd6ba955a55 | [
"0BSD"
] | null | null | null | src/playground.cpp | salonmor/blog | 1c51d1c6143d3688c30dda907df55dd6ba955a55 | [
"0BSD"
] | null | null | null | #include "I.hpp"
#include "T.hpp"
using namespace std;
int main()
{
}
| 8.875 | 20 | 0.647887 | salonmor |
82555430a96d157fb09eec653fcfc5723aa3e57a | 17 | cpp | C++ | PokittoLibraryPrototype/FileSystems/File.cpp | Pharap/PokittoLibraryPrototype | f8efcbc693090d7cf3fe364272f6c9c2d3e30c1f | [
"BSD-3-Clause"
] | 23 | 2018-12-30T21:04:47.000Z | 2022-01-30T05:12:26.000Z | PokittoLibraryPrototype/FileSystems/File.cpp | Pharap/PokittoLibraryPrototype | f8efcbc693090d7cf3fe364272f6c9c2d3e30c1f | [
"BSD-3-Clause"
] | 4 | 2019-01-01T21:30:56.000Z | 2022-02-24T17:44:37.000Z | PokittoLibraryPrototype/FileSystems/File.cpp | Pharap/PokittoLibraryPrototype | f8efcbc693090d7cf3fe364272f6c9c2d3e30c1f | [
"BSD-3-Clause"
] | 3 | 2019-06-12T19:25:53.000Z | 2022-01-11T23:46:34.000Z | #include "File.h" | 17 | 17 | 0.705882 | Pharap |
825610ec33ec066781f205bab30bf7cd74934b13 | 656 | cpp | C++ | FroggerObjects/Utilities/ResetableObject.cpp | RicardoEPRodrigues/FroggerOpenGL | dc02437dfe14203e9bdb39f160e4877b44363c42 | [
"MIT"
] | null | null | null | FroggerObjects/Utilities/ResetableObject.cpp | RicardoEPRodrigues/FroggerOpenGL | dc02437dfe14203e9bdb39f160e4877b44363c42 | [
"MIT"
] | 1 | 2016-12-31T15:43:29.000Z | 2016-12-31T15:43:29.000Z | FroggerObjects/Utilities/ResetableObject.cpp | RicardoEPRodrigues/FroggerOpenGL | dc02437dfe14203e9bdb39f160e4877b44363c42 | [
"MIT"
] | null | null | null | /*
* ResetableObject.cpp
*
* Created on: Oct 29, 2014
* Author: ricardo
*/
#include "ResetableObject.h"
ResetableObject::ResetableObject() :
DynamicObject() {
this->setAlive(false);
this->_resetTime = rand() % 10;
}
ResetableObject::~ResetableObject() {
}
void ResetableObject::resetPositi... | 17.72973 | 44 | 0.655488 | RicardoEPRodrigues |
825774a51d730677917f6c9321ad7fc6dc533b2d | 2,767 | cpp | C++ | source/tests.cpp | saJonMR/programmiersprachen-raytracer-1 | 6f2345a9f1b255e0c02b2b11a4d33247f78d8fe7 | [
"MIT"
] | null | null | null | source/tests.cpp | saJonMR/programmiersprachen-raytracer-1 | 6f2345a9f1b255e0c02b2b11a4d33247f78d8fe7 | [
"MIT"
] | null | null | null | source/tests.cpp | saJonMR/programmiersprachen-raytracer-1 | 6f2345a9f1b255e0c02b2b11a4d33247f78d8fe7 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_RUNNER
#include <catch.hpp>
#include "shape.hpp"
#include <glm/vec3.hpp>
#include "box.hpp"
#include "sphere.hpp"
#include "color.hpp"
#include "scene.hpp"
#include "scene.cpp"
#include <string>
#include <sstream>
TEST_CASE ("rec", "[rec]"){
glm::vec3 origin {0.f, 0.f, 0.f};
glm::vec3 corner1 {... | 28.525773 | 97 | 0.642212 | saJonMR |
825f3c3890893b99d7be27d32a2fd7c80670dbb8 | 1,655 | cpp | C++ | tests/src/count.cpp | pinam45/dynamic_bitset | 6d19b2da9b69b8c77d7b86b453c757cd5fa8711f | [
"MIT"
] | 98 | 2019-03-31T20:18:58.000Z | 2022-03-15T12:58:19.000Z | tests/src/count.cpp | pinam45/dynamic_bitset | 6d19b2da9b69b8c77d7b86b453c757cd5fa8711f | [
"MIT"
] | 7 | 2019-07-09T15:16:53.000Z | 2021-05-30T17:38:42.000Z | tests/src/count.cpp | pinam45/dynamic_bitset | 6d19b2da9b69b8c77d7b86b453c757cd5fa8711f | [
"MIT"
] | 12 | 2019-05-20T13:57:15.000Z | 2022-02-06T09:43:13.000Z | //
// Copyright (c) 2019 Maxime Pinard
//
// Distributed under the MIT license
// See accompanying file LICENSE or copy at
// https://opensource.org/licenses/MIT
//
#include "config.hpp"
#include "utils.hpp"
#include "RandomDynamicBitsetGenerator.hpp"
#include <catch2/catch.hpp>
#include <sul/dynamic_bitset.hpp>
#inc... | 22.066667 | 80 | 0.685196 | pinam45 |
82612d49cf8ae9f11abadced0b556bc995db20ba | 942 | cpp | C++ | datasets/github_cpp_10/8/16.cpp | yijunyu/demo-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T19:27:45.000Z | 2019-05-03T19:27:45.000Z | datasets/github_cpp_10/8/16.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null | datasets/github_cpp_10/8/16.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null |
#include <iostream>
#include <vector>
#include <list>
using namespace std;
typedef vector<vector<int>> graph;
void visit(int v, const graph &g, vector<int> &visited, list<int> &order) {
visited[v] = true;
for(int w : g[v]) {
if(!visited[w]) visit(w, g, visited, order);
}
order.push_front(... | 15.966102 | 75 | 0.45966 | yijunyu |
8266ef0c94bb05f329179d851d2a834cd51e899b | 4,577 | cpp | C++ | src/state_machine.cpp | mairas/sailor-hat-firmware | 48390bbc3226b046b294d804ca5c266797b5cb2e | [
"BSD-3-Clause"
] | null | null | null | src/state_machine.cpp | mairas/sailor-hat-firmware | 48390bbc3226b046b294d804ca5c266797b5cb2e | [
"BSD-3-Clause"
] | null | null | null | src/state_machine.cpp | mairas/sailor-hat-firmware | 48390bbc3226b046b294d804ca5c266797b5cb2e | [
"BSD-3-Clause"
] | 1 | 2021-04-21T08:38:27.000Z | 2021-04-21T08:38:27.000Z | #include "state_machine.h"
#include "digital_io.h"
#include "globals.h"
// take care to have all enum values of StateType present
void (*state_machine[])(void) = {
sm_state_BEGIN,
sm_state_WAIT_VIN_ON,
sm_state_ENT_CHARGING,
sm_state_CHARGING,
sm_state_ENT_ON,
sm_state_ON,
sm_state_ENT_DEP... | 22.546798 | 75 | 0.687787 | mairas |
826db133c6e83f060c8f139633347a860f1f3fee | 554 | cpp | C++ | Opium/src/Renderer/UniformBuffer.cpp | yatiyr/Opium | ed6e7a08ee23bc353bcc6b943fa3e1a13b2f2d41 | [
"MIT"
] | null | null | null | Opium/src/Renderer/UniformBuffer.cpp | yatiyr/Opium | ed6e7a08ee23bc353bcc6b943fa3e1a13b2f2d41 | [
"MIT"
] | null | null | null | Opium/src/Renderer/UniformBuffer.cpp | yatiyr/Opium | ed6e7a08ee23bc353bcc6b943fa3e1a13b2f2d41 | [
"MIT"
] | null | null | null | #include <Precomp.h>
#include <Renderer/UniformBuffer.h>
#include <Renderer/Renderer.h>
#include <Platform/OpenGL/OpenGLUniformBuffer.h>
namespace OP
{
Ref<UniformBuffer> UniformBuffer::Create(uint32_t size, uint32_t binding)
{
switch (Renderer::GetAPI())
{
case RendererAPI::API::None: OP_ENGINE_ASSERT(false... | 27.7 | 121 | 0.752708 | yatiyr |
8270e873c80be56abaedfea4658898ef1fb46030 | 16,783 | cpp | C++ | test/unit/math/mix/prob/ordered_logistic_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-06-14T14:33:37.000Z | 2020-06-14T14:33:37.000Z | test/unit/math/mix/prob/ordered_logistic_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 2 | 2019-07-23T12:45:30.000Z | 2020-05-01T20:43:03.000Z | test/unit/math/mix/prob/ordered_logistic_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-05-10T12:55:07.000Z | 2020-05-10T12:55:07.000Z | #include <stan/math/mix.hpp>
#include <test/unit/math/rev/fun/util.hpp>
#include <gtest/gtest.h>
#include <vector>
TEST(ProbDistributionsOrdLog, fv_fv) {
using stan::math::fvar;
using stan::math::ordered_logistic_lpmf;
using stan::math::var;
using stan::math::vector_d;
using stan::math::vector_ffv;
using s... | 30.185252 | 73 | 0.645415 | LaudateCorpus1 |
82710ab65cb15b0991a59e7971e3967c9f4a80b0 | 10,923 | cpp | C++ | Source/TitaniumKit/src/Media/AudioPlayer.cpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 20 | 2015-04-02T06:55:30.000Z | 2022-03-29T04:27:30.000Z | Source/TitaniumKit/src/Media/AudioPlayer.cpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 692 | 2015-04-01T21:05:49.000Z | 2020-03-10T10:11:57.000Z | Source/TitaniumKit/src/Media/AudioPlayer.cpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 22 | 2015-04-01T20:57:51.000Z | 2022-01-18T17:33:15.000Z | /**
* TitaniumKit Titanium.Media.AudioPlayer
*
* Copyright (c) 2015 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#include "Titanium/Media/AudioPlayer.hpp"
#include "Titanium/detail/TiIm... | 36.654362 | 112 | 0.802161 | garymathews |
82716f4273626effe6da40ce822d1deef0f771df | 853 | cpp | C++ | cf/Codeforces Round #470 (rated, Div. 2, based on VK Cup 2018 Round 1) /b.cpp | emengdeath/acmcode | cc1b0e067464e754d125856004a991d6eb92a2cd | [
"MIT"
] | null | null | null | cf/Codeforces Round #470 (rated, Div. 2, based on VK Cup 2018 Round 1) /b.cpp | emengdeath/acmcode | cc1b0e067464e754d125856004a991d6eb92a2cd | [
"MIT"
] | null | null | null | cf/Codeforces Round #470 (rated, Div. 2, based on VK Cup 2018 Round 1) /b.cpp | emengdeath/acmcode | cc1b0e067464e754d125856004a991d6eb92a2cd | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<algorithm>
#define N 2000002
using namespace std;
long long bz[N][3];
int d[100];
int n;
void work(int x){
for (int i=2;(long long)i*i<=x;i++)
if (x%i==0){
d[++d[0]]=i;
while (!(x%i))x/=i;
}
if (x!=1)d[++d[0]]=x;
}
int main(){
scanf("%d",&n);
bz[n][2]=1,bz[n-1]... | 17.770833 | 67 | 0.444314 | emengdeath |
82723434da1211aa81174067f18498925e905cd1 | 7,228 | hpp | C++ | SFML-1.6/Game/marchand.hpp | Krozark/Dethroned-God | 0e677bea1e5b4c96a31f1188a4e43b900d92f532 | [
"BSD-2-Clause"
] | null | null | null | SFML-1.6/Game/marchand.hpp | Krozark/Dethroned-God | 0e677bea1e5b4c96a31f1188a4e43b900d92f532 | [
"BSD-2-Clause"
] | null | null | null | SFML-1.6/Game/marchand.hpp | Krozark/Dethroned-God | 0e677bea1e5b4c96a31f1188a4e43b900d92f532 | [
"BSD-2-Clause"
] | null | null | null | #ifndef DG_MARCHAND_HPP
#define DG_MARCHAND_HPP
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include "Taille_fenetre.hpp"
#include "Global_taille_fenetre.hpp"
#include "Hero.hpp"
class Marchand
{
public:
////////////... | 33.618605 | 77 | 0.325955 | Krozark |
8274f3d59b23eed11b55b6b7d93f543a57919b27 | 5,449 | cpp | C++ | world_item_observer/src/ItemObserver.cpp | GT-RAIL/spatial_temporal_learning | 7935b361909a159873e6589e994f0d0d5fb5fe49 | [
"BSD-3-Clause"
] | null | null | null | world_item_observer/src/ItemObserver.cpp | GT-RAIL/spatial_temporal_learning | 7935b361909a159873e6589e994f0d0d5fb5fe49 | [
"BSD-3-Clause"
] | null | null | null | world_item_observer/src/ItemObserver.cpp | GT-RAIL/spatial_temporal_learning | 7935b361909a159873e6589e994f0d0d5fb5fe49 | [
"BSD-3-Clause"
] | 1 | 2021-08-01T17:45:13.000Z | 2021-08-01T17:45:13.000Z | /*!
* \file ItemObserver.cpp
* \brief A persistent observer of items in the world for the spatial world database.
*
* The world item observer will store item observations in a remote spatial world database by listening to a
* rail_manipulation_msgs/SegmentedObjectList message.
*
* \author Russell Toris, WPI - rc... | 37.57931 | 118 | 0.679207 | GT-RAIL |
8276695a0e71d627f1ec862c350340047bcd766b | 49,066 | cpp | C++ | mergeBathy/grid.cpp | Sammie-Jo/MergeBathy_Repos-MergeBathy_CPP | 9996f5ee40e40e892ce5eb77dc4bb67930af4005 | [
"CC0-1.0"
] | 4 | 2017-05-04T15:50:48.000Z | 2020-07-30T03:52:07.000Z | mergeBathy/grid.cpp | Sammie-Jo/MergeBathy_Repos-MergeBathy_CPP | 9996f5ee40e40e892ce5eb77dc4bb67930af4005 | [
"CC0-1.0"
] | null | null | null | mergeBathy/grid.cpp | Sammie-Jo/MergeBathy_Repos-MergeBathy_CPP | 9996f5ee40e40e892ce5eb77dc4bb67930af4005 | [
"CC0-1.0"
] | 2 | 2017-01-11T09:53:26.000Z | 2020-07-30T03:52:09.000Z | /**********************************************************************
* CC0 License
**********************************************************************
* MergeBathy - Tool to combine one or more bathymetric data files onto a single input grid.
* Modified in 2015 by Samantha J.Zambo(samantha.zambo@gmail.com) while ... | 39.98859 | 250 | 0.541149 | Sammie-Jo |
8278100f1e02979ae43e62c28dac6e1b4078e5ba | 1,224 | cpp | C++ | src/object/mgr.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/object/mgr.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/object/mgr.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "mgr.hpp"
#include "if.hpp"
namespace rev {
ObjMgr::~ObjMgr() {
constexpr int N_RETRY = 8;
for(int i=0 ; i<N_RETRY ; i++) {
// オブジェクトが無くなるまで繰り返しdestroy
auto tmp = base_t::getResourceSet();
if(tmp->set.empty())
break;
for(auto& obj : tmp->set) {
try {
if(auto sp = obj.weak.lock())... | 24.48 | 138 | 0.573529 | degarashi |
8278d3ab731c5a2aecfa7e879d12431b0e0b3e59 | 4,874 | hpp | C++ | modules/core/include/glpp/core/render/renderer.hpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | 16 | 2019-12-10T19:44:17.000Z | 2022-01-04T03:16:19.000Z | modules/core/include/glpp/core/render/renderer.hpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | null | null | null | modules/core/include/glpp/core/render/renderer.hpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | 3 | 2021-06-04T21:56:55.000Z | 2022-03-03T06:47:56.000Z | #pragma once
#include <string>
#include <unordered_map>
#include <glpp/core/object/texture_atlas.hpp>
#include <glpp/core/object/shader.hpp>
namespace glpp::core::render {
namespace detail {
struct none_t {};
template <class T, class Y>
constexpr ptrdiff_t get_offset(Y T::* ptr) {
return reinterpret_cast<char*... | 33.156463 | 147 | 0.787033 | lenamueller |
827a12a4901f3eb22852e3a264c7980242ee0197 | 966 | cpp | C++ | N64 Sound Tool/N64SoundListToolUpdated/N64SoundLibrary/DecompressClayfighter.cpp | Raspberryfloof/N64-Tools | 96738d434ce3922dec0168cdd42f8e7ca131d0c5 | [
"Unlicense"
] | 1 | 2022-02-21T03:01:00.000Z | 2022-02-21T03:01:00.000Z | N64 Sound Tool/N64SoundListToolUpdated/N64SoundLibrary/DecompressClayfighter.cpp | Raspberryfloof/N64-Tools | 96738d434ce3922dec0168cdd42f8e7ca131d0c5 | [
"Unlicense"
] | null | null | null | N64 Sound Tool/N64SoundListToolUpdated/N64SoundLibrary/DecompressClayfighter.cpp | Raspberryfloof/N64-Tools | 96738d434ce3922dec0168cdd42f8e7ca131d0c5 | [
"Unlicense"
] | null | null | null | #include "StdAfx.h"
#include "DecompressClayfighter.h"
#include "SharedFunctions.h"
CDecompressClayfighter::CDecompressClayfighter(void)
{
}
CDecompressClayfighter::~CDecompressClayfighter(void)
{
}
int CDecompressClayfighter::Decompress(byte *output, byte *input)
{
bool bVar1;
byte bVar2;
byte bVar3;
byte *... | 20.125 | 65 | 0.568323 | Raspberryfloof |
827b174cd67919159e166af7f99b41b40f3f4abd | 1,579 | hpp | C++ | source/Estrutura_de_dados/Lista_adjacencia.hpp | AmandaACLucio/GraphLibrary | 518b610045e6f359588264644d0bd9f70e41b14d | [
"MIT"
] | null | null | null | source/Estrutura_de_dados/Lista_adjacencia.hpp | AmandaACLucio/GraphLibrary | 518b610045e6f359588264644d0bd9f70e41b14d | [
"MIT"
] | null | null | null | source/Estrutura_de_dados/Lista_adjacencia.hpp | AmandaACLucio/GraphLibrary | 518b610045e6f359588264644d0bd9f70e41b14d | [
"MIT"
] | null | null | null | #ifndef __LISTAADJACENCIA_H__
#define __LISTAADJACENCIA_H__
#include <iostream>
#include <vector>
#include "Estrutura_de_dados.hpp"
using namespace std;
class NodeList
{
public:
/* data */
//NodeList* prior;
NodeList* next;
int data;
double weight;
NodeList(int da... | 22.557143 | 89 | 0.61368 | AmandaACLucio |
827b8cd12246fcf20532ef276d85d0e6527aabb7 | 1,057 | hpp | C++ | peopleextractor_interface_sma/src/SceneframeQueue.hpp | fbredius/IMOVE | 912b4d0696e88acfc0ce7bc556eecf8fc423c4d3 | [
"MIT"
] | 3 | 2018-04-24T10:04:37.000Z | 2018-05-11T08:27:03.000Z | peopleextractor_interface_sma/src/SceneframeQueue.hpp | fbredius/IMOVE | 912b4d0696e88acfc0ce7bc556eecf8fc423c4d3 | [
"MIT"
] | null | null | null | peopleextractor_interface_sma/src/SceneframeQueue.hpp | fbredius/IMOVE | 912b4d0696e88acfc0ce7bc556eecf8fc423c4d3 | [
"MIT"
] | 3 | 2018-05-16T08:44:19.000Z | 2020-12-04T16:04:32.000Z | #ifndef PEOPLEEXTRACTORINTERFACESMA_SCENEFRAMEQUEUE_H
#define PEOPLEEXTRACTORINTERFACESMA_SCENEFRAMEQUEUE_H
#include <boost/interprocess/offset_ptr.hpp>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess/containers/deque.hpp>
#include <boost/interprocess/allocators/allocator.hpp>
#inc... | 44.041667 | 160 | 0.835383 | fbredius |
827d67e18b8f7f974cb10ec126f2ce505eee08c1 | 2,377 | cpp | C++ | RexLogicModule/EntityComponent/HoveringButtonsController.cpp | mattire/naali | 28c9cdc84c6a85e0151a222e55ae35c9403f0212 | [
"Apache-2.0"
] | 1 | 2018-04-02T15:38:10.000Z | 2018-04-02T15:38:10.000Z | RexLogicModule/EntityComponent/HoveringButtonsController.cpp | mattire/naali | 28c9cdc84c6a85e0151a222e55ae35c9403f0212 | [
"Apache-2.0"
] | null | null | null | RexLogicModule/EntityComponent/HoveringButtonsController.cpp | mattire/naali | 28c9cdc84c6a85e0151a222e55ae35c9403f0212 | [
"Apache-2.0"
] | null | null | null | #include "StableHeaders.h"
#include "HoveringButtonsController.h"
#include <QPushButton>
#include <QMouseEvent>
#include <QDebug>
#include "RexLogicModule.h"
namespace RexLogic
{
HoveringButtonsController::HoveringButtonsController()
:text_padding_(10.0f)
{
Ui::HoveringButtonsWidget::setupUi(this)... | 28.987805 | 133 | 0.612958 | mattire |
827d87a61c89e0dbdd02056494907d85f5ea162d | 23,745 | cpp | C++ | plugins/community/repos/FrozenWasteland/src/QuadEuclideanRhythm.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | plugins/community/repos/FrozenWasteland/src/QuadEuclideanRhythm.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | plugins/community/repos/FrozenWasteland/src/QuadEuclideanRhythm.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z | #include <string.h>
#include "FrozenWasteland.hpp"
#include "dsp/digital.hpp"
#define NUM_RULERS 10
#define MAX_DIVISIONS 6
#define TRACK_COUNT 4
#define MAX_STEPS 18
#define sMIN(a,b) (((a)>(b))?(b):(a))
#define sMAX(a,b) (((a)>(b))?(a):(b))
namespace rack_plugin_FrozenWasteland {
struct QuadEuclideanRhythm : Modul... | 37.992 | 182 | 0.717962 | guillaume-plantevin |
827e173e708ac980282c7a271edb5fe592253724 | 11,296 | cpp | C++ | 2d_plane_move_animation_not_fully_complted_game/2DPlaneGame.cpp | quang-vn26/Computer-Graphics--OpenGL-GLUT | 581ee34aee63c60069f9029861fcc92d5b7ef002 | [
"MIT"
] | 19 | 2017-02-06T07:18:07.000Z | 2021-07-01T18:25:52.000Z | 2d_plane_move_animation_not_fully_complted_game/2DPlaneGame.cpp | Shifath472533/Computer-Graphics--OpenGL-GLUT | 0c44b5d94ff0182db72ae7e99e63f88e0d3aa9c6 | [
"MIT"
] | null | null | null | 2d_plane_move_animation_not_fully_complted_game/2DPlaneGame.cpp | Shifath472533/Computer-Graphics--OpenGL-GLUT | 0c44b5d94ff0182db72ae7e99e63f88e0d3aa9c6 | [
"MIT"
] | 36 | 2016-11-19T11:17:47.000Z | 2021-11-29T01:14:07.000Z | /*
Desh, Salman Rahman: 13-23239-1
Amin, H.M. Ruhul: 13-23624-1
Hassan, Jahidul: 13-25373-1
Mahdi, Dewan Osman: 13-25368-3
*/
#include <sstream>
#include <stdio.h>
#include <iostream>
#include <windows.h>
#include <GL/glut.h>
#include <GL/freeglut.h>
using namespace std;
int viewY, viewX;
int move_u... | 58.833333 | 7,532 | 0.652443 | quang-vn26 |
827f167147a810e89a1ba8ee85df3d023cd0481a | 637 | cpp | C++ | 2407/5414965_AC_0MS_168K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 2407/5414965_AC_0MS_168K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 2407/5414965_AC_0MS_168K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #include<cstdio>
#include<algorithm>
using namespace std;
int main(){
const int PRE_PROCESS_SIZE=40000;
bool prime[PRE_PROCESS_SIZE];
fill(prime,prime+PRE_PROCESS_SIZE,true);
prime[0]=prime[1]=false;
for(int i=2;i<PRE_PROCESS_SIZE;i++)
if(prime[i])
for(int j=2;i*j<PRE_PROCESS_SIZE;j++)
prim... | 17.694444 | 42 | 0.546311 | vandreas19 |
827ff691aea0c1d644e56b7c68dc752920ded987 | 252 | cpp | C++ | TopCoder/Plugin/moj_4/template.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | TopCoder/Plugin/moj_4/template.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | TopCoder/Plugin/moj_4/template.cpp | vios-fish/CompetitiveProgramming | 6953f024e4769791225c57ed852cb5efc03eb94b | [
"MIT"
] | null | null | null | // Paste me into the FileEdit configuration dialog
#include <string>
#include <vector>
using namespace std;
class $CLASSNAME$ {
public:
$RC$ $METHODNAME$( $METHODPARMS$ ) {
}
};
$BEGINCUT$
$TESTCODE$
$DEFAULTMAIN$
$ENDCUT$
| 13.263158 | 51 | 0.634921 | vios-fish |
82828aaf2a72e1e22729ae93936a2525175825e0 | 2,265 | cpp | C++ | C++/best-time-to-buy-and-sell-stock-iv.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/best-time-to-buy-and-sell-stock-iv.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/best-time-to-buy-and-sell-stock-iv.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(n)
class Solution {
public:
int maxProfit(int k, vector<int> &prices) {
vector<int> profits;
vector<pair<int, int>> v_p_stk; // mono stack, where v is increasing and p is strictly decreasing
for (int v = -1, p = -1; p + 1 < size(prices);) { // at most O(n) peaks,... | 50.333333 | 133 | 0.525828 | Priyansh2 |
828b7339b36cd74b8b5b4eb120f9ec9abb663a3b | 209 | cpp | C++ | sources/main.cpp | Mitrius/Multicore | f0b0ef11124975ec534c20523ed1f01110118bd0 | [
"MIT"
] | null | null | null | sources/main.cpp | Mitrius/Multicore | f0b0ef11124975ec534c20523ed1f01110118bd0 | [
"MIT"
] | null | null | null | sources/main.cpp | Mitrius/Multicore | f0b0ef11124975ec534c20523ed1f01110118bd0 | [
"MIT"
] | null | null | null | #include "mkl.h"
#include "../headers/calculations.h"
int main(int _argc, char const *argv[])
{
std::string filePath = argv[1];
//calculateRef(filePath);
calculateImpl(filePath);
return 0;
}
| 17.416667 | 39 | 0.650718 | Mitrius |
8291a742c3635163474558213adaba98cff1107e | 1,875 | cpp | C++ | hiro/core/widget/combo-button.cpp | mp-lee/higan | c38a771f2272c3ee10fcb99f031e982989c08c60 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | hiro/core/widget/combo-button.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | hiro/core/widget/combo-button.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | #if defined(Hiro_ComboButton)
auto mComboButton::allocate() -> pObject* {
return new pComboButton(*this);
}
auto mComboButton::destruct() -> void {
for(auto& item : state.items) item->destruct();
mWidget::destruct();
}
//
auto mComboButton::append(sComboButtonItem item) -> type& {
if(!state.items) item->sta... | 24.038462 | 73 | 0.6816 | mp-lee |
8294af14be5df43cb4c26411ef116d3853524cb4 | 13,057 | cpp | C++ | applications/mne_matching_pursuit/release/moc_enhancededitorwindow.cpp | ChunmingGu/mne-cpp-master | 36f21b3ab0c65a133027da83fa8e2a652acd1485 | [
"BSD-3-Clause"
] | null | null | null | applications/mne_matching_pursuit/release/moc_enhancededitorwindow.cpp | ChunmingGu/mne-cpp-master | 36f21b3ab0c65a133027da83fa8e2a652acd1485 | [
"BSD-3-Clause"
] | null | null | null | applications/mne_matching_pursuit/release/moc_enhancededitorwindow.cpp | ChunmingGu/mne-cpp-master | 36f21b3ab0c65a133027da83fa8e2a652acd1485 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'enhancededitorwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.0)
**
** WARNING! All changes made in this file will be lost!
***********************************************... | 45.179931 | 112 | 0.650303 | ChunmingGu |
8295fef074b48792fcdef82a94baab6c90c24b58 | 57,365 | cc | C++ | sql/sql_db.cc | hervewenjie/mysql | 49a37eda4e2cc87e20ba99e2c29ffac2fc322359 | [
"BSD-3-Clause"
] | null | null | null | sql/sql_db.cc | hervewenjie/mysql | 49a37eda4e2cc87e20ba99e2c29ffac2fc322359 | [
"BSD-3-Clause"
] | null | null | null | sql/sql_db.cc | hervewenjie/mysql | 49a37eda4e2cc87e20ba99e2c29ffac2fc322359 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed i... | 30.335801 | 81 | 0.619995 | hervewenjie |
82975711f45a5ce8804471a2f43e00dadc3516b1 | 441 | cpp | C++ | 10_smart_pointers/10_02_unique_ptr_as_raii/10_02_00_unique_ptr_as_raii.cpp | pAbogn/cpp_courses | 6ffa7da5cc440af3327139a38cfdefcfaae1ebed | [
"MIT"
] | 13 | 2020-09-01T14:57:21.000Z | 2021-11-24T06:00:26.000Z | 10_smart_pointers/10_02_unique_ptr_as_raii/10_02_00_unique_ptr_as_raii.cpp | pAbogn/cpp_courses | 6ffa7da5cc440af3327139a38cfdefcfaae1ebed | [
"MIT"
] | 5 | 2020-06-11T14:13:00.000Z | 2021-07-14T05:27:53.000Z | 10_smart_pointers/10_02_unique_ptr_as_raii/10_02_00_unique_ptr_as_raii.cpp | pAbogn/cpp_courses | 6ffa7da5cc440af3327139a38cfdefcfaae1ebed | [
"MIT"
] | 10 | 2021-03-22T07:54:36.000Z | 2021-09-15T04:03:32.000Z | // Smart pointer with unique ownership
#include <memory>
#include <cassert>
int main() {
std::unique_ptr<int> uptr1(new int(1));
int val = *uptr1;
std::unique_ptr<int> uptr2 = uptr1; // Fail
std::unique_ptr<int> uptr3 = std::move(uptr1); // OK
assert(uptr3);
assert(uptr1);
uptr3.reset... | 20.045455 | 79 | 0.637188 | pAbogn |
829938fcbfbf99683931febb7557abde852381af | 2,147 | cpp | C++ | ccm/demo/HelloWorld/src/StdHelloWorldDll.cpp | anjingbin/starccm | 70db48004aa20bbb82cc24de80802b40c7024eff | [
"BSD-3-Clause"
] | 2 | 2020-01-06T07:43:30.000Z | 2020-07-11T20:53:53.000Z | ccm/demo/HelloWorld/src/StdHelloWorldDll.cpp | anjingbin/starccm | 70db48004aa20bbb82cc24de80802b40c7024eff | [
"BSD-3-Clause"
] | null | null | null | ccm/demo/HelloWorld/src/StdHelloWorldDll.cpp | anjingbin/starccm | 70db48004aa20bbb82cc24de80802b40c7024eff | [
"BSD-3-Clause"
] | null | null | null | // **********************************************************************
//
// Generated by the IDL3 Translator
//
// Copyright (c) 2001-2004
// StarMiddleware Group
// www.StarMiddleware.net
//
// All Rights Reserved
//
// Author: Huang Jie huangjie@email.com
// Author: Chang Junsheng cjs7908@163.com
// Auth... | 18.669565 | 73 | 0.571029 | anjingbin |
8299d9d868c2aad80d0a7bfd0a65cab89922584a | 2,471 | cpp | C++ | Demos3/bullet2/ConstraintDemo/ConstraintPhysicsSetup.cpp | jackoalan/bullet3 | 4276b2f06aa652a00b798666ae68013fc6c950e3 | [
"Zlib"
] | null | null | null | Demos3/bullet2/ConstraintDemo/ConstraintPhysicsSetup.cpp | jackoalan/bullet3 | 4276b2f06aa652a00b798666ae68013fc6c950e3 | [
"Zlib"
] | null | null | null | Demos3/bullet2/ConstraintDemo/ConstraintPhysicsSetup.cpp | jackoalan/bullet3 | 4276b2f06aa652a00b798666ae68013fc6c950e3 | [
"Zlib"
] | null | null | null | #include "ConstraintPhysicsSetup.h"
ConstraintPhysicsSetup::ConstraintPhysicsSetup()
{
}
ConstraintPhysicsSetup::~ConstraintPhysicsSetup()
{
}
btScalar val;
btHingeAccumulatedAngleConstraint* spDoorHinge=0;
void ConstraintPhysicsSetup::stepSimulation(float deltaTime)
{
val=spDoorHinge->getAccumulatedHin... | 34.319444 | 114 | 0.730473 | jackoalan |
8299e8bbef89bb086c2f5153fbf9a281e009a0d7 | 106 | cpp | C++ | CPP/CPPASTL/Day01/index.cpp | wolflion/Code2018 | 352ec55527602eb592b1936ec9d4c7d3a2368bb8 | [
"Apache-2.0"
] | null | null | null | CPP/CPPASTL/Day01/index.cpp | wolflion/Code2018 | 352ec55527602eb592b1936ec9d4c7d3a2368bb8 | [
"Apache-2.0"
] | null | null | null | CPP/CPPASTL/Day01/index.cpp | wolflion/Code2018 | 352ec55527602eb592b1936ec9d4c7d3a2368bb8 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
#define MAX 1024
int main()
{
cout << MAX << endl;
return 0;
} | 10.6 | 21 | 0.660377 | wolflion |
8299f4ed8b13761148537ce51959a8ffaacb9d93 | 834 | cpp | C++ | Arrays/Two Sum.cpp | nitishkalra/Coding-Problems-Solved | 3f5944a2bfb78f2ad7992c6224ef3c1099566fc8 | [
"MIT"
] | 2 | 2020-11-05T07:34:14.000Z | 2020-11-05T07:47:15.000Z | Arrays/Two Sum.cpp | nitishkalra/Coding-Problems-Solved | 3f5944a2bfb78f2ad7992c6224ef3c1099566fc8 | [
"MIT"
] | null | null | null | Arrays/Two Sum.cpp | nitishkalra/Coding-Problems-Solved | 3f5944a2bfb78f2ad7992c6224ef3c1099566fc8 | [
"MIT"
] | 1 | 2020-11-05T07:34:16.000Z | 2020-11-05T07:34:16.000Z | Leetcode - Two Sum
//Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
//You may assume that each input would have exactly one solution, and you may not use the same element twice.
//You can return the answer in any order.
class Solution {
publ... | 30.888889 | 123 | 0.567146 | nitishkalra |
829d673ae0e3c44c0ebdcc70919f77a3678ae37f | 3,488 | cpp | C++ | na/na06.cpp | tao-j/hw | f6723e703a950c2a8e930938d133a69fa816d72d | [
"Apache-2.0"
] | null | null | null | na/na06.cpp | tao-j/hw | f6723e703a950c2a8e930938d133a69fa816d72d | [
"Apache-2.0"
] | null | null | null | na/na06.cpp | tao-j/hw | f6723e703a950c2a8e930938d133a69fa816d72d | [
"Apache-2.0"
] | 1 | 2015-01-08T00:23:02.000Z | 2015-01-08T00:23:02.000Z | #include <stdio.h>
#define MAX_N 20
void Cubic_Spline(int n, double x[], double f[], int Type, double s0, double sn,
double a[], double b[], double c[], double d[]);
double S(double t, double Fmax,
int n, double x[], double a[], double b[], double c[], double d[]);
int main() {
freopen("in6.txt", "r", stdin);
i... | 34.534653 | 137 | 0.416571 | tao-j |
82a2f97f7f86bd49726350724b83b2b0ac4beba9 | 4,188 | cc | C++ | tensorflow/compiler/plugin/poplar/driver/ops/custom_ops/poplin/weights_transpose_chans_flip_xy.cc | DebeshJha/tensorflow-1 | 2b5a225c49d25273532d11c424d37ce394d7579a | [
"Apache-2.0"
] | 2 | 2021-03-08T23:32:06.000Z | 2022-01-13T03:43:49.000Z | tensorflow/compiler/plugin/poplar/driver/ops/custom_ops/poplin/weights_transpose_chans_flip_xy.cc | DebeshJha/tensorflow-1 | 2b5a225c49d25273532d11c424d37ce394d7579a | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/plugin/poplar/driver/ops/custom_ops/poplin/weights_transpose_chans_flip_xy.cc | DebeshJha/tensorflow-1 | 2b5a225c49d25273532d11c424d37ce394d7579a | [
"Apache-2.0"
] | null | null | null | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 39.509434 | 102 | 0.686485 | DebeshJha |
82a40fe211c644ce226d10fea60de697bf874339 | 33,241 | cc | C++ | gnuradio-3.7.13.4/gnuradio-runtime/lib/hier_block2_detail.cc | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | 1 | 2021-03-09T07:32:37.000Z | 2021-03-09T07:32:37.000Z | gnuradio-3.7.13.4/gnuradio-runtime/lib/hier_block2_detail.cc | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | gnuradio-3.7.13.4/gnuradio-runtime/lib/hier_block2_detail.cc | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | /* -*- c++ -*- */
/*
* Copyright 2006,2007,2009,2013 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* GNU Radio 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, or ... | 34.662148 | 104 | 0.572004 | v1259397 |
82a4be72e1d357e8362128381c9a8ff01eed5ac3 | 5,081 | hpp | C++ | include/my_async/udp_client/impl/client_base_impl.hpp | rnascunha/my_async | 5fbe3a46e87a2d74fc07d16252a3b3cf488b4684 | [
"MIT"
] | null | null | null | include/my_async/udp_client/impl/client_base_impl.hpp | rnascunha/my_async | 5fbe3a46e87a2d74fc07d16252a3b3cf488b4684 | [
"MIT"
] | null | null | null | include/my_async/udp_client/impl/client_base_impl.hpp | rnascunha/my_async | 5fbe3a46e87a2d74fc07d16252a3b3cf488b4684 | [
"MIT"
] | 1 | 2021-03-10T13:02:13.000Z | 2021-03-10T13:02:13.000Z | #ifndef UDP_CLIENT_BASE_SESSION_IMPL_HPP__
#define UDP_CLIENT_BASE_SESSION_IMPL_HPP__
#include "../client_base.hpp"
using boost::asio::ip::udp;
namespace My_Async{
namespace UDP{
template<typename Derived,
typename InContainer,
typename OutContainer,
std::size_t ReadBufferSize>
Client_Base<Derived, InContaine... | 23.095455 | 76 | 0.758906 | rnascunha |
82a5256542dd6d2a2fa6fc2596ef857ba1c64171 | 756 | hpp | C++ | c++/include/celerite2/utils.hpp | jacksonloper/celerite2 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | [
"MIT"
] | 38 | 2020-10-10T02:43:53.000Z | 2022-03-30T09:59:21.000Z | c++/include/celerite2/utils.hpp | jacksonloper/celerite2 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | [
"MIT"
] | 34 | 2020-10-06T18:50:47.000Z | 2022-01-28T10:33:04.000Z | c++/include/celerite2/utils.hpp | jacksonloper/celerite2 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | [
"MIT"
] | 6 | 2020-11-09T18:12:54.000Z | 2022-02-03T20:20:59.000Z | #ifndef _CELERITE2_UTILS_HPP_DEFINED_
#define _CELERITE2_UTILS_HPP_DEFINED_
#include <Eigen/Core>
#include <cassert>
namespace celerite2 {
namespace utils {
#define ASSERT_SAME_OR_DYNAMIC(VAL, J) assert((VAL == Eigen::Dynamic) || (VAL == J))
// adapted from https://academy.realm.io/posts/how-we-beat-cpp-stl-binary-... | 23.625 | 90 | 0.671958 | jacksonloper |