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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
beb9b9965cd0926b49da1c96fa5918c8ae5c5dcb | 3,935 | cpp | C++ | UnderstandingCpp11/src/compatibility.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | 15 | 2015-11-04T12:53:23.000Z | 2021-08-10T09:53:12.000Z | UnderstandingCpp11/src/compatibility.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | null | null | null | UnderstandingCpp11/src/compatibility.cpp | elloop/algorithm | 5485be0aedbc18968f775cff9533a2d444dbdcb5 | [
"MIT"
] | 6 | 2015-11-13T10:17:01.000Z | 2020-05-14T07:25:48.000Z | #include "compatibility.h"
#include "inc.h"
#include <climits>
#include <iostream>
USING_NS_STD;
NS_ELLOOP_BEGIN
//---------------------------------- test in this cpp ------------------------------------
void testC99Macro();
void testLongLong();
void testNoexcept() { }
Compatibility * Compatibility... | 27.517483 | 91 | 0.424142 | elloop |
bebe08d2719a0053d3194552cc53713e8e81b408 | 1,969 | cpp | C++ | compiler/llvmArrayLoadInsn.cpp | Kishanthan/nballerina | baa4fc70ee140ceb5f57ce40905b233fffcb602f | [
"Apache-2.0"
] | null | null | null | compiler/llvmArrayLoadInsn.cpp | Kishanthan/nballerina | baa4fc70ee140ceb5f57ce40905b233fffcb602f | [
"Apache-2.0"
] | null | null | null | compiler/llvmArrayLoadInsn.cpp | Kishanthan/nballerina | baa4fc70ee140ceb5f57ce40905b233fffcb602f | [
"Apache-2.0"
] | null | null | null | #include "BIR.h"
ArrayLoadInsn::ArrayLoadInsn() { }
ArrayLoadInsn::ArrayLoadInsn(Location *pos, InstructionKind kind, Operand *lOp,
bool opFA, bool fR, Operand* KOp, Operand* ROp)
: NonTerminatorInsn(pos, kind, lOp), optionalFieldAccess(opFA),
fillingRead(fR), keyOp(KOp), rhsOp(ROp) {}
LLVMVa... | 41.893617 | 98 | 0.757237 | Kishanthan |
bec3c4047906c0673ac770fc4d7f0b997e7fadaf | 550 | cpp | C++ | src/5000/5789.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/5000/5789.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/5000/5789.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
using namespace std;
int main()
{
int no_case;
cin>>no_case;
while(no_case--)
{
string num;
cin>>num;
int k=num.size()/2;
int n1, n2;
switch(num.size()%2)
{
case 0:
n1=num.at(k-1), n2=num.at(k... | 14.473684 | 41 | 0.409091 | upple |
bed182e25bf0c180072642de20bd37e82b49fa61 | 10,785 | tcc | C++ | include/lvr2/algorithm/CleanupAlgorithms.tcc | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 38 | 2019-06-19T15:10:35.000Z | 2022-02-16T03:08:24.000Z | include/lvr2/algorithm/CleanupAlgorithms.tcc | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 9 | 2019-06-19T16:19:51.000Z | 2021-09-17T08:31:25.000Z | include/lvr2/algorithm/CleanupAlgorithms.tcc | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 13 | 2019-04-16T11:50:32.000Z | 2020-11-26T07:47:44.000Z | /**
* Copyright (c) 2018, University Osnabrück
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this li... | 38.244681 | 104 | 0.553732 | uos |
bed6c93707bca91ab2d9926072f8b141e3b37156 | 1,258 | cc | C++ | test/geometric/polyline.cc | mapbox/nepomuk | 8771482edb9b16bb0f5a152c15681c57eb3bb6b6 | [
"MIT"
] | 22 | 2017-05-12T11:52:26.000Z | 2021-12-06T06:05:08.000Z | test/geometric/polyline.cc | mapbox/nepomuk | 8771482edb9b16bb0f5a152c15681c57eb3bb6b6 | [
"MIT"
] | 49 | 2017-05-11T16:13:58.000Z | 2017-12-13T11:19:17.000Z | test/geometric/polyline.cc | mapbox/nepomuk | 8771482edb9b16bb0f5a152c15681c57eb3bb6b6 | [
"MIT"
] | 7 | 2017-11-19T12:04:26.000Z | 2021-12-06T06:14:25.000Z | #include <vector>
#include "geometric/coordinate.hpp"
#include "geometric/polyline.hpp"
using namespace nepomuk::geometric;
// make sure we get a new main function here
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(encode_decode)
{
std::vector<WGS84Coordinate> polyline;
po... | 34.944444 | 100 | 0.738474 | mapbox |
bed9204c7dbcd2ce89c8e7eb8ce54be93218f452 | 5,314 | hpp | C++ | include/c9/value.hpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | 1 | 2015-02-13T02:03:29.000Z | 2015-02-13T02:03:29.000Z | include/c9/value.hpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null | include/c9/value.hpp | stormbrew/channel9 | 626b42c208ce1eb54fff09ebd9f9e9fd0311935d | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "json/json.h"
#include "c9/channel9.hpp"
#include "c9/gc.hpp"
#include "c9/string.hpp"
namespace Channel9
{
union Value
{
enum {
TYPE_SHIFT = 56,
TYPE_MASK = 0xf000000000000000ULL,
HEAP_TYPE_MASK = 0xff00000000000000ULL,
VALUE_MASK = 0x0fffffffffffffffULL... | 25.548077 | 128 | 0.690817 | stormbrew |
bed9631b262608c09677527bf691f8c469c5b6ba | 519 | cpp | C++ | Games/Inheritance/Point.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | Games/Inheritance/Point.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | Games/Inheritance/Point.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
//
// File Name: FileName.h
// Author(s): Blakely North (blakely.north@digipen.edu)
// Project: CS170 Project 4: Inheritance
// Course: WANIC VGP2
//
// Copyright © 2019 DigiPen (USA) Corporation.
//
//---------------... | 22.565217 | 81 | 0.375723 | PowerUser64 |
bedd01c5ab739406fce3a5d5ba2d505f0fc69c1f | 25,697 | cc | C++ | wasm/ThreadOps.cc | SBKarr/spwasm | 90c819bc818f9a69e80a7984dacf7288c5e8c8c8 | [
"Apache-2.0"
] | 3 | 2017-12-25T15:42:22.000Z | 2018-03-11T12:10:58.000Z | wasm/ThreadOps.cc | SBKarr/spwasm | 90c819bc818f9a69e80a7984dacf7288c5e8c8c8 | [
"Apache-2.0"
] | null | null | null | wasm/ThreadOps.cc | SBKarr/spwasm | 90c819bc818f9a69e80a7984dacf7288c5e8c8c8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017 Roman Katuntsev <sbkarr@stappler.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 34.867028 | 122 | 0.70444 | SBKarr |
bede7e8cb8d992e6bff8f99eb6220d2b2949ec3f | 5,942 | cc | C++ | Trabajo/software/branch.cc | dcabezas98/MH | 98ced0552d6736004225aaafb5facd385a9a28d2 | [
"MIT"
] | 1 | 2021-07-18T16:33:12.000Z | 2021-07-18T16:33:12.000Z | Trabajo/software/branch.cc | dcabezas98/MH | 98ced0552d6736004225aaafb5facd385a9a28d2 | [
"MIT"
] | null | null | null | Trabajo/software/branch.cc | dcabezas98/MH | 98ced0552d6736004225aaafb5facd385a9a28d2 | [
"MIT"
] | null | null | null | extern "C" {
#include "cec17.h"
}
#include <iostream>
#include <vector>
#include <random>
#include <math.h>
using namespace std;
//int TOTAL_EVALS=0;
// Parámetros
float INIT_CELERITY = 1;
float DECREASE_SUCCESS = 0.99;
float DECREASE_FAIL = 0.9;
float BASE_WEIGHT = 0.2;
float PROB_SPLIT = 0.9; // Coeficiente que ... | 31.775401 | 146 | 0.617469 | dcabezas98 |
bedf2c17e71d62feeb1c01c0c80e52bf0ea1e921 | 3,614 | hpp | C++ | Include/libShapeDB.hpp | ldgcomputing/libShape | 89505afac7ee10903538604b5476b8b8fd6368c2 | [
"MIT"
] | null | null | null | Include/libShapeDB.hpp | ldgcomputing/libShape | 89505afac7ee10903538604b5476b8b8fd6368c2 | [
"MIT"
] | null | null | null | Include/libShapeDB.hpp | ldgcomputing/libShape | 89505afac7ee10903538604b5476b8b8fd6368c2 | [
"MIT"
] | null | null | null | //
// libShapeDB.hpp
// libShape
//
// Created by Louis Gehrig on 4/13/19.
// Copyright © 2019 Louis Gehrig. All rights reserved.
//
/***
MIT License
Copyright (c) 2019 Louis Gehrig
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation fil... | 21.511905 | 79 | 0.714721 | ldgcomputing |
bee27add0e3f0ebc3b1a10e8f4ad0daf46aafb19 | 36,517 | cpp | C++ | Co-Simulation/Sumo/sumo-1.7.0/src/microsim/trigger/MSOverheadWire.cpp | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | Co-Simulation/Sumo/sumo-1.7.0/src/microsim/trigger/MSOverheadWire.cpp | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | Co-Simulation/Sumo/sumo-1.7.0/src/microsim/trigger/MSOverheadWire.cpp | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | /****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2002-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... | 51.650636 | 355 | 0.685598 | uruzahe |
bee33d9df76e113a1ac1d813f5c5469ab5443c43 | 1,189 | cpp | C++ | Codes/countingsort.cpp | rhazra-003/DAA_Lab_Assignments | 10d200af04c127cf7e915d38c54517e2b5a3465a | [
"MIT"
] | 1 | 2022-01-31T15:03:40.000Z | 2022-01-31T15:03:40.000Z | Codes/countingsort.cpp | rhazra-003/DAALab | 10d200af04c127cf7e915d38c54517e2b5a3465a | [
"MIT"
] | null | null | null | Codes/countingsort.cpp | rhazra-003/DAALab | 10d200af04c127cf7e915d38c54517e2b5a3465a | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
void countSort(vector<int> &nums) {
int max = *max_element(nums.begin(), nums.end());
int min = *min_element(nums.begin(), nums.end());
int range = max - min + 1;
vector<int> count(range), output(nums.size());
... | 22.433962 | 53 | 0.494533 | rhazra-003 |
bee42a0ec43b9e8666c2912841ecf863fd0069da | 17 | hpp | C++ | src/color/LuvCH/trait/index/index.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 120 | 2015-12-31T22:30:14.000Z | 2022-03-29T15:08:01.000Z | src/color/LuvCH/trait/index/index.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 6 | 2016-08-22T02:14:56.000Z | 2021-11-06T22:39:52.000Z | src/color/LuvCH/trait/index/index.hpp | 3l0w/color | e42d0933b6b88564807bcd5f49e9c7f66e24990a | [
"Apache-2.0"
] | 23 | 2016-02-03T01:56:26.000Z | 2021-09-28T16:36:27.000Z | // USE Default!!! | 17 | 17 | 0.588235 | 3l0w |
bee4753e8fa7dcaec3bad5e8092772a81d215591 | 384 | cpp | C++ | check/src/hello_hipfft.cpp | powderluv/rocm-build | db8b6f4cde075344aec91d7bf5b521905b42fb50 | [
"Apache-2.0"
] | 59 | 2020-10-30T12:28:30.000Z | 2022-03-31T05:29:24.000Z | check/src/hello_hipfft.cpp | powderluv/rocm-build | db8b6f4cde075344aec91d7bf5b521905b42fb50 | [
"Apache-2.0"
] | 26 | 2020-09-28T03:53:26.000Z | 2022-03-14T03:12:42.000Z | check/src/hello_hipfft.cpp | powderluv/rocm-build | db8b6f4cde075344aec91d7bf5b521905b42fb50 | [
"Apache-2.0"
] | 7 | 2020-09-28T03:43:21.000Z | 2022-03-20T16:17:10.000Z |
#include "hipfft.h"
char status_text[10] = "failure";
char* hipfft_status_to_string(hipfftResult status)
{
return status_text;
}
int main()
{
int v;
hipfftResult ret = hipfftGetVersion(&v);
if (ret != HIPFFT_SUCCESS) {
printf("[hipFFT] %s\n", hipfft_status_to_string(ret));
return... | 16 | 66 | 0.601563 | powderluv |
bee484b2f47911447f4b18cc3969f814711f38f1 | 2,411 | cpp | C++ | CSES/Range Queries/RangeMinimumQueriesOne.cpp | Anni1123/competitive-programming | bfcc72ff3379d09dee22f30f71751a32c0cc511b | [
"MIT"
] | 1 | 2021-04-03T13:33:00.000Z | 2021-04-03T13:33:00.000Z | CSES/Range Queries/RangeMinimumQueriesOne.cpp | iamsuryakant/competitive-programming | 413000f5bc4a627407e1335c35dcdbee516e8cc1 | [
"MIT"
] | null | null | null | CSES/Range Queries/RangeMinimumQueriesOne.cpp | iamsuryakant/competitive-programming | 413000f5bc4a627407e1335c35dcdbee516e8cc1 | [
"MIT"
] | 2 | 2021-01-23T14:35:48.000Z | 2021-03-15T05:04:24.000Z | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
using namespace std;
#define deb(x) cout << #x << " is " << x << "\n"
#define int long long
#define mod 1000000007
#define PI acos(-1)
template <typename T>
using min_heap = priority_queue<T, vector<T>, greater<T>>;
templ... | 24.353535 | 116 | 0.533389 | Anni1123 |
bee738c62c044dd3ba37258f3064e18c970801ef | 10,204 | cpp | C++ | main/src/deps/gpusurf/gpusurf/src/GpuSurfDetectorInternal.cpp | utiasASRL/vtr3 | b4edca56a19484666d3cdb25a032c424bdc6f19d | [
"Apache-2.0"
] | 32 | 2021-09-15T03:42:42.000Z | 2022-03-26T10:40:01.000Z | main/src/deps/gpusurf/gpusurf/src/GpuSurfDetectorInternal.cpp | shimp-t/vtr3 | bdcad784ffe26fabfa737d0e195bcb3bacb930c3 | [
"Apache-2.0"
] | 7 | 2021-09-18T19:18:15.000Z | 2022-02-02T11:15:40.000Z | main/src/deps/gpusurf/gpusurf/src/GpuSurfDetectorInternal.cpp | shimp-t/vtr3 | bdcad784ffe26fabfa737d0e195bcb3bacb930c3 | [
"Apache-2.0"
] | 7 | 2021-09-18T01:31:28.000Z | 2022-03-14T05:09:37.000Z | /*
Copyright (c) 2010, Paul Furgale and Chi Hay Tong
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list o... | 35.929577 | 196 | 0.71325 | utiasASRL |
beeb93d5b4d54e91b2df1aaf7e771edc7b7d30b9 | 5,541 | cc | C++ | ui/views/examples/fade_animation.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ui/views/examples/fade_animation.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | ui/views/examples/fade_animation.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 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 "ui/views/examples/fade_animation.h"
#include <algorithm>
#include <memory>
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_anim... | 39.021127 | 79 | 0.661974 | zealoussnow |
beecf202fb97492197ea0bf6e8f3bc2d61b77e93 | 948 | cpp | C++ | books/professionalCpp/overviews/enums.cpp | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | books/professionalCpp/overviews/enums.cpp | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | books/professionalCpp/overviews/enums.cpp | Bingwen-Hu/hackaway | 69727d76fd652390d9660e9ea4354ba5cc76dd5c | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
using namespace std;
// weak type enum, config the type
enum SurpasserType : unsigned int{
WindSurpasser = 0,
LandSurpasser,
WaterSurpasser,
FlameSurpasser,
LightningSurpasser,
LightSurpasser
};
// Strong type enum Note the class keyword
enum class SurpasserLevel {
... | 20.608696 | 52 | 0.586498 | Bingwen-Hu |
beef195f4976c9a5579a491c3e81570e2b5ca0fd | 490 | cpp | C++ | source/quantum-script-extension-url.amalgam.cpp | g-stefan/quantum-script-extension-url | 4226f12bb962bc04f91204c15b9ed19fb3e06f06 | [
"MIT",
"Unlicense"
] | null | null | null | source/quantum-script-extension-url.amalgam.cpp | g-stefan/quantum-script-extension-url | 4226f12bb962bc04f91204c15b9ed19fb3e06f06 | [
"MIT",
"Unlicense"
] | null | null | null | source/quantum-script-extension-url.amalgam.cpp | g-stefan/quantum-script-extension-url | 4226f12bb962bc04f91204c15b9ed19fb3e06f06 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Quantum Script Extension URL
//
// Copyright (c) 2020-2021 Grigore Stefan <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// MIT License (MIT) <http://opensource.org/licenses/MIT>
//
#include "quantum-script-extension-url.cpp"
#include "quantum-script-extension-url-copyright.c... | 28.823529 | 63 | 0.742857 | g-stefan |
beef410381b4d935cf10debc3666b7e1cada5d0f | 1,314 | cpp | C++ | lightoj/1263.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | lightoj/1263.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | lightoj/1263.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
#define le 1003
using namespace std;
bool vis[le], ck[le];
int mo[le];
set<int> st;
vector<int> v[le];
bool bfs(int a){
memset(vis, 0, sizeof(vis));
vis[a] = true;
ck[a] = true;
int n = 1, sum = mo[a];
queue<int> q;
q.push(a);
while(!q.empty()){
int p = q.front();
q.pop();... | 20.857143 | 59 | 0.424658 | cosmicray001 |
bef18a09af66acdd54a0ce56fbf0cc22d89b1c8d | 6,820 | hpp | C++ | pwiz/utility/bindings/CLI/common/Unimod.hpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 11 | 2015-01-08T08:33:44.000Z | 2019-07-12T06:14:54.000Z | pwiz/utility/bindings/CLI/common/Unimod.hpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 61 | 2015-05-27T11:20:11.000Z | 2019-12-20T15:06:21.000Z | pwiz/utility/bindings/CLI/common/Unimod.hpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 4 | 2016-02-03T09:41:16.000Z | 2021-08-01T18:42:36.000Z | //
// $Id: Unimod.hpp 4922 2013-09-05 22:33:08Z pcbrefugee $
//
//
// Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
//
// Copyright 2011 Vanderbilt University - Nashville, TN 37232
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in ... | 30.176991 | 137 | 0.673607 | edyp-lab |
bef402b28e565fad7a741a84b8726f92283cd1fe | 1,711 | cpp | C++ | src/common/PullCallback.cpp | ifplusor/rocketmq-client-cpp | fd301f4b064d5035fc72261023a396e2c9126c53 | [
"Apache-2.0"
] | 5 | 2019-04-24T13:37:05.000Z | 2021-01-29T16:37:55.000Z | src/common/PullCallback.cpp | ifplusor/rocketmq-client-cpp | fd301f4b064d5035fc72261023a396e2c9126c53 | [
"Apache-2.0"
] | null | null | null | src/common/PullCallback.cpp | ifplusor/rocketmq-client-cpp | fd301f4b064d5035fc72261023a396e2c9126c53 | [
"Apache-2.0"
] | 1 | 2021-02-03T03:11:03.000Z | 2021-02-03T03:11:03.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 You under the Apache License, Version 2.0
* (the "License"); you may ... | 32.903846 | 94 | 0.725891 | ifplusor |
bef8ccd5e5d75d6aceeff4a422e6fdb7f38122a8 | 9,013 | cpp | C++ | examples/ttn-otaa/ttn-otaa.cpp | xinabox/rpi-LMIC | 774d1484cd8951c9870dc98a1aff12c0c81c2718 | [
"MIT"
] | null | null | null | examples/ttn-otaa/ttn-otaa.cpp | xinabox/rpi-LMIC | 774d1484cd8951c9870dc98a1aff12c0c81c2718 | [
"MIT"
] | null | null | null | examples/ttn-otaa/ttn-otaa.cpp | xinabox/rpi-LMIC | 774d1484cd8951c9870dc98a1aff12c0c81c2718 | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restric... | 34.532567 | 138 | 0.629313 | xinabox |
befbe4b417cd1677d3df8fe69e74edda1dbe8cd2 | 362 | cpp | C++ | test/test.main.cpp | spjuanjoc/template_project_cpp | c52c1b9223bf7a8a8ef66f8bb278c91b5487f189 | [
"MIT"
] | 1 | 2021-12-29T10:11:53.000Z | 2021-12-29T10:11:53.000Z | test/test.main.cpp | spjuanjoc/template_project_cpp | c52c1b9223bf7a8a8ef66f8bb278c91b5487f189 | [
"MIT"
] | null | null | null | test/test.main.cpp | spjuanjoc/template_project_cpp | c52c1b9223bf7a8a8ef66f8bb278c91b5487f189 | [
"MIT"
] | null | null | null | /**
* @brief Defines the entry point for the tests.
*
* @author juan.castellanos
* @date 2021-06-28
*/
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch2/catch.hpp"
#include "fmt/core.h"
TEST_CASE("test the main", "[foo]")
{
fmt::print("Tes... | 20.111111 | 97 | 0.649171 | spjuanjoc |
befff457b2857aef240df5b23d325b57640c0c0e | 919 | cpp | C++ | tests/sslstreaming.cpp | doa379/libsockpp | f45b3335fbbd53edc6ee6f8b110fc9f9cba2b38c | [
"MIT"
] | null | null | null | tests/sslstreaming.cpp | doa379/libsockpp | f45b3335fbbd53edc6ee6f8b110fc9f9cba2b38c | [
"MIT"
] | null | null | null | tests/sslstreaming.cpp | doa379/libsockpp | f45b3335fbbd53edc6ee6f8b110fc9f9cba2b38c | [
"MIT"
] | null | null | null | #include <iostream>
#include <libsockpp/sock.h>
static const char HOST[] { "localhost" };
static const char PORT[] { "4433" };
// Remember to generate a set of pems
// $ openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /tmp/key.pem -out /tmp/cert.pem
int main(int ARGC, char *ARGV[])
{
sockpp::Cb cb { []... | 27.029412 | 96 | 0.594124 | doa379 |
8305f9fa1120af9344ce35e471f2ccd35e2aa9ca | 974 | cpp | C++ | examples/multithreading/game/triggers.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 58 | 2015-08-09T14:56:35.000Z | 2022-01-15T22:06:58.000Z | examples/multithreading/game/triggers.cpp | mamontov-cpp/saddy-graphics-engine-2d | e25a6637fcc49cb26614bf03b70e5d03a3a436c7 | [
"BSD-2-Clause"
] | 245 | 2015-08-08T08:44:22.000Z | 2022-01-04T09:18:08.000Z | examples/multithreading/game/triggers.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 23 | 2015-12-06T03:57:49.000Z | 2020-10-12T14:15:50.000Z | #include "triggers.h"
#include "player.h"
#include "../game.h"
#include <log/log.h>
void game::Triggers::add(double x, const sad::dukpp03::CompiledFunction& func, bool once)
{
m_triggers << game::Triggers::Data(x, func, once);
}
void game::Triggers::clear()
{
m_triggers.clear();
}
void game::Triggers::tryRu... | 24.974359 | 89 | 0.517454 | mamontov-cpp |
8306951b2205f038a53bb813f4f6b4bc5acd27a0 | 9,672 | hpp | C++ | external/include/mapnik/enumeration.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | external/include/mapnik/enumeration.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | null | null | null | external/include/mapnik/enumeration.hpp | Wujingli/OpenWebGlobeDataProcessing | 932eaa00c81fc0571122bc618ade010fa255735e | [
"MIT"
] | 2 | 2019-06-08T15:59:26.000Z | 2021-02-06T08:13:01.000Z | /*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 28.280702 | 98 | 0.541977 | Wujingli |
8306aebebd21dce0d5dad909167f917f0bc6e680 | 1,074 | hpp | C++ | smart_tales_ii/game/obstacle/base/gestureobstacle.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | null | null | null | smart_tales_ii/game/obstacle/base/gestureobstacle.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | 11 | 2018-02-08T14:50:16.000Z | 2022-01-21T19:54:24.000Z | smart_tales_ii/game/obstacle/base/gestureobstacle.hpp | TijmenUU/smarttalesii | c3a9c90bc2385e21e6fe4aa1cfda550edf6e20ba | [
"CC-BY-3.0",
"CC-BY-4.0"
] | null | null | null | /*
gestureobstacle.hpp
Expanded base obstacle with support for gestures
Defines the logic for how the gesture obstacle
is neutralized by user input.
This class is virtual.
*/
#pragma once
#include "baseobstacle.hpp"
namespace Obstacle
{
enum class GestureType : uint8_t
{
None = 0,
InProgress = 1,
Tap ... | 21.48 | 75 | 0.744879 | TijmenUU |
8306e55296b6898502854fbbb8b28de2107b1618 | 579 | cpp | C++ | 3_memory_mgmt/3_smart_pointers/05_scopes.cpp | aalfianrachmat/CppND-practice | 6c35141c106b9fa867392a846b35c482ded74e62 | [
"MIT"
] | 27 | 2019-10-08T13:43:32.000Z | 2021-08-30T08:00:28.000Z | 3_memory_mgmt/3_smart_pointers/05_scopes.cpp | aalfianrachmat/CppND-practice | 6c35141c106b9fa867392a846b35c482ded74e62 | [
"MIT"
] | 1 | 2020-10-11T23:20:15.000Z | 2020-10-11T23:20:15.000Z | 3_memory_mgmt/3_smart_pointers/05_scopes.cpp | aalfianrachmat/CppND-practice | 6c35141c106b9fa867392a846b35c482ded74e62 | [
"MIT"
] | 14 | 2019-09-22T15:17:59.000Z | 2021-07-13T06:06:37.000Z | #include <iostream>
int var = 5; // global varible
namespace test
{
int var = 3; // namespace variable
}
void func() {
int var = 7; // function variable
std::cout << "Function variable : " << var << std::endl;
}
int main() {
int var = 10; // local variable
std::cout << "Global va... | 22.269231 | 80 | 0.56304 | aalfianrachmat |
83072cb43898916d3743e26aa338b26eb36506f2 | 1,967 | hpp | C++ | KFContrib/KFGlobal/KFUuidData.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFContrib/KFGlobal/KFUuidData.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFContrib/KFGlobal/KFUuidData.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #ifndef __KF_UUID_DATA_H__
#define __KF_UUID_DATA_H__
#include "KFInclude.h"
namespace KFrame
{
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////... | 34.508772 | 116 | 0.32181 | 282951387 |
830ac61c663150df5030e6ddbc6ed00e59f036b4 | 1,482 | hpp | C++ | Plugin/Source/AudioFeatureExtractor.hpp | eupston/Deepbox | cdb0ba9a3de3a81672a9fc3610e60da9773d9ddd | [
"MIT"
] | 4 | 2020-06-02T01:15:52.000Z | 2022-01-09T22:50:30.000Z | Plugin/Source/AudioFeatureExtractor.hpp | eupston/Deepbox | cdb0ba9a3de3a81672a9fc3610e60da9773d9ddd | [
"MIT"
] | 7 | 2020-01-28T23:13:02.000Z | 2022-02-10T00:31:03.000Z | Plugin/Source/AudioFeatureExtractor.hpp | eupston/Deepbox | cdb0ba9a3de3a81672a9fc3610e60da9773d9ddd | [
"MIT"
] | 2 | 2020-05-04T14:10:49.000Z | 2020-06-02T01:17:10.000Z | //
// AudioFeatureExtractor.hpp
// DrumPad
//
// Created by eugene upston on 8/17/19.
//
#ifndef AudioFeatureExtractor_hpp
#define AudioFeatureExtractor_hpp
#include <stdio.h>
#include <vector>
#include <essentia/algorithmfactory.h>
#include <essentia/essentiamath.h>
#include <essentia/pool.h>
using namespace ess... | 22.454545 | 79 | 0.723347 | eupston |
830b3ff3f2f8e1e302deeabe0d55678ddb462f16 | 120 | cpp | C++ | Engine/Source/Frame/HdrOperator/HdrOperator.cpp | jasonoscar88/Photon-v2 | 90649196c436261d28cc2300511b78ac88236448 | [
"MIT"
] | 88 | 2017-01-21T18:20:16.000Z | 2021-12-21T02:32:04.000Z | Engine/Source/Frame/HdrOperator/HdrOperator.cpp | jasonoscar88/Photon-v2 | 90649196c436261d28cc2300511b78ac88236448 | [
"MIT"
] | 72 | 2017-07-28T10:00:35.000Z | 2021-11-09T18:36:23.000Z | Engine/Source/Frame/HdrOperator/HdrOperator.cpp | jasonoscar88/Photon-v2 | 90649196c436261d28cc2300511b78ac88236448 | [
"MIT"
] | 8 | 2017-03-19T12:19:10.000Z | 2020-05-19T15:15:05.000Z | #include "Frame/HdrOperator/HdrOperator.h"
namespace ph
{
HdrOperator::~HdrOperator() = default;
}// end namespace ph | 15 | 42 | 0.741667 | jasonoscar88 |
830e6e5c2140862e8a1da4912723461b5b3a66aa | 2,116 | cpp | C++ | JAF_Ultrasonic/JAF_Ultrasonic/src/_micro-api/libraries/JAF_UltrasonicLib/src/JAF_UltrasonicLib.cpp | jafossum/ArduinoLibraries | 2ebbf90faa94b1bb50f89e655f3c93414944c40d | [
"MIT"
] | null | null | null | JAF_Ultrasonic/JAF_Ultrasonic/src/_micro-api/libraries/JAF_UltrasonicLib/src/JAF_UltrasonicLib.cpp | jafossum/ArduinoLibraries | 2ebbf90faa94b1bb50f89e655f3c93414944c40d | [
"MIT"
] | null | null | null | JAF_Ultrasonic/JAF_Ultrasonic/src/_micro-api/libraries/JAF_UltrasonicLib/src/JAF_UltrasonicLib.cpp | jafossum/ArduinoLibraries | 2ebbf90faa94b1bb50f89e655f3c93414944c40d | [
"MIT"
] | null | null | null | /*
Name: JAF_UltrasonicLib.cpp
Created: 1/19/2016 8:06:39 PM
Author: JohnF
Editor: http://www.visualmicro.com
*/
#include "JAF_UltrasonicLib.h"
// Pointer to _instance
JAF_UltrasonicLib *JAF_UltrasonicLib::_instance = NULL;
#pragma region Constructor
// Constructor. Setting instance pointer to this
JAF_Ultrason... | 23.252747 | 85 | 0.726371 | jafossum |
8312977ba244abcaeccdadeb0aca150f683e8e8e | 796 | cpp | C++ | src/reguladorwatt.cpp | pirobtumen/UGR_IG | 8492d6c8a68e2151cc18103f0168a078afb46c3b | [
"MIT"
] | null | null | null | src/reguladorwatt.cpp | pirobtumen/UGR_IG | 8492d6c8a68e2151cc18103f0168a078afb46c3b | [
"MIT"
] | null | null | null | src/reguladorwatt.cpp | pirobtumen/UGR_IG | 8492d6c8a68e2151cc18103f0168a078afb46c3b | [
"MIT"
] | null | null | null | // Informática Gráfica
//
// Alberto Sola - 2016
// -----------------------------------------------------------------------------
#include "reguladorwatt.hpp"
// -----------------------------------------------------------------------------
Base Watt::base;
Body Watt::body;
// ---------------------------------------... | 22.111111 | 80 | 0.324121 | pirobtumen |
8312c46e4175afa3e3b22592a960ab7a184e6957 | 173,512 | cpp | C++ | src/examRoutines.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 7 | 2017-07-12T11:15:54.000Z | 2021-10-29T18:33:33.000Z | src/examRoutines.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 18 | 2017-05-16T03:48:45.000Z | 2022-03-16T19:51:26.000Z | src/examRoutines.cpp | tmilev/calculator | e39280f23975241985393651fe7a52db5c7fd1d5 | [
"Apache-2.0"
] | 1 | 2018-08-02T09:05:08.000Z | 2018-08-02T09:05:08.000Z | // The current file is licensed under the license terms found in the main header file "calculator.h".
// For additional information refer to the file "calculator.h".
#include "calculator_inner_functions.h"
#include "calculator_html_functions.h"
#include "database.h"
#include "general_time_date.h"
#include "calculator_h... | 38.387611 | 137 | 0.704314 | tmilev |
23fedab0e03fc589615f011678fb317abafd7eb0 | 840 | cpp | C++ | src/glfw-cxx/GammaRamp.cpp | Mischa-Alff/glfw-cxx | bd335a7c5ac959da0ea1ac009a66b75ada21efb6 | [
"MIT"
] | 12 | 2015-07-05T15:07:26.000Z | 2020-07-10T03:15:56.000Z | src/glfw-cxx/GammaRamp.cpp | TheRealJoe24/glfw-cxx | bd335a7c5ac959da0ea1ac009a66b75ada21efb6 | [
"MIT"
] | 1 | 2016-08-10T16:49:13.000Z | 2016-08-19T18:23:04.000Z | src/glfw-cxx/GammaRamp.cpp | TheRealJoe24/glfw-cxx | bd335a7c5ac959da0ea1ac009a66b75ada21efb6 | [
"MIT"
] | 3 | 2017-04-24T14:33:46.000Z | 2019-06-15T22:15:22.000Z | #include <glfw-cxx/GammaRamp.hpp>
namespace glfw
{
unsigned short* GammaRamp::GetRed()
{
return m_gammaramp.red;
}
void GammaRamp::SetRed(unsigned short* red)
{
m_gammaramp.red = red;
}
unsigned short* GammaRamp::GetGreen()
{
return m_gammaramp.green;
}
void GammaRamp::SetGreen(unsigned short* green... | 15.555556 | 74 | 0.705952 | Mischa-Alff |
9b00611b2ea7c84a162cb3dc1282a41c055ad8df | 1,501 | hpp | C++ | Raylib/include/Gamepad.hpp | MitchellRB/Pathfinding | 65be4ab55489fb79c98fdbd86e88c2e2e70d7105 | [
"MIT"
] | null | null | null | Raylib/include/Gamepad.hpp | MitchellRB/Pathfinding | 65be4ab55489fb79c98fdbd86e88c2e2e70d7105 | [
"MIT"
] | null | null | null | Raylib/include/Gamepad.hpp | MitchellRB/Pathfinding | 65be4ab55489fb79c98fdbd86e88c2e2e70d7105 | [
"MIT"
] | null | null | null | #ifndef RAYLIB_CPP_GAMEPAD_HPP_
#define RAYLIB_CPP_GAMEPAD_HPP_
#include <string>
#ifdef __cplusplus
extern "C"{
#endif
#include "raylib.h"
#ifdef __cplusplus
}
#endif
#include "./raylib-cpp-utils.hpp"
namespace raylib {
class Gamepad {
public:
Gamepad(int gamepadNumber = 0) {
set(gamepadNumber);
}
int n... | 19.75 | 52 | 0.686875 | MitchellRB |
9b02408d2961dc099ebe068a3b2a2a77d67fc4bc | 4,297 | cpp | C++ | cplusplus/TDD/src/tdd-QbLzwDictionary.cpp | abaquesoftware/QbGifBuilder | 2fae881308beb60def50e494feaa119e417fadfe | [
"MIT"
] | null | null | null | cplusplus/TDD/src/tdd-QbLzwDictionary.cpp | abaquesoftware/QbGifBuilder | 2fae881308beb60def50e494feaa119e417fadfe | [
"MIT"
] | null | null | null | cplusplus/TDD/src/tdd-QbLzwDictionary.cpp | abaquesoftware/QbGifBuilder | 2fae881308beb60def50e494feaa119e417fadfe | [
"MIT"
] | null | null | null | #include <catch/catch.hpp>
#include "QbGifBuilder/include/QbLzwDecoder.h"
using namespace std;
using namespace Catch::Matchers;
TEST_CASE( "Constructor and getters", "[QbLzwDictionary]" ) {
QbLzwDictionary test1(8);
QbLzwDictionary test2(7);
CHECK(test1.getInitialCodeWidth() == 8);
CHECK(test1.getEntryMapSiz... | 37.692982 | 89 | 0.616011 | abaquesoftware |
9b02f7607108666b76bb6a08bdd681959fe7deab | 3,624 | cpp | C++ | Program2/src/App.cpp | PawelWieczorek/MuditaTask | dd4786beee6853205df067709c5f73e32c6ca89a | [
"Unlicense"
] | null | null | null | Program2/src/App.cpp | PawelWieczorek/MuditaTask | dd4786beee6853205df067709c5f73e32c6ca89a | [
"Unlicense"
] | null | null | null | Program2/src/App.cpp | PawelWieczorek/MuditaTask | dd4786beee6853205df067709c5f73e32c6ca89a | [
"Unlicense"
] | null | null | null | //
// Created by pawel on 04.05.20.
//
#include "../include/App.h"
App::App(const std::string fifo_1to2, const std::string fifo_2to1) : fifo_1to2_name(fifo_1to2), fifo_2to1_name(fifo_2to1)
{
fifo_2to1_write = nullptr;
fifo_1to2_read = nullptr;
App::isOpen = true;
App::readingFromFifo = true;
App:... | 20.590909 | 121 | 0.594647 | PawelWieczorek |
9b04af6a7f544db35456ffaccc7877b12112175b | 1,976 | hpp | C++ | src/Calendar/MonthlyCalendar.hpp | pokorj54/Command-line-calendar | de2c8a89917bd4cb69547427a6ec1bced218c5ad | [
"MIT"
] | null | null | null | src/Calendar/MonthlyCalendar.hpp | pokorj54/Command-line-calendar | de2c8a89917bd4cb69547427a6ec1bced218c5ad | [
"MIT"
] | null | null | null | src/Calendar/MonthlyCalendar.hpp | pokorj54/Command-line-calendar | de2c8a89917bd4cb69547427a6ec1bced218c5ad | [
"MIT"
] | null | null | null | #ifndef MonthlyCalendar_3837d1b6871845d09187dff8161117e6
#define MonthlyCalendar_3837d1b6871845d09187dff8161117e6
#include "Calendar.hpp"
#include "../Event/Event.hpp"
#include "../Event/EventContainer.hpp"
#include <iostream>
/**
* @brief Represents Calendar that can show events in selected month
*
*/
class Mon... | 31.365079 | 96 | 0.607287 | pokorj54 |
9b04f8c40d6e3b94d9d1c0326b6fe21080295ff0 | 5,041 | cpp | C++ | src/LLAPI/Renderer/OpenGL/RenderWindow_windows64.cpp | bluespeck/OakVR | 65d56942af390dc2ab2d969b44285d23bd53f139 | [
"MIT"
] | null | null | null | src/LLAPI/Renderer/OpenGL/RenderWindow_windows64.cpp | bluespeck/OakVR | 65d56942af390dc2ab2d969b44285d23bd53f139 | [
"MIT"
] | null | null | null | src/LLAPI/Renderer/OpenGL/RenderWindow_windows64.cpp | bluespeck/OakVR | 65d56942af390dc2ab2d969b44285d23bd53f139 | [
"MIT"
] | null | null | null |
#include "Common.h"
#include "Renderer/Renderer/RenderWindow.h"
#include "Renderer/Renderer/Renderer.h"
#include "Log/Log.h"
namespace oakvr
{
namespace render
{
void OnCloseWindow(GLFWwindow *pWindow)
{
glfwHideWindow(pWindow);
}
class RenderWindow::RenderWindowImpl
{
public:
GLFWwindow *m_pWin... | 30.737805 | 178 | 0.510018 | bluespeck |
9b0578568e3111b933a96cd164594419d8a7fbca | 384 | cpp | C++ | TAO/examples/Callback_Quoter/supplier.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/examples/Callback_Quoter/supplier.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/examples/Callback_Quoter/supplier.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // $Id: supplier.cpp 79317 2007-08-11 17:28:39Z sowayaa $
#include "Supplier_i.h"
// This function runs the Callback Quoter Supplier daemon.
int
ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
Supplier supplier;
ACE_DEBUG ((LM_DEBUG,
"\n\tMarket Status Supplier Daemon\n\n"));
if (supplier.init (argc, a... | 19.2 | 58 | 0.653646 | cflowe |
9b066ece3e949e7a90bee638f6c594ffc3e0d5f9 | 1,343 | cpp | C++ | examples/google-code-jam/slowpoke/GCJ2017Q-C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/slowpoke/GCJ2017Q-C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/slowpoke/GCJ2017Q-C.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
using namespace std;
void comp(int tc){
unsigned long long n, k;
cin >> n >> k;
unsigned long long lowC = 0, hiC = 1, nlowC = 0, nhiC = 0, lowV = n-1, hiV = n, count = 0;
unsigned long long ans;
while(true){
if(count + hiC + lowC >= k){
... | 20.044776 | 94 | 0.323902 | rbenic-fer |
9b0b8ddbd44045d563b7134ff7b3edbb095c0433 | 457 | inl | C++ | node_modules/lzz-gyp/lzz-source/util_Table.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/util_Table.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/util_Table.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // util_Table.inl
//
#ifdef LZZ_ENABLE_INLINE
#define LZZ_INLINE inline
#else
#define LZZ_INLINE
#endif
namespace util
{
LZZ_INLINE TableNode::TableNode (size_t handle, size_t bit_mask)
: handle (handle), bit_mask (bit_mask)
{}
}
namespace util
{
LZZ_INLINE size_t Table::get_fdb_mask (size_t handle1, size_... | 18.28 | 72 | 0.656455 | SuperDizor |
9b0ebe0eaf89da27820516ce270161f4d3a6a648 | 1,922 | cpp | C++ | archive/3/januszex.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/3/januszex.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/3/januszex.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef int I;
struct Span {
I a, b;
Span(I a, I b) : a(a), b(b) {};
bool operator<(const Span &other) {
return a < other.a;
};
};
int main()
{
char JANUSZEX[] = "januszex";
I EIGHT = sizeof(JANUSZEX) - 1;
I n, m;
scanf("%i %i"... | 19.814433 | 134 | 0.349636 | Aleshkev |
9b0f6073ca1ca1795e0a0db7310b3bd88803b76c | 2,348 | hpp | C++ | include/topicregistry-stl.hpp | google/detectorgraph | d6c923f8e495a21137312b236e35c36a55d3a755 | [
"Apache-2.0"
] | 43 | 2018-05-17T07:13:18.000Z | 2022-02-02T01:54:06.000Z | include/topicregistry-stl.hpp | google/detectorgraph | d6c923f8e495a21137312b236e35c36a55d3a755 | [
"Apache-2.0"
] | 4 | 2018-09-20T04:14:11.000Z | 2018-09-21T08:05:33.000Z | include/topicregistry-stl.hpp | google/detectorgraph | d6c923f8e495a21137312b236e35c36a55d3a755 | [
"Apache-2.0"
] | 12 | 2018-05-17T09:03:31.000Z | 2020-10-13T16:38:15.000Z | // Copyright 2017 Nest Labs, 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 t... | 30.102564 | 76 | 0.691227 | google |
9b13709bccd72d1e0d9c82e2c7f4aa19c1939a81 | 6,580 | cpp | C++ | src/Misc/MatchHistoryEntry.cpp | BigETI/WhackAStoodentServer | 05c670a9b745262ae926aebcb1fce0f1ecc5f4d2 | [
"MIT"
] | 1 | 2021-04-28T20:32:57.000Z | 2021-04-28T20:32:57.000Z | src/Misc/MatchHistoryEntry.cpp | BigETI/WhackAStoodentServer | 05c670a9b745262ae926aebcb1fce0f1ecc5f4d2 | [
"MIT"
] | 7 | 2021-08-24T14:09:33.000Z | 2021-08-30T12:47:40.000Z | src/Misc/MatchHistoryEntry.cpp | BigETI/WhackAStoodentServer | 05c670a9b745262ae926aebcb1fce0f1ecc5f4d2 | [
"MIT"
] | null | null | null | #include <Misc/MatchHistoryEntry.hpp>
#include <Static/NumericSerializer.hpp>
#include <Static/StringSerializer.hpp>
/// <summary>
/// Constructs a match history entry
/// </summary>
WhackAStoodentServer::MatchHistoryEntry::MatchHistoryEntry() :
yourScore(static_cast<std::int64_t>(0)),
yourRole(WhackAStoodentServer:... | 34.814815 | 264 | 0.780091 | BigETI |
9b14e3bf90159387c623741a8c0fd72741057162 | 15,646 | cpp | C++ | HomeController/RGB3ChController.cpp | Yurik72/ESPHomeController | 89561ee27c4e8d847dc1c3d6505dfc6436514a91 | [
"MIT"
] | 24 | 2019-03-02T20:21:15.000Z | 2022-01-04T18:34:05.000Z | HomeController/RGB3ChController.cpp | Yurik72/ESPHomeController | 89561ee27c4e8d847dc1c3d6505dfc6436514a91 | [
"MIT"
] | null | null | null | HomeController/RGB3ChController.cpp | Yurik72/ESPHomeController | 89561ee27c4e8d847dc1c3d6505dfc6436514a91 | [
"MIT"
] | 5 | 2019-09-20T10:11:22.000Z | 2021-12-10T05:12:31.000Z | #include <Arduino.h>
#include <ArduinoJson.h>
#include "config.h"
#include "Utilities.h"
#include "BaseController.h"
#include "RGB3ChController.h"
#include <Ticker.h>
#ifndef DISABLE_RGB
REGISTER_CONTROLLER_FACTORY(RGB3ChController)
#endif
const size_t bufferSize = JSON_OBJECT_SIZE(40);
static String rgbModes;
///... | 27.790409 | 137 | 0.707337 | Yurik72 |
9b1bedc066b51ce44fa2e69d9905e7db808aa3dc | 1,879 | hpp | C++ | src/rstd/iter/iter_decl.hpp | agerasev/cpp-rstd | cb4dcb510c4b3d562f7fed0d9eaa3eca94c9db36 | [
"MIT"
] | null | null | null | src/rstd/iter/iter_decl.hpp | agerasev/cpp-rstd | cb4dcb510c4b3d562f7fed0d9eaa3eca94c9db36 | [
"MIT"
] | null | null | null | src/rstd/iter/iter_decl.hpp | agerasev/cpp-rstd | cb4dcb510c4b3d562f7fed0d9eaa3eca94c9db36 | [
"MIT"
] | null | null | null | #pragma once
#include <type_traits>
#include <rstd/prelude.hpp>
namespace rstd {
namespace iter {
template <
typename T, typename I, typename F,
typename R=std::invoke_result_t<F, T &&>
>
class Map;
template <
typename T, typename I, typename F,
typename R=option_some_type<std::invoke_result_t<F, T... | 19.989362 | 67 | 0.718467 | agerasev |
9b1c6de15df2f536ba47a89f82d36a0ff50556e2 | 623 | cpp | C++ | searchcore/src/vespa/searchcore/proton/server/operationdonecontext.cpp | alexeyche/vespa | 7585981b32937d2b13da1a8f94b42c8a0833a4c2 | [
"Apache-2.0"
] | null | null | null | searchcore/src/vespa/searchcore/proton/server/operationdonecontext.cpp | alexeyche/vespa | 7585981b32937d2b13da1a8f94b42c8a0833a4c2 | [
"Apache-2.0"
] | null | null | null | searchcore/src/vespa/searchcore/proton/server/operationdonecontext.cpp | alexeyche/vespa | 7585981b32937d2b13da1a8f94b42c8a0833a4c2 | [
"Apache-2.0"
] | null | null | null | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "operationdonecontext.h"
#include <vespa/searchcore/proton/common/feedtoken.h>
namespace proton {
OperationDoneContext::OperationDoneContext(std::shared_ptr<feedtoken::IState> token, std::shared_ptr<vesp... | 25.958333 | 146 | 0.75923 | alexeyche |
9b1ca492417e20f6cda0ba7362c3c7cf942baea4 | 3,989 | inl | C++ | main/src/vtr_pose_graph/include/vtr_pose_graph/index/graph.inl | utiasASRL/vtr3 | b4edca56a19484666d3cdb25a032c424bdc6f19d | [
"Apache-2.0"
] | 32 | 2021-09-15T03:42:42.000Z | 2022-03-26T10:40:01.000Z | main/src/vtr_pose_graph/include/vtr_pose_graph/index/graph.inl | shimp-t/vtr3 | bdcad784ffe26fabfa737d0e195bcb3bacb930c3 | [
"Apache-2.0"
] | 7 | 2021-09-18T19:18:15.000Z | 2022-02-02T11:15:40.000Z | main/src/vtr_pose_graph/include/vtr_pose_graph/index/graph.inl | shimp-t/vtr3 | bdcad784ffe26fabfa737d0e195bcb3bacb930c3 | [
"Apache-2.0"
] | 7 | 2021-09-18T01:31:28.000Z | 2022-03-14T05:09:37.000Z | // Copyright 2021, Autonomous Space Robotics Lab (ASRL)
//
// 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 appli... | 28.091549 | 79 | 0.667335 | utiasASRL |
9b1f3c8f6b12dd6736b1787d0ac4218a2b71891d | 1,207 | cpp | C++ | accera/python/lib/src/main.cpp | lisaong/Accera | 56967249356ab2fefd80baebf5ac259e958a7dbd | [
"MIT"
] | 19 | 2022-01-26T18:12:54.000Z | 2022-03-25T10:37:21.000Z | accera/python/lib/src/main.cpp | lisaong/Accera | 56967249356ab2fefd80baebf5ac259e958a7dbd | [
"MIT"
] | 4 | 2022-01-28T00:31:48.000Z | 2022-02-25T14:28:32.000Z | accera/python/lib/src/main.cpp | lisaong/Accera | 56967249356ab2fefd80baebf5ac259e958a7dbd | [
"MIT"
] | 2 | 2022-01-26T14:14:45.000Z | 2022-02-01T06:08:17.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
////////////////////////////////////////////////////////////////... | 28.069767 | 100 | 0.584093 | lisaong |
9b2084954c4b4577cd80c2acc313d0b747ab1f93 | 6,190 | cpp | C++ | src/libtego/source/core/ContactsManager.cpp | blueprint-freespeech/r2-rebound | 65efe5bcea7c1222d0eef4ce447d3bebfee37779 | [
"BSD-3-Clause"
] | 1 | 2019-06-10T11:05:15.000Z | 2019-06-10T11:05:15.000Z | src/libtego/source/core/ContactsManager.cpp | blueprint-freespeech/r2-rebound | 65efe5bcea7c1222d0eef4ce447d3bebfee37779 | [
"BSD-3-Clause"
] | null | null | null | src/libtego/source/core/ContactsManager.cpp | blueprint-freespeech/r2-rebound | 65efe5bcea7c1222d0eef4ce447d3bebfee37779 | [
"BSD-3-Clause"
] | null | null | null | /* Ricochet - https://ricochet.im/
* Copyright (C) 2014, John Brooks <john.brooks@dereferenced.net>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above ... | 32.408377 | 120 | 0.718901 | blueprint-freespeech |
9b29736710c795d6ff7427b3acbe40f5573b344e | 180,019 | cpp | C++ | yocto/yocto_shape.cpp | erez-o/yocto-gl | b722ae746433369ec891a5cd5b1975953951c491 | [
"MIT"
] | 2 | 2020-10-16T06:05:27.000Z | 2021-03-31T03:58:56.000Z | yocto/yocto_shape.cpp | erez-o/yocto-gl | b722ae746433369ec891a5cd5b1975953951c491 | [
"MIT"
] | null | null | null | yocto/yocto_shape.cpp | erez-o/yocto-gl | b722ae746433369ec891a5cd5b1975953951c491 | [
"MIT"
] | null | null | null | //
// Implementation for Yocto/Shape
//
// -----------------------------------------------------------------------------
// INCLUDES
// -----------------------------------------------------------------------------
#include "yocto_shape.h"
#include "ext/happly.h"
#include "yocto_obj.h"
#include "yocto_random.h"
#incl... | 42.437294 | 85 | 0.602442 | erez-o |
9b2c70f26456cda2343b43531168c6bbe49b8985 | 2,174 | cpp | C++ | stdlib/imgproc/image_encoder_kernel_cpu.cpp | keunhong/scanner | d6439d18b2a363f3cd5e34e12d416bd1e97449fa | [
"Apache-2.0"
] | 1 | 2018-12-05T07:17:49.000Z | 2018-12-05T07:17:49.000Z | stdlib/imgproc/image_encoder_kernel_cpu.cpp | quanhua92/scanner | e14153c18078f707fe1b487c0cffb95d6997d737 | [
"Apache-2.0"
] | null | null | null | stdlib/imgproc/image_encoder_kernel_cpu.cpp | quanhua92/scanner | e14153c18078f707fe1b487c0cffb95d6997d737 | [
"Apache-2.0"
] | 1 | 2018-10-05T21:37:11.000Z | 2018-10-05T21:37:11.000Z | #include "scanner/api/kernel.h"
#include "scanner/api/op.h"
#include "scanner/util/memory.h"
#include "scanner/util/opencv.h"
#include "stdlib/stdlib.pb.h"
namespace scanner {
class ImageEncoderKernel : public BatchedKernel, public VideoKernel {
public:
ImageEncoderKernel(const KernelConfig& config) : BatchedKerne... | 30.194444 | 80 | 0.655014 | keunhong |
9b2dc2f67702a3457ff509829249237ce4e09333 | 15,601 | cpp | C++ | vwgen.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 12 | 2019-06-07T10:06:41.000Z | 2021-03-22T22:13:59.000Z | vwgen.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 1 | 2019-05-09T07:38:12.000Z | 2019-07-10T04:20:55.000Z | vwgen.cpp | RDamman/SpeakerWorkshop | 87a38d04197a07a9a7878b3f60d5e0706782163c | [
"OML"
] | 3 | 2020-09-08T08:27:33.000Z | 2021-05-13T09:25:43.000Z | // audtevw.cpp : implementation of the CAudGenView class
//
#include "stdafx.h"
#include "Audtest.h"
#include "audtedoc.h"
#include "vwGen.h"
#include "Chart.h"
#include "xform.h"
#include "xformall.h"
#include "generat.h"
#include "dataset.h"
#include "zFormEdt.h"
#include "dlgRenam.h"
#include "dlgRecor.h"
#inc... | 24.881978 | 85 | 0.561887 | RDamman |
9b2e3e86a6d2f613704c96e935e7e067bc145360 | 170 | cpp | C++ | toggleConsoleVisibility/toggleConsoleVisibility.cpp | FreeSoftwareDevlopment/play-something-with-windows-api | f5a4341a7cafd8a36430127d913bafe1eb21bc68 | [
"MIT"
] | null | null | null | toggleConsoleVisibility/toggleConsoleVisibility.cpp | FreeSoftwareDevlopment/play-something-with-windows-api | f5a4341a7cafd8a36430127d913bafe1eb21bc68 | [
"MIT"
] | null | null | null | toggleConsoleVisibility/toggleConsoleVisibility.cpp | FreeSoftwareDevlopment/play-something-with-windows-api | f5a4341a7cafd8a36430127d913bafe1eb21bc68 | [
"MIT"
] | null | null | null | #include <Windows.h>
int main()
{
HWND ConsoleWindow{ GetConsoleWindow() };
ShowWindow(ConsoleWindow, (IsWindowVisible(ConsoleWindow) == TRUE) ? SW_HIDE : SW_SHOW);
}
| 21.25 | 89 | 0.729412 | FreeSoftwareDevlopment |
9b2f117d28bcd33f3d11a51e57db4bac970dd701 | 165 | cpp | C++ | src/logging/Console_logger.cpp | Swassie/dcmed | eb0225d991715b10bace2b96103c3fd98fe83c29 | [
"BSD-3-Clause"
] | null | null | null | src/logging/Console_logger.cpp | Swassie/dcmed | eb0225d991715b10bace2b96103c3fd98fe83c29 | [
"BSD-3-Clause"
] | null | null | null | src/logging/Console_logger.cpp | Swassie/dcmed | eb0225d991715b10bace2b96103c3fd98fe83c29 | [
"BSD-3-Clause"
] | 1 | 2021-05-10T08:54:39.000Z | 2021-05-10T08:54:39.000Z | #include "logging/Console_logger.h"
#include <iostream>
void Console_logger::log(const std::string& message, Log_level) {
std::cout << message << std::endl;
}
| 20.625 | 65 | 0.70303 | Swassie |
9b374ba0a6c686002f0eca1a0c1dd5cb114772d1 | 7,415 | hpp | C++ | inc/UI/Flyout.hpp | barne856/3DSWMM | 60dd2702c82857dcf4358b8d42a1fb430a568e90 | [
"MIT"
] | null | null | null | inc/UI/Flyout.hpp | barne856/3DSWMM | 60dd2702c82857dcf4358b8d42a1fb430a568e90 | [
"MIT"
] | null | null | null | inc/UI/Flyout.hpp | barne856/3DSWMM | 60dd2702c82857dcf4358b8d42a1fb430a568e90 | [
"MIT"
] | null | null | null | #ifndef FLYOUT
#define FLYOUT
#include "Application/Application.hpp"
#include "Meshes/Rectangle.hpp"
#include "Meshes/Circle.hpp"
#include "Materials/Flat.hpp"
#include "Materials/VertexColor.hpp"
#include "Application/Renderer.hpp"
#include "Application/Tool.hpp"
#include <iostream>
class Flyout : public UIElement
... | 34.649533 | 188 | 0.5706 | barne856 |
9b375bed377bbfad92fe45e67a9d15ad256b5764 | 10,394 | cc | C++ | chrome/installer/setup/setup.cc | bluebellzhy/chromium | 008c4fef2676506869a0404239da31e83fd6ccc7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T15:35:17.000Z | 2016-05-08T15:35:17.000Z | chrome/installer/setup/setup.cc | bluebellzhy/chromium | 008c4fef2676506869a0404239da31e83fd6ccc7 | [
"BSD-3-Clause"
] | null | null | null | chrome/installer/setup/setup.cc | bluebellzhy/chromium | 008c4fef2676506869a0404239da31e83fd6ccc7 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2006-2008 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 <shlobj.h>
#include "chrome/installer/setup/setup.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/path_se... | 43.85654 | 80 | 0.683567 | bluebellzhy |
9b386d1553801bd7f598e20bdd04f360c7ec083b | 571 | hh | C++ | src/http/http_server_connection.hh | sharixos/libevent-cpp | 01b62cdb61a189afc7a31c8c9f8a90e350ab18b7 | [
"MIT"
] | 35 | 2019-04-02T01:48:49.000Z | 2022-03-21T08:36:22.000Z | src/http/http_server_connection.hh | sharixos/libevent-cpp | 01b62cdb61a189afc7a31c8c9f8a90e350ab18b7 | [
"MIT"
] | 1 | 2019-04-01T12:13:01.000Z | 2019-04-26T07:33:00.000Z | src/http/http_server_connection.hh | sharixos/libevent-cpp | 01b62cdb61a189afc7a31c8c9f8a90e350ab18b7 | [
"MIT"
] | 6 | 2019-04-01T23:10:20.000Z | 2021-03-04T09:13:56.000Z | #pragma once
#include <http_connection.hh>
namespace eve
{
class http_server;
class http_server_connection : public http_connection
{
public:
http_server *server;
std::string clientaddress;
unsigned int clientport;
public:
http_server_connection(std::shared_ptr<event_base> base, int fd, ht... | 19.033333 | 89 | 0.71979 | sharixos |
9b4214e3476f0f921d46d5ba6120bef63161c34b | 1,161 | hpp | C++ | Server Lib/Game Server/PANGYA_DB/cmd_register_logon_server.hpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 23 | 2021-10-31T00:20:21.000Z | 2022-03-26T07:24:40.000Z | Server Lib/Game Server/PANGYA_DB/cmd_register_logon_server.hpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 5 | 2021-10-31T18:44:51.000Z | 2022-03-25T18:04:26.000Z | Server Lib/Game Server/PANGYA_DB/cmd_register_logon_server.hpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 18 | 2021-10-20T02:31:56.000Z | 2022-02-01T11:44:36.000Z | // Arquivo cmd_register_logon_server.hpp
// Criado em 03/12/2018 as 20:03 por Acrisio
// Defini��o da classe CmdRegisterLogonServer
#pragma once
#ifndef _STDA_CMD_REGISTER_LOGON_SERVER_HPP
#define _STDA_CMD_REGISTER_LOGON_SERVER_HPP
#include "../../Projeto IOCP/PANGYA_DB/pangya_db.h"
namespace stdA {
class CmdRegis... | 29.025 | 87 | 0.762274 | CCasusensa |
9b454b08336fc21ca56d88e1955a59fb31fd0d7f | 218 | cpp | C++ | engine_event.cpp | dridk/tankfighter | 2a4f9e72b524bb991ad1d5c665890845d4e288ba | [
"Zlib",
"MIT"
] | 1 | 2019-04-17T14:54:19.000Z | 2019-04-17T14:54:19.000Z | engine_event.cpp | dridk/tankfighter | 2a4f9e72b524bb991ad1d5c665890845d4e288ba | [
"Zlib",
"MIT"
] | null | null | null | engine_event.cpp | dridk/tankfighter | 2a4f9e72b524bb991ad1d5c665890845d4e288ba | [
"Zlib",
"MIT"
] | 1 | 2019-04-17T14:54:20.000Z | 2019-04-17T14:54:20.000Z | #include "engine_event.h"
#include "geometry.h"
EngineEvent::EngineEvent() {}
EngineEvent::~EngineEvent() {}
CollisionEvent::CollisionEvent() {
interaction = IT_GHOST;
first = NULL; second = NULL;
retry = false;
}
| 19.818182 | 34 | 0.715596 | dridk |
9b45cb6f733041a6d3da26ca330801f5d3b922a6 | 11,229 | cpp | C++ | examples/Rasterizer/Rasterizer.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | examples/Rasterizer/Rasterizer.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | examples/Rasterizer/Rasterizer.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | #include "pxCore.h"
#include "pxEventLoop.h"
#include "pxWindow.h"
#include "pxKeycodes.h"
#include "pxOffscreen.h"
#include "pxTimer.h"
#include "rtData.h"
#include "xs_StringUtil.h"
#include "stdio.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#ifndef PX_PLATFORM_WIN
#include <unistd.h>
#else
... | 20.159785 | 76 | 0.512779 | madanwork |
9b47b994dff24857a78571043882d5982f1195ae | 2,665 | cpp | C++ | src/engine/graphics/BufferObject.cpp | PepeSegade/LittleEngine | 0d8bcc1f783cfb3b8e8a1ad2456e470900ccdd1a | [
"WTFPL"
] | null | null | null | src/engine/graphics/BufferObject.cpp | PepeSegade/LittleEngine | 0d8bcc1f783cfb3b8e8a1ad2456e470900ccdd1a | [
"WTFPL"
] | null | null | null | src/engine/graphics/BufferObject.cpp | PepeSegade/LittleEngine | 0d8bcc1f783cfb3b8e8a1ad2456e470900ccdd1a | [
"WTFPL"
] | null | null | null | #include "BufferObject.h"
unsigned int LittleEngine::BufferObject::calculateDataSize()
{
switch (dataType)
{
case GL_FLOAT:
case GL_INT:
case GL_UNSIGNED_INT:
return 4;
case GL_SHORT:
case GL_UNSIGNED_SHORT:
return 2;
case GL_BYTE:
case GL_UNSIGNED_BYTE:
return 1;
default:
break;
}
return 0;
}
Lit... | 21.150794 | 128 | 0.762477 | PepeSegade |
9b49fbaff57cff6ac1206644743e89b0d2aa8236 | 3,003 | cpp | C++ | netc/PollPoller.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | 3 | 2020-08-11T06:47:16.000Z | 2021-07-16T09:51:28.000Z | netc/PollPoller.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | null | null | null | netc/PollPoller.cpp | Sun-CX/reactor | 88d90a96ae8c018c902846437ef6068da2715aa2 | [
"Apache-2.0"
] | 2 | 2020-08-10T07:38:29.000Z | 2021-07-16T09:48:09.000Z | //
// Created by suncx on 2020/8/21.
//
#include "PollPoller.h"
#include "Ext.h"
#include "Channel.h"
#include "ConsoleStream.h"
#include <cstring>
#include <poll.h>
#include <cassert>
using std::iter_swap;
using reactor::core::Timestamp;
using reactor::net::PollPoller;
using std::chrono::system_clock;
PollPoller::P... | 27.550459 | 98 | 0.615052 | Sun-CX |
9b4c0a6cf34a07115250dcdcec2415639afb80b2 | 555 | cpp | C++ | arrays/2D arrays/02_searching_an_element_.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | 1 | 2022-02-23T17:27:42.000Z | 2022-02-23T17:27:42.000Z | arrays/2D arrays/02_searching_an_element_.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | null | null | null | arrays/2D arrays/02_searching_an_element_.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n, m, k;
cin >> n >> m >> k;
int num[n][m];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
cin >> num[i][j];
}
}
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
... | 18.5 | 62 | 0.311712 | omkarugale7 |
9b4f56e5127349a2b8fc87334443e313f948393f | 2,611 | cpp | C++ | VNVita/Program.cpp | QuantumBoogaloo/VNVitaPrototype | bf06d08e41da9874dd51cee967bfe2b5c27567d5 | [
"Apache-2.0"
] | null | null | null | VNVita/Program.cpp | QuantumBoogaloo/VNVitaPrototype | bf06d08e41da9874dd51cee967bfe2b5c27567d5 | [
"Apache-2.0"
] | 4 | 2018-03-22T13:34:22.000Z | 2018-03-22T13:55:56.000Z | VNVita/Program.cpp | QuantumBoogaloo/VNVitaPrototype | bf06d08e41da9874dd51cee967bfe2b5c27567d5 | [
"Apache-2.0"
] | null | null | null | #include "Program.h"
/*
Copyright (C) 2018 Quantum Boogaloo, Bakagamedev(@bakagamedev), Pharap (@Pharap)
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/LIC... | 24.401869 | 137 | 0.716201 | QuantumBoogaloo |
9b4ffb23e6bef435f8a0f0261977708a7ba65e79 | 5,590 | cc | C++ | tests/api/mpi/init/attrself.cc | minyee/sst-macro | fd2c52b3872b9c49af77f5f82b3177cc7bbe403c | [
"BSD-Source-Code"
] | 4 | 2017-11-18T22:49:38.000Z | 2021-01-22T18:33:50.000Z | tests/api/mpi/init/attrself.cc | minyee/sst-macro | fd2c52b3872b9c49af77f5f82b3177cc7bbe403c | [
"BSD-Source-Code"
] | null | null | null | tests/api/mpi/init/attrself.cc | minyee/sst-macro | fd2c52b3872b9c49af77f5f82b3177cc7bbe403c | [
"BSD-Source-Code"
] | 1 | 2018-02-21T11:39:08.000Z | 2018-02-21T11:39:08.000Z | /**
Copyright 2009-2017 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering... | 30.546448 | 81 | 0.672272 | minyee |
9b53e0c2962bf9585e5583d9a71e0cbe89876c39 | 805 | cpp | C++ | SFML_RPG/Tile.cpp | krisgreg/LBEngine | 391c6b2a2e543ea725884997c7bf3dc56572772a | [
"MIT"
] | null | null | null | SFML_RPG/Tile.cpp | krisgreg/LBEngine | 391c6b2a2e543ea725884997c7bf3dc56572772a | [
"MIT"
] | null | null | null | SFML_RPG/Tile.cpp | krisgreg/LBEngine | 391c6b2a2e543ea725884997c7bf3dc56572772a | [
"MIT"
] | null | null | null | #include "Tile.h"
#include "Consts.h"
lbe::Tile::Tile(sf::Vector2f WorldPos, sf::Texture *Texture, sf::Vector2f TexturePos, int TextureId) : TextureId(TextureId)
{
BackgroundSprite.setSize(sf::Vector2f(lbe::TILE_SIZE, lbe::TILE_SIZE));
BackgroundSprite.setTexture(Texture);
BackgroundSprite.setTextureRect(sf::IntRec... | 23 | 123 | 0.754037 | krisgreg |
9b5538f500fbbd780a5539ce0365f40baa292cf0 | 34,824 | cc | C++ | src/MultiSys/MultiExch.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 4 | 2021-03-15T10:02:13.000Z | 2022-01-16T11:06:28.000Z | src/MultiSys/MultiExch.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 1 | 2022-01-27T15:35:03.000Z | 2022-01-27T15:35:03.000Z | src/MultiSys/MultiExch.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | null | null | null | /* MultiExch.cc *************************************************-*-c++-*-
** **
** G A M M A **
** **
** Multiple System Exchange Implementation **
** **
** Copyright (c) 1995 **
** Nikolai Skrynnikov **
** Dr. Scott A. Smith ... | 44.703466 | 91 | 0.532478 | pygamma-mrs |
9b5951bdfb9b2cfe06e5a321dfec953188bff92a | 1,329 | cpp | C++ | Pathfinding/DijkstraWalker.cpp | Gerard097/Pathfinding | 343ff9550dbd3f5d141a9ba3ccb2902002660dff | [
"MIT"
] | 25 | 2019-01-05T14:16:55.000Z | 2022-03-08T22:42:21.000Z | Pathfinding/DijkstraWalker.cpp | Gerard097/Pathfinding | 343ff9550dbd3f5d141a9ba3ccb2902002660dff | [
"MIT"
] | 1 | 2020-08-11T06:32:46.000Z | 2020-08-11T17:09:40.000Z | Pathfinding/DijkstraWalker.cpp | Gerard097/Pathfinding | 343ff9550dbd3f5d141a9ba3ccb2902002660dff | [
"MIT"
] | 5 | 2018-04-14T19:01:35.000Z | 2021-05-16T10:48:50.000Z | #include "DijkstraWalker.h"
#include "Graph.h"
CDijkstraWalker::CDijkstraWalker()
{
}
CDijkstraWalker::~CDijkstraWalker()
{
}
bool CDijkstraWalker::Step()
{
if ( m_pEnd && m_pCurrent &&
m_iCurrentSteps++ < m_iMaxSteps && !m_nodes.empty() )
{
m_pCurrent = *m_nodes.begin();
m_nodes.erase( m_nodes.begin() );... | 17.25974 | 70 | 0.65237 | Gerard097 |
9b59ccb2e9504f811b740ad3e8602d0d6188a825 | 17,964 | cpp | C++ | MTUSpline/MTUSplineData.cpp | GuillaumeVDu/MTUSpline | 13ce7b2e52b820312c29464cb5560bdca446b252 | [
"BSD-3-Clause"
] | 2 | 2019-07-25T18:09:42.000Z | 2019-09-08T16:02:18.000Z | MTUSpline/MTUSplineData.cpp | GuillaumeVDu/MTUSpline | 13ce7b2e52b820312c29464cb5560bdca446b252 | [
"BSD-3-Clause"
] | null | null | null | MTUSpline/MTUSplineData.cpp | GuillaumeVDu/MTUSpline | 13ce7b2e52b820312c29464cb5560bdca446b252 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2015, Massimo Sartori, Monica Reggiani and Guillaume Durandau
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// - Redistributions of source code must retain the above copyrigh... | 27.135952 | 129 | 0.671064 | GuillaumeVDu |
9b5f9afc0bdd486988c4a933a6947159cf4e2279 | 5,315 | cpp | C++ | drivers/AT24Cxx/AT24Cxx.cpp | GXUNiot/mbed | 39634be44c4d5c62883b0177c138952029550b0d | [
"MIT"
] | null | null | null | drivers/AT24Cxx/AT24Cxx.cpp | GXUNiot/mbed | 39634be44c4d5c62883b0177c138952029550b0d | [
"MIT"
] | null | null | null | drivers/AT24Cxx/AT24Cxx.cpp | GXUNiot/mbed | 39634be44c4d5c62883b0177c138952029550b0d | [
"MIT"
] | null | null | null | #include "AT24Cxx.h"
AT24CXX::AT24CXX(I2C *i2c, uint16_t size, uint8_t hardaddr, uint32_t feq)
{
AT24CXX::_i2c = i2c;
uint16_t i;
for(i=512; i>=0x01; i>>=1)
{
if( size == i )
{
break;
}
}
_storageSize = i;
if( _storageSize == 1 )
{
_pageSize = 8;
}
else if( _storag... | 18.078231 | 75 | 0.519473 | GXUNiot |
9b6035f95d812f60e29f25d26fb3c5e287760b32 | 4,795 | cpp | C++ | src/not_suspicious/Technique_DebugFlags.cpp | CheckPointSW/showstopper | 8e440bf993a65cc2ebe6aaf0a39437a8ed6c5276 | [
"MIT"
] | 128 | 2020-08-05T11:39:21.000Z | 2022-03-16T06:06:48.000Z | src/not_suspicious/Technique_DebugFlags.cpp | CheckPointSW/showstopper | 8e440bf993a65cc2ebe6aaf0a39437a8ed6c5276 | [
"MIT"
] | null | null | null | src/not_suspicious/Technique_DebugFlags.cpp | CheckPointSW/showstopper | 8e440bf993a65cc2ebe6aaf0a39437a8ed6c5276 | [
"MIT"
] | 16 | 2020-08-05T15:42:54.000Z | 2021-12-14T03:18:54.000Z | #include "Technique_DebugFlags.h"
#include <VersionHelpers.h>
CHECK_TECHNIQUE(IsDebuggerPresent)
{
return TRUE == IsDebuggerPresent();
}
CHECK_TECHNIQUE(CheckRemoteDebuggerPresent)
{
BOOL bDebuggerPresent = FALSE;
if (TRUE == CheckRemoteDebuggerPresent(GetCurrentProcess(), &bDebuggerPresent))
return TRUE == bD... | 24.589744 | 122 | 0.770803 | CheckPointSW |
9b616ec4b4d118f2ff45fd6fd8909f0fee40fde4 | 2,117 | cpp | C++ | Assets/Chunity/Plugins/iOS/chuck_utils.cpp | marek-stoj/Chuckings | fcca01afdc759b8d374c5ab3d31d010c1174af04 | [
"Unlicense"
] | 21 | 2016-02-11T17:28:13.000Z | 2018-03-27T00:42:28.000Z | lib/chuck/chuck_utils.cpp | PaulBatchelor/tiziku | d603fd8de5dbdfdbbfba350ffc9d5f5d6f03ee99 | [
"MIT"
] | 2 | 2016-01-19T21:58:34.000Z | 2016-01-20T03:17:13.000Z | lib/chuck/chuck_utils.cpp | PaulBatchelor/tiziku | d603fd8de5dbdfdbbfba350ffc9d5f5d6f03ee99 | [
"MIT"
] | 5 | 2016-01-15T04:52:36.000Z | 2019-05-07T00:52:23.000Z | /*----------------------------------------------------------------------------
ChucK Concurrent, On-the-fly Audio Programming Language
Compiler and Virtual Machine
Copyright (c) 2004 Ge Wang and Perry R. Cook. All rights reserved.
http://chuck.stanford.edu/
http://chuck.cs.princeton.edu/
This progr... | 27.141026 | 79 | 0.585262 | marek-stoj |
9b626cd01d0a974fe378b26db5cf9edb1efd2c5f | 4,449 | cpp | C++ | tools/bpp-seq/src/Bpp/Seq/Alphabet/AlphabetTools.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | 2 | 2021-08-24T16:03:30.000Z | 2022-03-18T14:52:43.000Z | tools/bpp-seq/src/Bpp/Seq/Alphabet/AlphabetTools.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | tools/bpp-seq/src/Bpp/Seq/Alphabet/AlphabetTools.cpp | danydoerr/spp_dcj | 1ab9dacb1f0dc34a3ebbeed9e74226a9a53c297a | [
"MIT"
] | null | null | null | //
// File: AlphabetTools.cpp
// Created by: Julien Dutheil
// Created on: Fri Oct 10 17:27:39 2003
//
/*
Copyright or © or Copr. Bio++ Development Team, (November 17, 2004)
This software is a computer program whose purpose is to provide classes
for sequences analysis.
This software is governed by the Ce... | 35.592 | 96 | 0.62913 | danydoerr |
9b644b5c2d0356d1d06d81ca53155ccc57c277f3 | 2,093 | cpp | C++ | soccer_embedded/Common/component/DaisyChain/DaisyChain.cpp | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 56 | 2016-12-25T22:29:00.000Z | 2022-01-06T04:42:00.000Z | soccer_embedded/Common/component/DaisyChain/DaisyChain.cpp | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 244 | 2021-04-05T03:22:25.000Z | 2022-03-31T16:47:36.000Z | soccer_embedded/Common/component/DaisyChain/DaisyChain.cpp | ghsecuritylab/soccer_ws | 60600fb826c06362182ebff00f3031e87ac45f7c | [
"BSD-3-Clause"
] | 7 | 2017-01-24T23:38:07.000Z | 2022-01-19T16:58:08.000Z | /**
*****************************************************************************
* @file
* @author Tyler Gamvrelis
*
* @ingroup DaisyChain
* @{
*****************************************************************************
*/
/********************************* Includes *****************************... | 22.75 | 79 | 0.489728 | ghsecuritylab |
9b6541346a3ffd37f45f0ef5b8b1a1f33977679c | 5,492 | c++ | C++ | audio/audio_test.initial.c++ | pyrocharles/basilio_chat | 5f7a23eb6ab964e6fcc5b6e3334d45a3a769b13c | [
"MIT"
] | null | null | null | audio/audio_test.initial.c++ | pyrocharles/basilio_chat | 5f7a23eb6ab964e6fcc5b6e3334d45a3a769b13c | [
"MIT"
] | null | null | null | audio/audio_test.initial.c++ | pyrocharles/basilio_chat | 5f7a23eb6ab964e6fcc5b6e3334d45a3a769b13c | [
"MIT"
] | null | null | null | // #include "core_audio.h++"
#include "portaudio/portaudio.h"
#include <iostream>
#include <exception>
#include <string>
/**
* General PortAudio exception class, thrown when there's an error initializing
* or terminating the library.
*
* @author Charles Van West
* @version 0.0
*/
class PortAudio_Exception : pub... | 34.759494 | 80 | 0.510197 | pyrocharles |
9b654ca7b697e4cf6a365ea36356a26187875e44 | 6,682 | cpp | C++ | Lib/vc4/DMA/DMA.cpp | Freddan-67/V3DLib | dcefc24a9a399ee1f5d1aa5529f44d9fd2486929 | [
"MIT"
] | 44 | 2021-01-16T14:17:15.000Z | 2022-03-11T19:53:59.000Z | Lib/vc4/DMA/DMA.cpp | RcCreeperTech/V3DLib | 38eb8d55b8276de5cf703d8e13fb9b5f220c49f0 | [
"MIT"
] | 8 | 2021-01-16T17:52:02.000Z | 2021-12-18T22:38:00.000Z | Lib/vc4/DMA/DMA.cpp | RcCreeperTech/V3DLib | 38eb8d55b8276de5cf703d8e13fb9b5f220c49f0 | [
"MIT"
] | 7 | 2021-01-16T14:25:47.000Z | 2022-02-03T16:34:45.000Z | #include "DMA.h"
#include "Support/basics.h"
#include "Support/Helpers.h"
#include "Helpers.h"
namespace V3DLib {
namespace DMA {
using ::operator<<; // C++ weirdness
void Stmt::setupVPMRead(int n, Expr::Ptr addr, bool hor, int stride) {
m_setupVPMRead.numVecs = n;
m_setupVPMRead.stride = stride;
m_setupVPMRe... | 27.385246 | 98 | 0.59144 | Freddan-67 |
9b67229f639240c5df8537c0e5ac462508517093 | 15,331 | cpp | C++ | main/src/vtr_vision/src/modules/matching/asrl_stereo_matcher_module.cpp | utiasASRL/vtr3 | b4edca56a19484666d3cdb25a032c424bdc6f19d | [
"Apache-2.0"
] | 32 | 2021-09-15T03:42:42.000Z | 2022-03-26T10:40:01.000Z | main/src/vtr_vision/src/modules/matching/asrl_stereo_matcher_module.cpp | shimp-t/vtr3 | bdcad784ffe26fabfa737d0e195bcb3bacb930c3 | [
"Apache-2.0"
] | 7 | 2021-09-18T19:18:15.000Z | 2022-02-02T11:15:40.000Z | main/src/vtr_vision/src/modules/matching/asrl_stereo_matcher_module.cpp | shimp-t/vtr3 | bdcad784ffe26fabfa737d0e195bcb3bacb930c3 | [
"Apache-2.0"
] | 7 | 2021-09-18T01:31:28.000Z | 2022-03-14T05:09:37.000Z | // Copyright 2021, Autonomous Space Robotics Lab (ASRL)
//
// 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 appli... | 44.181556 | 155 | 0.666754 | utiasASRL |
9b67a50c4f87f8329edd5270930a0f8f84f55d9b | 5,443 | cpp | C++ | models/memory/CaffDRAM/Bank.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 8 | 2016-01-22T18:28:48.000Z | 2021-05-07T02:27:21.000Z | models/memory/CaffDRAM/Bank.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 3 | 2016-04-15T02:58:58.000Z | 2017-01-19T17:07:34.000Z | models/memory/CaffDRAM/Bank.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 10 | 2015-12-11T04:16:55.000Z | 2019-05-25T20:58:13.000Z | /*
* Bank.cpp
*
* Created on: Jun 14, 2011
* Author: rishirajbheda
*/
#include "Bank.h"
#include "kernel/manifold.h"
using namespace std;
namespace manifold {
namespace caffdram {
Bank::Bank(const Dsettings* dramSetting) {
// TODO Auto-generated constructor stub
this->dramSetting = dramSetting;
th... | 24.299107 | 137 | 0.681058 | Basseuph |
9b69ce4fa6a4aeaff0e8c0f76919d5bb82ff8ba1 | 430 | cc | C++ | google_interview_practice/Angle_Between_Hands_of_a_Clock/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | google_interview_practice/Angle_Between_Hands_of_a_Clock/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | google_interview_practice/Angle_Between_Hands_of_a_Clock/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
double angleClock(int hour, int minutes) {
double minAngle = (double)minutes * 6.0f;
double hourAngle = (double)hour * 30.0f + (double)minutes * 0.5f;
double angle;
if (hourAngle >= 360.0f) hourAngle -= 360.f;
angle = (hourAngle > minAngle) ? (hourAng... | 33.076923 | 89 | 0.588372 | ldy121 |
9b7008e29e28bdfe814c711b660c3d8a7f29f92d | 1,937 | hpp | C++ | em_unet/src/PyGreentea/evaluation/src_cython/zi/zunit/registry.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 10 | 2018-09-13T17:37:22.000Z | 2020-05-08T16:20:42.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/zunit/registry.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 1 | 2018-12-02T14:17:39.000Z | 2018-12-02T20:59:26.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/zunit/registry.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 2 | 2019-03-03T12:06:10.000Z | 2020-04-12T13:23:02.000Z | //
// Copyright (C) 2010 Aleksandar Zlateski <zlateski@mit.edu>
// ----------------------------------------------------------
//
// 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 versio... | 24.518987 | 72 | 0.65049 | VCG |
9b740170aa7676c54e3a75e7473d0b55cd8841ff | 14,216 | cc | C++ | zircon/kernel/lib/user_copy/user_copy_tests.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | zircon/kernel/lib/user_copy/user_copy_tests.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | zircon/kernel/lib/user_copy/user_copy_tests.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <lib/unittest/unittest.h>
#include <lib/unittest/user_memory.h>
#include <lib/user_copy/internal.h>
#include <lib/user_co... | 34.504854 | 100 | 0.724606 | fabio-d |
f927b774e27cde416407c0404a9e3b45c5c5e104 | 1,221 | cpp | C++ | src/main.cpp | mliszcz/tango-fs | 7f9bf2b88e5a76ad9a418ca8662b0cf458d9e678 | [
"MIT"
] | null | null | null | src/main.cpp | mliszcz/tango-fs | 7f9bf2b88e5a76ad9a418ca8662b0cf458d9e678 | [
"MIT"
] | null | null | null | src/main.cpp | mliszcz/tango-fs | 7f9bf2b88e5a76ad9a418ca8662b0cf458d9e678 | [
"MIT"
] | null | null | null |
#define FUSE_USE_VERSION 30
#include <handlers/getattr.hpp>
#include <handlers/readdir.hpp>
#include <handlers/open.hpp>
#include <handlers/read.hpp>
#include <paths.hpp>
#include <tango.hpp>
#include <fuse.h>
#include <utility>
namespace {
const auto handler = paths::makeFuseHandler(tango::createDatabase,
... | 25.4375 | 73 | 0.622441 | mliszcz |
f9299367684c26ff2ab4bd14457ad068a34cce43 | 242 | cpp | C++ | ICPC/未命名3.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | ICPC/未命名3.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | ICPC/未命名3.cpp | windcry1/My-ACM-ICPC | b85b1c83b72c6b51731dae946a0df57c31d3e7a1 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main()
{
int n, m, i, s = 0;
printf ("N M = ");
scanf("%d%d", &n, &m);
for (i = 2; i <= n; i++)
{
s = (s + m) % i;
printf("%d\n",s);
}
printf ("\nThe winner is %d\n", s+1);
}
| 17.285714 | 41 | 0.363636 | windcry1 |
f92fd52099ef73adc1d00cbbe3783752db54732c | 3,061 | hpp | C++ | em_unet/src/PyGreentea/evaluation/src_cython/zi/disjoint_sets/disjoint_sets2.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 10 | 2018-09-13T17:37:22.000Z | 2020-05-08T16:20:42.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/disjoint_sets/disjoint_sets2.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 1 | 2018-12-02T14:17:39.000Z | 2018-12-02T20:59:26.000Z | em_unet/src/PyGreentea/evaluation/src_cython/zi/disjoint_sets/disjoint_sets2.hpp | VCG/psc | 4826c495b89ff77b68a3c0d5c6e3af805db25386 | [
"MIT"
] | 2 | 2019-03-03T12:06:10.000Z | 2020-04-12T13:23:02.000Z | //
// Copyright (C) 2010 Aleksandar Zlateski <zlateski@mit.edu>
// ----------------------------------------------------------
//
// 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 versio... | 19.876623 | 72 | 0.469128 | VCG |
f935da8431f92003a01979a6258194fe2551c085 | 2,262 | hpp | C++ | src/output/output_manager.hpp | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | src/output/output_manager.hpp | savcardamone/tyche- | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | 1 | 2018-12-28T13:30:16.000Z | 2018-12-29T10:30:33.000Z | src/output/output_manager.hpp | savcardamone/tyche | ea89edea89a607291e4fe0ba738d75522f54dc1a | [
"MIT"
] | null | null | null | /**
* @file output_manager.hpp
* @author Salvatore Cardamone
* @brief Multiprocessing-aware output manager class.
*/
#ifndef __TYCHEPLUSPLUS_OUTPUT_MANAGER_HPP
#define __TYCHEPLUSPLUS_OUTPUT_MANAGER_HPP
#include <fstream>
#include "multiprocess/multiprocess_base.hpp"
namespace tycheplusplus {
/**
* @class Outpu... | 29.763158 | 89 | 0.712202 | savcardamone |
f93819ccdcf0c436ddab2aebc30c7168e13181b2 | 19,996 | cpp | C++ | generic/stack1d.cpp | cschreib/speclib | efbe7b0c9c28dddd82916c7fff4813bfe7a9ff31 | [
"MIT"
] | null | null | null | generic/stack1d.cpp | cschreib/speclib | efbe7b0c9c28dddd82916c7fff4813bfe7a9ff31 | [
"MIT"
] | null | null | null | generic/stack1d.cpp | cschreib/speclib | efbe7b0c9c28dddd82916c7fff4813bfe7a9ff31 | [
"MIT"
] | null | null | null | #include <phypp.hpp>
vec1d cure_error(vec1d err, vec1d err_formal) {
vec1u idl = where(err > 0);
if (!idl.empty()) {
err_formal[idl] *= median(err[idl]/err_formal[idl]);
}
// Keep the bootstrap unless it is too small for some reason
idl = where(err < 0.7*err_formal);
err[idl] = err_for... | 38.676983 | 110 | 0.568864 | cschreib |
f9396f7de94831c87f31a4b1b87ba5e528433c6f | 1,031 | cc | C++ | src/isa/toy-isa/inst_var.cc | SeanHeelan/superopt | 9473e4718d491f6cb375a9754c6213ddf5db680c | [
"MIT"
] | 20 | 2021-06-02T14:21:53.000Z | 2022-03-29T09:10:49.000Z | src/isa/toy-isa/inst_var.cc | SeanHeelan/superopt | 9473e4718d491f6cb375a9754c6213ddf5db680c | [
"MIT"
] | 3 | 2021-07-28T16:31:25.000Z | 2021-07-28T18:36:30.000Z | src/isa/toy-isa/inst_var.cc | SeanHeelan/superopt | 9473e4718d491f6cb375a9754c6213ddf5db680c | [
"MIT"
] | 2 | 2021-08-04T09:48:09.000Z | 2022-02-08T05:00:33.000Z | #include <random>
#include <unordered_set>
#include "inst_var.h"
using namespace std;
default_random_engine gen_toy_isa_inst_var;
uniform_real_distribution<double> unidist_toy_isa_inst_var(0.0, 1.0);
void update_ps_by_input(prog_state& ps, const inout_t& input) {
ps._regs[0] = input.reg;
}
void update_output_by_p... | 27.131579 | 74 | 0.685742 | SeanHeelan |
f93a4711fcc0f6eb3b638328a60626658284d278 | 2,139 | cpp | C++ | test/detail/queue.cpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | test/detail/queue.cpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | test/detail/queue.cpp | andreimaximov/unet | 10b6aa82b1ce74fa40c9050f4593c902f9d0fd61 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <unet/detail/queue.hpp>
namespace unet {
namespace detail {
TEST(QueueTest, PushPeekAndPop) {
Queue q{2};
auto f1 = Frame::makeStr("a");
q.push(f1);
ASSERT_FALSE(f1);
auto f2 = Frame::makeStr("b");
q.push(f2);
ASSERT_FALSE(f2);
auto f3 = q.peek();
ASSERT_TRUE(f3... | 15.962687 | 50 | 0.597008 | andreimaximov |
f93b33ff712a73090db868c9971e75ebbf889670 | 2,750 | cpp | C++ | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/registration/amc_client.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/registration/amc_client.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/registration/amc_client.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | /*!
* @copyright
* Copyright (c) 2015-2019 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apache.org/licenses/LICENSE-... | 34.810127 | 106 | 0.726909 | opencomputeproject |
f93b45f13226448e0235e846bb8c1a9a6697fd32 | 69,035 | cpp | C++ | tests/exchange.test.cpp | VlinderSoftware/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-16T01:34:06.000Z | 2020-07-16T01:34:06.000Z | tests/exchange.test.cpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-23T02:55:31.000Z | 2020-07-23T02:55:31.000Z | tests/exchange.test.cpp | blytkerchan/securitylayer | 0daef0efe08af2649b164affcbdd30845a7806cd | [
"Apache-2.0"
] | 1 | 2020-07-03T00:06:20.000Z | 2020-07-03T00:06:20.000Z | /* Copyright 2019 Ronald Landheer-Cieslak
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 64.700094 | 155 | 0.556964 | VlinderSoftware |
f93c3203bac87fded1bf0ec1aca3541ea9bd6586 | 783 | cpp | C++ | src/devices/sound/nes_apu_vt.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/devices/sound/nes_apu_vt.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/devices/sound/nes_apu_vt.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:David Haywood
// The XOP is the NES APU type found in VT platforms, it roughly doubles the functionality of the APU
// but in ways that means simply installing 2 APU devices isn't entirely correct (registers on one
// APU module having an effect on the other)
// TODO: ever... | 27 | 117 | 0.767561 | Robbbert |
f93d694d135b74615a2c6078bad826606ab8a22c | 1,644 | cpp | C++ | src/libsnw_lang/parser.cpp | Sojourn/snw | e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f | [
"MIT"
] | null | null | null | src/libsnw_lang/parser.cpp | Sojourn/snw | e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f | [
"MIT"
] | null | null | null | src/libsnw_lang/parser.cpp | Sojourn/snw | e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f | [
"MIT"
] | null | null | null | #include <stdexcept>
#include <iostream>
#include "object_transaction.h"
#include "parser.h"
using namespace snw;
parser::parser(object_heap& heap)
: heap_(heap)
{
}
object_ref parser::parse(const char* str) {
try {
object_transaction txn(&heap_);
snw::parse(str, *this);
txn.commit();... | 20.296296 | 59 | 0.631387 | Sojourn |
f93e75025a86aa917d49e97b3c96905dc7431209 | 1,653 | hpp | C++ | include/ampi/detail/msgunpack_ctx_base.hpp | palebedev/ampi | a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a | [
"Apache-2.0"
] | null | null | null | include/ampi/detail/msgunpack_ctx_base.hpp | palebedev/ampi | a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a | [
"Apache-2.0"
] | null | null | null | include/ampi/detail/msgunpack_ctx_base.hpp | palebedev/ampi | a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a | [
"Apache-2.0"
] | 1 | 2021-03-30T15:49:55.000Z | 2021-03-30T15:49:55.000Z | // Copyright 2021 Pavel A. Lebedev
// Licensed under the Apache License, Version 2.0.
// (See accompanying file LICENSE.txt or copy at
// http://www.apache.org/licenses/LICENSE-2.0)
// SPDX-License-Identifier: Apache-2.0
#ifndef UUID_AAF4E171_A2F9_4892_8578_A9CDFF078116
#define UUID_AAF4E171_A2F9_4892_8578_A9CDFF0781... | 28.5 | 102 | 0.651543 | palebedev |
f93f8f3365ef6cc472606ea073b993e33880b0c2 | 387 | cpp | C++ | level_zero/tools/source/debug/linux/prelim/debug_session_linux_helper.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/debug/linux/prelim/debug_session_linux_helper.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/debug/linux/prelim/debug_session_linux_helper.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/tools/source/debug/linux/prelim/debug_session.h"
#include <level_zero/ze_api.h>
namespace L0 {
DebugSession *createDebugSessionHelper(const zet_debug_config_t &config, Device *device, int debugFd) {
return ne... | 22.764706 | 103 | 0.749354 | mattcarter2017 |
f946624a7762dfa05463c2a3876c4f0e9d2a4338 | 184 | cpp | C++ | Code/color.cpp | ferreiro/Chats-App | 9fa8f8f900fe1836bed0d87f0dfebe80699399e9 | [
"MIT"
] | 1 | 2018-12-11T22:54:18.000Z | 2018-12-11T22:54:18.000Z | CodeDinamic/color.cpp | ferreiro/Chats-App | 9fa8f8f900fe1836bed0d87f0dfebe80699399e9 | [
"MIT"
] | null | null | null | CodeDinamic/color.cpp | ferreiro/Chats-App | 9fa8f8f900fe1836bed0d87f0dfebe80699399e9 | [
"MIT"
] | 2 | 2018-07-05T01:18:22.000Z | 2021-07-25T08:11:36.000Z |
#include "color.h"
// Function for coloring the characters
void setColor(tColor color) {
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(handle, color);
}
| 20.444444 | 49 | 0.777174 | ferreiro |
f9479c5354fb09b4084cebc47625f422ec63da41 | 925 | hpp | C++ | src/RandomNumberEngine.hpp | Santi-7/Minimum_cut | d0f9f404ab5533d26096163aabe434ad501d8c03 | [
"Apache-2.0"
] | null | null | null | src/RandomNumberEngine.hpp | Santi-7/Minimum_cut | d0f9f404ab5533d26096163aabe434ad501d8c03 | [
"Apache-2.0"
] | null | null | null | src/RandomNumberEngine.hpp | Santi-7/Minimum_cut | d0f9f404ab5533d26096163aabe434ad501d8c03 | [
"Apache-2.0"
] | null | null | null | /** ---------------------------------------------------------------------------
** rng.hpp
** Header file that contains random number generator abstractions.
**
** Author: Miguel Jorge Galindo Ramos, NIA: 679954
** Santiago Gil Begué, NIA: 683482
** --------------------------------------------------------... | 25 | 79 | 0.581622 | Santi-7 |