hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f915e83118f6cf2fd3b289f69af404bc8725906 | 1,172 | cpp | C++ | 24_dynamic_1/5_coin_change.cpp | meyash/dust | 8f90d7f9cc42f61193c737cde14e9c4bb32884b4 | [
"MIT"
] | 1 | 2020-09-30T10:36:06.000Z | 2020-09-30T10:36:06.000Z | 24_dynamic_1/5_coin_change.cpp | meyash/dust | 8f90d7f9cc42f61193c737cde14e9c4bb32884b4 | [
"MIT"
] | null | null | null | 24_dynamic_1/5_coin_change.cpp | meyash/dust | 8f90d7f9cc42f61193c737cde14e9c4bb32884b4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
// d=array of denominations
// sample
// 4 2
// 1 2
// output
// 3
int coin_change(int n, int *d,int num_den, int **storage){
if(n<0){
return 0;
}
if(n==0){
return 1;
}
if(num_den==0){
return 0;
}
if... | 20.928571 | 58 | 0.503413 | meyash |
7a04d2c5b41a20c8832eda458453611fbf05fec6 | 4,891 | cc | C++ | src/plat-win/drivers/windows_nvme_driver.cc | jc-lab/jcu-dparm | 140efc844e339ca22d79a9958bdcbc7195701835 | [
"Apache-2.0"
] | null | null | null | src/plat-win/drivers/windows_nvme_driver.cc | jc-lab/jcu-dparm | 140efc844e339ca22d79a9958bdcbc7195701835 | [
"Apache-2.0"
] | null | null | null | src/plat-win/drivers/windows_nvme_driver.cc | jc-lab/jcu-dparm | 140efc844e339ca22d79a9958bdcbc7195701835 | [
"Apache-2.0"
] | null | null | null | /**
* @file windows_nvme_driver.cc
* @author Joseph Lee <development@jc-lab.net>
* @date 2020/07/23
* @copyright Copyright (C) 2020 jc-lab.\n
* This software may be modified and distributed under the terms
* of the Apache License 2.0. See the LICENSE file for details.
*/
#include "windows... | 33.047297 | 126 | 0.721734 | jc-lab |
7a0912953604c5a3096fe228d4e161be1c38cbb0 | 10,236 | cpp | C++ | helperFunctions.cpp | JoshVorick/LipReader | 126212bc7e50316146a3b8f5551e5c475af67eae | [
"Apache-2.0"
] | 4 | 2017-06-20T10:05:31.000Z | 2019-05-04T14:25:23.000Z | helperFunctions.cpp | JoshVorick/LipReader | 126212bc7e50316146a3b8f5551e5c475af67eae | [
"Apache-2.0"
] | null | null | null | helperFunctions.cpp | JoshVorick/LipReader | 126212bc7e50316146a3b8f5551e5c475af67eae | [
"Apache-2.0"
] | 3 | 2015-08-18T11:04:55.000Z | 2018-07-25T12:56:01.000Z | #include "opencv2/opencv.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/nonfree/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include <fstream>
using namespace cv;
using namespace std;
const double ANGLE_W = .3;
const double SIZE_W = .3;
const dou... | 30.105882 | 139 | 0.648789 | JoshVorick |
7a0c65a7178771a71e152c0fe5e1d767fdc3287d | 4,617 | cpp | C++ | src/lcd.cpp | calhighrobotics/2017-2018-vex-in-the-zone | bc41f47971a601dc896a1054edd0eca5c5b10d1b | [
"MIT"
] | 1 | 2019-09-01T05:40:51.000Z | 2019-09-01T05:40:51.000Z | src/lcd.cpp | calhighrobotics/2017-2018-vex-in-the-zone | bc41f47971a601dc896a1054edd0eca5c5b10d1b | [
"MIT"
] | null | null | null | src/lcd.cpp | calhighrobotics/2017-2018-vex-in-the-zone | bc41f47971a601dc896a1054edd0eca5c5b10d1b | [
"MIT"
] | null | null | null | // contains the code that controls the LCD screen
#include "main.hpp"
// what port the LCD screen goes into
#define LCD_PORT uart1
// amount of milliseconds between each LCD update
#define LCD_POLL_SPEED 100ul
// the different types of things the LCD can do
enum LoopState
{
// select the autonomous program
A... | 27.319527 | 77 | 0.633745 | calhighrobotics |
7a0db341149b2c2e860b1eb16612ac80ea171d69 | 3,086 | hpp | C++ | src/ibeo_8l_sdk/src/ibeosdk/datablocks/snippets/ScalaFpgaRawHeader.hpp | tomcamp0228/ibeo_ros2 | ff56c88d6e82440ae3ce4de08f2745707c354604 | [
"MIT"
] | 1 | 2020-06-19T11:01:49.000Z | 2020-06-19T11:01:49.000Z | include/ibeosdk/datablocks/snippets/ScalaFpgaRawHeader.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/datablocks/snippets/ScalaFpgaRawHeader.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 2 | 2020-06-19T11:01:48.000Z | 2020-10-29T03:07:14.000Z | //======================================================================
/*! \file ScalaFpgaRawHeader.hpp
*
* \copydoc Copyright
* \author kd
* \date Sep 17, 2015
*///-------------------------------------------------------------------
#ifndef IBEOSDK_SCALAFPGARAWHEADER_HPP_SEEN
#define IBEOSDK_SCALAFPGARAWHEADER_... | 33.912088 | 109 | 0.647116 | tomcamp0228 |
7a0dc5f049adc357bed1eabd0e3353c4c1f7adb5 | 1,680 | cpp | C++ | src/experiments/babybot/armcontrol/YARPGravityEstimator.cpp | robotology-legacy/yarp1 | 21434f5b776edea201b39a9644552dca59339dbc | [
"Artistic-1.0-Perl"
] | null | null | null | src/experiments/babybot/armcontrol/YARPGravityEstimator.cpp | robotology-legacy/yarp1 | 21434f5b776edea201b39a9644552dca59339dbc | [
"Artistic-1.0-Perl"
] | null | null | null | src/experiments/babybot/armcontrol/YARPGravityEstimator.cpp | robotology-legacy/yarp1 | 21434f5b776edea201b39a9644552dca59339dbc | [
"Artistic-1.0-Perl"
] | null | null | null | #include "YARPGravityEstimator.h"
YARPGravityEstimator::YARPGravityEstimator(int par):
_leastSquares(par, 1.0)
{
_parSize = par;
_parameters.Resize(_parSize);
_input.Resize(_parSize);
_k1 = 0.0;
_k2 = 1.0;
_deltaK1 = 1.0/__querySize;
YMatrix SP0(_parSize, _parSize);
SP0 = 0.0;
for(int i = 1; i<=_parSize; i++... | 18.666667 | 58 | 0.632738 | robotology-legacy |
7a1035590685403ce70b496c3e2ead8986d64c4f | 923 | cpp | C++ | src/robot/auto/AutoModeRunner.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/robot/auto/AutoModeRunner.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | src/robot/auto/AutoModeRunner.cpp | roboFiddle/7405M_TowerTakeover_Code | e16ffab17964ff61a25eac2074da78d0d7577caa | [
"MIT"
] | null | null | null | //
// Created by alexweiss on 8/14/19.
//
#include "AutoModeRunner.hpp"
namespace auton {
AutoModeRunner::AutoModeRunner() {
thread_ = new pros::Task(AutoModeRunner::runAuton, this, TASK_PRIORITY_DEFAULT,
TASK_STACK_DEPTH_DEFAULT, "AUTO RUNNER");
thread_->suspend();
}
void A... | 24.945946 | 83 | 0.668472 | roboFiddle |
7a182ec33426d72818a4bc08ef7e208dd9e30e9a | 1,704 | cpp | C++ | superline/producer/superline_client.cpp | Jim-CodeHub/superline | cc6c979371d1e392691b099804bb34d00e63ba4a | [
"Apache-2.0"
] | null | null | null | superline/producer/superline_client.cpp | Jim-CodeHub/superline | cc6c979371d1e392691b099804bb34d00e63ba4a | [
"Apache-2.0"
] | null | null | null | superline/producer/superline_client.cpp | Jim-CodeHub/superline | cc6c979371d1e392691b099804bb34d00e63ba4a | [
"Apache-2.0"
] | null | null | null | /**-----------------------------------------------------------------------------------------------------------------
* @file subscriber_client.cpp
* @brief Send message to superline server, Implement with POSX.1 semaphore and shared memory
*
* Copyright (c) 2019-2019 Jim Zhang 303683086@qq.com
*-----------------... | 34.77551 | 116 | 0.484155 | Jim-CodeHub |
7a188b7ccb884ffb7f1c2a4ef903d4997b126b47 | 37 | cpp | C++ | SystemResource/Source/Image/PNG/Chunk/PNGLastModificationTime.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 5 | 2021-10-19T18:30:43.000Z | 2022-03-19T22:02:02.000Z | SystemResource/Source/Image/PNG/Chunk/PNGLastModificationTime.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 12 | 2022-03-09T13:40:21.000Z | 2022-03-31T12:47:48.000Z | SystemResource/Source/Image/PNG/Chunk/PNGLastModificationTime.cpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | null | null | null | #include "PNGLastModificationTime.h"
| 18.5 | 36 | 0.837838 | BitPaw |
7a1ab207cf7cbc87f628177aa6044698027cb90e | 1,489 | cpp | C++ | Drawing-program/Class/aboutScene.cpp | sindre0830/Drawing-Recognition | 19eb92103182ddc23428171f74842b980352d5df | [
"MIT"
] | null | null | null | Drawing-program/Class/aboutScene.cpp | sindre0830/Drawing-Recognition | 19eb92103182ddc23428171f74842b980352d5df | [
"MIT"
] | 122 | 2021-09-01T10:19:25.000Z | 2021-12-09T20:57:26.000Z | Drawing-program/Class/aboutScene.cpp | sindre0830/Drawing-Recognition | 19eb92103182ddc23428171f74842b980352d5df | [
"MIT"
] | null | null | null | /**
* @file Scene.cpp
* @author Maren Sk�restuen Grindal
* @version 0.1
* @date 2021-12-05
*
* @copyright Copyright (c) 2021 Sindre Eiklid, Rickard Loland, Maren Sk�restuen Grindal
*/
#include "./Header/aboutScene.h"
/* external libraries */
#include <GLFW/glfw3.h>
/**
* Constructor.
*/
AboutScene::AboutSce... | 26.589286 | 99 | 0.572868 | sindre0830 |
7a1b20619b66ea7e98af60ef3644e1f1899e607d | 921 | hpp | C++ | include/zisa/math/triangular_rule.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/math/triangular_rule.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | include/zisa/math/triangular_rule.hpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | 1 | 2021-08-24T11:52:51.000Z | 2021-08-24T11:52:51.000Z | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval
#ifndef TRIANGULAR_RULE_H_V7Y5S
#define TRIANGULAR_RULE_H_V7Y5S
#include <zisa/config.hpp>
#include <zisa/math/barycentric.hpp>
#include <zisa/math/max_quadrature_degree.hpp>
#include <zisa/memory/array.hpp>
namespace zisa {
stru... | 24.891892 | 77 | 0.765472 | 1uc |
7a1b72a1d7abe3ee6cc8f43a81b4fe5ecfe0ae00 | 156 | cpp | C++ | Lectures/Lecture14/counting.cpp | galursa/BasicsOfProgramming | ff3ce4f918048d25cbc724df5a96c09e48476792 | [
"MIT"
] | 2 | 2020-11-07T06:03:45.000Z | 2020-12-02T08:22:42.000Z | Lectures/Lecture14/counting.cpp | galursa/WSTI_BasicsOfProgramming | ff3ce4f918048d25cbc724df5a96c09e48476792 | [
"MIT"
] | null | null | null | Lectures/Lecture14/counting.cpp | galursa/WSTI_BasicsOfProgramming | ff3ce4f918048d25cbc724df5a96c09e48476792 | [
"MIT"
] | 1 | 2020-12-07T06:01:40.000Z | 2020-12-07T06:01:40.000Z | #include <iostream>
#include "calculator.h"
using namespace std;
int main(int argc, char** argv) {
cout <<"Result" << multiply(3,5) << "\n";
return 0;
}
| 17.333333 | 42 | 0.641026 | galursa |
7a23e4fe7de4de65f4078636619805e76b093486 | 14,170 | cpp | C++ | data/usma_optitrack/src/QuadScripts.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/usma_optitrack/src/QuadScripts.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/usma_optitrack/src/QuadScripts.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | #include "mocap_optitrack/Quad.h"
#include "mocap_optitrack/QuadScripts.h"
// Base class - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Publisher initialized in specific script class
QuadScript::QuadScript()
: data(NULL), needsWandCheck(... | 31.55902 | 101 | 0.59379 | khairulislam |
7a2739c116f4f730377e2f9ed25c37e9efe11126 | 3,807 | cpp | C++ | Rendering/Light.cpp | nicolas92g/noisyEngine | 306f4a031f70c548047cf6697cd1237dca650301 | [
"Apache-2.0"
] | null | null | null | Rendering/Light.cpp | nicolas92g/noisyEngine | 306f4a031f70c548047cf6697cd1237dca650301 | [
"Apache-2.0"
] | null | null | null | Rendering/Light.cpp | nicolas92g/noisyEngine | 306f4a031f70c548047cf6697cd1237dca650301 | [
"Apache-2.0"
] | null | null | null | #include "Light.h"
uint32_t ns::DirectionalLight::number_(0);
uint32_t ns::PointLight::number_(0);
uint32_t ns::SpotLight::number_(0);
ns::LightBase_::LightBase_(const glm::vec3& color)
{
color_ = color;
}
void ns::LightBase_::setColor(const glm::vec3& color)
{
if (color.x < .0f || color.y < .0f || color.z < .0f) ... | 20.917582 | 158 | 0.67481 | nicolas92g |
7a28ef1353726be2c5934ea8363add2c2c9dd997 | 304 | cpp | C++ | src/fireFist.cpp | snow482/grawing_way_oop_2.0 | f7e5deb6d4357dcbe40b4c4be5411efd286608c2 | [
"MIT"
] | null | null | null | src/fireFist.cpp | snow482/grawing_way_oop_2.0 | f7e5deb6d4357dcbe40b4c4be5411efd286608c2 | [
"MIT"
] | null | null | null | src/fireFist.cpp | snow482/grawing_way_oop_2.0 | f7e5deb6d4357dcbe40b4c4be5411efd286608c2 | [
"MIT"
] | null | null | null | #include "fireFist.hpp"
#include "Character.hpp"
FireFist::FireFist(int fireDamage)
: Skill("Fire fist"), m_fireDamage(fireDamage)
{}
void FireFist::Use(std::shared_ptr<Character> self,
std::shared_ptr<Character> enemy) {
noused(self);
enemy->getDamage(m_fireDamage);
}
| 21.714286 | 54 | 0.674342 | snow482 |
7a299f471b1e2e2625c2c334cd4b9c5a65881633 | 803 | hpp | C++ | bulb/components/membrane/include/Membrane/RuntimeSubSystem.hpp | AGarlicMonkey/Clove | 495e118024a30a39bd194f54c728d77ff0fa8d4a | [
"MIT"
] | 3 | 2021-10-09T03:24:57.000Z | 2022-01-12T04:19:42.000Z | bulb/components/membrane/include/Membrane/RuntimeSubSystem.hpp | AGarlicMonkey/Clove | 495e118024a30a39bd194f54c728d77ff0fa8d4a | [
"MIT"
] | 100 | 2019-10-01T05:29:03.000Z | 2022-03-31T17:28:52.000Z | bulb/components/membrane/include/Membrane/RuntimeSubSystem.hpp | AGarlicMonkey/Clove | 495e118024a30a39bd194f54c728d77ff0fa8d4a | [
"MIT"
] | 1 | 2021-11-29T20:46:15.000Z | 2021-11-29T20:46:15.000Z | #pragma once
#include "Membrane/Scene.hpp"
#include <Clove/SubSystem.hpp>
namespace clove {
class EntityManager;
}
namespace membrane {
/**
* @brief The sub system that is active while the game is running.
* Deliberately does not handle editor events to simulate the game running.
*/
class... | 25.09375 | 129 | 0.666252 | AGarlicMonkey |
7a2b2fc2758fecf65469a16f91ac83aa209d439a | 1,112 | cpp | C++ | projects/cmd_bio/src/utils/dir.cpp | Aaryan-kapur/core | 5ebf096d18a3ddbe0259f83ca82a39607ba1f892 | [
"Apache-2.0"
] | 1 | 2020-03-13T17:43:34.000Z | 2020-03-13T17:43:34.000Z | projects/cmd_bio/src/utils/dir.cpp | BhumikaSaini/core | baecdd736961d301fe2723858de94cef285296b0 | [
"Apache-2.0"
] | 5 | 2020-12-23T00:19:32.000Z | 2020-12-29T20:53:58.000Z | projects/cmd_bio/src/utils/dir.cpp | BhumikaSaini/core | baecdd736961d301fe2723858de94cef285296b0 | [
"Apache-2.0"
] | 3 | 2020-02-23T06:20:08.000Z | 2021-12-02T04:18:29.000Z | #include "dir.h"
#include <dirent.h>
#include <regex>
#include <biogears/filesystem/path.h>
#include <biogears/string/manipulation.h>
#include <exception>
#include <iostream>
namespace biogears {
namespace filesystem {
std::vector<std::string> dirlist(std::string path, std::string filter)
{
std::vector<std::s... | 27.8 | 107 | 0.59982 | Aaryan-kapur |
7a2b93a436713b7ee3b72fb1487b459dbc6940bb | 1,022 | cpp | C++ | PolyEngine/Core/Src/Math/Plane.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 65 | 2017-04-04T20:33:44.000Z | 2019-12-02T23:06:58.000Z | PolyEngine/Core/Src/Math/Plane.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 46 | 2017-04-21T12:26:38.000Z | 2019-12-15T05:31:47.000Z | PolyEngine/Core/Src/Math/Plane.cpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 51 | 2017-04-12T10:53:32.000Z | 2019-11-20T13:05:54.000Z | #include <CorePCH.hpp>
#include <Math/Plane.hpp>
using namespace Poly;
Plane::eObjectLocation Plane::GetAABoxLocation(const AABox& box) const
{
auto vertices = box.GetVertices();
eObjectLocation guessedLocation = GetPointLocation(vertices[0]);
for (Vector vert : vertices)
{
eObjectLocation loc = GetPointLocat... | 23.767442 | 87 | 0.654599 | PiotrMoscicki |
7a2f0492e5876988fc4083970591d4415676ee05 | 3,078 | cpp | C++ | plugins/community/repos/ML_modules/src/OctaTimes.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | plugins/community/repos/ML_modules/src/OctaTimes.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | plugins/community/repos/ML_modules/src/OctaTimes.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z | #include "ML_modules.hpp"
#include "dsp/digital.hpp"
namespace rack_plugin_ML_modules {
struct OctaTimes : Module {
enum ParamIds {
MULT_PARAM,
NUM_PARAMS
};
enum InputIds {
IN1_INPUT,
IN2_INPUT,
IN3_INPUT,
IN4_INPUT,
IN5_INPUT,
IN6_INPUT,
IN7_INPUT,
IN8_INPUT,
IN_B_1_INPUT,
IN_B_2_INPUT,
... | 23.142857 | 122 | 0.68681 | guillaume-plantevin |
7a39bf7245d2b1d2b4d008920dd168fea1f7a132 | 663 | hpp | C++ | src/link/rtti.hpp | martinnnnnn/link | 6a407279fb28d7a9238ea5e18b85916bc15b3fbe | [
"MIT"
] | null | null | null | src/link/rtti.hpp | martinnnnnn/link | 6a407279fb28d7a9238ea5e18b85916bc15b3fbe | [
"MIT"
] | null | null | null | src/link/rtti.hpp | martinnnnnn/link | 6a407279fb28d7a9238ea5e18b85916bc15b3fbe | [
"MIT"
] | null | null | null | #pragma once
#include <string>
namespace link
{
class Rtti
{
public:
Rtti(const std::string name, const Rtti* base);
~Rtti();
const std::string get_name() const;
bool is_exactly(const Rtti& type) const;
bool is_derived(const Rtti& base_type) const;
private:
... | 21.387097 | 79 | 0.641026 | martinnnnnn |
7a3b510d0854f26140d3a9cb16581bca1a4a9441 | 383 | cc | C++ | src/core/utils/console.cc | 5aitama/Bismuth | 00fbd13a08ac08b77413d4a6797b1daa84a892cf | [
"MIT"
] | null | null | null | src/core/utils/console.cc | 5aitama/Bismuth | 00fbd13a08ac08b77413d4a6797b1daa84a892cf | [
"MIT"
] | null | null | null | src/core/utils/console.cc | 5aitama/Bismuth | 00fbd13a08ac08b77413d4a6797b1daa84a892cf | [
"MIT"
] | null | null | null | #include "console.h"
using namespace std;
void Console::Log(const char* str, const size_t& maxWidth) {
char* x = new char[maxWidth];
for (size_t i = 0; i < maxWidth; i++) {
if (*str != '\0')
{
x[i] = *str;
str++;
} else {
x[i] = '.';
}
}... | 17.409091 | 60 | 0.420366 | 5aitama |
7a3c4665b43702de0eb94923c656d96c0050dfb4 | 2,591 | cpp | C++ | tests/src/netlib/tests_port_layer.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2021-07-16T14:19:50.000Z | 2021-07-16T14:19:50.000Z | tests/src/netlib/tests_port_layer.cpp | Mike-Bal/mart-common | 0b52654c6f756e8e86689e56d24849c97079229c | [
"MIT"
] | 1 | 2018-06-05T11:03:30.000Z | 2018-06-05T11:03:30.000Z | tests/src/netlib/tests_port_layer.cpp | tum-ei-rcs/mart-common | 6f8f18ac23401eb294d96db490fbdf78bf9b316c | [
"MIT"
] | null | null | null | #include <mart-netlib/port_layer.hpp>
#include <catch2/catch.hpp>
#include <iostream>
namespace pl = mart::nw::socks::port_layer;
namespace socks = mart::nw::socks;
// call ech function at least once to ensure the implementation is there
TEST_CASE( "net_port-layer_check_function_implementation_exists" )
{
CHECK... | 34.092105 | 112 | 0.656503 | Mike-Bal |
7a3e6daf930cb810e1ecc67e66519e2021ec0e55 | 1,509 | cpp | C++ | common/doc/examples/ca.cpp | ane-community/botan-crypto-ane | 71056f5f0d5fd706e6d42e2f7ec0f7f55d86fb74 | [
"MIT"
] | 1 | 2018-03-09T20:21:47.000Z | 2018-03-09T20:21:47.000Z | common/doc/examples/ca.cpp | ane-community/botan-crypto-ane | 71056f5f0d5fd706e6d42e2f7ec0f7f55d86fb74 | [
"MIT"
] | null | null | null | common/doc/examples/ca.cpp | ane-community/botan-crypto-ane | 71056f5f0d5fd706e6d42e2f7ec0f7f55d86fb74 | [
"MIT"
] | null | null | null | #include <botan/botan.h>
#include <botan/x509_ca.h>
#include <botan/time.h>
using namespace Botan;
#include <iostream>
#include <memory>
int main(int argc, char* argv[])
{
if(argc != 5)
{
std::cout << "Usage: " << argv[0] << " <passphrase> "
<< "<ca cert> <ca key> <pkcs10>" << std::e... | 25.15 | 72 | 0.580517 | ane-community |
7a417b06060b6257e39b42dbd818964050b3a122 | 5,645 | cxx | C++ | main/connectivity/source/drivers/ado/AColumns.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/connectivity/source/drivers/ado/AColumns.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/connectivity/source/drivers/ado/AColumns.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 39.475524 | 133 | 0.670151 | Grosskopf |
7a41ee456370b9225fbfc9cdc293ff95944e7a1a | 371 | cpp | C++ | treeDAG/util/nChooseKIterator.cpp | thomasfannes/treeDAG | c29eec45f0f08fec2d41bc163b26d8aaf9a68f6c | [
"MIT"
] | null | null | null | treeDAG/util/nChooseKIterator.cpp | thomasfannes/treeDAG | c29eec45f0f08fec2d41bc163b26d8aaf9a68f6c | [
"MIT"
] | null | null | null | treeDAG/util/nChooseKIterator.cpp | thomasfannes/treeDAG | c29eec45f0f08fec2d41bc163b26d8aaf9a68f6c | [
"MIT"
] | null | null | null |
#include "nChooseKIterator.hpp"
#include <algorithm>
namespace treeDAG {
namespace util {
bool NChooseKProcessor::atEnd(const std::vector<bool> & mask) const
{
return mask.back();
}
void NChooseKProcessor::increment(std::vector<bool> & mask)
{
mask.back() = !std::next_permutation(mask.begin(), mask.end() - ... | 17.666667 | 71 | 0.695418 | thomasfannes |
7a42c138a6c0fb3e718883f2169bb9b2fc59a01a | 275 | cpp | C++ | Demo/StatSet.cpp | mirzazulfan/Xenro-Engine | 0e9383b113ec09a24daf5e92f9a5b84febaffb1b | [
"MIT"
] | null | null | null | Demo/StatSet.cpp | mirzazulfan/Xenro-Engine | 0e9383b113ec09a24daf5e92f9a5b84febaffb1b | [
"MIT"
] | 18 | 2018-02-28T21:34:30.000Z | 2018-12-01T19:07:43.000Z | Demo/StatSet.cpp | mirzazulfan/Xenro-Engine | 0e9383b113ec09a24daf5e92f9a5b84febaffb1b | [
"MIT"
] | 1 | 2018-12-01T08:00:46.000Z | 2018-12-01T08:00:46.000Z | #include "Statset.h"
Statset::Statset(int HP, int MoveNum, int Dext, int Strength, int Wisdom, int Intelligence, int Level, int EXP)
:hp(HP), moveNum(MoveNum), dext(Dext), strength(Strength), wisdom(Wisdom),
intelligence(Intelligence), level(Level), exp(EXP)
{
//Empty
} | 34.375 | 112 | 0.723636 | mirzazulfan |
7a439686fd6777a0a1e1ee0cd233eca26e0a0c8e | 1,231 | cpp | C++ | OOP/ErrorHandling/main.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | OOP/ErrorHandling/main.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | OOP/ErrorHandling/main.cpp | Rossoner40/NBU-Classwork-and-Homework | 823e5eab2da616ae6d965da9c0a22fa0212d7887 | [
"MIT"
] | null | null | null | #include <iostream>
#include <RepeatedIn.h>
#include <IndexError.h>
#include <DblArr.h>
#include <stdlib.h>
#include <typeinfo>
using namespace std;
void tst(int n)throw(IndexError){
RepeatedIn ccin;
DblArr x(n);
int N;
for(int i=0;i<n;i++)
{
x[i]=5.*rand()/RAND_MAX;
}
cout<<x<<en... | 20.180328 | 68 | 0.450853 | Rossoner40 |
7a4616e9eac44cc3892e15d925e9ee5b4238b84e | 955 | hpp | C++ | nytl/fwd/rect.hpp | nyorain/nyutil | 26ad3247f909cc82f30608126659b1d6632f5a52 | [
"BSL-1.0"
] | 103 | 2016-02-08T21:04:11.000Z | 2021-08-05T21:50:03.000Z | nytl/fwd/rect.hpp | nyorain/nyutil | 26ad3247f909cc82f30608126659b1d6632f5a52 | [
"BSL-1.0"
] | 12 | 2015-12-29T23:53:52.000Z | 2018-01-01T16:12:28.000Z | nytl/fwd/rect.hpp | nyorain/nyutil | 26ad3247f909cc82f30608126659b1d6632f5a52 | [
"BSL-1.0"
] | 13 | 2016-02-24T12:25:31.000Z | 2020-08-24T19:47:29.000Z | // Copyright (c) 2017-2019 nyorain
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#pragma once
#ifndef NYTL_INCLUDE_FWD_RECT
#define NYTL_INCLUDE_FWD_RECT
#include <cstdlib> // std::size_t
#include <cstdint> // std::uint8... | 24.487179 | 80 | 0.713089 | nyorain |
7a46d7a42f61926e7e19240bc46cdaee53253e0b | 1,089 | hpp | C++ | src/util/range.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 11 | 2016-03-31T17:46:15.000Z | 2022-02-14T01:07:56.000Z | src/util/range.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2016-04-04T16:40:47.000Z | 2019-10-16T22:22:54.000Z | src/util/range.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2019-10-16T22:20:15.000Z | 2019-11-28T11:59:03.000Z | /*
Copyright 2016 Mitchell Young
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 26.560976 | 77 | 0.673095 | tp-ntouran |
7a484eb8403730b712a19d67c78b3e9ee0f22cea | 587 | cpp | C++ | unit_tests/dynamics/multibody/src/unit_retro.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 76 | 2018-02-20T11:30:52.000Z | 2022-03-31T12:45:06.000Z | unit_tests/dynamics/multibody/src/unit_retro.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 27 | 2018-11-20T14:32:49.000Z | 2021-11-24T15:26:45.000Z | unit_tests/dynamics/multibody/src/unit_retro.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 24 | 2018-02-21T01:45:26.000Z | 2022-03-07T07:06:49.000Z | //
// OpenTissue, A toolbox for physical based simulation and animation.
// Copyright (C) 2007 Department of Computer Science, University of Copenhagen
//
#include <OpenTissue/configuration.h>
#define BOOST_AUTO_TEST_MAIN
#include <OpenTissue/utility/utility_push_boost_filter.h>
#include <boost/test/auto_unit_test.hp... | 26.681818 | 78 | 0.819421 | ricortiz |
7a48b685d332754b6c4bee9c99aefabd14b5a794 | 2,466 | cpp | C++ | producer/api/cpp/unittests/test_producer_request.cpp | SergeyYakubov/asapo | 25fddf9af6b215a6fc0da6108bc6b91dff813362 | [
"MIT",
"Apache-2.0",
"MIT-0",
"BSD-3-Clause"
] | null | null | null | producer/api/cpp/unittests/test_producer_request.cpp | SergeyYakubov/asapo | 25fddf9af6b215a6fc0da6108bc6b91dff813362 | [
"MIT",
"Apache-2.0",
"MIT-0",
"BSD-3-Clause"
] | null | null | null | producer/api/cpp/unittests/test_producer_request.cpp | SergeyYakubov/asapo | 25fddf9af6b215a6fc0da6108bc6b91dff813362 | [
"MIT",
"Apache-2.0",
"MIT-0",
"BSD-3-Clause"
] | null | null | null | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "asapo/unittests/MockIO.h"
#include "asapo/unittests/MockLogger.h"
#include "asapo/common/error.h"
#include "asapo/io/io.h"
#include "asapo/producer/common.h"
#include "asapo/producer/producer_error.h"
#include "../src/request_handler_tcp.h"
#include <asapo/... | 33.324324 | 132 | 0.738848 | SergeyYakubov |
7a4a78300d55ccaea3f07104f1870a684a56764c | 6,936 | cpp | C++ | demo2/Classes/testLayer.cpp | wantnon2/3DToolKit-2-for-cocos2dx | 518aa856f06788929e50897b43969e5cfa50c3cf | [
"MIT"
] | 11 | 2015-02-12T04:34:43.000Z | 2021-10-10T06:24:55.000Z | demo2/Classes/testLayer.cpp | wantnon2/3DToolKit-2-for-cocos2dx | 518aa856f06788929e50897b43969e5cfa50c3cf | [
"MIT"
] | null | null | null | demo2/Classes/testLayer.cpp | wantnon2/3DToolKit-2-for-cocos2dx | 518aa856f06788929e50897b43969e5cfa50c3cf | [
"MIT"
] | 8 | 2015-06-30T11:51:30.000Z | 2021-10-10T06:24:56.000Z | //
// testLayer.cpp
// HelloCpp
//
// Created by Yang Chao (wantnon) on 13-11-6.
//
//
#include "testLayer.h"
bool CtestLayer::init(){
CCSize visibleSize = CCDirector::sharedDirector()->getVisibleSize();
CCPoint origin = CCDirector::sharedDirector()->getVisibleOrigin();
CCSize winSize=CCDirector::share... | 31.384615 | 151 | 0.643454 | wantnon2 |
7a4ee912ad4a5bbf719c9f1f407f170a2eb47069 | 26,355 | cc | C++ | src/algorithms/tests/BMR.cc | litlpoet/beliefbox | 6b303e49017f8054f43c6c840686fcc632205e4e | [
"OLDAP-2.3"
] | null | null | null | src/algorithms/tests/BMR.cc | litlpoet/beliefbox | 6b303e49017f8054f43c6c840686fcc632205e4e | [
"OLDAP-2.3"
] | null | null | null | src/algorithms/tests/BMR.cc | litlpoet/beliefbox | 6b303e49017f8054f43c6c840686fcc632205e4e | [
"OLDAP-2.3"
] | null | null | null | /* -*- Mode: C++; -*- */
// copyright (c) 2012 by Nikolaos Tziortziotis <ntziorzi@gmail.com>
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify... | 31.791315 | 91 | 0.586227 | litlpoet |
7a5844762dcaf766018b7c7ceef18282378acb4e | 1,351 | hpp | C++ | sprout/math/fractional_part.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/math/fractional_part.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/math/fractional_part.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_MATH_FRACTIONAL_PART_HPP
#define SPROUT_MATH_FRACTIONAL_PART_HPP
#include <limits>
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/math/detail/config.hpp>
#include <sprout/math/integer_part.hpp>
#include <sprout/type_traits/enabler_if.hpp>
namespace sprout {
namespace m... | 31.418605 | 126 | 0.706884 | osyo-manga |
7a58da0624821c6e4c15b30faaf1535da7ef94da | 17,586 | cpp | C++ | test/ProcessMoveTests.cpp | eunmann/chess-engine | 42bfa6cbf108d2746505faa3b6ee5d31e0a87b7d | [
"MIT"
] | 2 | 2022-01-01T22:26:57.000Z | 2022-02-14T04:03:32.000Z | test/ProcessMoveTests.cpp | eunmann/chess-engine | 42bfa6cbf108d2746505faa3b6ee5d31e0a87b7d | [
"MIT"
] | null | null | null | test/ProcessMoveTests.cpp | eunmann/chess-engine | 42bfa6cbf108d2746505faa3b6ee5d31e0a87b7d | [
"MIT"
] | null | null | null | #include "TestFW.hpp"
#include "Definitions.hpp"
#include "BitBoardUtils.hpp"
#include <cassert>
#include "GameState.hpp"
#include <vector>
#include "MoveGeneration.hpp"
namespace Tests {
auto add_process_move_tests(TestFW::UnitTest &unit_tests) -> void {
TestFW::TestCase process_move_test_case("Process ... | 66.362264 | 119 | 0.387808 | eunmann |
7a5a717b88036f76c2144b9d9dfbc4b3d47c7ece | 7,250 | cc | C++ | src/svm_ila.cc | igreene2/SVMA | 5bdfd380cb4a9bd46a67d55db1dc9a1e6cede4fc | [
"MIT"
] | null | null | null | src/svm_ila.cc | igreene2/SVMA | 5bdfd380cb4a9bd46a67d55db1dc9a1e6cede4fc | [
"MIT"
] | 1 | 2021-03-02T17:12:23.000Z | 2021-03-02T17:12:23.000Z | src/svm_ila.cc | igreene2/SVMA | 5bdfd380cb4a9bd46a67d55db1dc9a1e6cede4fc | [
"MIT"
] | null | null | null | /// \file the ila example of svma accelerator:
/// support vector machine accelerator for biomedical purposes,
// receives MMIO instruction
/// Isabel Greene (igreene@princeton.edu)
///
#include <ilang/ilang++.h>
#include <svma_ila.h>
#include <ilang/util/log.h>
namespace ilang {
namespace svma {
Ila GetSVMAIl... | 30.590717 | 105 | 0.50331 | igreene2 |
7a61c19f1895879ada93ff5139c44c67c1dc87a3 | 1,803 | cpp | C++ | src/textures.cpp | sword-and-sorcery/glfw-textures | cb663fc39b9060057f4a726ffc93004e48229009 | [
"MIT"
] | null | null | null | src/textures.cpp | sword-and-sorcery/glfw-textures | cb663fc39b9060057f4a726ffc93004e48229009 | [
"MIT"
] | null | null | null | src/textures.cpp | sword-and-sorcery/glfw-textures | cb663fc39b9060057f4a726ffc93004e48229009 | [
"MIT"
] | null | null | null |
#include "tileset_glfw/textures.h"
#include <iostream>
#include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
namespace opengl {
namespace {
std::map<std::string, const assets::tileset*> tilesets; // TODO: !!!
std::map<std::pair<std::string, std::string>, std::tuple<int, ... | 37.5625 | 109 | 0.622296 | sword-and-sorcery |
7a6304ac12b7dee27b8d0f011b9049276014f31b | 2,789 | cpp | C++ | unranged/468.cpp | Taowyoo/LeetCodeLog | cb05798538dd10675bf81011a419d0e33d85e4e0 | [
"MIT"
] | null | null | null | unranged/468.cpp | Taowyoo/LeetCodeLog | cb05798538dd10675bf81011a419d0e33d85e4e0 | [
"MIT"
] | null | null | null | unranged/468.cpp | Taowyoo/LeetCodeLog | cb05798538dd10675bf81011a419d0e33d85e4e0 | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/validate-ip-address/
// Approach 1: use regex
class Solution {
public:
/**
* @brief Use std::regex to check whether given string is IPV4 or IPV6
*
* @param IP Given IP address string
* @return string Result
*/
string validIPAddress(string IP) {
... | 41.014706 | 131 | 0.487271 | Taowyoo |
7a64f46225b59710178fb26e1fc9e32b985119ee | 663 | cpp | C++ | src/tdme/gui/nodes/GUINode_Flow.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/gui/nodes/GUINode_Flow.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/gui/nodes/GUINode_Flow.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | #include <tdme/gui/nodes/GUINode_Flow.h>
#include <string>
#include <tdme/utils/Enum.h>
using std::string;
using tdme::gui::nodes::GUINode_Flow;
using tdme::utils::Enum;
GUINode_Flow::GUINode_Flow(const string& name, int ordinal)
: Enum(name, ordinal)
{
}
GUINode_Flow* tdme::gui::nodes::GUINode_Flow::INTEGRATED ... | 23.678571 | 93 | 0.731523 | mahula |
7a652c8223f0c75e9e6c20c5e068ccb00d437004 | 793 | cc | C++ | DataFormats/ParticleFlowCandidate/src/IsolatedPFCandidate.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | DataFormats/ParticleFlowCandidate/src/IsolatedPFCandidate.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | DataFormats/ParticleFlowCandidate/src/IsolatedPFCandidate.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "DataFormats/ParticleFlowCandidate/interface/IsolatedPFCandidate.h"
#include <iostream>
using namespace reco;
using namespace std;
IsolatedPFCandidate::IsolatedPFCandidate() : PFCandidate(), isolation_(-1) {}
IsolatedPFCandidate::IsolatedPFCandidate( const PFCandidatePtr & candidatePtr,
double iso... | 22.657143 | 79 | 0.725095 | nistefan |
7a654faac16def890e44cd51be734a7e23df592b | 8,208 | cc | C++ | winch_control/brew_session.cc | garratt/brewhouse | eb0b07d19733aa975d8d6322b4e82fd3b2711ced | [
"BSD-3-Clause"
] | null | null | null | winch_control/brew_session.cc | garratt/brewhouse | eb0b07d19733aa975d8d6322b4e82fd3b2711ced | [
"BSD-3-Clause"
] | null | null | null | winch_control/brew_session.cc | garratt/brewhouse | eb0b07d19733aa975d8d6322b4e82fd3b2711ced | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 Garratt Gallagher. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpio.h"
#include "grainfather2.h"
#include "brew_session.h"
#include <utility>
#include <deque>
#include <mutex>
#include <list>
#include <function... | 32.442688 | 94 | 0.691399 | garratt |
7a66925f148b9c18dd2659af0b13cc577c79237c | 2,739 | cpp | C++ | Page_Replacement_Algorithms/Class_Definition.cpp | Siddhartha-Dhar/Operating_System_Programs | 5bbfa8f82e270bef1e0511e82b3678de6b42d713 | [
"MIT"
] | 1 | 2021-07-21T07:04:08.000Z | 2021-07-21T07:04:08.000Z | Page_Replacement_Algorithms/Class_Definition.cpp | Siddhartha-Dhar/Operating_System_Programs | 5bbfa8f82e270bef1e0511e82b3678de6b42d713 | [
"MIT"
] | 1 | 2021-08-07T12:46:32.000Z | 2021-08-15T13:19:33.000Z | Page_Replacement_Algorithms/Class_Definition.cpp | Siddhartha-Dhar/Operating_System_Programs | 5bbfa8f82e270bef1e0511e82b3678de6b42d713 | [
"MIT"
] | 1 | 2021-08-07T13:05:33.000Z | 2021-08-07T13:05:33.000Z | #include<iostream>
//.........................................................................Class Definition For Row
class Block{
private: // Private Access Specifier Scope
int Page_Number;
int Status;
public: // Public Access Specifier Scope
void Set_PN(int);
... | 33.814815 | 140 | 0.514421 | Siddhartha-Dhar |
7a675430737d89d7246a9bdddf02cfadbae35e5e | 3,928 | hpp | C++ | ee21/common/inc/ee/function.hpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | ee21/common/inc/ee/function.hpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | ee21/common/inc/ee/function.hpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | #pragma once
/*! \file function.hpp
\brief Function classes declarations.
\author Garth Santor
\date 2021-10-29
\copyright Garth Santor, Trinh Han
=============================================================
Declarations of the Function classes derived from Operation.
Includes the subclasses:
OneArgFunction
... | 25.341935 | 106 | 0.62831 | ygor-rezende |
7a679acd4b628f55b69492359d814b6ac257b7ed | 747 | cpp | C++ | Codeforces/VasyaAndTheBus.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | Codeforces/VasyaAndTheBus.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | Codeforces/VasyaAndTheBus.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <iostream>
using namespace std;
int n, m;
int main(void) {
cin >> n >> m;
if(n == 0) {
if(m == 0) {
cout << "0 0" << endl;
} else {
cout << "Impossible" << endl;
}
return 0;
}
int max = n + (m - 1);
int min = 0;
... | 17.372093 | 43 | 0.305221 | aajjbb |
7a7123426f612acbd9ebf2b38b219c9236ebd603 | 3,718 | cc | C++ | chrome/chrome_cleaner/os/process.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/chrome_cleaner/os/process.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/chrome_cleaner/os/process.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/chrome_cleaner/os/process.h"
#include <windows.h>
#include <psapi.h>
#include <vector>
#include "base/logging.h"
namespace chrome_cl... | 33.8 | 79 | 0.67886 | zealoussnow |
7a74070c20510abfe143167aca5f0e563cf903d8 | 746 | cpp | C++ | call.cpp | rgeorgiev583/RadoPlusPlusinterpreter | edf410403bb9b69cad1946a9250ac2fdd66f86a1 | [
"MIT"
] | null | null | null | call.cpp | rgeorgiev583/RadoPlusPlusinterpreter | edf410403bb9b69cad1946a9250ac2fdd66f86a1 | [
"MIT"
] | null | null | null | call.cpp | rgeorgiev583/RadoPlusPlusinterpreter | edf410403bb9b69cad1946a9250ac2fdd66f86a1 | [
"MIT"
] | null | null | null | /*
* call.cpp
*
* Created on: Jan 17, 2015
* Author: radoslav
*/
#include "call.h"
#include "constructor-call.h"
#include "function-call.h"
#include "strtok.h"
void Call::parse(const char*& code)
{
name = Identifier(code);
if (!gotoToken(code, " \t\n\r") || *code != '(')
{
type = CALL_INVALID;
ret... | 16.577778 | 113 | 0.612601 | rgeorgiev583 |
7a764c97dd2e828e58570985f7357348f8f93012 | 587 | hpp | C++ | openssl-examples/include/cli/arguments.hpp | falk-werner/playground | 501b425d4c8161bdd89ad92b78a4741d81af9acb | [
"MIT"
] | null | null | null | openssl-examples/include/cli/arguments.hpp | falk-werner/playground | 501b425d4c8161bdd89ad92b78a4741d81af9acb | [
"MIT"
] | null | null | null | openssl-examples/include/cli/arguments.hpp | falk-werner/playground | 501b425d4c8161bdd89ad92b78a4741d81af9acb | [
"MIT"
] | null | null | null | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#ifndef CLI_ARGUMENTS_HPP
#define CLI_ARGUMENTS_HPP
#include <string>
#include <unordered_map>
namespace cli
{
... | 20.964286 | 70 | 0.689949 | falk-werner |
7a796768d7400ffddb6a87734e1311cb9b188af4 | 29,241 | hpp | C++ | include/codegen/include/UnityEngine/UI/ScrollRect.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/UI/ScrollRect.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/UI/ScrollRect.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:38 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: UnityEngine.EventSystems.UIBehaviour
#include "UnityEngine/E... | 51.120629 | 553 | 0.757943 | Futuremappermydud |
7a7c5c97f5aa712eebe55dc8d0ac8f0efc2cf4ac | 8,616 | cc | C++ | nacl/net/udp_listener.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 9 | 2015-12-23T21:18:28.000Z | 2018-11-25T10:10:12.000Z | nacl/net/udp_listener.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 1 | 2016-01-08T20:56:21.000Z | 2016-01-08T20:56:21.000Z | nacl/net/udp_listener.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 6 | 2015-12-04T18:23:49.000Z | 2018-11-06T03:52:58.000Z | // Copyright 2013 The Chromium Authors. All rights reserved.
// Copyright 2015 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdio.h>
#include <string.h>
#include <sstream>
#include "base/logger.h"
#include "ba... | 26.925 | 80 | 0.666086 | maxsong11 |
7a81f0e4fbe6c12e6731da0d2ca35dd96c70c5eb | 4,413 | cpp | C++ | src/graphics/renderers/cloud_renderer.cpp | alexkafer/planets | ad118c7ba9d479afc29ba9d5b65222c8c7f2cde2 | [
"Unlicense",
"MIT"
] | null | null | null | src/graphics/renderers/cloud_renderer.cpp | alexkafer/planets | ad118c7ba9d479afc29ba9d5b65222c8c7f2cde2 | [
"Unlicense",
"MIT"
] | null | null | null | src/graphics/renderers/cloud_renderer.cpp | alexkafer/planets | ad118c7ba9d479afc29ba9d5b65222c8c7f2cde2 | [
"Unlicense",
"MIT"
] | 1 | 2021-03-02T16:54:40.000Z | 2021-03-02T16:54:40.000Z |
#include "cloud_renderer.hpp"
// Local Headers
#include "graphics/vert_buffer.hpp"
#include "utils/math_utils.h"
#include "utils/math/interpolation.h"
#include "scene.hpp"
const int nrOfSpawnpoints = 30, particlesPerOffset = 6;
CloudRenderer::CloudRenderer():
quad(new Mesh("cloud_quad", 4, 6, Mesh::getQuad()... | 38.710526 | 141 | 0.624972 | alexkafer |
18528f1718cf409c430581856e0e283feec890e6 | 27 | cpp | C++ | src/http_method.cpp | pozitiffcat/rester | e930a833910ea93180bacbedf1b1be23f45ee4da | [
"MIT"
] | 1 | 2019-07-10T07:35:58.000Z | 2019-07-10T07:35:58.000Z | src/http_method.cpp | pozitiffcat/rester | e930a833910ea93180bacbedf1b1be23f45ee4da | [
"MIT"
] | null | null | null | src/http_method.cpp | pozitiffcat/rester | e930a833910ea93180bacbedf1b1be23f45ee4da | [
"MIT"
] | null | null | null | #include "http_method.hpp"
| 13.5 | 26 | 0.777778 | pozitiffcat |
1856afa93da83c4b693e43da18982be2e90199cf | 484 | cpp | C++ | pat/pat1031.cpp | zofvbeaf/algorithm-practices | 9772808fdf1b73ac55887291d9fb680e90b60958 | [
"MIT"
] | null | null | null | pat/pat1031.cpp | zofvbeaf/algorithm-practices | 9772808fdf1b73ac55887291d9fb680e90b60958 | [
"MIT"
] | null | null | null | pat/pat1031.cpp | zofvbeaf/algorithm-practices | 9772808fdf1b73ac55887291d9fb680e90b60958 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
string s;
cin>>s;
int len = s.length();
int n1 = len/3,n3 = len/3, n2 = len-n1-n3; //不能n1=n2=n3
if(len%3 == 0) { n1--;n3--;n2 +=2;}
for(int i=0; i<n1; i++){
cout<<s[i];
... | 21.043478 | 59 | 0.491736 | zofvbeaf |
185707fd55ea6faf75bbdb73bbf5aa8529f77874 | 3,158 | cpp | C++ | test/MeLikeyCode-QtGameEngine-2a3d47c/qge/ECMapMover.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | 16 | 2019-05-23T08:10:39.000Z | 2021-12-21T11:20:37.000Z | test/MeLikeyCode-QtGameEngine-2a3d47c/qge/ECMapMover.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | null | null | null | test/MeLikeyCode-QtGameEngine-2a3d47c/qge/ECMapMover.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | 2 | 2019-05-23T18:37:43.000Z | 2021-08-24T21:29:40.000Z | #include "ECMapMover.h"
#include "Map.h"
#include "Game.h"
#include "MapGrid.h"
#include "Node.h"
using namespace qge;
ECMapMover::ECMapMover(Entity *entity):
EntityController(entity),
borderThreshold_(10)
{
assert(entity != nullptr);
// listen to when entity moves
connect(entity,&Entity::moved,... | 30.960784 | 93 | 0.624763 | JamesMBallard |
185894efec17052bd63aa3fe982827369c8edc6d | 775 | hh | C++ | src/file.hh | deurzen/bulkrename | 8de602ae3a34716e874ce334d0609a80536c9dbb | [
"BSD-3-Clause"
] | null | null | null | src/file.hh | deurzen/bulkrename | 8de602ae3a34716e874ce334d0609a80536c9dbb | [
"BSD-3-Clause"
] | null | null | null | src/file.hh | deurzen/bulkrename | 8de602ae3a34716e874ce334d0609a80536c9dbb | [
"BSD-3-Clause"
] | null | null | null | #ifndef __BULKRENAME_FILE_GUARD__
#define __BULKRENAME_FILE_GUARD__
#include "node.hh"
#include <fstream>
#include <string.h>
#include <iostream>
#include <string>
#include <cstdio>
class filehandler_t
{
public:
filehandler_t()
{
char* tmpname = strdup("/tmp/tmpfileXXXXXXXXXX");
mkstemp(tmpn... | 17.222222 | 57 | 0.636129 | deurzen |
185a633de3a64811253334a39e0ac7f71e4e31c6 | 7,366 | cpp | C++ | test/unit/tcframe/driver/TestCaseDriverTests.cpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 76 | 2015-03-31T01:36:17.000Z | 2021-12-29T08:16:25.000Z | test/unit/tcframe/driver/TestCaseDriverTests.cpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 68 | 2016-11-28T18:58:26.000Z | 2018-08-10T13:33:35.000Z | test/unit/tcframe/driver/TestCaseDriverTests.cpp | tcgen/tcgen | d3b79585b40995ea8fc8091ecc6b6b19c2cb46ad | [
"MIT"
] | 17 | 2015-04-24T03:52:32.000Z | 2022-03-11T23:28:02.000Z | #include "gmock/gmock.h"
#include "../mock.hpp"
#include <sstream>
#include <streambuf>
#include <utility>
#include "MockRawIOManipulator.hpp"
#include "../spec/io/MockIOManipulator.hpp"
#include "../spec/verifier/MockVerifier.hpp"
#include "tcframe/driver/TestCaseDriver.hpp"
using ::testing::_;
using ::testing::Eq;... | 33.481818 | 119 | 0.706489 | tcgen |
185ad667e2140f0aeddd86cc3cb6970d9175e079 | 333 | hpp | C++ | Micasa/image_scaler.hpp | terrakuh/micasa | 38aefce30c2a508557468a11d770f3e3d482d1da | [
"MIT"
] | null | null | null | Micasa/image_scaler.hpp | terrakuh/micasa | 38aefce30c2a508557468a11d770f3e3d482d1da | [
"MIT"
] | null | null | null | Micasa/image_scaler.hpp | terrakuh/micasa | 38aefce30c2a508557468a11d770f3e3d482d1da | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
#include <QtWidgets\QWidget>
#include <QtCore\QTimeLine>
#include "image_item.hpp"
class image_scaler
{
public:
image_scaler(QWidget * _widget, image_item ** _image);
void add_steps(int _steps);
private:
int _destination_level;
QTimeLine _scaler;
static double scaling_function(d... | 15.857143 | 55 | 0.762763 | terrakuh |
18610cffdd5cccbc3b0d94bfc335ee41f1d485f2 | 854 | cxx | C++ | track_oracle/core/element_descriptor.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | 1 | 2017-07-31T07:07:32.000Z | 2017-07-31T07:07:32.000Z | track_oracle/core/element_descriptor.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | 4 | 2021-03-19T00:52:41.000Z | 2022-03-11T23:48:06.000Z | track_oracle/core/element_descriptor.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | /*ckwg +5
* Copyright 2012-2016 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "element_descriptor.h"
using std::string;
namespace kwiver {
namespace track... | 20.333333 | 77 | 0.693208 | neal-siekierski |
18660c726f1c064723b6456e956839c4cc4155df | 1,459 | cc | C++ | src/tcg/tcg_device_opal_2.cc | jc-lab/jcu-dparm | 140efc844e339ca22d79a9958bdcbc7195701835 | [
"Apache-2.0"
] | null | null | null | src/tcg/tcg_device_opal_2.cc | jc-lab/jcu-dparm | 140efc844e339ca22d79a9958bdcbc7195701835 | [
"Apache-2.0"
] | null | null | null | src/tcg/tcg_device_opal_2.cc | jc-lab/jcu-dparm | 140efc844e339ca22d79a9958bdcbc7195701835 | [
"Apache-2.0"
] | null | null | null | /**
* @file tcg_device_opal_2.cc
* @author Joseph Lee <development@jc-lab.net>
* @date 2020/07/27
* @copyright Copyright (C) 2020 jc-lab.\n
* This software may be modified and distributed under the terms
* of the Apache License 2.0. See the LICENSE file for details.
*/
#include <assert.h>... | 30.395833 | 96 | 0.74366 | jc-lab |
18663000d41284c595c75793284e23e783255fc9 | 3,609 | cpp | C++ | integrate/property_server/source/sr_main.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 5 | 2019-12-02T12:28:57.000Z | 2021-04-07T21:21:13.000Z | integrate/property_server/source/sr_main.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | null | null | null | integrate/property_server/source/sr_main.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 1 | 2020-01-09T14:25:42.000Z | 2020-01-09T14:25:42.000Z | /*!
* @file sr_main.cpp
* @author Marc-Anton Boehm-von Thenen
* @date 27/06/2018
* @copyright SmartRay GmbH (www.smartray.com)
*/
#include "sr_pch.h"
#include <functional>
#include <iostream>
#include "application/sr_state.h"
#include "application/sr_handler_factory.h"
#include <tcp_server_client/... | 28.872 | 136 | 0.563591 | BoneCrasher |
1870b9c705fcaa7116e0c66235bee0ccd2701359 | 1,783 | cpp | C++ | src/Entity.cpp | PeaTea/Wolfenstein3D-Cpp-Clone-WIP | c82cd6fe2de43e6dba0d974b93edd910fbe44798 | [
"MIT"
] | null | null | null | src/Entity.cpp | PeaTea/Wolfenstein3D-Cpp-Clone-WIP | c82cd6fe2de43e6dba0d974b93edd910fbe44798 | [
"MIT"
] | 1 | 2017-10-08T09:25:01.000Z | 2018-05-14T21:46:37.000Z | src/Entity.cpp | PeaTea/Wolfenstein3D-Cpp-Clone-WIP | c82cd6fe2de43e6dba0d974b93edd910fbe44798 | [
"MIT"
] | null | null | null | #include "Entity.h"
Entity::Entity(unsigned int tex_id, const glm::vec3& pos, const Vec2<float>& size,
GLfloat rotation, const glm::vec3& rotation_vec,
const glm::vec4& color)
: m_texture_id {tex_id}
, m_position {pos}
, m_size {size}
, m_r... | 29.716667 | 129 | 0.557487 | PeaTea |
18766da2fb8b4a197e862b8f6772a05660f0cc66 | 1,194 | cpp | C++ | orm-cpp/orm/test_mock/store_mock/orm/store_mark/store.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | orm-cpp/orm/test_mock/store_mock/orm/store_mark/store.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | orm-cpp/orm/test_mock/store_mock/orm/store_mark/store.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | #include "orm/store_mark/store.h"
namespace orm::store_mark {
test::mock::Store& Store::mock() {
return mMock;
}
std::shared_ptr<orm::core::Property> Store::query(std::int64_t identity) {
return mMock.query(identity);
}
bool Store::commit() {
return mMock.commit();
}
std::shared_ptr<orm::core::Property> Store::... | 25.956522 | 95 | 0.717755 | ironbit |
187727753cbf4ffc33b237b442477bf1452f9cf8 | 347 | hpp | C++ | src/mainView/mainView.hpp | Tau5/mkrandom | f6586690d6d696c564a83e28e39679eeb0d8d5e9 | [
"MIT"
] | null | null | null | src/mainView/mainView.hpp | Tau5/mkrandom | f6586690d6d696c564a83e28e39679eeb0d8d5e9 | [
"MIT"
] | null | null | null | src/mainView/mainView.hpp | Tau5/mkrandom | f6586690d6d696c564a83e28e39679eeb0d8d5e9 | [
"MIT"
] | null | null | null | #ifndef __MAINVIEW_H__
#define __MAINVIEW_H__
#include "../scenario.hpp"
#include "../context.hpp"
#include "../scenarioContext.hpp"
#include "../view.hpp"
class MainView: public View {
private:
int subview;
public:
MainView(Context context);
void init();
void loop(SceCtrlData pad, SceCtrlData pad_prev);
};... | 18.263158 | 51 | 0.720461 | Tau5 |
18779c3b9615171d49bdd7503a8e2d6be74892ea | 1,334 | cpp | C++ | Dynamic Programming/2zeroOneKnapsack.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | 1 | 2021-01-18T14:51:20.000Z | 2021-01-18T14:51:20.000Z | Dynamic Programming/2zeroOneKnapsack.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | Dynamic Programming/2zeroOneKnapsack.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
//Function to return max value that can be put in knapsack of capacity W.
int knapSack(int W, int wt[], int val[], int n)
{
// Your code here
vector<vector<int>> dp(W+... | 21.516129 | 77 | 0.450525 | Coderangshu |
187917397e0bfb8c27c277b2d18fcaf25674360f | 1,022 | cpp | C++ | Gems/Atom/RPI/Code/Source/RPI.Reflect/FeatureProcessorDescriptor.cpp | cypherdotXd/o3de | bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676 | [
"Apache-2.0",
"MIT"
] | 11 | 2021-07-08T09:58:26.000Z | 2022-03-17T17:59:26.000Z | Gems/Atom/RPI/Code/Source/RPI.Reflect/FeatureProcessorDescriptor.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 29 | 2021-07-06T19:33:52.000Z | 2022-03-22T10:27:49.000Z | Gems/Atom/RPI/Code/Source/RPI.Reflect/FeatureProcessorDescriptor.cpp | RoddieKieley/o3de | e804fd2a4241b039a42d9fa54eaae17dc94a7a92 | [
"Apache-2.0",
"MIT"
] | 4 | 2021-07-06T19:24:43.000Z | 2022-03-31T12:42:27.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Serialization/SerializeContext.h>
#include <Atom/RPI.Reflect/FeatureProcessorDes... | 30.969697 | 106 | 0.637965 | cypherdotXd |
187b40aa525a495705a119ea25f4c43c37dabfd7 | 161 | hpp | C++ | strategy/FlyBehavior.hpp | jinbooooom/design-patterns | 1399500c9ac8bd8cd0c90926482c2a841471a784 | [
"MIT"
] | null | null | null | strategy/FlyBehavior.hpp | jinbooooom/design-patterns | 1399500c9ac8bd8cd0c90926482c2a841471a784 | [
"MIT"
] | null | null | null | strategy/FlyBehavior.hpp | jinbooooom/design-patterns | 1399500c9ac8bd8cd0c90926482c2a841471a784 | [
"MIT"
] | null | null | null | #ifndef FLYBEHAVIOR_HPP
#define FLYBEHAVIOR_HPP
// 接口类
class FlyBehavior
{
public:
virtual void fly() = 0;
virtual ~FlyBehavior() = default;
};
#endif | 12.384615 | 37 | 0.695652 | jinbooooom |
187bcf9d3a46194b1e9ad708a033401e9f6f5cf6 | 283 | hpp | C++ | test/strategy.hpp | fyquah95/robot_cpp | f0898957fb0b1258419e4ace9d7464143caaa5e4 | [
"MIT"
] | 11 | 2018-01-10T12:35:04.000Z | 2018-08-29T01:47:48.000Z | test/strategy.hpp | fyquah95/robot_cpp | f0898957fb0b1258419e4ace9d7464143caaa5e4 | [
"MIT"
] | null | null | null | test/strategy.hpp | fyquah95/robot_cpp | f0898957fb0b1258419e4ace9d7464143caaa5e4 | [
"MIT"
] | 2 | 2018-01-10T13:04:08.000Z | 2018-01-10T13:24:12.000Z | #ifndef STRATEGY_HPP
#define STRATEGY_HPP
#include "game.hpp"
game_state_t strategy_init(const game_state_t & state);
game_state_t strategy_step(const game_state_t & state, bool *moved);
game_state_t strategy_term(game_state_t state);
void strategy_print_internal_state();
#endif
| 23.583333 | 68 | 0.823322 | fyquah95 |
187f1e267bf275dd1c60a0dfafa60bf3658cf60d | 168 | hpp | C++ | src/include/streamer/manipulation.hpp | philip1337/samp-plugin-streamer | 54b08afd5e73bd5f68f67f9cf8cc78189bf6ef8a | [
"Apache-2.0"
] | 2 | 2017-07-23T23:27:03.000Z | 2017-07-24T06:18:13.000Z | src/include/streamer/manipulation.hpp | Sphinxila/samp-plugin-streamer | 54b08afd5e73bd5f68f67f9cf8cc78189bf6ef8a | [
"Apache-2.0"
] | null | null | null | src/include/streamer/manipulation.hpp | Sphinxila/samp-plugin-streamer | 54b08afd5e73bd5f68f67f9cf8cc78189bf6ef8a | [
"Apache-2.0"
] | null | null | null | #ifndef MANIPULATION_HPP
#define MANIPULATION_HPP
#pragma once
#include "config.hpp"
STREAMER_BEGIN_NS
int Streamer_GetUpperBound(int type);
STREAMER_END_NS
#endif | 12.923077 | 37 | 0.827381 | philip1337 |
18869220aaac503fc651d518f224e5118ec6d1b1 | 210 | cpp | C++ | source/ballstatus.cpp | BonexGoo/ballt | 33e4022161cf4b0017da7460d19847d0d5d2d51d | [
"MIT"
] | 1 | 2020-08-21T01:26:47.000Z | 2020-08-21T01:26:47.000Z | source/ballstatus.cpp | BonexGoo/ballt | 33e4022161cf4b0017da7460d19847d0d5d2d51d | [
"MIT"
] | null | null | null | source/ballstatus.cpp | BonexGoo/ballt | 33e4022161cf4b0017da7460d19847d0d5d2d51d | [
"MIT"
] | 1 | 2020-08-21T01:26:55.000Z | 2020-08-21T01:26:55.000Z | #include <boss.hpp>
#include "ballstatus.hpp"
BallStatus& BallStatus::operator=(const BallStatus& rhs)
{
Memory::Copy(&mRailCode, &rhs.mRailCode, sizeof(BallStatus) - sizeof(uint32));
return *this;
}
| 23.333333 | 82 | 0.709524 | BonexGoo |
188873b0a94b3ede34ed0801b4d62205dfdb13f2 | 1,618 | cpp | C++ | hw/Assignment3-vs2008/KarelGoesHome.cpp | Liquidibrium/PAbstractions | e3cf51b5d713a181abdda87ed5205d998289f878 | [
"MIT"
] | null | null | null | hw/Assignment3-vs2008/KarelGoesHome.cpp | Liquidibrium/PAbstractions | e3cf51b5d713a181abdda87ed5205d998289f878 | [
"MIT"
] | null | null | null | hw/Assignment3-vs2008/KarelGoesHome.cpp | Liquidibrium/PAbstractions | e3cf51b5d713a181abdda87ed5205d998289f878 | [
"MIT"
] | null | null | null | /* File: KarelGoesHome.cpp
*
* A solution to the Karel Goes Home warmup problem for Assignment 3.
*/
#include <iostream>
#include "simpio.h"
using namespace std;
/* Function to compute the number of paths back home. */
int numPathsHome(int street, int avenue);
int main() {
int street = getInteger("Enter the stree... | 32.36 | 80 | 0.647095 | Liquidibrium |
188cefdcb77849ba038b1a21d023b1ce4eb97481 | 1,270 | cpp | C++ | C++/Cpp-Concurrency-in-Action/listing_8.7.cpp | haohaibo/learn | 7a30489e76abeda1465fe610b1c5cf4c4de7e3b6 | [
"MIT"
] | 1 | 2021-02-20T00:14:35.000Z | 2021-02-20T00:14:35.000Z | C++/Cpp-Concurrency-in-Action/listing_8.7.cpp | haohaibo/learn | 7a30489e76abeda1465fe610b1c5cf4c4de7e3b6 | [
"MIT"
] | null | null | null | C++/Cpp-Concurrency-in-Action/listing_8.7.cpp | haohaibo/learn | 7a30489e76abeda1465fe610b1c5cf4c4de7e3b6 | [
"MIT"
] | null | null | null | template <typename Iterator, typename Func>
void parallel_for_each(Iterator first, Iterator last, Func f) {
unsigned long const length = std::distance(first, last);
if (!length) return;
unsigned long const min_per_thread = 25;
unsigned long const max_threads =
(length + min_per_thread - 1) / min... | 34.324324 | 78 | 0.66063 | haohaibo |
188d5a14490cc58d8bf29d451376f39297ddea5e | 35,755 | cc | C++ | omnetpy/bindings/bind_ccomponent.cc | ranarashadmahmood/OMNETPY | 13ab49106a3ac700aa633a8eb37acdad5e3157ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 31 | 2020-06-23T13:53:47.000Z | 2022-03-28T08:09:00.000Z | omnetpy/bindings/bind_ccomponent.cc | ranarashadmahmood/OMNETPY | 13ab49106a3ac700aa633a8eb37acdad5e3157ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 8 | 2020-11-01T21:35:47.000Z | 2021-08-29T11:40:50.000Z | omnetpy/bindings/bind_ccomponent.cc | ranarashadmahmood/OMNETPY | 13ab49106a3ac700aa633a8eb37acdad5e3157ab | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 8 | 2021-03-22T15:32:22.000Z | 2022-02-02T14:57:56.000Z | #include <pybind11/pybind11.h>
#include <omnetpp.h>
#include <omnetpp/ccomponent.h>
/*
* make public all the protected members of cComponent
* we want to expose to python
*/
class cComponentPublicist : public omnetpp::cComponent {
public:
using omnetpp::cComponent::initialize;
using omnetpp::cComponent::n... | 38.695887 | 127 | 0.646315 | ranarashadmahmood |
188deba36441ae6ebeafde6fc6f303409baa2ba8 | 451 | cpp | C++ | Engine/Source/Built-in/Script/S_LookAt.cpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | 9 | 2018-07-21T00:30:35.000Z | 2021-09-04T02:54:11.000Z | Engine/Source/Built-in/Script/S_LookAt.cpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | null | null | null | Engine/Source/Built-in/Script/S_LookAt.cpp | Aredhele/OOM-Engine | e52f706d17f1867f575a85ba5b87b4cc34a7fa97 | [
"MIT"
] | 1 | 2021-12-03T14:12:41.000Z | 2021-12-03T14:12:41.000Z | /// \file S_LookAt.cpp
/// \date 06/08/2018
/// \project OOM-Engine
/// \package Composite
/// \author Vincent STEHLY--CALISTO
#include "SDK/SDK.hpp"
/*virtual */ void S_LookAt::Start()
{
GetTransform()->LookAt(mp_target->GetTransform());
}
/*virtual */ void S_LookAt::Update()
{
GetTransform(... | 19.608696 | 57 | 0.660754 | Aredhele |
18971363691c792d79e615d8045be24b56a25d4c | 391 | hpp | C++ | src/perfmon/collect.hpp | zadcha/rethinkdb | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | [
"Apache-2.0"
] | 21,684 | 2015-01-01T03:42:20.000Z | 2022-03-30T13:32:44.000Z | src/perfmon/collect.hpp | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 4,067 | 2015-01-01T00:04:51.000Z | 2022-03-30T13:42:56.000Z | src/perfmon/collect.hpp | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 1,901 | 2015-01-01T21:05:59.000Z | 2022-03-21T08:14:25.000Z | // Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef PERFMON_COLLECT_HPP_
#define PERFMON_COLLECT_HPP_
#include "perfmon/core.hpp"
/* `perfmon_get_stats()` collects all the stats about the server and puts them
* into the `ql::datum_t` object. It must be run in a coroutine and it
* blocks until it is done.... | 27.928571 | 78 | 0.759591 | zadcha |
1897978d06090c03b05b161c0623079c38bab094 | 1,416 | hpp | C++ | android-31/android/os/health/HealthStats.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/os/health/HealthStats.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/os/health/HealthStats.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../../JObject.hpp"
namespace android::os::health
{
class TimerStat;
}
class JString;
namespace android::os::health
{
class HealthStats : public JObject
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit HealthStats(const char *className, const char *sig... | 27.764706 | 152 | 0.738701 | YJBeetle |
1899978de2f05a70559f83b02de8f3c37ae30dd9 | 8,215 | cpp | C++ | mozilla/gfx/2d/NativeFontResourceDWrite.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | 5 | 2016-12-20T15:48:05.000Z | 2020-05-01T20:12:09.000Z | mozilla/gfx/2d/NativeFontResourceDWrite.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | null | null | null | mozilla/gfx/2d/NativeFontResourceDWrite.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | 2 | 2016-12-20T15:48:13.000Z | 2019-12-10T15:15:05.000Z | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0... | 28.425606 | 81 | 0.672794 | naver |
189f03d25cf4592fb21bed78f0db9eed2738ead9 | 696 | cpp | C++ | test/std/numerics/numarray/template.valarray/valarray.members/sum.pass.cpp | AOSiP/platform_external_libcxx | eb2115113f10274c0d25523ba44c3c7373ea3209 | [
"MIT"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | test/std/numerics/numarray/template.valarray/valarray.members/sum.pass.cpp | AOSiP/platform_external_libcxx | eb2115113f10274c0d25523ba44c3c7373ea3209 | [
"MIT"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | test/std/numerics/numarray/template.valarray/valarray.members/sum.pass.cpp | AOSiP/platform_external_libcxx | eb2115113f10274c0d25523ba44c3c7373ea3209 | [
"MIT"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 24 | 80 | 0.441092 | AOSiP |
18a1a13ed16965bcbc7647a731537a22cba44e44 | 5,197 | cpp | C++ | Arduboy_audio.cpp | Lswbanban/RickArdurous | fc716b6b201c5535f8a7660309d9524f2dca2d25 | [
"DOC"
] | null | null | null | Arduboy_audio.cpp | Lswbanban/RickArdurous | fc716b6b201c5535f8a7660309d9524f2dca2d25 | [
"DOC"
] | null | null | null | Arduboy_audio.cpp | Lswbanban/RickArdurous | fc716b6b201c5535f8a7660309d9524f2dca2d25 | [
"DOC"
] | null | null | null | #include "CustomArduboy.h"
#include "Arduboy_audio.h"
const byte PROGMEM tune_pin_to_timer_PGM[] = { 3, 1 };
volatile byte *_tunes_timer1_pin_port;
volatile byte _tunes_timer1_pin_mask;
volatile byte *_tunes_timer3_pin_port;
volatile byte _tunes_timer3_pin_mask;
byte _tune_pins[AVAILABLE_TIMERS];
#define LOWEST_NOTE ... | 28.091892 | 96 | 0.675005 | Lswbanban |
18a4b1a7b26df9f23cf9cc71422069083e0da9c8 | 2,646 | cpp | C++ | component/oai-amf/src/ngap/ngapIEs/GlobalgNBId.cpp | kukkalli/oai-cn5g-fed | 15634fac935ac8671b61654bdf75bf8af07d3c3a | [
"Apache-2.0"
] | null | null | null | component/oai-amf/src/ngap/ngapIEs/GlobalgNBId.cpp | kukkalli/oai-cn5g-fed | 15634fac935ac8671b61654bdf75bf8af07d3c3a | [
"Apache-2.0"
] | null | null | null | component/oai-amf/src/ngap/ngapIEs/GlobalgNBId.cpp | kukkalli/oai-cn5g-fed | 15634fac935ac8671b61654bdf75bf8af07d3c3a | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... | 35.28 | 81 | 0.583522 | kukkalli |
18a67c1af6a1acb3f30fa8032f9d7e1c055c7db6 | 1,675 | cpp | C++ | src/Homography/Triangulation.cpp | diegomazala/Homography | 545e7456284656f45aa77121baf9f54a8ae8557c | [
"MIT"
] | null | null | null | src/Homography/Triangulation.cpp | diegomazala/Homography | 545e7456284656f45aa77121baf9f54a8ae8557c | [
"MIT"
] | null | null | null | src/Homography/Triangulation.cpp | diegomazala/Homography | 545e7456284656f45aa77121baf9f54a8ae8557c | [
"MIT"
] | null | null | null | #include "Triangulation.h"
#include <iostream>
Triangulation::Triangulation(
const Eigen::MatrixXd& P0,
const Eigen::MatrixXd& P1,
const Eigen::VectorXd& x0,
const Eigen::VectorXd& x1):
P(P0, P1),
x(x0, x1)
{
}
Triangulation::Triangulation(const std::pair<Eigen::MatrixXd, Eigen::MatrixXd>& _P,
... | 24.275362 | 97 | 0.619701 | diegomazala |
18aabab0761eaa85dc96d77a702af78561d28097 | 8,874 | cpp | C++ | WeatherModel/WeatherModel.cpp | patrickn/QPhotoFrame | 18b5cccc1e56d6561b64505e1395faa20261056e | [
"MIT"
] | 3 | 2020-11-23T23:53:30.000Z | 2021-12-26T16:14:23.000Z | WeatherModel/WeatherModel.cpp | patrickn/QPhotoFrame | 18b5cccc1e56d6561b64505e1395faa20261056e | [
"MIT"
] | 4 | 2020-12-05T17:58:31.000Z | 2020-12-13T00:54:28.000Z | WeatherModel/WeatherModel.cpp | patrickn/QPhotoFrame | 18b5cccc1e56d6561b64505e1395faa20261056e | [
"MIT"
] | 1 | 2021-09-24T21:04:12.000Z | 2021-09-24T21:04:12.000Z | //-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QNetworkConfigurationManager>
#include <QNetworkReply>
#in... | 29.878788 | 126 | 0.630156 | patrickn |
18ad9c5af589eab8c064ad9cb769055557a78b39 | 1,614 | cpp | C++ | 05_WalkTester/Source/main.cpp | bugsbycarlin/SecretSalsa | b4b15e7ba14cdc2be9aad4d111e710ed0ec507ee | [
"MIT"
] | null | null | null | 05_WalkTester/Source/main.cpp | bugsbycarlin/SecretSalsa | b4b15e7ba14cdc2be9aad4d111e710ed0ec507ee | [
"MIT"
] | null | null | null | 05_WalkTester/Source/main.cpp | bugsbycarlin/SecretSalsa | b4b15e7ba14cdc2be9aad4d111e710ed0ec507ee | [
"MIT"
] | null | null | null | /*
Secret Salsa
Matthew Carlin
Copyright 2019
*/
#include "honey.h"
#include <string>
#include <array>
using namespace Honey;
using namespace std;
position player_position;
int step_width;
float frame_delay;
int current_frame;
bool quit = false;
void initialize() {
player_position = {
hot_config.get... | 16.989474 | 74 | 0.627633 | bugsbycarlin |
18ae5a2da6dfcf3eff7523efdd669f7314a3dc93 | 8,356 | cpp | C++ | framework/imp/sys/common/ByteBuffer.cpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 6 | 2022-03-24T15:40:03.000Z | 2022-03-30T09:40:20.000Z | framework/imp/sys/common/ByteBuffer.cpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 7 | 2022-03-24T18:53:52.000Z | 2022-03-30T10:15:50.000Z | framework/imp/sys/common/ByteBuffer.cpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 1 | 2022-03-20T21:22:09.000Z | 2022-03-20T21:22:09.000Z | #include "api/sys/common/ByteBuffer.hpp"
#include "api/sys/trace/Trace.hpp"
#define CLASS_ABBR "B_BUFFER"
using namespace carpc;
ByteBuffer::ByteBuffer( const size_t capacity )
{
if( true == allocate( capacity ) )
fill( );
}
ByteBuffer::ByteBuffer( const void* p_buffer, const size_t size )
{
if( fal... | 23.275766 | 126 | 0.61034 | dterletskiy |
18b16a73f45a3fcb4f32c53f2652ad9362df7854 | 7,889 | hpp | C++ | src/serac/physics/utilities/functional/boundary_integral.hpp | LLNL/serac | 7fe0c7fa82cff1a7eea65f58ae2cae2e52c01e1a | [
"BSD-3-Clause"
] | 64 | 2020-02-24T21:57:43.000Z | 2022-03-17T20:48:40.000Z | src/serac/physics/utilities/functional/boundary_integral.hpp | LLNL/serac | 7fe0c7fa82cff1a7eea65f58ae2cae2e52c01e1a | [
"BSD-3-Clause"
] | 615 | 2020-02-24T22:31:14.000Z | 2022-03-31T23:50:10.000Z | src/serac/physics/utilities/functional/boundary_integral.hpp | LLNL/serac | 7fe0c7fa82cff1a7eea65f58ae2cae2e52c01e1a | [
"BSD-3-Clause"
] | 16 | 2020-04-01T04:55:18.000Z | 2022-03-07T19:32:44.000Z | // Copyright (c) 2019-2021, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
/**
* @file boundary_integral.hpp
*
* @brief This file defines a class, BoundaryIntegral, for integrating q-functi... | 44.570621 | 120 | 0.694131 | LLNL |
18b624c1e5950224ef77b44e0e041667b8d75fe3 | 5,707 | cc | C++ | KV_Store_Engine_TaurusDB_Race_stage2/src/kv_service/KeyFile.cc | chenshuaihao/KV_Store_Engine_TaurusDB_Race | b025879e5aa827800919354b56c474639ec34b62 | [
"MIT"
] | 11 | 2019-08-21T04:35:36.000Z | 2021-07-13T02:11:21.000Z | KV_Store_Engine_TaurusDB_Race_stage2/src/kv_service/KeyFile.cc | chenshuaihao/KV_Store_Engine_TaurusDB_Race | b025879e5aa827800919354b56c474639ec34b62 | [
"MIT"
] | null | null | null | KV_Store_Engine_TaurusDB_Race_stage2/src/kv_service/KeyFile.cc | chenshuaihao/KV_Store_Engine_TaurusDB_Race | b025879e5aa827800919354b56c474639ec34b62 | [
"MIT"
] | 1 | 2020-03-30T07:39:53.000Z | 2020-03-30T07:39:53.000Z |
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <sys/types.h>
#include <set>
#include <map>
#include <unordered_map>
#include <sparsepp/spp.h>
#include <thread>
#include <iostream>
#include <sstream>
#include <string>
#include <exception>
#include <chrono>
#include "utils.h"
#include "kv_string.h... | 31.882682 | 127 | 0.591204 | chenshuaihao |
18ba6a1e22a6c8cd3194e2c86243e21e1b8b2e42 | 4,981 | cpp | C++ | bootlinux.cpp | Risca/biffboot | 63df31c91fcae7a00b5245e357acee89bb3be46b | [
"Unlicense"
] | null | null | null | bootlinux.cpp | Risca/biffboot | 63df31c91fcae7a00b5245e357acee89bb3be46b | [
"Unlicense"
] | 1 | 2021-11-22T22:57:18.000Z | 2021-12-14T12:39:21.000Z | bootlinux.cpp | Risca/biffboot | 63df31c91fcae7a00b5245e357acee89bb3be46b | [
"Unlicense"
] | 1 | 2021-11-28T00:24:51.000Z | 2021-11-28T00:24:51.000Z |
#include <stdlib.h>
#include <stdio.h>
#include "iolib.h"
#include "bootlinux.h"
#include <string.h>
//#include "LzmaDec.h"
#include "flash.h"
#include "flashmap.h"
#include "config.h"
#include "mmc.h"
#include "assem.h"
// Defines for the linux loader
#define SETUP_SIZE_OFF 497
#define SECTSIZE 512
#define... | 26.924324 | 81 | 0.64726 | Risca |
18bc87786c4905941d79352bf2755a679164a3e0 | 2,072 | hpp | C++ | lib/parser.hpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | 7 | 2019-04-09T16:25:49.000Z | 2021-12-07T10:29:52.000Z | lib/parser.hpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | null | null | null | lib/parser.hpp | RickAi/csci5570 | 2814c0a6bf608c73bf81d015d13e63443470e457 | [
"Apache-2.0"
] | 4 | 2019-08-07T07:43:27.000Z | 2021-05-21T07:54:14.000Z | #pragma once
#include "boost/utility/string_ref.hpp"
#include <base/magic.hpp>
namespace minips {
namespace lib {
template<typename Sample>
class Parser {
public:
/**
* Parsing logic for one line in file
*
* @param line a line read from ... | 34.533333 | 111 | 0.441602 | RickAi |
18bd8329ff859f91d153112c30c047d8e0b27648 | 32,359 | cc | C++ | src/LogCleaner.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | 1 | 2016-01-18T12:41:28.000Z | 2016-01-18T12:41:28.000Z | src/LogCleaner.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | null | null | null | src/LogCleaner.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | null | null | null | /* Copyright (c) 2010-2013 Stanford University
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | 37.891101 | 83 | 0.665719 | taschik |
18c778b01f3f7a81a4a3286822b0eded2795264d | 9,718 | hpp | C++ | include/malbolge/virtual_cpu.hpp | cmannett85/malbolge | a3216af7b029d1b942af1dd3678d43fbb5d3c017 | [
"MIT"
] | 1 | 2021-12-13T12:34:27.000Z | 2021-12-13T12:34:27.000Z | include/malbolge/virtual_cpu.hpp | cmannett85/malbolge | a3216af7b029d1b942af1dd3678d43fbb5d3c017 | [
"MIT"
] | 62 | 2020-07-17T07:33:00.000Z | 2021-05-22T15:30:20.000Z | include/malbolge/virtual_cpu.hpp | cmannett85/malbolge | a3216af7b029d1b942af1dd3678d43fbb5d3c017 | [
"MIT"
] | 1 | 2021-12-13T12:34:30.000Z | 2021-12-13T12:34:30.000Z | /* Cam Mannett 2020
*
* See LICENSE file
*/
#pragma once
#include "malbolge/utility/signal.hpp"
#include "malbolge/virtual_memory.hpp"
namespace malbolge
{
/** Represents a virtual CPU.
*
* This class can not be copied, but can be moved.
*/
class virtual_cpu
{
public:
/** Execution state.
*/
enum ... | 36.261194 | 87 | 0.666392 | cmannett85 |
18c8052bf09362fa35b1e958280afa0aceb9f5b0 | 764 | hh | C++ | dev/g++/projects/embedded/security/include/sha_algorithms.hh | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/embedded/security/include/sha_algorithms.hh | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/embedded/security/include/sha_algorithms.hh | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | 1 | 2017-01-27T12:53:50.000Z | 2017-01-27T12:53:50.000Z | /*!
* \file sha_algorithms.hh
* \brief Header file for the lightweight security library.
* \author garciay.yann@gmail.com
* \copyright Copyright (c) 2017 ygarcia. All rights reserved
* \license This project is released under the MIT License
* \version 0.1
*/
#pragma once
/*! \namespace security
... | 28.296296 | 63 | 0.663613 | YannGarcia |
18ca4de1028c085073e30a11718a7ca5dd3876d9 | 1,333 | cpp | C++ | WOJ/#/woj1072.cpp | lijiansong/ACM-Algorithms | f7014f2785390870627885bd3f0b3526115f5894 | [
"MIT"
] | 1 | 2021-01-03T09:56:34.000Z | 2021-01-03T09:56:34.000Z | WOJ/#/woj1072.cpp | lijiansong/ACM-Algorithms | f7014f2785390870627885bd3f0b3526115f5894 | [
"MIT"
] | null | null | null | WOJ/#/woj1072.cpp | lijiansong/ACM-Algorithms | f7014f2785390870627885bd3f0b3526115f5894 | [
"MIT"
] | 1 | 2017-12-30T06:14:51.000Z | 2017-12-30T06:14:51.000Z | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <time.h>
using namespace std;
const int maxint = -1u>>1;
#define MAX 10001
int N,p,k;
int dp[MAX];
int T[MAX];
t... | 21.15873 | 61 | 0.446362 | lijiansong |
18cc84ea63bf272b7b3968240e62a15abf619c8a | 1,131 | cpp | C++ | src/Interface/Handling/JSONAPI/JsonAPIErrorBuilder.cpp | edson-a-soares/poco_restful_resource_model | dc9794d619963c6ec990e1764df0de4c72e34aa0 | [
"Apache-2.0"
] | 59 | 2018-01-24T08:19:58.000Z | 2022-02-10T09:20:46.000Z | src/Interface/Handling/JSONAPI/JsonAPIErrorBuilder.cpp | edson-a-soares/poco_restful_resource_model | dc9794d619963c6ec990e1764df0de4c72e34aa0 | [
"Apache-2.0"
] | 1 | 2021-11-11T10:46:18.000Z | 2021-11-11T10:46:18.000Z | src/Interface/Handling/JSONAPI/JsonAPIErrorBuilder.cpp | edson-a-soares/poco_restful_resource_model | dc9794d619963c6ec990e1764df0de4c72e34aa0 | [
"Apache-2.0"
] | 29 | 2018-04-18T13:03:12.000Z | 2022-03-23T12:55:00.000Z | #include "Poco/JSON/Object.h"
#include "Interface/Handling/JSONAPI/JsonAPIErrorBuilder.h"
namespace Interface {
namespace Handling {
JsonAPIErrorBuilder::JsonAPIErrorBuilder(const std::string & url)
: host(url),
commonError(),
rootJsonStructure(),
errorsCollection(),
... | 23.5625 | 69 | 0.650752 | edson-a-soares |
18cc9dbab4d69abd7ef7072287689b4a1f3f1342 | 5,112 | cpp | C++ | smtbx/refinement/constraints/boost_python/same_group.cpp | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 155 | 2016-11-23T12:52:16.000Z | 2022-03-31T15:35:44.000Z | smtbx/refinement/constraints/boost_python/same_group.cpp | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 590 | 2016-12-10T11:31:18.000Z | 2022-03-30T23:10:09.000Z | smtbx/refinement/constraints/boost_python/same_group.cpp | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | 115 | 2016-11-15T08:17:28.000Z | 2022-02-09T15:30:14.000Z | #include <boost/python/class.hpp>
#include <boost/python/implicit.hpp>
#include <scitbx/boost_python/container_conversions.h>
#include <smtbx/refinement/constraints/same_group.h>
#include <smtbx/refinement/constraints/proxy.h>
namespace smtbx { namespace refinement { namespace constraints {
namespace boost_python {... | 33.411765 | 79 | 0.544405 | rimmartin |
18cd127a29a1d3773239a5ffb2432d85d8bcb02b | 8,028 | cpp | C++ | main/gui/LvDisplayDriver.cpp | enelson1001/M5StackDemo01 | 0ed654406b01e2575facaff522289fcaf555fa91 | [
"MIT"
] | null | null | null | main/gui/LvDisplayDriver.cpp | enelson1001/M5StackDemo01 | 0ed654406b01e2575facaff522289fcaf555fa91 | [
"MIT"
] | null | null | null | main/gui/LvDisplayDriver.cpp | enelson1001/M5StackDemo01 | 0ed654406b01e2575facaff522289fcaf555fa91 | [
"MIT"
] | null | null | null | /****************************************************************************************
* LvDisplayDriver.h - A LittlevGL Display Driver for ILI9341
* Created on Dec. 03, 2019
* Copyright (c) 2019 Ed Nelson (https://github.com/enelson1001)
* Licensed under MIT License (see LICENSE file)
*
* Derivative Works
* ... | 40.341709 | 118 | 0.565272 | enelson1001 |
18d1fa45078e1f1e037d2d2b84088bd5c7ff7016 | 264 | cpp | C++ | compiler/AST/Operators/Standard/SubtractionOperatorNode.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | 8 | 2015-01-02T21:40:55.000Z | 2016-05-12T10:48:09.000Z | compiler/AST/Operators/Standard/SubtractionOperatorNode.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | compiler/AST/Operators/Standard/SubtractionOperatorNode.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | #include "SubtractionOperatorNode.h"
namespace Three {
std::string SubtractionOperatorNode::nodeName() const {
return "Subtraction Operator";
}
void SubtractionOperatorNode::accept(ASTVisitor& visitor) {
visitor.visit(*this);
}
}
| 22 | 63 | 0.685606 | mattmassicotte |
18d479e04481497d84db0ebcade886391c34a155 | 2,801 | cpp | C++ | modules/boost/simd/base/unit/boolean/scalar/seldec.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/boost/simd/base/unit/boolean/scalar/seldec.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/boost/simd/base/unit/boolean/scalar/seldec.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 41.80597 | 98 | 0.650125 | psiha |
18d5fbbcb5bc408e579b72d5dc4e21c2f8a7a2e1 | 898 | hpp | C++ | pom/maths/operation/noise/gradient_2_value.hpp | e-Sharp/pom_gen_proc | cef7a57620d52631c1e94f71c71e0455f9e1b653 | [
"MIT"
] | null | null | null | pom/maths/operation/noise/gradient_2_value.hpp | e-Sharp/pom_gen_proc | cef7a57620d52631c1e94f71c71e0455f9e1b653 | [
"MIT"
] | null | null | null | pom/maths/operation/noise/gradient_2_value.hpp | e-Sharp/pom_gen_proc | cef7a57620d52631c1e94f71c71e0455f9e1b653 | [
"MIT"
] | null | null | null | #pragma once
#include "gradient_2.hpp"
#include "pom/maths/operation/cubic_step.hpp"
#include "pom/maths/operation/floor.hpp"
#include "pom/maths/operation/fract.hpp"
#include "pom/maths/operation/lerp.hpp"
#include "pom/maths/vector/all.hpp"
namespace pom::maths {
template<typename N> constexpr
auto value(const gr... | 26.411765 | 69 | 0.615813 | e-Sharp |
18de0b122c448eeb1dfa08698cefb228782d2d7f | 1,281 | cpp | C++ | 1090 - Trailing Zeroes (II).cpp | BRAINIAC2677/Lightoj-Solutions | e75f56b2cb4ef8f7e00de39fed447b1b37922427 | [
"MIT"
] | null | null | null | 1090 - Trailing Zeroes (II).cpp | BRAINIAC2677/Lightoj-Solutions | e75f56b2cb4ef8f7e00de39fed447b1b37922427 | [
"MIT"
] | null | null | null | 1090 - Trailing Zeroes (II).cpp | BRAINIAC2677/Lightoj-Solutions | e75f56b2cb4ef8f7e00de39fed447b1b37922427 | [
"MIT"
] | null | null | null | /*BISMILLAH
THE WHITE WOLF
NO DREAM IS TOO BIG AND NO DREAMER IS TOO SMALL*/
#include<bits/stdc++.h>
using namespace std;
#define io ios_base::sync_with_stdio(false)
#define ll long long
#define ull unsigned long long
#define vi vector<int>
#define vll vector<long long>
#define pb push_back
#define mod 1000000007
#... | 17.547945 | 57 | 0.440281 | BRAINIAC2677 |
18df442e5a42c7bc562ecfdb26050d84f9b570f6 | 9,441 | cpp | C++ | src/mame/drivers/miniframe.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/miniframe.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/miniframe.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:GPL-2.0+
// copyright-holders:Dirk Best, R. Belmont
/***************************************************************************
Convergent Miniframe
Preliminary driver by R. Belmont based on unixpc.cpp by Dirk Best & R. Belmont
*********************************************************************... | 33.478723 | 156 | 0.6297 | Robbbert |
18e2ba5b4b8151f01eb041d30255f0c1163bf2a9 | 1,835 | hxx | C++ | opencascade/TopOpeBRep_WPointInter.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/TopOpeBRep_WPointInter.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/TopOpeBRep_WPointInter.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 1993-11-10
// Created by: Jean Yves LEBEY
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-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 GN... | 22.378049 | 117 | 0.775477 | valgur |
18e2d45e5d9bbd28f4cb0a08a12d5c82384b3fc8 | 7,154 | hpp | C++ | src/GvmClusterPairs.hpp | mdejong/GvmCpp | 827130a145164ae610416d177bfc091246174a60 | [
"Apache-2.0"
] | 1 | 2021-07-14T19:59:59.000Z | 2021-07-14T19:59:59.000Z | src/GvmClusterPairs.hpp | mdejong/GvmCpp | 827130a145164ae610416d177bfc091246174a60 | [
"Apache-2.0"
] | null | null | null | src/GvmClusterPairs.hpp | mdejong/GvmCpp | 827130a145164ae610416d177bfc091246174a60 | [
"Apache-2.0"
] | 1 | 2017-11-10T17:05:58.000Z | 2017-11-10T17:05:58.000Z | //
// GvmClusterPairs.hpp
// GvmCpp
//
// Created by Mo DeJong on 8/14/15.
//
// 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
//
// Maint... | 25.368794 | 134 | 0.549623 | mdejong |