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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3d36d688ed9f62d765df1eb807d16cf87f1ba5d | 1,044 | cpp | C++ | atcoder/edu_dp/grid1.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | atcoder/edu_dp/grid1.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | atcoder/edu_dp/grid1.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | #include <iostream>
#include <cassert>
#include <cstring>
#include <vector>
using namespace std;
#define p 1000000007
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
t = 1;
while(t--){
int h,w;
cin >> h >> w;
vector<vector<char>> a(h,vector<char>(w));
... | 21.75 | 59 | 0.360153 | udayan14 |
f3d818a75f35c4a1e62f594922eb2d12623e3233 | 5,467 | cpp | C++ | tools/clang/test/SemaCXX/attr-deprecated.cpp | nettrino/IntFlow | 0400aef5da2c154268d8b020e393c950435395b3 | [
"Unlicense"
] | 16 | 2015-09-08T08:49:11.000Z | 2019-07-20T14:46:20.000Z | src/llvm/tools/clang/test/SemaCXX/attr-deprecated.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2019-02-10T08:27:48.000Z | 2019-02-10T08:27:48.000Z | src/llvm/tools/clang/test/SemaCXX/attr-deprecated.cpp | jeltz/rust-debian-package | 07eaa3658867408248c555b1b3a593c012b4f931 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 7 | 2016-05-26T17:31:46.000Z | 2020-11-04T06:39:23.000Z | // RUN: %clang_cc1 %s -verify -fsyntax-only
class A {
void f() __attribute__((deprecated)); // expected-note 2 {{declared here}}
void g(A* a);
void h(A* a) __attribute__((deprecated));
int b __attribute__((deprecated)); // expected-note 2 {{declared here}}
};
void A::g(A* a)
{
f(); // expected-warning{{'f' ... | 23.165254 | 96 | 0.583318 | nettrino |
f3db22665cfe5d88da23c03678c52b2a3fee3792 | 706 | hpp | C++ | source/problem/SWE/problem_data_structure/swe_global_data.hpp | jgbarbosa/dgswemv2 | b44fd05c4f461a301fc3695671898c91e3153d7b | [
"MIT"
] | 5 | 2018-05-30T08:43:10.000Z | 2021-12-14T18:33:10.000Z | source/problem/SWE/problem_data_structure/swe_global_data.hpp | jgbarbosa/dgswemv2 | b44fd05c4f461a301fc3695671898c91e3153d7b | [
"MIT"
] | 57 | 2018-05-08T21:44:14.000Z | 2019-11-07T17:13:30.000Z | source/problem/SWE/problem_data_structure/swe_global_data.hpp | jgbarbosa/dgswemv2 | b44fd05c4f461a301fc3695671898c91e3153d7b | [
"MIT"
] | 7 | 2018-05-07T21:50:49.000Z | 2021-04-30T14:02:02.000Z | #ifndef SWE_GLOBAL_DATA_HPP
#define SWE_GLOBAL_DATA_HPP
#ifdef HAS_PETSC
#include <petscksp.h>
#endif
namespace SWE {
struct GlobalData {
#ifndef HAS_PETSC
SparseMatrix<double> delta_hat_global;
DynVector<double> rhs_global;
#endif
#ifdef HAS_PETSC
Mat delta_hat_global;
Vec rhs_global;
KSP ksp;
... | 16.418605 | 42 | 0.652975 | jgbarbosa |
f3dcfbbbdb5514393ff9c19381b4c3efd9eae73a | 2,572 | cpp | C++ | src/shogun/preprocessor/RescaleFeatures.cpp | Arpit2601/shogun | e509f8c57f47dc74b3f791d450a70b770d11582a | [
"BSD-3-Clause"
] | 1 | 2019-10-02T11:10:08.000Z | 2019-10-02T11:10:08.000Z | src/shogun/preprocessor/RescaleFeatures.cpp | Arpit2601/shogun | e509f8c57f47dc74b3f791d450a70b770d11582a | [
"BSD-3-Clause"
] | null | null | null | src/shogun/preprocessor/RescaleFeatures.cpp | Arpit2601/shogun | e509f8c57f47dc74b3f791d450a70b770d11582a | [
"BSD-3-Clause"
] | 1 | 2020-06-02T09:15:40.000Z | 2020-06-02T09:15:40.000Z | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Viktor Gal, Bjoern Esser
*/
#include <algorithm>
#include <shogun/base/range.h>
#include <shogun/mathematics/linalg/LinalgNamespace.h>
#include <shogun/preprocessor/RescaleFeatures.h>
using namespace shogun;
CRescaleFea... | 23.381818 | 89 | 0.698678 | Arpit2601 |
f3de22d59bb58152e0bd29335c253c7302c02707 | 105,655 | hh | C++ | tests/Titon/View/Helper/FormHelperTest.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | tests/Titon/View/Helper/FormHelperTest.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | tests/Titon/View/Helper/FormHelperTest.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh
namespace Titon\View\Helper;
use Titon\Model\Model;
use Titon\Test\TestCase;
use Titon\Utility\State\Get;
use Titon\Utility\State\Post;
use Titon\Utility\State\Server;
/**
* @property \Titon\View\Helper\FormHelper $object
*/
class FormHelperTest extends TestCase {
protected function setUp(): void {
... | 52.149556 | 231 | 0.51582 | ciklon-z |
f3e01b2c4a201a638d980cb095ec86ffdae98ccd | 656 | cpp | C++ | design/designHashset.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | 20 | 2022-01-04T19:36:14.000Z | 2022-03-21T15:35:09.000Z | design/designHashset.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | design/designHashset.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | // Leetcode - 705 - Design HashSet
public:
vector<int> store[200];
int N = 200;
MyHashSet()
{
}
void add(int key)
{
int mod = key % N;
if (!contains(key))
{
store[mod].push_back(key);
}
}
void remove(int key)
{
int mod = key % N;
for (int i = 0; i < store[mod].size(); i++)
{
... | 15.619048 | 53 | 0.454268 | Gooner1886 |
f3e23b657d38b08a78643372db69e7757f0a3e29 | 4,031 | cpp | C++ | tools/car/Rtt_Car.cpp | DannyGlover/corona | 19f9cfae513a89667fe3d5f2a0b427b59558d26b | [
"MIT"
] | 49 | 2020-06-10T04:49:04.000Z | 2021-03-11T18:31:12.000Z | tools/car/Rtt_Car.cpp | DannyGlover/corona | 19f9cfae513a89667fe3d5f2a0b427b59558d26b | [
"MIT"
] | 28 | 2020-07-13T17:01:02.000Z | 2021-03-07T23:53:41.000Z | tools/car/Rtt_Car.cpp | DannyGlover/corona | 19f9cfae513a89667fe3d5f2a0b427b59558d26b | [
"MIT"
] | 4 | 2020-07-06T19:04:54.000Z | 2020-12-14T05:39:31.000Z | //////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: support@coronalabs.com
//
/////////////////////////... | 22.394444 | 137 | 0.508063 | DannyGlover |
f3e57af2d8f3b57d150bca29ce69d3ff74748723 | 53,719 | cpp | C++ | tf2_src/movieobjects/dmetestmesh.cpp | IamIndeedGamingAsHardAsICan03489/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | src/movieobjects/dmetestmesh.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | null | null | null | src/movieobjects/dmetestmesh.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "movieobjects/dmetestmesh.h"
#include "movieobjects/dmetransform.h"
#include "movieobjects_interfaces.h"
#include "tier0/dbg.h"
#inclu... | 30.556883 | 131 | 0.61589 | IamIndeedGamingAsHardAsICan03489 |
f3ea6866177de806e2ac8cd15f0874c9934b3bb7 | 1,199 | hpp | C++ | src/include/guinsoodb/storage/buffer/managed_buffer.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/include/guinsoodb/storage/buffer/managed_buffer.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/include/guinsoodb/storage/buffer/managed_buffer.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | //===----------------------------------------------------------------------===//
// GuinsooDB
//
// guinsoodb/storage/buffer/managed_buffer.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "guinsoodb/common/common.hpp"
#include "g... | 34.257143 | 113 | 0.6397 | GuinsooLab |
f3ece4f20a394c4c0bd623d1505d279db5bae562 | 5,692 | cpp | C++ | src/evaluator/blockauto/transform/FixedTransformEvaluator.cpp | neophack/steam | 28f0637e3ae4ff2c21ad12b2331c535e9873c997 | [
"BSD-3-Clause"
] | null | null | null | src/evaluator/blockauto/transform/FixedTransformEvaluator.cpp | neophack/steam | 28f0637e3ae4ff2c21ad12b2331c535e9873c997 | [
"BSD-3-Clause"
] | null | null | null | src/evaluator/blockauto/transform/FixedTransformEvaluator.cpp | neophack/steam | 28f0637e3ae4ff2c21ad12b2331c535e9873c997 | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////////////////
/// \file FixedTransformEvaluator.cpp
///
/// \author Sean Anderson, ASRL
//////////////////////////////////////////////////////////////////////////////////////////////
#include <steam/evaluator/blockauto/transform/FixedTran... | 50.821429 | 124 | 0.496311 | neophack |
f3ed0fc34529722045470521f52658cd9dda759b | 325 | cpp | C++ | coding/codeforces/946_A.cpp | aguilarpgc/coding-preparation | 00547d499adda5a6cdbe90acae8a0e88a2d8d69e | [
"MIT"
] | 4 | 2021-04-11T23:55:54.000Z | 2022-03-07T20:06:33.000Z | coding/codeforces/946_A.cpp | aguilarpgc/coding-preparation | 00547d499adda5a6cdbe90acae8a0e88a2d8d69e | [
"MIT"
] | null | null | null | coding/codeforces/946_A.cpp | aguilarpgc/coding-preparation | 00547d499adda5a6cdbe90acae8a0e88a2d8d69e | [
"MIT"
] | null | null | null | //#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
int a[n];
int r=0;
for (int i=0; i<n; i++) {
cin >> a[i];
r += abs(a[i]);
}
cout << r << endl;
return ... | 13 | 29 | 0.421538 | aguilarpgc |
f3eec455ca8f30db47e68f356b809cc713bc5731 | 2,858 | cpp | C++ | src/services/xss/end_of_data_handler.cpp | syakesaba/c-icap-xss | 9bbc7a346eecebf98c2fad02b892d3e2f45d7519 | [
"MIT"
] | 2 | 2015-01-20T23:40:33.000Z | 2020-10-21T12:49:27.000Z | src/services/xss/end_of_data_handler.cpp | syakesaba/c-icap-xss | 9bbc7a346eecebf98c2fad02b892d3e2f45d7519 | [
"MIT"
] | null | null | null | src/services/xss/end_of_data_handler.cpp | syakesaba/c-icap-xss | 9bbc7a346eecebf98c2fad02b892d3e2f45d7519 | [
"MIT"
] | null | null | null | /*
Anti-XSS c-icap service
end_of_data_handler.cpp
Copyright (C) 2013 SYA-KE
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your ... | 35.283951 | 82 | 0.612666 | syakesaba |
f3f2e98af14be66fde1a598aa5a14197c5ae1495 | 2,708 | hh | C++ | include/ctrpp/ints.hh | TimmSkiller/ctrpp | 8b266a87e294207ccab7e196978a1f4ec217f104 | [
"MIT"
] | null | null | null | include/ctrpp/ints.hh | TimmSkiller/ctrpp | 8b266a87e294207ccab7e196978a1f4ec217f104 | [
"MIT"
] | null | null | null | include/ctrpp/ints.hh | TimmSkiller/ctrpp | 8b266a87e294207ccab7e196978a1f4ec217f104 | [
"MIT"
] | 1 | 2021-07-07T13:22:07.000Z | 2021-07-07T13:22:07.000Z | #ifndef __ints_hh
#define __ints_hh
#include <stdint.h>
#include <string.h>
#include <uint128_t/uint128_t.hh>
#include <ctrpp/constants.hh>
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
typedef... | 18.297297 | 42 | 0.558715 | TimmSkiller |
f3f3122d00b9aab05ef12901126cf988efff7dde | 611 | cpp | C++ | examples/google-code-jam/Vladster/C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/Vladster/C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/Vladster/C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
#define INP_FILE "C-large.in"
#define OUT_FILE "C-large.in.txt"
int main()
{
freopen( INP_FILE , "r" , stdin );
freopen( OUT_FILE , "w" , stdout );
int tstCnt;
cin>>tstCnt;
for(int tst=1;tst<=tstCnt;tst++)
{
int n,mn,totalXor,sum,x;
... | 16.972222 | 40 | 0.531915 | rbenic-fer |
f3f45d2bf7a7774ca6d7dcfa6c26fd5952896b8e | 495 | cpp | C++ | HashMaps/Use HashMaps Inbuilt(UnorderedMaps).cpp | Unknownone-af/Data-Structures | a4d591f012b2998dd34d249dcc0f293be272f617 | [
"MIT"
] | 1 | 2020-06-21T23:57:34.000Z | 2020-06-21T23:57:34.000Z | HashMaps/Use HashMaps Inbuilt(UnorderedMaps).cpp | Unknownone-af/Data-Structures | a4d591f012b2998dd34d249dcc0f293be272f617 | [
"MIT"
] | null | null | null | HashMaps/Use HashMaps Inbuilt(UnorderedMaps).cpp | Unknownone-af/Data-Structures | a4d591f012b2998dd34d249dcc0f293be272f617 | [
"MIT"
] | null | null | null | #include<iostream>
#include<unordered_map>
#include<string>
using namespace std;
int main(){
unordered_map<string,int> ourmap;
pair<string,int> p("abc",1);
ourmap.insert(p);
ourmap["ajay"] = 2;
cout <<"Size : "<<ourmap.size()<<endl;
cout <<ourmap.at("ajay")<<endl;
cout <<ourmap.at("abc")<<endl;
ourmap["... | 22.5 | 40 | 0.608081 | Unknownone-af |
f3f76cec26b62f14f19c1217280ebc32519e139a | 12,489 | cpp | C++ | Tga3D/Source/Tutorials/Tutorial19ModelViewer/source/main.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | 1 | 2022-03-10T11:43:24.000Z | 2022-03-10T11:43:24.000Z | Tga3D/Source/Tutorials/Tutorial19ModelViewer/source/main.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | Tga3D/Source/Tutorials/Tutorial19ModelViewer/source/main.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | // TGP.cpp : Defines the entry point for the application.
//
#include <fstream>
#include <iomanip>
#include <tga2d/light/LightManager.h>
#include <tga2d/graphics/AmbientLight.h>
#include <tga2d/graphics/DirectionalLight.h>
#include <tga2d/graphics/PointLight.h>
#include <tga2d/input/InputManager.h>
#include ... | 33.393048 | 160 | 0.589559 | sarisman84 |
f3fa873f7761f7a5e9ae93b169832a637bf7a5b6 | 309 | cpp | C++ | Demos/10 - Trees/LCA Demo.cpp | Senpat/USACO | 7f65e083e70c10b43224c6e1acbab79af249b942 | [
"MIT"
] | null | null | null | Demos/10 - Trees/LCA Demo.cpp | Senpat/USACO | 7f65e083e70c10b43224c6e1acbab79af249b942 | [
"MIT"
] | null | null | null | Demos/10 - Trees/LCA Demo.cpp | Senpat/USACO | 7f65e083e70c10b43224c6e1acbab79af249b942 | [
"MIT"
] | null | null | null | /**
* Debug the Bugs
* Description: Use for both LCA's
*/
LCA<MX> L;
int N,Q;
int main() {
cin >> N >> Q >> L.R;
F0R(i,N-1) {
int u,v; cin >> u >> v;
L.addEdge(u,v);
}
L.init(N);
F0R(i,Q) {
int u,v; cin >> u >> v;
cout << L.lca(u,v) << "\n";
}
} | 14.045455 | 35 | 0.38835 | Senpat |
6d0810b3ea5289f144703b54a72cea1334c83a10 | 2,715 | cpp | C++ | src/system_monitor_node.cpp | Jaeyoung-Lim/system_monitor_ros | 5bcacc32ad0efe22f00e05469e948d4fb5ef270a | [
"Apache-2.0"
] | null | null | null | src/system_monitor_node.cpp | Jaeyoung-Lim/system_monitor_ros | 5bcacc32ad0efe22f00e05469e948d4fb5ef270a | [
"Apache-2.0"
] | null | null | null | src/system_monitor_node.cpp | Jaeyoung-Lim/system_monitor_ros | 5bcacc32ad0efe22f00e05469e948d4fb5ef270a | [
"Apache-2.0"
] | null | null | null | /*
* system_monitor_node.cpp
*
* Created on: Dez 05, 2018
* Author: Tanja Baumann
*
* launch example:
* roslaunch system_monitor_ros n_processes:=10
*/
#include <mavros_msgs/OnboardComputerStatus.h>
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <fstream>
#include <iostream>
#inclu... | 27.989691 | 110 | 0.68582 | Jaeyoung-Lim |
6d117f013bc8452f1414105f6179253afe3f6487 | 2,311 | cpp | C++ | lib/GWEN-master/gwen/src/Controls/Label.cpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | 13 | 2021-06-30T15:47:33.000Z | 2021-09-18T15:44:34.000Z | lib/GWEN-master/gwen/src/Controls/Label.cpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | null | null | null | lib/GWEN-master/gwen/src/Controls/Label.cpp | mpavlinsky/bobsgame | dd4c0713828594ef601c61785164b3fa41e27e2a | [
"Unlicense"
] | 7 | 2021-06-30T17:14:41.000Z | 2021-10-14T01:41:18.000Z | /*
GWEN
Copyright (c) 2010 Facepunch Studios
See license in Gwen.h
*/
#include "Gwen/Gwen.h"
#include "Gwen/Controls/Label.h"
#include "Gwen/Utility.h"
using namespace Gwen;
using namespace Gwen::Controls;
GWEN_CONTROL_CONSTRUCTOR( Label )
{
m_CreatedFont = NULL;
m_Text = new ControlsInternal::Text( this );
m... | 20.451327 | 116 | 0.682389 | mpavlinsky |
6d156d15f69314eee0a31064805623d99e85c721 | 449 | cpp | C++ | example/main.cpp | Daandelange/ofxDarkKnight | 3d947abd6e5f318fc1cfdcfc20f553541bf146a9 | [
"MIT"
] | 103 | 2018-07-11T16:13:17.000Z | 2022-03-18T14:26:01.000Z | example/main.cpp | Daandelange/ofxDarkKnight | 3d947abd6e5f318fc1cfdcfc20f553541bf146a9 | [
"MIT"
] | 4 | 2018-09-08T23:07:01.000Z | 2022-01-13T18:41:49.000Z | example/main.cpp | Daandelange/ofxDarkKnight | 3d947abd6e5f318fc1cfdcfc20f553541bf146a9 | [
"MIT"
] | 11 | 2019-05-15T22:54:02.000Z | 2021-12-07T01:17:07.000Z | #include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofGLFWWindowSettings settings;
settings.resizable = true;
settings.setSize(1920, 1080);
shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
shared_ptr<... | 23.631579 | 74 | 0.57461 | Daandelange |
6d21c17765512bf88bde0ca9afe57dabd5bd6c94 | 5,225 | hpp | C++ | include/common.hpp | ypsoh/ALTO-1 | a1ff0d5c37336244402964385ac6c12f2f50432e | [
"MIT"
] | null | null | null | include/common.hpp | ypsoh/ALTO-1 | a1ff0d5c37336244402964385ac6c12f2f50432e | [
"MIT"
] | null | null | null | include/common.hpp | ypsoh/ALTO-1 | a1ff0d5c37336244402964385ac6c12f2f50432e | [
"MIT"
] | null | null | null | #ifndef COMMON_HPP_
#define COMMON_HPP_
#include <algorithm>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <inttypes.h>
#include <float.h>
#include <sys/mman.h>
#ifdef USE_MKL_
#include <mkl.h>
#endif
#ifdef USE_ESSL_
#include <essl.h>
#include <cblas.h>
#... | 22.139831 | 93 | 0.627368 | ypsoh |
6d2895eef5a99a48f4bfa43b7d1c6ec116648ec5 | 1,995 | cpp | C++ | Libraries/Common/WebRequest.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 1 | 2019-07-13T03:36:11.000Z | 2019-07-13T03:36:11.000Z | Libraries/Common/WebRequest.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Common/WebRequest.cpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
namespace Zero
{
String WebRequest::GetBoundary()
{
static const String cBoundary("----------ZeroEngine43476095-a5a0-4190-a9b5-bce2d2de5eef$");
return cBoundary;
}
String WebRequest::GetContentTypeHeader()
{
String contentType = BuildString("Content-... | 23.470588 | 105 | 0.679699 | RyanTylerRae |
6d293cdb9bb2ff4381500d52c8b899ab8e2acb47 | 3,988 | cpp | C++ | src/GBuffer.cpp | dipmizu914/ReSTIR_on_Vulkan | 1d9ebbcb975c7993fb6251c2a1f0ad24a1ab18bc | [
"MIT"
] | 9 | 2021-01-30T01:36:10.000Z | 2022-02-11T06:40:45.000Z | src/GBuffer.cpp | dipmizu914/ReSTIR_on_Vulkan | 1d9ebbcb975c7993fb6251c2a1f0ad24a1ab18bc | [
"MIT"
] | null | null | null | src/GBuffer.cpp | dipmizu914/ReSTIR_on_Vulkan | 1d9ebbcb975c7993fb6251c2a1f0ad24a1ab18bc | [
"MIT"
] | 1 | 2021-01-30T08:11:26.000Z | 2021-01-30T08:11:26.000Z | #include "GBuffer.hpp"
#include <cassert>
#include "nvh/fileoperations.hpp"
#include "nvvk/shaders_vk.hpp"
#include "nvvk/pipeline_vk.hpp"
#include "nvvk/renderpasses_vk.hpp"
bool m_formatsInitialized = false;
extern std::vector<std::string> defaultSearchPaths;
void GBuffer::resize(nvvk::AllocatorDedicated* alloca... | 40.693878 | 183 | 0.786861 | dipmizu914 |
6d3521c11e9e294cd0b7299e440331a9290287c3 | 907 | cpp | C++ | src/cascadia/TerminalConnection/init.cpp | Terminal/Terminal | ceb6fe66e18671670974ac40cd1bc55d4102c8ce | [
"MIT"
] | 1 | 2020-12-13T03:30:05.000Z | 2020-12-13T03:30:05.000Z | src/cascadia/TerminalConnection/init.cpp | Terminal/Terminal | ceb6fe66e18671670974ac40cd1bc55d4102c8ce | [
"MIT"
] | null | null | null | src/cascadia/TerminalConnection/init.cpp | Terminal/Terminal | ceb6fe66e18671670974ac40cd1bc55d4102c8ce | [
"MIT"
] | 1 | 2019-12-01T08:42:23.000Z | 2019-12-01T08:42:23.000Z | // Copyright (c) Microsoft Corporation
// Licensed under the MIT license.
#include "pch.h"
// Note: Generate GUID using TlgGuid.exe tool
TRACELOGGING_DEFINE_PROVIDER(
g_hTerminalConnectionProvider,
"Microsoft.Windows.Terminal.Connection",
// {e912fe7b-eeb6-52a5-c628-abe388e5f792}
(0xe912fe7b... | 28.34375 | 82 | 0.676957 | Terminal |
6d367464c2f3b0efeba285c6e16496b6fa0ddf51 | 2,316 | cpp | C++ | src/common/vector_operations/append.cpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | 1 | 2019-08-01T08:21:33.000Z | 2019-08-01T08:21:33.000Z | src/common/vector_operations/append.cpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | src/common/vector_operations/append.cpp | mweisgut/duckdb | 4cff1d7957ce895dd9984a87aa20aef67f5986e6 | [
"MIT"
] | null | null | null | //===--------------------------------------------------------------------===//
// append.cpp
// Description: This file contains the implementation of the append function
//===--------------------------------------------------------------------===//
#include "common/exception.hpp"
#include "common/types/null_value.hpp"... | 31.297297 | 116 | 0.673143 | mweisgut |
6d3d00d31e0cc7a7538572356d729e3641cc8ed0 | 2,537 | hpp | C++ | ReactNativeFrontend/ios/Pods/boost/boost/typeof/std/functional.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | ReactNativeFrontend/ios/Pods/boost/boost/typeof/std/functional.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | ReactNativeFrontend/ios/Pods/boost/boost/typeof/std/functional.hpp | Harshitha91/Tmdb-react-native-node | e06e3f25a7ee6946ef07a1f524fdf62e48424293 | [
"Apache-2.0"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | // Copyright (C) 2005 Arkadiy Vertleyb, Peder Holt.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_TYPEOF_STD_functional_hpp_INCLUDED
#define BOOST_TYPEOF_STD_functional_hpp_INCLUDED
#include <functional>
#include <b... | 40.919355 | 70 | 0.842728 | Harshitha91 |
6d3ed876b5a51f9f3272b2f1ad75d89ab0f12492 | 2,417 | cc | C++ | cpp/MergeKSortedLists.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/MergeKSortedLists.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | cpp/MergeKSortedLists.cc | speedfirst/leetcode | a4d95cf8d75f3cd4d1247ea66efebfb6a848ab51 | [
"BSD-3-Clause"
] | null | null | null | // https://oj.leetcode.com/problems/merge-k-sorted-lists/
namespace MergeKSortedLists {
class NodeComparator {
public:
bool operator ()(ListNode * n1, ListNode * n2) {
return n1->val > n2->val;
}
};
// time complexity: O(nk*logK), space complexity: O(k)
class Solution {
public:
... | 27.465909 | 79 | 0.418287 | speedfirst |
6d3faa5b295e7b290a37e17849472f7d824cbc7c | 1,515 | cpp | C++ | Samples/DX11/SharedTextures/SharedTextures.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | Samples/DX11/SharedTextures/SharedTextures.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | Samples/DX11/SharedTextures/SharedTextures.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2016
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.0 (2016/06/19)
#include "SharedTexturesWindow.h"
int m... | 25.25 | 65 | 0.547195 | vehsakul |
6d3fe8b3f9dc673cb0c2f285c84c1c462d4b2bdf | 919 | cpp | C++ | src/network/server_config.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | src/network/server_config.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | src/network/server_config.cpp | Andrei-Masilevich/barbacoa-server-lib | 2eda2fab20c6c1d5a8a78b71952ca61330d04878 | [
"MIT"
] | null | null | null | #include <server_lib/network/server_config.h>
#include <server_lib/platform_config.h>
#ifdef SERVER_LIB_PLATFORM_LINUX
#include <unistd.h>
#include <fcntl.h>
#endif
namespace server_lib {
namespace network {
std::string unix_local_server_config::preserve_socket_file(const std::string& folder_path)
{
... | 24.184211 | 94 | 0.622416 | Andrei-Masilevich |
6d438cee3b687d8ed80ebed59aa871fa2789dfd4 | 6,730 | hpp | C++ | openstudiocore/src/resultsviewer/LinePlot.hpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 4 | 2015-05-02T21:04:15.000Z | 2015-10-28T09:47:22.000Z | openstudiocore/src/resultsviewer/LinePlot.hpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | null | null | null | openstudiocore/src/resultsviewer/LinePlot.hpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 1 | 2020-11-12T21:52:36.000Z | 2020-11-12T21:52:36.000Z | /**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the... | 23.865248 | 81 | 0.700297 | BIMDataHub |
6d442352abb26e47da4bb9b8f8ff9f2c5e9b7921 | 5,559 | cpp | C++ | lte/gateway/c/session_manager/SpgwServiceClient.cpp | spikey979/magma | bb10db0ba3197c17737cc685a5ce58d00e875ec2 | [
"BSD-3-Clause"
] | null | null | null | lte/gateway/c/session_manager/SpgwServiceClient.cpp | spikey979/magma | bb10db0ba3197c17737cc685a5ce58d00e875ec2 | [
"BSD-3-Clause"
] | null | null | null | lte/gateway/c/session_manager/SpgwServiceClient.cpp | spikey979/magma | bb10db0ba3197c17737cc685a5ce58d00e875ec2 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright 2020 The Magma Authors.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
... | 36.333333 | 88 | 0.683216 | spikey979 |
6d4652c9f15a1e3a6001b3cfe5308245ab0f779e | 2,559 | cpp | C++ | src/main/esl/utility/StreamBuffer.cpp | SLukasDE/esl | 05f443d28fad37f3e9f0b0e8a27a16b842a0e3b8 | [
"MIT"
] | null | null | null | src/main/esl/utility/StreamBuffer.cpp | SLukasDE/esl | 05f443d28fad37f3e9f0b0e8a27a16b842a0e3b8 | [
"MIT"
] | null | null | null | src/main/esl/utility/StreamBuffer.cpp | SLukasDE/esl | 05f443d28fad37f3e9f0b0e8a27a16b842a0e3b8 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2019 Sven Lukas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 29.079545 | 118 | 0.675655 | SLukasDE |
6d479090d0ad4aa8e4db4c9333cbe45edebe68d6 | 1,150 | hpp | C++ | Dodge-Balls/include/dodge-balls.hpp | Reverend-Toady/Dodge-Balls | eaa1018ea5f145266065ef837c9a9e1ae2c061b7 | [
"MIT"
] | 1 | 2022-02-11T17:19:18.000Z | 2022-02-11T17:19:18.000Z | Dodge-Balls/include/dodge-balls.hpp | Reverend-Toady/Dodge-Balls | eaa1018ea5f145266065ef837c9a9e1ae2c061b7 | [
"MIT"
] | null | null | null | Dodge-Balls/include/dodge-balls.hpp | Reverend-Toady/Dodge-Balls | eaa1018ea5f145266065ef837c9a9e1ae2c061b7 | [
"MIT"
] | null | null | null | #ifndef DODGE_BALLS_H
#define DODGE_BALLS_H
#include <iostream>
#include <vector>
#include <random>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <SFML/Network.hpp>
class Game
{
private:
sf::RenderWindow *window;
sf::Event event;
sf::CircleShape enemy;
s... | 18.548387 | 54 | 0.672174 | Reverend-Toady |
6d48c6cb9a5cb51dcca7c7c4c05702fecc62728f | 412 | hpp | C++ | swimming_pool/swimming_pool/Entities/Subscription_Folder/Pool_subscription.hpp | Foxitute/Swimming_Pool_Subscription_App | 48e316b275ceff7d7e26961eaedf440ced4647b7 | [
"MIT"
] | null | null | null | swimming_pool/swimming_pool/Entities/Subscription_Folder/Pool_subscription.hpp | Foxitute/Swimming_Pool_Subscription_App | 48e316b275ceff7d7e26961eaedf440ced4647b7 | [
"MIT"
] | null | null | null | swimming_pool/swimming_pool/Entities/Subscription_Folder/Pool_subscription.hpp | Foxitute/Swimming_Pool_Subscription_App | 48e316b275ceff7d7e26961eaedf440ced4647b7 | [
"MIT"
] | null | null | null | #pragma once
#ifndef Pool_subscription_hpp
#define Pool_subscription_hpp
#include "date_time.hpp"
#include "Entity_base.hpp"
class Pool_subscription : public Entity_base
{
public:
int pool_id = 0;
int subscription_id = 0;
int unit_count = 0;
date_time* created_at = nullptr;
date_time* effective_fr... | 20.6 | 44 | 0.735437 | Foxitute |
6d4b1c9bbdb5e6c2b1991691a62625feb2d41c29 | 555 | cpp | C++ | dog_years.cpp | Emon-ProCoder7/Cpp | b6b791d0d1324d84b6a4d5fc39c906d96ad73286 | [
"MIT"
] | 1 | 2021-05-18T07:26:53.000Z | 2021-05-18T07:26:53.000Z | dog_years.cpp | Emon-ProCoder7/Cpp | b6b791d0d1324d84b6a4d5fc39c906d96ad73286 | [
"MIT"
] | null | null | null | dog_years.cpp | Emon-ProCoder7/Cpp | b6b791d0d1324d84b6a4d5fc39c906d96ad73286 | [
"MIT"
] | null | null | null | #include <iostream>
int main() {
int dog_age;
std::cout << "Please, input your Dog age: ";
std::cin >> dog_age;
// Tommy is 6 years old
int early_years, later_years, human_years;
// Fact: The first two years of a dog’s life count as 21 human years.
early_years = 21;
// Fact: Each following yea... | 21.346154 | 86 | 0.643243 | Emon-ProCoder7 |
6d4f61158f70a71d936460ab7c79785a930c102d | 11,579 | cxx | C++ | src/core/memory.cxx | LittleGreyCells/escheme-interpreter | 4843c2615f7f576c52c1d56ba3b6b94795d8f584 | [
"MIT"
] | null | null | null | src/core/memory.cxx | LittleGreyCells/escheme-interpreter | 4843c2615f7f576c52c1d56ba3b6b94795d8f584 | [
"MIT"
] | null | null | null | src/core/memory.cxx | LittleGreyCells/escheme-interpreter | 4843c2615f7f576c52c1d56ba3b6b94795d8f584 | [
"MIT"
] | null | null | null | #include "memory.hxx"
#include <cstring>
#include <array>
#include <list>
#include <stack>
#include <algorithm>
#include <string.h>
#include "error.hxx"
#include "regstack.hxx"
#include "framestore.hxx"
#include "format.hxx"
#include "symdict.hxx"
namespace escheme
{
SEXPR MEMORY::string_null;
namespace MEMORY
{
... | 19.861063 | 89 | 0.58822 | LittleGreyCells |
6d50fa38bf6ea34e781bb3127707bd96f27ec3a2 | 1,396 | cc | C++ | chapter13/HasPtr.cc | zhangxuhuizju/cpp-primer-5th | e85b8493cc53157b0d1edac45d0c5b57e9a322b5 | [
"OLDAP-2.2.1"
] | 1 | 2019-10-15T08:39:56.000Z | 2019-10-15T08:39:56.000Z | chapter13/HasPtr.cc | zhangxuhuizju/cpp-primer-5th | e85b8493cc53157b0d1edac45d0c5b57e9a322b5 | [
"OLDAP-2.2.1"
] | null | null | null | chapter13/HasPtr.cc | zhangxuhuizju/cpp-primer-5th | e85b8493cc53157b0d1edac45d0c5b57e9a322b5 | [
"OLDAP-2.2.1"
] | null | null | null | #include <string>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class HasPtr{
public:
friend void swap(HasPtr&, HasPtr&);
friend bool operator<(const HasPtr&, const HasPtr&);
HasPtr(const string &s = string()):
ps(new string(s)), i(0), use(new size_t(1)){}
... | 21.476923 | 71 | 0.546562 | zhangxuhuizju |
6d51196cbabce2d1800b1393612082caa3e41cf0 | 662 | cpp | C++ | src/Tools/Exception/overflow_error/overflow_error.cpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Tools/Exception/overflow_error/overflow_error.cpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | src/Tools/Exception/overflow_error/overflow_error.cpp | codechecker123/aff3ct | 030af3e990027fa803fb2c68f974c9ec0ee79b5d | [
"MIT"
] | null | null | null | #include "overflow_error.hpp"
using namespace aff3ct::tools;
const std::string overflow_error::default_message = "Overflow error.";
overflow_error
::overflow_error() throw()
: exception()
{
}
overflow_error
::overflow_error(const std::string &message) throw()
: exception(message.empty() ? default_message : message)... | 20.6875 | 86 | 0.691843 | codechecker123 |
6d515320c264389885197f78c1db860c1fce1b59 | 2,499 | cpp | C++ | iceoryx_posh/source/popo/trigger.cpp | ithier/iceoryx | 0186384b683c6f421e88f16dba1c663315ba5a4f | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/source/popo/trigger.cpp | ithier/iceoryx | 0186384b683c6f421e88f16dba1c663315ba5a4f | [
"Apache-2.0"
] | 12 | 2020-05-10T12:39:18.000Z | 2021-01-07T05:16:59.000Z | iceoryx_posh/source/popo/trigger.cpp | ithier/iceoryx | 0186384b683c6f421e88f16dba1c663315ba5a4f | [
"Apache-2.0"
] | 1 | 2020-09-23T12:19:57.000Z | 2020-09-23T12:19:57.000Z | // Copyright (c) 2020 by Apex.AI Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | 22.926606 | 100 | 0.688675 | ithier |
6d520602d6bec9ebe445fd6dd8c2d1bb01131a5b | 2,310 | cpp | C++ | src/qtweetdirectmessagesshow.cpp | minimoog/QTweetLib | e8c62faccd38c694dcfc7a5d3e55982cf7daaffc | [
"Apache-2.0"
] | 43 | 2015-02-27T07:55:10.000Z | 2022-02-20T13:37:48.000Z | src/qtweetdirectmessagesshow.cpp | minimoog/QTweetLib | e8c62faccd38c694dcfc7a5d3e55982cf7daaffc | [
"Apache-2.0"
] | 3 | 2015-11-25T18:05:37.000Z | 2019-07-24T19:58:32.000Z | src/qtweetdirectmessagesshow.cpp | minimoog/QTweetLib | e8c62faccd38c694dcfc7a5d3e55982cf7daaffc | [
"Apache-2.0"
] | 14 | 2015-01-29T18:50:58.000Z | 2019-12-31T07:35:39.000Z | /* Copyright 2013 Antonie Jovanoski
*
* 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 t... | 28.875 | 114 | 0.731169 | minimoog |
6d555ec2be6ed4cd5d98f6253576fa05ab114289 | 9,252 | cpp | C++ | test/Math/BoundingCircleTest.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | test/Math/BoundingCircleTest.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | test/Math/BoundingCircleTest.cpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#include <Pomdog/Math/BoundingCircle.hpp>
#include <Pomdog/Math/BoundingBox2D.hpp>
#include <Pomdog/Math/ContainmentType.hpp>
#include <gtest/iutest_switch.hpp>
using namespace Pomdog;
TEST(BoundingCircle, Constructors)
{
BoundingCircle circ... | 55.071429 | 149 | 0.714872 | ValtoForks |
6d55762e7dffc81e594f13c872ed3bd98fc782d1 | 706 | cpp | C++ | abc175/b.cpp | magurotuna/atcoder-submissions-cpp | afbf5df2f22bcd17d8ad580d3c143602d9af7398 | [
"CC0-1.0"
] | null | null | null | abc175/b.cpp | magurotuna/atcoder-submissions-cpp | afbf5df2f22bcd17d8ad580d3c143602d9af7398 | [
"CC0-1.0"
] | null | null | null | abc175/b.cpp | magurotuna/atcoder-submissions-cpp | afbf5df2f22bcd17d8ad580d3c143602d9af7398 | [
"CC0-1.0"
] | null | null | null | #include <bits/stdc++.h>
using ll = long long int;
int main() {
int n;
std::cin >> n;
std::vector<int> ls(n);
for (int i = 0; i < n; i++)
std::cin >> ls[i];
int ans = 0;
for (int i = 0; i < n; i++) {
for (int j = i + 1; j < n; j++) {
for (int k = j + 1; k < n; k++) {
if (ls.at(i) == ... | 21.393939 | 59 | 0.403683 | magurotuna |
6d5e39aa56d59eb0b889cf7aa645f67c8529a203 | 25,667 | cpp | C++ | src/feature_broker/test/feature_broker_test.cpp | TomFinley/FeatureBroker | 481a8f9a1a2e0980eee14d84f712ec3abf40ef0e | [
"MIT"
] | 10 | 2020-03-17T00:35:54.000Z | 2021-08-22T12:31:27.000Z | src/feature_broker/test/feature_broker_test.cpp | TomFinley/FeatureBroker | 481a8f9a1a2e0980eee14d84f712ec3abf40ef0e | [
"MIT"
] | 3 | 2020-03-17T17:25:15.000Z | 2020-03-17T21:10:41.000Z | src/feature_broker/test/feature_broker_test.cpp | TomFinley/FeatureBroker | 481a8f9a1a2e0980eee14d84f712ec3abf40ef0e | [
"MIT"
] | 6 | 2020-03-13T15:39:03.000Z | 2021-11-10T08:19:06.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include <inference/feature_broker.hpp>
#include <inference/synchronous_feature_broker.hpp>
#include <memory>
#include "add_five_model.hpp"
#include "add_model.hpp"
#include "error_model.hpp"
#include "gtest/gtest.h"
using namespace ::inferen... | 39.18626 | 120 | 0.716523 | TomFinley |
6d6187a49769f678c0699c5e6d0e3763ff35f636 | 1,217 | cpp | C++ | package/win32/android/hsplib/hsp3/ndkgp/gpcam.cpp | sharkpp/openhsp | 0d412fd8f79a6ccae1d33c13addc06fb623fb1fe | [
"BSD-3-Clause"
] | null | null | null | package/win32/android/hsplib/hsp3/ndkgp/gpcam.cpp | sharkpp/openhsp | 0d412fd8f79a6ccae1d33c13addc06fb623fb1fe | [
"BSD-3-Clause"
] | null | null | null | package/win32/android/hsplib/hsp3/ndkgp/gpcam.cpp | sharkpp/openhsp | 0d412fd8f79a6ccae1d33c13addc06fb623fb1fe | [
"BSD-3-Clause"
] | null | null | null | #include "gamehsp.h"
#include "../../hsp3/hsp3config.h"
#include "../supio.h"
#include "../sysreq.h"
/*------------------------------------------------------------*/
/*
Camera process
*/
/*------------------------------------------------------------*/
Camera *gamehsp::getCamera( int camid )
{
gpobj *obj = getObj(... | 18.723077 | 81 | 0.559573 | sharkpp |
6d63e7e8abad309b9583ca46241d4800b009c616 | 1,315 | cpp | C++ | src/meanestimator.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 22 | 2016-08-11T06:16:25.000Z | 2022-02-22T00:06:59.000Z | src/meanestimator.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 9 | 2016-12-08T12:42:38.000Z | 2021-12-28T20:12:15.000Z | src/meanestimator.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 8 | 2017-06-26T13:15:06.000Z | 2021-11-12T18:39:54.000Z | //
// meanestimator.cpp
// barcode_project
//
// Created by luzhao on 1/16/16.
// Copyright © 2016 luzhao. All rights reserved.
//
#include "meanestimator.hpp"
#include "barcodecluster.hpp"
#include "meansequentialestimator.h"
#include <algorithm>
#include <cassert>
#include <math.h>
#include <list>
#include <mem... | 27.978723 | 103 | 0.615209 | LaoZZZZZ |
6d6686a6102d78fbc824aa15b0e2a7357c9170f3 | 1,306 | cpp | C++ | geometry/point3d.cpp | triffon/oop-2013-14 | d4df57b2bf084fff81d8549b0a969c7c22166944 | [
"MIT"
] | null | null | null | geometry/point3d.cpp | triffon/oop-2013-14 | d4df57b2bf084fff81d8549b0a969c7c22166944 | [
"MIT"
] | null | null | null | geometry/point3d.cpp | triffon/oop-2013-14 | d4df57b2bf084fff81d8549b0a969c7c22166944 | [
"MIT"
] | null | null | null | /*
* point3d.cpp
*
* Created on: 14.03.2014
* Author: trifon
*/
#include <iostream>
using namespace std;
#include "point3d.h"
Point3D::Point3D(Point2D p, double z) {
// setX(p.getX());
// Point3D::p.setX(p.getX());
// this->p.setX(p.getX());
// this->p.setY(p.getY());
this->p = p;
this->z = z;
}
Po... | 14.511111 | 51 | 0.575804 | triffon |
6d6776b20f7f84ca506db249a1005f459384af12 | 10,518 | cpp | C++ | modules/freenect/KinectDevice.cpp | crocdialer/KinskiGL | 2f800c5aac04ad91e5046cb31b9dd93eaa52a67c | [
"BSL-1.0"
] | 11 | 2016-11-17T21:32:51.000Z | 2021-03-30T20:31:41.000Z | modules/freenect/KinectDevice.cpp | crocdialer/KinskiGL | 2f800c5aac04ad91e5046cb31b9dd93eaa52a67c | [
"BSL-1.0"
] | 1 | 2015-04-28T13:10:14.000Z | 2015-04-28T13:10:14.000Z | modules/freenect/KinectDevice.cpp | crocdialer/KinskiGL | 2f800c5aac04ad91e5046cb31b9dd93eaa52a67c | [
"BSL-1.0"
] | 2 | 2015-04-28T12:26:46.000Z | 2021-11-12T08:03:00.000Z | // __ ___ ____ _____ ______ _______ ________ _______ ______ _____ ____ ___ __
//
// Copyright (C) 1993-2011, ART+COM AG Berlin, Germany <www.artcom.de>
//
// It is 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)
//... | 33.711538 | 112 | 0.495341 | crocdialer |
6d689eaa67c57a22d0c5945f25cc8957ab318299 | 5,562 | cc | C++ | src/road_label.cc | FlyAlCode/RoadLabel | dfa93df5941ee19cd2fbbab27e3081dbce6cfcfb | [
"Apache-2.0"
] | null | null | null | src/road_label.cc | FlyAlCode/RoadLabel | dfa93df5941ee19cd2fbbab27e3081dbce6cfcfb | [
"Apache-2.0"
] | null | null | null | src/road_label.cc | FlyAlCode/RoadLabel | dfa93df5941ee19cd2fbbab27e3081dbce6cfcfb | [
"Apache-2.0"
] | null | null | null | #include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "road_label.h"
// debug
#include <iostream>
/******************************************
* public *
* ****************************************/
// initial static class number
// double RoadLabelor:... | 32.911243 | 146 | 0.564186 | FlyAlCode |
6d68cc4fbd43176994bb6d6bc2a38291dfc41bc1 | 9,029 | hpp | C++ | amgcl/coarsening/smoothed_aggregation.hpp | tenglongcong/amgcl | 61948e1a49c1cbc9fdb68c92d532c8b70e021516 | [
"MIT"
] | 504 | 2015-03-11T13:50:39.000Z | 2022-03-20T13:08:55.000Z | amgcl/coarsening/smoothed_aggregation.hpp | tenglongcong/amgcl | 61948e1a49c1cbc9fdb68c92d532c8b70e021516 | [
"MIT"
] | 209 | 2015-01-02T19:13:22.000Z | 2022-03-30T06:44:12.000Z | amgcl/coarsening/smoothed_aggregation.hpp | tenglongcong/amgcl | 61948e1a49c1cbc9fdb68c92d532c8b70e021516 | [
"MIT"
] | 92 | 2015-01-04T06:11:22.000Z | 2022-03-24T09:49:12.000Z | #ifndef AMGCL_COARSENING_SMOOTHED_AGGREGATION_HPP
#define AMGCL_COARSENING_SMOOTHED_AGGREGATION_HPP
/*
The MIT License
Copyright (c) 2012-2021 Denis Demidov <dennis.demidov@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the... | 36.261044 | 117 | 0.575479 | tenglongcong |
6d70562b8df6f36db0188638e8850da7355d0271 | 3,932 | cpp | C++ | cpp_module_03/ex02/ClapTrap.cpp | anolivei/cpp_piscine42 | d33bfccd38ed62d393920601f7449b74836c5219 | [
"MIT"
] | 1 | 2022-01-27T02:32:39.000Z | 2022-01-27T02:32:39.000Z | cpp_module_03/ex02/ClapTrap.cpp | anolivei/cpp_piscine42 | d33bfccd38ed62d393920601f7449b74836c5219 | [
"MIT"
] | null | null | null | cpp_module_03/ex02/ClapTrap.cpp | anolivei/cpp_piscine42 | d33bfccd38ed62d393920601f7449b74836c5219 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ClapTrap.cpp :+: :+: :+: ... | 20.914894 | 80 | 0.516785 | anolivei |
6d71d32dd6b8717921dc503e4a75dc078c796e6e | 7,842 | cpp | C++ | src/fs/dir.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/fs/dir.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/fs/dir.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "dir.hpp"
#include "../ovr_functor.hpp"
namespace rev {
// ----------------- Dir::PathReset -----------------
Dir::PathReset::PathReset(): cwd(DirDep::Getcwd()) {}
Dir::PathReset::~PathReset() {
if(!std::uncaught_exception())
DirDep::Chdir(cwd);
}
// ----------------- Dir -----------------
const c... | 23.835866 | 98 | 0.58888 | degarashi |
6d724520e5cb2d0e3e58cc61b1ade6cf994757a2 | 943 | hpp | C++ | SimpleChess/src/libchess/ChessPiece.hpp | malor/archive | b6d3523f5329ffa2c5d3218322960a581fcacb1f | [
"MIT"
] | null | null | null | SimpleChess/src/libchess/ChessPiece.hpp | malor/archive | b6d3523f5329ffa2c5d3218322960a581fcacb1f | [
"MIT"
] | null | null | null | SimpleChess/src/libchess/ChessPiece.hpp | malor/archive | b6d3523f5329ffa2c5d3218322960a581fcacb1f | [
"MIT"
] | null | null | null | #ifndef __CHESSPIECE_H__
#define __CHESSPIECE_H__
#include <iosfwd>
#include <map>
#include <boost/shared_ptr.hpp>
#include "Visitor.hpp"
#include "common.hpp"
class ChessBoard;
class ChessPiece;
typedef boost::shared_ptr<ChessPiece> (*CreateChessPiece)();
class DLL_PUBLIC ChessPiece
{
public:
enum Color {BL... | 20.5 | 67 | 0.677625 | malor |
6d76081692acb159fb46f40ad904112e914cc2df | 33,190 | cpp | C++ | gpllib/source/common/gplcTypeSystem.cpp | bnoazx005/gplc | 3fffd6961daea0896481f38a82664c6fcba2406d | [
"Apache-2.0"
] | 1 | 2019-08-06T07:00:18.000Z | 2019-08-06T07:00:18.000Z | gpllib/source/common/gplcTypeSystem.cpp | bnoazx005/gplc | 3fffd6961daea0896481f38a82664c6fcba2406d | [
"Apache-2.0"
] | 7 | 2019-07-11T12:23:06.000Z | 2019-08-24T11:05:02.000Z | gpllib/source/common/gplcTypeSystem.cpp | bnoazx005/gplc | 3fffd6961daea0896481f38a82664c6fcba2406d | [
"Apache-2.0"
] | null | null | null | /*!
\author Ildar Kasimov
\date 23.07.2016
\copyright
\brief The file contains types defenition
\todo
*/
#include "common/gplcTypeSystem.h"
#include "parser/gplcASTNodes.h"
#include "common/gplcValues.h"
#include "common/gplcSymTable.h"
#include "common/gplcConstExprInterpreter.h"
#include "parser/gplcASTNode... | 25.239544 | 181 | 0.715728 | bnoazx005 |
6d7ec2c692937bd79bea0cea5b8a0557f75f0901 | 292 | cpp | C++ | src/Core/Utils/Math.cpp | pedrohsreis/boulos | a5b68a32cad8cc1fb9f6fbf47fc487ef99d3166e | [
"MIT"
] | 3 | 2018-09-18T18:05:05.000Z | 2019-10-23T17:47:07.000Z | src/Core/Utils/Math.cpp | pedrohsreis/boulos | a5b68a32cad8cc1fb9f6fbf47fc487ef99d3166e | [
"MIT"
] | 1 | 2020-06-08T18:48:32.000Z | 2020-06-19T21:41:16.000Z | src/Core/Utils/Math.cpp | pedrohsreis/boulos | a5b68a32cad8cc1fb9f6fbf47fc487ef99d3166e | [
"MIT"
] | 9 | 2018-09-11T17:19:16.000Z | 2019-07-30T16:43:56.000Z | #include "Math.h"
#include <cstdlib>
#include <cmath>
extern "C"
{
float FixAngle(float rad)
{
rad = std::fmod(rad, 2 * PI);
if (rad > PI)
rad -= 2 * PI;
return rad;
}
float FixAngled(float deg)
{
deg = std::fmod(deg, 360);
if (deg > 180)
deg -= 360;
return deg;
}
} | 13.272727 | 31 | 0.565068 | pedrohsreis |
6d7f392047595ef80c9eb49d30a148c648e2f67c | 1,298 | cpp | C++ | src/Jobs/ThreadQueue.cpp | anandrav/AnandCraft | 12a8047b4ec55cd1573a4159cc9736aa0ce18797 | [
"MIT"
] | 1 | 2020-04-29T01:46:33.000Z | 2020-04-29T01:46:33.000Z | src/Jobs/ThreadQueue.cpp | anandrav/AnandCraft | 12a8047b4ec55cd1573a4159cc9736aa0ce18797 | [
"MIT"
] | null | null | null | src/Jobs/ThreadQueue.cpp | anandrav/AnandCraft | 12a8047b4ec55cd1573a4159cc9736aa0ce18797 | [
"MIT"
] | null | null | null | #include "ThreadQueue.h"
#include <iostream>
using namespace std;
const int AVAILABLE_CORES = std::thread::hardware_concurrency() - 1; // leave one core for main thread
const int NUM_THREADS = clamp(AVAILABLE_CORES, 1, 3); // >= 1 in thread pool, <= 3 because synchronization is slow
ThreadQueue::ThreadQueu... | 25.96 | 115 | 0.580123 | anandrav |
6d7f8d2cb3ec2128b15d8adaaf775e6de06873a6 | 415 | cpp | C++ | atcoder/abc103/A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | atcoder/abc103/A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | atcoder/abc103/A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
vector<int> A(3);
cin >> A[0] >> A[1] >> A[2];
sort(A.begin(), A.end());
int ans = numeric_limits<int>::max();
do {
ans = min(ans, abs(A[1]-A[0]) + abs(A[2]-A[1]))... | 21.842105 | 56 | 0.522892 | xirc |
6d8ca150f3ed4c6aa802184ae6ddae82c8dbd3a1 | 4,814 | cpp | C++ | SDKs/CryCode/3.8.1/CryEngine/CryEntitySystem/ClipVolumeProxy.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.8.1/CryEngine/CryEntitySystem/ClipVolumeProxy.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.8.1/CryEngine/CryEntitySystem/ClipVolumeProxy.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | #include "stdafx.h"
#include "ClipVolumeProxy.h"
#include "CGFContent.h"
//////////////////////////////////////////////////////////////////////////
CClipVolumeProxy::CClipVolumeProxy()
: m_pEntity(NULL)
, m_pClipVolume(NULL)
, m_pBspTree(NULL)
{
}
void CClipVolumeProxy::ProcessEvent( SEntityEvent& event )
{
if (... | 27.19774 | 152 | 0.718529 | amrhead |
6d8f0a8ab1b2b15afaa744e3580a84235f09b5d4 | 285 | cpp | C++ | UnitTests/Matrix2Tests.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 44 | 2018-07-08T16:44:53.000Z | 2022-02-06T14:07:30.000Z | UnitTests/Matrix2Tests.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 31 | 2019-03-24T16:00:38.000Z | 2022-02-24T20:23:18.000Z | UnitTests/Matrix2Tests.cpp | sjohal21/Floating-Sandbox | 0170e3696ed4f012f5f17fdbbdaef1af4117f495 | [
"CC-BY-4.0"
] | 24 | 2018-11-08T21:58:53.000Z | 2022-01-12T12:04:42.000Z | #include <GameCore/Matrix.h>
#include "gtest/gtest.h"
TEST(Matrix2Tests, Constructor_DefaultValue)
{
Matrix2 m(10, 12, 242.0f);
for (int x = 0; x < 10; ++x)
{
for (int y = 0; y < 12; ++y)
{
EXPECT_EQ(m[vec2i(x, y)], 242.0f);
}
}
} | 17.8125 | 46 | 0.501754 | sjohal21 |
6d903c4db19ff69a1c935629b0b55ce9061c58ac | 34 | hpp | C++ | src/boost_mp11_utility.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mp11_utility.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mp11_utility.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mp11/utility.hpp>
| 17 | 33 | 0.764706 | miathedev |
6d9209c45fa705fb3ba110999fe79cc654d560fe | 12,971 | cpp | C++ | src/optimal.cpp | leospeidel/dag_community_paper | db1d8c3495a605c320659f5ed16d89b5fb31e45e | [
"MIT"
] | null | null | null | src/optimal.cpp | leospeidel/dag_community_paper | db1d8c3495a605c320659f5ed16d89b5fb31e45e | [
"MIT"
] | null | null | null | src/optimal.cpp | leospeidel/dag_community_paper | db1d8c3495a605c320659f5ed16d89b5fb31e45e | [
"MIT"
] | null | null | null | #include "graph.h"
#include <igraph.h>
#include <fstream>
#include "igraph_interface.h"
#include "igraph_structural.h"
#include "igraph_community.h"
#include "igraph_error.h"
//#include "igraph_glpk_support.h"
//#include "igraph_interrupt.h"
#include "igraph_centrality.h"
//#include "config.h"
#include <gl... | 24.473585 | 161 | 0.557166 | leospeidel |
6d925a2953550b789d53e58b71e84fecafaacdbe | 1,521 | cpp | C++ | utils.cpp | onyazuka/Simple-system-monitor | 271619017c4e80812a256ac463797571855a92d1 | [
"MIT"
] | 3 | 2019-10-12T11:24:39.000Z | 2022-02-07T20:31:20.000Z | utils.cpp | onyazuka/Simple-system-monitor | 271619017c4e80812a256ac463797571855a92d1 | [
"MIT"
] | 2 | 2020-07-02T17:30:31.000Z | 2022-02-11T23:57:15.000Z | utils.cpp | onyazuka/Simple-system-monitor | 271619017c4e80812a256ac463797571855a92d1 | [
"MIT"
] | null | null | null | #include "utils.hpp"
/*
Makes from provided value (in bytes) kbytes, mbytes... and makes suffix (kb, mb etc)
Returns resulting string.
*/
QString Translator::fitBytes(double value, int precision)
{
SizedValue sv = fitBytesToNumber(value, precision);
QString res = QString::number(sv.first) + " " + sv.se... | 20.835616 | 88 | 0.591716 | onyazuka |
6d97471d464d2932ca6447e0364a0052b8ebe709 | 2,375 | cc | C++ | extern/clean-core/src/clean-core/assert.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/clean-core/src/clean-core/assert.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/clean-core/src/clean-core/assert.cc | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #include <clean-core/assert.hh>
#include <clean-core/macros.hh>
#ifdef CC_OS_WINDOWS
#include <clean-core/detail/lib/StackWalker.hh>
#endif
#include <cstdio>
#include <cstdlib>
namespace
{
#ifdef CC_OS_WINDOWS
class CallstackOutputWalker final : public StackWalker
{
protected:
void OnOutput(LPCSTR) override {}... | 25.815217 | 111 | 0.618105 | rovedit |
6d9a0b583c33a3ac5020663ec9f2e60d3450db78 | 4,969 | cpp | C++ | src/cuda_support/opi_cuda_support.cpp | Space-Systems/OPI | 3bbde50e1eaebb40e2f8714b401c8b6096bb718f | [
"MIT"
] | 3 | 2020-04-02T03:37:56.000Z | 2022-01-16T14:19:48.000Z | src/cuda_support/opi_cuda_support.cpp | Space-Systems/OPI | 3bbde50e1eaebb40e2f8714b401c8b6096bb718f | [
"MIT"
] | null | null | null | src/cuda_support/opi_cuda_support.cpp | Space-Systems/OPI | 3bbde50e1eaebb40e2f8714b401c8b6096bb718f | [
"MIT"
] | 1 | 2021-05-25T23:35:06.000Z | 2021-05-25T23:35:06.000Z | #include "../OPI/opi_gpusupport.h"
#include <cuda_runtime.h>
#include <iostream>
#include <sstream>
#include <stdlib.h>
using namespace std;
class CudaSupportImpl:
public OPI::GpuSupport
{
public:
CudaSupportImpl();
~CudaSupportImpl();
virtual void init(int platformNumber = 0, int deviceNumber = 0);
... | 26.859459 | 120 | 0.669551 | Space-Systems |
6d9fb0a420c16150feae2ce7895c126189b23c7f | 15,875 | cpp | C++ | compiler/resolution/interfaceResolution.cpp | CaptainSharf/chapel | 0659db4128ee8e324f2a987d4f48666961db513b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/resolution/interfaceResolution.cpp | CaptainSharf/chapel | 0659db4128ee8e324f2a987d4f48666961db513b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/resolution/interfaceResolution.cpp | CaptainSharf/chapel | 0659db4128ee8e324f2a987d4f48666961db513b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020-2021 Hewlett Packard Enterprise Development LP
* Copyright 2004-2019 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with... | 35.435268 | 79 | 0.662614 | CaptainSharf |
6da0912beae20be1af2385d938f1cc8a94c611eb | 1,777 | cpp | C++ | YorozuyaGSLib/source/CBillingBRDetail.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/CBillingBRDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/CBillingBRDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <CBillingBRDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::CBillingBRctor_CBillingBR2_ptr CBillingBRctor_CBillingBR2_next(nullptr);
Info::CBillingBRctor_CBillingBR2_clbk CBillingBRctor_CBillingBR2_user(nullptr);
... | 38.630435 | 98 | 0.653911 | lemkova |
6da2ec27cb817ea51e7a8c7cb4ae89182a972b36 | 6,095 | hpp | C++ | src/Vulkan/Utils.hpp | handsomePirate/VoxelViewer | 02ca4bd988f985a3bc1023ea751d23e4c240e35b | [
"MIT"
] | null | null | null | src/Vulkan/Utils.hpp | handsomePirate/VoxelViewer | 02ca4bd988f985a3bc1023ea751d23e4c240e35b | [
"MIT"
] | null | null | null | src/Vulkan/Utils.hpp | handsomePirate/VoxelViewer | 02ca4bd988f985a3bc1023ea751d23e4c240e35b | [
"MIT"
] | null | null | null | #pragma once
#include "Core/Common.hpp"
#include <vector>
#define SHADER_ALIGN alignas(16)
// TODO: Large Vulkan structs need to be handled by reference.
namespace VulkanUtils
{
struct PushConstantBlock
{
float ScaleX, ScaleY;
float TranslationX, TranslationY;
};
class Instance
{
public:
static bool Chec... | 41.746575 | 124 | 0.813618 | handsomePirate |
6da366e6470763790a4bc55327c8d7c5c56e6d96 | 1,578 | cpp | C++ | course1/Laba1/E_TrueScobe/main.cpp | flydzen/ITMO_algo | ea251dca0fddb0d4d212377c6785cdc3667ece89 | [
"MIT"
] | null | null | null | course1/Laba1/E_TrueScobe/main.cpp | flydzen/ITMO_algo | ea251dca0fddb0d4d212377c6785cdc3667ece89 | [
"MIT"
] | null | null | null | course1/Laba1/E_TrueScobe/main.cpp | flydzen/ITMO_algo | ea251dca0fddb0d4d212377c6785cdc3667ece89 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
struct Node {
Node *next = NULL;
char value;
};
class list {
public:
Node *head;
int size;
list() {
head = nullptr;
size = 0;
}
~list() {
clear();
}
void add(char v) {
Node *el = new Node;
... | 17.152174 | 85 | 0.325095 | flydzen |
6da6c5576813a289ff9809f9c38bc49c1ecfb5db | 232 | cpp | C++ | ABC_206_A.cpp | kamlesh012/AtCoder-Editorials | d54e20da49317298096810a5a045253a810621a2 | [
"Unlicense"
] | null | null | null | ABC_206_A.cpp | kamlesh012/AtCoder-Editorials | d54e20da49317298096810a5a045253a810621a2 | [
"Unlicense"
] | null | null | null | ABC_206_A.cpp | kamlesh012/AtCoder-Editorials | d54e20da49317298096810a5a045253a810621a2 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include<math.h>
using namespace std;
int main(){
int n;
cin>>n;
float f=n*1.08;
f=floor(f);
if(f<206)cout<<"Yay!"<<endl;
else if(f==206)cout<<"so-so"<<endl;
else cout<<":("<<endl;
return 0;
}
| 15.466667 | 37 | 0.577586 | kamlesh012 |
6da8b22070dc13eb7da5fdb138edb98513e078d1 | 10,807 | cpp | C++ | Kernel/src/Fs/Fat32.cpp | Butterzz1288/ButterOS | 4faee625eba83bd22bc8d180e0c4136f543c3404 | [
"BSD-2-Clause"
] | 5 | 2021-11-25T10:53:24.000Z | 2022-03-31T08:17:45.000Z | Kernel/src/Fs/Fat32.cpp | Butterzz1288/ButterOS | 4faee625eba83bd22bc8d180e0c4136f543c3404 | [
"BSD-2-Clause"
] | null | null | null | Kernel/src/Fs/Fat32.cpp | Butterzz1288/ButterOS | 4faee625eba83bd22bc8d180e0c4136f543c3404 | [
"BSD-2-Clause"
] | null | null | null | #include <Fs/Fat32.h>
#include <CString.h>
#include <Device.h>
#include <Errno.h>
#include <Logging.h>
#include <Memory.h>
namespace fs::FAT32 {
int Identify(PartitionDevice* part) {
fat32_boot_record_t* bootRecord = (fat32_boot_record_t*)kmalloc(512);
if (part->ReadBlock(0, 512, (uint8_t*)bootRecord)) { //... | 32.259701 | 120 | 0.603035 | Butterzz1288 |
6daa44e621d19265cc383b226eb155d23a8e2d64 | 2,504 | cpp | C++ | netqre2dt/rpc/test_client.cpp | SleepyToDeath/NetQRE | 0176a31afa45faa4877974a4a0575a4e60534090 | [
"MIT"
] | 2 | 2021-03-30T15:25:44.000Z | 2021-05-14T07:22:25.000Z | netqre2dt/rpc/test_client.cpp | SleepyToDeath/NetQRE | 0176a31afa45faa4877974a4a0575a4e60534090 | [
"MIT"
] | null | null | null | netqre2dt/rpc/test_client.cpp | SleepyToDeath/NetQRE | 0176a31afa45faa4877974a4a0575a4e60534090 | [
"MIT"
] | null | null | null | #include "client.hpp"
#include "interface.hpp"
#include <iostream>
using std::getline;
using Rubify::string;
using std::cout;
std::unique_ptr<GeneralInterpreter> GeneralProgram::interpreter;
Netqre::NetqreParser parser;
/* netqre_client program.netqre test_data.ts server_list.txt */
int main(int argc, char *argv[]... | 27.822222 | 110 | 0.676118 | SleepyToDeath |
6dabc064fb44a17565b053d0d242ba2ceaad9dea | 1,097 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/Classic XmlSerializer.XmlSerializer6 Example/CPP/source.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 3,294 | 2016-10-30T05:27:20.000Z | 2022-03-31T15:59:30.000Z | samples/snippets/cpp/VS_Snippets_Remoting/Classic XmlSerializer.XmlSerializer6 Example/CPP/source.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 16,739 | 2016-10-28T19:41:29.000Z | 2022-03-31T22:38:48.000Z | samples/snippets/cpp/VS_Snippets_Remoting/Classic XmlSerializer.XmlSerializer6 Example/CPP/source.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 6,701 | 2016-10-29T20:56:11.000Z | 2022-03-31T12:32:26.000Z | #using <System.Xml.dll>
#using <System.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
using namespace System::Xml::Serialization;
public ref class Sample
{
// <Snippet1>
private:
void SerializeObject( String^ filename )
{
XmlSerializer^ serializer =
gcnew... | 23.340426 | 58 | 0.645397 | BaruaSourav |
6daddd1fb7d71ac3ac1fe1686e93ae6764d49cc6 | 8,631 | cpp | C++ | src/gameconsole.cpp | hallur/boardgame | 374fd1366cbae785bc40ba24403d50e36b2a3637 | [
"MIT"
] | null | null | null | src/gameconsole.cpp | hallur/boardgame | 374fd1366cbae785bc40ba24403d50e36b2a3637 | [
"MIT"
] | 1 | 2018-04-09T19:08:41.000Z | 2018-04-09T19:08:41.000Z | src/gameconsole.cpp | hallur/boardgame | 374fd1366cbae785bc40ba24403d50e36b2a3637 | [
"MIT"
] | null | null | null | #include "gameconsole.h"
#include "human.h"
#include "random.h"
#include "easy.h"
#include "foxandhound/game.h"
#include "breakthrough/game.h"
#include "megabreakthrough/game.h"
#include "exceptions.h"
#include <algorithm>
#include <cctype>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
bo... | 35.518519 | 137 | 0.545128 | hallur |
6db01505ea23ef3836f4a89ba4090ebfc27f7f5d | 152 | hpp | C++ | vr-platform/include/platform_manager_factory.hpp | vladimir-voinea/vr | 0af18898ee512a0f94be7609e19753b92da03775 | [
"MIT"
] | null | null | null | vr-platform/include/platform_manager_factory.hpp | vladimir-voinea/vr | 0af18898ee512a0f94be7609e19753b92da03775 | [
"MIT"
] | null | null | null | vr-platform/include/platform_manager_factory.hpp | vladimir-voinea/vr | 0af18898ee512a0f94be7609e19753b92da03775 | [
"MIT"
] | null | null | null | #pragma once
#include "platform_manager.hpp"
#include <memory>
namespace vr::platform
{
std::unique_ptr<platform_manager> get_platform_manager();
}
| 13.818182 | 58 | 0.769737 | vladimir-voinea |
6db401c3090b03f9dc5172675638a50e490b1f2d | 3,223 | cpp | C++ | tutorial/5.Nullspace/nullspace.cpp | tenglongcong/amgcl | 61948e1a49c1cbc9fdb68c92d532c8b70e021516 | [
"MIT"
] | 504 | 2015-03-11T13:50:39.000Z | 2022-03-20T13:08:55.000Z | tutorial/5.Nullspace/nullspace.cpp | tenglongcong/amgcl | 61948e1a49c1cbc9fdb68c92d532c8b70e021516 | [
"MIT"
] | 209 | 2015-01-02T19:13:22.000Z | 2022-03-30T06:44:12.000Z | tutorial/5.Nullspace/nullspace.cpp | tenglongcong/amgcl | 61948e1a49c1cbc9fdb68c92d532c8b70e021516 | [
"MIT"
] | 92 | 2015-01-04T06:11:22.000Z | 2022-03-24T09:49:12.000Z | #include <vector>
#include <iostream>
#include <amgcl/backend/builtin.hpp>
#include <amgcl/adapter/crs_tuple.hpp>
#include <amgcl/make_solver.hpp>
#include <amgcl/amg.hpp>
#include <amgcl/coarsening/smoothed_aggregation.hpp>
#include <amgcl/coarsening/rigid_body_modes.hpp>
#include <amgcl/relaxation/spai0.hpp>
#includ... | 34.287234 | 87 | 0.612783 | tenglongcong |
6db85bc5674a84d3dc765dde37ff8fe293079392 | 57,072 | cpp | C++ | Infinite-OTPV2.cpp | keshpa/Infinite-OTP | 7bb478194dce92612438fb8e39d2e2a9446d3a77 | [
"MIT"
] | null | null | null | Infinite-OTPV2.cpp | keshpa/Infinite-OTP | 7bb478194dce92612438fb8e39d2e2a9446d3a77 | [
"MIT"
] | null | null | null | Infinite-OTPV2.cpp | keshpa/Infinite-OTP | 7bb478194dce92612438fb8e39d2e2a9446d3a77 | [
"MIT"
] | null | null | null | #include <assert.h>
#include <chrono>
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <vector>
using namespace std;
bool CHECKASSERT = false;
#define DASSERT(cond) if (CHECKASSERT) { assert(cond); }
... | 31.496689 | 195 | 0.625999 | keshpa |
6dc316cebb54279fe046995192608264a49986f5 | 143 | cpp | C++ | Test/Expect/test141.cpp | archivest/spin2cpp | 8541238366076777717e683efac35458e3796859 | [
"MIT"
] | 2 | 2021-05-27T18:22:01.000Z | 2021-05-29T13:40:38.000Z | Test/Expect/test141.cpp | archivest/spin2cpp | 8541238366076777717e683efac35458e3796859 | [
"MIT"
] | 1 | 2020-10-24T22:25:37.000Z | 2020-10-24T22:25:37.000Z | Test/Expect/test141.cpp | archivest/spin2cpp | 8541238366076777717e683efac35458e3796859 | [
"MIT"
] | null | null | null | #include <propeller.h>
#include "test141.h"
int32_t test141::Peekx(void)
{
return X[0];
}
int32_t test141::Peeky(void)
{
return Y[0];
}
| 10.214286 | 28 | 0.657343 | archivest |
6dc6da3e2234abaea3091a88b265c5f208b68278 | 8,086 | cpp | C++ | src/plugins/intel_gpu/src/graph/arg_max_min.cpp | rburtsev-wd/openvino | 3578ee9c3f04bbf3c7d8c582c86065a34b846f5b | [
"Apache-2.0"
] | 1 | 2022-02-07T09:14:15.000Z | 2022-02-07T09:14:15.000Z | src/plugins/intel_gpu/src/graph/arg_max_min.cpp | imikhale/openvino | bff9769dd29f759921404bf3ae6fcb68b7a78d9b | [
"Apache-2.0"
] | null | null | null | src/plugins/intel_gpu/src/graph/arg_max_min.cpp | imikhale/openvino | bff9769dd29f759921404bf3ae6fcb68b7a78d9b | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "arg_max_min_inst.h"
#include "primitive_type_base.h"
#include "sliding_window_utils_legacy.h"
#include "intel_gpu/runtime/error_handler.hpp"
#include "json_object.h"
#include <string>
#include <limits>
namespace cldnn {
p... | 47.28655 | 135 | 0.487015 | rburtsev-wd |
6dca28dedcff6a89e7dc860cede7aa694ae45f69 | 1,390 | hpp | C++ | phylanx/ast/parser/skipper.hpp | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | phylanx/ast/parser/skipper.hpp | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | phylanx/ast/parser/skipper.hpp | frzfrsfra4/phylanx | 001fe7081f3a24e56157cdb21b2d126b8953ff5d | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | // Copyright (c) 2001-2011 Joel de Guzman
// Copyright (c) 2001-2017 Hartmut Kaiser
//
// 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(PHYLANX_AST_PARSER_SKIPPER_HPP)
#define PHYLANX_AST_PARSER_SKI... | 28.367347 | 80 | 0.510072 | frzfrsfra4 |
6dce12bf9e6370c95b30ea78b145ef88f1079cf7 | 6,768 | cpp | C++ | src/umbra/imod_speed.cpp | libtcod/thecave | 28e2df5d801242a227c7e587c5cc8e5af9e2400e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | src/umbra/imod_speed.cpp | libtcod/thecave | 28e2df5d801242a227c7e587c5cc8e5af9e2400e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | src/umbra/imod_speed.cpp | libtcod/thecave | 28e2df5d801242a227c7e587c5cc8e5af9e2400e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | /*
* Umbra
* Copyright (c) 2009 Mingos
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of condition... | 44.235294 | 137 | 0.690307 | libtcod |
6dd9d56c70d70f38241789a8c90ee6a185a2f970 | 13,357 | hpp | C++ | mi/VolumeData.hpp | tmichi/xendocast | 482c7e668423c11b1cc0f6e2fa98bd3b582536a8 | [
"MIT"
] | null | null | null | mi/VolumeData.hpp | tmichi/xendocast | 482c7e668423c11b1cc0f6e2fa98bd3b582536a8 | [
"MIT"
] | 1 | 2017-06-14T04:32:12.000Z | 2017-06-14T04:32:12.000Z | mi/VolumeData.hpp | tmichi/xendocast | 482c7e668423c11b1cc0f6e2fa98bd3b582536a8 | [
"MIT"
] | null | null | null | /**
* @file VolumeData.hpp
* @author Takashi Michikawa <michikawa@acm.org>
*/
#ifndef MI_VOLUME_DATA_HPP
#define MI_VOLUME_DATA_HPP 1
#include <iterator>
#include <iostream>
#include "VolumeInfo.hpp"
namespace mi
{
/**
* @class VolumeData VolumeData.hpp <mi/VolumeData.hpp>
*/... | 45.277966 | 150 | 0.330164 | tmichi |
6ddba8eb60fe3b10d76379cee6184652837b843a | 837 | hpp | C++ | pythran/pythonic/include/numpy/fft/rfft.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/fft/rfft.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/fft/rfft.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_NUMPY_FFT_RFFT_HPP
#define PYTHONIC_INCLUDE_NUMPY_FFT_RFFT_HPP
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/types/ndarray.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
namespace fft
{
// I'm sure there's a better way to do this.
template <class T, size_t N... | 27 | 79 | 0.698925 | SylvainCorlay |
6ddfd827682240694a6a14f2a39451a7dcb27d40 | 2,524 | hpp | C++ | random/boost/random/chi_squared.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | random/boost/random/chi_squared.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | random/boost/random/chi_squared.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// random::chi_squared.hpp //
// //
// (C) Copyright 2009 Erwann Rogard //
// ... | 34.575342 | 78 | 0.525357 | rogard |
6de0943cbd489afd8537933f973bb8a451c280ff | 1,580 | cpp | C++ | src/robot_controller/basic_feedforward_nn.cpp | ou-real/nevil-sibling | d25189ff52bc41a05e0edc6b12178db4b195af8a | [
"MIT"
] | null | null | null | src/robot_controller/basic_feedforward_nn.cpp | ou-real/nevil-sibling | d25189ff52bc41a05e0edc6b12178db4b195af8a | [
"MIT"
] | null | null | null | src/robot_controller/basic_feedforward_nn.cpp | ou-real/nevil-sibling | d25189ff52bc41a05e0edc6b12178db4b195af8a | [
"MIT"
] | null | null | null | #include "nevil/robot_controller/basic_feedforward_nn.hpp"
nevil::basic_feedforward_nn::basic_feedforward_nn() {}
nevil::basic_feedforward_nn::basic_feedforward_nn(size_t input_num, size_t num_output_nodes)
: _num_input_nodes(input_num)
, _num_output_nodes(num_output_nodes)
{
_weights = std::vector<doub... | 33.617021 | 101 | 0.728481 | ou-real |
6de32a1a054914f581ba5a628cb96a30c1ef61e7 | 664 | cpp | C++ | CPlusPlus/Bit Manipulation/number_of_1_bits.cpp | coderkp/interviewbit-solutions | 5782aa02242c8015d96a572f43ec350629b36f09 | [
"MIT"
] | null | null | null | CPlusPlus/Bit Manipulation/number_of_1_bits.cpp | coderkp/interviewbit-solutions | 5782aa02242c8015d96a572f43ec350629b36f09 | [
"MIT"
] | null | null | null | CPlusPlus/Bit Manipulation/number_of_1_bits.cpp | coderkp/interviewbit-solutions | 5782aa02242c8015d96a572f43ec350629b36f09 | [
"MIT"
] | null | null | null | //Right shift of the bits or performing AND bit-wise might seem as possible approaches
//but they definitely aren't the optimal approach to solve this question.
//Think of the bit relationship between consecutive numbers. For example:
//[5- 101, 4 - 100], [8- 1000, 7 - 0111]
//Notice if you perform AND of a number and ... | 34.947368 | 89 | 0.656627 | coderkp |
6de42c541bdd456c49cf34d96a82649cc0daa1b1 | 1,261 | cpp | C++ | LeetCode/Problems/Algorithms/#1079_LetterTilePossibilities_sol2_dp_0ms_6.1MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#1079_LetterTilePossibilities_sol2_dp_0ms_6.1MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#1079_LetterTilePossibilities_sol2_dp_0ms_6.1MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
int comb(int n, int k){
vector<int> fact(n + 1);
fact[0] = 1;
for(int i = 1; i <= n; ++i){
fact[i] = i * fact[i - 1];
}
return fact[n] / (fact[n - k] * fact[k]);
}
public:
int numTilePossibilities(string tiles) {
v... | 28.022222 | 84 | 0.361618 | Tudor67 |
6de4c0a58c4a392dfc5f30520fd8766336702a2a | 1,316 | cpp | C++ | app/app.cpp | leolin0518/CDoc | 52f0edaecd69f2aeec9856c473a867bab306f4b8 | [
"Apache-2.0"
] | null | null | null | app/app.cpp | leolin0518/CDoc | 52f0edaecd69f2aeec9856c473a867bab306f4b8 | [
"Apache-2.0"
] | null | null | null | app/app.cpp | leolin0518/CDoc | 52f0edaecd69f2aeec9856c473a867bab306f4b8 | [
"Apache-2.0"
] | 1 | 2018-09-14T05:52:52.000Z | 2018-09-14T05:52:52.000Z | #include "app.h"
#include "myhelper.h"
QString App::AppPath = "";
#ifdef Q_OS_WIN
int App::AppFontSize = 10;
QString App::AppFontName = "Microsoft YaHei";
#endif
#ifdef Q_OS_LINUX
#ifdef __arm__
int App::AppFontSize = 11;
QString App::AppFontName = "WenQuanYi Micro Hei";
#else
int App::AppFontSize = 11;
QString App... | 19.072464 | 67 | 0.668693 | leolin0518 |
6de608341c819e8734fcc7ab08382353b59a2d41 | 1,736 | cpp | C++ | 3rdparty/cgltf/test/test_math.cpp | bghgary/bgfx | c7d986f729e76cfdc907a48e9650c1ae8cb809d3 | [
"BSD-2-Clause"
] | 1 | 2019-11-16T02:55:43.000Z | 2019-11-16T02:55:43.000Z | 3rdparty/cgltf/test/test_math.cpp | plelaure/bgfx | a4930fa1a0c6407ccf997d7e58811cb811ad5b04 | [
"BSD-2-Clause"
] | null | null | null | 3rdparty/cgltf/test/test_math.cpp | plelaure/bgfx | a4930fa1a0c6407ccf997d7e58811cb811ad5b04 | [
"BSD-2-Clause"
] | 1 | 2022-03-29T19:45:51.000Z | 2022-03-29T19:45:51.000Z | #define CGLTF_IMPLEMENTATION
#include "../cgltf.h"
// Performs matrix-vector multiplication, as in (4x4) * (4x1) = (4x1)
static void transform(const cgltf_float matrix[16], const cgltf_float source[4], cgltf_float target[4]) {
target[0] = matrix[0] * source[0] + matrix[4] * source[1] + matrix[ 8] * source[2] + mat... | 32.754717 | 112 | 0.607143 | bghgary |
6de6afdca0c51705791d12f3063499936f7dd124 | 2,492 | cc | C++ | collector/aws/ingest_connection.cc | KarenEnfield/flowmill-collector | d8e094d64c598e3e2df968f0ccf4cdfb054a91f8 | [
"Apache-2.0"
] | 63 | 2021-04-07T19:12:10.000Z | 2022-03-16T07:00:30.000Z | collector/aws/ingest_connection.cc | KarenEnfield/flowmill-collector | d8e094d64c598e3e2df968f0ccf4cdfb054a91f8 | [
"Apache-2.0"
] | 11 | 2021-04-22T09:51:23.000Z | 2022-02-10T18:36:21.000Z | collector/aws/ingest_connection.cc | KarenEnfield/flowmill-collector | d8e094d64c598e3e2df968f0ccf4cdfb054a91f8 | [
"Apache-2.0"
] | 7 | 2021-06-08T21:40:06.000Z | 2022-03-16T07:42:49.000Z | //
// Copyright 2021 Splunk 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 i... | 27.384615 | 102 | 0.715088 | KarenEnfield |
6de724fad4b4199db293b21602c9520d3f202fd3 | 8,128 | cpp | C++ | tests/common/ManualTests/GFormulaParserTest/GFormulaParserTest.cpp | denisbertini/geneva | eff76fc489001512022d1a20c5561623d73efc32 | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2020-05-20T07:23:19.000Z | 2021-09-12T23:12:21.000Z | tests/common/ManualTests/GFormulaParserTest/GFormulaParserTest.cpp | denisbertini/geneva | eff76fc489001512022d1a20c5561623d73efc32 | [
"Apache-2.0",
"BSD-3-Clause"
] | 10 | 2020-05-05T13:24:08.000Z | 2021-07-27T13:23:17.000Z | tests/common/ManualTests/GFormulaParserTest/GFormulaParserTest.cpp | denisbertini/geneva | eff76fc489001512022d1a20c5561623d73efc32 | [
"Apache-2.0",
"BSD-3-Clause"
] | 7 | 2020-04-09T10:33:11.000Z | 2021-09-08T12:24:55.000Z | /**
* @file GLoggerTest.cpp
*/
/********************************************************************************
*
* This file is part of the Geneva library collection. The following license
* applies to this file:
*
* ------------------------------------------------------------------------------
* Licensed un... | 31.626459 | 82 | 0.688238 | denisbertini |
6deef7b76e19911916d0b4d5a8664f51b04feb37 | 2,294 | hpp | C++ | external/boost_1_60_0/qsboost/variant/detail/make_variant_list.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/variant/detail/make_variant_list.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/variant/detail/make_variant_list.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// boost variant/detail/make_variant_list.hpp header file
// See http://www.boost.org for updates, documentation, and revision history.
//-----------------------------------------------------------------------------
//
// Copyright (c) 2002... | 31 | 79 | 0.659983 | wouterboomsma |
6df8086677accbc9137d7f73acf4127dbea577ce | 2,347 | hpp | C++ | bulletgba/generator/data/code/noiz2sa/5_players.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/noiz2sa/5_players.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/noiz2sa/5_players.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | #ifndef GENERATED_96086a8fd9af5d282964798d0bb95851_HPP
#define GENERATED_96086a8fd9af5d282964798d0bb95851_HPP
#include "bullet.hpp"
void stepfunc_b29cebfac2f19abeac4b7b53f6b48124_b9bf61c4a4d8b437b46daea7e4931a46(BulletInfo *p);
void stepfunc_5087d3575f5147f0183b43f1f47d6eaa_b9bf61c4a4d8b437b46daea7e4931a46(Bullet... | 69.029412 | 105 | 0.912654 | pqrs-org |
6dfaef73e3e23c28646793af0098c1ee2e5e55bc | 2,646 | cpp | C++ | codeforces/568div2/D2.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/568div2/D2.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | codeforces/568div2/D2.cpp | xenowits/cp | 963b3c7df65b5328d5ce5ef894a46691afefb98c | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define fori(i,a,b) for (long int i = a; i <= b ; ++i)
#define ford(i,a,b) for(long int i = a;i >= b ; --i)
#define mk make_pair
#define mod 1000000007
#define pb push_back
#define ll long long
#define rnd mt19937_64 rng(chrono::high_resolution_clock::now().time_since_epoch... | 21.168 | 165 | 0.433485 | xenowits |
6dfdf07a01e890e50d11cffad958b9365777ddda | 7,391 | cpp | C++ | tests/utils/compression_test.cpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | tests/utils/compression_test.cpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | tests/utils/compression_test.cpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019 ArangoDB GmbH, Cologne, Germany
///
/// 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... | 36.053659 | 103 | 0.669869 | geenen124 |
a300ff753c4f04f2f1b4f2cf902afc0367ee1365 | 890 | cpp | C++ | thin_xsens/mtsdk/src/conio.cpp | Lab-RoCoCo/thin_drivers | b9ae610fe8b73c6184410e5a2d4d4fb8bda596e5 | [
"BSD-3-Clause"
] | 1 | 2021-03-10T11:47:44.000Z | 2021-03-10T11:47:44.000Z | thin_xsens/mtsdk/src/conio.cpp | Lab-RoCoCo/thin_drivers | b9ae610fe8b73c6184410e5a2d4d4fb8bda596e5 | [
"BSD-3-Clause"
] | null | null | null | thin_xsens/mtsdk/src/conio.cpp | Lab-RoCoCo/thin_drivers | b9ae610fe8b73c6184410e5a2d4d4fb8bda596e5 | [
"BSD-3-Clause"
] | 3 | 2017-04-15T15:03:18.000Z | 2019-09-04T13:43:30.000Z | #include <termios.h>
#include <stdio.h>
#include <sys/select.h>
#ifdef __GNUC__
/*! getch hack
Don't use in production code!
*/
#ifdef __cplusplus
int _getch(void)
#else
extern "C" int _getch(void)
#endif
{
struct termios oldt, newt;
int c;
tcgetattr(0, &oldt);
newt = oldt;
newt.c_lflag &= ~(ICANON|ECHO);
tc... | 14.590164 | 38 | 0.642697 | Lab-RoCoCo |
a302fd23cc125dbbd00eb4b3d80576024f848d2a | 2,563 | cpp | C++ | input/triang.cpp | markpal/npdpbennch | 148229e0b180987b98d9c17bcaf660b27094bd57 | [
"MIT"
] | null | null | null | input/triang.cpp | markpal/npdpbennch | 148229e0b180987b98d9c17bcaf660b27094bd57 | [
"MIT"
] | null | null | null | input/triang.cpp | markpal/npdpbennch | 148229e0b180987b98d9c17bcaf660b27094bd57 | [
"MIT"
] | null | null | null | // See the Cormen book for details of the following algorithm
// Accelerating Minimum Cost Polygon Triangulation Code with the TRACO Compiler, Palkowski Bielecki FedCsis 2018
// https://annals-csis.org/Volume_17/drp/pdf/8.pdf
#include<stdio.h>
#include<limits.h>
#include <math.h>
#include <omp.h>
#define min(a,b) ((... | 19.715385 | 112 | 0.530238 | markpal |
a303bf67596b1fe2c2e66d8bcd463c2d9c3c43a5 | 21,924 | cpp | C++ | src/OdfOptimiser.cpp | mtortora/chiralDFT | d5ea5e940d6bc72d96fd9728d042de1e09d3ef85 | [
"MIT"
] | 2 | 2018-01-03T09:33:09.000Z | 2019-06-14T13:29:37.000Z | src/OdfOptimiser.cpp | mtortora/chiralDFT | d5ea5e940d6bc72d96fd9728d042de1e09d3ef85 | [
"MIT"
] | null | null | null | src/OdfOptimiser.cpp | mtortora/chiralDFT | d5ea5e940d6bc72d96fd9728d042de1e09d3ef85 | [
"MIT"
] | null | null | null | // ===================================================================
/**
* Orientation distribution function convenience class - always uses
* double-precision ODF calculations for numerical stability.
*/
// ===================================================================
/*
* OdfOptimiser.cpp: Version 2.5
* ... | 38.328671 | 148 | 0.5104 | mtortora |
a303e8d695b7f5626fc58a7ca4ba62f6153be386 | 8,784 | cpp | C++ | src/plugins/lmp/releaseswidget.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | null | null | null | src/plugins/lmp/releaseswidget.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | null | null | null | src/plugins/lmp/releaseswidget.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 31.826087 | 97 | 0.692964 | devel29a |
a307e6e127b76508f39d3fd3e530f05e7473b3e3 | 11,695 | cpp | C++ | performance-tests/SCTP/SOCK_STREAM_srv.cpp | BeiJiaan/ace | 2845970c894bb350d12d6a32e867d7ddf2487f25 | [
"DOC"
] | 16 | 2015-05-11T04:33:44.000Z | 2022-02-15T04:28:39.000Z | performance-tests/SCTP/SOCK_STREAM_srv.cpp | BeiJiaan/ace | 2845970c894bb350d12d6a32e867d7ddf2487f25 | [
"DOC"
] | null | null | null | performance-tests/SCTP/SOCK_STREAM_srv.cpp | BeiJiaan/ace | 2845970c894bb350d12d6a32e867d7ddf2487f25 | [
"DOC"
] | 7 | 2015-01-08T16:11:34.000Z | 2021-07-04T16:04:40.000Z | // $Id$
#include "ace/INET_Addr.h"
#include "ace/SOCK_Stream.h"
#include "ace/SOCK_Acceptor.h"
#include "ace/Log_Msg.h"
#include "ace/Thread_Manager.h"
#include "ace/Handle_Set.h"
#include "ace/CDR_Stream.h"
#include "ace/Truncate.h"
// FUZZ: disable check_for_streams_include
#include "ace/streams.h"
#include "ace/o... | 32.486111 | 106 | 0.613596 | BeiJiaan |
a308d9996f8d6966d61cd2b10578e87566555ecb | 462 | cpp | C++ | hooks/hooks/hooked_findmdl.cpp | DomesticTerrorist/Doubletap.Space-v3-SRC | caa2e09fc5e15a268ed735debe811a19fe96a08c | [
"MIT"
] | 3 | 2021-08-18T10:19:25.000Z | 2021-08-31T04:45:26.000Z | hooks/hooks/hooked_findmdl.cpp | DomesticTerrorist/Doubletap.Space-v3-SRC | caa2e09fc5e15a268ed735debe811a19fe96a08c | [
"MIT"
] | null | null | null | hooks/hooks/hooked_findmdl.cpp | DomesticTerrorist/Doubletap.Space-v3-SRC | caa2e09fc5e15a268ed735debe811a19fe96a08c | [
"MIT"
] | 4 | 2021-08-18T06:57:26.000Z | 2021-09-02T15:22:36.000Z | // This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include "..\hooks.hpp"
using FindMDL_t = void(__thiscall*)(void*, char*);
void __fastcall hooks::hooked_findmdl(void* ecx, void* e... | 38.5 | 96 | 0.718615 | DomesticTerrorist |
a30d105f14656ea0742489f91c1ecf81fc44de07 | 522 | cpp | C++ | FileWatcher/main.cpp | pvthuyet/file-activity-monitoring | 30065a0b9dcd83232916767741ec1308779374be | [
"BSL-1.0"
] | null | null | null | FileWatcher/main.cpp | pvthuyet/file-activity-monitoring | 30065a0b9dcd83232916767741ec1308779374be | [
"BSL-1.0"
] | null | null | null | FileWatcher/main.cpp | pvthuyet/file-activity-monitoring | 30065a0b9dcd83232916767741ec1308779374be | [
"BSL-1.0"
] | null | null | null | #include <Windows.h>
#include <iostream>
#include "logger_define.h"
#include "vld/vld.h"
import Saigon.Minidump;
import Saigon.Logger; //++ TODO Can't use logger and fmt/format together
int wmain(int arg, const wchar_t* argv[])
{
saigon::dump::monitoring();
try {
saigon::logger::create_logger();
return wWinMain... | 22.695652 | 80 | 0.699234 | pvthuyet |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.