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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b853fe419af44df595c6f7578cba19f28e633cf | 1,135 | cpp | C++ | src/server/domain/monster.cpp | hjaremko/asciinem | 8f3c39d50adcc133361e8a239dbf0b198876edf3 | [
"MIT"
] | null | null | null | src/server/domain/monster.cpp | hjaremko/asciinem | 8f3c39d50adcc133361e8a239dbf0b198876edf3 | [
"MIT"
] | 13 | 2020-12-11T15:58:18.000Z | 2022-01-26T13:08:10.000Z | src/server/domain/monster.cpp | hjaremko/asciinem | 8f3c39d50adcc133361e8a239dbf0b198876edf3 | [
"MIT"
] | null | null | null |
#include "server/domain/monster.hpp"
#include <utility>
namespace asciinem::server::domain
{
monster::monster( std::string name,
asciinem::server::domain::entity::position_type position,
int level,
move_strategy::pointer strategy )
: entity( std::move( name ... | 23.163265 | 75 | 0.607048 | hjaremko |
3b8570b57474c122b44a6915d9975d7bfd83e575 | 4,901 | cpp | C++ | np2-rwg/lib/utility.cpp | rightson/network-programming | e656ad08db412c6bbc630f9353bcc5ad61de4f73 | [
"MIT"
] | null | null | null | np2-rwg/lib/utility.cpp | rightson/network-programming | e656ad08db412c6bbc630f9353bcc5ad61de4f73 | [
"MIT"
] | null | null | null | np2-rwg/lib/utility.cpp | rightson/network-programming | e656ad08db412c6bbc630f9353bcc5ad61de4f73 | [
"MIT"
] | null | null | null | #include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h> // inet_ntoa
#include <fcntl.h> // O_WRONLY
#include <sys/stat.h> // mkfifo
#include <sys/wait.h> // waitpid
#include <sstream>
#include "utility.hpp"
void die(const char *format, ...) {
... | 28.660819 | 105 | 0.620894 | rightson |
3b8581326ed18454d7b50faca794619941900ebe | 6,691 | cpp | C++ | source/vulkan/vulkan_impl_command_list_immediate.cpp | ShalokShalom/reshade | 41ac2872c3663f93ce36b496ae582c68038b5c6b | [
"BSD-3-Clause"
] | null | null | null | source/vulkan/vulkan_impl_command_list_immediate.cpp | ShalokShalom/reshade | 41ac2872c3663f93ce36b496ae582c68038b5c6b | [
"BSD-3-Clause"
] | null | null | null | source/vulkan/vulkan_impl_command_list_immediate.cpp | ShalokShalom/reshade | 41ac2872c3663f93ce36b496ae582c68038b5c6b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2021 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "dll_log.hpp"
#include "vulkan_impl_device.hpp"
#include "vulkan_impl_command_list_immediate.hpp"
#define vk _device_impl->_dispatch_table
reshade::vulkan::command_list_immediate_impl::com... | 39.128655 | 158 | 0.785533 | ShalokShalom |
3b871bc2b6e5a37375ce8bf437ad16d080f95a1d | 1,590 | cpp | C++ | JSLAMPLUS/jslam/main.cpp | Johk3/JSLAM | 19072c2058effef861964849fae3c6e9b4e37aaa | [
"MIT"
] | 4 | 2019-02-21T17:28:02.000Z | 2021-01-09T21:29:58.000Z | JSLAMPLUS/jslam/main.cpp | Johk3/JSLAM | 19072c2058effef861964849fae3c6e9b4e37aaa | [
"MIT"
] | null | null | null | JSLAMPLUS/jslam/main.cpp | Johk3/JSLAM | 19072c2058effef861964849fae3c6e9b4e37aaa | [
"MIT"
] | 2 | 2019-02-21T17:28:01.000Z | 2019-02-21T19:50:13.000Z | #include <opencv2/highgui.hpp>
#include "opencv2/imgproc.hpp"
#include "opencv2/video/background_segm.hpp"
#include "opencv2/video/tracking.hpp"
#include "opencv2/xfeatures2d.hpp"
#include "opencv2/core.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/imgcodecs.hpp"
#include <iostream>
int main( int argc, cha... | 26.949153 | 71 | 0.613208 | Johk3 |
3b8aa1cfbbb77793737f9aeda63a1e31a88f0a79 | 1,365 | cpp | C++ | src/Boundaries.cpp | lzanotto/mo802-spitz | 3d3ce9f0fa6d345bd309aea5e2f4f64a8a4f4714 | [
"Apache-2.0"
] | 175 | 2015-01-03T21:50:11.000Z | 2022-03-07T00:20:08.000Z | src/Boundaries.cpp | KsGin-Fork/RayTracer | 4c9f2dd389ace5f7601af367d2aa0e8db70b2b7d | [
"Apache-2.0"
] | 4 | 2016-08-04T10:13:04.000Z | 2020-10-26T09:36:35.000Z | src/Boundaries.cpp | KsGin-Fork/RayTracer | 4c9f2dd389ace5f7601af367d2aa0e8db70b2b7d | [
"Apache-2.0"
] | 49 | 2015-03-04T16:13:21.000Z | 2022-02-23T00:27:13.000Z | #include "Boundaries.h"
#include <algorithm>
// Returns the center value for the given axis.
double Boundaries::splitValue(char axis) {
switch(axis) {
case 'x': return (min.x + max.x) / 2;
case 'y': return (min.y + max.y) / 2;
case 'z': return (min.z + max.z) / 2;
default: return 0.0f;
}
... | 31.744186 | 91 | 0.610256 | lzanotto |
3b8abc6d420ee3610025dd6971cd8f66493760b6 | 3,378 | cpp | C++ | doc/source/tutorial/1_basic_concepts/src/main_basic_concepts.cpp | saw368/CARLsim5 | ba359f87e52f30341ea8332ed8f3e5af846c2687 | [
"MIT"
] | 18 | 2020-07-21T00:30:51.000Z | 2022-01-14T20:21:56.000Z | doc/source/tutorial/1_basic_concepts/src/main_basic_concepts.cpp | saw368/CARLsim5 | ba359f87e52f30341ea8332ed8f3e5af846c2687 | [
"MIT"
] | 17 | 2020-08-19T15:27:56.000Z | 2022-02-26T12:18:11.000Z | doc/source/tutorial/1_basic_concepts/src/main_basic_concepts.cpp | saw368/CARLsim5 | ba359f87e52f30341ea8332ed8f3e5af846c2687 | [
"MIT"
] | 11 | 2020-07-28T21:17:05.000Z | 2022-03-07T20:30:13.000Z | /* * Copyright (c) 2016 Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, ... | 37.533333 | 99 | 0.686205 | saw368 |
3b8b33e8cec99b68443f36733fc39c985892f2cc | 1,370 | hpp | C++ | include/fc/log/gelf_appender.hpp | abitmore/mandel-fc | 9cf22cfe5976bb093528cbde500ab3bcc64dfa5a | [
"MIT"
] | 2 | 2022-01-17T23:48:26.000Z | 2022-01-17T23:48:50.000Z | include/fc/log/gelf_appender.hpp | abitmore/mandel-fc | 9cf22cfe5976bb093528cbde500ab3bcc64dfa5a | [
"MIT"
] | 1 | 2022-01-06T20:17:15.000Z | 2022-01-06T20:17:15.000Z | include/fc/log/gelf_appender.hpp | abitmore/mandel-fc | 9cf22cfe5976bb093528cbde500ab3bcc64dfa5a | [
"MIT"
] | 3 | 2022-01-31T22:49:12.000Z | 2022-02-28T18:16:58.000Z | #pragma once
#include <fc/log/appender.hpp>
#include <fc/log/logger.hpp>
#include <fc/time.hpp>
#include <regex>
namespace fc
{
// Log appender that sends log messages in JSON format over UDP
// https://www.graylog2.org/resources/gelf/specification
class gelf_appender final : public appender
{
public:
... | 29.782609 | 132 | 0.686131 | abitmore |
3b8de2709b87a38719a43e3d0d43c1497f16ed9a | 3,370 | hpp | C++ | simulation/traffic_simulator/include/traffic_simulator/math/hermite_curve.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | null | null | null | simulation/traffic_simulator/include/traffic_simulator/math/hermite_curve.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | null | null | null | simulation/traffic_simulator/include/traffic_simulator/math/hermite_curve.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2015-2020 Tier IV, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | 41.604938 | 93 | 0.760831 | WJaworskiRobotec |
3b8e317d40b0d15d4fdade9d70e5392190717415 | 767 | cc | C++ | Regex.cc | Phoenix500526/T-Reg | 8f9a79d0e117ec63b2ffc848bdce6a2c440ff5c1 | [
"MIT"
] | null | null | null | Regex.cc | Phoenix500526/T-Reg | 8f9a79d0e117ec63b2ffc848bdce6a2c440ff5c1 | [
"MIT"
] | null | null | null | Regex.cc | Phoenix500526/T-Reg | 8f9a79d0e117ec63b2ffc848bdce6a2c440ff5c1 | [
"MIT"
] | null | null | null | #include "Regex.h"
#include <string.h>
#include "ASTBuilder.h"
namespace treg {
Regex::Regex(const char* regex) { Compile(regex); }
Regex::Regex(const std::string& regex) { Compile(regex); }
bool Regex::Compile(const char* regex) { return Compile(regex, strlen(regex)); }
bool Regex::Compile(const char* regex, std::... | 27.392857 | 80 | 0.706649 | Phoenix500526 |
3b8ee442e4fd95d3b24ad998976be842e1638f71 | 5,010 | cpp | C++ | sanity/unit/ComputeFunction_unittest.cpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | 3 | 2015-01-09T08:15:28.000Z | 2019-05-24T08:34:04.000Z | sanity/unit/ComputeFunction_unittest.cpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | null | null | null | sanity/unit/ComputeFunction_unittest.cpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Soumyajit De
*
* 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,... | 29.298246 | 86 | 0.688822 | lambday |
3b9027e84e808aa0513dd18b0f066437ed41c0c9 | 4,364 | cpp | C++ | src/kernel/os.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | src/kernel/os.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | src/kernel/os.cpp | justinc1/IncludeOS | 2ce07b04e7a35c8d96e773f041db32a4593ca3d0 | [
"Apache-2.0"
] | null | null | null | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2017 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// Yo... | 27.275 | 87 | 0.702796 | justinc1 |
3b947c5bcbb6cd75aaa79ede278f45f400908dd1 | 14,971 | cc | C++ | chromium/components/policy/core/common/cloud/cloud_policy_validator_unittest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/components/policy/core/common/cloud/cloud_policy_validator_unittest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/components/policy/core/common/cloud/cloud_policy_validator_unittest.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 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 "components/policy/core/common/cloud/cloud_policy_validator.h"
#include <stdint.h>
#include <utility>
#include <vector>
#include "base/bind... | 38.094148 | 80 | 0.772961 | wedataintelligence |
3b97ac6c3bf82e29620f29be6892e404d66a2a79 | 656 | cpp | C++ | Pbinfo/Cifre4.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/Cifre4.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/Cifre4.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
void sortare(int n, int a[], int b[]){
for(int i=0; i<n; i++)
for(int j=i; j<=n; j++){
if(b[i]>b[j]){
swap(a[i], a[j]);
swap(b[i], b[j]);
}
else if(b[i]==b[j] && a[i]>a[j]) swap(a[i], a[j]);
... | 16 | 62 | 0.356707 | Al3x76 |
3b998dcf30bdf1043fcee76236d2c2bc85631cb9 | 693 | cc | C++ | src/ui.cc | rfdickerson/Hodhr | 261ee0fc96c203487a428b8cf82550615eef7c43 | [
"MIT"
] | null | null | null | src/ui.cc | rfdickerson/Hodhr | 261ee0fc96c203487a428b8cf82550615eef7c43 | [
"MIT"
] | null | null | null | src/ui.cc | rfdickerson/Hodhr | 261ee0fc96c203487a428b8cf82550615eef7c43 | [
"MIT"
] | null | null | null | // Copyright Robert Dickerson 2014
# <memory>
# <utility>
# <vector>
# "include/common.h"
# "include/ui.h"
# "include/uiwidget.h"
namespace Hodhr {
UI::UI() {}
UI::UI(unsigned int width, unsigned int height) {
this->width_ = width;
this->height_ = height;
}
UI::~UI() {
}
void UI::addWidge... | 18.72973 | 68 | 0.591631 | rfdickerson |
3b99c0f1205b9c415278c9d74dc320fc9164d082 | 13,022 | cpp | C++ | src/cpu/kernels/activation/generic/sve2/qasymm8.cpp | hixio-mh/ComputeLibrary | 8f587de9214dbc3aee4ff4eeb2ede66747769b19 | [
"MIT"
] | 1 | 2022-03-18T19:50:04.000Z | 2022-03-18T19:50:04.000Z | src/cpu/kernels/activation/generic/sve2/qasymm8.cpp | hixio-mh/ComputeLibrary | 8f587de9214dbc3aee4ff4eeb2ede66747769b19 | [
"MIT"
] | null | null | null | src/cpu/kernels/activation/generic/sve2/qasymm8.cpp | hixio-mh/ComputeLibrary | 8f587de9214dbc3aee4ff4eeb2ede66747769b19 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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... | 51.470356 | 216 | 0.56873 | hixio-mh |
3b9a6830b09342576c08dab33655fd7bfd618b4a | 12,075 | cpp | C++ | app/src/main/jni/jni_jpegstream/src/jpegstream.cpp | EsmaeeilMoradi/AOSPGallery4AS | 3c0e1f598e3425caf491255ca8391c674e56707f | [
"MIT"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | app/src/main/jni/jni_jpegstream/src/jpegstream.cpp | EsmaeeilMoradi/AOSPGallery4AS | 3c0e1f598e3425caf491255ca8391c674e56707f | [
"MIT"
] | null | null | null | app/src/main/jni/jni_jpegstream/src/jpegstream.cpp | EsmaeeilMoradi/AOSPGallery4AS | 3c0e1f598e3425caf491255ca8391c674e56707f | [
"MIT"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | /*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 31.944444 | 80 | 0.637764 | EsmaeeilMoradi |
3b9e7922e016ce892a384b8f6dcb84d827365121 | 1,214 | cpp | C++ | c2c/Builder/Recipe.cpp | sagpant/c2compiler | ea7d15af982c68c42825cdf85e7e0b03c07c9640 | [
"Apache-2.0"
] | null | null | null | c2c/Builder/Recipe.cpp | sagpant/c2compiler | ea7d15af982c68c42825cdf85e7e0b03c07c9640 | [
"Apache-2.0"
] | null | null | null | c2c/Builder/Recipe.cpp | sagpant/c2compiler | ea7d15af982c68c42825cdf85e7e0b03c07c9640 | [
"Apache-2.0"
] | 2 | 2020-05-21T23:57:57.000Z | 2020-06-02T15:00:29.000Z | /* Copyright 2013-2020 Bas van den Berg
*
* 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 agr... | 28.904762 | 75 | 0.689456 | sagpant |
3b9ecd0f26c3f29faa8b69e2b2bd11cd796856e1 | 13,095 | cpp | C++ | src/core/qgsvectorlayercache.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/core/qgsvectorlayercache.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/core/qgsvectorlayercache.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
qgsvectorlayercache.cpp
Cache features of a vector layer
-------------------
begin : January 2013
copyright : (C) Matthias Kuhn
email : matthias at opengis dot ch
****... | 28.040685 | 142 | 0.668958 | dyna-mis |
3b9fa7492de9d948ad7fd05f48539c2934e28883 | 5,757 | cpp | C++ | Code/ShaderProgram.cpp | spencerparkin/TwistyPuzzle | 76669ef2e331c34c15211272c94040c242bdd37d | [
"MIT"
] | 6 | 2017-01-30T17:51:43.000Z | 2020-10-09T19:53:21.000Z | Code/ShaderProgram.cpp | spencerparkin/TwistyPuzzle | 76669ef2e331c34c15211272c94040c242bdd37d | [
"MIT"
] | 2 | 2017-01-18T08:49:36.000Z | 2017-02-06T06:49:10.000Z | Code/ShaderProgram.cpp | spencerparkin/TwistyPuzzle | 76669ef2e331c34c15211272c94040c242bdd37d | [
"MIT"
] | null | null | null | // ShaderProgram.cpp
#include <GL/glew.h>
#include "ShaderProgram.h"
#include "Application.h"
#include "Frame.h"
#include <wx/glcanvas.h>
#include <wx/file.h>
#include <wx/filename.h>
#include <wx/msgdlg.h>
ShaderProgram::ShaderProgram( void )
{
program = 0;
fragmentShader = 0;
vertexShader = 0;
}
/*virtual*/ Sha... | 22.845238 | 167 | 0.692896 | spencerparkin |
3b9fef178cd33e0eccc8c75a1dfc803a0dd6efd4 | 1,974 | cpp | C++ | topcoder/srm/src/SRM622/FibonacciDiv2.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | topcoder/srm/src/SRM622/FibonacciDiv2.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | topcoder/srm/src/SRM622/FibonacciDiv2.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
class FibonacciDiv2 {
public:
int find(int N)
{
const int M = 10000;
lli f[M];
f[0] = 0;
... | 35.25 | 308 | 0.56231 | Johniel |
3ba2675e0d06d3d6ad0f3d78009abb6e4cc68957 | 902 | cpp | C++ | 02-table/tests/test_fill.cpp | MKuranowski/STUD-PROI | 9c72f96ab57ba00cca2808c494428cf0cf642bcd | [
"MIT"
] | null | null | null | 02-table/tests/test_fill.cpp | MKuranowski/STUD-PROI | 9c72f96ab57ba00cca2808c494428cf0cf642bcd | [
"MIT"
] | null | null | null | 02-table/tests/test_fill.cpp | MKuranowski/STUD-PROI | 9c72f96ab57ba00cca2808c494428cf0cf642bcd | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "../table.h"
TEST(fill, simple3x3) {
Table e{{3, 5, 6}, {9, 2, 4}, {7, 8, 1}};
Table t;
fillTable(t, 3, 3);
EXPECT_EQ(t, e);
}
TEST(fill, simple5x4) {
Table e{{8, 11, 13, 14},
{4, 7, 10, 12},
{20, 3, 6, 9},
{17, 19, 2, 5},
... | 18.04 | 45 | 0.457871 | MKuranowski |
3ba2c813ebaf581f07e6f8c104775d26d78dce86 | 536 | cpp | C++ | URI/Ad-Hoc/1574.cpp | danielcunhaa/Competitive-Programming | 6868a8dfb8000fd10650a692c548a86272f19735 | [
"MIT"
] | 1 | 2021-04-03T11:17:33.000Z | 2021-04-03T11:17:33.000Z | URI/Ad-Hoc/1574.cpp | danielcunhaa/Competitive-Programming | 6868a8dfb8000fd10650a692c548a86272f19735 | [
"MIT"
] | null | null | null | URI/Ad-Hoc/1574.cpp | danielcunhaa/Competitive-Programming | 6868a8dfb8000fd10650a692c548a86272f19735 | [
"MIT"
] | 1 | 2020-07-24T15:27:46.000Z | 2020-07-24T15:27:46.000Z | #include <iostream>
#include <cstdio>
#include <vector>
using std::cin;
using std::cout;
using std::string;
int main()
{
int T, N, p, i;
string tmp;
scanf("%d", &T);
while(T--)
{
std::vector<int> v;
p = 0;
scanf("%d", &N);
cin.ignore();
while(N--)
{
cin >> tmp;
if(tmp == "LEFT")
{
--p... | 11.404255 | 26 | 0.462687 | danielcunhaa |
3ba4d4494bcac3cd44e35dc3b064425f1c1d89de | 2,527 | cc | C++ | lib/support/stack_trace.cc | sarvex/tensorflow-runtime | 39a1871e2267bd30810df1a550366babe002b615 | [
"Apache-2.0"
] | 669 | 2020-04-29T16:05:30.000Z | 2022-03-30T06:42:36.000Z | lib/support/stack_trace.cc | sloppyjuicy/runtime | 84b400aceb9bae054ff72e1fcd95e15daf910c2d | [
"Apache-2.0"
] | 76 | 2020-04-30T09:23:04.000Z | 2022-03-24T16:21:18.000Z | lib/support/stack_trace.cc | sloppyjuicy/runtime | 84b400aceb9bae054ff72e1fcd95e15daf910c2d | [
"Apache-2.0"
] | 108 | 2020-04-29T18:06:09.000Z | 2022-03-31T15:53:54.000Z | // Copyright 2020 The TensorFlow Runtime Authors
//
// 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 ... | 29.045977 | 75 | 0.700435 | sarvex |
3ba7d67562d8753edb2bbc5b551497669f09b294 | 2,305 | cpp | C++ | test/lambdapure/playground/out.cpp | bollu/lz | f5d09b70956072a56c1d9cc0e6907a0261c108a5 | [
"Apache-2.0"
] | 12 | 2020-12-12T17:54:33.000Z | 2022-01-12T00:34:37.000Z | test/lambdapure/playground/out.cpp | bollu/lz | f5d09b70956072a56c1d9cc0e6907a0261c108a5 | [
"Apache-2.0"
] | 23 | 2020-11-27T18:53:24.000Z | 2021-12-03T15:29:24.000Z | test/lambdapure/playground/out.cpp | bollu/lz | f5d09b70956072a56c1d9cc0e6907a0261c108a5 | [
"Apache-2.0"
] | 1 | 2020-12-12T17:56:56.000Z | 2020-12-12T17:56:56.000Z |
#include "runtime/lean.h"
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnos... | 22.821782 | 58 | 0.743167 | bollu |
3bac9edd3e207204994f707fa60dac9cc7eec706 | 3,757 | cpp | C++ | Homework3/BehaviorSimFramework/src/MainFrm.cpp | Zenologos/IDS6938-SimulationTechniques | b3630852b2edb3ec4e176b26f0de56b77b460a2a | [
"Apache-2.0"
] | null | null | null | Homework3/BehaviorSimFramework/src/MainFrm.cpp | Zenologos/IDS6938-SimulationTechniques | b3630852b2edb3ec4e176b26f0de56b77b460a2a | [
"Apache-2.0"
] | null | null | null | Homework3/BehaviorSimFramework/src/MainFrm.cpp | Zenologos/IDS6938-SimulationTechniques | b3630852b2edb3ec4e176b26f0de56b77b460a2a | [
"Apache-2.0"
] | null | null | null | // MainFrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "Behavior.h"
#include "MainFrm.h"
#include "BehaviorView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define PanelWidth 255
////////////////////////////////////////////////... | 23.778481 | 118 | 0.656375 | Zenologos |
3bacf72cec810dac1550092f9731888c45627ba4 | 1,322 | cpp | C++ | IME Starters Try-outs 2018/G-Greatest IME.cpp | Sohieeb/competitive-programming | fe3fca0d4d2a242053d097c7ae71667a135cfc45 | [
"MIT"
] | 1 | 2020-01-30T20:08:24.000Z | 2020-01-30T20:08:24.000Z | IME Starters Try-outs 2018/G-Greatest IME.cpp | Sohieb/competitive-programming | fe3fca0d4d2a242053d097c7ae71667a135cfc45 | [
"MIT"
] | null | null | null | IME Starters Try-outs 2018/G-Greatest IME.cpp | Sohieb/competitive-programming | fe3fca0d4d2a242053d097c7ae71667a135cfc45 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using namespace __gnu_cxx;
typedef double db;
typedef long long ll;
typedef pair<db, db> pdd;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
typedef unsigned long long ull;
#define F first
#define S second
#define pnl printf("\n")
#define ... | 22.793103 | 82 | 0.530257 | Sohieeb |
3badd1ed2edac79deea4c38d1112a6e584878fa5 | 9,468 | cpp | C++ | kratos/python/add_model_part_to_python.cpp | jiaqiwang969/Kratos-test | ed082abc163e7b627f110a1ae1da465f52f48348 | [
"BSD-4-Clause"
] | null | null | null | kratos/python/add_model_part_to_python.cpp | jiaqiwang969/Kratos-test | ed082abc163e7b627f110a1ae1da465f52f48348 | [
"BSD-4-Clause"
] | null | null | null | kratos/python/add_model_part_to_python.cpp | jiaqiwang969/Kratos-test | ed082abc163e7b627f110a1ae1da465f52f48348 | [
"BSD-4-Clause"
] | null | null | null | /*
==============================================================================
Kratos
A General Purpose Software for Multi-Physics Finite Element Analysis
Version 1.0 (Released on march 05, 2007).
Copyright 2007
Pooyan Dadvand, Riccardo Rossi
pooyan@cimne.upc.edu
rrossi@cimne.upc.edu
CIMNE (International Center for... | 38.024096 | 149 | 0.74831 | jiaqiwang969 |
3baf8d092fce18a876f5b5074798cb05dd2d4480 | 1,512 | cpp | C++ | src/tools99/string6.cpp | wStockhausen/admb | 876ec704ae974d0ed3bcc329f243dbc401ad0e6d | [
"BSD-3-Clause"
] | 79 | 2015-01-16T14:14:22.000Z | 2022-01-24T06:28:15.000Z | src/tools99/string6.cpp | wStockhausen/admb | 876ec704ae974d0ed3bcc329f243dbc401ad0e6d | [
"BSD-3-Clause"
] | 172 | 2015-01-21T01:53:57.000Z | 2022-03-29T19:57:31.000Z | src/tools99/string6.cpp | wStockhausen/admb | 876ec704ae974d0ed3bcc329f243dbc401ad0e6d | [
"BSD-3-Clause"
] | 22 | 2015-01-15T18:11:54.000Z | 2022-01-11T21:47:51.000Z | /**
@file
@author David Fournier
@copyright Copyright (c) 2008-2020 Regents of the University of California
@brief Utility functions for adstring.
*/
#include <adstring.hpp>
/**
Concatenate adstring u with unsigned char v.
\param u left hand side
\param v right hand side
*/
adstring operator+(const adstring& u, cons... | 18.439024 | 74 | 0.701058 | wStockhausen |
3bb0d9bf02ab1c70f8dbf03eba031bab2438ab04 | 1,429 | cpp | C++ | src/Events/Mouse.cpp | apodrugin/Sourcehold | c18c134eda7a9cf8efe55d8f780439e1b2a4c9aa | [
"MIT"
] | null | null | null | src/Events/Mouse.cpp | apodrugin/Sourcehold | c18c134eda7a9cf8efe55d8f780439e1b2a4c9aa | [
"MIT"
] | null | null | null | src/Events/Mouse.cpp | apodrugin/Sourcehold | c18c134eda7a9cf8efe55d8f780439e1b2a4c9aa | [
"MIT"
] | null | null | null | #include "Events/Mouse.h"
using namespace Sourcehold::Events;
Mouse::Mouse()
{
}
Mouse::~Mouse()
{
}
bool Mouse::LmbDown()
{
if(event.button.state == SDL_PRESSED && event.button.button == SDL_BUTTON_LEFT) return true;
return false;
}
bool Mouse::MmbDown()
{
if(event.button.state == SDL_PRESSED && eve... | 17.641975 | 99 | 0.649405 | apodrugin |
3bb197ba3f4097f0f85fb4f7071e6a3eb5aec151 | 7,745 | cpp | C++ | tests/loadstore.cpp | Steve132/std-simd | 31653668ded22df437b2173d3ad13dea2c3345f7 | [
"BSD-3-Clause"
] | 409 | 2019-05-08T09:10:55.000Z | 2022-03-27T20:56:07.000Z | tests/loadstore.cpp | Steve132/std-simd | 31653668ded22df437b2173d3ad13dea2c3345f7 | [
"BSD-3-Clause"
] | 32 | 2019-05-29T06:26:23.000Z | 2021-12-24T05:48:11.000Z | tests/loadstore.cpp | Steve132/std-simd | 31653668ded22df437b2173d3ad13dea2c3345f7 | [
"BSD-3-Clause"
] | 32 | 2019-06-26T00:19:08.000Z | 2022-03-19T12:30:35.000Z | /*{
Copyright © 2016-2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
Matthias Kretz <m.kretz@gsi.de>
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 re... | 33.528139 | 80 | 0.607747 | Steve132 |
3bb82e8ccfcf489a410625500805f375e6d2ce52 | 2,428 | cpp | C++ | src/shader.cpp | Sirflankalot/Bomberman | 7f2fa5cf657672e070e8850233c9a36a0b480b2f | [
"Apache-2.0"
] | null | null | null | src/shader.cpp | Sirflankalot/Bomberman | 7f2fa5cf657672e070e8850233c9a36a0b480b2f | [
"Apache-2.0"
] | null | null | null | src/shader.cpp | Sirflankalot/Bomberman | 7f2fa5cf657672e070e8850233c9a36a0b480b2f | [
"Apache-2.0"
] | null | null | null | #include <GL/glew.h>
#include "shader.hpp"
#include "util.hpp"
#include <exception>
#include <iostream>
#include <sstream>
Shader_Program::Shader_Program() {
this->program = glCreateProgram();
}
void Shader_Program::add(const char* filename, Shader::shadertype_t type) {
GLenum new_type = 0;
switch (type) {
cas... | 23.12381 | 97 | 0.697282 | Sirflankalot |
3bb8eddd3363495b44f89ed84c03525240d0634e | 6,416 | cpp | C++ | communication/decoder.cpp | tysonite/libicsneo | 2a47b6f179699f67dc8c39634ea245c49b02ec0f | [
"BSD-3-Clause"
] | null | null | null | communication/decoder.cpp | tysonite/libicsneo | 2a47b6f179699f67dc8c39634ea245c49b02ec0f | [
"BSD-3-Clause"
] | null | null | null | communication/decoder.cpp | tysonite/libicsneo | 2a47b6f179699f67dc8c39634ea245c49b02ec0f | [
"BSD-3-Clause"
] | null | null | null | #include "icsneo/communication/decoder.h"
#include "icsneo/communication/communication.h"
#include "icsneo/communication/message/serialnumbermessage.h"
#include "icsneo/communication/message/resetstatusmessage.h"
#include "icsneo/communication/message/readsettingsmessage.h"
#include "icsneo/communication/command.h"
#in... | 41.662338 | 110 | 0.678928 | tysonite |
3bb99a80ece30631ca12d9c95f5a61d40e457070 | 583 | hpp | C++ | Include/SockServer.hpp | kwiato88/sock | fff7ab7d2a0183bfbb7db45ac7d298f2980825f2 | [
"MIT"
] | null | null | null | Include/SockServer.hpp | kwiato88/sock | fff7ab7d2a0183bfbb7db45ac7d298f2980825f2 | [
"MIT"
] | null | null | null | Include/SockServer.hpp | kwiato88/sock | fff7ab7d2a0183bfbb7db45ac7d298f2980825f2 | [
"MIT"
] | null | null | null | //This code is under MIT licence, you can find the complete file here: https://github.com/kwiato88/sock/blob/master/LICENSE
#pragma once
#include <string>
#include <memory>
#include "SockListeningSocket.hpp"
#include "SockConnection.hpp"
namespace sock
{
class Server
{
public:
/**
* throws Error
*... | 18.21875 | 124 | 0.67753 | kwiato88 |
3bbae5d44f5b85c4e47398acdb93bf11b4935b23 | 921 | cc | C++ | 2_Programmieraufgabe/main2.cc | j3l4ck0ut/UdemyCpp | ed3b75cedbf9cad211a205195605cfd3c9280efc | [
"MIT"
] | null | null | null | 2_Programmieraufgabe/main2.cc | j3l4ck0ut/UdemyCpp | ed3b75cedbf9cad211a205195605cfd3c9280efc | [
"MIT"
] | null | null | null | 2_Programmieraufgabe/main2.cc | j3l4ck0ut/UdemyCpp | ed3b75cedbf9cad211a205195605cfd3c9280efc | [
"MIT"
] | null | null | null | #include <iostream>
#include "exercise2.h"
// int main()
int main()
{
int *my_data = nullptr;
unsigned int size = 3;
my_data = new int[size];
my_data[0] = 0;
my_data[1] = 1;
my_data[2] = 2; // int main()
std::cout << "Start-values of the array: " << std::endl;
for (unsigned int i = 0... | 19.595745 | 61 | 0.508143 | j3l4ck0ut |
3bbbae6f50d55e5f315ffaee127a291aea2abbb2 | 6,504 | cc | C++ | chromium/chrome/browser/task_manager/extension_information.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/browser/task_manager/extension_information.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/chrome/browser/task_manager/extension_information.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 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/browser/task_manager/extension_information.h"
#include <stddef.h>
#include "base/macros.h"
#include "base/strings/string16.h"
#include ... | 37.37931 | 80 | 0.720787 | wedataintelligence |
3bc0154c0c52a3e21f9b564b3fdd0970caf6bd94 | 7,430 | cc | C++ | src/tritonsort/mapreduce/workers/tupledemux/TupleDemux.cc | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | 11 | 2015-12-14T05:35:17.000Z | 2021-11-08T22:02:32.000Z | src/tritonsort/mapreduce/workers/tupledemux/TupleDemux.cc | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | null | null | null | src/tritonsort/mapreduce/workers/tupledemux/TupleDemux.cc | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | 8 | 2015-12-22T19:31:16.000Z | 2020-12-15T12:09:00.000Z | #include <boost/bind.hpp>
#include "core/MemoryUtils.h"
#include "mapreduce/common/KeyValuePair.h"
#include "mapreduce/common/PartialKVPairWriter.h"
#include "mapreduce/common/PartitionFunctionInterface.h"
#include "mapreduce/common/buffers/KVPairBuffer.h"
#include "mapreduce/common/buffers/ListableKVPairBuffer.h"
#in... | 35.89372 | 88 | 0.73284 | anku94 |
3bc2701501bd1cf63d2e04504dd315c3acd18f2d | 1,550 | cpp | C++ | LeetCode/103 - Binary Tree Zigzag Level Order Traversal.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | LeetCode/103 - Binary Tree Zigzag Level Order Traversal.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | LeetCode/103 - Binary Tree Zigzag Level Order Traversal.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | // https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
// Can also be done via 102 Level Order Traversal method, and reverse alternating vectors.
class Solution {
public:
vector<vector<int>> zigzagLevelOrder(TreeNode* root) {
vector<vector<int>> zzlo;
if (!roo... | 27.678571 | 90 | 0.447742 | GokulVSD |
3bc3499be9aa2964be073ffc1c2fc1cff7029945 | 84,074 | cpp | C++ | librtt/Display/Rtt_LuaLibDisplay.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 1,968 | 2018-12-30T21:14:22.000Z | 2022-03-31T23:48:16.000Z | librtt/Display/Rtt_LuaLibDisplay.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 303 | 2019-01-02T19:36:43.000Z | 2022-03-31T23:52:45.000Z | librtt/Display/Rtt_LuaLibDisplay.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 254 | 2019-01-02T19:05:52.000Z | 2022-03-30T06:32:28.000Z | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: support@coronalabs.com
//
////////////////////////... | 28.071452 | 164 | 0.66451 | agramonte |
3bc38704cb1d4c2d9e9698e85ba7d7668c5400f9 | 13,701 | hpp | C++ | ThirdParty/oglplus-develop/include/oglplus/uniform_subroutines.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | ThirdParty/oglplus-develop/include/oglplus/uniform_subroutines.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | ThirdParty/oglplus-develop/include/oglplus/uniform_subroutines.hpp | vif/3D-STG | 721402e76a9b9b99b88ba3eb06beb6abb17a9254 | [
"MIT"
] | null | null | null | /**
* @file oglplus/uniform_subroutines.hpp
* @brief Wrapper for uniform subroutine operations
*
* @author Matus Chochlik
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_... | 22.911371 | 76 | 0.735786 | vif |
3bc656d70cbf55d0a0e2624da0ea168e7eb57d87 | 616 | cc | C++ | src/abc213/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc213/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc213/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
#ifndef _debug
int main() {
ll h, w, n;
cin >> h >> w >> n;
vector<ll> a(n), b(n);
for(int i = 0; i < n; i++) {
cin >> a[i] >> b[i];
}
set<ll> r, c;
for(int i = 0; i < n; i++) {
r.insert(a[i]);
c.ins... | 18.666667 | 56 | 0.397727 | nryotaro |
3bc6f8ddb097132f8ba9d386a8b5f4aaef21ac03 | 3,067 | hpp | C++ | external/bsd/kyua-cli/dist/engine/drivers/debug_test.hpp | calmsacibis995/minix | dfba95598f553b6560131d35a76658f1f8c9cf38 | [
"Unlicense"
] | null | null | null | external/bsd/kyua-cli/dist/engine/drivers/debug_test.hpp | calmsacibis995/minix | dfba95598f553b6560131d35a76658f1f8c9cf38 | [
"Unlicense"
] | null | null | null | external/bsd/kyua-cli/dist/engine/drivers/debug_test.hpp | calmsacibis995/minix | dfba95598f553b6560131d35a76658f1f8c9cf38 | [
"Unlicense"
] | null | null | null | // Copyright 2011 Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and... | 36.951807 | 78 | 0.73655 | calmsacibis995 |
3bc8e22408de0785bc50e9c5fd6d2d3ac2c52a63 | 4,515 | cpp | C++ | thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.cpp | malmerey/fbthrift | 2984cccced9aa5f430598974b6256fcca73e500a | [
"Apache-2.0"
] | null | null | null | thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.cpp | malmerey/fbthrift | 2984cccced9aa5f430598974b6256fcca73e500a | [
"Apache-2.0"
] | null | null | null | thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.cpp | malmerey/fbthrift | 2984cccced9aa5f430598974b6256fcca73e500a | [
"Apache-2.0"
] | null | null | null | /**
* Autogenerated by Thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.h"
#include "thrift/compiler/test/fixtures/basic/gen-cpp2/MyServicePrioParent.tcc"
#include <thrift/lib/cpp2/gen/service_cp... | 42.196262 | 311 | 0.786932 | malmerey |
3bc955ba95afee0784bc167b1542bd9390d83dd9 | 2,163 | cc | C++ | riscos/libs/tbx/tbx/optionbutton.cc | riscoscloverleaf/chatcube | a7184ef76108f90a74a88d3183a3d21c1249a0f5 | [
"MIT"
] | null | null | null | riscos/libs/tbx/tbx/optionbutton.cc | riscoscloverleaf/chatcube | a7184ef76108f90a74a88d3183a3d21c1249a0f5 | [
"MIT"
] | null | null | null | riscos/libs/tbx/tbx/optionbutton.cc | riscoscloverleaf/chatcube | a7184ef76108f90a74a88d3183a3d21c1249a0f5 | [
"MIT"
] | null | null | null | /*
* tbx RISC OS toolbox library
*
* Copyright (C) 2010 Alan Buckley All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including with... | 32.283582 | 95 | 0.73509 | riscoscloverleaf |
3bcb4804632671983b95c5a24b7b502affc8182a | 484 | cpp | C++ | ads-2021.2/estrutura-dados-l/listas/lista-01/q14-sexo.cpp | rsmwall/ifpi-ads-course | ce741086743c6cf9069d8b84e9e6cdd467a19e3f | [
"MIT"
] | 1 | 2021-09-07T00:06:43.000Z | 2021-09-07T00:06:43.000Z | ads-2021.2/estrutura-dados-l/listas/lista-01/q14-sexo.cpp | rsmwall/ifpi-ads-course | ce741086743c6cf9069d8b84e9e6cdd467a19e3f | [
"MIT"
] | null | null | null | ads-2021.2/estrutura-dados-l/listas/lista-01/q14-sexo.cpp | rsmwall/ifpi-ads-course | ce741086743c6cf9069d8b84e9e6cdd467a19e3f | [
"MIT"
] | null | null | null | /* Leia uma letra e verifique se letra é "F" e escreva “F – Feminino” ou “M” e escreva “M – Masculino”,
se não for nem F ou M, escreva “Sexo Inválido” */
#include <stdio.h>
int main(){
char sexo;
printf("Digite a letra referente ao sexo: ");
scanf("%s", &sexo);
if(sexo =='f' || sexo == 'F'){
... | 24.2 | 103 | 0.539256 | rsmwall |
3bcb5d5e03703ef0e08ba991e8649916e8ca8b64 | 11,670 | cpp | C++ | lugre/baselib/ois/src/win32/extras/WiiMote/OISWiiMote.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | 1 | 2020-10-18T14:33:05.000Z | 2020-10-18T14:33:05.000Z | lugre/baselib/ois/src/win32/extras/WiiMote/OISWiiMote.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | lugre/baselib/ois/src/win32/extras/WiiMote/OISWiiMote.cpp | ghoulsblade/vegaogre | 2ece3b799f9bd667f081d47c1a0f3ef5e78d3e0f | [
"MIT"
] | null | null | null | #include "OISConfig.h"
#ifdef OIS_WIN32_WIIMOTE_SUPPORT
/*
The zlib/libpng License
Copyright (c) 2005-2007 Phillip Castaneda (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no event will
the authors be held liable for any damages arising from the use of ... | 31.203209 | 106 | 0.666153 | ghoulsblade |
3bcbed51825bbf633e90d415b4154702fea6dc21 | 6,582 | cc | C++ | cvmfs/receiver/params.cc | samysweb/cvmfs | 50dab0e15d465be246bfa8ff7ba02462d0cb06e7 | [
"BSD-3-Clause"
] | null | null | null | cvmfs/receiver/params.cc | samysweb/cvmfs | 50dab0e15d465be246bfa8ff7ba02462d0cb06e7 | [
"BSD-3-Clause"
] | null | null | null | cvmfs/receiver/params.cc | samysweb/cvmfs | 50dab0e15d465be246bfa8ff7ba02462d0cb06e7 | [
"BSD-3-Clause"
] | null | null | null | /**
* This file is part of the CernVM File System.
*/
#include "params.h"
#include <vector>
#include "options.h"
#include "util/string.h"
namespace receiver {
std::string GetSpoolerTempDir(const std::string& spooler_config) {
const std::vector<std::string> tokens = SplitString(spooler_config, ',');
assert(to... | 34.28125 | 79 | 0.696293 | samysweb |
3bcbfdd1bdf14dc3424354e38fba34c34d9ebe7a | 1,017 | cpp | C++ | messungen/server_client/corr_server/corr_server/myfile.cpp | tihmstar/gido_public | dcc523603b9a27b37752211715a10e30b51ce812 | [
"Unlicense"
] | 16 | 2021-04-10T16:28:00.000Z | 2021-12-12T10:15:23.000Z | messungen/server_client/corr_server/corr_server/myfile.cpp | tihmstar/gido_public | dcc523603b9a27b37752211715a10e30b51ce812 | [
"Unlicense"
] | null | null | null | messungen/server_client/corr_server/corr_server/myfile.cpp | tihmstar/gido_public | dcc523603b9a27b37752211715a10e30b51ce812 | [
"Unlicense"
] | 2 | 2021-04-10T16:32:36.000Z | 2021-04-11T14:13:45.000Z | //
// myfile.cpp
// corr_server
//
// Created by tihmstar on 19.03.20.
// Copyright © 2020 tihmstar. All rights reserved.
//
#include "myfile.hpp"
#include <sys/mman.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#define assure_(cond) do {if... | 26.763158 | 137 | 0.616519 | tihmstar |
3bcd84eba9673176c345a9a40fa09fd9367ecb2a | 1,455 | hpp | C++ | components/rgbd-sources/src/sources/screencapture/screencapture.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 4 | 2020-12-28T15:29:15.000Z | 2021-06-27T12:37:15.000Z | components/rgbd-sources/src/sources/screencapture/screencapture.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | null | null | null | components/rgbd-sources/src/sources/screencapture/screencapture.hpp | knicos/voltu | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | [
"MIT"
] | 2 | 2021-01-13T05:28:39.000Z | 2021-05-04T03:37:11.000Z | #ifndef _FTL_RGBD_SCREENCAPTURE_HPP_
#define _FTL_RGBD_SCREENCAPTURE_HPP_
#include "../../basesource.hpp"
#include <ftl/config.h>
#include <ftl/codecs/touch.hpp>
namespace ftl {
namespace rgbd {
namespace detail {
#ifdef HAVE_X11
struct X11State;
typedef X11State ImplState;
#else
typedef int ImplState;
#endif
cla... | 22.384615 | 122 | 0.74433 | knicos |
3bce70b5a607908fb6e53bb265d0c0d66c767131 | 808 | cpp | C++ | _scriptapi_assembler.cpp | blockchainhelppro/PSK2-Security | 9f5b60ca4bdafc8cf7679508cb8f13f7c65311c4 | [
"MIT"
] | null | null | null | _scriptapi_assembler.cpp | blockchainhelppro/PSK2-Security | 9f5b60ca4bdafc8cf7679508cb8f13f7c65311c4 | [
"MIT"
] | null | null | null | _scriptapi_assembler.cpp | blockchainhelppro/PSK2-Security | 9f5b60ca4bdafc8cf7679508cb8f13f7c65311c4 | [
"MIT"
] | null | null | null | #include "_scriptapi_assembler.h"
#include "assemble.h"
SCRIPT_EXPORT bool Script::Assembler::Assemble(duint addr, unsigned char* dest, int* size, const char* instruction)
{
return assemble(addr, dest, size, instruction, nullptr);
}
SCRIPT_EXPORT bool Script::Assembler::AssembleEx(duint addr, unsigned cha... | 36.727273 | 131 | 0.736386 | blockchainhelppro |
3bd462cc8a88f186be8edd81b4a321003fd68d06 | 9,050 | cc | C++ | mindspore/lite/test/ut/src/runtime/kernel/arm/int8/pad_int8_tests.cc | i4oolish/mindspore | dac3be31d0f2c0a3516200f47af30980e566601b | [
"Apache-2.0"
] | 1 | 2020-08-10T12:06:22.000Z | 2020-08-10T12:06:22.000Z | mindspore/lite/test/ut/src/runtime/kernel/arm/int8/pad_int8_tests.cc | dilingsong/mindspore | 4276050f2494cfbf8682560a1647576f859991e8 | [
"Apache-2.0"
] | null | null | null | mindspore/lite/test/ut/src/runtime/kernel/arm/int8/pad_int8_tests.cc | dilingsong/mindspore | 4276050f2494cfbf8682560a1647576f859991e8 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... | 44.80198 | 117 | 0.641215 | i4oolish |
3bd66fa82497c9025472bbb04d455e4e6ad9150d | 2,001 | cpp | C++ | src/runtime_src/core/edge/user/device_linux.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | null | null | null | src/runtime_src/core/edge/user/device_linux.cpp | cellery/XRT | a5c908d18dd8cd99d922ec8c847f869477d21079 | [
"Apache-2.0"
] | 1 | 2019-08-14T05:47:34.000Z | 2019-08-14T16:21:49.000Z | src/runtime_src/core/edge/user/device_linux.cpp | larry9523/XRT | d046a37b323e16cdbda57d65d0b8fc0469a96123 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2020 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 23.541176 | 110 | 0.718141 | cellery |
3bd72206f92aad7c20c4be271bba52d2c3f48943 | 10,128 | hpp | C++ | include/natalie/object.hpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 7 | 2022-03-08T08:47:54.000Z | 2022-03-29T15:08:36.000Z | include/natalie/object.hpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 12 | 2022-03-10T13:04:42.000Z | 2022-03-24T01:40:23.000Z | include/natalie/object.hpp | natalie-lang/natalie | 5597f401a41128631c92378b99bf3e8b5393717b | [
"MIT"
] | 5 | 2022-03-13T17:46:16.000Z | 2022-03-31T07:28:26.000Z | #pragma once
#include <assert.h>
#include "natalie/env.hpp"
#include "natalie/forward.hpp"
#include "natalie/gc.hpp"
#include "natalie/global_env.hpp"
#include "natalie/macros.hpp"
#include "natalie/method_visibility.hpp"
#include "natalie/object_type.hpp"
#include "natalie/value.hpp"
#include "tm/hashmap.hpp"
names... | 33.76 | 163 | 0.655608 | natalie-lang |
3bd90cf5b0d3fb9f817a2f94c935e86335bc02d4 | 6,935 | cpp | C++ | src/image_management/lib/mesh/mesh_parametric.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | src/image_management/lib/mesh/mesh_parametric.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | src/image_management/lib/mesh/mesh_parametric.cpp | Neckrome/vectorFieldSurface | 91afebadf9815e6a2dc658cdce82691fddd603ee | [
"MIT"
] | null | null | null | /*
** TP CPE Lyon
** Copyright (C) 2015 Damien Rohmer
**
** 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 3 of the License, or
** (at your option) any later ve... | 39.856322 | 118 | 0.627397 | Neckrome |
3bdaaa126f48ef28a0f539ba46397f3bc53d6277 | 995 | cpp | C++ | hdu-winter-2020/contests/PTA天梯/2/11.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | hdu-winter-2020/contests/PTA天梯/2/11.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | hdu-winter-2020/contests/PTA天梯/2/11.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<vector>
#include<queue>
#include<cmath>
#include<map>
#include<set>
#define ll long long
#define F(i,a,b) for(int i=(a);i<=(b);i++)
#define mst(a,b) memset((a),(b),sizeof(a))
#define PII pair<int,int>
using namespace std;
template<class ... | 18.773585 | 67 | 0.574874 | songhn233 |
3bde555fa27ae4c5403e7b0dbc072cb79ff0a143 | 484 | cpp | C++ | GeeksForGeeks/Practice/CountAllPossiblePathsFromTopLeftToBottomRight.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | GeeksForGeeks/Practice/CountAllPossiblePathsFromTopLeftToBottomRight.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | GeeksForGeeks/Practice/CountAllPossiblePathsFromTopLeftToBottomRight.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main()
{
//code
int test, num = pow(10, 9) + 7;
cin >> test;
while(test--){
int m, n;
cin >> m >> n;
vector<vector<int> > temp(m, vector<int>(n, 1));
for(int i = 1; i < m; i++){
for(int j = ... | 16.133333 | 68 | 0.446281 | Ashwanigupta9125 |
3bde9b0169ddfb7fc37657122e2e8eb65ccbdf6d | 3,703 | cc | C++ | tensorflow/contrib/lite/toco/graph_transformations/convert_expanddims_to_reshape.cc | harunpehlivan/tensorflow | 376e2cfdab31f4da251ea2e50992a9bf97fd171b | [
"Apache-2.0"
] | 22 | 2018-01-13T14:52:47.000Z | 2018-07-05T01:00:28.000Z | tensorflow/contrib/lite/toco/graph_transformations/convert_expanddims_to_reshape.cc | hamzabekkouri/tensorflow | d87a9fbbc5f49ec5ae8eb52c62628f0b1a0bf67f | [
"Apache-2.0"
] | 3 | 2018-05-09T11:31:58.000Z | 2021-01-27T12:26:21.000Z | tensorflow/contrib/lite/toco/graph_transformations/convert_expanddims_to_reshape.cc | hamzabekkouri/tensorflow | d87a9fbbc5f49ec5ae8eb52c62628f0b1a0bf67f | [
"Apache-2.0"
] | 11 | 2018-04-02T03:37:08.000Z | 2020-10-20T09:32:12.000Z | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 36.303922 | 85 | 0.714286 | harunpehlivan |
3be54d8117eee3a2945d79380715c028264d6324 | 2,669 | cpp | C++ | submitted_models/bosdyn_spot/src/joint_trajectory_bridge.cpp | jfkeller/subt_explorer_canary1_sensor_config_1 | 1f0419130b79f48c66e83c084e704e521782a95a | [
"ECL-2.0",
"Apache-2.0"
] | 173 | 2020-04-09T18:39:39.000Z | 2022-03-15T06:15:07.000Z | submitted_models/bosdyn_spot/src/joint_trajectory_bridge.cpp | jfkeller/subt_explorer_canary1_sensor_config_1 | 1f0419130b79f48c66e83c084e704e521782a95a | [
"ECL-2.0",
"Apache-2.0"
] | 538 | 2020-04-09T18:34:04.000Z | 2022-02-20T09:53:17.000Z | submitted_models/bosdyn_spot/src/joint_trajectory_bridge.cpp | jfkeller/subt_explorer_canary1_sensor_config_1 | 1f0419130b79f48c66e83c084e704e521782a95a | [
"ECL-2.0",
"Apache-2.0"
] | 89 | 2020-04-14T20:46:48.000Z | 2022-03-14T16:45:30.000Z | #include <memory>
#include <ignition/msgs/joint_trajectory.pb.h>
#include <ignition/transport/Node.hh>
#include <ros/ros.h>
#include <trajectory_msgs/JointTrajectory.h>
#include <nodelet/nodelet.h>
#include <ros_ign_bridge/convert.hpp>
#include <pluginlib/class_list_macros.h>
using namespace ros_ign_bridge;
names... | 31.4 | 118 | 0.715624 | jfkeller |
3be5d6379332abe8f58b3324b9a5c79bf1c5b1d7 | 4,693 | cpp | C++ | Asap-3.8.4/OpenKIMimport/OpenKIMinfo.cpp | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 1 | 2021-10-19T11:35:34.000Z | 2021-10-19T11:35:34.000Z | Asap-3.8.4/OpenKIMimport/OpenKIMinfo.cpp | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | null | null | null | Asap-3.8.4/OpenKIMimport/OpenKIMinfo.cpp | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 3 | 2016-07-18T19:22:48.000Z | 2021-07-06T03:06:42.000Z | // OpenKIMInfo.cpp - a class to collect information about OpenKIM models.
//
// This class is part of the optional Asap module to support OpenKIM
// models. The class OpenKIMInfo collects information about a given
// OpenKIM model, so it can be opened using the best neighbor list etc.
// Copyright (C) 2014 Jakob Schi... | 29.149068 | 105 | 0.685063 | auag92 |
3be8cc870a6b0159d87fe86d561a74536de007c7 | 29,708 | cpp | C++ | trunk/libVolRen/Volume.cpp | flomar/CrypTool-VS2015 | 6468257af2e1002418882f22a9ed9fabddde096d | [
"Apache-2.0"
] | null | null | null | trunk/libVolRen/Volume.cpp | flomar/CrypTool-VS2015 | 6468257af2e1002418882f22a9ed9fabddde096d | [
"Apache-2.0"
] | null | null | null | trunk/libVolRen/Volume.cpp | flomar/CrypTool-VS2015 | 6468257af2e1002418882f22a9ed9fabddde096d | [
"Apache-2.0"
] | 5 | 2016-07-02T12:59:28.000Z | 2021-10-02T14:58:30.000Z | // Volume.cpp : implementation file
//
#include "Volume.h"
#include <math.h>
#include <windows.h>
#include <stdio.h>
#include <assert.h>
#include "GL/gl.h"
#ifdef USE_NVIDIA_EXTENSIONS
#define GLH_EXT_SINGLE_FILE
#include "glh_extensions.h"
#endif
#define SET_VECTOR(a,b,c,d) {a[0]=b;a[1]=c;a[2]=d;}
///////////////... | 36.586207 | 169 | 0.686078 | flomar |
3be9cdee552cae95c7df5d088da1f38a81643796 | 1,762 | cpp | C++ | Sources/Internal/UI/Formula/Private/Formula.cpp | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 4 | 2019-11-15T11:30:00.000Z | 2021-12-27T21:16:31.000Z | Sources/Internal/UI/Formula/Private/Formula.cpp | TTopox/dava.engine | 0c7a16e627fc0d12309250d6e5e207333b35361e | [
"BSD-3-Clause"
] | null | null | null | Sources/Internal/UI/Formula/Private/Formula.cpp | TTopox/dava.engine | 0c7a16e627fc0d12309250d6e5e207333b35361e | [
"BSD-3-Clause"
] | 4 | 2017-04-07T04:32:41.000Z | 2021-12-27T21:55:49.000Z | #include "UI/Formula/Formula.h"
#include "UI/Formula/Private/FormulaParser.h"
#include "UI/Formula/Private/FormulaExecutor.h"
#include "UI/Formula/Private/FormulaFormatter.h"
namespace DAVA
{
Formula::Formula()
{
}
Formula::~Formula()
{
}
bool Formula::Parse(const String& str)
{
Reset();
try
{
... | 16.780952 | 59 | 0.593076 | stinvi |
3beb3f81bf5ec69428d08f176bc4edde3ddc0edc | 518 | hpp | C++ | chaine/src/mesh/mesh/vertices.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | chaine/src/mesh/mesh/vertices.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | chaine/src/mesh/mesh/vertices.hpp | the-last-willy/id3d | dc0d22e7247ac39fbc1fd8433acae378b7610109 | [
"MIT"
] | null | null | null | #pragma once
#include "mesh.hpp"
#include "mesh/vertex/is_valid.hpp"
#include "mesh/vertex/proxy.hpp"
#include <range/v3/view/filter.hpp>
#include <range/v3/view/iota.hpp>
#include <range/v3/view/transform.hpp>
namespace face_vertex {
inline
auto vertices(Mesh& m) {
return ranges::views::ints(uint32_t(0), vert... | 21.583333 | 60 | 0.667954 | the-last-willy |
3beb69808e21e2495895c4fcf07000e7c2624f39 | 10,685 | hpp | C++ | rootfs/usr/include/kappaio/aps_data_service_ext_impl.hpp | kappaIO-Dev/kappaIO-sdk-armhf-crosscompile | 66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2 | [
"MIT"
] | 22 | 2016-05-29T13:13:31.000Z | 2021-06-26T23:05:36.000Z | rootfs/usr/include/kappaio/aps_data_service_ext_impl.hpp | kappaIO-Dev/kappaIO-sdk-armhf-crosscompile | 66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2 | [
"MIT"
] | 2 | 2016-12-11T18:36:51.000Z | 2018-03-14T21:00:40.000Z | rootfs/usr/include/kappaio/aps_data_service_ext_impl.hpp | kappaIO-Dev/kappaIO-sdk-armhf-crosscompile | 66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2 | [
"MIT"
] | 4 | 2017-01-21T20:12:34.000Z | 2020-06-22T15:15:58.000Z | //====================================================================================
// The MIT License (MIT)
//
// Copyright (c) 2011 Kapparock LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"... | 25.746988 | 115 | 0.616565 | kappaIO-Dev |
3beb7658c79f7e8a55f8640b6d79ddd8f2dbe716 | 1,315 | cpp | C++ | python-webrtc/cpp/src/functions/get_user_media.cpp | MarshalX/python-webrtc | 36dfd57af7df8292e53ed8c7becbcd9be31a7588 | [
"Apache-2.0"
] | 81 | 2022-02-03T12:32:15.000Z | 2022-03-24T17:56:44.000Z | python-webrtc/cpp/src/functions/get_user_media.cpp | MarshalX/python-webrtc | 36dfd57af7df8292e53ed8c7becbcd9be31a7588 | [
"Apache-2.0"
] | 165 | 2022-02-27T13:37:22.000Z | 2022-03-09T16:07:35.000Z | python-webrtc/cpp/src/functions/get_user_media.cpp | MarshalX/python-webrtc | 36dfd57af7df8292e53ed8c7becbcd9be31a7588 | [
"Apache-2.0"
] | 2 | 2022-02-03T14:39:10.000Z | 2022-02-23T20:21:06.000Z | //
// Copyright 2022 Il`ya (Marshal) <https://github.com/MarshalX>. All rights reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE.md file in the root of the project.
//
#include "../interfaces/media_stream.h"
namespace python_webrtc {
static MediaStream *... | 32.875 | 91 | 0.689734 | MarshalX |
3bed17f1ca772fbb99cd489f79a67eb67330052b | 31,137 | cpp | C++ | aws-cpp-sdk-awstransfer/source/TransferClient.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-awstransfer/source/TransferClient.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-awstransfer/source/TransferClient.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 41.295756 | 233 | 0.765616 | crazecdwn |
3bf46a0fed869fb16189bcd0d03036eb87c1b47f | 268 | cpp | C++ | testing/check_cpu_time/main.cpp | NewYaroslav/xtime_cpp | d2f7acf223659fb77fbafb1feb536cad636d14d9 | [
"MIT"
] | 1 | 2021-09-15T21:11:57.000Z | 2021-09-15T21:11:57.000Z | testing/check_cpu_time/main.cpp | NewYaroslav/xtime_cpp | d2f7acf223659fb77fbafb1feb536cad636d14d9 | [
"MIT"
] | null | null | null | testing/check_cpu_time/main.cpp | NewYaroslav/xtime_cpp | d2f7acf223659fb77fbafb1feb536cad636d14d9 | [
"MIT"
] | 4 | 2019-12-02T15:17:46.000Z | 2021-10-09T17:32:34.000Z | #include <iostream>
#include <xtime_cpu_time.hpp>
#include <xtime.hpp>
using namespace std;
int main() {
cout << "get_cpu_time " << xtime::get_cpu_time() << endl;
xtime::delay(1);
cout << "get_cpu_time " << xtime::get_cpu_time() << endl;
return 0;
}
| 20.615385 | 61 | 0.634328 | NewYaroslav |
3bf512f486a98f2559dc956fa2be08138c3b36be | 4,571 | cpp | C++ | src/device_intrf.cpp | tmaltesen/IOsonata | 3ada9216305653670fccfca8fd53c6597ace8f12 | [
"MIT"
] | null | null | null | src/device_intrf.cpp | tmaltesen/IOsonata | 3ada9216305653670fccfca8fd53c6597ace8f12 | [
"MIT"
] | null | null | null | src/device_intrf.cpp | tmaltesen/IOsonata | 3ada9216305653670fccfca8fd53c6597ace8f12 | [
"MIT"
] | null | null | null | /**-------------------------------------------------------------------------
@file device_intrf.h
@brief Generic data transfer interface class
This class is used to implement device communication interfaces such as I2C, UART, etc...
Not limited to wired or physical interface. It could be soft interface as well... | 29.490323 | 90 | 0.625027 | tmaltesen |
3bf58110fbf02212f1fdcf471813416f574df22e | 2,778 | cpp | C++ | boost/libs/thread/test/threads/container/thread_ptr_list_pass.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 3 | 2015-01-03T23:52:29.000Z | 2021-02-22T17:41:27.000Z | boost/libs/thread/test/threads/container/thread_ptr_list_pass.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | null | null | null | boost/libs/thread/test/threads/container/thread_ptr_list_pass.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 3 | 2016-11-08T01:56:40.000Z | 2021-11-21T09:02:49.000Z | // Copyright (C) 2011 Vicente J. Botet Escriba
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#define BOOST_THREAD_USES_MOVE
#include <boost/config.hpp>
#include <boost/thread/thread.hpp>
#include <boost/thr... | 27.235294 | 136 | 0.673506 | randolphwong |
3bf5fa7a243636dc2e5a17954c325211faf37c87 | 18,744 | cpp | C++ | emulator/src/lib/formats/pasti_dsk.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/lib/formats/pasti_dsk.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/lib/formats/pasti_dsk.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Olivier Galibert
#include "emu.h" // logerror
#include "pasti_dsk.h"
// Pasti format supported using the documentation at
// http://www.sarnau.info/atari:pasti_file_format
// That format is an observational format, not a generative one. In
// other terms, it encodes the r... | 30.828947 | 172 | 0.602166 | rjw57 |
0ec4a713522e2897b1f246b97861433000b834dc | 1,801 | cc | C++ | webkit/glue/password_form_dom_manager.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | webkit/glue/password_form_dom_manager.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | webkit/glue/password_form_dom_manager.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2006-2008 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 "webkit/glue/password_form_dom_manager.h"
#include "base/logging.h"
#include "third_party/WebKit/WebKit/chromium/public/WebPasswordForm... | 35.313725 | 76 | 0.780122 | rwatson |
0eca31a0efd30ecc59040446adea1a6eb5710747 | 2,925 | cpp | C++ | project-euler/src/matterport_3.cpp | ammarhusain/challenges | efdb907833d04e9e37fc800d1b2b32507cfcd2e4 | [
"MIT"
] | null | null | null | project-euler/src/matterport_3.cpp | ammarhusain/challenges | efdb907833d04e9e37fc800d1b2b32507cfcd2e4 | [
"MIT"
] | null | null | null | project-euler/src/matterport_3.cpp | ammarhusain/challenges | efdb907833d04e9e37fc800d1b2b32507cfcd2e4 | [
"MIT"
] | null | null | null | /** ----------------------------------------------------------------------
* Copyright 2014 < Ammar Husain (Carnegie Mellon University) >
*
* @file pe1.cpp
* @author Ammar Husain <ahusain@nrec.ri.cmu.edu>
* @date Thu Jul 31 17:18:28 2014
*
* @brief Boiler Plate
*
*
---------------------------------... | 22.674419 | 78 | 0.472479 | ammarhusain |
0ecc00b0f90f69711c95911041ca882e83883e44 | 386 | hpp | C++ | include/termox/widget/detail/graph_tree.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 284 | 2017-11-07T10:06:48.000Z | 2021-01-12T15:32:51.000Z | include/termox/widget/detail/graph_tree.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 38 | 2018-01-14T12:34:54.000Z | 2020-09-26T15:32:43.000Z | include/termox/widget/detail/graph_tree.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 31 | 2017-11-30T11:22:21.000Z | 2020-11-03T05:27:47.000Z | #ifndef TERMOX_WIDGET_DETAIL_GRAPH_TREE_HPP
#define TERMOX_WIDGET_DETAIL_GRAPH_TREE_HPP
#include <string>
namespace ox {
class Widget;
} // namespace ox
namespace ox::detail {
/// Outputs filename.gz graph description of widget tree hierarchy.
void graph_tree(Widget const& w, std::string const& filename);
} // na... | 24.125 | 67 | 0.787565 | a-n-t-h-o-n-y |
0eccd490b5ac4c6f5212e4b0efa0c789e91e287b | 845 | cpp | C++ | C++/HackerRank/Introduction/Input and Output.cpp | jedrzejpolaczek/code_snippets | 04dd6821840d897a95c2a94d75693072ac3c08eb | [
"MIT"
] | null | null | null | C++/HackerRank/Introduction/Input and Output.cpp | jedrzejpolaczek/code_snippets | 04dd6821840d897a95c2a94d75693072ac3c08eb | [
"MIT"
] | null | null | null | C++/HackerRank/Introduction/Input and Output.cpp | jedrzejpolaczek/code_snippets | 04dd6821840d897a95c2a94d75693072ac3c08eb | [
"MIT"
] | null | null | null | /*
* Objective :
* In this challenge, we're practicing reading input from stdin and printing output to stdout.
*
* Task:
* Read 3 numbers from stdin and print their sum to stdout.
*
* Input Format:
* A single line containing 3 space-separated integers: a, b, and c.
*
* Constrains:
* 1 <= a,b,c <= 1000
*
* ... | 17.244898 | 94 | 0.539645 | jedrzejpolaczek |
0ecd6a9209dfdca0807b129c53b07b9bd52a2b18 | 8,676 | cpp | C++ | tools/clang/test/OpenMP/target_parallel_debug_codegen.cpp | GoSSIP-SJTU/TripleDoggy | 03648d6b19c812504b14e8b98c8c7b3f443f4e54 | [
"Apache-2.0"
] | 171 | 2018-09-17T13:15:12.000Z | 2022-03-18T03:47:04.000Z | tools/clang/test/OpenMP/target_parallel_debug_codegen.cpp | Ewenwan/TripleDoggy | 01db804b6570b1e25e29a387aa2addb68b48335f | [
"Apache-2.0"
] | 7 | 2018-10-05T04:54:18.000Z | 2020-10-02T07:58:13.000Z | tools/clang/test/OpenMP/target_parallel_debug_codegen.cpp | Ewenwan/TripleDoggy | 01db804b6570b1e25e29a387aa2addb68b48335f | [
"Apache-2.0"
] | 35 | 2018-09-18T07:46:53.000Z | 2022-03-27T07:59:48.000Z | // RUN: %clang_cc1 -DCK1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -fopenmp-cuda-mode -emit-llvm-bc %s -o %t-ppc-host.bc
// RUN: %clang_cc1 -DCK1 -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -fopenmp-cuda-mode -emit-l... | 68.314961 | 263 | 0.496657 | GoSSIP-SJTU |
0ed255b5477e04e335da80d7df37e07bbb8007ad | 1,893 | cpp | C++ | tests/Cpl/Io/Serial/_0test/hw_loopback/freertos/yrdkr62n/windows/kpit-gnurx/main.cpp | johnttaylor/foxtail | 86e4e1d19d5e8f9c1d1064cf0939f4bf62615400 | [
"BSD-3-Clause"
] | null | null | null | tests/Cpl/Io/Serial/_0test/hw_loopback/freertos/yrdkr62n/windows/kpit-gnurx/main.cpp | johnttaylor/foxtail | 86e4e1d19d5e8f9c1d1064cf0939f4bf62615400 | [
"BSD-3-Clause"
] | null | null | null | tests/Cpl/Io/Serial/_0test/hw_loopback/freertos/yrdkr62n/windows/kpit-gnurx/main.cpp | johnttaylor/foxtail | 86e4e1d19d5e8f9c1d1064cf0939f4bf62615400 | [
"BSD-3-Clause"
] | null | null | null | #include "Bsp/Api.h"
#include "Cpl/Io/Serial/Renesas/Rx62n/InputOutput.h"
#include "Cpl/System/Api.h"
#include "Cpl/System/Trace.h"
#include "Cpl/Io/Null.h"
#include <stdlib.h>
/// Create my InputOutput stream for Trace logging
static Cpl::Io::Serial::Renesas::Rx62n::InputOutput<16,16> fd_( BSP_DB9_CON... | 27.042857 | 247 | 0.638669 | johnttaylor |
0ed5374b36fe6cfc5418b1179c1430a452a9f234 | 996 | cpp | C++ | aba12d.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | aba12d.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | aba12d.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2014-09-22
#include <vector>
#include <algorithm>
#include <cstdio>
using namespace std;
bool is_knumber[1000001];
int knumber_count[1000001];
bool is_prime(int x) {
if (x < 2) return false;
for (int i = 2; i*i <= x; i++) {
if (x%i == 0) return false;
}
return true;
}
int main() {
is_knum... | 24.292683 | 67 | 0.451807 | ohmyjons |
0eda07c99e0c41572e981f6d70c63e067085ee39 | 10,158 | cpp | C++ | packages/facilities/rtdb/rtdb2/storage/RtDB2StorageLMDB.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | packages/facilities/rtdb/rtdb2/storage/RtDB2StorageLMDB.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | packages/facilities/rtdb/rtdb2/storage/RtDB2StorageLMDB.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | // Copyright 2020 Jan Feitsma (Falcons)
// SPDX-License-Identifier: Apache-2.0
#include "RtDB2StorageLMDB.h"
#include <boost/filesystem.hpp>
#include <sstream>
#include "../RtDB2ErrorCode.h"
#include "RtDB2Definitions.h"
#include "../serializer/RtDB2Serializer.h"
RtDB2LMDB::RtDB2LMDB(std::string parent_path, std::st... | 29.876471 | 108 | 0.650916 | Falcons-Robocup |
0eda560b7d2a090781ddb30fa8826d263deb8ece | 7,425 | cc | C++ | src/Testing/Utils/SCIRunFieldSamples.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Testing/Utils/SCIRunFieldSamples.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Testing/Utils/SCIRunFieldSamples.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2014 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 "Softwa... | 26.423488 | 76 | 0.701953 | benjaminlarson |
0edc0724375eb70b19edbe2a8bba0e6a6dc3afbb | 5,684 | cpp | C++ | src/behaviortree/nodes/actions/waitframes.cpp | 675492062/behaviac | f7c3df58e704b1e8248b3f931c6f582915da654b | [
"BSD-3-Clause"
] | null | null | null | src/behaviortree/nodes/actions/waitframes.cpp | 675492062/behaviac | f7c3df58e704b1e8248b3f931c6f582915da654b | [
"BSD-3-Clause"
] | null | null | null | src/behaviortree/nodes/actions/waitframes.cpp | 675492062/behaviac | f7c3df58e704b1e8248b3f931c6f582915da654b | [
"BSD-3-Clause"
] | 2 | 2016-03-17T11:19:16.000Z | 2020-03-16T16:17:56.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clau... | 30.55914 | 113 | 0.586735 | 675492062 |
0ee1eb403fc708a2fe0a01eb92b6436d07853c09 | 1,631 | cpp | C++ | Asap-3.8.4/Brenner/spgch.cpp | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 1 | 2021-10-19T11:35:34.000Z | 2021-10-19T11:35:34.000Z | Asap-3.8.4/Brenner/spgch.cpp | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | null | null | null | Asap-3.8.4/Brenner/spgch.cpp | auag92/n2dm | 03403ef8da303b79478580ae76466e374ec9da60 | [
"MIT"
] | 3 | 2016-07-18T19:22:48.000Z | 2021-07-06T03:06:42.000Z | #include "spgch.h"
#include "Asap.h"
namespace ASAPSPACE {
/* Reversed the indices, according to somebody. */
/* If all code references these statically instead of as arguments, then my
timing run happens in 5.21 seconds instead of 5.22 seconds. Not
significant, but getting rid of the argument passing felt bet... | 58.25 | 139 | 0.709381 | auag92 |
0ee260f0e45555990229997d2ec342d71cce6030 | 20,603 | hh | C++ | LiteCore/Database/CollectionImpl.hh | mhocouchbase/couchbase-lite-core | 8a527a066b703c8865b4e61cbd9e3d41d81ba5ef | [
"Apache-2.0"
] | null | null | null | LiteCore/Database/CollectionImpl.hh | mhocouchbase/couchbase-lite-core | 8a527a066b703c8865b4e61cbd9e3d41d81ba5ef | [
"Apache-2.0"
] | null | null | null | LiteCore/Database/CollectionImpl.hh | mhocouchbase/couchbase-lite-core | 8a527a066b703c8865b4e61cbd9e3d41d81ba5ef | [
"Apache-2.0"
] | null | null | null | //
// CollectionImpl.hh
//
// Copyright 2021-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be... | 37.596715 | 108 | 0.530894 | mhocouchbase |
0ee2c60c5977944333e6cfcf1059cad7db2a5ef4 | 3,716 | cpp | C++ | testbench/sim/dma/tb_dma_fifo/verilator/tb_verilator.cpp | ryuz/jelly | dfc4f925ad8034a73a81cf45557b27108486250f | [
"MIT"
] | 28 | 2015-03-09T10:03:51.000Z | 2022-01-29T22:27:28.000Z | testbench/sim/dma/tb_dma_fifo/verilator/tb_verilator.cpp | ryuz/jelly | dfc4f925ad8034a73a81cf45557b27108486250f | [
"MIT"
] | 2 | 2019-07-02T08:26:32.000Z | 2022-02-06T21:40:14.000Z | testbench/sim/dma/tb_dma_fifo/verilator/tb_verilator.cpp | ryuz/jelly | dfc4f925ad8034a73a81cf45557b27108486250f | [
"MIT"
] | 7 | 2018-12-19T13:51:35.000Z | 2021-12-31T10:28:10.000Z | #include <memory>
#include <verilated.h>
#include <opencv2/opencv.hpp>
#include "Vtb_verilator.h"
#include "jelly/simulator/Manager.h"
#include "jelly/simulator/ResetNode.h"
#include "jelly/simulator/ClockNode.h"
#include "jelly/simulator/WishboneMasterNode.h"
#include "jelly/simulator/VerilatorNode.h"
namespace jsim... | 28.151515 | 76 | 0.658773 | ryuz |
0ee668cd7e9d9c4fb2248aa67d6343d78edc9c8f | 2,879 | cpp | C++ | src/tunit/src/tunit/base_assert.cpp | gammasoft71/tunit | 9bbe236db66593495fa4549cd0abf7c4239407fd | [
"MIT"
] | 3 | 2021-03-06T17:24:02.000Z | 2021-12-16T09:28:02.000Z | src/tunit/src/tunit/base_assert.cpp | gammasoft71/xtd_tunit | 9bbe236db66593495fa4549cd0abf7c4239407fd | [
"MIT"
] | null | null | null | src/tunit/src/tunit/base_assert.cpp | gammasoft71/xtd_tunit | 9bbe236db66593495fa4549cd0abf7c4239407fd | [
"MIT"
] | null | null | null | #include "../../include/tunit/base_assert.h"
#include "../../include/tunit/settings.h"
#include "../../include/tunit/unit_test.h"
#include "../../include/tunit/test.h"
#include <string>
using namespace tunit;
using namespace std;
using namespace std::string_literals;
void base_assert::abort(const std::string& message... | 48.79661 | 189 | 0.708232 | gammasoft71 |
0eec0041e39485e247332af6c9bf97a50b2ffe9b | 914 | cpp | C++ | test/snippet/alphabet/all.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/snippet/alphabet/all.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | test/snippet/alphabet/all.cpp | giesselmann/seqan3 | 3a26b42b7066ac424b6e604115fe516607c308c0 | [
"BSD-3-Clause"
] | null | null | null | #include <seqan3/alphabet/all.hpp>
#include <seqan3/alphabet/nucleotide/dna4.hpp>
using namespace seqan3;
int main()
{
{
//! [ambiguity]
// does not work:
// dna4 my_letter{0}; // we want to set the default, an A
// dna4 my_letter{'A'}; // we also want to set an A, but we are setting value 65
// std::cout <... | 27.69697 | 101 | 0.656455 | giesselmann |
0eec6503a32ba5a03c97c992dfedbf5397f75c3c | 4,319 | hxx | C++ | Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_scalar_join_iterator.hxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | 3 | 2018-10-01T20:46:17.000Z | 2019-12-17T19:39:50.000Z | Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_scalar_join_iterator.hxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | null | null | null | Modules/ThirdParty/VNL/src/vxl/core/vnl/vnl_scalar_join_iterator.hxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | 4 | 2018-05-17T16:34:54.000Z | 2020-09-24T02:12:40.000Z | // This is core/vnl/vnl_scalar_join_iterator.hxx
#ifndef vnl_scalar_join_iterator_hxx_
#define vnl_scalar_join_iterator_hxx_
//:
// \file
//
// \author Andrew W. Fitzgibbon, Oxford RRG
// \date 27 Dec 96
//
//-----------------------------------------------------------------------------
#include <list>
#i... | 26.660494 | 116 | 0.633248 | nalinimsingh |
0eec684e0096d8fa4350ef244b0284b930a28a46 | 615 | hpp | C++ | src/optimization/nlopt_interface.hpp | EvilMcJerkface/BOAT | 90b7583407ece7a74068d98b836f40c52305d6a4 | [
"Apache-2.0"
] | 56 | 2017-03-13T23:48:03.000Z | 2021-10-31T14:03:18.000Z | src/optimization/nlopt_interface.hpp | EvilMcJerkface/BOAT | 90b7583407ece7a74068d98b836f40c52305d6a4 | [
"Apache-2.0"
] | 5 | 2019-03-22T08:44:31.000Z | 2019-03-22T16:04:18.000Z | src/optimization/nlopt_interface.hpp | EvilMcJerkface/BOAT | 90b7583407ece7a74068d98b836f40c52305d6a4 | [
"Apache-2.0"
] | 19 | 2017-02-01T08:31:04.000Z | 2020-10-15T05:52:43.000Z | #ifndef NLOPT_INTERFACE_HPP_INCLUDED
#define NLOPT_INTERFACE_HPP_INCLUDED
#include <nlopt.hpp>
#include "../optimization/numerical_optimization.hpp"
namespace boat{
template <class ObjectiveResult = double>
class NLOpt : public NumericalOpt<ObjectiveResult> {
public:
template <class... Args>
NLOpt(RangeParameter<... | 26.73913 | 59 | 0.788618 | EvilMcJerkface |
0eedc70016b131fd276790dea18497e5986fdbd0 | 19,881 | cpp | C++ | plugins/api/src/touch.cpp | d-w-moore/irods | 32cc2bd18e43aaaa42f002d07996343a05066646 | [
"BSD-3-Clause"
] | null | null | null | plugins/api/src/touch.cpp | d-w-moore/irods | 32cc2bd18e43aaaa42f002d07996343a05066646 | [
"BSD-3-Clause"
] | null | null | null | plugins/api/src/touch.cpp | d-w-moore/irods | 32cc2bd18e43aaaa42f002d07996343a05066646 | [
"BSD-3-Clause"
] | 2 | 2015-10-29T03:37:30.000Z | 2015-12-16T15:09:14.000Z | #include "api_plugin_number.h"
#include "rodsDef.h"
#include "rcConnect.h"
#include "rodsPackInstruct.h"
#include "apiHandler.hpp"
#include "client_api_whitelist.hpp"
#include <functional>
#ifdef RODS_SERVER
//
// Server-side Implementation
//
#include "touch.h"
#include "rcMisc.h"
#include "rodsErrorTable.h"
#inc... | 37.94084 | 125 | 0.593079 | d-w-moore |
0ef273bb0bba5bb5a016e5381507d4a862ce6aba | 2,331 | cpp | C++ | 03_DataStructrue/06_Tree/03_VT.cpp | WUST-mengqinyu/Template | 99b129284567896c37f9ac271e77099d300e7565 | [
"MIT"
] | 2 | 2021-07-14T03:21:06.000Z | 2021-11-11T08:00:47.000Z | 03_DataStructrue/06_Tree/03_VT.cpp | WUST-mengqinyu/Template | 99b129284567896c37f9ac271e77099d300e7565 | [
"MIT"
] | 1 | 2021-06-09T14:57:15.000Z | 2021-06-09T14:57:15.000Z | 03_DataStructrue/06_Tree/03_VT.cpp | WUST-mengqinyu/Template | 99b129284567896c37f9ac271e77099d300e7565 | [
"MIT"
] | null | null | null | // Virtual Tree
//
// Comprime uma arvore dado um conjunto S de vertices, de forma que
// o conjunto de vertices da arvore comprimida contenha S e seja
// minimal e fechado sobre a operacao de LCA
// Se |S| = k, a arvore comprimida tem O(k) vertices
//
// O(k log(k))
template<typename T> struct rmq {
vector<T> v;
in... | 28.426829 | 75 | 0.525526 | WUST-mengqinyu |
0ef318d8a0262f4ac60ff7ccad926430b6ba0d92 | 1,472 | cpp | C++ | src/learn_dx11/main.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 2 | 2019-04-02T14:19:01.000Z | 2021-05-27T13:42:20.000Z | src/learn_dx11/main.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | 4 | 2016-11-05T14:17:14.000Z | 2017-03-30T15:03:37.000Z | src/learn_dx11/main.cpp | ref2401/cg | 4654377f94fe54945c33156911ca25e807c96236 | [
"MIT"
] | null | null | null | #include <iostream>
#include "cg/base/base.h"
#include "learn_dx11/base/app.h"
#include "learn_dx11/mesh_rnd/displacement_mapping_example.h"
#include "learn_dx11/mesh_rnd/vertex_skinning_example.h"
#include "learn_dx11/mesh_rnd/static_mesh_example.h"
#include "learn_dx11/tess/terrain_tessellation_example.h"
#inc... | 36.8 | 70 | 0.73981 | ref2401 |
0ef4dffeb637cea383fa8a726c05f9d1530ee4c5 | 1,092 | cpp | C++ | 517-9B.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | 517-9B.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | 517-9B.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
const int MOD = 1e9 + 7;
const int prime[5] = {2, 3, 5, 7};
int n;
pair<int, int> a[maxn];
long long f[maxn][1 << 5];
inline long long Mod(long long x){
x %= MOD;
while(x < 0) x += MOD;
return x;
}
int main(){
cin >> n;
for(int i = 1; i <= n;... | 22.75 | 56 | 0.436813 | AndrewWayne |
0ef562c6206a1f153152841347903e2e8807e985 | 1,894 | cpp | C++ | coreneuron/io/mech_report.cpp | alexsavulescu/CoreNeuron | af7e95d98819c052b07656961d20de6a71b70740 | [
"BSD-3-Clause"
] | null | null | null | coreneuron/io/mech_report.cpp | alexsavulescu/CoreNeuron | af7e95d98819c052b07656961d20de6a71b70740 | [
"BSD-3-Clause"
] | null | null | null | coreneuron/io/mech_report.cpp | alexsavulescu/CoreNeuron | af7e95d98819c052b07656961d20de6a71b70740 | [
"BSD-3-Clause"
] | null | null | null | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================
*/
#include <iostream>
#include <vector>
#include "coreneur... | 32.655172 | 85 | 0.517951 | alexsavulescu |
0ef6894d4557dab17c758afa406847753ecefed5 | 8,368 | cpp | C++ | src/modules/muorb/adsp/px4muorb.cpp | Qsome43/Firmware | 430c32fa4087f988e7bd8b3daf3326cfac186221 | [
"BSD-3-Clause"
] | 10 | 2020-11-25T14:04:15.000Z | 2022-03-02T23:46:57.000Z | src/modules/muorb/adsp/px4muorb.cpp | choudhary0parivesh/Firmware | 02f4ad61ec8eb4f7906dd06b4eb1fd6abb994244 | [
"BSD-3-Clause"
] | 20 | 2017-11-30T09:49:45.000Z | 2018-02-12T07:56:29.000Z | src/modules/muorb/adsp/px4muorb.cpp | choudhary0parivesh/Firmware | 02f4ad61ec8eb4f7906dd06b4eb1fd6abb994244 | [
"BSD-3-Clause"
] | 10 | 2019-04-02T09:06:30.000Z | 2021-06-23T15:52:33.000Z | /****************************************************************************
*
* Copyright (C) 2015 Mark Charlebois. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions... | 28.175084 | 89 | 0.724426 | Qsome43 |
0ef6b64c611efdc9c5cd132930081b5eafdb37aa | 4,946 | cpp | C++ | Woopsi/libwoopsi/src/scrollbarpanel.cpp | ant512/Woopsi | e7a568dc5e16ae772a5cad850527861ac2c2e703 | [
"BSD-3-Clause"
] | 14 | 2016-01-25T01:01:25.000Z | 2021-07-02T22:49:27.000Z | Woopsi/libwoopsi/src/scrollbarpanel.cpp | ant512/Woopsi | e7a568dc5e16ae772a5cad850527861ac2c2e703 | [
"BSD-3-Clause"
] | 1 | 2021-07-29T23:14:59.000Z | 2021-07-29T23:14:59.000Z | Woopsi/libwoopsi/src/scrollbarpanel.cpp | ant512/Woopsi | e7a568dc5e16ae772a5cad850527861ac2c2e703 | [
"BSD-3-Clause"
] | 4 | 2016-01-25T01:01:45.000Z | 2021-09-04T23:39:10.000Z | #include "scrollbarpanel.h"
#include "button.h"
using namespace WoopsiUI;
ScrollbarPanel::ScrollbarPanel(s16 x, s16 y, u16 width, u16 height, GadgetStyle* style) : Gadget(x, y, width, height, style) {
_scrollbarWidth = 10;
_scrollbarHeight = 10;
_hasVerticalScrollbar = true;
_hasHorizontalScrollbar = t... | 28.589595 | 140 | 0.731096 | ant512 |
0ef78fa196c8777e3aaf95426c8713f14e088661 | 353 | cpp | C++ | C++/prime.cpp | rainoverme002/Software-Developer-Interview-Preparation | e4d9d704d619c11c0eb6458dcb57761b5946cd82 | [
"MIT"
] | null | null | null | C++/prime.cpp | rainoverme002/Software-Developer-Interview-Preparation | e4d9d704d619c11c0eb6458dcb57761b5946cd82 | [
"MIT"
] | 2 | 2021-09-02T20:33:10.000Z | 2022-03-29T10:04:07.000Z | C++/prime.cpp | rainoverme002/Software-Developer-Interview-Preparation | e4d9d704d619c11c0eb6458dcb57761b5946cd82 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdlib>
#include<cmath>
using namespace std;
int main(){
int N;
cout<<"Masukan Banyaknya Bilangan Prima yang ingin ditampilkan"<<endl;
cin >> N;
int counter = 0, x = 1;
while(counter!=N){
if(x%2!=0){
cout<<x<<endl;
counter+=1;
... | 14.708333 | 74 | 0.509915 | rainoverme002 |
0ef9314af14bf74923771005982042c09bd08fae | 4,898 | hpp | C++ | src/ngraph/runtime/cpu/pass/cpu_dnnl_primitive_build.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/cpu/pass/cpu_dnnl_primitive_build.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | src/ngraph/runtime/cpu/pass/cpu_dnnl_primitive_build.hpp | pqLee/ngraph | ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7 | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 43.345133 | 100 | 0.459371 | pqLee |
0ef9679a8de0384af7cd0aacea5daf32d2d6feb7 | 8,811 | cpp | C++ | DLE/DataTypes/RenderModel.cpp | overload-development-community/DLE.NET | fe422895a91a28fdee7f980f7613bb4c8c047bb0 | [
"MIT"
] | 2 | 2020-07-08T22:07:55.000Z | 2020-08-21T05:42:34.000Z | DLE/DataTypes/RenderModel.cpp | overload-development-community/DLE.NET | fe422895a91a28fdee7f980f7613bb4c8c047bb0 | [
"MIT"
] | 2 | 2020-09-11T01:01:00.000Z | 2020-12-07T23:09:35.000Z | DLE/DataTypes/RenderModel.cpp | overload-development-community/DLE.NET | fe422895a91a28fdee7f980f7613bb4c8c047bb0 | [
"MIT"
] | 1 | 2021-09-28T16:39:30.000Z | 2021-09-28T16:39:30.000Z | #include "stdafx.h"
#include "ModelTextures.h"
#include "PolyModel.h"
#include "ASEModel.h"
#include "OOFModel.h"
#include "rendermodel.h"
using namespace RenderModel;
//------------------------------------------------------------------------------
void CModel::Init(void)
{
memset(m_teamTextures, 0, sizeof(m_teamTe... | 26.459459 | 125 | 0.555442 | overload-development-community |
0efcefdaa1d44590f28042444eaf0c17761d4eba | 10,665 | cc | C++ | components/policy/core/common/preg_parser_win.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | components/policy/core/common/preg_parser_win.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | components/policy/core/common/preg_parser_win.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright (c) 2013 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 "components/policy/core/common/preg_parser_win.h"
#include <windows.h>
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#includ... | 33.224299 | 78 | 0.640506 | Wzzzx |
0efd6432beb6d395530d4cff42a19148c44e16c8 | 7,402 | cpp | C++ | src/third_party/mozjs-45/extract/js/src/jit/arm64/SharedIC-arm64.cpp | SunguckLee/real-mongodb | fef0e44fafc6d3709a84101327e7d2f54dd18d88 | [
"Apache-2.0"
] | 4 | 2018-02-06T01:53:12.000Z | 2018-02-20T01:47:36.000Z | src/third_party/mozjs-45/extract/js/src/jit/arm64/SharedIC-arm64.cpp | SunguckLee/real-mongodb | fef0e44fafc6d3709a84101327e7d2f54dd18d88 | [
"Apache-2.0"
] | null | null | null | src/third_party/mozjs-45/extract/js/src/jit/arm64/SharedIC-arm64.cpp | SunguckLee/real-mongodb | fef0e44fafc6d3709a84101327e7d2f54dd18d88 | [
"Apache-2.0"
] | 3 | 2018-02-06T01:53:18.000Z | 2021-07-28T09:48:15.000Z | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* 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/.... | 33.645455 | 99 | 0.589841 | SunguckLee |
0eff3206742a98bcc95c1c129d5b80ac03da4a86 | 15,066 | cpp | C++ | src/syntactic.cpp | Donluigimx/MiniC | b692a1115d889897de185d3bc28db48447d2de9d | [
"MIT"
] | 2 | 2016-04-19T18:26:37.000Z | 2016-04-20T21:56:01.000Z | src/syntactic.cpp | Donluigimx/MiniC | b692a1115d889897de185d3bc28db48447d2de9d | [
"MIT"
] | null | null | null | src/syntactic.cpp | Donluigimx/MiniC | b692a1115d889897de185d3bc28db48447d2de9d | [
"MIT"
] | null | null | null | #include "syntactic.hpp"
#include "node.hpp"
Syntactic::Syntactic(Lexic* lex) {
lexic = lex;
Analize();
}
void Syntactic::Analize() {
tree = Translation_Unit();
}
Node* Syntactic::Translation_Unit() {
Program* nodent = new Program();
Node* aux = nullptr;
while( lexic->Token != Token::END_OF_F... | 22.32 | 76 | 0.557812 | Donluigimx |
160223bd99ab97b75926acbb952eafbf66a5bc08 | 1,114 | inl | C++ | 4_Timeline-examples/4_3_Sequentity/src/sequentity/Components.inl | Daandelange/ofxSurfingImGui | 122241ebcb900d30a5fa6b548de41b2910a27401 | [
"MIT"
] | 11 | 2021-06-27T09:02:07.000Z | 2022-03-13T07:40:36.000Z | 4_Timeline-examples/4_3_Sequentity/src/sequentity/Components.inl | Daandelange/ofxSurfingImGui | 122241ebcb900d30a5fa6b548de41b2910a27401 | [
"MIT"
] | null | null | null | 4_Timeline-examples/4_3_Sequentity/src/sequentity/Components.inl | Daandelange/ofxSurfingImGui | 122241ebcb900d30a5fa6b548de41b2910a27401 | [
"MIT"
] | 6 | 2021-06-09T08:01:36.000Z | 2021-12-06T07:28:52.000Z | // Components
using TimeType = int;
using Position = Vector2i;
using Orientation = float;
struct InitialPosition : Position { using Position::Position; };
struct StartPosition : Position { using Position::Position; };
struct Size : Position { using Position::Position; };
struct InitialSize : Size { using Size::Siz... | 21.423077 | 87 | 0.698384 | Daandelange |
1605232a7fe88177bff7ee2fc6b5c326e32c634e | 612 | cpp | C++ | AIC/AIC'20 - Level 2 Training/Week #3.1/Z.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 2 Training/Week #3.1/Z.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 2 Training/Week #3.1/Z.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://vjudge.net/contest/419722#problem/Z
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
int main ()
{
ios_base::sync_with_stdio (0); cin.tie (0); cout.tie (0);
ll n, cnt = 1;
cin >> n;
vector<pair<bool... | 21.857143 | 76 | 0.46732 | MaGnsio |