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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93b6cc23005a8077c01cad4ae1077ccca0429d67 | 424 | cpp | C++ | Example/optional_02/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/optional_02/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | Example/optional_02/main.cpp | KwangjoJeong/Boost | 29c4e2422feded66a689e3aef73086c5cf95b6fe | [
"MIT"
] | null | null | null | #include <boost/optional.hpp>
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <cmath>
using boost::optional;
optional<int> get_even_random_number()
{
int i = std::rand();
return (i % 2 == 0) ? i : optional<int>{};
}
int main()
{
std::srand(static_cast<unsigned int>(std::time(0)));
optional<i... | 20.190476 | 59 | 0.643868 | KwangjoJeong |
93b949fb200e8a8e95e1c5aa9594e38302f71a5b | 1,891 | cpp | C++ | power-efficiency-benchmarks/hough_circle.cpp | sbsiewertcsu/CISA-software-benchmarks | a05f0d138dd0212547313b98abd15da7c86db362 | [
"MIT"
] | null | null | null | power-efficiency-benchmarks/hough_circle.cpp | sbsiewertcsu/CISA-software-benchmarks | a05f0d138dd0212547313b98abd15da7c86db362 | [
"MIT"
] | null | null | null | power-efficiency-benchmarks/hough_circle.cpp | sbsiewertcsu/CISA-software-benchmarks | a05f0d138dd0212547313b98abd15da7c86db362 | [
"MIT"
] | null | null | null | #include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
#include <iostream>
#include <time.h>
using namespace cv;
/** @function main */
int main(int argc, char** argv)
{
Mat src, src_gray;
struct timespec begin, end;
int thread_count=4;
char key='x'... | 25.90411 | 125 | 0.64146 | sbsiewertcsu |
93bb5f78a9687348f8327fbc162b539060e17163 | 1,210 | hpp | C++ | include/utility/overload_order.hpp | rogiervd/utility | 10a3f45ee5bdedd4bbe6fca973b5bb44e142c80f | [
"Apache-2.0"
] | null | null | null | include/utility/overload_order.hpp | rogiervd/utility | 10a3f45ee5bdedd4bbe6fca973b5bb44e142c80f | [
"Apache-2.0"
] | null | null | null | include/utility/overload_order.hpp | rogiervd/utility | 10a3f45ee5bdedd4bbe6fca973b5bb44e142c80f | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 Rogier van Dalen.
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, softwar... | 31.842105 | 78 | 0.759504 | rogiervd |
93bebe815ee72484e05bebb107d0ec8e01e081af | 435 | hpp | C++ | RayCharles/Camera.hpp | CoderGirl42/RayTracer | 4e370864ec6b9c02ea030a9cbe4354b2d55f3aba | [
"MIT"
] | null | null | null | RayCharles/Camera.hpp | CoderGirl42/RayTracer | 4e370864ec6b9c02ea030a9cbe4354b2d55f3aba | [
"MIT"
] | null | null | null | RayCharles/Camera.hpp | CoderGirl42/RayTracer | 4e370864ec6b9c02ea030a9cbe4354b2d55f3aba | [
"MIT"
] | null | null | null | #pragma once
#include "Ray.hpp"
class Camera
{
public:
Camera() {
BottomLeftCorner = Vec3(-2.0, -1.0, -1.0);
Horizontal = Vec3(4.0, 0.0, 0.0);
Vertical = Vec3(0.0, 2.0, 0.0);
Origin = Vec3(0.0, 0.0, 0.0);
}
inline Ray GetRay(const real u, const real v) const {
return Ray(Origin, BottomLeftCorner + u * ... | 18.125 | 80 | 0.641379 | CoderGirl42 |
93c5e295e55a446bb845dc9df437c11d36579a81 | 9,602 | cpp | C++ | lib/Transforms/Optimizations/PropagateConstWithDiffShape.cpp | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 450 | 2018-08-03T08:17:03.000Z | 2022-03-17T17:21:06.000Z | lib/Transforms/Optimizations/PropagateConstWithDiffShape.cpp | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 104 | 2018-08-13T07:31:50.000Z | 2021-08-24T11:24:40.000Z | lib/Transforms/Optimizations/PropagateConstWithDiffShape.cpp | LiuLeif/onnc | 3f69e46172a9c33cc04541ff7fd78d5d7b6bdbba | [
"BSD-3-Clause"
] | 100 | 2018-08-12T04:27:39.000Z | 2022-03-11T04:17:42.000Z | //===- PropagateConstWithDiffShape.cpp ------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <onnc/Core/PassSupport.h>
#include <onnc/IR/ComputeOperator.... | 36.789272 | 105 | 0.645491 | LiuLeif |
93c7998ff1486648560755e9e85a777bffd46822 | 652 | cpp | C++ | Solutions/(1) Brick Game.cpp | BenSuth/Online-Judge-Solutions | d137d9482586160a27089a38963a8864af02d6ec | [
"MIT"
] | null | null | null | Solutions/(1) Brick Game.cpp | BenSuth/Online-Judge-Solutions | d137d9482586160a27089a38963a8864af02d6ec | [
"MIT"
] | null | null | null | Solutions/(1) Brick Game.cpp | BenSuth/Online-Judge-Solutions | d137d9482586160a27089a38963a8864af02d6ec | [
"MIT"
] | null | null | null | /*
UVA 11875 Brick Game
Ben Sutherland
*/
#include <iostream>
#include <algorithm>
using std::cin, std::cout, std::endl, std::sort;
int main(void)
{
/* Get test cases */
int testCase;
cin >> testCase;
int size // size of team
for (int c = 1; c <= testCase; c++)
{
cin >> size; // get ... | 21.032258 | 78 | 0.546012 | BenSuth |
93c969b285dbf33576ec921997035054d1bf94f7 | 3,489 | cpp | C++ | srcAmiga/modeler/statistics_class.cpp | privatosan/RayStorm | 17e27259a8a1d6b2fcfa16886c6e4cdd81be8cfa | [
"MIT"
] | 2 | 2016-04-03T23:57:54.000Z | 2019-12-05T17:50:37.000Z | srcAmiga/modeler/statistics_class.cpp | privatosan/RayStorm | 17e27259a8a1d6b2fcfa16886c6e4cdd81be8cfa | [
"MIT"
] | null | null | null | srcAmiga/modeler/statistics_class.cpp | privatosan/RayStorm | 17e27259a8a1d6b2fcfa16886c6e4cdd81be8cfa | [
"MIT"
] | 2 | 2015-06-20T19:22:47.000Z | 2021-11-15T15:22:14.000Z | /***************
* PROGRAM: Modeler
* NAME: statistics_class.cpp
* DESCRIPTION: class for statistics window
* AUTHORS: Andreas Heumann
* HISTORY:
* DATE NAME COMMENT
* 05.12.96 ah initial release
***************/
#include <string.h>
#include <stdio.h>
#ifndef TYPEDEFS_H
#include "typede... | 23.89726 | 101 | 0.693895 | privatosan |
93c9b3eaeed90773807acc4b24466ec8705f745e | 5,124 | hpp | C++ | include/normal_iterator.hpp | ryo-manba/ft_containers | 7e4ff6f14f80fdc14b972585065b1534d6c6d287 | [
"MIT"
] | null | null | null | include/normal_iterator.hpp | ryo-manba/ft_containers | 7e4ff6f14f80fdc14b972585065b1534d6c6d287 | [
"MIT"
] | 25 | 2022-02-25T15:54:34.000Z | 2022-03-31T07:35:31.000Z | include/normal_iterator.hpp | ryo-manba/ft_containers | 7e4ff6f14f80fdc14b972585065b1534d6c6d287 | [
"MIT"
] | null | null | null | #ifndef NORMAL_ITERATOR_HPP
#define NORMAL_ITERATOR_HPP
#include <iterator>
#include "iterator_traits.hpp"
namespace ft
{
template <typename Iterator>
class normal_iterator : public std::iterator<std::random_access_iterator_tag, Iterator>
{
protected:
Iterator current_;
typedef ft::iterator_traits<Iterator> ... | 23.18552 | 87 | 0.654762 | ryo-manba |
93c9eb5ee053b059e792d4d542de3b1026df3801 | 946 | hpp | C++ | src/Edge2.hpp | nitrocaster/eagleview | 37bb831c8db04fe408632d92434971bf9b7eaa30 | [
"MIT"
] | 10 | 2019-12-11T13:14:01.000Z | 2021-08-06T19:40:12.000Z | src/Edge2.hpp | nitrocaster/eagleview | 37bb831c8db04fe408632d92434971bf9b7eaa30 | [
"MIT"
] | 2 | 2021-06-27T14:58:43.000Z | 2021-10-31T10:43:47.000Z | src/Edge2.hpp | nitrocaster/eagleview | 37bb831c8db04fe408632d92434971bf9b7eaa30 | [
"MIT"
] | 2 | 2020-01-16T00:03:25.000Z | 2021-10-20T09:09:02.000Z | // MIT License
// Copyright (c) 2019 Pavel Kovalenko
#pragma once
#include "Common.hpp"
#include "Vector2.hpp"
template <typename Scalar>
struct Edge2T
{
using Vec2 = Vector2T<Scalar>;
Vec2 A, B;
Edge2T() = default;
constexpr Edge2T(Vec2 a, Vec2 b) :
A(a),
B(b)
{}
cons... | 18.54902 | 52 | 0.58351 | nitrocaster |
93cb96c7b8d96247f3783ec7005be48424818ad2 | 3,036 | cpp | C++ | Engine/src/core/Math.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | 2 | 2015-04-21T05:36:12.000Z | 2017-04-16T19:31:26.000Z | Engine/src/core/Math.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | null | null | null | Engine/src/core/Math.cpp | katoun/kg_engine | fdcc6ec01b191d07cedf7a8d6c274166e25401a8 | [
"Unlicense"
] | null | null | null | /*
-----------------------------------------------------------------------------
KG game engine (http://katoun.github.com/kg_engine) is made available under the MIT License.
Copyright (c) 2006-2013 Catalin Alexandru Nastase
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software ... | 17.152542 | 92 | 0.645586 | katoun |
93cfc010e1115c7d03741178a594ff0fffa8f9fd | 3,854 | cpp | C++ | src/core/channel.cpp | dulatf/ihixs | 316d5cdf3e88f2ba69cc43668d66b4f69ff833ce | [
"MIT"
] | 1 | 2019-02-08T13:50:24.000Z | 2019-02-08T13:50:24.000Z | src/core/channel.cpp | dulatf/ihixs | 316d5cdf3e88f2ba69cc43668d66b4f69ff833ce | [
"MIT"
] | null | null | null | src/core/channel.cpp | dulatf/ihixs | 316d5cdf3e88f2ba69cc43668d66b4f69ff833ce | [
"MIT"
] | null | null | null | // Copyright 2015 ihixs team
#include<string>
#include<vector>
#include "src/core/channel.h"
ostream& operator<<(ostream& stream, const Channel& ch) {
for (int i = 0; i < ch.NumberOfTerms(); i++)
stream << *(ch._terms[i]);
return stream;
}
Channel::Channel(const string& name) {
_channel_name = ... | 25.693333 | 73 | 0.560197 | dulatf |
93d09da8274977b4cd149c3dadcd92ab5fb4c6a2 | 15,869 | hpp | C++ | include/jkl/util/type_traits.hpp | feverzsj/jkl | 1ea32ff2495120cc901d29a9c351154ca1f565e4 | [
"MIT"
] | null | null | null | include/jkl/util/type_traits.hpp | feverzsj/jkl | 1ea32ff2495120cc901d29a9c351154ca1f565e4 | [
"MIT"
] | null | null | null | include/jkl/util/type_traits.hpp | feverzsj/jkl | 1ea32ff2495120cc901d29a9c351154ca1f565e4 | [
"MIT"
] | null | null | null | #pragma once
#include <jkl/config.hpp>
#include <boost/numeric/conversion/cast.hpp>
#include <boost/numeric/conversion/is_subranged.hpp>
#include <array>
#include <memory>
#include <optional>
#include <type_traits>
namespace jkl{
// In Most Cases:
// for type traits, apply std::remove_cv_t on the tested type;
//... | 32.719588 | 130 | 0.630979 | feverzsj |
93d39bd49b9ce9b479fd2196cf07898bcb1fdc20 | 741 | cpp | C++ | src/main.cpp | hnkb/sima | eb06742a2276f69a91084c82134a2a5e4d03a5a4 | [
"MIT"
] | null | null | null | src/main.cpp | hnkb/sima | eb06742a2276f69a91084c82134a2a5e4d03a5a4 | [
"MIT"
] | 18 | 2016-08-31T07:42:33.000Z | 2016-09-01T19:38:06.000Z | src/main.cpp | hnkb/sima | eb06742a2276f69a91084c82134a2a5e4d03a5a4 | [
"MIT"
] | null | null | null |
#include "stdafx.h"
#include "ui/application.h"
#pragma comment(lib, "Comctl32.lib")
#pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
int APIENTRY wWinMain(HINST... | 26.464286 | 196 | 0.68556 | hnkb |
93d445e9eca5ca0aeae632adff13010ca568465f | 2,270 | cpp | C++ | src/App.cpp | Solobrosco/OpenGL-app | ff7d491cc71ae1903e2483b06708abb83146fd48 | [
"MIT"
] | null | null | null | src/App.cpp | Solobrosco/OpenGL-app | ff7d491cc71ae1903e2483b06708abb83146fd48 | [
"MIT"
] | null | null | null | src/App.cpp | Solobrosco/OpenGL-app | ff7d491cc71ae1903e2483b06708abb83146fd48 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <App.h>
#include <Circle.h>
static App* singleton;
void doSomething(){
singleton->animating = !singleton->animating;
}
void circlePath(){
singleton->circle = !singleton->circle;
}
App::App(int argc, char** argv, int width, int height, const char* title): Glu... | 19.237288 | 117 | 0.489868 | Solobrosco |
93dc8d0bcc30bf068f6ecfe90d683b2c6bb447ce | 2,577 | cpp | C++ | code/util.cpp | akirmse/mountains | a3f119a245ee9f19b1a66ef0c8e7ea002f846ef7 | [
"MIT"
] | 18 | 2017-07-11T17:55:45.000Z | 2022-03-11T21:37:26.000Z | code/util.cpp | oargudo/mountains | b295281f81ed93163b71f5caf7465b0a91df8bb2 | [
"MIT"
] | 1 | 2019-12-16T23:12:09.000Z | 2019-12-17T11:09:48.000Z | code/util.cpp | oargudo/mountains | b295281f81ed93163b71f5caf7465b0a91df8bb2 | [
"MIT"
] | 3 | 2020-04-05T12:13:12.000Z | 2021-03-19T13:29:31.000Z | /*
* MIT License
*
* Copyright (c) 2017 Andrew Kirmse
*
* 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, ... | 26.56701 | 81 | 0.694994 | akirmse |
93e58d50d4aaf5ebcb8e322289fe31291a9487b7 | 1,743 | cc | C++ | src/c++/libos/common/wait.cc | zhangwen0411/demikernel | 2e4f69ee31da25f2ee7e855a85643863e15cc10f | [
"MIT"
] | null | null | null | src/c++/libos/common/wait.cc | zhangwen0411/demikernel | 2e4f69ee31da25f2ee7e855a85643863e15cc10f | [
"MIT"
] | null | null | null | src/c++/libos/common/wait.cc | zhangwen0411/demikernel | 2e4f69ee31da25f2ee7e855a85643863e15cc10f | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include <dmtr/wait.h>
#include <boost/chrono.hpp>
#include <cerrno>
#include <dmtr/annot.h>
#include <dmtr/fail.h>
#include <dmtr/latency.h>
#include <dmtr/libos.h>
#define DMTR_PROFILE 1
#if DMTR_PROFILE
typedef std::unique_ptr<dmtr_latenc... | 27.666667 | 96 | 0.599541 | zhangwen0411 |
93e63462e26459d32f39c7c96a6448e8e50d3b0b | 383 | cpp | C++ | main.cpp | sonuKumar03/data-structure-and-algorithm | d1fd3cad494cbcc91ce7ff37ec611752369b50b6 | [
"MIT"
] | null | null | null | main.cpp | sonuKumar03/data-structure-and-algorithm | d1fd3cad494cbcc91ce7ff37ec611752369b50b6 | [
"MIT"
] | null | null | null | main.cpp | sonuKumar03/data-structure-and-algorithm | d1fd3cad494cbcc91ce7ff37ec611752369b50b6 | [
"MIT"
] | null | null | null | #include <iostream>
#include<vector>
using namespace std;
typedef long long ll;
int largest(int *ar ,int i,int j){
int max ;
if(i==j){
return ar[i];
}
else{
max = largest(ar,i+1,j);
if(ar[i]>=max){
return ar[i];
}
return max;
}
}
int main(){
int n ;
cin>>n;
int *ar = new int[n];
for(int i =0;i<n... | 12.354839 | 34 | 0.561358 | sonuKumar03 |
93e9e347488f08940b02934835cb8aeaa1193219 | 1,535 | hpp | C++ | libff/algebra/curves/bw6_761/bw6_761_pp.hpp | clearmatics/libff | 5f9a4bdd9bea61036b57cfe972354fc97c497457 | [
"MIT"
] | 1 | 2021-03-23T15:22:05.000Z | 2021-03-23T15:22:05.000Z | libff/algebra/curves/bw6_761/bw6_761_pp.hpp | clearmatics/libff | 5f9a4bdd9bea61036b57cfe972354fc97c497457 | [
"MIT"
] | 46 | 2019-08-22T07:48:22.000Z | 2022-03-24T16:57:18.000Z | libff/algebra/curves/bw6_761/bw6_761_pp.hpp | clearmatics/libff | 5f9a4bdd9bea61036b57cfe972354fc97c497457 | [
"MIT"
] | 1 | 2021-08-09T11:17:54.000Z | 2021-08-09T11:17:54.000Z | #ifndef BW6_761_PP_HPP_
#define BW6_761_PP_HPP_
#include <libff/algebra/curves/bw6_761/bw6_761_g1.hpp>
#include <libff/algebra/curves/bw6_761/bw6_761_g2.hpp>
#include <libff/algebra/curves/bw6_761/bw6_761_init.hpp>
#include <libff/algebra/curves/bw6_761/bw6_761_pairing.hpp>
#include <libff/algebra/curves/public_params... | 32.659574 | 76 | 0.767427 | clearmatics |
93ebffff00e547bc90efc88a2296cf61bf69f191 | 2,198 | cpp | C++ | CodigosReferencia/LCA.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | CodigosReferencia/LCA.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | CodigosReferencia/LCA.cpp | CaDe27/Co-digos | 9eea1dbf6ed06fd115391328c0a2481029c83fc0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
const int maxN = 100002, LogN = 18;
struct node{
int level;
}nodes[maxN+1];
vector<int> adj[maxN+1];
//=================== LCA
//asumiento que los nodos van de 1 a n
// si van de 0 a n-1 cambia el create LCA Table en el for nd = 1; nd < n
//siempre asigna a l... | 24.153846 | 87 | 0.55323 | CaDe27 |
93eef30e8a818ba8c7bdf587dbc971c3f312e46e | 5,060 | cpp | C++ | src/main.cpp | mpromonet/qtv4l2 | 97bcef2754934d431a332e0b1c3d73bc4119caf2 | [
"Unlicense"
] | 1 | 2017-06-05T05:57:21.000Z | 2017-06-05T05:57:21.000Z | src/main.cpp | mpromonet/qtv4l2 | 97bcef2754934d431a332e0b1c3d73bc4119caf2 | [
"Unlicense"
] | null | null | null | src/main.cpp | mpromonet/qtv4l2 | 97bcef2754934d431a332e0b1c3d73bc4119caf2 | [
"Unlicense"
] | 6 | 2016-08-04T13:22:06.000Z | 2021-10-18T16:37:35.000Z | /* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** -------------------------------------------------------------... | 34.657534 | 133 | 0.537945 | mpromonet |
93ef9693d40331421143149ce3e2fe72810edeaf | 24,716 | cpp | C++ | Iron/strategy/zerglingRush.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | Iron/strategy/zerglingRush.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | Iron/strategy/zerglingRush.cpp | biug/titan | aacb4e2dc4d55601abd45cb8321d8e5160851eec | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
//
// This file is part of Iron's source files.
// Iron is free software, licensed under the MIT/X11 License.
// A copy of the license is provided with the library in the LICENSE file.
// Copyright (c) 2016, 2017, Igor Dimitrijevic
//
/////////... | 33.265141 | 143 | 0.60479 | biug |
93f257e8bd075c8944fb0e2e64d2bb40a9006732 | 4,103 | hpp | C++ | include/axl.math/mat/transform3.hpp | Defalt8/axl.math | 49c1c239e7512f2d7493fa36ba0907d5e512378f | [
"MIT"
] | 3 | 2020-11-20T08:29:26.000Z | 2021-08-24T18:03:53.000Z | include/axl.math/mat/transform3.hpp | Defalt8/axl.math | 49c1c239e7512f2d7493fa36ba0907d5e512378f | [
"MIT"
] | null | null | null | include/axl.math/mat/transform3.hpp | Defalt8/axl.math | 49c1c239e7512f2d7493fa36ba0907d5e512378f | [
"MIT"
] | null | null | null | #pragma once
#include "../lib.hpp"
#include "../rules.hpp"
#include "Mat3f.hpp"
#include "Mat3d.hpp"
namespace axl {
namespace math {
namespace Transform3 {
AXLMATHAPI Mat3f scale(const axl::math::Vec2f& scale);
AXLMATHAPI Mat3f translate(const axl::math::Vec2f& translate);
AXLMATHAPI Mat3f rotate(float t... | 87.297872 | 169 | 0.776018 | Defalt8 |
93f516c84bda26463ae4570418167cadaf767a4a | 1,729 | cpp | C++ | 2.Constructor&Destructor/i-Design/Q5/Event.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 26 | 2021-03-17T03:15:22.000Z | 2021-06-09T13:29:41.000Z | 2.Constructor&Destructor/i-Design/Q5/Event.cpp | Servatom/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 6 | 2021-03-16T19:04:05.000Z | 2021-06-03T13:41:04.000Z | 2.Constructor&Destructor/i-Design/Q5/Event.cpp | Concept-Team/e-box-UTA018 | a6caf487c9f27a5ca30a00847ed49a163049f67e | [
"MIT"
] | 42 | 2021-03-17T03:16:22.000Z | 2021-06-14T21:11:20.000Z | #include <iostream>
#include <string>
using namespace std;
class Event{
private:
string name;
string details;
string type;
string organiser;
int attendeesCount;
double projectedExpenses;
public:
Event(){}
Event(string name, string details, s... | 24.013889 | 120 | 0.545402 | Concept-Team |
93ffc7251c7a85a42a680b4f9c7a5223965a13b5 | 1,367 | hpp | C++ | include/cutempl/metafunctions/zip.hpp | dhollman/cutempl | 5bb6cae4423f0456c21e50454bcba210a94226b3 | [
"MIT"
] | null | null | null | include/cutempl/metafunctions/zip.hpp | dhollman/cutempl | 5bb6cae4423f0456c21e50454bcba210a94226b3 | [
"MIT"
] | null | null | null | include/cutempl/metafunctions/zip.hpp | dhollman/cutempl | 5bb6cae4423f0456c21e50454bcba210a94226b3 | [
"MIT"
] | null | null | null | #pragma once
#include "cutempl/cutempl_fwd.hpp"
#include "cutempl/containers/type_list.hpp"
#include "cutempl/metafunctions/apply.hpp"
#include "cutempl/metafunctions/compose.hpp"
#include "cutempl/metafunctions/curry.hpp"
#include "cutempl/metafunctions/invoke.hpp"
#include "cutempl/metafunctions/just.hpp"
#include... | 29.717391 | 79 | 0.704462 | dhollman |
9e026ac73c10e9f22f49c63366310c5feb2f42e9 | 2,919 | cpp | C++ | ImgCompression/src/MainWindow.cpp | pptaszni/PhdSnippets | c27f543cdb6f380b38c953dbe5d2a56c277bd83e | [
"MIT"
] | null | null | null | ImgCompression/src/MainWindow.cpp | pptaszni/PhdSnippets | c27f543cdb6f380b38c953dbe5d2a56c277bd83e | [
"MIT"
] | null | null | null | ImgCompression/src/MainWindow.cpp | pptaszni/PhdSnippets | c27f543cdb6f380b38c953dbe5d2a56c277bd83e | [
"MIT"
] | null | null | null | /**
* /author Pawel Ptasznik
*/
#include "MainWindow.hpp"
#include "ui_mainwindow.h"
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <algorithm>
#include <memory>
#include <QDebug>
#include <QGraphicsItem>
#include <QImage>
#include <QMainWindow>
#include <QObjec... | 31.053191 | 113 | 0.707434 | pptaszni |
9e03d3f2914ffb9d341754e57ba997ea7a4e5a8d | 841 | hpp | C++ | include/Editor/Viewport.hpp | obscurelyme/CoffeeGL | a36645d2131331aa0138e79599cb3b8bb0c0f99e | [
"MIT"
] | null | null | null | include/Editor/Viewport.hpp | obscurelyme/CoffeeGL | a36645d2131331aa0138e79599cb3b8bb0c0f99e | [
"MIT"
] | null | null | null | include/Editor/Viewport.hpp | obscurelyme/CoffeeGL | a36645d2131331aa0138e79599cb3b8bb0c0f99e | [
"MIT"
] | null | null | null | #ifndef _console_viewport_hpp
#define _console_viewport_hpp
#include <imgui.h>
namespace Editor {
class Viewport {
public:
static void Render() {
Size();
// Position();
ImGui::Begin("viewport", nullptr);
// Display rendered texture here...
ImGui::End();
}
static void Size() {
ImVec2 si... | 22.131579 | 60 | 0.651605 | obscurelyme |
9e0bb5f4c4e2f13e74c449faf9a2b9227d082562 | 11,158 | cpp | C++ | src/v1/core_parser_integration_test.cpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 2 | 2021-04-15T20:02:37.000Z | 2021-04-17T18:18:50.000Z | src/v1/core_parser_integration_test.cpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 1 | 2019-10-07T10:41:52.000Z | 2019-10-07T10:41:52.000Z | src/v1/core_parser_integration_test.cpp | mohitmv/aparse | 34a6811f9a3d4f1c5dd21ed874b14e59e6725746 | [
"MIT"
] | 1 | 2020-05-05T16:52:20.000Z | 2020-05-05T16:52:20.000Z | // Copyright: 2015 Mohit Saini
// Author: Mohit Saini (mohitsaini1196@gmail.com)
#include <iostream>
#include "quick/debug.hpp"
#include "gtest/gtest.h"
#include "samples/sample_aparse_grammars.hpp"
#include "aparse/aparse_machine_builder_v2.hpp"
#include "aparse/core_parser.hpp"
#include "aparse/error.hpp"
#include... | 34.122324 | 80 | 0.364313 | mohitmv |
9e118d40ee50e94c80a06497612be6d6dca507b8 | 5,309 | cpp | C++ | p10_push.cpp | guapisolo/c2021 | 939f14ab535d5d2d67b5fe749d3ef2423c550d01 | [
"MIT"
] | null | null | null | p10_push.cpp | guapisolo/c2021 | 939f14ab535d5d2d67b5fe749d3ef2423c550d01 | [
"MIT"
] | null | null | null | p10_push.cpp | guapisolo/c2021 | 939f14ab535d5d2d67b5fe749d3ef2423c550d01 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <conio.h>
#include <time.h>
#include <windows.h>
#include <queue>
#include <algorithm>
#define FG FOREGROUND_GREEN
#define FR FOREGROUND_RED
#define FB FOREGROUND_BLUE
#define FI FOREGROUND_INTENSITY
#define dd double
#define ll long long
#define ull ... | 27.795812 | 102 | 0.525899 | guapisolo |
9e1463db31c2d5156365560085a36abee1fac1a1 | 440 | inl | C++ | include/flecs/addons/cpp/mixins/doc/entity_builder.inl | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 18 | 2021-09-17T16:41:14.000Z | 2022-02-01T15:22:20.000Z | include/flecs/addons/cpp/mixins/doc/entity_builder.inl | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 36 | 2021-09-21T10:22:16.000Z | 2022-01-22T10:25:11.000Z | include/flecs/addons/cpp/mixins/doc/entity_builder.inl | teh-cmc/flecs | ef6c366bae1142fa501d505ccb28d3e23d27ebc2 | [
"MIT"
] | 6 | 2021-09-26T11:06:32.000Z | 2022-01-21T15:07:05.000Z |
Self& set_doc_name(const char *name) {
ecs_doc_set_name(m_world, m_id, name);
return to_base();
}
Self& set_doc_brief(const char *brief) {
ecs_doc_set_brief(m_world, m_id, brief);
return to_base();
}
Self& set_doc_detail(const char *detail) {
ecs_doc_set_detail(m_world, m_id, detail);
return ... | 20.952381 | 46 | 0.690909 | teh-cmc |
9e155faa10db457169506ddac0b282493ab80644 | 1,075 | cpp | C++ | tests/sort.cpp | Dreyri/hera | c043df47bd0c8315cfdfc39a41ede8f3785b1a5d | [
"MIT"
] | 5 | 2019-09-26T07:19:03.000Z | 2020-12-13T17:40:05.000Z | tests/sort.cpp | Dreyri/hera | c043df47bd0c8315cfdfc39a41ede8f3785b1a5d | [
"MIT"
] | 1 | 2020-01-17T16:51:26.000Z | 2020-01-20T17:27:35.000Z | tests/sort.cpp | Dreyri/hera | c043df47bd0c8315cfdfc39a41ede8f3785b1a5d | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include "hera/algorithm/sort.hpp"
TEST_CASE("sort")
{
hera::type_list<uint32_t, uint64_t, uint16_t, uint8_t> types{};
auto sorted = hera::sort(types, [](auto lhs, auto rhs) {
using lhs_type = typename decltype(lhs)::type;
using rhs_type = typename decltype(rhs)::t... | 33.59375 | 80 | 0.6 | Dreyri |
9e1bba1631b31b68d037b176d3c2576a2ea13887 | 1,106 | cxx | C++ | src/editors.cxx | FragmentedCurve/jay | 7b23162eec23f05a426410c8d0def563997016b2 | [
"MIT"
] | null | null | null | src/editors.cxx | FragmentedCurve/jay | 7b23162eec23f05a426410c8d0def563997016b2 | [
"MIT"
] | null | null | null | src/editors.cxx | FragmentedCurve/jay | 7b23162eec23f05a426410c8d0def563997016b2 | [
"MIT"
] | null | null | null | /*
* (c) Oleg Puchinin 2006
* graycardinalster@gmail.com
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <gclib.h>
#include <sys/wait.h>
#include <mod.h>
#include <head.h>
#include <dbg.h>
#define TMP_FILE "/tmp/.silent_bob.tmp.cpp"
void try_editor ()
{
int pid;
int ... | 16.507463 | 56 | 0.574141 | FragmentedCurve |
9e3142d02a5b48c16bdb26e1bfb6ea2cb99de3ab | 2,743 | cpp | C++ | csapex_point_cloud/src/conversion/pointcloud_to_image.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_point_cloud/src/conversion/pointcloud_to_image.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-14T19:53:30.000Z | 2021-02-14T19:53:30.000Z | csapex_point_cloud/src/conversion/pointcloud_to_image.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z |
/// PROJECT
#include <csapex/model/node.h>
#include <csapex/model/node_modifier.h>
#include <csapex/msg/io.h>
#include <csapex/param/parameter_factory.h>
#include <csapex/utility/register_apex_plugin.h>
#include <csapex_core_plugins/timestamp_message.h>
#include <csapex_opencv/cv_mat_message.h>
#include <csapex_point_... | 28.572917 | 174 | 0.694495 | AdrianZw |
9e3d2c3a985b59896aa5235d91c8d7e64298f15c | 2,716 | hpp | C++ | code/commands/browser-commands.hpp | detrax/gobby | 21160017e1f7ffe1123d80acadac88a22bd7f838 | [
"ISC"
] | 542 | 2015-01-03T21:43:38.000Z | 2022-03-26T11:43:54.000Z | code/commands/browser-commands.hpp | detrax/gobby | 21160017e1f7ffe1123d80acadac88a22bd7f838 | [
"ISC"
] | 116 | 2015-01-14T08:08:43.000Z | 2021-08-03T19:24:46.000Z | code/commands/browser-commands.hpp | detrax/gobby | 21160017e1f7ffe1123d80acadac88a22bd7f838 | [
"ISC"
] | 60 | 2015-01-03T21:43:42.000Z | 2022-03-19T12:04:52.000Z | /* Gobby - GTK-based collaborative text editor
* Copyright (C) 2008-2014 Armin Burgmeier <armin@arbur.net>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in al... | 32.333333 | 75 | 0.725331 | detrax |
9e4632758bdab07a8a3d54084bf8ff4f675a98ad | 12,377 | hpp | C++ | include/meejson/object.hpp | tomvanwoow/meejson | a478b646306f0323c53e2ad1ce33a1e4ee6d1451 | [
"MIT"
] | null | null | null | include/meejson/object.hpp | tomvanwoow/meejson | a478b646306f0323c53e2ad1ce33a1e4ee6d1451 | [
"MIT"
] | null | null | null | include/meejson/object.hpp | tomvanwoow/meejson | a478b646306f0323c53e2ad1ce33a1e4ee6d1451 | [
"MIT"
] | null | null | null | #ifndef OBJECT_JSON_HPP
#define OBJECT_JSON_HPP
#include "box.hpp"
#include <iostream>
#include <unordered_map>
#include <algorithm>
#include <ranges>
namespace mee::json {
namespace detail {
template <class T>
struct ptr_wrapper {
explicit ptr_wrapper(const T& val) : m_ptr(val) {}
auto operator*() noexcept... | 31.817481 | 136 | 0.623414 | tomvanwoow |
9e4b51e25dd7269d59b56820251ada632c8ff02b | 5,622 | hpp | C++ | CQEnum_InputSrc.hpp | DeanRoddey/CQEnum | 03cbda1cfca9a74d82ddba467a7702eae62a039a | [
"MIT"
] | null | null | null | CQEnum_InputSrc.hpp | DeanRoddey/CQEnum | 03cbda1cfca9a74d82ddba467a7702eae62a039a | [
"MIT"
] | null | null | null | CQEnum_InputSrc.hpp | DeanRoddey/CQEnum | 03cbda1cfca9a74d82ddba467a7702eae62a039a | [
"MIT"
] | null | null | null | #pragma once
//
// This file defines the input source we use for parsing the .cqenum
// file. It's the usual thing, in that it wraps an input stream,
// tracks current location (for error output), and provides lexical
// type parsing to break out tokens based on the known separator
// characters and such.
//
// ... | 28.393939 | 83 | 0.55603 | DeanRoddey |
eafc6cd9d9a7a0cbec9f71675c62d260dba05485 | 1,127 | cpp | C++ | src/example.cpp | cs128-2021c/yahoo-finance | 27edad648da168a3ad19615461f8b8ff362c617a | [
"MIT"
] | 21 | 2019-04-28T08:20:30.000Z | 2022-02-07T03:47:20.000Z | src/example.cpp | cs128-2021c/yahoo-finance | 27edad648da168a3ad19615461f8b8ff362c617a | [
"MIT"
] | 3 | 2020-12-13T16:21:34.000Z | 2021-02-09T20:09:22.000Z | src/example.cpp | cs128-2021c/yahoo-finance | 27edad648da168a3ad19615461f8b8ff362c617a | [
"MIT"
] | 13 | 2019-10-31T01:43:03.000Z | 2022-02-07T03:47:23.000Z | #include "quote.hpp"
#include <iostream>
int main() {
// S&P 500
Quote *snp500 = new Quote("^GSPC");
// Get the historical spots from Yahoo Finance
snp500->getHistoricalSpots("2017-12-01", "2017-12-31", "1d");
// Print the spots
snp500->printSpots();
// Print a spot
try {
Sp... | 27.487805 | 80 | 0.592724 | cs128-2021c |
eafeb6864824b349bf6f19a9bdfa7927a3511063 | 2,592 | cpp | C++ | mvm-reversed/server/tf/bot/behavior/engineer/mvm_engineer/tf_bot_mvm_engineer_teleport_spawn.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 7 | 2021-03-02T02:27:18.000Z | 2022-02-18T00:56:28.000Z | mvm-reversed/server/tf/bot/behavior/engineer/mvm_engineer/tf_bot_mvm_engineer_teleport_spawn.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 3 | 2021-11-29T15:53:02.000Z | 2022-02-21T13:09:22.000Z | mvm-reversed/server/tf/bot/behavior/engineer/mvm_engineer/tf_bot_mvm_engineer_teleport_spawn.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 5 | 2021-03-04T20:26:11.000Z | 2021-11-26T07:09:24.000Z | /* reverse engineering by sigsegv
* based on TF2 version 20151007a
* server/tf/bot/behavior/engineer/mvm_engineer/tf_bot_mvm_engineer_teleport_spawn.cpp
* used in MvM: TODO
*/
CTFBotMvMEngineerTeleportSpawn::CTFBotMvMEngineerTeleportSpawn(CBaseTFBotHintEntity *hint, bool non_silent)
{
this->m_hintEntity... | 29.793103 | 108 | 0.716049 | fugueinheels |
d803a20cc5142b9f16d350fc1d92b59338aa0ce9 | 1,788 | cpp | C++ | LG/P3919.cpp | ImChinaNB/code | 9c6940093cb480bd381c17557db87078e0efd740 | [
"MIT"
] | null | null | null | LG/P3919.cpp | ImChinaNB/code | 9c6940093cb480bd381c17557db87078e0efd740 | [
"MIT"
] | null | null | null | LG/P3919.cpp | ImChinaNB/code | 9c6940093cb480bd381c17557db87078e0efd740 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
auto _r0 = ([]{ return ios :: sync_with_stdio(0), 0; })();
const int N = 1e6 + 5;
int n, m, a_[N], rid[N];
namespace SegTree {
#define ig Segment &l=a[x.l], &r=a[x.r]
#define igg Segment &l=a[y.l], &r=a[y.r]
struct Segment {
int L, R, mid;
int l, r; //... | 21.804878 | 58 | 0.460291 | ImChinaNB |
d803efb2c96e3f0f6a703d85c432dfb2d1eca817 | 27,238 | cpp | C++ | fallen/Editor/Source/CondTab.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 188 | 2017-05-20T03:26:33.000Z | 2022-03-10T16:58:39.000Z | fallen/Editor/Source/CondTab.cpp | jordandavidson/MuckyFoot-UrbanChaos | 00f7bda3f061bff9ecbb611d430f8f71bd557d14 | [
"MIT"
] | 7 | 2017-05-28T14:28:13.000Z | 2022-01-09T01:47:38.000Z | fallen/Editor/Source/CondTab.cpp | inco1/MuckyFoot-UrbanChaos | 81aa5cfe18ef7fe2d1b1f9911bd33a47c22d5390 | [
"MIT"
] | 43 | 2017-05-20T07:31:32.000Z | 2022-03-09T18:39:35.000Z | // CondTab.cpp
// Guy Simmons, 16th March 1998.
#include "Editor.hpp"
#include "EdCom.h"
#include "..\..\Headers\Game.h"
#include "..\..\Headers\Command.h"
//---------------------------------------------------------------
#define MAX_VIEW_LISTS 15
#define MAX_VIEW_CONDS 24
#define LISTS_X 2
#define LISTS_Y ... | 24.494604 | 117 | 0.633306 | jordandavidson |
d80579ae953cfc254f32fcbb484d36ea14fbe131 | 9,195 | hpp | C++ | src/LpmParticles.hpp | pbosler/lpmCxx | d8222d5a6a152f467b6a82751a404ea1e3716497 | [
"MIT"
] | null | null | null | src/LpmParticles.hpp | pbosler/lpmCxx | d8222d5a6a152f467b6a82751a404ea1e3716497 | [
"MIT"
] | 1 | 2018-11-27T21:02:33.000Z | 2018-11-27T21:02:33.000Z | src/LpmParticles.hpp | pbosler/lpmCxx | d8222d5a6a152f467b6a82751a404ea1e3716497 | [
"MIT"
] | null | null | null | #ifndef __LPM_PARTICLES_HPP__
#define __LPM_PARTICLES_HPP__
#include <iostream>
#include <vector>
#include <string>
#include "OutputMessage.h"
#include "Logger.h"
#include "LpmXyzVector.hpp"
#include "LpmCoords.hpp"
#include "LpmEuclideanCoords.hpp"
#include "LpmSphereCoords.hpp"
using LpmXyzVector::XyzVector;
templ... | 28.64486 | 121 | 0.588037 | pbosler |
d80ba389c55cc85f82482a88a90170e798b47710 | 1,559 | cpp | C++ | tests/juliet/testcases/CWE259_Hard_Coded_Password/CWE259_Hard_Coded_Password__w32_char_62b.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE259_Hard_Coded_Password/CWE259_Hard_Coded_Password__w32_char_62b.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2017-01-20T15:26:27.000Z | 2018-08-20T00:55:37.000Z | testcases/CWE259_Hard_Coded_Password/CWE259_Hard_Coded_Password__w32_char_62b.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE259_Hard_Coded_Password__w32_char_62b.cpp
Label Definition File: CWE259_Hard_Coded_Password__w32.label.xml
Template File: sources-sink-62b.tmpl.cpp
*/
/*
* @description
* CWE: 259 Use of Hard-coded Password
* BadSource: Use a hardcoded password
* GoodSource... | 25.145161 | 119 | 0.62925 | RanerL |
d80ff689797eb752394a687d78cb4ccc704228b8 | 2,029 | cpp | C++ | my_vulkan/descriptor_pool.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | my_vulkan/descriptor_pool.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | 3 | 2019-02-25T10:13:57.000Z | 2020-11-11T14:46:14.000Z | my_vulkan/descriptor_pool.cpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | #include "descriptor_pool.hpp"
#include "utils.hpp"
#include <boost/range/algorithm/remove_if.hpp>
namespace my_vulkan
{
descriptor_pool_t::descriptor_pool_t(
VkDevice device,
std::vector<VkDescriptorPoolSize> pool_sizes,
size_t max_num_sets
)
: _device{device}
{
auto ... | 26.697368 | 89 | 0.616067 | pixelwise |
d811ad1f6318c2ffd41b450e7bb6fea61064930e | 1,961 | cpp | C++ | c_src/common/param_decoder.cpp | schaerli/xapian-erlang-bindings | be72c73b0da254d7d21168c913f11cbf458f36e2 | [
"MIT"
] | 6 | 2015-06-28T20:14:31.000Z | 2020-10-12T21:45:45.000Z | c_src/common/param_decoder.cpp | schaerli/xapian-erlang-bindings | be72c73b0da254d7d21168c913f11cbf458f36e2 | [
"MIT"
] | 1 | 2015-08-11T08:07:14.000Z | 2015-08-11T08:07:14.000Z | c_src/common/param_decoder.cpp | schaerli/xapian-erlang-bindings | be72c73b0da254d7d21168c913f11cbf458f36e2 | [
"MIT"
] | 5 | 2016-06-02T06:22:56.000Z | 2022-01-31T16:21:42.000Z | #include <xapian.h>
#include <stdint.h>
#include <cstring>
#include <string>
#include <stdexcept>
#include "param_decoder.h"
#include "xapian_exception.h"
/* Helper used by ParamDecoder. */
#define READ_TYPE(T) (*(reinterpret_cast<T*>( move(sizeof(T)) )))
#include "xapian_config.h"
XAPIAN_ERLANG_NS_BEGIN
/**
* Co... | 19.038835 | 70 | 0.670066 | schaerli |
d81d9fecce8243d6b5ada9c2d0a800c9c4467de8 | 1,426 | hpp | C++ | libs/unordered/test/helpers/input_iterator.hpp | coxlab/boost_patched_for_objcplusplus | 5316cd54bbd03994ae785185efcde62b57fd5e93 | [
"BSL-1.0"
] | 1 | 2017-07-31T02:19:48.000Z | 2017-07-31T02:19:48.000Z | libs/unordered/test/helpers/input_iterator.hpp | boost-cmake/vintage | dcfb7da3177134eddaee6789d6f582259cb0d6ee | [
"BSL-1.0"
] | null | null | null | libs/unordered/test/helpers/input_iterator.hpp | boost-cmake/vintage | dcfb7da3177134eddaee6789d6f582259cb0d6ee | [
"BSL-1.0"
] | 1 | 2021-03-07T05:20:43.000Z | 2021-03-07T05:20:43.000Z |
// Copyright 2005-2009 Daniel James.
// 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)
#if !defined(BOOST_UNORDERED_TEST_HELPERS_INPUT_ITERATOR_HEADER)
#define BOOST_UNORDERED_TEST_HELPERS_INPUT_ITERATOR_HEADER
#in... | 27.960784 | 79 | 0.672511 | coxlab |
d823624837dc56a32b8d062bba080f42a493f713 | 2,042 | cpp | C++ | source/AsioExpressErrorTest/CommonExceptionTest.cpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpressErrorTest/CommonExceptionTest.cpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpressErrorTest/CommonExceptionTest.cpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | // Copyright Ross MacGregor 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)
#include "AsioExpressErrorTest/pch.hpp"
#include <iostream>
#include <boost/test/unit_test.hpp>
#incl... | 22.195652 | 61 | 0.561214 | suhao |
d82650bbcf6314477707b092385deaae6a9e24b0 | 2,057 | cpp | C++ | toonz/sources/stdfx/nothingfx.cpp | wofogen/tahoma2d | ce5a89a7b1027b2c1769accb91184a2ee6442b4d | [
"BSD-3-Clause"
] | 3,710 | 2016-03-26T00:40:48.000Z | 2022-03-31T21:35:12.000Z | toonz/sources/stdfx/nothingfx.cpp | wofogen/tahoma2d | ce5a89a7b1027b2c1769accb91184a2ee6442b4d | [
"BSD-3-Clause"
] | 4,246 | 2016-03-26T01:21:45.000Z | 2022-03-31T23:10:47.000Z | toonz/sources/stdfx/nothingfx.cpp | wofogen/tahoma2d | ce5a89a7b1027b2c1769accb91184a2ee6442b4d | [
"BSD-3-Clause"
] | 633 | 2016-03-26T00:42:25.000Z | 2022-03-17T02:55:13.000Z | #include "texception.h"
#include "tfxparam.h"
#include "trop.h"
#include "stdfx.h"
#include "trasterfx.h"
//-------------------------------------------------------------------
class NothingFx final : public TStandardRasterFx {
FX_PLUGIN_DECLARATION(NothingFx)
TRasterFxPort m_input;
public:
NothingFx() {
a... | 28.569444 | 80 | 0.570734 | wofogen |
d826d75da56410f53af8bd8fb975eeb6d39cf1ea | 29 | cpp | C++ | vkoo/src/st/Texture.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 129 | 2021-09-07T17:15:18.000Z | 2022-02-28T08:59:02.000Z | vkoo/src/st/Texture.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 2 | 2021-10-03T07:30:20.000Z | 2022-01-06T16:05:41.000Z | vkoo/src/st/Texture.cpp | KaiSut0/interactive-hex-meshing | 187c926610ca5617f569405c23ab5a62b189e100 | [
"MIT"
] | 11 | 2021-09-08T11:29:09.000Z | 2022-03-17T08:39:50.000Z | #include "vkoo/st/Texture.h"
| 14.5 | 28 | 0.724138 | KaiSut0 |
d82ae6b87c897c3019cd1f9a90e01a4ded7380a1 | 93 | cpp | C++ | Data_Container/src/algorithm.cpp | Silmaen/ArduinoLibraries | c702234b0e11978977cf8f6fc7454452d67afa33 | [
"BSD-3-Clause"
] | null | null | null | Data_Container/src/algorithm.cpp | Silmaen/ArduinoLibraries | c702234b0e11978977cf8f6fc7454452d67afa33 | [
"BSD-3-Clause"
] | null | null | null | Data_Container/src/algorithm.cpp | Silmaen/ArduinoLibraries | c702234b0e11978977cf8f6fc7454452d67afa33 | [
"BSD-3-Clause"
] | null | null | null | /**
* \author argawaen
* \date 20/01/2021
*
*/
#include "algorithm"
namespace std{
}
| 7.153846 | 20 | 0.580645 | Silmaen |
d82afd977d9467d57431f3c10e9bf43eb316fae2 | 369 | cpp | C++ | biker_valera.cpp | andrewkopalchik/stepik_solutions | 8b82e02204eb4c7903093e53549d66d1206a5d83 | [
"Unlicense"
] | null | null | null | biker_valera.cpp | andrewkopalchik/stepik_solutions | 8b82e02204eb4c7903093e53549d66d1206a5d83 | [
"Unlicense"
] | null | null | null | biker_valera.cpp | andrewkopalchik/stepik_solutions | 8b82e02204eb4c7903093e53549d66d1206a5d83 | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int V, T;
cin >> V >> T;
int road = V*T;
while (road>109){
road=road-109;
}
while (road<-109){
road=road+109;
}
if (road<0){
road=road*-1;
cout << 109-road;
}
else{
cout <<... | 9.710526 | 25 | 0.387534 | andrewkopalchik |
d82c6eee499d817ace195c9ea7eb7d31e1488e14 | 1,540 | cpp | C++ | ABC/ABC181/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | 1 | 2021-06-01T17:13:44.000Z | 2021-06-01T17:13:44.000Z | ABC/ABC181/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | ABC/ABC181/D.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | //#ifdef _DEBUG
//#include "../../../library/src/debug_template.hpp"
//#define DMP(...) dump(#__VA_ARGS__, __VA_ARGS__)
//#else
//#define DMP(...) ((void)0)
//#endif
//
//#include <cassert>
//#include <cstdio>
//#include <cmath>
//#include <iostream>
//#include <string>
//#include <iomanip>
//#include <vector>
//#inclu... | 18.117647 | 52 | 0.484416 | rajyan |
d82c8bee7066c860f8b6a3ebddbc3aa0829dea29 | 2,439 | hpp | C++ | gh/etcd_client.hpp | coryan/gee-h | 306ddb047b60e9bffdcee22f73960d984fb4dc44 | [
"Apache-2.0"
] | 2 | 2017-11-19T15:19:55.000Z | 2019-12-19T09:14:00.000Z | gh/etcd_client.hpp | coryan/gee-h | 306ddb047b60e9bffdcee22f73960d984fb4dc44 | [
"Apache-2.0"
] | 6 | 2017-08-06T22:18:59.000Z | 2018-05-24T18:54:32.000Z | gh/etcd_client.hpp | coryan/gee-h | 306ddb047b60e9bffdcee22f73960d984fb4dc44 | [
"Apache-2.0"
] | 2 | 2019-12-19T09:14:02.000Z | 2020-10-26T10:05:05.000Z | #ifndef gh_etcd_client_hpp
#define gh_etcd_client_hpp
// Copyright 2017 Carlos O'Ryan
//
// 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/LICENS... | 33.875 | 114 | 0.733497 | coryan |
d830e22d1fd0e9fc15afa7b24a474678aa0a148d | 1,781 | cpp | C++ | matrix_block_sum.cpp | shafitek/ArXives | 67170d6bde2093703d9cd3e8efa55b61e7b5ea75 | [
"MIT"
] | null | null | null | matrix_block_sum.cpp | shafitek/ArXives | 67170d6bde2093703d9cd3e8efa55b61e7b5ea75 | [
"MIT"
] | null | null | null | matrix_block_sum.cpp | shafitek/ArXives | 67170d6bde2093703d9cd3e8efa55b61e7b5ea75 | [
"MIT"
] | null | null | null | https://leetcode.com/problems/matrix-block-sum/
class Solution {
public:
vector<vector<int>> matrixBlockSum(vector<vector<int>>& mat, int K) {
int m = mat.size();
int n = mat[0].size();
vector<vector<int>> soln(m, vector<int> (n, 0));
vector<vector<int>> prefix_sum(m, vector<int> (n... | 31.245614 | 110 | 0.371701 | shafitek |
d83537952106e3e69ec67db45547abe82e47fb92 | 9,611 | cpp | C++ | modules/meta/meta_ui_implementation.cpp | starlingcode/via_archive | e83f5178529664e4c348f3c2a30d923eafa7f896 | [
"MIT"
] | 3 | 2017-09-15T13:38:01.000Z | 2018-03-20T03:30:48.000Z | modules/meta/meta_ui_implementation.cpp | starlingcode/via_archive | e83f5178529664e4c348f3c2a30d923eafa7f896 | [
"MIT"
] | null | null | null | modules/meta/meta_ui_implementation.cpp | starlingcode/via_archive | e83f5178529664e4c348f3c2a30d923eafa7f896 | [
"MIT"
] | null | null | null | /*
* meta_ui_implementation.cpp
*
* Created on: Sep 12, 2018
* Author: willmitchell
*/
#include "meta.hpp"
#include "user_interface.hpp"
void ViaMeta::ViaMetaUI::initialize(void) {
#ifdef BUILD_VIRTUAL
button1 = (int32_t *) &this_module.button1Input;
button2 = (int32_t *) &this_module.button2Input;
b... | 29.481595 | 101 | 0.784206 | starlingcode |
d8371a0e747949c0e798773061cd9dacb1afa239 | 2,122 | cpp | C++ | space.cpp | sl424/hunting-game | f79bea39a061c8b8cfbf430ab0d73cd6539ddb0f | [
"Apache-2.0"
] | null | null | null | space.cpp | sl424/hunting-game | f79bea39a061c8b8cfbf430ab0d73cd6539ddb0f | [
"Apache-2.0"
] | null | null | null | space.cpp | sl424/hunting-game | f79bea39a061c8b8cfbf430ab0d73cd6539ddb0f | [
"Apache-2.0"
] | null | null | null | /***************************************************
* Program Filename: space.cpp
* Author: Chewie Lin
* Date: 12 Mar 2016
* Description:space class functions
***************************************************/
#include "space.hpp"
#include "item.hpp"
#include <list>
/*****************************************
... | 25.878049 | 60 | 0.407634 | sl424 |
d83894eae7c65b7b8654f516ce5f066725b0ef27 | 28,439 | cpp | C++ | src/DNC-LibraryTest/DNCTest.cpp | timmyzhu/WorkloadCompactor | d981f9c9172203615b33cb7ae9ce2ea202fe5959 | [
"MIT"
] | 2 | 2017-09-25T21:56:55.000Z | 2018-03-28T11:51:50.000Z | src/DNC-LibraryTest/DNCTest.cpp | timmyzhu/WorkloadCompactor | d981f9c9172203615b33cb7ae9ce2ea202fe5959 | [
"MIT"
] | null | null | null | src/DNC-LibraryTest/DNCTest.cpp | timmyzhu/WorkloadCompactor | d981f9c9172203615b33cb7ae9ce2ea202fe5959 | [
"MIT"
] | 2 | 2019-03-21T10:28:40.000Z | 2020-06-19T07:01:30.000Z | // DNCTest.cpp - DNC test code.
//
// Copyright (c) 2017 Timothy Zhu.
// Licensed under the MIT License. See LICENSE file for details.
//
#include <cassert>
#include <cstdlib>
#include <limits>
#include <iostream>
#include <vector>
#include "../common/serializeJSON.hpp"
#include "../Estimator/Estimator.hpp"
#include "... | 35.284119 | 121 | 0.616302 | timmyzhu |
d8397fc6029054589624fc6c19d3a8abaa650212 | 1,366 | cpp | C++ | chrono/chrono-dev/src/chrono_sensor/filters/ChFilterSaveXYZRGB.cpp | ShuoHe97/CS239-Final-Project | 6558db26d00abb0eb2f6c82b9b6025386ecf19b9 | [
"BSD-3-Clause"
] | 1 | 2020-12-18T08:28:52.000Z | 2020-12-18T08:28:52.000Z | chrono/chrono-dev/src/chrono_sensor/filters/ChFilterSaveXYZRGB.cpp | ShuoHe97/CS239-Final-Project | 6558db26d00abb0eb2f6c82b9b6025386ecf19b9 | [
"BSD-3-Clause"
] | null | null | null | chrono/chrono-dev/src/chrono_sensor/filters/ChFilterSaveXYZRGB.cpp | ShuoHe97/CS239-Final-Project | 6558db26d00abb0eb2f6c82b9b6025386ecf19b9 | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2019 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 33.317073 | 106 | 0.545388 | ShuoHe97 |
d840f6dcce490db572221e9f14ad01b1656877a6 | 5,260 | cpp | C++ | FEBioFluid/FENonlinearElasticFluid.cpp | AlexandraAllan23/FEBio | c94a1c30e0bae5f285c0daae40a7e893e63cff3c | [
"MIT"
] | 59 | 2020-06-15T12:38:49.000Z | 2022-03-29T19:14:47.000Z | FEBioFluid/FENonlinearElasticFluid.cpp | AlexandraAllan23/FEBio | c94a1c30e0bae5f285c0daae40a7e893e63cff3c | [
"MIT"
] | 36 | 2020-06-14T21:10:01.000Z | 2022-03-12T12:03:14.000Z | FEBioFluid/FENonlinearElasticFluid.cpp | AlexandraAllan23/FEBio | c94a1c30e0bae5f285c0daae40a7e893e63cff3c | [
"MIT"
] | 26 | 2020-06-25T15:02:13.000Z | 2022-03-10T09:14:03.000Z | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obt... | 34.834437 | 99 | 0.581369 | AlexandraAllan23 |
d84213330495a63b7a9edc5b3c8e8e8bb48139ea | 3,260 | cpp | C++ | YorozuyaGSLib/source/__error_infoDetail.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/__error_infoDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/__error_infoDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <__error_infoDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::__error_infoSetFileName2_ptr __error_infoSetFileName2_next(nullptr);
Info::__error_infoSetFileName2_clbk __error_infoSetFileName2_user(nullptr);
Info::__error_infoSetQu... | 45.277778 | 105 | 0.663497 | lemkova |
d846a71f584dd8007be43c3a3ab628e053b8e05e | 51,441 | cc | C++ | ggadget/gadget.cc | meego-netbook-ux/google-gadgets-meego | 89af89796bca073e95f44d43c9d81407caabedf0 | [
"Apache-2.0"
] | null | null | null | ggadget/gadget.cc | meego-netbook-ux/google-gadgets-meego | 89af89796bca073e95f44d43c9d81407caabedf0 | [
"Apache-2.0"
] | null | null | null | ggadget/gadget.cc | meego-netbook-ux/google-gadgets-meego | 89af89796bca073e95f44d43c9d81407caabedf0 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2008 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,... | 35.847387 | 80 | 0.664548 | meego-netbook-ux |
d84a272d8bbc6a95e73f46e2a44eb4dc3360dd81 | 4,112 | cpp | C++ | src/Client/Editor/Tools/Panels/ObjectToolPanel.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 13 | 2016-04-02T14:21:49.000Z | 2021-01-10T17:32:43.000Z | src/Client/Editor/Tools/Panels/ObjectToolPanel.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 24 | 2016-04-02T12:08:39.000Z | 2021-01-27T01:21:58.000Z | src/Client/Editor/Tools/Panels/ObjectToolPanel.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 6 | 2016-04-02T12:05:28.000Z | 2017-05-10T14:13:39.000Z | #include <Client/Editor/ObjectMapperFactory.hpp>
#include <Client/Editor/Tools/Panels/ObjectToolPanel.hpp>
#include <Client/GUI2/Panels/BorderPanel.hpp>
#include <Client/GUI2/Panels/GridPanel.hpp>
#include <Client/GUI2/Widgets/Menu.hpp>
#include <Client/GUI2/Widgets/Text.hpp>
#include <algorithm>
#include <memory>
#inc... | 28.358621 | 113 | 0.758512 | Marukyu |
d84e345d81b12273c93a806985deb64564d00d2c | 5,831 | cpp | C++ | WTLHelper/ThemeHelper.cpp | MaleNurse/RegExp | f8bada3d1f26fbdcf663a0a6e0965110c32bc0e6 | [
"MIT"
] | 825 | 2021-07-22T19:14:09.000Z | 2022-03-30T14:12:59.000Z | WTLHelper/ThemeHelper.cpp | MaleNurse/RegExp | f8bada3d1f26fbdcf663a0a6e0965110c32bc0e6 | [
"MIT"
] | 28 | 2021-07-24T17:30:46.000Z | 2022-01-10T23:11:08.000Z | WTLHelper/ThemeHelper.cpp | isabella232/RegExp | dbdb660f66ec7e29fd1fb32fb3ccee8d9c79cb90 | [
"MIT"
] | 64 | 2021-07-23T02:15:21.000Z | 2022-03-28T07:07:53.000Z | #include "pch.h"
#include "detours.h"
#include "ThemeHelper.h"
#include "Theme.h"
#include "CustomEdit.h"
#include "SizeGrip.h"
#include "CustomStatusBar.h"
#include "CustomButton.h"
#include "CustomDialog.h"
#include "CustomHeader.h"
#include "CustomRebar.h"
#include "OwnerDrawnMenu.h"
#include <unordered_map>
const ... | 29.301508 | 157 | 0.71823 | MaleNurse |
d850342a0154c16d9d7cd94cd1c30591e61b1939 | 5,298 | cpp | C++ | src/main/cpp/subsystems/Drivetrain.cpp | NorthernForce/Speedy-RapidReact2022 | 8412d6f022113c78d2055a4f02a533cbfc4dacd5 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/subsystems/Drivetrain.cpp | NorthernForce/Speedy-RapidReact2022 | 8412d6f022113c78d2055a4f02a533cbfc4dacd5 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/subsystems/Drivetrain.cpp | NorthernForce/Speedy-RapidReact2022 | 8412d6f022113c78d2055a4f02a533cbfc4dacd5 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "subsystems/Drivetrain.h"
#include "Constants.h"
#include "frc/smartdashboard/SmartDashboard.h"
#include <frc/S... | 37.048951 | 133 | 0.748584 | NorthernForce |
d85675fc5f1f21aa6b25c06c2623642b69ba02c4 | 7,661 | cxx | C++ | test/integration/config/config_io_registry_test.cxx | ANSAKsoftware/ansak-lib | 93eff12a50464f3071b27c8eb16336f93d0d04c6 | [
"BSD-2-Clause"
] | null | null | null | test/integration/config/config_io_registry_test.cxx | ANSAKsoftware/ansak-lib | 93eff12a50464f3071b27c8eb16336f93d0d04c6 | [
"BSD-2-Clause"
] | null | null | null | test/integration/config/config_io_registry_test.cxx | ANSAKsoftware/ansak-lib | 93eff12a50464f3071b27c8eb16336f93d0d04c6 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2017, Arthur N. Klassen
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions... | 31.016194 | 103 | 0.580342 | ANSAKsoftware |
d86986df09332600641689da86ae72666fefea62 | 5,726 | cpp | C++ | Source/EstCore/Private/Editor/EstMapErrorChecker.cpp | edgarbarney/Estranged.Core | 289c672da77f30789f19c317815ea8f973885a25 | [
"MIT"
] | null | null | null | Source/EstCore/Private/Editor/EstMapErrorChecker.cpp | edgarbarney/Estranged.Core | 289c672da77f30789f19c317815ea8f973885a25 | [
"MIT"
] | null | null | null | Source/EstCore/Private/Editor/EstMapErrorChecker.cpp | edgarbarney/Estranged.Core | 289c672da77f30789f19c317815ea8f973885a25 | [
"MIT"
] | null | null | null | // Estranged is a trade mark of Alan Edwardes.
#include "Editor/EstMapErrorChecker.h"
#include "Engine.h"
#include "EstCore.h"
#include "Logging/TokenizedMessage.h"
#include "Logging/MessageLog.h"
#include "Runtime/Engine/Classes/Components/StaticMeshComponent.h"
#include "Runtime/Engine/Classes/Engine/StaticMesh.h"
#... | 33.098266 | 154 | 0.68774 | edgarbarney |
d86c1dd91942f15784f5cf1850f323c67de2c81a | 1,523 | cpp | C++ | Top-Interview-Questions/Two_Sum.cpp | ayushjainid/leetcode_hour | 6254e711a1d96d74b777efbe84c2a17e82971ee4 | [
"MIT"
] | null | null | null | Top-Interview-Questions/Two_Sum.cpp | ayushjainid/leetcode_hour | 6254e711a1d96d74b777efbe84c2a17e82971ee4 | [
"MIT"
] | null | null | null | Top-Interview-Questions/Two_Sum.cpp | ayushjainid/leetcode_hour | 6254e711a1d96d74b777efbe84c2a17e82971ee4 | [
"MIT"
] | null | null | null | // Problem Statement
// Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.
// You may assume that each input would have exactly one solution, and you may not use the same element twice.
//Solution 1: Brute Force
class Solution {
public:
vector<... | 31.729167 | 124 | 0.569928 | ayushjainid |
d870cd94bb38921bb57e31fbd3e7d80b239151ee | 2,260 | hpp | C++ | runtime/include/jikka/modulo_matrix.hpp | uta8a/Jikka | 6cc465a9c233bea91ad149dadd0a8a7cd1a223eb | [
"Apache-2.0"
] | 139 | 2019-07-19T15:09:34.000Z | 2022-03-10T06:26:04.000Z | runtime/include/jikka/modulo_matrix.hpp | uta8a/Jikka | 6cc465a9c233bea91ad149dadd0a8a7cd1a223eb | [
"Apache-2.0"
] | 102 | 2019-07-19T16:49:08.000Z | 2021-09-26T14:45:32.000Z | runtime/include/jikka/modulo_matrix.hpp | uta8a/Jikka | 6cc465a9c233bea91ad149dadd0a8a7cd1a223eb | [
"Apache-2.0"
] | 11 | 2019-10-17T05:46:10.000Z | 2022-02-27T14:05:19.000Z | #ifndef JIKKA_MODULO_MATRIX_HPP
#define JIKKA_MODULO_MATRIX_HPP
/**
* @file jikka/modulo_matrix.hpp
* @author Kimiyuki Onaka
* @copyright Apache License 2.0
*/
#include "jikka/divmod.hpp"
#include "jikka/matrix.hpp"
#include <array>
namespace jikka {
namespace modmat {
using jikka::floormod;
template <size_t N>... | 23.298969 | 76 | 0.525664 | uta8a |
d874ba85731883bb7d49a563169f252373b1903e | 2,264 | cxx | C++ | src/sdp_solve/SDP_Solver/run/print_iteration.cxx | ChrisPattison/sdpb | 4668f72c935e7feba705dd8247d9aacb23185f1c | [
"MIT"
] | 45 | 2015-02-10T15:45:22.000Z | 2022-02-24T07:45:01.000Z | src/sdp_solve/SDP_Solver/run/print_iteration.cxx | ChrisPattison/sdpb | 4668f72c935e7feba705dd8247d9aacb23185f1c | [
"MIT"
] | 58 | 2015-02-27T10:03:18.000Z | 2021-08-10T04:21:42.000Z | src/sdp_solve/SDP_Solver/run/print_iteration.cxx | ChrisPattison/sdpb | 4668f72c935e7feba705dd8247d9aacb23185f1c | [
"MIT"
] | 38 | 2015-02-10T11:11:27.000Z | 2022-02-11T20:59:42.000Z | #include "../../SDP_Solver.hxx"
#include <chrono>
#include <iostream>
#include <iomanip>
void print_iteration(
const int &iteration, const El::BigFloat &mu,
const El::BigFloat &primal_step_length, const El::BigFloat &dual_step_length,
const El::BigFloat &beta_corrector, const SDP_Solver &sdp_solver,
const std... | 39.034483 | 79 | 0.52606 | ChrisPattison |
d87c039292cdd7fb5a444ea780d4fc614f1bc666 | 20,848 | cc | C++ | BParkingNano/plugins/HNLToMuPiBuilder.cc | Raffaella07/BParkingNANO_Common | c3fdcea5cca8e832010b8f93a841dd21b657890e | [
"Apache-2.0"
] | null | null | null | BParkingNano/plugins/HNLToMuPiBuilder.cc | Raffaella07/BParkingNANO_Common | c3fdcea5cca8e832010b8f93a841dd21b657890e | [
"Apache-2.0"
] | 2 | 2021-08-30T17:16:02.000Z | 2021-10-03T17:54:57.000Z | BParkingNano/plugins/HNLToMuPiBuilder.cc | Raffaella07/BParkingNANO_Common | c3fdcea5cca8e832010b8f93a841dd21b657890e | [
"Apache-2.0"
] | null | null | null | #include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/Utiliti... | 48.824356 | 257 | 0.590704 | Raffaella07 |
f21a95643398d4c3af768893c594a3ef4b0aa238 | 2,100 | cpp | C++ | BMPOtherEnd/BMPOtherEnd/BMPOtherEnd.cpp | seanboyy/BitmapWriter | 082fe05a66d6db7a5cfe81040b05e5f68788bef1 | [
"MIT"
] | null | null | null | BMPOtherEnd/BMPOtherEnd/BMPOtherEnd.cpp | seanboyy/BitmapWriter | 082fe05a66d6db7a5cfe81040b05e5f68788bef1 | [
"MIT"
] | null | null | null | BMPOtherEnd/BMPOtherEnd/BMPOtherEnd.cpp | seanboyy/BitmapWriter | 082fe05a66d6db7a5cfe81040b05e5f68788bef1 | [
"MIT"
] | null | null | null | //Sean Bamford
//COMP 322 Obj Oriented 'n' Adv Programming
//11/30/17
//implements the functions in the header
#include "BMPOtherEnd.h"
#include <QFileDialog>
#include <QString>
#include <QMessageBox>
BMPOtherEnd::BMPOtherEnd(QWidget *parent) : QMainWindow(parent) {
ui.setupUi(this);
}
//load file
void BMPOtherEnd::... | 33.870968 | 143 | 0.66 | seanboyy |
f21b306b5b946e92093fab6a613453d95028400d | 1,562 | cpp | C++ | NightEngine2/src/Graphics/Opengl/Mesh.cpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | 2 | 2020-03-09T06:24:46.000Z | 2022-02-04T23:09:23.000Z | NightEngine2/src/Graphics/Opengl/Mesh.cpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | null | null | null | NightEngine2/src/Graphics/Opengl/Mesh.cpp | rittikornt/NightEngine2 | 14004b48d1708736373010a3fe47d05d876e0baa | [
"MIT"
] | 2 | 2020-09-07T03:04:36.000Z | 2022-02-04T23:09:24.000Z | /*!
@file Mesh.hpp
@author Rittikorn Tangtrongchit
@brief Contain the Implementation of Mesh
*/
#include "Graphics/Opengl/Mesh.hpp"
namespace NightEngine::Rendering::Opengl
{
Mesh::Mesh(const std::vector<Vertex>& vertices
, const std::vector<unsigned>& indices, bool buildNow)
{
m_verticesCount = ver... | 20.285714 | 63 | 0.639565 | rittikornt |
f21f70e0cdb7ee11fcdf0a46bdc0707200410b71 | 4,074 | hpp | C++ | crogine/src/graphics/shaders/ShadowMap.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | crogine/src/graphics/shaders/ShadowMap.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | crogine/src/graphics/shaders/ShadowMap.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017 - 2021
http://trederia.blogspot.com
crogine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the use of this ... | 28.096552 | 93 | 0.596465 | fallahn |
f225dcd4ae0c4cabc0c6bd9ec6440871db137618 | 7,895 | cpp | C++ | pvc-disasm/pvc-disasm.cpp | kcalbSphere/PVC-16 | cc69b09a0fd0d690717c131d09b7f80cdb680c06 | [
"MIT"
] | null | null | null | pvc-disasm/pvc-disasm.cpp | kcalbSphere/PVC-16 | cc69b09a0fd0d690717c131d09b7f80cdb680c06 | [
"MIT"
] | null | null | null | pvc-disasm/pvc-disasm.cpp | kcalbSphere/PVC-16 | cc69b09a0fd0d690717c131d09b7f80cdb680c06 | [
"MIT"
] | null | null | null | // pvc-disasm.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include <iostream>
#include <args.hxx>
#include <fstream>
#include <boost/algorithm/string.hpp>
#include <map>
#include <string>
#include <ranges>
#include "../PVC-16/opcode.h"
#include "../PVC-16/utility... | 28.919414 | 204 | 0.610006 | kcalbSphere |
f227868683f7ce596cf5ed749bbcc39a4a3d1037 | 5,290 | cpp | C++ | ModelExplorerPlugin/RengaPropertyController.cpp | RengaSoftware/ModelExplorer | bbab54728c05bbc226179bba121aba86806712c7 | [
"MIT"
] | 19 | 2016-11-08T06:49:40.000Z | 2021-06-25T05:42:31.000Z | ModelExplorerPlugin/RengaPropertyController.cpp | RengaSoftware/ModelExplorer | bbab54728c05bbc226179bba121aba86806712c7 | [
"MIT"
] | 13 | 2016-12-07T08:39:33.000Z | 2021-05-20T09:22:48.000Z | ModelExplorerPlugin/RengaPropertyController.cpp | RengaSoftware/ModelExplorer | bbab54728c05bbc226179bba121aba86806712c7 | [
"MIT"
] | 5 | 2017-01-30T15:02:53.000Z | 2020-10-18T08:42:34.000Z | //
// Copyright "Renga Software" LLC, 2016. All rights reserved.
//
// "Renga Software" LLC PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// "Renga Software" LLC DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
#include "stdafx.h"
#include "RengaPropertyController.h"... | 26.582915 | 103 | 0.748204 | RengaSoftware |
f229640ebb7e574907b6025979dade935dd96353 | 718 | cpp | C++ | random_util/program.cpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 6 | 2015-05-19T06:30:06.000Z | 2018-07-24T08:15:45.000Z | random_util/program.cpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 1 | 2015-05-19T06:42:38.000Z | 2015-05-19T14:45:49.000Z | random_util/program.cpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 3 | 2015-10-09T05:54:58.000Z | 2018-07-25T13:52:32.000Z | //Sample provided by Fabio Galuppo
//October 2016
//http://www.simplycpp.com
//compile clang++: (Apple LLVM version 8.0.0 (clang-800.0.38))
//clang++ -Wall -O2 -std=c++14 -o program.exe program.cpp sample1.cpp sample2.cpp sample3.cpp
//compile g++: (g++ (GCC) 5.3.0)
//g++ -Wall -O2 -std=c++14 -o program.exe program... | 28.72 | 106 | 0.693593 | SimplyCpp |
f2304dd5cdc8a8528c32372675859e646952dac0 | 3,840 | hpp | C++ | src/apply_game_forget.hpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | 7 | 2016-11-12T17:55:03.000Z | 2021-04-28T20:23:27.000Z | src/apply_game_forget.hpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | null | null | null | src/apply_game_forget.hpp | sequoia-mso/sequoia-core | d2a6a461ffbe38dc8abb005b2c8f1f3bc1dc2bbe | [
"Apache-2.0"
] | 4 | 2015-05-12T13:51:54.000Z | 2020-06-07T22:01:28.000Z | /*
* This file is part of the Sequoia MSO Solver.
*
* Copyright 2012 Alexander Langer, Theoretical Computer Science,
* RWTH Aachen University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 36.923077 | 113 | 0.65651 | sequoia-mso |
f2315eeba923eded555e4005c261a03a2cd1638f | 1,664 | hpp | C++ | azureeyemodule/app/kernels/classification_kernels.hpp | hogaku/azure-percept-advanced-development | 90177b9f1ec96dee1e7c436af5471007c4092655 | [
"MIT"
] | 52 | 2021-03-02T14:28:37.000Z | 2022-02-07T20:27:52.000Z | azureeyemodule/app/kernels/classification_kernels.hpp | hogaku/azure-percept-advanced-development | 90177b9f1ec96dee1e7c436af5471007c4092655 | [
"MIT"
] | 29 | 2021-03-03T09:36:33.000Z | 2022-03-12T00:59:10.000Z | azureeyemodule/app/kernels/classification_kernels.hpp | hogaku/azure-percept-advanced-development | 90177b9f1ec96dee1e7c436af5471007c4092655 | [
"MIT"
] | 30 | 2021-03-02T14:09:14.000Z | 2022-03-11T05:58:54.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#pragma once
#include <opencv2/gapi/mx.hpp>
#include <opencv2/gapi/cpu/gcpukernel.hpp>
#include <opencv2/core/utility.hpp>
#include <opencv2/gapi/core.hpp>
#include <opencv2/gapi/infer.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgpr... | 29.192982 | 108 | 0.686899 | hogaku |
f232e08c6ded235cf63237b9195354fba82c8396 | 10,319 | cpp | C++ | interface/source/resourcegroupmanager_bind.cpp | fire-archive/llcoi | e0d2c30ba231e62e98b1322f1a1b01a89b9abb00 | [
"MIT"
] | null | null | null | interface/source/resourcegroupmanager_bind.cpp | fire-archive/llcoi | e0d2c30ba231e62e98b1322f1a1b01a89b9abb00 | [
"MIT"
] | null | null | null | interface/source/resourcegroupmanager_bind.cpp | fire-archive/llcoi | e0d2c30ba231e62e98b1322f1a1b01a89b9abb00 | [
"MIT"
] | 1 | 2021-11-30T23:13:38.000Z | 2021-11-30T23:13:38.000Z | /* __ __ _
* / // /_____ ____ (_)
* / // // ___// __ \ / /
* / // // /__ / /_/ // /
* /_//_/ \___/ \____//_/
* https://bitbucket.org/galaktor/llcoi
* copyright (c) 2011, llcoi Team
* MIT license applies - see file "LICENSE" for details.
*/
#include "resourcegroupmanager_bind.h"
... | 53.190722 | 319 | 0.798236 | fire-archive |
f23f1e69dfc659a03d671f47711975b58a346632 | 3,585 | cpp | C++ | openGL_Udemy/My_Solution/My_Project/src/Shader.cpp | talktovik/OPenGl_repo | fd7e667a7866303a71be714560de6f8871aa85e9 | [
"MIT"
] | 2 | 2021-01-30T05:17:40.000Z | 2021-02-01T03:49:39.000Z | openGL_Udemy/My_Solution/My_Project/src/Shader.cpp | talktovik/OPenGl_repo | fd7e667a7866303a71be714560de6f8871aa85e9 | [
"MIT"
] | null | null | null | openGL_Udemy/My_Solution/My_Project/src/Shader.cpp | talktovik/OPenGl_repo | fd7e667a7866303a71be714560de6f8871aa85e9 | [
"MIT"
] | null | null | null | #include "Shader.h"
Shader::Shader() {
shaderID = 0;
uniformModel = 0;
uniformProjection = 0;
}
void Shader::CreateFromString(const char* vertexCode, const char* fragmentCode) {
CompileShader(vertexCode, fragmentCode);
}
void Shader::createFromFiles(const char* vertexLocation, const char* fragmentLocation) {
... | 24.387755 | 88 | 0.665272 | talktovik |
f24a188474a775d10aafdbb976eae33d13d3388a | 534 | cpp | C++ | ExTerm/main.cpp | Rush/ExTermProject | a653aa3821ae719c07fb7e378f4877efbc25b8e5 | [
"MIT"
] | 1 | 2016-10-08T19:14:34.000Z | 2016-10-08T19:14:34.000Z | ExTerm/main.cpp | Rush/ExTermProject | a653aa3821ae719c07fb7e378f4877efbc25b8e5 | [
"MIT"
] | null | null | null | ExTerm/main.cpp | Rush/ExTermProject | a653aa3821ae719c07fb7e378f4877efbc25b8e5 | [
"MIT"
] | null | null | null | #include <QGuiApplication>
#include <QtQml>
#include <QQuickView>
#include <extermitem.h>
#include <extermio.h>
void registerQmlTypes()
{
qmlRegisterType<ExTermItem>("pl.rtsolutions.exterm", 1, 0, "ExTermItem");
qmlRegisterType<ExTermIO>("ExTermIO", 1, 0, "ExTermIO");
}
int main(int argc, char *argv[])
{
... | 22.25 | 77 | 0.694757 | Rush |
f24c03f7d1d858c71be07912b9b5f9cd12c38be0 | 3,864 | hpp | C++ | src/alice2/packets.hpp | invokr/alice2 | 76141ccbc834cc3fb34ad9918e2d56b9f054c8c6 | [
"Apache-2.0"
] | 1 | 2015-03-25T23:53:06.000Z | 2015-03-25T23:53:06.000Z | src/alice2/packets.hpp | invokr/alice2 | 76141ccbc834cc3fb34ad9918e2d56b9f054c8c6 | [
"Apache-2.0"
] | 1 | 2015-09-26T14:24:34.000Z | 2015-09-26T14:24:34.000Z | src/alice2/packets.hpp | invokr/alice2 | 76141ccbc834cc3fb34ad9918e2d56b9f054c8c6 | [
"Apache-2.0"
] | null | null | null | /**
* @file packets.hpp
* @author Robin Dietrich <me (at) invokr (dot) org>
* @version 1.0
*
* @par License
* Alice Replay Parser
* Copyright 2014-2015 Robin Dietrich
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | 32.2 | 113 | 0.616201 | invokr |
f24f553285e621bfe7dda4d9074584407139e7fe | 1,096 | hpp | C++ | include/public/coherence/net/SocketAddress.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | include/public/coherence/net/SocketAddress.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | include/public/coherence/net/SocketAddress.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_SOCKET_ADDRESS_HPP
#define COH_SOCKET_ADDRESS_HPP
#include "coherence/lang.ns"
COH_OPEN_NAMESPACE2(coherence,net)
/**
* Socke... | 22.367347 | 77 | 0.62135 | chpatel3 |
f25174e305560e20a657fb0be8c2d7fa93acfb8d | 4,056 | cpp | C++ | examples/bob-ref.cpp | vpavlov/iris | 2c0439713186e882b9dfe621c94abe83ff7edb31 | [
"MIT"
] | null | null | null | examples/bob-ref.cpp | vpavlov/iris | 2c0439713186e882b9dfe621c94abe83ff7edb31 | [
"MIT"
] | null | null | null | examples/bob-ref.cpp | vpavlov/iris | 2c0439713186e882b9dfe621c94abe83ff7edb31 | [
"MIT"
] | null | null | null | #include <string.h>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define iris_real double
#define IMAGES 1
char **split(char *line, int max)
{
char *pch;
char **tokens = new char *[max];
int count = 0;
pch = strtok(line, " ");
while(pch != NULL && count < max) {
tok... | 22.163934 | 74 | 0.553748 | vpavlov |
f2523d0901e5ba5c7c4e5521b01d6711372e68b6 | 2,866 | cpp | C++ | src/LORE/UI/UI.cpp | MemoryDealer/LORE | 2ce0c6cf03c119e5d1b0b90f3ee044901353283a | [
"MIT"
] | 2 | 2021-07-14T06:05:48.000Z | 2021-07-14T18:07:18.000Z | src/LORE/UI/UI.cpp | MemoryDealer/LORE | 2ce0c6cf03c119e5d1b0b90f3ee044901353283a | [
"MIT"
] | null | null | null | src/LORE/UI/UI.cpp | MemoryDealer/LORE | 2ce0c6cf03c119e5d1b0b90f3ee044901353283a | [
"MIT"
] | null | null | null | // ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //
// The MIT License (MIT)
// This source file is part of LORE
// ( Lightweight Object-oriented Rendering Engine )
//
// Copyright (c) 2017-2021 Jordan Sparks
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... | 37.220779 | 94 | 0.586532 | MemoryDealer |
f25aa7061a308f6a29c6211cc6d66932a919ab57 | 446 | cpp | C++ | IPlugExamples/IPlugGamma/gamma/examples/generator/oscBuzz.cpp | iSynth/WDL-iSynth | 4099b154ca7f7acb979c84118f9418024c8eab62 | [
"Zlib"
] | 1 | 2017-05-07T13:28:30.000Z | 2017-05-07T13:28:30.000Z | IPlugExamples/IPlugGamma/gamma/examples/generator/oscBuzz.cpp | iSynth/WDL-iSynth | 4099b154ca7f7acb979c84118f9418024c8eab62 | [
"Zlib"
] | null | null | null | IPlugExamples/IPlugGamma/gamma/examples/generator/oscBuzz.cpp | iSynth/WDL-iSynth | 4099b154ca7f7acb979c84118f9418024c8eab62 | [
"Zlib"
] | null | null | null | /* Gamma - Generic processing library
See COPYRIGHT file for authors and license information
Example: Generator / Oscillator / Buzz
Description: Variable harmonic impulse
*/
#include "../examples.h"
Buzz<> buzz(55); // Linearly sweeping phase
LFO<> mod(1./16);
void audioCB(AudioIOData& io){
while(io()){
... | 16.518519 | 55 | 0.652466 | iSynth |
f25ae743e37f0b7a0bf1302ca0fb720f76da54c9 | 721 | cpp | C++ | Contests/Codeforces Round #729 (Div. 2)/C.cpp | Shahin-Sheikh/Competitive-Programming | f66d9e1bb9013cc36bdb41faef699494fd73b952 | [
"MIT"
] | 1 | 2021-05-03T07:00:50.000Z | 2021-05-03T07:00:50.000Z | Contests/Codeforces Round #729 (Div. 2)/C.cpp | Shahin-Sheikh/Codeforces | 578e1eed1c8a77e55f217ab6036fee1206af1d3a | [
"MIT"
] | null | null | null | Contests/Codeforces Round #729 (Div. 2)/C.cpp | Shahin-Sheikh/Codeforces | 578e1eed1c8a77e55f217ab6036fee1206af1d3a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <iostream>
#define ll long long int
#define mod 1000000007
using namespace std;
ll f2(ll x,ll y ){
while(y){
ll res=y;
y=x%y;
x=res;
}
return x;
}
ll f1(ll a,ll b,ll c){
ll m=0,n,r;
if(a==0){
return 0;
}
else{
... | 11.819672 | 51 | 0.443828 | Shahin-Sheikh |
f25cebd670a56fbcf18a943fc30ac66677a604fd | 1,425 | cpp | C++ | source/vcore/vix_inireader.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | null | null | null | source/vcore/vix_inireader.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | 3 | 2015-10-28T01:29:03.000Z | 2015-11-10T15:20:02.000Z | source/vcore/vix_inireader.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | null | null | null |
#include <vix_inireader.h>
#include <cctype>
#include <algorithm>
#include <vix_debugutil.h>
namespace Vixen {
INIReader::INIReader()
{
}
bool INIReader::Load(FILE* handle)
{
_error = ini_parse_file(handle, ValueHandler, this);
return true;
}
int INIReader::Error()
... | 23.360656 | 159 | 0.589474 | ritgraphics |
f25dea4ab6c5fb6c18f5bcbec91734d5755d3dab | 379 | cpp | C++ | cpp/continue.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | cpp/continue.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | cpp/continue.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | #include "iostream"
#include "vector"
#include "string"
using namespace std;
int main(){
for (int i = 0; i < 5; ++i) {
int found = 0;
for (int j = 0; j < 7; ++j) {
cout << " i j : " << i << " " << j << std::endl;
if(j == 3) {
cout << "Inside\n";
... | 17.227273 | 60 | 0.364116 | formatkaka |
f2654b3606332ae3bddd8e3535b6065276532e7f | 70 | cpp | C++ | Unreal/CtaCpp/Runtime/Scripts/Network/NetworkEquipmentMalfunction.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | 3 | 2021-06-02T16:44:02.000Z | 2022-01-24T20:20:10.000Z | Unreal/CtaCpp/Runtime/Scripts/Network/NetworkEquipmentMalfunction.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | Unreal/CtaCpp/Runtime/Scripts/Network/NetworkEquipmentMalfunction.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | #include "NetworkEquipmentMalfunction.h"
namespace Cta::Network
{
}
| 11.666667 | 41 | 0.771429 | areilly711 |
f2681723121302d595b85cd25b436ef2afe02eee | 19,533 | cpp | C++ | threedangles/src/Rasterizer.cpp | Raffaello/threedangles | 01716d094368a4a168849d5b3befad33fd87876e | [
"MIT"
] | null | null | null | threedangles/src/Rasterizer.cpp | Raffaello/threedangles | 01716d094368a4a168849d5b3befad33fd87876e | [
"MIT"
] | 23 | 2021-12-04T17:25:03.000Z | 2021-12-28T04:16:05.000Z | threedangles/src/Rasterizer.cpp | Raffaello/threedangles | 01716d094368a4a168849d5b3befad33fd87876e | [
"MIT"
] | null | null | null | #include <Rasterizer.hpp>
#include <algorithm>
#include <cassert>
#include <Tex3.hpp>
Rasterizer::Rasterizer(const std::shared_ptr<Screen> screen) : _screen(screen)
{
}
inline void Rasterizer::draw_hline(int x1, int x2, const int y) const noexcept
{
// @todo: for the depth buffer the z value need to be interpola... | 28.640762 | 150 | 0.466339 | Raffaello |
f2707dbeeaef7a02948e9682a5802ae40227918c | 1,194 | cpp | C++ | 2020/8.6/P2196.cpp | YooLc/Codes-Backup | 3e13bc048921eefadcc63e36cf2cf638138ebea2 | [
"WTFPL"
] | null | null | null | 2020/8.6/P2196.cpp | YooLc/Codes-Backup | 3e13bc048921eefadcc63e36cf2cf638138ebea2 | [
"WTFPL"
] | null | null | null | 2020/8.6/P2196.cpp | YooLc/Codes-Backup | 3e13bc048921eefadcc63e36cf2cf638138ebea2 | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
const int MAXN = 25;
int e[MAXN][MAXN], val[MAXN], f[MAXN], pre[MAXN], n;
bool vis[MAXN];
inline void printPath(int cur)
{
if (cur == pre[cur]) { printf("%d ", cur); return; }
printPath(pre[cur]);
printf("%d ", cur);
}
inline void dfs(int cur, int f... | 23.88 | 56 | 0.458961 | YooLc |
f271691d338ce72d5b15fb4543fae661beb141b8 | 1,119 | cpp | C++ | problems/lc623-1.cpp | caohongjian/leetcode | bba854b407b1caa6a237ceb726592ff0458b3a29 | [
"MIT"
] | 1 | 2020-07-01T10:42:09.000Z | 2020-07-01T10:42:09.000Z | problems/lc623-1.cpp | murmur-wheel/leetcode | bba854b407b1caa6a237ceb726592ff0458b3a29 | [
"MIT"
] | null | null | null | problems/lc623-1.cpp | murmur-wheel/leetcode | bba854b407b1caa6a237ceb726592ff0458b3a29 | [
"MIT"
] | null | null | null | // 递归实现
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : v... | 25.431818 | 93 | 0.520107 | caohongjian |
f272a6bb406a894593f38debd6b3021d89a63c79 | 254 | cpp | C++ | programs_AtoZ/Print ASCII Value of Characters/ASCII_Value_of_a_Character.cpp | EarthMan123/unitech_cpp_with_oops-course | 941fec057bdcb8a5289994780ae553e6d4fddbbe | [
"Unlicense"
] | 2 | 2021-06-12T02:55:28.000Z | 2021-07-04T22:25:38.000Z | programs_AtoZ/Print ASCII Value of Characters/ASCII_Value_of_a_Character.cpp | EarthMan123/unitech_cpp_with_oops-course | 941fec057bdcb8a5289994780ae553e6d4fddbbe | [
"Unlicense"
] | null | null | null | programs_AtoZ/Print ASCII Value of Characters/ASCII_Value_of_a_Character.cpp | EarthMan123/unitech_cpp_with_oops-course | 941fec057bdcb8a5289994780ae553e6d4fddbbe | [
"Unlicense"
] | 1 | 2021-07-04T22:28:38.000Z | 2021-07-04T22:28:38.000Z | // C++ Program to Print ASCII Value of a Character
#include<iostream>
using namespace std;
int main()
{
char ch;
int i;
cout<<"Enter the Character: ";
cin>>ch;
i = ch;
cout<<"\nASCII Value = "<<i;
cout<<endl;
return 0;
}
| 15.875 | 50 | 0.574803 | EarthMan123 |
f2781fec224dad8dbb8d03e1c163b86497bbf92e | 179 | cpp | C++ | AbstractFactory/ConcreteProductA2.cpp | kovgergo2001/DesignPatterns | 64997205a1338c67ab5282f90c631a1031a87dd6 | [
"MIT"
] | null | null | null | AbstractFactory/ConcreteProductA2.cpp | kovgergo2001/DesignPatterns | 64997205a1338c67ab5282f90c631a1031a87dd6 | [
"MIT"
] | null | null | null | AbstractFactory/ConcreteProductA2.cpp | kovgergo2001/DesignPatterns | 64997205a1338c67ab5282f90c631a1031a87dd6 | [
"MIT"
] | null | null | null | #include<string>
#include"AbstractProductA.h"
#include"ConcreteProductA2.h"
std::string ConcreteProductA2::UsefulFunctionA() const {
return "The result of the product A2.";
} | 25.571429 | 56 | 0.765363 | kovgergo2001 |
f278fd18b9d1f4361bf0d651245f28617f902675 | 1,887 | cpp | C++ | tools/cmd/cu_tvl1_denoising_test.cpp | mwerlberger/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 8 | 2015-10-24T18:31:58.000Z | 2019-10-16T03:27:27.000Z | tools/cmd/cu_tvl1_denoising_test.cpp | henrywen2011/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 7 | 2015-06-22T09:36:32.000Z | 2015-08-20T06:56:10.000Z | tools/cmd/cu_tvl1_denoising_test.cpp | henrywen2011/imp | 2a2e4d31fa59ca1c32ae7f415306b39e31fc1e85 | [
"MIT"
] | 3 | 2015-05-13T14:46:48.000Z | 2017-01-11T09:20:03.000Z | #include <assert.h>
#include <cstdint>
#include <iostream>
#include <memory>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <imp/core/roi.hpp>
#include <imp/core/image_raw.hpp>
#include <imp/bridge/opencv/image_cv.hpp>
#include <imp/cu_core/cu_image_gpu.cuh>
#include <imp/cu_imgproc/... | 26.577465 | 72 | 0.630101 | mwerlberger |
f27b082b5bbe7aefc373795cbb3129f8b3a4f7cb | 2,286 | hpp | C++ | include/codegen/include/UnityEngine/LowLevel/PlayerLoopSystem.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/LowLevel/PlayerLoopSystem.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/LowLevel/PlayerLoopSystem.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:30 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Includin... | 43.961538 | 438 | 0.738408 | Futuremappermydud |
f27b84e86456159db1f5e45f86b470e3929e8ac7 | 12,322 | hpp | C++ | algorithm/hamming_index.hpp | ZJULearning/RPLSH | 0912fd61dacaa5664cd31e7b2758e05ebdcbe53e | [
"BSD-2-Clause"
] | 19 | 2018-03-20T16:38:59.000Z | 2021-12-20T06:56:06.000Z | algorithm/hamming_index.hpp | ZJULearning/RPLSH | 0912fd61dacaa5664cd31e7b2758e05ebdcbe53e | [
"BSD-2-Clause"
] | 1 | 2020-06-25T07:00:56.000Z | 2020-06-25T07:00:56.000Z | algorithm/hamming_index.hpp | ZJULearning/RPLSH | 0912fd61dacaa5664cd31e7b2758e05ebdcbe53e | [
"BSD-2-Clause"
] | 4 | 2018-03-19T08:17:16.000Z | 2020-03-19T01:45:04.000Z | // Copyright (C) 2018 Deng Cai <dengcai@gmail.com>. All Rights Reserved.
#ifndef EFANNA_HAMMING_INDEX_H_
#define EFANNA_HAMMING_INDEX_H_
#include "algorithm/base_index.hpp"
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <random>
#include <cblas.h>
namespace efanna{
inline u... | 27.627803 | 183 | 0.63342 | ZJULearning |
f27c23f89a38d3d35903cdcd79f85cff1b02aeaf | 633 | cpp | C++ | ZeroJudge/b541.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | 1 | 2018-02-11T09:41:54.000Z | 2018-02-11T09:41:54.000Z | ZeroJudge/b541.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | ZeroJudge/b541.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
string Cal(string enter){
string ans="";
for(unsigned int i=0;i<enter.length();i++){
char w=enter[i];
int count=0;
while(w==enter[i]){
count++;
i++;
}
i--;
string tostring="";
while(count){
c... | 17.108108 | 57 | 0.579779 | tico88612 |
f27ed239e220daa387ff0db701136a08e0b77291 | 2,210 | cpp | C++ | doc/examples/arraysubtract.cpp | TobiasLudwig/boost.simd | c04d0cc56747188ddb9a128ccb5715dd3608dbc1 | [
"BSL-1.0"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | doc/examples/arraysubtract.cpp | dendisuhubdy/boost.simd | 7630b1c1ffbd0300c100885b89ff78c2d579a24c | [
"BSL-1.0"
] | null | null | null | doc/examples/arraysubtract.cpp | dendisuhubdy/boost.simd | 7630b1c1ffbd0300c100885b89ff78c2d579a24c | [
"BSL-1.0"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | #include <cstdlib>
#include <iostream>
#include <numeric>
#include <vector>
//! [substract]
#include <boost/simd/meta/cardinal_of.hpp>
#include <boost/simd/pack.hpp>
//! [substract-include]
#include <boost/simd/function/load.hpp>
#include <boost/simd/function/store.hpp>
//! [substract-include]
#include <boost/simd/fu... | 23.263158 | 51 | 0.58371 | TobiasLudwig |
f27f5443711e6207eacf1ddf274fffdfaca991d6 | 1,254 | cc | C++ | problems/cc/minimum-time-difference.cc | FisherCloud/LeetCode | ad831c0f00d91bb44612b0e8b5a7540e1cfc296e | [
"MIT"
] | null | null | null | problems/cc/minimum-time-difference.cc | FisherCloud/LeetCode | ad831c0f00d91bb44612b0e8b5a7540e1cfc296e | [
"MIT"
] | null | null | null | problems/cc/minimum-time-difference.cc | FisherCloud/LeetCode | ad831c0f00d91bb44612b0e8b5a7540e1cfc296e | [
"MIT"
] | null | null | null | /*
* @Description: https://leetcode-cn.com/problems/minimum-time-difference/
* @Author: 鱼摆摆
* @Github: https://github.com/FisherCloud
* @Date: 2019-08-29 15:14:04
* @LastEditTime: 2019-08-29 15:49:36
*/
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
... | 24.115385 | 102 | 0.533493 | FisherCloud |
f2841cdeed81cb0b377a328f5bfae1957d2ddbfe | 1,592 | cpp | C++ | src/sconelib/scone/controllers/PatternNeuron.cpp | tgeijten/scone-core | d435b22f34b7fea71552dcf7d6def71508c39132 | [
"Apache-2.0"
] | 5 | 2021-04-30T14:30:20.000Z | 2022-03-27T09:58:24.000Z | src/sconelib/scone/controllers/PatternNeuron.cpp | tgeijten/scone-core | d435b22f34b7fea71552dcf7d6def71508c39132 | [
"Apache-2.0"
] | 4 | 2021-06-15T10:52:10.000Z | 2021-12-15T10:25:21.000Z | src/sconelib/scone/controllers/PatternNeuron.cpp | tgeijten/scone-core | d435b22f34b7fea71552dcf7d6def71508c39132 | [
"Apache-2.0"
] | 2 | 2021-05-02T13:38:19.000Z | 2021-07-22T19:37:07.000Z | /*
** PatternNeuron.cpp
**
** Copyright (C) 2013-2019 Thomas Geijtenbeek and contributors. All rights reserved.
**
** This file is part of SCONE. For more information, see http://scone.software.
*/
#include "PatternNeuron.h"
#include "NeuralController.h"
#include "scone/model/Model.h"
#include <cmath>
#include "spot/p... | 30.037736 | 114 | 0.633794 | tgeijten |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.