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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64761fb25e33e1481807347cd7fe9d1ac6810106 | 1,304 | hpp | C++ | src/phase_field/PFBaseClass.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/phase_field/PFBaseClass.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/phase_field/PFBaseClass.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null |
# ifndef PFBASECLASS_H
# define PFBASECLASS_H
# include "../utils/CommonParams.h"
# include "../utils/GetPot"
using namespace std;
// ---------------------------------------------------------------------
// This is the base class for phase-field classes in the PF App.
// This class serves as an interface, and contai... | 29.636364 | 73 | 0.382669 | flowzario |
64783d070f0a46328f1073e894c7afb53ce20bbd | 6,222 | cpp | C++ | src/core/utility.cpp | Sundancer78/Marlin-2.0.4_SKR_14_turbo_ender3 | d9dbef52e6fb4e110908a6d09d0af00fc0ac9b20 | [
"MIT"
] | 1 | 2020-11-29T18:04:31.000Z | 2020-11-29T18:04:31.000Z | src/core/utility.cpp | Sundancer78/Marlin-2.0.4_SKR_14_turbo_ender3 | d9dbef52e6fb4e110908a6d09d0af00fc0ac9b20 | [
"MIT"
] | 1 | 2020-09-27T14:53:34.000Z | 2020-09-27T14:53:34.000Z | src/core/utility.cpp | Sundancer78/Marlin-2.0.4_SKR_14_turbo_ender3 | d9dbef52e6fb4e110908a6d09d0af00fc0ac9b20 | [
"MIT"
] | null | null | null | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 29.211268 | 124 | 0.605754 | Sundancer78 |
647b799e3c4f615e86414b398073408f20771b30 | 476 | cpp | C++ | Hashing/colorful.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | Hashing/colorful.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | Hashing/colorful.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int colorful(int A) {
vector<int> digits;
while(A) {
digits.push_back(A % 10);
A /= 10;
}
reverse(digits.begin(), digits.end());
unordered_set<int> seen;
for(int i = 0; i < digits.size(); ++i) {
int prd = 1;
for(int j = i; j < digits.size(); ++j) {
prd... | 14.424242 | 42 | 0.537815 | aneesh001 |
647beafa61b468ae327ee06d91311e250936812c | 445 | hpp | C++ | include/ncurses++/widget.hpp | lukaszgemborowski/ncursesplusplus | e104281812dfe47720a8185fe1351393cf66e366 | [
"MIT"
] | 3 | 2019-12-07T19:54:15.000Z | 2021-01-10T18:38:20.000Z | include/ncurses++/widget.hpp | lukaszgemborowski/ncursesplusplus | e104281812dfe47720a8185fe1351393cf66e366 | [
"MIT"
] | 16 | 2019-12-10T13:46:59.000Z | 2019-12-15T00:39:05.000Z | include/ncurses++/widget.hpp | lukaszgemborowski/ncursesplusplus | e104281812dfe47720a8185fe1351393cf66e366 | [
"MIT"
] | null | null | null | #ifndef NCURSESPP_WIDGET_HPP
#define NCURSESPP_WIDGET_HPP
#include <ncurses++/rect.hpp>
namespace ncursespp
{
template<class Base>
class widget
{
public:
widget() = default;
void resize(rect_i r)
{
static_cast<Base *>(this)->do_resize (r);
size_ = r;
}
constexpr auto size() cons... | 13.484848 | 49 | 0.638202 | lukaszgemborowski |
6481578a08d372f27bd4a5df8390b6eb516a4e2c | 1,906 | cpp | C++ | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_try_catch.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | 1 | 2021-02-07T21:33:42.000Z | 2021-02-07T21:33:42.000Z | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_try_catch.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | null | null | null | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_try_catch.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | null | null | null | #include "rr.h"
#include "v8_try_catch.h"
#include "v8_message.h"
using namespace v8;
namespace {
VALUE TryCatchClass;
TryCatch *unwrap(VALUE self) {
TryCatch *tc = 0;
Data_Get_Struct(self, class TryCatch, tc);
if (RTEST(rb_iv_get(self, "dead"))) {
rb_raise(rb_eScriptError, "out of scope access... | 26.84507 | 92 | 0.650052 | tcmaker |
6482b6702810493c8f2e97a4f76bb0627b5d6b58 | 4,399 | cpp | C++ | src/SWCharEst.cpp | tehilinski/SWCharEst | 8e07be7888c3aab0d565906d3c49d4fdc078aab8 | [
"Apache-2.0"
] | null | null | null | src/SWCharEst.cpp | tehilinski/SWCharEst | 8e07be7888c3aab0d565906d3c49d4fdc078aab8 | [
"Apache-2.0"
] | null | null | null | src/SWCharEst.cpp | tehilinski/SWCharEst | 8e07be7888c3aab0d565906d3c49d4fdc078aab8 | [
"Apache-2.0"
] | null | null | null | //-----------------------------------------------------------------------------
// file SWCharEst.h
// class teh::SWCharEst
// brief Estimate values for wilting point, field capacity,
// saturated water content, and saturated hydraulic conductivity
// from soil texture and organic matter.
// Output units are, resp... | 30.130137 | 97 | 0.562401 | tehilinski |
6482bbd062534e9bd835e7aefc027b80aab902a8 | 8,087 | hpp | C++ | rclpy/src/rclpy/action_server.hpp | RoboStack/rclpy | c67e43a69a1580eeac4a90767e24ceeea31a298e | [
"Apache-2.0"
] | 121 | 2015-11-19T19:46:09.000Z | 2022-03-17T16:36:52.000Z | rclpy/src/rclpy/action_server.hpp | RoboStack/rclpy | c67e43a69a1580eeac4a90767e24ceeea31a298e | [
"Apache-2.0"
] | 759 | 2016-01-29T01:44:19.000Z | 2022-03-30T13:37:26.000Z | rclpy/src/rclpy/action_server.hpp | RoboStack/rclpy | c67e43a69a1580eeac4a90767e24ceeea31a298e | [
"Apache-2.0"
] | 160 | 2016-01-12T16:56:21.000Z | 2022-03-22T23:20:35.000Z | // Copyright 2021 Open Source Robotics Foundation, 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 appli... | 31.223938 | 93 | 0.709039 | RoboStack |
52beb0e15483c741bef5c95dfe423fd0773c6ddd | 1,346 | hpp | C++ | include/boost/mpl11/fwd/group.hpp | ldionne/mpl11 | 927d4339edc0c0cc41fb65ced2bf19d26bcd4a08 | [
"BSL-1.0"
] | 80 | 2015-03-09T03:19:12.000Z | 2022-03-04T06:44:12.000Z | include/boost/mpl11/fwd/group.hpp | rbock/mpl11 | 7923ad2bdc0d8ddaa6a6254ebf5be2b5c6f5a277 | [
"BSL-1.0"
] | 1 | 2021-07-27T22:37:43.000Z | 2021-08-06T17:42:07.000Z | include/boost/mpl11/fwd/group.hpp | rbock/mpl11 | 7923ad2bdc0d8ddaa6a6254ebf5be2b5c6f5a277 | [
"BSL-1.0"
] | 8 | 2015-01-28T00:18:57.000Z | 2021-08-06T03:00:49.000Z | /*!
* @file
* Forward declares the @ref Group typeclass.
*
*
* @copyright Louis Dionne 2014
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE.md or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_MPL11_FWD_GROUP_HPP
#define BOOST... | 23.614035 | 78 | 0.60104 | ldionne |
52c67e451150e1475f4bc24b21d7384e46871679 | 2,072 | cpp | C++ | src/luanode_os.cpp | mkottman/LuaNode | b059225855939477147c5d4a6e8df3350c0a25fb | [
"MIT"
] | 1 | 2015-06-13T18:00:06.000Z | 2015-06-13T18:00:06.000Z | src/luanode_os.cpp | mkottman/LuaNode | b059225855939477147c5d4a6e8df3350c0a25fb | [
"MIT"
] | null | null | null | src/luanode_os.cpp | mkottman/LuaNode | b059225855939477147c5d4a6e8df3350c0a25fb | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "LuaNode.h"
#include "luanode_os.h"
#include <boost/bind.hpp>
using namespace LuaNode;
//////////////////////////////////////////////////////////////////////////
///
static void GetHostname_callback(lua_State* L, int callback, int result, std::string hostname) {
lua_rawgeti(L,... | 26.909091 | 112 | 0.602799 | mkottman |
52c71519541b07cb6c6547e0bed329b622ee47de | 5,410 | cpp | C++ | test/unit/math/rev/mat/fun/quad_form_diag_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | test/unit/math/rev/mat/fun/quad_form_diag_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | test/unit/math/rev/mat/fun/quad_form_diag_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/rev/mat.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/rev/mat/fun/expect_matrix_eq.hpp>
#include <test/unit/math/rev/mat/util.hpp>
#include <vector>
using Eigen::Dynamic;
using Eigen::Matrix;
using stan::math::quad_form_diag;
using stan::math::var;
TEST(MathMatrix, quadFormDiag2_vv) {
M... | 25.280374 | 80 | 0.604621 | jrmie |
52ccdcbe5e920fbf1fbb9ed34c60f9e093e9a28e | 2,692 | cc | C++ | src/test/play.cc | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | src/test/play.cc | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | src/test/play.cc | asveikau/audio | 4b8978d5a7855a0ee62cd15b1dd76d35fb6c8290 | [
"0BSD"
] | null | null | null | /*
Copyright (C) 2017, 2018 Andrew Sveikauskas
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
*/
#define __STDC_FORMAT_MACROS 1
#include <AudioCodec.h>
#... | 24.472727 | 134 | 0.61627 | asveikau |
52cfb9fe811594b8ba48bea176f983827194ac2a | 500 | cpp | C++ | widget/labeltest.cpp | malaise/xfreecell | b44169ac15e82f7cbc5379f8ba8b818e9faab611 | [
"Unlicense"
] | 1 | 2021-05-01T16:29:08.000Z | 2021-05-01T16:29:08.000Z | widget/labeltest.cpp | malaise/xfreecell | b44169ac15e82f7cbc5379f8ba8b818e9faab611 | [
"Unlicense"
] | null | null | null | widget/labeltest.cpp | malaise/xfreecell | b44169ac15e82f7cbc5379f8ba8b818e9faab611 | [
"Unlicense"
] | null | null | null | #include "widget.h"
class TestFrame : public NSFrame {
public:
TestFrame() : l(""), con(100, 100) { con.add(&l); container(&con); selectInput(ButtonPressMask); }
void dispatchEvent(const XEvent&);
private:
NSLabel l;
NSHContainer con;
};
void TestFrame::dispatchEvent(const XEvent& ev)
{
static string str(... | 13.888889 | 100 | 0.624 | malaise |
52d5c3901c7c91fb3eb05603d5b90304ae678533 | 1,574 | hpp | C++ | extra/fuzzer/fuzzer_input.hpp | ikrima/immer | 2076affd9d814afc019ba8cd8c2b18a6c79c9589 | [
"BSL-1.0"
] | 1,964 | 2016-11-19T19:04:31.000Z | 2022-03-31T16:31:00.000Z | extra/fuzzer/fuzzer_input.hpp | ikrima/immer | 2076affd9d814afc019ba8cd8c2b18a6c79c9589 | [
"BSL-1.0"
] | 180 | 2016-11-26T22:46:10.000Z | 2022-03-10T10:23:57.000Z | extra/fuzzer/fuzzer_input.hpp | ikrima/immer | 2076affd9d814afc019ba8cd8c2b18a6c79c9589 | [
"BSL-1.0"
] | 133 | 2016-11-27T17:33:20.000Z | 2022-03-07T03:12:49.000Z | //
// immer: immutable data structures for C++
// Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
//
// This software is distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//
#pragma once
#include <cstdint>
#include <memory>... | 22.169014 | 78 | 0.593393 | ikrima |
52d5c7ede2e434650fd1b93c18f3793368b04d45 | 1,278 | hpp | C++ | bark/world/prediction/prediction_settings.hpp | GAIL-4-BARK/bark | 1cfda9ba6e9ec5318fbf01af6b67c242081b516e | [
"MIT"
] | null | null | null | bark/world/prediction/prediction_settings.hpp | GAIL-4-BARK/bark | 1cfda9ba6e9ec5318fbf01af6b67c242081b516e | [
"MIT"
] | null | null | null | bark/world/prediction/prediction_settings.hpp | GAIL-4-BARK/bark | 1cfda9ba6e9ec5318fbf01af6b67c242081b516e | [
"MIT"
] | null | null | null | // Copyright (c) 2020 Julian Bernhard, Klemens Esterle, Patrick Hart and
// Tobias Kessler
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#ifndef BARK_WORLD_PREDICTION_HPP_
#define BARK_WORLD_PREDICTION_HPP_
#include <unordered_map>
#include ... | 27.191489 | 104 | 0.796557 | GAIL-4-BARK |
52dd178f146251eb972d9851384f266eaaaed542 | 3,283 | cpp | C++ | src/wsjcpp_package_downloader_http.cpp | AndreyTomsk/wsjcpp | ea8e149b71e3bece3a6a930d2c9fcdf4d6c93300 | [
"MIT"
] | null | null | null | src/wsjcpp_package_downloader_http.cpp | AndreyTomsk/wsjcpp | ea8e149b71e3bece3a6a930d2c9fcdf4d6c93300 | [
"MIT"
] | null | null | null | src/wsjcpp_package_downloader_http.cpp | AndreyTomsk/wsjcpp | ea8e149b71e3bece3a6a930d2c9fcdf4d6c93300 | [
"MIT"
] | null | null | null |
#include "wsjcpp_package_downloader_http.h"
#include <wsjcpp_core.h>
#include <wsjcpp_package_manager.h>
// ---------------------------------------------------------------------
// WsjcppPackageDownloaderHttp
WsjcppPackageDownloaderHttp::WsjcppPackageDownloaderHttp()
: WsjcppPackageDownloaderBase("http") {
TAG... | 39.554217 | 149 | 0.614986 | AndreyTomsk |
52e43a8fa579a3887f64b378136869e1d662bc0a | 970 | hpp | C++ | render/camera.hpp | vasukas/rodent | 91224465eaa89467916971a8c5ed1357fa487bdf | [
"FTL",
"CC0-1.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | render/camera.hpp | vasukas/rodent | 91224465eaa89467916971a8c5ed1357fa487bdf | [
"FTL",
"CC0-1.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | render/camera.hpp | vasukas/rodent | 91224465eaa89467916971a8c5ed1357fa487bdf | [
"FTL",
"CC0-1.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | #ifndef CAMERA_HPP
#define CAMERA_HPP
#include "vaslib/vas_math.hpp"
class Camera final
{
public:
struct Frame
{
vec2fp pos = {}; ///< Center position
float rot = 0.f; ///< Rotation (radians)
float mag = 1.f; ///< Magnification factor
};
void set_state(Frame frm);
const Frame& get_state() const {return... | 23.095238 | 87 | 0.698969 | vasukas |
52ec98c956f21b6c9dc93e765d7c5eb68c593b80 | 594 | cpp | C++ | C++/brokenswords.cpp | AllysonWindell/Kattis | 5ce1aa108e21416bdf52993ea3bfb5bb86405980 | [
"Unlicense"
] | 19 | 2019-09-20T19:08:24.000Z | 2022-03-17T11:54:57.000Z | C++/brokenswords.cpp | AllysonWindell/Kattis | 5ce1aa108e21416bdf52993ea3bfb5bb86405980 | [
"Unlicense"
] | 2 | 2020-11-06T06:40:40.000Z | 2021-01-24T08:55:32.000Z | C++/brokenswords.cpp | AllysonWindell/Kattis | 5ce1aa108e21416bdf52993ea3bfb5bb86405980 | [
"Unlicense"
] | 18 | 2019-08-18T03:51:35.000Z | 2021-11-23T04:12:29.000Z | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int cases, tb = 0, lr = 0;
cin >> cases;
while (cases-- > 0) {
char c;
for (int x = 0; x < 2; x++) {
cin >> c;
if (c == '0')
tb++;
... | 22 | 63 | 0.373737 | AllysonWindell |
52f1b033de71c4ba54765f24466137a82b890903 | 3,448 | cpp | C++ | MSCL/source/mscl/Communication/WsdaFinder.cpp | offworld-projects/MSCL | 8388e97c92165e16c26c554aadf1e204ebcf93cf | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | 53 | 2015-08-28T02:41:41.000Z | 2022-03-03T07:50:53.000Z | MSCL/source/mscl/Communication/WsdaFinder.cpp | offworld-projects/MSCL | 8388e97c92165e16c26c554aadf1e204ebcf93cf | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | 209 | 2015-09-30T19:36:11.000Z | 2022-03-04T21:52:20.000Z | MSCL/source/mscl/Communication/WsdaFinder.cpp | offworld-projects/MSCL | 8388e97c92165e16c26c554aadf1e204ebcf93cf | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | 55 | 2015-09-03T14:40:01.000Z | 2022-02-04T02:02:01.000Z | /*******************************************************************************
Copyright(c) 2015-2021 Parker Hannifin Corp. All rights reserved.
MIT Licensed. See the included LICENSE.txt for a copy of the full MIT License.
*******************************************************************************/
#include "st... | 29.220339 | 114 | 0.587877 | offworld-projects |
52f1f842f9412a6cdc4292c9b48deb8c23b6f393 | 15,437 | cpp | C++ | Framework/Sources/o2/Scene/UI/WidgetLayer.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Framework/Sources/o2/Scene/UI/WidgetLayer.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Framework/Sources/o2/Scene/UI/WidgetLayer.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2/stdafx.h"
#include "WidgetLayer.h"
#include "o2/Scene/UI/Widget.h"
#include "o2/Scene/UI/WidgetLayout.h"
#include "o2/Scene/Scene.h"
namespace o2
{
WidgetLayer::WidgetLayer():
layout(this), interactableLayout(Vec2F(), Vec2F(1.0f, 1.0f), Vec2F(), Vec2F()), mUID(Math::Random())
{}
WidgetLayer::Widget... | 19.970246 | 129 | 0.699035 | zenkovich |
52f4eaf5f0c362899643d2eecb1792d0c0958e1c | 3,223 | hpp | C++ | include/vcd/actions/header.hpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 1 | 2019-04-30T17:56:23.000Z | 2019-04-30T17:56:23.000Z | include/vcd/actions/header.hpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | null | null | null | include/vcd/actions/header.hpp | qedalab/vcd_assert | 40da307e60600fc4a814d4bba4679001f49f4375 | [
"BSD-2-Clause"
] | 4 | 2018-08-01T08:32:00.000Z | 2019-12-18T06:34:33.000Z | // ============================================================================
// Copyright 2018 Paul le Roux and Calvin Maree
//
// 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 ... | 37.917647 | 81 | 0.710828 | qedalab |
5e0107d605be9ad35c1666ebec2e55d49b15c0c1 | 1,679 | hpp | C++ | mjolnir/core/LoaderBase.hpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 12 | 2017-02-01T08:28:38.000Z | 2018-08-25T15:47:51.000Z | mjolnir/core/LoaderBase.hpp | Mjolnir-MD/Mjolnir | 043df4080720837042c6b67a5495ecae198bc2b3 | [
"MIT"
] | 60 | 2019-01-14T08:11:33.000Z | 2021-07-29T08:26:36.000Z | mjolnir/core/LoaderBase.hpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 8 | 2019-01-13T11:03:31.000Z | 2021-08-01T11:38:00.000Z | #ifndef MJOLNIR_CORE_LOADER_BASE_HPP
#define MJOLNIR_CORE_LOADER_BASE_HPP
#include <mjolnir/util/binary_io.hpp>
#include <fstream>
#include <string>
namespace mjolnir
{
template<typename traitsT>
class System;
template<typename traitsT>
class LoaderBase
{
public:
using traits_type = traitsT;
using real... | 28.948276 | 84 | 0.7433 | yutakasi634 |
5e025c22728d8531b6057985689aa9b830f7eb1c | 783 | cpp | C++ | leetcode/count-artifacts-that-can-be-extracted/attempt-1.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | leetcode/count-artifacts-that-can-be-extracted/attempt-1.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | leetcode/count-artifacts-that-can-be-extracted/attempt-1.cpp | Yash-Singh1/competitive-programming | 3b9d278ed8138ab614e2a3d748627db8f4a2cdbd | [
"MIT"
] | null | null | null | class Solution {
public:
int digArtifacts(int n, vector<vector<int>>& artifacts, vector<vector<int>>& dig) {
int dugUp{0};
int usedDigs[dig.size()];
for (auto artifact: artifacts) {
int artifactEntries{(artifact[2] - artifact[0] + 1) * (artifact[3] - artifact[1] + 1)};
bool used{... | 32.625 | 131 | 0.492976 | Yash-Singh1 |
5e08a8afea7f5395c0c049681f78e61f71a77d34 | 3,131 | cpp | C++ | graph-source-code/527-E/10330073.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/527-E/10330073.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/527-E/10330073.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
//#pragma comment(linker,"/STACK:102400000,102400000")
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <climits>
#include <ctime>
#include <numeric>
#include <vector>
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#inclu... | 22.205674 | 81 | 0.577132 | AmrARaouf |
5e0b38e92a8b35b43b6f54cb1eca6e73d084200e | 676 | cpp | C++ | kernel/Devices/DebugPort/DebugPort.cpp | AymenSekhri/CyanOS | 1e42772911299a40aab0e7aac50181b180941800 | [
"MIT"
] | 63 | 2020-06-18T11:04:07.000Z | 2022-02-24T09:01:44.000Z | kernel/Devices/DebugPort/DebugPort.cpp | AymenSekhri/CyanOS | 1e42772911299a40aab0e7aac50181b180941800 | [
"MIT"
] | 4 | 2020-08-31T23:07:37.000Z | 2021-06-08T21:54:02.000Z | kernel/Devices/DebugPort/DebugPort.cpp | AymenSekhri/CyanOS | 1e42772911299a40aab0e7aac50181b180941800 | [
"MIT"
] | 9 | 2020-08-03T13:48:50.000Z | 2022-03-31T11:50:59.000Z | #include "DebugPort.h"
#include "Arch/x86/Asm.h"
#include <Clib.h>
void DebugPort::write(const char* data, size_t size, DebugColor color)
{
char num[3];
itoa(num, static_cast<int>(color), 10);
put("\x1B[", 2);
put(num, 2);
put('m');
put(data, size);
put("\x1B[0m", 4);
}
void DebugPort::write(const char* data, D... | 18.777778 | 70 | 0.628698 | AymenSekhri |
5e0c84d6167976c417d34aff3e5df3a17edee939 | 2,569 | cpp | C++ | src/value.cpp | RAttab/reflect | b600898e4537febade510125daf41736db2ecfcc | [
"BSD-2-Clause"
] | 45 | 2015-03-24T09:35:46.000Z | 2021-05-06T11:50:34.000Z | src/value.cpp | RAttab/reflect | b600898e4537febade510125daf41736db2ecfcc | [
"BSD-2-Clause"
] | null | null | null | src/value.cpp | RAttab/reflect | b600898e4537febade510125daf41736db2ecfcc | [
"BSD-2-Clause"
] | 11 | 2015-01-27T12:08:21.000Z | 2020-08-29T16:34:13.000Z | /* value.cpp -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 25 Mar 2014
FreeBSD-style copyright and disclaimer apply
Value implementation.
*/
#include "reflect.h"
namespace reflect {
/******************************************************************************/
/* VALUE ... | 17.965035 | 80 | 0.561308 | RAttab |
5e0e76c5d205136e1d434d25d8c7e1a25c2b9e00 | 4,945 | cc | C++ | plugins/header_rewrite/conditions_geo_maxmind.cc | dsouza93/trafficserver | 941f994388faecde741db4b9e6d03a753d2038be | [
"Apache-2.0"
] | 1 | 2021-06-13T16:20:12.000Z | 2021-06-13T16:20:12.000Z | plugins/header_rewrite/conditions_geo_maxmind.cc | lvf25/trafficserver | 3d584af796bad1e9e3c03b2af5485b630ffedafb | [
"Apache-2.0"
] | null | null | null | plugins/header_rewrite/conditions_geo_maxmind.cc | lvf25/trafficserver | 3d584af796bad1e9e3c03b2af5485b630ffedafb | [
"Apache-2.0"
] | 1 | 2020-02-11T03:40:20.000Z | 2020-02-11T03:40:20.000Z | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may no... | 26.72973 | 94 | 0.695248 | dsouza93 |
5e0ecfc5113812c3d487f1630c404c3619e03da4 | 6,480 | cpp | C++ | examples/RPG/PlayerStates.cpp | xcasadio/casaengine | 19e34c0457265435c28667df7f2e5c137d954b98 | [
"MIT"
] | null | null | null | examples/RPG/PlayerStates.cpp | xcasadio/casaengine | 19e34c0457265435c28667df7f2e5c137d954b98 | [
"MIT"
] | null | null | null | examples/RPG/PlayerStates.cpp | xcasadio/casaengine | 19e34c0457265435c28667df7f2e5c137d954b98 | [
"MIT"
] | null | null | null | #include "PlayerStates.h"
#include "Game\Game.h"
#include "PlayerController.h"
#include "CharacterEnum.h"
#include "MessageType.h"
//////////////////////////////////////////////////////////////////////////
/**
*
*/
PlayerStateIdle::PlayerStateIdle()
{
}
/**
*
*/
PlayerStateIdle::~PlayerStateIdle()
{
}
/**
*
*... | 26.557377 | 115 | 0.677623 | xcasadio |
5e17731587b4d27616943b43893ef0cf40f74b60 | 5,487 | cc | C++ | gw6c-messaging/src/windows/pipeio.cc | kevinmark/gw6c-6_0_1 | 8b774d2164e8964ee132a031b2a028e565b97ab4 | [
"BSD-3-Clause"
] | 1 | 2018-01-14T23:24:37.000Z | 2018-01-14T23:24:37.000Z | gw6c-messaging/src/windows/pipeio.cc | kevinmark/gw6c-6_0_1 | 8b774d2164e8964ee132a031b2a028e565b97ab4 | [
"BSD-3-Clause"
] | null | null | null | gw6c-messaging/src/windows/pipeio.cc | kevinmark/gw6c-6_0_1 | 8b774d2164e8964ee132a031b2a028e565b97ab4 | [
"BSD-3-Clause"
] | null | null | null | // **************************************************************************
// $Id: pipeio.cc,v 1.4 2008/01/08 19:34:01 cnepveu Exp $
//
// Copyright (c) 2007 Hexago Inc. All rights reserved.
//
// For license information refer to CLIENT-LICENSE.TXT
//
// Description:
// Windows implementation of the PipeIO clas... | 27.029557 | 91 | 0.531256 | kevinmark |
5e219979614a3a89bfe2ed0736b7e2962595a3bf | 1,183 | cpp | C++ | qml_2048/src/main.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | qml_2048/src/main.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | qml_2048/src/main.cpp | codingpotato/clean-2048 | 70e3a7ae31c403195900db9a811985435365edf8 | [
"MIT"
] | null | null | null | #include <QApplication>
#include <QQmlApplicationEngine>
#include "qt_view_model/BoardViewModel.h"
#include "qt_view_model/Controller.h"
#include "qt_view_model/GameOverViewModel.h"
#include "qt_view_model/ScoreViewModel.h"
#include "router/Router.h"
#include "storage/Storage.h"
int main(int argc, char *argv[]) {
p... | 36.96875 | 80 | 0.671175 | codingpotato |
5e34eb513c2b64479d3f73b97ccd486a633c8cf6 | 902 | hpp | C++ | libs/PhiCore/include/phi/compiler_support/nodiscard.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 3 | 2020-12-21T13:47:35.000Z | 2022-03-16T23:53:21.000Z | libs/PhiCore/include/phi/compiler_support/nodiscard.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 53 | 2020-08-07T07:46:57.000Z | 2022-02-12T11:07:08.000Z | libs/PhiCore/include/phi/compiler_support/nodiscard.hpp | AMS21/Phi | d62d7235dc5307dd18607ade0f95432ae3a73dfd | [
"MIT"
] | 1 | 2020-08-19T15:50:02.000Z | 2020-08-19T15:50:02.000Z | #ifndef INCG_PHI_CORE_COMPILER_SUPPORT_NODISCARD_HPP
#define INCG_PHI_CORE_COMPILER_SUPPORT_NODISCARD_HPP
#include "phi/phi_config.hpp"
#if PHI_HAS_EXTENSION_PRAGMA_ONCE()
# pragma once
#endif
#include "phi/compiler_support/compiler.hpp"
#include "phi/compiler_support/cpp_standard.hpp"
#if PHI_HAS_FEATURE_NODISC... | 32.214286 | 67 | 0.783814 | AMS21 |
5e37b8cc9172d77cb987b9143aa6861d46b6fb4d | 664 | cpp | C++ | views/formview/emptyformwidget.cpp | DatabasesWorks/passiflora-symphytum-configurable-fields | 6128d0391fe33438250efad4398d65c5982b005b | [
"BSD-2-Clause"
] | 2 | 2017-10-01T07:59:54.000Z | 2021-09-09T14:40:41.000Z | views/formview/emptyformwidget.cpp | DatabasesWorks/passiflora-symphytum-configurable-fields | 6128d0391fe33438250efad4398d65c5982b005b | [
"BSD-2-Clause"
] | 3 | 2017-11-01T15:42:46.000Z | 2019-02-18T08:42:33.000Z | views/formview/emptyformwidget.cpp | DatabasesWorks/passiflora-symphytum-configurable-fields | 6128d0391fe33438250efad4398d65c5982b005b | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2012 Giorgio Wicklein <giowckln@gmail.com>
*/
//-----------------------------------------------------------------------------
// Hearders
//-----------------------------------------------------------------------------
#include "emptyformwidget.h"
#include "ui_emptyformwidget.h"
//-------------... | 23.714286 | 79 | 0.356928 | DatabasesWorks |
5e3a956d9ab6f24c2ed4434cdeb62f26069e7902 | 3,104 | hpp | C++ | include/codegen/include/UnityEngine/ProBuilder/BezierShape.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/ProBuilder/BezierShape.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/ProBuilder/BezierShape.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:20 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBehaviour.hpp"
// Including type: Un... | 36.093023 | 103 | 0.70232 | Futuremappermydud |
5e3d2cc60a2c5c1696708cda7276b63940e92e2d | 357 | cpp | C++ | oopAsgn3/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | oopAsgn3/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | oopAsgn3/prob4.cpp | debargham14/Object-Oriented-Programming-Assignment | 25d7c87803e957c16188cac563eb238654c5a87b | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
//max function to return the pointer as the argument
int max(int &a, int &b) {
return (a > b ? a : b);
}
int main() {
int first, second;
cout << "Enter the first and the second numbers respectively :- ";
cin >> first >> second;
int c = max(first, second);
cout << "The m... | 21 | 67 | 0.635854 | debargham14 |
1e13b659bc9bb9a101b1e3e4aaab70c4c2c45449 | 1,237 | hpp | C++ | src/coapp/coapp.hpp | JoachimDuquesne/lely | cc6bad10ba57e380386622211e603006eeee0fff | [
"Apache-2.0"
] | null | null | null | src/coapp/coapp.hpp | JoachimDuquesne/lely | cc6bad10ba57e380386622211e603006eeee0fff | [
"Apache-2.0"
] | null | null | null | src/coapp/coapp.hpp | JoachimDuquesne/lely | cc6bad10ba57e380386622211e603006eeee0fff | [
"Apache-2.0"
] | null | null | null | /**@file
* This is the internal header file of the C++ CANopen application library.
*
* @copyright 2018-2019 Lely Industries N.V.
*
* @author J. S. Seldenthuis <jseldenthuis@lely.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | 28.113636 | 75 | 0.747777 | JoachimDuquesne |
1e14211c6d6d10936884843f06432493915fce7e | 3,935 | hpp | C++ | sferes/sferes/stat/pareto_front.hpp | Evolving-AI-Lab/innovation-engine | 58c7fcc3cbe3d6f8f59f87d95bdb5f2302f425ba | [
"MIT"
] | 31 | 2015-09-20T03:03:29.000Z | 2022-01-25T06:50:20.000Z | sferes/sferes/stat/pareto_front.hpp | Evolving-AI-Lab/innovation-engine | 58c7fcc3cbe3d6f8f59f87d95bdb5f2302f425ba | [
"MIT"
] | 1 | 2016-08-11T07:24:50.000Z | 2016-08-17T01:19:57.000Z | sferes/sferes/stat/pareto_front.hpp | Evolving-AI-Lab/innovation-engine | 58c7fcc3cbe3d6f8f59f87d95bdb5f2302f425ba | [
"MIT"
] | 10 | 2015-11-15T01:52:25.000Z | 2018-06-11T23:42:58.000Z | //| This file is a part of the sferes2 framework.
//| Copyright 2009, ISIR / Universite Pierre et Marie Curie (UPMC)
//| Main contributor(s): Jean-Baptiste Mouret, mouret@isir.fr
//|
//| This software is a computer program whose purpose is to facilitate
//| experiments in evolutionary computation and evolutionary robot... | 38.960396 | 78 | 0.655654 | Evolving-AI-Lab |
1e185f7208af4f6b8b050f2475cab05db595533d | 18,162 | cpp | C++ | test/test_concat.in.cpp | kthur/he-transformer | 5d3294473edba10f2789197043b8d8704409719e | [
"Apache-2.0"
] | null | null | null | test/test_concat.in.cpp | kthur/he-transformer | 5d3294473edba10f2789197043b8d8704409719e | [
"Apache-2.0"
] | null | null | null | test/test_concat.in.cpp | kthur/he-transformer | 5d3294473edba10f2789197043b8d8704409719e | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2018-2019 Intel 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://w... | 44.297561 | 80 | 0.578846 | kthur |
1e18d1c01af8e32f561a60976063a2660baeeb12 | 16,110 | cc | C++ | upscaler.cc | pps83/pik | 9747f8dbe9c10079b7473966fc974e4b3bcef034 | [
"Apache-2.0"
] | null | null | null | upscaler.cc | pps83/pik | 9747f8dbe9c10079b7473966fc974e4b3bcef034 | [
"Apache-2.0"
] | null | null | null | upscaler.cc | pps83/pik | 9747f8dbe9c10079b7473966fc974e4b3bcef034 | [
"Apache-2.0"
] | null | null | null | // This file implements a ppm to (dc-ppm, ac-ppm) mapping that allows
// us to experiment in different ways to compose the image into
// (4x4) pseudo-dc and respective ac components.
#include "upscaler.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cmath>
#include <vector>
#include "butteraugl... | 32.944785 | 80 | 0.537803 | pps83 |
1e1afb2e8e01b12b46f84d7c7688dde898413081 | 2,328 | cpp | C++ | interview_questions/google_interview_1.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | interview_questions/google_interview_1.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | interview_questions/google_interview_1.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /*
A[], {2, 1, 0,0,0,0,0,0, 7, 1} K
l - k till 0 + k => Max Sum
10, k = 3
7 to 3
size => k * 2
copying => entries from the ends of the given array
calculate MaxSubArraySum of window size k
*/
#include <iostream>
#include <vector>
#include <stdint.h>
using namespace std;
class Solution_t
{
int MaxSubArraySum... | 31.890411 | 194 | 0.53823 | bvbasavaraju |
1e1baafd7ebc907d1cfd55d4372fcb084046ccfd | 1,363 | cpp | C++ | Acepta_El_Reto/problema_342.cpp | paulamlago/EDA-1 | 201e247f1dfb85bffbe61cce39af244e220152ee | [
"WTFPL"
] | null | null | null | Acepta_El_Reto/problema_342.cpp | paulamlago/EDA-1 | 201e247f1dfb85bffbe61cce39af244e220152ee | [
"WTFPL"
] | null | null | null | Acepta_El_Reto/problema_342.cpp | paulamlago/EDA-1 | 201e247f1dfb85bffbe61cce39af244e220152ee | [
"WTFPL"
] | 4 | 2018-10-26T10:01:11.000Z | 2021-12-14T09:51:57.000Z | #include <iostream>;
// Comentar para AER
#define getchar_unlocked getchar
#define putchar_unlocked putchar
using namespace std;
inline void in(int &n)
{
n = 0;
int ch = getchar_unlocked(); int sign = 1;
while (ch < '0' || ch > '9') { if (ch == '-')sign = -1; ch = getchar_unlocked(); }
while (ch... | 15.144444 | 84 | 0.505503 | paulamlago |
1e1d3d52e4526c0368c13fd892e37eeb1cced86e | 4,457 | cpp | C++ | cg/src/debug/AnimatedAlgorithm.cpp | MachSilva/Ds | a7da3d4ca3b00b19884bc64d9d7baefea809cb3d | [
"Zlib"
] | 2 | 2021-11-23T18:36:51.000Z | 2021-11-24T19:38:25.000Z | cg/src/debug/AnimatedAlgorithm.cpp | MachSilva/Ds | a7da3d4ca3b00b19884bc64d9d7baefea809cb3d | [
"Zlib"
] | 1 | 2022-02-12T20:47:59.000Z | 2022-03-17T02:03:25.000Z | cg/src/debug/AnimatedAlgorithm.cpp | MachSilva/Ds | a7da3d4ca3b00b19884bc64d9d7baefea809cb3d | [
"Zlib"
] | 1 | 2022-02-12T22:31:50.000Z | 2022-02-12T22:31:50.000Z | //[]---------------------------------------------------------------[]
//| |
//| Copyright (C) 2016, 2019 Paulo Pagliosa. |
//| |
//| This software is provided 'as-is', w... | 25.180791 | 69 | 0.534889 | MachSilva |
1e1e0fab26da5f72c84dfcf45c9bf020ea99752c | 7,190 | cpp | C++ | src/esp32ModbusTCP.cpp | bertmelis/esp32ModbusTCP | 4e60c5622b3c4d66b0b9c678a8c1073adf57a82f | [
"MIT"
] | 58 | 2018-11-27T01:38:30.000Z | 2022-03-20T14:19:38.000Z | src/esp32ModbusTCP.cpp | bertmelis/esp32Modbus | 4e60c5622b3c4d66b0b9c678a8c1073adf57a82f | [
"MIT"
] | 18 | 2019-04-29T06:56:14.000Z | 2020-08-16T11:12:48.000Z | src/esp32ModbusTCP.cpp | bertmelis/esp32Modbus | 4e60c5622b3c4d66b0b9c678a8c1073adf57a82f | [
"MIT"
] | 27 | 2018-11-27T01:38:31.000Z | 2022-01-13T18:15:59.000Z | /* esp32ModbusTCP
Copyright 2018 Bert Melis
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, publish,
dist... | 31.955556 | 98 | 0.720584 | bertmelis |
1e1fa50753ad0b5aba2449c6ab62c37e1bb3ac4f | 1,245 | cpp | C++ | src/tray.cpp | AhhNuts/30047W | 54bfb5770a9ad08d853395c2b6d659dca27177f6 | [
"MIT"
] | null | null | null | src/tray.cpp | AhhNuts/30047W | 54bfb5770a9ad08d853395c2b6d659dca27177f6 | [
"MIT"
] | null | null | null | src/tray.cpp | AhhNuts/30047W | 54bfb5770a9ad08d853395c2b6d659dca27177f6 | [
"MIT"
] | null | null | null | #include "tray.h"
#include "vex.h"
#include "button.h"
Button lb;
void tray(){
//if both button hold then max speed down
if(Controller1.ButtonDown.pressing()){
TRAY.resetPosition();
}
else if(Controller1.ButtonR1.pressing() && Controller1.ButtonR2.pressing()){ //Tray Lift Faster Down
TRAY.s... | 34.583333 | 128 | 0.628916 | AhhNuts |
1e2047c81d9753e18aedcb38899c961a9ab6bba0 | 10,010 | cpp | C++ | source/de/hackcraft/proc/Facade.cpp | DMJC/linwarrior | 50cd46660c11e58cc6fbc431a150cf55ce0dd682 | [
"Apache-2.0"
] | 23 | 2015-12-08T19:29:10.000Z | 2021-09-22T04:13:31.000Z | source/de/hackcraft/proc/Facade.cpp | DMJC/linwarrior | 50cd46660c11e58cc6fbc431a150cf55ce0dd682 | [
"Apache-2.0"
] | 7 | 2018-04-30T13:05:57.000Z | 2021-08-25T03:58:07.000Z | source/de/hackcraft/proc/Facade.cpp | DMJC/linwarrior | 50cd46660c11e58cc6fbc431a150cf55ce0dd682 | [
"Apache-2.0"
] | 4 | 2018-01-25T03:05:19.000Z | 2021-08-25T03:30:15.000Z | #include "Facade.h"
#include "Noise.h"
#include "Distortion.h"
#include "de/hackcraft/psi3d/ctrl.h"
#include "de/hackcraft/psi3d/math3d.h"
void Facade::getVStrings(float x, float y, float* color4f, unsigned char seed) {
float x_ = fmod(x, 1.0f);
float sinx = Noise::simplex3(((x_ < 0.5f) ? (x_) : (1.0f - x_))... | 30.705521 | 111 | 0.50959 | DMJC |
1e2179add4a3e17da484980b4c8374c14b4f4e38 | 763 | hpp | C++ | problem/pascaltriangle2.hpp | cloudyfsail/LeetCode | 89b341828ec452997d3e05e06b08bfba95216f41 | [
"MIT"
] | null | null | null | problem/pascaltriangle2.hpp | cloudyfsail/LeetCode | 89b341828ec452997d3e05e06b08bfba95216f41 | [
"MIT"
] | null | null | null | problem/pascaltriangle2.hpp | cloudyfsail/LeetCode | 89b341828ec452997d3e05e06b08bfba95216f41 | [
"MIT"
] | null | null | null | #ifndef _PASCAL_TRIANGLE2_H_
#define _PASCAL_TRIANGLE2_H_
#include <vector>
#include "stdint.h"
#include <ostream>
using std::vector;
namespace LeetCode
{
class Solution
{
public:
vector<int> getRow(int rowIndex) {
if(rowIndex < 0)
return vector<int>(0);
vector<int> r... | 19.564103 | 83 | 0.461337 | cloudyfsail |
1e21ef80b6ad93a1aad95da2aa7c4ba7b7d25d72 | 1,522 | cpp | C++ | ema-tools/palate-contour/src/bin/main.cpp | ahewer/mri-shape-tools | 4268499948f1330b983ffcdb43df62e38ca45079 | [
"MIT"
] | null | null | null | ema-tools/palate-contour/src/bin/main.cpp | ahewer/mri-shape-tools | 4268499948f1330b983ffcdb43df62e38ca45079 | [
"MIT"
] | 2 | 2017-05-29T09:43:01.000Z | 2017-05-29T09:50:05.000Z | ema-tools/palate-contour/src/bin/main.cpp | ahewer/mri-shape-tools | 4268499948f1330b983ffcdb43df62e38ca45079 | [
"MIT"
] | 4 | 2017-05-17T11:56:02.000Z | 2022-03-05T09:12:24.000Z | #include "mesh/MeshIO.h"
#include "ema/Ema.h"
#include "ema-modify/ApplyModifications.h"
#include "PalateContour.h"
#include "visualize/ProjectMesh.h"
#include "settings.h"
int main(int argc, char* argv[]) {
Settings settings(argc, argv);
Ema ema;
std::vector<arma::vec> points;
for(const std::string& file... | 20.026316 | 74 | 0.653745 | ahewer |
1e26392b6ad6d77798f57ab019b1a55a6575eeb8 | 393 | cpp | C++ | maketutorial/animals/main.cpp | keelimepi/CS225 | a98871095cc2d488c646a72acd2c28aceb2b3ae7 | [
"AFL-1.1"
] | 4 | 2018-09-23T00:00:13.000Z | 2018-11-02T22:56:35.000Z | maketutorial/animals/main.cpp | keelimepi/CS225 | a98871095cc2d488c646a72acd2c28aceb2b3ae7 | [
"AFL-1.1"
] | null | null | null | maketutorial/animals/main.cpp | keelimepi/CS225 | a98871095cc2d488c646a72acd2c28aceb2b3ae7 | [
"AFL-1.1"
] | null | null | null | /**
* @file main.cpp
* @author Lisa Sproat
*/
#include "dog.hpp"
#include <iostream>
#include <utility> // std::pair
int main(){
Dog my_dog = Dog("Skye");
my_dog.bark();
my_dog.run(30, 10);
my_dog.read_tag();
std::pair<int, int> loc = my_dog.radio_collar();
std::cout << "[Main] Location: ("... | 20.684211 | 58 | 0.541985 | keelimepi |
1e27526cf94dab43e14065c22570953c28b562a2 | 191 | cpp | C++ | src/Step/7. Basic Math 1/1712.cpp | ljh15952/Baekjoon | fd85e5fef0f9fea382628e0c60f4f97dcdc3ec74 | [
"MIT"
] | null | null | null | src/Step/7. Basic Math 1/1712.cpp | ljh15952/Baekjoon | fd85e5fef0f9fea382628e0c60f4f97dcdc3ec74 | [
"MIT"
] | null | null | null | src/Step/7. Basic Math 1/1712.cpp | ljh15952/Baekjoon | fd85e5fef0f9fea382628e0c60f4f97dcdc3ec74 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
int sum = (b > c) ? -1 : (c - b ==0) ? -1 : (a / (c - b) + 1);
cout << sum << endl;
return 0;
} | 13.642857 | 63 | 0.450262 | ljh15952 |
1e29151475f2ba6e7d204d9813dc77e2134372e4 | 6,988 | cpp | C++ | module07/EX01/IFT3100H22_Lighting/src/renderer.cpp | philvoyer/IFT3100H20 | 17b5c260b7bff2b2df4ed4c61fb078a5841f5c67 | [
"MIT"
] | 13 | 2020-01-22T20:17:26.000Z | 2020-08-31T01:02:18.000Z | module07/EX01/IFT3100H22_Lighting/src/renderer.cpp | philvoyer/IFT3100H22 | 17b5c260b7bff2b2df4ed4c61fb078a5841f5c67 | [
"MIT"
] | null | null | null | module07/EX01/IFT3100H22_Lighting/src/renderer.cpp | philvoyer/IFT3100H22 | 17b5c260b7bff2b2df4ed4c61fb078a5841f5c67 | [
"MIT"
] | 1 | 2022-01-11T22:05:37.000Z | 2022-01-11T22:05:37.000Z | // IFT3100H22_Lighting/renderer.cpp
// Classe responsable du rendu de l'application.
#include "renderer.h"
Renderer::Renderer(){}
void Renderer::setup()
{
ofSetFrameRate(60);
ofEnableDepthTest();
ofSetSphereResolution(32);
// paramètres
camera_offset = 350.0f;
speed_motion = 150.0f;
oscillation_freque... | 24.780142 | 112 | 0.694476 | philvoyer |
1e2a66133bb9ec462c1d844cfa5d294fb39071c1 | 4,884 | cpp | C++ | conformance_tests/core/test_ipc/src/test_ipc_event.cpp | oneapi-src/level-zero-tests | aff26cb658dbe0991566a62716be00dde390e793 | [
"MIT"
] | 32 | 2020-03-05T19:26:02.000Z | 2022-02-21T13:13:52.000Z | conformance_tests/core/test_ipc/src/test_ipc_event.cpp | oneapi-src/level-zero-tests | aff26cb658dbe0991566a62716be00dde390e793 | [
"MIT"
] | 9 | 2020-05-04T20:15:09.000Z | 2021-12-19T07:17:50.000Z | conformance_tests/core/test_ipc/src/test_ipc_event.cpp | oneapi-src/level-zero-tests | aff26cb658dbe0991566a62716be00dde390e793 | [
"MIT"
] | 19 | 2020-04-07T16:00:48.000Z | 2022-01-19T00:19:49.000Z | /*
*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "gtest/gtest.h"
#include "utils/utils.hpp"
#include "test_harness/test_harness.hpp"
#include "logging/logging.hpp"
#include "test_ipc_event.hpp"
#include "test_ipc_comm.hpp"
#include <boost/interprocess/shared_memory_obje... | 30.716981 | 103 | 0.753071 | oneapi-src |
1e2bb53bc07b2db5c4f1bcab3ecc603ed609e37b | 7,578 | cpp | C++ | OpenSim/Common/Logger.cpp | tnamayeshi/opensim-core | acbedd604909980293776da3d54b9611732964bf | [
"Apache-2.0"
] | null | null | null | OpenSim/Common/Logger.cpp | tnamayeshi/opensim-core | acbedd604909980293776da3d54b9611732964bf | [
"Apache-2.0"
] | 1 | 2022-03-19T14:24:11.000Z | 2022-03-19T14:24:11.000Z | OpenSim/Common/Logger.cpp | tnamayeshi/opensim-core | acbedd604909980293776da3d54b9611732964bf | [
"Apache-2.0"
] | null | null | null | /* -------------------------------------------------------------------------- *
* OpenSim: Logger.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... | 37.514851 | 81 | 0.598179 | tnamayeshi |
1e2bfb745beb3e219c8623aaa009f9a221eed121 | 3,848 | hpp | C++ | openstudiocore/src/model/LifeCycleCost_Impl.hpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 4 | 2015-05-02T21:04:15.000Z | 2015-10-28T09:47:22.000Z | openstudiocore/src/model/LifeCycleCost_Impl.hpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | null | null | null | openstudiocore/src/model/LifeCycleCost_Impl.hpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 1 | 2020-11-12T21:52:36.000Z | 2020-11-12T21:52:36.000Z | /**********************************************************************
* Copyright (c) 2008-2015, 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... | 29.829457 | 96 | 0.695166 | BIMDataHub |
1e2d66959e32676a9103fdfec190eaf20ffb5a54 | 20,375 | cpp | C++ | Source/Primative.cpp | findux/ToolKit | 3caa97441318d19fe0a6e3d13d88dfbdb60afb44 | [
"MIT"
] | 32 | 2020-10-16T00:17:14.000Z | 2022-03-02T18:25:58.000Z | Source/Primative.cpp | findux/ToolKit | 3caa97441318d19fe0a6e3d13d88dfbdb60afb44 | [
"MIT"
] | 1 | 2021-09-19T12:18:17.000Z | 2022-02-23T06:53:30.000Z | Source/Primative.cpp | findux/ToolKit | 3caa97441318d19fe0a6e3d13d88dfbdb60afb44 | [
"MIT"
] | 5 | 2020-09-18T09:04:40.000Z | 2022-02-11T12:44:55.000Z | #include "stdafx.h"
#include "Primative.h"
#include "Mesh.h"
#include "ToolKit.h"
#include "MathUtil.h"
#include "Directional.h"
#include "Node.h"
#include "DebugNew.h"
namespace ToolKit
{
Billboard::Billboard(const Settings& settings)
: m_settings(settings)
{
}
void Billboard::LookAt(Camera* cam, float ... | 27.422611 | 136 | 0.603337 | findux |
1e3b7fbf559f330b42a3455f17d84e8a9259c950 | 11,605 | hpp | C++ | include/exces/collection.hpp | matus-chochlik/exces | 50b57ce4c9f6c41ab2eacfae054529cbbe6164c0 | [
"BSL-1.0"
] | 1 | 2018-03-26T20:51:36.000Z | 2018-03-26T20:51:36.000Z | include/exces/collection.hpp | matus-chochlik/exces | 50b57ce4c9f6c41ab2eacfae054529cbbe6164c0 | [
"BSL-1.0"
] | null | null | null | include/exces/collection.hpp | matus-chochlik/exces | 50b57ce4c9f6c41ab2eacfae054529cbbe6164c0 | [
"BSL-1.0"
] | null | null | null | /**
* @file exces/collection.hpp
* @brief Entity collections and classifications
*
* Copyright 2012-2014 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef EXCES_COLLECTION_1304231... | 25.505495 | 81 | 0.734856 | matus-chochlik |
1e43bf5c02a3f4c4fdec95b8cf4eefe0c92bb8cb | 11,919 | cc | C++ | util/buildWeissPalette.cc | MartinezTorres/Edelweiss | ef7eeaa1b8262e85f708c672fbb3310a6912be0c | [
"MIT"
] | 2 | 2021-01-20T13:12:31.000Z | 2021-02-24T17:00:36.000Z | util/buildWeissPalette.cc | MartinezTorres/sdcc_msx_interlacedScrollMSX1 | 69b5463c67c822e6a272acbfdadb6bee81cdbdf7 | [
"MIT"
] | 1 | 2021-04-07T20:19:37.000Z | 2021-04-07T20:19:37.000Z | util/buildWeissPalette.cc | MartinezTorres/sdcc_msx_interlacedScrollMSX1 | 69b5463c67c822e6a272acbfdadb6bee81cdbdf7 | [
"MIT"
] | 1 | 2021-02-24T17:00:43.000Z | 2021-02-24T17:00:43.000Z | ////////////////////////////////////////////////////////////////////////
// Build MSX1 palette
//
// Manuel Martinez (salutte@gmail.com)
//
// FLAGS: -std=gnu++14 -g `pkg-config opencv --cflags --libs` -Ofast -lpthread -fopenmp -lgomp -Wno-format-nonliteral
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#i... | 35.055882 | 170 | 0.461784 | MartinezTorres |
1e4a5478604c5d95ed891603ccbb364a68cfddfa | 1,179 | cpp | C++ | gpu/examples/binarization.cpp | DasudaRunner/CUDA-CV | 4dca7e80e403b978b3b9ef4dc4d8bc962b4380e3 | [
"MIT"
] | 146 | 2018-11-15T13:20:23.000Z | 2022-03-30T01:47:37.000Z | gpu/examples/binarization.cpp | layyyang/DeltaCV | 4dca7e80e403b978b3b9ef4dc4d8bc962b4380e3 | [
"MIT"
] | 1 | 2018-12-05T04:44:39.000Z | 2020-07-07T01:20:22.000Z | gpu/examples/binarization.cpp | layyyang/DeltaCV | 4dca7e80e403b978b3b9ef4dc4d8bc962b4380e3 | [
"MIT"
] | 8 | 2019-07-19T07:23:38.000Z | 2021-09-26T15:36:27.000Z | #include <iostream>
#include "opencv2/core.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include <opencv2/opencv.hpp>
#include <cuda_runtime.h>
#include "deltaCV/gpu/cudaImg.cuh"
#include "deltaCV/gpu/cudaUtils.hpp"
#include <time.h>
#include <algorithm>
#include "deltaCV/gpu/cu_wrapper.hpp"
... | 19.65 | 74 | 0.620865 | DasudaRunner |
1e4afd6cf260b5d2cea2853dafc16527eb765c58 | 15,066 | cpp | C++ | src/replication/replication_manager.cpp | tpan496/terrier | 671a55b7036af005359411ecef980e7d6d0313c9 | [
"MIT"
] | null | null | null | src/replication/replication_manager.cpp | tpan496/terrier | 671a55b7036af005359411ecef980e7d6d0313c9 | [
"MIT"
] | null | null | null | src/replication/replication_manager.cpp | tpan496/terrier | 671a55b7036af005359411ecef980e7d6d0313c9 | [
"MIT"
] | null | null | null | #include "replication/replication_manager.h"
#include <chrono> // NOLINT
#include <fstream>
#include <optional>
#include "common/error/exception.h"
#include "common/json.h"
#include "loggers/replication_logger.h"
#include "network/network_io_utils.h"
#include "storage/recovery/replication_log_provider.h"
#include "s... | 44.973134 | 120 | 0.707222 | tpan496 |
1e4e7c537a8b0dced7a39d4deea38baed0fb402e | 555 | cpp | C++ | BOCA/CD/src/ac.cpp | Raquel29/PC1-IFB-CC | 36b55e95373a5f022651545248d8cb66bac1cd3f | [
"MIT"
] | 1 | 2020-05-24T02:22:13.000Z | 2020-05-24T02:22:13.000Z | BOCA/CD/src/ac.cpp | danielsaad/PC1-IFB-CC | 36b55e95373a5f022651545248d8cb66bac1cd3f | [
"MIT"
] | null | null | null | BOCA/CD/src/ac.cpp | danielsaad/PC1-IFB-CC | 36b55e95373a5f022651545248d8cb66bac1cd3f | [
"MIT"
] | 4 | 2019-05-15T10:55:57.000Z | 2019-10-26T13:46:48.000Z | #include <bits/stdc++.h>
using namespace std;
using ii = pair<int, int>;
ii solve(int N, int M, const vector<string>& A)
{
for (int i = 0; i < N; ++i)
for (int j = 0; j < M; ++j)
if (A[i][j] == 'W')
return ii(i + 1, j + 1);
return ii(0, 0);
}
int main()
{
ios::sync_w... | 15.857143 | 51 | 0.445045 | Raquel29 |
1e509b2624970c8e21ea4dd1b744bc24c91f4bce | 1,974 | cpp | C++ | Renderer/VertexCache.cpp | TywyllSoftware/TywRenderer | 2da2ea2076d4311488b8ddb39c2fec896c98378a | [
"Unlicense"
] | 11 | 2016-11-15T20:06:19.000Z | 2021-03-31T01:04:01.000Z | Renderer/VertexCache.cpp | TywyllSoftware/TywRenderer | 2da2ea2076d4311488b8ddb39c2fec896c98378a | [
"Unlicense"
] | 1 | 2016-11-06T23:53:05.000Z | 2016-11-07T08:06:07.000Z | Renderer/VertexCache.cpp | TywyllSoftware/TywRenderer | 2da2ea2076d4311488b8ddb39c2fec896c98378a | [
"Unlicense"
] | 2 | 2017-09-03T11:18:46.000Z | 2019-03-10T06:27:49.000Z | /*
* Copyright 2015-2016 Tomas Mikalauskas. All rights reserved.
* GitHub repository - https://github.com/TywyllSoftware/TywRenderer
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include <RendererPch\stdafx.h>
//Renderer Includes
#include "VertexCache.h"
VertexCache ve... | 23.5 | 106 | 0.68693 | TywyllSoftware |
1e51a2a5ba3f41f3bc13ef96d1338fd3983d8255 | 515 | cpp | C++ | Arrays/KthRowPascalTriangle.cpp | aviral243/interviewbit-solutions-1 | 7b4bda68b2ff2916263493f40304b20fade16c9a | [
"MIT"
] | null | null | null | Arrays/KthRowPascalTriangle.cpp | aviral243/interviewbit-solutions-1 | 7b4bda68b2ff2916263493f40304b20fade16c9a | [
"MIT"
] | null | null | null | Arrays/KthRowPascalTriangle.cpp | aviral243/interviewbit-solutions-1 | 7b4bda68b2ff2916263493f40304b20fade16c9a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define mod 1000003;
using namespace std;
long long int fact(long long int A)
{
return A <= 1 ? 1 : (A * (fact(A - 1)));
}
vector<int> getRow(int A)
{
int n = A, r = 0;
vector<int> B;
int fN = fact(n);
for (int i = 0; i <= A; i++)
{
long long int val = fN / (fact(i) * fact(A... | 14.305556 | 53 | 0.502913 | aviral243 |
1e56396e2202753f532533525d93618640102b91 | 456 | hh | C++ | include/tr064/serialize/Serializer.hh | awidegreen/tr064 | da738c3d3ecc1bf5990d746a49feb6efb7166e1a | [
"BSD-2-Clause"
] | 15 | 2015-03-20T17:05:23.000Z | 2021-04-22T14:14:47.000Z | include/tr064/serialize/Serializer.hh | awidegreen/tr064 | da738c3d3ecc1bf5990d746a49feb6efb7166e1a | [
"BSD-2-Clause"
] | 6 | 2015-06-01T12:08:28.000Z | 2018-04-05T15:49:09.000Z | include/tr064/serialize/Serializer.hh | awidegreen/tr064 | da738c3d3ecc1bf5990d746a49feb6efb7166e1a | [
"BSD-2-Clause"
] | 4 | 2016-04-15T18:20:28.000Z | 2019-10-21T21:01:18.000Z | #ifndef SERIALIZER_HH
#define SERIALIZER_HH
#include "Serializable.hh"
// stl
#include <ostream>
#include <istream>
namespace tr064
{
namespace serialize
{
class Serializer
{
public:
virtual ~Serializer() { }
virtual void serialize(std::ostream& out, const Serializeable& root) const = 0;
virtual void deseria... | 13.818182 | 81 | 0.699561 | awidegreen |
1e5cc5e4086da84b0346526f7177a30b65b025e2 | 4,596 | hpp | C++ | include/signal/controllers/motorcontroller.hpp | Bormachine-Learning/embedded | 165daf847fe9c2a7bcc17c7aee4c5e28b3cf4055 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/signal/controllers/motorcontroller.hpp | Bormachine-Learning/embedded | 165daf847fe9c2a7bcc17c7aee4c5e28b3cf4055 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/signal/controllers/motorcontroller.hpp | Bormachine-Learning/embedded | 165daf847fe9c2a7bcc17c7aee4c5e28b3cf4055 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /**
Copyright 2019 Bosch Engineering Center Cluj and BFMC organizers
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... | 39.965217 | 284 | 0.520017 | Bormachine-Learning |
1e5d7e0819ba54ac813ffee97c00328c93c74c35 | 3,953 | hpp | C++ | modules/gui/src/MetaObject/params/ui/Qt/Containers.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/gui/src/MetaObject/params/ui/Qt/Containers.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/gui/src/MetaObject/params/ui/Qt/Containers.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #pragma once
#include "IHandler.hpp"
#include "POD.hpp"
#include <MetaObject/thread/fiber_include.hpp>
namespace mo
{
namespace UI
{
namespace qt
{
struct UiUpdateListener;
template <class T, typename Enable>
class THandler;
// *******************... | 36.943925 | 118 | 0.362762 | dtmoodie |
1e5e5f604ac9cf7c701e5f595e85395deb0983bb | 1,044 | hpp | C++ | headers/Core/VertexBuffer.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | headers/Core/VertexBuffer.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | headers/Core/VertexBuffer.hpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | #ifndef VERTEXBUFFER_HPP
# define VERTEXBUFFER_HPP
# include "pch.hpp"
namespace NAMESPACE
{
class VertexBuffer
{
GLuint GL_ID;
public:
VertexBuffer();
/*
* Static version
* Cannot be modified
*/
VertexBuffer(const void *data, GLuint size);
/*
* Dynamic version
* Initial... | 19.698113 | 64 | 0.636015 | Gilqamesh |
1e604e910458d9be0caa061f2cb698ed395f3af4 | 1,198 | hpp | C++ | src/Utilities/TypeTraits/ArraySize.hpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/Utilities/TypeTraits/ArraySize.hpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/Utilities/TypeTraits/ArraySize.hpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <array>
#include <cstddef>
#include <type_traits>
namespace tt {
namespace TypeTraits_detail {
template <typename T, std::size_t N>
std::integral_constant<std::size_t, N> array_size_impl(
const std::array<T, N>& /*array*/... | 24.44898 | 80 | 0.676962 | nilsvu |
1e61d8c2c5e2e4fb2d876dc729f8371efa3e8b9c | 4,548 | hh | C++ | include/sdf/Mesh.hh | scpeters-test/sdformat | 4668d7857e1d18d8d9b68b40537f77d540353448 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | include/sdf/Mesh.hh | scpeters-test/sdformat | 4668d7857e1d18d8d9b68b40537f77d540353448 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-10-30T19:22:51.000Z | 2020-12-03T20:57:20.000Z | include/sdf/Mesh.hh | scpeters-test/sdformat | 4668d7857e1d18d8d9b68b40537f77d540353448 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 Open Source Robotics Foundation
*
* 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 applicab... | 35.255814 | 80 | 0.679639 | scpeters-test |
1e623ef13e1deeb8e6529b0e43f8400820d9ad21 | 218 | cpp | C++ | atcoder.jp/abc079/abc079_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc079/abc079_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc079/abc079_b/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int N;
long long L[87];
int main()
{
cin >> N;
L[0] = 2, L[1] = 1;
for (int i = 2; i <= N; i++)
L[i] = L[i - 2] + L[i - 1];
cout << L[N] << endl;
}
| 16.769231 | 35 | 0.431193 | shikij1 |
1e6272cc6b091f11b2b8ec7df3139e3c63b3c2d6 | 3,234 | cpp | C++ | Code en C++ de Mage War Online/VikingHammer.cpp | Drakandes/Portfolio_NicolasPaulBonneau | c8115d5ecd6c284113766d64d0f907c074315cff | [
"MIT"
] | null | null | null | Code en C++ de Mage War Online/VikingHammer.cpp | Drakandes/Portfolio_NicolasPaulBonneau | c8115d5ecd6c284113766d64d0f907c074315cff | [
"MIT"
] | null | null | null | Code en C++ de Mage War Online/VikingHammer.cpp | Drakandes/Portfolio_NicolasPaulBonneau | c8115d5ecd6c284113766d64d0f907c074315cff | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "VikingHammer.h"
VikingHammer::VikingHammer()
{
texture_projectile.loadFromFile("VikingHammer.png");
shadow_texture.loadFromFile("VikingHammerShadow.png");
}
VikingHammer::~VikingHammer()
{
}
void VikingHammer::Init(sf::Vector2f &position_initial, float damage_received, fl... | 28.368421 | 193 | 0.730674 | Drakandes |
1e663f6fc641ee122299408e6b4a32059a899e9c | 380 | hpp | C++ | BrainfuckCompiler/Assert.hpp | addrianyy/BrainfuckCompiler | 4e47cb9fc926aeae567556e5c75e095c304ae7f5 | [
"MIT"
] | 3 | 2020-05-28T21:05:44.000Z | 2020-06-23T10:03:19.000Z | BrainfuckCompiler/Assert.hpp | addrianyy/BrainfuckCompiler | 4e47cb9fc926aeae567556e5c75e095c304ae7f5 | [
"MIT"
] | null | null | null | BrainfuckCompiler/Assert.hpp | addrianyy/BrainfuckCompiler | 4e47cb9fc926aeae567556e5c75e095c304ae7f5 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
// Assert working on release builds.
void AssertInternal(bool condition,
const char* conditionText,
const char* filename,
uint32_t lineNumer);
#define MAKE_STRING(s) MAKE_STRING_1(s)
#define MAKE_STRING_1(s) #s
#define Asser... | 27.142857 | 73 | 0.652632 | addrianyy |
1e6aa11097025c50662746292dd67ea5d487998c | 2,419 | cpp | C++ | Engine/code/IA_Controller_Task.cpp | miguelangelgil/FirstEngine | 3177cffa3663c9f75bc37fe67ac52d6780acfeec | [
"MIT"
] | null | null | null | Engine/code/IA_Controller_Task.cpp | miguelangelgil/FirstEngine | 3177cffa3663c9f75bc37fe67ac52d6780acfeec | [
"MIT"
] | null | null | null | Engine/code/IA_Controller_Task.cpp | miguelangelgil/FirstEngine | 3177cffa3663c9f75bc37fe67ac52d6780acfeec | [
"MIT"
] | null | null | null | #include "headers\IA_Controller_Task.hpp"
#include <Scene.hpp>
#include <IA_Component.hpp>
#include <Transform_Component.hpp>
namespace engine
{
engine::IA_Controller_Task::IA_Controller_Task(Scene* scene, int priority) : Task(scene, priority)
{
}
bool engine::IA_Controller_Task::initialize()
{
... | 31.415584 | 125 | 0.567177 | miguelangelgil |
1e6efa3b812a95d652142334d9d0b69311c8034a | 861 | cpp | C++ | src/expression/operation/optime.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | src/expression/operation/optime.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | src/expression/operation/optime.cpp | ellery85/sparselizard | 7d09e97e9443a436d74cbd241b8466527edb9e2f | [
"MIT"
] | null | null | null | #include "optime.h"
std::vector<std::vector<densematrix>> optime::interpolate(elementselector& elemselect, std::vector<double>& evaluationcoordinates, expression* meshdeform)
{
densematrix output(elemselect.countinselection(), evaluationcoordinates.size()/3, universe::currenttimestep);
// This can only b... | 28.7 | 159 | 0.704994 | ellery85 |
1e723aadb187589d5b96e1fb6f6a9d4160106403 | 8,148 | hpp | C++ | src/main/cpp/Balau/Concurrent/Fork.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 6 | 2018-12-30T15:09:26.000Z | 2020-04-20T09:27:59.000Z | src/main/cpp/Balau/Concurrent/Fork.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/Balau/Concurrent/Fork.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 2 | 2019-11-12T08:07:16.000Z | 2019-11-29T11:19:47.000Z | // @formatter:off
//
// Balau core C++ library
//
// Copyright (C) 2008 Bora Software (contact@borasoftware.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.apach... | 26.627451 | 117 | 0.681885 | borasoftware |
1e84a9fb8a076b8210e8cb9a5712d21d6f77b173 | 1,198 | cpp | C++ | example/concepts.cpp | boost-ext/te | f18e0a3462575b5159c43d5a54023ea72461f4bc | [
"BSL-1.0"
] | 72 | 2020-07-01T17:01:35.000Z | 2022-03-22T10:37:18.000Z | example/concepts.cpp | boost-ext/te | f18e0a3462575b5159c43d5a54023ea72461f4bc | [
"BSL-1.0"
] | 4 | 2021-05-08T13:36:27.000Z | 2022-02-07T18:46:57.000Z | example/concepts.cpp | boost-ext/te | f18e0a3462575b5159c43d5a54023ea72461f4bc | [
"BSL-1.0"
] | 8 | 2020-07-10T08:04:38.000Z | 2022-03-22T11:40:01.000Z | //
// Copyright (c) 2018-2019 Kris Jusiak (kris at jusiak dot net)
//
// 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)
//
#if defined(__cpp_concepts)
#include <iostream>
#include "boost/te.hpp"
namespace te = bo... | 19.966667 | 75 | 0.6202 | boost-ext |
1e8537ac60c9fa2ce327a86213842d3101e3c95c | 8,241 | cpp | C++ | Ray.cpp | selinnilesy/Ray-Tracing | 4b1ac770902ed35560f0bc774ac42cb118f3789a | [
"MIT"
] | null | null | null | Ray.cpp | selinnilesy/Ray-Tracing | 4b1ac770902ed35560f0bc774ac42cb118f3789a | [
"MIT"
] | null | null | null | Ray.cpp | selinnilesy/Ray-Tracing | 4b1ac770902ed35560f0bc774ac42cb118f3789a | [
"MIT"
] | null | null | null | #include "Ray.h"
#include "Algebra.h"
#include "math.h"
#include <limits>
using namespace std;
using namespace parser;
Ray::Ray()
{
}
Ray::Ray(const Vec3f& e_, const Vec3f& d_):e(e_),d(d_),recursion(parser::scene.max_recursion_depth)
{
//selincikkk:D
normalize(d);
}
inline Vec3f Ray::positionT(float t)
{
return... | 28.915789 | 103 | 0.649193 | selinnilesy |
1e86c52f38707156cbb2a7ed3a8cb9a5aeafac0b | 2,892 | cpp | C++ | McQuickBoot/src/Controller/McResult.cpp | mrcao20/McQuickBoot | 187a16ea9459fa5e2b3477b5280302a9090e8ccf | [
"MIT"
] | 3 | 2020-03-29T18:41:42.000Z | 2020-09-23T01:46:25.000Z | McQuickBoot/src/Controller/McResult.cpp | mrcao20/McQuickBoot | 187a16ea9459fa5e2b3477b5280302a9090e8ccf | [
"MIT"
] | 3 | 2020-11-26T03:37:31.000Z | 2020-12-21T02:17:17.000Z | McQuickBoot/src/Controller/McResult.cpp | mrcao20/McQuickBoot | 187a16ea9459fa5e2b3477b5280302a9090e8ccf | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2021 mrcao20
*
* 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, ... | 25.821429 | 81 | 0.727178 | mrcao20 |
1e948963b99808defb6948eed9bbe07f81adf80b | 9,171 | cpp | C++ | core/Instances.cpp | sudarsun/c48 | 4ffd0825380eacd0b120b42cfd0b24182bf9fb8e | [
"Unlicense"
] | null | null | null | core/Instances.cpp | sudarsun/c48 | 4ffd0825380eacd0b120b42cfd0b24182bf9fb8e | [
"Unlicense"
] | null | null | null | core/Instances.cpp | sudarsun/c48 | 4ffd0825380eacd0b120b42cfd0b24182bf9fb8e | [
"Unlicense"
] | null | null | null | #include "Instances.h"
#include "Instance.h"
#include "Consts.h"
#include "Utils.h"
#include <iostream>
#include <unordered_set>
#include <exception>
#include <stdexcept>
Instances::Instances(const string &name, std::vector<Attribute*> &attInfo, const int capacity)
{
// check whether the attribute nam... | 25.264463 | 119 | 0.591975 | sudarsun |
1e96c8415812536d618641cf19b018660ba0b7a6 | 2,494 | cpp | C++ | atcoder/arc011/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | atcoder/arc011/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | atcoder/arc011/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | // atcoder/arc011/B/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << ... | 34.164384 | 150 | 0.480754 | Johniel |
1e9904710a041b6f25f4adc797faec875a3e87ad | 14,976 | cpp | C++ | reconstruction/gadgetron/CS_LAB_Gadget/src/ELASTIX_GADGET/ElastixRegistrationGadget.cpp | alwaysbefun123/CS_MoCo_LAB | a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b | [
"BSD-2-Clause"
] | 83 | 2017-08-11T09:18:17.000Z | 2022-01-23T03:08:00.000Z | reconstruction/gadgetron/CS_LAB_Gadget/src/ELASTIX_GADGET/ElastixRegistrationGadget.cpp | MrYuwan/CS_MoCo_LAB | a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b | [
"BSD-2-Clause"
] | 4 | 2017-09-19T23:02:12.000Z | 2020-11-23T11:25:18.000Z | reconstruction/gadgetron/CS_LAB_Gadget/src/ELASTIX_GADGET/ElastixRegistrationGadget.cpp | MrYuwan/CS_MoCo_LAB | a26e8e483624b2e4ee669e7a069ba9c74d2d2e4b | [
"BSD-2-Clause"
] | 49 | 2017-03-19T18:41:55.000Z | 2021-11-25T08:25:44.000Z | /*
file name : ElastixRegistrationGadget.cpp
author : Martin Schwartz (martin.schwartz@med.uni-tuebingen.de)
Thomas Kuestner (thomas.kuestner@med.uni-tuebingen.de)
version : 1.2
date : 13.10.2015
23.03.2017 - update for Gadgetron v3.8
23.01.2018 - renaming
description : implementation of the cl... | 36.705882 | 235 | 0.71047 | alwaysbefun123 |
1e9e457e811076929716813d2d8c2004010b2fe0 | 7,081 | cxx | C++ | test/rtkadjointoperatorstest.cxx | cyrilmory/CyrilsRTK | bb829a9d6aff45181d1642b4b050dde999169ff8 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | test/rtkadjointoperatorstest.cxx | cyrilmory/CyrilsRTK | bb829a9d6aff45181d1642b4b050dde999169ff8 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | test/rtkadjointoperatorstest.cxx | cyrilmory/CyrilsRTK | bb829a9d6aff45181d1642b4b050dde999169ff8 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | #include "rtkMacro.h"
#include "rtkTest.h"
#include "itkRandomImageSource.h"
#include "rtkConstantImageSource.h"
#include "rtkJosephBackProjectionImageFilter.h"
#include "rtkJosephForwardProjectionImageFilter.h"
#ifdef RTK_USE_CUDA
#include "rtkCudaForwardProjectionImageFilter.h"
#include "rtkCudaRayCastBackProject... | 36.880208 | 167 | 0.71473 | cyrilmory |
1ea6dfec202cda0320e555a1851f1e84df6b819f | 1,041 | cpp | C++ | userland/libraries/libc/stdio/sprintf.cpp | pro-hacker64/pranaOS | 01e5f0ba7fc7b561a08ba60ea6b3890202ac97c7 | [
"BSD-2-Clause"
] | null | null | null | userland/libraries/libc/stdio/sprintf.cpp | pro-hacker64/pranaOS | 01e5f0ba7fc7b561a08ba60ea6b3890202ac97c7 | [
"BSD-2-Clause"
] | null | null | null | userland/libraries/libc/stdio/sprintf.cpp | pro-hacker64/pranaOS | 01e5f0ba7fc7b561a08ba60ea6b3890202ac97c7 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, krishpranav
*
* SPDX-License-Identifier: BSD-2-Clause
*/
// includes
#include <pranaos/Printf.h>
#include <stdio.h>
#include <string.h>
void string_printf_append(printf_info_t *info, char c)
{
if (info->allocated == -1)
{
strapd((char *)info->output, c);
}
else
... | 16.265625 | 61 | 0.574448 | pro-hacker64 |
1eb33682f3eb3cfd3ff55740a2c528520dbc0b1f | 331 | cpp | C++ | C语言程序设计基础/meiju.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 63 | 2021-01-10T02:32:17.000Z | 2022-03-30T04:08:38.000Z | C语言程序设计基础/meiju.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 2 | 2021-06-09T05:38:58.000Z | 2021-12-14T13:53:54.000Z | C语言程序设计基础/meiju.cpp | xiabee/BIT-CS | 5d8d8331e6b9588773991a872c259e430ef1eae1 | [
"Apache-2.0"
] | 20 | 2021-01-12T11:49:36.000Z | 2022-03-26T11:04:58.000Z | #include<stdio.h>
#include<math.h>
double a,b,c,d;
double f(double x)
{
return a*sin(x)*sin(x) + b*cos(x)*cos(x) +
c*sin(x) + d*cos(x);
}
int main()
{
double L,R,i;
scanf("%d%d%d%d%lf%lf",&a,&b,&c,&d,&L,&R);
double ans=f(1);
for(i=L; i<=R; i+=0.1)
ans= f(i)>ans ? f(i) : ans;
printf("%.1lf\n",ans);
ret... | 15.761905 | 44 | 0.519637 | xiabee |
1eb52945757c16dcf9574a6a9ddc466f0a3c729b | 4,135 | cpp | C++ | opencl/test/unit_test/aub_tests/command_stream/copy_engine_aub_tests_xehp_and_later.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/aub_tests/command_stream/copy_engine_aub_tests_xehp_and_later.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/aub_tests/command_stream/copy_engine_aub_tests_xehp_and_later.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/test/unit_test/aub_tests/command_stream/copy_engine_aub_tests_xehp_and_later.h"
#include "shared/test/common/test_macros/test.h"
using namespace NEO;
using SingleTileCopyEngineTests = CopyEngineXeHPAndLater<1>;
HW... | 53.701299 | 158 | 0.903507 | mattcarter2017 |
1eb76061f8a582692e239a691630e62fec3b3923 | 2,433 | hxx | C++ | opencascade/BRepBuilderAPI_VertexInspector.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/BRepBuilderAPI_VertexInspector.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | opencascade/BRepBuilderAPI_VertexInspector.hxx | mgreminger/OCP | 92eacb99497cd52b419c8a4a8ab0abab2330ed42 | [
"Apache-2.0"
] | null | null | null | // Created on: 2011-11-24
// Created by: ANNA MASALSKAYA
// Copyright (c) 2011-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 ... | 31.192308 | 92 | 0.722154 | mgreminger |
1eb8edac94392d03ea02d20df8a1f446909bb3ed | 8,297 | cpp | C++ | src/uniform_spacetime_be_identity.cpp | zap150/besthea | b7a9bb80a936f380af2d2c2e7ee3cc713d3792ca | [
"BSD-3-Clause"
] | null | null | null | src/uniform_spacetime_be_identity.cpp | zap150/besthea | b7a9bb80a936f380af2d2c2e7ee3cc713d3792ca | [
"BSD-3-Clause"
] | null | null | null | src/uniform_spacetime_be_identity.cpp | zap150/besthea | b7a9bb80a936f380af2d2c2e7ee3cc713d3792ca | [
"BSD-3-Clause"
] | 1 | 2021-09-15T01:59:34.000Z | 2021-09-15T01:59:34.000Z | /*
Copyright (c) 2020, VSB - Technical University of Ostrava and Graz University of
Technology
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyr... | 44.368984 | 80 | 0.731951 | zap150 |
1eb9d76983e39fb2b97243f0bf26b4d703fe6360 | 1,689 | cpp | C++ | src/RNG.cpp | komatura/Voltage-noise-generator | 31332f9ae4a0ce5a2a259ad136b75d67831da637 | [
"MIT"
] | null | null | null | src/RNG.cpp | komatura/Voltage-noise-generator | 31332f9ae4a0ce5a2a259ad136b75d67831da637 | [
"MIT"
] | null | null | null | src/RNG.cpp | komatura/Voltage-noise-generator | 31332f9ae4a0ce5a2a259ad136b75d67831da637 | [
"MIT"
] | 1 | 2018-07-27T22:38:43.000Z | 2018-07-27T22:38:43.000Z | #include "RNG.h"
#include <chrono>
unsigned int RNG::_seed = chrono::system_clock::now().time_since_epoch().count();
mt19937 RNG::_RNGBase;
Real_RNG RNG::_floatGen = nullptr;
Int_RNG RNG::_intGen = nullptr;
Real_Normal_RNG RNG::_normalFloatGen = nullptr;
void RNG::Initialize() {
_RNGBase.seed(_seed);
_floatGen.... | 20.349398 | 81 | 0.703375 | komatura |
1ebd5ccb4500d7b1441fc1c721a0782502940cfe | 876 | cpp | C++ | plugins/qnx/_hook_ui_color.cpp | mmuman/skinobe | c3aa05a650161d59749f9e468a5ee895fd8d6498 | [
"MIT"
] | 1 | 2019-03-01T05:32:17.000Z | 2019-03-01T05:32:17.000Z | plugins/sequel/_hook_ui_color.cpp | mmuman/skinobe | c3aa05a650161d59749f9e468a5ee895fd8d6498 | [
"MIT"
] | null | null | null | plugins/sequel/_hook_ui_color.cpp | mmuman/skinobe | c3aa05a650161d59749f9e468a5ee895fd8d6498 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <OS.h>
#include <InterfaceDefs.h>
#ifdef __cplusplus
extern "C" {
#endif
static const rgb_color gonxColors[10] =
{
{0, 0, 0, 255}, // null color
{239, 235, 231, 255}, // B_PANEL_BACKGROUND_COLOR
{239, 235, 231, 255}, // B_MENU_BACKGROUND_COLOR
{255, 203, 0, 255}, // B_WINDOW_TAB_COLOR
//{... | 23.675676 | 60 | 0.689498 | mmuman |
3630afa4a87715974b8ec5b25ca81e148e323c96 | 994 | cpp | C++ | gym/102784/F.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | 1 | 2021-07-16T19:59:39.000Z | 2021-07-16T19:59:39.000Z | gym/102784/F.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | gym/102784/F.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <random>
#include <chrono>
using namespace std;
using namespace __gnu_pbds;
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
// typedef tree<int, null_type,less<int>, rb_tree_tag, tre... | 19.490196 | 102 | 0.603622 | albexl |
363177a43a385f5312278583ef45f023df1bc59c | 22,100 | cpp | C++ | imdexp/src/ImdExp.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | 2 | 2022-01-02T08:12:29.000Z | 2022-02-12T22:15:11.000Z | imdexp/src/ImdExp.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | null | null | null | imdexp/src/ImdExp.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | 1 | 2022-01-02T08:09:51.000Z | 2022-01-02T08:09:51.000Z |
/********************************************************************
created: 2003/02/03
created: 4:2:2003 20:17
filename: e:\_dev\tmp\imdexp\src\imdexp.cpp
file path: e:\_dev\tmp\imdexp\src
file base: imdexp
file ext: cpp
author: Chatry Olivier alias gruiiik
purpose: Main exporter function.
********************... | 33.283133 | 132 | 0.643891 | olivierchatry |
3635153692425bbee319815b8082362e37273878 | 380 | cpp | C++ | docs/mfc/codesnippet/CPP/cobarray-class_12.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/codesnippet/CPP/cobarray-class_12.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/codesnippet/CPP/cobarray-class_12.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | CObArray arr;
CAge* pa1;
CAge* pa2;
arr.Add(pa1 = new CAge(21)); // Element 0
arr.Add(pa2 = new CAge(40)); // Element 1
ASSERT(arr.GetSize() == 2);
arr.RemoveAll(); // Pointers removed but objects not deleted.
ASSERT(arr.GetSize() == 0);
... | 34.545455 | 70 | 0.5 | jmittert |
3639fe15dc674230ac5cc6730cbb3b449380b4ff | 20,853 | cpp | C++ | DK/DKFoundation/DKStringW.cpp | Hongtae/DKGL | 0dee0f0e211ad151db3943792ea29979cc8420f6 | [
"BSD-3-Clause"
] | 14 | 2015-09-12T01:32:05.000Z | 2021-10-13T02:52:53.000Z | DK/DKFoundation/DKStringW.cpp | Hongtae/DKGL | 0dee0f0e211ad151db3943792ea29979cc8420f6 | [
"BSD-3-Clause"
] | null | null | null | DK/DKFoundation/DKStringW.cpp | Hongtae/DKGL | 0dee0f0e211ad151db3943792ea29979cc8420f6 | [
"BSD-3-Clause"
] | 3 | 2015-11-10T03:12:49.000Z | 2018-10-15T15:38:31.000Z | //
// File: DKStringW.cpp
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2004-2014 Hongtae Kim. All rights reserved.
//
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <wctype.h>
#include <wchar.h>
#include "DKArray.h"
#include "DKSet.h"
#include "DKStringW.h"
#include "DKStrin... | 19.525281 | 123 | 0.659617 | Hongtae |
363b6761c2d571e3c8242874aae14ffecb346baa | 6,677 | cpp | C++ | Lambgine/lua/LambLua.cpp | lambage/Lambgine | e59836015469db797ef4706e42f65bebecfd86df | [
"MIT"
] | null | null | null | Lambgine/lua/LambLua.cpp | lambage/Lambgine | e59836015469db797ef4706e42f65bebecfd86df | [
"MIT"
] | null | null | null | Lambgine/lua/LambLua.cpp | lambage/Lambgine | e59836015469db797ef4706e42f65bebecfd86df | [
"MIT"
] | null | null | null | #include <stdafx.h>
#include "LambLua.h"
#include <Lambgine.h>
extern "C" {
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "LuaTest.h"
#include <luacppinterface.h>
#define EXIT_CONDITION -2
#if !defined(LUA_PROMPT... | 25.779923 | 116 | 0.62603 | lambage |
364297fd6ce094d48185ede26f277e964433fe8c | 163 | hpp | C++ | src/components/tower_preview.hpp | Green-Sky/miniTD | b710c0e312dcd44ed3ac797c9b7931ab54972c3a | [
"MIT"
] | 7 | 2022-01-27T17:11:23.000Z | 2022-03-29T12:09:26.000Z | src/components/tower_preview.hpp | Green-Sky/miniTD | b710c0e312dcd44ed3ac797c9b7931ab54972c3a | [
"MIT"
] | null | null | null | src/components/tower_preview.hpp | Green-Sky/miniTD | b710c0e312dcd44ed3ac797c9b7931ab54972c3a | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
namespace mini_td::Components {
struct TowerPreview {
float time_accu {0.f};
uint16_t art {0};
};
} // mini_td::Components
| 10.866667 | 31 | 0.693252 | Green-Sky |
364a380c82e0b3bcd721ef5f9dbe562cc00723b6 | 2,761 | hpp | C++ | include/eve/function/fdim.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | include/eve/function/fdim.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | include/eve/function/fdim.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 32.869048 | 116 | 0.410721 | leha-bot |
36506db240e2bb5b7778bf27e3b97cb1da5ac004 | 1,632 | cpp | C++ | cf/contest/1504/e/e.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | cf/contest/1504/e/e.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | cf/contest/1504/e/e.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | // Woshiluo<woshiluo@woshiluo.site>
// 2021/04/03 22:59:31
// Blog: https://blog.woshiluo.com
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <queue>
#include <iostream>
#include <algorithm>
typedef long long ll;
typedef unsigned long long ull;
template <class T>
T Max( T a, T b ) { return a > b?... | 19.2 | 63 | 0.554534 | woshiluo |
3650c0c2a411ab3b0d42845129a929bbbb19f189 | 2,752 | cpp | C++ | oneflow/api/python/functional/common.cpp | MaoXianXin/oneflow | 6caa52f3c5ba11a1d67f183bac4c1559b2a58ef5 | [
"Apache-2.0"
] | null | null | null | oneflow/api/python/functional/common.cpp | MaoXianXin/oneflow | 6caa52f3c5ba11a1d67f183bac4c1559b2a58ef5 | [
"Apache-2.0"
] | null | null | null | oneflow/api/python/functional/common.cpp | MaoXianXin/oneflow | 6caa52f3c5ba11a1d67f183bac4c1559b2a58ef5 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 35.282051 | 100 | 0.704942 | MaoXianXin |
365131668b894866ab5264ef428ecff74a49cf92 | 2,260 | cpp | C++ | Polynomial/polylist.cpp | eouedraogo4/Polynomial | 2a7adba3119acb162525bf71a813e96e105627b0 | [
"MIT"
] | null | null | null | Polynomial/polylist.cpp | eouedraogo4/Polynomial | 2a7adba3119acb162525bf71a813e96e105627b0 | [
"MIT"
] | null | null | null | Polynomial/polylist.cpp | eouedraogo4/Polynomial | 2a7adba3119acb162525bf71a813e96e105627b0 | [
"MIT"
] | null | null | null | #include "polylist.h"
// Constructors
PolyList::PolyList(PolyList const& other) {
head = new PNode(*other.head);
tail = head->next;
len = other.len;
}
// Destructor
PolyList::~PolyList() {
while (head) {
tail = head;
head = head->next;
delete tail;
}
}
Status PolyList::Pus... | 24.565217 | 93 | 0.582743 | eouedraogo4 |
3653cc0b5e6fea3c18e6fd4a1e824a64bd097e8f | 8,703 | cpp | C++ | stratum/job.cpp | now2more/yiimp | 3506d3b0b8304e020d4ae01d11149ff6e49836c3 | [
"MIT"
] | 15 | 2018-01-12T16:21:45.000Z | 2021-04-28T19:20:51.000Z | stratum/job.cpp | now2more/yiimp | 3506d3b0b8304e020d4ae01d11149ff6e49836c3 | [
"MIT"
] | 7 | 2021-04-29T23:11:30.000Z | 2022-01-17T09:33:13.000Z | stratum/job.cpp | now2more/yiimp | 3506d3b0b8304e020d4ae01d11149ff6e49836c3 | [
"MIT"
] | 28 | 2020-11-07T02:28:52.000Z | 2022-03-13T01:56:13.000Z |
#include "stratum.h"
//client->difficulty_remote = 0;
//debuglog(" returning %x, %s, %s\n", job->id, client->sock->ip, #condition); \
#define RETURN_ON_CONDITION(condition, ret) \
if(condition) \
{ \
return ret; \
}
static bool job_assign_client(YAAMP_JOB *job, YAAMP_CLIENT *client, double maxhash)
{
RETURN_O... | 24.794872 | 131 | 0.652304 | now2more |
3653f7cf95aab81a640bd4b30645356edf8b8b74 | 1,270 | cpp | C++ | ForYou.CodingInterviews/CPlus/ReadBook/ForYou.CodingInterviews.CPlusPlus.PrimerPlus007/002.cpp | Gun-Killer/CodingInterviews | 0f06d9f7a79898fbce8a12726bd42077cf7ee071 | [
"MIT"
] | null | null | null | ForYou.CodingInterviews/CPlus/ReadBook/ForYou.CodingInterviews.CPlusPlus.PrimerPlus007/002.cpp | Gun-Killer/CodingInterviews | 0f06d9f7a79898fbce8a12726bd42077cf7ee071 | [
"MIT"
] | null | null | null | ForYou.CodingInterviews/CPlus/ReadBook/ForYou.CodingInterviews.CPlusPlus.PrimerPlus007/002.cpp | Gun-Killer/CodingInterviews | 0f06d9f7a79898fbce8a12726bd42077cf7ee071 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void towDArray(int num[][4], int rows);
void towDArray2(int num[][4], int rows);
void towDArray3(int (*num)[4], int rows);
int main002()
{
int num = 10;
const int* num_p = #
//*num_p = 11; error
const int num2 = 20;
const int* num2_p = &num2;
... | 17.162162 | 41 | 0.434646 | Gun-Killer |
365ee9a4ddfd2bda3664291ef34011aa024670cc | 4,155 | cpp | C++ | CardReaderLibrary/RectangleHelper.cpp | klanderfri/CardReaderLibrary | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 4 | 2019-03-18T14:06:59.000Z | 2021-07-17T18:36:12.000Z | CardReaderLibrary/RectangleHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 17 | 2018-04-12T18:03:16.000Z | 2018-05-09T18:33:07.000Z | CardReaderLibrary/RectangleHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 1 | 2019-03-25T18:31:17.000Z | 2019-03-25T18:31:17.000Z | #include "stdafx.h"
#include "RectangleHelper.h"
#include <opencv2\imgproc.hpp>
using namespace cv;
using namespace std;
RectangleHelper::RectangleHelper()
{
}
RectangleHelper::~RectangleHelper()
{
}
RotatedRect RectangleHelper::GetRotatedRectangle(vector<TrendLine> verticalBorders, vector<TrendLine> horizontalBord... | 34.915966 | 146 | 0.776895 | klanderfri |
365f3b95d8f835a411e48511222a3793c6fa1c13 | 384 | cpp | C++ | src/depricated_code/barcodecounter.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 22 | 2016-08-11T06:16:25.000Z | 2022-02-22T00:06:59.000Z | src/depricated_code/barcodecounter.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 9 | 2016-12-08T12:42:38.000Z | 2021-12-28T20:12:15.000Z | src/depricated_code/barcodecounter.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 8 | 2017-06-26T13:15:06.000Z | 2021-11-12T18:39:54.000Z | //
// barcodecounter.cpp
// barcode_project
//
// Created by luzhao on 12/25/15.
// Copyright © 2015 luzhao. All rights reserved.
//
#include "barcodecounter.h"
#include <string>
#include "kmers_bitwisetransform.h"
using std::string;
namespace barcodeSpace{
BarcodeCounter::BarcodeCounter(size_t klen):_klen(klen)... | 18.285714 | 56 | 0.729167 | LaoZZZZZ |
3666c7c081142a8678529552425d85854df760f2 | 9,331 | cpp | C++ | NOLF/ClientShellDLL/ParticleSystemFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 65 | 2015-02-28T03:35:14.000Z | 2021-09-23T05:43:33.000Z | NOLF/ClientShellDLL/ParticleSystemFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | null | null | null | NOLF/ClientShellDLL/ParticleSystemFX.cpp | rastrup/no-one-lives-forever | dfbe22fb4cc01bf7e5f54a79174fa8f108dd2f54 | [
"Unlicense"
] | 27 | 2015-02-28T07:42:01.000Z | 2022-02-11T01:35:20.000Z | // ----------------------------------------------------------------------- //
//
// MODULE : ParticleSystemFX.cpp
//
// PURPOSE : ParticleSystem special FX - Implementation
//
// CREATED : 10/24/97
//
// ----------------------------------------------------------------------- //
#include "stdafx.h"
#include... | 27.125 | 112 | 0.600686 | rastrup |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.