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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c2c10ea1885fadec386342b225c2c8f48bfdec52 | 1,688 | cpp | C++ | bookopencv/ch4_ex4_3.cpp | quchunguang/test | dd1dde14a69d9e8b2c9ed3efbf536df7840f0487 | [
"MIT"
] | 1 | 2021-05-06T02:02:59.000Z | 2021-05-06T02:02:59.000Z | bookopencv/ch4_ex4_3.cpp | SrikanthParsha14/test | 8cee69e09c8557d53d8d30382cec8ea5c1f82f6e | [
"MIT"
] | null | null | null | bookopencv/ch4_ex4_3.cpp | SrikanthParsha14/test | 8cee69e09c8557d53d8d30382cec8ea5c1f82f6e | [
"MIT"
] | 1 | 2019-06-17T13:20:39.000Z | 2019-06-17T13:20:39.000Z | /* ************ License: *******************************
Oct. 3, 2008
Right to use this code in any way you want without warrenty, support or any guarentee of it working.
BOOK: It would be nice if you cited it:
Learning OpenCV: Computer Vision with the OpenCV Library
by Gary Bradski and Adrian Kaehler
Published ... | 37.511111 | 105 | 0.670024 | quchunguang |
c2c59e3de767f1acef373193b01c88b784d71a01 | 2,776 | cpp | C++ | Random.cpp | yuanyangwangTJ/RSA | 384423bf33d555047755bb253a3531e35870ffd6 | [
"MIT"
] | null | null | null | Random.cpp | yuanyangwangTJ/RSA | 384423bf33d555047755bb253a3531e35870ffd6 | [
"MIT"
] | null | null | null | Random.cpp | yuanyangwangTJ/RSA | 384423bf33d555047755bb253a3531e35870ffd6 | [
"MIT"
] | null | null | null | /**************************************
* Class Name: PRNG, PrimeGen
* Function: 伪随机数与伪随机素数比特生成器
* Introduction: PrimeGen 继承于 PRNG 类
* ***********************************/
#include "Random.h"
#include "TDES.h"
#include <iostream>
#include <ctime>
#include <cstring>
#include <NTL/ZZ.h>
using namespace std;
using ... | 19.971223 | 56 | 0.439841 | yuanyangwangTJ |
c2c618b7e7bd6cd15c57a27cc896ac145cd735d9 | 550 | cpp | C++ | test/src/main.cpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | null | null | null | test/src/main.cpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | null | null | null | test/src/main.cpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | null | null | null | #include "gtest/gtest.h"
#include "minko/Minko.hpp"
#include "minko/MinkoTests.hpp"
#include "minko/MinkoSDL.hpp"
using namespace minko;
void wait()
{
std::cout << "Press ENTER to continue...";
std::cin.ignore(std::numeric_limits <std::streamsize> ::max(), '\n');
}
int main(int argc, char **argv)
{
auto canvas ... | 17.1875 | 70 | 0.685455 | undeadinu |
c2cb7da54a485a4dcea154ca0c205b70fa691ba3 | 2,428 | cpp | C++ | problems/acmicpc_2188.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_2188.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_2188.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <queue>
#include <utility>
#include <vector>
using namespace std;
class graph {
class edge;
class vertex {
public:
vector<edge*> edges;
void add_edge(vertex *v) {
auto p = edge::make_edge(this, v);
edges.push_back(p.first);
v->edges.push_back(p.second);
}... | 25.030928 | 96 | 0.580725 | qawbecrdtey |
c2cc509b0044c492fe6e19de41aa3973bae6ba24 | 2,073 | cpp | C++ | DS Prep/Trees/Unusual Traversals/verticalOrder.cpp | Kanna727/My-C-git | 3fc81b24f07f8533e2b3881b8f1aeb442dca2bd3 | [
"Apache-2.0"
] | 1 | 2021-04-05T18:55:20.000Z | 2021-04-05T18:55:20.000Z | DS Prep/Trees/Unusual Traversals/verticalOrder.cpp | Kanna727/My-C-git | 3fc81b24f07f8533e2b3881b8f1aeb442dca2bd3 | [
"Apache-2.0"
] | null | null | null | DS Prep/Trees/Unusual Traversals/verticalOrder.cpp | Kanna727/My-C-git | 3fc81b24f07f8533e2b3881b8f1aeb442dca2bd3 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct Node {
int data;
struct Node *left, *right;
};
struct Node* newNode(int data){
struct Node* node = new Node;
node->data = data;
node->left = node->right = NULL;
}
void printVerticalOrder(Node* root)
{
// Base case
if (!root)
ret... | 23.033333 | 66 | 0.514713 | Kanna727 |
c2cd31a0dd762baae6346740673ce7f928ad4068 | 1,360 | cpp | C++ | components/source/RobotLeg.cpp | matheusvxf/Lighting-and-Shaders | c555cbae2a4c882a0d13d1b5e4daa5c39c020c32 | [
"MIT"
] | null | null | null | components/source/RobotLeg.cpp | matheusvxf/Lighting-and-Shaders | c555cbae2a4c882a0d13d1b5e4daa5c39c020c32 | [
"MIT"
] | null | null | null | components/source/RobotLeg.cpp | matheusvxf/Lighting-and-Shaders | c555cbae2a4c882a0d13d1b5e4daa5c39c020c32 | [
"MIT"
] | null | null | null | #include "RobotLeg.h"
#include "MatrixTransform.h"
#include "Cube.h"
#include "Robot.h"
#include "Config.h"
RobotLeg::RobotLeg()
{
}
RobotLeg::RobotLeg(double leg_width, double leg_height, double leg_depth)
{
MatrixTransform *m;
this->leg_width = leg_width;
this->leg_height = leg_height;
this->leg_d... | 20 | 74 | 0.627206 | matheusvxf |
c2db002dc2057571014d5b16bd55699d793abd70 | 3,107 | cxx | C++ | registration/stats.cxx | valette/FROG | 5d36729b7c4309303baa39d472d6beaf795d1173 | [
"CECILL-B"
] | 15 | 2019-10-13T05:25:50.000Z | 2022-03-12T16:58:39.000Z | registration/stats.cxx | valette/FROG | 5d36729b7c4309303baa39d472d6beaf795d1173 | [
"CECILL-B"
] | 7 | 2020-10-22T20:05:42.000Z | 2020-11-18T19:41:03.000Z | registration/stats.cxx | valette/FROG | 5d36729b7c4309303baa39d472d6beaf795d1173 | [
"CECILL-B"
] | 1 | 2020-01-21T09:16:01.000Z | 2020-01-21T09:16:01.000Z | #include <algorithm>
#include <fstream>
#include <iostream>
#include <numeric>
#include "stats.h"
#define print( v, size ) { for (int __i = 0; __i < size; __i++ ) { std::cout << v[ __i ]; if ( __i < ( size - 1 ) ) std::cout<< " " ;} std::cout << std::endl;}
using namespace std;
int Stats::maxSize = 10000;
int Stats... | 21.280822 | 159 | 0.551979 | valette |
c2db30ee45dc1115c3fbb8eb56f190faec8ca064 | 8,991 | cpp | C++ | src/vulkan/vulkan_swapchain.cpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_swapchain.cpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/vulkan/vulkan_swapchain.cpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | #include "vulkan_swapchain.hpp"
#include <GLFW/glfw3.h>
#include "instrumentor.hpp"
#include "vulkan/vulkan_check.hpp"
#include "vulkan/vulkan_render_pass.hpp"
#include "vulkan/vulkan_swapchain_support_details.hpp"
#include "vulkan/vulkan_queue_family_indices.hpp"
#include "vulkan/vulkan_window_data.hpp"
namespace c... | 41.43318 | 144 | 0.779446 | zfccxt |
c2dbb966bf88dfb1beb05d2ff8ef147bdfeecd27 | 16,516 | hpp | C++ | TinySTL/utility.hpp | syn1w/TinySTL | 04961c8fcec560d23cb99d049d44ff1b88113118 | [
"MIT"
] | 7 | 2020-11-07T04:52:29.000Z | 2022-01-14T06:35:42.000Z | TinySTL/utility.hpp | vczn/TinySTL | ad9951cf38ada8f6903146f306f58778cb132b6a | [
"MIT"
] | 1 | 2021-04-14T10:13:43.000Z | 2021-04-14T10:13:43.000Z | TinySTL/utility.hpp | vczn/TinySTL | ad9951cf38ada8f6903146f306f58778cb132b6a | [
"MIT"
] | 2 | 2020-12-06T03:24:11.000Z | 2021-04-14T10:11:04.000Z | // Copyright (C) 2021 syn1w
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include "type_traits.hpp"
#include <type_traits>
#if _MSVC_LANG >= 201402L || __cplusplus >= 201402L
#define TINY_STL_CXX14
#endif // _... | 28.723478 | 80 | 0.607653 | syn1w |
c2dc2d42b2427109966c9edcf921908444869951 | 278 | hpp | C++ | include/miniberry/Port.hpp | krzysztof-magosa/MiniBerry | b4e4aac914d1813238fd3f43753c1e71488b8f90 | [
"MIT"
] | 1 | 2015-06-27T16:24:34.000Z | 2015-06-27T16:24:34.000Z | include/miniberry/Port.hpp | krzysztof-magosa/MiniBerry | b4e4aac914d1813238fd3f43753c1e71488b8f90 | [
"MIT"
] | null | null | null | include/miniberry/Port.hpp | krzysztof-magosa/MiniBerry | b4e4aac914d1813238fd3f43753c1e71488b8f90 | [
"MIT"
] | null | null | null | #ifndef MINIBERRY_PORT_HPP
#define MINIBERRY_PORT_HPP
#include <stdint.h>
namespace miniberry {
class Port
{
public:
volatile uint8_t* port;
volatile uint8_t* pin;
volatile uint8_t* ddr;
protected:
Port() {}
};
}
#endif
| 12.636364 | 31 | 0.604317 | krzysztof-magosa |
c2de0f33eb2441d11f77e79da71408d8381f5fa2 | 6,665 | cpp | C++ | Exam Practice/egemenkilic_THE3.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | Exam Practice/egemenkilic_THE3.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | Exam Practice/egemenkilic_THE3.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "strutils.h"
using namespace std;
bool take_input(string input, string & sentence, bool & numeric_word, int & dot_count, string & new_sentence);
string reverse_string(string str)
{
string dummy = "";
for (int i = str.length()-1; i > -1; i--)
{
dummy... | 25.342205 | 122 | 0.477119 | egmnklc |
c2df85fa013e02ad895a93a54a9010a49c3d98c9 | 1,495 | cpp | C++ | src/certificate/AccessDescription.cpp | LabSEC/libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 22 | 2015-08-26T16:40:59.000Z | 2022-02-22T19:52:55.000Z | src/certificate/AccessDescription.cpp | LabSEC/Libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 14 | 2015-09-01T00:39:22.000Z | 2018-12-17T16:24:28.000Z | src/certificate/AccessDescription.cpp | LabSEC/Libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 22 | 2015-08-31T19:17:37.000Z | 2021-01-04T13:38:35.000Z | #include <libcryptosec/certificate/AccessDescription.h>
AccessDescription::AccessDescription() {
}
AccessDescription::AccessDescription(ACCESS_DESCRIPTION *accessDescription) {
if(accessDescription->method) {
accessMethod = ObjectIdentifier(OBJ_dup(accessDescription->method));
}
if(accessDescription->location) {... | 24.508197 | 77 | 0.776589 | LabSEC |
123fb4a420334ec65d9a6526c2eff759062554d3 | 40,867 | cpp | C++ | src/object.cpp | Celissa/Legacy-Base | 027553da16342c4e31cebf5eaad6925fbaa5d5a5 | [
"CC-BY-3.0"
] | 1 | 2018-09-16T03:17:50.000Z | 2018-09-16T03:17:50.000Z | src/object.cpp | Celissa/Legacy-Base | 027553da16342c4e31cebf5eaad6925fbaa5d5a5 | [
"CC-BY-3.0"
] | null | null | null | src/object.cpp | Celissa/Legacy-Base | 027553da16342c4e31cebf5eaad6925fbaa5d5a5 | [
"CC-BY-3.0"
] | null | null | null | #include "system.h"
void read_string( FILE*, char**, char, int );
/*
* LOCAL_CONSTANTS
*/
const char* item_type_name [] = { "other", "light", "scroll", "wand",
"staff", "weapon", "gem", "spellbook", "treasure", "armor", "potion",
"reagent", "furniture", "trash", "cross", "container", "lock.pick",
"drink.c... | 29.21158 | 216 | 0.532802 | Celissa |
123fc1ac7a5431b39d285aac6ed78ee4b7a57040 | 1,492 | cpp | C++ | WeirdEngine/src/TestProject/Source Files/PlaySceneInputComponent.cpp | jeramauni/Proyecto-3 | 2dbdba99ef2899e498dea3eb9a085417773686d7 | [
"Apache-2.0"
] | null | null | null | WeirdEngine/src/TestProject/Source Files/PlaySceneInputComponent.cpp | jeramauni/Proyecto-3 | 2dbdba99ef2899e498dea3eb9a085417773686d7 | [
"Apache-2.0"
] | null | null | null | WeirdEngine/src/TestProject/Source Files/PlaySceneInputComponent.cpp | jeramauni/Proyecto-3 | 2dbdba99ef2899e498dea3eb9a085417773686d7 | [
"Apache-2.0"
] | null | null | null | #include "PlaySceneInputComponent.h"
#include <iostream>
#include <Container.h>
#include <Messages_defs.h>
#include <ComponentFactory.h>
CREATE_REGISTER(PlaySceneInput);
PlaySceneInputComponent::PlaySceneInputComponent(Container* e) : InputComponent(e){
_listener = new WEInputListener(e);
_name = "PlayScene... | 26.175439 | 89 | 0.676944 | jeramauni |
12400188b528059e5e9c0ccf1ac9b43545084cb3 | 5,991 | cpp | C++ | Code/IO/GenerateMesh.cpp | guanjilai/FastCAE | 7afd59a3c0a82c1edf8f5d09482e906e878eb807 | [
"BSD-3-Clause"
] | 1 | 2021-08-14T04:49:56.000Z | 2021-08-14T04:49:56.000Z | Code/IO/GenerateMesh.cpp | guanjilai/FastCAE | 7afd59a3c0a82c1edf8f5d09482e906e878eb807 | [
"BSD-3-Clause"
] | null | null | null | Code/IO/GenerateMesh.cpp | guanjilai/FastCAE | 7afd59a3c0a82c1edf8f5d09482e906e878eb807 | [
"BSD-3-Clause"
] | null | null | null | #include "GenerateMesh.h"
#include "Gmsh/GmshThread.h"
#include "Gmsh/GmshModule.h"
#include "Gmsh/GmshThreadManager.h"
#include "moduleBase/processBar.h"
#include "geometry/geometryData.h"
#include "geometry/GeoComponent.h"
#include "geometry/geometrySet.h"
#include "meshData/ElementType.h"
#include <qdom.h>
#include ... | 32.209677 | 124 | 0.697212 | guanjilai |
1240720287dbe4fe8e41388f8fb50f390dc268a3 | 2,153 | cpp | C++ | ocs2_robotic_examples/ocs2_nadia/src/gait/Gait.cpp | james-p-foster/ocs2 | 8f1da414ba9ebb94ad1e8dd9bd513dbb9cc462fa | [
"BSD-3-Clause"
] | null | null | null | ocs2_robotic_examples/ocs2_nadia/src/gait/Gait.cpp | james-p-foster/ocs2 | 8f1da414ba9ebb94ad1e8dd9bd513dbb9cc462fa | [
"BSD-3-Clause"
] | null | null | null | ocs2_robotic_examples/ocs2_nadia/src/gait/Gait.cpp | james-p-foster/ocs2 | 8f1da414ba9ebb94ad1e8dd9bd513dbb9cc462fa | [
"BSD-3-Clause"
] | null | null | null | #include "ocs2_nadia/gait/Gait.h"
#include <ocs2_core/misc/Display.h>
#include <algorithm>
#include <cassert>
#include <cmath>
namespace ocs2 {
namespace legged_robot {
bool isValidGait(const Gait& gait) {
bool validGait = true;
validGait &= gait.duration > 0.0;
validGait &= std::all_of(gait.eventPhases.begin... | 29.902778 | 136 | 0.699025 | james-p-foster |
12416d9f0f5578a5c5f14ba2973b7e1ea95d7dce | 2,910 | cc | C++ | base/metrics/stats_counters.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 321 | 2018-06-17T03:52:46.000Z | 2022-03-18T02:34:52.000Z | base/metrics/stats_counters.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 19 | 2018-06-26T10:37:45.000Z | 2020-12-09T03:16:45.000Z | base/metrics/stats_counters.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | // Copyright (c) 2010 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 "base/metrics/stats_counters.h"
namespace base {
StatsCounter::StatsCounter(const std::string& name)
: counter_id_(-1) {
// We prepen... | 23.095238 | 78 | 0.654983 | domenic |
1243fa74c62b5e80b178f84fc7fb8eadc1079278 | 1,683 | cpp | C++ | Project/Main/Onket/goodgenralinfowidget.cpp | IsfahanUniversityOfTechnology-CE2019-23/Onket | 403d982f7c80d522ca28bb5f757a295eb02b3807 | [
"MIT"
] | 1 | 2021-01-03T21:33:26.000Z | 2021-01-03T21:33:26.000Z | Project/Main/Onket/goodgenralinfowidget.cpp | IsfahanUniversityOfTechnology-CE2019-23/Onket | 403d982f7c80d522ca28bb5f757a295eb02b3807 | [
"MIT"
] | null | null | null | Project/Main/Onket/goodgenralinfowidget.cpp | IsfahanUniversityOfTechnology-CE2019-23/Onket | 403d982f7c80d522ca28bb5f757a295eb02b3807 | [
"MIT"
] | 1 | 2020-07-22T14:48:58.000Z | 2020-07-22T14:48:58.000Z | #include "goodgenralinfowidget.h"
#include "ui_goodgenralinfowidget.h"
void GoodGenralInfoWidget::update()
{
if(this->info_valid==true)
{
Good& g=Good::getGood(good_id);
if(g.getDiscountpercent()==0)
{
this->ui->lab_price->setStyleSheet(this->font_regular);
}
else... | 25.119403 | 87 | 0.620915 | IsfahanUniversityOfTechnology-CE2019-23 |
12478c4c20dff2eb0a6695abb649947dff78812b | 444 | hpp | C++ | Notes_Week7/friendDemo/budget.hpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | 1 | 2019-01-06T22:36:01.000Z | 2019-01-06T22:36:01.000Z | Notes_Week7/friendDemo/budget.hpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | Notes_Week7/friendDemo/budget.hpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | #ifndef BUDGET_HPP
#define BUDGET_HPP
#include "aux.hpp"
class Budget {
private:
static double corpBudget;
double divBudget;
public:
Budget() { divBudget = 0;}
void addBudget(double b) {
this->divBudget += b;
this->corpBudget += divBudget;
}
double getDivBudget() const {return ... | 21.142857 | 57 | 0.664414 | WeiChienHsu |
1247a50cfa2148ab27780aa67c44238c57f1c5f1 | 544 | cpp | C++ | 12_cmake_with_unittest/wolfram/alpha.cpp | TeachYourselfCS/cmakeDemo | 752ab76cd43aa80aaa647eed4f5389f4f1ff39e7 | [
"MIT"
] | null | null | null | 12_cmake_with_unittest/wolfram/alpha.cpp | TeachYourselfCS/cmakeDemo | 752ab76cd43aa80aaa647eed4f5389f4f1ff39e7 | [
"MIT"
] | null | null | null | 12_cmake_with_unittest/wolfram/alpha.cpp | TeachYourselfCS/cmakeDemo | 752ab76cd43aa80aaa647eed4f5389f4f1ff39e7 | [
"MIT"
] | null | null | null | #include "wolfram/alpha.hpp"
#include <curl_wrapper/curl_wrapper.hpp>
namespace wolfram {
const std::string API_BASE = "https://api.wolframalpha.com/v1/result";
std::string simple_query(const std::string &appid, const std::string &query) {
// 使用 curl_wrapper 库提供的对 CURL 的 C++ 封装
using curl_wra... | 34 | 94 | 0.672794 | TeachYourselfCS |
1248872175050391e57b1e55632ee79d9f6705c2 | 3,414 | hpp | C++ | stm32/stm32f1/include/stm32f1/dma/Channel.hpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 1 | 2022-01-31T01:59:52.000Z | 2022-01-31T01:59:52.000Z | stm32/stm32f1/include/stm32f1/dma/Channel.hpp | PhischDotOrg/stm32-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 5 | 2020-04-13T21:55:12.000Z | 2020-06-27T17:44:44.000Z | stm32/stm32f1/include/stm32f1/dma/Channel.hpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | null | null | null | /*-
* $Copyright$
-*/
#ifndef _DMA_CHANNEL_STM32_HPP_B6BD9823_B66D_4724_9A96_965E03319555
#define _DMA_CHANNEL_STM32_HPP_B6BD9823_B66D_4724_9A96_965E03319555
#include <stdint.h>
#include <stddef.h>
#include <stm32/dma/Types.hpp>
#include <stm32f1/dma/Stream.hpp>
/****************************************************... | 34.836735 | 149 | 0.550088 | PhischDotOrg |
1249a9e10b06ff417f104350e87b75ba712d9446 | 2,470 | hpp | C++ | src/client/ofi_connector.hpp | ashahba/aeon | eafbc6b7040bf594854bd92f1606d37ddd862943 | [
"Apache-2.0"
] | null | null | null | src/client/ofi_connector.hpp | ashahba/aeon | eafbc6b7040bf594854bd92f1606d37ddd862943 | [
"Apache-2.0"
] | 3 | 2021-09-08T02:26:12.000Z | 2022-03-12T00:45:28.000Z | src/client/ofi_connector.hpp | ashahba/aeon | eafbc6b7040bf594854bd92f1606d37ddd862943 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2017 Intel(R) Nervana(TM)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 38 | 99 | 0.640081 | ashahba |
124fd45622dd2f9fb7cb43fc834bca9ecfbc2925 | 3,128 | cpp | C++ | jbmc/unit/java_bytecode/expr2java.cpp | DamonLiuTHU/cbmc | 67f8c916672347ab05418db45eebbd93885efdec | [
"BSD-4-Clause"
] | null | null | null | jbmc/unit/java_bytecode/expr2java.cpp | DamonLiuTHU/cbmc | 67f8c916672347ab05418db45eebbd93885efdec | [
"BSD-4-Clause"
] | null | null | null | jbmc/unit/java_bytecode/expr2java.cpp | DamonLiuTHU/cbmc | 67f8c916672347ab05418db45eebbd93885efdec | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module: Unit tests for expr-to-java string conversion
Author: Diffblue Ltd.
\*******************************************************************/
#include <testing-utils/catch.hpp>
#include <java_bytecode/expr2java.h>
TEST_CASE(
"expr2java t... | 23.518797 | 79 | 0.624361 | DamonLiuTHU |
1254ceced548ab361631a57308eaa611c1904981 | 1,301 | cc | C++ | mindspore/ccsrc/runtime/framework/actor/recorder_actor.cc | ATestGroup233/mindspore | 5d81221b5896cf7d7c6adb44daef28d92cb43352 | [
"Apache-2.0"
] | 1 | 2021-06-01T12:34:37.000Z | 2021-06-01T12:34:37.000Z | mindspore/ccsrc/runtime/framework/actor/recorder_actor.cc | ATestGroup233/mindspore | 5d81221b5896cf7d7c6adb44daef28d92cb43352 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/runtime/framework/actor/recorder_actor.cc | ATestGroup233/mindspore | 5d81221b5896cf7d7c6adb44daef28d92cb43352 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021 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... | 34.236842 | 116 | 0.747118 | ATestGroup233 |
125941b9721baa7147c01a5b8adf1f094d456f39 | 4,167 | cpp | C++ | demo/Demo.cpp | logicomacorp/pulsejet | ec73d19ccb71ff05b2122e258fe4b7b16e55fb53 | [
"MIT"
] | 30 | 2021-06-07T20:25:48.000Z | 2022-03-30T00:52:38.000Z | demo/Demo.cpp | going-digital/pulsejet | 8452a0311645867d64c038cef7fdf751b26717ee | [
"MIT"
] | null | null | null | demo/Demo.cpp | going-digital/pulsejet | 8452a0311645867d64c038cef7fdf751b26717ee | [
"MIT"
] | 1 | 2021-09-21T11:17:45.000Z | 2021-09-21T11:17:45.000Z | #include "FastSinusoids.hpp"
// Required by `Pulsejet::Encode` and `Pulsejet::Decode`
namespace Pulsejet::Shims
{
inline float CosF(float x)
{
return FastSinusoids::CosF(x);
}
inline float Exp2f(float x)
{
return exp2f(x);
}
inline float SinF(float x)
{
return FastSinusoids::SinF(x);
}
inline float ... | 24.656805 | 167 | 0.648908 | logicomacorp |
125d95781fe1a6a5ee591f15c3d616be1b9c5d76 | 11,560 | hpp | C++ | src/libraries/sampling/sampledSurface/sampledSurfaces/sampledSurfaces.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/sampling/sampledSurface/sampledSurfaces/sampledSurfaces.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/sampling/sampledSurface/sampledSurfaces/sampledSurfaces.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under... | 25.861298 | 80 | 0.528287 | MrAwesomeRocks |
125dcfd5073caa4a21da9cf969edd3a46e6c89d8 | 30,060 | cpp | C++ | framework/NetKinectArray.cpp | steppobeck/rgbd-recon | 171a8336c8e3ba52a1b187b73544338fdd3c9285 | [
"MIT"
] | 18 | 2016-09-03T05:12:25.000Z | 2022-02-23T15:52:33.000Z | framework/NetKinectArray.cpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 1 | 2016-05-04T09:06:29.000Z | 2016-05-04T09:06:29.000Z | framework/NetKinectArray.cpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 7 | 2016-04-20T13:58:50.000Z | 2018-07-09T15:47:26.000Z | #include "NetKinectArray.h"
#include "calibration_files.hpp"
#include "texture_blitter.hpp"
#include "screen_quad.hpp"
#include <FileBuffer.h>
#include <TextureArray.h>
#include <KinectCalibrationFile.h>
#include "CalibVolumes.hpp"
#include <DXTCompressor.h>
#include "timer_database.hpp"
#include <glbinding/gl/gl.h>
... | 38.837209 | 225 | 0.699235 | steppobeck |
125ddaa64893c1bc5fb3d87b467e692bac094343 | 14,229 | cpp | C++ | model/mosesdecoder/moses/TranslationModel/PhraseDictionaryGroup.cpp | saeedesm/UNMT_AH | cc171bf66933b5c0ad8a0ab87e57f7364312a7df | [
"Apache-2.0"
] | 3 | 2020-02-28T21:42:44.000Z | 2021-03-12T13:56:16.000Z | tools/mosesdecoder-master/moses/TranslationModel/PhraseDictionaryGroup.cpp | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-11-06T14:40:10.000Z | 2020-12-29T19:03:11.000Z | tools/mosesdecoder-master/moses/TranslationModel/PhraseDictionaryGroup.cpp | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2019-11-26T05:27:16.000Z | 2019-12-17T01:53:43.000Z | /***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2006 University of Edinburgh
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 Fr... | 35.5725 | 165 | 0.651416 | saeedesm |
125df8b5f954eddad4082bb67c7af71efd62f669 | 1,897 | cc | C++ | client/tsf/display_attribute_unittest.cc | zamorajavi/google-input-tools | fc9f11d80d957560f7accf85a5fc27dd23625f70 | [
"Apache-2.0"
] | 175 | 2015-01-01T12:40:33.000Z | 2019-05-24T22:33:59.000Z | client/tsf/display_attribute_unittest.cc | DalavanCloud/google-input-tools | fc9f11d80d957560f7accf85a5fc27dd23625f70 | [
"Apache-2.0"
] | 11 | 2015-01-19T16:30:56.000Z | 2018-04-25T01:06:52.000Z | client/tsf/display_attribute_unittest.cc | DalavanCloud/google-input-tools | fc9f11d80d957560f7accf85a5fc27dd23625f70 | [
"Apache-2.0"
] | 97 | 2015-01-19T15:35:29.000Z | 2019-05-15T05:48:02.000Z | /*
Copyright 2014 Google 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 applicable law or agreed to in writing,... | 28.742424 | 74 | 0.735899 | zamorajavi |
125dfa4fbc0f4c504f0bcc1b2116a3f49b7abe53 | 12,181 | hpp | C++ | memory/shared-pointer.hpp | daleksla/STL | c9b107cb7434e123dc25f3e0d9e8423f6be0030a | [
"BSL-1.0"
] | 1 | 2021-03-01T05:03:52.000Z | 2021-03-01T05:03:52.000Z | memory/shared-pointer.hpp | daleksla/STL | c9b107cb7434e123dc25f3e0d9e8423f6be0030a | [
"BSL-1.0"
] | 3 | 2021-03-01T04:21:26.000Z | 2021-06-28T18:30:52.000Z | memory/shared-pointer.hpp | daleksla/STL | c9b107cb7434e123dc25f3e0d9e8423f6be0030a | [
"BSL-1.0"
] | null | null | null | #ifndef SHARED_POINTER_HPP
#define SHARED_POINTER_HPP
#include "base-pointer.hpp"
/** @brief Shared pointer class, which persists a dynamic resource until the last Shared pointer object is destroyed or reset
@author Salih Mahmoud Sayed Ahmed
@email ahmed233@uni.coventry.ac.uk
@date May 2021
**/
namespace... | 40.069079 | 259 | 0.714638 | daleksla |
125e336a07455a86438ba298fdb4c87b9fd769c9 | 734 | cpp | C++ | SourceT/drlg_l3_test.cpp | madmaxoft/devilutionX | 5d2af51d01a31865e7384ba1fb0d24a2b2c55d26 | [
"Unlicense"
] | 54 | 2019-11-16T21:49:50.000Z | 2022-03-26T03:44:12.000Z | SourceT/drlg_l3_test.cpp | madmaxoft/devilutionX | 5d2af51d01a31865e7384ba1fb0d24a2b2c55d26 | [
"Unlicense"
] | 10 | 2019-08-20T16:54:37.000Z | 2020-05-06T08:30:53.000Z | SourceT/drlg_l3_test.cpp | madmaxoft/devilutionX | 5d2af51d01a31865e7384ba1fb0d24a2b2c55d26 | [
"Unlicense"
] | 5 | 2019-07-15T22:03:06.000Z | 2020-09-15T11:26:11.000Z | #include <gtest/gtest.h>
#include "all.h"
TEST(Drlg_l3, AddFenceDoors_x) {
memset(dvl::dungeon, 0, sizeof(dvl::dungeon));
dvl::dungeon[5][5] = 7;
dvl::dungeon[5 - 1][5] = 130;
dvl::dungeon[5 + 1][5] = 152;
dvl::AddFenceDoors();
EXPECT_EQ(dvl::dungeon[5][5], 146);
}
TEST(Drlg_l3, AddFenceDoors_y) {
memset(dvl::... | 24.466667 | 47 | 0.626703 | madmaxoft |
126371e683839b64e953048e1e1c32452297038c | 1,030 | cpp | C++ | src/cpu-kernels/awkward_RegularArray_broadcast_tooffsets_size1.cpp | BioGeek/awkward-1.0 | 0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2 | [
"BSD-3-Clause"
] | 519 | 2019-10-17T12:36:22.000Z | 2022-03-26T23:28:19.000Z | src/cpu-kernels/awkward_RegularArray_broadcast_tooffsets_size1.cpp | BioGeek/awkward-1.0 | 0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2 | [
"BSD-3-Clause"
] | 924 | 2019-11-03T21:05:01.000Z | 2022-03-31T22:44:30.000Z | src/cpu-kernels/awkward_RegularArray_broadcast_tooffsets_size1.cpp | BioGeek/awkward-1.0 | 0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2 | [
"BSD-3-Clause"
] | 56 | 2019-12-17T15:49:22.000Z | 2022-03-09T20:34:06.000Z | // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
#define FILENAME(line) FILENAME_FOR_EXCEPTIONS_C("src/cpu-kernels/awkward_RegularArray_broadcast_tooffsets_size1.cpp", line)
#include "awkward/kernels.h"
template <typename T>
ERROR awkward_RegularArray_broadcast_tooffsets_size1... | 30.294118 | 124 | 0.708738 | BioGeek |
126ad39989b1dd64d34bee6b66df242d60a3d2a6 | 4,004 | cpp | C++ | rmw/test/test_qos_string_conversions.cpp | Ericsson/ros2-rmw | 6c535d1c89ea94efa10eb876bc39ee4c1d09d8e7 | [
"Apache-2.0"
] | 65 | 2015-09-26T18:43:05.000Z | 2022-02-24T14:37:48.000Z | rmw/test/test_qos_string_conversions.cpp | Ericsson/ros2-rmw | 6c535d1c89ea94efa10eb876bc39ee4c1d09d8e7 | [
"Apache-2.0"
] | 242 | 2015-03-07T00:33:20.000Z | 2022-03-21T16:04:20.000Z | rmw/test/test_qos_string_conversions.cpp | Ericsson/ros2-rmw | 6c535d1c89ea94efa10eb876bc39ee4c1d09d8e7 | [
"Apache-2.0"
] | 55 | 2015-07-21T02:28:39.000Z | 2022-03-15T07:24:16.000Z | // Copyright 2020 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... | 48.829268 | 96 | 0.811688 | Ericsson |
126c17506fd8252eb0ed18ce6c729342b30aef40 | 608 | cpp | C++ | tests/netuit/arrange/RingTopologyFactory.cpp | mmore500/pipe-profile | 861babd819909d1bda5e933269e7bc64018272d6 | [
"MIT"
] | 15 | 2020-07-31T23:06:09.000Z | 2022-01-13T18:05:33.000Z | tests/netuit/arrange/RingTopologyFactory.cpp | mmore500/pipe-profile | 861babd819909d1bda5e933269e7bc64018272d6 | [
"MIT"
] | 137 | 2020-08-13T23:32:17.000Z | 2021-10-16T04:00:40.000Z | tests/netuit/arrange/RingTopologyFactory.cpp | mmore500/pipe-profile | 861babd819909d1bda5e933269e7bc64018272d6 | [
"MIT"
] | 3 | 2020-08-09T01:52:03.000Z | 2020-10-02T02:13:47.000Z | #include "Catch/single_include/catch2/catch.hpp"
#include "netuit/arrange/RingTopologyFactory.hpp"
#include "NetworkXTester.hpp"
TEST_CASE("Test RingTopologyFactory", "[nproc:1]") {
// TODO flesh out stub test
netuit::RingTopologyFactory{}(100);
for (size_t i = 0; i < 150; ++i) {
REQUIRE( netuit::RingTop... | 24.32 | 63 | 0.679276 | mmore500 |
126d72b5adedb55434b1eef86f6e9fe3817b4338 | 2,148 | cpp | C++ | oneEngine/oneGame/source/core/math/noise/WorleyCellNoise.cpp | skarik/1Engine | 84e846544b4a89af8fd7e9236131363096538ef4 | [
"BSD-3-Clause"
] | 8 | 2017-12-08T02:59:31.000Z | 2022-02-02T04:30:03.000Z | oneEngine/oneGame/source/core/math/noise/WorleyCellNoise.cpp | skarik/1Engine | 84e846544b4a89af8fd7e9236131363096538ef4 | [
"BSD-3-Clause"
] | 2 | 2021-04-16T03:44:42.000Z | 2021-08-30T06:48:44.000Z | oneEngine/oneGame/source/core/math/noise/WorleyCellNoise.cpp | skarik/1Engine | 84e846544b4a89af8fd7e9236131363096538ef4 | [
"BSD-3-Clause"
] | 1 | 2021-04-16T02:09:54.000Z | 2021-04-16T02:09:54.000Z | #include "WorleyCellNoise.h"
#include "core/math/Math.h"
#include <algorithm>
#include <random>
static Vector3f RandomCellPoint( int32 celX, int32 celY, int32 celZ, float offsets [1024] )
{
return Vector3f(
celX + offsets[(celX + celY^celZ) & (1024 - 1)],
celY + offsets[(celY * 912 + celX^cel... | 26.85 | 103 | 0.641061 | skarik |
12725a36a28dc5ce0025646519ad571e3c275e38 | 2,042 | cpp | C++ | ext/libigl/external/cgal/src/CGAL_Project/examples/Box_intersection_d/proximity_custom_box_traits.cpp | liminchen/OptCuts | cb85b06ece3a6d1279863e26b5fd17a5abb0834d | [
"MIT"
] | 187 | 2019-01-23T04:07:11.000Z | 2022-03-27T03:44:58.000Z | ext/libigl/external/cgal/src/CGAL_Project/examples/Box_intersection_d/proximity_custom_box_traits.cpp | xiaoxie5002/OptCuts | 1f4168fc867f47face85fcfa3a572be98232786f | [
"MIT"
] | 8 | 2019-03-22T13:27:38.000Z | 2020-06-18T13:23:23.000Z | ext/libigl/external/cgal/src/CGAL_Project/examples/Box_intersection_d/proximity_custom_box_traits.cpp | xiaoxie5002/OptCuts | 1f4168fc867f47face85fcfa3a572be98232786f | [
"MIT"
] | 34 | 2019-02-13T01:11:12.000Z | 2022-02-28T03:29:40.000Z | #include <CGAL/Simple_cartesian.h>
#include <CGAL/box_intersection_d.h>
#include <vector>
#include <fstream>
typedef CGAL::Simple_cartesian<float> Kernel;
typedef Kernel::Point_3 Point_3;
std::vector<Point_3> points;
std::vector<Point_3*> boxes; // boxes are just pointers to... | 35.824561 | 77 | 0.606758 | liminchen |
127bf5ca58020439263bc71b18088083af902bec | 4,806 | hpp | C++ | include/sharpen/IoEvent.hpp | Kylepoops/Sharpen | 5ef19d89ddab0b63ffc4d2489a1cd50e2d5bb132 | [
"MIT"
] | 13 | 2020-10-25T04:02:07.000Z | 2022-03-29T13:21:30.000Z | include/sharpen/IoEvent.hpp | Kylepoops/Sharpen | 5ef19d89ddab0b63ffc4d2489a1cd50e2d5bb132 | [
"MIT"
] | 18 | 2020-10-09T04:51:03.000Z | 2022-03-01T06:24:23.000Z | include/sharpen/IoEvent.hpp | Kylepoops/Sharpen | 5ef19d89ddab0b63ffc4d2489a1cd50e2d5bb132 | [
"MIT"
] | 7 | 2020-10-23T04:25:28.000Z | 2022-03-23T06:52:39.000Z | #pragma once
#ifndef _SHARPEN_IOEVENT_HPP
#define _SHARPEN_IOEVENT_HPP
#include "TypeDef.hpp"
#include "Noncopyable.hpp"
#include "Nonmovable.hpp"
#include "SystemError.hpp"
#include "IChannel.hpp"
namespace sharpen
{
class IoEvent
{
public:
//event type
struct EventTypeEnum
{
... | 24.150754 | 95 | 0.468997 | Kylepoops |
127fb3226a474e1e0f3d11b6c08c424db1b1eb57 | 3,226 | cc | C++ | ElectroWeakAnalysis/ZMuMu/plugins/ZMassHistogrammer.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | ElectroWeakAnalysis/ZMuMu/plugins/ZMassHistogrammer.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | ElectroWeakAnalysis/ZMuMu/plugins/ZMassHistogrammer.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | #include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DataFormats/Candidate/interface/Candidate.h"
#include "DataFormats/Candidate/interface/CandidateFwd.h"
#include "TH1.h"
class ZMassHistogrammer : public edm::EDAnalyzer {
public:
ZMassHistogrammer(const edm:... | 43.013333 | 114 | 0.66305 | SWuchterl |
12833c6d942dc11ae96ab4e0cbe07d686a2ee19d | 1,073 | hpp | C++ | include/cpppid/composers/adder.hpp | rvarago/cpppid | 0ca84beafd3bc68f2cbfd4f5b93b5ea66fe5e289 | [
"MIT"
] | 3 | 2019-07-17T14:08:22.000Z | 2021-09-18T19:08:43.000Z | include/cpppid/composers/adder.hpp | rvarago/cpppid | 0ca84beafd3bc68f2cbfd4f5b93b5ea66fe5e289 | [
"MIT"
] | 1 | 2019-01-05T09:07:49.000Z | 2019-04-14T14:13:13.000Z | include/cpppid/composers/adder.hpp | rvarago/cpppid | 0ca84beafd3bc68f2cbfd4f5b93b5ea66fe5e289 | [
"MIT"
] | null | null | null | #ifndef ADDER_HPP
#define ADDER_HPP
#include <type_traits>
#include <utility>
#include <tuple>
namespace cpppid::composers {
template <typename TotalOutput = double, typename... Controllers>
class adder {
using ControllersCollection = std::tuple<Controllers...>;
template <typename T>... | 31.558824 | 140 | 0.627213 | rvarago |
1283e20a085c260f030a1be7cfdcfc3d69945ee3 | 1,996 | cpp | C++ | TextOverviewTextEdit.cpp | B1anky/CppEditor | bb68ca521c35a8d7e658f9ddf789201d7b269a08 | [
"MIT"
] | 1 | 2020-09-11T12:42:15.000Z | 2020-09-11T12:42:15.000Z | TextOverviewTextEdit.cpp | B1anky/CppEditor | bb68ca521c35a8d7e658f9ddf789201d7b269a08 | [
"MIT"
] | null | null | null | TextOverviewTextEdit.cpp | B1anky/CppEditor | bb68ca521c35a8d7e658f9ddf789201d7b269a08 | [
"MIT"
] | null | null | null | #include "TextOverviewTextEdit.h"
#include <QVBoxLayout>
#include "TextEditor.h"
TextOverviewTextEdit::TextOverviewTextEdit(QWidget* parent) : QPlainTextEdit(parent){
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
//setReadOnly(true);
setFrame... | 26.263158 | 85 | 0.700401 | B1anky |
12846557f534c7c4c4b801379967939dcbf2bbc2 | 140 | cpp | C++ | cf/contest/741/d/temp.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | cf/contest/741/d/temp.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | cf/contest/741/d/temp.cpp | woshiluo/oi | 5637fb81b0e25013314783dc387f7fc93bf9d4b9 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
int main() {
int n = 500000;
printf( "%d\n", n );
for( int i = 1; i < n; i ++ ) {
printf( "%d %c\n", i, 'a' );
}
}
| 14 | 32 | 0.435714 | woshiluo |
128d156ffe4c9892fda317bf3f879e2164f6870d | 17,927 | cpp | C++ | i18n/tzfmt.cpp | tizenorg/external.icu | 5b69033400476be749862631609f60bd7daaacd7 | [
"ICU"
] | 3 | 2016-03-25T14:11:57.000Z | 2021-08-24T19:46:11.000Z | i18n/tzfmt.cpp | tizenorg/external.icu | 5b69033400476be749862631609f60bd7daaacd7 | [
"ICU"
] | null | null | null | i18n/tzfmt.cpp | tizenorg/external.icu | 5b69033400476be749862631609f60bd7daaacd7 | [
"ICU"
] | 2 | 2018-01-18T04:38:16.000Z | 2019-05-29T02:20:44.000Z | /*
*******************************************************************************
* Copyright (C) 2011, International Business Machines Corporation and *
* others. All Rights Reserved. *
*****************************************************************************... | 33.508411 | 128 | 0.636637 | tizenorg |
1290663a44741135dd5057b4b4deb77c8507cf2b | 5,538 | cc | C++ | chrome/browser/chromeos/login/multi_profile_user_controller.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2017-04-05T01:51:34.000Z | 2018-02-15T03:11:54.000Z | chrome/browser/chromeos/login/multi_profile_user_controller.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-12-13T19:44:12.000Z | 2021-12-13T19:44:12.000Z | chrome/browser/chromeos/login/multi_profile_user_controller.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2017-04-05T01:52:03.000Z | 2022-02-13T17:58:45.000Z | // Copyright 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 "chrome/browser/chromeos/login/multi_profile_user_controller.h"
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/prefs/... | 34.185185 | 81 | 0.752618 | nagineni |
129327ac92ab53807fd23e9ec0dfb564ab1f1f43 | 64 | cpp | C++ | src/gitcpp/implementation/config/ConfigLevel.cpp | ekuch/gitcpp | 8f29d4fd3f63a6a52885505983c756e5b5ee27dc | [
"MIT"
] | 1 | 2017-02-07T14:20:59.000Z | 2017-02-07T14:20:59.000Z | src/gitcpp/implementation/config/ConfigLevel.cpp | ekuch/gitcpp | 8f29d4fd3f63a6a52885505983c756e5b5ee27dc | [
"MIT"
] | null | null | null | src/gitcpp/implementation/config/ConfigLevel.cpp | ekuch/gitcpp | 8f29d4fd3f63a6a52885505983c756e5b5ee27dc | [
"MIT"
] | null | null | null | //
// Created by ekuch on 10/5/15.
//
#include "ConfigLevel.h"
| 10.666667 | 31 | 0.625 | ekuch |
129c88974c7d201c1913af5167e4c02189ce2c68 | 991 | cpp | C++ | code/WPILib/NetworkTables/Confirmation.cpp | trc492/Frc2012ReboundRumble | b1e60e8bcd43a0a86d0dfefe094a017f9ecf34c8 | [
"MIT"
] | null | null | null | code/WPILib/NetworkTables/Confirmation.cpp | trc492/Frc2012ReboundRumble | b1e60e8bcd43a0a86d0dfefe094a017f9ecf34c8 | [
"MIT"
] | null | null | null | code/WPILib/NetworkTables/Confirmation.cpp | trc492/Frc2012ReboundRumble | b1e60e8bcd43a0a86d0dfefe094a017f9ecf34c8 | [
"MIT"
] | null | null | null | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2011. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. ... | 27.527778 | 96 | 0.587286 | trc492 |
129da0e743365641ddfc5dc386643ed650fed279 | 5,995 | cpp | C++ | src/mame/drivers/altos2.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/altos2.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/altos2.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:AJR
/***********************************************************************************************************************************
2017-11-03 Skeleton
Altos II terminal. Green screen.
Chips: Z80A, 2x Z80DART, Z80CTC, X2210D, 2x CRT9006, CRT9007, CRT9021A, 8x 6116
O... | 32.058824 | 163 | 0.704754 | Robbbert |
129f96c927ff41c3ec0f996122ad6086a5c11357 | 3,421 | cpp | C++ | Source/ee/VuAnalysis.cpp | maximu/Play- | c9ea635c66a5cc939b8719b634bc8135ec0d67ce | [
"BSD-2-Clause"
] | 1 | 2021-03-30T16:23:17.000Z | 2021-03-30T16:23:17.000Z | Source/ee/VuAnalysis.cpp | maximu/Play- | c9ea635c66a5cc939b8719b634bc8135ec0d67ce | [
"BSD-2-Clause"
] | null | null | null | Source/ee/VuAnalysis.cpp | maximu/Play- | c9ea635c66a5cc939b8719b634bc8135ec0d67ce | [
"BSD-2-Clause"
] | null | null | null | #include "VuAnalysis.h"
#include "../MIPS.h"
#include "../Ps2Const.h"
#include "VUShared.h"
void CVuAnalysis::Analyse(CMIPS* ctx, uint32 begin, uint32 end)
{
int routineCount = 0;
begin &= ~0x07;
end &= ~0x07;
std::set<uint32> subroutineAddresses;
//First pass: Check for BAL
for(uint32 address = begin; addres... | 28.272727 | 102 | 0.699503 | maximu |
12a0d514f63d3ce45c69c31f0d3021ddc0bdc0ff | 4,776 | cpp | C++ | LeetCode/0018/0018_3.cpp | samsonwang/ToyCpp | a6a757aacf1a0e6d9ba3c943c5744fde611a2f7c | [
"MIT"
] | null | null | null | LeetCode/0018/0018_3.cpp | samsonwang/ToyCpp | a6a757aacf1a0e6d9ba3c943c5744fde611a2f7c | [
"MIT"
] | null | null | null | LeetCode/0018/0018_3.cpp | samsonwang/ToyCpp | a6a757aacf1a0e6d9ba3c943c5744fde611a2f7c | [
"MIT"
] | null | null | null |
#include <cstdio>
#include <iostream>
#include <vector>
#include <set>
#include <algorithm>
using namespace std;
static const auto fast = [](){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
return 0;
... | 38.516129 | 102 | 0.439698 | samsonwang |
12a15ab2534c96d692424ec4d7ef0e76165f9c6e | 651 | cpp | C++ | Problems/0123. Best Time to Buy and Sell Stock III.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0123. Best Time to Buy and Sell Stock III.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | Problems/0123. Best Time to Buy and Sell Stock III.cpp | KrKush23/LeetCode | 2a87420a65347a34fba333d46e1aa6224c629b7a | [
"MIT"
] | null | null | null | class Solution {
public:
int maxProfit(vector<int>& prices) {
int buy1{INT_MIN},sell1{0},buy2{INT_MIN},sell2{0};
for(auto p: prices){
buy1 = max(buy1, -p);
sell1 = max(sell1, buy1 + p);
buy2 = max(buy2, sell1 - p);
sell2 = max(sell2, buy2 + p);
... | 32.55 | 92 | 0.602151 | KrKush23 |
12a50b1caf5331662b94d734b46dd2ae4bffebfb | 537 | cpp | C++ | src/bindings/python/src/pyopenvino/core/containers.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 1 | 2021-02-01T06:35:55.000Z | 2021-02-01T06:35:55.000Z | src/bindings/python/src/pyopenvino/core/containers.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 58 | 2020-11-06T12:13:45.000Z | 2022-03-28T13:20:11.000Z | src/bindings/python/src/pyopenvino/core/containers.cpp | pazamelin/openvino | b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48 | [
"Apache-2.0"
] | 4 | 2021-09-29T20:44:49.000Z | 2021-10-20T13:02:12.000Z | // Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "pyopenvino/core/containers.hpp"
#include <pybind11/stl_bind.h>
PYBIND11_MAKE_OPAQUE(Containers::TensorIndexMap);
PYBIND11_MAKE_OPAQUE(Containers::TensorNameMap);
namespace py = pybind11;
namespace Containers {
void regclas... | 22.375 | 54 | 0.759777 | pazamelin |
12a684ba6c8a436019a10870c9623e98a9da4849 | 1,414 | cpp | C++ | 14502/14502.cpp17.cpp | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 14 | 2017-05-02T02:00:42.000Z | 2021-11-16T07:25:29.000Z | 14502/14502.cpp17.cpp | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 1 | 2017-12-25T14:18:14.000Z | 2018-02-07T06:49:44.000Z | 14502/14502.cpp17.cpp | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 9 | 2016-03-03T22:06:52.000Z | 2020-04-30T22:06:24.000Z | #include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
char map[9][9], tmp[9][9];
int n, m;
int dfs(int r, int c) {
if (r < 0 or c < 0) return 0;
else if (tmp[r][c] == 0 or tmp[r][c] == '1' or tmp[r][c] == '3') return 0;
tmp[r][c] = '3';
return 1 + dfs(r - 1, c) + dfs(r, c - 1) +... | 27.192308 | 80 | 0.387553 | isac322 |
12a6f310d7f06fdd53725b1a419520478ac8522b | 2,298 | cxx | C++ | Servers/ServerManager/vtkSMSILDomain.cxx | utkarshayachit/ParaView | 7bbb2aa16fdef9cfbcf4a3786cad905d6770771b | [
"BSD-3-Clause"
] | null | null | null | Servers/ServerManager/vtkSMSILDomain.cxx | utkarshayachit/ParaView | 7bbb2aa16fdef9cfbcf4a3786cad905d6770771b | [
"BSD-3-Clause"
] | null | null | null | Servers/ServerManager/vtkSMSILDomain.cxx | utkarshayachit/ParaView | 7bbb2aa16fdef9cfbcf4a3786cad905d6770771b | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: ParaView
Module: vtkSMSILDomain.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY... | 27.357143 | 79 | 0.549173 | utkarshayachit |
12a7ce2f5f6b72d3eafe6d221e132d044295020f | 13,044 | cpp | C++ | data/cwru-ros-pkg/catkin/src/cwru_376_student/wsn_examples/example_robot_commander/src/interactive_robot_commander_v2.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/cwru-ros-pkg/catkin/src/cwru_376_student/wsn_examples/example_robot_commander/src/interactive_robot_commander_v2.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/cwru-ros-pkg/catkin/src/cwru_376_student/wsn_examples/example_robot_commander/src/interactive_robot_commander_v2.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | //simple interactive motion commander v2:
// this version (v2) also responds to 2D Nav Goal inputs from Rviz;
// such inputs trigger automatically--do not require external trigger
// ALSO, with rviz in "map" as fixed frame, this version uses tf
// to convert goal coords from map frame to odom frame
// receive goal coo... | 40.01227 | 157 | 0.650874 | khairulislam |
12a9eb8a4a390166a79cd5287179c03fe7b75d60 | 14,479 | cpp | C++ | src/Core/Input/InputManager.cpp | lukefelsberg/ObEngine | a0385df4944adde7c1c8073ead15419286c70019 | [
"MIT"
] | 442 | 2017-03-03T11:42:11.000Z | 2021-05-20T13:40:02.000Z | src/Core/Input/InputManager.cpp | lukefelsberg/ObEngine | a0385df4944adde7c1c8073ead15419286c70019 | [
"MIT"
] | 308 | 2017-02-21T10:39:31.000Z | 2021-05-14T21:30:56.000Z | src/Core/Input/InputManager.cpp | lukefelsberg/ObEngine | a0385df4944adde7c1c8073ead15419286c70019 | [
"MIT"
] | 45 | 2017-03-11T15:24:28.000Z | 2021-05-09T15:21:42.000Z | #include <set>
#include <Input/Exceptions.hpp>
#include <Input/InputManager.hpp>
#include <Utils/VectorUtils.hpp>
namespace obe::Input
{
bool updateOrCleanMonitor(
Event::EventGroupPtr events, const std::weak_ptr<InputButtonMonitor>& element)
{
if (auto monitor = element.lock())
{
... | 34.638756 | 99 | 0.457421 | lukefelsberg |
12aa7fa7dcac95d6dcc6274d18bd45dcc4753ecd | 3,342 | cxx | C++ | vital/types/camera_rpc.cxx | judajake/kwiver | 303a11ebb43c020ab8e48b6ef70407b460dba46b | [
"BSD-3-Clause"
] | null | null | null | vital/types/camera_rpc.cxx | judajake/kwiver | 303a11ebb43c020ab8e48b6ef70407b460dba46b | [
"BSD-3-Clause"
] | null | null | null | vital/types/camera_rpc.cxx | judajake/kwiver | 303a11ebb43c020ab8e48b6ef70407b460dba46b | [
"BSD-3-Clause"
] | null | null | null | /*ckwg +29
* Copyright 2013-2018 by Kitware, 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 li... | 29.839286 | 81 | 0.691203 | judajake |
12aaa1f523e7d7863e05204b6c41eeb1e63a610a | 3,244 | cpp | C++ | ReviewTheMovie/common.cpp | fathurmh/MultiLinkedList | 2343744155c934f24b46c5e4171a395cd143ed65 | [
"MIT"
] | null | null | null | ReviewTheMovie/common.cpp | fathurmh/MultiLinkedList | 2343744155c934f24b46c5e4171a395cd143ed65 | [
"MIT"
] | null | null | null | ReviewTheMovie/common.cpp | fathurmh/MultiLinkedList | 2343744155c934f24b46c5e4171a395cd143ed65 | [
"MIT"
] | null | null | null | // include library c++
#include <conio.h>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
// include library buatan
#include "common.h"
// using namespace
using namespace std;
// alokasi array 2 dimensi
int *Allocate(int row, int col)
{
// instansiasi baris array
int *arr = new int... | 19.780488 | 90 | 0.532984 | fathurmh |
12ad891131d3699076a86ccfb91948b790002eb7 | 861 | cpp | C++ | HDU/Bestcoder/87/C/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | HDU/Bestcoder/87/C/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | HDU/Bestcoder/87/C/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstring>
#define cls(a) memset(a,0,sizeof(a))
#define rg register
#define rep(i,x,y) for(rg int i=(x);i<=(y);++i)
#define per(i,x,y) for(rg int i=(x);i>=(y);--i)
const int maxn=1e6+10,maxm=1e6+10;
inline void up(int&x,int y){if(y>x)x=y;}
using namespace std;
int n,m,a[maxn],... | 26.090909 | 86 | 0.557491 | sjj118 |
12aedf4cb4475e1ce53ffae84dab0f2ac3d35105 | 8,577 | cc | C++ | paddle/phi/kernels/cpu/group_norm_kernel.cc | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 11 | 2016-08-29T07:43:26.000Z | 2016-08-29T07:51:24.000Z | paddle/phi/kernels/cpu/group_norm_kernel.cc | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | null | null | null | paddle/phi/kernels/cpu/group_norm_kernel.cc | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 1 | 2021-09-24T11:23:36.000Z | 2021-09-24T11:23:36.000Z | // Copyright (c) 2022 PaddlePaddle 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... | 40.649289 | 80 | 0.565932 | L-Net-1992 |
12b3a8f7536adbc3e318bac566e8c329658d45d0 | 20,896 | cpp | C++ | FinalProject/src/preprocess.cpp | zuimrs/ImageProcess | 8a699668c71e45e7910a6bfcb3ab0589d878cbfa | [
"MIT"
] | 1 | 2018-06-20T12:29:52.000Z | 2018-06-20T12:29:52.000Z | FinalProject/src/preprocess.cpp | zuimrs/ImageProcess | 8a699668c71e45e7910a6bfcb3ab0589d878cbfa | [
"MIT"
] | null | null | null | FinalProject/src/preprocess.cpp | zuimrs/ImageProcess | 8a699668c71e45e7910a6bfcb3ab0589d878cbfa | [
"MIT"
] | null | null | null | #include "preprocess.h"
#include <iostream>
#include <cmath>
#include <algorithm>
#define PI 3.14159265
#define gFilterx 5
#define gFiltery 5
#define sigma 1
#define threshold_low 100
#define threshold_high 120
#define theta_size 500
using namespace std;
using namespace cimg_library;
Preprocess::Preprocess(string in... | 29.266106 | 123 | 0.496746 | zuimrs |
12b59315bad515d1e38175454fc0687f05006d38 | 586 | hpp | C++ | bnl/base/include/bnl/ip/host.hpp | DaanDeMeyer/h3c | 5fe5705afeebda94eb2fc8483dac6846b2deb85f | [
"MIT"
] | 4 | 2019-07-29T07:54:20.000Z | 2020-05-14T10:12:59.000Z | bnl/base/include/bnl/ip/host.hpp | DaanDeMeyer/h3c | 5fe5705afeebda94eb2fc8483dac6846b2deb85f | [
"MIT"
] | null | null | null | bnl/base/include/bnl/ip/host.hpp | DaanDeMeyer/h3c | 5fe5705afeebda94eb2fc8483dac6846b2deb85f | [
"MIT"
] | 1 | 2020-05-14T10:12:58.000Z | 2020-05-14T10:12:58.000Z | #pragma once
#include <bnl/base/string.hpp>
#include <bnl/base/string_view.hpp>
#include <iosfwd>
namespace bnl {
namespace ip {
class BNL_BASE_EXPORT host {
public:
host() = default;
host(std::string name) noexcept; // NOLINT
host(const char *name) noexcept; // NOLINT
host(const host &) = default;
host ... | 17.235294 | 47 | 0.679181 | DaanDeMeyer |
12b9950e74d79f79af2f0875a57b17c00dc10b4c | 1,125 | cpp | C++ | src/DecayingShapesFromNotes.cpp | kant/GeoLEDic | 3cfb343576c9fb1a5470b0f604891b7d9033cdbb | [
"MIT"
] | null | null | null | src/DecayingShapesFromNotes.cpp | kant/GeoLEDic | 3cfb343576c9fb1a5470b0f604891b7d9033cdbb | [
"MIT"
] | 8 | 2021-06-14T09:09:28.000Z | 2021-12-05T04:56:08.000Z | src/DecayingShapesFromNotes.cpp | kant/GeoLEDic | 3cfb343576c9fb1a5470b0f604891b7d9033cdbb | [
"MIT"
] | 1 | 2021-11-12T01:39:56.000Z | 2021-11-12T01:39:56.000Z | #include "DecayingShapesFromNotes.hpp"
DecayingShapesFromNotes::DecayingShapesFromNotes():
m_decay_rate(10),
m_any_triangle_set(false)
{
std::fill_n(m_decaying_triangles, DOME_NUM_TRIANGLES, 0);
}
void DecayingShapesFromNotes::run()
{
bool triangle_set = false;
for (uint8_t k = 0; k < DOME_NUM_TRIANGLE... | 20.833333 | 92 | 0.655111 | kant |
12ba26c5dee285dbb83297a364b73d1766fc7e38 | 21,042 | cc | C++ | src/Point_ClosedOrbitCheby.cc | PaulMcMillan-Astro/TorusLight | 4a08998a5cc918b369414437ae8df109d7a926ee | [
"MIT"
] | 1 | 2015-12-18T16:27:53.000Z | 2015-12-18T16:27:53.000Z | src/Point_ClosedOrbitCheby.cc | PaulMcMillan-Astro/TorusLight | 4a08998a5cc918b369414437ae8df109d7a926ee | [
"MIT"
] | null | null | null | src/Point_ClosedOrbitCheby.cc | PaulMcMillan-Astro/TorusLight | 4a08998a5cc918b369414437ae8df109d7a926ee | [
"MIT"
] | null | null | null |
/*
*
* C++ code written by Paul McMillan, 2008 *
* e-mail: paul@astro.lu.se *
* github: https://github.com/PaulMcMillan-Astro/Torus *
*/
#include "Point_ClosedOrbitCheby.h"
#include "PJMNum.h"
#include "... | 32.826833 | 86 | 0.552134 | PaulMcMillan-Astro |
520e4a33f04febe48668f2cbfdc7fa5fe00aaa6a | 5,217 | cpp | C++ | Oem/dbxml/xqilla/src/functions/FunctionId.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Oem/dbxml/xqilla/src/functions/FunctionId.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Oem/dbxml/xqilla/src/functions/FunctionId.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | /*
* Copyright (c) 2001-2008
* DecisionSoft Limited. All rights reserved.
* Copyright (c) 2004-2008
* Oracle. 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... | 34.322368 | 129 | 0.676634 | achilex |
52127d9558484f9d16631508c3f8ca167a12b651 | 11,685 | cpp | C++ | main.cpp | tsoding/kkona | 1957ce783d61490940a681abe1c904f3a7331690 | [
"MIT"
] | 5 | 2020-04-05T18:56:20.000Z | 2020-04-13T05:44:02.000Z | main.cpp | tsoding/kkona | 1957ce783d61490940a681abe1c904f3a7331690 | [
"MIT"
] | null | null | null | main.cpp | tsoding/kkona | 1957ce783d61490940a681abe1c904f3a7331690 | [
"MIT"
] | null | null | null | #include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <SDL.h>
#include <png.h>
template <typename T>
struct Rect
{
T x, y, w, h;
};
using Rectf = Rect<float>;
SDL_Rect rectf_for_sdl(Rectf rect)
{
return {(int) floorf(rect.x),
(int) floorf(rect.y),
(i... | 26.986143 | 106 | 0.558922 | tsoding |
5215fd7b379e0b8a9eb62f77bcf9bc66af329346 | 3,167 | cpp | C++ | server/api/src/rsSpecificQuery.cpp | stefan-wolfsheimer/irods | f6eb6c72786288878706e2562a370b91b7d0802e | [
"BSD-3-Clause"
] | null | null | null | server/api/src/rsSpecificQuery.cpp | stefan-wolfsheimer/irods | f6eb6c72786288878706e2562a370b91b7d0802e | [
"BSD-3-Clause"
] | null | null | null | server/api/src/rsSpecificQuery.cpp | stefan-wolfsheimer/irods | f6eb6c72786288878706e2562a370b91b7d0802e | [
"BSD-3-Clause"
] | null | null | null | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* See specificQuery.h for a description of this API call.*/
#include "irods/specificQuery.h"
#include "irods/icatHighLevelRoutines.hpp"
#include "irods/miscUt... | 33.691489 | 121 | 0.607831 | stefan-wolfsheimer |
52166845003e90d0090f800b681e53cfb51b447c | 307 | cpp | C++ | AtCoder/ABC079/A/abc079_a.cpp | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 1 | 2022-02-21T15:43:01.000Z | 2022-02-21T15:43:01.000Z | AtCoder/ABC079/A/abc079_a.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | AtCoder/ABC079/A/abc079_a.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
#define endl '\n'
#define fastio ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
using namespace std;
signed main() {
string n; cin >> n;
if ((n[0] == n[1] && n[1] == n[2]) || (n[1] == n[2] && n[2] == n[3])) cout << "Yes";
else cout << "No";
} | 30.7 | 88 | 0.543974 | object-oriented-human |
52177474559eeebe0f9989317ba0a2177a0c0060 | 67 | cpp | C++ | common/renderer/component/Component.cpp | damonwy/vk_launcher | ac06969c3429c5b1a49245ee75a275afa22480c8 | [
"MIT"
] | null | null | null | common/renderer/component/Component.cpp | damonwy/vk_launcher | ac06969c3429c5b1a49245ee75a275afa22480c8 | [
"MIT"
] | 4 | 2020-12-29T00:16:39.000Z | 2021-01-18T02:04:33.000Z | common/renderer/component/Component.cpp | damonwy/vk_launcher | ac06969c3429c5b1a49245ee75a275afa22480c8 | [
"MIT"
] | null | null | null | //
// Created by Daosheng Mu on 8/9/20.
//
#include "Component.h"
| 11.166667 | 36 | 0.626866 | damonwy |
5217abbca1119f5eb093537d6bd996ad91786692 | 384 | cc | C++ | ch04/simplenet/lib/gradient.cc | research-note/deep-learning-from-scratch-using-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | 2 | 2021-08-15T12:38:41.000Z | 2021-08-15T12:38:51.000Z | ch04/simplenet/lib/gradient.cc | research-note/deep-learning-from-scratch-using-modern-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | null | null | null | ch04/simplenet/lib/gradient.cc | research-note/deep-learning-from-scratch-using-modern-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | null | null | null | /*
* Build gradient lib.
*
* Copyright Paran Lee
*
*/
#include <iostream>
#include "lib/gradient.hpp"
template <typename F, typename T>
T gradient(F f, T x) {
const auto h = 1e-4;
const auto hh = 2 * h;
std::transform(x.begin(), x.end(), x.begin(),
[f, h, hh](auto v) -> auto {
re... | 16.695652 | 49 | 0.510417 | research-note |
5217acc06431d7d61d2c9174253962e91b57b67e | 92,486 | cc | C++ | Rover/build_isolated/cartographer/install/cartographer/mapping/proto/pose_graph.pb.cc | Rose-Hulman-Rover-Team/Rover-2019-2020 | d75a9086fa733f8a8b5240005bee058737ad82c7 | [
"MIT"
] | 1 | 2019-11-07T08:06:26.000Z | 2019-11-07T08:06:26.000Z | TrekBot_WS/build_isolated/cartographer/install/cartographer/mapping/proto/pose_graph.pb.cc | Rafcin/TrekBot | d3dc63e6c16a040b16170f143556ef358018b7da | [
"Unlicense"
] | null | null | null | TrekBot_WS/build_isolated/cartographer/install/cartographer/mapping/proto/pose_graph.pb.cc | Rafcin/TrekBot | d3dc63e6c16a040b16170f143556ef358018b7da | [
"Unlicense"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cartographer/mapping/proto/pose_graph.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "cartographer/mapping/proto/pose_graph.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/... | 39.778925 | 170 | 0.735625 | Rose-Hulman-Rover-Team |
5218ced965d0b9d1c15bfad696ab2303f3afdf7c | 3,085 | hpp | C++ | include/mindsp/window.hpp | nsdrozario/guitar-amp | bd11d613e11893632d51807fb4b7b08a348d3528 | [
"MIT"
] | 1 | 2022-03-31T18:35:26.000Z | 2022-03-31T18:35:26.000Z | include/mindsp/window.hpp | nsdrozario/granite-amp | 2f797581f36f733048c7c9c98bdfff82d6fbe1b9 | [
"MIT"
] | 6 | 2021-07-06T23:21:30.000Z | 2021-08-15T03:26:27.000Z | include/mindsp/window.hpp | nsdrozario/granite-amp | 2f797581f36f733048c7c9c98bdfff82d6fbe1b9 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2021 Nathaniel D'Rozario
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... | 30.85 | 88 | 0.552026 | nsdrozario |
521c417b1daff8a28a7d0f6005b8e10ae6c179df | 547 | cpp | C++ | NWNXLib/API/Linux/API/SJournalEntry.cpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Linux/API/SJournalEntry.cpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Linux/API/SJournalEntry.cpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #include "SJournalEntry.hpp"
#include "API/Functions.hpp"
#include "Platform/ASLR.hpp"
namespace NWNXLib {
namespace API {
SJournalEntry::~SJournalEntry()
{
SJournalEntry__SJournalEntryDtor(this);
}
void SJournalEntry__SJournalEntryDtor(SJournalEntry* thisPtr)
{
using FuncPtrType = void(__attribute__((cdecl... | 21.88 | 105 | 0.760512 | acaos |
521ec656a1d0999a32474e11f55f465aa8c60c07 | 3,131 | cpp | C++ | source/axPython.cpp | alxarsenault/axServer | cb5edf5a3d3010abe182e8c8b61bafbb8f3800f4 | [
"MIT"
] | 1 | 2015-10-18T07:48:20.000Z | 2015-10-18T07:48:20.000Z | source/axPython.cpp | alxarsenault/axServer | cb5edf5a3d3010abe182e8c8b61bafbb8f3800f4 | [
"MIT"
] | null | null | null | source/axPython.cpp | alxarsenault/axServer | cb5edf5a3d3010abe182e8c8b61bafbb8f3800f4 | [
"MIT"
] | null | null | null | //#include <Python.h>
//#include <iostream>
//#include <unistd.h>
//// https://docs.python.org/2/extending/embedding.html
//#include <string>
//#include <vector>
//#include <stdio.h>
#include "axPython.h"
axPython::axPython(int argc, char* argv[])
{
// std::cout << "axPython." << std::endl;
Py_SetProgramName(... | 26.533898 | 101 | 0.634941 | alxarsenault |
52208f052772c1c11b1322c7e8e002e64b4f5d10 | 5,959 | cpp | C++ | utility/DebugLog.cpp | salsanci/YRShell | 7a6073651d2ddef0c258c9943a5f9fd88068a561 | [
"MIT"
] | 2 | 2017-09-09T15:18:44.000Z | 2020-02-02T17:08:40.000Z | utility/DebugLog.cpp | salsanci/YRShell | 7a6073651d2ddef0c258c9943a5f9fd88068a561 | [
"MIT"
] | 39 | 2017-10-19T00:44:17.000Z | 2019-01-19T19:20:24.000Z | utility/DebugLog.cpp | salsanci/YRShell | 7a6073651d2ddef0c258c9943a5f9fd88068a561 | [
"MIT"
] | null | null | null | #include "DebugLog.h"
void DebugLog::printHexLine( const char* P, int len) {
int i, j;
memset(c_buf, ' ', sizeof(c_buf)-1);
c_buf[ sizeof( c_buf) - 1] = '\0';
for( j = i = 0; i < 16; P++, i++ ) {
if( i >= len) {
print( " ");
} else {
c_buf[ j++] = *P > 0x20 && ... | 26.021834 | 134 | 0.523074 | salsanci |
522168d31a350d40e16c883515a64b194aed437f | 3,136 | cpp | C++ | 044_Scattering (light)/Renders/Material.cpp | HansWord/HansMemory | ae74b8d4f5ebc749508ce43250a604e364950203 | [
"MIT"
] | null | null | null | 044_Scattering (light)/Renders/Material.cpp | HansWord/HansMemory | ae74b8d4f5ebc749508ce43250a604e364950203 | [
"MIT"
] | null | null | null | 044_Scattering (light)/Renders/Material.cpp | HansWord/HansMemory | ae74b8d4f5ebc749508ce43250a604e364950203 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Material.h"
Material::Material()
: shader(NULL)
, diffuseMap(NULL), specularMap(NULL), normalMap(NULL)
, bShaderDelete(false)
{
buffer = new Buffer();
}
Material::Material(wstring shaderFile)
: diffuseMap(NULL), specularMap(NULL), normalMap(NULL)
{
assert(shaderFile.length() > 0);
... | 18.778443 | 74 | 0.71588 | HansWord |
5221e166d95f0dba1d81287641d9b5c6783d3b87 | 13,581 | cc | C++ | src/vnsw/agent/ovs_tor_agent/ovsdb_client/vlan_port_binding_ovsdb.cc | madkiss/contrail-controller | 17f622dfe99f8ab4163436399e80f95dd564814c | [
"Apache-2.0"
] | null | null | null | src/vnsw/agent/ovs_tor_agent/ovsdb_client/vlan_port_binding_ovsdb.cc | madkiss/contrail-controller | 17f622dfe99f8ab4163436399e80f95dd564814c | [
"Apache-2.0"
] | null | null | null | src/vnsw/agent/ovs_tor_agent/ovsdb_client/vlan_port_binding_ovsdb.cc | madkiss/contrail-controller | 17f622dfe99f8ab4163436399e80f95dd564814c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
extern "C" {
#include <ovsdb_wrapper.h>
};
#include <ovs_tor_agent/tor_agent_init.h>
#include <ovsdb_client.h>
#include <ovsdb_client_idl.h>
#include <ovsdb_client_session.h>
#include <physical_switch_ovsdb.h>
#include <logical_switch_ovsdb.h>
#i... | 37.106557 | 82 | 0.667698 | madkiss |
5222c1245620847883752cf0b2e098c5618357f9 | 1,175 | cpp | C++ | 0023-merge-k-sorted-lists.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 106 | 2019-06-08T15:23:45.000Z | 2020-04-04T17:56:54.000Z | 0023-merge-k-sorted-lists.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | null | null | null | 0023-merge-k-sorted-lists.cpp | Jamesweng/leetcode | 1711a2a0e31d831e40137203c9abcba0bf56fcad | [
"Apache-2.0"
] | 3 | 2019-07-13T05:51:29.000Z | 2020-04-04T17:56:57.000Z | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
bool comp(const ListNode* a, const ListNode* b) {
return a->val > b->val;
}
class Solution {
public:
ListNode* mergeKLists(vector<ListNode*>& lists) {
... | 25.543478 | 60 | 0.417021 | Jamesweng |
5222c5bcff8285f9c5fc191347f390ccaf6533e9 | 1,798 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_dal/dal_TimeStepMapperTest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_dal/dal_TimeStepMapperTest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_dal/dal_TimeStepMapperTest.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #define BOOST_TEST_MODULE pcraster dal time_step_mapper
#include <boost/test/unit_test.hpp>
#include "dal_TimeStepMapper.h"
#include "dal_MathUtils.h"
BOOST_AUTO_TEST_CASE(test)
{
using namespace dal;
// Dataset A:
// 1 - 28
// 20060201 - 20060228 (days)
//
// Dataset B:
// 1 - 365
// 20060101 - 2006... | 30.474576 | 68 | 0.64238 | quanpands |
522328eb7705d95a3badd8068af28f86285f4bd8 | 5,360 | hpp | C++ | libiop/bcs/merkle_tree.hpp | alexander-zw/libiop | a2ed2ec2f3e85f29b6035951553b02cb737c817a | [
"MIT"
] | null | null | null | libiop/bcs/merkle_tree.hpp | alexander-zw/libiop | a2ed2ec2f3e85f29b6035951553b02cb737c817a | [
"MIT"
] | null | null | null | libiop/bcs/merkle_tree.hpp | alexander-zw/libiop | a2ed2ec2f3e85f29b6035951553b02cb737c817a | [
"MIT"
] | null | null | null | /**@file
*****************************************************************************
Merkle tree interfaces.
Includes support for zero knowledge merkle trees, and set membership-proofs.
*****************************************************************************
* @author This file is part of libiop (see A... | 41.550388 | 91 | 0.649254 | alexander-zw |
5224e1fd85d9f81bf067d9db66b48c316fa4e594 | 1,608 | hpp | C++ | src/core/IList.hpp | clearlycloudy/concurrent | 243246f3244cfaf7ffcbfc042c69980d96f988e4 | [
"MIT"
] | 9 | 2019-05-14T01:07:08.000Z | 2020-11-12T01:46:11.000Z | src/core/IList.hpp | clearlycloudy/concurrent | 243246f3244cfaf7ffcbfc042c69980d96f988e4 | [
"MIT"
] | null | null | null | src/core/IList.hpp | clearlycloudy/concurrent | 243246f3244cfaf7ffcbfc042c69980d96f988e4 | [
"MIT"
] | null | null | null | #ifndef ILIST_HPP
#define ILIST_HPP
#include <utility>
#include <functional>
#include "IReclamation.hpp"
#include "IConcurrency.hpp"
#include "ISize.hpp"
template< class T, template< class, trait_reclamation > class ContainerType, trait_size list_size_, trait_concurrency list_concurrency_, trait_method list_method_,... | 40.2 | 190 | 0.682836 | clearlycloudy |
522695134f9df5b1b3a00a5de9b09f76b7d66d1a | 1,536 | inl | C++ | Sources/SolarTears/Rendering/Vulkan/Scene/VulkanScene.inl | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | 4 | 2021-06-30T16:00:20.000Z | 2021-10-13T06:17:56.000Z | Sources/SolarTears/Rendering/Vulkan/Scene/VulkanScene.inl | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | Sources/SolarTears/Rendering/Vulkan/Scene/VulkanScene.inl | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | template<typename SubmeshCallback>
void RenderableScene::DrawStaticObjects(VkCommandBuffer commandBuffer, SubmeshCallback submeshCallback) const
{
for(uint32_t meshIndex = mStaticUniqueMeshSpan.Begin; meshIndex < mStaticUniqueMeshSpan.End; meshIndex++)
{
for(uint32_t submeshIndex = mSceneMeshes[meshIndex].FirstSubm... | 59.076923 | 205 | 0.836589 | Sixshaman |
522ca8d4e556f77c0c963852a12cafa29e87de29 | 7,372 | cpp | C++ | mazerunner/source/Way.cpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | mazerunner/source/Way.cpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | 3 | 2020-12-11T10:01:27.000Z | 2022-02-13T22:12:05.000Z | mazerunner/source/Way.cpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | #include "Way.h"
#include <stdlib.h>
#include <time.h>
int seed(int distance, int seed) {
if (seed == 0)
srand((int)time(NULL));
else
srand(seed);
return rand() % distance;
}
Way::Way(int width, int len) {
this->width = width;
this->len = len;
}
bool Way::gate_Checker(int wall, i... | 21.492711 | 79 | 0.495252 | 1pkg |
522dad0a3044d987186eda0ccec9ff2467291d47 | 681 | cpp | C++ | test/zisa/unit_test/flux/hllc.cpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | test/zisa/unit_test/flux/hllc.cpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | null | null | null | test/zisa/unit_test/flux/hllc.cpp | 1uc/ZisaFVM | 75fcedb3bece66499e011228a39d8a364b50fd74 | [
"MIT"
] | 1 | 2021-08-24T11:52:51.000Z | 2021-08-24T11:52:51.000Z | // SPDX-License-Identifier: MIT
// Copyright (c) 2021 ETH Zurich, Luc Grosheintz-Laval
#include <zisa/testing/testing_framework.hpp>
#include <zisa/flux/hllc.hpp>
#include <zisa/model/euler.hpp>
#include <zisa/model/ideal_gas_eos.hpp>
TEST_CASE("HLLC; consistency") {
using eos_t = zisa::IdealGasEOS;
using gravi... | 25.222222 | 70 | 0.676946 | 1uc |
52346b8c383fcf4cfb0397a308d50fd394c8ccdf | 3,122 | cpp | C++ | test/voiceControlInterfaceTest.cpp | rubenacevedo3/cpp-RoboDogVoiceController | 9583447574531c18a6346f49de460b52bc97bed4 | [
"MIT"
] | null | null | null | test/voiceControlInterfaceTest.cpp | rubenacevedo3/cpp-RoboDogVoiceController | 9583447574531c18a6346f49de460b52bc97bed4 | [
"MIT"
] | null | null | null | test/voiceControlInterfaceTest.cpp | rubenacevedo3/cpp-RoboDogVoiceController | 9583447574531c18a6346f49de460b52bc97bed4 | [
"MIT"
] | null | null | null | /**
*@author Ruben Acevedo
*@file voiceControlInterfaceTest.cpp
*@brief This is the ".cpp" file for testing the voiceControlInterface Class
*@copyright [2017] Ruben Acevedo
*
* This file tests the voiceControlInterface Class using google test
*
*/
/**
* MIT License
*
* Copyright 2017 Ruben Acevedo
*
* Perm... | 32.863158 | 80 | 0.741832 | rubenacevedo3 |
523acc952caa31c8f2b044cd738427da6e0c6ee1 | 16,885 | cpp | C++ | TheEngineSample/RoomRayModel.cpp | natalieagus/Original-Binaural-Reverb | 15cb56203c432d7768f6674b8e80ea3902c2ff11 | [
"Zlib"
] | null | null | null | TheEngineSample/RoomRayModel.cpp | natalieagus/Original-Binaural-Reverb | 15cb56203c432d7768f6674b8e80ea3902c2ff11 | [
"Zlib"
] | null | null | null | TheEngineSample/RoomRayModel.cpp | natalieagus/Original-Binaural-Reverb | 15cb56203c432d7768f6674b8e80ea3902c2ff11 | [
"Zlib"
] | 1 | 2018-12-16T15:03:53.000Z | 2018-12-16T15:03:53.000Z | //
// RoomRayModel.c
// TheEngineSample
//
// Created by Hans on 6/11/15.
// Copyright © 2015 A Tasty Pixel. All rights reserved.
//
#include "RoomRayModel.h"
#include "assert.h"
#include "string.h"
#include "math.h"
#include "FDN.h"
RoomRayModel::RoomRayModel(){
numCorners = 0;
}
//Visibility check when se... | 37.774049 | 218 | 0.579094 | natalieagus |
523d124075a4a5ecbaa4b0fd7003d0058aa6e3cf | 12,371 | cpp | C++ | src/ObjEdit/(old)/OE_TexEd.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/ObjEdit/(old)/OE_TexEd.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/ObjEdit/(old)/OE_TexEd.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2004, Laminar Research.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, ... | 37.038922 | 138 | 0.671005 | rromanchuk |
5241ada4c0cefc0831d002c7c10868d1131954a4 | 11,139 | cpp | C++ | Data-Structures/week4_binary_search_trees/5_rope/rope.cpp | ChristineHu1207/Coursera-Data-Structures-and-Algorithms-Specialization | 27f543ca0778d00ffd624ffcd18bf555660e0168 | [
"MIT"
] | null | null | null | Data-Structures/week4_binary_search_trees/5_rope/rope.cpp | ChristineHu1207/Coursera-Data-Structures-and-Algorithms-Specialization | 27f543ca0778d00ffd624ffcd18bf555660e0168 | [
"MIT"
] | null | null | null | Data-Structures/week4_binary_search_trees/5_rope/rope.cpp | ChristineHu1207/Coursera-Data-Structures-and-Algorithms-Specialization | 27f543ca0778d00ffd624ffcd18bf555660e0168 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
const bool DEBUG = false;
struct Vertex {
// key field stores an index pointing to a character via the initial string.
int key;
// Include size to be able to compute order statistics of the key values.
int size;
Vertex *lef... | 26.776442 | 98 | 0.474998 | ChristineHu1207 |
52440254b28103248dafb8f5f404d1aa859146d6 | 1,161 | cpp | C++ | tests/piecetypetest.cpp | bsamseth/Goldfish | c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b | [
"MIT"
] | 6 | 2019-01-23T03:13:36.000Z | 2020-09-06T09:54:48.000Z | tests/piecetypetest.cpp | bsamseth/Goldfish | c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b | [
"MIT"
] | 33 | 2015-12-28T08:48:01.000Z | 2019-09-25T11:39:53.000Z | tests/piecetypetest.cpp | bsamseth/Goldfish | c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b | [
"MIT"
] | 6 | 2018-08-06T14:05:11.000Z | 2022-02-15T01:30:49.000Z | #include "piecetype.hpp"
#include "gtest/gtest.h"
using namespace goldfish;
TEST(piecetypetest, test_values)
{
for (auto piecetype : PieceTypes::values)
{
EXPECT_EQ(piecetype, PieceTypes::values[piecetype]);
}
}
TEST(piecetypetest, test_is_validPromotion)
{
EXPECT_TRUE(PieceTypes::is_valid_p... | 33.171429 | 75 | 0.763135 | bsamseth |
524449190bc2a46790c6c8d6dcc26c611565ef8a | 2,315 | cp | C++ | MacOS/Sources/Application/Address_Book/CAddressFieldMultiLine.cp | mbert/mulberry-main | 6b7951a3ca56e01a7be67aa12e55bfeafc63950d | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | MacOS/Sources/Application/Address_Book/CAddressFieldMultiLine.cp | mtalexander/mulberry-main | fa6d96ca6ef4401308bddb56518651b4fd866def | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | MacOS/Sources/Application/Address_Book/CAddressFieldMultiLine.cp | mtalexander/mulberry-main | fa6d96ca6ef4401308bddb56518651b4fd866def | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007-2011 Cyrus Daboo. 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
Unle... | 25.722222 | 104 | 0.710583 | mbert |
52460eeb9adc725637203e933192aa1e2ff4fe28 | 527 | cpp | C++ | Curso/AULA 43,44 e 45 - ARQUIVOS/exemplo/src/main.cpp | vandodiniz/CursoC-- | ba979bae23292a59941437dee478f51e7e357abb | [
"MIT"
] | 1 | 2022-03-07T21:40:38.000Z | 2022-03-07T21:40:38.000Z | Curso/AULA 43,44 e 45 - ARQUIVOS/exemplo/src/main.cpp | vandodiniz/CursoC-- | ba979bae23292a59941437dee478f51e7e357abb | [
"MIT"
] | null | null | null | Curso/AULA 43,44 e 45 - ARQUIVOS/exemplo/src/main.cpp | vandodiniz/CursoC-- | ba979bae23292a59941437dee478f51e7e357abb | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <stdio.h>
using namespace std;
int main() {
char seps[]=",";
int camisa, pool;
string linha;
char *nome, *func;
int maiorPool = 0;
string maiorNome;
fstream arquivo;
arquivo.open("clash.txt",ios::in);
if(arquivo.is_open()){
... | 17 | 51 | 0.552182 | vandodiniz |
524762c3f33652de9620a276dcfd14dc99f2c40e | 3,971 | cc | C++ | lite/backends/nnadapter/nnadapter/src/operation/gather.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 808 | 2018-04-17T17:43:12.000Z | 2019-08-18T07:39:13.000Z | lite/backends/nnadapter/nnadapter/src/operation/gather.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 728 | 2018-04-18T08:15:25.000Z | 2019-08-16T07:14:43.000Z | lite/backends/nnadapter/nnadapter/src/operation/gather.cc | Danielmic/Paddle-Lite | 8bf08425035cfae077754ac72629292fac7bb996 | [
"Apache-2.0"
] | 364 | 2018-04-18T17:05:02.000Z | 2019-08-18T03:25:38.000Z | // Copyright (c) 2021 PaddlePaddle 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... | 38.553398 | 80 | 0.712163 | Danielmic |
5247804ebba4a87ff0167d502f6f65835e7d783b | 3,470 | cpp | C++ | test/unit_test/patterns/factory/unit_test_copy_factory.cpp | bvanessen/DiHydrogen | 62e52e22184556a028750bb73d8aed92cedb8884 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-01-06T17:26:58.000Z | 2021-12-11T01:17:43.000Z | test/unit_test/patterns/factory/unit_test_copy_factory.cpp | bvanessen/DiHydrogen | 62e52e22184556a028750bb73d8aed92cedb8884 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2020-02-26T06:07:42.000Z | 2022-02-15T22:51:36.000Z | test/unit_test/patterns/factory/unit_test_copy_factory.cpp | bvanessen/DiHydrogen | 62e52e22184556a028750bb73d8aed92cedb8884 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2020-01-06T18:08:42.000Z | 2021-07-26T14:53:07.000Z | ////////////////////////////////////////////////////////////////////////////////
// Copyright 2019-2020 Lawrence Livermore National Security, LLC and other
// DiHydrogen Project Developers. See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: Apache-2.0
////////////////////////////////////////////... | 25.703704 | 80 | 0.563112 | bvanessen |
5250d23eb93b67242ce7adcb1c49443d482be03b | 1,177 | cpp | C++ | thdatwrapper.cpp | BearKidsTeam/thplayer | 54db11c02ad5fb7b6534b93e5c2ef03ecb91bc03 | [
"BSD-2-Clause"
] | 13 | 2019-01-02T13:52:09.000Z | 2022-01-30T10:17:01.000Z | thdatwrapper.cpp | BearKidsTeam/thplayer | 54db11c02ad5fb7b6534b93e5c2ef03ecb91bc03 | [
"BSD-2-Clause"
] | null | null | null | thdatwrapper.cpp | BearKidsTeam/thplayer | 54db11c02ad5fb7b6534b93e5c2ef03ecb91bc03 | [
"BSD-2-Clause"
] | 1 | 2018-11-20T04:41:53.000Z | 2018-11-20T04:41:53.000Z | #include "thdatwrapper.hpp"
#include <cstdlib>
#include <cstring>
thDatWrapper::thDatWrapper(const char *datpath,unsigned ver)
{
thtk_error_t *e=NULL;
datf=thtk_io_open_file(datpath,"rb",&e);
thtk_error_free(&e);
dat=thdat_open(ver,datf,&e);
if(!dat)
//just try the latest supported version instead
{
thtk_erro... | 22.634615 | 60 | 0.724724 | BearKidsTeam |
5252205036d63502d017a67a262dc6c3d6547898 | 2,795 | cpp | C++ | interfaces/kits/js/napi/src/delivery_callback.cpp | openharmony-gitee-mirror/telephony_sms_mms | 4f5eee78093bea8ca3198d54b5999ef889b52b19 | [
"Apache-2.0"
] | null | null | null | interfaces/kits/js/napi/src/delivery_callback.cpp | openharmony-gitee-mirror/telephony_sms_mms | 4f5eee78093bea8ca3198d54b5999ef889b52b19 | [
"Apache-2.0"
] | null | null | null | interfaces/kits/js/napi/src/delivery_callback.cpp | openharmony-gitee-mirror/telephony_sms_mms | 4f5eee78093bea8ca3198d54b5999ef889b52b19 | [
"Apache-2.0"
] | 1 | 2021-09-13T12:07:15.000Z | 2021-09-13T12:07:15.000Z | /*
* Copyright (C) 2021 Huawei Device 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 ... | 39.928571 | 109 | 0.670483 | openharmony-gitee-mirror |
5254cdae99f9f4622692fafe17a3e8510c53c9c4 | 697 | cpp | C++ | src/codegen/ILtoMIPS/inita.cpp | EthanSK/C-to-MIPS-Compiler | a736901053ec1a2ad009bf33f588b4ce5293317c | [
"MIT"
] | 6 | 2019-05-21T09:42:10.000Z | 2021-03-22T04:34:20.000Z | src/codegen/ILtoMIPS/inita.cpp | EthanSK/C-to-MIPS-Compiler | a736901053ec1a2ad009bf33f588b4ce5293317c | [
"MIT"
] | null | null | null | src/codegen/ILtoMIPS/inita.cpp | EthanSK/C-to-MIPS-Compiler | a736901053ec1a2ad009bf33f588b4ce5293317c | [
"MIT"
] | 1 | 2019-06-25T22:35:24.000Z | 2019-06-25T22:35:24.000Z | #include "il2mips.hpp"
void IL2MIPS::inita(Instr instr, MIPSContext &context)
{
if (context.isGlobalScope())
{
context.removeGlobalInits(instr.dest);
for (size_t i = 0; i < instr.extraData.size(); ++i)
{
context.addRawInstr(Instr(".word", instr.extraData[i]));
}
... | 30.304348 | 85 | 0.535151 | EthanSK |
5256b84311004fb31aa20ed865492a6feb544db4 | 10,414 | cpp | C++ | common/AdvancedOptionsDialog.cpp | Jasig/ImageQuiz | 6a303dcfa01801aa5cccb7835f1b257d461bb33e | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2016-12-19T15:53:52.000Z | 2021-03-24T00:21:47.000Z | common/AdvancedOptionsDialog.cpp | Jasig/ImageQuiz | 6a303dcfa01801aa5cccb7835f1b257d461bb33e | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-02-04T06:18:14.000Z | 2019-07-02T17:21:05.000Z | common/AdvancedOptionsDialog.cpp | Jasig/ImageQuiz | 6a303dcfa01801aa5cccb7835f1b257d461bb33e | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2015-11-19T17:31:33.000Z | 2017-01-27T18:35:00.000Z | #include "AdvancedOptionsDialog.h"
#include "StudyDialog.h"
#include "QuizDialog.h"
#include "sysscale.h"
#include <QDebug>
#include <sstream>
AdvancedOptionsDialog * AdvancedOptionsDialog::s_instance = nullptr;
AdvancedOptionsDialog::AdvancedOptionsDialog(QWidget * parent)
: QDialog( parent )
{
width = ppp... | 40.839216 | 113 | 0.706837 | Jasig |
525923e263bd39e69b8727989bd0ef89d63c4051 | 1,406 | cpp | C++ | docker/water/epanet/tags/ooten/ooten/ONENException.cpp | liujiamingustc/phd | 4f815a738abad43531d02ac66f5bd0d9a1def52a | [
"Apache-2.0"
] | 3 | 2021-01-06T03:01:18.000Z | 2022-03-21T03:02:55.000Z | docker/water/epanet/tags/ooten/ooten/ONENException.cpp | liujiamingustc/phd | 4f815a738abad43531d02ac66f5bd0d9a1def52a | [
"Apache-2.0"
] | null | null | null | docker/water/epanet/tags/ooten/ooten/ONENException.cpp | liujiamingustc/phd | 4f815a738abad43531d02ac66f5bd0d9a1def52a | [
"Apache-2.0"
] | null | null | null | /*
*******************************************************************
OOTEN: Object Oriented Toolkit for Epanet
ONENEXCEPTION.CPP - Implementation of OOTEN ONENException class
VERSION: 1.00beta
DATE: 13 June 2003
AUTHOR: JE van Zyl
Rand Afrikaans University
Johannesburg
... | 23.433333 | 88 | 0.519915 | liujiamingustc |
525d5397bf474c0141afa0878aae1c74542f64ef | 517 | cpp | C++ | Cpp/Codes/Practice/LeetCode/69 Sqrt.cpp | QuincyWork/AllCodes | 59fe045608dda924cb993dde957da4daff769438 | [
"MIT"
] | null | null | null | Cpp/Codes/Practice/LeetCode/69 Sqrt.cpp | QuincyWork/AllCodes | 59fe045608dda924cb993dde957da4daff769438 | [
"MIT"
] | null | null | null | Cpp/Codes/Practice/LeetCode/69 Sqrt.cpp | QuincyWork/AllCodes | 59fe045608dda924cb993dde957da4daff769438 | [
"MIT"
] | 1 | 2019-04-01T10:30:03.000Z | 2019-04-01T10:30:03.000Z | #include <gtest/gtest.h>
using namespace std;
int mySqrt(int x)
{
if (x==0)
return 0;
int result = 0;
int l = 1;
int r = x;
while (r >= l)
{
int m = l + (r-l)/2;
if (m == x/m)
{
result = m;
break;
}
else if (m < x/m)
{
result = m;
l = m+1;
}
else
{
r = m-1;
}
}
return r... | 12.309524 | 34 | 0.541586 | QuincyWork |
525e271d3e86d5c7d50b97cb4620fcc9fd9b2c7f | 5,012 | cc | C++ | cageAnalysis/SMA_Preprocess/preprocess.cc | richardjgowers/zeoplusplus | 99d004b863f5fa6b069ad348fb86e932c6624c1f | [
"BSD-3-Clause-LBNL"
] | 4 | 2019-03-07T09:39:00.000Z | 2021-02-08T14:19:45.000Z | cageAnalysis/SMA_Preprocess/preprocess.cc | richardjgowers/zeoplusplus | 99d004b863f5fa6b069ad348fb86e932c6624c1f | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-09-17T11:21:43.000Z | 2020-09-17T11:21:43.000Z | cageAnalysis/SMA_Preprocess/preprocess.cc | richardjgowers/zeoplusplus | 99d004b863f5fa6b069ad348fb86e932c6624c1f | [
"BSD-3-Clause-LBNL"
] | 4 | 2019-11-09T01:56:28.000Z | 2022-03-11T03:04:01.000Z | /*
* preprocess.cc
*
* Created on: Mar 3, 2016
* Author: ismael.gomez
*/
#include "preprocess.hh"
/////////////////
MoleculeInfo *PerformMCA (Complex *Chemical, int ExecMode)
{
///// ERROR CHECK
/// If Chemical is null, stop
if (Chemical == NULL) {
return NULL;
}
///// CREATE MOLECULE_INFO OBJ... | 19.426357 | 122 | 0.665204 | richardjgowers |
525f30084180d15cc0be1cec8c6b4f3cc4d13a28 | 745 | cpp | C++ | oop_ex24.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | oop_ex24.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | oop_ex24.cpp | 85105/HW | 2161a1a7ac1082a85454672d359c00f2d42ef21f | [
"MIT"
] | null | null | null | /* oop_ex24.cpp
dynamic 2D array using new and delete */
#include <iostream>
using namespace std;
void main()
{
// obtain the matrix size from user
int size;
cout << "Please input the size of the square matrix." << endl;
cin >> size;
// create the matrix using new
int** m = new int*[size];
for (int i = 0; ... | 16.555556 | 63 | 0.575839 | 85105 |
5263bf24530cc7230166ab82f9e372d55ef2963c | 26 | cpp | C++ | source/vgraphics/opengl/unused/vix_glmodel.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | null | null | null | source/vgraphics/opengl/unused/vix_glmodel.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | 3 | 2015-10-28T01:29:03.000Z | 2015-11-10T15:20:02.000Z | source/vgraphics/opengl/unused/vix_glmodel.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | null | null | null | #include <vix_glmodel.h>
| 8.666667 | 24 | 0.730769 | ritgraphics |