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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b88994e9f2bba31d5310cd887f4d29babc32da0 | 2,239 | cpp | C++ | libraries/MySensors/core/MyTransportRFM95.cpp | kaniick/Growtek-Controller | 9826776fa1c6f835c84f62dac84e1848509d9e76 | [
"MIT"
] | null | null | null | libraries/MySensors/core/MyTransportRFM95.cpp | kaniick/Growtek-Controller | 9826776fa1c6f835c84f62dac84e1848509d9e76 | [
"MIT"
] | null | null | null | libraries/MySensors/core/MyTransportRFM95.cpp | kaniick/Growtek-Controller | 9826776fa1c6f835c84f62dac84e1848509d9e76 | [
"MIT"
] | null | null | null | /*
* The MySensors Arduino library handles the wireless radio link and protocol
* between your home built sensors/actuators and HA controller of choice.
* The sensors forms a self healing radio network with optional repeaters. Each
* repeater and gateway builds a routing tables in EEPROM which keeps track of the
*... | 24.075269 | 82 | 0.742742 | kaniick |
3b8b4dd936642a50874ddf4d96dcf5027ed46148 | 443 | cpp | C++ | src/helped/stdafx.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 1 | 2020-07-14T07:29:18.000Z | 2020-07-14T07:29:18.000Z | src/helped/stdafx.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2019-01-01T22:35:56.000Z | 2022-03-14T07:34:00.000Z | src/helped/stdafx.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2021-03-07T11:40:42.000Z | 2021-12-26T21:40:39.000Z | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
// stdafx.cpp : source file that includes just the standard includes
// HelpE... | 26.058824 | 78 | 0.733634 | ptitSeb |
3b8f3e6c815e4d483f03628723a32b0e543bfb76 | 1,434 | hpp | C++ | Code/Foundation/SpatialPartition/SpatialPartitionStandard.hpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Code/Foundation/SpatialPartition/SpatialPartitionStandard.hpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | null | null | null | Code/Foundation/SpatialPartition/SpatialPartitionStandard.hpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
// Standard includes
#include "Foundation/Geometry/GeometryStandard.hpp"
#include "Foundation/Serialization/SerializationStandard.hpp"
namespace Zero
{
// SpatialPartition library
class ZeroNoImportExport SpatialPartitionLibrary : public Zilch::StaticLibrary
{
public:
... | 27.056604 | 78 | 0.806137 | WelderUpdates |
3b8ff879cc0962061baa0750af07664605e96750 | 1,299 | cpp | C++ | src/Sova/Graphics/Color.cpp | connorcarpenter/sova | 3b640bea83c7fe1013196977c39a27e7cd4947ec | [
"MIT"
] | null | null | null | src/Sova/Graphics/Color.cpp | connorcarpenter/sova | 3b640bea83c7fe1013196977c39a27e7cd4947ec | [
"MIT"
] | null | null | null | src/Sova/Graphics/Color.cpp | connorcarpenter/sova | 3b640bea83c7fe1013196977c39a27e7cd4947ec | [
"MIT"
] | null | null | null | //
// Created by connor on 7/29/18.
//
#include "Color.h"
namespace Sova
{
Color::Color(int red, int green, int blue)
{
this->red = red;
this->green = green;
this->blue = blue;
}
Color Color::Red = Color(255, 0, 0);
Color Color::Green = Color(0, 255, 0);
Color Color::B... | 28.866667 | 98 | 0.558122 | connorcarpenter |
3b9114112533cdb7840fca15584b7e577a4cdc07 | 4,115 | cpp | C++ | src/zaurus/zinfones.cpp | jay-kumogata/InfoNES | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 6 | 2019-05-10T02:09:55.000Z | 2021-09-16T09:10:14.000Z | src/zaurus/zinfones.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | null | null | null | src/zaurus/zinfones.cpp | b004004/InfoNES-1 | 045dd572123753cd53bbbcd387b70a66d0a8562c | [
"Apache-2.0"
] | 1 | 2019-05-10T16:02:51.000Z | 2019-05-10T16:02:51.000Z | /*===================================================================*/
/* */
/* zinfones.cpp : A Qt-specific class implementation */
/* */
/* 2004/06/26 InfoNES Project ... | 23.786127 | 71 | 0.425516 | jay-kumogata |
3b9348c67b2dbb10e9cb75758561c81519fc0cb8 | 1,830 | hh | C++ | unittests/libtests/bc/TestTimeDependent.hh | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | 1 | 2021-09-09T06:24:11.000Z | 2021-09-09T06:24:11.000Z | unittests/libtests/bc/TestTimeDependent.hh | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | unittests/libtests/bc/TestTimeDependent.hh | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 23.461538 | 73 | 0.615301 | joegeisz |
3b94feda02b7dff6720c3999e539581fdf424e62 | 33,509 | cpp | C++ | Blizzlike/Trinity/Scripts/Dungeons/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/Trinity/Scripts/Dungeons/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/Trinity/Scripts/Dungeons/CoilfangReservoir/SerpentShrine/boss_lady_vashj.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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 ... | 35.534464 | 355 | 0.520756 | 499453466 |
3b962e4338ccd3f5d92c68775b21a40475ae4513 | 292 | cpp | C++ | server/src/coverage/Coverage.cpp | PolyProgrammist/UTBotCpp | 4886622f21c92e3b73daa553008e541be9d82f21 | [
"Apache-2.0"
] | null | null | null | server/src/coverage/Coverage.cpp | PolyProgrammist/UTBotCpp | 4886622f21c92e3b73daa553008e541be9d82f21 | [
"Apache-2.0"
] | null | null | null | server/src/coverage/Coverage.cpp | PolyProgrammist/UTBotCpp | 4886622f21c92e3b73daa553008e541be9d82f21 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2012-2021. All rights reserved.
*/
#include "Coverage.h"
int Coverage::TestStatusMap::getNumberOfTests() {
int cnt = 0;
for (auto const &[fileName, testsStatus] : *this) {
cnt += testsStatus.size();
}
return cnt;
}
| 20.857143 | 78 | 0.626712 | PolyProgrammist |
3b973b9b15b5571661f88bb58dd8bcfb355ad1e9 | 709 | cpp | C++ | jp.atcoder/abc021/abc021_c/11693515.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc021/abc021_c/11693515.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc021/abc021_c/11693515.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int MOD = 1e9 + 7;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n, a, b, m;
cin >> n >> a >> b >> m;
a--; b--;
vector<vector<int>> graph(n, vector<int>(n, 0));
for (int i = 0; i < m; i++) {
int x, y;
cin >> x >> y;
x--... | 19.694444 | 51 | 0.4189 | kagemeka |
3b9762bea0ab3c3b8887b4092b09f9ae47991d52 | 26,165 | cc | C++ | plugin/plugin.cc | abique/vst-bridge | 2fd29f806c4a54e3f97367974a3d48b9eabb10f7 | [
"MIT"
] | 235 | 2015-02-14T03:02:13.000Z | 2022-03-30T04:46:40.000Z | plugin/plugin.cc | abique/vst-bridge | 2fd29f806c4a54e3f97367974a3d48b9eabb10f7 | [
"MIT"
] | 9 | 2015-11-04T18:17:49.000Z | 2020-12-01T14:40:04.000Z | plugin/plugin.cc | abique/vst-bridge | 2fd29f806c4a54e3f97367974a3d48b9eabb10f7 | [
"MIT"
] | 16 | 2015-06-12T20:10:00.000Z | 2020-12-01T14:37:29.000Z | #include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <limits.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <pthread.h>
#include <signal.h>
#include <list>
#include <X11/Xlib.h>
#define __cdecl
#include "../config.h"
#include ".... | 29.971363 | 101 | 0.610587 | abique |
3b97f16d567a84132aa5436e779ecbccf7fe2e2d | 3,357 | cpp | C++ | src/Linear/EqualConstrOptimize.cpp | alibabach/deformabletracker | 1ef5631f7d91488da27abd83b468e2668670ad9d | [
"BSD-2-Clause-FreeBSD"
] | 29 | 2015-09-07T17:51:22.000Z | 2022-01-14T08:48:11.000Z | src/Linear/EqualConstrOptimize.cpp | alibabach/deformabletracker | 1ef5631f7d91488da27abd83b468e2668670ad9d | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-12-07T07:58:19.000Z | 2017-12-07T09:26:39.000Z | src/Linear/EqualConstrOptimize.cpp | alibabach/deformabletracker | 1ef5631f7d91488da27abd83b468e2668670ad9d | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2016-08-10T05:16:18.000Z | 2020-12-30T20:13:31.000Z | //////////////////////////////////////////////////////////////////////////
// Author : Ngo Tien Dat
// Email : dat.ngo@epfl.ch
// Organization : EPFL
// Purpose : Solve generic EQUALITY constrained optimization problem
// Date : 30 March 2012
///////////////////////////////////////////////////... | 30.798165 | 113 | 0.583855 | alibabach |
3b98ff0957863265a00e6cb4c3e060a38294ca65 | 13,936 | cc | C++ | lib/sanitizer_common/sanitizer_procmaps_mac.cc | hfinkel/compiler-rt-bgq | 5c116694a5ed7267288d9ea5723b6a651321d271 | [
"MIT"
] | null | null | null | lib/sanitizer_common/sanitizer_procmaps_mac.cc | hfinkel/compiler-rt-bgq | 5c116694a5ed7267288d9ea5723b6a651321d271 | [
"MIT"
] | null | null | null | lib/sanitizer_common/sanitizer_procmaps_mac.cc | hfinkel/compiler-rt-bgq | 5c116694a5ed7267288d9ea5723b6a651321d271 | [
"MIT"
] | null | null | null | //===-- sanitizer_procmaps_mac.cc -----------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 36.577428 | 80 | 0.67975 | hfinkel |
3b9c73b53ebe56aca4b24d1c603bae36c5ce69af | 6,495 | cpp | C++ | src/Data.cpp | IgnacioCofre/proyecto_tesis | e26b3fa1a7aba443fda64abfc2dc0208241088d9 | [
"MIT"
] | 1 | 2022-03-04T19:10:22.000Z | 2022-03-04T19:10:22.000Z | src/Data.cpp | IgnacioCofre/proyecto_tesis | e26b3fa1a7aba443fda64abfc2dc0208241088d9 | [
"MIT"
] | null | null | null | src/Data.cpp | IgnacioCofre/proyecto_tesis | e26b3fa1a7aba443fda64abfc2dc0208241088d9 | [
"MIT"
] | null | null | null | #include "../includes/data.h"
void Data::read_input_file(const char * input_path)
{
FILE * pFile;
pFile = fopen (input_path,"r");
//lectura del archivo
if(!pFile)
{
std::cerr << "Problem while reading instance" << std::endl;
exit(EXIT_FAILURE);
}
//numero de articulos
i... | 29.522727 | 121 | 0.570285 | IgnacioCofre |
3b9cfda324df3847fa21884757a5432c49bcc3b3 | 1,459 | hpp | C++ | src/lib/storage/chunk.hpp | lawben/DYOD_WS1718_Sprint1 | 3b70ac6603fe108cfe76cc81fed763c5d3c7cd84 | [
"MIT"
] | null | null | null | src/lib/storage/chunk.hpp | lawben/DYOD_WS1718_Sprint1 | 3b70ac6603fe108cfe76cc81fed763c5d3c7cd84 | [
"MIT"
] | null | null | null | src/lib/storage/chunk.hpp | lawben/DYOD_WS1718_Sprint1 | 3b70ac6603fe108cfe76cc81fed763c5d3c7cd84 | [
"MIT"
] | null | null | null | #pragma once
// the linter wants this to be above everything else
#include <shared_mutex>
#include <atomic>
#include <memory>
#include <string>
#include <vector>
#include "all_type_variant.hpp"
#include "types.hpp"
namespace opossum {
class BaseIndex;
class BaseColumn;
// A chunk is a horizontal partition of a ta... | 27.018519 | 102 | 0.732008 | lawben |
3ba0e30c39e4243ec34c08e80036d27eee070040 | 10,174 | cpp | C++ | src/scripts/scripts/eastern_kingdoms/zulgurub/boss_jindo.cpp | Subv/diamondcore | e11891587736b6308e554f71cb56e8df1a1812ad | [
"OpenSSL"
] | 1 | 2018-01-17T08:11:17.000Z | 2018-01-17T08:11:17.000Z | src/scripts/scripts/eastern_kingdoms/zulgurub/boss_jindo.cpp | Subv/diamondcore | e11891587736b6308e554f71cb56e8df1a1812ad | [
"OpenSSL"
] | null | null | null | src/scripts/scripts/eastern_kingdoms/zulgurub/boss_jindo.cpp | Subv/diamondcore | e11891587736b6308e554f71cb56e8df1a1812ad | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* 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 2 of the License, or
* (at your option) any l... | 36.729242 | 190 | 0.637311 | Subv |
3ba56f4f1dddd083eaae7359df3c4759ba0e0d29 | 4,111 | cpp | C++ | src/org/apache/poi/ss/formula/UserDefinedFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/formula/UserDefinedFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/formula/UserDefinedFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/formula/UserDefinedFunction.java
#include <org/apache/poi/ss/formula/UserDefinedFunction.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/Class.hpp>
#include <java/lang/ClassCastException.hpp>
#include <java/lang/NullPointerException.hpp>
#include <jav... | 32.117188 | 188 | 0.689856 | pebble2015 |
3ba5a1fe2d80001dd4ac49930452d6a544ebf7b4 | 1,453 | cpp | C++ | trunk/src/bls/BlsServerSelector.cpp | almondyoung/Bull-Live-Server | b2ad5ad0968318c2821f63adedbc83286a6d7c22 | [
"BSD-2-Clause"
] | 141 | 2015-01-07T15:54:55.000Z | 2021-09-21T13:56:30.000Z | trunk/src/bls/BlsServerSelector.cpp | mol310/Bull-Live-Server | b2ad5ad0968318c2821f63adedbc83286a6d7c22 | [
"BSD-2-Clause"
] | 5 | 2015-03-02T09:22:26.000Z | 2018-10-18T08:13:50.000Z | trunk/src/bls/BlsServerSelector.cpp | mol310/Bull-Live-Server | b2ad5ad0968318c2821f63adedbc83286a6d7c22 | [
"BSD-2-Clause"
] | 84 | 2015-01-15T07:04:25.000Z | 2020-08-09T16:14:58.000Z | #include "BlsServerSelector.hpp"
#include <MStringList>
#include "BlsConf.hpp"
BlsServerSelector::BlsServerSelector()
{
m_conhash = conhash_init(NULL);
}
BlsServerSelector::~BlsServerSelector()
{
conhash_fini(m_conhash);
}
BlsServerSelector *BlsServerSelector::instance()
{
static BlsS... | 21.686567 | 86 | 0.636614 | almondyoung |
3bacd0b6c5523beea6a162f135dcc168f2f462d6 | 46,095 | cpp | C++ | src/Meta_Auto_Code.cpp | ciyam/ciyam | f25d25145caca7e75de11ba0a3dac818254eb61a | [
"MIT"
] | 15 | 2015-02-22T19:45:05.000Z | 2020-04-12T01:50:57.000Z | src/Meta_Auto_Code.cpp | ciyam/ciyam | f25d25145caca7e75de11ba0a3dac818254eb61a | [
"MIT"
] | 1 | 2017-04-15T15:58:43.000Z | 2017-04-15T15:58:43.000Z | src/Meta_Auto_Code.cpp | ciyam/ciyam | f25d25145caca7e75de11ba0a3dac818254eb61a | [
"MIT"
] | 14 | 2016-11-06T18:20:06.000Z | 2021-06-27T13:01:50.000Z | // Copyright (c) 2012-2021 CIYAM Developers
//
// Distributed under the MIT/X11 software license, please refer to the file license.txt
// in the root project directory or http://www.opensource.org/licenses/mit-license.php.
#ifdef PRECOMPILE_H
# include "precompile.h"
#endif
#pragma hdrstop
#ifndef HAS_PRECOMPILED_ST... | 25.910624 | 124 | 0.67708 | ciyam |
3bb205d82c7a90242d419db7e5da2db8fca07f7b | 420 | cpp | C++ | src/roq/samples/example-4/config.cpp | roq-trading/examples | 1e8ac9f5a960378ae4dc4d4a6b83f8daf6a65cba | [
"BSD-3-Clause"
] | null | null | null | src/roq/samples/example-4/config.cpp | roq-trading/examples | 1e8ac9f5a960378ae4dc4d4a6b83f8daf6a65cba | [
"BSD-3-Clause"
] | null | null | null | src/roq/samples/example-4/config.cpp | roq-trading/examples | 1e8ac9f5a960378ae4dc4d4a6b83f8daf6a65cba | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2017-2022, Hans Erik Thrane */
#include "roq/samples/example-4/config.hpp"
#include "roq/samples/example-4/flags.hpp"
namespace roq {
namespace samples {
namespace example_4 {
void Config::dispatch(Handler &handler) const {
handler(client::Symbol{
.regex = Flags::symbols(),
.exchange ... | 20 | 47 | 0.678571 | roq-trading |
3bb4800991fff29b1a82a180d581df476a52d2f0 | 2,401 | cpp | C++ | geomFuncs.cpp | kamino410/CudaSift | 21d98443f919f877246aadde1d5e1c16fb7afa14 | [
"MIT"
] | null | null | null | geomFuncs.cpp | kamino410/CudaSift | 21d98443f919f877246aadde1d5e1c16fb7afa14 | [
"MIT"
] | null | null | null | geomFuncs.cpp | kamino410/CudaSift | 21d98443f919f877246aadde1d5e1c16fb7afa14 | [
"MIT"
] | null | null | null | #include <Eigen/Dense>
#include <cmath>
#include <iostream>
#include "cudaSift.h"
int ImproveHomography(SiftData &data, float *homography, int numLoops, float minScore,
float maxAmbiguity, float thresh) {
#ifdef MANAGEDMEM
SiftPoint *mpts = data.m_data;
#else
if (data.h_data == NULL) return ... | 34.797101 | 86 | 0.512703 | kamino410 |
3bb8f845ec8bb4eff8981c1f6ee8a36d679cf795 | 6,242 | cpp | C++ | lib/Dialect/SV/Transforms/PrettifyVerilog.cpp | mwachs5/circt | bd7edb5c449921cb36939ebb5943e4fe73f72899 | [
"Apache-2.0"
] | null | null | null | lib/Dialect/SV/Transforms/PrettifyVerilog.cpp | mwachs5/circt | bd7edb5c449921cb36939ebb5943e4fe73f72899 | [
"Apache-2.0"
] | null | null | null | lib/Dialect/SV/Transforms/PrettifyVerilog.cpp | mwachs5/circt | bd7edb5c449921cb36939ebb5943e4fe73f72899 | [
"Apache-2.0"
] | null | null | null | //===- PrettifyVerilog.cpp - Transformations to improve Verilog quality ---===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 35.265537 | 80 | 0.652515 | mwachs5 |
3bba94a2dc61eae4b9c5ed9bb65bc515ea0ed1c7 | 1,953 | cpp | C++ | snippets/cpp/VS_Snippets_CLR_System/system.Array.Resize/CPP/System.Array.Resize.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-02-22T09:30:21.000Z | 2021-08-02T23:44:31.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Array.Resize/CPP/System.Array.Resize.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR_System/system.Array.Resize/CPP/System.Array.Resize.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
// The following example shows how resizing affects the array.
// <Snippet1>
using namespace System;
static void PrintIndexAndValues(array<String^>^myArr)
{
for(int i = 0; i < myArr->Length; i++)
{
Console::WriteLine(L" [{0}] : {1}", i, myArr[i]);
}
Console::WriteLine();
}
int main()
{
... | 23.25 | 75 | 0.605223 | BohdanMosiyuk |
3bc0b13dff18c8ab8d1ed82e90de4608b4e55925 | 13,346 | cpp | C++ | src/observation/observation.cpp | bburns/cppagent | c1891c631465ebc9b63a4b3c627727ca3da14ee8 | [
"Apache-2.0"
] | null | null | null | src/observation/observation.cpp | bburns/cppagent | c1891c631465ebc9b63a4b3c627727ca3da14ee8 | [
"Apache-2.0"
] | null | null | null | src/observation/observation.cpp | bburns/cppagent | c1891c631465ebc9b63a4b3c627727ca3da14ee8 | [
"Apache-2.0"
] | null | null | null | //
// Copyright Copyright 2009-2022, AMT – The Association For Manufacturing Technology (“AMT”)
// 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
//
// ... | 33.199005 | 100 | 0.533119 | bburns |
3bc74862820321bf365db6840880b57b73d20018 | 4,635 | cpp | C++ | trikGui/communicationSettingsWidget.cpp | Ashatta/trikRuntime | 0e08a584b09c6319c7fb3020bcd0df3f27b976b3 | [
"Apache-2.0"
] | null | null | null | trikGui/communicationSettingsWidget.cpp | Ashatta/trikRuntime | 0e08a584b09c6319c7fb3020bcd0df3f27b976b3 | [
"Apache-2.0"
] | null | null | null | trikGui/communicationSettingsWidget.cpp | Ashatta/trikRuntime | 0e08a584b09c6319c7fb3020bcd0df3f27b976b3 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2014 CyberTech Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 29.903226 | 97 | 0.736354 | Ashatta |
3bc8fd2fcb17303a91a2b78a0cedcf683c6b408d | 21,693 | cpp | C++ | src/ConEmuHk/ConEmuHooks.cpp | laurent22/ConEmu | 52d4f91692e3ef9ec35d78e29d03e53f035c9e57 | [
"BSD-2-Clause"
] | 2 | 2017-09-17T12:09:16.000Z | 2021-05-15T21:36:47.000Z | src/ConEmuHk/ConEmuHooks.cpp | laurent22/ConEmu | 52d4f91692e3ef9ec35d78e29d03e53f035c9e57 | [
"BSD-2-Clause"
] | null | null | null | src/ConEmuHk/ConEmuHooks.cpp | laurent22/ConEmu | 52d4f91692e3ef9ec35d78e29d03e53f035c9e57 | [
"BSD-2-Clause"
] | null | null | null |
/*
Copyright (c) 2009-2015 Maximus5
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the followin... | 27.424779 | 168 | 0.688148 | laurent22 |
3bca06fcf5cf6419e432aa0018eea2606cf89fdf | 4,556 | cc | C++ | cpp/core_v2/internal/mediums/ble_advertisement_header.cc | jdapena/nearby-connections | ae277748ce068ef1730d5104002d4324fc4ed89e | [
"Apache-2.0"
] | null | null | null | cpp/core_v2/internal/mediums/ble_advertisement_header.cc | jdapena/nearby-connections | ae277748ce068ef1730d5104002d4324fc4ed89e | [
"Apache-2.0"
] | null | null | null | cpp/core_v2/internal/mediums/ble_advertisement_header.cc | jdapena/nearby-connections | ae277748ce068ef1730d5104002d4324fc4ed89e | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 34.515152 | 79 | 0.719271 | jdapena |
3bcc4adc2efc1263228ba2988b6d48d1e7455e17 | 2,698 | cpp | C++ | Test/GacUISrc/Host/Main.cpp | vczh2/GacUI | ce100ec13357bbf03ed3d2040c48d6b2b2fefd2f | [
"RSA-MD"
] | 2 | 2018-10-17T16:00:01.000Z | 2018-11-20T07:53:20.000Z | Test/GacUISrc/Host/Main.cpp | vczh2/GacUI | ce100ec13357bbf03ed3d2040c48d6b2b2fefd2f | [
"RSA-MD"
] | null | null | null | Test/GacUISrc/Host/Main.cpp | vczh2/GacUI | ce100ec13357bbf03ed3d2040c48d6b2b2fefd2f | [
"RSA-MD"
] | null | null | null | #pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#include "ResourceCompiler.h"
#include <Windows.h>
using namespace vl;
using namespace vl::collections;
using namespace vl:... | 28.104167 | 194 | 0.780949 | vczh2 |
3bcc6b1d91e70743d472aec3c1b17757bbc6ec7d | 513 | cpp | C++ | src/1000/1766.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/1000/1766.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/1000/1766.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
vector<int> adj[32001];
int in[32001];
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int n, m;
cin >> n >> m;
while (m--)
{
int a, b;
cin >> a >> b;
adj[a].push_back(b);
in[b]++;
}
priority_queue<int> pq;
for (int i... | 13.864865 | 30 | 0.518519 | upple |
3bd3f042753983a4a7e0c1e84bc860dd9a4250e5 | 1,775 | hpp | C++ | soccer/vision/ball/WorldBall.hpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/vision/ball/WorldBall.hpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | soccer/vision/ball/WorldBall.hpp | kasohrab/robocup-software | 73c92878baf960844b5a4b34c72804093f1ea459 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <list>
#include <Geometry2d/Point.hpp>
#include <Configuration.hpp>
#include <Utils.hpp>
#include "KalmanBall.hpp"
class KalmanBall;
/**
* Best estimate of the true ball position using the kalman balls from each camera
*/
class WorldBall {
public:
/**
* Creates an invalid world bal... | 22.468354 | 87 | 0.646197 | kasohrab |
3bdaf9930bd44b4a075a7de7d1cd7fe437a8b538 | 10,080 | hpp | C++ | include/carve/geom3d.hpp | pcamarillor/Exploratory3D | 10705d201376b98bdf8f19fca398a3bf341807c9 | [
"MIT"
] | null | null | null | include/carve/geom3d.hpp | pcamarillor/Exploratory3D | 10705d201376b98bdf8f19fca398a3bf341807c9 | [
"MIT"
] | null | null | null | include/carve/geom3d.hpp | pcamarillor/Exploratory3D | 10705d201376b98bdf8f19fca398a3bf341807c9 | [
"MIT"
] | null | null | null | // Begin License:
// Copyright (C) 2006-2008 Tobias Sargeant (tobias.sargeant@gmail.com).
// All rights reserved.
//
// This file is part of the Carve CSG Library (http://carve-csg.com/)
//
// This file may be used under the terms of the GNU General Public
// License version 2.0 as published by the Free Software Founda... | 33.488372 | 109 | 0.511012 | pcamarillor |
3bde235f8494aed1d59fd97c3f6a0f09f7083cf8 | 5,250 | cpp | C++ | fpdfsdk/pwl/cpwl_special_button_embeddertest.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | null | null | null | fpdfsdk/pwl/cpwl_special_button_embeddertest.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | null | null | null | fpdfsdk/pwl/cpwl_special_button_embeddertest.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "fpdfsdk/cpdfsdk_annot.h"
#include "fpdfsdk/cpdfsdk_annotiterator.h"
#include "fpdfsdk/cpdfsdk_formfillenvironment.h"
#include "fpdfsdk/cpdfsdk_helpers... | 36.206897 | 80 | 0.75619 | yanxijian |
3be654dbed3a219240983d86e1b0df8402c0e874 | 755 | cpp | C++ | Array/Swap kth elements.cpp | DY-2001/DSA | 0f1f7a19304a2e5cfef690bf51a22bbc73eef4bc | [
"MIT"
] | null | null | null | Array/Swap kth elements.cpp | DY-2001/DSA | 0f1f7a19304a2e5cfef690bf51a22bbc73eef4bc | [
"MIT"
] | null | null | null | Array/Swap kth elements.cpp | DY-2001/DSA | 0f1f7a19304a2e5cfef690bf51a22bbc73eef4bc | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template for C++
class Solution{
public:
// swap k'th element from beginning and end
void swapKth(int *arr, int n, int k) {
int temp = arr[k - 1];
arr[k - 1] = arr[n - k];
arr[n - k] = temp;... | 17.97619 | 44 | 0.445033 | DY-2001 |
3be8104e00c237408d7d0ebd2ddfbecaece37333 | 3,731 | cpp | C++ | src/valueiterator.cpp | DigDeeply/PHP-CPP | 778561e1739a4a7ef20e85b713b4790e6be225d3 | [
"Apache-2.0"
] | 1 | 2020-04-07T03:26:48.000Z | 2020-04-07T03:26:48.000Z | src/valueiterator.cpp | DigDeeply/PHP-CPP | 778561e1739a4a7ef20e85b713b4790e6be225d3 | [
"Apache-2.0"
] | null | null | null | src/valueiterator.cpp | DigDeeply/PHP-CPP | 778561e1739a4a7ef20e85b713b4790e6be225d3 | [
"Apache-2.0"
] | null | null | null | /**
* ValueIterator.cpp
*
* Implementation of the value iterator
*
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
* @copyright 2014 Copernica BV
*/
#include "includes.h"
/**
* Set up namespace
*/
namespace Php {
/**
* Constructor
* @param hashtable The hashtable to iterate over
... | 23.465409 | 100 | 0.639239 | DigDeeply |
3be811d10636d0b1cd7c379dcbe6cbea7201c4f6 | 3,123 | cc | C++ | PacSim/PacWriteParticles.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacSim/PacWriteParticles.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacSim/PacWriteParticles.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// Name:
// PacWriteParticles
// Environment:
//------------------------------------------------------------------------
#include "BaBar/BaBar.hh"
#include "CLHEP/Random/RandFlat.h"
#include "PacSim/PacWriteParticles.hh"
#include "PacSim/Pac... | 33.945652 | 99 | 0.645213 | brownd1978 |
3bec06a2e34702ce170896e0419e65c856b250b1 | 5,769 | cpp | C++ | inference-engine/thirdparty/clDNN/kernel_selector/core/actual_kernels/scatter_update/scatter_elements_update_kernel_ref.cpp | Jacob272727/openvino | 9106eab30b8f449c139e5fb5d2ff260e651f9496 | [
"Apache-2.0"
] | 1 | 2021-04-06T03:32:12.000Z | 2021-04-06T03:32:12.000Z | inference-engine/thirdparty/clDNN/kernel_selector/core/actual_kernels/scatter_update/scatter_elements_update_kernel_ref.cpp | Jacob272727/openvino | 9106eab30b8f449c139e5fb5d2ff260e651f9496 | [
"Apache-2.0"
] | 28 | 2021-09-24T09:29:02.000Z | 2022-03-28T13:20:46.000Z | inference-engine/thirdparty/clDNN/kernel_selector/core/actual_kernels/scatter_update/scatter_elements_update_kernel_ref.cpp | jayabs2020/openvino | 67a82a040faaf66f109035acf7de6e4b7568bc08 | [
"Apache-2.0"
] | 1 | 2020-08-30T11:48:03.000Z | 2020-08-30T11:48:03.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "scatter_elements_update_kernel_ref.h"
#include "kernel_selector_utils.h"
#include <string>
#include <vector>
namespace kernel_selector {
static size_t GetScatterElementsUpdateChannelIndex(const scatter_elements_update_par... | 35.392638 | 155 | 0.67724 | Jacob272727 |
3beed0fdcde3cbd0758ff7a723aa7d76df513359 | 6,166 | cc | C++ | riegeli/ordered_varint/ordered_varint_reading.cc | micahcc/riegeli | d8cc64857253037d4f022e860b7b86cbe7d4b8d8 | [
"Apache-2.0"
] | null | null | null | riegeli/ordered_varint/ordered_varint_reading.cc | micahcc/riegeli | d8cc64857253037d4f022e860b7b86cbe7d4b8d8 | [
"Apache-2.0"
] | null | null | null | riegeli/ordered_varint/ordered_varint_reading.cc | micahcc/riegeli | d8cc64857253037d4f022e860b7b86cbe7d4b8d8 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 36.270588 | 79 | 0.626825 | micahcc |
3bf223f358c795d103332bf214017cdb5cecbdca | 21,858 | cpp | C++ | src/runtime_src/core/pcie/tools/cloud-daemon/azure/azure.cpp | subeeshm-xilinx/XRT | f2f551a815dcd135132f974205401ca0982f9a3b | [
"Apache-2.0"
] | 359 | 2018-10-05T03:05:08.000Z | 2022-03-31T06:28:16.000Z | src/runtime_src/core/pcie/tools/cloud-daemon/azure/azure.cpp | kbhardwa-xilinx/XRT | 9cadec73f5211577c7d5c408a4a7fee0eed23b70 | [
"Apache-2.0"
] | 5,832 | 2018-10-02T22:43:29.000Z | 2022-03-31T22:28:05.000Z | src/runtime_src/core/pcie/tools/cloud-daemon/azure/azure.cpp | kbhardwa-xilinx/XRT | 9cadec73f5211577c7d5c408a4a7fee0eed23b70 | [
"Apache-2.0"
] | 442 | 2018-10-02T23:06:29.000Z | 2022-03-21T08:34:44.000Z | /*
* Partial Copyright (C) 2019-2021 Xilinx, Inc
*
* Microsoft provides sample code how RESTful APIs are being called
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.a... | 33.783617 | 134 | 0.598957 | subeeshm-xilinx |
3bf3d4c5643ab1b27900d8db7c414af4c3cfb2c3 | 7,093 | cc | C++ | oss-internship-2020/libarchive/ld_preload_example/sapi_minitar.cc | Masud2017/sandboxed-api | 753eacd3142127c8bd493bc0e81242c4d3cd2f33 | [
"Apache-2.0"
] | 1,562 | 2019-03-07T10:02:53.000Z | 2022-03-31T17:43:05.000Z | oss-internship-2020/libarchive/ld_preload_example/sapi_minitar.cc | Masud2017/sandboxed-api | 753eacd3142127c8bd493bc0e81242c4d3cd2f33 | [
"Apache-2.0"
] | 70 | 2019-03-19T01:02:49.000Z | 2022-03-30T17:26:53.000Z | oss-internship-2020/libarchive/ld_preload_example/sapi_minitar.cc | Masud2017/sandboxed-api | 753eacd3142127c8bd493bc0e81242c4d3cd2f33 | [
"Apache-2.0"
] | 181 | 2019-03-18T19:41:30.000Z | 2022-03-29T13:08:26.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 30.83913 | 79 | 0.706894 | Masud2017 |
0ec333d88d8ca89a5a47a2c7c339fc85387a464e | 182 | cpp | C++ | src/file_system/file_system__check_filename.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/file_system/file_system__check_filename.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | src/file_system/file_system__check_filename.cpp | violador/catalyst | 40d5c1dd04269a0764a9804711354a474bc43c15 | [
"Unlicense"
] | null | null | null | //
//
//
inline bool check_filename(const std::string &given_filename)
{
switch(given_filename == "")
{
case false: return false; break;
case true: return true; break;
}
};
| 15.166667 | 61 | 0.659341 | violador |
0ec3c653dab53860641ed1c5c71b385a30762af6 | 968 | cpp | C++ | cpp/src/kauvir/kcm-runtime-eval/kcm-env/kcm-env.cpp | Mosaic-DigammaDB/HandbookPragmatics | 55399bb16362f90e26626704f8563fd6d7c0a1f9 | [
"BSL-1.0"
] | 1 | 2019-04-15T08:44:13.000Z | 2019-04-15T08:44:13.000Z | cpp/src/kauvir/kcm-runtime-eval/kcm-env/kcm-env.cpp | Mosaic-DigammaDB/HandbookPragmatics | 55399bb16362f90e26626704f8563fd6d7c0a1f9 | [
"BSL-1.0"
] | null | null | null | cpp/src/kauvir/kcm-runtime-eval/kcm-env/kcm-env.cpp | Mosaic-DigammaDB/HandbookPragmatics | 55399bb16362f90e26626704f8563fd6d7c0a1f9 | [
"BSL-1.0"
] | null | null | null |
// Copyright Nathaniel Christen 2019.
// 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 "kcm-env.h"
#include "kcm-scopes/kcm-scope-system.h"
#include <QDebug>
KCM_Env::KCM_Env... | 21.043478 | 71 | 0.708678 | Mosaic-DigammaDB |
0ecb2863661e1ad57141ae94b59af8810513463c | 10,832 | cc | C++ | tests/utils/test_rsync.cc | pmarguinaud/eckit | 7df4be9a1cd8f4561de6d41b73d37838d78f13ea | [
"Apache-2.0"
] | null | null | null | tests/utils/test_rsync.cc | pmarguinaud/eckit | 7df4be9a1cd8f4561de6d41b73d37838d78f13ea | [
"Apache-2.0"
] | 14 | 2019-09-30T19:24:29.000Z | 2020-10-15T16:02:11.000Z | tests/utils/test_rsync.cc | pmarguinaud/eckit | 7df4be9a1cd8f4561de6d41b73d37838d78f13ea | [
"Apache-2.0"
] | 2 | 2019-10-17T13:52:08.000Z | 2019-11-25T14:53:52.000Z | /*
* (C) Copyright 2020- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... | 30.860399 | 116 | 0.622692 | pmarguinaud |
0ecc2d628737cbf353fe4bf452b728e984ed017e | 1,045 | cpp | C++ | interface/src/ui/overlays/TextOverlay.cpp | overte-org/overte | 95ebe6bab0d5ff9707971f19051177110e274b3d | [
"Apache-2.0"
] | 4 | 2022-02-04T05:20:36.000Z | 2022-02-22T11:40:28.000Z | interface/src/ui/overlays/TextOverlay.cpp | overte-org/overte | 95ebe6bab0d5ff9707971f19051177110e274b3d | [
"Apache-2.0"
] | 38 | 2022-01-18T21:55:11.000Z | 2022-03-30T21:34:23.000Z | interface/src/ui/overlays/TextOverlay.cpp | overte-org/overte | 95ebe6bab0d5ff9707971f19051177110e274b3d | [
"Apache-2.0"
] | 7 | 2022-01-20T00:49:35.000Z | 2022-03-24T21:41:00.000Z | //
// TextOverlay.cpp
// interface/src/ui/overlays
//
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "TextOverlay.h"
#include <QQuickItem>
#include <QFontMetrics>
#... | 24.302326 | 88 | 0.683254 | overte-org |
0ecff1e2703d5aac30651261e1e3fcf7354e8ede | 10,979 | cpp | C++ | Nacro/SDK/FN_InfoEntry_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_InfoEntry_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2021-08-11T18:40:26.000Z | 2021-08-11T18:40:26.000Z | Nacro/SDK/FN_InfoEntry_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function InfoEntry.InfoEntry_C.DoesIt... | 28.296392 | 175 | 0.747245 | Milxnor |
0ed1ffdf868cf267101c359387e152933808e825 | 5,076 | cpp | C++ | Core/Graphics/Window.cpp | ShuboshaKuro/SimpleGameEngine | 01da061fe931ec0ade898b82baa93c591eacbb43 | [
"MIT"
] | null | null | null | Core/Graphics/Window.cpp | ShuboshaKuro/SimpleGameEngine | 01da061fe931ec0ade898b82baa93c591eacbb43 | [
"MIT"
] | null | null | null | Core/Graphics/Window.cpp | ShuboshaKuro/SimpleGameEngine | 01da061fe931ec0ade898b82baa93c591eacbb43 | [
"MIT"
] | null | null | null | #include "Window.hpp"
namespace Core {
namespace Graphics {
void error_callback(GLint, const GLchar*);
void windowResize_callback(GLFWwindow*, GLint, GLint);
Window::Window(const GLchar* title, GLint width, GLint height, glm::vec4 clearColor)
: title(title), width(width), height(height), clearColor(clear... | 29.34104 | 162 | 0.685973 | ShuboshaKuro |
0ed33a9f1cce268d4e58bd03fb3ff57a284df8de | 302 | cpp | C++ | engine/softbreeze/math/vector4.cpp | ffskyfan/softbreeze | 18996a4146eb73b2823381430763b8886dead87b | [
"MIT"
] | null | null | null | engine/softbreeze/math/vector4.cpp | ffskyfan/softbreeze | 18996a4146eb73b2823381430763b8886dead87b | [
"MIT"
] | null | null | null | engine/softbreeze/math/vector4.cpp | ffskyfan/softbreeze | 18996a4146eb73b2823381430763b8886dead87b | [
"MIT"
] | null | null | null |
#include "../softbreeze.h"
#include "vector4.h"
softbreeze_namespace_beg
void Vector4::Lerp( const Vector4 &v1, const Vector4 &v2, const float l )
{
if(l <= 0.0f) {
(*this) = v1;
} else if (l >=1.0){
(*this) = v2;
} else {
(*this) = v1 + l*( v2 - v1 );
}
}
softbreeze_namespace_end
| 12.08 | 73 | 0.586093 | ffskyfan |
0ed3ba57cc0b0b9dd74e50d948fd037bb19f81bf | 3,563 | cpp | C++ | test/bench_hom_nand.cpp | watagashi0619/TFHE | 392c06812edd3ccfa56099fbacb8428fbc1fc277 | [
"MIT"
] | 3 | 2021-08-11T05:36:05.000Z | 2021-12-29T06:26:30.000Z | test/bench_hom_nand.cpp | watagashi0619/TFHE | 392c06812edd3ccfa56099fbacb8428fbc1fc277 | [
"MIT"
] | 1 | 2021-09-13T12:53:43.000Z | 2021-09-19T04:12:41.000Z | test/bench_hom_nand.cpp | watagashi0619/TFHE | 392c06812edd3ccfa56099fbacb8428fbc1fc277 | [
"MIT"
] | null | null | null | #include <array>
#include <cassert>
#include <chrono>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <random>
#include "bootstrapping_key.hpp"
#include "gatebootstrapping.hpp"
#include "hom_nand.hpp"
#include "identity_key_switching.hpp"
#include "key.hpp"
#include "key_switching_key.hpp"
#include ... | 34.592233 | 158 | 0.584339 | watagashi0619 |
0ed5f4e8d5016aab53b838e80e4ff252f81c4c1a | 4,214 | cpp | C++ | packages/ECS/source/common/component/CComponentFactoryManager.cpp | jesuslou/LouEngine | 873585baa603b6ee1032af9a6d3648a4c8bb19c8 | [
"Zlib"
] | null | null | null | packages/ECS/source/common/component/CComponentFactoryManager.cpp | jesuslou/LouEngine | 873585baa603b6ee1032af9a6d3648a4c8bb19c8 | [
"Zlib"
] | null | null | null | packages/ECS/source/common/component/CComponentFactoryManager.cpp | jesuslou/LouEngine | 873585baa603b6ee1032af9a6d3648a4c8bb19c8 | [
"Zlib"
] | null | null | null | ////////////////////////////////////////////////////////////
//
// LouEngine - Multiplatform Game Engine Project
// Copyright (C) 2016-2017 Jesus Lou (loucocito@gmail.com)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages ari... | 25.083333 | 112 | 0.707167 | jesuslou |
0ed76ca7d0e793847a03e7387ea87dc4909408c5 | 25,892 | hpp | C++ | src/min_distance.hpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 740 | 2016-02-23T02:31:10.000Z | 2022-03-31T20:51:36.000Z | src/min_distance.hpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 2,455 | 2016-02-24T08:17:45.000Z | 2022-03-31T20:19:41.000Z | src/min_distance.hpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 169 | 2016-03-03T15:41:33.000Z | 2022-03-31T04:01:53.000Z | #ifndef VG_MIN_DISTANCE_HPP_INCLUDED
#define VG_MIN_DISTANCE_HPP_INCLUDED
#include <unordered_set>
#include <jansson.h>
#include "snarls.hpp"
#include "hash_map.hpp"
#include "bdsg/hash_graph.hpp"
using namespace sdsl;
namespace vg {
/**
* The distance index. Stores minimum distances among nodes in each
* netg... | 41.828756 | 202 | 0.641202 | ruolin |
0edd1a36d5423d636689af2472b67b28afbdcf85 | 1,918 | cpp | C++ | Level_3_HW/Section 2.3/Exercise 5/Exercise 5/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_3_HW/Section 2.3/Exercise 5/Exercise 5/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_3_HW/Section 2.3/Exercise 5/Exercise 5/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | //
// main.cpp
// Exercise 5
//
// Created by Zhehao Li on 2020/2/28.
// Copyright © 2020 Zhehao Li. All rights reserved.
//
// Test the structures and interfaces of class Line
#include "Point.hpp"
#include "Line.hpp"
#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv... | 36.188679 | 118 | 0.53024 | ZhehaoLi9705 |
0edf398ac451a526cdf23bb0b6b556ac935f420d | 2,831 | cpp | C++ | ros/pouco2000_ros_src/pouco2000_ros/node/release/controller.cpp | PouceHeure/pouco2000 | bebb0c30dd0849a4a19d4e614cf1f9169bca31c5 | [
"Apache-2.0"
] | 2 | 2020-02-27T18:12:30.000Z | 2020-03-22T14:20:18.000Z | ros/pouco2000_ros_src/pouco2000_ros/node/release/controller.cpp | PouceHeure/pouco2000 | bebb0c30dd0849a4a19d4e614cf1f9169bca31c5 | [
"Apache-2.0"
] | null | null | null | ros/pouco2000_ros_src/pouco2000_ros/node/release/controller.cpp | PouceHeure/pouco2000 | bebb0c30dd0849a4a19d4e614cf1f9169bca31c5 | [
"Apache-2.0"
] | null | null | null | #include "ros/ros.h"
#include "pouco2000_ros/pouco2000.hpp"
// keys param
#define KEY_PARAM_POTENTIOMETERS_CIRCLE "potentiometers/circle/"
#define KEY_PARAM_POTENTIOMETERS_SLIDER "potentiometers/slider/"
#define KEY_PARAM_RATE "~rate"
/**
* @brief load parameter converter from rosparam
*
* @param key the key wh... | 35.3875 | 140 | 0.752738 | PouceHeure |
0ee8a1cbfa9b33742ac4673a05c1f15c6e912c1d | 1,147 | hpp | C++ | include/pastel/utility/tuple/meta/reverse.hpp | naoki-yoshioka/pastel | b443dcc6ae86ff3e94ec9c2e7085b5d6521214e8 | [
"MIT"
] | null | null | null | include/pastel/utility/tuple/meta/reverse.hpp | naoki-yoshioka/pastel | b443dcc6ae86ff3e94ec9c2e7085b5d6521214e8 | [
"MIT"
] | 24 | 2017-12-23T07:39:58.000Z | 2019-09-20T10:16:37.000Z | include/pastel/utility/tuple/meta/reverse.hpp | naoki-yoshioka/pastel | b443dcc6ae86ff3e94ec9c2e7085b5d6521214e8 | [
"MIT"
] | null | null | null | #ifndef PASTEL_UTILITY_TUPLE_META_REVERSE_HPP
# define PASTEL_UTILITY_TUPLE_META_REVERSE_HPP
# include <tuple>
namespace pastel
{
namespace utility
{
namespace tuple
{
namespace meta
{
namespace reverse_detail
{
template <typename Result, typename... Args>
... | 24.934783 | 111 | 0.607672 | naoki-yoshioka |
0eecca916e257c0ad24d5f2602edad5423e0eb46 | 2,673 | cpp | C++ | aws-cpp-sdk-pinpoint-email/source/model/DkimAttributes.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 2 | 2019-03-11T15:50:55.000Z | 2020-02-27T11:40:27.000Z | aws-cpp-sdk-pinpoint-email/source/model/DkimAttributes.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-pinpoint-email/source/model/DkimAttributes.cpp | curiousjgeorge/aws-sdk-cpp | 09b65deba03cfbef9a1e5d5986aa4de71bc03cd8 | [
"Apache-2.0"
] | 1 | 2019-01-18T13:03:55.000Z | 2019-01-18T13:03:55.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 24.081081 | 90 | 0.73251 | curiousjgeorge |
0ef15ee5779c3080ab69e50cc145601ebaa08180 | 5,722 | cpp | C++ | ODE/OpenDynamicsEngine/ode/src/collision_trimesh_disabled.cpp | N3X15/VoxelSim | 89baca47338deccd6615dcc51c0399d3472eaba4 | [
"BSD-3-Clause"
] | 4 | 2015-04-21T01:35:32.000Z | 2022-03-08T14:09:45.000Z | ODE/OpenDynamicsEngine/ode/src/collision_trimesh_disabled.cpp | N3X15/VoxelSim | 89baca47338deccd6615dcc51c0399d3472eaba4 | [
"BSD-3-Clause"
] | null | null | null | ODE/OpenDynamicsEngine/ode/src/collision_trimesh_disabled.cpp | N3X15/VoxelSim | 89baca47338deccd6615dcc51c0399d3472eaba4 | [
"BSD-3-Clause"
] | 5 | 2015-02-27T02:07:26.000Z | 2019-12-13T12:31:58.000Z | /*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001-2003 Russell L. Smith. *
* All rights reserved. Email: russ@q12.org Web: www.q12.org *
* ... | 45.055118 | 110 | 0.598916 | N3X15 |
0ef8611edba4ba58f06c62ace4488d643013af45 | 314 | cpp | C++ | regression/esbmc-cpp/inheritance/dynamic_cast4/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/inheritance/dynamic_cast4/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/inheritance/dynamic_cast4/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | #include <iostream>
#include <cassert>
using namespace std;
struct A {
virtual ~A() { };
};
struct B : A { };
int main() {
B bobj;
A* ap = &bobj;
void * vp = dynamic_cast<void *>(ap);
cout << "Address of vp : " << vp << endl;
cout << "Address of bobj: " << &bobj << endl;
assert(vp == &bobj);
}
| 15.7 | 47 | 0.541401 | shmarovfedor |
0ef939bc01f8965510f512cae6384899f9be2704 | 197,382 | cxx | C++ | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_37.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:11.000Z | 2020-02-08T04:09:11.000Z | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_37.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 40 | 2018-08-26T08:34:34.000Z | 2021-09-28T13:01:55.000Z | dune/xt/data/spherical_quadratures/octant_quadrature/data/order_37.cxx | dune-community/dune-xt-data | 32593bbcd52ed69b0a11963400a9173740089a75 | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:10:14.000Z | 2020-02-08T04:10:14.000Z | // This file is part of the dune-xt-data project:
// https://github.com/dune-community/dune-xt-data
// Copyright 2009-2018 dune-xt-data developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensou... | 114.623693 | 119 | 0.591483 | dune-community |
0eff9c3a08e392e0cad6a583abb5695f47fde908 | 5,100 | hpp | C++ | src/algorithms/data_structures/bt/serialize_and_deserialize_bt.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/algorithms/data_structures/bt/serialize_and_deserialize_bt.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/algorithms/data_structures/bt/serialize_and_deserialize_bt.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef CPPNOTESMAIN_SERIALIZE_AND_DESERIALIZE_BT_HPP
#define CPPNOTESMAIN_SERIALIZE_AND_DESERIALIZE_BT_HPP
/*
https://leetcode.com/problems/serialize-and-deserialize-binary-tree/
Serialization is the process of converting a data structure or object into a sequence of bits so
that it can be stored in a file or memory ... | 31.677019 | 99 | 0.512353 | iamantony |
160213f7873b5d32e8ff6e707118400633f84cd7 | 2,781 | hpp | C++ | extlib/include/xyginext/graphics/postprocess/Blur.hpp | fallahn/speljongen | 57cb5e09eec7db8c21ee7b3e7943fa0a76738c51 | [
"Unlicense"
] | 17 | 2018-06-23T14:40:56.000Z | 2019-07-02T11:58:55.000Z | extlib/include/xyginext/graphics/postprocess/Blur.hpp | fallahn/speljongen | 57cb5e09eec7db8c21ee7b3e7943fa0a76738c51 | [
"Unlicense"
] | 3 | 2018-06-23T12:35:12.000Z | 2018-06-23T12:38:54.000Z | extlib/include/xyginext/graphics/postprocess/Blur.hpp | fallahn/speljongen | 57cb5e09eec7db8c21ee7b3e7943fa0a76738c51 | [
"Unlicense"
] | null | null | null | /*********************************************************************
(c) Matt Marchant 2017 - 2019
http://trederia.blogspot.com
xygineXT - 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 thi... | 31.247191 | 85 | 0.661273 | fallahn |
160b5c0f873ae158bb61d7d008fe97d67ebd2402 | 892 | cpp | C++ | codeforces/746B.cpp | NafiAsib/competitive-programming | 3255b2fe3329543baf9e720e1ccaf08466d77303 | [
"MIT"
] | null | null | null | codeforces/746B.cpp | NafiAsib/competitive-programming | 3255b2fe3329543baf9e720e1ccaf08466d77303 | [
"MIT"
] | null | null | null | codeforces/746B.cpp | NafiAsib/competitive-programming | 3255b2fe3329543baf9e720e1ccaf08466d77303 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
char a[2002], b[2002];
int i, n, j = 1, med;
cin>>n>>a;
//if(n%2 == 0) med = n/2 - 1;
//else
med = (n-1)/2;
//cout<<med<<endl;
b[med] = a[0];
j = med+1;
if(n%2 != 0)
{
for(i = 2; a[i] != '\0'; i... | 13.723077 | 41 | 0.25 | NafiAsib |
160c0d059b2fe7952cd69605a6bd4050d9c2f86f | 4,373 | cpp | C++ | src/drm/origin_drm.cpp | Proj-Ascension/Client | 436a594b750d0084831ead7f2372fb7a1a8709a6 | [
"MIT"
] | 322 | 2015-05-01T22:01:34.000Z | 2021-10-02T16:00:54.000Z | src/drm/origin_drm.cpp | Proj-Ascension/Client | 436a594b750d0084831ead7f2372fb7a1a8709a6 | [
"MIT"
] | 89 | 2015-05-02T15:27:35.000Z | 2016-08-21T17:10:23.000Z | src/drm/origin_drm.cpp | Proj-Ascension/Client | 436a594b750d0084831ead7f2372fb7a1a8709a6 | [
"MIT"
] | 105 | 2015-05-02T12:38:19.000Z | 2019-03-13T12:59:50.000Z | #include "origin_drm.h"
#include <QLineEdit>
#include <QCheckBox>
#include <QStandardPaths>
OriginDRM::OriginDRM() : DRMType("<b>Origin</b>"){}
/** Check if Origin exists or not and set various class variables accordingly. */
void OriginDRM::checkOriginExists()
{
QDir originRoot;
QDir originFolder;
#if define... | 33.381679 | 135 | 0.60965 | Proj-Ascension |
160c273090746d17ce9385402a48e8b40fe5ea04 | 1,890 | hpp | C++ | tool/tssplitter/inc/tssplitter/ts/psi/basic_traits.hpp | mrk21/tvrec | 0f261714ace005473a5d0f35d5f4d8e43d60b175 | [
"MIT"
] | null | null | null | tool/tssplitter/inc/tssplitter/ts/psi/basic_traits.hpp | mrk21/tvrec | 0f261714ace005473a5d0f35d5f4d8e43d60b175 | [
"MIT"
] | null | null | null | tool/tssplitter/inc/tssplitter/ts/psi/basic_traits.hpp | mrk21/tvrec | 0f261714ace005473a5d0f35d5f4d8e43d60b175 | [
"MIT"
] | null | null | null | #pragma once
#include <tssplitter/bitfield.hpp>
#include <tssplitter/byte_container.hpp>
namespace tssplitter { namespace ts { namespace psi {
using pointer_field_type = bitfield< 8>;
using table_id_type = pointer_field_type::next_bitfield< ... | 46.097561 | 143 | 0.624339 | mrk21 |
1614843c3ba221e5971c1b9160bd86336921f1b9 | 1,356 | cpp | C++ | src/utils/ObjectCounter.cpp | igorglotov/tizen-vk-client | de213ede7185818285f78abad36592bc864f76cc | [
"Unlicense"
] | null | null | null | src/utils/ObjectCounter.cpp | igorglotov/tizen-vk-client | de213ede7185818285f78abad36592bc864f76cc | [
"Unlicense"
] | null | null | null | src/utils/ObjectCounter.cpp | igorglotov/tizen-vk-client | de213ede7185818285f78abad36592bc864f76cc | [
"Unlicense"
] | null | null | null | /*
* CheckedObject.cpp
*
* Created on: Nov 23, 2013
* Author: wolong
*/
#include "ObjectCounter.h"
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
ObjectCounter::ObjectCounter() {
// TODO Auto-generated constructor stub
}
ObjectCounter::~ObjectCounter() {
// TODO Auto-generated d... | 21.52381 | 143 | 0.69469 | igorglotov |
1620552c1a40b61d5f2f287279541604981e597e | 9,766 | cpp | C++ | applic/rfid-progr/source/P_Param.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | applic/rfid-progr/source/P_Param.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | applic/rfid-progr/source/P_Param.cpp | NPaolini/NPS_OpenSource | 0c7da066b02b57ce282a1903a3901a563d04a28f | [
"Unlicense"
] | null | null | null | //---------- p_param.cpp -----------------------------------------------------
//----------------------------------------------------------------------------
#include "precHeader.h"
//----------------------------------------------------------------------------
#include "p_param.h"
#include "pOwnBtnImageStd.h"
#include ... | 32.445183 | 82 | 0.441327 | NPaolini |
16212821d9029f37c53d7f4ca5c1824d5c989787 | 3,048 | tcc | C++ | src/snark/libsnark/algebra/evaluation_domain/domains/basic_radix2_domain.tcc | phabulu/litecoinz | f27d3e157811c8ae19bc7165d613f4d4b8ef9523 | [
"MIT"
] | 1 | 2018-03-27T16:37:14.000Z | 2018-03-27T16:37:14.000Z | src/snark/libsnark/algebra/evaluation_domain/domains/basic_radix2_domain.tcc | phabulu/litecoinz | f27d3e157811c8ae19bc7165d613f4d4b8ef9523 | [
"MIT"
] | null | null | null | src/snark/libsnark/algebra/evaluation_domain/domains/basic_radix2_domain.tcc | phabulu/litecoinz | f27d3e157811c8ae19bc7165d613f4d4b8ef9523 | [
"MIT"
] | null | null | null | /** @file
*****************************************************************************
Implementation of interfaces for the "basic radix-2" evaluation domain.
See basic_radix2_domain.hpp .
*****************************************************************************
* @author This file is part of libsnark,... | 26.973451 | 97 | 0.644685 | phabulu |
1621934a1dbdff8eb1a5ef3f6cd09ca90eb5d7e5 | 2,903 | cpp | C++ | Siv3D/src/Siv3D/Effect/SivEffect.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/src/Siv3D/Effect/SivEffect.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Effect/SivEffect.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Effect.hpp>
# include <Siv3D/... | 20.159722 | 115 | 0.671719 | tas9n |
1628020523432c89e4431bcb9daeb491558daa2b | 1,757 | cc | C++ | src/c4/test/tstopstream.cc | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/c4/test/tstopstream.cc | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/c4/test/tstopstream.cc | rspavel/Draco | b279b1afbfbb39f2d521579697172394c5efd81d | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
/*!
* \file c4/test/tstopstream.cc
* \author Kent Budge
* \date Wed Apr 28 09:31:51 2010
* \brief Test c4::determinate_swap and c4::indeterminate_swap functions
* \note Copyright (C) 2016-2019 Triad National Security, LLC.
* ... | 27.453125 | 79 | 0.407513 | rspavel |
1628a996e8e3d890751ae9cb9c0a66d39338cc38 | 2,148 | cc | C++ | src/tracing/track_event_legacy.cc | newpolaris/perfetto | f108ded952984ec5e7073562d4d3ae055e9cca4d | [
"Apache-2.0"
] | 2 | 2020-03-09T04:39:32.000Z | 2020-03-09T09:12:02.000Z | src/tracing/track_event_legacy.cc | joelagnel/perfetto | 425f7bf4e75cc212244f720b1e19176bc9e54ef4 | [
"Apache-2.0"
] | null | null | null | src/tracing/track_event_legacy.cc | joelagnel/perfetto | 425f7bf4e75cc212244f720b1e19176bc9e54ef4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 30.253521 | 79 | 0.69041 | newpolaris |
162e4e6a93d59d81f8c4c52c7c14c17839ab4510 | 5,262 | hpp | C++ | include/UnityEngine/AudioSpeakerMode.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/UnityEngine/AudioSpeakerMode.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/UnityEngine/AudioSpeakerMode.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "Syste... | 52.09901 | 104 | 0.733371 | RedBrumbler |
1631304d17f937600856c7180eb2da1bb08b289e | 4,024 | cpp | C++ | plugin_vc/game_vc/CShadowCamera.cpp | gta-chaos-mod/plugin-sdk | e3bf176337774a2afc797a47825f81adde78e899 | [
"Zlib"
] | 368 | 2015-01-01T21:42:00.000Z | 2022-03-29T06:22:22.000Z | plugin_vc/game_vc/CShadowCamera.cpp | gta-chaos-mod/plugin-sdk | e3bf176337774a2afc797a47825f81adde78e899 | [
"Zlib"
] | 89 | 2016-05-08T06:42:36.000Z | 2022-03-29T06:49:09.000Z | plugin_vc/game_vc/CShadowCamera.cpp | gta-chaos-mod/plugin-sdk | e3bf176337774a2afc797a47825f81adde78e899 | [
"Zlib"
] | 179 | 2015-02-03T23:41:17.000Z | 2022-03-26T08:27:16.000Z | /*
Plugin-SDK (Grand Theft Auto Vice City) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CShadowCamera.h"
PLUGIN_SOURCE_FILE
int addrof(CShadowCamera::Create) = ADDRESS_BY_VERSION(0x626E70, 0... | 50.3 | 155 | 0.797465 | gta-chaos-mod |
1633d122e58504f849a831e667e56cc59ef747b1 | 354 | cpp | C++ | aat/cpp/src/core/exchange/exchange.cpp | mthomascarcamo/aat | fd86f513ccf79625516d2236be655498b24ec742 | [
"Apache-2.0"
] | 305 | 2020-02-24T02:25:43.000Z | 2022-03-26T22:53:43.000Z | aat/cpp/src/core/exchange/exchange.cpp | mthomascarcamo/aat | fd86f513ccf79625516d2236be655498b24ec742 | [
"Apache-2.0"
] | 79 | 2020-02-20T21:00:58.000Z | 2022-03-27T14:06:26.000Z | aat/cpp/src/core/exchange/exchange.cpp | mthomascarcamo/aat | fd86f513ccf79625516d2236be655498b24ec742 | [
"Apache-2.0"
] | 71 | 2020-05-10T11:52:25.000Z | 2022-03-29T07:51:48.000Z | #include <sstream>
#include <aat/core/exchange/exchange.hpp>
namespace aat {
namespace core {
str_t
ExchangeType::toString() const {
if (name != "") {
return "Exchange+(" + name + ")";
}
return "No Exchange";
}
json
ExchangeType::toJson() const {
json ret;
return ret;
}
} // n... | 15.391304 | 41 | 0.59322 | mthomascarcamo |
1635c3fd20e2e902d382e06be3d7c1a799708e42 | 1,891 | cpp | C++ | iree/compiler/Codegen/SPIRV/AdrenoConfig.cpp | KyleHerndon/iree | 916c6f92ee4729da21ab0cf266f086f9a4f3b80b | [
"Apache-2.0"
] | null | null | null | iree/compiler/Codegen/SPIRV/AdrenoConfig.cpp | KyleHerndon/iree | 916c6f92ee4729da21ab0cf266f086f9a4f3b80b | [
"Apache-2.0"
] | 4 | 2021-01-05T09:58:18.000Z | 2021-02-11T10:50:12.000Z | iree/compiler/Codegen/SPIRV/AdrenoConfig.cpp | marbre/iree | ce1af180c87ed4b4501d4a7b6f2b2617624440c0 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//===- AdrenoConfig.h - Adreno CodeGen Configurations ---------------------===//
//
// This file ... | 37.078431 | 80 | 0.567953 | KyleHerndon |
1637db86e04614c58e72af5386ad14eb6815f5f7 | 7,075 | cpp | C++ | GridShader.cpp | lanpai/tiny-space | 289ba3081c280debaa2abc879cb09ce1c17754f8 | [
"MIT"
] | 1 | 2019-10-25T22:59:50.000Z | 2019-10-25T22:59:50.000Z | GridShader.cpp | lanpai/tiny-space | 289ba3081c280debaa2abc879cb09ce1c17754f8 | [
"MIT"
] | null | null | null | GridShader.cpp | lanpai/tiny-space | 289ba3081c280debaa2abc879cb09ce1c17754f8 | [
"MIT"
] | null | null | null | #include "GridShader.h"
#include <cmath>
#include <tiny-piyo/Shaders.h>
void GridShader::Init()
{
this->_programID = CreateShader(
R"(
#version 330 core
layout(location = 0) in vec3 vertPosition;
layout(location = 1) in vec4 vertColor;
out vec3 fragPositi... | 30.76087 | 117 | 0.581908 | lanpai |
163b12982bd0b636414730a80926e7ab9cdf98c4 | 12,315 | cc | C++ | v8_consumer/src/utils.cc | abhi-bit/Eventing | 8836d2b262365e4ee51ec583a7818d2480c2d498 | [
"Apache-2.0"
] | null | null | null | v8_consumer/src/utils.cc | abhi-bit/Eventing | 8836d2b262365e4ee51ec583a7818d2480c2d498 | [
"Apache-2.0"
] | 11 | 2016-06-22T16:21:55.000Z | 2016-11-02T04:23:08.000Z | v8_consumer/src/utils.cc | abhi-bit/Eventing | 8836d2b262365e4ee51ec583a7818d2480c2d498 | [
"Apache-2.0"
] | 1 | 2016-06-29T11:52:31.000Z | 2016-06-29T11:52:31.000Z | // Copyright (c) 2017 Couchbase, 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 w... | 29.746377 | 80 | 0.665286 | abhi-bit |
1640bdb99b1a2bf0f02143d63fb318654f36f5b2 | 1,431 | cpp | C++ | SOSHook/stdafx.cpp | tongko/SOS | 4b7ab321b336a2077aaf957c4362962e4e65259c | [
"Apache-2.0"
] | null | null | null | SOSHook/stdafx.cpp | tongko/SOS | 4b7ab321b336a2077aaf957c4362962e4e65259c | [
"Apache-2.0"
] | null | null | null | SOSHook/stdafx.cpp | tongko/SOS | 4b7ab321b336a2077aaf957c4362962e4e65259c | [
"Apache-2.0"
] | null | null | null | // stdafx.cpp : source file that includes just the standard includes
// SOSHook.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
HMODULE g_hModule = NULL... | 26.018182 | 122 | 0.707198 | tongko |
1642c9fbf7d569e9760f9e78a9124aa1bd2816c7 | 105,166 | cpp | C++ | src/coreclr/src/vm/gdbjit.cpp | patricksadowski/runtime | aa5b2041471d7687dbddb1d275ea8a93943c43bf | [
"MIT"
] | 2 | 2020-03-28T13:38:11.000Z | 2020-12-18T15:00:04.000Z | src/coreclr/src/vm/gdbjit.cpp | patricksadowski/runtime | aa5b2041471d7687dbddb1d275ea8a93943c43bf | [
"MIT"
] | 1 | 2020-04-24T10:03:11.000Z | 2020-04-24T10:03:11.000Z | src/coreclr/src/vm/gdbjit.cpp | patricksadowski/runtime | aa5b2041471d7687dbddb1d275ea8a93943c43bf | [
"MIT"
] | 3 | 2021-02-10T16:20:05.000Z | 2021-03-12T07:55:36.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//*****************************************************************************
// File: gdbjit.cpp
//
//
// NotifyG... | 28.461705 | 131 | 0.607582 | patricksadowski |
16436957f8231aba3e04fd20fac6f2b0790ae28e | 1,267 | cpp | C++ | foobar2000/helpers/packet_decoder_mp3_common.cpp | jpbattaille/foobar2000 | 9b057e21fee0a185d09d520de9bb7bce27cb264b | [
"Unlicense"
] | 147 | 2017-11-19T22:22:09.000Z | 2019-06-24T11:57:40.000Z | foobar_sdk/foobar2000/helpers/packet_decoder_mp3_common.cpp | izilzty/foo_usbhid_m202md28a | b4d6df8baa290fe2ad33c57ec8acd77dcd82500a | [
"Unlicense"
] | 28 | 2018-05-22T19:57:58.000Z | 2019-06-21T23:31:50.000Z | fb2k/foobar2000/helpers/packet_decoder_mp3_common.cpp | hozuki/foo_input_nemuc | 884fc8d7c1af2ac7eb8235cd5691d156109db94a | [
"MIT"
] | 14 | 2017-11-22T01:53:31.000Z | 2019-04-04T18:45:18.000Z | #include "stdafx.h"
#include "packet_decoder_mp3_common.h"
#include "mp3_utils.h"
unsigned packet_decoder_mp3_common::parseDecoderSetup( const GUID & p_owner,t_size p_param1,const void * p_param2,t_size p_param2size )
{
if (p_owner == owner_MP3) return 3;
else if (p_owner == owner_MP2) return 2;
else if (p... | 28.795455 | 135 | 0.632202 | jpbattaille |
f3876d43438b47cf5a242d7df5c8da3aa37fa4ad | 29,080 | cpp | C++ | Source/API/D3D12/SwapChainD3D12.cpp | KawBuma/Buma3D | 73b1c7a99c979492f072d4ead89f2d357d5e048a | [
"MIT"
] | 5 | 2020-11-25T05:05:13.000Z | 2022-02-09T09:35:21.000Z | Source/API/D3D12/SwapChainD3D12.cpp | KawBuma/Buma3D | 73b1c7a99c979492f072d4ead89f2d357d5e048a | [
"MIT"
] | 5 | 2020-11-11T09:52:59.000Z | 2021-12-15T13:27:37.000Z | Source/API/D3D12/SwapChainD3D12.cpp | KawBuma/Buma3D | 73b1c7a99c979492f072d4ead89f2d357d5e048a | [
"MIT"
] | null | null | null | #include "Buma3DPCH.h"
#include "SwapChainD3D12.h"
namespace buma3d
{
namespace /*anonymous*/
{
DXGI_USAGE GetNativeBufferFlags(SWAP_CHAIN_BUFFER_FLAGS _flags)
{
DXGI_USAGE result = 0;
if (_flags & SWAP_CHAIN_BUFFER_FLAG_SHADER_RESOURCE)
result |= DXGI_USAGE_SHADER_INPUT;
if (_flags & SWAP_CHAI... | 35.856967 | 277 | 0.676135 | KawBuma |
f38c23aae6c334dab4632f2c183a401cd169e464 | 106 | cpp | C++ | qt_course/examples/01_trivial/01_hello_console/main.cpp | matus-chochlik/various | 2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b | [
"MIT"
] | 1 | 2020-10-25T12:28:50.000Z | 2020-10-25T12:28:50.000Z | qt_course/examples/01_trivial/01_hello_console/main.cpp | matus-chochlik/various | 2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b | [
"MIT"
] | null | null | null | qt_course/examples/01_trivial/01_hello_console/main.cpp | matus-chochlik/various | 2a9f5eddd964213f7d1e1ce8328e2e0b2a8e998b | [
"MIT"
] | null | null | null | #include <QTextStream>
int main(void)
{
QTextStream(stdout) << "Hello, console!" << endl;
return 0;
}
| 13.25 | 50 | 0.650943 | matus-chochlik |
f38c375991b9e958cc50caeee3781df7ce52eda5 | 1,951 | cpp | C++ | microNode/libraries/FRAM/fram.cpp | loranodes/arduino-core | 256eaf15e8a6bef67174fb162c54f1c73854c11c | [
"MIT"
] | null | null | null | microNode/libraries/FRAM/fram.cpp | loranodes/arduino-core | 256eaf15e8a6bef67174fb162c54f1c73854c11c | [
"MIT"
] | null | null | null | microNode/libraries/FRAM/fram.cpp | loranodes/arduino-core | 256eaf15e8a6bef67174fb162c54f1c73854c11c | [
"MIT"
] | null | null | null | #include "Arduino.h"
#include "fram.h"
#include "Wire.h"
void FRAMinit(){
Wire.begin();
}
void FRAMwrite(uint16_t address, uint8_t data){
Wire.beginTransmission(pageAddress(address));
Wire.write(wordAddress(address));
Wire.write(data);
Wire.endTransmission(true);
}
void FRAMwriteblock(uint1... | 20.978495 | 77 | 0.689903 | loranodes |
f38ea185dffc2d98f18b3a6f76d766369afc1af5 | 393 | cpp | C++ | GPM/MathTestProject/src/main.cpp | Hukunaa/GPM_Maths_Library | 7b2515a6a5fec5bfe213e1d503d4607c753e9cf3 | [
"MIT"
] | null | null | null | GPM/MathTestProject/src/main.cpp | Hukunaa/GPM_Maths_Library | 7b2515a6a5fec5bfe213e1d503d4607c753e9cf3 | [
"MIT"
] | null | null | null | GPM/MathTestProject/src/main.cpp | Hukunaa/GPM_Maths_Library | 7b2515a6a5fec5bfe213e1d503d4607c753e9cf3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <GPM/GPM.h>
int main(const int p_argc, char** p_argv)
{
try
{
// Try stuff here
Matrix4F rot = GPM::Matrix4F::LookAt(GPM::Vector3F(0, 0, 0), GPM::Vector3F(0, 0, 3), GPM::Vector3F(0, 1, 0));
std::cout << rot;
}
catch (const std::exception & e)
{
std::cerr << "Exception thrown:... | 20.684211 | 111 | 0.615776 | Hukunaa |
f38ff80ab6fed64a9b95d6412c4a20cd785a495e | 379 | cpp | C++ | code/nastyhacks.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 8 | 2020-02-21T22:21:01.000Z | 2022-02-16T05:30:54.000Z | code/nastyhacks.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | null | null | null | code/nastyhacks.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 3 | 2020-08-05T05:42:35.000Z | 2021-08-30T05:39:51.000Z | #include <iostream>
#include <string>
using namespace std;
int main(){
int dataSets = 0;
int rev, exp, adv;
cin >> dataSets;
for (int i = 0; i < dataSets; i++){
cin >> rev >> exp >> adv;
if (rev > (exp - adv)){
cout << "do not advertise\n";
}
else if (rev == (exp - adv)){
cout << "does not matter\n";... | 16.478261 | 36 | 0.540897 | matthewReff |
f3941ed6817872126382884d637645ecee3207a7 | 57,751 | cpp | C++ | ros/src/util/packages/kitti_pkg/kitti_player/src/kitti_player.cpp | filiperinaldi/Autoware | 9fae6cc7cb8253586578dbb62a2f075b52849e6e | [
"Apache-2.0"
] | 64 | 2018-11-19T02:34:05.000Z | 2021-12-27T06:19:48.000Z | ros/src/util/packages/kitti_pkg/kitti_player/src/kitti_player.cpp | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 18 | 2019-04-08T16:09:37.000Z | 2019-06-05T15:24:40.000Z | ros/src/util/packages/kitti_pkg/kitti_player/src/kitti_player.cpp | anhnv3991/autoware | d5b2ed9dc309193c8a2a7c77a2b6c88104c28328 | [
"Apache-2.0"
] | 34 | 2018-11-27T08:57:32.000Z | 2022-02-18T08:06:04.000Z | // redmine usage: This commit refs #388 @2h
// ###############################################################################################
// ###############################################################################################
// ##########################################################################... | 43.259176 | 189 | 0.561531 | filiperinaldi |
f3956e30071100252e640894359d9a4ebf8c1d42 | 1,548 | cpp | C++ | Prog-CalibrateCamera/src/Logger.cpp | BProj-LMN/Studienarbeit | 94cb93654e58f155aa6b56b93230a49f63846e01 | [
"BSD-3-Clause"
] | null | null | null | Prog-CalibrateCamera/src/Logger.cpp | BProj-LMN/Studienarbeit | 94cb93654e58f155aa6b56b93230a49f63846e01 | [
"BSD-3-Clause"
] | null | null | null | Prog-CalibrateCamera/src/Logger.cpp | BProj-LMN/Studienarbeit | 94cb93654e58f155aa6b56b93230a49f63846e01 | [
"BSD-3-Clause"
] | null | null | null | /*
* Logger.cpp
*
* function: Logger Singleton for logging with different log levels to a file
*
* author: Jannik Beyerstedt
*/
#include "Logger.h"
#include <iomanip>
Logger::Logger() {
logfile.open("logfile.txt", std::ios::trunc);
logfile << std::setprecision(3) << std::fixed;
time_start = std::chrono:... | 25.377049 | 115 | 0.646641 | BProj-LMN |
f395941baaf477d25d4a8d532a72c23989a73cf3 | 386 | cpp | C++ | competitive_programming/programming_contests/uri/the_race_of_slugs.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/uri/the_race_of_slugs.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/uri/the_race_of_slugs.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | // https://www.urionlinejudge.com.br/judge/en/problems/view/1789
#include <iostream>
using namespace std;
int main() {
int n, x, faster = 0;
while (scanf("%d", &n) != EOF) {
while (n--) {
cin >> x;
if (x > faster) faster = x;
}
if (faster < 10) cout << 1 << endl;
else if (faster < 20) cout << 2 ... | 14.846154 | 64 | 0.546632 | LeandroTk |
f39eb71102fb1006d6183b7187098ee51401ba17 | 3,220 | cpp | C++ | test/record/object.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | test/record/object.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | test/record/object.cpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 <fcppt/noncopyable.hpp>
#include <fcppt/record/element.hpp>
#include <fcppt/record/get.hp... | 10.592105 | 61 | 0.581056 | pmiddend |
f39f9901fd56c6a8d1b8a44591374f786561c487 | 5,593 | cc | C++ | src/cc/kfsio/ChunkAccessToken.cc | beol/qfs | 41201cfc1ff6c081324543712d0c02074fa66326 | [
"Apache-2.0"
] | null | null | null | src/cc/kfsio/ChunkAccessToken.cc | beol/qfs | 41201cfc1ff6c081324543712d0c02074fa66326 | [
"Apache-2.0"
] | null | null | null | src/cc/kfsio/ChunkAccessToken.cc | beol/qfs | 41201cfc1ff6c081324543712d0c02074fa66326 | [
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------- -*- Mode: C++ -*-
// $Id$
//
// Created 2013/10/9
// Author: Mike Ovsiannikov
//
// Copyright 2013,2016 Quantcast Corporation. All rights reserved.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache License, Version 2.0
// (t... | 24.530702 | 78 | 0.547649 | beol |
f3a37d53defb5dbef57d32c49afcf11d90b318cf | 1,136 | cpp | C++ | src/XML Tree/XML_Node.cpp | VladimirAnaniev/XML-Parser | 118f71831dc5ba96d1f6e57d42560e866d0fe22b | [
"MIT"
] | 1 | 2020-09-20T16:11:58.000Z | 2020-09-20T16:11:58.000Z | src/XML Tree/XML_Node.cpp | VladimirAnaniev/XML-Parser | 118f71831dc5ba96d1f6e57d42560e866d0fe22b | [
"MIT"
] | 2 | 2017-06-03T16:29:01.000Z | 2017-08-30T11:40:29.000Z | src/XML Tree/XML_Node.cpp | VladimirAnaniev/XML-Parser | 118f71831dc5ba96d1f6e57d42560e866d0fe22b | [
"MIT"
] | null | null | null | #include "XML_Node.h"
#include "../Parser/Parser.h"
String XML_Node::getTag() const {
return this->data.tag;
}
void XML_Node::addArgument(Argument arg) {
this->data.arguments.push(arg);
}
List<Argument> &XML_Node::getArguments() {
return this->data.arguments;
}
Argument XML_Node::removeArgument(int ind... | 19.586207 | 68 | 0.65669 | VladimirAnaniev |
f3a41cdae45cbc6517b3da51420429faa4244481 | 6,266 | cpp | C++ | Tests/UnitTests/ReaderTests/ImageReaderTests.cpp | alexboukhvalova/CNTK | 8835d4f61b393f068a4f019424bbc80c0b4e761a | [
"RSA-MD"
] | 6 | 2019-08-18T05:29:09.000Z | 2021-01-19T09:58:45.000Z | Tests/UnitTests/ReaderTests/ImageReaderTests.cpp | Omar-Belghaouti/CNTK | 422f710242c602b2660a634f2234abf5aaf5b337 | [
"RSA-MD"
] | null | null | null | Tests/UnitTests/ReaderTests/ImageReaderTests.cpp | Omar-Belghaouti/CNTK | 422f710242c602b2660a634f2234abf5aaf5b337 | [
"RSA-MD"
] | 1 | 2019-03-20T21:44:46.000Z | 2019-03-20T21:44:46.000Z | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#include "stdafx.h"
#include "Common/ReaderTestHelper.h"
using namespace Microsoft::MSR::CNTK;
namespace Microsoft { namespace MSR { namespace CNTK { namespac... | 27.848889 | 218 | 0.588733 | alexboukhvalova |
f3a577fcb91417cf1d9a6e4807469ace4b0d48d0 | 5,612 | hpp | C++ | ntt/schoenhage-strassen-radix2.hpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | ntt/schoenhage-strassen-radix2.hpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | ntt/schoenhage-strassen-radix2.hpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 9 | 2020-11-06T11:55:10.000Z | 2022-03-20T04:45:31.000Z | #pragma once
template <typename T>
struct Schoenhage_Strassen_radix2 {
T* buf = nullptr;
void rot(T* dst, T* src, int s, int d) {
assert(0 <= d and d < 2 * s);
bool f = s <= d;
if (s <= d) d -= s;
int i = 0;
if (f) {
for (; i < s - d; i++) dst[i + d] = -src[i];
for (; i < s; i++) d... | 26.347418 | 75 | 0.349252 | NachiaVivias |
f3a8bb2621f54b42e2e744a1314cb98f8e1c4a20 | 1,304 | hh | C++ | include/MEPED_DetectorMessenger.hh | kbyando/meped-etelescope | cb1805cb8d1662a561fb1b7a405aecbfffac8f2c | [
"Apache-2.0"
] | null | null | null | include/MEPED_DetectorMessenger.hh | kbyando/meped-etelescope | cb1805cb8d1662a561fb1b7a405aecbfffac8f2c | [
"Apache-2.0"
] | null | null | null | include/MEPED_DetectorMessenger.hh | kbyando/meped-etelescope | cb1805cb8d1662a561fb1b7a405aecbfffac8f2c | [
"Apache-2.0"
] | null | null | null | // NOAA POES Monte Carlo Simulation v1.3, 17/09/2008e
// MEPED (Medium Energy Proton and Electron Detector)
// Karl Yando, Professor Robyn Millan
// Dartmouth College, 2008
//
// "MEPED_DetectorMessenger.hh" - (generic)
#ifndef MEPED_DetectorMessenger_h
#define MEPED_DetectorMessenger_h 1
#include "globals.hh"
#inclu... | 27.744681 | 58 | 0.742331 | kbyando |
f3a99d7e42e117c5859ebaaabe12d20ddb502f45 | 4,281 | hpp | C++ | engine/gems/image/conversions.hpp | stereoboy/isaac_sdk_20191213 | 73c863254e626c8d498870189fbfb20be4e10fb3 | [
"FSFAP"
] | 1 | 2020-04-14T13:55:16.000Z | 2020-04-14T13:55:16.000Z | engine/gems/image/conversions.hpp | stereoboy/isaac_sdk_20191213 | 73c863254e626c8d498870189fbfb20be4e10fb3 | [
"FSFAP"
] | 4 | 2020-09-25T22:34:29.000Z | 2022-02-09T23:45:12.000Z | engine/gems/image/conversions.hpp | stereoboy/isaac_sdk_20191213 | 73c863254e626c8d498870189fbfb20be4e10fb3 | [
"FSFAP"
] | 1 | 2020-07-02T11:51:17.000Z | 2020-07-02T11:51:17.000Z | /*
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 42.81 | 98 | 0.772483 | stereoboy |
f3aa41b696f21cba2f2d1a5dfa4b8dd8664c7306 | 36,350 | cpp | C++ | src/SurfaceSource/SurfaceSource.cpp | sellitforcache/ss2dist | 943284bca9ca5ce8ffeb43ef3b6ef2e39d207702 | [
"BSD-3-Clause"
] | null | null | null | src/SurfaceSource/SurfaceSource.cpp | sellitforcache/ss2dist | 943284bca9ca5ce8ffeb43ef3b6ef2e39d207702 | [
"BSD-3-Clause"
] | null | null | null | src/SurfaceSource/SurfaceSource.cpp | sellitforcache/ss2dist | 943284bca9ca5ce8ffeb43ef3b6ef2e39d207702 | [
"BSD-3-Clause"
] | 1 | 2018-09-25T13:50:15.000Z | 2018-09-25T13:50:15.000Z | #include <fstream>
#include <vector>
#include <string>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <vector>
#include <algorithm>
#include <numeric>
#include <iterator>
#include <valarray>
#include <climits>
#include <sstream>
#include <sys/stat.h>
#include <bits... | 36.133201 | 174 | 0.635626 | sellitforcache |
f3ac9ec03734001a5239da0d0e564b5d54538367 | 2,111 | hpp | C++ | simulations/landau/pdi_out.yml.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | 3 | 2022-02-28T08:47:07.000Z | 2022-03-01T10:29:08.000Z | simulations/landau/pdi_out.yml.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | simulations/landau/pdi_out.yml.hpp | gyselax/gyselalibxx | 5f9b4b1e20050f87e2a9f05d510bedf0f9a15b34 | [
"MIT"
] | null | null | null | // SPDX-License-Identifier: MIT
constexpr char const* const PDI_CFG = R"PDI_CFG(
metadata:
Nx : int
Nvx : int
iter : int
time_saved : double
nbstep_diag: int
iter_saved : int
MeshX_extents: { type: array, subtype: int64, size: 1 }
MeshX:
type: array
subtype: double
size: [ '$MeshX_extents[0... | 28.917808 | 113 | 0.661772 | gyselax |
f3af83afc90d2e5d70380cedd8f4f19e2436f029 | 312 | cpp | C++ | MSVC/14.24.28314/crt/src/vcruntime/exe_main.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | MSVC/14.24.28314/crt/src/vcruntime/exe_main.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | MSVC/14.24.28314/crt/src/vcruntime/exe_main.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | //
// exe_wwinmain.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The mainCRTStartup() entry point, linked into client executables that
// uses main().
//
#define _SCRT_STARTUP_MAIN
#include "exe_common.inl"
extern "C" int mainCRTStartup()
{
return __scrt_common_main();
}
| 17.333333 | 72 | 0.705128 | 825126369 |
f3b08568106455f684f40669c567e4062eea231e | 427 | cpp | C++ | programming/numerical_algorithms/horner_value.cpp | Kartm/hs-cs-final-exam | 6af11324740d53a68b921582ab6ec1adee7634e6 | [
"MIT"
] | 1 | 2019-01-27T13:34:42.000Z | 2019-01-27T13:34:42.000Z | programming/numerical_algorithms/horner_value.cpp | Kartm/hs-cs-final-exam | 6af11324740d53a68b921582ab6ec1adee7634e6 | [
"MIT"
] | null | null | null | programming/numerical_algorithms/horner_value.cpp | Kartm/hs-cs-final-exam | 6af11324740d53a68b921582ab6ec1adee7634e6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int calculate(vector<int> coefficients, int x) {
int result = coefficients[0];
for(int i = 1; i < coefficients.size(); i++) {
result = result * x + coefficients[i];
}
return result;
}
int main() {
//* x*x*x + 2*x ... | 21.35 | 50 | 0.594848 | Kartm |
f3b203cab02e2ef25204d35e14bd9ac6f4cf315b | 261 | hpp | C++ | SystemResource/Source/Container/QuadTree/QuadTreePosition.hpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 5 | 2021-10-19T18:30:43.000Z | 2022-03-19T22:02:02.000Z | SystemResource/Source/Container/QuadTree/QuadTreePosition.hpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | 12 | 2022-03-09T13:40:21.000Z | 2022-03-31T12:47:48.000Z | SystemResource/Source/Container/QuadTree/QuadTreePosition.hpp | BitPaw/BitFireEngine | 2c02a4eae19276bf60ac925e4393966cec605112 | [
"MIT"
] | null | null | null | #pragma once
namespace BF
{
template<typename NumberType>
struct QuadTreePosition
{
public:
NumberType X;
NumberType Y;
QuadTreePosition()
{
X = 0;
Y = 0;
}
QuadTreePosition(NumberType x, NumberType y)
{
X = x;
Y = y;
}
};
} | 10.875 | 46 | 0.609195 | BitPaw |
f3b86313a2b242622e540a7112921b8a072d7eac | 6,712 | cpp | C++ | kernel/thor/arch/arm/ints.cpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 935 | 2018-05-23T14:56:18.000Z | 2022-03-29T07:27:20.000Z | kernel/thor/arch/arm/ints.cpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 314 | 2018-05-04T15:58:06.000Z | 2022-03-30T16:24:17.000Z | kernel/thor/arch/arm/ints.cpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 65 | 2019-04-21T14:26:51.000Z | 2022-03-12T03:16:41.000Z | #include <thor-internal/arch/cpu.hpp>
#include <thor-internal/arch/ints.hpp>
#include <thor-internal/arch/gic.hpp>
#include <thor-internal/debug.hpp>
#include <thor-internal/thread.hpp>
#include <assert.h>
namespace thor {
extern "C" void *thorExcVectors;
void initializeIrqVectors() {
asm volatile ("msr vbar_el1, %... | 26.425197 | 161 | 0.637217 | kITerE |
f3bba51408e86ab52e64850002a9730e4b3a3adc | 2,984 | hpp | C++ | copper/hpp/triangle.hpp | CobaltXII/sterling | abef14ec8019aca55e359f78da5711c70be77d35 | [
"MIT"
] | 1 | 2019-03-15T11:55:15.000Z | 2019-03-15T11:55:15.000Z | copper/hpp/triangle.hpp | CobaltXII/copper | abef14ec8019aca55e359f78da5711c70be77d35 | [
"MIT"
] | null | null | null | copper/hpp/triangle.hpp | CobaltXII/copper | abef14ec8019aca55e359f78da5711c70be77d35 | [
"MIT"
] | null | null | null | #pragma once
struct triangle: shape
{
float x0;
float y0;
float z0;
float x1;
float y1;
float z1;
float x2;
float y2;
float z2;
float norm_x;
float norm_y;
float norm_z;
triangle
(
material_type material,
float x0,
float y0,
float z0,
float x1,
float y1,
float z1,
float x2,
flo... | 15.957219 | 52 | 0.632708 | CobaltXII |
f3bf94ef4e82be09f5968720040b6142bcd48cd7 | 11,104 | cpp | C++ | src/tools/codeeditor/docsearchcontroller.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/tools/codeeditor/docsearchcontroller.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | null | null | null | src/tools/codeeditor/docsearchcontroller.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #include "docsearchcontroller.hpp"
#include "codeeditor.hpp"
DocSearchController::DocSearchController( UICodeEditorSplitter* editorSplitter, App* app ) :
mEditorSplitter( editorSplitter ), mApp( app ) {}
void DocSearchController::initSearchBar( UISearchBar* searchBar ) {
mSearchBarLayout = searchBar;
mSearchBarLay... | 39.375887 | 96 | 0.706412 | SpartanJ |
f3c3ee553473a1a56d52f298a0d5cdae363bcf10 | 434 | cpp | C++ | level_zero/core/source/gen12lp/adlp/cmdqueue_adlp.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 778 | 2017-09-29T20:02:43.000Z | 2022-03-31T15:35:28.000Z | level_zero/core/source/gen12lp/adlp/cmdqueue_adlp.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 478 | 2018-01-26T16:06:45.000Z | 2022-03-30T10:19:10.000Z | level_zero/core/source/gen12lp/adlp/cmdqueue_adlp.cpp | troels/compute-runtime | 3269e719a3ee7bcd97c50ec2cfe78fc8674adec0 | [
"Intel",
"MIT"
] | 215 | 2018-01-30T08:39:32.000Z | 2022-03-29T11:08:51.000Z | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/core/source/cmdqueue/cmdqueue_hw.inl"
#include "level_zero/core/source/cmdqueue/cmdqueue_hw_base.inl"
#include "cmdqueue_extended.inl"
namespace L0 {
template struct CommandQueueHw<IGFX_GEN12LP_CORE>;
static Com... | 24.111111 | 87 | 0.790323 | troels |
f3ca6f4d336f0b837cea93e26f59bcefe1e2cf61 | 625 | cpp | C++ | SimpleEngine/Simulation/WorldLogic.cpp | RichardBangs/SimpleEngine | a4acdf11d05e018db5a55994291475df55856c0c | [
"MIT"
] | null | null | null | SimpleEngine/Simulation/WorldLogic.cpp | RichardBangs/SimpleEngine | a4acdf11d05e018db5a55994291475df55856c0c | [
"MIT"
] | null | null | null | SimpleEngine/Simulation/WorldLogic.cpp | RichardBangs/SimpleEngine | a4acdf11d05e018db5a55994291475df55856c0c | [
"MIT"
] | null | null | null | #include "WorldLogic.h"
#include "WorldState.h"
#include "GameState.h"
#include "Events\ObjectDestroyedEvent.h"
namespace Simulation
{
WorldLogic::WorldLogic()
{
}
WorldLogic::~WorldLogic()
{
}
void WorldLogic::Tick(WorldState* thisWorld, GameState* stateLastFrame, std::vector<EventBase*> eventsThisFrame)
... | 17.857143 | 113 | 0.68 | RichardBangs |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.