hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2471b6f6fb0b17ef35074b28a2af07d8eac4d4a9 | 1,203 | cpp | C++ | QSidePanel/QSidePanel/PanelLeftSide.cpp | inobelar/QSidePanel | 4554e1bcd3f0942df66ed1357cdac7afdd08597d | [
"MIT"
] | 16 | 2019-10-11T12:08:05.000Z | 2022-01-02T05:59:16.000Z | QSidePanel/QSidePanel/PanelLeftSide.cpp | inobelar/QSidePanel | 4554e1bcd3f0942df66ed1357cdac7afdd08597d | [
"MIT"
] | null | null | null | QSidePanel/QSidePanel/PanelLeftSide.cpp | inobelar/QSidePanel | 4554e1bcd3f0942df66ed1357cdac7afdd08597d | [
"MIT"
] | 9 | 2019-11-17T20:09:55.000Z | 2021-10-31T14:54:02.000Z | #include "PanelLeftSide.hpp"
#include "side_panel_helpers.hpp"
PanelLeftSide::PanelLeftSide(QWidget *parent)
: SidePanel(parent)
{
this->getOpenedRect = [this](const QRect& parent_rect) -> QRect
{
return q_sp::rect_opened_left(this->getPanelSize(), parent_rect);
};
this->getClosedRect = ... | 27.340909 | 101 | 0.630923 | inobelar |
247823b2fcf93eeb139a63caf4829f6b3aa21578 | 2,273 | cc | C++ | google/cloud/spanner/testing/pick_random_instance.cc | antfitch/google-cloud-cpp-spanner | 05a2e3ad3ee0ac96164013ce4d9cfce251059569 | [
"Apache-2.0"
] | null | null | null | google/cloud/spanner/testing/pick_random_instance.cc | antfitch/google-cloud-cpp-spanner | 05a2e3ad3ee0ac96164013ce4d9cfce251059569 | [
"Apache-2.0"
] | null | null | null | google/cloud/spanner/testing/pick_random_instance.cc | antfitch/google-cloud-cpp-spanner | 05a2e3ad3ee0ac96164013ce4d9cfce251059569 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// 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 w... | 37.883333 | 79 | 0.730312 | antfitch |
247fe0aaaccabce6151516dcb6e2b2bd5f98a08c | 375 | cpp | C++ | codeforces/contests/round/452-div2/a.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/contests/round/452-div2/a.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/contests/round/452-div2/a.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
int32_t main(){
desync();
int n;
cin >> n;
int a = 0, b = 0;
for(int i=0; i<n; ++i){
int x;
cin >> x;
if(x == 1)
a++;
else
b++;
}
int ans = a/3;
for(int i=1; i<=min(a, b); ++i)
ans = max(ans, i ... | 17.045455 | 38 | 0.365333 | tysm |
248777dae7d01164b3d2928d2aed3fe2a25f6e7e | 2,650 | hpp | C++ | src/ibeo_8l_sdk/src/ibeosdk/datablocks/PointCloudPlane7510.hpp | tomcamp0228/ibeo_ros2 | ff56c88d6e82440ae3ce4de08f2745707c354604 | [
"MIT"
] | 1 | 2020-06-19T11:01:49.000Z | 2020-06-19T11:01:49.000Z | include/ibeosdk/datablocks/PointCloudPlane7510.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/datablocks/PointCloudPlane7510.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 2 | 2020-06-19T11:01:48.000Z | 2020-10-29T03:07:14.000Z | //======================================================================
/*! \file PointCloudPlane7510.hpp
*\verbatim
* ------------------------------------------
* (C) 2016 Ibeo Automotive Systems GmbH, Hamburg, Germany
* ------------------------------------------
*
* Created on: Mar 15, 2016
* by: K... | 35.333333 | 181 | 0.548679 | tomcamp0228 |
2490d796d308211a5a203296e845088c5207edd0 | 15,105 | cpp | C++ | c/wikipedia/wikipedia_tuple_map_impl.cpp | mmonto7/small-world-graph | 8ea1015c24065cb71875620b28c66ffb8348dcae | [
"MIT"
] | 3 | 2016-05-31T07:23:27.000Z | 2018-02-16T00:06:04.000Z | c/wikipedia/wikipedia_tuple_map_impl.cpp | mmonto7/small-world-graph | 8ea1015c24065cb71875620b28c66ffb8348dcae | [
"MIT"
] | 2 | 2020-08-31T20:51:20.000Z | 2021-03-30T18:05:25.000Z | c/wikipedia/wikipedia_tuple_map_impl.cpp | mmonto7/small-world-graph | 8ea1015c24065cb71875620b28c66ffb8348dcae | [
"MIT"
] | 4 | 2015-01-17T07:31:25.000Z | 2020-08-31T20:49:41.000Z | #include "wikipedia_tuple_map_impl.h"
#include "benchmark.h"
#include <sys/stat.h>
#include "wikipedia_stopword_list.h"
#include "string_utils.h"
#include <valgrind/callgrind.h>
WikipediaTupleMapImpl::WikipediaTupleMapImpl()
{
id_tuple_table_ = NULL;
tuples_.set_deleted_key(NULL);
}
void
WikipediaTupleMapImpl::l... | 29.792899 | 250 | 0.583052 | mmonto7 |
24922cc39bb9c95ecb2e31239adbbb1ae3876c47 | 6,327 | cpp | C++ | tests/main.cpp | 8infy/XILoader | 7e82d917cddb3c66be76c614637cdb05dde4dddf | [
"Apache-2.0"
] | null | null | null | tests/main.cpp | 8infy/XILoader | 7e82d917cddb3c66be76c614637cdb05dde4dddf | [
"Apache-2.0"
] | null | null | null | tests/main.cpp | 8infy/XILoader | 7e82d917cddb3c66be76c614637cdb05dde4dddf | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <XILoader/XILoader.h>
// variables for stbi to write
// image size data to
static int x, y, z;
static uint16_t passed = 0;
static uint16_t failed = 0;
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define PATH_TO(image) XI... | 41.900662 | 111 | 0.684369 | 8infy |
2492eca9ffd00a5653d65c9c4069f1959fb829a5 | 761 | cpp | C++ | src/Maths.cpp | elvisoric/hmi | 4e80f0bb0e4ac459bef2ddbc439faf895e1b60cb | [
"MIT"
] | 17 | 2019-03-02T14:59:32.000Z | 2022-03-10T15:08:36.000Z | src/Maths.cpp | elvisoric/hmi | 4e80f0bb0e4ac459bef2ddbc439faf895e1b60cb | [
"MIT"
] | 1 | 2019-07-02T06:01:35.000Z | 2019-07-02T08:25:22.000Z | src/Maths.cpp | elvisoric/hmi | 4e80f0bb0e4ac459bef2ddbc439faf895e1b60cb | [
"MIT"
] | 2 | 2019-05-15T21:05:32.000Z | 2021-04-26T03:09:24.000Z | #include <Maths.h>
namespace nrg {
glm::mat4 createTransformation(const glm::vec3& translation, float rx, float ry,
float rz, float scale) {
glm::mat4 transformation{1.0f};
transformation = glm::translate(transformation, translation);
transformation = glm::rotate(transformation, gl... | 42.277778 | 80 | 0.599212 | elvisoric |
24940cf3fc62959bcbdcce907c6a46ac52bdefd2 | 842 | hpp | C++ | engine/graphics/renderer/Camera.hpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | 1 | 2021-03-01T13:17:49.000Z | 2021-03-01T13:17:49.000Z | engine/graphics/renderer/Camera.hpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | null | null | null | engine/graphics/renderer/Camera.hpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | null | null | null | // Copyright 2015-2020 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_GRAPHICS_RENDERER_CAMERA_HPP
#define OUZEL_GRAPHICS_RENDERER_CAMERA_HPP
#include "Renderer.hpp"
#include "../../math/Matrix.hpp"
namespace ouzel::graphics::renderer
{
class Camera final
{
public:
enum class ProjectionMode... | 19.581395 | 61 | 0.579572 | taida957789 |
24983831d385f0eadab472fa5d34e904d7e2c7d4 | 1,045 | cc | C++ | fuzzers/tint_spv_reader_fuzzer.cc | dorba/tint | f81c1081ea7d27ea55f373c0bfaf651e491da7e6 | [
"Apache-2.0"
] | null | null | null | fuzzers/tint_spv_reader_fuzzer.cc | dorba/tint | f81c1081ea7d27ea55f373c0bfaf651e491da7e6 | [
"Apache-2.0"
] | null | null | null | fuzzers/tint_spv_reader_fuzzer.cc | dorba/tint | f81c1081ea7d27ea55f373c0bfaf651e491da7e6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Tint 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 law or agreed ... | 32.65625 | 75 | 0.719617 | dorba |
2498f10a871dbe916e582f9a6f96d443a526416f | 3,000 | cpp | C++ | Base/PLCore/src/System/ConsoleAndroid.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLCore/src/System/ConsoleAndroid.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLCore/src/System/ConsoleAndroid.cpp | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: ConsoleAndroid.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 38.961039 | 146 | 0.505 | ktotheoz |
24a6f4ca879d1e340a083669874c78ed923e19a7 | 3,888 | hpp | C++ | utils.hpp | Instand/algorithms | 079ac867932e65e0936eab08b3176dc2d68bf684 | [
"MIT"
] | 2 | 2019-10-29T03:25:21.000Z | 2019-10-30T12:03:50.000Z | utils.hpp | Instand/Algorithms | 079ac867932e65e0936eab08b3176dc2d68bf684 | [
"MIT"
] | null | null | null | utils.hpp | Instand/Algorithms | 079ac867932e65e0936eab08b3176dc2d68bf684 | [
"MIT"
] | null | null | null | #ifndef UTILS_HPP
#define UTILS_HPP
#include <iostream>
#include <utility>
#include <random>
#include <string>
#include <chrono>
#include <memory>
#define forever for(;;)
#define unused(x) (void)(x)
namespace cs {
struct Initializer {
Initializer() {
std::srand(seed);
}
inlin... | 29.233083 | 121 | 0.551698 | Instand |
24a92d1969bfe14239b7da65421c720798b39331 | 2,813 | cpp | C++ | source/SoloFeature_redistributeReadsByCB.cpp | Gavin-Lijy/STAR | 4571190968fc134aa4bd0d4d7065490253b1a4c5 | [
"MIT"
] | 1,315 | 2015-01-07T02:03:15.000Z | 2022-03-30T09:48:17.000Z | source/SoloFeature_redistributeReadsByCB.cpp | Gavin-Lijy/STAR | 4571190968fc134aa4bd0d4d7065490253b1a4c5 | [
"MIT"
] | 1,429 | 2015-01-08T00:09:17.000Z | 2022-03-31T08:12:14.000Z | source/SoloFeature_redistributeReadsByCB.cpp | Gavin-Lijy/STAR | 4571190968fc134aa4bd0d4d7065490253b1a4c5 | [
"MIT"
] | 495 | 2015-01-23T20:00:45.000Z | 2022-03-31T13:24:50.000Z | #include "SoloFeature.h"
#include "streamFuns.h"
//#include "TimeFunctions.h"
//#include "SequenceFuns.h"
//#include "Stats.h"
//#include "GlobalVariables.h"
void SoloFeature::redistributeReadsByCB()
{//redistribute reads in files by CB - each file with the approximately the same number of reads, each CB is on one fil... | 34.728395 | 163 | 0.596872 | Gavin-Lijy |
24c33c40653321a4e4db478187c783c22e089f39 | 10,897 | cpp | C++ | src/comm.cpp | ckrisgarrett/C3D-2015 | 76b751e8c33aa048e0e19c5aec53780735fd2144 | [
"MIT"
] | null | null | null | src/comm.cpp | ckrisgarrett/C3D-2015 | 76b751e8c33aa048e0e19c5aec53780735fd2144 | [
"MIT"
] | null | null | null | src/comm.cpp | ckrisgarrett/C3D-2015 | 76b751e8c33aa048e0e19c5aec53780735fd2144 | [
"MIT"
] | null | null | null | /*
File: comm.cpp
Author: Kris Garrett
Date: September 6, 2013
*/
#include "global.h"
#include "utils.h"
#include <string.h>
#include <stdlib.h>
#ifdef USE_MPI
#include <mpi.h>
/*
Returns MPI communication sizes in bytes.
*/
static
double getBoundarySizeX()
{
return (g_gY[3] - g_gY[0] + 1)... | 33.42638 | 95 | 0.564834 | ckrisgarrett |
24c43e8624709e2201d2e79d6f1f08627e8678a3 | 439 | cpp | C++ | Kattis-Solutions/Backspace.cpp | SurgicalSteel/Competitive-Programming | 3662b676de94796f717b25dc8d1b93c6851fb274 | [
"MIT"
] | 14 | 2016-02-11T09:26:13.000Z | 2022-03-27T01:14:29.000Z | Kattis-Solutions/Backspace.cpp | SurgicalSteel/Competitive-Programming | 3662b676de94796f717b25dc8d1b93c6851fb274 | [
"MIT"
] | null | null | null | Kattis-Solutions/Backspace.cpp | SurgicalSteel/Competitive-Programming | 3662b676de94796f717b25dc8d1b93c6851fb274 | [
"MIT"
] | 7 | 2016-10-25T19:29:35.000Z | 2021-12-05T18:31:39.000Z | #include <bits/stdc++.h>
using namespace std;
#define psb push_back
int main() {
string s;
cin>>s;
if(s.length()==1){cout<<s<<"\n";}
else
{
stack<string> ss;
for(int i=0;i<s.length();++i)
{
if(s.substr(i,1)!="<"){ss.push(s.substr(i,1));}
else{ss.pop();}
}
vector<string> vs;
while(!ss.empty())
{... | 16.259259 | 50 | 0.530752 | SurgicalSteel |
24c45235ff20b5f80136dc02bf808429808375b4 | 5,663 | cc | C++ | tensorflow/core/grappler/costs/virtual_placer.cc | tianhm/tensorflow | e55574f28257bdacd744dcdba86c839e661b1b2a | [
"Apache-2.0"
] | 47 | 2017-03-08T20:58:54.000Z | 2021-06-24T07:07:49.000Z | tensorflow/core/grappler/costs/virtual_placer.cc | genSud/tensorflow | ec8216568d8cd9810004067558041c11a8356685 | [
"Apache-2.0"
] | 1 | 2019-07-11T16:29:54.000Z | 2019-07-11T16:29:54.000Z | tensorflow/core/grappler/costs/virtual_placer.cc | genSud/tensorflow | ec8216568d8cd9810004067558041c11a8356685 | [
"Apache-2.0"
] | 19 | 2017-04-17T01:28:40.000Z | 2020-08-15T13:01:33.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... | 37.753333 | 80 | 0.666961 | tianhm |
24c72f6b20c435a4c35c6da2ddfdddbaeb5fc1a1 | 34,826 | cpp | C++ | cpp/nvgraph/cpp/tests/nvgraph_capi_tests_clustering.cpp | seunghwak/cugraph | f2f6f9147ce8c2f46b7b6dbc335f885c11b69004 | [
"Apache-2.0"
] | 16 | 2019-09-13T11:43:26.000Z | 2022-03-02T10:11:59.000Z | cpp/nvgraph/cpp/tests/nvgraph_capi_tests_clustering.cpp | seunghwak/cugraph | f2f6f9147ce8c2f46b7b6dbc335f885c11b69004 | [
"Apache-2.0"
] | 5 | 2020-02-12T14:55:25.000Z | 2021-12-06T17:55:12.000Z | cpp/nvgraph/cpp/tests/nvgraph_capi_tests_clustering.cpp | seunghwak/cugraph | f2f6f9147ce8c2f46b7b6dbc335f885c11b69004 | [
"Apache-2.0"
] | 6 | 2020-04-06T01:34:45.000Z | 2021-01-21T17:13:24.000Z | #include <utility>
#include "gtest/gtest.h"
#include "nvgraph_test_common.h"
#include "valued_csr_graph.hxx"
#include "readMatrix.hxx"
#include "nvgraphP.h"
#include "nvgraph.h"
#include "nvgraph_experimental.h"
#include "stdlib.h"
#include <algorithm>
extern "C" {
#include "mmio.h"
}
#include "mm.hxx"
// do the perf ... | 53.088415 | 229 | 0.584822 | seunghwak |
24c934f081d9ad0d56c6c5ee51ae4f9c7033400e | 1,596 | hpp | C++ | Sources/Audio/SoundBuffer.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Audio/SoundBuffer.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Audio/SoundBuffer.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | #pragma once
#include "Maths/Vector3.hpp"
#include "Resources/Resource.hpp"
#include "Audio.hpp"
namespace acid
{
/**
* @brief Resource that represents a sound buffer.
*/
class ACID_EXPORT SoundBuffer :
public Resource
{
public:
/**
* Creates a new sound buffer, or finds one with the same values.
* @param met... | 27.517241 | 116 | 0.736842 | liuping1997 |
24cb85e54cd50c9746b27788c67e923e9747c047 | 1,079 | cpp | C++ | Excelenta/Problema1.cpp | NegreanV/MyAlgorithms | 7dd16d677d537d34280c3858ccf4cbea4b3ddf26 | [
"Apache-2.0"
] | 1 | 2015-10-24T10:02:06.000Z | 2015-10-24T10:02:06.000Z | Excelenta/Problema1.cpp | NegreanV/MyAlgorithms | 7dd16d677d537d34280c3858ccf4cbea4b3ddf26 | [
"Apache-2.0"
] | null | null | null | Excelenta/Problema1.cpp | NegreanV/MyAlgorithms | 7dd16d677d537d34280c3858ccf4cbea4b3ddf26 | [
"Apache-2.0"
] | null | null | null | /*Se considera fisierul BAC.TXT ce contine un sir crescator cu cel mult un milion
de numere naturale de cel mult noua cifre fiecare, separate prin câte un spatiu.
Sa se scrie un program C/C++ care, folosind un algoritm eficient din punct de vedere
al memoriei utilizate si al timpului de executare, citeste din fisier... | 25.690476 | 86 | 0.599629 | NegreanV |
24d0626c3a47f6d399935c90b5edbf5dd7428df0 | 1,492 | cc | C++ | src/kernel.cc | klantz81/feature-detection | 1ed289711128a30648e198b085534fe9a9610984 | [
"MIT"
] | null | null | null | src/kernel.cc | klantz81/feature-detection | 1ed289711128a30648e198b085534fe9a9610984 | [
"MIT"
] | null | null | null | src/kernel.cc | klantz81/feature-detection | 1ed289711128a30648e198b085534fe9a9610984 | [
"MIT"
] | null | null | null | #include "kernel.h"
cKernel::cKernel(int kernel_radius, double mu, double sigma) : kernel_radius(kernel_radius), mu(mu), sigma(sigma) {
this->kernel = new double[this->kernel_radius * 2 + 1];
this->kernel_derivative = new double[this->kernel_radius * 2 + 1];
for (int _i = -this->kernel_radius; _i <= thi... | 42.628571 | 165 | 0.632708 | klantz81 |
24d4f10e103130563f1b3b21732b8fac57d35c50 | 8,027 | cpp | C++ | MIPS/mipsr3000/pi_control.cpp | lovisXII/RISC-V-project | 8131f8b2cb2d476ebf80c71d727b1b3831fd6811 | [
"MIT"
] | 3 | 2022-02-07T02:15:14.000Z | 2022-02-14T09:43:28.000Z | MIPS/mipsr3000/pi_control.cpp | lovisXII/RISC-V-project | 8131f8b2cb2d476ebf80c71d727b1b3831fd6811 | [
"MIT"
] | null | null | null | MIPS/mipsr3000/pi_control.cpp | lovisXII/RISC-V-project | 8131f8b2cb2d476ebf80c71d727b1b3831fd6811 | [
"MIT"
] | null | null | null | #include "pi_control.h"
void pi_control::processPI_IREQ()
{
sc_uint<8> pi_ireq;
pi_ireq[0]=PI_IREQ0.read();
pi_ireq[1]=PI_IREQ1.read();
pi_ireq[2]=PI_IREQ2.read();
pi_ireq[3]=PI_IREQ3.read();
pi_ireq[4]=PI_IREQ4.read();
pi_ireq[5]=PI_IREQ5.read();
pi_ireq[6]=PI_IREQ6.read();
pi_ireq[7]=PI_IREQ7.rea... | 26.57947 | 117 | 0.665753 | lovisXII |
24d7ef2cbedf3c0ca8bdb5bac2609f7477a868fc | 13,032 | cc | C++ | ragel/flat.cc | podsvirov/colm-suite | 9d45f0d47982d83141763a9728a4f97d6a06bacd | [
"MIT"
] | 3 | 2018-08-18T16:37:49.000Z | 2019-04-30T20:21:50.000Z | ragel/flat.cc | podsvirov/colm-suite | 9d45f0d47982d83141763a9728a4f97d6a06bacd | [
"MIT"
] | null | null | null | ragel/flat.cc | podsvirov/colm-suite | 9d45f0d47982d83141763a9728a4f97d6a06bacd | [
"MIT"
] | 1 | 2017-08-31T05:45:14.000Z | 2017-08-31T05:45:14.000Z | /*
* Copyright 2004-2018 Adrian Thurston <thurston@colm.net>
*
* 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, cop... | 22.585789 | 81 | 0.651473 | podsvirov |
24dd44fbc951d9b8039b54dedd592133ae1e0dfc | 1,221 | hpp | C++ | src/libs/asn1/include/keto/asn1/TimeHelper.hpp | burntjam/keto | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | [
"MIT"
] | 1 | 2020-03-04T10:38:00.000Z | 2020-03-04T10:38:00.000Z | src/libs/asn1/include/keto/asn1/TimeHelper.hpp | burntjam/keto | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | [
"MIT"
] | null | null | null | src/libs/asn1/include/keto/asn1/TimeHelper.hpp | burntjam/keto | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | [
"MIT"
] | 1 | 2020-03-04T10:38:01.000Z | 2020-03-04T10:38:01.000Z | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: TimeHelper.hpp
* Author: ubuntu
*
* Created on January 31, 2018, 8:12 AM
*/
#ifndef TIMEHELPER_HPP
#define TIMEHEL... | 22.611111 | 79 | 0.674857 | burntjam |
24e7a91e3bd72cc1198516040aae5562d61e71e6 | 3,096 | hpp | C++ | include/more_concepts/base_concepts.hpp | MiSo1289/more_concepts | ee7949691e8d0024b818bc10f3157dcdeb4ed8af | [
"MIT"
] | 45 | 2021-02-01T01:28:27.000Z | 2022-03-29T23:48:46.000Z | include/more_concepts/base_concepts.hpp | MiSo1289/more_concepts | ee7949691e8d0024b818bc10f3157dcdeb4ed8af | [
"MIT"
] | 1 | 2021-02-11T12:33:25.000Z | 2021-02-11T16:33:05.000Z | include/more_concepts/base_concepts.hpp | MiSo1289/more_concepts | ee7949691e8d0024b818bc10f3157dcdeb4ed8af | [
"MIT"
] | 3 | 2021-02-11T07:25:47.000Z | 2021-08-15T16:55:11.000Z | #pragma once
#include <concepts>
#include <cstddef>
#include <system_error>
#include <type_traits>
#include "more_concepts/detail/type_traits.hpp"
namespace more_concepts
{
/// Types that are non-reference, non-c-array, non-function or function reference,
/// non-const and non-volatile.
///
/// Assig... | 38.7 | 98 | 0.674419 | MiSo1289 |
24e811f79451435abe222df6e663d9e41fce8351 | 232 | hpp | C++ | book/cpp_templates/tmplbook/meta/pow3const.hpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/meta/pow3const.hpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | book/cpp_templates/tmplbook/meta/pow3const.hpp | houruixiang/day_day_learning | 208f70a4f0a85dd99191087835903d279452fd54 | [
"MIT"
] | null | null | null | // primary template to compute 3 to the Nth
template<int N>
struct Pow3 {
static int const value = 3 * Pow3<N-1>::value;
};
// full specialization to end the recursion
template<>
struct Pow3<0> {
static int const value = 1;
};
| 19.333333 | 48 | 0.689655 | houruixiang |
00878d1828f82cbcc4f844db2ec01e3607c21e02 | 1,216 | cpp | C++ | plugins/mmstd_moldyn/src/io/MMSPDFrameData.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | 2 | 2020-10-16T10:15:37.000Z | 2021-01-21T13:06:00.000Z | plugins/mmstd_moldyn/src/io/MMSPDFrameData.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | plugins/mmstd_moldyn/src/io/MMSPDFrameData.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | 1 | 2021-01-28T01:19:54.000Z | 2021-01-28T01:19:54.000Z | /*
* MMSPDFrameData.cpp
*
* Copyright (C) 2011 by VISUS (Universitaet Stuttgart)
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "io/MMSPDFrameData.h"
using namespace megamol::stdplugin::moldyn::io;
/****************************************************************************/
/*
* MMSPDFrameData:... | 20.610169 | 82 | 0.583882 | azuki-monster |
008c68739342faedec38079069043a21980ac6c4 | 527 | hpp | C++ | src/font.hpp | ceilors/fb-tetris | 5496898443e35e37e374de2e97505a6027d38c30 | [
"BSD-3-Clause"
] | null | null | null | src/font.hpp | ceilors/fb-tetris | 5496898443e35e37e374de2e97505a6027d38c30 | [
"BSD-3-Clause"
] | null | null | null | src/font.hpp | ceilors/fb-tetris | 5496898443e35e37e374de2e97505a6027d38c30 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __FONT_HPP__
#define __FONT_HPP__
#include <sstream>
#include <cstdint>
#include <ft2build.h>
#include FT_FREETYPE_H
#include "framebuffer.hpp"
#include "structs.hpp"
class Font {
FT_Library library;
FT_Face face;
FT_GlyphSlot slot;
const uint16_t font_dpi = 100;
uint16_t font_size = 0;
... | 19.518519 | 64 | 0.70019 | ceilors |
009a69572ae19d08e1621db09756870bd9d81657 | 2,617 | cpp | C++ | source/models.cpp | KJ002/Tetris | bf02931628c7b7bd78b4aa46fefca4d219786a65 | [
"MIT"
] | null | null | null | source/models.cpp | KJ002/Tetris | bf02931628c7b7bd78b4aa46fefca4d219786a65 | [
"MIT"
] | null | null | null | source/models.cpp | KJ002/Tetris | bf02931628c7b7bd78b4aa46fefca4d219786a65 | [
"MIT"
] | null | null | null | #include "models.hpp"
#include <array>
#include <raylib.h>
TetrisMeta::TetrisMeta(int x, int y, int shape){
shape = shape % 7;
origin = (Vec2){(float)x, (float)y};
if (!shape){
map = {
0, 0, 0, 0, 0,
0, 0, 1, 0, 0,
0, 0, 1, 0, 0,
0, 0, 1, 0, 0,
0, 0, 1, 0, 0,
};
rota... | 15.485207 | 51 | 0.477264 | KJ002 |
009fe56b1bf529a6710d1c8311e3e9668e6662b1 | 2,197 | cpp | C++ | samples/CoreAPI_SpriteRendering/SpriteRendering.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | 3 | 2021-03-01T20:41:13.000Z | 2021-07-10T13:45:47.000Z | samples/CoreAPI_SpriteRendering/SpriteRendering.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | samples/CoreAPI_SpriteRendering/SpriteRendering.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | #include "../../include/SWEngine.h"
#pragma comment (lib,"../../lib/SWUtil.lib")
#pragma comment (lib,"../../lib/SWTypes.lib")
#pragma comment (lib,"../../lib/SWCore.lib")
#pragma comment (lib,"../../lib/SWGame.lib")
#pragma comment (lib,"../../lib/SWGui.lib")
#pragma comment (lib,"../../lib/SWEngine... | 24.142857 | 93 | 0.699135 | odayibasi |
00a03f1b75847a8934df7a07051cddbc3a8427e8 | 7,303 | hpp | C++ | libraries/app/include/graphene/app/api_objects.hpp | dls-cipher/bitshares-core | feba0cf93f0e442ef5e39f58b469112033cd74d8 | [
"MIT"
] | null | null | null | libraries/app/include/graphene/app/api_objects.hpp | dls-cipher/bitshares-core | feba0cf93f0e442ef5e39f58b469112033cd74d8 | [
"MIT"
] | null | null | null | libraries/app/include/graphene/app/api_objects.hpp | dls-cipher/bitshares-core | feba0cf93f0e442ef5e39f58b469112033cd74d8 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... | 37.071066 | 126 | 0.606189 | dls-cipher |
00a13c40be88a9e7bc31cc03d6355162f9d7a23e | 3,175 | cpp | C++ | src/base/tkernel_utils.cpp | Unionfab/mayo | 881b81b2b6febe6fb88967e4eef6ef22882e1734 | [
"BSD-2-Clause"
] | 382 | 2018-02-24T23:46:02.000Z | 2022-03-31T16:08:24.000Z | src/base/tkernel_utils.cpp | Unionfab/mayo | 881b81b2b6febe6fb88967e4eef6ef22882e1734 | [
"BSD-2-Clause"
] | 102 | 2017-05-18T09:36:26.000Z | 2022-03-24T15:24:28.000Z | src/base/tkernel_utils.cpp | Unionfab/mayo | 881b81b2b6febe6fb88967e4eef6ef22882e1734 | [
"BSD-2-Clause"
] | 124 | 2017-10-22T23:40:13.000Z | 2022-03-28T08:57:23.000Z | /****************************************************************************
** Copyright (c) 2021, Fougue Ltd. <http://www.fougue.pro>
** All rights reserved.
** See license at https://github.com/fougue/mayo/blob/master/LICENSE.txt
****************************************************************************/
#includ... | 28.603604 | 83 | 0.562835 | Unionfab |
00a2800fbe8a64fd882eba54a45718b91645985b | 827 | cpp | C++ | Smooth_Game/Source/Component.cpp | Glitch0011/DirectX11-Demo | 02b2ff51f4c936696ab25fb34da77cb4997980a9 | [
"MIT"
] | null | null | null | Smooth_Game/Source/Component.cpp | Glitch0011/DirectX11-Demo | 02b2ff51f4c936696ab25fb34da77cb4997980a9 | [
"MIT"
] | null | null | null | Smooth_Game/Source/Component.cpp | Glitch0011/DirectX11-Demo | 02b2ff51f4c936696ab25fb34da77cb4997980a9 | [
"MIT"
] | null | null | null | #include <Component.h>
#include <GameObject.h>
using namespace std;
using namespace SmoothGame;
HRESULT Component::Send(MessageName name, Params param)
{
return this->GameObject->Send(name, param);
}
HRESULT Component::RecieveMessage(MessageName functionName, Params parameters)
{
if (this->functions.size() > 0)
{... | 22.972222 | 102 | 0.754534 | Glitch0011 |
00a4b6e7228139c55153d0688a42e282e3a86328 | 1,641 | cpp | C++ | Source/CoreExtensions/Private/Math/Triangle2D.cpp | TheEmidee/UECoreExtensions | 3068a8655509b7ff3d8f3e2fedf345618fdb37a2 | [
"MIT"
] | 2 | 2021-08-13T17:45:45.000Z | 2021-10-06T14:42:52.000Z | Source/CoreExtensions/Private/Math/Triangle2D.cpp | TheEmidee/UE4CoreExtensions | e904c600d125d2fff737f8e54ea93145c964484d | [
"MIT"
] | 1 | 2022-03-04T13:20:29.000Z | 2022-03-04T13:20:29.000Z | Source/CoreExtensions/Private/Math/Triangle2D.cpp | TheEmidee/UECoreExtensions | 3068a8655509b7ff3d8f3e2fedf345618fdb37a2 | [
"MIT"
] | null | null | null | #include "Math/Triangle2D.h"
FTriangle2D::FTriangle2D( const FVector2D & v1, const FVector2D & v2, const FVector2D & v3 ) :
PointA( v1 ),
PointB( v2 ),
PointC( v3 )
{}
bool FTriangle2D::ContainsVertex( const FVector2D & v ) const
{
return PointA.Equals( v ) || PointB.Equals( v ) || PointC.Eq... | 39.071429 | 147 | 0.57465 | TheEmidee |
00a4f998bf537d09a9fa7d120e7b6d1ff70c23c6 | 2,635 | hpp | C++ | lib/util/bitmask.hpp | sparkml/mastermind-strategy | 22763672c413c6a73e2c036a9f522b65a0025b68 | [
"MIT"
] | null | null | null | lib/util/bitmask.hpp | sparkml/mastermind-strategy | 22763672c413c6a73e2c036a9f522b65a0025b68 | [
"MIT"
] | null | null | null | lib/util/bitmask.hpp | sparkml/mastermind-strategy | 22763672c413c6a73e2c036a9f522b65a0025b68 | [
"MIT"
] | null | null | null | /// @defgroup BitMask Bit-Mask of fixed size
/// @ingroup util
#ifndef UTILITIES_BITMASK_HPP
#define UTILITIES_BITMASK_HPP
#include <cassert>
#include "intrinsic.hpp"
namespace util {
/**
* Represents a bitmask of fixed size.
* This class serves as a simpler and faster alternative to
* <code>std::bitset<N></code... | 20.585938 | 83 | 0.639848 | sparkml |
00a5389a8939ec667314c40addf56e1b1cb02493 | 28,558 | cpp | C++ | src/coreclr/jit/importer_vectorization.cpp | kejxu/runtime | 906146aba64a9c14bcc77cffa5f540ead31cd4a7 | [
"MIT"
] | null | null | null | src/coreclr/jit/importer_vectorization.cpp | kejxu/runtime | 906146aba64a9c14bcc77cffa5f540ead31cd4a7 | [
"MIT"
] | null | null | null | src/coreclr/jit/importer_vectorization.cpp | kejxu/runtime | 906146aba64a9c14bcc77cffa5f540ead31cd4a7 | [
"MIT"
] | null | null | null | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "jitpch.h"
#ifdef _MSC_VER
#pragma hdrstop
#endif
//------------------------------------------------------------------------
// importer_vectorization.cpp
//
// This file i... | 37.925631 | 120 | 0.606275 | kejxu |
00a611b66e97f4d0f3b10198cc4ae33aacdb2caa | 724 | cpp | C++ | sys/fs/util/dirbuf_add.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 15 | 2020-05-08T06:21:58.000Z | 2021-12-11T18:10:43.000Z | sys/fs/util/dirbuf_add.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 11 | 2020-05-08T06:46:37.000Z | 2021-03-30T05:46:03.000Z | sys/fs/util/dirbuf_add.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 5 | 2020-08-31T17:05:03.000Z | 2021-12-08T07:09:00.000Z | #include <fs/util.h>
#include <cstddef>
#include <cstring>
#include <dirent.h>
int
dirbuf_add(dirent **buf, size_t *remain, ino_t ino, off_t off,
unsigned char type, const char *name)
{
const size_t align = alignof(dirent);
const size_t dirent_noname = offsetof(dirent, d_name);
const size_t name_max = *remain ... | 25.857143 | 67 | 0.668508 | apexrtos |
00a7937a3572efeed6b27e280e09db524b533373 | 5,692 | cpp | C++ | openexrid/Mask.cpp | MercenariesEngineering/openidmask | c7b2da1de1fbac8a4362839427bc13fde6a399c0 | [
"MIT"
] | 120 | 2016-02-19T10:58:34.000Z | 2022-03-20T12:13:28.000Z | openexrid/Mask.cpp | MercenariesEngineering/openexrid | f52e9c3417aab63d6c66e29cf7304d723bd55300 | [
"MIT"
] | 9 | 2016-04-15T07:52:12.000Z | 2021-06-28T07:41:57.000Z | openexrid/Mask.cpp | MercenariesEngineering/openidmask | c7b2da1de1fbac8a4362839427bc13fde6a399c0 | [
"MIT"
] | 21 | 2016-04-13T11:48:09.000Z | 2020-01-23T13:38:43.000Z | /*
*
***
*****
********************* Mercenaries Engineering SARL
***************** Copyright (C) 2016
*************
********* http://www.mercenaries-engineering.com
***********
**** ****
** **
*/
... | 28.318408 | 109 | 0.617709 | MercenariesEngineering |
00ad17966b6f2d7a580a642290e68f89253b7ec3 | 3,712 | cpp | C++ | module/mpc-be/SRC/src/filters/renderer/VideoRenderers/CPUUsage.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/renderer/VideoRenderers/CPUUsage.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/renderer/VideoRenderers/CPUUsage.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | /*
* (C) 2013-2018 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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 version.
... | 29.228346 | 110 | 0.717942 | 1aq |
00b2efd06cd56a1f88f29d529b461715f705497b | 2,070 | hpp | C++ | lib/io/Input.hpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | 1 | 2016-11-15T09:04:12.000Z | 2016-11-15T09:04:12.000Z | lib/io/Input.hpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | lib/io/Input.hpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 maldicion069
*
* Authors: Cristian Rodríguez Bernal <ccrisrober@gmail.com>
*
* This file is part of MonkeyBrushPlusPlus
* <https://github.com/maldicion069/monkeybrushplusplus>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser... | 23.793103 | 80 | 0.729469 | maldicion069 |
00b7e1243aa38f26f5fd456a2a6b9619f3a8d9b9 | 16,380 | cpp | C++ | IMa/update_t_RY.cpp | jaredgk/IMgui-electron | b72ce318dcc500664bd264d8c1578723f61aa769 | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | IMa/update_t_RY.cpp | jaredgk/IMgui-electron | b72ce318dcc500664bd264d8c1578723f61aa769 | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | IMa/update_t_RY.cpp | jaredgk/IMgui-electron | b72ce318dcc500664bd264d8c1578723f61aa769 | [
"CC0-1.0",
"BSD-3-Clause"
] | null | null | null | /*IMa2p 2009-2015 Jody Hey, Rasmus Nielsen, Sang Chul Choi, Vitor Sousa, Janeen Pisciotta, and Arun Sethuraman */
#undef GLOBVARS
#include "imamp.hpp"
#include "update_gtree_common.hpp"
#include "updateassignment.hpp"
/*********** LOCAL STUFF **********/
static struct genealogy_weights holdallgweight_t_RY;
static s... | 31.560694 | 160 | 0.573382 | jaredgk |
00beece22dffd42c0610e574d6e37930fa8dddb0 | 997 | cpp | C++ | archive/1/dwa_slowa.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/1/dwa_slowa.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/1/dwa_slowa.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | //#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <cstring>
using namespace std;
typedef long long unsigned U;
int main()
{
/*
cout.sync_with_stdio(false);
U _;
cin >> _;
string a, b;
cin >> a >> b;
U n;
cin >> n;
for(U i = 0; i < n; ++i) ... | 16.080645 | 46 | 0.374122 | Aleshkev |
00c060f0fe5aca9d5fd8d8c546de0ec4264135c2 | 14,178 | cc | C++ | test/bezierSubdivision.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | 1 | 2021-12-02T09:25:32.000Z | 2021-12-02T09:25:32.000Z | test/bezierSubdivision.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | null | null | null | test/bezierSubdivision.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | null | null | null | #include <crv.h>
#include <crvBezier.h>
#include <crvSnap.h>
#include <gmi_analytic.h>
#include <gmi_null.h>
#include <apfMDS.h>
#include <apfMesh2.h>
#include <apf.h>
#include <PCU.h>
#include <mth.h>
#include <mth_def.h>
#include <pcu_util.h>
/*
* This contains all the tests for bezier subdivision
*/
void vertFun... | 28.817073 | 91 | 0.59543 | cwsmith |
00c360bb1f1401d970e227967685e6fa65092e5f | 6,023 | cc | C++ | src/main.cc | FlyAlCode/FlightSim | 800b46ebf87449408cc908c59cb5e18bea5863c3 | [
"Apache-2.0"
] | null | null | null | src/main.cc | FlyAlCode/FlightSim | 800b46ebf87449408cc908c59cb5e18bea5863c3 | [
"Apache-2.0"
] | null | null | null | src/main.cc | FlyAlCode/FlightSim | 800b46ebf87449408cc908c59cb5e18bea5863c3 | [
"Apache-2.0"
] | null | null | null | #include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <fstream>
#include <string>
#include <memory>
#include "camera.h"
#include "ground.h"
#include <stdio.h>
#include <stdlib.h>
double const PI = 3.1415926;
void DrawMask(const cv::Mat &src, const cv::Mat &mask, ... | 32.912568 | 117 | 0.560518 | FlyAlCode |
00c39216be647d3b43936243cec4a03200425647 | 565 | cpp | C++ | src/mango/core/wire/request/SnippetTextRequest.cpp | vero-zhang/mango | 0cc8d34a8b729151953df41a7e9cd26324345d44 | [
"MIT"
] | null | null | null | src/mango/core/wire/request/SnippetTextRequest.cpp | vero-zhang/mango | 0cc8d34a8b729151953df41a7e9cd26324345d44 | [
"MIT"
] | null | null | null | src/mango/core/wire/request/SnippetTextRequest.cpp | vero-zhang/mango | 0cc8d34a8b729151953df41a7e9cd26324345d44 | [
"MIT"
] | null | null | null | #include <mango/core/runtime/Runner.h>
#include "mango/core/wire/request/SnippetTextRequest.h"
#include "mango/core/wire/response/SnippetTextResponse.h"
MANGO_NS_BEGIN
SnippetTextRequest::SnippetTextRequest
( const std::string& keyword
, const std::string& name
, const std::string& multilineArg)
: key... | 23.541667 | 62 | 0.734513 | vero-zhang |
00c4ed79dcdef2a8be7c6512041002de0f26323e | 5,857 | cpp | C++ | 2022_CONTROL WORK 1/Project1/Fraction.cpp | Leonchik1945/spbu_homework_2021-2022 | 84139157b40c5864531e8275c97eaadef9619378 | [
"Apache-2.0"
] | null | null | null | 2022_CONTROL WORK 1/Project1/Fraction.cpp | Leonchik1945/spbu_homework_2021-2022 | 84139157b40c5864531e8275c97eaadef9619378 | [
"Apache-2.0"
] | null | null | null | 2022_CONTROL WORK 1/Project1/Fraction.cpp | Leonchik1945/spbu_homework_2021-2022 | 84139157b40c5864531e8275c97eaadef9619378 | [
"Apache-2.0"
] | null | null | null | #include "Fraction.h"
long long Nod(long long a, long long b)
{
if (b == 0)
{
return (a);
}
else
{
return (Nod(b, a % b));
}
}
Fraction::Fraction(long long numerator, long long denominator) : numerator(numerator), denominator(denominator) {}
Fraction::Fraction(const Fraction& f) : numerator(f.numerator), d... | 21.221014 | 236 | 0.656138 | Leonchik1945 |
00c739e3f434cbe007a216b58205ac579c72c9bf | 4,872 | hh | C++ | scipy/special/ellint_carlson_cpp_lite/_rg.hh | lorentzenchr/scipy | 393a05ee927883ad6316b7092c851afea8f16816 | [
"BSD-3-Clause"
] | 9,095 | 2015-01-02T18:24:23.000Z | 2022-03-31T20:35:31.000Z | scipy/special/ellint_carlson_cpp_lite/_rg.hh | lorentzenchr/scipy | 393a05ee927883ad6316b7092c851afea8f16816 | [
"BSD-3-Clause"
] | 11,500 | 2015-01-01T01:15:30.000Z | 2022-03-31T23:07:35.000Z | scipy/special/ellint_carlson_cpp_lite/_rg.hh | lorentzenchr/scipy | 393a05ee927883ad6316b7092c851afea8f16816 | [
"BSD-3-Clause"
] | 5,838 | 2015-01-05T11:56:42.000Z | 2022-03-31T23:21:19.000Z | #ifndef ELLINT_RG_GENERIC_GUARD
#define ELLINT_RG_GENERIC_GUARD
#include <algorithm>
#include <iterator>
#include <complex>
#include "ellint_typing.hh"
#include "ellint_argcheck.hh"
#include "ellint_common.hh"
#include "ellint_carlson.hh"
#define CHECK_STATUS_OR_FAIL() \
do { \
if ( status_tmp != ExitStatus::su... | 24.730964 | 79 | 0.59688 | lorentzenchr |
00c8fca2829018f992225203c6cb298cfdadfb92 | 6,943 | hpp | C++ | libraries/wasm/wasm_context.hpp | chenxinhua2018/nchain | 9c694d91dc48fc548b88a0016497c34c9a1cbaaa | [
"MIT"
] | 1 | 2020-10-22T23:03:50.000Z | 2020-10-22T23:03:50.000Z | src/vm/wasm/wasm_context.hpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | null | null | null | src/vm/wasm/wasm_context.hpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
#include <string>
#include <vector>
#include <queue>
#include <map>
#include <chrono>
#include "tx/universaltx.h"
#include "wasm/types/inline_transaction.hpp"
#include "wasm/wasm_interface.hpp"
#include "wasm/datastream.hpp"
#include "wasm/wasm_trace.hpp"
#include "eosio/vm/allocator.... | 41.08284 | 143 | 0.620913 | chenxinhua2018 |
00ca8fc4349e9be6e22e0fa6a1e3f11e64cc7555 | 2,666 | cpp | C++ | tests/contraction_test.cpp | vaidehi8913/VieCut | f4bd2b468689cb8e5e11f18f1bb21468a119083d | [
"MIT"
] | 22 | 2020-06-12T07:26:45.000Z | 2022-03-03T17:03:08.000Z | tests/contraction_test.cpp | vaidehi8913/VieCut | f4bd2b468689cb8e5e11f18f1bb21468a119083d | [
"MIT"
] | 4 | 2019-09-04T10:39:39.000Z | 2020-05-26T05:25:35.000Z | tests/contraction_test.cpp | vaidehi8913/VieCut | f4bd2b468689cb8e5e11f18f1bb21468a119083d | [
"MIT"
] | 3 | 2020-12-11T13:43:45.000Z | 2021-11-09T15:08:58.000Z | /******************************************************************************
* contraction_test.h
*
* Source of VieCut.
*
******************************************************************************
* Copyright (C) 2018 Alexander Noe <alexander.noe@univie.ac.at>
*
* Published under the MIT license in the L... | 29.296703 | 79 | 0.582521 | vaidehi8913 |
00ccaaa47e8e6d3f55574562e5c9701d58674fd7 | 1,318 | cpp | C++ | Crimsonite/Crimsonite/source/render/MatrixMaths.cpp | Fletcher-Morris/Crimsonite-Engine | 515e6bd8994a324380fe831e6e568509695153f3 | [
"MIT"
] | null | null | null | Crimsonite/Crimsonite/source/render/MatrixMaths.cpp | Fletcher-Morris/Crimsonite-Engine | 515e6bd8994a324380fe831e6e568509695153f3 | [
"MIT"
] | null | null | null | Crimsonite/Crimsonite/source/render/MatrixMaths.cpp | Fletcher-Morris/Crimsonite-Engine | 515e6bd8994a324380fe831e6e568509695153f3 | [
"MIT"
] | null | null | null | #include "MatrixMaths.h"
#include "../ecs/Transform.h"
#include "../ecs/components/Camera.h"
glm::mat4 CreateModelMatrix(Transform * _transform)
{
glm::mat4 matrix = glm::mat4(1.0f);
glm::vec3 rot = _transform->GetWorldRotation();
matrix = glm::translate(matrix, _transform->GetWorldPosition());
matrix = glm::rotat... | 34.684211 | 183 | 0.725341 | Fletcher-Morris |
00d3ba54f6f408ee1baccdd0d66ce4fd57e7dab5 | 1,703 | cpp | C++ | Semantic/SymbolTable/SymbolTable.cpp | mori-ahk/Sky | b8b27a3d5e63905c95d2305ee931821737a56d12 | [
"MIT"
] | 1 | 2020-04-29T02:11:42.000Z | 2020-04-29T02:11:42.000Z | Semantic/SymbolTable/SymbolTable.cpp | mori-ahk/Sky | b8b27a3d5e63905c95d2305ee931821737a56d12 | [
"MIT"
] | null | null | null | Semantic/SymbolTable/SymbolTable.cpp | mori-ahk/Sky | b8b27a3d5e63905c95d2305ee931821737a56d12 | [
"MIT"
] | null | null | null | //
// Created by Morteza Ahmadi on 2020-03-05.
//
#include "SymbolTable.h"
#include "../Error/Error.h"
void Semantic::SymbolTable::addClass(std::string &className, Class *_class) {
if (classes.find(className) != classes.end())
throw Semantic::Err::DuplicateClassDecl(className);
classes[className] = _... | 36.234043 | 106 | 0.688784 | mori-ahk |
00d53e351dd5743ebcd117c09543e6a7dec9989b | 1,165 | cpp | C++ | 115_DistinctSubsequences.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | 115_DistinctSubsequences.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | 115_DistinctSubsequences.cpp | kun2012/Leetcode | fa6bbe3f559176911ebb12c9b911b969c6ec85fb | [
"MIT"
] | null | null | null | /****************************************************************
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative posi... | 41.607143 | 262 | 0.438627 | kun2012 |
00d76b16befd0c5f779e45bf3df994a109fdf6af | 4,940 | cpp | C++ | src/messages/serializer.cpp | jaspersong/Project_CS-4500 | eba9ca138a2845d457c72562d6792bb72c4fe99c | [
"MIT"
] | null | null | null | src/messages/serializer.cpp | jaspersong/Project_CS-4500 | eba9ca138a2845d457c72562d6792bb72c4fe99c | [
"MIT"
] | null | null | null | src/messages/serializer.cpp | jaspersong/Project_CS-4500 | eba9ca138a2845d457c72562d6792bb72c4fe99c | [
"MIT"
] | null | null | null | /**
* Name: Snowy Chen, Joe Song
* Date: 22 March 2020
* Section: Jason Hemann, MR 11:45-1:25
* Email: chen.xinu@husky.neu.edu, song.jo@husky.neu.edu
*/
// Lang::Cpp
#include <cassert>
#include <cstring>
#include "serializer.h"
Serializer::Serializer(size_t starting_size) {
this->buffer = new unsigned char[s... | 24.949495 | 80 | 0.674696 | jaspersong |
00e0433befdba7565f18b0f2fb23b4261b581b4a | 974 | cpp | C++ | software/src/master/src/kernel/Vca_IPeek.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/kernel/Vca_IPeek.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/kernel/Vca_IPeek.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /**
* @file
* Provides definition for IPeek interface.
*/
#define Vca_IPeek
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
**... | 19.098039 | 74 | 0.370637 | c-kuhlman |
00e7418a63eea90d4710d80b149e5ec02ce5a367 | 594 | hpp | C++ | callgraph/detail/from_to_connector.hpp | anthony-arnold/callgraph | 1d7fede6c31b9d9a0fc7f1b2358cb7204aff4e94 | [
"BSD-2-Clause"
] | 2 | 2020-12-04T11:20:44.000Z | 2022-01-08T10:24:49.000Z | callgraph/detail/from_to_connector.hpp | anthony-arnold/callgraph | 1d7fede6c31b9d9a0fc7f1b2358cb7204aff4e94 | [
"BSD-2-Clause"
] | null | null | null | callgraph/detail/from_to_connector.hpp | anthony-arnold/callgraph | 1d7fede6c31b9d9a0fc7f1b2358cb7204aff4e94 | [
"BSD-2-Clause"
] | null | null | null | // callgraph/detail/from_to_connector.hpp
// License: BSD-2-Clause
#ifndef CALLGRAPH_DETAIL_FROM_TO_CONNECTOR_HPP
#define CALLGRAPH_DETAIL_FROM_TO_CONNECTOR_HPP
#include <callgraph/detail/base_connector.hpp>
#ifndef NO_DOC
namespace callgraph {
namespace detail {
template <typename T, size_t From, size_t... | 25.826087 | 60 | 0.70202 | anthony-arnold |
00e8912ce9cbe1f9011e3074d95b341886d6cebb | 3,613 | cpp | C++ | lib/Transforms/BlockSeparator.cpp | compor/Atrox | d6e893f0c91764c58e198ccf316096b0ec9f7d90 | [
"MIT"
] | null | null | null | lib/Transforms/BlockSeparator.cpp | compor/Atrox | d6e893f0c91764c58e198ccf316096b0ec9f7d90 | [
"MIT"
] | null | null | null | lib/Transforms/BlockSeparator.cpp | compor/Atrox | d6e893f0c91764c58e198ccf316096b0ec9f7d90 | [
"MIT"
] | null | null | null | //
//
//
#include "Atrox/Transforms/BlockSeparator.hpp"
#include "IteratorRecognition/Analysis/IteratorRecognition.hpp"
#include "llvm/IR/BasicBlock.h"
// using llvm::BasicBlock
#include "llvm/IR/Instructions.h"
// using llvm::BranchInst
#include "llvm/IR/Dominators.h"
// using llvm::DominatorTree
#include "llvm/... | 27.165414 | 77 | 0.634376 | compor |
00f3236832c39fe11d14eba4cc6a3c4ef88d8ce1 | 106 | cpp | C++ | InlineFunction/inline_functions.cpp | clemaitre58/LessonsCpp | a385b30c9ca970f0be68a781a55cfe409058aa05 | [
"MIT"
] | null | null | null | InlineFunction/inline_functions.cpp | clemaitre58/LessonsCpp | a385b30c9ca970f0be68a781a55cfe409058aa05 | [
"MIT"
] | null | null | null | InlineFunction/inline_functions.cpp | clemaitre58/LessonsCpp | a385b30c9ca970f0be68a781a55cfe409058aa05 | [
"MIT"
] | 5 | 2020-04-11T20:19:27.000Z | 2020-04-14T04:20:19.000Z | #include "inline_function.h"
namespace inline_function {
int f2(const int & b) {
return b + 2;
}
}
| 10.6 | 28 | 0.650943 | clemaitre58 |
00f37d7fcff45d0055be0dcd39b51c78b43f1bff | 2,645 | hpp | C++ | irob_utils/include/irob_utils/pose.hpp | BenGab/irob-saf | 3a0fee98239bd935aa99c9d9526eb9b4cfc8963c | [
"MIT"
] | null | null | null | irob_utils/include/irob_utils/pose.hpp | BenGab/irob-saf | 3a0fee98239bd935aa99c9d9526eb9b4cfc8963c | [
"MIT"
] | null | null | null | irob_utils/include/irob_utils/pose.hpp | BenGab/irob-saf | 3a0fee98239bd935aa99c9d9526eb9b4cfc8963c | [
"MIT"
] | null | null | null | /*
* pose.hpp
*
* Author(s): Tamas D. Nagy
* Created on: 2016-10-27
*
* Class to store and make calculations on a robot arm,
* including the angle of the grippers.
*
*/
#ifndef IROB_POSE_HPP_
#define IROB_POSE_HPP_
#include <iostream>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/Pose.h... | 27.552083 | 84 | 0.675992 | BenGab |
00f8ee486d4ba99bb23fafc09b7e6bf10f4165f7 | 23,401 | cc | C++ | gazebo/common/Mesh.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | gazebo/common/Mesh.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | gazebo/common/Mesh.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012-2016 Open Source Robotics Foundation
*
* 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... | 25.271058 | 80 | 0.524465 | otamachan |
00fed53ddd8627733c2a7af5922dfb3cd3de868e | 4,491 | cpp | C++ | CsPlayback/Source/CsPlayback/Public/Managers/Playback/CsConsoleCommand_Manager_Playback.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsPlayback/Source/CsPlayback/Public/Managers/Playback/CsConsoleCommand_Manager_Playback.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsPlayback/Source/CsPlayback/Public/Managers/Playback/CsConsoleCommand_Manager_Playback.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, Inc. All rights reserved.
#include "Managers/Playback/CsConsoleCommand_Manager_Playback.h"
#include "CsPlayback.h"
// Library
#include "Library/CsLibrary_String.h"
#include "ConsoleCommand/CsLibrary_ConsoleCommand.h"
#include "Library/CsLibrary_Valid.h"
#include "Managers/Playb... | 26.263158 | 227 | 0.701403 | closedsum |
2e0291cdbfd04525931fa716a2d277b6793cab84 | 17,411 | cpp | C++ | JHSeng's work/report/src/USBCore.cpp | JHSeng/ros_experiment | d5ec652e8f2d79e76b896b69757090d953ff6653 | [
"MIT"
] | null | null | null | JHSeng's work/report/src/USBCore.cpp | JHSeng/ros_experiment | d5ec652e8f2d79e76b896b69757090d953ff6653 | [
"MIT"
] | null | null | null | JHSeng's work/report/src/USBCore.cpp | JHSeng/ros_experiment | d5ec652e8f2d79e76b896b69757090d953ff6653 | [
"MIT"
] | null | null | null | #include "USBAPI.h"
#include "PluggableUSB.h"
#include <stdlib.h>
#if defined(USBCON)
/**脉冲生成计数器,用于跟踪每种脉冲类型剩余的毫秒数*/
#define TX_RX_LED_PULSE_MS 100
volatile u8 TxLEDPulse; /** <数据Tx LED脉冲剩余的毫秒数*/
volatile u8 RxLEDPulse; /** <剩余的毫秒数用于数据接收LED脉冲*/
extern const u16 STRING_LANGUAGE[] PROGMEM;
extern const u8 STRING_PRODUCT[]... | 31.035651 | 155 | 0.60031 | JHSeng |
2e04d61885cdbc57fa7a44e574ed97f4826d3f4f | 3,063 | cpp | C++ | VVGL/src/GLContextWindowBacking.cpp | mrRay/VVISF-GL | 96b00da11e4497da304041ea2a5ffc6e3a8c9454 | [
"BSD-3-Clause"
] | 24 | 2019-01-17T17:56:18.000Z | 2022-02-27T19:57:13.000Z | VVGL/src/GLContextWindowBacking.cpp | mrRay/VVISF-GL | 96b00da11e4497da304041ea2a5ffc6e3a8c9454 | [
"BSD-3-Clause"
] | 6 | 2019-01-17T17:17:12.000Z | 2020-06-19T11:27:50.000Z | VVGL/src/GLContextWindowBacking.cpp | mrRay/VVISF-GL | 96b00da11e4497da304041ea2a5ffc6e3a8c9454 | [
"BSD-3-Clause"
] | 2 | 2020-12-25T04:57:31.000Z | 2021-03-02T22:05:31.000Z | #include "GLContextWindowBacking.hpp"
#if defined(VVGL_SDK_WIN)
namespace VVGL {
const TCHAR* GLCONTEXTWINDOWBACKING_WNDCLASSNAME = _T("GLCONTEXTWINDOWBACKING_WNDCLASSNAME");
static const TCHAR* GLCONTEXTWINDOWBACKING_PROPERTY = _T("GLCONTEXTWINDOWBACKING_PROPERTY");
static bool GLContex... | 31.90625 | 107 | 0.711721 | mrRay |
2e07012b6ccf4565ad0591026233b490894a32b9 | 2,318 | cpp | C++ | esp32/airpapyrus/CCS811Sensor.cpp | ciffelia/airpapyrus | 4e6642025d6b1e81210c63f3cae46e4e361804ea | [
"MIT"
] | null | null | null | esp32/airpapyrus/CCS811Sensor.cpp | ciffelia/airpapyrus | 4e6642025d6b1e81210c63f3cae46e4e361804ea | [
"MIT"
] | null | null | null | esp32/airpapyrus/CCS811Sensor.cpp | ciffelia/airpapyrus | 4e6642025d6b1e81210c63f3cae46e4e361804ea | [
"MIT"
] | null | null | null | #include "CCS811Sensor.hpp"
#include "Constants.hpp"
#include "Logger.hpp"
CCS811Sensor::CCS811Sensor()
: ccs811(Constants::GPIO::Address::CCS811)
{
}
void CCS811Sensor::reset() {
pinMode(Constants::GPIO::Pin::CCS811_RESET, OUTPUT);
digitalWrite(Constants::GPIO::Pin::CCS811_RESET, 0);
delay(10);
digitalWr... | 22.950495 | 95 | 0.694133 | ciffelia |
2e08233eba05439eed938035df117b2cf5280ae8 | 462 | cpp | C++ | 519_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 519_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 519_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int vec_sum=0;
int temp1_sum=0;
int temp2_sum=0;
for(int i=0;i<n;i++)
{
int x;
cin>>x;
vec_sum+=x;
}
for(int i=0;i<n-1;i++)
{
int x;
cin>>x;
temp1_sum+=x;
}
for(int i=0;i<n-2;i++)
... | 14.903226 | 37 | 0.480519 | onexmaster |
2e0b8c9b9baa9cd6501e2376d31757d25d948f27 | 6,650 | cpp | C++ | src/caffe/layers/softmax_noisy_label_loss_layer.cpp | gnina/caffe | 59b3451cd54ae106de3335876ba25f68b9553098 | [
"Intel",
"BSD-2-Clause"
] | 1 | 2016-06-09T16:44:58.000Z | 2016-06-09T16:44:58.000Z | src/caffe/layers/softmax_noisy_label_loss_layer.cpp | gnina/caffe | 59b3451cd54ae106de3335876ba25f68b9553098 | [
"Intel",
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/softmax_noisy_label_loss_layer.cpp | gnina/caffe | 59b3451cd54ae106de3335876ba25f68b9553098 | [
"Intel",
"BSD-2-Clause"
] | 3 | 2016-02-10T17:38:44.000Z | 2018-10-14T07:44:19.000Z | #include <algorithm>
#include <functional>
#include <cfloat>
#include <vector>
#include <iostream>
#include <utility>
#include "caffe/layers/softmax_noisy_label_loss_layer.hpp"
#include "caffe/filler.hpp"
namespace caffe {
template <typename Dtype>
void SoftmaxWithNoisyLabelLossLayer<Dtype>::LayerSetUp(
const v... | 35.185185 | 80 | 0.633233 | gnina |
2e1139f3fd96af61c9eb61cbbc0eea294d26f404 | 4,661 | hh | C++ | include/snow/types/slot_mask.hh | nilium/libsnow-common | dff60ce529cdbe13ccf1f94756a78214c8f9d09d | [
"BSL-1.0"
] | 1 | 2015-10-01T20:10:05.000Z | 2015-10-01T20:10:05.000Z | include/snow/types/slot_mask.hh | nilium/libsnow-common | dff60ce529cdbe13ccf1f94756a78214c8f9d09d | [
"BSL-1.0"
] | null | null | null | include/snow/types/slot_mask.hh | nilium/libsnow-common | dff60ce529cdbe13ccf1f94756a78214c8f9d09d | [
"BSL-1.0"
] | null | null | null | /*
* Copyright Noel Cower 2013.
*
* 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)
*/
#pragma once
#include <cstdint>
#include <iostream>
#include <vector>
namespace snow {
template <typename HT, typena... | 21.186364 | 93 | 0.636344 | nilium |
2e1323cd5ce50e74e5e7c7a739c17bf7001f5cda | 3,882 | cpp | C++ | PhotosConsigne/src/Widgets/PhotoW.cpp | FlorianLance/PhotosConsigne | 8ea3a68dc3db36bf054c3759d909f9af44647660 | [
"MIT"
] | 2 | 2018-05-06T20:59:09.000Z | 2021-02-25T11:00:14.000Z | PhotosConsigne/src/Widgets/PhotoW.cpp | FlorianLance/PhotosConsigne | 8ea3a68dc3db36bf054c3759d909f9af44647660 | [
"MIT"
] | null | null | null | PhotosConsigne/src/Widgets/PhotoW.cpp | FlorianLance/PhotosConsigne | 8ea3a68dc3db36bf054c3759d909f9af44647660 | [
"MIT"
] | 1 | 2021-02-01T14:57:04.000Z | 2021-02-01T14:57:04.000Z |
/*******************************************************************************
** PhotosConsigne **
** MIT License **
** Copyright (c) [2016] [Florian Lance] ... | 38.058824 | 127 | 0.548171 | FlorianLance |
2e14073384a0c7faed9ffc4535640188330bef5f | 1,392 | hpp | C++ | src/Errors.hpp | evanova/libdgmpp | 867dc081b8dc474b396481ae1b92283affc858d3 | [
"MIT"
] | 4 | 2018-05-07T16:47:27.000Z | 2021-05-17T13:38:18.000Z | src/Errors.hpp | evanova/libdgmpp | 867dc081b8dc474b396481ae1b92283affc858d3 | [
"MIT"
] | null | null | null | src/Errors.hpp | evanova/libdgmpp | 867dc081b8dc474b396481ae1b92283affc858d3 | [
"MIT"
] | null | null | null | //
// Errors.hpp
// dgmpp
//
// Created by Artem Shimanski on 24.11.2017.
//
#pragma once
#include <stdexcept>
#include "Utility.hpp"
namespace dgmpp {
template <typename T>
struct CannotFit: public std::logic_error {
CannotFit(std::unique_ptr<T> type): type(std::move(type)), std::logic_error("Cannot fit") {... | 29 | 152 | 0.713362 | evanova |
2e19873f0e039a428ed40c8bde870a8aa988e0ce | 449 | cpp | C++ | src/digital_clock.cpp | imharris24/Digital-Clock | dbca263357f4fed182e278e8133dba07471583d8 | [
"CC0-1.0"
] | null | null | null | src/digital_clock.cpp | imharris24/Digital-Clock | dbca263357f4fed182e278e8133dba07471583d8 | [
"CC0-1.0"
] | null | null | null | src/digital_clock.cpp | imharris24/Digital-Clock | dbca263357f4fed182e278e8133dba07471583d8 | [
"CC0-1.0"
] | null | null | null | #include "digital_clock.h"
#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<chrono>
#include<ctime>
#include<Windows.h>
using namespace std;
void DisplayTime()
{
auto CurrentTime = chrono::system_clock::now();
while (true)
{
system("cls");
CurrentTime = chrono::system_clock::now();
time_t Current_... | 21.380952 | 66 | 0.697105 | imharris24 |
2e1c505128c9453740642d5763549d151330ed78 | 5,570 | cpp | C++ | commands.cpp | jekhor/pneumatic-tc-firmware | a532d78a154cc963d98c239c916485f5383f3dcf | [
"CC-BY-3.0"
] | 1 | 2018-10-08T13:28:32.000Z | 2018-10-08T13:28:32.000Z | commands.cpp | jekhor/pneumatic-tc-firmware | a532d78a154cc963d98c239c916485f5383f3dcf | [
"CC-BY-3.0"
] | 9 | 2019-08-21T18:07:49.000Z | 2019-09-30T19:48:28.000Z | commands.cpp | jekhor/pneumatic-tc-firmware | a532d78a154cc963d98c239c916485f5383f3dcf | [
"CC-BY-3.0"
] | null | null | null |
#include <Arduino.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <SdFat.h>
#include "common.h"
#include "sd_log.h"
#include "timers.h"
static int scan_time(char *date, char *time,
unsigned short *y, tmElements_t *tm)
{
uint16_t numbers[3];
char *c;
int i = 0;
c = strtok(date, "-");
while (c && (i < 3... | 18.262295 | 78 | 0.63842 | jekhor |
2e1e311a60c2b658b683d9387bd1803c5c401c37 | 366 | hpp | C++ | include/amcl_3d/time.hpp | yukkysaito/amcl_3d | 3284678ee2f184fb704a44c2affc8d398ece5863 | [
"BSD-3-Clause"
] | 10 | 2019-08-16T05:17:38.000Z | 2022-03-09T07:59:03.000Z | include/amcl_3d/time.hpp | rsasaki0109/amcl_3d | 584d49a94666b6ee4aab9652d2142274b96e7c6c | [
"BSD-3-Clause"
] | 2 | 2018-10-10T06:59:23.000Z | 2019-06-04T01:09:55.000Z | include/amcl_3d/time.hpp | yukkysaito/amcl_3d | 3284678ee2f184fb704a44c2affc8d398ece5863 | [
"BSD-3-Clause"
] | 6 | 2018-10-10T06:57:56.000Z | 2020-07-19T11:58:08.000Z | #pragma once
#include <ros/ros.h>
namespace amcl_3d
{
struct Time
{
Time(const ros::Time &ros_time);
Time();
ros::Time toROSTime();
static Time fromROSTime(const ros::Time &ros_time);
static double getDiff(const Time &start, const Time &end);
static Time getTimeNow();
unsigned int sec;
... | 19.263158 | 62 | 0.669399 | yukkysaito |
2e202efccdb33bbe69ac1aad6b1e464c2568882d | 329 | cpp | C++ | chap15/Exer15_39/Exer15_39_Query.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 50 | 2016-01-08T14:28:53.000Z | 2022-01-21T12:55:00.000Z | chap15/Exer15_39/Exer15_39_Query.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 2 | 2017-06-05T16:45:20.000Z | 2021-04-17T13:39:24.000Z | chap15/Exer15_39/Exer15_39_Query.cpp | sjbarigye/CPP_Primer | d9d31a73a45ca46909bae104804fc9503ab242f2 | [
"Apache-2.0"
] | 18 | 2016-08-17T15:23:51.000Z | 2022-03-26T18:08:43.000Z | #include "Exer15_39_Query.h"
// constructor of Query that takes a string parameter
// inline Query::Query(const std::string &s) : q(new WordQuery(s)) {}
std::ostream& operator<<(std::ostream &os, const Query &query)
{
// Query::rep makes a virtual call through its Query_base pointer to rep()
return os << query.... | 36.555556 | 78 | 0.696049 | sjbarigye |
2e2523e00203352c8b7d1cc80284af8205793086 | 2,390 | cc | C++ | util/src/stringutil.cc | robert-mijakovic/readex-ptf | 5514b0545721ef27de0426a7fa0116d2e0bb5eef | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | util/src/stringutil.cc | robert-mijakovic/readex-ptf | 5514b0545721ef27de0426a7fa0116d2e0bb5eef | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | util/src/stringutil.cc | robert-mijakovic/readex-ptf | 5514b0545721ef27de0426a7fa0116d2e0bb5eef | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
@file stringutil.cc
@brief String manipulation routines
@author Karl Fuerlinger
@verbatim
Revision: $Revision$
Revision date: $Date$
Committed by: $Author$
This file is part of the Periscope performance measurement tool.
See http://www.lrr.in.tum.de/periscope for deta... | 22.980769 | 83 | 0.551046 | robert-mijakovic |
2e276f26c03d408e1680e5d90f56447f611f65c5 | 4,316 | hpp | C++ | libs/boost_1_72_0/boost/smart_ptr/enable_shared_from_raw.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/smart_ptr/enable_shared_from_raw.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/smart_ptr/enable_shared_from_raw.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | #ifndef BOOST_ENABLE_SHARED_FROM_RAW_HPP_INCLUDED
#define BOOST_ENABLE_SHARED_FROM_RAW_HPP_INCLUDED
//
// enable_shared_from_raw.hpp
//
// Copyright 2002, 2009, 2014 Peter Dimov
// Copyright 2008-2009 Frank Mori Hess
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE... | 29.162162 | 80 | 0.68721 | henrywarhurst |
2e2c633559616dc04e63ed1a91844008a24a9354 | 32,857 | cpp | C++ | SU2-Quantum/SU2_CFD/src/output/CFlowIncOutput.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/src/output/CFlowIncOutput.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/src/output/CFlowIncOutput.cpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file output_flow_inc.cpp
* \brief Main subroutines for incompressible flow output
* \author R. Sanchez
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 Contr... | 49.93465 | 200 | 0.728916 | Agony5757 |
2e302fc270d22b89db1aede75e0c47b29168bfd8 | 6,559 | cpp | C++ | wws_lua/extras/Lua.Utilities/luawrapper.cpp | ViseEngine/SLED | 7815ee6feb656d43f70edba8280caa8a69d0983b | [
"Apache-2.0"
] | 158 | 2015-03-03T00:11:56.000Z | 2022-02-08T18:43:11.000Z | wws_lua/extras/Lua.Utilities/luawrapper.cpp | mcanthony/SLED | 7815ee6feb656d43f70edba8280caa8a69d0983b | [
"Apache-2.0"
] | 3 | 2015-04-30T13:00:43.000Z | 2015-07-07T22:58:35.000Z | wws_lua/extras/Lua.Utilities/luawrapper.cpp | mcanthony/SLED | 7815ee6feb656d43f70edba8280caa8a69d0983b | [
"Apache-2.0"
] | 48 | 2015-03-05T05:30:45.000Z | 2021-10-18T02:09:02.000Z | /*
* Copyright (C) Sony Computer Entertainment America LLC.
* All Rights Reserved.
*/
#include "stdafx.h"
#include "luawrapper.h"
#include <msclr\marshal_cppstd.h>
#include <string>
namespace Unmanaged
{
StackReconciler::StackReconciler(lua_State* luaState)
: m_luaState(luaState)
, m_count(LuaInterface::Get... | 33.984456 | 168 | 0.751944 | ViseEngine |
2e304d5d162ee27191532c7d630113bd7e7998de | 12,063 | hpp | C++ | sources/middle_layer/src/partial_completion.hpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | null | null | null | sources/middle_layer/src/partial_completion.hpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | null | null | null | sources/middle_layer/src/partial_completion.hpp | hhb584520/DML | 014eb9894e85334f03ec74435933c972f3d05b50 | [
"MIT"
] | 1 | 2022-03-28T07:52:21.000Z | 2022-03-28T07:52:21.000Z | /*******************************************************************************
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#ifndef DML_ML_OWN_PARTIAL_COMPLETION_HPP
#define DML_ML_OWN_PARTIAL_COMPLETION_HP... | 46.041985 | 122 | 0.691287 | hhb584520 |
2e3152e88bacc8c8fe68107e3ee51ff9b01532fa | 93 | cpp | C++ | gamelib/source/util/json_array.cpp | brodiequinlan/game-framework | 4243d9b011e0d17da66874fa77b3b6d7a6c5e440 | [
"Apache-2.0"
] | 1 | 2021-11-20T02:36:28.000Z | 2021-11-20T02:36:28.000Z | gamelib/source/util/json_array.cpp | Bobsaggetismine/game-framework | 4243d9b011e0d17da66874fa77b3b6d7a6c5e440 | [
"Apache-2.0"
] | 1 | 2019-06-11T01:45:11.000Z | 2019-06-11T01:47:43.000Z | gamelib/source/util/json_array.cpp | Bobsaggetismine/game-framework | 4243d9b011e0d17da66874fa77b3b6d7a6c5e440 | [
"Apache-2.0"
] | null | null | null | #include "bqpch.h"
bq::json bq::json_array::get_o(int index){
return m_objects[index];
} | 18.6 | 42 | 0.688172 | brodiequinlan |
2e3245b199e5b94f173ed2a4d3f4939a8207c722 | 913 | hpp | C++ | include/inet/Url.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | include/inet/Url.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | include/inet/Url.hpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef SAPI_INET_URL_HPP_
#define SAPI_INET_URL_HPP_
#include "../api/InetObject.hpp"
#include "../var/String.hpp"
namespace inet {
class Url : public api::InfoObject {
public:
enum protocol {
protocol_https,
... | 20.288889 | 100 | 0.691128 | bander9289 |
2e381dee7d809dea721d1c0484c45caa8d3a8bf9 | 4,681 | cpp | C++ | src/plugin.cpp | hhornbacher/mosquitto-auth-plugin | a44586940bd6c7aca9f00b7b4996e3405bef50aa | [
"MIT"
] | 2 | 2020-06-18T13:21:31.000Z | 2021-04-20T23:29:31.000Z | src/plugin.cpp | hhornbacher/mosquitto-auth-plugin | a44586940bd6c7aca9f00b7b4996e3405bef50aa | [
"MIT"
] | null | null | null | src/plugin.cpp | hhornbacher/mosquitto-auth-plugin | a44586940bd6c7aca9f00b7b4996e3405bef50aa | [
"MIT"
] | null | null | null | #include "plugin.h"
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <libscrypt.h>
#include <mosquitto.h>
extern "C"
{
#include <mosquitto_broker.h>
}
int MosquittoAuthPlugin::security_init(const PluginOptions opts, const bool reload)
{
mosquitto_log_printf(MOSQ_LOG_DEBUG, "security_init");
... | 37.448 | 108 | 0.631916 | hhornbacher |
aa319d3f4cf5178e057bf66cd2dc7b73c6bb81a7 | 14,240 | cxx | C++ | EVGEN/AliGenSlowNucleons.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | EVGEN/AliGenSlowNucleons.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 2 | 2016-11-25T08:40:56.000Z | 2019-10-11T12:29:29.000Z | EVGEN/AliGenSlowNucleons.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 31.574279 | 123 | 0.63743 | AllaMaevskaya |
aa32fa4dedb60252d53d59c2ba0403520506e623 | 943 | cpp | C++ | Rumble3D/src/RigidBodyEngine/CollisionPrimitive.cpp | Nelaty/Rumble3D | 801b9feec27ceeea91db3b759083f6351634e062 | [
"MIT"
] | 1 | 2020-01-21T16:01:53.000Z | 2020-01-21T16:01:53.000Z | Rumble3D/src/RigidBodyEngine/CollisionPrimitive.cpp | Nelaty/Rumble3D | 801b9feec27ceeea91db3b759083f6351634e062 | [
"MIT"
] | 1 | 2019-10-08T08:25:33.000Z | 2019-10-09T06:39:06.000Z | Rumble3D/src/RigidBodyEngine/CollisionPrimitive.cpp | Nelaty/Rumble3D | 801b9feec27ceeea91db3b759083f6351634e062 | [
"MIT"
] | 1 | 2019-05-14T13:48:16.000Z | 2019-05-14T13:48:16.000Z | #include "R3D/RigidBodyEngine/CollisionPrimitive.h"
#include "R3D/RigidBodyEngine/RigidBody.h"
#include <glm/gtc/matrix_transform.inl>
#include <cassert>
namespace r3
{
void CollisionPrimitive::calculateInternals()
{
/// \todo use new transform!
const auto& transform = m_body->getTransform();
glm::mat4 mat = ... | 20.955556 | 74 | 0.726405 | Nelaty |
aa37654983151cb040081ee3a660a55f0b2e958f | 1,836 | hpp | C++ | MyApplication/Middlewares/ST/touchgfx/framework/include/touchgfx/hal/GPIO.hpp | rshane960/TouchGFX | 1f1465f1aa1215d52264ae0199dafa821939de64 | [
"MIT"
] | null | null | null | MyApplication/Middlewares/ST/touchgfx/framework/include/touchgfx/hal/GPIO.hpp | rshane960/TouchGFX | 1f1465f1aa1215d52264ae0199dafa821939de64 | [
"MIT"
] | null | null | null | MyApplication/Middlewares/ST/touchgfx/framework/include/touchgfx/hal/GPIO.hpp | rshane960/TouchGFX | 1f1465f1aa1215d52264ae0199dafa821939de64 | [
"MIT"
] | null | null | null | /******************************************************************************
* Copyright (c) 2018(-2021) STMicroelectronics.
* All rights reserved.
*
* This file is part of the TouchGFX 4.18.1 distribution.
*
* This software is licensed under terms that can be found in the LICENSE file in
* the root directory of thi... | 24.157895 | 96 | 0.569172 | rshane960 |
aa3abe536e9e4f269ada3a833dc1c969697575f3 | 14,401 | cpp | C++ | Numerical-Methods/Task-9/main.cpp | Maissae/University-Projects | 86ef0583760742c0e45be33d3fac3689587d0c76 | [
"MIT"
] | null | null | null | Numerical-Methods/Task-9/main.cpp | Maissae/University-Projects | 86ef0583760742c0e45be33d3fac3689587d0c76 | [
"MIT"
] | null | null | null | Numerical-Methods/Task-9/main.cpp | Maissae/University-Projects | 86ef0583760742c0e45be33d3fac3689587d0c76 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
#include<bitset>
#include<iostream>
#include<iomanip>
#include<math.h>
#include<string.h>
#pragma region Array/Matrix Functions
double** CreateMatrix(int n)
{
double** matrix = new double* [n];
for(int i = 0; i < n; i++) {
matrix[i] = new double[n];
}
for(i... | 21.786687 | 116 | 0.43122 | Maissae |
aa3faf9aaafb9459939c59f788180810b68a1915 | 5,899 | cc | C++ | A1/Main/BufferMgr/source/MyDB_BufferManager.cc | JiweiYe/DB_implementation | 5f3b043ea2ceffa8a84ef90f1127c8b4d5a83d98 | [
"MIT"
] | null | null | null | A1/Main/BufferMgr/source/MyDB_BufferManager.cc | JiweiYe/DB_implementation | 5f3b043ea2ceffa8a84ef90f1127c8b4d5a83d98 | [
"MIT"
] | null | null | null | A1/Main/BufferMgr/source/MyDB_BufferManager.cc | JiweiYe/DB_implementation | 5f3b043ea2ceffa8a84ef90f1127c8b4d5a83d98 | [
"MIT"
] | null | null | null |
#ifndef BUFFER_MGR_C
#define BUFFER_MGR_C
#include "MyDB_BufferManager.h"
#include <string>
using namespace std;
MyDB_PageHandle MyDB_BufferManager :: getPage (MyDB_TablePtr whichTable, long i) {
string targetPage = pageIdGenerator(whichTable, i);
//page already in the buffer
if(inbuffer(targetPage)){
MyDB_Pag... | 29.944162 | 132 | 0.712494 | JiweiYe |
aa419cee82e2fed3f4197a8f654d2e7b6184edbe | 12,044 | cpp | C++ | src/Transform/ONNX/ConstPropHelper.cpp | juan561999/Onnx-mlir | f8554660dd98b5bb911320aa4f22823573c9b0fb | [
"Apache-2.0"
] | null | null | null | src/Transform/ONNX/ConstPropHelper.cpp | juan561999/Onnx-mlir | f8554660dd98b5bb911320aa4f22823573c9b0fb | [
"Apache-2.0"
] | null | null | null | src/Transform/ONNX/ConstPropHelper.cpp | juan561999/Onnx-mlir | f8554660dd98b5bb911320aa4f22823573c9b0fb | [
"Apache-2.0"
] | null | null | null | /*
* SPDX-License-Identifier: Apache-2.0
*/
//===----------- ONNXConstProp.cpp - ONNX High Level Rewriting ------------===//
//
// Copyright 2019-2020 The IBM Research Authors.
//
// =============================================================================
//
// This file implements a set of rewriters to constpr... | 37.520249 | 80 | 0.663982 | juan561999 |
aa4638abefaaaef7eaa7a21b3fadd3dec9691266 | 506 | cpp | C++ | mod/wrc/flag/flags/fileFlag.cpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 1 | 2019-02-02T07:07:32.000Z | 2019-02-02T07:07:32.000Z | mod/wrc/flag/flags/fileFlag.cpp | kniz/wrd | a8c9e8bd2f7b240ff64a3b80e7ebc7aff2775ba6 | [
"MIT"
] | 25 | 2016-09-23T16:36:19.000Z | 2019-02-12T14:14:32.000Z | mod/wrc/flag/flags/fileFlag.cpp | kniz/World | 13b0c8c7fdc6280efcb2135dc3902754a34e6d06 | [
"MIT"
] | null | null | null | #include "fileFlag.hpp"
#include <fstream>
#include <sstream>
namespace wrd {
WRD_DEF_ME(fileFlag)
wbool me::_onTake(const args& tray, cli& c, interpreter& ip) const {
std::vector<string> buf;
for(const auto& filePath : tray) {
std::ifstream fout(filePath);
std::string... | 22 | 72 | 0.577075 | kniz |
aa47ac68b7c4044e40b7ee7cd94a7d62514ad36e | 1,106 | hpp | C++ | include/LoopKeybinding.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | include/LoopKeybinding.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | include/LoopKeybinding.hpp | DangerInteractive/ArcticWolf | 74999f00cb4ef44f358bea1df266967cd1e7ed6c | [
"MIT"
] | null | null | null | #ifndef H_AW_LOOPKEYBINDING
#define H_AW_LOOPKEYBINDING
#include <vector>
#include <functional>
#include <SFML/Window.hpp>
namespace aw {
class LoopKeybinding {
public:
typedef std::function<void()> LoopKeybindingCallback;
LoopKeybinding (const LoopKeybindingCallback&, sf::Keyboard::Key);
LoopKeybindin... | 25.72093 | 90 | 0.716094 | DangerInteractive |
aa601fdffefd00d331af042807bf638a48712c6b | 596 | cpp | C++ | copy_constructor.cpp | Devilshree123/Object-oriented-programming-in-CPP | d5059b1c4f394417235ade5a0794d368d1c13b60 | [
"Apache-2.0"
] | null | null | null | copy_constructor.cpp | Devilshree123/Object-oriented-programming-in-CPP | d5059b1c4f394417235ade5a0794d368d1c13b60 | [
"Apache-2.0"
] | null | null | null | copy_constructor.cpp | Devilshree123/Object-oriented-programming-in-CPP | d5059b1c4f394417235ade5a0794d368d1c13b60 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
class number
{
int a ;
public:
number(){
a=0;
}
number(int num)
{
a = num;
}
number(number &obj)
{
cout<<"copy constructor is called "<<endl;
a = obj.... | 14.190476 | 55 | 0.407718 | Devilshree123 |
aa62ad93ab34bbbdb4e009f0ef5397bea16621e1 | 423 | cpp | C++ | 6. Trees/09. Convert BST to Greater Tree.cpp | thekalyan001/DMB1-CP | 7ccf41bac7269bff432260c6078cebdb4e0f1483 | [
"Apache-2.0"
] | null | null | null | 6. Trees/09. Convert BST to Greater Tree.cpp | thekalyan001/DMB1-CP | 7ccf41bac7269bff432260c6078cebdb4e0f1483 | [
"Apache-2.0"
] | null | null | null | 6. Trees/09. Convert BST to Greater Tree.cpp | thekalyan001/DMB1-CP | 7ccf41bac7269bff432260c6078cebdb4e0f1483 | [
"Apache-2.0"
] | null | null | null | https://leetcode.com/problems/convert-bst-to-greater-tree/
convert bst such that BST is changed to the original key plus the sum
of all keys greater than the original key in BST.
TreeNode* convertBST(TreeNode* root) {
if(root!=NULL){
convertBST(root->right);
sum+=root->val;
... | 30.214286 | 72 | 0.588652 | thekalyan001 |
aa663493041898051a0fef9fdcb937a0f156ab9c | 665 | cpp | C++ | cppfun/main.cpp | selvakumarjawahar/myexperiments | 8d04a38e992bb717c792d198dda1d221b749a375 | [
"MIT"
] | null | null | null | cppfun/main.cpp | selvakumarjawahar/myexperiments | 8d04a38e992bb717c792d198dda1d221b749a375 | [
"MIT"
] | 4 | 2021-09-02T01:23:47.000Z | 2022-02-26T19:35:28.000Z | cppfun/main.cpp | selvakumarjawahar/myexperiments | 8d04a38e992bb717c792d198dda1d221b749a375 | [
"MIT"
] | null | null | null | #include <iostream>
#include "StaticMapGenerator.h"
#include <cstdlib>
Fruits FruitGenerator(){
auto fruit = rand() % 3;
return static_cast<Fruits>(fruit);
}
using DefaultFruitMap = DefaultValueMap<Fruits,Season,Season::AllYear>;
int main() {
std::cout << "Default = " << (int) FruitMap<Fruits::Grapes>::va... | 33.25 | 92 | 0.631579 | selvakumarjawahar |
aa68187c169675cc4c51c365350ab05887d971c1 | 6,595 | cpp | C++ | source/app/rendering/device.cpp | mattwamboldt/rasterizer | a571c9350d448f71e991f145cb0264abb2002d4d | [
"MIT"
] | null | null | null | source/app/rendering/device.cpp | mattwamboldt/rasterizer | a571c9350d448f71e991f145cb0264abb2002d4d | [
"MIT"
] | null | null | null | source/app/rendering/device.cpp | mattwamboldt/rasterizer | a571c9350d448f71e991f145cb0264abb2002d4d | [
"MIT"
] | null | null | null | #include "device.h"
#include <float.h>
Device::Device(SDL_Surface* _screen)
:screen(_screen), renderWidth(screen->w), renderHeight(screen->h)
{
depthBuffer = new float[renderWidth * renderHeight];
}
Device::~Device()
{
if (depthBuffer)
{
delete[] depthBuffer;
}
}
// Clear... | 30.252294 | 127 | 0.576952 | mattwamboldt |
aa6a135b84a3c9c22aa97a1a22aeb51036d01903 | 7,005 | cpp | C++ | c/src/execution_engine.cpp | tydeu/lean4-papyrus | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | [
"Apache-2.0"
] | 9 | 2021-07-22T11:37:59.000Z | 2022-02-23T05:39:35.000Z | c/src/execution_engine.cpp | tydeu/lean4-papyrus | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | [
"Apache-2.0"
] | 2 | 2021-09-17T15:59:21.000Z | 2021-09-24T23:52:23.000Z | c/src/execution_engine.cpp | tydeu/lean4-papyrus | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | [
"Apache-2.0"
] | 2 | 2021-09-06T09:45:21.000Z | 2022-03-09T12:24:53.000Z | #include "papyrus.h"
#include "papyrus_ffi.h"
#include <lean/lean.h>
#include <llvm/ExecutionEngine/GenericValue.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
using namespace llvm;
namespace papyrus {
struct EEExternal {
// The execution engine handle.
ExecutionEngine* ee;
// The modules controlled by... | 35.739796 | 116 | 0.725625 | tydeu |
aa758cb0138d5f90c4021b9915746cbb16252dd4 | 2,457 | cpp | C++ | src/engine/Scrap.cpp | m1cr0lab-gamebuino/apollo | 79c71d0ca44301d05d284a7f2bc5137fe80c911a | [
"MIT"
] | 1 | 2021-07-28T12:35:52.000Z | 2021-07-28T12:35:52.000Z | src/engine/Scrap.cpp | m1cr0lab-gamebuino/apollo | 79c71d0ca44301d05d284a7f2bc5137fe80c911a | [
"MIT"
] | null | null | null | src/engine/Scrap.cpp | m1cr0lab-gamebuino/apollo | 79c71d0ca44301d05d284a7f2bc5137fe80c911a | [
"MIT"
] | null | null | null | /**
* -------------------------------------------------------------------------
* Apollo
* -------------------------------------------------------------------------
* a tiny game for the Gamebuino META retro gaming handheld
* inspired by the famous Lunar ... | 21.743363 | 94 | 0.406186 | m1cr0lab-gamebuino |
aa7a2fcd8bf0b9f7a98b3ed7882b6772e93e279c | 2,128 | cpp | C++ | Image_editor/Image_editor.cpp | Aroidzap/VUT-FIT-IPA-Project-2017-2018 | c199b3165a1e282f78d3afb7104f35772b13ca6c | [
"MIT"
] | 1 | 2017-12-05T09:25:09.000Z | 2017-12-05T09:25:09.000Z | Image_editor/Image_editor.cpp | Aroidzap/VUT-FIT-IPA-Project-2017-2018 | c199b3165a1e282f78d3afb7104f35772b13ca6c | [
"MIT"
] | null | null | null | Image_editor/Image_editor.cpp | Aroidzap/VUT-FIT-IPA-Project-2017-2018 | c199b3165a1e282f78d3afb7104f35772b13ca6c | [
"MIT"
] | null | null | null | /*Sablona pro projekty do predmetu IPA, tema graficky editor
*Autor: Tomas Goldmann, igoldmann@fit.vutbr.cz
*
*LOGIN STUDENTA: xpazdi02
*/
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <intrin.h>
#include <inttypes.h>
#include <win... | 24.181818 | 148 | 0.725094 | Aroidzap |
aa8820758c4bd30b2af0aaa56aa2d5004e8bb278 | 2,571 | cpp | C++ | UVa/UVA - 190/Accepted (4).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | UVa/UVA - 190/Accepted (4).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | UVa/UVA - 190/Accepted (4).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2017-10-13 13:03:12
* solution_verdict: Accepted language: C++
* run... | 24.485714 | 111 | 0.439129 | kzvd4729 |
aa8d44e6b8873f26185035812f46c6b84a16c02b | 3,723 | hpp | C++ | libvast/vast/bloom_filter_synopsis.hpp | krionbsd/vast | c9fbc7230cac21886cf9d032e57b752276ba7ff7 | [
"BSD-3-Clause"
] | 249 | 2019-08-26T01:44:45.000Z | 2022-03-26T14:12:32.000Z | libvast/vast/bloom_filter_synopsis.hpp | krionbsd/vast | c9fbc7230cac21886cf9d032e57b752276ba7ff7 | [
"BSD-3-Clause"
] | 586 | 2019-08-06T13:10:36.000Z | 2022-03-31T08:31:00.000Z | libvast/vast/bloom_filter_synopsis.hpp | krionbsd/vast | c9fbc7230cac21886cf9d032e57b752276ba7ff7 | [
"BSD-3-Clause"
] | 37 | 2019-08-16T02:01:14.000Z | 2022-02-21T16:13:59.000Z | // _ _____ __________
// | | / / _ | / __/_ __/ Visibility
// | |/ / __ |_\ \ / / Across
// |___/_/ |_/___/ /_/ Space and Time
//
// SPDX-FileCopyrightText: (c) 2020 The VAST Contributors
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "vast/bloom_filter.hpp"
#include ... | 31.820513 | 76 | 0.659952 | krionbsd |
aa8e1e5f59c0290cf380add3b9c0bec92a63f80a | 16,191 | cpp | C++ | src/BezierScheme.cpp | Junology/bord2 | 0068885144032d4a8e30c6f2c5898918d00b1d8f | [
"MIT"
] | null | null | null | src/BezierScheme.cpp | Junology/bord2 | 0068885144032d4a8e30c6f2c5898918d00b1d8f | [
"MIT"
] | null | null | null | src/BezierScheme.cpp | Junology/bord2 | 0068885144032d4a8e30c6f2c5898918d00b1d8f | [
"MIT"
] | null | null | null | /*!
* \file BezierScheme.cpp
* \author Jun Yoshida
* \copyright (c) 2020 Jun Yoshida.
* The project is released under the MIT License.
* \date February 23, 2020: created
*/
#include "BezierScheme.hpp"
#include <set>
#include <thread>
#include <mutex>
#include <iostream>
using BezierSequence = typename BezierS... | 36.140625 | 126 | 0.481379 | Junology |
aa8e712b7b0e6b54a17e5b31de3357c0df06dd91 | 1,488 | cpp | C++ | sha3/main.cpp | skapix/sha3 | 6cbec1d0cf6eebe3ce4182da303d70c741cae30c | [
"MIT"
] | 7 | 2018-11-21T20:33:05.000Z | 2022-03-21T16:47:33.000Z | sha3/main.cpp | skapix/sha3 | 6cbec1d0cf6eebe3ce4182da303d70c741cae30c | [
"MIT"
] | null | null | null | sha3/main.cpp | skapix/sha3 | 6cbec1d0cf6eebe3ce4182da303d70c741cae30c | [
"MIT"
] | 4 | 2018-08-30T14:17:45.000Z | 2021-12-03T23:54:39.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include <cassert>
#include <cstdint>
#include <CLI/CLI.hpp>
#include "util.h"
#include "sha3_cpu.h"
#include "sha3_gpu.h"
template<typename T>
std::vector<uint8_t> doCalculation(std::istream &is, size_t digestSize, size_t bufSize)
{
T s(digestSize);
std::v... | 21.882353 | 89 | 0.638441 | skapix |
aa8f09e170bee1bcb8708673be76fff5cccd3c10 | 57 | cpp | C++ | src/stb_image.cpp | MickAlmighty/StudyOpenGL | aebebc9e89cca5a00569e7c5876045e36eed0c3b | [
"MIT"
] | null | null | null | src/stb_image.cpp | MickAlmighty/StudyOpenGL | aebebc9e89cca5a00569e7c5876045e36eed0c3b | [
"MIT"
] | null | null | null | src/stb_image.cpp | MickAlmighty/StudyOpenGL | aebebc9e89cca5a00569e7c5876045e36eed0c3b | [
"MIT"
] | null | null | null | #define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" | 28.5 | 34 | 0.824561 | MickAlmighty |
aa955910105940546d3c77a4ed6a0647aec689f1 | 3,373 | cpp | C++ | src/autowiring/CoreThreadMac.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | src/autowiring/CoreThreadMac.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | src/autowiring/CoreThreadMac.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "BasicThread.h"
#include "BasicThreadStateBlock.h"
#include <pthread.h>
#include <libproc.h>
#include <mach/thread_info.h>
#include <mach/thread_act.h>
#include <sys/proc_info.h>
#include <sys/sysctl.h>
#include <sys/types.h>... | 30.944954 | 145 | 0.752149 | CaseyCarter |
aa95867ef96c61515f5499d55034234deded6767 | 230 | cpp | C++ | 3rdparty/build_opencv-4.5.2/modules/core/test/test_intrin128.avx512_skx.cpp | LordOfTheUnicorn/trdrop | 6da4bf1528878e90cf14232dfb4adeec3458ee0f | [
"MIT"
] | null | null | null | 3rdparty/build_opencv-4.5.2/modules/core/test/test_intrin128.avx512_skx.cpp | LordOfTheUnicorn/trdrop | 6da4bf1528878e90cf14232dfb4adeec3458ee0f | [
"MIT"
] | 7 | 2021-05-24T22:57:32.000Z | 2021-08-23T05:32:30.000Z | 3rdparty/build_opencv-4.5.2/modules/core/test/test_intrin128.ssse3.cpp | LordOfTheUnicorn/trdrop | 6da4bf1528878e90cf14232dfb4adeec3458ee0f | [
"MIT"
] | null | null | null |
#include "/Users/unicorn1343/Documents/GitHub/trdrop/3rdParty/opencv-4.5.2/modules/core/test/test_precomp.hpp"
#include "/Users/unicorn1343/Documents/GitHub/trdrop/3rdParty/opencv-4.5.2/modules/core/test/test_intrin128.simd.hpp"
| 57.5 | 117 | 0.817391 | LordOfTheUnicorn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.