hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da9c1dff1c0cf2f9e12101617dffaf67fa3f00ae | 8,054 | cpp | C++ | src/ai/tcMission.cpp | dhanin/friendly-bassoon | fafcfd3921805baddc1889dc0ee2fa367ad882f8 | [
"BSD-3-Clause"
] | 2 | 2021-11-17T10:59:38.000Z | 2021-11-17T10:59:45.000Z | src/ai/tcMission.cpp | dhanin/nws | 87a3f24a7887d84b9884635064b48d456b4184e2 | [
"BSD-3-Clause"
] | null | null | null | src/ai/tcMission.cpp | dhanin/nws | 87a3f24a7887d84b9884635064b48d456b4184e2 | [
"BSD-3-Clause"
] | null | null | null | /**
** @file tcMission.cpp
*/
/*
** Copyright (c) 2014, GCBLUE PROJECT
** 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... | 22.880682 | 146 | 0.665508 | dhanin |
da9c21cd7235d15607b99d6a2e708eea737c251f | 676 | cpp | C++ | Day8/Red-Blue Shuffle.cpp | Yashdew/DSA | d211d3b53acd28879233e55b77745b60ff44410f | [
"MIT"
] | 4 | 2021-04-13T11:04:45.000Z | 2021-12-06T16:32:28.000Z | Day8/Red-Blue Shuffle.cpp | Yashdew/DSA | d211d3b53acd28879233e55b77745b60ff44410f | [
"MIT"
] | null | null | null | Day8/Red-Blue Shuffle.cpp | Yashdew/DSA | d211d3b53acd28879233e55b77745b60ff44410f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int t,cards;
vector<int> numred,numblue;
cin>>t;
if(t>=1 && t<=100)
{
while(t--)
{
cin>>cards;
if(cards>=1 && cards<=1000)
{
int red,blue;
for(int i=0;i<... | 19.314286 | 44 | 0.306213 | Yashdew |
da9fc922e5039c019269bc57efdf3b4b5b341b7a | 16,783 | cxx | C++ | util/support.cxx | icahoon/vocal | f2c67ec0561d7de764420e81793afde5ce81e965 | [
"VSL-1.0"
] | 5 | 2017-10-09T11:47:47.000Z | 2022-02-28T01:37:15.000Z | util/support.cxx | greearb/vocal-ct | 35abdcd8732ce3a3bc936b523c895b0d5239c3b6 | [
"VSL-1.0"
] | null | null | null | util/support.cxx | greearb/vocal-ct | 35abdcd8732ce3a3bc936b523c895b0d5239c3b6 | [
"VSL-1.0"
] | null | null | null | /* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... | 25.82 | 145 | 0.572782 | icahoon |
daa145494e76f61dc398217b37bd1c2be24bba02 | 700 | cpp | C++ | day3/04_QImage/widget.cpp | fuzongjian/QtStudy | cff7b1848b3287f4e172f69d0a3c3cfa48bd07af | [
"Apache-2.0"
] | 1 | 2018-10-18T06:38:35.000Z | 2018-10-18T06:38:35.000Z | day3/04_QImage/widget.cpp | fuzongjian/QtStudy | cff7b1848b3287f4e172f69d0a3c3cfa48bd07af | [
"Apache-2.0"
] | null | null | null | day3/04_QImage/widget.cpp | fuzongjian/QtStudy | cff7b1848b3287f4e172f69d0a3c3cfa48bd07af | [
"Apache-2.0"
] | 1 | 2018-10-18T06:39:02.000Z | 2018-10-18T06:39:02.000Z | #include "widget.h"
#include "ui_widget.h"
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{
ui->setupUi(this);
// QImage
QImage image(400,300,QImage::Format_ARGB32);
QPainter p2;
p2.begin(&image);
p2.drawImage(rect(),QImage("../image/timg.jpg"));
// 对绘图设备前五十... | 21.875 | 56 | 0.575714 | fuzongjian |
daa42a714ae94a962f02dd1a5493ead00c3d59ef | 2,841 | cpp | C++ | mipe3d/src/Mipe3DInput.cpp | mipelius/mipe3d | 4c25d9e86928a67ea71139e87a3c99bbe11228f7 | [
"MIT"
] | null | null | null | mipe3d/src/Mipe3DInput.cpp | mipelius/mipe3d | 4c25d9e86928a67ea71139e87a3c99bbe11228f7 | [
"MIT"
] | null | null | null | mipe3d/src/Mipe3DInput.cpp | mipelius/mipe3d | 4c25d9e86928a67ea71139e87a3c99bbe11228f7 | [
"MIT"
] | null | null | null | // Copyright (c) Miika Pelkonen. All rights reserved.
// Licensed under the MIT License.
#include "Mipe3DInput.h"
#include "Mipe3DEngine.h"
#include "Mipe3DLog.h"
#include "Mipe3DRenderSystem.h"
#include <cassert>
#include <SDL_keyboard.h>
#include <SDL_keycode.h>
#include <SDL_mouse.h>
#include <SDL_events.h>
names... | 18.448052 | 63 | 0.638156 | mipelius |
daad9fe13eb4a7b5b99f204a1f9861f3fa76bdf9 | 2,447 | cpp | C++ | sdk/boost_1_30_0/libs/regex/example/snippets/regex_split_example_2.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2020-01-30T12:51:49.000Z | 2020-08-31T08:36:49.000Z | sdk/boost_1_30_0/libs/regex/example/snippets/regex_split_example_2.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/libs/regex/example/snippets/regex_split_example_2.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | /*
*
* Copyright (c) 1998-2002
* Dr John Maddock
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this pe... | 27.806818 | 134 | 0.570494 | acidicMercury8 |
daadcee6b0d8c3ec14dd7586422a80fea8a0465c | 4,069 | cpp | C++ | core/src/view/Renderer3DModule.cpp | schulzch/megamol | c440ad06f388f151c13833d5d1a7653131bda2be | [
"BSD-3-Clause"
] | null | null | null | core/src/view/Renderer3DModule.cpp | schulzch/megamol | c440ad06f388f151c13833d5d1a7653131bda2be | [
"BSD-3-Clause"
] | null | null | null | core/src/view/Renderer3DModule.cpp | schulzch/megamol | c440ad06f388f151c13833d5d1a7653131bda2be | [
"BSD-3-Clause"
] | null | null | null | /*
* Renderer3DModule.cpp
*
* Copyright (C) 2018, 2020 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "mmcore/view/Renderer3DModule.h"
#include "mmcore/view/AbstractView.h"
#include "mmcore/view/CallRender3D.h"
namespace megamol::core::view {
/*
* Renderer3DModule::Renderer3DModule
*/... | 32.293651 | 115 | 0.676825 | schulzch |
dab1928006f911bb7f5c72f82ff7aa25b6605d60 | 1,521 | cpp | C++ | android-28/android/content/UriPermission.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/content/UriPermission.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/content/UriPermission.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../net/Uri.hpp"
#include "../os/Parcel.hpp"
#include "../../JString.hpp"
#include "./UriPermission.hpp"
namespace android::content
{
// Fields
JObject UriPermission::CREATOR()
{
return getStaticObjectField(
"android.content.UriPermission",
"CREATOR",
"Landroid/os/Parcelable$Creator;"
);
}
j... | 18.107143 | 77 | 0.668639 | YJBeetle |
dab28ea624f823c579672bf35a9f8bc2c385e8d6 | 5,863 | cpp | C++ | ViroRenderer/VROSkeletalAnimation.cpp | dthian/virocore | c702528e0e3ffd8324c1597d65a73bc6adf0e11d | [
"MIT"
] | 2 | 2019-10-16T14:30:06.000Z | 2019-10-30T23:14:30.000Z | ViroRenderer/VROSkeletalAnimation.cpp | dthian/virocore | c702528e0e3ffd8324c1597d65a73bc6adf0e11d | [
"MIT"
] | 47 | 2021-09-08T13:03:44.000Z | 2022-03-10T23:21:05.000Z | ViroRenderer/VROSkeletalAnimation.cpp | dthian/virocore | c702528e0e3ffd8324c1597d65a73bc6adf0e11d | [
"MIT"
] | 2 | 2020-08-26T14:50:23.000Z | 2021-01-04T02:21:02.000Z | //
// VROSkeletalAnimation.cpp
// ViroRenderer
//
// Created by Raj Advani on 5/16/17.
// Copyright © 2017 Viro Media. All rights reserved.
//
// 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... | 36.874214 | 160 | 0.693331 | dthian |
dab2919b614729d811fc3991242455a135c25089 | 402 | cpp | C++ | C++/uri1029.cpp | AugustoDipNiloy/Uri-Solution | 7f455395bbbe55edce8d12afd80fa5ebd03d17a1 | [
"MIT"
] | 1 | 2020-11-09T17:06:43.000Z | 2020-11-09T17:06:43.000Z | C++/uri1029.cpp | AugustoDipNiloy/Uri-Solution | 7f455395bbbe55edce8d12afd80fa5ebd03d17a1 | [
"MIT"
] | null | null | null | C++/uri1029.cpp | AugustoDipNiloy/Uri-Solution | 7f455395bbbe55edce8d12afd80fa5ebd03d17a1 | [
"MIT"
] | 2 | 2020-07-29T09:33:29.000Z | 2020-08-02T08:44:36.000Z | #include <bits/stdc++.h>
using namespace std;
int con;
int fib(int a);
int main(void)
{
int T;
cin >> T;
for(int i = 0, n; i < T; i++){
cin >> n;
con = 0;
cout << "fib(" << n << ") = " << con - 1 << " calls = " << fib(n) << endl;
}
return 0;
}
int fib(int n)
{
con++;... | 14.357143 | 82 | 0.402985 | AugustoDipNiloy |
dab2f11e80c12cdc3d524a37a4dd56f887843884 | 4,032 | hpp | C++ | src/interval_map.hpp | keijak/hikidashi-cpp | 63d01dfa1587fa56fd7f4e50712f7c10d8168520 | [
"Apache-2.0"
] | null | null | null | src/interval_map.hpp | keijak/hikidashi-cpp | 63d01dfa1587fa56fd7f4e50712f7c10d8168520 | [
"Apache-2.0"
] | null | null | null | src/interval_map.hpp | keijak/hikidashi-cpp | 63d01dfa1587fa56fd7f4e50712f7c10d8168520 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using Int = long long;
// Disjoint closed intervals [l, r] (mapping l to r).
class ClosedIntervalMap : public std::map<Int, Int> {
private:
// If true, automatically merges [l, c] and [c+1, r].
bool merge_adjacent;
public:
ClosedIntervalMap(bool merge_adjacent = t... | 26.352941 | 69 | 0.550843 | keijak |
dab72a195f0dc4b5f45935e860f17a245ef6ca73 | 583 | cpp | C++ | src/libui/ConfirmConsole.cpp | twd2/WDict | 35bcf332343735865dfea908459c2114d2d256bf | [
"MIT"
] | 8 | 2016-04-15T15:59:43.000Z | 2020-11-18T22:08:59.000Z | src/libui/ConfirmConsole.cpp | twd2/WDict | 35bcf332343735865dfea908459c2114d2d256bf | [
"MIT"
] | null | null | null | src/libui/ConfirmConsole.cpp | twd2/WDict | 35bcf332343735865dfea908459c2114d2d256bf | [
"MIT"
] | 5 | 2016-05-02T13:59:38.000Z | 2019-06-09T16:28:26.000Z | #include "ConfirmConsole.h"
bool ConfirmConsole::Show()
{
outs << Message << "(Y/N)[" << (Default ? 'Y' : 'N') << "] ";
std::string ch;
while (std::getline(ins, ch))
{
if (ch == "Y" || ch == "y")
{
Value = true;
break;
}
else if (ch == "N" || ch =... | 20.821429 | 69 | 0.348199 | twd2 |
dab745569780cdfff8a14f5e82038836821a17e2 | 2,997 | cpp | C++ | test/OpenMP/declare_mapper_ast_print.cpp | mcopik/clang | 8070ca12f87e66f76db528c107e9d291f4a91498 | [
"Apache-2.0"
] | 1 | 2019-02-10T03:01:34.000Z | 2019-02-10T03:01:34.000Z | test/OpenMP/declare_mapper_ast_print.cpp | mcopik/clang | 8070ca12f87e66f76db528c107e9d291f4a91498 | [
"Apache-2.0"
] | null | null | null | test/OpenMP/declare_mapper_ast_print.cpp | mcopik/clang | 8070ca12f87e66f76db528c107e9d291f4a91498 | [
"Apache-2.0"
] | null | null | null | // RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s
// RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -emit-pch -o %t %s
// RUN: %clang_cc1 -fopenmp -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s
// RUN: %clang_cc1 -verify -fopenmp-simd -ast-print %s | FileCheck %s
// RUN: %clan... | 30.581633 | 110 | 0.634635 | mcopik |
dab931e284a7640ab2a48e0def435542641e5e5f | 875 | cpp | C++ | algorithms/C++/EulerToient/toient.cpp | herrphon/Algorithms_Example | 90091844a8320822356143c6d23de6721a8e3d61 | [
"Apache-2.0"
] | 315 | 2017-12-01T03:55:57.000Z | 2022-03-22T11:37:28.000Z | algorithms/C++/EulerToient/toient.cpp | herrphon/Algorithms_Example | 90091844a8320822356143c6d23de6721a8e3d61 | [
"Apache-2.0"
] | 342 | 2018-07-22T15:21:18.000Z | 2021-10-05T08:03:10.000Z | algorithms/C++/EulerToient/toient.cpp | herrphon/Algorithms_Example | 90091844a8320822356143c6d23de6721a8e3d61 | [
"Apache-2.0"
] | 349 | 2017-10-04T06:01:57.000Z | 2017-11-28T07:29:26.000Z | #include<bits/stdc++.h>
using namespace std;
// O(sqrtN)
// what we are doind is -> result = result*(1-1/p)
int phi(int n){
int result = n;
for(int i=2; i*i<=n; i++){
if(n%i == 0){
while(n%i == 0){
n = n/i;
}
result -= result/i;
}
}
if(n>1)
result -= result/n;
return result;
}
//Euler's Toien... | 15.909091 | 61 | 0.482286 | herrphon |
dab9d5ff2f9ca6546d8201c8d97727d213f3169c | 825 | hpp | C++ | include/Factory/Factory.hpp | BourgeoisBenjamin/Epitech-ThePlazza | 493eb3227a200d39311956f46c9d8cecb3f5fc6e | [
"MIT"
] | null | null | null | include/Factory/Factory.hpp | BourgeoisBenjamin/Epitech-ThePlazza | 493eb3227a200d39311956f46c9d8cecb3f5fc6e | [
"MIT"
] | null | null | null | include/Factory/Factory.hpp | BourgeoisBenjamin/Epitech-ThePlazza | 493eb3227a200d39311956f46c9d8cecb3f5fc6e | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** CCP_plazza_2019
** File description:
** Factory
*/
#ifndef FACTORY_HPP_
#define FACTORY_HPP_
#include "Reception/Reception.hpp"
namespace Plazza
{
class Factory {
public:
// For socket
Factory(int arg1, int arg2, IIPC::IPCType type);
~Fac... | 23.571429 | 69 | 0.581818 | BourgeoisBenjamin |
dabbfd119933482d06cdc40add14499fb5f7796f | 2,365 | cpp | C++ | Client/pulseVehicles.cpp | WuskieFTW1113/IV-MP-T4 | ec4f193c90d23e07e6200dcb061ec8773be6bedc | [
"MIT"
] | 2 | 2021-07-18T17:37:32.000Z | 2021-08-04T12:33:51.000Z | Client/pulseVehicles.cpp | VittorioC97/IV-MP-T4 | ec4f193c90d23e07e6200dcb061ec8773be6bedc | [
"MIT"
] | 1 | 2022-02-22T03:26:50.000Z | 2022-02-22T03:26:50.000Z | Client/pulseVehicles.cpp | WuskieFTW1113/IV-MP-T4 | ec4f193c90d23e07e6200dcb061ec8773be6bedc | [
"MIT"
] | 5 | 2021-06-17T06:41:00.000Z | 2022-02-17T09:37:40.000Z | #include "NetworkManager.h"
#include "CustomFiberThread.h"
#include "vehicles.h"
#include "easylogging++.h"
#include "vehicleSync.h"
#include "../SharedDefines/packetsIds.h"
#include "dummyVehicles.h"
#include "removeVehicle.h"
void pulseVehicles(float x, float y, float z)
{
try
{
std::map<size_t, vehicles::netVeh... | 23.65 | 87 | 0.621564 | WuskieFTW1113 |
dabc94a0bc7e35882ee41c58efa4d6f27b9d6149 | 1,089 | cpp | C++ | cpp/protein-translation/protein_translation.cpp | ikr/exercism | 37f505476ae13dd003c1de24b5113a0d7e94aaf2 | [
"MIT"
] | null | null | null | cpp/protein-translation/protein_translation.cpp | ikr/exercism | 37f505476ae13dd003c1de24b5113a0d7e94aaf2 | [
"MIT"
] | null | null | null | cpp/protein-translation/protein_translation.cpp | ikr/exercism | 37f505476ae13dd003c1de24b5113a0d7e94aaf2 | [
"MIT"
] | null | null | null | #include "protein_translation.h"
#include <map>
#include <utility>
namespace {
const auto amino_acids_by_codons = [] {
std::map<std::string, std::string> ans;
const std::vector<std::pair<std::vector<std::string>, std::string>> src{
{{"AUG"}, "Methionine"}, {{"UUU", "UUC"}, "Phenylalanine"},
... | 25.928571 | 79 | 0.551882 | ikr |
dac1564d6a65ffddfd7c0e273b9b5111d1afdae0 | 458 | cpp | C++ | test/test_json_parse.cpp | MMX-World/vnx-base | c806599e630e17928e8c2d9271e896797a069ba2 | [
"Apache-2.0"
] | null | null | null | test/test_json_parse.cpp | MMX-World/vnx-base | c806599e630e17928e8c2d9271e896797a069ba2 | [
"Apache-2.0"
] | 2 | 2022-02-07T05:19:09.000Z | 2022-03-24T18:44:37.000Z | test/test_json_parse.cpp | MMX-World/vnx-base | c806599e630e17928e8c2d9271e896797a069ba2 | [
"Apache-2.0"
] | 1 | 2022-01-22T21:30:26.000Z | 2022-01-22T21:30:26.000Z | /*
* test_json_parse.cpp
*
* Created on: May 26, 2021
* Author: mad
*/
#include <vnx/vnx.h>
int main(int argc, char** argv)
{
vnx::init("test_json_parse", argc, argv);
while(vnx::do_run())
{
vnx::Variant var;
try {
var = vnx::read(std::cin);
vnx::write(std::cout, var);
} catch(std::underfl... | 13.878788 | 42 | 0.565502 | MMX-World |
dac5106dd4cb46a1682096527138ec9c84a573b9 | 42,540 | cpp | C++ | WaveletTL/interval/pq_evaluate.cpp | kedingagnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 3 | 2018-05-20T15:25:58.000Z | 2021-01-19T18:46:48.000Z | WaveletTL/interval/pq_evaluate.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | null | null | null | WaveletTL/interval/pq_evaluate.cpp | agnumerikunimarburg/Marburg_Software_Library | fe53c3ae9db23fc3cb260a735b13a1c6d2329c17 | [
"MIT"
] | 2 | 2019-04-24T18:23:26.000Z | 2020-09-17T10:00:27.000Z | // implementation for pq_evaluate.h
#include <iostream>
#include <Rd/r_index.h>
#include <Rd/cdf_utils.h>
#include <utils/array1d.h>
#include <utils/tiny_tools.h>
#include <numerics/schoenberg_splines.h>
#include <interval/pq_frame.h>
namespace WaveletTL
{
template <int d, int dT>
SampledMapping<1>
evaluate(cons... | 50.763723 | 185 | 0.473249 | kedingagnumerikunimarburg |
dacbacc07dbccf978febc29d4f58d1d0538ec96b | 1,051 | cc | C++ | src/v8capi.cc | mraleph/node-llvm | 4cf3a16ca5d228bce3627f9631ae39bd79948eff | [
"Apache-2.0"
] | 2 | 2015-04-02T02:07:41.000Z | 2015-05-02T17:41:17.000Z | src/v8capi.cc | mraleph/node-llvm | 4cf3a16ca5d228bce3627f9631ae39bd79948eff | [
"Apache-2.0"
] | null | null | null | src/v8capi.cc | mraleph/node-llvm | 4cf3a16ca5d228bce3627f9631ae39bd79948eff | [
"Apache-2.0"
] | null | null | null | // Copyright 2012 Google 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 applicable... | 31.848485 | 75 | 0.718363 | mraleph |
dacc543d24cfe7f8ce327e5ffa1812e89c4c24e8 | 2,877 | cpp | C++ | src/objects/world/island.cpp | gersrobert/ppgso-project | 92748d3536acc635ad49cbdbdc38dc373ece7273 | [
"MIT"
] | null | null | null | src/objects/world/island.cpp | gersrobert/ppgso-project | 92748d3536acc635ad49cbdbdc38dc373ece7273 | [
"MIT"
] | null | null | null | src/objects/world/island.cpp | gersrobert/ppgso-project | 92748d3536acc635ad49cbdbdc38dc373ece7273 | [
"MIT"
] | null | null | null | #include <src/util/bezier.h>
#include <cmake-build-debug/shaders/texture_vert_glsl.h>
#include <cmake-build-debug/shaders/texture_frag_glsl.h>
#include <cmake-build-debug/shaders/diffuse_vert_glsl.h>
#include <cmake-build-debug/shaders/diffuse_frag_glsl.h>
#include <cmake-build-debug/shaders/volumetric_cloud_frag_glsl.... | 35.085366 | 100 | 0.649983 | gersrobert |
dacddf52819cd73a5d1fbd25575c33e3610038dc | 3,357 | hpp | C++ | src/Microsoft.DotNet.Wpf/src/WpfGfx/common/DirectXLayer/XMath/base/vector2_base_t.hpp | Mu-L/wpf | a539c26bb4c099acaf902077e03f787775b082fd | [
"MIT"
] | 5,937 | 2018-12-04T16:32:50.000Z | 2022-03-31T09:48:37.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/common/DirectXLayer/XMath/base/vector2_base_t.hpp | Mu-L/wpf | a539c26bb4c099acaf902077e03f787775b082fd | [
"MIT"
] | 4,151 | 2018-12-04T16:38:19.000Z | 2022-03-31T18:41:14.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/common/DirectXLayer/XMath/base/vector2_base_t.hpp | Mu-L/wpf | a539c26bb4c099acaf902077e03f787775b082fd | [
"MIT"
] | 1,084 | 2018-12-04T16:24:21.000Z | 2022-03-30T13:52:03.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.
#pragma once
#include "../xmcommon.hpp"
namespace dxlayer
{
// Describes a two-component vector, and includes... | 22.530201 | 81 | 0.51415 | Mu-L |
dad31754de4131db6ce68f4a25a1c292277812ce | 2,946 | cpp | C++ | tests/catch_timer_manager.cpp | cracked-machine/embedded_utils | 1c82938f66397d709cfbfc8c5b5da3b580b544aa | [
"MIT"
] | null | null | null | tests/catch_timer_manager.cpp | cracked-machine/embedded_utils | 1c82938f66397d709cfbfc8c5b5da3b580b544aa | [
"MIT"
] | 6 | 2022-01-08T13:08:57.000Z | 2022-03-12T15:50:02.000Z | tests/catch_timer_manager.cpp | cracked-machine/embedded_utils | 1c82938f66397d709cfbfc8c5b5da3b580b544aa | [
"MIT"
] | null | null | null | #include <catch2/catch_all.hpp>
#include <timer_manager.hpp>
#include <mock.hpp>
TEST_CASE("Timer Manager - microsecond timer: Null Input", "[timer_manager]")
{
std::cout << "timer_manager - microsecond timer: Null Input" << std::endl;
SECTION("Null Input")
{
TIM_TypeDef *null_timer = nullptr;
... | 30.371134 | 114 | 0.6463 | cracked-machine |
dad3e0f938a64f110e8c0814e7009baf9a4a37eb | 863 | hpp | C++ | ISClient.hpp | ISRyuu/ISTele | 54746ca632f472e3327735dbdf3d7a3c3087f29f | [
"BSD-3-Clause"
] | null | null | null | ISClient.hpp | ISRyuu/ISTele | 54746ca632f472e3327735dbdf3d7a3c3087f29f | [
"BSD-3-Clause"
] | null | null | null | ISClient.hpp | ISRyuu/ISTele | 54746ca632f472e3327735dbdf3d7a3c3087f29f | [
"BSD-3-Clause"
] | null | null | null | //
// Created by Kevin on 2017/10/22.
//
#ifndef ISTELE_ISCLIENT_HPP
#define ISTELE_ISCLIENT_HPP
#include "SelectDriver.hpp"
#include "ist_protocol.h"
#include <iostream>
class ISClient: SelectDriver {
public:
ISClient(int in, int out, int ipc_in, int ipc_out);
int SendTo(int fd, int data_len, uint16_t type=... | 25.382353 | 93 | 0.718424 | ISRyuu |
dad43acc43b3f918559354c66009677dfbdbe0c8 | 3,058 | cpp | C++ | leetcode/biweekly/49.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/biweekly/49.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/biweekly/49.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /****************************************************
Date: March 20th, 2021
Successful submissions : 2
Time expiration : 1 (solved after looking at the discussion)
Not Solved : 1
Wrong Answer/ Partial result : 0
link: https://leetcode.com/contest/biweekly-contest-49
***************************************************... | 18.760736 | 100 | 0.503597 | bvbasavaraju |
dad63ec0f34a0ba95a11de28102bc7ed274985e8 | 553 | cpp | C++ | cppcheck/data/c_files/202.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/202.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/202.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | check_1_6_dummy(kadm5_principal_ent_t entry, long mask,
int n_ks_tuple, krb5_key_salt_tuple *ks_tuple, char **passptr)
{
int i;
char *password = *passptr;
/* Old-style randkey operations disallowed tickets to start. */
if (!(mask & KADM5_ATTRIBUTES) ||
!(entry->attributes & KRB5_KDB_DISALLOW_ALL_TIX))
return;
/* ... | 27.65 | 63 | 0.690778 | awsm-research |
dad6c9504dce8818148592acc17e1354ad3a2601 | 9,962 | cpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_types.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_types.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/Cisco_IOS_XE_types.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "Cisco_IOS_XE_types.hpp"
using namespace ydk;
namespace cisco_ios_xe {
namespace Cisco_IOS_XE_types {
const Enum::YLeaf CosValueType::cos {0, "cos"};
const Enum::YLeaf Cos... | 47.21327 | 81 | 0.728067 | CiscoDevNet |
dad6fba12ce03423d139ef810c81f696b2e26ac5 | 5,209 | cc | C++ | content/browser/service_worker/service_worker_fetch_dispatcher.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 1 | 2020-09-15T08:43:34.000Z | 2020-09-15T08:43:34.000Z | content/browser/service_worker/service_worker_fetch_dispatcher.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | content/browser/service_worker/service_worker_fetch_dispatcher.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/service_worker/service_worker_fetch_dispatcher.h"
#include <utility>
#include "base/bind.h"
#include "base/trace_event/trace_e... | 36.426573 | 76 | 0.753312 | maidiHaitai |
dadb4f244fa3b77bea84eda1db095d4bbbb36102 | 4,614 | cpp | C++ | server/linux_socket_high/p18_signal/sig.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 1 | 2020-10-01T14:52:45.000Z | 2020-10-01T14:52:45.000Z | server/linux_socket_high/p18_signal/sig.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 3 | 2020-06-19T01:24:51.000Z | 2020-07-16T14:00:30.000Z | server/linux_socket_high/p18_signal/sig.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | null | null | null | #include <iostream>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <cstring>
#include <cassert>
#include <sys/epoll.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/types.h>
const int MAX_EVENT_SIZE = 1024;
static int pipefd[2];
int setnonblocking(int fd)
{
... | 26.982456 | 93 | 0.456437 | 6923403 |
dadbcc15e9419abbf181c221a10d938c7d14af1f | 2,344 | cpp | C++ | hongo/src/check2.cpp | legendlee1314/ooni | 2a5e9d349010d25f80f02971e0c1e11767c28721 | [
"MIT"
] | null | null | null | hongo/src/check2.cpp | legendlee1314/ooni | 2a5e9d349010d25f80f02971e0c1e11767c28721 | [
"MIT"
] | null | null | null | hongo/src/check2.cpp | legendlee1314/ooni | 2a5e9d349010d25f80f02971e0c1e11767c28721 | [
"MIT"
] | 1 | 2017-07-26T09:43:00.000Z | 2017-07-26T09:43:00.000Z | #include "include/config.hpp"
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include "mongo/bson/bson.h"
#include "mongo/client/dbclient.h"
using namespace std;
class Chunk;
mongo::DBClientConnection conn;
char quote = '"';
int chunk = 0;
map<string, string> shards;
v... | 21.703704 | 89 | 0.627133 | legendlee1314 |
daddeba727ca828c0db045dcd24334a0e7216e4b | 11,447 | cpp | C++ | contracts/eosiolib_native/math/pow.cpp | learnforpractice/pyeos | 4f04eb982c86c1fdb413084af77c713a6fda3070 | [
"MIT"
] | 144 | 2017-10-18T16:38:51.000Z | 2022-01-09T12:43:57.000Z | contracts/eosiolib_native/math/pow.cpp | openchatproject/safeos | 2c8dbf57d186696ef6cfcbb671da9705b8f3d9f7 | [
"MIT"
] | 60 | 2017-10-11T13:07:43.000Z | 2019-03-26T04:33:27.000Z | contracts/eosiolib_native/math/pow.cpp | learnforpractice/pyeos | 4f04eb982c86c1fdb413084af77c713a6fda3070 | [
"MIT"
] | 38 | 2017-12-05T01:13:56.000Z | 2022-01-07T07:06:53.000Z | /* origin: FreeBSD /usr/src/lib/msun/src/e_pow.c */
/*
* ====================================================
* Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
*
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ====... | 33.967359 | 107 | 0.478204 | learnforpractice |
dade220ffff7fad38d1466bbcc9a13c6ec0cd33b | 4,695 | cpp | C++ | Source/VSDKInputPlugin/Character/VSDKCharacter.cpp | charles-river-analytics/VSDK-Unreal | 0f99ec140f6d6660a09148163bdd006c5ecc67d5 | [
"MIT"
] | 3 | 2021-05-26T14:12:01.000Z | 2022-01-09T01:15:12.000Z | Source/VSDKInputPlugin/Character/VSDKCharacter.cpp | charles-river-analytics/VSDK-Unreal | 0f99ec140f6d6660a09148163bdd006c5ecc67d5 | [
"MIT"
] | null | null | null | Source/VSDKInputPlugin/Character/VSDKCharacter.cpp | charles-river-analytics/VSDK-Unreal | 0f99ec140f6d6660a09148163bdd006c5ecc67d5 | [
"MIT"
] | null | null | null | // Charles River Analytics Inc. -- Arthur Wollocko (awollocko@cra.com), 2020
#include "VSDKCharacter.h"
#include <Camera/CameraComponent.h>
#include <Components/StaticMeshComponent.h>
#include <Engine/EngineTypes.h>
#include "TimerManager.h"
#include <GameFramework/PlayerController.h>
#include <GameFramework/Actor.h>
... | 31.510067 | 138 | 0.776997 | charles-river-analytics |
dae0890d76dc4d539ab4b8a8f53358191ed0c758 | 807 | hpp | C++ | include/Terminal.hpp | ferhatgec/shell-utilities | 69bdcdd4de4f7c8352eb98a935d764e4599bf4d0 | [
"MIT"
] | 7 | 2020-09-17T21:41:44.000Z | 2021-02-18T15:33:09.000Z | include/Terminal.hpp | ferhatgec/shell-utilities | 69bdcdd4de4f7c8352eb98a935d764e4599bf4d0 | [
"MIT"
] | null | null | null | include/Terminal.hpp | ferhatgec/shell-utilities | 69bdcdd4de4f7c8352eb98a935d764e4599bf4d0 | [
"MIT"
] | null | null | null | /* MIT License
#
# Copyright (c) 2020 Ferhat Geçdoğan All Rights Reserved.
# Distributed under the terms of the MIT License.
#
# */
#ifndef TERMINAL_HPP
#define TERMINAL_HPP
#include <iostream>
namespace ShellUtilities {
std::string SetTerminal(bool username, bool hostname, bool directory,
st... | 26.9 | 77 | 0.645601 | ferhatgec |
dae7c348c1105dac9b1457aaaef00931b3f76b92 | 1,094 | cpp | C++ | codeforces/easy_100/1395B.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | 2 | 2018-06-26T09:52:14.000Z | 2018-07-12T15:02:01.000Z | codeforces/easy_100/1395B.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | null | null | null | codeforces/easy_100/1395B.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int t;
t = 1;
while(t--){
int n,m,sx,sy;
cin>>n>>m>>sx>>sy;
int visited[n][m];
for(int i = 0; i<n; i++)
for(int j =0; j<n; j++)
visited[i][j] = -1;
visited[sx-1][sy-1] = 1;
... | 18.862069 | 83 | 0.304388 | sidgairo18 |
dae96366ca73f596cacfc3c3db688548d1a6b4d4 | 43,029 | cpp | C++ | src/AdditiveVibration.cpp | pixelrust/LifeFormModular | c823c86c74a2c94d88327cf37bdcde5d80bb5645 | [
"BSD-3-Clause"
] | 8 | 2019-09-24T15:22:03.000Z | 2022-03-02T22:58:51.000Z | src/AdditiveVibration.cpp | pixelrust/LifeFormModular | c823c86c74a2c94d88327cf37bdcde5d80bb5645 | [
"BSD-3-Clause"
] | 3 | 2019-10-01T16:54:45.000Z | 2019-11-30T15:51:33.000Z | src/AdditiveVibration.cpp | pixelrust/LifeFormModular | c823c86c74a2c94d88327cf37bdcde5d80bb5645 | [
"BSD-3-Clause"
] | 2 | 2020-09-18T02:40:09.000Z | 2021-10-01T00:30:47.000Z | #include "plugin.hpp"
#include "dsp/math.hpp"
//Based on 21Khz PalmLoop sine fm engine
//https://github.com/21kHz/21kHz-rack-plugins
//Env taken from Rampage
//https://github.com/VCVRack/Befaco
static float shapeDelta(float delta, float tau, float shape) {
float lin = sgn(delta) * 10.f / tau;
if (shape <... | 43.158475 | 737 | 0.613772 | pixelrust |
daed84c5aef94e24b36e3665518379c5d5fe3a6d | 202 | cpp | C++ | projects/compass2/tests/checkers/pointer_comparison/pointer_comparison_test_1.cpp | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 1 | 2016-05-01T03:10:47.000Z | 2016-05-01T03:10:47.000Z | projects/compass2/tests/checkers/pointer_comparison/pointer_comparison_test_1.cpp | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | null | null | null | projects/compass2/tests/checkers/pointer_comparison/pointer_comparison_test_1.cpp | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | null | null | null | // 4 Matches
int main() {
int *a = new int, *b = new int;
*a = 5;
*b = 7;
if (a == b) {}
if (a > b) {}
if (a < b) {}
if (a >= b) {}
if (a <= b) {}
delete a;
delete b;
return 0;
}
| 12.625 | 33 | 0.381188 | maurizioabba |
daedfb6d4c815714adf69f4fcab58bf42c2f968c | 3,941 | cpp | C++ | kernel/arch/x86_64/interrupt/interrupt.cpp | andr3h3nriqu3s11/thornhill | ec31eb06dd914bcb7fd22ff31386b40996656d94 | [
"MIT"
] | 6 | 2021-11-06T08:42:41.000Z | 2022-01-06T11:42:18.000Z | kernel/arch/x86_64/interrupt/interrupt.cpp | andr3h3nriqu3s11/thornhill | ec31eb06dd914bcb7fd22ff31386b40996656d94 | [
"MIT"
] | 1 | 2022-01-09T18:09:57.000Z | 2022-01-09T18:09:57.000Z | kernel/arch/x86_64/interrupt/interrupt.cpp | andr3h3nriqu3s11/thornhill | ec31eb06dd914bcb7fd22ff31386b40996656d94 | [
"MIT"
] | 1 | 2022-01-09T18:07:42.000Z | 2022-01-09T18:07:42.000Z | #include "interrupt.hpp"
uint8_t ThornhillInterrupt::generateIdtDescriptorType(CpuIdtGateType gateType,
CpuPrivilegeLevel privilegeLevel,
bool storageSegment, bool interruptPresent) {
return (interruptPresent << 7) | (privilegeLevel << 5) | (stora... | 35.827273 | 99 | 0.70033 | andr3h3nriqu3s11 |
daef3df0ebc8b08bd9ef0312656b9b3c9be50397 | 31,833 | hpp | C++ | clipper-parm/src/libclipper/include/clipper/task_executor.hpp | mukkachaitanya/parity-models | 9f336a67798934d29592aca471dff6ad047473f6 | [
"Apache-2.0"
] | 32 | 2019-09-11T16:49:58.000Z | 2022-01-26T15:40:40.000Z | clipper-parm/src/libclipper/include/clipper/task_executor.hpp | mukkachaitanya/parity-models | 9f336a67798934d29592aca471dff6ad047473f6 | [
"Apache-2.0"
] | 5 | 2019-11-10T16:13:40.000Z | 2022-01-13T01:31:51.000Z | clipper-parm/src/libclipper/include/clipper/task_executor.hpp | mukkachaitanya/parity-models | 9f336a67798934d29592aca471dff6ad047473f6 | [
"Apache-2.0"
] | 9 | 2019-09-03T14:05:26.000Z | 2021-12-22T07:17:27.000Z | #ifndef CLIPPER_LIB_TASK_EXECUTOR_H
#define CLIPPER_LIB_TASK_EXECUTOR_H
#include <chrono>
#include <memory>
#include <mutex>
#include <string>
#include <unordered_map>
#include <boost/optional.hpp>
#include <redox.hpp>
#include <folly/futures/Future.h>
#include <clipper/config.hpp>
#include <clipper/containers.hpp... | 42.728859 | 131 | 0.660667 | mukkachaitanya |
daf14555849e1909177fc404eb9a1937df729096 | 783 | cpp | C++ | MultiThreading/Signal.cpp | d3m37r4/VoiceTranscoder | a9ae70b436e26f6589ac7841749ce281c227bb2c | [
"Unlicense"
] | 19 | 2019-11-26T13:49:34.000Z | 2021-12-21T03:27:33.000Z | MultiThreading/Signal.cpp | d3m37r4/VoiceTranscoder | a9ae70b436e26f6589ac7841749ce281c227bb2c | [
"Unlicense"
] | 17 | 2019-11-27T11:16:26.000Z | 2021-02-04T07:21:01.000Z | MultiThreading/Signal.cpp | andrewlindberg/VoiceTranscoder | a9ae70b436e26f6589ac7841749ce281c227bb2c | [
"Unlicense"
] | 7 | 2019-11-26T13:09:34.000Z | 2020-12-13T05:48:27.000Z | #include "Signal.h"
#ifdef _WIN32
#include <Windows.h>
#elif defined __linux__
#include <pthread.h>
#endif
#ifdef _WIN32
Signal::Signal() {
m_hEvent = CreateEvent(nullptr, FALSE/*TODO: or TRUE?*/, FALSE, nullptr);
}
Signal::~Signal() {
CloseHandle(m_hEvent);
}
void Signal::Raise() {
SetEvent(... | 17.795455 | 75 | 0.669221 | d3m37r4 |
daf170dd7178d8aa213b14eeb05b9e35dc0f3352 | 6,720 | cxx | C++ | MITK/Plugins/uk.ac.ucl.cmic.breastsegmentation/src/internal/BreastSegmentationView.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | MITK/Plugins/uk.ac.ucl.cmic.breastsegmentation/src/internal/BreastSegmentationView.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | MITK/Plugins/uk.ac.ucl.cmic.breastsegmentation/src/internal/BreastSegmentationView.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 27.883817 | 94 | 0.525893 | NifTK |
daf3ca43955a9ce0bc51721ec6b3c0661f33a7c6 | 1,020 | ipp | C++ | include/boost/net/impl/ssl_verify_callback.ipp | vinniefalco/ssl_verify | 9554e5534be7c9a95785c04e8635a58558090604 | [
"BSL-1.0"
] | 2 | 2019-02-01T10:44:39.000Z | 2019-02-26T18:17:44.000Z | include/boost/net/impl/ssl_verify_callback.ipp | vinniefalco/ssl_verify | 9554e5534be7c9a95785c04e8635a58558090604 | [
"BSL-1.0"
] | null | null | null | include/boost/net/impl/ssl_verify_callback.ipp | vinniefalco/ssl_verify | 9554e5534be7c9a95785c04e8635a58558090604 | [
"BSL-1.0"
] | 2 | 2021-05-06T16:50:56.000Z | 2022-01-16T23:04:40.000Z | //
// Copyright (c) 2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// 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)
//
// Official repository: https://github.com/boostorg/ssl_verify
//
#ifndef BOOST_NET_SS... | 17.894737 | 79 | 0.742157 | vinniefalco |
daf4c18e3b9f4cb9dfa6d34e58018a6ef00c8711 | 1,041 | cc | C++ | cpp/mock/test2/test.cc | hackin-zhao/interesting_code | 25fecb716f5c8f9143ec2824bbf8996b347ce8a9 | [
"MIT"
] | 1 | 2021-09-22T10:56:13.000Z | 2021-09-22T10:56:13.000Z | cpp/mock/test2/test.cc | hackin-zhao/interesting_code | 25fecb716f5c8f9143ec2824bbf8996b347ce8a9 | [
"MIT"
] | 1 | 2022-02-15T03:53:47.000Z | 2022-02-15T03:53:47.000Z | cpp/mock/test2/test.cc | hackin-zhao/interesting_code | 25fecb716f5c8f9143ec2824bbf8996b347ce8a9 | [
"MIT"
] | null | null | null | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <stdio.h>
using namespace testing;
class Test {
public:
int getInterValue(void);
int getOneInterValue(int a);
};
class MockTest {
public:
MOCK_METHOD0(getInterValue, int());
MOCK_METHOD1(getOneInterValue, int(int a));
};
TEST(GtestMocktest, ... | 21.244898 | 70 | 0.596542 | hackin-zhao |
daf78f7d59eab72dcce1fe84543dba1db50576d1 | 18,686 | cpp | C++ | src/translator.cpp | saeenyoda/Gomm_Compiler | 64e238c8476663eb1b6fe76630b7bb6f8f919882 | [
"Unlicense",
"MIT"
] | null | null | null | src/translator.cpp | saeenyoda/Gomm_Compiler | 64e238c8476663eb1b6fe76630b7bb6f8f919882 | [
"Unlicense",
"MIT"
] | 1 | 2021-06-26T08:00:40.000Z | 2021-06-26T08:00:40.000Z | src/translator.cpp | saeenyoda/Gomm_Compiler | 64e238c8476663eb1b6fe76630b7bb6f8f919882 | [
"Unlicense",
"MIT"
] | null | null | null | /* GENERATES BOTH TAC AND MACHINE CODE*/
#include "translator.h"
#include <fstream>
#include <iostream>
#include <sstream>
#include <algorithm>
#include "error_handler.h"
Translator *Translator::m_Instance;
Translator::Translator(const std::string &wListPath, const std::string &stPath)
{
run(wLi... | 21.677494 | 230 | 0.511988 | saeenyoda |
dafcdc05ec4fba55d331c891e2416959ad3db796 | 551 | cpp | C++ | PushMeasurementOnDeepSleep/TempHumBehavior.cpp | vknabel/arduino-push-measurements-on-deep-sleep | 47e9193d5e4e6ab314d7214dd781bde7dd30903d | [
"MIT"
] | null | null | null | PushMeasurementOnDeepSleep/TempHumBehavior.cpp | vknabel/arduino-push-measurements-on-deep-sleep | 47e9193d5e4e6ab314d7214dd781bde7dd30903d | [
"MIT"
] | null | null | null | PushMeasurementOnDeepSleep/TempHumBehavior.cpp | vknabel/arduino-push-measurements-on-deep-sleep | 47e9193d5e4e6ab314d7214dd781bde7dd30903d | [
"MIT"
] | null | null | null | #include "TempHumBehavior.h"
#include "StringHelpers.h"
TempHumBehavior::TempHumBehavior(TempHumSensor tempHumSensor)
: Behavior(),
_sensor(tempHumSensor) {
}
void TempHumBehavior::setup() {
_sensor.setup();
}
String TempHumBehavior::characteristics() {
float temperature = 0.0;
float humidity = 0.0;
if (... | 23.956522 | 61 | 0.682396 | vknabel |
dafd00a356b1c08940cefd482878bd30dc3cb5a6 | 17,771 | cpp | C++ | Source.cpp | kenjinote/DownloadTumblrVideo | d6c989cd7b8b0833f4ba9c73f0b38908302bc7c1 | [
"MIT"
] | 2 | 2017-09-29T13:22:31.000Z | 2021-12-15T02:56:03.000Z | Source.cpp | kenjinote/DownloadTumblrVideo | d6c989cd7b8b0833f4ba9c73f0b38908302bc7c1 | [
"MIT"
] | null | null | null | Source.cpp | kenjinote/DownloadTumblrVideo | d6c989cd7b8b0833f4ba9c73f0b38908302bc7c1 | [
"MIT"
] | 1 | 2022-03-05T04:28:15.000Z | 2022-03-05T04:28:15.000Z | #pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#pragma comment(lib, "rpcrt4")
#pragma comment(lib, "shlwapi")
#pragma comment(lib, "wininet")
#pragma comment(lib, "comctl... | 29.717391 | 218 | 0.69861 | kenjinote |
970572e01e99fd246b9b4ac5c673f5ba133b29c3 | 2,579 | hpp | C++ | src/backend/opencl/kernel/laswp.hpp | JuliaComputing/arrayfire | 93427f09ff928f97df29c0e358c3fcf6b478bec6 | [
"BSD-3-Clause"
] | 1 | 2018-06-14T23:49:18.000Z | 2018-06-14T23:49:18.000Z | src/backend/opencl/kernel/laswp.hpp | JuliaComputing/arrayfire | 93427f09ff928f97df29c0e358c3fcf6b478bec6 | [
"BSD-3-Clause"
] | 1 | 2015-07-02T15:53:02.000Z | 2015-07-02T15:53:02.000Z | src/backend/opencl/kernel/laswp.hpp | JuliaComputing/arrayfire | 93427f09ff928f97df29c0e358c3fcf6b478bec6 | [
"BSD-3-Clause"
] | 1 | 2018-02-26T17:11:03.000Z | 2018-02-26T17:11:03.000Z | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | 25.038835 | 77 | 0.586661 | JuliaComputing |
9707a75797344671face8866fc32b9a89391c535 | 422 | cpp | C++ | data-structure/Desorden.cpp | ejpcr/libs-c | e544e4338ea9f2fe8c57de83045944f38ae06a07 | [
"MIT"
] | null | null | null | data-structure/Desorden.cpp | ejpcr/libs-c | e544e4338ea9f2fe8c57de83045944f38ae06a07 | [
"MIT"
] | null | null | null | data-structure/Desorden.cpp | ejpcr/libs-c | e544e4338ea9f2fe8c57de83045944f38ae06a07 | [
"MIT"
] | null | null | null | //Programa de insersion, eliminacion, busqueda, etc.
//en un arreglo unidimensional desordenado.
//Castillo Gardea Mariano
//01070097
#include <iostream.h>
#include <stdio.h>
#include <conio.h>
void captura(int);
int k;
int n=100;
void main()
{int datos[100]; clrscr(); captura(datos[100]); getchar();
}
void captura(i... | 22.210526 | 58 | 0.694313 | ejpcr |
9707c55c4675d4a79dc7938f8fed78a07f0d0eb4 | 16,289 | cxx | C++ | main/tools/source/memtools/unqidx.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/tools/source/memtools/unqidx.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/tools/source/memtools/unqidx.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 27.23913 | 83 | 0.471545 | Grosskopf |
8ccce31936abca36fa81aeef5a6d2d2221fe7d97 | 5,063 | hxx | C++ | arm9/source/emucore/M6502.hxx | wavemotion-dave/StellaDS | 8aa9954c9294c3d567b156619472a31ff6863da0 | [
"MIT"
] | 13 | 2020-11-25T20:58:44.000Z | 2022-02-01T19:10:27.000Z | arm9/source/emucore/M6502.hxx | wavemotion-dave/StellaDS | 8aa9954c9294c3d567b156619472a31ff6863da0 | [
"MIT"
] | null | null | null | arm9/source/emucore/M6502.hxx | wavemotion-dave/StellaDS | 8aa9954c9294c3d567b156619472a31ff6863da0 | [
"MIT"
] | 3 | 2021-07-29T10:05:51.000Z | 2022-01-10T02:14:58.000Z | //============================================================================
//
// MM MM 6666 555555 0000 2222
// MMMM MMMM 66 66 55 00 00 22 22
// MM MMM MM 66 55 00 00 22
// MM M MM 66666 55555 00 00 22222 -- "A 6502 Microprocessor Emulator"
// MM MM 66 66 55 00 00 22
... | 25.315 | 79 | 0.634802 | wavemotion-dave |
8ccda9f8961cfad017b3667e6fcd0367dca439bc | 48 | cpp | C++ | base/src/GameSparks/GSTypedResponse.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 7 | 2019-07-11T02:05:32.000Z | 2020-11-01T18:57:51.000Z | base/src/GameSparks/GSTypedResponse.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 3 | 2019-02-26T15:59:03.000Z | 2019-06-04T10:46:07.000Z | base/src/GameSparks/GSTypedResponse.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 6 | 2020-05-18T08:44:47.000Z | 2022-02-26T12:18:17.000Z | /* empty file to avoid breaking project files */ | 48 | 48 | 0.75 | djdron |
8cd2945bacb014083621c7adfb9e1aae1970abe9 | 485 | cpp | C++ | lrvalue_0.cpp | simplyatul/cpp_samples | 60e0b4a2c89b509708b4b436f1ab501386d4bb9b | [
"MIT"
] | null | null | null | lrvalue_0.cpp | simplyatul/cpp_samples | 60e0b4a2c89b509708b4b436f1ab501386d4bb9b | [
"MIT"
] | null | null | null | lrvalue_0.cpp | simplyatul/cpp_samples | 60e0b4a2c89b509708b4b436f1ab501386d4bb9b | [
"MIT"
] | null | null | null |
int bar() { return 5;}
int main() {
// bar() = 0; // error
// &5; // error
// &bar(); // error
// int& lv_ref0 = 5; // error
const int& clv_ref0 = 5; // but this works
// int& lv_ref1 = bar(); // error
// Rvalues bind to rvalue references,
// introduced in C++11
int&& rv_ref3 = 5;
int&& rv_re... | 14.69697 | 43 | 0.550515 | simplyatul |
8cd68c562c2f066bb4487fcca286be583e8b2d57 | 304 | hpp | C++ | src/mapping.hpp | StanislavPavlic/countmap | 1c6ea352dc2cffb4db079aeba797bdb0c0a6726f | [
"MIT"
] | null | null | null | src/mapping.hpp | StanislavPavlic/countmap | 1c6ea352dc2cffb4db079aeba797bdb0c0a6726f | [
"MIT"
] | null | null | null | src/mapping.hpp | StanislavPavlic/countmap | 1c6ea352dc2cffb4db079aeba797bdb0c0a6726f | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <string>
struct mapping_t {
std::string qname;
int flag;
std::string rname;
uint32_t pos;
uint32_t mapq;
std::string cigar;
std::string rnext;
uint32_t pnext;
int32_t tlen;
std::string seq;
std::string qual;
uint32_t nm;
int32_t as;
}; | 15.2 | 20 | 0.677632 | StanislavPavlic |
8cdd0d7bcb2385a1a3bf3f1f913568aac2da5323 | 15,926 | cpp | C++ | src/InitialConfigGene.cpp | ShihaoWang/Stabilizability-Analysis-with-Polytopic-Viability-Kernel | 56261f283871b8662e4e08c0a024f4df924bf9b9 | [
"MIT"
] | null | null | null | src/InitialConfigGene.cpp | ShihaoWang/Stabilizability-Analysis-with-Polytopic-Viability-Kernel | 56261f283871b8662e4e08c0a024f4df924bf9b9 | [
"MIT"
] | null | null | null | src/InitialConfigGene.cpp | ShihaoWang/Stabilizability-Analysis-with-Polytopic-Viability-Kernel | 56261f283871b8662e4e08c0a024f4df924bf9b9 | [
"MIT"
] | null | null | null | #include "NonlinearOptimizerInfo.h"
#include "CommonHeader.h"
#include "Planning/ConstraintChecker.h"
#include <bits/stdc++.h>
#include <string> // std::string, std::to_string
#include <KrisLibrary/geometry/Conversions.h>
#include <KrisLibrary/geometry/MultiVolumeGrid.h>
#include <KrisLibrary/geometry/CollisionMesh... | 31.105469 | 236 | 0.620558 | ShihaoWang |
8cdd3f86def43518f1bc231e47ad04088bb7de24 | 2,775 | cc | C++ | src/envoy/http/service_control/filter_stats.cc | CorrelatedLabs/esp-v2 | 9fa93040d70f98087b3586a88a0764b9f5ec544c | [
"Apache-2.0"
] | 163 | 2019-12-18T18:40:50.000Z | 2022-03-17T03:34:22.000Z | src/envoy/http/service_control/filter_stats.cc | CorrelatedLabs/esp-v2 | 9fa93040d70f98087b3586a88a0764b9f5ec544c | [
"Apache-2.0"
] | 669 | 2019-12-19T00:36:12.000Z | 2022-03-30T20:27:52.000Z | src/envoy/http/service_control/filter_stats.cc | CorrelatedLabs/esp-v2 | 9fa93040d70f98087b3586a88a0764b9f5ec544c | [
"Apache-2.0"
] | 177 | 2019-12-19T00:35:51.000Z | 2022-03-24T10:22:23.000Z | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | 30.163043 | 133 | 0.687207 | CorrelatedLabs |
8ce181e8a1569aba3217505aafd9f4c234959a66 | 625 | hpp | C++ | include/experimental/meta/v1/type.hpp | mwoehlke/viboes-std-make | 5d65a40289301ae35a8f32349c13c365a553dc51 | [
"BSL-1.0"
] | 105 | 2015-01-24T13:26:41.000Z | 2022-02-18T15:36:53.000Z | include/experimental/meta/v1/type.hpp | mwoehlke/viboes-std-make | 5d65a40289301ae35a8f32349c13c365a553dc51 | [
"BSL-1.0"
] | 37 | 2015-09-04T06:57:10.000Z | 2021-09-09T18:01:44.000Z | include/experimental/meta/v1/type.hpp | mwoehlke/viboes-std-make | 5d65a40289301ae35a8f32349c13c365a553dc51 | [
"BSL-1.0"
] | 23 | 2015-01-27T11:09:18.000Z | 2021-10-04T02:23:30.000Z | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Vicente J. Botet Escriba 2014.
// 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)
//
///////////////////////////////... | 20.16129 | 93 | 0.5232 | mwoehlke |
8ce3b36b1dc0f9cdf066be87d0d4f0c2c5cc3bac | 3,586 | cpp | C++ | ToolKit/Controls/Splitter/XTPSplitterWndTheme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/Controls/Splitter/XTPSplitterWndTheme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/Controls/Splitter/XTPSplitterWndTheme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTPSplitterWndTheme.cpp: implementation of the XTPSplitterWndTheme class.
//
// This file is a part of the XTREME CONTROLS MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER ... | 29.636364 | 96 | 0.709147 | 11Zero |
8ceb329e848263ff88ee9386ad30b397f7b0f33a | 907 | cpp | C++ | Whakman/ImageManager.cpp | dingjun/Whakman | ee70583481d942a98210744f0e56e747c157549d | [
"MIT"
] | null | null | null | Whakman/ImageManager.cpp | dingjun/Whakman | ee70583481d942a98210744f0e56e747c157549d | [
"MIT"
] | null | null | null | Whakman/ImageManager.cpp | dingjun/Whakman | ee70583481d942a98210744f0e56e747c157549d | [
"MIT"
] | null | null | null | #include "ImageManager.h"
std::vector<IImage*> ImageManager::_images;
void ImageManager::init(ISBZLibrary* lib) {
_images.push_back(lib->load_image("images/wall_cross.png"));
_images.push_back(lib->load_image("images/wall_end.png"));
_images.push_back(lib->load_image("images/wall_straight.png"));
_images.push... | 36.28 | 65 | 0.736494 | dingjun |
8ceda98027b8496b244f038002cc2e3b6a452829 | 1,872 | cpp | C++ | Chapter_4_Graph/Graph_Traversal/kattis_gold.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_4_Graph/Graph_Traversal/kattis_gold.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_4_Graph/Graph_Traversal/kattis_gold.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - gold
* BFS floodfill, but with the modification that we don't go to any adjancent cells if there exist
* a draft, ie there exist a trap that we could potentially go to.
*
* Time: O(hw), Space: O(hw)
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,f... | 24.96 | 98 | 0.459936 | BrandonTang89 |
8cf66d901dedcd6eceffaa0f696b3e2212403ccb | 586 | cpp | C++ | src/Random.cpp | darklam/CppNeuralNetwork | 8edd53f0c9917cd4d217287d3fb711f2fccc43c1 | [
"MIT"
] | null | null | null | src/Random.cpp | darklam/CppNeuralNetwork | 8edd53f0c9917cd4d217287d3fb711f2fccc43c1 | [
"MIT"
] | null | null | null | src/Random.cpp | darklam/CppNeuralNetwork | 8edd53f0c9917cd4d217287d3fb711f2fccc43c1 | [
"MIT"
] | null | null | null | #include <random>
#include "Random.h"
double Random::randomDouble(double min, double max){
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_real_distribution<double> dist(min, max);
return dist(gen);
}
double Random::randomDouble(double max){
return Random::randomDouble(0, ma... | 24.416667 | 59 | 0.658703 | darklam |
8cf7587ce6fb25b5f8732ca0b3b998eb088e6568 | 6,728 | cpp | C++ | src/visitor/test/FoldConstantExprVisitorTest.cpp | yixinglu/nebula-graph | faf9cd44d818b953da98b5c922999560c89867bd | [
"Apache-2.0"
] | 1 | 2021-08-23T05:55:55.000Z | 2021-08-23T05:55:55.000Z | src/visitor/test/FoldConstantExprVisitorTest.cpp | yixinglu/nebula-graph | faf9cd44d818b953da98b5c922999560c89867bd | [
"Apache-2.0"
] | null | null | null | src/visitor/test/FoldConstantExprVisitorTest.cpp | yixinglu/nebula-graph | faf9cd44d818b953da98b5c922999560c89867bd | [
"Apache-2.0"
] | null | null | null |
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "visitor/FoldConstantExprVisitor.h"
#include <gtest/gtest.h>
#include "util/ObjectPool.h"
using Type = nebu... | 37.171271 | 100 | 0.625149 | yixinglu |
8cfdfb1762e52d384b218580e1a4114d7937deaf | 182 | hh | C++ | TrkBase/TrkHitListIter.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkBase/TrkHitListIter.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkBase/TrkHitListIter.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | #ifndef TRKHITLISTITER_HH
#define TRKHITLISTITER_HH
#include "TrkBase/TrkHitOnTrkIter.hh"
#include "TrkBase/TrkHitList.hh"
typedef TrkHitList::hot_iterator TrkHitListIter;
#endif
| 18.2 | 48 | 0.82967 | brownd1978 |
8cff2e7f7a69347fb018276c81594de5be419c8e | 1,123 | cpp | C++ | src/base/CloudProcessor.cpp | mcserep/railroad | 17666e6db3b1847e81c76bdf25b83343439df169 | [
"BSD-3-Clause"
] | 14 | 2018-12-28T06:36:29.000Z | 2022-03-08T02:29:37.000Z | src/base/CloudProcessor.cpp | enginBozkurt/railroad | 0b9fcc463d88c1bc625008cabb81891cd164a8a5 | [
"BSD-3-Clause"
] | 2 | 2021-03-11T02:59:57.000Z | 2021-12-14T22:31:16.000Z | src/base/CloudProcessor.cpp | enginBozkurt/railroad | 0b9fcc463d88c1bc625008cabb81891cd164a8a5 | [
"BSD-3-Clause"
] | 13 | 2018-07-14T04:53:11.000Z | 2022-02-22T02:44:57.000Z | /*
* BSD 3-Clause License
* Copyright (c) 2018-2020, Máté Cserép & Péter Hudoba
* All rights reserved.
*
* You may obtain a copy of the License at
* https://opensource.org/licenses/BSD-3-Clause
*/
#include <pcl/common/io.h>
#include "CloudProcessor.h"
#include "../helpers/LogHelper.h"
namespace railroad
{
pcl... | 28.794872 | 87 | 0.60463 | mcserep |
ea008823030fc2e0a50d0141929428dae103364b | 212 | cpp | C++ | C++/Esercizi/es.13_pag.377_.cpp | Daniele-Tentoni/esercizi_ripetizioni | a8b59b4ead3d6a7459103b91c53017a7495d9e82 | [
"MIT"
] | null | null | null | C++/Esercizi/es.13_pag.377_.cpp | Daniele-Tentoni/esercizi_ripetizioni | a8b59b4ead3d6a7459103b91c53017a7495d9e82 | [
"MIT"
] | null | null | null | C++/Esercizi/es.13_pag.377_.cpp | Daniele-Tentoni/esercizi_ripetizioni | a8b59b4ead3d6a7459103b91c53017a7495d9e82 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main (){
float t =20;
float g =9.81;
float h = g*t*t/2;
cout << "il corpo e' caduto da una altezza di: " ;
cout << h;
cout << " metri\n";
}
| 10.6 | 52 | 0.533019 | Daniele-Tentoni |
ea01a2fc4457bf6e2fb96a29daf11992a9e5e837 | 3,116 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/IfcTimePeriod.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | 1 | 2018-10-23T09:43:07.000Z | 2018-10-23T09:43:07.000Z | IfcPlusPlus/src/ifcpp/IFC4/IfcTimePeriod.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | IfcPlusPlus/src/ifcpp/IFC4/IfcTimePeriod.cpp | linsipese/ifcppstudy | e09f05d276b5e129fcb6be65800472979cd4c800 | [
"MIT"
] | null | null | null | /* -*-c++-*- IfcPlusPlus - www.ifcplusplus.com - Copyright (C) 2011 Fabian Gerold
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* in... | 47.212121 | 221 | 0.723363 | linsipese |
ea06d30177ece38b4129d391a84e1422624ad922 | 1,774 | hpp | C++ | libgramtools/include/genotype/infer/types.hpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/include/genotype/infer/types.hpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/include/genotype/infer/types.hpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | #ifndef GT_INFER_TYPES
#define GT_INFER_TYPES
#include <memory>
#include "genotype/quasimap/coverage/types.hpp"
namespace gram::genotype::infer {
class Genotyper;
using gtyper_ptr = std::shared_ptr<Genotyper>;
class GenotypedSite;
using gt_site = GenotypedSite;
using gt_site_ptr = std::shared_ptr<GenotypedSite>;
usi... | 29.566667 | 78 | 0.709132 | bricoletc |
ea0b203195062a973edd40d2fc9f18d6fbf66f09 | 1,267 | hpp | C++ | src/lib/logical_query_plan/sort_node.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/logical_query_plan/sort_node.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/logical_query_plan/sort_node.hpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #pragma once
#include <string>
#include <vector>
#include "abstract_lqp_node.hpp"
#include "lqp_column_reference.hpp"
#include "types.hpp"
namespace opossum {
/**
* Struct to specify Order By items.
* Order By items are defined by the column they operate on and their sort order.
*/
struct OrderByDefinition {
O... | 26.395833 | 97 | 0.78453 | IanJamesMcKay |
ea0df71d3a1c9a33bffe7367876e048ac40d620e | 280 | cpp | C++ | Array/zhangjianan/作业/fifo作业/main.cpp | JessonYue/LeetCodeLearning | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | [
"MIT"
] | 39 | 2020-05-31T06:14:39.000Z | 2021-01-09T11:06:39.000Z | Array/zhangjianan/作业/fifo作业/main.cpp | JessonYue/LeetCodeLearning | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | [
"MIT"
] | 7 | 2020-06-02T11:04:14.000Z | 2020-06-11T14:11:58.000Z | Array/zhangjianan/作业/fifo作业/main.cpp | JessonYue/LeetCodeLearning | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | [
"MIT"
] | 20 | 2020-05-31T06:21:57.000Z | 2020-10-01T04:48:38.000Z | #include <iostream>
#include "FIFO.cpp"
int main() {
FIFO<int> queue= FIFO<int>(3);
queue.enqueue_key(1);
queue.enqueue_key(2);
queue.enqueue_key(3);
queue.enqueue_key(4);
queue.enqueue_key(5);
queue.reset_key(4);
queue.print_fifo();
return 0;
}
| 20 | 32 | 0.635714 | JessonYue |
ea111f8dd2e1f4f2b5114570bae53f2ab171a89d | 3,772 | cpp | C++ | OverlordEditor/GeneratedFiles/Release/moc_NewProjectWindow.cpp | Ruvah/Overlord-Editor | 3193b4986b10edb0fa8fdbc493ee3b05fdea217d | [
"Apache-2.0"
] | 1 | 2018-11-28T12:30:13.000Z | 2018-11-28T12:30:13.000Z | OverlordEditor/GeneratedFiles/Debug/moc_NewProjectWindow.cpp | Ruvah/Overlord-Editor | 3193b4986b10edb0fa8fdbc493ee3b05fdea217d | [
"Apache-2.0"
] | null | null | null | OverlordEditor/GeneratedFiles/Debug/moc_NewProjectWindow.cpp | Ruvah/Overlord-Editor | 3193b4986b10edb0fa8fdbc493ee3b05fdea217d | [
"Apache-2.0"
] | 2 | 2019-12-28T12:34:51.000Z | 2021-03-08T08:37:33.000Z | /****************************************************************************
** Meta object code from reading C++ file 'NewProjectWindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.11.2)
**
** WARNING! All changes made in this file will be lost!
***************************************************... | 30.666667 | 96 | 0.632291 | Ruvah |
ea18c3b4711930b2c38703929f2c338ae1aa4d4e | 2,225 | hpp | C++ | c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/Config.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/Config.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | c++/en/dropbox/remove_sentences_effectively/remove_sentences_effectively/Config.hpp | aimldl/coding | 70ddbfaa454ab92fd072ee8dc614ecc330b34a70 | [
"MIT"
] | null | null | null | #pragma once // config.hpp
#include <string>
using namespace std;
//==================================================================
// Class Declaration //
//==================================================================
class Config
{
public:
... | 36.47541 | 87 | 0.660225 | aimldl |
ea19c954d672732183127b1dbfb3c86302cfbde7 | 244 | hpp | C++ | Include/FishEngine/Physics/RaycastHit.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-12-20T02:38:44.000Z | 2018-12-20T02:38:44.000Z | Include/FishEngine/Physics/RaycastHit.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | null | null | null | Include/FishEngine/Physics/RaycastHit.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-10-25T19:40:22.000Z | 2018-10-25T19:40:22.000Z | #pragma once
#include "../Math/Vector3.hpp"
#include "../Math/Vector2.hpp"
namespace FishEngine
{
class Collider;
struct RaycastHit
{
Vector3 m_Point;
float m_Distance;
Vector3 m_Normal;
Collider* m_Collider;
Vector2 m_UV;
};
} | 13.555556 | 30 | 0.709016 | yushroom |
ea1cedd4bad579ccac8777ae211cfb4d9c96eafd | 5,065 | cpp | C++ | Source/Unity3D/UnityCommon/LuaUnityExportClassProxy.cpp | Gandaa/LuaScriptCore | bf4bb2c041e57ae8e7919a89f3534f9196a2463c | [
"Apache-2.0"
] | 1 | 2021-01-20T06:01:51.000Z | 2021-01-20T06:01:51.000Z | Source/Unity3D/UnityCommon/LuaUnityExportClassProxy.cpp | Gandaa/LuaScriptCore | bf4bb2c041e57ae8e7919a89f3534f9196a2463c | [
"Apache-2.0"
] | null | null | null | Source/Unity3D/UnityCommon/LuaUnityExportClassProxy.cpp | Gandaa/LuaScriptCore | bf4bb2c041e57ae8e7919a89f3534f9196a2463c | [
"Apache-2.0"
] | 1 | 2021-01-20T06:02:53.000Z | 2021-01-20T06:02:53.000Z | //
// LuaUnityExportClassProxy.cpp
// LuaScriptCore
//
// Created by 冯鸿杰 on 17/4/5.
// Copyright © 2017年 冯鸿杰. All rights reserved.
//
#include "LuaUnityExportClassProxy.hpp"
#include "LuaObjectDescriptor.h"
#include "LuaObjectDecoder.hpp"
#include "LuaUnityClassObjectDescriptor.hpp"
#include "LuaContext.h"
#includ... | 31.855346 | 320 | 0.61382 | Gandaa |
ea1dc87cbfb4389461e41c0f4d872db1ee69e362 | 922 | cpp | C++ | cl_dll/hud_nextmap.cpp | rtxa/OpenAG | fad63ee16e956353b54bc497cc4067102d3d1e33 | [
"MIT"
] | 108 | 2016-06-19T15:24:42.000Z | 2022-01-21T16:51:13.000Z | cl_dll/hud_nextmap.cpp | rtxa/OpenAG | fad63ee16e956353b54bc497cc4067102d3d1e33 | [
"MIT"
] | 147 | 2016-06-19T18:15:35.000Z | 2022-03-19T05:48:26.000Z | cl_dll/hud_nextmap.cpp | rtxa/OpenAG | fad63ee16e956353b54bc497cc4067102d3d1e33 | [
"MIT"
] | 54 | 2016-12-05T15:49:48.000Z | 2022-03-21T23:07:09.000Z | #include "hud.h"
#include "cl_util.h"
#include "parsemsg.h"
DECLARE_MESSAGE(m_NextMap, Nextmap);
int CHudNextMap::Init()
{
HOOK_MESSAGE(Nextmap);
m_iFlags = 0;
next_map[ARRAYSIZE(next_map) - 1] = '\0';
gHUD.AddHudElem(this);
return 0;
}
int CHudNextMap::VidInit()
{
m_iFlags &= ~HUD_ACTIVE;
return 1;
}
int... | 17.074074 | 91 | 0.686551 | rtxa |
ea258e164bf869fa7bf4ed7e9398308bcb7eed82 | 606 | cpp | C++ | src/sys/animate.cpp | wtfsystems/wtengine | 0fb56d6eb2ac6359509e7a52876c8656da6b3ce0 | [
"MIT"
] | 7 | 2020-06-16T18:47:35.000Z | 2021-08-25T13:41:13.000Z | src/sys/animate.cpp | wtfsystems/wtengine | 0fb56d6eb2ac6359509e7a52876c8656da6b3ce0 | [
"MIT"
] | 15 | 2020-07-23T14:03:39.000Z | 2022-01-28T02:32:07.000Z | src/sys/animate.cpp | wtfsystems/wtengine | 0fb56d6eb2ac6359509e7a52876c8656da6b3ce0 | [
"MIT"
] | null | null | null | /*!
* WTEngine | File: animate.cpp
*
* \author Matthew Evans
* \version 0.7
* \copyright See LICENSE.md for copyright information.
* \date 2019-2021
*/
#include "wtengine/sys/animate.hpp"
namespace wte::sys {
/*
*
*/
animate::animate() : system("animate", true) {}
/*
*
*/
void animate::run(void) {
... | 18.363636 | 64 | 0.608911 | wtfsystems |
ea2ad5b7727759ae9a55d500f4248afc5a407d81 | 242 | cpp | C++ | Sem1/WDI/laborka/Zadanie1/main.cpp | YuunOoO/Code | 5e01c53ab54b4cd8e1694e5f343b012797805688 | [
"MIT"
] | 1 | 2021-06-03T14:54:30.000Z | 2021-06-03T14:54:30.000Z | Sem1/WDI/laborka/Zadanie1/main.cpp | YuunOoO/Code | 5e01c53ab54b4cd8e1694e5f343b012797805688 | [
"MIT"
] | null | null | null | Sem1/WDI/laborka/Zadanie1/main.cpp | YuunOoO/Code | 5e01c53ab54b4cd8e1694e5f343b012797805688 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
cout << "Program do obliczania kwadratow liczb od -100 do 100!" << endl;
int n=100;
for(int i=-n; i<=n; i++)
{
cout<<i<<"^2 ="<<i*i<<endl;
}
return 0;
}
| 15.125 | 76 | 0.524793 | YuunOoO |
ea2b5172dc14fcb9abad32d623f73bfbe2364b14 | 5,213 | cpp | C++ | src/board.cpp | szdytom/five-a-row | a88e8c3229d0f32ea5f39ec0102e373db6012cf6 | [
"MIT"
] | null | null | null | src/board.cpp | szdytom/five-a-row | a88e8c3229d0f32ea5f39ec0102e373db6012cf6 | [
"MIT"
] | null | null | null | src/board.cpp | szdytom/five-a-row | a88e8c3229d0f32ea5f39ec0102e373db6012cf6 | [
"MIT"
] | null | null | null | /**
* board.cpp
*
* Define of functions and classes in board.h
*/
#include "../include/board.h"
#include <algorithm>
#include <cstdio>
const int ltzero::Board::size = 15;
void ltzero::Board::clear_state() {
this->status = 0;
this->state.clear();
this->state.resize(ltzero::Board::size);
for (int i = 0; i < lt... | 19.236162 | 91 | 0.547286 | szdytom |
ea2f24144e07a6575b0d3044c3a09534394c8327 | 2,871 | hpp | C++ | src/manager.hpp | AmbrSb/LServer | 97fde72db060bcc4a5ea4e6fd6d9fff603a23fcf | [
"BSD-2-Clause"
] | 1 | 2021-09-01T08:57:10.000Z | 2021-09-01T08:57:10.000Z | src/manager.hpp | AmbrSb/LServer | 97fde72db060bcc4a5ea4e6fd6d9fff603a23fcf | [
"BSD-2-Clause"
] | null | null | null | src/manager.hpp | AmbrSb/LServer | 97fde72db060bcc4a5ea4e6fd6d9fff603a23fcf | [
"BSD-2-Clause"
] | null | null | null | /*
* BSD 2-Clause License
*
* Copyright (c) 2021, Amin Saba
* 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,
... | 33.383721 | 79 | 0.723093 | AmbrSb |
ea30011bae3c7e3bc651c5cf94b2b76dc4b87d80 | 2,007 | cpp | C++ | software/remote_controlled/robocar/src/car/bus/I2C.cpp | bierschi/robo_car | f3b308afd9b53a252d07f041c4cae9cbe007ecf3 | [
"MIT"
] | 6 | 2020-01-13T22:44:34.000Z | 2021-06-08T06:28:44.000Z | software/remote_controlled/robocar/src/car/bus/I2C.cpp | bierschi/robo_car | f3b308afd9b53a252d07f041c4cae9cbe007ecf3 | [
"MIT"
] | 1 | 2018-11-02T14:17:11.000Z | 2019-01-21T05:50:26.000Z | software/remote_controlled/robocar/src/car/bus/I2C.cpp | bierschi/robo_car | f3b308afd9b53a252d07f041c4cae9cbe007ecf3 | [
"MIT"
] | 1 | 2019-09-15T12:56:10.000Z | 2019-09-15T12:56:10.000Z | //
// Created by christian on 10.09.18.
//
#include "car/bus/I2C.h"
/**
* Constructor for a I2C instance
*
* USAGE:
* I2C *ic2 = new I2C(1, 0x40)
*
* @param devNr: unsigned int
* @param addr: int address for i2c slave
*/
I2C::I2C(unsigned int devNr, int addr) : i2cDevNr(devNr), i2cAddr(addr) {
std::s... | 18.933962 | 75 | 0.53712 | bierschi |
ea32df2408f04df4e0b388293744f483005b0d31 | 5,650 | hh | C++ | Xtide/xtide-2.14/libxtide/config.hh | lobrien/TideMonkey | 296d8d24f25f5ef5aeafa1bab4a82246843fe9a7 | [
"MIT"
] | 1 | 2019-05-01T19:56:38.000Z | 2019-05-01T19:56:38.000Z | Xtide/xtide-2.14/libxtide/config.hh | lobrien/TideMonkey | 296d8d24f25f5ef5aeafa1bab4a82246843fe9a7 | [
"MIT"
] | null | null | null | Xtide/xtide-2.14/libxtide/config.hh | lobrien/TideMonkey | 296d8d24f25f5ef5aeafa1bab4a82246843fe9a7 | [
"MIT"
] | null | null | null | // $Id: config.hh 5748 2014-10-11 19:38:53Z flaterco $
// Compiled-in defaults for settings.
// These are XTide's internal configurables ("settings") which can be
// overridden at run time. If you were looking for the GNU standard config.h
// that is generated by autoconf and contains immutable installation choices
... | 33.832335 | 77 | 0.72177 | lobrien |
ea342c66e8b83ea52d6a16d41b837cd1f9ab2941 | 976 | cpp | C++ | DataOrientedDesign/BoatsTestCase/dod_boat.cpp | SpowNzz/HellocplusplusBlog | 492dee9dcce85e3a85fbe3d7fe23fb4d83b4f37b | [
"MIT"
] | null | null | null | DataOrientedDesign/BoatsTestCase/dod_boat.cpp | SpowNzz/HellocplusplusBlog | 492dee9dcce85e3a85fbe3d7fe23fb4d83b4f37b | [
"MIT"
] | null | null | null | DataOrientedDesign/BoatsTestCase/dod_boat.cpp | SpowNzz/HellocplusplusBlog | 492dee9dcce85e3a85fbe3d7fe23fb4d83b4f37b | [
"MIT"
] | null | null | null | #include "dod_boat.h"
#include <cassert>
void BoatRentalDataStore::CreateBoatMonthlyRentalInfo(const string& inName,
unsigned int inNrOfRents,
float inMaintenanceCostPerRent,
float inEarningsPerRent)
{
m_BoatNames.push_back(inName);
m_MaintenanceCostData.push_back({ inNrO... | 32.533333 | 84 | 0.773566 | SpowNzz |
ea361b97cca06a318a30d699eefb1be5dc682013 | 5,878 | cpp | C++ | libs/cephes/cephes.cpp | pvavercak/randomness-testing-toolkit | 8a29349edee0dc44bc8e765708555dda57b9e339 | [
"MIT"
] | 16 | 2016-11-09T15:45:52.000Z | 2021-03-05T13:52:24.000Z | libs/cephes/cephes.cpp | pvavercak/randomness-testing-toolkit | 8a29349edee0dc44bc8e765708555dda57b9e339 | [
"MIT"
] | 36 | 2015-10-13T19:22:57.000Z | 2020-05-12T16:23:55.000Z | libs/cephes/cephes.cpp | pvavercak/randomness-testing-toolkit | 8a29349edee0dc44bc8e765708555dda57b9e339 | [
"MIT"
] | 4 | 2016-08-21T00:37:01.000Z | 2022-02-10T16:06:41.000Z | #include <stdio.h>
#include <math.h>
#include "cephes.h"
static const double rel_error = 1E-12;
double MACHEP = 1.11022302462515654042E-16; // 2**-53
double MAXLOG = 7.09782712893383996732224E2; // log(MAXNUM)
double MAXNUM = 1.7976931348623158E308; // 2**1024*(1-MACHEP)
double PI = 3.1415926535897932... | 18.254658 | 81 | 0.511058 | pvavercak |
ea3a761d00b86c8e52afada1c16a001475086bb6 | 1,890 | cpp | C++ | simplelinearregression.cpp | JUNZ1/Godot_MachineLearning | d596b695056839f7a610375bfc81dfdf0c654210 | [
"MIT"
] | 16 | 2020-08-11T19:53:34.000Z | 2022-02-15T15:05:07.000Z | simplelinearregression.cpp | JUNZ1/Godot_MachineLearning | d596b695056839f7a610375bfc81dfdf0c654210 | [
"MIT"
] | 1 | 2020-08-11T17:23:29.000Z | 2020-08-11T17:23:29.000Z | simplelinearregression.cpp | JUNZ1/Godot_MachineLearning | d596b695056839f7a610375bfc81dfdf0c654210 | [
"MIT"
] | null | null | null | #include "simplelinearregression.h"
SimpleLinearRegression::SimpleLinearRegression()
{
_simpleLR.TrainingFinish = std::bind(&SimpleLinearRegression::BinderForFinished,this,std::placeholders::_1);
ADD_SIGNAL(MethodInfo("TrainingFinished", PropertyInfo(Variant::BOOL, "TEST TEXT")));
}
SimpleLinearRegression::SimpleLi... | 32.033898 | 109 | 0.790476 | JUNZ1 |
ea3d8a4b4bb50a105e1c1edb306cb86dab38d31e | 843 | hpp | C++ | FileLoad/f_load.hpp | Rintarooo/DTAM_Mapping | 4da777b9b50c01c44307b583733726e471c56b98 | [
"MIT"
] | null | null | null | FileLoad/f_load.hpp | Rintarooo/DTAM_Mapping | 4da777b9b50c01c44307b583733726e471c56b98 | [
"MIT"
] | null | null | null | FileLoad/f_load.hpp | Rintarooo/DTAM_Mapping | 4da777b9b50c01c44307b583733726e471c56b98 | [
"MIT"
] | null | null | null | #ifndef FILELOADER_H
#define FILELOADER_H
#include <iostream>
#include <string> // string
#include <fstream> // ifstream, ofstream
#include <sstream> // stringstream
#include <vector>
#include <opencv2/opencv.hpp>
#include <iomanip> // https://stackoverflow.com/questions/225362/convert-a-number-to-a-string-with... | 26.34375 | 120 | 0.685647 | Rintarooo |
ea3e3d8ee026aa880443e59e5ece0579daaf87ec | 4,552 | cpp | C++ | build/main/Player.cpp | walthill/final-crusade | 4533651b6a4cf55665ea864cb1cb2d40beaf4ee3 | [
"Apache-2.0"
] | null | null | null | build/main/Player.cpp | walthill/final-crusade | 4533651b6a4cf55665ea864cb1cb2d40beaf4ee3 | [
"Apache-2.0"
] | null | null | null | build/main/Player.cpp | walthill/final-crusade | 4533651b6a4cf55665ea864cb1cb2d40beaf4ee3 | [
"Apache-2.0"
] | null | null | null | #include "Player.h"
#include "Game.h"
Player::Player()
{
mPlayerFrameSpeed = 16;
mVelocity = 4;
mXBound = 0;
mYBound = 0; //map size
lastLife = false;
dtTime = 0;
invulnerableTime = 3000;
}
Player::~Player()
{
}
void Player::init(int xBounds, int yBounds, string hitAudioId)
{
playerHit... | 19.046025 | 129 | 0.623682 | walthill |
ea40e6193b9dd77573d66db31a16c63e87541c04 | 165 | cpp | C++ | atcoder/abc099/A.cpp | SashiRin/protrode | c03d0a6e9a5ac87d0f3d3af5d39b05a10f58527c | [
"MIT"
] | 1 | 2019-08-03T13:42:16.000Z | 2019-08-03T13:42:16.000Z | atcoder/abc099/A.cpp | SashiRin/protrode | c03d0a6e9a5ac87d0f3d3af5d39b05a10f58527c | [
"MIT"
] | null | null | null | atcoder/abc099/A.cpp | SashiRin/protrode | c03d0a6e9a5ac87d0f3d3af5d39b05a10f58527c | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main()
{
int n;
cin >> n;
cout << ((n < 1000) ? "ABC" : "ABD") << endl;
return 0;
}
| 12.692308 | 49 | 0.521212 | SashiRin |
ea4477657b59efccd6d5055fa41f3be601f045bd | 357 | cpp | C++ | NOI[OpenJudge]/1.13/1.13.2.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | NOI[OpenJudge]/1.13/1.13.2.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | NOI[OpenJudge]/1.13/1.13.2.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | //Code By HeRaNO
#include <iostream>
using namespace std;
int main()
{
int w, t, m, i;
m = 0;
t = 0;
cin >> w;
if (w >= 1 && w <= 7) m = 6 - w;
else if (w >= 6 && w <= 7) m = 13 - w;
int a[15] = {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334};
for (i = 0; i <= 11; i++)
if ((a[i] + 13 - m) % 7 == 0)
... | 19.833333 | 69 | 0.45098 | HeRaNO |
ea4544e8f8fdd2ee21f84537eb8b7aa7dbecc39c | 13,717 | cpp | C++ | GeneratedFiles/Debug/moc_std.toolbar.cpp | wilsonsouza/stdx.frame.x86 | c9e0cc4c748f161367531990e5795a700f40e5ec | [
"Apache-2.0"
] | null | null | null | GeneratedFiles/Debug/moc_std.toolbar.cpp | wilsonsouza/stdx.frame.x86 | c9e0cc4c748f161367531990e5795a700f40e5ec | [
"Apache-2.0"
] | null | null | null | GeneratedFiles/Debug/moc_std.toolbar.cpp | wilsonsouza/stdx.frame.x86 | c9e0cc4c748f161367531990e5795a700f40e5ec | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'std.toolbar.hpp'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.0)
**
** WARNING! All changes made in this file will be lost!
*************************************************... | 41.566667 | 147 | 0.573303 | wilsonsouza |
356b2e2a2ddb6d136d390e97c7f5e8001fbd139c | 854 | cpp | C++ | UiModule/Inworld/ControlPanel/BackdropWidget.cpp | zemo/naali | a02ee7a0547c5233579eda85dedb934b61c546ab | [
"Apache-2.0"
] | 1 | 2018-04-02T15:38:10.000Z | 2018-04-02T15:38:10.000Z | UiModule/Inworld/ControlPanel/BackdropWidget.cpp | mattire/naali | 28c9cdc84c6a85e0151a222e55ae35c9403f0212 | [
"Apache-2.0"
] | null | null | null | UiModule/Inworld/ControlPanel/BackdropWidget.cpp | mattire/naali | 28c9cdc84c6a85e0151a222e55ae35c9403f0212 | [
"Apache-2.0"
] | 1 | 2021-09-04T12:37:34.000Z | 2021-09-04T12:37:34.000Z | // For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "BackdropWidget.h"
namespace CoreUi
{
BackdropWidget::BackdropWidget() :
QGraphicsProxyWidget(0, Qt::Widget),
internal_widget_(new QWidget())
{
setupUi(internal_widget_);
... | 21.35 | 78 | 0.647541 | zemo |
35729344ea6b7bb6374eef0fcdeb09622c191bac | 4,320 | cpp | C++ | src/systemc/tests/systemc/misc/sim_tests/manual_clock/manual_clock.cpp | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 765 | 2015-01-14T16:17:04.000Z | 2022-03-28T07:46:28.000Z | src/systemc/tests/systemc/misc/sim_tests/manual_clock/manual_clock.cpp | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 148 | 2018-07-20T00:58:36.000Z | 2021-11-16T01:52:33.000Z | src/systemc/tests/systemc/misc/sim_tests/manual_clock/manual_clock.cpp | hyu-iot/gem5 | aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5 | [
"BSD-3-Clause"
] | 807 | 2015-01-06T09:55:38.000Z | 2022-03-30T10:23:36.000Z | /*****************************************************************************
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
more contributor license agreements. See the NOTICE file distributed
with this work for additional information regarding copyright ownership.
Accellera licenses... | 24.685714 | 79 | 0.465509 | hyu-iot |
3576d0f6e689e7ddf1f2b307fa787a1086a7e992 | 10,703 | cpp | C++ | native/common/jp_exception.cpp | theHamsta/jpype | 2ea0c56751598f0ce47d1c3be9ac48b4966d3e4a | [
"Apache-2.0"
] | 1 | 2020-01-03T06:03:14.000Z | 2020-01-03T06:03:14.000Z | native/common/jp_exception.cpp | theHamsta/jpype | 2ea0c56751598f0ce47d1c3be9ac48b4966d3e4a | [
"Apache-2.0"
] | null | null | null | native/common/jp_exception.cpp | theHamsta/jpype | 2ea0c56751598f0ce47d1c3be9ac48b4966d3e4a | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
Copyright 2004-2008 Steve Ménard
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... | 25.362559 | 111 | 0.668971 | theHamsta |
3578dd214ded3eadf38656ff68765470f1c26049 | 1,312 | cpp | C++ | CAN/Backends/PeakCan/PeakCanReceiver.cpp | guilyx/J1939-Framework | 3b8456697d7795cafcb39a60379fdc6f90a57c47 | [
"MIT"
] | 114 | 2018-03-24T02:41:12.000Z | 2022-03-29T07:16:20.000Z | CAN/Backends/PeakCan/PeakCanReceiver.cpp | guilyx/J1939-Framework | 3b8456697d7795cafcb39a60379fdc6f90a57c47 | [
"MIT"
] | 8 | 2019-12-04T04:41:44.000Z | 2022-02-26T21:26:57.000Z | CAN/Backends/PeakCan/PeakCanReceiver.cpp | guilyx/J1939-Framework | 3b8456697d7795cafcb39a60379fdc6f90a57c47 | [
"MIT"
] | 36 | 2017-11-06T16:12:14.000Z | 2022-03-03T05:40:13.000Z | /*
* PeakCanReceiver.cpp
*
* Created on: May 10, 2018
* Author: fernado
*/
#include <Backends/PeakCan/PeakCanReceiver.h>
#include <Backends/PeakCan/PeakCanChannels.h>
using namespace Utils;
namespace Can {
namespace PeakCan {
PeakCanReceiver::PeakCanReceiver(TPCANHandle handle) : mCurrentHandle(handle),... | 21.866667 | 124 | 0.730183 | guilyx |
357ccc3d7794bc38c683b0d83e93df2ddc1eae5e | 3,879 | cpp | C++ | corelib/src/Monitor.cpp | supersaiyajinggod/VISFS | 6567df9b064437a32dc96d6f03ef6cd4ea1b24ce | [
"BSD-3-Clause"
] | 3 | 2021-06-09T13:20:59.000Z | 2022-01-14T13:31:11.000Z | corelib/src/Monitor.cpp | supersaiyajinggod/VISFS | 6567df9b064437a32dc96d6f03ef6cd4ea1b24ce | [
"BSD-3-Clause"
] | null | null | null | corelib/src/Monitor.cpp | supersaiyajinggod/VISFS | 6567df9b064437a32dc96d6f03ef6cd4ea1b24ce | [
"BSD-3-Clause"
] | null | null | null | #include <opencv2/highgui/highgui_c.h>
#include "Monitor.h"
#include "Stl.h"
namespace VISFS {
Monitor::Monitor(const ParametersMap & _parameters) :
sensorStrategy_(Parameters::defaultSystemSensorStrategy()) {
Parameters::parse(_parameters, Parameters::kSystemSensorStrategy(), sensorStrategy_);
}
void ... | 39.581633 | 187 | 0.55272 | supersaiyajinggod |
357dc2c2141c89de0b9d552cd46b1076521c22df | 2,273 | cpp | C++ | benchmark/src/benchmark_number.cpp | ivangalkin/spotify-json | 68cfafc488ffae851cca3f556b90129cffb26be1 | [
"Apache-2.0"
] | 192 | 2016-09-29T17:10:07.000Z | 2022-03-22T15:22:48.000Z | benchmark/src/benchmark_number.cpp | ivangalkin/spotify-json | 68cfafc488ffae851cca3f556b90129cffb26be1 | [
"Apache-2.0"
] | 35 | 2016-10-03T16:57:12.000Z | 2021-09-28T13:11:15.000Z | benchmark/src/benchmark_number.cpp | ivangalkin/spotify-json | 68cfafc488ffae851cca3f556b90129cffb26be1 | [
"Apache-2.0"
] | 47 | 2016-09-29T08:21:32.000Z | 2022-03-19T10:05:43.000Z | /*
* Copyright (c) 2016 Spotify AB
*
* 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... | 28.772152 | 80 | 0.707435 | ivangalkin |
358329894e63b1079bd7ce71c2f7061fafab24dc | 50,114 | cpp | C++ | PiTool/src/ResourceModel.cpp | nlyan/PiTool | bd50739de4a9f6e2a294351d0cd96c9efb1ec817 | [
"BSD-3-Clause"
] | 46 | 2019-09-24T19:30:06.000Z | 2022-02-05T12:51:52.000Z | PiTool/src/ResourceModel.cpp | nlyan/PiTool | bd50739de4a9f6e2a294351d0cd96c9efb1ec817 | [
"BSD-3-Clause"
] | 6 | 2019-09-24T20:10:35.000Z | 2019-12-29T22:55:12.000Z | PiTool/src/ResourceModel.cpp | nlyan/PiTool | bd50739de4a9f6e2a294351d0cd96c9efb1ec817 | [
"BSD-3-Clause"
] | 18 | 2019-09-24T19:36:39.000Z | 2022-02-05T12:51:55.000Z | #include "ResourceModel.h"
#include <QDir>
#include <QFile>
#include <QStandardPaths>
#include <QProcess>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QSettings>
#include <QDesktopServices>
#include "quazip/JlCompress.h"
#include <QDebug>
#include "piservice.h"
#include <QSqlDatabase... | 35.693732 | 160 | 0.612364 | nlyan |
358368f4431def18aa43e295ea8d992298a3ce75 | 7,752 | cc | C++ | policy-decision-point/ast_2_policy_stack.cc | SSICLOPS/cppl | 265514bc461352b7b5bc58fd7482328601029e4a | [
"Apache-2.0"
] | 1 | 2018-06-02T11:50:06.000Z | 2018-06-02T11:50:06.000Z | policy-decision-point/ast_2_policy_stack.cc | SSICLOPS/cppl | 265514bc461352b7b5bc58fd7482328601029e4a | [
"Apache-2.0"
] | 1 | 2018-01-17T04:16:29.000Z | 2018-01-30T09:01:44.000Z | policy-decision-point/ast_2_policy_stack.cc | SSICLOPS/cppl | 265514bc461352b7b5bc58fd7482328601029e4a | [
"Apache-2.0"
] | 1 | 2018-11-18T20:31:54.000Z | 2018-11-18T20:31:54.000Z | // Copyright 2015-2018 RWTH Aachen University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 29.587786 | 102 | 0.696078 | SSICLOPS |
3584cce489a29cc7c7953c9504a907831410b146 | 7,506 | cpp | C++ | enduser/zone_internetgames/src/client/shell/winfrx/button.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | enduser/zone_internetgames/src/client/shell/winfrx/button.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | enduser/zone_internetgames/src/client/shell/winfrx/button.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "buttonfrx.h"
#include "windowsx.h"
#include "rectfrx.h"
///////////////////////////////////////////////////////////////////////////////
// Class Globals
///////////////////////////////////////////////////////////////////////////////
CRolloverButton* CRolloverButton::m_pHookObj = NULL;
HHOOK CRol... | 21.20339 | 143 | 0.594591 | npocmaka |
35893ebafdb3649fc28fc4ec5cc11e89793103f3 | 4,028 | cxx | C++ | src/TStoreGEMEvent.cxx | a-capra/feGEM | 0ae28e1d2aae609f6f8f5000bad30d8dcc41626c | [
"MIT"
] | null | null | null | src/TStoreGEMEvent.cxx | a-capra/feGEM | 0ae28e1d2aae609f6f8f5000bad30d8dcc41626c | [
"MIT"
] | null | null | null | src/TStoreGEMEvent.cxx | a-capra/feGEM | 0ae28e1d2aae609f6f8f5000bad30d8dcc41626c | [
"MIT"
] | 1 | 2021-02-26T20:59:50.000Z | 2021-02-26T20:59:50.000Z | #include "TStoreGEMEvent.h"
TStoreGEMEventHeader::TStoreGEMEventHeader()
{
//ctor
}
TStoreGEMEventHeader::TStoreGEMEventHeader(GEMBANK<void*> *bank)
{
BANK = bank->GetBANK();
DATATYPE = bank->GetType();
VARCATEGORY = bank->GetCategoryName();
VARNAME = ... | 26.326797 | 132 | 0.701837 | a-capra |
3592b5dc4608a697fa7c2a49cc8e082c4d5d8752 | 244 | cpp | C++ | project5-multi_exe_dep_on_common_lib/src/the_main1.cpp | adamcavendish/ReasonableCMakeForCXX | c49d94106f25fa6e25bdfd2389d68b5fb7fb80b3 | [
"Unlicense"
] | 3 | 2017-04-05T16:03:31.000Z | 2017-05-18T13:58:52.000Z | project5-multi_exe_dep_on_common_lib/src/the_main1.cpp | adamcavendish/ReasonableCMakeForCXX | c49d94106f25fa6e25bdfd2389d68b5fb7fb80b3 | [
"Unlicense"
] | null | null | null | project5-multi_exe_dep_on_common_lib/src/the_main1.cpp | adamcavendish/ReasonableCMakeForCXX | c49d94106f25fa6e25bdfd2389d68b5fb7fb80b3 | [
"Unlicense"
] | null | null | null | #include <main1/the_main1.hpp>
#include <common1/c1.hpp>
#include <common2/c2.hpp>
#include <module3/m3.hpp>
#include <string>
std::string the_main1() {
return std::string() + "c1=" + c1() + ",c2=" + c2() + ",m3=" + m3() + ",the_main1!";
}
| 22.181818 | 86 | 0.606557 | adamcavendish |
35987ccb09e0bdd3f2f72204e26e6f3de58b5a4e | 4,465 | cpp | C++ | utils/oaextendA.cpp | ABohynDOE/oapackage | d4df98ee94ecd98e5e9eec62dc29df9a7ec8c9ce | [
"BSD-2-Clause"
] | 20 | 2015-11-06T07:24:29.000Z | 2022-03-28T22:02:19.000Z | utils/oaextendA.cpp | ABohynDOE/oapackage | d4df98ee94ecd98e5e9eec62dc29df9a7ec8c9ce | [
"BSD-2-Clause"
] | 37 | 2015-11-06T07:25:42.000Z | 2022-03-22T01:33:47.000Z | utils/oaextendA.cpp | ABohynDOE/oapackage | d4df98ee94ecd98e5e9eec62dc29df9a7ec8c9ce | [
"BSD-2-Clause"
] | 12 | 2016-08-16T15:09:57.000Z | 2022-03-06T11:48:55.000Z | /** \file oaextendA.cpp
C++ program: oaextendA
oaextendA: tool for testing new algorithms
Author: Pieter Eendebak <pieter.eendebak@gmail.com>
Copyright: See LICENSE.txt file that comes with this distribution
*/
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include "anyoption.h"
#include "arraytoo... | 34.612403 | 115 | 0.566405 | ABohynDOE |
359916fc528122d2d1b1e2472f66c5c59d087043 | 21,405 | cpp | C++ | src/ankicar.cpp | ThomasHeinrichSchmidt/anki-overdrive-goes-iot | d28f728694ff7aabe65ccb77da5c3d41c70b3dc3 | [
"MIT"
] | 1 | 2021-04-13T18:20:56.000Z | 2021-04-13T18:20:56.000Z | src/ankicar.cpp | ThomasHeinrichSchmidt/anki-overdrive-goes-iot | d28f728694ff7aabe65ccb77da5c3d41c70b3dc3 | [
"MIT"
] | null | null | null | src/ankicar.cpp | ThomasHeinrichSchmidt/anki-overdrive-goes-iot | d28f728694ff7aabe65ccb77da5c3d41c70b3dc3 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 9.11.2016 com2m GmbH.
* All rights reserved.
*/
#include "headers/ankicar.h"
#include <QDebug>
#include <QLowEnergyController>
#include <QLowEnergyCharacteristic>
#include <iostream>
#include "headers/ankimessage.h"
#include "headers/trackpiece.h"
#include <QLowEnergyConnectionParamet... | 38.429084 | 284 | 0.61252 | ThomasHeinrichSchmidt |
3599fc0650d5c24270a113766bb4db1631d2cbde | 5,608 | cxx | C++ | test/GaussianProcessEmulatorTest.cxx | scottedwardpratt/MADAI | 9f9ee0dac704d77492d9905b4d90a57746201912 | [
"BSD-3-Clause"
] | 3 | 2015-04-02T17:37:35.000Z | 2017-03-28T20:14:23.000Z | test/GaussianProcessEmulatorTest.cxx | scottedwardpratt/MADAI | 9f9ee0dac704d77492d9905b4d90a57746201912 | [
"BSD-3-Clause"
] | null | null | null | test/GaussianProcessEmulatorTest.cxx | scottedwardpratt/MADAI | 9f9ee0dac704d77492d9905b4d90a57746201912 | [
"BSD-3-Clause"
] | 3 | 2015-08-20T14:07:41.000Z | 2017-03-28T20:15:23.000Z | /*=========================================================================
*
* Copyright 2011-2013 The University of North Carolina at Chapel Hill
* All rights reserved.
*
* Licensed under the MADAI Software License. You may obtain a copy of
* this license at
*
* https://madai-public.cs.unc.edu/vis... | 32.795322 | 85 | 0.657632 | scottedwardpratt |