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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51e7098934b5e0e3d3c1be331921771523063552 | 1,613 | hpp | C++ | src/test/_test.hpp | BigDataAnalyticsGroup/RewiredCracking | b12bf39b54672d28175f4608d266c505e3611459 | [
"Apache-2.0"
] | 3 | 2019-04-21T07:23:03.000Z | 2019-12-04T02:10:04.000Z | src/test/_test.hpp | BigDataAnalyticsGroup/RewiredCracking | b12bf39b54672d28175f4608d266c505e3611459 | [
"Apache-2.0"
] | null | null | null | src/test/_test.hpp | BigDataAnalyticsGroup/RewiredCracking | b12bf39b54672d28175f4608d266c505e3611459 | [
"Apache-2.0"
] | null | null | null | #ifndef TABLE
#error "#define TABLE to some hash table"
#endif
#ifndef HASH
#error "#define HASH to some hash function"
#endif
#include "test/catch.hpp"
#include <cstdint>
#define STRINGIFY(X) #X
#define STR(X) STRINGIFY(X)
#define PREFIX STR(TABLE) "/" STR(HASH)
using table_type = TABLE<uint64_t, uint64_t, HASH<... | 21.223684 | 61 | 0.548667 | BigDataAnalyticsGroup |
51edb584ab6ed521376076b7cf871d1235b04a63 | 43,538 | cpp | C++ | src/modules/GenericPropagation/GenericPropagationModule.cpp | bencline1/Allpix_GaAs | c4922dc9d981aca265e076eb5bfe4cefe51913a2 | [
"MIT"
] | 3 | 2019-03-04T22:31:32.000Z | 2021-04-20T11:19:17.000Z | src/modules/GenericPropagation/GenericPropagationModule.cpp | bencline1/Allpix_GaAs | c4922dc9d981aca265e076eb5bfe4cefe51913a2 | [
"MIT"
] | 27 | 2019-04-01T12:25:46.000Z | 2021-09-03T12:20:19.000Z | src/modules/GenericPropagation/GenericPropagationModule.cpp | bencline1/Allpix_GaAs | c4922dc9d981aca265e076eb5bfe4cefe51913a2 | [
"MIT"
] | 15 | 2017-08-08T14:57:51.000Z | 2021-06-26T17:16:21.000Z | /**
* @file
* @brief Implementation of generic charge propagation module
* @remarks Based on code from Paul Schuetze
* @copyright Copyright (c) 2017-2020 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying ... | 49.475 | 125 | 0.571593 | bencline1 |
51edfece79314dc7d87e1282ddbda109954e4ae2 | 2,601 | cpp | C++ | example_bar_plot/src/ofApp.cpp | nickgillian/ofxGrt | 689c068b76af9e614f7124dbd4f38c8640c3a06d | [
"MIT"
] | 127 | 2016-01-04T20:33:15.000Z | 2021-11-30T07:18:48.000Z | example_bar_plot/src/ofApp.cpp | nickgillian/ofxGrt | 689c068b76af9e614f7124dbd4f38c8640c3a06d | [
"MIT"
] | 29 | 2016-01-05T20:39:14.000Z | 2021-01-04T04:07:37.000Z | example_bar_plot/src/ofApp.cpp | nickgillian/ofxGrt | 689c068b76af9e614f7124dbd4f38c8640c3a06d | [
"MIT"
] | 33 | 2016-01-05T18:44:57.000Z | 2020-08-09T00:13:47.000Z |
#include "ofApp.h"
#define NUM_DIMENSIONS 20
//--------------------------------------------------------------
void ofApp::setup(){
ofSetBackgroundColor(255);
//Load the font for the graph
font.load("verdana.ttf", 12, true, true);
font.setLineHeight(14.0f);
//Setup the plot
plot1.setup( NUM_... | 23.017699 | 89 | 0.38985 | nickgillian |
51ef9a043c754240e5c35ab326db8e2a7dee9b42 | 4,009 | cpp | C++ | fileformats/GOB_Reader.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | 1 | 2021-07-25T15:10:39.000Z | 2021-07-25T15:10:39.000Z | fileformats/GOB_Reader.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | null | null | null | fileformats/GOB_Reader.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | null | null | null | #include "GOB_Reader.h"
#include "../EngineSettings.h"
#include "../ui/XL_Console.h"
#include <string.h>
#include <stdio.h>
#include <cstdint>
GOB_Reader::GOB_Reader() : Archive()
{
m_CurFile = -1;
m_pFile = NULL;
m_FileList.pEntries = NULL;
}
bool GOB_Reader::Open(const char *pszName)
{
sprintf(m_szF... | 25.864516 | 96 | 0.555251 | kcat |
51f5e616d09849a78be384d0b82a56cbceaef6c3 | 3,769 | hpp | C++ | crit_crauser.hpp | kaini/sssp-simulation | 0ee9cefb9b5d3a79c59eedd44092cd0401e99581 | [
"MIT"
] | null | null | null | crit_crauser.hpp | kaini/sssp-simulation | 0ee9cefb9b5d3a79c59eedd44092cd0401e99581 | [
"MIT"
] | null | null | null | crit_crauser.hpp | kaini/sssp-simulation | 0ee9cefb9b5d3a79c59eedd44092cd0401e99581 | [
"MIT"
] | null | null | null | #pragma once
#include "criteria.hpp"
#include "dijkstra.hpp"
#include "graph.hpp"
#include "stringy_enum.hpp"
#include <boost/heap/pairing_heap.hpp>
#include <unordered_set>
namespace sssp {
// Implements Crauser's IN criteria. Additionally instead of using the minimal edges,
// with dynamic=true, one can use the min... | 38.85567 | 117 | 0.71982 | kaini |
51f675ab28f07d980f2f0c9d3af113cc9ce3ce67 | 451 | cpp | C++ | solutions/1010.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | solutions/1010.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | solutions/1010.cpp | tdakhran/leetcode | ed680059661faae32857eaa791ca29c1d9c16120 | [
"MIT"
] | null | null | null | #include <array>
#include <vector>
class Solution {
public:
int numPairsDivisibleBy60(std::vector<int>& time) {
std::array<int, 60> durations = {0};
for (auto t : time) {
++durations[t % 60];
}
int result = (durations[0] - 1) * durations[0] / 2 +
(durations[30] - 1) * duration... | 23.736842 | 57 | 0.534368 | tdakhran |
51fa9dbde53d3c04cf97e87eca10e5da112e306c | 2,857 | cpp | C++ | source/src/multilanguage/qrlanguager.cpp | Qters/QrCommon | 0e90365c1ad58c63ff17c259bb298f27c78d7d91 | [
"Apache-2.0"
] | null | null | null | source/src/multilanguage/qrlanguager.cpp | Qters/QrCommon | 0e90365c1ad58c63ff17c259bb298f27c78d7d91 | [
"Apache-2.0"
] | null | null | null | source/src/multilanguage/qrlanguager.cpp | Qters/QrCommon | 0e90365c1ad58c63ff17c259bb298f27c78d7d91 | [
"Apache-2.0"
] | null | null | null | #include "qrlanguager.h"
#include <algorithm>
#include <QTranslator>
#include <qapplication.h>
#include <QtCore/qdebug.h>
#include "qrutf8.h"
NS_QRCOMMON_BEGIN
class QrLanguagerPrivate
{
QR_DECLARE_PUBLIC(QrLanguager)
public:
int curLanaugeIndex = -1;
QVector<QrLanguagData> languageDatas;
QTrans... | 23.808333 | 90 | 0.652083 | Qters |
51fb4572055fdce043c3f3d02f02452838b0656e | 2,592 | cpp | C++ | src/scene.cpp | martin-pr/embree_viewer | 4e382f0352a8b76ff5d955024b5f56f1855d20c1 | [
"MIT"
] | 23 | 2018-03-15T00:02:53.000Z | 2022-03-19T17:44:40.000Z | src/scene.cpp | martin-pr/embree_viewer | 4e382f0352a8b76ff5d955024b5f56f1855d20c1 | [
"MIT"
] | null | null | null | src/scene.cpp | martin-pr/embree_viewer | 4e382f0352a8b76ff5d955024b5f56f1855d20c1 | [
"MIT"
] | 5 | 2019-03-06T06:48:44.000Z | 2021-03-21T16:56:30.000Z | #include "scene.h"
#include <cmath>
#include <iostream>
#include <limits>
#include <embree3/rtcore_ray.h>
#include "mesh.h"
Scene::SceneHandle::SceneHandle(Device& device) {
m_scene = rtcNewScene(device);
rtcSetSceneFlags(m_scene, RTC_SCENE_FLAG_COMPACT);
}
Scene::SceneHandle::~SceneHandle() {
rtcReleaseScene(... | 20.25 | 127 | 0.697145 | martin-pr |
51fc876792446d7d9bed7541049214da83741401 | 2,777 | cpp | C++ | ConsoleEditor/libeditor/HtmlDocumentFormatter.cpp | AlK2x/OOD | 7ce78cfa7708978483f67642d93a8bc2873c2285 | [
"MIT"
] | null | null | null | ConsoleEditor/libeditor/HtmlDocumentFormatter.cpp | AlK2x/OOD | 7ce78cfa7708978483f67642d93a8bc2873c2285 | [
"MIT"
] | 5 | 2016-03-20T20:28:52.000Z | 2016-06-30T18:17:42.000Z | ConsoleEditor/libeditor/HtmlDocumentFormatter.cpp | AlK2x/OOD | 7ce78cfa7708978483f67642d93a8bc2873c2285 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "HtmlDocumentFormatter.h"
namespace fs = boost::filesystem;
CHtmlDocumentFormatter::CHtmlDocumentFormatter(CTempFolder const & tempFolder)
:m_tempFolder(tempFolder)
{
m_htmlEntities.push_back({ '&', "&" });
m_htmlEntities.push_back({ '<', "<" });
m_htmlEntities.push_back({ '>',... | 25.245455 | 117 | 0.685992 | AlK2x |
a406b386fceea856d3a50693083c7c58718ee026 | 1,013 | cpp | C++ | AP325/P-6-20.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | 1 | 2019-09-07T15:56:05.000Z | 2019-09-07T15:56:05.000Z | AP325/P-6-20.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | AP325/P-6-20.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
constexpr const ll INF = 1L << 60;
constexpr const ll MOD = 1e9 + 9;
ll solve(vector<ll> &values) {
vector<ll> dp(values.size());
vector<bool> pushed(values.size());
queue<ll> que;
que.push(0);
while (!que.empty()) {
ll node = que.fro... | 20.673469 | 79 | 0.516288 | Superdanby |
a40b558cec5fb88f3b6895e11f595b7c0cca599e | 2,109 | cpp | C++ | qsdlrectangle.cpp | CrimsonAS/qtsdl | a0c2487c175393d54d27574f9f02bfa436c34e79 | [
"Unlicense"
] | 2 | 2018-06-23T17:06:27.000Z | 2019-01-29T21:31:53.000Z | qsdlrectangle.cpp | CrimsonAS/qtsdl | a0c2487c175393d54d27574f9f02bfa436c34e79 | [
"Unlicense"
] | null | null | null | qsdlrectangle.cpp | CrimsonAS/qtsdl | a0c2487c175393d54d27574f9f02bfa436c34e79 | [
"Unlicense"
] | null | null | null | /*
* Copyright (c) 2014 Robin Burchell <robin+git@viroteck.net>
* 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,... | 30.128571 | 114 | 0.726885 | CrimsonAS |
a40f8b7b85852101ddbc2c946cdb585a06270f80 | 406 | hpp | C++ | external-memory/Common/Timer.hpp | Why1221/iDEC | a6f0064bf4f6c0b199dc0753a7f14ce4dad357cb | [
"MIT"
] | 2 | 2021-06-15T14:58:59.000Z | 2022-01-06T17:17:57.000Z | in-memory/Common/Timer.hpp | Why1221/iDEC | a6f0064bf4f6c0b199dc0753a7f14ce4dad357cb | [
"MIT"
] | null | null | null | in-memory/Common/Timer.hpp | Why1221/iDEC | a6f0064bf4f6c0b199dc0753a7f14ce4dad357cb | [
"MIT"
] | null | null | null | #ifndef __TIMER_HPP_
#define __TIMER_HPP_
#include <chrono>
using namespace std::chrono;
struct HighResolutionTimer {
void restart() {
_start = high_resolution_clock::now();
}
double elapsed() const {
auto cur = high_resolution_clock::now();
return duration<double, std::micro>(cur - _start).count()... | 19.333333 | 62 | 0.714286 | Why1221 |
a416992d74323ce478fd892fdfda3f79a2e49ba5 | 6,131 | cpp | C++ | SOURCE/allProjects/car_data/car_dataBase_tree/carBinaryTree.cpp | llanesjuan/AllMyProjects | 5944b248ae8f4f84cfea9fcf379f877909372551 | [
"MIT"
] | null | null | null | SOURCE/allProjects/car_data/car_dataBase_tree/carBinaryTree.cpp | llanesjuan/AllMyProjects | 5944b248ae8f4f84cfea9fcf379f877909372551 | [
"MIT"
] | null | null | null | SOURCE/allProjects/car_data/car_dataBase_tree/carBinaryTree.cpp | llanesjuan/AllMyProjects | 5944b248ae8f4f84cfea9fcf379f877909372551 | [
"MIT"
] | null | null | null | #include"carBinaryTree.h"
#include"binarySearchTree.h"
#include"binaryTreeType.h"
#include"carType.h"
#include<string>
#include<fstream>
#include<vector>
using namespace std;
void carBinaryTree::genSearch() {
int count = 0;
string make;
string id;
string model;
string year;
string engine;
string door;
string ... | 27.493274 | 143 | 0.686185 | llanesjuan |
a41b27829873d759cadc2158f6c017d2024d36da | 568 | cpp | C++ | Typhoon/Src/Typhoon/Timestep.cpp | Stangui/TyphoonEngine | 20dfdac4ded598ebbc26a48acc5d0d1adc97c833 | [
"Apache-2.0"
] | null | null | null | Typhoon/Src/Typhoon/Timestep.cpp | Stangui/TyphoonEngine | 20dfdac4ded598ebbc26a48acc5d0d1adc97c833 | [
"Apache-2.0"
] | null | null | null | Typhoon/Src/Typhoon/Timestep.cpp | Stangui/TyphoonEngine | 20dfdac4ded598ebbc26a48acc5d0d1adc97c833 | [
"Apache-2.0"
] | null | null | null | #include "TyphoonPCH.h"
#include "Timestep.h"
#include "Typhoon/Core.h"
#if TE_PLATFORM_WINDOWS
#include "Platform/Windows/WindowsTimestep.h"
#endif ////TE_PLATFORM_WINDOWS
namespace TyphoonEngine
{
Timestep* Timestep::Create()
{
#if TE_PLATFORM_WINDOWS
return new WindowsTimestep();
#endif ////TE_PLATFORM_WINDO... | 20.285714 | 55 | 0.762324 | Stangui |
a41ff93d55a486a613bbe6fe4887358d42122ae3 | 411 | cpp | C++ | Practice Programs/small_factorials.cpp | C-Nikks/CPP_Language_Programs | e3ed1990aedd6b41f2746cdab7661c40f24d5588 | [
"MIT"
] | 3 | 2021-02-04T17:59:00.000Z | 2022-01-29T17:21:42.000Z | Practice Programs/small_factorials.cpp | C-Nikks/CPP_Language_Programs | e3ed1990aedd6b41f2746cdab7661c40f24d5588 | [
"MIT"
] | null | null | null | Practice Programs/small_factorials.cpp | C-Nikks/CPP_Language_Programs | e3ed1990aedd6b41f2746cdab7661c40f24d5588 | [
"MIT"
] | 3 | 2021-10-02T14:38:21.000Z | 2021-10-05T06:19:22.000Z | #include <iostream>
using namespace std;
int fact(int n)
{
int f = n;
while (f != 1)
{
n = n * (f - 1);
f--;
}
return n;
}
int main()
{
int t, n;
cin >> t;
int arr[t];
for (int i = 1; i <= t; i++)
{
cin >> n;
arr[i] = fact(n);
}
for (int i... | 13.7 | 32 | 0.350365 | C-Nikks |
a4202259b3eb2128d67232881e1f8772fb155cb3 | 5,365 | cpp | C++ | src/cell-simulation/core/engine.cpp | firestack/cell-simulation | 11eacc685afe7c283c1fc2ed6f8b312785f45f98 | [
"MIT"
] | null | null | null | src/cell-simulation/core/engine.cpp | firestack/cell-simulation | 11eacc685afe7c283c1fc2ed6f8b312785f45f98 | [
"MIT"
] | null | null | null | src/cell-simulation/core/engine.cpp | firestack/cell-simulation | 11eacc685afe7c283c1fc2ed6f8b312785f45f98 | [
"MIT"
] | null | null | null | #include "engine.h"
// Standard includes.
#include <string>
#include <sstream>
#include <iomanip>
#include <iostream>
// SFML includes.
#include <SFML/OpenGL.hpp>
#include <SFML/Window/Keyboard.hpp>
// Project includes.
#include "content.h"
#include "console.h"
Engine::Engine() :
m_avgRenderTime(0.0f),
m_a... | 25.306604 | 105 | 0.627213 | firestack |
a424e61811f8df783ec4a974ca1cc6f0f4378a57 | 4,576 | hpp | C++ | slope/slope/math/vector3.hpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | 6 | 2022-02-05T23:28:12.000Z | 2022-02-24T11:08:04.000Z | slope/slope/math/vector3.hpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | null | null | null | slope/slope/math/vector3.hpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | null | null | null | #pragma once
#include "slope/math/math_utils.hpp"
namespace slope {
class vec3 {
public:
static constexpr vec3 zero() { return {}; }
constexpr vec3() : x(0.f), y(0.f), z(0.f) {}
explicit constexpr vec3(float all) : x(all), y(all), z(all) {}
constexpr vec3... | 32.453901 | 121 | 0.547421 | muleax |
a42765efaa4612abd78e0a55bd3947086cce6c8f | 503 | hpp | C++ | include/axl.util/Protocol.hpp | Defalt8/axl.util | 71375e37d7df5d91d813d6e0fe99416220ce4dca | [
"MIT"
] | 1 | 2021-02-12T12:48:28.000Z | 2021-02-12T12:48:28.000Z | include/axl.util/Protocol.hpp | Defalt8/axl.util | 71375e37d7df5d91d813d6e0fe99416220ce4dca | [
"MIT"
] | null | null | null | include/axl.util/Protocol.hpp | Defalt8/axl.util | 71375e37d7df5d91d813d6e0fe99416220ce4dca | [
"MIT"
] | null | null | null | #pragma once
#include "lib.hpp"
#include "types.hpp"
#include "ds/Array.hpp"
#include "ds/List.hpp"
#include "Serial.hpp"
namespace axl {
namespace util {
class AXLUTILCXXAPI Protocol
{
public:
Protocol();
virtual ~Protocol();
virtual ds::Array<byte, axl::util::ds::Allocators::Malloc<byte>> serialize(const Se... | 21.869565 | 130 | 0.699801 | Defalt8 |
a4291633209df533c172ee350b015c3434babc47 | 9,038 | cpp | C++ | src/gtest/test-utils-basic.cpp | w5292c/mcode | bb5d09c09b54d870bcc4e6a220176168d6618f60 | [
"MIT"
] | null | null | null | src/gtest/test-utils-basic.cpp | w5292c/mcode | bb5d09c09b54d870bcc4e6a220176168d6618f60 | [
"MIT"
] | null | null | null | src/gtest/test-utils-basic.cpp | w5292c/mcode | bb5d09c09b54d870bcc4e6a220176168d6618f60 | [
"MIT"
] | 1 | 2017-04-15T09:14:33.000Z | 2017-04-15T09:14:33.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2020 Alexander Chumakov
*
* 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
* t... | 30.430976 | 110 | 0.67526 | w5292c |
a43036417a0914982d39e989c28dae5882427f12 | 253 | cc | C++ | 13/31/31.cc | williamgherman/cpp-solutions | cf947b3b8f49fa3071fbee96f522a4228e4207b8 | [
"BSD-Source-Code"
] | 5 | 2019-08-01T07:52:27.000Z | 2022-03-27T08:09:35.000Z | 13/31/31.cc | williamgherman/cpp-solutions | cf947b3b8f49fa3071fbee96f522a4228e4207b8 | [
"BSD-Source-Code"
] | 1 | 2020-10-03T17:29:59.000Z | 2020-11-17T10:03:10.000Z | 13/31/31.cc | williamgherman/cpp-solutions | cf947b3b8f49fa3071fbee96f522a4228e4207b8 | [
"BSD-Source-Code"
] | 6 | 2019-08-24T08:55:56.000Z | 2022-02-09T08:41:44.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include "HasPtr.h"
using std::swap;
int main()
{
HasPtr a("Hello"), b("World!"), c("Goodbye");
std::vector<HasPtr> hps{a,b,c};
std::sort(hps.begin(), hps.end());
return 0;
}
| 15.8125 | 49 | 0.600791 | williamgherman |
bf9bc13732089d87feed946edf4cbdcf759af657 | 7,555 | cpp | C++ | src/fuml/src_gen/fUML/impl/ValueImpl.cpp | MichaelBranz/MDE4CPP | 5b918850a37e9cee54f6c3b92f381b0458451724 | [
"MIT"
] | null | null | null | src/fuml/src_gen/fUML/impl/ValueImpl.cpp | MichaelBranz/MDE4CPP | 5b918850a37e9cee54f6c3b92f381b0458451724 | [
"MIT"
] | 1 | 2019-03-01T00:54:13.000Z | 2019-03-04T02:15:50.000Z | src/fuml/src_gen/fUML/impl/ValueImpl.cpp | vallesch/MDE4CPP | 7f8a01dd6642820913b2214d255bef2ea76be309 | [
"MIT"
] | null | null | null | #include "fUML/impl/ValueImpl.hpp"
#ifdef NDEBUG
#define DEBUG_MESSAGE(a) /**/
#else
#define DEBUG_MESSAGE(a) a
#endif
#ifdef ACTIVITY_DEBUG_ON
#define ACT_DEBUG(a) a
#else
#define ACT_DEBUG(a) /**/
#endif
//#include "util/ProfileCallCount.hpp"
#include <cassert>
#include <iostream>
#include <sstream>
#... | 24.609121 | 234 | 0.617207 | MichaelBranz |
bf9c3244794c75dce20a9630a31ab3cdb0c460c0 | 1,978 | cpp | C++ | tests/test_Reflection_Spectrum.cpp | temken/DaMaSCUS-SUN | 6dc10d7e707c20bb1d5aea58249515b00e225b58 | [
"MIT"
] | 4 | 2021-02-26T10:30:36.000Z | 2021-03-17T01:49:18.000Z | tests/test_Reflection_Spectrum.cpp | temken/DaMaSCUS-SUN | 6dc10d7e707c20bb1d5aea58249515b00e225b58 | [
"MIT"
] | 7 | 2021-02-09T16:32:05.000Z | 2022-02-03T09:20:08.000Z | tests/test_Reflection_Spectrum.cpp | temken/DaMaSCUS-SUN | 6dc10d7e707c20bb1d5aea58249515b00e225b58 | [
"MIT"
] | 1 | 2022-01-03T03:54:24.000Z | 2022-01-03T03:54:24.000Z | #include "Reflection_Spectrum.hpp"
#include "gtest/gtest.h"
#include <mpi.h>
#include "libphysica/Integration.hpp"
#include "libphysica/Natural_Units.hpp"
#include "obscura/DM_Halo_Models.hpp"
#include "obscura/DM_Particle_Standard.hpp"
using namespace DaMaSCUS_SUN;
using namespace libphysica::natural_units;
int m... | 27.09589 | 110 | 0.747725 | temken |
bf9ebce3a48163c0b6c517e39a9b67d59e11fe6c | 4,913 | cpp | C++ | Components/Camera.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | Components/Camera.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | Components/Camera.cpp | raulgonzalezupc/FirstAssigment | 9193de31049922787da966695340253d84439bf3 | [
"MIT"
] | null | null | null | #include "Camera.h"
#include "../GameObject.h"
#include "Component.h"
#include "../Application.h"
#include "../ModuleRender.h"
#include "../ModuleWindow.h"
#include "../ModuleCamera.h"
#include "../ModuleScene.h"
#include "../ModuleProgram.h"
#include "../ModuleModelLoader.h"
#include <math.h>
#include "../imgui/imgui.... | 24.688442 | 125 | 0.718095 | raulgonzalezupc |
bf9f398f8966a85086a2095312c25886bb8197a2 | 59,794 | hh | C++ | src/Mesh.hh | nmaxwell/OpenMesh-Python | daa461069decb459f990bfcc1131c55a2db7b5e5 | [
"BSD-3-Clause"
] | 9 | 2019-09-16T10:03:37.000Z | 2022-02-03T17:56:24.000Z | src/Mesh.hh | Jiawei1996/OpenMesh-Python | daa461069decb459f990bfcc1131c55a2db7b5e5 | [
"BSD-3-Clause"
] | null | null | null | src/Mesh.hh | Jiawei1996/OpenMesh-Python | daa461069decb459f990bfcc1131c55a2db7b5e5 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T15:23:59.000Z | 2020-04-13T15:23:59.000Z | #ifndef OPENMESH_PYTHON_MESH_HH
#define OPENMESH_PYTHON_MESH_HH
#include "Utilities.hh"
#include "MeshTypes.hh"
#include "Iterator.hh"
#include "Circulator.hh"
#include <algorithm>
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>
namespace py = pybind11;
namespace OM = OpenMesh;
... | 42.108451 | 161 | 0.674014 | nmaxwell |
bfa1e8340a88e16c329ca86b20a67fd6a41bd1d0 | 845 | hpp | C++ | libs/utils/include/suil/utils/uuid.hpp | suilteam/spark-xy | d07dc98c12c8842af0f11bf27d59161cb80f99b0 | [
"MIT"
] | null | null | null | libs/utils/include/suil/utils/uuid.hpp | suilteam/spark-xy | d07dc98c12c8842af0f11bf27d59161cb80f99b0 | [
"MIT"
] | null | null | null | libs/utils/include/suil/utils/uuid.hpp | suilteam/spark-xy | d07dc98c12c8842af0f11bf27d59161cb80f99b0 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2022 Suilteam, Carter Mbotho
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*
* @author Carter
* @date 2022-03-12
*/
#pragma once
#include <cstdint>
#include <string>
namespace suil {
struct ... | 23.472222 | 74 | 0.564497 | suilteam |
bfa5cf0febca4df39ca6f4f7a29f86bd440c2c80 | 42,743 | cpp | C++ | utils/license_to_header.cpp | ZopharShinta/SegsEngine | 86d52c5b805e05e107594efd3358cabd694365f0 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | utils/license_to_header.cpp | ZopharShinta/SegsEngine | 86d52c5b805e05e107594efd3358cabd694365f0 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | utils/license_to_header.cpp | ZopharShinta/SegsEngine | 86d52c5b805e05e107594efd3358cabd694365f0 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | #include <QtCore/QFile>
#include <QtCore/QString>
#include <QFileInfo>
#include <QStringList>
#include <QHash>
#include <QCryptographicHash>
#include <QTextStream>
#include <QDebug>
#include <QSet>
#include <QJsonDocument>
#include <QMap>
#include <QDirIterator>
#include <QRegularExpression>
#include <QtCore/QCoreAppli... | 33.735596 | 194 | 0.564092 | ZopharShinta |
bfa6e8d9093c3196f4da3168a70e6307077600ba | 7,226 | cpp | C++ | smart-ptrs/unique_advanced/test.cpp | DenisOstashov/cpp-advanced-hse | 6e4317763c0a9c510d639ae1e5793a8e9549d953 | [
"MIT"
] | null | null | null | smart-ptrs/unique_advanced/test.cpp | DenisOstashov/cpp-advanced-hse | 6e4317763c0a9c510d639ae1e5793a8e9549d953 | [
"MIT"
] | null | null | null | smart-ptrs/unique_advanced/test.cpp | DenisOstashov/cpp-advanced-hse | 6e4317763c0a9c510d639ae1e5793a8e9549d953 | [
"MIT"
] | null | null | null | #include "../unique.h"
#include "deleters.h"
#include "../my_int.h"
#include <catch.hpp>
#include <tuple>
TEST_CASE("Construction with deleters") {
SECTION("From copyable deleter") {
const CopyableDeleter<MyInt> cd;
UniquePtr<MyInt, CopyableDeleter<MyInt>> s(new MyInt, cd);
}
SECTION("Fr... | 26.962687 | 88 | 0.562137 | DenisOstashov |
bfa92077cc14ec83225cb95b353196d81c49d6ad | 20,655 | cpp | C++ | source/GTest/FX/Fx.cpp | paradoxnj/Genesis3D | 272fc6aa2580de4ee223274ea04a101199c535a1 | [
"Condor-1.1",
"Unlicense"
] | 3 | 2020-04-29T03:17:50.000Z | 2021-05-26T19:53:46.000Z | source/GTest/FX/Fx.cpp | paradoxnj/Genesis3D | 272fc6aa2580de4ee223274ea04a101199c535a1 | [
"Condor-1.1",
"Unlicense"
] | 1 | 2020-04-29T03:12:47.000Z | 2020-04-29T03:12:47.000Z | source/GTest/FX/Fx.cpp | paradoxnj/Genesis3D | 272fc6aa2580de4ee223274ea04a101199c535a1 | [
"Condor-1.1",
"Unlicense"
] | null | null | null | /****************************************************************************************/
/* Fx.c */
/* */
/* Author: John Pollard ... | 29.173729 | 164 | 0.541515 | paradoxnj |
bfaae1bbde6de98b6131ebed61b9324dc20b3d91 | 52 | cpp | C++ | Graph/Common Graph Templates/cycleDetect.cpp | aminPial/Competitive-Programming-Library | c77373bf9f0dd212369a383ec3165d345f2a0cc7 | [
"MIT"
] | 4 | 2020-03-21T04:32:09.000Z | 2021-07-14T13:49:00.000Z | Graph/Common Graph Templates/cycleDetect.cpp | aminPial/Competitive-Programming-Library | c77373bf9f0dd212369a383ec3165d345f2a0cc7 | [
"MIT"
] | null | null | null | Graph/Common Graph Templates/cycleDetect.cpp | aminPial/Competitive-Programming-Library | c77373bf9f0dd212369a383ec3165d345f2a0cc7 | [
"MIT"
] | 1 | 2020-12-11T06:06:06.000Z | 2020-12-11T06:06:06.000Z | // cycle detection for directed and undirected graph | 52 | 52 | 0.826923 | aminPial |
bfac1857cac402b861fa6a09633de259ddfc12f2 | 13,324 | inl | C++ | Engine/Include/Sapphire/Maths/Space/Quaternion.inl | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | 2 | 2020-03-18T09:06:21.000Z | 2020-04-09T00:07:56.000Z | Engine/Include/Sapphire/Maths/Space/Quaternion.inl | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | null | null | null | Engine/Include/Sapphire/Maths/Space/Quaternion.inl | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | null | null | null | // Copyright 2020 Sapphire development team. All Rights Reserved.
namespace Sa
{
template <typename T>
const Quat<T> Quat<T>::Zero{ T(0), T(0), T(0), T(0) };
template <typename T>
const Quat<T> Quat<T>::Identity{ T(1), T(0), T(0), T(0) };
template <typename T>
constexpr Quat<T>::Quat(T _w, T _x, T _y, T _z) n... | 21.878489 | 143 | 0.645827 | SapphireSuite |
bfac974de42b3e3c1f3b5bc90349d2f648f20f69 | 28,880 | cpp | C++ | NULL Engine/Source/C_Animator.cpp | BarcinoLechiguino/NULL_Engine | f2abecb44bee45b7cbf2d5b53609d79d38ecc5a3 | [
"MIT"
] | 4 | 2020-11-29T12:28:31.000Z | 2021-06-08T17:32:56.000Z | NULL Engine/Source/C_Animator.cpp | BarcinoLechiguino/NULL_Engine | f2abecb44bee45b7cbf2d5b53609d79d38ecc5a3 | [
"MIT"
] | null | null | null | NULL Engine/Source/C_Animator.cpp | BarcinoLechiguino/NULL_Engine | f2abecb44bee45b7cbf2d5b53609d79d38ecc5a3 | [
"MIT"
] | 4 | 2020-11-01T17:06:32.000Z | 2021-01-09T16:58:50.000Z | #include "MathGeoLib/include/Geometry/LineSegment.h"
#include "Profiler.h"
#include "JSONParser.h"
#include "Time.h"
#include "Channel.h"
#include "AnimatorClip.h"
#include "Application.h"
#include "M_ResourceManager.h"
#include "R_Animation.h"
#include "GameObject.h"
#include "C_Transform.h"
#include "C_Animato... | 24.066667 | 163 | 0.717209 | BarcinoLechiguino |
bfb0c309a82246f243c3b88be364e76a9130da04 | 1,547 | cpp | C++ | 72.cpp | machinecc/leetcode | 32bbf6c1f9124049c046a235c85b14ca9168daa8 | [
"MIT"
] | null | null | null | 72.cpp | machinecc/leetcode | 32bbf6c1f9124049c046a235c85b14ca9168daa8 | [
"MIT"
] | null | null | null | 72.cpp | machinecc/leetcode | 32bbf6c1f9124049c046a235c85b14ca9168daa8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <string>
#include <unordered_set>
#include <vector>
#include <algorithm>
#include <climits>
#include <stack>
#include <sstream>
#include <numeric>
#include <unordered_map>
using namespace std;
class Solution {
public:
int minDistance(string word1, string word2) {
... | 19.3375 | 93 | 0.405301 | machinecc |
bfb142a1dd1886deb273bc875837356c2354d332 | 1,132 | cpp | C++ | uva/11747.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uva/11747.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uva/11747.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
#define le 10004
using namespace std;
int p[le];
struct edge{
int u, v, w;
};
bool comp(edge a, edge b){
return a.w < b.w;
}
int fnc(int a){
if(p[a] == a) return a;
p[a] = fnc(p[a]);
return p[a];
}
vector<edge> v;
vector<int> ve;
void mst(){
sort(v.begin(), v.end()... | 21.358491 | 68 | 0.437279 | cosmicray001 |
bfb245ebe64e3492f568d038fde248756b0c25f6 | 62 | cpp | C++ | libboost-proto/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | 4 | 2021-02-23T11:24:33.000Z | 2021-09-11T20:10:46.000Z | libboost-proto/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | null | null | null | libboost-proto/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | null | null | null | #include <boost/proto/proto.hpp>
int
main ()
{
return 0;
}
| 7.75 | 32 | 0.629032 | build2-packaging |
bfb8c6398e002eb181771ab525fa372dd4129c84 | 1,322 | cpp | C++ | Scripting/Source/ScriptManager.cpp | jordanlittlefair/Foundation | ab737b933ea5bbe2be76133ed78c8e882f072fd0 | [
"BSL-1.0"
] | null | null | null | Scripting/Source/ScriptManager.cpp | jordanlittlefair/Foundation | ab737b933ea5bbe2be76133ed78c8e882f072fd0 | [
"BSL-1.0"
] | null | null | null | Scripting/Source/ScriptManager.cpp | jordanlittlefair/Foundation | ab737b933ea5bbe2be76133ed78c8e882f072fd0 | [
"BSL-1.0"
] | null | null | null | #include "../Include/ScriptManager.hpp"
#include "../Include/Script.hpp"
using namespace Fnd::Scripting;
ScriptManager::ScriptManager():
_entity_system(nullptr),
_input_handler(nullptr)
{
}
void ScriptManager::AddScript( unsigned int entity_id, Script* script )
{
_entities[entity_id].entity_id = en... | 24.943396 | 130 | 0.721634 | jordanlittlefair |
bfba0c83f795186379ebfa623bfc563b934b1d63 | 388 | cpp | C++ | 2020-12-01/area.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | 2 | 2020-12-12T00:02:40.000Z | 2021-04-21T19:49:59.000Z | 2020-12-01/area.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | null | null | null | 2020-12-01/area.cpp | pufe/programa | 7f79566597446e9e39222e6c15fa636c3dd472bb | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
const double pi = 4*atan(1);
int main() {
double d = sqrt(3) - 1;
double cc = pi/12 - sin(pi/12)*cos(pi/12);
double a1 = d*d/2.0 + 4*cc;
double a3 = 8*(1/2.0 - sqrt(3)/8.0 - pi/12);
double a2 = 1-a1-a3;
double f;
while(scanf(" %lf", &f)==1) {
printf("%... | 21.555556 | 59 | 0.507732 | pufe |
bfbb5f214d1edbff97c28d8afab524374a29ea32 | 2,577 | cpp | C++ | tools/utmostcp/src/utmostcp.cpp | denis-ryzhkov/antiques | 6a67bf606c1b49cc413df26bfdf00d392b605f88 | [
"MIT"
] | null | null | null | tools/utmostcp/src/utmostcp.cpp | denis-ryzhkov/antiques | 6a67bf606c1b49cc413df26bfdf00d392b605f88 | [
"MIT"
] | null | null | null | tools/utmostcp/src/utmostcp.cpp | denis-ryzhkov/antiques | 6a67bf606c1b49cc413df26bfdf00d392b605f88 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include <io.h>
#include <string.h>
#define IN_FN argv[ 1 ]
#define OUT_FN argv[ 2 ]
#define SKIP_K argv[ 3 ]
#define INT64 __int64
int percents_c = 0;
INT64 in_size, byte_i, bads_c = 0, skip_k = 0, skip_c = 1;
int calc_percents_c() { return percents_c = ( byte_i *... | 32.620253 | 341 | 0.54676 | denis-ryzhkov |
bfbccac119a001b8a798ed189e936ad82ee7c40d | 3,329 | cpp | C++ | thirdparty/graph-tools-master/src/graphalign/KmerIndexOperations.cpp | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | 122 | 2017-01-06T16:19:31.000Z | 2022-03-08T00:05:50.000Z | thirdparty/graph-tools-master/src/graphalign/KmerIndexOperations.cpp | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | 90 | 2017-01-04T00:23:34.000Z | 2022-02-27T12:55:52.000Z | thirdparty/graph-tools-master/src/graphalign/KmerIndexOperations.cpp | AlesMaver/ExpansionHunter | 274903d26a33cfbc546aac98c85bbfe51701fd3b | [
"BSL-1.0",
"Apache-2.0"
] | 35 | 2017-03-02T13:39:58.000Z | 2022-03-30T17:34:11.000Z | //
// GraphTools library
// Copyright 2017-2019 Illumina, Inc.
// All rights reserved.
//
// Author: Egor Dolzhenko <edolzhenko@illumina.com>,
// Peter Krusche <pkrusche@illumina.com>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... | 29.201754 | 117 | 0.645539 | AlesMaver |
bfbe5bbdba6aea439903878b04d4f033b58c9ac6 | 1,395 | cpp | C++ | beringei/lib/tests/CaseUtilsTest.cpp | pidb/Gorilla | 75c3002b179d99c8709323d605e7d4b53484035c | [
"BSD-3-Clause"
] | 2,780 | 2016-12-22T19:25:26.000Z | 2018-05-21T11:29:42.000Z | beringei/lib/tests/CaseUtilsTest.cpp | pidb/Gorilla | 75c3002b179d99c8709323d605e7d4b53484035c | [
"BSD-3-Clause"
] | 57 | 2016-12-23T09:22:18.000Z | 2018-05-04T06:26:48.000Z | beringei/lib/tests/CaseUtilsTest.cpp | pidb/Gorilla | 75c3002b179d99c8709323d605e7d4b53484035c | [
"BSD-3-Clause"
] | 254 | 2016-12-22T20:53:12.000Z | 2018-05-16T06:14:10.000Z | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include <... | 23.644068 | 78 | 0.666667 | pidb |
bfcc3c02ed1648435fe862c9662a3dddf3d13db6 | 10,678 | cpp | C++ | src/NGM.cpp | monsanto-pinheiro/ngmlr | 8d7677929001d1d13c6b4593c409a52044180dca | [
"MIT"
] | 239 | 2017-01-18T15:14:34.000Z | 2022-03-09T10:44:08.000Z | src/NGM.cpp | monsanto-pinheiro/ngmlr | 8d7677929001d1d13c6b4593c409a52044180dca | [
"MIT"
] | 96 | 2017-01-13T15:03:29.000Z | 2022-02-07T14:27:18.000Z | src/NGM.cpp | monsanto-pinheiro/ngmlr | 8d7677929001d1d13c6b4593c409a52044180dca | [
"MIT"
] | 44 | 2017-03-17T20:31:08.000Z | 2021-12-02T07:27:09.000Z | /**
* Contact: philipp.rescheneder@gmail.com
*/
#include "NGM.h"
#include <memory.h>
#include <stdlib.h>
#include <limits.h>
#include "CS.h"
#include "PrefixTable.h"
#include "ReadProvider.h"
#include "PlainFileWriter.h"
#include "SAMWriter.h"
#include "Timing.h"
#include "StrippedSW.h"
#undef m... | 24.832558 | 284 | 0.648342 | monsanto-pinheiro |
bfcd50b60d6e0c74def2ebbf04a98a32b10807bf | 4,903 | cpp | C++ | src/managers/framebuffer_manager.cpp | Romop5/holoinjector | db11922e6c57b4664beeec31199385a4877e1619 | [
"MIT"
] | 2 | 2021-04-12T06:09:57.000Z | 2021-05-20T11:56:01.000Z | src/managers/framebuffer_manager.cpp | Romop5/holoinjector | db11922e6c57b4664beeec31199385a4877e1619 | [
"MIT"
] | null | null | null | src/managers/framebuffer_manager.cpp | Romop5/holoinjector | db11922e6c57b4664beeec31199385a4877e1619 | [
"MIT"
] | null | null | null | /*****************************************************************************
*
* PROJECT: HoloInjector - https://github.com/Romop5/holoinjector
* LICENSE: See LICENSE in the top level directory
* FILE: managers/framebuffer_manager.cpp
*
***************************************************************... | 38.606299 | 146 | 0.607995 | Romop5 |
bfcda35f798d306b4537f7d1f1b501ff1af5a884 | 433 | cpp | C++ | test/Vec3Tests.cpp | craft-coder/Softwareentwicklung-2021 | 6c9cf6201b333796a058394c017c8b3e72a3f631 | [
"MIT"
] | null | null | null | test/Vec3Tests.cpp | craft-coder/Softwareentwicklung-2021 | 6c9cf6201b333796a058394c017c8b3e72a3f631 | [
"MIT"
] | null | null | null | test/Vec3Tests.cpp | craft-coder/Softwareentwicklung-2021 | 6c9cf6201b333796a058394c017c8b3e72a3f631 | [
"MIT"
] | 4 | 2021-04-21T13:19:13.000Z | 2021-12-18T20:19:16.000Z | #include "gtest/gtest.h"
#include "Vec3.h"
TEST(Vec3, DefaultConstructor_XisZero) {
raytracer::Vec3 vec{};
double x = vec.x();
EXPECT_NEAR(x, 0.0, 0.00001);
}
TEST(Vec3, DefaultConstructor_YisZero) {
raytracer::Vec3 vec{};
double y = vec.y();
EXPECT_NEAR(y, 0.0, 0.00001);
}
TEST(Vec3, Defau... | 18.041667 | 40 | 0.630485 | craft-coder |
bfd0133a1aaf2601faa26d94b1f7a79c3f4146ff | 72 | cpp | C++ | Algorithmns/gcd.cpp | waba359/VAULT | 5680882f76848f3df19a2f86b55eece5ae9df20f | [
"CC0-1.0"
] | 1 | 2019-12-27T04:06:31.000Z | 2019-12-27T04:06:31.000Z | Algorithmns/gcd.cpp | waba359/VAULT | 5680882f76848f3df19a2f86b55eece5ae9df20f | [
"CC0-1.0"
] | null | null | null | Algorithmns/gcd.cpp | waba359/VAULT | 5680882f76848f3df19a2f86b55eece5ae9df20f | [
"CC0-1.0"
] | null | null | null | ll gcd(ll m, ll n){
if(n == 0) return m;
return gcd(n, m%n);
}
| 14.4 | 25 | 0.472222 | waba359 |
bfd5b33b318b4966638c44135a5aa058c92d3199 | 2,586 | cpp | C++ | writesinglecoildialog.cpp | tonylin0826/ModbusMasterTool | d751126ac4937838660f2684e16c7c04d66481d8 | [
"MIT"
] | null | null | null | writesinglecoildialog.cpp | tonylin0826/ModbusMasterTool | d751126ac4937838660f2684e16c7c04d66481d8 | [
"MIT"
] | null | null | null | writesinglecoildialog.cpp | tonylin0826/ModbusMasterTool | d751126ac4937838660f2684e16c7c04d66481d8 | [
"MIT"
] | null | null | null | #include "writesinglecoildialog.hpp"
#include <QIntValidator>
#include "mainwindow.hpp"
#include "ui_writesinglecoildialog.h"
WriteSingleCoilDialog::WriteSingleCoilDialog(QWidget *parent, quint16 startingAddress)
: QDialog(parent), _ui(new Ui::WriteSingleCoilDialog), _onOffGroup(new QButtonGroup(this)) {
_setu... | 31.925926 | 117 | 0.686775 | tonylin0826 |
bfdd440d5a33f15bffd244b332ee184245e3573f | 1,884 | cpp | C++ | node_modules/nodeimu/RTIMULib2/RTHost/RTIMULibGL/QtGLLib/QtGLPlaneComponent.cpp | RGUCode/pi-sensor | c5219abc3a7557c44bce4f7f8f909fffa00ef071 | [
"MIT"
] | null | null | null | node_modules/nodeimu/RTIMULib2/RTHost/RTIMULibGL/QtGLLib/QtGLPlaneComponent.cpp | RGUCode/pi-sensor | c5219abc3a7557c44bce4f7f8f909fffa00ef071 | [
"MIT"
] | 1 | 2020-07-16T19:00:53.000Z | 2020-07-16T19:00:53.000Z | node_modules/nodeimu/RTIMULib2/RTHost/RTIMULibGL/QtGLLib/QtGLPlaneComponent.cpp | RGUCode/pi-sensor | c5219abc3a7557c44bce4f7f8f909fffa00ef071 | [
"MIT"
] | 1 | 2019-03-23T10:00:55.000Z | 2019-03-23T10:00:55.000Z | ////////////////////////////////////////////////////////////////////////////
//
// This file is part of RTIMULib
//
// Copyright (c) 2014, richards-tech
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), ... | 36.941176 | 104 | 0.657113 | RGUCode |
bfde6ea67dba61936ee0963ed6f96a32c9adbf84 | 1,241 | cpp | C++ | CPP, C++ Solutions/64. Minimum Path Sum.cpp | arpitkekri/My-Leetcode-Solution-In-CPP | 345f1c53c627fce33ee84672c5d3661863367040 | [
"MIT"
] | 4 | 2021-06-21T04:32:12.000Z | 2021-11-02T04:20:36.000Z | CPP, C++ Solutions/64. Minimum Path Sum.cpp | arpitkekri/My-Leetcode-Solution-In-CPP | 345f1c53c627fce33ee84672c5d3661863367040 | [
"MIT"
] | null | null | null | CPP, C++ Solutions/64. Minimum Path Sum.cpp | arpitkekri/My-Leetcode-Solution-In-CPP | 345f1c53c627fce33ee84672c5d3661863367040 | [
"MIT"
] | 2 | 2021-08-19T11:27:18.000Z | 2021-09-26T14:51:30.000Z | /*********** Method-1(TC - O(NM), SC - O(NM)) **************************************
class Solution {
public:
int minPathSum(vector<vector<int>>& grid) {
int m = grid.size();
int n = grid[0].size();
vector<vector<int>> dp(m+1, vector<int>(n+1, INT_MAX));
for(int i = m-1; i >= 0; i--)... | 30.268293 | 90 | 0.33199 | arpitkekri |
bfe3422c9f0d9f28a4a0468c73ae125920403fe9 | 4,273 | cpp | C++ | Samples/Unicode/cppwinrt/Scenario1_FindId.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,504 | 2019-05-07T06:56:42.000Z | 2022-03-31T19:37:59.000Z | Samples/Unicode/cppwinrt/Scenario1_FindId.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 314 | 2019-05-08T16:56:30.000Z | 2022-03-21T07:13:45.000Z | Samples/Unicode/cppwinrt/Scenario1_FindId.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,219 | 2019-05-07T00:47:26.000Z | 2022-03-30T21:12:31.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 34.739837 | 113 | 0.532179 | dujianxin |
bfefb2d820718c89ee8b6674b9b43b9655a2308c | 12,264 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/svl/detail/graphics_impl.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/svl/detail/graphics_impl.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/svl/detail/graphics_impl.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null |
namespace svl {
namespace graphics
{
pen::pen(color colour)
: pen_( win32::create_pen(PS_SOLID, 1, win32::rgb_from_color(colour) ))
{}
pen::pen(color colour, unsigned width)
: pen_( win32::create_pen(PS_SOLID, static_cast<int>(width), win32::rgb_from_color(colour) ))
{}
pen::pen(pen const& other)
: pen_( ... | 23.584615 | 124 | 0.595401 | yklishevich |
bff0487727502bcf7237bc13320e3f364972bf26 | 23,065 | cpp | C++ | sources/libcpp83gts_callback_and_action/cb_trace_files.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 61 | 2016-03-26T03:04:43.000Z | 2021-09-17T02:11:18.000Z | sources/libcpp83gts_callback_and_action/cb_trace_files.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 92 | 2016-04-10T23:40:22.000Z | 2022-03-11T21:49:12.000Z | sources/libcpp83gts_callback_and_action/cb_trace_files.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 18 | 2016-03-26T11:19:14.000Z | 2021-08-07T00:26:02.000Z | #include <cstdio> // std::rename(-)
#include <iostream> // std::cout
#include <sstream> // std::ostringstream
#include <iomanip> // std::setfill(-) ,std::setw(-)
#include <FL/fl_ask.H> // fl_alert(-) fl_input(-)
#include "pri.h"
#include "ptbl_returncode.h"
#include "osapi_exist.h"
#ifdef _WIN32
#include "osapi_mbs_wc... | 26.481056 | 107 | 0.672491 | Savraska2 |
bff0b638a70ed3f6bb03a3738ba01db2d1f2880f | 997 | hpp | C++ | SFND_Camera/SFND_3D_Object_Tracking/src/lidarData.hpp | KU-AIRS-SPARK/Udacity_Sensor_Fusion_Nanodegree | 2c6d26bee670abe2c63034d26556f99f6d77925b | [
"MIT"
] | 18 | 2020-11-12T07:13:57.000Z | 2022-03-12T18:42:13.000Z | SFND_Camera/SFND_3D_Object_Tracking/src/lidarData.hpp | KU-AIRS-SPARK/Udacity_Sensor_Fusion_Nanodegree | 2c6d26bee670abe2c63034d26556f99f6d77925b | [
"MIT"
] | null | null | null | SFND_Camera/SFND_3D_Object_Tracking/src/lidarData.hpp | KU-AIRS-SPARK/Udacity_Sensor_Fusion_Nanodegree | 2c6d26bee670abe2c63034d26556f99f6d77925b | [
"MIT"
] | 16 | 2020-09-29T05:27:32.000Z | 2021-11-02T18:26:53.000Z |
#ifndef lidarData_hpp
#define lidarData_hpp
#include <stdio.h>
#include <fstream>
#include <string>
#include "dataStructures.h"
void cropLidarPoints(std::vector<LidarPoint>& lidarPoints,
float minX,
float maxX,
float maxY,
float min... | 31.15625 | 62 | 0.500502 | KU-AIRS-SPARK |
bff6da18a7255440fb3e7e0f1640ff19936cbfc5 | 2,261 | cpp | C++ | src/termui/terminal_mode.cpp | numerodix/bmon-cpp | fae0613776b879a33e327f9ccf1d3819383634dd | [
"MIT"
] | 1 | 2020-07-31T01:34:47.000Z | 2020-07-31T01:34:47.000Z | src/termui/terminal_mode.cpp | numerodix/bmon-cpp | fae0613776b879a33e327f9ccf1d3819383634dd | [
"MIT"
] | null | null | null | src/termui/terminal_mode.cpp | numerodix/bmon-cpp | fae0613776b879a33e327f9ccf1d3819383634dd | [
"MIT"
] | null | null | null | #include <stdexcept>
#include <unistd.h>
#include "except.hpp"
#include "signals.hpp"
#include "terminal_mode.hpp"
namespace bandwit {
namespace termui {
void TerminalModeSetter::set() {
SignalGuard guard{signal_suspender_};
struct termios tm {};
if (tcgetattr(STDIN_FILENO, &tm) < 0) {
THROW_CE... | 28.2625 | 78 | 0.637771 | numerodix |
bffaab10eb745e8831e5ff7e1563d01e08fe9cb4 | 621 | cpp | C++ | test/structure_size.cpp | vhapiak/meta_info_lib | 677984960028c6ef0f2b462c2f6ae8ac7fc714ea | [
"MIT"
] | null | null | null | test/structure_size.cpp | vhapiak/meta_info_lib | 677984960028c6ef0f2b462c2f6ae8ac7fc714ea | [
"MIT"
] | null | null | null | test/structure_size.cpp | vhapiak/meta_info_lib | 677984960028c6ef0f2b462c2f6ae8ac7fc714ea | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "mil/mil.hpp"
struct normal {
int i;
double d;
};
struct extended {
MIL_BEGIN(extended);
MIL_DEFINE_FIELD(int, i);
MIL_DEFINE_FIELD(double, d);
MIL_END;
};
TEST(structure_size, size) {
EXPECT_EQ(sizeof(normal), sizeof(extended));
}
struct inheritance : ... | 18.264706 | 79 | 0.703704 | vhapiak |
bffbe676ba7bd90706842145f2446d111a05d93e | 1,631 | cpp | C++ | leetcode/331_Verify_Preorder_Serialization_of_a_Binary_Tree.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | leetcode/331_Verify_Preorder_Serialization_of_a_Binary_Tree.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | leetcode/331_Verify_Preorder_Serialization_of_a_Binary_Tree.cpp | longztian/cpp | 59203f41162f40a46badf69093d287250e5cbab6 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isValidSerialization(string preorder) {
if (preorder.size() < 5) return preorder == "#";
stack<pair<bool, bool>> validNodes;
validNodes.push({true, false}); // dummy root with a dummy left child
auto pb = preorder.data(), pe = pb;
const auto P... | 28.12069 | 98 | 0.486205 | longztian |
bffc306886feb649c5b00d30488295f23445dbd8 | 124 | cpp | C++ | epyks.cpp | whyamiroot/epyks | 45d5cde06f60110a3b3b78c189d5aeb634345593 | [
"MIT"
] | null | null | null | epyks.cpp | whyamiroot/epyks | 45d5cde06f60110a3b3b78c189d5aeb634345593 | [
"MIT"
] | null | null | null | epyks.cpp | whyamiroot/epyks | 45d5cde06f60110a3b3b78c189d5aeb634345593 | [
"MIT"
] | null | null | null | #include "epyks.h"
void encode(unsigned char* data, size_t size)
{
}
void decode(unsigned char* data, size_t size)
{
}
| 9.538462 | 45 | 0.685484 | whyamiroot |
87052cacedf3f9923dfa0202beb08fdb352c21ba | 598 | cpp | C++ | BorisEngine2/DigitSprite.cpp | Rariolu/BorisEngine2 | d98d348a85a91ed09a8e1e48dc06b26f20b6f8f7 | [
"MIT"
] | 1 | 2019-11-16T13:23:03.000Z | 2019-11-16T13:23:03.000Z | BorisEngine2/DigitSprite.cpp | chocorho/BorisEngine2 | d98d348a85a91ed09a8e1e48dc06b26f20b6f8f7 | [
"MIT"
] | 2 | 2021-05-24T23:21:49.000Z | 2021-05-26T20:41:03.000Z | BorisEngine2/DigitSprite.cpp | chocorho/BorisEngine2 | d98d348a85a91ed09a8e1e48dc06b26f20b6f8f7 | [
"MIT"
] | 1 | 2021-05-24T22:52:31.000Z | 2021-05-24T22:52:31.000Z | #include "DigitSprite.h"
DigitSprite::DigitSprite(Font* font) : Sprite(texturemanager->AddTexture("digitSprite_0",font->CreateTextTexture("0",SOLID)))
{
digitFont = font;
}
DigitSprite::~DigitSprite()
{
}
int DigitSprite::GetDisplayNumber()
{
return displayNumber;
}
void DigitSprite::SetDisplayNumber(int num)
{
... | 19.290323 | 125 | 0.712375 | Rariolu |
87061140c4d88ae47bd8c416a8209f37492bb54e | 4,000 | hpp | C++ | components/scream/src/share/field/field_header.hpp | ashlynrlee/scream | 3d58c32340058368bee0cb2b02457c4723fb18db | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/scream/src/share/field/field_header.hpp | ashlynrlee/scream | 3d58c32340058368bee0cb2b02457c4723fb18db | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | components/scream/src/share/field/field_header.hpp | ashlynrlee/scream | 3d58c32340058368bee0cb2b02457c4723fb18db | [
"FTL",
"zlib-acknowledgement",
"RSA-MD"
] | null | null | null | #ifndef SCREAM_FIELD_HEADER_HPP
#define SCREAM_FIELD_HEADER_HPP
#include "share/field/field_identifier.hpp"
#include "share/field/field_tracking.hpp"
#include "share/field/field_alloc_prop.hpp"
#include "share/scream_types.hpp"
#include "share/util/scream_time_stamp.hpp"
#include "ekat/std_meta/ekat_std_any.hpp"
#inc... | 32.786885 | 88 | 0.706 | ashlynrlee |
87078da0692935a4d1f393f17499b89674a80efb | 29,477 | cpp | C++ | gmm-dpct/gaussian_kernel.dp.cpp | jchlanda/oneAPI-DirectProgramming | 82a1be635f89b4b2a83e36965a60b19fd71e46b2 | [
"BSD-3-Clause"
] | null | null | null | gmm-dpct/gaussian_kernel.dp.cpp | jchlanda/oneAPI-DirectProgramming | 82a1be635f89b4b2a83e36965a60b19fd71e46b2 | [
"BSD-3-Clause"
] | null | null | null | gmm-dpct/gaussian_kernel.dp.cpp | jchlanda/oneAPI-DirectProgramming | 82a1be635f89b4b2a83e36965a60b19fd71e46b2 | [
"BSD-3-Clause"
] | null | null | null | /*
* CUDA Kernels for Expectation Maximization with Gaussian Mixture Models
*
* Author: Andrew Pangborn
*
* Department of Computer Engineering
* Rochester Institute of Technology
*/
#ifndef _TEMPLATE_KERNEL_H_
#define _TEMPLATE_KERNEL_H_
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include "gaussian.h"
... | 35.217443 | 129 | 0.585982 | jchlanda |
87081461e53cd42fa90373d68e2886e31cb176fb | 1,964 | cpp | C++ | ddynamic_reconfigure/test/dd_param/test_dd_double.cpp | manomitbal/realsense-ros | 35a6f59fdfef460bc1e9f225e1a15547e2934175 | [
"Apache-2.0"
] | 45 | 2020-03-13T00:00:36.000Z | 2021-12-14T14:12:12.000Z | ddynamic_reconfigure/test/dd_param/test_dd_double.cpp | manomitbal/realsense-ros | 35a6f59fdfef460bc1e9f225e1a15547e2934175 | [
"Apache-2.0"
] | 4 | 2021-06-08T22:12:54.000Z | 2022-03-12T00:44:32.000Z | ddynamic_reconfigure/test/dd_param/test_dd_double.cpp | manomitbal/realsense-ros | 35a6f59fdfef460bc1e9f225e1a15547e2934175 | [
"Apache-2.0"
] | 7 | 2020-03-06T05:10:41.000Z | 2021-12-14T04:38:00.000Z | #include <ros/ros.h>
#include <gtest/gtest.h>
#include <ddynamic_reconfigure/param/dd_double_param.h>
namespace ddynamic_reconfigure {
/**
* @brief preliminary test which makes sure we can use the object.
*/
TEST(DDDoubleTest, constructorTest) { // NOLINT(cert-err58-cpp,modernize-use-equals-delete)
... | 32.196721 | 117 | 0.625255 | manomitbal |
87090155798e02849440b7df1a3fa33529136b2a | 269 | hpp | C++ | src/typetraits/EnableIf.hpp | jmitchell24/cpp-utility-lib | 76e7bae9f07b741c409a282604a999ab86fc0702 | [
"Apache-2.0"
] | null | null | null | src/typetraits/EnableIf.hpp | jmitchell24/cpp-utility-lib | 76e7bae9f07b741c409a282604a999ab86fc0702 | [
"Apache-2.0"
] | null | null | null | src/typetraits/EnableIf.hpp | jmitchell24/cpp-utility-lib | 76e7bae9f07b741c409a282604a999ab86fc0702 | [
"Apache-2.0"
] | null | null | null | // Copyright 2013, James Mitchell, All rights reserved.
#pragma once
#include "Types.hpp"
namespace util
{
template<bool, typename _Tp = void> struct enable_if { };
template<typename T> struct enable_if<true, T> { DEFINE_TYPE(T) };
}
| 22.416667 | 85 | 0.639405 | jmitchell24 |
8710a8fd5e0fbcff499b7a3a4eb52546c6d56649 | 3,331 | hpp | C++ | include/codegen/include/UnityEngine/XR/InputTracking_TrackingStateEventType.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/XR/InputTracking_TrackingStateEventType.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/XR/InputTracking_TrackingStateEventType.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:39 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.Enum
#include "System/Enum.hpp"
// Including type: UnityEngine.XR.InputTracking
#... | 62.849057 | 137 | 0.783248 | Futuremappermydud |
87163c9a64bfe7a68cf6b6a346a3343bf9c8d1de | 1,600 | cpp | C++ | HDUOJ/2110/generating_function.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | HDUOJ/2110/generating_function.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/2110/generating_function.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#define SIZE 10001
using namespace std;
typedef struct _Prop
{
int value;
int num;
} prop;
prop arr[SIZE];
int c1[SIZE], c2[SIZE];
const int mod = 10000;
int... | 21.621622 | 83 | 0.3925 | codgician |
8716e23fdac924e63170d4c0a2c1618179b694c0 | 1,100 | cpp | C++ | cpp/20209.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/20209.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/20209.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
struct State {
vector<int> v;
State(int n) : v(n) {}
int operator() () {
int ret = 0;
for (auto& i : v) ret = ret * 5 + i;
return ret;
}
bool Check() {
for (auto& i : v) if (i != v[0]) return 0;
return 1;
}
voi... | 22.916667 | 66 | 0.490909 | jinhan814 |
871831b48c69ee39c50d0046a02517f1f5fe94b0 | 748 | hpp | C++ | engine/util/WindGenerator.hpp | isonil/survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2017-05-12T10:12:41.000Z | 2017-05-12T10:12:41.000Z | engine/util/WindGenerator.hpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | null | null | null | engine/util/WindGenerator.hpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2019-01-09T04:05:36.000Z | 2019-01-09T04:05:36.000Z | #ifndef ENGINE_WIND_GENERATOR_HPP
#define ENGINE_WIND_GENERATOR_HPP
#include "Vec2.hpp"
#include "Vec3.hpp"
namespace engine
{
class WindGenerator
{
public:
WindGenerator(float strength, float regularity);
float getStrength() const;
void setStrength(float strength);
float getRegularity() const;
... | 20.216216 | 59 | 0.735294 | isonil |
8719cf93353ea539a3162d3ff80b5b06f5f6013b | 1,553 | hpp | C++ | drivers/CoreVideo/include/CoreVideo.hpp | MMyster/LekaOS | 4d7fbfe83fd222eb0fb33f1f4a3fbbdc50b25ddb | [
"Apache-2.0"
] | null | null | null | drivers/CoreVideo/include/CoreVideo.hpp | MMyster/LekaOS | 4d7fbfe83fd222eb0fb33f1f4a3fbbdc50b25ddb | [
"Apache-2.0"
] | null | null | null | drivers/CoreVideo/include/CoreVideo.hpp | MMyster/LekaOS | 4d7fbfe83fd222eb0fb33f1f4a3fbbdc50b25ddb | [
"Apache-2.0"
] | null | null | null | // Leka - LekaOS
// Copyright 2021 APF France handicap
// SPDX-License-Identifier: Apache-2.0
#ifndef _LEKA_OS_DRIVER_CORE_VIDEO_H_
#define _LEKA_OS_DRIVER_CORE_VIDEO_H_
#include "CoreSTM32HalBase.h"
#include "interface/DMA2D.hpp"
#include "interface/DSI.hpp"
#include "interface/Font.hpp"
#include "interface/Graphics... | 28.236364 | 111 | 0.768835 | MMyster |
26bb028f4fa7e6b5a52a3612176d82174ab1587a | 310 | cpp | C++ | Src/TabelaDeSimbolos/Teste/Teste.cpp | pedrol3001/Compiler | 3e68304bb35b8e4f3f4e17030ae8c6c10da0bcb4 | [
"MIT"
] | 1 | 2022-03-01T16:57:32.000Z | 2022-03-01T16:57:32.000Z | Src/TabelaDeSimbolos/Teste/Teste.cpp | pedrol3001/Compiler | 3e68304bb35b8e4f3f4e17030ae8c6c10da0bcb4 | [
"MIT"
] | null | null | null | Src/TabelaDeSimbolos/Teste/Teste.cpp | pedrol3001/Compiler | 3e68304bb35b8e4f3f4e17030ae8c6c10da0bcb4 | [
"MIT"
] | 1 | 2022-03-23T18:35:12.000Z | 2022-03-23T18:35:12.000Z | #include "Teste.h"
#include <string>
using namespace std;
StrAtt::StrAtt(string _str, long long int _linha, long long int _coluna, long long int _posicao) :
Atributo("StrAtt"), str(_str),linha(_linha),coluna(_coluna),posicao(_posicao) {}
NameAtt::NameAtt(string _str) : Atributo("NameAtt"), str(_str) {}
| 28.181818 | 99 | 0.725806 | pedrol3001 |
26bc3aff8d23a92d56377a94beb2252256a9cf07 | 7,290 | cpp | C++ | src/Microsoft.DotNet.Wpf/src/System.Printing/CPP/src/PrintSystemAttributeValueFactory.cpp | reyqn/wpf | 6858a87af432aae629e28970a14c3560bef4f349 | [
"MIT"
] | 1 | 2020-01-11T12:53:52.000Z | 2020-01-11T12:53:52.000Z | src/Microsoft.DotNet.Wpf/src/System.Printing/CPP/src/PrintSystemAttributeValueFactory.cpp | reyqn/wpf | 6858a87af432aae629e28970a14c3560bef4f349 | [
"MIT"
] | null | null | null | src/Microsoft.DotNet.Wpf/src/System.Printing/CPP/src/PrintSystemAttributeValueFactory.cpp | reyqn/wpf | 6858a87af432aae629e28970a14c3560bef4f349 | [
"MIT"
] | 1 | 2021-05-05T12:05:28.000Z | 2021-05-05T12:05:28.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "win32inc.hpp"
using namespace System;
using namespace System::IO;
using namespace System::Collect... | 22.639752 | 90 | 0.593141 | reyqn |
26be764d9a47683a99f73033ecfaeb1b2023ec1f | 253 | cc | C++ | src/remain.cc | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | src/remain.cc | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | src/remain.cc | xet7/JadeLib | f1b2d7d9179904103baf70c29b5029500fb55bf9 | [
"MIT"
] | null | null | null | #include "include/jade.hpp"
FUNCTION STRING REMAIN$ (STRING src, STRING match) DO
STRING tmpStr;
INTEGER pos;
pos = src.find(match);
IF (pos >= 0) THEN
tmpStr = src.substr(pos,src.size());
END
RETURN tmpStr;
END
| 15.8125 | 53 | 0.604743 | xet7 |
26c01fac9c00495d500cc22b6a3fe183185c2dc4 | 468 | cpp | C++ | UnitTest/test_math.cpp | SFCMM/GridGenerator | b9fcb6e660f0d1343c8c992234e85490514942c0 | [
"BSD-3-Clause"
] | null | null | null | UnitTest/test_math.cpp | SFCMM/GridGenerator | b9fcb6e660f0d1343c8c992234e85490514942c0 | [
"BSD-3-Clause"
] | null | null | null | UnitTest/test_math.cpp | SFCMM/GridGenerator | b9fcb6e660f0d1343c8c992234e85490514942c0 | [
"BSD-3-Clause"
] | null | null | null | #include "gtest/gtest.h"
#include "math/mathfunctions.h"
TEST(MathApprox, HandlesZeroInput) {
const double eps = std::numeric_limits<double>::epsilon();
ASSERT_TRUE(approx(1.0, 1.0, eps));
ASSERT_FALSE(approx(1.0, 1.0 + eps, eps));
const float one = 1.0;
const float epsf = std::numeric_limits<float>::epsil... | 27.529412 | 60 | 0.690171 | SFCMM |
26c07a555e21348d05e8a98da5b7f76539017920 | 1,598 | cpp | C++ | Latte/Latte/RenderingContext.cpp | Morkonena/Coffee-Maker | 45d91301ef497c3a009379ec4ea3bbe18ec21808 | [
"MIT"
] | null | null | null | Latte/Latte/RenderingContext.cpp | Morkonena/Coffee-Maker | 45d91301ef497c3a009379ec4ea3bbe18ec21808 | [
"MIT"
] | null | null | null | Latte/Latte/RenderingContext.cpp | Morkonena/Coffee-Maker | 45d91301ef497c3a009379ec4ea3bbe18ec21808 | [
"MIT"
] | null | null | null | #include "RenderingContext.h"
#include "Window.h"
#include <GL\glew.h>
#include <GL\wglew.h>
#include <Log.h>
#include <thread>
using namespace Core;
#define MAX_UNBIND_TRIES 10
RenderingContext::RenderingContext()
{}
RenderingContext::RenderingContext(const Window* window, const RenderingContext* share)
{
thi... | 20.487179 | 107 | 0.732165 | Morkonena |
26c1518c05ad73b6cd8b78c31bc04883a04377ba | 890 | cpp | C++ | source/web.cpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | 1 | 2021-02-12T23:53:55.000Z | 2021-02-12T23:53:55.000Z | source/web.cpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | source/web.cpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | #define DISH2_LOG_ENABLE
#include <emscripten.h>
#include "conduit/include/uitsl/polyfill/ompi_mpi_comm_world.hpp"
#include "Empirical/include/emp/config/ArgManager.hpp"
#include "Empirical/include/emp/web/UrlParams.hpp"
#include "dish2/config/cfg.hpp"
#include "dish2/config/make_arg_specs.hpp"
#include "dish2/confi... | 23.421053 | 65 | 0.723596 | schregardusc |
26c22fb275907e1552ed3e14b095f764b6298159 | 2,341 | hh | C++ | include/memory.hh | fmatthew5876/stdcxx-align | 51cd1bd60cd3257ddc40cb4c32195e7c1f39eddd | [
"MIT"
] | 1 | 2021-06-04T13:18:13.000Z | 2021-06-04T13:18:13.000Z | include/memory.hh | fmatthew5876/stdcxx-align | 51cd1bd60cd3257ddc40cb4c32195e7c1f39eddd | [
"MIT"
] | null | null | null | include/memory.hh | fmatthew5876/stdcxx-align | 51cd1bd60cd3257ddc40cb4c32195e7c1f39eddd | [
"MIT"
] | null | null | null | #ifndef _MEMORY_HH_
#define _MEMORY_HH_
#include <cstdio>
#include <memory>
#include <type_traits>
namespace std {
template <typename T>
constexpr auto is_aligned(T x, size_t a) noexcept
-> typename std::enable_if<std::is_integral<T>::value &&!is_same<T,bool>::value, bool>::type {
return (x & (a-1)) == 0;
... | 29.632911 | 96 | 0.668518 | fmatthew5876 |
26c42b996b47698525281a1b721a154d6d7e96b0 | 1,267 | cc | C++ | examples/ui-gtk3.cc | jpcima/skeleton.lv2 | e696eb2c1c63f4fad390744d185ca230e49c59fe | [
"BSL-1.0"
] | 8 | 2019-08-22T15:17:22.000Z | 2022-02-04T04:24:28.000Z | examples/ui-gtk3.cc | jpcima/skeleton.lv2 | e696eb2c1c63f4fad390744d185ca230e49c59fe | [
"BSL-1.0"
] | 1 | 2020-05-31T10:29:09.000Z | 2020-06-01T09:57:11.000Z | examples/ui-gtk3.cc | jpcima/skeleton.lv2 | e696eb2c1c63f4fad390744d185ca230e49c59fe | [
"BSL-1.0"
] | null | null | null | #include "framework/ui.h"
#include <gtk/gtk.h>
struct UI::Impl {
static constexpr unsigned width = 600;
static constexpr unsigned height = 400;
GtkWidget *widget = nullptr;
void create_widget();
};
//==============================================================================
UI::UI(void *parent, LV2_URID_M... | 22.22807 | 85 | 0.600631 | jpcima |
26d168de38dc22e0dc1d78a81e93904099e23ae7 | 1,319 | cpp | C++ | napi/algorithms.cpp | graeme-hill/snakebot | 21059e4b5e3153ada5e74ba2e1331c10b5142b2f | [
"MIT",
"Unlicense"
] | 8 | 2018-06-26T05:42:17.000Z | 2021-10-20T23:19:20.000Z | napi/algorithms.cpp | graeme-hill/snakebot | 21059e4b5e3153ada5e74ba2e1331c10b5142b2f | [
"MIT",
"Unlicense"
] | null | null | null | napi/algorithms.cpp | graeme-hill/snakebot | 21059e4b5e3153ada5e74ba2e1331c10b5142b2f | [
"MIT",
"Unlicense"
] | 5 | 2019-06-01T15:34:07.000Z | 2022-02-12T06:10:16.000Z | #include "algorithms.hpp"
#include "algorithms/cautious.hpp"
#include "algorithms/hungry.hpp"
#include "algorithms/terminator.hpp"
#include "algorithms/dog.hpp"
#include "algorithms/sim.hpp"
#include "algorithms/inyourface.hpp"
#include "algorithms/random.hpp"
#include "algorithms/onedirection.hpp"
Algorithms Algorith... | 35.648649 | 89 | 0.715694 | graeme-hill |
26d8f5fb3168d29084c4645ed4e692d72ea13e7f | 1,759 | cpp | C++ | src/framework/suites.cpp | getweasel/weasel-cpp | 871e7790edb791b76a62ef3554b3330f1eb3d1f9 | [
"Apache-2.0"
] | 8 | 2021-01-02T11:41:31.000Z | 2021-04-15T07:05:54.000Z | src/framework/suites.cpp | getweasel/weasel-cpp | 871e7790edb791b76a62ef3554b3330f1eb3d1f9 | [
"Apache-2.0"
] | 17 | 2021-01-08T06:52:51.000Z | 2021-04-18T20:00:28.000Z | src/framework/suites.cpp | getweasel/weasel-cpp | 871e7790edb791b76a62ef3554b3330f1eb3d1f9 | [
"Apache-2.0"
] | 1 | 2021-04-16T10:30:23.000Z | 2021-04-16T10:30:23.000Z | // Copyright 2021 Touca, Inc. Subject to Apache-2.0 License.
#include "touca/framework/suites.hpp"
#include <algorithm>
#include <fstream>
#include "touca/devkit/platform.hpp"
namespace touca {
namespace framework {
RemoteSuite::RemoteSuite(const Options& options) : Suite(), _options(options) {}
void RemoteSuite:... | 25.492754 | 80 | 0.633314 | getweasel |
26d907f758509cc2a75e820b8e5d8dcbe26968a5 | 13,389 | cpp | C++ | lib/rendercore_vulkan_rt/vulkan_gl_texture_interop.cpp | vincevannoort/lighthouse2 | 31c76490e01ccdcd01766ea046d66687375c04da | [
"Apache-2.0"
] | 691 | 2019-07-10T13:46:05.000Z | 2022-03-31T05:31:56.000Z | lib/rendercore_vulkan_rt/vulkan_gl_texture_interop.cpp | vincevannoort/lighthouse2 | 31c76490e01ccdcd01766ea046d66687375c04da | [
"Apache-2.0"
] | 20 | 2019-07-11T08:16:48.000Z | 2022-02-21T17:59:28.000Z | lib/rendercore_vulkan_rt/vulkan_gl_texture_interop.cpp | vincevannoort/lighthouse2 | 31c76490e01ccdcd01766ea046d66687375c04da | [
"Apache-2.0"
] | 83 | 2019-07-11T09:55:24.000Z | 2022-03-30T03:04:01.000Z | /* vulkan_gl_texture_interop.cpp - Copyright 2019/2020 Utrecht University
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... | 40.696049 | 213 | 0.79528 | vincevannoort |
26d97328bfba1b176f4aa7358df5db6d1a413591 | 755 | cpp | C++ | test/heap_test.cpp | FrezCirno/TinySTL | f5a4d310ada5c9ffc84798162add719ad6fa7b20 | [
"MIT"
] | 1 | 2021-05-12T13:24:21.000Z | 2021-05-12T13:24:21.000Z | test/heap_test.cpp | FrezCirno/tinySTL | f5a4d310ada5c9ffc84798162add719ad6fa7b20 | [
"MIT"
] | 1 | 2020-04-29T10:01:18.000Z | 2020-05-01T08:47:27.000Z | test/heap_test.cpp | FrezCirno/tinySTL | f5a4d310ada5c9ffc84798162add719ad6fa7b20 | [
"MIT"
] | null | null | null | #include "vector.hpp"
#include "heap.hpp"
// #include <queue>
#include <iostream>
using namespace std;
template <typename T>
void print(T &vec)
{
for (auto it = vec.begin(); it < vec.end(); it++)
{
cout << *it << " ";
}
cout << endl;
}
int main(int argc, char const *argv[])
... | 17.55814 | 54 | 0.519205 | FrezCirno |
26dc81775866ef94723349774409c2a3709b5db9 | 4,609 | hpp | C++ | DoodleJump/src/include/game_play.hpp | PashaBarahimi/DoodleJump | 2cd34368022347d4ae2015f30ea8425d8c9b6310 | [
"MIT"
] | 1 | 2021-05-15T05:28:02.000Z | 2021-05-15T05:28:02.000Z | DoodleJump/src/include/game_play.hpp | PashaBarahimi/DoodleJump | 2cd34368022347d4ae2015f30ea8425d8c9b6310 | [
"MIT"
] | null | null | null | DoodleJump/src/include/game_play.hpp | PashaBarahimi/DoodleJump | 2cd34368022347d4ae2015f30ea8425d8c9b6310 | [
"MIT"
] | 1 | 2021-07-29T14:21:06.000Z | 2021-07-29T14:21:06.000Z | #ifndef GAME_PLAY_HPP
#define GAME_PLAY_HPP
#include "rsdl.hpp"
#include "game_board.hpp"
#include "doodler.hpp"
#include "platform.hpp"
#include "normal_platform.hpp"
#include "movable_platform.hpp"
#include "breakable_platform.hpp"
#include "spring.hpp"
#include "enemy.hpp"
#include "normal_enemy.hpp"
#include "mova... | 24.647059 | 122 | 0.765459 | PashaBarahimi |
26e87f84de5d70c5e017f668a260d085aca36ef5 | 719 | inl | C++ | src/Core/Geometry/DCEL/Iterator/Face/FFEIterator.inl | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | 1 | 2018-04-16T13:55:45.000Z | 2018-04-16T13:55:45.000Z | src/Core/Geometry/DCEL/Iterator/Face/FFEIterator.inl | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | src/Core/Geometry/DCEL/Iterator/Face/FFEIterator.inl | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | #include <Core/Geometry/DCEL/Iterator/Face/FFEIterator.hpp>
#include <Core/Geometry/DCEL/Face.hpp>
#include <Core/Geometry/DCEL/FullEdge.hpp>
#include <Core/Geometry/DCEL/HalfEdge.hpp>
namespace Ra {
namespace Core {
/// CONSTRUCTOR
FFEIterator::FFEIterator( Face_ptr& f ) : FIterator<FullEdge>( f ) {}
/// DESTRUCTO... | 20.542857 | 69 | 0.646732 | sylvaindeker |
26ee413da88a0613a08a7d7190aa25937bf8af91 | 2,835 | hpp | C++ | src/object.hpp | rokashevich/cp19 | ce63a3f31797795b25a23dda7e75748c098d3e4f | [
"Zlib",
"Apache-2.0"
] | 2 | 2020-11-17T18:40:04.000Z | 2021-02-23T15:18:47.000Z | src/object.hpp | rokashevich/cp19 | ce63a3f31797795b25a23dda7e75748c098d3e4f | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/object.hpp | rokashevich/cp19 | ce63a3f31797795b25a23dda7e75748c098d3e4f | [
"Zlib",
"Apache-2.0"
] | 1 | 2020-09-19T19:24:40.000Z | 2020-09-19T19:24:40.000Z | #pragma once
#include <array>
#include <cstddef>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <iostream>
#include <vector>
#include "t.hpp"
struct ShapeInfo {
std::vector<float> vertices_buffer;
const char* vertex_shader;
const char* pixel_shader;
};
template <class T>
class Shape {
static const... | 32.215909 | 78 | 0.682187 | rokashevich |
26f18562c0d46bd6a5ee111b283e22dab8445d79 | 10,245 | hpp | C++ | RockportEd/Extensions/InGame Menu/Items/TimeOfDayEditor.hpp | berkayylmao/RockportEd | eb99bf5ed2d60eedf86e38e164e04b0e46b47d1f | [
"MIT"
] | null | null | null | RockportEd/Extensions/InGame Menu/Items/TimeOfDayEditor.hpp | berkayylmao/RockportEd | eb99bf5ed2d60eedf86e38e164e04b0e46b47d1f | [
"MIT"
] | null | null | null | RockportEd/Extensions/InGame Menu/Items/TimeOfDayEditor.hpp | berkayylmao/RockportEd | eb99bf5ed2d60eedf86e38e164e04b0e46b47d1f | [
"MIT"
] | 1 | 2021-06-03T09:17:20.000Z | 2021-06-03T09:17:20.000Z | /*
MIT License
Copyright (c) 2019 Berkay Yigit <berkay2578@gmail.com>
Copyright holder detail: Nickname(s) used by the copyright holder: 'berkay2578', 'berkayylmao'.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the ... | 52.809278 | 146 | 0.638555 | berkayylmao |
26fa3a90f5743067b3238a06e3e07f5a5d96047b | 1,107 | cpp | C++ | PrimaLezione/sortPairs.cpp | NeverMendel/Competitive-Programming-Risorse | e75c28394a38ecc6c28b3ec4b9311fdf6b6ea8ed | [
"MIT"
] | null | null | null | PrimaLezione/sortPairs.cpp | NeverMendel/Competitive-Programming-Risorse | e75c28394a38ecc6c28b3ec4b9311fdf6b6ea8ed | [
"MIT"
] | null | null | null | PrimaLezione/sortPairs.cpp | NeverMendel/Competitive-Programming-Risorse | e75c28394a38ecc6c28b3ec4b9311fdf6b6ea8ed | [
"MIT"
] | null | null | null | /*
Data una lista di cognomi di studenti e la loro relativa media,
ordinali con ordine non crescente in base alla loro media,
in caso di parità ordinali in ordine alfabetico in base al cognome.
Input:
n (numero di studenti)
[cognome] [media]
...
Output:
[cognome] [media]
...
... | 20.5 | 97 | 0.606143 | NeverMendel |
26ff00b0b16c6de003fb8dba67241c373dc32529 | 29,588 | cc | C++ | helpers.cc | rbhambriiit/deeptorch | 77f04f850da36ee11303b8647dda5025e039d444 | [
"Apache-2.0"
] | null | null | null | helpers.cc | rbhambriiit/deeptorch | 77f04f850da36ee11303b8647dda5025e039d444 | [
"Apache-2.0"
] | null | null | null | helpers.cc | rbhambriiit/deeptorch | 77f04f850da36ee11303b8647dda5025e039d444 | [
"Apache-2.0"
] | null | null | null | // Copyright 2008 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 to in... | 37.031289 | 137 | 0.62958 | rbhambriiit |
f8024ae5c224530eb96e8621ece5add32201f971 | 6,686 | cpp | C++ | Frame/OpenGL/Fill.cpp | anirul/ShaderGL | 1de7d6cad8e2acd974e89040c9b1b41e4ae3870d | [
"MIT"
] | 1 | 2020-06-15T15:58:05.000Z | 2020-06-15T15:58:05.000Z | Frame/OpenGL/Fill.cpp | anirul/ShaderGL | 1de7d6cad8e2acd974e89040c9b1b41e4ae3870d | [
"MIT"
] | 3 | 2020-06-21T09:08:21.000Z | 2020-06-24T08:14:23.000Z | Frame/OpenGL/Fill.cpp | anirul/ShaderGL | 1de7d6cad8e2acd974e89040c9b1b41e4ae3870d | [
"MIT"
] | null | null | null | #include "Fill.h"
#include <array>
#include <assert.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "Frame/Error.h"
#include "Frame/OpenGL/FrameBuffer.h"
#include "Frame/OpenGL/RenderBuffer.h"
#include "Frame/OpenGL/Renderer.h"
#include "Frame/OpenGL/StaticMesh.h"
namespace frame::opengl {
... | 30.669725 | 74 | 0.680826 | anirul |
f8045d31dce06b3b78588f61714667125d276cbd | 4,875 | cpp | C++ | Assigment 12/Numbermaze.cpp | UrfanAlvany/Algorithms-and-Data-Structures | 263dced4a24df11dad61ab6f8ed9561eb3f44b8f | [
"MIT"
] | null | null | null | Assigment 12/Numbermaze.cpp | UrfanAlvany/Algorithms-and-Data-Structures | 263dced4a24df11dad61ab6f8ed9561eb3f44b8f | [
"MIT"
] | null | null | null | Assigment 12/Numbermaze.cpp | UrfanAlvany/Algorithms-and-Data-Structures | 263dced4a24df11dad61ab6f8ed9561eb3f44b8f | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <algorithm>
#include <queue>
using namespace std;
#define INF 0x3f3f3f3f
typedef pair<int, int> iPair;
class PuzzleBoard
{
private:
int **graph;
int graphsize;
int cuurentY;
int currentX;
public:
PuzzleBoard(int boardSize, int **fields = nullptr);
... | 20.744681 | 84 | 0.442872 | UrfanAlvany |
f805ea225187bddb821299d8da798e0cfa5c1863 | 137 | cpp | C++ | src/main.cpp | zedrex/algosketch | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 16 | 2021-03-27T06:20:42.000Z | 2022-03-31T16:30:37.000Z | src/main.cpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 1 | 2021-07-13T07:57:41.000Z | 2021-07-13T07:57:41.000Z | src/main.cpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 3 | 2021-04-03T02:58:56.000Z | 2021-06-04T18:23:49.000Z | #include <managers/application.hpp>
using namespace std;
int main()
{
Application algoSketch;
algoSketch.run();
return 0;
} | 13.7 | 35 | 0.686131 | zedrex |
f80a6b9eb32daca9e2594a462c011ec4273909b8 | 2,995 | hpp | C++ | AudioKit/Common/Nodes/Mixing/Panner/AKPannerDSP.hpp | MattTolleson/AudioKit | 796c974e5f6ea00fdacca062f20f01bfb4689de8 | [
"MIT"
] | 1,699 | 2017-05-06T02:22:00.000Z | 2022-03-30T07:51:03.000Z | Pods/AudioKit/macOS/AudioKit.framework/Versions/A/Headers/AKPannerDSP.hpp | guruantree/MacAssistant | 21c4537fbedaab1a3be28daef578ad8d91cf8604 | [
"MIT"
] | 85 | 2017-05-08T18:48:44.000Z | 2022-03-07T05:30:01.000Z | Pods/AudioKit/macOS/AudioKit.framework/Versions/A/Headers/AKPannerDSP.hpp | guruantree/MacAssistant | 21c4537fbedaab1a3be28daef578ad8d91cf8604 | [
"MIT"
] | 180 | 2017-05-18T22:28:37.000Z | 2022-03-28T12:28:04.000Z | //
// AKPannerDSP.hpp
// AudioKit
//
// Created by Aurelius Prochazka, revision history on Github.
// Copyright © 2018 AudioKit. All rights reserved.
//
#pragma once
#import <AVFoundation/AVFoundation.h>
typedef NS_ENUM(AUParameterAddress, AKPannerParameter) {
AKPannerParameterPan,
AKPannerParameterRampD... | 27.477064 | 99 | 0.589649 | MattTolleson |
f80ddc18169a57b6eb52ab5e40b3d31efed68896 | 1,972 | cpp | C++ | codeforces/59E/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | codeforces/59E/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | codeforces/59E/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | // https://codeforces.com/contest/59/problem/E
#include <iostream>
#include <vector>
#include <map>
#include <tuple>
#include <queue>
#include <algorithm>
using namespace std;
int N;
vector<vector<int>> adj;
map<tuple<int,int,int>,bool> prohibit;
vector<int> solve() {
tuple<int,int,int> last;
map<pair<int,i... | 21.911111 | 65 | 0.43002 | xirc |
f8136c19f7063125f0532ef70d598dc3146fe837 | 2,249 | cpp | C++ | data-plane/config/tests/ESActionTest.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | data-plane/config/tests/ESActionTest.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | data-plane/config/tests/ESActionTest.cpp | duderino/everscale | 38388289dcce869852680a167f3dcb7e090d851c | [
"Apache-2.0"
] | null | null | null | #ifndef ES_ACTION_H
#include <ESAction.h>
#endif
#ifndef ES_ENTITY_TEST_H
#include "ESEntityTest.h"
#endif
#include <gtest/gtest.h>
#define UUID "0f42a1d1-cb6e-4a7b-be44-35fe34c6d5e1"
using namespace ES;
class ActionTest : public EntityTest {
public:
ActionTest() {}
virtual ~ActionTest() {}
virtual void Se... | 28.833333 | 88 | 0.640285 | duderino |
f81b9243dee9c450c31d3a4a10bf7af796d89a30 | 562 | hpp | C++ | library/ATF/CNetTimer.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CNetTimer.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CNetTimer.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
#pragma pack(push, 4)
struct CNetTimer
{
int m_nTickTerm;
unsigned int m_dwTickOld;
bool m_bOper;
public:
... | 24.434783 | 108 | 0.653025 | lemkova |
f81ca2d3a28a56ad94fc4e7bc20523a4ef0a0365 | 555 | hpp | C++ | src/cuda/n_body.hpp | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | src/cuda/n_body.hpp | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | 1 | 2018-12-28T13:30:16.000Z | 2018-12-29T10:30:33.000Z | src/cuda/n_body.hpp | savcardamone/tyche | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | /**
* @file n_body.hpp
* @author Salvatore Cardamone
* @brief Basic N-Body implementation using CUDA.
*/
#ifndef N_BODY_CUDA_HPP__
#define N_BODY_CUDA_HPP__
// See https://stackoverflow.com/a/6978720
#ifdef __CUDACC__
#define CUDA_MEMBER __host__ __device__
#else
#define CUDA_MEMBER
#endif /* #ifdef __CUDACC__ */
... | 18.5 | 87 | 0.744144 | savcardamone |
f81e00fd1c7e53cdf2a97abdb19467afff9085bc | 1,164 | cpp | C++ | main.cpp | TomasDmArg/bulkwebpconverter | 7c82cfbd6b47b8b3ae1d62990ebdf69963050bbe | [
"MIT"
] | null | null | null | main.cpp | TomasDmArg/bulkwebpconverter | 7c82cfbd6b47b8b3ae1d62990ebdf69963050bbe | [
"MIT"
] | null | null | null | main.cpp | TomasDmArg/bulkwebpconverter | 7c82cfbd6b47b8b3ae1d62990ebdf69963050bbe | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main(){
int n, lang;
string textos[] = {"De: (ej. jpg/png/etc) ", "Cantidad de archivos: ", "Nombre de archivo: "};
string texts[] = {"From: (e.g. jpg/png/etc) ","File quantity: ", "filename: "};
string actual[] = {""};
... | 29.1 | 99 | 0.49055 | TomasDmArg |
f81e85c2db0556c68b7556aa87c71f1899ad4e71 | 6,954 | cpp | C++ | editor/widgets/DebugWidgets.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | editor/widgets/DebugWidgets.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | editor/widgets/DebugWidgets.cpp | gan74/yave | c71b5dd7c05b1aa39c59a8071fc243c1472e71d1 | [
"MIT"
] | null | null | null | /*******************************
Copyright (c) 2016-2022 Grégoire Angerand
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... | 36.793651 | 109 | 0.563129 | gan74 |
f81f92fe645075b68e828b219b6060e97187c699 | 518 | cpp | C++ | csacademy/fenwick.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | csacademy/fenwick.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | csacademy/fenwick.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define LSB(i) ((i)&-(i))
const int SIZE = 5;
int A[SIZE];
int sum(int i)
{
int sum = 0;
while(i > 0){
sum += A[i], i -= LSB(i);
}
return sum;
}
void add(int i, int p)
{
while(i < SIZE){
A[i] += p, ... | 15.69697 | 41 | 0.388031 | freedomDR |
f8264539778f2687084a99144e72cea6aaaee963 | 25,196 | cpp | C++ | source/games/blood/src/aicult.cpp | Quake-Backup/Raze | 16c81f0b1f409436ebf576d2c23f2459a29b34b4 | [
"RSA-MD"
] | 1 | 2022-03-30T15:53:09.000Z | 2022-03-30T15:53:09.000Z | source/games/blood/src/aicult.cpp | Quake-Backup/Raze | 16c81f0b1f409436ebf576d2c23f2459a29b34b4 | [
"RSA-MD"
] | null | null | null | source/games/blood/src/aicult.cpp | Quake-Backup/Raze | 16c81f0b1f409436ebf576d2c23f2459a29b34b4 | [
"RSA-MD"
] | null | null | null | //-------------------------------------------------------------------------
/*
Copyright (C) 2010-2019 EDuke32 developers and contributors
Copyright (C) 2019 Nuke.YKT
This file is part of NBlood.
NBlood is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License versio... | 40.573269 | 184 | 0.65173 | Quake-Backup |
f82cae8e8b8d25cdcefc2cffde99716d5148896e | 1,528 | hpp | C++ | src/popup/popup-stage-system-error.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 2 | 2019-02-28T00:28:08.000Z | 2019-10-20T14:39:48.000Z | src/popup/popup-stage-system-error.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/popup/popup-stage-system-error.hpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | // ----------------------------------------------------------------------------
// "THE BEER-WARE LICENSE" (Revision 42):
// <ztn@zurreal.com> wrote this file. As long as you retain this notice you
// can do whatever you want with this stuff. If we meet some day, and you think
// this stuff is worth it, you can buy me... | 36.380952 | 82 | 0.656414 | tilnewman |
f82d257f89575fff02afb18bb59610c72de43037 | 11,545 | cpp | C++ | tests/test_basic.cpp | preet/libobdref | 9282b2e30ef97578b3d17eeb757090b001809972 | [
"Apache-2.0"
] | 2 | 2015-11-07T18:32:10.000Z | 2017-11-20T21:13:22.000Z | tests/test_basic.cpp | preet/libobdref | 9282b2e30ef97578b3d17eeb757090b001809972 | [
"Apache-2.0"
] | null | null | null | tests/test_basic.cpp | preet/libobdref | 9282b2e30ef97578b3d17eeb757090b001809972 | [
"Apache-2.0"
] | null | null | null | /*
This source is part of libobdref
Copyright (C) 2012,2013 Preet Desai (preet.desai@gmail.com)
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... | 37.36246 | 80 | 0.532438 | preet |
f830701d4dd232a2392ad1c173ac9dd1cb5d1655 | 1,029 | cpp | C++ | src/VkRenderer/Image.cpp | WubiCookie/VkRenderer | 87cc5d858591fc976c197ab2834e1ac9a418becd | [
"MIT"
] | 2 | 2020-05-31T19:54:19.000Z | 2021-09-14T12:00:12.000Z | src/VkRenderer/Image.cpp | WubiCookie/VkRenderer | 87cc5d858591fc976c197ab2834e1ac9a418becd | [
"MIT"
] | null | null | null | src/VkRenderer/Image.cpp | WubiCookie/VkRenderer | 87cc5d858591fc976c197ab2834e1ac9a418becd | [
"MIT"
] | null | null | null | #include "Image.hpp"
#include <cassert>
#include <stdexcept>
namespace cdm
{
Image::Image(const VulkanDevice& device_, VkFormat format)
: AbstractImage(device_, format)
{
}
Image::~Image() { device().destroy(m_image.get()); }
VkImage Image::image()
{
if (outdated())
recreate();
return m_image.get();
}
boo... | 16.078125 | 75 | 0.683188 | WubiCookie |
f830aa215f418e783a4e7a32c67d379d189fbae3 | 19,991 | cpp | C++ | Steamhammer/Source/ScoutManager.cpp | kant2002/steamhammer | 375756e40f427faf3496fcf5da20955720ceda0a | [
"MIT"
] | 10 | 2017-07-06T18:47:02.000Z | 2019-03-22T04:49:41.000Z | Steamhammer/Source/ScoutManager.cpp | kant2002/steamhammer | 375756e40f427faf3496fcf5da20955720ceda0a | [
"MIT"
] | null | null | null | Steamhammer/Source/ScoutManager.cpp | kant2002/steamhammer | 375756e40f427faf3496fcf5da20955720ceda0a | [
"MIT"
] | 6 | 2017-09-05T14:40:19.000Z | 2018-11-01T08:00:53.000Z | #include "ScoutManager.h"
#include "Bases.h"
#include "GameCommander.h"
#include "MapGrid.h"
#include "MapTools.h"
#include "Micro.h"
#include "OpponentModel.h"
#include "ProductionManager.h"
#include "The.h"
// This class is responsible for early game scouting.
// It controls any scouting worker and scou... | 28.4367 | 113 | 0.656045 | kant2002 |
f83956db74d79cb7106e8f6c9cfb6716adfaaea0 | 987 | hpp | C++ | src/PlaylistsPage/PlaylistsPage.hpp | AlexeyGurevsky/bbtube | d7329b52cec08cdc80c521e8f3d4f5de746639e7 | [
"Apache-2.0"
] | 15 | 2020-07-13T03:51:10.000Z | 2022-03-16T13:56:28.000Z | src/PlaylistsPage/PlaylistsPage.hpp | AlexeyGurevsky/bbtube | d7329b52cec08cdc80c521e8f3d4f5de746639e7 | [
"Apache-2.0"
] | 2 | 2021-01-07T20:31:29.000Z | 2021-12-15T21:20:34.000Z | src/PlaylistsPage/PlaylistsPage.hpp | AlexeyGurevsky/bbtube | d7329b52cec08cdc80c521e8f3d4f5de746639e7 | [
"Apache-2.0"
] | 4 | 2020-08-15T01:52:31.000Z | 2022-03-16T13:56:30.000Z | #ifndef PlaylistsPage_HPP_
#define PlaylistsPage_HPP_
#include "src/utils/BasePage.hpp"
#include "src/parser/models/StorageData.hpp"
#include "src/parser/models/VideoMetadata.hpp"
#include "src/models/PlaylistVideoModel.hpp"
#include "src/models/PlaylistListItemModel.hpp"
#include <bb/cascades/Page>
#include <bb/casc... | 29.029412 | 91 | 0.787234 | AlexeyGurevsky |
f8414574671acb0dd73638b76e08400db7c9e0da | 2,224 | cpp | C++ | source/Tokens.cpp | KaloyanKaludov/Element | fbe675301d04f0a62497d8f05e7bcbaeba72d102 | [
"MIT"
] | 1 | 2016-05-15T21:17:26.000Z | 2016-05-15T21:17:26.000Z | source/Tokens.cpp | KaloyanKaludov/Element | fbe675301d04f0a62497d8f05e7bcbaeba72d102 | [
"MIT"
] | 1 | 2016-05-19T12:39:58.000Z | 2016-09-19T07:37:50.000Z | source/Tokens.cpp | KaloyanKaludov/Element | fbe675301d04f0a62497d8f05e7bcbaeba72d102 | [
"MIT"
] | null | null | null | #include "Tokens.h"
namespace element
{
const char* TokenAsString(Token token)
{
switch(token)
{
case T_EOF: return "EOF";
case T_NewLine: return "\\n";
case T_Identifier: return "identifier";
case T_Integer: return "integer";
case T_Float: return "float";
case T_String: return "string";
... | 23.659574 | 45 | 0.627698 | KaloyanKaludov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.