hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e63c8f5b6f87a61e6895cabbfb49dbf1c0053e8 | 1,605 | cpp | C++ | Libraries/RobsJuceModules/rosic/modulators/rosic_DecayEnvelope.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Libraries/RobsJuceModules/rosic/modulators/rosic_DecayEnvelope.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Libraries/RobsJuceModules/rosic/modulators/rosic_DecayEnvelope.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | //#include "rosic_DecayEnvelope.h"
//using namespace rosic;
//-------------------------------------------------------------------------------------------------
// construction/destruction:
DecayEnvelope::DecayEnvelope()
{
c = 1.0;
y = 1.0;
yInit = 1.0;
tau = 200.0; ... | 20.576923 | 99 | 0.478505 | RobinSchmidt |
7e6595418fc17ae2f1b95b61f9e2afe099948280 | 5,683 | cpp | C++ | src/dialogs/options_dialog.cpp | johannphilippe/Tracker4 | e2eb6700bb8827dc8181aba889a78760f21a98f8 | [
"MIT"
] | null | null | null | src/dialogs/options_dialog.cpp | johannphilippe/Tracker4 | e2eb6700bb8827dc8181aba889a78760f21a98f8 | [
"MIT"
] | 1 | 2021-12-28T10:47:47.000Z | 2021-12-28T18:54:46.000Z | src/dialogs/options_dialog.cpp | johannphilippe/Tracker4 | e2eb6700bb8827dc8181aba889a78760f21a98f8 | [
"MIT"
] | null | null | null | #include<dialogs/options_dialog.h>
auto option_item::make_view()
{
auto tog_enable = plain_toggle_icon_button( icons::cancel, icons::ok, 1.0);
tog_enable.value(enabled);
tog_enable.on_click = [&](bool b)
{
enabled = b;
};
auto tb = input_box("Write a Csound option");
tb.second->set... | 28.557789 | 109 | 0.56801 | johannphilippe |
7e6913bf00ad1968b5095d0623ba0f228991ba57 | 5,426 | cpp | C++ | imp_bridge_ros/src/ros_bridge.cpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 30 | 2016-09-27T07:41:28.000Z | 2021-12-03T20:44:28.000Z | imp_bridge_ros/src/ros_bridge.cpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 1 | 2018-12-18T15:53:06.000Z | 2018-12-21T03:10:06.000Z | imp_bridge_ros/src/ros_bridge.cpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 12 | 2016-11-05T07:51:29.000Z | 2020-07-13T02:26:08.000Z | // Copyright (c) 2015-2016, ETH Zurich, Wyss Zurich, Zurich Eye
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright
// ... | 33.085366 | 97 | 0.661629 | rockenbf |
7e69362c87c64e6c8089a62c817bdaf0067ced2c | 2,489 | cpp | C++ | Source/Samples/99_Benchmark/Benchmark03_MoleculeLogic.cpp | pat2nav/Urho3D | cc0346f39bd365782d825e2e337a1f33bb225308 | [
"MIT"
] | null | null | null | Source/Samples/99_Benchmark/Benchmark03_MoleculeLogic.cpp | pat2nav/Urho3D | cc0346f39bd365782d825e2e337a1f33bb225308 | [
"MIT"
] | null | null | null | Source/Samples/99_Benchmark/Benchmark03_MoleculeLogic.cpp | pat2nav/Urho3D | cc0346f39bd365782d825e2e337a1f33bb225308 | [
"MIT"
] | null | null | null | // Copyright (c) 2008-2022 the Urho3D project
// License: MIT
#include "Benchmark03_MoleculeLogic.h"
#include <Urho3D/Scene/Scene.h>
#include <Urho3D/DebugNew.h>
using namespace Urho3D;
Benchmark03_MoleculeLogic::Benchmark03_MoleculeLogic(Context* context)
: LogicComponent(context)
, moleculeType_(0)
{
... | 29.630952 | 116 | 0.688228 | pat2nav |
7e69c58fe619dda520c796e42f83119eae54948b | 1,409 | cpp | C++ | safe_drive/src/safe_drive_node.cpp | RafalStaszak/autonomous-real | e45214ed323d9627de2c5f1f4188e330d65dd202 | [
"MIT"
] | null | null | null | safe_drive/src/safe_drive_node.cpp | RafalStaszak/autonomous-real | e45214ed323d9627de2c5f1f4188e330d65dd202 | [
"MIT"
] | null | null | null | safe_drive/src/safe_drive_node.cpp | RafalStaszak/autonomous-real | e45214ed323d9627de2c5f1f4188e330d65dd202 | [
"MIT"
] | 1 | 2018-06-05T18:08:29.000Z | 2018-06-05T18:08:29.000Z | #include <ros/ros.h>
#include <geometry_msgs/Twist.h>
class Safety
{
public:
Safety();
private:
void Callback(const geometry_msgs::Twist::ConstPtr& move);
ros::NodeHandle n;
ros::Publisher stop_pub;
ros::Subscriber twist_sub;
ros::Time current_time, last_time;
float czas;
};
Safety::Sa... | 24.719298 | 133 | 0.660043 | RafalStaszak |
7e69f826c471f129bcffa9d0d121ec25b7803a03 | 22,550 | cpp | C++ | zinew/extremephysics-2-2/extremephysics-2-2/c++/ExtremePhysics 2.2 DLL/gm_shape.cpp | Bitl/Game-Maker-Projects | 99f3eabcae8ef624f39f11715ebba327631dd78c | [
"MIT"
] | null | null | null | zinew/extremephysics-2-2/extremephysics-2-2/c++/ExtremePhysics 2.2 DLL/gm_shape.cpp | Bitl/Game-Maker-Projects | 99f3eabcae8ef624f39f11715ebba327631dd78c | [
"MIT"
] | null | null | null | zinew/extremephysics-2-2/extremephysics-2-2/c++/ExtremePhysics 2.2 DLL/gm_shape.cpp | Bitl/Game-Maker-Projects | 99f3eabcae8ef624f39f11715ebba327631dd78c | [
"MIT"
] | null | null | null | /*
* Copyright 2009-2011 Maarten Baert
* maarten-baert@hotmail.com
* http://www.maartenbaert.be/
*
* This file is part of ExtremePhysics.
*
* ExtremePhysics 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 Softwar... | 46.303901 | 191 | 0.732639 | Bitl |
7e6fc41ce5a29f91f9dbed457bc49f66d346d4b9 | 635 | hpp | C++ | requester/test/mock_request.hpp | amboar/pldm | d0405c3555427c03b231c8d52958f8689b3fa114 | [
"Apache-2.0"
] | null | null | null | requester/test/mock_request.hpp | amboar/pldm | d0405c3555427c03b231c8d52958f8689b3fa114 | [
"Apache-2.0"
] | null | null | null | requester/test/mock_request.hpp | amboar/pldm | d0405c3555427c03b231c8d52958f8689b3fa114 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "requester/request.hpp"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace pldm
{
namespace requester
{
class MockRequest : public RequestRetryTimer
{
public:
MockRequest(int /*fd*/, mctp_eid_t /*eid*/, sdeventplus::Event& event,
pldm::Request&& /*requestMsg*/, ... | 21.166667 | 74 | 0.651969 | amboar |
7e752c5be62ec32fe6f9b85f1f7e1f8a6add85fb | 1,730 | cpp | C++ | 1199 Round #576 (Div.2)/F - Rectangle Painting 1.cpp | Jatin-Nagpal/CF-Complete | 2381ab746982676db3610d66ab33d4177f2d555f | [
"MIT"
] | 1 | 2019-08-17T05:35:30.000Z | 2019-08-17T05:35:30.000Z | 1199 Round #576 (Div.2)/F - Rectangle Painting 1.cpp | Jatin-Nagpal/CF-Complete | 2381ab746982676db3610d66ab33d4177f2d555f | [
"MIT"
] | null | null | null | 1199 Round #576 (Div.2)/F - Rectangle Painting 1.cpp | Jatin-Nagpal/CF-Complete | 2381ab746982676db3610d66ab33d4177f2d555f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ff first
#define ss second
using namespace std;
#define MP make_pair
#define PB push_back
// #define ll long long
#define int long long
#define f(i,x,n) for(int i=x;i<n;i++)
#define ld long double
#define mod 1000000007
int a[51][51];
string s[51];
int n,ans;
int dp[51][51][51][51];
int... | 20.116279 | 77 | 0.573988 | Jatin-Nagpal |
7e7791ace9851d83f2066fe1ffb8462b8af17cb0 | 1,599 | hpp | C++ | src/include/cpp_playground/delayed_call.hpp | rxcompile/cpp_playground | 63cd54f18e15415f779d9a6d08c5dac8ba33e3be | [
"MIT"
] | null | null | null | src/include/cpp_playground/delayed_call.hpp | rxcompile/cpp_playground | 63cd54f18e15415f779d9a6d08c5dac8ba33e3be | [
"MIT"
] | null | null | null | src/include/cpp_playground/delayed_call.hpp | rxcompile/cpp_playground | 63cd54f18e15415f779d9a6d08c5dac8ba33e3be | [
"MIT"
] | null | null | null | #pragma once
#include "cpp_playground/python_container.hpp"
#include "cpp_playground/function_traits.hpp"
#include <vector>
#include <functional>
namespace CppTest
{
template <typename TRet, typename... TArgs>
class DelayedCall
{
public:
DelayedCall(std::function<TRet(TArgs...)> fn, Container &data)
: ... | 24.984375 | 118 | 0.627892 | rxcompile |
7e7bf634c4566a32456aefbb6d5e6ac06ea721cf | 683 | cpp | C++ | mainwindow.cpp | stweise/rico-cluster-qt | 7b712319de1b8feb53172b089867038c977c96d5 | [
"BSD-3-Clause"
] | 1 | 2020-07-12T19:33:25.000Z | 2020-07-12T19:33:25.000Z | mainwindow.cpp | stweise/rico-qt | 7b712319de1b8feb53172b089867038c977c96d5 | [
"BSD-3-Clause"
] | 1 | 2020-11-19T15:56:23.000Z | 2020-11-29T08:54:29.000Z | mainwindow.cpp | stweise/rico-qt | 7b712319de1b8feb53172b089867038c977c96d5 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
#include "mainwindow.h"
#include "./ui_mainwindow.h"
#include "graphicsscene.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent), ui(new Ui::MainWindow) {
ui->setupUi(this);
scene = new GraphicsScene(this);
ui->graphicsView->setScene(scene);
}
MainWindo... | 27.32 | 70 | 0.727672 | stweise |
7e7c2a02776b994cb11e1ce65f4f15343f1cbfe1 | 35,191 | cpp | C++ | src/VAC/View3D.cpp | CELLINKAB/vpaint | 83f66645407a1467a450bd42bc3d62038bf7d11a | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-09-10T15:10:30.000Z | 2021-09-10T15:10:30.000Z | src/VAC/View3D.cpp | CELLINKAB/vpaint | 83f66645407a1467a450bd42bc3d62038bf7d11a | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2021-11-24T11:21:05.000Z | 2021-11-24T11:21:05.000Z | src/VAC/View3D.cpp | CELLINKAB/vpaint | 83f66645407a1467a450bd42bc3d62038bf7d11a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Copyright (C) 2012-2019 The VPaint Developers.
// See the COPYRIGHT file at the top-level directory of this distribution
// and at https://github.com/dalboris/vpaint/blob/master/COPYRIGHT
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the ... | 32.554117 | 124 | 0.600466 | CELLINKAB |
7e7c5dddb92ae7751e8674adbc992a91043ad3ab | 2,905 | cc | C++ | test/persist_alloc_read.cc | moksha11/nvmalloc | 7ea255d09b1aed3acab8344be6904464aab8ba11 | [
"BSD-3-Clause"
] | 2 | 2015-06-11T17:50:53.000Z | 2015-07-04T08:24:50.000Z | test/persist_alloc_read.cc | moksha11/nvmalloc | 7ea255d09b1aed3acab8344be6904464aab8ba11 | [
"BSD-3-Clause"
] | null | null | null | test/persist_alloc_read.cc | moksha11/nvmalloc | 7ea255d09b1aed3acab8344be6904464aab8ba11 | [
"BSD-3-Clause"
] | null | null | null |
/*
* malloc-test
* cel - Thu Jan 7 15:49:16 EST 1999
*
* Benchmark libc's malloc, and check how well it
* can handle malloc requests from multiple threads.
*
* Syntax:
* malloc-test [ size [ iterations [ thread count ]]]
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unis... | 20.75 | 71 | 0.655422 | moksha11 |
7e7edbfb94cbfde933bbb33f93444919b6348b2f | 7,814 | hpp | C++ | src/ibeo_8l_sdk/src/ibeosdk/datablocks/snippets/ObjectEcu.hpp | tomcamp0228/ibeo_ros2 | ff56c88d6e82440ae3ce4de08f2745707c354604 | [
"MIT"
] | 1 | 2020-06-19T11:01:49.000Z | 2020-06-19T11:01:49.000Z | include/ibeosdk/datablocks/snippets/ObjectEcu.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/datablocks/snippets/ObjectEcu.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 2 | 2020-06-19T11:01:48.000Z | 2020-10-29T03:07:14.000Z | //======================================================================
/*! \file ObjectEcu.hpp
*
* \copydoc Copyright
* \author Mario Brumm (mb)
* \date Apr 26, 2012
*///-------------------------------------------------------------------
#ifndef IBEOSDK_OBJECTECU_HPP_SEEN
#define IBEOSDK_OBJECTECU_HPP_SEEN
//=... | 41.343915 | 139 | 0.743665 | tomcamp0228 |
7e8c99a09f05faf22d17891c7bfe7bc5f4fb7178 | 3,017 | cc | C++ | src/Core/GeometryPrimitives/OrientedBBox.cc | kimjohn1/SCIRun | 62ae6cb632100371831530c755ef0b133fb5c978 | [
"MIT"
] | 92 | 2015-02-09T22:42:11.000Z | 2022-03-25T09:14:50.000Z | src/Core/GeometryPrimitives/OrientedBBox.cc | kimjohn1/SCIRun | 62ae6cb632100371831530c755ef0b133fb5c978 | [
"MIT"
] | 1,618 | 2015-01-05T19:39:13.000Z | 2022-03-27T20:28:45.000Z | src/Core/GeometryPrimitives/OrientedBBox.cc | kimjohn1/SCIRun | 62ae6cb632100371831530c755ef0b133fb5c978 | [
"MIT"
] | 64 | 2015-02-20T17:51:23.000Z | 2021-11-19T07:08:08.000Z | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the... | 29.291262 | 90 | 0.698044 | kimjohn1 |
7e9041ab19b10b9bdde25fc7195d0a9af2350a32 | 12,514 | cpp | C++ | stdlib/core.cpp | Oj18/Ethereal | 16a0a167693c27615e5c63044f1c38b5c8d863b2 | [
"BSD-3-Clause"
] | null | null | null | stdlib/core.cpp | Oj18/Ethereal | 16a0a167693c27615e5c63044f1c38b5c8d863b2 | [
"BSD-3-Clause"
] | null | null | null | stdlib/core.cpp | Oj18/Ethereal | 16a0a167693c27615e5c63044f1c38b5c8d863b2 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2019, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#include "../src/VM/Core.hpp"
#include "Core/Int.hpp"
#inclu... | 48.503876 | 136 | 0.464839 | Oj18 |
7e9fe639bcc6cb8a18084be9f50fccce240f8070 | 384 | cpp | C++ | osu!gen/src/osu!gen.cpp | cody-bui/osu--aim-trainer | 7525bf271cf565bf83795a9178e32319c8d06629 | [
"MIT"
] | 1 | 2019-12-29T08:14:42.000Z | 2019-12-29T08:14:42.000Z | osu!gen/src/osu!gen.cpp | cody-bui/osu-aim-trainer | 7525bf271cf565bf83795a9178e32319c8d06629 | [
"MIT"
] | 2 | 2020-02-05T03:57:54.000Z | 2020-02-05T11:19:52.000Z | osu!gen/src/osu!gen.cpp | cody-bui/Echo | 7525bf271cf565bf83795a9178e32319c8d06629 | [
"MIT"
] | null | null | null | #include "osu!gen.h"
#include <Gen/GenCircle.h>
OsuGen::Program::Program()
{
patterns = new EchoGen::PatternList("PatternList.txt");
int index = 0;
std::ofstream map("map.txt");
std::vector<int> beat = { 0,500,1000 };
GenCircle gc;
gc.Gen(patterns, beat, index, map);
}
void OsuGen::Program::Run... | 16.695652 | 57 | 0.625 | cody-bui |
7ea6a0a4f44f380c21cb1a0b39ec96603ceb4061 | 4,149 | cpp | C++ | External/RendererToolkit/Assimp/AssimpUnityBuild5.cpp | cofenberg/unrimp | 90310657f106eb83f3a9688329b78619255a1042 | [
"MIT"
] | 187 | 2015-11-02T21:27:57.000Z | 2022-02-17T21:39:17.000Z | External/RendererToolkit/Assimp/AssimpUnityBuild5.cpp | cofenberg/unrimp | 90310657f106eb83f3a9688329b78619255a1042 | [
"MIT"
] | null | null | null | External/RendererToolkit/Assimp/AssimpUnityBuild5.cpp | cofenberg/unrimp | 90310657f106eb83f3a9688329b78619255a1042 | [
"MIT"
] | 20 | 2015-11-04T19:17:01.000Z | 2021-11-18T11:23:25.000Z | /*********************************************************\
* Copyright (c) 2012-2021 The Unrimp Team
*
* 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 wit... | 54.592105 | 177 | 0.772957 | cofenberg |
7eab5869e8eedc903422a73a34ee3e766d9f2480 | 1,305 | cpp | C++ | C++/LeetCode/0051.cpp | Nimesh-Srivastava/DSA | db33aa138f0df8ab6015d2e8ec3ddde1c6838848 | [
"MIT"
] | 4 | 2021-08-28T19:16:50.000Z | 2022-03-04T19:46:31.000Z | C++/LeetCode/0051.cpp | Nimesh-Srivastava/DSA | db33aa138f0df8ab6015d2e8ec3ddde1c6838848 | [
"MIT"
] | 8 | 2021-10-29T19:10:51.000Z | 2021-11-03T12:38:00.000Z | C++/LeetCode/0051.cpp | Nimesh-Srivastava/DSA | db33aa138f0df8ab6015d2e8ec3ddde1c6838848 | [
"MIT"
] | 4 | 2021-09-06T05:53:07.000Z | 2021-12-24T10:31:40.000Z | class Solution {
vector<vector<string>> ans;
public:
bool isValid(vector<string>& board, int row, int col){
//column checking
for(int i = row; i >= 0; i--)
if(board[i][col] == 'Q')
return false;
//left diagonal
for(int i = r... | 24.166667 | 71 | 0.376245 | Nimesh-Srivastava |
7eb0fef8f15e20e9a813a0d88dd2a892d125e446 | 528 | cc | C++ | Dates/src/tools.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-SergioPerera | 58b6d9fac4667fead018dc94ccbfbefa1c59a8c2 | [
"MIT"
] | null | null | null | Dates/src/tools.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-SergioPerera | 58b6d9fac4667fead018dc94ccbfbefa1c59a8c2 | [
"MIT"
] | null | null | null | Dates/src/tools.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-SergioPerera | 58b6d9fac4667fead018dc94ccbfbefa1c59a8c2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <tools.h>
void Usage (int argc, char *argv[]){
if ( argc < 6 ){
std::cout << argv[0] << ": Falta un parámetro" << std::endl;
std::cout << "Pruebe " << argv[0] << " --help para más información" << std::endl;
}
std::string kHelpText = "Este programa necesita que se ... | 20.307692 | 122 | 0.592803 | ULL-ESIT-IB-2020-2021 |
7eb32dc621f8a1736557b2987e0fe669dd24881b | 130 | cpp | C++ | Code/Source/GPIO/RPI4Chip.cpp | MrAviator93/GPIO | 71b645eebad3cd5c8558c440ddb170f4292cc34b | [
"Unlicense"
] | null | null | null | Code/Source/GPIO/RPI4Chip.cpp | MrAviator93/GPIO | 71b645eebad3cd5c8558c440ddb170f4292cc34b | [
"Unlicense"
] | null | null | null | Code/Source/GPIO/RPI4Chip.cpp | MrAviator93/GPIO | 71b645eebad3cd5c8558c440ddb170f4292cc34b | [
"Unlicense"
] | null | null | null |
#include "RPI4Chip.hpp"
namespace GPIO
{
CRPI4GPIOChip::CRPI4GPIOChip()
: CGPIOChip( m_rpi4ChipName )
{ }
} // namespace GPIO
| 11.818182 | 30 | 0.715385 | MrAviator93 |
9d18f632cbd8454377cdc90cb567477f69e36ab6 | 465,649 | cpp | C++ | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__88.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__88.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__88.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VTestHarness.h for the primary calling header
#include "VTestHarness.h"
#include "VTestHarness__Syms.h"
#include "verilated_dpi.h"
VL_INLINE_OPT void VTestHarness::_sequent__TOP__5503(VTestHarness__Syms* __restrict vlSy... | 113.989963 | 269 | 0.623257 | vargandhi |
9d1deeadee0dd75c5add4869c1dbe93d8129be2c | 8,603 | cc | C++ | arcane/src/arcane/tests/accelerator/NumArrayUnitTest.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/tests/accelerator/NumArrayUnitTest.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/tests/accelerator/NumArrayUnitTest.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 28.676667 | 88 | 0.479019 | JeromeDuboisPro |
9d2eff61f24b80ed8d0f5f7686b16c04b779d508 | 6,377 | cc | C++ | node_modules/nodegit/src/transport.cc | jiumx60rus/grishyGhost | c56241304da11b9a1307c6261cca50f7546981b1 | [
"MIT"
] | null | null | null | node_modules/nodegit/src/transport.cc | jiumx60rus/grishyGhost | c56241304da11b9a1307c6261cca50f7546981b1 | [
"MIT"
] | null | null | null | node_modules/nodegit/src/transport.cc | jiumx60rus/grishyGhost | c56241304da11b9a1307c6261cca50f7546981b1 | [
"MIT"
] | null | null | null | // This is a generated file, modify: generate/templates/class_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
extern "C" {
#include <git2.h>
#include <git2/sys/transport.h>
}
#include "../include/functions/copy.h"
#include "../include/macros.h"
#include "../include/transpor... | 26.460581 | 141 | 0.66928 | jiumx60rus |
9d38b0b6f864491a141cb269625424204800d4a8 | 1,514 | cpp | C++ | Leetcode/Hashing/intersection-of-two-arrays-ii.cpp | susantabiswas/competitive_coding | 49163ecdc81b68f5c1bd90988cc0dfac34ad5a31 | [
"MIT"
] | 2 | 2021-04-29T14:44:17.000Z | 2021-10-01T17:33:22.000Z | Leetcode/Hashing/intersection-of-two-arrays-ii.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | null | null | null | Leetcode/Hashing/intersection-of-two-arrays-ii.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | 1 | 2021-10-01T17:33:29.000Z | 2021-10-01T17:33:29.000Z | /*
https://leetcode.com/problems/intersection-of-two-arrays-ii/submissions/
Idea is to create a hash table and store the frequency of all the
elements of the smaller length array. Then iterate through the longer
array and check in the hash table if the element exists. If it does, add to
the li... | 30.897959 | 80 | 0.541612 | susantabiswas |
9d39d38841fee2fca1d6b2aee890ec493d60d6d7 | 9,940 | cxx | C++ | src/adplug/core/dmo.cxx | CBke/audacious-plugins | f17617a38d8412ca30750775208733dc1287e122 | [
"BSD-3-Clause"
] | null | null | null | src/adplug/core/dmo.cxx | CBke/audacious-plugins | f17617a38d8412ca30750775208733dc1287e122 | [
"BSD-3-Clause"
] | null | null | null | src/adplug/core/dmo.cxx | CBke/audacious-plugins | f17617a38d8412ca30750775208733dc1287e122 | [
"BSD-3-Clause"
] | null | null | null | /*
Adplug - Replayer for many OPL2/OPL3 audio file formats.
Copyright (C) 1999 - 2004, 2006 Simon Peter, <dn.tlp@gmx.net>, et al.
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; eith... | 21.750547 | 80 | 0.544064 | CBke |
9d3a42fafeff22abbf2b799afd1fcdff573194b3 | 5,466 | cpp | C++ | unittests/test_mgpu_Hemm.cpp | brunowu/ChASE | 89649df6027cec70709f55d277b3625989e8cb3c | [
"BSD-3-Clause"
] | 4 | 2021-03-18T14:04:17.000Z | 2021-11-17T18:21:57.000Z | unittests/test_mgpu_Hemm.cpp | brunowu/ChASE | 89649df6027cec70709f55d277b3625989e8cb3c | [
"BSD-3-Clause"
] | null | null | null | unittests/test_mgpu_Hemm.cpp | brunowu/ChASE | 89649df6027cec70709f55d277b3625989e8cb3c | [
"BSD-3-Clause"
] | 3 | 2021-03-18T14:14:51.000Z | 2021-08-19T10:21:13.000Z | // This file is a part of the ChASE library.
// Copyright (c) 2015-2021, Simulation and Data Laboratory Quantum Materials,
// Forschungszentrum Juelich GmbH, Germany.
// All rights reserved.
// ChASE is licensed under the 3-clause BSD license (BSD 2.0).
// https://github.com/ChASE-library/ChASE/
/**
* The program tes... | 24.511211 | 140 | 0.60794 | brunowu |
9d3a471ea9f488055dad8efb9f7b323e0f5c5a4f | 3,996 | hpp | C++ | cpp-projects/base/utility/benchmark.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | null | null | null | cpp-projects/base/utility/benchmark.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | null | null | null | cpp-projects/base/utility/benchmark.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | 1 | 2021-07-06T14:47:41.000Z | 2021-07-06T14:47:41.000Z |
/*******************************************************************************
** Toolbox-base **
** MIT License **
** Copyright (c) [2018] [Florian Lance] ... | 44.898876 | 169 | 0.556557 | FlorianLance |
9d3fdc7afd63a43b912876f98dfe2ce33685e3f6 | 199 | cpp | C++ | Week 8/Week 8(2)/Source.cpp | liuyuwang2016/-C- | 11e58e25514923d491e77fae20f3bf25ff0136c7 | [
"MIT"
] | null | null | null | Week 8/Week 8(2)/Source.cpp | liuyuwang2016/-C- | 11e58e25514923d491e77fae20f3bf25ff0136c7 | [
"MIT"
] | null | null | null | Week 8/Week 8(2)/Source.cpp | liuyuwang2016/-C- | 11e58e25514923d491e77fae20f3bf25ff0136c7 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int a = 0, b = 0, sum = 0;
cin >> a;
for (int i = 0; i < 5; i++) {
cin >> b;
if (b < a) {
sum += b;
}
}
cout << sum;
return 0;
} | 12.4375 | 30 | 0.457286 | liuyuwang2016 |
9d4483eb4f307931e047cd1b3c8e766a0045e352 | 1,843 | cpp | C++ | src/WerkTest/OS/Time.cpp | AgalmicVentures/Werk | 99afecb310aadb90d941a3a1031bc91b33edac59 | [
"MIT"
] | 27 | 2017-04-22T22:46:07.000Z | 2022-03-30T21:14:16.000Z | src/WerkTest/OS/Time.cpp | AgalmicVentures/Werk | 99afecb310aadb90d941a3a1031bc91b33edac59 | [
"MIT"
] | null | null | null | src/WerkTest/OS/Time.cpp | AgalmicVentures/Werk | 99afecb310aadb90d941a3a1031bc91b33edac59 | [
"MIT"
] | 14 | 2017-02-26T09:28:02.000Z | 2022-03-03T16:33:47.000Z |
/*
* Copyright (c) 2015-2021 Agalmic Ventures LLC (www.agalmicventures.com)
*
* 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
* ri... | 28.796875 | 79 | 0.737927 | AgalmicVentures |
9d507214940608719380b8735813a6a0d2baf5c5 | 1,030 | cpp | C++ | algorithms/image-smoother.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 41 | 2018-07-03T07:35:30.000Z | 2021-09-25T09:33:43.000Z | algorithms/image-smoother.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 2 | 2018-07-23T10:50:11.000Z | 2020-10-06T07:34:29.000Z | algorithms/image-smoother.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 7 | 2018-07-06T13:43:18.000Z | 2020-10-06T02:29:57.000Z | class Solution
{
private:
inline int average(vector<int> nums)
{
return accumulate(nums.begin(), nums.end(), 0, [](int a, int b) -> int { return a + b; }) / nums.size();
}
public:
vector<vector<int>> imageSmoother(vector<vector<int>>& M)
{
if (M.empty()) return {};
vector<p... | 33.225806 | 112 | 0.418447 | Chronoviser |
9d59091ebacbd924af8f4763d789f12d72aafd43 | 26,554 | cpp | C++ | src/systems/physics/wrappers/ode_physics.cpp | vi3itor/Blunted2 | 318af452e51174a3a4634f3fe19b314385838992 | [
"Unlicense"
] | 56 | 2020-07-22T22:11:06.000Z | 2022-03-09T08:11:43.000Z | GameplayFootball/src/systems/physics/wrappers/ode_physics.cpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 9 | 2021-04-22T07:06:25.000Z | 2022-01-22T12:54:52.000Z | GameplayFootball/src/systems/physics/wrappers/ode_physics.cpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 20 | 2017-11-07T16:52:32.000Z | 2022-01-25T02:42:48.000Z | // written by bastiaan konings schuiling 2008 - 2014
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#include "ode_physics.hpp"
#include "base/log.hpp"
#include "... | 33.401258 | 191 | 0.644423 | vi3itor |
9d5d93c98491094b849fbcc4b8800d8b831d9a1d | 376 | cpp | C++ | sandbox/t_read1.cpp | f-fathurrahman/ffr-pspw-dft-c | 5e673e33385eb467d99fcd992b350614c2709740 | [
"MIT"
] | 1 | 2018-05-17T09:01:12.000Z | 2018-05-17T09:01:12.000Z | sandbox/t_read1.cpp | f-fathurrahman/ffr-pspw-dft-c | 5e673e33385eb467d99fcd992b350614c2709740 | [
"MIT"
] | null | null | null | sandbox/t_read1.cpp | f-fathurrahman/ffr-pspw-dft-c | 5e673e33385eb467d99fcd992b350614c2709740 | [
"MIT"
] | null | null | null | // reading a text file
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
string line;
ifstream myfile ("example.txt");
if (myfile.is_open()) {
while(myfile.good()) {
getline(myfile,line);
cout << line << endl;
}
myfile.close();
}
else{
cou... | 14.461538 | 42 | 0.587766 | f-fathurrahman |
9d68bfca2418dc0189c9a50c64a2ff088c05fc32 | 2,722 | cpp | C++ | RogueEngine/Source/CameraShake.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | 1 | 2019-06-18T20:07:47.000Z | 2019-06-18T20:07:47.000Z | RogueEngine/Source/CameraShake.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | null | null | null | RogueEngine/Source/CameraShake.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | null | null | null | /* Start Header ************************************************************************/
/*!
\file CameraShake.cpp
\project Exale
\author Javier Foo, javier.foo, 440002318 (100%)
\par javier.foo\@digipen.edu
\date 1 December,2019
\brief This file contains the func... | 34.455696 | 214 | 0.671565 | silferysky |
9d6a3d694f41db9116118032cadb45ff6564c017 | 1,398 | cpp | C++ | test/unit_string_view_tests.cpp | dsyoi/iutest | b7b08c6ac4c75f98f87aa5756244afc93e4b624f | [
"BSD-3-Clause"
] | null | null | null | test/unit_string_view_tests.cpp | dsyoi/iutest | b7b08c6ac4c75f98f87aa5756244afc93e4b624f | [
"BSD-3-Clause"
] | null | null | null | test/unit_string_view_tests.cpp | dsyoi/iutest | b7b08c6ac4c75f98f87aa5756244afc93e4b624f | [
"BSD-3-Clause"
] | null | null | null | //======================================================================
//-----------------------------------------------------------------------
/**
* @file unit_string_view_tests.cpp
* @brief iutest test
*
* @author t.shirayanagi
* @par copyright
* Copyright (C) 2019, Takazumi Shiray... | 30.391304 | 73 | 0.478541 | dsyoi |
9d6a4974b28e6401543419dca620fc370d090518 | 19,768 | cpp | C++ | Classes/data/Item.cpp | thales-vogso/deer | f3492538881f632b55be657bb9529027897b0e63 | [
"Apache-2.0"
] | null | null | null | Classes/data/Item.cpp | thales-vogso/deer | f3492538881f632b55be657bb9529027897b0e63 | [
"Apache-2.0"
] | null | null | null | Classes/data/Item.cpp | thales-vogso/deer | f3492538881f632b55be657bb9529027897b0e63 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
* @desc 道具数据
* @date 2015-1-7
* @author 110101
* @file data/Item.cpp
******************************************************************************/
#include "Item.h"
#include "utils/DeerUtils.h"
#include "data/Task.h"
USING_NS_CC;
n... | 36.539741 | 241 | 0.571783 | thales-vogso |
9d6e706d4c87a758c034b76376569cc19e48f238 | 4,620 | cc | C++ | utilities/ioprof/ioprof.cc | shampoo365/terarkdb | a05a42789b310e1a79f6b5bb2f98f78993f9fbb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1,658 | 2020-12-21T04:53:44.000Z | 2022-03-30T16:16:07.000Z | utilities/ioprof/ioprof.cc | shampoo365/terarkdb | a05a42789b310e1a79f6b5bb2f98f78993f9fbb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 105 | 2020-12-21T09:09:55.000Z | 2022-03-28T09:57:36.000Z | utilities/ioprof/ioprof.cc | shampoo365/terarkdb | a05a42789b310e1a79f6b5bb2f98f78993f9fbb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 151 | 2020-12-21T09:25:34.000Z | 2022-03-13T08:58:37.000Z | #include "ioprof.h"
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <assert.h>
// Author: Haiping Zhao (ByteDance)
// Date: July 30, 2020
using namespace std;
using namespace IOProfiler;
///////////////////////////////////////////////////////////////////////////////////////////////////
Data D... | 26.551724 | 99 | 0.583333 | shampoo365 |
9d796f5468845dc023d999f368b0e9749df9d5c6 | 5,236 | cpp | C++ | src/Library/PhotonMapping/ShadowPhotonMap.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | 1 | 2018-12-20T19:31:02.000Z | 2018-12-20T19:31:02.000Z | src/Library/PhotonMapping/ShadowPhotonMap.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | src/Library/PhotonMapping/ShadowPhotonMap.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//
// ShadowPhotonMap.cpp - Implements the shadow photon map
//
// Author: Aravind Krishnaswamy
// Date of Birth: May 14, 2004
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
////////////////////... | 24.815166 | 91 | 0.660237 | aravindkrishnaswamy |
9d7d1c3a289a993fcef79336b32d8e5b933ee73b | 1,394 | cpp | C++ | amazon_interview_practice/Arrange_given_numbers_to_form_the_biggest_number/problem/problem/solve.cpp | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | amazon_interview_practice/Arrange_given_numbers_to_form_the_biggest_number/problem/problem/solve.cpp | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | amazon_interview_practice/Arrange_given_numbers_to_form_the_biggest_number/problem/problem/solve.cpp | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | // Driver program to test above functions
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int strcmp(string &a, string &b)
{
int i;
for (i = 0; (i < a.size()) && (i < b.size()); ++i) {
if (a[i] < b[i]) {
return -1;
} else if (a[i] > b[i]) {... | 17.425 | 71 | 0.494261 | ldy121 |
9d80ef607aa1cfa4d98b62bd57421f7494783ecb | 2,327 | cpp | C++ | src/datasync/rothreadedbackend/threadedclient.cpp | wangyangyangisme/QtDataSync | 0cc47ca4e8aeee2683aae52662c40f1a7c7b1d93 | [
"BSD-3-Clause"
] | 1 | 2022-02-22T07:18:33.000Z | 2022-02-22T07:18:33.000Z | src/datasync/rothreadedbackend/threadedclient.cpp | wyyrepo/QtDataSync | 0cc47ca4e8aeee2683aae52662c40f1a7c7b1d93 | [
"BSD-3-Clause"
] | null | null | null | src/datasync/rothreadedbackend/threadedclient.cpp | wyyrepo/QtDataSync | 0cc47ca4e8aeee2683aae52662c40f1a7c7b1d93 | [
"BSD-3-Clause"
] | 1 | 2018-12-20T04:31:16.000Z | 2018-12-20T04:31:16.000Z | #include "threadedclient_p.h"
#include "threadedserver_p.h"
#include <chrono>
using namespace std::chrono;
#if QT_HAS_INCLUDE(<chrono>)
#define scdtime(x) x
#else
#define scdtime(x) duration_cast<milliseconds>(x).count()
#endif
using namespace QtDataSync;
ThreadedClientIoDevice::ThreadedClientIoDevice(QObject *pare... | 23.039604 | 89 | 0.752041 | wangyangyangisme |
9d8bb019fbd9e5011a5b60e831e028e972be644f | 3,710 | cxx | C++ | src/proc/gsx_process_cycle.cxx | ShixianGuo/gserver_framework | 02d5a1cd934eaa055b33eadbaa4827f161565c5a | [
"MIT"
] | 7 | 2020-04-02T14:12:46.000Z | 2020-05-03T09:16:51.000Z | src/proc/gsx_process_cycle.cxx | ShixianGuo/gserver_framework | 02d5a1cd934eaa055b33eadbaa4827f161565c5a | [
"MIT"
] | null | null | null | src/proc/gsx_process_cycle.cxx | ShixianGuo/gserver_framework | 02d5a1cd934eaa055b33eadbaa4827f161565c5a | [
"MIT"
] | 1 | 2020-08-17T05:20:11.000Z | 2020-08-17T05:20:11.000Z |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <unistd.h>
#include "gsx_func.h"
#include "gsx_macro.h"
#include "gsx_c_conf.h"
static void gsx_start_worker_processes(int threadnums);
static int gsx_spawn_process(int thread... | 23.043478 | 126 | 0.597574 | ShixianGuo |
9d8dd2949f2c736abf96fb58ce758df08dfda28b | 2,210 | cpp | C++ | src/gen_res/main.cpp | suijingfeng/libhut | e0d5dd29d66f7fb40c09e58f570ed40787ed1a2f | [
"Unlicense",
"MIT"
] | null | null | null | src/gen_res/main.cpp | suijingfeng/libhut | e0d5dd29d66f7fb40c09e58f570ed40787ed1a2f | [
"Unlicense",
"MIT"
] | null | null | null | src/gen_res/main.cpp | suijingfeng/libhut | e0d5dd29d66f7fb40c09e58f570ed40787ed1a2f | [
"Unlicense",
"MIT"
] | 1 | 2021-06-24T16:22:45.000Z | 2021-06-24T16:22:45.000Z | #include <algorithm>
#include <chrono>
#include <cstring>
#include <experimental/filesystem>
#include <fstream>
#include <iomanip>
#include <iostream>
#include "hut/utils.hpp"
using namespace std;
using namespace std::experimental::filesystem::v1;
using namespace std::chrono;
using namespace hut;
constexpr auto line... | 31.126761 | 103 | 0.583258 | suijingfeng |
9d8f0252c682ea825d710cf6aeb95d2e9776c108 | 1,664 | hpp | C++ | include/ring.hpp | lebarsfa/vpython-wx | 38df062e5532b79f632f4f2a1abae86754c264a9 | [
"BSL-1.0"
] | 68 | 2015-01-17T05:41:58.000Z | 2021-04-24T08:35:24.000Z | include/ring.hpp | lebarsfa/vpython-wx | 38df062e5532b79f632f4f2a1abae86754c264a9 | [
"BSL-1.0"
] | 16 | 2015-01-02T19:36:06.000Z | 2018-09-09T21:01:25.000Z | include/ring.hpp | lebarsfa/vpython-wx | 38df062e5532b79f632f4f2a1abae86754c264a9 | [
"BSL-1.0"
] | 37 | 2015-02-04T04:23:00.000Z | 2020-06-07T03:24:41.000Z | #ifndef VPYTHON_RING_HPP
#define VPYTHON_RING_HPP
// Copyright (c) 2000, 2001, 2002, 2003 by David Scherer and others.
// Copyright (c) 2003, 2004 by Jonathan Brandmeyer and others.
// See the file license.txt for complete license terms.
// See the file authors.txt for a complete list of contributors.
#includ... | 24.115942 | 85 | 0.688101 | lebarsfa |
9d91945cc1b84f8a162c39bbd9b2b9a111b38f20 | 21,835 | cpp | C++ | class/controladores/controlador_juego.cpp | TheMarlboroMan/winter-fgj5 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | [
"Beerware"
] | null | null | null | class/controladores/controlador_juego.cpp | TheMarlboroMan/winter-fgj5 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | [
"Beerware"
] | null | null | null | class/controladores/controlador_juego.cpp | TheMarlboroMan/winter-fgj5 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | [
"Beerware"
] | null | null | null | #include "controlador_juego.h"
Controlador_juego::Controlador_juego(Director_estados &DI, Localizador& loc, Configuracion_base& config,const std::vector<App_Niveles::Sala>& salas, App_Graficos::Animaciones& anim)
:Controlador_base(DI, loc, config),
estado(estados::normal),
estado_dinamicas(config.acc_volumen_musica... | 28.247089 | 213 | 0.739638 | TheMarlboroMan |
9d968328ce1490e82735c0b4dd3e378adbdda456 | 1,619 | cpp | C++ | visualization/vortex.cpp | Kerkil/arrayfire_examples | cfcaf4cea6907dee33090e88904208a12a52ac92 | [
"BSD-3-Clause"
] | 1 | 2019-12-07T19:48:23.000Z | 2019-12-07T19:48:23.000Z | visualization/vortex.cpp | Kerkil/arrayfire_examples | cfcaf4cea6907dee33090e88904208a12a52ac92 | [
"BSD-3-Clause"
] | null | null | null | visualization/vortex.cpp | Kerkil/arrayfire_examples | cfcaf4cea6907dee33090e88904208a12a52ac92 | [
"BSD-3-Clause"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <arrayfire.h>
#include "../common/progress.h"
using namespace af;
static void vortex(bool console)
{
// seconds to run demo
double time_total = 10;
// initialize parameters
unsigned particles = 10000;
float revolutions = 5.0;
float xAx = 0.7f;
... | 21.878378 | 70 | 0.518839 | Kerkil |
9d9687d04424a3a8affb0c5057ac1e8a8e7f261c | 1,740 | hxx | C++ | include/delayed_task.hxx | catFurr/cornerstone | 77601d6beb447e371a181ac692dc2c079ddd8cb9 | [
"BSL-1.0",
"Apache-2.0"
] | 219 | 2016-10-13T11:03:19.000Z | 2022-03-25T07:20:27.000Z | include/delayed_task.hxx | catFurr/cornerstone | 77601d6beb447e371a181ac692dc2c079ddd8cb9 | [
"BSL-1.0",
"Apache-2.0"
] | 8 | 2017-10-08T01:20:25.000Z | 2021-03-02T05:13:53.000Z | include/delayed_task.hxx | catFurr/cornerstone | 77601d6beb447e371a181ac692dc2c079ddd8cb9 | [
"BSL-1.0",
"Apache-2.0"
] | 56 | 2016-10-29T15:14:32.000Z | 2022-03-28T03:59:20.000Z | /*
* Copyright (c) 2016 - present Alpha Infra Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 25.588235 | 75 | 0.57931 | catFurr |
9d98ef5887b2aa469ea05d52a1d4915eb721da7a | 10,517 | cpp | C++ | packages/ogdf.js/ogdf/test/src/planarity/crossing-minimizer.cpp | ZJUVAI/ogdf.js | 6670d20b6c630a46593ac380d1edf91d2c9aabe8 | [
"MIT"
] | 3 | 2021-09-14T08:11:37.000Z | 2022-03-04T15:42:07.000Z | packages/ogdf.js/ogdf/test/src/planarity/crossing-minimizer.cpp | JackieAnxis/ogdf.js | 6670d20b6c630a46593ac380d1edf91d2c9aabe8 | [
"MIT"
] | 2 | 2021-12-04T17:09:53.000Z | 2021-12-16T08:57:25.000Z | packages/ogdf.js/ogdf/test/src/planarity/crossing-minimizer.cpp | ZJUVAI/ogdf.js | 6670d20b6c630a46593ac380d1edf91d2c9aabe8 | [
"MIT"
] | 2 | 2021-06-22T08:21:54.000Z | 2021-07-07T06:57:22.000Z | /** \file
* \brief Tests for various crossing minimization modules.
*
* \author Tilo Wiedera
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.md in the OGDF root directory for details.
*
* \par
* This program is free software; you c... | 29.962963 | 143 | 0.697157 | ZJUVAI |
9da1479a4a4e4b41b444f02e0467c52bdc3d47c1 | 7,083 | cpp | C++ | tests/datamap_test.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | tests/datamap_test.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | tests/datamap_test.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null |
#include <gui/draw/datamap.h>
#include <gui/draw/graphics.h>
#include <testlib/testlib.h>
// --------------------------------------------------------------------------
void test_bw () {
using namespace gui;
using namespace gui::draw;
bwmap img(2, 2);
EXPECT_TRUE(img.is_valid());
EXPECT_EQUAL(img.native_si... | 32.791667 | 93 | 0.60497 | r3dl3g |
9da5e885b2e00e59c7bdde042f401345fe0898cf | 1,408 | cpp | C++ | src/plugins/blasq/plugins/vangog/vangog.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/blasq/plugins/vangog/vangog.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/blasq/plugins/vangog/vangog.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2010-2013 Oleg Linkin <MaledictusDeMagog@gmail.com>
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at... | 19.830986 | 83 | 0.628551 | Maledictus |
9da7a43d33d6acaa76d28af715a924e1cdd7d6a3 | 4,770 | cpp | C++ | lab07b.cpp | DaltonMcCart/csc232-lab07 | 9f06e073a8faa8eb894dbf7a2eb0ca5c6f8b92e0 | [
"MIT"
] | null | null | null | lab07b.cpp | DaltonMcCart/csc232-lab07 | 9f06e073a8faa8eb894dbf7a2eb0ca5c6f8b92e0 | [
"MIT"
] | null | null | null | lab07b.cpp | DaltonMcCart/csc232-lab07 | 9f06e073a8faa8eb894dbf7a2eb0ca5c6f8b92e0 | [
"MIT"
] | null | null | null | /**
* CSC232 - Data Structures
* Missouri State University, Fall 2018.
*
* @file lab10b.cpp
* @author Dalton McCart <mccart.42@live.missouristate.edu>
* CSC232-LAB10 - Updated authors tag in lab10b.cpp
*/
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <map>
#include <memory>
#include <stri... | 35.597015 | 86 | 0.67044 | DaltonMcCart |
9daafcd6831478a024c2040e1fd1867fb43ff711 | 10,746 | cpp | C++ | src/bindings/Scriptdev2/scripts/northrend/icecrown_citadel/icecrown_citadel/boss_blood_queen_lanathel.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | 1 | 2017-11-16T19:04:07.000Z | 2017-11-16T19:04:07.000Z | src/bindings/Scriptdev2/scripts/northrend/icecrown_citadel/icecrown_citadel/boss_blood_queen_lanathel.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | src/bindings/Scriptdev2/scripts/northrend/icecrown_citadel/icecrown_citadel/boss_blood_queen_lanathel.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | 32.465257 | 108 | 0.564489 | mfooo |
9dadfa6f2f17ef58abfba9d36c7f3920565b8153 | 3,005 | cpp | C++ | src/AppInstallerCLICore/Commands/RootCommand.cpp | JSY1988/winget | 4f73d7cfff75d478176cf31d4abad0b8b5ff8dd4 | [
"MIT"
] | 3 | 2020-05-19T17:10:32.000Z | 2020-07-21T14:13:13.000Z | src/AppInstallerCLICore/Commands/RootCommand.cpp | JSY1988/winget | 4f73d7cfff75d478176cf31d4abad0b8b5ff8dd4 | [
"MIT"
] | null | null | null | src/AppInstallerCLICore/Commands/RootCommand.cpp | JSY1988/winget | 4f73d7cfff75d478176cf31d4abad0b8b5ff8dd4 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "RootCommand.h"
#include "InstallCommand.h"
#include "ShowCommand.h"
#include "SourceCommand.h"
#include "SearchCommand.h"
#include "HashCommand.h"
#include "ValidateCommand.h"
#include "Resources.h"
name... | 37.5625 | 225 | 0.591015 | JSY1988 |
9db0985ee30904c452e85977ccdd5192becd327b | 5,609 | cpp | C++ | swap-ssdb-1.9.2/src/ssdb/options.cpp | TimothyZhang023/swapdb | e40c1ddf46892e698acf54f26b02927f0505ea84 | [
"BSD-2-Clause"
] | 242 | 2017-12-14T00:31:28.000Z | 2022-02-16T02:00:15.000Z | swap-ssdb-1.9.2/src/ssdb/options.cpp | javaperson/swapdb | 66efd9f919dfaa56dcefd9b39a8bdabe57624546 | [
"BSD-2-Clause"
] | 7 | 2017-12-14T08:34:43.000Z | 2020-12-19T02:53:03.000Z | swap-ssdb-1.9.2/src/ssdb/options.cpp | javaperson/swapdb | 66efd9f919dfaa56dcefd9b39a8bdabe57624546 | [
"BSD-2-Clause"
] | 47 | 2017-12-26T03:11:26.000Z | 2022-01-26T07:46:45.000Z | /*
Copyright (c) 2012-2014 The SSDB 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 "options.h"
#include "../util/strings.h"
#ifdef USE_LEVELDB
Options::Options(){
Config c;
this->load(c);
}
#else
#endif
void Options::... | 40.644928 | 106 | 0.68818 | TimothyZhang023 |
9db2d549a8c03a24537d80ccf1aa48a3217c0913 | 158 | hpp | C++ | src/calculator/include/calculator/calculator_api.hpp | d8euAI8sMs/qa-1-all | f38c282b6c7548373342e03635e9d4673e3eff0b | [
"Apache-2.0"
] | null | null | null | src/calculator/include/calculator/calculator_api.hpp | d8euAI8sMs/qa-1-all | f38c282b6c7548373342e03635e9d4673e3eff0b | [
"Apache-2.0"
] | null | null | null | src/calculator/include/calculator/calculator_api.hpp | d8euAI8sMs/qa-1-all | f38c282b6c7548373342e03635e9d4673e3eff0b | [
"Apache-2.0"
] | null | null | null | #pragma once
#ifdef CALCULATOR_EXPORTS
# define CALCULATOR_API __declspec(dllexport)
#else
# define CALCULATOR_API __declspec(dllimport)
#endif
| 19.75 | 49 | 0.759494 | d8euAI8sMs |
9db4d4ca68b95b225a772780b6e8605f49c10d1f | 24,287 | cpp | C++ | src/num_put.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | src/num_put.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | src/num_put.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
*
* num_put.cpp
*
* $Id: //stdlib/dev/source/stdlib/num_put.cpp#51 $
*
***************************************************************************
*
* Copyright (c) 1994-2005 Quovadx, Inc., acting through its Rogue Wave
* Software d... | 27.015573 | 79 | 0.522008 | Hower91 |
9db5d96ce4a0177c662802a648dabfd39065bd42 | 953 | hpp | C++ | aligned_deleter.hpp | nyamadan/hello_embree | 8ea086fb1a10e0e025fbd3ab45cbea281146162b | [
"MIT"
] | null | null | null | aligned_deleter.hpp | nyamadan/hello_embree | 8ea086fb1a10e0e025fbd3ab45cbea281146162b | [
"MIT"
] | null | null | null | aligned_deleter.hpp | nyamadan/hello_embree | 8ea086fb1a10e0e025fbd3ab45cbea281146162b | [
"MIT"
] | null | null | null | #pragma once
#ifdef _WIN32
#define aligned_alloc _aligned_malloc
#define aligned_free _aligned_free
#else
#define aligned_free free
#endif
template <typename T = void>
struct AlignedDeleter {
constexpr AlignedDeleter() noexcept = default;
template <typename U,
typename std::enable_if<std::is_co... | 28.878788 | 75 | 0.625393 | nyamadan |
9dbe2bfffe2b971bb770bf6d6ff43582d8f7c136 | 625 | cpp | C++ | mogupro/game/src/Network/Packet/Request/cReqInRoom.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | mogupro/game/src/Network/Packet/Request/cReqInRoom.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | mogupro/game/src/Network/Packet/Request/cReqInRoom.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | #include <Network/Packet/Request/cReqInRoom.h>
namespace Network
{
namespace Packet
{
namespace Request
{
cReqInRoom::cReqInRoom( ) : mRoomID(-1), mNetworkHandle("",0)
{
}
cReqInRoom::cReqInRoom( int roomID) : mRoomID(roomID), mNetworkHandle("", 0)
{
}
void cReqInRoom::packetImport(cNetworkHandle... | 18.382353 | 109 | 0.6912 | desspert |
9dbf62bca53512b2875882d6d2c16a8984519c73 | 2,390 | cpp | C++ | source/xinput/State.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/xinput/State.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/xinput/State.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, ... | 27.471264 | 101 | 0.694561 | HeavenWu |
9dc0fb56db281e46a4cffc6ea3ff0240f52dba03 | 2,904 | hh | C++ | src/interface/menus/Menu.hh | zermingore/warevolved | efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52 | [
"MIT"
] | 1 | 2019-09-23T18:16:27.000Z | 2019-09-23T18:16:27.000Z | src/interface/menus/Menu.hh | zermingore/warevolved | efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52 | [
"MIT"
] | 2 | 2018-11-12T18:48:03.000Z | 2018-11-15T21:10:02.000Z | src/interface/menus/Menu.hh | zermingore/warevolved | efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52 | [
"MIT"
] | null | null | null | /**
* \file
* \date July 24, 2013
* \author Zermingore
* \namespace interface
* \brief Interface generic Menu class declaration
*/
#ifndef MENU_HH_
# define MENU_HH_
# include <cstddef>
# include <memory>
# include <vector>
# include <interface/menus/MenuEntry.hh>
# include <interface/InterfaceElement.hh>
en... | 20.450704 | 77 | 0.6677 | zermingore |
e38393c3be27182c5c77a7be5eadb150abb128ae | 575 | cpp | C++ | CodeFights/areSimilarNumbers.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | CodeFights/areSimilarNumbers.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | CodeFights/areSimilarNumbers.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | // Call two integers a and b similar if divisor divides both a and b or if it doesn't divide either.
// Given integers a, b and divisor, check if a and b are similar.
// Example
// * For a = 10, b = 12 and divisor = 2, the output should be
// areSimilarNumbers(a, b, divisor) = true;
// * For a = 10, b = 12 and divisor ... | 35.9375 | 100 | 0.631304 | AREA44 |
e3844b4222588524f57b083c73956587df693b88 | 1,857 | hpp | C++ | ares/ngp/system/system.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/ngp/system/system.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/ngp/system/system.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | struct System {
Node::System node;
Node::Setting::Boolean fastBoot;
VFS::Pak pak;
Memory::Readable<n8> bios;
struct Controls {
Node::Object node;
Node::Input::Button up;
Node::Input::Button down;
Node::Input::Button left;
Node::Input::Button right;
Node::Input::Button a;
Node::Inp... | 24.434211 | 102 | 0.64405 | CasualPokePlayer |
e3850ee919679fc9a94b237a1d14cc9d18c465ed | 353 | cpp | C++ | Codeforces/problems/0158/A/158A.cpp | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 2 | 2021-07-27T10:46:47.000Z | 2021-07-27T10:47:57.000Z | Codeforces/problems/0158/A/158A.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | Codeforces/problems/0158/A/158A.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, t=0; cin >> n >> k;
vector<int> v;
for (int i = 0; i < n; i++) {
int x; cin >> x;
v.push_back(x);
}
int score = v[k-1];
for (int i = 0; i < n; i++) {
if (v[i] >= score && v[i] > 0) {
t++;
... | 16.809524 | 40 | 0.373938 | object-oriented-human |
e3873df1c3a86771969d65c925133c6d637406de | 3,244 | cpp | C++ | massociativearray.cpp | alediaferia/morph-framework | 702b4faba9bf659676f5583bdb6a739ba96ea121 | [
"MIT"
] | null | null | null | massociativearray.cpp | alediaferia/morph-framework | 702b4faba9bf659676f5583bdb6a739ba96ea121 | [
"MIT"
] | null | null | null | massociativearray.cpp | alediaferia/morph-framework | 702b4faba9bf659676f5583bdb6a739ba96ea121 | [
"MIT"
] | null | null | null | #include "massociativearray.h"
class MAssociativeArray::MAssociativeArrayPrivate
{
public:
MAssociativeArrayPrivate(MAssociativeArray *m)
: m(m),
values(MList::alloc())
{}
MAssociativeArrayPrivate(const MAssociativeArrayPrivate& copy)
: m(copy.m),
values(copy.values)
... | 21.202614 | 84 | 0.570284 | alediaferia |
e3897ad230aafa9ec56bf760b871bf13d3866e29 | 3,633 | cpp | C++ | src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | null | null | null | src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | 1 | 2021-08-18T12:32:31.000Z | 2021-08-18T12:32:31.000Z | src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp | AaronNGray/xalan | 6741bbdcb64a9d33df8bd7e21b558d66bb4292ec | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 24.883562 | 123 | 0.633911 | kidaa |
e39070ba8786a21dbf4cc08bde2b98a664a0eff9 | 268 | cpp | C++ | noduplicates.cpp | Embrikht/Kattis | bffccda2f0f487dc4dffb3ab3dcb82ed0c7be374 | [
"CC0-1.0"
] | null | null | null | noduplicates.cpp | Embrikht/Kattis | bffccda2f0f487dc4dffb3ab3dcb82ed0c7be374 | [
"CC0-1.0"
] | null | null | null | noduplicates.cpp | Embrikht/Kattis | bffccda2f0f487dc4dffb3ab3dcb82ed0c7be374 | [
"CC0-1.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
set<string> maps;
bool rep = false;
while (cin >> s && !rep){
if (!maps.count(s)) maps.insert(s);
else rep = true;
}
if (rep) cout << "no" << endl;
else cout << "yes" << endl;
return 0;
}
| 16.75 | 37 | 0.578358 | Embrikht |
e39230bf1d7b6bd92b64d4d18d487428f94d9b9d | 1,863 | cpp | C++ | C++/coordinat.cpp | H-M-Noman123/hacktoberfest2021-7 | fcd2c9e440a8146c8a62e1c5cc122d855ed41a12 | [
"MIT"
] | 2 | 2021-12-01T03:35:20.000Z | 2022-02-11T01:10:22.000Z | C++/coordinat.cpp | H-M-Noman123/hacktoberfest2021-7 | fcd2c9e440a8146c8a62e1c5cc122d855ed41a12 | [
"MIT"
] | null | null | null | C++/coordinat.cpp | H-M-Noman123/hacktoberfest2021-7 | fcd2c9e440a8146c8a62e1c5cc122d855ed41a12 | [
"MIT"
] | 1 | 2021-10-17T16:24:21.000Z | 2021-10-17T16:24:21.000Z | #include <iostream>
#include <cmath>
using namespace std;
#define PI 3.1415926
class Polar; // Forward declaration
class Rectangular {
private:
float x, y;
public:
Rectangular() {} // default constructor
Rectangular(float mv_x, float mv_y) {
x = mv_x;
y = mv_y;... | 19.610526 | 68 | 0.505636 | H-M-Noman123 |
e396bc034641bb84f629d58e945c063bc1940819 | 604 | cpp | C++ | test/mod2/mod2.cpp | FigmentBoy/lilac | f3927d4725c9403a147d7fd38a57ac0da248fcfe | [
"MIT"
] | null | null | null | test/mod2/mod2.cpp | FigmentBoy/lilac | f3927d4725c9403a147d7fd38a57ac0da248fcfe | [
"MIT"
] | null | null | null | test/mod2/mod2.cpp | FigmentBoy/lilac | f3927d4725c9403a147d7fd38a57ac0da248fcfe | [
"MIT"
] | null | null | null | #include "mod2.hpp"
bool __fastcall GJGarageLayer_init(GJGarageLayer* self) {
if (!self->init())
return false;
if (Loader::get()->isModLoaded("com.lilac.test_one")) {
TestMod1::get()->logMessage("Hi from TestMod2");
} else {
TestMod2::get()->log() << "TestMod1 is not l... | 20.827586 | 78 | 0.566225 | FigmentBoy |
e39a4b3fa52a89658fbd5070a5e23430cf58c5d8 | 1,394 | cc | C++ | tools/generate_math_constants.cc | jpcima/coreutil | 8ec6acec90738919116e71e3a7ea5fe012793ad4 | [
"BSL-1.0"
] | null | null | null | tools/generate_math_constants.cc | jpcima/coreutil | 8ec6acec90738919116e71e3a7ea5fe012793ad4 | [
"BSL-1.0"
] | null | null | null | tools/generate_math_constants.cc | jpcima/coreutil | 8ec6acec90738919116e71e3a7ea5fe012793ad4 | [
"BSL-1.0"
] | null | null | null | #include <boost/multiprecision/gmp.hpp>
#include <boost/format.hpp>
#include <iostream>
namespace mp = boost::multiprecision;
typedef mp::mpf_float_1000 MPFloat;
struct MPConstant {
const char *name {};
const char *expr {};
MPFloat value;
};
int main() {
const MPFloat one(1);
const MPFloat two(2);
const ... | 26.301887 | 77 | 0.533716 | jpcima |
e39b0552cc8f6140e14bab800508515e63019e56 | 908 | hpp | C++ | PnC/NaoPnC/NaoStateMachine/SwingControl.hpp | BharathMasetty/PnC | 3800bd7e3c5dd5ffa00e6a5f09d48d21c405206f | [
"MIT"
] | null | null | null | PnC/NaoPnC/NaoStateMachine/SwingControl.hpp | BharathMasetty/PnC | 3800bd7e3c5dd5ffa00e6a5f09d48d21c405206f | [
"MIT"
] | null | null | null | PnC/NaoPnC/NaoStateMachine/SwingControl.hpp | BharathMasetty/PnC | 3800bd7e3c5dd5ffa00e6a5f09d48d21c405206f | [
"MIT"
] | null | null | null | #pragma once
#include <Utils/Math/BSplineBasic.h>
#include <PnC/StateMachine.hpp>
#include <PnC/NaoPnC/NaoStateProvider.hpp>
class NaoControlArchitecture;
class NaoTaskAndForceContainer;
class NaoMainController;
class SwingControl : public StateMachine {
public:
SwingControl(const StateIdentifier state_identifier... | 23.282051 | 78 | 0.779736 | BharathMasetty |
e39db9e83d53b46f3f5577f65fa360c7c7ed5055 | 5,048 | hpp | C++ | src/nanomsgpp/message.hpp | cjgdev/nanomsgpp | 69062bbd03e9ced0ed0ffc5fd91a95e3b94d7921 | [
"MIT"
] | 3 | 2017-06-01T09:18:30.000Z | 2019-04-09T21:05:05.000Z | src/nanomsgpp/message.hpp | cjgdev/nanomsgpp | 69062bbd03e9ced0ed0ffc5fd91a95e3b94d7921 | [
"MIT"
] | null | null | null | src/nanomsgpp/message.hpp | cjgdev/nanomsgpp | 69062bbd03e9ced0ed0ffc5fd91a95e3b94d7921 | [
"MIT"
] | 1 | 2022-01-06T04:14:36.000Z | 2022-01-06T04:14:36.000Z | /*
* Copyright (C) 2014 Christopher Gilbert <christopher.john.gilbert@gmail.com>
*
* 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 r... | 27.889503 | 96 | 0.713748 | cjgdev |
e3a0f402d45ecb6ca249d02aa920014721d102b1 | 1,061 | cpp | C++ | src/Mesh_Computational_Geometry/mainwindow.cpp | AdrKacz/ecl-mso36-calcul-modelisation-geometrique | bb3744df90a7b49a0964c17acaf2245d1f89646f | [
"MIT"
] | null | null | null | src/Mesh_Computational_Geometry/mainwindow.cpp | AdrKacz/ecl-mso36-calcul-modelisation-geometrique | bb3744df90a7b49a0964c17acaf2245d1f89646f | [
"MIT"
] | null | null | null | src/Mesh_Computational_Geometry/mainwindow.cpp | AdrKacz/ecl-mso36-calcul-modelisation-geometrique | bb3744df90a7b49a0964c17acaf2245d1f89646f | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "mesh.h" // Model
#include<QFile>
#include<QDebug>
#include<QString>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on... | 19.648148 | 69 | 0.693685 | AdrKacz |
e3a885b871665e6ead25571915f77eab1e30a5f2 | 5,766 | cpp | C++ | src/NasNas/tilemapping/ObjectLayer.cpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 148 | 2020-04-08T13:45:34.000Z | 2022-01-29T13:52:10.000Z | src/NasNas/tilemapping/ObjectLayer.cpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 5 | 2020-09-15T12:34:31.000Z | 2022-02-14T20:59:12.000Z | src/NasNas/tilemapping/ObjectLayer.cpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 3 | 2020-10-03T22:35:20.000Z | 2020-10-05T04:55:45.000Z | /**
* Created by Modar Nasser on 22/08/2020.
**/
#include "NasNas/tilemapping/ObjectLayer.hpp"
using namespace ns;
using namespace ns::tm;
ns::tm::ObjectLayer::ObjectLayer(const pugi::xml_node& xml_node, tm::TiledMap* tiledmap) :
Layer(xml_node, tiledmap)
{
if (xml_node.attribute("color"))
m_color = hexT... | 33.719298 | 123 | 0.632848 | Madour |
e3aaaa400e15e572a00231840b31736c5a631eb9 | 134 | hpp | C++ | src/utils/glm_ext.hpp | axis7818/RayTracer | 157bc958fde873eeacc3e7c03607daedca088a4f | [
"MIT"
] | null | null | null | src/utils/glm_ext.hpp | axis7818/RayTracer | 157bc958fde873eeacc3e7c03607daedca088a4f | [
"MIT"
] | null | null | null | src/utils/glm_ext.hpp | axis7818/RayTracer | 157bc958fde873eeacc3e7c03607daedca088a4f | [
"MIT"
] | null | null | null | #include <glm/vec3.hpp>
static const glm::vec3 VEC3_ZERO = glm::vec3(0, 0, 0);
static const glm::vec3 VEC3_ONE = glm::vec3(1, 1, 1);
| 26.8 | 54 | 0.671642 | axis7818 |
e3af4dc7dcfb5f874f60dfc9b6826f47220815f0 | 4,122 | hpp | C++ | objc-bridge/inc/m4c0/objc/casts.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | objc-bridge/inc/m4c0/objc/casts.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | objc-bridge/inc/m4c0/objc/casts.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | #pragma once
#include <objc/message.h>
#include <objc/runtime.h>
#include <utility>
// ARM64, for reasons
#if !defined(__i386__) && !defined(__x86_64__)
#define objc_msgSend_stret objc_msgSend
#define objc_msgSend_fpret objc_msgSend
#endif
namespace m4c0::objc {
namespace details {
// This only works because w... | 44.804348 | 120 | 0.693595 | m4c0 |
e3b3611ca279cfca580d6d27682df8baf18fe79b | 5,010 | cpp | C++ | ui/CxRun/OleMessageFilter2.cpp | johnzcdGitHub/SuperCxHMI | e897b7bdf30cfe3bfeb5b8738e10c7205ebcd665 | [
"MIT"
] | 118 | 2015-05-19T09:19:01.000Z | 2022-02-24T15:18:51.000Z | ui/CxRun/OleMessageFilter2.cpp | PythonYanshenguan/SuperCxHMI | 19f681583fca56c528b51b5821fe842c80bcae24 | [
"MIT"
] | 1 | 2016-10-24T02:48:03.000Z | 2020-04-20T01:53:31.000Z | ui/CxRun/OleMessageFilter2.cpp | PythonYanshenguan/SuperCxHMI | 19f681583fca56c528b51b5821fe842c80bcae24 | [
"MIT"
] | 98 | 2015-02-11T07:16:47.000Z | 2022-02-24T02:15:27.000Z | // OleMessageFilter2.cpp: implementation of the COleMessageFilter2 class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CxRun.h"
#include "OleMessageFilter2.h"
#include "DcomErrorDlg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define n... | 26.507937 | 77 | 0.709381 | johnzcdGitHub |
e3b5143edc5d470c960d64542c6a3255671ee3fc | 35 | hpp | C++ | src/boost_iostreams_get.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_iostreams_get.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_iostreams_get.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/iostreams/get.hpp>
| 17.5 | 34 | 0.771429 | miathedev |
e3b839b051d8548bb3fd6ebbf67c8d48b0dde0ef | 2,550 | cpp | C++ | Lesson 4 (Counting Elements)/MaxCounters.cpp | Constantine-L01/Codility | 741c71414ed7efb3304310d2b78d4a8cfc1c2b69 | [
"MIT"
] | null | null | null | Lesson 4 (Counting Elements)/MaxCounters.cpp | Constantine-L01/Codility | 741c71414ed7efb3304310d2b78d4a8cfc1c2b69 | [
"MIT"
] | null | null | null | Lesson 4 (Counting Elements)/MaxCounters.cpp | Constantine-L01/Codility | 741c71414ed7efb3304310d2b78d4a8cfc1c2b69 | [
"MIT"
] | null | null | null | Task description
You are given N counters, initially set to 0, and you have two possible operations on them:
increase(X) − counter X is increased by 1,
max counter − all counters are set to the maximum value of any counter.
A non-empty array A of M integers is given. This array represents consecutive... | 26.020408 | 146 | 0.557647 | Constantine-L01 |
e3b9b9a31d2cd865d04c99dbcb3da3df69d05b82 | 17,669 | cpp | C++ | src/eepp/network/uri.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/eepp/network/uri.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | null | null | null | src/eepp/network/uri.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #include <eepp/network/uri.hpp>
namespace EE { namespace Network {
static void AppendHex( std::string& str, int value, int width ) {
eeASSERT( width > 0 && width < 64 );
char buffer[64];
std::sprintf( buffer, "%0*X", width, value );
str.append( buffer );
}
static std::string FormatHex( int value, int width ) {
... | 24.885915 | 100 | 0.596242 | SpartanJ |
e3bf9705ca79ecc27135a90b6f6aa53e5bd1ed6a | 10,125 | cpp | C++ | Cbc/Cbc/examples/sample5.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | Cbc/Cbc/examples/sample5.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | Cbc/Cbc/examples/sample5.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | // $Id: sample5.cpp 2469 2019-01-06 23:17:46Z unxusr $
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#include "CbcConfig.h"
#include "CoinPragma.hpp"
#include <cassert>
#include <io... | 32.451923 | 98 | 0.660346 | fadi-alkhoury |
e3c1816d91d7faa2bcf93f381ed482e9d6bc7388 | 15,427 | hpp | C++ | Siv3D/include/Siv3D/Image.hpp | azaika/OpenSiv3D | 2e8258ea15741b7dafa6637b50b43637f7b9923a | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/Image.hpp | azaika/OpenSiv3D | 2e8258ea15741b7dafa6637b50b43637f7b9923a | [
"MIT"
] | null | null | null | Siv3D/include/Siv3D/Image.hpp | azaika/OpenSiv3D | 2e8258ea15741b7dafa6637b50b43637f7b9923a | [
"MIT"
] | 1 | 2019-10-06T17:09:26.000Z | 2019-10-06T17:09:26.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <memory.h>
# include "... | 20.113429 | 106 | 0.586504 | azaika |
e3c4285bb9425bbeb1007299cd46aba3dc459ba1 | 1,832 | hpp | C++ | src/base/factory/AtmosphereFactory.hpp | ddj116/gmat | 39673be967d856f14616462fb6473b27b21b149f | [
"NASA-1.3"
] | 1 | 2020-05-16T16:58:21.000Z | 2020-05-16T16:58:21.000Z | src/base/factory/AtmosphereFactory.hpp | ddj116/gmat | 39673be967d856f14616462fb6473b27b21b149f | [
"NASA-1.3"
] | null | null | null | src/base/factory/AtmosphereFactory.hpp | ddj116/gmat | 39673be967d856f14616462fb6473b27b21b149f | [
"NASA-1.3"
] | null | null | null | //$Id: AtmosphereFactory.hpp 10639 2012-07-12 15:21:10Z djcinsb $
//------------------------------------------------------------------------------
// AtmosphereFactory
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Co... | 28.625 | 81 | 0.582969 | ddj116 |
e3ca57227dce7f550a974332d997d4e6a380c9d8 | 1,664 | hpp | C++ | src/winthread.hpp | leavinel/BPG-Plugins | 1a017906bc1162779b95967f034d3b83bb730359 | [
"MIT"
] | 21 | 2015-09-09T13:45:08.000Z | 2021-11-24T05:56:00.000Z | src/winthread.hpp | leavinel/bpg_plugins | 1a017906bc1162779b95967f034d3b83bb730359 | [
"MIT"
] | 9 | 2015-11-23T12:46:36.000Z | 2017-12-18T09:50:26.000Z | src/winthread.hpp | leavinel/bpg_plugins | 1a017906bc1162779b95967f034d3b83bb730359 | [
"MIT"
] | 1 | 2017-01-23T23:38:33.000Z | 2017-01-23T23:38:33.000Z | /**
* @file
*
*
* @author Leav Wu (leavinel@gmail.com)
*/
#ifndef _WINTHREAD_HPP_
#define _WINTHREAD_HPP_
#include <windows.h>
#include <list>
#include <functional>
/**
* Subset of windows thread synchronization C++ wrapper
*/
namespace winthread {
/**
* Wrapper of windows HANDLE
*/
class handle
{
protect... | 13.528455 | 81 | 0.59976 | leavinel |
e3ca99b624052f24f397568dc621e294be99c1b5 | 23,102 | hh | C++ | Core/MarchingCubes.hh | ThibaultReuille/raindance | 79f1f6aeeaf6cbe378e911cd510e6550ae34eb75 | [
"BSD-2-Clause"
] | 12 | 2015-01-15T03:30:10.000Z | 2022-02-24T21:25:29.000Z | Core/MarchingCubes.hh | ThibaultReuille/raindance | 79f1f6aeeaf6cbe378e911cd510e6550ae34eb75 | [
"BSD-2-Clause"
] | 1 | 2017-06-06T15:39:21.000Z | 2017-06-06T15:39:21.000Z | Core/MarchingCubes.hh | ThibaultReuille/raindance | 79f1f6aeeaf6cbe378e911cd510e6550ae34eb75 | [
"BSD-2-Clause"
] | 4 | 2015-07-02T22:06:56.000Z | 2022-02-24T21:25:30.000Z | #pragma once
#include <raindance/Core/Headers.hh>
static int g_EdgeTable[256]=
{
0x0 , 0x109, 0x203, 0x30a, 0x406, 0x50f, 0x605, 0x70c,
0x80c, 0x905, 0xa0f, 0xb06, 0xc0a, 0xd03, 0xe09, 0xf00,
0x190, 0x99 , 0x393, 0x29a, 0x596, 0x49f, 0x795, 0x69c,
0x99c, 0x895, 0xb9f, 0xa96, 0xd9a, 0xc93, 0xf99, 0xe90,
0x230, 0... | 45.928429 | 182 | 0.407194 | ThibaultReuille |
e3cd0ee0048780f429888ecae49256d4ef095d7c | 3,856 | hpp | C++ | include/UnityEngine/EventSystems/AxisEventData.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/EventSystems/AxisEventData.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/EventSystems/AxisEventData.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.EventSystems.BaseEventData
#include "UnityEngine/EventSyst... | 51.413333 | 170 | 0.741961 | darknight1050 |
e3d8ca87b7ffd8735aa24d0b5e6d7f87e6cae262 | 5,434 | cc | C++ | drivers/bluetooth/lib/l2cap/pdu.cc | kong1191/garnet | 609c727895e477ac086db38c1cee654dc10f2008 | [
"BSD-3-Clause"
] | null | null | null | drivers/bluetooth/lib/l2cap/pdu.cc | kong1191/garnet | 609c727895e477ac086db38c1cee654dc10f2008 | [
"BSD-3-Clause"
] | null | null | null | drivers/bluetooth/lib/l2cap/pdu.cc | kong1191/garnet | 609c727895e477ac086db38c1cee654dc10f2008 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Fuchsia 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 "pdu.h"
#include "garnet/drivers/bluetooth/lib/common/log.h"
#include "garnet/drivers/bluetooth/lib/hci/acl_data_packet.h"
namespace btlib {
nam... | 29.215054 | 78 | 0.667464 | kong1191 |
e3deaf89af220730a8d634c149ac01b7ac64f888 | 1,215 | cpp | C++ | SPOJ/BLINNET.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | SPOJ/BLINNET.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | SPOJ/BLINNET.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
const int MAX = 10001;
vector< pair< int, pair<int , int > > > adj;
int parent[MAX];
int find(int u);
int main() {
int t;
cin >> t;
while(t--) {
int n;
cin >> n;
adj.clear();
... | 17.608696 | 51 | 0.33251 | Alipashaimani |
e3e26925d34bd5cffa298f585bdd1bb7138735d7 | 976 | cpp | C++ | sources/2020/2020_25.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | 2 | 2021-02-01T13:19:37.000Z | 2021-02-25T10:39:46.000Z | sources/2020/2020_25.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | sources/2020/2020_25.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | #include "2020_24.h"
namespace Day25_2020
{
uintmax_t find_loop_size(uintmax_t key)
{
uintmax_t v = 1;
uintmax_t sn = 7;
uintmax_t i = 0;
while (1)
{
v = (v * sn) % 20201227;
i++;
if (v == key)
return i;
}
}
uintmax_t calculate(uintmax_t key, uintmax_t loop)
{
uintmax_t v = 1;
for (u... | 20.765957 | 82 | 0.671107 | tbielak |
e3e71ac9a0114c2d0e799298dbaf28d42e4e8ffc | 3,205 | cpp | C++ | bindings/python/src/OpenSpaceToolkitAstrodynamicsPy/Trajectory/Orbit/Model.cpp | oygx210/open-space-toolkit-astrodynamics | 81b76d78bbe76719a34801778d4fb685cc67648f | [
"Apache-2.0"
] | 13 | 2020-05-11T02:22:15.000Z | 2022-01-27T09:42:18.000Z | bindings/python/src/OpenSpaceToolkitAstrodynamicsPy/Trajectory/Orbit/Model.cpp | oygx210/open-space-toolkit-astrodynamics | 81b76d78bbe76719a34801778d4fb685cc67648f | [
"Apache-2.0"
] | 10 | 2018-09-11T05:27:04.000Z | 2020-01-06T03:48:28.000Z | bindings/python/src/OpenSpaceToolkitAstrodynamicsPy/Trajectory/Orbit/Model.cpp | open-space-collective/open-space-toolkit-astrodynamics | d709f5237f25e5ef40eafa5f87e39c00b8acbae1 | [
"Apache-2.0"
] | 4 | 2020-03-05T18:19:03.000Z | 2021-06-24T04:25:05.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Open Space Toolkit ▸ Astrodynamics
/// @file bindings/python/src/OpenSpaceToolkitAstrodynamicsPy/Trajectory/Orbit/Model.cpp
/// ... | 53.416667 | 161 | 0.516381 | oygx210 |
e3feed3e7e64309efcf1cac87b03a060c0ee7d56 | 2,004 | hpp | C++ | core/base/log.hpp | bartbalaz/gentroller | b40c4fb5661619e9540f0d4b88f6f22aafb9156c | [
"BSD-3-Clause"
] | null | null | null | core/base/log.hpp | bartbalaz/gentroller | b40c4fb5661619e9540f0d4b88f6f22aafb9156c | [
"BSD-3-Clause"
] | null | null | null | core/base/log.hpp | bartbalaz/gentroller | b40c4fb5661619e9540f0d4b88f6f22aafb9156c | [
"BSD-3-Clause"
] | null | null | null | #ifndef BX_LOG_HPP
#define BX_LOG_HPP
#include <string>
#include <vector>
#include <fstream>
#include <error.h>
#include "parameters.hpp"
#include "exception.hpp"
namespace Bx {
namespace Base {
class Log {
public:
typedef enum {
ftl = 0,
err = 1,
wrn = 2,
... | 21.319149 | 78 | 0.590319 | bartbalaz |
540e937786d34e7246402afeef5e7c46e8c65296 | 2,046 | cpp | C++ | tests/pizza_tests.cpp | Harmos274/Plazza | ade41711f9d945f944276732a9df96442b2b4af8 | [
"MIT"
] | null | null | null | tests/pizza_tests.cpp | Harmos274/Plazza | ade41711f9d945f944276732a9df96442b2b4af8 | [
"MIT"
] | null | null | null | tests/pizza_tests.cpp | Harmos274/Plazza | ade41711f9d945f944276732a9df96442b2b4af8 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** plazza
** File description:
** unit test for pizzas
*/
#include "include/catch2.hpp"
#include "pizzas/Ingredient.hpp"
#include "pizzas/Pizza.hpp"
#include "Marmiton.hpp"
#include <chrono>
#include <sstream>
#include <string>
TEST_CASE("Ingredient enum", "operators")
{
using plazza::... | 22.483516 | 102 | 0.591398 | Harmos274 |
5411fb6f49e5e29620b3644cd482e5d4f1e07abb | 1,059 | cpp | C++ | Exercicios-Simples/ex05.cpp | raphaelcarmo/Praticando-C | ba2c926d2eeb4a00f24fef73281de1f937c90769 | [
"MIT"
] | null | null | null | Exercicios-Simples/ex05.cpp | raphaelcarmo/Praticando-C | ba2c926d2eeb4a00f24fef73281de1f937c90769 | [
"MIT"
] | null | null | null | Exercicios-Simples/ex05.cpp | raphaelcarmo/Praticando-C | ba2c926d2eeb4a00f24fef73281de1f937c90769 | [
"MIT"
] | null | null | null | #include <iomanip> /*A biblioteca <iomanip> fornece recursos para manipular a formatação de saída, como a base usada ao formatar inteiros e a precisão dos valores de ponto flutuante .*/
#include <iostream> /*Cabeçalho que define os objetos de fluxo de entrada / saída padrão*/
using namespace std;
/* Exercicio de Média... | 29.416667 | 185 | 0.694995 | raphaelcarmo |
5414ced84d682975ff6aaa1dff8bd48cf592384a | 12,463 | cpp | C++ | test/song_reader_test.cpp | joao18araujo/ly_parser | 4daff56b5e86fb6616d6f71977a5e218edc88174 | [
"MIT"
] | 2 | 2019-03-18T12:25:17.000Z | 2020-12-06T19:53:18.000Z | test/song_reader_test.cpp | joao18araujo/pierluigi | 4daff56b5e86fb6616d6f71977a5e218edc88174 | [
"MIT"
] | null | null | null | test/song_reader_test.cpp | joao18araujo/pierluigi | 4daff56b5e86fb6616d6f71977a5e218edc88174 | [
"MIT"
] | null | null | null | #include "catch.hpp"
#include "song_reader.h"
#include "note.h"
TEST_CASE("Song Reader can receive a string in lilypond format and return a note", "[single-file]"){
SECTION("when notes are without accidental"){
Note note = SongReader::string_to_note(Note(), "c'4");
REQUIRE(note.midi_number == 60);
REQUI... | 33.502688 | 100 | 0.631389 | joao18araujo |
5414d22f87d16d2e0af57cec858db609321fdbb0 | 996 | hpp | C++ | rsa_utils/include/wrapping_iterator.hpp | j-dax/functional-rsa | 4e0a62fb7fd4b44b0ac925bfd9b2e757c58a45de | [
"MIT"
] | null | null | null | rsa_utils/include/wrapping_iterator.hpp | j-dax/functional-rsa | 4e0a62fb7fd4b44b0ac925bfd9b2e757c58a45de | [
"MIT"
] | null | null | null | rsa_utils/include/wrapping_iterator.hpp | j-dax/functional-rsa | 4e0a62fb7fd4b44b0ac925bfd9b2e757c58a45de | [
"MIT"
] | null | null | null | #pragma once
#include <iterator>
namespace rsa {
template <typename T>
class WrappingIterator : std::forward_iterator<T> {
private:
T *begin_it, *end_it;
size_t index;
public:
// WrappingIterator(); // don't allow default
WrappingIterator(T container) {
... | 22.636364 | 59 | 0.480924 | j-dax |
541cc344174e53a72fb73bf72c9cf51c30c9d973 | 765 | cpp | C++ | Codeforces/545A Toy Cars.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | null | null | null | Codeforces/545A Toy Cars.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | null | null | null | Codeforces/545A Toy Cars.cpp | sreejonK19/online-judge-solutions | da65d635cc488c8f305e48b49727ad62649f5671 | [
"MIT"
] | 2 | 2018-11-06T19:37:56.000Z | 2018-11-09T19:05:46.000Z | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 100;
int A[MAXN+2][MAXN+2];
vector < int > index;
int main( int argc, char ** argv ) {
// freopen( "input.txt", "r", stdin );
int n;
cin >> n;
for( int i = 1 ; i <= n ; ++i ) {
for( int j = 1 ; j <= n ; ++j ) {
cin ... | 19.615385 | 60 | 0.393464 | sreejonK19 |
541cd13da1421a0e21f92485651c4b9eb0ccf9b2 | 1,419 | cpp | C++ | android-31/android/net/TelephonyNetworkSpecifier.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/net/TelephonyNetworkSpecifier.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/net/TelephonyNetworkSpecifier.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../os/Parcel.hpp"
#include "../../JObject.hpp"
#include "../../JString.hpp"
#include "./TelephonyNetworkSpecifier.hpp"
namespace android::net
{
// Fields
JObject TelephonyNetworkSpecifier::CREATOR()
{
return getStaticObjectField(
"android.net.TelephonyNetworkSpecifier",
"CREATOR",
"Landroid/os/... | 19.985915 | 110 | 0.691332 | YJBeetle |
541ddb032cf6b50125093b4bdd76f49fc615081e | 2,328 | cpp | C++ | tests/vklayertests_best_practices.cpp | h3r2tic/Vulkan-ValidationLayers | 4fde9b75099271ded2de6d1a5903cb57a0e93931 | [
"Apache-2.0"
] | 1 | 2021-07-15T23:36:20.000Z | 2021-07-15T23:36:20.000Z | tests/vklayertests_best_practices.cpp | h3r2tic/Vulkan-ValidationLayers | 4fde9b75099271ded2de6d1a5903cb57a0e93931 | [
"Apache-2.0"
] | null | null | null | tests/vklayertests_best_practices.cpp | h3r2tic/Vulkan-ValidationLayers | 4fde9b75099271ded2de6d1a5903cb57a0e93931 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015-2019 The Khronos Group Inc.
* Copyright (c) 2015-2019 Valve Corporation
* Copyright (c) 2015-2019 LunarG, Inc.
* Copyright (c) 2015-2019 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... | 40.842105 | 99 | 0.743557 | h3r2tic |
541e705ab721be349fd37bd00818face09224a09 | 1,055 | cpp | C++ | src/pWolfEncrypt/WolfEncryptMain.cpp | scottsideleau/moos-ivp-umassd | fb7f533d907208b438e5489e98f92615a6bb3246 | [
"Apache-2.0"
] | 6 | 2017-01-02T16:40:04.000Z | 2019-01-22T04:55:22.000Z | src/pWolfEncrypt/WolfEncryptMain.cpp | scottsideleau/moos-ivp-umassd | fb7f533d907208b438e5489e98f92615a6bb3246 | [
"Apache-2.0"
] | null | null | null | src/pWolfEncrypt/WolfEncryptMain.cpp | scottsideleau/moos-ivp-umassd | fb7f533d907208b438e5489e98f92615a6bb3246 | [
"Apache-2.0"
] | 2 | 2017-06-02T18:31:07.000Z | 2021-12-15T10:09:40.000Z | /****************************************************************************/
/* WolfEncryptMain.cpp */
/****************************************************************************/
// WolfEncrypt Includes
#include "WolfEncrypt.h"
/*************************************************************************//**
* Th... | 27.051282 | 78 | 0.543128 | scottsideleau |
542b037a3a3ecbb79e02b2580f03fde45c53b18a | 1,685 | cpp | C++ | other_contest/yuruhuwa_onsite_3/d.cpp | zaurus-yusya/atcoder | 5fc345b3da50222fa1366d1ce52ae58799488cef | [
"MIT"
] | 3 | 2020-05-27T16:27:12.000Z | 2021-01-27T12:47:12.000Z | other_contest/yuruhuwa_onsite_3/d.cpp | zaurus-yusya/Competitive-Programming | c72e13a11f76f463510bd4a476b86631d9d1b13a | [
"MIT"
] | null | null | null | other_contest/yuruhuwa_onsite_3/d.cpp | zaurus-yusya/Competitive-Programming | c72e13a11f76f463510bd4a476b86631d9d1b13a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
typedef long long ll;
#define rep(i,n) for(ll i=0;i<(n);i++)
#define repr(i,n) for(ll i=(n-1);i>=0;i--)
#define pb push_back
#define mp make_pair
#define all(x) x.begin(),x.end()
#define br cout << endl;
using namespace std;
const int INF = 1e9;
const int MOD = 1e9+7;
using Graph = vector<vecto... | 21.883117 | 95 | 0.409496 | zaurus-yusya |
542ba87482e729829ee49a56bf852a3f823cd7bc | 914 | hpp | C++ | include/cppurses/widget/widgets/vertical_scrollbar.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/widget/widgets/vertical_scrollbar.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | include/cppurses/widget/widgets/vertical_scrollbar.hpp | jktjkt/CPPurses | 652d702258db8fab55ae945f7bb38e0b7c29521b | [
"MIT"
] | null | null | null | #ifndef CPPURSES_WIDGET_WIDGETS_VERTICAL_SCROLLBAR_HPP
#define CPPURSES_WIDGET_WIDGETS_VERTICAL_SCROLLBAR_HPP
#include <signals/signal.hpp>
#include <cppurses/widget/layouts/vertical_layout.hpp>
#include <cppurses/widget/widget.hpp>
#include <cppurses/widget/widgets/push_button.hpp>
#include <cppurses/widget/widgets/t... | 29.483871 | 66 | 0.756018 | jktjkt |
542dca45b8b1dccfd04973871657bcadc3ffd782 | 304 | hpp | C++ | compat/cqit/qitype/anyfunction.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 61 | 2015-01-08T08:05:28.000Z | 2022-01-07T16:47:47.000Z | compat/cqit/qitype/anyfunction.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 30 | 2015-04-06T21:41:18.000Z | 2021-08-18T13:24:51.000Z | compat/cqit/qitype/anyfunction.hpp | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 64 | 2015-02-23T20:01:11.000Z | 2022-03-14T13:31:20.000Z | /*
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2014 Aldebaran
*/
#ifndef _QITYPE_ANYFUNCTION_HPP_
# define _QITYPE_ANYFUNCTION_HPP_
#include <qi/anyfunction.hpp>
#include <qi/macro.hpp>
QI_DEPRECATED_HEADER("Please use qi/anyfunction.hpp instead");
#endif
| 16.888889 | 62 | 0.740132 | arntanguy |
542ede783f441df6159ce024b3ce24ab47e43e44 | 315 | cpp | C++ | test/doublelinkedlist_test.cpp | thm-mni-ii/sea | 3d3f63c3d17ab91f0aaada3c4315ba98367a3460 | [
"MIT"
] | 17 | 2019-01-03T11:17:31.000Z | 2021-10-31T19:19:41.000Z | test/doublelinkedlist_test.cpp | thm-mni-ii/sea | 3d3f63c3d17ab91f0aaada3c4315ba98367a3460 | [
"MIT"
] | 106 | 2018-03-03T16:37:17.000Z | 2020-08-31T09:24:52.000Z | test/doublelinkedlist_test.cpp | thm-mni-ii/sea | 3d3f63c3d17ab91f0aaada3c4315ba98367a3460 | [
"MIT"
] | 4 | 2018-05-21T13:30:01.000Z | 2019-06-12T07:43:43.000Z | #include <gtest/gtest.h>
#include "../src/collection/largedoublelinkedlist.h"
using namespace Sealib; // NOLINT
TEST(DoubleLinkedListTest, basic) {
LargeDoubleLinkedList l(10);
EXPECT_FALSE(l.isEmpty());
EXPECT_EQ(l.get(), 0);
EXPECT_EQ(l.get(), 1);
l.remove(2);
EXPECT_EQ(l.get(), 3);
}
| 22.5 | 52 | 0.663492 | thm-mni-ii |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.