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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
075656086c5731d8405db1c345cd530530d0d8e1 | 750 | cpp | C++ | C++/next-closest-time.cpp | black-shadows/LeetCode-Solutions | b1692583f7b710943ffb19b392b8bf64845b5d7a | [
"Fair",
"Unlicense"
] | 1 | 2020-04-16T08:38:14.000Z | 2020-04-16T08:38:14.000Z | next-closest-time.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | null | null | null | next-closest-time.cpp | Jeevan-kumar-Raj/LeetCode-Solutions-Topicwise | f1111b4edd401a3fc47111993bd7250cf4dc76da | [
"MIT"
] | 1 | 2021-12-25T14:48:56.000Z | 2021-12-25T14:48:56.000Z | // Time: O(1)
// Space: O(1)
class Solution {
public:
string nextClosestTime(string time) {
static const vector<int> mins = { 600, 60, 10, 1 };
auto npos = time.find(':');
auto curr = stoi(time.substr(0, npos)) * 60 +
stoi(time.substr(npos + 1));
strin... | 31.25 | 64 | 0.4 | black-shadows |
075c70b89fedc709d37bd812566bb81e99a5bf76 | 1,953 | cpp | C++ | src/host_driver/sound_driver_win32.cpp | RandomAmbersky/zemu | c212c79bf3fd9fb20faa2f6e1861d1195d360303 | [
"MIT"
] | 7 | 2016-04-08T04:11:31.000Z | 2022-01-26T08:20:38.000Z | src/host_driver/sound_driver_win32.cpp | RandomAmbersky/zemu | c212c79bf3fd9fb20faa2f6e1861d1195d360303 | [
"MIT"
] | 1 | 2019-07-10T11:06:52.000Z | 2019-07-10T11:06:52.000Z | src/host_driver/sound_driver_win32.cpp | RandomAmbersky/zemu | c212c79bf3fd9fb20faa2f6e1861d1195d360303 | [
"MIT"
] | 2 | 2015-09-26T20:32:49.000Z | 2020-08-27T20:03:04.000Z | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#ifdef _WIN32
#include <string>
#include <stdexcept>
#include <windows.h>
#include <boost/format.hpp>
#include "sound_driver_win32.h"
SoundDriverWin32... | 25.038462 | 110 | 0.597542 | RandomAmbersky |
0760d1c5e6421fb45f0fba32baae5cd5a2cabaab | 683 | cpp | C++ | ch11/ex11_11.cpp | forevermzm/Cpp-Primer | 0f149707451d50738677d9194cb701af53e99934 | [
"CC0-1.0"
] | 2 | 2015-06-11T17:50:41.000Z | 2017-01-23T09:37:56.000Z | ch11/ex11_11.cpp | forevermzm/Cpp-Primer | 0f149707451d50738677d9194cb701af53e99934 | [
"CC0-1.0"
] | null | null | null | ch11/ex11_11.cpp | forevermzm/Cpp-Primer | 0f149707451d50738677d9194cb701af53e99934 | [
"CC0-1.0"
] | 1 | 2018-10-23T09:43:12.000Z | 2018-10-23T09:43:12.000Z | //! @Alan
//! Exercise 11.11:
//! Redefine bookstore without using decltype.
// discussion on stack overflow:
// http://stackoverflow.com/questions/20608365/is-it-possible-to-code-this-waywhilelambda
//!
#include <iostream>
#include <map>
#include <string>
#include <algorithm>
#include <list>
#include <set>
class ... | 17.973684 | 90 | 0.644217 | forevermzm |
076290ece4cda3840e4de74b9bfb252379806b08 | 1,507 | cpp | C++ | src/internal_server.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/internal_server.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/internal_server.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 Kristina Simpson <sweet.kristas@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/LICENSE-2.0
Unless required by app... | 28.980769 | 142 | 0.681486 | cbeck88 |
0762efbd555c2283d86af7ab52506ad2bbfbb6b9 | 6,977 | hpp | C++ | include/utilspp/functor/Functor.hpp | vicaba/curlpp | 81c296629a930de10e0024b507696d73e0f50a83 | [
"MIT"
] | 38 | 2015-01-10T17:36:57.000Z | 2020-04-13T11:34:52.000Z | include/utilspp/functor/Functor.hpp | vicaba/curlpp | 81c296629a930de10e0024b507696d73e0f50a83 | [
"MIT"
] | 4 | 2016-01-02T02:41:27.000Z | 2020-06-16T03:32:02.000Z | include/utilspp/functor/Functor.hpp | vicaba/curlpp | 81c296629a930de10e0024b507696d73e0f50a83 | [
"MIT"
] | 46 | 2015-01-15T17:27:20.000Z | 2021-12-14T18:27:17.000Z | /*
* Copyright (c) <2002-2009> <Jean-Philippe Barrette-LaPierre>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (curlpp), to deal in the Software without restriction,
* including without limitation the r... | 41.284024 | 178 | 0.679948 | vicaba |
79e34375786ce45cec8b2b02d4b0cd89acdbc077 | 3,644 | cc | C++ | tests/task-test.cc | ademakov/Evenk | 664ad70267b0d8cbe7f29067e97e8b4a2686ea01 | [
"MIT"
] | 76 | 2015-04-23T22:00:45.000Z | 2020-08-05T02:14:50.000Z | tests/task-test.cc | ademakov/Evenk | 664ad70267b0d8cbe7f29067e97e8b4a2686ea01 | [
"MIT"
] | 3 | 2015-04-24T01:21:38.000Z | 2019-09-05T14:09:08.000Z | tests/task-test.cc | ademakov/Evenk | 664ad70267b0d8cbe7f29067e97e8b4a2686ea01 | [
"MIT"
] | 9 | 2015-04-24T01:46:02.000Z | 2017-03-28T02:00:55.000Z | #include <evenk/task.h>
#include <cstdio>
#include <experimental/memory_resource>
#include <signal.h>
#include <setjmp.h>
int
test()
{
printf("%s\n", __PRETTY_FUNCTION__);
return 42;
}
int
testN(int n)
{
printf("%s\n", __PRETTY_FUNCTION__);
return n;
}
struct Test
{
void operator()() const
... | 16.639269 | 109 | 0.584248 | ademakov |
79e91e1da2d76a5926ce2f497ae98f981ad1adba | 6,815 | cpp | C++ | debian_pgcluster.cpp | araqnid/pqwx | d70cd76203208b9304775b795e25ab9f23fe1c96 | [
"Artistic-1.0-Perl"
] | null | null | null | debian_pgcluster.cpp | araqnid/pqwx | d70cd76203208b9304775b795e25ab9f23fe1c96 | [
"Artistic-1.0-Perl"
] | 1 | 2016-03-09T14:02:13.000Z | 2016-03-09T14:02:13.000Z | debian_pgcluster.cpp | araqnid/pqwx | d70cd76203208b9304775b795e25ab9f23fe1c96 | [
"Artistic-1.0-Perl"
] | null | null | null | #include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "debian_pgcluster.h"
#define PGCLUSTER_BINDIR "/usr/lib/postgresql"
#define PGCLUSTER_CONFDIR "/etc/postgresql"
#include "wx/regex.h"
#include <fstream>
#include <unistd.h>
#include <dirent... | 31.995305 | 141 | 0.637711 | araqnid |
79e99d0b7373144016cd33f01a72c0d4b3c1afcf | 4,303 | hpp | C++ | src/include/vector2d.hpp | andeluvian/micromachines | 566e51a7555c0b3ab974e0fb87e3387a3427f655 | [
"Apache-2.0"
] | null | null | null | src/include/vector2d.hpp | andeluvian/micromachines | 566e51a7555c0b3ab974e0fb87e3387a3427f655 | [
"Apache-2.0"
] | null | null | null | src/include/vector2d.hpp | andeluvian/micromachines | 566e51a7555c0b3ab974e0fb87e3387a3427f655 | [
"Apache-2.0"
] | null | null | null | #ifndef VECTOR2D_HH
#define VECTOR2D_HH
#define PI 3.141592654
#include <iostream>
#include "structures.hpp"
/**
* Author: Miika Karsimus
*
* Utility class for representing 2-dimensional vector (x and y components).
* Note that most part of the functions are overloaded operators.
* It makes it easy to use the ... | 29.272109 | 92 | 0.695329 | andeluvian |
79ed0aba5b66c9befa46e9771d96208fa8767b6e | 4,317 | cpp | C++ | final_exam_ws17/3/3.cpp | azurite/numCSE18-code | f7104305375954a0528d366f8460bf8033d20f0a | [
"MIT"
] | 1 | 2019-01-13T19:08:32.000Z | 2019-01-13T19:08:32.000Z | final_exam_ws17/3/3.cpp | azurite/numCSE18-code | f7104305375954a0528d366f8460bf8033d20f0a | [
"MIT"
] | null | null | null | final_exam_ws17/3/3.cpp | azurite/numCSE18-code | f7104305375954a0528d366f8460bf8033d20f0a | [
"MIT"
] | null | null | null | #include <iostream>
#include <Eigen/Dense>
#include "gaussQuad.hpp"
using namespace Eigen;
const double PI = 3.141592653589793;
// small helper function to evaluate f_alpha_(x)
double f(VectorXd alpha, double x) {
return std::exp(alpha(0) + alpha(1) * x + alpha(2) * x * x);
}
// rho(x) = (1, x, x^2)^T
VectorXd rh... | 24.117318 | 132 | 0.621728 | azurite |
79f118c645d5bb71fb594f4616f3b25745a40c73 | 918 | hpp | C++ | source/all/basics.hpp | alf-p-steinbach/stdlib | 1280c3b68f30197549efd61af35ca57c477d59fe | [
"BSL-1.0"
] | 13 | 2017-06-20T13:24:39.000Z | 2018-02-27T08:49:17.000Z | source/all/basics.hpp | alf-p-steinbach/Wrapped-stdlib | 1280c3b68f30197549efd61af35ca57c477d59fe | [
"BSL-1.0"
] | null | null | null | source/all/basics.hpp | alf-p-steinbach/Wrapped-stdlib | 1280c3b68f30197549efd61af35ca57c477d59fe | [
"BSL-1.0"
] | null | null | null | #pragma once // Source encoding: utf-8 with BOM ∩
// #include <stdlib/all/basics.hpp>
// Copyright © 2017 Alf P. Steinbach, distributed under Boost license 1.0.
#include <stdlib/all/fixes.hpp>
#include <stdlib/all/io.hpp> // E.g. <iostream> & <iomanip>
#include <stdlib/all/numerics.hpp>... | 57.375 | 111 | 0.618736 | alf-p-steinbach |
79f5100b63c6a8931c4c52b59bd60813f9de0ced | 2,357 | cpp | C++ | Include/Firefly/Source/AssetLoaders/ImageLoader.cpp | Intro-Ventors/Firefly | fa817785758c72f135492e9cc36daf1250169490 | [
"MIT"
] | null | null | null | Include/Firefly/Source/AssetLoaders/ImageLoader.cpp | Intro-Ventors/Firefly | fa817785758c72f135492e9cc36daf1250169490 | [
"MIT"
] | null | null | null | Include/Firefly/Source/AssetLoaders/ImageLoader.cpp | Intro-Ventors/Firefly | fa817785758c72f135492e9cc36daf1250169490 | [
"MIT"
] | null | null | null | #include "Firefly/AssetsLoaders/ImageLoader.hpp"
#include <stb/stb_image.h>
namespace Firefly
{
std::shared_ptr<Image> LoadImageFromFile(const std::shared_ptr<Engine>& pEngine, const std::filesystem::path& path)
{
// Load the pixel data.
int width = 0, height = 0, channels = 0;
stbi_uc* pixels = stbi_load(pat... | 42.089286 | 187 | 0.733135 | Intro-Ventors |
79f8bccfe9131c2570a6ad993a54122935cf705d | 2,610 | hpp | C++ | include/haluj/optional.hpp | siyikalender/haluj | bf578af56bbb7b9ac13a18b5d062d0a81a5abd0f | [
"Unlicense"
] | 2 | 2018-10-16T10:45:46.000Z | 2020-09-12T09:50:03.000Z | include/haluj/optional.hpp | siyikalender/haluj | bf578af56bbb7b9ac13a18b5d062d0a81a5abd0f | [
"Unlicense"
] | null | null | null | include/haluj/optional.hpp | siyikalender/haluj | bf578af56bbb7b9ac13a18b5d062d0a81a5abd0f | [
"Unlicense"
] | null | null | null | /// \file optional.hpp
/// A lightweight std optional implementation
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or no... | 22.118644 | 71 | 0.713027 | siyikalender |
030195cd3e85e51f179632cf75e54d6f21647593 | 2,753 | cpp | C++ | codeforce/401/E.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | codeforce/401/E.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | codeforce/401/E.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | /**
How often have I said to you that when you have eliminated the impossible, whatever remains, however improbable, must be the truth?
*/
#include <bits/stdc++.h>
#define forn(i, l, r) for(int i=l;i<=r;i++)
#define all(v) v.begin(),v.end()
#define pb push_back
#define nd second
#define st first
#define debug(... | 32.77381 | 139 | 0.560843 | heiseish |
0302fe1a71acf309e102cacbe39d1e06fc755094 | 41 | cpp | C++ | GObj.cpp | sparrowflyy/GEngine | 06834976289feec202245a7ec44a3c7e8687bb8e | [
"MIT"
] | null | null | null | GObj.cpp | sparrowflyy/GEngine | 06834976289feec202245a7ec44a3c7e8687bb8e | [
"MIT"
] | null | null | null | GObj.cpp | sparrowflyy/GEngine | 06834976289feec202245a7ec44a3c7e8687bb8e | [
"MIT"
] | null | null | null | #include "GObj.h"
#include <iostream>
| 6.833333 | 19 | 0.658537 | sparrowflyy |
0309efc90e24fbcafe0f1d4be9b62e35b4d4b4c1 | 4,214 | hpp | C++ | include/Org/BouncyCastle/Math/EC/Rfc8032/Ed25519_PointAccum.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Math/EC/Rfc8032/Ed25519_PointAccum.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Math/EC/Rfc8032/Ed25519_PointAccum.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: Org.BouncyCast... | 44.357895 | 178 | 0.647129 | marksteward |
030ca1532992733afc2b73d86417bd9b8ddd7b2c | 2,733 | cpp | C++ | CPP_Classes/WhiteBalance.cpp | bobdavies2000/OpenCVB | 1d339a94643a97e2d34f82dc7776677a8566d71d | [
"MIT"
] | 69 | 2019-07-17T21:20:37.000Z | 2022-03-23T08:38:03.000Z | CPP_Classes/WhiteBalance.cpp | bobdavies2000/OpenCVB | 1d339a94643a97e2d34f82dc7776677a8566d71d | [
"MIT"
] | 5 | 2021-02-05T05:48:50.000Z | 2022-03-12T01:43:15.000Z | CPP_Classes/WhiteBalance.cpp | bobdavies2000/OpenCVB | 1d339a94643a97e2d34f82dc7776677a8566d71d | [
"MIT"
] | 6 | 2019-12-24T05:36:52.000Z | 2021-02-19T15:55:13.000Z | #include <cstdlib>
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
using namespace std;
using namespace cv;
// https://blog.csdn.net/just_sort/article/details/85982871
class WhiteBalance
{
private:
public:
Mat src, ou... | 23.161017 | 124 | 0.551409 | bobdavies2000 |
03118c8e46c7107e174c5ab5f0ed56b3ea4bdb6f | 2,120 | hh | C++ | include/Prostokat.hh | KPO-2020-2021/zad3-mszleger | 96479d275c42e534821f55ab889ae83e0316d0bb | [
"Unlicense"
] | null | null | null | include/Prostokat.hh | KPO-2020-2021/zad3-mszleger | 96479d275c42e534821f55ab889ae83e0316d0bb | [
"Unlicense"
] | null | null | null | include/Prostokat.hh | KPO-2020-2021/zad3-mszleger | 96479d275c42e534821f55ab889ae83e0316d0bb | [
"Unlicense"
] | null | null | null | #ifndef PROSTOKAT_HH
#define PROSTOKAT_HH
#include <iostream>
#include <fstream>
#include "Wektor2D.hh"
#include "Macierz2x2.hh"
#define ILOSCWIERZCHOLKOW 4
/**
* Klasa modelująca prostokąt
**/
class Prostokat {
Wektor wierzcholek[ILOSCWIERZCHOLKOW]; // Tablica przechowująca współrzędn... | 57.297297 | 165 | 0.675 | KPO-2020-2021 |
03120f4b4ca8ae0aaf5b0b7b77cc521505a9cf00 | 237 | hpp | C++ | example/Brick.hpp | deianvn/kit2d | a8fd6d75cf1f8d14baabaa04903ab3fdee3b4ef5 | [
"Apache-2.0"
] | null | null | null | example/Brick.hpp | deianvn/kit2d | a8fd6d75cf1f8d14baabaa04903ab3fdee3b4ef5 | [
"Apache-2.0"
] | null | null | null | example/Brick.hpp | deianvn/kit2d | a8fd6d75cf1f8d14baabaa04903ab3fdee3b4ef5 | [
"Apache-2.0"
] | null | null | null | #ifndef KIT2D_EXAMPLE_BRICK_HPP
#define KIT2D_EXAMPLE_BRICK_HPP
#include "../include/kit2d/scene.hpp"
class Brick : public Actor {
public:
Brick();
~Brick();
void setSprite(Sprite sprite);
private:
Sprite sprite {};
};
#endif
| 14.8125 | 37 | 0.721519 | deianvn |
0318db64daf98908170dee643b012b8256ada05d | 5,061 | cpp | C++ | newweb/browser/render_process/webengine/fetch/Resource.cpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | newweb/browser/render_process/webengine/fetch/Resource.cpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null | newweb/browser/render_process/webengine/fetch/Resource.cpp | cauthu/shadow-browser-plugin | e1eb930b1bdf71cb3cdcbb1d70467e6e6203c298 | [
"BSD-3-Clause"
] | null | null | null |
#include "../../../../utility/easylogging++.h"
#include "Resource.hpp"
#include "../webengine.hpp"
#define _LOG_PREFIX(inst) << "res:" << instNum() << ": "
/* "inst" stands for instance, as in, instance of a class */
#define vloginst(level, inst) VLOG(level) _LOG_PREFIX(inst)
#define vlogself(level) vloginst(level... | 24.1 | 76 | 0.667062 | cauthu |
031da442d0500c712d64656de4df09852905a755 | 716 | hh | C++ | UserWorkDir/P02_Geometry/source/include/PrimaryGenerator.hh | hmdyt/Geant4Tutorial | cf6dea24a983a80b1994f3ca82fab5e7bb27f03c | [
"MIT"
] | 2 | 2020-07-08T12:54:10.000Z | 2021-07-21T02:37:02.000Z | P09_Analysis/source-CS/include/PrimaryGenerator.hh | koichi-murakami/g4tutorial2020 | 0162a94dc1407a39dd0651ac530d10913037c6f0 | [
"BSD-2-Clause"
] | null | null | null | P09_Analysis/source-CS/include/PrimaryGenerator.hh | koichi-murakami/g4tutorial2020 | 0162a94dc1407a39dd0651ac530d10913037c6f0 | [
"BSD-2-Clause"
] | 1 | 2019-12-27T06:48:15.000Z | 2019-12-27T06:48:15.000Z | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// PrimaryGenerator.hh
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#ifndef PrimaryGenerator_h
#define PrimaryGenerator_h 1
#include "G4VUserPrimaryGeneratorAction.hh"
class G4Event;
class G4ParticleGun... | 27.538462 | 80 | 0.420391 | hmdyt |
031f4c740a99b44f3765b5ec65892f17d5c44f88 | 3,706 | cpp | C++ | aws-cpp-sdk-sagemaker/source/model/DebugHookConfig.cpp | grujicbr/aws-sdk-cpp | bdd43c178042f09c6739645e3f6cd17822a7c35c | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-sagemaker/source/model/DebugHookConfig.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-sagemaker/source/model/DebugHookConfig.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 28.290076 | 162 | 0.768484 | grujicbr |
0321090804bb1681c84ccb89cb9b77a4500e387e | 34,947 | cpp | C++ | Source/WebCore/rendering/mathml/MathOperator.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | Source/WebCore/rendering/mathml/MathOperator.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebCore/rendering/mathml/MathOperator.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2016 Igalia S.L. All rights reserved.
* Copyright (C) 2016 Apple Inc. 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... | 46.783133 | 196 | 0.710991 | ijsf |
0321865a6af950846c389c6b7fc6a6e17ed5dd48 | 3,882 | cpp | C++ | src_train_dropout_two_hidden/test_arpa.cpp | sagae/nndep | efa7db1cfe276647bfdd71658ee5b248a51182f4 | [
"MIT"
] | 4 | 2016-10-12T13:09:49.000Z | 2017-11-16T09:00:26.000Z | src_train_dropout_two_hidden/test_arpa.cpp | sagae/nndep | efa7db1cfe276647bfdd71658ee5b248a51182f4 | [
"MIT"
] | null | null | null | src_train_dropout_two_hidden/test_arpa.cpp | sagae/nndep | efa7db1cfe276647bfdd71658ee5b248a51182f4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <cstdio>
//#include "cmph.hpp"
//#include "biglm.hpp"
//#include "quantizer.hpp"
#include "arpa.hpp"
#include "arpaMultinomial.h"
#include <boost/algorithm/string_regex.hpp>
#include <boost/program_options.hpp>
#include <boost/random/mersenne_twister.h... | 29.633588 | 102 | 0.622875 | sagae |
03234dceb18937d6e251fffd3cf118b92efc9725 | 3,755 | cpp | C++ | src/WindowsEventListener.cpp | bilmich1/windows-event-listener | 6002dd0f92704cf3fe4d518f764f76012e202358 | [
"MIT"
] | null | null | null | src/WindowsEventListener.cpp | bilmich1/windows-event-listener | 6002dd0f92704cf3fe4d518f764f76012e202358 | [
"MIT"
] | null | null | null | src/WindowsEventListener.cpp | bilmich1/windows-event-listener | 6002dd0f92704cf3fe4d518f764f76012e202358 | [
"MIT"
] | null | null | null | #include "WindowsEventListener.h"
#include <algorithm>
#include <iterator>
#include <sstream>
#include <fstream>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/format.hpp>
// Link with the event lib
#pragma comment(lib, "wevtapi.lib")
DWORD WINAPI eventListene... | 27.610294 | 120 | 0.655659 | bilmich1 |
0323670d68bae86e475c39968bbc82fa9a4d5f00 | 3,334 | cpp | C++ | i2p1/src/function/lab12_1_110021132.cpp | richard21708/i2p-nthu-math | 2cd2aedd31fcfe29fd59f21db72e012b4e113421 | [
"MIT"
] | null | null | null | i2p1/src/function/lab12_1_110021132.cpp | richard21708/i2p-nthu-math | 2cd2aedd31fcfe29fd59f21db72e012b4e113421 | [
"MIT"
] | 7 | 2021-12-30T08:51:25.000Z | 2022-01-19T02:26:49.000Z | i2p1/src/function/lab12_1_110021132.cpp | richard21708/i2p-nthu-math | 2cd2aedd31fcfe29fd59f21db72e012b4e113421 | [
"MIT"
] | 17 | 2021-09-23T07:54:26.000Z | 2022-01-11T11:58:48.000Z | #include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
void parse_expression(const string &expression, vector<string> &tokens)
{
int n = 0;
string stringtokens;
while (n <= expression.size() - 1)
{
if (expression[n] != ' ')
{
... | 23.814286 | 74 | 0.380324 | richard21708 |
03258ac7ef110c01fd068a471397ee80691a7704 | 601 | cpp | C++ | mainwindow.cpp | julienlopez/QFourierDrawer | 6b55c113a1baae6b3cb7e9b85f0e58f3b30272ab | [
"MIT"
] | null | null | null | mainwindow.cpp | julienlopez/QFourierDrawer | 6b55c113a1baae6b3cb7e9b85f0e58f3b30272ab | [
"MIT"
] | 3 | 2019-06-25T07:55:25.000Z | 2019-06-25T20:45:28.000Z | mainwindow.cpp | julienlopez/QFourierDrawer | 6b55c113a1baae6b3cb7e9b85f0e58f3b30272ab | [
"MIT"
] | null | null | null | #include "mainwindow.hpp"
#include "fourierbuilder.hpp"
#include "fourierdrawer.hpp"
#include <QHBoxLayout>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
auto* w = new QWidget;
auto* hl = new QHBoxLayout;
auto* builder = new FourierBuilder;
builder->setFixedWidth(200);
hl->... | 20.724138 | 82 | 0.685524 | julienlopez |
0325b4f11862d57b96c203066710a5ca83a8fe7b | 1,309 | cpp | C++ | old/practice/lesson8/lspPost.cpp | Lyuminarskiy/oop | b8c6a4b1cf8905c8bbeea5aa80769b5519307654 | [
"MIT"
] | 3 | 2018-02-16T11:22:55.000Z | 2018-03-23T14:10:33.000Z | old/practice/lesson8/lspPost.cpp | OOP-course/OOP-course | b8c6a4b1cf8905c8bbeea5aa80769b5519307654 | [
"MIT"
] | null | null | null | old/practice/lesson8/lspPost.cpp | OOP-course/OOP-course | b8c6a4b1cf8905c8bbeea5aa80769b5519307654 | [
"MIT"
] | 1 | 2020-04-28T17:13:02.000Z | 2020-04-28T17:13:02.000Z | #include <exception>
using namespace std;
// Банковский счёт.
struct Account
{
// Выдать кредит.
virtual double getCredit(double sum, int month, int rate)
{
// Предусловие.
if (sum < 0 || month > 12 || month < 1 || rate < 0)
throw new exception("Некорректные данные");
// Расчёт общей суммы кр... | 20.138462 | 61 | 0.616501 | Lyuminarskiy |
0329246b2d7f88c704321af9e0e9a35d7358d72f | 4,733 | cpp | C++ | installer/logic/tasks/terminate_process.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | 1 | 2019-12-02T08:37:10.000Z | 2019-12-02T08:37:10.000Z | installer/logic/tasks/terminate_process.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | installer/logic/tasks/terminate_process.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "terminate_process.h"
#include "../tools.h"
#ifdef _WIN32
#include <windows.h>
#include <psapi.h>
#include "../../../gui/constants.h"
#endif //_WIN32
namespace installer
{
namespace logic
{
bool get_process_id(const QString& _socket_name, unsigned int& _process_id)
{
... | 23.78392 | 133 | 0.607015 | Vavilon3000 |
032bda21a26c443a3896032614985858964f4fde | 19,005 | cpp | C++ | src/cloud_viewer.cpp | oscarazucena/pcl_test | a55a5bd1b0db2697ed15ed41d3a20f4558afb926 | [
"MIT"
] | 1 | 2019-03-05T01:19:28.000Z | 2019-03-05T01:19:28.000Z | src/cloud_viewer.cpp | oscarazucena/pcl_test | a55a5bd1b0db2697ed15ed41d3a20f4558afb926 | [
"MIT"
] | null | null | null | src/cloud_viewer.cpp | oscarazucena/pcl_test | a55a5bd1b0db2697ed15ed41d3a20f4558afb926 | [
"MIT"
] | null | null | null | #define PCL_NO_PRECOMPILE
#include <pcl/visualization/cloud_viewer.h>
#include <pcl/io/io.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <pcl/common/common.h>
#include <pcl/features/normal_3d.h>
#include <pcl/correspondence.h>
#include <pcl/features/normal_3d_omp.h>
#include <pcl/features/shot_omp... | 35.064576 | 189 | 0.655196 | oscarazucena |
032ddd20496ce3375baf5728703b8002e2d2336f | 2,187 | hpp | C++ | src/vns/tb2cpdgvns.hpp | kad15/SandBoxToulbar2 | 31430ec5e6c6cec1eabe6f5d04bfb8134777821c | [
"MIT"
] | null | null | null | src/vns/tb2cpdgvns.hpp | kad15/SandBoxToulbar2 | 31430ec5e6c6cec1eabe6f5d04bfb8134777821c | [
"MIT"
] | null | null | null | src/vns/tb2cpdgvns.hpp | kad15/SandBoxToulbar2 | 31430ec5e6c6cec1eabe6f5d04bfb8134777821c | [
"MIT"
] | null | null | null | /*
* \file tb2cpdgvns.hpp
* \brief cooperative parallel decomposition guided variable neighborhood search method
*
* Author: Abdelkader Ouali
* PhD Student: LITIO, University of Oran ; GREYC, University of Caen.
*/
#ifndef TB2CPDGVNS_HPP_
#define TB2CPDGVNS_HPP_
#ifdef OPENMPI
//#include <omp.h> // in... | 25.430233 | 156 | 0.6877 | kad15 |
032eb5f47b392006bb30847744fc88a5178161c0 | 613 | hpp | C++ | include/applications/MaximizationProgress.hpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 22 | 2017-05-25T11:59:02.000Z | 2021-08-30T08:51:41.000Z | include/applications/MaximizationProgress.hpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 22 | 2016-06-30T15:51:18.000Z | 2021-12-06T10:43:16.000Z | include/applications/MaximizationProgress.hpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 4 | 2017-09-28T14:58:01.000Z | 2020-12-21T14:22:38.000Z | #ifndef _APPLICATIONS_MAXIMIZATIONPROGRESS_HPP_
#define _APPLICATIONS_MAXIMIZATIONPROGRESS_HPP_
#include <iostream>
#include "ldaplusplus/events/Events.hpp"
using namespace ldaplusplus;
/**
* This class is used to keep track of the progress during the Maximization
* step.
*/
class MaximizationProgress : publi... | 22.703704 | 76 | 0.750408 | angeloskath |
0331e0ffb40bd04ba960745a30f2c4ee9ee8d775 | 3,363 | cpp | C++ | openstudiocore/src/energyplus/ForwardTranslator/ForwardTranslateSpaceInfiltrationEffectiveLeakageArea.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/energyplus/ForwardTranslator/ForwardTranslateSpaceInfiltrationEffectiveLeakageArea.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/energyplus/ForwardTranslator/ForwardTranslateSpaceInfiltrationEffectiveLeakageArea.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2010, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... | 36.956044 | 147 | 0.719298 | bobzabcik |
0332141b3d9edae50fc26effd7d3ec5ebfaef1ab | 4,135 | cpp | C++ | Satoshi/src/Satoshi/Platform/Window/GLFW/GLFWInputMapper.cpp | mises-games/Satoshi-Proto-2 | 552d2aaf21fa04ec14a9af80720e4c72d032422f | [
"MIT"
] | null | null | null | Satoshi/src/Satoshi/Platform/Window/GLFW/GLFWInputMapper.cpp | mises-games/Satoshi-Proto-2 | 552d2aaf21fa04ec14a9af80720e4c72d032422f | [
"MIT"
] | null | null | null | Satoshi/src/Satoshi/Platform/Window/GLFW/GLFWInputMapper.cpp | mises-games/Satoshi-Proto-2 | 552d2aaf21fa04ec14a9af80720e4c72d032422f | [
"MIT"
] | null | null | null | #include <Satoshi/stpch.hpp>
#include "GLFWInputMapper.hpp"
#include <GLFW/glfw3.h>
std::unordered_map<uint16_t, uint16_t> Satoshi::GLFWInputMapper::s_Codes =
{
{ ST_MOUSEBUTTON_LEFT, GLFW_MOUSE_BUTTON_1 },
{ ST_MOUSEBUTTON_MIDDLE, GLFW_MOUSE_BUTTON_3 },
{ ST_MOUSEBUTTON_RIGHT, GLFW_MOUSE_BUTTON_2 },
{ ST_MOUSEBU... | 29.748201 | 74 | 0.728658 | mises-games |
03366b94fbb4fd52fdc6c8e6d1f4c23f0a1b1b6c | 4,432 | cpp | C++ | myrpc/target/myrpc_unittest/myrpc_unittest.cpp | qehgt/myrpc2 | 9271bd4b30d52f938dd884385bf0a53957bb8d90 | [
"Apache-2.0"
] | null | null | null | myrpc/target/myrpc_unittest/myrpc_unittest.cpp | qehgt/myrpc2 | 9271bd4b30d52f938dd884385bf0a53957bb8d90 | [
"Apache-2.0"
] | null | null | null | myrpc/target/myrpc_unittest/myrpc_unittest.cpp | qehgt/myrpc2 | 9271bd4b30d52f938dd884385bf0a53957bb8d90 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include "myecho_server.h"
#include "inc/stream_tcp_socket.h"
#include "inc/session.h"
#include "inc/tcp_client.h"
#include "inc/tcp_server.h"
#include "inc/exception.h"
#include <boost/make_shared.hpp>
GTEST_API_ int main(int argc, char **argv)
{
printf("Running main() from myrpc_unittest.c... | 21.104762 | 62 | 0.629964 | qehgt |
033ce5af061aa5ac32776cd1403ffa9d995281fd | 3,588 | cpp | C++ | ccron/src/ticks_generator.cpp | ananpal/concord-bft | c1d24020c0bcf8a445458c389b92a80dd38bcd0c | [
"Apache-2.0"
] | null | null | null | ccron/src/ticks_generator.cpp | ananpal/concord-bft | c1d24020c0bcf8a445458c389b92a80dd38bcd0c | [
"Apache-2.0"
] | null | null | null | ccron/src/ticks_generator.cpp | ananpal/concord-bft | c1d24020c0bcf8a445458c389b92a80dd38bcd0c | [
"Apache-2.0"
] | null | null | null | // Concord
//
// Copyright (c) 2021 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in
// compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyright no... | 37.375 | 120 | 0.711817 | ananpal |
033f79606371e9d16dc00bfd22dff5f4c4b3f608 | 31,813 | cpp | C++ | src/nodeGenerateState.cpp | steptools/STEPNode | 220fe390ff7c316d5a304e1485a870758ae06e69 | [
"Apache-2.0"
] | 12 | 2016-07-11T21:50:36.000Z | 2020-12-09T17:06:03.000Z | src/nodeGenerateState.cpp | steptools/STEPNode | 220fe390ff7c316d5a304e1485a870758ae06e69 | [
"Apache-2.0"
] | 2 | 2016-07-28T14:41:49.000Z | 2016-08-11T19:05:21.000Z | src/nodeGenerateState.cpp | steptools/STEPNode | 220fe390ff7c316d5a304e1485a870758ae06e69 | [
"Apache-2.0"
] | 3 | 2017-08-11T15:35:19.000Z | 2021-03-12T08:31:52.000Z | //
// Copyright (c) 1991-2018 by STEP Tools 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 l... | 30.298095 | 105 | 0.672838 | steptools |
03422a85dad0e22d0808794a6b2a2d051102dd6d | 2,097 | cpp | C++ | sdk/dgCore/dgPolygonSoupDatabase.cpp | fangguanya/newton-dynamics | 83bde63e760a03ee94082f80c1787baeb7649031 | [
"Zlib"
] | null | null | null | sdk/dgCore/dgPolygonSoupDatabase.cpp | fangguanya/newton-dynamics | 83bde63e760a03ee94082f80c1787baeb7649031 | [
"Zlib"
] | null | null | null | sdk/dgCore/dgPolygonSoupDatabase.cpp | fangguanya/newton-dynamics | 83bde63e760a03ee94082f80c1787baeb7649031 | [
"Zlib"
] | null | null | null | /* Copyright (c) <2003-2016> <Julio Jerez, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpo... | 26.2125 | 112 | 0.711016 | fangguanya |
0347b133f8e41cecd80d49031571373688f40488 | 6,336 | hpp | C++ | libraries/protocol/include/graphene/protocol/base.hpp | EDCBlockchain/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 12 | 2019-10-31T13:24:21.000Z | 2021-12-29T22:02:22.000Z | libraries/protocol/include/graphene/protocol/base.hpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | null | null | null | libraries/protocol/include/graphene/protocol/base.hpp | DONOVA28/blockchain | 41c74b981658d79d770b075191cfb14faeb84dab | [
"MIT"
] | 11 | 2019-07-24T12:46:29.000Z | 2021-11-27T04:41:48.000Z | // see LICENSE.txt
#pragma once
#include <graphene/protocol/types.hpp>
#include <graphene/protocol/asset.hpp>
#include <graphene/protocol/authority.hpp>
#include <fc/thread/future.hpp>
namespace graphene { namespace protocol {
/**
* @defgroup operations Operations
* @ingroup transactions Transactions
... | 36.624277 | 100 | 0.701073 | EDCBlockchain |
034b9a4383ec77b4d12e6bfee240a37966f610b3 | 1,103 | cpp | C++ | cses_1660.cpp | Krshivam/CSES-Problems-solution | 556cfc6b1e31f6b29f9f53f9ee7ca74e8b1c063e | [
"MIT"
] | null | null | null | cses_1660.cpp | Krshivam/CSES-Problems-solution | 556cfc6b1e31f6b29f9f53f9ee7ca74e8b1c063e | [
"MIT"
] | null | null | null | cses_1660.cpp | Krshivam/CSES-Problems-solution | 556cfc6b1e31f6b29f9f53f9ee7ca74e8b1c063e | [
"MIT"
] | null | null | null |
#include<bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define ll long long
#define pb push_back
#define mp make_pair
#define inp(x) cin>>x
#define print(x) cout<<x
#define pii pair<int,int>
#define pll pair<ll,ll>
#define gcd(a,b) __gcd(a,b)
#define reset(d,val) memset(d,val,size... | 18.383333 | 58 | 0.585675 | Krshivam |
034d1bfa43e03be019d8a6ded5cd8d1cf61a4bfa | 6,607 | cpp | C++ | rt_manipulators_lib/src/joint.cpp | rt-net/rt_manipulators_cpp | 311276d9f3a2cbdeb853947dd40b7d5a3700a633 | [
"Apache-2.0"
] | 7 | 2022-01-05T04:53:24.000Z | 2022-03-10T05:28:28.000Z | rt_manipulators_lib/src/joint.cpp | rt-net/rt_manipulators_cpp | 311276d9f3a2cbdeb853947dd40b7d5a3700a633 | [
"Apache-2.0"
] | 8 | 2022-02-07T02:57:25.000Z | 2022-03-30T04:28:55.000Z | rt_manipulators_lib/src/joint.cpp | rt-net/rt_manipulators_cpp | 311276d9f3a2cbdeb853947dd40b7d5a3700a633 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 RT Corporation
//
// 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 ... | 37.327684 | 100 | 0.761768 | rt-net |
034e33aaac4313d3a7ed8b4aedf08dd8f81ab040 | 2,060 | cpp | C++ | src/main.cpp | smahajan07/spotless_mini_explorer | 7e7eb1915cbc62f3e0db841eee9a87a99f8cf0e5 | [
"MIT"
] | 2 | 2021-01-29T07:39:39.000Z | 2021-01-30T02:10:04.000Z | src/main.cpp | smahajan07/spotless_mini_explorer | 7e7eb1915cbc62f3e0db841eee9a87a99f8cf0e5 | [
"MIT"
] | null | null | null | src/main.cpp | smahajan07/spotless_mini_explorer | 7e7eb1915cbc62f3e0db841eee9a87a99f8cf0e5 | [
"MIT"
] | null | null | null | /** MIT License
Copyright (c) 2018 Sarthak Mahajan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, p... | 37.454545 | 79 | 0.764563 | smahajan07 |
0351f518f3d017a2179b9930a23094233a04f4a1 | 17,846 | cpp | C++ | des.cpp | OLIET2357/DES | e280ad966cc0c5e1ea2ced31104ed02f51f21ab6 | [
"Unlicense"
] | null | null | null | des.cpp | OLIET2357/DES | e280ad966cc0c5e1ea2ced31104ed02f51f21ab6 | [
"Unlicense"
] | null | null | null | des.cpp | OLIET2357/DES | e280ad966cc0c5e1ea2ced31104ed02f51f21ab6 | [
"Unlicense"
] | null | null | null | /***
* Fast DES implementation by OLIET.
* Full compatibility with CUDA.
* See README.md
* ***/
#include <iostream>
#include <cstdint>
#ifdef __CUDACC__
#define PREFIX __host__ __device__
#define CONST __constant__
#else
#define PREFIX
#define CONST const
#endif
using block_t = uint64_t;
name... | 35.060904 | 243 | 0.533005 | OLIET2357 |
03539ef79d7b39be131c21fdddcdf1af03e65e52 | 21,167 | cc | C++ | src/cpu/cpu.cc | bit-hack/gbemu | 2205a20f76aa2226ac287976c05c231dddecd44a | [
"BSD-3-Clause"
] | null | null | null | src/cpu/cpu.cc | bit-hack/gbemu | 2205a20f76aa2226ac287976c05c231dddecd44a | [
"BSD-3-Clause"
] | null | null | null | src/cpu/cpu.cc | bit-hack/gbemu | 2205a20f76aa2226ac287976c05c231dddecd44a | [
"BSD-3-Clause"
] | null | null | null | #include "cpu.h"
#include "opcode_cycles.h"
#include "opcode_names.h"
#include "../util/bitwise.h"
#include "../util/log.h"
using bitwise::compose_bytes;
CPU::CPU(MMU& inMMU, Options& inOptions) :
mmu(inMMU),
options(inOptions),
af(a, f),
bc(b, c),
de(d, e),
hl(h, l)
{
}
Cycles CPU::tick() {... | 106.90404 | 551 | 0.700383 | bit-hack |
03550a8366a67ecf7860ece9cf91c89f59460e06 | 5,871 | cpp | C++ | deredundancy-omp/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 58 | 2020-08-06T18:53:44.000Z | 2021-10-01T07:59:46.000Z | deredundancy-omp/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T12:35:02.000Z | 2021-03-04T22:49:25.000Z | deredundancy-omp/main.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 13 | 2020-08-19T13:44:18.000Z | 2021-09-08T04:25:34.000Z | #include "utils.h"
#include "kernels.cpp"
int main(int argc, char **argv) {
Option option;
checkOption(argc, argv, option);
std::vector<Read> reads;
readFile(reads, option);
int readsCount = reads.size();
int* h_lengths = (int*) malloc (sizeof(int) * readsCount);
long* h_offsets = (long*) malloc (sizeof... | 24.772152 | 95 | 0.546755 | BeauJoh |
0359dd958b17a5f2de8735ec2e5f8ec12ee625ac | 1,704 | hpp | C++ | src/core/pin_mesh_rect.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 11 | 2016-03-31T17:46:15.000Z | 2022-02-14T01:07:56.000Z | src/core/pin_mesh_rect.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2016-04-04T16:40:47.000Z | 2019-10-16T22:22:54.000Z | src/core/pin_mesh_rect.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2019-10-16T22:20:15.000Z | 2019-11-28T11:59:03.000Z | /*
Copyright 2016 Mitchell Young
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 ... | 27.934426 | 75 | 0.699531 | tp-ntouran |
0360f261c6af331a95c2e768d4a4219287a6790e | 2,064 | hpp | C++ | moto/DualVector2.hpp | dtecta/motion-toolkit | 4d9d1cee445aa17b1fb4bb50b3f1b9146c2c737d | [
"MIT"
] | 85 | 2015-03-14T11:57:26.000Z | 2022-03-21T22:13:59.000Z | moto/DualVector2.hpp | dtecta/motion-toolkit | 4d9d1cee445aa17b1fb4bb50b3f1b9146c2c737d | [
"MIT"
] | 3 | 2015-03-14T11:38:48.000Z | 2019-04-23T20:25:29.000Z | moto/DualVector2.hpp | dtecta/motion-toolkit | 4d9d1cee445aa17b1fb4bb50b3f1b9146c2c737d | [
"MIT"
] | 8 | 2015-03-14T15:11:46.000Z | 2020-08-31T12:30:26.000Z | /* MoTo - Motion Toolkit
Copyright (c) 2006-2019 Gino van den Bergen, DTECTA
Source published under the terms of the MIT License.
For details please see COPYING file or visit
http://opensource.org/licenses/MIT
*/
#ifndef MT_DUALVECTOR2_HPP
#define MT_DUALVECTOR2_HPP
#include <moto/Dual.hpp>
#inclu... | 28.273973 | 122 | 0.649709 | dtecta |
24f48534e908b4ef6db101ec10dd2c91f93d7216 | 1,565 | cpp | C++ | src/protocol/tcp/server/src/acceptor.cpp | SergioSoldado/Protocol | cbf04230957e00c9ccf9dd53b6e111f3c854d37e | [
"MIT"
] | null | null | null | src/protocol/tcp/server/src/acceptor.cpp | SergioSoldado/Protocol | cbf04230957e00c9ccf9dd53b6e111f3c854d37e | [
"MIT"
] | null | null | null | src/protocol/tcp/server/src/acceptor.cpp | SergioSoldado/Protocol | cbf04230957e00c9ccf9dd53b6e111f3c854d37e | [
"MIT"
] | null | null | null | /**
* @file protocol/tcp/server/src/acceptor.cpp
* @brief Class definition of protocol::tcp::server::Acceptor
*/
#include <iostream>
#include <boost/bind.hpp>
#include <cppunit/extensions/HelperMacros.h>
#include <protocol/service/singleton.hpp>
#include <protocol/tcp/server/acceptor.hpp>
namespace protocol {... | 25.241935 | 98 | 0.690735 | SergioSoldado |
24f57884dd4f6faaa310be4580b07ec438c58132 | 3,168 | cc | C++ | apps/kv/client.cc | nicklijl/Harmonia | 296c125664f793539d808f4b3933d5bce6f19dd9 | [
"MIT"
] | null | null | null | apps/kv/client.cc | nicklijl/Harmonia | 296c125664f793539d808f4b3933d5bce6f19dd9 | [
"MIT"
] | null | null | null | apps/kv/client.cc | nicklijl/Harmonia | 296c125664f793539d808f4b3933d5bce6f19dd9 | [
"MIT"
] | null | null | null | #include <functional>
#include "apps/kv/client.h"
namespace specpaxos {
namespace kv {
using namespace proto;
KVClient::KVClient(Transport *transport,
Client *client)
: transport(transport), client(client),
replied(false), opid(0)
{
this->transportThread = new std::thread(&KVClient::Ru... | 25.967213 | 106 | 0.626578 | nicklijl |
24f64a4a2f9c3ccb483c71341909314b760779f2 | 1,402 | cpp | C++ | Year-3/C++/LabSheet1/leapYear2.cpp | Sledro/College-Programs | 3417180ea2a3dcaae788205a774739d4de4315e4 | [
"MIT"
] | null | null | null | Year-3/C++/LabSheet1/leapYear2.cpp | Sledro/College-Programs | 3417180ea2a3dcaae788205a774739d4de4315e4 | [
"MIT"
] | null | null | null | Year-3/C++/LabSheet1/leapYear2.cpp | Sledro/College-Programs | 3417180ea2a3dcaae788205a774739d4de4315e4 | [
"MIT"
] | null | null | null | /**
* Title: leapyear.cpp
* Description: Enter a year and return if it is a leap year or not.
* @author Daniel Hayden
* @version 1.0
* @date 5/10/2016
*/
#include "stdafx.h"
#include <iostream>
int isLeapyear(int inputYear) {
if (inputYear % 4 == 0 && (inputYear % 100 != 0 || inputYear % 400 == 0)) {
return true... | 16.114943 | 85 | 0.570613 | Sledro |
24f66e77a4da9dbc2e2c92974133ceedab9d0314 | 237 | hpp | C++ | include/openpose/experimental/producer/headers.hpp | meiwanlanjun/openpose | 71078eb1b7571789c7589cf6c8de1786c3227a90 | [
"DOC",
"MIT-CMU"
] | 717 | 2018-10-31T16:52:42.000Z | 2022-03-31T16:13:47.000Z | include/openpose/experimental/producer/headers.hpp | meiwanlanjun/openpose | 71078eb1b7571789c7589cf6c8de1786c3227a90 | [
"DOC",
"MIT-CMU"
] | 48 | 2018-11-08T12:16:43.000Z | 2020-08-10T00:24:50.000Z | include/openpose/experimental/producer/headers.hpp | meiwanlanjun/openpose | 71078eb1b7571789c7589cf6c8de1786c3227a90 | [
"DOC",
"MIT-CMU"
] | 180 | 2018-10-31T18:41:33.000Z | 2022-03-27T23:49:06.000Z | #ifndef OPENPOSE_EXPERIMENTAL_PRODUCER_HEADERS_HPP
#define OPENPOSE_EXPERIMENTAL_PRODUCER_HEADERS_HPP
// producer module
// #include <openpose/experimental/producer/wPoseLoader.hpp>
#endif // OPENPOSE_EXPERIMENTAL_PRODUCER_HEADERS_HPP
| 29.625 | 60 | 0.869198 | meiwanlanjun |
24f8c52f354ae14ba3c2cb5fb9d6cabf0921cbb9 | 13,723 | hpp | C++ | include/lbann/utils/dnn_lib/cudnn.hpp | davidHysom/lbann | 5e0565bf2c0a1f304c5bd0e5d80b641c1c5c61fb | [
"Apache-2.0"
] | null | null | null | include/lbann/utils/dnn_lib/cudnn.hpp | davidHysom/lbann | 5e0565bf2c0a1f304c5bd0e5d80b641c1c5c61fb | [
"Apache-2.0"
] | 5 | 2021-07-15T20:51:21.000Z | 2022-01-01T03:18:05.000Z | include/lbann/utils/dnn_lib/cudnn.hpp | ekmixon/lbann | 665797a112dc96d15bd1d958de61f48bf5d3d21f | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... | 39.776812 | 106 | 0.729942 | davidHysom |
24f9cb7aea61daacca1225f93e7ed286973348fc | 4,889 | cpp | C++ | src/pgen/default_pgen.cpp | kahoooo/athena-public | 583aee106677cba7fa5ea4e3689e2cfb81796e25 | [
"BSD-3-Clause"
] | 174 | 2016-11-30T01:20:14.000Z | 2022-02-22T16:23:55.000Z | src/pgen/default_pgen.cpp | kahoooo/athena-public | 583aee106677cba7fa5ea4e3689e2cfb81796e25 | [
"BSD-3-Clause"
] | 74 | 2017-01-30T22:37:33.000Z | 2021-05-10T17:20:33.000Z | src/pgen/default_pgen.cpp | kahoooo/athena-public | 583aee106677cba7fa5ea4e3689e2cfb81796e25 | [
"BSD-3-Clause"
] | 126 | 2016-12-08T14:03:22.000Z | 2022-03-31T06:01:59.000Z | //========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... | 44.045045 | 90 | 0.522806 | kahoooo |
70008f5637e30d2554149874c3396212660ee95e | 800 | cpp | C++ | Microsoft.ReactNative/ReactHost/ReactErrorProvider.cpp | mganandraj/react-native-windows-dbg | bc29156de6a984795a4956790adf53f4f9037df3 | [
"MIT"
] | null | null | null | Microsoft.ReactNative/ReactHost/ReactErrorProvider.cpp | mganandraj/react-native-windows-dbg | bc29156de6a984795a4956790adf53f4f9037df3 | [
"MIT"
] | null | null | null | Microsoft.ReactNative/ReactHost/ReactErrorProvider.cpp | mganandraj/react-native-windows-dbg | bc29156de6a984795a4956790adf53f4f9037df3 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "ReactErrorProvider.h"
namespace Mso::React {
const Mso::ErrorProvider<ReactError, ReactErrorProviderGuid> s_reactErrorProvider{};
const Mso::ErrorProvider<ReactError, ReactErrorProviderGuid> &ReactErrorPr... | 29.62963 | 116 | 0.75375 | mganandraj |
7000b3159efd076e0c881ce36ed7dab87ab3e260 | 954 | cpp | C++ | codeforces/M - Mountain Ranges/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/M - Mountain Ranges/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/M - Mountain Ranges/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729# created: Nov/27/2019 12:05
* solution_verdict: Accepted language: GNU C++14
* run... | 35.333333 | 111 | 0.37631 | kzvd4729 |
7000edda89c4e393288b98650182ba308c3f47f4 | 1,260 | cpp | C++ | source/482.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | 2 | 2017-02-28T11:39:13.000Z | 2019-12-07T17:23:20.000Z | source/482.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | source/482.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | //
// 482.cpp
// LeetCode
//
// Created by Narikbi on 01.03.17.
// Copyright © 2017 app.leetcode.kz. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <cma... | 17.5 | 66 | 0.490476 | narikbi |
700434b9f297c13e9b79b06b79f32e357086871b | 806 | hpp | C++ | src/visu/tools/smoothdurations.hpp | dubkois/ReusWorld | 15ccf4dbde20d6b600b6e5dc706435d6dd4eb620 | [
"MIT"
] | null | null | null | src/visu/tools/smoothdurations.hpp | dubkois/ReusWorld | 15ccf4dbde20d6b600b6e5dc706435d6dd4eb620 | [
"MIT"
] | null | null | null | src/visu/tools/smoothdurations.hpp | dubkois/ReusWorld | 15ccf4dbde20d6b600b6e5dc706435d6dd4eb620 | [
"MIT"
] | null | null | null | #ifndef _SMOOTH_DURATIONS_HPP_
#define _SMOOTH_DURATIONS_HPP_
#include <QElapsedTimer>
#include <QQueue>
class SmoothDurationManager {
public:
SmoothDurationManager (uint frames, int debugLevel=0) : frames(frames), debugLevel(debugLevel) {
timer.start();
}
/*! \brief in ms
*/
double smoothDuration (... | 17.911111 | 98 | 0.662531 | dubkois |
70096050262eaafa23d3d00d90a1f9b30fbb4937 | 1,939 | cpp | C++ | Source/OpenTournament/UR_HealthBase.cpp | HAARP-art/OpenTournament | 1bb188983ba4d013a8ce00bbe1a333f2952814e8 | [
"OML"
] | 97 | 2020-05-24T23:09:26.000Z | 2022-01-22T13:35:58.000Z | Source/OpenTournament/UR_HealthBase.cpp | HAARP-art/OpenTournament | 1bb188983ba4d013a8ce00bbe1a333f2952814e8 | [
"OML"
] | 165 | 2020-05-26T02:42:54.000Z | 2022-03-29T11:01:11.000Z | Source/OpenTournament/UR_HealthBase.cpp | HAARP-art/OpenTournament | 1bb188983ba4d013a8ce00bbe1a333f2952814e8 | [
"OML"
] | 78 | 2020-05-24T23:10:29.000Z | 2022-03-14T13:54:09.000Z | // Copyright (c) 2019-2020 Open Tournament Project, All Rights Reserved.
/////////////////////////////////////////////////////////////////////////////////////////////////
#include "UR_HealthBase.h"
#include "UR_Character.h"
#include "UR_AttributeSet.h"
////////////////////////////////////////////////////////... | 34.625 | 177 | 0.58329 | HAARP-art |
7009d9eeb6728d373794ba8d33293f9c06445e4e | 3,097 | cpp | C++ | 3_module/3/3/main.cpp | moguchev/Algorithms | 0bdaa86572115111517723216e6db1ba58f6c254 | [
"MIT"
] | null | null | null | 3_module/3/3/main.cpp | moguchev/Algorithms | 0bdaa86572115111517723216e6db1ba58f6c254 | [
"MIT"
] | null | null | null | 3_module/3/3/main.cpp | moguchev/Algorithms | 0bdaa86572115111517723216e6db1ba58f6c254 | [
"MIT"
] | null | null | null | /*Требуется отыскать самый выгодный маршрут между городами. Из города может выходить дорога, которая возвращается в этот же город.
Требуемое время работы O((N + M)log N), где N – количество городов, M – известных дорог между ними.
N ≤ 10000, M ≤ 250000.
Длина каждой дороги ≤ 10000.*/
#include <iostream>
#include <vect... | 33.301075 | 131 | 0.545366 | moguchev |
700f5f2c4eb66c46fb0674f8afa6c58020202cdb | 1,834 | cpp | C++ | branch/old_angsys/angsys_beta2/source/angsys/angsys.shared/source/timer.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta2/source/angsys/angsys.shared/source/timer.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta2/source/angsys/angsys.shared/source/timer.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include <angsys.hpp>
#include <ang/core/time.hpp>
using namespace ang;
using namespace ang::core::time;
extern "C" ulong64 ang_get_performance_time()
{
{
#if defined ANDROID_PLATFORM || defined LINUX_PLATFORM
struct timespec ts;
ulong64 theTick = 0;
clock_gettime(CLOCK_REALTIME, &ts);
theTi... | 23.21519 | 76 | 0.715376 | ChuyX3 |
701018df461dad2def917ed536b3fb928f370ade | 4,820 | cpp | C++ | src/plugins/azoth/plugins/xoox/xep0232handler.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/plugins/azoth/plugins/xoox/xep0232handler.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/xoox/xep0232handler.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 31.096774 | 83 | 0.660788 | MellonQ |
701a8b48749c873606a1444c5b23d3ab7a3f8a76 | 1,605 | hh | C++ | src/model.hh | dnery/scramble | 06d01f2483eaaaba2b74fd1fb9e81a2c4d93a7be | [
"MIT"
] | 2 | 2016-09-10T20:56:11.000Z | 2017-02-23T17:01:48.000Z | src/model.hh | dnery/scramble | 06d01f2483eaaaba2b74fd1fb9e81a2c4d93a7be | [
"MIT"
] | null | null | null | src/model.hh | dnery/scramble | 06d01f2483eaaaba2b74fd1fb9e81a2c4d93a7be | [
"MIT"
] | null | null | null | #ifndef SCRAMBLE_MODEL_H
#define SCRAMBLE_MODEL_H
#include "mesh.hh"
#include <assimp/scene.h>
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
class model {
std::string m_workpath; // A model's workpath must contain all of it's assets
std::vector<mesh> m_meshes; ... | 33.4375 | 101 | 0.56947 | dnery |
701ec92cdae17ab0d1867d19241351c7a7a261b1 | 428 | hh | C++ | Mu2eG4/inc/constructMBS.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-06-25T00:00:12.000Z | 2021-06-25T00:00:12.000Z | Mu2eG4/inc/constructMBS.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | Mu2eG4/inc/constructMBS.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | #ifndef Mu2eG4_constructMBS_hh
#define Mu2eG4_constructMBS_hh
//
// Free function to create Muon Beam Stop and some elements of the Cryostat in G4
//
// $Id: constructMBS.hh,v 1.4 2012/11/19 23:03:24 genser Exp $
// $Author: genser $
// $Date: 2012/11/19 23:03:24 $
//
// Original author KLG
//
namespace mu2e {
clas... | 19.454545 | 81 | 0.714953 | bonventre |
702056e3b9def68ae2d4b7034fb0f0c9eee970b8 | 5,081 | cpp | C++ | table_item.cpp | beached/spreadsheet | ae5658132cdf642023d77527172d0b74952158ec | [
"MIT"
] | null | null | null | table_item.cpp | beached/spreadsheet | ae5658132cdf642023d77527172d0b74952158ec | [
"MIT"
] | null | null | null | table_item.cpp | beached/spreadsheet | ae5658132cdf642023d77527172d0b74952158ec | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2014-2016 Darrell Wright
//
// 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... | 32.363057 | 146 | 0.670537 | beached |
7022b6613fe8b74210216a2f40b43a40e7e7e447 | 11,047 | cpp | C++ | Axis.Core/application/parsing/parsers/PartParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Core/application/parsing/parsers/PartParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Core/application/parsing/parsers/PartParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "PartParser.hpp"
#include "AxisString.hpp"
#include "foundation/definitions/AxisInputLanguage.hpp"
#include "foundation/ArgumentException.hpp"
#include "foundation/InvalidSyntaxException.hpp"
#include "foundation/UnexpectedExpressionException.hpp"
#include "foundation/CustomParserErrorException.hpp"
#include "... | 41.530075 | 149 | 0.758668 | renato-yuzup |
702a9efe0ed37be54d6e4289cf0fbeabafac6900 | 6,742 | cpp | C++ | common/src/QCCTV_ImageSaver.cpp | alex-spataru/qcctv | 9dd59246b7470908b2cabb022f81ab928d3c90be | [
"MIT"
] | 10 | 2018-07-18T13:09:47.000Z | 2022-02-02T20:27:14.000Z | common/src/QCCTV_ImageSaver.cpp | alex-spataru/qcctv | 9dd59246b7470908b2cabb022f81ab928d3c90be | [
"MIT"
] | null | null | null | common/src/QCCTV_ImageSaver.cpp | alex-spataru/qcctv | 9dd59246b7470908b2cabb022f81ab928d3c90be | [
"MIT"
] | 6 | 2017-08-22T01:12:56.000Z | 2019-07-10T19:15:23.000Z | /*
* Copyright (c) 2016 Alex Spataru
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, ... | 33.879397 | 81 | 0.597152 | alex-spataru |
702d2abdbf92b2c514edef46728a634254703384 | 2,316 | hpp | C++ | include/cppcoro/net/socket_send_operation.hpp | richard-vock/cppcoro | 8933f03ff18b6a004a3ff2a271f4f74fafb29a96 | [
"MIT"
] | 2,324 | 2017-04-20T00:53:31.000Z | 2022-03-31T08:30:35.000Z | include/cppcoro/net/socket_send_operation.hpp | AlexCr4ckPentest/cppcoro | 4e6b44eaec34b8a7fb82357515ece84d64381a50 | [
"MIT"
] | 165 | 2017-04-10T21:40:51.000Z | 2022-02-25T15:45:38.000Z | include/cppcoro/net/socket_send_operation.hpp | AlexCr4ckPentest/cppcoro | 4e6b44eaec34b8a7fb82357515ece84d64381a50 | [
"MIT"
] | 325 | 2017-05-04T18:48:21.000Z | 2022-03-28T19:29:54.000Z | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#ifndef CPPCORO_NET_SOCKET_SEND_OPERATION_HPP_INCLUDED
#define CPPCORO_... | 24.378947 | 110 | 0.718048 | richard-vock |
702ddbd20246e31e04f2de2fb4cf12b8a1b12225 | 112 | cc | C++ | src/util/bloom_filter.cc | YukinoDB/YukinoDB | 74be184d7e2adae4d070f11bcbabdac5697705b7 | [
"BSD-2-Clause"
] | 1 | 2017-01-06T02:02:33.000Z | 2017-01-06T02:02:33.000Z | src/util/bloom_filter.cc | YukinoDB/YukinoDB | 74be184d7e2adae4d070f11bcbabdac5697705b7 | [
"BSD-2-Clause"
] | null | null | null | src/util/bloom_filter.cc | YukinoDB/YukinoDB | 74be184d7e2adae4d070f11bcbabdac5697705b7 | [
"BSD-2-Clause"
] | null | null | null | #include "util/bloom_filter.h"
namespace yukino {
namespace util {
} // namespace util
} // namespace yukino | 12.444444 | 30 | 0.714286 | YukinoDB |
702fe83880ed37ca1c4a68bbf00c395b3e575e2f | 3,144 | cpp | C++ | Lesson5/Exercise27/graph_coloring.cpp | gogowonji/080239 | e2af987cf5266f9da515fb2afe17dafe6b1ac01b | [
"MIT"
] | 33 | 2020-12-15T07:37:24.000Z | 2022-03-08T16:26:37.000Z | Lesson5/Exercise27/graph_coloring.cpp | gogowonji/080239 | e2af987cf5266f9da515fb2afe17dafe6b1ac01b | [
"MIT"
] | 1 | 2021-05-08T19:28:31.000Z | 2021-05-08T19:28:31.000Z | Lesson5/Exercise27/graph_coloring.cpp | gogowonji/080239 | e2af987cf5266f9da515fb2afe17dafe6b1ac01b | [
"MIT"
] | 26 | 2021-01-04T07:21:31.000Z | 2022-02-07T12:39:42.000Z | #include <string>
#include <vector>
#include <iostream>
#include <set>
#include <map>
#include <unordered_map>
using namespace std;
template <typename T>
struct Edge
{
unsigned src;
unsigned dst;
T weight;
// Edge 객체 비교는 가중치를 이용
inline bool operator< (const Edge<T>& e) const
{
return this->weight < e.weight... | 18.60355 | 61 | 0.579198 | gogowonji |
70357c9d19d6b47f5395531214f23676dcdfb4c5 | 704 | cpp | C++ | world/source/unit_tests/Armour_test.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | world/source/unit_tests/Armour_test.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | world/source/unit_tests/Armour_test.cpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "gtest/gtest.h"
TEST(SW_World_Armour, get_is_good_cstat)
{
Armour a;
EXPECT_FALSE(a.get_is_good());
a.set_evade(2);
EXPECT_TRUE(a.get_is_good());
a.set_evade(6);
EXPECT_TRUE(a.get_is_good());
a.set_soak(-8);
EXPECT_FALSE(a.get_is_good());
a.set_addl_damage(10);
EXPECT_TRUE(a.get_i... | 14.08 | 77 | 0.710227 | prolog |
703e4463a29cd76f75384c34cc521926a3f6273e | 12,256 | cpp | C++ | TheSimplePath/Classes/Qt/TSP_QmlDocument.cpp | Jeanmilost/The-Simple-Path | e4cb88d91dfc893c21b24f35d11f905ae9124ec0 | [
"MIT"
] | 1 | 2022-01-31T06:25:13.000Z | 2022-01-31T06:25:13.000Z | TheSimplePath/Classes/Qt/TSP_QmlDocument.cpp | Jeanmilost/The-Simple-Path | e4cb88d91dfc893c21b24f35d11f905ae9124ec0 | [
"MIT"
] | null | null | null | TheSimplePath/Classes/Qt/TSP_QmlDocument.cpp | Jeanmilost/The-Simple-Path | e4cb88d91dfc893c21b24f35d11f905ae9124ec0 | [
"MIT"
] | null | null | null | /****************************************************************************
* ==> TSP_QmlDocument -----------------------------------------------------*
****************************************************************************
* Description: Qt document *
* Conta... | 30.79397 | 115 | 0.498123 | Jeanmilost |
7041fbb03d94da80971bbf9d37e889e65fa5e3cf | 10,153 | cpp | C++ | Firmware/Grbl_Esp32-main/Grbl_Esp32/Custom/polar_coaster.cpp | himanshuvashisht878/Onyx-Stepper-Motherboard | 0cf4cb2ec061c23a8d8d43e58fe323b1094a17bd | [
"MIT"
] | 49 | 2021-12-15T12:57:20.000Z | 2022-02-07T12:22:10.000Z | Firmware/Grbl_Esp32-main/Grbl_Esp32/Custom/polar_coaster.cpp | pspadale/Onyx-Stepper-Motherboard | e94e6cc2e40869f6ee395a3f6e52c81307373971 | [
"MIT"
] | null | null | null | Firmware/Grbl_Esp32-main/Grbl_Esp32/Custom/polar_coaster.cpp | pspadale/Onyx-Stepper-Motherboard | e94e6cc2e40869f6ee395a3f6e52c81307373971 | [
"MIT"
] | 10 | 2021-12-15T12:57:24.000Z | 2022-01-17T22:47:33.000Z | /*
polar_coaster.cpp - Implements simple inverse kinematics for Grbl_ESP32
Part of Grbl_ESP32
Copyright (c) 2019 Barton Dring @buildlog
Grbl 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 ve... | 41.781893 | 133 | 0.670245 | himanshuvashisht878 |
7046cda10ee1e99ab65487d12641b3cb8b28f2a3 | 1,185 | hpp | C++ | src/common/include/sync_utils.hpp | shimojo-lab/sbc-tdw-streamer | 8989659c3711176174fb62bc0e2669ede1a6e94e | [
"MIT"
] | null | null | null | src/common/include/sync_utils.hpp | shimojo-lab/sbc-tdw-streamer | 8989659c3711176174fb62bc0e2669ede1a6e94e | [
"MIT"
] | null | null | null | src/common/include/sync_utils.hpp | shimojo-lab/sbc-tdw-streamer | 8989659c3711176174fb62bc0e2669ede1a6e94e | [
"MIT"
] | null | null | null | /******************************************
* sync_utils.hpp *
* (utilities to exchange sync messages) *
******************************************/
#ifndef SYNC_UTILS_HPP
#define SYNC_UTILS_HPP
#include <vector>
#include <atomic>
#include <chrono>
namespace _chrono = std::chrono;
using j... | 39.5 | 88 | 0.666667 | shimojo-lab |
70477695733c81326c18dcca1fdc1a30ec224f6f | 23,657 | cpp | C++ | SDKs/CryCode/3.7.0/CryEngine/CryAction/AIDebugRenderer.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/CryEngine/CryAction/AIDebugRenderer.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/CryEngine/CryAction/AIDebugRenderer.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | /********************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2001-2009.
-------------------------------------------------------------------------
File name: AIDebugRenderer.cpp
$Id$
Description: Helper functions to draw some interesting debug shapes.
------... | 31.005242 | 207 | 0.61914 | amrhead |
70521d53fae4ff75f5dc45bb0903285520524592 | 736 | cpp | C++ | Textures/src/Shape.cpp | Karamu98/OpenGLBasic | bffa01951705aca44ea693dde7326bf113ecdf36 | [
"Apache-2.0"
] | null | null | null | Textures/src/Shape.cpp | Karamu98/OpenGLBasic | bffa01951705aca44ea693dde7326bf113ecdf36 | [
"Apache-2.0"
] | null | null | null | Textures/src/Shape.cpp | Karamu98/OpenGLBasic | bffa01951705aca44ea693dde7326bf113ecdf36 | [
"Apache-2.0"
] | null | null | null | #include "Shape.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/ext.hpp>
Shape::Shape() : m_ibo(-1), m_vbo(-1), m_vao(-1)
{
m_objMatrix = glm::inverse(glm::lookAt(glm::vec3(0), glm::vec3(0, 0, 1), glm::vec3(0, 1, 0)));
}
Shape::~Shape()
{
unsigned int buffers[3] = { m_vbo, m_vao, m_ibo };
glDelet... | 21.028571 | 95 | 0.677989 | Karamu98 |
7058e5483415f07bfe73aaceec1b934c7477b1b9 | 140 | cpp | C++ | Source/FSDEngine/Private/RemappedProperties.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSDEngine/Private/RemappedProperties.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSDEngine/Private/RemappedProperties.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "RemappedProperties.h"
FRemappedProperties::FRemappedProperties() {
this->CellSize = EPreviewCellSize::PRV_CELL_SIZE_12_5;
}
| 20 | 58 | 0.785714 | Dr-Turtle |
7063ab64e4690b1a2e704deeb5bf08bc22da80f1 | 2,421 | cpp | C++ | day22/main.cpp | Kazhuu/advent-of-code-2020 | 6478c412788dfc6111477127b27957d4f5a8553d | [
"MIT"
] | 8 | 2020-12-01T18:02:52.000Z | 2021-11-30T10:44:26.000Z | day22/main.cpp | Kazhuu/advent-of-code-2020 | 6478c412788dfc6111477127b27957d4f5a8553d | [
"MIT"
] | null | null | null | day22/main.cpp | Kazhuu/advent-of-code-2020 | 6478c412788dfc6111477127b27957d4f5a8553d | [
"MIT"
] | 3 | 2020-12-03T05:16:06.000Z | 2021-01-25T20:49:41.000Z | #include <vector>
#include <string>
#include <deque>
#include <iostream>
#include <cassert>
std::pair<std::deque<int64_t>, std::deque<int64_t>> parse_input() {
std::deque<int64_t> player1;
std::deque<int64_t> player2;
std::string line;
std::getline(std::cin, line);
while(std::getline(std::cin, line... | 28.151163 | 76 | 0.565882 | Kazhuu |
706442f38155d905e7d71159b38debebbdac4813 | 1,635 | cpp | C++ | srcs/OmniShadowMap.cpp | kyoungwhankim/prms | a7ff665ae8c26a451ab1bac24f4a5193fb674f5f | [
"MIT"
] | null | null | null | srcs/OmniShadowMap.cpp | kyoungwhankim/prms | a7ff665ae8c26a451ab1bac24f4a5193fb674f5f | [
"MIT"
] | null | null | null | srcs/OmniShadowMap.cpp | kyoungwhankim/prms | a7ff665ae8c26a451ab1bac24f4a5193fb674f5f | [
"MIT"
] | null | null | null | #include "OmniShadowMap.h"
bool OmniShadowMap::Init(GLuint shadowWidth, GLuint shadowHeight)
{
this->shadowWidth = shadowWidth;
this->shadowHeight = shadowHeight;
glGenFramebuffers(1, &FBO);
glGenTextures(1, &shadowMap);
glBindTexture(GL_TEXTURE_CUBE_MAP, shadowMap);
for (int i = 0; i < 6; ++i)
{
... | 28.684211 | 144 | 0.765138 | kyoungwhankim |
7064b8227479ae7cab70454bd52201ff9e551d29 | 2,849 | cpp | C++ | State.cpp | theoden8/snake | 410fa3b15d747304e331662fd57acea65d3e1573 | [
"MIT"
] | null | null | null | State.cpp | theoden8/snake | 410fa3b15d747304e331662fd57acea65d3e1573 | [
"MIT"
] | null | null | null | State.cpp | theoden8/snake | 410fa3b15d747304e331662fd57acea65d3e1573 | [
"MIT"
] | null | null | null | #include <cstring>
#include <cstdlib>
#include <iostream>
#ifdef __linux__
#include <unistd.h>
#endif
#include "State.hpp"
#include "Graphics.hpp"
#include "Snake.hpp"
#include "Wall.hpp"
#include "Fruit.hpp"
bool
State::pause = true,
State::running = false;
int
State::latency = 40,
State::latency_delta = 0,
... | 19.923077 | 108 | 0.616357 | theoden8 |
7067ad3250333a34d154a868ca2973a972dc85d9 | 2,820 | cpp | C++ | engine/Graphical/Renderer.cpp | aterlamia/ember-engine | e8776a7f0e407b9570525cf1466ba03a80c32e04 | [
"MIT"
] | null | null | null | engine/Graphical/Renderer.cpp | aterlamia/ember-engine | e8776a7f0e407b9570525cf1466ba03a80c32e04 | [
"MIT"
] | null | null | null | engine/Graphical/Renderer.cpp | aterlamia/ember-engine | e8776a7f0e407b9570525cf1466ba03a80c32e04 | [
"MIT"
] | null | null | null | //
// Created by Aterlamia.
// Part of the Ember-engine
//
#include "Renderer.h"
Renderer::Renderer() {
glGenVertexArrays(1, &vertexArray);
glBindVertexArray(vertexArray);
glGenBuffers(1, &vertextBuffer);
glBindBuffer(GL_ARRAY_BUFFER, vertextBuffer);
glBufferData(GL_ARRAY_BUFFER, RENDERER_BUFFER_SIZE, NULL... | 27.378641 | 110 | 0.702837 | aterlamia |
0ad1610abf174ef664092733dbb6721bb4e6c77d | 4,069 | c++ | C++ | src/extern/inventor/apps/examples/Toolmaker/11.Events/ButtonBoxEvent.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/apps/examples/Toolmaker/11.Events/ButtonBoxEvent.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/apps/examples/Toolmaker/11.Events/ButtonBoxEvent.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... | 29.70073 | 77 | 0.553699 | OpenXIP |
0ad1b99e556e88e000670cdf06ea7788ad14b907 | 4,476 | cpp | C++ | tests/Bootstrap.Tests/tests/ApplicationTests.cpp | samcragg/Autocrat | 179e0b42ddd3ecbf75467e479cd8f2f6c67c82ec | [
"MIT"
] | null | null | null | tests/Bootstrap.Tests/tests/ApplicationTests.cpp | samcragg/Autocrat | 179e0b42ddd3ecbf75467e479cd8f2f6c67c82ec | [
"MIT"
] | 2 | 2020-09-30T07:09:46.000Z | 2021-01-03T20:01:02.000Z | tests/Bootstrap.Tests/tests/ApplicationTests.cpp | samcragg/Autocrat | 179e0b42ddd3ecbf75467e479cd8f2f6c67c82ec | [
"MIT"
] | null | null | null | #include "application.h"
#include "ManagedObjects.h"
#include "mock_services.h"
#include <chrono>
#include <thread>
#include <fstream>
#include <functional>
#include <iostream>
#include <gtest/gtest.h>
#include <cpp_mock.h>
using namespace std::chrono_literals;
namespace
{
std::size_t initialize_managed_thread_ca... | 24.866667 | 89 | 0.680742 | samcragg |
0ad5fd0cea172b308bddd81b17152e2914234dcb | 1,043 | cpp | C++ | tests/cpp14/require_concept_static.cpp | chriskohlhoff/propria | b382e589ef6c01bdde971e23549cb8ca1da1ae3d | [
"BSL-1.0"
] | 10 | 2019-03-31T08:56:08.000Z | 2021-11-15T02:59:24.000Z | tests/cpp14/require_concept_static.cpp | chriskohlhoff/propria | b382e589ef6c01bdde971e23549cb8ca1da1ae3d | [
"BSL-1.0"
] | null | null | null | tests/cpp14/require_concept_static.cpp | chriskohlhoff/propria | b382e589ef6c01bdde971e23549cb8ca1da1ae3d | [
"BSL-1.0"
] | 1 | 2019-03-29T15:35:19.000Z | 2019-03-29T15:35:19.000Z | //
// cpp14/require_concept_static.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#in... | 24.255814 | 79 | 0.668265 | chriskohlhoff |
0ad8db5bdf642fefa0e0147c8888f906b0c36187 | 704 | cpp | C++ | sdl2/uMario/uNext/Bubble.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | 2 | 2021-02-09T11:29:38.000Z | 2021-08-06T10:37:17.000Z | cpp/mario/src/Bubble.cpp | SergiiSharpov/tcpp | b5d3840b6b5bedc736b617a22fe779ceba90ac6f | [
"MIT"
] | null | null | null | cpp/mario/src/Bubble.cpp | SergiiSharpov/tcpp | b5d3840b6b5bedc736b617a22fe779ceba90ac6f | [
"MIT"
] | null | null | null | #include "Bubble.h"
#include "Core.h"
#include "CFG.h"
/* ******************************************** */
Bubble::Bubble(int iXPos, int iYPos) {
this->iXPos = iXPos;
this->iYPos = iYPos;
this->bDestoy = false;
this->iBlockID = 96;
}
Bubble::~Bubble(void) {
}
/* ******************************************** */... | 16.761905 | 65 | 0.491477 | pdpdds |
0adb6d04050f6bc0337364badab1e01096ff98e3 | 2,854 | hpp | C++ | include/avr/sleep/mcu/common.hpp | ricardocosme/avrSLEEP | 4bdfd4747c2aa377a2ebc3f3a05934dafcf33784 | [
"MIT"
] | null | null | null | include/avr/sleep/mcu/common.hpp | ricardocosme/avrSLEEP | 4bdfd4747c2aa377a2ebc3f3a05934dafcf33784 | [
"MIT"
] | null | null | null | include/avr/sleep/mcu/common.hpp | ricardocosme/avrSLEEP | 4bdfd4747c2aa377a2ebc3f3a05934dafcf33784 | [
"MIT"
] | null | null | null | #pragma once
#include <avr/io.hpp>
#include <avr/wdt.hpp>
namespace avr { namespace sleep { namespace mcu {
namespace pwd {
[[gnu::always_inline]] inline void on() {
using namespace avr::io;
set(se, sm1, sm0(off));
}
[[gnu::always_inline]] inline void off() {
using namespace avr::io;
clear(se, sm1, ... | 31.362637 | 73 | 0.549054 | ricardocosme |
0adbd2e6be607b1ff86a705872c965f7e7100008 | 394 | cpp | C++ | UVa-problems/11173.cpp | LeKSuS-04/Competitive-Programming | fbc86a8c6febeef72587a8f94135e92197e1f99e | [
"WTFPL"
] | null | null | null | UVa-problems/11173.cpp | LeKSuS-04/Competitive-Programming | fbc86a8c6febeef72587a8f94135e92197e1f99e | [
"WTFPL"
] | null | null | null | UVa-problems/11173.cpp | LeKSuS-04/Competitive-Programming | fbc86a8c6febeef72587a8f94135e92197e1f99e | [
"WTFPL"
] | null | null | null | /* UVa 11173 - Grey Codes */
// https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2114
// Date: 2021-02-18 19:03:42
// Run time: 0.230
// Verdict: AC
#include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
while (t--) {
int bits, pos;
... | 20.736842 | 99 | 0.563452 | LeKSuS-04 |
0ae259746ffcc1a44d1660191c28e5e16404303c | 3,333 | cpp | C++ | C++/rotate-string.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/rotate-string.cpp | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/rotate-string.cpp | pnandini/LeetCode | e746c3298be96dec8e160da9378940568ef631b1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(1)
// Rabin-Karp Algorithm (rolling hash)
class Solution {
public:
bool rotateString(string A, string B) {
if (A.length() != B.length()) {
return false;
}
static const uint64_t M = 1000000007;
static const uint64_t p = 113;
static cons... | 25.442748 | 71 | 0.412841 | jaiskid |
0ae9228308c03c214845f4c6947481a5256bd76d | 7,164 | cpp | C++ | src/FedTree/Tree/tree.cpp | JerryLife/FedTree | 0544e6ac98c05da7e83d0db957fd93bf3bdf6ebf | [
"Apache-2.0"
] | 12 | 2021-04-27T11:59:15.000Z | 2022-03-15T02:55:52.000Z | src/FedTree/Tree/tree.cpp | JerryLife/FedTree | 0544e6ac98c05da7e83d0db957fd93bf3bdf6ebf | [
"Apache-2.0"
] | 1 | 2021-12-20T09:54:01.000Z | 2021-12-21T04:08:44.000Z | src/FedTree/Tree/tree.cpp | JerryLife/FedTree | 0544e6ac98c05da7e83d0db957fd93bf3bdf6ebf | [
"Apache-2.0"
] | 5 | 2021-04-28T03:27:07.000Z | 2021-12-18T09:55:58.000Z | //
// Created by liqinbin on 10/14/20.
//
#include "FedTree/Tree/tree.h"
#include "thrust/reduce.h"
#include "thrust/execution_policy.h"
#include <numeric>
void Tree::init_CPU(const GHPair sum_gh, const GBDTParam ¶m) {
init_structure(param.depth);
float_type lambda = param.lambda;
auto node_data = nod... | 36.927835 | 116 | 0.584031 | JerryLife |
0aeb00bbf808d64d5f4aa2539edf34a31fc7af36 | 978 | hh | C++ | 2D/projected_area.hh | pfederl/FEM2D-cracks | f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf | [
"MIT"
] | null | null | null | 2D/projected_area.hh | pfederl/FEM2D-cracks | f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf | [
"MIT"
] | null | null | null | 2D/projected_area.hh | pfederl/FEM2D-cracks | f664f7a618a7caa223ad37ed5d9d0f02e1e37ebf | [
"MIT"
] | 1 | 2020-04-14T07:34:33.000Z | 2020-04-14T07:34:33.000Z | #ifndef __PROJECTED_AREA_HH__
#define __PROJECTED_AREA_HH__
#include <assert.h>
#include "Vector3d.hh"
class Plane {
public:
Vector3d norm;
Vector3d pt;
void project_onto( Vector3d & p) const {
Vector3d v = p-pt;
// project v onto normal
Vector3d pv = project( v, norm);
// subtract the projected vector fr... | 17.157895 | 57 | 0.675869 | pfederl |
0aedb7644b6a29d156acf1fa1abcb824fd2739ec | 7,059 | cpp | C++ | LinAlgLib/src/LinearSolvers/JGS.cpp | jsandham/LinAlgLib | 0f5c5b85325894fc6374dc28ad93b1c95a308302 | [
"MIT"
] | null | null | null | LinAlgLib/src/LinearSolvers/JGS.cpp | jsandham/LinAlgLib | 0f5c5b85325894fc6374dc28ad93b1c95a308302 | [
"MIT"
] | null | null | null | LinAlgLib/src/LinearSolvers/JGS.cpp | jsandham/LinAlgLib | 0f5c5b85325894fc6374dc28ad93b1c95a308302 | [
"MIT"
] | null | null | null | //********************************************************************************
//
// MIT License
//
// Copyright(c) 2019 James Sandham
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwareand associated documentation files(the "Software"), to deal
// in the Software ... | 24.510417 | 87 | 0.450914 | jsandham |
0af3797e60e573a1fdef2c3094ef0055d9253d71 | 9,352 | cpp | C++ | src/winagg/WindowedCounter.cpp | vinuev/Adhoc_Pipelines | 86162b5df2a90c71d1eaa8c8b07501f80d1791d3 | [
"BSD-3-Clause"
] | null | null | null | src/winagg/WindowedCounter.cpp | vinuev/Adhoc_Pipelines | 86162b5df2a90c71d1eaa8c8b07501f80d1791d3 | [
"BSD-3-Clause"
] | null | null | null | src/winagg/WindowedCounter.cpp | vinuev/Adhoc_Pipelines | 86162b5df2a90c71d1eaa8c8b07501f80d1791d3 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2020 University of Luxembourg. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
*... | 31.918089 | 158 | 0.63719 | vinuev |
0af38e2b9e6a9096235d6f4d9cfc31bd34651730 | 413 | cpp | C++ | lab_6/src/task6.cpp | miet-students/arch-cs | 8dede75965eb81d0bf70d55e7e78238a716898e4 | [
"MIT"
] | null | null | null | lab_6/src/task6.cpp | miet-students/arch-cs | 8dede75965eb81d0bf70d55e7e78238a716898e4 | [
"MIT"
] | null | null | null | lab_6/src/task6.cpp | miet-students/arch-cs | 8dede75965eb81d0bf70d55e7e78238a716898e4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdint>
extern "C" double task6();
void printArray(uint32_t *arr, uint32_t N)
{
for (uint32_t i = 0; i < N; i++)
{
std::cout << arr[i] << " ";
}
std::cout << std::endl;
}
int main()
{
double res = task6();
std::cout << "Sum of Leibniz series by ASM: " <<res<< std::endl... | 18.772727 | 76 | 0.590799 | miet-students |
0af5f61819b80be92cb1091c8a1edbddad7eb1ab | 1,221 | cpp | C++ | Gameplay/entities/enemies/BugAnimationManager.cpp | AkitaInteractive/Hachiko-Engine | 9d682ed7e00e1f6b889e6e73afa36f290cfb2222 | [
"MIT"
] | 4 | 2022-02-17T11:44:39.000Z | 2022-03-10T02:20:05.000Z | Gameplay/entities/enemies/BugAnimationManager.cpp | AkitaInteractive/Hachiko-Engine | 9d682ed7e00e1f6b889e6e73afa36f290cfb2222 | [
"MIT"
] | 26 | 2022-02-17T20:02:51.000Z | 2022-03-31T22:52:14.000Z | Gameplay/entities/enemies/BugAnimationManager.cpp | AkitaInteractive/Hachiko-Engine | 9d682ed7e00e1f6b889e6e73afa36f290cfb2222 | [
"MIT"
] | null | null | null | #include "scriptingUtil/gameplaypch.h"
#include "entities/enemies/BugAnimationManager.h"
#include "entities/enemies/EnemyController.h"
Hachiko::Scripting::BugAnimationManager::BugAnimationManager(Hachiko::GameObject* game_object)
: Script(game_object, "BugAnimationManager")
, _enemy_controller(nullptr)
, _previous_... | 22.611111 | 94 | 0.752662 | AkitaInteractive |
0af7d540bf420f756ccd7f05a50fd5c869a6aa6c | 427 | cpp | C++ | zad3.cpp | trt5/practika | ea2a1577fce97c98db83f517d8d815566b30dd7f | [
"Unlicense"
] | null | null | null | zad3.cpp | trt5/practika | ea2a1577fce97c98db83f517d8d815566b30dd7f | [
"Unlicense"
] | null | null | null | zad3.cpp | trt5/practika | ea2a1577fce97c98db83f517d8d815566b30dd7f | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main() {
//setlocale(LC_ALL, "RUS");
int a, b;
cout << "Enter two positive integers: \n";
cin >> a >> b;
while (a > 0 && b > 0) {
if (a > b) {
a %= b;
}
else {
b %= a;
... | 18.565217 | 61 | 0.398126 | trt5 |
0afa072e920fbbebabe12e60e581a03ca4bc20a8 | 11,413 | cc | C++ | src/CCA/Components/OnTheFlyAnalysis/controlVolume.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 2 | 2021-12-17T05:50:44.000Z | 2021-12-22T21:37:32.000Z | src/CCA/Components/OnTheFlyAnalysis/controlVolume.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | null | null | null | src/CCA/Components/OnTheFlyAnalysis/controlVolume.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 1 | 2020-11-30T04:46:05.000Z | 2020-11-30T04:46:05.000Z | /*
* The MIT License
*
* Copyright (c) 1997-2020 The University of Utah
*
* 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
* right... | 31.013587 | 140 | 0.641637 | damu1000 |
0afba7cc4770e6ed7af8f046b96df8c8ee333ece | 4,371 | cpp | C++ | code/common/maibo/Resources/ResourceManager.cpp | iboB/maibo | df43ddf82b3c79e00f3d2c8b38db181e5edae264 | [
"MIT"
] | 4 | 2015-08-07T09:11:15.000Z | 2018-01-03T15:47:04.000Z | code/common/maibo/Resources/ResourceManager.cpp | iboB/maibo | df43ddf82b3c79e00f3d2c8b38db181e5edae264 | [
"MIT"
] | null | null | null | code/common/maibo/Resources/ResourceManager.cpp | iboB/maibo | df43ddf82b3c79e00f3d2c8b38db181e5edae264 | [
"MIT"
] | null | null | null | // MaiBo
// Copyright(c) 2015 Borislav Stanimirov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// http://opensource.org/licenses/MIT
//
#include "ResourceManager.h"
#include "maibo/Assets/FileManager.h"
#include "maibo/Common/ResourceTask.h"
#include "maibo/Common/Re... | 28.2 | 164 | 0.668268 | iboB |
0afc016cb2ad600d0973d9fe36410b8fa969a4cb | 1,761 | cpp | C++ | src/TE_WeatherShield.cpp | systronix/TE_WeatherShield | 1a0526834fc64f567232da2ffcde968d144e2d66 | [
"MIT"
] | null | null | null | src/TE_WeatherShield.cpp | systronix/TE_WeatherShield | 1a0526834fc64f567232da2ffcde968d144e2d66 | [
"MIT"
] | null | null | null | src/TE_WeatherShield.cpp | systronix/TE_WeatherShield | 1a0526834fc64f567232da2ffcde968d144e2d66 | [
"MIT"
] | null | null | null | #include "TE_WeatherShield.h"
TEWeatherShield::TEWeatherShield(void) {}
void TEWeatherShield::begin(void) {
selectSensor(Sensor_NONE);
HTU21D.begin();
MS5637.begin();
MS8607.begin();
TSYS01.begin();
TSD305.begin();
}
void TEWeatherShield::selectSensor(enum TEWeatherShield_Sensor sensor) {
pinMode(9, O... | 23.797297 | 72 | 0.679727 | systronix |
0affb7e17b3cd4924363ce1a50463f1db4f7fef3 | 21,900 | cpp | C++ | gnstlib/src/gnstlib_gamma.cpp | guillermo-navas-palencia/gnstlib | e4ecc2a2e73ad91326c5e7550cd0164985296ea1 | [
"Apache-2.0"
] | null | null | null | gnstlib/src/gnstlib_gamma.cpp | guillermo-navas-palencia/gnstlib | e4ecc2a2e73ad91326c5e7550cd0164985296ea1 | [
"Apache-2.0"
] | null | null | null | gnstlib/src/gnstlib_gamma.cpp | guillermo-navas-palencia/gnstlib | e4ecc2a2e73ad91326c5e7550cd0164985296ea1 | [
"Apache-2.0"
] | null | null | null | /* Copyright (C) 2017 A. Gil, G. Navas-Palencia, J. Segura and N. M. Temme
*
* 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 righ... | 31.152205 | 79 | 0.678539 | guillermo-navas-palencia |
e4083d5c6985c43abdbe48fba513543a1398021c | 129 | hpp | C++ | include/HashLib/sha256.hpp | ADD1609/HashLibCpp | 9ab5e4c178be0edbf0dc882d724ff6cf0acc0443 | [
"MIT"
] | 2 | 2022-01-30T18:07:19.000Z | 2022-01-31T12:25:15.000Z | include/HashLib/sha256.hpp | ADD1609/HashLibCpp | 9ab5e4c178be0edbf0dc882d724ff6cf0acc0443 | [
"MIT"
] | null | null | null | include/HashLib/sha256.hpp | ADD1609/HashLibCpp | 9ab5e4c178be0edbf0dc882d724ff6cf0acc0443 | [
"MIT"
] | null | null | null | #pragma once
#include <HashLib/sha2.hpp>
namespace SHA2::SHA256 {
[[nodiscard]] std::string hash(const std::string& msg);
} | 18.428571 | 59 | 0.689922 | ADD1609 |
e40974fb8ac390c4dc41fe207bf93be78f50720d | 359 | cpp | C++ | old/AtCoder/agc017/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | old/AtCoder/agc017/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | old/AtCoder/agc017/B.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
int main() {
set_bool_name("YES", "NO");
int64_t n, a, b, c, d;
cin >> n >> a >> b >> c >> d;
for (int i = 0; i <= n - 1; ++i) {
auto mx = d * i - c * (n - i - 1);
auto mn = c * i - d * (n - i - 1);
if (a + mn <= b && b <= a + mx) {
cout << true << endl;
return 0... | 21.117647 | 38 | 0.392758 | not522 |
e417737f35378c7880607c5b12d9a7f242c2e9d1 | 1,526 | cpp | C++ | mbed/clock/src/clock_mbed.cpp | OpenNuvoton/mbed-client-for-aws | 76ff1a07d4c5061463158d34650209799d08bdcd | [
"Apache-2.0"
] | null | null | null | mbed/clock/src/clock_mbed.cpp | OpenNuvoton/mbed-client-for-aws | 76ff1a07d4c5061463158d34650209799d08bdcd | [
"Apache-2.0"
] | null | null | null | mbed/clock/src/clock_mbed.cpp | OpenNuvoton/mbed-client-for-aws | 76ff1a07d4c5061463158d34650209799d08bdcd | [
"Apache-2.0"
] | null | null | null | /*
* AWS IoT Device SDK for Embedded C 202012.01
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without... | 38.15 | 83 | 0.74574 | OpenNuvoton |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.