hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dae53245f62fea7a54ed6926505324621f29f39b | 1,056 | cpp | C++ | roman-to-integer.cpp | isanchez-aguilar/LeetCode-Solutions | 094c15b672efa6ca2581f187579303c8b94390a3 | [
"MIT"
] | null | null | null | roman-to-integer.cpp | isanchez-aguilar/LeetCode-Solutions | 094c15b672efa6ca2581f187579303c8b94390a3 | [
"MIT"
] | null | null | null | roman-to-integer.cpp | isanchez-aguilar/LeetCode-Solutions | 094c15b672efa6ca2581f187579303c8b94390a3 | [
"MIT"
] | null | null | null | class Solution {
public:
static int getValueOfChar(char c) {
if (c == 'I')
return 1;
if (c == 'V')
return 5;
if (c == 'X')
return 10;
if (c == 'L')
return 50;
if (c == 'C')
return 100;
if (c == 'D')
return 500;
return 1000;
... | 17.311475 | 51 | 0.482008 |
daea7fa9d026ab64bc6657d418427ad9b130ff80 | 1,291 | cpp | C++ | src/modelFactory/FindSCMain.cpp | toebs88/SCAM | 0b5a8f1c57593da40e85d0b8ce6a6cf5616379ca | [
"MIT"
] | 3 | 2018-08-31T21:35:27.000Z | 2018-10-29T04:06:46.000Z | src/modelFactory/FindSCMain.cpp | toebs88/SCAM | 0b5a8f1c57593da40e85d0b8ce6a6cf5616379ca | [
"MIT"
] | 1 | 2018-04-20T12:38:22.000Z | 2018-04-20T12:38:55.000Z | src/modelFactory/FindSCMain.cpp | toebs88/SCAM | 0b5a8f1c57593da40e85d0b8ce6a6cf5616379ca | [
"MIT"
] | null | null | null | #include <iostream>
#include "FindSCMain.h"
namespace SCAM {
FindSCMain::FindSCMain(clang::TranslationUnitDecl *tuDecl):
pass(0),
scMainFound(false),
_scmainFunctionDecl(NULL){
assert (!(tuDecl == NULL));
//Find sc_main
TraverseDecl(tuDecl);
//Is... | 28.688889 | 115 | 0.570875 |
daf21b6cc2dad19ff68ccdb7b99cafead549e91a | 8,908 | cpp | C++ | modules/xfeatures2d/src/pct_signatures_sqfd.cpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 7,158 | 2016-07-04T22:19:27.000Z | 2022-03-31T07:54:32.000Z | modules/xfeatures2d/src/pct_signatures_sqfd.cpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 2,184 | 2016-07-05T12:04:14.000Z | 2022-03-30T19:10:12.000Z | modules/xfeatures2d/src/pct_signatures_sqfd.cpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 5,535 | 2016-07-06T12:01:10.000Z | 2022-03-31T03:13:24.000Z | /*
By downloading, copying, installing or using the software you agree to this license.
If you do not agree to this license, do not download, install,
copy or use the software.
License Agreement
For Open Source Computer Vision Library
(3-clause BSD Licen... | 39.591111 | 140 | 0.591828 |
daf3166dce0501452596e89e418449bde63c9607 | 5,965 | cpp | C++ | StartDialog.cpp | KaikiasVind/CellBadger | c21adf5feec7766decfd4d89a110364d4bdfbc46 | [
"MIT"
] | null | null | null | StartDialog.cpp | KaikiasVind/CellBadger | c21adf5feec7766decfd4d89a110364d4bdfbc46 | [
"MIT"
] | null | null | null | StartDialog.cpp | KaikiasVind/CellBadger | c21adf5feec7766decfd4d89a110364d4bdfbc46 | [
"MIT"
] | null | null | null | #include "StartDialog.h"
#include "ui_StartDialog.h"
#include <QStringList>
#include <QFileDialog>
#include <QDir>
#include <QDebug>
#include <QPushButton>
#include <QLabel>
#include <QObject>
#include <QAction>
#include <QMouseEvent>
#include "Utils/Helper.h"
using Helper::chopFileName;
using Helper::openFileDialog... | 25.063025 | 125 | 0.677284 |
daf428e5daade87c6e23122d7d74215de7f98183 | 719 | cpp | C++ | Rogue.cpp | Kahsyaj/TacticalRPGProject | 689c2131e4ec0e5ccc272e630b9483880ecbafc3 | [
"MIT"
] | null | null | null | Rogue.cpp | Kahsyaj/TacticalRPGProject | 689c2131e4ec0e5ccc272e630b9483880ecbafc3 | [
"MIT"
] | null | null | null | Rogue.cpp | Kahsyaj/TacticalRPGProject | 689c2131e4ec0e5ccc272e630b9483880ecbafc3 | [
"MIT"
] | null | null | null | #include "Rogue.h"
#include "IronArmor.h"
#include "SilverDagger.h"
#include "SilverSword.h"
#include "YewStick.h"
#include "Inventory.h"
//Constructor
//No drop defined
Rogue::Rogue(int lvl) : Monster("Rogue", new int[2]{HP*lvl, HP*lvl}, new int[2]{MANA*lvl, MANA*lvl},
lvl, GOLD*lvl, STRENGTH*lvl, AGILITY*lv... | 29.958333 | 101 | 0.687065 |
dafab4061e8226c67f81de72b61f295ce44a5a1f | 185 | cc | C++ | labs/12-verilog-blink/code/empty/sim.cc | dddrrreee/cs240lx-22spr | 7cab61cbe2ff7779ca414ca7ff64ea00914bf362 | [
"MIT"
] | 2 | 2022-03-29T03:59:29.000Z | 2022-03-29T04:27:26.000Z | labs/12-verilog-blink/code/empty/sim.cc | dddrrreee/cs240lx-22spr | 7cab61cbe2ff7779ca414ca7ff64ea00914bf362 | [
"MIT"
] | null | null | null | labs/12-verilog-blink/code/empty/sim.cc | dddrrreee/cs240lx-22spr | 7cab61cbe2ff7779ca414ca7ff64ea00914bf362 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include "Vled_top.h"
#include "verilated.h"
int main() {
Vled_top* dut = new Vled_top;
dut->eval();
printf("led=%d\n", dut->led_r);
return 0;
}
| 13.214286 | 35 | 0.589189 |
dafb238d7c9ae5709f90ff437c60dd5c5e2410bd | 309 | hpp | C++ | firmware/VersickerungsSensor/src/Display/Pages/Elements/Mixins/FilteredDistanceMixin.hpp | Finomnis/VersickerungsSensor | 90b02acc9c57b71c38a874760008780dce1abc8f | [
"MIT"
] | null | null | null | firmware/VersickerungsSensor/src/Display/Pages/Elements/Mixins/FilteredDistanceMixin.hpp | Finomnis/VersickerungsSensor | 90b02acc9c57b71c38a874760008780dce1abc8f | [
"MIT"
] | null | null | null | firmware/VersickerungsSensor/src/Display/Pages/Elements/Mixins/FilteredDistanceMixin.hpp | Finomnis/VersickerungsSensor | 90b02acc9c57b71c38a874760008780dce1abc8f | [
"MIT"
] | null | null | null | #pragma once
#include "../../../../utils/ValueWatcher.hpp"
namespace Pages::Elements::Mixins
{
class FilteredDistanceMixin
{
protected:
FilteredDistanceMixin();
ValueWatcher<float> &filtered_distance();
private:
ValueWatcher<float> filtered_distance_value;
};
}
| 18.176471 | 52 | 0.653722 |
daff34c6e49f7ce10c7b45518a1edd7a3d66be09 | 5,256 | cpp | C++ | traj_visualization_plugin/src/trajectory_display.cpp | YanzhouWang/rsp_final_project | c58c3efbf507cdd54abf860f7519006bc077c9f0 | [
"MIT"
] | null | null | null | traj_visualization_plugin/src/trajectory_display.cpp | YanzhouWang/rsp_final_project | c58c3efbf507cdd54abf860f7519006bc077c9f0 | [
"MIT"
] | null | null | null | traj_visualization_plugin/src/trajectory_display.cpp | YanzhouWang/rsp_final_project | c58c3efbf507cdd54abf860f7519006bc077c9f0 | [
"MIT"
] | null | null | null | #include <traj_visualization_plugin/trajectory_display.hpp>
namespace trajectory_display_ns{
trajectory_display::trajectory_display(){
description_property_=new rviz::StringProperty("Robot Description","robot_description",
"The name of the ROS parameter where the URDF for the robot is loaded",
... | 38.364964 | 115 | 0.709285 |
97020a69bca2dd711dad18ef03e181da5e4693af | 4,535 | hpp | C++ | Source/src/ezcard/io/scribe/list_property_scribe.hpp | ProtonMail/cpp-openpgp | b47316c51357b8d15eb3bcc376ea5e59a6a9a108 | [
"MIT"
] | 5 | 2019-10-30T06:10:10.000Z | 2020-04-25T16:52:06.000Z | Source/src/ezcard/io/scribe/list_property_scribe.hpp | ProtonMail/cpp-openpgp | b47316c51357b8d15eb3bcc376ea5e59a6a9a108 | [
"MIT"
] | null | null | null | Source/src/ezcard/io/scribe/list_property_scribe.hpp | ProtonMail/cpp-openpgp | b47316c51357b8d15eb3bcc376ea5e59a6a9a108 | [
"MIT"
] | 2 | 2019-11-27T23:47:54.000Z | 2020-01-13T16:36:03.000Z | //
// list_property_scribe.hpp
// OpenPGP
//
// Created by Yanfeng Zhang on 6/23/17.
//
// The MIT License
//
// Copyright (c) 2019 Proton Technologies AG
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), ... | 37.479339 | 139 | 0.587872 |
9704beb9c7e8f67345dac4235bdce1d99220ae3a | 173 | hpp | C++ | include/Game/Entities/Treats/MultiballTreat.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Game/Entities/Treats/MultiballTreat.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Game/Entities/Treats/MultiballTreat.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | #pragma once
#include "Treat.hpp"
class MultiballTreat : public Treat
{
public:
MultiballTreat(sf::Vector2f pos, float launchAngle);
void AddAward(PlayState* state);
}; | 15.727273 | 53 | 0.751445 |
9704e258106af9ac50f95c6e1251955b8cb30194 | 544 | hpp | C++ | include/executor_exam/throw_message_node.hpp | hsgwa/executer_exam | 083d246a1bfaa4b87f0df0d9d73b9bb9ebaf8e24 | [
"Apache-2.0"
] | null | null | null | include/executor_exam/throw_message_node.hpp | hsgwa/executer_exam | 083d246a1bfaa4b87f0df0d9d73b9bb9ebaf8e24 | [
"Apache-2.0"
] | null | null | null | include/executor_exam/throw_message_node.hpp | hsgwa/executer_exam | 083d246a1bfaa4b87f0df0d9d73b9bb9ebaf8e24 | [
"Apache-2.0"
] | 1 | 2021-11-11T12:35:09.000Z | 2021-11-11T12:35:09.000Z | #ifndef __THROW_MESSAGE_NODE_HPP__
#define __THROW_MESSAGE_NODE_HPP__
#include <rclcpp/rclcpp.hpp>
#include <std_msgs/msg/string.hpp>
namespace executor_test
{
class ThrowMessageNode : public rclcpp::Node
{
public:
explicit ThrowMessageNode(const rclcpp::NodeOptions &options);
pri... | 22.666667 | 74 | 0.674632 |
970700f6e7502b8d1f5d358af3d6242ee8392dcc | 2,608 | cpp | C++ | src/aten/src/ATen/native/npu/AddmmKernelNpu.cpp | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-12-02T03:07:35.000Z | 2021-12-02T03:07:35.000Z | src/aten/src/ATen/native/npu/AddmmKernelNpu.cpp | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | 1 | 2021-11-12T07:23:03.000Z | 2021-11-12T08:28:13.000Z | src/aten/src/ATen/native/npu/AddmmKernelNpu.cpp | Ascend/pytorch | 39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2020 Huawei Technologies Co., Ltd
// Copyright (c) 2019, Facebook CORPORATION.
// All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://opensource... | 29.303371 | 103 | 0.704755 |
8ccbe8b685149a575057a1fe2341f07029c38dec | 4,255 | cpp | C++ | src/shared/ai/RandomIA.cpp | StevenEnsea/plt | f36edc064c375b58b4add9de1caa56ee3fc41fce | [
"Apache-2.0"
] | null | null | null | src/shared/ai/RandomIA.cpp | StevenEnsea/plt | f36edc064c375b58b4add9de1caa56ee3fc41fce | [
"Apache-2.0"
] | null | null | null | src/shared/ai/RandomIA.cpp | StevenEnsea/plt | f36edc064c375b58b4add9de1caa56ee3fc41fce | [
"Apache-2.0"
] | null | null | null | #include "ai.h"
#include "engine.h"
#include "state.h"
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
using namespace ai;
using namespace engine;
using namespace state;
using namespace std;
int RandomIA::run (engine::Engine& engine){
// L'IA effectue ces actions uniquement si c'est son tour
//sleep(5)... | 26.93038 | 165 | 0.602115 |
8ccc20dd11a86c904eb27573405378b304d03922 | 1,915 | cpp | C++ | Examples/CPP/WorkingWithProjects/ImportingAndExporting/ReadProjectUIDsFromXMLFile.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | 1 | 2022-03-16T14:31:36.000Z | 2022-03-16T14:31:36.000Z | Examples/CPP/WorkingWithProjects/ImportingAndExporting/ReadProjectUIDsFromXMLFile.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | null | null | null | Examples/CPP/WorkingWithProjects/ImportingAndExporting/ReadProjectUIDsFromXMLFile.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | 1 | 2020-07-01T01:26:17.000Z | 2020-07-01T01:26:17.000Z | /*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Tasks for .NET API reference
when the project is build. Please check https:// Docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manually download Aspose.Tasks for .NET API from https://www.n... | 36.826923 | 164 | 0.784856 |
8ccd54ac424e188603837c89770c80d54353d660 | 1,638 | cpp | C++ | Uncategorized/bts16p6.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/bts16p6.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/bts16p6.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
using ll = long long;
using stt = pair<pair<int, ll>, pair<int, int>>;
const ll mod = 1e9+7;
const int MM = 505;
int n, m, qt;
ll v[MM][MM];
pair<int, ll> dis[MM][MM], ans;
array<int, 2> mv[] = {{0, 1}, {0, -1}, {1, 0}, {-... | 18.827586 | 60 | 0.413919 |
8ccd7e504d55323da82c84b9662b782c3e668742 | 2,526 | hpp | C++ | include/oglplus/object/bound.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 459 | 2016-03-16T04:11:37.000Z | 2022-03-31T08:05:21.000Z | include/oglplus/object/bound.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 2 | 2016-08-08T18:26:27.000Z | 2017-05-08T23:42:22.000Z | include/oglplus/object/bound.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 47 | 2016-05-31T15:55:52.000Z | 2022-03-28T14:49:40.000Z | /**
* @file oglplus/object/bound.hpp
* @brief Operations on currently bound objects
*
* @author Matus Chochlik
*
* Copyright 2010-2015 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)
*/
... | 22.756757 | 68 | 0.732779 |
8ccdc0abe43785e2014d73e8172ed2189027dbe4 | 4,964 | cpp | C++ | brickstone/src/math/vec3.cpp | GenTexX/brickstone | b7dcd9860fee04aa38d7cc4dcb5fbbd52c528d9b | [
"MIT"
] | 1 | 2019-10-10T12:30:14.000Z | 2019-10-10T12:30:14.000Z | brickstone/src/math/vec3.cpp | GenTexX/brickstone | b7dcd9860fee04aa38d7cc4dcb5fbbd52c528d9b | [
"MIT"
] | null | null | null | brickstone/src/math/vec3.cpp | GenTexX/brickstone | b7dcd9860fee04aa38d7cc4dcb5fbbd52c528d9b | [
"MIT"
] | 1 | 2019-10-10T12:52:08.000Z | 2019-10-10T12:52:08.000Z | #include <bspch.h>
#include "Vec3.h"
namespace bs {
const vec3 vec3::up(0.0f, 1.0f, 0.0f);
const vec3 vec3::down(0.0f, -1.0f, 0.0f);
const vec3 vec3::right(1.0f, 0.0f, 0.0f);
const vec3 vec3::left(-1.0f, 0.0f, 0.0f);
const vec3 vec3::back(0.0f, 0.0f, -1.0f);
const vec3 vec3::forward(0.0f, 0.0f, 1.0f);
const ve... | 15.368421 | 125 | 0.595085 |
8ccfbe147c1ddb00c6b36131edb47a96d2caf253 | 16,631 | cp | C++ | Std/Mod/Stamps.cp | romiras/Blackbox-fw-playground | 6de94dc65513e657a9b86c1772e2c07742b608a8 | [
"BSD-2-Clause"
] | 1 | 2016-03-17T08:27:05.000Z | 2016-03-17T08:27:05.000Z | Std/Mod/Stamps.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | null | null | null | Std/Mod/Stamps.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | 1 | 2018-03-14T17:53:27.000Z | 2018-03-14T17:53:27.000Z | MODULE StdStamps;
(**
project = "BlackBox"
organization = "www.oberon.ch"
contributors = "Oberon microsystems"
version = "System/Rsrc/About"
copyright = "System/Rsrc/About"
license = "Docu/BB-License"
changes = ""
issues = ""
**)
(*
StdStamps are used to ke... | 37.373034 | 113 | 0.52793 |
8cd19462045c53dbfb213caad447eb6ab19d1fa9 | 305 | hpp | C++ | include/properties/properties.hpp | Voltra/CppProperties | fe63c7394d764ecafea17c570185139f5cb69a78 | [
"MIT"
] | null | null | null | include/properties/properties.hpp | Voltra/CppProperties | fe63c7394d764ecafea17c570185139f5cb69a78 | [
"MIT"
] | null | null | null | include/properties/properties.hpp | Voltra/CppProperties | fe63c7394d764ecafea17c570185139f5cb69a78 | [
"MIT"
] | null | null | null | #pragma once
/**
* @namespace props
* @brief Root namespace containing property classes
*/
namespace props{}
#include <properties/property.h>
#include <properties/readonly.h>
#include <properties/Prop.h>
#include <properties/ReadProp.h>
#include <properties/WriteProp.h>
#include <properties/utils.h> | 21.785714 | 52 | 0.757377 |
8cd1a5a4bf62b3720695a9a12beaaee08decda9d | 1,357 | cpp | C++ | emulator/src/mame/video/tutankhm.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/video/tutankhm.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/video/tutankhm.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Mirko Buffoni
/***************************************************************************
video.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "emu.h"
#include "includes... | 22.245902 | 119 | 0.512159 |
8cd42c8bf8be13c37152815eca3a7b1e728c26c3 | 282 | cpp | C++ | bitwise is power of 2.cpp | asadd007/beginners-C-program-examples | 5402774a9554feea958907481af3a47d7d6060b7 | [
"MIT"
] | null | null | null | bitwise is power of 2.cpp | asadd007/beginners-C-program-examples | 5402774a9554feea958907481af3a47d7d6060b7 | [
"MIT"
] | null | null | null | bitwise is power of 2.cpp | asadd007/beginners-C-program-examples | 5402774a9554feea958907481af3a47d7d6060b7 | [
"MIT"
] | null | null | null | #include<stdio.h>
int main()
{
int n;//take n=8;
printf("Enter the number to check it is power of 2 or not :\n");
scanf("%d",&n);
if((n&(n-1))==0)//8=1000,7=0111 when we take and of (8 & 7)=0;
printf("%d is power of 2",n);
else
printf("%d is not power of 2",n);
}
| 23.5 | 66 | 0.56383 |
8cd4fd710f3c18a8622b605dc0e595f513b4ca51 | 354 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/Classic XmlAttributeAttribute.Namespace Example/CPP/source.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 3,294 | 2016-10-30T05:27:20.000Z | 2022-03-31T15:59:30.000Z | samples/snippets/cpp/VS_Snippets_Remoting/Classic XmlAttributeAttribute.Namespace Example/CPP/source.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 16,739 | 2016-10-28T19:41:29.000Z | 2022-03-31T22:38:48.000Z | samples/snippets/cpp/VS_Snippets_Remoting/Classic XmlAttributeAttribute.Namespace Example/CPP/source.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 6,701 | 2016-10-29T20:56:11.000Z | 2022-03-31T12:32:26.000Z |
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
using namespace System::Xml::Serialization;
// <Snippet1>
public ref class Car
{
public:
[XmlAttributeAttribute(Namespace="Make")]
String^ MakerName;
[XmlAttributeAttribute(Namespace="Model")]
Stri... | 15.391304 | 45 | 0.723164 |
8cd69161a48a2981e3173a0b39c7f7fce5fbda19 | 28 | cpp | C++ | FootCommander.cpp | amit1021/wargame-a | d46702bf56aff054469eae864fbb59cb87728065 | [
"MIT"
] | null | null | null | FootCommander.cpp | amit1021/wargame-a | d46702bf56aff054469eae864fbb59cb87728065 | [
"MIT"
] | null | null | null | FootCommander.cpp | amit1021/wargame-a | d46702bf56aff054469eae864fbb59cb87728065 | [
"MIT"
] | null | null | null | #include "FootCommander.hpp" | 28 | 28 | 0.821429 |
8cda95fd83e580f2cd1abf917f21598d4332a6a2 | 1,589 | hpp | C++ | src/config.hpp | tpruzina/dvc-toggler-linux | ccd70fedfdc47172e876c04357b863bb758bd304 | [
"BSD-3-Clause"
] | null | null | null | src/config.hpp | tpruzina/dvc-toggler-linux | ccd70fedfdc47172e876c04357b863bb758bd304 | [
"BSD-3-Clause"
] | 1 | 2019-05-20T16:47:28.000Z | 2019-05-20T16:47:28.000Z | src/config.hpp | tpruzina/dvc-toggler-linux | ccd70fedfdc47172e876c04357b863bb758bd304 | [
"BSD-3-Clause"
] | null | null | null | #ifndef CONFIG_HPP
#define CONFIG_HPP
#include <QSettings>
#include <QMap>
#define CONFIG_SLEEP_STR "watcher_sleep_ms"
#define CONFIG_START_MIN_STR "start_minimized"
#define CONFIG_ENABLED_STR "enabled"
#define CONFIG_AUTOHIDE_STR "autohide"
#define CONFIG_TRAY_INFO_SHOWN "tray_icon_warning_shown"... | 29.425926 | 104 | 0.674638 |
8cdb79234c0934d62035d0a852b2e11fc2917b3e | 3,019 | hpp | C++ | include/message.hpp | astuff/can_dbc_loader | ce97f5cf7b002e5faca367c50f33fff2dcde2c43 | [
"MIT"
] | 9 | 2019-10-23T15:00:06.000Z | 2021-04-02T01:45:26.000Z | include/message.hpp | astuff/can_dbc_loader | ce97f5cf7b002e5faca367c50f33fff2dcde2c43 | [
"MIT"
] | null | null | null | include/message.hpp | astuff/can_dbc_loader | ce97f5cf7b002e5faca367c50f33fff2dcde2c43 | [
"MIT"
] | 5 | 2020-04-30T03:45:13.000Z | 2021-11-25T05:28:16.000Z | // Copyright (c) 2019 AutonomouStuff, LLC
//
// 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, pu... | 28.752381 | 80 | 0.735012 |
8cdfcc00eb84c51cc43aa66fa173361f95dbb15a | 1,057 | cpp | C++ | src/ConeClassifier.cpp | BakrN/ImageProcessingFEB | ea4d813de7f2901c44aad369bdbc38d5dbc01d9a | [
"MIT"
] | null | null | null | src/ConeClassifier.cpp | BakrN/ImageProcessingFEB | ea4d813de7f2901c44aad369bdbc38d5dbc01d9a | [
"MIT"
] | null | null | null | src/ConeClassifier.cpp | BakrN/ImageProcessingFEB | ea4d813de7f2901c44aad369bdbc38d5dbc01d9a | [
"MIT"
] | null | null | null | #include "ConeClassifier.h"
vn::ConeClassifier::ConeClassifier(){
}
vn::ConeClassifier::ConeClassifier(const std::shared_ptr<StereoCamera>& Camera){
m_Camera = Camera;
}
vn::ConeClassifier::~ConeClassifier(){
}
void vn::ConeClassifier::Detect(){
//preprocess image to do undermine illumination effects... | 24.581395 | 80 | 0.659413 |
8ce13ff806babb1ef5d71e52db54a76d89500c3b | 1,373 | cpp | C++ | matrix/module/DropoutLayer.cpp | xiaohuihuichao/matrix | 1500b398fe96ee308990dd14590df2b76aba3dad | [
"ICU"
] | 6 | 2019-02-11T09:50:45.000Z | 2021-07-31T03:27:11.000Z | matrix/module/DropoutLayer.cpp | xiaohuihuichao/matrix | 1500b398fe96ee308990dd14590df2b76aba3dad | [
"ICU"
] | null | null | null | matrix/module/DropoutLayer.cpp | xiaohuihuichao/matrix | 1500b398fe96ee308990dd14590df2b76aba3dad | [
"ICU"
] | 1 | 2021-04-25T12:31:03.000Z | 2021-04-25T12:31:03.000Z | #include "DropoutLayer.hpp"
namespace mario
{
DropoutLayer::DropoutLayer(const int &_lastNeuronNum, const double &_p)
{
m_p = _p;
m_in = matrix(1, _lastNeuronNum, 0);
m_mul = matrix(1, _lastNeuronNum, 0);
m_out = matrix(1, _lastNeuronNum, 0);
m_dx = matrix(1, _lastNeuronNum, 0);
}
const matrix& Dropou... | 16.152941 | 81 | 0.612527 |
8ce148dd152c96d19575fb5d72ab2552238fa455 | 3,835 | cpp | C++ | src/inference/src/check_network_batchable.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | src/inference/src/check_network_batchable.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | src/inference/src/check_network_batchable.cpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | #include "check_network_batchable.hpp"
#include "dimension_tracker.hpp"
#include "ie_ngraph_utils.hpp"
#include "ngraph/opsets/opset.hpp"
#include "openvino/op/detection_output.hpp"
#include "openvino/op/ops.hpp"
#include "openvino/pass/manager.hpp"
#include "transformations/common_optimizations/dimension_tracking.hpp... | 48.544304 | 113 | 0.663625 |
8ce6ba6e115cf9ff1876a9f7781287efc9c78fdc | 7,398 | cpp | C++ | Labs/Puppeteer/src/main.cpp | jadnohra/jad-pre-2015-dabblings | 368cbd39c6371b3e48b0c67d9a83fc20eee41346 | [
"MIT"
] | null | null | null | Labs/Puppeteer/src/main.cpp | jadnohra/jad-pre-2015-dabblings | 368cbd39c6371b3e48b0c67d9a83fc20eee41346 | [
"MIT"
] | null | null | null | Labs/Puppeteer/src/main.cpp | jadnohra/jad-pre-2015-dabblings | 368cbd39c6371b3e48b0c67d9a83fc20eee41346 | [
"MIT"
] | null | null | null | #include "NeheGL.h"
#include "app.h"
#define WM_TOGGLEFULLSCREEN (WM_USER+1) // Application Define Message For Toggling
static BOOL g_isProgramLooping; // Window Creation Loop, For FullScreen/Windowed Toggle // Between Fullscreen / Windowed Mode
static BOOL g_createFullScreen;... | 37.744898 | 153 | 0.620843 |
8ce85cbe115c3eaf335aec9520d6771c5923f882 | 2,306 | cpp | C++ | examples/Scrolling/Scrolling.cpp | picrap/vaca | 377070c2124bb71649313f6a144c6bd40fdee723 | [
"MIT"
] | null | null | null | examples/Scrolling/Scrolling.cpp | picrap/vaca | 377070c2124bb71649313f6a144c6bd40fdee723 | [
"MIT"
] | null | null | null | examples/Scrolling/Scrolling.cpp | picrap/vaca | 377070c2124bb71649313f6a144c6bd40fdee723 | [
"MIT"
] | null | null | null | // Vaca - Visual Application Components Abstraction
// Copyright (c) 2005-2009 David Capello
//
// This file is distributed under the terms of the MIT license,
// please read LICENSE.txt for more information.
#include <vaca/vaca.h>
#include "../resource.h"
using namespace vaca;
///////////////////////////... | 24.531915 | 73 | 0.606678 |
8ce922f71f5ddd81ed293609b080050c360b16e3 | 708 | cpp | C++ | 1100/90/1196a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 1100/90/1196a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 1100/90/1196a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <algorithm>
#include <array>
#include <iostream>
using integer = long long;
template <typename T, size_t N>
std::istream& operator >>(std::istream& input, std::array<T, N>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(integer v)
{
std::cout << v << '\n';
}
void solve(std... | 14.16 | 67 | 0.507062 |
8ce9b13579ba3a267f73417c070ea22855259089 | 19,164 | cpp | C++ | plugins/VFS/vfspluginVP/src/vfspluginVP_CVPArchive.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 5 | 2016-04-18T23:12:51.000Z | 2022-03-06T05:12:07.000Z | plugins/VFS/vfspluginVP/src/vfspluginVP_CVPArchive.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 2 | 2015-10-09T19:13:25.000Z | 2018-12-25T17:16:54.000Z | plugins/VFS/vfspluginVP/src/vfspluginVP_CVPArchive.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 15 | 2015-02-23T16:35:28.000Z | 2022-03-25T13:40:33.000Z | /*
* vfspluginVP: Generic GUCEF VFS plugin for "Violation Pack" archives
* Copyright (C) 2002 - 2008. Dinand Vanvelzen
*
* 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; ... | 34.717391 | 128 | 0.412283 |
8cecb7820b8d7d4b2a52d3e4487f4d641983d2c9 | 3,356 | cpp | C++ | common_alg/src/surface_cps3_reader.cpp | bs-eagle/bs-eagle | b1017a4f6ac2dcafba2deafec84052ddde792671 | [
"BSD-3-Clause"
] | 7 | 2015-07-16T22:30:36.000Z | 2020-02-06T10:16:42.000Z | common_alg/src/surface_cps3_reader.cpp | bs-eagle/bs-eagle | b1017a4f6ac2dcafba2deafec84052ddde792671 | [
"BSD-3-Clause"
] | null | null | null | common_alg/src/surface_cps3_reader.cpp | bs-eagle/bs-eagle | b1017a4f6ac2dcafba2deafec84052ddde792671 | [
"BSD-3-Clause"
] | 3 | 2017-01-05T20:06:28.000Z | 2021-12-20T16:19:10.000Z | /// @file surface_cps3_reader.cpp
/// @brief Read surface in CPS-3 ASCII format
/// @author uentity
/// @version 1.0
/// @date 30.09.2015
/// @copyright This source code is released under the terms of
/// the BSD License. See LICENSE for more details.
#include "bs_kernel.h"
#include "conf.h"
#include <fstr... | 25.424242 | 97 | 0.578069 |
8cecd67c9170c77a95ca5206dfc6beeb4ff50153 | 46,408 | cpp | C++ | Galileo/DMP_for_Intel_Edison/MPU6050_6Axis_MotionApps20_4Edison.cpp | danielholanda/Tactile-Glove | 837b5868afe1e567299e78b4c9cf7b5c93f126b5 | [
"MIT"
] | 14 | 2016-11-08T19:06:52.000Z | 2022-03-15T13:20:50.000Z | Galileo/DMP_for_Intel_Edison/MPU6050_6Axis_MotionApps20_4Edison.cpp | danielholanda/Tactile-Glove | 837b5868afe1e567299e78b4c9cf7b5c93f126b5 | [
"MIT"
] | null | null | null | Galileo/DMP_for_Intel_Edison/MPU6050_6Axis_MotionApps20_4Edison.cpp | danielholanda/Tactile-Glove | 837b5868afe1e567299e78b4c9cf7b5c93f126b5 | [
"MIT"
] | null | null | null | /*
* MPU6050_Axis_MotionApps20.cpp
*
* Created on: 2016年1月10日
* Author: qq95538
*/
// I2Cdev library collection - MPU6050 I2C device class, 6-axis MotionApps 2.0 implementation
// Based on InvenSense MPU-6050 register map document rev. 2.0, 5/19/2011 (RM-MPU-6000A-00)
// 6/18/2012 by Jeff Rowberg <jeff@rowb... | 45.453477 | 134 | 0.618471 |
8cf02ef30bf559dd11e9df2d3d58fb0a749eac70 | 6,428 | hpp | C++ | State/code/StateMachine.hpp | HONGYU-LEE/DesignPatterns | b725a4daa07e13f7eaf8b2cfe9f8da6ffb491918 | [
"MIT"
] | null | null | null | State/code/StateMachine.hpp | HONGYU-LEE/DesignPatterns | b725a4daa07e13f7eaf8b2cfe9f8da6ffb491918 | [
"MIT"
] | null | null | null | State/code/StateMachine.hpp | HONGYU-LEE/DesignPatterns | b725a4daa07e13f7eaf8b2cfe9f8da6ffb491918 | [
"MIT"
] | null | null | null | #pragma once
#include"State.hpp"
class MarioStateMachine
{
public:
MarioStateMachine()
: _score(0)
{
//提前缓存各种状态
_normalMario = new NormalMario(this);
_superMario = new SuperMario(this);
_fireMario = new FireMario(this);
_deadMario = new DeadMario(this);
... | 23.807407 | 71 | 0.558027 |
8cf1cca6709f496c90b1ffcf3cbaa568ef803876 | 3,128 | cpp | C++ | 301-400/309-Best_Time_to_Buy_and_Sell_Stock_with_Cooldown-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | 1 | 2018-10-02T22:44:52.000Z | 2018-10-02T22:44:52.000Z | 301-400/309-Best_Time_to_Buy_and_Sell_Stock_with_Cooldown-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | 301-400/309-Best_Time_to_Buy_and_Sell_Stock_with_Cooldown-m.cpp | ysmiles/leetcode-cpp | e7e6ef11224c7383071ed8efbe2feac313824a71 | [
"BSD-3-Clause"
] | null | null | null | // Say you have an array for which the ith element is the price of a given stock
// on day i.
// Design an algorithm to find the maximum profit. You may complete as many
// transactions as you like (ie, buy one and sell one share of the stock
// multiple times) with the following restrictions:
// You may not enga... | 31.59596 | 141 | 0.538683 |
8cf76e3a2f55f04ec658adbbce9fe0ea6b6b9d73 | 1,412 | cpp | C++ | resources.cpp | 5cript/minide | 0964ae51512eb7ba1ee44d828d27e5b73da32245 | [
"MIT"
] | null | null | null | resources.cpp | 5cript/minide | 0964ae51512eb7ba1ee44d828d27e5b73da32245 | [
"MIT"
] | 1 | 2018-01-26T00:06:19.000Z | 2018-01-26T00:06:54.000Z | resources.cpp | 5cript/minide | 0964ae51512eb7ba1ee44d828d27e5b73da32245 | [
"MIT"
] | null | null | null | #include "resources.hpp"
#include <boost/dll/runtime_symbol_info.hpp>
#include <fstream>
#include <sstream>
namespace MinIDE
{
//#####################################################################################################################
path getResourcesDirectory()
{
auto program_pa... | 33.619048 | 120 | 0.386686 |
8cf8c764d68f0576d49cf9bbb33bd30b7e6a0e51 | 1,927 | cc | C++ | fibonacci_sum/fibonacci_sum.cc | ULL-ESIT-IB-2020-2021/ib-practica09-funciones-LZ01014 | c3351a8e1e62d01dad072c21f57654c102efc114 | [
"MIT"
] | null | null | null | fibonacci_sum/fibonacci_sum.cc | ULL-ESIT-IB-2020-2021/ib-practica09-funciones-LZ01014 | c3351a8e1e62d01dad072c21f57654c102efc114 | [
"MIT"
] | null | null | null | fibonacci_sum/fibonacci_sum.cc | ULL-ESIT-IB-2020-2021/ib-practica09-funciones-LZ01014 | c3351a8e1e62d01dad072c21f57654c102efc114 | [
"MIT"
] | 2 | 2020-12-02T13:04:29.000Z | 2020-12-07T00:17:01.000Z | /**
* Universidad de La Laguna
* Escuela Superior de Ingeniería y Tecnología
* Grado en Ingeniería Informática
* Informática Básica
*
* @author F. de Sande
* @date 7.nov.2020
* @brief Cada nuevo término de la serie de Fibonacci se genera sumando los dos anteriores.
* Comenzando con 0 y 1, los primeros ... | 33.807018 | 104 | 0.646082 |
8cf90e7707c1f12d35fcd1633760e24ff715f571 | 3,984 | cpp | C++ | src/GameClient/MapView/ResourcesBar.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T13:44:49.000Z | 2021-01-19T10:39:48.000Z | src/GameClient/MapView/ResourcesBar.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | null | null | null | src/GameClient/MapView/ResourcesBar.cpp | vitek-karas/WarPlusPlus | 3abb26ff30dc0e93de906ab6141b89c2fa301ae4 | [
"MIT"
] | 4 | 2019-06-17T16:03:20.000Z | 2020-02-15T09:14:30.000Z | // ResourcesBar.cpp: implementation of the CResourcesBar class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ResourcesBar.h"
#include "..\GameClientGlobal.h"
#include "..\DataObjects\CMap.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#d... | 23.298246 | 128 | 0.626255 |
8cf9baba50c162a61a817c1d88bfc08028f7fe46 | 417 | cpp | C++ | BASIC c++/beginning_with_cpp/token_structure_controlstructure/exercise_3.7_SUM.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/beginning_with_cpp/token_structure_controlstructure/exercise_3.7_SUM.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/beginning_with_cpp/token_structure_controlstructure/exercise_3.7_SUM.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | //
// Created by rahul on 21/7/19.
//
#include <iostream>
#include <cmath>
#define ACCURACY 0.001
int main()
{
int n;
float sum,n1,m;
n=1;sum=0;
for(int i=1;;i++) {
n1 = float(1) / n;
m = pow(n1, i);
std::cout<<m<<'\n';
sum +=m;
std::cout<<"sum"<<sum<<'\n';
... | 16.68 | 36 | 0.434053 |
8cfcd4b41e0a05d8a7421905aaa8d3713f9c4f17 | 1,151 | hpp | C++ | Project/RSA_Input.hpp | elie-wanko/RSA-in-Optical-Networks | a23e4525b865826aca8e2d5b6ce55d7b3fc20528 | [
"MIT"
] | null | null | null | Project/RSA_Input.hpp | elie-wanko/RSA-in-Optical-Networks | a23e4525b865826aca8e2d5b6ce55d7b3fc20528 | [
"MIT"
] | null | null | null | Project/RSA_Input.hpp | elie-wanko/RSA-in-Optical-Networks | a23e4525b865826aca8e2d5b6ce55d7b3fc20528 | [
"MIT"
] | null | null | null | #ifndef RSA_INPUT_HPP
#define RSA_INPUT_HPP
#include <vector>
#include <string>
//Forward declaration
class Demand;
class Vertex;
class Edge;
class RSA_Input {
private:
std::string file_Outputplacement_;
std::vector<Demand *> requests_;
std::vector<Vertex *> nodes_;
std::vector<... | 22.134615 | 78 | 0.612511 |
8cfce37bdb0ee0541268171e2dad940d44557d5c | 2,508 | cpp | C++ | frameworks-ext/av/media/libstagefright/wifi-display-mediatek/sink/LinearRegression.cpp | touxiong88/92_mediatek | 5e96a7bb778fd9d9b335825584664e0c8b5ff2c7 | [
"Apache-2.0"
] | 1 | 2022-01-07T01:53:19.000Z | 2022-01-07T01:53:19.000Z | frameworks-ext/av/media/libstagefright/wifi-display-mediatek/sink/LinearRegression.cpp | touxiong88/92_mediatek | 5e96a7bb778fd9d9b335825584664e0c8b5ff2c7 | [
"Apache-2.0"
] | null | null | null | frameworks-ext/av/media/libstagefright/wifi-display-mediatek/sink/LinearRegression.cpp | touxiong88/92_mediatek | 5e96a7bb778fd9d9b335825584664e0c8b5ff2c7 | [
"Apache-2.0"
] | 1 | 2020-02-28T02:48:42.000Z | 2020-02-28T02:48:42.000Z | /*
* Copyright 2012, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 22.594595 | 80 | 0.583333 |
ea0058484aadc9a76c9fa0d2bd09d9540088fd77 | 2,254 | cpp | C++ | cores/n64/GLideN64/src/GLideNHQ/txWidestringWrapper.cpp | wulfebw/retro | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | [
"MIT-0",
"MIT"
] | 7 | 2020-07-20T12:11:35.000Z | 2021-12-23T02:09:19.000Z | cores/n64/GLideN64/src/GLideNHQ/txWidestringWrapper.cpp | wulfebw/retro | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | [
"MIT-0",
"MIT"
] | null | null | null | cores/n64/GLideN64/src/GLideNHQ/txWidestringWrapper.cpp | wulfebw/retro | dad4b509e99e729e39a2f27e9ee4120e3b607f58 | [
"MIT-0",
"MIT"
] | 1 | 2020-08-29T16:36:48.000Z | 2020-08-29T16:36:48.000Z | #ifdef OS_ANDROID
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include "txWidestringWrapper.h"
tx_wstring::tx_wstring(const wchar_t * wstr) : _wstring(wstr)
{
wcstombs(cbuf, wstr, BUF_SIZE);
_astring.assign(cbuf);
}
tx_wstring::tx_wstring(const tx_wstring & other) : _wstring(other.c_str())
{
wcstom... | 18.783333 | 74 | 0.712067 |
ea017d4ceeb555ab858a441fe7c08b6fab504293 | 6,173 | cpp | C++ | WaterEveryDay/third_party/GdiOle/GDIImageOLE.cpp | achellies/WaterEveryDay | 376b8a22b288a2b275861363a731a5054c43bf0a | [
"MIT"
] | 5 | 2016-03-11T08:49:04.000Z | 2019-07-19T02:18:02.000Z | WaterEveryDay/third_party/GdiOle/GDIImageOLE.cpp | achellies/WaterEveryDay | 376b8a22b288a2b275861363a731a5054c43bf0a | [
"MIT"
] | null | null | null | WaterEveryDay/third_party/GdiOle/GDIImageOLE.cpp | achellies/WaterEveryDay | 376b8a22b288a2b275861363a731a5054c43bf0a | [
"MIT"
] | 4 | 2015-07-01T03:34:51.000Z | 2019-12-25T18:21:38.000Z | // GDIImage.cpp : Implementation of CGDIImageOle
#include "stdafx.h"
#include "GDIImageOle.h"
// CGDIImageOle
//using namespace Gdiplus;
const IID IID_IGDIImageDeleteNotify = {0xa991582, 0x6f1a, 0x4150, 0xbd, 0xcd, 0x25, 0x3b, 0xb7, 0x8c, 0xf9, 0xf};
CGDIImageOle::CGDIImageOle():
m_pImage(NULL),
m_Frame... | 26.493562 | 118 | 0.672607 |
ea0208315cc3df4de2ecf683063501a8fc659c8f | 6,987 | hpp | C++ | MsgWnd.hpp | chrisoldwood/WCL | 608a83f9e41f4c1d2a7ac6991abbcf264d5924e0 | [
"MIT"
] | 5 | 2017-10-02T04:10:35.000Z | 2021-07-26T04:45:35.000Z | MsgWnd.hpp | chrisoldwood/WCL | 608a83f9e41f4c1d2a7ac6991abbcf264d5924e0 | [
"MIT"
] | null | null | null | MsgWnd.hpp | chrisoldwood/WCL | 608a83f9e41f4c1d2a7ac6991abbcf264d5924e0 | [
"MIT"
] | null | null | null | /******************************************************************************
** (C) Chris Oldwood
**
** MODULE: MSGWND.HPP
** COMPONENT: Windows C++ Library.
** DESCRIPTION: The CMsgWnd class declaration.
**
*******************************************************************************
*/
// Check for previous in... | 28.173387 | 117 | 0.642765 |
ea038c5120b075ddc7600e85808666bc4aaee631 | 552 | cc | C++ | Semestre_5/IN505/TD/C++/td1/tdexo5/point.cc | abedeltawil/Licence3_Informatique | 892b7b2cd74778539b534b57026bf8b4a3453c4f | [
"MIT"
] | 1 | 2019-11-28T22:41:57.000Z | 2019-11-28T22:41:57.000Z | Semestre_5/IN505/TD/C++/td1/tdexo5/point.cc | abedeltawil/Licence3_Informatique | 892b7b2cd74778539b534b57026bf8b4a3453c4f | [
"MIT"
] | null | null | null | Semestre_5/IN505/TD/C++/td1/tdexo5/point.cc | abedeltawil/Licence3_Informatique | 892b7b2cd74778539b534b57026bf8b4a3453c4f | [
"MIT"
] | 7 | 2019-10-23T16:11:58.000Z | 2019-12-14T12:27:27.000Z | #include "point.h"
#include <iostream>
#include <cstring>
#include <cmath>
using namespace std;
Point::Point(){
this->x=0;
this->y=0;
}
Point::Point(double x,double y){
this->x=x;
this->y=y;
}
Point::Point(Point& p){
this->x=p.getX();
this->y=p.getY();
}
double Point::getX(){
return this->x;
}
double Point::g... | 15.333333 | 51 | 0.608696 |
ea03b84ece42767e529e38791be6276b07e3c621 | 1,544 | cpp | C++ | src/gradient_descent.cpp | dsherma7/LinearRegression | ce0827bfe7b98cfaf1d6df3c736694ae7ea3a8c3 | [
"MIT"
] | null | null | null | src/gradient_descent.cpp | dsherma7/LinearRegression | ce0827bfe7b98cfaf1d6df3c736694ae7ea3a8c3 | [
"MIT"
] | null | null | null | src/gradient_descent.cpp | dsherma7/LinearRegression | ce0827bfe7b98cfaf1d6df3c736694ae7ea3a8c3 | [
"MIT"
] | null | null | null | #include <Eigen/Dense>
double mse(Eigen::MatrixXd X, Eigen::VectorXd W, Eigen::VectorXd Y);
Eigen::VectorXd _derivative(Eigen::MatrixXd X, Eigen::VectorXd W,
Eigen::VectorXd Y) {
/*
Computes the jth derivative given W, X, Y
by following gradient descent where
D_j J(W,X) = (Y -... | 29.132075 | 76 | 0.579663 |
ea06bb35c1378bea013384c842221ae36d28d4c3 | 1,121 | cpp | C++ | src/dng_engine/XMLHelper.cpp | szczypiorofix/dungeon_engine | dd1db1c22a73eabd9ea18d44a133d71427957180 | [
"MIT"
] | null | null | null | src/dng_engine/XMLHelper.cpp | szczypiorofix/dungeon_engine | dd1db1c22a73eabd9ea18d44a133d71427957180 | [
"MIT"
] | null | null | null | src/dng_engine/XMLHelper.cpp | szczypiorofix/dungeon_engine | dd1db1c22a73eabd9ea18d44a133d71427957180 | [
"MIT"
] | null | null | null | /*
* Dungeon Engine
* Copyright (C) 2020 szczypiorofix <szczypiorofix@o2.pl>
*/
#include "XMLHelper.h"
int XMLHelper::xmlCharToInt(const xmlChar* a) {
int c = 0, sign = 0, offset = 0, n = 0;
if (a[0] == '-') {
sign = -1;
}
if (sign == -1) {
offset = 1;
}
else {
offset = 0;
}
n = 0;
for (c = offset;... | 15.356164 | 70 | 0.522748 |
ea09432aabad0fc4950466ce982930d98fb37c09 | 5,518 | cpp | C++ | HedgeLib/src/io/hl_stream.cpp | Radfordhound/HedgeLib | e59f875bb7feba37bc5a373a50ae5af8874cd1e2 | [
"BSD-2-Clause"
] | 56 | 2017-02-14T13:19:52.000Z | 2022-03-26T03:59:07.000Z | HedgeLib/src/io/hl_stream.cpp | Radfordhound/HedgeLib | e59f875bb7feba37bc5a373a50ae5af8874cd1e2 | [
"BSD-2-Clause"
] | 66 | 2017-04-22T01:02:04.000Z | 2021-08-18T00:41:04.000Z | HedgeLib/src/io/hl_stream.cpp | Radfordhound/HedgeLib | e59f875bb7feba37bc5a373a50ae5af8874cd1e2 | [
"BSD-2-Clause"
] | 30 | 2017-02-16T09:07:31.000Z | 2022-01-20T23:48:22.000Z | #include "hedgelib/io/hl_stream.h"
#include <memory>
namespace hl
{
stream::~stream() {}
void stream::read_all(std::size_t size, void* buf)
{
const std::size_t readByteCount = read(size, buf);
if (readByteCount != size)
{
// TODO: Throw a better error?
HL_ERROR(error_type::unknown);
}
... | 25.546296 | 87 | 0.600942 |
ea0dfab3accb98ecb414c3727797d1580fc51380 | 1,529 | cpp | C++ | source/MaterialXTest/MaterialXFormat/XmlExport.cpp | jerrans/MaterialX | 8f2b4dd34c3e936d180cc6f0ead52f26efc8a2c6 | [
"BSD-3-Clause"
] | 101 | 2017-08-08T12:08:01.000Z | 2022-03-17T06:37:58.000Z | source/MaterialXTest/MaterialXFormat/XmlExport.cpp | jerrans/MaterialX | 8f2b4dd34c3e936d180cc6f0ead52f26efc8a2c6 | [
"BSD-3-Clause"
] | 1,002 | 2018-01-09T10:33:07.000Z | 2022-03-31T18:35:04.000Z | source/MaterialXTest/MaterialXFormat/XmlExport.cpp | jerrans/MaterialX | 8f2b4dd34c3e936d180cc6f0ead52f26efc8a2c6 | [
"BSD-3-Clause"
] | 24 | 2018-01-05T20:16:36.000Z | 2022-02-03T15:40:14.000Z | //
// TM & (c) 2021 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
// All rights reserved. See LICENSE.txt for license.
//
#include <MaterialXTest/Catch/catch.hpp>
#include <MaterialXFormat/XmlExport.h>
namespace mx = MaterialX;
TEST_CASE("File Path Predicate", "[xmlexport]")
{
mx::FileSearchPath sear... | 36.404762 | 141 | 0.69261 |
ea0f1967721cd8d30cf9086331dd8fd119eb2d3d | 394 | cpp | C++ | solved/0-b/arrange-the-numbers/gen.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/0-b/arrange-the-numbers/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/0-b/arrange-the-numbers/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#include <cstdlib>
#include <ctime>
#if 0
#define MAXT 1000
#define MAXN 1000
#endif
#if 1
#define MAXT 20
#define MAXN 1000
#endif
int T;
void gen()
{
int N = rand() % MAXN + 1;
int M = rand() % N + 1;
int K = rand() % M + 1;
printf("%d %d %d\n", N, M, K);
--T;
}
int main()
{
srand(time... | 9.85 | 31 | 0.550761 |
ea157f15576755de1efd6ebc866056f8a9983480 | 111,373 | cpp | C++ | Code/Projects/Rosa/src/Components/wbcomprosaplayer.cpp | dphrygian/zeta | 2b32760558cf2b20c626cf46fcf2a382924988fe | [
"Zlib",
"Unlicense"
] | 6 | 2022-01-22T02:18:07.000Z | 2022-02-14T09:30:53.000Z | Code/Projects/Rosa/src/Components/wbcomprosaplayer.cpp | dphrygian/zeta | 2b32760558cf2b20c626cf46fcf2a382924988fe | [
"Zlib",
"Unlicense"
] | null | null | null | Code/Projects/Rosa/src/Components/wbcomprosaplayer.cpp | dphrygian/zeta | 2b32760558cf2b20c626cf46fcf2a382924988fe | [
"Zlib",
"Unlicense"
] | null | null | null | #include "core.h"
#include "wbcomprosaplayer.h"
#include "keyboard.h"
#include "rosaworld.h"
#include "rosaframework.h"
#include "wbeventmanager.h"
#include "wbcomprosatransform.h"
#include "wbcomprosacollision.h"
#include "wbcomprosacamera.h"
#include "wbcomprosafootsteps.h"
#include "wbcomprosahealth.h"
#include "wbc... | 33.375187 | 261 | 0.743044 |
ea1661eda603cd1b755ed6abeda67e0793b7072c | 3,283 | hpp | C++ | third_party/xsimd/types/xsimd_common_math.hpp | jeanlaroche/pythran | 6a2452e8588390bbb20575f580dba11b0037962b | [
"BSD-3-Clause"
] | 1 | 2019-11-09T07:12:56.000Z | 2019-11-09T07:12:56.000Z | third_party/xsimd/types/xsimd_common_math.hpp | jeanlaroche/pythran | 6a2452e8588390bbb20575f580dba11b0037962b | [
"BSD-3-Clause"
] | 1 | 2015-12-19T10:53:53.000Z | 2015-12-19T17:58:20.000Z | third_party/xsimd/types/xsimd_common_math.hpp | jeanlaroche/pythran | 6a2452e8588390bbb20575f580dba11b0037962b | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and *
* Martin Renou *
* Copyright (c) QuantStack *
* ... | 31.266667 | 93 | 0.335364 |
ea1a1a4ad651a8413789e171ef860cd2d745c0e6 | 107 | cpp | C++ | LiberoEngine/src/Libero/Components/InputComponent.cpp | Kair0z/LiberoEngine3D | 84c5f75251f19330da9a490587bbf0911bdb681a | [
"MIT"
] | null | null | null | LiberoEngine/src/Libero/Components/InputComponent.cpp | Kair0z/LiberoEngine3D | 84c5f75251f19330da9a490587bbf0911bdb681a | [
"MIT"
] | null | null | null | LiberoEngine/src/Libero/Components/InputComponent.cpp | Kair0z/LiberoEngine3D | 84c5f75251f19330da9a490587bbf0911bdb681a | [
"MIT"
] | null | null | null | #include "Liber_pch.h"
#include "InputComponent.h"
void Libero::InputComponent::HandleEvent(IEvent& )
{
}
| 15.285714 | 50 | 0.747664 |
ea1e97576f585169d98fd8f01f696db032199934 | 10,874 | cpp | C++ | src/plugins/vtyulc/vlcplayer.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/plugins/vtyulc/vlcplayer.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/vtyulc/vlcplayer.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2013 Vladislav Tyulbashev
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or org... | 26.014354 | 140 | 0.697995 |
ea1facd474872ae296f836d868e0b674e4ccedc0 | 787 | hpp | C++ | src/CacheClient.hpp | mostynb/tundra | 4feb8c9309f2bdad6d3ef1ad8a522f5726b5f9c1 | [
"MIT"
] | null | null | null | src/CacheClient.hpp | mostynb/tundra | 4feb8c9309f2bdad6d3ef1ad8a522f5726b5f9c1 | [
"MIT"
] | null | null | null | src/CacheClient.hpp | mostynb/tundra | 4feb8c9309f2bdad6d3ef1ad8a522f5726b5f9c1 | [
"MIT"
] | null | null | null | #pragma once
#include "Hash.hpp"
namespace Frozen { struct DagNode; struct Dag; }
struct StatCache;
struct Mutex;
struct ThreadState;
namespace CacheResult
{
enum Enum
{
DidNotTry,
Failure,
CacheMiss,
Success,
};
}
struct CacheClient
{
static CacheResult::Enum Attempt... | 28.107143 | 219 | 0.7446 |
ea221a48a43ed4ee332d6f60ac6fd941bf9321f2 | 5,515 | cpp | C++ | server.cpp | Stykk-Gruppen/qTracker-Server | 4abf1a6a583c9681481e7fd678aa31a467f8040f | [
"MIT"
] | null | null | null | server.cpp | Stykk-Gruppen/qTracker-Server | 4abf1a6a583c9681481e7fd678aa31a467f8040f | [
"MIT"
] | 2 | 2020-06-03T10:03:48.000Z | 2020-08-24T13:58:34.000Z | server.cpp | Feqzz/qTracker-Server | 4abf1a6a583c9681481e7fd678aa31a467f8040f | [
"MIT"
] | null | null | null | #include "server.h"
#include <string>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <iostream>
/**
* Initializes the openssl library, creates SSL context, configures it
* and creates ... | 22.789256 | 96 | 0.553218 |
ea2948783dfe546548f7937329adac5262413e9c | 550 | cpp | C++ | Sail/src/Sail/entities/components/RagdollComponent.cpp | BTH-StoraSpel-DXR/SPLASH | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 12 | 2019-09-11T15:52:31.000Z | 2021-11-14T20:33:35.000Z | Sail/src/Sail/entities/components/RagdollComponent.cpp | BTH-StoraSpel-DXR/Game | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 227 | 2019-09-11T08:40:24.000Z | 2020-06-26T14:12:07.000Z | Sail/src/Sail/entities/components/RagdollComponent.cpp | BTH-StoraSpel-DXR/Game | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 2 | 2020-10-26T02:35:18.000Z | 2020-10-26T02:36:01.000Z | #include "pch.h"
#include "RagdollComponent.h"
RagdollComponent::RagdollComponent() {
localCenterOfMass = {0.f, 0.f, 0.f};
wireframeModel = nullptr;
}
RagdollComponent::RagdollComponent(Model* wireframe) {
localCenterOfMass = { 0.f, 0.f, 0.f };
wireframeModel = wireframe;
}
RagdollComponent::~RagdollComponent()... | 22.916667 | 83 | 0.752727 |
ea2a6ec0c8c1518fd2627ff467f0bcd2f715cfd0 | 572 | cc | C++ | zircon/kernel/phys/panic.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | zircon/kernel/phys/panic.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | zircon/kernel/phys/panic.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <zircon/assert.h>
#include "main.h"
// This is what ZX_ASSERT calls.
// TODO(mcgrathr): print message, backtrace
PHYS_S... | 30.105263 | 80 | 0.736014 |
ea2c4a8b11b218b908d90e5bb9c606fab4a98ba6 | 996 | cpp | C++ | PID Controller implementation/blocks/differentiator.cpp | SokratALDARMINI/Implementation-of-PID-controller-using-Qt-creator | 9281560aae98c5142dcc4428ce39fbd1b8bb2b28 | [
"MIT"
] | null | null | null | PID Controller implementation/blocks/differentiator.cpp | SokratALDARMINI/Implementation-of-PID-controller-using-Qt-creator | 9281560aae98c5142dcc4428ce39fbd1b8bb2b28 | [
"MIT"
] | null | null | null | PID Controller implementation/blocks/differentiator.cpp | SokratALDARMINI/Implementation-of-PID-controller-using-Qt-creator | 9281560aae98c5142dcc4428ce39fbd1b8bb2b28 | [
"MIT"
] | null | null | null | #include "differentiator.h"
Differentiator::Differentiator(double n)
{// the value of coefficient (N) is set as needed when the differentiator is created the integrator (I) is created with inital output equal zero
N=n; I=new Integrator(0); }
Differentiator::~Differentiator()
{ //the integrator (I) is deleted... | 34.344828 | 145 | 0.695783 |
ea2ca5a2a95fc6632a25d457d167b0d36980f8f3 | 5,820 | cpp | C++ | bitbots_navigation/bitbots_local_planner/src/bitbots_local_planner.cpp | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | null | null | null | bitbots_navigation/bitbots_local_planner/src/bitbots_local_planner.cpp | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | null | null | null | bitbots_navigation/bitbots_local_planner/src/bitbots_local_planner.cpp | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | null | null | null | #include <bitbots_local_planner/bitbots_local_planner.h>
#include <pluginlib/class_list_macros.h>
PLUGINLIB_EXPORT_CLASS(bitbots_local_planner::BBPlanner, nav_core::BaseLocalPlanner)
namespace bitbots_local_planner
{
BBPlanner::BBPlanner()
{
}
void BBPlanner::initialize(std::string name, tf2_ros::B... | 31.290323 | 125 | 0.576632 |
ea2e5481716ce5e091b30ed5aee0bd5819816eaf | 5,691 | hpp | C++ | Wp81Wol/Generated Files/MainPage.g.hpp | fredericGette/Wp81Wol | d2a10e64bdba71353720fcb38ac7230c3d9dd0e2 | [
"MIT"
] | null | null | null | Wp81Wol/Generated Files/MainPage.g.hpp | fredericGette/Wp81Wol | d2a10e64bdba71353720fcb38ac7230c3d9dd0e2 | [
"MIT"
] | null | null | null | Wp81Wol/Generated Files/MainPage.g.hpp | fredericGette/Wp81Wol | d2a10e64bdba71353720fcb38ac7230c3d9dd0e2 | [
"MIT"
] | null | null | null |
//------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//------------------------------------------------------------------------------
#... | 65.413793 | 210 | 0.686523 |
ea2f9e99d5b76a029fb58104b9313e546e674578 | 576 | hpp | C++ | hw3/src/object/geometry.hpp | xupei0610/ComputerGraphics-HW | 299416c0d75db17f6490bbab95a3561210a6277e | [
"MIT"
] | 2 | 2017-10-11T13:48:30.000Z | 2020-06-04T05:30:13.000Z | hw3/src/object/geometry.hpp | xupei0610/ComputerGraphics-HW | 299416c0d75db17f6490bbab95a3561210a6277e | [
"MIT"
] | null | null | null | hw3/src/object/geometry.hpp | xupei0610/ComputerGraphics-HW | 299416c0d75db17f6490bbab95a3561210a6277e | [
"MIT"
] | 2 | 2018-10-05T15:37:29.000Z | 2021-12-20T15:25:48.000Z | #ifndef PX_CG_OBJECT_GEOMETRY_HPP
#define PX_CG_OBJECT_GEOMETRY_HPP
#include "object/geometry/base_geometry.hpp"
#include "object/geometry/box.hpp"
#include "object/geometry/cone.hpp"
#include "object/geometry/cylinder.hpp"
#include "object/geometry/disk.hpp"
#include "object/geometry/ellipsoid.hpp"
#include "object/g... | 32 | 46 | 0.809028 |
ea317fbca3e28c10b4b0e577e351cf6a6bbd06c9 | 6,197 | cpp | C++ | src/Framework/Utility.cpp | Belfer/SFMLTemplate | 7dcf4aa26239252597d681ca72888463cd4a54b0 | [
"MIT"
] | null | null | null | src/Framework/Utility.cpp | Belfer/SFMLTemplate | 7dcf4aa26239252597d681ca72888463cd4a54b0 | [
"MIT"
] | null | null | null | src/Framework/Utility.cpp | Belfer/SFMLTemplate | 7dcf4aa26239252597d681ca72888463cd4a54b0 | [
"MIT"
] | null | null | null | #include "Utility.hpp"
#define TINYOBJLOADER_IMPLEMENTATION
#include <tiny_obj_loader.h>
#include <SFML/Graphics.hpp>
#include <iostream>
#include <string>
#include <fstream>
#include <streambuf>
#define ASSERT(expr) assert(expr)
std::string Utility::LoadTextFile(const std::string& filepath)
{
std::ifstream t(... | 35.210227 | 182 | 0.616589 |
ea31ecc3290c6e3646cb56c0b0742d4a0f278456 | 83 | hpp | C++ | Safety/Inc/RSSI.hpp | YashrajN/ZeroPilot-SW | 3418f7050443af86bc0e7cc8e58177a95adc40eb | [
"BSD-4-Clause"
] | 15 | 2017-09-12T14:54:16.000Z | 2021-09-21T23:28:57.000Z | Safety/Inc/RSSI.hpp | YashrajN/ZeroPilot-SW | 3418f7050443af86bc0e7cc8e58177a95adc40eb | [
"BSD-4-Clause"
] | 67 | 2017-10-31T02:04:44.000Z | 2022-03-28T01:02:25.000Z | Safety/Inc/RSSI.hpp | YashrajN/ZeroPilot-SW | 3418f7050443af86bc0e7cc8e58177a95adc40eb | [
"BSD-4-Clause"
] | 48 | 2017-09-28T23:47:17.000Z | 2022-01-08T18:30:40.000Z | #ifndef RSSI_HPP
#define RSSI_HPP
bool CommsFailed();
void RSSI_Check();
#endif
| 9.222222 | 19 | 0.746988 |
ea32bfeb3470f003807075e55be23f2238848833 | 2,542 | cpp | C++ | src/capi/impl/capi_initialization.cpp | meiwanlanjun/turicreate | acd1422e82e4dabd6da7a3f82771dbf2f0474b1b | [
"BSD-3-Clause"
] | null | null | null | src/capi/impl/capi_initialization.cpp | meiwanlanjun/turicreate | acd1422e82e4dabd6da7a3f82771dbf2f0474b1b | [
"BSD-3-Clause"
] | null | null | null | src/capi/impl/capi_initialization.cpp | meiwanlanjun/turicreate | acd1422e82e4dabd6da7a3f82771dbf2f0474b1b | [
"BSD-3-Clause"
] | null | null | null | /* Copyright © 2018 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#include <unity/server/unity_server_control.hpp>
#include <unity/server/unity_server_options.hpp>
#i... | 29.905882 | 109 | 0.651849 |
ea3498abc15747fdba49966c1e4ee69294837816 | 22,249 | cpp | C++ | Engine/Source/Runtime/CoreUObject/Private/Serialization/PropertyLocalizationDataGathering.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Runtime/CoreUObject/Private/Serialization/PropertyLocalizationDataGathering.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Runtime/CoreUObject/Private/Serialization/PropertyLocalizationDataGathering.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Serialization/PropertyLocalizationDataGathering.h"
#include "UObject/Script.h"
#include "UObject/ObjectMacros.h"
#include "UObject/UObjectHash.h"
#include "UObject/Class.h"
#include "UObject/Package.h"
#include "UObject/UnrealType.h"
#include "UObj... | 39.378761 | 291 | 0.779046 |
ea3b9a0fde1686640ccbd54de121d3eef0fca70c | 23,497 | cpp | C++ | pepnovo/src/main.cpp | compomics/jwrapper-pepnovo | 1bd21a4910d7515dfab7747711917176a6b5ce99 | [
"Apache-2.0"
] | null | null | null | pepnovo/src/main.cpp | compomics/jwrapper-pepnovo | 1bd21a4910d7515dfab7747711917176a6b5ce99 | [
"Apache-2.0"
] | null | null | null | pepnovo/src/main.cpp | compomics/jwrapper-pepnovo | 1bd21a4910d7515dfab7747711917176a6b5ce99 | [
"Apache-2.0"
] | null | null | null | #include "AdvancedScoreModel.h"
#include "FileManagement.h"
#include "Fragmentation.h"
#include "DeNovoDp.h"
#include "QuickClustering.h"
#include "EdgeModel.h"
#include "FragmentSelection.h"
#include "MSBlast.h"
#include "PMCSQS.h"
#include "PeakRankStats.h"
#include "PeptideRankScorer.h"
#include "DeNovoSo... | 35.122571 | 111 | 0.675831 |
ea3bf7111be855d397152194b602065d6a61b0b0 | 107 | hpp | C++ | tests/export.hpp | RealKC/Reiji | 69a8b50c5e1e997fb90652d5b263c27f75e4e0ea | [
"BSL-1.0"
] | null | null | null | tests/export.hpp | RealKC/Reiji | 69a8b50c5e1e997fb90652d5b263c27f75e4e0ea | [
"BSL-1.0"
] | 4 | 2020-08-09T20:33:04.000Z | 2021-02-07T04:02:39.000Z | tests/export.hpp | RealKC/Reiji | 69a8b50c5e1e997fb90652d5b263c27f75e4e0ea | [
"BSL-1.0"
] | null | null | null | #pragma once
#if defined(_WIN32)
# define EXPORT __declspec(dllexport)
#else
# define EXPORT
#endif
| 13.375 | 40 | 0.719626 |
ea3e8e08258da66f0239cb386b3739ca4257eb64 | 721 | cpp | C++ | Observer/Subject.cpp | wolf9970/CST276SRS01 | f4e0a339e19fba1c10f831e8618b91f755cf02f7 | [
"MIT"
] | null | null | null | Observer/Subject.cpp | wolf9970/CST276SRS01 | f4e0a339e19fba1c10f831e8618b91f755cf02f7 | [
"MIT"
] | null | null | null | Observer/Subject.cpp | wolf9970/CST276SRS01 | f4e0a339e19fba1c10f831e8618b91f755cf02f7 | [
"MIT"
] | null | null | null | //
// Created by wolf on 7/9/18.
//
#include "Subject.h"
void Subject::Attach(Observer* observer)
{
observers_.emplace_back(observer);
}
// code from Mitch's in-class slide on erase-remove idiom
void Subject::Detach(Observer* observer)
{
observers_.erase(std::remove_if(observers_.begin(), observers_.end(),
... | 22.53125 | 80 | 0.510402 |
ea3edce689c621c537745fbce640c7806ef286c5 | 457 | cc | C++ | ast/location.cc | asilha/hilti | ebfffc7dad31059b43a02eb26abcf7a25f742eb8 | [
"BSD-3-Clause"
] | 46 | 2015-01-21T13:31:25.000Z | 2020-10-27T10:18:03.000Z | ast/location.cc | jjchromik/hilti-104-total | 0f9e0cb7114acc157211af24f8254e4b23bd78a5 | [
"BSD-3-Clause"
] | 29 | 2015-03-30T08:23:04.000Z | 2019-05-03T13:11:35.000Z | ast/location.cc | jjchromik/hilti-104-total | 0f9e0cb7114acc157211af24f8254e4b23bd78a5 | [
"BSD-3-Clause"
] | 20 | 2015-01-27T12:59:38.000Z | 2020-10-28T21:40:47.000Z |
#include <util/util.h>
#include "location.h"
using namespace ast;
const Location Location::None("<no location>");
Location::operator string() const
{
if ( this == &None )
return "<no location>";
string s = _file.size() ? _file : "<no filename>";
s += ":";
if ( _from >= 0 ) {
if ( ... | 16.925926 | 54 | 0.49453 |
ea3f18a9f2941f8de6e6ad85de09584ffa021e61 | 3,040 | cpp | C++ | Engine/Source/GEOGL/Rendering/SubTexture2D.cpp | Matthew-Krueger/GEOGL | aae6adbd3d9cfadb4fe65b961d018636e42ddecc | [
"Zlib"
] | null | null | null | Engine/Source/GEOGL/Rendering/SubTexture2D.cpp | Matthew-Krueger/GEOGL | aae6adbd3d9cfadb4fe65b961d018636e42ddecc | [
"Zlib"
] | null | null | null | Engine/Source/GEOGL/Rendering/SubTexture2D.cpp | Matthew-Krueger/GEOGL | aae6adbd3d9cfadb4fe65b961d018636e42ddecc | [
"Zlib"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2020 Matthew Krueger *
* *
* This software is provided 'as-is', without any express or implied ... | 55.272727 | 186 | 0.471382 |
ea405f6f53b65abdb821e58f9bf4bb40b9deefa4 | 1,715 | cpp | C++ | src/Cameras/PerspectiveCamera.cpp | drobnik/raytracing-engine | ae4add6e59e2f80c794e13edc6f6fe65ea5615f6 | [
"MIT"
] | 1 | 2018-01-16T18:55:31.000Z | 2018-01-16T18:55:31.000Z | src/Cameras/PerspectiveCamera.cpp | drobnik/raytracing-engine | ae4add6e59e2f80c794e13edc6f6fe65ea5615f6 | [
"MIT"
] | null | null | null | src/Cameras/PerspectiveCamera.cpp | drobnik/raytracing-engine | ae4add6e59e2f80c794e13edc6f6fe65ea5615f6 | [
"MIT"
] | null | null | null | #include "PerspectiveCamera.h"
PerspectiveCamera::PerspectiveCamera(const Vector3& e, const Vector3& look, const Vector3& u,
unsigned int height, unsigned int width, float pixSize,
const std::shared_ptr<AdaptiveSampler>& sampler, float field)
... | 36.489362 | 111 | 0.61516 |
ea423eb3e36b05cb5a4e48631ce07d29b8cf4308 | 3,091 | cpp | C++ | src/api/button/b_skill.cpp | geoo89/Lix | 47dfd2317509ed5cb39b7b230b2de138dc613a6d | [
"CC0-1.0"
] | 1 | 2015-08-29T05:22:40.000Z | 2015-08-29T05:22:40.000Z | src/api/button/b_skill.cpp | carvalhomb/AdaptiveLix | d7054c5f96fae54dccef23e48760851b4981a109 | [
"CC0-1.0"
] | null | null | null | src/api/button/b_skill.cpp | carvalhomb/AdaptiveLix | d7054c5f96fae54dccef23e48760851b4981a109 | [
"CC0-1.0"
] | null | null | null | #include <sstream>
#include "b_skill.h"
#include "../../graphic/gra_lib.h"
#include "../../other/help.h"
#include "../../other/language.h" // Lix-Bildname
namespace Api {
SkillButton::SkillButton(const int nx, const int ny, const int nxl)
:
Button (nx, ny, nxl, 60),
icon(GraLib::get_lix(LixEn::GARDEN), get_... | 25.758333 | 78 | 0.57813 |
ea45370865a076b0520fb580ba48176e80bfcee7 | 5,629 | cc | C++ | easyeye/tests/FilesTest.cc | mike10004/easyeye | d9996cab2edcedbc1eb78ab6366866423c6be023 | [
"MIT"
] | 4 | 2017-01-27T16:38:53.000Z | 2018-09-07T14:02:39.000Z | easyeye/tests/FilesTest.cc | superchao1982/easyeye | d9996cab2edcedbc1eb78ab6366866423c6be023 | [
"MIT"
] | 1 | 2018-07-25T18:19:43.000Z | 2018-07-25T18:19:43.000Z | easyeye/tests/FilesTest.cc | superchao1982/easyeye | d9996cab2edcedbc1eb78ab6366866423c6be023 | [
"MIT"
] | 11 | 2015-02-20T05:28:22.000Z | 2021-07-27T03:57:27.000Z | /*
* File: FilesTest.cc
* Author: mike
*
* Created on Jan 31, 2014, 10:25:33 AM
*/
#include "FilesTest.h"
#include <vector>
#include <string>
#include "../src/easyeye/common/easyeye_utils.h"
using namespace easyeye;
using namespace std;
CPPUNIT_TEST_SUITE_REGISTRATION(FilesTest);
static bool Eq(const string&... | 30.101604 | 92 | 0.52798 |
3569f3f4b1ed81bd76a4a9f74daff5d730c69b77 | 748 | cpp | C++ | December-25/day25_rohithmsr_trappingrainwater.cpp | rohith-bare-on/A-December-of-Algorithms-2020 | aadc6fc59c9e2046a2803d42466991b7357e64dc | [
"MIT"
] | 1 | 2020-12-09T06:12:43.000Z | 2020-12-09T06:12:43.000Z | December-25/day25_rohithmsr_trappingrainwater.cpp | rohith-bare-on/A-December-of-Algorithms-2020 | aadc6fc59c9e2046a2803d42466991b7357e64dc | [
"MIT"
] | null | null | null | December-25/day25_rohithmsr_trappingrainwater.cpp | rohith-bare-on/A-December-of-Algorithms-2020 | aadc6fc59c9e2046a2803d42466991b7357e64dc | [
"MIT"
] | null | null | null | /*
Runtime: 4 ms, faster than 98.81% of C++ online submissions for Trapping Rain Water.
Memory Usage: 14.4 MB, less than 96.32% of C++ online submissions for Trapping Rain Water.
*/
class Solution
{
public:
int trap(vector<int> &height)
{
int i = 0;
int j = height.size() - 1;
int vol = ... | 20.777778 | 90 | 0.417112 |
356e66a8717a03e14994d0f5362993c17eab363d | 918 | cpp | C++ | Homeworks/1_MiniDraw/project/src/App/Curve.cpp | Chaphlagical/USTC_CG | 9f8b0321e09e5a05afb1c93303e3c736f78503fa | [
"MIT"
] | 13 | 2020-05-21T03:12:48.000Z | 2022-01-20T01:25:02.000Z | Homeworks/1_MiniDraw/project/src/App/Curve.cpp | lyf7115/USTC_CG | 9f8b0321e09e5a05afb1c93303e3c736f78503fa | [
"MIT"
] | null | null | null | Homeworks/1_MiniDraw/project/src/App/Curve.cpp | lyf7115/USTC_CG | 9f8b0321e09e5a05afb1c93303e3c736f78503fa | [
"MIT"
] | 4 | 2020-06-13T13:14:14.000Z | 2021-12-15T07:36:05.000Z | #include "Curve.h"
using namespace minidraw;
Curve::Curve()
{
type_ = kCurve;
finish = false;
polygon.push_back(start);
}
Curve::~Curve()
{
}
void Curve::update(int mode)
{
switch (mode)
{
case 0:
finish = true;
break;
case 1:
if (polygon.size() > 0)
{
polygon.back() = end;
points.push_back(end... | 15.827586 | 55 | 0.58061 |
356fe67569b3e8efd7d30b4e41ead2f716705f08 | 24,565 | cpp | C++ | inetsrv/iis/svcs/smtp/adminsso/admin.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/iis/svcs/smtp/adminsso/admin.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/iis/svcs/smtp/adminsso/admin.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // admin.cpp : Implementation of CsmtpadmApp and DLL registration.
#include "stdafx.h"
#include "metautil.h"
#include "smtpadm.h"
#include "smtpcmn.h"
#include "smtpprop.h"
#include "admin.h"
#include "version.h"
#include "oleutil.h"
#include "metakey.h"
#define SMTP_DEF_SERVICE_VERSION ( 0 ) // MCIS... | 21.91347 | 100 | 0.596173 |
3573fb7d5e9ca7e52ba4fdd797c30dc406b3ff22 | 1,402 | hpp | C++ | modules/sdk/include/nt2/sdk/dsl/proto/extends.hpp | brycelelbach/nt2 | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | [
"BSL-1.0"
] | 1 | 2022-03-24T03:35:10.000Z | 2022-03-24T03:35:10.000Z | modules/sdk/include/nt2/sdk/dsl/proto/extends.hpp | brycelelbach/nt2 | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | [
"BSL-1.0"
] | null | null | null | modules/sdk/include/nt2/sdk/dsl/proto/extends.hpp | brycelelbach/nt2 | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | [
"BSL-1.0"
] | null | null | null | /*******************************************************************************
* Copyright 2003-2010 LASMEA UMR 6602 CNRS/U.B.P
* Copyright 2009-2010 LRI UMR 8623 CNRS/Univ Paris Sud XI
*
* Distributed under the Boost Software License, Version 1.0.
* See accompanying f... | 53.923077 | 80 | 0.413695 |
35740d60fbccfa21c6ab923e38c28c5debb9e38d | 940 | cpp | C++ | third_party/mexconv3d/mex_maxpool3d.cpp | janelia-flyem/flymatlib | 63fab6b2deca8996d31b379a38a860ef3e751466 | [
"BSD-3-Clause"
] | 4 | 2016-04-02T17:58:47.000Z | 2020-02-13T18:19:31.000Z | third_party/mexconv3d/mex_maxpool3d.cpp | janelia-flyem/flymatlib | 63fab6b2deca8996d31b379a38a860ef3e751466 | [
"BSD-3-Clause"
] | null | null | null | third_party/mexconv3d/mex_maxpool3d.cpp | janelia-flyem/flymatlib | 63fab6b2deca8996d31b379a38a860ef3e751466 | [
"BSD-3-Clause"
] | 2 | 2019-12-19T01:09:53.000Z | 2022-01-03T21:17:48.000Z | #include "mex.h"
#include "src/maxpool3d.h"
#include "src/wrapperMx.h"
// [Y,ind] = MEX_MAXPOOL3D(X); forward pass
// dZdX = MEX_MAXPOOL3D(dZdY, ind); backward pass
// MEX_MAXPOOL3D(..., 'pool',pool, 'stride',s, 'pad',pad); options
void mexFunction(int no, mxArray *vo[],
int ni, mxArray const *v... | 23.5 | 66 | 0.584043 |
35751cf78578591ccfa8a90510839623b78c9628 | 493 | hpp | C++ | platform/platform.hpp | Peefy/ArkLightCpp | d2ebda501bed1fd9d7780c9ae9f1cdeedf42fff5 | [
"Apache-2.0"
] | 1 | 2018-05-03T14:12:17.000Z | 2018-05-03T14:12:17.000Z | platform/platform.hpp | Peefy/ArkLightCpp | d2ebda501bed1fd9d7780c9ae9f1cdeedf42fff5 | [
"Apache-2.0"
] | null | null | null | platform/platform.hpp | Peefy/ArkLightCpp | d2ebda501bed1fd9d7780c9ae9f1cdeedf42fff5 | [
"Apache-2.0"
] | null | null | null |
#include <string>
#include "../core/basic.h"
#include "./osplatformutil.h"
enum class Platform
{
Unknown = 0,
Windows = 1,
Linux = 2,
MacOS = 3,
Android = 4,
iOS = 5,
FreeBSD = 6,
OpenBSD = 7,
Sun = 8
};
inline Platform GetPlatfom() {
#if defined ARK_MSVC
return Platform:... | 16.433333 | 30 | 0.602434 |
3576d34fd65a8bcf6ffb78c50761890d9945b668 | 10,370 | cpp | C++ | silkopter/rc/src/main.cpp | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 36 | 2015-03-09T16:47:14.000Z | 2021-02-04T08:32:04.000Z | silkopter/rc/src/main.cpp | jeanlemotan/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 42 | 2017-02-11T11:15:51.000Z | 2019-12-28T16:00:44.000Z | silkopter/rc/src/main.cpp | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 5 | 2015-10-15T05:46:48.000Z | 2020-05-11T17:40:36.000Z | #include "Comms.h"
#include "Video_Decoder.h"
//#include "Menu_System.h"
//#include "Splash_Menu_Page.h"
//#include "Main_Menu_Page.h"
#include "utils/Clock.h"
#include "IHAL.h"
#ifdef RASPBERRY_PI
# include "PI_HAL.h"
#else
# include "GLFW_HAL.h"
#endif
#include "imgui.h"
#include "HUD.h"
... | 39.429658 | 155 | 0.542816 |
35780e67403f1502578682eb387b94c80863e5cd | 3,850 | cpp | C++ | src/libs/opengl/src/gl_buffers.cpp | zZnghialamZz/Ethan | e841b0a07f75022fab6634d53827c64dd1a466de | [
"Apache-2.0"
] | 2 | 2020-07-29T04:27:22.000Z | 2021-10-11T01:27:43.000Z | src/libs/opengl/src/gl_buffers.cpp | zZnghialamZz/Ethan | e841b0a07f75022fab6634d53827c64dd1a466de | [
"Apache-2.0"
] | null | null | null | src/libs/opengl/src/gl_buffers.cpp | zZnghialamZz/Ethan | e841b0a07f75022fab6634d53827c64dd1a466de | [
"Apache-2.0"
] | 2 | 2020-08-03T03:29:28.000Z | 2020-08-03T08:01:14.000Z | /**
* ==================================================
* _____
* __|___ |__ __ __ _ ____ ____ _
* | ___| | _| |_ | |_| || \ | \ | |
* | ___| ||_ _|| _ || \ | \| |
* |______| __| |__| |__| |_||__|\__\|__/\____|
* |_____|
*
* Ga... | 32.627119 | 101 | 0.670909 |
357aacf63c7d9f507c2fc9dfb197f5d474f336a4 | 351 | cpp | C++ | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch05/Exercise5.22.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch05/Exercise5.22.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch05/Exercise5.22.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | // Exercise5.22.cpp
// Ad
// Rewrite the last example in this section using a loop.
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int get_size();
int main()
{
int sz = get_size();
while (sz <= 0)
{
sz = get_size();
}
// pause
cin.get();
return 0;
}
in... | 12.535714 | 58 | 0.555556 |
357e438ac93c4bb905bdeb3833a77bd60233f590 | 2,788 | cpp | C++ | containers/list/c++/list.cpp | nonkr/cat | 754372d0f1a20de5d88aa54f489034478ab61444 | [
"MIT"
] | null | null | null | containers/list/c++/list.cpp | nonkr/cat | 754372d0f1a20de5d88aa54f489034478ab61444 | [
"MIT"
] | null | null | null | containers/list/c++/list.cpp | nonkr/cat | 754372d0f1a20de5d88aa54f489034478ab61444 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018, Billie Soong <nonkr@hotmail.com>
* All rights reserved.
*
* This file is under MIT, see LICENSE for details.
*
* Author: Billie Soong <nonkr@hotmail.com>
* Datetime: 2018/3/9 15:11
*
*/
#include <string>
#include <list>
#include <iostream>
#include <algorithm>
using namespace std;
v... | 20.651852 | 94 | 0.48637 |
357f2fc5c895bbe88e01755584290087338ea20c | 3,816 | cpp | C++ | src/armed/FilePickerDialog.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/armed/FilePickerDialog.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | src/armed/FilePickerDialog.cpp | retrowork/wme | 54cf8905091736aef0a35fe6d3e05b818441f3c8 | [
"MIT"
] | null | null | null | // This file is part of Wintermute Engine
// For conditions of distribution and use, see copyright notice in license.txt
#include "StdAfx.h"
#include "FilePickerDialog.h"
#include "QtUtil.h"
#include "Project.h"
#include "QtUtil.h"
namespace Armed
{
///////////////////////////////////////////////////... | 30.774194 | 96 | 0.604036 |
35815d9343ab23878ef8569e186361f1efda9a3b | 4,293 | cpp | C++ | src/ReconstructionModules/NeutrinoReconstructionByApproximation.cpp | jjacob/AnalysisSoftware | 670513bcde9c3df46077f906246e912627ee251a | [
"Apache-2.0"
] | null | null | null | src/ReconstructionModules/NeutrinoReconstructionByApproximation.cpp | jjacob/AnalysisSoftware | 670513bcde9c3df46077f906246e912627ee251a | [
"Apache-2.0"
] | null | null | null | src/ReconstructionModules/NeutrinoReconstructionByApproximation.cpp | jjacob/AnalysisSoftware | 670513bcde9c3df46077f906246e912627ee251a | [
"Apache-2.0"
] | null | null | null | /*
* NeutrinoReconstructionByApproximation.cpp
*
* Created on: Apr 2, 2012
* Author: lkreczko
*/
#include "../../interface/ReconstructionModules/NeutrinoReconstructionByApproximation.h"
namespace BAT {
const double initialBigValue = 123456789;
boost::array<ParticlePointer, 2> NeutrinoReconstructionByAppro... | 36.07563 | 115 | 0.752853 |
3584bcbedc417d2b523b3629db28d225be9ba9bf | 3,579 | cpp | C++ | src/util/runnable_console_listener.cpp | MelbourneSpaceProgram/msp_flight_software_public | de290a2e7181ac43af1232b2ffbca2db8ec4ecd2 | [
"MIT"
] | 10 | 2018-04-28T04:44:56.000Z | 2022-02-06T21:12:13.000Z | src/util/runnable_console_listener.cpp | MelbourneSpaceProgram/msp_flight_software_public | de290a2e7181ac43af1232b2ffbca2db8ec4ecd2 | [
"MIT"
] | null | null | null | src/util/runnable_console_listener.cpp | MelbourneSpaceProgram/msp_flight_software_public | de290a2e7181ac43af1232b2ffbca2db8ec4ecd2 | [
"MIT"
] | 3 | 2019-02-16T03:22:26.000Z | 2022-02-03T14:54:22.000Z | #include <src/payload_processor/runnable_payload_processor.h>
#include <src/sensors/runnable_system_health_check.h>
#include <src/telecomms/lithium.h>
#include <src/util/message_codes.h>
#include <src/util/msp_exception.h>
#include <src/util/runnable_console_listener.h>
#include <src/util/runnable_console_logger.h>
#in... | 39.32967 | 79 | 0.605197 |
3585618ed34f4961ccc77b2e7dd5e0f6ecb06a89 | 885 | cpp | C++ | SPOJ/FENCE1 - Build a Fence.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 6 | 2018-11-26T02:38:07.000Z | 2021-07-28T00:16:41.000Z | SPOJ/FENCE1 - Build a Fence.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 1 | 2021-05-30T09:25:53.000Z | 2021-06-05T08:33:56.000Z | SPOJ/FENCE1 - Build a Fence.cpp | ravirathee/Competitive-Programming | 20a0bfda9f04ed186e2f475644e44f14f934b533 | [
"Unlicense"
] | 4 | 2020-04-16T07:15:01.000Z | 2020-12-04T06:26:07.000Z | /*FENCE1 - Build a Fence
#math
There is a wall in your backyard. It is so long that you can’t see its endpoints. You want to build a fence of length L such that the area enclosed between the wall and the fence is maximized. The fence can be of arbitrary shape, but only its two endpoints may touch the wall.
Input
The ... | 23.918919 | 276 | 0.693785 |
358565336bad30a16789c0389cdf37d969dfd7d7 | 478 | hpp | C++ | include/SSVOpenHexagon/Data/PackData.hpp | mehlon/SSVOpenHexagon | a6abf3bcf41b4f6821c53f92a86f9b8c00ecbaad | [
"AFL-3.0"
] | null | null | null | include/SSVOpenHexagon/Data/PackData.hpp | mehlon/SSVOpenHexagon | a6abf3bcf41b4f6821c53f92a86f9b8c00ecbaad | [
"AFL-3.0"
] | null | null | null | include/SSVOpenHexagon/Data/PackData.hpp | mehlon/SSVOpenHexagon | a6abf3bcf41b4f6821c53f92a86f9b8c00ecbaad | [
"AFL-3.0"
] | null | null | null | // Copyright (c) 2013-2015 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#ifndef HG_PACKDATA
#define HG_PACKDATA
namespace hg
{
struct PackData
{
std::string id, name;
float priority;
PackData(
co... | 20.782609 | 78 | 0.60251 |
3586b02ccae01f85d6954123e95c028070b1f195 | 4,407 | cpp | C++ | MyThirthyHomeWork/for.1/for.1.cpp | pashak14/CppHomeWork | 861bf1241800f2c6a0fb782738554d617de89599 | [
"MIT"
] | null | null | null | MyThirthyHomeWork/for.1/for.1.cpp | pashak14/CppHomeWork | 861bf1241800f2c6a0fb782738554d617de89599 | [
"MIT"
] | null | null | null | MyThirthyHomeWork/for.1/for.1.cpp | pashak14/CppHomeWork | 861bf1241800f2c6a0fb782738554d617de89599 | [
"MIT"
] | 1 | 2020-12-14T11:52:04.000Z | 2020-12-14T11:52:04.000Z | #include <iostream>
using namespace std;
void variant1(),
variant2(),
variant3(),
variant4(),
variant5(),
variant6(),
variant7(),
variant8(),
variant9(),
variant10();
int main() {
int numEx;
setlocale(0, "");
while (true) {
cout << "\nВведите вар... | 17.557769 | 81 | 0.256637 |
3587c88b7d11dc508d9a24ec8758b390be867c65 | 20,157 | cc | C++ | src/core/rnn/CustomLayers.cc | arjun-k-r/Sibyl | ae2edbb09f58e8b1cef79470e8ca9c02c244fdcb | [
"Apache-2.0"
] | 34 | 2017-03-01T05:49:17.000Z | 2022-01-01T15:30:06.000Z | src/core/rnn/CustomLayers.cc | arjun-k-r/Sibyl | ae2edbb09f58e8b1cef79470e8ca9c02c244fdcb | [
"Apache-2.0"
] | 1 | 2018-12-19T17:02:52.000Z | 2018-12-19T17:02:52.000Z | src/core/rnn/CustomLayers.cc | junosan/Sibyl | ae2edbb09f58e8b1cef79470e8ca9c02c244fdcb | [
"Apache-2.0"
] | 24 | 2017-09-19T01:51:50.000Z | 2022-02-04T19:53:16.000Z | /*
Copyright 2017 Hosang Yoon
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 wri... | 49.283619 | 126 | 0.674406 |
358c3223168f206b6db3f4686d2072394f2d571e | 648 | cpp | C++ | PAT/B1011.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/B1011.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/B1011.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | #include<stdio.h>
using namespace std;
long long A,B,C;
bool check(){
if(A>0 && B>0 && C>0) return A>C-B;
if(A<0 && B<0 && C<0) return A>C-B;
if(A>0 && B>0 && C<0) return true;
if(A<0 && B<0 && C>0) return false;
return A+B>C;
}
int main(void) {
// freopen("in.txt","r",stdin);
int T;
sc... | 16.615385 | 39 | 0.512346 |
358d183c0e807d86a5d58dda48fdd53de75f73d3 | 11,928 | cpp | C++ | src/kernel.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/kernel.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/kernel.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | #include <common/stdint.h>
#include <boot/bootinfo.h>
#include <pointers.h>
#include <IO/APIC/apic.h> //COMMENT
#include <smp/smp.h> //COMMENT
#include <gdt/gdt.h>
#include <gdt/tss.h> //COMMENT
#include <paging/PageTableManager.h>
#include <paging/PageFrameAllocator.h>
#include <memory/memory.h>
#include <memory/... | 31.0625 | 147 | 0.662726 |
358d5a54c7d047a78830dec29366b630d8df5df2 | 3,404 | cpp | C++ | data/train/cpp/358d5a54c7d047a78830dec29366b630d8df5df2Share.cpp | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/cpp/358d5a54c7d047a78830dec29366b630d8df5df2Share.cpp | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 14 | 2015-02-28T17:11:23.000Z | 2016-09-05T05:00:20.000Z | data/train/cpp/358d5a54c7d047a78830dec29366b630d8df5df2Share.cpp | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | #include <Share.h>
#include <bps/event.h>
#include <bps/navigator.h>
#include <bps/navigator_invoke.h>
#include <screen/screen.h>
#include <string.h>
#include <string>
#include <unistd.h>
#include <vector>
using namespace std;
namespace openflShareExtension {
void log(const char *msg) {
/*
FILE *logFile = fope... | 24.314286 | 72 | 0.730317 |
358d5cd6ea327f28e023717bcbd1d58fdbaee75e | 26,828 | cpp | C++ | src/plugins/intel_gna/runtime/pwl.cpp | kurylo/openvino | 4da0941cd2e8f9829875e60df73d3cd01f820b9c | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | src/plugins/intel_gna/runtime/pwl.cpp | kurylo/openvino | 4da0941cd2e8f9829875e60df73d3cd01f820b9c | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | src/plugins/intel_gna/runtime/pwl.cpp | kurylo/openvino | 4da0941cd2e8f9829875e60df73d3cd01f820b9c | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
// pwl_design.cpp : simple activation function designer
//
#include <vector>
#include <iostream>
#include <limits>
#include <cstdint>
#include <algorithm>
#ifdef _NO_MKL_
#include <cmath>
#include "backend/make_pwl.hpp"
#define S... | 52.915187 | 143 | 0.502684 |
358dd892ae6a47600fdf23472a3f1d53e967a577 | 2,008 | cpp | C++ | tools/ifaceed/ifaceed/gui/uiblocks/uiwayblock.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 58 | 2015-08-09T14:56:35.000Z | 2022-01-15T22:06:58.000Z | tools/ifaceed/ifaceed/gui/uiblocks/uiwayblock.cpp | mamontov-cpp/saddy-graphics-engine-2d | e25a6637fcc49cb26614bf03b70e5d03a3a436c7 | [
"BSD-2-Clause"
] | 245 | 2015-08-08T08:44:22.000Z | 2022-01-04T09:18:08.000Z | tools/ifaceed/ifaceed/gui/uiblocks/uiwayblock.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 23 | 2015-12-06T03:57:49.000Z | 2020-10-12T14:15:50.000Z | #include <new>
#include <cassert>
#include "uiwayblock.h"
#include <QListWidget>
#include <QLineEdit>
#include <QDoubleSpinBox>
#include <QCheckBox>
#include <QPushButton>
gui::uiblocks::UIWayBlock::UIWayBlock() : lstWays(nullptr),
txtWayName(nullptr),
dsbWayTotalTime(nullptr),
cbWayClosed(nullptr),
btnWayAdd(nullptr)... | 32.387097 | 84 | 0.731076 |
358f0675afa1d80c560a1dec6fb0401f5642c3dc | 3,833 | cpp | C++ | opengl/hello_3d.cpp | xiwan/opengl | 1e30baf40debd00b55252fc14d0e6b909c94bfbd | [
"MIT"
] | 1 | 2019-02-22T03:11:28.000Z | 2019-02-22T03:11:28.000Z | opengl/hello_3d.cpp | xiwan/opengl | 1e30baf40debd00b55252fc14d0e6b909c94bfbd | [
"MIT"
] | null | null | null | opengl/hello_3d.cpp | xiwan/opengl | 1e30baf40debd00b55252fc14d0e6b909c94bfbd | [
"MIT"
] | null | null | null |
#include "./headers/shader.h"
#include "./headers/opengl_common.h"
#define STB_IMAGE_IMPLEMENTATION_2
#include "./headers/stb_image.h"
int hello_3d()
{
GLFWwindow* window = prepareWindow("hello_3d");
if (!window) {
return -1;
}
Shader textureShader("./shaders/3d.shader.vs", "./shaders/3d.shader.fs");
float ... | 32.760684 | 105 | 0.651448 |
359290ea28eda47cce73bf4f5b53cc9903f2c87c | 5,654 | cpp | C++ | SarvLibrary/Kmerize/dsk/thirdparty/gatb-core/gatb-core/examples/debruijn/debruijn24.cpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | SarvLibrary/Kmerize/dsk/thirdparty/gatb-core/gatb-core/examples/debruijn/debruijn24.cpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | SarvLibrary/Kmerize/dsk/thirdparty/gatb-core/gatb-core/examples/debruijn/debruijn24.cpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | //! [snippet1]
// We include what we need for the test
#include <gatb/gatb_core.hpp>
#include <fstream>
#include <queue>
#include <stack>
#include <map>
using namespace std;
#define DEBUG(a) //a
#define INFO(a) //a
/********************************************************************************/
/* Cmd-line: deb... | 36.714286 | 115 | 0.44358 |
359471f04a7f8f0e3fde02afe2e087b4e1c5144b | 5,666 | cpp | C++ | src/Generic/discTagger/DTAltModelSet.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | 1 | 2022-03-24T19:57:00.000Z | 2022-03-24T19:57:00.000Z | src/Generic/discTagger/DTAltModelSet.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | src/Generic/discTagger/DTAltModelSet.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2008 by BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h"
#include "Generic/common/limits.h"
#include "Generic/common/UTF8InputStream.h"
#include "Generic/common/ParamReader.h"
#include "Generic/discTagger/DTTagSet.h"
#include "Generic/discTagger/DTFeature... | 30.793478 | 98 | 0.683022 |